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'&&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{mv['set'](mx,mu['get'](mx));});}}function m0(my){mf=my['source'];}function m1(mz){mf=md;}function m2(mA){m5['call'](this,mA['source']);}function m3(mB){var mC=mB['get']('viewerArea');if(mC==ma){if(md&&md['get']('class')=='PanoramaPlayer'){md['get']('camera')['set']('hoverFactor',mg);}md=mB;mf=md;if(md&&md['get']('class')=='PanoramaPlayer'){mg=md['get']('camera')['get']('hoverFactor');md['get']('camera')['set']('hoverFactor',0x0);}}else if(mC==mb){if(me&&me['get']('class')=='PanoramaPlayer'){me['get']('camera')['set']('hoverFactor',mh);}me=mB;mf=me;if(me&&me['get']('class')=='PanoramaPlayer'){mh=me['get']('camera')['get']('hoverFactor');me['get']('camera')['set']('hoverFactor',0x0);}}lZ(mB);}function m4(mD){var mE=this['getCurrentPlayers']();var mF=mE['length'];while(mF-->0x0){var mH=mE[mF];if(mH['get']('viewerArea')!=mD){mE['splice'](mF,0x1);}}for(mF=0x0;mF{return mL['player']==mI;});if(mJ){if(mJ['media']['get']('class')=='Model3D'){mJ['media']['get']('camera')['unbind']('positionSet',mJ['updateFn'],this);}mi['splice'](mi['indexOf'](mJ),0x1);}var mK=this['getMediaFromPlayer'](mI);if(!mK)return;mJ={'media':mK,'player':mI,'updateFn':()=>{lZ(mI);}};mi['push'](mJ);if(mJ['media']['get']('class')=='Model3D'){mJ['media']['get']('camera')['bind']('positionSet',mJ['updateFn'],this);}m3(mI);}function m6(mM){m3(this['getActivePlayerWithViewer'](mM['source']));lZ(mf);}var m7=lU['get']('children');var m8=m7[0x0];var m9=m7[0x1];var ma=m8['get']('children')[0x0];var mb=m9['get']('children')[0x0];var mc=m7[0x2];var md,me,mf;var mg,mh;var mi=[];m4['call'](this,ma);m4['call'](this,mb);ma['bind']('mouseDown',m6,this);mb['bind']('mouseDown',m6,this);lU['bind']('resize',function(){mc['set']('left',(lU['get']('actualWidth')-mc['get']('actualWidth'))*0.5);lV();},this);mc['bind']('mouseDown',function(mN){var mO=mN['pageX'];var mP=function(mQ){var mR=mQ['pageX'];var mS=mO-mR;var mT=lU['get']('actualWidth');var mU=mc['get']('left');var mV=(typeof mU=='string'?lW(mU):mU)-mS;if(mV<0x0){mR-=mV;mV=0x0;}else if(mV+mc['get']('actualWidth')>=mT){mR-=mV-(mT-mc['get']('actualWidth'));mV=mT-mc['get']('actualWidth');}mc['set']('left',mV);lV();mO=mR;};this['bind']('mouseMove',mP,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',mP,this);},this);},this);lV();};TDV['Tour']['Script']['_initTwinsViewer']=function(mW){function mX(){var nl=mW['get']('actualWidth');na['get']('children')[0x0]['set']('width',nl);nb['get']('children')[0x0]['set']('width',nl);var nm=ne['get']('left');var nn=typeof nm=='string'?mY(nm):nm;nn+=ne['get']('actualWidth')*0.5;na['set']('width',mZ(nn));nb['set']('width',mZ(nl-nn));}function mY(no){return parseFloat(no['replace']('%',''))/0x64*mW['get']('actualWidth');}function mZ(np){return np/mW['get']('actualWidth')*0x64+'%';}function n0(nq){n1(nq['source']);}function n1(nr){var ns=nr==ng?nf:ng;if(nh&&nr!=nh||!nr||!ns)return;var nt=nr['get']('class');var nu=ns['get']('class');if(nt=='PanoramaPlayer'&&nu=='PanoramaPlayer'){var nv=ns['get']('camera')['get']('initialPosition')['get']('yaw')-nr['get']('camera')['get']('initialPosition')['get']('yaw');ns['setPosition'](nr['get']('yaw')+nv,nr['get']('pitch'),nr['get']('roll'),nr['get']('hfov'));}else if(nt=='Model3DPlayer'&&nu=='Model3DPlayer'){var nw=nr['get']('model')['get']('camera');var nx=ns['get']('model')['get']('camera');var ny=['yaw','pitch','x','y','z','fov'];if(nw['get']('class')=='OrbitModel3DCamera'&&nx['get']('class')=='OrbitModel3DCamera')ny['push']('distance');ny['forEach'](nz=>{nx['set'](nz,nw['get'](nz));});}}function n2(nA){nh=nA['source'];}function n3(nB){nh=nf;}function n4(nC){n7['call'](this,nC['source']);}function n5(nD){var nE=nD['get']('viewerArea');if(nE==nc){if(nf&&nf['get']('class')=='PanoramaPlayer'){nf['get']('camera')['set']('hoverFactor',ni);}nf=nD;nh=nf;if(nf&&nf['get']('class')=='PanoramaPlayer'){ni=nf['get']('camera')['get']('hoverFactor');nf['get']('camera')['set']('hoverFactor',0x0);}}else if(nE==nd){if(ng&&ng['get']('class')=='PanoramaPlayer'){ng['get']('camera')['set']('hoverFactor',nj);}ng=nD;nh=ng;if(ng&&ng['get']('class')=='PanoramaPlayer'){nj=ng['get']('camera')['get']('hoverFactor');ng['get']('camera')['set']('hoverFactor',0x0);}}n1(nD);}function n6(nF){var nG=this['getCurrentPlayers']();var nH=nG['length'];while(nH-->0x0){var nJ=nG[nH];if(nJ['get']('viewerArea')!=nF){nG['splice'](nH,0x1);}}for(nH=0x0;nH{return nN['player']==nK;});if(nL){if(nL['media']['get']('class')=='Model3D'){nL['media']['get']('camera')['unbind']('positionSet',nL['updateFn'],this);}nk['splice'](nk['indexOf'](nL),0x1);}var nM=this['getMediaFromPlayer'](nK);if(!nM)return;nL={'media':nM,'player':nK,'updateFn':()=>{n1(nK);}};nk['push'](nL);if(nL['media']['get']('class')=='Model3D'){nL['media']['get']('camera')['bind']('positionSet',nL['updateFn'],this);}n5(nK);}function n8(nO){n5(this['getActivePlayerWithViewer'](nO['source']));n1(nh);}var n9=mW['get']('children');var na=n9[0x0];var nb=n9[0x1];var nc=na['get']('children')[0x0];var nd=nb['get']('children')[0x0];var ne=n9[0x2];var nf,ng,nh;var ni,nj;var nk=[];n6['call'](this,nc);n6['call'](this,nd);nc['bind']('mouseDown',n8,this);nd['bind']('mouseDown',n8,this);mW['bind']('resize',function(){ne['set']('left',(mW['get']('actualWidth')-ne['get']('actualWidth'))*0.5);mX();},this);mX();};TDV['Tour']['Script']['isCardboardViewMode']=function(){var nP=this['getByClassName']('PanoramaPlayer');return nP['length']>0x0&&nP[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(nQ){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](nQ['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(nR,nS){var nT='keepVisibility_'+nR['get']('id');var nU=this['getKey'](nT);if(nU==undefined&&nS){this['registerKey'](nT,nS);}else if(nU!=undefined&&!nS){this['unregisterKey'](nT);}};TDV['Tour']['Script']['_initItemWithComps']=function(nV,nW,nX,nY,nZ,o0,o1,o2){var o3=nV['get']('items')[nW];var o4=o3['get']('media');var o5=o4['get']('loop')==undefined||o4['get']('loop');var o6=o2>0x0;var o7=this['rootPlayer'];var o8=function(og){var oh=o0?o0['get']('class'):undefined;var oi=undefined;switch(oh){case'FadeInEffect':case'FadeOutEffect':oi=o7['createInstance'](og?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':oi=o7['createInstance'](og?'SlideInEffect':'SlideOutEffect');break;}if(oi){oi['set']('duration',o0['get']('duration'));oi['set']('easing',o0['get']('easing'));if(oh['indexOf']('Slide')!=-0x1)oi['set'](og?'from':'to',o0['get'](o0['get']('class')=='SlideInEffect'?'from':'to'));}return oi;};var o9=function(){for(var oj=0x0,ok=nX['length'];oj0x0){this['setComponentVisibility'](ol,!nZ,0x0,o8(!nZ));}else{var om='visibility_'+ol['get']('id');if(this['existsKey'](om)){if(this['getKey'](om))this['setComponentVisibility'](ol,!![],0x0,o8(!![]));else this['setComponentVisibility'](ol,![],0x0,o8(![]));this['unregisterKey'](om);}}}o3['unbind']('end',o9,this);if(!o5)o4['unbind']('end',o9,this);};var oa=function(){o3['unbind']('stop',oa,this,!![]);o3['unbind']('stop',oa,this);o3['unbind']('begin',oa,this,!![]);o3['unbind']('begin',oa,this);for(var on=0x0,oo=nX['length'];on0x0){var oA=oq+or+(oz!=undefined?oz['get']('duration'):0x0);o7['setComponentVisibility'](ox,!oy,oA,o8(!oy),oy?'hideEffect':'showEffect',!![]);}};for(var ou=0x0,ov=nX['length'];ou0x0){ob('begin',o2,0x0);o2=0x0;}if(nY!=undefined)ob(nY,o1,o2);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(oB,oC,oD){var oE=oB['get']('selectedIndex');var oF=oB['get']('items')['length'];var oG=(oE+oC)%oF;while(oG<0x0){oG=oF+oG;}if(oE!=oG){if(oD){var oH=oB['get']('items')[oG];this['skip3DTransitionOnce'](oH['get']('player'));}oB['set']('selectedIndex',oG);}};TDV['Tour']['Script']['mixObject']=function(oI,oJ){return this['assignObjRecursively'](oJ,this['copyObjRecursively'](oI));};TDV['Tour']['Script']['downloadFile']=function(oK){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var oL=document['createElement']('a');oL['href']=oK;oL['setAttribute']('target','_blank');if(oL['download']!==undefined){var oM=oK['substring'](oK['lastIndexOf']('/')+0x1,oK['length']);oL['download']=oM;}if(document['createEvent']){var oN=document['createEvent']('MouseEvents');oN['initEvent']('click',!![],!![]);oL['dispatchEvent'](oN);return;}}window['open'](oK,'_blank');};TDV['Tour']['Script']['openLink']=function(oO,oP){if(!oO||oO==location['href']){return;}if(!oP)oP='_blank';if(oP=='_top'||oP=='_self'){this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});}var oQ=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(oQ&&oP=='_blank'){if(oO['startsWith']('files/')){oO='/'+oO;}if(oO['startsWith']('//')){oO='https:'+oO;}else if(oO['startsWith']('/')){var oR=window['location']['href']['split']('/');oR['pop']();oO=oR['join']('/')+oO;}var oS=oO['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](oS)==-0x1||oO['startsWith']('file://'))&&window['hasOwnProperty']('require')){var oT=window['require']('electron')['shell'];oT['openExternal'](oO);}else{window['open'](oO,oP);}}else if(oQ&&(oP=='_top'||oP=='_self')){window['location']=oO;}else{var oU=this['get']('data')['tour'];if(oU['isMobileApp']()&&oU['isIOS']())oO='blank:'+oO;var oV=window['open'](oO,oP);oV['focus']();}};TDV['Tour']['Script']['startPanoramaWithModel']=function(oW,oX){var oY=oW['get']('media');var oZ=_findLocationWithPanorama['call'](this,oY);if(!oZ){oX['call'](this);return;}var p0=oZ['get']('model');var p1=oW['get']('player')['get']('viewerArea');var p3=this['getActivePlayersWithViewer'](p1);var p5=p3['length']==0x1?p3['find'](function(pc){return this['getMediaFromPlayer'](pc)==p0;}['bind'](this)):undefined;if(p5){oX['call'](this);}else{var p3=_getPlayersWithViewer['call'](this,p1);var p5=p3['find'](function(pd){return pd['get']('class')=='Model3DPlayer';});var p6,p7;if(!p5){p5=this['createInstance']('Model3DPlayer');p5['set']('viewerArea',p1);}else{var p8=this['getByClassName']('Model3DPlayListItem');p6=p8['find'](function(pe){return pe['get']('player')==p5;}['bind'](this));}if(!p6){p6=this['createInstance']('Model3DPlayListItem');p6['set']('player',p5);_initModel3DItem['call'](this,p6);}p6['set']('media',p0);var p9=oZ['get']('forceModelLoading');oZ['set']('forceModelLoading',!![]);var pa=function(){p6['unbind']('begin',pa,this);oX['call'](this);};var pb=function(){oW['unbind']('begin',pb,this);oZ['set']('forceModelLoading',p9);if(p7)this['disposeInstance'](p7);};oW['bind']('begin',pb,this);if(p6['get']('state')=='playing')pa['call'](this);else{p6['bind']('begin',pa,this);p7=this['createInstance']('PlayList');p7['set']('items',[p6]);p7['set']('selectedIndex',0x0);}}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(pf){var pg=this['getCurrentPlayers']();var ph=pg['length'];while(ph-->0x0){var pi=pg[ph];if(pi['get']('state')=='playing'||pi['get']('data')&&pi['get']('data')['playing']||pi['get']('viewerArea')&&pi['get']('viewerArea')['get']('id')==this['getMainViewer']()||pi['get']('camera')&&pi['get']('camera')['get']('idleSequence')&&pi['get']('camera')['get']('timeToIdle')>0x0&&pi['get']('state')=='playing'||pi['get']('class')=='Model3DPlayer'&&pi['get']('model')&&pi['get']('model')['get']('camera')['get']('state')=='playing'){var pj=this['getMediaFromPlayer'](pi);if(pf&&pj&&pj['get']('class')!='Video360'&&'pauseCamera'in pi){pi['pauseCamera']();}else{pi['pause']();}}else{pg['splice'](ph,0x1);}}return pg;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(pk,pl,pm){var pn=function(){if(pk['get']('selectedIndex')!=pl){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](pm,!![]);this['executeFunctionWhenChange'](pk,pl,pn,pn);};TDV['Tour']['Script']['pauseGlobalAudios']=function(po,pp){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var pq=this['getByClassName']('VideoPanoramaOverlay');pq=pq['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var ps=pq['length']-0x1;ps>=0x0;--ps){var pt=pq[ps];if(pt['get']('video')['get']('hasAudio')==![])pq['splice'](ps,0x1);}var pu=this['getByClassName']('Audio')['concat'](pq);var pv={};if(window['currentGlobalAudios']!=undefined)pu=pu['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(pz){if(!pz['allowResume'])pv[pz['audio']['get']('id')]=pz['audio'];return pz['audio'];}));var pw=[];for(var ps=0x0,px=pu['length'];ps0x0)window['pausedAudiosLIFO']['push'](pw);return pw;};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 pA=window['pausedAudiosLIFO']['pop']();if(!pA)return;for(var pB=0x0,pC=pA['length'];pB=pH['length']){if(!pI)return;pK=0x0;}pL=pH[pK];pM(pL,!![],pN,!![]);};pN();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(pO,pP,pQ,pR){var pS=this['getActiveMediaWithViewer'](this['getMainViewer']());var pT=this['getFirstPlayListWithMedia'](pS,!![]);var pU=this['getPlayListItemByMedia'](pT,pS);var pV=pT['get']('items')['indexOf'](pU);return this['playGlobalAudioWhilePlay'](pT,pV,pO,pP,pQ,pR);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(pW,pX,pY,pZ,q0,q1){var q2=function(qb){if(qb['data']['previousSelectedIndex']==pX){this['stopGlobalAudio'](pY);if(q6){var qc=q5['get']('media');var qd=qc['get']('audios');qd['splice'](qd['indexOf'](pY),0x1);qc['set']('audios',qd);}pW['unbind']('change',q2,this);if(q0)q0();}};var q4=window['currentGlobalAudios'];if(q4&&pY['get']('id')in q4){pY=q4[pY['get']('id')]['audio'];if(pY['get']('state')!='playing'){pY['play']();}return pY;}pW['bind']('change',q2,this);var q5=pW['get']('items')[pX];var q6=q5['get']('class')=='PanoramaPlayListItem';if(q6){var q7=q5['get']('media');var q4=(q7['get']('audios')||[])['slice']();if(pY['get']('class')=='MediaAudio'){var q8=this['rootPlayer']['createInstance']('PanoramaAudio');q8['set']('autoplay',![]);q8['set']('audio',pY['get']('audio'));q8['set']('loop',pY['get']('loop'));q8['set']('id',pY['get']('id'));this['cloneBindings'](pY,q8,'start');this['cloneBindings'](pY,q8,'end');this['cloneBindings'](pY,q8,'stateChange');pY=q8;}q4['push'](pY);q7['set']('audios',q4);}var q9=this['playGlobalAudio'](pY,pZ,function(){pW['unbind']('change',q2,this);if(q0)q0['call'](this);});if(q1===!![]){var qa=function(){if(q9['get']('state')=='playing'){this['pauseGlobalAudios']([q9],!![]);}else if(q9['get']('state')=='stopped'){this['resumeGlobalAudios']();q9['unbind']('stateChange',qa,this);}};q9['bind']('stateChange',qa,this);}return q9;};TDV['Tour']['Script']['playGlobalAudio']=function(qe,qf,qg,qh){var qi=function(){qe['unbind']('end',qi,this);this['stopGlobalAudio'](qe);if(qg)qg['call'](this);};qe=this['getGlobalAudio'](qe);var qj=window['currentGlobalAudios'];if(!qj){qj=window['currentGlobalAudios']={};}qj[qe['get']('id')]={'audio':qe,'asBackground':qh||![],'allowResume':qf};if(qe['get']('state')=='playing'){return qe;}if(!qe['get']('loop')){qe['bind']('end',qi,this);}qe['play']();return qe;};TDV['Tour']['Script']['restartTourWithoutInteraction']=function(qk){var ql=-0x1;this['bind']('userInteraction',qm['bind'](this),this);qm();function qm(){if(ql!=-0x1)clearTimeout(ql);ql=setTimeout(function(){var qn=this['get']('data')['tour'];if(qn){if(this['isCardboardViewMode']())location['reload']();else qn['reload']();}}['bind'](this),qk*0x3e8);}};TDV['Tour']['Script']['resumePlayers']=function(qo,qp){for(var qq=0x0;qq0x0){var qR=setTimeout(function(){if(window[qP]instanceof Array){var qU=window[qP];var qV=qU['indexOf'](qR);qU['splice'](qV,0x1);if(qU['length']==0x0){delete window[qP];}}else{delete window[qP];}qO();},qJ);if(window['hasOwnProperty'](qP)){window[qP]=[window[qP],qR];}else{window[qP]=qR;}}else{qO();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(qW,qX,qY,qZ){qW['set']('yaw',qX);qW['set']('pitch',qY);qW['set']('maximumAngle',qZ);};TDV['Tour']['Script']['setLocale']=function(r0){this['stopTextToSpeech']();var r1=this['get']('data')['localeManager'];if(r1)this['get']('data')['localeManager']['setLocale'](r0);else{this['get']('data')['defaultLocale']=r0;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(r2,r3,r4){var r5=function(){if(r2['get']('selectedIndex')==r3){var r6=r2['get']('items')[r4];this['skip3DTransitionOnce'](r6['get']('player'));r2['set']('selectedIndex',r4);}};this['executeFunctionWhenChange'](r2,r3,r5);};TDV['Tour']['Script']['setMapLocation']=function(r7,r8){var r9=function(){r7['unbind']('stop',r9,this);ra['set']('mapPlayer',null);};r7['bind']('stop',r9,this);var ra=r7['get']('player');ra['set']('mapPlayer',r8);};TDV['Tour']['Script']['setMainMediaByIndex']=function(rb){var rc=undefined;if(rb>=0x0&&rb0x0){rw=rz[0x0];rx=this['getPlayListItemIndexByMedia'](rw,rs);}if(!rw)rs=!![];}if(rs===!![]){var rE=this['getActiveMediaWithViewer'](ry);if(rE){rw=this['getFirstPlayListWithMedia'](rE,!![]);var rD=this['getPlayListItemByMedia'](rw,rE);rx=rw['get']('items')['indexOf'](rD);}else{rs=null;}}var rF=[];var rG=function(){var rO=rF['concat']();var rP=![];var rQ=function(rT){var rU=rT['source']['get']('state');if(rU=='playing'){if(!rP){rP=!![];this['pauseGlobalAudios'](rF,!![]);}}else if(rU=='stopped'){rO['splice'](rO['indexOf'](rT['source']),0x1);if(rO['length']==0x0){this['resumeGlobalAudios']();}rT['source']['unbind']('stateChange',rQ,this);}}['bind'](this);for(var rR=0x0,rS=rF['length'];rR0x0&&sN['get']('movements')[sM-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var sY=sO['get']('initialPosition');var sZ=sY['get']('yaw');var t0=sY['get']('pitch');var t1=sY['get']('hfov');var t2=sN['get']('movements')[sM-0x1];var t3=t2['get']('targetYaw');var t4=t2['get']('targetPitch');var t5=t2['get']('targetHfov');if(t3!==undefined)sY['set']('yaw',t3);if(t4!==undefined)sY['set']('pitch',t4);if(t5!==undefined)sY['set']('hfov',t5);var t6=function(t9){sY['set']('yaw',sZ);sY['set']('pitch',t0);sY['set']('hfov',t1);sI['unbind']('end',t6,this);};sI['bind']('end',t6,this);}sN['set']('movementIndex',sM);}}if(sG){sF['unbind']('begin',sw,this);sG['unbind']('stateChange',sv,this);for(var t7=0x0;t70x1)&&(t8==undefined||t8==sF['get']('media'))){sC['set']('selectedIndex',sE);}if(sq!=sC)sC['unbind']('change',sx,this);}else{sJ['set']('visible',sK);}sC=undefined;};if(!ss){var sA=sq['get']('selectedIndex');var sB=sA!=-0x1?sq['get']('items')[sq['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(sB){ss=this['getMediaFromPlayer'](sB);}}var sC=undefined;if(ss){var sD=this['getPlayListsWithMedia'](ss,!![]);if(sD['indexOf'](sq)!=-0x1){sC=sq;}else if(sD['indexOf'](this['mainPlayList'])!=-0x1){sC=this['mainPlayList'];}else if(sD['length']>0x0){sC=sD[0x0];}}if(!sC){sq['set']('selectedIndex',sr);return;}var sE=sC['get']('selectedIndex');var sF=sq['get']('items')[sr];var sG=sF['get']('player');var sH=this['getMediaFromPlayer'](sG);if(sq['get']('selectedIndex')==sr&&sH==sF['get']('media')||sE==-0x1){return;}if(sq['get']('selectedIndex')==sr&&sH!=sF['get']('media'))sq['set']('selectedIndex',-0x1);var sI=sC['get']('items')[sE];var sJ=sG['get']('viewerArea');var sK=sJ['get']('visible');var sL=sJ==sI['get']('player')['get']('viewerArea');if(sL){if(sq!=sC){sC['set']('selectedIndex',-0x1);sC['bind']('change',sx,this);}}else{sJ['set']('visible',!![]);}var sM=-0x1;var sN=undefined;var sO=sI['get']('camera');if(sO){sN=sO['get']('initialSequence');if(sN){sM=sN['get']('movementIndex');}}sq['set']('selectedIndex',sr);var sP=[];var sQ=function(ta){var tb=sG['get'](ta);if(tb==undefined)return;if(Array['isArray'](tb))sP=sP['concat'](tb);else sP['push'](tb);};sQ('buttonStop');for(var sR=0x0;sR0x0){ts[tv['get']('id')]=setTimeout(tw['bind'](this,tv),tp);}else{tw['call'](this,tv);}}function tw(tx){var ty=tx['get']('id');var tz=ts[ty];if(tz){clearTimeout(tz);delete tz[ty];}var tA=tx['get']('class')=='PanoramaModel3DLocation'?tx['get']('data')['object']:tx;if(!tA)return;var tB=to=='toggle'?!tA['get']('enabled'):to;tA['set']('enabled',tB);if(tx['get']('class')=='PanoramaModel3DLocation')tx['get']('data')['enabled']=tB;var tD=tx['get']('data');if(tB&&tD&&'group'in tD){var tE=this['getOverlaysByGroupname'](tD['group']);for(var tF=0x0,tG=tE['length'];tF=0x0&&u7[u6]==u2&&u8['get']('isLoaded')){u9['set']('yaw',u9['get']('yaw')%0x168);var ua=u2['get']('player')['get']('viewerArea');var ub=this['getActiveMediaWithViewer'](ua);if(ub['get']('class')['indexOf']('Panorama')!=-0x1){if(u4!==undefined){u4*=0x3e8;var uc=ua['get']('modelToPanoramaTraslationDuration');var ud=ua['get']('panoramaToModelTraslationDuration');var ue=()=>{clearTimeout(uf);u1['unbind']('change',ue,this);ua['set']('modelToPanoramaTraslationDuration',uc);ua['set']('panoramaToModelTraslationDuration',ud);};var uf=setTimeout(ue,u4);u1['bind']('change',ue,this);ua['set']('modelToPanoramaTraslationDuration',u4);ua['set']('panoramaToModelTraslationDuration',u4);}u9['setStoredPosition'](u3);}else{if(u9['get']('state')=='playing')u9['stop']();this['createTween'](u9,u3,u4,u5)['play']();}}else{if(u9['get']('state')=='playing')u9['stop']();this['startModel3DWithCameraSpot'](u2,u3);}};TDV['Tour']['Script']['setModel3DCameraSequence']=function(ug,uh,ui){var uj=ug['get']('selectedIndex');var uk=ug['get']('items');var ul=uh['get']('media');if(uk[uj]==uh&&ul['get']('isLoaded')){ui['play']();}else{var um=ui['get']('movements');var un={};if(um['length']>0x0){var uo=um[0x0];if(uo['get']('class')=='TargetModel3DCameraMovement'){var up=['x','y','z','yaw','pitch','fov','distance'];for(var uq in up){uq=up[uq];var ur=uo['get']('target'+uq['charAt'](0x0)['toUpperCase']()+uq['slice'](0x1));if(ur!==undefined){un[uq]=ur;}}}}this['startModel3DWithCameraSpot'](uh,un);var us=function(){uh['unbind']('begin',us,this);ui['play']();};uh['bind']('begin',us,this);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(ut,uu){var uv=this['getActiveMediaWithViewer'](uu||this['getMainViewer']());if(uv!=undefined&&(uv['get']('class')['indexOf']('Panorama')!=-0x1||uv['get']('class')=='Video360')){var uw=ut['get']('media');var ux=this['clonePanoramaCamera'](ut['get']('camera'));this['setCameraSameSpotAsMedia'](ux,uv);this['startPanoramaWithCamera'](uw,ux);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(uy,uz,uA,uB,uC){var uD=uz['get']('media');var uE=uz['get']('player');if(uy['get']('items')[uy['get']('selectedIndex')]==uz||uE['get']('rendererPanorama')==uD){if(uA===undefined)uA=uE['get']('yaw');if(uB===undefined)uB=uE['get']('pitch');if(uC===undefined)uC=uE['get']('hfov');uE['moveTo'](uA,uB,uE['get']('roll'),uC);}else{var uF=this['clonePanoramaCamera'](uz['get']('camera'));var uG=uF['get']('initialPosition');if(uA!==undefined)uG['set']('yaw',uA);if(uB!==undefined)uG['set']('pitch',uB);if(uC!==undefined)uG['set']('hfov',uC);this['startPanoramaWithCamera'](uD,uF);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(uH){var uI=this['getByClassName']('HotspotPanoramaOverlay');var uJ=this['getByClassName']('PanoramaPlayer');var uK=uH=='hotspotEnabled';var uL=uH=='circleEnabled';var uM=!!uH;uI['forEach'](function(uN){var uO=uN['get']('data');if(uO&&uO['hasPanoramaAction']==!![])uN['set']('enabledInSurfaceSelection',uK);});uJ['forEach'](function(uP){uP['set']('adjacentPanoramaPositionsEnabled',uL);uP['set']('surfaceSelectionEnabled',uM);});this['get']('data')['surfaceSelectionHotspotMode']=uH;};TDV['Tour']['Script']['setValue']=function(uQ,uR,uS){try{if('set'in uQ)uQ['set'](uR,uS);else uQ[uR]=uS;}catch(uT){}};TDV['Tour']['Script']['setStartTimeVideo']=function(uU,uV){var uW=this['getPlayListItems'](uU);var uX=[];var uY=function(){for(var v2=0x0;v2=0x0)clearTimeout(vn);vi['bind']('rollOut',vp,this);};var vp=function(){var vu=function(){vm['call'](this,![]);};vi['unbind']('rollOut',vp,this);vn=setTimeout(vu['bind'](this),vk);};vi['bind']('rollOver',vo,this);}};TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(vv,vw,vx,vy){var vz=this['_getObjectsByTags'](vw,['InnerModel3DObject'],'tags2Objects',vx)['filter'](function(vA){return vv['get']('objects')['indexOf'](vA)!=-0x1;}['bind'](this));this['setObjectsVisibility'](vz,vy);};TDV['Tour']['Script']['setObjectsVisibilityByID']=function(vB,vC,vD){var vE=vC['map'](function(vF){return this['getModel3DInnerObject'](vB,vF);}['bind'](this));this['setObjectsVisibility'](vE,vD);};TDV['Tour']['Script']['setObjectsVisibility']=function(vG,vH){vG['forEach'](function(vI){if(vI)vI['set']('enabled',vH==='toggle'?!vI['get']('enabled'):vH);}['bind'](this));};TDV['Tour']['Script']['getModel3DInnerObject']=function(vJ,vK){var vL=vJ['get']('objects');for(var vM=0x0,vN=vL['length'];vMwe?wd:we;wc+=w2('headerPaddingTop')+w2('headerPaddingBottom');}var wf=w9-w2('bodyPaddingLeft')-w2('bodyPaddingRight')-w2('paddingLeft')-w2('paddingRight');var wg=wa-wc-wb-w2('bodyPaddingTop')-w2('bodyPaddingBottom')-w2('paddingTop')-w2('paddingBottom');var wh=wf/wg;var wi=w5/w6;if(wh>wi){w9=wg*wi+w2('bodyPaddingLeft')+w2('bodyPaddingRight')+w2('paddingLeft')+w2('paddingRight');}else{wa=wf/wi+wc+wb+w2('bodyPaddingTop')+w2('bodyPaddingBottom')+w2('paddingTop')+w2('paddingBottom');}if(w9>w3*w7){w9=w3*w7;}if(wa>w4*w8){wa=w4*w8;}vP['set']('width',w9);vP['set']('height',wa);vP['set']('x',(w3-w2('actualWidth'))*0.5);vP['set']('y',(w4-w2('actualHeight'))*0.5);};if(vU){this['executeFunctionWhenChange'](vR,0x0,vX);}var vZ=vQ['get']('class');var w0=vZ=='Video'||vZ=='Video360';vR['set']('selectedIndex',0x0);if(w0){this['bind']('resize',vY,this);vY();vR['get']('items')[0x0]['get']('player')['play']();}else{vP['set']('width',vS);vP['set']('height',vT);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var w1=this['pauseCurrentPlayers'](!![]);vP['bind']('close',vW,this);vP['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(wk,wl,wm,wn,wo,wp,wq,wr,ws,wt,wu,wv){var ww=![];var wx=function(){wP['unbind']('loaded',wA,this);wE['call'](this);};var wy=function(){wP['unbind']('click',wy,this);if(wT!=undefined){clearTimeout(wT);}};var wz=function(){setTimeout(wJ,0x0);};var wA=function(){this['unbind']('click',wx,this);wO['set']('visible',!![]);wJ();wQ['set']('visible',!![]);wP['unbind']('loaded',wA,this);wP['bind']('resize',wz,this);wT=setTimeout(wB['bind'](this),0xc8);};var wB=function(){wT=undefined;if(wr){wP['bind']('click',wy,this);wD['call'](this);}wP['bind']('userInteractionStart',wK,this);wP['bind']('userInteractionEnd',wL,this);wP['bind']('backgroundClick',wE,this);if(wl){wP['bind']('click',wH,this);wP['set']('imageCursor','hand');}wQ['bind']('click',wE,this);if(wu)wu['call'](this);};var wC=function(){if(wr&&wT){clearTimeout(wT);wT=undefined;}};var wD=function(){if(wr){wC();wT=setTimeout(wE['bind'](this),wr);}};var wE=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);ww=!![];if(wT)clearTimeout(wT);if(wU)clearTimeout(wU);if(wr)wy();if(wp&&wp['get']('duration')>0x0){wp['bind']('end',wG,this);}else{setTimeout(()=>{wF['call'](this);},0x0);}wP['set']('visible',![]);wQ['set']('visible',![]);wO['set']('visible',![]);this['unbind']('click',wx,this);wP['unbind']('backgroundClick',wE,this);wP['unbind']('userInteractionStart',wK,this);wP['unbind']('userInteractionEnd',wL,this,!![]);wP['unbind']('resize',wz,this);if(wl){wP['unbind']('click',wH,this);wP['set']('cursor','default');}wQ['unbind']('click',wE,this);this['resumePlayers'](wS,ws==null||wt);if(wt){this['resumeGlobalAudios']();}if(ws){this['stopGlobalAudio'](ws);}};var wF=function(){wP['set']('image',null);if(wv)wv['call'](this);};var wG=function(){wp['unbind']('end',wG,this);wF['call'](this);};var wH=function(){wP['set']('image',wI()?wk:wl);};var wI=function(){return wP['get']('image')==wl;};var wJ=function(){var wV=wP['get']('actualWidth')-wP['get']('imageLeft')-wP['get']('imageWidth')+0xa;var wW=wP['get']('imageTop')+0xa;if(wV<0xa)wV=0xa;if(wW<0xa)wW=0xa;wQ['set']('right',wV);wQ['set']('top',wW);};var wK=function(){wC();if(wU){clearTimeout(wU);wU=undefined;}else{wQ['set']('visible',![]);}};var wL=function(){wD['call'](this);if(!ww){wU=setTimeout(wM,0x12c);}};var wM=function(){wU=undefined;wQ['set']('visible',!![]);wJ();};var wN=function(wX){var wY=wX['get']('data');if(wY&&'extraLevels'in wY){var wZ=this['rootPlayer']['createInstance'](wX['get']('class'));var x0=wY['extraLevels'];for(var x1=0x0;x10x0){var xq=xc['get']('imageWidth');var xr=xc['get']('imageHeight');x3['bind']('showEnd',xp,this,!![]);x3['set']('showDuration',0x1);x3['set']('popupMaxWidth',xq);x3['set']('popupMaxHeight',xr);x3['set']('visible',!![]);}else{x3['set']('showDuration',xd);}this['getMainViewer']()['set']('toolTipEnabled',!![]);};x3['bind']('showEnd',xj,this,!![]);}else{var xl=function(){this['resumePlayers'](xg,x8==null||x9);if(x9){this['resumeGlobalAudios']();}if(x8){this['stopGlobalAudio'](x8);}if(x6){x3['set']('image',x5);x3['unbind']('click',xm,this);}x3['unbind']('hideEnd',xl,this);this['getMainViewer']()['set']('toolTipEnabled',!![]);if(xa)xa();};var xm=function(){x3['set']('image',x3['get']('image')==x5?x6:x5);};var xg=this['pauseCurrentPlayers'](x8==null||!x9);if(x9){this['pauseGlobalAudios'](null,!![]);}if(x8){this['playGlobalAudio'](x8,!![]);}if(x6)x3['bind']('click',xm,this);x3['bind']('hideEnd',xl,this,!![]);}x3['set']('visible',!![]);};TDV['Tour']['Script']['showPopupPanoramaVideoOverlay']=function(xs,xt,xu,xv,xw){var xx=![];var xy=function(){xs['unbind']('showEnd',xy);xC['bind']('click',xA,this);xB();xC['set']('visible',!![]);}['bind'](this);var xz=function(){xx=!![];if(!xs['get']('loop'))xA();}['bind'](this);var xA=function(){window['resumeAudiosBlocked']=![];this['getMainViewer']()['set']('toolTipEnabled',!![]);xs['set']('visible',![]);xC['set']('visible',![]);xC['unbind']('click',xA,this);xs['unbind']('end',xz,this);xs['unbind']('hideEnd',xA,this,!![]);this['resumePlayers'](xE,!![]);if(xu){this['resumeGlobalAudios']();}if(xv)xv();if(xw&&xx)xw();}['bind'](this);var xB=function(){var xF=0xa;var xG=0xa;xC['set']('right',xF);xC['set']('top',xG);}['bind'](this);this['getMainViewer']()['set']('toolTipEnabled',![]);var xC=this['closeButtonPopupPanorama'];if(xt){for(var xD in xt){xC['set'](xD,xt[xD]);}}window['resumeAudiosBlocked']=!![];var xE=this['pauseCurrentPlayers'](!![]);if(xu){this['pauseGlobalAudios']();}xs['bind']('end',xz,this,!![]);xs['bind']('showEnd',xy,this,!![]);xs['bind']('hideEnd',xA,this,!![]);xs['set']('visible',!![]);};TDV['Tour']['Script']['showWindow']=function(xH,xI,xJ){if(xH['get']('visible')==!![]){return;}var xK=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);if(xJ){this['resumeGlobalAudios']();}xL();this['resumePlayers'](xO,!xJ);xH['unbind']('close',xK,this);};var xL=function(){xH['unbind']('click',xL,this);if(xM!=undefined){clearTimeout(xM);}};var xM=undefined;if(xI){var xN=function(){xH['hide']();};xH['bind']('click',xL,this);xM=setTimeout(xN,xI);}this['getMainViewer']()['set']('toolTipEnabled',![]);if(xJ){this['pauseGlobalAudios'](null,!![]);}var xO=this['pauseCurrentPlayers'](!xJ);xH['bind']('close',xK,this);xH['show'](this,!![]);};TDV['Tour']['Script']['startModel3DWithCameraSpot']=function(xP,xQ){var xR=xP['get']('media');var xS=window['currentPanoramasWithCameraChanged']==undefined||!(xR['get']('id')in window['currentPanoramasWithCameraChanged']);if(!xS){return;}var xT=xR['get']('camera');xQ=Object['assign']({},xQ);if(!xR['get']('isLoaded')){var xU={};for(var xW in xQ){var xX='initial'+xW['charAt'](0x0)['toUpperCase']()+xW['slice'](0x1);xU[xX]=xT['get'](xX);xQ[xX]=xQ[xW];xT['set'](xX,xQ[xX]);delete xQ[xW];}if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var xY=xR['get']('id');window['currentPanoramasWithCameraChanged'][xY]=[xP];var xZ=function(){if(xY in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][xY];}xP['unbind']('begin',xZ,this);for(var y7 in xU){xT['set'](y7,xU[y7]);}};xP['bind']('begin',xZ,this);}else{for(var xW in xQ){xT['set'](xW,xQ[xW]);}xT['setStoredPosition'](xQ);}var y0=xP['get']('player');var y1=y0['get']('viewerArea');var y2=this['getActivePlayersWithViewer'](y1);var y3=y2['find'](function(y8){return this['getMediaFromPlayer'](y8)['get']('class')['indexOf']('Panorama')!=-0x1;}['bind'](this));var y4=xR['get']('data');if(y3&&y4['panoramaLocations']){var y5=this['getMediaFromPlayer'](y3);var y6=_getObject(this,y4['panoramaLocations']['find'](y9=>y5==_getObject(this,_getObject(this,y9)['get']('data')['panorama'])));if(y6&&!y6['get']('forceModelLoading')){y6['set']('forceModelLoading',!![]);xP['bind']('begin',function ya(){xP['unbind']('begin',ya,this);y6['set']('forceModelLoading',![]);},this);}}};TDV['Tour']['Script']['startPanoramaWithCamera']=function(yb,yc){var yd=this['getByClassName']('PlayList');if(yd['length']==0x0)return;var ye=window['currentPanoramasWithCameraChanged']==undefined||!(yb['get']('id')in window['currentPanoramasWithCameraChanged']);var yf=[];for(var yh=0x0,yi=yd['length'];yh0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var yp=yb['get']('id');window['currentPanoramasWithCameraChanged'][yp]=yf;var yq=function(){if(yp in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][yp];}for(var ys=0x0;ys=0x0?this['mainPlayList']['get']('items')[z1]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(z3!=undefined){var z5=z3['get']('data');if(z5&&z5['label']){if(z1>=0x0){var z7=this['mainPlayList']['get']('items')['reduce'](function(zs,zt){var zu=zt['get']('media')['get']('data');return zu&&z5['label']==zu['label']?zs+0x1:zs;},0x0);if(z7!=0x1)z2='#media='+(z1+0x1);}if(!z2)z2='#media-name='+encodeURIComponent(z5['label']);}else if(z1>=0x0){z2='#media='+(z1+0x1);}}if(z3){if(z0['includeCurrentView']===!![]){var z8=this['getActivePlayerWithViewer'](this['getMainViewer']());if(z8){switch(z8['get']('class')){case'PanoramaPlayer':var z9=z8['get']('yaw');var za=z8['get']('pitch');var zb=z8['get']('hfov');if(!isNaN(z9)&&!isNaN(za))z2+='&yaw='+z9['toFixed'](0x2)+'&pitch='+za['toFixed'](0x2);if(!isNaN(zb))z2+='&fov='+zb['toFixed'](0x2);break;case'Model3DPlayer':var zc=z8['get']('model');var zd=zc['get']('camera');var ze=[];ze['push']('yaw='+zd['get']('yaw')['toFixed'](0x2));ze['push']('pitch='+zd['get']('pitch')['toFixed'](0x2));ze['push']('x='+zd['get']('x')['toFixed'](0x5));ze['push']('y='+zd['get']('y')['toFixed'](0x5));ze['push']('z='+zd['get']('z')['toFixed'](0x5));if(zd['get']('class')=='OrbitModel3DCamera')ze['push']('distance='+zd['get']('distance')['toFixed'](0x5));z2+='&'+ze['join']('&');break;}}}if(z0['includeCurrentVisibleHotspots']===!![]){var zf=this['getOverlays'](z3);var zg=[];var zh=[];for(var zi=0x0,z7=zf['length'];zi0x0)z2+='&son='+zg['join'](',');if(zh['length']>0x0)z2+='&hon='+zh['join'](',');if(z3['get']('class')=='Model3D'){var zn=z3['get']('variant');if(zn)z2+='&variant='+zn;var zo=z3['get']('objects');var zp=[];var zq=[];zo['forEach'](function(zv){if(zv['get']('class')=='InnerModel3DObject')(zv['get']('enabled')?zp:zq)['push'](zv['get']('objectId'));});if(zp['length']>0x0)z2+='&sobjids='+zp['join'](',');if(zq['length']>0x0)z2+='&hobjids='+zq['join'](',');}}if(z0['includeCurrentMeasureModel3DObjects']===!![]&&z3['get']('class')=='Model3D'){var zr=[];z3['get']('objects')['forEach'](function(zw){if(zw['get']('class')=='MeasureModel3DObject'&&zw['get']('mode')!='create'){var zx=[zw['get']('data')['id'],zw['get']('x'),zw['get']('y'),zw['get']('z')];zw['get']('points')['forEach'](function(zy){zx['push'](zy['get']('x'),zy['get']('y'),zy['get']('z'));});if(zx['length']>0x4){zr['push'](zx['join'](','));}}});if(zr['length']>0x0)z2+='&measures='+zr['join']('+');}}if(z2&&z0['setHash']===!![]){location['hash']=z2;}return z2;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(zz,zA,zB){var zC=function(){var zE=zz['get']('selectedIndex');if(zE>=0x0){var zF=function(){zI['unbind']('begin',zF);zG(zE);};var zG=function(zJ){var zK=zI['get']('media');var zL=zK['get']('data');var zM=zL!==undefined?zL['description']:undefined;zH(zM);};var zH=function(zN){if(zN!==undefined){zA['set']('html',''+zN+'');}else{zA['set']('html','');}var zO=zA['get']('html');zA['set']('visible',zO!==undefined&&zO);};var zI=zz['get']('items')[zE];if(zA['get']('html')){zH('Loading...');zI['bind']('begin',zF);}else{zG(zE);}}};var zD=function(){zA['set']('html',undefined);zz['unbind']('change',zC,this);zB['unbind']('stop',zD,this);};if(zB){zB['bind']('stop',zD,this);}zz['bind']('change',zC,this);zC();};TDV['Tour']['Script']['updateVideoCues']=function(zP,zQ){var zR=zP['get']('items')[zQ];var zS=zR['get']('media');if(zS['get']('cues')['length']==0x0)return;var zT=zR['get']('player');var zU=[];var zV=function(){if(zP['get']('selectedIndex')!=zQ){zS['unbind']('cueChange',zW,this);zP['unbind']('change',zV,this);}};var zW=function(zX){var zY=zX['data']['activeCues'];for(var zZ=0x0,A0=zU['length'];zZzT['get']('currentTime')||A1['get']('endTime')0x0){Ai=this['mixObject'](Ai||{},{'theme':{'window':{'width':undefined,'left':Aj,'right':Aj}}});}}var Ak=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!Ah['title'];if(Ak)this['textToSpeech'](Ah['title'],Ac);Af=Ae['showQuestion'](Ac,Ai);Af['then'](function(Al){if(Ak)this['stopTextToSpeech']();this['resumePlayers'](Ag,!![]);}['bind'](this));}return Af;};TDV['Tour']['Script']['quizShowScore']=function(Am){var An=this['get']('data');var Ao=An['quiz'];if(Ao){if(this['get']('isMobile')){Am=Am||{};Am=this['mixObject'](Am,An[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return Ao['showScore'](Am);}};TDV['Tour']['Script']['quizShowTimeout']=function(Ap,Aq){var Ar=this['get']('data');var As=Ar['quiz'];if(As){if(this['get']('isMobile')){Aq=Aq||{};Aq=this['mixObject'](Aq,Ar[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}As['showTimeout'](Ap,Aq);}};TDV['Tour']['Script']['stopTextToSpeech']=function(At){if(window['speechSynthesis']&&(At==undefined||this['t2sLastID']==At)){var Au=window['speechSynthesis'];if(Au['speaking']){Au['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['getStateTextToSpeech']=function(Av){return this['t2sLastID']==Av?'playing':'stopped';};TDV['Tour']['Script']['textToSpeech']=function(Aw,Ax,Ay){if(this['get']('mute')){return;}var Az=this['get']('data');var AA=Az['disableTTS']||![];if(AA)return;if(Ax!=undefined&&this['t2sLastID']!=Ax||Ax==undefined){Ay=Ay||0x0;if(this['t2sLastID']&&Ay>this['t2sLastPriority']){return;}var AB=Az['tour'];var AC=Az['textToSpeechConfig'];var AD=Az['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var AE=window['speechSynthesis'];if(AE['speaking']){AE['cancel']();}var AF=new SpeechSynthesisUtterance(Aw);if(AD)AF['lang']=AD;var AG;if(AC){AF['volume']=AC['volume'];AF['pitch']=AC['pitch'];AF['rate']=AC['rate'];if(AC['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}AF['onend']=function(){this['t2sLastID']=null;if(AG)clearInterval(AG);if(AC['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){AG=setInterval(function(){AE['pause']();AE['resume']();},0xbb8);}AE['speak'](AF);this['t2sLastPriority']=Ay;this['t2sLastID']=Ax;}else if(AB['isMobileApp']()){if(!AB['isIOS']()){var AH=function(AI,AJ){var AK={'command':'tts','type':AI};if(AJ)AK=this['mixObject'](AK,AJ);android['sendJSON'](JSON['stringify'](AK));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(AC['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);AH('stop');if(AC){AH('init',{'volume':AC['volume'],'pitch':AC['pitch'],'rate':AC['rate'],'language':AD});if(AC['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}AH('play',{'text':Aw,'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(AL){var AM=AL['get']('class');var AN;if(AM=='HTMLText'){var AO=AL['get']('html');if(AO){AN=this['htmlToPlainText'](AO,{'linkProcess':function(AP,AQ){return AQ;}});}}else if(AM=='BaseButton'){AN=AL['get']('label');}else if(AM=='Label'){AN=AL['get']('text');}if(AN){this['textToSpeech'](AN,AL['get']('id'));}};TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(AR){var AS=AR['get']('id');if(this['getStateTextToSpeech'](AS)!='playing')this['textToSpeechComponent'](AR);else this['stopTextToSpeech'](AS);};TDV['Tour']['Script']['_initTTSTooltips']=function(){function AT(AV){var AW=AV['source'];this['textToSpeech'](AW['get']('toolTip'),AW['get']('id'),0x1);}function AU(AX){var AY=AX['source'];this['stopTextToSpeech'](AY['get']('id'));}setTimeout(function(){var AZ=this['getByClassName']('UIComponent');for(var B0=0x0,B1=AZ['length'];B0/i);if(Bj){Bi=Bi['substring'](0x0,Bj['index']);}const Bk=Bi['match'](/]*>/i);if(Bk){Bi=Bi['substring'](Bk['index']+Bk[0x0]['length'],Bi['length']);}Bi=Bi['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');Bi=Bi['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');Bi=Bi['replace'](/]*)>/gi,function(Bq,Br){var Bs='';var Bt='';var Bu=/src="([^"]*)"/i['exec'](Br);var Bv=/alt="([^"]*)"/i['exec'](Br);if(Bu!==null){Bs=Bu[0x1];}if(Bv!==null){Bt=Bv[0x1];}if(typeof Ba==='function'){return Ba(Bs,Bt);}if(Bt===''){return'![image]\x20('+Bs+')';}return'!['+Bt+']\x20('+Bs+')';});function Bl(){return function(Bw,Bx,By,Bz){var BA=0x0;if(By&&/start="([0-9]+)"/i['test'](By)){BA=/start="([0-9]+)"/i['exec'](By)[0x1]-0x1;}var BB='

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

)/gi,function(){if(Bx==='o'&&BE===0x0){BA+=0x1;BE+=0x1;return''+BA+B8(Bf,Be-String(BA)['length']);}return''+Bh;});return BF;})+'

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

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

