@olympeio/runtime-web 9.12.0 → 9.12.1

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,14 +259,14 @@ 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('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}});
261
261
  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}});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={Sj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Sj())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.Sj().olympe=olympe;olympe.ci=(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.ra={};olympe.ra.Fo={};olympe.ra.Fo.JG=class{process(a){for(const b of Object.keys(a.bl))if(a.Zf(b).OE())throw Error('Service "'+b+'" is defined as abstract and needs to be overridden');}};olympe.ra.Fo.JG.Aa=[olympe.ra.Fo.dL];olympe.ra.Fo.KG=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.Zf(e);c(e.ix(),f);for(const g of Ca(e))c(g.ix(),f)}}function c(e,f){for(const g of e)g instanceof olympe.ra.Rd&&b(g.ja(),f)}const d=new Set(Object.keys(a.bl));for(const e of d)b(e,[])}};olympe.ra.Fo.KG.Aa=[olympe.ra.Fo.dL];olympe.ra.Fo.dL=class{process(){}};const Da=[],Ea=[];function Fa(a){const b=a.tb();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.tb();b.debug('Running run callbacks of container...');b.C++;Ea.forEach(c=>{const d=Ja(a,c.ix());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!')}
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={Sj:()=>'object'===typeof window?window:'object'===typeof global?global:self};if('olympe'in olympe.Sj())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.Sj().olympe=olympe;olympe.ci=(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.ra={};olympe.ra.Fo={};olympe.ra.Fo.JG=class{process(a){for(const b of Object.keys(a.bl))if(a.$f(b).OE())throw Error('Service "'+b+'" is defined as abstract and needs to be overridden');}};olympe.ra.Fo.JG.Aa=[olympe.ra.Fo.dL];olympe.ra.Fo.KG=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.$f(e);c(e.ix(),f);for(const g of Ca(e))c(g.ix(),f)}}function c(e,f){for(const g of e)g instanceof olympe.ra.Rd&&b(g.ja(),f)}const d=new Set(Object.keys(a.bl));for(const e of d)b(e,[])}};olympe.ra.Fo.KG.Aa=[olympe.ra.Fo.dL];olympe.ra.Fo.dL=class{process(){}};const Da=[],Ea=[];function Fa(a){const b=a.tb();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.tb();b.debug('Running run callbacks of container...');b.C++;Ea.forEach(c=>{const d=Ja(a,c.ix());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.ra.QG=class{constructor(){}static C(a,b){Da.push(new olympe.ra.lC(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.ra.lC(b,c,a))}};olympe.ra.bf=olympe.ra.QG.C;olympe.ra.run=olympe.ra.QG.D;olympe.ra.xX=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.ra.Ly=class{constructor(){}getValue(){}};function Ka(a,b){let c,d;return null!=(d=null==(c=a.O)?void 0:c.call(a,b))?d:!0}olympe.ra.lC=class{constructor(a,b,c){this.D=a;this.fj=(null!=c?c:[]).map(d=>'string'===typeof d?new olympe.ra.Rd(d):d);this.C=null!=b?b:'no name di callback';this.O=null}ix(){return this.fj}};function Ma(a,b){var c=olympe.ra.ba.Bp;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.ra.ht.C.oD)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 Ja(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.ra.Ly?f.getValue(a):f,Ha(a.V);return d}
265
265
  olympe.ra.ht=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.ra.jK(e);this.D=new Map;Ma(this,this);this.V.debug('Instantiate all computed parameters');d.forEach(f=>Na(this,f).subscribe(this.Fy.bind(this,f)))}tb(){return this.V}getParameter(a){a=a.toLowerCase();let b;return null!=(b=this.parameters[a])?b:this.O[a]}Fy(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.ra.ht.C={wR:'exception',oD:'null'};function Pa(a,b){b=olympe.ra.xX(b);for(const [c,d]of b)a.setParameter(c,d)}function B(a,b,c,...d){Ga(a.V,'Defining service '+b);a.C(b,c,d,!1,!1)}function Qa(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 Ra(a,b,c,d=!1){Ga(a.V,'Defining service alias '+b);a.C(b,e=>e,[c],!0,d)}function Sa(a,b){Ga(a.V,'Defining abstract service '+b);a.C(b).D=!0}
267
267
  function Va(a,b,c,d){a.O.push(b);a.setParameter(b,d(...c.map(e=>a.getParameter(e))));C(a,b,c.map(e=>new olympe.ra.lt(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
268
  olympe.ra.kR=class{constructor(a,b){this.bl=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.ra.Fo.JG,new olympe.ra.Fo.KG];this.R=[];a=this.getParameter(olympe.ra.Config.xT);this.T=void 0!==a?a:3;this.V=new olympe.ra.jK(this.T)}tb(){return this.V}C(a,b,c,d,e){const f=a instanceof olympe.ra.Rd?a.ja():a;if(3<=arguments.length&&c){const h=c.indexOf(f);if(-1!==h){if(void 0===this.bl[f])throw Error(`ContainerBuilder.define: Service ${f} references itself and is not an override definition!`);
269
- var g=this.bl[f];g.id=g.id+'!!'+ ++olympe.ra.yC.C;g.O=!0;g=g.id;c[h]=g;this.bl[g]=this.bl[f]}}this.bl[f]=new olympe.ra.yC(b,c,d||!1,f);return this.bl[f]}setParameter(a,b){this.parameters[a.toLowerCase()]=b}Zf(a){const b=this.bl[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=>
269
+ var g=this.bl[f];g.id=g.id+'!!'+ ++olympe.ra.yC.C;g.O=!0;g=g.id;c[h]=g;this.bl[g]=this.bl[f]}}this.bl[f]=new olympe.ra.yC(b,c,d||!1,f);return this.bl[f]}setParameter(a,b){this.parameters[a.toLowerCase()]=b}$f(a){const b=this.bl[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=>
270
270
  {Ga(this.V,'Calling callback');this.V.C++;b(this);Ha(this.V)});Ha(this.V);this.V.debug('Configuration summary: '+Object.keys(this.bl).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.ra.ht(this.bl,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
271
  olympe.ra.yC=class{constructor(a,b,c,d){this.R=a||null;this.T=!!c;this.fj=(null!=b?b:[]).map(e=>'string'===typeof e?new olympe.ra.Rd(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.tb();b.debug('Resolving arguments for '+this.id);const c=this.R;let d=Ja(a,this.fj);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.Oo().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 h of this.C.values())b.C++,Ga(b,'Check if need to call additional configuration callback '+h.C),Ka(h,f)?(Ga(b,'Calling additional configuration callback '+h.C),d=Ja(a,h.ix()),d.push(f),h.D.apply(null,d)):Ga(b,'Will not call additional configuration callback '+h.C+'predicate has returned false'),Ha(b);Ha(b)}Ga(b,'Done instantiating '+this.id);return f}ix(){return this.fj}OE(){return this.D}bf(a,b,c,d,e){null===
@@ -315,7 +315,7 @@ olympe.la.KP=function(a){var b=/^(?:(\S*)@)?([^:]+)(?::(\d{2,5}))?$/;const c=/([
315
315
  parseFloat(t):t=decodeURIComponent(t);b[r[1]]=t}return{scheme:a||null,H3:g||null,BQ:m||null,host:n||null,port:p&&parseInt(p,10)||null,path:h&&'/'!==h?h:null,query:l||null,c4:f||null,parameters:b}};olympe.la.JP=function(){const a=location.hash.substring(1);return''===a?new Map:new Map(a.split('&').map(b=>b.split('=').map(decodeURIComponent)))};
316
316
  olympe.la.z4=function(a){a=Array.from(a.entries()).filter(([,b])=>null!==b&&void 0!==b).map(([b,c])=>`${encodeURIComponent(b)}=${encodeURIComponent(c)}`).join('&');return 0<a.length?`#${a}`:''};olympe.la.h4=(a,b)=>{const c=Object.keys(a).find(d=>a[d]===b);return void 0===c?null:c};
317
317
  olympe.la.IY=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 [h,l]=g.split('=');f['host.'+h.slice(0)]=olympe.la.rW(l);return f},{})}}).reduce((c,d,e)=>{olympe.la.BP(c,d,'version.json'===
318
- b[e]?'version.':'');return c},Object.create(null))})};olympe.la.rW=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.BP=(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.BP(a[e],f,''):a[e]=f}};olympe.la.G3=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)}PA(){return Math.sqrt(this.x*this.x+this.y*this.y)}toString(){return`Vector(${this.x}, ${this.y})`}};olympe.la.DT=class{constructor(a,b){this.start=a;this.end=b}};olympe.la.DT.C={Tf:'left',Di:'right',Dh:'bottom',lh:'top'};function Kb(a){return`${a.C}.${a.D}.${a.O}`}
318
+ b[e]?'version.':'');return c},Object.create(null))})};olympe.la.rW=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.BP=(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.BP(a[e],f,''):a[e]=f}};olympe.la.G3=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)}PA(){return Math.sqrt(this.x*this.x+this.y*this.y)}toString(){return`Vector(${this.x}, ${this.y})`}};olympe.la.DT=class{constructor(a,b){this.start=a;this.end=b}};olympe.la.DT.C={Uf:'left',Di:'right',Dh:'bottom',lh:'top'};function Kb(a){return`${a.C}.${a.D}.${a.O}`}
319
319
  olympe.la.Do=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.Do.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.Do.C:new olympe.la.Do(b,c,d,a[4])}cB(a){return this.C!==a.C?this.C>a.C:this.D!==a.D?this.D>a.D:this.O>a.O}xy(a){return this.C!==a.C?this.C<a.C:this.D!==a.D?this.D<a.D:
320
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.Do.C=new olympe.la.Do(Number.NaN,Number.NaN,Number.NaN);olympe.la.ba={br:'utils.binaryConverter',PQ:'utils.base64Converter',qo:'utils.Profiler'};olympe.ra.bf(a=>{Sa(a,olympe.la.ba.br);Ra(a,olympe.la.ba.PQ,olympe.la.ba.br,!0);B(a,olympe.la.ba.qo,olympe.la.sU)},'Utils services');
321
321
  olympe.ra.run([olympe.la.ba.br,olympe.la.ba.qo],(a,b)=>{olympe.la.Mj=()=>a;olympe.Sj().isProfilerEnabled=()=>b.isEnabled();olympe.Sj().startProfiler=()=>b.start();olympe.Sj().stopProfiler=()=>b.stop();olympe.Sj().getProfilerEvents=()=>({events:b.Y,names:Object.fromEntries(b.R.entries()),models:Object.fromEntries(b.O.entries())})});olympe.G.H.la={};olympe.G.H.la.cC=class extends olympe.la.cC{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.ra.bf(a=>{Qa(a,olympe.la.ba.br,olympe.G.H.la.cC)},'olympe.native.html.utils');olympe.fb={};olympe.fb.Je=class{bb(){}R(){}O(){}C(){}qa(){}T(){}Da(){}ca(){}fa(){}trace(){}debug(){}log(){}info(){}warn(){}error(){}fatal(){}};olympe.fb.Je.prototype.fatal=olympe.fb.Je.prototype.fatal;olympe.fb.Je.prototype.error=olympe.fb.Je.prototype.error;olympe.fb.Je.prototype.warn=olympe.fb.Je.prototype.warn;olympe.fb.Je.prototype.info=olympe.fb.Je.prototype.info;olympe.fb.Je.prototype.log=olympe.fb.Je.prototype.log;olympe.fb.Je.prototype.debug=olympe.fb.Je.prototype.debug;olympe.fb.Je.prototype.trace=olympe.fb.Je.prototype.trace;
@@ -498,7 +498,7 @@ olympe.async.Qz=class extends olympe.async.xH{constructor(a,b){super(a,b);this.$
498
498
  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.rT=class{Bd(){return q(function*(){})}Ha(){}fa(){}C(){}qa(){}forEach(){}has(){}get(){}set(){}remove(){}O(){}T(){}R(){}clear(){}$(){}};olympe.Dc.sT=class{D(){}};olympe.Dc.Storage=class{write(){}close(){}};olympe.Dc.Az=class{get(){return null}set(){return this}delete(){}};olympe.Dc.ba={xz:'localStorage.KeyValueDatabaseManager',zw:'localStorage.Storage',Y_:'localStorage.DatacloudStorage',zz:'localStorage.LocalStorage',Wb:'localStorage.Logger',Ir:'localStorage.prefix'};olympe.ra.bf(function(a){Sa(a,olympe.Dc.ba.xz);C(a,olympe.Dc.ba.Ir,[],()=>'olympe');C(a,olympe.Dc.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('localstorage'));B(a,olympe.Dc.ba.zz,olympe.Dc.Az)},'olympe.localstorage');olympe.X={};olympe.X.hf={gz:'urls.FileSvc',fG:'urls.BackupSvc',qL:'urls.RestoreBackupSvc',jr:'urls.GetContext',QH:'urls.GraphDef',zG:'urls.StaticGraphDef',TRANSACTION:'urls.Transaction',yM:'urls.UserTagFromToken',AV:'urls.UserNameFromTag',zV:'urls.UserRoles',AU:'urls.RoleMembers',Hz:'urls.OpenIDSvc',rH:'urls.EventMonitor'};
499
499
  olympe.ra.bf(a=>{E(a,olympe.X.hf.gz,'rest/filesvc');E(a,olympe.X.hf.fG,'rest/backupsvc');E(a,olympe.X.hf.qL,'rest/backupsvc/restore');E(a,olympe.X.hf.Hz,'rest/openid');E(a,olympe.X.hf.jr,'rest/initialData');E(a,olympe.X.hf.QH,'rest/querysvc/graphDef');E(a,olympe.X.hf.zG,'rest/querysvc/graphDef/static');E(a,olympe.X.hf.TRANSACTION,'rest/transaction');E(a,olympe.X.hf.yM,'rest/token');E(a,olympe.X.hf.AV,'rest/authorization/getUserTag');E(a,olympe.X.hf.zV,'rest/authorization/getUserRoles');E(a,olympe.X.hf.AU,
500
500
  'rest/authorization/roleMembers');E(a,olympe.X.hf.rH,'rest/backend/event')});function Hd(a,b){a.validate=b.ack.bind(b);a.T=b.reject.bind(b);a.R=b.Lu();return a}
501
- olympe.X.Ib=class{constructor(a,b,c,d,e,f){this.Ej=c;this.D=a;this.source=b;this.C=d;this.messageType=e;this.O=null!=f?f:null;this.R=!1;this.validate=()=>q(function*(){});this.T=()=>q(function*(){})}static R(a,b,c){const d=olympe.X.Ib.D.wD,e=a.zg();let f;var g=olympe.X.Ib,h=e[olympe.X.Ib.D.DESTINATION],l=e[olympe.X.Ib.D.Hr],m=e[olympe.X.Ib.D.Yz],n=e[olympe.X.Ib.D.bq],p=e[olympe.X.Ib.D.TYPE];b.T=c;return Hd(new g(h,l,m,n,p,b.W(null!=(f=e[d])?f:null)),a)}Lu(){return this.R}$f(){return this.D}Cd(){return this.source}getType(){return this.messageType}zg(){return this.O}ack(){return this.validate()}reject(){return this.T()}gb(a,
501
+ olympe.X.Ib=class{constructor(a,b,c,d,e,f){this.Ej=c;this.D=a;this.source=b;this.C=d;this.messageType=e;this.O=null!=f?f:null;this.R=!1;this.validate=()=>q(function*(){});this.T=()=>q(function*(){})}static R(a,b,c){const d=olympe.X.Ib.D.wD,e=a.zg();let f;var g=olympe.X.Ib,h=e[olympe.X.Ib.D.DESTINATION],l=e[olympe.X.Ib.D.Hr],m=e[olympe.X.Ib.D.Yz],n=e[olympe.X.Ib.D.bq],p=e[olympe.X.Ib.D.TYPE];b.T=c;return Hd(new g(h,l,m,n,p,b.W(null!=(f=e[d])?f:null)),a)}Lu(){return this.R}ag(){return this.D}Cd(){return this.source}getType(){return this.messageType}zg(){return this.O}ack(){return this.validate()}reject(){return this.T()}gb(a,
502
502
  b){const c=olympe.X.Ib.D.wD,d={[olympe.X.Ib.D.DESTINATION]:this.D,[olympe.X.Ib.D.Hr]:this.source,[olympe.X.Ib.D.Yz]:this.Ej,[olympe.X.Ib.D.bq]:this.C,[olympe.X.Ib.D.TYPE]:this.messageType};null!==this.O&&(a.$=b,d[c]=a.gb(this.O));return d}toString(){return`Message(dest: ${this.D}, src: ${this.source}, seqId: ${this.Ej}, topic: ${this.C}, type: ${this.messageType}, payload: ${this.O})`}};olympe.X.Ib.D={DESTINATION:'d',Hr:'s',Yz:'i',bq:'tp',TYPE:'t',wD:'p',xo:'tk'};
503
503
  olympe.X.Ib.C={SEND:0,GET:1,SUBSCRIBE:2,PUBLISH:3,YD:4,ol:5,bq:6,xe:7,GL:10,nM:11,Vp:12,vM:13,KD:14,LH:15};olympe.X.Ib.O={Oz:'__hc_i',ZK:'__hc_o'};olympe.X.OD=class extends olympe.X.Ib{constructor(a,b,c,d,e,f,g){super(a,b,d,e,f,g);this.Ch=c}static R(a,b,c){const d=olympe.X.Ib.D.wD,e=a.zg();let f;var g=olympe.X.OD,h=e[olympe.X.Ib.D.DESTINATION],l=e[olympe.X.Ib.D.Hr],m=e[olympe.X.Ib.D.xo],n=e[olympe.X.Ib.D.Yz],p=e[olympe.X.Ib.D.bq],r=e[olympe.X.Ib.D.TYPE];b.T=c;b=new g(h,l,m,n,p,r,b.W(null!=(f=e[d])?f:null));Hd(b,a);return b}Gk(){return this.Ch}gb(a,b){return Object.assign(super.gb(a,b),{[olympe.X.Ib.D.xo]:this.Ch})}toString(){return`SignedMessage{dest: ${this.D}, src: ${this.source}, seqId: ${this.Ej}, topic: ${this.C}, type: ${this.messageType}, token: ${this.Ch}, payload: ${this.O}}`}};const Id=olympe.X.Ib.C.SEND,Jd=olympe.X.Ib.C.GET,Kd=olympe.X.Ib.C.SUBSCRIBE,Ld=olympe.X.Ib.C.Vp,Md=olympe.X.Ib.C.GL,Nd=olympe.X.Ib.C.xe,Od=olympe.X.Ib.C.YD,Pd=olympe.X.Ib.C.bq,Qd=olympe.X.Ib.C.nM;
504
504
  olympe.X.Vg=class{constructor(a,b,c){this.C=a;this.La=b;this.D=c;this.hm=null;Object.defineProperties(this,{La:{enumerable:!1},D:{enumerable:!1}})}Ev(){return null!==this.hm?Promise.resolve(this.hm):Rd(this.La,this.C).then(a=>this.hm=a)}Lu(){return this.C.Lu()}QP(){return this.C.getType()}source(){return this.C.Cd()}body(){return this.C.zg()}ack(){const a=this;return q(function*(){if(a.C.getType()!==Id)throw Error('Should only call `ack` on SEND requests');yield a.C.ack();yield a.La.ah(a.C,Md)})}ah(a){const b=
@@ -523,8 +523,8 @@ function te(a,b,c,d){var e;const f=null==(e=a.O)?void 0:e.get(b);if(null==f?0:Wd
523
523
  olympe.X.eC=class{constructor(a,b,c,d,e,f,g){this.V=olympe.fb.tb('bus');this.W=olympe.fb.tb('communication');this.Ha=b;this.T=c;this.Mb=e;this.xc=f;this.Da=new Map;this.C=`${'olympe-runtime'}-${olympe.la.df()}`;this.eb=g.get('requestTimeout');this.Zb=g.get('subscriptionsRefreshRate');this.yb=g.get('allowGuest');b=rxjs.combineLatest([g.get('connection'),this.T.Ch.va().asObservable(),this.Ha.kn().asObservable()]).pipe(rxjs.operators.map(([h,l,m])=>m.valueOf()?Object.assign({},h,{hm:l.Bg(),Ch:l.ei()}):
524
524
  null)).pipe(rxjs.operators.distinctUntilChanged((h,l)=>[...Object.keys(null!=l?l:{})].every(m=>(null!=h?h:{})[m]===(null!=l?l:{})[m])));this.D=a.ca(b,this.C);ee(this);this.R='';ie(this,g.get('topicPrefix'));this.Sc=this.Oa=0;this.O=null;this.$=!1;this.ca=[];this.qa=new Map;this.fa=new Set;this.ob=new Map;this.Fa=new olympe.la.Zt(this.eb);this.Ka=this.Eb=!1}connect(){return new Promise((a,b)=>{const c=d=>{b(d);this.ca.forEach(e=>e(d));this.ca=[]};Zd(this)?a():this.$||this.Eb?this.ca.push(d=>d?b(d):
525
525
  a()):be(this.Ha)?(this.Eb=!0,olympe.j.vs([this.T.Dx()],d=>{this.Eb=!1;d.valueOf()||this.yb?(this.yb||ue(this.T,()=>this.disconnect().then()),this.$=!0,this.ca.push(e=>e?b(e):a()),this.D.connect().catch(e=>{this.$=!1;c(e)})):c(Error('Guest user is not allowed to connect to RabbitMQ, you can allow guest with the bus.allowGuest oConfig parameter!'))})):c(Error('Cannot connect to the bus if working offline'))})}disconnect(){const a=this;return q(function*(){a.V.debug('Disconnecting from bus');a.T.W.delete('busLogoutCallback');
526
- yield a.D.disconnect()})}Oh(a,b=!1){const c=this;return q(function*(){if(!c.$||a.getType()!==olympe.X.Ib.C.Vp){Zd(c)||(yield c.connect());var d=a.D.startsWith('olympe-runtime'),e=d?a.$f():le(c,a.$f(),!0);try{me(c,a.Ej.toString(),'serialize');var f=a.gb(c.Mb,c.ed.bind(c,a.C,a.Ej));c.W.C()&&c.W.C()&&c.W.debug(`BUS > #${e}:`,JSON.stringify(f))}catch(h){throw Error(`An error occurred while serializing the message (seqId=${a.Ej}): ${h}`);}var g=ae.has(a.getType());yield c.D.Oh(a.Ej,e,f,{mandatory:g,yQ:!(d||
527
- b)});me(c,a.Ej.toString(),'publish',(new Map).set('destination',a.$f()).set('messageType',a.getType().toString()))}})}ed(a,b,c){const d=this.Sc++;(()=>{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.Oh(new olympe.X.Ib(f,e.C,b,a,olympe.X.Ib.C.ol,p)),h=olympe.X.sl.dr,l=olympe.X.sl.mt,m=olympe.X.sl.xe;let n=0;try{for(const p=ia(c);;){const r=yield p.next();if(r.done)break;const t=r.value;
526
+ yield a.D.disconnect()})}Oh(a,b=!1){const c=this;return q(function*(){if(!c.$||a.getType()!==olympe.X.Ib.C.Vp){Zd(c)||(yield c.connect());var d=a.D.startsWith('olympe-runtime'),e=d?a.ag():le(c,a.ag(),!0);try{me(c,a.Ej.toString(),'serialize');var f=a.gb(c.Mb,c.ed.bind(c,a.C,a.Ej));c.W.C()&&c.W.C()&&c.W.debug(`BUS > #${e}:`,JSON.stringify(f))}catch(h){throw Error(`An error occurred while serializing the message (seqId=${a.Ej}): ${h}`);}var g=ae.has(a.getType());yield c.D.Oh(a.Ej,e,f,{mandatory:g,yQ:!(d||
527
+ b)});me(c,a.Ej.toString(),'publish',(new Map).set('destination',a.ag()).set('messageType',a.getType().toString()))}})}ed(a,b,c){const d=this.Sc++;(()=>{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.Oh(new olympe.X.Ib(f,e.C,b,a,olympe.X.Ib.C.ol,p)),h=olympe.X.sl.dr,l=olympe.X.sl.mt,m=olympe.X.sl.xe;let n=0;try{for(const p=ia(c);;){const r=yield p.next();if(r.done)break;const t=r.value;
528
528
  yield g({id:d,i:n++,e:h,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}ah(a,b,c){return this.send(a.Ej,a.Cd(),a.Cd(),b,c)}send(a,b,c,d,e){return this.Oh(new olympe.X.Ib(c,this.C,a,b,d,e))}Gc(a,b){const c=olympe.X.Ib.D.Hr;a=olympe.X.Ib.D.Yz;var d=olympe.X.Ib.D.xo;const e=b.zg();this.W.C()&&this.W.debug(`BUS < #${b.T}:`,JSON.stringify(e));me(this,e[a],'consumed');a=void 0===e[d]?olympe.X.Ib.R:olympe.X.OD.R;d=null;let f=!1;try{d=
529
529
  a.call(null,b,this.Mb,h=>{f=!0;return oe(this,e[c],h).stream}),ae.has(d.getType())||b.ack().catch(h=>this.V.error(`Failed to ack message: ${h}`))}catch(h){this.V.error(`An error occurred while trying to deserialize the message: ${JSON.stringify(e)} with error ${h}`);b.reject().catch(l=>this.V.error(`Failed to reject message: ${l}`));return}const g=d;b=g.Ej;me(this,b.toString(),'deserialized',(new Map).set('source',g.Cd()).set('messageType',g.getType().toString()));switch(g.getType()){case olympe.X.Ib.C.ol:pe(this,
530
530
  g);break;case olympe.X.Ib.C.LH:this.ah(g,olympe.X.Ib.C.KD).catch(l=>this.V.error(`Failed to reply to get session message: ${l}`));break;case olympe.X.Ib.C.KD:let h;null==(h=this.ob.get(b))||h.forEach(l=>l(g.Cd()));break;default:f&&this.ah(g,olympe.X.Ib.C.KD).catch(l=>this.V.error(`Failed to send session id for stream publishing: ${l}`));try{let l;null==(l=this.qa.get(g.C))||l(g)}catch(l){this.V.error(`An error occurred while trying to handle the message: ${l}`)}}}};olympe.X.eC.D='Timeout';
@@ -535,12 +535,12 @@ a.V.error(g);if(500===f.nh()&&'Connection refused'===f.statusText)throw new olym
535
535
  break;default:throw Error('State machine error in server manager. Should not get in state '+b);}}
536
536
  function Je(a){const b=olympe.X.Oc.C.$F,c=olympe.X.Oc.C.oA,d=olympe.X.Oc.C.gg,e=ed(a.ca);a.V.info(`Trying to wakeup orchestrator with ${e}`);He(a,c);const f=a.Eb.R(a.ca);f.ca(g=>{const h=JSON.parse(g);a.V.info(`${e}: ${null==h?void 0:h.status}`);switch(null==h?void 0:h.status){case 'ready':He(a,b);f.close();break;case 'asleep':a.V.info(`Trying to wakeup orchestrator with ${e}`);f.send('{"action": "wakeup"}');He(a,c);break;case 'waking-up':break;default:a.V.warn(`Invalid message from ${e}: ${g}`),
537
537
  f.close(),He(a,d)}});f.D(()=>{a.V.warn(`Communication with ${e} failed.`);f.close();He(a,d)});f.fa(()=>{a.V.info(`Checking orchestrator status with ${e}`);f.send('{"action": "status"}')})}
538
- function Ke(a,b){a.V.log('Initializing COMMUNICATION layer');if(a.V.C()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.V.debug(c.join('\n\t'))}Le(a,olympe.X.Fj.xe,c=>{switch(c.c){case olympe.X.kw.vV:a.V.error('Unknown message sent to the server:',olympe.X.Oc.Vf[c.s]);break;case olympe.X.kw.ER:a.V.error('Fatal error, the last message is probably too big according to the websocket config.'),a.D.forEach((d,e)=>{null!==d.iF&&Me(a,e,c.i)})}});Le(a,olympe.X.Fj.Vf,c=>{c.c===
538
+ function Ke(a,b){a.V.log('Initializing COMMUNICATION layer');if(a.V.C()){const c=['Server layer parameters:'];b.forEach((d,e)=>{c.push(e+'="'+d+'"')});a.V.debug(c.join('\n\t'))}Le(a,olympe.X.Fj.xe,c=>{switch(c.c){case olympe.X.kw.vV:a.V.error('Unknown message sent to the server:',olympe.X.Oc.Wf[c.s]);break;case olympe.X.kw.ER:a.V.error('Fatal error, the last message is probably too big according to the websocket config.'),a.D.forEach((d,e)=>{null!==d.iF&&Me(a,e,c.i)})}});Le(a,olympe.X.Fj.Wf,c=>{c.c===
539
539
  olympe.X.kw.wU&&'boolean'===typeof c.a&&a.xg.update(olympe.j.lc(c.a))});olympe.j.Za(a.fa,()=>{let c=!1;olympe.j.Za(a.Da.C(),()=>{c&&(a.yb(),a.Ka(),c=!1);bd(a.yb.bind(a),a.Zb);bd(a.Ka.bind(a),a.Fa)},()=>{a.O=[0,0,a.O[2]];c=!0})},()=>{a.W=null;$c(a.Ka.bind(a),a.Fa)});jb(a.R,(c,d)=>{d.throw(Error('Stream timeout'))});a.V.log('DONE initializing SERVER layer (waiting for NET layer connection to be opened)')}function Ne(a){return a.state===olympe.X.Oc.C.Uk}
540
540
  function Oe(a,b,c,d=!1){const e=f=>{if(0===b.length||b.includes(f))d&&a.ob.delete(e),c(f)};a.ob.add(e);e(a.state)}function Pe(a,b,c,d,e){a.qa.isEnabled()&&tb(a.qa,'com',d.set('id',`${b}`).set('channel','ws').set('eventType',c),e)}
541
541
  function Ie(a){const b=olympe.X.Oc.C.INIT,c=olympe.X.Oc.C.CONNECTING,d=olympe.X.Oc.C.Uk,e=olympe.X.Oc.C.gg,f=olympe.X.Oc.C.zr,g=olympe.X.Oc.C.oA,h=olympe.X.Oc.C.xe;if(null===a.T)a.V.warn('Trying to open a connection to the orchestrator without a valid server request. Ignoring...'),He(a,e);else{null!==a.C&&(a.C.$(null),a.C.close());var l,m;a.V.log(`Asking NET layer for a connection to ${null==(l=a.T)?void 0:dd(l)}:${null==(m=a.T)?void 0:m.port}...`);a.C=a.Eb.R(a.T);a.C.fa(a.Gc.bind(a));a.C.ca(a.Sc.bind(a));
542
542
  a.C.$(()=>{a.C=null;a.state===d?He(a,f):a.state!==h&&a.state!==g&&He(a,e)});a.ca&&a.state===b&&a.C.D(()=>{a.C.D(null);a.state===c&&Je(a);a.ca=null});a.state!==f&&He(a,c)}}function Qe(a,b,c,d){const e=a.ed;a.ed++;c={message:{seqId:e,messageFamily:b,payload:c},Lm:d?Re(d):null,iF:null};a.D.set(e,c);Pe(a,e,'publish',(new Map).set('family',b));d=[olympe.X.Oc.C.CONNECTING,olympe.X.Oc.C.zr];(Ne(a)||b===olympe.X.Fj.mz&&d.includes(a.state))&&Se(a,e,c)}
543
- function Re(a){const b=olympe.X.Oc.D.Aw;return c=>{if(null!==c&&void 0!==c){var d=null,e=c.s;if(void 0!==e&&e!==b){d=void 0!==olympe.X.Oc.Vf[e]?`Status code = ${e} [${olympe.X.Oc.Vf[e]}]`:`Status code = ${e}`;e=olympe.error.zL;const f=c.error;'string'===typeof f&&0<f.length&&(f.includes('Message timeout')&&(e=olympe.error.hA),d+=`\nReason:\n${f}`);d=new e('Rejected by orchestrator:\n'+d)}a(d,c)}}}
543
+ function Re(a){const b=olympe.X.Oc.D.Aw;return c=>{if(null!==c&&void 0!==c){var d=null,e=c.s;if(void 0!==e&&e!==b){d=void 0!==olympe.X.Oc.Wf[e]?`Status code = ${e} [${olympe.X.Oc.Wf[e]}]`:`Status code = ${e}`;e=olympe.error.zL;const f=c.error;'string'===typeof f&&0<f.length&&(f.includes('Message timeout')&&(e=olympe.error.hA),d+=`\nReason:\n${f}`);d=new e('Rejected by orchestrator:\n'+d)}a(d,c)}}}
544
544
  function Se(a,b,c){var d=c.message;a.V.C()&&a.V.debug('WS >',JSON.stringify(d.payload));(d=a.C.send(JSON.stringify(d)))?null===c.Lm?a.D.delete(b):c.iF=Date.now():olympe.j.Pa(a.Da.C()).valueOf()&&He(a,olympe.X.Oc.C.zr);return d}function Le(a,b,c,d){void 0===d&&(d=olympe.la.df());let e=a.Ha.get(b);void 0===e&&(e=new Map,a.Ha.set(b,e));e.set(d,c);return d}function Te(a,b,c){a=a.Ha.get(b);void 0!==a&&a.delete(c)}
545
545
  function Me(a,b,c){if(a.D.has(b)){const {Lm:d}=a.D.get(b);a.D.delete(b);null==d||d({s:olympe.X.Oc.D.rI,error:c})}}function Ue(a,b){a.V.error(b);He(a,olympe.X.Oc.C.xe)}function Ve(a,b,c){a.xc=c?1E3*c:-1;let d;a.V.info(`Connected to ${null==(d=a.T)?void 0:d.oe()}`,'|',b?`server version: ${b}`:'','|',null!==c?`activity timeout: ${c}s`:'');b=Array.from(a.D).sort(([e],[f])=>e-f);for(const [e,f]of b)if(!Se(a,e,f))return;He(a,olympe.X.Oc.C.Uk)}
546
546
  function We(a,b){const c=olympe.X.sl.dr,d=olympe.X.sl.mt,e=olympe.X.sl.xe,{id:f,e:g}=b;let h=a.R.get(f);h||(h=new olympe.X.UK(()=>a.R.delete(f)),a.R.set(f,h));if(g===c){hb(a.R.C,f);const {i:l,c:m}=b;h.write(m,l).catch(n=>{h.throw(n)})}else g===d?h.complete(b.s):g===e&&h.throw(Error(`Received stream error: ${b.reason}`))}
@@ -572,8 +572,8 @@ a).error('Failed to unsubscribe from a topic '+r)),l=null)};e.We(p);$d(f,a,a,df,
572
572
  ke(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})}Pu(a){const b=this;return q(function*(){yield $d(b.La,b.D,b.D,cf,a,!1,b.La.eb)})}T(a,b){var c=new olympe.X.Vg(b,this.La,this);switch(b.getType()){case ef:var d=c.body().filter(f=>{let g;return!(null==(g=this.C)?0:hb(g,f))});c.ah(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;
573
573
  null==(e=this.O)||e.call(this,c);break;case bf:if(b.zg()===lf){c.ah(mf).catch(f=>this.V.error(`Failed PING-PONG reply: ${f}`));break}default:a.next(c)}}};olympe.X.Rd.prototype.multicast=olympe.X.Rd.prototype.Pu;olympe.X.Rd.prototype.listen=olympe.X.Rd.prototype.Nu;olympe.X.Rd.observe=olympe.X.Rd.observe;olympe.X.Rd.get=olympe.X.Rd.get;olympe.X.Rd.send=olympe.X.Rd.send;olympe.X.Rd.getPublisher=olympe.X.Rd.RO;olympe.X.Rd.publish=olympe.X.Rd.Oh;olympe.X.Rd.prototype.stop=olympe.X.Rd.prototype.stop;
574
574
  olympe.X.Rd.prototype.setUnsubscriptionHandler=olympe.X.Rd.prototype.sQ;olympe.X.UK=class{constructor(a){this.C=0;this.buffer=[];this.size=null;this.stream=new olympe.la.stream.aq;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!==
575
- 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 pf(a,b){a.C=b;a.D.forEach(c=>c());a.D=[];return a}olympe.X.Tz=class{constructor(a,b){this.La=b;this.D=[];this.O=a;this.C=null}Oh(a){const b=this;return q(function*(){b.C||(yield new Promise(c=>{b.D.push(()=>c())}));yield $d(b.La,b.C,b.O,olympe.X.Ib.C.PUBLISH,a,!0)})}};olympe.X.Tz.prototype.publish=olympe.X.Tz.prototype.Oh;olympe.X.Fj={dr:1,Dp:2,xe:3,ur:4,Q_:5,mz:6,Vf:7};olympe.X.kw={mz:1,vV:2,ER:3,Vp:5,wU:1,xV:2};olympe.X.sl={dr:0,mt:1,xe:2};olympe.X.Oc.C={INIT:'initialize',CONNECTING:'connecting',gg:'disconnected',dH:'disconnecting',Uk:'connected',zr:'reconnecting',oA:'waking',$F:'awake',xe:'error'};olympe.X.Oc.O={OK:1,KR:-1,iS:-2,nV:-3};olympe.X.Oc.D={Aw:0,rI:23};
576
- olympe.X.Oc.Vf={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',
575
+ 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 pf(a,b){a.C=b;a.D.forEach(c=>c());a.D=[];return a}olympe.X.Tz=class{constructor(a,b){this.La=b;this.D=[];this.O=a;this.C=null}Oh(a){const b=this;return q(function*(){b.C||(yield new Promise(c=>{b.D.push(()=>c())}));yield $d(b.La,b.C,b.O,olympe.X.Ib.C.PUBLISH,a,!0)})}};olympe.X.Tz.prototype.publish=olympe.X.Tz.prototype.Oh;olympe.X.Fj={dr:1,Dp:2,xe:3,ur:4,Q_:5,mz:6,Wf:7};olympe.X.kw={mz:1,vV:2,ER:3,Vp:5,wU:1,xV:2};olympe.X.sl={dr:0,mt:1,xe:2};olympe.X.Oc.C={INIT:'initialize',CONNECTING:'connecting',gg:'disconnected',dH:'disconnecting',Uk:'connected',zr:'reconnecting',oA:'waking',$F:'awake',xe:'error'};olympe.X.Oc.O={OK:1,KR:-1,iS:-2,nV:-3};olympe.X.Oc.D={Aw:0,rI:23};
576
+ olympe.X.Oc.Wf={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',
577
577
  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.X.ba={km:'com.ConnectivityManager',Ut:'com.ServerManager',qG:'com.BusManager',pz:'com.HttpManager',ml:'com.Serializer',Wb:'com.Logger',Hr:'com.Source',wM:'com.Urls',W1:'com.peerFileSvcUrl'};
578
578
  olympe.X.Config={Yy:'defaultHost',HG:'com.computedHost',JU:'server.host',LU:'server.port',MU:'server.ssl',HL:'server.basePath',bN:'server.wsPath',ED:'server.reconnectionDelay',YK:'server.pingInterval',aN:'server.messageTimeout',sL:'server.retryHttpOnOverload',hC:'server.clientVersion',KL:'server.serverVersion',NU:'server.wakeUpService',UQ:'bus.host',VQ:'bus.path',WQ:'bus.port',YQ:'bus.vhost',XQ:'bus.ssl',vG:'bus.requestTimeout',wG:'bus.subscriptionRefreshRate',uG:'bus.reconnectionDelay',pG:'bus.heartbeat',
579
579
  sG:'bus.queueExpiration',tG:'bus.queuePrefetch',bC:'bus.allowGuest',oM:'bus.topicPrefix',rG:'bus.pingPongChunk'};
@@ -605,8 +605,8 @@ olympe.xa.Ec=class{constructor(a,b,c,d,e,f,g,h,l){this.V=a;this.fa=b;this.D=c;th
605
605
  this.O=new Map;this.W=new Map;this.$=new olympe.la.Zt(l.get('cacheTokenTimeout'));h.forEach(m=>{const n=m.O();if(this.oj.has(n))throw Error('Provider "'+n+'" has already been registered !');this.oj.set(n,m)});zf(this);Ff(this,g.C())}Dx(){const a=olympe.xa.Ec.C.Wn,b=olympe.xa.Ec.C.Wv,c=olympe.xa.Ec.C.xe,d=olympe.j.Ya(olympe.j.ia);olympe.j.Xa([this.state],e=>{e===a?d.update(olympe.j.ia.C):e===b?d.update(olympe.j.ia.pb):e===c?(this.V.error('Authentication failed.'),d.update(olympe.j.ia.pb)):d.clear()});
606
606
  return d.va()}Sq(a){if(olympe.j.Pa(this.state)===olympe.xa.Ec.C.Wn){var b=re(this);!Gf(this)&&b&&this.oj.get(b.tr()).Sq(b,(c,d)=>{c?(this.V.error('Failed to refresh token, error message: ',c.message),this.Ou().catch(e=>this.V.error(`Failed to logout after wrong refresh ${e}`))):d&&Hf(this,d);a(c)})}}getState(){return this.state.va()}Bg(){return this.Ch.va().Bg()}Hk(){return this.Ch.va().Hk()}zu(){return this.Ch.va().zu()}Iu(a,b){if(hb(this.$.C,a))b(null,this.$.get(a));else{var c,d=null==(c=olympe.j.Pa(this.Ch.va()))?
607
607
  void 0:c.ei();this.D.Iu(a,d,(e,f)=>{'string'===typeof f&&this.$.set(a,f);b(e,f)})}}Ou(){return Gf(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)||Df(c).catch(d=>this.V.error('Failed to clear token',d));rf(this.D,re(this),d=>{d?(Lf(this,'Logout request rejected:',d),b(d)):(this.V.debug('Logout request acknowledged'),a())})})}Gn(a){olympe.j.Pa(this.state.va())===olympe.xa.Ec.C.Wn&&
608
- this.D.Gn(b=>{b&&this.V.error('Was not able to send the auth keep alive message:',b.message);null==a||a(b)})}Fa(a,b){const c=null===this.C?olympe.xa.Ec.O.Uf:this.C;this.C=null;if(!a||a instanceof olympe.error.SK){null===a?this.V.info(`User ${b.Bg()} (#${b.Hk()}) successfully authenticated`):this.V.info(`User ${b.Bg()} (#${b.Hk()}) recovered from token, while offline`);this.Ch.update(b);wf(this,olympe.xa.Ec.C.Wn);Mf(this,a,c);let d;null==(d=this.storage)||Af(d,b).catch(e=>this.V.error(e))}else{let d;
609
- null==(d=this.storage)||Df(d).catch(e=>this.V.error(e));this.error.update(olympe.j.mc(a.message));Cf(this,'authentication rejected: '+a.message);Mf(this,a,c)}this.O.has('login')&&this.O.delete('login')}};olympe.xa.Ec.C={INIT:'init',Hy:'authenticating',Wv:'guest',Wn:'authenticated',xe:'error'};olympe.xa.Ec.O={Uf:'manual',$s:'auto',xo:'tokenOnFirstConnection'};olympe.xa.Ec.D={Gy:'accepted',hI:'redirect'};olympe.xa.Ug=class{constructor(a,b){this.V=a;this.D=b;this.C=null}O(){}Gk(){}R(a,b){const c=()=>{this.C=setTimeout(()=>this.D.Gn(d=>{d?b(d,null):(b(null,null),c())}),this.D.C.xc)};c();return()=>{this.C&&clearTimeout(this.C);this.C=null}}Sq(a,b){this.D.Gn(c=>{b(c,null)})}};olympe.xa.Ug.C={SAML:'saml',OAUTH2:'openID',SRP:'srp',sD:'olympeToken'};function Jf(a,b){a.set('password',b)}function Nf(a){return a.get('idpName')}
608
+ this.D.Gn(b=>{b&&this.V.error('Was not able to send the auth keep alive message:',b.message);null==a||a(b)})}Fa(a,b){const c=null===this.C?olympe.xa.Ec.O.Vf:this.C;this.C=null;if(!a||a instanceof olympe.error.SK){null===a?this.V.info(`User ${b.Bg()} (#${b.Hk()}) successfully authenticated`):this.V.info(`User ${b.Bg()} (#${b.Hk()}) recovered from token, while offline`);this.Ch.update(b);wf(this,olympe.xa.Ec.C.Wn);Mf(this,a,c);let d;null==(d=this.storage)||Af(d,b).catch(e=>this.V.error(e))}else{let d;
609
+ null==(d=this.storage)||Df(d).catch(e=>this.V.error(e));this.error.update(olympe.j.mc(a.message));Cf(this,'authentication rejected: '+a.message);Mf(this,a,c)}this.O.has('login')&&this.O.delete('login')}};olympe.xa.Ec.C={INIT:'init',Hy:'authenticating',Wv:'guest',Wn:'authenticated',xe:'error'};olympe.xa.Ec.O={Vf:'manual',$s:'auto',xo:'tokenOnFirstConnection'};olympe.xa.Ec.D={Gy:'accepted',hI:'redirect'};olympe.xa.Ug=class{constructor(a,b){this.V=a;this.D=b;this.C=null}O(){}Gk(){}R(a,b){const c=()=>{this.C=setTimeout(()=>this.D.Gn(d=>{d?b(d,null):(b(null,null),c())}),this.D.C.xc)};c();return()=>{this.C&&clearTimeout(this.C);this.C=null}}Sq(a,b){this.D.Gn(c=>{b(c,null)})}};olympe.xa.Ug.C={SAML:'saml',OAUTH2:'openID',SRP:'srp',sD:'olympeToken'};function Jf(a,b){a.set('password',b)}function Nf(a){return a.get('idpName')}
610
610
  olympe.xa.Request=class{constructor(){this.attributes=new Map}set(a,b){olympe.j.Xa([b],c=>{this.attributes.set(a.toLocaleLowerCase(),c.toString())})}get(a){(a=this.attributes.get(a.toLowerCase()))&&a.Kh&&(a=F(a));return a?a.valueOf():a}Bg(){return this.get('username')}ei(){return this.get('nonce')}toString(){return this.Bg()+(this.ei()?' with nonce':'')+(this.get('password')?' with password':'')+(Nf(this)?` with idp name ${Nf(this)}`:'')}};olympe.xa.Nr=class{constructor(a,b,c,d={},e=null){this.hm=a;this.Ev=b;this.nonce=c;this.C=e;this.D=d}Bg(){return this.hm}Hk(){return this.Ev}ei(){return this.nonce}zg(){return this.D}zu(){return null}zm(){return this.C}gb(){const a=olympe.la.Mj(),b=Object.assign({},{user:this.hm,userTag:this.Ev,nonce:this.nonce},this.C&&{idpName:this.C},{payload:this.D});return olympe.la.oN(db(a,JSON.stringify(b)))}tr(){return olympe.xa.Ug.C.SRP}};k=olympe.xa.Nr.prototype;k.Bg.K=new olympe.j.J(()=>String,[]);
611
611
  k.Hk.K=new olympe.j.J(()=>String,[]);k.ei.K=new olympe.j.J(()=>String,[]);k.zg.K=new olympe.j.J(()=>Object,[]);k.zu.K=new olympe.j.J(()=>String,[]);k.zm.K=new olympe.j.J(()=>String,[]);k.gb.K=new olympe.j.J(()=>String,[]);k.tr.K=new olympe.j.J(()=>String,[]);function sf(a){return a.zg().access_token||null}function Of(a){return 1E3*parseInt(a.zg().access_token_exp||'0',10)}olympe.xa.Lz=class extends olympe.xa.Nr{constructor(a,b,c,d,e){super(a,b,c,d,e);this.O=Date.now()}zu(){return sf(this)}tr(){return olympe.xa.Ug.C.OAUTH2}};olympe.xa.DL=class extends olympe.xa.Nr{constructor(a,b,c,d,e,f){super(a,b,c,e,f);this.O=d}zu(){return this.O}tr(){return olympe.xa.Ug.C.SAML}gb(){const a=olympe.la.Mj(),b=Object.assign({},{user:this.Bg(),userTag:this.Hk(),nonce:this.ei()},this.zm()&&{idpName:this.zm()},{payload:this.zg(),fullToken:this.O});return olympe.la.oN(db(a,JSON.stringify(b)))}};function vf(a){let b;return null!=(b=a.db.get('main','redirectTo'))?b:null}function Af(a,b){return a.D.Bd(()=>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 Df(a){return a.D.Bd(()=>a.db.remove('main',a.C).catch(b=>{a.V.error(`Error when trying to remove the token from the auth store: ${b}`)}))}
612
612
  olympe.xa.MQ=class{constructor(a,b,c){this.O=a;this.V=b;this.C='OlympeToken-'+c.C;this.D=new olympe.la.promise.Xt;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)})})}Gk(){this.V.debug(`olympe.auth.AuthStorage: retrieve token with key ${this.C}`);return this.D.Bd(()=>{const a=this;return q(function*(){let b;try{b=
@@ -662,14 +662,14 @@ olympe.N.media.yi.prototype.setAudioEnabled=olympe.N.media.yi.prototype.av;olymp
662
662
  olympe.N.Sa.Ua.Map.prototype.setMinZoom=olympe.N.Sa.Ua.Map.prototype.qv;olympe.N.Sa.Ua.Map.prototype.setMaxBounds=olympe.N.Sa.Ua.Map.prototype.nv;olympe.N.Sa.Ua.Map.prototype.flyToBounds=olympe.N.Sa.Ua.Map.prototype.wu;olympe.N.Sa.Ua.Map.prototype.flyTo=olympe.N.Sa.Ua.Map.prototype.vu;olympe.N.Sa.Ua.Map.prototype.panBy=olympe.N.Sa.Ua.Map.prototype.Ru;olympe.N.Sa.Ua.Map.prototype.panTo=olympe.N.Sa.Ua.Map.prototype.Tu;olympe.N.Sa.Ua.Map.prototype.fitWorld=olympe.N.Sa.Ua.Map.prototype.uu;
663
663
  olympe.N.Sa.Ua.Map.prototype.fitBounds=olympe.N.Sa.Ua.Map.prototype.tu;olympe.N.Sa.Ua.Map.prototype.setZoomAround=olympe.N.Sa.Ua.Map.prototype.yv;olympe.N.Sa.Ua.Map.prototype.zoomOut=olympe.N.Sa.Ua.Map.prototype.Gv;olympe.N.Sa.Ua.Map.prototype.zoomIn=olympe.N.Sa.Ua.Map.prototype.Fv;olympe.N.Sa.Ua.Map.prototype.registerLatitudeCallback=olympe.N.Sa.Ua.Map.prototype.Jx;olympe.N.Sa.Ua.Map.prototype.registerLongitudeCallback=olympe.N.Sa.Ua.Map.prototype.Kx;olympe.N.Sa.Ua.Map.prototype.setLatitude=olympe.N.Sa.Ua.Map.prototype.Gs;
664
664
  olympe.N.Sa.Ua.Map.prototype.setLongitude=olympe.N.Sa.Ua.Map.prototype.Hs;olympe.N.Sa.Ua.Map.prototype.registerZoomCallback=olympe.N.Sa.Ua.Map.prototype.Lx;olympe.N.Sa.Ua.Map.prototype.setZoom=olympe.N.Sa.Ua.Map.prototype.Rs;olympe.N.Sa.Ua.Map.prototype.updateTileLayer=olympe.N.Sa.Ua.Map.prototype.Dv;olympe.N.Sa.Ua.Map.prototype.removeGeoJson=olympe.N.Sa.Ua.Map.prototype.Vu;olympe.N.Sa.Ua.Map.prototype.addGeoJson=olympe.N.Sa.Ua.Map.prototype.Lw;olympe.N.Sa.Ua.Map.prototype.removeMarker=olympe.N.Sa.Ua.Map.prototype.zs;
665
- olympe.N.Sa.Ua.Map.prototype.addMarkers=olympe.N.Sa.Ua.Map.prototype.Ow;olympe.N.Sa.Ua.Map.prototype.addMarker=olympe.N.Sa.Ua.Map.prototype.mu;olympe.N.Sa.Ua.Map.prototype.setView=olympe.N.Sa.Ua.Map.prototype.Qs;olympe.N.Sa.Ua.Map.C={qK:'MAPBOX',aU:'OPENTOPOMAP',K1:'OPENSTREETMAP',NONE:'NONE'};olympe.N.P={};olympe.N.P.Ei=class extends olympe.N.F.mb{constructor(){super()}Fk(){}vy(){}appendChild(){}removeChild(){}sx(){}CE(){}};olympe.N.P.Ei.prototype.getImageUrl=olympe.N.P.Ei.prototype.CE;olympe.N.P.Ei.prototype.getImageContent=olympe.N.P.Ei.prototype.sx;olympe.N.P.Ei.prototype.removeChild=olympe.N.P.Ei.prototype.removeChild;olympe.N.P.Ei.prototype.appendChild=olympe.N.P.Ei.prototype.appendChild;olympe.N.P.Ei.prototype.setViewbox=olympe.N.P.Ei.prototype.vy;olympe.N.P.Ei.prototype.getSvgDefsElement=olympe.N.P.Ei.prototype.Fk;olympe.N.P.Ae=class extends olympe.N.zf{ua(){}setAttribute(){}lv(){}ja(){}Ff(){}getParent(){}Pf(){}Jo(){}rd(){}Bh(){}Ks(){}};olympe.N.P.Ae.prototype.setPointerEvents=olympe.N.P.Ae.prototype.Ks;olympe.N.P.Ae.prototype.setIgnoreUserInteraction=olympe.N.P.Ae.prototype.Bh;olympe.N.P.Ae.prototype.setHidden=olympe.N.P.Ae.prototype.rd;olympe.N.P.Ae.prototype.getContainer=olympe.N.P.Ae.prototype.Jo;olympe.N.P.Ae.prototype.setContainer=olympe.N.P.Ae.prototype.Pf;olympe.N.P.Ae.prototype.getParent=olympe.N.P.Ae.prototype.getParent;
665
+ olympe.N.Sa.Ua.Map.prototype.addMarkers=olympe.N.Sa.Ua.Map.prototype.Ow;olympe.N.Sa.Ua.Map.prototype.addMarker=olympe.N.Sa.Ua.Map.prototype.mu;olympe.N.Sa.Ua.Map.prototype.setView=olympe.N.Sa.Ua.Map.prototype.Qs;olympe.N.Sa.Ua.Map.C={qK:'MAPBOX',aU:'OPENTOPOMAP',K1:'OPENSTREETMAP',NONE:'NONE'};olympe.N.P={};olympe.N.P.Ei=class extends olympe.N.F.mb{constructor(){super()}Fk(){}vy(){}appendChild(){}removeChild(){}sx(){}CE(){}};olympe.N.P.Ei.prototype.getImageUrl=olympe.N.P.Ei.prototype.CE;olympe.N.P.Ei.prototype.getImageContent=olympe.N.P.Ei.prototype.sx;olympe.N.P.Ei.prototype.removeChild=olympe.N.P.Ei.prototype.removeChild;olympe.N.P.Ei.prototype.appendChild=olympe.N.P.Ei.prototype.appendChild;olympe.N.P.Ei.prototype.setViewbox=olympe.N.P.Ei.prototype.vy;olympe.N.P.Ei.prototype.getSvgDefsElement=olympe.N.P.Ei.prototype.Fk;olympe.N.P.Ae=class extends olympe.N.zf{ua(){}setAttribute(){}lv(){}ja(){}Ff(){}getParent(){}Qf(){}Jo(){}rd(){}Bh(){}Ks(){}};olympe.N.P.Ae.prototype.setPointerEvents=olympe.N.P.Ae.prototype.Ks;olympe.N.P.Ae.prototype.setIgnoreUserInteraction=olympe.N.P.Ae.prototype.Bh;olympe.N.P.Ae.prototype.setHidden=olympe.N.P.Ae.prototype.rd;olympe.N.P.Ae.prototype.getContainer=olympe.N.P.Ae.prototype.Jo;olympe.N.P.Ae.prototype.setContainer=olympe.N.P.Ae.prototype.Qf;olympe.N.P.Ae.prototype.getParent=olympe.N.P.Ae.prototype.getParent;
666
666
  olympe.N.P.Ae.prototype.setParent=olympe.N.P.Ae.prototype.Ff;olympe.N.P.Ae.prototype.getId=olympe.N.P.Ae.prototype.ja;olympe.N.P.Ae.prototype.setId=olympe.N.P.Ae.prototype.lv;olympe.N.P.Ae.prototype.setAttribute=olympe.N.P.Ae.prototype.setAttribute;olympe.N.P.Ae.prototype.getHtmlElement=olympe.N.P.Ae.prototype.ua;olympe.N.P.Ad=class extends olympe.N.P.Ae{constructor(){super()}se(){}oa(){}Ie(){}sa(){}setPosition(){}Dg(){}Ge(){}Fg(){}Gd(){}setScale(){}tq(){}Hb(){}Ux(){}je(){}};olympe.N.P.Ad.prototype.refreshBox=olympe.N.P.Ad.prototype.je;olympe.N.P.Ad.prototype.setDefaultBox=olympe.N.P.Ad.prototype.Ux;olympe.N.P.Ad.prototype.setDimension=olympe.N.P.Ad.prototype.Hb;olympe.N.P.Ad.prototype.getScale=olympe.N.P.Ad.prototype.tq;olympe.N.P.Ad.prototype.setScale=olympe.N.P.Ad.prototype.setScale;
667
667
  olympe.N.P.Ad.prototype.getWidth=olympe.N.P.Ad.prototype.Gd;olympe.N.P.Ad.prototype.setWidth=olympe.N.P.Ad.prototype.Fg;olympe.N.P.Ad.prototype.getHeight=olympe.N.P.Ad.prototype.Ge;olympe.N.P.Ad.prototype.setHeight=olympe.N.P.Ad.prototype.Dg;olympe.N.P.Ad.prototype.setPosition=olympe.N.P.Ad.prototype.setPosition;olympe.N.P.Ad.prototype.getY=olympe.N.P.Ad.prototype.sa;olympe.N.P.Ad.prototype.setY=olympe.N.P.Ad.prototype.Ie;olympe.N.P.Ad.prototype.getX=olympe.N.P.Ad.prototype.oa;
668
668
  olympe.N.P.Ad.prototype.setX=olympe.N.P.Ad.prototype.se;olympe.N.P.pc=class extends olympe.N.P.Ad{constructor(){super()}rotate(){}Yx(){}setFillColor(){}mF(){}BB(){}vv(){}dn(){}setStrokeColor(){}xF(){}IB(){}sy(){}qy(){}ty(){}jv(){}Dy(){}Es(){}Cy(){}hy(){}Ey(){}Jw(){}};olympe.N.P.pc.prototype.addAnimation=olympe.N.P.pc.prototype.Jw;olympe.N.P.pc.prototype.unsetMask=olympe.N.P.pc.prototype.Ey;olympe.N.P.pc.prototype.setMask=olympe.N.P.pc.prototype.hy;olympe.N.P.pc.prototype.unsetFilter=olympe.N.P.pc.prototype.Cy;olympe.N.P.pc.prototype.setFilter=olympe.N.P.pc.prototype.Es;
669
669
  olympe.N.P.pc.prototype.unsetGradient=olympe.N.P.pc.prototype.Dy;olympe.N.P.pc.prototype.setGradient=olympe.N.P.pc.prototype.jv;olympe.N.P.pc.prototype.setStrokeLinecap=olympe.N.P.pc.prototype.ty;olympe.N.P.pc.prototype.setStrokeDashOffset=olympe.N.P.pc.prototype.qy;olympe.N.P.pc.prototype.setStrokeDashPattern=olympe.N.P.pc.prototype.sy;olympe.N.P.pc.prototype.setStrokeColorAndOpacity=olympe.N.P.pc.prototype.IB;olympe.N.P.pc.prototype.setStrokeOpacity=olympe.N.P.pc.prototype.xF;
670
670
  olympe.N.P.pc.prototype.setStrokeColor=olympe.N.P.pc.prototype.setStrokeColor;olympe.N.P.pc.prototype.getStrokeWidth=olympe.N.P.pc.prototype.dn;olympe.N.P.pc.prototype.setStrokeWidth=olympe.N.P.pc.prototype.vv;olympe.N.P.pc.prototype.setFillColorAndOpacity=olympe.N.P.pc.prototype.BB;olympe.N.P.pc.prototype.setFillOpacity=olympe.N.P.pc.prototype.mF;olympe.N.P.pc.prototype.setFillColor=olympe.N.P.pc.prototype.setFillColor;olympe.N.P.pc.prototype.setFilled=olympe.N.P.pc.prototype.Yx;
671
671
  olympe.N.P.pc.prototype.rotate=olympe.N.P.pc.prototype.rotate;olympe.ci(olympe.N.P.pc,olympe.N.P.Ad,olympe.N.Y.qc,olympe.N.Y.dI,olympe.N.Y.Qd,olympe.N.Y.cI);olympe.N.P.nm=class extends olympe.N.P.pc{constructor(){super()}setRadius(){}};olympe.N.P.nm.prototype.setRadius=olympe.N.P.nm.prototype.setRadius;olympe.N.P.co=class extends olympe.N.P.pc{constructor(){super()}rF(){}sF(){}setRadius(){}};olympe.N.P.co.prototype.setRadius=olympe.N.P.co.prototype.setRadius;olympe.N.P.co.prototype.setRy=olympe.N.P.co.prototype.sF;olympe.N.P.co.prototype.setRx=olympe.N.P.co.prototype.rF;olympe.N.P.Image=class extends olympe.N.P.pc{constructor(){super()}re(){}Ql(){}Rl(){}Vl(){}};olympe.N.P.Image.prototype.setVerticalAlignment=olympe.N.P.Image.prototype.Vl;olympe.N.P.Image.prototype.setHorizontalAlignment=olympe.N.P.Image.prototype.Rl;olympe.N.P.Image.prototype.setAspectRatioMode=olympe.N.P.Image.prototype.Ql;olympe.N.P.Image.prototype.setSource=olympe.N.P.Image.prototype.re;olympe.N.P.ze=class extends olympe.N.P.pc{constructor(){super()}Xb(){}};olympe.N.P.ze.prototype.setCornerRadius=olympe.N.P.ze.prototype.Xb;olympe.N.P.Text=class extends olympe.N.P.pc{constructor(){super()}Jb(){}sb(){}wb(){}Bb(){}ay(){}op(){}Zq(){}};olympe.N.P.Text.prototype.unregisterTextSize=olympe.N.P.Text.prototype.Zq;olympe.N.P.Text.prototype.registerTextSize=olympe.N.P.Text.prototype.op;olympe.N.P.Text.prototype.setHorizontalAlign=olympe.N.P.Text.prototype.ay;olympe.N.P.Text.prototype.setFontWeight=olympe.N.P.Text.prototype.Bb;olympe.N.P.Text.prototype.setFontFamily=olympe.N.P.Text.prototype.wb;
672
- olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.sb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.Ew=class extends olympe.N.P.Text{constructor(){super()}Js(){}};olympe.N.P.Ew.prototype.setPath=olympe.N.P.Ew.prototype.Js;olympe.N.P.hl=class extends olympe.N.P.pc{constructor(){super()}Qx(){}ph(){}fq(){}Xu(){}};olympe.N.P.hl.prototype.removeSegment=olympe.N.P.hl.prototype.Xu;olympe.N.P.hl.prototype.addSegment=olympe.N.P.hl.prototype.fq;olympe.N.P.hl.prototype.setLineCap=olympe.N.P.hl.prototype.ph;olympe.N.P.hl.prototype.setClosed=olympe.N.P.hl.prototype.Qx;olympe.N.P.Jf=class extends olympe.N.P.Ae{constructor(){super()}gj(){}se(){}Ie(){}setPosition(){}gk(){}Mg(){}};olympe.N.P.Jf.prototype.getNext=olympe.N.P.Jf.prototype.Mg;olympe.N.P.Jf.prototype.setNext=olympe.N.P.Jf.prototype.gk;olympe.N.P.Jf.prototype.setPosition=olympe.N.P.Jf.prototype.setPosition;olympe.N.P.Jf.prototype.setY=olympe.N.P.Jf.prototype.Ie;olympe.N.P.Jf.prototype.setX=olympe.N.P.Jf.prototype.se;olympe.N.P.Jf.prototype.getCommandString=olympe.N.P.Jf.prototype.gj;olympe.N.P.Ai=class extends olympe.N.P.Jf{constructor(){super()}DF(){}JF(){}Sx(){}EF(){}KF(){}Tx(){}};olympe.N.P.Ai.prototype.setControl2=olympe.N.P.Ai.prototype.Tx;olympe.N.P.Ai.prototype.setYControl2=olympe.N.P.Ai.prototype.KF;olympe.N.P.Ai.prototype.setXControl2=olympe.N.P.Ai.prototype.EF;olympe.N.P.Ai.prototype.setControl1=olympe.N.P.Ai.prototype.Sx;olympe.N.P.Ai.prototype.setYControl1=olympe.N.P.Ai.prototype.JF;olympe.N.P.Ai.prototype.setXControl1=olympe.N.P.Ai.prototype.DF;olympe.N.P.Rz=class extends olympe.N.P.Jf{constructor(){super()}rd(){}};olympe.N.P.ro=class extends olympe.N.P.Jf{constructor(){super()}CF(){}IF(){}Rx(){}};olympe.N.P.ro.prototype.setControl=olympe.N.P.ro.prototype.Rx;olympe.N.P.ro.prototype.setYControl=olympe.N.P.ro.prototype.IF;olympe.N.P.ro.prototype.setXControl=olympe.N.P.ro.prototype.CF;olympe.N.P.aj=class extends olympe.N.P.Jf{constructor(){super()}my(){}ny(){}wy(){}ey(){}uy(){}};olympe.N.P.aj.prototype.setSweepFlag=olympe.N.P.aj.prototype.uy;olympe.N.P.aj.prototype.setLargeArcSweepFlag=olympe.N.P.aj.prototype.ey;olympe.N.P.aj.prototype.setXAxisRotation=olympe.N.P.aj.prototype.wy;olympe.N.P.aj.prototype.setRY=olympe.N.P.aj.prototype.ny;olympe.N.P.aj.prototype.setRX=olympe.N.P.aj.prototype.my;olympe.N.P.Sz=class extends olympe.N.P.Jf{constructor(){super()}};olympe.N.P.kr=class extends olympe.N.P.pc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.kr.prototype.removeChild=olympe.N.P.kr.prototype.removeChild;olympe.N.P.kr.prototype.appendChild=olympe.N.P.kr.prototype.appendChild;olympe.N.P.Qf=class extends olympe.N.P.Ad{constructor(){super()}Ri(){}addElement(){}Uu(){}Mx(){}};olympe.N.P.Qf.prototype.removeAllElements=olympe.N.P.Qf.prototype.Mx;olympe.N.P.Qf.prototype.removeElement=olympe.N.P.Qf.prototype.Uu;olympe.N.P.Qf.prototype.addElement=olympe.N.P.Qf.prototype.addElement;olympe.N.P.Qf.prototype.setAbsolute=olympe.N.P.Qf.prototype.Ri;olympe.N.P.Ig=class extends olympe.N.P.Ad{constructor(){super()}gk(){}Mg(){}};olympe.N.P.Ig.prototype.getNext=olympe.N.P.Ig.prototype.Mg;olympe.N.P.Ig.prototype.setNext=olympe.N.P.Ig.prototype.gk;olympe.N.P.Xn=class extends olympe.N.P.Ig{constructor(){super()}Nx(){}nf(){}};olympe.N.P.Xn.prototype.setInput=olympe.N.P.Xn.prototype.nf;olympe.N.P.Xn.prototype.setAmount=olympe.N.P.Xn.prototype.Nx;olympe.N.P.cr=class extends olympe.N.P.Ig{constructor(){super()}nf(){}setMatrix(){}};olympe.N.P.cr.prototype.setMatrix=olympe.N.P.cr.prototype.setMatrix;olympe.N.P.cr.prototype.setInput=olympe.N.P.cr.prototype.nf;olympe.N.P.ao=class extends olympe.N.P.Ig{constructor(){super()}nf(){}by(){}iy(){}};olympe.N.P.ao.prototype.setMode=olympe.N.P.ao.prototype.iy;olympe.N.P.ao.prototype.setInput2=olympe.N.P.ao.prototype.by;olympe.N.P.ao.prototype.setInput=olympe.N.P.ao.prototype.nf;olympe.N.P.eo=class extends olympe.N.P.Ig{constructor(){super()}nF(){}pF(){}oF(){}};olympe.N.P.eo.prototype.setFloodColorAndOpacity=olympe.N.P.eo.prototype.oF;olympe.N.P.eo.prototype.setFloodOpacity=olympe.N.P.eo.prototype.pF;olympe.N.P.eo.prototype.setFloodColor=olympe.N.P.eo.prototype.nF;olympe.N.P.$k=class extends olympe.N.P.Ig{constructor(){super()}re(){}Ql(){}Rl(){}Vl(){}};olympe.N.P.$k.prototype.setVerticalAlignment=olympe.N.P.$k.prototype.Vl;olympe.N.P.$k.prototype.setHorizontalAlignment=olympe.N.P.$k.prototype.Rl;olympe.N.P.$k.prototype.setAspectRatioMode=olympe.N.P.$k.prototype.Ql;olympe.N.P.$k.prototype.setSource=olympe.N.P.$k.prototype.re;olympe.N.P.oo=class extends olympe.N.P.Ig{constructor(){super()}Mw(){}Wu(){}nf(){}};olympe.N.P.oo.prototype.setInput=olympe.N.P.oo.prototype.nf;olympe.N.P.oo.prototype.removeInput=olympe.N.P.oo.prototype.Wu;olympe.N.P.oo.prototype.addInput=olympe.N.P.oo.prototype.Mw;olympe.N.P.el=class extends olympe.N.P.Ig{constructor(){super()}kF(){}lF(){}Wx(){}nf(){}};olympe.N.P.el.prototype.setInput=olympe.N.P.el.prototype.nf;olympe.N.P.el.prototype.setDelta=olympe.N.P.el.prototype.Wx;olympe.N.P.el.prototype.setDeltaY=olympe.N.P.el.prototype.lF;olympe.N.P.el.prototype.setDeltaX=olympe.N.P.el.prototype.kF;olympe.N.P.Ih=class extends olympe.N.P.Ae{constructor(){super()}Ri(){}Pw(){}Yu(){}};olympe.N.P.Ih.prototype.removeStop=olympe.N.P.Ih.prototype.Yu;olympe.N.P.Ih.prototype.addStop=olympe.N.P.Ih.prototype.Pw;olympe.N.P.Ih.prototype.setAbsolute=olympe.N.P.Ih.prototype.Ri;olympe.N.P.Yk=class extends olympe.N.P.Ae{constructor(){super()}jy(){}vF(){}wF(){}HB(){}};olympe.N.P.Yk.prototype.setStopColorAndOpacity=olympe.N.P.Yk.prototype.HB;olympe.N.P.Yk.prototype.setStopOpacity=olympe.N.P.Yk.prototype.wF;olympe.N.P.Yk.prototype.setStopColor=olympe.N.P.Yk.prototype.vF;olympe.N.P.Yk.prototype.setOffset=olympe.N.P.Yk.prototype.jy;olympe.N.P.xi=class extends olympe.N.P.Ih{constructor(){super()}AF(){}GF(){}ky(){}BF(){}HF(){}ly(){}};olympe.N.P.xi.prototype.setPoint2=olympe.N.P.xi.prototype.ly;olympe.N.P.xi.prototype.setY2=olympe.N.P.xi.prototype.HF;olympe.N.P.xi.prototype.setX2=olympe.N.P.xi.prototype.BF;olympe.N.P.xi.prototype.setPoint=olympe.N.P.xi.prototype.ky;olympe.N.P.xi.prototype.setY1=olympe.N.P.xi.prototype.GF;olympe.N.P.xi.prototype.setX1=olympe.N.P.xi.prototype.AF;olympe.N.P.vo=class extends olympe.N.P.Ih{constructor(){super()}setRadius(){}Ox(){}$x(){}};olympe.N.P.vo.prototype.setFocalPoint=olympe.N.P.vo.prototype.$x;olympe.N.P.vo.prototype.setCenter=olympe.N.P.vo.prototype.Ox;olympe.N.P.vo.prototype.setRadius=olympe.N.P.vo.prototype.setRadius;olympe.N.P.mo=class extends olympe.N.P.Ad{constructor(){super()}appendChild(){}removeChild(){}Ri(){}};olympe.N.P.mo.prototype.setAbsolute=olympe.N.P.mo.prototype.Ri;olympe.N.P.mo.prototype.removeChild=olympe.N.P.mo.prototype.removeChild;olympe.N.P.mo.prototype.appendChild=olympe.N.P.mo.prototype.appendChild;olympe.ui={};olympe.ui.Ec=class{constructor(){}C(){}lf(){}ki(){return this}D(){}fa(){}O(){}R(){}tb(){}an(){}W(){}$(){}};olympe.ui.zf=class extends olympe.host.$i{constructor(a){super(a)}pa(){return this.xg()}};olympe.ui.zf.prototype.pa.K=new olympe.j.J(()=>olympe.N.zf,[]);olympe.ui.tt=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.df()}BE(){return this.C}XA(){return this.style}KE(){return this.O}ZA(){return this.D}ja(){return this.id}};olympe.ui.tt.prototype.BE.K=new olympe.j.J(()=>String,[]);olympe.ui.tt.prototype.XA.K=new olympe.j.J(()=>String,[]);olympe.ui.tt.prototype.KE.K=new olympe.j.J(()=>Number,[]);olympe.ui.tt.prototype.ZA.K=new olympe.j.J(()=>Object,[]);olympe.ui.ha={};olympe.ui.ha.My={R0:'fill',et:'contain',ft:'cover'};olympe.ui.ha.ef={Uf:'manual',Hm:'topleft',lh:'top',Im:'topright',EG:'centerleft',Tb:'center',FG:'centerright',im:'bottomleft',Dh:'bottom',dt:'bottomright'};olympe.ui.ha.Eh={$s:'auto',Uf:'manual',et:'contain',ft:'cover'};olympe.ui.ha.zp={Dz:'normal',MT:'multiply',GU:'screen',lR:'darken',uT:'lighten',$U:'srcin',aV:'srcout',ZU:'srcatop',NV:'xor'};olympe.ui.ha.rt={YU:'source_graphic',XU:'source_alpha',OQ:'background_image',NQ:'background_alpha',FR:'fill_paint',cV:'stroke_paint'};olympe.ui.ha.kz={Dz:'normal',kS:'italic',H1:'oblique'};olympe.ui.ha.Ip={Uf:'manual',IQ:'auto_width',HQ:'auto_height',ZF:'auto_width_height',UU:'smart_width',TU:'smart_height',VU:'smart_width_height'};olympe.ui.ha.Cb={Tf:'left',Tb:'center',Di:'right'};olympe.ui.ha.Up={bH:'defaultaudio',cH:'defaultvideo',yH:'facingvideo',nH:'environmentvideo'};olympe.ui.ha.hw={xG:'butt',Pt:'round',MD:'square'};olympe.ui.ha.hD={hG:'bevel',Pt:'round',wK:'miter'};olympe.ui.ha.VK={kU:'portrait',tT:'landscape'};olympe.ui.ha.gA={NONE:'none',bR:'characters',JV:'words',HU:'sentences'};olympe.ui.ha.Mr={Cw:'text',XK:'password',kH:'email',jU:'phone',UT:'number'};olympe.ui.ha.zo={Nv:'clip',jH:'ellipsis',zH:'fade'};olympe.ui.ha.wc={lh:'top',Uc:'middle',Dh:'bottom'};olympe.ui.Y={};olympe.ui.Y.Event=class{constructor(a){this.ca=a}AE(){return this.ca}};olympe.ui.Y.Event.prototype.AE.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.Y.BR=class{constructor(a,b,c,d){this.Lm=a;this.VC=b;this.priority=void 0!==d?d:0;this.id=void 0!==c?c:olympe.la.wk();this.next=null}ja(){return this.id}Mg(){return this.next}gk(a){null!==this.next&&a.gk(this.next);this.next=a}};olympe.ui.Y.De=class{constructor(){this.first=null}be(){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 Uf(a,b,c){const d=olympe.j.bc.now();Q(a,()=>{olympe.j.Xa([b.AE()],e=>{const f=olympe.j.Pa(b);if(e.uP(d).valueOf()){e=[];let g=c.be();for(;null!==g;)e.push(g),g=g.Mg();for(const h of e)if(c.contains(h)&&!0===h.VC.run(h.Lm.bind(null,f)))break}})})}function Vf(a,b,c,d,e,f){b=new olympe.ui.Y.BR(b,olympe.j.zb(),c,d);let g=c=e.be();for(;c&&c.priority<d;)g=c,c=c.Mg();g?g.gk(b):e.first=b;olympe.j.zb().We(f.bind(a,b.ja()));return b.ja()}
672
+ olympe.N.P.Text.prototype.setFontSize=olympe.N.P.Text.prototype.sb;olympe.N.P.Text.prototype.setText=olympe.N.P.Text.prototype.Jb;olympe.N.P.Ew=class extends olympe.N.P.Text{constructor(){super()}Js(){}};olympe.N.P.Ew.prototype.setPath=olympe.N.P.Ew.prototype.Js;olympe.N.P.hl=class extends olympe.N.P.pc{constructor(){super()}Qx(){}ph(){}fq(){}Xu(){}};olympe.N.P.hl.prototype.removeSegment=olympe.N.P.hl.prototype.Xu;olympe.N.P.hl.prototype.addSegment=olympe.N.P.hl.prototype.fq;olympe.N.P.hl.prototype.setLineCap=olympe.N.P.hl.prototype.ph;olympe.N.P.hl.prototype.setClosed=olympe.N.P.hl.prototype.Qx;olympe.N.P.Jf=class extends olympe.N.P.Ae{constructor(){super()}gj(){}se(){}Ie(){}setPosition(){}gk(){}Mg(){}};olympe.N.P.Jf.prototype.getNext=olympe.N.P.Jf.prototype.Mg;olympe.N.P.Jf.prototype.setNext=olympe.N.P.Jf.prototype.gk;olympe.N.P.Jf.prototype.setPosition=olympe.N.P.Jf.prototype.setPosition;olympe.N.P.Jf.prototype.setY=olympe.N.P.Jf.prototype.Ie;olympe.N.P.Jf.prototype.setX=olympe.N.P.Jf.prototype.se;olympe.N.P.Jf.prototype.getCommandString=olympe.N.P.Jf.prototype.gj;olympe.N.P.Ai=class extends olympe.N.P.Jf{constructor(){super()}DF(){}JF(){}Sx(){}EF(){}KF(){}Tx(){}};olympe.N.P.Ai.prototype.setControl2=olympe.N.P.Ai.prototype.Tx;olympe.N.P.Ai.prototype.setYControl2=olympe.N.P.Ai.prototype.KF;olympe.N.P.Ai.prototype.setXControl2=olympe.N.P.Ai.prototype.EF;olympe.N.P.Ai.prototype.setControl1=olympe.N.P.Ai.prototype.Sx;olympe.N.P.Ai.prototype.setYControl1=olympe.N.P.Ai.prototype.JF;olympe.N.P.Ai.prototype.setXControl1=olympe.N.P.Ai.prototype.DF;olympe.N.P.Rz=class extends olympe.N.P.Jf{constructor(){super()}rd(){}};olympe.N.P.ro=class extends olympe.N.P.Jf{constructor(){super()}CF(){}IF(){}Rx(){}};olympe.N.P.ro.prototype.setControl=olympe.N.P.ro.prototype.Rx;olympe.N.P.ro.prototype.setYControl=olympe.N.P.ro.prototype.IF;olympe.N.P.ro.prototype.setXControl=olympe.N.P.ro.prototype.CF;olympe.N.P.aj=class extends olympe.N.P.Jf{constructor(){super()}my(){}ny(){}wy(){}ey(){}uy(){}};olympe.N.P.aj.prototype.setSweepFlag=olympe.N.P.aj.prototype.uy;olympe.N.P.aj.prototype.setLargeArcSweepFlag=olympe.N.P.aj.prototype.ey;olympe.N.P.aj.prototype.setXAxisRotation=olympe.N.P.aj.prototype.wy;olympe.N.P.aj.prototype.setRY=olympe.N.P.aj.prototype.ny;olympe.N.P.aj.prototype.setRX=olympe.N.P.aj.prototype.my;olympe.N.P.Sz=class extends olympe.N.P.Jf{constructor(){super()}};olympe.N.P.kr=class extends olympe.N.P.pc{constructor(){super()}appendChild(){}removeChild(){}};olympe.N.P.kr.prototype.removeChild=olympe.N.P.kr.prototype.removeChild;olympe.N.P.kr.prototype.appendChild=olympe.N.P.kr.prototype.appendChild;olympe.N.P.Rf=class extends olympe.N.P.Ad{constructor(){super()}Ri(){}addElement(){}Uu(){}Mx(){}};olympe.N.P.Rf.prototype.removeAllElements=olympe.N.P.Rf.prototype.Mx;olympe.N.P.Rf.prototype.removeElement=olympe.N.P.Rf.prototype.Uu;olympe.N.P.Rf.prototype.addElement=olympe.N.P.Rf.prototype.addElement;olympe.N.P.Rf.prototype.setAbsolute=olympe.N.P.Rf.prototype.Ri;olympe.N.P.Ig=class extends olympe.N.P.Ad{constructor(){super()}gk(){}Mg(){}};olympe.N.P.Ig.prototype.getNext=olympe.N.P.Ig.prototype.Mg;olympe.N.P.Ig.prototype.setNext=olympe.N.P.Ig.prototype.gk;olympe.N.P.Xn=class extends olympe.N.P.Ig{constructor(){super()}Nx(){}nf(){}};olympe.N.P.Xn.prototype.setInput=olympe.N.P.Xn.prototype.nf;olympe.N.P.Xn.prototype.setAmount=olympe.N.P.Xn.prototype.Nx;olympe.N.P.cr=class extends olympe.N.P.Ig{constructor(){super()}nf(){}setMatrix(){}};olympe.N.P.cr.prototype.setMatrix=olympe.N.P.cr.prototype.setMatrix;olympe.N.P.cr.prototype.setInput=olympe.N.P.cr.prototype.nf;olympe.N.P.ao=class extends olympe.N.P.Ig{constructor(){super()}nf(){}by(){}iy(){}};olympe.N.P.ao.prototype.setMode=olympe.N.P.ao.prototype.iy;olympe.N.P.ao.prototype.setInput2=olympe.N.P.ao.prototype.by;olympe.N.P.ao.prototype.setInput=olympe.N.P.ao.prototype.nf;olympe.N.P.eo=class extends olympe.N.P.Ig{constructor(){super()}nF(){}pF(){}oF(){}};olympe.N.P.eo.prototype.setFloodColorAndOpacity=olympe.N.P.eo.prototype.oF;olympe.N.P.eo.prototype.setFloodOpacity=olympe.N.P.eo.prototype.pF;olympe.N.P.eo.prototype.setFloodColor=olympe.N.P.eo.prototype.nF;olympe.N.P.$k=class extends olympe.N.P.Ig{constructor(){super()}re(){}Ql(){}Rl(){}Vl(){}};olympe.N.P.$k.prototype.setVerticalAlignment=olympe.N.P.$k.prototype.Vl;olympe.N.P.$k.prototype.setHorizontalAlignment=olympe.N.P.$k.prototype.Rl;olympe.N.P.$k.prototype.setAspectRatioMode=olympe.N.P.$k.prototype.Ql;olympe.N.P.$k.prototype.setSource=olympe.N.P.$k.prototype.re;olympe.N.P.oo=class extends olympe.N.P.Ig{constructor(){super()}Mw(){}Wu(){}nf(){}};olympe.N.P.oo.prototype.setInput=olympe.N.P.oo.prototype.nf;olympe.N.P.oo.prototype.removeInput=olympe.N.P.oo.prototype.Wu;olympe.N.P.oo.prototype.addInput=olympe.N.P.oo.prototype.Mw;olympe.N.P.el=class extends olympe.N.P.Ig{constructor(){super()}kF(){}lF(){}Wx(){}nf(){}};olympe.N.P.el.prototype.setInput=olympe.N.P.el.prototype.nf;olympe.N.P.el.prototype.setDelta=olympe.N.P.el.prototype.Wx;olympe.N.P.el.prototype.setDeltaY=olympe.N.P.el.prototype.lF;olympe.N.P.el.prototype.setDeltaX=olympe.N.P.el.prototype.kF;olympe.N.P.Ih=class extends olympe.N.P.Ae{constructor(){super()}Ri(){}Pw(){}Yu(){}};olympe.N.P.Ih.prototype.removeStop=olympe.N.P.Ih.prototype.Yu;olympe.N.P.Ih.prototype.addStop=olympe.N.P.Ih.prototype.Pw;olympe.N.P.Ih.prototype.setAbsolute=olympe.N.P.Ih.prototype.Ri;olympe.N.P.Yk=class extends olympe.N.P.Ae{constructor(){super()}jy(){}vF(){}wF(){}HB(){}};olympe.N.P.Yk.prototype.setStopColorAndOpacity=olympe.N.P.Yk.prototype.HB;olympe.N.P.Yk.prototype.setStopOpacity=olympe.N.P.Yk.prototype.wF;olympe.N.P.Yk.prototype.setStopColor=olympe.N.P.Yk.prototype.vF;olympe.N.P.Yk.prototype.setOffset=olympe.N.P.Yk.prototype.jy;olympe.N.P.xi=class extends olympe.N.P.Ih{constructor(){super()}AF(){}GF(){}ky(){}BF(){}HF(){}ly(){}};olympe.N.P.xi.prototype.setPoint2=olympe.N.P.xi.prototype.ly;olympe.N.P.xi.prototype.setY2=olympe.N.P.xi.prototype.HF;olympe.N.P.xi.prototype.setX2=olympe.N.P.xi.prototype.BF;olympe.N.P.xi.prototype.setPoint=olympe.N.P.xi.prototype.ky;olympe.N.P.xi.prototype.setY1=olympe.N.P.xi.prototype.GF;olympe.N.P.xi.prototype.setX1=olympe.N.P.xi.prototype.AF;olympe.N.P.vo=class extends olympe.N.P.Ih{constructor(){super()}setRadius(){}Ox(){}$x(){}};olympe.N.P.vo.prototype.setFocalPoint=olympe.N.P.vo.prototype.$x;olympe.N.P.vo.prototype.setCenter=olympe.N.P.vo.prototype.Ox;olympe.N.P.vo.prototype.setRadius=olympe.N.P.vo.prototype.setRadius;olympe.N.P.mo=class extends olympe.N.P.Ad{constructor(){super()}appendChild(){}removeChild(){}Ri(){}};olympe.N.P.mo.prototype.setAbsolute=olympe.N.P.mo.prototype.Ri;olympe.N.P.mo.prototype.removeChild=olympe.N.P.mo.prototype.removeChild;olympe.N.P.mo.prototype.appendChild=olympe.N.P.mo.prototype.appendChild;olympe.ui={};olympe.ui.Ec=class{constructor(){}C(){}lf(){}ki(){return this}D(){}fa(){}O(){}R(){}tb(){}an(){}W(){}$(){}};olympe.ui.zf=class extends olympe.host.$i{constructor(a){super(a)}pa(){return this.xg()}};olympe.ui.zf.prototype.pa.K=new olympe.j.J(()=>olympe.N.zf,[]);olympe.ui.tt=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.df()}BE(){return this.C}XA(){return this.style}KE(){return this.O}ZA(){return this.D}ja(){return this.id}};olympe.ui.tt.prototype.BE.K=new olympe.j.J(()=>String,[]);olympe.ui.tt.prototype.XA.K=new olympe.j.J(()=>String,[]);olympe.ui.tt.prototype.KE.K=new olympe.j.J(()=>Number,[]);olympe.ui.tt.prototype.ZA.K=new olympe.j.J(()=>Object,[]);olympe.ui.ha={};olympe.ui.ha.My={R0:'fill',et:'contain',ft:'cover'};olympe.ui.ha.ef={Vf:'manual',Hm:'topleft',lh:'top',Im:'topright',EG:'centerleft',Tb:'center',FG:'centerright',im:'bottomleft',Dh:'bottom',dt:'bottomright'};olympe.ui.ha.Eh={$s:'auto',Vf:'manual',et:'contain',ft:'cover'};olympe.ui.ha.zp={Dz:'normal',MT:'multiply',GU:'screen',lR:'darken',uT:'lighten',$U:'srcin',aV:'srcout',ZU:'srcatop',NV:'xor'};olympe.ui.ha.rt={YU:'source_graphic',XU:'source_alpha',OQ:'background_image',NQ:'background_alpha',FR:'fill_paint',cV:'stroke_paint'};olympe.ui.ha.kz={Dz:'normal',kS:'italic',H1:'oblique'};olympe.ui.ha.Ip={Vf:'manual',IQ:'auto_width',HQ:'auto_height',ZF:'auto_width_height',UU:'smart_width',TU:'smart_height',VU:'smart_width_height'};olympe.ui.ha.Cb={Uf:'left',Tb:'center',Di:'right'};olympe.ui.ha.Up={bH:'defaultaudio',cH:'defaultvideo',yH:'facingvideo',nH:'environmentvideo'};olympe.ui.ha.hw={xG:'butt',Pt:'round',MD:'square'};olympe.ui.ha.hD={hG:'bevel',Pt:'round',wK:'miter'};olympe.ui.ha.VK={kU:'portrait',tT:'landscape'};olympe.ui.ha.gA={NONE:'none',bR:'characters',JV:'words',HU:'sentences'};olympe.ui.ha.Mr={Cw:'text',XK:'password',kH:'email',jU:'phone',UT:'number'};olympe.ui.ha.zo={Nv:'clip',jH:'ellipsis',zH:'fade'};olympe.ui.ha.wc={lh:'top',Uc:'middle',Dh:'bottom'};olympe.ui.Y={};olympe.ui.Y.Event=class{constructor(a){this.ca=a}AE(){return this.ca}};olympe.ui.Y.Event.prototype.AE.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.Y.BR=class{constructor(a,b,c,d){this.Lm=a;this.VC=b;this.priority=void 0!==d?d:0;this.id=void 0!==c?c:olympe.la.wk();this.next=null}ja(){return this.id}Mg(){return this.next}gk(a){null!==this.next&&a.gk(this.next);this.next=a}};olympe.ui.Y.De=class{constructor(){this.first=null}be(){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 Uf(a,b,c){const d=olympe.j.bc.now();Q(a,()=>{olympe.j.Xa([b.AE()],e=>{const f=olympe.j.Pa(b);if(e.uP(d).valueOf()){e=[];let g=c.be();for(;null!==g;)e.push(g),g=g.Mg();for(const h of e)if(c.contains(h)&&!0===h.VC.run(h.Lm.bind(null,f)))break}})})}function Vf(a,b,c,d,e,f){b=new olympe.ui.Y.BR(b,olympe.j.zb(),c,d);let g=c=e.be();for(;c&&c.priority<d;)g=c,c=c.Mg();g?g.gk(b):e.first=b;olympe.j.zb().We(f.bind(a,b.ja()));return b.ja()}
673
673
  function Wf(a,b){olympe.j.$b(a)&&(a=F(a));let c=null!==b?b.be():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.Y.BC=class extends olympe.ui.zf{constructor(a){super(a)}};olympe.ui.Y.wd=class extends olympe.ui.Y.Event{constructor(a,b,c,d,e,f,g,h){super(g);this.key=a;this.char=b;this.ctrlKey=c;this.shiftKey=d;this.altKey=e;this.metaKey=f;this.C=h}OA(){return this.key}IX(){return this.char}xS(){return this.ctrlKey}zS(){return this.shiftKey}wS(){return this.altKey}yS(){return this.metaKey}preventDefault(){this.C instanceof KeyboardEvent&&this.C.preventDefault()}};olympe.ui.Y.wd.D=8;olympe.ui.Y.wd.ca=46;olympe.ui.Y.wd.xc=9;olympe.ui.Y.wd.Fa=10;olympe.ui.Y.wd.R=13;
674
674
  olympe.ui.Y.wd.W=27;olympe.ui.Y.wd.LD=32;olympe.ui.Y.wd.yb=16;olympe.ui.Y.wd.T=17;olympe.ui.Y.wd.Oa=91;olympe.ui.Y.wd.Ka=93;olympe.ui.Y.wd.Mb=38;olympe.ui.Y.wd.fa=40;olympe.ui.Y.wd.qa=37;olympe.ui.Y.wd.Da=39;olympe.ui.Y.wd.C=65;olympe.ui.Y.wd.O=67;olympe.ui.Y.wd.$=72;olympe.ui.Y.wd.Ha=76;olympe.ui.Y.wd.ob=79;olympe.ui.Y.wd.eb=80;olympe.ui.Y.wd.Eb=83;olympe.ui.Y.wd.Zb=86;olympe.ui.Y.wd.Gc=87;olympe.ui.Y.wd.ed=89;olympe.ui.Y.wd.Sc=90;k=olympe.ui.Y.wd.prototype;k.OA.K=olympe.j.J.D;k.IX.K=olympe.j.J.R;
675
675
  k.xS.K=olympe.j.J.T;k.zS.K=olympe.j.J.T;k.wS.K=olympe.j.J.T;k.yS.K=olympe.j.J.T;olympe.ui.Y.vg=class{Qj(){}Pj(){}Rj(){}lj(){}D(){}Kk(){}T(){}mj(){}O(){}};k=olympe.ui.Y.vg.prototype;k.Qj.K=new olympe.j.J(()=>olympe.ui.Y.wd,[]);k.Pj.K=new olympe.j.J(()=>olympe.ui.Y.wd,[]);k.Rj.K=new olympe.j.J(()=>olympe.ui.Y.wd,[]);k.lj.K=new olympe.j.J(()=>String,[]);k.Kk.K=new olympe.j.J(()=>String,[]);k.mj.K=new olympe.j.J(()=>String,[]);olympe.ui.Y.ko=class extends olympe.ui.Y.BC{constructor(a){super(a);this.W=this.fa=this.C=this.$=this.R=this.ca=null}Wc(a){return Q(this,()=>{const b=olympe.j.ub(olympe.ui.Y.wd);a((c,d,e=!1,f=!1,g=!1,h=!1,l={})=>{I(b,new olympe.ui.Y.wd(olympe.j.Ba(c),olympe.j.mc(d),olympe.j.lc(e),olympe.j.lc(f),olympe.j.lc(g),olympe.j.lc(h),olympe.j.bc.now(),l))});return b})}Qj(){null===this.ca&&(this.ca=this.Wc(function(a){this.pa().registerKeyPressed(a)}.bind(this)));return this.ca}Pj(){null===this.$&&(this.$=this.Wc(function(a){this.pa().registerKeyDown(a)}.bind(this)));
@@ -707,7 +707,7 @@ c){null===this.$&&(this.$=new olympe.ui.Y.De,Uf(this,this.Hl(),this.$));return V
707
707
  c,d,this.O,this.Dq)}Dq(a){Wf(a,this.O)}Oq(a,b,c,d){null===this.R&&(this.R=new olympe.ui.Y.De,Uf(this,this.Rm(b),this.R));return Vf(this,a,c,d,this.R,this.Eq)}Eq(a){Wf(a,this.R)}Qq(a,b,c){null===this.W&&(this.W=new olympe.ui.Y.De,Uf(this,this.Gl(),this.W));return Vf(this,a,b,c,this.W,this.Iq)}Iq(a){Wf(a,this.W)}Pq(a,b,c){null===this.T&&(this.T=new olympe.ui.Y.De,Uf(this,this.Fl(),this.T));return Vf(this,a,b,c,this.T,this.Da)}Da(a){Wf(a,this.T)}};olympe.ui.Y.Xv.Aa=[olympe.ui.Y.Qd];k=olympe.ui.Y.Xv.prototype;
708
708
  k.Cl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Hl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Dl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Zm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.El.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Rm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Gl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Fl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);olympe.ui.media={};olympe.ui.media.MediaStream=class extends olympe.ui.zf{Vs(a,b){this.pa().Vs(a,b?b.oa():void 0,b?b.sa():void 0)}};olympe.ui.media.Rr=class extends olympe.ui.media.MediaStream{constructor(a){super(a);this.status=olympe.j.Ya(olympe.j.ia);this.pa().qa(b=>{b?this.status.update(olympe.j.ia.C):this.status.update(olympe.j.ia.pb)})}C(){return this.status.va()}};olympe.ui.media.Rr.prototype.C.K=olympe.j.J.T;olympe.ui.media.yi=class extends olympe.ui.media.Rr{constructor(a,b){super(olympe.ui.La.C(olympe.N.media.yi,olympe.host.ab.jb.sK));olympe.j.Xa([a],c=>{if(c instanceof olympe.ui.media.cc.Km)this.pa().zF(c.pa());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Video device is null or undefined');throw Error('Cannot handle MediaDevice of unknown type '+c.bb());}});olympe.j.Xa([b],c=>{if(c instanceof olympe.ui.media.cc.yp)this.pa().vB(c.pa());else{if(null===c||void 0===c)throw Error('LocalUserStream cannot start: Audio device is null or undefined');
709
709
  throw Error('Cannot handle MediaDevice of unknown type '+c.bb());}})}av(a){this.pa().av(a)}wv(a){this.pa().wv(a)}Ro(){this.pa().Ro()}};olympe.ui.media.BL=class extends olympe.ui.media.Rr{constructor(){super(olympe.ui.La.C(olympe.N.media.BL,olympe.host.ab.jb.IT))}};olympe.ui.media.Yp=class extends olympe.ui.zf{constructor(){super(olympe.ui.La.C(olympe.N.media.Yp,olympe.host.ab.jb.tK))}hx(a){this.pa().hx(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.cc.Km(olympe.j.mc(d.id),olympe.j.mc(d.name)))});a(c)})}gx(a){this.pa().gx(b=>{const c=[];b.forEach(d=>{c.push(new olympe.ui.media.cc.yp(olympe.j.mc(d.id),olympe.j.mc(d.name)))});a(c)})}};olympe.ui.media.cu=class extends olympe.ui.media.MediaStream{constructor(){super(olympe.ui.La.C(olympe.N.media.cu,olympe.host.ab.jb.uK))}Rk(a){this.pa().Rk(a)}};olympe.ui.media.cc={};olympe.ui.media.cc.Xp=class extends olympe.ui.zf{bb(){}};olympe.ui.media.cc.yp=class extends olympe.ui.media.cc.Xp{constructor(a,b){super(olympe.ui.La.C(olympe.N.media.cc.yp,olympe.host.ab.jb.rK));this.name=b;this.id=a;this.pa().up(a,this.name)}bb(){return this.name}};olympe.ui.media.cc.Km=class extends olympe.ui.media.cc.Xp{constructor(a,b){super(olympe.ui.La.C(olympe.N.media.cc.Km,olympe.host.ab.jb.vK));this.name=b;this.id=a;this.pa().up(a,b)}bb(){return this.name}toString(){return'VideoInputDevice [name: '+this.name+']'}};olympe.ui.media.cc.h0=class extends olympe.ui.media.cc.yp{constructor(){super(olympe.ui.ha.Up.bH,'Default microphone')}};olympe.ui.media.cc.i0=class extends olympe.ui.media.cc.Km{constructor(){super(olympe.ui.ha.Up.cH,'Default camera')}};olympe.ui.media.cc.U0=class extends olympe.ui.media.cc.Km{constructor(){super(olympe.ui.ha.Up.yH,'Facing camera')}};olympe.ui.media.cc.M_=class extends olympe.ui.media.cc.Km{constructor(){super(olympe.ui.ha.Up.nH,'Environment (back) camera')}};olympe.ui.F={};function $f(a){null===a.ob&&(a.ob=Q(a,()=>olympe.j.Ya(olympe.j.ia).update(olympe.j.ia.pb)),a.we().xs(()=>{a.ob.update(olympe.j.ia.C)}),a.we().ws(()=>{a.ob.update(olympe.j.ia.pb)}))}
710
- olympe.ui.F.Element=class extends olympe.ui.zf{constructor(a){super(a);this.$=this.yg=this.Cg=this.ob=this.hidden=null}we(){return this.pa()}an(){return olympe.ui.La.an(this)}yh(){}ee(a){a&&(this.Ma(a.jq()),this.bh(a.mq(),olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,a.lq(),a.kq()),this.qg(a.HO()))}Ma(a){this.we().Ma(olympe.j.dg(a,b=>b instanceof olympe.j.Color?b.mi():void 0));return this}Fs(a){this.we().Fs(a);return this}bh(a,b,c,d,e){this.we().bh(a,b,c,olympe.j.dg(d,f=>f.oa()),olympe.j.dg(d,f=>f.sa()),
710
+ olympe.ui.F.Element=class extends olympe.ui.zf{constructor(a){super(a);this.$=this.yg=this.Cg=this.ob=this.hidden=null}we(){return this.pa()}an(){return olympe.ui.La.an(this)}yh(){}ee(a){a&&(this.Ma(a.jq()),this.bh(a.mq(),olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,a.lq(),a.kq()),this.qg(a.HO()))}Ma(a){this.we().Ma(olympe.j.dg(a,b=>b instanceof olympe.j.Color?b.mi():void 0));return this}Fs(a){this.we().Fs(a);return this}bh(a,b,c,d,e){this.we().bh(a,b,c,olympe.j.dg(d,f=>f.oa()),olympe.j.dg(d,f=>f.sa()),
711
711
  olympe.j.dg(e,f=>f.oa()),olympe.j.dg(e,f=>f.sa()));return this}Ds(a){this.we().Ds(a);return this}Vq(a){this.we().Vq(a);return this}tp(a){this.we().tp(a);return this}Bs(a){this.we().Bs(olympe.j.dg(a,b=>b.oa()),olympe.j.dg(a,b=>b.sa()));return this}Cs(a){olympe.j.Xa([a],b=>{this.we().Cs(b.oa(),b.sa())});return this}qg(a){this.we().qg(a);return this}na(){}rd(a){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Yc(!1)});K(this.hidden,a);this.we().rd(a);return this}Ps(a){this.we().Ps(a);return this}ib(a,
712
712
  b){this.we().ib(a,b)}os(){null===this.hidden&&Q(this,()=>{this.hidden=olympe.j.Yc(!1)});return this.hidden}yu(){$f(this);return this.ob.va()}tj(a=!0){$f(this);this.we().tj(a);return this}Hn(){$f(this);this.we().Hn();return this}Bh(a){this.we().Bh(a);return this}hv(a){this.we().hv(a);return this}FS(a,b={}){if(olympe.ui.La.$())return this;this.$||(this.$=new olympe.j.fe('tooltipContext'),this.$.onDestroy(()=>{this.$=null}));let c,d;const e=null!=(d=b.delay)?d:null!=(c=olympe.ui.F.Element.C.delay)?c:
713
713
  500;this.$.run(()=>{let f=!1;const g=olympe.ui.La.lf();let h=null;const l=p=>{const r=olympe.j.Pa(a);r&&0!==r.valueOf().length&&(p?(ad('tooltipTimeout'),h=$c(()=>{h=null;const t=Object.assign({},olympe.ui.F.Element.C,b);null!=t.position||(t.position=this.yh());g.LF(a,t);f=!0},e.valueOf(),'tooltipTimeout')):null!==h?(ad(h),h=null):(g.Cx(),f=!1))},m=this.nj(p=>{l(!0,p)}),n=this.Ni(p=>{l(!1,p)});this.$.onDestroy(()=>{null!==h&&(ad(h),h=null);f&&(g.Cx(),f=!1);this.Jk(m);this.Zj(n)})});return this}ES(){this.$&&
@@ -738,13 +738,13 @@ k.MI.K=new olympe.j.J(()=>olympe.j.Color,[]);k.bs.K=new olympe.j.J(()=>olympe.ui
738
738
  a)}Gu(){return this.D}rO(){return this.Sc}wz(){return this.Nf}ce(a){K(this.Nf,a)}vz(){return this.Qe}Id(a){K(this.Qe,a)}};olympe.ui.F.da.al.Fc='inputpopup';k=olympe.ui.F.da.al.prototype;k.Hu.K=olympe.j.J.R;k.Du.K=olympe.j.J.R;k.PN.K=olympe.j.J.R;k.oO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.wO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.pO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.EX.K=olympe.j.J.D;k.vO.K=olympe.j.J.D;k.sO.K=olympe.j.J.D;k.tO.K=olympe.j.J.D;k.uO.K=olympe.j.J.D;k.qO.K=olympe.j.J.R;
739
739
  k.Eu.K=olympe.j.J.D;k.Gu.K=olympe.j.J.D;k.rO.K=olympe.j.J.D;k.wz.K=olympe.j.J.T;k.vz.K=olympe.j.J.T;olympe.ui.F.da.Ap=class extends olympe.ui.F.da.Hj{constructor(){super();this.T=P(olympe.j.Color.red());this.W=P(N());this.$=olympe.j.ma(1);this.R=olympe.j.ma(10);this.D=olympe.j.ma(10);this.O=olympe.j.ma(5)}KN(){return this.T}LN(){return this.W}MN(){return this.$}IN(){return this.R}EN(){return this.D}HN(){return this.O}};olympe.ui.F.da.Ap.Fc='bubble';k=olympe.ui.F.da.Ap.prototype;k.KN.K=new olympe.j.J(()=>olympe.j.Color,[]);k.LN.K=new olympe.j.J(()=>olympe.j.Color,[]);k.MN.K=olympe.j.J.D;k.IN.K=olympe.j.J.D;
740
740
  k.EN.K=olympe.j.J.D;k.HN.K=olympe.j.J.D;olympe.ui.F.da.ym=class extends olympe.ui.F.da.gd{constructor(){super();this.C=this.O=this.D=null}T(){return this.D}W(){return this.O}R(){return this.C}};olympe.ui.F.da.ym.Fc='IntervalSlider';olympe.ui.F.da.ym.prototype.T.K=new olympe.j.J(()=>olympe.ui.F.da.gd,[]);olympe.ui.F.da.ym.prototype.W.K=new olympe.j.J(()=>olympe.ui.F.da.gd,[]);olympe.ui.F.da.ym.prototype.R.K=new olympe.j.J(()=>olympe.ui.F.da.gd,[]);olympe.ui.F.da.qf=class extends olympe.ui.F.da.gd{constructor(){super();this.T=olympe.j.Ab(olympe.ui.F.da.qf.C.ez);this.C=olympe.j.Ab(olympe.ui.F.da.qf.C.pw);this.W=olympe.j.Ab(olympe.ui.F.da.qf.C.ID)}D(){return this.T}O(){return this.C}R(){return this.W}};olympe.ui.F.da.qf.Fc='ForEachTheme';olympe.ui.F.da.qf.D={vH:'EVEN_ODD'};olympe.ui.F.da.qf.C={ez:'for_each_item_even',pw:'for_each_item_odd',ID:'for_each_item_selected'};olympe.ui.F.da.qf.prototype.D.K=olympe.j.J.R;
741
- olympe.ui.F.da.qf.prototype.O.K=olympe.j.J.R;olympe.ui.F.da.qf.prototype.R.K=olympe.j.J.R;olympe.ui.F.da.Am=class{constructor(){this.Xw=olympe.j.ub(olympe.ui.F.da.gd);this.Ww=olympe.j.ma(1);this.xN=olympe.j.Yc(!1);this.animation=null;this.uA=olympe.j.ma(0)}kO(){return this.Xw}AB(a){K(this.Xw,a)}jO(){return this.Ww}zB(a){K(this.Ww,a)}dB(){return this.xN}kv(a){K(this.xN,a)}bs(){return this.animation}};olympe.ui.F.da.Am.Fc='ListForEachLayoutTheme';olympe.ui.F.da.Am.prototype.kO.K=new olympe.j.J(()=>olympe.ui.F.da.gd,[]);olympe.ui.F.da.Am.prototype.jO.K=olympe.j.J.D;olympe.ui.F.da.Wh=class extends olympe.ui.F.da.gd{constructor(){super();this.R=P(N());this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String,olympe.ui.ha.kz.Dz);this.$=olympe.j.ub(String,olympe.ui.ha.Cb.Tf);this.T=olympe.j.ub(String,olympe.ui.ha.wc.lh);this.paddingLeft=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingRight=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingTop=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingBottom=olympe.j.ub(olympe.j.aa,
741
+ olympe.ui.F.da.qf.prototype.O.K=olympe.j.J.R;olympe.ui.F.da.qf.prototype.R.K=olympe.j.J.R;olympe.ui.F.da.Am=class{constructor(){this.Xw=olympe.j.ub(olympe.ui.F.da.gd);this.Ww=olympe.j.ma(1);this.xN=olympe.j.Yc(!1);this.animation=null;this.uA=olympe.j.ma(0)}kO(){return this.Xw}AB(a){K(this.Xw,a)}jO(){return this.Ww}zB(a){K(this.Ww,a)}dB(){return this.xN}kv(a){K(this.xN,a)}bs(){return this.animation}};olympe.ui.F.da.Am.Fc='ListForEachLayoutTheme';olympe.ui.F.da.Am.prototype.kO.K=new olympe.j.J(()=>olympe.ui.F.da.gd,[]);olympe.ui.F.da.Am.prototype.jO.K=olympe.j.J.D;olympe.ui.F.da.Wh=class extends olympe.ui.F.da.gd{constructor(){super();this.R=P(N());this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String,olympe.ui.ha.kz.Dz);this.$=olympe.j.ub(String,olympe.ui.ha.Cb.Uf);this.T=olympe.j.ub(String,olympe.ui.ha.wc.lh);this.paddingLeft=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingRight=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingTop=olympe.j.ub(olympe.j.aa,olympe.j.aa.ZERO);this.paddingBottom=olympe.j.ub(olympe.j.aa,
742
742
  olympe.j.aa.ZERO);this.W=null}TI(){return this.R}lb(a){void 0===this.R&&(this.R=olympe.j.ub(olympe.j.Color));K(this.R,a)}NI(){return this.fontSize}sb(a){void 0===this.fontSize&&(this.fontSize=olympe.j.ub(olympe.j.aa));K(this.fontSize,a)}Hi(){return this.O}Bb(a){void 0===this.O&&(this.O=olympe.j.ub(olympe.j.aa));K(this.O,a)}wb(a){void 0===this.C&&(this.C=olympe.j.ub(olympe.j.kb));K(this.C,a)}Gi(){return this.C}Il(){return this.D}Ud(a){void 0===this.D&&(this.D=olympe.j.ub(olympe.j.kb));K(this.D,a)}UI(){return this.$}Vb(a){void 0===
743
743
  this.$&&(this.$=olympe.j.ub(String));K(this.$,a)}VI(){return this.T}Yb(a){void 0===this.T&&(this.T=olympe.j.ub(String));K(this.T,a)}QI(){return this.paddingLeft}Hc(a){void 0===this.paddingLeft&&(this.paddingLeft=olympe.j.ub(olympe.j.aa));K(this.paddingLeft,a)}RI(){return this.paddingRight}Lc(a){void 0===this.paddingRight&&(this.paddingRight=olympe.j.ub(olympe.j.aa));K(this.paddingRight,a)}SI(){return this.paddingTop}td(a){void 0===this.paddingTop&&(this.paddingTop=olympe.j.ub(olympe.j.aa));K(this.paddingTop,
744
744
  a)}OI(){return this.paddingBottom}sd(a){void 0===this.paddingBottom&&(this.paddingBottom=olympe.j.ub(olympe.j.aa));this.paddingBottom=a}};olympe.ui.F.da.Wh.C='header1';olympe.ui.F.da.Wh.D='header2';olympe.ui.F.da.Wh.R='selected';olympe.ui.F.da.Wh.O='mouseover';olympe.ui.F.da.Wh.Fc='label';k=olympe.ui.F.da.Wh.prototype;k.TI.K=new olympe.j.J(()=>olympe.j.Color,[]);k.NI.K=olympe.j.J.D;k.Hi.K=olympe.j.J.D;k.Gi.K=olympe.j.J.R;k.Il.K=new olympe.j.J(()=>String,[]);k.UI.K=new olympe.j.J(()=>String,[]);
745
- k.VI.K=new olympe.j.J(()=>String,[]);k.QI.K=olympe.j.J.D;k.RI.K=olympe.j.J.D;k.SI.K=olympe.j.J.D;k.OI.K=olympe.j.J.D;olympe.ui.F.da.Tk=class extends olympe.ui.F.da.Hj{constructor(){super();this.O=olympe.j.Ab('');this.T=olympe.j.Ab('');this.R=olympe.j.Ab('');this.W=olympe.j.ma(0);this.D=olympe.j.ma(10)}Hu(){return this.O}Du(){return this.T}RA(){return this.R}Eu(){return this.W}Ef(a){K(this.W,a)}Gu(){return this.D}};olympe.ui.F.da.Tk.Fc='alert';k=olympe.ui.F.da.Tk.prototype;k.Hu.K=olympe.j.J.R;k.Du.K=olympe.j.J.R;k.RA.K=olympe.j.J.R;k.Eu.K=olympe.j.J.D;k.Gu.K=olympe.j.J.D;olympe.ui.F.da.tl=class extends olympe.ui.F.da.gd{constructor(){super();this.R=olympe.j.pd(0,0,0);this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String,olympe.ui.ha.kz.Dz);this.T=olympe.j.ub(String,olympe.ui.ha.Cb.Tf);this.W=olympe.j.ub(String,olympe.ui.ha.wc.lh);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0)}aJ(){return this.R}lb(a){K(this.R,a)}WI(){return this.fontSize}sb(a){K(this.fontSize,
745
+ k.VI.K=new olympe.j.J(()=>String,[]);k.QI.K=olympe.j.J.D;k.RI.K=olympe.j.J.D;k.SI.K=olympe.j.J.D;k.OI.K=olympe.j.J.D;olympe.ui.F.da.Tk=class extends olympe.ui.F.da.Hj{constructor(){super();this.O=olympe.j.Ab('');this.T=olympe.j.Ab('');this.R=olympe.j.Ab('');this.W=olympe.j.ma(0);this.D=olympe.j.ma(10)}Hu(){return this.O}Du(){return this.T}RA(){return this.R}Eu(){return this.W}Ef(a){K(this.W,a)}Gu(){return this.D}};olympe.ui.F.da.Tk.Fc='alert';k=olympe.ui.F.da.Tk.prototype;k.Hu.K=olympe.j.J.R;k.Du.K=olympe.j.J.R;k.RA.K=olympe.j.J.R;k.Eu.K=olympe.j.J.D;k.Gu.K=olympe.j.J.D;olympe.ui.F.da.tl=class extends olympe.ui.F.da.gd{constructor(){super();this.R=olympe.j.pd(0,0,0);this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String,olympe.ui.ha.kz.Dz);this.T=olympe.j.ub(String,olympe.ui.ha.Cb.Uf);this.W=olympe.j.ub(String,olympe.ui.ha.wc.lh);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0)}aJ(){return this.R}lb(a){K(this.R,a)}WI(){return this.fontSize}sb(a){K(this.fontSize,
746
746
  a)}Hi(){return this.O}wb(a){K(this.C,a)}Gi(){return this.C}Il(){return this.D}Ud(a){K(this.D,a)}Bb(a){K(this.O,a)}bJ(){return this.T}Vb(a){K(this.T,a)}cJ(){return this.W}Yb(a){K(this.W,a)}YI(){return this.paddingLeft}Hc(a){K(this.paddingLeft,a)}ZI(){return this.paddingRight}Lc(a){K(this.paddingRight,a)}$I(){return this.paddingTop}td(a){K(this.paddingTop,a)}XI(){return this.paddingBottom}sd(a){this.paddingBottom=a}};olympe.ui.F.da.tl.Fc='TextArea';k=olympe.ui.F.da.tl.prototype;
747
- k.aJ.K=new olympe.j.J(()=>olympe.j.Color,[]);k.WI.K=olympe.j.J.D;k.Hi.K=olympe.j.J.D;k.Gi.K=olympe.j.J.R;k.Il.K=new olympe.j.J(()=>String,[]);k.bJ.K=new olympe.j.J(()=>String,[]);k.cJ.K=new olympe.j.J(()=>String,[]);k.YI.K=olympe.j.J.D;k.ZI.K=olympe.j.J.D;k.$I.K=olympe.j.J.D;k.XI.K=olympe.j.J.D;olympe.ui.F.da.ul=class extends olympe.ui.F.da.gd{constructor(){super();this.R=P(N());this.$=P(N());this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String);this.T=olympe.j.ub(String,olympe.ui.ha.Cb.Tf);this.W=olympe.j.ub(String,olympe.ui.ha.wc.Uc);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0)}iJ(){return this.R}lb(a){K(this.R,a)}MO(){return this.$}dh(a){K(this.$,a)}dJ(){return this.fontSize}sb(a){K(this.fontSize,
747
+ k.aJ.K=new olympe.j.J(()=>olympe.j.Color,[]);k.WI.K=olympe.j.J.D;k.Hi.K=olympe.j.J.D;k.Gi.K=olympe.j.J.R;k.Il.K=new olympe.j.J(()=>String,[]);k.bJ.K=new olympe.j.J(()=>String,[]);k.cJ.K=new olympe.j.J(()=>String,[]);k.YI.K=olympe.j.J.D;k.ZI.K=olympe.j.J.D;k.$I.K=olympe.j.J.D;k.XI.K=olympe.j.J.D;olympe.ui.F.da.ul=class extends olympe.ui.F.da.gd{constructor(){super();this.R=P(N());this.$=P(N());this.fontSize=olympe.j.ma(14);this.O=olympe.j.ma(500);this.C=olympe.j.Ab('');this.D=olympe.j.ub(String);this.T=olympe.j.ub(String,olympe.ui.ha.Cb.Uf);this.W=olympe.j.ub(String,olympe.ui.ha.wc.Uc);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0)}iJ(){return this.R}lb(a){K(this.R,a)}MO(){return this.$}dh(a){K(this.$,a)}dJ(){return this.fontSize}sb(a){K(this.fontSize,
748
748
  a)}Hi(){return this.O}wb(a){K(this.C,a)}Gi(){return this.C}Bb(a){K(this.O,a)}Il(){return this.D}Ud(a){K(this.D,a)}jJ(){return this.T}Vb(a){K(this.T,a)}kJ(){return this.W}Yb(a){K(this.W,a)}fJ(){return this.paddingLeft}Hc(a){K(this.paddingLeft,a)}gJ(){return this.paddingRight}Lc(a){K(this.paddingRight,a)}hJ(){return this.paddingTop}td(a){K(this.paddingRight,a)}eJ(){return this.paddingBottom}sd(a){K(this.paddingBottom,a)}};olympe.ui.F.da.ul.Fc='textfield';k=olympe.ui.F.da.ul.prototype;
749
749
  k.iJ.K=new olympe.j.J(()=>olympe.j.Color,[]);k.MO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.dJ.K=olympe.j.J.D;k.Hi.K=olympe.j.J.D;k.Gi.K=olympe.j.J.R;k.Il.K=new olympe.j.J(()=>String,[]);k.jJ.K=new olympe.j.J(()=>String,[]);k.kJ.K=new olympe.j.J(()=>String,[]);k.fJ.K=olympe.j.J.D;k.gJ.K=olympe.j.J.D;k.hJ.K=olympe.j.J.D;k.eJ.K=olympe.j.J.D;function dg(a){K(a.ob,olympe.j.Ab(olympe.ui.ha.Cb.Tb))}function eg(a){K(a.eb,olympe.j.Ab(olympe.ui.ha.wc.Uc))}
750
750
  olympe.ui.F.da.cq=class extends olympe.ui.F.da.gd{constructor(){super();this.W=olympe.j.ma(40);this.R=olympe.j.ma(12);this.T=olympe.j.ma(500);this.zh=olympe.j.Ab('Arial');this.Od=olympe.j.ma(2);this.Ka=P(Hc());this.Fa=olympe.j.ma(0);this.C=olympe.j.ma(0);this.ca=P(Hc());this.fa=P(Hc());this.Sc=P(Hc());this.Oa=P(Hc());this.ob=olympe.j.ub(String,olympe.ui.ha.Cb.Tb);this.eb=olympe.j.ub(String,olympe.ui.ha.wc.Uc);this.xg=olympe.j.ma(0);this.D=olympe.j.fd(10,10);this.O=olympe.j.Ab('images/close.png');
@@ -772,7 +772,7 @@ c.Hc(5);c.Lc(5);c.wb('Arial');break;case 'grid-selected-cell':c.sb(12),c.Ma(olym
772
772
  a,()=>{const b=new olympe.ui.F.da.Cj;K(b.R,'grid-cell');K(b.C,'grid-cell');K(b.D,'grid-selected-cell');b.dk(30);cg(b);var c=Ec();K(b.O,c);return b})}Au(a){return S(this,olympe.ui.F.da.al.Fc,olympe.ui.F.da.al,a,()=>{const b=new olympe.ui.F.da.al;b.Hb(new olympe.j.ga(500,1));b.ce(!1);b.Id(!0);var c=olympe.j.Color.create(0,0,0,.6);K(b.C,c);b.Ma(O());K(b.D,20);b.Ef(20);K(b.$,'header1');K(b.W,'selected');K(b.eb,1);c=N();K(b.ob,c);K(b.ca,this.D);K(b.fa,this.fa);K(b.yb,2);K(b.Eb,2);K(b.R,2);K(b.T,2);K(b.O,
773
773
  'Arial');return b})}lf(){return S(this,olympe.ui.F.da.Dr.Fc,olympe.ui.F.da.Dr,void 0,()=>new olympe.ui.F.da.Dr)}};olympe.ui.F.da.kt=class extends olympe.ui.F.da.gd{constructor(){super();this.D=olympe.j.Ab('');this.C=olympe.j.fd(10,10);this.O=olympe.j.pd();this.W=olympe.j.pd();this.$=olympe.j.ma();this.T=olympe.j.pd();this.R=olympe.j.pd();this.Fa=olympe.j.pd();this.Oa=olympe.j.pd();this.yb=olympe.j.pd();this.Eb=olympe.j.pd();this.Ka=olympe.j.ma();this.ob=olympe.j.ma();this.ca=olympe.j.pd();this.fa=olympe.j.ma();this.eb=olympe.j.ma()}RN(){return this.D}QN(){return this.C}JO(){return this.O}GS(){return this.W}TX(){return this.$}LO(){return this.T}KO(){return this.R}NN(){return this.Fa}ZO(){return this.Oa}fP(){return this.yb}eP(){return this.Eb}bP(){return this.Ka}cP(){return this.ob}$O(){return this.ca}aP(){return this.fa}dP(){return this.eb}};
774
774
  olympe.ui.F.da.kt.Fc='datepicker';k=olympe.ui.F.da.kt.prototype;k.RN.K=olympe.j.J.R;k.QN.K=olympe.j.J.W;k.JO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.GS.K=new olympe.j.J(()=>olympe.j.Color,[]);k.TX.K=olympe.j.J.D;k.LO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.KO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.NN.K=new olympe.j.J(()=>olympe.j.Color,[]);k.ZO.K=new olympe.j.J(()=>olympe.j.Color,[]);k.fP.K=new olympe.j.J(()=>olympe.j.Color,[]);k.eP.K=new olympe.j.J(()=>olympe.j.Color,[]);k.bP.K=olympe.j.J.D;
775
- k.cP.K=olympe.j.J.D;k.$O.K=new olympe.j.J(()=>olympe.j.Color,[]);k.aP.K=olympe.j.J.D;k.dP.K=olympe.j.J.D;olympe.ui.F.rf=class extends olympe.ui.F.Element{constructor(a){super(a.C(olympe.N.F.rf,olympe.host.ab.jb.TL));a=a.D().lf();this.qa=new olympe.j.ga(0,0);this.W=void 0;this.R=new olympe.ui.Y.ko(this.ij());this.size=new olympe.j.ga;this.fa=this.ca=this.C=null;this.ij().ys((b,c)=>{this.size.se(b);this.size.Ie(c)});this.Ma(a.jq());this.bh(a.mq(),olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,a.lq(),a.kq())}ij(){return this.pa()}ki(a){this.ij().ki(a);return this}Yr(){this.ij().Yr();return this}Kw(a){this.ij().Kw(a);
775
+ k.cP.K=olympe.j.J.D;k.$O.K=new olympe.j.J(()=>olympe.j.Color,[]);k.aP.K=olympe.j.J.D;k.dP.K=olympe.j.J.D;olympe.ui.F.rf=class extends olympe.ui.F.Element{constructor(a){super(a.C(olympe.N.F.rf,olympe.host.ab.jb.TL));a=a.D().lf();this.qa=new olympe.j.ga(0,0);this.W=void 0;this.R=new olympe.ui.Y.ko(this.ij());this.size=new olympe.j.ga;this.fa=this.ca=this.C=null;this.ij().ys((b,c)=>{this.size.se(b);this.size.Ie(c)});this.Ma(a.jq());this.bh(a.mq(),olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,a.lq(),a.kq())}ij(){return this.pa()}ki(a){this.ij().ki(a);return this}Yr(){this.ij().Yr();return this}Kw(a){this.ij().Kw(a);
776
776
  return this}Xx(a){this.ij().Xx(a);return this}appendChild(a,b,c){void 0!==c&&a.setPosition(c);this.ij().appendChild(T(a),b);a.Ff(this);return this}removeChild(a){this.ij().removeChild(a);return this}clear(){this.ij().pg();return this}na(){return this.size}Gd(){return this.size.oa()}Ge(){return this.size.sa()}yh(){return this.qa}Qj(){return this.R.Qj()}lj(a,b,c){return this.R.lj(a,b,c)}D(a){this.R.D(a)}Pj(){return this.R.Pj()}Kk(a,b,c){return this.R.Kk(a,b,c)}T(a){this.R.T(a)}Rj(){return this.R.Rj()}mj(a,
777
777
  b,c){return this.R.mj(a,b,c)}O(a){this.R.O(a)}HS(){void 0===this.W&&(this.W=olympe.j.ub(String),this.ij().oB(a=>{I(this.W,a)}));return this.W}lJ(a){olympe.j.zb().We(()=>this.ij().T(a.ja()));var b=a.ZA();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.ij().O(a.BE(),a.XA(),a.KE(),d,b,a.ja())}LF(a,b={}){const c=olympe.j.Pa;this.C||olympe.j.Oo().run(()=>
778
778
  {this.C=new olympe.ui.F.cb;this.C.ce(!0).Id(!0).td(5).sd(5).Hc(5).Lc(5).fh(1E4).rd(!0);this.ca=olympe.j.Ya(olympe.j.aa);M(this.ca,olympe.j.aa.ZERO);this.fa=olympe.j.Ya(olympe.j.aa);M(this.fa,olympe.j.aa.ZERO);this.C.setPosition(new olympe.j.ga(this.ca.va(),this.fa.va()))});this.C.Eg(b.da||'');this.C.Jb(a);this.C.Ma(b.background||O());this.C.lb(b.a4||N());b.fontSize&&this.C.sb(b.fontSize);a=b.L3||1;const d=b.borderColor||N();this.C.Pd(a,d);this.C.ib('pointer-events','none');b.position&&(a=olympe.j.Wa([b.position.oa(),
@@ -797,7 +797,7 @@ new olympe.j.ga(olympe.j.rj(d.oa().Ra(d.Gd()),0),a),()=>new olympe.j.ga(a,olympe
797
797
  pc(n.sa().Ra(n.Ge()),l)),olympe.j.ga),r=olympe.j.Za(this.D,()=>new olympe.j.ga(p.oa().Ra(this.O),p.sa()),()=>new olympe.j.ga(p.oa(),p.sa().Ra(this.O)),olympe.j.ga),t=new olympe.ui.F.ze(olympe.j.Za(this.D,()=>new olympe.j.ga(this.O,this.T),()=>new olympe.j.ga(this.T,this.O),olympe.j.ga));t.ee(this.Xw);t.rd(h.Ue(0));t.setPosition(p);a.appendChild(t,'divider-'+d);const u=b(c,d,h,e,g);u.setPosition(r);a.appendChild(u,d);const v=F(this.animation);v&&(u.qg(0),olympe.j.Xa([h],w=>{const x=F(this.uA).valueOf()*
798
798
  w.valueOf();0<x&&!this.R?$c(()=>{w.valueOf()>=e.hj()-1&&(this.R=!0);u.qg(1);v.$j(u,a)},x):(u.qg(1),v.$j(u,a))}));this.C.set(d,u,h);olympe.j.zb().We(()=>{f.bg()||(this.C.remove(d),0===this.C.hj()&&(this.R=!1))});return u}na(){return this.W}WA(){return this.ca}GA(){return this.$}AB(a){K(this.Xw,a)}zB(a){K(this.Ww,a)}kv(a){K(this.dB,a)}mJ(a){K(this.animation,a)}nJ(a){K(this.uA,a)}fa(a){this.AB(a.kO());this.zB(a.jO());this.kv(a.dB());this.mJ(a.bs());this.nJ(a.uA)}};olympe.ui.F.iD.Aa=[olympe.ui.F.ir];
799
799
  k=olympe.ui.F.iD.prototype;k.Nw.K=new olympe.j.J(()=>olympe.ui.F.mb,[]);k.na.K=olympe.j.J.W;k.WA.K=olympe.j.J.D;k.GA.K=olympe.j.J.D;k.AB.K=olympe.j.J.C([]);k.zB.K=olympe.j.J.C([]);k.kv.K=olympe.j.J.C([]);k.mJ.K=olympe.j.J.C([]);k.nJ.K=olympe.j.J.C([]);olympe.ui.F.HC=class extends olympe.ui.F.xd{constructor(a,b,c,d,e,f,g,h){super();this.data=olympe.j.ub(olympe.j.Wg);this.Xe=olympe.j.ub(olympe.ui.F.HC.D);this.R=olympe.j.ub(olympe.ui.F.ir);this.content=new olympe.ui.F.Ze(d.na());this.Oa=olympe.j.ub(String);this.yb=olympe.j.Ab(olympe.ui.F.da.qf.C.ID);this.eb=olympe.j.Ab(olympe.ui.F.da.qf.C.ez);this.Eb=olympe.j.Ab(olympe.ui.F.da.qf.C.pw);this.Ka=olympe.j.Yc(f);this.Fa=olympe.j.Yc(g);this.C=new olympe.j.Map;this.O=new olympe.j.Map;this.D=olympe.j.ub(olympe.j.ga);
800
- this.pJ(c);this.Td(this.content);this.fQ(d);this.oJ(b);this.$P(void 0===e?void 0!==a?olympe.ui.ha.Ip.Uf:olympe.ui.ha.Ip.ZF:e);K(this.D,a);super.Hb(nc(this.Oa,l=>{switch(l.valueOf()){case olympe.ui.ha.Ip.IQ:return new olympe.j.ga(this.R.na().oa(),this.D.sa());case olympe.ui.ha.Ip.HQ:return new olympe.j.ga(this.D.oa(),this.R.na().sa());case olympe.ui.ha.Ip.ZF:return this.R.na();case olympe.ui.ha.Ip.UU:return new olympe.j.ga(this.R.na().oa().En(this.D.oa()),this.D.sa());case olympe.ui.ha.Ip.TU:return new olympe.j.ga(this.D.oa(),
800
+ this.pJ(c);this.Td(this.content);this.fQ(d);this.oJ(b);this.$P(void 0===e?void 0!==a?olympe.ui.ha.Ip.Vf:olympe.ui.ha.Ip.ZF:e);K(this.D,a);super.Hb(nc(this.Oa,l=>{switch(l.valueOf()){case olympe.ui.ha.Ip.IQ:return new olympe.j.ga(this.R.na().oa(),this.D.sa());case olympe.ui.ha.Ip.HQ:return new olympe.j.ga(this.D.oa(),this.R.na().sa());case olympe.ui.ha.Ip.ZF:return this.R.na();case olympe.ui.ha.Ip.UU:return new olympe.j.ga(this.R.na().oa().En(this.D.oa()),this.D.sa());case olympe.ui.ha.Ip.TU:return new olympe.j.ga(this.D.oa(),
801
801
  this.R.na().sa().En(this.D.sa()));case olympe.ui.ha.Ip.VU:return new olympe.j.ga(this.R.na().oa().En(this.D.oa()),this.R.na().sa().En(this.D.sa()));default:return a}},null,olympe.j.ga));olympe.ui.F.HC.prototype.ee.call(this,olympe.ui.La.D().JA(h));olympe.j.Xa([this.data],l=>{this.C.wi(l.He())});olympe.j.li([this.data,this.Xe,this.R,this.Oa],(l,m,n)=>{l.forEach((p,r,t)=>{const u=olympe.j.Ab(),v=n.Nw(this.content,m,p,r,t,this,u),w=olympe.j.Pa(this.Ka);void 0!==w&&w.valueOf()&&v.Xc(x=>{void 0===this.C.Oj(r)?
802
802
  (x.sz().valueOf()&&olympe.j.Pa(this.Fa).valueOf()||(this.C.clear(),this.O.clear()),this.C.set(r,p),this.O.set(r,r)):!x.sz().valueOf()&&1<this.C.hj()?(this.C.clear(),this.O.clear(),this.C.set(r,p),this.O.set(r,r)):x.sz().valueOf()?(this.O.remove(r),this.C.remove(r)):(this.C.clear(),this.O.clear())});K(u,olympe.j.Za(this.C.has(r),()=>this.yb,()=>olympe.j.Za(t.kf(r).Gx(2).Ue(0),()=>this.eb,()=>this.Eb,olympe.j.kb),olympe.j.kb))})})}oJ(a){K(this.data,a)}pJ(a){K(this.Xe,a)}fQ(a){K(this.R,a)}$P(a){K(this.Oa,
803
803
  a)}Ul(a){K(this.Ka,a);return this}TZ(a){K(this.Fa,a);return this}cY(){return this.O}IS(){return this.O.be()}dY(){return this.C}JS(){return this.C.be()}YP(a){K(this.eb,a)}hQ(a){K(this.Eb,a)}lQ(a){K(this.yb,a)}Hb(a){K(this.D,a);return this}AZ(){F(this.Fa).valueOf()&&this.data.di((a,b)=>{this.C.set(b,a);this.O.set(b,b)});return this}uW(){this.C.clear();this.O.clear();return this}ee(a){super.ee(a);this.YP(a.D());this.hQ(a.O());this.lQ(a.R())}};k=olympe.ui.F.HC.prototype;k.oJ.K=olympe.j.J.C([]);
@@ -823,9 +823,9 @@ b,c)}ee(a){a&&(super.ee(a),this.ce(a.BI(),a.JN()),this.XC(a.eO()),this.hk(a.NO()
823
823
  k.sb.K=olympe.j.J.C([]);k.Ud.K=olympe.j.J.C([]);k.lb.K=olympe.j.J.C([]);k.Bb.K=olympe.j.J.C([]);k.wb.K=olympe.j.J.C([]);k.Ma.K=olympe.j.J.C([]);k.XC.K=olympe.j.J.C([]);k.hk.K=olympe.j.J.C([]);k.LS.K=olympe.j.J.C([]);k.YC.K=olympe.j.J.C([]);k.ZC.K=olympe.j.J.C([]);k.qJ.K=olympe.j.J.C([]);k.rJ.K=olympe.j.J.C([]);k.MZ.K=olympe.j.J.C([]);k.YZ.K=olympe.j.J.C([]);k.NZ.K=olympe.j.J.C([]);k.JZ.K=olympe.j.J.C([]);k.ce.K=olympe.j.J.C([]);k.Id.K=olympe.j.J.C([]);k.PZ.K=olympe.j.J.C([]);k.cd.K=olympe.j.J.C([]);
824
824
  k.nd.K=olympe.j.J.C([]);k.Vx.K=olympe.j.J.C([]);k.KS.K=olympe.j.J.C([]);k.Df.K=olympe.j.J.C([]);k.Hb.K=olympe.j.J.C([]);k.Eg.K=olympe.j.J.C([]);olympe.ui.F.ze=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.he,olympe.host.ab.jb.$z),a)}};olympe.ui.F.nm=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.he,olympe.host.ab.jb.$z));this.Hb(new olympe.j.ga(a,a));this.Xb(this.na().oa().Ta(2))}};function lg(a,b,c,d,e){d=void 0===d?olympe.j.aa.ZERO:olympe.j.ma(d);e=void 0===e?olympe.j.aa.ZERO:olympe.j.ma(e);olympe.j.Za(a.Oa.va(),()=>{a.W.repeat(olympe.j.aa.max(a.T))},()=>{olympe.j.Og(b)?a.W.repeat(b):a.W.update(void 0!==b?b:olympe.j.aa.ZERO)});c=void 0!==c?olympe.j.Og(c)?c:olympe.j.Ba(c):olympe.j.Wa([a.R.Tc(),a.yb],(f,g)=>olympe.j.Ba(f-g),olympe.j.aa);a.eb(a.W.va(),c,d,e);fg(a,a.content,'Layout content')}
825
825
  olympe.ui.F.at=class extends olympe.ui.F.he{constructor(a,b,c,d,e,f=!1,g=!1){super();this.R=new olympe.j.bA;this.Mb=g;this.Zb=f;this.Oa=olympe.j.Ya(olympe.j.ia,'Abstract Layout childWatchedDimensionFS').update(void 0!==a?olympe.j.ia.pb:olympe.j.ia.C);this.W=M(olympe.j.Ya(olympe.j.aa,'abstract Layout childWatchedDimension'),olympe.j.aa.ZERO);this.T=new olympe.j.Map(olympe.j.aa);this.T.set('DefaultSize',olympe.j.aa.ZERO);this.yb=void 0===c?olympe.j.aa.ZERO:olympe.j.ma(c);this.content=new olympe.ui.F.Ze;
826
- this.content.Ur();lg(this,a,b,d,e)}oc(){return this.content.oc()||super.oc()}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.j.aa.ONE,e=1<c.length?c[1]:olympe.j.aa.ONE;var f=2<c.length?c[2]:olympe.ui.ha.Cb.Tf,g=3<c.length?c[3]:void 0;if('string'!==typeof b)throw Error('A child should be registered using a string id');void 0!==this.T.Oj(b)&&this.removeChild(b);c=olympe.j.Za(a.os(),()=>olympe.j.aa.ZERO,()=>d.Ra(this.yb),olympe.j.aa);g=Sc(this.R,b,c,g);switch(f){case olympe.ui.ha.Cb.Tb:f=this.content.na().oa().ya(a.na().oa()).Ta(2);
826
+ this.content.Ur();lg(this,a,b,d,e)}oc(){return this.content.oc()||super.oc()}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.j.aa.ONE,e=1<c.length?c[1]:olympe.j.aa.ONE;var f=2<c.length?c[2]:olympe.ui.ha.Cb.Uf,g=3<c.length?c[3]:void 0;if('string'!==typeof b)throw Error('A child should be registered using a string id');void 0!==this.T.Oj(b)&&this.removeChild(b);c=olympe.j.Za(a.os(),()=>olympe.j.aa.ZERO,()=>d.Ra(this.yb),olympe.j.aa);g=Sc(this.R,b,c,g);switch(f){case olympe.ui.ha.Cb.Tb:f=this.content.na().oa().ya(a.na().oa()).Ta(2);
827
827
  break;case olympe.ui.ha.Cb.Di:f=this.content.na().oa().ya(a.na().oa());break;case olympe.ui.ha.wc.Uc:f=this.content.na().sa().ya(a.na().sa()).Ta(2);break;case olympe.ui.ha.wc.Dh:f=this.content.na().sa().ya(a.na().sa());break;default:f=0}c=this.Mb?this.R.Tc().ya(g).ya(c):g;g=olympe.j.Za(a.os(),()=>olympe.j.aa.ZERO,()=>e,olympe.j.aa);this.T.set(b,g);f=this.Zb?new olympe.j.ga(f,c):new olympe.j.ga(c,f);this.content.appendChild(a,b,f);gg(this.content,h=>{Qc(this.R,h);this.T.remove(h)});return this}removeChild(a){Qc(this.R,
828
- a);this.content.removeChild(a);this.T.remove(a);return this}pg(){Mc(this.R);this.content.pg();this.T.clear();return this}Tc(){return this.R.W.va().Ra(olympe.j.aa.ONE)}Eb(a){olympe.j.Og(a)?this.Oa.repeat(a):this.Oa.update(a)}eb(){}};olympe.ui.F.at.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.F.at.prototype.pg.K=olympe.j.J.C([]);olympe.ui.F.at.prototype.Tc.K=olympe.j.J.D;olympe.ui.F.at.prototype.Eb.K=olympe.j.J.C([]);olympe.ui.F.Ze=class extends olympe.ui.F.he{appendChild(a,b,c){if('string'!==typeof b)throw Error('A child should be registered using a string childId');void 0!==c&&a.setPosition(c);fg(this,a,b);return this}removeChild(a){this.O().removeChild(a);return this}pg(){this.O().pg();return this}};olympe.ui.F.Ze.prototype.appendChild.K=olympe.j.J.C([]);olympe.ui.F.Ze.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.F.Ze.prototype.pg.K=olympe.j.J.C([]);olympe.ui.F.yd=class extends olympe.ui.F.at{constructor(a,b,c,d,e,f){super(a,f,b,c,d,!0,e)}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.ui.ha.Cb.Tf;c=1<c.length?c[1]:void 0;super.appendChild(a,b,a.na().sa(),a.na().oa(),d,c);return this}eb(a,b,c,d){var e=new olympe.j.ga(a,b);this.content.Hb(e);e=new olympe.j.ga(olympe.j.aa.ZERO,c);this.content.setPosition(e);a=new olympe.j.ga(a,b.Ra(c).Ra(d));this.Hb(a)}ce(a){super.Eb(a);return this}};olympe.ui.F.yd.prototype.appendChild.K=olympe.j.J.C([]);
828
+ a);this.content.removeChild(a);this.T.remove(a);return this}pg(){Mc(this.R);this.content.pg();this.T.clear();return this}Tc(){return this.R.W.va().Ra(olympe.j.aa.ONE)}Eb(a){olympe.j.Og(a)?this.Oa.repeat(a):this.Oa.update(a)}eb(){}};olympe.ui.F.at.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.F.at.prototype.pg.K=olympe.j.J.C([]);olympe.ui.F.at.prototype.Tc.K=olympe.j.J.D;olympe.ui.F.at.prototype.Eb.K=olympe.j.J.C([]);olympe.ui.F.Ze=class extends olympe.ui.F.he{appendChild(a,b,c){if('string'!==typeof b)throw Error('A child should be registered using a string childId');void 0!==c&&a.setPosition(c);fg(this,a,b);return this}removeChild(a){this.O().removeChild(a);return this}pg(){this.O().pg();return this}};olympe.ui.F.Ze.prototype.appendChild.K=olympe.j.J.C([]);olympe.ui.F.Ze.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.F.Ze.prototype.pg.K=olympe.j.J.C([]);olympe.ui.F.yd=class extends olympe.ui.F.at{constructor(a,b,c,d,e,f){super(a,f,b,c,d,!0,e)}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.ui.ha.Cb.Uf;c=1<c.length?c[1]:void 0;super.appendChild(a,b,a.na().sa(),a.na().oa(),d,c);return this}eb(a,b,c,d){var e=new olympe.j.ga(a,b);this.content.Hb(e);e=new olympe.j.ga(olympe.j.aa.ZERO,c);this.content.setPosition(e);a=new olympe.j.ga(a,b.Ra(c).Ra(d));this.Hb(a)}ce(a){super.Eb(a);return this}};olympe.ui.F.yd.prototype.appendChild.K=olympe.j.J.C([]);
829
829
  olympe.ui.F.yd.prototype.ce.K=olympe.j.J.C([]);olympe.ui.F.de=class extends olympe.ui.F.at{constructor(a,b,c,d,e=!1,f){super(a,f,b,c,d,!1,e)}appendChild(a,b,...c){const d=0<c.length?c[0]:olympe.ui.ha.wc.lh;c=1<c.length?c[1]:void 0;super.appendChild(a,b,a.na().oa(),a.na().sa(),d,c);return this}eb(a,b,c,d){var e=new olympe.j.ga(b,a);this.content.Hb(e);e=new olympe.j.ga(c,olympe.j.aa.ZERO);this.content.setPosition(e);a=new olympe.j.ga(b.Ra(c).Ra(d),a);this.Hb(a)}Id(a){super.Eb(a);return this}};olympe.ui.F.de.prototype.appendChild.K=olympe.j.J.C([]);
830
830
  olympe.ui.F.de.prototype.Id.K=olympe.j.J.C([]);olympe.ui.F.Dm=class extends olympe.ui.F.he{constructor(a){super(a)}appendChild(a,b,c){a.setPosition(new olympe.j.ga(this.na().oa().ya(a.na().oa()).hb(c.oa()),this.na().sa().ya(a.na().sa()).hb(c.sa())));fg(this,a,b);return this}C(a,b){this.appendChild(a,b,new olympe.j.ga(.5,.5));return this}removeChild(a){this.O().removeChild(a);return this}pg(){this.O().pg();return this}};olympe.ui.F.Dm.R=0;olympe.ui.F.Dm.W=0;olympe.ui.F.Dm.O=.5;olympe.ui.F.Dm.T=1;olympe.ui.F.Dm.D=1;
831
831
  olympe.ui.F.Dm.prototype.appendChild.K=olympe.j.J.C([]);olympe.ui.F.Dm.prototype.C.K=olympe.j.J.C([]);olympe.ui.F.Dm.prototype.removeChild.K=olympe.j.J.C([]);olympe.ui.F.Dm.prototype.pg.K=olympe.j.J.C([]);olympe.ui.F.If=class extends olympe.ui.F.he{constructor(a,b,c,d,e,f){super();this.Fa=new olympe.j.bA;this.C=olympe.j.ma(0);this.Qe=olympe.j.Yc(!1);this.height=void 0===b?olympe.j.ma(0):olympe.j.ma(b);this.width=void 0===a?olympe.j.ma(0):olympe.j.ma(a);this.Ka=olympe.j.Yc(!0);this.W=void 0===d?olympe.j.ma(0):olympe.j.ma(d);this.Eb=void 0===e?olympe.j.ma(0):olympe.j.ma(e);this.eb=void 0===f?olympe.j.ma(0):olympe.j.ma(f);this.Oa=this.width.ya(this.W);this.fa=olympe.j.ma(c).Ra(this.W);this.ca=olympe.j.ma();
@@ -838,7 +838,7 @@ olympe.j.aa.Hh.Gp);f=olympe.j.Mi(f.Ta(this.D).ya(.5).round().hb(l),olympe.j.ma(3
838
838
  olympe.ui.F.Le=class extends olympe.ui.F.mb{constructor(a){super(olympe.ui.La.C(olympe.N.F.Le,olympe.host.ab.jb.RL));this.D=olympe.j.ia.C;this.C=Object.create(null);T(this).nB(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.GH(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.Pa(this.D);b&&b.valueOf()&&T(this).Ss()})}ku(a){T(this).ku(a);return this}dv(a){T(this).dv(a);
839
839
  return this}Px(a){this.D=a;return this}Df(a){T(this).Df(a);return this}Is(a){T(this).Is(a);return this}qu(){T(this).qu();return this}Ss(){T(this).Ss();return this}};k=olympe.ui.F.Le.prototype;k.ku.K=olympe.j.J.C([]);k.dv.K=olympe.j.J.C([]);k.Px.K=olympe.j.J.C([]);k.Df.K=olympe.j.J.C([]);k.Is.K=olympe.j.J.C([]);k.qu.K=olympe.j.J.C([]);k.Ss.K=olympe.j.J.C([]);olympe.ui.F.GH=class{constructor(a,b,c,d){this.content=a;this.name=b;this.mimeType=c;this.size=d}oe(){return olympe.j.mc(`file:${this.name}`)}Be(){return this.content}lx(a,b){void 0===a&&void 0===b||olympe.fb.tb('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)}FA(a,b){void 0===a&&void 0===b||olympe.fb.tb('olympe.ui.std.FileUploadItem.getContentAsString').warn('"onSuccess" and "onFailure" callbacks are deprecated in favor of the returned promise');
840
840
  b=eb(this.content);null==a||a(b);return Promise.resolve(b)}es(a,b){void 0===a&&void 0===b||olympe.fb.tb('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.Mj().C(this.content)}`;null==a||a(b);return Promise.resolve(b)}bF(a,b){olympe.j.Xa([a],c=>{this.name=c.valueOf()});b(!0)}bb(){return olympe.j.mc(this.name)}rz(){return olympe.j.mc(this.name)}vx(){return olympe.j.mc(this.mimeType)}Tc(){return this.size}};
841
- olympe.ui.F.GH.Aa=[olympe.j.File];olympe.ui.F.Qf=class{constructor(){}filter(){}};olympe.ui.F.Fe=class extends olympe.ui.F.xd{constructor(a,b,c,d){super(a);this.data=olympe.j.ub(olympe.j.Wg);this.C=olympe.j.ma();this.R=new olympe.j.ga(this.na().oa(),this.C);this.Xe=olympe.j.ub(Object);this.content=new olympe.ui.F.Ze(new olympe.j.ga(this.na().oa(),this.C.hb(this.data.Tc())));olympe.j.pd();olympe.j.pd();this.D=olympe.j.ub();this.O=olympe.j.ub(String);a&&this.Hb(a);b&&this.sJ(b);c&&this.cQ(c);d&&this.tJ(d);this.Td(this.content);nc(this.data,e=>{mc(this.D,e.He())});nc(this.Xe,e=>{this.data.forEach((f,
841
+ olympe.ui.F.GH.Aa=[olympe.j.File];olympe.ui.F.Rf=class{constructor(){}filter(){}};olympe.ui.F.Fe=class extends olympe.ui.F.xd{constructor(a,b,c,d){super(a);this.data=olympe.j.ub(olympe.j.Wg);this.C=olympe.j.ma();this.R=new olympe.j.ga(this.na().oa(),this.C);this.Xe=olympe.j.ub(Object);this.content=new olympe.ui.F.Ze(new olympe.j.ga(this.na().oa(),this.C.hb(this.data.Tc())));olympe.j.pd();olympe.j.pd();this.D=olympe.j.ub();this.O=olympe.j.ub(String);a&&this.Hb(a);b&&this.sJ(b);c&&this.cQ(c);d&&this.tJ(d);this.Td(this.content);nc(this.data,e=>{mc(this.D,e.He())});nc(this.Xe,e=>{this.data.forEach((f,
842
842
  g,h)=>{h=h.kf(g);const l=e(this.R,f,g,h);l.Xc(()=>{I(this.D,f);I(this.O,g)});this.content.appendChild(l,g,new olympe.j.ga(0,h.hb(this.C)))})})}sJ(a){K(this.data,a)}cQ(a){K(this.C,a)}tJ(a){K(this.Xe,a)}NS(){return this.O}OS(){return this.D}};k=olympe.ui.F.Fe.prototype;k.sJ.K=olympe.j.J.C([]);k.cQ.K=olympe.j.J.C([]);k.tJ.K=olympe.j.J.C([]);k.NS.K=new olympe.j.J(()=>String,[]);k.OS.K=new olympe.j.J(()=>Object,[]);olympe.ui.F.Jm=class{constructor(){}run(){}$j(){}C(){}};function ng(a){const b=a.qa+String((new Date).getTime()+Math.random());olympe.j.Za(a.Ka,()=>{null!==a.D&&a.D.fh(olympe.ui.La.O(b+'_overlay').Ra(1));a.C.fh(olympe.ui.La.O(b).Ra(1));a.O=F(a.T);a.O.appendChild(a.C,a.qa);const c=()=>{for(const e in a.Eb)if(Object.prototype.hasOwnProperty.call(a.Eb,e))a.Eb[e]();a.dF();null!==a.D&&a.D.setPosition(new olympe.j.ga(0,0))},d=F(a.animation);null!==d?F(a.Oa).valueOf()?d.$j(a.content,a.O,c):d.$j(a.C,a.O,c):c();null!==a.D&&(a.O.tj(),a.O.appendChild(a.D,a.qa+'_overlay'),
843
843
  null!==d&&F(a.Da).valueOf()&&d.$j(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.qa);null!==a.D&&c.removeChild(a.qa+'_overlay');a.dF();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.Pa(a.animation);if(null!==e&&void 0!==e){const f=null!==a.D&&olympe.j.Pa(a.Da)===olympe.j.ia.C;F(a.Oa).valueOf()?e.C(a.content,c,f?void 0:d):e.C(a.C,
844
844
  c,f?void 0:d);f&&e.C(a.D,a.O,d)}else d()}})}function og(a,b,c){c=void 0!==c?c:olympe.la.df();a.$[c]=b}function pg(a,b,c){c=void 0!==c?c:olympe.la.df();0===a.Fa.size&&a.D.Xc(d=>{for(const e of a.Fa.values())e(d)},'onOverlayClick');a.Fa.set(c,b)}function qg(a){a.Fa.has('closableByClickingOut')||pg(a,()=>{a.cl(!1)},'closableByClickingOut')}
@@ -855,32 +855,32 @@ k.setScale.K=olympe.j.J.C([]);k.Ma.K=olympe.j.J.C([]);k.Xb.K=olympe.j.J.C([]);k.
855
855
  this.R);c.Id(!0);c.Jb(this.title);c.lb(N());c.Vb(olympe.ui.ha.Cb.Tb);a.appendChild(c,'title',olympe.ui.ha.Cb.Tb);c=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.R.hb(2)),1),b.Du());c.Id(!0);c.jo(!0);c.Jb(this.message);c.lb(N());c.Vb(olympe.ui.ha.Cb.Tb);a.appendChild(c,'text',olympe.ui.ha.Cb.Tb);this.ca=new olympe.ui.F.nc(void 0,this.fa,b.RA());b=new olympe.ui.F.yd(this.na().oa().ya(this.R.hb(2)));a.appendChild(b,'button',olympe.ui.ha.Cb.Tb);b.appendChild(this.ca,'okBtn',olympe.ui.ha.Cb.Tb);
856
856
  this.ca.Xc(this.Ha.bind(this));olympe.j.Za(this.isVisible(),()=>{olympe.ui.La.lf().Kk(h=>{h.OA().Sb(13)&&this.Ha()})});this.Td(a)}ki(a){K(this.title,a);return this}PS(a){K(this.message,a);return this}VZ(a){K(this.fa,a);return this}WZ(a){K(this.xc,a);return this}UZ(a){K(this.yb,a);return this}xJ(a){K(this.ob,a)}Ef(a){K(this.R,a);return this}th(){const a=olympe.ui.La.D().$r(this.Mb);super.th(a);this.Ef(a.Eu());this.xJ(a.Gu())}};olympe.ui.F.Jy.T=500;olympe.ui.F.Jy.C=150;k=olympe.ui.F.Jy.prototype;
857
857
  k.ki.K=olympe.j.J.C([]);k.PS.K=olympe.j.J.C([]);k.VZ.K=olympe.j.J.C([]);k.WZ.K=olympe.j.J.C([]);k.UZ.K=olympe.j.J.C([]);k.xJ.K=olympe.j.J.C([]);k.Ef.K=olympe.j.J.C([]);olympe.ui.F.xI=class extends olympe.ui.F.tw{constructor(a,b,c,d){super(a,b,c);this.zh=d;this.ca=olympe.j.ma(0);this.fa=olympe.j.ma(0);this.Sc=olympe.j.Ab('');this.Zb=olympe.j.Ab('');this.ob=olympe.j.Ab('');this.Mb=olympe.j.ma(0);const e=olympe.j.ma();this.R=new olympe.ui.F.Ob(new olympe.j.ga(e.ya(this.ca),this.Mb));this.xc=olympe.j.Ab('CANCEL');this.ed=olympe.j.Ab('CONFIRM');this.title=olympe.j.Ab('');this.message=olympe.j.Ab('');this.Od=olympe.j.Ab('');this.Gc=new olympe.ui.F.nc(void 0,this.ed,this.ob);
858
- this.yb=new olympe.ui.F.nc(void 0,this.xc,this.ob);a=olympe.ui.La.D().Au(d);b=new olympe.ui.F.yd(e,this.fa,this.ca,this.ca);const f=new olympe.ui.F.cb(void 0,this.Sc);f.Id(!0);f.ce(!0);f.Jb(this.title);f.lb(N());f.Vb(olympe.ui.ha.Cb.Tb);b.appendChild(f,'title',olympe.ui.ha.Cb.Tb);c=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.ca.hb(2)),1),this.Zb);c.Id(!0);c.jo(!0);c.Jb(this.message);c.lb(N());c.Vb(olympe.ui.ha.Cb.Tf);b.appendChild(c,'text',olympe.ui.ha.Cb.Tb);K(this.Od,this.R.Uj());
858
+ this.yb=new olympe.ui.F.nc(void 0,this.xc,this.ob);a=olympe.ui.La.D().Au(d);b=new olympe.ui.F.yd(e,this.fa,this.ca,this.ca);const f=new olympe.ui.F.cb(void 0,this.Sc);f.Id(!0);f.ce(!0);f.Jb(this.title);f.lb(N());f.Vb(olympe.ui.ha.Cb.Tb);b.appendChild(f,'title',olympe.ui.ha.Cb.Tb);c=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.ca.hb(2)),1),this.Zb);c.Id(!0);c.jo(!0);c.Jb(this.message);c.lb(N());c.Vb(olympe.ui.ha.Cb.Uf);b.appendChild(c,'text',olympe.ui.ha.Cb.Tb);K(this.Od,this.R.Uj());
859
859
  b.appendChild(this.R,'inputBox',olympe.ui.ha.Cb.Tb);var g=new olympe.ui.F.de(void 0,this.fa,this.fa,this.fa);b.appendChild(g,'button',olympe.ui.ha.Cb.Tb);g.appendChild(this.yb,'cancelBtn');g.appendChild(this.Gc,'okBtn');this.Gc.Xc(this.Ha.bind(this));this.yb.Xc(this.cancel.bind(this));olympe.j.Za(this.Nf,()=>{f.ce(!0);K(e,f.na().oa().SP(g.na().oa()))},()=>{f.ce(!1);f.na().se(this.na().oa());K(e,this.na().oa())});this.Td(b);olympe.ui.F.xI.prototype.th.call(this,a)}ki(a){K(this.title,a);return this}SS(a){K(this.message,
860
860
  a);return this}RS(a){K(this.ed,a);return this}QS(a){K(this.xc,a);return this}d_(a){this.R.In(a);return this}IJ(a){K(this.fa,a)}Ef(a){K(this.ca,a);return this}FX(){return this.Od}zJ(a){this.R.Ma(a)}GJ(a){this.R.lb(a)}FJ(a){this.R.td(a)}CJ(a){this.R.sd(a)}DJ(a){this.R.Hc(a)}EJ(a){this.R.Lc(a)}bQ(a,b){this.R.Pd(a,b)}BJ(a){K(this.Mb,a)}AJ(a){this.R.wb(a)}JJ(a){K(this.Sc,a)}yJ(a){K(this.ob,a)}HJ(a){K(this.Zb,a)}th(){const a=olympe.ui.La.D().Au(this.zh);super.th(a);this.JJ(a.Hu());this.yJ(a.PN());this.HJ(a.Du());
861
861
  this.BJ(a.rO());this.Ef(a.Eu());this.IJ(a.Gu());this.zJ(a.oO());this.GJ(a.wO());this.FJ(a.vO());this.CJ(a.sO());this.DJ(a.tO());this.EJ(a.uO());this.AJ(a.qO());this.bQ(a.Fi(),a.pO())}};k=olympe.ui.F.xI.prototype;k.ki.K=olympe.j.J.C([]);k.SS.K=olympe.j.J.C([]);k.RS.K=olympe.j.J.C([]);k.QS.K=olympe.j.J.C([]);k.d_.K=olympe.j.J.C([]);k.IJ.K=olympe.j.J.C([]);k.Ef.K=olympe.j.J.C([]);k.FX.K=olympe.j.J.R;k.zJ.K=olympe.j.J.C([]);k.GJ.K=olympe.j.J.C([]);k.FJ.K=olympe.j.J.C([]);k.CJ.K=olympe.j.J.C([]);
862
862
  k.DJ.K=olympe.j.J.C([]);k.EJ.K=olympe.j.J.C([]);k.bQ.K=olympe.j.J.C([]);k.BJ.K=olympe.j.J.C([]);k.AJ.K=olympe.j.J.C([]);k.JJ.K=olympe.j.J.C([]);k.yJ.K=olympe.j.J.C([]);k.HJ.K=olympe.j.J.C([]);olympe.ui.F.OG=class extends olympe.ui.F.tw{constructor(a,b,c,d){d=olympe.ui.La.D().$r(d);super(a,b,c);this.R=olympe.j.ma(20);this.ca=olympe.j.ma(20);this.yb=olympe.j.Ab('CANCEL');this.Mb=olympe.j.ma(20);this.Sc=this.na().oa().Ta(2).ya(this.Mb);this.ed=olympe.j.ma(40);this.xc=olympe.j.Ab('OK');this.Gc=this.na().oa().Ta(2).ya(this.Mb);this.Zb=olympe.j.ma(40);olympe.j.pd(0,0,0);olympe.j.pd(51,51,51);this.title=olympe.j.Ab('');olympe.j.ma(20);this.message=olympe.j.Ab('');olympe.j.ma(16);a=new olympe.ui.F.yd(this.na().oa(),
863
- this.ca,this.R,this.R);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.R.hb(2)),1),d.Hu());b.Id(!0);b.Jb(this.title);b.lb(N());b.Vb(olympe.ui.ha.Cb.Tb);a.appendChild(b,'title',olympe.ui.ha.Cb.Tb);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.R.hb(2)),1),d.Du());b.Id(!0);b.jo(!0);b.Jb(this.message);b.lb(N());b.Vb(olympe.ui.ha.Cb.Tf);a.appendChild(b,'text',olympe.ui.ha.Cb.Tb);this.fa=new olympe.ui.F.nc(void 0,this.xc,d.RA());this.ob=new olympe.ui.F.nc(void 0,this.yb,d.RA());
863
+ this.ca,this.R,this.R);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.R.hb(2)),1),d.Hu());b.Id(!0);b.Jb(this.title);b.lb(N());b.Vb(olympe.ui.ha.Cb.Tb);a.appendChild(b,'title',olympe.ui.ha.Cb.Tb);b=new olympe.ui.F.cb(new olympe.j.ga(this.na().oa().ya(this.R.hb(2)),1),d.Du());b.Id(!0);b.jo(!0);b.Jb(this.message);b.lb(N());b.Vb(olympe.ui.ha.Cb.Uf);a.appendChild(b,'text',olympe.ui.ha.Cb.Tb);this.fa=new olympe.ui.F.nc(void 0,this.xc,d.RA());this.ob=new olympe.ui.F.nc(void 0,this.yb,d.RA());
864
864
  b=new olympe.ui.F.de(this.fa.na().sa(),this.ca,this.ca,this.ca);a.appendChild(b,'button',olympe.ui.ha.Cb.Tb);b.appendChild(this.ob,'cancelBtn');b.appendChild(this.fa,'okBtn');this.fa.Xc(this.Ha.bind(this));this.ob.Xc(this.cancel.bind(this));this.Td(a);olympe.ui.F.OG.prototype.th.call(this,d)}ki(a){K(this.title,a);return this}IZ(a){K(this.message,a);return this}US(a){K(this.xc,a);return this}TS(a){K(this.yb,a);return this}HZ(a){K(this.Gc,a);return this}GZ(a){K(this.Zb,a);return this}CZ(a){K(this.Sc,
865
865
  a);return this}BZ(a){K(this.ed,a);return this}KJ(a){K(this.ca,a)}Ef(a){K(this.R,a);return this}th(a){super.th(a);this.Ef(a.Eu());this.KJ(a.Gu())}};k=olympe.ui.F.OG.prototype;k.ki.K=olympe.j.J.C([]);k.IZ.K=olympe.j.J.C([]);k.US.K=olympe.j.J.C([]);k.TS.K=olympe.j.J.C([]);k.HZ.K=olympe.j.J.C([]);k.GZ.K=olympe.j.J.C([]);k.CZ.K=olympe.j.J.C([]);k.BZ.K=olympe.j.J.C([]);k.KJ.K=olympe.j.J.C([]);k.Ef.K=olympe.j.J.C([]);olympe.ui.F.ni=class extends olympe.ui.F.kg{constructor(a,b,c){super(void 0,a,null,'bubble');this.Mb=olympe.j.ub(String);this.ob=olympe.j.ub(olympe.j.Color);this.yb=olympe.j.ub(olympe.j.Color);this.xc=olympe.j.ma(1);this.Ha=olympe.j.ma(1);this.ca=olympe.j.ma(1);this.fa=olympe.j.ma(1);this.R=null;void 0!==b&&this.Td(b);a&&pg(this,()=>{this.cl(!1);return!1},'hide');og(this,()=>{null!==this.R&&(this.R.Ub.destroy(),this.R=null)},'disposeSyncProxy');olympe.ui.F.ni.prototype.th.call(this,olympe.ui.La.D().EA(c));
866
866
  this.C.bh(this.Mb,olympe.ui.ha.Eh.$s,olympe.ui.ha.ef.Tb)}wB(){}QJ(a){K(this.xc,a)}PJ(a){K(this.yb,a)}OJ(a){K(this.ob,a)}NJ(a){K(this.Ha,a)}LJ(a){K(this.ca,a)}MJ(a){K(this.fa,a)}g_(a,b,c,d=0,e=!0){const f=this.T;this.R&&this.R.Ub.destroy();this.R=olympe.j.li([f.na().oa(),f.na().sa(),this.content.na().oa(),this.content.na().sa(),a.oa(),a.sa(),this.Ha,this.ca,this.fa,b,c,d,this.xc,this.yb.mi(),this.ob.mi(),this.Nf,this.Qe,this.isVisible()],(g,h,l,m,n,p,r,t,u,v,w,x,y,A,H,G,R,fa)=>{if(fa.valueOf()&&!this.C.getParent().Ub.oc()){g=
867
- g.valueOf();h=h.valueOf();l=Math.round(l.valueOf()+2*y);m=Math.round(m.valueOf()+2*y);n=Math.round(n.valueOf());p=Math.round(p.valueOf());v=v?v.valueOf():olympe.ui.F.ni.C.Dh;G=G.valueOf();R=R.valueOf();0===v%2?(fa=v,h=Math.max(0,Math.min(h-m,void 0===w?p-m/2:w)),v===olympe.ui.F.ni.C.Di?(v=n,w=y+t,v>g-l-t&&(fa=olympe.ui.F.ni.C.Tf,v=n-t-l+x,w=y)):(v=n-t-l,w=y,0>v&&n+t+l<g&&(fa=olympe.ui.F.ni.C.Di,v=n+x,w=y+t)),x=p-h,x<r+u?(x=r+u,h=p-x):x>m-t-u&&(x=m-t-u,h=p-x),n=[l+t,m,v,h,w,y,fa,n-v,x]):(fa=v,g=Math.max(0,
867
+ g.valueOf();h=h.valueOf();l=Math.round(l.valueOf()+2*y);m=Math.round(m.valueOf()+2*y);n=Math.round(n.valueOf());p=Math.round(p.valueOf());v=v?v.valueOf():olympe.ui.F.ni.C.Dh;G=G.valueOf();R=R.valueOf();0===v%2?(fa=v,h=Math.max(0,Math.min(h-m,void 0===w?p-m/2:w)),v===olympe.ui.F.ni.C.Di?(v=n,w=y+t,v>g-l-t&&(fa=olympe.ui.F.ni.C.Uf,v=n-t-l+x,w=y)):(v=n-t-l,w=y,0>v&&n+t+l<g&&(fa=olympe.ui.F.ni.C.Di,v=n+x,w=y+t)),x=p-h,x<r+u?(x=r+u,h=p-x):x>m-t-u&&(x=m-t-u,h=p-x),n=[l+t,m,v,h,w,y,fa,n-v,x]):(fa=v,g=Math.max(0,
868
868
  Math.min(g-l,void 0===w?n-l/2:w)),v===olympe.ui.F.ni.C.lh?(v=p-t-m,w=y,0>v&&(fa=olympe.ui.F.ni.C.Dh,v=p+x,w=y+t)):(v=p,w=y+t,v>h-m-t&&(fa=olympe.ui.F.ni.C.lh,v=p-t-m+x,w=y)),x=n-g,x<r+u?(x=r+u,g=n-x):x>l-t-u&&(x=l-t-u,g=n-x),n=[l,m+t,g,v,y,w,fa,x,p-v]);var [Ta,ta,Nb,J,V,La,ua,Ua,Xa]=n;this.C.Hb(new olympe.j.ga(Ta,ta));G&&this.Hb(new olympe.j.ga(Ta,this.na().sa()));R&&this.Hb(new olympe.j.ga(this.na().oa(),ta));this.setPosition(new olympe.j.ga(Nb,J));this.content.setPosition(new olympe.j.ga(V,La));
869
869
  r=r.valueOf();t=t.valueOf();y=y.valueOf();G=y/2;switch(ua){case olympe.ui.F.ni.C.lh:var ja=G;l-=G;R=G;n=m-G;ja='M'+ja+','+R+' L'+l+','+R+' L'+l+','+n+' L'+(Ua+r)+','+n+' L'+Ua+','+(t+m-G)+' L'+(Ua-r)+','+n+' L'+ja+','+n+' Z';break;case olympe.ui.F.ni.C.Di:n=t+G;l=t+l-G;R=G;m-=G;ja='M'+n+','+R+' L'+l+','+R+' L'+l+','+m+' L'+n+','+m+' L'+n+','+(Xa+r)+' L'+G+','+Xa+' L'+n+','+(Xa-r)+' Z';break;case olympe.ui.F.ni.C.Dh:ja=G;l-=G;n=t+G;m=t+m-G;ja='M'+ja+','+n+' L'+(Ua-r)+','+n+' L'+Ua+','+G+' L'+(Ua+r)+
870
- ','+n+' L'+l+','+n+' L'+l+','+m+' L'+ja+','+m+' Z';break;case olympe.ui.F.ni.C.Tf:ja=G,n=l-G,R=G,m-=G,ja='M'+ja+','+R+' L'+n+','+R+' L'+n+','+(Xa-r)+' L'+(t+l-G)+','+Xa+' L'+n+','+(Xa+r)+' L'+n+','+m+' L'+ja+','+m+' Z'}I(this.Mb,'data:image/svg+xml,'+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" >'+` <path d="${ja}" fill="${H.valueOf()}" stroke="${A.valueOf()}" stroke-width="${y}"/>`+'</svg>'))}});this.cl(e);return this}th(a){this.OJ(a.KN());this.PJ(a.LN());this.QJ(a.MN());this.NJ(a.IN());
871
- this.LJ(a.EN());this.MJ(a.HN())}};olympe.ui.F.ni.C={lh:1,Di:2,Dh:3,Tf:4};olympe.ui.F.ni.T={lA:'vertical',KC:'horizontal'};k=olympe.ui.F.ni.prototype;k.wB.K=olympe.j.J.C([]);k.QJ.K=olympe.j.J.C([]);k.PJ.K=olympe.j.J.C([]);k.OJ.K=olympe.j.J.C([]);k.NJ.K=olympe.j.J.C([]);k.LJ.K=olympe.j.J.C([]);k.MJ.K=olympe.j.J.C([]);k.g_.K=olympe.j.J.C([]);olympe.ui.F.Ke=class extends olympe.ui.F.he{constructor(a){super(a);this.C=olympe.j.Pa(olympe.ui.La.D().jx());this.T=Object.create(null);this.D=olympe.j.Yc(!1);this.W=olympe.j.ma(0);this.fa=olympe.j.ma(0);this.qa=this.na().sa().ya(this.W.hb(2));this.R=new olympe.ui.F.ze(new olympe.j.ga(this.qa,this.qa));this.disabled=olympe.j.Ya(olympe.j.ia).update(olympe.j.ia.pb);this.R.setPosition(new olympe.j.ga(this.fa,this.W));fg(this,this.R,'switchBlock');this.ca=new olympe.ui.F.ze(this.na());this.ca.fh(-1);
870
+ ','+n+' L'+l+','+n+' L'+l+','+m+' L'+ja+','+m+' Z';break;case olympe.ui.F.ni.C.Uf:ja=G,n=l-G,R=G,m-=G,ja='M'+ja+','+R+' L'+n+','+R+' L'+n+','+(Xa-r)+' L'+(t+l-G)+','+Xa+' L'+n+','+(Xa+r)+' L'+n+','+m+' L'+ja+','+m+' Z'}I(this.Mb,'data:image/svg+xml,'+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" >'+` <path d="${ja}" fill="${H.valueOf()}" stroke="${A.valueOf()}" stroke-width="${y}"/>`+'</svg>'))}});this.cl(e);return this}th(a){this.OJ(a.KN());this.PJ(a.LN());this.QJ(a.MN());this.NJ(a.IN());
871
+ this.LJ(a.EN());this.MJ(a.HN())}};olympe.ui.F.ni.C={lh:1,Di:2,Dh:3,Uf:4};olympe.ui.F.ni.T={lA:'vertical',KC:'horizontal'};k=olympe.ui.F.ni.prototype;k.wB.K=olympe.j.J.C([]);k.QJ.K=olympe.j.J.C([]);k.PJ.K=olympe.j.J.C([]);k.OJ.K=olympe.j.J.C([]);k.NJ.K=olympe.j.J.C([]);k.LJ.K=olympe.j.J.C([]);k.MJ.K=olympe.j.J.C([]);k.g_.K=olympe.j.J.C([]);olympe.ui.F.Ke=class extends olympe.ui.F.he{constructor(a){super(a);this.C=olympe.j.Pa(olympe.ui.La.D().jx());this.T=Object.create(null);this.D=olympe.j.Yc(!1);this.W=olympe.j.ma(0);this.fa=olympe.j.ma(0);this.qa=this.na().sa().ya(this.W.hb(2));this.R=new olympe.ui.F.ze(new olympe.j.ga(this.qa,this.qa));this.disabled=olympe.j.Ya(olympe.j.ia).update(olympe.j.ia.pb);this.R.setPosition(new olympe.j.ga(this.fa,this.W));fg(this,this.R,'switchBlock');this.ca=new olympe.ui.F.ze(this.na());this.ca.fh(-1);
872
872
  fg(this,this.ca,'animOverlay');void 0===a&&this.Hb(this.C.LA().na());let b=null;olympe.j.Za(this.disabled.va().Te(),()=>{b=this.Xc(()=>{this.RJ();setTimeout(()=>{for(const e in this.T)this.T[e](F(this.D).valueOf())},F(this.C.DA()).valueOf())})},()=>{null!==b&&(this.Yj(b),b=null)});this.eh(olympe.j.Za(this.D,()=>this.C.Ng().hs(),()=>this.C.vf().hs(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.Ng().js(),()=>this.C.vf().js(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.Ng().ks(),()=>this.C.vf().ks(),olympe.j.aa),
873
873
  olympe.j.Za(this.D,()=>this.C.Ng().fs(),()=>this.C.vf().fs(),olympe.j.Color),olympe.j.Za(this.D,()=>this.C.Ng().gs(),()=>this.C.vf().gs(),olympe.j.ia));this.Ma(olympe.j.Wa([this.D],e=>e.valueOf()?this.C.Ng().jq():this.C.vf().jq(),olympe.j.Color));this.Xb(olympe.j.Za(this.D,()=>this.C.Ng().nq(),()=>this.C.vf().nq(),olympe.j.aa));this.Pd(olympe.j.Za(this.D,()=>this.C.Ng().Fi(),()=>this.C.vf().Fi(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.Ng().yl(),()=>this.C.vf().yl(),olympe.j.Color));this.bh(olympe.j.Za(this.D,
874
- ()=>this.C.Ng().mq(),()=>this.C.vf().mq(),olympe.j.kb),olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,olympe.j.Za(this.D,()=>this.C.Ng().lq(),()=>this.C.vf().lq(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.Ng().kq(),()=>this.C.vf().kq(),olympe.j.ga));this.R.Xb(olympe.j.Za(this.D,()=>this.C.uf().nq(),()=>this.C.wf().nq(),olympe.j.aa));this.R.Pd(olympe.j.Za(this.D,()=>this.C.uf().Fi(),()=>this.C.wf().Fi(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.uf().yl(),()=>this.C.wf().yl(),olympe.j.Color));this.R.eh(olympe.j.Za(this.D,
874
+ ()=>this.C.Ng().mq(),()=>this.C.vf().mq(),olympe.j.kb),olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,olympe.j.Za(this.D,()=>this.C.Ng().lq(),()=>this.C.vf().lq(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.Ng().kq(),()=>this.C.vf().kq(),olympe.j.ga));this.R.Xb(olympe.j.Za(this.D,()=>this.C.uf().nq(),()=>this.C.wf().nq(),olympe.j.aa));this.R.Pd(olympe.j.Za(this.D,()=>this.C.uf().Fi(),()=>this.C.wf().Fi(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.uf().yl(),()=>this.C.wf().yl(),olympe.j.Color));this.R.eh(olympe.j.Za(this.D,
875
875
  ()=>this.C.uf().hs(),()=>this.C.wf().hs(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.uf().js(),()=>this.C.wf().js(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.uf().ks(),()=>this.C.wf().ks(),olympe.j.aa),olympe.j.Za(this.D,()=>this.C.uf().fs(),()=>this.C.wf().fs(),olympe.j.Color),olympe.j.Za(this.D,()=>this.C.uf().gs(),()=>this.C.wf().gs(),olympe.j.ia));this.R.Ma(olympe.j.Za(this.D,()=>this.C.uf().jq(),()=>this.C.wf().jq(),olympe.j.Color));this.R.bh(olympe.j.Za(this.D,()=>this.C.uf().mq(),()=>this.C.wf().mq(),
876
- olympe.j.kb),olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,olympe.j.Za(this.D,()=>this.C.uf().lq(),()=>this.C.wf().lq(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.uf().kq(),()=>this.C.wf().kq(),olympe.j.ga));const c=this.W,d=this.Gd().ya(this.R.Gd()).ya(this.W);a=olympe.j.Za(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Mi(a,this.C.DA(),olympe.j.aa.Hh.yR);olympe.j.dg(this.D,()=>{this.ca.fh(1);const e=setTimeout(()=>{this.ca.fh(-1)},olympe.j.Pa(pc(this.C.DA(),200)).valueOf());olympe.j.zb().We(clearTimeout.bind(null,
876
+ olympe.j.kb),olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,olympe.j.Za(this.D,()=>this.C.uf().lq(),()=>this.C.wf().lq(),olympe.j.ga),olympe.j.Za(this.D,()=>this.C.uf().kq(),()=>this.C.wf().kq(),olympe.j.ga));const c=this.W,d=this.Gd().ya(this.R.Gd()).ya(this.W);a=olympe.j.Za(this.D,()=>d,()=>c,olympe.j.aa);a=olympe.j.Mi(a,this.C.DA(),olympe.j.aa.Hh.yR);olympe.j.dg(this.D,()=>{this.ca.fh(1);const e=setTimeout(()=>{this.ca.fh(-1)},olympe.j.Pa(pc(this.C.DA(),200)).valueOf());olympe.j.zb().We(clearTimeout.bind(null,
877
877
  e))});qc(this.fa,a)}RJ(){const a=F(this.D);I(this.D,!(a&&a.valueOf()))}Oa(a,b){b=b?b:olympe.la.wk();this.T[b]||(this.T[b]=a);return b}Fa(a){delete this.T[a]}MA(){return this.D}Gf(a){olympe.j.Xa([a],b=>{K(this.D,b)});return this}Df(a){olympe.j.$b(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.lc(a))}Ef(a){K(this.W,a);return this}HE(){return this.R}cX(){return this.C}};k=olympe.ui.F.Ke.prototype;k.RJ.K=olympe.j.J.C([]);k.MA.K=olympe.j.J.T;k.Gf.K=olympe.j.J.C([0]);k.Ef.K=olympe.j.J.C([]);
878
878
  k.HE.K=new olympe.j.J(()=>olympe.ui.F.ze,[]);k.cX.K=new olympe.j.J(()=>olympe.ui.F.da.oi,[]);olympe.ui.F.od=class extends olympe.ui.F.he{constructor(a,b,c,d){super(a);const e=olympe.ui.La.D().ox(d);this.qa=olympe.j.ub(olympe.j.Vk,b);this.yb=olympe.j.Ab();this.R=olympe.j.fd();this.Eb=olympe.j.fd();this.fa=M(olympe.j.Ya(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.Ba(10));this.W=M(olympe.j.Ya(olympe.j.ia,'DropDown.displayOnTop'),olympe.j.ia.pb);this.Ka=M(olympe.j.Ya(olympe.j.aa,'DropDown.arrowIconPaddingRight'),olympe.j.aa.ZERO);this.paddingLeft=olympe.j.ma(0);this.paddingRight=olympe.j.ma(0);
879
879
  this.paddingTop=olympe.j.ma(0);this.paddingBottom=olympe.j.ma(0);this.Oa=olympe.j.Ab();this.Mb=olympe.j.Ab();this.Zb=olympe.j.Ab();this.xf=olympe.j.ma();this.Gc=olympe.j.fd();this.Fa=olympe.j.Ab();this.T=olympe.j.ub(Object);this.Od=olympe.j.Wa([this.T],()=>olympe.j.ia.C,olympe.j.ia,'hasSelectedValue',olympe.j.ia.pb);this.ca=new Map;this.C=M(olympe.j.Ya(olympe.j.ia,'DropDown.isExpanded'),olympe.j.ia.pb);this.ed=olympe.j.Ab(this.Oa);this.Sc=olympe.j.Ab();olympe.ui.F.od.prototype.ee.call(this,e);olympe.j.Xa([this.qa],
880
880
  g=>{mc(this.T,g.He())});this.D=new olympe.ui.F.Ze(this.na());this.D.oh(()=>{this.C.update(olympe.j.Pa(this.C.va().Te()))});fg(this,this.D,'summaryContainer');a=new olympe.ui.F.Ze(new olympe.j.ga(this.na().oa().ya(this.R.oa()).ya(this.paddingLeft).ya(this.paddingRight).ya(this.fa.va()),this.na().sa().ya(this.paddingTop).ya(this.paddingBottom)));this.eb=new olympe.ui.F.cb(a.na(),this.ed);this.eb.Jb(this.Sc).rd(this.Od);a.appendChild(this.eb,'placeholder');b=c.render(mc(this.T,c.getType()),a.na());b.Eg(this.Zb);
881
- a.appendChild(b,'currentValue');this.D.appendChild(a,'textContainer',new olympe.j.ga(this.paddingLeft,this.paddingTop));a=new olympe.ui.F.ze(this.R);a.bh(this.yb,olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,this.R,this.Eb);this.D.appendChild(a,'arrowImg',new olympe.j.ga(this.na().oa().ya(this.fa.va()).ya(this.R.oa()),this.na().sa().ya(this.R.sa()).Ta(2)));nc(this.qa.get(this.Fa),g=>{olympe.j.$b(g)?qc(this.T,g):I(this.T,g)});const f=new olympe.ui.F.yd(this.na().oa());this.qa.forEach((g,h)=>{const l=new olympe.ui.F.Ze(this.na());
881
+ a.appendChild(b,'currentValue');this.D.appendChild(a,'textContainer',new olympe.j.ga(this.paddingLeft,this.paddingTop));a=new olympe.ui.F.ze(this.R);a.bh(this.yb,olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,this.R,this.Eb);this.D.appendChild(a,'arrowImg',new olympe.j.ga(this.na().oa().ya(this.fa.va()).ya(this.R.oa()),this.na().sa().ya(this.R.sa()).Ta(2)));nc(this.qa.get(this.Fa),g=>{olympe.j.$b(g)?qc(this.T,g):I(this.T,g)});const f=new olympe.ui.F.yd(this.na().oa());this.qa.forEach((g,h)=>{const l=new olympe.ui.F.Ze(this.na());
882
882
  f.appendChild(l,h);const m=c.render(g,this.na());l.appendChild(m,h);l.Xc(()=>{I(this.Fa,h);this.C.update(olympe.j.ia.pb);for(const n of this.ca.values())n(h,g)});olympe.j.Za(l.Mh(),()=>m.Eg(this.Mb),()=>m.Eg(this.Oa))});olympe.j.Za(this.C.va(),()=>{const g=olympe.ui.La.lf();var h=g.na().oa();const l=g.na().sa(),m=this.D.yh().sa(),n=m.Ra(this.D.na().sa()),p=e.BO(),r=olympe.ui.La.O('dropdown-overlay'),t=olympe.ui.La.O('dropdown-list'),u=olympe.j.ma(),v=olympe.j.ma();olympe.j.Za(f.na().sa().SE(l.ya(n)).or(l.ya(m).Vj(m)),
883
- ()=>{qc(u,olympe.j.Za(this.W,()=>m,()=>n,olympe.j.aa));qc(v,f.na().sa().En(l.ya(u)))},()=>{qc(v,f.na().sa().En(olympe.j.Za(this.W,()=>n,()=>m,olympe.j.aa)));qc(u,olympe.j.Za(this.W,()=>n.ya(v),()=>m.ya(v),olympe.j.aa))});const w=new olympe.ui.F.xd(new olympe.j.ga(this.na().oa(),v));w.Pd(p.Fi(),p.yl());w.Xb(p.nq());w.Ma(p.jq());w.bh(p.mq(),olympe.ui.ha.Eh.Uf,olympe.ui.ha.ef.Uf,p.lq(),p.kq());w.eh(p.hs(),p.js(),p.ks(),p.fs(),p.gs());w.fh(t);w.Td(f);w.Xb(this.Ka.va());h=new olympe.ui.F.ze(new olympe.j.ga(h,
883
+ ()=>{qc(u,olympe.j.Za(this.W,()=>m,()=>n,olympe.j.aa));qc(v,f.na().sa().En(l.ya(u)))},()=>{qc(v,f.na().sa().En(olympe.j.Za(this.W,()=>n,()=>m,olympe.j.aa)));qc(u,olympe.j.Za(this.W,()=>n.ya(v),()=>m.ya(v),olympe.j.aa))});const w=new olympe.ui.F.xd(new olympe.j.ga(this.na().oa(),v));w.Pd(p.Fi(),p.yl());w.Xb(p.nq());w.Ma(p.jq());w.bh(p.mq(),olympe.ui.ha.Eh.Vf,olympe.ui.ha.ef.Vf,p.lq(),p.kq());w.eh(p.hs(),p.js(),p.ks(),p.fs(),p.gs());w.fh(t);w.Td(f);w.Xb(this.Ka.va());h=new olympe.ui.F.ze(new olympe.j.ga(h,
884
884
  l));h.Xc(()=>{this.C.update(olympe.j.ia.pb)});h.fh(r);g.appendChild(h,'dropdown-overlay');g.appendChild(w,'dropdown-list',new olympe.j.ga(this.D.yh().oa().Ra(this.Gc.oa()),u))},()=>{olympe.ui.La.R('dropdown-overlay');olympe.ui.La.R('dropdown-list')})}mQ(a){olympe.j.$b(a)?qc(this.Fa,a):I(this.Fa,a);return this}wP(){return this.C.va()}Ah(a,b){b=b?b:olympe.la.wk();this.ca.has(b)||this.ca.set(b,a);return b}og(a){this.ca.delete(a)}bD(a){K(this.yb,a)}aD(a){K(this.R,a)}SJ(a){K(this.Eb,a)}VP(a){olympe.j.$b(a)?
885
885
  this.fa.repeat(a):this.fa.update(a)}ZP(a){olympe.j.$b(a)?this.C.repeat(a):this.C.update(a)}WP(a){olympe.j.$b(a)?this.W.repeat(a):this.W.update(a)}eQ(a){olympe.j.$b(a)?this.Ka.repeat(a):this.Ka.update(a)}gQ(a){K(this.Gc,a)}Hc(a){K(this.paddingLeft,a);return this}Lc(a){K(this.paddingRight,a);return this}td(a){K(this.paddingTop,a);return this}sd(a){K(this.paddingBottom,a);return this}Qg(a){K(this.Sc,a);return this}XZ(a){K(this.ed,a);return this}TJ(a){K(this.Oa,a)}UJ(a){K(this.Mb,a)}VJ(a){K(this.Zb,a)}WJ(a){K(this.xf,
886
886
  a)}ee(a){a&&(super.ee(a),this.TJ(a.zO()),this.UJ(a.FO()),this.VJ(a.WO()),this.WJ(a.XO()),this.gQ(a.AO()),this.sd(a.GI()),this.Hc(a.HI()),this.Lc(a.II()),this.td(a.JI()),this.bD(a.R),this.aD(a.GN()),this.SJ(a.FN()))}};k=olympe.ui.F.od.prototype;k.mQ.K=olympe.j.J.C([]);k.wP.K=olympe.j.J.T;k.bD.K=olympe.j.J.C([]);k.aD.K=olympe.j.J.C([]);k.SJ.K=olympe.j.J.C([]);k.VP.K=olympe.j.J.C([]);k.ZP.K=olympe.j.J.C([]);k.WP.K=olympe.j.J.C([]);k.eQ.K=olympe.j.J.C([]);k.gQ.K=olympe.j.J.C([]);k.Hc.K=olympe.j.J.C([]);
@@ -889,7 +889,7 @@ function sg(a){a.R.setPosition(new olympe.j.ga(a.W,0));const b=olympe.j.Yc(!1),c
889
889
  olympe.ui.F.zI=class extends olympe.ui.F.he{constructor(a,b){super(a);this.ca=olympe.j.Ab(b);this.Hb(a);this.D=new olympe.ui.F.ze;this.D.bk(!0);this.C=new olympe.ui.F.ze;this.C.bk(!0);this.R=new olympe.ui.F.ze;this.R.bk(!0);a=olympe.ui.La.D().NA(this.ca);olympe.ui.F.zI.prototype.ee.call(this,a);this.Fa=olympe.j.pd(215,217,218);this.T=olympe.j.ma(0);this.W=olympe.j.ma(this.D.na().oa().ya(this.R.na().oa()));this.fa=olympe.j.ma(0);this.qa=olympe.j.ma(0);this.D.setPosition(new olympe.j.ga(0,2.5));rg(this);
890
890
  sg(this);a=new olympe.ui.F.ze(new olympe.j.ga(this.W.ya(this.T).ya(this.C.na().oa().Ta(2)).Ra(this.R.na().oa().Ta(2)),this.D.na().sa()));a.bk(!0);a.Ma(this.Fa);a.setPosition(new olympe.j.ga(this.T.Ra(this.C.na().oa().Ta(2)),this.D.ge().sa()));fg(this,a,'selectedZone');fg(this,this.D,'bar');fg(this,this.C,'button1');fg(this,this.R,'button2')}$Z(a){this.Fa=a;return this}XW(){return this.T.Ta(this.D.na().oa().ya(this.C.na().oa().Ra(this.R.na().oa())))}YW(){return this.W.ya(this.C.na().oa()).Ta(this.D.na().oa().ya(this.C.na().oa().Ra(this.R.na().oa())))}rX(){return this.W.ya(this.T).ya(this.C.na().oa()).Ta(this.D.na().oa().ya(this.C.na().oa().Ra(this.R.na().oa())))}Eg(a){K(this.ca,
891
891
  a);return this}ee(a){a&&(this.C.ee(a.T()),this.R.ee(a.W()),this.D.ee(a.R()))}};k=olympe.ui.F.zI.prototype;k.$Z.K=olympe.j.J.C([]);k.XW.K=olympe.j.J.D;k.YW.K=olympe.j.J.D;k.rX.K=olympe.j.J.D;k.Eg.K=olympe.j.J.C([]);olympe.ui.F.VH=class extends olympe.ui.F.he{constructor(a,b,c,d,e,f,g){super(a);this.Ah=olympe.j.Ab(g);this.ii=new olympe.ui.F.yd;this.values=b;this.Li=0;this.Qe=olympe.j.Yc(void 0===a);this.Nf=olympe.j.Yc(void 0===a);this.xf=olympe.j.Yc(void 0!==e?e:!1);this.C=(this.Od=void 0!==d)?olympe.j.ma(d):olympe.j.ma();this.ca=new olympe.ui.F.yd(this.na().oa());this.yb=olympe.j.ma();this.Fa=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.j.aa));this.eb=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.j.kb));
892
- this.qa=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.ui.F.Xe.Ft));this.D=[];this.T=olympe.j.Ab();this.og=olympe.j.ub(olympe.ui.F.mb);this.Mb=olympe.j.pd();this.Zb=olympe.j.Ab();this.Eb=olympe.j.Ab();this.ed=olympe.j.Ab();this.Gc=void 0!==f?olympe.j.Yc(f):olympe.j.Yc(!0);this.fa=olympe.j.ub(c);this.Ka=olympe.j.Yc(!1);this.Sc=olympe.j.ub(olympe.ui.F.Qf);this.R=new olympe.ui.F.xd(new olympe.j.ga(0,0));this.W=new olympe.ui.F.xd(new olympe.j.ga(0,0));this.Oa=olympe.j.fd();K(this.Oa,a);nc(this.fa,function(){K(this.Ka,
892
+ this.qa=olympe.j.ub(olympe.j.Map,new olympe.j.Map(olympe.ui.F.Xe.Ft));this.D=[];this.T=olympe.j.Ab();this.og=olympe.j.ub(olympe.ui.F.mb);this.Mb=olympe.j.pd();this.Zb=olympe.j.Ab();this.Eb=olympe.j.Ab();this.ed=olympe.j.Ab();this.Gc=void 0!==f?olympe.j.Yc(f):olympe.j.Yc(!0);this.fa=olympe.j.ub(c);this.Ka=olympe.j.Yc(!1);this.Sc=olympe.j.ub(olympe.ui.F.Rf);this.R=new olympe.ui.F.xd(new olympe.j.ga(0,0));this.W=new olympe.ui.F.xd(new olympe.j.ga(0,0));this.Oa=olympe.j.fd();K(this.Oa,a);nc(this.fa,function(){K(this.Ka,
893
893
  !0)}.bind(this));this.values.Kh&&nc(this.values,function(){K(this.Ka,!1)}.bind(this));const h=new olympe.ui.F.yd;fg(this,h,'mainContainer');h.appendChild(this.R,'horizScroller');const l=new olympe.ui.F.yd;this.R.Td(l);const m=new olympe.ui.F.de(this.C);m.rd(this.xf);l.appendChild(m,'header');olympe.j.Za(this.xf.Te(),()=>{this.qa.forEach((p,r)=>{const t=new olympe.ui.F.cb(new olympe.j.ga(this.Fa.get(r),this.C));t.Eg(this.Zb);nc(this.eb.get(r),u=>{t.Jb(u)});m.appendChild(t,'header'+r)})});l.appendChild(this.W,
894
894
  'verticalScroller');const n=this.ii;this.W.Td(n);olympe.j.Za(this.Nf,()=>{olympe.j.Za(this.Qe,()=>{olympe.ui.F.he.prototype.Hb.call(this,h.na());this.R.Hb(l.na());this.W.Hb(n.na())},()=>{olympe.ui.F.he.prototype.Hb.call(this,new olympe.j.ga(h.na().oa(),this.Oa.sa()));this.R.Hb(new olympe.j.ga(l.na().oa(),this.na().sa().ya(this.ca.na().sa())));this.W.Hb(new olympe.j.ga(n.na().oa(),this.na().sa().ya(e?0:this.C).ya(this.ca.na().sa())))})},()=>{olympe.j.Za(this.Qe,()=>{olympe.ui.F.he.prototype.Hb.call(this,
895
895
  new olympe.j.ga(this.Oa.oa(),h.na().sa()));this.R.Hb(new olympe.j.ga(this.na().oa(),l.na().sa()));this.W.Hb(new olympe.j.ga(n.na().oa(),n.na().sa()))},()=>{olympe.ui.F.he.prototype.Hb.call(this,this.Oa);this.R.Hb(new olympe.j.ga(this.na().oa(),this.na().sa().ya(this.ca.na().sa())));this.W.Hb(new olympe.j.ga(n.na().oa(),this.na().sa().ya(e?0:this.C).ya(this.ca.na().sa())))})});h.appendChild(this.ca,'footer');this.values.forEach((p,r)=>{const t=olympe.j.ub(olympe.j.ia,olympe.j.lc(!0));nc(this.Sc.filter(p),
@@ -963,7 +963,7 @@ olympe.ui.F.IG=class extends olympe.ui.F.yd{constructor(a,{l_:b,qY:c,fW:d,t_:e}=
963
963
  weekday:(J,V)=>{J.Jb('Mo Tu We Th Fr Sa Su'.split(' ')[V]);J.Yb(olympe.ui.ha.wc.Uc);J.Vb(olympe.ui.ha.Cb.Tb)}};void 0!==b&&(this.D.wQ=b);void 0!==c&&(this.D.rP=c);void 0!==d&&(this.D.kN=d);void 0!==e&&(this.D.weekday=e);b=new olympe.ui.F.de(a,0,0,0,!1,u);const H=new r(y.ya(10),a);n=J=>{const V=new olympe.ui.F.cb(H);this.D.kN(V,J);return V};const G=J=>{J=l(this.C.va()).clone().sA(J);J.iB(this.fa,this.ca).Sb(olympe.j.ia.C)&&(this.C.update(J),this.qa(J))};c=n('<');c.Xc(()=>G(-1));d=n('>');d.Xc(()=>G(1));
964
964
  e=new olympe.ui.F.cb(new r(u.ya(y.hb(2)).hb(.55),a));a=new olympe.ui.F.cb(new r(u.ya(y.hb(2)).hb(.3),a));const R=n('<');R.Xc(()=>{const J=l(this.C.va()).clone().Qw(-1);J.iB(this.fa,this.ca).Sb(olympe.j.ia.C)&&(this.C.update(J),this.qa(J))});n=n('>');n.Xc(()=>{const J=l(this.C.va()).clone().Qw(1);J.iB(this.fa,this.ca).Sb(olympe.j.ia.C)&&(this.C.update(J),this.qa(J))});this.D.rP(e,a,this.C.va());b.appendChild(c,'hl_left_arrow');b.appendChild(e,'hl_year');b.appendChild(d,'hl_right_arrow');b.appendChild(R,
965
965
  'hl_yleft_arrow');b.appendChild(a,'hl_month');b.appendChild(n,'hl_yright_arrow');this.Fa=new olympe.ui.F.ze(new olympe.j.ga(u,1));this.Fa.Ma(Gc());const fa=new olympe.ui.F.de(w,0,0,0,!1,u),Ta=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(Ta(V),'weekday_'+V));const ta=new olympe.ui.F.yd(u,0,0,0,!1,v.ya(x)),Nb=(J,V)=>{const La=new olympe.ui.F.cb(new r(y,V));let ua=null;olympe.j.Za(this.disabled.va().Te(),()=>{ua=La.Xc(()=>{l(J.QE).valueOf()||
966
- this.C.update(xc({year:J.year,month:J.month,day:1}));this.py(xc({year:J.year,month:J.month,day:J.day}))})},()=>{null!==ua&&(this.Yj(ua),ua=null)});this.D.wQ(La,J);return La};h([this.C.va().getMonth(),this.C.va().getYear()],(J,V)=>{J=Gg(J-1,V);const La=v.ya(x).Ta(J.length);J.forEach((ua,Ua)=>{const Xa=new olympe.ui.F.de(La,0,0,0,!1,u);ua.forEach(ja=>{ja.month++;const gi=Bf=>Bf.getYear().Ue(ja.year).and(Bf.getMonth().Ue(ja.month).and(Bf.oq().Ue(ja.day)));ja.TE=gi(g.now());ja.yq=t(gi(this.Ka.va()),!1);
966
+ this.C.update(xc({year:J.year,month:J.month,day:1}));this.py(xc({year:J.year,month:J.month,day:J.day}))})},()=>{null!==ua&&(this.Yj(ua),ua=null)});this.D.wQ(La,J);return La};h([this.C.va().getMonth(),this.C.va().getYear()],(J,V)=>{J=Gg(J-1,V);const La=v.ya(x).Ta(J.length);J.forEach((ua,Ua)=>{const Xa=new olympe.ui.F.de(La,0,0,0,!1,u);ua.forEach(ja=>{ja.month++;const ii=Bf=>Bf.getYear().Ue(ja.year).and(Bf.getMonth().Ue(ja.month).and(Bf.oq().Ue(ja.day)));ja.TE=ii(g.now());ja.yq=t(ii(this.Ka.va()),!1);
967
967
  ja.QE=t(this.C.va().getMonth().Ue(ja.month),!1);Xa.appendChild(Nb(ja,La),`tile_${ja.month}-${ja.day}`)});ta.appendChild(Xa,`tile_line-${Ua}`)})});this.Ma(O());this.fh(1);this.appendChild(ta,'content_layout');this.appendChild(fa,'weekday_layout');this.appendChild(this.Fa,'separator');this.appendChild(b,'header_layout')}a_(a){this.Fa.Ma(a);return this}SZ(a){this.fa=a;return this}RZ(a){this.ca=a;return this}yB(a){olympe.j.Xa([a],b=>{b=b.clone();b.ln().valueOf()&&this.C.update(b)})}sX(){return this.C.va()}eZ(a){this.qa=
968
968
  a}Df(a){olympe.j.$b(a)?this.disabled.repeat(a):this.disabled.update(olympe.j.lc(a))}py(a){olympe.j.Xa([a],b=>{b=b.clone();b.ln().valueOf()&&this.Ka.update(b)})}VA(){return this.Ka.va()}};k=olympe.ui.F.IG.prototype;k.a_.K=olympe.j.J.C([]);k.SZ.K=olympe.j.J.C([]);k.RZ.K=olympe.j.J.C([]);k.yB.K=olympe.j.J.C([]);k.sX.K=new olympe.j.J(()=>olympe.j.bc,[]);k.eZ.K=olympe.j.J.O;k.py.K=olympe.j.J.O;k.VA.K=new olympe.j.J(()=>olympe.j.bc,[]);olympe.ui.F.yw=class extends olympe.ui.F.mb{constructor(a=olympe.ui.F.yw.D.LC,b){const c=new olympe.j.ga;super(olympe.ui.La.C(olympe.N.F.Ve,olympe.host.ab.jb.ND),c);this.C=olympe.j.Ya(olympe.j.aa).update(olympe.j.Ba(a));this.Nf=olympe.j.Ya(olympe.j.ia).update(olympe.j.lc(void 0===b));this.Qe=olympe.j.Ya(olympe.j.ia).update(olympe.j.lc(void 0===b));const d=b||new olympe.j.ga(100,100);let e=null;const f=olympe.j.zb().ue(()=>{null===e&&(e=new olympe.j.ga);T(this).fa((g,h)=>{e.se(g);e.Ie(h)})});olympe.j.Xa([this.Nf,
969
969
  this.Qe],(g,h)=>{T(this).sp(g.valueOf(),h.valueOf());h=h.valueOf();g.valueOf()?(f(),c.se(e.oa()),h?c.Ie(e.sa()):c.Ie(d.sa())):h?(f(),c.se(d.oa()),c.Ie(e.sa())):(c.se(d.oa()),c.Ie(d.sa()))})}Jb(a){olympe.j.Xa([a,this.C.va()],(b,c)=>{switch(c.valueOf()){case olympe.ui.F.yw.D.OT:b=(new remarkable.Remarkable({html:!0,typographer:!0,xhtmlOut:!0})).render(b.valueOf());break;case olympe.ui.F.yw.D.LC:b=b.valueOf();break;default:b=b.valueOf()}T(this).CB(b)});return this}ce(a){olympe.j.Xa([a],b=>{this.Nf.update(olympe.j.lc(b))});
@@ -973,10 +973,10 @@ function Ig(a,b){const c=new olympe.ui.F.de(a.R.va().hb(2),a.R.va()),d=new olymp
973
973
  e.Jb(olympe.j.Za(Jg(a),()=>olympe.j.mc(a.ca),()=>olympe.j.mc('Next'),olympe.j.kb));e.ce(!0,28);e.Id(!0,8);e.Ma(N());e.Pd(1,Ec());e.Xb(5);e.wb('Roboto');e.fh(10);e.rd(a.T.va().Te());e.Xc(()=>{olympe.j.vs([Jg(a)],f=>{f.valueOf()&&a.Lm?a.Lm():(f=olympe.j.Pa(a.C).Ra(1).Gx(a.D.hj()),olympe.j.$b(f)?a.C.repeat(f):a.C.update(f))})});d.appendChild(e,'nextButton',new olympe.j.ga(d.Gd().ya(e.Gd()),d.Ge().Ta(2).ya(e.Ge().Ta(2))));b.appendChild(d,'c')}function Jg(a){return a.C.va().Ue(a.D.Tc().ya(1))}
974
974
  olympe.ui.F.U_=class extends olympe.ui.F.he{constructor(a,b,c='Next'){super();this.da=b;this.D=a;this.C=olympe.j.Ya(olympe.j.aa,'Carousel currentRank FlowSource');M(this.C,olympe.j.aa.ZERO);this.R=olympe.j.Ya(olympe.j.aa,'Carousel bulletWidth FlowSource');this.W=olympe.j.Ya(olympe.j.aa,'Carousel stepperSpacing FlowSource');this.T=olympe.j.Ya(olympe.j.ia,'Carousel show ctrl btn');M(this.R,olympe.j.Ba(10));M(this.W,olympe.j.Ba(10));M(this.T,olympe.j.ia.pb);this.Lm=null;this.ca=c;a=new olympe.ui.F.yd(void 0,
975
975
  this.W.va());Hg(this,a);Ig(this,a);this.Hb(a.na());fg(this,a,'mainContainer')}};olympe.ui.F.sf={};olympe.ui.F.sf.uR=class{constructor(a=300){this.duration=olympe.j.ma(a)}run(a,b,c,d,e,f){f&&setTimeout(f,F(this.duration))}$j(a,b,c){a=F(this.duration).valueOf();let d;d=olympe.j.ma(0);b=olympe.j.Mi(d,a,olympe.j.aa.Hh.ot);d&&K(d,1);c&&setTimeout(c,a);return b}C(a,b,c,d){a=F(this.duration).valueOf();let e;void 0===d?(e=olympe.j.ma(1),olympe.j.Mi(e,a,olympe.j.aa.Hh.ot)):olympe.j.ma(1).ya(d);e&&K(e,0);c&&setTimeout(c,a)}};olympe.ui.F.sf.uR.Aa=[olympe.ui.F.Jm];olympe.ui.F.sf.FH=class{constructor(){this.duration=olympe.j.ma(400)}run(a,b,c,d,e,f){b.qg(0);c=F(this.duration).valueOf();b=this.$j(b,e);this.C(a,e,null,b);$c(function(){f&&f()},c)}$j(a,b,c){b=F(this.duration).valueOf();let d,e;e=olympe.j.ma(0);d=olympe.j.Mi(e,b,olympe.j.aa.Hh.ot);a.qg(d);e&&K(e,1);c&&$c(c,b);return d}C(a,b,c,d){b=F(this.duration).valueOf();let e;void 0===d?(e=olympe.j.ma(1),d=olympe.j.Mi(e,b,olympe.j.aa.Hh.ot)):d=olympe.j.ma(1).ya(d);a.qg(d);e&&K(e,0);c&&$c(()=>{c()},b)}};
976
- olympe.ui.F.sf.FH.Aa=[olympe.ui.F.Jm];olympe.ui.F.sf.rl=class{constructor(a,b,c,d){this.direction=olympe.j.Ab(olympe.ui.F.sf.rl.C.Tf);this.duration=olympe.j.ma(300);this.D=olympe.j.ma();this.easing=d||olympe.j.aa.Hh.Gp;a&&K(this.direction,a);b&&K(this.duration,b);c&&K(this.D,c)}run(a,b,c,d,e,f){c=F(this.duration).valueOf();b=this.$j(b,e);this.C(a,e,null,b);f&&$c(f,c)}$j(a,b,c){const d=F(this.duration).valueOf();let e=olympe.j.Pa(this.D)||null,f=F(a.ge()).oa();f=f?f:olympe.j.ma(0);let g=F(a.ge()).sa();g=g?g:olympe.j.ma(0);let h=f,l=g,
977
- m,n;n=olympe.j.ma(0);m=olympe.j.Mi(n,d,this.easing);const p=olympe.j.ma(1).ya(m);switch(F(this.direction).valueOf()){default:case olympe.ui.F.sf.rl.C.Tf:null===e&&(e=b.na().oa());h=f.Ra(p.hb(e));break;case olympe.ui.F.sf.rl.C.Di:null===e&&(e=b.na().oa());h=f.ya(p.hb(e));break;case olympe.ui.F.sf.rl.C.Dh:null===e&&(e=b.na().sa());l=g.ya(p.hb(e));break;case olympe.ui.F.sf.rl.C.lh:null===e&&(e=b.na().sa()),l=g.Ra(p.hb(e))}a.setPosition(new olympe.j.ga(h,l));n&&K(n,1);c&&$c(c,d);return m}C(a,b,c,d){const e=
978
- F(this.duration).valueOf();let f=olympe.j.Pa(this.D)||null,g=F(a.ge()).oa();g=g?g:olympe.j.ma(0);let h=F(a.ge()).sa();h=h?h:olympe.j.ma(0);let l=g,m=h,n,p;void 0===d?(n=olympe.j.ma(1),d=olympe.j.Mi(n,e,this.easing),p=olympe.j.ma(1).ya(d)):(p=d,olympe.j.ma(1).ya(d));switch(F(this.direction).valueOf()){default:case olympe.ui.F.sf.rl.C.Tf:null===f&&(f=b.na().oa());l=g.ya(p.hb(f));break;case olympe.ui.F.sf.rl.C.Di:null===f&&(f=b.na().oa());l=g.Ra(p.hb(f));break;case olympe.ui.F.sf.rl.C.Dh:null===f&&(f=
979
- b.na().sa());m=h.Ra(p.hb(f));break;case olympe.ui.F.sf.rl.C.lh:null===f&&(f=b.na().sa()),m=h.ya(p.hb(f))}a.setPosition(new olympe.j.ga(l,m));n&&K(n,0);c&&$c(c,e)}};olympe.ui.F.sf.rl.C={Tf:'left',Di:'right',Dh:'bottom',lh:'top'};olympe.ui.F.sf.rl.Aa=[olympe.ui.F.Jm];olympe.ui.F.sf.Zoom=class{constructor(a,b,c,d=600){this.position=a;this.D=b;this.O=olympe.j.Yc(!1);this.duration=olympe.j.ma(d);c&&K(this.O,c)}run(a,b,c,d,e,f){b.qg(0);c=F(this.O).valueOf();d=F(this.duration).valueOf();const g=olympe.j.ma(c?1:0),h=olympe.j.Mi(g,d,olympe.j.aa.Hh.Gp);var l=olympe.j.ma(1);const m=l.ya(h);var n=e.na().oa(),p=e.na().sa();const r=this.position.oa(),t=this.position.sa(),u=this.D.oa(),v=this.D.sa();e=u.Ta(n);var w=v.Ta(p),x=l.ya(e),y=l.ya(w);l=x.Ta(-2).hb(n).Ra(r).hb(m);
976
+ olympe.ui.F.sf.FH.Aa=[olympe.ui.F.Jm];olympe.ui.F.sf.rl=class{constructor(a,b,c,d){this.direction=olympe.j.Ab(olympe.ui.F.sf.rl.C.Uf);this.duration=olympe.j.ma(300);this.D=olympe.j.ma();this.easing=d||olympe.j.aa.Hh.Gp;a&&K(this.direction,a);b&&K(this.duration,b);c&&K(this.D,c)}run(a,b,c,d,e,f){c=F(this.duration).valueOf();b=this.$j(b,e);this.C(a,e,null,b);f&&$c(f,c)}$j(a,b,c){const d=F(this.duration).valueOf();let e=olympe.j.Pa(this.D)||null,f=F(a.ge()).oa();f=f?f:olympe.j.ma(0);let g=F(a.ge()).sa();g=g?g:olympe.j.ma(0);let h=f,l=g,
977
+ m,n;n=olympe.j.ma(0);m=olympe.j.Mi(n,d,this.easing);const p=olympe.j.ma(1).ya(m);switch(F(this.direction).valueOf()){default:case olympe.ui.F.sf.rl.C.Uf:null===e&&(e=b.na().oa());h=f.Ra(p.hb(e));break;case olympe.ui.F.sf.rl.C.Di:null===e&&(e=b.na().oa());h=f.ya(p.hb(e));break;case olympe.ui.F.sf.rl.C.Dh:null===e&&(e=b.na().sa());l=g.ya(p.hb(e));break;case olympe.ui.F.sf.rl.C.lh:null===e&&(e=b.na().sa()),l=g.Ra(p.hb(e))}a.setPosition(new olympe.j.ga(h,l));n&&K(n,1);c&&$c(c,d);return m}C(a,b,c,d){const e=
978
+ F(this.duration).valueOf();let f=olympe.j.Pa(this.D)||null,g=F(a.ge()).oa();g=g?g:olympe.j.ma(0);let h=F(a.ge()).sa();h=h?h:olympe.j.ma(0);let l=g,m=h,n,p;void 0===d?(n=olympe.j.ma(1),d=olympe.j.Mi(n,e,this.easing),p=olympe.j.ma(1).ya(d)):(p=d,olympe.j.ma(1).ya(d));switch(F(this.direction).valueOf()){default:case olympe.ui.F.sf.rl.C.Uf:null===f&&(f=b.na().oa());l=g.ya(p.hb(f));break;case olympe.ui.F.sf.rl.C.Di:null===f&&(f=b.na().oa());l=g.Ra(p.hb(f));break;case olympe.ui.F.sf.rl.C.Dh:null===f&&(f=
979
+ b.na().sa());m=h.Ra(p.hb(f));break;case olympe.ui.F.sf.rl.C.lh:null===f&&(f=b.na().sa()),m=h.ya(p.hb(f))}a.setPosition(new olympe.j.ga(l,m));n&&K(n,0);c&&$c(c,e)}};olympe.ui.F.sf.rl.C={Uf:'left',Di:'right',Dh:'bottom',lh:'top'};olympe.ui.F.sf.rl.Aa=[olympe.ui.F.Jm];olympe.ui.F.sf.Zoom=class{constructor(a,b,c,d=600){this.position=a;this.D=b;this.O=olympe.j.Yc(!1);this.duration=olympe.j.ma(d);c&&K(this.O,c)}run(a,b,c,d,e,f){b.qg(0);c=F(this.O).valueOf();d=F(this.duration).valueOf();const g=olympe.j.ma(c?1:0),h=olympe.j.Mi(g,d,olympe.j.aa.Hh.Gp);var l=olympe.j.ma(1);const m=l.ya(h);var n=e.na().oa(),p=e.na().sa();const r=this.position.oa(),t=this.position.sa(),u=this.D.oa(),v=this.D.sa();e=u.Ta(n);var w=v.Ta(p),x=l.ya(e),y=l.ya(w);l=x.Ta(-2).hb(n).Ra(r).hb(m);
980
980
  const A=y.Ta(-2).hb(p).Ra(t).hb(m);x=h.hb(x).Ra(e);y=h.hb(y).Ra(w);n=n.Ta(2).ya(r).ya(u.Ta(2)).Ta(e).hb(h);p=p.Ta(2).ya(t).ya(v.Ta(2)).Ta(w).hb(h);w=y.Ta(w);e=x.Ta(e);c?(b.setPosition(new olympe.j.ga(n,p)),b.setScale(new olympe.j.ga(e,w)),a.setPosition(new olympe.j.ga(l,A)),a.setScale(new olympe.j.ga(x,y)),b.qg(m),a.qg(h)):(a.setPosition(new olympe.j.ga(n,p)),a.setScale(new olympe.j.ga(e,w)),b.setPosition(new olympe.j.ga(l,A)),b.setScale(new olympe.j.ga(x,y)),b.qg(h));K(g,c?0:1);f&&$c(f,d)}$j(a,b,
981
981
  c){b=(b=F(a.ge()).oa())?b:olympe.j.ma(0);let d=F(a.ge()).sa();d=d?d:olympe.j.ma(0);var e=F(a.na()).oa(),f=F(a.na()).sa();const g=F(this.O).valueOf(),h=F(this.duration).valueOf();var l=olympe.j.ma(1);let m,n;n=olympe.j.ma(0);let p=m=olympe.j.Mi(n,h,olympe.j.aa.Hh.Gp);var r=olympe.j.ma(1).ya(m);g&&(p=r,r=m);const t=this.position.oa(),u=this.position.sa(),v=this.D.oa(),w=this.D.sa();var x=v.Ta(e),y=w.Ta(f),A=l.ya(x),H=l.ya(y);l=A.Ta(-2).hb(e).Ra(t).hb(r);r=H.Ta(-2).hb(f).Ra(u).hb(r);A=p.hb(A).Ra(x);
982
982
  H=p.hb(H).Ra(y);e=e.Ta(2).ya(t).ya(v.Ta(2)).Ta(x).hb(p);f=f.Ta(2).ya(u).ya(w.Ta(2)).Ta(y).hb(p);y=H.Ta(y);x=A.Ta(x);g?(a.setPosition(new olympe.j.ga(e.Ra(b),f.Ra(d))),a.setScale(new olympe.j.ga(x,y))):(a.setPosition(new olympe.j.ga(l.Ra(b),r.Ra(d))),a.setScale(new olympe.j.ga(A,H)));n&&K(n,1);c&&$c(c,h);return m}C(a,b,c,d){b=(b=F(a.ge()).oa())?b:olympe.j.ma(0);let e=F(a.ge()).sa();e=e?e:olympe.j.ma(0);var f=F(a.na()).oa(),g=F(a.na()).sa();let h=F(this.O).valueOf(),l=F(this.duration).valueOf();var m=
@@ -1005,7 +1005,7 @@ b,c)}kj(a){return this.Ca().kj(a)}gp(a,b,c){return this.Ca().gp(a,b,c)}Jq(a){ret
1005
1005
  b,c)}Da(a){this.rb().Da(a)}Rm(){return this.rb().Rm()}nn(a){this.Ca().nn(a)}Fq(a){this.Ca().Fq(a)}Gq(a){this.Ca().Gq(a)}Ml(a,b,c){return this.Ca().Ml(a,b,c)}Zo(a,b,c){return this.Ca().Zo(a,b,c)}$o(a,b,c){return this.Ca().$o(a,b,c)}};olympe.ui.P.pc.Aa=[olympe.ui.Y.qc,olympe.ui.Y.Qd];k=olympe.ui.P.pc.prototype;k.$S.K=olympe.j.J.C([]);k.ZS.K=olympe.j.J.C([]);k.Lo.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.No.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);
1006
1006
  k.zk.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Mo.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Sm.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Tm.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Mh.K=olympe.j.J.T;k.gn.K=olympe.j.J.T;k.hn.K=olympe.j.J.T;k.Xm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);k.Ym.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);k.Wm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);k.Vm.K=new olympe.j.J(()=>olympe.ui.Y.TouchEvent,[]);
1007
1007
  k.Po.K=new olympe.j.J(()=>olympe.ui.Y.dl,[]);k.Um.K=new olympe.j.J(()=>olympe.ui.Y.qk,[]);k.Ko.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Qm.K=new olympe.j.J(()=>olympe.ui.Y.MouseEvent,[]);k.Cl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Hl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Dl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Zm.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.El.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);
1008
- k.Gl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Fl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);olympe.ui.P.Qf=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.Qf,olympe.host.ab.jb.CM));this.absolute=void 0}vq(){return this.pa()}addElement(a,b){this.vq().addElement(a.pa(),b);return this}Uu(a){this.vq().Uu(a);return this}Mx(){this.vq().Mx();return this}Ri(a){const b=this;this.absolute||Q(this,()=>{b.absolute=olympe.j.Yc();b.vq().Ri(b.absolute)});K(this.absolute,a);return this}};olympe.ui.P.Ig=class extends olympe.ui.P.Ad{constructor(a){super(a)}};function Kg(a){return a.value instanceof olympe.ui.P.Ig?a.value.pa():a.value}olympe.ui.P.V0=class{constructor(a){this.value=null;a&&this.Gf(a)}Gf(a){this.value=a}getValue(){return this.value}};olympe.ui.P.Xn=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.Xn,olympe.host.ab.jb.DM));this.amount=void 0}C(){return this.pa()}Nx(a){this.amount||Q(this,()=>{this.amount=olympe.j.ma();this.C().Nx(this.amount)});K(this.amount,a);return this}nf(a){const b=c=>{this.C().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.Xn.prototype.C.K=new olympe.j.J(()=>olympe.N.P.Xn,[]);olympe.ui.P.nm=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.nm,olympe.host.ab.jb.AM));this.R=void 0}T(){return this.pa()}setRadius(a){this.R||Q(this,()=>{this.R=olympe.j.ma();this.T().setRadius(this.R)});K(this.R,a);return this}};olympe.ui.P.nm.prototype.T.K=new olympe.j.J(()=>olympe.N.P.nm,[]);olympe.ui.P.cr=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.cr,olympe.host.ab.jb.EM));this.C=null}setMatrix(a){this.C||Q(this,()=>{this.C=olympe.j.ub(olympe.la.no);this.pa().setMatrix(this.C.getStringValue())});K(this.C,a);return this}nf(a){const b=c=>{this.pa().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.ao=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.ao,olympe.host.ab.jb.FM));this.mode=void 0}iy(a){this.mode||Q(this,()=>{this.mode=olympe.j.Ab();this.pa().iy(this.mode)});K(this.mode,a);return this}nf(a){const b=c=>{this.pa().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}by(a){const b=c=>{this.pa().by(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.co=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.co,olympe.host.ab.jb.BM));this.R=void 0}setRadius(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.fd();b.pa().setRadius(b.R.oa(),b.R.sa())});K(this.R,a);return this}};olympe.ui.P.eo=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.eo,olympe.host.ab.jb.GM))}};olympe.ui.P.Ih=class extends olympe.ui.P.Ae{constructor(a){super(a)}Pw(a,b){this.pa().Pw(a.pa(),b);return this}Yu(a){this.pa().Yu(a);return this}};olympe.ui.P.Yk=class extends olympe.ui.P.Ae{constructor(a,b){super(olympe.ui.La.C(olympe.N.P.Yk,olympe.host.ab.jb.KM));this.offset=olympe.j.ma();this.C=olympe.j.pd();this.pa().jy(this.offset);this.pa().HB(this.C.Ck(),this.C.Ak(),this.C.yk(),this.C.xk());void 0!==a&&K(this.offset,a);void 0!==b&&K(this.C,b)}jy(a){K(this.offset,a);return this}};olympe.ui.P.kr=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.kr,olympe.host.ab.jb.LM))}appendChild(a,b){this.pa().appendChild(a.pa(),b);return this}removeChild(a){this.pa().removeChild(a);return this}};olympe.ui.P.Image=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.Image,olympe.host.ab.jb.MM));this.T=this.R=this.aspectRatio=this.source=void 0}re(a){this.source||Q(this,()=>{this.source=olympe.j.Ab();this.pa().re(this.source)});K(this.source,a);return this}Ql(a){this.aspectRatio||Q(this,()=>{this.aspectRatio=olympe.j.Ab();this.pa().Ql(this.aspectRatio)});K(this.aspectRatio,a);return this}Rl(a){this.R||Q(this,()=>{this.R=olympe.j.Ab();this.pa().Rl(this.R)});K(this.R,a);
1008
+ k.Gl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);k.Fl.K=new olympe.j.J(()=>olympe.ui.Y.GestureEvent,[]);olympe.ui.P.Rf=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.Rf,olympe.host.ab.jb.CM));this.absolute=void 0}vq(){return this.pa()}addElement(a,b){this.vq().addElement(a.pa(),b);return this}Uu(a){this.vq().Uu(a);return this}Mx(){this.vq().Mx();return this}Ri(a){const b=this;this.absolute||Q(this,()=>{b.absolute=olympe.j.Yc();b.vq().Ri(b.absolute)});K(this.absolute,a);return this}};olympe.ui.P.Ig=class extends olympe.ui.P.Ad{constructor(a){super(a)}};function Kg(a){return a.value instanceof olympe.ui.P.Ig?a.value.pa():a.value}olympe.ui.P.V0=class{constructor(a){this.value=null;a&&this.Gf(a)}Gf(a){this.value=a}getValue(){return this.value}};olympe.ui.P.Xn=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.Xn,olympe.host.ab.jb.DM));this.amount=void 0}C(){return this.pa()}Nx(a){this.amount||Q(this,()=>{this.amount=olympe.j.ma();this.C().Nx(this.amount)});K(this.amount,a);return this}nf(a){const b=c=>{this.C().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.Xn.prototype.C.K=new olympe.j.J(()=>olympe.N.P.Xn,[]);olympe.ui.P.nm=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.nm,olympe.host.ab.jb.AM));this.R=void 0}T(){return this.pa()}setRadius(a){this.R||Q(this,()=>{this.R=olympe.j.ma();this.T().setRadius(this.R)});K(this.R,a);return this}};olympe.ui.P.nm.prototype.T.K=new olympe.j.J(()=>olympe.N.P.nm,[]);olympe.ui.P.cr=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.cr,olympe.host.ab.jb.EM));this.C=null}setMatrix(a){this.C||Q(this,()=>{this.C=olympe.j.ub(olympe.la.no);this.pa().setMatrix(this.C.getStringValue())});K(this.C,a);return this}nf(a){const b=c=>{this.pa().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.ao=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.ao,olympe.host.ab.jb.FM));this.mode=void 0}iy(a){this.mode||Q(this,()=>{this.mode=olympe.j.Ab();this.pa().iy(this.mode)});K(this.mode,a);return this}nf(a){const b=c=>{this.pa().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}by(a){const b=c=>{this.pa().by(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.co=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.co,olympe.host.ab.jb.BM));this.R=void 0}setRadius(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.fd();b.pa().setRadius(b.R.oa(),b.R.sa())});K(this.R,a);return this}};olympe.ui.P.eo=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.eo,olympe.host.ab.jb.GM))}};olympe.ui.P.Ih=class extends olympe.ui.P.Ae{constructor(a){super(a)}Pw(a,b){this.pa().Pw(a.pa(),b);return this}Yu(a){this.pa().Yu(a);return this}};olympe.ui.P.Yk=class extends olympe.ui.P.Ae{constructor(a,b){super(olympe.ui.La.C(olympe.N.P.Yk,olympe.host.ab.jb.KM));this.offset=olympe.j.ma();this.C=olympe.j.pd();this.pa().jy(this.offset);this.pa().HB(this.C.Ck(),this.C.Ak(),this.C.yk(),this.C.xk());void 0!==a&&K(this.offset,a);void 0!==b&&K(this.C,b)}jy(a){K(this.offset,a);return this}};olympe.ui.P.kr=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.kr,olympe.host.ab.jb.LM))}appendChild(a,b){this.pa().appendChild(a.pa(),b);return this}removeChild(a){this.pa().removeChild(a);return this}};olympe.ui.P.Image=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.Image,olympe.host.ab.jb.MM));this.T=this.R=this.aspectRatio=this.source=void 0}re(a){this.source||Q(this,()=>{this.source=olympe.j.Ab();this.pa().re(this.source)});K(this.source,a);return this}Ql(a){this.aspectRatio||Q(this,()=>{this.aspectRatio=olympe.j.Ab();this.pa().Ql(this.aspectRatio)});K(this.aspectRatio,a);return this}Rl(a){this.R||Q(this,()=>{this.R=olympe.j.Ab();this.pa().Rl(this.R)});K(this.R,a);
1009
1009
  return this}Vl(a){this.T||Q(this,()=>{this.T=olympe.j.Ab();this.pa().Vl(this.T)});K(this.T,a);return this}};olympe.ui.P.$k=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.$k,olympe.host.ab.jb.HM));this.R=this.C=this.aspectRatio=this.source=void 0}re(a){this.source||Q(this,()=>{this.source=olympe.j.Ab();this.pa().re(this.source)});K(this.source,a);return this}Ql(a){this.aspectRatio||Q(this,()=>{this.aspectRatio=olympe.j.Ab();this.pa().Ql(this.aspectRatio)});K(this.aspectRatio,a);return this}Rl(a){this.C||Q(this,()=>{this.C=olympe.j.Ab();this.pa().Rl(this.C)});K(this.C,a);return this}Vl(a){this.R||
1010
1010
  Q(this,()=>{this.R=olympe.j.Ab();this.pa().Vl(this.R)});K(this.R,a);return this}};olympe.ui.P.xi=class extends olympe.ui.P.Ih{constructor(){super(olympe.ui.La.C(olympe.N.P.xi,olympe.host.ab.jb.NM));this.D=this.C=void 0}ky(a){this.C||Q(this,function(){this.C=olympe.j.fd();this.pa().ky(this.C.oa(),this.C.sa())}.bind(this));K(this.C,a);return this}ly(a){this.D||Q(this,function(){this.D=olympe.j.fd();this.pa().ly(this.D.oa(),this.D.sa())}.bind(this));K(this.D,a);return this}};olympe.ui.P.mo=class extends olympe.ui.P.Ad{constructor(){super(olympe.ui.La.C(olympe.N.P.mo,olympe.host.ab.jb.OM));this.absolute=void 0}appendChild(a,b){this.pa().appendChild(a.pa(),b);return this}removeChild(a){this.pa().removeChild(a);return this}Ri(a){this.absolute||Q(this,()=>{this.absolute=olympe.j.Yc();this.pa().Ri(this.absolute)});K(this.absolute,a);return this}};olympe.ui.P.oo=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.oo,olympe.host.ab.jb.IM))}Mw(a,b){const c=d=>{this.pa().nf(Kg(d),b)};a.Kh?nc(a,c):c(a);return this}Wu(a){this.pa().Wu(a);return this}};olympe.ui.P.el=class extends olympe.ui.P.Ig{constructor(){super(olympe.ui.La.C(olympe.N.P.el,olympe.host.ab.jb.JM));this.offset=void 0}Wx(a){this.offset||Q(this,()=>{this.offset=olympe.j.fd();this.pa().Wx(this.offset.oa(),this.offset.sa())});K(this.offset,a);return this}nf(a){const b=c=>{this.pa().nf(Kg(c))};a.Kh?nc(a,b):b(a);return this}};olympe.ui.P.hl=class extends olympe.ui.P.pc{constructor(){super(olympe.ui.La.C(olympe.N.P.hl,olympe.host.ab.jb.PM));this.R=this.T=void 0;this.W=1}Qx(a){const b=this;this.T||Q(this,()=>{b.T=olympe.j.Yc();b.pa().Qx(b.T)});K(this.T,a);return this}ph(a){const b=this;this.R||Q(this,()=>{b.R=olympe.j.Ab();b.pa().ph(b.R)});K(this.R,a);return this}fq(a,b){this.pa().fq(a.pa(),b);return this}Xu(a){this.pa().Xu(a);return this}moveTo(a){this.fq(new olympe.ui.P.Sz(a),'seg'+this.W++);return this}lineTo(a){this.fq(new olympe.ui.P.Rz(a),
1011
1011
  'seg'+this.W++);return this}arcTo(a,b,c,d,e,f){this.fq(new olympe.ui.P.aj(a,b,c,d,e,f),'seg'+this.W++);return this}};olympe.ui.P.Jf=class extends olympe.ui.P.Ae{constructor(a,b){super(a);this.position=olympe.j.fd();this.pa().setPosition(this.position.oa(),this.position.sa());b&&K(this.position,b)}setPosition(a){K(this.position,a);return this}ge(){return this.position}};olympe.ui.P.Jf.prototype.ge.K=olympe.j.J.W;olympe.ui.P.aj=class extends olympe.ui.P.Jf{constructor(a,b,c,d,e,f){super(olympe.ui.La.C(olympe.N.P.aj,olympe.host.ab.jb.QM),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.pa().my(this.O);this.pa().ny(this.C);this.pa().wy(this.T);this.pa().ey(this.D);this.pa().uy(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)}my(a){K(this.O,a);return this}ny(a){K(this.C,
@@ -1083,12 +1083,12 @@ b,bh(this)}eh(a,b,c,d,e,f){this.ib('boxShadow',(f?'inset ':'')+(a?a:0)+'px '+(b?
1083
1083
  !1;super.Hn()}pj(){this.ou=!0;this.focus&&super.tj();this.FP.forEach(function(a){a()})}Tl(){this.ou=!1;this.GP.forEach(function(a){a()})}Ls(a){this.setAttribute('rank',a.toString());a=this.parent;a instanceof olympe.G.H.ui.F.jc&&a.h_().catch(console.error)}ME(a,b,c,d,e,f,g,h,l,m,n,p,r,t){this.Xb(a);this.Pd(b,c);this.Yq(d);this.eh(e,f,g,h,l,m);this.rv(n,n);this.fh(p);this.Fg(r);this.Dg(t)}destroy(){null!==this.parent&&null!==this.Ju&&this.parent.Xr(this.Ju);super.destroy()}Kj(){}};
1084
1084
  olympe.G.H.ui.F.jc.prototype.ancestorBecameVisible=olympe.G.H.ui.F.jc.prototype.Kj;olympe.G.H.ui.F.jc.prototype.destroy=olympe.G.H.ui.F.jc.prototype.destroy;olympe.G.H.ui.F.jc.prototype.initAllProperties=olympe.G.H.ui.F.jc.prototype.ME;olympe.G.H.ui.F.jc.prototype.setBlur=olympe.G.H.ui.F.jc.prototype.Hn;olympe.G.H.ui.F.jc.prototype.setFocus=olympe.G.H.ui.F.jc.prototype.tj;olympe.G.H.ui.F.jc.prototype.setCornerRadius=olympe.G.H.ui.F.jc.prototype.Xb;olympe.G.H.ui.F.jc.prototype.setShadow=olympe.G.H.ui.F.jc.prototype.eh;
1085
1085
  olympe.G.H.ui.F.jc.prototype.setScaleFactorXY=olympe.G.H.ui.F.jc.prototype.tF;olympe.G.H.ui.F.jc.prototype.setScaleFactor=olympe.G.H.ui.F.jc.prototype.rv;olympe.G.H.ui.F.jc.prototype.setRotationAngle=olympe.G.H.ui.F.jc.prototype.Yq;olympe.G.H.ui.F.jc.prototype.setAccelerated=olympe.G.H.ui.F.jc.prototype.bk;olympe.G.H.ui.F.jc.prototype.setBorder=olympe.G.H.ui.F.jc.prototype.Pd;olympe.G.H.ui.F.jc.prototype.setHeight=olympe.G.H.ui.F.jc.prototype.Dg;olympe.G.H.ui.F.jc.prototype.setWidth=olympe.G.H.ui.F.jc.prototype.Fg;
1086
- olympe.G.H.ui.F.jc.prototype.setZIndex=olympe.G.H.ui.F.jc.prototype.fh;olympe.G.H.ui.F.jc.prototype.setXY=olympe.G.H.ui.F.jc.prototype.FF;olympe.G.H.ui.F.jc.prototype.setY=olympe.G.H.ui.F.jc.prototype.Ie;olympe.G.H.ui.F.jc.prototype.setX=olympe.G.H.ui.F.jc.prototype.se;olympe.G.H.ui.F.jc.Aa=[olympe.N.F.mb];olympe.G.H.ui.F.Sf=class extends olympe.G.H.ui.F.jc{constructor(a,b){super(a,b,document.createElement('div'));this.$=this.T=this.O=this.Da=0;this.D=this.C=null;this.ib('user-select','text')}Cf(){let a=this.width-Math.min(2*this.borderWidth,this.width)-this.T-this.$,b=this.height-Math.min(2*this.borderWidth,this.height)-this.Da-this.O,c=Math.min(this.width/2,this.height/2,this.borderWidth);a=Math.round(a);b=Math.round(b);c=Math.round(c);const d=this.ua();'auto'===d.style.height&&(b='auto');'auto'===
1086
+ olympe.G.H.ui.F.jc.prototype.setZIndex=olympe.G.H.ui.F.jc.prototype.fh;olympe.G.H.ui.F.jc.prototype.setXY=olympe.G.H.ui.F.jc.prototype.FF;olympe.G.H.ui.F.jc.prototype.setY=olympe.G.H.ui.F.jc.prototype.Ie;olympe.G.H.ui.F.jc.prototype.setX=olympe.G.H.ui.F.jc.prototype.se;olympe.G.H.ui.F.jc.Aa=[olympe.N.F.mb];olympe.G.H.ui.F.Tf=class extends olympe.G.H.ui.F.jc{constructor(a,b){super(a,b,document.createElement('div'));this.$=this.T=this.O=this.Da=0;this.D=this.C=null;this.ib('user-select','text')}Cf(){let a=this.width-Math.min(2*this.borderWidth,this.width)-this.T-this.$,b=this.height-Math.min(2*this.borderWidth,this.height)-this.Da-this.O,c=Math.min(this.width/2,this.height/2,this.borderWidth);a=Math.round(a);b=Math.round(b);c=Math.round(c);const d=this.ua();'auto'===d.style.height&&(b='auto');'auto'===
1087
1087
  d.style.width&&(a='auto');ch(this,a,b);this.ib('border',c+'px solid '+this.borderColor)}fa(a){this.D=a}sp(a,b){const c=this.ua();b&&(c.style.height='auto');a&&(c.style.width='auto');this.C||!b&&!a||(this.C=new ResizeObserver(d=>{const e=d[0];window.requestAnimationFrame(()=>{let f=c.offsetHeight,g=c.offsetWidth;b&&(f=e.contentRect.height);a&&(g=e.contentRect.width);this.D?this.D(g,f):this.V.error('No resize callback for observer on HTML element was set')})}),this.C.observe(this.ua()));if(!b&&!a){let d;
1088
1088
  null==(d=this.C)||d.disconnect()}}CB(a){const b=this.ua(),c=[],d=e=>{for(const f of e.children)f instanceof HTMLImageElement?c.push(f):f.children&&0<f.children.length&&d(f)};b.innerHTML=a;d(b);if(0<c.length){let e=c.length;for(const f of c)f.onload=()=>{e--}}}ev(a){const b=document.createElement('style');b.innerHTML=a;this.ua().appendChild(b)}gv(a){this.ua().className=a}fv(a,b){const c=this.ua();b&&(c.className=b);b=document.createElement('link');b.type='text/css';b.rel='stylesheet';b.href=a;c.appendChild(b)}Bb(a){this.ib('fontWeight',
1089
- a)}wb(a){this.ib('font-family',a||'')}sb(a){this.ib('fontSize',a.toString()+'px')}Ud(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',a)}Ef(a=0,b=0,c=0,d=0){this.Da=a;this.O=b;this.T=c;this.$=d;this.ib('padding-left',c+'px');this.ib('padding-right',d+'px');this.ib('padding-top',a+'px');this.ib('padding-bottom',b+'px')}rd(a){super.rd(a)}};olympe.G.H.ui.F.Sf.prototype.setHidden=olympe.G.H.ui.F.Sf.prototype.rd;olympe.G.H.ui.F.Sf.prototype.setPadding=olympe.G.H.ui.F.Sf.prototype.Ef;
1090
- olympe.G.H.ui.F.Sf.prototype.setTextColor=olympe.G.H.ui.F.Sf.prototype.lb;olympe.G.H.ui.F.Sf.prototype.setFontStyle=olympe.G.H.ui.F.Sf.prototype.Ud;olympe.G.H.ui.F.Sf.prototype.setFontSize=olympe.G.H.ui.F.Sf.prototype.sb;olympe.G.H.ui.F.Sf.prototype.setFontFamily=olympe.G.H.ui.F.Sf.prototype.wb;olympe.G.H.ui.F.Sf.prototype.setFontWeight=olympe.G.H.ui.F.Sf.prototype.Bb;olympe.G.H.ui.F.Sf.prototype.setCSSLink=olympe.G.H.ui.F.Sf.prototype.fv;olympe.G.H.ui.F.Sf.prototype.setClass=olympe.G.H.ui.F.Sf.prototype.gv;
1091
- olympe.G.H.ui.F.Sf.prototype.setCSS=olympe.G.H.ui.F.Sf.prototype.ev;olympe.G.H.ui.F.Sf.prototype.setHTML=olympe.G.H.ui.F.Sf.prototype.CB;olympe.host.Zc.register(olympe.host.ab.jb.ND,olympe.G.H.ui.F.Sf);olympe.G.H.ui.F.Sf.Aa=[olympe.N.F.Ve];function gh(a,b){if(0===a.$.length||!b.type||0===b.type.length)return!0;for(const c of a.$)if('*'===c.charAt(c.length-1)){if(c.slice(0,c.length-2)===b.type.slice(0,b.type.indexOf('/')))return!0}else if(c===b.type)return!0;return!1}function hh(a,b){if(gh(a,b)){var c=new FileReader;c.onloadend=()=>{a.files.push({content:c.result,lastModifiedDate:new Date(b.lastModified),name:b.name,size:b.size,mimeType:b.type});a.fa&&a.files.length===a.T&&(a.T=null,a.fa())};c.readAsArrayBuffer(b)}}
1089
+ a)}wb(a){this.ib('font-family',a||'')}sb(a){this.ib('fontSize',a.toString()+'px')}Ud(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',a)}Ef(a=0,b=0,c=0,d=0){this.Da=a;this.O=b;this.T=c;this.$=d;this.ib('padding-left',c+'px');this.ib('padding-right',d+'px');this.ib('padding-top',a+'px');this.ib('padding-bottom',b+'px')}rd(a){super.rd(a)}};olympe.G.H.ui.F.Tf.prototype.setHidden=olympe.G.H.ui.F.Tf.prototype.rd;olympe.G.H.ui.F.Tf.prototype.setPadding=olympe.G.H.ui.F.Tf.prototype.Ef;
1090
+ olympe.G.H.ui.F.Tf.prototype.setTextColor=olympe.G.H.ui.F.Tf.prototype.lb;olympe.G.H.ui.F.Tf.prototype.setFontStyle=olympe.G.H.ui.F.Tf.prototype.Ud;olympe.G.H.ui.F.Tf.prototype.setFontSize=olympe.G.H.ui.F.Tf.prototype.sb;olympe.G.H.ui.F.Tf.prototype.setFontFamily=olympe.G.H.ui.F.Tf.prototype.wb;olympe.G.H.ui.F.Tf.prototype.setFontWeight=olympe.G.H.ui.F.Tf.prototype.Bb;olympe.G.H.ui.F.Tf.prototype.setCSSLink=olympe.G.H.ui.F.Tf.prototype.fv;olympe.G.H.ui.F.Tf.prototype.setClass=olympe.G.H.ui.F.Tf.prototype.gv;
1091
+ olympe.G.H.ui.F.Tf.prototype.setCSS=olympe.G.H.ui.F.Tf.prototype.ev;olympe.G.H.ui.F.Tf.prototype.setHTML=olympe.G.H.ui.F.Tf.prototype.CB;olympe.host.Zc.register(olympe.host.ab.jb.ND,olympe.G.H.ui.F.Tf);olympe.G.H.ui.F.Tf.Aa=[olympe.N.F.Ve];function gh(a,b){if(0===a.$.length||!b.type||0===b.type.length)return!0;for(const c of a.$)if('*'===c.charAt(c.length-1)){if(c.slice(0,c.length-2)===b.type.slice(0,b.type.indexOf('/')))return!0}else if(c===b.type)return!0;return!1}function hh(a,b){if(gh(a,b)){var c=new FileReader;c.onloadend=()=>{a.files.push({content:c.result,lastModifiedDate:new Date(b.lastModified),name:b.name,size:b.size,mimeType:b.type});a.fa&&a.files.length===a.T&&(a.T=null,a.fa())};c.readAsArrayBuffer(b)}}
1092
1092
  function ih(a,b){a.files=[];for(var c=0,d=b.length;c<d;++c)hh(a,b[c])}
1093
1093
  olympe.G.H.ui.F.Sg=class extends olympe.G.H.ui.F.jc{constructor(a,b){function c(d){d.preventDefault();d.stopPropagation()}super(a,b,document.createElement('div'));this.files=[];this.disabled=this.multiple=!1;this.$=[];this.O=this.D=this.T=null;this.C=document.createElement('input');this.fa=null;document.body.appendChild(this.C);a=this.ua();this.C.setAttribute('type','file');this.C.style.display='none';this.C.style.border='none';this.C.style.position='absolute';a.addEventListener('dragenter',c);a.addEventListener('dragleave',
1094
1094
  c);a.addEventListener('dragover',c);a.addEventListener('drop',d=>{c(d);d=d.dataTransfer.files;this.disabled||(this.multiple?(this.T=d.length,ih(this,d)):(this.T=1,hh(this,d[0])))});this.C.addEventListener('change',this.Da.bind(this))}destroy(){document.body.removeChild(this.C);super.destroy()}ku(a){if(-1===this.$.indexOf(a)){this.$.push(a);var b=this.C.getAttribute('accept');b?this.C.setAttribute('accept',b+','+a):this.C.setAttribute('accept',a)}}dv(a){this.D&&this.O&&this.D.removeChild(this.O);this.O=
@@ -1100,7 +1100,7 @@ b.height='auto';b['overflow-wrap']='break-word';Object.assign(this.Hd.style,b);t
1100
1100
  this.paddingRight,m=h+this.paddingTop+this.paddingBottom;this.ib('border',b+'px solid '+this.yl());this.Hd.style.padding=`${d}px ${e}px ${f}px ${c}px`;this.Hd.style['max-width']=l+'px';this.Hd.style.width=g+'px';this.Hd.style.height=h+'px';ch(this,l,m)}static C(){const b=new Map;jh.forEach((c,d)=>{c=c[0].Hd;b.set(d,[c.style.width,c.style.height])});jh.forEach(c=>{c=c[0].Hd;c.style.removeProperty('max-width');Object.assign(c.style,{width:'auto',height:'auto'})});jh.forEach(c=>{const d=c[0];var e=d.Hd;
1101
1101
  const f=e.clientWidth;e=e.clientHeight;if(d.qs!==f||d.Mu!==e)d.qs=f,d.Mu=e,c[1].oc()||null===d.zy||c[1].run(()=>{d.zy(d.qs-d.paddingRight-d.paddingLeft,d.Mu-d.paddingTop-d.paddingBottom)})});jh.forEach((c,d)=>{const e=c[0],f=e.Hd;d=b.get(d);Object.assign(f.style,{width:e.Nf?e.qs:d[0],height:e.Qe?e.Mu:d[1],'max-width':c[0].qs})});jh.clear()}C(){if(null!==this.zy){const b=c=>{if(c<kh){const d=kh;window.setTimeout(()=>b(d),0)}else kh=0,a.C()};jh.set(this.uid,[this,olympe.j.zb()]);kh++;1===kh&&b(0)}}rd(b){super.rd(b);
1102
1102
  this.C()}Jb(b){if(-1<b.toString().search(Mg)){var c=this.Hd;b=b.split('').reverse().join('').replace(Og,';tg&').split('').reverse().join('').replace(Ng,'&lt;');c.innerHTML=b}else this.Hd.textContent=b;this.C()}ce(b){this.Nf=b;this.C()}Id(b){this.Qe=b;this.C()}Fg(b){super.Fg(b);this.Cf();this.C()}Dg(b){super.Dg(b);this.Cf();this.C()}Bb(b){this.Hd.style['font-weight']=b.toString();this.C()}wb(b){this.Hd.style['font-family']=b||'';b&&$g(b,()=>this.C())}sb(b){this.Hd.style['font-size']=b.toString()+'px';
1103
- this.C()}Ud(b){this.Hd.style['font-style']=b.toString();this.C()}lb(b){this.ib('color',b)}Sl(b,c,d,e){this.ib('color','rgba('+b+', '+c+', '+d+', '+e+')')}dk(b){this.Hd.style['line-height']=b.toString();this.C()}Vb(b){switch(b){case olympe.ui.ha.Cb.Tf:this.Hd.style['text-align']='left';break;case olympe.ui.ha.Cb.Tb:this.Hd.style['text-align']='center';break;case olympe.ui.ha.Cb.Di:this.Hd.style['text-align']='right';break;default:this.tb().warn('Unexpected text horizontal align value '+b+' ignored')}this.C()}Yb(b){switch(b){case olympe.ui.ha.wc.lh:this.Hd.style['vertical-align']=
1103
+ this.C()}Ud(b){this.Hd.style['font-style']=b.toString();this.C()}lb(b){this.ib('color',b)}Sl(b,c,d,e){this.ib('color','rgba('+b+', '+c+', '+d+', '+e+')')}dk(b){this.Hd.style['line-height']=b.toString();this.C()}Vb(b){switch(b){case olympe.ui.ha.Cb.Uf:this.Hd.style['text-align']='left';break;case olympe.ui.ha.Cb.Tb:this.Hd.style['text-align']='center';break;case olympe.ui.ha.Cb.Di:this.Hd.style['text-align']='right';break;default:this.tb().warn('Unexpected text horizontal align value '+b+' ignored')}this.C()}Yb(b){switch(b){case olympe.ui.ha.wc.lh:this.Hd.style['vertical-align']=
1104
1104
  'top';break;case olympe.ui.ha.wc.Uc:this.Hd.style['vertical-align']='middle';break;case olympe.ui.ha.wc.Dh:this.Hd.style['vertical-align']='bottom';break;default:this.tb().warn('Unexpected text vertical align value '+b+' ignored')}this.D();this.C()}ji(b){const c=()=>{this.Hd.style.removeProperty('overflow');this.Hd.style['text-overflow']='clip'};switch(b){case olympe.ui.ha.zo.Nv:c();break;case olympe.ui.ha.zo.jH:this.Hd.style['text-overflow']='ellipsis';this.Hd.style.overflow='hidden';break;case olympe.ui.ha.zo.zH:this.tb().warn('Fade is not supported yet');
1105
1105
  c();break;default:this.tb().warn('Unexpected text overflow handling',b,'ignored'),c()}this.D()}xv(b){'pre'===b||'pre-wrap'===b||'nowrap'===b?this.Hd.style['white-space']=b:(this.tb().warn('Unexpected white space wrap value',b,'ignored'),this.Hd.style['white-space']='pre');this.C()}Ul(b){b?(this.Hd.style['user-select']='text',this.Hd.style['-webkit-user-select']='text',this.Hd.style['-moz-user-select']='text',this.Hd.style['-ms-user-select']='text',this.Hd.style.cursor='auto'):(this.Hd.style['user-select']=
1106
1106
  'none',this.Hd.style['-webkit-user-select']='none',this.Hd.style['-moz-user-select']='none',this.Hd.style['-ms-user-select']='none',this.Hd.style.cursor='default')}op(b){this.zy=b;this.qs&&this.Mu?b(this.qs-this.paddingRight-this.paddingLeft,this.Mu-this.paddingTop-this.paddingBottom):this.C()}Zq(){this.zy=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()}pj(){super.pj();
@@ -1115,7 +1115,7 @@ olympe.G.H.ui.F.ug.prototype.setAppended=olympe.G.H.ui.F.ug.prototype.pj;olympe.
1115
1115
  olympe.host.Zc.register(olympe.host.ab.jb.$z,olympe.G.H.ui.F.ug);olympe.G.H.ui.F.ug.Aa=[olympe.N.F.he,olympe.G.H.ui.F.MC];olympe.G.H.ui.F.MC=class{constructor(){}Xr(){}};olympe.G.H.ui.F.Ac=class extends olympe.G.H.ui.F.jc{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.fa='';this.T=!1;this.Da=void 0;this.$=!1;this.ua().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',
1116
1116
  'text');this.ib('-moz-user-select','text');this.ib('-ms-user-select','text');this.ib('-user-select','text');this.ua().addEventListener('mousedown',c=>{c.stopPropagation()});this.ua().addEventListener('mouseup',c=>{c.stopPropagation()});this.ua().addEventListener('click',c=>{c.stopPropagation()});this.ua().addEventListener('keyup',c=>{c.stopPropagation()});this.ua().addEventListener('keydown',c=>{c.stopPropagation()});this.ua().addEventListener('keypress',c=>{c.stopPropagation()});this.C=()=>{requestAnimationFrame(this.Ha.bind(this))}}Cf(){const a=
1117
1117
  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.yl());this.ib('paddingLeft',this.paddingLeft+'px');this.ib('paddingRight',this.paddingRight+'px');this.ib('paddingTop',this.paddingTop+'px');this.ib('paddingBottom',this.paddingBottom+'px');ch(this,a,b)}Df(a){this.ua().disabled=a}Bb(a){this.ib('fontWeight',a.toString());
1118
- bh(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()}wb(a){this.ib('fontFamily',a||'')}sb(a){this.ib('fontSize',a.toString()+'px')}Ud(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',a)}Sl(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Qg(a){this.ua().placeholder=a}dh(a){Ug(Sg(),this,'color:'+a)}Vb(a){switch(a){case olympe.ui.ha.Cb.Tf:this.ib('text-align','left');break;
1118
+ bh(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()}wb(a){this.ib('fontFamily',a||'')}sb(a){this.ib('fontSize',a.toString()+'px')}Ud(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',a)}Sl(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Qg(a){this.ua().placeholder=a}dh(a){Ug(Sg(),this,'color:'+a)}Vb(a){switch(a){case olympe.ui.ha.Cb.Uf:this.ib('text-align','left');break;
1119
1119
  case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.Di:this.ib('text-align','right');break;default:this.tb().warn('Unexpected text horizontal align value '+a+' ignored')}}Yb(a){switch(a){case olympe.ui.ha.wc.lh:this.ib('vertical-align','top');break;case olympe.ui.ha.wc.Uc:this.ib('vertical-align','middle');break;case olympe.ui.ha.wc.Dh:this.ib('vertical-align','bottom');break;default:this.tb().warn('Unexpected text vertical align value '+a+' ignored')}}ak(){return this.ua().select()}getValue(){return this.ua().value}Gf(a){''!==
1120
1120
  document.activeElement.id&&document.activeElement.id===this.ua().id||this.ua().value===a||(this.ua().value=a,this.T&&window.setTimeout(this.Ha.bind(this),0),a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.ua().dispatchEvent(a))}Wc(){this.O||(this.O=new olympe.G.H.ui.Na.Uh(this.ua()));return this.O}rq(){this.D||(this.D=new olympe.G.H.ui.Na.mr(this.ua()));return this.D}Ol(a){U(this,'valueChanged',this.gm.bind(this));return this.rq().Ol(a)}gm(){W(this,'valueChanged');
1121
1121
  return this.rq().gm()}Ok(a){U(this,'keyPressed',this.xj.bind(this));return this.Wc().Ok(a)}xj(){W(this,'keyPressed');return this.Wc().xj()}Nk(a){U(this,'keyDown',this.wj.bind(this));return this.Wc().Nk(a)}wj(){W(this,'keyDown');return this.Wc().wj()}Pk(a){U(this,'keyUp',this.yj.bind(this));return this.Wc().Pk(a)}yj(){W(this,'keyUp');return this.Wc().yj()}Ha(){const a=this.ua();a.style.height=this.fa;const b=Number.parseInt(this.fa,10);let c=a.scrollHeight-this.paddingTop-this.paddingBottom;c=c>b?
@@ -1128,7 +1128,7 @@ olympe.G.H.ui.F.Ac.prototype.setPaddingTop=olympe.G.H.ui.F.Ac.prototype.td;olymp
1128
1128
  'text');this.ib('-moz-user-select','text');this.ib('-ms-user-select','text');this.ib('-user-select','text');this.ua().setAttribute('autocomplete','off');this.ua().addEventListener('mousedown',c=>{c.stopPropagation()});this.ua().addEventListener('mouseup',c=>{c.stopPropagation()});this.ua().addEventListener('click',c=>{c.stopPropagation()});this.ua().addEventListener('keyup',c=>{c.stopPropagation()});this.ua().addEventListener('keydown',c=>{c.stopPropagation()});this.ua().addEventListener('keypress',
1129
1129
  c=>{c.stopPropagation()})}Cf(){let a=Math.min(this.Gd()/2,this.Ge()/2,this.Fi()),b=this.paddingLeft,c=this.paddingTop,d=Math.min(this.paddingRight,this.Gd()-2*a-this.paddingLeft),e=Math.min(this.paddingBottom,this.Ge()-2*a-this.paddingTop),f=this.Gd()-Math.min(2*this.Fi()+this.paddingLeft+this.paddingRight,this.Gd()),g=this.Ge()-Math.min(2*this.Fi()+this.paddingTop+this.paddingBottom,this.Ge());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.yl());
1130
1130
  this.ib('padding-left',b+'px');this.ib('padding-right',d+'px');this.ib('padding-top',c+'px');this.ib('padding-bottom',e+'px');ch(this,f,g)}Df(a){this.ua().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()}wb(a){this.ib('fontFamily',a||'')}sb(a){this.ib('fontSize',a.toString()+'px')}Ud(a){this.ib('fontStyle',a.toString())}lb(a){this.ib('color',
1131
- a)}Sl(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Vb(a){switch(a){case olympe.ui.ha.Cb.Tf:this.ib('text-align','left');break;case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.Di:this.ib('text-align','right');break;default:this.tb().warn('Unexpected text horizontal align value '+a+' ignored')}}Yb(a){switch(a){case olympe.ui.ha.wc.lh:this.ib('vertical-align','left');break;case olympe.ui.ha.wc.Uc:this.ib('vertical-align','center');break;case olympe.ui.ha.wc.Dh:this.ib('vertical-align',
1131
+ a)}Sl(a,b,c,d){this.ib('color','rgba('+a+', '+b+', '+c+', '+d+')')}Vb(a){switch(a){case olympe.ui.ha.Cb.Uf:this.ib('text-align','left');break;case olympe.ui.ha.Cb.Tb:this.ib('text-align','center');break;case olympe.ui.ha.Cb.Di:this.ib('text-align','right');break;default:this.tb().warn('Unexpected text horizontal align value '+a+' ignored')}}Yb(a){switch(a){case olympe.ui.ha.wc.lh:this.ib('vertical-align','left');break;case olympe.ui.ha.wc.Uc:this.ib('vertical-align','center');break;case olympe.ui.ha.wc.Dh:this.ib('vertical-align',
1132
1132
  'right');break;default:this.tb().warn('Unexpected text vertical align value '+a+' ignored')}}ak(){return this.ua().select()}getValue(){return this.ua().value}Gf(a){''!==document.activeElement.id&&document.activeElement.id===this.ua().id||this.ua().value===a||(this.ua().value=a,a=document.createEvent('HTMLEvents'),a.initEvent('input',!0,!0),a.C='input',this.ua().dispatchEvent(a))}Qg(a){this.ua().placeholder=a}dh(a){Ug(Sg(),this,'color:'+a)}In(a){switch(a){case olympe.ui.ha.Mr.Cw:this.ua().type='text';
1133
1133
  break;case olympe.ui.ha.Mr.XK:this.ua().type='password';break;case olympe.ui.ha.Mr.UT:this.ua().type='number';break;case olympe.ui.ha.Mr.kH:this.ua().type='email';break;case olympe.ui.ha.Mr.jU:this.ua().type='phone';break;default:this.tb().warn('Unexpected text field type '+a+' ignored')}}pv(a){this.ua().min=a}mv(a){this.ua().max=a}uv(a){this.ua().step=a}bv(a){switch(a){case olympe.ui.ha.gA.NONE:this.ua().autocapitalize='off';break;case olympe.ui.ha.gA.bR:this.ua().autocapitalize='characters';break;
1134
1134
  case olympe.ui.ha.gA.JV:this.ua().autocapitalize='words';break;case olympe.ui.ha.gA.HU:this.ua().autocapitalize='sentences';break;default:this.tb().warn('Unexpected text field capitalization mode '+a+' ignored')}}ji(a){const b=()=>{this.removeAttribute('overflow');this.ib('text-overflow','clip')};switch(a){case olympe.ui.ha.zo.Nv:b();break;case olympe.ui.ha.zo.jH:this.ib('text-overflow','ellipsis');this.ib('overflow','hidden');break;case olympe.ui.ha.zo.zH:this.tb().warn('Fade is not supported yet');
@@ -1209,12 +1209,12 @@ olympe.G.H.ui.Sa.Ua.Map.prototype.stop=olympe.G.H.ui.Sa.Ua.Map.prototype.stop;ol
1209
1209
  olympe.G.H.ui.Sa.Ua.Map.prototype.flyToBounds=olympe.G.H.ui.Sa.Ua.Map.prototype.wu;olympe.G.H.ui.Sa.Ua.Map.prototype.flyTo=olympe.G.H.ui.Sa.Ua.Map.prototype.vu;olympe.G.H.ui.Sa.Ua.Map.prototype.panBy=olympe.G.H.ui.Sa.Ua.Map.prototype.Ru;olympe.G.H.ui.Sa.Ua.Map.prototype.panTo=olympe.G.H.ui.Sa.Ua.Map.prototype.Tu;olympe.G.H.ui.Sa.Ua.Map.prototype.fitWorld=olympe.G.H.ui.Sa.Ua.Map.prototype.uu;olympe.G.H.ui.Sa.Ua.Map.prototype.fitBounds=olympe.G.H.ui.Sa.Ua.Map.prototype.tu;
1210
1210
  olympe.G.H.ui.Sa.Ua.Map.prototype.setZoomAround=olympe.G.H.ui.Sa.Ua.Map.prototype.yv;olympe.G.H.ui.Sa.Ua.Map.prototype.zoomOut=olympe.G.H.ui.Sa.Ua.Map.prototype.Gv;olympe.G.H.ui.Sa.Ua.Map.prototype.zoomIn=olympe.G.H.ui.Sa.Ua.Map.prototype.Fv;olympe.G.H.ui.Sa.Ua.Map.prototype.registerLatitudeCallback=olympe.G.H.ui.Sa.Ua.Map.prototype.Jx;olympe.G.H.ui.Sa.Ua.Map.prototype.registerLongitudeCallback=olympe.G.H.ui.Sa.Ua.Map.prototype.Kx;olympe.G.H.ui.Sa.Ua.Map.prototype.setLatitude=olympe.G.H.ui.Sa.Ua.Map.prototype.Gs;
1211
1211
  olympe.G.H.ui.Sa.Ua.Map.prototype.setLongitude=olympe.G.H.ui.Sa.Ua.Map.prototype.Hs;olympe.G.H.ui.Sa.Ua.Map.prototype.registerZoomCallback=olympe.G.H.ui.Sa.Ua.Map.prototype.Lx;olympe.G.H.ui.Sa.Ua.Map.prototype.setZoom=olympe.G.H.ui.Sa.Ua.Map.prototype.Rs;olympe.G.H.ui.Sa.Ua.Map.prototype.removeGeoJson=olympe.G.H.ui.Sa.Ua.Map.prototype.Vu;olympe.G.H.ui.Sa.Ua.Map.prototype.setView=olympe.G.H.ui.Sa.Ua.Map.prototype.Qs;olympe.G.H.ui.Sa.Ua.Map.prototype.initMap=olympe.G.H.ui.Sa.Ua.Map.prototype.tP;
1212
- olympe.G.H.ui.Sa.Ua.Map.prototype.onLoad=olympe.G.H.ui.Sa.Ua.Map.prototype.qe;olympe.host.Zc.register(olympe.host.ab.jb.lM,olympe.G.H.ui.Sa.Ua.Map);olympe.G.H.ui.Sa.Ua.Map.Aa=[olympe.N.Sa.Ua.Map];olympe.G.H.ui.P={};olympe.G.H.ui.P.jd={Ne:{Hf:'http://www.w3.org/2000/svg',v_:'http://www.w3.org/2000/xmlns/',RB:'http://www.w3.org/1999/xlink'},Hg:'default'};olympe.G.H.ui.P.Wi=class extends olympe.G.H.ui.F.jc{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'svg'));this.C=null;this.children=new Map;this.ua().setAttribute('xmlns',olympe.G.H.ui.P.jd.Ne.Hf);this.ua().setAttributeNS(olympe.G.H.ui.P.jd.Ne.v_,'xmlns:xlink',olympe.G.H.ui.P.jd.Ne.RB);this.ua().addEventListener('focus',()=>{});eh(this,()=>{for(const c of this.children.values())c.Pf(this)});fh(this,()=>{for(const c of this.children.values())c.Pf(null)})}Fk(){null===
1213
- this.C&&(this.C=this.ua().insertBefore(document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'defs'),this.ua().firstChild));return this.C}vy(a,b,c,d){this.setAttribute('viewBox',a+' '+b+' '+c+' '+d)}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.jd.Hg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);a.setAttribute('name_As_A_Child',b);this.ua().appendChild(a.ua());a.Ff(this);a.Pf(this)}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(b)try{this.ua().removeChild(b.ua()),
1214
- b.Ff(null),b.Pf(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.debug('Trying to remove a non existing child: '+a)}sx(){return this.ua().outerHTML}CE(){return'data:image/svg+xml;utf8,'+this.sx()}};olympe.G.H.ui.P.Wi.prototype.getImageUrl=olympe.G.H.ui.P.Wi.prototype.CE;olympe.G.H.ui.P.Wi.prototype.getImageContent=olympe.G.H.ui.P.Wi.prototype.sx;olympe.G.H.ui.P.Wi.prototype.removeChild=olympe.G.H.ui.P.Wi.prototype.removeChild;
1215
- olympe.G.H.ui.P.Wi.prototype.appendChild=olympe.G.H.ui.P.Wi.prototype.appendChild;olympe.G.H.ui.P.Wi.prototype.setViewbox=olympe.G.H.ui.P.Wi.prototype.vy;olympe.G.H.ui.P.Wi.prototype.getSvgDefsElement=olympe.G.H.ui.P.Wi.prototype.Fk;olympe.host.Zc.register(olympe.host.ab.jb.XM,olympe.G.H.ui.P.Wi);olympe.G.H.ui.P.Wi.Aa=[olympe.N.P.Ei];olympe.G.H.ui.P.Me=class extends olympe.G.H.ui.zf{constructor(a,b,c){super(a,b);this.C=c;this.W=this.parent=null;this.id='';this.C&&this.Ks('auto')}ua(){return this.C}Fk(){return this.W?this.W.Fk():null}setAttribute(a,b,c){c?this.ua().setAttributeNS(c||'',a,String(b)):this.ua().setAttribute(a,String(b))}lv(a){this.setAttribute('id',this.id=a)}ja(){this.id||this.lv(this.uid);return this.id}Ff(a){this.parent=a}getParent(){return this.parent}Pf(a){this.W=a}Jo(){return this.W}destroy(){this.parent&&(this.parent=
1212
+ olympe.G.H.ui.Sa.Ua.Map.prototype.onLoad=olympe.G.H.ui.Sa.Ua.Map.prototype.qe;olympe.host.Zc.register(olympe.host.ab.jb.lM,olympe.G.H.ui.Sa.Ua.Map);olympe.G.H.ui.Sa.Ua.Map.Aa=[olympe.N.Sa.Ua.Map];olympe.G.H.ui.P={};olympe.G.H.ui.P.jd={Ne:{Hf:'http://www.w3.org/2000/svg',v_:'http://www.w3.org/2000/xmlns/',RB:'http://www.w3.org/1999/xlink'},Hg:'default'};olympe.G.H.ui.P.Wi=class extends olympe.G.H.ui.F.jc{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'svg'));this.C=null;this.children=new Map;this.ua().setAttribute('xmlns',olympe.G.H.ui.P.jd.Ne.Hf);this.ua().setAttributeNS(olympe.G.H.ui.P.jd.Ne.v_,'xmlns:xlink',olympe.G.H.ui.P.jd.Ne.RB);this.ua().addEventListener('focus',()=>{});eh(this,()=>{for(const c of this.children.values())c.Qf(this)});fh(this,()=>{for(const c of this.children.values())c.Qf(null)})}Fk(){null===
1213
+ this.C&&(this.C=this.ua().insertBefore(document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'defs'),this.ua().firstChild));return this.C}vy(a,b,c,d){this.setAttribute('viewBox',a+' '+b+' '+c+' '+d)}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.jd.Hg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);a.setAttribute('name_As_A_Child',b);this.ua().appendChild(a.ua());a.Ff(this);a.Qf(this)}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(b)try{this.ua().removeChild(b.ua()),
1214
+ 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.debug('Trying to remove a non existing child: '+a)}sx(){return this.ua().outerHTML}CE(){return'data:image/svg+xml;utf8,'+this.sx()}};olympe.G.H.ui.P.Wi.prototype.getImageUrl=olympe.G.H.ui.P.Wi.prototype.CE;olympe.G.H.ui.P.Wi.prototype.getImageContent=olympe.G.H.ui.P.Wi.prototype.sx;olympe.G.H.ui.P.Wi.prototype.removeChild=olympe.G.H.ui.P.Wi.prototype.removeChild;
1215
+ olympe.G.H.ui.P.Wi.prototype.appendChild=olympe.G.H.ui.P.Wi.prototype.appendChild;olympe.G.H.ui.P.Wi.prototype.setViewbox=olympe.G.H.ui.P.Wi.prototype.vy;olympe.G.H.ui.P.Wi.prototype.getSvgDefsElement=olympe.G.H.ui.P.Wi.prototype.Fk;olympe.host.Zc.register(olympe.host.ab.jb.XM,olympe.G.H.ui.P.Wi);olympe.G.H.ui.P.Wi.Aa=[olympe.N.P.Ei];olympe.G.H.ui.P.Me=class extends olympe.G.H.ui.zf{constructor(a,b,c){super(a,b);this.C=c;this.W=this.parent=null;this.id='';this.C&&this.Ks('auto')}ua(){return this.C}Fk(){return this.W?this.W.Fk():null}setAttribute(a,b,c){c?this.ua().setAttributeNS(c||'',a,String(b)):this.ua().setAttribute(a,String(b))}lv(a){this.setAttribute('id',this.id=a)}ja(){this.id||this.lv(this.uid);return this.id}Ff(a){this.parent=a}getParent(){return this.parent}Qf(a){this.W=a}Jo(){return this.W}destroy(){this.parent&&(this.parent=
1216
1216
  null);if(this.C){const a=this.C.parentNode;a&&a.removeChild(this.C)}}ib(a,b){this.ua().style[a]=b}Bh(a){this.Ks(a?'none':'auto')}Ks(a){this.ib('pointer-events',a)}rd(a){this.ib('display',a?'none':'initial')}};olympe.G.H.ui.P.Me.prototype.setHidden=olympe.G.H.ui.P.Me.prototype.rd;olympe.G.H.ui.P.Me.prototype.setPointerEvents=olympe.G.H.ui.P.Me.prototype.Ks;olympe.G.H.ui.P.Me.prototype.setIgnoreUserInteraction=olympe.G.H.ui.P.Me.prototype.Bh;olympe.G.H.ui.P.Me.prototype.destroy=olympe.G.H.ui.P.Me.prototype.destroy;
1217
- olympe.G.H.ui.P.Me.prototype.getContainer=olympe.G.H.ui.P.Me.prototype.Jo;olympe.G.H.ui.P.Me.prototype.setContainer=olympe.G.H.ui.P.Me.prototype.Pf;olympe.G.H.ui.P.Me.prototype.getParent=olympe.G.H.ui.P.Me.prototype.getParent;olympe.G.H.ui.P.Me.prototype.setParent=olympe.G.H.ui.P.Me.prototype.Ff;olympe.G.H.ui.P.Me.prototype.getId=olympe.G.H.ui.P.Me.prototype.ja;olympe.G.H.ui.P.Me.prototype.setId=olympe.G.H.ui.P.Me.prototype.lv;olympe.G.H.ui.P.Me.prototype.setAttribute=olympe.G.H.ui.P.Me.prototype.setAttribute;
1217
+ olympe.G.H.ui.P.Me.prototype.getContainer=olympe.G.H.ui.P.Me.prototype.Jo;olympe.G.H.ui.P.Me.prototype.setContainer=olympe.G.H.ui.P.Me.prototype.Qf;olympe.G.H.ui.P.Me.prototype.getParent=olympe.G.H.ui.P.Me.prototype.getParent;olympe.G.H.ui.P.Me.prototype.setParent=olympe.G.H.ui.P.Me.prototype.Ff;olympe.G.H.ui.P.Me.prototype.getId=olympe.G.H.ui.P.Me.prototype.ja;olympe.G.H.ui.P.Me.prototype.setId=olympe.G.H.ui.P.Me.prototype.lv;olympe.G.H.ui.P.Me.prototype.setAttribute=olympe.G.H.ui.P.Me.prototype.setAttribute;
1218
1218
  olympe.G.H.ui.P.Me.prototype.getSvgDefsElement=olympe.G.H.ui.P.Me.prototype.Fk;olympe.G.H.ui.P.Me.prototype.getHtmlElement=olympe.G.H.ui.P.Me.prototype.ua;olympe.G.H.ui.P.Me.Aa=[olympe.N.P.Ae];olympe.G.H.ui.P.te=class extends olympe.G.H.ui.P.Me{constructor(a,b,c){super(a,b,c);this.y=this.x=0;this.ca=this.height=this.width=1;this.T=this.R=!1}se(a){this.x=a;this.R=!0;this.je()}oa(){return this.x}Ie(a){this.y=a;this.R=!0;this.je()}sa(){return this.y}setPosition(a,b){this.x=a;this.y=b;this.R=!0;this.je()}Dg(a){this.height=a;this.T=!0;this.je()}Ge(){return this.height}Fg(a){this.width=a;this.T=!0;this.je()}Gd(){return this.width}setScale(a){this.ca=a;this.je()}tq(){return this.ca}Hb(a,b){this.width=
1219
1219
  a;this.height=b;this.T=!0;this.je()}Ux(a,b,c,d){let e=!1;void 0===a||this.R||(this.x=a,this.y=b||0,e=!0);void 0===c||this.T||(this.width=c,this.height=d||0,e=!0);e&&this.je()}je(){this.setAttribute('x',this.x);this.setAttribute('y',this.y);this.setAttribute('width',this.width);this.setAttribute('height',this.height);this.setAttribute('transform','scale('+this.ca+')')}};olympe.G.H.ui.P.te.prototype.refreshBox=olympe.G.H.ui.P.te.prototype.je;olympe.G.H.ui.P.te.prototype.setDefaultBox=olympe.G.H.ui.P.te.prototype.Ux;
1220
1220
  olympe.G.H.ui.P.te.prototype.setDimension=olympe.G.H.ui.P.te.prototype.Hb;olympe.G.H.ui.P.te.prototype.getScale=olympe.G.H.ui.P.te.prototype.tq;olympe.G.H.ui.P.te.prototype.setScale=olympe.G.H.ui.P.te.prototype.setScale;olympe.G.H.ui.P.te.prototype.getWidth=olympe.G.H.ui.P.te.prototype.Gd;olympe.G.H.ui.P.te.prototype.setWidth=olympe.G.H.ui.P.te.prototype.Fg;olympe.G.H.ui.P.te.prototype.getHeight=olympe.G.H.ui.P.te.prototype.Ge;olympe.G.H.ui.P.te.prototype.setHeight=olympe.G.H.ui.P.te.prototype.Dg;
@@ -1223,7 +1223,7 @@ olympe.G.H.ui.P.te.prototype.setPosition=olympe.G.H.ui.P.te.prototype.setPositio
1223
1223
  d){this.strokeOpacity=d;this.setAttribute('stroke',this.strokeColor='rgb('+a+','+b+','+c+')');this.setAttribute('stroke-opacity',this.strokeOpacity)}sy(a){this.vQ=a;this.setAttribute('stroke-dasharray',this.vQ)}qy(a){this.uQ=a;this.setAttribute('stroke-dashoffset',this.uQ)}ty(a){this.strokeLinecap=a;this.setAttribute('stroke-linecap',this.strokeLinecap)}vv(a){this.strokeWidth=a;this.je()}dn(){return Math.min(this.strokeWidth,this.ux())}Es(a){this.filter=a;this.setAttribute('filter','url(#'+this.filter.ja()+
1224
1224
  ')');this.Tr()}Cy(){if(this.filter)try{const a=this.filter.ua(),b=this.Fk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the filter, has probably already been removed')}finally{this.ua().removeAttribute('filter'),this.filter=null}}hy(a){this.Xj=a;this.setAttribute('mask','url(#'+a.ja()+')');this.Tr()}Ey(){if(this.Xj)try{const a=this.Xj.ua(),b=this.Fk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the mask, has probably already been removed')}finally{this.ua().removeAttribute('mask'),
1225
1225
  this.Xj=null}}jv(a){this.ms=a;this.setAttribute('fill','url(#'+this.ms.ja()+')');this.Tr()}Dy(){if(this.ms)try{const a=this.ms.ua(),b=this.Fk();b&&a.parentNode===b&&b.removeChild(a)}catch(a){this.V.debug('Not able to remove the gradient, has probably already been removed')}finally{this.ua().removeAttribute('gradient'),this.ms=null}}Jw(a,b,c,d='linear',e='indefinite'){const f=document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'animate');f.setAttribute('attributeName',a);f.setAttribute('values',b);f.setAttribute('dur',
1226
- c);f.setAttribute('calcMode',d);f.setAttribute('repeatCount',e);this.ua().appendChild(f)}Pf(a){const b=this.Jo();super.Pf(a);a&&a!==b&&this.Tr()}Tr(){const a=this.Fk();var b=[this.filter,this.Xj,this.ms];if(a)for(const c of b)c&&(b=c.ua(),a!==b.parentNode&&a.appendChild(b))}Ca(){this.Cg||(this.Cg=new olympe.G.H.ui.Na.Kc(this.ua()),this.yg&&(this.yg.qa=this.Cg));return this.Cg}rb(){this.yg||(this.yg=new olympe.G.H.ui.Na.ye(this.ua()),this.Cg&&(this.yg.qa=this.Cg));return this.yg}rn(a){this.ib('cursor',
1226
+ c);f.setAttribute('calcMode',d);f.setAttribute('repeatCount',e);this.ua().appendChild(f)}Qf(a){const b=this.Jo();super.Qf(a);a&&a!==b&&this.Tr()}Tr(){const a=this.Fk();var b=[this.filter,this.Xj,this.ms];if(a)for(const c of b)c&&(b=c.ua(),a!==b.parentNode&&a.appendChild(b))}Ca(){this.Cg||(this.Cg=new olympe.G.H.ui.Na.Kc(this.ua()),this.yg&&(this.yg.qa=this.Cg));return this.Cg}rb(){this.yg||(this.yg=new olympe.G.H.ui.Na.ye(this.ua()),this.Cg&&(this.yg.qa=this.Cg));return this.yg}rn(a){this.ib('cursor',
1227
1227
  'pointer');return this.Ca().rn(a)}Xl(){this.ib('cursor','default');return this.Ca().Xl()}sn(a){return this.Ca().sn(a)}Yl(){return this.Ca().Yl()}tn(a){return this.Ca().tn(a)}Zl(){return this.Ca().Zl()}yn(a){return this.Ca().yn(a)}em(){return this.Ca().em()}wn(a){return this.Ca().wn(a)}bm(){return this.Ca().bm()}xn(a){return this.Ca().xn(a)}cm(){return this.Ca().cm()}un(a){return this.Ca().un(a)}$l(){return this.Ca().$l()}vn(a){return this.Ca().vn(a)}am(){return this.Ca().am()}zn(a){return this.Ca().zn(a)}fm(){return this.Ca().fm()}Dn(a){return this.Ca().Dn(a)}Tn(){return this.Ca().Tn()}Bn(a){return this.Ca().Bn(a)}Rn(){return this.Ca().Rn()}Cn(a){return this.Ca().Cn(a)}Sn(){return this.Ca().Sn()}An(a){return this.Ca().An(a)}Qn(){return this.Ca().Qn()}kp(a){return this.rb().kp(a)}Ln(){return this.rb().Ln()}qp(a){return this.rb().qp(a)}Vn(){return this.rb().Vn()}jp(a){return this.rb().jp(a)}Kn(){return this.rb().Kn()}pp(a){return this.rb().pp(a)}Un(){return this.rb().Un()}lp(a,
1228
1228
  b){return this.rb().lp(a,b)}Mn(){return this.rb().Mn()}Uq(a,b){return this.rb().Uq(a,b)}Nn(){return this.rb().Nn()}np(a){return this.rb().np(a)}Pn(){return this.rb().Pn()}mp(a){return this.rb().mp(a)}On(){return this.rb().On()}};olympe.G.H.ui.P.Ia.prototype.unregisterPinch=olympe.G.H.ui.P.Ia.prototype.On;olympe.G.H.ui.P.Ia.prototype.registerPinch=olympe.G.H.ui.P.Ia.prototype.mp;olympe.G.H.ui.P.Ia.prototype.unregisterRotate=olympe.G.H.ui.P.Ia.prototype.Pn;
1229
1229
  olympe.G.H.ui.P.Ia.prototype.registerRotate=olympe.G.H.ui.P.Ia.prototype.np;olympe.G.H.ui.P.Ia.prototype.unregisterLongPressUp=olympe.G.H.ui.P.Ia.prototype.Nn;olympe.G.H.ui.P.Ia.prototype.registerLongPressUp=olympe.G.H.ui.P.Ia.prototype.Uq;olympe.G.H.ui.P.Ia.prototype.unregisterLongPress=olympe.G.H.ui.P.Ia.prototype.Mn;olympe.G.H.ui.P.Ia.prototype.registerLongPress=olympe.G.H.ui.P.Ia.prototype.lp;olympe.G.H.ui.P.Ia.prototype.unregisterVerticalPan=olympe.G.H.ui.P.Ia.prototype.Un;
@@ -1232,14 +1232,14 @@ olympe.G.H.ui.P.Ia.prototype.registerHorizontalSwipe=olympe.G.H.ui.P.Ia.prototyp
1232
1232
  olympe.G.H.ui.P.Ia.prototype.registerTouchEnd=olympe.G.H.ui.P.Ia.prototype.Bn;olympe.G.H.ui.P.Ia.prototype.unregisterTouchStart=olympe.G.H.ui.P.Ia.prototype.Tn;olympe.G.H.ui.P.Ia.prototype.registerTouchStart=olympe.G.H.ui.P.Ia.prototype.Dn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseWheel=olympe.G.H.ui.P.Ia.prototype.fm;olympe.G.H.ui.P.Ia.prototype.registerMouseWheel=olympe.G.H.ui.P.Ia.prototype.zn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseLeave=olympe.G.H.ui.P.Ia.prototype.am;
1233
1233
  olympe.G.H.ui.P.Ia.prototype.registerMouseLeave=olympe.G.H.ui.P.Ia.prototype.vn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseEnter=olympe.G.H.ui.P.Ia.prototype.$l;olympe.G.H.ui.P.Ia.prototype.registerMouseEnter=olympe.G.H.ui.P.Ia.prototype.un;olympe.G.H.ui.P.Ia.prototype.unregisterMouseOver=olympe.G.H.ui.P.Ia.prototype.cm;olympe.G.H.ui.P.Ia.prototype.registerMouseOver=olympe.G.H.ui.P.Ia.prototype.xn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseMove=olympe.G.H.ui.P.Ia.prototype.bm;
1234
1234
  olympe.G.H.ui.P.Ia.prototype.registerMouseMove=olympe.G.H.ui.P.Ia.prototype.wn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseUp=olympe.G.H.ui.P.Ia.prototype.em;olympe.G.H.ui.P.Ia.prototype.registerMouseUp=olympe.G.H.ui.P.Ia.prototype.yn;olympe.G.H.ui.P.Ia.prototype.unregisterMouseDown=olympe.G.H.ui.P.Ia.prototype.Zl;olympe.G.H.ui.P.Ia.prototype.registerMouseDown=olympe.G.H.ui.P.Ia.prototype.tn;olympe.G.H.ui.P.Ia.prototype.unregisterDoubleClick=olympe.G.H.ui.P.Ia.prototype.Yl;
1235
- olympe.G.H.ui.P.Ia.prototype.registerDoubleClick=olympe.G.H.ui.P.Ia.prototype.sn;olympe.G.H.ui.P.Ia.prototype.unregisterClickOrTap=olympe.G.H.ui.P.Ia.prototype.Xl;olympe.G.H.ui.P.Ia.prototype.registerClickOrTap=olympe.G.H.ui.P.Ia.prototype.rn;olympe.G.H.ui.P.Ia.prototype.getGestureEvent=olympe.G.H.ui.P.Ia.prototype.rb;olympe.G.H.ui.P.Ia.prototype.getMouseEvent=olympe.G.H.ui.P.Ia.prototype.Ca;olympe.G.H.ui.P.Ia.prototype.setContainer=olympe.G.H.ui.P.Ia.prototype.Pf;
1235
+ olympe.G.H.ui.P.Ia.prototype.registerDoubleClick=olympe.G.H.ui.P.Ia.prototype.sn;olympe.G.H.ui.P.Ia.prototype.unregisterClickOrTap=olympe.G.H.ui.P.Ia.prototype.Xl;olympe.G.H.ui.P.Ia.prototype.registerClickOrTap=olympe.G.H.ui.P.Ia.prototype.rn;olympe.G.H.ui.P.Ia.prototype.getGestureEvent=olympe.G.H.ui.P.Ia.prototype.rb;olympe.G.H.ui.P.Ia.prototype.getMouseEvent=olympe.G.H.ui.P.Ia.prototype.Ca;olympe.G.H.ui.P.Ia.prototype.setContainer=olympe.G.H.ui.P.Ia.prototype.Qf;
1236
1236
  olympe.G.H.ui.P.Ia.prototype.addAnimation=olympe.G.H.ui.P.Ia.prototype.Jw;olympe.G.H.ui.P.Ia.prototype.unsetGradient=olympe.G.H.ui.P.Ia.prototype.Dy;olympe.G.H.ui.P.Ia.prototype.setGradient=olympe.G.H.ui.P.Ia.prototype.jv;olympe.G.H.ui.P.Ia.prototype.unsetMask=olympe.G.H.ui.P.Ia.prototype.Ey;olympe.G.H.ui.P.Ia.prototype.setMask=olympe.G.H.ui.P.Ia.prototype.hy;olympe.G.H.ui.P.Ia.prototype.unsetFilter=olympe.G.H.ui.P.Ia.prototype.Cy;olympe.G.H.ui.P.Ia.prototype.setFilter=olympe.G.H.ui.P.Ia.prototype.Es;
1237
1237
  olympe.G.H.ui.P.Ia.prototype.getStrokeWidth=olympe.G.H.ui.P.Ia.prototype.dn;olympe.G.H.ui.P.Ia.prototype.setStrokeWidth=olympe.G.H.ui.P.Ia.prototype.vv;olympe.G.H.ui.P.Ia.prototype.setStrokeLinecap=olympe.G.H.ui.P.Ia.prototype.ty;olympe.G.H.ui.P.Ia.prototype.setStrokeDashOffset=olympe.G.H.ui.P.Ia.prototype.qy;olympe.G.H.ui.P.Ia.prototype.setStrokeDashPattern=olympe.G.H.ui.P.Ia.prototype.sy;olympe.G.H.ui.P.Ia.prototype.setStrokeColorAndOpacity=olympe.G.H.ui.P.Ia.prototype.IB;
1238
1238
  olympe.G.H.ui.P.Ia.prototype.setStrokeOpacity=olympe.G.H.ui.P.Ia.prototype.xF;olympe.G.H.ui.P.Ia.prototype.setStrokeColor=olympe.G.H.ui.P.Ia.prototype.setStrokeColor;olympe.G.H.ui.P.Ia.prototype.setFillColorAndOpacity=olympe.G.H.ui.P.Ia.prototype.BB;olympe.G.H.ui.P.Ia.prototype.setFillOpacity=olympe.G.H.ui.P.Ia.prototype.mF;olympe.G.H.ui.P.Ia.prototype.setFillColor=olympe.G.H.ui.P.Ia.prototype.setFillColor;olympe.G.H.ui.P.Ia.prototype.setFilled=olympe.G.H.ui.P.Ia.prototype.Yx;
1239
1239
  olympe.G.H.ui.P.Ia.prototype.rotate=olympe.G.H.ui.P.Ia.prototype.rotate;olympe.G.H.ui.P.Ia.prototype.refreshBox=olympe.G.H.ui.P.Ia.prototype.je;olympe.G.H.ui.P.Ia.Aa=[olympe.N.P.pc];olympe.G.H.ui.P.HTMLFilter=class extends olympe.G.H.ui.P.te{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'filter'));this.children=new Map}Ri(a){this.setAttribute('filterUnits',a?'userSpaceOnUse':'objectBoundingBox')}addElement(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);this.children.get(b)&&this.Uu(b);this.children.set(b,a);this.ua().appendChild(a.ua());a.Ff(this)}Uu(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua()),
1240
1240
  b.Ff(null)}catch(c){this.tb().debug('Not able to remove a child, has probably already been removed')}finally{this.children.delete(a)}else this.tb().warn('Trying to remove a non existing child: '+a)}Mx(){this.children.clear();let a;const b=this.ua();for(;a=b.firstChild;)b.removeChild(a)}PP(a,b){this.ua().replaceChild(b,a)}je(){olympe.G.H.ui.P.te.prototype.je.call(this);const a=this.Gd(),b=this.Ge(),c=this.oa(),d=this.sa();for(const e of this.children.values())e.Ux(c,d,a,b)}};
1241
1241
  olympe.G.H.ui.P.HTMLFilter.prototype.refreshBox=olympe.G.H.ui.P.HTMLFilter.prototype.je;olympe.G.H.ui.P.HTMLFilter.prototype.replaceChildHtmlElement=olympe.G.H.ui.P.HTMLFilter.prototype.PP;olympe.G.H.ui.P.HTMLFilter.prototype.removeAllElements=olympe.G.H.ui.P.HTMLFilter.prototype.Mx;olympe.G.H.ui.P.HTMLFilter.prototype.removeElement=olympe.G.H.ui.P.HTMLFilter.prototype.Uu;olympe.G.H.ui.P.HTMLFilter.prototype.addElement=olympe.G.H.ui.P.HTMLFilter.prototype.addElement;
1242
- olympe.G.H.ui.P.HTMLFilter.prototype.setAbsolute=olympe.G.H.ui.P.HTMLFilter.prototype.Ri;olympe.host.Zc.register(olympe.host.ab.jb.CM,olympe.G.H.ui.P.HTMLFilter);olympe.G.H.ui.P.HTMLFilter.Aa=[olympe.N.P.Qf];olympe.G.H.ui.P.Jh=class extends olympe.G.H.ui.P.te{constructor(a,b,c){super(a,b,c);this.qa=null}lv(a){this.setAttribute('result',this.id=a)}qq(a){if(a instanceof olympe.G.H.ui.P.Jh)a=a.ja();else switch(a){case olympe.ui.ha.rt.YU:a='SourceGraphic';break;case olympe.ui.ha.rt.XU:a='SourceAlpha';break;case olympe.ui.ha.rt.OQ:a='BackgroundImage';break;case olympe.ui.ha.rt.NQ:a='BackgroundAlpha';break;case olympe.ui.ha.rt.FR:a='FillPaint';break;case olympe.ui.ha.rt.cV:a='StrokePaint';break;default:a=String(a)}return a}gk(a){this.qa=
1242
+ olympe.G.H.ui.P.HTMLFilter.prototype.setAbsolute=olympe.G.H.ui.P.HTMLFilter.prototype.Ri;olympe.host.Zc.register(olympe.host.ab.jb.CM,olympe.G.H.ui.P.HTMLFilter);olympe.G.H.ui.P.HTMLFilter.Aa=[olympe.N.P.Rf];olympe.G.H.ui.P.Jh=class extends olympe.G.H.ui.P.te{constructor(a,b,c){super(a,b,c);this.qa=null}lv(a){this.setAttribute('result',this.id=a)}qq(a){if(a instanceof olympe.G.H.ui.P.Jh)a=a.ja();else switch(a){case olympe.ui.ha.rt.YU:a='SourceGraphic';break;case olympe.ui.ha.rt.XU:a='SourceAlpha';break;case olympe.ui.ha.rt.OQ:a='BackgroundImage';break;case olympe.ui.ha.rt.NQ:a='BackgroundAlpha';break;case olympe.ui.ha.rt.FR:a='FillPaint';break;case olympe.ui.ha.rt.cV:a='StrokePaint';break;default:a=String(a)}return a}gk(a){this.qa=
1243
1243
  a}Mg(){return this.qa}};olympe.G.H.ui.P.Jh.prototype.getNext=olympe.G.H.ui.P.Jh.prototype.Mg;olympe.G.H.ui.P.Jh.prototype.setNext=olympe.G.H.ui.P.Jh.prototype.gk;olympe.G.H.ui.P.Jh.prototype.getFilterInput=olympe.G.H.ui.P.Jh.prototype.qq;olympe.G.H.ui.P.Jh.prototype.setId=olympe.G.H.ui.P.Jh.prototype.lv;olympe.G.H.ui.P.Jh.Aa=[olympe.N.P.Ig];olympe.G.H.ui.P.vt=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feGaussianBlur'));this.setAttribute('color-interpolation-filters','sRGB');this.amount=null}Nx(a){this.setAttribute('stdDeviation',this.amount=a)}nf(a){this.setAttribute('in',this.qq(a))}};olympe.G.H.ui.P.vt.prototype.setInput=olympe.G.H.ui.P.vt.prototype.nf;olympe.G.H.ui.P.vt.prototype.setAmount=olympe.G.H.ui.P.vt.prototype.Nx;
1244
1244
  olympe.host.Zc.register(olympe.host.ab.jb.DM,olympe.G.H.ui.P.vt);olympe.G.H.ui.P.vt.Aa=[olympe.N.P.Xn];olympe.G.H.ui.P.wt=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'circle'));this.D=1}je(){olympe.G.H.ui.P.Ia.prototype.je.call(this);this.setAttribute('r',this.D-this.dn()/2)}ux(){return this.D}setRadius(a){this.D=Math.abs(a);this.je()}};olympe.G.H.ui.P.wt.prototype.setRadius=olympe.G.H.ui.P.wt.prototype.setRadius;olympe.G.H.ui.P.wt.prototype.refreshBox=olympe.G.H.ui.P.wt.prototype.je;olympe.host.Zc.register(olympe.host.ab.jb.AM,olympe.G.H.ui.P.wt);
1245
1245
  olympe.G.H.ui.P.wt.Aa=[olympe.N.P.nm];olympe.G.H.ui.P.xt=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feColorMatrix'));this.setAttribute('type','matrix')}nf(a){this.setAttribute('in',this.qq(a))}setMatrix(a){a instanceof olympe.la.no&&(a=a.getStringValue());this.setAttribute('values',a)}};olympe.G.H.ui.P.xt.prototype.setMatrix=olympe.G.H.ui.P.xt.prototype.setMatrix;olympe.G.H.ui.P.xt.prototype.setInput=olympe.G.H.ui.P.xt.prototype.nf;
@@ -1249,14 +1249,14 @@ this.D?'mode':'operator',this.mode=a)}};olympe.G.H.ui.P.Kp.prototype.setMode=oly
1249
1249
  Math.abs(b);this.je()}};olympe.G.H.ui.P.sm.prototype.setRadius=olympe.G.H.ui.P.sm.prototype.setRadius;olympe.G.H.ui.P.sm.prototype.setRy=olympe.G.H.ui.P.sm.prototype.sF;olympe.G.H.ui.P.sm.prototype.setRx=olympe.G.H.ui.P.sm.prototype.rF;olympe.G.H.ui.P.sm.prototype.refreshBox=olympe.G.H.ui.P.sm.prototype.je;olympe.host.Zc.register(olympe.host.ab.jb.BM,olympe.G.H.ui.P.sm);olympe.G.H.ui.P.sm.Aa=[olympe.N.P.co];olympe.G.H.ui.P.Lp=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feFlood'));this.D=this.O=null}nF(a){this.O=a;this.setAttribute('flood-color',this.O)}pF(a){this.D=a;this.setAttribute('flood-opacity',this.D)}oF(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.Lp.prototype.setFloodColorAndOpacity=olympe.G.H.ui.P.Lp.prototype.oF;
1250
1250
  olympe.G.H.ui.P.Lp.prototype.setFloodOpacity=olympe.G.H.ui.P.Lp.prototype.pF;olympe.G.H.ui.P.Lp.prototype.setFloodColor=olympe.G.H.ui.P.Lp.prototype.nF;olympe.host.Zc.register(olympe.host.ab.jb.GM,olympe.G.H.ui.P.Lp);olympe.G.H.ui.P.Lp.Aa=[olympe.N.P.eo];olympe.G.H.ui.P.ho=class extends olympe.G.H.ui.P.Me{constructor(a,b,c){super(a,b,c);this.D=new Map}Ri(a){this.setAttribute('gradientUnits',a?'userSpaceOnUse':'objectBoundingBox')}Pw(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);this.D.has(b)&&this.Yu(b);this.D.set(b,a);this.ua().appendChild(a.ua())}Yu(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.D.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua())}catch(c){this.tb().debug('Not able to remove a child, has probably already been removed')}finally{this.D.delete(a)}else this.tb().warn('Trying to remove a non existing child: '+
1251
1251
  a)}};olympe.G.H.ui.P.ho.prototype.removeStop=olympe.G.H.ui.P.ho.prototype.Yu;olympe.G.H.ui.P.ho.prototype.addStop=olympe.G.H.ui.P.ho.prototype.Pw;olympe.G.H.ui.P.ho.prototype.setAbsolute=olympe.G.H.ui.P.ho.prototype.Ri;olympe.G.H.ui.P.ho.Aa=[olympe.N.P.Ih];olympe.G.H.ui.P.tm=class extends olympe.G.H.ui.P.Me{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'stop'));this.D=this.O=this.offset=null}jy(a){this.setAttribute('offset',this.offset=a)}vF(a){this.O=a;this.setAttribute('stop-color',this.O)}wF(a){this.D=a;this.setAttribute('stop-opacity',this.D)}HB(a,b,c,d){this.setAttribute('stop-color',this.O='rgb('+a+','+b+','+c+')');this.D=d;this.setAttribute('stop-opacity',this.D)}};
1252
- olympe.G.H.ui.P.tm.prototype.setStopColorAndOpacity=olympe.G.H.ui.P.tm.prototype.HB;olympe.G.H.ui.P.tm.prototype.setStopOpacity=olympe.G.H.ui.P.tm.prototype.wF;olympe.G.H.ui.P.tm.prototype.setStopColor=olympe.G.H.ui.P.tm.prototype.vF;olympe.G.H.ui.P.tm.prototype.setOffset=olympe.G.H.ui.P.tm.prototype.jy;olympe.host.Zc.register(olympe.host.ab.jb.KM,olympe.G.H.ui.P.tm);olympe.G.H.ui.P.tm.Aa=[olympe.N.P.Yk];olympe.G.H.ui.P.Mp=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'g'));this.children=new Map}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.jd.Hg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ua().appendChild(a.ua());a.setAttribute('name_As_A_Child',b);a.Ff(this);a.Pf(this.Jo())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua()),b.Ff(null),b.Pf(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: '+
1253
- a)}Pf(a){olympe.G.H.ui.P.Ia.prototype.Pf.call(this,a);for(const b of this.children.values())b.Pf(a)}};olympe.G.H.ui.P.Mp.prototype.setContainer=olympe.G.H.ui.P.Mp.prototype.Pf;olympe.G.H.ui.P.Mp.prototype.removeChild=olympe.G.H.ui.P.Mp.prototype.removeChild;olympe.G.H.ui.P.Mp.prototype.appendChild=olympe.G.H.ui.P.Mp.prototype.appendChild;olympe.host.Zc.register(olympe.host.ab.jb.LM,olympe.G.H.ui.P.Mp);olympe.G.H.ui.P.Mp.Aa=[olympe.N.P.kr];function xh(a){let b;switch(a.D){case olympe.ui.ha.My.et:b=yh(a)+' meet';break;case olympe.ui.ha.My.ft:b=yh(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function yh(a){let b='';switch(a.O){case olympe.ui.ha.Cb.Tf:b+='xMin';break;case olympe.ui.ha.Cb.Di:b+='xMax';break;default:b+='xMid'}switch(a.$){case olympe.ui.ha.wc.lh:b+='YMin';break;case olympe.ui.ha.wc.Dh:b+='YMax';break;default:b+='YMid'}return b}
1252
+ olympe.G.H.ui.P.tm.prototype.setStopColorAndOpacity=olympe.G.H.ui.P.tm.prototype.HB;olympe.G.H.ui.P.tm.prototype.setStopOpacity=olympe.G.H.ui.P.tm.prototype.wF;olympe.G.H.ui.P.tm.prototype.setStopColor=olympe.G.H.ui.P.tm.prototype.vF;olympe.G.H.ui.P.tm.prototype.setOffset=olympe.G.H.ui.P.tm.prototype.jy;olympe.host.Zc.register(olympe.host.ab.jb.KM,olympe.G.H.ui.P.tm);olympe.G.H.ui.P.tm.Aa=[olympe.N.P.Yk];olympe.G.H.ui.P.Mp=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'g'));this.children=new Map}appendChild(a,b){b=null!=b?b:olympe.G.H.ui.P.jd.Hg;this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ua().appendChild(a.ua());a.setAttribute('name_As_A_Child',b);a.Ff(this);a.Qf(this.Jo())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua()),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: '+
1253
+ a)}Qf(a){olympe.G.H.ui.P.Ia.prototype.Qf.call(this,a);for(const b of this.children.values())b.Qf(a)}};olympe.G.H.ui.P.Mp.prototype.setContainer=olympe.G.H.ui.P.Mp.prototype.Qf;olympe.G.H.ui.P.Mp.prototype.removeChild=olympe.G.H.ui.P.Mp.prototype.removeChild;olympe.G.H.ui.P.Mp.prototype.appendChild=olympe.G.H.ui.P.Mp.prototype.appendChild;olympe.host.Zc.register(olympe.host.ab.jb.LM,olympe.G.H.ui.P.Mp);olympe.G.H.ui.P.Mp.Aa=[olympe.N.P.kr];function xh(a){let b;switch(a.D){case olympe.ui.ha.My.et:b=yh(a)+' meet';break;case olympe.ui.ha.My.ft:b=yh(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function yh(a){let b='';switch(a.O){case olympe.ui.ha.Cb.Uf:b+='xMin';break;case olympe.ui.ha.Cb.Di:b+='xMax';break;default:b+='xMid'}switch(a.$){case olympe.ui.ha.wc.lh:b+='YMin';break;case olympe.ui.ha.wc.Dh:b+='YMax';break;default:b+='YMid'}return b}
1254
1254
  olympe.G.H.ui.P.lk=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'image'));this.$=this.O=this.D=this.source=''}je(){super.je();this.setAttribute('width',this.Gd());this.setAttribute('height',this.Ge())}re(a){this.setAttribute('xlink:href',this.source=a,olympe.G.H.ui.P.jd.Ne.RB)}Ql(a){this.D=a;xh(this)}Rl(a){this.O=a;xh(this)}Vl(a){this.$=a;xh(this)}};olympe.G.H.ui.P.lk.prototype.setVerticalAlignment=olympe.G.H.ui.P.lk.prototype.Vl;
1255
- olympe.G.H.ui.P.lk.prototype.setHorizontalAlignment=olympe.G.H.ui.P.lk.prototype.Rl;olympe.G.H.ui.P.lk.prototype.setAspectRatioMode=olympe.G.H.ui.P.lk.prototype.Ql;olympe.G.H.ui.P.lk.prototype.setSource=olympe.G.H.ui.P.lk.prototype.re;olympe.G.H.ui.P.lk.prototype.refreshBox=olympe.G.H.ui.P.lk.prototype.je;olympe.host.Zc.register(olympe.host.ab.jb.MM,olympe.G.H.ui.P.lk);olympe.G.H.ui.P.lk.Aa=[olympe.N.P.Image];function zh(a){let b;switch(a.D){case olympe.ui.ha.My.et:b=Ah(a)+' meet';break;case olympe.ui.ha.My.ft:b=Ah(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function Ah(a){let b='';switch(a.O){case olympe.ui.ha.Cb.Tf:b+='xMin';break;case olympe.ui.ha.Cb.Di:b+='xMax';break;default:b+='xMid'}switch(a.$){case olympe.ui.ha.wc.lh:b+='YMin';break;case olympe.ui.ha.wc.Dh:b+='YMax';break;default:b+='YMid'}return b}
1255
+ olympe.G.H.ui.P.lk.prototype.setHorizontalAlignment=olympe.G.H.ui.P.lk.prototype.Rl;olympe.G.H.ui.P.lk.prototype.setAspectRatioMode=olympe.G.H.ui.P.lk.prototype.Ql;olympe.G.H.ui.P.lk.prototype.setSource=olympe.G.H.ui.P.lk.prototype.re;olympe.G.H.ui.P.lk.prototype.refreshBox=olympe.G.H.ui.P.lk.prototype.je;olympe.host.Zc.register(olympe.host.ab.jb.MM,olympe.G.H.ui.P.lk);olympe.G.H.ui.P.lk.Aa=[olympe.N.P.Image];function zh(a){let b;switch(a.D){case olympe.ui.ha.My.et:b=Ah(a)+' meet';break;case olympe.ui.ha.My.ft:b=Ah(a)+' slice';break;default:b='none'}a.setAttribute('preserveAspectRatio',b)}function Ah(a){let b='';switch(a.O){case olympe.ui.ha.Cb.Uf:b+='xMin';break;case olympe.ui.ha.Cb.Di:b+='xMax';break;default:b+='xMid'}switch(a.$){case olympe.ui.ha.wc.lh:b+='YMin';break;case olympe.ui.ha.wc.Dh:b+='YMax';break;default:b+='YMid'}return b}
1256
1256
  olympe.G.H.ui.P.um=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feImage'));this.$=this.O=this.D=this.source=''}re(a){this.source=a;this.setAttribute('xlink:href',this.source,olympe.G.H.ui.P.jd.Ne.RB)}Ql(a){this.D=a;zh(this)}Rl(a){this.O=a;zh(this)}Vl(a){this.$=a;zh(this)}};olympe.G.H.ui.P.um.prototype.setVerticalAlignment=olympe.G.H.ui.P.um.prototype.Vl;olympe.G.H.ui.P.um.prototype.setHorizontalAlignment=olympe.G.H.ui.P.um.prototype.Rl;
1257
1257
  olympe.G.H.ui.P.um.prototype.setAspectRatioMode=olympe.G.H.ui.P.um.prototype.Ql;olympe.G.H.ui.P.um.prototype.setSource=olympe.G.H.ui.P.um.prototype.re;olympe.host.Zc.register(olympe.host.ab.jb.HM,olympe.G.H.ui.P.um);olympe.G.H.ui.P.um.Aa=[olympe.N.P.$k];olympe.G.H.ui.P.Ui=class extends olympe.G.H.ui.P.ho{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'linearGradient'))}AF(a){this.setAttribute('x1',a)}GF(a){this.setAttribute('y1',a)}ky(a,b){this.setAttribute('x1',a);this.setAttribute('y1',b)}BF(a){this.setAttribute('x2',a)}HF(a){this.setAttribute('y2',a)}ly(a,b){this.setAttribute('x2',a);this.setAttribute('y2',b)}};olympe.G.H.ui.P.Ui.prototype.setPoint2=olympe.G.H.ui.P.Ui.prototype.ly;
1258
- olympe.G.H.ui.P.Ui.prototype.setY2=olympe.G.H.ui.P.Ui.prototype.HF;olympe.G.H.ui.P.Ui.prototype.setX2=olympe.G.H.ui.P.Ui.prototype.BF;olympe.G.H.ui.P.Ui.prototype.setPoint=olympe.G.H.ui.P.Ui.prototype.ky;olympe.G.H.ui.P.Ui.prototype.setY1=olympe.G.H.ui.P.Ui.prototype.GF;olympe.G.H.ui.P.Ui.prototype.setX1=olympe.G.H.ui.P.Ui.prototype.AF;olympe.host.Zc.register(olympe.host.ab.jb.NM,olympe.G.H.ui.P.Ui);olympe.G.H.ui.P.Ui.Aa=[olympe.N.P.xi];olympe.G.H.ui.P.vm=class extends olympe.G.H.ui.P.te{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'mask'));this.children=new Map}appendChild(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ua().appendChild(a.ua());a.Ff(this);a.setAttribute('name_As_A_Child',b);a.Pf(this.Jo())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);let b=this.children.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua()),b.Ff(null),b.Pf(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: '+
1259
- a)}Ri(a){this.setAttribute('maskUnits',a?'userSpaceOnUse':'objectBoundingBox')}Pf(a){olympe.G.H.ui.P.Ia.prototype.Pf.call(this,a);for(const b of this.children.values())b.Pf(a)}};olympe.G.H.ui.P.vm.prototype.setContainer=olympe.G.H.ui.P.vm.prototype.Pf;olympe.G.H.ui.P.vm.prototype.setAbsolute=olympe.G.H.ui.P.vm.prototype.Ri;olympe.G.H.ui.P.vm.prototype.removeChild=olympe.G.H.ui.P.vm.prototype.removeChild;olympe.G.H.ui.P.vm.prototype.appendChild=olympe.G.H.ui.P.vm.prototype.appendChild;
1258
+ olympe.G.H.ui.P.Ui.prototype.setY2=olympe.G.H.ui.P.Ui.prototype.HF;olympe.G.H.ui.P.Ui.prototype.setX2=olympe.G.H.ui.P.Ui.prototype.BF;olympe.G.H.ui.P.Ui.prototype.setPoint=olympe.G.H.ui.P.Ui.prototype.ky;olympe.G.H.ui.P.Ui.prototype.setY1=olympe.G.H.ui.P.Ui.prototype.GF;olympe.G.H.ui.P.Ui.prototype.setX1=olympe.G.H.ui.P.Ui.prototype.AF;olympe.host.Zc.register(olympe.host.ab.jb.NM,olympe.G.H.ui.P.Ui);olympe.G.H.ui.P.Ui.Aa=[olympe.N.P.xi];olympe.G.H.ui.P.vm=class extends olympe.G.H.ui.P.te{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'mask'));this.children=new Map}appendChild(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);this.children.has(b)&&this.removeChild(b);this.children.set(b,a);this.ua().appendChild(a.ua());a.Ff(this);a.setAttribute('name_As_A_Child',b);a.Qf(this.Jo())}removeChild(a){a||(a=olympe.G.H.ui.P.jd.Hg);let b=this.children.get(a);if(void 0!==b)try{this.ua().removeChild(b.ua()),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: '+
1259
+ a)}Ri(a){this.setAttribute('maskUnits',a?'userSpaceOnUse':'objectBoundingBox')}Qf(a){olympe.G.H.ui.P.Ia.prototype.Qf.call(this,a);for(const b of this.children.values())b.Qf(a)}};olympe.G.H.ui.P.vm.prototype.setContainer=olympe.G.H.ui.P.vm.prototype.Qf;olympe.G.H.ui.P.vm.prototype.setAbsolute=olympe.G.H.ui.P.vm.prototype.Ri;olympe.G.H.ui.P.vm.prototype.removeChild=olympe.G.H.ui.P.vm.prototype.removeChild;olympe.G.H.ui.P.vm.prototype.appendChild=olympe.G.H.ui.P.vm.prototype.appendChild;
1260
1260
  olympe.host.Zc.register(olympe.host.ab.jb.OM,olympe.G.H.ui.P.vm);olympe.G.H.ui.P.vm.Aa=[olympe.N.P.mo];olympe.G.H.ui.P.Op=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feMerge'));this.children=new Map}Mw(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);this.children.has(b)&&this.Wu(b);const c=document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feMergeNode');c.setAttributeNS('','in',this.qq(a));this.children.set(b,c);this.ua().appendChild(c)}Wu(a){a||(a=olympe.G.H.ui.P.jd.Hg);const b=this.children.get(a);if(b)try{this.ua().removeChild(b)}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: '+
1261
1261
  a)}nf(a,b){b||(b=olympe.G.H.ui.P.jd.Hg);const c=this.children.get(b);c?c.setAttributeNS('','in',this.qq(a)):this.Mw(a,b)}};olympe.G.H.ui.P.Op.prototype.setInput=olympe.G.H.ui.P.Op.prototype.nf;olympe.G.H.ui.P.Op.prototype.removeInput=olympe.G.H.ui.P.Op.prototype.Wu;olympe.G.H.ui.P.Op.prototype.addInput=olympe.G.H.ui.P.Op.prototype.Mw;olympe.host.Zc.register(olympe.host.ab.jb.IM,olympe.G.H.ui.P.Op);olympe.G.H.ui.P.Op.Aa=[olympe.N.P.oo];olympe.G.H.ui.P.wm=class extends olympe.G.H.ui.P.Jh{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'feOffset'))}kF(a){this.setAttribute('dx',a)}lF(a){this.setAttribute('dy',a)}Wx(a,b){this.setAttribute('dx',a);this.setAttribute('dy',b)}nf(a){this.setAttribute('in',this.qq(a))}};olympe.G.H.ui.P.wm.prototype.setInput=olympe.G.H.ui.P.wm.prototype.nf;olympe.G.H.ui.P.wm.prototype.setDelta=olympe.G.H.ui.P.wm.prototype.Wx;olympe.G.H.ui.P.wm.prototype.setDeltaY=olympe.G.H.ui.P.wm.prototype.lF;
1262
1262
  olympe.G.H.ui.P.wm.prototype.setDeltaX=olympe.G.H.ui.P.wm.prototype.kF;olympe.host.Zc.register(olympe.host.ab.jb.JM,olympe.G.H.ui.P.wm);olympe.G.H.ui.P.wm.Aa=[olympe.N.P.el];function Bh(a){let b='',c=a.firstChild;const d=a.oa(),e=a.sa();for(c instanceof olympe.G.H.ui.P.Zv||(b='M'+d+','+e);c;)b+=' '+c.gj(d,e),c=c.Mg();b&&(b+=a.closePath?'Z':'');a.setAttribute('d',b)}
@@ -1271,7 +1271,7 @@ olympe.G.H.ui.P.xm.prototype.setXControl=olympe.G.H.ui.P.xm.prototype.CF;olympe.
1271
1271
  olympe.host.Zc.register(olympe.host.ab.jb.VM,olympe.G.H.ui.P.Pp);olympe.G.H.ui.P.Pp.Aa=[olympe.N.P.vo];olympe.G.H.ui.P.zt=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'rect'))}JE(){const a=this.dn();return Ya(this.oa()+a/2,this.sa()+a/2)}ux(){return Math.min(this.Gd()/2,this.Ge()/2)}je(){olympe.G.H.ui.P.Ia.prototype.je.call(this);const a=this.dn(),b=this.Gd(),c=this.Ge();this.setAttribute('height',c-a);this.setAttribute('width',b-a);this.filter&&this.filter.Ux(-a/2,-a/2,b,c)}Xb(a){this.setAttribute('rx',a);this.setAttribute('ry',a)}};
1272
1272
  olympe.G.H.ui.P.zt.prototype.setCornerRadius=olympe.G.H.ui.P.zt.prototype.Xb;olympe.G.H.ui.P.zt.prototype.refreshBox=olympe.G.H.ui.P.zt.prototype.je;olympe.host.Zc.register(olympe.host.ab.jb.WM,olympe.G.H.ui.P.zt);olympe.G.H.ui.P.zt.Aa=[olympe.N.P.ze];function Dh(a){null!==a.$&&a.Jo()&&setTimeout(()=>{const b=a.ua().getBBox();a.$(b.width,b.height)},0)}
1273
1273
  olympe.G.H.ui.P.hh=class extends olympe.G.H.ui.P.Ia{constructor(a,b){super(a,b,document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'text'));this.qa=this.fa=this.text=this.fontSize=null;this.O='inherit';this.$=null}sb(a){this.fontSize=a;this.setAttribute('font-size',this.fontSize);Dh(this)}Jb(a){this.text=a;this.ua().textContent=this.text;this.setAttribute('text',this.text);Dh(this)}wb(a){this.fa=a;this.setAttribute('font-family',this.fa);Dh(this)}Bb(a){this.qa=a;this.setAttribute('font-weight',this.qa);
1274
- Dh(this)}ay(a){switch(a){case olympe.ui.ha.Cb.Tb:this.O='middle';break;case olympe.ui.ha.Cb.Di:this.O='end';break;default:this.O='left'}this.setAttribute('text-anchor',this.O)}Pf(a){olympe.G.H.ui.P.Ia.prototype.Pf.call(this,a);Dh(this)}op(a){this.$=a;Dh(this)}Zq(){this.$=null}};olympe.G.H.ui.P.hh.prototype.unregisterTextSize=olympe.G.H.ui.P.hh.prototype.Zq;olympe.G.H.ui.P.hh.prototype.registerTextSize=olympe.G.H.ui.P.hh.prototype.op;olympe.G.H.ui.P.hh.prototype.setContainer=olympe.G.H.ui.P.hh.prototype.Pf;
1274
+ Dh(this)}ay(a){switch(a){case olympe.ui.ha.Cb.Tb:this.O='middle';break;case olympe.ui.ha.Cb.Di:this.O='end';break;default:this.O='left'}this.setAttribute('text-anchor',this.O)}Qf(a){olympe.G.H.ui.P.Ia.prototype.Qf.call(this,a);Dh(this)}op(a){this.$=a;Dh(this)}Zq(){this.$=null}};olympe.G.H.ui.P.hh.prototype.unregisterTextSize=olympe.G.H.ui.P.hh.prototype.Zq;olympe.G.H.ui.P.hh.prototype.registerTextSize=olympe.G.H.ui.P.hh.prototype.op;olympe.G.H.ui.P.hh.prototype.setContainer=olympe.G.H.ui.P.hh.prototype.Qf;
1275
1275
  olympe.G.H.ui.P.hh.prototype.setHorizontalAlign=olympe.G.H.ui.P.hh.prototype.ay;olympe.G.H.ui.P.hh.prototype.setFontWeight=olympe.G.H.ui.P.hh.prototype.Bb;olympe.G.H.ui.P.hh.prototype.setFontFamily=olympe.G.H.ui.P.hh.prototype.wb;olympe.G.H.ui.P.hh.prototype.setText=olympe.G.H.ui.P.hh.prototype.Jb;olympe.G.H.ui.P.hh.prototype.setFontSize=olympe.G.H.ui.P.hh.prototype.sb;olympe.host.Zc.register(olympe.host.ab.jb.YM,olympe.G.H.ui.P.hh);olympe.G.H.ui.P.hh.Aa=[olympe.N.P.Text];olympe.G.H.ui.P.Qp=class extends olympe.G.H.ui.P.hh{constructor(a,b){super(a,b);this.path=null;this.D=document.createElementNS(olympe.G.H.ui.P.jd.Ne.Hf,'textPath');this.ua().appendChild(this.D)}Js(a){this.path=a;this.D.setAttributeNS(olympe.G.H.ui.P.jd.Ne.RB,'xlink:href','#'+this.path.ja());a=this.Fk();const b=this.path.ua();a&&b.parentNode!==a&&a.appendChild(b)}Jb(a){let b;for(;b=this.D.firstChild;)this.D.removeChild(b);this.D.appendChild(document.createTextNode(a))}Tr(){olympe.G.H.ui.P.Ia.prototype.Tr.call(this);
1276
1276
  if(this.path){const a=this.Fk();a&&a.appendChild(this.path.ua())}}};olympe.G.H.ui.P.Qp.prototype.appendDefs=olympe.G.H.ui.P.Qp.prototype.Tr;olympe.G.H.ui.P.Qp.prototype.setText=olympe.G.H.ui.P.Qp.prototype.Jb;olympe.G.H.ui.P.Qp.prototype.setPath=olympe.G.H.ui.P.Qp.prototype.Js;olympe.host.Zc.register(olympe.host.ab.jb.ZM,olympe.G.H.ui.P.Qp);olympe.G.H.ui.P.Qp.Aa=[olympe.N.P.Ew];olympe.G.H.Dc={};function Eh(a){switch(a.state){case olympe.G.H.Dc.ih.C.CLOSING:case olympe.G.H.Dc.ih.C.OPEN:return a.state=olympe.G.H.Dc.ih.C.OPEN,Promise.resolve();case olympe.G.H.Dc.ih.C.Iz:break;case olympe.G.H.Dc.ih.C.CLOSED:a.V.debug(`Opening DB ${a.W}`);a.state=olympe.G.H.Dc.ih.C.Iz;let b=Promise.resolve();const c=indexedDB.open(a.W,a.Da);c.onerror=()=>{a.V.error(`Failed to open DB with code: ${c.error}`);for(const d of a.D)d(c.error);a.D=[]};c.onblocked=()=>{a.V.error('Database blocked')};c.onupgradeneeded=
1277
1277
  ()=>{const d=c.result;a.V.debug(`Upgrading DB ${a.W} to version ${a.Da}`);b=a.update(d)};c.onsuccess=()=>{a.db=c.result;a.state===olympe.G.H.Dc.ih.C.Iz&&(a.state=olympe.G.H.Dc.ih.C.OPEN);b.then(()=>{for(const d of a.D)d(null)}).catch(d=>{for(const e of a.D)e(d)}).finally(()=>{a.D=[]})};break;default:a.V.error('DB is in invalid state, it should never happen')}return new Promise((b,c)=>{a.D.push(d=>d?c(d):b())})}
@@ -1287,34 +1287,34 @@ return q(function*(){if(!1===(null==b?void 0:b.ud)){(null==b?0:b.Ed)&&c.V.trace(
1287
1287
  c.V.trace(`Operation ${b.Ed} ran immediately has resolved`);return d}).catch(d=>{(null==b?0:b.Ed)&&c.V.trace(`Operation ${b.Ed} ran immediately has been rejected with message: ${d}`);throw d;})}(null==b?0:b.Ed)&&c.V.trace(`Adding operation ${b.Ed} to the stack`);return((null==b?0:b.Wj)?c.stack.W:c.stack.T).call(c.stack,()=>q(function*(){yield Eh(c);const d=yield a();0===c.stack.size()&&(yield c.close());return d}))})}};olympe.G.H.Dc.ih.C={CLOSED:0,Iz:1,OPEN:2,CLOSING:3};olympe.G.H.Dc.ih.Aa=[olympe.Dc.rT];olympe.G.H.Dc.eI=class{constructor(a){this.C=new Map;this.V=a}D(a,b,c){if(!c)throw Error(`Missing mandatory "update" method when calling "getDatabase('${a}', ${b})"`);this.C.has(a)||this.C.set(a,new olympe.G.H.Dc.ih(a,b,this.V,c));return this.C.get(a)}};olympe.G.H.Dc.eI.Aa=[olympe.Dc.sT];function Fh(a,b,c){return new Promise((d,e)=>{a.ac.push(new olympe.G.H.Dc.cS(d,e,b,c));vb(a)})}olympe.G.H.Dc.bS=class extends olympe.la.promise.Xt{constructor(){super();this.mn=5E3}Bd(){throw Error('Use addReadOperation() or addWriteOperation() instead');}T(a){return Fh(this,a,!1)}W(a){return Fh(this,a,!0)}R(a){super.R(a);1!==this.mn||0!==this.ac.length&&this.ac[0].Wj()||(this.mn=5E3)}O(){this.ac.length&&this.ac[0].Wj()&&(this.mn=1);return this.C<this.mn}};
1288
1288
  olympe.G.H.Dc.cS=class extends olympe.la.promise.gM{constructor(a,b,c,d){super(a,b,c);this.write=d}Wj(){return this.write}};olympe.G.H.Dc.Az=class extends olympe.Dc.Az{constructor(){super();this.storage=window.localStorage}get(a){let b;return null!=(b=this.storage.getItem(a))?b:null}set(a,b){this.storage.setItem(a,b);return this}delete(a){this.storage.removeItem(a)}};olympe.ra.bf(function(a){B(a,olympe.Dc.ba.zz,olympe.G.H.Dc.Az);B(a,olympe.Dc.ba.xz,olympe.G.H.Dc.eI,olympe.Dc.ba.Wb)},'olympe.native.html.localstorage');olympe.G.H.storage={};olympe.G.H.storage.Storage=class{constructor(a){this.V=a}write(a,b,c,d,e){const f=`${b}/${a}`;if(c instanceof Blob){const g=new FileReader;g.onloadend=()=>{localStorage.setItem(f,olympe.la.Mj().C(g.result));e()};g.readAsArrayBuffer(c)}else localStorage.setItem(f,c),e()}close(a){a(null)}};olympe.G.H.storage.Storage.Aa=[olympe.Dc.Storage];olympe.ra.bf(function(a){Qa(a,olympe.Dc.ba.zw,olympe.G.H.storage.Storage,olympe.host.ba.Wb)},'olympe.native.html.storage');olympe.So={};olympe.So.Config={VERSION:'version.version',SQ:'version.branch',Zn:'version.commit',mV:'version.tag',EH:'version.olympe-framework',TQ:'version.build'};olympe.ra.bf(function(a){E(a,olympe.So.Config.VERSION,'');E(a,olympe.So.Config.SQ,'');E(a,olympe.So.Config.Zn,'');E(a,olympe.So.Config.mV,'');E(a,olympe.So.Config.EH,'');E(a,olympe.So.Config.TQ,'')},'olympe.main');const Gh=a=>{const b=olympe.la.KP(location.href).parameters;a=new olympe.ra.kR(a,Object.assign({},b));Fa(a);Ia(a.compile())};
1289
1289
  olympe.la.IY(a=>{const b=new Headers;b.append('pragma','no-cache');b.append('cache-control','no-cache');return fetch(a,{method:olympe.wa.Nc.Gj.GET,headers:b}).then(c=>c.ok?c.text():null).catch(c=>{console.error(`Failed to load config file: ${c}`);return null})}).then(a=>{try{'loading'===document.readyState?document.addEventListener('DOMContentLoaded',()=>Gh(a),{once:!0}):Gh(a)}catch(b){console.error(`Failed to start Olympe: ${b}`)}}).catch(a=>{console.error(`Failed to load config files: ${a}`)});olympe.dc={};olympe.dc.Gb={ORIGIN:'<',DESTINATION:'>'};z('olympe.dc.Direction',olympe.dc.Gb);olympe.dc.Lf={uh:'ff022000000000000000',nt:'ff02200000000000000e',Ty:'ff02200000000000000f'};olympe.dc.yI={VERSION:'@v',Hr:'@s'};olympe.dc.vi={zj:'?',Tp:'~'};olympe.dc.H2={wr:'online',Bm:'offline',g1:'invalidate'};olympe.dc.vc={SELF:'self',SERVER:'server',uo:'remote'};
1290
- olympe.dc.Ee={NONE:null,eH:'ff023000000000000037',Rg:'ff023000000000000137',bj:'ff023000000000000237',WU:'ff023000000000000337',rR:'ff023000000000000437',yV:'ff023000000000000537',i1:olympe.dc.vi.Tp+'ff023000000000000037',j1:olympe.dc.vi.Tp+'ff023000000000000237',h1:olympe.dc.vi.Tp+'ff023000000000000437',D3:olympe.dc.vi.Tp+'ff023000000000000537'};olympe.dc.RK=class extends Error{constructor(a){var b=olympe.dc.$a(),c=olympe.dc.Tj(),d=b.model(a);d=`\n- model: ${d} (${d?b.name(d):'no name'})`;b=b.source(a);c=`\n- source: ${b} (${b?c.Cd(b).name():'no name'})`;super(`Trying to use a CloudObject that does not exist:\n- tag: ${a}${d}${c}${''}`)}};olympe.dc.KK=class extends Error{constructor(){var a=Hh();super('Try to access a resource not available yet: BusinessContainer, wait for it to be ready');this.C=a}};olympe.dc.fu=class{Af(){}qh(){}D(){}Pb(){}Xf(){}};olympe.dc.eL=class{Wf(){}ja(){}Tc(){}};function Ih(a){return olympe.dc.CloudObject.get(a.tag)}olympe.dc.yf=class{constructor(a){this.tag='string'===typeof a?a:a.ka()}ka(){return this.tag}Sb(a){return a instanceof olympe.dc.yf&&this.tag===a.tag}};olympe.dc.yf.Aa=[olympe.dc.Zk];olympe.dc.yf.prototype.Sb.K=olympe.j.J.O;olympe.dc.IR=class a{constructor(b,c,d,e,f,g){this.V=b;this.ca=c;this.db=c.view;this.fa=d;this.Ye=e;this.R=f;this.T=g;this.C=new Map;this.D=jb(new olympe.la.Zt(6E5),(h,l)=>{URL.revokeObjectURL(l);Jh(this.db,h,a.C(h))})}qa(b,c,d,e,f){this.Fa(c).then(g=>{this.Oa(b,g,d,!!this.T,e,f)}).catch(g=>this.V.error(g))}O(b){const c=this;return q(function*(){const d=f=>{f=`Failed to download file ${b.ka()}: ${f}`;c.V.error(f);throw Error(f);},e=b.ka();if(hb(c.D.C,e)){const f=c.D.get(e);return c.R.O(f).then(g=>
1290
+ olympe.dc.Ee={NONE:null,eH:'ff023000000000000037',Rg:'ff023000000000000137',bj:'ff023000000000000237',WU:'ff023000000000000337',rR:'ff023000000000000437',yV:'ff023000000000000537',i1:olympe.dc.vi.Tp+'ff023000000000000037',j1:olympe.dc.vi.Tp+'ff023000000000000237',h1:olympe.dc.vi.Tp+'ff023000000000000437',D3:olympe.dc.vi.Tp+'ff023000000000000537'};olympe.dc.RK=class extends Error{constructor(a){var b=olympe.dc.$a(),c=olympe.dc.Tj(),d=b.model(a);d=`\n- model: ${d} (${d?b.name(d):'no name'})`;b=b.source(a);c=`\n- source: ${b} (${b?c.Cd(b).name():'no name'})`;super(`Trying to use a CloudObject that does not exist:\n- tag: ${a}${d}${c}${''}`)}};olympe.dc.KK=class extends Error{constructor(){var a=Hh();super('Try to access a resource not available yet: BusinessContainer, wait for it to be ready');this.C=a}};olympe.dc.fu=class{Af(){}qh(){}D(){}Pb(){}Yf(){}};olympe.dc.eL=class{Xf(){}ja(){}Tc(){}};function Ih(a){return olympe.dc.CloudObject.get(a.tag)}olympe.dc.yf=class{constructor(a){this.tag='string'===typeof a?a:a.ka()}ka(){return this.tag}Sb(a){return a instanceof olympe.dc.yf&&this.tag===a.tag}};olympe.dc.yf.Aa=[olympe.dc.Zk];olympe.dc.yf.prototype.Sb.K=olympe.j.J.O;olympe.dc.IR=class a{constructor(b,c,d,e,f,g){this.V=b;this.ca=c;this.db=c.view;this.fa=d;this.Ye=e;this.R=f;this.T=g;this.C=new Map;this.D=jb(new olympe.la.Zt(6E5),(h,l)=>{URL.revokeObjectURL(l);Jh(this.db,h,a.C(h))})}qa(b,c,d,e,f){this.Fa(c).then(g=>{this.Oa(b,g,d,!!this.T,e,f)}).catch(g=>this.V.error(g))}O(b){const c=this;return q(function*(){const d=f=>{f=`Failed to download file ${b.ka()}: ${f}`;c.V.error(f);throw Error(f);},e=b.ka();if(hb(c.D.C,e)){const f=c.D.get(e);return c.R.O(f).then(g=>
1291
1291
  g.arrayBuffer()).then(g=>new Uint8Array(g,0,g.byteLength)).catch(d)}return c.downloadFileContent(b).then(f=>cb(f)).then(f=>{if(c.T){let g;const h=null!=(g=b.get(olympe.dm.File.mimeTypeProp))?g:'application/data';c.W(e,new Blob([f],{type:h}))}return f}).catch(d)})}downloadFileContent(b){var c=b.ka(),d=b.get(olympe.dm.File.C);const e=b.get(olympe.dm.File.urlProp);if(e.startsWith('stream:'))return this.$(c).then(()=>this.downloadFileContent(b));if(e.startsWith('blob:'))return this.R.O(e).then(f=>f.arrayBuffer()).then(f=>
1292
1292
  new Uint8Array(f,0,f.byteLength));if(d)return d=this.db.model(b),c=new olympe.dc.Request(olympe.dc.Request.C.fr,olympe.dc.Tj().xl(b),{tag:c,model:d,url:e.valueOf()}),Kh(this.Ye,c);c=fd(e);id(c,olympe.wa.Nc.ResponseType.$B);return this.fa.C(c).then(f=>{const g=f.nh();if(200<=g&&300>g)return f.data;throw Error(`Failed to download file ${b}. Response code ${g}`);})}Da(b,c,d){c=new olympe.dc.Request(olympe.dc.Request.C.er,d,{tag:b,model:c});return Kh(this.Ye,c).then(()=>this.V.debug(`Successfully deleted file: ${b}`)).catch(e=>
1293
- {throw Error(`Failed to delete file ${b}: ${e.message}`);})}Ha(b){const c=new olympe.la.stream.aq;this.O(b).then(d=>{fb(d).pipeTo(c).catch(()=>{})});return c}Ka(b,c){cb(c).then(d=>{d=URL.createObjectURL(new Blob([d]));const e=new olympe.dc.db.Rf;e.qh(b,(new Map).set(olympe.dm.File.urlProp.ka(),d));this.ca.Ph(Lh(e));let f;null==(f=this.C.get(b))||f.forEach(g=>g(null))}).catch(d=>{let e;null==(e=this.C.get(b))||e.forEach(f=>f(d))}).finally(()=>{this.C.delete(b)})}$(b){return new Promise((c,d)=>{let e;
1293
+ {throw Error(`Failed to delete file ${b}: ${e.message}`);})}Ha(b){const c=new olympe.la.stream.aq;this.O(b).then(d=>{fb(d).pipeTo(c).catch(()=>{})});return c}Ka(b,c){cb(c).then(d=>{d=URL.createObjectURL(new Blob([d]));const e=new olympe.dc.db.Sf;e.qh(b,(new Map).set(olympe.dm.File.urlProp.ka(),d));this.ca.Ph(Lh(e));let f;null==(f=this.C.get(b))||f.forEach(g=>g(null))}).catch(d=>{let e;null==(e=this.C.get(b))||e.forEach(f=>f(d))}).finally(()=>{this.C.delete(b)})}$(b){return new Promise((c,d)=>{let e;
1294
1294
  const f=null!=(e=this.C.get(b))?e:[];f.push(g=>g?d(g):c());this.C.set(b,f)})}Oa(b,c,d,e,f,g){const h=e?l=>{this.W(b,new Blob([c],{type:d}));f(l)}:f;e=this.db.model(b);e=new olympe.dc.Request(olympe.dc.Request.C.Qr,olympe.dc.Tj().xl(b),{tag:b,model:e,content:c,mimeType:d});Kh(this.Ye,e).then(l=>h(null!=l?l:'')).catch(null!=g?g:this.V.error.bind(this.V))}Fa(b){return q(function*(){var c=b instanceof olympe.j.kb?b.valueOf():b;return'string'===typeof c?bb(c):c instanceof ArrayBuffer?new Uint8Array(c,
1295
- 0,c.byteLength):c instanceof Blob?(c=yield c.arrayBuffer(),new Uint8Array(c,0,c.byteLength)):c})}W(b,c){const d=olympe.dc.Va(b);b=URL.createObjectURL(c);this.D.set(d,b);const e=a.C(d);Mh(this.db,d,f=>{f||(this.D.delete(d),Jh(this.db,d,e))},e)}static C(b){return`cacheBinary${b}`}};function Nh(a,b){let c=Oh(b),d=null;for(;!c&&b&&b!==d;){d=b;b=a.db.Mm(b);if(null===b)break;c=Oh(b)}let e;return null!=(e=c)?e:null}olympe.dc.pS=class{constructor(a,b,c){this.V=a;this.C=b;this.db=b.view;this.D=c;this.Qc=new FinalizationRegistry(d=>{this.V.O()&&this.V.debug(`Collect instance ${d} (${this.db.name(d)||'no name'})`);this.C.detach([d],olympe.dc.db.Instance.C.nI)})}};function Ph(a,b){a.origin=b;return a}function Qh(a,b,c){a.D.set(b,c);return a}function Rh(a){let b;return null!=(b=a.D)?b:new Map}olympe.dc.Request=class{constructor(a,b,c,d){this.type=a;this.origin=olympe.dc.vc.SELF;this.C=b;this.content=null!=c?c:null;this.hm=null!=d?d:re(olympe.xa.Bk()).Hk();this.D=new Map}getType(){return this.type}Bg(){return this.hm}$f(){return this.C}Be(){return this.content}toString(){return`Request of type ${this.type}, from ${this.origin} to ${this.C}; content: ${this.content}`}};
1296
- olympe.dc.Request.C={Vf:1,jr:10,LR:24,RH:25,MR:28,Nt:30,Uz:31,i2:32,yo:40,Yt:41,gG:42,rL:43,y3:44,Jv:45,nG:46,hz:47,Qr:50,fr:51,er:52,uV:60,xU:61,MH:62,Z0:63,cR:64,Kv:65,Xy:91,NR:93,mD:95,QUERY_RESULT:97};function Kh(a,b){a.V.debug('Router: sends',b);return a.Cd(b.$f()).Da(b)}
1295
+ 0,c.byteLength):c instanceof Blob?(c=yield c.arrayBuffer(),new Uint8Array(c,0,c.byteLength)):c})}W(b,c){const d=olympe.dc.Va(b);b=URL.createObjectURL(c);this.D.set(d,b);const e=a.C(d);Mh(this.db,d,f=>{f||(this.D.delete(d),Jh(this.db,d,e))},e)}static C(b){return`cacheBinary${b}`}};function Nh(a,b){let c=Oh(b),d=null;for(;!c&&b&&b!==d;){d=b;b=a.db.Mm(b);if(null===b)break;c=Oh(b)}let e;return null!=(e=c)?e:null}olympe.dc.pS=class{constructor(a,b,c){this.V=a;this.C=b;this.db=b.view;this.D=c;this.Qc=new FinalizationRegistry(d=>{this.V.O()&&this.V.debug(`Collect instance ${d} (${this.db.name(d)||'no name'})`);this.C.detach([d],olympe.dc.db.Instance.C.nI)})}};function Ph(a,b){a.origin=b;return a}function Qh(a,b,c){a.D.set(b,c);return a}function Rh(a){let b;return null!=(b=a.D)?b:new Map}olympe.dc.Request=class{constructor(a,b,c,d){this.type=a;this.origin=olympe.dc.vc.SELF;this.C=b;this.content=null!=c?c:null;this.hm=null!=d?d:re(olympe.xa.Bk()).Hk();this.D=new Map}getType(){return this.type}Bg(){return this.hm}ag(){return this.C}Be(){return this.content}toString(){return`Request of type ${this.type}, from ${this.origin} to ${this.C}; content: ${this.content}`}};
1296
+ olympe.dc.Request.C={Wf:1,jr:10,LR:24,RH:25,MR:28,Nt:30,Uz:31,i2:32,yo:40,Yt:41,gG:42,rL:43,y3:44,Jv:45,nG:46,hz:47,Qr:50,fr:51,er:52,uV:60,xU:61,MH:62,Z0:63,cR:64,Kv:65,Xy:91,NR:93,mD:95,QUERY_RESULT:97};function Kh(a,b){a.V.debug('Router: sends',b);return a.Cd(b.ag()).Da(b)}
1297
1297
  function Sh(a,b,c,d){const e=olympe.j.Oo();a.sources.set(olympe.dc.vc.SERVER,d.init(a));a.O?a.sources.set(olympe.dc.vc.uo,c.init(a)):Mh(b,a.C,()=>{a.sources.set(olympe.dc.vc.uo,c.init(a));const f=new Map;olympe.dc.nb.from(a.C,a.C).kc(olympe.dm.DataSource.Ix).filter(olympe.dc.query.Rb.Sb(olympe.dm.DataSource.ju,!0)).observe(e).subscribe(g=>{var h=g.Fu();for(var l of h){f.get(l);h=a.sources.get(l);a.sources.delete(l);var m=void 0;null==(m=h)||m.destroy()}g=g.xu();for(const n of g)l=n.ka(),a.sources.has(l)||
1298
1298
  (m=new olympe.dc.sources.iK(a.V,n),a.sources.set(l,m),g=`Datasource ${l}`,f.set(l,[null!=l?l:'',null!=g?g:'']),m.init(a))});Jh(b,a.C,'router',!0)},'router')}function Th(a,b,c){let d=a.D.get(b);void 0===d&&(d=[],a.D.set(b,d));d.push(c)}
1299
- olympe.dc.DU=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;Sh(this,d,b,c)}subscribe(a,b){this.V.debug('Router: subscribes',a);return this.Cd(a.$f()).subscribe(a,b)}ah(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))}}Pu(a){let b;null==(b=this.D.get(a.getType()))||b.forEach(c=>c(a));return this.Cd(olympe.dc.vc.uo).Pu(a)}Cd(a){let b;
1299
+ olympe.dc.DU=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;Sh(this,d,b,c)}subscribe(a,b){this.V.debug('Router: subscribes',a);return this.Cd(a.ag()).subscribe(a,b)}ah(a){if(a.ag()!==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))}}Pu(a){let b;null==(b=this.D.get(a.getType()))||b.forEach(c=>c(a));return this.Cd(olympe.dc.vc.uo).Pu(a)}Cd(a){let b;
1300
1300
  return null!=(b=this.sources.get(a))?b:this.sources.get(olympe.dc.vc.uo)}};function Lh(a,b){b=new olympe.dc.gr(a.ja(),null!=b?b:null);b.C=a;return b}function Uh(a,b,c,d){c=new olympe.dc.gr(null!=d?d:olympe.la.df(),null!=c?c:null);c.D=b;c.ac=a;return c}
1301
- olympe.dc.gr=class{constructor(a,b){this.id=a;this.ac=this.C=this.D=null;this.wA=b}static C(a){return Uh(a.p,a.s,a.t,a.i)}ja(){return this.id}Wf(a){return this.C instanceof olympe.dc.db.Rf?this.C.Wf(a):Array.isArray(this.ac)?(new olympe.dc.transaction.rw(this.D)).D(this.ac,a):a}Tc(){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.Tc())?d:0}ag(){return this.C instanceof olympe.dc.db.Rf?this.C:Array.isArray(this.ac)?(this.C=(new olympe.dc.transaction.rw(this.D)).C(this.ac,
1302
- this.id),this.ac=null,this.C):new olympe.dc.db.Rf(this.id)}SA(){if(Array.isArray(this.ac))return this.ac;if(this.C instanceof olympe.dc.db.Rf){const a=new olympe.dc.transaction.gl;this.C.Wf(a);return Vh(a)}return[]}gb(){return{p:this.SA(),t:this.wA,s:this.D,i:this.id}}};olympe.dc.gr.Aa=[olympe.dc.eL];olympe.dc.Qc={};const Wh=olympe.dc.Gb.ORIGIN,Xh=olympe.dc.Gb.DESTINATION,Yh=new Map,Zh=new Map,$h=new Map,ai=new Map;function Oh(a){let b;return null!=(b=Yh.get(a))?b:null}function bi(a,b,c){let d=a;'function'===typeof a&&(d=c.entry);a=[...(d.MF||[])];return olympe.dc.Ja.C(b,c,...a)}function ci(a,b){ai.set(a,b);return a}function di(a){let b,c;return null!=(c=null==(b=Yh.get(a))?void 0:b.D)?c:olympe.dc.CloudObject}
1303
- function ei(a,b,c){const d=a+'@'+(b===Xh?Wh:Xh);if(Zh.has(d))throw Error(`Try to register the same relation (${b+a}) multiple times.`);Zh.set(d,c)}function fi(a){a=a.ka()+'@'+a.Cc();return Zh.get(a)||olympe.dc.CloudObject}function X(a,b){b.NAME=a;$h.set(a,b)}function hi(a){let b;return null!=(b=a.NAME)?b:null}
1304
- olympe.dc.Ja=class{constructor(){}static C(a,b,...c){if(Yh.has(a))throw Error(`Tag: ${a} - overwriting already defined CloudObject class ${Yh.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.ra.Rd(g):g}}b=new olympe.dc.Qc.Entry(a,b,d);Yh.set(a,b);return b.D.entry=b}static Ce(a){let b,c;return null!=(c=null==(b=a.entry)?void 0:b.ka())?c:null}};function ii(a,b){a.C=b}function Y(a,b){b=b.ie();ei(b.ka(),b.Cc(),a.D);return b}function ji(a){a.O=!0;return a}
1301
+ olympe.dc.gr=class{constructor(a,b){this.id=a;this.ac=this.C=this.D=null;this.wA=b}static C(a){return Uh(a.p,a.s,a.t,a.i)}ja(){return this.id}Xf(a){return this.C instanceof olympe.dc.db.Sf?this.C.Xf(a):Array.isArray(this.ac)?(new olympe.dc.transaction.rw(this.D)).D(this.ac,a):a}Tc(){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.Tc())?d:0}Of(){return this.C instanceof olympe.dc.db.Sf?this.C:Array.isArray(this.ac)?(this.C=(new olympe.dc.transaction.rw(this.D)).C(this.ac,
1302
+ this.id),this.ac=null,this.C):new olympe.dc.db.Sf(this.id)}SA(){if(Array.isArray(this.ac))return this.ac;if(this.C instanceof olympe.dc.db.Sf){const a=new olympe.dc.transaction.gl;this.C.Xf(a);return Vh(a)}return[]}gb(){return{p:this.SA(),t:this.wA,s:this.D,i:this.id}}};olympe.dc.gr.Aa=[olympe.dc.eL];olympe.dc.Qc={};const Wh=olympe.dc.Gb.ORIGIN,Xh=olympe.dc.Gb.DESTINATION,Yh=new Map,Zh=new Map,$h=new Map,ai=new Map;function Oh(a){let b;return null!=(b=Yh.get(a))?b:null}function bi(a,b,c){let d=a;'function'===typeof a&&(d=c.entry);a=[...(d.MF||[])];return olympe.dc.Ja.C(b,c,...a)}function ci(a,b){ai.set(a,b);return a}function di(a){let b,c;return null!=(c=null==(b=Yh.get(a))?void 0:b.D)?c:olympe.dc.CloudObject}
1303
+ function ei(a,b,c){const d=a+'@'+(b===Xh?Wh:Xh);if(Zh.has(d))throw Error(`Try to register the same relation (${b+a}) multiple times.`);Zh.set(d,c)}function fi(a){a=a.ka()+'@'+a.Cc();return Zh.get(a)||olympe.dc.CloudObject}function X(a,b){b.NAME=a;$h.set(a,b)}function gi(a){let b;return null!=(b=a.NAME)?b:null}
1304
+ olympe.dc.Ja=class{constructor(){}static C(a,b,...c){if(Yh.has(a))throw Error(`Tag: ${a} - overwriting already defined CloudObject class ${Yh.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.ra.Rd(g):g}}b=new olympe.dc.Qc.Entry(a,b,d);Yh.set(a,b);return b.D.entry=b}static Ce(a){let b,c;return null!=(c=null==(b=a.entry)?void 0:b.ka())?c:null}};function hi(a,b){a.C=b}function Y(a,b){b=b.ie();ei(b.ka(),b.Cc(),a.D);return b}function ji(a){a.O=!0;return a}
1305
1305
  olympe.dc.Qc.Entry=class{constructor(a,b,c){this.tag=a;this.D=b;this.MF=c||null;this.C=null;this.O=!1}ka(){return this.tag}instantiate(a,b){const c=this.D;if(this.OE()&&b.getParameter(olympe.dc.Config.pH)){var d=olympe.dc.$a();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.tb('dc').error(d)}return this.MF?(a=[void 0,a].concat(Ja(b,this.MF)),new c(...a)):
1306
1306
  new c(void 0,a)}ea(a){return new olympe.dc.Qc.Property(a)}qb(a,b=olympe.dc.Gb.DESTINATION){ei(a,b,this.D);return new olympe.dc.Qa.Em(a,b)}OE(){return this.O}};z('olympe.dc.registry.Entry',olympe.dc.Qc.Entry);olympe.dc.Qc.Entry.prototype.addRelation=olympe.dc.Qc.Entry.prototype.qb;olympe.dc.Qc.Entry.prototype.addProperty=olympe.dc.Qc.Entry.prototype.ea;olympe.dc.Qc.Entry.Aa=[olympe.dc.Zk];olympe.dc.Qc.Property=class{constructor(a){this.tag=a}ka(){return this.tag}toString(){return`Property: ${this.tag}`}};olympe.dc.Qc.Property.prototype.getTag=olympe.dc.Qc.Property.prototype.ka;olympe.dc.Qc.Property.Aa=[olympe.dc.Zk];olympe.dc.Qc.Relation=class{constructor(a,b=olympe.dc.Gb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.CloudObject){this.tag=olympe.dc.Va(a);this.direction=b;this.origin=c;this.R=d}ka(){return this.tag}Cc(){return this.direction}type(){return this.R}ie(){return new olympe.dc.Qc.Relation(this.tag,this.direction===olympe.dc.Gb.DESTINATION?olympe.dc.Gb.ORIGIN:olympe.dc.Gb.DESTINATION,this.R,this.origin)}Sb(a){return a instanceof olympe.dc.Qc.Relation?a.ka()===this.ka()&&a.Cc()===this.Cc():!1}toString(){return`${this.direction}${olympe.dc.$a().name(this.tag)} (${this.tag})`}};
1307
- olympe.dc.Qc.Relation.prototype.getInverse=olympe.dc.Qc.Relation.prototype.ie;olympe.dc.Qc.Relation.prototype.getDirection=olympe.dc.Qc.Relation.prototype.Cc;olympe.dc.Qc.Relation.prototype.getTag=olympe.dc.Qc.Relation.prototype.ka;olympe.dc.Qc.Relation.Aa=[olympe.dc.Zk];olympe.dc.db={};function ki(a,b){const c=a.R,d=olympe.dc.$a(),e=olympe.dc.db.Database.C.sw,f=olympe.dc.db.Database.C.zj,g=olympe.dc.db.Database.C.ORIGIN,h=olympe.dc.db.Database.C.DESTINATION,l=new olympe.dc.db.Rf('rev-'+b.ja());a.V.debug('Generate the reverse graphLayer of',b.ja());b.me.forEach((m,n)=>{if(m.D()){l.D(n,olympe.dc.Ee.NONE);for(const [t,u]of m.fi())l.Xf(t,n,u)}else{var p=c.get(n);if(void 0!==p)if(m.hi())for(const t of li(d,n,m.O())){m=c.get(t);const u=new Map;m.forEach((v,w)=>{const x=w[0],y=w.substring(1);
1308
- x===e?u.set(y,v):x===f?u.set(w,v):x===g?v.forEach((A,H)=>{l.Pb(y,H,t)}):x===h&&v.forEach((A,H)=>{l.Pb(y,t,H)})});m=m.source();l.Af(t,m,u)}else{const t=new Map;for(const u of m.Xd().keys()){var r=u[0]===f;const v=r?u.substring(1):u;r=r?mi(p,v,!0):p.tc(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.fi())w?l.Xf(u,n,v):l.Pb(u,n,v)}}});return l}
1307
+ olympe.dc.Qc.Relation.prototype.getInverse=olympe.dc.Qc.Relation.prototype.ie;olympe.dc.Qc.Relation.prototype.getDirection=olympe.dc.Qc.Relation.prototype.Cc;olympe.dc.Qc.Relation.prototype.getTag=olympe.dc.Qc.Relation.prototype.ka;olympe.dc.Qc.Relation.Aa=[olympe.dc.Zk];olympe.dc.db={};function ki(a,b){const c=a.R,d=olympe.dc.$a(),e=olympe.dc.db.Database.C.sw,f=olympe.dc.db.Database.C.zj,g=olympe.dc.db.Database.C.ORIGIN,h=olympe.dc.db.Database.C.DESTINATION,l=new olympe.dc.db.Sf('rev-'+b.ja());a.V.debug('Generate the reverse graphLayer of',b.ja());b.me.forEach((m,n)=>{if(m.D()){l.D(n,olympe.dc.Ee.NONE);for(const [t,u]of m.fi())l.Yf(t,n,u)}else{var p=c.get(n);if(void 0!==p)if(m.hi())for(const t of li(d,n,m.O())){m=c.get(t);const u=new Map;m.forEach((v,w)=>{const x=w[0],y=w.substring(1);
1308
+ x===e?u.set(y,v):x===f?u.set(w,v):x===g?v.forEach((A,H)=>{l.Pb(y,H,t)}):x===h&&v.forEach((A,H)=>{l.Pb(y,t,H)})});m=m.source();l.Af(t,m,u)}else{const t=new Map;for(const u of m.Xd().keys()){var r=u[0]===f;const v=r?u.substring(1):u;r=r?mi(p,v,!0):p.tc(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.fi())w?l.Yf(u,n,v):l.Pb(u,n,v)}}});return l}
1309
1309
  function ni(a,b,c){const d=b.ja();if(a.O.has(d))throw Error(`You try to execute the patch ${d} a second times whereas the first execution has not been validated yet.`);const e=new oi(b,ki(a,b));a.D.unshift(d);a.O.set(d,e);a.R.xf(c);a.write(b,!1,!1)}
1310
1310
  function pi(a,b,c){if(0>=a.T||null===c)return b;var d=a.C.findIndex(h=>h.ja()===b.ja()),e=a.C[d];-1<d&&a.C.splice(d,1);d=0<a.C.length?a.C.findIndex(h=>c>=h.D):0;d=-1<d?d:a.C.length;const f=a.C.slice(0,d).reduce((h,l)=>l.Ph(h),b);let g;e=null!=(g=null==e?void 0:e.update(f,c))?g:new qi(f,c,a.C,a.T);a.C.splice(d,0,e);a.V.O()&&a.V.debug('CommitController buffer:\n',a.C.map(h=>`${h.ja()} at ${h.D}`).join('\n'));return f}
1311
1311
  function ri(a,b,c){return a.D.slice(0,c).map(d=>a.O.get(d)).reduce((d,e)=>{let f;return null!=(f=null==e?void 0:e.Ph(d))?f:d},b)}function si(a,b,c,d=!1){return q(function*(){const e=new olympe.dc.db.aE(a.V,a.R,a.$a,c);ti(e,d);for(const f=ia(b);;){const g=yield f.next();if(g.done)break;e.write(g.value,a.W)}e.close()})}
1312
- function ui(a,b,c,d){b=b.pipeThrough(olympe.la.stream.tap(e=>{0<a.D.length&&pi(a,ri(a,e.ag(),a.D.length),e.wA)}));return si(a,b,c,d).then(()=>a.V.debug('Rebase stream completed')).catch(e=>a.V.error('Rebase stream failed:',e))}
1313
- olympe.dc.db.iR=class{constructor(a,b,c,d){this.V=a;this.R=b;this.$a=c;let e;this.W=null!=(e=d.get('debug'))?e:!1;let f;this.T=null!=(f=d.get('bufferTimeout'))?f:0;this.D=[];this.O=new Map;this.C=[];b.addEventListener(olympe.dc.db.Database.Event.IH,g=>{this.C.forEach(h=>{for(const l of g)h.C.C(l)})})}Ph(a,b,c){const d=a.ja(),e=a.wA;this.O.has(d)?this.push(d,e):(a=pi(this,ri(this,a.ag(),this.D.length),e),this.write(a,b,c))}push(a,b){const c=this.D.indexOf(a);if(-1<c){const d=this.O.get(a);this.D.splice(c,
1312
+ function ui(a,b,c,d){b=b.pipeThrough(olympe.la.stream.tap(e=>{0<a.D.length&&pi(a,ri(a,e.Of(),a.D.length),e.wA)}));return si(a,b,c,d).then(()=>a.V.debug('Rebase stream completed')).catch(e=>a.V.error('Rebase stream failed:',e))}
1313
+ olympe.dc.db.iR=class{constructor(a,b,c,d){this.V=a;this.R=b;this.$a=c;let e;this.W=null!=(e=d.get('debug'))?e:!1;let f;this.T=null!=(f=d.get('bufferTimeout'))?f:0;this.D=[];this.O=new Map;this.C=[];b.addEventListener(olympe.dc.db.Database.Event.IH,g=>{this.C.forEach(h=>{for(const l of g)h.C.C(l)})})}Ph(a,b,c){const d=a.ja(),e=a.wA;this.O.has(d)?this.push(d,e):(a=pi(this,ri(this,a.Of(),this.D.length),e),this.write(a,b,c))}push(a,b){const c=this.D.indexOf(a);if(-1<c){const d=this.O.get(a);this.D.splice(c,
1314
1314
  1);pi(this,ri(this,d.D,c),b);this.O.delete(a)}}write(a,b,c=!1){b=new olympe.dc.db.aE(this.V,this.R,this.$a,b);ti(b,c);b.write(a,this.W);b.close()}};class vi{ja(){}Ph(){}}function wi(a,b,c,d){const e=olympe.dc.Gb.DESTINATION;c=c.tag();const f=a.C.mh(c);b.Xd().forEach((g,h)=>{f.ea(h,g);b.Da(h)});for(const [g,h,l,m]of b.Ha()){if(!m)continue;const n=h===e?c:l,p=h===e?l:c;a.C.Pb(g,n,p);d.R(g,n,p)}}
1315
1315
  function xi(a,b,c,d){const e=olympe.dc.Gb.DESTINATION,f=c.tag(),g=a.C.mh(f);b.Xd().forEach((h,l)=>{void 0!==c.tc(l)&&(g.ea(l,h),b.Da(l))});for(const [h,l,m]of b.fi()){const n=c.yb(h,e,l);void 0!==n&&(d.R(h,f,l),n===m&&a.C.R(h,f,l))}}
1316
1316
  class oi extends vi{constructor(a,b){super();this.D=a;this.C=b;this.db=olympe.dc.$a()}ja(){return this.D.ja()}Ph(a){for(const [b,c]of this.D.ca(a)){const d=b.tag();c.hi()?b.D()?a.C(d,b.O()):(this.D.C(d,c.O()),this.C.C(d,c.O())):b.hi()?(wi(this,c,b,a),a.C(d,b.O())):xi(this,c,b,a)}return a}}function yi(a){clearTimeout(a.O);a.O=setTimeout(()=>{a.buffer.splice(a.buffer.indexOf(a),1)},a.R)}
1317
- class qi extends vi{constructor(a,b,c,d){super();this.C=a;this.D=b;this.buffer=c;this.R=d;this.O=null;yi(this)}ja(){return this.C.ja()}Ph(a){return a.T(this.C)}update(a,b){this.D=b;a.Wf(this.C);yi(this);return this}};const zi=olympe.dc.Lf.uh,Ai=olympe.dc.Lf.nt,Bi=olympe.dc.Gb.ORIGIN,Ci=olympe.dc.Gb.DESTINATION;let Di=0;
1317
+ class qi extends vi{constructor(a,b,c,d){super();this.C=a;this.D=b;this.buffer=c;this.R=d;this.O=null;yi(this)}ja(){return this.C.ja()}Ph(a){return a.T(this.C)}update(a,b){this.D=b;a.Xf(this.C);yi(this);return this}};const zi=olympe.dc.Lf.uh,Ai=olympe.dc.Lf.nt,Bi=olympe.dc.Gb.ORIGIN,Ci=olympe.dc.Gb.DESTINATION;let Di=0;
1318
1318
  olympe.dc.db.Database=class a extends Map{constructor(b,c,d){super();let e;this.id=null!=(e=d.get('selfTag'))?e:olympe.dc.vc.SELF;this.V=b;this.yb=olympe.j.zb();this.state=olympe.dc.db.Database.D.IDLE;this.ca=new Map;this.ob=[];this.$=new Map;this.R=null;this.qa=new Set;var f;b=null!=(f=d.get('garbageCollector'))?f:olympe.dc.db.fo.C.vC;let g;f=null!=(g=d.get('garbageCollectorDelay'))?g:5E3;this.xc=new olympe.dc.db.fo(c,this,b,f);d.get('debug')&&this.en()}ja(){return this.id}getState(){return this.state}tb(){return this.V}create(b,
1319
1319
  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.fa(f,!0)}e&&f.persist();this.state===a.D.ZB&&Ei(f,!0);d&&this.Eb(f,d);this.D(a.Event.oI,b)}update(b,c){c&&(b=this.T(b,!0),this.Eb(b,c))}Da(b){const c=this.get(b);void 0!==c&&(this.fa(c,!1),this.D(a.Event.pI,b))}Fa(b,c,d){c=this.T(c,!0);d=this.T(d,!0);switch(b){case zi:Fi(c,d);break;case Ai:Gi(c,d);break;default:Hi(c,b,d)}}Sc(b,c,d){c=this.get(c);d=this.get(d);if(void 0!==c&&void 0!==
1320
1320
  d)switch(b){case zi:Ii(c,d);break;case Ai:Ji(c,d);break;default:Ki(c,b,d)}}Od(b,c){for(const d of b)this.T(d).vk(c)}zh(b,c){for(const d of b)(b=this.get(d))&&b.detach(c)}Fx(...b){for(const c of b)null!=(b=this.get(c))&&(b.e=!1)}xf(b){b.forEach(c=>{this.T(c).persist()})}Mb(b){const c=this.get(b);void 0!==c&&(c.clear(),super.delete(b),this.D(a.Event.mH,b))}T(b,c=!1){let d;return null!=(d=this.get(b))?d:this.Af(b,c)}Af(b,c){const d=new olympe.dc.db.Instance(b,this);this.set(b,d);this.D(a.Event.lH,b);
@@ -1348,14 +1348,14 @@ function Ij(a,b,...c){b.forEach((d,e)=>{Li(a,e,d.bind(null,...c))})}function Jj(
1348
1348
  function Lj(a){a.W.run(()=>{const b=a.C;for(const [c,d]of a.buffer){let e,f,g;null==(e=b.get(c))||null==(g=(f=e)[d])||g.call(f)}});a.C.clear();a.buffer.length=0}function Mj(a,b,c){const d=b+c;let e=a.R.get(d);if(!e){const f=a.D.get(b);e=new Map;Hj.forEach(g=>{const h=g[0]===olympe.dc.vi.Tp;var l=h?g.substring(1):g;let m;l=null!=(m=null==f?void 0:f.get(Cj+l))?m:0;l=h?((l&3)<<2)+((l&12)>>2):l;(c===Bj?12:3)&l&&e.set(g,!!((c===Bj?8:2)&l))});a.R.set(d,e)}return e}
1349
1349
  olympe.dc.db.AR=class{constructor(a,b,c){this.id=a;this.D=b;this.W=c;this.O=new Map;this.Y=new Map;this.T=new Set;this.C=new Map;this.R=new Map;this.buffer=[]}ja(){return this.id}};function Ri(a){if(!a.O&&0<a.D.size)switch(a.mode){case olympe.dc.db.fo.C.UF:a.O=!0;setTimeout(()=>{a.C.getState()===olympe.dc.db.Database.D.IDLE&&a.run()},a.delay);break;case olympe.dc.db.fo.C.dV:a.O=!0,a.run()}}
1350
1350
  olympe.dc.db.fo=class{constructor(a,b,c,d){this.V=a;this.C=b;this.D=new Set;this.mode=c;this.delay=d;this.O=!1;c!==olympe.dc.db.fo.C.vC&&this.init()}run(){const a=this.C;this.V.debug('Start garbage collector with',this.D.size,'instances to check');const b=[];for(const c of this.D){const d=a.get(c);!d||0<d.c||(this.V.debug('Remove unused instance',c,'from database'),a.Mb(c),b.push(c))}this.D.clear();this.C.dispatchEvent(olympe.dc.db.Database.Event.IH,b);this.O=!1}init(){const a=olympe.dc.db.Database.Event.xM,
1351
- b=olympe.dc.db.Database.Event.pI,c=olympe.dc.db.Database.Event.lL,d=olympe.dc.db.Database.D.IDLE,e=f=>{this.D.add(f);this.C.getState()===d&&Ri(this)};this.C.C(olympe.dc.db.Database.Event.XD,e.bind(this));this.C.C(b,e.bind(this));this.C.C(a,f=>{this.D.delete(f)});this.C.addEventListener(olympe.dc.db.Database.Event.qV,()=>{this.run()});this.C.C(c,(f,...g)=>{this.V.error(g[0])})}};olympe.dc.db.fo.C={vC:0,dV:1,UF:2};olympe.dc.db.fo.D=5E3;olympe.dc.db.Rf=class a{constructor(b){this.id=null!=b?b:olympe.la.Zr();this.me=new Map}ja(){return this.id}Wf(b){const c=olympe.dc.db.Dt.C.lD,d=olympe.dc.db.Dt.C.Rg,e=olympe.dc.db.Dt.C.kA;this.me.forEach((f,g)=>{const h=f.Se();switch(f.getState()){case c:const l=f.Cd();if(null===l)throw Error(`GraphPatch: try to create the instance ${g} with no source`);const m=f.W()?f.Xd():void 0;b.Af(g,l,m,h);break;case e:f.W()&&b.qh(g,f.Xd(),h);break;case d:b.D(g,f.O(),h)}for(const [l,m,n]of f.fi())f=this.me.get(m),
1352
- n?b.Pb(l,g,m,h,f.Se()):b.Xf(l,g,m,h,f.Se())});return b}Ki(){return 0===this.me.size}Tc(){let b=0;this.me.forEach(c=>{b+=c.Tc()});return b}Af(b,c,d,e=null){c=this.O(b).create(c);'string'===typeof e&&this.Pb(olympe.dc.Lf.uh,b,e,e,null);d&&c.tA(d)}qh(b,c,d=null){c&&this.O(b,d).tA(c)}D(b,c=olympe.dc.Ee.NONE,d=null){const e=this.me.get(b);if(e&&e.D())this.C(b,c);else{this.O(b,d).delete(c);for(const f of this.tx(b,c,!1))this.me.get(f).Xd().clear(),this.W(f,!0)}}Pb(b,c,d,e=null,f=null){this.O(c,e).fa(b,
1353
- d);this.O(d,f).Oa(b,c)}Xf(b,c,d,e=null,f=null){this.O(c,e).qa(b,d);this.O(d,f).eb(b,c)}$(b){var c=olympe.dc.Ee.NONE;const d=olympe.dc.$a(),e=new Set,f=(g,h)=>{if(d.rc(g)){var l=d.model(g),m=d.source(g);const n=d.Xd(g,!0);xj(d,g).forEach((p,r)=>{n.set(`${olympe.dc.vi.zj}${r}`,p)});this.Af(g,m,n,l);(l=d.Mm(g))&&this.Pb(olympe.dc.Lf.nt,g,l);n.forEach(p=>{p instanceof olympe.dc.yf&&this.$(p.ka())});if(h!==olympe.dc.Ee.NONE){e.add(g);l=olympe.dc.Gb.ORIGIN;m=olympe.dc.Gb.DESTINATION;for(const [p,r,t,u]of d.tx(g,
1351
+ b=olympe.dc.db.Database.Event.pI,c=olympe.dc.db.Database.Event.lL,d=olympe.dc.db.Database.D.IDLE,e=f=>{this.D.add(f);this.C.getState()===d&&Ri(this)};this.C.C(olympe.dc.db.Database.Event.XD,e.bind(this));this.C.C(b,e.bind(this));this.C.C(a,f=>{this.D.delete(f)});this.C.addEventListener(olympe.dc.db.Database.Event.qV,()=>{this.run()});this.C.C(c,(f,...g)=>{this.V.error(g[0])})}};olympe.dc.db.fo.C={vC:0,dV:1,UF:2};olympe.dc.db.fo.D=5E3;olympe.dc.db.Sf=class a{constructor(b){this.id=null!=b?b:olympe.la.Zr();this.me=new Map}ja(){return this.id}Xf(b){const c=olympe.dc.db.Dt.C.lD,d=olympe.dc.db.Dt.C.Rg,e=olympe.dc.db.Dt.C.kA;this.me.forEach((f,g)=>{const h=f.Se();switch(f.getState()){case c:const l=f.Cd();if(null===l)throw Error(`GraphPatch: try to create the instance ${g} with no source`);const m=f.W()?f.Xd():void 0;b.Af(g,l,m,h);break;case e:f.W()&&b.qh(g,f.Xd(),h);break;case d:b.D(g,f.O(),h)}for(const [l,m,n]of f.fi())f=this.me.get(m),
1352
+ n?b.Pb(l,g,m,h,f.Se()):b.Yf(l,g,m,h,f.Se())});return b}Ki(){return 0===this.me.size}Tc(){let b=0;this.me.forEach(c=>{b+=c.Tc()});return b}Af(b,c,d,e=null){c=this.O(b).create(c);'string'===typeof e&&this.Pb(olympe.dc.Lf.uh,b,e,e,null);d&&c.tA(d)}qh(b,c,d=null){c&&this.O(b,d).tA(c)}D(b,c=olympe.dc.Ee.NONE,d=null){const e=this.me.get(b);if(e&&e.D())this.C(b,c);else{this.O(b,d).delete(c);for(const f of this.tx(b,c,!1))this.me.get(f).Xd().clear(),this.W(f,!0)}}Pb(b,c,d,e=null,f=null){this.O(c,e).fa(b,
1353
+ d);this.O(d,f).Oa(b,c)}Yf(b,c,d,e=null,f=null){this.O(c,e).qa(b,d);this.O(d,f).eb(b,c)}$(b){var c=olympe.dc.Ee.NONE;const d=olympe.dc.$a(),e=new Set,f=(g,h)=>{if(d.rc(g)){var l=d.model(g),m=d.source(g);const n=d.Xd(g,!0);xj(d,g).forEach((p,r)=>{n.set(`${olympe.dc.vi.zj}${r}`,p)});this.Af(g,m,n,l);(l=d.Mm(g))&&this.Pb(olympe.dc.Lf.nt,g,l);n.forEach(p=>{p instanceof olympe.dc.yf&&this.$(p.ka())});if(h!==olympe.dc.Ee.NONE){e.add(g);l=olympe.dc.Gb.ORIGIN;m=olympe.dc.Gb.DESTINATION;for(const [p,r,t,u]of d.tx(g,
1354
1354
  h))t===l?this.Pb(r,p,g):t===m&&this.Pb(r,g,p),u&&!e.has(p)&&f(p,h)}}return this};f(b,c)}ng(){return function*(b){for(const c of b.values())if(c.D()||c.hi()||c.W())yield c}(this.me)}mh(b){let c;return null!=(c=this.me.get(olympe.dc.Va(b)))?c:null}C(b,c=olympe.dc.Ee.NONE){b=this.tx(b,c);for(const d of b)this.W(d,!1),this.me.delete(d)}fi(){return function*(b){for(var c=b.next();!c.done;){c=c.value;const d=c.tag();yield*c.fi((e,f,g)=>[e,d,f,g]);c=b.next()}}(this.me.values())}sq(b,c,d=(e,f)=>[e,f]){return this.fa(b,
1355
1355
  c,d)}*fa(b,c,d,e=[]){e.push(b);b=this.mh(b);for(const [f,g]of b.uc(c))e.includes(f)||(yield*this.fa(f,c,d,e),yield d(f,g))}R(b,c,d){const e=this.me.get(c),f=this.me.get(d);e&&e.T(b,olympe.dc.Gb.DESTINATION,d);f&&f.T(b,olympe.dc.Gb.ORIGIN,c)}clone(){const b=new a(this.id);this.me.forEach((c,d)=>{b.me.set(d,c.clone())});return b}W(b,c){const d=olympe.dc.Gb.ORIGIN,e=olympe.dc.Gb.DESTINATION,f=this.me.get(b);for(const [h,l,m]of f.fi())if(m||!c){f.T(h,e,l);var g=this.me.get(l);g&&g.T(h,d,b)}for(const [h,
1356
1356
  l,m]of f.Fa())if(m||!c)f.T(h,d,l),(g=this.me.get(l))&&g.T(h,e,b)}*yO(b){let c;for(const [d,e]of(null==(c=this.mh(b))?void 0:c.uc(olympe.dc.CloudObject.instancesRel))||[])e&&(b=this.me.get(d),b.hi()||(yield b))}tx(b,c,d=!0){const e=olympe.dm.Relation.C.tL,f=olympe.dm.Relation.C.uM,g=olympe.dc.Gb.ORIGIN,h=olympe.dc.$a();b=new Set([b]);const l=new Set;for(const n of b){var m=this.me.get(n);if(void 0!==m){for(const [p,r,t]of m.fi())t&&uj(h,p,c)&f?b.add(r):d||t||l.add(`${n}.${p}.${r}`);for(const [p,r,
1357
1357
  t]of m.Fa())t&&uj(h,p,c)&e?b.add(r):d||t||l.add(`${r}.${p}.${n}`)}for(const [p,r,t]of yj(h,n))m=r===g?e:f,!l.has(r===g?`${t}.${p}.${n}`:`${n}.${p}.${t}`)&&uj(h,p,c)&m&&b.add(t)}return Array.from(b).filter(n=>this.me.has(n))}O(b,c){let d=this.me.get(b);void 0===d&&(d=new olympe.dc.db.Dt(b),this.me.set(b,d));return c?d.ob(c):d}T(b){const c=olympe.dc.Gb.DESTINATION;for(const [d,e]of this.ca(b))if(b=d.tag(),e.hi())this.C(b,e.O());else if(d.hi())e.D()&&this.C(b,d.O());else{d.Xd().forEach((f,g)=>{void 0!==
1358
- e.tc(g)&&d.Da(g)});for(const [f,g,h]of d.fi()){const l=e.yb(f,c,g);void 0!==l&&h!==l&&this.R(f,b,g)}}return this}*ca(b){var c=this.me;const d=b.me,e=(b=b.Tc()>this.Tc())?d:c;c=b?c:d;for(const [f,g]of c)c=e.get(f),void 0!==c&&(yield[b?g:c,b?c:g])}};olympe.dc.db.Rf.Aa=[olympe.dc.fu,olympe.dc.eL];const Nj=olympe.dc.db.Database.Event,Oj=olympe.dc.db.Database.C.sw,Pj=olympe.dc.db.Database.C.fS,Qj=olympe.dc.db.Database.C.zj,Rj=olympe.dc.db.Database.C.TB,Sj=olympe.dc.db.Database.C.Mv,Tj=olympe.dc.Gb.ORIGIN,Uj=olympe.dc.Gb.DESTINATION,Vj=olympe.dc.Lf.uh,Wj=olympe.dc.Lf.nt;function mi(a,b,c=!1){const d=a.get(Qj+b);return c||void 0!==d?d:a.get(Pj+b)}function Ei(a,b){const c=a.e!==b;c&&(b?(a.e=b,Xj(a)):(Yj(a),a.e=b),a.db.D(b?Nj.zC:Nj.Rg,a.C));return c}
1358
+ e.tc(g)&&d.Da(g)});for(const [f,g,h]of d.fi()){const l=e.yb(f,c,g);void 0!==l&&h!==l&&this.R(f,b,g)}}return this}*ca(b){var c=this.me;const d=b.me,e=(b=b.Tc()>this.Tc())?d:c;c=b?c:d;for(const [f,g]of c)c=e.get(f),void 0!==c&&(yield[b?g:c,b?c:g])}};olympe.dc.db.Sf.Aa=[olympe.dc.fu,olympe.dc.eL];const Nj=olympe.dc.db.Database.Event,Oj=olympe.dc.db.Database.C.sw,Pj=olympe.dc.db.Database.C.fS,Qj=olympe.dc.db.Database.C.zj,Rj=olympe.dc.db.Database.C.TB,Sj=olympe.dc.db.Database.C.Mv,Tj=olympe.dc.Gb.ORIGIN,Uj=olympe.dc.Gb.DESTINATION,Vj=olympe.dc.Lf.uh,Wj=olympe.dc.Lf.nt;function mi(a,b,c=!1){const d=a.get(Qj+b);return c||void 0!==d?d:a.get(Pj+b)}function Ei(a,b){const c=a.e!==b;c&&(b?(a.e=b,Xj(a)):(Yj(a),a.e=b),a.db.D(b?Nj.zC:Nj.Rg,a.C));return c}
1359
1359
  function Fi(a,b){const c=a.model();if(null!==c){if(c===b)return;Ki(a,Vj,c)}Hi(a,Vj,b);b.forEach((d,e)=>{if(e[0]===Qj||e[0]===Pj)e=e.substring(1),Zj(a,e,d)});null===a.R||!b.e&&b!==a||a.db.fa(a,!0)}function Gi(a,b){const c=a.Mm();if(null!==c){if(c===b)return;Ki(a,Wj,c)}Hi(a,Wj,b);const d=new Map;b.forEach((e,f)=>{if(f[0]===Qj||f[0]===Pj)f=f.substring(1),a.has(Qj+f)||(a.set(Pj+f,e),d.set(f,e))});ak(a,d)}
1360
1360
  function Hi(a,b,c){var d=Tj+b;const e=bk(a,Uj+b);d=bk(c,d);e.has(c.C)||(e.set(c.C,c),d.set(a.C,a),a.db.D(Nj.Wz,a.C,b,Uj,c.C),a.db.D(Nj.Wz,c.C,b,Tj,a.C),a.e&&c.e&&(ck(a,b,Uj,c,!0),ck(c,b,Tj,a,!0)))}function Ii(a,b){Ki(a,Vj,b);a.forEach((c,d)=>{c=d.substring(1);Zj(a,c,null)});a.db.fa(a,!1)}function Ji(a,b){Ki(a,Wj,b);const c=new Map;a.forEach((d,e)=>{e[0]===Pj&&(a.delete(e),d=e.substring(1),c.set(d,null))});ak(a,c)}
1361
1361
  function Ki(a,b,c){const d=Tj+b;void 0!==dk(a,Uj+b,c.C)&&(dk(c,d,a.C),a.db.D(Nj.FD,a.C,b,Uj,c.C),a.db.D(Nj.FD,c.C,b,Tj,a.C),a.e&&c.e&&(ck(a,b,Uj,c,!1),ck(c,b,Tj,a,!1)))}function Si(a,b,c){const d=Qj+b;var e=a.get(d);e=void 0===e?null:e;if(!ek(e,c))if(fk(a,b,e,c,!0),e=Pj+b,null===c){a.delete(d);let f;c=null==(f=a.Mm())?void 0:mi(f,b);c=void 0===c?null:c;null!==c&&a.set(e,c);ak(a,(new Map).set(b,c))}else void 0!==a.get(e)&&a.delete(e),a.set(d,c),ak(a,(new Map).set(b,c))}
@@ -1378,22 +1378,22 @@ b)}Fa(b=(c,d,e)=>[c,d,e]){return this.Ka(this.C,b)}Ha(b=(c,d,e,f)=>[c,d,e,f]){co
1378
1378
  g)}}};olympe.dc.db.Dt.C={lD:0,kA:1,Rg:2};olympe.dc.db.RT=class{constructor(a,b,c,d){this.V=a;this.view=b;this.C=c;(this.active=d.get('active'))&&this.init()}debug(a){const b=olympe.dc.Va(a);if(this.C.has(b)){var c=this.C.get(a);a='\n[DEBUG - DATABASE]\n'+c.toString();if(!c.rc()){const d=[];for(;null!==c&&!d.includes(c.tag());)d.push(c.tag()),c=c.model();c=this.C.get(d[d.length-1]);const e=olympe.dc.db.Database.C.sw+olympe.dc.CloudObject.nameProp.ka();d.push('???');a+='\n\nThe instance <<'+b+'>> does not exists because the instance '+c.tag()+
1379
1379
  ' (name: '+c.get(e)+') has no model.\nList: '+d.join(' --M--\x3e ')}this.V.info(a)}else this.V.info('[DATABASE] Instance',b,'has never been created or referred by the database')}init(){const a=olympe.dc.db.Database.Event.mH,b=olympe.dc.db.Database.Event.zC,c=olympe.dc.db.Database.Event.Rg,d=olympe.dc.db.Database.Event.Wz,e=olympe.dc.db.Database.Event.FD,f=olympe.dc.db.Database.Event.BG,g=olympe.dc.db.Database.Event.CG,h=()=>{};this.C.C(olympe.dc.db.Database.Event.lH,()=>{});this.C.C(a,()=>{});this.C.C(b,
1380
1380
  l=>{this.C.Ka(()=>{rj(this.view,l,h,`monitorRelations${l}`)})});this.C.C(c,l=>{this.C.Ka(()=>{sj(this.view,l,`monitorRelations${l}`)})});this.C.C(d,()=>{});this.C.C(e,()=>{});this.C.C(f,()=>{});this.C.C(g,()=>{})}};function ti(a,b){if(null!==a.transactionId)throw Error('A transaction is already open');a.transactionId=a.C.xg(b);a.V.debug(`DB Writer: transaction ${a.transactionId} opened`)}
1381
- olympe.dc.db.aE=class{constructor(a,b,c,d){this.V=a;this.C=b;this.$a=c;this.O=d;this.transactionId=null}write(a,b){b&&(b=new ik(this.$a),a.Wf(b),this.V.info(b.flush()));if(null===this.transactionId)throw Error('You must first open a transaction before to write');this.V.debug('DB Writer: writing patch',a.ja(),'for transaction',this.transactionId);this.C.og(this.transactionId,()=>a.Wf(this))}close(){if(null===this.transactionId)throw Error('No transaction is open');this.C.Zb(this.transactionId);this.V.debug(`DB Writer: transaction ${this.transactionId} committed`);
1382
- this.transactionId=null}Af(a,b,c,d){this.C.create(a,b,c,this.O);d&&this.C.Fa(olympe.dc.Lf.uh,a,d)}qh(a,b){this.C.update(a,b)}D(a,b=olympe.dc.Ee.NONE){for(const c of li(this.$a,a,b))this.C.Da(c)}Pb(a,b,c){this.C.Fa(a,b,c)}Xf(a,b,c){this.C.Sc(a,b,c)}};
1381
+ olympe.dc.db.aE=class{constructor(a,b,c,d){this.V=a;this.C=b;this.$a=c;this.O=d;this.transactionId=null}write(a,b){b&&(b=new ik(this.$a),a.Xf(b),this.V.info(b.flush()));if(null===this.transactionId)throw Error('You must first open a transaction before to write');this.V.debug('DB Writer: writing patch',a.ja(),'for transaction',this.transactionId);this.C.og(this.transactionId,()=>a.Xf(this))}close(){if(null===this.transactionId)throw Error('No transaction is open');this.C.Zb(this.transactionId);this.V.debug(`DB Writer: transaction ${this.transactionId} committed`);
1382
+ this.transactionId=null}Af(a,b,c,d){this.C.create(a,b,c,this.O);d&&this.C.Fa(olympe.dc.Lf.uh,a,d)}qh(a,b){this.C.update(a,b)}D(a,b=olympe.dc.Ee.NONE){for(const c of li(this.$a,a,b))this.C.Da(c)}Pb(a,b,c){this.C.Fa(a,b,c)}Yf(a,b,c){this.C.Sc(a,b,c)}};
1383
1383
  function jk(a,b,c){if(!b)return'';let d='';if(c&&1<c)return'...';for(const [e,f]of b)if(d+=(d?', "':'"')+e+'":',!f)d+=JSON.stringify(f);else if(f instanceof olympe.dc.yf||f instanceof olympe.dc.CloudObject)d+='Reference("'+f.ka()+'")';else if(f instanceof olympe.j.Color)d+='Color("'+f.Ck()+','+f.Ak()+','+f.yk()+','+f.xk()+'")';else if(f.constructor&&Object.prototype.hasOwnProperty.call(f.constructor.prototype,'toString'))d+=JSON.stringify(f.toString());else if('object'===typeof f){let g;d+=jk(a,f,
1384
1384
  (null!=(g=c)?g:0)+1)}return'{'+(d?d:'')+'}'}function kk(a,b){let c;return'string'===typeof b?null!=(c=a.db.name(b))?c:b:''}function lk(a,b){let c;return b===olympe.dc.Lf.uh?'Model':null!=(c=a.db.name(b))?c:b}
1385
- class ik{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}`:''}`}Af(a,b,c,d){this.log(`createInstance(tag: ${a}, source: ${b}, ${jk(this,c)})`,kk(this,d))}qh(a,b,c){this.log(`updateInstance(tag: ${a}, ${jk(this,b)})`,kk(this,c))}D(a,b,c){this.log(`deleteInstance("${a}", rule: ${b})`,kk(this,c))}Pb(a,b,c){this.log(`createRelation("${a}", "${b}", "${c}")`,lk(this,a))}Xf(a,b,c){this.log(`deleteRelation("${a}", "${b}", "${c}")`,
1385
+ class ik{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}`:''}`}Af(a,b,c,d){this.log(`createInstance(tag: ${a}, source: ${b}, ${jk(this,c)})`,kk(this,d))}qh(a,b,c){this.log(`updateInstance(tag: ${a}, ${jk(this,b)})`,kk(this,c))}D(a,b,c){this.log(`deleteInstance("${a}", rule: ${b})`,kk(this,c))}Pb(a,b,c){this.log(`createRelation("${a}", "${b}", "${c}")`,lk(this,a))}Yf(a,b,c){this.log(`deleteRelation("${a}", "${b}", "${c}")`,
1386
1386
  lk(this,a))}}olympe.dc.db.aE.Aa=[olympe.dc.fu,olympe.dc.fu];olympe.dc.db.ba={Wb:'dc.db.Logger',IC:'dc.db.gc.Logger',Nb:'dc.db.DatabaseManager',Wy:'dc.db.Database',sC:'dc.db.DBView',$0:'dc.db.Graph',X_:'dc.db.DatabaseWriter',X1:'dc.db.PermissionProcessor',jw:'dc.db.GraphMonitor'};olympe.dc.db.Config={JH:'db.garbageCollector',KH:'db.garbageCollectorDelay',iC:'db.commitBufferTimeout',jw:'db.monitor',LT:'db.monitorCounters',KT:'db.monitorCallbacks',aH:'db.debug'};
1387
1387
  olympe.ra.bf(function(a){E(a,olympe.dc.db.Config.JH,olympe.dc.db.fo.C.UF);E(a,olympe.dc.db.Config.KH,5E3);E(a,olympe.dc.db.Config.iC,3E4);E(a,olympe.dc.db.Config.jw,!1);E(a,olympe.dc.db.Config.aH,!1);C(a,olympe.dc.db.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('db'));C(a,olympe.dc.db.ba.IC,[olympe.fb.ba.Nb],b=>b.Yg('gc'));C(a,olympe.dc.db.ba.Wy,[olympe.dc.db.ba.Wb,olympe.dc.db.ba.IC,new olympe.ra.xb(olympe.dc.Config.Fr),new olympe.ra.xb(olympe.dc.db.Config.JH),new olympe.ra.xb(olympe.dc.db.Config.KH),new olympe.ra.xb(olympe.dc.Config.Vt),
1388
1388
  new olympe.ra.xb(olympe.dc.db.Config.aH)],(b,c,d,e,f,g,h)=>{e=g?olympe.dc.db.fo.C.vC:e;d=(new Map).set('selfTag',d).set('garbageCollector',e).set('garbageCollectorDelay',f).set('debug',h);return new olympe.dc.db.Database(b,c,d)});B(a,olympe.dc.db.ba.sC,olympe.dc.Dd,olympe.dc.db.ba.Wb,olympe.dc.db.ba.Wy);C(a,olympe.dc.db.ba.jw,[olympe.dc.db.ba.Nb],b=>b.RY);C(a,olympe.dc.db.ba.Nb,[olympe.dc.db.ba.Wb,olympe.dc.db.ba.Wy,olympe.dc.db.ba.sC,new olympe.ra.xb(olympe.dc.Config.Dp),new olympe.ra.xb(olympe.dc.db.Config.iC),
1389
1389
  new olympe.ra.xb(olympe.dc.db.Config.jw),new olympe.ra.xb(olympe.dc.db.Config.LT),new olympe.ra.xb(olympe.dc.db.Config.KT)],(b,c,d,e,f,g,h,l)=>{g=(new Map).set('active',g).set('counters',h).set('callbacks',l);e=(new Map).set('debug',e).set('bufferTimeout',f);return new olympe.dc.db.tR(b,c,d,e,g)})},'olympe.dc.db');olympe.ra.run([olympe.dc.db.ba.Wy,olympe.dc.db.ba.jw],(a,b)=>{olympe.Sj().db=a;olympe.Sj().dbMonitor=b},'DC.DB debug service injection');olympe.dc.query={};function mk(a){return(b,c)=>{const d=null===b,e=null===c;return d||e?d&&e?0:d?1:-1:a(b,c)}}
1390
1390
  olympe.dc.query.$n=class{constructor(a,b,c){this.db=olympe.dc.$a();this.C=a;this.ec=b;this.gw=c}gb(){return{p:this.ec.ka(),o:this.gw}}toString(){return'sortByQueryPart-'+this.gw+this.ec.ka()}ds(){const a=this.db.Zd(this.ec,olympe.dm.Property.typeRel),b=olympe.dc.Va;if(this.db.fn(a,olympe.dm.String))return mk((c,d)=>c.localeCompare(d));if(a===b(olympe.dm.Number)||a===b(olympe.dm.Boolean))return mk((c,d)=>c-d);if(a===b(olympe.dm.DateTime))return mk((c,d)=>c.getTime()-d.getTime());if(a===b(olympe.dm.Color))return mk((c,
1391
- d)=>c.compare(d));olympe.fb.tb('dc.query').warn(`No comparator found for type with tag ${a}`);return mk(()=>-1)}tc(){return this.ec}};olympe.dc.Zk=class{ka(){}};olympe.dc.Zk.prototype.getTag=olympe.dc.Zk.prototype.ka;olympe.dc.e1=olympe.dc.Zk;function nk(a){let b;if(null==(b=a.C)?0:b.Ki())if(a=a.T,!a.T){let c;null==(c=a.W)||c.call(a)}}function ok(a,b,c){if(a.db.source(b)===a.source){var d=`${a.D}:${b}:notif`;Mh(a.db,b,(e,f)=>{if(e){nk(a);let g;null==(g=a.C)||g.$(f)}else if(c&&nj(a.db,f,d),!a.db.rc(f)){nk(a);let g;null==(g=a.C)||g.D(f,olympe.dc.Ee.NONE)}},d);c&&mj(a.db,b,(e,f,g)=>{nk(a);let h;g||null!=(h=a.C)&&h.qh(b,new Map([[e,f]]))},d)}}function pk(a,b,c,d,e){nk(a);let f,g;b?null==(f=a.C)||f.Pb(c,d,e):null==(g=a.C)||g.Xf(c,d,e)}
1392
- function qk(a){let b;const c=!(null==(b=a.C)?0:b.Ki());a.O=c?a.C:null;a.R.forEach(d=>d());a.R=[];c&&(a.C=new olympe.dc.db.Rf,a.V.C()&&a.V.debug(`Commit notification with ${a.O.Tc()} operations for query ${a.D}`))}olympe.dc.query.XT=class{constructor(a,b,c,d){this.V=a;this.source=b;this.D=c;this.T=d;this.C=this.O=null;this.db=olympe.dc.$a();this.R=[]}stop(a){this.R.push(()=>Jh(this.db,a,`${this.D}:${a}:notif`))}};olympe.dc.query.Nz={ASC:'ASC',DESC:'DESC'};function rk(a){const b=sk(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',h=0<e&&b[e-1].T(),l=a.C.get(f),m=new Set(l.ng()),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 A;n.set(y,Array.from(w).map(H=>p?`${x};${H}`:H).reduce((H,G)=>H.add(G),null!=(A=n.get(y))?A:new Set))}m.delete(x)});u&&m.forEach(w=>{const x=p?`${w};${v}`:v;for(const y of l.C(w)){let A;n.set(y,
1391
+ d)=>c.compare(d));olympe.fb.tb('dc.query').warn(`No comparator found for type with tag ${a}`);return mk(()=>-1)}tc(){return this.ec}};olympe.dc.Zk=class{ka(){}};olympe.dc.Zk.prototype.getTag=olympe.dc.Zk.prototype.ka;olympe.dc.e1=olympe.dc.Zk;function nk(a){let b;if(null==(b=a.C)?0:b.Ki())if(a=a.T,!a.T){let c;null==(c=a.W)||c.call(a)}}function ok(a,b,c){if(a.db.source(b)===a.source){var d=`${a.D}:${b}:notif`;Mh(a.db,b,(e,f)=>{if(e){nk(a);let g;null==(g=a.C)||g.$(f)}else if(c&&nj(a.db,f,d),!a.db.rc(f)){nk(a);let g;null==(g=a.C)||g.D(f,olympe.dc.Ee.NONE)}},d);c&&mj(a.db,b,(e,f,g)=>{nk(a);let h;g||null!=(h=a.C)&&h.qh(b,new Map([[e,f]]))},d)}}function pk(a,b,c,d,e){nk(a);let f,g;b?null==(f=a.C)||f.Pb(c,d,e):null==(g=a.C)||g.Yf(c,d,e)}
1392
+ function qk(a){let b;const c=!(null==(b=a.C)?0:b.Ki());a.O=c?a.C:null;a.R.forEach(d=>d());a.R=[];c&&(a.C=new olympe.dc.db.Sf,a.V.C()&&a.V.debug(`Commit notification with ${a.O.Tc()} operations for query ${a.D}`))}olympe.dc.query.XT=class{constructor(a,b,c,d){this.V=a;this.source=b;this.D=c;this.T=d;this.C=this.O=null;this.db=olympe.dc.$a();this.R=[]}stop(a){this.R.push(()=>Jh(this.db,a,`${this.D}:${a}:notif`))}};olympe.dc.query.Nz={ASC:'ASC',DESC:'DESC'};function rk(a){const b=sk(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',h=0<e&&b[e-1].T(),l=a.C.get(f),m=new Set(l.ng()),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 A;n.set(y,Array.from(w).map(H=>p?`${x};${H}`:H).reduce((H,G)=>H.add(G),null!=(A=n.get(y))?A:new Set))}m.delete(x)});u&&m.forEach(w=>{const x=p?`${w};${v}`:v;for(const y of l.C(w)){let A;n.set(y,
1393
1393
  (null!=(A=n.get(y))?A: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 A;null==(A=t.get(y))||A.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(A=>A+v)))});b[e-1].T()&&t.forEach((x,y)=>{w.set(y,new Set(Array.from(x).map(A=>
1394
1394
  r+A)))});c.set(g,[w,u&&h,r+v])}else c.set(g,[n,h,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 tk(a){if(null===a.D){const b={Re:a.query.ds(),Si:a.Si,max:a.query.C.max,offset:a.query.C.offset};a.D=olympe.dc.Bc.from(a.$,rk(a),b)}return a.D}function uk(a,b){a.W=b}function vk(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)}}
1395
1395
  function wk(a,b){let c;return null!=(c=a.C.get(b).ng())?c:[]}function xk(a,b,c){let d,e;return null!=(e=null==(d=a.C.get(c))?void 0:d.has(b))?e:!1}function yk(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)&&vk(a);let g;f&&(null==(g=a.Kl)||ok(g,b,a.R.has(c)));return f}function zk(a,b,c,d,e,f){null!==a.Kl&&(d===olympe.dc.Gb.ORIGIN?pk(a.Kl,b,c,f,e):pk(a.Kl,b,c,e,f))}
1396
- function Ak(a){a.V.C()&&a.V.debug(`Start sending notifications for query ${a.query.ja()}`);const b=new olympe.dc.query.XT(a.V,a.query.Cd(),a.query.ja(),a);a.C.forEach((c,d)=>{for(const e of c.ng())ok(b,e,a.R.has(d))});null!=b.C||(b.C=new olympe.dc.db.Rf);a.Kl=b}function Bk(a){null!==a.Kl&&(a.V.C()&&a.V.debug(`Stop sending notifications for query ${a.query.ja()}`),a.C.forEach(b=>{for(const c of b.ng())a.Kl.stop(c)}),a.Kl=null)}function Ck(a){a.T=!1;let b;null==(b=a.Kl)||qk(b)}
1396
+ function Ak(a){a.V.C()&&a.V.debug(`Start sending notifications for query ${a.query.ja()}`);const b=new olympe.dc.query.XT(a.V,a.query.Cd(),a.query.ja(),a);a.C.forEach((c,d)=>{for(const e of c.ng())ok(b,e,a.R.has(d))});null!=b.C||(b.C=new olympe.dc.db.Sf);a.Kl=b}function Bk(a){null!==a.Kl&&(a.V.C()&&a.V.debug(`Stop sending notifications for query ${a.query.ja()}`),a.C.forEach(b=>{for(const c of b.ng())a.Kl.stop(c)}),a.Kl=null)}function Ck(a){a.T=!1;let b;null==(b=a.Kl)||qk(b)}
1397
1397
  olympe.dc.query.cL=class{constructor(a,b){this.V=a;this.query=b;this.O=olympe.la.Sd(b.D);this.vb=new Map;this.C=(new Map).set(this.O,new olympe.dc.query.vb.PD);this.R=new Set(b.O);this.Si=-1;this.T=!1;this.W=null;this.$=olympe.dc.Bc.empty();this.Kl=this.D=null;a=sk(b);a.forEach(c=>{const d=c.ja();this.vb.set(d,c.clone());this.C.set(d,c.fa())});b=b.ds();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.Si=c;break}}}remove(a,b=this.O,c='root'){b=
1398
1398
  this.C.get(b);if(null==b?0:b.remove(a,c))if(vk(this),!b.has(a)){let d;null==(d=this.Kl)||d.stop(a);return!0}return!1}Xg(a){const b=a.D,c=olympe.la.Sd(b);a=sk(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 h=(null!=(g=e.get(f.C))?g:[]).flatMap(l=>f.$(l,this.vb.get(l))).filter(l=>{let m,n;return null!=(n=null==(m=this.vb.get(l))?void 0:m.Xg(f))?n:!1});e.set(f.ja(),h);return 0<h.length})}};function Dk(a){if(!olympe.dc.$a().pe(a,olympe.dm.Property))throw new olympe.dc.query.Bi(`The specified property while trying to build a query predicate is invalid: ${a}`);}
1399
1399
  function Ek(a){var b=olympe.dc.query.Rb.C.jM;const c=olympe.dc.query.Rb.C.oH,d=olympe.dc.query.Rb.C.Ty,e=olympe.dc.query.Rb.C.mI,f=olympe.dc.query.Rb.C.CK,g=olympe.dc.query.Rb.C.mL,h=olympe.dc.query.Rb.C.TF,l=olympe.dc.query.Rb.C.PK,m=olympe.dc.query.Rb.C.kI;switch(a.pr){case b:return new olympe.dc.query.za.UD(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.za.Wk(a.p,b,olympe.dc.$a());
@@ -1420,7 +1420,7 @@ b?0:b.$g)?b.$g:olympe.dc.nb.Kf.mm;a='function'===typeof a.ve?a.ve():a;let d;retu
1420
1420
  return{b:this.D,p:this.vb.map(b=>b.gb()),r:Array.from(this.O),s:this.source,e:{m:this.C.max,o:this.C.offset,s:this.C.Si,rm:null!=(a=this.C.Pl)?a:this.db.model(this.D)}}}toString(){return`Query: ${JSON.stringify(this)}`}toJSON(){return{origin:this.db.rc(this.D)?olympe.dc.CloudObject.get(this.D):this.D,relations:this.vb.map(a=>a.toJSON())}}};olympe.dc.nb.prototype.observe=olympe.dc.nb.prototype.observe;olympe.dc.nb.prototype.executeFromCache=olympe.dc.nb.prototype.tf;
1421
1421
  olympe.dc.nb.prototype.execute=olympe.dc.nb.prototype.Fd;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.zv;olympe.dc.nb.prototype.limit=olympe.dc.nb.prototype.mn;olympe.dc.nb.prototype.cast=olympe.dc.nb.prototype.Uw;olympe.dc.nb.prototype.filter=olympe.dc.nb.prototype.filter;olympe.dc.nb.prototype.andReturn=olympe.dc.nb.prototype.ej;olympe.dc.nb.prototype.followRecursively=olympe.dc.nb.prototype.iq;
1422
1422
  olympe.dc.nb.prototype.follow=olympe.dc.nb.prototype.kc;olympe.dc.nb.followRule=olympe.dc.nb.cf;olympe.dc.nb.instancesOf=olympe.dc.nb.fB;olympe.dc.nb.fromTag=olympe.dc.nb.xl;olympe.dc.nb.from=olympe.dc.nb.from;olympe.dc.nb.Kf={mm:1,Pz:2,Zp:3};olympe.dc.nb.C={fC:'cacheBucketName',tI:'isCacheable'};function Nk(a){null===a.ac&&null===a.C&&(a.ac=Vh(a.O))}
1423
- olympe.dc.query.Ci=class extends olympe.dc.gr{constructor(a){super(a,null);this.O=new olympe.dc.transaction.gl}static ex(a){const b=new olympe.dc.query.Ci(`DataResult_${a.ja()}`);b.D=a.Cd();return b}static C(a){const b=new olympe.dc.query.Ci(a.i);let c;b.D=null!=(c=a.s)?c:null;let d;b.wA=null!=(d=a.t)?d:null;let e;b.ac=null!=(e=a.p)?e:[];return b}Wf(a){Nk(this);return super.Wf(a)}ag(){Nk(this);return super.ag()}SA(){Nk(this);return super.SA()}create(a,b,c){this.O.Af(a,this.D,c,b);return this}Pb(a,
1423
+ olympe.dc.query.Ci=class extends olympe.dc.gr{constructor(a){super(a,null);this.O=new olympe.dc.transaction.gl}static ex(a){const b=new olympe.dc.query.Ci(`DataResult_${a.ja()}`);b.D=a.Cd();return b}static C(a){const b=new olympe.dc.query.Ci(a.i);let c;b.D=null!=(c=a.s)?c:null;let d;b.wA=null!=(d=a.t)?d:null;let e;b.ac=null!=(e=a.p)?e:[];return b}Xf(a){Nk(this);return super.Xf(a)}Of(){Nk(this);return super.Of()}SA(){Nk(this);return super.SA()}create(a,b,c){this.O.Af(a,this.D,c,b);return this}Pb(a,
1424
1424
  b,c){this.O.Pb(a,b,c,null,null);return this}gb(){return super.gb()}};olympe.dc.query.Ci.prototype.createRelation=olympe.dc.query.Ci.prototype.Pb;olympe.dc.query.Ci.prototype.create=olympe.dc.query.Ci.prototype.create;olympe.dc.query.Ci.fromQuery=olympe.dc.query.Ci.ex;function Lk(a,b){const c=new olympe.dc.query.cL(a.V,b);if(a.D.view.rc(b.D)){yk(c,b.D);for(const d of sk(b))d.Fd(c)}return c}
1425
1425
  function Mk(a,b,c,d,e,f){const g=b.ja();let h=a.C.get(g);if(!h){var l=b.Cd();a.V.debug(`Create new subscription for query ${g} for subscriber ${d}, to be executed by the data source ${l}`);l=!1===f.mg||a.R&&l===olympe.dc.vc.SERVER?[]:Array.from(a.C.values());h=new olympe.dc.query.kL(a.V,a.D,b,e,a.W.bind(a,e,f));a.C.set(g,h);Ok(h,m=>a.O.add(m));h.start(l)&&(null==f?0:f.Wr)&&Pk(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=>
1426
1426
  {const n=()=>{p&&c.DP(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.vc.SELF&&(u.ca--,0===u.ca&&Bk(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.We(n),r=Qk(h,d,m);return n})}
@@ -1434,13 +1434,13 @@ m(!0)},0)).subscribe(rxjs.Subscriber.create(t=>{Array.isArray(h)?h.push(t):Tk(th
1434
1434
  olympe.dc.Bc=class{constructor(){this.C=[];this.D=new Map;this.O=[];this.R=[];this.hash=''}static empty(){return new olympe.dc.Bc}[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()}Wl(){return this.C.map(a=>this.D.get(a))}size(){return this.C.length}has(a){return this.D.has(a)||this.Wl().includes(a)}indexOf(a){return null===
1435
1435
  a||void 0===a?-1:'string'===typeof a?this.C.indexOf(a):this.Wl().indexOf(a)}get(a){return(a=this.D.get(a))?a:null}be(){return this.Lh(0)}Lh(a){return a<this.C.length?this.D.get(this.C[a]):null}push(...a){const b=this.Wl();b.push(...a);return b}pop(){if(0===this.C.length)return[];const a=this.Wl();a.pop();return a}shift(){if(0<this.C.length){const a=this.Wl();a.shift();return a}return[]}filter(a){return this.Wl().filter(a)}find(a){return(a=this.Wl().find(a))?a:null}forEach(a){this.C.forEach((b,c)=>
1436
1436
  a(this.D.get(b),c))}map(a){return this.Wl().map(a)}sort(a){const b=this.entries().sort((c,d)=>a(c[1],d[1]));return olympe.dc.Bc.create(b,Array.from(this.O),Array.from(this.R))}reduce(a,b){return this.Wl().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.Bc.create(b,c,a)}toString(){return`QueryResult: ${JSON.stringify(this)}`}toJSON(){return this.Wl()}xu(){return this.O.map(a=>
1437
- this.D.get(this.C[a]))}Fu(){return this.R.map(a=>{a=a.split('.');return 1===a.length?a[0]:a})}static from(a,b,{Re:c,Si:d,offset:e,max:f}={}){if(null!==c&&-1<d){const p=olympe.dc.$a(),r=c.gw===olympe.dc.query.Nz.ASC?1:-1,t=c.ds(),u=c.tc();b.sort((v,w)=>{w=w[d];v=p.tc(v[d],u);w=p.tc(w,u);return null===v?-r:null===w?r:r*t(olympe.dc.zd.Yf(v),olympe.dc.zd.Yf(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.Sd(b.flat().join(''));
1437
+ this.D.get(this.C[a]))}Fu(){return this.R.map(a=>{a=a.split('.');return 1===a.length?a[0]:a})}static from(a,b,{Re:c,Si:d,offset:e,max:f}={}){if(null!==c&&-1<d){const p=olympe.dc.$a(),r=c.gw===olympe.dc.query.Nz.ASC?1:-1,t=c.ds(),u=c.tc();b.sort((v,w)=>{w=w[d];v=p.tc(v[d],u);w=p.tc(w,u);return null===v?-r:null===w?r:r*t(olympe.dc.zd.Zf(v),olympe.dc.zd.Zf(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.Sd(b.flat().join(''));
1438
1438
  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 h=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=>{!h.has(p)&&n.push(p)});return olympe.dc.Bc.create(e,m,n,c)}static create(a,b,c,d){const e=new olympe.dc.Bc;e.C=a.map(f=>f[0]);e.D=new Map(a);e.hash=d||olympe.la.Sd(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);
1439
1439
  return{k:this.C,a:this.O,r:this.R}}};olympe.dc.Bc.prototype.getRemoved=olympe.dc.Bc.prototype.Fu;olympe.dc.Bc.prototype.getAdded=olympe.dc.Bc.prototype.xu;olympe.dc.Bc.prototype.concat=olympe.dc.Bc.prototype.concat;olympe.dc.Bc.prototype.reduce=olympe.dc.Bc.prototype.reduce;olympe.dc.Bc.prototype.sort=olympe.dc.Bc.prototype.sort;olympe.dc.Bc.prototype.map=olympe.dc.Bc.prototype.map;olympe.dc.Bc.prototype.forEach=olympe.dc.Bc.prototype.forEach;olympe.dc.Bc.prototype.find=olympe.dc.Bc.prototype.find;
1440
1440
  olympe.dc.Bc.prototype.filter=olympe.dc.Bc.prototype.filter;olympe.dc.Bc.prototype.shift=olympe.dc.Bc.prototype.shift;olympe.dc.Bc.prototype.pop=olympe.dc.Bc.prototype.pop;olympe.dc.Bc.prototype.push=olympe.dc.Bc.prototype.push;olympe.dc.Bc.prototype.getAt=olympe.dc.Bc.prototype.Lh;olympe.dc.Bc.prototype.getFirst=olympe.dc.Bc.prototype.be;olympe.dc.Bc.prototype.get=olympe.dc.Bc.prototype.get;olympe.dc.Bc.prototype.indexOf=olympe.dc.Bc.prototype.indexOf;olympe.dc.Bc.prototype.has=olympe.dc.Bc.prototype.has;
1441
1441
  olympe.dc.Bc.prototype.size=olympe.dc.Bc.prototype.size;olympe.dc.Bc.prototype.toArray=olympe.dc.Bc.prototype.Wl;olympe.dc.Bc.prototype.keys=olympe.dc.Bc.prototype.keys;olympe.dc.Bc.prototype.values=olympe.dc.Bc.prototype.values;olympe.dc.Bc.prototype.entries=olympe.dc.Bc.prototype.entries;olympe.dc.Bc.empty=olympe.dc.Bc.empty;function Zk(a){return 1<a.size()?(olympe.fb.tb('dc').warn(`a follow() on a QuerySingle has ${a.size()} results (0 or 1 expected) -> returns null`),null):a.be()||null}olympe.dc.Yh=class{constructor(a){this.query=a}static from(a){return new olympe.dc.Yh(olympe.dc.nb.from(a))}kc(a){return new olympe.dc.Yh(this.query.kc(a))}Uw(){return this}Fd(a){return this.query.Fd(a).then(b=>Zk(b))}tf(){return Zk(this.query.tf())}};olympe.dc.Yh.prototype.executeFromCache=olympe.dc.Yh.prototype.tf;
1442
1442
  olympe.dc.Yh.prototype.execute=olympe.dc.Yh.prototype.Fd;olympe.dc.Yh.prototype.cast=olympe.dc.Yh.prototype.Uw;olympe.dc.Yh.prototype.follow=olympe.dc.Yh.prototype.kc;const $k=olympe.dc.Gb.ORIGIN,al=olympe.dc.Gb.DESTINATION;function Ok(a,b){uk(a.C,()=>{a.oc()||null!==a.D||b(a.query.ja())})}function Qk(a,b,c){const d=a.uid;a.uid++;a.O.set(d,c);b===olympe.dc.vc.SELF?a.Oi(e=>e?c.error(e):c.next(a.C)):(a.ca++,1===a.ca&&a.Oi(()=>Ak(a.C)));a.V.debug(`Add subscriber ${b} for query ${a.query.ja()}, now have ${a.O.size} subscribers`);return d}
1443
- function Xk(a,b,c){if(a.query.Cd()!==b)return!1;c.Wf(a.fa);(b=a.fa.flush())&&a.V.debug(`Subscription ${a.query.ja()} is considered as obsolete after the transaction ${c.ja()} applied on DB`);return b}function Sk(a){Ck(a.C);a.O.forEach(b=>{b.next(a.C)})}
1443
+ function Xk(a,b,c){if(a.query.Cd()!==b)return!1;c.Xf(a.fa);(b=a.fa.flush())&&a.V.debug(`Subscription ${a.query.ja()} is considered as obsolete after the transaction ${c.ja()} applied on DB`);return b}function Sk(a){Ck(a.C);a.O.forEach(b=>{b.next(a.C)})}
1444
1444
  function bl(a,b,c){const d=[];let e=!1;const f=new olympe.async.Qz(olympe.j.Oo());for(const g of b)if(g.Xg(a.query)&&(e||(e=!0),f.add(h=>g.Oi(l=>{!l&&d.push(g);h()}))),null!==g.D&&Kk(a.query,g.query)){let h;null==(h=a.W)||h.push(g)}Gd(f,g=>c(g?d:[]));f.start();return e}
1445
1445
  function cl(a){const b=a.query.ja(),c=new Map,d=r=>{const t=c.get(r);return t?1===t.size?Array.from(t)[0]:(u,v,w,x)=>t.forEach(y=>y(u,v,w,x)):()=>{}},e=sk(a.query),f=a.C;for(let r=e.length-1;0<=r;r--){var g=e[r];const t=g.ja(),u=g.C;g=g.observe(f,d(t));let v;c.set(u,(null!=(v=c.get(u))?v:new Set).add(g))}const h=a.db,l=a.query.D,m=olympe.la.Sd(l),n=Mh(h,l,(r,t)=>{r?yk(f,t):f.remove(t);d(m)(r,t,null,b)});let p;null==(p=a.$)||p.push(()=>{Jh(h,l,n)});dl(a)}
1446
1446
  function el(a){const b=a.Da(a.query,a.Ha.bind(a),()=>{null===a.D||a.oc()||cl(a)},d=>{a.oc()||(a.V.error(`Error while getting data from data source (${a.query.Cd()}) to ensure coverage of the query ${a.query.ja()}: ${d}`),dl(a))});let c;b&&(null==(c=a.$)||c.push(b))}function fl(a,b){a.T.delete(b);0===a.T.size&&(a.T=null,Promise.resolve().then(()=>{!a.oc()&&el(a)}))}function dl(a){const b=a.D;a.D=null;null==b||b.forEach(c=>c())}
@@ -1450,21 +1450,21 @@ olympe.dc.nb.Kf.Zp;if(this.$g===a)return olympe.la.stream.tap(c=>{c=c.SA().filte
1450
1450
  function hl(a,b){return a.C.has(al+b)||a.C.has($k+b)}
1451
1451
  class gl{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 sk(c)){a=f.ja();this.T.push(a);if(f instanceof olympe.dc.query.vb.St){a=f.relation;a=`${a.Cc()}${a.ka()}`;let g;b=null!=(g=this.C.get(a))?g:[];b.push(f);this.C.set(a,b)}il(f).forEach(g=>{let h;const l=null!=(h=e.get(g))?h:[];l.push(f.ja());e.set(g,l)})}this.properties=Array.from(e.entries())}flush(){const a=this.result;this.result=!1;return a}Af(){}qh(a,
1452
1452
  b){if(!(this.result||!this.R&&this.db.rc(a))){var c;this.result||(this.result=null==(c=this.properties)?void 0:c.some(([d,e])=>b.has(d)&&xk(this.O,a,e)))}}D(a){this.result||this.db.rc(a)&&!this.R||this.result||(this.result=this.T.some(b=>xk(this.O,a,b)))}Pb(a,b,c){if(!this.result&&hl(this,a)){var d=this.db.rc(b),e=this.db.rc(c);if(d&&!e||!d&&e){const f=this.C.get(al+a);a=this.C.get($k+a);this.result||(this.result=d&&(null==f?void 0:f.some(g=>xk(this.O,b,g.C)))||e&&(null==a?void 0:a.some(g=>xk(this.O,
1453
- c,g.C))))}}}Xf(a,b,c){if(!this.result&&this.R&&hl(this,a)&&this.db.zP(b,new olympe.dc.Qc.Relation(a),c)){const d=this.C.get(al+a);a=this.C.get($k+a);const e=this.O;this.result||(this.result=(null==d?void 0:d.some(f=>xk(e,b,f.C)&&xk(e,c,f.ja())))||(null==a?void 0:a.some(f=>xk(e,c,f.C)&&xk(e,b,f.ja()))))}}}olympe.dc.query.kL.Aa=[olympe.dc.fu];function jl(a){return new olympe.dc.query.Relation(a.tag,a.direction,!0)}
1453
+ c,g.C))))}}}Yf(a,b,c){if(!this.result&&this.R&&hl(this,a)&&this.db.zP(b,new olympe.dc.Qc.Relation(a),c)){const d=this.C.get(al+a);a=this.C.get($k+a);const e=this.O;this.result||(this.result=(null==d?void 0:d.some(f=>xk(e,b,f.C)&&xk(e,c,f.ja())))||(null==a?void 0:a.some(f=>xk(e,c,f.C)&&xk(e,b,f.ja()))))}}}olympe.dc.query.kL.Aa=[olympe.dc.fu];function jl(a){return new olympe.dc.query.Relation(a.tag,a.direction,!0)}
1454
1454
  olympe.dc.query.Relation=class extends olympe.dc.Qc.Relation{constructor(a,b,c){super(a,b);this.recursive=c}toJSON(){let a='{ "tag": '+JSON.stringify(this.ka())+', ';a+='"direction": '+JSON.stringify(this.Cc())+', ';a+='"recursive": '+JSON.stringify(this.recursive);return a+'}'}static ne(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.Cc(),null!=b?b:a instanceof olympe.dc.Qa.Ij)}ie(){const a=
1455
1455
  olympe.dc.Gb.DESTINATION,b=olympe.dc.Gb.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',uw:'dc.query.QueryProcessor'};olympe.ra.bf(function(a){C(a,olympe.dc.query.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('query'));B(a,olympe.dc.query.ba.uw,olympe.dc.query.vU,olympe.dc.query.ba.Wb,olympe.dc.db.ba.Nb,olympe.dc.transaction.ba.Nb,olympe.dc.ba.Ar,new olympe.ra.xb(olympe.dc.Config.Vt))});olympe.ra.run([olympe.dc.query.ba.uw],a=>{olympe.dc.query.UA=()=>a});olympe.dc.query.Bi=class extends Error{};olympe.dc.query.za={};olympe.dc.query.za.Ti=class extends olympe.dc.query.Rb{constructor(...a){super();this.za=a}compile(){return this.za.reduce((a,b)=>{const c=[];for(const d of b.compile()){for(const e of a)d.push(...e);c.push(d)}return c},[])}Te(){return new olympe.dc.query.za.fl(...this.za.map(a=>a.Te()))}Xd(){return this.za.flatMap(a=>a.Xd())}Xg(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}Fd(a){return this.za.reduce((b,c)=>b&&c.Fd(a),!0)}observe(a,
1456
1456
  b,c){const d=Array(this.za.length).fill(!1);let e=null;const f=(g,h)=>{d[g]=h;g=d.every(l=>l);e!==g&&(e=g,c(g))};this.za.forEach((g,h)=>{g.observe(a,olympe.la.Sd('AND-'+b+a+h),f.bind(null,h))})}gb(){return{pr:olympe.dc.query.Rb.C.TF,p:this.za.map(a=>a.gb())}}gh(){throw Error('toObject for AND predicate should not be called');}toString(){return'And-'+this.za.reduce((a,b)=>a+'-'+b.toString(),'')}clear(a,b){this.za.forEach((c,d)=>{c.clear(a,olympe.la.Sd('AND-'+b+a+d))})}};olympe.dc.query.za.bo=class extends olympe.dc.query.Rb{constructor(a,b,c,d=!1){super();this.ec=olympe.dc.Va(a);this.substring=b;this.db=c;this.C=d}Xd(){return[this.ec]}Xg(a,b){return a instanceof olympe.dc.query.za.bo&&a.ec===this.ec?b?a.C?a.substring.toLowerCase().includes(this.substring.toLowerCase()):a.substring.includes(this.substring):this.C?this.substring.toLowerCase().includes(a.substring.toLowerCase()):this.substring.includes(a.substring):!1}tc(){return this.ec}Fd(a){return this.apply(this.db.tc(a,
1457
- this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Yf(a);return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.ec+'-'+this.substring+'-'+this.C}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}gh(){return{name:'CONTAINS',property:this.tc(),value:this.substring,caseSensitive:this.C}}gb(){return{pr:olympe.dc.query.Rb.C.Ty,
1458
- p:this.ec,s:this.substring,c:this.C}}};olympe.dc.query.za.Wk=class extends olympe.dc.query.Rb{constructor(a,b,c){super();this.ec=olympe.dc.Va(a);this.C=olympe.dc.zd.Yf(null!=b?b:null);this.db=c}Xd(){return[this.ec]}Xg(a){if(a instanceof olympe.dc.query.za.Wk&&this.ec===a.ec)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===
1459
- a.C;return!1}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()));null===this.C&&null===this.db.tc(a,this.ec)&&c(!0)}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Yf(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:
1460
- a===this.C}toString(){let a,b;const c=null!=(b=null==(a=this.C)?void 0:a.toString())?b:'null';return'Equals-'+this.ec+'-'+c}gh(){return{name:'EQUALS',property:this.ec,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.Rb.C.oH,p:this.ec,t:a,v:b}}};olympe.dc.query.za.vI=class extends olympe.dc.query.Rb{constructor(a,b){var c=olympe.dc.$a();super();this.ec=olympe.dc.Va(a);this.values=b.map(d=>olympe.dc.zd.Yf(null!=d?d:null));this.db=c}Xd(){return[this.ec]}Xg(){return!1}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}apply(a){const b=olympe.dc.zd.Yf(a);return'object'===typeof b&&null!==
1457
+ this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Zf(a);return'string'===typeof a?this.C?a.includes(this.substring):a.toLowerCase().includes(this.substring.toLowerCase()):!1}toString(){return'Contains'+this.ec+'-'+this.substring+'-'+this.C}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}gh(){return{name:'CONTAINS',property:this.tc(),value:this.substring,caseSensitive:this.C}}gb(){return{pr:olympe.dc.query.Rb.C.Ty,
1458
+ p:this.ec,s:this.substring,c:this.C}}};olympe.dc.query.za.Wk=class extends olympe.dc.query.Rb{constructor(a,b,c){super();this.ec=olympe.dc.Va(a);this.C=olympe.dc.zd.Zf(null!=b?b:null);this.db=c}Xd(){return[this.ec]}Xg(a){if(a instanceof olympe.dc.query.za.Wk&&this.ec===a.ec)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===
1459
+ a.C;return!1}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()));null===this.C&&null===this.db.tc(a,this.ec)&&c(!0)}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Zf(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:
1460
+ a===this.C}toString(){let a,b;const c=null!=(b=null==(a=this.C)?void 0:a.toString())?b:'null';return'Equals-'+this.ec+'-'+c}gh(){return{name:'EQUALS',property:this.ec,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.Rb.C.oH,p:this.ec,t:a,v:b}}};olympe.dc.query.za.vI=class extends olympe.dc.query.Rb{constructor(a,b){var c=olympe.dc.$a();super();this.ec=olympe.dc.Va(a);this.values=b.map(d=>olympe.dc.zd.Zf(null!=d?d:null));this.db=c}Xd(){return[this.ec]}Xg(){return!1}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}apply(a){const b=olympe.dc.zd.Zf(a);return'object'===typeof b&&null!==
1461
1461
  b?b instanceof olympe.dc.CloudObject||b instanceof olympe.j.Color?this.values.some(c=>b.Sb(c)):b instanceof Date?this.values.some(c=>c instanceof Date&&c.getTime()===b.getTime()):!1:this.values.includes(b)}toString(){const a=this.values.map(b=>{let c;return null!=(c=null==b?void 0:b.toString())?c:'null'}).join('');return'In-'+this.ec+'-'+a}gh(){return{name:'IN',property:this.ec,values:this.values}}gb(){var a,b=null!=(a=this.values[0])?a:null;a=b instanceof olympe.j.Color?4:b instanceof olympe.dc.CloudObject?
1462
1462
  3:b instanceof Date?2:1;b=4===a||2===a?this.values.map(c=>c.toJSON()):3===a?this.values.map(c=>c.ka()):this.values;return{pr:olympe.dc.query.Rb.C.kI,p:this.ec,t:a,v:b}}};function kl(a,b,c){return olympe.la.Sd(c+b+a.C+a.ec)}
1463
1463
  olympe.dc.query.za.dw=class extends olympe.dc.query.Rb{constructor(a,b,c,d=!0,e=!0){super();this.db=a;this.ec=olympe.dc.Va(b);this.C=(this.O=('object'===typeof c||'string'===typeof c)&&olympe.dc.CloudObject.$w(c))?olympe.dc.Va(c):c;this.D=d;this.R=e}Te(){return new olympe.dc.query.za.dw(this.db,this.ec,this.C,!this.D,!this.R)}Xd(){return[this.ec]}Xg(a,b){if(b)throw Error('Check coverage of inequality should not happen with opposite = true');return a instanceof olympe.dc.query.za.dw&&this.ec===a.ec?
1464
1464
  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}tc(){return this.ec}Fd(a){return this.compare(this.db.tc(a,this.ec),this.O?this.db.tc(a,this.C):this.C)}observe(a,b,c){this.O&&kj(this.db,a,this.C,d=>{const e=this.db.tc(a,this.ec);null!==e&&c(this.compare(e,d))},kl(this,a,b));kj(this.db,a,this.ec,d=>{const e=this.O?this.db.tc(a,this.C):this.C;c(null!==e?this.compare(d,e):!0)},kl(this,a,b))}compare(a,b){return null===a?!1:null===b?!0:this.R?
1465
1465
  this.D?a<b:a>b:this.D?a<=b:a>=b}clear(a,b){lj(this.db,a,this.ec,kl(this,a,b));this.O&&lj(this.db,a,this.C,kl(this,a,b))}gh(){return{name:'INEQUALITY_OPERATOR',property:this.tc(),operator:this.D?'<':'>',strict:this.R,value:this.C}}gb(){return{pr:olympe.dc.query.Rb.C.mI,p:this.ec,b:this.C,l:this.D,s:this.R}}toString(){return(this.D?'LowerThan-':'GreaterThan-')+this.ec+'-'+this.R+'-'+this.C}};olympe.dc.query.za.rk=class extends olympe.dc.query.Rb{constructor(a){super();this.C=a}compile(){const a=this.C.Te();return this.Sb(a)?super.compile():a.compile()}Te(){return this.C}Xd(){return this.C.Xd()}Xg(a,b){return a instanceof olympe.dc.query.za.rk?this.C.Xg(a.C,b):this.C.Xg(a,!b)}Fd(a){return!this.C.Fd(a)}observe(a,b,c){let d=null;this.C.observe(a,olympe.la.Sd('NOT'+b+a),e=>{!e!==d&&(d=!e,c(d))})}gh(){return{name:'NOT',predicate:this.C.gh()}}gb(){return{pr:olympe.dc.query.Rb.C.CK,v:this.C.gb()}}toString(){return`NOT-${this.C.toString()}`}clear(a,
1466
1466
  b){this.C.clear(a,olympe.la.Sd('NOT'+b+a))}Sb(a){return a instanceof olympe.dc.query.za.rk?this.C.Sb(a.C):!1}};olympe.dc.query.za.fl=class extends olympe.dc.query.Rb{constructor(...a){super();this.za=a}compile(){return this.za.map(a=>a.compile()).flat()}Te(){return new olympe.dc.query.za.Ti(...this.za.map(a=>a.Te()))}Xd(){return this.za.flatMap(a=>a.Xd())}Xg(){throw Error('Should not try to check predicate coverage on And (should be removed by compiling predicates');}Fd(a){return this.za.reduce((b,c)=>b||c.Fd(a),!1)}observe(a,b,c){const d=Array(this.za.length).fill(!1);let e=null;const f=(g,h)=>{d[g]=h;g=
1467
- d.some(l=>l);e!==g&&(e=g,c(g))};this.za.forEach((g,h)=>{g.observe(a,olympe.la.Sd('OR-'+b+a+h),f.bind(null,h))})}gh(){throw Error('toObject for OR predicate should not be called');}gb(){return{pr:olympe.dc.query.Rb.C.PK,p:this.za.map(a=>a.gb())}}toString(){return'And-'+this.za.reduce((a,b)=>a.toString()+'-'+b.toString(),'')}clear(a,b){this.za.forEach((c,d)=>{c.clear(a,olympe.la.Sd('OR-'+b+a+d))})}};olympe.dc.query.za.wo=class extends olympe.dc.query.Rb{constructor(a,b,c,d=!0){super();this.ec=olympe.dc.Va(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}Xd(){return[this.ec]}Xg(a){return a instanceof olympe.dc.query.za.wo&&this.ec===a.ec&&this.C.toString()===a.C.toString()}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Yf(a);
1467
+ d.some(l=>l);e!==g&&(e=g,c(g))};this.za.forEach((g,h)=>{g.observe(a,olympe.la.Sd('OR-'+b+a+h),f.bind(null,h))})}gh(){throw Error('toObject for OR predicate should not be called');}gb(){return{pr:olympe.dc.query.Rb.C.PK,p:this.za.map(a=>a.gb())}}toString(){return'And-'+this.za.reduce((a,b)=>a.toString()+'-'+b.toString(),'')}clear(a,b){this.za.forEach((c,d)=>{c.clear(a,olympe.la.Sd('OR-'+b+a+d))})}};olympe.dc.query.za.wo=class extends olympe.dc.query.Rb{constructor(a,b,c,d=!0){super();this.ec=olympe.dc.Va(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}Xd(){return[this.ec]}Xg(a){return a instanceof olympe.dc.query.za.wo&&this.ec===a.ec&&this.C.toString()===a.C.toString()}Fd(a){return this.apply(this.db.tc(a,this.ec))}observe(a,b,c){kj(this.db,a,this.ec,d=>{c(this.apply(d))},olympe.la.Sd(b+a+this.toString()))}apply(a){a=olympe.dc.zd.Zf(a);
1468
1468
  return'string'===typeof a?(a=this.C.test(this.D?a:a.toLowerCase()),this.C.lastIndex=0,a):!1}toString(){return'Regex'+this.ec+'-'+this.C.toString()+'-'+this.D}gh(){return{name:'REGEX',property:this.ec,pattern:this.C,caseSensitive:this.D}}gb(){return{pr:olympe.dc.query.Rb.C.mL,p:this.ec,r:this.C.source,c:this.D}}clear(a,b){lj(this.db,a,this.ec,olympe.la.Sd(b+a+this.toString()))}};olympe.dc.query.za.UD=class extends olympe.dc.query.Rb{constructor(a){super();this.C=new Set(a.map(olympe.dc.Va))}Xd(){return[]}Xg(a){return a instanceof olympe.dc.query.za.UD&&Array.from(a.C).every(b=>this.C.has(b))}Fd(a){return this.C.has(a)}observe(a,b,c){c(this.C.has(a))}clear(){}toString(){return'Tags-'+Array.from(this.C)}gh(){return{name:'IS',tags:Array.from(this.C)}}gb(){return{pr:olympe.dc.query.Rb.C.jM,t:Array.from(this.C)}}};olympe.dc.query.vb={};function il(a){let b,c;const d=new Set(null!=(c=null==(b=a.D)?void 0:b.Xd())?c:[]);let e;a.Re&&d.add(null==(e=a.Re)?void 0:e.tc().ka());return d}function ll(a){if(!a.ca){let b,c;a.ca=null!=(c=null==(b=a.D)?void 0:b.compile())?c:[]}return a.ca}function ml(a,b){for(const c of b)if(a.some(d=>d.Xg(c,!1)))return!0;return!1}
1469
1469
  function nl(a,b){if(null===a.D)return b;let c=!1;const d=a.toString();return(e,f,g,h)=>{const l=olympe.la.Sd(h+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 ol(a,b,c){if(null===a.Re)return c;const d=a.toString();return(e,f,g,h)=>{const l=a.Re.tc();h=olympe.la.Sd(h+d);e?kj(a.db,f,l,()=>{vk(b)},h):lj(a.db,f,l,h);c(e,f,g,h)}}
1470
1470
  olympe.dc.query.vb.AD=class{constructor(a,b){this.db=olympe.dc.$a();this.C=a;this.optional=b;this.ca=this.Re=this.D=this.id=null}static C(a){var b=a.i;if('string'===typeof a.f)return new olympe.dc.query.vb.rh(b,a.f);var c=a.o;const d=new olympe.dc.Qc.Relation(a.t,a.d);b='boolean'===typeof a.s?new olympe.dc.query.vb.Xk(b,d,a.s,c):new olympe.dc.query.vb.st(b,d,c);void 0!==a.p&&(b.D=Ek(a.p));void 0!==a.c&&(c=b.ja(),a=a.c,a=new olympe.dc.query.$n(c,new olympe.dc.Qc.Property(a.p),a.o),b.Re=a);return b}clone(){}R(){let a,
@@ -1483,50 +1483,50 @@ b){a===this.origin&&(this.origin=null);if(null===this.origin||!this.db.rc(a)||!b
1483
1483
  (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.vb.yL.Aa=[olympe.dc.query.vb.BD];olympe.dc.query.vb.PD=class{constructor(){this.content=new Map}ng(){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);
1484
1484
  return b}};olympe.dc.query.vb.PD.Aa=[olympe.dc.query.vb.BD];olympe.dc.sources={};olympe.dc.sources.bz=class{ja(){}init(){}destroy(){}Da(){return q(function*(){})}subscribe(){}};const pl=olympe.wa.Nc.Gj.GET,ql=olympe.wa.Nc.Gj.po,rl=olympe.wa.Nc.Gj.Rg,sl=olympe.wa.Nc.Gj.bL,tl=olympe.wa.Nc.Headers.Ov;function ul(a){const b=`/${olympe.ra.getParameter(olympe.dc.sources.Config.NC)}/:${'sourceId'}/:${'requestType'}`.replace(/\/+/g,'/').replace(/\/$/,'');Bd().catch(c=>a.V.error(`Error while starting the HTTP Service: ${c}`));a.V.debug(`Started HTTP service with path: ${b}`)}
1485
1485
  function vl(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 wl(a,b,c){0===a.D.size&&ul(a);a.D.set(b,c);return()=>{a.D.delete(b);0===a.D.size&&vl(a)}}function xl(a,b){return b instanceof olympe.wa.bw?Ge(a.R,b,re(a.$).ei()):Promise.reject('No http request to send')}
1486
- function yl(a,b){var c=a.oe(b.$f(),b.getType());if(!c)return Promise.reject(`No destination URL to send the query to destination: ${b.$f()}`);const d=b.Be(),e=JSON.stringify(a.O.gb(d));c=fd(c,ql,e,olympe.wa.Nc.ResponseType.JSON);gd(c,{['X-Source-Origin']:b.origin,[tl]:'application/json'});return xl(a,c).then(f=>(f=f.data)?a.O.W(f):olympe.dc.query.Ci.ex(d))}
1487
- function zl(a,b){var c=a.oe(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.Be()));c=fd(c,ql,d);gd(c,{['X-Source-Origin']:b.origin,[tl]:'application/json'});return xl(a,c).then(e=>Number.parseInt(e.data,10))}
1486
+ function yl(a,b){var c=a.oe(b.ag(),b.getType());if(!c)return Promise.reject(`No destination URL to send the query to destination: ${b.ag()}`);const d=b.Be(),e=JSON.stringify(a.O.gb(d));c=fd(c,ql,e,olympe.wa.Nc.ResponseType.JSON);gd(c,{['X-Source-Origin']:b.origin,[tl]:'application/json'});return xl(a,c).then(f=>(f=f.data)?a.O.W(f):olympe.dc.query.Ci.ex(d))}
1487
+ function zl(a,b){var c=a.oe(b.ag(),b.getType());if(!c)return Promise.reject(`No destination URL to send the transaction to destination: ${b.ag()}`);const d=JSON.stringify(a.O.gb(b.Be()));c=fd(c,ql,d);gd(c,{['X-Source-Origin']:b.origin,[tl]:'application/json'});return xl(a,c).then(e=>Number.parseInt(e.data,10))}
1488
1488
  olympe.dc.sources.VR=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.fe('Http service of remote data provider');this.T=new Map;this.C=new Map;this.ca=new Map([[olympe.dc.Request.C.jr,olympe.X.hf.jr],[olympe.dc.Request.C.fr,olympe.X.hf.gz],[olympe.dc.Request.C.Qr,olympe.X.hf.gz],[olympe.dc.Request.C.er,olympe.X.hf.gz],[olympe.dc.Request.C.gG,olympe.X.hf.fG],[olympe.dc.Request.C.rL,olympe.X.hf.qL],[olympe.dc.Request.C.RH,olympe.X.hf.QH],[olympe.dc.Request.C.Nt,
1489
1489
  olympe.X.hf.zG],[olympe.dc.Request.C.Yt,olympe.X.hf.TRANSACTION]])}oe(a,b){if(a===olympe.dc.vc.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.Cd(a);c=m=>{var n=null!=e?e:a;m=n instanceof olympe.dm.DataSource?n.Io(m):Al(n,m);null===m&&this.V.error(`Impossible to build URL for data source ${n}`);return m};d=olympe.dc.sources.Config.Bt;const f=olympe.dc.sources.Config.Sp,g=olympe.dc.sources.Config.aw,h=olympe.dc.sources.Config.NC;let l;d=`${c(g)?
1490
- 'https':'http'}://${c(d)}:${null!=(l=c(f))?l:c(g)?443:80}`+`/${c(h)}/${a}`.replace(/\/+/g,'/').replace(/\/$/,'');this.T.set(a,d)}return`${d}/${b}`}nh(a){var b=this.oe(a.$f(),a.getType());if(!b)return Promise.reject(`No destination URL to send the status request to destination: ${a.$f()}`);b=id(fd(b,pl),olympe.wa.Nc.ResponseType.JSON);gd(b,{['X-Source-Origin']:a.origin});return xl(this,b).then(c=>c.data)}uploadFileContent(a){const {tag:b,model:c,content:d}=a.Be(),e=a.$f(),f=this.oe(e,a.getType());
1491
- if(!f)return Promise.reject(`No destination URL to upload the file. ${b}`);const g=fd(e===olympe.dc.vc.SERVER?`${f}/${b}`:`${f}?tag=${b}&model=${c}`,sl,d);gd(g,{[tl]:'application/octet-stream'});e!==olympe.dc.vc.SERVER&&gd(g,{['X-Source-Origin']:a.origin});return xl(this,g).then(()=>(new URL(g.oe())).pathname)}deleteFileContent(a){const {tag:b,model:c}=a.Be(),d=a.$f();var e=this.oe(d,a.getType());if(!e)return Promise.reject(`No destination URL to delete the file. ${b}`);e=fd(d===olympe.dc.vc.SERVER?
1492
- `${e}/${b}`:`${e}?tag=${b}&model=${c}`,rl,b);d!==olympe.dc.vc.SERVER&&gd(e,{['X-Source-Origin']:a.origin});return xl(this,e).then(()=>{})}downloadFileContent(a){const {tag:b,model:c}=a.Be(),d=a.$f();var e=this.oe(d,a.getType());if(!e)return Promise.reject(Error(`No destination URL to download the file. ${b}`));var f;const g=null!=(f=this.C.get(b))?f:[];f=new Promise((h,l)=>{g.push({done:h,su:l})});if(this.C.has(b))return f;this.C.set(b,g);e=fd(d===olympe.dc.vc.SERVER?`${e}/${b}`:`${e}?tag=${b}&model=${c}`,
1493
- pl,void 0,olympe.wa.Nc.ResponseType.au);d!==olympe.dc.vc.SERVER&&gd(e,{['X-Source-Origin']:a.origin});xl(this,e).then(h=>{let l;null==(l=this.C.get(b))||l.forEach(m=>m.done(h.data))}).catch(h=>{let l;null==(l=this.C.get(b))||l.forEach(m=>m.su(`${h}`))}).finally(()=>{this.C.delete(b)});return f}};olympe.dc.sources.sI=class{constructor(a,b){this.V=a;this.Ye=b}};olympe.dc.sources.sI.tk={Aw:0,s2:1,t2:3,F1:4};const Bl=olympe.dc.Request.C.Vf,Cl=olympe.dc.Request.C.Nt,Dl=olympe.dc.Request.C.Uz,El=olympe.dc.Request.C.Qr,Fl=olympe.dc.Request.C.fr,Gl=olympe.dc.Request.C.er,Hl=olympe.dc.Request.C.Jv,Il=olympe.dc.Request.C.Kv,Jl=olympe.dc.Request.C.yo,Kl=olympe.dc.Request.C.Yt,Ll=olympe.dc.Request.C.Xy;
1494
- function Ml(a,b){const c=b.ja();null===a.D&&(a.D=new olympe.la.Zt(6E4),jb(a.D,(f,g)=>{a.applyTransaction(g,!1).catch(h=>{a.V.error(`Error occurred when applying burst transaction ${f} to the data source: ${h}`)})}),kb(a.D,()=>{a.D=null}));let d;const e=null!=(d=a.D.get(c))?d:new olympe.dc.db.Rf(c);b.Wf(e);hb(a.D.C,c)||a.D.set(c,e)}function Nl(a,b){return q(function*(){const c=Ph(new olympe.dc.Request(olympe.dc.Request.C.Xy,a.ja(),b),olympe.dc.vc.SELF);let d;yield null==(d=a.Ye)?void 0:d.Pu(c)})}
1495
- function Ol(a,b){const c=b.ja();let d,e;const f=null!=(e=null==(d=a.D)?void 0:d.get(c))?e:new olympe.dc.db.Rf(c);let g;null==(g=a.D)||g.delete(c);b.Wf(f);return a.applyTransaction(f,!1).catch(h=>{a.V.error(`Error occurred when applying burst transaction ${c} to the data source: ${h}`)})}function Pl(a,b){const c=rxjs.defer(()=>a.C.executeQuery(b));return 0<a.T?rxjs.interval(a.T).pipe(rxjs.operators.switchMap(()=>c)):c}
1490
+ 'https':'http'}://${c(d)}:${null!=(l=c(f))?l:c(g)?443:80}`+`/${c(h)}/${a}`.replace(/\/+/g,'/').replace(/\/$/,'');this.T.set(a,d)}return`${d}/${b}`}nh(a){var b=this.oe(a.ag(),a.getType());if(!b)return Promise.reject(`No destination URL to send the status request to destination: ${a.ag()}`);b=id(fd(b,pl),olympe.wa.Nc.ResponseType.JSON);gd(b,{['X-Source-Origin']:a.origin});return xl(this,b).then(c=>c.data)}uploadFileContent(a){const {tag:b,model:c,content:d}=a.Be(),e=a.ag(),f=this.oe(e,a.getType());
1491
+ if(!f)return Promise.reject(`No destination URL to upload the file. ${b}`);const g=fd(e===olympe.dc.vc.SERVER?`${f}/${b}`:`${f}?tag=${b}&model=${c}`,sl,d);gd(g,{[tl]:'application/octet-stream'});e!==olympe.dc.vc.SERVER&&gd(g,{['X-Source-Origin']:a.origin});return xl(this,g).then(()=>(new URL(g.oe())).pathname)}deleteFileContent(a){const {tag:b,model:c}=a.Be(),d=a.ag();var e=this.oe(d,a.getType());if(!e)return Promise.reject(`No destination URL to delete the file. ${b}`);e=fd(d===olympe.dc.vc.SERVER?
1492
+ `${e}/${b}`:`${e}?tag=${b}&model=${c}`,rl,b);d!==olympe.dc.vc.SERVER&&gd(e,{['X-Source-Origin']:a.origin});return xl(this,e).then(()=>{})}downloadFileContent(a){const {tag:b,model:c}=a.Be(),d=a.ag();var e=this.oe(d,a.getType());if(!e)return Promise.reject(Error(`No destination URL to download the file. ${b}`));var f;const g=null!=(f=this.C.get(b))?f:[];f=new Promise((h,l)=>{g.push({done:h,su:l})});if(this.C.has(b))return f;this.C.set(b,g);e=fd(d===olympe.dc.vc.SERVER?`${e}/${b}`:`${e}?tag=${b}&model=${c}`,
1493
+ pl,void 0,olympe.wa.Nc.ResponseType.au);d!==olympe.dc.vc.SERVER&&gd(e,{['X-Source-Origin']:a.origin});xl(this,e).then(h=>{let l;null==(l=this.C.get(b))||l.forEach(m=>m.done(h.data))}).catch(h=>{let l;null==(l=this.C.get(b))||l.forEach(m=>m.su(`${h}`))}).finally(()=>{this.C.delete(b)});return f}};olympe.dc.sources.sI=class{constructor(a,b){this.V=a;this.Ye=b}};olympe.dc.sources.sI.tk={Aw:0,s2:1,t2:3,F1:4};const Bl=olympe.dc.Request.C.Wf,Cl=olympe.dc.Request.C.Nt,Dl=olympe.dc.Request.C.Uz,El=olympe.dc.Request.C.Qr,Fl=olympe.dc.Request.C.fr,Gl=olympe.dc.Request.C.er,Hl=olympe.dc.Request.C.Jv,Il=olympe.dc.Request.C.Kv,Jl=olympe.dc.Request.C.yo,Kl=olympe.dc.Request.C.Yt,Ll=olympe.dc.Request.C.Xy;
1494
+ function Ml(a,b){const c=b.ja();null===a.D&&(a.D=new olympe.la.Zt(6E4),jb(a.D,(f,g)=>{a.applyTransaction(g,!1).catch(h=>{a.V.error(`Error occurred when applying burst transaction ${f} to the data source: ${h}`)})}),kb(a.D,()=>{a.D=null}));let d;const e=null!=(d=a.D.get(c))?d:new olympe.dc.db.Sf(c);b.Xf(e);hb(a.D.C,c)||a.D.set(c,e)}function Nl(a,b){return q(function*(){const c=Ph(new olympe.dc.Request(olympe.dc.Request.C.Xy,a.ja(),b),olympe.dc.vc.SELF);let d;yield null==(d=a.Ye)?void 0:d.Pu(c)})}
1495
+ function Ol(a,b){const c=b.ja();let d,e;const f=null!=(e=null==(d=a.D)?void 0:d.get(c))?e:new olympe.dc.db.Sf(c);let g;null==(g=a.D)||g.delete(c);b.Xf(f);return a.applyTransaction(f,!1).catch(h=>{a.V.error(`Error occurred when applying burst transaction ${c} to the data source: ${h}`)})}function Pl(a,b){const c=rxjs.defer(()=>a.C.executeQuery(b));return 0<a.T?rxjs.interval(a.T).pipe(rxjs.operators.switchMap(()=>c)):c}
1496
1496
  olympe.dc.sources.iK=class{constructor(a,b){this.V=a;this.C=b;this.Ye=null;this.R=olympe.dc.query.UA();this.O=new olympe.j.fe('Context of source '+this.ja());let c;this.T=null!=(c=b.Io(olympe.dc.sources.Config.yD))?c:-1;this.D=null}ja(){return this.C.ja()}init(a){this.Ye=a;if(this.ja()===olympe.dc.vc.SELF)return this;(new Promise((b,c)=>{let d=!0;Ql(this.C,this.O).subscribe(rxjs.Subscriber.create(e=>{if(this.V.C()){this.V.debug(`Data source ${this.C.name()} has loaded ${e.size()} data types in its cache:`);
1497
- for(const [f,g]of e)this.V.debug(`=> DataType: ${g.name()} (${f})`)}d&&(d=!1,b())},c))})).then(()=>this.C.init(this.O)).catch(b=>{this.V.error(`Error while initialization of DataSource ${this.C.name()} (${this.ja()}): ${b}`)});return this}healthCheck(){return this.C.healthCheck().then(()=>`Data source ${this.C.name()} (${this.C.ja()}) OK`)}destroy(){this.O.destroy();return this.C.destroy()}Da(a){const b=a.Be();var c=a.getType();switch(c){case Bl:const d=olympe.dm.DataSource.Vf.xe,e=olympe.dm.DataSource.Vf.Ot;
1498
- return this.C.healthCheck().then(()=>({s:e})).catch(h=>({s:d,r:String(h)}));case Cl:return this.C.executeQuery(b);case Hl:const f=b.ag();Ml(this,f);Nl(this,Lh(f)).catch(h=>{this.V.warn(`Error occurred when applying burst transaction ${f.ja()} to the data source: ${h}`)});return Promise.resolve();case Jl:case Kl:const g=b.ag();return this.applyTransaction(g,c===Kl).finally(()=>{if(a.origin===olympe.dc.vc.SELF){var h=g.ja();h=Ph(new olympe.dc.Request(olympe.dc.Request.C.hz,olympe.dc.vc.SELF,{id:h,finalize:olympe.dc.transaction.Ao.C.nw,
1499
- error:null}),this.ja());let l;null==(l=this.Ye)||l.ah(h)}});case Il:return Ol(this,b.ag());case El:return b.content instanceof Uint8Array?this.C.uploadFileContent(b.tag,b.model,b.content).then(()=>`datasource://${b.tag}`):Promise.reject('File content is undefined');case Fl:return this.C.downloadFileContent(b.tag,b.model);case Gl:return this.C.deleteFileContent(b.tag,b.model);case Ll:return c=Ph(new olympe.dc.Request(Ll,olympe.dc.vc.SELF,b,a.Bg()),this.ja()),this.Ye.ah(c);default:return Promise.reject(`Request of type ${a.getType()} is not supported by the data source`)}}subscribe(a){if(a.getType()===
1497
+ for(const [f,g]of e)this.V.debug(`=> DataType: ${g.name()} (${f})`)}d&&(d=!1,b())},c))})).then(()=>this.C.init(this.O)).catch(b=>{this.V.error(`Error while initialization of DataSource ${this.C.name()} (${this.ja()}): ${b}`)});return this}healthCheck(){return this.C.healthCheck().then(()=>`Data source ${this.C.name()} (${this.C.ja()}) OK`)}destroy(){this.O.destroy();return this.C.destroy()}Da(a){const b=a.Be();var c=a.getType();switch(c){case Bl:const d=olympe.dm.DataSource.Wf.xe,e=olympe.dm.DataSource.Wf.Ot;
1498
+ return this.C.healthCheck().then(()=>({s:e})).catch(h=>({s:d,r:String(h)}));case Cl:return this.C.executeQuery(b);case Hl:const f=b.Of();Ml(this,f);Nl(this,Lh(f)).catch(h=>{this.V.warn(`Error occurred when applying burst transaction ${f.ja()} to the data source: ${h}`)});return Promise.resolve();case Jl:case Kl:const g=b.Of();return this.applyTransaction(g,c===Kl).finally(()=>{if(a.origin===olympe.dc.vc.SELF){var h=g.ja();h=Ph(new olympe.dc.Request(olympe.dc.Request.C.hz,olympe.dc.vc.SELF,{id:h,finalize:olympe.dc.transaction.Ao.C.nw,
1499
+ error:null}),this.ja());let l;null==(l=this.Ye)||l.ah(h)}});case Il:return Ol(this,b.Of());case El:return b.content instanceof Uint8Array?this.C.uploadFileContent(b.tag,b.model,b.content).then(()=>`datasource://${b.tag}`):Promise.reject('File content is undefined');case Fl:return this.C.downloadFileContent(b.tag,b.model);case Gl:return this.C.deleteFileContent(b.tag,b.model);case Ll:return c=Ph(new olympe.dc.Request(Ll,olympe.dc.vc.SELF,b,a.Bg()),this.ja()),this.Ye.ah(c);default:return Promise.reject(`Request of type ${a.getType()} is not supported by the data source`)}}subscribe(a){if(a.getType()===
1500
1500
  Dl){const b=a.Be();a=a.origin;return a===olympe.dc.vc.SELF?Pl(this,b):Mk(this.R,b,this.O,a,olympe.dc.nb.Kf.mm,{}).pipe(rxjs.operators.map(c=>{let d,e;return null!=(e=null==(d=c.Kl)?void 0:d.O)?e:null}),rxjs.operators.filter(c=>null!==c),rxjs.operators.map(c=>Lh(c,Date.now())))}return rxjs.throwError(()=>Error('Subscription request not supported'))}applyTransaction(a,b){const c=this;return q(function*(){var d=Rl(a);yield c.C.applyTransaction(d,{batch:b});d=Date.now();yield Wk(c.R,c.ja(),a);const e=
1501
1501
  Lh(a,d);yield Nl(c,e);return d})}};olympe.dc.sources.iK.Aa=[olympe.dc.sources.bz];function Rl(a){const b=olympe.dc.sources.$p.C.eR,c=olympe.dc.sources.$p.C.wV,d=olympe.dc.sources.$p.C.mR,e=olympe.dc.sources.$p.C.fR,f=olympe.dc.sources.$p.C.nR,g=[],h=[],l=[],m=[],n=[];a.me.forEach((p,r)=>{const t=p.Se();p.D()?g.push(Sl(b,r,t,p.W()?p.Xd():null)):p.hi()?l.push(Sl(d,r,t,null,p.O())):p.W()&&h.push(Sl(c,r,t,p.Xd()));for(const [u,v,w]of p.fi())p=a.mh(v),w?m.push(new Tl(e,u,r,v,t,p.Se())):n.push(new Tl(f,u,r,v,t,p.Se()))});return n.concat(l,g,h,m)}
1502
1502
  function Sl(a,b,c,d,e){if('string'!==typeof c)throw Error(`Patch: model of instance ${b} is missing. It is invalid transaction.`);return new Ul(a,b,c,d,e)}olympe.dc.sources.$p=class{constructor(a){this.type=a}};class Ul extends olympe.dc.sources.$p{constructor(a,b,c,d,e){super(a);this.object=b;this.model=c;this.properties=null!=d?d:null;this.deleteRules=null!=e?e:olympe.dc.Ee.NONE}}
1503
1503
  class Tl extends olympe.dc.sources.$p{constructor(a,b,c,d,e,f){super(a);this.relation=b;this.from=c;this.to=d;this.fromModel=e;this.toModel=f}}olympe.dc.sources.$p.C={eR:'CREATE',wV:'UPDATE',mR:'DELETE',fR:'CREATE_RELATION',nR:'DELETE_RELATION'};function Vl(a,b){b=Ph(new olympe.dc.Request(olympe.dc.Request.C.hz,olympe.dc.vc.SELF,{id:b,finalize:olympe.dc.transaction.Ao.C.nw,error:null}),a.ja());let c;null==(c=a.Ye)||c.ah(b)}
1504
- olympe.dc.sources.kC=class{constructor(a,b){this.V=a;this.D=b;this.Ye=null}ja(){}$(){}ca(){}init(a){this.Ye=a;return this}destroy(){return Promise.resolve()}Da(a){const b=this;return q(function*(){if(!b.D.C)return b.$(a);var c=olympe.dc.Request.C.Vf,d=olympe.dc.Request.C.Nt;const e=olympe.dc.Request.C.yo,f=olympe.dc.Request.C.Yt;var g=olympe.dc.Request.C.Jv;const h=olympe.dc.Request.C.Kv,l=olympe.dc.Request.C.Qr;var m=olympe.dc.Request.C.fr;const n=olympe.dc.Request.C.er,p=olympe.dc.sources.Nj(),
1505
- r=a.getType(),t=a.$f();if(be(b.D)){r===d&&(c=a.Be(),(g=Rh(a).get(olympe.dc.nb.C.fC))&&(yield Wl(p,c.ja(),g)),b.V.debug(`Data Provider: Query ${c.ja()} will be executed with its default Remote or Server provider`));if(r===m&&(m=a.Be(),'string'===typeof(null==m?void 0:m.url)&&m.url.startsWith('offline://')))return p.downloadFileContent(m.tag);m=yield b.$(a);if(r===d){const u=a.Be();d=m;const v=new olympe.dc.db.Rf(`fullResult_${u.ja()}`);m=d.pipeThrough(new TransformStream({transform:(w,x)=>q(function*(){const y=
1506
- w.ag();yield Xl(p,y);y.Wf(v);b.V.C()&&b.V.debug(`Data Provider: Data result for query ${u.ja()}`,y.me.size,'instances',Array.from(y.fi()).length,'relations');x.enqueue(w)}),flush:()=>q(function*(){yield Yl(p,u.ja(),t,v,!0)})}))}else if(r===e||r===f||r===h)b.V.debug('Data Provider: Persisting graph patch in offline cache after successful transaction'),yield Zl(p,null,t,a.Be().ag(),!1);return m}b.V.debug(`Data Provider: Request (type: ${r}) will be sent to the cache data provider: ${a.Be()}`);switch(r){case c:return{s:olympe.dm.DataSource.Vf.Bm};
1507
- case d:return p.executeQuery(a.Be());case e:case f:case h:d=a.Be();const u=d.ag().ja();return p.applyTransaction(d,t).finally(()=>Vl(b,u));case g:return Promise.resolve();case l:return d=a.Be(),p.uploadFileContent(d.tag,d.content,d.mimeType);case m:return p.downloadFileContent(a.Be().tag);case n:return p.deleteFileContent(a.Be().tag);default:return Promise.reject(`Messages of type ${a.getType()} is not supported by the source ${b.ja()}`)}})}subscribe(a,b){if(!this.D.C)return this.ca(a,b);const c=
1508
- olympe.dc.sources.Nj(),d=a.Be(),e=a.$f();return rxjs.of(null).pipe(rxjs.operators.switchMap(()=>{if(be(this.D)){const f=new rxjs.Observable(h=>{olympe.j.LP([this.D.kn()],()=>{h.error(new olympe.error.UH('Go Offline',d.ja()))})}),g=this.ca(a,b);return rxjs.merge(f,g)}return new rxjs.Observable(f=>{olympe.j.LP([this.D.kn()],()=>{f.error(new olympe.error.yG('Back Online',d.ja()))})})})).pipe(rxjs.operators.switchMap(f=>rxjs.from(Zl(c,d.ja(),e,f.ag()).then(()=>f).catch(g=>{this.V.error(`Data Provider: Cache database failed to handle the data result with message: ${g}`);
1509
- throw g;}))))}};olympe.dc.sources.kC.Aa=[olympe.dc.sources.bz];const $l=olympe.dc.Request.C.Vf,am=olympe.dc.Request.C.Nt,bm=olympe.dc.Request.C.Uz,cm=olympe.dc.Request.C.yo,dm=olympe.dc.Request.C.Yt,em=olympe.dc.Request.C.Jv,fm=olympe.dc.Request.C.Kv,gm=olympe.dc.Request.C.Qr,hm=olympe.dc.Request.C.fr,im=olympe.dc.Request.C.er;function jm(a,b){let c;return(null==(c=a.Fa.Cd(b))?void 0:c.Io(olympe.dc.sources.Config.jm))!==olympe.dm.DataSource.jm.$H}
1504
+ olympe.dc.sources.kC=class{constructor(a,b){this.V=a;this.D=b;this.Ye=null}ja(){}$(){}ca(){}init(a){this.Ye=a;return this}destroy(){return Promise.resolve()}Da(a){const b=this;return q(function*(){if(!b.D.C)return b.$(a);var c=olympe.dc.Request.C.Wf,d=olympe.dc.Request.C.Nt;const e=olympe.dc.Request.C.yo,f=olympe.dc.Request.C.Yt;var g=olympe.dc.Request.C.Jv;const h=olympe.dc.Request.C.Kv,l=olympe.dc.Request.C.Qr;var m=olympe.dc.Request.C.fr;const n=olympe.dc.Request.C.er,p=olympe.dc.sources.Nj(),
1505
+ r=a.getType(),t=a.ag();if(be(b.D)){r===d&&(c=a.Be(),(g=Rh(a).get(olympe.dc.nb.C.fC))&&(yield Wl(p,c.ja(),g)),b.V.debug(`Data Provider: Query ${c.ja()} will be executed with its default Remote or Server provider`));if(r===m&&(m=a.Be(),'string'===typeof(null==m?void 0:m.url)&&m.url.startsWith('offline://')))return p.downloadFileContent(m.tag);m=yield b.$(a);if(r===d){const u=a.Be();if(m instanceof ReadableStream){const v=new olympe.dc.db.Sf(`fullResult_${u.ja()}`);m=m.pipeThrough(new TransformStream({transform:(w,
1506
+ x)=>q(function*(){const y=w.Of();yield Xl(p,y);y.Xf(v);b.V.C()&&b.V.debug(`Data Provider: Data result for query ${u.ja()}`,y.me.size,'instances',Array.from(y.fi()).length,'relations');x.enqueue(w)}),flush:()=>q(function*(){yield Yl(p,u.ja(),t,v,!0)})}))}else d=m.Of(),yield Xl(p,d),yield Yl(p,u.ja(),t,d,!0)}else if(r===e||r===f||r===h)b.V.debug('Data Provider: Persisting graph patch in offline cache after successful transaction'),yield Zl(p,null,t,a.Be().Of(),!1);return m}b.V.debug(`Data Provider: Request (type: ${r}) will be sent to the cache data provider: ${a.Be()}`);
1507
+ switch(r){case c:return{s:olympe.dm.DataSource.Wf.Bm};case d:return p.executeQuery(a.Be());case e:case f:case h:d=a.Be();const u=d.Of().ja();return p.applyTransaction(d,t).finally(()=>Vl(b,u));case g:return Promise.resolve();case l:return d=a.Be(),p.uploadFileContent(d.tag,d.content,d.mimeType);case m:return p.downloadFileContent(a.Be().tag);case n:return p.deleteFileContent(a.Be().tag);default:return Promise.reject(`Messages of type ${a.getType()} is not supported by the source ${b.ja()}`)}})}subscribe(a,
1508
+ b){if(!this.D.C)return this.ca(a,b);const c=olympe.dc.sources.Nj(),d=a.Be(),e=a.ag();return rxjs.of(null).pipe(rxjs.operators.switchMap(()=>{if(be(this.D)){const f=new rxjs.Observable(h=>{olympe.j.LP([this.D.kn()],()=>{h.error(new olympe.error.UH('Go Offline',d.ja()))})}),g=this.ca(a,b);return rxjs.merge(f,g)}return new rxjs.Observable(f=>{olympe.j.LP([this.D.kn()],()=>{f.error(new olympe.error.yG('Back Online',d.ja()))})})})).pipe(rxjs.operators.switchMap(f=>rxjs.from(Zl(c,d.ja(),e,f.Of()).then(()=>
1509
+ f).catch(g=>{this.V.error(`Data Provider: Cache database failed to handle the data result with message: ${g}`);throw g;}))))}};olympe.dc.sources.kC.Aa=[olympe.dc.sources.bz];const $l=olympe.dc.Request.C.Wf,am=olympe.dc.Request.C.Nt,bm=olympe.dc.Request.C.Uz,cm=olympe.dc.Request.C.yo,dm=olympe.dc.Request.C.Yt,em=olympe.dc.Request.C.Jv,fm=olympe.dc.Request.C.Kv,gm=olympe.dc.Request.C.Qr,hm=olympe.dc.Request.C.fr,im=olympe.dc.Request.C.er;function jm(a,b){let c;return(null==(c=a.Fa.Cd(b))?void 0:c.Io(olympe.dc.sources.Config.jm))!==olympe.dm.DataSource.jm.$H}
1510
1510
  function km(a,b){let c;return(null==(c=a.Fa.Cd(b))?void 0:c.Io(olympe.dc.sources.Config.jm))!==olympe.dm.DataSource.jm.oG}function lm(a,b,c){const d=c.Be().ja();let e=a.fa.get(d);e||(e=olympe.X.Rd.RO(b),a.fa.set(d,e));return e.Oh(c)}function mm(a,b){b=b.Bg();if(b!==olympe.dm.User.C&&a.Io(olympe.dc.sources.Config.GD))throw a=`User ${b} has no right to access the restricted data source ${a.name()} (${a.ja()}). Please use an admin account instead.`,new olympe.error.pD(a);}
1511
- function nm(a,b,c,d,e){return q(function*(){var f=olympe.X.Ib.C.SEND,g=olympe.X.Ib.C.GET;const h=olympe.X.Ib.C.PUBLISH,l=olympe.X.Ib.C.SUBSCRIBE,m=d.QP();var n=d.body();if(e!==n.Bg())throw Error('Access denied: try to impersonate a user');mm(c,n);let p;if(null==(p=a.Ye)||!p.sources.has(n.$f()))throw Error(`Try to process a message with destination data source ${n.$f()} coming from remote but not started here`);if(m===l){if(n.getType()===bm)f=n.Be().ja();else throw Error('Not supported type of subscription');
1511
+ function nm(a,b,c,d,e){return q(function*(){var f=olympe.X.Ib.C.SEND,g=olympe.X.Ib.C.GET;const h=olympe.X.Ib.C.PUBLISH,l=olympe.X.Ib.C.SUBSCRIBE,m=d.QP();var n=d.body();if(e!==n.Bg())throw Error('Access denied: try to impersonate a user');mm(c,n);let p;if(null==(p=a.Ye)||!p.sources.has(n.ag()))throw Error(`Try to process a message with destination data source ${n.ag()} coming from remote but not started here`);if(m===l){if(n.getType()===bm)f=n.Be().ja();else throw Error('Not supported type of subscription');
1512
1512
  g=yield d.UE(f);a.qa.set(g,f);g=a.T.get(f);g||(g=new om(a.V,f,b,Ph(n,olympe.dc.vc.uo)),a.T.set(f,g));g.subscribe()}else m===g?(n=yield Kh(b,n),void 0!==n?yield d.ah(n):a.V.warn(`Request from ${d.source()} requires an output value, but got undefined instead.`)):m===f?(yield Kh(b,n),yield d.ack()):m===h&&(yield Kh(b,n))})}
1513
- olympe.dc.sources.AL=class extends olympe.dc.sources.kC{constructor(a,b,c,d,e,f){super(a,d);this.R=b;this.C=c;this.db=e;this.O=new olympe.j.fe('Remote Provider Context');this.Ha=new Map;this.W=new Map;this.T=new Map;this.qa=new Map;this.Fa=f;this.fa=new Map}ja(){return olympe.dc.vc.uo}$(a){var b=olympe.X.Rd;const c=a.$f();var d=a.getType();this.V.C()&&this.V.debug(`Request (type: ${d}) will be sent to remote data provider ${c}: ${a.Be()}`);switch(d){case $l:const e=olympe.dm.DataSource.Vf.xe,f=olympe.dm.DataSource.Vf.Ot;
1514
- b=jm(this,c)?b.get(c,a):Promise.resolve({s:f});a=km(this,c)?this.C.nh(a):Promise.resolve({s:f});return Promise.all([b,a]).then(([l,m])=>{if((null==l?void 0:l.s)===e||(null==m?void 0:m.s)===e){let n,p;return{s:e,r:`${null!=(n=null==l?void 0:l.r)?n:''} ${null!=(p=null==m?void 0:m.r)?p:''}`}}return{s:f}});case am:return km(this,c)?yl(this.C,a):b.get(c,a);case cm:const g=a.Be().ag().ja();return(jm(this,c)?b.get(c,a):zl(this.C,a)).finally(()=>Vl(this,g));case dm:const h=a.Be().ag().ja();return(km(this,
1513
+ olympe.dc.sources.AL=class extends olympe.dc.sources.kC{constructor(a,b,c,d,e,f){super(a,d);this.R=b;this.C=c;this.db=e;this.O=new olympe.j.fe('Remote Provider Context');this.Ha=new Map;this.W=new Map;this.T=new Map;this.qa=new Map;this.Fa=f;this.fa=new Map}ja(){return olympe.dc.vc.uo}$(a){var b=olympe.X.Rd;const c=a.ag();var d=a.getType();this.V.C()&&this.V.debug(`Request (type: ${d}) will be sent to remote data provider ${c}: ${a.Be()}`);switch(d){case $l:const e=olympe.dm.DataSource.Wf.xe,f=olympe.dm.DataSource.Wf.Ot;
1514
+ b=jm(this,c)?b.get(c,a):Promise.resolve({s:f});a=km(this,c)?this.C.nh(a):Promise.resolve({s:f});return Promise.all([b,a]).then(([l,m])=>{if((null==l?void 0:l.s)===e||(null==m?void 0:m.s)===e){let n,p;return{s:e,r:`${null!=(n=null==l?void 0:l.r)?n:''} ${null!=(p=null==m?void 0:m.r)?p:''}`}}return{s:f}});case am:return km(this,c)?yl(this.C,a):b.get(c,a);case cm:const g=a.Be().Of().ja();return(jm(this,c)?b.get(c,a):zl(this.C,a)).finally(()=>Vl(this,g));case dm:const h=a.Be().Of().ja();return(km(this,
1515
1515
  c)?zl(this.C,a):b.get(c,a)).finally(()=>Vl(this,h));case em:return jm(this,c)?lm(this,c,a).catch(l=>{this.V.error(`An error occurred while sending "burst transaction" to the data source ${c}: ${l}`)}):Promise.resolve();case fm:return d=a.Be().ja(),this.fa.delete(d),jm(this,c)?b.get(c,a):zl(this.C,a);case gm:return km(this,c)?this.C.uploadFileContent(a):b.get(c,a);case hm:return km(this,c)?this.C.downloadFileContent(a):b.get(c,a);case im:return km(this,c)?this.C.deleteFileContent(a):b.send(c,a);default:return Promise.reject(`Messages of type ${a.getType()} is not supported by the source ${this.ja()}`)}}ca(a,
1516
- b){const c=a.$f(),d=a.getType();if(!jm(this,c))return rxjs.throwError(()=>Error(`Subscription request not supported for data source ${this.db.name(c)} (${c}) which uses HTTP only.`));this.V.C()&&this.V.debug(`Subscription (type: ${d}) will be sent to remote data provider ${c}: ${a.Be()}`);return d===bm?olympe.X.Rd.observe(c,this.O,a,{onRetry:b}).observable:rxjs.throwError(()=>Error(`Do not handle subscription request of type ${d}`))}init(a){super.init(a);if(a.O)return this;olympe.dc.nb.from(this.R,
1516
+ b){const c=a.ag(),d=a.getType();if(!jm(this,c))return rxjs.throwError(()=>Error(`Subscription request not supported for data source ${this.db.name(c)} (${c}) which uses HTTP only.`));this.V.C()&&this.V.debug(`Subscription (type: ${d}) will be sent to remote data provider ${c}: ${a.Be()}`);return d===bm?olympe.X.Rd.observe(c,this.O,a,{onRetry:b}).observable:rxjs.throwError(()=>Error(`Do not handle subscription request of type ${d}`))}init(a){super.init(a);if(a.O)return this;olympe.dc.nb.from(this.R,
1517
1517
  this.R).kc(olympe.dm.DataSource.Ix).filter(olympe.dc.query.Rb.Sb(olympe.dm.DataSource.ju,!0)).filter(olympe.dc.query.Rb.Sb(olympe.dm.DataSource.yN,!0)).observe(this.O).subscribe(b=>{b.xu().forEach(this.Ka.bind(this,a));b.Fu().forEach(c=>{let d;null==(d=this.Ha.get(c))||d.destroy();this.Ha.delete(c)})});this.db.tc(this.R,olympe.dm.DataSource.yN)&&(new olympe.X.Rd(this.R,this.O)).Nu().subscribe(b=>{b=b.body();b instanceof olympe.dc.Request?a.ah(b):this.V.error('Self source received something else than a data request, ignore it.')});
1518
1518
  return this}destroy(){return q(function*(){})}Ka(a,b){const c=b.ka(),d=new olympe.j.fe(`Published data provider context ${c}`,this.O);this.Ha.set(c,d);let e;pm(b,d).subscribe(f=>{let g;null==(g=e)||g();let h;null==(h=this.W.get(c))||h.stop();this.W.delete(c);f!==olympe.dm.DataSource.jm.oG&&(e=wl(this.C,c,l=>{mm(b,l);return Kh(a,l)}),d.onDestroy(()=>{let l;return null==(l=e)?void 0:l()}));f!==olympe.dm.DataSource.jm.$H&&(f=new olympe.j.fe(`Bus Service of data source ${c}`,d),f=(new olympe.X.Rd(c,f)).sQ(this.Oa.bind(this)),
1519
- this.W.set(c,f),f.Nu().subscribe(l=>{l.Ev().then(m=>nm(this,a,b,l,m)).catch(m=>{this.V.warn(`Error occurred while processing request from ${l.source()}: ${m}`);return l.su(m instanceof Error?m:Error(m))})}))})}Pu(a){const b=this;return q(function*(){let c;yield null==(c=b.W.get(a.$f()))?void 0:c.Pu(a)})}Oa(a){const b=this.qa.get(a);this.qa.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=
1519
+ this.W.set(c,f),f.Nu().subscribe(l=>{l.Ev().then(m=>nm(this,a,b,l,m)).catch(m=>{this.V.warn(`Error occurred while processing request from ${l.source()}: ${m}`);return l.su(m instanceof Error?m:Error(m))})}))})}Pu(a){const b=this;return q(function*(){let c;yield null==(c=b.W.get(a.ag()))?void 0:c.Pu(a)})}Oa(a){const b=this.qa.get(a);this.qa.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=
1520
1520
  !0):(a.V.debug(`Data subscription ${a.D} has ${a.C} subscribers`),a=!1));a&&this.T.delete(b)}};class om{constructor(a,b,c,d){this.V=a;this.D=b;this.C=0;this.O=c.subscribe(d).subscribe({next:e=>{olympe.X.Rd.Oh(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}}
1521
1521
  olympe.dc.sources.AL.Aa=[olympe.dc.sources.bz];const qm={cN:10,GG:11,AH:12,hL:13,QUERY_RESULT:14,SH:15,ZG:16,yo:17,iL:18,YG:19,vw:20};function rm(a,b){const c=new olympe.dc.transaction.gl,d=new olympe.dc.transaction.gl;b.forEach(e=>{const f=new Map(Array.from(Object.entries(e.p).map(([h,l])=>[h,a.C(l)]))),g=e.v?d:c;g.Af(e.t,e.s,f,e.m);e.r.forEach(h=>g.Pb(h.r,h.o,h.d))});a.ca.Ph(Uh(Vh(d),olympe.dc.vc.SELF),{persist:!1});a.ca.Ph(Uh(Vh(c),olympe.dc.vc.SELF))}
1522
1522
  olympe.dc.sources.Mf=class extends olympe.X.Mf{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(qm.cN,a),{i:b})}return a}W(a){return(null==a?void 0:a.t)===qm.cN&&Array.isArray(null==a?void 0:a.i)?(rm(this,a.i),this.C(a.v)):this.C(a)}D(a){switch(!0){case a instanceof olympe.dm.File:var b=qm.AH;{const c=a.ka(),d={t:c};if(!this.O.has(c)&&(this.R(c),!this.db.Jl(c))){const e=a.get(olympe.dm.File.urlProp);
1523
- if(e.startsWith('blob:')||e.startsWith('stream:'))a=olympe.dc.lO().Ha(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(qm.GG,this.R(a.ka()));case a instanceof olympe.dc.nb:return $e(qm.hL,a.gb());case a instanceof olympe.dc.Bc:return $e(qm.QUERY_RESULT,a.gb(this.R.bind(this)));case a instanceof olympe.dc.db.Rf:return b=new olympe.dc.transaction.gl,a.Wf(b),$e(qm.SH,{i:a.ja(),p:Vh(b)});case a instanceof olympe.dc.Request:return $e(qm.ZG,
1524
- {r:a.getType(),o:a.origin,d:a.$f(),u:a.Bg(),c:this.D(a.Be())});case a instanceof olympe.dc.transaction.Fw:return $e(qm.yo,{r:a.ps(),p:this.D(a.ag())});case a instanceof olympe.dc.query.Ci:return $e(qm.iL,a.gb());case a instanceof olympe.dc.gr:return $e(qm.YG,a.gb());case a instanceof olympe.dc.yf:return $e(qm.vw,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 qm.AH:var d=c.t;c.s&&(a=this.C(c.s),olympe.dc.lO().Ka(d,
1523
+ if(e.startsWith('blob:')||e.startsWith('stream:'))a=olympe.dc.lO().Ha(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(qm.GG,this.R(a.ka()));case a instanceof olympe.dc.nb:return $e(qm.hL,a.gb());case a instanceof olympe.dc.Bc:return $e(qm.QUERY_RESULT,a.gb(this.R.bind(this)));case a instanceof olympe.dc.db.Sf:return b=new olympe.dc.transaction.gl,a.Xf(b),$e(qm.SH,{i:a.ja(),p:Vh(b)});case a instanceof olympe.dc.Request:return $e(qm.ZG,
1524
+ {r:a.getType(),o:a.origin,d:a.ag(),u:a.Bg(),c:this.D(a.Be())});case a instanceof olympe.dc.transaction.Fw:return $e(qm.yo,{r:a.ps(),p:this.D(a.Of())});case a instanceof olympe.dc.query.Ci:return $e(qm.iL,a.gb());case a instanceof olympe.dc.gr:return $e(qm.YG,a.gb());case a instanceof olympe.dc.yf:return $e(qm.vw,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 qm.AH:var d=c.t;c.s&&(a=this.C(c.s),olympe.dc.lO().Ka(d,
1525
1525
  a));return olympe.dc.CloudObject.get(d);case qm.GG:return olympe.dc.CloudObject.get(c);case qm.hL:return d=c.p.map(olympe.dc.query.vb.AD.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,Si:a.s,Pl:a.rm});case qm.QUERY_RESULT:return Yk(c);case qm.SH:return(new olympe.dc.transaction.rw).C(c.p,c.i);case qm.ZG:return a=null!=(d=this.C(c.c))?d:void 0,Ph(new olympe.dc.Request(c.r,c.d,a,c.u),c.o);case qm.yo:return d=this.C(c.p),new olympe.dc.transaction.Fw(d,c.r);case qm.iL:return olympe.dc.query.Ci.C(c);
1526
1526
  case qm.YG:return olympe.dc.gr.C(c);case qm.vw:return new olympe.dc.yf(c);default:return super.C(a)}}R(a){if(this.O.has(a))return a;if(!this.db.rc(a))throw new olympe.dc.RK(a);const b={};this.db.Xd(a).forEach((d,e)=>{b[e]=this.D(d)});var c=[];for(const [d,e,f]of yj(this.db,a))this.O.has(f)&&c.push(e===olympe.dc.Gb.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.Jl(a)||(c.v=!0);this.O.set(a,c);return a}};const sm=olympe.dc.Request.C.jr,tm=olympe.dc.Request.C.yo,um=olympe.dc.Request.C.Yt,vm=olympe.dc.Request.C.Jv,wm=olympe.dc.Request.C.gG,xm=olympe.dc.Request.C.rL,ym=olympe.dc.Request.C.Nt,zm=olympe.dc.Request.C.Uz,Am=olympe.dc.Request.C.RH,Bm=olympe.dc.Request.C.LR,Cm=olympe.dc.Request.C.MR,Dm=olympe.dc.Request.C.NR,Em=olympe.dc.Request.C.er,Fm=olympe.dc.Request.C.fr,Gm=olympe.dc.Request.C.Qr,Hm=olympe.dc.Request.C.hz,Im=olympe.dc.Request.C.uV,Jm=olympe.dc.Request.C.xU,Km=olympe.dc.Request.C.MH,Lm=
1527
- olympe.dc.Request.C.Kv,Mm=olympe.dc.Request.C.cR,Nm=olympe.dc.Request.C.Vf;function Om(a){return Pm(a,olympe.dc.Request.C.jr).then(b=>{b=b.data.p;const c=Uh(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 Qm(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1}),d=b.ag(),e=b.C;d.Wf(c);return Rm(a,tm,{i:d.ja(),r:b.ps(),p:Vh(c),bd:e?!0:void 0}).then(f=>f.ct)}
1528
- function Sm(a,b){const c=b.ag(),d=new olympe.dc.transaction.gl({sB:!0,uk:!1,nu:!1});c.Wf(d);b=b.C?'bd=true':'';return Pm(a,um,Vh(d),b,olympe.wa.Nc.ResponseType.Cw).then(e=>{try{let f;return null!=(f=JSON.parse(e.data).ct)?f:Date.now()}catch(f){return Date.now()}}).finally(()=>{Tm(a,Hm,{id:c.ja(),finalize:olympe.dc.transaction.Ao.C.nw})})}
1529
- function Um(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1}),d=b.ag();d.Wf(c);return Rm(a,vm,{i:d.ja(),r:b.ps(),p:Vh(c)},!1).catch(e=>a.V.error(`Error while publishing burst transaction: ${e}`))}function Vm(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1});b=b.ag();b.Wf(c);return Rm(a,Lm,{i:b.ja(),p:Vh(c)}).then(d=>d.ct)}
1527
+ olympe.dc.Request.C.Kv,Mm=olympe.dc.Request.C.cR,Nm=olympe.dc.Request.C.Wf;function Om(a){return Pm(a,olympe.dc.Request.C.jr).then(b=>{b=b.data.p;const c=Uh(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 Qm(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1}),d=b.Of(),e=b.C;d.Xf(c);return Rm(a,tm,{i:d.ja(),r:b.ps(),p:Vh(c),bd:e?!0:void 0}).then(f=>f.ct)}
1528
+ function Sm(a,b){const c=b.Of(),d=new olympe.dc.transaction.gl({sB:!0,uk:!1,nu:!1});c.Xf(d);b=b.C?'bd=true':'';return Pm(a,um,Vh(d),b,olympe.wa.Nc.ResponseType.Cw).then(e=>{try{let f;return null!=(f=JSON.parse(e.data).ct)?f:Date.now()}catch(f){return Date.now()}}).finally(()=>{Tm(a,Hm,{id:c.ja(),finalize:olympe.dc.transaction.Ao.C.nw})})}
1529
+ function Um(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1}),d=b.Of();d.Xf(c);return Rm(a,vm,{i:d.ja(),r:b.ps(),p:Vh(c)},!1).catch(e=>a.V.error(`Error while publishing burst transaction: ${e}`))}function Vm(a,b){const c=new olympe.dc.transaction.gl({uk:!1,nu:!1});b=b.Of();b.Xf(c);return Rm(a,Lm,{i:b.ja(),p:Vh(c)}).then(d=>d.ct)}
1530
1530
  function Wm(a,b){const c=encodeURI(db(olympe.la.Mj(),JSON.stringify(Xm(a,b))));a.V.C()&&a.V.debug(`Static GraphDef query ${b} sent to orchestrator`);return Pm(a,ym,void 0,`query=${c}&v=${a.version}`,olympe.wa.Nc.ResponseType.ol).then(d=>Ym(a,d))}function Zm(a,b){const c=b.ja();a.V.C()&&a.V.debug(`Query (${c}) sent to orchestrator: ${b}`);const d=Xm(a,b);return a.qa.Bd(()=>Pm(a,Am,d,void 0,olympe.wa.Nc.ResponseType.ol)).then(e=>Ym(a,e))}
1531
1531
  function $m(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=Xm(a,olympe.dc.nb.from(b));b.f=olympe.dc.Ee.eH;b=fd(a.C.oe(olympe.dc.vc.SERVER,wm),olympe.wa.Nc.Gj.po,JSON.stringify(b),olympe.wa.Nc.ResponseType.au);gd(b,{[olympe.wa.Nc.Headers.Ov]:olympe.wa.Nc.pC.JSON});return xl(a.C,b).then(c=>c.data)}
1532
1532
  function an(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.oe(olympe.dc.vc.SERVER,xm);b=fd(e+`?debug=${c}&optional=${d}`,olympe.wa.Nc.Gj.po,b);gd(b,{[olympe.wa.Nc.Headers.Ov]:olympe.wa.Nc.pC.QV});return xl(a.C,b).then(f=>f.data)}
@@ -1535,9 +1535,9 @@ function Xm(a,b){var c=sk(b);b={i:b.ja(),b:[b.D],m:!0,v:!0};if(c[0]instanceof ol
1535
1535
  q:c.map(a.W.bind(a,e))})}return b}function Tm(a,b,c){b=Ph(new olympe.dc.Request(b,olympe.dc.vc.SELF,c),a.ja());let d;null==(d=a.Ye)||d.ah(b)}
1536
1536
  function Pm(a,b,c,d,e){const f=a.C.oe(a.ja(),b);if('string'!==typeof f)return Promise.reject(`ServerProvider: no url for type ${b}`);b=fd(`${f}${'string'===typeof d&&0<d.length?`?${d}`:''}`,void 0!==c?olympe.wa.Nc.Gj.po:olympe.wa.Nc.Gj.GET,c&&JSON.stringify(c));gd(b,{[olympe.wa.Nc.Headers.Ov]:'application/json'});id(b,null!=e?e:olympe.wa.Nc.ResponseType.JSON);return xl(a.C,b)}
1537
1537
  function Ym(a,b){return q(function*(){const c=b.headers.graphId,d=b.data;let e,f;return(null!=(f=null==(e=a.Ha)?void 0:xb(e,d))?f:olympe.la.stream.Mz.transform(b.data)).pipeThrough(new TransformStream({transform:(g,h)=>{a.V.debug(`Received ${g.length} operations for patch ${c}`);h.enqueue(Uh(g,a.ja(),null,c))}}))})}
1538
- function bn(a,b,c){return q(function*(){const d=b.pi;let e;if(c instanceof olympe.la.stream.aq){e=new olympe.dc.db.Rf(d);try{for(const f=ia(c);;){const g=yield f.next();if(g.done)break;a.T.C(g.value.p,d).Wf(e)}}catch(f){a.V.error(`Error while reading the stream: ${f}`),e=new olympe.dc.db.Rf(d)}}else e=a.T.C(b.p,d);return Lh(e,b.ct)})}
1538
+ function bn(a,b,c){return q(function*(){const d=b.pi;let e;if(c instanceof olympe.la.stream.aq){e=new olympe.dc.db.Sf(d);try{for(const f=ia(c);;){const g=yield f.next();if(g.done)break;a.T.C(g.value.p,d).Xf(e)}}catch(f){a.V.error(`Error while reading the stream: ${f}`),e=new olympe.dc.db.Sf(d)}}else e=a.T.C(b.p,d);return Lh(e,b.ct)})}
1539
1539
  olympe.dc.sources.dM=class extends olympe.dc.sources.kC{constructor(a,b,c,d,e,f,g){super(a,c);this.La=b;this.C=d;this.T=new olympe.dc.transaction.rw(this.ja());this.O=new Map;this.R=new Set;this.version=e||'unknown';this.Ha=g?new olympe.la.stream.MV:null;this.qa=new olympe.la.promise.eA(f);olympe.j.Za(this.D.kn(),()=>{this.O.forEach((h,l)=>{h.error(new olympe.error.Jt('Connection to server has been recovered',l))})})}ja(){return olympe.dc.vc.SERVER}$(a){var b=a.getType();const c=a.Be(),d=Rh(a);switch(b){case Nm:return a=
1540
- olympe.dm.DataSource.Vf.xe,b=olympe.dm.DataSource.Vf.Ot,Promise.resolve(Ne(this.La)?{s:b}:{s:a,r:'Disconnected'});case sm:return Om(this);case tm:return Qm(this,c);case um:return Sm(this,c);case vm:return Um(this,c);case Lm:return Vm(this,c);case ym:return d.get(olympe.dc.nb.C.tI)?Wm(this,c):Zm(this,c);case wm:return $m(this,c);case xm:return an(this,c.F4,c.debug,c.optional);case Im:case Jm:case Km:case Mm:return Rm(this,b,{});case Fm:return this.C.downloadFileContent(a);case Em:return this.C.deleteFileContent(a);
1540
+ olympe.dm.DataSource.Wf.xe,b=olympe.dm.DataSource.Wf.Ot,Promise.resolve(Ne(this.La)?{s:b}:{s:a,r:'Disconnected'});case sm:return Om(this);case tm:return Qm(this,c);case um:return Sm(this,c);case vm:return Um(this,c);case Lm:return Vm(this,c);case ym:return d.get(olympe.dc.nb.C.tI)?Wm(this,c):Zm(this,c);case wm:return $m(this,c);case xm:return an(this,c.F4,c.debug,c.optional);case Im:case Jm:case Km:case Mm:return Rm(this,b,{});case Fm:return this.C.downloadFileContent(a);case Em:return this.C.deleteFileContent(a);
1541
1541
  case Gm:return this.C.uploadFileContent(a);default:return Promise.reject(`ServerProvider: Message of type ${b} not supported yet`)}}ca(a,b){if(a.getType()===zm){const c=a.Be(),d=c.ja();return(new rxjs.Observable(e=>{const f=Xm(this,c);this.R.delete(d);this.O.set(d,e);Rm(this,Bm,f).catch(g=>e.error(g))})).pipe(ub(olympe.error.Jt,(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);Rm(this,Cm,{i:d}).catch(e=>
1542
1542
  {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.X.Fj.dr,this.fa.bind(this));return this}destroy(){return q(function*(){})}fa(a,b){const c=olympe.dc.Request.C.nG,d=olympe.dc.Request.C.mD,e=a.c;if(e===olympe.dc.Request.C.Xy)bn(this,a,b).then(f=>{Tm(this,e,f)});else if(e===c)b=this.T.C(a.p,a.i),
1543
1543
  b=Lh(b,a.ct),Tm(this,e,{rollback:b,error:a.error});else if(e===Dm){const f=a.i;bn(this,a,b).then(g=>{let h;null==(h=this.O.get(f))||h.next(g)})}else e===d&&Tm(this,Hm,{id:a.i,finalize:olympe.dc.transaction.Ao.C.mD,error:0<a.s?a.error:null})}W(a,b){if(b instanceof olympe.dc.query.vb.St){const c=b.relation;let d;b=null!=(d=a.get(b.ja()))?d:[];return{t:c.ka(),d:c.Cc()===olympe.dc.Gb.ORIGIN?1:2,v:!0,r:c.recursive,q:b.map(this.W.bind(this,a))}}return{}}};olympe.dc.sources.dM.Aa=[olympe.dc.sources.bz];function cn(a,b,c){const d=new olympe.j.fe(`Source solver ${b.ka()}`);b.kc(olympe.dm.ri.O.ie()).kc(olympe.dm.ri.D).ej().back().kc(olympe.dm.ri.C).ej().observe(d,{$g:c,mg:!0}).subscribe(e=>{e.xu().forEach(([f,g])=>{a.D.set(f.ka(),g.ja())});e.Fu().forEach(([f])=>{a.D.delete(f)})});b.kc(olympe.dm.hd.O).observe(d,{$g:c,mg:!0}).subscribe(e=>{let f,g;a.O=null!=(g=null==(f=e.be())?void 0:f.ja())?g:null});d.onDestroy(()=>{a.D.clear();a.O=null})}
@@ -1550,11 +1550,11 @@ B(a,olympe.dc.sources.ba.ml,olympe.dc.sources.Mf,olympe.dc.db.ba.Nb);Ra(a,olympe
1550
1550
  new olympe.ra.xb(olympe.dc.Config.Fr),olympe.dc.sources.ba.qz,olympe.X.ba.km,olympe.dc.ba.jt,olympe.dc.sources.ba.nl);B(a,olympe.dc.sources.ba.JL,olympe.dc.sources.dM,olympe.dc.sources.ba.Wb,olympe.X.ba.Ut,olympe.X.ba.km,olympe.dc.sources.ba.qz,new olympe.ra.xb(olympe.dc.sources.Config.VERSION),new olympe.ra.xb(olympe.dc.sources.Config.QK),new olympe.ra.xb(olympe.dc.sources.Config.ZL));B(a,olympe.dc.sources.ba.nl,olympe.dc.sources.dA,olympe.dc.ba.jt,new olympe.ra.xb(olympe.dc.Config.Fr),new olympe.ra.xb(olympe.dc.Config.uC));
1551
1551
  C(a,olympe.dc.sources.ba.gC,[olympe.fb.ba.Nb],e=>e.Yg('datacache'));B(a,olympe.dc.sources.ba.WG,olympe.dc.sources.cache.Cache,olympe.dc.sources.ba.gC,olympe.dc.ba.Ar,olympe.dc.sources.ba.XG,olympe.dc.db.ba.Nb,olympe.wa.ba.Nb,olympe.X.ba.km,olympe.Dc.ba.zz,olympe.la.ba.br,new olympe.ra.xb(olympe.wa.Config.NK),new olympe.ra.xb(olympe.dc.sources.Config.VERSION));B(a,olympe.dc.sources.ba.XG,olympe.dc.sources.cache.Kz,olympe.Dc.ba.Ir,olympe.dc.sources.ba.gC,olympe.Dc.ba.xz)},'olympe.dc.sources');
1552
1552
  olympe.ra.run([olympe.dc.sources.ba.nl,olympe.dc.sources.ba.WG],(a,b)=>{olympe.dc.Tj=()=>a;olympe.dc.sources.Nj=()=>b});olympe.dc.sources.cache={};olympe.dc.sources.cache.errors={};olympe.dc.sources.cache.errors.SD=class extends Error{constructor(a){super(a)}};olympe.dc.sources.cache.errors.jR=class extends olympe.dc.sources.cache.errors.SD{};olympe.dc.sources.cache.errors.sV=class extends olympe.dc.sources.cache.errors.SD{};olympe.dc.sources.cache.errors.DV=class extends olympe.dc.sources.cache.errors.SD{};function dn(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.ne(a);case 17:return new olympe.dc.yf(a.v);case 13:return(new olympe.dc.transaction.rw).C(a.v,a.i);default:throw Error(`Impossible to deserialize the following value: ${a}`);}}
1553
- olympe.dc.sources.cache.fI=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.yf:return{t:17,v:a.ka()};case a instanceof olympe.dc.db.Rf:const b=new olympe.dc.transaction.gl;a.Wf(b);
1553
+ olympe.dc.sources.cache.fI=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.yf:return{t:17,v:a.ka()};case a instanceof olympe.dc.db.Sf:const b=new olympe.dc.transaction.gl;a.Xf(b);
1554
1554
  return{t:13,i:a.ja(),v:Vh(b)};default:throw Error(`Impossible to serialize the following value: ${a}`);}}};function Wl(a,b,c){return q(function*(){en(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(fn(a)));return gn(a.C,b,c)})}function Xl(a,b){return q(function*(){yield a.init();a.V.debug(`Cache: subtract pending transaction operations from ${b.ja()}`);b.T(a.O)})}
1555
1555
  function Yl(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(([,h])=>h.has(b)).map(([h])=>h),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 h=new Set(Array.from(d.ng()).filter(l=>!l.hi()).map(l=>l.tag()));yield hn(a.C,[b],h)}yield jn(a.C,d,0<f.length?b:null);kn(a,d,c).catch(h=>{a.V.error(`Cache: Failed to download files of a graph patch: ${h}`)})}}catch(f){a.V.error(`Cache: Failed to handle graph patch ${d.ja()} with message: ${f}`),
1556
1556
  a.yb.next(f)}finally{b&&ln(a,'queries',b)}}))().then(()=>{})}function Zl(a,b,c,d,e=!1){return q(function*(){yield Xl(a,d);Yl(a,b,c,d,e)})}function mn(){var a=olympe.dc.sources.Nj();a.ca=!0;a.Ka=!0}function en(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
- function ln(a,b,c){const d=a.status.getValue();let e,f;null!=(f=null==(e=d[b])?void 0:e.values)&&f.delete(c)&&(d[b].processed+=1,0===d[b].values.size&&(delete d[b],('queries'===b?'files':'queries')in d||(d.processing=!1)),a.status.next(d))}function nn(a){return q(function*(){a.O=new olympe.dc.db.Rf;const b=yield on(a.C);for(const c of b)c.Wf(a.O);a.fa.next(0<b.length)})}
1557
+ function ln(a,b,c){const d=a.status.getValue();let e,f;null!=(f=null==(e=d[b])?void 0:e.values)&&f.delete(c)&&(d[b].processed+=1,0===d[b].values.size&&(delete d[b],('queries'===b?'files':'queries')in d||(d.processing=!1)),a.status.next(d))}function nn(a){return q(function*(){a.O=new olympe.dc.db.Sf;const b=yield on(a.C);for(const c of b)c.Xf(a.O);a.fa.next(0<b.length)})}
1558
1558
  function kn(a,b,c){return q(function*(){const d=pn(b),e=[];for(const g of d){const h=g.tag();if(!(yield qn(a.C,h)))if(en(a,'files',h),!1===g.tc(olympe.dm.File.C.ka())&&g.tc(olympe.dm.File.urlProp.ka())){var f=g.tc(olympe.dm.File.urlProp.ka());f=fd(f);id(f,olympe.wa.Nc.ResponseType.$B);e.push(a.xc.C(f).then(l=>{l=l.nh();if(200>l||300<=l)throw Error(`Failed to download file ${g}. Response code ${l}`);}).finally(()=>ln(a,'files',h)))}else{let l;const m=null!=(l=g.tc(olympe.dm.File.mimeTypeProp.ka()))?
1559
1559
  l:'application/octet-stream';f={tag:h,model:g.Se(),mimeType:m};const n=new olympe.dc.Request(olympe.dc.Request.C.fr,c,f);f=a.Mb.Bd(()=>Kh(a.Ye,n).then(p=>rn(a.C,h,p,m))).finally(()=>ln(a,'files',h));e.push(f)}}yield Promise.allSettled(e).then(g=>{g.forEach((h,l)=>{if('rejected'===h.status){let m;a.V.warn(`Cache: File content for ${null==(m=d[l])?void 0:m.tag()} was not found`)}})})})}
1560
1560
  function pn(a){const b=[olympe.dc.Va(olympe.dm.File)];if(olympe.dc.CloudObject.$w(olympe.dm.File))b.push(...olympe.dc.nb.from(olympe.dm.File).iq(olympe.dc.CloudObject.extendedByRel).tf().keys());else for(const c of b){let d,e;b.push(...(null!=(e=null==(d=a.mh(c))?void 0:d.uc(olympe.dc.CloudObject.extendedByRel,f=>f))?e:[]))}return b.reduce((c,d)=>{let e,f;d=Array.from(null!=(f=null==(e=a.mh(d))?void 0:e.uc(olympe.dc.CloudObject.instancesRel,g=>g))?f:[]).map(g=>a.mh(g));return c.concat(d)},[])}
@@ -1569,22 +1569,22 @@ h,f),yield Bn(a.C,h)}catch(l){throw yn(a,f,l);}d+=1;b.next([e,d])}}a.R=null}))()
1569
1569
  function Cn(){const a=olympe.dc.sources.Nj();return q(function*(){var b=new Set;const c={files:[],patches:[],version:a.version};var d=pn(a.O);for(const e of d)b.has(e.tag())||(d=yield xn(a.C,e.tag()),c.files.push({t:e.tag(),m:d.C,c:a.Da.C(d.content)}),b.add(e.tag()));b=yield Dn(a.C);c.patches.push(...b);return JSON.stringify(c)})}
1570
1570
  function En(a){const b=olympe.dc.sources.Nj();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.Da.D(e.c),yield rn(b.C,e.t,d,e.m);yield Fn(b.C,c.patches);yield nn(b);b.Ha.Ph(Lh(b.O))})}
1571
1571
  function Gn(){const a=olympe.dc.sources.Nj();return q(function*(){yield Hn(a.C);yield hn(a.C,['local-transaction']);yield nn(a)})}
1572
- olympe.dc.sources.cache.Cache=class{constructor(a,b,c,d,e,f,g,h,l,m){this.V=a;this.Ye=b;this.C=c;this.Ha=d;this.xc=e;this.Oa=f;this.Fa=g;this.Da=h;this.version=m;this.ca=this.version!==this.Fa.get('__code-as-data-version__');this.ob=this.Ka=!1;this.D=new Map;this.T=new rxjs.BehaviorSubject([]);this.R=null;this.fa=new rxjs.BehaviorSubject(!1);this.O=new olympe.dc.db.Rf;this.Eb=this.eb=!1;this.qa=[];this.$=0;this.Zb=new rxjs.BehaviorSubject(!1);this.status=new rxjs.BehaviorSubject({processing:!1});
1572
+ olympe.dc.sources.cache.Cache=class{constructor(a,b,c,d,e,f,g,h,l,m){this.V=a;this.Ye=b;this.C=c;this.Ha=d;this.xc=e;this.Oa=f;this.Fa=g;this.Da=h;this.version=m;this.ca=this.version!==this.Fa.get('__code-as-data-version__');this.ob=this.Ka=!1;this.D=new Map;this.T=new rxjs.BehaviorSubject([]);this.R=null;this.fa=new rxjs.BehaviorSubject(!1);this.O=new olympe.dc.db.Sf;this.Eb=this.eb=!1;this.qa=[];this.$=0;this.Zb=new rxjs.BehaviorSubject(!1);this.status=new rxjs.BehaviorSubject({processing:!1});
1573
1573
  this.W=!1;this.yb=new rxjs.Subject;this.Mb=new olympe.la.promise.eA(l)}nh(){return this.status.asObservable()}init(){const a=this;return q(function*(){if(!a.eb)if(a.Eb)yield new Promise(b=>{a.qa.push(b)});else{a.Eb=!0;(yield In(a.C)).forEach(b=>{a.D.set(b.name,new Set(b.Qi))});a.T.next(fn(a));yield nn(a);a.Ha.Ph(Lh(a.O));for(const b of a.qa)b();a.eb=!0;a.qa=[]}})}executeQuery(a){const b=this;return q(function*(){yield b.init();return sn(b,a.ja())&&sk(a).some(c=>c instanceof olympe.dc.query.vb.rh)?
1574
- Jn(b.C,a).then(olympe.la.stream.CN):b.C.executeQuery(a).then(olympe.la.stream.CN)})}applyTransaction(a,b){const c=this;return q(function*(){c.V.debug('Cache: apply transaction',a,b);yield c.init();const d=a.ag(),e=Array.from(d.me.keys());let f,g;const h=Array.from(null!=(g=null==(f=c.R)?void 0:f.C.me.keys())?g:[]);let l;b!==(null==(l=c.R)?void 0:l.D)||e.some(m=>!h.includes(m))?(yield Kn(c.C,d,b),c.R=new olympe.dc.sources.cache.hR(d,b),c.fa.next(!0)):(d.Wf(c.R.C),yield Kn(c.C,c.R.C,b));d.Wf(c.O);yield jn(c.C,
1574
+ Jn(b.C,a).then(olympe.la.stream.CN):b.C.executeQuery(a).then(olympe.la.stream.CN)})}applyTransaction(a,b){const c=this;return q(function*(){c.V.debug('Cache: apply transaction',a,b);yield c.init();const d=a.Of(),e=Array.from(d.me.keys());let f,g;const h=Array.from(null!=(g=null==(f=c.R)?void 0:f.C.me.keys())?g:[]);let l;b!==(null==(l=c.R)?void 0:l.D)||e.some(m=>!h.includes(m))?(yield Kn(c.C,d,b),c.R=new olympe.dc.sources.cache.hR(d,b),c.fa.next(!0)):(d.Xf(c.R.C),yield Kn(c.C,c.R.C,b));d.Xf(c.O);yield jn(c.C,
1575
1575
  d,'local-transaction')})}uploadFileContent(a,b,c){const d=this;return q(function*(){yield d.init();yield rn(d.C,a,b,c);return`offline://${a}`})}downloadFileContent(a){const b=this;return q(function*(){yield b.init();return xn(b.C,a).then(c=>c.content)})}deleteFileContent(a){const b=this;return q(function*(){yield b.init();yield Ln(b.C,[a])})}};olympe.dc.sources.cache.hR=class{constructor(a,b){this.C=a;this.D=b}};olympe.dc.sources.cache.Cache.D='__code-as-data-version__';
1576
1576
  olympe.dc.sources.cache.Cache.C='__code-as-data__';function In(a){return q(function*(){return(yield a.db.C('buckets')).map(b=>olympe.dc.sources.cache.qw.ne(b))})}function on(a){return q(function*(){return(yield a.db.C('pending-transactions')).map(b=>{b=olympe.dc.sources.cache.Kt.ne(b);return dn(b.C)})})}
1577
1577
  function gn(a,b,c){return q(function*(){a.V.debug(`Offline DB: Adding query ${b} in bucket ${c}`);return a.db.Bd(()=>q(function*(){let d;const e=null!=(d=olympe.dc.sources.cache.qw.ne(yield a.db.get('buckets',c,{ud:!1})))?d:new olympe.dc.sources.cache.qw(c,[]);e.Qi.includes(b)||e.Qi.push(b);yield a.db.set('buckets',e.toJSON(),void 0,{ud:!1})}),{Ed:'addQueryIdInBucket',Wj:!0})})}
1578
1578
  function hn(a,b,c=new Set){return q(function*(){return a.db.Bd(()=>q(function*(){var d=b.map(l=>a.db.$('instances','queryIds',l,{ud:!1})),e=yield Promise.all(d);d=new Map;const f=new Map,g=new Set(b);for(var h of e)for(const l of h.map(m=>olympe.dc.sources.cache.sk.ne(m)))e=l.tag,c.has(e)||d.has(e)||f.has(e)||(l.Qi=l.Qi.filter(m=>!g.has(m)),0===l.Qi.length?d.set(e,l):f.set(e,l.toJSON()));h=Array.from(d.keys());yield a.db.T('instances',f,{ud:!1});yield Promise.all([a.db.R('instances',h,{ud:!1}),Ln(a,
1579
1579
  h,{ud:!1})]);yield Mn(a,d)}),{Ed:'releaseQueryId',Wj:!0})})}
1580
- function jn(a,b,c){a.V.debug(`Offline DB: Apply patch ${b.ja()} on local offline db`);const d=Array.from(b.me.keys()),e=new olympe.dc.sources.cache.gI(a.V,c);return a.db.Bd(()=>a.db.O('instances',d,{ud:!1,zq:olympe.dc.sources.cache.sk.ne}).then(f=>{e.C=f;e.R.clear();b.Wf(e)}).then(()=>{const f=e.$;if(null===c&&0<f.size){const g=e.ng();return a.db.C('buckets',{ud:!1}).then(h=>{const l=h.map(olympe.dc.sources.cache.qw.ne).reduce((m,n)=>{'__code-as-data__'!==n.name&&n.Qi.forEach(p=>m.add(p));return m},
1580
+ function jn(a,b,c){a.V.debug(`Offline DB: Apply patch ${b.ja()} on local offline db`);const d=Array.from(b.me.keys()),e=new olympe.dc.sources.cache.gI(a.V,c);return a.db.Bd(()=>a.db.O('instances',d,{ud:!1,zq:olympe.dc.sources.cache.sk.ne}).then(f=>{e.C=f;e.R.clear();b.Xf(e)}).then(()=>{const f=e.$;if(null===c&&0<f.size){const g=e.ng();return a.db.C('buckets',{ud:!1}).then(h=>{const l=h.map(olympe.dc.sources.cache.qw.ne).reduce((m,n)=>{'__code-as-data__'!==n.name&&n.Qi.forEach(p=>m.add(p));return m},
1581
1581
  new Set);f.forEach(m=>{g.get(m).Qi.push(...l)})})}return Promise.resolve()}).then(()=>{const f=e.ng();return a.db.T('instances',f,{ud:!1,zq:g=>g.toJSON()})}).then(()=>q(function*(){const f=Array.from(e.R);if(0<f.length){const g=yield a.db.O('instances',f,{ud:!1,zq:olympe.dc.sources.cache.sk.ne});yield Promise.all([a.db.R('instances',f,{ud:!1}),Ln(a,f,{ud:!1})]);yield Mn(a,g)}})),{Ed:'Persist Patch',Wj:!0}).then(()=>{null===c&&(b.me.forEach((f,g)=>a.C.add(g)),a.O().then(()=>{}))})}
1582
1582
  function qn(a,b){return new Promise((c,d)=>{null!==a.files?c(a.files.has(b)):a.D.push(e=>{let f;return e?d(e):c(!(null==(f=a.files)||!f.has(b)))})})}function rn(a,b,c,d){c=new olympe.dc.sources.cache.vD(b,c,d);a.files.add(b);return a.db.set('files',c.toJSON()).then(()=>{}).catch(e=>{a.files.delete(b);throw e;})}function un(a,b){return q(function*(){return a.db.remove('buckets',b).then(()=>{})})}
1583
1583
  function An(a){return q(function*(){return(yield a.db.C('pending-transactions')).reduce((b,c)=>{c=olympe.dc.sources.cache.Kt.ne(c);const d=c.D;let e;const f=null!=(e=b.get(d))?e:[];f.push(dn(c.C));b.set(d,f);return b},new Map)})}function Bn(a,b){return q(function*(){return a.db.remove('pending-transactions',b.ja()).then(()=>{})})}
1584
1584
  function xn(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.vD.ne(c)})}function Dn(a){return q(function*(){return a.db.C('pending-transactions')})}function Fn(a,b){return q(function*(){const c=new Map;for(const d of b){const e=olympe.dc.sources.cache.Kt.ne(d);e&&c.set(e.C.i,d)}yield a.db.T('pending-transactions',c)})}
1585
1585
  function Hn(a){return q(function*(){return a.db.clear('pending-transactions').then(()=>{})})}
1586
1586
  function Jn(a,b){return q(function*(){const c=b.Cd();a.V.debug(`Offline DB: Executing query ${b.ja()} by ID with source ${c}`);const d=olympe.dc.query.Ci.ex(b);var e=(yield a.db.$('instances','queryIds',b.ja())).map(f=>olympe.dc.sources.cache.sk.ne(f));for(const f of e){if(f.source!==c)continue;e=olympe.dc.sources.cache.Kz.Ce(f);const g=Nn(f.Pi);d.create(f.tag,e,g);for(const h of f.md)if(e=h.match(/^([a-z0-9]*)(<|>)([a-z0-9]*)$/)){const [,l,m,n]=e;e='<'===m;l===olympe.dc.Lf.uh&&!0===e||d.Pb(l,e?n:
1587
- f.tag,e?f.tag:n)}}a.V.C()&&a.V.debug(`Offline DB: Data result for query ${b.ja()}`,d.ag().me.size,'instances',Array.from(d.ag().fi()).length,'relations');return d})}function Kn(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.Kt(c,b,Date.now())).toJSON())}function On(a){return q(function*(){return a.db.fa('pending-transactions')})}
1587
+ f.tag,e?f.tag:n)}}a.V.C()&&a.V.debug(`Offline DB: Data result for query ${b.ja()}`,d.Of().me.size,'instances',Array.from(d.Of().fi()).length,'relations');return d})}function Kn(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.Kt(c,b,Date.now())).toJSON())}function On(a){return q(function*(){return a.db.fa('pending-transactions')})}
1588
1588
  function Ln(a,b,c){return q(function*(){b.forEach(d=>a.files.delete(d));yield a.db.R('files',b,c)})}
1589
1589
  function Mn(a,b){var c={ud:!1};return q(function*(){return 0===b.size?Promise.resolve():a.db.Bd(()=>q(function*(){var d=olympe.dc.Gb.ORIGIN;const e=olympe.dc.Gb.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 h,l;for(const m of null!=(l=null==(h=g)?void 0:h.md)?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;
1590
1590
  t.add(p);f.set(n,t)}}}d=yield a.db.O('instances',Array.from(f.keys()),{ud:!1,zq:olympe.dc.sources.cache.sk.ne});for(const [g,h]of f.entries())(f=d.get(g))?f.md=f.md.filter(l=>!h.has(l)):(a.V.warn(`Instance ${g} not found when trying to remove related relations`),d.delete(g));yield a.db.T('instances',d,{ud:!1,zq:g=>g.toJSON()})}),{Ed:'removeRelatedRelations',ud:null==c?void 0:c.ud,Wj:!0})})}function Nn(a){return Object.entries(a).reduce((b,[c,d])=>b.set(c,dn(d)),new Map)}
@@ -1594,7 +1594,7 @@ olympe.la.Promise.zA(()=>{const d=this;return q(function*(){if(!(0===d.C.size||0
1594
1594
  f.set(g.tag,g))}}).then(()=>q(function*(){if(0<f.size){const g=Array.from(f.keys());yield Promise.all([d.db.R('instances',g,{ud:!1}),Ln(d,g,{ud:!1})]);yield Mn(d,f)}}))},{Ed:'garbageCollector',Wj:!0}).then(()=>{});d.V.debug(`Offline DB GC: has taken ${Date.now()-e}ms to run`)}})},5E3)}static Ce(a){const b=new RegExp(`^(${olympe.dc.Lf.uh})>([a-z0-9]*)$`);for(const c of a.md)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.Cd()}`);
1595
1595
  const d=olympe.dc.query.Ci.ex(a),e=a.Cd();var f=yield b.db.get('instances',a.D),g=olympe.dc.sources.cache.sk.ne(f);if(!g)return d;f=new Map;const h=new Set([g.tag]);d.create(g.tag,olympe.dc.sources.cache.Kz.Ce(g),Nn(g.Pi));for(const p of sk(a))if(p instanceof olympe.dc.query.vb.St){var l=p.relation;g=l.Cc()===olympe.dc.Gb.ORIGIN;const r=l.ka(),t=l.ie();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=>
1596
1596
  {if(!h.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.Cc()}${x}`;return b.db.$('instances','relations',y,{ud:!0}).then(A=>A.map(H=>olympe.dc.sources.cache.sk.ne(H))).then(A=>{w.set(x,A)})})).then(()=>w);for(const [x,y]of m){p instanceof olympe.dc.query.vb.Xk&&p.O&&l.add(x);for(const A of y)if(m=A.tag,A.source===e){if(p instanceof olympe.dc.query.vb.Xk&&!l.has(m)){var n=u[u.length-1];n||(n=
1597
- new Set,u.push(n));n.add(m)}l.add(m);h.has(m)||(h.add(m),n=olympe.dc.sources.cache.Kz.Ce(A),d.create(m,n,Nn(A.Pi)));r===olympe.dc.Lf.uh&&!0===g||d.Pb(r,g?m:x,g?x:m)}}}}else p instanceof olympe.dc.query.vb.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.ag().me.size,'instances',Array.from(d.ag().fi()).length,'relations'),
1597
+ new Set,u.push(n));n.add(m)}l.add(m);h.has(m)||(h.add(m),n=olympe.dc.sources.cache.Kz.Ce(A),d.create(m,n,Nn(A.Pi)));r===olympe.dc.Lf.uh&&!0===g||d.Pb(r,g?m:x,g?x:m)}}}}else p instanceof olympe.dc.query.vb.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.Of().me.size,'instances',Array.from(d.Of().fi()).length,'relations'),
1598
1598
  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.qw=class{constructor(a,b){this.name=a;this.Qi=b}static ne(a){return a?new olympe.dc.sources.cache.qw(a.name,a.queryIds):null}toJSON(){return{name:this.name,queryIds:this.Qi}}};
1599
1599
  olympe.dc.sources.cache.sk=class{constructor(a,b,c,d,e){this.tag=a;this.source=b;this.Pi=null!=c?c:{};this.md=null!=d?d:[];this.Qi=null!=e?e:[]}static ne(a){return a?new olympe.dc.sources.cache.sk(a.tag,a.source,a.props,a.relations,a.queryIds):null}toJSON(){return{tag:this.tag,source:this.source,props:this.Pi,relations:this.md,queryIds:this.Qi}}};
1600
1600
  olympe.dc.sources.cache.Kt=class{constructor(a,b,c){this.D=a;this.C=b;this.timestamp=c}static ne(a){return a?new olympe.dc.sources.cache.Kt(a.destination,a.patch,a.timestamp):null}toJSON(){return{destination:this.D,patch:this.C,timestamp:this.timestamp}}};
@@ -1602,58 +1602,58 @@ olympe.dc.sources.cache.fU=class extends olympe.dc.sources.cache.Kt{constructor(
1602
1602
  olympe.dc.sources.cache.vD=class{constructor(a,b,c){this.tag=a;this.content=b;this.C=c}static ne(a){return a?new olympe.dc.sources.cache.vD(a.tag,a.content,a.mimetype):null}toJSON(){return{tag:this.tag,content:this.content,mimetype:this.C}}};function Pn(a,b){let c=a.W.get(b);c||(c=new Set(a.C.get(b).md),a.W.set(b,c));return c}
1603
1603
  olympe.dc.sources.cache.gI=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.fI;this.W=new Map}ng(){this.R.forEach(a=>this.C.delete(a));Array.from(this.C.entries()).forEach(([a,b])=>{b||this.C.delete(a)});return this.C}Af(a,b,c){const d=this.C.get(a);d||this.$.add(a);var e;c=Array.from(null!=c?c:[]).reduce((h,l)=>{h[l[0]]=this.T.gb(l[1]);return h},null!=(e=null==d?void 0:d.Pi)?e:{});let f;e=null!=(f=null==d?void 0:d.Qi)?f:[];null===
1604
1604
  this.O||e.includes(this.O)||e.push(this.O);let g;b=new olympe.dc.sources.cache.sk(a,b,c,null!=(g=null==d?void 0:d.md)?g:[],e);this.C.set(a,b)}qh(a,b){const c=this.C.get(a);if(c){var d;c.Pi=Array.from(b).reduce((e,[f,g])=>{null===g?delete e[f]:e[f]=this.T.gb(g);return e},null!=(d=c.Pi)?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)}Pb(a,b,c){var d;const e=null!=(d=this.C.get(b))?d:new olympe.dc.sources.cache.sk(b,
1605
- 'unknown',{},[],[]);var f;d=null!=(f=this.C.get(c))?f:new olympe.dc.sources.cache.sk(c,'unknown',{},[],[]);b=`${a}${olympe.dc.Gb.ORIGIN}${b}`;f=(g,h)=>{this.C.set(g.tag,g);const l=Pn(this,g.tag);l.has(h)||(g.md.push(h),l.add(h));null===this.O||g.Qi.includes(this.O)||g.Qi.push(this.O)};f(e,`${a}${olympe.dc.Gb.DESTINATION}${c}`);f(d,b)}Xf(a,b,c){const d=this.C.get(b),e=this.C.get(c);c=`${a}${olympe.dc.Gb.DESTINATION}${c}`;a=`${a}${olympe.dc.Gb.ORIGIN}${b}`;b=(f,g)=>{const h=Pn(this,f.tag);if(h.has(g)){const l=
1605
+ 'unknown',{},[],[]);var f;d=null!=(f=this.C.get(c))?f:new olympe.dc.sources.cache.sk(c,'unknown',{},[],[]);b=`${a}${olympe.dc.Gb.ORIGIN}${b}`;f=(g,h)=>{this.C.set(g.tag,g);const l=Pn(this,g.tag);l.has(h)||(g.md.push(h),l.add(h));null===this.O||g.Qi.includes(this.O)||g.Qi.push(this.O)};f(e,`${a}${olympe.dc.Gb.DESTINATION}${c}`);f(d,b)}Yf(a,b,c){const d=this.C.get(b),e=this.C.get(c);c=`${a}${olympe.dc.Gb.DESTINATION}${c}`;a=`${a}${olympe.dc.Gb.ORIGIN}${b}`;b=(f,g)=>{const h=Pn(this,f.tag);if(h.has(g)){const l=
1606
1606
  f.md.indexOf(g);f.md.splice(l,1);h.delete(g)}};d&&b(d,c);e&&b(e,a)}};olympe.dc.sources.cache.gI.Aa=[olympe.dc.fu];olympe.dc.transaction={};olympe.dc.Lv=class a{constructor(b,c){this.id=null!=b?b:olympe.la.df();this.D=new olympe.j.fe('BurstTransaction#'+this.id,c);this.Ka=Qn(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.Fa=null!=(d=olympe.ra.getParameter(olympe.dc.transaction.Config.mG))?d:30;this.qa=[]}static C(b,c){return`${b},${c}`}ob(b){for(const c of this.qa)c(b);this.stop()}Ha(){null!==this.C&&(clearTimeout(this.C),this.C=null);const b=this.fa(this.R);0<b.size&&
1607
1607
  Rn(this,b,!1);this.R.clear()}fa(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.Da(b,c,d);this.Ka(b,c,d);null===this.C&&(this.C=setTimeout(this.Ha.bind(this),this.Fa))}Da(b,c,d){b=a.C(b,c);this.O.set(b,d);this.R.add(b)}Oa(b,c){return this.O.get(a.C(b,c))}push(b,c){const d=olympe.dc.Va(b);b=c.subscribe(e=>{for(const [f,g]of e)e=olympe.dc.Va(f),this.Oa(d,e)!==g&&this.ca(d,e,g.valueOf())});
1608
1608
  this.$.add(b)}complete(){return new Promise((b,c)=>{this.T((d,e)=>{for(const f of this.$)f.unsubscribe();d?b():c(e)})})}update(b,c,d){const e=olympe.dc.Va(b),f=olympe.dc.Va(c);void 0===e||void 0===f?olympe.fb.tb('dc').error('Burst transaction: instance tag or property tag is undefined'):(this.D.run(()=>{olympe.j.Nl([d],g=>{this.W=!0;if(g instanceof olympe.dc.yf)olympe.fb.tb('dc').error('Cannot send complex property values in burst transactions');else{var h;this.ca(e,f,null!=(h=null==g?void 0:g.valueOf())?
1609
1609
  h:null)}})}),this.D.We(()=>{this.T()}))}stop(){this.D.destroy();this.qa.length=0}getContext(){return this.D}ja(){return this.id}ps(){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.fa(new Set(this.O.keys()));Rn(this,c,!0,b)}else null==b||b(!0)}toString(){return'Burst transaction #'+this.id}};olympe.dc.Lv.prototype.complete=olympe.dc.Lv.prototype.complete;olympe.dc.Lv.prototype.push=olympe.dc.Lv.prototype.push;olympe.dc.jh=class{C(){}toString(){}};olympe.dc.jh.C=1;olympe.dc.jh.D=2;olympe.dc.jh.R=3;olympe.dc.jh.O=4;olympe.dc.jh.T=5;olympe.dc.transaction.rw=class a{constructor(b){this.O=null!=b?b:olympe.dc.vc.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.vi.zj+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,
1610
- 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.yf(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}C(b,c){return this.D(b,new olympe.dc.db.Rf(c))}D(b,c){for(const d of b)switch(d.o){case olympe.dc.jh.C:b=a.C(d.p||{});let e;c.Af(d.t,null!=(e=d.s)?e:this.O,b,d.m);break;case olympe.dc.jh.D:c.qh(d.t,
1611
- a.C(d.p),d.m);break;case olympe.dc.jh.R:c.D(d.t,d.f,d.m);break;case olympe.dc.jh.O:c.Pb(d.m,d.l,d.r,d.lm,d.rm);break;case olympe.dc.jh.T:c.Xf(d.m,d.l,d.r,d.lm,d.rm);break;default:throw Error('Undefined patch operation: '+d.o);}return c}};function Sn(a,b){let c;return null!=(c=a.sources.get(b))?c:a.R.xl(b)}function Tn(a,b){let c,d,e;return null!=(e=null!=(d=null==(c=a.C.mh(b))?void 0:c.Se())?d:a.db.model(b))?e:null}function Un(a,b){let c;return null!=(c=a.O.get(b))?c:a.db.Jl(b)||!a.db.rc(b)}function Vn(a,b){0===a.O.size?a.O=b:b.forEach((c,d)=>a.O.set(d,c))}function Wn(a){return Array.from(a.C.ng()).filter(b=>!b.hi()).map(b=>b.tag())}function Xn(a){return Array.from(a.C.ng()).filter(b=>b.hi()).map(b=>b.tag())}
1612
- function Yn(a,b,c,d){d(a.C);c&&!a.T&&b!==olympe.dc.vc.SELF&&(c=a.D.get(b),c||(c=new olympe.dc.db.Rf(a.id),a.D.set(b,c)),d(c))}function Zn(a,b,c){const d=Sn(a,b),e=Un(a,b),f=Tn(a,b);Yn(a,d,e,g=>{g.D(b,c,f)})}
1613
- olympe.dc.transaction.qU=class{constructor(a,b,c){this.id=null!=c?c:olympe.la.df();this.R=b;this.db=a;this.D=new Map;this.C=new olympe.dc.db.Rf(this.id);this.sources=new Map;this.O=new Map;this.T=!1}Ki(){return 0===this.C.me.size}Tc(){return this.D.size}Af(a,b,c,d){let e;const f=null!=(e=null!=c?c:this.sources.get(a))?e:this.R.fromModel(b);c=Un(this,a);this.sources.set(a,f);Yn(this,f,c,g=>{g.Af(a,f,d,b)})}qh(a,b){const c=Sn(this,a),d=Un(this,a),e=Tn(this,a);Yn(this,c,d,f=>{f.qh(a,null!=b?b:new Map,
1614
- e)})}Pb(a,b,c){const d=Sn(this,b),e=Sn(this,c);var f=Un(this,b)&&Un(this,c)&&d!==olympe.dc.vc.SELF&&e!==olympe.dc.vc.SELF;f&&d!==e&&a!==olympe.dc.Lf.uh&&(f=g=>{let h;return null!=(h=olympe.dc.$a().name(g))?h:g},olympe.fb.tb('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);Yn(this,d,f,g=>{g.Pb(a,b,c,Tn(this,b),Tn(this,c))})}Xf(a,b,c){const d=Sn(this,
1615
- b),e=Sn(this,c);let f=Un(this,b)&&Un(this,c)&&d!==olympe.dc.vc.SELF&&e!==olympe.dc.vc.SELF;f&&d!==e&&a!==olympe.dc.Lf.uh&&(olympe.fb.tb('dc').warn(`Try to delete a relation between 2 objects that have different locations: ${b}-[${a}]->${c}`),f=!1);Yn(this,d,f,g=>{g.Xf(a,b,c,Tn(this,b),Tn(this,c))})}};function $n(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.yI.Hr)if(e===olympe.dc.vc.SELF)d[g]=olympe.dc.$a().ja();else{if(e===olympe.dc.vc.SERVER)continue}else g.startsWith(olympe.dc.vi.zj)&&(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 ao(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}
1610
+ 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.yf(e.t));break;case 'untyped':null===e&&c.set(b,null)}}return c}C(b,c){return this.D(b,new olympe.dc.db.Sf(c))}D(b,c){for(const d of b)switch(d.o){case olympe.dc.jh.C:b=a.C(d.p||{});let e;c.Af(d.t,null!=(e=d.s)?e:this.O,b,d.m);break;case olympe.dc.jh.D:c.qh(d.t,
1611
+ a.C(d.p),d.m);break;case olympe.dc.jh.R:c.D(d.t,d.f,d.m);break;case olympe.dc.jh.O:c.Pb(d.m,d.l,d.r,d.lm,d.rm);break;case olympe.dc.jh.T:c.Yf(d.m,d.l,d.r,d.lm,d.rm);break;default:throw Error('Undefined patch operation: '+d.o);}return c}};function Sn(a,b){let c;return null!=(c=a.sources.get(b))?c:a.R.xl(b)}function Tn(a,b){let c,d,e;return null!=(e=null!=(d=null==(c=a.C.mh(b))?void 0:c.Se())?d:a.db.model(b))?e:null}function Un(a,b){let c;return null!=(c=a.O.get(b))?c:a.db.Jl(b)||!a.db.rc(b)}function Vn(a,b){0===a.O.size?a.O=b:b.forEach((c,d)=>a.O.set(d,c))}function Wn(a){return Array.from(a.C.ng()).filter(b=>!b.hi()).map(b=>b.tag())}function Xn(a){return Array.from(a.C.ng()).filter(b=>b.hi()).map(b=>b.tag())}
1612
+ function Yn(a,b,c,d){d(a.C);c&&!a.T&&b!==olympe.dc.vc.SELF&&(c=a.D.get(b),c||(c=new olympe.dc.db.Sf(a.id),a.D.set(b,c)),d(c))}function Zn(a,b,c){const d=Sn(a,b),e=Un(a,b),f=Tn(a,b);Yn(a,d,e,g=>{g.D(b,c,f)})}
1613
+ olympe.dc.transaction.qU=class{constructor(a,b,c){this.id=null!=c?c:olympe.la.df();this.R=b;this.db=a;this.D=new Map;this.C=new olympe.dc.db.Sf(this.id);this.sources=new Map;this.O=new Map;this.T=!1}Ki(){return 0===this.C.me.size}Tc(){return this.D.size}Af(a,b,c,d){let e;const f=null!=(e=null!=c?c:this.sources.get(a))?e:this.R.fromModel(b);c=Un(this,a);this.sources.set(a,f);Yn(this,f,c,g=>{g.Af(a,f,d,b)})}qh(a,b){const c=Sn(this,a),d=Un(this,a),e=Tn(this,a);Yn(this,c,d,f=>{f.qh(a,null!=b?b:new Map,
1614
+ e)})}Pb(a,b,c){const d=Sn(this,b),e=Sn(this,c);var f=Un(this,b)&&Un(this,c)&&d!==olympe.dc.vc.SELF&&e!==olympe.dc.vc.SELF;f&&d!==e&&a!==olympe.dc.Lf.uh&&(f=g=>{let h;return null!=(h=olympe.dc.$a().name(g))?h:g},olympe.fb.tb('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);Yn(this,d,f,g=>{g.Pb(a,b,c,Tn(this,b),Tn(this,c))})}Yf(a,b,c){const d=Sn(this,
1615
+ b),e=Sn(this,c);let f=Un(this,b)&&Un(this,c)&&d!==olympe.dc.vc.SELF&&e!==olympe.dc.vc.SELF;f&&d!==e&&a!==olympe.dc.Lf.uh&&(olympe.fb.tb('dc').warn(`Try to delete a relation between 2 objects that have different locations: ${b}-[${a}]->${c}`),f=!1);Yn(this,d,f,g=>{g.Yf(a,b,c,Tn(this,b),Tn(this,c))})}};function $n(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.yI.Hr)if(e===olympe.dc.vc.SELF)d[g]=olympe.dc.$a().ja();else{if(e===olympe.dc.vc.SERVER)continue}else g.startsWith(olympe.dc.vi.zj)&&(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 ao(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}
1616
1616
  class bo{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.Ck().valueOf(),g:a.Ak().valueOf(),b:a.yk().valueOf(),a:a.xk().valueOf()}:a&&'function'===
1617
1617
  typeof a.ka?{c:8,t:a.ka()}:a}}function Vh(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}
1618
1618
  olympe.dc.transaction.gl=class{constructor({sB:a=!1,nu:b=!0,uk:c=!0}={}){this.T=[];this.O=[];this.C=[];this.W=[];this.R=[];this.sB=null!=a?a:!1;this.uk=null!=c?c:!0;this.nu=null!=b?b:!0;this.$=olympe.j?new bo:new class extends bo{W(d){return d&&'function'===typeof d.ka?{c:8,t:d.ka()}:d}}}flush(){return JSON.stringify(Vh(this))}Af(a,b,c,d=null){c=$n(this.$,null!=c?c:null,this.sB);c={o:olympe.dc.jh.C,t:a,p:c};this.nu&&(c.s=b);this.uk&&d&&(c.m=d);this.T.push(c);this.sB&&(b=ao(this.$))&&this.C.push({o:olympe.dc.jh.D,
1619
1619
  t:a,p:b})}qh(a,b,c=null){b=$n(this.$,b||null,!1);a={o:olympe.dc.jh.D,t:a,p:b};this.uk&&c&&(a.m=c);this.C.push(a)}D(a,b,c=null){a={o:olympe.dc.jh.R,t:a,f:b};this.uk&&c&&(a.m=c);this.O.push(a)}Pb(a,b,c,d=null,e=null){if(!a)throw Error('Cannot create relation of undefined type');if(!b)throw Error(`Cannot create relation ${a} from undefined origin to ${c}`);if(!c)throw Error(`Cannot create relation ${a} from ${b} to undefined destination`);a={o:olympe.dc.jh.O,m:a,l:b,r:c};this.uk&&d&&(a.lm=d);this.uk&&
1620
- e&&(a.rm=e);this.W.push(a)}Xf(a,b,c,d=null,e=null){if(!a)throw Error('Cannot delete relation of undefined type');if(!b)throw Error('Cannot delete relation with undefined origin');if(!c)throw Error('Cannot delete relation with undefined destination');a={o:olympe.dc.jh.T,m:a,l:b,r:c};this.uk&&d&&(a.lm=d);this.uk&&e&&(a.rm=e);this.R.push(a)}};olympe.dc.transaction.gl.Aa=[olympe.dc.fu];function co(a){var b=new olympe.dc.Vc;b.$=a;return b}function eo(){var a=new olympe.dc.Vc;a.fa=!0;return a}function fo(a,b,c,d){c=a.create(null!=c?c:olympe.dc.CloudObject,void 0);if('string'===typeof b)b=b||'',Z(c,olympe.dc.CloudObject.nameProp.ka(),b);else for(const [f,g]of Object.entries(b))Z(c,f,g);b=c.ka();d=null!=d?d:olympe.dc.CloudObject;const e=olympe.dc.CloudObject.extendRel.ka();a.Bd(new olympe.dc.transaction.ac.gH(e,b));a.Bd(new olympe.dc.transaction.ac.qC(e,b,d));return c}
1620
+ e&&(a.rm=e);this.W.push(a)}Yf(a,b,c,d=null,e=null){if(!a)throw Error('Cannot delete relation of undefined type');if(!b)throw Error('Cannot delete relation with undefined origin');if(!c)throw Error('Cannot delete relation with undefined destination');a={o:olympe.dc.jh.T,m:a,l:b,r:c};this.uk&&d&&(a.lm=d);this.uk&&e&&(a.rm=e);this.R.push(a)}};olympe.dc.transaction.gl.Aa=[olympe.dc.fu];function co(a){var b=new olympe.dc.Vc;b.$=a;return b}function eo(){var a=new olympe.dc.Vc;a.fa=!0;return a}function fo(a,b,c,d){c=a.create(null!=c?c:olympe.dc.CloudObject,void 0);if('string'===typeof b)b=b||'',Z(c,olympe.dc.CloudObject.nameProp.ka(),b);else for(const [f,g]of Object.entries(b))Z(c,f,g);b=c.ka();d=null!=d?d:olympe.dc.CloudObject;const e=olympe.dc.CloudObject.extendRel.ka();a.Bd(new olympe.dc.transaction.ac.gH(e,b));a.Bd(new olympe.dc.transaction.ac.qC(e,b,d));return c}
1621
1621
  function go(a,b){if(a.R)throw Error('Operation not permitted: this transaction has already been executed');a.R=!0;const c=[d=>{a.R=d},...a.ca,null!=b?b:()=>{}];return(d,e)=>{c.forEach(f=>f(d,e))}}
1622
1622
  olympe.dc.Vc=class{constructor(a){this.id=null!=a?a:olympe.la.df();this.ac=[];this.O=new Map;this.fa=!1;this.$=!0;this.D=new Map;this.ca=[];this.R=this.T=!1;this.W=[...olympe.dc.Bx().ca]}ja(){return this.id}model(a){let b;return null!=(b=this.O.get(olympe.dc.Va(a)))?b:olympe.dc.$a().model(a)}Bd(a){a instanceof olympe.dc.Vc&&a.D.forEach((b,c)=>this.D.set(c,b));this.ac.push(a);return a}C(a){this.fa&&(a.T=!0);Vn(a,this.D);for(const b of this.ac)b.C(a);try{this.W.forEach(b=>b(a))}catch(b){throw Error(`Transaction compilation error: ${b.message}`);
1623
1623
  }}create(a,b){b=this.Bd(new olympe.dc.transaction.ac.UG(a,b));const c=b.ka();this.O.set(c,olympe.dc.Va(a));let d;this.persist(c,null!=(d=this.D.get(c))?d:this.$);return b}persist(a,b=!0){const c=olympe.dc.Va(a);var d=olympe.dc.$a();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.Tj().fromModel(b);this.Bd(new olympe.dc.transaction.ac.rU(c,d))}else{if((e=d.rc(c))&&
1624
- d.Jl(c))throw Error(`Try to remove persistence of an instance already persisted: ${c}`);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.Ee.Rg){this.Bd(new olympe.dc.transaction.ac.hH(a,b))}update(a,b,c){return this.Bd(new olympe.dc.transaction.ac.FV(a,b,c))}Pb(a,b,c){this.Bd(new olympe.dc.transaction.ac.qC(a,b,c))}Xf(a,b,c){this.Bd(new olympe.dc.transaction.ac.vR(a,b,c))}sE(a,
1624
+ d.Jl(c))throw Error(`Try to remove persistence of an instance already persisted: ${c}`);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.Ee.Rg){this.Bd(new olympe.dc.transaction.ac.hH(a,b))}update(a,b,c){return this.Bd(new olympe.dc.transaction.ac.FV(a,b,c))}Pb(a,b,c){this.Bd(new olympe.dc.transaction.ac.qC(a,b,c))}Yf(a,b,c){this.Bd(new olympe.dc.transaction.ac.vR(a,b,c))}sE(a,
1625
1625
  b){this.Bd(new olympe.dc.transaction.ac.gH(a,b))}defineProperty(a,b,c,d,e,f){d=this.create(olympe.dm.Property,f);Z(d,olympe.dc.CloudObject.nameProp,c||'');void 0!==e&&this.update(a,olympe.dc.vi.zj+d.ka(),e);this.Pb(olympe.dc.CloudObject.propertyRel,a,d);this.Pb(olympe.dm.Property.typeRel,d,b);this.Pb(olympe.dc.CloudObject.containsRel,a,d);return d}uN(a,b,c='',{N3:d=olympe.dm.Relation.R.ZT,Y3:e=olympe.dm.Relation.C.yU,T3:f=olympe.dm.Relation.C.RQ,y4:g=olympe.dm.Relation.C.iI,I3:h=olympe.dm.WB.NONE,
1626
1626
  u4:l=olympe.dm.Relation.T|h}={},m=olympe.la.df()){c=Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(this.create(olympe.dm.Relation,m),olympe.dc.CloudObject.nameProp,c||''),olympe.dm.Relation.D,d),olympe.dm.Relation.O,l),olympe.dm.Relation.fa,e),olympe.dm.Relation.Da,e),olympe.dm.Relation.ca,e),olympe.dm.Relation.$,f),olympe.dm.Relation.qa,g),olympe.dm.Relation.Ha,olympe.dm.Relation.C.iI),olympe.dm.Relation.W,h);this.Pb(olympe.dc.CloudObject.Hx,a,c);this.Pb(olympe.dm.Relation.destinationModelRel,c,b);this.Pb(olympe.dc.CloudObject.containsRel,
1627
- a,c);return c}ps(){return!1}iE(a){this.ca.push(olympe.j.zb().ue(a))}Fd(a,b){ho(olympe.dc.Bx(),this,go(this,a),b)}tE(a){a=go(this,a);io(olympe.dc.Bx(),this,a,!0)}toString(){return`Transaction #${this.id}`}};olympe.dc.Vc.Aa=[olympe.dc.jh];function Qn(a){var b=olympe.dc.Bx();const c=a.ja();b.R.set(c,a);return(d,e,f)=>{const g=new olympe.dc.db.Rf(c);g.qh(d,(new Map).set(e,f),b.db.model(d));b.C.Ph(Lh(g,Infinity))}}
1628
- function Rn(a,b,c,d){var e=olympe.dc.Bx();const f=olympe.dc.Request.C.Jv,g=olympe.dc.Request.C.Kv,h=a.ja();a=a.ps();const l=new Map;for(const m of b.keys()){const n=e.db.source(m);if(n===olympe.dc.vc.SELF||!e.db.Jl(m))continue;let p=l.get(n);p||(p=new olympe.dc.db.Rf(h),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.Fw(n,a)),Kh(e.Ye,b).then(p=>{c&&(e.C.Ph(Lh(n,p)),null==d||d(!0))}).catch(p=>{null==d||d(!1,`${p}`)})}
1627
+ a,c);return c}ps(){return!1}iE(a){this.ca.push(olympe.j.zb().ue(a))}Fd(a,b){ho(olympe.dc.Bx(),this,go(this,a),b)}tE(a){a=go(this,a);io(olympe.dc.Bx(),this,a,!0)}toString(){return`Transaction #${this.id}`}};olympe.dc.Vc.Aa=[olympe.dc.jh];function Qn(a){var b=olympe.dc.Bx();const c=a.ja();b.R.set(c,a);return(d,e,f)=>{const g=new olympe.dc.db.Sf(c);g.qh(d,(new Map).set(e,f),b.db.model(d));b.C.Ph(Lh(g,Infinity))}}
1628
+ function Rn(a,b,c,d){var e=olympe.dc.Bx();const f=olympe.dc.Request.C.Jv,g=olympe.dc.Request.C.Kv,h=a.ja();a=a.ps();const l=new Map;for(const m of b.keys()){const n=e.db.source(m);if(n===olympe.dc.vc.SELF||!e.db.Jl(m))continue;let p=l.get(n);p||(p=new olympe.dc.db.Sf(h),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.Fw(n,a)),Kh(e.Ye,b).then(p=>{c&&(e.C.Ph(Lh(n,p)),null==d||d(!0))}).catch(p=>{null==d||d(!1,`${p}`)})}
1629
1629
  function ho(a,b,c,d){if(d){const e=b.ja();a.D.set(e,c);io(a,b,(f,g)=>{f||(a.D.delete(e),c(f,g))},!1)}else io(a,b,c,!1)}function jo(a){const b=olympe.dc.Request.C.hz;Th(a.Ye,olympe.dc.Request.C.nG,c=>{var d=c.Be();c=d.rollback;d=d.error;const e=c.ja(),f=a.R.get(e);void 0!==f&&(a.R.delete(e),f.ob(d));a.C.Ph(c);a.V.warn(`Burst update (id=${e}) has been refused and is rolled back. Error: ${d}`)});Th(a.Ye,b,c=>{c=c.Be();ko(a,c.id,c.finalize,c.error)})}
1630
1630
  function lo(a,b,c){if(!c)throw Error('Transaction compiler id is required');a.Da.has(c)||a.ca.push(b);return a}
1631
1631
  function io(a,b,c,d=!1){const e=b.ja(),f=new olympe.dc.transaction.qU(a.db,a.qa,e);try{b.C(f)}catch(r){if(r instanceof olympe.dc.KK){r.C.then(()=>io(a,b,c,d));return}c(!1,r.message);return}if(f.Ki()){c(!0);var g;null==(g=a.D.get(e))||g(!0);a.D.delete(e)}else{a.O.set(e,[]);var h=Wn(f);a.C.vk(h,olympe.dc.db.Instance.C.TRANSACTION);g=h.filter(r=>Un(f,r));var l=Xn(f).filter(r=>a.db.Jl(r)&&a.db.pe(r,olympe.dm.File)&&a.db.source(r)!==olympe.dc.vc.SERVER).map(r=>[r,a.db.model(r),a.db.source(r)]),m=Ti(a.C,
1632
1632
  f.C,g),n=olympe.j.zb().ue((r,t)=>c(null!==r,t)),p=[m,n];mo(a,f,g).then(r=>{p.splice(1,0,r);no(a,e,h,f.Tc()+1);return oo(a,f.D,d,b.ps(),b.T)}).then(r=>Promise.allSettled(l.map(([t,u,v])=>a.T.Da(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));ko(a,e,olympe.dc.transaction.Ao.C.nw)}).catch(r=>{a.V.error(r);p.forEach(t=>t(null,`${r}`));po(a,e)})}}
1633
1633
  function mo(a,b,c){const d=b.C,e=olympe.dm.File.urlProp.ka();c=c.filter(n=>{let p;return a.db.pe(n,olympe.dm.File)&&void 0!==(null==(p=d.mh(n))?void 0:p.tc(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(),h=Array.from(b.D.values()),l=[],m=olympe.la.Mj();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),
1634
1634
  t();else{var v=n.ka(),w,x=null!=(w=n.get(olympe.dm.File.mimeTypeProp))?w:'application/data';a.T.qa(v,r,x,y=>{const A=h.reduce((H,G)=>H||G.mh(v),null);null!==A&&(y=(new Map).set(e,y).set(f,!0).set(g,new Date),A.tA(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},
1635
- new olympe.dc.db.Rf);return Ti(a.C,n)})}function no(a,b,c,d){const e=olympe.j.Oo(),f=new olympe.async.Qz(e);0<a.W&&f.QB(a.W);const g=olympe.dc.transaction.Ao.C.TT;let h=!0;const l=a.O.get(b);for(let m=0;m<d;m++)f.add((n,p)=>{l.push(e.ue((r,t)=>{h&&(h=r!==g);t?p(t):n()}))});Gd(f,(m,n)=>{m||a.V.warn(`An error occurred while processing the notification of transaction (${b}): ${n}.`);h&&a.C.detach(c,olympe.dc.db.Instance.C.TRANSACTION);po(a,b)});f.start()}
1635
+ new olympe.dc.db.Sf);return Ti(a.C,n)})}function no(a,b,c,d){const e=olympe.j.Oo(),f=new olympe.async.Qz(e);0<a.W&&f.QB(a.W);const g=olympe.dc.transaction.Ao.C.TT;let h=!0;const l=a.O.get(b);for(let m=0;m<d;m++)f.add((n,p)=>{l.push(e.ue((r,t)=>{h&&(h=r!==g);t?p(t):n()}))});Gd(f,(m,n)=>{m||a.V.warn(`An error occurred while processing the notification of transaction (${b}): ${n}.`);h&&a.C.detach(c,olympe.dc.db.Instance.C.TRANSACTION);po(a,b)});f.start()}
1636
1636
  function oo(a,b,c,d,e){if(c&&olympe.j.Pa(a.fa.state)!==olympe.xa.Ec.C.Wn)return Promise.reject('Cannot persist with batch transactions API if not authenticated (aka: `Transaction.executeAsLarge()`).');const f=c?olympe.dc.Request.C.Yt:olympe.dc.Request.C.yo;return Promise.all(Array.from(b).map(([g,h])=>{g=new olympe.dc.Request(f,g,new olympe.dc.transaction.Fw(h,d,e));return Kh(a.Ye,g)})).then(g=>g[0])}function ko(a,b,c,d){let e,f;null==(f=null==(e=a.O.get(b))?void 0:e.pop())||f(c,null!=d?d:null)}
1637
1637
  function po(a,b){var c;null==(c=a.O.get(b))||c.forEach(d=>{d(olympe.dc.transaction.Ao.C.nw,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))}
1638
1638
  olympe.dc.transaction.Ao=class{constructor(a,b,c,d,e,f,g){this.V=a;this.C=b;this.db=b.view;this.Ye=c;this.qa=d;this.T=e;this.fa=f;this.W=g.get('notificationTimeout');this.ca=[];let h;this.Da=new Set(null!=(h=g.get('disabledCompilers'))?h:[]);this.R=new olympe.la.Zt(g.get('burstHoldTime'));this.O=new Map;this.$=[];this.D=new Map;this.Ha=new olympe.la.promise.Xt;jo(this)}Ek(a){this.Ha.Bd(()=>Kh(this.Ye,new olympe.dc.Request(olympe.dc.Request.C.MH,olympe.dc.vc.SERVER)).then(b=>{a(b.ids,b.undo_stack_size,
1639
- b.redo_stack_size)}).catch(b=>this.V.error('Failed to process get stack request',b))).then(()=>{})}};olympe.dc.transaction.Ao.C={mD:0,nw:1,TT:2};olympe.dc.transaction.Fw=class{constructor(a,b=!1,c=!1){this.D=a;this.O=b;this.C=c}ps(){return this.O}ag(){return this.D}ja(){return this.D.ja()}};olympe.dc.transaction.ba={Wb:'dc.transaction.Logger',Nb:'dc.transaction.Manager'};olympe.dc.transaction.Config={DK:'dc.transaction.timeout',mG:'dc.transaction.burstInterval',wC:'dc.transaction.disabledCompilers'};
1639
+ b.redo_stack_size)}).catch(b=>this.V.error('Failed to process get stack request',b))).then(()=>{})}};olympe.dc.transaction.Ao.C={mD:0,nw:1,TT:2};olympe.dc.transaction.Fw=class{constructor(a,b=!1,c=!1){this.D=a;this.O=b;this.C=c}ps(){return this.O}Of(){return this.D}ja(){return this.D.ja()}};olympe.dc.transaction.ba={Wb:'dc.transaction.Logger',Nb:'dc.transaction.Manager'};olympe.dc.transaction.Config={DK:'dc.transaction.timeout',mG:'dc.transaction.burstInterval',wC:'dc.transaction.disabledCompilers'};
1640
1640
  olympe.ra.bf(function(a){E(a,olympe.dc.transaction.Config.DK,9E4);E(a,olympe.dc.transaction.Config.mG,30);E(a,olympe.dc.transaction.Config.wC,[]);C(a,olympe.dc.transaction.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('dc'));C(a,'olympe.dc.transaction.Config',[new olympe.ra.xb(olympe.dc.transaction.Config.DK),new olympe.ra.xb(olympe.dc.transaction.Config.wC),new olympe.ra.xb(olympe.dc.db.Config.iC)],(b,c,d)=>new Map([['notificationTimeout',b],['disabledCompilers',c],['burstHoldTime',d]]));B(a,olympe.dc.transaction.ba.Nb,
1641
1641
  olympe.dc.transaction.Ao,olympe.dc.transaction.ba.Wb,olympe.dc.db.ba.Nb,olympe.dc.ba.Ar,olympe.dc.sources.ba.nl,olympe.dc.ba.fz,olympe.xa.ba.Nb,'olympe.dc.transaction.Config')},'olympe.dc.transaction');olympe.dc.transaction.ac={};function qo(a,b){const c=new Map;for(const [d,e]of b)c.set(d,a.Pa(e));return c}olympe.dc.transaction.ac.ar=class{constructor(){this.$a=olympe.dc.$a()}C(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}Pa(a){a=olympe.j.Pa(a);return void 0===a||null===a?null:olympe.j.xP(a)?a.valueOf():a}};olympe.dc.transaction.ac.ar.Aa=[olympe.dc.jh];olympe.dc.transaction.ac.aG=class extends olympe.dc.transaction.ac.ar{constructor(a,b){super();this.relation=a instanceof olympe.dc.Qc.Relation?a:new olympe.dc.Qc.Relation(olympe.dc.Va(a));this.origin=this.$a.rc(b)?olympe.dc.CloudObject.get(b):b}getType(){return this.relation.ka()}Cc(){return this.relation.Cc()}C(){throw Error('Abstract method build() not override !');}toString(){throw Error('Abstract method toString() not override !');}};function Z(a,b,c){a.Pi.set(olympe.dc.Va(b),c);return a}olympe.dc.transaction.ac.UG=class extends olympe.dc.transaction.ac.ar{constructor(a,b){super();let c;this.tag=null!=(c=b&&olympe.dc.Va(b))?c:olympe.la.Zr();this.model=olympe.dc.Va(a);this.source=null;this.Pi=new Map}ka(){return this.tag}Ce(){return this.model}re(a){this.source=a;return this}C(a){const b=this.Ce(),c=this.ka();if(!b)throw Error('OperationError: Cannot create instance, model tag is undefined');a.Af(c,b,this.source,qo(this,this.Pi))}toString(){return`CreateInstance(${this.Ce()}, ${this.ka()})`}};
1642
1642
  olympe.dc.transaction.ac.UG.Aa=[olympe.dc.Zk];olympe.dc.transaction.ac.qC=class extends olympe.dc.transaction.ac.aG{constructor(a,b,c){super(a,b);this.D=this.$a.rc(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.Lf.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');
1643
1643
  if(!this.D)throw Error('OperationError: Cannot create relation, destination tag is undefined, null or empty string');this.relation.Cc()===olympe.dc.Gb.DESTINATION?a.Pb(b,olympe.dc.Va(this.origin),olympe.dc.Va(this.D)):a.Pb(b,olympe.dc.Va(this.D),olympe.dc.Va(this.origin))}toString(){return`CreateRelation('${this.relation.Cc()}${this.relation.ka()}, ${olympe.dc.Va(this.origin)}, ${olympe.dc.Va(this.D)})`}};olympe.dc.transaction.ac.j0=class extends olympe.dc.transaction.ac.ar{constructor(a,b=olympe.dc.Ee.Rg){super();this.model=a instanceof olympe.dc.CloudObject?a:olympe.dc.CloudObject.get(a);this.cf=b}C(a){for(const b of this.$a.ng(this.model))b!==olympe.dc.Va(this.model)&&(new olympe.dc.transaction.ac.hH(b,this.cf)).C(a)}toString(){return`DeleteAllInstances(${this.model.ka()}, ${this.cf})`}};olympe.dc.transaction.ac.gH=class extends olympe.dc.transaction.ac.aG{C(a){const b=this.getType();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Lf.uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Va(this.origin);if(!this.origin)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=this.Cc(),e=this.$a.uc(c,this.relation);for(const f of e)d===olympe.dc.Gb.DESTINATION?
1644
- a.Xf(b,c,f):a.Xf(b,f,c)}toString(){return`DeleteAllRelations(${this.Cc()}${this.getType()})`}};olympe.dc.transaction.ac.hH=class extends olympe.dc.transaction.ac.ar{constructor(a,b=olympe.dc.Ee.Rg){super();this.tag=this.$a.rc(a)?olympe.dc.CloudObject.get(a):a;this.cf=b}ka(){return olympe.dc.Va(this.tag)}C(a){const b=this.ka();if(void 0===b)throw Error('OperationError: Cannot delete instance, tag is undefined');this.$a.rc(b)&&Zn(a,b,this.cf)}toString(){return'DeleteInstance('+this.ka()+', '+this.cf+')'}};olympe.dc.transaction.ac.vR=class extends olympe.dc.transaction.ac.qC{C(a){const b=this.relation.ka();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Lf.uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Va(this.origin);if(void 0===c)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=olympe.dc.Va(this.D);if(void 0===d)throw Error('OperationError: Cannot delete relation, right tag is undefined');
1645
- this.relation.Cc()===olympe.dc.Gb.DESTINATION?a.Xf(b,c,d):a.Xf(b,d,c)}toString(){return'DeleteRelation('+this.relation.Cc()+this.relation.ka()+', '+olympe.dc.Va(this.origin)+', '+olympe.dc.Va(this.D)+')'}};olympe.dc.transaction.ac.FV=class extends olympe.dc.transaction.ac.ar{constructor(a,b,c){super();this.tag=this.$a.rc(a)?olympe.dc.CloudObject.get(a):a;this.Pi=new Map;void 0!==b&&this.Pi.set(olympe.dc.Va(b),c)}ka(){return olympe.dc.Va(this.tag)}C(a){const b=this.ka();if(void 0===b)throw Error('OperationError: Cannot update instance, tag is undefined');var c;if(!(null!=(c=a.C.mh(b))&&c.D()||this.$a.rc(b)))throw Error('OperationError: Instance #'+b+' not found so it cannot be updated');c=qo(this,this.Pi);
1644
+ a.Yf(b,c,f):a.Yf(b,f,c)}toString(){return`DeleteAllRelations(${this.Cc()}${this.getType()})`}};olympe.dc.transaction.ac.hH=class extends olympe.dc.transaction.ac.ar{constructor(a,b=olympe.dc.Ee.Rg){super();this.tag=this.$a.rc(a)?olympe.dc.CloudObject.get(a):a;this.cf=b}ka(){return olympe.dc.Va(this.tag)}C(a){const b=this.ka();if(void 0===b)throw Error('OperationError: Cannot delete instance, tag is undefined');this.$a.rc(b)&&Zn(a,b,this.cf)}toString(){return'DeleteInstance('+this.ka()+', '+this.cf+')'}};olympe.dc.transaction.ac.vR=class extends olympe.dc.transaction.ac.qC{C(a){const b=this.relation.ka();if(void 0===b)throw Error('OperationError: Cannot delete relation, type is undefined');if(b===olympe.dc.Lf.uh)throw Error('OperationError: Cannot delete the instance -> model relation');const c=olympe.dc.Va(this.origin);if(void 0===c)throw Error('OperationError: Cannot delete relation, left tag is undefined');const d=olympe.dc.Va(this.D);if(void 0===d)throw Error('OperationError: Cannot delete relation, right tag is undefined');
1645
+ this.relation.Cc()===olympe.dc.Gb.DESTINATION?a.Yf(b,c,d):a.Yf(b,d,c)}toString(){return'DeleteRelation('+this.relation.Cc()+this.relation.ka()+', '+olympe.dc.Va(this.origin)+', '+olympe.dc.Va(this.D)+')'}};olympe.dc.transaction.ac.FV=class extends olympe.dc.transaction.ac.ar{constructor(a,b,c){super();this.tag=this.$a.rc(a)?olympe.dc.CloudObject.get(a):a;this.Pi=new Map;void 0!==b&&this.Pi.set(olympe.dc.Va(b),c)}ka(){return olympe.dc.Va(this.tag)}C(a){const b=this.ka();if(void 0===b)throw Error('OperationError: Cannot update instance, tag is undefined');var c;if(!(null!=(c=a.C.mh(b))&&c.D()||this.$a.rc(b)))throw Error('OperationError: Instance #'+b+' not found so it cannot be updated');c=qo(this,this.Pi);
1646
1646
  for(const [e,f]of c){var d=this.$a.tc(b,e,!0);d instanceof olympe.dc.yf&&Zn(a,d.ka(),olympe.dc.Ee.Rg);f instanceof olympe.dc.yf&&!Un(a,f.ka())&&Un(a,b)&&(d=new olympe.dc.Vc,d.persist(f.ka()),d.C(a))}a.qh(b,c)}toString(){return'UpdateInstance('+this.ka()+', '+qo(this,this.Pi)+')'}};olympe.dc.transaction.ac.rU=class a extends olympe.dc.transaction.ac.ar{constructor(b,c){super();this.tag=b;this.source=c}C(b){const c=olympe.dc.$a();if(Un(b,this.tag)&&c.rc(this.tag)&&!c.Jl(this.tag)){const e=c.Xd(this.tag,!0);var d;let f;null==(f=null==(d=b.C.mh(this.tag))?void 0:d.Xd())||f.forEach((g,h)=>{e.set(h,g)});for(const g of e.values())g instanceof olympe.dc.yf&&c.rc(g.ka())&&(new a(g.ka(),this.source)).C(b);d=c.model(this.tag);b.Af(this.tag,d,this.source,e);for(const [g,h,l]of yj(c,this.tag))Un(b,
1647
1647
  l)&&(h===olympe.dc.Gb.ORIGIN?b.Pb(g,l,this.tag):b.Pb(g,this.tag,l))}}toString(){return`PersistOperation: tag - ${this.tag}, src - ${this.source}`}};olympe.dc.Va=function(a){let b=null;if('string'===typeof a)return a;if('function'===typeof(null==a?void 0:a.ka)&&(null==a||!a.Kh))b=a.ka();else if('function'===typeof a){let d;b=null!=(d=olympe.dc.Ja.Ce(a))?d:''}else if(olympe.j.Og(a)){let d;b=olympe.dc.Va(null==(d=olympe.j.Pa(a))?void 0:d.valueOf())}let c;return null!=(c=b)?c:''};z('olympe.dc.instanceToTag',olympe.dc.Va);olympe.dc.$a=function(){return olympe.dc.cO().view};olympe.dc.register=function(a,b){olympe.dc.Ja.C(a,b)};
1648
1648
  olympe.dc.defineProperty=function(a){return new olympe.dc.Qc.Property(a)};olympe.dc.uN=function(a,b=olympe.dc.Gb.DESTINATION,c=olympe.dc.CloudObject,d=olympe.dc.Gb.DESTINATION){const e=olympe.dc.Gb.DESTINATION;return b===olympe.dc.Gb.ORIGIN||b===e?new olympe.dc.Qc.Relation(a,b):new olympe.dc.Qc.Relation(a,d,b,c)};olympe.dc.BW=function(a){return a.ie()};olympe.dc.zd={};olympe.dc.zd.pE=a=>'string'===typeof a||'number'===typeof a||'boolean'===typeof a||a instanceof String?olympe.j.mc(a):a instanceof olympe.j.kb?a:null;olympe.dc.zd.mE=a=>'boolean'===typeof a||a instanceof Boolean?olympe.j.lc(a):a instanceof olympe.j.ia?a:null;olympe.dc.zd.oE=a=>'number'===typeof a||a instanceof Number?olympe.j.Ba(a):'string'===typeof a||a instanceof String?olympe.j.Ba(Number.parseFloat(a.valueOf())):a instanceof olympe.j.aa?a:null;
1649
1649
  olympe.dc.zd.nE=a=>'number'===typeof a||a instanceof Number?zc(a.valueOf()):'string'===typeof a||a instanceof String?vc(a.valueOf()):a instanceof Date?yc(a):a instanceof olympe.j.bc?a:null;olympe.dc.zd.pN=function(a){return a instanceof olympe.j.Color?a:'string'===typeof a||a instanceof String?Ic(a.valueOf()):null};olympe.dc.zd.qN=a=>a instanceof olympe.dc.CloudObject?a:a instanceof olympe.dc.yf?Ih(a):null;olympe.dc.zd.Vw=a=>a instanceof olympe.dc.yf?Ih(a):a;
1650
- olympe.dc.zd.Yf=a=>{a=a instanceof olympe.dc.yf?Ih(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.Yf():a)?b:null};olympe.dc.zd.$W=a=>{switch(a){case olympe.j.ia:return olympe.dc.zd.mE;case olympe.j.kb:return olympe.dc.zd.pE;case olympe.j.aa:return olympe.dc.zd.oE;case olympe.j.bc:return olympe.dc.zd.nE;case olympe.j.Color:return olympe.dc.zd.pN;case olympe.dc.CloudObject:return olympe.dc.zd.qN;default:return olympe.dc.zd.Vw}};olympe.dc.cg={};olympe.dc.$n=class{bb(){}O(){}compare(){}R(){}gb(){}toString(){}};function ro(a){let b=null;for(a=[...a.Qa];null===b&&0<a.length;)b=a.pop().He();return b}function so(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.tb('dc').warn(a))}
1650
+ olympe.dc.zd.Zf=a=>{a=a instanceof olympe.dc.yf?Ih(a):a;let b;return null!=(b=a instanceof olympe.dc.CloudObject?a.Zf():a)?b:null};olympe.dc.zd.$W=a=>{switch(a){case olympe.j.ia:return olympe.dc.zd.mE;case olympe.j.kb:return olympe.dc.zd.pE;case olympe.j.aa:return olympe.dc.zd.oE;case olympe.j.bc:return olympe.dc.zd.nE;case olympe.j.Color:return olympe.dc.zd.pN;case olympe.dc.CloudObject:return olympe.dc.zd.qN;default:return olympe.dc.zd.Vw}};olympe.dc.cg={};olympe.dc.$n=class{bb(){}O(){}compare(){}R(){}gb(){}toString(){}};function ro(a){let b=null;for(a=[...a.Qa];null===b&&0<a.length;)b=a.pop().He();return b}function so(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.tb('dc').warn(a))}
1651
1651
  olympe.dc.Kb=class{constructor(a,b,c){void 0===a||null===a?olympe.fb.tb('dc').warn('attempt to create a listdef with a null or undefind basetag. This listdef is thus without effect.'):(this.D=olympe.j.Wa([a],olympe.dc.Va,String),this.Qa=void 0!==b&&(Array.isArray(b)?b:[b])||[],this.valueType=c||ro(this),this.C=null,this.mg=void 0)}Bk(){return olympe.dc.Bk()}Fd(){if(null===this.C){const a=olympe.dc.cg.KX();this.C=to(a,this,this.mg);null!==this.valueType&&this.C.wi(this.valueType);olympe.j.zb().We(()=>
1652
1652
  {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().Mb(),a.C.delete(b));this.C=null})}return this}getSubscription(){null===this.C&&this.Fd();return this.C}wi(a){this.valueType=a;null!==this.C&&this.C.wi(this.valueType)}He(){return null!==this.C?this.C.He():null===this.valueType?olympe.dc.CloudObject:this.valueType}Lj(){return this.D}cD(){return this.Qa}Oi(a,b){return this.getSubscription().Oi(a,
1653
1653
  b)}kB(a){this.getSubscription().kB(a)}cT(){return this.getSubscription().xc()}bT(){return this.getSubscription().T()}get(a){return this.getSubscription().get(a)}Bu(){return this.getSubscription().Bu()}Oj(a){const b=this.getSubscription();so(b,'getCurrent');return b.Oj(a)}has(a){return this.getSubscription().has(a)}Ji(a){const b=this.getSubscription();so(b,'hasCurrent');return b.Ji(a)}Lh(a){return this.getSubscription().Lh(a)}XY(a){return this.Lh(a).asObservable()}Al(a){const b=this.getSubscription();
1654
1654
  so(b,'getCurrentAt');return b.Al(a)}bn(a){return this.getSubscription().bn(a)}Bl(a){const b=this.getSubscription();so(b,'getCurrentKeyAt');return b.Bl(a)}kf(a){return this.getSubscription().kf(a)}bZ(a){return this.kf(a).asObservable()}Pm(a){const b=this.getSubscription();so(b,'getCurrentRank');return b.Pm(a)}be(){return this.getSubscription().be()}YY(){return this.be().asObservable()}$m(){return this.getSubscription().$m()}Tc(){return this.getSubscription().Tc()}cZ(){return this.Tc().asObservable()}hj(){const a=
1655
1655
  this.getSubscription();so(a,'getCurrentSize');return a.hj()}forEach(a,b){this.getSubscription().forEach(a,b)}di(a){const b=this.getSubscription();so(b,'forEachCurrentValue');return b.di(a)}bx(a,b,c,d){a=new olympe.dc.Qa.Ht(a,b);(new olympe.dc.Kb(this.D,[...this.Qa,a],this.valueType)).forEach(c,d)}transform(...a){var b=a;if(Array.isArray(a[0])){if(1<a.length)throw Error('ListDef.transform() should be called either with one array argument, or with ... arguments, but not both');b=a[0]}a=[...this.Qa];
1656
- for(const c of b){if(void 0===c)throw Error('ListDef.transform(): Trying to set an undefined transformer');if(c instanceof olympe.dc.Qc.Property)throw Error(`ListDef.transform(): Properties cannot be used as transformer, unlike relations ${c}`);if(!c||'function'!==typeof c.C)break;a.push(c)}b=new olympe.dc.Kb(this.D,a);b.mg=this.mg;b.wi(ro(b)||this.valueType||Object);return b}By(a){return this.transform(new olympe.dc.Qa.Co(a))}filter(a){return this.transform(new olympe.dc.Qa.Qf(a))}Vr(){const a=new olympe.dc.Wp(this.D,
1656
+ for(const c of b){if(void 0===c)throw Error('ListDef.transform(): Trying to set an undefined transformer');if(c instanceof olympe.dc.Qc.Property)throw Error(`ListDef.transform(): Properties cannot be used as transformer, unlike relations ${c}`);if(!c||'function'!==typeof c.C)break;a.push(c)}b=new olympe.dc.Kb(this.D,a);b.mg=this.mg;b.wi(ro(b)||this.valueType||Object);return b}By(a){return this.transform(new olympe.dc.Qa.Co(a))}filter(a){return this.transform(new olympe.dc.Qa.Rf(a))}Vr(){const a=new olympe.dc.Wp(this.D,
1657
1657
  null===this.valueType?void 0:this.valueType);'boolean'===typeof this.mg&&(a.mg=this.mg);let b=this.Qa;b instanceof Array||(b=b?[b]:[]);a.transform(b);return a}toString(){let a=this.Qa;a=a?', '+(a.join?a.join(', '):a.toString()):'';return'ListDef(#'+olympe.j.Pa(this.D)+a+')'}aT(){return this.getSubscription().sr()}rg(){return olympe.j.Wa([this.Tc()],a=>{let b='[';for(let c=0;c<a;c++){const d=this.Al(c).toString();b=0<c&&c<a?b+(', '+d):b+d}return olympe.j.mc(b+']')},olympe.j.kb)}};
1658
1658
  olympe.dc.Kb.prototype.filter=olympe.dc.Kb.prototype.filter;olympe.dc.Kb.prototype.union=olympe.dc.Kb.prototype.By;olympe.dc.Kb.prototype.transform=olympe.dc.Kb.prototype.transform;olympe.dc.Kb.prototype.forEachCurrentValue=olympe.dc.Kb.prototype.di;olympe.dc.Kb.prototype.forEach=olympe.dc.Kb.prototype.forEach;olympe.dc.Kb.prototype.getCurrentSize=olympe.dc.Kb.prototype.hj;olympe.dc.Kb.prototype.observeSize=olympe.dc.Kb.prototype.cZ;olympe.dc.Kb.prototype.observeFirst=olympe.dc.Kb.prototype.YY;
1659
1659
  olympe.dc.Kb.prototype.getCurrentRank=olympe.dc.Kb.prototype.Pm;olympe.dc.Kb.prototype.observeRank=olympe.dc.Kb.prototype.bZ;olympe.dc.Kb.prototype.getCurrentAt=olympe.dc.Kb.prototype.Al;olympe.dc.Kb.prototype.observeAt=olympe.dc.Kb.prototype.XY;olympe.dc.Kb.prototype.offReady=olympe.dc.Kb.prototype.kB;olympe.dc.Kb.prototype.onReady=olympe.dc.Kb.prototype.Oi;olympe.dc.Kb.prototype.getBaseTag=olympe.dc.Kb.prototype.Lj;olympe.dc.Kb.Aa=[olympe.j.Wg];k=olympe.dc.Kb.prototype;k.Bk.K=olympe.j.J.O;
@@ -1663,10 +1663,10 @@ k.By.K=new olympe.j.J(()=>olympe.dc.Kb,[]);k.filter.K=new olympe.j.J(()=>olympe.
1663
1663
  olympe.dc.Wp=class{constructor(a,b){this.C=wo(a);this.V=olympe.fb.tb('dc.query');this.valueType=void 0===b?olympe.dc.CloudObject:b;this.Qa=[];this.ac=[];this.mg=void 0}nk(){const a=new olympe.dc.Kb(this.C,this.Qa,this.valueType);'boolean'===typeof this.mg&&(a.mg=this.mg);return a}transform(a){for(let b=0,c=a.length,d;b<c;b++){d=a[b];if(void 0===d)throw new xo('transform','Trying to set an undefined transformer');if(d instanceof olympe.dc.Qc.Property)throw new xo('transform','Properties cannot be used as transformer, unlike relations '+
1664
1664
  d);if(!d||'function'!==typeof d.C)throw new xo('transform','one of the argument is not a Transformer '+d);const e=d.He();null!==e&&(this.valueType=e);this.Qa.push(d)}return this}By(a){this.Qa.push(new olympe.dc.Qa.Co(a));return this}q_(a){this.Qa.push(new olympe.dc.Qa.Co(wo(a)));return this}dT(a){this.valueType=a;return this}kc(a){this.Qa.push(a);this.valueType=a.He()||olympe.dc.CloudObject;return this}BN(){var a=[olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject.containsRel];for(const b of a)this.Qa.push(b),
1665
1665
  this.valueType=b.He()||olympe.dc.CloudObject;return this}AN(a){var b=olympe.dc.CloudObject.extendRel;a=new olympe.dc.Qa.Ij(b,b.Cc(),olympe.dc.Qa.HD.lI,a);this.Qa.push(a);this.valueType=a.He()||olympe.dc.CloudObject;return this}QW(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.Cc())}a=new olympe.dc.Qa.Cz(b,c);this.Qa.push(a);this.valueType=a.He()||olympe.dc.CloudObject;return this}bK(){this.kc(olympe.dc.CloudObject.instancesRel);return this}Nm(a){var b=
1666
- this.ac.pop();b===uo.CC&&(a=new olympe.dc.za.rk(a),b=this.ac.pop());switch(b){case uo.CH:b=this.Qa.pop().D;b instanceof olympe.dc.za.Ti?(b=b.za,b.push(a),a=new olympe.dc.za.Ti(...b)):a=new olympe.dc.za.Ti(b,a);b=this.ac.pop();break;case uo.DH:b=this.Qa.pop().D,b instanceof olympe.dc.za.fl?(b=b.za,b.push(a),a=new olympe.dc.za.fl(...b)):a=new olympe.dc.za.fl(b,a),b=this.ac.pop()}b===uo.CC&&(a=new olympe.dc.za.rk(a),this.ac.pop());this.Qa.push(new olympe.dc.Qa.Qf(a));return this}MW(a,b,c){return this.Nm(new olympe.dc.za.Wk(vo(a,
1666
+ this.ac.pop();b===uo.CC&&(a=new olympe.dc.za.rk(a),b=this.ac.pop());switch(b){case uo.CH:b=this.Qa.pop().D;b instanceof olympe.dc.za.Ti?(b=b.za,b.push(a),a=new olympe.dc.za.Ti(...b)):a=new olympe.dc.za.Ti(b,a);b=this.ac.pop();break;case uo.DH:b=this.Qa.pop().D,b instanceof olympe.dc.za.fl?(b=b.za,b.push(a),a=new olympe.dc.za.fl(...b)):a=new olympe.dc.za.fl(b,a),b=this.ac.pop()}b===uo.CC&&(a=new olympe.dc.za.rk(a),this.ac.pop());this.Qa.push(new olympe.dc.Qa.Rf(a));return this}MW(a,b,c){return this.Nm(new olympe.dc.za.Wk(vo(a,
1667
1667
  c),new olympe.dc.dd.pm(b)))}contains(a,b,c=!1,d){return this.Nm(new olympe.dc.za.bo(vo(a,d),new olympe.dc.dd.pm(b),c))}pe(a){if(!(a instanceof Array))throw new xo('instanceOf','Provided argument "models" must be an array.');const b=[];for(let c=0;c<a.length;c++)b.push(wo(a[c]));return this.Nm(new olympe.dc.za.ew(b))}eB(a){return this.Nm(new olympe.dc.za.Wk(new olympe.dc.dd.Dw,new olympe.dc.dd.pm(wo(a))))}NW(a){if(!Array.isArray(a))throw Error('ExcludeInstances should be called with an array');if(0<
1668
1668
  a.length){this.Te().eB(a[0]);for(let b=1,c=a.length;b<c;b++)this.and().Te().eB(a[b])}return this}oY(a,b){if(!(a instanceof Array))throw new xo('hasRelated','Provided argument "relations" must be an array.');const c=[],d=[];a.forEach(e=>{c.push(e);d.push(e.Cc())});return this.Nm(new olympe.dc.za.Ct(c,d,b))}cB(a,b,c){a=vo(a,c);return this.Nm(new olympe.dc.za.lz(a,new olympe.dc.dd.pm(b)))}xy(a,b,c){a=vo(a,c);return this.Nm(new olympe.dc.za.cA(a,new olympe.dc.dd.pm(b)))}OY(a,b,c,d){a=vo(a,d);return this.Nm(new olympe.dc.za.wo(a,
1669
- b,c))}filter(a){const b=new class extends olympe.dc.za.$q{C(c,d){return a(olympe.dc.CloudObject.get(d))}};return this.Nm(b)}Te(){this.ac.push(uo.CC);return this}and(){this.Qa[this.Qa.length-1]instanceof olympe.dc.Qa.Qf&&this.ac.push(uo.CH);return this}or(){this.Qa[this.Qa.length-1]instanceof olympe.dc.Qa.Qf&&this.ac.push(uo.DH);return this}zv(a,b,c){a=wo(a);let d=null;switch(olympe.dc.$a().Zd(a,olympe.dm.Property.typeRel)){case olympe.dm.String.U.ka():d=new olympe.dc.wg.String(new olympe.dc.dd.Bw(a,
1669
+ b,c))}filter(a){const b=new class extends olympe.dc.za.$q{C(c,d){return a(olympe.dc.CloudObject.get(d))}};return this.Nm(b)}Te(){this.ac.push(uo.CC);return this}and(){this.Qa[this.Qa.length-1]instanceof olympe.dc.Qa.Rf&&this.ac.push(uo.CH);return this}or(){this.Qa[this.Qa.length-1]instanceof olympe.dc.Qa.Rf&&this.ac.push(uo.DH);return this}zv(a,b,c){a=wo(a);let d=null;switch(olympe.dc.$a().Zd(a,olympe.dm.Property.typeRel)){case olympe.dm.String.U.ka():d=new olympe.dc.wg.String(new olympe.dc.dd.Bw(a,
1670
1670
  c));break;case olympe.dm.Number.U.ka():d=new olympe.dc.wg.Number(new olympe.dc.dd.ow(a,c));break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.wg.DateTime(new olympe.dc.dd.Qv(a,c))}c=d;null!==c&&this.Qa.push(new olympe.dc.Qa.Kr(c,b));return this}sort(a,b,c){const d=new class extends olympe.dc.wg.$q{O(e,f){return a(olympe.dc.CloudObject.get(f))}compare(e,f){return b(e,f).valueOf()}};this.Qa.push(new olympe.dc.Qa.Kr(d,c));return this}GW(){this.Qa.push(new olympe.dc.Qa.Rv);return this}mn(a,b){this.Qa.push(new olympe.dc.Qa.Ht(a,
1671
1671
  b));return this}};class xo extends Error{constructor(a,b){super(`ListDefBuilder.${a}(): ${b}`)}}function wo(a){return'string'===typeof a||a instanceof olympe.j.kb?a:'function'===typeof a?olympe.dc.Ja.Ce(a):olympe.j.$b(a)?a.gu===olympe.j.kb?a:olympe.j.Wa([a],b=>olympe.j.mc(olympe.dc.Va(b)),olympe.j.kb):a.ka()}k=olympe.dc.Wp.prototype;k.nk.K=new olympe.j.J(()=>olympe.dc.Kb,[]);k.transform.K=olympe.j.J.C([]);k.By.K=olympe.j.J.C([]);k.q_.K=olympe.j.J.C([]);k.dT.K=olympe.j.J.C([]);k.kc.K=olympe.j.J.C([]);
1672
1672
  k.BN.K=olympe.j.J.C([]);k.AN.K=olympe.j.J.C([]);k.QW.K=olympe.j.J.C([]);k.bK.K=olympe.j.J.C([]);k.Nm.K=olympe.j.J.C([]);k.MW.K=olympe.j.J.C([]);k.contains.K=olympe.j.J.C([]);k.pe.K=olympe.j.J.C([]);k.eB.K=olympe.j.J.C([]);k.NW.K=olympe.j.J.C([]);k.oY.K=olympe.j.J.C([]);k.cB.K=olympe.j.J.C([]);k.xy.K=olympe.j.J.C([]);k.OY.K=olympe.j.J.C([]);k.filter.K=olympe.j.J.C([]);k.Te.K=olympe.j.J.C([]);k.and.K=olympe.j.J.C([]);k.or.K=olympe.j.J.C([]);k.zv.K=olympe.j.J.C([]);k.sort.K=olympe.j.J.C([]);k.GW.K=olympe.j.J.C([]);
@@ -1683,21 +1683,21 @@ olympe.dc.Tj(),c=olympe.j.Pa(this.Lj());let d;return olympe.dc.CloudObject.insta
1683
1683
  ()=>{},olympe.j.ia)}T(){const b=F(this.state);return b&&b.valueOf()>=olympe.dc.cg.Subscription.C.Ot}Oi(b,c){this.T()?b(this):(null===this.$&&(this.$=new Map),void 0===c&&(c=olympe.la.df()),this.$.set(c,olympe.j.zb().ue(b)));return c||''}kB(b){null!==this.$&&b&&this.$.delete(b)}Ka(){const b=olympe.dc.cg.Subscription.C.Ot;if(!this.state.Ub.oc()&&olympe.j.Pa(this.state)!==b&&(this.Eo(),K(this.state,b),null!==this.$)){for(const c of this.$.values())c(this);this.$=null}}onDestroy(b){this.R.onDestroy(b)}Mb(){this.R.destroy()}Eb(b){if(!this.state.Ub.oc()){for(let c=
1684
1684
  0,d=b.length;c<d;c++)this.rA(b[c],c);if(this.T())this.Eo();else{this.eb=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.Ka()}}}Zb(b,c){if(!this.state.Ub.oc()&&(this.qA(b,olympe.dc.CloudObject.get(c)),b=this.T(),this.eb&&!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.Ka()}}xg(b){this.state.Ub.oc()||
1685
1685
  (this.eE(b),this.Iw(b,!this.T()))}sr(){return this.T()?super.sr():'Subscription is not ready!'}Gc(b){const c=olympe.j.Pa(this.Lj());return olympe.dc.cg.Subscription.D(c,b,this.ls())}static D(b,c,d){var e=olympe.dc.nb.from(b,c).ej();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.Qa.Em){const h=olympe.dc.query.Relation.from(e);b=b.map(l=>l.kc(h,!0))}else if(e instanceof olympe.dc.Qa.Ij){const h=olympe.dc.query.Relation.from(e);b=b.map(l=>l.iq(h,
1686
- !0,!0))}else if(e instanceof olympe.dc.Qa.Co)e=a.D(olympe.j.Pa(e.Lj()),c,e.ls()),b.push(...e);else if(e instanceof olympe.dc.Qa.Qf||e instanceof olympe.dc.Qa.Kr){const h=e.O();b=b.map(l=>{for(const m of h){for(const n of m)l=n.recursive?l.iq(n,!0,!0):l.kc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.cg.Subscription.C={INIT:0,$L:1,Ot:2};olympe.dc.cg.Subscription.prototype.sr.K=olympe.j.J.O;function Go(a){const b=a.C;a.C=!0;return b}olympe.dc.cg.kV=class{constructor(a){this.counter=0;this.C=!1;this.D=a}getSubscription(){return this.D}};olympe.dc.Bo=class{bb(){}He(){}C(){}gb(){}toString(){}};olympe.dc.fL=class{O(){}};olympe.dc.mA=class{bb(){}getValue(){}C(){}gb(){}toString(){}};olympe.dc.wg={};let Jo=0;olympe.dc.wg.$q=class{constructor(){this.id=Jo++}bb(){return'CustomLocalComparator#'+Jo}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.wg.$q.Aa=[olympe.dc.$n];olympe.dc.wg.DateTime=class{constructor(a){this.C=a}bb(){return hi(olympe.dc.wg.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.wg.DateTime);olympe.dc.wg.DateTime.Aa=[olympe.dc.$n];olympe.dc.wg.Number=class{constructor(a){this.C=a}bb(){return hi(olympe.dc.wg.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.wg.Number);olympe.dc.wg.Number.Aa=[olympe.dc.$n];olympe.dc.wg.String=class{constructor(a){this.C=a}bb(){return hi(olympe.dc.wg.String)}R(){return this.C.C()}O(a,b){return olympe.j.Wa([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.wg.String);olympe.dc.wg.String.Aa=[olympe.dc.$n];olympe.dc.za={};let Ko=0;olympe.dc.za.$q=class{constructor(){this.id=Ko++}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.za.$q.Aa=[olympe.dc.Rb];olympe.dc.za.XB=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.Wa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return olympe.j.lc(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()+')'}};
1687
- olympe.dc.za.XB.Aa=[olympe.dc.Rb];olympe.dc.za.Ti=class{constructor(a){this.za=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.za=this.za.concat(arguments[c]):this.za.push(arguments[c])}bb(){return hi(olympe.dc.za.Ti)}D(){return this.za.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Wa(this.za.map(c=>c.C(a,b)),(...c)=>olympe.j.lc(c.every(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.za.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'And('+this.za.map(a=>
1688
- a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.za.Ti);olympe.dc.za.Ti.Aa=[olympe.dc.Rb];olympe.dc.za.dC=class{constructor(a,b){this.Xj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Wa([this.Xj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.lc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.ia))}bb(){return hi(olympe.dc.za.dC)}D(){return[this.value.C()]}gb(a){const b=olympe.j.$b(this.Xj)?F(this.Xj).valueOf():this.Xj.valueOf();return'{"c":"'+this.bb()+'","a":['+b+','+this.value.gb(a)+']}'}toString(){const a=olympe.j.$b(this.Xj)?F(this.Xj).valueOf():this.Xj.valueOf();
1689
- return this.bb().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.za.dC);olympe.dc.za.dC.Aa=[olympe.dc.Rb];olympe.dc.za.bo=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}bb(){return hi(olympe.dc.za.bo)}D(){return[this.source.C(),this.value.C()]}Cd(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.value.getValue(a,b),this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc(c.includes(d))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=this.value.gb(a);a=Io(a,this.O);
1690
- return'{"c":"'+this.bb()+'","a":['+b+','+c+','+a+']}'}toString(){const a=Ho(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.za.bo);olympe.dc.za.bo.Aa=[olympe.dc.Rb];olympe.dc.za.Wk=class{constructor(a,b){this.O=a;this.R=b}bb(){return hi(olympe.dc.za.Wk)}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Wa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Ue?c.Ue(d):'object'===typeof d&&void 0!==d.Ue?d.Ue(c):olympe.j.lc(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()+
1691
- ')'}};X('olympe.dc.predicates.Equals',olympe.dc.za.Wk);olympe.dc.za.Wk.Aa=[olympe.dc.Rb];olympe.dc.za.zR=class extends olympe.dc.za.Wk{constructor(a,b){super(a,new olympe.dc.dd.pm(b))}};olympe.dc.za.zR.Aa=[olympe.dc.Rb];olympe.dc.za.lz=class extends olympe.dc.za.XB{constructor(a,b){super(a,b)}bb(){return hi(olympe.dc.za.lz)}T(a,b){return a>b}};X('olympe.dc.predicates.Greater',olympe.dc.za.lz);olympe.dc.za.Ct=class{constructor(a,b,c){this.md=[];this.O=c instanceof Array?c:void 0!==c?[olympe.dc.Va(c)]:[];a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Qa.Ij?this.md.push(new Lo(c.ka(),c.Cc(),c.O,c.D)):this.md.push(new Lo(olympe.dc.Va(c),b[d],1,1))}bb(){return hi(olympe.dc.za.Ct)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(Boolean),!1)),d=olympe.la.df(),e=olympe.dc.$a();let f=0;a=(h,l)=>{0!==this.O.length&&
1686
+ !0,!0))}else if(e instanceof olympe.dc.Qa.Co)e=a.D(olympe.j.Pa(e.Lj()),c,e.ls()),b.push(...e);else if(e instanceof olympe.dc.Qa.Rf||e instanceof olympe.dc.Qa.Kr){const h=e.O();b=b.map(l=>{for(const m of h){for(const n of m)l=n.recursive?l.iq(n,!0,!0):l.kc(n,!0);l=l.back(m.length)}return l})}return b}};olympe.dc.cg.Subscription.C={INIT:0,$L:1,Ot:2};olympe.dc.cg.Subscription.prototype.sr.K=olympe.j.J.O;function Go(a){const b=a.C;a.C=!0;return b}olympe.dc.cg.kV=class{constructor(a){this.counter=0;this.C=!1;this.D=a}getSubscription(){return this.D}};olympe.dc.Bo=class{bb(){}He(){}C(){}gb(){}toString(){}};olympe.dc.fL=class{O(){}};olympe.dc.mA=class{bb(){}getValue(){}C(){}gb(){}toString(){}};olympe.dc.wg={};let Jo=0;olympe.dc.wg.$q=class{constructor(){this.id=Jo++}bb(){return'CustomLocalComparator#'+Jo}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.wg.$q.Aa=[olympe.dc.$n];olympe.dc.wg.DateTime=class{constructor(a){this.C=a}bb(){return gi(olympe.dc.wg.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.wg.DateTime);olympe.dc.wg.DateTime.Aa=[olympe.dc.$n];olympe.dc.wg.Number=class{constructor(a){this.C=a}bb(){return gi(olympe.dc.wg.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.wg.Number);olympe.dc.wg.Number.Aa=[olympe.dc.$n];olympe.dc.wg.String=class{constructor(a){this.C=a}bb(){return gi(olympe.dc.wg.String)}R(){return this.C.C()}O(a,b){return olympe.j.Wa([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.wg.String);olympe.dc.wg.String.Aa=[olympe.dc.$n];olympe.dc.za={};let Ko=0;olympe.dc.za.$q=class{constructor(){this.id=Ko++}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.za.$q.Aa=[olympe.dc.Rb];olympe.dc.za.XB=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.Wa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>{c=c.valueOf();d=d.valueOf();return olympe.j.lc(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()+')'}};
1687
+ olympe.dc.za.XB.Aa=[olympe.dc.Rb];olympe.dc.za.Ti=class{constructor(a){this.za=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.za=this.za.concat(arguments[c]):this.za.push(arguments[c])}bb(){return gi(olympe.dc.za.Ti)}D(){return this.za.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Wa(this.za.map(c=>c.C(a,b)),(...c)=>olympe.j.lc(c.every(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.za.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'And('+this.za.map(a=>
1688
+ a.toString()).join(',')+')'}};X('olympe.dc.predicates.And',olympe.dc.za.Ti);olympe.dc.za.Ti.Aa=[olympe.dc.Rb];olympe.dc.za.dC=class{constructor(a,b){this.Xj=a;this.value=b}C(a,b){return a.run(()=>olympe.j.Wa([this.Xj,this.value.getValue(a,b)],(c,d)=>{c=c.valueOf();return olympe.j.lc((Number(c)&Number(d.valueOf()))===Number(c))},olympe.j.ia))}bb(){return gi(olympe.dc.za.dC)}D(){return[this.value.C()]}gb(a){const b=olympe.j.$b(this.Xj)?F(this.Xj).valueOf():this.Xj.valueOf();return'{"c":"'+this.bb()+'","a":['+b+','+this.value.gb(a)+']}'}toString(){const a=olympe.j.$b(this.Xj)?F(this.Xj).valueOf():this.Xj.valueOf();
1689
+ return this.bb().replace(/^.+\./,'')+'('+a.toString()+','+this.value.toString()+')'}};X('olympe.dc.predicates.BitMask',olympe.dc.za.dC);olympe.dc.za.dC.Aa=[olympe.dc.Rb];olympe.dc.za.bo=class{constructor(a,b,c){this.source=a;this.value=b;this.O=c?c:!1}bb(){return gi(olympe.dc.za.bo)}D(){return[this.source.C(),this.value.C()]}Cd(){return this.source}getValue(){return this.value}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.value.getValue(a,b),this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc(c.includes(d))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=this.value.gb(a);a=Io(a,this.O);
1690
+ return'{"c":"'+this.bb()+'","a":['+b+','+c+','+a+']}'}toString(){const a=Ho(this.O);return'Contains('+this.source.toString()+','+this.value.toString()+','+a+')'}};X('olympe.dc.predicates.Contains',olympe.dc.za.bo);olympe.dc.za.bo.Aa=[olympe.dc.Rb];olympe.dc.za.Wk=class{constructor(a,b){this.O=a;this.R=b}bb(){return gi(olympe.dc.za.Wk)}D(){return[this.O.C(),this.R.C()]}C(a,b){return a.run(()=>olympe.j.Wa([this.O.getValue(a,b),this.R.getValue(a,b)],(c,d)=>'object'===typeof c&&void 0!==c.Ue?c.Ue(d):'object'===typeof d&&void 0!==d.Ue?d.Ue(c):olympe.j.lc(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()+
1691
+ ')'}};X('olympe.dc.predicates.Equals',olympe.dc.za.Wk);olympe.dc.za.Wk.Aa=[olympe.dc.Rb];olympe.dc.za.zR=class extends olympe.dc.za.Wk{constructor(a,b){super(a,new olympe.dc.dd.pm(b))}};olympe.dc.za.zR.Aa=[olympe.dc.Rb];olympe.dc.za.lz=class extends olympe.dc.za.XB{constructor(a,b){super(a,b)}bb(){return gi(olympe.dc.za.lz)}T(a,b){return a>b}};X('olympe.dc.predicates.Greater',olympe.dc.za.lz);olympe.dc.za.Ct=class{constructor(a,b,c){this.md=[];this.O=c instanceof Array?c:void 0!==c?[olympe.dc.Va(c)]:[];a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Qa.Ij?this.md.push(new Lo(c.ka(),c.Cc(),c.O,c.D)):this.md.push(new Lo(olympe.dc.Va(c),b[d],1,1))}bb(){return gi(olympe.dc.za.Ct)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(Boolean),!1)),d=olympe.la.df(),e=olympe.dc.$a();let f=0;a=(h,l)=>{0!==this.O.length&&
1692
1692
  !this.O.includes(l)||c.getContext().oc()||c.getContext().bg()||(f+=h?1:-1,c.update(0<f))};const g=this.md;for(let h=g.length-1;0<=h;h--)a=Mo(g[h],e,a,d+h);Mh(e,b,a,d);c.getContext().onDestroy(()=>{Jh(e,b,d)});return c.va()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.md.map(a=>a.gb()))+(0!==this.O.length?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelated('+(0!==this.O.length?'#'+this.O.toString()+', ':'')+this.md.map(a=>a.gb())+')'}};X('olympe.dc.predicates.HasRelated',olympe.dc.za.Ct);
1693
- function Mo(a,b,c,d){const e=Object.create(null);d+=olympe.la.wk();const f=(g,h,l)=>{l>=a.D&&c(g,h);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[h]||(e[h]=!0,pj(b,h,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[h],b.D(h,a,m))}};return(g,h)=>f(g,h,0)}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}gb(){return`${this.ka()}, ${this.Cc()}, ${this.D}, ${this.C}`}}olympe.dc.za.Ct.Aa=[olympe.dc.Rb];olympe.dc.za.PC=class{constructor(a,b,c){this.md=[];this.O=void 0!==c?c.map(olympe.dc.Va):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Qa.Ij?this.md.push(new No(c.ka(),c.Cc(),c.O,c.D)):this.md.push(new No(olympe.dc.Va(c),b[d],1,1))}bb(){return hi(olympe.dc.za.PC)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(Boolean),!1)),d=olympe.dc.$a(),e=olympe.la.wk();let f=(l,m,n)=>{m&&(null===this.O||this.O.includes(n))&&
1693
+ function Mo(a,b,c,d){const e=Object.create(null);d+=olympe.la.wk();const f=(g,h,l)=>{l>=a.D&&c(g,h);if(!(0<=a.C&&l>=a.C)){var m=d+l;g?e[h]||(e[h]=!0,pj(b,h,a,(n,p)=>{f(n,p,l+1)},m)):(delete e[h],b.D(h,a,m))}};return(g,h)=>f(g,h,0)}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}gb(){return`${this.ka()}, ${this.Cc()}, ${this.D}, ${this.C}`}}olympe.dc.za.Ct.Aa=[olympe.dc.Rb];olympe.dc.za.PC=class{constructor(a,b,c){this.md=[];this.O=void 0!==c?c.map(olympe.dc.Va):null;a=Array.isArray(a)?a:[a];for(let d=0,e=a.length;d<e;d++)c=a[d],c instanceof olympe.dc.Qa.Ij?this.md.push(new No(c.ka(),c.Cc(),c.O,c.D)):this.md.push(new No(olympe.dc.Va(c),b[d],1,1))}bb(){return gi(olympe.dc.za.PC)}D(){return[this.md.reduce((a,b)=>a.concat(b),[])]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(Boolean),!1)),d=olympe.dc.$a(),e=olympe.la.wk();let f=(l,m,n)=>{m&&(null===this.O||this.O.includes(n))&&
1694
1694
  l(1)};const g=this.md;for(let l=g.length-1;0<=l;l--)f=Oo(g[l],d,f,e+l);let h=0;Mh(d,b,f.bind(null,l=>{c.getContext().bg()||c.getContext().oc()||(h+=l,c.update(0<h))}),e);a.onDestroy(()=>Jh(d,b,e));return c.va()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(this.md.map(a=>a.gb()))+(null!==this.O?',"'+this.O.toString():'')+'"]}'}toString(){return'HasRelatedTree('+(null!==this.O?'#['+this.O.toString()+'], ':'')+this.md.map(a=>a.gb())+')'}};X('olympe.dc.predicates.HasRelatedTree',olympe.dc.za.PC);
1695
1695
  function Oo(a,b,c,d){const e=a.O,f=a.T,g=new Set,h=(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.wk();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(A=>A(x)));g.delete(v)};h(m,t,p);e.has(t)?m(e.get(t)):(n>=a.D&&
1696
- c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&pj(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 No 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.Cc()}, ${this.D}, ${this.C}`}}olympe.dc.za.PC.Aa=[olympe.dc.Rb];olympe.dc.za.ew=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Va(b))}):this.O.add(olympe.dc.Va(a))}bb(){return hi(olympe.dc.za.ew)}D(){return[]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(olympe.j.ia),olympe.j.ia.pb)),d=olympe.dc.$a();let e=[];const f=()=>{e.forEach(h=>{d.D(h.tag,h.relation,h.id)});e=[]},g=(h,l)=>{if(h)if(l===olympe.dc.Va(olympe.dc.CloudObject))c.update(olympe.j.lc(this.O.has(l))),f();else{for(const m of e)if(m.tag===l)throw Error(`You should never extend a model to itself (${l})`);
1696
+ c(x=>{e.set(t,(e.get(t)||0)+x);m(x)},r,t),(0>a.C||n<=a.C)&&t!==p&&pj(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 No 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.Cc()}, ${this.D}, ${this.C}`}}olympe.dc.za.PC.Aa=[olympe.dc.Rb];olympe.dc.za.ew=class{constructor(a){this.O=new Set;a instanceof Array?a.forEach(b=>{this.O.add(olympe.dc.Va(b))}):this.O.add(olympe.dc.Va(a))}bb(){return gi(olympe.dc.za.ew)}D(){return[]}C(a,b){const c=a.run(()=>M(olympe.j.Ya(olympe.j.ia),olympe.j.ia.pb)),d=olympe.dc.$a();let e=[];const f=()=>{e.forEach(h=>{d.D(h.tag,h.relation,h.id)});e=[]},g=(h,l)=>{if(h)if(l===olympe.dc.Va(olympe.dc.CloudObject))c.update(olympe.j.lc(this.O.has(l))),f();else{for(const m of e)if(m.tag===l)throw Error(`You should never extend a model to itself (${l})`);
1697
1697
  this.O.has(l)?(c.update(olympe.j.ia.C),f()):(h=new Po(l,olympe.dc.CloudObject.extendRel),e.push(h),pj(d,h.tag,h.relation,g,h.id))}};a=new Po(b,olympe.dc.CloudObject.modelRel);e.push(a);pj(d,a.tag,a.relation,g,a.id);c.getContext().onDestroy(f);return c.va()}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(Array.from(this.O))+']}'}toString(){return'InstanceOf('+Array.from(this.O).join(', ')+')'}};class Po{constructor(a,b){this.tag=a;this.relation=b;this.id=olympe.la.wk()}}
1698
- X('olympe.dc.predicates.InstanceOf',olympe.dc.za.ew);olympe.dc.za.ew.Aa=[olympe.dc.Rb];olympe.dc.za.rk=class{constructor(a){this.O=a}bb(){return hi(olympe.dc.za.rk)}D(){return this.O.D()}C(a,b){return a.run(()=>olympe.j.Wa([this.O.C(a,b)],c=>olympe.j.lc(!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.za.rk);olympe.dc.za.rk.Aa=[olympe.dc.Rb];olympe.dc.za.fl=class{constructor(a){this.za=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.za=this.za.concat(arguments[c]):this.za.push(arguments[c])}bb(){return hi(olympe.dc.za.fl)}D(){return this.za.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Wa(this.za.map(c=>c.C(a,b)),(...c)=>olympe.j.lc(c.some(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.za.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'Or('+this.za.map(a=>
1699
- a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.za.fl);olympe.dc.za.fl.Aa=[olympe.dc.Rb];olympe.dc.za.wo=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}bb(){return hi(olympe.dc.za.wo)}D(){return[this.source.C()]}Cd(){return this.source}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.R,this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc((new RegExp(d)).test(c))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=Io(a,this.R);a=Io(a,this.O);return'{"c":"'+this.bb()+'","a":['+b+','+c+','+
1700
- a+']}'}toString(){const a=Ho(this.O);return'Regex('+this.source.toString()+','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.za.wo);olympe.dc.za.wo.Aa=[olympe.dc.Rb];olympe.dc.za.cA=class extends olympe.dc.za.XB{constructor(a,b){super(a,b)}bb(){return hi(olympe.dc.za.cA)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.za.cA);olympe.dc.eg={};olympe.dc.eg.Ny=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.eg.dz(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=
1698
+ X('olympe.dc.predicates.InstanceOf',olympe.dc.za.ew);olympe.dc.za.ew.Aa=[olympe.dc.Rb];olympe.dc.za.rk=class{constructor(a){this.O=a}bb(){return gi(olympe.dc.za.rk)}D(){return this.O.D()}C(a,b){return a.run(()=>olympe.j.Wa([this.O.C(a,b)],c=>olympe.j.lc(!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.za.rk);olympe.dc.za.rk.Aa=[olympe.dc.Rb];olympe.dc.za.fl=class{constructor(a){this.za=[];for(let b=arguments.length,c=0;c<b;c++)Array.isArray(arguments[c])?this.za=this.za.concat(arguments[c]):this.za.push(arguments[c])}bb(){return gi(olympe.dc.za.fl)}D(){return this.za.reduce((a,b)=>a.concat(b.D()),[])}C(a,b){return a.run(()=>olympe.j.Wa(this.za.map(c=>c.C(a,b)),(...c)=>olympe.j.lc(c.some(d=>d.valueOf())),olympe.j.ia))}gb(a){const b=this.za.map(c=>c.gb(a));return'{"c":"'+this.bb()+'","a":['+b.join(',')+']}'}toString(){return'Or('+this.za.map(a=>
1699
+ a.toString()).join(',')+')'}};X('olympe.dc.predicates.Or',olympe.dc.za.fl);olympe.dc.za.fl.Aa=[olympe.dc.Rb];olympe.dc.za.wo=class{constructor(a,b,c){this.source=a;this.R=b;this.O=void 0===c?!0:c}bb(){return gi(olympe.dc.za.wo)}D(){return[this.source.C()]}Cd(){return this.source}C(a,b){return a.run(()=>olympe.j.Wa([this.source.getValue(a,b),this.R,this.O],(c,d,e)=>{c=String(c);d=String(d);e.valueOf()||(c=c.toLowerCase(),d=d.toLowerCase());return olympe.j.lc((new RegExp(d)).test(c))},olympe.j.ia))}gb(a){const b=this.source.gb(a),c=Io(a,this.R);a=Io(a,this.O);return'{"c":"'+this.bb()+'","a":['+b+','+c+','+
1700
+ a+']}'}toString(){const a=Ho(this.O);return'Regex('+this.source.toString()+','+this.R+','+a+')'}};X('olympe.dc.predicates.Regex',olympe.dc.za.wo);olympe.dc.za.wo.Aa=[olympe.dc.Rb];olympe.dc.za.cA=class extends olympe.dc.za.XB{constructor(a,b){super(a,b)}bb(){return gi(olympe.dc.za.cA)}T(a,b){return a<b}};X('olympe.dc.predicates.Smaller',olympe.dc.za.cA);olympe.dc.eg={};olympe.dc.eg.Ny=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.eg.dz(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=
1701
1701
  [];null!==this.item&&(0<=this.D?Qo(Ro(this.item,this.D),a):a.push(this.R));this.W(a)}}Xq(a){this.W=a}};olympe.dc.eg.Ny.Aa=[olympe.dc.eg.Ec];function Fo(a,b,c,d){b?a.T[d]=c:delete a.T[d];null===a.D&&(a.D=new olympe.dc.eg.dz(a.La,a));return a.D}function Ro(a,b){for(let c=0;c<b;c++)if(null!==a.D)a=a.D;else break;return a}function Qo(a,b){a=a.T;if(null!==a)for(let c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c)}olympe.dc.eg.dz=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}Bk(){return this.La}eq(){this.La.T()?this.La.O():this.La.$(this.depth-1)}};class So extends olympe.dc.eg.dz{constructor(a,b,c){super(a);this.R=b;this.tag=c;this.$=this.W=this.O=!1;this.C=null}}
1702
1702
  function To(a,b,c,d,e){const f=Object.create(null),g=a.qa,h=a.R;let l,m,n;a.fa=!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=h[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=h[l],c.O&&(c.O=!1,e(!1,c.tag,c.R,c)),c.W&&(c.C=null,delete h[l]),delete f[l]);a.fa=!1;null!==a.D&&a.O()}
1703
1703
  olympe.dc.eg.kD=class{constructor(){this.R={};this.qa=[];this.D=null;this.fa=!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.fa){var a=this.qa,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=Ro(f,g)}null!==
@@ -1714,31 +1714,31 @@ class ep{constructor(a,b){this.id=a;this.parent=b||null;this.C=this.R=this.D=thi
1714
1714
  function jp(a,b,c){const d=c.getContext(),e=olympe.dc.$a(),f=a.O(),g=kj(e,b,a.R,d.ue(h=>{null!==h&&(h=f(h));null===h?c.clear():c.update(h)}));d.onDestroy(()=>lj(e,b,a.R,g))}
1715
1715
  olympe.dc.dd.Iv=class{constructor(a,b,c){this.R=a&&a.ka?a.ka():a;this.Qa=b&&b.filter(d=>d instanceof olympe.dc.Qa.Em||d instanceof olympe.dc.Qa.Ij)||null;this.D=c||null;this.defaultValue=null}bb(){}He(){}O(){}C(){return(this.Qa||[]).reduce((a,b)=>a.concat(olympe.dc.query.Relation.from(b)),[])}rj(a){this.defaultValue=a;return this}ls(){return this.Qa}Lj(){return this.D}getValue(a,b){const c=a.run(()=>olympe.j.Ya(this.He()||Object,'AbstractProperty valueType'));null!==this.defaultValue&&M(c,this.defaultValue);
1716
1716
  b=this.D||b;null!==this.Qa?ip(a,b,this.Qa,d=>{jp(this,d,c)}):jp(this,b,c);return c.va()}gb(a){const b=Io(a,this.R),c=Io(a,this.D);let d='null';this.Qa&&(d=this.Qa.map(function(e){return e.gb(a)}).join(','));return`{"c":"${this.bb()}","a":["${b}",${d},${c}]}`}toString(){const a=Ho(this.R),b=this.D?','+Ho(this.D):'';let c='';this.Qa&&(c=','+this.Qa.join(','));return this.bb().replace(/^.+\./,'')+'('+a+c+b+')'}};olympe.dc.dd.Iv.Aa=[olympe.dc.mA];olympe.dc.dd.bG=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.$a();const e=d.Zd(a,olympe.dm.Property.typeRel);if(!e)throw Error('Type of property '+a+'unavailable locally, cannot proceed with AnyProperty');a=d.sq(e,olympe.dc.CloudObject.extendRel,olympe.dm.jl);d=null;switch(1<a.length?a[a.length-2]:e){case olympe.dm.String.U.ka():d=new olympe.dc.dd.Bw(c,b);break;case olympe.dm.Number.U.ka():d=new olympe.dc.dd.ow(c,
1717
- b);break;case olympe.dm.Boolean.U.ka():d=new olympe.dc.dd.Qy(c,b);break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.dd.Qv(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.bG.Aa=[olympe.dc.mA];olympe.dc.dd.Qy=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return hi(olympe.dc.dd.Qy)}O(){return olympe.dc.zd.mE}He(){return olympe.j.ia}};X('olympe.dc.valuedefs.BooleanProperty',olympe.dc.dd.Qy);olympe.dc.dd.pm=class{constructor(a){this.value=a}bb(){return hi(olympe.dc.dd.pm)}C(){return[]}getValue(){return this.value}gb(a){a=Io(a,this.value);return`{"c":"${this.bb()}","a":[${a}]}`}toString(){return`Constant(${Ho(this.value)})`}};X('olympe.dc.valuedefs.Constant',olympe.dc.dd.pm);olympe.dc.dd.pm.Aa=[olympe.dc.mA];olympe.dc.dd.Qv=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return hi(olympe.dc.dd.Qv)}O(){return olympe.dc.zd.nE}He(){return olympe.j.bc}};X('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.dd.Qv);olympe.dc.dd.ow=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return hi(olympe.dc.dd.ow)}O(){return olympe.dc.zd.oE}He(){return olympe.j.aa}};X('olympe.dc.valuedefs.NumberProperty',olympe.dc.dd.ow);olympe.dc.dd.Bw=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return hi(olympe.dc.dd.Bw)}O(){return olympe.dc.zd.pE}He(){return olympe.j.kb}};X('olympe.dc.valuedefs.StringProperty',olympe.dc.dd.Bw);olympe.dc.dd.Dw=class{bb(){return hi(olympe.dc.dd.Dw)}C(){return[]}getValue(a,b){return b}gb(){return'{"c":"'+this.bb()+'","a":[]}'}toString(){return'Tag()'}};X('olympe.dc.valuedefs.Tag',olympe.dc.dd.Dw);olympe.dc.dd.Dw.Aa=[olympe.dc.mA];olympe.dc.Qa={};olympe.dc.Qa.Rv=class{He(){return null}bb(){return hi(olympe.dc.Qa.Rv)}C(a,b,c){const d={};return function(e,f,g,h){e?void 0===d[f]?(d[f]=1,b.C.C!==g||b.D||(b.C.C=f),c(!0,f,f,Fo(h,!0,f,f))):(d[f]++,ap(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,Fo(h,!1,f,f)))}}gb(){return'{"c":"'+this.bb()+'"}'}toString(){return'Distinct()'}};X('olympe.dc.transformers.Distinct',olympe.dc.Qa.Rv);olympe.dc.Qa.Rv.Aa=[olympe.dc.Bo];olympe.dc.Qa.Qf=class{constructor(a){this.D=a}He(){return null}bb(){return hi(olympe.dc.Qa.Qf)}O(){return this.D.D()}C(a,b,c){function d(f,g,h,l){l=l.valueOf();!1===l&&ap(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,Fo(h,l,f,g)))}const e={};return(f,g,h,l)=>{const m='@'+h;if(f){let n=this.D.C(a,g);olympe.j.$b(n)&&(n=n.Ub);olympe.j.jn(n)?(b.D||void 0!==olympe.j.Pa(n)||ap(b,h),e[m]=n,a.run(()=>{olympe.j.Xa([n],p=>{d(g,h,l,p)},'filterResultHandler')})):d(g,h,l,n)}else void 0!==e[m]&&(e[m].destroy(),delete e[m]),
1718
- d(g,h,l,!1),delete e[h]}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.D.gb(a)+']}'}toString(){return'Filter('+this.D.toString()+')'}};X('olympe.dc.transformers.Filter',olympe.dc.Qa.Qf);olympe.dc.Qa.Qf.Aa=[olympe.dc.Bo,olympe.dc.fL];olympe.dc.Qa.FC=class{constructor(a,b,c,d){this.rel=new olympe.dc.Qc.Relation(olympe.dc.Va(a),c||olympe.dc.Gb.DESTINATION);this.D=new olympe.dc.Qc.Relation(olympe.dc.Va(b),d||olympe.dc.Gb.DESTINATION)}He(){return fi(this.rel)}bb(){return hi(olympe.dc.Qa.FC)}C(a,b,c){const d=olympe.dc.$a(),e={},f=this.rel.ka(),g=this.rel.Cc(),h=this.D.ka(),l=this.D.Cc();let m=null,n=null;const p=(t,u,v,w,x,y)=>{if(x){if(x=()=>{const A=olympe.la.Sd(v+g+(f+'_'+t)+y,20),H=Fo(u,!0,y,A);m=t;n=()=>{c(!1,y,A,Fo(u,!1,y,A))};
1717
+ b);break;case olympe.dm.Boolean.U.ka():d=new olympe.dc.dd.Qy(c,b);break;case olympe.dm.DateTime.U.ka():d=new olympe.dc.dd.Qv(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.bG.Aa=[olympe.dc.mA];olympe.dc.dd.Qy=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return gi(olympe.dc.dd.Qy)}O(){return olympe.dc.zd.mE}He(){return olympe.j.ia}};X('olympe.dc.valuedefs.BooleanProperty',olympe.dc.dd.Qy);olympe.dc.dd.pm=class{constructor(a){this.value=a}bb(){return gi(olympe.dc.dd.pm)}C(){return[]}getValue(){return this.value}gb(a){a=Io(a,this.value);return`{"c":"${this.bb()}","a":[${a}]}`}toString(){return`Constant(${Ho(this.value)})`}};X('olympe.dc.valuedefs.Constant',olympe.dc.dd.pm);olympe.dc.dd.pm.Aa=[olympe.dc.mA];olympe.dc.dd.Qv=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return gi(olympe.dc.dd.Qv)}O(){return olympe.dc.zd.nE}He(){return olympe.j.bc}};X('olympe.dc.valuedefs.DateTimeProperty',olympe.dc.dd.Qv);olympe.dc.dd.ow=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return gi(olympe.dc.dd.ow)}O(){return olympe.dc.zd.oE}He(){return olympe.j.aa}};X('olympe.dc.valuedefs.NumberProperty',olympe.dc.dd.ow);olympe.dc.dd.Bw=class extends olympe.dc.dd.Iv{constructor(a,b,c){super(a,b,c)}bb(){return gi(olympe.dc.dd.Bw)}O(){return olympe.dc.zd.pE}He(){return olympe.j.kb}};X('olympe.dc.valuedefs.StringProperty',olympe.dc.dd.Bw);olympe.dc.dd.Dw=class{bb(){return gi(olympe.dc.dd.Dw)}C(){return[]}getValue(a,b){return b}gb(){return'{"c":"'+this.bb()+'","a":[]}'}toString(){return'Tag()'}};X('olympe.dc.valuedefs.Tag',olympe.dc.dd.Dw);olympe.dc.dd.Dw.Aa=[olympe.dc.mA];olympe.dc.Qa={};olympe.dc.Qa.Rv=class{He(){return null}bb(){return gi(olympe.dc.Qa.Rv)}C(a,b,c){const d={};return function(e,f,g,h){e?void 0===d[f]?(d[f]=1,b.C.C!==g||b.D||(b.C.C=f),c(!0,f,f,Fo(h,!0,f,f))):(d[f]++,ap(b,g)):void 0!==d[f]&&0>=--d[f]&&(delete d[f],c(!1,f,f,Fo(h,!1,f,f)))}}gb(){return'{"c":"'+this.bb()+'"}'}toString(){return'Distinct()'}};X('olympe.dc.transformers.Distinct',olympe.dc.Qa.Rv);olympe.dc.Qa.Rv.Aa=[olympe.dc.Bo];olympe.dc.Qa.Rf=class{constructor(a){this.D=a}He(){return null}bb(){return gi(olympe.dc.Qa.Rf)}O(){return this.D.D()}C(a,b,c){function d(f,g,h,l){l=l.valueOf();!1===l&&ap(b,g);l!==!!e[g]&&(e[g]=l,c(l,f,g,Fo(h,l,f,g)))}const e={};return(f,g,h,l)=>{const m='@'+h;if(f){let n=this.D.C(a,g);olympe.j.$b(n)&&(n=n.Ub);olympe.j.jn(n)?(b.D||void 0!==olympe.j.Pa(n)||ap(b,h),e[m]=n,a.run(()=>{olympe.j.Xa([n],p=>{d(g,h,l,p)},'filterResultHandler')})):d(g,h,l,n)}else void 0!==e[m]&&(e[m].destroy(),delete e[m]),
1718
+ d(g,h,l,!1),delete e[h]}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.D.gb(a)+']}'}toString(){return'Filter('+this.D.toString()+')'}};X('olympe.dc.transformers.Filter',olympe.dc.Qa.Rf);olympe.dc.Qa.Rf.Aa=[olympe.dc.Bo,olympe.dc.fL];olympe.dc.Qa.FC=class{constructor(a,b,c,d){this.rel=new olympe.dc.Qc.Relation(olympe.dc.Va(a),c||olympe.dc.Gb.DESTINATION);this.D=new olympe.dc.Qc.Relation(olympe.dc.Va(b),d||olympe.dc.Gb.DESTINATION)}He(){return fi(this.rel)}bb(){return gi(olympe.dc.Qa.FC)}C(a,b,c){const d=olympe.dc.$a(),e={},f=this.rel.ka(),g=this.rel.Cc(),h=this.D.ka(),l=this.D.Cc();let m=null,n=null;const p=(t,u,v,w,x,y)=>{if(x){if(x=()=>{const A=olympe.la.Sd(v+g+(f+'_'+t)+y,20),H=Fo(u,!0,y,A);m=t;n=()=>{c(!1,y,A,Fo(u,!1,y,A))};
1719
1719
  b.register(A,v,w,f,g);c(!0,y,A,H)},x.sP=t,e[w]=x,null===m||t<m)n&&n(),x()}else if(m===t){n();e[w]=!0;x=Infinity;let A=null;for(let H=Object.keys(e),G=H.length,R=0;R<G;R++){let fa=e[H[R]];fa.sP<x&&(x=fa.sP,A=fa)}A&&A()}},r=(t,u,v,w,x)=>{w?e[x]||(e[x]=!0,bp(b,v,x,f,g),bp(b,v,x,h,l),pj(d,x,this.rel,p.bind(this,t,u,v,x),v+'_val'),pj(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()+
1720
- '","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Qa.FC);olympe.dc.Qa.FC.Aa=[olympe.dc.Bo];olympe.dc.Qa.Ht=class{constructor(a,b){this.start=a;this.D=b}He(){return null}bb(){return hi(olympe.dc.Qa.Ht)}C(a,b,c){const d=new olympe.dc.eg.kD;let e,f,g,h=!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]);To(d,e,f,n,c)}};a.run(()=>olympe.j.Xa([this.start,this.D],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));gp(b,l);const m=dp(b);cp(b,m);return(n,p,r,t)=>{h||(t.Bk().Xq(u=>{e=u;hp(b,m)}),Do(b,()=>t.eq(),m),h=!0);d.C(n,p,r,null);Eo(b,r,m)}}gb(a){return'{"c":"'+
1720
+ '","a":["'+this.rel.toString()+'","'+this.D.toString()+'"]}'}toString(){return'FirstRelated('+this.rel.toString()+', '+this.D.toString()+')'}};X('olympe.dc.transformers.FirstRelated',olympe.dc.Qa.FC);olympe.dc.Qa.FC.Aa=[olympe.dc.Bo];olympe.dc.Qa.Ht=class{constructor(a,b){this.start=a;this.D=b}He(){return null}bb(){return gi(olympe.dc.Qa.Ht)}C(a,b,c){const d=new olympe.dc.eg.kD;let e,f,g,h=!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]);To(d,e,f,n,c)}};a.run(()=>olympe.j.Xa([this.start,this.D],(n,p)=>{f=n.valueOf();g=p.valueOf();l()}));gp(b,l);const m=dp(b);cp(b,m);return(n,p,r,t)=>{h||(t.Bk().Xq(u=>{e=u;hp(b,m)}),Do(b,()=>t.eq(),m),h=!0);d.C(n,p,r,null);Eo(b,r,m)}}gb(a){return'{"c":"'+
1721
1721
  this.bb()+'","a":['+Io(a,this.start)+','+Io(a,this.D)+']}'}toString(){return`Limit(${olympe.j.Pa(this.start)},${olympe.j.Pa(this.D)})`}};X('olympe.dc.transformers.Limit',olympe.dc.Qa.Ht);olympe.dc.Qa.Ht.Aa=[olympe.dc.Bo];function kp(a){return a.md.map(b=>b.ka())}
1722
- olympe.dc.Qa.Cz=class{constructor(a,b){this.direction=b||olympe.dc.Gb.DESTINATION;this.md=a.map(c=>new olympe.dc.Qc.Relation(c,this.direction))}He(){return olympe.dc.CloudObject}bb(){return hi(olympe.dc.Qa.Cz)}Cc(){return this.direction}C(a,b,c){const d=olympe.dc.$a(),e=(f,g,h,l)=>pj(d,f,l,(m,n)=>{var p=l.ka();p=olympe.la.Sd(g+l.Cc()+p+n,20);const r=Fo(h,m,n,p);m&&b.register(p,g,f,l.ka(),l.Cc());c(m,n,p,r)},g);return(f,g,h,l)=>{f?this.md.forEach(m=>{bp(b,h,g,m.ka(),m.Cc());e(g,h,l,m)}):this.md.forEach(m=>
1723
- {d.D(g,m,h)})}}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(kp(this))+',"'+this.direction+'"]}'}toString(){return'MultiRelated('+this.Cc()+'['+kp(this).join(',')+'])'}};X('olympe.dc.transformers.MultiRelated',olympe.dc.Qa.Cz);olympe.dc.Qa.Cz.Aa=[olympe.dc.Bo];olympe.dc.Qa.Ij=class extends olympe.dc.Qc.Relation{constructor(a,b=olympe.dc.Gb.DESTINATION,c=1,d=-1){super(a,b);this.O=c;this.D=d}He(){return fi(this)}bb(){return hi(olympe.dc.Qa.Ij)}C(a,b,c){const d=olympe.dc.$a(),e=Object.create(null),f=olympe.dc.Gb.ORIGIN,g=olympe.dc.Gb.DESTINATION,h=this.ka(),l=this.Cc(),m=(p,r,t)=>{if(!(0<=this.D&&p>=this.D)){var u=d.uc(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.Sd(r+l+(h+'_'+p)+u[v],20);b.register(x,
1722
+ olympe.dc.Qa.Cz=class{constructor(a,b){this.direction=b||olympe.dc.Gb.DESTINATION;this.md=a.map(c=>new olympe.dc.Qc.Relation(c,this.direction))}He(){return olympe.dc.CloudObject}bb(){return gi(olympe.dc.Qa.Cz)}Cc(){return this.direction}C(a,b,c){const d=olympe.dc.$a(),e=(f,g,h,l)=>pj(d,f,l,(m,n)=>{var p=l.ka();p=olympe.la.Sd(g+l.Cc()+p+n,20);const r=Fo(h,m,n,p);m&&b.register(p,g,f,l.ka(),l.Cc());c(m,n,p,r)},g);return(f,g,h,l)=>{f?this.md.forEach(m=>{bp(b,h,g,m.ka(),m.Cc());e(g,h,l,m)}):this.md.forEach(m=>
1723
+ {d.D(g,m,h)})}}gb(){return'{"c":"'+this.bb()+'","a":['+JSON.stringify(kp(this))+',"'+this.direction+'"]}'}toString(){return'MultiRelated('+this.Cc()+'['+kp(this).join(',')+'])'}};X('olympe.dc.transformers.MultiRelated',olympe.dc.Qa.Cz);olympe.dc.Qa.Cz.Aa=[olympe.dc.Bo];olympe.dc.Qa.Ij=class extends olympe.dc.Qc.Relation{constructor(a,b=olympe.dc.Gb.DESTINATION,c=1,d=-1){super(a,b);this.O=c;this.D=d}He(){return fi(this)}bb(){return gi(olympe.dc.Qa.Ij)}C(a,b,c){const d=olympe.dc.$a(),e=Object.create(null),f=olympe.dc.Gb.ORIGIN,g=olympe.dc.Gb.DESTINATION,h=this.ka(),l=this.Cc(),m=(p,r,t)=>{if(!(0<=this.D&&p>=this.D)){var u=d.uc(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.Sd(r+l+(h+'_'+p)+u[v],20);b.register(x,
1724
1724
  r,t,h,l||g);null===l&&b.register(x,r,t,h,f)}}},n=(p,r,t,u,v,w)=>{v&&!b.D&&m(p,u,w);p>=this.O?c(v,w,u,Fo(t,v,w,u)):bp(b,u,w,h,l);0<=this.D&&p>=this.D||(v?e[w]||(e[w]=!0,pj(d,w,this,(x,y)=>{const A=p+1,H=olympe.la.Sd(u+l+(h+'_'+A)+y,20);n(A,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.Cc()+'",'+this.O+','+this.D+']}'}toString(){return'RecursiveRelated('+this.Cc()+this.ka()+'['+this.O+'..'+this.D+'])'}};
1725
- X('olympe.dc.transformers.RecursiveRelated',olympe.dc.Qa.Ij);olympe.dc.Qa.Ij.Aa=[olympe.dc.Bo];olympe.dc.Qa.Em=class extends olympe.dc.Qc.Relation{constructor(a,b){super(a,b||olympe.dc.Gb.DESTINATION)}He(){return fi(this)}bb(){return hi(olympe.dc.Qa.Em)}ie(){return new olympe.dc.Qa.Em(this.tag,this.direction===olympe.dc.Gb.DESTINATION?olympe.dc.Gb.ORIGIN:olympe.dc.Gb.DESTINATION)}C(a,b,c){const d=olympe.dc.$a(),e=this.ka(),f=this.Cc();return(g,h,l,m)=>{bp(b,l,h,e,f);g?pj(d,h,this,(n,p)=>{const r=olympe.la.Sd(l+f+e+p,20),t=Fo(m,n,p,r);n&&b.register(r,l,h,e,f);c(n,p,r,t)},l):d.D(h,this,l)}}gb(){return'{"c":"'+
1726
- this.bb()+'","a":["'+this.ka()+'","'+this.Cc()+'"]}'}toString(){return'Related('+this.Cc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Qa.Em);olympe.dc.Qa.Em.Aa=[olympe.dc.Bo];olympe.dc.Qa.Kr=class{constructor(a,b){this.Re=a;this.D=void 0===b?!0:!!b}He(){return null}bb(){return hi(olympe.dc.Qa.Kr)}ds(){return this.Re}O(){return[this.Re.R()]}C(a,b,c){const d=new olympe.dc.eg.fM(a.ue(this.D?this.Re.compare.bind(this.Re):(e,f)=>this.Re.compare(f,e)));return(e,f,g)=>{var h=e?this.Re.O(a,f):void 0;h=d.C(e,f,g,h);c(e,f,g,h)}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.Re.gb(a)+','+JSON.stringify(this.D)+']}'}toString(){return'Sort('+this.Re.toString()+','+JSON.stringify(this.D)+
1725
+ X('olympe.dc.transformers.RecursiveRelated',olympe.dc.Qa.Ij);olympe.dc.Qa.Ij.Aa=[olympe.dc.Bo];olympe.dc.Qa.Em=class extends olympe.dc.Qc.Relation{constructor(a,b){super(a,b||olympe.dc.Gb.DESTINATION)}He(){return fi(this)}bb(){return gi(olympe.dc.Qa.Em)}ie(){return new olympe.dc.Qa.Em(this.tag,this.direction===olympe.dc.Gb.DESTINATION?olympe.dc.Gb.ORIGIN:olympe.dc.Gb.DESTINATION)}C(a,b,c){const d=olympe.dc.$a(),e=this.ka(),f=this.Cc();return(g,h,l,m)=>{bp(b,l,h,e,f);g?pj(d,h,this,(n,p)=>{const r=olympe.la.Sd(l+f+e+p,20),t=Fo(m,n,p,r);n&&b.register(r,l,h,e,f);c(n,p,r,t)},l):d.D(h,this,l)}}gb(){return'{"c":"'+
1726
+ this.bb()+'","a":["'+this.ka()+'","'+this.Cc()+'"]}'}toString(){return'Related('+this.Cc()+this.ka()+')'}};X('olympe.dc.transformers.Related',olympe.dc.Qa.Em);olympe.dc.Qa.Em.Aa=[olympe.dc.Bo];olympe.dc.Qa.Kr=class{constructor(a,b){this.Re=a;this.D=void 0===b?!0:!!b}He(){return null}bb(){return gi(olympe.dc.Qa.Kr)}ds(){return this.Re}O(){return[this.Re.R()]}C(a,b,c){const d=new olympe.dc.eg.fM(a.ue(this.D?this.Re.compare.bind(this.Re):(e,f)=>this.Re.compare(f,e)));return(e,f,g)=>{var h=e?this.Re.O(a,f):void 0;h=d.C(e,f,g,h);c(e,f,g,h)}}gb(a){return'{"c":"'+this.bb()+'","a":['+this.Re.gb(a)+','+JSON.stringify(this.D)+']}'}toString(){return'Sort('+this.Re.toString()+','+JSON.stringify(this.D)+
1727
1727
  ')'}};X('olympe.dc.transformers.Sort',olympe.dc.Qa.Kr);olympe.dc.Qa.Kr.Aa=[olympe.dc.Bo,olympe.dc.fL];function lp(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(h,null);r=d.C(n,p,c,null);f(n,p,h,Fo(r,n,p,h))}const h=olympe.la.df(),l=olympe.dc.$a(),m=a.Qa;b.run(()=>olympe.j.Xa([a.D],n=>{mp(l,n,g,h);void 0===l.model(n)&&Ao(e)}))}function mp(a,b,c,d){const e=b&&b.valueOf();e&&(Mh(a,e,c,d),olympe.j.zb().We(()=>Jh(a,e,d)))}
1728
- olympe.dc.Qa.Co=class{constructor(a,b){this.Qa=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Lj(),this.Qa=a.cD()):(this.D=a,b&&(this.Qa=b))}He(){return null}bb(){return hi(olympe.dc.Qa.Co)||''}ls(){return this.Qa}Lj(){return this.D}C(a,b,c){const d=new olympe.dc.eg.kD,e=new olympe.dc.eg.Ny;let f=[],g=[],h=!1,l=!1;const m=dp(b),n=dp(b);gp(b,()=>{const p=f.concat(g);0<p.length?b.D||(b.C.C=p[p.length-1]):hp(b);To(d,p,0,p.length,c)});cp(b,n);lp(this,a,this.D,e,b,(p,r,t,u)=>{const v=olympe.j.zb();v.bg()||
1728
+ olympe.dc.Qa.Co=class{constructor(a,b){this.Qa=this.D=null;a instanceof olympe.dc.Kb?(this.D=a.Lj(),this.Qa=a.cD()):(this.D=a,b&&(this.Qa=b))}He(){return null}bb(){return gi(olympe.dc.Qa.Co)||''}ls(){return this.Qa}Lj(){return this.D}C(a,b,c){const d=new olympe.dc.eg.kD,e=new olympe.dc.eg.Ny;let f=[],g=[],h=!1,l=!1;const m=dp(b),n=dp(b);gp(b,()=>{const p=f.concat(g);0<p.length?b.D||(b.C.C=p[p.length-1]):hp(b);To(d,p,0,p.length,c)});cp(b,n);lp(this,a,this.D,e,b,(p,r,t,u)=>{const v=olympe.j.zb();v.bg()||
1729
1729
  v.oc()||(l||(u.Bk().Xq(w=>{g=w;hp(b,n)}),Do(b,()=>u.eq(),n),l=!0),d.C(p,r,t),Eo(b,t,n))});cp(b,m);return(p,r,t,u)=>{h||(u.Bk().Xq(v=>{f=v;hp(b,m)}),Do(b,()=>u.eq(),m),h=!0);d.C(p,r,t,m);Eo(b,t,m)}}gb(a){const b=this.Qa?'['+this.Qa.map(c=>c.gb(a)).join(',')+']':'null';return'{"c":"'+this.bb()+'","a":['+Io(a,this.D)+','+b+']}'}toString(){const a=olympe.j.$b(this.D)?'N:'+this.D.Ub.ja():this.D.valueOf(),b=this.Qa?','+this.Qa.map(c=>c.toString()).join(','):'';return'Union('+a+b+')'}};
1730
1730
  X('olympe.dc.transformers.Union',olympe.dc.Qa.Co);olympe.dc.Qa.Co.Aa=[olympe.dc.Bo];olympe.dc.Qa.HD={S0:1,dS:-1,lI:0};olympe.dc.Qa.G2={z_:!0,a0:!1};olympe.dc.cg.ba={fK:'dc.legacy.listdefProcessor'};olympe.dc.cg.Config={eK:'dc.legacy.listdefsCovered'};olympe.ra.bf(a=>{E(a,olympe.dc.cg.Config.eK,!1);B(a,olympe.dc.cg.ba.fK,olympe.dc.cg.ET,olympe.dc.query.ba.Wb,olympe.dc.ba.jt,olympe.dc.transaction.ba.Nb,olympe.dc.query.ba.uw,new olympe.ra.xb(olympe.dc.Config.Vt),new olympe.ra.xb(olympe.dc.cg.Config.eK))});olympe.ra.run([olympe.dc.cg.ba.fK],a=>{olympe.dc.cg.KX=()=>a});function np(a){const b=olympe.dc.$a(),c=new Map;b.px(a).forEach(d=>{b.uc(d,olympe.dc.CloudObject.propertyRel).forEach(e=>{const f=b.name(e);c.has(f)||c.set(f,e)})});return c}
1731
1731
  olympe.dc.CloudObject=class{constructor(a,b){this.tag=b;this.db=olympe.dc.$a();Object.defineProperty(this,'db',{enumerable:!1});this.model=null;Object.defineProperties(this,{db:{enumerable:!1}})}static Af(a,b,c,...d){b=olympe.dc.Va(b);var e=Oh(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.xO();a=olympe.dc.Va(a);var c=b.db.model(a);c=Nh(b,c);if(null===
1732
1732
  c)throw new olympe.dc.RK(a);c=c.instantiate(a,b.D);b.C.vk([a],olympe.dc.db.Instance.C.nI);b.Qc.register(c,a);b=c}return b}static $w(a){return olympe.dc.$a().rc(olympe.dc.Va(a))}static Fx(...a){olympe.dc.cO().Fx(...a)}static AW(a,b,c){const d=olympe.dc.$a();let e=null;const f=l=>{null===e&&(e=np(b||this));return e.has(l)?e.get(l):null},g=co(!1),h=g.create(null!=b?b:this);void 0!==c&&h.re(c);a.forEach((l,m)=>{d.rc(olympe.dc.Va(m))?Z(h,m,l):(m=f(m))&&Z(h,m,l)});g.Fd((l,m)=>{l||olympe.fb.tb('dc').error(`Error occurred for transaction executed by CloudObject.createWith: ${m}`)});
1733
1733
  return this.get(h)}static lN(){return this.get(this)}static fB(a){return olympe.dc.nb.fB(a)}static Xd(){return olympe.dc.$a().uc(this,olympe.dc.CloudObject.propertyRel).map(a=>new olympe.dc.Qc.Property(a))}static fi(){const a=olympe.dc.$a();return a.uc(this,olympe.dc.CloudObject.Hx).map(b=>new olympe.dc.Qc.Relation(b)).concat(a.uc(this,olympe.dc.CloudObject.wN).map(b=>new olympe.dc.Qc.Relation(b,olympe.dc.Gb.ORIGIN)))}static mh(a){return olympe.dc.CloudObject.get(a)}static yO(a){var b=Nh(olympe.dc.xO(),
1734
1734
  olympe.dc.Va(a));b=b&&b.D;return new olympe.dc.Kb(olympe.dc.Va(a),olympe.dc.CloudObject.instancesRel,b)}ka(){return this.tag}name(){return this.db.name(this)}bb(){return this.Yd(olympe.dc.CloudObject.nameProp)}Se(){this.model||(this.model=olympe.dc.CloudObject.get(this.db.model(this)));return this.model}query(){return olympe.dc.nb.from(this)}Jl(){return this.db.Jl(this)}Cd(){return this.db.source(this)}GX(){return this.db.Ku(this)?olympe.dc.Tj().fromModel(this):null}hO(){return olympe.j.Wa([this.bb()],
1735
- a=>olympe.j.mc(a),olympe.j.kb,'getDisplayName',olympe.j.mc('('+this.toString()+')'))}Ce(){return this.model?this.model.ka():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.ve?a.ve():a;return new rxjs.Observable(e=>{const f=olympe.dc.zd.Yf(this.db.tc(this.tag,b));c||null!==f||e.next(f);const g=kj(this.db,this.tag,b,h=>{e.next(olympe.dc.zd.Yf(h))});d.We(()=>{e.complete();lj(this.db,this.tag,b,g)});return()=>lj(this.db,this.tag,b,g)})}$Y(a){const b='function'===typeof a.ve?a.ve():
1736
- a;return new rxjs.Observable(c=>{const d=mj(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Qc.Property(e),null]):c.next([new olympe.dc.Qc.Property(e),f])});b.We(()=>{c.complete();nj(this.db,this.tag,d)});return()=>nj(this.db,this.tag,d)})}aZ(a){return this.observe(olympe.j.zb(),a)}get(a){return olympe.dc.zd.Yf(this.db.tc(this.tag,a))}tc(a){return this.get(a)}kc(a){return olympe.dc.nb.from(this).kc(a)}wl(a){return olympe.dc.Yh.from(this).kc(a)}Yf(){return this}Jo(){return this.Lg(olympe.dc.CloudObject.wW,
1735
+ a=>olympe.j.mc(a),olympe.j.kb,'getDisplayName',olympe.j.mc('('+this.toString()+')'))}Ce(){return this.model?this.model.ka():this.db.model(this)}observe(a,b,c=!0){const d='function'===typeof a.ve?a.ve():a;return new rxjs.Observable(e=>{const f=olympe.dc.zd.Zf(this.db.tc(this.tag,b));c||null!==f||e.next(f);const g=kj(this.db,this.tag,b,h=>{e.next(olympe.dc.zd.Zf(h))});d.We(()=>{e.complete();lj(this.db,this.tag,b,g)});return()=>lj(this.db,this.tag,b,g)})}$Y(a){const b='function'===typeof a.ve?a.ve():
1736
+ a;return new rxjs.Observable(c=>{const d=mj(this.db,this.tag,(e,f)=>{null===f||void 0===f?c.next([new olympe.dc.Qc.Property(e),null]):c.next([new olympe.dc.Qc.Property(e),f])});b.We(()=>{c.complete();nj(this.db,this.tag,d)});return()=>nj(this.db,this.tag,d)})}aZ(a){return this.observe(olympe.j.zb(),a)}get(a){return olympe.dc.zd.Zf(this.db.tc(this.tag,a))}tc(a){return this.get(a)}kc(a){return olympe.dc.nb.from(this).kc(a)}wl(a){return olympe.dc.Yh.from(this).kc(a)}Zf(){return this}Jo(){return this.Lg(olympe.dc.CloudObject.wW,
1737
1737
  olympe.dc.CloudObject)}mx(){return this.uc(olympe.dc.CloudObject.containsRel,olympe.dc.CloudObject)}Qo(a,b,c){const d=olympe.j.Ya(c,'Sync valueType'),e=kj(this.db,this.tag,a,olympe.j.zb().ue(f=>{b&&null!==f&&void 0!==f&&(f=b(f));null===f||void 0===f?d.clear():d.update(f)}));d.getContext().onDestroy(()=>lj(this.db,this.tag,a,e));return d.getContext()}Yd(a){return $b(this.Qo(a,olympe.dc.zd.pE,olympe.j.kb))}Ag(a){return $b(this.Qo(a,olympe.dc.zd.oE,olympe.j.aa))}cn(a){return $b(this.Qo(a,olympe.dc.zd.mE,
1738
1738
  olympe.j.ia))}xx(a){return $b(this.Qo(a,olympe.dc.zd.nE,olympe.j.bc))}QO(){return $b(this.Qo(olympe.dm.Color.valueProp,olympe.dc.zd.pN,olympe.j.Color))}TA(a){return $b(this.Qo(a,olympe.dc.zd.qN,olympe.dc.CloudObject))}uc(a,b){a=a instanceof olympe.dc.Qa.Em?a:new olympe.dc.Qa.Em(a.ka(),a.Cc());return new olympe.dc.Kb(this.ka(),a,b)}Lg(a,b){return this.uc(a,b).be()}BA(a,b){const c=this.db,d=olympe.la.df(),e=olympe.j.zb(),f=new Map;pj(c,this.tag,a,(h,l)=>{if(h)(h=e.run(b,olympe.dc.CloudObject.get(l)))&&
1739
1739
  f.set(l,h);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}m_(){return new olympe.dc.Kb(this.ka(),[],di(this.ka()))}transform(...a){return(new olympe.dc.Kb(this.ka(),[],this.constructor)).transform(...a)}rg(){return this.hO()}toString(){return`CloudObject: ${JSON.stringify(this)}`}toJSON(){return this.db.rc(this.tag)?Object.assign({'#tag':this.ka(),'#type':this.Se().name()},this.gh(!0,!0)):{'#tag':this.ka(),'#error':'The object does not exist in the local database.'}}gh(a=
1740
- !1,b=!0){const c={};this.db.Xd(this,b).forEach((d,e)=>{this.db.rc(e)&&(e=a?this.db.name(e):e,c[e]=olympe.dc.zd.Yf(d))});return c}Sb(a){return a instanceof olympe.dc.CloudObject?this.ka()===a.ka():'function'===typeof a?olympe.dc.Ja.Ce(a)===this.ka():!1}Ue(a){return olympe.j.Wa([a],b=>olympe.j.lc(this.Sb(b)),olympe.j.ia)}EW(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.Gb.ORIGIN;for(const [e,f,g]of yj(b,this))f===d?a.Xf(e,g,this):e!==olympe.dc.CloudObject.modelRel.ka()&&
1741
- a.Xf(e,this,g);a.delete(this,olympe.dc.Ee.NONE);c&&a.Fd()}};olympe.dc.CloudObject.prototype.equals=olympe.dc.CloudObject.prototype.Sb;olympe.dc.CloudObject.prototype.toObject=olympe.dc.CloudObject.prototype.gh;olympe.dc.CloudObject.prototype.followSingle=olympe.dc.CloudObject.prototype.wl;olympe.dc.CloudObject.prototype.follow=olympe.dc.CloudObject.prototype.kc;olympe.dc.CloudObject.prototype.getProperty=olympe.dc.CloudObject.prototype.tc;olympe.dc.CloudObject.prototype.get=olympe.dc.CloudObject.prototype.get;
1740
+ !1,b=!0){const c={};this.db.Xd(this,b).forEach((d,e)=>{this.db.rc(e)&&(e=a?this.db.name(e):e,c[e]=olympe.dc.zd.Zf(d))});return c}Sb(a){return a instanceof olympe.dc.CloudObject?this.ka()===a.ka():'function'===typeof a?olympe.dc.Ja.Ce(a)===this.ka():!1}Ue(a){return olympe.j.Wa([a],b=>olympe.j.lc(this.Sb(b)),olympe.j.ia)}EW(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.Gb.ORIGIN;for(const [e,f,g]of yj(b,this))f===d?a.Yf(e,g,this):e!==olympe.dc.CloudObject.modelRel.ka()&&
1741
+ a.Yf(e,this,g);a.delete(this,olympe.dc.Ee.NONE);c&&a.Fd()}};olympe.dc.CloudObject.prototype.equals=olympe.dc.CloudObject.prototype.Sb;olympe.dc.CloudObject.prototype.toObject=olympe.dc.CloudObject.prototype.gh;olympe.dc.CloudObject.prototype.followSingle=olympe.dc.CloudObject.prototype.wl;olympe.dc.CloudObject.prototype.follow=olympe.dc.CloudObject.prototype.kc;olympe.dc.CloudObject.prototype.getProperty=olympe.dc.CloudObject.prototype.tc;olympe.dc.CloudObject.prototype.get=olympe.dc.CloudObject.prototype.get;
1742
1742
  olympe.dc.CloudObject.prototype.observeProperty=olympe.dc.CloudObject.prototype.aZ;olympe.dc.CloudObject.prototype.observeProperties=olympe.dc.CloudObject.prototype.$Y;olympe.dc.CloudObject.prototype.observe=olympe.dc.CloudObject.prototype.observe;olympe.dc.CloudObject.prototype.getModelTag=olympe.dc.CloudObject.prototype.Ce;olympe.dc.CloudObject.prototype.getSource=olympe.dc.CloudObject.prototype.Cd;olympe.dc.CloudObject.prototype.isPersisted=olympe.dc.CloudObject.prototype.Jl;
1743
1743
  olympe.dc.CloudObject.prototype.query=olympe.dc.CloudObject.prototype.query;olympe.dc.CloudObject.prototype.getModel=olympe.dc.CloudObject.prototype.Se;olympe.dc.CloudObject.prototype.name=olympe.dc.CloudObject.prototype.name;olympe.dc.CloudObject.prototype.getTag=olympe.dc.CloudObject.prototype.ka;olympe.dc.CloudObject.getInstancesOf=olympe.dc.CloudObject.yO;olympe.dc.CloudObject.getInstance=olympe.dc.CloudObject.mh;olympe.dc.CloudObject.getRelations=olympe.dc.CloudObject.fi;
1744
1744
  olympe.dc.CloudObject.getProperties=olympe.dc.CloudObject.Xd;olympe.dc.CloudObject.instancesOf=olympe.dc.CloudObject.fB;olympe.dc.CloudObject.asInstance=olympe.dc.CloudObject.lN;olympe.dc.CloudObject.createWith=olympe.dc.CloudObject.AW;olympe.dc.CloudObject.markObsolete=olympe.dc.CloudObject.Fx;olympe.dc.CloudObject.exists=olympe.dc.CloudObject.$w;olympe.dc.CloudObject.get=olympe.dc.CloudObject.get;olympe.dc.CloudObject.U=olympe.dc.Ja.C('ff021000000000000001',olympe.dc.CloudObject);
@@ -1760,12 +1760,12 @@ olympe.dm.BrickMetadata.tk={o0:'experimental',w2:'stable',$_:'deprecated'};olymp
1760
1760
  function Ql(a,b){const c=a.query().kc(olympe.dm.ri.C.ie()).kc(olympe.dm.ri.D);a=a.query().kc(olympe.dm.hd.O.ie()).iq(olympe.dm.hd.C,!0).kc(olympe.sc.tg.C.ie());const d=e=>e.ej().iq(olympe.dc.CloudObject.extendRel,!0).kc(olympe.dc.CloudObject.Hx,!0).kc(olympe.dm.Relation.destinationModelRel).back(2).kc(olympe.dc.CloudObject.propertyRel,!0).kc(olympe.dm.Property.typeRel).observe(b);return rxjs.combineLatest([d(c),d(a)]).pipe(rxjs.operators.map(([e,...f])=>e.concat(...f)))}
1761
1761
  function pm(a,b){return a.observe(b,olympe.dm.DataSource.sN).pipe(rxjs.operators.map(()=>a.Io(olympe.dc.sources.Config.jm)),rxjs.operators.distinctUntilChanged())}
1762
1762
  olympe.dm.DataSource=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.Ye=c;this.tN=new Map([[olympe.dc.sources.Config.yD,olympe.dm.DataSource.mZ],[olympe.dc.sources.Config.jm,olympe.dm.DataSource.sN],[olympe.dc.sources.Config.GD,olympe.dm.DataSource.yZ]])}EO(){return this.name().toLowerCase().replace(/\W/g,'_')}ja(){return this.tag===olympe.dm.DataSource.SERVER?olympe.dc.vc.SERVER:this.tag}Io(a){const b=a.startsWith('data.')?a.split('.')[1]:a,c=`${'data.'}${b}`;let d,e;return null!=
1763
- (e=null!=(d=olympe.ra.getParameter(`${'data.'}${this.EO()}.${b}`))?d:Al(this.ka(),a))?e:this.tN.has(c)?this.get(this.tN.get(c)):null}nh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Vf.qR,c=olympe.dm.DataSource.Vf.xe,d=new olympe.dc.Request(olympe.dc.Request.C.Vf,a.ja());return Kh(a.Ye,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.tb('dc').warn(`Source ${a.name()} (${a.ja()}) has encountered issues: ${e}`);return g}).catch(e=>e instanceof
1763
+ (e=null!=(d=olympe.ra.getParameter(`${'data.'}${this.EO()}.${b}`))?d:Al(this.ka(),a))?e:this.tN.has(c)?this.get(this.tN.get(c)):null}nh(){const a=this;return q(function*(){const b=olympe.dm.DataSource.Wf.qR,c=olympe.dm.DataSource.Wf.xe,d=new olympe.dc.Request(olympe.dc.Request.C.Wf,a.ja());return Kh(a.Ye,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.tb('dc').warn(`Source ${a.name()} (${a.ja()}) has encountered issues: ${e}`);return g}).catch(e=>e instanceof
1764
1764
  olympe.error.hA||e instanceof olympe.error.qD?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.Ci.ex(a)})}applyTransaction(){return q(function*(){})}uploadFileContent(){return q(function*(){throw Error('Should not try to upload files with SELF source');
1765
1765
  })}downloadFileContent(){return q(function*(){throw Error('Should not try to download files with SELF source');})}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;
1766
1766
  olympe.dm.DataSource.prototype.applyTransaction=olympe.dm.DataSource.prototype.applyTransaction;olympe.dm.DataSource.prototype.executeQuery=olympe.dm.DataSource.prototype.executeQuery;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.Io;
1767
1767
  olympe.dm.DataSource.prototype.getId=olympe.dm.DataSource.prototype.ja;olympe.dm.DataSource.prototype.getLowerName=olympe.dm.DataSource.prototype.EO;olympe.dm.DataSource.U=olympe.dc.Ja.C('ff021000000000000060',olympe.dm.DataSource,olympe.dc.ba.Ar);olympe.dm.DataSource.ju=olympe.dm.DataSource.U.ea('ff023000000000000060');z('olympe.dm.DataSource.activatedProp',olympe.dm.DataSource.ju);olympe.dm.DataSource.R3=olympe.dm.DataSource.U.ea('ff023000000000000061');olympe.dm.DataSource.mZ=olympe.dm.DataSource.U.ea('ff023000000000000062');
1768
- olympe.dm.DataSource.sN=olympe.dm.DataSource.U.ea('ff023000000000000063');olympe.dm.DataSource.yN=olympe.dm.DataSource.U.ea('ff023000000000000064');olympe.dm.DataSource.yZ=olympe.dm.DataSource.U.ea('ff023000000000000065');olympe.dm.DataSource.Ix=olympe.dm.DataSource.U.qb('ff022000000000000060');olympe.dm.DataSource.SERVER=ci('00000000000000000060','Server source');olympe.dm.DataSource.jm={d1:'hybrid',oG:'bus',$H:'http'};olympe.dm.DataSource.Vf={Ot:'ready',xe:'error',qR:'down',Bm:'offline'};olympe.dm.ri=class extends olympe.dc.CloudObject{};olympe.dm.ri.U=olympe.dc.Ja.C('ff021000000000000070',olympe.dm.ri);olympe.dm.ri.C=olympe.dm.ri.U.qb('ff023000000000000071');olympe.dm.ri.D=olympe.dm.ri.U.qb('ff023000000000000072');olympe.dm.ri.O=olympe.dm.ri.U.qb('ff023000000000000073');olympe.dm.$e=class extends olympe.dm.BrickMetadata{W(){return new olympe.dc.Kb(this.ka(),[new olympe.dc.Qa.Ij(olympe.dm.$e.D.ka(),olympe.dc.Gb.DESTINATION,olympe.dc.Qa.HD.lI,olympe.dc.Qa.HD.dS),olympe.dm.$e.R])}Ii(){return olympe.sc.mf.dj.GR}C(){return this.uc(olympe.dm.$e.D,olympe.dm.$e)}D(){return this.uc(olympe.dm.$e.R)}};olympe.dm.$e.U=olympe.dc.Ja.C('01612df1db9749227626',olympe.dm.$e);olympe.dm.$e.D=olympe.dm.$e.U.qb('016a697ef00ce7554691');olympe.dm.$e.Fa=Y(olympe.dm.$e.U,olympe.dm.$e.D);
1768
+ olympe.dm.DataSource.sN=olympe.dm.DataSource.U.ea('ff023000000000000063');olympe.dm.DataSource.yN=olympe.dm.DataSource.U.ea('ff023000000000000064');olympe.dm.DataSource.yZ=olympe.dm.DataSource.U.ea('ff023000000000000065');olympe.dm.DataSource.Ix=olympe.dm.DataSource.U.qb('ff022000000000000060');olympe.dm.DataSource.SERVER=ci('00000000000000000060','Server source');olympe.dm.DataSource.jm={d1:'hybrid',oG:'bus',$H:'http'};olympe.dm.DataSource.Wf={Ot:'ready',xe:'error',qR:'down',Bm:'offline'};olympe.dm.ri=class extends olympe.dc.CloudObject{};olympe.dm.ri.U=olympe.dc.Ja.C('ff021000000000000070',olympe.dm.ri);olympe.dm.ri.C=olympe.dm.ri.U.qb('ff023000000000000071');olympe.dm.ri.D=olympe.dm.ri.U.qb('ff023000000000000072');olympe.dm.ri.O=olympe.dm.ri.U.qb('ff023000000000000073');olympe.dm.$e=class extends olympe.dm.BrickMetadata{W(){return new olympe.dc.Kb(this.ka(),[new olympe.dc.Qa.Ij(olympe.dm.$e.D.ka(),olympe.dc.Gb.DESTINATION,olympe.dc.Qa.HD.lI,olympe.dc.Qa.HD.dS),olympe.dm.$e.R])}Ii(){return olympe.sc.mf.dj.GR}C(){return this.uc(olympe.dm.$e.D,olympe.dm.$e)}D(){return this.uc(olympe.dm.$e.R)}};olympe.dm.$e.U=olympe.dc.Ja.C('01612df1db9749227626',olympe.dm.$e);olympe.dm.$e.D=olympe.dm.$e.U.qb('016a697ef00ce7554691');olympe.dm.$e.Fa=Y(olympe.dm.$e.U,olympe.dm.$e.D);
1769
1769
  olympe.dm.$e.R=olympe.dm.$e.U.qb('016a697ef00ce7554692');Y(olympe.dc.CloudObject.U,olympe.dm.$e.R);olympe.dm.$e.prototype.W.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.$e.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.$e.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.kh=class extends olympe.dm.$e{C(){return this.ka()===olympe.dm.kh.Da?this.uc(olympe.dm.kh.$,olympe.dm.$e):this.uc(olympe.dm.kh.ca,olympe.dm.$e)}};olympe.dm.kh.U=olympe.dc.Ja.C('ff021000000000000020',olympe.dm.kh);olympe.dm.kh.ca=olympe.dm.kh.U.qb('017e9c34cf48bd6965c1');olympe.dm.kh.$=olympe.dm.kh.U.qb('017e9c2e013e06bfffd9');olympe.dm.kh.xg=olympe.dm.kh.U.qb('01811f12ad77673770d4');olympe.dm.kh.Da=ci('10000000000000000000','ROOT_OF_ROOTS');olympe.dm.kh.yb=ci('10000000000000000001','OLYMPE_FOLDER');
1770
1770
  olympe.dm.kh.Eb=ci('10000000000000000002','INTERNAL_FOLDER');olympe.dm.kh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.dm.Module=class extends olympe.dc.CloudObject{vX(){return this.Yd(olympe.dm.Module.T)}OX(){return this.Ag(olympe.dm.Module.W)}gT(){return this.Yd(olympe.dm.Module.D)}SX(){return this.Yd(olympe.dm.Module.$)}fX(){return this.Yd(olympe.dm.Module.O)}PX(){return this.uc(olympe.dm.Module.R,olympe.dm.Module)}bY(){return this.uc(olympe.dm.Module.C,olympe.dm.Zi)}};olympe.dm.Module.U=olympe.dc.Ja.C('ff021000000000000040',olympe.dm.Module);olympe.dm.Module.T=olympe.dm.Module.U.ea('ff023000000000000042');
1771
1771
  olympe.dm.Module.W=olympe.dm.Module.U.ea('ff023000000000000043');olympe.dm.Module.D=olympe.dm.Module.U.ea('ff023000000000000044');olympe.dm.Module.$=olympe.dm.Module.U.ea('ff023000000000000045');olympe.dm.Module.O=olympe.dm.Module.U.ea('ff023000000000000046');olympe.dm.Module.creationDateProp=olympe.dm.Module.U.ea('ff023000000000000049');olympe.dm.Module.C=olympe.dm.Module.U.qb('ff022000000000000013');olympe.dm.Module.R=olympe.dm.Module.U.qb('ff022000000000000014');
@@ -1785,8 +1785,8 @@ z('olympe.dm.Property.definingModelRel',olympe.dm.Property.definingModelRel);oly
1785
1785
  olympe.dm.Relation.O=olympe.dm.Relation.U.ea('ff023000000000000030');olympe.dm.Relation.D=olympe.dm.Relation.U.ea('ff023000000000000034');olympe.dm.Relation.fa=olympe.dm.Relation.U.ea(olympe.dc.Ee.eH);olympe.dm.Relation.$=olympe.dm.Relation.U.ea(olympe.dc.Ee.Rg);olympe.dm.Relation.qa=olympe.dm.Relation.U.ea(olympe.dc.Ee.bj);olympe.dm.Relation.Da=olympe.dm.Relation.U.ea(olympe.dc.Ee.WU);olympe.dm.Relation.ca=olympe.dm.Relation.U.ea(olympe.dc.Ee.rR);olympe.dm.Relation.Ha=olympe.dm.Relation.U.ea(olympe.dc.Ee.yV);
1786
1786
  olympe.dm.Relation.W=olympe.dm.Relation.U.ea('ff023000000000000031');olympe.dm.Relation.originModelRel=Y(olympe.dm.Relation.U,olympe.dc.CloudObject.Hx);z('olympe.dm.Relation.originModelRel',olympe.dm.Relation.originModelRel);olympe.dm.Relation.destinationModelRel=Y(olympe.dm.Relation.U,olympe.dc.CloudObject.wN);z('olympe.dm.Relation.destinationModelRel',olympe.dm.Relation.destinationModelRel);olympe.dm.Relation.C={iI:0,RQ:5,yU:1,o2:4,uM:2,tL:8,n0:10,l2:6,m2:9,zj:6,n2:9};
1787
1787
  olympe.dm.Relation.R={J1:3,ZT:4,s1:5,q1:6};olympe.dm.Relation.T=olympe.dm.WB.cU+olympe.dm.WB.oR;k=olympe.dm.Relation.prototype;k.JX.K=olympe.j.J.R;k.ZW.K=olympe.j.J.D;k.UX.K=olympe.j.J.D;k.dO.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.IO.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);function op(a){a=olympe.dc.Va(a);if(olympe.dc.$a().fn(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.jl=class extends olympe.dc.CloudObject{getValue(){}};
1788
- olympe.dm.jl.U=olympe.dc.Ja.C('ff021000000000000019',olympe.dm.jl);olympe.dm.String=class extends olympe.dm.jl{getValue(){return this.Yd(olympe.dm.String.valueProp)}Yf(){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.ea('ff023000000000000026');z('olympe.dm.String.valueProp',olympe.dm.String.valueProp);olympe.dm.String.prototype.getValue.K=olympe.j.J.R;
1789
- olympe.dm.String.prototype.toString.K=olympe.j.J.O;olympe.dm.Boolean=class extends olympe.dm.jl{getValue(){return this.cn(olympe.dm.Boolean.valueProp)}Yf(){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.ea('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.jl{getValue(){return this.QO()}Yf(){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.ea('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.jl{getValue(){return this.xx(olympe.dm.DateTime.valueProp)}Yf(){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.ea('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.Wa([super.bb(),super.getValue()],(a,b)=>''!==a.valueOf()?a:b,olympe.j.kb)}kf(){return this.Ag(olympe.dm.Enum.rankProp)}};olympe.dm.Enum.U=olympe.dc.Ja.C('016cdd861b32d56c81f7',olympe.dm.Enum);olympe.dm.Enum.rankProp=olympe.dm.Enum.U.ea('017a7690c915975ea995');olympe.dm.Enum.prototype.kf.K=olympe.j.J.D;olympe.dm.Hp=class extends olympe.dm.BrickMetadata{jY(){return this.kc(olympe.dc.CloudObject.instancesRel).zv(olympe.dm.Enum.rankProp,olympe.dc.query.Nz.ASC).tf()}static create(a,b){b=a.create(olympe.dm.Hp,(new Map).set(olympe.dc.CloudObject.nameProp,b));a.Pb(olympe.dc.CloudObject.extendRel,b,olympe.dm.Enum);return b}};olympe.dm.Hp.create=olympe.dm.Hp.create;olympe.dm.Hp.prototype.getValues=olympe.dm.Hp.prototype.jY;olympe.dm.Hp.U=olympe.dc.Ja.C('017a768f966fc08ebb98',olympe.dm.Hp);olympe.dm.Number=class extends olympe.dm.jl{getValue(){return this.Ag(olympe.dm.Number.valueProp)}Yf(){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.ea('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',ww:'sc.RootContext',ml:'sc.Serializer'};olympe.sc.Config={jk:'sc.app',Dp:'sc.debug',VF:'sc.autostartProfiler',$G:'sc.debugger',xC:'sc.disableTheme',PRODUCTION:'sc.production',$T:'sc.onstartTimeout',oL:'sc.remoteActionTimeout',nL:'sc.remoteActionMaxConcurrent'};
1788
+ olympe.dm.jl.U=olympe.dc.Ja.C('ff021000000000000019',olympe.dm.jl);olympe.dm.String=class extends olympe.dm.jl{getValue(){return this.Yd(olympe.dm.String.valueProp)}Zf(){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.ea('ff023000000000000026');z('olympe.dm.String.valueProp',olympe.dm.String.valueProp);olympe.dm.String.prototype.getValue.K=olympe.j.J.R;
1789
+ olympe.dm.String.prototype.toString.K=olympe.j.J.O;olympe.dm.Boolean=class extends olympe.dm.jl{getValue(){return this.cn(olympe.dm.Boolean.valueProp)}Zf(){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.ea('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.jl{getValue(){return this.QO()}Zf(){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.ea('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.jl{getValue(){return this.xx(olympe.dm.DateTime.valueProp)}Zf(){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.ea('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.Wa([super.bb(),super.getValue()],(a,b)=>''!==a.valueOf()?a:b,olympe.j.kb)}kf(){return this.Ag(olympe.dm.Enum.rankProp)}};olympe.dm.Enum.U=olympe.dc.Ja.C('016cdd861b32d56c81f7',olympe.dm.Enum);olympe.dm.Enum.rankProp=olympe.dm.Enum.U.ea('017a7690c915975ea995');olympe.dm.Enum.prototype.kf.K=olympe.j.J.D;olympe.dm.Hp=class extends olympe.dm.BrickMetadata{jY(){return this.kc(olympe.dc.CloudObject.instancesRel).zv(olympe.dm.Enum.rankProp,olympe.dc.query.Nz.ASC).tf()}static create(a,b){b=a.create(olympe.dm.Hp,(new Map).set(olympe.dc.CloudObject.nameProp,b));a.Pb(olympe.dc.CloudObject.extendRel,b,olympe.dm.Enum);return b}};olympe.dm.Hp.create=olympe.dm.Hp.create;olympe.dm.Hp.prototype.getValues=olympe.dm.Hp.prototype.jY;olympe.dm.Hp.U=olympe.dc.Ja.C('017a768f966fc08ebb98',olympe.dm.Hp);olympe.dm.Number=class extends olympe.dm.jl{getValue(){return this.Ag(olympe.dm.Number.valueProp)}Zf(){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.ea('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',ww:'sc.RootContext',ml:'sc.Serializer'};olympe.sc.Config={jk:'sc.app',Dp:'sc.debug',VF:'sc.autostartProfiler',$G:'sc.debugger',xC:'sc.disableTheme',PRODUCTION:'sc.production',$T:'sc.onstartTimeout',oL:'sc.remoteActionTimeout',nL:'sc.remoteActionMaxConcurrent'};
1790
1790
  olympe.ra.bf(a=>{E(a,olympe.sc.Config.jk,'');E(a,olympe.sc.Config.Dp,!1);E(a,olympe.sc.Config.xC,!0);E(a,olympe.sc.Config.PRODUCTION,!1);E(a,olympe.sc.Config.$T,2E4);E(a,olympe.sc.Config.oL,3E4);E(a,olympe.sc.Config.VF,!1);E(a,olympe.sc.Config.nL,0);C(a,olympe.sc.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('sc'));B(a,olympe.sc.ba.ml,olympe.sc.Mf,olympe.dc.db.ba.Nb);Ra(a,olympe.dc.sources.ba.ml,olympe.sc.ba.ml);C(a,olympe.sc.ba.ww,[new olympe.ra.xb(olympe.sc.Config.PRODUCTION)],b=>{const c=new olympe.sc.Cp('root',
1791
1791
  'root',null);olympe.sc.eF=c;c.set(olympe.sc.Db.C.PRODUCTION,b);return new olympe.sc.Db(c)})},'olympe.sc');olympe.ra.run([olympe.sc.ba.ww,new olympe.ra.xb(olympe.X.Config.hC)],(a,b)=>{olympe.Sj().ctx=a;olympe.Sj().oVersion=()=>b});olympe.sc.gB=()=>null!==olympe.dc.$a().Zd(void 0,olympe.sc.Runnable.W.ie());olympe.sc.P3=(a,b,c,d)=>{c=Z(Z(a.create(olympe.sc.Gh),olympe.sc.Gh.C,c||null),olympe.sc.Gh.O,d||null);a.Pb(olympe.sc.Gh.D,c,b);a.Pb(olympe.dc.CloudObject.containsRel,b,c);return c.ka()};olympe.sc.Vw=(a,b)=>{a=olympe.dc.zd.$W(b)(a);return a instanceof olympe.sc.zi?a.C():a};
1792
1792
  olympe.sc.g4=function(a){const b=olympe.dc.CloudObject.containsRel.ie();var c=olympe.dc.Va(a);if(void 0===c)return[];a=olympe.dc.$a();const d=[];let e=[];const f=new Set;for(;!a.pe(c,olympe.dm.$e);){f.add(c);const g=a.Zd(c,b);if(null===g)return olympe.fb.tb('sc').warn(`Object ${c} has no container`),[];a.pe(c,olympe.sc.logic.kd)||g===a.Zd(c,olympe.sc.Runnable.W.ie())||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.sq(e[0],
@@ -1806,7 +1806,7 @@ olympe.sc.Db.prototype.set=olympe.sc.Db.prototype.set;olympe.sc.Db.prototype.get
1806
1806
  function qp(a,b,c,d,e=!0){if(a.C.oc()||a.C.bg())return()=>{};const f=xp(a,b),g=d?olympe.dc.Va(d):'*';b=Ep(a,'@'+g+'.'+f,c);a=d?(a=Ap(a,g))?a.Pa(f,!1):void 0:a.Pa(f);void 0!==a&&c(a);if(e)olympe.j.zb().onDestroy(b);return b}function Ap(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=Fp(a.children,b);if(c)return c;a=a.getParent()}return null}
1807
1807
  function Gp(a,b,c=0){null===a.ad&&(a.ad=new Map);a.ad.has(b.ja())||(a.ad.set(b.ja(),{rB:b,depth:c}),Hp(a,d=>{(-1===b.O||c<b.O)&&Gp(d,b,c+1)}),a.onDestroy(()=>{Ip(a,b.ja())}));return b.ja()}function Ip(a,b){if(null===a.ad||!a.ad.has(b))return!1;const {rB:c,depth:d}=a.ad.get(b);Hp(a,f=>{Ip(f,b)});0===d&&c.D();const e=a.ad.delete(b);0===a.ad.size&&(a.ad=null);return e}function Bp(a,b){let c;return(null==(c=a.W)?void 0:c.get('IO#'+b))||null}
1808
1808
  function Jp(a){a.C.We(()=>{Hp(a,c=>c.destroy())});a.C.onDestroy(()=>{void 0!==a.Pa(olympe.sc.Db.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)||Kp(b,a)}
1809
- function Fp(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=Fp(c.children,b)))return a;return null}function Lp(a,b,...c){if(null!==a.ad)for(const {rB:d,depth:e}of a.ad.values())d.process(a,b,e,...c)}function Mp(a,b){a.$=olympe.dc.Va(b);a.ca=b.Zf().gB();b.Da().forEach(c=>{a.id===c||a.R.has(c)||(a.R.add(c),sp(a,c,a))});a.W=b.$();Lp(a,olympe.sc.ad.lg.C.INIT)}
1809
+ function Fp(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=Fp(c.children,b)))return a;return null}function Lp(a,b,...c){if(null!==a.ad)for(const {rB:d,depth:e}of a.ad.values())d.process(a,b,e,...c)}function Mp(a,b){a.$=olympe.dc.Va(b);a.ca=b.$f().gB();b.Da().forEach(c=>{a.id===c||a.R.has(c)||(a.R.add(c),sp(a,c,a))});a.W=b.$();Lp(a,olympe.sc.ad.lg.C.INIT)}
1810
1810
  function Np(a){a.fa=!0;let b;null==(b=a.children)||b.forEach(c=>{Np(c)})}function Op(a){a.fa=!1;let b;null==(b=a.children)||b.forEach(c=>{Op(c)})}function Dp(a,b){return['*',a.id,...a.R].map(c=>`${'@'}${c}.${b}`)}function Pp(a,b,c,d){c.forEach(f=>{let g,h;null==(g=a.D)||null==(h=g.get(f))||h.forEach(l=>{l(d)})});let e;null==(e=a.children)||e.forEach(f=>{!f.fa&&f.data.has(b)||Pp(f,b,c,d)})}
1811
1811
  function Ep(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));Cp++;const e=Cp;d.set(e,c);return()=>{const f=a.D.get(b);f&&(f.delete(e),0===f.size&&a.D.delete(b))}}function sp(a,b,c){a.O.add(b);let d,e;null==(d=a.D)||null==(e=d.get('&'+b))||e.forEach(f=>{f(c)});Hp(a,f=>{f.O.has(b)||sp(f,b,c)});a.O.delete(b)}function Hp(a,b){let c;null==(c=a.children)||c.forEach(b)}function Qp(a,b){a.data.forEach((c,d)=>b(c,d.slice(1)))}
1812
1812
  function Rp(a){var b=olympe.sc.ad.lg.D.uo;const c=[];if(null!==a.ad)for(const {rB:d}of a.ad.values())d.getType()===b&&(c.push(d.ja()),d.D(),Ip(a,d.ja()))}function Kp(a,b){null===a.children&&(a.children=new Map);a.children.set(b.id,b)}
@@ -1826,20 +1826,20 @@ olympe.sc.logic.Oe),Tp(this,a,b?e:d?f:c,new Map([['propId',r],['value',t],['type
1826
1826
  const Up={SC:'input',tD:'output',nU:'prop',INIT:'init',Ry:'clear',Sy:'cleared',Zy:'destroy',Aj:'destroyed',dU:'other'};olympe.sc.ad.CU=class extends olympe.sc.ad.lg{constructor(a){super(1);this.R=a;this.C=new Map;this.db=olympe.dc.$a()}getType(){return olympe.sc.ad.lg.D.uo}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.lg.C.Gr&&void 0!==d[0]&&null!==d[0]){const e=Sp(c,xp(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.Se()instanceof olympe.sc.tg){const h=mj(this.db,f,()=>{olympe.sc.Bj.D(this.R,
1827
1827
  e,f)});this.C.set(e,()=>{nj(this.db,f,h)})}olympe.sc.Bj.D(this.R,e,f)}}};olympe.sc.Metadata=class extends olympe.dc.CloudObject{oa(){return this.Ag(this.aB())}sa(){return this.Ag(this.bB())}ge(){return new olympe.j.ga(this.Ag(this.aB()),this.Ag(this.bB()))}aB(){}bB(){}};olympe.sc.Metadata.U=olympe.dc.Ja.C('0161ae936c62f9fcd131',olympe.sc.Metadata);k=olympe.sc.Metadata.prototype;k.oa.K=olympe.j.J.D;k.sa.K=olympe.j.J.D;k.ge.K=olympe.j.J.W;k.aB.K=olympe.j.J.O;k.bB.K=olympe.j.J.O;olympe.sc.Gh=class extends olympe.dc.CloudObject{D(){return this.Yd(olympe.sc.Gh.O)}C(){return this.Yd(olympe.sc.Gh.C)}};olympe.sc.Gh.U=olympe.dc.Ja.C('01703376c4a81c0e9d90',olympe.sc.Gh);olympe.sc.Gh.O=olympe.sc.Gh.U.ea('01703376c4a81c0e9d91');olympe.sc.Gh.C=olympe.sc.Gh.U.ea('01703376c4a81c0e9d92');olympe.sc.Gh.D=olympe.sc.Gh.U.qb('01703376c4a81c0e9d93');Y(olympe.dc.CloudObject.U,olympe.sc.Gh.D);olympe.sc.Gh.prototype.D.K=olympe.j.J.R;olympe.sc.Gh.prototype.C.K=olympe.j.J.R;olympe.sc.mf={};olympe.sc.mf.dj={GR:'folders',FL:'screenflow',WD:'ui-design',OL:'software-intelligence',it:'data-management',c2:'projects'};olympe.sc.ll=class extends olympe.dc.CloudObject{constructor(a,b){super(a,b)}kf(){return this.Ag(olympe.sc.ll.C)}};olympe.sc.ll.U=olympe.dc.Ja.C('019131fb930466a1ad79',olympe.sc.ll);olympe.sc.ll.C=olympe.sc.ll.U.ea('016d1bb681929c2cc3f1');olympe.sc.ll.D=olympe.sc.ll.U.qb('019131fb930466a1ad7a');Y(olympe.dc.CloudObject.U,olympe.sc.ll.D);olympe.sc.ll.prototype.kf.K=olympe.j.J.D;olympe.sc.Zh=class extends olympe.dm.BrickMetadata{Ii(){return olympe.sc.mf.dj.OL}C(){return this.uc(olympe.sc.Zh.C,olympe.sc.logic.Mt)}D(){return this.uc(olympe.sc.Zh.D,olympe.sc.logic.yr)}};olympe.sc.Zh.U=olympe.dc.Ja.C('011100000000000adef0',olympe.sc.Zh);olympe.sc.Zh.C=olympe.sc.Zh.U.qb('016ac4f59a2917fdef01');olympe.sc.Zh.D=olympe.sc.Zh.U.qb('016ac4f59a2917fdef02');olympe.sc.Zh.U.C=(a,b)=>fo(a,b||'New function signature',olympe.sc.Zh,olympe.sc.logic.ti).ka();
1828
1828
  olympe.sc.Zh.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.Zh.prototype.D.K=new olympe.j.J(()=>olympe.dc.Kb,[]);function Vp(a,b){a.$().forEach(c=>c.call(a,b,(d,e)=>{null===e?b.remove(d):b.set(d,e)}))}function Wp(a,b){b=b.filter(c=>'string'===typeof c&&a.db.pe(c,olympe.sc.logic.ff));b.sort((c,d)=>{let e;c=null!=(e=a.db.tc(c,olympe.sc.logic.ff.C,!0))?e:0;let f;d=null!=(f=a.db.tc(d,olympe.sc.logic.ff.C,!0))?f:0;return c-d});return b}function Xp(a){return Wp(a,a.db.uc(a.tag,olympe.sc.hc.R))}function Yp(a){return Wp(a,a.db.uc(a.tag,olympe.sc.hc.D))}
1829
- olympe.sc.hc=class extends olympe.dm.BrickMetadata{Ea(a,b,c,d,e=!0){e||olympe.fb.tb('sc').error('parameter own= false ignored, investigate');return olympe.j.rj($b(this.Qo(a,olympe.dc.zd.Vw,c)),d)}$(){return[]}Da(a,b){const c=this.db,d=olympe.la.wk();a=olympe.j.zb();mj(c,this.tag,a.ue((e,f)=>{b(e,olympe.dc.zd.Yf(f))}),d);a.onDestroy(()=>{nj(c,this.tag,d)})}T(){return[]}O(){return rxjs.of([])}UO(){return this.uc(olympe.sc.hc.O,olympe.sc.Runnable)}gX(){return this.uc(olympe.sc.hc.T,olympe.sc.Runnable)}xq(){return this.db.tc(this,
1829
+ olympe.sc.hc=class extends olympe.dm.BrickMetadata{Ea(a,b,c,d,e=!0){e||olympe.fb.tb('sc').error('parameter own= false ignored, investigate');return olympe.j.rj($b(this.Qo(a,olympe.dc.zd.Vw,c)),d)}$(){return[]}Da(a,b){const c=this.db,d=olympe.la.wk();a=olympe.j.zb();mj(c,this.tag,a.ue((e,f)=>{b(e,olympe.dc.zd.Zf(f))}),d);a.onDestroy(()=>{nj(c,this.tag,d)})}T(){return[]}O(){return rxjs.of([])}UO(){return this.uc(olympe.sc.hc.O,olympe.sc.Runnable)}gX(){return this.uc(olympe.sc.hc.T,olympe.sc.Runnable)}xq(){return this.db.tc(this,
1830
1830
  olympe.sc.hc.ca)}gB(){return null!==this.db.Zd(this.tag,olympe.sc.Runnable.W.ie())}getInputs(){return this.uc(olympe.sc.hc.R,olympe.sc.logic.le)}getOutputs(){return this.uc(olympe.sc.hc.D,olympe.sc.logic.Oe)}W(){return[olympe.sc.hc.ob]}};olympe.sc.hc.U=olympe.dc.Ja.C('0112000000000000def0',olympe.sc.hc);olympe.sc.hc.ca=olympe.sc.hc.U.ea('01692aa71f3108454479');olympe.sc.hc.Da=olympe.sc.hc.U.ea('0166446c1f128ebc903a');olympe.sc.hc.ob=olympe.sc.hc.U.ea('0166446c1f128ebc904e');olympe.sc.hc.O=olympe.sc.hc.U.qb('01692a4af82e8984742c');
1831
1831
  olympe.sc.hc.T=olympe.sc.hc.U.qb('01692a4af82e8984742d');olympe.sc.hc.fa=olympe.sc.hc.U.qb('01692a4af82e8984742e');olympe.sc.hc.R=olympe.sc.hc.U.qb('01621fb84e320000f00a');olympe.sc.hc.D=olympe.sc.hc.U.qb('01621fb84e320000f00b');olympe.sc.hc.Sc=olympe.sc.hc.U.qb('0171838bcfed0000e00e');olympe.sc.hc.ed=olympe.sc.hc.U.qb('0171838bcfed0000a00a');olympe.sc.hc.Od=olympe.sc.hc.U.qb('0195482b9cead0df5157');k=olympe.sc.hc.prototype;k.Ea.K=olympe.j.J.O;k.UO.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
1832
1832
  k.gX.K=new olympe.j.J(()=>olympe.dc.Kb,[]);k.xq.K=olympe.j.J.O;k.gB.K=olympe.j.J.O;k.getInputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);k.getOutputs.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.Runnable=class a extends olympe.dm.BrickMetadata{constructor(b,c,d){super(b,c);this.V=d}static Ah(b){const c=new olympe.dc.Vc;b=c.create(b);c.persist(b,!1);c.Fd((e,f)=>{e||olympe.fb.tb('sc').error(`Error occurred for transaction executed by createLocalRunnable: ${f}`)});const d=olympe.dc.CloudObject.get(b);olympe.j.zb().onDestroy(()=>{const e=new olympe.dc.Vc;e.delete(d);e.Fd()});return d}run(b){b.ve().run(()=>{this.W(b);this.init(b);b.ss(this.clear.bind(this,b));b.onDestroy(this.destroy.bind(this,
1833
- b));this.Sc(b);this.qe(b)})}Zf(){return this.Se()}init(b){this.onInit(b)}update(b,c,d){const e=this.Zf();if(e.xq())this.onUpdate(b,c,d);else this.V.trace(`Softcoded runnable ${this.db.name(this)} with tag ${this.tag} running in context ${b.ja()}`),this.ob(e,olympe.sc.hc.O,b),this.eb()&&this.ob(e,olympe.sc.hc.fa,b)}ob(b,c,d){let e=[];const f=pj(this.db,b,c,(g,h)=>{if(g){const l=rp(d,h),m=olympe.dc.CloudObject.get(h);m instanceof olympe.sc.logic.Fh&&null!==e?e.push(()=>m.run(l)):m.run(l)}else{let l;
1834
- null==(l=tp(d,h))||l.destroy()}});e.forEach(g=>g());e=null;d.ve().onDestroy(this.db.D.bind(this.db,b,c,f))}qe(b){b.wp(olympe.sc.hc.Da)}clear(){}destroy(b){this.onDestroy(b)}setupExecution(b){return this.Zf().O(b)}Fa(b){return this.Zf().T(b)}onInit(){}onUpdate(){const b=this.Ce(),c=this.db.name(b),d=this.db.name(this.db.model(b));this.V.error(`No code was found for ${c} (${d}: ${b})\n\n`+'This is probably because the code has not yet been deployed to the environment, or because the package.json does not import the required dependencies.')}onDestroy(){}getInputs(){return Xp(this.Zf())}getOutputs(){return Yp(this.Zf())}Eb(){let b;
1835
- return null!=(b=this.Zf().W().map(olympe.dc.Va)[0])?b:null}Da(){return[]}$(){return null}eb(){return!1}Sc(b){let c,d,e;this.V.C()&&(e=this.db.name(this.Ce()),c=`Brick ${e} successfully run`,d=`Brick ${e} successfully cleared`);const f=this.Fa(b),g=this.setupExecution(b).pipe(rxjs.operators.map(h=>{if(!b.oc()&&(b.clear(),null!==h)){const l=Array.isArray(h)?h:[h],m=new olympe.sc.EV(b.state);m.ve().run(()=>{const n=this;return q(function*(){try{if(n.V.C()){const p=`${m.ja()} ${e}`;n.Mb(l,m,e);console.time(p);
1833
+ b));this.Sc(b);this.qe(b)})}$f(){return this.Se()}init(b){this.onInit(b)}update(b,c,d){const e=this.$f();if(e.xq())this.onUpdate(b,c,d);else this.V.trace(`Softcoded runnable ${this.db.name(this)} with tag ${this.tag} running in context ${b.ja()}`),this.ob(e,olympe.sc.hc.O,b),this.eb()&&this.ob(e,olympe.sc.hc.fa,b)}ob(b,c,d){let e=[];const f=pj(this.db,b,c,(g,h)=>{if(g){const l=rp(d,h),m=olympe.dc.CloudObject.get(h);m instanceof olympe.sc.logic.Fh&&null!==e?e.push(()=>m.run(l)):m.run(l)}else{let l;
1834
+ null==(l=tp(d,h))||l.destroy()}});e.forEach(g=>g());e=null;d.ve().onDestroy(this.db.D.bind(this.db,b,c,f))}qe(b){b.wp(olympe.sc.hc.Da)}clear(){}destroy(b){this.onDestroy(b)}setupExecution(b){return this.$f().O(b)}Fa(b){return this.$f().T(b)}onInit(){}onUpdate(){const b=this.Ce(),c=this.db.name(b),d=this.db.name(this.db.model(b));this.V.error(`No code was found for ${c} (${d}: ${b})\n\n`+'This is probably because the code has not yet been deployed to the environment, or because the package.json does not import the required dependencies.')}onDestroy(){}getInputs(){return Xp(this.$f())}getOutputs(){return Yp(this.$f())}Eb(){let b;
1835
+ return null!=(b=this.$f().W().map(olympe.dc.Va)[0])?b:null}Da(){return[]}$(){return null}eb(){return!1}Sc(b){let c,d,e;this.V.C()&&(e=this.db.name(this.Ce()),c=`Brick ${e} successfully run`,d=`Brick ${e} successfully cleared`);const f=this.Fa(b),g=this.setupExecution(b).pipe(rxjs.operators.map(h=>{if(!b.oc()&&(b.clear(),null!==h)){const l=Array.isArray(h)?h:[h],m=new olympe.sc.EV(b.state);m.ve().run(()=>{const n=this;return q(function*(){try{if(n.V.C()){const p=`${m.ja()} ${e}`;n.Mb(l,m,e);console.time(p);
1836
1836
  yield n.update(m,l,f);console.timeEnd(p)}else yield n.update(m,l,f)}catch(p){m.throw(p)}})});return!0}return!1})).subscribe(rxjs.Subscriber.create(h=>h?this.V.trace(c):this.V.trace(d),h=>b.throw(h),()=>this.V.trace(`Brick ${e} completed`)));b.onDestroy(g.unsubscribe.bind(g))}Mb(b,c,d){const e={},f=olympe.dc.$a(),g=olympe.dc.Va(olympe.sc.logic.Pv),h=this.getInputs().filter(m=>f.Zd(m,olympe.sc.logic.ff.typeRel)!==g).map(m=>olympe.dc.CloudObject.get(m).name());for(let m=0;m<h.length;m++){let n=a.fa(b[m]);
1837
- 'string'!==typeof n&&(n=JSON.stringify(n,void 0,4));e[h[m]]=n}b=wp(c);b.shift();let l;this.V.debug(`Executing ${null!=(l=b.shift())?l:'root'} > ${d}`);0<Object.entries(e).length&&this.V.debug(e)}Ea(b,c,d,e,f=!0){b=c.va(b,d,f);void 0!==e&&olympe.j.rj(b,e);return b}O(b,c,d,e,f){olympe.j.Nl([e],g=>{c.set(b,olympe.j.xP(g)?g.valueOf():g)});return this.Ea(b,c,d,f)}W(b){Mp(b.state,this);Vp(this.Zf(),b);const c=this.T(),d=this.xc(b,c),e=[];c.forEach((f,g)=>{f===this.qa?e[0]=g:f===this.fa&&(e[1]=g)});void 0!==
1837
+ 'string'!==typeof n&&(n=JSON.stringify(n,void 0,4));e[h[m]]=n}b=wp(c);b.shift();let l;this.V.debug(`Executing ${null!=(l=b.shift())?l:'root'} > ${d}`);0<Object.entries(e).length&&this.V.debug(e)}Ea(b,c,d,e,f=!0){b=c.va(b,d,f);void 0!==e&&olympe.j.rj(b,e);return b}O(b,c,d,e,f){olympe.j.Nl([e],g=>{c.set(b,olympe.j.xP(g)?g.valueOf():g)});return this.Ea(b,c,d,f)}W(b){Mp(b.state,this);Vp(this.$f(),b);const c=this.T(),d=this.xc(b,c),e=[];c.forEach((f,g)=>{f===this.qa?e[0]=g:f===this.fa&&(e[1]=g)});void 0!==
1838
1838
  e[0]&&void 0!==e[1]&&(this.ca(b,d[e[0]],d[e[1]]),c[e[0]]=null,c[e[1]]=null);c.forEach((f,g)=>{f&&f.call(this,b,d[g])})}T(){return[this.qa,this.fa]}qa(b,c){this.ca(b,c,null)}fa(b,c){this.ca(b,null,c)}Ha(b,c){const d=this.db,e=olympe.sc.logic.kd.O.ie(),f=olympe.sc.logic.kd.C,g=olympe.sc.logic.kd.D;this.BA(e,h=>{var l=h.ka();if(l=d.Zd(l,f)||d.Zd(l,g))return Zp(h,b,c.bind(null,l))})}Gc(b,c){const d=olympe.sc.jg.O.ie();this.BA(d,e=>e.BA(olympe.sc.jg.C,f=>{const g=f.ka(),h=pp(b,$p(e,g),l=>{c(g,l)});return()=>
1839
- {h();c(g,null)}}))}ca(b,c,d){b=b.ve();const e=mj(this.db,this.tag,b.ue((f,g,h)=>{const l=h?d:c;null!==l&&(l(f,olympe.dc.zd.Yf(g)),h&&c!==l&&(null==c||c(f,null)))}));b.onDestroy(()=>{nj(this.db,this.tag,e)})}xc(b,c){if(1===c.length)return[(e,f)=>{null!==f?b.set(e,f):b.remove(e)}];const d=c.map(()=>new Map);return d.map(e=>(f,g)=>{null!==g?e.set(f,g):e.delete(f);a:{for(const h of d)if(g=h.get(f),void 0!==g){b.set(f,g);break a}b.remove(f)}})}static fa(b){if(b!==Object(b))return b;let c=b;b instanceof
1839
+ {h();c(g,null)}}))}ca(b,c,d){b=b.ve();const e=mj(this.db,this.tag,b.ue((f,g,h)=>{const l=h?d:c;null!==l&&(l(f,olympe.dc.zd.Zf(g)),h&&c!==l&&(null==c||c(f,null)))}));b.onDestroy(()=>{nj(this.db,this.tag,e)})}xc(b,c){if(1===c.length)return[(e,f)=>{null!==f?b.set(e,f):b.remove(e)}];const d=c.map(()=>new Map);return d.map(e=>(f,g)=>{null!==g?e.set(f,g):e.delete(f);a:{for(const h of d)if(g=h.get(f),void 0!==g){b.set(f,g);break a}b.remove(f)}})}static fa(b){if(b!==Object(b))return b;let c=b;b instanceof
1840
1840
  Map?c=Object.fromEntries(b):b instanceof Set?c=Array.from(b):b instanceof olympe.dc.Kb&&(c=[],b.di(d=>{c.push(d)}));if(Array.isArray(c))return c.map(d=>a.fa(d));if(void 0!==b.toJSON)return b;if(b.toString!==Object.prototype.toString)return b.toString();if(b instanceof olympe.dc.CloudObject){const d=olympe.dc.$a();return d.name(d.model(b))}return b.constructor===Object?Object.entries(b).reduce((d,[e,f])=>{d[e]=a.fa(f);return d},{}):String(b)}};
1841
1841
  olympe.sc.Runnable.U=ji(olympe.dc.Ja.C('01130000000000ca1100',olympe.sc.Runnable));olympe.sc.Runnable.$=olympe.sc.Runnable.U.qb('01692a4af82e8984742b');olympe.sc.Runnable.W=olympe.sc.Runnable.U.qb('01756a18d4921c103111');olympe.sc.Runnable.q4=Y(olympe.sc.Runnable.U,olympe.sc.hc.O);olympe.sc.Runnable.t4=Y(olympe.sc.Runnable.U,olympe.sc.hc.T);olympe.sc.Runnable.x4=Y(olympe.sc.Runnable.U,olympe.sc.hc.fa);Y(olympe.sc.hc.U,olympe.sc.Runnable.$);Y(olympe.sc.hc.U,olympe.sc.Runnable.W);
1842
- olympe.sc.Runnable.prototype.Zf.K=new olympe.j.J(()=>olympe.sc.hc,[]);olympe.sc.Runnable.prototype.Ea.K=new olympe.j.J(()=>Object,[]);olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function aq(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.zi)return(a=a.D())?a.valueOf():null;if('function'===typeof a.ka)return a.ka()}return null}olympe.sc.zi=class extends olympe.dc.CloudObject{D(){return this.db.uc(this,olympe.sc.zi.C)[0]}C(){const a=aq(this);return olympe.dc.CloudObject.get(a)}Yf(){return this.C().Yf()}toString(){const a=aq(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.zi.U=olympe.dc.Ja.C('0163c9ae01f2d6e9ca49',olympe.sc.zi);
1842
+ olympe.sc.Runnable.prototype.$f.K=new olympe.j.J(()=>olympe.sc.hc,[]);olympe.sc.Runnable.prototype.Ea.K=new olympe.j.J(()=>Object,[]);olympe.sc.Runnable.prototype.O.K=olympe.j.J.O;function aq(a){if(a){if('string'===typeof a)return a;if(a instanceof olympe.sc.zi)return(a=a.D())?a.valueOf():null;if('function'===typeof a.ka)return a.ka()}return null}olympe.sc.zi=class extends olympe.dc.CloudObject{D(){return this.db.uc(this,olympe.sc.zi.C)[0]}C(){const a=aq(this);return olympe.dc.CloudObject.get(a)}Zf(){return this.C().Zf()}toString(){const a=aq(this);let b;a&&(b=this.db.name(a));return b||super.toString()}};olympe.sc.zi.U=olympe.dc.Ja.C('0163c9ae01f2d6e9ca49',olympe.sc.zi);
1843
1843
  olympe.sc.zi.C=olympe.sc.zi.U.qb('0169b5a8a33144fb0b49');Y(olympe.dc.CloudObject.U,olympe.sc.zi.C);olympe.sc.zi.prototype.D.K=new olympe.j.J(()=>String,[]);olympe.sc.zi.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.fH=class extends olympe.dm.$e{Ii(){return olympe.sc.mf.dj.it}};olympe.sc.fH.U=olympe.dc.Ja.C('0163a68ce44f3d1fa84c',olympe.sc.fH);olympe.sc.tg=class extends olympe.dm.BrickMetadata{};olympe.sc.tg.U=olympe.dc.Ja.C('016324fde11a836f76c2',olympe.sc.tg);olympe.sc.tg.C=olympe.sc.tg.U.qb('016324fde11a836087c2');olympe.sc.tg.U.C=function(a,b){return fo(a,null!=b?b:'New type',olympe.sc.tg).ka()};let bq=null,cq=null,dq=[];
1844
1844
  function eq(a,b){bq=a;const c=olympe.j.zb();return olympe.dc.Yh.from(a).kc(olympe.sc.Fb.Gg.C).kc(olympe.sc.Yn.C.ie()).Fd({Wr:'__code-as-data__'}).then(d=>{let e;null==(e=dq)||e.forEach(f=>f());dq=null;cq=d;if(null!==d){if(b){const f=olympe.dc.$a();return new Promise(g=>{Hk(c,d,h=>{h=f.Ku(h)?h:f.model(h);return null!==h&&f.pe(h,olympe.sc.tg)},{JB:!0}).subscribe(rxjs.Subscriber.create(()=>{g()},()=>{olympe.fb.tb('sc').error('Impossible to load the business container for the application',a,'maybe are you offline?');
1845
1845
  g()}))})}olympe.fb.tb('sc').debug("Found business container but won't load it's content according to configuration.")}else olympe.fb.tb('sc').info(`No business container for application ${a}. You probably miss permissions.`);return Promise.resolve()}).catch(d=>{dq=null;throw d;})}function Hh(){return null===dq?Promise.resolve():new Promise(a=>{dq.push(()=>a())})}olympe.sc.Yn=class extends olympe.dc.CloudObject{};olympe.sc.Yn.U=olympe.dc.Ja.C('017b3aa8fae1e3d044dc',olympe.sc.Yn);olympe.sc.Yn.C=olympe.sc.Yn.U.qb('017b3aa8fd1659291b92');
@@ -1849,27 +1849,27 @@ olympe.sc.File.U=bi(olympe.dm.File,'ff021000000000000031',olympe.sc.File);olympe
1849
1849
  olympe.sc.Jg.U.C=(a,b,c,d)=>{c=olympe.sc.File.D(olympe.sc.Jg,a,b,c,d);a.update(c,olympe.sc.Jg.fontFamilyProp,b.split('.')[0]);return c};olympe.sc.Jg.prototype.Gi.K=olympe.j.J.R;olympe.sc.Jg.prototype.Il.K=olympe.j.J.R;olympe.sc.Jg.prototype.Hi.K=olympe.j.J.D;olympe.sc.du=class extends olympe.sc.File{};olympe.sc.du.U=bi(olympe.sc.File,'0164643c432146a71d5c',olympe.sc.du);olympe.sc.du.U.C=olympe.sc.File.D.bind(null,olympe.sc.du);olympe.sc.$M=class extends olympe.dc.CloudObject{};olympe.sc.$M.U=olympe.dc.Ja.C('016421bb3797e22d1c4e',olympe.sc.$M);olympe.sc.logic={};olympe.sc.logic.TH=(a,b)=>a===b?0:a>b?1:-1;
1850
1850
  olympe.sc.logic.o1=(a,b,c,d,e,f,g)=>{const h=b.ka();b=olympe.j.Pa(b.getType().ka());let l,m;if(b===olympe.dc.Va(olympe.dm.String))l=c.valueOf().toLowerCase(),m=p=>p.Yd(h).toLowerCase();else if(b===olympe.dc.Va(olympe.dm.Number))l=c.valueOf(),m=p=>p.Ag(h);else if(b===olympe.dc.Va(olympe.dm.DateTime))l=c.getTime(),m=p=>olympe.j.Wa([p.xx(h)],r=>r.getTime(),Number,'FilterList Date&DateTime TransformFlows');else{c=olympe.dc.$a().name(b);g.warn(`Properties of type ${c} are not supported. List will not be filtered.`);e(a);
1851
1851
  return}let n;if('<'===f)n=(p,r)=>olympe.sc.logic.TH(r,p);else if('>'===f)n=(p,r)=>olympe.sc.logic.TH(p,r);else{g.error(`Unknown inequality ${f}. Please use '<' or '>'`);return}e(a.Vr().filter(p=>olympe.j.Wa([m(p)],r=>{r=n(r.valueOf(),l);return olympe.j.lc(d.valueOf()?1===r:0<=r)},olympe.j.ia,'FilterList ListDefBuilder Filter TransformFlows')).nk())};
1852
- olympe.sc.logic.O3=(a,b)=>{if(a instanceof olympe.j.aa)return a;if(a instanceof olympe.j.kb)return a.xQ();if(a instanceof olympe.j.ia)return a.GO();if('string'===typeof a||'number'===typeof a)return olympe.j.Ba(Number(a));b.error(`Could not parse provided value ${a} into a number`);return olympe.j.aa.AK};olympe.sc.logic.Qc={};function fq(a){ii(a.U,(b,c)=>{b=b.create(a.U.D);Z(b,olympe.dc.CloudObject.nameProp,c);return b.ka()})}olympe.sc.logic.Qc.HH=class{constructor(a,b,c){this.U=olympe.dc.Ja.C(a,b,...c);fq(this)}ka(){return this.U.ka()}getInputs(){return Xp(olympe.dc.CloudObject.get(this.U))}getOutputs(){return Yp(olympe.dc.CloudObject.get(this.U))}};olympe.sc.logic.Qc.HH.Aa=[olympe.dc.Zk];const gq=Object.create(null),hq=new Map;function iq(a){if(void 0===gq[a])throw Error(`Tag: ${a} - does not correspond to a registered function`);return di(a)}function jq(a,b,c=olympe.sc.logic.Function){if(hq.has(a))throw c=iq(a),Error(`Tag: ${a} - overwriting existing function definition "${c.name}" with "${b.name}"`);const d=olympe.dc.Ja.C(a,b,...[]);hq.set(a,{U:d,e4:b,J3:c});return d}
1852
+ olympe.sc.logic.O3=(a,b)=>{if(a instanceof olympe.j.aa)return a;if(a instanceof olympe.j.kb)return a.xQ();if(a instanceof olympe.j.ia)return a.GO();if('string'===typeof a||'number'===typeof a)return olympe.j.Ba(Number(a));b.error(`Could not parse provided value ${a} into a number`);return olympe.j.aa.AK};olympe.sc.logic.Qc={};function fq(a){hi(a.U,(b,c)=>{b=b.create(a.U.D);Z(b,olympe.dc.CloudObject.nameProp,c);return b.ka()})}olympe.sc.logic.Qc.HH=class{constructor(a,b,c){this.U=olympe.dc.Ja.C(a,b,...c);fq(this)}ka(){return this.U.ka()}getInputs(){return Xp(olympe.dc.CloudObject.get(this.U))}getOutputs(){return Yp(olympe.dc.CloudObject.get(this.U))}};olympe.sc.logic.Qc.HH.Aa=[olympe.dc.Zk];const gq=Object.create(null),hq=new Map;function iq(a){if(void 0===gq[a])throw Error(`Tag: ${a} - does not correspond to a registered function`);return di(a)}function jq(a,b,c=olympe.sc.logic.Function){if(hq.has(a))throw c=iq(a),Error(`Tag: ${a} - overwriting existing function definition "${c.name}" with "${b.name}"`);const d=olympe.dc.Ja.C(a,b,...[]);hq.set(a,{U:d,e4:b,J3:c});return d}
1853
1853
  olympe.sc.logic.Ja=class{constructor(){}static C(a,b,...c){if(gq[a])throw c=iq(a),Error(`Tag: ${a} - overwriting already defined function "${c.name}" with "${b.name}"`);b=new olympe.sc.logic.Qc.HH(a,b,[olympe.sc.ba.Wb].concat(c));return gq[a]=b}};olympe.sc.logic.TG=class a{static C(b){var c=olympe.sc.ui.Vd.O;let d=!1;const e=olympe.dc.Va(c),f=olympe.dc.$a();f.uc(b,olympe.sc.jg.O.ie()).forEach(g=>{d=d||f.uc(g,olympe.sc.jg.C).includes(e)});!1===d&&(d=null!==a.D(c,b));return d}static D(b,c){const d=olympe.sc.logic.kd.O,e=olympe.sc.logic.kd.C,f=olympe.sc.logic.kd.Ts,g=olympe.dc.$a();let h=null;g.uc(c,d.ie()).some(l=>g.Zd(l,e)===b.ka()?(h=g.Zd(l,f)||null,!0):!1);return h}};olympe.sc.logic.Pv=class extends olympe.dc.CloudObject{};olympe.sc.logic.Pv.U=olympe.dc.Ja.C('01621fb84e320000cf00',olympe.sc.logic.Pv);function yp(a,b,c){return new olympe.sc.logic.Error(a,b,c)}olympe.sc.logic.Error=class extends Error{constructor(a,b,c){super(a);this.code=b;this.C=null!=c?c:null}static create(a,b){return new olympe.sc.logic.Error(a,b)}MX(){return this.message}kx(){return this.code}Ek(){let a;return null!=(a=this.C)?a:''}toString(){return`${this.message}\nError found in:\n${this.Ek()}\n\n${this.stack}`}};olympe.sc.logic.Error.prototype.getStack=olympe.sc.logic.Error.prototype.Ek;
1854
1854
  olympe.sc.logic.Error.prototype.getCode=olympe.sc.logic.Error.prototype.kx;olympe.sc.logic.Error.prototype.getMessage=olympe.sc.logic.Error.prototype.MX;olympe.sc.logic.Error.create=olympe.sc.logic.Error.create;olympe.sc.logic.Uv=class extends olympe.sc.logic.Pv{};olympe.sc.logic.Uv.U=olympe.dc.Ja.C('016eeb5ede9f3094d8f0',olympe.sc.logic.Uv);olympe.sc.logic.Xh=class extends olympe.dc.CloudObject{C(){return this.Lg(olympe.sc.logic.Xh.C,olympe.dc.CloudObject)}};olympe.sc.logic.Xh.U=olympe.dc.Ja.C('016ac4f59ee8ea2081ba',olympe.sc.logic.Xh);olympe.sc.logic.Xh.D=olympe.sc.logic.Xh.U.ea('017bc044aeacce7ffc8f');olympe.sc.logic.Xh.C=olympe.sc.logic.Xh.U.qb('016ac4f5a0091c4790e2');Y(olympe.dc.CloudObject.U,olympe.sc.logic.Xh.C);olympe.sc.logic.Xh.prototype.C.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.Mt=class extends olympe.sc.logic.Xh{};olympe.sc.logic.Mt.U=olympe.dc.Ja.C('016ac4f59c592b862457',olympe.sc.logic.Mt);olympe.sc.logic.Mt.O=olympe.sc.Zh.C.ie();olympe.sc.logic.Mt.U.C=(a,b,c,d,e)=>{b=fo(a,b||'New Predefined Input',olympe.sc.logic.Mt,olympe.sc.logic.le);Z(b,olympe.sc.logic.Xh.D,e);a.Pb(olympe.sc.logic.Xh.C,b,c);a.Pb(olympe.sc.Zh.C,d,b);return b.ka()};olympe.sc.logic.yr=class extends olympe.sc.logic.Xh{};olympe.sc.logic.yr.U=olympe.dc.Ja.C('016ac4f59dd99f5df3e1',olympe.sc.logic.yr);olympe.sc.logic.yr.O=Y(olympe.sc.logic.yr.U,olympe.sc.Zh.D);olympe.sc.logic.yr.U.C=(a,b,c,d,e)=>{b=fo(a,b||'New Predefined Output',olympe.sc.logic.yr,olympe.sc.logic.Oe);Z(b,olympe.sc.logic.Xh.D,e);a.Pb(olympe.sc.logic.Xh.C,b,c);a.Pb(olympe.sc.Zh.D,d,b);return b.ka()};olympe.sc.logic.ti=class extends olympe.sc.hc{Ii(){return olympe.sc.mf.dj.OL}R(){return this.mx().Vr().pe([olympe.sc.logic.Function]).and().Te().pe([olympe.sc.logic.Sh,olympe.sc.logic.Fh]).nk()}W(){const a=olympe.dc.Va(olympe.sc.logic.Uv);return this.db.uc(this,olympe.sc.logic.ti.D).filter(b=>this.db.Zd(b,olympe.sc.logic.ff.typeRel)===a)}C(a){const b=this.db.AA(this,[olympe.sc.hc.R],c=>this.db.model(c)===olympe.dc.Va(a));return b?olympe.dc.CloudObject.get(b):null}D(a){const b=this.db.AA(this,[olympe.sc.hc.D],
1855
1855
  c=>this.db.model(c)===olympe.dc.Va(a));return b?olympe.dc.CloudObject.get(b):null}T(a){if(!this.xq())return super.T(a);const b=olympe.dc.Va(olympe.sc.logic.Pv),c=olympe.dc.Va(olympe.sc.logic.Uv);return Yp(this).map(d=>{switch(this.db.Zd(d,olympe.sc.logic.ff.typeRel)){case b:return a.wp.bind(a,d);case c:return a.throw.bind(a);default:return a.set.bind(a,d)}})}O(a){if(!this.xq())return super.O(a);const b=Xp(this);return 0<b.length?rxjs.combineLatest(b.map(c=>a.observe(c))).pipe(rxjs.operators.map(c=>
1856
1856
  c.includes(null)?null:c)):rxjs.of([])}};olympe.sc.logic.ti.U=jq('01621fb84e320000f000',olympe.sc.logic.ti,olympe.sc.logic.Function);olympe.sc.logic.ti.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.ti.prototype.D.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);let kq=null;function lq(){if(null===kq){let a;kq=null!=(a=olympe.ra.getParameter('sc.action.experimental'))?a:!1}return kq}
1857
1857
  olympe.sc.logic.xp=class extends olympe.sc.logic.ti{ca(){return this.C('016ac63229782039429f')}fa(){return this.D('016ac6322acf67eebfe7')}qa(){return this.getOutputs().Vr().kc(olympe.sc.logic.ff.typeRel).eB(olympe.sc.logic.Uv).nk().Tc().Vj(olympe.j.aa.ZERO)}O(a){if(this.xq()||lq()){const b=this.ca().ka();return a.observe(b).pipe(rxjs.operators.map(c=>null===c?null:Xp(this).filter(d=>d!==b).map(d=>a.get(d))))}return super.O(a)}};olympe.sc.logic.xp.C='016ac63229782039429f';olympe.sc.logic.xp.$='016ac6322acf67eebfe7';
1858
- olympe.sc.logic.xp.U=jq('01621fb84e320000a000',olympe.sc.logic.xp,olympe.sc.logic.Action);olympe.sc.logic.xp.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.xp.prototype.fa.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.xp.prototype.qa.K=olympe.j.J.T;olympe.sc.logic.MG=class extends olympe.sc.logic.ti{};olympe.sc.logic.MG.U=jq('01621fb84e320000f011',olympe.sc.logic.MG);olympe.sc.logic.LG=class extends olympe.sc.logic.xp{};olympe.sc.logic.LG.U=jq('01621fb84e320000f012',olympe.sc.logic.LG);olympe.sc.logic.Function=class extends olympe.sc.Runnable{T(){return[this.Ha]}$(){if(!this.Zf().xq())return super.$();const a=olympe.sc.Cp.C.SC,b=olympe.sc.Cp.C.tD,c=this.db,d=new Map,e=this.Ce();c.uc(e,olympe.sc.hc.R).forEach(f=>{d.set(a+c.name(f),f)});c.uc(e,olympe.sc.hc.D).forEach(f=>{d.set(b+c.name(f),f)});return d}};olympe.sc.logic.Function.U=olympe.dc.Ja.C('0168c6f020f2a96f0000',olympe.sc.logic.Function,olympe.sc.ba.Wb);olympe.sc.logic.ff=class extends olympe.dc.CloudObject{getType(){return this.Lg(olympe.sc.logic.ff.typeRel,olympe.dc.CloudObject)}C(){return this.Ag(olympe.sc.logic.ff.C)}};olympe.sc.logic.ff.U=olympe.dc.Ja.C('0168a431d25001540000',olympe.sc.logic.ff);olympe.sc.logic.ff.C=olympe.sc.logic.ff.U.ea('01740c5d4ae4b520dd01');olympe.sc.logic.ff.typeRel=olympe.sc.logic.ff.U.qb('0168a431d3b9b7438424');Y(olympe.dc.CloudObject.U,olympe.sc.logic.ff.typeRel);
1858
+ olympe.sc.logic.xp.U=jq('01621fb84e320000a000',olympe.sc.logic.xp,olympe.sc.logic.Action);olympe.sc.logic.xp.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.xp.prototype.fa.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.xp.prototype.qa.K=olympe.j.J.T;olympe.sc.logic.MG=class extends olympe.sc.logic.ti{};olympe.sc.logic.MG.U=jq('01621fb84e320000f011',olympe.sc.logic.MG);olympe.sc.logic.LG=class extends olympe.sc.logic.xp{};olympe.sc.logic.LG.U=jq('01621fb84e320000f012',olympe.sc.logic.LG);olympe.sc.logic.Function=class extends olympe.sc.Runnable{T(){return[this.Ha]}$(){if(!this.$f().xq())return super.$();const a=olympe.sc.Cp.C.SC,b=olympe.sc.Cp.C.tD,c=this.db,d=new Map,e=this.Ce();c.uc(e,olympe.sc.hc.R).forEach(f=>{d.set(a+c.name(f),f)});c.uc(e,olympe.sc.hc.D).forEach(f=>{d.set(b+c.name(f),f)});return d}};olympe.sc.logic.Function.U=olympe.dc.Ja.C('0168c6f020f2a96f0000',olympe.sc.logic.Function,olympe.sc.ba.Wb);olympe.sc.logic.ff=class extends olympe.dc.CloudObject{getType(){return this.Lg(olympe.sc.logic.ff.typeRel,olympe.dc.CloudObject)}C(){return this.Ag(olympe.sc.logic.ff.C)}};olympe.sc.logic.ff.U=olympe.dc.Ja.C('0168a431d25001540000',olympe.sc.logic.ff);olympe.sc.logic.ff.C=olympe.sc.logic.ff.U.ea('01740c5d4ae4b520dd01');olympe.sc.logic.ff.typeRel=olympe.sc.logic.ff.U.qb('0168a431d3b9b7438424');Y(olympe.dc.CloudObject.U,olympe.sc.logic.ff.typeRel);
1859
1859
  olympe.sc.logic.ff.prototype.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);olympe.sc.logic.ff.prototype.C.K=olympe.j.J.D;olympe.sc.logic.le=class extends olympe.sc.logic.ff{};olympe.sc.logic.le.U=olympe.dc.Ja.C('0168a431d25001540001',olympe.sc.logic.le);olympe.sc.logic.le.W=olympe.sc.logic.ff.U.ea('01740c5d4ae4b520dd02');olympe.sc.logic.le.T=Y(olympe.sc.logic.le.U,olympe.sc.hc.R);olympe.sc.logic.le.D=olympe.sc.logic.le.U.qb('0168a431d91f2578000b',olympe.dc.Gb.ORIGIN);olympe.sc.logic.le.O=olympe.sc.logic.le.U.qb('01621fb84e32000000a1',olympe.dc.Gb.ORIGIN);
1860
1860
  olympe.sc.logic.le.R=olympe.sc.logic.le.U.qb('01621fb84e32000000d1',olympe.dc.Gb.ORIGIN);olympe.sc.logic.le.U.C=function(a,b,c,d,e,f=olympe.sc.logic.le){f=a.create(f);Z(f,olympe.dc.CloudObject.nameProp,b||'New input');a.Pb(olympe.sc.logic.ff.typeRel,f,c);void 0!==e&&Z(f,olympe.sc.logic.ff.C,e);d&&a.Pb(olympe.sc.hc.R,d,f);return f.ka()};olympe.sc.logic.Oe=class extends olympe.sc.logic.ff{};olympe.sc.logic.Oe.U=olympe.dc.Ja.C('0168a431d25001540002',olympe.sc.logic.Oe);olympe.sc.logic.Oe.T=Y(olympe.sc.logic.Oe.U,olympe.sc.hc.D);olympe.sc.logic.Oe.D=olympe.sc.logic.Oe.U.qb('0168a431d91f25780003',olympe.dc.Gb.ORIGIN);olympe.sc.logic.Oe.R=olympe.sc.logic.Oe.U.qb('01621fb84e32000000a2',olympe.dc.Gb.ORIGIN);olympe.sc.logic.Oe.O=olympe.sc.logic.Oe.U.qb('01621fb84e32000000d2',olympe.dc.Gb.ORIGIN);
1861
1861
  olympe.sc.logic.Oe.U.C=function(a,b,c,d,e,f=olympe.sc.logic.Oe){f=a.create(f);Z(f,olympe.dc.CloudObject.nameProp,b||'New output');a.Pb(olympe.sc.logic.ff.typeRel,f,c);void 0!==e&&Z(f,olympe.sc.logic.ff.C,e);d&&a.Pb(olympe.sc.hc.D,d,f);return f.ka()};olympe.sc.logic.Sh=class extends olympe.sc.logic.Function{run(a){this.W(a);const b=a.getParent(),c=this.db.Zd(this,olympe.sc.logic.Sh.D),d=this.db.Zd(this,olympe.sc.logic.Sh.C);pp(a,c,e=>b.set(d,e),this.tag)}C(){return this.wl(olympe.sc.logic.Sh.D).tf()}D(){return this.wl(olympe.sc.logic.Sh.C).tf()}};olympe.sc.logic.Sh.U=olympe.dc.Ja.C('01621fb84e32000000a0',olympe.sc.logic.Sh,olympe.sc.ba.Wb);olympe.sc.logic.Sh.D=Y(olympe.sc.logic.Sh.U,olympe.sc.logic.le.O);
1862
1862
  olympe.sc.logic.Sh.C=Y(olympe.sc.logic.Sh.U,olympe.sc.logic.Oe.R);olympe.sc.logic.Sh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.Sh);a.Pb(olympe.sc.logic.Sh.C,b,c);return b.ka()};olympe.sc.logic.Sh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.Sh.prototype.D.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.Fh=class extends olympe.sc.logic.Function{run(a){const b=a.getParent(),c=this.db.Zd(this,olympe.sc.logic.Fh.C),d=this.db.Zd(this,olympe.sc.logic.Fh.D);pp(b,c,e=>a.set(d,e),b.ja())}D(){return this.wl(olympe.sc.logic.Fh.C).tf()}C(){return this.wl(olympe.sc.logic.Fh.D).tf()}};olympe.sc.logic.Fh.U=olympe.dc.Ja.C('01621fb84e32000000d0',olympe.sc.logic.Fh,olympe.sc.ba.Wb);olympe.sc.logic.Fh.C=Y(olympe.sc.logic.Fh.U,olympe.sc.logic.le.R);olympe.sc.logic.Fh.D=Y(olympe.sc.logic.Fh.U,olympe.sc.logic.Oe.O);
1863
- olympe.sc.logic.Fh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.Fh);a.Pb(olympe.sc.logic.Fh.C,b,c);return b.ka()};olympe.sc.logic.Fh.prototype.D.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.Fh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);function Zp(a,b,c){var d;const e=null!=(d=a.db.Zd(a,olympe.sc.logic.kd.R))?d:a.db.Zd(a,olympe.sc.logic.kd.yy),f=a.db.Zd(a,olympe.sc.logic.kd.Ts);if(null!==e&&null!==f){d=a.db.tc(a.db.model(f),olympe.sc.hc.ca);const l=a.db.fn(mq(a),olympe.dm.jl)?new olympe.j.fe('Pipe Context'):null,m=a.C.bind(a,c,l);let n;const p=b.lB(f,r=>{let t;null==(t=n)||t();n=pp(r,e,m,f)},!d);return()=>{m(null);p();let r;null==(r=n)||r()}}const g=l=>c(olympe.dc.zd.Yf(l)),h=kj(a.db,a,olympe.sc.logic.kd.valueProp,g);return()=>
1863
+ olympe.sc.logic.Fh.U.C=function(a,b,c){b=a.create(olympe.sc.logic.Fh);a.Pb(olympe.sc.logic.Fh.C,b,c);return b.ka()};olympe.sc.logic.Fh.prototype.D.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.Fh.prototype.C.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);function Zp(a,b,c){var d;const e=null!=(d=a.db.Zd(a,olympe.sc.logic.kd.R))?d:a.db.Zd(a,olympe.sc.logic.kd.yy),f=a.db.Zd(a,olympe.sc.logic.kd.Ts);if(null!==e&&null!==f){d=a.db.tc(a.db.model(f),olympe.sc.hc.ca);const l=a.db.fn(mq(a),olympe.dm.jl)?new olympe.j.fe('Pipe Context'):null,m=a.C.bind(a,c,l);let n;const p=b.lB(f,r=>{let t;null==(t=n)||t();n=pp(r,e,m,f)},!d);return()=>{m(null);p();let r;null==(r=n)||r()}}const g=l=>c(olympe.dc.zd.Zf(l)),h=kj(a.db,a,olympe.sc.logic.kd.valueProp,g);return()=>
1864
1864
  {g(null);lj(a.db,a,olympe.sc.logic.kd.valueProp,h)}}function mq(a){let b=null,c=a.db.Zd(a,olympe.sc.logic.kd.C);c?b=a.db.Zd(c,olympe.dm.Property.typeRel):(c=a.db.Zd(a,olympe.sc.logic.kd.D))&&(b=a.db.Zd(c,olympe.sc.logic.ff.typeRel));return b||olympe.dc.Va(olympe.dc.CloudObject)}
1865
1865
  olympe.sc.logic.kd=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.V=c}C(a,b,c){const d=olympe.sc.Vw(c);null==b||b.Ho();b&&d instanceof olympe.dm.jl?null==b||b.run(()=>{olympe.j.Xa([d.getValue()],e=>{a(e.valueOf())})}):a(d)}getValue(a){return this.Qo(olympe.sc.logic.kd.valueProp,a||olympe.dc.zd.Vw,Object)}getType(){const a=this.transform(olympe.sc.logic.kd.D,olympe.sc.logic.ff.typeRel);a.wi(olympe.dc.CloudObject);return a.be()}hY(){return this.Lg(olympe.sc.logic.kd.Ts,olympe.dc.CloudObject)}fY(){return this.Lg(olympe.sc.logic.kd.R,
1866
1866
  olympe.sc.logic.Oe)}gY(){return this.Lg(olympe.sc.logic.kd.yy,olympe.dm.Property)}pX(){return this.Lg(olympe.sc.logic.kd.O,olympe.dc.CloudObject)}nX(){return this.Lg(olympe.sc.logic.kd.D,olympe.sc.logic.le)}oX(){return this.Lg(olympe.sc.logic.kd.C,olympe.dm.Property)}};olympe.sc.logic.kd.U=olympe.dc.Ja.C('0168a431d91f25780000',olympe.sc.logic.kd,olympe.sc.ba.Wb);olympe.sc.logic.kd.valueProp=olympe.sc.logic.kd.U.ea('0168a431d91f25780001');olympe.sc.logic.kd.Ts=olympe.sc.logic.kd.U.qb('0168a431d91f25780002');
1867
1867
  olympe.sc.logic.kd.R=Y(olympe.sc.logic.kd.U,olympe.sc.logic.Oe.D);olympe.sc.logic.kd.yy=olympe.sc.logic.kd.U.qb('0168a431d91f25780004');olympe.sc.logic.kd.O=olympe.sc.logic.kd.U.qb('0168a431d91f2578000a');olympe.sc.logic.kd.D=Y(olympe.sc.logic.kd.U,olympe.sc.logic.le.D);olympe.sc.logic.kd.C=olympe.sc.logic.kd.U.qb('0168a431d91f2578000c');Y(olympe.dc.CloudObject.U,olympe.sc.logic.kd.Ts);Y(olympe.dm.Property.U,olympe.sc.logic.kd.yy);Y(olympe.dc.CloudObject.U,olympe.sc.logic.kd.O);
1868
- Y(olympe.dm.Property.U,olympe.sc.logic.kd.C);k=olympe.sc.logic.kd.prototype;k.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.hY.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.fY.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);k.gY.K=new olympe.j.J(()=>olympe.dm.Property,[]);k.pX.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.nX.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);k.oX.K=new olympe.j.J(()=>olympe.dm.Property,[]);function nq(a,b){const c=a.Zf(),d=c.dD().ka(),e=c.eD().ka(),f=c.fD().ka(),g=oq(a),h=0<g?new olympe.la.promise.eA(g):{Bd:l=>l()};a.V.debug(`Remote Action "${c.name()}" (${c.ka()}): ${a.ka()} is sending to remote (max concurrent: ${g})`);pp(b,d,l=>{if(l){const m=new Map(a.getInputs().map(p=>[p,b.get(p)])),n={timeout:a.timeout};h.Bd(()=>q(function*(){return olympe.X.Rd.get(a.Ce(),m,n)})).then(p=>{for(const [r,t]of p)r!==e&&r!==f&&b.set(r,t);b.set(e,p.get(e));p=p.get(f);p instanceof olympe.sc.logic.Error&&
1869
- (p=yp(p.message,p.kx(),p.Ek()+'\n===== Remote Call =====\n'+b.Ek()),b.throw(p))}).catch(p=>{p=`RemoteAction "${a.Se().name()}" (${a.tag}) encountered an error:\n${p}`;a.V.error(p);b.throw(olympe.sc.logic.Error.create(p,400))})}},b.ja())}function oq(a){a=a.Zf().ka();const [b,c]=olympe.sc.Config.nL.split('.');let d,e;return null!=(e=null!=(d=olympe.ra.getParameter(`${b}.${a}.${c}`))?d:olympe.ra.getParameter(`${b}.${c}`))?e:0}function pq(a){a.onDestroy(()=>{})}
1868
+ Y(olympe.dm.Property.U,olympe.sc.logic.kd.C);k=olympe.sc.logic.kd.prototype;k.getType.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.hY.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.fY.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);k.gY.K=new olympe.j.J(()=>olympe.dm.Property,[]);k.pX.K=new olympe.j.J(()=>olympe.dc.CloudObject,[]);k.nX.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);k.oX.K=new olympe.j.J(()=>olympe.dm.Property,[]);function nq(a,b){const c=a.$f(),d=c.dD().ka(),e=c.eD().ka(),f=c.fD().ka(),g=oq(a),h=0<g?new olympe.la.promise.eA(g):{Bd:l=>l()};a.V.debug(`Remote Action "${c.name()}" (${c.ka()}): ${a.ka()} is sending to remote (max concurrent: ${g})`);pp(b,d,l=>{if(l){const m=new Map(a.getInputs().map(p=>[p,b.get(p)])),n={timeout:a.timeout};h.Bd(()=>q(function*(){return olympe.X.Rd.get(a.Ce(),m,n)})).then(p=>{for(const [r,t]of p)r!==e&&r!==f&&b.set(r,t);b.set(e,p.get(e));p=p.get(f);p instanceof olympe.sc.logic.Error&&
1869
+ (p=yp(p.message,p.kx(),p.Ek()+'\n===== Remote Call =====\n'+b.Ek()),b.throw(p))}).catch(p=>{p=`RemoteAction "${a.Se().name()}" (${a.tag}) encountered an error:\n${p}`;a.V.error(p);b.throw(olympe.sc.logic.Error.create(p,400))})}},b.ja())}function oq(a){a=a.$f().ka();const [b,c]=olympe.sc.Config.nL.split('.');let d,e;return null!=(e=null!=(d=olympe.ra.getParameter(`${b}.${a}.${c}`))?d:olympe.ra.getParameter(`${b}.${c}`))?e:0}function pq(a){a.onDestroy(()=>{})}
1870
1870
  function qq(a,b,c,d,e,f,g){const h=p=>q(function*(){if(null!==p){e.cancel();let r;null==(r=m)||r();let t;null==(t=n)||t();try{const u=new Map(a.getOutputs().map(v=>[v,b.get(v)]));yield f.ah(u)}catch(u){const v=Error(`Error while trying to send the response of remote action ${a.Se().name()} (${a.Ce()}): ${u}`);f.su(v).catch(w=>{a.V.error(`Cannot reply with an error to a remote action call ${a.Se().name()} (${a.Ce()}): ${w}`)})}finally{b.destroy(),g()}}}),l=b.ja(),m=pp(b,c,h,l),n=pp(b,d,h,l)}
1871
1871
  olympe.sc.logic.Tt=class extends olympe.sc.logic.Function{constructor(a,b,c,d,e,f){super(a,b,c);this.timeout=e;this.C=f}update(a,b,c){olympe.sc.qd.IA().isEnabled()&&olympe.sc.qd.IA().track('Remote Action',this.name());return super.update(a,b,c)}run(a){up(a)||(this.db.tc(this,olympe.sc.logic.Tt.C)?(Mp(a.state,this),this.D(a)):this.C&&0<olympe.dc.nb.xl(this.C,olympe.sc.Fb.Gg).kc(olympe.sc.hc.O).kc(olympe.sc.Runnable.$).filter(olympe.dc.query.Rb.LE(this.Ce())).tf().size()?super.run(a):(this.W(a),nq(this,
1872
- a)))}D(a){const b=this.Ce(),c=this.Zf(),d=c.cK().ka(),e=c.dD().ka(),f=c.eD().ka(),g=c.fD().ka(),h=oq(this),l=0<h?new olympe.la.promise.eA(h):{Bd:m=>m()};this.V.debug(`Remote Action "${c.name()}" (${c.ka()}): ${this.ka()} is listening (max concurrent: ${h})`);(new olympe.X.Rd(b,a)).Nu().subscribe(rxjs.Subscriber.create(m=>{l.Bd(()=>{const n=this,p=()=>super.run;return q(function*(){return new Promise(r=>{const t=a.Go('remote call'),u=m.body();t.set(olympe.sc.Db.C.REDELIVERED,m.Lu());pq(t);const v=
1872
+ a)))}D(a){const b=this.Ce(),c=this.$f(),d=c.cK().ka(),e=c.dD().ka(),f=c.eD().ka(),g=c.fD().ka(),h=oq(this),l=0<h?new olympe.la.promise.eA(h):{Bd:m=>m()};this.V.debug(`Remote Action "${c.name()}" (${c.ka()}): ${this.ka()} is listening (max concurrent: ${h})`);(new olympe.X.Rd(b,a)).Nu().subscribe(rxjs.Subscriber.create(m=>{l.Bd(()=>{const n=this,p=()=>super.run;return q(function*(){return new Promise(r=>{const t=a.Go('remote call'),u=m.body();t.set(olympe.sc.Db.C.REDELIVERED,m.Lu());pq(t);const v=
1873
1873
  $c(()=>{m.su(Error(`Timeout reached on remote action ${n.db.name(n)} (${n.tag})`)).catch(()=>{});t.destroy()},n.timeout);qq(n,t,f,g,v,m,r);p().call(n,t);for(const [w,x]of u)w!==e&&t.set(w,x);m.Ev().then(w=>{var x=t.get(d);null!==x&&olympe.dc.Va(x)!==w&&(x=n.Ce(),n.V.warn(`Remote action ${n.db.name(x)} ${x}: try to run it with an input user that is not the real authenticated user.`));t.set(d,w);t.set(e,u.get(e))}).catch(w=>{const x=n.Ce();n.V.warn(`Remote action ${n.db.name(x)} ${x} Triggered by unrecognized user: ${w}.`);
1874
1874
  t.set(g,olympe.sc.logic.Error.create('Unrecognized User',1))})})})})},m=>{const n=this.Ce();this.V.error(`Error while listening on remote action ${this.db.name(n)} (${n}): ${m.message}`)}))}};olympe.sc.logic.Tt.U=olympe.dc.Ja.C('017a7b0c5dcbd8964c5d',olympe.sc.logic.Tt,olympe.sc.ba.Wb,olympe.host.ba.Cm,new olympe.ra.xb(olympe.sc.Config.oL),new olympe.ra.xb(olympe.sc.Config.jk));olympe.sc.logic.Tt.C=olympe.sc.logic.Tt.U.ea('017a7b0c62a02a89444f');olympe.sc.logic.controllers={};olympe.sc.logic.controllers.TC=class{constructor(a){this.db=olympe.dc.$a();this.typeRel=a}};olympe.sc.logic.controllers.TC.C={Z_:-1,f1:1};olympe.sc.logic.controllers.h2=class extends olympe.sc.logic.controllers.TC{constructor(){super(olympe.sc.logic.Xh.C)}};olympe.sc.logic.controllers.q2=class extends olympe.sc.logic.controllers.TC{constructor(){super(olympe.sc.logic.ff.typeRel)}};olympe.sc.logic.CA={};olympe.sc.logic.CA.jV=class extends olympe.sc.logic.Function{update(a,[b],[c]){const d=olympe.dc.Va(b);d?olympe.dc.nb.cf(a,d,olympe.dc.Ee.bj).subscribe(()=>{c(olympe.dc.CloudObject.get(d))}):this.V.warn('Cannot subscribe to an instance with no tag: '+d)}};olympe.sc.logic.Ja.C('0174bf4b7e006e4b788a',olympe.sc.logic.CA.jV);olympe.sc.logic.actions={};olympe.sc.logic.CA.FT=class extends olympe.sc.logic.Function{run(a){this.W(a);const [b,c,d]=this.Fa(a);let e,f=null,g=null;const h=a.getParent(),l=()=>{null===g||0===e?(this.V.warn('No list to iter upon'),this.V.info(a.ja())):f<e?(b(g.Al(f)),f++,c(Date.now())):(Op(h.state),d(Date.now()))};this.getInputs().forEach((m,n)=>pp(a,m,p=>{if(p)switch(n){case 0:g=p;break;case 1:e=g.hj();f=0;Np(h.state);l();break;case 2:l();break;default:this.V.error('Unhandled input')}},this.tag))}};
1875
1875
  olympe.sc.logic.Ja.C('0171889b060b6cd54300',olympe.sc.logic.CA.FT);olympe.sc.logic.jf={};olympe.sc.logic.jf.AC=class extends olympe.sc.logic.ti{ca(){return this.C('016ac638085357047a2d')}};olympe.sc.logic.jf.AC.U=jq('0169b6876a03f14ae61b',olympe.sc.logic.jf.AC);olympe.sc.logic.jf.AC.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);let rq=null;olympe.sc.logic.jf.UC=class extends olympe.sc.logic.ti{ca(){return this.C('016ac63808535703691c')}O(a){if(null===rq){let b;rq=null!=(b=olympe.ra.getParameter('sc.event.experimental'))?b:!1}return rq?a.observe(Xp(this)[0]):super.O(a)}};olympe.sc.logic.jf.UC.U=jq('0169b6876a03f139d50a',olympe.sc.logic.jf.UC);olympe.sc.logic.jf.UC.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.jf.uD=class extends olympe.sc.logic.ti{ca(){return this.C('016ac63809a9a8e6db96')}fa(){return this.D('016ac6380ab003363b3e')}};jq('01646ad602f933b8caaf',olympe.sc.logic.jf.uD);olympe.sc.logic.jf.uD.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.jf.uD.prototype.fa.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.jf.Jz=class extends olympe.sc.logic.ti{ca(){return this.C('016ac6380bd98f1d91a0')}qa(){return this.D('016ac63c589ae38ca3ae')}fa(){return this.D('016ac63c5a377fceabaa')}};jq('0168ec42fc01747a98b6',olympe.sc.logic.jf.Jz);olympe.sc.logic.jf.Jz.prototype.ca.K=new olympe.j.J(()=>olympe.sc.logic.le,[]);olympe.sc.logic.jf.Jz.prototype.qa.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.jf.Jz.prototype.fa.K=new olympe.j.J(()=>olympe.sc.logic.Oe,[]);olympe.sc.logic.jf.Br=class extends olympe.sc.logic.ti{dD(){return this.C('017a7b07b09e3b22c8b4')}cK(){return this.C('017a7b07ba05807a74b0')}eD(){return this.D('017a7b0818c12388d731')}fD(){return this.D('017a7b085146d5e69aec')}hT(){return olympe.j.ia.C}};olympe.sc.logic.jf.Br.$='017a7b07b09e3b22c8b4';olympe.sc.logic.jf.Br.Fa='017a7b07ba05807a74b0';olympe.sc.logic.jf.Br.Ha='017a7b0818c12388d731';olympe.sc.logic.jf.Br.C='017a7b085146d5e69aec';
@@ -1881,7 +1881,7 @@ olympe.sc.workflow.Transition.prototype.C.K=new olympe.j.J(()=>olympe.sc.workflo
1881
1881
  olympe.sc.workflow.Workflow.dataTypeRel=olympe.sc.workflow.Workflow.U.qb('017ffdc010e5bcc9c973');olympe.sc.workflow.Workflow.statesRel=olympe.sc.workflow.Workflow.U.qb('017ffdc010e5bcc9c974');olympe.sc.workflow.Workflow.initialStateRel=olympe.sc.workflow.Workflow.U.qb('017ffdc010e5bcc9c975');olympe.sc.workflow.Workflow.prototype.O.K=olympe.j.J.T;olympe.sc.workflow.Workflow.prototype.C.K=new olympe.j.J(()=>olympe.sc.tg,[]);
1882
1882
  olympe.sc.workflow.Workflow.prototype.D.K=new olympe.j.J(()=>olympe.sc.workflow.Gm,[]);olympe.sc.Fb={};olympe.sc.Fb.Gg=class extends olympe.sc.hc{Ii(){return olympe.sc.mf.dj.FL}};olympe.sc.Fb.Gg.U=olympe.dc.Ja.C('01120300000000adef00',olympe.sc.Fb.Gg);olympe.sc.Fb.Gg.C=olympe.sc.Fb.Gg.U.qb('0171bc1f15da96dfdb89');olympe.sc.Fb.Gg.Fa=olympe.sc.Fb.Gg.U.qb('0171bc1f15da96dfdb90');Y(olympe.dm.kh.U,olympe.sc.Fb.Gg.C);olympe.sc.Fb.bt=class extends olympe.sc.Runnable{qe(a){a.wp(olympe.sc.hc.Da)}Da(){return[this.Ce()]}Oa(){return olympe.dc.Yh.from(this.Ce()).kc(olympe.sc.Fb.Gg.C).tf()}};olympe.sc.Fb.bt.U=ji(olympe.dc.Ja.C('0113030000000aca1100',olympe.sc.Fb.bt));olympe.sc.Fb.bt.prototype.Oa.K=new olympe.j.J(()=>olympe.dm.hd,[]);olympe.sc.Fb.Jd=class extends olympe.dc.CloudObject{oT(){return this.cn(olympe.sc.Fb.Jd.ju)}UY(){return this.cn(olympe.sc.Fb.Jd.qa)}nh(){return this.Ag(olympe.sc.Fb.Jd.C)}uX(){return this.Yd(olympe.sc.Fb.Jd.R)}YX(){return this.Yd(olympe.sc.Fb.Jd.fa)}XX(){return this.Yd(olympe.sc.Fb.Jd.$)}Io(){return this.Yd(olympe.sc.Fb.Jd.ca)}LX(){return this.Yd(olympe.sc.Fb.Jd.T)}WW(){return this.Yd(olympe.sc.Fb.Jd.D)}VX(){return this.Yd(olympe.sc.Fb.Jd.W)}nT(){return this.Yd(olympe.sc.Fb.Jd.O)}};
1883
1883
  olympe.sc.Fb.Jd.U=olympe.dc.Ja.C('011203300000000adef5',olympe.sc.Fb.Jd);olympe.sc.Fb.Jd.ju=olympe.sc.Fb.Jd.U.ea('011203300000000adef6');olympe.sc.Fb.Jd.qa=olympe.sc.Fb.Jd.U.ea('011203300000000adef7');olympe.sc.Fb.Jd.C=olympe.sc.Fb.Jd.U.ea('011203300000000adef8');olympe.sc.Fb.Jd.R=olympe.sc.Fb.Jd.U.ea('011203300000000adef9');olympe.sc.Fb.Jd.fa=olympe.sc.Fb.Jd.U.ea('011203300000000adefa');olympe.sc.Fb.Jd.$=olympe.sc.Fb.Jd.U.ea('011203300000000adefb');olympe.sc.Fb.Jd.D=olympe.sc.Fb.Jd.U.ea('011203300000000adefc');
1884
- olympe.sc.Fb.Jd.ca=olympe.sc.Fb.Jd.U.ea('011203300000000adefd');olympe.sc.Fb.Jd.T=olympe.sc.Fb.Jd.U.ea('011203300000000adefe');olympe.sc.Fb.Jd.W=olympe.sc.Fb.Jd.U.ea('011203300000000adeff');olympe.sc.Fb.Jd.O=olympe.sc.Fb.Jd.U.ea('011203300000000adee0');olympe.sc.Fb.Jd.Vf={INIT:0,K_:1,E2:2,A2:3,z2:4,F2:5,xe:9};k=olympe.sc.Fb.Jd.prototype;k.oT.K=olympe.j.J.T;k.UY.K=olympe.j.J.T;k.nh.K=olympe.j.J.D;k.uX.K=olympe.j.J.R;k.YX.K=olympe.j.J.R;k.XX.K=olympe.j.J.R;k.Io.K=olympe.j.J.R;k.LX.K=olympe.j.J.R;
1884
+ olympe.sc.Fb.Jd.ca=olympe.sc.Fb.Jd.U.ea('011203300000000adefd');olympe.sc.Fb.Jd.T=olympe.sc.Fb.Jd.U.ea('011203300000000adefe');olympe.sc.Fb.Jd.W=olympe.sc.Fb.Jd.U.ea('011203300000000adeff');olympe.sc.Fb.Jd.O=olympe.sc.Fb.Jd.U.ea('011203300000000adee0');olympe.sc.Fb.Jd.Wf={INIT:0,K_:1,E2:2,A2:3,z2:4,F2:5,xe:9};k=olympe.sc.Fb.Jd.prototype;k.oT.K=olympe.j.J.T;k.UY.K=olympe.j.J.T;k.nh.K=olympe.j.J.D;k.uX.K=olympe.j.J.R;k.YX.K=olympe.j.J.R;k.XX.K=olympe.j.J.R;k.Io.K=olympe.j.J.R;k.LX.K=olympe.j.J.R;
1885
1885
  k.WW.K=olympe.j.J.R;k.VX.K=olympe.j.J.R;k.nT.K=olympe.j.J.R;olympe.sc.Fb.QC=class extends olympe.sc.Fb.bt{qe(a){a.set(olympe.sc.Db.C.VB,!0);super.qe(a)}eb(){return!0}};olympe.sc.Fb.QC.U=olympe.dc.Ja.C('0113032000000aca1102',olympe.sc.Fb.QC,olympe.sc.ba.Wb);olympe.sc.Fb.Fm=class extends olympe.sc.Fb.Gg{C(){return(new olympe.dc.Wp(this.ka(),olympe.sc.Fb.Jd)).kc(olympe.sc.Fb.Fm.$).nk().be()}};olympe.sc.Fb.Fm.U=olympe.dc.Ja.C('011203300000000adef3',olympe.sc.Fb.Fm);olympe.sc.Fb.Fm.$=olympe.sc.Fb.Fm.U.qb('011203300000000adef4');Y(olympe.sc.Fb.Jd.U,olympe.sc.Fb.Fm.$);
1886
1886
  olympe.sc.Fb.Fm.U.C=(a,b,c)=>{b=fo(a,b||'New Service Application model',olympe.sc.Fb.Fm,olympe.sc.Fb.QC);a.Pb(olympe.sc.Fb.Gg.C,b,c);c=a.create(olympe.sc.Fb.Jd).ka();a.Pb(olympe.sc.Fb.Fm.$,b,c);return b.ka()};olympe.sc.Fb.Fm.prototype.C.K=new olympe.j.J(()=>olympe.sc.Fb.Jd,[]);olympe.sc.Lr=class extends olympe.dc.CloudObject{static get(){return olympe.dc.CloudObject.get('011203300000000adf0f')}};olympe.sc.Lr.U=olympe.dc.Ja.C('011203300000000adf00',olympe.sc.Lr);olympe.sc.Lr.D=olympe.sc.Lr.U.ea('011203300000000adf01');olympe.sc.Lr.C=olympe.sc.Lr.U.ea('011203300000000adf02');olympe.sc.Lr.O='011203300000000adf0f';olympe.sc.Jn={};olympe.sc.Jn.HY=a=>{var b=a.C;const c=olympe.dc.$a();var d=null;var e=null===dq;for(const f of b.ng())if((b=f.Se())&&f.D()&&f.Cd()===olympe.dc.vc.SERVER&&Un(a,f.tag())&&c.pe(b,olympe.sc.tg)){if(!e)throw new olympe.dc.KK;let g,h;null==d&&(d=null,null!==cq?d=cq:'string'===typeof bq&&(d=olympe.dc.Yh.from(bq).kc(olympe.sc.Fb.Gg.C).kc(olympe.sc.Yn.C.ie()).tf()),d=null==(g=d)?void 0:g.ka());d=null!=(h=d)?h:null;if(null===d)throw Error(`No business container for new instance of ${olympe.dc.Va(b)}`);a.Pb(olympe.sc.Yn.D.ka(),
1887
1887
  d,f.tag())}};
@@ -1891,12 +1891,12 @@ olympe.sc.Jn.qW=a=>{const b=a.C,c=olympe.dc.$a(),d=new Set;for(var e of b.me.val
1891
1891
  n:'unknown';throw Error(`Try to link an instance (${a}) of DataType ${c.name(g)} (${g}) to an instance which is not (${h}) a DataType: ${c.name(e)} (${e})`);}}}};olympe.sc.Jn.kZ=a=>{var b=a.C;const c=olympe.dc.$a();for(const d of b.ng()){b=d.tag();const e=d.Se();if(e&&!c.pe(e,olympe.sc.tg)&&Un(a,b))throw Error(`You are trying to persist an instance of : ${c.name(e)} (${e}), but only instances of DataType can be persisted`);}};
1892
1892
  olympe.sc.Jn.gW=a=>{const b=a.C;olympe.dc.$a();for(const c of b.ng())if(!Un(a,c.tag()))for(const d of c.Xd().values())d instanceof olympe.dc.yf&&Vn(a,(new Map).set(d.ka(),!1))};olympe.ra.run([olympe.dc.transaction.ba.Nb],a=>{lo(lo(lo(lo(a,olympe.sc.Jn.qW,'businessDataRelations'),olympe.sc.Jn.HY,'linkBusinessContainer'),olympe.sc.Jn.WY,'noBusinessComplexProperty'),olympe.sc.Jn.gW,'avoidComplexPropertyPersistence')});olympe.sc.Vy=class extends olympe.dm.BrickMetadata{Ii(){return olympe.sc.mf.dj.it}};olympe.sc.Vy.U=olympe.dc.Ja.C('01645fe6873aeea59e64',olympe.sc.Vy);olympe.sc.Vy.C=olympe.sc.Vy.U.qb('017ed8ac775f48d4d589');olympe.sc.NG=class extends olympe.dm.$e{Ii(){return olympe.sc.mf.dj.it}};olympe.sc.NG.U=olympe.dc.Ja.C('0163a68ce44f3d1fa95d',olympe.sc.NG);olympe.sc.gt=class extends olympe.dm.BrickMetadata{};olympe.sc.gt.U=olympe.dc.Ja.C('016324fde11a836f77d3',olympe.sc.gt);olympe.sc.gt.C=olympe.sc.tg.U.qb('016324fde11a836088d3');olympe.sc.gt.U.C=(a,b)=>fo(a,null!=b?b:'New config type',olympe.sc.gt).ka();olympe.sc.W_=class{};olympe.sc.az=class extends olympe.dm.BrickMetadata{Ii(){return olympe.sc.mf.dj.it}};olympe.sc.az.U=olympe.dc.Ja.C('017dc8d6c8fd8c8bd2ff',olympe.sc.az);olympe.sc.az.U.C=(a,b)=>fo(a,null!=b?b:'New data connector',olympe.sc.az,olympe.dm.DataSource).ka();function $p(a,b){return`delegated^${olympe.dc.Va(a)}^${olympe.dc.Va(b)}`}olympe.sc.jg=class extends olympe.sc.Runnable{Ka(){return this.uc(olympe.sc.jg.O,olympe.sc.Runnable)}Oa(){return this.uc(olympe.sc.jg.C,olympe.dm.Property)}};olympe.sc.jg.U=ji(olympe.dc.Ja.C('016c2d996d9ca27fa9d8',olympe.sc.jg));olympe.sc.jg.O=olympe.sc.jg.U.qb('016c3cb7742ec9309e0b');olympe.sc.jg.C=olympe.sc.jg.U.qb('016c42d3454636f90533');olympe.sc.jg.prototype.Ka.K=new olympe.j.J(()=>olympe.dc.Kb,[]);
1893
1893
  olympe.sc.jg.prototype.Oa.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.wH=class extends olympe.dm.$e{Ii(){return olympe.sc.mf.dj.it}};olympe.sc.wH.U=olympe.dc.Ja.C('017a7a9ff057958e5678',olympe.sc.wH);olympe.sc.Tv=class extends olympe.dm.Enum{static create(a,b,c,d,e){const f=olympe.dc.$a();e=void 0!==e?e:f.rc(b)&&f.ng(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.Tv.create=olympe.sc.Tv.create;olympe.sc.Tv.U=olympe.dc.Ja.C('016cdd861b32d56c8208',olympe.sc.Tv);olympe.sc.xK=class extends olympe.dm.$e{Ii(){return olympe.sc.mf.dj.WD}};olympe.sc.xK.U=olympe.dc.Ja.C('01644b6d4543b344b857',olympe.sc.xK);olympe.sc.yK=class extends olympe.dc.CloudObject{};olympe.sc.yK.U=olympe.dc.Ja.C('0162f672366be5ca7a86',olympe.sc.yK);const sq={qH:30};olympe.sc.Mf=class extends olympe.dc.sources.Mf{D(a){return a instanceof olympe.sc.logic.Error?$e(sq.qH,{c:a.kx(),m:a.message,s:a.Ek()}):super.D(a)}C(a){return(null==a?void 0:a.t)===sq.qH?(a=a.v,yp(a.m,a.c,a.s)):super.C(a)}R(a){super.R(a);if(this.db.model(a)===olympe.sc.zi.U.ka()){const b=olympe.sc.zi.C;this.O.get(a).r.push({r:b.ka(),o:a,d:this.db.Zd(a,b)})}return a}};function tq(a,b,c,d){const e=$p(a,c);olympe.j.Xa([d],f=>{b.set(e,f)});olympe.j.zb().We(()=>{b.remove(e)})}olympe.sc.Jr=class extends olympe.sc.jg{};olympe.sc.Jr.U=olympe.dc.Ja.C('016d3f37610ae4fc3962',olympe.sc.Jr);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=co(a);a.T=!0;var b=olympe.sc.Jn.kZ;let c;(null==(c=olympe.ra.getParameter(olympe.dc.transaction.Config.wC))?0:c.includes('persistenceBusinessDataOnly'))||a.W.push(b);this.C=a;this.D=[];this.source=null}static from(a){const b=olympe.sc.Db.C.TRANSACTION;return a.has(b,!0)?a.get(b,!0):new olympe.sc.Vc}static process(a,b){return a.has(olympe.sc.Db.C.TRANSACTION,!0)?Promise.resolve(!1):b.Fd().then(()=>!0)}ja(){return this.C.ja()}create(a,b=new Map,c=this.source,d){c=
1894
- 'string'===typeof c?c:olympe.dc.Tj().fromModel(a);a=this.C.create(a,d).re(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}CP(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.Pi.set(olympe.dc.Va(c),b);return this}delete(a){this.C.delete(a);return this}Pb(a,b,c){this.C.Pb(a,b,c);return this}Xf(a,b,c){this.C.Xf(a,b,c);return this}sE(a,b){this.C.sE(a,b);return this}persist(a,b=!0){this.C.persist(a,b);return this}jZ(a,b=!0){olympe.fb.tb('dc').warn('Transaction#persistInstance() has been deprecated. Please use Transaction#persist() instead.');
1894
+ 'string'===typeof c?c:olympe.dc.Tj().fromModel(a);a=this.C.create(a,d).re(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}CP(a,b){a=this.C.update(a);for(const [c,d]of b)b=d,a.Pi.set(olympe.dc.Va(c),b);return this}delete(a){this.C.delete(a);return this}Pb(a,b,c){this.C.Pb(a,b,c);return this}Yf(a,b,c){this.C.Yf(a,b,c);return this}sE(a,b){this.C.sE(a,b);return this}persist(a,b=!0){this.C.persist(a,b);return this}jZ(a,b=!0){olympe.fb.tb('dc').warn('Transaction#persistInstance() has been deprecated. Please use Transaction#persist() instead.');
1895
1895
  return this.persist(a,b)}re(a){this.source=a;return this}model(a){return this.C.model(a)}merge(a){this.C.Bd(a.C);return this}iE(a){this.C.iE(a);return this}Fd(){return new Promise((a,b)=>{this.C.Fd((c,d)=>{c?a(new olympe.sc.Gw(this.D)):b(d)})})}tE(){return new Promise((a,b)=>{this.C.tE((c,d)=>{c?a(new olympe.sc.Gw(this.D)):b(d)})})}};olympe.sc.Vc.prototype.executeAsLarge=olympe.sc.Vc.prototype.tE;olympe.sc.Vc.prototype.execute=olympe.sc.Vc.prototype.Fd;olympe.sc.Vc.prototype.afterExecution=olympe.sc.Vc.prototype.iE;
1896
- 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.re;olympe.sc.Vc.prototype.persistInstance=olympe.sc.Vc.prototype.jZ;olympe.sc.Vc.prototype.persist=olympe.sc.Vc.prototype.persist;olympe.sc.Vc.prototype.deleteAllRelations=olympe.sc.Vc.prototype.sE;olympe.sc.Vc.prototype.deleteRelation=olympe.sc.Vc.prototype.Xf;olympe.sc.Vc.prototype.createRelation=olympe.sc.Vc.prototype.Pb;
1896
+ 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.re;olympe.sc.Vc.prototype.persistInstance=olympe.sc.Vc.prototype.jZ;olympe.sc.Vc.prototype.persist=olympe.sc.Vc.prototype.persist;olympe.sc.Vc.prototype.deleteAllRelations=olympe.sc.Vc.prototype.sE;olympe.sc.Vc.prototype.deleteRelation=olympe.sc.Vc.prototype.Yf;olympe.sc.Vc.prototype.createRelation=olympe.sc.Vc.prototype.Pb;
1897
1897
  olympe.sc.Vc.prototype['delete']=olympe.sc.Vc.prototype.delete;olympe.sc.Vc.prototype.multiUpdate=olympe.sc.Vc.prototype.CP;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.Gw=class{constructor(a){this.C=a}hX(){return this.C.map(olympe.dc.CloudObject.get)}};olympe.sc.Gw.prototype.getCreatedObjects=olympe.sc.Gw.prototype.hX;olympe.Bf={};olympe.Bf.cG=class{run(){}};function uq(a,b='default'){return a.C===b}
1898
1898
  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)}Tq(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),
1899
- this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Bf.Tq=function(a,b,c='default'){const d=a.tb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.Bf.Config.jk+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.Zf(olympe.Bf.ba.Nb).bf(c,[b],(e,f)=>f.Tq(e,c,b),e=>uq(e,c),'olympe.hc.registerApp')};olympe.Bf.ba={Nb:'hc.Manager',Wb:'hc.Logger'};olympe.Bf.Config={jk:'hc.app',PH:'hc.globalToken'};
1899
+ this.D.run()):this.V.error('No app registered under name: '+this.C)}};olympe.Bf.Tq=function(a,b,c='default'){const d=a.tb();c?d.debug('Pre-registering application '+b+' under name '+c+' (use '+olympe.Bf.Config.jk+'='+c+' to start it)'):d.debug('Pre-registering application '+b+' as default one');a.$f(olympe.Bf.ba.Nb).bf(c,[b],(e,f)=>f.Tq(e,c,b),e=>uq(e,c),'olympe.hc.registerApp')};olympe.Bf.ba={Nb:'hc.Manager',Wb:'hc.Logger'};olympe.Bf.Config={jk:'hc.app',PH:'hc.globalToken'};
1900
1900
  olympe.ra.bf(function(a){E(a,olympe.Bf.Config.jk,'default');E(a,olympe.Bf.Config.PH,!1);C(a,olympe.Bf.ba.Wb,[olympe.fb.ba.Nb],b=>b.Yg('hc'));C(a,olympe.Dc.ba.Ir,[new olympe.ra.xb(olympe.Bf.Config.jk)],b=>b);C(a,olympe.xa.ba.UB,[olympe.Dc.ba.Ir,new olympe.ra.xb(olympe.Bf.Config.PH)],(b,c)=>new olympe.xa.dG(c?'':b));B(a,olympe.Bf.ba.Nb,olympe.Bf.Ec,new olympe.ra.xb(olympe.Bf.Config.jk),olympe.Bf.ba.Wb)},'olympe.hc');olympe.ra.run([olympe.Bf.ba.Nb],a=>a.run(),'olympe.hc');olympe.sc.qd={};function vq(a){if(a.Fa)return a.V.debug('Sending getContext request'),Uk(a.Oa).then(()=>{a.V.debug('synchronisation request successful');var f=a.C;dq=null;bq=f}).catch(f=>{a.V.error('failed to synchronise (authenticated) with server: '+f.message)});const b=vp(a.D);!b&&mn();a.V.debug((b?'PULLING':'SUBSCRIBING')+' application '+a.C);const c=a.D.ve(),d=new Promise((f,g)=>{const h=olympe.dc.$a(),l=new olympe.j.fe('Primordial Subscription Context',c);Hk(l,a.C,m=>{m=h.Ku(m)?m:h.model(m);return null!==m&&
1901
1901
  h.pe(m,olympe.sc.gt)},{$g:b?olympe.dc.nb.Kf.Zp:olympe.dc.nb.Kf.mm,JB:!0,yP:!0}).subscribe(rxjs.Subscriber.create(c.ue(()=>{h.pe(a.C,olympe.sc.Fb.Gg)?(a.Ka.$(a.C,b),f()):be(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.Xa([a.T.Hk()],g=>{olympe.dc.nb.xl(g,olympe.dm.User,olympe.dc.vc.SERVER).observe(c,
1902
1902
  {$g:olympe.dc.nb.Kf.Pz,vA:'__code-as-data__'}).subscribe(()=>f())})});return Promise.all([d,e]).then(()=>{if(a.Ha)return wq(a);wq(a).then(()=>{})})}
@@ -1907,14 +1907,14 @@ olympe.sc.qd.Er=class{constructor(a,b,c,d,e,f,g,h,l,m){this.V=a;this.T=b;this.O=
1907
1907
  e=>{switch(e){case b:case c:this.V.debug('Server session opened or working offline, start the application');a||(a=!0,this.fa(),vq(this).then(olympe.j.zb().ue(()=>xq(this))));break;case d:this.V.debug('Impossible to open a connection to the orchestrator and offline mode is disabled.')}})}fa(){}ca(){this.V.info(`Application ${olympe.dc.$a().name(this.C)} (${this.C}) started`);var a=olympe.dc.sources.Nj();a.ob=!0;a.$+=0;a.Zb.next(0<a.$);0===a.$&&a.ca&&a.ob&&(a.V.debug(`Cache: set code-as-data version in local storage: ${a.version}`),
1908
1908
  a.Fa.set('__code-as-data-version__',a.version),a.Ka||(a.ca=!1))}};olympe.sc.qd.Er.C='app_instance';olympe.sc.qd.Er.Aa=[olympe.Bf.cG];olympe.sc.qd.EU=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(){Bd().catch(()=>this.V.error('Error while starting the RuntimeHTTPService'));this.V.debug('Started RuntimeHTTPService')}};function zq(a){var b=olympe.dm.DataSource.SERVER;const c=olympe.dc.nb.from(a).kc(olympe.sc.Fb.Gg.C).kc(olympe.dm.ri.O.ie()).kc(olympe.dm.ri.C).tf();a=olympe.dc.nb.from(a).kc(olympe.sc.Fb.Gg.C).kc(olympe.dm.hd.O).tf();return c.concat(a).has(b)}
1909
1909
  olympe.sc.qd.dA=class extends olympe.dc.sources.dA{W(a){return this.db.pe(a,olympe.sc.tg)}$(a,b){if(!this.R){super.init();var c=olympe.dc.Yh.from(a).kc(olympe.sc.Fb.Gg.C).tf();if(!(c instanceof olympe.dm.hd))throw Error(`Impossible to initialize the source solver for the application ${a}: no project is linked to it`);b=b?olympe.dc.nb.Kf.Zp:olympe.dc.nb.Kf.mm;cn(this,c,b);c=new olympe.j.fe('deployed data sources');olympe.dc.nb.from(a).kc(olympe.sc.Fb.Gg.Fa).observe(c,{$g:b}).subscribe(d=>{const e=
1910
- new olympe.dc.Vc;d.xu().forEach(f=>{e.Pb(olympe.dm.DataSource.Ix,this.C,f)});d.Fu().forEach(f=>{e.Xf(olympe.dm.DataSource.Ix,this.C,f)});e.Fd()})}}};function Aq(a){a.C||(a.C=setInterval(()=>{a.flush().catch(()=>{})},a.ca),'function'===typeof a.C.C&&a.C.C())}function Bq(a,b){return q(function*(){var c=fd(Ee(a.W,olympe.X.hf.rH),olympe.wa.Nc.Gj.po,JSON.stringify(b),olympe.wa.Nc.ResponseType.Cw);const d=re(a.T);gd(c,{[olympe.wa.Nc.Headers.Ov]:olympe.wa.Nc.pC.JSON,[olympe.wa.Nc.Headers.YB]:d.ei()});c=yield xl(a.$,c);a.V.trace('[Event Monitor] Response:',c)})}
1910
+ new olympe.dc.Vc;d.xu().forEach(f=>{e.Pb(olympe.dm.DataSource.Ix,this.C,f)});d.Fu().forEach(f=>{e.Yf(olympe.dm.DataSource.Ix,this.C,f)});e.Fd()})}}};function Aq(a){a.C||(a.C=setInterval(()=>{a.flush().catch(()=>{})},a.ca),'function'===typeof a.C.C&&a.C.C())}function Bq(a,b){return q(function*(){var c=fd(Ee(a.W,olympe.X.hf.rH),olympe.wa.Nc.Gj.po,JSON.stringify(b),olympe.wa.Nc.ResponseType.Cw);const d=re(a.T);gd(c,{[olympe.wa.Nc.Headers.Ov]:olympe.wa.Nc.pC.JSON,[olympe.wa.Nc.Headers.YB]:d.ei()});c=yield xl(a.$,c);a.V.trace('[Event Monitor] Response:',c)})}
1911
1911
  olympe.sc.CR=class{constructor(a,b,c,d,e,f,g,h){this.V=a;this.$=b;this.T=c;this.W=d;this.R=e;this.D=f;this.ca='number'===typeof g?Math.max(1E3,g):36E5;this.host=h;this.O=new Map;this.C=null;this.D&&Aq(this)}enable(){this.D||(this.D=!0,Aq(this))}disable(){this.D=!1;this.C&&(clearInterval(this.C),this.C=null)}isEnabled(){return this.D}track(a,b){this.V.trace('[Event Monitor] tracking',a,b,this.D);this.D&&(a=`${a}||${b}`,b=this.O.get(a)||0,this.O.set(a,b+1))}flush(){const a=this;return q(function*(){if(0!==
1912
1912
  a.O.size){a.V.debug('[Event Monitor] flushing');var b=(new Date).toISOString(),c=[],d=olympe.dc.$a().name(a.R);for(const [e,f]of a.O.entries()){const [g,h]=e.split('||');c.push({host:a.host,serviceAppName:d,eventType:g,eventName:h,count:f,timestamp:b})}try{yield Bq(a,c),a.V.debug('[Event Monitor] flush done'),a.O.clear()}catch(e){a.V.warn('[EventMonitor] flush failed:',(null==e?void 0:e.message)||e)}}})}destroy(){this.C&&(clearInterval(this.C),this.C=null);this.O.clear()}};olympe.sc.qd.ba={bj:'sc.runtime.Main',nl:'sc.runtime.SourceSolver',Qt:'sc.runtime.appConfig',xL:'sc.runtime.runtimeHTTPServiceConfig',wL:'sc.runtime.RuntimeHTTPService',MK:'sc.runtime.OfflineAppConfig',sH:'sc.runtime.EventMonitor'};olympe.sc.qd.Config={aI:'app.httpManifestPath',kK:'app.manifest.common',gK:'sc.loadBusinessContainer',tH:'eventMonitor.enabled',uH:'eventMonitor.flushFrequency'};
1913
1913
  olympe.ra.bf(function(a){E(a,olympe.sc.qd.Config.aI,'/runtime/manifest');E(a,olympe.sc.qd.Config.kK,null);E(a,olympe.sc.qd.Config.gK,!1);E(a,olympe.sc.qd.Config.tH,!0);E(a,olympe.sc.qd.Config.uH,36E5);C(a,olympe.Dc.ba.Ir,[new olympe.ra.xb(olympe.Bf.Config.jk),new olympe.ra.xb(olympe.sc.Config.jk)],(b,c)=>`${b}${c?'-'+c:''}`);C(a,olympe.sc.qd.ba.MK,[new olympe.ra.xb(olympe.sc.Config.jk),new olympe.ra.xb(olympe.wa.Config.Gz),new olympe.ra.xb(olympe.wa.Config.rD)],(b,c,d)=>{let e;const f=null!=(e=a.getParameter(`offline.${b}.enabled`))?
1914
1914
  e:c;let g;b=null!=(g=a.getParameter(`offline.${b}.autoBackOnline`))?g:d;return new Map([['offlineEnabled',f],['offlineAutoBackOnline',!f||b]])});Ra(a,olympe.wa.ba.Fz,olympe.sc.qd.ba.MK);B(a,olympe.sc.qd.ba.nl,olympe.sc.qd.dA,olympe.dc.ba.jt,new olympe.ra.xb(olympe.dc.Config.Fr),new olympe.ra.xb(olympe.dc.Config.uC));Ra(a,olympe.dc.sources.ba.nl,olympe.sc.qd.ba.nl);C(a,olympe.sc.qd.ba.Qt,[new olympe.ra.xb(olympe.sc.Config.jk),new olympe.ra.xb(olympe.dc.Config.Vt),new olympe.ra.xb(olympe.sc.Config.$G),
1915
1915
  new olympe.ra.xb(olympe.sc.Config.VF),new olympe.ra.xb(olympe.sc.qd.Config.gK)],(b,c,d,e,f)=>new Map([['appTag',b],['getContextMode',c],['debuggerName',d],['autostartProfiler',e],['requireBusinessContainer',f]]));B(a,olympe.sc.qd.ba.bj,olympe.sc.qd.Er,olympe.sc.ba.Wb,olympe.xa.ba.Nb,olympe.X.ba.km,olympe.dc.query.ba.uw,olympe.host.ba.Cm,olympe.sc.ba.ww,olympe.sc.qd.ba.nl,olympe.la.ba.qo,olympe.sc.qd.ba.Qt,olympe.sc.qd.ba.wL);C(a,olympe.sc.qd.ba.xL,[new olympe.ra.xb(olympe.sc.qd.Config.aI),new olympe.ra.xb(olympe.sc.qd.Config.kK)],
1916
1916
  (b,c)=>new Map([['httpManifestPath',b],['manifestCommon',c]]));B(a,olympe.sc.qd.ba.sH,olympe.sc.CR,olympe.sc.ba.Wb,olympe.dc.sources.ba.qz,olympe.xa.ba.Nb,olympe.X.ba.pz,new olympe.ra.xb(olympe.sc.Config.jk),new olympe.ra.xb(olympe.sc.qd.Config.tH),new olympe.ra.xb(olympe.sc.qd.Config.uH),new olympe.ra.xb(olympe.X.Config.HG));B(a,olympe.sc.qd.ba.wL,olympe.sc.qd.EU,olympe.sc.ba.Wb,olympe.wa.ba.$D,olympe.sc.ba.ww,olympe.sc.qd.ba.xL);olympe.Bf.Tq(a,olympe.sc.qd.ba.bj,'sc.runtime');olympe.Bf.Tq(a,olympe.sc.qd.ba.bj,
1917
- 'sc.headless');olympe.Bf.Tq(a,olympe.sc.qd.ba.bj)},'olympe.sc.runtime');olympe.ra.run([olympe.sc.qd.ba.sH],a=>{olympe.sc.qd.IA=()=>a});olympe.sc.ui={};olympe.sc.ui.m4=function(a){return a instanceof olympe.sc.ui.$d};function Cq(a){const b=olympe.dc.$a(),c=[a.ka()].concat(b.sq(a,olympe.dm.hd.C));return b.ng(olympe.sc.Jg).filter(d=>c.includes(b.Zd(d,olympe.dm.hd.T.ie()))).map(d=>olympe.dc.CloudObject.get(d))}function Dq(a){return(new olympe.dc.Kb(olympe.sc.Jg)).transform(olympe.dc.CloudObject.instancesRel).transform(new olympe.dc.Qa.Qf(new olympe.dc.za.Ct([olympe.dm.hd.T,new olympe.dc.Qa.Ij(olympe.dm.hd.Ha,olympe.dc.Gb.ORIGIN,0)],[olympe.dc.Gb.ORIGIN,olympe.dc.Gb.ORIGIN],a)))}
1917
+ 'sc.headless');olympe.Bf.Tq(a,olympe.sc.qd.ba.bj)},'olympe.sc.runtime');olympe.ra.run([olympe.sc.qd.ba.sH],a=>{olympe.sc.qd.IA=()=>a});olympe.sc.ui={};olympe.sc.ui.m4=function(a){return a instanceof olympe.sc.ui.$d};function Cq(a){const b=olympe.dc.$a(),c=[a.ka()].concat(b.sq(a,olympe.dm.hd.C));return b.ng(olympe.sc.Jg).filter(d=>c.includes(b.Zd(d,olympe.dm.hd.T.ie()))).map(d=>olympe.dc.CloudObject.get(d))}function Dq(a){return(new olympe.dc.Kb(olympe.sc.Jg)).transform(olympe.dc.CloudObject.instancesRel).transform(new olympe.dc.Qa.Rf(new olympe.dc.za.Ct([olympe.dm.hd.T,new olympe.dc.Qa.Ij(olympe.dm.hd.Ha,olympe.dc.Gb.ORIGIN,0)],[olympe.dc.Gb.ORIGIN,olympe.dc.Gb.ORIGIN],a)))}
1918
1918
  function Eq(a,b=!1){const c=new olympe.j.Map,d=e=>{let f,g;const h=olympe.j.Ya(olympe.j.kb);e.es(l=>h.update(olympe.j.mc(l)));olympe.j.Xa([e.Gi(),e.Il(),e.Hi(),e.vx(),h],(l,m,n,p,r)=>{const t=l+':'+m+':'+n;var u=c.Oj(t);const v=u?u.ZA():Object.create(null);u=u?u.ja():null;const w=f?c.Oj(f):null;p=p.valueOf().replace(/^font\//,'');g&&g!==p&&delete v[g];if(w&&t!==f){const x=w.ZA();delete x[g];0===Object.keys(x).length?c.remove(f):c.set(f,new olympe.ui.tt(w.BE(),w.XA(),w.KE(),x,w.ja()))}g=p;f=t;v[p]=
1919
1919
  r.valueOf();c.set(t,new olympe.ui.tt(l.valueOf(),m.valueOf(),n.valueOf(),v,u))});if(!b)olympe.j.zb().onDestroy(()=>{f&&c.remove(f)})};b?Cq(a).forEach(d):Dq(a).forEach(d);return c}olympe.sc.ui.W0=class{};function Fq(a,b=!0){const c=d=>{d=a.db.Zd(d,olympe.sc.ui.Kg.propertyRel.ie());return a.db.tc(d,olympe.sc.ll.C)};return[a.tag].concat(a.db.px(a,olympe.sc.ui.Renderable)).reduce((d,e)=>{e=a.db.uc(e,olympe.dc.CloudObject.propertyRel);b&&e.sort((f,g)=>c(f)-c(g));return d.concat(e)},[])}olympe.sc.ui.Jj=class extends olympe.sc.hc{C(){const a=olympe.dc.$a().px(this,olympe.sc.ui.Renderable).length;return(new olympe.dc.Wp(this.tag)).AN(a-1).kc(olympe.dc.CloudObject.propertyRel).nk()}Ii(){return olympe.sc.mf.dj.WD}R(){return null}};
1920
1920
  olympe.sc.ui.Jj.U=olympe.dc.Ja.C('01612df1f810c91e8997',olympe.sc.ui.Jj);olympe.sc.ui.Jj.$=olympe.sc.ui.Jj.U.qb('016951f802614c4350bf');Y(olympe.dm.Property.U,olympe.sc.ui.Jj.$);olympe.sc.ui.Jj.U.C=(a,b)=>Z(fo(a,b||'New Abstract Visual Component',olympe.sc.ui.Jj,olympe.sc.ui.ic),olympe.dc.CloudObject.uY,!0).ka();olympe.sc.ui.Jj.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.Uy=class extends olympe.sc.ui.Jj{};olympe.sc.ui.Uy.U=olympe.dc.Ja.C('017a8a97979d7c51ab6a',olympe.sc.ui.Uy);olympe.sc.ui.Uy.U.C=function(a,b){return fo(a,b||'New Coded Visual Component',olympe.sc.ui.Uy,olympe.sc.ui.ic).ka()};function Gq(a){return(new olympe.dc.Wp(a,olympe.sc.ui.ic)).kc(olympe.sc.hc.O).pe([olympe.sc.ui.ic]).zv(olympe.sc.ui.Renderable.qa).nk()}function Hq(a,b,c,d,e){const f=olympe.j.aa,g=olympe.j.ia,h=olympe.sc.ui.$d.Ha,l=olympe.sc.ui.$d.Fa,m=Iq(a,b,e);a=c.Ea(h,b,g,g.pb);b=c.Ea(l,b,g,g.pb);return new olympe.j.ga(olympe.j.Za(a,()=>tc(m.oa(),d.oa()),()=>d.oa(),f),olympe.j.Za(b,()=>tc(m.sa(),d.sa()),()=>d.sa(),f))}
@@ -1926,14 +1926,14 @@ olympe.sc.ui.$d=class extends olympe.sc.ui.Jj{ca(){return this.TA(olympe.sc.ui.$
1926
1926
  olympe.sc.ui.$d.Fa=olympe.sc.ui.$d.U.ea('016652f9cd0b1e216e6b');olympe.sc.ui.$d.Eb=olympe.sc.ui.$d.U.ea('01665907468d5e684177');olympe.sc.ui.$d.yb=olympe.sc.ui.$d.U.ea('016e7ee3fd5998d599ce');olympe.sc.ui.$d.xc=olympe.sc.ui.$d.U.ea('016e7ee3fd59d238eec0');olympe.sc.ui.$d.U.C=function(a,b,c,d){b=b||'Group';d=d||fo(a,b,olympe.sc.ui.$d,olympe.sc.ui.ic);Z(d,olympe.dc.vi.zj+olympe.dc.CloudObject.nameProp.ka(),b);a=a.create(olympe.sc.ui.Lb.Ze,c);Z(d,olympe.sc.ui.$d.C.ka(),new olympe.dc.yf(a));return d.ka()};
1927
1927
  olympe.sc.ui.$d.prototype.ca.K=new olympe.j.J(()=>olympe.sc.ui.vr,[]);olympe.sc.ui.$d.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Ze,[]);olympe.sc.ui.aA=class extends olympe.sc.ui.$d{};olympe.sc.ui.aA.U=olympe.dc.Ja.C('01612df349e137bbb30b',olympe.sc.ui.aA);olympe.sc.ui.aA.U.C=function(a,b,c){b=b||'New Screen';const d=fo(a,b,olympe.sc.ui.aA,olympe.sc.ui.Screen);olympe.dc.CloudObject.Af(a,olympe.sc.ui.$d,b,c,d);return d.ka()};olympe.sc.ui.nA=class extends olympe.sc.ui.$d{};olympe.sc.ui.nA.U=olympe.dc.Ja.C('0166446c1f124f078a5f',olympe.sc.ui.nA);olympe.sc.ui.nA.U.C=function(a,b,c){b=b||'New Visual Component';c=fo(a,b,olympe.sc.ui.nA,c||olympe.sc.ui.ic);olympe.dc.CloudObject.Af(a,olympe.sc.ui.$d,b,void 0,c);Z(c,olympe.dc.vi.zj+olympe.sc.ui.Renderable.C.ka(),600);Z(c,olympe.dc.vi.zj+olympe.sc.ui.Renderable.D.ka(),300);return c.ka()};const Lq=new Map,Mq=new Set([]);function Nq(a){const b=olympe.sc.logic.kd,c=olympe.j.zb(),d=a.ka(),e=Object.create(null),f=Object.create(null);for(const [h,l]of Lq)f[h]=l,Lq.delete(h);const g=pj(a.db,d,b.Ts.ie(),c.ue((h,l)=>{h?(h=a.db.Zd(l,b.yy),void 0!==f[h]&&(e[l]=h,f[h].enable())):(h=e[l],void 0!==h&&(f[h].disable(),delete e[l]))}));c.onDestroy(()=>{a.db.D(d,b.Ts.ie(),g)})}function Oq(a,b,c,d,e){a=new Pq(c,a,b);void 0!==e?Qq(a,d,e):Rq(a,d);Lq.set(olympe.dc.Va(c),a)}
1928
1928
  function Sq(a,b){const c=`finalThemeClass-${a.tag}`;let d;const e=f=>{d&&d();const g=Tq(f,a.Ce(),'');let h=!1;d=pp(b,g,l=>{h=!0;b.set(c,l?f:'default')});h||b.set(c,'default');olympe.j.zb().onDestroy(()=>{d&&d()})};b.set(c,'default');pp(b,olympe.sc.ui.Renderable.Eb.ka(),f=>e(f))}function Uq(a,b){olympe.j.Xa([a.oa()],c=>{b.set(olympe.sc.ui.Renderable.C,c.valueOf())});olympe.j.Xa([a.sa()],c=>{b.set(olympe.sc.ui.Renderable.D,c.valueOf())})}
1929
- olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.fb.tb('sc'));this.yb=!!olympe.ra.getParameter(olympe.sc.Config.xC)}Da(){return this.Zf()instanceof olympe.sc.ui.$d?[this.Ce()]:[]}$(){const a=olympe.sc.Cp.C.hS,b=this.db,c=new Map,d=this.Zf();for(const e of Fq(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.Db.C.Bp,e=olympe.sc.Db.C.Fp,f=this.Zf().xq(),g=olympe.sc.ui.Renderable.prototype.D!==this.D;!f&&super.update(a,b,c);c=a.get(e);c||(c=
1930
- a.state.ve().run(()=>this.D(a)),a.set(e,c));const h=f&&!g?this.render(a,b):c.an();if(!g&&(f||a.state.id.startsWith('_'))){const l=pp(a,d,m=>{void 0!==h?null!==h&&a.set('_off_container',this.updateParent(m,h)):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.Zf();if(b.xq()){const c=olympe.j.ia,d=olympe.j.kb;b=new olympe.ui.F.Ve(this.tag,this.na(a));
1931
- b.rd(this.Ea(olympe.sc.ui.ic.Fa,a,c,c.pb));b.Fs(this.Ea(olympe.sc.ui.Renderable.Oa,a,d));b.Oi(e=>{a.iQ(e)})}else b=b.D(a,this),this.C(b,a);return b}Xd(){return Fq(this.Zf())}draw(a,b){super.onUpdate(a,[],[]);a=document.createElement('p');a.innerHTML=`No code found for:<br/>${this.Se().name()}<br/>(${this.Ce()})`;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)';
1929
+ olympe.sc.ui.Renderable=class extends olympe.sc.Runnable{constructor(a,b){super(a,b,olympe.fb.tb('sc'));this.yb=!!olympe.ra.getParameter(olympe.sc.Config.xC)}Da(){return this.$f()instanceof olympe.sc.ui.$d?[this.Ce()]:[]}$(){const a=olympe.sc.Cp.C.hS,b=this.db,c=new Map,d=this.$f();for(const e of Fq(d,!1))c.set(a+b.name(e),e);return c}update(a,b,c){const d=olympe.sc.Db.C.Bp,e=olympe.sc.Db.C.Fp,f=this.$f().xq(),g=olympe.sc.ui.Renderable.prototype.D!==this.D;!f&&super.update(a,b,c);c=a.get(e);c||(c=
1930
+ a.state.ve().run(()=>this.D(a)),a.set(e,c));const h=f&&!g?this.render(a,b):c.an();if(!g&&(f||a.state.id.startsWith('_'))){const l=pp(a,d,m=>{void 0!==h?null!==h&&a.set('_off_container',this.updateParent(m,h)):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.$f();if(b.xq()){const c=olympe.j.ia,d=olympe.j.kb;b=new olympe.ui.F.Ve(this.tag,this.na(a));
1931
+ b.rd(this.Ea(olympe.sc.ui.ic.Fa,a,c,c.pb));b.Fs(this.Ea(olympe.sc.ui.Renderable.Oa,a,d));b.Oi(e=>{a.iQ(e)})}else b=b.D(a,this),this.C(b,a);return b}Xd(){return Fq(this.$f())}draw(a,b){super.onUpdate(a,[],[]);a=document.createElement('p');a.innerHTML=`No code found for:<br/>${this.Se().name()}<br/>(${this.Ce()})`;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)';
1932
1932
  a.style['font-family']='Roboto';b.appendChild(a)}C(a,b){a.Ma(this.Ea(olympe.sc.ui.Renderable.ca,b,olympe.j.Color,Hc()));Nq(this)}T(){const a=[this.Gc,this.Ha,this.qa,this.fa];this.yb||a.splice(3,0,this.Oa);return a}Oa(a,b){Sq(this,a);const c=olympe.j.zb(),d=this.Ce(),e=olympe.sc.ui.Jj.$,f=this.db.px(this.Ce(),olympe.sc.ui.Renderable);f.push(d);let g=[];f.forEach(l=>{g=g.concat(this.db.uc(l,e))});let h;pp(a,`finalThemeClass-${this.tag}`,c.ue(l=>{h&&h.destroy();const m=n=>{const p=Tq(l,d,n);pp(a,p,
1933
1933
  r=>{b(n,r)})};h=new olympe.j.fe(`onFinalThemeClassKey for ${this.tag}`);h.run(()=>{for(const n of g)m(n);h.onDestroy(()=>{for(const n of g)b(n,null)})})}))}na(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.Renderable.C,a,olympe.j.aa,olympe.j.aa.ZERO,!0),this.Ea(olympe.sc.ui.Renderable.D,a,olympe.j.aa,olympe.j.aa.ZERO,!0))}kf(){return this.Ag(olympe.sc.ui.Renderable.qa)}R(){return null}};olympe.sc.ui.Renderable.prototype.getProperties=olympe.sc.ui.Renderable.prototype.Xd;let Vq=0;
1934
1934
  function Qq(a,b,c){!a.$&&a.C.Bh(!0);a.O=a.T.ue(()=>{!a.$&&a.C.Bh(!1);const d=b(()=>a.R.wp(a.W));olympe.j.zb().onDestroy(()=>{c(d);a.$||a.C.oc()||a.C.bg()||a.C.Bh(!0)})})}function Rq(a,b){null!=a.O||(a.O=a.T.ue(()=>{olympe.j.Xa([b()],c=>{a.R.set(a.W,c)});olympe.j.zb().onDestroy(()=>a.R.remove(a.W))}))}
1935
1935
  class Pq{constructor(a,b,c){++Vq;this.W=a;this.R=b;this.C=c;this.T=new olympe.j.fe('InteractionBinder context '+Vq);this.O=null;this.D=0;this.$=Mq.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=ji(olympe.dc.Ja.C('01612df219d0691f6b4d',olympe.sc.ui.Renderable));olympe.sc.ui.Renderable.Eb=olympe.sc.ui.Renderable.U.ea('0161d7ba2406f5d75a37');olympe.sc.ui.Renderable.ca=olympe.sc.ui.Renderable.U.ea('01611d9c686bbed5fdba');
1936
- olympe.sc.ui.Renderable.Oa=olympe.sc.ui.Renderable.U.ea('01611d9c686bbed5fddd');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.ea('01611d99ec0553b5926e');olympe.sc.ui.Renderable.D=olympe.sc.ui.Renderable.U.ea('01611d9a0452a179c68f');olympe.sc.ui.Renderable.qa=olympe.sc.ui.Renderable.U.ea('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.na.K=olympe.j.J.W;olympe.sc.ui.Renderable.prototype.kf.K=olympe.j.J.D;olympe.sc.ui.ic=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}ge(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.ic.R,a,olympe.j.aa,olympe.j.aa.ZERO),this.Ea(olympe.sc.ui.ic.T,a,olympe.j.aa,olympe.j.aa.ZERO))}R(a){const b=this.Zf();return b.gB()?b.UO().Vr().pe([olympe.sc.ui.ic]).zv(olympe.sc.ui.Renderable.qa).nk():a.includes(this.ka())?this.db.uc(b,olympe.dc.CloudObject.propertyRel).filter(c=>this.db.fn(this.db.Zd(c,olympe.dm.Property.typeRel),olympe.sc.ui.ic)).reduce((c,d)=>{olympe.j.Xa([this.TA(d)],
1936
+ olympe.sc.ui.Renderable.Oa=olympe.sc.ui.Renderable.U.ea('01611d9c686bbed5fddd');olympe.sc.ui.Renderable.C=olympe.sc.ui.Renderable.U.ea('01611d99ec0553b5926e');olympe.sc.ui.Renderable.D=olympe.sc.ui.Renderable.U.ea('01611d9a0452a179c68f');olympe.sc.ui.Renderable.qa=olympe.sc.ui.Renderable.U.ea('016c23bd12493a7e1b2e');olympe.sc.ui.Renderable.prototype.na.K=olympe.j.J.W;olympe.sc.ui.Renderable.prototype.kf.K=olympe.j.J.D;olympe.sc.ui.ic=class extends olympe.sc.ui.Renderable{constructor(a,b){super(a,b)}ge(a){return new olympe.j.ga(this.Ea(olympe.sc.ui.ic.R,a,olympe.j.aa,olympe.j.aa.ZERO),this.Ea(olympe.sc.ui.ic.T,a,olympe.j.aa,olympe.j.aa.ZERO))}R(a){const b=this.$f();return b.gB()?b.UO().Vr().pe([olympe.sc.ui.ic]).zv(olympe.sc.ui.Renderable.qa).nk():a.includes(this.ka())?this.db.uc(b,olympe.dc.CloudObject.propertyRel).filter(c=>this.db.fn(this.db.Zd(c,olympe.dm.Property.typeRel),olympe.sc.ui.ic)).reduce((c,d)=>{olympe.j.Xa([this.TA(d)],
1937
1937
  e=>{e=e.Se();a.includes(olympe.dc.Va(e))&&c.set(d,e)});return c},new olympe.j.Fe(olympe.dm.qm)):null}C(a,b){const c=olympe.j.Color,d=olympe.j.aa,e=olympe.j.ia,f=olympe.j.kb;a.rd(this.Ea(olympe.sc.ui.ic.Fa,b,e,e.pb));a.cd(tc(this.Ea(olympe.sc.ui.ic.og,b,d),0));a.nd(this.Ea(olympe.sc.ui.ic.en,b,c));a.Xb(this.Ea(olympe.sc.ui.ic.xf,b,d));a.Ps(this.Ea(olympe.sc.ui.ic.pY,b,d));olympe.j.Xa([this.Ea(olympe.sc.ui.ic.ii,b,f)],g=>{g=g.valueOf().split(';').filter(h=>''!==h).map(h=>h.split(':')).filter(([h,l])=>
1938
1938
  void 0!==h&&void 0!==l);for(const [h,l]of g)a.ib(h.trim(),l.trim());a.Cf()});olympe.j.Xa([this.Ea(olympe.sc.ui.ic.ed,b,e,e.pb)],g=>{a.ib('overflow',g.valueOf()?'visible':'hidden')});Oq(b,a,olympe.sc.ui.ic.OR,a.Xc.bind(a),a.Yj.bind(a));super.C(a,b)}};olympe.sc.ui.ic.U=olympe.dc.Ja.C('01664466071746f5e167',olympe.sc.ui.ic);olympe.sc.ui.ic.R=olympe.sc.ui.ic.U.ea('01611d99243ad989b91b');olympe.sc.ui.ic.T=olympe.sc.ui.ic.U.ea('01611d9962e7f4f9a26d');olympe.sc.ui.ic.Fa=olympe.sc.ui.ic.U.ea('01611d9a88f340465399');
1939
1939
  olympe.sc.ui.ic.pY=olympe.sc.ui.ic.U.ea('016b08fd79c14bad3193');olympe.sc.ui.ic.ii=olympe.sc.ui.ic.U.ea('017c5114f14f96c4f187');olympe.sc.ui.ic.ed=olympe.sc.ui.ic.U.ea('017e6d4a0974fd84338f');olympe.sc.ui.ic.og=olympe.sc.ui.ic.U.ea('0163ba941097ae1920b0');olympe.sc.ui.ic.en=olympe.sc.ui.ic.U.ea('0163ba942b6ee2bc78c0');olympe.sc.ui.ic.xf=olympe.sc.ui.ic.U.ea('0163ba9e1428240acec7');olympe.sc.ui.ic.TY=olympe.sc.ui.ic.U.ea('0162e2bd70fb607442d4');olympe.sc.ui.ic.OR=olympe.sc.ui.ic.U.ea('01619aacf66faf45a75d');
@@ -1954,8 +1954,8 @@ olympe.sc.ui.Vd.xc=olympe.sc.ui.Vd.U.ea('016422a069b9bd45e8a8');olympe.sc.ui.Vd.
1954
1954
  a.lj.bind(a),a.D.bind(a));super.C(a,b)}};olympe.sc.ui.Pe.U=olympe.dc.Ja.C('016e64ba43b2367826cd',olympe.sc.ui.Pe);olympe.sc.ui.Pe.Da=olympe.sc.ui.Pe.U.ea('0164b26aecbaa5ca5b23');olympe.sc.ui.Pe.zh=olympe.sc.ui.Pe.U.ea('0164b69dd71d223649bc');olympe.sc.ui.Pe.Gc=olympe.sc.ui.Pe.U.ea('016e64de79ddfffad3ea');olympe.sc.ui.Pe.Zs=olympe.sc.ui.Pe.U.ea('0168387e0011b88e3095');olympe.sc.ui.Pe.Zb=olympe.sc.ui.Pe.U.ea('0168387e0527edb9bd2a');olympe.sc.ui.Pe.Sc=olympe.sc.ui.Pe.U.ea('0168387e0a992ee500be');
1955
1955
  olympe.sc.ui.Pe.Li=olympe.sc.ui.Pe.U.ea('0168387e0e5bfd3e00d8');olympe.sc.ui.Pe.xg=olympe.sc.ui.Pe.U.ea('0168377a219478c7a296');olympe.sc.ui.Pe.Od=olympe.sc.ui.Pe.U.ea('0168377a5118eb32afd2');olympe.sc.ui.iw=class extends olympe.sc.ui.$d{};olympe.sc.ui.iw.U=olympe.dc.Ja.C('01634497d5e7cab7022f',olympe.sc.ui.iw);olympe.sc.ui.iw.U.C=function(a,b,c,d){b=b||'List Element';c=fo(a,{[olympe.dc.CloudObject.nameProp.ka()]:b},olympe.sc.ui.iw,olympe.sc.ui.Z.lo);olympe.dc.CloudObject.Af(a,olympe.sc.ui.$d,b,d,c);return c.ka()};olympe.sc.ui.bM=class extends olympe.sc.ui.vl{};olympe.sc.ui.bM.U=olympe.dc.Ja.C('016c8f3b84720165aac5',olympe.sc.ui.bM);function Xq(a,b){const c=new Map;a.db.uc(a,olympe.sc.ui.gf.D).forEach(d=>{var e=a.db.Zd(d,olympe.sc.ui.vh.C);d=a.db.Zd(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}
1956
1956
  olympe.sc.ui.gf=class extends olympe.dc.CloudObject{constructor(a,b,c){super(a,b);this.V=c}YA(){return this.wl(olympe.sc.ui.gf.O).tf()}KA(){return this.wl(olympe.sc.ui.gf.C).tf()}HA(){return this.uc(olympe.sc.ui.gf.R,olympe.dm.Property).be()}C(){return this.uc(olympe.sc.ui.gf.D,olympe.sc.ui.vh)}};olympe.sc.ui.gf.U=olympe.dc.Ja.C('01619a10457e749fdf59',olympe.sc.ui.gf,olympe.sc.ba.Wb);olympe.sc.ui.gf.O=olympe.sc.ui.gf.U.qb('01619a16a406bf504c9f');olympe.sc.ui.gf.C=olympe.sc.ui.gf.U.qb('01619a16a406bf504c9e');
1957
- olympe.sc.ui.gf.R=olympe.sc.ui.gf.U.qb('01619a16a406bf504c90');olympe.sc.ui.gf.D=olympe.sc.ui.gf.U.qb('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.gf.R);olympe.sc.ui.gf.prototype.YA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gf.prototype.KA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gf.prototype.HA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.gf.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.iA=class extends olympe.sc.Fb.bt{constructor(a,b,c,d,e,f){super(a,b,c);this.D=d;this.C=e;this.Ka=f}qe(a){this.render(a);super.qe(a);const b=Le(this.C,olympe.X.Fj.Vf,c=>{c.c===olympe.X.kw.xV&&(0<Ik(olympe.dc.nb.from(olympe.sc.ui.bi.Ha).kc(olympe.sc.logic.kd.yy.ie()),[olympe.sc.logic.kd.Ts],this.Ce()).tf().size()?(this.V.debug('A custom listener has been set for the onUpgradeDone event.'),a.wp(olympe.sc.ui.bi.Ha)):(new olympe.sc.ui.Z.GV(this.Ka)).cl(!0))});a.onDestroy(()=>Te(this.C,olympe.X.Fj.Vf,
1958
- b))}render(a){const b=this.D.lf();var c=this.Oa();const d=this.Zf();this.D.ki(d.bb());this.V.debug('Loading fonts');Eq(c,vp(a)).forEach(f=>{b.lJ(f)});this.V.debug('Apply theme');d.C().jN(a);const e=d.D();c=rp(a,e.ka());Uq(b.na(),c);c.PB(olympe.sc.Db.C.Fp).then(f=>{a.set(olympe.sc.Db.C.VB,!0);b.appendChild(f,'ui_app_screenflow')}).catch(()=>this.V.warn(`Screenflow ${e.ka()} has not been rendered.`))}};
1957
+ olympe.sc.ui.gf.R=olympe.sc.ui.gf.U.qb('01619a16a406bf504c90');olympe.sc.ui.gf.D=olympe.sc.ui.gf.U.qb('0162befc703dfd7b93b4');Y(olympe.dm.Property.U,olympe.sc.ui.gf.R);olympe.sc.ui.gf.prototype.YA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gf.prototype.KA.K=new olympe.j.J(()=>olympe.sc.ui.Screen,[]);olympe.sc.ui.gf.prototype.HA.K=new olympe.j.J(()=>olympe.dm.Property,[]);olympe.sc.ui.gf.prototype.C.K=new olympe.j.J(()=>olympe.dc.Kb,[]);olympe.sc.ui.iA=class extends olympe.sc.Fb.bt{constructor(a,b,c,d,e,f){super(a,b,c);this.D=d;this.C=e;this.Ka=f}qe(a){this.render(a);super.qe(a);const b=Le(this.C,olympe.X.Fj.Wf,c=>{c.c===olympe.X.kw.xV&&(0<Ik(olympe.dc.nb.from(olympe.sc.ui.bi.Ha).kc(olympe.sc.logic.kd.yy.ie()),[olympe.sc.logic.kd.Ts],this.Ce()).tf().size()?(this.V.debug('A custom listener has been set for the onUpgradeDone event.'),a.wp(olympe.sc.ui.bi.Ha)):(new olympe.sc.ui.Z.GV(this.Ka)).cl(!0))});a.onDestroy(()=>Te(this.C,olympe.X.Fj.Wf,
1958
+ b))}render(a){const b=this.D.lf();var c=this.Oa();const d=this.$f();this.D.ki(d.bb());this.V.debug('Loading fonts');Eq(c,vp(a)).forEach(f=>{b.lJ(f)});this.V.debug('Apply theme');d.C().jN(a);const e=d.D();c=rp(a,e.ka());Uq(b.na(),c);c.PB(olympe.sc.Db.C.Fp).then(f=>{a.set(olympe.sc.Db.C.VB,!0);b.appendChild(f,'ui_app_screenflow')}).catch(()=>this.V.warn(`Screenflow ${e.ka()} has not been rendered.`))}};
1959
1959
  olympe.sc.ui.iA.U=olympe.dc.Ja.C('0113031000000aca1101',olympe.sc.ui.iA,olympe.sc.ba.Wb,olympe.ui.ba.Nb,olympe.X.ba.Ut,olympe.host.ba.Wt);olympe.sc.ui.bi=class extends olympe.sc.Fb.Gg{Ii(){return olympe.sc.mf.dj.FL}C(){return this.Lg(olympe.sc.ui.bi.$,olympe.sc.ui.wh)}D(){const a=this.db.AA(this.tag,[olympe.sc.hc.O],b=>this.db.pe(b,olympe.sc.ui.Z.pl));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.mx().Vr().pe([olympe.sc.ui.Z.pl]).nk()}};
1960
1960
  olympe.sc.ui.bi.U=olympe.dc.Ja.C('011203100000000adef1',olympe.sc.ui.bi,olympe.ui.ba.Nb,olympe.sc.ba.Wb);olympe.sc.ui.bi.Ha=olympe.sc.Fb.Gg.U.ea('016200d21c9069cf23a3');olympe.sc.ui.bi.$=olympe.sc.ui.bi.U.qb('016200d21c9069cf23b4');
1961
1961
  olympe.sc.ui.bi.U.C=(a,b,c,d)=>{b=fo(a,b||'New UI App',olympe.sc.ui.bi,olympe.sc.ui.iA);var e=olympe.la.Zr();e=olympe.dc.CloudObject.Af(a,olympe.sc.ui.Z.pl,'UIApp Screenflow',e);a.Pb(olympe.sc.hc.O,b,e);a.Pb(olympe.dc.CloudObject.containsRel,b,e);a.Pb(olympe.sc.Fb.Gg.C,b,c);d&&a.Pb(olympe.sc.ui.bi.$,b,d);return b.ka()};olympe.sc.ui.bi.prototype.C.K=new olympe.j.J(()=>olympe.sc.ui.wh,[]);olympe.sc.ui.bi.prototype.D.K=olympe.j.J.O;olympe.sc.ui.Screen=class extends olympe.sc.ui.Renderable{T(){return[this.Ha,this.Ka,this.qa,this.Oa,this.fa]}Ka(a,b){if(a=a.Pa('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.gf.C);olympe.sc.ui.Screen.eb=Y(olympe.sc.ui.Screen.U,olympe.sc.ui.gf.O);olympe.sc.ui.Screen.Ha=olympe.sc.ui.Screen.U.ea('01648dde0de293c23f90');olympe.sc.ui.Screen.T=olympe.sc.ui.Screen.U.ea('01648dde0de252c9f851');
@@ -1992,8 +1992,8 @@ olympe.sc.ui.Z.Le.U=olympe.dc.Ja.C('0165cd420a0ddfa948a2',olympe.sc.ui.Z.Le);oly
1992
1992
  a,olympe.j.kb));b.tp(this.Ea(olympe.sc.ui.Z.Image.Ka,a,olympe.j.kb));b.Bs(new olympe.j.ga(this.Ea(olympe.sc.ui.Z.Image.Da,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.Image.Ha,a,olympe.j.aa)));b.Cs(new olympe.j.ga(this.Ea(olympe.sc.ui.Z.Image.ob,a,olympe.j.aa),this.Ea(olympe.sc.ui.Z.Image.eb,a,olympe.j.aa)));return b}};olympe.sc.ui.Z.Image.U=olympe.dc.Ja.C('0162f1bd4db6b5603fd8',olympe.sc.ui.Z.Image);olympe.sc.ui.Z.Image.yb=olympe.sc.ui.Z.Image.U.ea('01642664ca2b59d1a196');olympe.sc.ui.Z.Image.Da=olympe.sc.ui.Z.Image.U.ea('01642664d2bc3e1478f4');
1993
1993
  olympe.sc.ui.Z.Image.Ha=olympe.sc.ui.Z.Image.U.ea('01642664d44038c8eac1');olympe.sc.ui.Z.Image.ob=olympe.sc.ui.Z.Image.U.ea('016426668f80d9bf7693');olympe.sc.ui.Z.Image.eb=olympe.sc.ui.Z.Image.U.ea('016426669197f66aef82');olympe.sc.ui.Z.Image.O=olympe.sc.ui.Z.Image.U.ea('01642664d0eb249710d2');olympe.sc.ui.Z.Image.Ka=olympe.sc.ui.Z.Image.U.ea('01642664d5baa65fdfc5');
1994
1994
  olympe.sc.ui.Z.Image.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Image);Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Z.Image.Da,0);Z(a,olympe.sc.ui.Z.Image.Ha,0);Z(a,olympe.sc.ui.Z.Image.ob,0);Z(a,olympe.sc.ui.Z.Image.eb,0);Z(a,olympe.sc.ui.Z.Image.O,'center');Z(a,olympe.sc.ui.Z.Image.Ka,'contain');return a.ka()};
1995
- olympe.sc.ui.Z.Image.Mb={'01611e082c56483c8ef2':olympe.ui.ha.ef.Uf,'01611e09c8b095637f65':olympe.ui.ha.ef.lh,'01611e09e1b2c0f0cad5':olympe.ui.ha.ef.Im,'01611e09a8b328e05369':olympe.ui.ha.ef.Hm,'01611e0a13c26c6002fd':olympe.ui.ha.ef.Tb,'01611e09fac0ad53f906':olympe.ui.ha.ef.EG,'01611e0a31ba45895327':olympe.ui.ha.ef.FG,'01611e0a81e4ce36d596':olympe.ui.ha.ef.Dh,'01611e0a67b24a1c4f54':olympe.ui.ha.ef.im,'01611e0aa70621354cbb':olympe.ui.ha.ef.dt};
1996
- olympe.sc.ui.Z.Image.Zb={'01611e0bda4db5357514':olympe.ui.ha.Eh.Uf,'01611e0bf880be3d343d':olympe.ui.ha.Eh.et,'01611e0c10abf1090731':olympe.ui.ha.Eh.ft,'01611e0bbbd851a47e01':olympe.ui.ha.Eh.$s};olympe.sc.ui.Z.Image.xc='016eb13ba1388f7bdd71';olympe.sc.ui.Z.cb=class extends olympe.sc.ui.Vd{D(a){var b=olympe.sc.ui.Z.cb.Zb,c=olympe.sc.ui.Z.cb.Da;const d=olympe.sc.ui.Z.cb.Ha,e=olympe.sc.ui.Z.cb.Sc;var f=olympe.sc.ui.Z.cb.Gc;const g=olympe.sc.ui.Z.cb.Mb,h=olympe.sc.ui.Renderable.C,l=olympe.sc.ui.Renderable.D,m=olympe.j.ia.pb,n=new olympe.ui.F.cb(this.na(a));this.C(n,a);b=this.Ea(b,a,olympe.j.ia);n.jo(b);n.ji(this.Ea(e,a,olympe.j.kb));n.ce(this.Ea(d,a,olympe.j.ia));n.Id(this.Ea(c,a,olympe.j.ia));n.Ul(this.Ea(f,a,olympe.j.ia));f=this.Ea(d,a,
1995
+ olympe.sc.ui.Z.Image.Mb={'01611e082c56483c8ef2':olympe.ui.ha.ef.Vf,'01611e09c8b095637f65':olympe.ui.ha.ef.lh,'01611e09e1b2c0f0cad5':olympe.ui.ha.ef.Im,'01611e09a8b328e05369':olympe.ui.ha.ef.Hm,'01611e0a13c26c6002fd':olympe.ui.ha.ef.Tb,'01611e09fac0ad53f906':olympe.ui.ha.ef.EG,'01611e0a31ba45895327':olympe.ui.ha.ef.FG,'01611e0a81e4ce36d596':olympe.ui.ha.ef.Dh,'01611e0a67b24a1c4f54':olympe.ui.ha.ef.im,'01611e0aa70621354cbb':olympe.ui.ha.ef.dt};
1996
+ olympe.sc.ui.Z.Image.Zb={'01611e0bda4db5357514':olympe.ui.ha.Eh.Vf,'01611e0bf880be3d343d':olympe.ui.ha.Eh.et,'01611e0c10abf1090731':olympe.ui.ha.Eh.ft,'01611e0bbbd851a47e01':olympe.ui.ha.Eh.$s};olympe.sc.ui.Z.Image.xc='016eb13ba1388f7bdd71';olympe.sc.ui.Z.cb=class extends olympe.sc.ui.Vd{D(a){var b=olympe.sc.ui.Z.cb.Zb,c=olympe.sc.ui.Z.cb.Da;const d=olympe.sc.ui.Z.cb.Ha,e=olympe.sc.ui.Z.cb.Sc;var f=olympe.sc.ui.Z.cb.Gc;const g=olympe.sc.ui.Z.cb.Mb,h=olympe.sc.ui.Renderable.C,l=olympe.sc.ui.Renderable.D,m=olympe.j.ia.pb,n=new olympe.ui.F.cb(this.na(a));this.C(n,a);b=this.Ea(b,a,olympe.j.ia);n.jo(b);n.ji(this.Ea(e,a,olympe.j.kb));n.ce(this.Ea(d,a,olympe.j.ia));n.Id(this.Ea(c,a,olympe.j.ia));n.Ul(this.Ea(f,a,olympe.j.ia));f=this.Ea(d,a,
1997
1997
  olympe.j.ia,m);c=this.Ea(c,a,olympe.j.ia,m);olympe.j.Za(b,()=>{const p=this.Ea(g,a,olympe.sc.Jr);tq(p,a,e,olympe.ui.ha.zo.Nv);tq(p,a,d,!1)});olympe.j.Za(f,()=>{tq(this.Ea(g,a,olympe.sc.Jr),a,h,olympe.j.Wa([n.na().oa()],p=>p.valueOf(),Number))});olympe.j.Za(c,()=>{tq(this.Ea(g,a,olympe.sc.Jr),a,l,olympe.j.Wa([n.na().sa()],p=>p.valueOf(),Number))});up(a)&&(c=this.Ea(olympe.sc.ui.Vd.O,a,String,'%UNDEFINED%'),n.Jb(olympe.j.Wa([c],p=>olympe.sc.logic.TG.C(this)?'%UNDEFINED%'===p||''===p?'%COMPUTED VALUE%':
1998
1998
  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.Mb=olympe.sc.ui.Z.cb.U.ea('016d3f37610ae4fc3963');olympe.sc.ui.Z.cb.Zb=olympe.sc.ui.Z.cb.U.ea('016c8b3713bf8f4db860');olympe.sc.ui.Z.cb.Sc=olympe.sc.ui.Z.cb.U.ea('0170a5a1ad57c8e9545b');olympe.sc.ui.Z.cb.Ha=olympe.sc.ui.Z.cb.U.ea('016c8b3713bf8f4db861');olympe.sc.ui.Z.cb.Da=olympe.sc.ui.Z.cb.U.ea('016c8b3713bf8f4db862');olympe.sc.ui.Z.cb.Gc=olympe.sc.ui.Z.cb.U.ea('016ea1b4cb51e0229e85');
1999
1999
  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 Zq(a,b){var c=a.na(b);const d=$q(a,b),e=ar(a,b),f=new olympe.j.Fe(olympe.dc.CloudObject);olympe.j.Xa([c.sa(),d.sa(),olympe.j.rj(e.Tc(),0)],(h,l)=>{h=Math.ceil(h/l);if(Number.isFinite(h)){l=f.hj();if(h<l)for(var m=l-1;m>=h;m--)f.remove(f.Bl(m));for(m=olympe.j.Pa(e);l<h;l++)f.set('item'+l,m&&m.Al(l)||null,l)}});const g=br(a);c=new olympe.ui.F.ut(c,f,olympe.dc.CloudObject,a.ed.bind(a,d,b,g));a.C(c,b);return c}
@@ -2018,17 +2018,17 @@ b.rQ(this.Ea(olympe.sc.ui.Z.Md.xc,a,olympe.j.Color));b.oQ(this.Ea(olympe.sc.ui.Z
2018
2018
  olympe.sc.ui.Z.Md.Ka=olympe.sc.ui.Z.Md.U.ea('0163df0bca9e746a1bda');olympe.sc.ui.Z.Md.O=olympe.sc.ui.Z.Md.U.ea('01697cd892e2698db26b');olympe.sc.ui.Z.Md.Ha=olympe.sc.ui.Z.Md.U.ea('01697cd8ffd33aa56287');olympe.sc.ui.Z.Md.Da=olympe.sc.ui.Z.Md.U.ea('01697cd93f436566d0c9');olympe.sc.ui.Z.Md.Gc=olympe.sc.ui.Z.Md.U.ea('01697cd97974dfd25476');olympe.sc.ui.Z.Md.xc=olympe.sc.ui.Z.Md.U.ea('01697cd9b11eb39a003d');olympe.sc.ui.Z.Md.Mb=olympe.sc.ui.Z.Md.U.ea('01697cd9f6f7d89034ec');olympe.sc.ui.Z.Md.Zb=olympe.sc.ui.Z.Md.U.ea('016980a2557456722aae');
2019
2019
  olympe.sc.ui.Z.Md.yb=olympe.sc.ui.Z.Md.U.ea('01697cda25b97273ee84');olympe.sc.ui.Z.Md.eb=olympe.sc.ui.Z.Md.U.ea('01697cda53b82f03b323');olympe.sc.ui.Z.Rc=class extends olympe.sc.ui.Pe{D(a){const b=new olympe.ui.F.Rc(this.na(a));this.C(b,a);b.Jb(this.O(olympe.sc.ui.Vd.O,a,String,olympe.j.Wa([b.Uj()],c=>c.valueOf(),String)));return b}};olympe.sc.ui.Z.Rc.U=olympe.dc.Ja.C('01683779d3c3769a590f',olympe.sc.ui.Z.Rc);olympe.sc.ui.Z.Rc.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Rc);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Vd.O,'');return a.ka()};olympe.sc.ui.Z.Rc.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Rc,[]);olympe.sc.ui.Z.Ob=class extends olympe.sc.ui.Pe{D(a){const b=new olympe.ui.F.Ob(this.na(a));this.C(b,a);b.Jb(this.O(olympe.sc.ui.Vd.O,a,String,olympe.j.Wa([b.Uj()],c=>c.valueOf(),String)));b.In(this.Ea(olympe.sc.ui.Z.Ob.Ha,a,olympe.j.kb));b.rp(this.Ea(olympe.sc.ui.Z.Ob.Mb,a,olympe.j.ia));return b}};olympe.sc.ui.Z.Ob.U=olympe.dc.Ja.C('01626ce8543dd37b31dd',olympe.sc.ui.Z.Ob);olympe.sc.ui.Z.Ob.Ha=olympe.sc.ui.Z.Ob.U.ea('01699631db815bc2f18a');olympe.sc.ui.Z.Ob.Mb=olympe.sc.ui.Z.Ob.U.ea('016e220471bea6ac38dd');
2020
2020
  olympe.sc.ui.Z.Ob.U.C=function(a,b){a=a.create(olympe.sc.ui.Z.Ob);b&&Z(a,olympe.dc.CloudObject.nameProp,b);Z(a,olympe.sc.ui.Vd.O,'');return a.ka()};olympe.sc.ui.Z.Ob.prototype.D.K=new olympe.j.J(()=>olympe.ui.F.Ob,[]);olympe.sc.ui.Z.GV=class extends olympe.ui.F.tw{constructor(a){super();const b=new olympe.ui.F.yd(500,0);this.C.Hb(b.na());b.Xb(8);b.Pd(1,Ic('#D2D2D2'));b.Ma(Ic('#D2D2D2'));const c=new olympe.ui.F.de(void 0,0,32,32);c.Xb(8);var d=new olympe.ui.F.yd(434,8,16,16);const e=(new olympe.ui.F.cb(new olympe.j.ga(300,0))).Jb('A new version is available').sb(24).Bb(800).Id(!0).jo(!0),f=(new olympe.ui.F.cb(new olympe.j.ga(300,0))).Jb('Your application has been upgraded in the background').sb(16).Id(!0).jo(!0);
2021
- d.appendChild(e,'title',olympe.ui.ha.Cb.Tf);d.appendChild(f,'subtitle',olympe.ui.ha.Cb.Tf);c.appendChild(d,'topContent');const g=new olympe.ui.F.de(void 0,8,32,32);g.Xb(8);g.Ma(O());d=(h,l,m,n)=>{l=(new olympe.ui.F.nc(new olympe.j.ga(100,40),h)).Ma(l).lb(m).eh(new olympe.j.ga(0,0),0,0,N(),!1);n=(new olympe.ui.F.cb(new olympe.j.ga(213,0))).Jb(n).sb(12).jo(!0).Id(!0);m=new olympe.ui.F.yd(213,8,16,16);m.appendChild(l,'button',olympe.ui.ha.Cb.Tf);m.appendChild(n,'text',olympe.ui.ha.Cb.Tf);g.appendChild(m,
2021
+ d.appendChild(e,'title',olympe.ui.ha.Cb.Uf);d.appendChild(f,'subtitle',olympe.ui.ha.Cb.Uf);c.appendChild(d,'topContent');const g=new olympe.ui.F.de(void 0,8,32,32);g.Xb(8);g.Ma(O());d=(h,l,m,n)=>{l=(new olympe.ui.F.nc(new olympe.j.ga(100,40),h)).Ma(l).lb(m).eh(new olympe.j.ga(0,0),0,0,N(),!1);n=(new olympe.ui.F.cb(new olympe.j.ga(213,0))).Jb(n).sb(12).jo(!0).Id(!0);m=new olympe.ui.F.yd(213,8,16,16);m.appendChild(l,'button',olympe.ui.ha.Cb.Uf);m.appendChild(n,'text',olympe.ui.ha.Cb.Uf);g.appendChild(m,
2022
2022
  h,olympe.ui.ha.wc.Uc);return l};d('Close',Ic('#D2D2D2'),Ic('#000000'),'Ignore the new version for now and continue working on this page').Xc(()=>{this.cl(!1)});d('Refresh',Ic('#2e87ef'),Ic('#ffffff'),'Click to reload this page and start using the new version right now').Xc(()=>{this.cl(!1);a.D()});b.appendChild(c,'top',olympe.ui.ha.Cb.Tb);b.appendChild(g,'bottom',olympe.ui.ha.Cb.Tb);this.$C(N().uE(.6));this.Xb(8);qg(this);this.Td(b)}};olympe.sc.ui.Lb={};function lr(a,b,c,d,e,f,g){const h=c.ka(),l=rp(f,h);olympe.j.vs([l.va(olympe.sc.Db.C.Fp,olympe.ui.F.mb,!0)],m=>{m.bk(!0);b.appendChild(m,h+'_'+a.db.name(h),d,e);m.Ls(e);mr(a,f,l,m,g)})}function nr(a,b,c,d,e,f=olympe.j.kb.EMPTY){f!==olympe.j.kb.EMPTY&&olympe.j.Nl([f],g=>{g=g.valueOf();b.pg();d.di((h,l,m)=>{lr(a,b,h,g,m.kf(l),c,e)})});d.forEach((g,h,l)=>{const m=olympe.j.Pa(f).valueOf();lr(a,b,g,m,l.kf(h),c,e)})}
2023
2023
  function mr(a,b,c,d,e){var f=olympe.sc.ui.ic.T,g=olympe.sc.ui.Renderable.C,h=olympe.sc.ui.Renderable.D;const l=$p(a,olympe.sc.ui.ic.R);f=$p(a,f);g=$p(a,g);h=$p(a,h);const m=d.na(),n=a.C(b);a=a.D(b);b=olympe.j.Za(n,()=>e.sa(),()=>m.sa(),olympe.j.aa);const p=olympe.j.Za(a,()=>e.oa(),()=>m.oa(),olympe.j.aa),r=(t,u,v)=>{void 0===v?olympe.j.Xa([u],w=>{c.set(t,w.valueOf())}):olympe.j.Xa([u,v],(w,x)=>{x.valueOf()?c.set(t,w.valueOf()):c.remove(t)});olympe.j.zb().onDestroy(()=>c.remove(t))};d=d.ge();r(f,d.sa());
2024
- r(l,d.oa());r(g,p,a);r(h,b,n)}olympe.sc.ui.Lb.pk=class extends olympe.sc.ui.vr{As(){}D(){}C(){}};olympe.sc.ui.Lb.pk.D={$y:'distributed',Uf:'manual'};olympe.sc.ui.Lb.Ze=class extends olympe.sc.ui.vr{As(a,b){const c=olympe.j.aa,d=olympe.sc.ui.Ga.TY,e=new olympe.j.ga(this.Ea(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Ea(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0)),f=new olympe.ui.F.Ze(e);b.forEach((g,h,l)=>{const m=g.ka(),n=rp(a,m);olympe.j.vs([n.va(olympe.sc.Db.C.Fp,olympe.ui.F.mb,!0)],p=>{p.setPosition(g.ge(n));p.fh(g.Ea(d,n,c,c.ZERO));f.appendChild(p,m+'_'+this.db.name(m));p.Ls(l.kf(h))})});return f}D(){return olympe.j.ia.pb}C(){return olympe.j.ia.pb}};
2025
- olympe.sc.ui.Lb.Ze.U=olympe.dc.Ja.C('016c2458e07561155a49',olympe.sc.ui.Lb.Ze);olympe.sc.ui.Lb.de=class extends olympe.sc.ui.Lb.pk{As(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.de;var g=olympe.ui.ha.wc.Uc;const h=olympe.sc.ui.Lb.pk.D.Uf,l=olympe.sc.ui.Lb.pk.D.$y,m=olympe.sc.ui.Lb.de.R,n=olympe.sc.ui.Lb.de.qa;var p=olympe.sc.ui.Lb.de.ca,r=olympe.sc.ui.Lb.de.T,t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(n,a,c,g,!0);c=this.Ea(m,a,c,h,!0);r=this.Ea(r,
2026
- a,d,olympe.j.Ba(-1),!0);t=olympe.j.Wa([c,t,b.Tc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);nr(this,d,a,b,new e(t,r),g);return d}D(a){const b=olympe.sc.ui.Lb.pk.D.$y;return this.Ea(olympe.sc.ui.Lb.de.R,a,olympe.j.kb,olympe.sc.ui.Lb.pk.D.Uf).Ue(b)}C(a){return this.Ea(olympe.sc.ui.Lb.de.T,a,olympe.j.aa,olympe.j.Ba(-1)).Vj(-1)}};olympe.sc.ui.Lb.de.U=olympe.dc.Ja.C('016c2464cd56eb1d285e',olympe.sc.ui.Lb.de);olympe.sc.ui.Lb.de.qa=olympe.sc.ui.Lb.de.U.ea('016c2465994ea70d575b');
2024
+ r(l,d.oa());r(g,p,a);r(h,b,n)}olympe.sc.ui.Lb.pk=class extends olympe.sc.ui.vr{As(){}D(){}C(){}};olympe.sc.ui.Lb.pk.D={$y:'distributed',Vf:'manual'};olympe.sc.ui.Lb.Ze=class extends olympe.sc.ui.vr{As(a,b){const c=olympe.j.aa,d=olympe.sc.ui.Ga.TY,e=new olympe.j.ga(this.Ea(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),this.Ea(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0)),f=new olympe.ui.F.Ze(e);b.forEach((g,h,l)=>{const m=g.ka(),n=rp(a,m);olympe.j.vs([n.va(olympe.sc.Db.C.Fp,olympe.ui.F.mb,!0)],p=>{p.setPosition(g.ge(n));p.fh(g.Ea(d,n,c,c.ZERO));f.appendChild(p,m+'_'+this.db.name(m));p.Ls(l.kf(h))})});return f}D(){return olympe.j.ia.pb}C(){return olympe.j.ia.pb}};
2025
+ olympe.sc.ui.Lb.Ze.U=olympe.dc.Ja.C('016c2458e07561155a49',olympe.sc.ui.Lb.Ze);olympe.sc.ui.Lb.de=class extends olympe.sc.ui.Lb.pk{As(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.de;var g=olympe.ui.ha.wc.Uc;const h=olympe.sc.ui.Lb.pk.D.Vf,l=olympe.sc.ui.Lb.pk.D.$y,m=olympe.sc.ui.Lb.de.R,n=olympe.sc.ui.Lb.de.qa;var p=olympe.sc.ui.Lb.de.ca,r=olympe.sc.ui.Lb.de.T,t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);const u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(n,a,c,g,!0);c=this.Ea(m,a,c,h,!0);r=this.Ea(r,
2026
+ a,d,olympe.j.Ba(-1),!0);t=olympe.j.Wa([c,t,b.Tc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(u,p,d.ZERO,d.ZERO);nr(this,d,a,b,new e(t,r),g);return d}D(a){const b=olympe.sc.ui.Lb.pk.D.$y;return this.Ea(olympe.sc.ui.Lb.de.R,a,olympe.j.kb,olympe.sc.ui.Lb.pk.D.Vf).Ue(b)}C(a){return this.Ea(olympe.sc.ui.Lb.de.T,a,olympe.j.aa,olympe.j.Ba(-1)).Vj(-1)}};olympe.sc.ui.Lb.de.U=olympe.dc.Ja.C('016c2464cd56eb1d285e',olympe.sc.ui.Lb.de);olympe.sc.ui.Lb.de.qa=olympe.sc.ui.Lb.de.U.ea('016c2465994ea70d575b');
2027
2027
  olympe.sc.ui.Lb.de.R=olympe.sc.ui.Lb.de.U.ea('016c2465d49a1b57c37b');olympe.sc.ui.Lb.de.ca=olympe.sc.ui.Lb.de.U.ea('016c24662dd291131b36');olympe.sc.ui.Lb.de.T=olympe.sc.ui.Lb.de.U.ea('016c246628ec25819a59');olympe.sc.ui.Lb.de.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.de);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.R);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.T);return b.ka()};olympe.sc.ui.Lb.If=class extends olympe.sc.ui.Lb.pk{As(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,h=olympe.sc.ui.Lb.If.ca,l=olympe.sc.ui.Lb.If.Da;const m=olympe.sc.ui.Lb.If.qa,n=olympe.sc.ui.Lb.If.T,p=this.Ea(olympe.sc.ui.Renderable.C,a,c,c.ZERO,!0),r=this.Ea(olympe.sc.ui.Renderable.D,a,c,c.ZERO,!0);g=this.Ea(g,a,c,olympe.j.Ba(50),!0);h=this.Ea(h,a,c,c.ZERO,!0);l=this.Ea(l,a,c,c.ZERO,!0);c=this.Ea(m,a,c,c.ZERO,!0);d=this.Ea(n,a,d,d.pb,!0);
2028
2028
  f=new f(p,r,g,h,l,c);f.XP(d);nr(this,f,a,b,new e(g,-1));return f}D(a){return this.Ea(olympe.sc.ui.Lb.If.R,a,olympe.j.aa,olympe.j.Ba(50)).Vj(-1)}C(){return olympe.j.ia.pb}};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.ea('016c24674d58a6863271');olympe.sc.ui.Lb.If.ca=olympe.sc.ui.Lb.If.U.ea('016c24679171effcf472');olympe.sc.ui.Lb.If.Da=olympe.sc.ui.Lb.If.U.ea('016c2467dd3812adac6e');olympe.sc.ui.Lb.If.qa=olympe.sc.ui.Lb.If.U.ea('016c2467fa3c2444dfec');
2029
- olympe.sc.ui.Lb.If.T=olympe.sc.ui.Lb.If.U.ea('016c24680a7ae4f6964c');olympe.sc.ui.Lb.If.Ha=olympe.sc.ui.Lb.If.U.ea('016c2468a81749b0dea5');olympe.sc.ui.Lb.If.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.If);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.R);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.T);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.Renderable.C);return b.ka()};olympe.sc.ui.Lb.yd=class extends olympe.sc.ui.Lb.pk{As(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.yd;var g=olympe.ui.ha.Cb.Tb;const h=olympe.sc.ui.Lb.pk.D.Uf,l=olympe.sc.ui.Lb.pk.D.$y,m=olympe.sc.ui.Lb.yd.ca,n=olympe.sc.ui.Lb.yd.T;var p=olympe.sc.ui.Lb.yd.qa,r=olympe.sc.ui.Lb.yd.R;const t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);var u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(m,a,c,g,!0);c=this.Ea(n,a,c,h,!0);r=this.Ea(r,
2030
- a,d,olympe.j.Ba(-1),!0);u=olympe.j.Wa([c,u,b.Tc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);nr(this,d,a,b,new e(r,u),g);return d}D(a){return this.Ea(olympe.sc.ui.Lb.yd.R,a,olympe.j.aa,olympe.j.Ba(-1)).Vj(-1)}C(a){const b=olympe.sc.ui.Lb.pk.D.$y;return this.Ea(olympe.sc.ui.Lb.yd.T,a,olympe.j.kb,olympe.sc.ui.Lb.pk.D.Uf).Ue(b)}};olympe.sc.ui.Lb.yd.U=olympe.dc.Ja.C('016c245de13d033efad4',olympe.sc.ui.Lb.yd);olympe.sc.ui.Lb.yd.ca=olympe.sc.ui.Lb.yd.U.ea('016c2463a6aab57119e9');
2031
- olympe.sc.ui.Lb.yd.T=olympe.sc.ui.Lb.yd.U.ea('016c245e748f56bc527c');olympe.sc.ui.Lb.yd.qa=olympe.sc.ui.Lb.yd.U.ea('016c24642a7b84145c27');olympe.sc.ui.Lb.yd.R=olympe.sc.ui.Lb.yd.U.ea('016c2464540a0699987e');olympe.sc.ui.Lb.yd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.yd);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.R);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.T);return b.ka()};olympe.sc.ui.Of={};olympe.sc.ui.Of.fw=class extends olympe.dc.CloudObject{};olympe.sc.ui.Of.fw.U=olympe.dc.Ja.C('0168c77252629e4b7e4b',olympe.sc.ui.Of.fw);olympe.sc.ui.Of.GestureEvent=class extends olympe.sc.ui.Of.fw{};olympe.sc.ui.Of.GestureEvent.U=olympe.dc.Ja.C('0168dcccfca62952a55f',olympe.sc.ui.Of.GestureEvent);olympe.sc.ui.Of.GestureEvent.C={a1:'Horizontal Pan',F3:'Vertical Pan',b1:'Horizontal Swipe',m1:'Long Press',n1:'Long Press Up',p2:'Rotate',Y1:'Pinch'};olympe.sc.ui.Of.MouseEvent=class extends olympe.sc.ui.Of.fw{};olympe.sc.ui.Of.MouseEvent.U=olympe.dc.Ja.C('0168c772532efa4be843',olympe.sc.ui.Of.MouseEvent);olympe.sc.ui.Of.MouseEvent.C={u1:'Mouse Click',g0:'Mouse Double Click',z1:'Mouse Move',v1:'Mouse Enter',w1:'Mouse Leave',A1:'Mouse Wheel'};olympe.sc.ui.Of.qk=class extends olympe.sc.ui.Of.MouseEvent{};olympe.sc.ui.Of.qk.U=olympe.dc.Ja.C('0168dc74bc018fb93ca2',olympe.sc.ui.Of.qk);olympe.sc.ui.Of.Pr=class extends olympe.dc.CloudObject{};olympe.sc.ui.Of.Pr.U=olympe.dc.Ja.C('0168e0e2c4621df32516',olympe.sc.ui.Of.Pr);olympe.sc.ui.Of.TouchEvent=class extends olympe.sc.ui.Of.fw{};olympe.sc.ui.Of.TouchEvent.U=olympe.dc.Ja.C('0168e0f0f8b8d1b6daa2',olympe.sc.ui.Of.TouchEvent);olympe.sc.ui.Of.TouchEvent.C={x3:'Touch Start',w3:'Touch Move',v3:'Touch End',u3:'Touch Cancel'};olympe.sc.ui.mf={};olympe.sc.ui.mf.il=class extends olympe.sc.Metadata{aB(){return olympe.sc.ui.mf.il.C}bB(){return olympe.sc.ui.mf.il.D}};olympe.sc.ui.mf.il.U=olympe.dc.Ja.C('01621f6ab29d770a3bba',olympe.sc.ui.mf.il);olympe.sc.ui.mf.il.C=olympe.sc.ui.mf.il.U.ea('01621f6ab58c2f884654');olympe.sc.ui.mf.il.D=olympe.sc.ui.mf.il.U.ea('01621f6ab6ac89348f20');olympe.sc.Ic={};olympe.sc.Ic.ig=class extends olympe.ui.F.da.cz{constructor(a){super();a=a.lf().na();olympe.j.zb();this.size=a.oa().En(a.sa());this.fontSize=olympe.j.Ba(16);this.ca=Fc();Ec();this.Gc=Gc();this.Fa=O();this.W=new olympe.j.Color(245,110,50);this.Zb=olympe.j.Color.create(236,101,87);this.ob=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();Fc();olympe.j.Color.create(43,43,43);this.Ka=olympe.j.Color.create(255,255,255,.5);this.qa=olympe.j.Color.create(218,
2029
+ olympe.sc.ui.Lb.If.T=olympe.sc.ui.Lb.If.U.ea('016c24680a7ae4f6964c');olympe.sc.ui.Lb.If.Ha=olympe.sc.ui.Lb.If.U.ea('016c2468a81749b0dea5');olympe.sc.ui.Lb.If.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.If);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.R);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.T);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.Renderable.C);return b.ka()};olympe.sc.ui.Lb.yd=class extends olympe.sc.ui.Lb.pk{As(a,b){var c=olympe.j.kb,d=olympe.j.aa;const e=olympe.j.ga,f=olympe.ui.F.yd;var g=olympe.ui.ha.Cb.Tb;const h=olympe.sc.ui.Lb.pk.D.Vf,l=olympe.sc.ui.Lb.pk.D.$y,m=olympe.sc.ui.Lb.yd.ca,n=olympe.sc.ui.Lb.yd.T;var p=olympe.sc.ui.Lb.yd.qa,r=olympe.sc.ui.Lb.yd.R;const t=this.Ea(olympe.sc.ui.Renderable.C,a,d,d.ZERO,!0);var u=this.Ea(olympe.sc.ui.Renderable.D,a,d,d.ZERO,!0);p=this.Ea(p,a,d,d.ZERO,!0);g=this.Ea(m,a,c,g,!0);c=this.Ea(n,a,c,h,!0);r=this.Ea(r,
2030
+ a,d,olympe.j.Ba(-1),!0);u=olympe.j.Wa([c,u,b.Tc(),p],(v,w,x,y)=>olympe.j.Ba(v.valueOf()===l&&0<x?(w-(x-1)*y)/x:-1),olympe.j.aa);d=new f(t,p,d.ZERO,d.ZERO);nr(this,d,a,b,new e(r,u),g);return d}D(a){return this.Ea(olympe.sc.ui.Lb.yd.R,a,olympe.j.aa,olympe.j.Ba(-1)).Vj(-1)}C(a){const b=olympe.sc.ui.Lb.pk.D.$y;return this.Ea(olympe.sc.ui.Lb.yd.T,a,olympe.j.kb,olympe.sc.ui.Lb.pk.D.Vf).Ue(b)}};olympe.sc.ui.Lb.yd.U=olympe.dc.Ja.C('016c245de13d033efad4',olympe.sc.ui.Lb.yd);olympe.sc.ui.Lb.yd.ca=olympe.sc.ui.Lb.yd.U.ea('016c2463a6aab57119e9');
2031
+ olympe.sc.ui.Lb.yd.T=olympe.sc.ui.Lb.yd.U.ea('016c245e748f56bc527c');olympe.sc.ui.Lb.yd.qa=olympe.sc.ui.Lb.yd.U.ea('016c24642a7b84145c27');olympe.sc.ui.Lb.yd.R=olympe.sc.ui.Lb.yd.U.ea('016c2464540a0699987e');olympe.sc.ui.Lb.yd.U.C=a=>{const b=a.create(olympe.sc.ui.Lb.yd);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.R);a.Pb(olympe.sc.jg.C,b,olympe.sc.ui.ic.T);return b.ka()};olympe.sc.ui.Pf={};olympe.sc.ui.Pf.fw=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.fw.U=olympe.dc.Ja.C('0168c77252629e4b7e4b',olympe.sc.ui.Pf.fw);olympe.sc.ui.Pf.GestureEvent=class extends olympe.sc.ui.Pf.fw{};olympe.sc.ui.Pf.GestureEvent.U=olympe.dc.Ja.C('0168dcccfca62952a55f',olympe.sc.ui.Pf.GestureEvent);olympe.sc.ui.Pf.GestureEvent.C={a1:'Horizontal Pan',F3:'Vertical Pan',b1:'Horizontal Swipe',m1:'Long Press',n1:'Long Press Up',p2:'Rotate',Y1:'Pinch'};olympe.sc.ui.Pf.MouseEvent=class extends olympe.sc.ui.Pf.fw{};olympe.sc.ui.Pf.MouseEvent.U=olympe.dc.Ja.C('0168c772532efa4be843',olympe.sc.ui.Pf.MouseEvent);olympe.sc.ui.Pf.MouseEvent.C={u1:'Mouse Click',g0:'Mouse Double Click',z1:'Mouse Move',v1:'Mouse Enter',w1:'Mouse Leave',A1:'Mouse Wheel'};olympe.sc.ui.Pf.qk=class extends olympe.sc.ui.Pf.MouseEvent{};olympe.sc.ui.Pf.qk.U=olympe.dc.Ja.C('0168dc74bc018fb93ca2',olympe.sc.ui.Pf.qk);olympe.sc.ui.Pf.Pr=class extends olympe.dc.CloudObject{};olympe.sc.ui.Pf.Pr.U=olympe.dc.Ja.C('0168e0e2c4621df32516',olympe.sc.ui.Pf.Pr);olympe.sc.ui.Pf.TouchEvent=class extends olympe.sc.ui.Pf.fw{};olympe.sc.ui.Pf.TouchEvent.U=olympe.dc.Ja.C('0168e0f0f8b8d1b6daa2',olympe.sc.ui.Pf.TouchEvent);olympe.sc.ui.Pf.TouchEvent.C={x3:'Touch Start',w3:'Touch Move',v3:'Touch End',u3:'Touch Cancel'};olympe.sc.ui.mf={};olympe.sc.ui.mf.il=class extends olympe.sc.Metadata{aB(){return olympe.sc.ui.mf.il.C}bB(){return olympe.sc.ui.mf.il.D}};olympe.sc.ui.mf.il.U=olympe.dc.Ja.C('01621f6ab29d770a3bba',olympe.sc.ui.mf.il);olympe.sc.ui.mf.il.C=olympe.sc.ui.mf.il.U.ea('01621f6ab58c2f884654');olympe.sc.ui.mf.il.D=olympe.sc.ui.mf.il.U.ea('01621f6ab6ac89348f20');olympe.sc.Ic={};olympe.sc.Ic.ig=class extends olympe.ui.F.da.cz{constructor(a){super();a=a.lf().na();olympe.j.zb();this.size=a.oa().En(a.sa());this.fontSize=olympe.j.Ba(16);this.ca=Fc();Ec();this.Gc=Gc();this.Fa=O();this.W=new olympe.j.Color(245,110,50);this.Zb=olympe.j.Color.create(236,101,87);this.ob=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();Fc();olympe.j.Color.create(43,43,43);this.Ka=olympe.j.Color.create(255,255,255,.5);this.qa=olympe.j.Color.create(218,
2032
2032
  218,218);this.O=olympe.j.Color.create(38,38,38);olympe.j.Color.create(172,146,236)}Gi(){return'Helvetica'}Hi(){return 100}nq(){return 0}lf(){return S(this,'rootElement',olympe.ui.F.da.hr,void 0,()=>{let a=new olympe.ui.F.da.hr;a.Ma(this.$);return a})}Om(a){return S(this,'button',olympe.ui.F.da.kk,a,b=>{let c=new olympe.ui.F.da.kk;switch(b){case olympe.sc.Ic.ig.C.aL:c.Hb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.wb('Helvetica');c.sb(this.fontSize);c.Bb(100);c.Ma(this.W);c.lb(this.Fa);
2033
2033
  c.Xb(0);c.nd(this.W);c.cd(1);c.hk(this.C);K(c.Ka,this.W);K(c.R,this.W);break;case olympe.sc.Ic.ig.C.IV:c.Hb(new olympe.j.ga(this.fontSize.hb(12),this.fontSize.hb(3)));c.wb('Helvetica');c.sb(this.fontSize);c.Bb(100);c.Ma(this.ob);c.lb(this.ca);c.Xb(0);c.nd(this.ob);c.cd(1);break;case olympe.sc.Ic.ig.C.JC:c.Hb(new olympe.j.ga(0,90));c.wb('Helvetica');c.Bb(100);break;case olympe.sc.Ic.ig.C.JD:c.Hb(new olympe.j.ga(10,90));c.wb('Helvetica');c.Bb(100);break;default:c.Hb(new olympe.j.ga(this.fontSize.hb(12),
2034
2034
  this.fontSize.hb(3))),c.wb('Helvetica'),c.sb(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.Fa),c.Xb(5),c.nd(Hc()),c.cd(1),c.eh(new olympe.j.ga(0,0),5,1,olympe.j.Color.create(0,0,0,.2)),c.hk(olympe.j.Color.create(69,90,100))}return c})}Cu(a){return S(this,'label',olympe.ui.F.da.Wh,a,b=>{let c=new olympe.ui.F.da.Wh;c.wb('Helvetica');c.Bb(100);c.sb(this.fontSize);c.lb(this.ca);c.Yb(olympe.ui.ha.wc.Uc);switch(b){case olympe.sc.Ic.ig.D.SF:c.Bb(700);
@@ -2066,7 +2066,7 @@ Context:olympe.sc.Db,Entry:olympe.dc.Qc.Entry,PropertyModel:olympe.dm.Property,R
2066
2066
  WorkflowObjectState:olympe.sc.workflow.ObjectState,Transaction:olympe.sc.Vc,BurstTransaction:olympe.dc.Lv,TransactionResult:olympe.sc.Gw,PredefinedDataSource:olympe.dc.vc,QueryResult:olympe.dc.Bc,Query:olympe.dc.nb,QuerySingle:olympe.dc.Yh,Predicate:olympe.dc.query.Rb,Order:olympe.dc.query.Nz,Config:olympe.public.Config,Process:olympe.public.kl,ProbeType:olympe.host.CD.C,EventMonitor:class{static track(a,b){olympe.sc.qd.IA().track(a,b)}static isEnabled(){return olympe.sc.qd.IA().isEnabled()}},Cache:{getCacheEntries:()=>
2067
2067
  olympe.dc.sources.Nj().T,clearCache:a=>tn(olympe.dc.sources.Nj(),a),getProcessingStatus:()=>olympe.dc.sources.Nj().nh(),getProcessingErrors:()=>olympe.dc.sources.Nj().yb.asObservable(),hasPendingChanges:()=>olympe.dc.sources.Nj().fa.asObservable(),synchroniseChanges:()=>zn(),getPendingChanges:()=>Cn(),clearPendingChanges:()=>Gn(),loadPendingChanges:a=>En(a)},Color:olympe.j.Color,ErrorFlow:olympe.sc.logic.Error,ServiceRequestType:olympe.X.Ib.C,ServiceRequest:olympe.X.Vg,Service:olympe.X.Rd,Auth:olympe.public.Mc,
2068
2068
  AuthState:{INIT:olympe.xa.Ec.C.INIT,AUTHENTICATING:olympe.xa.Ec.C.Hy,GUEST:olympe.xa.Ec.C.Wv,AUTHENTICATED:olympe.xa.Ec.C.Wn,ERROR:olympe.xa.Ec.C.xe},AuthProtocol:olympe.xa.Ug.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.Dd{static get(){return olympe.dc.$a()}},
2069
- ListDef:olympe.dc.Kb,instanceToTag:olympe.dc.Va,registerSync:olympe.dc.Ja.C,getUniqueTag:olympe.la.Zr,onDestroy:a=>olympe.j.zb().onDestroy(a),offDestroy:a=>olympe.j.zb().Uo(a),FollowRules:olympe.dc.Ee,transformers:{Related:olympe.dc.Qa.Em,RecursiveRelated:olympe.dc.Qa.Ij,Distinct:olympe.dc.Qa.Rv,Filter:olympe.dc.Qa.Qf,Limit:olympe.dc.Qa.Ht,Sort:olympe.dc.Qa.Kr,Union:olympe.dc.Qa.Co},ListDefPredicate:olympe.public.Rb,predicates:{And:olympe.dc.za.Ti,Or:olympe.dc.za.fl,Not:olympe.dc.za.rk,Equals:olympe.dc.za.Wk,
2069
+ ListDef:olympe.dc.Kb,instanceToTag:olympe.dc.Va,registerSync:olympe.dc.Ja.C,getUniqueTag:olympe.la.Zr,onDestroy:a=>olympe.j.zb().onDestroy(a),offDestroy:a=>olympe.j.zb().Uo(a),FollowRules:olympe.dc.Ee,transformers:{Related:olympe.dc.Qa.Em,RecursiveRelated:olympe.dc.Qa.Ij,Distinct:olympe.dc.Qa.Rv,Filter:olympe.dc.Qa.Rf,Limit:olympe.dc.Qa.Ht,Sort:olympe.dc.Qa.Kr,Union:olympe.dc.Qa.Co},ListDefPredicate:olympe.public.Rb,predicates:{And:olympe.dc.za.Ti,Or:olympe.dc.za.fl,Not:olympe.dc.za.rk,Equals:olympe.dc.za.Wk,
2070
2070
  Contains:olympe.dc.za.bo,Greater:olympe.dc.za.lz,Smaller:olympe.dc.za.cA,HasRelated:olympe.dc.za.Ct,InstanceOf:olympe.dc.za.ew,Regex:olympe.dc.za.wo},Comparator:olympe.public.$n,comparators:{Number:olympe.dc.wg.Number,String:olympe.dc.wg.String,DateTime:olympe.dc.wg.DateTime},valuedefs:{BooleanProperty:olympe.dc.dd.Qy,StringProperty:olympe.dc.dd.Bw,NumberProperty:olympe.dc.dd.ow,DateTimeProperty:olympe.dc.dd.Qv,Constant:olympe.dc.dd.pm,Tag:olympe.dc.dd.Dw}});'object'===typeof exports&&Object.assign(exports,{VisualBrick:olympe.sc.ui.ic,Theme:olympe.sc.ui.ThemeModel,registerBrick:(a,b,...c)=>{b.prototype instanceof olympe.sc.ui.ic?olympe.dc.Ja.C(a,b,...c):olympe.sc.logic.Ja.C(a,b,...c)},UIBrick:olympe.sc.ui.ic});
2071
2071
 
2072
2072