if(!Object['hasOwnProperty']('values')){Object['values']=function(c){return Object['keys'](c)['map'](function(d){return c[d];});};}if(!String['prototype']['startsWith']){String['prototype']['startsWith']=function(e,f){f=f||0x0;return this['indexOf'](e,f)===f;};}TDV['EventDispatcher']=function(){this['_handlers']={};};TDV['EventDispatcher']['prototype']['bind']=function(g,h){if(!(g in this['_handlers']))this['_handlers'][g]=[];this['_handlers'][g]['push'](h);};TDV['EventDispatcher']['prototype']['unbind']=function(i,j){if(i in this['_handlers']){var k=this['_handlers'][i]['indexOf'](j);if(k!=-0x1)this['_handlers'][i]['splice'](k,0x1);}};TDV['EventDispatcher']['prototype']['createNewEvent']=function(l){if(typeof Event==='function')return new Event(l);var m=document['createEvent']('Event');m['initEvent'](l,!![],!![]);return m;};TDV['EventDispatcher']['prototype']['dispatchEvent']=function(n){if(n['type']in this['_handlers']){var o=this['_handlers'][n['type']];for(var p=0x0;p0x0)return;}if(w['sourceClassName']=='MediaAudio'||w['sourceClassName']=='Model3DCameraSequence'||this['_isInitialized'])return;this['_isInitialized']=!![];u['unbind']('preloadMediaShow',t,this,!![]);u['unbindOnObjectsOf']('PlayListItem','begin',t,this,!![]);u['unbind']('stateChange',t,this,!![]);if(this['_isPaused'])this['pause']();window['parent']['postMessage'](TDV['Tour']['EVENT_TOUR_LOADED'],'*');this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_LOADED']));};this['_setup']();this['_settings']['set'](TDV['PlayerSettings']['SCRIPT_URL'],this['_currentScriptUrl']);var u=this['player']=TDV['PlayerAPI']['create'](this['_settings']);u['bindOnObject']('rootPlayer','start',v,this,!![]);window['addEventListener']('message',function(B){var C=B['data'];if(C=='pauseTour')C='pause';else if(C=='resumeTour')C='resume';else return;this[C]['apply'](this);}['bind'](this));function v(D){u['unbindOnObject']('rootPlayer','start',v,this,!![]);var E=D['data']['source'];E['get']('data')['tour']=this;var F=window['navigator']['language']||window['navigator']['userLanguage']||'en';var G=E['get']('data')['locales']||{};var H=E['get']('data')['defaultLocale']||F;var I=this['locManager']=new TDV['Tour']['LocaleManager'](E,G,H,this['_settings']['get'](TDV['PlayerSettings']['QUERY_STRING_PARAMETERS']));E['get']('data')['localeManager']=I;var J=function(){var U=E['get']('data');if(!('updateText'in U)){U['updateText']=function(Y){var Z=Y[0x0]['split']('.');if(Z['length']==0x2){var a0=I['trans']['apply'](I,Y);var a1=Y[0x1]||E;if(typeof a1=='string'){var a2=a1['split']('.');a1=E[a2['shift']()];for(var a3=0x0;a30x0&&aa['get']('class')=='Model3D'){E['startMeasurement'](null,a9[0x0]);}break;}}['bind'](this);this['_onBeforeUnload']=function(ab){E['stopTextToSpeech']();};window['addEventListener']('hashchange',this['_onHashChange']);window['addEventListener']('beforeunload',this['_onBeforeUnload']);document['addEventListener']('keyup',this['_onKeyUp']);E['bind']('tourEnded',function(){this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_ENDED']));},this,!![]);E['bind']('mute_changed',function(){if(this['get']('mute'))this['stopTextToSpeech']();},E,!![]);u['bind']('preloadMediaShow',t,this,!![]);u['bind']('stateChange',t,this,!![]);u['bindOnObjectsOf']('PlayListItem','begin',t,this,!![]);this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_INITIALIZED']));}};TDV['Tour']['prototype']['pause']=function(){this['_isPaused']=!![];if(!this['_isInitialized'])return;var ac=function(al){var am=al['source'];if(!this['_isPaused'])am['unbind']('stateChange',ac,this);else if(am['get']('state')=='playing'){am['pause']();}};var ad=this['player']['getByClassName']('PlayList');for(var ae=0x0,af=ad['length'];ae0xb4)aF-=0x168;}else{aF=aE['get']('yaw');aG=aE['get']('pitch');}var aM=aB['getPlayListWithItem'](az);if(aM){var aN=function(){aB['setPanoramaCameraWithSpot'](aM,az,aF,aG);};if(!this['_isInitialized']){var aO=function(){az['unbind']('begin',aO,this);aN();};az['bind']('begin',aO,this);}else{aN();}}}}};TDV['Tour']['prototype']['setComponentsVisibilityByTags']=function(aP,aQ,aR){var aS=this['_getRootPlayer']();if(aS!==undefined){var aT=aS['getComponentsByTags'](aP,aR);for(var aU=0x0,aV=aT['length'];aU0x0;};TDV['Tour']['prototype']['_getOrientation']=function(){var bm=this['_getRootPlayer']();if(bm){return bm['get']('orientation');}else if(this['_lockedOrientation']){return this['_lockedOrientation'];}else{return TDV['PlayerAPI']['getOrientation']();}};TDV['Tour']['prototype']['_getParams']=function(bn){var bo={};bn['split']('&')['forEach'](function(bp){var bq=bp['split']('=')[0x0],br=decodeURIComponent(bp['split']('=')[0x1]);bo[bq['toLowerCase']()]=br;});return bo;};TDV['Tour']['prototype']['_getRootPlayer']=function(){return this['player']!==undefined?this['player']['getById']('rootPlayer'):undefined;};TDV['Tour']['prototype']['_setup']=function(){if(!this['_orientation'])this['_orientation']=this['_getOrientation']();this['_device']=this['_getDevice']();this['_currentScriptUrl']=this['_getScriptUrl']();if(this['isMobile']()){var bs=document['getElementById']('metaViewport');if(bs){var bt=this['_devicesUrl'][this['_device']];var bu=0x1;if(typeof bt=='object'&&this['_orientation']in bt&&this['_orientation']==TDV['PlayerAPI']['ORIENTATION_LANDSCAPE']||this['_device']==TDV['Tour']['DEVICE_GENERAL']){bu=bs['getAttribute']('data-tdv-general-scale')||0.5;}var bv=bs['getAttribute']('content');bv=bv['replace'](/initial-scale=(\d+(\.\d+)?)/,function(bw,bx){return'initial-scale='+bu;});bs['setAttribute']('content',bv);}}};TDV['Tour']['prototype']['_getScriptUrl']=function(){var by=this['_devicesUrl'][this['_device']];if(typeof by=='object'){if(this['_orientation']in by){by=by[this['_orientation']];}}return by;};TDV['Tour']['prototype']['_getDevice']=function(){var bz=TDV['Tour']['DEVICE_GENERAL'];if(!this['_isRemoteSession']&&this['isMobile']()){if(this['isIPad']()&&TDV['Tour']['DEVICE_IPAD']in this['_devicesUrl'])bz=TDV['Tour']['DEVICE_IPAD'];else if(TDV['Tour']['DEVICE_MOBILE']in this['_devicesUrl'])bz=TDV['Tour']['DEVICE_MOBILE'];}return bz;};TDV['Tour']['prototype']['_setMediaFromURL']=function(bA,bB){var bC=this['_getRootPlayer']();var bD=bC['getActivePlayerWithViewer'](bC['getMainViewer']());var bE=bD?bC['getMediaFromPlayer'](bD):undefined;var bF;if('media'in bA){var bG=bA['media'];var bH=Number(bG);bF=isNaN(bH)?this['setMediaByName'](bG):this['setMediaByIndex'](bH-0x1);}else if('media-index'in bA){bF=this['setMediaByIndex'](parseInt(bA['media-index'])-0x1);}else if('media-name'in bA){bF=this['setMediaByName'](decodeURIComponent(bA['media-name']));}if(bF==undefined&&bB!==undefined){bF=this['setMediaByIndex'](0x0);}if(bF!=undefined){var bI=bF['get']('player');var bJ=function(){if('trigger-overlay-name'in bA){this['triggerOverlayByName'](bF['get']('media'),bA['trigger-overlay-name'],bA['trigger-overlay-event']);}if('focus-overlay-name'in bA){this['focusOverlayByName'](bF,bA['focus-overlay-name']);}else if('yaw'in bA||'pitch'in bA){var bN=bC['getPlayListWithItem'](bF);if(bN){switch(bF['get']('class')){case'PanoramaPlayListItem':var bO=parseFloat(bA['yaw'])||undefined;var bP=parseFloat(bA['pitch'])||undefined;var bQ=parseFloat(bA['fov'])||undefined;bC['setPanoramaCameraWithSpot'](bN,bF,bO,bP,bQ);break;case'Model3DPlayListItem':var bR=['yaw','pitch','x','y','z','distance'];var bS={};for(var bT=0x0;bT0x0){cg['set']('objects',ch['concat'](ci));}};if('hide-components-tags'in c3||'hct'in c3)c6['call'](this,this['setComponentsVisibilityByTags'],c3['hide-components-tags']||c3['hct'],![]);if('show-components-tags'in c3||'sct'in c3)c6['call'](this,this['setComponentsVisibilityByTags'],c3['show-components-tags']||c3['sct'],!![]);if('hide-overlays-tags'in c3||'hot'in c3)c6['call'](this,this['setOverlaysVisibilityByTags'],c3['hide-overlays-tags']||c3['hot'],![]);if('show-overlays-tags'in c3||'sot'in c3)c6['call'](this,this['setOverlaysVisibilityByTags'],c3['show-overlays-tags']||c3['sot'],!![]);if('hide-overlays-names'in c3||'hon'in c3)this['setOverlaysVisibilityByName'](decodeURIComponent(c3['hide-overlays-names']||c3['hon'])['split'](','),![]);if('show-overlays-names'in c3||'son'in c3)this['setOverlaysVisibilityByName'](decodeURIComponent(c3['show-overlays-names']||c3['son'])['split'](','),!![]);if('show-object-ids'in c3||'sobjids'in c3)this['setObjectsVisibilityByID'](decodeURIComponent(c3['show-object-ids']||c3['sobjids'])['split'](','),!![]);if('hide-object-ids'in c3||'hobjids'in c3)this['setObjectsVisibilityByID'](decodeURIComponent(c3['hide-object-ids']||c3['hobjids'])['split'](','),![]);if('variant'in c3)this['setModel3DVariant'](decodeURIComponent(c3['variant']));if('measures'in c3)c7['call'](this,decodeURIComponent(c3['measures']['split'](';')));};TDV['Tour']['LocaleManager']=function(cv,cw,cx,cy){TDV['EventDispatcher']['call'](this);this['rootPlayer']=cv;this['locales']={};this['defaultLocale']=cx;this['queryParam']=cy;this['currentLocaleMap']={};this['currentLocaleID']=undefined;for(var cz in cw){this['registerLocale'](cz,cw[cz]);}};TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged';TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(cA,cB){var cC=[cA,cA['split']('-')[0x0]];for(var cD=0x0;cD0x2){var cU=typeof arguments[0x2]=='object'?arguments[0x2]:undefined;var cV=arguments;cT=cT['replace'](/\{\{([\w _\-\.]+)\}\}/g,function(cX,cY){if(cS(cY))cY=cV[parseInt(cY)+0x1];else if(cU!==undefined)cY=cU[cY];if(typeof cY=='string')cY=this['currentLocaleMap'][cY]||cY;else if(typeof cY=='function')cY=cY['call'](this['rootPlayer']);return cY!==undefined?cY:'';}['bind'](this));}return cT;};TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(cZ){cZ=cZ['replace'](/(^|\n)#[^\n]*/g,'');var d0={};var d1=cZ['split']('\x0a');for(var d2=0x0,d3=d1['length'];d20x0;};TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']0x0&&dM['length']>=dO||dw>0x0&&e9['distance']>dw||dP&&ds['testIntersection'](dQ,e9['position']))return;var ea=dC['call'](this,e9['panorama'],e9['yaw']-dH['get']('yaw'),e9['pitch'],e9['width'],e9['height'],e9['anchorX'],e9['anchorY'],e9['opacity'],e9['transparentAreaActive'],e9['image'],dA&&!e9['excludeSurfacePanorama']);var eb=dD['call'](this,e9['panorama'],e9['yaw']-dH['get']('yaw'),e9['backwardYaw'],e9['floorDistance'],!e9['excludeSurfacePanorama']);dM['push'](ea);var ec=dN['findIndex'](function(ef){return ef['get']('panorama')==e9['panorama'];});if(ec!=-0x1)dN['splice'](ec,0x1);dN['push'](eb);var ed=ea['get']('areas')[0x0];if(e9['toolTip'])ed['set']('toolTip',e9['toolTip']);ed['bind']('click',dB['bind'](this,dK,e9['panorama'],ds,!![]),this);eb['bind']('select',dB['bind'](this,dK,e9['panorama'],ds,!![]),this);var ee=e9['actions'];if(ee){dG['call'](this,ea,ee);if('click'in ee)eb['bind']('select',new Function('event',ee['click']),this);}}['bind'](this));dK['set']('overlays',(dK['get']('overlays')||[])['concat'](dM));dK['set']('adjacentPanoramas',dN);var dR=!ds['get']('surfaceSelectionEnabled')||!!dI['excludeSurfaceSelectionModel'];var dS;if(dR){dS=dE['call'](this,dH['get']('x'),dH['get']('y'),dH['get']('z'),dI['width'],dI['height'],dI['anchorX']?dI['anchorX']:0.5,dI['anchorY']?dI['anchorY']:0.5,dI['opacity'],!!dI['transparentAreaActive'],dt['showOnlyHotspotsLineSight'],_getObject(this,dI['image']));dS['set']('id','sprite_'+dH['get']('id'));dS['set']('translationLineColor',dI['translationLineColor']!=null?dI['translationLineColor']:'#ffffff');dS['set']('translationLineOpacity',dI['translationLineOpacity']!=null?dI['translationLineOpacity']:0x1);dS['set']('translationLineVisible',dI['translationLineVisible']!=null?dI['translationLineVisible']:![]);dS['set']('translationLineWidth',dI['translationLineWidth']!=null?dI['translationLineWidth']:0x1);dS['set']('translationLength',dI['translationLength']!=null?dI['translationLength']:dt['showOnlyHotspotsLineSight']&&(dI['translationY']==null||dI['translationY']==0x0)?dI['height']/0x2:undefined);dS['set']('translationX',dI['translationX']!=null?dI['translationX']:0x0);dS['set']('translationY',dI['translationY']!=null&&dI['translationY']!=0x0?dI['translationY']:dt['showOnlyHotspotsLineSight']?0x1:0x0);dS['set']('translationZ',dI['translationZ']!=null?dI['translationZ']:0x0);if(dI['toolTip'])dS['set']('toolTip',dI['toolTip']);}else dS=dF['call'](this,dH['get']('x'),dH['get']('y'),dH['get']('z'));dI['object']=dS;if(dI['tags']!==undefined)dS['get']('data')['tags']=dI['tags'];if(dI['enabled']!==undefined)dS['set']('enabled',dI['enabled']);dS['get']('data')['location']=dH;var dT=dI['actions'];if(dT){dG['call'](this,dS,dT);}dS['bind']('click',dB['bind'](this,ds,dK,ds,![]),this);dy['push'](dS);}['bind'](this));ds['set']('objects',(ds['get']('objects')||[])['concat'](dy));dt['isInitialized']=!![];function dB(eg,eh,ei,ej){var ek=this['getPlayListsWithMedia'](eg,!![])['filter'](function(er){return this['getMediaFromPlayer'](er['get']('items')[er['get']('selectedIndex')]['get']('player'))==eg;}['bind'](this));if(ek['length']==0x0)return;var el=this['getPlayListItemByMedia'](ek[0x0],eg);var em=el['get']('player')['get']('viewerArea');var en;this['getPlayListsWithMedia'](eh)['forEach'](function(es){var et=this['getPlayListItemByMedia'](es,eh);if(et['get']('player')['get']('viewerArea')==em){if(ej&&el['get']('player')['get']('viewerArea')['get']('translationTransitionEnabled')){eo();et['bind']('begin',eq,this);}es['set']('selectedIndex',es['get']('items')['indexOf'](et));}}['bind'](this));function eo(){en=ei['get']('objects')['filter'](function(eu){var ev=eu['get']('data');return ev&&ev['location']!==undefined;});en['forEach'](function(ew){ew['set']('enabled',![]);});}function ep(){en['forEach'](function(ex){ex['set']('enabled',!![]);});}function eq(ey){ey['source']['unbind']('begin',eq,this);ep();}}function dC(ez,eA,eB,eC,eD,eE,eF,eG,eH,eI,eJ){var eK=_createInstanceFromObj(this,{'class':'HotspotPanoramaOverlay','useHandCursor':!![],'enabledInSurfaceSelection':eJ,'areas':[{'class':'HotspotPanoramaOverlayArea','mapColor':eH?'any':'image'}],'items':[{'class':'FlatHotspotPanoramaOverlayImage','yaw':eA,'pitch':eB,'width':eC,'height':eD,'offsetX':eE*eC,'offsetY':eF*eD,'opacity':eG!=undefined?eG:0x1}]});eK['get']('items')[0x0]['set']('image',eI);return eK;}function dD(eL,eM,eN,eO,eP){return _createInstanceFromObj(this,{'class':'AdjacentPanorama','panorama':'this.'+eL['get']('id'),'backwardYaw':eN,'yaw':eM,'distance':eO,'enabledInSurfaceSelection':eP});}function dE(eQ,eR,eS,eT,eU,eV,eW,eX,eY,eZ,f0){var f1=_createInstanceFromObj(this,{'class':'SpriteModel3DObject','x':eQ,'y':eR,'z':eS,'anchorX':eV,'anchorY':eW,'depthTest':eZ,'transparentAreaActive':eY,'hideBasedOnDistance':!![],'width':eT,'height':eU,'opacity':eX!=undefined?eX:0x1,'data':{}});f1['set']('image',f0);return f1;}function dF(f2,f3,f4){return _createInstanceFromObj(this,{'class':'SurfaceReticleModel3DObject','x':f2,'y':f3,'z':f4,'depthTest':![],'data':{}});}function dG(f5,f6){Object['keys'](f6)['forEach'](function(f7){if(f5['hasEvent'](f7))f5['bind'](f7,new Function('event',f6[f7]),this);}['bind'](this));}}function _findLocationWithPanorama(f8){var f9=this['getByClassName']('Model3D');for(var fa=0x0,fb=f9['length'];fa0x0){var fj=fh[fi];if(fj['get']('viewerArea')!=fg){fh['splice'](fi,0x1);}}return fh;}function _createInstance(fk,fl,fm){var fn=fk['createInstance'](fl);if(fm){fn['set']('id',fm);fk[fm]=fn;}return fn;}function _createInstanceFromObj(fo,fp){return fq(fp);function fq(fr,fs){if(typeof fr=='object'){if('class'in fr){try{fs=_createInstance(fo,fr['class'],fr['id']);}catch(fw){fs=fr;}}else{fs=fr;}}var ft=function(fx,fy){if('set'in fs)fs['set'](fx,fy);else fs[fx]=fy;};for(var fu in fr){var fv=fr[fu];if(typeof fv=='object'&&fv!==null)ft(fu,fq(fv,fs));else if(typeof fv=='string'&&fv['indexOf']('this.')==0x0)ft(fu,fo[fv['replace']('this.','')]);else ft(fu,fv);}return fs;}}TDV['Tour']['Script']=function(){};TDV['Tour']['Script']['assignObjRecursively']=function(fz,fA){for(var fB in fz){var fC=fz[fB];if(typeof fC=='object'&&fC!==null)this['assignObjRecursively'](fz[fB],fA[fB]||(fA[fB]={}));else fA[fB]=fC;}return fA;};TDV['Tour']['Script']['autotriggerAtStart']=function(fD,fE,fF){var fG=function(fH){fE();if(fF==!![])fD['unbind']('change',fG,this);};fD['bind']('change',fG,this);};TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(fI,fJ,fK){var fL=function(){fM['unbind']('stop',fL,this);if(fK==fO['get']('backgroundColor')&&fR==fO['get']('backgroundColorRatios')){fO['set']('backgroundColor',fP);fO['set']('backgroundColorRatios',fQ);}};var fM=fI['get']('items')[fJ];var fN=fM['get']('player');var fO=fN['get']('viewerArea');var fP=fO['get']('backgroundColor');var fQ=fO['get']('backgroundColorRatios');var fR=[0x0];if(fK!=fP||fR!=fQ){fO['set']('backgroundColor',fK);fO['set']('backgroundColorRatios',fR);fM['bind']('stop',fL,this);}};TDV['Tour']['Script']['changeOpacityWhilePlay']=function(fS,fT,fU){var fV=function(){fW['unbind']('stop',fV,this);if(fZ==fY['get']('backgroundOpacity')){fY['set']('opacity',fZ);}};var fW=fS['get']('items')[fT];var fX=fW['get']('player');var fY=fX['get']('viewerArea');var fZ=fY['get']('backgroundOpacity');if(fU!=fZ){fY['set']('backgroundOpacity',fU);fW['bind']('stop',fV,this);}};TDV['Tour']['Script']['changePlayListWithSameSpot']=function(g0,g1){var g2=g0['get']('selectedIndex');if(g2>=0x0&&g1>=0x0&&g2!=g1){var g3=g0['get']('items')[g2];var g4=g0['get']('items')[g1];var g5=g3['get']('player');var g6=g4['get']('player');if((g5['get']('class')=='PanoramaPlayer'||g5['get']('class')=='Video360Player')&&(g6['get']('class')=='PanoramaPlayer'||g6['get']('class')=='Video360Player')){var g7=this['clonePanoramaCamera'](g4['get']('camera'));this['setCameraSameSpotAsMedia'](g7,g3['get']('media'));var g8=g7['get']('initialPosition');if(g8['get']('yaw')==undefined||g8['get']('pitch')==undefined||g8['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](g4['get']('media'),g7);}}};TDV['Tour']['Script']['clone']=function(g9,gb){var gc=this['rootPlayer']['createInstance'](g9['get']('class'));var gd=g9['get']('id');if(gd){var ge=gd+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);gc['set']('id',ge);this[ge]=gc;}for(var gf=0x0;gf0x0){for(var gC=0x0;gC>0x10&0xff,gY>>0x8&0xff,gY&0xff],'finalRGB':[gZ>>0x10&0xff,gZ>>0x8&0xff,gZ&0xff]};gR[gT+gV]=gQ;}else{gU[gV]=gS?gL['get'](gV):gL[gV];if(gV=='yaw'&&Math['abs'](gW-gU[gV])>0xb4)gU[gV]=gU[gV]+(gW>gU[gV]?0x168:-0x168);gR[gT+gV]=gQ;}}gQ['set']('duration',(gN||0x0)*0x3e8);gQ['set']('easing',gO||'cubic_in_out');gQ['set']('animationDirection',gP||'normal');gQ['bind']('end',function(){for(var h0 in gU){if(gR[gT+h0]==gQ)delete gR[gT+h0];}this['disposeInstance'](gQ);},this);gQ['bind']('frame',function(){var h1=gQ['getPosition']();for(var h2 in gU){var h3=gU[h2];if(gR[gT+h2]!=gQ)continue;if(typeof h3==='object'&&'color'in h3){var h4=Math['round'](h3['initialRGB'][0x0]+(h3['finalRGB'][0x0]-h3['initialRGB'][0x0])*h1);var h5=Math['round'](h3['initialRGB'][0x1]+(h3['finalRGB'][0x1]-h3['initialRGB'][0x1])*h1);var h6=Math['round'](h3['initialRGB'][0x2]+(h3['finalRGB'][0x2]-h3['initialRGB'][0x2])*h1);h3='#'+((0x1<<0x18)+(h4<<0x10)+(h5<<0x8)+h6)['toString'](0x10)['slice'](0x1);}else{h3=h3+(gM[h2]-h3)*h1;}if(gS)gL['set'](h2,h3);else gL[h2]=h3;}},this);return gQ;};TDV['Tour']['Script']['executeFunctionWhenChange']=function(h7,h8,h9,ha){var hb=undefined;var hc=function(hg){if(hg['data']['previousSelectedIndex']==h8){if(ha)ha['call'](this);if(h9&&hb)hb['unbind']('end',h9,this);h7['unbind']('change',hc,this);}};if(h9){var hd=h7['get']('items')[h8];var he=hd['get']('class');if(he=='PanoramaPlayListItem'||he=='Model3DPlayListItem'){var hf=hd['get']('camera');if(hf!=undefined){hb=hf['get']('initialSequence');if(hb==undefined)hb=hf['get']('idleSequence');}}else{hb=hd['get']('media');}if(hb){hb['bind']('end',h9,this);}}h7['bind']('change',hc,this);};TDV['Tour']['Script']['executeJS']=function(hh){try{eval(hh);}catch(hi){console['log']('Javascript\x20error:\x20'+hi);console['log']('\x20\x20\x20code:\x20'+hh);}};TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(hj){var hk=hj['get']('buttonPlayPause');if(typeof hk!=='undefined'&&hj['get']('state')=='playing'){if(!Array['isArray'](hk))hk=[hk];for(var hl=0x0;hl0x1){hp['sort'](function(hq,hr){var hs=hq['get']('class');var ht=hr['get']('class');if(hs=='Model3DPlayer')return 0x1;else if(ht=='Model3DPlayer')return-0x1;else return 0x0;});}return hp['length']>0x0?hp[0x0]:undefined;};TDV['Tour']['Script']['getActivePlayersWithViewer']=function(hu){var hv=this['getCurrentPlayers']();var hw=hv['length'];var hx=[];while(hw-->0x0){var hy=hv[hw];if(hy['get']('viewerArea')==hu){var hz=hy['get']('class');if(hz=='PanoramaPlayer'&&(hy['get']('panorama')!=undefined||hy['get']('video')!=undefined)||(hz=='VideoPlayer'||hz=='Video360Player')&&hy['get']('video')!=undefined||hz=='PhotoAlbumPlayer'&&hy['get']('photoAlbum')!=undefined||hz=='MapPlayer'&&hy['get']('map')!=undefined||hz=='Model3DPlayer'&&hy['get']('model')!=undefined)hx['push'](hy);}}return hx;};TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(hA){var hB=undefined;var hC=undefined;switch(hA['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':hB='PanoramaPlayer';hC='panorama';break;case'Video360':hB='PanoramaPlayer';hC='video';break;case'PhotoAlbum':hB='PhotoAlbumPlayer';hC='photoAlbum';break;case'Map':hB='MapPlayer';hC='map';break;case'Video':hB='VideoPlayer';hC='video';break;case'Model3D':hB='Model3DPlayer';hC='media';break;}if(hB!=undefined){var hD=this['getByClassName'](hB);for(var hE=0x0;hE{return hW['get']('class')=='PanoramaModel3DLocation'?hW['get']('data')['object']:hW;});};TDV['Tour']['Script']['getOverlaysByGroupname']=function(hX){var hY=this['get']('data');var hZ='groupname2Overlays';var i0=hY[hZ];if(!i0){var i1=['HotspotPanoramaOverlay','VideoPanoramaOverlay','QuadVideoPanoramaOverlay','FramePanoramaOverlay','QuadFramePanoramaOverlay'];hY[hZ]=i0={};for(var i2=0x0;i20x1){iu['sort'](function(iB,iC){var iD=iB['get']('data')['groupIndex'];var iE=iC['get']('data')['groupIndex'];return iD-iE;});for(var iv=0x0,iw=iu['length'];iv=0x0;--j2){if(j6['indexOf'](j5[j2])==-0x1)j5['splice'](j2,0x1);}}else if(iM=='or'){for(var j2=j6['length']-0x1;j2>=0x0;--j2){var iX=j6[j2];if(j5['indexOf'](iX)==-0x1)j5['push'](iX);}}}}return j5||[];};TDV['Tour']['Script']['getComponentByName']=function(j7){var j8=this['getByClassName']('UIComponent');for(var j9=0x0,ja=j8['length'];j9jh)jh=jj['get']('width');}return jh;}else{return jj['get']('width');}default:return jf['get']('width');}};TDV['Tour']['Script']['getMediaHeight']=function(jk){switch(jk['get']('class')){case'Video360':var jl=jk['get']('video');if(jl instanceof Array){var jm=0x0;for(var jn=0x0;jnjm)jm=jo['get']('height');}return jm;}else{return jo['get']('height');}default:return jk['get']('height');}};TDV['Tour']['Script']['getOverlays']=function(jp){switch(jp['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var jq=jp['get']('overlays')['concat']()||[];var jr=jp['get']('frames');for(var js=0x0;js=0x0;--k3){var k4=k2[k3];var k5=k4['get']('player');if(k5!==undefined&&k5['get']('viewerArea')==jX)return!![];}return![];};for(var k0=jY['length']-0x1;k0>=0x0;--k0){if(!jZ(jY[k0]))jY['splice'](k0,0x1);}return jY;};TDV['Tour']['Script']['getPlayListWithItem']=function(k6){var k7=this['getByClassName']('PlayList');for(var k8=k7['length']-0x1;k8>=0x0;--k8){var k9=k7[k8];var ka=k9['get']('items');for(var kb=ka['length']-0x1;kb>=0x0;--kb){var kc=ka[kb];if(kc==k6)return k9;}}return undefined;};TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(kd,ke){var kf=this['getPlayListsWithMedia'](kd,ke);return kf['length']>0x0?kf[0x0]:undefined;};TDV['Tour']['Script']['getPlayListItemByMedia']=function(kg,kh){var ki=kg['get']('items');for(var kj=0x0,kk=ki['length'];kj=0x0;--kt){var ku=ks[kt];if(ku['get']('media')!=kp||kq!=undefined&&ku['get']('player')!=kq){ks['splice'](kt,0x1);}}return ks;}else{return[];}};TDV['Tour']['Script']['historyGoBack']=function(kv){var kw=this['get']('data')['history'][kv['get']('id')];if(kw!=undefined){kw['back']();}};TDV['Tour']['Script']['historyGoForward']=function(kx){var ky=this['get']('data')['history'][kx['get']('id')];if(ky!=undefined){ky['forward']();}};TDV['Tour']['Script']['init']=function(){var kz=this['get']('data')['history'];var kA=function(kJ){var kK=kJ['source'];var kL=kK['get']('selectedIndex');if(kL<0x0)return;var kM=kK['get']('id');if(!kz['hasOwnProperty'](kM))kz[kM]=new TDV['Tour']['HistoryData'](kK);kz[kM]['add'](kL);};var kB=this['getByClassName']('PlayList');for(var kD=0x0,kE=kB['length'];kD=0x0){this['skip3DTransitionOnce'](kP['get']('items')[kQ]['get']('player'));}}for(var kD=0x0,kH=kG['length'];kD0x0){var l5=lf['get']('data');if(l5===undefined)continue;var lh=l5['name'];lf['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',lh),this,![]);}}var li=this['mainPlayList']['get']('items')['concat'](this['getByClassName']('PlayListItem'));var lj={};for(var kY=0x0,l1=li['length'];kY{mu['set'](mw,mt['get'](mw));});}}function m0(mx){me=mx['source'];}function m1(my){m4['call'](this,my['source']);}function m2(mz){var mA=mz['get']('viewerArea');if(mA==m9){if(mc&&mc['get']('class')=='PanoramaPlayer'){mc['get']('camera')['set']('hoverFactor',mf);}mc=mz;me=mc;if(mc&&mc['get']('class')=='PanoramaPlayer'){mf=mc['get']('camera')['get']('hoverFactor');mc['get']('camera')['set']('hoverFactor',0x0);}}else if(mA==ma){if(md&&md['get']('class')=='PanoramaPlayer'){md['get']('camera')['set']('hoverFactor',mg);}md=mz;me=md;if(md&&md['get']('class')=='PanoramaPlayer'){mg=md['get']('camera')['get']('hoverFactor');md['get']('camera')['set']('hoverFactor',0x0);}}lZ(mz);}function m3(mB){var mC=this['getCurrentPlayers']();var mD=mC['length'];while(mD-->0x0){var mF=mC[mD];if(mF['get']('viewerArea')!=mB){mC['splice'](mD,0x1);}}for(mD=0x0;mD{return mJ['player']==mG;});if(mH){if(mH['media']['get']('class')=='Model3D'){mH['media']['get']('camera')['unbind']('positionSet',mH['updateFn'],this);}mh['splice'](mh['indexOf'](mH),0x1);}var mI=this['getMediaFromPlayer'](mG);if(!mI)return;mH={'media':mI,'player':mG,'updateFn':()=>{lZ(mG);}};mh['push'](mH);if(mH['media']['get']('class')=='Model3D'){mH['media']['get']('camera')['bind']('positionSet',mH['updateFn'],this);}m2(mG);}function m5(mK){m2(this['getActivePlayerWithViewer'](mK['source']));lZ(me);}var m6=lU['get']('children');var m7=m6[0x0];var m8=m6[0x1];var m9=m7['get']('children')[0x0];var ma=m8['get']('children')[0x0];var mb=m6[0x2];var mc,md,me;var mf,mg;var mh=[];m3['call'](this,m9);m3['call'](this,ma);m9['bind']('mouseDown',m5,this);ma['bind']('mouseDown',m5,this);lU['bind']('resize',function(){mb['set']('left',(lU['get']('actualWidth')-mb['get']('actualWidth'))*0.5);lV();},this);mb['bind']('mouseDown',function(mL){var mM=mL['pageX'];var mN=function(mO){var mP=mO['pageX'];var mQ=mM-mP;var mR=lU['get']('actualWidth');var mS=mb['get']('left');var mT=(typeof mS=='string'?lW(mS):mS)-mQ;if(mT<0x0){mP-=mT;mT=0x0;}else if(mT+mb['get']('actualWidth')>=mR){mP-=mT-(mR-mb['get']('actualWidth'));mT=mR-mb['get']('actualWidth');}mb['set']('left',mT);lV();mM=mP;};this['bind']('mouseMove',mN,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',mN,this);},this);},this);lV();};TDV['Tour']['Script']['_initTwinsViewer']=function(mU){function mV(){var nj=mU['get']('actualWidth');n8['get']('children')[0x0]['set']('width',nj);n9['get']('children')[0x0]['set']('width',nj);var nk=nc['get']('left');var nl=typeof nk=='string'?mW(nk):nk;nl+=nc['get']('actualWidth')*0.5;n8['set']('width',mX(nl));n9['set']('width',mX(nj-nl));}function mW(nm){return parseFloat(nm['replace']('%',''))/0x64*mU['get']('actualWidth');}function mX(nn){return nn/mU['get']('actualWidth')*0x64+'%';}function mY(no){mZ(no['source']);}function mZ(np){var nq=np==ne?nd:ne;if(nf&&np!=nf||!np||!nq)return;var nr=np['get']('class');var ns=nq['get']('class');if(nr=='PanoramaPlayer'&&ns=='PanoramaPlayer'){var nt=nq['get']('camera')['get']('initialPosition')['get']('yaw')-np['get']('camera')['get']('initialPosition')['get']('yaw');nq['setPosition'](np['get']('yaw')+nt,np['get']('pitch'),np['get']('roll'),np['get']('hfov'));}else if(nr=='Model3DPlayer'&&ns=='Model3DPlayer'){var nu=np['get']('model')['get']('camera');var nv=nq['get']('model')['get']('camera');var nw=['yaw','pitch','x','y','z','fov'];if(nu['get']('class')=='OrbitModel3DCamera'&&nv['get']('class')=='OrbitModel3DCamera')nw['push']('distance');nw['forEach'](nx=>{nv['set'](nx,nu['get'](nx));});}}function n0(ny){nf=ny['source'];}function n1(nz){nf=nd;}function n2(nA){n5['call'](this,nA['source']);}function n3(nB){var nC=nB['get']('viewerArea');if(nC==na){if(nd&&nd['get']('class')=='PanoramaPlayer'){nd['get']('camera')['set']('hoverFactor',ng);}nd=nB;nf=nd;if(nd&&nd['get']('class')=='PanoramaPlayer'){ng=nd['get']('camera')['get']('hoverFactor');nd['get']('camera')['set']('hoverFactor',0x0);}}else if(nC==nb){if(ne&&ne['get']('class')=='PanoramaPlayer'){ne['get']('camera')['set']('hoverFactor',nh);}ne=nB;nf=ne;if(ne&&ne['get']('class')=='PanoramaPlayer'){nh=ne['get']('camera')['get']('hoverFactor');ne['get']('camera')['set']('hoverFactor',0x0);}}mZ(nB);}function n4(nD){var nE=this['getCurrentPlayers']();var nF=nE['length'];while(nF-->0x0){var nH=nE[nF];if(nH['get']('viewerArea')!=nD){nE['splice'](nF,0x1);}}for(nF=0x0;nF{return nL['player']==nI;});if(nJ){if(nJ['media']['get']('class')=='Model3D'){nJ['media']['get']('camera')['unbind']('positionSet',nJ['updateFn'],this);}ni['splice'](ni['indexOf'](nJ),0x1);}var nK=this['getMediaFromPlayer'](nI);if(!nK)return;nJ={'media':nK,'player':nI,'updateFn':()=>{mZ(nI);}};ni['push'](nJ);if(nJ['media']['get']('class')=='Model3D'){nJ['media']['get']('camera')['bind']('positionSet',nJ['updateFn'],this);}n3(nI);}function n6(nM){n3(this['getActivePlayerWithViewer'](nM['source']));mZ(nf);}var n7=mU['get']('children');var n8=n7[0x0];var n9=n7[0x1];var na=n8['get']('children')[0x0];var nb=n9['get']('children')[0x0];var nc=n7[0x2];var nd,ne,nf;var ng,nh;var ni=[];n4['call'](this,na);n4['call'](this,nb);na['bind']('mouseDown',n6,this);nb['bind']('mouseDown',n6,this);mU['bind']('resize',function(){nc['set']('left',(mU['get']('actualWidth')-nc['get']('actualWidth'))*0.5);mV();},this);mV();};TDV['Tour']['Script']['isCardboardViewMode']=function(){var nN=this['getByClassName']('PanoramaPlayer');return nN['length']>0x0&&nN[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(nO){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](nO['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(nP,nQ){var nR='keepVisibility_'+nP['get']('id');var nS=this['getKey'](nR);if(nS==undefined&&nQ){this['registerKey'](nR,nQ);}else if(nS!=undefined&&!nQ){this['unregisterKey'](nR);}};TDV['Tour']['Script']['_initItemWithComps']=function(nT,nU,nV,nW,nX,nY,nZ,o0){var o1=nT['get']('items')[nU];var o2=o1['get']('media');var o3=o2['get']('loop')==undefined||o2['get']('loop');var o4=o0>0x0;var o5=this['rootPlayer'];var o6=function(oe){var of=nY?nY['get']('class'):undefined;var og=undefined;switch(of){case'FadeInEffect':case'FadeOutEffect':og=o5['createInstance'](oe?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':og=o5['createInstance'](oe?'SlideInEffect':'SlideOutEffect');break;}if(og){og['set']('duration',nY['get']('duration'));og['set']('easing',nY['get']('easing'));if(of['indexOf']('Slide')!=-0x1)og['set'](oe?'from':'to',nY['get'](nY['get']('class')=='SlideInEffect'?'from':'to'));}return og;};var o7=function(){for(var oh=0x0,oi=nV['length'];oh0x0){this['setComponentVisibility'](oj,!nX,0x0,o6(!nX));}else{var ok='visibility_'+oj['get']('id');if(this['existsKey'](ok)){if(this['getKey'](ok))this['setComponentVisibility'](oj,!![],0x0,o6(!![]));else this['setComponentVisibility'](oj,![],0x0,o6(![]));this['unregisterKey'](ok);}}}o1['unbind']('end',o7,this);if(!o3)o2['unbind']('end',o7,this);};var o8=function(){o1['unbind']('stop',o8,this,!![]);o1['unbind']('stop',o8,this);o1['unbind']('begin',o8,this,!![]);o1['unbind']('begin',o8,this);for(var ol=0x0,om=nV['length'];ol0x0){var oy=oo+op+(ox!=undefined?ox['get']('duration'):0x0);o5['setComponentVisibility'](ov,!ow,oy,o6(!ow),ow?'hideEffect':'showEffect',!![]);}};for(var os=0x0,ot=nV['length'];os0x0){o9('begin',o0,0x0);o0=0x0;}if(nW!=undefined)o9(nW,nZ,o0);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(oz,oA,oB){var oC=oz['get']('selectedIndex');var oD=oz['get']('items')['length'];var oE=(oC+oA)%oD;while(oE<0x0){oE=oD+oE;}if(oC!=oE){if(oB){var oF=oz['get']('items')[oE];this['skip3DTransitionOnce'](oF['get']('player'));}oz['set']('selectedIndex',oE);}};TDV['Tour']['Script']['mixObject']=function(oG,oH){return this['assignObjRecursively'](oH,this['copyObjRecursively'](oG));};TDV['Tour']['Script']['downloadFile']=function(oI){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var oJ=document['createElement']('a');oJ['href']=oI;oJ['setAttribute']('target','_blank');if(oJ['download']!==undefined){var oK=oI['substring'](oI['lastIndexOf']('/')+0x1,oI['length']);oJ['download']=oK;}if(document['createEvent']){var oL=document['createEvent']('MouseEvents');oL['initEvent']('click',!![],!![]);oJ['dispatchEvent'](oL);return;}}window['open'](oI,'_blank');};TDV['Tour']['Script']['openLink']=function(oM,oN){if(!oM||oM==location['href']){return;}if(!oN)oN='_blank';if(oN=='_top'||oN=='_self'){this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});}var oO=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(oO&&oN=='_blank'){if(oM['startsWith']('files/')){oM='/'+oM;}if(oM['startsWith']('//')){oM='https:'+oM;}else if(oM['startsWith']('/')){var oP=window['location']['href']['split']('/');oP['pop']();oM=oP['join']('/')+oM;}var oQ=oM['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](oQ)==-0x1||oM['startsWith']('file://'))&&window['hasOwnProperty']('require')){var oR=window['require']('electron')['shell'];oR['openExternal'](oM);}else{window['open'](oM,oN);}}else if(oO&&(oN=='_top'||oN=='_self')){window['location']=oM;}else{var oS=this['get']('data')['tour'];if(oS['isMobileApp']()&&oS['isIOS']())oM='blank:'+oM;var oT=window['open'](oM,oN);oT['focus']();}};TDV['Tour']['Script']['startPanoramaWithModel']=function(oU,oV){var oW=oU['get']('media');var oX=_findLocationWithPanorama['call'](this,oW);if(!oX){oV['call'](this);return;}var oY=oX['get']('model');var oZ=oU['get']('player')['get']('viewerArea');var p1=this['getActivePlayersWithViewer'](oZ);var p3=p1['length']==0x1?p1['find'](function(pa){return this['getMediaFromPlayer'](pa)==oY;}['bind'](this)):undefined;if(p3){oV['call'](this);}else{var p1=_getPlayersWithViewer['call'](this,oZ);var p3=p1['find'](function(pb){return pb['get']('class')=='Model3DPlayer';});var p4,p5;if(!p3){p3=this['createInstance']('Model3DPlayer');p3['set']('viewerArea',oZ);}else{var p6=this['getByClassName']('Model3DPlayListItem');p4=p6['find'](function(pc){return pc['get']('player')==p3;}['bind'](this));}if(!p4){p4=this['createInstance']('Model3DPlayListItem');p4['set']('player',p3);_initModel3DItem['call'](this,p4);}p4['set']('media',oY);var p7=oX['get']('forceModelLoading');oX['set']('forceModelLoading',!![]);var p8=function(){p4['unbind']('begin',p8,this);oV['call'](this);};var p9=function(){oU['unbind']('begin',p9,this);oX['set']('forceModelLoading',p7);if(p5)this['disposeInstance'](p5);};oU['bind']('begin',p9,this);if(p4['get']('state')=='playing')p8['call'](this);else{p4['bind']('begin',p8,this);p5=this['createInstance']('PlayList');p5['set']('items',[p4]);p5['set']('selectedIndex',0x0);}}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(pd){var pe=this['getCurrentPlayers']();var pf=pe['length'];while(pf-->0x0){var pg=pe[pf];if(pg['get']('state')=='playing'||pg['get']('data')&&pg['get']('data')['playing']||pg['get']('viewerArea')&&pg['get']('viewerArea')['get']('id')==this['getMainViewer']()||pg['get']('camera')&&pg['get']('camera')['get']('idleSequence')&&pg['get']('camera')['get']('timeToIdle')>0x0&&pg['get']('state')=='playing'||pg['get']('class')=='Model3DPlayer'&&pg['get']('model')&&pg['get']('model')['get']('camera')['get']('state')=='playing'){var ph=this['getMediaFromPlayer'](pg);if(pd&&ph&&ph['get']('class')!='Video360'&&'pauseCamera'in pg){pg['pauseCamera']();}else{pg['pause']();}}else{pe['splice'](pf,0x1);}}return pe;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(pi,pj,pk){var pl=function(){if(pi['get']('selectedIndex')!=pj){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](pk,!![]);this['executeFunctionWhenChange'](pi,pj,pl,pl);};TDV['Tour']['Script']['pauseGlobalAudios']=function(pm,pn){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var po=this['getByClassName']('VideoPanoramaOverlay');po=po['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var pq=po['length']-0x1;pq>=0x0;--pq){var pr=po[pq];if(pr['get']('video')['get']('hasAudio')==![])po['splice'](pq,0x1);}var ps=this['getByClassName']('Audio')['concat'](po);var pt={};if(window['currentGlobalAudios']!=undefined)ps=ps['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(px){if(!px['allowResume'])pt[px['audio']['get']('id')]=px['audio'];return px['audio'];}));var pu=[];for(var pq=0x0,pv=ps['length'];pq0x0)window['pausedAudiosLIFO']['push'](pu);return pu;};TDV['Tour']['Script']['resumeGlobalAudios']=function(){if(window['pausedAudiosLIFO']==undefined)return;if(window['resumeAudiosBlocked']){if(window['pausedAudiosLIFO']['length']>0x1){window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]=window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]['concat'](window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x1]);window['pausedAudiosLIFO']['splice'](window['pausedAudiosLIFO']['length']-0x1,0x1);}return;}var py=window['pausedAudiosLIFO']['pop']();if(!py)return;for(var pz=0x0,pA=py['length'];pz=pF['length']){if(!pG)return;pI=0x0;}pJ=pF[pI];pK(pJ,!![],pL,!![]);};pL();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(pM,pN,pO,pP){var pQ=this['getActiveMediaWithViewer'](this['getMainViewer']());var pR=this['getFirstPlayListWithMedia'](pQ,!![]);var pS=this['getPlayListItemByMedia'](pR,pQ);var pT=pR['get']('items')['indexOf'](pS);return this['playGlobalAudioWhilePlay'](pR,pT,pM,pN,pO,pP);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(pU,pV,pW,pX,pY,pZ){var q0=function(q9){if(q9['data']['previousSelectedIndex']==pV){this['stopGlobalAudio'](pW);if(q4){var qa=q3['get']('media');var qb=qa['get']('audios');qb['splice'](qb['indexOf'](pW),0x1);qa['set']('audios',qb);}pU['unbind']('change',q0,this);if(pY)pY();}};var q2=window['currentGlobalAudios'];if(q2&&pW['get']('id')in q2){pW=q2[pW['get']('id')]['audio'];if(pW['get']('state')!='playing'){pW['play']();}return pW;}pU['bind']('change',q0,this);var q3=pU['get']('items')[pV];var q4=q3['get']('class')=='PanoramaPlayListItem';if(q4){var q5=q3['get']('media');var q2=(q5['get']('audios')||[])['slice']();if(pW['get']('class')=='MediaAudio'){var q6=this['rootPlayer']['createInstance']('PanoramaAudio');q6['set']('autoplay',![]);q6['set']('audio',pW['get']('audio'));q6['set']('loop',pW['get']('loop'));q6['set']('id',pW['get']('id'));this['cloneBindings'](pW,q6,'start');this['cloneBindings'](pW,q6,'end');this['cloneBindings'](pW,q6,'stateChange');pW=q6;}q2['push'](pW);q5['set']('audios',q2);}var q7=this['playGlobalAudio'](pW,pX,function(){pU['unbind']('change',q0,this);if(pY)pY['call'](this);});if(pZ===!![]){var q8=function(){if(q7['get']('state')=='playing'){this['pauseGlobalAudios']([q7],!![]);}else if(q7['get']('state')=='stopped'){this['resumeGlobalAudios']();q7['unbind']('stateChange',q8,this);}};q7['bind']('stateChange',q8,this);}return q7;};TDV['Tour']['Script']['playGlobalAudio']=function(qc,qd,qe,qf){var qg=function(){qc['unbind']('end',qg,this);this['stopGlobalAudio'](qc);if(qe)qe['call'](this);};qc=this['getGlobalAudio'](qc);var qh=window['currentGlobalAudios'];if(!qh){qh=window['currentGlobalAudios']={};}qh[qc['get']('id')]={'audio':qc,'asBackground':qf||![],'allowResume':qd};if(qc['get']('state')=='playing'){return qc;}if(!qc['get']('loop')){qc['bind']('end',qg,this);}qc['play']();return qc;};TDV['Tour']['Script']['restartTourWithoutInteraction']=function(qi){var qj=-0x1;this['bind']('userInteraction',qk['bind'](this),this);qk();function qk(){if(qj!=-0x1)clearTimeout(qj);qj=setTimeout(function(){var ql=this['get']('data')['tour'];if(ql){if(this['isCardboardViewMode']())location['reload']();else ql['reload']();}}['bind'](this),qi*0x3e8);}};TDV['Tour']['Script']['resumePlayers']=function(qm,qn){for(var qo=0x0;qo0x0){var qP=setTimeout(function(){if(window[qN]instanceof Array){var qS=window[qN];var qT=qS['indexOf'](qP);qS['splice'](qT,0x1);if(qS['length']==0x0){delete window[qN];}}else{delete window[qN];}qM();},qH);if(window['hasOwnProperty'](qN)){window[qN]=[window[qN],qP];}else{window[qN]=qP;}}else{qM();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(qU,qV,qW,qX){qU['set']('yaw',qV);qU['set']('pitch',qW);qU['set']('maximumAngle',qX);};TDV['Tour']['Script']['setLocale']=function(qY){this['stopTextToSpeech']();var qZ=this['get']('data')['localeManager'];if(qZ)this['get']('data')['localeManager']['setLocale'](qY);else{this['get']('data')['defaultLocale']=qY;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(r0,r1,r2){var r3=function(){if(r0['get']('selectedIndex')==r1){var r4=r0['get']('items')[r2];this['skip3DTransitionOnce'](r4['get']('player'));r0['set']('selectedIndex',r2);}};this['executeFunctionWhenChange'](r0,r1,r3);};TDV['Tour']['Script']['setMapLocation']=function(r5,r6){var r7=function(){r5['unbind']('stop',r7,this);r8['set']('mapPlayer',null);};r5['bind']('stop',r7,this);var r8=r5['get']('player');r8['set']('mapPlayer',r6);};TDV['Tour']['Script']['setMainMediaByIndex']=function(r9){var ra=undefined;if(r9>=0x0&&r90x0){ru=rx[0x0];rv=this['getPlayListItemIndexByMedia'](ru,rq);}if(!ru)rq=!![];}if(rq===!![]){var rC=this['getActiveMediaWithViewer'](rw);if(rC){ru=this['getFirstPlayListWithMedia'](rC,!![]);var rB=this['getPlayListItemByMedia'](ru,rC);rv=ru['get']('items')['indexOf'](rB);}else{rq=null;}}var rD=[];var rE=function(){var rM=rD['concat']();var rN=![];var rO=function(rR){var rS=rR['source']['get']('state');if(rS=='playing'){if(!rN){rN=!![];this['pauseGlobalAudios'](rD,!![]);}}else if(rS=='stopped'){rM['splice'](rM['indexOf'](rR['source']),0x1);if(rM['length']==0x0){this['resumeGlobalAudios']();}rR['source']['unbind']('stateChange',rO,this);}}['bind'](this);for(var rP=0x0,rQ=rD['length'];rP0x0&&sL['get']('movements')[sK-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var sW=sM['get']('initialPosition');var sX=sW['get']('yaw');var sY=sW['get']('pitch');var sZ=sW['get']('hfov');var t0=sL['get']('movements')[sK-0x1];var t1=t0['get']('targetYaw');var t2=t0['get']('targetPitch');var t3=t0['get']('targetHfov');if(t1!==undefined)sW['set']('yaw',t1);if(t2!==undefined)sW['set']('pitch',t2);if(t3!==undefined)sW['set']('hfov',t3);var t4=function(t7){sW['set']('yaw',sX);sW['set']('pitch',sY);sW['set']('hfov',sZ);sG['unbind']('end',t4,this);};sG['bind']('end',t4,this);}sL['set']('movementIndex',sK);}}if(sE){sD['unbind']('begin',su,this);sE['unbind']('stateChange',st,this);for(var t5=0x0;t50x1)&&(t6==undefined||t6==sD['get']('media'))){sA['set']('selectedIndex',sC);}if(so!=sA)sA['unbind']('change',sv,this);}else{sH['set']('visible',sI);}sA=undefined;};if(!sq){var sy=so['get']('selectedIndex');var sz=sy!=-0x1?so['get']('items')[so['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(sz){sq=this['getMediaFromPlayer'](sz);}}var sA=undefined;if(sq){var sB=this['getPlayListsWithMedia'](sq,!![]);if(sB['indexOf'](so)!=-0x1){sA=so;}else if(sB['indexOf'](this['mainPlayList'])!=-0x1){sA=this['mainPlayList'];}else if(sB['length']>0x0){sA=sB[0x0];}}if(!sA){so['set']('selectedIndex',sp);return;}var sC=sA['get']('selectedIndex');var sD=so['get']('items')[sp];var sE=sD['get']('player');var sF=this['getMediaFromPlayer'](sE);if(so['get']('selectedIndex')==sp&&sF==sD['get']('media')||sC==-0x1){return;}if(so['get']('selectedIndex')==sp&&sF!=sD['get']('media'))so['set']('selectedIndex',-0x1);var sG=sA['get']('items')[sC];var sH=sE['get']('viewerArea');var sI=sH['get']('visible');var sJ=sH==sG['get']('player')['get']('viewerArea');if(sJ){if(so!=sA){sA['set']('selectedIndex',-0x1);sA['bind']('change',sv,this);}}else{sH['set']('visible',!![]);}var sK=-0x1;var sL=undefined;var sM=sG['get']('camera');if(sM){sL=sM['get']('initialSequence');if(sL){sK=sL['get']('movementIndex');}}so['set']('selectedIndex',sp);var sN=[];var sO=function(t8){var t9=sE['get'](t8);if(t9==undefined)return;if(Array['isArray'](t9))sN=sN['concat'](t9);else sN['push'](t9);};sO('buttonStop');for(var sP=0x0;sP0x0){tq[tt['get']('id')]=setTimeout(tu['bind'](this,tt),tn);}else{tu['call'](this,tt);}}function tu(tv){var tw=tv['get']('id');var tx=tq[tw];if(tx){clearTimeout(tx);delete tx[tw];}var ty=tv['get']('class')=='PanoramaModel3DLocation'?tv['get']('data')['object']:tv;if(!ty)return;var tz=tm=='toggle'?!ty['get']('enabled'):tm;ty['set']('enabled',tz);if(tv['get']('class')=='PanoramaModel3DLocation')tv['get']('data')['enabled']=tz;var tB=tv['get']('data');if(tz&&tB&&'group'in tB){var tC=this['getOverlaysByGroupname'](tB['group']);for(var tD=0x0,tE=tC['length'];tD=0x0&&u5[u4]==u0&&u6['get']('isLoaded')){u7['set']('yaw',u7['get']('yaw')%0x168);var u8=u0['get']('player')['get']('viewerArea');var u9=this['getActiveMediaWithViewer'](u8);if(u9['get']('class')['indexOf']('Panorama')!=-0x1){if(u2!==undefined){u2*=0x3e8;var ua=u8['get']('modelToPanoramaTraslationDuration');var ub=u8['get']('panoramaToModelTraslationDuration');var uc=()=>{clearTimeout(ud);tZ['unbind']('change',uc,this);u8['set']('modelToPanoramaTraslationDuration',ua);u8['set']('panoramaToModelTraslationDuration',ub);};var ud=setTimeout(uc,u2);tZ['bind']('change',uc,this);u8['set']('modelToPanoramaTraslationDuration',u2);u8['set']('panoramaToModelTraslationDuration',u2);}u7['setStoredPosition'](u1);}else{if(u7['get']('state')=='playing')u7['stop']();this['createTween'](u7,u1,u2,u3)['play']();}}else{if(u7['get']('state')=='playing')u7['stop']();this['startModel3DWithCameraSpot'](u0,u1);}};TDV['Tour']['Script']['setModel3DCameraSequence']=function(ue,uf,ug){var uh=ue['get']('selectedIndex');var ui=ue['get']('items');var uj=uf['get']('media');if(ui[uh]==uf&&uj['get']('isLoaded')){ug['play']();}else{var uk=ug['get']('movements');var ul={};if(uk['length']>0x0){var um=uk[0x0];if(um['get']('class')=='TargetModel3DCameraMovement'){var un=['x','y','z','yaw','pitch','fov','distance'];for(var uo in un){uo=un[uo];var up=um['get']('target'+uo['charAt'](0x0)['toUpperCase']()+uo['slice'](0x1));if(up!==undefined){ul[uo]=up;}}}}this['startModel3DWithCameraSpot'](uf,ul);var uq=function(){uf['unbind']('begin',uq,this);ug['play']();};uf['bind']('begin',uq,this);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(ur,us){var ut=this['getActiveMediaWithViewer'](us||this['getMainViewer']());if(ut!=undefined&&(ut['get']('class')['indexOf']('Panorama')!=-0x1||ut['get']('class')=='Video360')){var uu=ur['get']('media');var uv=this['clonePanoramaCamera'](ur['get']('camera'));this['setCameraSameSpotAsMedia'](uv,ut);this['startPanoramaWithCamera'](uu,uv);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(uw,ux,uy,uz,uA){var uB=ux['get']('media');var uC=ux['get']('player');if(uw['get']('items')[uw['get']('selectedIndex')]==ux||uC['get']('rendererPanorama')==uB){if(uy===undefined)uy=uC['get']('yaw');if(uz===undefined)uz=uC['get']('pitch');if(uA===undefined)uA=uC['get']('hfov');uC['moveTo'](uy,uz,uC['get']('roll'),uA);}else{var uD=this['clonePanoramaCamera'](ux['get']('camera'));var uE=uD['get']('initialPosition');if(uy!==undefined)uE['set']('yaw',uy);if(uz!==undefined)uE['set']('pitch',uz);if(uA!==undefined)uE['set']('hfov',uA);this['startPanoramaWithCamera'](uB,uD);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(uF){var uG=this['getByClassName']('HotspotPanoramaOverlay');var uH=this['getByClassName']('PanoramaPlayer');var uI=uF=='hotspotEnabled';var uJ=uF=='circleEnabled';var uK=!!uF;uG['forEach'](function(uL){var uM=uL['get']('data');if(uM&&uM['hasPanoramaAction']==!![])uL['set']('enabledInSurfaceSelection',uI);});uH['forEach'](function(uN){uN['set']('adjacentPanoramaPositionsEnabled',uJ);uN['set']('surfaceSelectionEnabled',uK);});this['get']('data')['surfaceSelectionHotspotMode']=uF;};TDV['Tour']['Script']['setValue']=function(uO,uP,uQ){try{if('set'in uO)uO['set'](uP,uQ);else uO[uP]=uQ;}catch(uR){}};TDV['Tour']['Script']['setStartTimeVideo']=function(uS,uT){var uU=this['getPlayListItems'](uS);var uV=[];var uW=function(){for(var v0=0x0;v0=0x0)clearTimeout(vl);vg['bind']('rollOut',vn,this);};var vn=function(){var vs=function(){vk['call'](this,![]);};vg['unbind']('rollOut',vn,this);vl=setTimeout(vs['bind'](this),vi);};vg['bind']('rollOver',vm,this);}};TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(vt,vu,vv,vw){var vx=this['_getObjectsByTags'](vu,['InnerModel3DObject'],'tags2Objects',vv)['filter'](function(vy){return vt['get']('objects')['indexOf'](vy)!=-0x1;}['bind'](this));this['setObjectsVisibility'](vx,vw);};TDV['Tour']['Script']['setObjectsVisibilityByID']=function(vz,vA,vB){var vC=vA['map'](function(vD){return this['getModel3DInnerObject'](vz,vD);}['bind'](this));this['setObjectsVisibility'](vC,vB);};TDV['Tour']['Script']['setObjectsVisibility']=function(vE,vF){vE['forEach'](function(vG){if(vG)vG['set']('enabled',vF==='toggle'?!vG['get']('enabled'):vF);}['bind'](this));};TDV['Tour']['Script']['getModel3DInnerObject']=function(vH,vI){var vJ=vH['get']('objects');for(var vK=0x0,vL=vJ['length'];vKwc?wb:wc;wa+=w0('headerPaddingTop')+w0('headerPaddingBottom');}var wd=w7-w0('bodyPaddingLeft')-w0('bodyPaddingRight')-w0('paddingLeft')-w0('paddingRight');var we=w8-wa-w9-w0('bodyPaddingTop')-w0('bodyPaddingBottom')-w0('paddingTop')-w0('paddingBottom');var wf=wd/we;var wg=w3/w4;if(wf>wg){w7=we*wg+w0('bodyPaddingLeft')+w0('bodyPaddingRight')+w0('paddingLeft')+w0('paddingRight');}else{w8=wd/wg+wa+w9+w0('bodyPaddingTop')+w0('bodyPaddingBottom')+w0('paddingTop')+w0('paddingBottom');}if(w7>w1*w5){w7=w1*w5;}if(w8>w2*w6){w8=w2*w6;}vN['set']('width',w7);vN['set']('height',w8);vN['set']('x',(w1-w0('actualWidth'))*0.5);vN['set']('y',(w2-w0('actualHeight'))*0.5);};if(vS){this['executeFunctionWhenChange'](vP,0x0,vV);}var vX=vO['get']('class');var vY=vX=='Video'||vX=='Video360';vP['set']('selectedIndex',0x0);if(vY){this['bind']('resize',vW,this);vW();vP['get']('items')[0x0]['get']('player')['play']();}else{vN['set']('width',vQ);vN['set']('height',vR);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var vZ=this['pauseCurrentPlayers'](!![]);vN['bind']('close',vU,this);vN['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(wi,wj,wk,wl,wm,wn,wo,wp,wq,wr,ws,wt){var wu=![];var wv=function(){wN['unbind']('loaded',wy,this);wC['call'](this);};var ww=function(){wN['unbind']('click',ww,this);if(wR!=undefined){clearTimeout(wR);}};var wx=function(){setTimeout(wH,0x0);};var wy=function(){this['unbind']('click',wv,this);wM['set']('visible',!![]);wH();wO['set']('visible',!![]);wN['unbind']('loaded',wy,this);wN['bind']('resize',wx,this);wR=setTimeout(wz['bind'](this),0xc8);};var wz=function(){wR=undefined;if(wp){wN['bind']('click',ww,this);wB['call'](this);}wN['bind']('userInteractionStart',wI,this);wN['bind']('userInteractionEnd',wJ,this);wN['bind']('backgroundClick',wC,this);if(wj){wN['bind']('click',wF,this);wN['set']('imageCursor','hand');}wO['bind']('click',wC,this);if(ws)ws['call'](this);};var wA=function(){if(wp&&wR){clearTimeout(wR);wR=undefined;}};var wB=function(){if(wp){wA();wR=setTimeout(wC['bind'](this),wp);}};var wC=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);wu=!![];if(wR)clearTimeout(wR);if(wS)clearTimeout(wS);if(wp)ww();if(wn&&wn['get']('duration')>0x0){wn['bind']('end',wE,this);}else{setTimeout(()=>{wD['call'](this);},0x0);}wN['set']('visible',![]);wO['set']('visible',![]);wM['set']('visible',![]);this['unbind']('click',wv,this);wN['unbind']('backgroundClick',wC,this);wN['unbind']('userInteractionStart',wI,this);wN['unbind']('userInteractionEnd',wJ,this,!![]);wN['unbind']('resize',wx,this);if(wj){wN['unbind']('click',wF,this);wN['set']('cursor','default');}wO['unbind']('click',wC,this);this['resumePlayers'](wQ,wq==null||wr);if(wr){this['resumeGlobalAudios']();}if(wq){this['stopGlobalAudio'](wq);}};var wD=function(){wN['set']('image',null);if(wt)wt['call'](this);};var wE=function(){wn['unbind']('end',wE,this);wD['call'](this);};var wF=function(){wN['set']('image',wG()?wi:wj);};var wG=function(){return wN['get']('image')==wj;};var wH=function(){var wT=wN['get']('actualWidth')-wN['get']('imageLeft')-wN['get']('imageWidth')+0xa;var wU=wN['get']('imageTop')+0xa;if(wT<0xa)wT=0xa;if(wU<0xa)wU=0xa;wO['set']('right',wT);wO['set']('top',wU);};var wI=function(){wA();if(wS){clearTimeout(wS);wS=undefined;}else{wO['set']('visible',![]);}};var wJ=function(){wB['call'](this);if(!wu){wS=setTimeout(wK,0x12c);}};var wK=function(){wS=undefined;wO['set']('visible',!![]);wH();};var wL=function(wV){var wW=wV['get']('data');if(wW&&'extraLevels'in wW){var wX=this['rootPlayer']['createInstance'](wV['get']('class'));var wY=wW['extraLevels'];for(var wZ=0x0;wZ0x0){var xo=xa['get']('imageWidth');var xp=xa['get']('imageHeight');x1['bind']('showEnd',xn,this,!![]);x1['set']('showDuration',0x1);x1['set']('popupMaxWidth',xo);x1['set']('popupMaxHeight',xp);x1['set']('visible',!![]);}else{x1['set']('showDuration',xb);}this['getMainViewer']()['set']('toolTipEnabled',!![]);};x1['bind']('showEnd',xh,this,!![]);}else{var xj=function(){this['resumePlayers'](xe,x6==null||x7);if(x7){this['resumeGlobalAudios']();}if(x6){this['stopGlobalAudio'](x6);}if(x4){x1['set']('image',x3);x1['unbind']('click',xk,this);}x1['unbind']('hideEnd',xj,this);this['getMainViewer']()['set']('toolTipEnabled',!![]);if(x8)x8();};var xk=function(){x1['set']('image',x1['get']('image')==x3?x4:x3);};var xe=this['pauseCurrentPlayers'](x6==null||!x7);if(x7){this['pauseGlobalAudios'](null,!![]);}if(x6){this['playGlobalAudio'](x6,!![]);}if(x4)x1['bind']('click',xk,this);x1['bind']('hideEnd',xj,this,!![]);}x1['set']('visible',!![]);};TDV['Tour']['Script']['showPopupPanoramaVideoOverlay']=function(xq,xr,xs,xt,xu){var xv=![];var xw=function(){xq['unbind']('showEnd',xw);xA['bind']('click',xy,this);xz();xA['set']('visible',!![]);}['bind'](this);var xx=function(){xv=!![];if(!xq['get']('loop'))xy();}['bind'](this);var xy=function(){window['resumeAudiosBlocked']=![];this['getMainViewer']()['set']('toolTipEnabled',!![]);xq['set']('visible',![]);xA['set']('visible',![]);xA['unbind']('click',xy,this);xq['unbind']('end',xx,this);xq['unbind']('hideEnd',xy,this,!![]);this['resumePlayers'](xC,!![]);if(xs){this['resumeGlobalAudios']();}if(xt)xt();if(xu&&xv)xu();}['bind'](this);var xz=function(){var xD=0xa;var xE=0xa;xA['set']('right',xD);xA['set']('top',xE);}['bind'](this);this['getMainViewer']()['set']('toolTipEnabled',![]);var xA=this['closeButtonPopupPanorama'];if(xr){for(var xB in xr){xA['set'](xB,xr[xB]);}}window['resumeAudiosBlocked']=!![];var xC=this['pauseCurrentPlayers'](!![]);if(xs){this['pauseGlobalAudios']();}xq['bind']('end',xx,this,!![]);xq['bind']('showEnd',xw,this,!![]);xq['bind']('hideEnd',xy,this,!![]);xq['set']('visible',!![]);};TDV['Tour']['Script']['showWindow']=function(xF,xG,xH){if(xF['get']('visible')==!![]){return;}var xI=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);if(xH){this['resumeGlobalAudios']();}xJ();this['resumePlayers'](xM,!xH);xF['unbind']('close',xI,this);};var xJ=function(){xF['unbind']('click',xJ,this);if(xK!=undefined){clearTimeout(xK);}};var xK=undefined;if(xG){var xL=function(){xF['hide']();};xF['bind']('click',xJ,this);xK=setTimeout(xL,xG);}this['getMainViewer']()['set']('toolTipEnabled',![]);if(xH){this['pauseGlobalAudios'](null,!![]);}var xM=this['pauseCurrentPlayers'](!xH);xF['bind']('close',xI,this);xF['show'](this,!![]);};TDV['Tour']['Script']['startModel3DWithCameraSpot']=function(xN,xO){var xP=xN['get']('media');var xQ=window['currentPanoramasWithCameraChanged']==undefined||!(xP['get']('id')in window['currentPanoramasWithCameraChanged']);if(!xQ){return;}var xR=xP['get']('camera');xO=Object['assign']({},xO);if(!xP['get']('isLoaded')){var xS={};for(var xU in xO){var xV='initial'+xU['charAt'](0x0)['toUpperCase']()+xU['slice'](0x1);xS[xV]=xR['get'](xV);xO[xV]=xO[xU];xR['set'](xV,xO[xV]);delete xO[xU];}if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var xW=xP['get']('id');window['currentPanoramasWithCameraChanged'][xW]=[xN];var xX=function(){if(xW in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][xW];}xN['unbind']('begin',xX,this);for(var y5 in xS){xR['set'](y5,xS[y5]);}};xN['bind']('begin',xX,this);}else{for(var xU in xO){xR['set'](xU,xO[xU]);}xR['setStoredPosition'](xO);}var xY=xN['get']('player');var xZ=xY['get']('viewerArea');var y0=this['getActivePlayersWithViewer'](xZ);var y1=y0['find'](function(y6){return this['getMediaFromPlayer'](y6)['get']('class')['indexOf']('Panorama')!=-0x1;}['bind'](this));var y2=xP['get']('data');if(y1&&y2['panoramaLocations']){var y3=this['getMediaFromPlayer'](y1);var y4=_getObject(this,y2['panoramaLocations']['find'](y7=>y3==_getObject(this,_getObject(this,y7)['get']('data')['panorama'])));if(y4&&!y4['get']('forceModelLoading')){y4['set']('forceModelLoading',!![]);xN['bind']('begin',function y8(){xN['unbind']('begin',y8,this);y4['set']('forceModelLoading',![]);},this);}}};TDV['Tour']['Script']['startPanoramaWithCamera']=function(y9,ya){var yb=this['getByClassName']('PlayList');if(yb['length']==0x0)return;var yc=window['currentPanoramasWithCameraChanged']==undefined||!(y9['get']('id')in window['currentPanoramasWithCameraChanged']);var yd=[];for(var yf=0x0,yg=yb['length'];yf0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var yn=y9['get']('id');window['currentPanoramasWithCameraChanged'][yn]=yd;var yo=function(){if(yn in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][yn];}for(var yq=0x0;yq=0x0?this['mainPlayList']['get']('items')[yZ]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(z1!=undefined){var z3=z1['get']('data');if(z3&&z3['label']){if(yZ>=0x0){var z5=this['mainPlayList']['get']('items')['reduce'](function(zq,zr){var zs=zr['get']('media')['get']('data');return zs&&z3['label']==zs['label']?zq+0x1:zq;},0x0);if(z5!=0x1)z0='#media='+(yZ+0x1);}if(!z0)z0='#media-name='+encodeURIComponent(z3['label']);}else if(yZ>=0x0){z0='#media='+(yZ+0x1);}}if(z1){if(yY['includeCurrentView']===!![]){var z6=this['getActivePlayerWithViewer'](this['getMainViewer']());if(z6){switch(z6['get']('class')){case'PanoramaPlayer':var z7=z6['get']('yaw');var z8=z6['get']('pitch');var z9=z6['get']('hfov');if(!isNaN(z7)&&!isNaN(z8))z0+='&yaw='+z7['toFixed'](0x2)+'&pitch='+z8['toFixed'](0x2);if(!isNaN(z9))z0+='&fov='+z9['toFixed'](0x2);break;case'Model3DPlayer':var za=z6['get']('model');var zb=za['get']('camera');var zc=[];zc['push']('yaw='+zb['get']('yaw')['toFixed'](0x2));zc['push']('pitch='+zb['get']('pitch')['toFixed'](0x2));zc['push']('x='+zb['get']('x')['toFixed'](0x5));zc['push']('y='+zb['get']('y')['toFixed'](0x5));zc['push']('z='+zb['get']('z')['toFixed'](0x5));if(zb['get']('class')=='OrbitModel3DCamera')zc['push']('distance='+zb['get']('distance')['toFixed'](0x5));z0+='&'+zc['join']('&');break;}}}if(yY['includeCurrentVisibleHotspots']===!![]){var zd=this['getOverlays'](z1);var ze=[];var zf=[];for(var zg=0x0,z5=zd['length'];zg0x0)z0+='&son='+ze['join'](',');if(zf['length']>0x0)z0+='&hon='+zf['join'](',');if(z1['get']('class')=='Model3D'){var zl=z1['get']('variant');if(zl)z0+='&variant='+zl;var zm=z1['get']('objects');var zn=[];var zo=[];zm['forEach'](function(zt){if(zt['get']('class')=='InnerModel3DObject')(zt['get']('enabled')?zn:zo)['push'](zt['get']('objectId'));});if(zn['length']>0x0)z0+='&sobjids='+zn['join'](',');if(zo['length']>0x0)z0+='&hobjids='+zo['join'](',');}}if(yY['includeCurrentMeasureModel3DObjects']===!![]&&z1['get']('class')=='Model3D'){var zp=[];z1['get']('objects')['forEach'](function(zu){if(zu['get']('class')=='MeasureModel3DObject'&&zu['get']('mode')!='create'){var zv=[zu['get']('data')['id'],zu['get']('x'),zu['get']('y'),zu['get']('z')];zu['get']('points')['forEach'](function(zw){zv['push'](zw['get']('x'),zw['get']('y'),zw['get']('z'));});if(zv['length']>0x4){zp['push'](zv['join'](','));}}});if(zp['length']>0x0)z0+='&measures='+zp['join']('+');}}if(z0&&yY['setHash']===!![]){location['hash']=z0;}return z0;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(zx,zy,zz){var zA=function(){var zC=zx['get']('selectedIndex');if(zC>=0x0){var zD=function(){zG['unbind']('begin',zD);zE(zC);};var zE=function(zH){var zI=zG['get']('media');var zJ=zI['get']('data');var zK=zJ!==undefined?zJ['description']:undefined;zF(zK);};var zF=function(zL){if(zL!==undefined){zy['set']('html',''+zL+'');}else{zy['set']('html','');}var zM=zy['get']('html');zy['set']('visible',zM!==undefined&&zM);};var zG=zx['get']('items')[zC];if(zy['get']('html')){zF('Loading...');zG['bind']('begin',zD);}else{zE(zC);}}};var zB=function(){zy['set']('html',undefined);zx['unbind']('change',zA,this);zz['unbind']('stop',zB,this);};if(zz){zz['bind']('stop',zB,this);}zx['bind']('change',zA,this);zA();};TDV['Tour']['Script']['updateVideoCues']=function(zN,zO){var zP=zN['get']('items')[zO];var zQ=zP['get']('media');if(zQ['get']('cues')['length']==0x0)return;var zR=zP['get']('player');var zS=[];var zT=function(){if(zN['get']('selectedIndex')!=zO){zQ['unbind']('cueChange',zU,this);zN['unbind']('change',zT,this);}};var zU=function(zV){var zW=zV['data']['activeCues'];for(var zX=0x0,zY=zS['length'];zXzR['get']('currentTime')||zZ['get']('endTime')0x0){Ag=this['mixObject'](Ag||{},{'theme':{'window':{'width':undefined,'left':Ah,'right':Ah}}});}}var Ai=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!Af['title'];if(Ai)this['textToSpeech'](Af['title'],Aa);Ad=Ac['showQuestion'](Aa,Ag);Ad['then'](function(Aj){if(Ai)this['stopTextToSpeech']();this['resumePlayers'](Ae,!![]);}['bind'](this));}return Ad;};TDV['Tour']['Script']['quizShowScore']=function(Ak){var Al=this['get']('data');var Am=Al['quiz'];if(Am){if(this['get']('isMobile')){Ak=Ak||{};Ak=this['mixObject'](Ak,Al[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return Am['showScore'](Ak);}};TDV['Tour']['Script']['quizShowTimeout']=function(An,Ao){var Ap=this['get']('data');var Aq=Ap['quiz'];if(Aq){if(this['get']('isMobile')){Ao=Ao||{};Ao=this['mixObject'](Ao,Ap[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}Aq['showTimeout'](An,Ao);}};TDV['Tour']['Script']['stopTextToSpeech']=function(Ar){if(window['speechSynthesis']&&(Ar==undefined||this['t2sLastID']==Ar)){var As=window['speechSynthesis'];if(As['speaking']){As['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['getStateTextToSpeech']=function(At){return this['t2sLastID']==At?'playing':'stopped';};TDV['Tour']['Script']['textToSpeech']=function(Au,Av,Aw){if(this['get']('mute')){return;}var Ax=this['get']('data');var Ay=Ax['disableTTS']||![];if(Ay)return;if(Av!=undefined&&this['t2sLastID']!=Av||Av==undefined){Aw=Aw||0x0;if(this['t2sLastID']&&Aw>this['t2sLastPriority']){return;}var Az=Ax['tour'];var AA=Ax['textToSpeechConfig'];var AB=Ax['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var AC=window['speechSynthesis'];if(AC['speaking']){AC['cancel']();}var AD=new SpeechSynthesisUtterance(Au);if(AB)AD['lang']=AB;var AE;if(AA){AD['volume']=AA['volume'];AD['pitch']=AA['pitch'];AD['rate']=AA['rate'];if(AA['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}AD['onend']=function(){this['t2sLastID']=null;if(AE)clearInterval(AE);if(AA['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){AE=setInterval(function(){AC['pause']();AC['resume']();},0xbb8);}AC['speak'](AD);this['t2sLastPriority']=Aw;this['t2sLastID']=Av;}else if(Az['isMobileApp']()){if(!Az['isIOS']()){var AF=function(AG,AH){var AI={'command':'tts','type':AG};if(AH)AI=this['mixObject'](AI,AH);android['sendJSON'](JSON['stringify'](AI));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(AA['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);AF('stop');if(AA){AF('init',{'volume':AA['volume'],'pitch':AA['pitch'],'rate':AA['rate'],'language':AB});if(AA['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}AF('play',{'text':Au,'androidCallback':'onTTSEnd'});}else{console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}}else{console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}}};TDV['Tour']['Script']['textToSpeechComponent']=function(AJ){var AK=AJ['get']('class');var AL;if(AK=='HTMLText'){var AM=AJ['get']('html');if(AM){AL=this['htmlToPlainText'](AM,{'linkProcess':function(AN,AO){return AO;}});}}else if(AK=='Button'){AL=AJ['get']('label');}else if(AK=='Label'){AL=AJ['get']('text');}if(AL){this['textToSpeech'](AL,AJ['get']('id'));}};TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(AP){var AQ=AP['get']('id');if(this['getStateTextToSpeech'](AQ)!='playing')this['textToSpeechComponent'](AP);else this['stopTextToSpeech'](AQ);};TDV['Tour']['Script']['_initTTSTooltips']=function(){function AR(AT){var AU=AT['source'];this['textToSpeech'](AU['get']('toolTip'),AU['get']('id'),0x1);}function AS(AV){var AW=AV['source'];this['stopTextToSpeech'](AW['get']('id'));}setTimeout(function(){var AX=this['getByClassName']('UIComponent');for(var AY=0x0,AZ=AX['length'];AY/i);if(Bh){Bg=Bg['substring'](0x0,Bh['index']);}const Bi=Bg['match'](/]*>/i);if(Bi){Bg=Bg['substring'](Bi['index']+Bi[0x0]['length'],Bg['length']);}Bg=Bg['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');Bg=Bg['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');Bg=Bg['replace'](/]*)>/gi,function(Bo,Bp){var Bq='';var Br='';var Bs=/src="([^"]*)"/i['exec'](Bp);var Bt=/alt="([^"]*)"/i['exec'](Bp);if(Bs!==null){Bq=Bs[0x1];}if(Bt!==null){Br=Bt[0x1];}if(typeof B8==='function'){return B8(Bq,Br);}if(Br===''){return'![image]\x20('+Bq+')';}return'!['+Br+']\x20('+Bq+')';});function Bj(){return function(Bu,Bv,Bw,Bx){var By=0x0;if(Bw&&/start="([0-9]+)"/i['test'](Bw)){By=/start="([0-9]+)"/i['exec'](Bw)[0x1]-0x1;}var Bz='

'+Bx['replace'](/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,function(BA,BB){var BC=0x0;var BD=BB['replace'](/(^|(
))(?!

)/gi,function(){if(Bv==='o'&&BC===0x0){By+=0x1;BC+=0x1;return''+By+B6(Bd,Bc-String(By)['length']);}return''+Bf;});return BD;})+'