'+'';var C1=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']);var C2=''+''+'!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'+BU+'\x22,\x20\x22#content\x22,\x20{'+(BZ?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+C0+'\x22,'+'\x22forcePDFJS\x22:\x20'+C1+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+BZ+'){'+'\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(BW=='WebFrame'){BT['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent(''+''+''+''+C2+''+''));}else if(BW=='HTML'){BT['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(C2));}}};TDV['Tour']['Script']['getKey']=function(C3){return window[C3];};TDV['Tour']['Script']['registerKey']=function(C4,C5){window[C4]=C5;};TDV['Tour']['Script']['unregisterKey']=function(C6){delete window[C6];};TDV['Tour']['Script']['existsKey']=function(C7){return C7 in window;};function _getCurrentActiveModels(){var C8=this['getByClassName']('Model3DPlayer');var C9=[];for(var Ca of C8){var Cb=Ca['get']('model');var Cc=Ca['get']('viewerArea');if(Cb&&Cb['get']('isLoaded')&&Cc&&Cc['get']('visible'))C9['push'](Cb);}return C9;}function _onMeasureClick(Cd){var Ce=Cd['source'];var Cf=Ce['get']('mode');if(Cf!='create'){Ce['set']('mode',Cf=='view'?'edit':'view');console['log'](Ce['get']('mode'));}}function _forEachMeasureModel3DObject(Cg,Ch){if(!Cg)Cg=_getCurrentActiveModels['call'](this);Cg['forEach'](function(Ci){Ci['get']('objects')['forEach'](function(Cj){if(Cj['get']('class')=='MeasureModel3DObject')Ch(Ci,Cj);}['bind'](this));}['bind'](this));}function _deleteModel3DObjects(Ck,Cl){if(!Ck)Ck=_getCurrentActiveModels['call'](this);Ck['forEach'](function(Cm){var Cn=Cm['get']('objects');var Co=Cn['filter'](function(Cp){return!Cl['call'](this,Cp);});if(Co['length']!=Cn['length']){Cm['set']('objects',Co);Cn['forEach'](function(Cq){if(Cl['call'](this,Cq))this['disposeInstance'](Cq);}['bind'](this));}}['bind'](this));}function _cloneMeasureModel3DObject(Cr){var Cs=this['clone'](Cr,Cr['getAttributeNames']()['filter'](function(Ct){return Ct!='id';}));Cs['set']('data',{'id':Cr['get']('id')});return Cs;}TDV['Tour']['Script']['startMeasurement']=function(Cu,Cv){if(!Cu)Cu=_getCurrentActiveModels['call'](this);var Cw={},Cx={},Cy={};Cu['forEach'](function(CA){var CB=CA['get']('objects');var CC=CB['findIndex'](function(CH){return CH['get']('class')=='MeasureModel3DObject'&&CH['get']('mode')=='create';});var CD=CC!=-0x1;if(CD){var CE=CB[CC];if(CE['get']('points')['length']==0x0){CB['splice'](CC,0x1);this['disposeInstance'](CE);}else CE['set']('mode','view');}CB['forEach'](function(CI){if(CI['get']('class')=='MeasureModel3DObject'&&CI['get']('mode')=='edit')CI['set']('mode','view');}['bind'](this));var CF=_cloneMeasureModel3DObject['call'](this,Cv);this['cloneBindings'](Cv,CF,'modeChange');CF['set']('mode','create');CF['bind']('click',_onMeasureClick,this);var CG=CA['get']('camera');CF['bind']('modeChange',function CJ(){if(CF['get']('mode')=='create'){Cw[CA['get']('id')]=CA['get']('surfaceSelectionEnabled');CA['set']('surfaceSelectionEnabled',!![]);if(CG['get']('class')=='FlyOverModel3DCamera'){Cx[CA['get']('id')]=CG['get']('doubleClickAction');CG['set']('doubleClickAction','none');}}else{CF['unbind']('modeChange',CJ,this);CA['set']('surfaceSelectionEnabled',Cw[CA['get']('id')]);if(CG['get']('class')=='FlyOverModel3DCamera'){CG['set']('doubleClickAction',Cx[CA['get']('id')]);}CB['forEach'](function(CK){var CL=Cy[CK['get']('id')];if(CL){CK['set']('rollOverEnabled',CL['rollOverEnabled']);}});}},this);if(Cu['length']>0x0){CF['bind']('distanceChange',function CM(){CF['unbind']('distanceChange',CM,this);Cz['call'](this,Cu['filter'](CN=>CN!=CA));},this);}CB['forEach'](function(CO){var CP=CO['get']('id');if(CP){Cy[CP]={'rollOverEnabled':CO['get']('rollOverEnabled')};CO['set']('rollOverEnabled',!![]);}});CB=CB['concat']();CB['push'](CF);CA['set']('objects',CB);}['bind'](this));function Cz(CQ){this['stopMeasurement'](CQ);for(var CR of CQ){var CS=CR['get']('id');CR['set']('surfaceSelectionEnabled',Cw[CS]);if(CS in Cx)CR['get']('camera')['set']('doubleClickAction',Cx[CS]);}}};TDV['Tour']['Script']['stopMeasurement']=function(CT){_deleteModel3DObjects['call'](this,CT,function(CU){return CU['get']('class')=='MeasureModel3DObject'&&CU['get']('mode')=='create'&&CU['get']('points')['length']==0x0;});_forEachMeasureModel3DObject['call'](this,CT,function(CV,CW){if(CW['get']('mode')=='create'){CW['set']('mode','edit');}});};TDV['Tour']['Script']['toggleMeasurement']=function(CX,CY){if(!CX)CX=_getCurrentActiveModels['call'](this);var CZ=CX['some'](function(D0){var D1=D0['get']('objects');var D2=D1['find'](function(D3){return D3['get']('class')=='MeasureModel3DObject'&&D3['get']('mode')=='create';});return D2!=null;});if(!CZ)this['startMeasurement'](CX,CY);else this['stopMeasurement'](CX);};TDV['Tour']['Script']['cleanAllMeasurements']=function(D4){_deleteModel3DObjects['call'](this,D4,function(D5){return D5['get']('class')=='MeasureModel3DObject';});};TDV['Tour']['Script']['cleanSelectedMeasurements']=function(D6){_deleteModel3DObjects['call'](this,D6,function(D7){return D7['get']('class')=='MeasureModel3DObject'&&D7['get']('mode')=='edit';});};TDV['Tour']['Script']['setMeasurementsVisibility']=function(D8,D9){_forEachMeasureModel3DObject['call'](this,D8,function(Da,Db){Db['set']('enabled',D9);});};TDV['Tour']['Script']['toggleMeasurementsVisibility']=function(Dc){_forEachMeasureModel3DObject['call'](this,Dc,function(Dd,De){De['set']('enabled',!De['get']('enabled'));});};TDV['Tour']['Script']['setMeasurementUnits']=function(Df){_forEachMeasureModel3DObject['call'](this,null,function(Dg,Dh){Dh['set']('units',Df);});}; //# sourceMappingURL=script_v2023.2.4.js.map //Generated with v2023.2.4, Fri Dec 22 2023 var tour; var devicesUrl = {"mobile":"script_mobile.js?v=1703228441659","general":"script_general.js?v=1703228441659"}; (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);