<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">class RMLayerImage extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){console.log("RMLayerImage create or update");this.is_virtual=!0;super.create_or_update();var a=clone(this.options);let b={align:a.placement.align,x:a.placement.x,y:a.placement.y,visible:!0,enabled:!0,vr:!1,animations:a.animations};b=Object.assign(a,b);if(b.placement.zoomable){b.scale=.2;a="tween(layer["+b.name+"].scale, 1);set(autorotate.enabled, false);";let c="tween(layer["+b.name+"].scale, 0.2);restartRotator();";
b.onhover=a;b.onclick=a;b.onout=c;b.enabled=!0}this.window=new RMLayer(b,this.kr,this.global_kr);this.window.set_parent(this)}}class RMLayerImageWithLayerIcon extends RMLayerImage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerImageWithSpotIcon extends RMLayerImage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerLink extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){let a={url:this.options.icon.url,align:this.options.icon.placement.align,x:this.options.icon.placement.x,y:this.options.icon.placement.y,visible:!0,enabled:!0,vr:!1};a=Object.assign(this.options,a);this.create_icon_2d();this.icon.picto.kr_obj.onclick=function(){this.on_click()}.bind(this);a.icon.under_text.activated&amp;&amp;(this.icon.text_under.kr_obj.onclick=this.icon.picto.kr_obj.onclick);this.icon.create_or_update()}on_click(){this.kr.call("loadscene("+
this.options.scene+",null,MERGE,ZOOMBLEND(1,2))")}destroy(){super.destroy();this.icon.destroy()}}
class RMSpotLink extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.create_icon_3d();this.create_window_over();this.icon.picto.kr_obj.onclick=function(){this.on_click()}.bind(this);this.icon.picto.kr_obj.onover=function(){this.on_over()}.bind(this);this.icon.picto.kr_obj.onout=function(){this.on_out()}.bind(this);this.icon&amp;&amp;this.icon.text_under&amp;&amp;this.icon.text_under.kr_obj&amp;&amp;(this.icon.text_under.kr_obj.onclick=function(){this.on_click()}.bind(this),this.icon.text_under.kr_obj.onover=
function(){this.on_over()}.bind(this),this.icon.text_under.kr_obj.onout=function(){this.on_out()}.bind(this))}create_window_over(){let a,b,c;var d=clone(this.options);var e=this.global_kr.scene.getItem(this.options.scene);this.scene_title=void 0!=e?e.title:"";if("square"==this.options.type_cadre){this.options_cadre={name:d.name+"_cadre",distorted:d.icon.d3d.distorted,url:"https://skins.hdmedia.fr/picto_marker_carre_fin.png",atv:d.icon.directions.atv-9,ath:d.icon.directions.ath+.1,scale:.7,zorder:2,
tx:d.icon.d3d.tx,ty:d.icon.d3d.ty,tz:d.icon.d3d.tz,visible:!1,alpha:0,myParent:d.name};void 0!=this.cadre&amp;&amp;(this.cadre.destroy(),this.cadre=void 0);this.cadre=new RMSpot(this.options_cadre,this.kr,this.global_kr);var f=void 0!=e?e.thumburl:"";a=d.icon.directions.atv-9.9;b=d.icon.directions.ath+.1;c=.616;e=d.icon.directions.atv-19;d=d.icon.directions.ath+.1;this.cadre.kr_obj.onclick=function(){this.on_click()}.bind(this);this.cadre.kr_obj.onover=function(){this.on_over()}.bind(this);this.cadre.kr_obj.onout=
function(){this.on_out()}.bind(this)}else f=void 0!=e?e.thumburl.replace(".jpg",".png"):"",a=d.icon.directions.atv-7.1,b=d.icon.directions.ath+.1,c=.616,e=d.icon.directions.atv-14,d=d.icon.directions.ath+.1;let g=clone(this.options);this.options_thumb={name:g.name+"_photo",distorted:g.icon.d3d.distorted,url:f,atv:a,ath:b,scale:c,zorder:1,tx:g.icon.d3d.tx,ty:g.icon.d3d.ty,tz:g.icon.d3d.tz,visible:!1,alpha:0,myParent:g.name};void 0!=this.thumb&amp;&amp;(this.thumb.destroy(),this.thumb=void 0);this.thumb=new RMSpot(this.options_thumb,
this.kr,this.global_kr);this.thumb.kr_obj.onclick=function(){this.on_click()}.bind(this);this.thumb.kr_obj.onover=function(){this.on_over()}.bind(this);this.thumb.kr_obj.onout=function(){this.on_out()}.bind(this);""!=this.scene_title&amp;&amp;(f=clone(this.options),this.options_text={name:f.name+"_text",distorted:f.icon.d3d.distorted,url:"https://lib.hdmedia.fr/textfield.swf",atv:e,ath:d,width:"auto",height:"auto",vcenter:!0,html:"&lt;p&gt;"+this.scene_title+"&lt;/p&gt;",css:"p{color:#fff;font-family:Arial;font-weight:bold;font-size:22px;text-align:center;}",
bg:!0,wordwrap:!0,padding:8,bgcolor:"0x000000",bgalpha:.3,bgroundedge:15,scale:.7,zorder:3,tx:f.icon.d3d.tx,ty:f.icon.d3d.ty,tz:f.icon.d3d.tz,visible:!1,alpha:0,myParent:f.name},this.kr.device.mobile&amp;&amp;(this.options_text.scale=2),void 0!=this.text_over&amp;&amp;(this.text_over.destroy(),this.text_over=void 0),this.text_over=new RMSpot(this.options_text,this.kr,this.global_kr),this.text_over.kr_obj.onclick=function(){this.on_click()}.bind(this),void 0!=this.icon.kr_obj&amp;&amp;(console.log("applying click"),this.icon.kr_obj.onclick=
function(){this.on_click()}.bind(this)))}on_click(){this.load_scene(this.options.scene)}on_over(){clearTimeout(this.disapear_timeout);"square"==this.options.type_cadre&amp;&amp;(this.cadre.kr_obj.visible=!0,this.kr.actions.tween("hotspot["+this.cadre.kr_obj.name+"].alpha",1,.5,"easeInOutQuad",function(){}.bind(this)));""!=this.scene_title&amp;&amp;(this.text_over.kr_obj.visible=!0,this.kr.actions.tween("hotspot["+this.text_over.kr_obj.name+"].alpha",1,.5,"easeInOutQuad",function(){}.bind(this)));this.thumb.kr_obj.visible=
!0;this.kr.actions.tween("hotspot["+this.thumb.kr_obj.name+"].alpha",1,.5,"easeInOutQuad",function(){}.bind(this))}on_out(){this.disapear_timeout=setTimeout(function(){"square"==this.options.type_cadre&amp;&amp;this.kr.actions.tween("hotspot["+this.cadre.kr_obj.name+"].alpha",0,.5,"easeInOutQuad",function(){this.cadre.kr_obj.visible=!1}.bind(this));this.kr.actions.tween("hotspot["+this.thumb.kr_obj.name+"].alpha",0,.5,"easeInOutQuad",function(){this.thumb.kr_obj.visible=!1}.bind(this));""!=this.scene_title&amp;&amp;
this.kr.actions.tween("hotspot["+this.text_over.kr_obj.name+"].alpha",0,.5,"easeInOutQuad",function(){this.text_over.kr_obj.visible=!1}.bind(this))}.bind(this),1E3)}destroy(){super.destroy();void 0!=this.thumb&amp;&amp;this.thumb.destroy();void 0!=this.cadre&amp;&amp;this.cadre.destroy();void 0!=this.text_over&amp;&amp;this.text_over.destroy()}}
class RMDecoLink extends RM{constructor(a,b,c){super(a,b,c)}create_or_update(){var a=JSON.parse(JSON.stringify(this.options));let b={name:a.name+"_icon",x:a.x+15,y:a.y+5,scale:.6};b=Object.assign(a,b);this.icon=b.animated?new RMAnimatedLayer(b,this.kr,this.global_kr):new RMLayer(b,this.kr,this.global_kr);if(void 0!=this.options.text&amp;&amp;""!=this.options.text){let c=JSON.parse(JSON.stringify(this.options));delete c.x;delete c.y;a={name:this.options.name+"_txtunder",parent:b.name,drag:!1,url:"https://lib.hdmedia.fr/textfield.swf",
align:"bottom",edge:"top",width:100,html:"&lt;p&gt;"+a.text+"&lt;/p&gt;",css:"p { padding:3px;font-family: Arial;font-size: 12px;text-align: center;color:"+c.txtcolor+"; } a { text-decoration:underline; font-weight:bold; } a:hover { color:#885500; }",keep:a.keep,borderwidth:1,roundedge:10,shadow:1,backgroundalpha:.6};a=Object.assign(c,a);this.text=new RMLayer(a,this.kr,this.global_kr);this.icon.options.txtunder=this.kr.layer.getItem(a.name);this.text.set_onclick('loadMyCubeScene("'+b.scene+'");')}this.icon.set_onclick('loadMyCubeScene("'+
b.scene+'");');this.icon.create_or_update()}}
class RMLayerHtml extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options),b={name:a.name+"_text",align:a.placement.align,x:a.placement.x,y:a.placement.y,type:"text",visible:!0,url:"&lt;textfield&gt;",width:a.main_text.text_dimensions.width,height:a.main_text.text_dimensions.height,css:"vertical-align:middle;color:"+a.main_text.text_color+";font-size:"+a.main_text.text_size+"px;font-family:"+a.main_text.text_font+";padding:"+
a.main_text.padding+"px"};b=Object.assign(a,b);b=Object.assign(a.main_text,b);void 0!=this.window?Object.assign(this.window.options,b):(this.window=new RMTextLayer(b,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update()}destroy(){super.destroy();this.window.destroy()}}
class RMLayerHtmlWithLayerIcon extends RMLayerHtml{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.kr_obj.myParent=this.icon.picto.kr_obj.name;this.window.create_or_update()}}
class RMLayerHtmlWithSpotIcon extends RMLayerHtml{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.kr_obj.myParent=this.icon.picto.kr_obj.name;this.window.create_or_update()}}
class RMSpotHtml extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options);this.options_text={name:a.name+"_text",ath:a.directions.ath,atv:a.directions.atv,type:"text",visible:!0,url:"&lt;textfield&gt;",width:a.main_text.text_dimensions.width,height:a.main_text.text_dimensions.height,css:"vertical-align:middle;color:"+a.main_text.text_color+";font-size:"+a.main_text.text_size+"px;font-family:"+a.main_text.text_font+";padding:"+
a.main_text.padding+"px",distorted:a.main_text.d3d.distorted,rx:a.main_text.d3d.rx,ry:a.main_text.d3d.ry,rz:a.main_text.d3d.rz,tx:a.main_text.d3d.tx,ty:a.main_text.d3d.ty,tz:a.main_text.d3d.tz,depth:a.main_text.d3d.depth,rotationorder:a.main_text.d3d.rotationorder,enabled:!1,ox:a.main_text.offset.ox,oy:a.main_text.offset.oy,zorder:1,renderer:"webgl"};this.options_text=Object.assign(a.main_text,this.options_text);void 0!=this.window?Object.assign(this.window.options,this.options_text):(this.window=
new RMTextSpot(this.options_text,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update();this.window.kr_obj.onautosized=function(){this.on_kr_loaded()}.bind(this)}destroy(){super.destroy();this.window.destroy()}}
class RMSpotHtmlWithSpotIcon extends RMSpotHtml{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.kr_obj.myParent=this.icon.picto.kr_obj.name;this.window.create_or_update()}}
class RMSpotHtmlWithLayerIcon extends RMSpotHtml{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.kr_obj.myParent=this.icon.picto.kr_obj.name;this.window.create_or_update()}}class RMSpotPointInfoWithSpotIcon extends RMSpotHtmlWithSpotIcon{constructor(a,b,c){super(a,b,c)}}
class RMSpotImage extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();var a=clone(this.options);let b={atv:a.directions.atv,ath:a.directions.ath,visible:!0,enabled:!1,distorted:a.d3d.distorted,rx:a.d3d.rx,ry:a.d3d.ry,rz:a.d3d.rz,tx:a.d3d.tx,ty:a.d3d.ty,tz:a.d3d.tz,depth:a.d3d.depth,rotationorder:a.d3d.rotationorder,url:a.url,scale:a.scale};b=Object.assign(a,b);void 0!=this.window?(Object.assign(this.window.options,b),this.window.create_or_update()):
(this.window=new RMSpot(b,this.kr,this.global_kr),this.window.set_parent(this))}}class RMSpotImageWithLayerIcon extends RMSpotImage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotImageWithSpotIcon extends RMSpotImage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotRafaleImage extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();var a=clone(this.options);let b={atv:a.directions.atv,ath:a.directions.ath,visible:!0,distorted:a.d3d.distorted,rx:a.d3d.rx,ry:a.d3d.ry,rz:a.d3d.rz,tx:a.d3d.tx,ty:a.d3d.ty,tz:a.d3d.tz,depth:a.d3d.depth,rotationorder:a.d3d.rotationorder,url:a.url,scale:a.scale};b=Object.assign(a,b);void 0!=this.window?(Object.assign(this.window.options,b),this.window.create_or_update()):
(this.window=new RMSpot(b,this.kr,this.global_kr),this.window.set_parent(this))}}
class RMSpotRafale extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();var a=clone(this.options);this.windows=[];this.rafale_timeouts=[];for(let b=0;b&lt;this.options.image_collection.length;b++){let c=clone_and_replace(a.image_collection[b],{name:a.name+"_"+b,atv:a.directions.atv,ath:a.directions.ath,visible:!1,tx:a.d3d.tx,ty:a.d3d.ty,tz:a.d3d.tz,depth:a.d3d.depth,rotationorder:a.d3d.rotationorder,flyin:a.directions.flyin});void 0!=this.windows[b]?
c=Object.assign(this.windows[b].window.options,c):(this.windows[b]=new RMSpotRafaleImage(c,this.kr,this.global_kr),this.windows[b].set_parent(this));this.windows[b].window.kr_obj.visible=!1;"RMSpotRafale"==this.constructor.name&amp;&amp;(this.windows[0].window.kr_obj.onloaded=function(){this.open()}.bind(this))}}open(){super.open();this.clear_timeouts();for(let a=0;a&lt;this.windows.length;a++)this.rafale_timeouts[a]=setTimeout(function(){0&lt;a&amp;&amp;this.windows[a-1].close();this.windows[a].window.kr_obj.visible=
!0;this.windows[a].window.animate(this.windows[a].window.kr_obj,!1);this.place_close_button();a==this.windows.length-1&amp;&amp;setTimeout(function(){this.windows[a].animate(this.windows[a].window.kr_obj,!0);setTimeout(function(){"RMSpotRafale"==this.constructor.name?this.open():this.close()}.bind(this),1E3*this.options.animations.time)}.bind(this),1E3*this.options.time)}.bind(this),this.options.time*a*1E3)}clear_timeouts(){for(let a=0;a&lt;this.rafale_timeouts.length;a++)clearTimeout(this.rafale_timeouts[a])}open_on_over(){super.open_on_over();
this.open()}close(){super.close();this.clear_timeouts();for(let a=0;a&lt;this.windows.length;a++)this.windows[a].close()}destroy(){super.destroy();this.clear_timeouts()}}class RMSpotRafaleWithSpotIcon extends RMSpotRafale{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon()}}
class RMSpotRafaleWithLayerIcon extends RMSpotRafale{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon()}}
class RMSpotVideo extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();var a=clone(this.options);let b={atv:a.directions.atv,ath:a.directions.ath,distorted:a.d3d.distorted,rx:a.d3d.rx,ry:a.d3d.ry,rz:a.d3d.rz,tx:a.d3d.tx,ty:a.d3d.ty,tz:a.d3d.tz,depth:a.d3d.depth,rotationorder:a.d3d.rotationorder,videourl:a.video_url,url:"https://lib.hdmedia.fr/videoplayer.js",scale:a.scale,pausedonstart:a.paused_on_start,visible:a.visible_on_start,loop:a.loop,
zorder:1E3,width:a.dimensions.width,height:a.dimensions.height,onvideocomplete:function(){this.on_video_complete()}.bind(this)};b.chromakey=a.chroma_key.active?"0x"+a.chroma_key.color.replace("#","")+"|"+a.chroma_key.seuil+"|"+a.chroma_key.smoothing:"";b=Object.assign(a,b);void 0!=this.window?(b=Object.assign(this.window.options,b),this.window.create_or_update()):(this.window=new RMSpot(b,this.kr,this.global_kr),this.window.set_parent(this));this.window.kr_obj.onclick=function(){this.window.kr_obj.togglepause()}.bind(this);
this.window.kr_obj.onvideoready=function(){console.log("video ready");this.on_kr_loaded()}.bind(this)}on_kr_loaded(){super.on_kr_loaded();this.place_close_button();this.options.visible_on_start&amp;&amp;(this.window.kr_obj.visible=!0,void 0!=this.icon&amp;&amp;(this.icon.picto.kr_obj.zorder=this.window.kr_obj.zorder+1,void 0!=this.icon.under_text&amp;&amp;(this.icon.under_text.kr_obj.zorder=this.window.kr_obj.zorder+1)));this.options.visible_on_start&amp;&amp;!this.options.paused_on_start&amp;&amp;void 0!=this.icon&amp;&amp;(this.icon.picto.kr_obj.visible=
!1,void 0!=this.icon.under_text&amp;&amp;(this.icon.under_text.kr_obj.visible=!1))}open(){super.open();void 0!=global_video_playing&amp;&amp;global_video_playing.close();this.options.pause_other_sounds&amp;&amp;(console.log("try to pause other sounds"),this.kr.call("pauseallsounds();"));global_video_playing=this}close(){super.close();this.window.kr_obj.pause();global_video_playing=void 0}on_video_complete(){this.options.close_on_end&amp;&amp;this.close()}}
class RMSpotVideoWithSpotIcon extends RMSpotVideo{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon()}open(){super.open();this.window.kr_obj.play()}}class RMSpotVideoWithLayerIcon extends RMSpotVideo{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon()}open(){super.open();this.window.kr_obj.play()}}
class RMSpotVideo180 extends RMSpotVideo{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.options.enabled=!1;this.window.create_or_update()}on_kr_loaded(){this.place_video_180();super.on_kr_loaded()}place_video_180(){console.log("place_video_180 !!!!");var a=-.5/57.295779,b=7/57.295779,c=0;let d=this.window.kr_obj;var e=Math.tan(95/57.295779*.5);e*=1E3;d.width=e;d.height=1.20833*e;e=Math.cos(a);a=Math.sin(a);let f=Math.cos(b),g=Math.sin(b);b=Math.cos(c);let h=
Math.sin(c),k=b*g*e+h*a;c=b*g*a-h*e;a=Math.atan2(-1*(h*g*e-b*a),f*e);c=Math.atan2(-1*c,b*f);b=Math.asin(k);d.depth="off";d.ath=57.295779*a;d.atv=57.295779*b;d.rotate=57.295779*c}open(){super.open();setTimeout(function(){this.window.kr_obj.enabled=!1}.bind(this),1E3)}}
class RMSpotVideo180WithSpotIcon extends RMSpotVideo180{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.paused_on_start=!0;this.window.options.pausedonstart=!0;this.window.create_or_update()}open(){super.open();this.window.kr_obj.play()}}
class RMSpotVideo180WithLayerIcon extends RMSpotVideo180{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.create_or_update()}open(){super.open();this.window.kr_obj.play()}}class RMSpotIntro2D extends RMSpotImage{constructor(a,b,c){super(a,b,c)}}class RMSpotPointImageWithSpotIcon extends RMSpotImageWithSpotIcon{}class RMSpotZoomPhotoWithSpotIcon extends RMSpotImageWithSpotIcon{}
class RMLayerVideo extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options),b={align:a.placement.align,x:a.placement.x,y:a.placement.y,enabled:!0,vr:!1,animations:a.animations,videourl:a.video_url,url:"https://lib.hdmedia.fr/videoplayer.js",pausedonstart:a.paused_on_start,visible:a.visible_on_start,loop:a.loop,width:a.dimensions.width,height:a.dimensions.height,onvideocomplete:function(){this.on_video_complete()}.bind(this)};
b=Object.assign(a,b);this.window=new RMLayer(b,this.kr,this.global_kr);this.window.set_parent(this);void 0!=this.window.kr_obj?(this.set_listeners(),this.init()):setTimeout(function(){this.set_listeners();this.init()}.bind(this),1E3)}set_listeners(){this.window.kr_obj.onclick=function(){this.window.kr_obj.togglepause()}.bind(this);this.window.kr_obj.onvideoready=function(){this.init()}.bind(this)}init(){this.animate_window();this.place_close_button()}close(){super.close();this.window.kr_obj.pause()}on_video_complete(){this.options.close_on_end&amp;&amp;
this.close()}}class RMLayerVideoWithSpotIcon extends RMLayerVideo{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}open(){super.open();this.window.kr_obj.play()}}
class RMLayerVideoWithLayerIcon extends RMLayerVideo{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}open(){super.open();this.window.kr_obj.play()}}class RMLayerPlan extends RMLayerImage{constructor(a,b,c){super(a,b,c)}}class RMSpotPlan extends RMSpotImage{constructor(a,b,c){super(a,b,c)}}
class RMIconSpotPlanPoint extends RMIconSpot{constructor(a,b,c,d){super(a,b,c);this.options=a;this.point=d}on_kr_loaded(){this.parent_rm.place_point(this.point,this)}}
class RMSpotPlan2 extends RMSpotImage{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;this.points_opened=!1;super.create_or_update();void 0!=this.points&amp;&amp;void 0!=this.window.kr_obj&amp;&amp;(this.create_points(),void 0==this.icon&amp;&amp;this.open_points())}on_kr_loaded(){console.log("on_kr_loaded !!!!!!!");super.on_kr_loaded();this.create_points();void 0==this.icon&amp;&amp;this.open_points()}create_points(){if(void 0!=this.points)for(let b=0;b&lt;this.points.length;b++)this.points[b].destroy();this.points=
[];let a=0;Object.entries(this.options.points).forEach(b=&gt;{const [,c]=b;b={name:this.options.name+"_point_"+a,icon:clone_and_replace(c.icon,{directions:clone(this.options.directions),d3d:clone(this.options.d3d),scale:c.icon.scale,ox:0,oy:0}),visible:!1,enabled:!1,edge:"topleft"};b=new RMIconSpotPlanPoint(b,this.kr,this.global_kr,c);b.set_parent(this);b.picto.kr_obj.zorder=parseFloat(this.window.kr_obj.zorder)+10;void 0!=c.scene&amp;&amp;(b.picto.kr_obj.onclick=function(){this.load_scene(c.scene)}.bind(this));
void 0!=c.link_url&amp;&amp;(b.picto.kr_obj.onclick=function(){this.load_url(c.link_url)}.bind(this));this.points.push(b);a++})}place_point(a,b){b=b.picto.kr_obj;console.log("point,picto_obj.width",a,b.width);a=this.get_point_x_y(a.x,a.y,a.icon.scale,parseFloat(b.width));b.ox=a.x;b.oy=a.y}get_point_x_y(a,b,c,d){let e=50;void 0!=d&amp;&amp;(e=d);d=e;let f=this.options.scale;return{x:parseFloat(this.window.kr_obj.ox)+(-this.window.kr_obj.imagewidth/2+a)*f+e/2*c/2,y:parseFloat(this.window.kr_obj.oy)+(-this.window.kr_obj.imageheight/
2+b)*f+d/2*c/2}}open(){super.open();this.points_open_timout=setTimeout(function(){this.open_points()}.bind(this),1E3*this.options.animations.time)}close(){super.close();clearTimeout(this.points_open_timout);this.close_points()}open_points(){this.points_opened=!0;for(let a=0;a&lt;this.points.length;a++){let b=this.points[a];b.picto.kr_obj.visible=!0;b.picto.kr_obj.enabled=!0}}close_points(){this.points_opened=!1;for(let a=0;a&lt;this.points.length;a++){let b=this.points[a];b.picto.kr_obj.visible=!1;b.picto.kr_obj.enabled=
!1}}destroy(){super.destroy();for(let a=0;a&lt;this.points.length;a++)this.points[a].destroy()}}class RMSpotPlan2WithLayerIcon extends RMSpotPlan2{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.kr_obj.visible=!1;this.window.kr_obj.enabled=!1}}
class RMSpotPlan2WithSpotIcon extends RMSpotPlan2{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.kr_obj.visible=!1;this.window.kr_obj.enabled=!1}}class RMIconLayerPlanPoint extends RMIconLayer{constructor(a,b,c,d){super(a,b,c);this.options=a;this.point=d}on_kr_loaded(){this.parent_rm.place_point(this.point,this)}}
class RMLayerPlan2 extends RMLayerImage{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;this.points_opened=!1;super.create_or_update();void 0!=this.points&amp;&amp;void 0!=this.window.kr_obj&amp;&amp;(this.create_points(),void 0==this.icon&amp;&amp;this.open_points())}on_kr_loaded(){console.log("on_kr_loaded !!!!!!!");super.on_kr_loaded();this.create_points();void 0==this.icon&amp;&amp;this.open_points()}open(){super.open();this.points_open_timout=setTimeout(function(){this.open_points()}.bind(this),1E3*this.options.animations.time)}close(){super.close();
clearTimeout(this.points_open_timout);this.close_points()}get_point_x_y(a,b,c,d){let e=100;void 0!=d&amp;&amp;(e=d);d=e;let f=this.options.scale,g={x:this.window.kr_obj.initial_x+a*f-e/2*c/2,y:this.window.kr_obj.initial_y+b*f-d/2*c/2},h=this.options.placement.align;h.match(/right/)&amp;&amp;(g.x=this.window.kr_obj.x+(this.window.kr_obj.imagewidth-a)*f-e/2*c*2);h.match(/bottom/)&amp;&amp;(g.y=this.window.kr_obj.y+(this.window.kr_obj.imageheight-b)*f-d/2*c*2);if("centerleft"==h||"centerright"==h||"center"==h)g.y=this.window.kr_obj.y+
(-this.window.kr_obj.imageheight/2+b)*f-d/2*c/2;if("centertop"==h||"centerbottom"==h||"center"==h)g.x=this.window.kr_obj.x+(-this.window.kr_obj.imagewidth/2+a)*f-e/2*c/2;return g}get_point_by_name(a){if(void 0!=this.points)for(let b=0;b&lt;this.points.length;b++){let c=this.points[b];if(c.options.name==a)return c}return!1}create_points(){if(void 0!=this.points)for(let b=0;b&lt;this.points.length;b++)this.points[b].destroy();this.points=[];let a=0;Object.entries(this.options.points).forEach(b=&gt;{const [,
c]=b;b={name:this.options.name+"_point_"+a,icon:clone_and_replace(c.icon,{placement:{align:this.options.placement.align,x:0,y:0,edge:"topleft"},scale:c.icon.scale,parent:this.options.name}),visible:!1,enabled:!1,keep:this.options.keep};b=new RMIconLayerPlanPoint(b,this.kr,this.global_kr,c);b.set_parent(this);b.picto.kr_obj.zorder=parseFloat(this.options.placement.zorder)+10;console.log("point_layer.picto.kr_obj.parent ",b.picto.kr_obj.parent);void 0!=c.scene&amp;&amp;(b.picto.kr_obj.onclick=function(){this.load_scene(c.scene)}.bind(this));
void 0!=c.link_url&amp;&amp;(b.picto.kr_obj.onclick=function(){this.load_url(c.link_url)}.bind(this));this.points.push(b);a++})}place_point(a,b){b=b.picto.kr_obj;a=this.get_point_x_y(a.x,a.y,a.icon.scale,parseFloat(b.width));b.x=a.x;b.y=a.y}open_points(){this.points_opened=!0;for(let a=0;a&lt;this.points.length;a++){let b=this.points[a];b.picto.kr_obj.visible=!0;b.picto.kr_obj.enabled=!0}}close_points(){this.points_opened=!1;for(let a=0;a&lt;this.points.length;a++){let b=this.points[a];b.picto.kr_obj.visible=!1;
b.picto.kr_obj.enabled=!1}}destroy(){super.destroy();for(let a=0;a&lt;this.points.length;a++)this.points[a].destroy()}}class RMLayerPlan2WithLayerIcon extends RMLayerPlan2{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;this.points_opened=!1;super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerPlan2WithSpotIcon extends RMLayerPlan2{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;this.points_opened=!1;super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerURLWithLayerIcon extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){let a={url:this.options.icon.url,align:this.options.placement.align,x:this.options.placement.x,y:this.options.placement.y,visible:!0,enabled:!0,vr:!1};a=Object.assign(this.options,a);this.create_icon_2d();this.icon.picto.kr_obj.onclick=function(){this.open_url()}.bind(this);a.icon.under_text.activated&amp;&amp;(this.icon.text_under.kr_obj.onclick=this.icon.picto.kr_obj.onclick);this.icon.create_or_update()}open_url(){void 0==
this.options.target&amp;&amp;(this.options.target="_blank");window.open(this.options.link_url,this.options.target)}destroy(){super.destroy();this.icon.destroy()}}
class RMSpotURLWithSpotIcon extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.create_icon_3d();this.icon.picto.kr_obj.onclick=function(){this.open_url()}.bind(this);this.options.icon.under_text.activated&amp;&amp;(this.icon.text_under.kr_obj.onclick=this.icon.picto.kr_obj.onclick);this.icon.create_or_update()}open_url(){void 0==this.options.target&amp;&amp;(this.options.target="_blank");window.open(this.options.link_url,this.options.target)}}
class RMSpotAudioWithSpotIcon extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.create_icon_3d();this.icon.picto.kr_obj.onclick=function(){this.open_or_close_sound()}.bind(this);this.options.icon.under_text.activated&amp;&amp;(this.icon.text_under.kr_obj.onclick=this.icon.picto.kr_obj.onclick);this.icon.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.options.paused_on_start||this.open_sound()}destroy(){super.destroy();this.stop_sound()}}
class RMLayerAudioWithLayerIcon extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){this.create_icon_2d();this.icon.picto.kr_obj.onclick=function(){this.open_or_close_sound()}.bind(this);this.options.icon.under_text.activated&amp;&amp;(this.icon.text_under.kr_obj.onclick=this.icon.picto.kr_obj.onclick);this.icon.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.options.paused_on_start||this.open_sound()}destroy(){super.destroy();this.stop_sound()}}
class RMLayerAudioMusicWithLayerIcon extends RMLayerAudioWithLayerIcon{constructor(a,b,c){super(a,b,c)}}
class RMLayerTheme extends RMLayer{constructor(a,b,c){super(a,b,c);void 0==this.added_from_theme&amp;&amp;(this.added_from_theme=[])}create_or_update(){this.is_virtual=!0;super.create_or_update();this.display_theme()}display_theme(){this.remove_theme();this.added_from_theme=[];let a=RM.themes[this.options.theme];for(let c=0;c&lt;a.length;c++){var b=a[c];b.options.name=rand_string();b=new b.class_name(clone_and_replace(b.options,{scale:this.options.scale,keep:this.options.keep}),this.kr,this.global_kr);this.added_from_theme.push(b)}}destroy(){this.remove_theme();
super.destroy()}remove_theme(){if(void 0!=this.added_from_theme)for(let a=0;a&lt;this.added_from_theme.length;a++)this.added_from_theme[a].destroy()}}
class RMSpotWidget extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options);this.options_widget={name:a.name+"_widget",url:"https://lib.hdmedia.fr/krwidget.js",width:a.dimensions.width,height:a.dimensions.height,visible:!0,frame_url:a.widget_url,krname:a.name+"_widget",ath:a.directions.ath,atv:a.directions.atv,renderer:"css3d",distorted:a.d3d.distorted,rx:a.d3d.rx,ry:a.d3d.ry,rz:a.d3d.rz,tx:a.d3d.tx,ty:a.d3d.ty,tz:a.d3d.tz,
depth:a.d3d.depth,scale:parseFloat(a.scale),rotationorder:a.d3d.rotationorder,button_close:a.button_close,style:"iframe_over_fix"};console.log("spot widget",this.options_widget);void 0!=this.window?Object.assign(this.window.options,this.options_widget):(this.window=new RMSpot(this.options_widget,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadstyle(this.window.kr_obj.style);this.add_iframe_fix();"function"==
typeof this.window.kr_obj.loadiframe&amp;&amp;this.window.kr_obj.loadiframe()}}class RMSpotWidgetWithSpotIcon extends RMSpotWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMSpotWidgetWithLayerIcon extends RMSpotWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMSpotWebpage extends RMSpotWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.options.frame_url=adresseVisite+this.options.webpage+".html";this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMSpotWebpageWithLayerIcon extends RMSpotWidgetWithLayerIcon{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.options.frame_url=adresseVisite+this.options.webpage+".html";this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMSpotWebpageWithSpotIcon extends RMSpotWidgetWithSpotIcon{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.options.frame_url=adresseVisite+this.options.webpage+".html";this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMLayerWidget extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options);this.options_widget={name:a.name+"_widget",url:"https://lib.hdmedia.fr/krwidget.js",width:a.dimensions.width,height:a.dimensions.height,visible:!0,frame_url:a.widget_url,krname:a.name+"_widget",align:a.placement.align,x:a.placement.x,y:a.placement.y,zorder:a.placement.zorder,button_close:a.button_close,keep:a.keep};void 0!=this.window?Object.assign(this.window.options,
this.options_widget):(this.window=new RMLayer(this.options_widget,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.width=this.options_widget.width;this.window.kr_obj.height=this.options_widget.height;"undefined"!==typeof this.window.kr_obj.loadiframe?this.window.kr_obj.loadiframe():setTimeout(function(){this.on_kr_loaded()}.bind(this),1E3)}}
class RMLayerWidgetWithLayerIcon extends RMLayerWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerWidgetWithSpotIcon extends RMLayerWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}class RMLayerWebpage extends RMLayerWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.options.frame_url=adresseVisite+this.options.webpage+".html";this.window.create_or_update()}}
class RMLayerWebpageWithSpotIcon extends RMLayerWebpage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerWebpageWithLayerIcon extends RMLayerWebpage{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerPhotoGallery extends RMLayerWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.widget_base="https://www.hdmedia.fr/widgets/galerie/";this.magazine_base="https://www.hdmedia.fr/widgets/magazine/mag.php?cloud=";if("slider"==this.options.gallery_type||"masonry"==this.options.gallery_type)this.window.options.frame_url=this.widget_base+this.options.gallery_type+".php?mode=galerie&amp;idgalerie="+this.options.gallery_id;"diapo2d"==this.options.gallery_type&amp;&amp;
(this.window.options.frame_url=adresseVisite+"diapo2d-"+this.options.gallery_id+".html");this.options.gallery_type.match(/cloud/)&amp;&amp;!this.options.gallery_type.match(/maga/)&amp;&amp;(this.window.options.frame_url=this.widget_base+this.options.gallery_type.replace("_cloud","")+".php?mode=cloud&amp;cloudurl="+this.options.cloud_url);this.options.gallery_type.match(/maga/)&amp;&amp;(this.window.options.frame_url=this.magazine_base+this.options.cloud_url);this.window.create_or_update()}}
class RMLayerPhotoGalleryWithSpotIcon extends RMLayerPhotoGallery{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerPhotoGalleryWithLayerIcon extends RMLayerPhotoGallery{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotPhotoGallery extends RMSpotWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();if("slider"==this.options.gallery_type||"masonry"==this.options.gallery_type)this.widget_base="https://www.hdmedia.fr/widgets/galerie/",this.window.options.frame_url=this.widget_base+this.options.gallery_type+".php?mode=galerie&amp;idgalerie="+this.options.gallery_id;"diapo2d"==this.options.gallery_type&amp;&amp;(this.window.options.frame_url=adresseVisite+"diapo2d-"+this.options.gallery_id+
".html");this.options.gallery_type.match(/cloud/)&amp;&amp;!this.options.gallery_type.match(/maga/)&amp;&amp;(this.window.options.frame_url=this.widget_base+this.options.gallery_type.replace("_cloud","")+".php?mode=cloud&amp;cloudurl="+this.options.cloud_url);this.options.gallery_type.match(/maga/)&amp;&amp;(this.window.options.frame_url=this.magazine_base+this.options.cloud_url);this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded()}}
class RMSpotPhotoGalleryWithSpotIcon extends RMSpotPhotoGallery{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotPhotoGalleryWithLayerIcon extends RMSpotPhotoGallery{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}class RMLayerPartners extends RMLayerWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMLayerPartnersWithSpotIcon extends RMLayerPartners{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerPartnersWithLayerIcon extends RMLayerPartners{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}class RMSpotPartners extends RMSpotWidget{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.loadiframe()}}
class RMSpotPartnersWithSpotIcon extends RMSpotPartners{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotPartnersWithLayerIcon extends RMSpotPartners{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotYoutube extends RMSpot{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options);this.options_youtube_video={name:a.name+"_youtube_video",url:"https://lib.hdmedia.fr/kryoutube.js",width:a.dimensions.width,height:a.dimensions.height,visible:!0,frame_url:a.widget_url,krname:a.name+"_youtube_video",ath:a.directions.ath,atv:a.directions.atv,renderer:"css3d",distorted:a.d3d.distorted,rx:a.d3d.rx,ry:a.d3d.ry,rz:a.d3d.rz,tx:a.d3d.tx,
ty:a.d3d.ty,tz:a.d3d.tz,scale:a.scale,depth:a.d3d.depth,rotationorder:a.d3d.rotationorder,close_button:a.close_button};void 0!=this.window?Object.assign(this.window.options,this.options_youtube_video):(this.window=new RMSpot(this.options_youtube_video,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.width=this.options_youtube_video.width;this.window.kr_obj.height=this.options_youtube_video.height;this.window.kr_obj.ath=
this.options.directions.ath;this.window.kr_obj.atv=this.options.directions.atv}close(){super.close();this.window.kr_obj.stopme()}}class RMSpotYoutubeWithSpotIcon extends RMSpotYoutube{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMSpotYoutubeWithLayerIcon extends RMSpotYoutube{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}}
class RMLayerYoutube extends RMLayer{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();let a=clone(this.options);this.options_youtube_video={name:a.name+"_youtube_video",url:"https://lib.hdmedia.fr/kryoutube.js",width:a.dimensions.width,height:a.dimensions.height,visible:!0,frame_url:a.widget_url,krname:a.name+"_youtube_video",align:a.placement.align,x:a.placement.x,y:a.placement.y,button_close:a.button_close,keep:a.keep};void 0!=this.window?Object.assign(this.window.options,
this.options_youtube_video):(this.window=new RMLayer(this.options_youtube_video,this.kr,this.global_kr),this.window.set_parent(this));this.window.create_or_update()}}
class RMLayerYoutubeWithLayerIcon extends RMLayerYoutube{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_2d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.width=this.options_youtube_video.width;this.window.kr_obj.height=this.options_youtube_video.height}close(){super.close();this.window.kr_obj.stopme()}}
class RMLayerYoutubeWithSpotIcon extends RMLayerYoutube{constructor(a,b,c){super(a,b,c)}create_or_update(){super.create_or_update();this.create_icon_3d();this.set_action_icon();this.window.options.visible=!1;this.window.options.enabled=!1;this.window.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.window.kr_obj.width=this.options_youtube_video.width;this.window.kr_obj.height=this.options_youtube_video.height}close(){super.close();this.window.kr_obj.stopme()}}
class RMIntro extends RMSpotImage{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update()}on_kr_loaded(){super.on_kr_loaded();this.hide_close_button();setTimeout(function(){if(void 0!=this.options.speed)switch(this.options.speed){case "speed_360":this.options.motiontype="smooth(180,180,360)";break;case "speed_180":this.options.motiontype="smooth(150,75,180)";break;case "speed_45":this.options.motiontype="smooth(90,45,45)";break;case "speed_20":this.options.motiontype=
"smooth(80,40,20)";break;default:this.options.motiontype="smooth(120,60,90)"}this.kr.actions.looktohotspot(this.window.kr_obj.name,this.options.fov,this.options.motiontype)}.bind(this),1E3)}}
class RMIntroPlanet extends RMSpotImage{constructor(a,b,c){super(a,b,c)}create_or_update(){this.is_virtual=!0;super.create_or_update();this.window.kr_obj.onloaded=function(){setTimeout(function(){this.launch_planet()}.bind(this),100)}.bind(this)}launch_planet(){this.set_planet_view();setTimeout(function(){this.set_normal_view()}.bind(this),2E3)}set_planet_view(){let a=this.kr.view;a.stereographic=!0;a.fisheye=1;a.fov=this.options.fov;a.fovtype="MFOV";a.fovmin=120;a.fovmax=170;a.hlookat=0;a.vlookat=
90}set_normal_view(){let a=this.kr.view;this.kr.actions.tween("view.hlookat",0,2,"easeInOutQuad",function(){}.bind(this));this.kr.actions.tween("view.vlookat",8,2,"easeInOutQuad",function(){}.bind(this));this.kr.actions.tween("view.fov",110,2,"easeInOutQuad",function(){}.bind(this));this.kr.actions.tween("view.fisheye",0,2,"easeInOutQuad",function(){}.bind(this));this.kr.call("tween(view.architectural,  0.0, distance(1.0, 0.45), easeoutquad);");setTimeout(function(){a.fovmin=60;a.fovmax=130},2200)}}
var global_nb_snow=0;
class RMLayerSnow extends RM{constructor(a,b,c){super(a,b,c)}create_or_update(){this.snow_list=[];this.nb_snow_base=1E3;this.nb_snow_max=5E3;let a=clone(this.options);this.options_snow={name:a.name+"_snow",url:"https://lib.hdmedia.fr/snow.js",blendmode:"normal",mode:"image",imageurl:a.imageurl,flakes:this.nb_snow_base,imagescale:.5,speed:2,shake:4,speedvariance:2,spreading:3,wind:1,winddir:90,drag:!1,enabled:!1,keep:a.keep,invert:a.invert};void 0!=this.snow?this.snow.destroy():global_nb_snow++;this.snow=
new RMLayer(this.options_snow,this.kr,this.global_kr);setTimeout(function(){this.check_perfs()}.bind(this),2E3)}check_perfs(){25&gt;this.kr.display.currentfps&amp;&amp;this.adjust_perfs()}adjust_perfs(){var a=25/this.kr.display.currentfps;1&gt;a&amp;&amp;(a=1);this.snow.options.flakes/=a;this.snow.create_or_update()}destroy(){super.destroy();this.snow.destroy();global_nb_snow--}}
class RMLayerFireworks extends RM{constructor(a,b,c){super(a,b,c)}create_or_update(){this.options_fire={name:this.options.name+"_fire",url:"https://lib.hdmedia.fr/krfireworks.js",drag:!1,enabled:!1,keep:this.options.keep};this.fire=new RMLayer(this.options_fire,this.kr,this.global_kr)}destroy(){super.destroy();this.fire.destroy()}}
class RMLimit extends RM{constructor(a,b,c){super(a,b,c)}create_or_update(){this.options_limit={name:this.options.name+"_limit",drag:!1,enabled:!1,keep:this.options.keep};this.kr.set("view.limitview","range");this.kr.set("view.hlookatmin",this.options.custom_limit.left);this.kr.set("view.hlookatmax",this.options.custom_limit.right);this.kr.set("view.vlookatmin",this.options.custom_limit.top);this.kr.set("view.vlookatmax",this.options.custom_limit.bottom)}};
</pre></body></html>