';return Bz;};}if(Ba==='linebreak'){Bg=Bg['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');}else if(Ba==='indention'){while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](Bg)){Bg=Bg['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,Bj());}}if(B9==='linebreak'){Bg=Bg['replace'](/]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');}else if(B9==='underline'){Bg=Bg['replace'](/]*>(((?!<\/h1>).)*)<\/h1>/gi,function(BE,BF){return'\x0a \x0a'+BF+'\x0a'+B6('=',BF['length'])+'\x0a \x0a';});Bg=Bg['replace'](/]*>(((?!<\/h2>).)*)<\/h2>/gi,function(BG,BH){return'\x0a \x0a'+BH+'\x0a'+B6('-',BH['length'])+'\x0a \x0a';});Bg=Bg['replace'](/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(BI,BJ,BK){return'\x0a \x0a'+BK+'\x0a \x0a';});}else if(B9==='hashify'){Bg=Bg['replace'](/]*>([^<]*)<\/h\1>/gi,function(BL,BM,BN){return'\x0a \x0a'+B6('#',BM)+'\x20'+BN+'\x0a \x0a';});}Bg=Bg['replace'](/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,'\x0a');Bg=Bg['replace'](/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(BO,BP,BQ){if(typeof B7==='function'){return B7(BP,BQ);}return'\x20['+BQ+']\x20('+BP+')\x20';});Bg=Bg['replace'](/\n[ \t\f]*/gi,'\x0a');Bg=Bg['replace'](/\n\n+/gi,'\x0a');if(Be){Bg=Bg['replace'](/( |\t)+/gi,'\x20');Bg=Bg['replace'](/ /gi,'\x20');}else{Bg=Bg['replace'](/( | |\t)+/gi,'\x20');}Bg=Bg['replace'](/\n +/gi,'\x0a');Bg=Bg['replace'](/^ +/gi,'');while(Bg['indexOf']('\x0a')===0x0){Bg=Bg['substring'](0x1);}if(Bg['length']===0x0||Bg['lastIndexOf']('\x0a')!==Bg['length']-0x1){Bg+='\x0a';}return Bg;};TDV['Tour']['Script']['openEmbeddedPDF']=function(BR,BS){var BT=!!window['MSInputMethodContext']&&!!document['documentMode'];if(BT){this['openLink'](BS,'_blank');return;}var BU=BR['get']('class');var BV=!new RegExp('^(?:[a-z]+:)?//','i')['test'](BS);if(BV&&BU=='WebFrame'){var BW=location['origin']+location['pathname'];BR['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(BW['substring'](0x0,BW['lastIndexOf']('/'))+'/'+BS)+'#0');}else{var BX=location['origin']==new URL(BS)['origin'];var BY=''+'

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

'+'';var BZ=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']);var C0=''+''+'!function(root,factory){\x22function\x22==typeof\x20define&&define.amd?define([],factory):\x22object\x22==typeof\x20module&&module.exports?module.exports=factory():root.PDFObject=factory()}(this,function(){\x22use\x20strict\x22;if(void\x200===window||void\x200===window.navigator||void\x200===window.navigator.userAgent||void\x200===window.navigator.mimeTypes)return!1;let\x20nav=window.navigator,ua=window.navigator.userAgent,isIE=\x22ActiveXObject\x22in\x20window,isModernBrowser=void\x200!==window.Promise,supportsPdfMimeType=void\x200!==nav.mimeTypes[\x22application/pdf\x22],isMobileDevice=void\x200!==nav.platform&&\x22MacIntel\x22===nav.platform&&void\x200!==nav.maxTouchPoints&&nav.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(ua),isSafariDesktop=!isMobileDevice&&void\x200!==nav.vendor&&/Apple/.test(nav.vendor)&&/Safari/.test(ua),isFirefoxWithPDFJS=!(isMobileDevice||!/irefox/.test(ua))&&parseInt(ua.split(\x22rv:\x22)[1].split(\x22.\x22)[0],10)>18,createAXO=function(type){var\x20ax;try{ax=new\x20ActiveXObject(type)}catch(e){ax=null}return\x20ax},supportsPDFs=!isMobileDevice&&(isFirefoxWithPDFJS||supportsPdfMimeType||isIE&&!(!createAXO(\x22AcroPDF.PDF\x22)&&!createAXO(\x22PDF.PdfCtrl\x22))),embedError=function(msg,suppressConsole){return\x20suppressConsole||console.log(\x22[PDFObject]\x20\x22+msg),!1},emptyNodeContents=function(node){for(;node.firstChild;)node.removeChild(node.firstChild)},generatePDFJSMarkup=function(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20fullURL=PDFJS_URL+\x22?file=\x22+encodeURIComponent(url)+pdfOpenFragment,div=document.createElement(\x22div\x22),iframe=document.createElement(\x22iframe\x22);return\x20iframe.src=fullURL,iframe.className=\x22pdfobject\x22,iframe.type=\x22application/pdf\x22,iframe.frameborder=\x220\x22,id&&(iframe.id=id),omitInlineStyles||(div.style.cssText=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x22,iframe.style.cssText=\x22border:\x20none;\x20width:\x20100%;\x20height:\x20100%;\x22,/*targetNode.style.position=\x22relative\x22,*/targetNode.style.overflow=\x22auto\x22),div.appendChild(iframe),targetNode.appendChild(div),targetNode.classList.add(\x22pdfobject-container\x22),targetNode.getElementsByTagName(\x22iframe\x22)[0]},embed=function(url,targetSelector,options){let\x20selector=targetSelector||!1,opt=options||{},id=\x22string\x22==typeof\x20opt.id?opt.id:\x22\x22,page=opt.page||!1,pdfOpenParams=opt.pdfOpenParams||{},fallbackLink=opt.fallbackLink||!0,width=opt.width||\x22100%\x22,height=opt.height||\x22100%\x22,assumptionMode=\x22boolean\x22!=typeof\x20opt.assumptionMode||opt.assumptionMode,forcePDFJS=\x22boolean\x22==typeof\x20opt.forcePDFJS&&opt.forcePDFJS,supportRedirect=\x22boolean\x22==typeof\x20opt.supportRedirect&&opt.supportRedirect,omitInlineStyles=\x22boolean\x22==typeof\x20opt.omitInlineStyles&&opt.omitInlineStyles,suppressConsole=\x22boolean\x22==typeof\x20opt.suppressConsole&&opt.suppressConsole,forceIframe=\x22boolean\x22==typeof\x20opt.forceIframe&&opt.forceIframe,PDFJS_URL=opt.PDFJS_URL||!1,targetNode=function(targetSelector){let\x20targetNode=document.body;return\x22string\x22==typeof\x20targetSelector?targetNode=document.querySelector(targetSelector):void\x200!==window.jQuery&&targetSelector\x20instanceof\x20jQuery&&targetSelector.length?targetNode=targetSelector.get(0):void\x200!==targetSelector.nodeType&&1===targetSelector.nodeType&&(targetNode=targetSelector),targetNode}(selector),fallbackHTML=\x22\x22,pdfOpenFragment=\x22\x22;if(\x22string\x22!=typeof\x20url)return\x20embedError(\x22URL\x20is\x20not\x20valid\x22,suppressConsole);if(!targetNode)return\x20embedError(\x22Target\x20element\x20cannot\x20be\x20determined\x22,suppressConsole);if(page&&(pdfOpenParams.page=page),pdfOpenFragment=function(pdfParams){let\x20prop,string=\x22\x22;if(pdfParams){for(prop\x20in\x20pdfParams)pdfParams.hasOwnProperty(prop)&&(string+=encodeURIComponent(prop)+\x22=\x22+encodeURIComponent(pdfParams[prop])+\x22&\x22);string&&(string=(string=\x22#\x22+string).slice(0,string.length-1))}return\x20string}(pdfOpenParams),forcePDFJS&&PDFJS_URL)return\x20generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles);if(supportsPDFs||assumptionMode&&isModernBrowser&&!isMobileDevice){return\x20function(embedType,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20embed=document.createElement(embedType);if(embed.src=url+pdfOpenFragment,embed.className=\x22pdfobject\x22,embed.type=\x22application/pdf\x22,id&&(embed.id=id),!omitInlineStyles){let\x20style=\x22embed\x22===embedType?\x22overflow:\x20auto;\x22:\x22border:\x20none;\x22;targetSelector&&targetSelector!==document.body?style+=\x22width:\x20\x22+width+\x22;\x20height:\x20\x22+height+\x22;\x22:style+=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x20width:\x20100%;\x20height:\x20100%;\x22,embed.style.cssText=style}return\x20targetNode.classList.add(\x22pdfobject-container\x22),targetNode.appendChild(embed),targetNode.getElementsByTagName(embedType)[0]}(forceIframe||supportRedirect&&isSafariDesktop?\x22iframe\x22:\x22embed\x22,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles)}return\x20PDFJS_URL?generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles):(fallbackLink&&(fallbackHTML=\x22string\x22==typeof\x20fallbackLink?fallbackLink:\x22

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

\x22,targetNode.innerHTML=fallbackHTML.replace(/\x5c[url\x5c]/g,url)),embedError(\x22This\x20browser\x20does\x20not\x20support\x20embedded\x20PDFs\x22,suppressConsole))};return{embed:function(a,b,c){return\x20embed(a,b,c)},pdfobjectversion:\x222.2.3\x22,supportsPDFs:supportsPDFs}});'+'if\x20(typeof\x20module\x20===\x20\x22object\x22\x20&&\x20module.exports)\x20{'+'this.PDFObject\x20=\x20module.exports;'+'}'+'PDFObject.embed(\x22'+BS+'\x22,\x20\x22#content\x22,\x20{'+(BX?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+BY+'\x22,'+'\x22forcePDFJS\x22:\x20'+BZ+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+BX+'){'+'\x20var\x20iframeTimerId;'+'\x20function\x20startTimer(){'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20function\x20checkIframeLoaded(){\x20\x20'+'\x20\x20\x20\x20var\x20iframe\x20=\x20document.getElementById(\x22googleViewer\x22);'+'\x20\x20\x20\x20iframe.src\x20=\x20iframe.src;'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20document.getElementById(\x22googleViewer\x22).addEventListener(\x22load\x22,\x20function(){'+'\x20\x20\x20clearInterval(iframeTimerId);\x20'+'\x20});'+'\x20startTimer();'+'}'+'';if(BU=='WebFrame'){BR['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent(''+''+''+''+C0+''+''));}else if(BU=='HTML'){BR['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(C0));}}};TDV['Tour']['Script']['getKey']=function(C1){return window[C1];};TDV['Tour']['Script']['registerKey']=function(C2,C3){window[C2]=C3;};TDV['Tour']['Script']['unregisterKey']=function(C4){delete window[C4];};TDV['Tour']['Script']['existsKey']=function(C5){return C5 in window;};function _getCurrentActiveModels(){var C6=this['getByClassName']('Model3DPlayer');var C7=[];for(var C8 of C6){var C9=C8['get']('model');var Ca=C8['get']('viewerArea');if(C9&&C9['get']('isLoaded')&&Ca&&Ca['get']('visible'))C7['push'](C9);}return C7;}function _onMeasureClick(Cb){var Cc=Cb['source'];var Cd=Cc['get']('mode');if(Cd!='create'){Cc['set']('mode',Cd=='view'?'edit':'view');console['log'](Cc['get']('mode'));}}function _forEachMeasureModel3DObject(Ce,Cf){if(!Ce)Ce=_getCurrentActiveModels['call'](this);Ce['forEach'](function(Cg){Cg['get']('objects')['forEach'](function(Ch){if(Ch['get']('class')=='MeasureModel3DObject')Cf(Cg,Ch);}['bind'](this));}['bind'](this));}function _deleteModel3DObjects(Ci,Cj){if(!Ci)Ci=_getCurrentActiveModels['call'](this);Ci['forEach'](function(Ck){var Cl=Ck['get']('objects');var Cm=Cl['filter'](function(Cn){return!Cj['call'](this,Cn);});if(Cm['length']!=Cl['length']){Ck['set']('objects',Cm);Cl['forEach'](function(Co){if(Cj['call'](this,Co))this['disposeInstance'](Co);}['bind'](this));}}['bind'](this));}function _cloneMeasureModel3DObject(Cp){var Cq=this['clone'](Cp,Cp['getAttributeNames']()['filter'](function(Cr){return Cr!='id';}));Cq['set']('data',{'id':Cp['get']('id')});return Cq;}TDV['Tour']['Script']['startMeasurement']=function(Cs,Ct){if(!Cs)Cs=_getCurrentActiveModels['call'](this);var Cu={},Cv={},Cw={};Cs['forEach'](function(Cy){var Cz=Cy['get']('objects');var CA=Cz['findIndex'](function(CF){return CF['get']('class')=='MeasureModel3DObject'&&CF['get']('mode')=='create';});var CB=CA!=-0x1;if(CB){var CC=Cz[CA];if(CC['get']('points')['length']==0x0){Cz['splice'](CA,0x1);this['disposeInstance'](CC);}else CC['set']('mode','view');}Cz['forEach'](function(CG){if(CG['get']('class')=='MeasureModel3DObject'&&CG['get']('mode')=='edit')CG['set']('mode','view');}['bind'](this));var CD=_cloneMeasureModel3DObject['call'](this,Ct);this['cloneBindings'](Ct,CD,'modeChange');CD['set']('mode','create');CD['bind']('click',_onMeasureClick,this);var CE=Cy['get']('camera');CD['bind']('modeChange',function CH(){if(CD['get']('mode')=='create'){Cu[Cy['get']('id')]=Cy['get']('surfaceSelectionEnabled');Cy['set']('surfaceSelectionEnabled',!![]);if(CE['get']('class')=='FlyOverModel3DCamera'){Cv[Cy['get']('id')]=CE['get']('doubleClickAction');CE['set']('doubleClickAction','none');}}else{CD['unbind']('modeChange',CH,this);Cy['set']('surfaceSelectionEnabled',Cu[Cy['get']('id')]);if(CE['get']('class')=='FlyOverModel3DCamera'){CE['set']('doubleClickAction',Cv[Cy['get']('id')]);}Cz['forEach'](function(CI){var CJ=Cw[CI['get']('id')];if(CJ){CI['set']('rollOverEnabled',CJ['rollOverEnabled']);}});}},this);if(Cs['length']>0x0){CD['bind']('distanceChange',function CK(){CD['unbind']('distanceChange',CK,this);Cx['call'](this,Cs['filter'](CL=>CL!=Cy));},this);}Cz['forEach'](function(CM){var CN=CM['get']('id');if(CN){Cw[CN]={'rollOverEnabled':CM['get']('rollOverEnabled')};CM['set']('rollOverEnabled',!![]);}});Cz=Cz['concat']();Cz['push'](CD);Cy['set']('objects',Cz);}['bind'](this));function Cx(CO){this['stopMeasurement'](CO);for(var CP of CO){var CQ=CP['get']('id');CP['set']('surfaceSelectionEnabled',Cu[CQ]);if(CQ in Cv)CP['get']('camera')['set']('doubleClickAction',Cv[CQ]);}}};TDV['Tour']['Script']['stopMeasurement']=function(CR){_deleteModel3DObjects['call'](this,CR,function(CS){return CS['get']('class')=='MeasureModel3DObject'&&CS['get']('mode')=='create'&&CS['get']('points')['length']==0x0;});_forEachMeasureModel3DObject['call'](this,CR,function(CT,CU){if(CU['get']('mode')=='create'){CU['set']('mode','edit');}});};TDV['Tour']['Script']['toggleMeasurement']=function(CV,CW){if(!CV)CV=_getCurrentActiveModels['call'](this);var CX=CV['some'](function(CY){var CZ=CY['get']('objects');var D0=CZ['find'](function(D1){return D1['get']('class')=='MeasureModel3DObject'&&D1['get']('mode')=='create';});return D0!=null;});if(!CX)this['startMeasurement'](CV,CW);else this['stopMeasurement'](CV);};TDV['Tour']['Script']['cleanAllMeasurements']=function(D2){_deleteModel3DObjects['call'](this,D2,function(D3){return D3['get']('class')=='MeasureModel3DObject';});};TDV['Tour']['Script']['cleanSelectedMeasurements']=function(D4){_deleteModel3DObjects['call'](this,D4,function(D5){return D5['get']('class')=='MeasureModel3DObject'&&D5['get']('mode')=='edit';});};TDV['Tour']['Script']['setMeasurementsVisibility']=function(D6,D7){_forEachMeasureModel3DObject['call'](this,D6,function(D8,D9){D9['set']('enabled',D7);});};TDV['Tour']['Script']['toggleMeasurementsVisibility']=function(Da){_forEachMeasureModel3DObject['call'](this,Da,function(Db,Dc){Dc['set']('enabled',!Dc['get']('enabled'));});};TDV['Tour']['Script']['setMeasurementUnits']=function(Dd){_forEachMeasureModel3DObject['call'](this,null,function(De,Df){Df['set']('units',Dd);});}; //# sourceMappingURL=script_v2023.2.7.js.map //Generated with v2023.2.7, Mon May 6 2024 var tour; var devicesUrl = {"mobile":{"portrait":"script_mobile.js?v=1714988424897","landscape":"script_general.js?v=1714988424897"},"ipad":"script_general.js?v=1714988424897","general":"script_general.js?v=1714988424897"}; (function() { var deviceType = ['general']; if(TDV.PlayerAPI.mobile) deviceType.unshift('mobile'); if(TDV.PlayerAPI.device == TDV.PlayerAPI.DEVICE_IPAD) deviceType.unshift('ipad'); var url; for(var i=0; i -1; } function getParams(params) { var queryDict = {}; params.split("&").forEach(function(item) {var k = item.split("=")[0], v = decodeURIComponent(item.split("=")[1]);queryDict[k.toLowerCase()] = v}); return queryDict; } document.addEventListener('DOMContentLoaded', onLoad);