(function() { var requirejs,require,define; (function(){function J(d){return ia.call(d)==="[object Function]"}function X(d){return ia.call(d)==="[object Array]"}function Y(d,f,l){for(var j in f)if(!(j in F)&&(!(j in d)||l))d[j]=f[j];return h}function K(d,f,l){d=new Error(f+"\nhttp://requirejs.org/docs/errors.html#"+d);if(l)d.originalError=l;return d}function ja(d,f,l){var j,q,o;for(j=0;o=f[j];j++){o=typeof o==="string"?{name:o}:o;q=o.location;if(l&&(!q||q.indexOf("/")!==0&&q.indexOf(":")===-1))q=l+"/"+(q||o.name);d[o.name]={name:o.name,location:q|| o.name,main:(o.main||"main").replace(ua,"").replace(ka,"")}}}function Z(d,f){if(d.holdReady)d.holdReady(f);else if(f)d.readyWait+=1;else d.ready(true)}function va(d){function f(a){var b,c;for(b=0;c=a[b];b++)if(c==="."){a.splice(b,1);b-=1}else if(c==="..")if(b===1&&(a[2]===".."||a[0]===".."))break;else if(b>0){a.splice(b-1,2);b-=2}}function l(a,b){var c;if(a.charAt(0)===".")if(b){if(r.pkgs[b])b=[b];else{b=b.split("/");b=b.slice(0,b.length-1)}a=b.concat(a.split("/"));f(a);c=r.pkgs[b=a[0]];a=a.join("/"); if(c&&a===b+"/"+c.main)a=b}return a}function j(a,b){var c=a?a.indexOf("!"):-1,e=null,g=b?b.name:null,k=a,n,m;if(c!==-1){e=a.substring(0,c);a=a.substring(c+1,a.length)}if(e)e=l(e,g);if(a){if(e)n=(c=p[e])?c.normalize?c.normalize(a,function(u){return l(u,g)}):l(a,g):"__$p"+g+"@"+a;else n=l(a,g);m=$[n];if(!m){m=h.toModuleUrl?h.toModuleUrl(i,n,b):i.nameToUrl(n,null,b);$[n]=m}}return{prefix:e,name:n,parentMap:b,url:m,originalName:k,fullName:e?e+"!"+n:n}}function q(){var a=true,b=r.priorityWait,c,e;if(b){for(e= 0;c=b[e];e++)if(!v[c]){a=false;break}a&&delete r.priorityWait}return a}function o(a){return function(b){a.exports=b}}function L(a,b,c){return function(){var e=[].concat(wa.call(arguments,0)),g;if(c&&J(g=e[e.length-1]))g.__requireJsBuild=true;e.push(b);return a.apply(null,e)}}function la(a,b){b=L(i.require,a,b);Y(b,{nameToUrl:L(i.nameToUrl,a),toUrl:L(i.toUrl,a),defined:L(i.requireDefined,a),specified:L(i.requireSpecified,a),ready:h.ready,isBrowser:h.isBrowser});if(h.paths)b.paths=h.paths;return b} function xa(a){var b,c,e,g,k,n,m,u=T[a];if(u)for(g=0;c=u[g];g++){b=c.fullName;c=j(c.originalName,c.parentMap);c=c.fullName;e=w[b]||[];k=w[c];if(c!==b){if(b in y){delete y[b];y[c]=true}w[c]=k?k.concat(e):e;delete w[b];for(k=0;k0)){if(r.priorityWait)if(q())C();else return;for(g in v)if(!(g in F)){c=true; if(!v[g])if(b)a+=g+" ";else{e=true;break}}if(c||i.waitCount){if(b&&a){g=K("timeout","Load timeout for modules: "+a);g.requireType="timeout";g.requireModules=a;return h.onError(g)}if(e||i.scriptCount){if((A||qa)&&!da)da=setTimeout(function(){da=0;ca()},50)}else{if(i.waitCount){for(D=0;a=ba[D];D++)pa(a,{});if(ea<5){ea+=1;ca()}}ea=0;h.checkReadyState()}}}}function ra(a,b){var c=b.name,e=b.fullName,g;if(!(e in p||e in v)){G[a]||(G[a]=p[a]);v[e]||(v[e]=false);g=function(k){h.onPluginLoad&&h.onPluginLoad(i, a,c,k);aa({prefix:b.prefix,name:b.name,fullName:b.fullName,callback:function(){return k}});v[e]=true};g.fromText=function(k,n){var m=N;i.loaded[k]=false;i.scriptCount+=1;if(m)N=false;h.exec(n);if(m)N=true;i.completeLoad(k)};G[a].load(c,la(b.parentMap,true),g,r)}}function Ba(a){if(a.prefix&&a.name.indexOf("__$p")===0&&p[a.prefix])a=j(a.originalName,a.parentMap);var b=a.prefix,c=a.fullName,e=i.urlFetched;if(!(y[c]||v[c])){y[c]=true;if(b)if(p[b])ra(b,a);else{if(!O[b]){O[b]=[];(w[b]||(w[b]=[])).push({onDep:function(g){if(g=== b){var k,n=O[b];for(g=0;g0;n--){k=c.slice(0,n).join("/");if(e[k]){c.splice(0,n,e[k]);break}else if(k=g[k]){a=a===k.name?k.location+"/"+k.main:k.location; c.splice(0,n,a);break}}b=c.join("/")+(b||".js");b=(b.charAt(0)==="/"||b.match(/^\w+:/)?"":m.baseUrl)+b}return m.urlArgs?b+((b.indexOf("?")===-1?"?":"&")+m.urlArgs):b}};i.jQueryCheck=U;i.resume=C;return i}function Da(){var d,f,l;if(Q&&Q.readyState==="interactive")return Q;d=document.getElementsByTagName("script");for(f=d.length-1;f>-1&&(l=d[f]);f--)if(l.readyState==="interactive")return Q=l;return null}var Ea=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,Fa=/require\(["']([^'"\s]+)["']\)/g,ua=/^\.\//,ka=/\.js$/, ia=Object.prototype.toString,x=Array.prototype,wa=x.slice,Ca=x.splice,A=!!(typeof window!=="undefined"&&navigator&&document),qa=!A&&typeof importScripts!=="undefined",Ga=A&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,sa=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",ya="_r@@",F={},H={},V=[],Q=null,Ha=false,ea=0,N=false,h;x={};var ga,s,I,W,z,R,S,D,ha,ta,E,U,da;if(typeof define==="undefined"){if(typeof requirejs!=="undefined")if(J(requirejs))return;else{x= requirejs;requirejs=undefined}if(typeof require!=="undefined"&&!J(require)){x=require;require=undefined}h=requirejs=function(d,f,l){var j="_",q;if(!X(d)&&typeof d!=="string"){q=d;if(X(f)){d=f;f=l}else d=[]}if(q&&q.context)j=q.context;l=H[j]||(H[j]=va(j));q&&l.configure(q);return l.require(d,f)};if(typeof require==="undefined")require=h;h.toUrl=function(d){return H._.toUrl(d)};h.version="0.25.0";h.isArray=X;h.isFunction=J;h.mixin=Y;h.jsExtRegExp=/^\/|:|\?|\.js$/;s=h.s={contexts:H,skipAsync:{},isPageLoaded:!A, readyCalls:[]};if(h.isAsync=h.isBrowser=A){I=s.head=document.getElementsByTagName("head")[0];if(W=document.getElementsByTagName("base")[0])I=s.head=W.parentNode}h.onError=function(d){throw d;};h.load=function(d,f,l){var j=d.loaded;Ha=false;j[f]||(j[f]=false);d.scriptCount+=1;h.attach(l,d,f);if(d.jQuery&&!d.jQueryIncremented){Z(d.jQuery,true);d.jQueryIncremented=true}};define=h.def=function(d,f,l){var j;if(typeof d!=="string"){l=f;f=d;d=null}if(!h.isArray(f)){l=f;f=[]}if(!d&&!f.length&&h.isFunction(l))if(l.length){l.toString().replace(Ea, "").replace(Fa,function(q,o){f.push(o)});f=(l.length===1?["require"]:["require","exports","module"]).concat(f)}if(N){j=ga||Da();if(!j)return h.onError(K("interactive","No matching script interactive for "+l));d||(d=j.getAttribute("data-requiremodule"));j=H[j.getAttribute("data-requirecontext")]}(j?j.defQueue:V).push([d,f,l])};define.amd={multiversion:true,plugins:true,jQuery:true};h.exec=function(d){return eval(d)};h.execCb=function(d,f,l,j){return f.apply(j,l)};h.onScriptLoad=function(d){var f=d.currentTarget|| d.srcElement,l;if(d.type==="load"||Ga.test(f.readyState)){Q=null;d=f.getAttribute("data-requirecontext");l=f.getAttribute("data-requiremodule");H[d].completeLoad(l);f.detachEvent&&!sa?f.detachEvent("onreadystatechange",h.onScriptLoad):f.removeEventListener("load",h.onScriptLoad,false)}};h.attach=function(d,f,l,j,q){var o;if(A){j=j||h.onScriptLoad;o=f&&f.config&&f.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");o.type=q||"text/javascript"; o.charset="utf-8";o.async=!s.skipAsync[d];f&&o.setAttribute("data-requirecontext",f.contextName);o.setAttribute("data-requiremodule",l);if(o.attachEvent&&!sa){N=true;o.attachEvent("onreadystatechange",j)}else o.addEventListener("load",j,false);o.src=d;ga=o;W?I.insertBefore(o,W):I.appendChild(o);ga=null;return o}else if(qa){j=f.loaded;j[l]=false;importScripts(d);f.completeLoad(l)}return null};if(A){z=document.getElementsByTagName("script");for(D=z.length-1;D>-1&&(R=z[D]);D--){if(!I)I=R.parentNode; if(S=R.getAttribute("data-main")){if(!x.baseUrl){z=S.split("/");R=z.pop();z=z.length?z.join("/")+"/":"./";x.baseUrl=z;S=R.replace(ka,"")}x.deps=x.deps?x.deps.concat(S):[S];break}}}s.baseUrl=x.baseUrl;h.pageLoaded=function(){if(!s.isPageLoaded){s.isPageLoaded=true;ha&&clearInterval(ha);if(ta)document.readyState="complete";h.callReady()}};h.checkReadyState=function(){var d=s.contexts,f;for(f in d)if(!(f in F))if(d[f].waitCount)return;s.isDone=true;h.callReady()};h.callReady=function(){var d=s.readyCalls, f,l,j;if(s.isPageLoaded&&s.isDone){if(d.length){s.readyCalls=[];for(f=0;l=d[f];f++)l()}d=s.contexts;for(j in d)if(!(j in F)){f=d[j];if(f.jQueryIncremented){Z(f.jQuery,false);f.jQueryIncremented=false}}}};h.ready=function(d){s.isPageLoaded&&s.isDone?d():s.readyCalls.push(d);return h};if(A){if(document.addEventListener){document.addEventListener("DOMContentLoaded",h.pageLoaded,false);window.addEventListener("load",h.pageLoaded,false);if(!document.readyState){ta=true;document.readyState="loading"}}else if(window.attachEvent){window.attachEvent("onload", h.pageLoaded);if(self===self.top)ha=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");h.pageLoaded()}}catch(d){}},30)}document.readyState==="complete"&&h.pageLoaded()}h(x);if(h.isAsync&&typeof setTimeout!=="undefined"){E=s.contexts[x.context||"_"];E.requireWait=true;setTimeout(function(){E.requireWait=false;E.takeGlobalQueue();E.jQueryCheck();E.scriptCount||E.resume();h.checkReadyState()},0)}}})();!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"== typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e, t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+ M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>> 10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\x00"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length, r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1])if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else{if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n, e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r= [];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e? 1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o, le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&& (n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName), d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID= function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1=== n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length|| v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\u000c"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML=""; var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector|| a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1}, j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e, t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling", first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&& (t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n, r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&& 3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn, D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i; ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"], tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t, "handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&& (Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0=== i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i= N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t, e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&& (f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect(); else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent; return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"}, function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}), S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function(e,n){S.fn[n]=function(e,t){return 0=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(t),i=n>0?0:u-1;i>=0&&u>i;i+=n)if(r(t[i],i,t))return i;return-1}}function r(n,t,r){return function(e,u,i){var o=0,a= O(e);if("number"==typeof i)n>0?o=i>=0?i:Math.max(i+a,o):a=i>=0?Math.min(i+1,a):i+a+1;else if(r&&i&&a)return i=r(e,u),e[i]===u?i:-1;if(u!==u)return i=t(l.call(e,o,a),m.isNaN),i>=0?i+o:-1;for(i=n>0?o:a-1;i>=0&&a>i;i+=n)if(e[i]===u)return i;return-1}}function e(n,t){var r=I.length,e=n.constructor,u=m.isFunction(e)&&e.prototype||a,i="constructor";for(m.has(n,i)&&!m.contains(t,i)&&t.push(i);r--;)i=I[r],i in n&&n[i]!==u[i]&&!m.contains(t,i)&&t.push(i)}var u=this,i=u._,o=Array.prototype,a=Object.prototype, c=Function.prototype,f=o.push,l=o.slice,s=a.toString,p=a.hasOwnProperty,h=Array.isArray,v=Object.keys,g=c.bind,y=Object.create,d=function(){},m=function(n){return n instanceof m?n:this instanceof m?void(this._wrapped=n):new m(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=m),exports._=m):u._=m,m.VERSION="1.8.3";var b=function(n,t,r){if(t===void 0)return n;switch(null==r?3:r){case 1:return function(r){return n.call(t,r)};case 2:return function(r, e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,i){return n.call(t,r,e,u,i)}}return function(){return n.apply(t,arguments)}},x=function(n,t,r){return null==n?m.identity:m.isFunction(n)?b(n,t,r):m.isObject(n)?m.matcher(n):m.property(n)};m.iteratee=function(n,t){return x(n,t,1/0)};var _=function(n,t){return function(r){var e=arguments.length;if(2>e||null==r)return r;for(var u=1;e>u;u++)for(var i=arguments[u],o=n(i),a=o.length,c=0;a>c;c++){var f= o[c];t&&r[f]!==void 0||(r[f]=i[f])}return r}},j=function(n){if(!m.isObject(n))return{};if(y)return y(n);d.prototype=n;var t=new d;return d.prototype=null,t},w=function(n){return function(t){return null==t?void 0:t[n]}},A=Math.pow(2,53)-1,O=w("length"),k=function(n){var t=O(n);return"number"==typeof t&&t>=0&&A>=t};m.each=m.forEach=function(n,t,r){t=b(t,r);var e,u;if(k(n))for(e=0,u=n.length;u>e;e++)t(n[e],e,n);else{var i=m.keys(n);for(e=0,u=i.length;u>e;e++)t(n[i[e]],i[e],n)}return n},m.map=m.collect= function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=Array(u),o=0;u>o;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},m.reduce=m.foldl=m.inject=n(1),m.reduceRight=m.foldr=n(-1),m.find=m.detect=function(n,t,r){var e;return e=k(n)?m.findIndex(n,t,r):m.findKey(n,t,r),e!==void 0&&e!==-1?n[e]:void 0},m.filter=m.select=function(n,t,r){var e=[];return t=x(t,r),m.each(n,function(n,r,u){t(n,r,u)&&e.push(n)}),e},m.reject=function(n,t,r){return m.filter(n,m.negate(x(t)),r)},m.every=m.all=function(n, t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},m.some=m.any=function(n,t,r){t=x(t,r);for(var e=!k(n)&&m.keys(n),u=(e||n).length,i=0;u>i;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},m.contains=m.includes=m.include=function(n,t,r,e){return k(n)||(n=m.values(n)),("number"!=typeof r||e)&&(r=0),m.indexOf(n,t,r)>=0},m.invoke=function(n,t){var r=l.call(arguments,2),e=m.isFunction(t);return m.map(n,function(n){var u=e?t:n[t]; return null==u?u:u.apply(n,r)})},m.pluck=function(n,t){return m.map(n,m.property(t))},m.where=function(n,t){return m.filter(n,m.matcher(t))},m.findWhere=function(n,t){return m.find(n,m.matcher(t))},m.max=function(n,t,r){var e,u,i=-1/0,o=-1/0;if(null==t&&null!=n){n=k(n)?n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],e>i&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(u>o||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},m.min=function(n,t,r){var e,u,i=1/0,o=1/0;if(null==t&&null!=n){n=k(n)? n:m.values(n);for(var a=0,c=n.length;c>a;a++)e=n[a],i>e&&(i=e)}else t=x(t,r),m.each(n,function(n,r,e){u=t(n,r,e),(o>u||1/0===u&&1/0===i)&&(i=n,o=u)});return i},m.shuffle=function(n){for(var t,r=k(n)?n:m.values(n),e=r.length,u=Array(e),i=0;e>i;i++)t=m.random(0,i),t!==i&&(u[i]=u[t]),u[t]=r[i];return u},m.sample=function(n,t,r){return null==t||r?(k(n)||(n=m.values(n)),n[m.random(n.length-1)]):m.shuffle(n).slice(0,Math.max(0,t))},m.sortBy=function(n,t,r){return t=x(t,r),m.pluck(m.map(n,function(n,r,e){return{value:n, index:r,criteria:t(n,r,e)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||r===void 0)return 1;if(e>r||e===void 0)return-1}return n.index-t.index}),"value")};var F=function(n){return function(t,r,e){var u={};return r=x(r,e),m.each(t,function(e,i){var o=r(e,i,t);n(u,e,o)}),u}};m.groupBy=F(function(n,t,r){m.has(n,r)?n[r].push(t):n[r]=[t]}),m.indexBy=F(function(n,t,r){n[r]=t}),m.countBy=F(function(n,t,r){m.has(n,r)?n[r]++:n[r]=1}),m.toArray=function(n){return n?m.isArray(n)?l.call(n): k(n)?m.map(n,m.identity):m.values(n):[]},m.size=function(n){return null==n?0:k(n)?n.length:m.keys(n).length},m.partition=function(n,t,r){t=x(t,r);var e=[],u=[];return m.each(n,function(n,r,i){(t(n,r,i)?e:u).push(n)}),[e,u]},m.first=m.head=m.take=function(n,t,r){return null==n?void 0:null==t||r?n[0]:m.initial(n,n.length-t)},m.initial=function(n,t,r){return l.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},m.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:m.rest(n,Math.max(0,n.length- t))},m.rest=m.tail=m.drop=function(n,t,r){return l.call(n,null==t||r?1:t)},m.compact=function(n){return m.filter(n,m.identity)};var S=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=O(n);a>o;o++){var c=n[o];if(k(c)&&(m.isArray(c)||m.isArguments(c))){t||(c=S(c,t,r));var f=0,l=c.length;for(u.length+=l;l>f;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};m.flatten=function(n,t){return S(n,t,!1)},m.without=function(n){return m.difference(n,l.call(arguments,1))},m.uniq=m.unique=function(n,t,r,e){m.isBoolean(t)|| (e=r,r=t,t=!1),null!=r&&(r=x(r,e));for(var u=[],i=[],o=0,a=O(n);a>o;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?m.contains(i,f)||(i.push(f),u.push(c)):m.contains(u,c)||u.push(c)}return u},m.union=function(){return m.uniq(S(arguments,!0,!0))},m.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=O(n);u>e;e++){var i=n[e];if(!m.contains(t,i)){for(var o=1;r>o&&m.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},m.difference=function(n){var t=S(arguments,!0,!0,1);return m.filter(n, function(n){return!m.contains(t,n)})},m.zip=function(){return m.unzip(arguments)},m.unzip=function(n){for(var t=n&&m.max(n,O).length||0,r=Array(t),e=0;t>e;e++)r[e]=m.pluck(n,e);return r},m.object=function(n,t){for(var r={},e=0,u=O(n);u>e;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},m.findIndex=t(1),m.findLastIndex=t(-1),m.sortedIndex=function(n,t,r,e){r=x(r,e,1);for(var u=r(t),i=0,o=O(n);o>i;){var a=Math.floor((i+o)/2);r(n[a])i;i++,n+=r)u[i]=n;return u};var E=function(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=j(n.prototype),o=n.apply(i,u);return m.isObject(o)?o:i};m.bind=function(n,t){if(g&&n.bind===g)return g.apply(n,l.call(arguments,1));if(!m.isFunction(n))throw new TypeError("Bind must be called on a function");var r=l.call(arguments,2),e=function(){return E(n,e,t,this, r.concat(l.call(arguments)))};return e},m.partial=function(n){var t=l.call(arguments,1),r=function(){for(var e=0,u=t.length,i=Array(u),o=0;u>o;o++)i[o]=t[o]===m?arguments[e++]:t[o];for(;e=e)throw new Error("bindAll must be passed function names");for(t=1;e>t;t++)r=arguments[t],n[r]=m.bind(n[r],n);return n},m.memoize=function(n,t){var r=function(e){var u=r.cache,i=""+ (t?t.apply(this,arguments):e);return m.has(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return r.cache={},r},m.delay=function(n,t){var r=l.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},m.defer=m.partial(m.delay,m,1),m.throttle=function(n,t,r){var e,u,i,o=null,a=0;r||(r={});var c=function(){a=r.leading===!1?0:m.now(),o=null,i=n.apply(e,u),o||(e=u=null)};return function(){var f=m.now();a||r.leading!==!1||(a=f);var l=t-(f-a);return e=this,u=arguments,0>=l||l>t?(o&&(clearTimeout(o), o=null),a=f,i=n.apply(e,u),o||(e=u=null)):o||r.trailing===!1||(o=setTimeout(c,l)),i}},m.debounce=function(n,t,r){var e,u,i,o,a,c=function(){var f=m.now()-o;t>f&&f>=0?e=setTimeout(c,t-f):(e=null,r||(a=n.apply(i,u),e||(i=u=null)))};return function(){i=this,u=arguments,o=m.now();var f=r&&!e;return e||(e=setTimeout(c,t)),f&&(a=n.apply(i,u),i=u=null),a}},m.wrap=function(n,t){return m.partial(t,n)},m.negate=function(n){return function(){return!n.apply(this,arguments)}},m.compose=function(){var n=arguments, t=n.length-1;return function(){for(var r=t,e=n[t].apply(this,arguments);r--;)e=n[r].call(this,e);return e}},m.after=function(n,t){return function(){return--n<1?t.apply(this,arguments):void 0}},m.before=function(n,t){var r;return function(){return--n>0&&(r=t.apply(this,arguments)),1>=n&&(t=null),r}},m.once=m.partial(m.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),I=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];m.keys=function(n){if(!m.isObject(n))return[]; if(v)return v(n);var t=[];for(var r in n)m.has(n,r)&&t.push(r);return M&&e(n,t),t},m.allKeys=function(n){if(!m.isObject(n))return[];var t=[];for(var r in n)t.push(r);return M&&e(n,t),t},m.values=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=n[t[u]];return e},m.mapObject=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=u.length,o={},a=0;i>a;a++)e=u[a],o[e]=t(n[e],e,n);return o},m.pairs=function(n){for(var t=m.keys(n),r=t.length,e=Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e}, m.invert=function(n){for(var t={},r=m.keys(n),e=0,u=r.length;u>e;e++)t[n[r[e]]]=r[e];return t},m.functions=m.methods=function(n){var t=[];for(var r in n)m.isFunction(n[r])&&t.push(r);return t.sort()},m.extend=_(m.allKeys),m.extendOwn=m.assign=_(m.keys),m.findKey=function(n,t,r){t=x(t,r);for(var e,u=m.keys(n),i=0,o=u.length;o>i;i++)if(e=u[i],t(n[e],e,n))return e},m.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;m.isFunction(t)?(u=m.allKeys(o),e=b(t,r)):(u=S(arguments,!1,!1,1),e=function(n, t,r){return t in r},o=Object(o));for(var a=0,c=u.length;c>a;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},m.omit=function(n,t,r){if(m.isFunction(t))t=m.negate(t);else{var e=m.map(S(arguments,!1,!1,1),String);t=function(n,t){return!m.contains(e,t)}}return m.pick(n,t,r)},m.defaults=_(m.allKeys,!0),m.create=function(n,t){var r=j(n);return t&&m.extendOwn(r,t),r},m.clone=function(n){return m.isObject(n)?m.isArray(n)?n.slice():m.extend({},n):n},m.tap=function(n,t){return t(n),n},m.isMatch=function(n, t){var r=m.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;e>i;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n===1/t;if(null==n||null==t)return n===t;n instanceof m&&(n=n._wrapped),t instanceof m&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case "[object RegExp]":case "[object String]":return""+n==""+t;case "[object Number]":return+n!==+n?+t!==+t:0===+n?1/+n===1/t:+n===+t;case "[object Date]":case "[object Boolean]":return+n=== +t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(m.isFunction(o)&&o instanceof o&&m.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}r=r||[],e=e||[];for(var c=r.length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if(c=n.length,c!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=m.keys(n);if(c=l.length,m.keys(t).length!==c)return!1;for(;c--;)if(f= l[c],!m.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};m.isEqual=function(n,t){return N(n,t)},m.isEmpty=function(n){return null==n?!0:k(n)&&(m.isArray(n)||m.isString(n)||m.isArguments(n))?0===n.length:0===m.keys(n).length},m.isElement=function(n){return!(!n||1!==n.nodeType)},m.isArray=h||function(n){return"[object Array]"===s.call(n)},m.isObject=function(n){var t=typeof n;return"function"===t||"object"===t&&!!n},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"], function(n){m["is"+n]=function(t){return s.call(t)==="[object "+n+"]"}}),m.isArguments(arguments)||(m.isArguments=function(n){return m.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(m.isFunction=function(n){return"function"==typeof n||!1}),m.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},m.isNaN=function(n){return m.isNumber(n)&&n!==+n},m.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"===s.call(n)},m.isNull=function(n){return null===n},m.isUndefined= function(n){return n===void 0},m.has=function(n,t){return null!=n&&p.call(n,t)},m.noConflict=function(){return u._=i,this},m.identity=function(n){return n},m.constant=function(n){return function(){return n}},m.noop=function(){},m.property=w,m.propertyOf=function(n){return null==n?function(){}:function(t){return n[t]}},m.matcher=m.matches=function(n){return n=m.extendOwn({},n),function(t){return m.isMatch(t,n)}},m.times=function(n,t,r){var e=Array(Math.max(0,n));t=b(t,r,1);for(var u=0;n>u;u++)e[u]= t(u);return e},m.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T=m.invert(B),R=function(n){var t=function(t){return n[t]},r="(?:"+m.keys(n).join("|")+")",e=RegExp(r),u=RegExp(r,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,t):n}};m.escape=R(B),m.unescape=R(T),m.result=function(n,t,r){var e=null==n?void 0: n[t];return e===void 0&&(e=r),m.isFunction(e)?e.call(n):e};var q=0;m.uniqueId=function(n){var t=++q+"";return n?n+t:t},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var K=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},D=/\\|'|\r|\n|\u2028|\u2029/g,L=function(n){return"\\"+z[n]};m.template=function(n,t,r){!t&&r&&(t=r),t=m.defaults({},t,m.templateSettings);var e=RegExp([(t.escape||K).source,(t.interpolate|| K).source,(t.evaluate||K).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,function(t,r,e,o,a){return i+=n.slice(u,a).replace(D,L),u=a+t.length,r?i+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var o=new Function(t.variable||"obj","_",i)}catch(a){throw a.source= i,a;}var c=function(n){return o.call(this,n,m)},f=t.variable||"obj";return c.source="function("+f+"){\n"+i+"}",c},m.chain=function(n){var t=m(n);return t._chain=!0,t};var P=function(n,t){return n._chain?m(t).chain():t};m.mixin=function(n){m.each(m.functions(n),function(t){var r=m[t]=n[t];m.prototype[t]=function(){var n=[this._wrapped];return f.apply(n,arguments),P(this,r.apply(m,n))}})},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=o[n];m.prototype[n]= function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!==n&&"splice"!==n||0!==r.length||delete r[0],P(this,r)}}),m.each(["concat","join","slice"],function(n){var t=o[n];m.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return m})}).call(this)}).call(TDV)})();function h(a){throw a;}var m=void 0,p=!0,r=null,z=!1;function C(){return function(){}}function P(a){return function(b){this[a]=b}}function R(a){return function(){return this[a]}}function S(a){return function(){return a}} (function(){function a(a){this.Hk=a;this.Qo=r;this.Uc={}}function b(){this.Qj={};this.Qj[b.SCRIPT_URL]=[];this.Qj[b.THREE_JS_WEBGL_URL]="lib/ThreeWebGL.js";this.Qj[b.WEBVR_POLYFILL_URL]="lib/WebVRPolyfill.js";this.Qj[b.HLS_URL]="lib/Hls.js";this.Qj[b.CURSORS_DIR_URL]="lib/cursors";this.Qj[b.SERVICE_WORKER_URL]="tdvplayersw.js";this.Qj[b.BACKGROUND_PRELOAD_ENABLED]=m}function c(){this.uC=[];this.fK=[];this.yoa=[];this.dG=r}function e(a){return"[object Array]"==Object.prototype.toString.call(a)}function d(a){return 0<= g.search(a.toLowerCase())}var f=window.TDV=window.TDV||{},g=navigator.userAgent.toLowerCase();c.prototype.getVersion=c.prototype.YL=function(){return{MAJOR:"0",MINOR:"1466"}};c.prototype.h8=function(){if(this.dG)for(;0|=|<=|>=)\s*(\d+)\s*x\s*(\d+)\s*$/)){var a=parseInt(b[2]),f=parseInt(b[3]),d;switch(b[1]){case "<":d=function(a,b){return a":d=function(a,b){return a>b};break;case "=":d=function(a,b){return a==b};break;case "<=":d=function(a,b){return a<=b};break;case ">=":d=function(a,b){return a>=b}}return d(screen.width, a)&&d(screen.height,f)||this.LY&&d(screen.width,f)&&d(screen.height,a)}return z}if(e(a)){for(b=0;bg;g++){var e=a[g];if(k(e)&&(o.isArray(e)||o.isArguments(e))){b||(e=f(e,b,d));var n=0,l=e.length;for(i.length+=l;l>n;)i[c++]=e[n++]}else d||(i[c++]= e)}return i}function g(a){return function(b,f,d){var g={};return f=l(f,d),o.each(b,function(d,i){var c=f(d,i,b);a(g,d,c)}),g}}function k(a){a=D(a);return"number"==typeof a&&0<=a&&O>=a}function i(a){return function(b){return r==b?m:b[a]}}function n(a){if(!o.cz(a))return{};if(N)return N(a);t.prototype=a;a=new t;return t.prototype=r,a}function j(a,b){return function(f){var d=arguments.length;if(2>d||r==f)return f;for(var g=1;d>g;g++)for(var i=arguments[g],c=a(i),j=c.length,k=0;j>k;k++){var e=c[k];b&& f[e]!==m||(f[e]=i[e])}return f}}function l(a,b,f){return r==a?o.identity:o.isFunction(a)?q(a,b,f):o.cz(a)?o.GY(a):o.fda(a)}function q(a,b,f){if(b===m)return a;switch(r==f?3:f){case 1:return function(f){return a.call(b,f)};case 2:return function(f,d){return a.call(b,f,d)};case 3:return function(f,d,g){return a.call(b,f,d,g)};case 4:return function(f,d,g,i){return a.call(b,f,d,g,i)}}return function(){return a.apply(b,arguments)}}function o(a){return a instanceof o?a:this instanceof o?void(this.Wu=a): new o(a)}function t(){}function s(a){return function(b,f,d,g){var f=q(f,g,4),i=!k(b)&&o.keys(b),c=(i||b).length,j=0arguments.length&&(d=b[i?i[j]:j],j+=a);for(var e=f,n=d;0<=j&&c>j;j+=a)var l=i?i[j]:j,n=e(n,b[l],l,b);return n}}function u(a){return function(b,f,d){for(var f=l(f,d),d=D(b),g=0g;g+=a)if(f(b[g],g,b))return g;return-1}}function v(a,b,f){return function(d,g,i){var c=0,j=D(d);if("number"==typeof i)0i;i+=a)if(d[i]===g)return i;return-1}}function w(a,b){var f=L.length,d=a.constructor,d=o.isFunction(d)&&d.prototype||A,i="constructor";for(o.has(a,i)&&!o.contains(b,i)&&b.push(i);f--;)i=L[f],i in a&&a[i]!==d[i]&&!o.contains(b,i)&&b.push(i)}var x=this,y=x.IO,F=Array.prototype,A=Object.prototype,M=F.push,E=F.slice,J=A.toString,B=A.hasOwnProperty,G=Array.isArray,H=Object.keys,I=Function.prototype.bind, N=Object.create;"undefined"!=typeof exports?("undefined"!=typeof module&&module.bua&&(exports=module.bua=o),exports.IO=o):x.IO=o;o.VERSION="1.8.3";o.BAa=function(a,b){return l(a,b,1/0)};var O=Math.pow(2,53)-1,D=i("length");o.each=o.forEach=function(a,b,f){var b=q(b,f),d;if(k(a)){f=0;for(d=a.length;d>f;f++)b(a[f],f,a)}else{var i=o.keys(a),f=0;for(d=i.length;d>f;f++)b(a[i[f]],i[f],a)}return a};o.map=o.fAa=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=Array(d),g=0;d>g;g++){var c= f?f[g]:g;i[g]=b(a[c],c,a)}return i};o.reduce=o.mAa=o.xAa=s(1);o.reduceRight=o.nAa=s(-1);o.find=o.detect=function(a,b,f){var d;return d=k(a)?o.eba(a,b,f):o.hua(a,b,f),d!==m&&-1!==d?a[d]:m};o.filter=o.select=function(a,b,f){var d=[];return b=l(b,f),o.each(a,function(a,f,i){b(a,f,i)&&d.push(a)}),d};o.reject=function(a,b,f){return o.filter(a,o.Tca(l(b)),f)};o.every=o.all=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=0;d>i;i++){var g=f?f[i]:i;if(!b(a[g],g,a))return z}return p}; o.some=o.any=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=0;d>i;i++){var g=f?f[i]:i;if(b(a[g],g,a))return p}return z};o.contains=o.vAa=o.include=function(a,b,f,d){return k(a)||(a=o.values(a)),("number"!=typeof f||d)&&(f=0),0<=o.indexOf(a,b,f)};o.invoke=function(a,b){var f=E.call(arguments,2),d=o.isFunction(b);return o.map(a,function(a){var i=d?b:a[b];return r==i?i:i.apply(a,f)})};o.pluck=function(a,b){return o.map(a,o.fda(b))};o.cBa=function(a,b){return o.filter(a,o.GY(b))}; o.lAa=function(a,b){return o.find(a,o.GY(b))};o.max=function(a,b,f){var d,i=-1/0,g=-1/0;if(r==b&&r!=a)for(var a=k(a)?a:o.values(a),c=0,j=a.length;j>c;c++)f=a[c],f>i&&(i=f);else b=l(b,f),o.each(a,function(a,f,c){d=b(a,f,c);(d>g||d===-1/0&&i===-1/0)&&(i=a,g=d)});return i};o.min=function(a,b,f){var d,i=1/0,g=1/0;if(r==b&&r!=a)for(var a=k(a)?a:o.values(a),c=0,j=a.length;j>c;c++)f=a[c],i>f&&(i=f);else b=l(b,f),o.each(a,function(a,f,c){d=b(a,f,c);(g>d||1/0===d&&1/0===i)&&(i=a,g=d)});return i};o.xya=function(a){for(var b= k(a)?a:o.values(a),f=b.length,d=Array(f),i=0;f>i;i++)a=o.random(0,i),a!==i&&(d[i]=d[a]),d[a]=b[i];return d};o.sample=function(a,b,f){return r==b||f?(k(a)||(a=o.values(a)),a[o.random(a.length-1)]):o.xya(a).slice(0,Math.max(0,b))};o.sortBy=function(a,b,f){return b=l(b,f),o.pluck(o.map(a,function(a,f,d){return{value:a,index:f,Vaa:b(a,f,d)}}).sort(function(a,b){var f=a.Vaa,d=b.Vaa;if(f!==d){if(f>d||f===m)return 1;if(d>f||d===m)return-1}return a.index-b.index}),"value")};o.groupBy=g(function(a,b,f){o.has(a, f)?a[f].push(b):a[f]=[b]});o.wAa=g(function(a,b,f){a[f]=b});o.hAa=g(function(a,b,f){o.has(a,f)?a[f]++:a[f]=1});o.toArray=function(a){return a?o.isArray(a)?E.call(a):k(a)?o.map(a,o.identity):o.values(a):[]};o.size=function(a){return r==a?0:k(a)?a.length:o.keys(a).length};o.MAa=function(a,b,f){var b=l(b,f),d=[],i=[];return o.each(a,function(a,f,g){(b(a,f,g)?d:i).push(a)}),[d,i]};o.first=o.head=o.VAa=function(a,b,f){return r==a?m:r==b||f?a[0]:o.yva(a,a.length-b)};o.yva=function(a,b){return E.call(a, 0,Math.max(0,a.length-(r==b?1:b)))};o.last=function(a,b,f){return r==a?m:r==b||f?a[a.length-1]:o.rest(a,Math.max(0,a.length-b))};o.rest=o.UAa=o.kAa=function(a,b,f){return E.call(a,r==b||f?1:b)};o.compact=function(a){return o.filter(a,o.identity)};o.flatten=function(a,b){return f(a,b,z)};o.without=function(a){return o.difference(a,E.call(arguments,1))};o.uniq=o.unique=function(a,b,f,d){o.isBoolean(b)||(d=f,f=b,b=z);r!=f&&(f=l(f,d));for(var d=[],i=[],g=0,c=D(a);c>g;g++){var j=a[g],e=f?f(j,g,a):j;b? (g&&i===e||d.push(j),i=e):f?o.contains(i,e)||(i.push(e),d.push(j)):o.contains(d,j)||d.push(j)}return d};o.union=function(){return o.uniq(f(arguments,p,p))};o.intersection=function(a){for(var b=[],f=arguments.length,d=0,i=D(a);i>d;d++){var g=a[d];if(!o.contains(b,g)){for(var c=1;f>c&&o.contains(arguments[c],g);c++);c===f&&b.push(g)}}return b};o.difference=function(a){var b=f(arguments,p,p,1);return o.filter(a,function(a){return!o.contains(b,a)})};o.zip=function(){return o.Vya(arguments)};o.Vya=function(a){for(var b= a&&o.max(a,D).length||0,f=Array(b),d=0;b>d;d++)f[d]=o.pluck(a,d);return f};o.object=function(a,b){for(var f={},d=0,i=D(a);i>d;d++)b?f[a[d]]=b[d]:f[a[d][0]]=a[d][1];return f};o.eba=u(1);o.iua=u(-1);o.sortedIndex=function(a,b,f,d){for(var f=l(f,d,1),b=f(b),d=0,i=D(a);i>d;){var g=Math.floor((d+i)/2);f(a[g])i;i++, a+=f)d[i]=a;return d};o.bind=function(a,b){function f(){return d(a,f,b,this,i.concat(E.call(arguments)))}if(I&&a.bind===I)return I.apply(a,E.call(arguments,1));o.isFunction(a)||h(new TypeError("Bind must be called on a function"));var i=E.call(arguments,2);return f};o.PY=function(a){function b(){for(var i=0,g=f.length,c=Array(g),j=0;g>j;j++)c[j]=f[j]===o?arguments[i++]:f[j];for(;i=d&&h(Error("bindAll must be passed function names"));for(b=1;d>b;b++)f=arguments[b],a[f]=o.bind(a[f],a);return a};o.memoize=function(a,b){function f(d){var i=f.qta,g=""+(b?b.apply(this,arguments):d);return o.has(i,g)||(i[g]=a.apply(this,arguments)),i[g]}return f.qta={},f};o.delay=function(a,b){var f=E.call(arguments,2);return setTimeout(function(){return a.apply(r,f)},b)};o.defer=o.PY(o.delay,o,1);o.throttle=function(a,b,f){function d(){e=f.Yva===z?0:o.now();j=r;c=a.apply(i, g);j||(i=g=r)}var i,g,c,j=r,e=0;f||(f={});return function(){var k=o.now();e||f.Yva!==z||(e=k);var n=b-(k-e);return i=this,g=arguments,0>=n||n>b?(j&&(clearTimeout(j),j=r),e=k,c=a.apply(i,g),j||(i=g=r)):j||f.WAa===z||(j=setTimeout(d,n)),c}};o.debounce=function(a,b,f){function d(){var k=o.now()-j;b>k&&0<=k?i=setTimeout(d,b-k):(i=r,f||(e=a.apply(c,g),i||(c=g=r)))}var i,g,c,j,e;return function(){c=this;g=arguments;j=o.now();var k=f&&!i;return i||(i=setTimeout(d,b)),k&&(e=a.apply(c,g),c=g=r),e}};o.wrap= function(a,b){return o.PY(b,a)};o.Tca=function(a){return function(){return!a.apply(this,arguments)}};o.compose=function(){var a=arguments,b=a.length-1;return function(){for(var f=b,d=a[b].apply(this,arguments);f--;)d=a[f].call(this,d);return d}};o.after=function(a,b){return function(){return 1>--a?b.apply(this,arguments):m}};o.before=function(a,b){var f;return function(){return 0<--a&&(f=b.apply(this,arguments)),1>=a&&(b=r),f}};o.once=o.PY(o.before,2);var Q=!{toString:r}.propertyIsEnumerable("toString"), L="valueOf,isPrototypeOf,toString,propertyIsEnumerable,hasOwnProperty,toLocaleString".split(",");o.keys=function(a){if(!o.cz(a))return[];if(H)return H(a);var b=[],f;for(f in a)o.has(a,f)&&b.push(f);return Q&&w(a,b),b};o.oX=function(a){if(!o.cz(a))return[];var b=[],f;for(f in a)b.push(f);return Q&&w(a,b),b};o.values=function(a){for(var b=o.keys(a),f=b.length,d=Array(f),i=0;f>i;i++)d[i]=a[b[i]];return d};o.EAa=function(a,b,f){for(var b=l(b,f),d=o.keys(a),i=d.length,g={},c=0;i>c;c++)f=d[c],g[f]=b(a[f], f,a);return g};o.LAa=function(a){for(var b=o.keys(a),f=b.length,d=Array(f),i=0;f>i;i++)d[i]=[b[i],a[b[i]]];return d};o.rca=function(a){for(var b={},f=o.keys(a),d=0,i=f.length;i>d;d++)b[a[f[d]]]=f[d];return b};o.functions=o.HAa=function(a){var b=[],f;for(f in a)o.isFunction(a[f])&&b.push(f);return b.sort()};o.extend=j(o.oX);o.cba=o.assign=j(o.keys);o.hua=function(a,b,f){for(var b=l(b,f),d,f=o.keys(a),i=0,g=f.length;g>i;i++)if(d=f[i],b(a[d],d,a))return d};o.twa=function(a,b,d){var i,g,c={},j=a;if(r== j)return c;o.isFunction(b)?(g=o.oX(j),i=q(b,d)):(g=f(arguments,z,z,1),i=function(a,b,f){return b in f},j=Object(j));for(var e=0,k=g.length;k>e;e++){var n=g[e],l=j[n];i(l,n,j)&&(c[n]=l)}return c};o.JAa=function(a,b,d){if(o.isFunction(b))b=o.Tca(b);else var i=o.map(f(arguments,z,z,1),String),b=function(a,b){return!o.contains(i,b)};return o.twa(a,b,d)};o.defaults=j(o.oX,p);o.create=function(a,b){var f=n(a);return b&&o.cba(f,b),f};o.clone=function(a){return o.cz(a)?o.isArray(a)?a.slice():o.extend({}, a):a};o.tap=function(a,b){return b(a),a};o.Ova=function(a,b){var f=o.keys(b),d=f.length;if(r==a)return!d;for(var i=Object(a),g=0;d>g;g++){var c=f[g];if(b[c]!==i[c]||!(c in i))return z}return p};o.isEqual=function(a,b){return e(a,b)};o.isEmpty=function(a){return r==a?p:k(a)&&(o.isArray(a)||o.isString(a)||o.isArguments(a))?0===a.length:0===o.keys(a).length};o.isElement=function(a){return!(!a||1!==a.nodeType)};o.isArray=G||function(a){return"[object Array]"===J.call(a)};o.cz=function(a){var b=typeof a; return"function"===b||"object"===b&&!!a};o.each("Arguments,Function,String,Number,Date,RegExp,Error".split(","),function(a){o["is"+a]=function(b){return J.call(b)==="[object "+a+"]"}});o.isArguments(arguments)||(o.isArguments=function(a){return o.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(o.isFunction=function(a){return"function"==typeof a||z});o.yAa=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};o.isNaN=function(a){return o.isNumber(a)&&a!==+a};o.isBoolean=function(a){return a=== p||a===z||"[object Boolean]"===J.call(a)};o.isNull=function(a){return r===a};o.isUndefined=function(a){return a===m};o.has=function(a,b){return r!=a&&B.call(a,b)};o.noConflict=function(){return x.IO=y,this};o.identity=function(a){return a};o.gAa=function(a){return function(){return a}};o.noop=C();o.fda=i;o.NAa=function(a){return r==a?C():function(b){return a[b]}};o.GY=o.FAa=function(a){return a=o.cba({},a),function(b){return o.Ova(b,a)}};o.times=function(a,b,f){for(var d=Array(Math.max(0,a)),b=q(b, f,1),f=0;a>f;f++)d[f]=b(f);return d};o.random=function(a,b){return r==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))};o.now=Date.now||function(){return(new Date).getTime()};var G={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},ea=o.rca(G);o.escape=c(G);o.unescape=c(ea);o.result=function(a,b,f){b=r==a?m:a[b];return b===m&&(b=f),o.isFunction(b)?b.call(a):b};var fa=0;o.uniqueId=function(a){var b=++fa+"";return a?a+b:b};o.Nya={evaluate:/<%([\s\S]+?)%>/g,Cva:/<%=([\s\S]+?)%>/g, escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\u2028|\u2029/g;o.template=function(a,f,d){function i(a){return j.call(this,a,o)}!f&&d&&(f=d);var f=o.defaults({},f,o.Nya),g=0,c="__p+='";a.replace(RegExp([(f.escape||T).source,(f.Cva||T).source,(f.evaluate||T).source].join("|")+"|$","g"),function(f,d,i,j,e){return c+=a.slice(g,e).replace(U,b),g=e+f.length,d?c+="'+\n((__t=("+d+"))==null?'':_.escape(__t))+\n'":i?c+="'+\n((__t=("+ i+"))==null?'':__t)+\n'":j&&(c+="';\n"+j+"\n__p+='"),f});c+="';\n";f.uea||(c="with(obj||{}){\n"+c+"}\n");c="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+c+"return __p;\n";try{var j=new Function(f.uea||"obj","_",c)}catch(e){h((e.source=c,e))}return i.source="function("+(f.uea||"obj")+"){\n"+c+"}",i};o.chain=function(a){a=o(a);return a.Sha=p,a};o.mixin=function(b){o.each(o.functions(b),function(f){var d=o[f]=b[f];o.prototype[f]=function(){var b=[this.Wu]; return M.apply(b,arguments),a(this,d.apply(o,b))}})};o.mixin(o);o.each("pop,push,reverse,shift,sort,splice,unshift".split(","),function(b){var f=F[b];o.prototype[b]=function(){var d=this.Wu;return f.apply(d,arguments),"shift"!==b&&"splice"!==b||0!==d.length||delete d[0],a(this,d)}});o.each(["concat","join","slice"],function(b){var f=F[b];o.prototype[b]=function(){return a(this,f.apply(this.Wu,arguments))}});o.prototype.value=R("Wu");o.prototype.valueOf=o.prototype.toJSON=o.prototype.value;o.prototype.toString= function(){return""+this.Wu};"function"==typeof define&&define.Vza&&define("lq",[],function(){return o})}).call(this)}).call(window.TDV||(window.TDV={}));define("underscore-min",C());define("dm",["underscore-min"],function(){return window.TDV._.noConflict()}); define("lc",[],function(){return{D:function(a){return a+"_change"},cd:"default",xb:"mouseDown",Lc:"mouseMove",cc:"mouseUp",Yp:"mouseWheel",T:"click",RF:"doubleClick",tc:"rollOver",Ib:"rollOut",Ch:"mouseEnter",zf:"mouseLeave",Ai:"pointerOver",tza:"pointerOut",m0:"pointerDown",n0:"pointerUp",zi:"pointerClick",MF:"gestureStart",Wea:"gestureChange",LF:"gestureEnd",Xea:"gestureRotate",Zv:"gestureScale",sc:"progress",zs:"close",OPEN:"open",Ci:"select",yb:"resize",pN:"changing",aa:"change",zc:"stateChange", xf:"cueChange",S:"loaded",ie:"loadingError",Di:"start",je:"stop",Qs:"play",VF:"pause",Db:"ready",Jk:"begin",Da:"end",gza:"cancel",rg:"press",Dh:"release",Rs:"repeatEnd",nm:"scroll",SF:"movementChange",fza:"beforeShow",ZZ:"beforeHide",INIT:"init",md:"show",yd:"hide",hw:"showEnd",Os:"hideEnd",ffa:"loadingScript",zfa:"processingScript",Xv:"enableCookies",Dea:"applicationSet",HF:"userInteraction",B0:"toolTipShow",DO:"toolTipHide"}}); define("bY",[],function(){return function(a,b){this.name=a;this.source=m;this.data=b}}); define("kp",[],function(){function a(){this.Re=[];this.an=[]}a.prototype.GH=function(a){for(var c=0;c=b?p:0==a.indexOf("filesystem:")};b.tv=function(a){return a&&0==a.indexOf("data:")};b.getDirectory=function(a){a=b.ts(a);a=a.split("?")[0];a=a.split("/");1");e.vx.css({overflow:"auto",position:"absolute",bottom:0,left:0,right:0,padding:"20px",fontFamily:"Verdana",backgroundColor:"#FFFFFF",color:"#000000","z-index":100});a?e.vx.css({top:0}):e.vx.css({width:"40%",right:"0",left:"auto",height:"50%",filter:"alpha(opacity=60)",opacity:0.6});c("body").append(e.vx);console.log=function(a){e.log(a)}}},d;e.log=function(a){if(a!=d){d=a;try{e.vx?c("
").text(a).prependTo(e.vx):console.log(a)}catch(b){}}};e.OAa=function(a){this.iR.push(a)}; e.iR=[];e.debug=function(a,b){try{b.apply(this,arguments)}catch(d){e.sM(a,d),h(d)}};e.sM=function(a,b){var d=[];d.push("Exception: "+a);b.message?(d.push(b.message),d.push(b.stack)):d.push(b);this.log(d.join("\n"));for(d=0;d0};b.prototype.hasAttribute=function(a){return this.OX(a)?p:z};b.prototype.iba=function(){this.uw==m&&this.a3();return this.uw};b.prototype.Vxa=function(){this.MT=["definitions"];return this};b.prototype.Bba=function(){if(this.MT)return this.MT;if(this.Pq())this.ro().Bba(); else return[]};b.prototype.OX=function(a){this.ct==m&&this.a3();return this.ct[a]};b.prototype.Ah=function(a){this.J7=a;this.jia();return this};b.prototype.ova=function(){return this.Jba().length>0};b.prototype.Jba=function(){this.Su==m&&this.g3();return this.Su};b.prototype.ava=function(){this.ND==m&&this.g3();return this.ND};b.prototype.Mp=function(a){this.I7=a;this.hia();return this};b.prototype.nva=function(){return this.Hba().length>0};b.prototype.Hba=function(){this.Gu==m&&this.f3();return this.Gu}; b.prototype.$ua=function(){this.cD==m&&this.f3();return this.cD};b.prototype.Vb=function(a){this.F7=a;this.QP();return this};b.prototype.iva=function(){return this.SX().length>0};b.prototype.Tba=function(a){this.Fq==m&&this.ZG();return e(this.Fq).contains(a)};b.prototype.SX=function(){this.Fq==m&&this.ZG();return this.Fq};b.prototype.Wf=function(a){this.G7=a;this.QP();return this};b.prototype.lva=function(){return this.XX().length>0};b.prototype.Uba=function(a){this.Uq==m&&this.ZG();return e(this.Uq).contains(a)}; b.prototype.XX=function(){this.Uq==m&&this.ZG();return this.Uq};b.prototype.Rg=function(a){this.H7=a;this.F2();return this};b.prototype.zba=function(){this.KB==m&&this.Wia();return this.KB};b.prototype.Dxa=function(){this.u5=p;return this};b.prototype.tba=function(){return this.u5||this.Pq()&&this.ro().tba()};b.prototype.Wr=function(a,b,f,d){this.voa(b,f);var g=this.WP,c;c=d&&d.length>0?new (k.extend(g,function(){g.apply(this,d)})):new g;c.set("application",a);c.set("baseDirectoy",b);c.set("queryStringParameters", f);c.set("class",this.Ry());return c};b.prototype.voa=function(a,b){if(!this.s5){this.s5=p;this.gja(a,b);this.Nja()}};b.prototype.gja=function(a,b){if(this.ova()||this.nva()){var d=this.WP.prototype,c=this.ava(),e=this.$ua(),k=d.set;d.set=function(d,j){if(c[d]){j&&!g.tv(j)&&!g.tY(j)&&(j=g.$u(g.ts(j,a),b));k.call(this,d,j)}else e[d]?f.get(this.get("application")||this.Ua()).lta(this,k,d,j):k.call(this,d,j)}}};b.prototype.Nja=function(){var a=this.WP.prototype,b=this;if(this.hasAttributes()){a.set= a.set;a.get=a.get}if(this.iva()||this.lva()){a.bind=a.bind;a.getBindings=a.sE;a.hasBindings=a.Rba;a.trigger=a.trigger;a.unbind=a.unbind}a.getClassName=function(){return b.Ry()};a.getClassPath=function(){return b.uE()};var f=this.zba(),d;for(d in f)a[d]=f[d]};b.prototype.B2=function(){this.ct=this.uw=m};b.prototype.a3=function(){this.uw=[];this.ct={};for(var a in this.QT){this.uw.push(a);this.ct[a]=b.AR(this.QT[a])}if(this.Pq())for(var f=this.ro(),d=f.iba(),g=0;g=0&&a.lastIndexOf("]")==a.length-1};b.tka=function(a){return a.substring(0, a.indexOf("["))};b.c4=function(a){return a.substring(a.indexOf("[")+1,a.lastIndexOf("]"))};b.d4=function(a){for(var a=b.c4(a),f=[],d="",g=0,c=0;cd;++f)b=a.charCodeAt(f),128>b?l[d>>2]|=b<b?l[d>>2]|=(192|b>>6)<b||57344<=b?l[d>> 2]|=(224|b>>12)<>2]|=(240|b>>18)<>2]|=(128|b>>12&63)<>2]|=(128|b>>6&63)<>2]|=(128|b&63)<>2]|=c[b&3]; this.fE=a[16];56<=b&&(this.hM||this.hash(),a[0]=this.fE,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0);a[14]=this.iY<<3|this.Ur>>>29;a[15]=this.Ur<<3;this.hash()}};a.prototype.hash=function(){var a=this.$L,b=this.aM,f=this.bM,c=this.cM,j=this.dM,e=this.eM,q=this.fM,o=this.gM,t=this.rX,s,u,v,w,x,y,F;for(s=16;64>s;++s)v=t[s-15],u=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3,v=t[s-2],v=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,t[s]=t[s-16]+u+t[s-7]+v<<0;F=b&f;for(s=0;64>s;s+= 4)this.first?(y=704751109,v=t[0]-210244248,o=v-1521486534<<0,c=v+143694565<<0,this.first=z):(u=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),v=(j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7),y=a&b,w=y^a&f^F,x=j&e^~j&q,v=o+v+x+d[s]+t[s],u+=w,o=c+v<<0,c=v+u<<0),u=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),v=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),F=c&a,w=F^c&b^y,x=o&j^~o&e,v=q+v+x+d[s+1]+t[s+1],u+=w,q=f+v<<0,f=v+u<<0,u=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),v=(q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25| q<<7),y=f&c,w=y^f&a^F,x=q&o^~q&j,v=e+v+x+d[s+2]+t[s+2],u+=w,e=b+v<<0,b=v+u<<0,u=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),v=(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7),F=b&f,w=F^b&c^y,x=e&q^~e&o,v=j+v+x+d[s+3]+t[s+3],u+=w,j=a+v<<0,a=v+u<<0;this.$L=this.$L+a<<0;this.aM=this.aM+b<<0;this.bM=this.bM+f<<0;this.cM=this.cM+c<<0;this.dM=this.dM+j<<0;this.eM=this.eM+e<<0;this.fM=this.fM+q<<0;this.gM=this.gM+o<<0};a.prototype.qva=function(){this.gua();var a=this.$L,f=this.aM,d=this.bM,c=this.cM,j=this.dM, e=this.eM,q=this.fM,o=this.gM;return b[a>>28&15]+b[a>>24&15]+b[a>>20&15]+b[a>>16&15]+b[a>>12&15]+b[a>>8&15]+b[a>>4&15]+b[a&15]+b[f>>28&15]+b[f>>24&15]+b[f>>20&15]+b[f>>16&15]+b[f>>12&15]+b[f>>8&15]+b[f>>4&15]+b[f&15]+b[d>>28&15]+b[d>>24&15]+b[d>>20&15]+b[d>>16&15]+b[d>>12&15]+b[d>>8&15]+b[d>>4&15]+b[d&15]+b[c>>28&15]+b[c>>24&15]+b[c>>20&15]+b[c>>16&15]+b[c>>12&15]+b[c>>8&15]+b[c>>4&15]+b[c&15]+b[j>>28&15]+b[j>>24&15]+b[j>>20&15]+b[j>>16&15]+b[j>>12&15]+b[j>>8&15]+b[j>>4&15]+b[j&15]+b[e>>28&15]+b[e>> 24&15]+b[e>>20&15]+b[e>>16&15]+b[e>>12&15]+b[e>>8&15]+b[e>>4&15]+b[e&15]+b[q>>28&15]+b[q>>24&15]+b[q>>20&15]+b[q>>16&15]+b[q>>12&15]+b[q>>8&15]+b[q>>4&15]+b[q&15]+b[o>>28&15]+b[o>>24&15]+b[o>>20&15]+b[o>>16&15]+b[o>>12&15]+b[o>>8&15]+b[o>>4&15]+b[o&15]};return function(b){return(new a).update(b).qva()}}); define("jv",["require","jk"],function(a){var a=a("jk"),b={};b.g_=a.Lg("debug",z);b.$ea=a.Vf("hqhls");b.YZ=a.Lg("audiocontext",p);b.Ifa=a.Lg("testhash",z);b.Rea=a.Lg("exitvronblur",z);b.Mea=a.Lg("download",p);return b}); define("bD",["require","gD","jv"],function(a){function b(a){switch(Array.isArray(a)?"array":a===r?"null":typeof a){case "array":return"["+a.map(b).join(",")+"]";case "object":return"{"+Object.keys(a).sort().map(function(d){return b(d)+":"+b(a[d])}).join(",")+"}";case "boolean":return a?"true":"false";case "number":return a.toFixed(3);case "string":return'"'+a.split('"').join('\\"')+'"';case "null":return"null";case "undefined":return"undefined";case "function":return""}return""}var c=a("gD"), e=a("jv"),d=TDV.Aa.YL().MAJOR+"."+TDV.Aa.YL().MINOR;return{$ya:function(a){var g=a.hash;delete a.hash;var a=b(a),k=c(d+a);e.Ifa&&k!=g&&(console.log(d+a),console.log(k),console.log(g))}}}); define("iE",[],function(){function a(){var a=f.length,b=f.splice(0,a);d+=a;for(var i=0;i0||!b&&!c)return~setTimeout(d,j||1);if(f.length==0){c?i.then(a):g.textContent=e;k=(new Date).getTime()}e++;f.push(d); return e-1},cancel:function(a){if(a<0)clearTimeout(~a);else{var b=a-d;if(b>=0){f[b]||h("invalid async handle: "+a);f[b]=r}}}}}); define("eL",["dm","iE","bY","fd"],function(a,b,c,e){function d(){this.Uc={}}d.prototype.bind=function(a,b,d,i,c){a===m&&h("Event name undefined");b===m&&h("Event handler undefined");a in this.Uc||(this.Uc[a]=[]);this.Uc[a].push({handler:b,handlerDef:c||b,context:d||this,immediate:i?p:z});return this};d.prototype.unbind=function(b,d,c){if(b in this.Uc){var c=c||this,i=a(this.Uc[b]).select(function(a){return a.handler!=d||a.context!=c});0 a)break}0180;)this.jo= this.jo-360;for(;this.jo<-180;)this.jo=this.jo+360}return this.jo};a.prototype.Aua=function(){if(this.SW===m)this.SW=f.rp(this.p4()*Math.PI/180,0);return this.SW};a.prototype.vta=function(){return this.get("yaw")!==m&&this.get("backwardYaw")!==m};a.prototype.p4=function(){return this.get("backwardYaw")-180};return a});define("fr",[],function(){return{K:"stopped",R:"playing",yc:"paused"}}); define("dV",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("ImageResource",b).B("Object").L({levels:"array[ImageResourceLevel]"});return b}); define("du","require,fd,lc,fr,dV,dT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("dV"),a=a("dT"),b=b.extend(d,function(){d.call(this);this.set("state",e.K);this.set("autoplay",p);this.set("repeat",0);this.set("visibleOnStop",p);this.set("finalFrame","last")});b.prototype.play=function(){this.set("state",e.R)};b.prototype.pause=function(){this.set("state",e.yc)};b.prototype.stop=function(){this.set("state",e.K)};a.A("AnimatedImageResource",b).B("ImageResource").L({autoplay:"bool", finalFrame:"enum[first, last]",frameCount:"number",frameDuration:"number",rowCount:"number",colCount:"number",repeat:"number",state:"enum[stopped, playing, paused]",visibleOnStop:"bool"}).Vb([c.Da,c.Rs,c.Di]).Rg({pause:b.prototype.pause,play:b.prototype.play,stop:b.prototype.stop});b.prototype.set=function(a,b){switch(a){case "state":(this.get("state")||e.K)==e.K&&b==e.R&&this.trigger(c.Di)}d.prototype.set.call(this,a,b)};b.prototype.Mg=function(a,b,c){b||(b=1);c||(c=1);return d.prototype.Mg.call(this, a,b*this.get("colCount",1),c*this.get("rowCount",1))};return b}); define("gp",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(a){b.call(this);this.by=a===m?p:a;this.tx=this.Hl=this.Gl=this.X=m;this.set("enabled",p);this.set("selected",z)});c.A("HotspotMapOverlay",a).B("MapOverlay").L({areas:"array[HotspotMapOverlayArea]",enabled:"bool",image:"HotspotMapOverlayImage",map:"HotspotMapOverlayMap",rollOverDisplay:"bool",rollOverImage:"HotspotMapOverlayImage",rollOverMap:"HotspotMapOverlayMap",selectedImage:"HotspotMapOverlayImage",selectedMap:"HotspotMapOverlayMap", selected:"bool",useHandCursor:"bool"});a.prototype.getItem=function(){if(this.X===m){var a=this.get("image");this.X=a?a.BL(this.by):r}return this.X};a.prototype.Eba=function(){if(this.Gl===m){var a=this.get("rollOverImage");this.Gl=a?a.BL(this.by):r}return this.Gl};a.prototype.Gba=function(){if(this.Hl===m){var a=this.get("selectedImage");this.Hl=a?a.BL(this.by):r}return this.Hl};a.prototype.Lua=function(){if(this.tx===m){this.tx=[];var a=this.getItem();a&&this.tx.push(a);(a=this.Eba())&&this.tx.push(a); (a=this.Gba())&&this.tx.push(a)}return this.tx};return a});define("dK",["fd","dT","gp"],function(a,b,c){a=a.extend(c,function(){c.call(this,p)});b.A("AreaHotspotMapOverlay",a).B("HotspotMapOverlay");return a}); define("kL",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("gain",1);this.set("fadeOutTime",0)});a.A("AudioResource",b).B("Object").L({fadeOutTime:"number",gain:"number",mp3Url:"string",oggUrl:"string"}).Ah(["mp3Url","oggUrl"]);return b});define("cj",[],function(){return{Ps:"inAdvance",i_:"delayed"}}); define("R",[],function(){return{NF:"grab",OF:"grabbing",lfa:"move",V_:"move-n",W_:"move-ne",M_:"move-e",Z_:"move-se",Y_:"move-s",$_:"move-sw",a0:"move-w",X_:"move-nw",mfa:"move-ew",ofa:"move-ns",nfa:"move-nesw",pfa:"move-nwse",O_:"move-fast-n",P_:"move-fast-ne",N_:"move-fast-e",S_:"move-fast-se",R_:"move-fast-s",T_:"move-fast-sw",U_:"move-fast-w",Q_:"move-fast-nw",he:"hand",cd:"default",$v:"inherit"}}); define("fC",["require","lc"],function(a){function b(){this.$f=[]}var c=a("lc");b.prototype.register=function(a){this.mga(a);this.$f.push(a);a.get("pressed")&&this.f9(a)};b.prototype.uF=function(a){this.Loa(a)};b.prototype.mga=function(a){a.bind(c.rg,this.n6,this,p)};b.prototype.Loa=function(a){a.unbind(c.rg,this.n6,this)};b.prototype.n6=function(a){this.f9(a.source)};b.prototype.f9=function(a){this.$f.forEach(function(b){b.set("pressed",b==a)})};b.register=function(a,b){this.uF(a);var f=this.Ef(b); a.XO=f;f.register(a)};b.uF=function(a){a.XO&&(a.XO.uF(a),delete a.XO)};b.Ef=function(a){return this.i5[a]||(this.i5[a]=new b)};b.i5={};return b});define("dk",[],function(){return{Tc:"push",Eh:"toggle"}});define("fS",[],function(){return{Ts:"visible",D_:"hidden",nm:"scroll"}});define("fj",[],function(){return{cd:m,v:"over",za:"pressed",Za:"pressedOver",G:"selected"}});define("em",[],function(){return{tc:"rollOver",ALWAYS:"always"}}); define("cI",["require"],function(){var a={},b;a:{try{if("localStorage"in window&&(window.localStorage.setItem("test","test"),"test"==window.localStorage.getItem("test"))){b=p;break a}}catch(c){}b=z}if(b)a.setItem=function(a,b){window.localStorage.setItem(a,b)},a.getItem=function(a){return window.localStorage.getItem(a)},a.removeItem=function(a){return window.localStorage.removeItem(a)},a.clear=function(){try{window.localStorage.clear()}catch(a){}};else{var e={};a.setItem=function(a,b){e[a]=b};a.getItem= function(a){return e[a]};a.removeItem=function(a){delete e[a]};a.clear=function(){e={}}}return a}); define("r",["require","fd","jk","cI"],function(a){function b(){}var c=a("fd"),e=a("jk"),d=a("cI");b.Hj=TDV.Aa.UF;b.XZ=TDV.Aa.nO;b.GO=TDV.Aa.e0;b.Jza=TDV.Aa.rO;b.hfa=TDV.Aa.oO;b.efa=TDV.Aa.d0;b.vza=TDV.Aa.qO;b.pO=TDV.Aa.pO;b.Iz=TDV.Aa.Iz;b.lN=TDV.Aa.lN;b.kN=TDV.Aa.kN;b.jN=TDV.Aa.jN;b.mN=TDV.Aa.mN;b.wf=TDV.Aa.wf;b.yF=TDV.Aa.yF;b.xi=TDV.Aa.xi;b.wi=TDV.Aa.wi;b.Uv=TDV.Aa.Uv;b.Up=TDV.Aa.Up;b.Dz=TDV.Aa.Dz;b.vs=TDV.Aa.vs;b.iN=TDV.Aa.iN;b.Hz=TDV.Aa.Hz;b.In=TDV.Aa.In;b.CF=TDV.Aa.CF;b.Fz=TDV.Aa.Fz;b.zF=TDV.Aa.zF; b.Vv=TDV.Aa.Vv;b.Gz=TDV.Aa.Gz;b.ws=TDV.Aa.ws;b.$Z=TDV.Aa.$Z;b.Ez=TDV.Aa.Ez;b.xs=TDV.Aa.xs;b.AF=TDV.Aa.AF;b.BF=TDV.Aa.BF;b.nN=TDV.Aa.nN;b.sN=TDV.Aa.sN;b.Wv=TDV.Aa.Wv;b.tN=TDV.Aa.tN;b.uN=TDV.Aa.uN;b.Jq=function(a){a="force_"+a;if(e.Vf("debug")&&e.Vf(a))return e.xn(a)};b.cka=b.Jq("os");b.Xd=function(){return b.cka||TDV.Aa.Xd};b.Yja=b.Jq("browser");b.browser=function(){return b.Yja||TDV.Aa.browser};b.Zja=b.Jq("browser_type");b.Ey=function(){return b.Zja||TDV.Aa.Ey};b.Q3=b.Jq("browser_subtype");b.Hc=function(){return b.Q3? b.Q3:TDV.Aa.Hc};b.$ja=b.Jq("browser_version");b.Iaa=function(){return b.$ja||TDV.Aa.Iaa};b.bka=b.Jq("device");b.Yr=function(){return b.bka||TDV.Aa.Yr};b.Wa=function(){return TDV.Aa.LY};b.Pja=function(){for(var a=navigator.userAgent.toLowerCase(),b=["SM-G960","SM-G965"],d=0;dnavigator.userAgent.indexOf("; wv")?z:p;b.aka=!!b.Jq("chromewebview");b.Qaa=function(){return b.aka||b.Vha};b.se=function(){return b.Hc()==b.In||b.Hc()==b.CF||b.Hc()==b.xs||b.Hc()==b.Ez};b.zY=function(){return b.Fca()||b.Pva()};b.Pva=function(){return!!(window.location.hash&&0<=window.location.hash.indexOf("device=piconeo3"))}; b.Fca=function(){return b.Hc()==b.In&&0<=navigator.userAgent.indexOf("Quest 2")};b.Eca=function(){return b.Hc()==b.In&&0<=navigator.userAgent.indexOf("Quest")&&0>navigator.userAgent.indexOf("Quest 2")};b.Hva=function(){return b.Hc()==b.In&&0>navigator.userAgent.indexOf("Quest")};b.wY=function(){return b.se()&&b.qE()};b.DC=m;b.Bwa=function(){b.DC===m&&(b.DC=parseInt(e.xn("sts")),isNaN(b.DC)&&(b.DC=b.se()&&!b.Pja?512:b.Wa()&&b.Xd()==b.Hj?512:b.Wa()?256:1024));return b.DC};var f;if(b.browser()==b.xi|| b.browser()==b.wf)try{f=parseFloat(/Version\/([0-9]+\.[0-9]+)/i.exec(navigator.userAgent)[1])}catch(g){}b.jpa=f;b.YE=function(){return b.jpa};b.Kla=function(){var a;try{a=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||z}catch(d){}a||(a=b.YE());return a}();b.sv=function(){return b.Kla};b.Q4=function(){var a={Nba:"unknown",Lca:1},b=document.createElement("canvas");if(b&&(b= b.getContext("webgl")||b.getContext("experimental-webgl"))){var d=b.getExtension("WEBGL_debug_renderer_info");d&&(a.Nba=b.getParameter(d.UNMASKED_RENDERER_WEBGL));a.cwa=b.getParameter(b.MAX_TEXTURE_SIZE);if(d=b.getExtension("EXT_texture_filter_anisotropic")||b.getExtension("MOZ_EXT_texture_filter_anisotropic")||b.getExtension("WEBKIT_EXT_texture_filter_anisotropic"))a.Lca=b.getParameter(d.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}return a}();b.Mba=function(){return b.Q4};b.Iga=function(){var a=b.Q4.Nba.match(/Apple\s+(.+)\s+GPU/); return a?a[1].toUpperCase():"unknown"}();b.Wza=function(){return b.Iga};b.nma=b.Yr()==b.Wv?p:z;b.zp=function(){return b.nma};b.yX=function(){return b.browser()==b.xi&&14<=b.YE()};var k=!!d.getItem("tdvp_video_drift_2");b.bca=function(){return k};b.iya=function(){k=p;d.setItem("tdvp_video_drift_2",p)};b.tma="ontouchstart"in window||"undefined"!==typeof window.PointerEvent&&"undefined"!==typeof navigator.maxTouchPoints&&0a.indexOf("#")&&(a+="#"),a+="&tdvflipx");return a},kua:function(a,b,c){var e=document.createElement("canvas");e.width=b;e.height=c;c=e.getContext("2d");c.translate(b,0);c.scale(-1,1);c.drawImage(a,0,0);a.src=e.toDataURL()}}}); define("gu",["require","r","jk","iE","cI"],function(a){function b(a,b,d,c,e){this.url=a;this.Qd=b;this.time=d;this.Aya=c;this.wta=e}var c=a("r");URL=a("jk");async=a("iE");Storage=a("cI");b.prototype.loaded=function(){e.jV(this.url);e.KC(this)};b.prototype.cancel=function(){e.KC(this)};var e={wr:[],Cm:[],mD:[],KW:r,E5:{},add:function(a,d,c,i){a=new b(a,d,(new Date).getTime(),c,i);this.wr.push(a);this.J();return a},Gya:function(a){this.mD.push(a);this.J()},Fya:function(a){var b=this.mD,a=b.indexOf(a); 0<=a&&b.splice(a,1);this.J()}};if(c.Hc()==c.ws)e.VZ=S(p),e.jV=C();else if(!URL.Vf("debug")||!URL.Lg("disable-cache")){e.VZ=function(a){return this.E5[a]||Storage.getItem("tdvp_"+a)};var d=z;e.jV=function(a){this.E5[a]=p;try{Storage.setItem("tdvp_"+a,p)}catch(b){d||(d=p,Storage.clear())}}}else e.VZ=S(z),e.jV=C();e.J=function(){this.KW||(this.KW=async.Ev(e.gsa))};e.gsa=function(){e.KW=r;for(var a=this.opa(),b=0,d=this.Cm.length;ba.indexOf(c)&&c.wta()}var n=this.Cm;this.Cm= a;b=0;for(d=this.Cm.length;bn.indexOf(c)&&c.Aya()}.bind(e);e.Hqa=function(){this.wr.sort(function(a,b){return a.Qd-b.Qd||b.time-a.time});this.mD.sort(function(a,b){return a-b})};e.opa=function(){this.Hqa();var a=[];if(this.wr.length)for(var b=this.mD.length?this.mD[0]:this.wr[0].Qd,d=0;10>d&&d0)b=j.pop();else{b=document.createElement("img");if(g.xca(a))b.crossOrigin="Anonymous"}b.setAttribute("draggable","false");b.style.position="static";b.style.border="none";b.style.display="none";this.qga(b);b.src=a;return b};a.prototype.v3=function(a){this.x8(a);a.parentNode&&a.parentNode.removeChild(a); a.src="";j.length>n&&j.push(a)};var n=100,j=[],l=5;a.KZ=function(a){return i.VZ(a)};return a}); define("eV","require,dm,jquery.mod,lc,gb,W,ls,fb,hW".split(","),function(a){function b(){this.Zk=this.al=this.bl=this.$k=this.Yn=this.Xn=this.$n=this.Zn=0;this.qG=this.sG=this.tG=this.rG="";this.ub=1;this.Pb=m;this.pt=[];this.$P=[];this.XP=g.EO;this.IG=z;this.SH=m;this.lf=r;this.UR=this.aX=0;this.fb=document.createElement("canvas");this.fb.setAttribute("tdvlayer","background");this.I=e(this.fb);i.css(this.fb,{position:"absolute",left:0,top:0,"z-index":k.xF,"user-select":"none","-ms-user-select":"none", "-moz-user-select":"none","-webkit-user-select":"none"});this.me=p}var c=a("dm"),e=a("jquery.mod"),d=a("lc"),f=a("gb"),g=a("W"),k=a("ls"),i=a("fb"),n=a("hW");b.prototype.setSize=function(a,b){if(this.aX!=a||this.UR!=b){this.aX=a||0;this.UR=b||0;this.me=p}};b.prototype.Qda=function(a){if(this.il!=a){this.il=a;this.me=p}};b.prototype.Cb=R("I");b.prototype.vE=R("fb");b.prototype.Axa=function(a){if(this.SH!=a){if(this.lf){this.lf.unbind(d.S,this.iB,this);this.lf.cancel();this.lf=r}if(this.SH=a){this.lf= new n(f.u0);this.lf.bind(d.S,this.iB,this);this.lf.load(this.SH)}this.me=p}};b.prototype.kZ=function(a){if(this.Zn!=a){this.Zn=a;this.me=p}};b.prototype.lZ=function(a){if(this.$n!=a){this.$n=a;this.me=p}};b.prototype.fZ=function(a){if(this.Xn!=a){this.Xn=a;this.me=p}};b.prototype.gZ=function(a){if(this.Yn!=a){this.Yn=a;this.me=p}};b.prototype.iZ=function(a){if(this.$k!=a){this.$k=a;this.me=p}};b.prototype.mZ=function(a){if(this.bl!=a){this.bl=a;this.me=p}};b.prototype.jZ=function(a){if(this.al!=a){this.al= a;this.me=p}};b.prototype.hZ=function(a){if(this.Zk!=a){this.Zk=a;this.me=p}};b.prototype.exa=function(a){if(this.rG!=a){this.rG=a;this.me=p}};b.prototype.gxa=function(a){if(this.tG!=a){this.tG=a;this.me=p}};b.prototype.fxa=function(a){if(this.sG!=a){this.sG=a;this.me=p}};b.prototype.dxa=function(a){if(this.qG!=a){this.qG=a;this.me=p}};b.prototype.yj=function(a){if(this.ub!=a){this.ub=a;this.me=p}};b.prototype.wh=R("ub");b.prototype.rz=function(a){if(!c.isEqual(this.Pb,a)){this.Pb=a;c(a).isArray()|| (a=[a]);a=c(a).filter(function(a){return c(a).isString()});this.Ida(a)}};b.prototype.Ida=function(a){if(!c.isEqual(this.pt,a)){this.pt=a;this.me=p}};b.prototype.kxa=function(a){if(this.Pza!=a){this.$P=a;this.me=p}};b.prototype.jxa=function(a){if(this.XP!=a){this.XP=a;this.me=p}};b.prototype.iB=function(){this.me=p;this.Le()};b.prototype.Le=function(){if(this.me){this.J();this.me=z}};b.prototype.J=function(){var a=Math.max(0,this.aX-(this.$k+this.al)),b=Math.max(0,this.UR-(this.bl+this.Zk)),d=this.I.get(0); d.width=a;d.height=b;var d=d.getContext("2d"),f=this.Kha(),i=f.length>0,e=this.lf&&this.lf.yp(),k=this.$k>0&&this.rG||this.bl>0&&this.tG||this.al>0&&this.sG||this.Zk>0&&this.qG,k=i||e||k;if(i){var n;n=this.XP==g.gO?d.createLinearGradient(0,0,a,0):d.createLinearGradient(0,0,0,b);c(f).forEach(function(a){n.addColorStop(a.ratio,a.color)});d.fillStyle=n;d.fillRect(0,0,a,b);this.IG=p}else if(this.IG){d.clearRect(0,0,a,b);this.IG=z}if(e){d.drawImage(this.lf.qe(),0,0,a,b);this.IG=p}this.fb.style.opacity= this.ub;this.fb.style.filter="alpha(opacity="+Math.round(this.ub*100)+")";this.fb.style["-ms-filter"]="alpha(opacity="+Math.round(this.ub*100)+")";this.fb.style.borderTopLeftRadius=this.Zn+"px";this.fb.style.borderTopRightRadius=this.$n+"px";this.fb.style.borderBottomLeftRadius=this.Xn+"px";this.fb.style.borderBottomRightRadius=this.Yn+"px";this.fb.style.borderLeft=this.CH(this.$k,this.rG);this.fb.style.borderTop=this.CH(this.bl,this.tG);this.fb.style.borderRight=this.CH(this.al,this.sG);this.fb.style.borderBottom= this.CH(this.Zk,this.qG);this.fb.style.width=a+"px";this.fb.style.height=b+"px";this.fb.style.cursor="inherit";this.fb.style.display=k?"block":"none";if(this.fb.clientWidth===0&&a!==0){this.fb.style.width=0;this.fb.style.width=a+"px"}};b.prototype.CH=function(a,b){return a>0?b?a+"px solid "+b:a+"px solid transparent":"none"};b.prototype.Kha=function(){var a=[];if(this.pt.length>0){for(var b=this.pt.slice(),b=[].concat([b[0]],b,[b[b.length-1]]),d=this.Jha(),d=[].concat([0],d,[1]),f=0;f=0&&a.push({color:b[f],ratio:c})}for(f=0;f0?c(this.$P).map(function(a){return Math.min(1,Math.max(0,a))}):a==1?[0.5]:c(c.range(a)).map(function(b,d){return 1*d/(a-1)});b.lengtha&&b.splice(a,b.length-a);return b};return b}); define("dF",["jquery.mod","ls","fb"],function(a,b,c){function e(){this.gJ=this.iJ=this.jJ=this.hJ=this.Zk=this.al=this.bl=this.$k=0;this.rC=this.il=p;this.WW=this.kS=0;this.Z=p;this.RC=document.createElement("div");this.RC.setAttribute("tdvlayer","content");this.R8=a(this.RC);c.css(this.RC,{position:"absolute"});this.xA=document.createElement("div");this.V2=a(this.xA);c.css(this.xA,{position:"absolute"});this.R8.append(this.V2)}e.prototype.append=function(a){this.V2.append(a)};e.prototype.pX=function(a){this.xA.appendChild(a)}; e.prototype.Nwa=function(a){this.xA.removeChild(a)};e.prototype.Cb=R("R8");e.prototype.vE=R("RC");e.prototype.xxa=function(a){this.kS!=a&&(this.kS=a,this.Z=p)};e.prototype.tya=function(a){this.WW!=a&&(this.WW=a,this.Z=p)};e.prototype.Uy=function(){return this.hJ+this.$k};e.prototype.Xy=function(){return this.jJ+this.bl};e.prototype.Wy=function(){return this.iJ+this.al};e.prototype.Qy=function(){return this.gJ+this.Zk};e.prototype.tz=function(a){this.rC!=a&&(this.rC=a,this.Z=p)};e.prototype.Yxa=function(a){this.hJ!= a&&(this.hJ=a,this.Z=p)};e.prototype.$xa=function(a){this.jJ!=a&&(this.jJ=a,this.Z=p)};e.prototype.Zxa=function(a){this.iJ!=a&&(this.iJ=a,this.Z=p)};e.prototype.Xxa=function(a){this.gJ!=a&&(this.gJ=a,this.Z=p)};e.prototype.iZ=function(a){this.$k!=a&&(this.$k=a,this.Z=p)};e.prototype.mZ=function(a){this.bl!=a&&(this.bl=a,this.Z=p)};e.prototype.jZ=function(a){this.al!=a&&(this.al=a,this.Z=p)};e.prototype.hZ=function(a){this.Zk!=a&&(this.Zk=a,this.Z=p)};e.prototype.Qda=function(a){this.il!=a&&(this.il= a,this.Z=p)};e.prototype.Le=function(){this.Z&&(this.J(),this.Z=z)};e.prototype.J=function(){c.css(this.RC,{overflow:this.rC?"visible":"hidden","z-index":this.il?b.d_:b.c_,left:this.Uy()+"px",top:this.Xy()+"px",right:this.Wy()+"px",bottom:this.Qy()+"px",cursor:"inherit"});c.css(this.xA,{left:-this.kS+"px",top:-this.WW+"px",right:this.rC?0:"initial",bottom:this.rC?0:"initial",cursor:"inherit"})};return e}); define("hy",["dm","jquery.mod","fd","ls","fb"],function(a,b,c,e,d){function f(){this.ea=this.W=this.da=this.ca=m;this.Yn=this.Xn=this.$n=this.Zn=0;this.Gc=z;this.jS=0;this.VW=4;this.BP=6;this.AV=0;this.Pb="#000000";this.ub=1;this.fb=document.createElement("div");this.fb.setAttribute("tdvlayer","shadow");this.I=b(this.fb);d.css(this.fb,{position:"absolute",left:0,top:0,right:0,bottom:"0"});this.Z=z}f.prototype.Cb=R("I");f.prototype.vE=R("fb");f.prototype.kZ=function(a){this.Zn!=a&&(this.Zn=a,this.Z= p)};f.prototype.lZ=function(a){this.$n!=a&&(this.$n=a,this.Z=p)};f.prototype.fZ=function(a){this.Xn!=a&&(this.Xn=a,this.Z=p)};f.prototype.gZ=function(a){this.Yn!=a&&(this.Yn=a,this.Z=p)};f.prototype.yj=function(a){this.ub!=a&&(this.ub=a,this.Z=p)};f.prototype.wh=R("ub");f.prototype.$e=function(a){this.Gc!=a&&(this.Gc=a,this.Z=p)};f.prototype.wxa=function(a){this.jS!=a&&(this.jS=a,this.Z=p)};f.prototype.sya=function(a){this.VW!=a&&(this.VW=a,this.Z=p)};f.prototype.cxa=function(a){this.BP!=a&&(this.BP= a,this.Z=p)};f.prototype.jya=function(a){this.AV!=a&&(this.AV=a,this.Z=p)};f.prototype.rz=function(a){this.Pb!=a&&(this.Pb=a,this.Z=p)};f.prototype.Le=function(){this.Z&&(this.J(),this.Z=z)};f.prototype.J=function(){var a=this.jS+"px "+this.VW+"px "+this.BP+"px "+this.AV+"px "+this.Pb;this.fb.style.display=this.Gc?"block":"none";this.fb.style.boxShadow=a;this.fb.style["-webkit-box-shadow"]=a;this.fb.style["-moz-box-shadow"]=a;this.fb.style.borderTopLeftRadius=this.Zn+"px";this.fb.style.borderTopRightRadius= this.$n+"px";this.fb.style.borderBottomLeftRadius=this.Xn+"px";this.fb.style.borderBottomRightRadius=this.Yn+"px";this.fb.style.filter="alpha(opacity="+Math.round(100*this.ub)+")";this.fb.style["-ms-filter"]="alpha(opacity="+Math.round(100*this.ub)+")";this.fb.style.opacity=this.ub;this.fb.style.zIndex=e.t0};return f}); define("jT","require,jquery.mod,dm,fd,iU,R,lc,eV,dF,hy,ls,bY,fb,r".split(","),function(a){var b=a("jquery.mod");a("dm");var c=a("fd"),e=a("iU"),d=a("R"),f=a("lc"),g=a("eV"),k=a("dF"),i=a("hy"),n=a("ls"),j=a("bY"),l=a("fb");a("r");var q=c.extend(e,function(){e.call(this);this.Sq=q.Sq++;this.fQ=this.zd=this.PT=this.qC=this.tV=this.I=this.fb=r;this.I$=this.m5=z;this.P=this.pa=r;this.ea=this.W=this.bu=this.au=0;this.Xq=this.Gc=z;this.e5=p;this.GB=this.HB=this.Rh=this.Sh=0;this.ub=1;this.hf=d.cd;this.set("inView", z);this.set("toolTip",m);this.Du(p);this.lV(p)});q.prototype.Xc=P("Ew");q.prototype.toString=function(){return"["+this.I.attr("tdvclass")+"::"+this.Sq+"]"};q.prototype.log=function(a){c.log(a+" "+this.toString()+" "+(new Date).getTime().toString())};q.prototype.Ua=R("pa");q.prototype.Rm=function(a){(this.pa=a)&&this.uS();this.uy();this.trigger(f.Dea)};q.prototype.Cb=function(){this.I=b(this.po());this.Cb=R("I");return this.I};q.prototype.po=function(){this.fb=document.createElement("div");this.fb.setAttribute("id", this.Sq);this.Ew&&this.fb.setAttribute("tdvclass",this.Ew);l.css(this.fb,{margin:0,padding:0,position:"absolute",overflow:"visible",display:"block"});this.po=R("fb");return this.fb};q.prototype.Kh=function(){this.tV=new i;this.Kh=R("tV");return this.tV};q.prototype.Ab=function(){this.zd=new g;this.Ab=R("zd");return this.zd};q.prototype.gx=function(){this.qC=document.createElement("div");this.qC.setAttribute("tdvlayer","overShadow");l.css(this.qC,{position:"absolute",left:0,top:0,cursor:"inherit"}); this.gx=R("qC");return this.qC};q.prototype.LR=function(){this.PT=b(this.gx());this.LR=R("PT");return this.PT};q.prototype.Pa=function(){this.fQ=new k;this.Pa=R("fQ");return this.fQ};q.prototype.getParent=R("P");q.prototype.Ba=R("W");q.prototype.hb=R("ea");q.prototype.hva=function(){return this.W!==m&&this.ea!==m};q.prototype.Gd=function(){return this.W-this.Pa().Uy()-this.Pa().Wy()};q.prototype.Fd=function(){return this.ea-this.Pa().Xy()-this.Pa().Qy()};q.prototype.ni=function(){return this.Pa().Uy()}; q.prototype.rn=function(){return this.Pa().Xy()};q.prototype.qn=function(){return this.Pa().Wy()};q.prototype.Sy=function(){return this.Pa().Qy()};q.prototype.$e=function(a){if(this.Gc!=a){this.Gc=a;this.Bc();if(this.P){this.P.Va();this.P.Jc()}this.uy()}};q.prototype.uy=function(){var a=z;this.pa&&this.Gc&&this.wh()>0&&(this==this.pa?a=p:this.P&&(a=this.P.Xq));this.Xq!=a&&this.oP(a)};q.prototype.oP=function(a){this.Xq=a;this.set("inView",a);this.Xq?this.trigger(new j(f.md)):this.trigger(new j(f.yd))}; q.prototype.aqa=function(a){if(this.e5!=a){this.e5=a;this.P&&this.P.Jc()}};q.prototype.Vpa=function(a){if(this.ax!=a){this.ax=a;this.Va()}};q.prototype.Upa=function(a){if(this.$w!=a){this.$w=a;this.Va()}};q.prototype.Tpa=function(a){if(this.Zw!=a){this.Zw=a;this.Va()}};q.prototype.Spa=function(a){if(this.Yw!=a){this.Yw=a;this.Va()}};q.prototype.Wpa=function(a){if(this.Pi!=a){this.Pi=a;if(this.Pi!=m)this.dj=m;this.Va()}};q.prototype.Rpa=function(a){if(this.Bt!=a){this.Bt=a;if(this.Bt!=m)this.cj=m; this.Va()}};q.prototype.lqa=function(a){if(this.dj!=a){this.dj=a;if(this.dj!=m)this.Pi=m;this.Va()}};q.prototype.hqa=function(a){if(this.cj!=a){this.cj=a;if(this.cj!=m)this.Bt=m;this.Va()}};q.prototype.cqa=function(a){if(this.Co!=a){if(a!=m)this.vJ=m;this.Co=a;this.P&&this.P.Jc();this.Va()}};q.prototype.yqa=function(a){if(this.gp!=a){if(a!=m)this.xJ=m;this.gp=a;this.P&&this.P.Jc();this.Va()}};q.prototype.nqa=function(a){if(this.NC!=a){if(a!=m)this.wJ=m;this.NC=a;this.P&&this.P.Jc();this.Va()}};q.prototype.Kpa= function(a){if(this.mA!=a){if(a!=m)this.uJ=m;this.mA=a;this.P&&this.P.Jc();this.Va()}};q.prototype.iqa=function(a){if(this.vJ!=a){if(a!=m)this.Co=m;this.vJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.kqa=function(a){if(this.xJ!=a){if(a!=m)this.gp=m;this.xJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.jqa=function(a){if(this.wJ!=a){if(a!=m)this.NC=m;this.wJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.gqa=function(a){if(this.uJ!=a){if(a!=m)this.mA=m;this.uJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.Npa= function(a){if(this.pq!=a){this.pq=a;this.P&&this.P.Jc()}};q.prototype.Opa=function(a){if(this.qq!=a){this.qq=a;this.P&&this.P.Jc()}};q.prototype.wn=function(){return isNaN(this.Pi)?this.Sh:this.Pi};q.prototype.vn=function(){return isNaN(this.Bt)?this.Rh:this.Bt};q.prototype.ala=function(){return isNaN(this.Mja)?this.N5:this.Mja};q.prototype.tn=function(){return isNaN(this.ax)?this.HB:this.ax};q.prototype.up=function(){return isNaN(this.$w)?this.GB:this.$w};q.prototype.WL=function(){return isNaN(this.Zw)? 1E4:this.Zw};q.prototype.VL=function(){return isNaN(this.Yw)?1E4:this.Yw};q.prototype.t9=function(a){if(this.OR()!=a){this.Pa().Yxa(a);this.Va()}};q.prototype.OR=function(){return this.Pa().hJ};q.prototype.v9=function(a){if(this.QR()!=a){this.Pa().$xa(a);this.Va()}};q.prototype.QR=function(){return this.Pa().jJ};q.prototype.u9=function(a){if(this.PR()!=a){this.Pa().Zxa(a);this.Va()}};q.prototype.PR=function(){return this.Pa().iJ};q.prototype.s9=function(a){if(this.NR()!=a){this.Pa().Xxa(a);this.Va()}}; q.prototype.NR=function(){return this.Pa().gJ};q.prototype.jF=function(a){if(this.au!=a){this.au=a;this.xh()}};q.prototype.kF=function(a){if(this.bu!=a){this.bu=a;this.xh()}};q.prototype.yj=function(a){if(this.ub!=a){this.ub=a;l.css(this.gx(),{filter:"alpha(opacity="+Math.round(this.ub*100)+") ",opacity:this.ub});this.uy();this.xh()}};q.prototype.wh=R("ub");q.prototype.Hpa=function(a){if(this.Ab().Zn!=a){this.Kh().kZ(a);this.Ab().kZ(a)}};q.prototype.rka=function(){return this.Ab().Zn};q.prototype.Ipa= function(a){if(this.Ab().$n!=a){this.Kh().lZ(a);this.Ab().lZ(a)}};q.prototype.ska=function(){return this.Ab().$n};q.prototype.zpa=function(a){if(this.Ab().Xn!=a){this.Kh().fZ(a);this.Ab().fZ(a)}};q.prototype.pka=function(){return this.Ab().Xn};q.prototype.Apa=function(a){if(this.Ab().Yn!=a){this.Kh().gZ(a);this.Ab().gZ(a)}};q.prototype.qka=function(){return this.Ab().Yn};q.prototype.Dpa=function(a){if(this.Ab().$k!=a){this.Ab().iZ(a);this.Pa().iZ(a);this.Va()}};q.prototype.f4=function(){return this.Ab().$k}; q.prototype.Jpa=function(a){if(this.Ab().bl!=a){this.Ab().mZ(a);this.Pa().mZ(a);this.Va()}};q.prototype.h4=function(){return this.Ab().bl};q.prototype.Fpa=function(a){if(this.Ab().al!=a){this.Ab().jZ(a);this.Pa().jZ(a);this.Va()}};q.prototype.g4=function(){return this.Ab().al};q.prototype.Bpa=function(a){if(this.Ab().Zk!=a){this.Ab().hZ(a);this.Pa().hZ(a);this.Va()}};q.prototype.e4=function(){return this.Ab().Zk};q.prototype.Cpa=function(a){this.Ab().exa(a)};q.prototype.Gpa=function(a){this.Ab().gxa(a)}; q.prototype.Epa=function(a){this.Ab().fxa(a)};q.prototype.ypa=function(a){this.Ab().dxa(a)};q.prototype.oK=function(a){this.Kh().$e(a)};q.prototype.tqa=function(a){this.Kh().wxa(a)};q.prototype.wqa=function(a){this.Kh().sya(a)};q.prototype.rqa=function(a){this.Kh().cxa(a)};q.prototype.vqa=function(a){this.Kh().jya(a)};q.prototype.uqa=function(a){this.Kh().yj(a)};q.prototype.sqa=function(a){this.Kh().rz(a)};q.prototype.vpa=function(a){this.nka()!=a&&this.Ab().yj(a)};q.prototype.nka=function(){return this.Ab().wh()}; q.prototype.rpa=function(a){this.mka()!=a&&this.Ab().rz(a)};q.prototype.mka=function(){return this.Ab().Pb};q.prototype.tpa=function(a){this.Ab().kxa(a)};q.prototype.spa=function(a){this.Ab().jxa(a)};q.prototype.upa=function(a){this.Ab().Axa(a)};q.prototype.Gr=function(a){if(this.hf!=a){this.hf=a;this.xh()}};q.prototype.Du=function(a){if(this.il!=a){this.il=a;l.css(this.gx(),{"z-index":this.il?n.g0:n.f0});this.Pa().Qda(this.il);this.xh()}};q.prototype.lV=function(a){if(this.Q7!=a){this.Q7=a;l.css(this.po(), {"z-index":this.Q7?n.K0:n.J0});this.xh()}};q.prototype.Vk=function(){this.uy();this.CE()};q.prototype.gj=function(){this.uy()};q.prototype.LU=C();q.prototype.uS=function(){this.CE();this.Bc();this.Va();this.Jc();this.xh()};q.prototype.Ho=function(){this.GB=this.HB=this.Rh=this.Sh=0;this.N5=m};q.prototype.CE=function(){var a=this.Ua();a&&a.rw.CE(this)};q.prototype.Bc=function(){var a=this.Ua();a&&a.rw.Bc(this)};q.prototype.Va=function(){var a=this.Ua();a&&a.rw.Va(this)};q.prototype.Jc=function(){var a= this.Ua();a&&a.rw.Jc(this)};q.prototype.xh=function(){var a=this.Ua();a&&a.rw.xh(this)};q.prototype.ZR=function(){var a=isNaN(this.vJ)&&isNaN(this.Co),b=isNaN(this.wJ)&&isNaN(this.NC);return isNaN(this.Pi)&&isNaN(this.dj)&&(a||b)?p:z};q.prototype.R4=function(){var a=isNaN(this.xJ)&&isNaN(this.gp),b=isNaN(this.uJ)&&isNaN(this.mA);return isNaN(this.Bt)&&isNaN(this.cj)&&(a||b)?p:z};q.prototype.ysa=function(){this.Ho();var a=this.ala();if(a){var b=this.ZR(),d=this.R4();if(b&&!d){b=this.Fd();if(b!=0){this.Sh= b*a+this.ni()+this.qn();this.Rh=b+this.rn()+this.Sy()}}else if(!b&&d){b=this.Gd();if(b!=0){this.Rh=b/a+this.ni()+this.qn();this.Sh=b+this.ni()+this.qn()}}}if(!isNaN(this.ax)&&this.Shthis.Zw)this.Sh=this.Zw;if(!isNaN(this.$w)&&this.Rhthis.Yw)this.Rh=this.Yw};q.prototype.Ia=function(){if(!this.I$){this.I$=p;var a=this.po(),b=this.gx();a.appendChild(this.Kh().vE());a.appendChild(b);b.appendChild(this.Ab().vE()); b.appendChild(this.Pa().vE())}};q.prototype.Xya=function(){this.ysa();var a=this.wn(),b=this.vn(),d=this.tn(),f=this.up();if(a!=this.Qma||b!=this.Pma||d!=this.Mma||f!=this.Lma||this.dj!=this.Oma||this.cj!=this.Nma){this.Qma=a;this.Pma=b;this.Mma=d;this.Lma=f;this.Oma=this.dj;this.Nma=this.cj;return p}return z};q.prototype.ga=function(){this.xh()};q.prototype.ui=C();q.prototype.Hda=function(a,b,d,c){if(this.ca!=a||this.da!=b||this.W!=d||this.ea!=c){this.ca=a;this.da=b;this.W=d;this.ea=c;this.Ab().setSize(this.W, this.ea);this.Jc();this.xh();this.trigger(new j(f.yb))}};q.prototype.Le=function(){var a=this.po(),b=this.gx();if(this.Gc){b.style.width=this.W+"px";b.style.height=this.ea+"px";a.style.left=this.ca+this.au+"px";a.style.top=this.da+this.bu+"px";a.style.width=this.W+"px";a.style.height=this.ea+"px";a.style.visibility="inherit";a.style.overflow="visible";a.style.cursor=this.pa&&this.pa.FQ.jba(this.hf);if(b.clientWidth===0&&this.W!==0){a.style.width=0;a.style.width=this.W+"px"}}else{a.style.visibility= "hidden";a.style.width=0;a.style.height=0;a.style.overflow="hidden";b.style.width=0;b.style.height=0}this.Kh().Le();this.Ab().Le();this.Pa().Le();if(!this.m5&&this.pa){this.m5=p;this.pa.Q9?this.vS():this.pa.bind(f.Di,this.vS,this,p)}};q.prototype.vS=function(){this.trigger(f.INIT)};q.prototype.Xua=function(a){var a=a.Cb().offset(),b=this.Cb().offset(),d={};d.left=b.left-a.left;d.top=b.top-a.top;if(this.pa){d.left=d.left/this.pa.Ix;d.top=d.top/this.pa.Ix}return d};q.Sq=0;return q}); define("J","require,dm,fd,lc,bY,fj,jT".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("fj"),g=a("jT"),k=c.extend(g,function(){this.U={};this.Vo=this.S3=m;this.vr={};this.O3=p;this.R9={};g.call(this);this.ija();this.ya();this.Xc("UICustomizable");this.Bc()});k.lb={visible:p,includeInLayout:p,state:m,left:m,right:m,top:m,bottom:m,centerX:m,centerY:m,width:m,height:m,minWidth:m,minHeight:m,maxWidth:m,maxHeight:m,actualWidth:m,actualHeight:m,paddingLeft:0,paddingTop:0,paddingRight:0, paddingBottom:0,opacity:1,borderRadius:0,borderTopRadius:m,borderBottomRadius:m,borderLeftRadius:m,borderRightRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomLeftRadius:m,borderBottomRightRadius:m,borderSize:0,borderLeftSize:m,borderTopSize:m,borderRightSize:m,borderBottomSize:m,borderColor:m,borderLeftColor:m,borderTopColor:m,borderRightColor:m,borderBottomColor:m,shadow:z,shadowHorizontalLength:0,shadowVerticalLength:3,shadowBlurRadius:6,shadowSpread:0,shadowColor:"#000000",shadowOpacity:m, backgroundOpacity:1,backgroundColor:m,backgroundColorRatios:m,backgroundColorDirection:m,backgroundImageUrl:m,hideEffect:m,showEffect:m};k.prototype.ija=function(){this.R9[f.Za]=f.za};k.prototype.ya=function(){this.Rj(k.lb)};k.prototype.Rj=function(a){for(var b in a){var d=a[b],f=d&&d.length;!f||typeof d=="string"?this.f(b,d):f==1?this.f(b,d[0]):f==2?this.h(b,d[0],d[1]):f==3&&this.h(b,d[0],d[1],d[2])}};k.prototype.f=function(a,b){this.U[a]={i:p,d:b}};k.prototype.gla=function(){var a=[],b;for(b in this.U)a.push(b); return a};k.prototype.h=function(a,b,d,f){this.vr[b]||(this.vr[b]={});this.f(a,f);this.vr[b][d]=a};k.prototype.hy=function(a,b){if(b)this.S3=a;else if(this.S3!=m)return;if(this.Vo!=a){var d=this.vr[this.Vo];if(d)for(var f in d)(this.U[f]||(this.U[f]={})).i=p;this.Vo=a;if(d=this.vr[this.Vo])for(f in d)(this.U[f]||(this.U[f]={})).i=p;this.Bc()}};k.prototype.N=function(a){if(b(a).isString())this.set(a,m);else{var d=a;for(a in d)this.set(a,d[a])}};k.prototype.set=function(a,d){var f=this.U[a];if(f){d== m&&(d=f.d);if(!b.isEqual(this.get(a),d)){a=="state"&&this.hy(d,p);g.prototype.set.call(this,a,d);f.i=p;this.Bc()}}else g.prototype.set.call(this,a,d)};k.prototype.get=function(a,b){switch(a){case "actualWidth":return this.Ba();case "actualHeight":return this.hb();default:var d=g.prototype.get.call(this,a);if(d===m){var f=this.U[a];f&&(d=f.d);d===m&&(d=b)}return d}};k.prototype.K1=function(){for(var a=["paddingLeft","paddingTop","paddingRight","paddingBottom","borderRadius","borderTopRadius","borderBottomRadius", "borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderSize","borderLeftSize","borderTopSize","borderRightSize","borderBottomSize"],b=0;b=2)return parseFloat(a[1])}; return k});define("hk",["dm","fd","bY"],function(a,b,c){return b.extend(c,function(b,d,f){a.isNumber(d)||(d=1);a.isNumber(f)||(f=0);c.call(this,b);this.scale=d;this.rotation=f})});define("lg",["dm","fd","bY"],function(a,b,c){return b.extend(c,function(a,b,f,g,k,i,n){c.call(this,a);this.x=b;this.y=f;this.pageX=g;this.pageY=k;this.op=i;this.FX=n})}); define("d","require,jquery.mod,dm,fd,lc,fj,iX,J,hk,lg,fb,r,jk".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("fj"),g=a("iX"),k=a("J"),i=a("hk"),n=a("lg");a("fb");var j=a("r"),a=a("jk"),l=e.extend(k,function(){k.call(this);this.Xc("UIComponent");this.nH=[];this.MB=[];this.vja=500;this.oc=1;this.Yj=j.XM();this.mB=this.wo=this.cI=z;this.set("propagateClick",p)});l.lb={autoRolledOver:z,autoPressed:z,contentOpaque:p,cursor:m,inheritedCursor:m,inheritedInteractionEnabled:p, interactionEnabled:p,rollOverOpacity:[f.v,"opacity"],rollOverShadow:[f.v,"shadow"]};c.defaults(l.lb,k.lb);l.prototype.ya=function(){this.Rj(l.lb)};l.prototype.W1=function(){this.y9(p)};l.prototype.V1=function(){this.y9(z)};l.prototype.T1=function(){this.gy(p)};l.prototype.U1=function(){this.gy(z)};l.prototype.WC=function(a){if(this.wo!=a){this.wo=a;this.ge()}};l.prototype.gy=function(a){if(this.mB!=a){this.mB=a;this.ge()}};l.prototype.y9=function(a){if(this.cI!=a){this.cI=a;this.ge()}};l.prototype.ge= function(){this.wo?this.hy(f.G):this.mB&&this.cI?this.hy(f.Za):this.mB?this.hy(f.za):this.cI?this.hy(f.v):this.hy(f.cd)};l.prototype.trigger=function(){k.prototype.trigger.apply(this,arguments)};l.prototype.B$=function(a){this.trigger(new n(d.xb,a.x,a.y,a.pageX,a.pageY))};l.prototype.C$=function(a){this.trigger(new n(d.Lc,a.x,a.y,a.pageX,a.pageY))};l.prototype.D$=function(a){this.trigger(new n(d.cc,a.x,a.y,a.pageX,a.pageY))};l.prototype.Kra=function(a,b){this.trigger(new n(d.Yp,a.x,a.y,a.pageX,a.pageY, b.op,b.FX))};l.prototype.w$=function(a){this.trigger(new n(d.T,a.x,a.y,a.pageX,a.pageY))};l.prototype.x$=function(a){this.trigger(new n(d.RF,a.x,a.y,a.pageX,a.pageY))};l.prototype.Mra=function(){this.trigger(new n(d.tc))};l.prototype.Lra=function(){this.trigger(new n(d.Ib))};l.prototype.Ira=function(){this.trigger(new n(d.Ch))};l.prototype.Jra=function(){this.trigger(new n(d.zf))};l.prototype.Hra=function(a,b){this.trigger(new i(d.MF,a,b))};l.prototype.Fra=function(a,b){this.trigger(new i(d.Wea,a, b))};l.prototype.Gra=function(a,b){this.trigger(new i(d.LF,a,b))};l.prototype.z$=function(a){this.trigger(new i(d.Xea,m,a))};l.prototype.A$=function(a){this.trigger(new i(d.Zv,a))};l.prototype.aW=function(a){a.stopImmediatePropagation();this.Uw(["touchend"]);if(this.GS(a))this.wU(a);else{this.g5();this.p8(a,p)}};l.prototype.p8=function(a,b){var d=this.$A(a);b&&this.Bra(d);this.B$(d);this.P&&this.P.p8(a,b&&this.get("propagateClick"))};l.prototype.$V=function(a){a.preventDefault();a.stopImmediatePropagation(); this.GS(a)?this.uU(a):this.o8(a)};l.prototype.o8=function(a){var b=this.$A(a);this.Ara(b);this.C$(b);this.P&&this.P.o8(a)};l.prototype.k4=function(a,b){var d=a.pageX-b.pageX,f=a.pageY-b.pageY;return Math.sqrt(d*d+f*f)};l.prototype.Kr=function(a,b){this.KA(["touchend"]);b!==z&&a.preventDefault();a.stopImmediatePropagation();this.GS(a)?this.vU(a):this.n8(a,this.p5());this.fA()};l.prototype.n8=function(a,b){this.D$(this.$A(a));this.zra(b);this.P&&this.P.n8(a)};l.prototype.Bra=function(a){this.bind(d.Ib, this.r$,this,p);this.Ku=a};l.prototype.Ara=function(a){if(this.Ku){var a=this.k4(this.Ku,a),b;if(j.Wa()){b=this.Ua();b=Math.min(b.Ba(),b.hb())*0.01;b=l.aga*b}else b=l.gga;a>b&&this.ZV()}};l.prototype.zra=function(a){if(this.Ku){this.w$(this.Ku);a&&this.x$(this.Ku);this.ZV()}};l.prototype.ZV=function(){if(this.Ku){this.unbind(d.Ib,this.r$,this);this.Ku=m}};l.prototype.r$=function(){this.ZV()};l.prototype.uR=function(a){this.Uw(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation(); this.wU(a)};l.prototype.wU=function(a){var b=this.FR(a);this.Tx=b;this.Hra(b.scale,b.rotation);this.P&&this.P.wU(a)};l.prototype.V3=function(a){a.preventDefault();a.stopImmediatePropagation();this.uU(a)};l.prototype.uU=function(a){var b=this.FR(a,this.Tx),d=b.rotation-this.Tx.rotation,f=b.scale/this.Tx.scale;this.Tx=b;this.oc=this.oc*f;for(this.fe=this.fe+d;this.fe>180;)this.fe=this.fe-360;for(;this.fe<-180;)this.fe=this.fe+360;this.Fra(this.oc,this.fe);d!=0&&this.z$(this.fe);f!=1&&this.A$(this.oc); this.P&&this.P.uU(a)};l.prototype.X3=function(a){this.KA(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();this.vU(a)};l.prototype.vU=function(a){var b=this.FR(a),d=b.rotation-this.Tx.rotation,b=b.scale/this.Tx.scale;this.oc=this.oc*b;for(this.fe=this.fe+d;this.fe>180;)this.fe=this.fe-360;for(;this.fe<-180;)this.fe=this.fe+360;this.Gra(this.oc,this.fe);d!=0&&this.z$(this.fe);b!=1&&this.A$(this.oc);this.P&&this.P.vU(a)};l.prototype.mT=function(a){this.Uw(["mouseup"]); a.stopImmediatePropagation();this.g5();this.j8(a,p);q&&this.Dma(a.ctrlKey)};l.prototype.j8=function(a,b){var d=this.Jt(a);b&&this.nia(d);this.B$(d);this.P&&this.P.j8(a,b&&this.get("propagateClick"))};l.prototype.nT=function(a){a.preventDefault();a.stopImmediatePropagation();this.Ua().Hv(this);this.k8(a)};l.prototype.k8=function(a){var b=this.Jt(a);this.mia(b);this.C$(b);this.P&&this.P.k8(a)};l.prototype.EI=function(a){this.KA(["mouseup"]);a.preventDefault();a.stopImmediatePropagation();this.l8(a, this.p5())};l.prototype.l8=function(a,b){this.D$(this.Jt(a));this.lia(b);this.P&&this.P.l8(a,b)};l.prototype.nia=function(a){this.bind(d.Ib,this.J2,this,p);this.ot=a};l.prototype.mia=function(a){this.ot&&this.k4(this.ot,a)>l.Wfa&&this.VP()};l.prototype.lia=function(a){if(this.ot){this.w$(this.ot);a&&this.x$(this.ot);this.VP()}};l.prototype.VP=function(){if(this.ot){this.unbind(d.Ib,this.J2,this);this.ot=m}};l.prototype.J2=function(){this.VP()};l.prototype.R5=function(a){if(this.pa.Q5){a.preventDefault(); a.stopImmediatePropagation();this.m8(a)}};l.prototype.q2=S(z);l.prototype.m8=function(a){var b=this.Jt(a),d=this.Uka(a);this.P&&!this.q2(d.op)&&this.P.m8(a);this.Kra(b,d)};l.prototype.Jt=function(a){return this.xR(a.pageX,a.pageY)};l.prototype.Uka=function(a){var a=window.event||a.originalEvent||a,b={};b.op=Math.max(-1,Math.min(1,a.wheelDelta||-a.detail));b.FX=a.wheelDelta?a.wheelDelta*0.01:b.op;return b};l.prototype.$A=function(a){var b=this.CR(a);return this.xoa=a=b===m?this.xR(a.pageX,a.pageY): b.length==0?this.xoa:this.xR(b[0].pageX,b[0].pageY)};l.prototype.GS=function(a){if((a=this.CR(a))&&a.length>1)for(var b=0,d=0;d1)return p}return z};l.prototype.hma=function(a){for(;a;){if(a==this.fb)return p;a=a.parentNode}return z};l.prototype.CR=function(a){return a.originalEvent.touches||a.originalEvent.targetTouches||a.originalEvent.changedTouches};l.prototype.xR=function(a,b){var d=this.Cb().offset(),f=this.pa?this.pa.Ix:1,c={};c.x=(a-d.left)/ f;c.y=(b-d.top)/f;c.pageX=a/f;c.pageY=b/f;c.Vca=a;c.Wca=b;return c};l.prototype.FR=function(a,b){if(a.originalEvent.scale!==m||a.originalEvent.rotation!==m)return{scale:a.originalEvent.scale,rotation:a.originalEvent.rotation};if(b){var d=this.r4(a);return{scale:b.scale*d/b.touchesDistance,rotation:0,touchesDistance:d}}return{scale:1,rotation:0,touchesDistance:this.r4(a)}};l.prototype.r4=function(a){var b=this.CR(a);if(b&&b.length>1){a=Math.abs(b[0].pageX-b[1].pageX);b=Math.abs(b[0].pageY-b[1].pageY); return Math.sqrt(a*a+b*b)}return 0};l.prototype.Uw=function(a){this.nH=c(this.nH).union(a);for(var a=this.q4(a),b=0;b1){var b=this.MB.slice(-2)[0];if(a-b<=this.vja)return p}return z};l.prototype.KA=function(a){this.nH=c(this.nH).difference(a);for(var a=this.q4(a),b=0;b0&&b.pt.length>0,f=this.k("contentOpaque"), c=this.k("inheritedInteractionEnabled"),g=this.k("interactionEnabled");this.Cu(c&&g&&(f||b))}if(a||this.n("cursor")||this.n("inheritedCursor")){this.p("cursor");this.p("inheritedCursor");this.kG?this.Gr(this.k("cursor")):this.Gr(this.k("inheritedCursor"))}};l.prototype.Cu=function(a){if(this.kG!=a){(this.kG=a)?this.Uw(l.x1):this.KA(l.x1);this.fA()}};l.prototype.fA=function(){this.po().style["pointer-events"]=this.kG?"auto":"none"};l.prototype.Dma=function(a){if(a){for(var a=[],b=this;b;){a.push(b); b=b.getParent()}console.log(a.map(function(a){return a.kA}))}else console.log(this.kA)};l.GE=function(){return l.QD>0};l.x1=function(){var a=[],a=a.concat(["touchstart","touchmove","gesturestart"]);j.Xd()!=j.Hj&&(a=a.concat(["mousedown","mousemove","mousewheel"]));return a}();l.QD=0;l.Mza=1E3;l.gga=10;l.aga=5;l.Wfa=10;var q=a.Lg("debug");return l});define("jP",[],function(){return{oa:"left",Ka:"right",Kc:"center",kb:"top",jb:"bottom",rc:"middle"}}); define("c",[],function(){return{fN:"absolute",we:"horizontal",Wp:"grid",ef:"vertical"}});define("bZ",[],function(){return function(a){this.Sc=a;this.height=this.width=this.y=this.x=0}});define("cU",[],function(){return function(){this.minHeight=this.minWidth=this.height=this.width=0}}); define("bK",["jP","bZ","cU"],function(a,b,c){function e(){this.Mb=r;this.ii=a.kb;this.Nh=a.oa;this.Tu=this.so=0}e.prototype.Pda=function(a){this.so!=a&&(this.so=a,this.dd())};e.prototype.TM=function(a){this.Tu!=a&&(this.Tu=a,this.dd())};e.prototype.Yda=function(a){this.Mb=a;this.dd()};e.prototype.sz=function(a){this.Nh!=a&&(this.Nh=a,this.dd())};e.prototype.xz=function(a){this.ii!=a&&(this.ii=a,this.dd())};e.prototype.KE=function(){return new c};e.prototype.update=function(){var a=this.Eia();this.ty(a); this.Ppa(a)};e.prototype.ty=function(a){this.CD(a);this.BD(a)};e.prototype.HH=function(){for(var a=this.O4(),b=[],c=0;ca&&(a=this.St,n=p),n)a=Math.max(1,Math.floor((l+q)/(a+q))),a=(l-(a-1)*q)/a}else a=this.yo;a=Math.max(1,a);o=Math.max(1,Math.floor(0.001+(l+q)/(a+q)));var n=o*a,t=o*(a+q)-q,s=0;if(l>=t)switch(this.Nh){case b.Ka:s=l-t;break;case b.Kc:s=Math.round(0.5*(l-t));break;default:s=0}for(var l=[],t=[],u=0;uq&&(q=this.qB,n=p),n)q=Math.max(1,Math.floor((s+u)/(q+u))),q=(s-(q-1)*u)/q}else q=this.xo;n=Math.max(1,Math.ceil(j/o));f=n*q;var j=n*(q+u)-u,v=0;if(s>=j)switch(this.ii){case b.jb:v=s-j;break;case b.rc:v=Math.round(0.5*(s-j))}j=[];s=[];for(c=0;cs?(l.width=s,b-=l.width,a=p):(n+=q.dj,i.push(l))}j=i}while(a);for(c=0;c=i)switch(this.Nh){case b.Ka:c-=i;break;case b.Kc:c= Math.round(0.5*(c-i));break;default:c=0}else c=0;for(j=0;j=l.height)switch(this.ii){case b.jb:l.y=e-l.height;break;case b.rc:l.y=Math.round(0.5*(e-l.height));break;default:l.y=0}else l.y=0;l.x=c;c+=l.width+f}else l.x=0,l.y=0};return a}); define("cu",["fd","jP","bK","cU"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.KE=function(){for(var a=new e,b=this.HH(),c=0;cs?(l.height=s,b-=l.height,a=p):(n+=q.cj,i.push(l))}j=i}while(a);for(c=0;cc&&(c=l.width),n++)}i+=f*(n-1);if(e>=i)switch(this.ii){case b.jb:e-=i;break;case b.rc:e= Math.round(0.5*(e-i));break;default:e=0}else e=0;for(j=0;j=0&&!c;i--)b(this.cl).contains(this.vc[i])||(c=this.vc[i]);for(i=d+1;i0){b(this.cl).forEach(function(a){this.Pa().pX(a.po());a.Rm(this.Ua())},this);this.cl=[];this.Va();this.Jc()}};l.prototype.fF=function(a){if(this.Zj!=a){this.Zj&&this.Zj.Yda(r); (this.Zj=a)&&this.Zj.Yda(this)}};l.prototype.ga=function(){var a=z,b=this.k("layout");if(this.n("layout")){switch(b){case g.Wp:this.fF(new i);break;case g.we:this.fF(new n);break;case g.ef:this.fF(new j);break;default:this.fF(new k)}this.p("layout");a=p}var f=this.Zj;if(this.n("horizontalAlign")||a){f.sz(this.k("horizontalAlign"));this.p("horizontalAlign")}if(this.n("verticalAlign")||a){f.xz(this.k("verticalAlign"));this.p("verticalAlign")}if(this.n("gap")||a){if(b==g.Wp){f.Pda(this.k("gap"));f.TM(this.k("gap"))}else b== g.we?f.Pda(this.k("gap")):b==g.ef&&f.TM(this.k("gap"));this.p("gap")}if(b==g.Wp){if(this.n("itemWidth")||a){var d=this.k("itemWidth"),l=e.Fk(d);l!==m?f.Nxa(l):f.Fxa(d);this.p("itemWidth")}if(this.n("itemHeight")||a){d=this.k("itemHeight");l=e.Fk(d);l!==m?f.Mxa(l):f.Exa(d);this.p("itemHeight")}if(this.n("itemMinWidth")){f.Kxa(this.k("itemMinWidth"));this.p("itemMinWidth")}if(this.n("itemMinHeight")){f.Jxa(this.k("itemMinHeight"));this.p("itemMinHeight")}if(this.n("itemMaxWidth")){f.Ixa(this.k("itemMaxWidth")); this.p("itemMaxWidth")}if(this.n("itemMaxHeight")){f.Hxa(this.k("itemMaxHeight"));this.p("itemMaxHeight")}}if(this.n("childrenInteractionEnabled")){this.p("childrenInteractionEnabled");this.O$()}this.gb(["cursor"],{cursor:"inheritedCursor"},this.vc,p,z);c.prototype.ga.call(this);b==g.Wp&&f.sxa(this.Pi)};l.prototype.gb=function(a,b,f,d,c){for(var e=0;ethis.ua?this.ua=0:this.ua>a&&(this.ua=a)};d.we="horizontal";d.ef="vertical";return d});define("hu",["fd","le"],function(a,b){return a.extend(b,function(a){b.call(this,b.we,a)})});define("dv",["fd","le"],function(a,b){return a.extend(b,function(a){b.call(this,b.ef,a)})}); define("V",["require"],function(){function a(){}function b(f){var c=g;g=[];a.pY=p;var e=f-a.vd,e=1e?e:100:1;a.vd=f;for(f=0;f=c?0:c>=e?1:c/e;0.5>c?c=Math.pow(2*c,a):(c=1-Math.pow(1-(2*c-1),a),c+=1);return b+(d-b)*0.5*c}};b.KY=e(a);return b}function b(a){var b={LX:function(b,d,c,e){return b+(d-b)*(1-Math.pow(1-(0>=c?0:c>=e?1:c/e),a))}};b.KY=e(a);return b}function c(a){var b={LX:function(b,d,c,e){return b+(d-b)*Math.pow(0>=c?0:c>=e?1:c/e,a)}};b.KY=e(a);return b}function e(a){return function(b,d,c){b=Math.abs(d-b);return 1>b/c?0:1/(1-Math.pow((b-c)/b, 1/a))}}function d(d,e,k){this.Zg=r;switch(d){case "quad_in":this.Zg=c(2);break;case "quad_out":this.Zg=b(2);break;case "quad_in_out":this.Zg=a(2);break;case "cubic_in":this.Zg=c(3);break;case "cubic_out":this.Zg=b(3);break;case "cubic_in_out":this.Zg=a(3);break;case "quart_in":this.Zg=c(4);break;case "quart_out":this.Zg=b(4);break;case "quart_in_out":this.Zg=a(4);break;case "quint_in":this.Zg=c(5);break;case "quint_out":this.Zg=b(5);break;case "quint_in_out":this.Zg=a(5);break;default:this.Zg=c(1)}this.ko= e.slice();this.Zc=0;this.Kb=this.Iq(e,k);this.LQ={};for(d=0;d=this.Kb};d.prototype.rj=R("Kb");d.prototype.setTime=function(a){this.Zc=Math.min(Math.max(0,a),this.Kb);for(a=0;athis.Dc?this.FG()&&(d=Math.min(a,this.La-this.Ce)):athis.fc?this.DG()&&(c=Math.min(b,this.Xa-this.ce)):bthis.fc+this.ce&&e>=b&&e=a+this.ce&&fd+this.ce&& (d=f-this.ce)}this.iD(this.Dc,d)}};o.prototype.GG=function(){return this.o2()&&this.fc>0};o.prototype.Cda=function(){if(this.FG()){for(var a=Math.max(0,this.La-this.Ce),b=Math.min(a,this.Dc+this.Ce*0.5),d=a=Math.min(a,this.Dc+this.Ce),c=this.Oa().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var e=f.ca;e+f.Ba()>this.Dc+this.Ce&&e>=b&&e=a+this.Ce&&fd+this.Ce&&(d=f-this.Ce)}this.iD(d,this.fc)}};o.prototype.EG=function(){return this.n2()&&this.Dc>0};o.prototype.iD=function(a,b){this.Th=this.Dc!=a;this.Uh=this.fc!=b;this.Xm();this.Er=new l("cubic_in_out",[new q("hScrollPosition",this.Dc,a),new q("vScrollPosition",this.fc,b)],500);j.Ma(this.fP,this)}; o.prototype.o2=function(){return this.$m&&this.ce0&&this.fc>0||a<0&&this.fc25){this.Th=this.Oq;this.Uh=this.$m;this.Xm()}if(this.Th||this.Uh){this.Dc=this.Dc-b;this.fc=this.fc-d;this.uq=a.pageX;this.vq=a.pageY;this.jp();this.csa()}};o.prototype.T2=function(){this.Ua().unbind(e.Lc, this.S2,this);this.Ua().unbind(e.cc,this.T2,this);this.BS=z;this.Xm();var a=Math.max(Math.abs(this.dQ/0.001),Math.abs(this.eQ/0.001));this.Er=new l("linear",[new q("hScrollPosition",this.Dc,this.Dc-0.5*this.dQ*a),new q("vScrollPosition",this.fc,this.fc-0.5*this.eQ*a)],a);j.Ma(this.fP,this)};o.prototype.Qla=function(){this.bQ=this.uq;this.cQ=this.vq};o.prototype.csa=function(){var a=(new Date).getTime(),b=a-this.Q2;if(b>10){this.Q2=a;this.dQ=(this.uq-this.bQ)/b;this.eQ=(this.vq-this.cQ)/b;this.bQ= this.uq;this.cQ=this.vq}};o.prototype.fP=function(a){if(this.Er&&!this.Er.Je()&&(this.Th||this.Uh)){this.Er.eb(a);if(this.Th){this.Dc=this.Er.wb("hScrollPosition");if(this.Dc<0||this.Dc>this.La-this.Ce)this.Th=z}if(this.Uh){this.fc=this.Er.wb("vScrollPosition");if(this.fc<0||this.fc>this.Xa-this.ce)this.Uh=z}this.jp();j.Ma(this.fP,this)}else{this.Uh=this.Th=z;this.Er=r;this.Xm()}};o.prototype.jp=function(){this.Dc=this.Oq?Math.max(0,Math.min(this.La-this.Ce,this.Dc)):0;this.fc=this.$m?Math.max(0, Math.min(this.Xa-this.ce,this.fc)):0;this.Uj().Fa(this.Dc);this.Vj().Fa(this.fc);this.Pa().xxa(this.Dc);this.Pa().tya(this.fc);this.xh();if(this.b8!=this.Dc||this.c8!=this.fc){this.b8!==m&&this.c8!==m&&this.trigger(new d(e.nm));this.b8=this.Dc;this.c8=this.fc}};o.prototype.Xm=function(){var a;a=this.get("scrollBarVisible")==g.ALWAYS?p:this.Yj?this.Th||this.Uh||this.BS:this.Th||this.Uh||this.HS;this.Uj().$e(this.Oq&&a);this.Vj().$e(this.$m&&a);this.xh()};o.prototype.Ia=function(){k.prototype.Ia.call(this); if(!this.uia){this.uia=p;if(this.Yj)this.bind(e.xb,this.R2,this);else{this.bind(e.xb,this.tia,this);this.bind(e.tc,this.xia,this);this.bind(e.Ib,this.wia,this);this.bind(e.Yp,this.via,this)}}};o.prototype.ga=function(){if(this.n("overflow")){this.fJ=this.k("overflow");this.p("overflow");this.Jc()}if(this.n("scrollBarColor")){this.Uj().rz(this.k("scrollBarColor"));this.Vj().rz(this.k("scrollBarColor"));this.p("scrollBarColor")}if(this.n("scrollBarWidth")){this.Uj().mF(this.k("scrollBarWidth"));this.Vj().mF(this.k("scrollBarWidth")); this.p("scrollBarWidth")}if(this.n("scrollBarMargin")||this.n("scrollBarVerticalMargin")||this.n("scrollBarHorizontalMargin")){var a=this.k("scrollBarHorizontalMargin","scrollBarMargin"),b=this.k("scrollBarVerticalMargin","scrollBarMargin");this.Uj().Nda(a);this.Uj().Zda(b);this.Vj().Nda(a);this.Vj().Zda(b);this.p("scrollBarMargin");this.p("scrollBarVerticalMargin");this.p("scrollBarHorizontalMargin")}if(this.n("scrollBarOpacity")){this.Uj().yj(this.k("scrollBarOpacity"));this.Vj().yj(this.k("scrollBarOpacity")); this.p("scrollBarOpacity")}k.prototype.ga.call(this)};o.prototype.ui=function(){k.prototype.ui.call(this);this.esa();this.rsa();this.psa();this.Xm();this.xh()};o.prototype.esa=function(){for(var a=0,b=0,d=0,c=0,f=this.Oa(),e=0;ethis.Ce||this.Xa>this.ce;if(this.fJ==f.nm){this.Oq=this.Ce"));break;default:b["line-height"]="normal";this.jj.text(this.k("text")); this.jj.html(this.jj.html().split(" ").join(" "))}this.p("direction");this.p("text");setTimeout(function(){this.Va();this.Jc()}.bind(this),0)}if(this.n("fontFamily")){a=this.k("fontFamily");e(a).isString()||(a="");b.fontFamily=i.Zr(a);this.p("fontFamily");this.Va();this.Jc()}if(this.n("fontSize")){a=this.k("fontSize");e(a).isNumber()?a=a+"px":e(a).isString()||(a="");b.fontSize=a;this.p("fontSize");this.Va();this.Jc()}if(this.n("fontColor")){a=this.k("fontColor");e(a).isString()||(a="");b.color= a;this.p("fontColor")}if(this.n("fontWeight")){a=this.k("fontWeight");switch(a){case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":case "normal":break;default:a="normal"}b.fontWeight=a;this.p("fontWeight");this.Va();this.Jc()}if(this.n("fontStyle")){a=this.k("fontStyle");switch(a){case "italic":case "normal":break;default:a="normal"}b.fontStyle=a;this.p("fontStyle");this.Va();this.Jc()}if(this.n("textDecoration")){a= this.k("textDecoration");switch(a){case "underline":case "overline":case "line-through":case "none":break;default:a="none"}b.textDecoration=a;this.p("textDecoration");this.Va();this.Jc()}if(this.n("horizontalAlign")){this.Jc();this.p("horizontalAlign")}if(this.n("verticalAlign")){this.Jc();this.p("verticalAlign")}a=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(e(a).any(function(a){return this.n(a)},this)){var d={};e(a).each(function(a){d[a]= this.k(a);this.p(a)},this);b["-moz-text-shadow"]=b["-webkit-text-shadow"]=b["text-shadow"]=[d.textShadowHorizontalLength+"px",d.textShadowVerticalLength+"px",d.textShadowBlurRadius+"px","rgba("+parseInt("0x"+d.textShadowColor.substr(1,2))+", "+parseInt("0x"+d.textShadowColor.substr(3,2))+", "+parseInt("0x"+d.textShadowColor.substr(5,2))+", "+d.textShadowOpacity+")"].join(" ");a=d.textShadowVerticalLength==0&&this.k("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(d.textShadowHorizontalLength, -d.textShadowVerticalLength)/Math.PI)*45;b.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*d.textShadowOpacity).toString(16)).slice(-2)+d.textShadowColor.substr(1,6)+",direction="+a+")";this.Pa().tz((d.textShadowHorizontalLength>0||d.textShadowVerticalLength>0||d.textShadowBlurRadius>0)&&d.textShadowOpacity>0)}this.zV(b);k.prototype.ga.call(this)};a.prototype.ui=function(){var a={left:"auto",right:"auto",top:"auto",bottom:"auto"};switch(this.k("horizontalAlign")){case f.oa:a.left= "0";break;case f.Ka:this.Le();a.left=this.Gd()-b(this)+"px";break;case f.Kc:this.Le();a.left=Math.max(0,Math.round((this.Gd()-b(this))*0.5))+"px"}switch(this.k("verticalAlign")){case f.kb:a.top="0";break;case f.jb:this.Le();a.top=this.Fd()-this.dD.clientHeight+"px";break;case f.rc:this.Le();a.top=Math.max(0,Math.round((this.Fd()-this.dD.clientHeight)*0.5))+"px"}this.zV(a)};a.prototype.zV=function(a){var b=this.dD.style,d;for(d in a)b[d]=a[d]};var n=function(){function a(){!e&&d()&&(e=setTimeout(function(){e= r;var d=(new Date).getTime()-5E3,c;for(c in f){var i=f[c];i.timestampthis.HP;)this.ed.pop().cancel();if(b){var e=this.Hh,i=function(){b.call(d||window,e.qe(),e.$c(),e.Nd())};this.Hh.yp()?i():this.Hh.bind(f.S,i)}};b.prototype.clear=function(){this.ed.forEach(function(a){a.cancel()});this.Hh=r};a=d.extend(j,function(a){j.call(this);this.Xc("Image");this.HP=a||1;this.OW=z;this.Nh=i.oa;this.NH=z;this.ii=i.kb;this.gL=z;this.Dd=n.NONE;this.VU=z; this.Fx=this.Gx=0;this.rS=this.OT=z;this.Xa=this.La=0;this.co=z;this.aT=this.Oh=this.tb=this.UH=this.TH=r;this.bind(f.yb,this.Ola,this);this.bind(f.md,this.Pla,this)});a.prototype.KR=function(){this.aT=new b(this.HP);this.KR=R("aT");return this.aT};a.prototype.ya=function(){j.prototype.ya.call(this);this.f("horizontalAlign",i.oa);this.f("verticalAlign",i.kb);this.f("scaleMode",n.NONE)};a.prototype.set=function(a,b){if(a=="url"&&this.get("url")!=b){this.OW=p;this.Bc()}j.prototype.set.call(this,a,b)}; a.prototype.sz=function(a){if(this.Nh!=a){this.Nh=a;this.NH=p;this.Bc()}};a.prototype.xz=function(a){if(this.ii!=a){this.ii=a;this.gL=p;this.Bc()}};a.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.VU=p;this.Bc();this.Va()}};a.prototype.Ola=function(){this.co=p;this.Bc()};a.prototype.Pla=function(){this.gaa()};var o={position:"static",cursor:"inherit",display:"inline",verticalAlign:"top",visibility:"hidden","pointer-events":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"none", "-webkit-user-select":"none","touch-callout":"none","-webkit-touch-callout":"none"};k.browser()==k.wi&&k.Wa()&&(o.transform="translate3d(0,0,0)");a.prototype.O1=function(a,b,d){this.Gx=b?b:0;this.Fx=d?d:0;if(this.tb){this.tb.remove();this.tb=r}if(this.Oh=a){this.tb=e(this.Oh);l.css(this.Oh,o);this.TH.append(this.tb)}this.OT=this.rS=p;this.Bc();this.Va();this.tb&&this.trigger(f.S)};a.prototype.Ia=function(){j.prototype.Ia.call(this);if(!this.TH){this.UH=document.createElement("div");this.TH=e(this.UH); l.css(this.UH,{position:"static",overflow:"hidden",cursor:"inherit"});this.Pa().append(this.TH)}};a.prototype.Ho=function(){this.Sh=this.Gx+this.ni()+this.qn();this.Rh=this.Fx+this.rn()+this.Sy();this.N5=this.Gx==0&&this.Fx==0?0:this.Gx/this.Fx;this.GB=this.HB=0};a.prototype.ga=function(){if(this.n("scaleMode")){this.rs(this.k("scaleMode"));this.p("scaleMode")}if(this.n("horizontalAlign")){this.sz(this.k("horizontalAlign"));this.p("horizontalAlign")}if(this.n("verticalAlign")){this.xz(this.k("verticalAlign")); this.p("verticalAlign")}if(this.K1())this.co=p;j.prototype.ga.call(this);this.gaa();if(this.hva()){var a=z;if(this.VU||this.OT||this.co){var b=this.Gd(),d=this.Fd(),c=this.Gx,f=this.Fx,e,g;if(c==0||f==0)g=e=0;else switch(this.Dd){case n.NONE:e=c;g=f;break;case n.Mn:e=b;g=d;break;case n.Me:if(c*d>f*b){e=b;g=f*b/c}else{e=c*d/f;g=d}break;case n.lm:if(c*d>f*b){e=c*d/f;g=d}else{e=b;g=f*b/c}break;case n.Qk:e=b;g=f*b/c;break;case n.Wg:e=c*d/f;g=d}if(this.La!=e||this.Xa!=g){this.La=e;this.Xa=g;a=p}this.OT= this.VU=z}if(a||this.co||this.rS){this.gL=this.NH=p;this.Oh&&l.css(this.Oh,{width:this.La+"px",height:this.Xa+"px",visibility:"inherit"});l.css(this.UH,{width:this.Gd()+"px",height:this.Fd()+"px","border-top-left-radius":this.JH(this.rka(),this.h4(),this.f4())+"px","border-top-right-radius":this.JH(this.ska(),this.h4(),this.g4())+"px","border-bottom-left-radius":this.JH(this.pka(),this.e4(),this.f4())+"px","border-bottom-right-radius":this.JH(this.qka(),this.e4(),this.g4())+"px"});this.Va();this.rS= this.co=z}if(this.NH&&this.Oh){switch(this.Nh){case i.oa:l.css(this.Oh,{"margin-left":0,"margin-right":this.Gd()-this.La+"px"});break;case i.Ka:l.css(this.Oh,{"margin-left":this.Gd()-this.La+"px","margin-right":0});break;case i.Kc:l.css(this.Oh,{"margin-left":Math.floor((this.Gd()-this.La)*0.5)+"px","margin-right":Math.ceil((this.Gd()-this.La)*0.5)+"px"})}this.NH=z}if(this.gL&&this.Oh){switch(this.ii){case i.kb:l.css(this.Oh,{"margin-top":0,"margin-bottom":this.Fd()-this.Xa+"px"});break;case i.jb:l.css(this.Oh, {"margin-top":this.Fd()-this.Xa+"px","margin-bottom":0});break;case i.rc:l.css(this.Oh,{"margin-top":Math.floor((this.Fd()-this.Xa)*0.5)+"px","margin-bottom":Math.ceil((this.Fd()-this.Xa)*0.5)+"px"})}this.gL=z}}};a.prototype.gaa=function(){if(this.OW){var a=this.get("url");if(a)this.KR().load(a,this.O1,this);else{this.KR().clear();this.O1(r,0,0)}this.OW=z}};a.prototype.JH=function(a,b,d){if(!a)return 0;var c=0;b&&(c=Math.max(c,b));d&&(c=Math.max(c,d));return Math.max(0,a-c)};return a}); define("ew",["fd","je","fj","iS","jw"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.ya=function(){e.prototype.ya.call(this);this.f("iconURL");this.h("rollOverIconURL",c.v,"iconURL");this.h("pressedIconURL",c.za,"iconURL");this.h("pressedRollOverIconURL",c.Za,"iconURL")};a.prototype.nQ=function(){var a=new d(3);a.set("scaleMode",b.Me);return a};a.prototype.ga=function(){if(this.n("iconURL")){var a=this.k("iconURL");this.Gf.set("url",a);this.Gf.set("visible",a?p:z);this.p("iconURL")}e.prototype.ga.call(this)}; return a});define("ev",["fd","ew","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Button",a).B("BaseButton").L({iconURL:"string",rollOverIconURL:"string",pressedIconURL:"string",pressedRollOverIconURL:"string"}).Ah(["iconURL","rollOverIconURL","pressedIconURL","pressedRollOverIconURL"]);return a}); define("gh",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("angle",0);this.set("rotate",z);this.set("inertia",z)});a.A("CapPanoramaOverlay",b).B("PanoramaOverlay").L({angle:"number",distance:"number",hfov:"number",image:"ImageResource",inertia:"bool",rotate:"bool",useHandCursor:"bool"}).Vb([e.tc,e.Ib,e.Ch,e.zf]).Wf([e.T]);return b}); define("fY",["fd","dT","gh"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("CeilingCapPanoramaOverlay",a).B("CapPanoramaOverlay");return a}); define("bX","dm,jquery.mod,fd,lc,bY,d".split(","),function(a,b,c,e,d,f){a=c.extend(f,function(){f.call(this);this.Xc("Canvas");this.ZQ=p;this.u=r;this.bind(e.yb,this.Qha,this)});a.prototype.Qha=function(){this.lM()};a.prototype.lM=function(){this.ZQ=p;this.xh()};a.prototype.Ia=function(){f.prototype.Ia.call(this);if(!this.u){this.u=b("");this.u.css({position:"absolute",left:0,top:0,cursor:"inherit"});this.Pa().append(this.u)}};a.prototype.ga=function(){this.K1()&&this.lM();f.prototype.ga.call(this)}; a.prototype.Le=function(){if(this.ZQ){this.ZQ=z;var a=this.u.get(0);a.width=this.Gd();a.height=this.Fd();this.Wya()}f.prototype.Le.call(this)};a.prototype.zua=function(){return this.u.get(0).width};a.prototype.yua=function(){return this.u.get(0).height};a.prototype.xua=function(){return this.u.get(0).getContext("2d")};a.prototype.Wya=function(){this.trigger(new d(e.aa))};return a}); define("hC",["fd","lc","fj","iS","bX"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.ui=function(){e.prototype.ui.call(this)};a.prototype.ya=function(){e.prototype.ya.call(this);this.f("iconColor");this.h("rollOverIconColor",c.v,"iconColor");this.h("pressedIconColor",c.za,"iconColor");this.h("pressedRollOverIconColor",c.Za,"iconColor")};a.prototype.nQ=function(){var a=new d;a.bind(b.aa,this.rea,this,p);return a};a.prototype.ga=function(){this.n("iconColor")&&(this.Gf.lM(), this.p("iconColor"));e.prototype.ga.call(this)};a.prototype.Ika=function(){return this.k("iconColor")};a.prototype.Jka=function(){return this.Gf.xua()};a.prototype.Lka=function(){return this.Gf.zua()};a.prototype.Kka=function(){return this.Gf.yua()};a.prototype.rea=C();return a}); define("eC",["fd","hC","jP","fj"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.N({horizontalAlign:c.Kc,verticalAlign:c.rc})});a.prototype.ya=function(){b.prototype.ya.call(this);this.f("iconLineWidth");this.h("rollOverIconLineWidth",e.v,"iconLineWidth");this.h("pressedIconLineWidth",e.za,"iconLineWidth");this.h("pressedRollOverIconLineWidth",e.Za,"iconLineWidth")};a.prototype.Ska=function(){return this.k("iconLineWidth")};a.prototype.ga=function(){this.n("iconLineWidth")&&(this.Gf.lM(), this.p("iconLineWidth"));b.prototype.ga.call(this)};a.prototype.rea=function(){var a=this.Jka(),b=this.Ika(),c=this.Lka(),e=this.Kka(),i=this.Ska();a.clearRect(0,0,c,e);a.lineWidth=i||1;a.strokeStyle=b||"#000000";a.beginPath();a.moveTo(0,0);a.lineTo(c,e);a.moveTo(0,e);a.lineTo(c,0);a.closePath();a.stroke()};return a}); define("gY",["fd","eC","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("CloseButton",a).B("BaseButton").L({iconColor:"color",iconLineWidth:"number",rollOverIconColor:"color",rollOverIconLineWidth:"number",pressedIconColor:"color",pressedIconLineWidth:"number",pressedRollOverIconColor:"color",pressedRollOverIconLineWidth:"number"});return a}); define("hF",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("CookiesPolicy",b).B("Object").L({url:"string",geographicArea:"or[array[string], string]"}).Ah(["url"]);return b}); define("iT","require,dm,iE,fd,kJ,dT".split(","),function(a){a("dm");var b=a("iE"),c=a("fd"),e=a("kJ"),a=a("dT"),c=c.extend(e,function(){e.call(this)});a.A("Container",c).B("UIComponent").L({children:"array[UIComponent]",contentOpaque:"bool",childrenInteractionEnabled:"bool",creationPolicy:"enum[inAdvance, delayed]",layout:"enum[absolute, vertical, horizontal]",gap:"number",horizontalAlign:"enum[center, left, right]",overflow:"enum[scroll, hidden, visible]",scrollBarColor:"color",scrollBarWidth:"number", scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",verticalAlign:"enum[bottom, middle, top]"}).Rg({scrollTo:function(a,b){e.prototype.scrollTo.call(this,a,b)},scrollIntoView:function(a){b.Ev(function(){e.prototype.scrollIntoView.call(this,a)}.bind(this))}});return c}); define("iI",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("dT"),a=b.extend(c,function(){c.call(this);this.M=r});e.A("PanoramaFrame",a).B("Object").L({thumbnailUrl:"string",snapshots:"array[PanoramaSnapshot]",overlays:"array[PanoramaOverlay]"}).Ah(["thumbnailUrl"]);a.prototype.get=function(a,b){switch(a){case "overlays":return this.MR();case "hfov":case "vfov":case "pitch":case "flipImageHorizontally":if(this.M)return this.M.get(a,b)}return c.prototype.get.call(this,a,b)};a.prototype.MR= function(){var a=c.prototype.get.call(this,"overlays");a||(a=[]);return this.xV(a)};a.prototype.xV=function(a){if(this.ly===m||this.lI!=a){var b=function(a){return e.ob("PopupPanoramaOverlay",a)},c=function(a){return e.ob("LensFlarePanoramaOverlay",a)};this.lI=a;this.ly=[].concat(a.filter(function(a){return!(b(a)||c(a))}),a.filter(c),a.filter(b))}return this.ly};a.prototype.ota=P("M");a.prototype.Vy=R("M");a.prototype.yh=S(z);return a}); define("kR",["require","fd","dT","iI"],function(a){var b=a("fd"),c=a("dT"),e=a("iI"),a=b.extend(e,function(){e.call(this)});c.A("CubicPanoramaFrame",a).B("PanoramaFrame").L({cube:"ImageResource",stereoCube:"ImageResource",front:"ImageResource",left:"ImageResource",back:"ImageResource",right:"ImageResource",top:"ImageResource",bottom:"ImageResource"});return a}); define("gq",["require"],function(){return{"ar-ar":{mute:"\u062a\u0639\u0637\u064a\u0644 \u0627\u0644\u0635\u0648\u062a","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0633\u062d\u0628 \u0648\u0627\u0644\u0625\u0641\u0631\u0627\u062c", accept:"\u0642\u0628\u0648\u0644",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0646\u0642\u0631 \u0648\u0627\u0644\u062a\u062d\u0631\u0643", yes:"\u0646\u0639\u0645 \u0641\u0639\u0644\u0627","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 \u0645\u0644\u0626 \u0644\u0644\u0634\u0627\u0634\u0629",no:"\u0644\u0627","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"\u062a\u0633\u062a\u062e\u062f\u0645 \u0635\u0641\u062d\u0629 \u0627\u0644\u0648\u064a\u0628 \u0647\u0630\u0647 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 \u0644\u062c\u0645\u0639 \u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645. \u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u060c \u064a\u0631\u062c\u0649 \u0632\u064a\u0627\u0631\u0629 \u0633\u064a\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 .", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"\u064a\u0631\u0641\u0636","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a \u0648\u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f", "storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"\u0623\u062f\u062e\u0644 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629", "use-cardboard-v2":"Use Cardboard v2",unmute:"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a\u061f"},"bg-bg":{mute:"\u0417\u0430\u0433\u043b\u0443\u0448\u0430\u0432\u0430\u043d\u0435", "cardboard-v1":"\u0410\u043a\u043e \u043d\u0435 \u0441\u0442\u0435 \u0441\u0438\u0433\u0443\u0440\u043d\u0438 \u043a\u043e\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 Cardboard \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435. \u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0449\u0435 \u043f\u043e\u0433\u043b\u0435\u0434\u043d\u0435\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442\u0430 \u0438 \u0449\u0435 \u0438\u0437\u0447\u0430\u043a\u0430\u0442\u0435, \u0434\u043e\u043a\u0430\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u0442\u043e \u0441\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0430.", "download-tour":"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435 \u043d\u0430 \u0442\u0443\u0440\u0430 \u0437\u0430 \u0432\u044a\u0437\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0436\u0434\u0430\u043d\u0435 \u043e\u0444\u043b\u0430\u0439\u043d","change-to-drag-and-release":"\u041f\u0440\u043e\u043c\u0435\u043d\u0435\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u041f\u043b\u044a\u0437\u0433\u0430\u043d\u0435 \u0438 \u041f\u0443\u0441\u043a\u0430\u043d\u0435", accept:"\u041f\u0440\u0438\u0435\u043c\u0435\u0442\u0435",cancel:"\u041e\u0442\u043a\u0430\u0437","storage-not-provided-bookmark":"\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0442\u043e \u0441\u044a\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0435 \u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e. \u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432 \u043e\u0442\u043c\u0435\u0442\u043a\u0438 \u0438 \u0434\u0430 \u044f \u043f\u0440\u0435\u0437\u0430\u0440\u0435\u0434\u0438\u0442\u0435.", "dont-display-again":"\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u0432\u0430\u0439 \u0442\u0430\u0437\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442\u043d\u043e\u0432\u043e","web-server-required":"\u0422\u043e\u0437\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u0435\u043b\u0435\u043d \u0442\u0443\u0440 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435 \u043f\u0443\u0441\u043d\u0430\u0442 \u043e\u0442 \u043b\u043e\u043a\u0430\u043b\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041c\u043e\u043b\u044f, \u043a\u0430\u0447\u0435\u0442\u0435 \u0433\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u043e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e.\n\u0410\u043a\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0442\u0435, \u0438\u0437\u0442\u0435\u0433\u043b\u0435\u0442\u0435 htm \u0444\u0430\u0439\u043b\u0430 (\u0438\u043b\u0438 \u0446\u044f\u043b\u0430\u0442\u0430 \u043f\u0430\u043f\u043a\u0430 \u043d\u0430 \u0442\u0443\u0440\u0430) \u0432\u044a\u0440\u0445\u0443 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e TourViewer.", download:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435","change-to-click-and-move":"\u041f\u0440\u043e\u043c\u0435\u043d\u0435\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u041a\u043b\u0438\u043a\u0432\u0430\u043d\u0435 \u0438 \u041f\u0440\u0435\u043c\u0435\u0441\u0442\u0432\u0430\u043d\u0435",yes:"\u0434\u0430","delete-downloaded":"\u0418\u0437\u0442\u0440\u0438\u0432\u0430\u043d\u0435","use-safari-for-vr":"\u041f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0432\u0430\u043c\u0435 Safari, \u0437\u0430 \u0434\u0430 \u0440\u0430\u0437\u0433\u043b\u0435\u0434\u0430\u0442\u0435 \u0442\u043e\u0437\u0438 \u0442\u0443\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c VR", "exit-fullscreen":"\u0418\u0437\u043b\u0435\u0437\u0442\u0435 \u043e\u0442 \u0446\u044f\u043b \u0435\u043a\u0440\u0430\u043d",no:"\u043d\u0435","download-failed":"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435\u0442\u043e \u0441\u0435 \u043f\u0440\u043e\u0432\u0430\u043b\u0438","giroscope-disabled-http":"\u0418\u043c\u0430\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f \u0434\u043e \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0447\u0440\u0435\u0437 http, \u0442\u0430\u043a\u0430 \u0447\u0435 \u0434\u043e\u0441\u0442\u044a\u043f\u044a\u0442 \u0434\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0442\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0440\u0435\u0436\u0438\u043c\u044a\u0442 VR \u0441\u0430 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0438, \u043c\u043e\u043b\u044f, \u043e\u0442\u0432\u043e\u0440\u0435\u0442\u0435 \u0433\u043e \u0447\u0440\u0435\u0437 https, \u0437\u0430 \u0434\u0430 \u0433\u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u0442\u0435.", "cookies-notice":"\u0422\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0431\u0438\u0441\u043a\u0432\u0438\u0442\u043a\u0438 \u0437\u0430 \u0441\u044a\u0431\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0430\u043d\u043d\u0438 \u0437\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435\u0442\u043e. \u0417\u0430 \u043f\u043e\u0432\u0435\u0447\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043c\u043e\u043b\u044f, \u043f\u043e\u0441\u0435\u0442\u0435\u0442\u0435 \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043a\u0432\u0438\u0442\u043a\u0438\u0442\u0435 .", "use-cardboard":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 Cardboard","launch-default-browser":"\u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u044a\u0440\u0430 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435","rotate-device":"\u041c\u043e\u043b\u044f \u0437\u0430\u0432\u044a\u0440\u0442\u0435\u0442\u0435 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e", "exit-vr":"\u0418\u0437\u043b\u0438\u0437\u0430\u043d\u0435 \u043e\u0442 \u0440\u0435\u0436\u0438\u043c VR","storage-not-provided-launch-from-desktop":"\u041c\u043e\u043b\u044f, \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u043e\u0431\u0438\u043a\u043e\u043b\u043a\u0430\u0442\u0430 \u043e\u0442 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0430, \u0437\u0430 \u0434\u0430 \u044f \u0438\u0437\u0442\u0435\u0433\u043b\u0438\u0442\u0435.", "disable-measure":"Stop measuring",downloading:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435","cardboard-v2":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Cardboard v2, \u043a\u043e\u0438\u0442\u043e \u0440\u0430\u0437\u043f\u043e\u043b\u0430\u0433\u0430\u0442 \u0441 \u0431\u0443\u0442\u043e\u043d, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u043f\u043e\u0433\u043b\u0435\u0434\u043d\u0435\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442\u0430 \u0438 \u0434\u0430 \u043d\u0430\u0442\u0438\u0441\u043d\u0435\u0442\u0435 \u0431\u0443\u0442\u043e\u043d\u0430, \u0437\u0430 \u0434\u0430 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u0442\u043e \u043c\u0443.", "enable-video-audio-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u0438 \u0430\u0443\u0434\u0438\u043e?",reject:"\u041e\u0442\u0445\u0432\u044a\u0440\u043b\u0435\u0442\u0435",downloaded:"\u0422\u043e\u0437\u0438 \u0442\u0443\u0440 \u0435 \u0438\u0437\u0442\u0435\u0433\u043b\u0435\u043d \u0437\u0430 \u0432\u044a\u0437\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0436\u0434\u0430\u043d\u0435 \u043e\u0444\u043b\u0430\u0439\u043d.","samsung-internet-vr-app-info":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Gear VR, \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 \u0441 \u0442\u043e\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u043b\u0438 Samsung Internet for VR, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0438 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434 \u043d\u0430 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR. \u0422\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u0435 Samsung Internet \u0431\u0440\u0430\u0443\u0437\u044a\u0440 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435.", "samsung-internet-vr-info":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Gear VR, \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 \u0441 \u0442\u043e\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u043b\u0438 Samsung Internet for VR, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0438 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434 \u043d\u0430 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR. \u0421\u0435\u0433\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0441\u043b\u043e\u0436\u0438\u0442\u0435 \u043c\u043e\u0431\u0438\u043b\u043d\u0438\u044f \u0441\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0432 \u043e\u0447\u0438\u043b\u0430\u0442\u0430 \u0437\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043d\u0430 \u0440\u0435\u0430\u043b\u043d\u043e\u0441\u0442.", "enable-video-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u044a\u043f\u044a\u0442 \u0437\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0440\u0435\u0436\u0438\u043c\u044a\u0442 VR \u0441\u0430 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0438 \u0437\u0430 \u0442\u043e\u0437\u0438 \u0441\u0430\u0439\u0442.", "\u0417\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u043c\u043e\u043b\u044f, \u043a\u043b\u0438\u043a\u043d\u0435\u0442\u0435 \u0432\u044a\u0440\u0445\u0443 \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0438 \u0438 \u043f\u0440\u0438\u0435\u043c\u0435\u0442\u0435 \u0438\u0441\u043a\u0430\u043d\u0435\u0442\u043e \u0437\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435."], "storage-not-provided-launch-from-homescreen":"\u041c\u043e\u043b\u044f, \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u043e\u0431\u0438\u043a\u043e\u043b\u043a\u0430\u0442\u0430 \u043e\u0442 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043d\u0438\u044f \u0435\u043a\u0440\u0430\u043d, \u0437\u0430 \u0434\u0430 \u044f \u0438\u0437\u0442\u0435\u0433\u043b\u0438\u0442\u0435.","enter-fullscreen":"\u0412\u043b\u0435\u0437\u0442\u0435 \u0432 \u0446\u044f\u043b \u0435\u043a\u0440\u0430\u043d", "use-cardboard-v2":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 Cardboard v2",unmute:"\u041f\u0443\u0441\u043a\u0430\u043d\u0435 \u0437\u0432\u0443\u043a","enter-vr":"\u0412\u043b\u0435\u0437 \u0432\u044a\u0432 VR \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435","enable-measure":"Start measuring","use-cardboard-info":"\u041c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0432\u0441\u044f\u043a\u0430\u043a\u0432\u0438 \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 Google Cardboard \u043e\u0447\u0438\u043b\u0430, \u0437\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR.", "refresh-downloaded":"\u041e\u0431\u043d\u043e\u0432\u044f\u0432\u0430\u043d\u0435","use-default-cardboard":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435","enable-audio-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0430\u0443\u0434\u0438\u043e?"},"ca-es":{mute:"Silenciar","cardboard-v1":"Si no esteu segurs de quina versi\u00f3 de cartr\u00f3 utilitzeu, seleccioneu el control de punt d'acc\u00e9s per defecte. Despr\u00e9s, simplement veureu un punt d'acc\u00e9s i espereu fins que s'activi l'acci\u00f3.", "download-tour":"Descarregueu la visita virtual per a jugar fora de l\u00ednia","change-to-drag-and-release":"Canvieu el mode de control a Arrossegar i deixeu anar",accept:"Accepta",cancel:"Cancel\u00b7lar","storage-not-provided-bookmark":"S'ha denegat l'emmagatzematge persistent. Proveu de marcar aquesta p\u00e0gina web i torneu-la a carregar.","dont-display-again":"No tornis a mostrar aquesta informaci\u00f3","web-server-required":"Aquesta visita virtual no es pot reproduir des d'una unitat local. Carregueu-lo a Internet i torneu-ho a provar.\nSi ho preferiu, arrossegueu el fitxer htm (o tota la carpeta de la visita virtual) a la icona de l'aplicaci\u00f3 TourViewer.", download:"Descarregar","change-to-click-and-move":"Canvieu el mode de control a Fer clic i desplaceu",yes:"s\u00ed","delete-downloaded":"Suprimeix","use-safari-for-vr":"Recomanem Safari per a visualitzar aquesta visita virtual en mode VR","exit-fullscreen":"Surt de pantalla completa",no:"no","download-failed":"Error de desc\u00e0rrega","giroscope-disabled-http":"Accediu a aquesta p\u00e0gina web a trav\u00e9s de http de manera que el moviment i l\u2019orientaci\u00f3 del dispositiu i el mode VR estan desactivats, accediu-hi mitjan\u00e7ant https per habilitar-les.", "cookies-notice":"Aquesta p\u00e0gina web utilitza cookies per recopilar estad\u00edstiques d\u2019\u00fas. Per obtenir m\u00e9s informaci\u00f3, visiteu la Pol\u00edtica de cookies.","use-cardboard":"Utilitzeu Cardboard","launch-default-browser":"Inicieu el navegador per defecte","rotate-device":"Gireu el dispositiu","exit-vr":"Surt de VR","storage-not-provided-launch-from-desktop":"Torneu a iniciar la visita virtual des de la icona de l'escriptori per a descarregar-la.","disable-measure":"Stop measuring", downloading:"Baixant","cardboard-v2":"Si teniu unes Cardboard v2, que venen amb un bot\u00f3, podeu mirar cap a un punt de vista i pr\u00e9mer el bot\u00f3 per activar-lo.","enable-video-audio-prompt":"Habilitar v\u00eddeo i \u00e0udio?",reject:"Rebutjar",downloaded:"Aquesta visita virtual es descarrega per a reproduir-la fora de l\u00ednia.","samsung-internet-vr-app-info":"Si teniu un auricular Gear VR compatible amb aquest dispositiu i heu instal\u00b7lat Samsung Internet per a VR, tamb\u00e9 podeu utilitzar-lo per visualitzar aquest contingut en VR, heu de fer que Samsung Internet sigui el vostre navegador predeterminat.", "samsung-internet-vr-info":"Si teniu un auricular Gear VR compatible amb aquest dispositiu i heu instal\u00b7lat Samsung Internet per a VR, tamb\u00e9 podeu utilitzar-lo per visualitzar aquest contingut en VR, nom\u00e9s heu de posar el tel\u00e8fon m\u00f2bil als auriculars.","enable-video-prompt":"Activar v\u00eddeo?","giroscope-disabled-safari-request-permission":["Aquest lloc web est\u00e0 desactivat en el moviment i en la direcci\u00f3 o en mode VR del dispositiu.","Per veure correctament aquesta p\u00e0gina web, feu clic a Continuar i accepteu la sol\u00b7licitud de perm\u00eds si se us demana."], "storage-not-provided-launch-from-homescreen":"Torneu a iniciar la visita virtual des de la icona de la pantalla inicial.","enter-fullscreen":"Entra a pantalla completa","use-cardboard-v2":"Utilitzeu Cardboard v2",unmute:"No activa","enter-vr":"Introdu\u00efu contingut de VR","enable-measure":"Start measuring","use-cardboard-info":"Podeu utilitzar qualsevol auricular de Google Cardboard compatible per a visualitzar aquest contingut en VR.","refresh-downloaded":"Actualitzaci\u00f3","use-default-cardboard":"\u00das per defecte", "enable-audio-prompt":"Activar \u00e0udio?"},"da-dk":{mute:"Deaktiver lyd","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Skift kontroltilstand for at tr\u00e6kke og slippe",accept:"Acceptere",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.", "dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"Skift kontroltilstand for at klikke og flytte",yes:"Ja","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Afslut fuldsk\u00e6rm", no:"ingen","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Denne webside bruger cookies til at indsamle brugsstatistikker. For mere information, se venligst Cookiepolitik .","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device", "exit-vr":"Exit VR",reject:"Afvise","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Aktiv\u00e9r lyd og video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Aktiv\u00e9r video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."], "storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Indtast fuldsk\u00e6rm","use-cardboard-v2":"Use Cardboard v2",unmute:"Aktiv\u00e9r lyd","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Aktiv\u00e9r lyd?"},"de-de":{mute:"Deaktiviere Audio", "cardboard-v1":"Wenn Sie sich nicht sicher sind, welche Cardboard-Version Sie verwenden, w\u00e4hlen Sie die Standard-Hotspot-Steuerung. Sie schauen dann einfach auf einen Hotspot und warten, bis die jeweilige Aktion ausgel\u00f6st wird.","download-tour":"Tour zum Offline-Abspielen herunterladen","giroscope-disabled-safari-request-permission":["Der Bewegungs- und Orientierungszugriff, sowie VR Modus Ihres Ger\u00e4ts ist f\u00fcr diese Seite deaktiviert.","Um diese Webseite korrekt anzuzeigen, klicken Sie auf Weiter und akzeptieren Sie die Erlaubnisanfrage, wenn Sie dazu aufgefordert werden."], accept:"Akzeptieren",download:"Download",downloading:"Downloading","dont-display-again":"Diese Info nicht mehr anzeigen","web-server-required":"Diese Virtual Tour kann nicht von einem lokalen Laufwerk abgespielt werden. Laden Sie Ihre Tour ins Internet und versuchen Sie es erneut.\nAlternativ, ziehen Sie die htm Datei (oder den ganzen Tour Ordner) auf das Icon der Tour Viewer App, um die Tour direkt lokal abzuspielen.",cancel:"Abbrechen","change-to-click-and-move":"\u00c4ndern Sie den Steuerungsmodus, um zu klicken und zu drehen", yes:"ja","delete-downloaded":"L\u00f6schen","use-safari-for-vr":"Wir empfehlen Safari, um diese Tour im VR-Modus zu sehen","exit-fullscreen":"Vollbild verlassen",no:"nein","storage-not-provided-bookmark":"Dauerhafte Speicherung verweigert. Versuchen Sie, diese Seite als Lesezeichen zu speichern und erneut zu laden.","download-failed":"Download fehlgeschlagen","giroscope-disabled-http":"Der Bewegungs- und Ausrichtungsszugriff Ihres Ger\u00e4ts ist f\u00fcr diese Webseite deaktiviert. Greifen Sie bitte \u00fcber https darauf zu.", "cookies-notice":"Diese Webseite verwendet Cookies, um Nutzungsstatistiken zu sammeln. Weitere Informationen finden Sie in der Cookie-Richtlinie.","use-cardboard":"Cardboard verwenden","launch-default-browser":"Im Standardbrowser starten","rotate-device":"Bitte drehen Sie Ihr Ger\u00e4t","exit-vr":"VR verlassen",reject:"Ablehnen","disable-measure":"Messung beenden","change-to-drag-and-release":"\u00c4ndern Sie den Steuerungsmodus zu Ziehen und Loslassen","cardboard-v2":"Wenn Sie ein Cardboard v2-Headset haben, das mit einer Taste ausgestattet ist, k\u00f6nnen Sie auf einen Hotspot blicken und die Taste dr\u00fccken, um dessen Aktion auszul\u00f6sen.", "enable-video-audio-prompt":"Video und Audio aktivieren?","storage-not-provided-launch-from-desktop":"Bitte starten Sie die Tour erneut \u00fcber das Desktop-Symbol, um sie herunterzuladen.",downloaded:"Diese Tour ist zum Offline-Abspielen heruntergeladen.","samsung-internet-vr-app-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR anzusehen. Machen Sie dazu Samsung Internet zu Ihrem Standardbrowser.", "samsung-internet-vr-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR zu sehen. Setzen Sie dazu nun das Mobiltelefon auf das Headset.","enable-video-prompt":"Video aktivieren?","storage-not-provided-launch-from-homescreen":"Bitte starten Sie die Tour erneut \u00fcber das Symbol auf dem Startbildschirm, um sie herunterzuladen.","enter-fullscreen":"Vollbildmodus aktivieren", "use-cardboard-v2":"Cardboard v2 verwenden",unmute:"Audio aktivieren","enter-vr":"VR Inhalt eingeben","enable-measure":"Messung beginnen","use-cardboard-info":"Sie k\u00f6nnen jedes kompatible Google Cardboard-Headset verwenden, um diese Inhalte in VR zu sehen.","refresh-downloaded":"Aktualisieren","use-default-cardboard":"Standard verwenden","enable-audio-prompt":"Audio aktivieren?"},"el-gr":{mute:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ae\u03c7\u03bf", "cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03b1\u03c0\u03b5\u03bb\u03b5\u03c5\u03b8\u03b5\u03c1\u03ce\u03c3\u03b5\u03c4\u03b5", accept:"\u0391\u03c0\u03bf\u03b4\u03ad\u03c7\u03bf\u03bc\u03b1\u03b9",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03bc\u03b5\u03c4\u03b1\u03ba\u03b9\u03bd\u03b7\u03b8\u03b5\u03af\u03c4\u03b5", yes:"\u039d\u03b1\u03af","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0388\u03be\u03bf\u03b4\u03bf\u03c2 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03c0\u03bb\u03ae\u03c1\u03b7 \u03bf\u03b8\u03cc\u03bd\u03b7",no:"\u03cc\u03c7\u03b9","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"\u0391\u03c5\u03c4\u03ae \u03b7 \u03b9\u03c3\u03c4\u03bf\u03c3\u03b5\u03bb\u03af\u03b4\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af cookie \u03b3\u03b9\u03b1 \u03c4\u03b7 \u03c3\u03c5\u03bb\u03bb\u03bf\u03b3\u03ae \u03c3\u03c4\u03b1\u03c4\u03b9\u03c3\u03c4\u03b9\u03ba\u03ce\u03bd \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03c9\u03bd \u03c7\u03c1\u03ae\u03c3\u03b7\u03c2. \u0393\u03b9\u03b1 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b5\u03c2 \u03c0\u03bb\u03b7\u03c1\u03bf\u03c6\u03bf\u03c1\u03af\u03b5\u03c2, \u03b5\u03c0\u03b9\u03c3\u03ba\u03b5\u03c6\u03b8\u03b5\u03af\u03c4\u03b5 \u03c4\u03b7\u03bd \u03a0\u03bf\u03bb\u03b9\u03c4\u03b9\u03ba\u03ae cookie .", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"\u0391\u03c0\u03bf\u03c1\u03c1\u03af\u03c0\u03c4\u03c9","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5 \u03ba\u03b1\u03b9 \u03b2\u03af\u03bd\u03c4\u03b5\u03bf;", "storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03b2\u03af\u03bd\u03c4\u03b5\u03bf;","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"\u0395\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03c4\u03b7\u03bd \u03c0\u03bb\u03ae\u03c1\u03b7 \u03bf\u03b8\u03cc\u03bd\u03b7", "use-cardboard-v2":"Use Cardboard v2",unmute:"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5;"}, "en-us":{mute:"Mute","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Change control mode to Drag and Release",accept:"Accept",cancel:"Cancel","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again", "web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",download:"Download","change-to-click-and-move":"Change control mode to Click and Move",yes:"yes","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Exit fullscreen",no:"no","download-failed":"Download failed", "giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"This web page uses cookies to collect usage statistics. For more information, please visit the Cookie Policy.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.", "disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Enable video and audio?",reject:"Reject",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Enable video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."], "storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Enter fullscreen","use-cardboard-v2":"Use Cardboard v2",unmute:"Unmute","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Enable audio?"},"es-es":{mute:"Silenciar", "cardboard-v1":"Si no esta seguro de que versi\u00f3n de Cardboard debe usar escoja la selecci\u00f3n de hotspot por defecto. Solo tendr\u00e1 que apuntar al hotspot y esperar para que se ejecute la acci\u00f3n.","download-tour":"Descargar el tour para reproducirlo sin conexi\u00f3n","change-to-drag-and-release":"Cambiar el modo de control a arrastrar y soltar",accept:"Aceptar","use-cardboard-v2":"Usar Cardboard v2","storage-not-provided-bookmark":"Almacenamiento persistente denagado. Intente a\u00f1adir la p\u00e1gina a los marcadores y recargarla.", "dont-display-again":"No volver a mostrar esta informaci\u00f3n","web-server-required":"Este tour virtual no puede reproducirse desde una unidad local. Por favor s\u00fabalo a internet y pruebe de nuevo.\nSi lo prefiere puede arrastrar el archivo html o la carpeta con el tour sobre el icono de la aplicaci\u00f3n Tour Viewer de su escritorio.",download:"Descargar","change-to-click-and-move":"Cambiar el modo de control a pulsar y mover",yes:"si","delete-downloaded":"Borrar","use-safari-for-vr":"Recomendamos Safari para ver este tour en modo VR", "exit-fullscreen":"Salir de pantalla completa",no:"no","download-failed":"La descarga ha fallado","giroscope-disabled-http":"Est\u00e1 accediendo a esta p\u00e1gina web por http por lo que el acceso al movimiento y la orientaci\u00f3n del dispositivo est\u00e1 deshabilitado, por favor acceda por https.","cookies-notice":"Esta p\u00e1gina usa cookies para recolectar estad\u00edsticas de uso. Para m\u00e1s informaci\u00f3n, visite la Pol\u00edtica de Cookies.","use-cardboard":"Usar Cardboard", "launch-default-browser":"Lanzar en el navegador por defecto","rotate-device":"Por favor, gire el dispositivo","exit-vr":"Salir de VR","storage-not-provided-launch-from-desktop":"Por favor lance el tour desde el escritorio para descargarlo.","disable-measure":"Stop measuring",cancel:"Cancel",downloading:"Descargando","cardboard-v2":"Si tiene unas gafas Cardboard v2, que vienen con un bot\u00f3n, puede apuntar al hotspot y pulsar el bot\u00f3n para que se ejecute su acci\u00f3n.","enable-video-audio-prompt":"\u00bfActivar v\u00eddeo y audio?", reject:"Rechazar",downloaded:"Este tour esta descargado para reproducirlo sin conexi\u00f3n.","samsung-internet-vr-app-info":"Si tiene unas gafas Gear VR compatibles con este dispositivo y tiene instalado Samsung Internet for VR puede usarlo para ver este contenido en VR, necesita hacer Samsung Internet su navegador por defecto.","samsung-internet-vr-info":"Si tiene unas gafas Gear VR compatibles con este dispositivo y tiene instalado Samsung Internet for VR puede usarlo para ver este contenido en VR, solo tiene que poner ahora el dispositivo en las gafas.", "enable-video-prompt":"\u00bfActivar v\u00eddeo?","giroscope-disabled-safari-request-permission":["El acceso al movimiento y la orientaci\u00f3n del dispositivo est\u00e1 deshabiltado para este sitio.","Para ver correctamente la p\u00e1gina por favor pulse Continuar y acepte la petici\u00f3n de permiso si se muestra."],"storage-not-provided-launch-from-homescreen":"Por favor lance el tour desde el icono de la pantalla de inicio para descargarlo.","enter-fullscreen":"Mostrar en pantalla completa", unmute:"Habilitar sonido","enter-vr":"Entrar al contenido VR","enable-measure":"Start measuring","use-cardboard-info":"Puede usar unas gafas compatibles con Google Cardboard para ver este contenido en VR.","refresh-downloaded":"Actualizar","use-default-cardboard":"Usar versi\u00f3n por defecto","enable-audio-prompt":"\u00bfActivar audio?"},"fi-fi":{mute:"Poista \u00e4\u00e4ni k\u00e4yt\u00f6st\u00e4","cardboard-v1":"Mik\u00e4li et ole varma, mit\u00e4 Cardboard-versiota k\u00e4yt\u00e4t, valitse oletusarvoinen hotspot-hallinta. T\u00e4m\u00e4n j\u00e4lkeen katsomalla hotspotia, toiminto k\u00e4ynnistyy.", "download-tour":"Lataa t\u00e4m\u00e4 sis\u00e4lt\u00f6 offline-toistoa varten","change-to-drag-and-release":"Muuta ohjaustilaa vet\u00e4m\u00e4ll\u00e4 ja vapauttamalla",accept:"Hyv\u00e4ksy",download:"Lataa","storage-not-provided-bookmark":"Tallennus ep\u00e4onnistui. Kokeile lis\u00e4t\u00e4 t\u00e4m\u00e4 verkkosivu kirjanmerkkeihin ja suorita lataus uudelleen.","dont-display-again":"\u00c4l\u00e4 n\u00e4yt\u00e4 t\u00e4t\u00e4 ilmoitusta uudelleen","web-server-required":"T\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 ei voi toistaa paikalliselta asemalta. Lataa sis\u00e4lt\u00f6 internet-palvelimelle ja yrit\u00e4 uudelleen.\nVoit my\u00f6s vet\u00e4\u00e4 htm-tiedoston (tai koko kansion) TourViewer-sovelluskuvakkeen p\u00e4\u00e4lle.", cancel:"Sulje","change-to-click-and-move":"Muuta ohjaustilaa klikkaamalla ja siirt\u00e4m\u00e4ll\u00e4",yes:"Kyll\u00e4","delete-downloaded":"Poista","use-safari-for-vr":"Suosittelemme Safari-selainta t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa.","exit-fullscreen":"Sulje koko n\u00e4yt\u00f6n n\u00e4kym\u00e4",no:"Ei","download-failed":"Lataus ep\u00e4onnistui","giroscope-disabled-http":"K\u00e4yt\u00e4t t\u00e4t\u00e4 verkkosivua http:n kautta, joten laitteesi liiketunnistimet sek\u00e4 VR-tila on poistettu k\u00e4yt\u00f6st\u00e4. Ota ne k\u00e4ytt\u00f6\u00f6n siirtym\u00e4ll\u00e4 sivulle https:n kautta.", "cookies-notice":"T\u00e4m\u00e4 verkkosivu k\u00e4ytt\u00e4\u00e4 ev\u00e4steit\u00e4 k\u00e4ytt\u00f6tilastojen ker\u00e4\u00e4miseen. Lis\u00e4tietoja ev\u00e4stek\u00e4yt\u00e4nn\u00f6st\u00e4.","use-cardboard":"K\u00e4yt\u00e4 Cardboardia","launch-default-browser":"K\u00e4ynnist\u00e4 oletusselaimessa","rotate-device":"K\u00e4\u00e4nn\u00e4 laitettasi","exit-vr":"Poistu VR-tilasta",reject:"Hylk\u00e4\u00e4","disable-measure":"Lopeta mittaaminen",downloading:"Ladataan","cardboard-v2":"Mik\u00e4li sinulla on Cardboard v2 -virtuaalilasit, joissa on painike, voit katsoa hotspotia ja aktivoida sen painamalla painiketta.", "enable-video-audio-prompt":"Otetaanko \u00e4\u00e4ni ja video k\u00e4ytt\u00f6\u00f6n?","storage-not-provided-launch-from-desktop":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 ty\u00f6p\u00f6yd\u00e4n kuvakkeesta aloittaaksesi lataamisen.",downloaded:"T\u00e4m\u00e4 sis\u00e4lt\u00f6 on ladattu offline-toistoa varten","samsung-internet-vr-app-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Sinun on lis\u00e4ksi m\u00e4\u00e4ritett\u00e4v\u00e4 Samsung Internet oletusselaimeksi.", "samsung-internet-vr-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Aseta \u00e4lypuhelin virtuaalilaseihin aloittaaksesi.","enable-video-prompt":"Otetaanko video k\u00e4ytt\u00f6\u00f6n?","giroscope-disabled-safari-request-permission":["Laitteesi liiketunnistimen k\u00e4ytt\u00f6oikeus ja VR-tila on poistettu k\u00e4yt\u00f6st\u00e4 t\u00e4ll\u00e4 sivustolla.", "N\u00e4hd\u00e4ksesi t\u00e4m\u00e4n verkkosivun oikein, valitse jatka ja hyv\u00e4ksy lupapyynt\u00f6 pyydett\u00e4ess\u00e4."],"storage-not-provided-launch-from-homescreen":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 kotin\u00e4yt\u00f6n kuvakkeesta aloittaaksesi lataamisen","enter-fullscreen":"Avaa koko n\u00e4yt\u00f6n n\u00e4kym\u00e4","use-cardboard-v2":"K\u00e4yt\u00e4 Cardboard v2:sta",unmute:"Ota \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n","enter-vr":"Siirry VR-tilaan","enable-measure":"Aloita mittaaminen", "use-cardboard-info":"Voit k\u00e4ytt\u00e4\u00e4 mit\u00e4 tahansa yhteensopivia Google Cardboard -virtuaalilaseja katsellaksesi t\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 VR-tilassa.","refresh-downloaded":"P\u00e4ivit\u00e4","use-default-cardboard":"K\u00e4yt\u00e4 oletuksena","enable-audio-prompt":"Otetaanko \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n?"},"fr-fr":{mute:"D\u00e9sactiver l'audio","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","giroscope-disabled-safari-request-permission":["L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour ce site.","Pour voir correctement cette page Web, veuillez cliquer sur Continuer et accepter la demande d'autorisation si elle est affich\u00e9e."],accept:"Accepter",download:"Download",downloading:"Downloading","dont-display-again":"Ne plus afficher cette information","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"Changer le mode de contr\u00f4le pour cliquer et d\u00e9placer",yes:"oui","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Quitter le mode plein \u00e9cran",no:"non","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","download-failed":"Download failed","giroscope-disabled-http":"L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour cette page Web. Veuillez y acc\u00e9der via https.", "cookies-notice":"Cette page Web utilise des cookies pour collecter des statistiques d'utilisation. Pour plus d'informations, veuillez consulter la Politique relative aux cookies.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Rejeter","disable-measure":"Stop measuring","change-to-drag-and-release":"Changer le mode de contr\u00f4le pour faire glisser et rel\u00e2cher","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.", "enable-video-audio-prompt":"Activer l'audio? et la vid\u00e9o?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Activer la vid\u00e9o?","storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Passer en mode plein \u00e9cran","use-cardboard-v2":"Use Cardboard v2",unmute:"Activer l'audio","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default", "enable-audio-prompt":"Activer l'audio?"},"hr-hr":{mute:"nijem","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Promijenite na\u010din upravljanja u povla\u010denje i otpu\u0161tanje",accept:"Prihvatiti",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.", "dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"Promijenite na\u010din upravljanja na Klik i Premjesti",yes:"Da","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Iza\u0111ite s punog zaslona", no:"Ne","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Ova web stranica koristi kola\u010di\u0107e za prikupljanje statistike upotrebe. Za vi\u0161e informacija posjetite Pravila o kola\u010di\u0107ima.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device", "exit-vr":"Exit VR",reject:"Odbiti","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Omogu\u0107iti videozapis i zvuk?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Omogu\u0107ite videozapis?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."], "storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Unesite cijeli zaslon","use-cardboard-v2":"Use Cardboard v2",unmute:"Uklju\u010di mikrofon","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u017delite li omogu\u0107iti zvuk?"}, "hu-hu":{mute:"N\u00e9m\u00edt\u00e1s","cardboard-v1":"Ha nem vagy biztos benne, hogy milyen VR eszk\u00f6zt haszn\u00e1lsz, akkor v\u00e1laszd az alap\u00e9rtelmezettet \u00e9s az egyes hotspot-ok megtekint\u00e9s\u00e9hez csak tartsd ott a jel\u00f6l\u0151t.","download-tour":"T\u00fara let\u00f6lt\u00e9se offline megtekint\u00e9shez","change-to-drag-and-release":"Ir\u00e1ny\u00edt\u00e1s \u00e1t\u00e1ll\u00edt\u00e1sa: megfog \u00e9s mozgat m\u00f3dra",accept:"Elfogad",cancel:"M\u00e9gsem","storage-not-provided-bookmark":"Pr\u00f3b\u00e1lja meg az oldalt megjel\u00f6lni \u00e9s \u00fajrat\u00f6lteni!", "dont-display-again":"Ne mutasd \u00fajra","web-server-required":"Ez a t\u00fara nem j\u00e1tszat\u00f3 le helyi futtat\u00e1ssal, k\u00e9rlek t\u00f6lsd fel az internetre \u00e9s pr\u00f3b\u00e1ld meg \u00fajra\nM\u00e1sik megold\u00e1s, ha a Tourviewer applik\u00e1ci\u00f3ra h\u00fazod a t\u00fara f\u00e1jlt, vagy az azt tartalmaz\u00f3 t\u00fara mapp\u00e1t.",download:"Let\u00f6lt\u00e9s","change-to-click-and-move":"Ir\u00e1ny\u00edt\u00e1s \u00e1t\u00e1ll\u00edt\u00e1sa kattint \u00e9s k\u00f6rben\u00e9z m\u00f3dra", yes:"igen","delete-downloaded":"T\u00f6rl\u00e9s","use-safari-for-vr":"Azt javasoljuk, hogy haszn\u00e1lj Safari b\u00f6ng\u00e9sz\u0151t a VR n\u00e9zet megtekint\u00e9s\u00e9hez","exit-fullscreen":"Kil\u00e9p\u00e9s a teljesk\u00e9perny\u0151 m\u00f3db\u00f3l",no:"nem","download-failed":"Let\u00f6lt\u00e9s sikertelen","giroscope-disabled-http":"Az oldalt https el\u0151taggal sz\u00fcks\u00e9ges megnyitnod ahhoz, hogy a k\u00e9sz\u00fcl\u00e9ked mozg\u00e1s\u00e1t \u00e9rz\u00e9kelni tudja.","cookies-notice":"Ez a weboldal s\u00fctiket haszn\u00e1l a haszn\u00e1lati statisztik\u00e1k gy\u0171jt\u00e9s\u00e9hez. Tov\u00e1bbi inform\u00e1ci\u00f3\u00e9rt l\u00e1togasson el a s\u00fctikre vonatkoz\u00f3 ir\u00e1nyelvekbe.", "use-cardboard":"Cardboard haszn\u00e1lata","launch-default-browser":"Futtat\u00e1s az alap\u00e9rtelmezett b\u00f6ng\u00e9sz\u0151ben","rotate-device":"Forgasd el a telefont!","exit-vr":"Kil\u00e9p\u00e9s a VR m\u00f3db\u00f3l","storage-not-provided-launch-from-desktop":"K\u00e9rlek ind\u00edtsd \u00fajra az oldalt az asztalon tal\u00e1lhat\u00f3 iconra kattintva.","disable-measure":"Stop measuring",downloading:"Let\u00f6lt\u00e9s","cardboard-v2":"Ha Cardboard 2.0 t\u00edpus\u00fa eszk\u00f6zt haszn\u00e1lsz, akkor a kapcsol\u00f3kkal ir\u00e1ny\u00edthatod a t\u00far\u00e1t, kattinthatsz az egyes hotspotokra", "enable-video-audio-prompt":"Hang \u00e9s vide\u00f3 enged\u00e9lyez\u00e9se",reject:"Elutas\u00edt",downloaded:"Let\u00f6ltve offline megtekint\u00e9shez","samsung-internet-vr-app-info":"Ha Samsung Gear VR szem\u00fcveget szeretn\u00e9l haszn\u00e1lni, akkor nyisd meg a Samsung internetb\u00f6ng\u00e9sz\u0151ben a t\u00far\u00e1t.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Vide\u00f3 enged\u00e9lyez\u00e9se","giroscope-disabled-safari-request-permission":["A megjelen\u00edt\u0151 eszk\u00f6z\u00f6d nem adott hozz\u00e1f\u00e9r\u00e9st a mozg\u00e1s \u00e9rz\u00e9kel\u00e9s\u00e9hez ezen az oldalon.","Ahhoz hogy megfelel\u0151en l\u00e1sd az oldalt k\u00e9rlek enged\u00e9lyezd a hozz\u00e1f\u00e9r\u00e9st."],"storage-not-provided-launch-from-homescreen":"Ind\u00edtsd \u00fajra a t\u00far\u00e1t a home ikonra kattintva.","enter-fullscreen":"Teljesk\u00e9perny\u0151", "use-cardboard-v2":"Cardboard 2.0 haszn\u00e1lata",unmute:"N\u00e9m\u00edt\u00e1s kikapcsol\u00e1sa","enter-vr":"VR tartalom megtekint\u00e9se","enable-measure":"Start measuring","use-cardboard-info":"Haszn\u00e1lhatsz b\u00e1rmilyen google cardboard-ot ahhoz, hogy VR m\u00f3dban l\u00e1sd a t\u00far\u00e1t.","refresh-downloaded":"Friss\u00edt\u00e9s","use-default-cardboard":"Alap\u00e9rtelmezett haszn\u00e1lata","enable-audio-prompt":"Hang enged\u00e9lyez\u00e9se"},"id-id":{mute:"Mute","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Change control mode to Drag and Release",accept:"Menerima",cancel:"Cancel","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", download:"Download","change-to-click-and-move":"Change control mode to Click and Move",yes:"yes","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Exit fullscreen",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Halaman web ini menggunakan cookie untuk mengumpulkan statistik penggunaan. Untuk informasi lebih lanjut, silakan kunjungi Kebijakan Cookie.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Enable video and audio?", reject:"Menolak",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Enable video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Enter fullscreen","use-cardboard-v2":"Use Cardboard v2",unmute:"Unmute","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Enable audio?"},"it-it":{mute:"Disabilita audio","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing", "change-to-drag-and-release":"Cambia la modalit\u00e0 di controllo per trascinare e rilasciare",accept:"Accettare",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"Cambia la modalit\u00e0 di controllo per fare clic e spostare",yes:"s\u00ec","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Esci dalla modalit\u00e0 schermo intero",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"Questa pagina web utilizza i cookie per raccogliere statistiche sull'utilizzo. Per ulteriori informazioni, visita la Cookie Policy.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Rifiutare","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.", "enable-video-audio-prompt":"Abilita audio e video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Abilita il video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Entra a schermo intero","use-cardboard-v2":"Use Cardboard v2",unmute:"Abilita audio","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Abilita l'audio?"},"ja-jp":{mute:"\u30df\u30e5\u30fc\u30c8","cardboard-v1":"\u4f7f\u7528\u3057\u3066\u3044\u308bCardboard\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u3092\u6ce8\u8996\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u52d5\u4f5c\u3059\u308b\u307e\u3067\u5f85\u6a5f\u3057\u307e\u3059\u3002\uff08\u4e00\u90e8\u52d5\u4f5c\u3057\u306a\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u6709\u308a\uff09", "download-tour":"\u30aa\u30d5\u30e9\u30a4\u30f3\u518d\u751f\u7528\u30c4\u30a2\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b","change-to-drag-and-release":"\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30e2\u30fc\u30c9\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30ea\u30ea\u30fc\u30b9\u306b\u5909\u66f4",accept:"\u53d7\u3051\u5165\u308c\u308b",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb","storage-not-provided-bookmark":"\u6c38\u7d9a\u7684\u306a\u4fdd\u5b58\u304c\u62d2\u5426\u3055\u308c\u305f\u3002\u3053\u306eWeb\u30da\u30fc\u30b8\u3092\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3057\u3001\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044", "dont-display-again":"\u4eca\u5f8c\u3053\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u306a\u3044","web-server-required":"\u3053\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30c4\u30a2\u30fc\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30c9\u30e9\u30a4\u30d6\u304b\u3089\u518d\u751f\u3067\u304d\u307e\u305b\u3093\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u3001\u3082\u3046\u4e00\u5ea6\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\n\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001htm\u30d5\u30a1\u30a4\u30eb\uff08\u307e\u305f\u306f\u30c4\u30a2\u30fc\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u5168\u4f53\uff09\u3092\u300eTourViewer\u300f\u30a2\u30d7\u30ea\u306e\u30a2\u30a4\u30b3\u30f3\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u307e\u3059", download:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","change-to-click-and-move":"\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30e2\u30fc\u30c9\u3092\u30af\u30ea\u30c3\u30af\uff06\u30e0\u30fc\u30d6\u306b\u5909\u66f4",yes:"\u306f\u3044","delete-downloaded":"\u524a\u9664","use-safari-for-vr":"\u3053\u306e\u30c4\u30a2\u30fc\u3092VR\u30d3\u30e5\u30fc\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3001Safari\u30d6\u30e9\u30a6\u30b6\u306e\u5229\u7528\u3092\u304a\u52e7\u3081\u3057\u307e\u3059","exit-fullscreen":"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u7d42\u4e86\u3059\u308b", no:"\u3044\u3044\u3048","download-failed":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5931\u6557\u3057\u307e\u3057\u305f","giroscope-disabled-http":"\u3053\u306eWeb\u30da\u30fc\u30b8\u306b\u300ehttp\u300f\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3054\u5229\u7528\u7aef\u672b\u306e\u30e2\u30fc\u30b7\u30e7\u30f3\u3068\u753b\u9762\u306e\u5411\u304d\u3078\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u305a\u3001VR\u30e2\u30fc\u30c9\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u300ehttps\u300f\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3057\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044", "cookies-notice":"\u3053\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306fCookie\u3092\u4f7f\u7528\u3057\u3066\u4f7f\u7528\u7d71\u8a08\u3092\u53ce\u96c6\u3057\u307e\u3059\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001Cookie\u30dd\u30ea\u30b7\u30fc\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002","use-cardboard":"Cardboard\u5229\u7528","launch-default-browser":"\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u8d77\u52d5","rotate-device":"\u7aef\u672b\u3092\u56de\u8ee2\u3055\u305b\u3066\u304f\u3060\u3055\u3044", "exit-vr":"VR\u30d3\u30e5\u30fc \u7d42\u4e86","storage-not-provided-launch-from-desktop":"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u30c4\u30a2\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044","disable-measure":"Stop measuring",downloading:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u4e2d","cardboard-v2":"\u30dc\u30bf\u30f3\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u308bCardboard v2\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3092\u304a\u6301\u3061\u306e\u5834\u5408\u306f\u3053\u3061\u3089\u3002", "enable-video-audio-prompt":"\u30d3\u30c7\u30aa\u3068\u97f3\u58f0\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f",reject:"\u62d2\u5426\u3059\u308b",downloaded:"\u3053\u306e\u30c4\u30a2\u30fc\u306f\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u518d\u751f\u3059\u308b\u305f\u3081\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u3059\u308b","samsung-internet-vr-app-info":"\u3053\u306e\u7aef\u672b\u3068\u4e92\u63db\u6027\u306e\u3042\u308bVR\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u6a5f\u5668\u3092\u304a\u6301\u3061\u3067\u3001VR\u7528\u306e\u300eSamsung Internet\u300f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u3002VR\u30d3\u30e5\u30fc\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u969b\u3001\u300eSamsung Internet\u300f\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059", "samsung-internet-vr-info":"\u3053\u306e\u7aef\u672b\u3068\u4e92\u63db\u6027\u306e\u3042\u308bVR\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u6a5f\u5668\u3092\u304a\u6301\u3061\u3067\u3001VR\u7528\u306e\u300eSamsung Internet\u300f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u3002VR\u30d3\u30e5\u30fc\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u969b\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3092\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u306b\u88c5\u7740\u3059\u308b\u3060\u3051\u3067\u3059", "enable-video-prompt":"\u30d3\u30c7\u30aa\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f","giroscope-disabled-safari-request-permission":["\u3054\u5229\u7528\u7aef\u672b\u306e\u30e2\u30fc\u30b7\u30e7\u30f3\u3068\u753b\u9762\u306e\u5411\u304d\u3078\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u305a\u3001VR\u30e2\u30fc\u30c9\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002","\u3053\u306eWeb\u30da\u30fc\u30b8\u3092\u6b63\u3057\u304f\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u300eOK\u300f\u3092\u30af\u30ea\u30c3\u30af\u3057\u300e\u8a31\u53ef\u300f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u5165\u308c\u3066\u304f\u3060\u3055\u3044"], "storage-not-provided-launch-from-homescreen":"\u30db\u30fc\u30e0\u753b\u9762\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u30c4\u30a2\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044","enter-fullscreen":"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3067\u5165\u529b\u3059\u308b","use-cardboard-v2":"Cardboard v2\u5229\u7528",unmute:"\u30df\u30e5\u30fc\u30c8\u89e3\u9664","enter-vr":"VR\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5165\u529b","enable-measure":"Start measuring", "use-cardboard-info":"\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092VR\u30d3\u30e5\u30fc\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u4e92\u63db\u6027\u306e\u3042\u308b\u4efb\u610f\u306eGoogle Cardboard\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3092\u5229\u7528\u3067\u304d\u307e\u3059","refresh-downloaded":"\u66f4\u65b0","use-default-cardboard":"\u30c7\u30d5\u30a9\u30eb\u30c8\u5229\u7528","enable-audio-prompt":"\u97f3\u58f0\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f"},"nb-no":{mute:"Skru av lyd", "cardboard-v1":"Hvis du ikke er sikker, hvilken Cardboard versjon du bruker, velger du standard hotspot-kontrollen. Du vil da bare se p\u00e5 et hotspot og vente til handlingen utl\u00f8ses.","download-tour":"Last ned visningen, s\u00e5 den kan bli sett uten internett","change-to-drag-and-release":"Endre kontrollmodus til Trekk og Slipp",accept:"Aksepterer",cancel:"Avbryt","storage-not-provided-bookmark":"Vedvarende lagring nektet. Pr\u00f8v \u00e5 bokmerke denne nettsiden og laste den inn p\u00e5 nytt.", "dont-display-again":"Ikke vis denne informasjonen igjen","web-server-required":"Denne virtuelle visningen kan ikke spilles av lokalt. Vennligst last den opp til internett, og fors\u00f8k igjen.\ndersom du prefererer det, kan du dra htm filen (eller hele mappen som inneholder visningen) over 'TourViewer' appen.",download:"Last ned","change-to-click-and-move":"Endre kontrollmodus til Klikk og Flytt",yes:"Ja","delete-downloaded":"Slett","use-safari-for-vr":"Vi anbefaler Safari for \u00e5 se p\u00e5 venne visningen i VR modus", "exit-fullscreen":"G\u00e5 ut av full skjerm",no:"Nei","download-failed":"Nedlastning feilet","giroscope-disabled-http":"Du er koblet til denne nettsiden via http. Dermed er enhetens bevegelses- og orienteringstilgang og VR-modus deaktivert. Koble til via https for \u00e5 aktivere denne.","cookies-notice":"Denne websiden bruker informasjonskapsler for \u00e5 samle inn bruksstatistikk. For mer informasjon, bes\u00f8k retningslinjer for informasjonskapsler.","use-cardboard":"Bruk Cardboard", "launch-default-browser":"\u00c5pne i standard nettleser","rotate-device":"Vennligst roter enheten","exit-vr":"G\u00e5 ut av VR","storage-not-provided-launch-from-desktop":"Start turen p\u00e5 nytt fra skrivebordsikonet for \u00e5 laste ned.","disable-measure":"Stop measuring",downloading:"Laster ned","cardboard-v2":"Dersom du har Cardboard versjon 2, hvilket kommer med en knapp, kan du kikke p\u00e5 en klikkbar ting i visningen, og bruke knappen for \u00e5 bruke disse tingene, p\u00e5 samme m\u00e5te som p\u00e5 en laptop eller telefon.", "enable-video-audio-prompt":"Aktivere video og lyd?",reject:"Avvis",downloaded:"Denne visningen er lastet ned, s\u00e5 den kan bli sett uten internett.","samsung-internet-vr-app-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten og har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du m\u00e5 ogs\u00e5 gj\u00f8re Samsung Internet til standard nettleser.","samsung-internet-vr-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten, og du har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du trenger bare \u00e5 sette mobiltelefonen p\u00e5 headsettet n\u00e5.", "enable-video-prompt":"Aktivere video?","giroscope-disabled-safari-request-permission":["Din enhet sin bevegelses- og orienterings tilgang, samt VR modus er deaktivert for denne nettsiden.","For \u00e5 se denne siden korrekt, vennligst klikk p\u00e5 fortsett og godta tillatelsesforesp\u00f8rselen hvis du blir bedt om dette."],"storage-not-provided-launch-from-homescreen":"Start turen p\u00e5 nytt fra startskjermikonet for \u00e5 laste ned.","enter-fullscreen":"G\u00e5 til full skjerm","use-cardboard-v2":"Bruk Cardboard Versjon 2", unmute:"Skru p\u00e5 lyd","enter-vr":"\u00c5pne VR Modus","enable-measure":"Start measuring","use-cardboard-info":"Du kan bruke hvilke some helst Google Cardboard kompatible headsett for \u00e5 se denne visningen i VR.","refresh-downloaded":"Last inn p\u00e5 nytt","use-default-cardboard":"Bruk Standard","enable-audio-prompt":"Aktivere audio?"},"nl-nl":{mute:"Schakel audio uit","cardboard-v1":"Als u niet weet wat voor versie van Cardboard u gebruikt, selecteer dan de default hotspot control. Dan zult u moeten wachten op een hotspot tot er een bepaald actie is gestart.", "download-tour":"Download Tour voor offline afspelen","change-to-drag-and-release":"Verander de besturingsmodus om te slepen en los te laten",accept:"Aanvaarden",download:"Download","storage-not-provided-bookmark":"Aanhoudende inhoud geweigerd. Probeer deze pagina als bookmark op te slaan en te verversen.","dont-display-again":"Niet meer laten zien","web-server-required":"Deze virtuele tour kan niet worden afgespeeld vanaf een lokale schijf. Upload dit alstublieft op het internet. Je kan ook de htm bestand slepen naar het icoon van de TourViewer app.", cancel:"Annuleren","change-to-click-and-move":"Verander de bedieningsmodus om te klikken en te verplaatsen",yes:"Ja","delete-downloaded":"Verwijderen","use-safari-for-vr":"We raden aan om in Safari deze tour te bekijken in VR mode","exit-fullscreen":"Volledig scherm verlaten",no:"Nee","download-failed":"Download mislukt","giroscope-disabled-http":"Jij betreedt deze pagina door http, dus uw toestel's motion en orientation access en VR modus zijn uitgeschakeld. Betreed deze pagina door https om ze weer aan te schakelen.", "cookies-notice":"Deze webpagina maakt gebruik van cookies om gebruiksstatistieken te verzamelen. Raadpleeg het Cookiebeleid voor meer informatie.","use-cardboard":"Gebruik Cardboard","launch-default-browser":"Start op in standaard browser","rotate-device":"Draai uw toestel om, alstublieft","exit-vr":"VR verlaten",reject:"Weigeren","disable-measure":"Stop meten",downloading:"Downloaden","cardboard-v2":"Als u een Cardboard v2 headset heeft, wat met een knop komt, kunt u wachten op een hotspot en een op een knop drukken om een actie te starten.", "enable-video-audio-prompt":"Audio en video inschakelen?","storage-not-provided-launch-from-desktop":"Start de tour alstublieft opnieuw up vanaf het bureaublad om te kunnen downloaden.",downloaded:"Deze tour is gedownload voor offline afspelen.","samsung-internet-vr-app-info":"Als u een Gear VR headset heeft dat werkt met dit toestel en u Samsung Internet voor VR heeft ge\u00efnstalleerd, kunt u dit ook bekijken in VR. U moet alleen Samsung Internet instellen als uw standaard browser.","samsung-internet-vr-info":"Als u een Gear VR headset heeft dat werkt met dit toestel en u Samsung Internet voor VR heeft ge\u00efnstalleerd, kunt u dit ook bekijken in VR, u moet alleen uw mobiele toestel op uw headset zetten.", "enable-video-prompt":"Video inschakelen?","giroscope-disabled-safari-request-permission":["Uw toestel's motion en orientation access en VR modus zijn uitgeschakeld voor deze site..","Om deze pagina goed te kunnen zien, druk op doorgaan en geef toestemming als dat gevraagd wordt."],"storage-not-provided-launch-from-homescreen":"Start de tour alstublieft opnieuw up vanaf het homescherm om te kunnen downloaden.","enter-fullscreen":"Volledig scherm inschakelen","use-cardboard-v2":"Gebruik Cardboard v2", unmute:"Schakel audio in","enter-vr":"Voer VR inhoud in","enable-measure":"Begin meten","use-cardboard-info":"U kunt elk werkend Google Cardboard headset gebruiken om dit te bekijken.","refresh-downloaded":"Verversen","use-default-cardboard":"Standaard gebruiken","enable-audio-prompt":"Audio inschakelen?"},"nn-no":{mute:"Skru av lyd","cardboard-v1":"Hvis du ikke er sikker, hvilken Cardboard versjon du bruker, velger du standard hotspot-kontrollen. Du vil da bare se p\u00e5 et hotspot og vente til handlingen utl\u00f8ses.", "download-tour":"Last ned visningen, s\u00e5 den kan bli sett uten internett","change-to-drag-and-release":"Endre kontrollmodus til Trekk og Slipp",accept:"Aksepterer",cancel:"Avbryt","storage-not-provided-bookmark":"Vedvarende lagring nektet. Pr\u00f8v \u00e5 bokmerke denne nettsiden og laste den inn p\u00e5 nytt.","dont-display-again":"Ikke vis denne informasjonen igjen","web-server-required":"Denne virtuelle visningen kan ikke spilles av lokalt. Vennligst last den opp til internett, og fors\u00f8k igjen.\ndersom du prefererer det, kan du dra htm filen (eller hele mappen som inneholder visningen) over 'TourViewer' appen.", download:"Last ned","change-to-click-and-move":"Endre kontrollmodus til Klikk og Flytt",yes:"Ja","delete-downloaded":"Slett","use-safari-for-vr":"Vi anbefaler Safari for \u00e5 se p\u00e5 venne visningen i VR modus","exit-fullscreen":"G\u00e5 ut av full skjerm",no:"Nei","download-failed":"Nedlastning feilet","giroscope-disabled-http":"Du er koblet til denne nettsiden via http. Dermed er enhetens bevegelses- og orienteringstilgang og VR-modus deaktivert. Koble til via https for \u00e5 aktivere denne.", "cookies-notice":"Denne websiden bruker informasjonskapsler for \u00e5 samle inn bruksstatistikk. For mer informasjon, bes\u00f8k retningslinjer for informasjonskapsler.","use-cardboard":"Bruk Cardboard","launch-default-browser":"\u00c5pne i standard nettleser","rotate-device":"Vennligst roter enheten","exit-vr":"G\u00e5 ut av VR","storage-not-provided-launch-from-desktop":"Start turen p\u00e5 nytt fra skrivebordsikonet for \u00e5 laste ned.","disable-measure":"Stop measuring",downloading:"Laster ned", "cardboard-v2":"Dersom du har Cardboard versjon 2, hvilket kommer med en knapp, kan du kikke p\u00e5 en klikkbar ting i visningen, og bruke knappen for \u00e5 bruke disse tingene, p\u00e5 samme m\u00e5te som p\u00e5 en laptop eller telefon.","enable-video-audio-prompt":"Aktivere video og lyd?",reject:"Avvis",downloaded:"Denne visningen er lastet ned, s\u00e5 den kan bli sett uten internett.","samsung-internet-vr-app-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten og har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du m\u00e5 ogs\u00e5 gj\u00f8re Samsung Internet til standard nettleser.", "samsung-internet-vr-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten, og du har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du trenger bare \u00e5 sette mobiltelefonen p\u00e5 headsettet n\u00e5.","enable-video-prompt":"Aktivere video?","giroscope-disabled-safari-request-permission":["Din enhet sin bevegelses- og orienterings tilgang, samt VR modus er deaktivert for denne nettsiden.","For \u00e5 se denne siden korrekt, vennligst klikk p\u00e5 fortsett og godta tillatelsesforesp\u00f8rselen hvis du blir bedt om dette."], "storage-not-provided-launch-from-homescreen":"Start turen p\u00e5 nytt fra startskjermikonet for \u00e5 laste ned.","enter-fullscreen":"G\u00e5 til full skjerm","use-cardboard-v2":"Bruk Cardboard Versjon 2",unmute:"Skru p\u00e5 lyd","enter-vr":"\u00c5pne VR Modus","enable-measure":"Start measuring","use-cardboard-info":"Du kan bruke hvilke some helst Google Cardboard kompatible headsett for \u00e5 se denne visningen i VR.","refresh-downloaded":"Last inn p\u00e5 nytt","use-default-cardboard":"Bruk Standard", "enable-audio-prompt":"Aktivere audio?"},"pl-pl":{mute:"Wycisz","cardboard-v1":"Je\u015bli nie masz pewno\u015bci, kt\u00f3rej wersji Cardboard u\u017cywasz, wybierz domy\u015blne sterowanie hotspotem. Nast\u0119pnie skieruj wzrok na hotspot i poczekaj na uruchomienie ich dzia\u0142ania.","download-tour":"Pobierz spacer do odtwarzania w trybie offline","change-to-drag-and-release":"Zmie\u0144 tryb na Przeci\u0105gnij i Upu\u015b\u0107",accept:"Zaakceptowa\u0107",cancel:"Anuluj","storage-not-provided-bookmark":"Odmowa zapisu w pami\u0119ci sta\u0142ej. Spr\u00f3buj doda\u0107 stron\u0119 do zak\u0142adek i za\u0142aduj j\u0105 ponownie.", "dont-display-again":"Nie wy\u015bwietlaj tego ponownie","web-server-required":"Nie mo\u017cna odtworzy\u0107 tego spaceru z dysku lokalnego. Prze\u015blij go do internetu i spr\u00f3buj ponownie.\nMo\u017cesz te\u017c przeci\u0105gn\u0105\u0107 plik htm (lub ca\u0142y folder spaceru) na ikon\u0119 aplikacji TourViewer.",download:"Pobierz","change-to-click-and-move":"Zmie\u0144 tryb na to Kliknij i Przenie\u015b",yes:"tak","delete-downloaded":"Usu\u0144","use-safari-for-vr":"Zalecamy Safari, jako przegl\u0105dark\u0119 spacer\u00f3w w trybie VR", "exit-fullscreen":"Wyjd\u017a z trybu pe\u0142nego ekranu",no:"nie","download-failed":"Pobieranie nie powiod\u0142o si\u0119","giroscope-disabled-http":"To jest dost\u0119p za po\u015brednictwem protoko\u0142u http, wi\u0119c dost\u0119p do ruchu i orientacji oraz tryb VR s\u0105 wy\u0142\u0105czone. Prze\u0142\u0105cz si\u0119\u00a0na protok\u00f3\u0142 https, aby je w\u0142\u0105czy\u0107.","cookies-notice":"Ta strona u\u017cywa plik\u00f3w cookie do zbierania statystyk u\u017cytkowania. Aby uzyska\u0107 wi\u0119cej informacji, odwied\u017a Zasady dotycz\u0105ce plik\u00f3w cookie.", "use-cardboard":"U\u017cyj Cardboard","launch-default-browser":"Uruchom w domy\u015blnej przegl\u0105darce","rotate-device":"Obr\u00f3\u0107 urz\u0105dzenie","exit-vr":"Wyjd\u017a z VR","storage-not-provided-launch-from-desktop":"Aby pobra\u0107, uruchom ponownie spacer klikaj\u0105c ikon\u0119 pulpitu.","disable-measure":"Stop measuring",downloading:"Pobieranie","cardboard-v2":"Je\u015bli masz okulary Cardboard v2, kt\u00f3re maj\u0105 przycisk, mo\u017cesz spojrze\u0107 na hotspot i nacisn\u0105\u0107 przycisk, aby uruchomi\u0107 ich dzia\u0142anie.", "enable-video-audio-prompt":"W\u0142\u0105czy\u0107 video i d\u017awi\u0119k?",reject:"Odrzuca\u0107",downloaded:"Spacer jest pobierany do odtwarzania w trybie offline.","samsung-internet-vr-app-info":"Je\u015bli masz okulary zgodne z Gear VR i zainstalowa\u0142e\u015b Samsung Internet for VR, mo\u017cesz je u\u017cy\u0107 do przegl\u0105dania zawarto\u015bci w VR. Musisz w tym przypadku ustawi\u0107 Samsung Internet jako domy\u015bln\u0105 przegl\u0105dark\u0119.","samsung-internet-vr-info":"Je\u015bli masz okulary Gear VR i zainstalowa\u0142e\u015b Samsung Internet for VR, to mo\u017cesz u\u017cy\u0107 ich do przegl\u0105dania zawarto\u015bci w VR. Umie\u015b\u0107 teraz telefon w okularach Gear VR.", "enable-video-prompt":"W\u0142\u0105czy\u0107 video?","giroscope-disabled-safari-request-permission":["Dost\u0119p do funkcji ruchu i orientacji oraz tryb VR s\u0105 wy\u0142\u0105czone dla tej strony.","Aby poprawnie wy\u015bwietli\u0107 stron\u0119, kliknij kontynuuj i zaakceptuj wszystkie zgody."],"storage-not-provided-launch-from-homescreen":"Aby pobra\u0107, uruchom ponownie spacer klikaj\u0105c ikon\u0119 strony g\u0142\u00f3wnej.","enter-fullscreen":"Uruchom pe\u0142ny ekran","use-cardboard-v2":"U\u017cyj Cardboard v2", unmute:"Wy\u0142\u0105cz Wycisz","enter-vr":"Wejd\u017a do VR","enable-measure":"Start measuring","use-cardboard-info":"Do wy\u015bwietlania w VR mo\u017cesz u\u017cy\u0107 oklular\u00f3w zgodnych z Google Cardboard.","refresh-downloaded":"Od\u015bwie\u017c","use-default-cardboard":"U\u017cyj Domy\u015blnych","enable-audio-prompt":"W\u0142\u0105czy\u0107 d\u017awi\u0119k?"},"pt-br":{mute:"Desativar som","cardboard-v1":"Se voc\u00ea n\u00e3o tiver certeza de qual vers\u00e3o do Cardboard est\u00e1 usando, selecione o controle de ponto de acesso padr\u00e3o. Voc\u00ea simplesmente olha para um ponto de acesso e espera at\u00e9 que a a\u00e7\u00e3o seja acionada.", "download-tour":"Download do Tour para reprodu\u00e7\u00e3o offline","change-to-drag-and-release":"Alterar controle para arrastar e soltar",accept:"Aceitar",cancel:"Cancelar","storage-not-provided-bookmark":"Armazenamento persistente negado. Tente marcar esta p\u00e1gina da Web e recarreg\u00e1-la.","dont-display-again":"N\u00e3o exibir essas informa\u00e7\u00f5es novamente","web-server-required":"Este passeio virtual n\u00e3o pode ser reproduzido a partir de uma unidade local. Envie-o para a Internet e tente novamente.\nSe preferir, arraste o arquivo htm (ou toda a pasta do tour) para o \u00edcone do aplicativo TourViewer.", download:"Download","change-to-click-and-move":"Alterar controle para clicar e mover",yes:"sim","delete-downloaded":"Apagar","use-safari-for-vr":"Recomendamos o Safari para ver este passeio no modo VR","exit-fullscreen":"Sair tela cheia",no:"n\u00e3o","download-failed":"Falha no Download","giroscope-disabled-http":"Voc\u00ea est\u00e1 acessando esta p\u00e1gina da Web por meio do http, para que o acesso \u00e0 orienta\u00e7\u00e3o e movimento do dispositivo e o modo VR sejam desativados, acesse-o atrav\u00e9s de https para ativ\u00e1-los.", "cookies-notice":"Esta p\u00e1gina da web usa cookies para coletar estat\u00edsticas de uso. Para obter mais informa\u00e7\u00f5es, visite a Pol\u00edtica de cookies.","use-cardboard":"Use Cardboard","launch-default-browser":"Iniciar no navegador padr\u00e3o","rotate-device":"Por favor, gire seu dispositivo","exit-vr":"Sair do VR","storage-not-provided-launch-from-desktop":"Por favor, reinicie o tour no \u00edcone da \u00e1rea de trabalho para fazer o download.","disable-measure":"Stop measuring", downloading:"Baixando","cardboard-v2":"Se voc\u00ea tiver um fone de ouvido Cardboard v2, que vem com um bot\u00e3o, poder\u00e1 observar um ponto de acesso e pressionar o bot\u00e3o para acionar sua a\u00e7\u00e3o.","enable-video-audio-prompt":"Ativar \u00e1udio e v\u00eddeo?",reject:"Rejeitar",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Voc\u00ea precisa tornar o Samsung Internet o seu padr\u00e3o. browser.", "samsung-internet-vr-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Basta colocar o celular no fone de ouvido agora.","enable-video-prompt":"Ativar v\u00eddeo?","giroscope-disabled-safari-request-permission":["O acesso a movimento e orienta\u00e7\u00e3o do dispositivo e o modo VR est\u00e3o desativados para este site.","Para ver corretamente esta p\u00e1gina da web, clique em continuar e aceite a solicita\u00e7\u00e3o de permiss\u00e3o, se solicitado."], "storage-not-provided-launch-from-homescreen":"Reinicie o tour no \u00edcone da tela inicial para fazer o download.","enter-fullscreen":"Entrar tela cheia","use-cardboard-v2":"Use Cardboard v2",unmute:"Ativar som","enter-vr":"Inserir conte\u00fado VR","enable-measure":"Start measuring","use-cardboard-info":"Voc\u00ea pode usar qualquer fone de ouvido compat\u00edvel do Google Cardboard para visualizar este conte\u00fado em VR","refresh-downloaded":"Atualizar","use-default-cardboard":"Use o padr\u00e3o", "enable-audio-prompt":"Ativar \u00e1udio?"},"pt-pt":{mute:"Desativar som","cardboard-v1":"Se voc\u00ea n\u00e3o tiver certeza de qual vers\u00e3o do Cardboard est\u00e1 usando, selecione o controle de ponto de acesso padr\u00e3o. Voc\u00ea simplesmente olha para um ponto de acesso e espera at\u00e9 que a a\u00e7\u00e3o seja acionada.","download-tour":"Download do Tour para reprodu\u00e7\u00e3o offline","change-to-drag-and-release":"Alterar controle para arrastar e soltar",accept:"Aceitar",cancel:"Cancelar", "storage-not-provided-bookmark":"Armazenamento persistente negado. Tente marcar esta p\u00e1gina da Web e recarreg\u00e1-la.","dont-display-again":"N\u00e3o exibir essas informa\u00e7\u00f5es novamente","web-server-required":"Este passeio virtual n\u00e3o pode ser reproduzido a partir de uma unidade local. Envie-o para a Internet e tente novamente.\nSe preferir, arraste o arquivo htm (ou toda a pasta do tour) para o \u00edcone do aplicativo TourViewer.",download:"Download","change-to-click-and-move":"Alterar controle para clicar e mover", yes:"sim","delete-downloaded":"Apagar","use-safari-for-vr":"Recomendamos o Safari para ver este passeio no modo VR","exit-fullscreen":"Sair tela cheia",no:"n\u00e3o","download-failed":"Falha no Download","giroscope-disabled-http":"Voc\u00ea est\u00e1 acessando esta p\u00e1gina da Web por meio do http, para que o acesso \u00e0 orienta\u00e7\u00e3o e movimento do dispositivo e o modo VR sejam desativados, acesse-o atrav\u00e9s de https para ativ\u00e1-los.","cookies-notice":"Esta p\u00e1gina da web usa cookies para coletar estat\u00edsticas de uso. Para obter mais informa\u00e7\u00f5es, visite a Pol\u00edtica de cookies.", "use-cardboard":"Use Cardboard","launch-default-browser":"Iniciar no navegador padr\u00e3o","rotate-device":"Por favor, gire seu dispositivo","exit-vr":"Sair do VR","storage-not-provided-launch-from-desktop":"Por favor, reinicie o tour no \u00edcone da \u00e1rea de trabalho para fazer o download.","disable-measure":"Stop measuring",downloading:"Baixando","cardboard-v2":"Se voc\u00ea tiver um fone de ouvido Cardboard v2, que vem com um bot\u00e3o, poder\u00e1 observar um ponto de acesso e pressionar o bot\u00e3o para acionar sua a\u00e7\u00e3o.", "enable-video-audio-prompt":"Ativar \u00e1udio e v\u00eddeo?",reject:"Rejeitar",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Voc\u00ea precisa tornar o Samsung Internet o seu padr\u00e3o. browser.","samsung-internet-vr-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Basta colocar o celular no fone de ouvido agora.", "enable-video-prompt":"Ativar v\u00eddeo?","giroscope-disabled-safari-request-permission":["O acesso a movimento e orienta\u00e7\u00e3o do dispositivo e o modo VR est\u00e3o desativados para este site.","Para ver corretamente esta p\u00e1gina da web, clique em continuar e aceite a solicita\u00e7\u00e3o de permiss\u00e3o, se solicitado."],"storage-not-provided-launch-from-homescreen":"Reinicie o tour no \u00edcone da tela inicial para fazer o download.","enter-fullscreen":"Entrar tela cheia","use-cardboard-v2":"Use Cardboard v2", unmute:"Ativar som","enter-vr":"Inserir conte\u00fado VR","enable-measure":"Start measuring","use-cardboard-info":"Voc\u00ea pode usar qualquer fone de ouvido compat\u00edvel do Google Cardboard para visualizar este conte\u00fado em VR","refresh-downloaded":"Atualizar","use-default-cardboard":"Use o padr\u00e3o","enable-audio-prompt":"Ativar \u00e1udio?"},"ru-ru":{mute:"\u0411\u0435\u0437 \u0437\u0432\u0443\u043a\u0430","cardboard-v1":"\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u043a\u0430\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Cardboard \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.", "download-tour":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u0443\u0440 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f","change-to-drag-and-release":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435", accept:"\u041f\u0440\u0438\u043d\u044f\u0442\u044c",download:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","storage-not-provided-bookmark":"\u0412 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0435.", "dont-display-again":"\u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e","web-server-required":"\u042d\u0442\u043e\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0443\u0440 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.\n\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 htm-\u0444\u0430\u0439\u043b (\u0438\u043b\u0438 \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0443\u0440\u0430) \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f TourViewer.", cancel:"\u041e\u0442\u043c\u0435\u043d\u0430","change-to-click-and-move":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0430\u0436\u0430\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435",yes:"\u0434\u0430","delete-downloaded":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","use-safari-for-vr":"\u041c\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c Safari \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0443\u0440\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 VR.", "exit-fullscreen":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",no:"\u043d\u0435\u0442","download-failed":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","giroscope-disabled-http":"\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u043e\u0439 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0447\u0435\u0440\u0435\u0437 http, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0440\u0435\u0436\u0438\u043c VR \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 https, \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445.", "cookies-notice":"\u042d\u0442\u0430 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u044b cookie \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441\u043c. \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 cookie.", "use-cardboard":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cardboard","launch-default-browser":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","rotate-device":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e", "exit-vr":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 VR",reject:"\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c","disable-measure":"\u041f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f",downloading:"\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435","cardboard-v2":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Cardboard v2 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.", "enable-video-audio-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438 \u0430\u0443\u0434\u0438\u043e?","storage-not-provided-launch-from-desktop":"\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0442\u0443\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435..", downloaded:"\u042d\u0442\u043e\u0442 \u0442\u0443\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.","samsung-internet-vr-app-info":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Gear VR, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430\u044f \u0441 \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c Samsung Internet \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.", "samsung-internet-vr-info":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Gear VR, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430\u044f \u0441 \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR, \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0434\u0435\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0443 \u0441\u0435\u0439\u0447\u0430\u0441.", "enable-video-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0436\u0438\u043c VR \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430.", "\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u044d\u0442\u0443 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u00bb \u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e."], "storage-not-provided-launch-from-homescreen":"\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0442\u0443\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435.","enter-fullscreen":"\u0412\u043e\u0439\u0442\u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c", "use-cardboard-v2":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cardboard v2",unmute:"\u0421\u043e \u0437\u0432\u0443\u043a\u043e\u043c","enter-vr":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c VR \u043a\u043e\u043d\u0442\u0435\u043d\u0442","enable-measure":"\u041d\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f","use-cardboard-info":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0443\u044e \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0443 Google Cardboard \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR.", "refresh-downloaded":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","use-default-cardboard":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","enable-audio-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u043e?"},"sk-sk":{mute:"St\u00ed\u0161i\u0165","cardboard-v1":"Ak ste si nie ist\u00ed, ktor\u00fa verziu Cardboardu pou\u017e\u00edvate, vyberte si predvolen\u00e9 ovl\u00e1danie hotspotu. Potom sa jednoducho pozriete na hotspot a po\u010dkajte, k\u00fdm sa akcia nespust\u00ed.", "download-tour":"Stiahnu\u0165 prehliadku na hranie v offline re\u017eime","change-to-drag-and-release":"Zmeni\u0165 re\u017eim ovl\u00e1dania na Presun\u00fa\u0165 a Uvo\u013eni\u0165",accept:"s\u00fahlasi\u0165",cancel:"Zru\u0161i\u0165","storage-not-provided-bookmark":"Trval\u00e9 \u00falo\u017eisko odmietnut\u00e9. Sk\u00faste si t\u00fato webov\u00fa str\u00e1nku ulo\u017ei\u0165 a na\u010d\u00edta\u0165 ju znova.","dont-display-again":"Tieto inform\u00e1cie u\u017e nezobrazova\u0165","web-server-required":"T\u00e1to virtu\u00e1lna prehliadka sa ned\u00e1 prehra\u0165 z lok\u00e1lneho disku. Nahrajte ju na internet a sk\u00faste to znova.\nAk chcete, potiahnite s\u00fabor htm (alebo cel\u00fd prie\u010dinok prehliadky) na ikonu aplik\u00e1cie TourViewer.", download:"Stiahnu\u0165","change-to-click-and-move":"Zmeni\u0165 re\u017eim ovl\u00e1dania na Klikn\u00fa\u0165 a Presun\u00fa\u0165",yes:"\u00e1no","delete-downloaded":"Zmaza\u0165","use-safari-for-vr":"Odpor\u00fa\u010dame pou\u017e\u00edva\u0165 Safari prehliada\u010d pre t\u00fato prehliadku v re\u017eime VR","exit-fullscreen":"Ukon\u010di\u0165 cel\u00fa obrazovku",no:"nie","download-failed":"S\u0165ahovanie zlyhalo","giroscope-disabled-http":"Na t\u00fato webov\u00fa str\u00e1nku pristupujete cez http protokol, preto pr\u00edstup k pohybu a orient\u00e1cii v\u00e1\u0161ho zariadenia a re\u017eim VR s\u00fa deaktivovan\u00e9. Ak ich chcete povoli\u0165, nav\u0161t\u00edvte str\u00e1nku cez https.", "cookies-notice":"T\u00e1to webov\u00e1 str\u00e1nka pou\u017e\u00edva s\u00fabory cookie na zhroma\u017e\u010fovanie \u0161tatist\u00edk pou\u017e\u00edvania. \u010eal\u0161ie inform\u00e1cie n\u00e1jdete v pravidl\u00e1ch pou\u017e\u00edvania s\u00faborov cookie .","use-cardboard":"Pou\u017eite Cardboard okuliare.","launch-default-browser":"Spusti\u0165 v predvolenom prehliada\u010di","rotate-device":"Oto\u010dte svoje zariadenie","exit-vr":"Ukon\u010denie VR","storage-not-provided-launch-from-desktop":"Znovu na\u010d\u00edtajte prehliadku pomocou desktop ikony pre jej stiahnite.", "disable-measure":"Ukon\u010di\u0165 meranie",downloading:"S\u0165ahovanie","cardboard-v2":"Ak m\u00e1te n\u00e1hlavn\u00fa s\u00fapravu Cardboard v2, ktor\u00e1 je dod\u00e1van\u00e1 s tla\u010didlom, m\u00f4\u017eete sa pozrie\u0165 na hotspot a stla\u010den\u00edm tla\u010didla spusti\u0165 akciu.","enable-video-audio-prompt":"Povoli\u0165 video a zvuk?",reject:"Odmietnu\u0165",downloaded:"T\u00e1to prehliadka je stiahnut\u00e1 na hranie v offline re\u017eime.","samsung-internet-vr-app-info":"Ak m\u00e1te Gear VR sl\u00fachadl\u00e1\u00e1 kompatibiln\u00e9 s t\u00fdmto zariaden\u00edm a m\u00e1te nain\u0161talovan\u00fd program Samsung Internet pre VR, m\u00f4\u017eete ho tie\u017e pou\u017ei\u0165 na prezeranie tohto obsahu vo VR. Mus\u00edte si nastavi\u0165 Samsung Internet ako predvolen\u00fd prehliada\u010d.", "samsung-internet-vr-info":"Ak m\u00e1te Gear VR sl\u00fachadl\u00e1 kompatibiln\u00e9 s t\u00fdmto zariaden\u00edm a m\u00e1te nain\u0161talovan\u00fd program Samsung Internet pre VR, m\u00f4\u017eete ho tie\u017e pou\u017ei\u0165 na prezeranie tohto obsahu vo VR. Sta\u010d\u00ed teraz vlo\u017ei\u0165 mobiln\u00fd telef\u00f3n do n\u00e1hlavnej s\u00fapravy.","enable-video-prompt":"Povoli\u0165 video?","giroscope-disabled-safari-request-permission":["Pre t\u00fato str\u00e1nku s\u00fa pr\u00edstup k pohybu a orient\u00e1cii v\u00e1\u0161ho zariadenia a re\u017eim VR deaktivovan\u00e9.", "Aby ste korektne videli t\u00fato webov\u00fa str\u00e1nku, pros\u00edm kliknite pokra\u010dova\u0165 a akceptujte po\u017eadovan\u00e9 povolenie."],"storage-not-provided-launch-from-homescreen":"Znovu na\u010d\u00edtajte prehliadku pomocou ikony na ploche pre jej stiahnite.","enter-fullscreen":"Prejs\u0165 na cel\u00fa obrazovku","use-cardboard-v2":"Pou\u017eite Cardboard v2",unmute:"Zapn\u00fa\u0165 zvuk","enter-vr":"Vlo\u017ei\u0165 VR obsah","enable-measure":"Za\u010da\u0165 meranie","use-cardboard-info":"Na zobrazenie tohto obsahu vo VR m\u00f4\u017eete pou\u017ei\u0165 \u013eubovo\u013en\u00fa kompatibiln\u00fa n\u00e1hlavn\u00fa s\u00fapravu Google Cardboard.", "refresh-downloaded":"Obnovi\u0165","use-default-cardboard":"Pou\u017ei\u0165 predvolen\u00e9","enable-audio-prompt":"Povoli\u0165 zvuk?"},"sv-se":{mute:"Inaktivera ljud","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u00c4ndra kontrolll\u00e4ge f\u00f6r att dra och sl\u00e4ppa", accept:"Acceptera",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u00c4ndra kontrolll\u00e4ge f\u00f6r att klicka och flytta", yes:"ja","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Avsluta fullsk\u00e4rmen",no:"Nej","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Denna webbsida anv\u00e4nder cookies f\u00f6r att samla in anv\u00e4ndningsstatistik. F\u00f6r mer information, bes\u00f6k Cookie Policy.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Avvisa","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Aktivera ljud och video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.", downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Aktivera video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Ange fullsk\u00e4rm","use-cardboard-v2":"Use Cardboard v2",unmute:"Aktivera ljud","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Aktivera ljud?"},"tr-tr":{mute:"Sesi devre d\u0131s\u0131 b\u0131rakmak","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing", "change-to-drag-and-release":"S\u00fcr\u00fckleyip b\u0131rakmak i\u00e7in kontrol modunu de\u011fi\u015ftirin",accept:"Kabul etmek",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"T\u0131klamak ve ta\u015f\u0131mak i\u00e7in kontrol modunu de\u011fi\u015ftirin",yes:"evet","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Tam ekrandan \u00e7\u0131k",no:"hay\u0131r","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"Bu web sayfas\u0131, kullan\u0131m istatistiklerini toplamak i\u00e7in tan\u0131mlama bilgileri kullan\u0131r. Daha fazla bilgi i\u00e7in l\u00fctfen \u00c7erez Politikas\u0131n\u0131 ziyaret edin.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Reddet","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.", "enable-video-audio-prompt":"Ses ve video etkinle\u015ftirilsin mi?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Video aktif edilsin mi?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Tam ekran yap","use-cardboard-v2":"Use Cardboard v2",unmute:"Sesi etkinle\u015ftir","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Ses aktif edilsin mi?"},"uk-ua":{mute:"Mute","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing", "change-to-drag-and-release":"Change control mode to Drag and Release",accept:"\u041f\u0440\u0438\u0439\u043c\u0456\u0442\u044c",cancel:"Cancel","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", download:"Download","change-to-click-and-move":"Change control mode to Click and Move",yes:"yes","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Exit fullscreen",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"\u0426\u044f \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0444\u0430\u0439\u043b\u0438 cookie \u0434\u043b\u044f \u0437\u0431\u043e\u0440\u0443 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f. \u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u043e\u0457 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0457 \u0432\u0456\u0434\u0432\u0456\u0434\u0430\u0439\u0442\u0435 \u041f\u043e\u043b\u0456\u0442\u0438\u043a\u0443 \u0449\u043e\u0434\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0456\u0432 cookie.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Enable video and audio?", reject:"\u0412\u0456\u0434\u0445\u0438\u043b\u0438\u0442\u0438",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Enable video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Enter fullscreen","use-cardboard-v2":"Use Cardboard v2",unmute:"Unmute","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Enable audio?"},"zh-cn":{mute:"\u9759\u97f3","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"\u4e0b\u8f7d\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u79bb\u7ebf\u64ad\u653e", "change-to-drag-and-release":"\u5c06\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u4e3a\u201c\u62d6\u653e\u201d",accept:"\u63a5\u53d7",cancel:"\u53d6\u6d88","storage-not-provided-bookmark":"\u88c5\u7f6e\u5185\u6c38\u4e45\u5b58\u50a8\u88ab\u62d2\u7edd\u3002\u5c1d\u8bd5\u5c06\u6b64\u7f51\u9875\u6dfb\u52a0\u4e3a\u4e66\u7b7e\uff0c \u5e76\u91cd\u65b0\u52a0\u8f7d\u3002","dont-display-again":"\u4e0d\u518d\u663e\u793a\u6b64\u4fe1\u606f","web-server-required":"\u6b64\u5168\u666f\u6f2b\u6e38\u65e0\u6cd5\u4ece\u672c\u5730\u9a71\u52a8\u5668\u4e0a\u64ad\u653e\u3002 \u8bf7\u5c06\u5176\u4e0a\u4f20\u5230\u4e92\u8054\u7f51\u670d\u52a1\u5668\uff0c\u7136\u540e\u91cd\u8bd5\u3002\n\u5982\u679c\u9700\u8981\u672c\u5730\u9884\u89c8\uff0c\u53ef\u4ee5\u5c06htm\u6587\u4ef6\uff08\u6216\u5168\u666f\u6f2b\u6e38\u7684\u6574\u4e2a\u6587\u4ef6\u5939\uff09\u62d6\u5230TourViewer\u5e94\u7528\u7a0b\u5e8f\u7684\u56fe\u6807\u4e0a\u3002", download:"\u4e0b\u8f7d","change-to-click-and-move":"\u5c06\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u4e3a\u201c\u5355\u51fb\u5e76\u79fb\u52a8\u201d",yes:"\u662f","delete-downloaded":"\u5220\u9664","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u9000\u51fa\u5168\u5c4f",no:"\u5426","download-failed":"\u4e0b\u8f7d\u5931\u8d25","giroscope-disabled-http":"\u60a8\u6b63\u5728\u901a\u8fc7http(\u672a\u52a0\u5bc6)\u8bbf\u95ee\u6b64\u7f51\u9875\uff0c\u56e0\u6b64\u8bbe\u5907\u7684\u8fd0\u52a8\u548c\u65b9\u5411\u8bbf\u95ee\u6743\u9650\u4ee5\u53caVR\u6a21\u5f0f\u5747\u5df2\u7981\u7528\uff0c\u8bf7\u901a\u8fc7https(\u52a0\u5bc6)\u5bf9\u5176\u8fdb\u884c\u542f\u7528\u3002", "cookies-notice":"\u8be5\u7f51\u9875\u4f7f\u7528cookie\u6765\u6536\u96c6\u4f7f\u7528\u60c5\u51b5\u7edf\u8ba1\u4fe1\u606f\u3002 \u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95eeCookie\u653f\u7b56\u3002","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"\u8bf7\u4ece\u684c\u9762\u70b9\u51fb\u56fe\u6807\uff0c\u91cd\u65b0\u542f\u52a8\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u4e0b\u8f7d\u3002", "disable-measure":"Stop measuring",downloading:"\u6b63\u5728\u4e0b\u8f7d","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u542f\u7528\u89c6\u9891\u548c\u97f3\u9891\uff1f",reject:"\u62d2\u7edd",downloaded:"\u6b64\u5168\u666f\u6f2b\u6e38\u5df2\u4e0b\u8f7d\uff0c\u53ef\u8fdb\u884c\u79bb\u7ebf\u64ad\u653e\u3002","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"\u542f\u7528\u89c6\u9891\uff1f","giroscope-disabled-safari-request-permission":["\u8be5\u7ad9\u70b9\u5df2\u7981\u7528\u8bbe\u5907\u7684\u8fd0\u52a8\u548c\u65b9\u5411\u8bbf\u95ee\u6743\u9650\uff0cVR\u6a21\u5f0f\u4e5f\u88ab\u7981\u7528\u3002", "\u8981\u6b63\u786e\u67e5\u770b\u6b64\u7f51\u9875\uff0c\u8bf7\u5355\u51fb\u7ee7\u7eed\uff0c\u5e76\u5728\u51fa\u73b0\u63d0\u793a\u65f6\u63a5\u53d7\u8bb8\u53ef\u8bf7\u6c42"],"storage-not-provided-launch-from-homescreen":"\u8bf7\u4ece\u4e3b\u5c4f\u5e55\u70b9\u51fb\u56fe\u6807\uff0c\u91cd\u65b0\u542f\u52a8\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u4e0b\u8f7d\u3002","enter-fullscreen":"\u8fdb\u5165\u5168\u5c4f","use-cardboard-v2":"Use Cardboard v2",unmute:"\u53d6\u6d88\u9759\u97f3","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"\u5237\u65b0","use-default-cardboard":"Use Default","enable-audio-prompt":"\u542f\u7528\u97f3\u9891\uff1f"},"zh-tw":{mute:"\u975c\u97f3","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"\u4e0b\u8f09\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u96e2\u7dda\u64ad\u653e", "change-to-drag-and-release":"\u5c07\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u70ba\u201c\u62d6\u653e\u6a21\u5f0f\u201c",accept:"\u63a5\u53d7",cancel:"\u53d6\u6d88","storage-not-provided-bookmark":"\u88dd\u7f6e\u5167\u6c38\u4e45\u5b58\u5132\u88ab\u62d2\u7d55\u3002\u8acb\u5617\u8a66\u5c07\u6b64\u7db2\u9801\u65b0\u589e\u70ba\u66f8\u7c64\uff0c\u4e26\u91cd\u65b0\u8f09\u5165\u3002","dont-display-again":"\u4e0d\u518d\u986f\u793a\u672c\u8a0a\u606f","web-server-required":"\u672c\u865b\u64ec\u5c0e\u89bd\u7121\u6cd5\u5728\u672c\u5730\u96fb\u8166\u4e0a\u64ad\u653e\u3002 \u8acb\u5c07\u5176\u4e0a\u50b3\u5230\u7db2\u969b\u7db2\u8def\u4f3a\u670d\u5668\uff0c\u7136\u5f8c\u91cd\u8a66\u3002\n\u5982\u679c\u9700\u8981\u672c\u5730\u9810\u89bd\uff0c\u8acb\u5c07htm\u6a94\u6848\uff08\u6216\u865b\u64ec\u5c0e\u89bd\u7684\u6574\u500b\u8cc7\u6599\u593e\uff09\u62d6\u653e\u5230TourViewer\u61c9\u7528\u7a0b\u793a\u7684\u5716\u793a\u4e0a\u3002", download:"\u4e0b\u8f09","change-to-click-and-move":"\u5c07\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u70ba\u201c\u9ede\u64ca\u4e26\u79fb\u52d5\u201d",yes:"\u662f","delete-downloaded":"\u522a\u9664","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u9000\u51fa\u5168\u87a2\u5e55",no:"\u5426","download-failed":"\u4e0b\u8f09\u5931\u6557","giroscope-disabled-http":"\u60a8\u6b63\u5728\u901a\u904ehttp(\u672a\u52a0\u5bc6)\u700f\u89bd\u672c\u7db2\u9801\uff0c\u56e0\u6b64\u8a2d\u5099\u7684\u904b\u52d5\u548c\u65b9\u5411\u53d6\u7528\u6b0a\u9650\uff0c\u4ee5\u53caVR\u6a21\u5f0f\u5747\u5df2\u7981\u7528\uff0c\u8acb\u53e6\u901a\u904ehttps(\u52a0\u5bc6)\u7db2\u5740\u5c0d\u5176\u9032\u884c\u555f\u7528\u3002", "cookies-notice":"\u8a72\u7db2\u9801\u4f7f\u7528cookie\u4f86\u6536\u96c6\u4f7f\u7528\u60c5\u6cc1\u7d71\u8a08\u4fe1\u606f\u3002 \u6709\u95dc\u66f4\u591a\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f Cookie\u653f\u7b56\u3002","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"\u8acb\u5f9e\u684c\u9762\u9ede\u64ca\u5716\u793a\uff0c\u91cd\u65b0\u555f\u52d5\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u4e0b\u8f09\u3002", "disable-measure":"Stop measuring",downloading:"\u6b63\u5728\u4e0b\u8f09","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u5141\u8a31\u5f71\u7247\u53ca\u8072\u97f3\u64ad\u653e?",reject:"\u62d2\u7d55",downloaded:"\u865b\u64ec\u5c0e\u89bd\u5df2\u4e0b\u8f09\uff0c\u53ef\u9032\u884c\u96e2\u7dda\u64ad\u653e\u3002","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"\u5141\u8a31\u5f71\u7247\u64ad\u653e?","giroscope-disabled-safari-request-permission":["\u8a72\u7db2\u7ad9\u5df2\u7981\u7528\u60a8\u8a2d\u5099\u7684\u904b\u52d5\u548c\u65b9\u5411\u53d6\u7528\u6b0a\u9650\uff0cVR\u6a21\u5f0f\u4e5f\u88ab\u7981\u7528\u3002", "\u8981\u6b63\u78ba\u67e5\u770b\u672c\u7db2\u9801\uff0c\u8acb\u55ae\u64ca\u7e7c\u7e8c\uff0c\u4e26\u5728\u51fa\u73fe\u63d0\u793a\u6642\u63a5\u53d7\u8a31\u53ef\u8acb\u6c42\u3002"],"storage-not-provided-launch-from-homescreen":"\u8acb\u4e3b\u9801\u9762\u87a2\u5e55\u9ede\u64ca\u5716\u793a\uff0c\u91cd\u65b0\u555f\u52d5\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u4e0b\u8f09\u3002","enter-fullscreen":"\u9032\u5165\u5168\u87a2\u5e55","use-cardboard-v2":"Use Cardboard v2",unmute:"\u53d6\u6d88\u975c\u97f3", "enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"\u91cd\u65b0\u6574\u7406","use-default-cardboard":"Use Default","enable-audio-prompt":"\u5141\u8a31\u8072\u97f3\u64ad\u653e?"}}}); define("lb",["require","fd","gq","jk"],function(a){function b(a){return e[i][a]||e.en[a]||a}var c=a("fd"),e=a("gq"),d=a("jk"),f;for(f in e)e[f.substr(0,2)]=e[f];e.en["giroscope-disabled-safari-toggle-on"]='
Your device\'s motion and orientation access and VR mode are disabled for this site.
\n
To properly see this webpage, please enable it:
\n
    \n
  • Access you device\'s settings: "Settings > Safari > Privacy & Security" and toggle on: "Motion & Orientation Access".
  • \n
  • Refresh the browser.
  • \n
'; e["zh-hk"]=e["zh-mo"]=e["zh-tw"];e.no=e.nn;var g=function(){var a=window.navigator,b=["language","browserLanguage","systemLanguage","userLanguage"],c,f,e=[];(c=d.xn("language"))&&e.push(c.toLowerCase());var i=a.languages;if(Array.isArray(i))for(c=0;c0&&a<1&&this.B9();if(this.Hq){this.Hq.gain.value=a;this.t.volume=1}else this.t.volume=a;this.t.muted=a==0}};b.prototype.Lq=function(){var a=this.t.currentSrc||this.t.children.length&&this.t.children[0].src||"";d.tv(a)&&(a=m);return a};return b});define("fX",["require"],function(){return{Ei:"video",Eea:"audio"}}); define("jX","require,fd,lc,fr,gb,bY,eL,r,jk,gu,fu".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("gb"),f=a("bY"),g=a("eL"),k=a("r"),i=a("jk"),n=a("gu"),j=a("fu"),l=b.extend(g,function(a){g.call(this);this.t=a;this.du=this.du.bind(this);this.Io=this.Io.bind(this);this.Vh=this.Vh.bind(this);this.hu=this.hu.bind(this);this.Eg=this.Eg.bind(this);this.Wh=this.Wh.bind(this);this.Mf=this.Mf.bind(this);this.Hm=this.Hm.bind(this);this.ID=this.ID.bind(this);this.t.addEventListener("ended",this.Vh, p);this.t.addEventListener("pause",this.Wh,z);this.t.addEventListener("stalled",this.Wh,z);this.t.addEventListener("waiting",this.Wh,z);this.t.addEventListener("canplay",this.du,p);this.t.addEventListener("canplaythrough",this.Io,z);this.t.addEventListener("loadedmetadata",this.Eg,p);this.t.addEventListener("play",this.Mf,z);this.t.addEventListener("playing",this.Hm,z);this.t.addEventListener("error",this.hu,z);this.WQ=z;this.m=e.K;this.Mx=this.uf=r;j.bind(c.aa,this.Ssa,this)});l.prototype.clear= function(){if(this.t){this.t.removeEventListener("ended",this.Vh,p);this.t.removeEventListener("pause",this.Wh,z);this.t.removeEventListener("stalled",this.Wh,z);this.t.removeEventListener("waiting",this.Wh,z);this.t.removeEventListener("canplay",this.du,p);this.t.removeEventListener("canplaythrough",this.Io,z);this.t.removeEventListener("loadedmetadata",this.Eg,p);this.t.removeEventListener("play",this.Mf,z);this.t.removeEventListener("error",this.hu,z);this.t=r}};l.prototype.play=function(){this.t.log("PlaybackController", "play");this.Mx=e.R;this.HC()};l.prototype.stop=function(){this.t.log("PlaybackController","stop");this.Mx=e.K;this.HC()};l.prototype.Ie=function(){return this.uf||this.m};l.prototype.qv=function(){return this.t.readyState==this.t.HAVE_NOTHING||this.t.readyState==this.t.HAVE_METADATA||this.t.currentTime===0?z:p};l.prototype.HC=function(){if(!this.uf&&this.Mx){this.uf=this.Mx;this.Mx=r;this.uf==e.R?this.EV():this.DV()}};l.prototype.Ssa=function(){if(j.visible){this.t.log("PlaybackController","visibile changed to true, setting state to "+ this.m);this.uf=this.m;this.uf==e.R?this.EV():this.DV()}else if(!this.t.paused){this.t.log("PlaybackController","paused by visibile changed to false");var a=this.t.pause();a&&a["catch"](this.hu)}};l.prototype.Lq=function(){return this.t.currentSrc||this.t.children.length&&this.t.children[0].src||""};l.prototype.EV=function(){var a=this.Lq();this.iK(a&&!i.tv(a));this.oG=k.browser()==k.wf;if(this.t.paused){this.t.log("PlaybackController","startPlaying calling play");this.t.muted=p;this.t.log("PlaybackController", "this._media.play()");(a=this.t.play())&&a["catch"](this.hu)}else{this.t.log("PlaybackController","startPlaying already playing");this.Mf()}};l.prototype.Hm=function(){this.t.log("PlaybackController","onPlaying event received. Visible: "+j.visible)};l.prototype.Mf=function(){if(this.uf==e.R){this.t.log("PlaybackController","onPlay event received when waiting to play");this.uf=r;this.m=e.R;this.trigger(new f(l.VN));this.HC()}else this.t.log("PlaybackController","onPlay event received. Visible: "+j.visible)}; l.prototype.DV=function(){this.iK(z);this.oG=z;if(this.t.paused){this.t.log("PlaybackController","startPausing already paused");this.Wh()}else{this.t.log("PlaybackController","startPausing calling pause");var a=this.t.pause();a&&a["catch"](this.hu)}};l.prototype.Wh=function(){if(this.uf==e.K){this.t.log("PlaybackController","onPause event received when waiting to stop");this.uf=r;this.m=e.K;this.HC()}else if(j.visible){this.t.log("PlaybackController","onPause event received without calling to pause"); (this.m==e.R&&!this.uf||this.uf==e.R)&&!this.t.hasAttribute("loop")&&!isNaN(this.t.duration)&&this.t.currentTime==this.t.duration&&this.t.duration>0&&this.Vh();this.ID()}else this.t.log("PlaybackController","onPause event received when not visible")};l.prototype.du=function(){this.t.log("PlaybackController","on can play");this.ID()};l.prototype.Io=function(){this.t.log("PlaybackController","can play through");this.ID();this.iK(z)};l.prototype.ID=function(){if(this.F9()){if(this.oG&&this.t.currentTime== 0){this.t.log("PlaybackController","updatePlaying applying ios hack");this.oG=z;try{this.t.currentTime=0.3}catch(a){}}k.browser()!=k.Uv&&this.K8()}};l.prototype.F9=function(){return this.m==e.R&&j.visible&&this.t.paused&&this.t.readyState>=3};l.prototype.K8=function(a){if(!this.L8)if(a){if(this.F9()){this.t.log("PlaybackController","updatePlaying retrying play");this.uf=e.R;this.EV()}}else this.L8=setTimeout(function(){this.L8=r;this.K8(p)}.bind(this),500)};l.prototype.hu=function(){if(this.uf==e.R){this.t.log("PlaybackController", "onError waiting to play");this.uf=r;this.Mx?this.HC():k.browser()==k.wf?this.trigger(new f(l.CN)):this.uf=e.R}};l.prototype.Eg=function(){this.t.log("PlaybackController","on loaded metadata");!isNaN(this.t.duration)&&this.t.currentTime==this.t.duration&&this.t.duration>0&&this.Vh()};l.prototype.Vh=function(){this.t.log("PlaybackController","onEnded");this.oG=z;if(this.m==e.R&&!this.uf||this.uf==e.K){this.t.log("PlaybackController","onEnded finalizing video");this.iK(z);this.uf=e.K;this.DV();this.trigger(new f(l.Dj))}}; l.prototype.iK=function(a){if(this.WQ!=a){this.t.log("PlaybackController","downloading changed to: "+a);(this.WQ=a)?n.Gya(d.I_):n.Fya(d.I_)}};l.CN="deactivated";l.Dj="end";l.VN="play";return l}); define("x",["require","fd","lc","bY","eL"],function(a){var b=a("fd"),c=a("lc");a("bY");var e=a("eL"),a=b.extend(e,function(a){e.call(this);this.Eg=this.Eg.bind(this);this.uT=this.uT.bind(this);this.Kf=this.Kf.bind(this);this.t=a;this.ph=r;this.Mc=[];this.t.addEventListener("loadedmetadata",this.Eg,p);this.t.textTracks.addEventListener("addtrack",this.uT,z)});a.prototype.set=function(a){a&&this.Cga(a)};a.prototype.clear=function(){this.bpa()};a.prototype.rE=function(){var a=this.ph&&this.ph.track.activeCues; a&&(a=Array.prototype.slice.call(a,0));return a||[]};a.prototype.Eg=function(){this.eaa()};a.prototype.uT=function(){this.eaa()};a.prototype.Kf=function(){this.b9(this.ph.track.activeCues)};a.prototype.b9=function(a){a||(a=[]);0==this.Mc.length&&0==a.length||(this.Mc=Array.prototype.slice.call(a),this.trigger(c.xf,this.Mc))};a.prototype.Cga=function(a){this.t.log("TextTracksController","add text track src: "+a);this.ph=document.createElement("track");this.ph.kind="subtitles";this.ph.src=a;this.t.appendChild(this.ph)}; a.prototype.bpa=function(){this.ph&&(this.t.log("TextTracksController","remove text track"),this.ph.track.removeEventListener("cuechange",this.Kf),this.ph.track.mode="disabled",this.ph.src="",this.t.removeChild(this.ph),this.ph=r,this.b9([]))};a.prototype.eaa=function(){for(var a=0;a=this.t.HAVE_ENOUGH_DATA&&this.zx!==m){this.t.log("TimeController","updateCurrentTime when can play through set time to: "+this.zx);try{this.t.currentTime=this.zx}catch(a){}this.zx=m}};g.prototype.fd=function(){this.trigger(new c(g.Kd))};g.prototype.bJ=function(){if(d.yX()&&!d.bca()&&!this.t.paused&&this.t.readyState>= this.t.HAVE_ENOUGH_DATA){var a=(new Date).getTime();this.mI||(this.mI=a);if(this.VS&&a-this.VS>500){this.WV++;this.WV/((a-this.mI)*0.001)>0.4&&d.iya()}this.VS=a}if(this.nG!==m&&this.t.currentTime>this.nG){this.nG=m;try{this.t.currentTime=this.t.currentTime-0.01}catch(b){}}this.fd()};g.prototype.pV=function(a){if(!!this.Iu!=a)if(this.Iu){clearInterval(this.Iu);this.Iu=r}else this.Iu=setInterval(this.fd,16)};g.prototype.Lq=function(){return this.t.currentSrc||this.t.children.length&&this.t.children[0].src|| ""};g.Kd="time update";g.Xf="duration update";return g}); define("iO","require,jquery.mod,fd,gd,r,jk".split(","),function(a){function b(){}a("jquery.mod");var c=a("fd"),e=a("gd"),d=a("r"),a=a("jk");b.Bla=function(){window.MediaSource=window.MediaSource||window.WebKitMediaSource;return window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function"&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')};b.Lla=function(){if(d.browser()==d.wf){var a=d.sv();if(a>=10&&a<11||a>=11.3)return p}return z};b.Cla=function(){return d.browser()== d.xi||d.browser()==d.wf?p:z};var f;b.Laa=function(a){try{f||(f=document.createElement("audio"));return!!f.canPlayType(a).replace(/^no$/,"")}catch(b){}return z};var g;b.Iy=function(a){try{if(!g){g=document.createElement("video");g.setAttribute("webkit-playsinline","true");g.setAttribute("playsinline","true")}return!!g.canPlayType(a).replace(/^no$/,"")}catch(b){}return z};b.uta=function(){return d.browser()==d.wf?d.sv()>=15||e?p:z:p};b.Dla=function(){try{if(document.createElement("canvas").getContext("webgl"))return p}catch(a){}try{if(document.createElement("canvas").getContext("experimental-webgl"))return p}catch(b){}return z}; b.hea=function(a,b,c){if(d.Xd()==d.Hj)if(!c||c>30){if(a<=3168&&b<=1584)return p}else{if(a<=4096&&b<=2048)return p}else if(d.Fca())if(!c||c>30){if(a<=4096&&b<=4096||a<=5760&&b<=5760||a<=5760&&b<=2880||a<=8192&&b<=4096)return p}else{if(a<=5760&&b<=5760||a<=8192&&b<=4096)return p}else if(d.Eca())if(!c||c>30){if(a<=2880&&b<=2880||a<=4096&&b<=2048)return p}else{if(a<=3840&&b<=3840||a<=4096&&b<=4096||a<=5760&&b<=2880||a<=2880&&b<=5760)return p}else if(d.Wa()){if(a<=3840&&b<=2160)return p}else if(a<=4096&& b<=2048)return p;return z};b.Oya=function(a,d){return b.hea(a,d,30)};b.log=function(){c.log("webgl: "+b.WZ);c.log("html5 audio: "+b.kca);c.log("html5 video: "+b.nca)};b.ira=function(){return["webgl:"+b.WZ,"html5audio:"+b.kca,"html5video:"+b.nca].join(" ")};b.mca=b.Laa('audio/ogg; codecs="vorbis"');b.lca=b.Laa("audio/mpeg");b.kca=b.mca||b.lca;b.lY=b.Iy('video/ogg; codecs="theora"');b.uAa=b.Iy('video/mp4; codecs="avc1.42E01E"');b.mY=b.Iy('video/webm; codecs="vp8, vorbis"');b.sva=b.Iy('video/mp4; codecs="hev1"'); b.iM=b.Iy("video/mp4");b.tva=b.Iy("video/quicktime");b.oca=b.Lla();b.Wba=b.Cla();b.kva=b.Wba||b.iM&&b.Bla();b.nca=b.lY||b.iM||b.mY;b.WZ=b.Dla();a.Vf("debug")&&a.Vf("capabilities")&&b.log();b.summary=b.ira();return b}); define("bV",["require","jk"],function(a){function b(){this.pI=this.XS=r;this.bo=[];this.Cm=z;this.$q=m}var c=a("jk");b.prototype.bm=function(a,b){this.XS=c.ts(a);this.pI=b;this.J()};b.prototype.load=function(a,b){var c={};c.call=a;c.context=b||window;this.bo.push(c);this.$q||(this.$q=this.y4());this.J()};b.prototype.yp=function(){return this.$q!==m};b.prototype.J=function(){00};o.prototype.EM=function(a){this.Rf=[a].concat(e(this.Rf).without(a));this.bU()};o.prototype.qX=function(a){this.Rf.push(a);this.bU()};o.prototype.jz=function(a){this.Rf=e(this.Rf).without(a);this.bU()};o.prototype.bU= function(){var a=this.fla();if(o.eca())for(;this.Sm.length0?f.R:f.K);a.forEach(function(a){if(!this.Mka(a)){var c=this.Cka(a.HM());!c&&!a.HM()&&this.Sm.push(c=new b(new l(q.Ei,z)));c&&c.Zya(a)}}.bind(this));this.Dka().forEach(function(a){a.hA.stop()})};o.prototype.fla=function(){return this.Rf.map(function(a,b){var c={};c.index=b;c.Qd=a.fY();c.item=a;return c}).sort(function(a, b){return a.Qd-b.Qd||a.index-b.index}).map(function(a){return a.item})};o.prototype.Yb=function(a){if(this.m!=a){this.m=a;this.trigger(new g(this.m==f.K?d.je:d.Di))}};o.prototype.Cka=function(a){var b=this.Sm.filter(function(a){return a.vY()});if(b.length){if(a){a=b.filter(function(a){return a.oM()});a.length||(a=b.filter(function(a){return a.cN()}))}else{a=b.filter(function(a){return!a.cN()});a.length||(a=b.filter(function(a){return!a.oM()}))}a.length&&(b=a);if(n.browser()==n.xi){b.sort(function(a, b){return b.Ut-a.Ut});return b[Math.min(2,b.length-1)]}return b[0]}return r};o.prototype.Dka=function(){return this.Sm.filter(function(a){return a.vY()})};o.prototype.I4=function(){return this.Sm.filter(function(a){return!a.vY()})};o.prototype.Mka=function(a){for(var b=0;b= 0;o.eca=function(){return t};o.dz=function(){return o.Ef().dz()};o.qX=function(a){o.Ef().qX(a)};o.EM=function(a){o.Ef().EM(a)};o.jz=function(a){o.Ef().jz(a)};o.eo=function(){if(o.wS===r)o.wS=new o;return o.wS};o.Ef=o.eo;o.eo();return o}); define("z","require,fd,bY,eL,lc,fr,kH,cP,jR,fX,bC,V,iO".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("lc"),f=a("fr"),g=a("kH"),k=a("cP"),i=a("jR"),n=a("fX"),j=a("bC"),l=a("V"),q=a("iO"),o=b.extend(e,function(a,b,c){e.call(this);this.pa=a;this.j=b;this.GC=c;this.U=r;this.ZC();this.NI=this.NI.bind(this);this.j.bind(d.D("gain"),this.TB,this,p);this.j.bind(d.D("mp3Url"),this.sl,this,p);this.j.bind(d.D("oggUrl"),this.sl,this,p);this.m=f.K;this.BB=z;this.Ne=this.Kb=0;this.qd=z;this.Tl=1; this.PA=z;this.bx=1;this.Tb=r;this.rm=[]});o.prototype.Ua=R("pa");o.prototype.ic=function(a){if(this.m!=a&&!(a==f.yc&&this.m!=f.R)){this.m=a;if(this.m==f.R){this.Oha();j.EM(this)}else this.Oqa();this.gW()}};o.prototype.Oqa=function(){if(!this.PA){this.PA=p;this.K3=this.j.get("fadeOutTime");this.K3==0?this.a$():this.NI(0)}};o.prototype.NI=function(a){if(!this.Tb||this.bx==0||!this.PA||this.fma())this.a$();else{this.bx=Math.max(0,this.bx-a/this.K3);this.pG();l.Ma(this.NI)}};o.prototype.Oha=function(){this.PA= z;this.bx=1;this.pG()};o.prototype.a$=function(){this.PA=z;this.bx=1;if(this.Tb){j.jz(this);this.m==f.K&&this.oV()}};o.prototype.Ie=R("m");o.prototype.rj=R("Kb");o.prototype.Kp=function(a){this.Ne=a;this.Tb&&this.Tb.play(this.pa,this.U,this.Ne)};o.prototype.qj=R("Ne");o.prototype.Np=function(a){this.Tl=a;this.pG()};o.prototype.pG=function(){this.Tb&&this.Tb.Np(this.Tl*this.bx)};o.prototype.Id=function(a){this.qd=a;this.Tb&&this.Tb.Id(a)};o.prototype.Kv=function(a){this.BB=a;this.Tb&&this.Tb.Kv(a)}; o.prototype.HM=function(){return!this.qd};o.prototype.re=function(){return n.Eea};o.prototype.fY=R("GC");o.prototype.IX=function(a){this.Tb=a;setTimeout(function(){this.Tb&&this.Tb.bind(g.Dj,this.SB,this,p)}.bind(this),0);this.ZC();this.Tb.bind(g.Kd,this.fd,this,p);this.Tb.bind(g.Xf,this.Zi,this,p);this.Tb.bind(d.xf,this.Kf,this,p);this.Tb.Id(this.qd);this.pG();this.Tb.Kv(this.BB);this.Tb.play(this.pa,this.U,this.Ne)};o.prototype.EY=function(){this.Ne=this.Tb.qj();this.Tb.unbind(g.Dj,this.SB,this, p);this.Tb.unbind(g.Kd,this.fd,this,p);this.Tb.unbind(g.Xf,this.Zi,this,p);this.Tb.unbind(d.xf,this.Kf,this,p);this.Tb=r};o.prototype.clear=function(){this.ic(f.K);if(this.j){this.j.unbind(d.D("gain"),this.TB,this,p);this.j.unbind(d.D("mp3Url"),this.sl,this,p);this.j.unbind(d.D("oggUrl"),this.sl,this,p);this.j=r}};o.prototype.sl=function(){this.uu&&clearTimeout(this.uu);this.uu=setTimeout(function(){this.uu=r;if(this.Tb){this.U.src=this.Lq(this.j);this.Tb.play(this.pa,this.U,this.Ne)}}.bind(this), 10)};o.prototype.TB=function(){if(this.Tb){var a=this.j.get("gain");if(this.U.gain!=a){this.U.gain=a;this.Tb.aF(this.U.gain)}}};o.prototype.ZC=function(){this.U=new i;this.U.src=this.Lq(this.j);this.U.xp=p;this.U.gain=this.j.get("gain")};o.prototype.Lq=function(a){var b=a.get("mp3Url");if(b&&q.lca)return b;return(a=a.get("oggUrl"))&&q.mca?a:b||a};o.prototype.Zi=function(){this.Kb=this.Tb.rj();this.dW()};o.prototype.fd=function(){this.Kb!=this.Tb.rj()&&this.Zi();this.Ne=this.Tb.qj();this.zD()};o.prototype.Kf= function(){this.rm=this.Tb.rE().map(function(a){for(var b=r,c=0;c 0){d=new b(d[0],e,i,n,b.watch(r,d.slice(1),e,i,n));d.QU(a);return d}return r};return b}); define("lr",["jquery.mod","fd","lc","d"],function(a,b,c,e){var d=b.extend(e,function(){e.call(this);this.Xc("DropDownArrow");this.u=r;this.co=p;this.bind(c.yb,this.Eja,this)});d.prototype.ya=function(){e.prototype.ya.call(this);this.f("color","#000000");this.f("direction",d.vN)};d.prototype.Eja=function(){this.co=p;this.Bc()};d.prototype.Ia=function(){e.prototype.Ia.call(this);this.u||(this.u=a(""),this.u.css({position:"absolute",left:0,top:0}),this.Pa().append(this.u))};d.prototype.ga=function(){var a= z;this.n("color")&&(a=p,this.p("color"));this.n("direction")&&(a=p,this.p("direction"));this.co&&(a=p,this.co=z);if(a){var a=this.Gd(),b=this.Fd(),c=this.k("color"),i=this.k("direction"),n=[0.5*a,0,a],i=i==d.vN?[b,0,0]:[0,b,b],j=this.u.get(0);j.width=a;j.height=b;j=j.getContext("2d");j.clearRect(0,0,a,b);j.beginPath();j.moveTo(n[0],i[0]);j.lineTo(n[1],i[1]);j.lineTo(n[2],i[2]);j.fillStyle=c;j.fill()}e.prototype.ga.call(this)};d.vN="down";d.kza="up";return d}); define("fN","fd,bY,jP,R,lc,c,fj,kJ,lr,gM".split(","),function(a,b,c,e,d,f,g,k,i,n){a=a.extend(k,function(){k.call(this);this.Xc("DropDownButton");this.gq=this.qa=r;this.RS=p;this.set("autoRolledOver",p);this.set("autoPressed",p);this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p);this.set("cursor",e.he);this.bind(d.T,this.$Q,this)});a.prototype.ya=function(){k.prototype.ya.call(this);this.f("arrowColor","#000000");this.f("arrowBeforeLabel");this.f("arrowWidth",9);this.f("arrowHeight", 5);this.f("arrowGap",5);this.f("shadow",z);this.f("layout",f.we);this.f("verticalAlign",c.rc);this.f("borderRadius",5);this.f("borderColor","#AAAAAA");this.f("borderSize",1);this.f("backgroundColor",["#FAFAFA","#E5E5E5"]);this.f("backgroundColorRatios",[0,1]);this.f("backgroundColorDirection","vertical");this.f("paddingLeft",5);this.f("paddingTop",5);this.f("paddingRight",5);this.f("paddingBottom",5);this.f("fontFamily");this.f("fontSize");this.f("fontColor","#555555");this.f("fontWeight");this.f("fontStyle"); this.f("textDecoration");this.f("textShadowColor");this.f("textShadowHorizontalLength");this.f("textShadowVerticalLength");this.f("textShadowBlurRadius");this.f("textShadowOpacity");this.h("rollOverBorderColor",g.v,"borderColor");this.h("rollOverArrowColor",g.v,"arrowColor");this.h("rollOverBackgroundColor",g.v,"backgroundColor");this.h("rollOverBackgroundColorRatios",g.v,"backgroundColorRatios");this.h("rollOverShadow",g.v,"shadow");this.h("pressedBorderColor",g.za,"borderColor");this.h("pressedArrowColor", g.za,"arrowColor");this.h("pressedBackgroundColor",g.za,"backgroundColor");this.h("pressedBackgroundColorRatios",g.za,"backgroundColorRatios");this.h("pressedShadow",g.za,"shadow");this.h("pressedRollOverBorderColor",g.Za,"borderColor");this.h("pressedRollOverArrowColor",g.Za,"arrowColor");this.h("pressedRollOverBackgroundColor",g.Za,"backgroundColor");this.h("pressedRollOverBackgroundColorRatios",g.Za,"backgroundColorRatios");this.h("pressedRollOverShadow",g.Za,"shadow");this.h("pressedBorderColor", g.G,"borderColor");this.h("pressedArrowColor",g.G,"arrowColor");this.h("pressedBackgroundColor",g.G,"backgroundColor");this.h("pressedBackgroundColorRatios",g.G,"backgroundColorRatios");this.h("pressedShadow",g.G,"shadow")};a.prototype.set=function(a,b){if(a=="label"&&this.get("label")!=b){this.RS=p;this.Bc()}k.prototype.set.call(this,a,b)};a.prototype.Ia=function(){k.prototype.Ia.call(this);if(!this.qa){this.qa=new n;this.qa.set("width","100%");this.ma(this.qa)}if(!this.gq){this.gq=new i;this.gq.set("direction", i.vN);this.ma(this.gq)}};a.prototype.$Q=function(){this.open();this.trigger(new b(d.OPEN))};a.prototype.open=function(){this.unbind(d.T,this.$Q,this);this.WC(p)};a.prototype.close=function(){this.bind(d.T,this.$Q,this);this.WC(z)};a.prototype.ga=function(){if(this.RS){this.qa.set("text",this.get("label"));this.RS=z}this.gb(["horizontalAlign","fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius", "textShadowOpacity"],{},[this.qa],p,p);if(this.n("arrowGap")){this.set("gap",this.k("arrowGap"));this.p("arrowGap")}if(this.n("arrowColor")){this.gq.set("color",this.k("arrowColor"));this.p("arrowColor")}if(this.n("arrowBeforeLabel")){this.k("arrowBeforeLabel")==p?this.wj(this.gq,0):this.wj(this.qa,0);this.p("arrowBeforeLabel")}if(this.n("arrowWidth")){this.gq.set("width",this.k("arrowWidth"));this.p("arrowWidth")}if(this.n("arrowHeight")){this.gq.set("height",this.k("arrowHeight"));this.p("arrowHeight")}k.prototype.ga.call(this)}; return a});define("fD",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.lb={layout:e.ef};a.defaults(d.lb,c.lb);d.prototype.ya=function(){this.Rj(d.lb)};return d}); define("iH","require,fd,bY,jP,R,fS,lc,kJ,fD,gM".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("jP"),d=a("R"),f=a("fS"),g=a("lc"),k=a("kJ"),i=a("fD"),n=a("gM"),a=b.extend(k,function(){k.call(this);this.Xc("DropDownPopup");this.uc=r;this.wG=z;this.Na=r;this.uB=[];this.Jr=p});a.prototype.open=function(a){this.uc=a;this.wG=p;this.Ua().wj(this,this.Ua().Oa().length-1);this.set("overIndex",-1);this.set("visible",p);this.bind(g.xb,this.lc,this);this.Ua().bind(g.cc,this.P5,this);this.Ua().bind(g.yb, this.nb,this)};a.prototype.close=function(){this.uc=r;this.wG=p;this.set("visible",z);this.Na.set("overflow",f.Ts);this.Na.set("contentOpaque",p);this.unbind(g.xb,this.lc,this);this.Ua().unbind(g.cc,this.P5,this);this.Ua().bind(g.yb,this.nb,this)};a.prototype.Ia=function(){k.prototype.Ia.call(this);if(!this.Na){this.Na=new i;this.Na.set("overflow",f.Ts);this.Na.bind(g.yb,this.nb,this);this.Na.bind(g.nm,this.Dr,this);this.ma(this.Na)}};a.prototype.nb=function(){this.Z$()};a.prototype.lc=function(){this.WU= z};a.prototype.Dr=function(){this.WU=p};a.prototype.P5=function(){this.get("overIndex")==-1&&(!this.WU||!this.Yj)&&this.trigger(new c(g.zs));this.WU=z};a.prototype.jna=function(a){this.set("overIndex",this.JR(a.source))};a.prototype.kna=function(a){a=this.JR(a.source);this.get("overIndex")==a&&this.set("overIndex",-1)};a.prototype.ina=function(a){a=this.JR(a.source);this.set("overIndex",a);this.set("selectedIndex",a);this.trigger(new c(g.Ci))};a.prototype.JR=function(a){for(var b=0;b=w){this.Jr=p;this.Na.set("top",b.top+d+i);this.Na.set("maxHeight",n)}else{this.Jr=z;this.Na.set("top",b.top-w+i);this.Na.set("maxHeight",w)}this.Na.set("overflow",f.nm)}d=x==e.Kc?b.left+Math.round((c- g)*0.5):x==e.Ka?b.left+c-g:b.left;d<0?d=b.left:b.left+g>a.Ba()&&(d=b.left+c-g);this.Na.set("left",d);this.N$()}};a.prototype.N$=function(){var a=this.k("popUpBorderRadius");this.Na.N({borderTopRadius:this.Jr?0:a,borderBottomRadius:this.Jr?a:0});for(var b=this.Na.Oa(),c=0;c=0&&b>=f.length&&(b=-1);this.set("selectedIndex",b);this.Fg.set("items",this.k("items"));this.Fg.set("selectedIndex",this.k("selectedIndex"));this.p("items");this.p("selectedIndex");if(this.sk){this.sk=z;this.trigger(new c(e.aa))}}if(a){a=this.k("label");if(!a){b=this.k("selectedIndex"); a=b<0?this.k("prompt"):this.k("items")[b]}this.uc.set("label",a)}if(this.K9){this.Fg.set("minWidth",this.uc.Ba());this.Fg.set("buttonWidth",this.uc.Ba())}this.gb(["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","horizontalAlign","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],{},[this.uc,this.Fg],p,p);this.gb(["popUpBorderRadius","popUpGap","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight", "popUpPaddingTop","popUpBackgroundColor","popUpBackgroundOpacity","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor","popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength","popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{},[this.Fg],p,p);this.gb(["arrowBeforeLabel","arrowWidth","arrowHeight","arrowColor","rollOverArrowColor","pressedArrowColor","pressedRollOverArrowColor", "arrowGap","shadow","shadowBlurRadius","shadowColor","shadowHorizontalLength","shadowOpacity","shadowSpread","shadowVerticalLength","borderRadius","borderTopRadius","borderBottomRadius","borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderSize","borderLeftSize","borderTopSize","borderRightSize","borderBottomSize","borderColor","borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","rollOverBorderColor", "pressedBorderColor","pressedRollOverBorderColor","backgroundColor","backgroundColorRatios","backgroundColorDirection","backgroundOpacity","rollOverBackgroundColor","rollOverBackgroundColorRatios","rollOverShadow","pressedBackgroundColor","pressedBackgroundColorRatios","pressedShadow","pressedRollOverBackgroundColor","pressedRollOverBackgroundColorRatios","pressedRollOverShadow","paddingLeft","paddingTop","paddingRight","paddingBottom"],{},[this.uc],p,p);d.prototype.ga.call(this)};return a}); define("ep","require,fd,u,lc,lm,dT,dm".split(","),function(a){var b=a("fd"),c=a("u"),e=a("lc"),d=a("lm"),f=a("dT"),g=a("dm"),a=b.extend(d,function(){d.call(this);this.Sb=r;this.v5=[];this.bind(e.aa,this.bna,this)});f.A("DropDown",a).B("UIComponent").L({arrowBeforeLabel:"bool",arrowColor:"color",arrowHeight:"number",arrowWidth:"number",arrowGap:"number",fontFamily:"string",fontSize:"or[number, size]",fontColor:"color",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]", fontStyle:"enum[italic, normal]",gap:"number",horizontalAlign:"enum[left, center, right]",label:"string",playList:"PlayList",popUpGap:"number",popUpBackgroundColor:"color",popUpBackgroundOpacity:"number",popUpBorderRadius:"number",popUpFontColor:"color",popUpPaddingBottom:"number",popUpPaddingLeft:"number",popUpPaddingRight:"number",popUpPaddingTop:"number",popUpShadow:"bool",popUpShadowBlurRadius:"number",popUpShadowColor:"color",popUpShadowHorizontalLength:"number",popUpShadowOpacity:"number",popUpShadowSpread:"number", popUpShadowVerticalLength:"number",pressedArrowColor:"color",pressedShadow:"bool",pressedBackgroundColor:"or[array[color], color]",pressedBackgroundColorRatios:"array[number]",pressedRollOverArrowColor:"color",pressedRollOverShadow:"bool",pressedRollOverBackgroundColor:"or[array[color], color]",pressedRollOverBackgroundColorRatios:"array[number]",prompt:"string",rollOverArrowColor:"color",rollOverBackgroundColor:"or[array[color], color]",rollOverBackgroundColorRatios:"array[number]",rollOverPopUpBackgroundColor:"color", rollOverPopUpFontColor:"color",rollOverShadow:"bool",selectedPopUpBackgroundColor:"color",selectedPopUpFontColor:"color",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",textShadowColor:"color",textShadowHorizontalLength:"number",textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]).Vb([e.aa]);a.prototype.set=function(a,b){if(a=="playList"){if(this.Sb)for(this.Sb.unbind("change",this.No,this);this.v5.length;)this.v5.shift().unwatch(); if(this.Sb=b){c.watch(this.Sb,"items.label",this.UK,this);c.watch(this.Sb,"items.media.label",this.UK,this);this.UK();this.Sb.bind("change",this.No,this);this.No()}else this.UK()}d.prototype.set.call(this,a,b)};a.prototype.UK=function(){this.Sb?this.set("items",g(this.Sb.get("items")).map(function(a){return a.get("label")||a.get("media")&&a.get("media").get("label")})):this.set("items",[])};a.prototype.No=function(){this.set("selectedIndex",this.Sb.get("selectedIndex"))};a.prototype.bna=function(){this.Sb&& this.Sb.set("selectedIndex",this.get("selectedIndex"))};return a}); define("cG",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("distance",0.5);this.set("intensity",0.1);this.set("speed",0.2);this.set("opacity",0.1);this.set("color","#ffffff");this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("DustPanoramaOverlay",b).B("PanoramaOverlay").L({intensity:"number",speed:"number",color:"color",opacity:"number",distance:"number", startDuration:"number",initialState:"enum[playing, stopped]",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"});b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b}); define("dw","fd,iU,lc,bY,V,kO,bq".split(","),function(a,b,c,e,d,f,g){var k={},i=a.extend(b,function(){b.call(this);this.Kb=m;this.Ll=[];this.m="stopped";this.set("easing","linear");this.set("duration",1E3);this.set("loop",z);this.set("animationDirection","normal")});i.prototype.play=function(a){a||(a=k);if(!this.dz(a))if(this.m=="stopped"||this.Ll.indexOf(a)<0){this.m="playing";this.Ll.push(a);this.ke=0;this.Kb=Math.max(this.get("duration",1E3),1);this.ze=new f(this.get("easing","linear"),[new g("pos", 0,1)],this.Kb);this.ze.setTime(this.ke);this.ky();this.Zo();this.BC()}else this.m="playing"};i.prototype.reverse=function(a){a||(a=k);if(!this.Rva(a))if(this.m=="stopped"||this.Ll.indexOf(a)<0){this.m="playingReverse";this.Ll.push(a);this.ke=this.Kb=Math.max(this.get("duration",1E3),0);this.ze=new f(this.get("easing","linear"),[new g("pos",0,1)],this.Kb);this.ze.setTime(this.ke);this.ky();this.Zo();this.BC()}else this.m="playingReverse"};i.prototype.stop=function(){this.m="stopped";if(this.ke!==0){this.ke= 0;this.Zo();this.BC()}};i.prototype.end=function(){if(this.m!="stopped"){this.ke=this.Kb;this.Zo();this.BC()}};i.prototype.dz=function(a){return this.m=="playing"&&this.Ll.indexOf(a)>=0};i.prototype.Rva=function(a){return this.m=="playingReverse"&&this.Ll.indexOf(a)>=0};i.prototype.Dg=function(a){if(this.m!="stopped"){this.ke=this.m=="playing"?Math.min(this.Kb,this.ke+a):Math.max(0,this.ke-a);this.ze.setTime(this.ke);this.Zo();this.BC()}};i.prototype.ds=function(){return this.ze&&this.ze.wb("pos")|| 0};i.prototype.Eq=function(a){if(this.Ll)for(var b=0;b= this.Kb){this.iy();this.Ll=[];if(this.m!="stopped"){this.stop();this.get("animationDirection")=="alternate"?this.reverse():this.get("loop")&&this.play()}}else this.m!="stopped"&&d.Ma(this.Dg,this)};i.v_="start";i.q_="frame";i.Dj="end";i.Yv="reverseEnd";return i}); define("bm",["require","fd","dT","dw"],function(a){var b=a("fd"),c=a("dT"),e=a("dw"),a=b.extend(e,function(){e.call(this)});c.A("Effect",a).B("Object").L({duration:"number",easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",animationDirection:"enum[normal, alternate]",loop:"bool"}).Wf([e.v_,e.q_,e.Dj,e.Yv]).Rg({play:function(){return e.prototype.play.apply(this,arguments)},reverse:function(){return e.prototype.reverse.apply(this, arguments)},getPosition:function(){return e.prototype.ds.apply(this,arguments)}});return a}); define("bb",["fd","dw"],function(a,b){var c=a.extend(b,function(){b.call(this);this.dP=this.cP=r});c.prototype.ky=function(){b.prototype.ky.call(this);this.cP=[];this.dP=[];this.Eq(function(a){this.cP.push(this.get("alphaFrom",a.wh()));this.dP.push(this.get("alphaTo",a.wh()))});this.OJ()};c.prototype.Zo=function(){b.prototype.Zo.call(this);this.OJ()};c.prototype.OJ=function(){this.Eq(function(a,b){var c=this.cP[b],c=c+(this.dP[b]-c)*this.ds(),g=0=0){this.Bf.splice(a, 1);this.Bf.length==0&&this.Ena()}};a.prototype.Fna=function(){var a=this.get("effect"),b=this.get("rollOverEffect");b&&(a&&a.ds()>0?a.reverse():b.play())};a.prototype.Ena=function(){var a=this.get("rollOverEffect");if(a){var b=this.get("effect");a.ds()>0?a.reverse():b&&b.get("loop")&&b.play()}};a.prototype.u6=function(){if(this.Bf.length>0){var a=this.get("rollOverEffect");if(a){this.get("effect").stop();a.play()}}};a.prototype.o7=function(){if(this.Bf.length==0){this.get("rollOverEffect").stop(); var a=this.get("effect");a&&a.get("loop")&&a.play()}};a.prototype.hh=function(){var a=this.get("effect");a&&a.play()};a.prototype.eh=function(){var a=this.get("effect");a&&a.stop();(a=this.get("rollOverEffect"))&&a.stop()};return a});define("jx",["require","fd","dT","ci"],function(a){var b=a("fd"),c=a("dT"),e=a("ci"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlay",a).B("HotspotPanoramaOverlay");return a}); define("q",["fd","iU","dT","lc"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.set("displayTooltipInTouchScreens",p)});c.A("HotspotPanoramaOverlayArea",a).B("Object").L({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",displayTooltipInTouchScreens:"bool",useHandCursor:"bool"}).Vb([e.tc,e.Ib,e.Ch,e.zf]).Wf([e.T]);return a});define("ek",["dT","q"],function(a,b){a.A("FlatHotspotPanoramaOverlayArea",b).B("HotspotPanoramaOverlayArea");return b}); define("bc",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f){c.call(this);a!==m&&this.set("vertices",a);this.set("opacity",b!==m?b:1);f!==m&&this.set("timestamp",f)});a.A("QuadPanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",timestamp:"number",vertices:"array[PanoramaPoint]"});return b}); define("gv",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("roll",f);this.set("opacity",g!==m?g:1);k!==m&&this.set("timestamp",k)});a.A("FlatPanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",pitch:"number",roll:"number",timestamp:"number",yaw:"number"});return b}); define("eK",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k,i,n,j,l){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);g!==m&&this.set("rotationY",g);k!==m&&this.set("roll",k);i!==m&&this.set("hfov",i);n!==m&&this.set("vfov",n);this.set("opacity",j!==m?j:1);l!==m&&this.set("timestamp",l)});a.A("PanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",yaw:"number",pitch:"number",rotationX:"number", rotationY:"number",roll:"number",hfov:"number",vfov:"number",timestamp:"number"});return b});define("cb",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b){c.call(this);this.set("yaw",a);this.set("pitch",b)});a.A("PanoramaPoint",b).B("Object").L({pitch:"number",yaw:"number"});return b}); define("L",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k,i,n){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);g!==m&&this.set("rotationY",g);k!==m&&this.set("rotationZ",k);i!==m&&this.set("hfov",i);n!==m&&this.set("timestamp",n)});a.A("PopupPanoramaOverlayPlaybackPosition",b).B("Object").L({yaw:"number",pitch:"number",rotationX:"number",rotationY:"number",rotationZ:"number",hfov:"number",timestamp:"number"}); return b}); define("hP","require,iU,bc,gv,eK,cb,L".split(","),function(a){var b=a("iU"),c=a("bc"),e=a("gv"),d=a("eK"),f=a("cb"),g=a("L");return{Cua:function(a){return this.IH(a,this.Vja)},eY:function(a){return this.IH(a,this.moa)},Uua:function(a){return this.IH(a,this.toa)},gY:function(a){return this.IH(a,this.Boa)},Vja:function(a){return new e(b.prototype.get.call(a,"yaw",0),b.prototype.get.call(a,"pitch",0),b.prototype.get.call(a,"roll",0),b.prototype.get.call(a,"opacity",1),0)},Boa:function(a){var d=b.prototype.get.call(a, "vertices",[r,r,r,r]);return new c([d[0]||new f(0,0),d[1]||new f(0,0),d[2]||new f(0,0),d[3]||new f(0,0)],b.prototype.get.call(a,"opacity",1),0)},moa:function(a){function c(d,f){return b.prototype.get.call(a,d,f)}return new d(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("roll",0),c("hfov",c("vfov")===m?45:m),c("vfov"),c("opacity",1),0)},toa:function(a){function c(d,f){return b.prototype.get.call(a,d,f)}return new g(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("rotationZ", 0),c("hfov",45),0)},IH:function(a,c){var d=b.prototype.get.call(a,"playbackPositions")||[];return d.length>0?d.slice().sort(function(a,b){return a.get("timestamp")-b.get("timestamp")||d.indexOf(a)-d.indexOf(b)}):[c(a)]}}}); define("gV","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Lb=m});d.A("FlatHotspotPanoramaOverlayImageBase",a).B("Object").L({distance:"number",height:"number",horizontalAlign:"enum[center, left, right]",image:"ImageResource",offsetX:"number",offsetY:"number",opacity:"number",pitch:"number",playbackPositions:"array[FlatPanoramaOverlayPlaybackPosition]",roll:"number", scale:"number",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",verticalAlign:"enum[bottom, middle, top]",width:"number",yaw:"number"}).Vb([e.md,e.yd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.Cua(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "opacity":case "distance":case "pitch":case "roll":case "yaw":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this, a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("n",["require","fd","dT","gV"],function(a){var b=a("fd"),c=a("dT"),e=a("gV"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayImage",a).B("FlatHotspotPanoramaOverlayImageBase");return a}); define("dd",["require","fd","dT","gV"],function(a){var b=a("fd"),c=a("dT"),e=a("gV"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayMap",a).B("FlatHotspotPanoramaOverlayImageBase");return a}); define("jL","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("contentInteractive",z);this.set("transparent",z)});d.A("FramePanoramaOverlay",a).B("PanoramaOverlay").L({contentInteractive:"bool",displayTooltipInTouchScreens:"bool",enabled:"bool",hfov:"number",height:"number",image:"ImageResource",interactionEnabled:"bool",pitch:"number", roll:"number",rotationX:"number",rotationY:"number",toolTip:"string",transparent:"bool",url:"string",useHandCursor:"bool",playbackPositions:"array[PanoramaOverlayPlaybackPosition]",vfov:"number",width:"number",yaw:"number"}).Vb([e.yd,e.Ch,e.zf,e.tc,e.Ib,e.md]).Wf([e.T]).Ah(["url"]);a.prototype.set=function(a,b){var d=z;switch(a){case "hfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "vfov":case "yaw":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!= "playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.eY(this);return this.Lb}return c.prototype.get.call(this,a,b)};return a});define("cD",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.lb={layout:e.Wp};a.defaults(d.lb,c.lb);d.prototype.ya=function(){this.Rj(d.lb)};return d}); define("hr",["dm","fd","cD","dT"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("GridContainer",a).B("UIComponent").L({children:"array[UIComponent]",contentOpaque:"bool",childrenInteractionEnabled:"bool",creationPolicy:"enum[inAdvance, delayed]",gap:"number",horizontalAlign:"enum[center, left, right]",itemHeight:"or[number, percent]",itemMaxHeight:"number",itemMaxWidth:"number",itemMinHeight:"number",itemMinWidth:"number",itemWidth:"or[number, percent]",overflow:"enum[scroll, hidden, visible]", scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",verticalAlign:"enum[bottom, middle, top]"});return a}); define("hd","require,dm,jquery.mod,bY,eL,lc,gb,jk,hW,gu,fd".split(","),function(a){function b(){}function c(a){this.Gwa=a;this.Ck=[];this.Qd=0}var e=a("dm");a("jquery.mod");var d=a("bY"),f=a("eL"),g=a("lc"),k=a("gb"),i=a("jk"),n=a("hW"),j=a("gu"),l=a("fd").extend(f,function(a){f.call(this);this.url=a;this.ZY=this.Qd=0;this.status=l.yO;this.Sp=r});l.prototype.MY=function(a){this.ZY=this.ZY+a};l.prototype.fz=function(a){this.Qd=this.Qd+a};l.prototype.start=function(){this.status=l.ZF;n.KZ(this.url)? this.ar():this.ak=j.add(this.url,k.xF,this.qpa.bind(this),this.p2.bind(this))};l.prototype.qpa=function(){this.Sp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.Sp.open("GET",this.url);this.Sp.onreadystatechange=function(){this.Sp.readyState>3&&this.ar()}.bind(this);this.Sp.send()};l.prototype.p2=function(){if(this.Sp){this.Sp.abort();this.Sp=r}};l.prototype.stop=function(){if(this.status==l.ZF){this.status=l.yO;this.p2();this.ak&&this.ak.cancel()}};l.prototype.ar= function(){this.Sp=r;if(this.ak){this.ak.loaded();this.ak=r}this.status=l.Dfa;this.trigger(new d(g.S))};l.yO="not loaded";l.ZF="loading";l.Dfa="loaded";c.prototype.jta=function(a){a.forEach(function(a){if(this.Ck.indexOf(a)<0){this.Ck.push(a);a.fz(this.Qd);a.MY(1)}}.bind(this))};c.prototype.Pwa=function(a){var b=this.Ck;this.Ck=[];b.forEach(function(b){if(a.indexOf(b)<0)this.Ck.push(b);else{b.fz(-this.Qd);b.MY(-1)}}.bind(this))};c.prototype.Iwa=function(){this.Ck.forEach(function(a){a.fz(-this.Qd); a.MY(-1)}.bind(this));this.Ck=[];this.Qd=0};c.prototype.fz=function(a){this.Qd=this.Qd+a;this.Ck.forEach(function(b){b.fz(a)})};b.Oc=[];b.v8=[];b.dka=0;b.Eaa=function(a,b){this.KJ(a).jta(b.map(function(a){return this.X(a)}.bind(this)));this.uK();this.J()};b.Swa=function(a,b){this.KJ(a).Pwa(b.map(function(a){return this.X(a)}.bind(this)));this.uK();this.J()};b.Jwa=function(a){this.KJ(a).Iwa();this.uK();this.J()};b.wM=function(a,b){this.KJ(a).fz(b);this.uK();this.J()};b.uK=function(){this.Oc.sort(function(a, b){return b.Qd-a.Qd})};b.J=function(a){if(this.enabled()&&(a||!this.Ym))if(a){this.Ym&&clearTimeout(this.Ym);this.Ym=r;var a=this.Oka(),b=this.Pka();e(a).difference(b).forEach(function(a){a.stop()});e(b).difference(a).forEach(function(a){a.start()})}else this.Ym=setTimeout(function(){this.Ym=r;this.J(p)}.bind(this),1E3)};b.Ym=r;b.Oka=function(){return this.Oc.filter(function(a){return a.status==l.ZF})};b.Pka=function(){for(var a=this.Qka(),b=[],c=0;c0&&(d.status==l.yO||d.status==l.ZF)&&b.push(d)}return b};b.Qka=function(){return this.dka>0?0:1};b.KJ=function(a){var b=e(this.v8).find(function(b){return b.Gwa==a});if(!b){b=new c(a);this.v8.push(b)}return b};b.X=function(a){var b=e(this.Oc).find(function(b){return b.url==a});if(!b){b=new l(a);b.bind(g.S,this.J,this);this.Oc.push(b)}return b};b.enabled=function(a){if(a===m)return b.lja||b.mja?z:b.dR!==m?b.dR:b.V;b.V=a};b.V=p;b.BZ=function(a){b.dR=a.get(TDV.PlayerSettings.BACKGROUND_PRELOAD_ENABLED)}; b.dR=m;b.mja=i.Lg("disable-background-preload",z);b.lja=z;return b});define("ds",["fd","iU","dT","hd"],function(a,b,c,e){var d=a.extend(b,function(){b.call(this);this.AW=a.Bn(this.AW,this)});c.A("Media",d).B("Object").L({label:"string",thumbnailUrl:"string"}).Ah(["thumbnailUrl"]);d.prototype.AW=function(){e.Eaa(this,this.wp())};d.prototype.wp=function(){return[]};d.prototype.Rwa=function(){e.Jwa(this)};d.prototype.set=function(a,c){b.prototype.set.call(this,a,c);this.AW()};return d}); define("gz",["require","dm","fd","dT","ds"],function(a){a("dm");var b=a("fd"),c=a("dT"),e=a("ds"),a=b.extend(e,function(){e.call(this);this.lI=this.ly=m;this.set("distanceToFloor",1.7)});c.A("Panorama",a).B("Media").L({adjacentPanoramas:"array[AdjacentPanorama]",audios:"array[PanoramaAudio]",cardboardMenu:"Menu",flipImageHorizontally:"bool",frames:"array[PanoramaFrame]",distanceToFloor:"number",hfov:"number",hfovMax:"number",hfovMin:"or[number,percent]",mapLocations:"array[PanoramaMapLocation]",overlays:"array[PanoramaOverlay]", partial:"bool",pitch:"number",vfov:"number",vrMenu:"Menu"});a.prototype.get=function(a,b){switch(a){case "overlays":return this.MR();case "frames":return this.u4()}return e.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){switch(a){case "cardboardMenu":this.set("vrMenu",b)}e.prototype.set.call(this,a,b)};a.prototype.MR=function(){var a=e.prototype.get.call(this,"overlays");a||(a=[]);return this.xV(a)};a.prototype.xV=function(a){if(this.ly===m||this.lI!=a){var b=function(a){return c.ob("PopupPanoramaOverlay", a)},e=function(a){return c.ob("LensFlarePanoramaOverlay",a)};this.lI=a;this.ly=[].concat(a.filter(function(a){return!(b(a)||e(a))}),a.filter(e),a.filter(b))}return this.ly};a.prototype.dca=function(){return 0g.indexOf(e.pm)&&c.prototype.get.call(this,"grayscale")&&(g=g.concat([e.pm]));return g}return c.prototype.get.call(this,a,b)};e.prototype.cca=function(a){return 0<=this.get("tags").indexOf(a)};e.pm="preload";e.y0="mobile";e.x0="ipadpro";e.BO="mobilevr";e.z0="mobilevr2gen";e.CO="ondemand";return e}); define("eE",["require","ja","r","jk"],function(a){var b=a("ja"),c=a("r"),e=a("jk");return{Zl:function(a){return this.Mg(a,"load")},lv:function(a){return this.Mg(a,"preload")},Zy:function(a){return this.Zl(a)!=this.lv(a)},Mg:function(a,b){var c=a.get("levels")||[],e=this.lka(c),e=this.dla(b,e),c=this.Sja(c,b),i=this.C4(c,e[0],e[1],this.bla(b));i||(i=this.C4(c,e[0],e[1],m));return i},Sja:function(a,f){"preload"==f?a=this.QA(a,b.pm):"load"==f&&(a=this.Rja(a,b.pm));c.zp()&&(a=this.QA(a,b.x0));c.zY()&& (a=this.QA(a,b.z0));c.se()&&(a=this.QA(a,b.BO));c.Wa()&&(a=this.QA(a,b.y0));return a},lka:function(a){if(0==a.length)return 1;a.sort(function(a,b){return b.get("width")-a.get("width")});return a[0].get("width")/a[0].get("height")},dla:function(a,b){if("preload"==a)return[0,0];var e=1E4;this.Xja()||(c.se()?e=2048:c.zp()?e=1280:c.Wa()&&(e=1024));return 1>b?[e*b,e]:[e,e/b]},bla:function(a){if("load"==a)return z},Xja:function(){return c.zp()&&e.Lg("recent_ipad_use_max_res",z)},QA:function(a,b){var c= a.filter(function(a){return a.cca(b)});0==c.length&&(c=a);return c},Rja:function(a,b){var c=a.filter(function(a){return!a.cca(b)});0==c.length&&(c=a);return c},C4:function(a,b,c,e){function i(a){return Math.abs(a.get("width")*a.get("height")-b*c)}a=a.filter(function(a){return e!==m&&e!=a.get("grayscale",z)?z:p});if(0==a.length)return r;a.sort(function(a,b){return i(a)-i(b)});return a[0]}}}); define("C","require,fd,iU,dT,eE,jP,je".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("dT"),d=a("eE"),f=a("jP"),g=a("je"),a=b.extend(c,function(){c.call(this);this.set("x",0);this.set("y",0);this.set("offsetX",0);this.set("offsetY",0);this.set("width",0);this.set("height",0);this.set("scaleMode",g.Mn);this.set("horizontalAlign",f.Kc);this.set("verticalAlign",f.rc)});e.A("HotspotMapOverlayImageBase",a).B("Object").L({height:"number",horizontalAlign:"enum[center, left, right]",image:"ImageResource", offsetX:"number",offsetY:"number",scaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",verticalAlign:"enum[bottom, middle, top]",width:"number",x:"number",y:"number"});a.prototype.Zl=function(){return this.get("image")?d.Zl(this.get("image")):r};a.prototype.lv=function(){return this.get("image")?d.lv(this.get("image")):r};return a});define("iC",["fd","bY"],function(a,b){return a.extend(b,function(a,e){b.call(this,a);this.zh=e})}); define("bR",["require","fd","iU","lc","iC"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("iC"),a=b.extend(c,function(){c.call(this);this.OD=[];this.Td=m;this.m="initial"});a.prototype.yn=R("OD");a.prototype.DZ=function(a){this.OD!=a&&(this.OD=a,this.ar=this.Td=m)};a.prototype.Qxa=function(a){this.Td!==a&&(this.m="loading",this.Td=a,this.trigger(new d(e.sc,this.Td)))};a.prototype.rZ=function(){"loaded"!==this.m&&(this.m="loaded",this.trigger(e.S))};a.prototype.rxa=function(){"loaded"!==this.m&& (this.m="error",this.trigger(e.ie))};return a});define("cC",["fd","bR"],function(a,b){var c=a.extend(b,function(a){b.call(this);this.Ud=a});c.prototype.re=R("Ud");c.H0="map";c.I0="overlay";return c});define("hv",["fd","cC"],function(a,b){var c=a.extend(b,function(a,c,f){b.call(this,b.I0);this.boa=a;this.ca=c;this.da=f});c.prototype.getX=R("ca");c.prototype.getY=R("da");c.G0="image";c.F0="fov";return c}); define("iW",["fd","hv"],function(a,b){var c=a.extend(b,function(a,c,f,g,k,i,n,j,l,q,o){b.call(this,b.G0,c,f);this.Md=a;this.P8=g;this.au=k;this.bu=i;this.W=n;this.ea=j;this.Dd=l;this.Nh=q;this.ii=o;this.OD=[a]});c.prototype.sj=R("Md");c.prototype.$c=R("W");c.prototype.Nd=R("ea");return c}); define("fv","require,fd,dT,C,eE,iW".split(","),function(a){var b=a("fd"),c=a("dT"),e=a("C");LevelUtil=a("eE");ImageOverlay=a("iW");a=b.extend(e,function(){e.call(this);this.Eo=m});c.A("HotspotMapOverlayImage",a).B("HotspotMapOverlayImageBase");a.prototype.getItem=function(){return this.Ng()};a.prototype.Ng=function(a){if(this.Eo===m)this.Eo=this.BL(a);return this.Eo};a.prototype.BL=function(a){var b=this.get("image");if(b){b=LevelUtil.Zl(b);return new ImageOverlay(b.get("url"),this.get("x"),this.get("y"), a,this.get("offsetX"),this.get("offsetY"),this.get("width"),this.get("height"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"))}return r};return a});define("F",["require","fd","dT","C"],function(a){var b=a("fd"),c=a("dT"),e=a("C"),a=b.extend(e,function(){e.call(this)});c.A("HotspotMapOverlayMap",a).B("HotspotMapOverlayImageBase");return a}); define("eJ","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Lb=m});d.A("HotspotPanoramaOverlayImageBase",a).B("Object").L({yaw:"number",pitch:"number",roll:"number",rotationX:"number",rotationY:"number",hfov:"number",vfov:"number",distance:"number",horizontalAlign:"enum[center, left, right]",verticalAlign:"enum[bottom, middle, top]",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]", opacity:"number",scale:"number",image:"ImageResource",playbackPositions:"array[PanoramaOverlayPlaybackPosition]"}).Vb([e.md,e.yd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.eY(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "distance":case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "yaw":case "opacity":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this, a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("iN",["require","fd","dT","eJ"],function(a){var b=a("fd"),c=a("dT"),e=a("eJ"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayImage",a).B("HotspotPanoramaOverlayImageBase");return a});define("P",["require","fd","dT","eJ"],function(a){var b=a("fd"),c=a("dT"),e=a("eJ"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayMap",a).B("HotspotPanoramaOverlayImageBase");return a}); define("iD",[],function(){function a(a){for(var b={},a=a.split(","),c=0;c\s]+))?)*)\s*(\/?)>/,c=/^<\/([-A-Za-z0-9_]+\:?[-A-Za-z0-9_]*)[^>]*>/,e=/([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,d=a("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),f=a("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"), g=a("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),k=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),i=a("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),n=a("script,style");return function(a,l){function q(a,b,c,j){b=b.toLowerCase();if(f[b])for(;u.last()&&g[u.last()];)o(0,u.last());k[b]&& u.last()==b&&o(0,b);(j=d[b]||!!j)||u.push(b);if(l.start){var n=[];c.replace(e,function(a,b,c,d,f){a=c?c:d?d:f?f:i[b]?b:"";n.push({name:b,value:a,JX:a.replace(/(^|[^\\])"/g,'$1\\"')})});l.start&&l.start(b,n,j)}}function o(a,b){if(b){b=b.toLowerCase();for(c=u.length-1;0<=c&&u[c]!=b;c--);}else var c=0;if(0<=c){for(var d=u.length-1;d>=c;d--)l.end&&l.end(u[d]);u.length=c}}var t,s,u=[],v=a;for(u.last=function(){return this[this.length-1]};a;){s=p;if(!u.last()||!n[u.last()]){if(0==a.indexOf("<\!--"))t=a.indexOf("--\>"), 0<=t&&(l.Ita&&l.Ita(a.substring(4,t)),a=a.substring(t+3),s=z);else if(0==a.indexOf("t?a:a.substring(0,t),a=0>t?"":a.substring(t),l.hE&&l.hE(s))}else a=a.replace(RegExp("(.*?)]*>"),function(a,b){b=b.replace(/<\!--(.*?)--\>/g,"$1").replace(//g,"$1");l.hE&&l.hE(b);return""}),o(0, u.last());a==v&&h("Parse Error: "+a);v=a}o()}}); define("eg","require,jquery.mod,dm,fd,lc,bY,eL,r,iD".split(","),function(a){var b=a("jquery.mod");a("dm");var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("r"),k=a("iD"),i=c.extend(f,function(a){f.call(this);this.Ad=b(a);this.QC=[];this.Aq=r});i.prototype.Bva=function(a){a&&a.toLowerCase().indexOf("=0?g.Ey()==g.Iz?this.Ula(a):this.Tla(a):this.Sla(a)};i.prototype.Sla=function(a){this.Ad.empty();a&&this.Ad.append(a);this.y$()};i.prototype.Ula=function(a){this.Ad.empty();var c=this.Ad,d=r,f= [],e=r;new k(a,{start:function(a,f,i){if(a=="script"){for(var i=m,g=0;g");f.attr(n);c.append(f);if(i)d=f;else{c=f;d=r}}},hE:function(a){e?e.content=e.content+a:c.append(a)},end:function(a){if(a=="script"){f.push(e);e=r}else{d=c;c=c.parent()}}});this.QC=f;this.qI()};i.prototype.Tla=function(a){function d(){e++;return f+ e}this.Ad.empty();var f="fragment_"+c.hda(6)+"_",e=0,i=d(),g=[i],s=m,u=[],v=r,w="";new k(a,{start:function(a,b,c){if(a=="script"){c=m;for(a=0;a";s=e}else{w=w+">";g.push(e);s=m}}},hE:function(a){v? v.content=v.content+a:w=w+a},end:function(a){if(a=="script"){u.push(v);v=r}else{s=g[g.length-1];g.pop()}}});this.Ad.get(0).innerHTML=w;this.Ad.addClass(i);for(a=0;a0){this.Aq=this.QC[0];this.QC.splice(0,1);var a=this.Aq.src;if(a){var c= this;i.wma(a,function(){c.F5()},function(){c.Cma()})}else{var d=this.Aq.parent,a=this.Aq.previousSibling,f;f=a?a.next():d.children(":first");a=document.write;document.write=f.length?function(a){f.before(a)}:function(a){d.append(a)};b.globalEval(this.Aq.content);document.write=a;this.F5()}}else this.y$()};i.prototype.Cma=function(){this.Aq=r;this.qI()};i.prototype.F5=function(){this.Aq=r;this.qI()};i.prototype.y$=function(){this.trigger(new d(e.Da))};i.D5={};i.wma=function(a,c,d){i.D5[a]?c.call(window): b.ajax({url:a,async:z,dataType:"script",error:d,success:function(){i.D5[a]=p;c.call(window)}})};return i}); define("jD",["fd","lc","bY","eL"],function(a,b,c,e){a=a.extend(e,function(a,b){e.call(this);this.bma=a;this.V=b;this.kg=r});a.prototype.bind=function(){var a=e.prototype.bind.apply(this,arguments);this.JD();return a};a.prototype.unbind=function(){var a=e.prototype.unbind.apply(this,arguments);this.JD();return a};a.prototype.start=function(){this.V=p;this.JD()};a.prototype.stop=function(){this.V=z;this.JD()};a.prototype.jC=function(){this.trigger(new c(b.cd))};a.prototype.JD=function(){if(this.V&& this.Rba(b.cd)){if(this.kg==r){var a=this;this.kg=setTimeout(function(){a.kg=r;a.jC();a.JD()},this.bma)}}else this.kg!=r&&(clearTimeout(this.kg),this.kg=r)};return a}); define("iz","require,jquery.mod,dm,fd,lc,go,jP,d,eg,dH,jD".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("go"),g=a("jP"),k=a("d"),i=a("eg"),n=a("dH"),a=a("jD"),j=e.extend(k,function(){k.call(this);this.Xc("HTML");this.lt=j.cG;this.e8=this.f8=0;this.L9=(new Date).getTime();this.gH=this.vg=r;this.sw=this.sw.bind(this);this.iP=[]});j.prototype.ya=function(){k.prototype.ya.call(this);this.f("content");this.f("horizontalAlign",g.oa);this.f("verticalAlign",g.rc);this.f("fontFamily"); this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");this.f("textAlign");this.f("textDecoration");this.f("textShadowBlurRadius",3);this.f("textShadowColor","#000000");this.f("textShadowHorizontalLength",0);this.f("textShadowOpacity",0);this.f("textShadowVerticalLength",0)};j.prototype.Rm=function(a){this.pa&&f.get(this.pa).Lwa(this.sw);k.prototype.Rm.call(this,a);if(this.pa){f.get(this.pa).fta(this.sw);f.get(this.pa).Hy(this.sw)}};j.prototype.Ia=function(){k.prototype.Ia.call(this); if(!this.gH){this.vg=document.createElement("div");this.gH=b(this.vg);this.QQ({position:"absolute",display:"inline",left:0,top:0,"box-sizing":"border-box"});var a=this.Pa();a.tz(z);a.append(this.gH);this.W4=new i(this.gH);this.W4.bind(d.Da,this.Ila,this,p);this.bind(d.yb,this.X4,this)}};j.prototype.ga=function(){var a={},b=z;this.n("visible")&&(b=p);if(this.n("content")){this.W4.Bva(this.k("content"));this.p("content");b=p}if(this.n("fontFamily")){b=this.k("fontFamily");c(b).isString()||(b="");a.fontFamily= n.Zr(b);this.p("fontFamily");b=p}if(this.n("fontSize")){b=this.k("fontSize");c(b).isNumber()?b=b+"px":c(b).isString()||(b="");a.fontSize=b;this.p("fontSize");b=p}if(this.n("fontColor")){b=this.k("fontColor");c(b).isString()||(b="");a.color=b;this.p("fontColor");b=p}if(this.n("fontWeight")){b=this.k("fontWeight");switch(b){case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":case "normal":break;default:b="normal"}a.fontWeight= b;this.p("fontWeight");b=p}if(this.n("fontStyle")){b=this.k("fontStyle");switch(b){case "italic":case "normal":break;default:b="normal"}a.fontStyle=b;this.p("fontStyle");b=p}if(this.n("textDecoration")){b=this.k("textDecoration");switch(b){case "underline":case "overline":case "line-through":case "none":break;default:b="none"}a.textDecoration=b;this.p("textDecoration");b=p}if(this.n("textAlign")){b=this.k("textAlign");switch(b){case "left":case "right":case "center":case "justify":break;default:b= ""}a["text-align"]=b;this.p("textAlign");b=p}var d=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(c(d).any(function(a){return this.n(a)},this)){var f={};c(d).each(function(a){f[a]=this.k(a);this.p(a)},this);a["-moz-text-shadow"]=a["-webkit-text-shadow"]=a["text-shadow"]=[f.textShadowHorizontalLength+"px",f.textShadowVerticalLength+"px",f.textShadowBlurRadius+"px","rgba("+parseInt("0x"+f.textShadowColor.substr(1,2))+", "+parseInt("0x"+ f.textShadowColor.substr(3,2))+", "+parseInt("0x"+f.textShadowColor.substr(5,2))+", "+f.textShadowOpacity+")"].join(" ");d=f.textShadowVerticalLength==0&&this.k("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(f.textShadowHorizontalLength,-f.textShadowVerticalLength)/Math.PI)*45;a.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*f.textShadowOpacity).toString(16)).slice(-2)+f.textShadowColor.substr(1,6)+",direction="+d+")"}c(["paddingTop","paddingRight","paddingBottom", "paddingLeft"]).any(function(a){return this.n(a)},this)&&(b=p);this.QQ(a);b&&this.W5();k.prototype.ga.call(this)};j.prototype.W5=function(){this.X4();this.Va();this.k("visible")&&this.k("content")?this.TC(j.T0):this.TC(j.cG)};j.prototype.Kr=function(a){for(var b=a.target;b&&b.tagName!="A"&&b.tagName!="BUTTON";)b=b.parentElement;k.prototype.Kr.call(this,a,!b)};j.prototype.Ho=function(){k.prototype.Ho.call(this);var a=this.Pa();this.Sh=this.vg.clientWidth+a.Uy()+a.Wy();this.Rh=this.vg.clientHeight+ a.Xy()+a.Qy()};j.prototype.t9=function(a){if(this.OR()!=a){this.vg.style.paddingLeft=a+"px";this.Va()}};j.prototype.OR=function(){return parseInt(this.vg.style.paddingLeft)||0};j.prototype.v9=function(a){if(this.QR()!=a){this.vg.style.paddingTop=a+"px";this.Va()}};j.prototype.QR=function(){return parseInt(this.vg.style.paddingTop)||0};j.prototype.u9=function(a){if(this.PR!=a){this.vg.style.paddingRight=a+"px";this.Va()}};j.prototype.PR=function(){return parseInt(this.vg.style.paddingRight)||0};j.prototype.s9= function(a){if(this.NR()!=a){this.vg.style.paddingBottom=a+"px";this.Va()}};j.prototype.NR=function(){return parseInt(this.vg.style.paddingBottom)||0};j.prototype.Ila=function(){this.iP=Array.prototype.slice.call(this.vg.querySelectorAll("*[style]")).map(function(a){var b={};b.Zta=a;b.style=a.getAttribute("style");return b}).filter(function(a){return l.test(a.style)}).map(function(a){for(var b=a.style,c=[];;){var d=l.exec(b);if(d){c.push(function(a){return function(){return a}}(b.substr(0,d.index+ 1)));c.push(function(a,b){switch(b){case "vw":return function(b){return Math.round(b*a)+"px"};case "vh":return function(b,c){return Math.round(c*a)+"px"};case "vmin":return function(b,c,d){return Math.round(d*a)+"px"};case "vmax":return function(b,c,d){return Math.round(d*a)+"px"}}}(parseFloat(d[1]),d[3].toLowerCase()));b=b.substr(d.index+d[0].length)}else{c.push(function(a){return function(){return a}}(b));a.functions=c;return a}}});this.pa&&f.get(this.pa).Hy(this.sw)};j.prototype.sw=function(a, b,c,d){if(this.iP.length!=0){this.iP.forEach(function(f){var e=f.functions.map(function(f){return f(a,b,c,d)}).join("");f.Zta.setAttribute("style",e)});this.W5()}};j.prototype.X4=function(){var a={width:"auto",height:"auto"},b=this.Pa();if(!this.ZR()){this.Sh!=this.W&&this.Va();var c=this.W-(b.Uy()+b.Wy());c>0&&(a.width=c+"px")}if(!this.R4()){this.Rh!=this.ea&&this.Va();b=this.ea-(b.Xy()+b.Qy());b>0&&(a.height=b+"px")}this.QQ(a)};j.prototype.p6=function(){var a=this.vg.clientWidth,b=this.vg.clientHeight; if(this.f8!=a||this.e8!=b){this.f8=a;this.e8=b;this.Va();this.TC(j.T0)}else{a=(new Date).getTime()-this.L9;a>j.fga?this.TC(j.Vfa):a>j.ega&&this.TC(j.Ufa)}};j.prototype.fpa=function(){this.L9=(new Date).getTime()};j.prototype.TC=function(a){this.lt==j.iza&&this.fpa();if(this.lt!=a){this.lt!=j.cG&&j.w2[this.lt].unbind(d.cd,this.p6,this);this.lt=a;this.lt!=j.cG&&j.w2[this.lt].bind(d.cd,this.p6,this,p)}};j.prototype.QQ=function(a){var b=this.vg.style,c;for(c in a)b[c]=a[c]};var l=/[^\d]((\d*\.)?\d+)\s*(vmin|vmax|vw|vh)/i; j.cG="stopped";j.Vfa="slow";j.Ufa="normal";j.T0="fast";j.fga=3E4;j.ega=5E3;j.w2={slow:new a(2E3,p),normal:new a(500,p),fast:new a(100,p)};return j}); define("hK",["fd","iz","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("HTML",a).B("UIComponent").L({content:"string",fontColor:"color",fontFamily:"string",fontSize:"or[number, size]",fontStyle:"enum[italic, normal]",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",textAlign:"enum[center, justify, left, right]",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",textShadowColor:"color",textShadowHorizontalLength:"number", textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]);return a});define("b",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.lb={layout:e.fN};a.defaults(d.lb,c.lb);d.prototype.ya=function(){this.Rj(d.lb)};return d}); define("gG",["fd","fS","b","iz"],function(a,b,c,e){a=a.extend(c,function(){c.call(this);this.Rq=r;this.set("contentOpaque",p)});a.prototype.ya=function(){c.prototype.ya.call(this);this.f("overflow",b.nm);this.f("html")};a.prototype.Ia=function(){c.prototype.Ia.call(this);this.Rq==r&&(this.Rq=new e,this.Rq.N({left:0}),this.ma(this.Rq))};a.prototype.ga=function(){this.Rq.set("width",this.ZR()?m:"100%");this.n("html")&&(this.Rq.set("content",this.k("html")),this.p("html"));this.gb(["paddingLeft","paddingTop", "paddingRight","paddingBottom"],{},[this.Rq],p,p);this.gb(["cursor"],{},[this.Rq],p,z);c.prototype.ga.call(this)};return a}); define("bk",["require","fd","gG","dT"],function(a){var b=a("fd"),c=a("gG"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("HTMLText",b).B("UIComponent").L({html:"string",overflow:"enum[scroll, hidden, visible]",scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]"});return b}); define("hH","require,jquery.mod,fd,lc,bY,jk,fC,R,je,fj,dk,jw".split(","),function(a){function b(a,b,c){return function(d){var f;f=b=="mouse"?this.Jt(d):this.$A(d);this.o5(f)?a.call(this,d):c=="release"?a.call(this,d):this.eka(f,d)}}var c=a("jquery.mod"),e=a("fd"),d=a("lc"),f=a("bY"),g=a("jk"),k=a("fC"),i=a("R"),n=a("je"),j=a("fj"),l=a("dk"),q=a("jw"),o=g.Vf("debug"),a=e.extend(q,function(){this.Xc("Button");q.call(this,3);this.set("autoRolledOver",p);this.set("autoPressed",p);this.set("cursor",i.he); this.set("scaleMode",n.Me);this.YP=document.createElement("canvas");this.YP.width=1;this.YP.height=1;this.ZP=this.YP.getContext("2d");this.ZP.globalCompositeOperation="copy";this.lR=z;this.bind(d.Ib,this.Mla,this)});a.prototype.ya=function(){q.prototype.ya.call(this);this.f("buttonGroup");this.f("mode",l.Tc);this.f("pressed");this.f("iconURL");this.f("transparencyActive");this.h("rollOverOpacity",j.v,"opacity");this.h("rollOverIconURL",j.v,"iconURL");this.h("pressedOpacity",j.za,"opacity");this.h("pressedIconURL", j.za,"iconURL");this.h("pressedRollOverOpacity",j.Za,"opacity");this.h("pressedRollOverIconURL",j.Za,"iconURL")};a.prototype.uR=b(q.prototype.uR,"touch","capture");a.prototype.V3=b(q.prototype.ika,"touch");a.prototype.X3=b(q.prototype.ika,"touch","release");a.prototype.aW=b(q.prototype.aW,"touch","capture");a.prototype.$V=b(q.prototype.$V,"touch");a.prototype.Kr=b(q.prototype.Kr,"touch","release");a.prototype.mT=b(q.prototype.mT,"mouse","capture");a.prototype.nT=function(a){var b=this.Jt(a);if(this.o5(b)|| this.lR){q.prototype.nT.call(this,a);this.set("cursor",i.he)}else{this.lR=p;if(b=this.t4(b)){c(b).trigger(this.K2(a));a.preventDefault();a.stopImmediatePropagation()}this.o4(b)=="pointer"?this.set("cursor",i.he):this.set("cursor",i.cd);this.lR=z}};a.prototype.Mla=function(){this.set("cursor",i.he)};a.prototype.EI=b(q.prototype.EI,"mouse","release");a.prototype.o5=function(a){if(!this.tb)return z;if(this.get("transparencyActive"))return p;var b=this.tb.offset(),c=a.Vca-b.left,d=this.tb.width(),a=a.Wca- b.top,b=this.tb.height();if(c>=0&&a>=0&&c0)return p}return z};a.prototype.eka=function(a,b){var d=this.t4(a);if(d){c(d).trigger(this.K2(b));b.preventDefault();b.stopImmediatePropagation()}};a.prototype.t4=function(a){var b=this.po(),c=b.style.pointerEvents;b.style.pointerEvents="none";a=document.elementFromPoint(a.Vca,a.Wca);setTimeout(function(){b.style.pointerEvents= c},0);return a};a.prototype.K2=function(a){return c.extend(c.Event(a.type),{originalEvent:a.originalEvent,wheelDelta:a.wheelDelta,detail:a.detail,which:1,clientX:a.clientX,clientY:a.clientY,pageX:a.pageX,pageY:a.pageY,screenX:a.screenX,screenY:a.screenY})};a.prototype.o4=function(a){if(a){var b=a.style.cursor;b=="inherit"&&(b=this.o4(a.parentElement))}else b="default";return b};a.prototype.oA=function(){if(this.get("pressed")){this.set("pressed",z);this.trigger(new f(d.Dh))}else{this.set("pressed", p);this.trigger(new f(d.rg))}};a.prototype.ga=function(){var a=z;if(this.n("backgroundOpacityy")||this.n("backgroundColor"))a=p;if(this.n("iconURL")){this.set("url",this.k("iconURL"));this.p("iconURL")}var b=z;if(this.n("mode")){if(this.k("mode")==l.Tc){this.unbind(d.T,this.oA,this,p);this.set("autoPressed",p)}else{this.bind(d.T,this.oA,this,p);this.set("autoPressed",z)}this.p("mode");b=p}if(b||this.n("pressed"))this.k("mode")==l.Eh?this.gy(this.k("pressed")==p):b&&this.gy(z);if(this.n("buttonGroup")){(b= this.k("buttonGroup"))?k.register(this,b):k.uF(this);this.p("buttonGroup")}q.prototype.ga.call(this);if(a){a=this.Ab();if(a.wh()==0||a.pt.length==0){a.yj(0.001);a.Ida(["#000000"])}}};return a}); define("Z",["fd","hH","dT","lc"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});c.A("IconButton",a).B("UIComponent").L({buttonGroup:"string",iconURL:"string",mode:"enum[push, toggle]",horizontalAlign:"enum[left, center, right]",verticalAlign:"enum[bottom, middle, top]",rollOverIconURL:"string",rollOverOpacity:"number",pressed:"bool",pressedIconURL:"string",pressedOpacity:"number",pressedRollOverIconURL:"string",pressedRollOverOpacity:"number",transparencyActive:"bool"}).Ah(["iconURL","rollOverIconURL", "pressedIconURL"]).Vb([e.rg,e.Dh]).Wf([e.T]);return a});define("kb",["fd","dT","gp"],function(a,b,c){a=a.extend(c,function(){c.call(this,z)});b.A("IconHotspotMapOverlay",a).B("HotspotMapOverlay");return a}); define("kI",["require","fd","lc","jw","dT"],function(a){var b=a("fd"),c=a("lc"),e=a("jw"),a=a("dT"),b=b.extend(e,function(){e.call(this)});a.A("Image",b).B("UIComponent").L({horizontalAlign:"enum[center, left, right]",scaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",url:"string",verticalAlign:"enum[bottom, middle, top]"}).Ah(["url"]).Wf([c.T]);return b}); define("gT",["fd","gM","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Label",a).B("UIComponent").L({fontFamily:"string",fontSize:"or[number, size]",fontColor:"color",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",fontStyle:"enum[italic, normal]",horizontalAlign:"enum[left, center, right]",verticalAlign:"enum[top, middle, bottom]",text:"string",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number", textShadowColor:"color",textShadowHorizontalLength:"number",textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]);return a});define("bu",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("bleaching",0);this.set("bleachingDistance",0.4)});a.A("LensFlarePanoramaOverlay",b).B("PanoramaOverlay").L({yaw:"number",pitch:"number",bleaching:"number",bleachingDistance:"number"});return b}); define("kM",["require","fd","dT","gz"],function(a){var b=a("fd"),c=a("dT"),e=a("gz"),a=b.extend(e,function(){e.call(this)});c.A("LivePanorama",a).B("Panorama").L({frameDisplayTime:"number",frameTransitionTime:"number",initialFrameIndex:"number"});a.prototype.SL=function(){return this.get("initialFrameIndex",0)};return a}); define("ia",["require","dm","fd","u"],function(a){var b=a("dm"),c=a("fd"),e=a("u");return{yw:[],Rb:function(a,b,c,e){this.z1(a,b,c,e,z)},eta:function(a,b,c,e){this.z1(a,b,c,e,p)},z1:function(a,f,g,k,i){function n(){for(var b=[],e=0;e=0}.bind(this))};a.prototype.g2=function(){this.trigger(new d(e.rg))};a.prototype.h2=function(){this.trigger(new d(e.Dh))};a.prototype.Z1=function(){this.trigger(new d(e.T))};a.prototype.b2=function(){this.trigger(new d(e.xb))};a.prototype.c2=function(){this.trigger(new d(e.cc))};a.prototype.j2=function(a){this.it.push(a.source);this.mg()};a.prototype.i2=function(a){this.it=this.it.filter(function(b){return b!=a.source});this.mg()}; a.prototype.set=function(a,b){this.nq[a]=b;this.$f.forEach(function(a){a.N(this.nq)}.bind(this));this.mg()};a.prototype.mg=function(){this.$f.forEach(function(a){a.get("state")==k.za&&this.it.indexOf(a)>=0?a.set("state",k.Za):a.get("state")==k.Za&&this.it.indexOf(a)<0&&a.set("state",k.za)}.bind(this))};return a}); define("eQ","require,dm,fd,lc,bY,fj,R,b,d,kj,kw".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("fj"),g=a("R"),k=a("b"),i=a("d");a("kj");a("kw");var n=c.extend(k,function(){k.call(this);this.Xc("PlaybackBar");this.$h=this.Td=r;this.Ge=[];this.DJ=z;this.iU=this.qu=m;this.IV=z});n.lb={cursor:g.he,overflow:"visible",height:20,position:0,duration:100,steps:m,selectedStep:m,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:m,barBackgroundColorRatios:m, barBorderColor:m,barBorderRadius:m,barBorderSize:m,barOpacity:m,liveDragging:m,playheadBackgroundColor:"#FFFFFF",playheadBackgroundColorDirection:m,playheadBackgroundColorRatios:m,playheadBorderColor:m,playheadBorderRadius:m,playheadBorderSize:m,playheadOpacity:m,playheadWidth:5,playheadHeight:30,playheadShadow:p,playheadShadowBlurRadius:3,playheadShadowColor:"#000000",playheadShadowHorizontalLength:0,playheadShadowOpacity:m,playheadShadowSpread:0,playheadShadowVerticalLength:3,stepBackgroundColor:"#FFFFFF", stepBackgroundColorDirection:m,stepBackgroundColorRatios:m,stepBorderColor:m,stepBorderRadius:6,stepBorderSize:0,stepOpacity:1,stepWidth:12,stepHeight:12,stepShadow:p,stepShadowBlurRadius:6,stepShadowColor:"#000000",stepShadowHorizontalLength:0,stepShadowOpacity:m,stepShadowSpread:0,stepShadowVerticalLength:0,selectedStepBackgroundColor:"#3399FF",selectedStepBackgroundColorDirection:m,selectedStepBackgroundColorRatios:m,selectedStepBorderColor:"#ffffff",selectedStepBorderRadius:10,selectedStepBorderSize:2, selectedStepOpacity:1,selectedStepWidth:20,selectedStepHeight:20,selectedStepShadow:p,selectedStepShadowBlurRadius:3,selectedStepShadowColor:"#000000",selectedStepShadowHorizontalLength:0,selectedStepShadowOpacity:m,selectedStepShadowSpread:0,selectedStepShadowVerticalLength:0};b.defaults(n.lb,k.lb);n.prototype.ya=function(){this.Rj(n.lb)};n.prototype.Ia=function(){k.prototype.Ia.call(this);(!this.Td||!this.$h)&&this.bind(e.yb,this.noa,this,p);if(this.Td==r){this.Td=new i;this.Td.N({left:"0",height:"100%", cursor:g.he});this.ma(this.Td)}if(this.$h==r){this.$h=new i;this.$h.N({left:"0",cursor:g.he});this.$h.bind(e.yb,this.qoa,this,p);this.$h.bind(e.xb,this.ooa,this,p);this.Ua().bind(e.Lc,this.X7,this,p);this.bind(e.T,this.loa,this,p);this.$h.bind(e.cc,this.poa,this,p);this.ma(this.$h)}var a=this.get("steps")||0;if(this.Ge.length!=a){for(;this.Ge.length>a;)this.kja(this.Ge.pop());for(;this.Ge.lengthe)d.ja=2*Math.atan2(a.x,a.w),d.kd=Math.PI/2, d.pitch=0;else{var f=a.x*a.x,g=a.z*a.z;d.ja=-Math.atan2(2*a.y*a.w-2*a.x*a.z,1-2*a.y*a.y-2*g);d.kd=-Math.asin(2*e);d.pitch=Math.atan2(2*a.x*a.w-2*a.y*a.z,1-2*f-2*g);d.pitch=Math.min(Math.PI/2,Math.max(-Math.PI/2,d.pitch))}d.ja*=b;d.pitch*=b;d.kd*=-b;return d},ja:function(a){var e=a.x*a.y+a.z*a.w;return 0.499e?2*Math.atan2(a.x,a.w)*b:-Math.atan2(2*a.y*a.w-2*a.x*a.z,1-2*a.y*a.y-2*a.z*a.z)*b}}}); define("ku",["require"],function(){var a={};a.degToRad=Math.PI/180;a.radToDeg=180/Math.PI;a.Vector2=function(a,c){this.x=a||0;this.y=c||0};a.Vector2.prototype={constructor:a.Vector2,set:function(a,c){this.x=a;this.y=c;return this},copy:function(a){this.x=a.x;this.y=a.y;return this}};a.Vector3=function(a,c,e){this.x=a||0;this.y=c||0;this.z=e||0};a.Vector3.prototype={constructor:a.Vector3,set:function(a,c,e){this.x=a;this.y=c;this.z=e;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this}, length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},normalize:function(){var a=this.length();0!==a?this.Sca(1/a):this.z=this.y=this.x=0;return this},Sca:function(a){this.x*=a;this.y*=a;this.z*=a},applyQuaternion:function(a){var c=this.x,e=this.y,d=this.z,f=a.x,g=a.y,k=a.z,a=a.w,i=a*c+g*d-k*e,n=a*e+k*c-f*d,j=a*d+f*e-g*c,c=-f*c-g*e-k*d;this.x=i*a+c*-f+n*-k-j*-g;this.y=n*a+c*-g+j*-f-i*-k;this.z=j*a+c*-k+i*-g-n*-f;return this},Wta:function(a){return this.x*a.x+this.y*a.y+this.z* a.z},Sta:function(a,c){var e=a.x,d=a.y,f=a.z,g=c.x,k=c.y,i=c.z;this.x=d*i-f*k;this.y=f*g-e*i;this.z=e*k-d*g;return this}};a.Quaternion=function(a,c,e,d){this.x=a||0;this.y=c||0;this.z=e||0;this.w=d!==m?d:1};a.Quaternion.prototype={constructor:a.Quaternion,set:function(a,c,e,d){this.x=a;this.y=c;this.z=e;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;return this},Kda:function(a,c,e){var d=Math.cos(a/2),f=Math.cos(c/2),g=Math.cos(e/2),a=Math.sin(a/2),c=Math.sin(c/ 2),e=Math.sin(e/2);this.x=a*f*g+d*c*e;this.y=d*c*g-a*f*e;this.z=d*f*e-a*c*g;this.w=d*f*g+a*c*e;return this},setFromAxisAngle:function(a,c){var e=c/2,d=Math.sin(e);this.x=a.x*d;this.y=a.y*d;this.z=a.z*d;this.w=Math.cos(e);return this},multiply:function(a){return this.Rca(this,a)},Rca:function(a,c){var e=a.x,d=a.y,f=a.z,g=a.w,k=c.x,i=c.y,n=c.z,j=c.w;this.x=e*j+g*k+d*n-f*i;this.y=d*j+g*i+f*k-e*n;this.z=f*j+g*n+e*i-d*k;this.w=g*j-e*k-d*i-f*n;return this},inverse:function(){this.x*=-1;this.y*=-1;this.z*= -1;this.normalize();return this},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);0===a?(this.z=this.y=this.x=0,this.w=1):(a=1/a,this.x*=a,this.y*=a,this.z*=a,this.w*=a);return this},yya:function(a,c){if(0===c)return this;if(1===c)return this.copy(a);var e=this.x,d=this.y,f=this.z,g=this.w,k=g*a.w+e*a.x+d*a.y+f*a.z;0>k?(this.w=-a.w,this.x=-a.x,this.y=-a.y,this.z=-a.z,k=-k):this.copy(a);if(1<=k)return this.w=g,this.x=e,this.y=d,this.z=f,this;var i=Math.acos(k), n=Math.sqrt(1-k*k);if(0.001>Math.abs(n))return this.w=0.5*(g+this.w),this.x=0.5*(e+this.x),this.y=0.5*(d+this.y),this.z=0.5*(f+this.z),this;k=Math.sin((1-c)*i)/n;i=Math.sin(c*i)/n;this.w=g*k+this.w*i;this.x=e*k+this.x*i;this.y=d*k+this.y*i;this.z=f*k+this.z*i;return this},Lda:function(){var b,c;return function(e,d){b===m&&(b=new a.Vector3);c=e.Wta(d)+1;1.0E-6>c?(c=0,Math.abs(e.x)>Math.abs(e.z)?b.set(-e.y,e.x,0):b.set(0,-e.z,e.y)):b.Sta(e,d);this.x=b.x;this.y=b.y;this.z=b.z;this.w=c;this.normalize(); return this}}()};return a}); define("ec",["require","lc","bY","eL","ku"],function(a){function b(){n||(n=p,o=new i.Vector3(0,0,1),t=new i.Quaternion,s=new i.Quaternion(-Math.sqrt(0.5),0,0,Math.sqrt(0.5)),u=new i.Quaternion,e(),window.addEventListener("orientationchange",e,z),window.addEventListener("deviceorientation",d,z),c())}function c(){if(v&&!(l===m||q===m)){v=z;var a=i.degToRad*q;u.Kda(i.degToRad*l.beta,i.degToRad*l.alpha,-(i.degToRad*l.gamma));u.multiply(s);u.multiply(t.setFromAxisAngle(o,-a));w||(x++,5<=x&&(w=p,j.trigger(new g(f.Db)))); j.trigger(new g(f.aa))}}function e(){q=window.orientation||0;v=p;c()}function d(a){l=a;v=p;c()}var f=a("lc"),g=a("bY"),k=a("eL"),i=a("ku"),n=z,j=new k,l,q,o,t,s,u,v,w=z,x=0;b.prototype.un=function(){c();return u};b.prototype.bind=function(){j.bind.apply(j,arguments)};b.prototype.unbind=function(){j.unbind.apply(j,arguments)};b.prototype.stop=function(){window.removeEventListener("orientationchange",e,z);window.removeEventListener("deviceorientation",d,z)};return b}); define("gL","require,lc,bY,eL,r,ku".split(","),function(a){function b(a){this.Wva=a;this.CX=new d;this.DL=new d;this.VY=new d;this.ev=new n.Quaternion;this.UY=new n.Quaternion;this.Baa=new n.Quaternion;this.Bca=z;this.GL=new n.Vector3;this.IY=new n.Vector3;this.fva=new n.Quaternion}function c(){this.Oca=z;this.Nca=0;this.eE=new n.Vector3;this.ZL=new n.Vector3;this.filter=new b(l);this.zwa=new e(q);this.bz=o.bz();this.uj=o.uj();o.QX();this.CY=o.Fva();this.IL=new n.Quaternion;o.uj()?this.IL.setFromAxisAngle(new n.Vector3(1, 0,0),Math.PI/2):this.IL.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);this.sY=new n.Quaternion;this.Bz=new n.Quaternion;this.owa=new n.Quaternion;this.owa.setFromAxisAngle(new n.Vector3(0,0,1),-window.orientation*Math.PI/180);this.Xda();o.Kva()&&this.IL.multiply(this.sY);this.pda=new n.Quaternion;this.bz=o.bz();this.uj=o.uj();this.Eva=o.QX()>=66;this.wv=this.wv.bind(this);this.PE=this.PE.bind(this);this.OE=this.OE.bind(this);screen&&screen.orientation&&screen.orientation.addEventListener?screen.orientation.addEventListener("change", this.wv):window.addEventListener("orientationchange",this.wv);this.CY?window.addEventListener("deviceorientation",this.PE):window.addEventListener("devicemotion",this.OE)}function e(a){this.Awa=a;this.BM=new n.Quaternion;this.mz=r;this.Yaa=new n.Quaternion;this.RE=new n.Quaternion}function d(a,b){this.set(a,b)}var f=a("lc"),g=a("bY"),k=a("eL"),i=a("r"),n=a("ku"),j=new k,l=0.98,q=0.04;b.prototype.dta=function(a,b){this.CX.set(a,b)};b.prototype.hta=function(a,b){this.DL.set(a,b);o.Tva(b-this.VY.WM)&& this.Ywa();this.VY.copy(this.DL)};b.prototype.Ywa=function(){if(this.Bca){var a=this.gva(this.DL.sample,this.DL.WM-this.VY.WM);this.fva.multiply(a);this.ev.copy(this.UY);this.ev.multiply(a);a=new n.Quaternion;a.copy(this.ev);a.inverse();this.GL.set(0,0,-1);this.GL.applyQuaternion(a);this.GL.normalize();this.IY.copy(this.CX.sample);this.IY.normalize();a=new n.Quaternion;a.Lda(this.GL,this.IY);a.inverse();var b=new n.Quaternion;b.copy(this.ev);b.multiply(a);this.ev.yya(b,1-this.Wva);this.UY.copy(this.ev)}else{this.Baa= this.cta(this.CX.sample);this.UY.copy(this.Baa);this.Bca=p}};b.prototype.un=R("ev");b.prototype.cta=function(a){var b=new n.Vector3;b.copy(a);b.normalize();a=new n.Quaternion;a.Lda(new n.Vector3(0,0,-1),b);a.inverse();return a};b.prototype.gva=function(a,b){var c=new n.Quaternion,d=new n.Vector3;d.copy(a);d.normalize();c.setFromAxisAngle(d,a.length()*b);return c};c.prototype.stop=function(){screen&&screen.orientation&&screen.orientation.addEventListener&&screen.orientation.removeEventListener("change", this.wv);window.removeEventListener("orientationchange",this.wv);window.removeEventListener("deviceorientation",this.PE);window.removeEventListener("devicemotion",this.OE)};c.prototype.ds=S(r);c.prototype.un=function(){var a=m;if(this.CY&&this.dH){this.$aa=this.$aa||function(){var a=(new n.Quaternion).setFromAxisAngle(new n.Vector3(0,0,-1),0),b=new n.Quaternion;this.eK=="landscape-secondary"?b.setFromAxisAngle(new n.Vector3(0,1,0),Math.PI/-2):b.setFromAxisAngle(new n.Vector3(0,1,0),Math.PI/2);return a.multiply(b)}(); this.Zaa=this.Zaa||function(){var a=new n.Quaternion;a.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);return a}();var a=this.dH,b=new n.Quaternion;b.copy(a);b.multiply(this.Zaa);b.multiply(this.pda);b.multiply(this.Bz);b.Rca(this.$aa,b);if(this.dBa){b.x=0;b.z=0;b.normalize()}this.yM[0]=b.x;this.yM[1]=b.y;this.yM[2]=b.z;this.yM[3]=b.w;return this.yM}a=this.zwa.Vua(this.filter.un(),this.ZL,this.mz);b=new n.Quaternion;b.copy(this.IL);b.multiply(this.pda);b.multiply(a);b.multiply(this.Bz);return b}; c.prototype.PE=function(a){this.dH=this.dH||new n.Quaternion;var b=a.alpha,c=a.$za,a=a.oAa,b=(b||0)*Math.PI/180,c=(c||0)*Math.PI/180,a=(a||0)*Math.PI/180;this.dH.Kda(c,b,-a)};c.prototype.OE=function(a){var b=a.rotationRate;if(b){var c=a.accelerationIncludingGravity,a=a.timeStamp/1E3;this.bz&&(a=a/1E3);var d=a-this.mz;if(d<=o.J_||d>o.H_)this.mz=a;else{this.eE.set(-c.x,-c.y,-c.z);this.ZL.set(b.alpha,b.beta,b.gamma);(this.uj||this.bz||this.Eva)&&this.ZL.Sca(Math.PI/180);this.filter.dta(this.eE,a);this.filter.hta(this.ZL, a);this.mz=a;if(!this.Oca){this.Nca++;if(this.Nca>=5){this.Oca=p;j.trigger(new g(f.Db))}}this.eK!=this.kba()&&this.wv();j.trigger(new g(f.aa))}}else{this.CY=p;window.addEventListener("deviceorientation",this.PE);window.removeEventListener("devicemotion",this.OE)}};c.prototype.bind=function(){j.bind.apply(j,arguments)};c.prototype.unbind=function(){j.unbind.apply(j,arguments)};c.prototype.wv=function(){this.Xda();j.trigger(new g(f.aa))};c.prototype.Xda=function(){this.Bz.set(0,0,0,1);this.eK=this.kba(); switch(this.eK){case "landscape-primary":this.Bz.setFromAxisAngle(new n.Vector3(0,0,1),-Math.PI/2);break;case "landscape-secondary":this.Bz.setFromAxisAngle(new n.Vector3(0,0,1),Math.PI/2)}this.sY.copy(this.Bz);this.sY.inverse()};c.prototype.kba=function(){var a=screen.orientation&&screen.orientation.type;if(!a)switch(window.orientation){case 0:a="portrait-primary";break;case 90:a="landscape-primary";break;case -90:a="landscape-secondary";break;case 180:a="portrait-secondary"}a=="landscape-primary"&& (this.eE.z>4.9||this.eE.z<-4.9?a=this.eK||a:this.eE.x>0&&(a="landscape-secondary"));return a};e.prototype.Vua=function(a,b,c){if(!this.mz){this.BM.copy(a);this.mz=c;return a}c=new n.Vector3;c.copy(b);c.normalize();b=b.length();if(bo.H_?z:p}};o.uj=function(){var a=/iPad|iPhone|iPod/.test(navigator.platform);return function(){return a}}();o.AAa=function(){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return function(){return a}}();o.bz=function(){var a=navigator.userAgent.indexOf("Firefox")!==-1&&navigator.userAgent.indexOf("Android")!==-1;return function(){return a}}();o.QX=function(){var a=navigator.userAgent.match(/.*Chrome\/([0-9]+)/), b=a?parseInt(a[1],10):r;return function(){return b}}();o.Fva=function(){var a=z;if(o.QX()===65){var b=navigator.userAgent.match(/.*Chrome\/([0-9\.]*)/);if(b)var b=b[1].split("."),c=b[3],a=parseInt(b[2],10)===3325&&parseInt(c,10)<148}else"getVRDisplays"in navigator&&i.browser()==i.wi&&i.qE()&&i.Hc()==i.BF&&(a=p);return function(){return a}}();o.Kva=function(){return window.orientation==90||window.orientation==-90};return c}); define("fQ","require,fd,lc,bY,eL,kl,r,ec,gL,jk".split(","),function(a){function b(){function a(){q=p;j.trigger(new e(c.aa))}function b(){var e;t&&(d||!l)?e=u:l&&(e=f);if(o!=e){if(o){o.unbind(c.aa,a);o.stop()}if(o=e){o.bind(c.aa,a,this,p);a()}}}var d=g.Xd()==g.Hj||n.Vf("debug")&&n.xn("sensor")=="deviceorientation",f=new i,l=z;f.bind(c.Db,function(){l=p;b()},this,p);var u=new k,t=z;u.bind(c.Db,function(){t=p;b()},this,p)}a("fd");var c=a("lc"),e=a("bY"),d=a("eL"),f=a("kl"),g=a("r"),k=a("ec"),i=a("gL"), n=a("jk"),j=new d,l={},q=z,o,t=[],s=z,u=z;l.$Y=function(a){a&&t.push(a);if(l.disabled){if(g.Xd()==g.Hj&&window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(function(a){if(a==="granted"){u=p;c()}});DeviceMotionEvent.requestPermission().then(function(a){if(a==="granted"){s=p;c()}});var c=function(){if(l.disabled&&s&&u){l.disabled=z;for(b();t.length;)t.pop()()}};c()}}else for(;t.length;)t.pop()()};l.bind=function(a,b){j.bind(c.aa,a,b)};l.unbind= function(a,b){j.unbind(c.aa,a,b)};l.nwa=function(){return q};l.un=function(){q=z;if(o){var a=o.un(),a=f.OZ(a);return{yaw:a.ja,pitch:a.pitch,roll:a.kd}}return{yaw:0,pitch:0,roll:0}};if(g.Xd()==g.GO||g.Xd()==g.hfa){l.available=z;l.disabled=z}else if(g.Xd()==g.XZ&&g.browser()==g.wi&&window.location.protocol!="https:"&&window.location.hostname!="localhost"){l.available=p;l.disabled=p}else if(g.Xd()==g.Hj){l.available=p;l.disabled=p;if(!window.DeviceMotionEvent||!DeviceMotionEvent.requestPermission){var v= function(){window.removeEventListener("deviceorientation",v,z);l.disabled=z;b()};window.addEventListener("deviceorientation",v,z)}else l.$Y()}else{l.available=window.DeviceMotionEvent!=m;l.disabled=z}l.available&&!l.disabled&&b();return l});define("jC",["require"],function(){return{Bza:"single",FRONT:"front",oa:"left",BACK:"back",Ka:"right",kb:"top",jb:"bottom"}}); define("gS",["require","jC"],function(a){var a=a("jC"),b={},c=Math.PI/180,e=new THREE.Matrix4;new THREE.Matrix4;var d=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];b.Jd=Math.pow(10,3);b.rN=0.5*b.Jd;b.Cfa=b.Jd;b.A0=[a.FRONT,a.Ka,a.BACK,a.oa,a.kb,a.jb];b.Taa=function(a,c){for(var d=b.Jd,e=b.rN,n=a*c,j=this.eo(),l=[],q=0,o=6*n;q=v)))return s=c.origin.x+c.direction.x*v-j.x,u=c.origin.y+c.direction.y*v-j.y,j=c.origin.z+c.direction.z*v-j.z,c=(b*s+n*u+o*j)/(b*b+n*n+o*o),j=(l*s+t*u+q*j)/(l*l+t*t+q*q),b=a.faceVertexUvs[0][0][0],n= a.faceVertexUvs[0][1][2],l=a.faceVertexUvs[0][0][1],a=b.x+(n.x-b.x)*c+(l.x-b.x)*j,b=b.y+(n.y-b.y)*c+(l.y-b.y)*j,0>c||1j||1=w))){u=e.origin.x+e.direction.x*w-j.x;v=e.origin.y+e.direction.y*w-j.y;e=e.origin.z+e.direction.z*w-j.z;if(0!=(j=s*c-l*o))c=(v*c-u*o)/j,o=(v*l-u*s)/-j;else if(0!=(j=q*c-l*t))c=(v*c-u*o)/j,o=(v*l-u*s)/-j;else if(0!=(j=q*o-s*t))c=(e*o-v*t)/j,o=(e*s-v*q)/-j;else return;if(!(0>o||1c||1a;a++){var n=d[(a+3)%4],j=d[a],q=d[(a+1)%4];if(0>=j.z)l[c++]=j;else{if(0>=n.z){var o=d[e++],t=n.z/(n.z-j.z);o.x=n.x+(j.x-n.x)*t;o.y=n.y+(j.y-n.y)*t;o.z=-1.0E-5;l[c++]=o}0>=q.z&&(o=d[e++],t=j.z/(j.z-q.z),o.x=j.x+(q.x-j.x)*t,o.y=j.y+(q.y-j.y)*t,o.z=-1.0E-5,l[c++]=o)}}if(2c.x&&-1>e.x&&-1>n.x||1c.y&&-1>e.y&&-1>n.y))return p}return z};b.Uaa=function(a, d,e,i,n,j,l,q,o){for(var t=a*c,s=0.5*-t+0.5*Math.PI,u=d*c,v=0.5*(Math.PI-u)-e*c,w=0.5*b.Cfa,x=64/Math.PI,y=Math.max(2,Math.ceil(t/i*x)),x=Math.max(2,Math.ceil(u/n*x)),F=i*y,A=n*x,M=this.eo(),E=0,J=[],B=0;B<=A;B++){for(var G=[],H=v+B*u/A,I=0;I<=F;I++){var N=-(s+I*t/F);M.vertices.push(new THREE.Vector3(-w*Math.cos(N)*Math.sin(H),+w*Math.cos(H),+w*Math.sin(N)*Math.sin(H)));G.push(E++)}J.push(G)}for(s=t=0;s',w='',x='',y='',F='';if(f.Wa()){s=s+" margin:0 1vmin; min-width:20vmin; padding:2.2vmin 4vmin; font-size:3.6vmin; font-weight:bold; min-width:30vmin;";l=l+" font-size:3.6vmin; line-height:4.3vmin;";q=q+" margin:5vmin 0;";o=o+" margin:5vmin 0;";t=t+" margin:3vmin 0;";u=u+" height:4vmin; margin:0 1vmin 0 0; width:4vmin;"}else s= s+" font-size:19px; padding:17px 34px;";q=q+l;b.prototype.mQ=function(){if(!this.sg){this.sg=c("
");this.sg.css({position:"fixed","z-index":k.cfa,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});this.sg.html(this.yia);c(this.sg).find("button").on("click",function(a){this.Xma(c(a.currentTarget).attr("id"))}.bind(this))}};b.prototype.fV=function(a,b){var c={},d;for(d in b)c[d]=a.css(d);this.MV.push({$el:a,css:c});a.css(b)};b.prototype.gpa= function(){for(;this.MV.length;){var a=this.MV.pop();a.$el.css(a.css)}};b.prototype.show=function(a,b,d){a||(a=C());b||(b=C());if(this.aD){var f=this.UG;this.UG=function(){f();a()};var e=this.HG;this.HG=function(){e();b()}}else{this.mQ();this.UG=a;this.HG=b;var i=this.Bka();if(i===m){this.aD=p;var j=this,i=c(n.Wl()||document.body);if(d!==p)i.children().each(function(){j.fV(c(this),{visibility:"hidden"})});else{this.fV(i,{overflow:"hidden"});i.children().each(function(){j.fV(c(this),{position:"absolute", "z-index":0})})}i.append(this.sg)}else{this.aD=z;i?this.UG():this.HG()}}};b.prototype.hide=function(){if(this.aD){this.aD=z;this.sg.detach();this.gpa()}};b.prototype.Bka=function(){var a=j.getItem(this.n4());if(a=="true")return p;if(a=="false")return z};b.prototype.i9=function(a){j.setItem(this.n4(),a?"true":"false")};b.prototype.n4=function(){return this.Wsa+"DontDisplay:"+window.location.pathname};b.prototype.Xma=function(a){var b=c("#tdvvriw_dontdisplay").is(":checked");this.hide();if(a=="tdvvriw_continue"){this.UG(); b&&this.i9(p)}else if(a=="tdvvriw_cancel"){this.HG();b&&this.i9(z)}};var a=e.extend(b,function(){var a=['
\n
',v,'
'+d("use-cardboard-info")+"
",'
","
",'
',"
",'
','
'+ d("samsung-internet-vr-app-info")+"
",'
","
",y,"
\n
",'
','","
"].join("\n");b.call(this,"ChromeAppInfoWindow",a)}),A=e.extend(b, function(){var a=['
\n
',v,'
'+d("use-cardboard-info")+"
",'
',"
",'
',"
",'
','
'+d("samsung-internet-vr-info")+"
","
",y,"
\n
", '
','","
"].join("\n");b.call(this,"SamsungInternetInfoWindow",a)}),M=e.extend(b,function(){b.call(this,"SamsungInternetForGearVRInfoWindow",['
\n
', y,'
This content requires access to the WebVR API.
To enable WebVR open the "More" menu you\'ll find above this window and then click on the "Labs" item.
','
',"
\n
"].join("\n"))}),E=e.extend(b,function(){var a=['
','
','
","
"].join("\n");b.call(this,"ExternalVRDisplayVRInfoWindow",a)});E.prototype.mQ=function(){b.prototype.mQ.call(this);g.Lg("vrv")===p&&this.sg.css({background:"none"})};var J=e.extend(b,function(){var a;a=f.browser()==f.wf?window.location.protocol!="https:"?"
"+d("giroscope-disabled-http")+"
":window.DeviceMotionEvent.requestPermission? d("giroscope-disabled-safari-request-permission").map(function(a){return"
"+a+"
"}).join("\n"):d("giroscope-disabled-safari-toggle-on"):"
"+d("giroscope-disabled-http")+"
";a=['
\n
','
',a,"
",'
',"
\n
", '
','","
"].join("\n");b.call(this,"GiroscopeDisabledInfoWindow",a)}),B=e.extend(b,function(){var a=['
\n
', v,'
'+d("use-cardboard-info")+'
","
",'
',"
",y,'
It looks like this device is compatible with Gear VR. If you have a Gear VR headset you can view this content using the Carmel Web Browser (by Oculus).
','
',"
\n
"].join("\n");b.call(this,"CarmelInstallationPromptVRInfoWindow", a)}),G=e.extend(b,function(){var a=['
\n
',v,'
'+d("cardboard-v1")+"
",'
","
",'
',"
",'
'+d("cardboard-v2")+"
",'
",x,"
\n
",'
','","
"].join("\n");b.call(this,"CardboardV2InfoWindow",a)}),H=e.extend(b,function(){var a=['
', '
','
","
"].join("\n");b.call(this,"EnterVRInfoWindow",a)}),I=e.extend(b,function(){b.call(this,"PreparingVRInfoWindow",['
','
Preparing VR...
',"
"].join("\n"))}), N=e.extend(b,function(){var a=['
',w,'
\n
',F,'
'+d("use-safari-for-vr")+"
",'
',"
",'
','","
"].join("\n");b.call(this,"UseSafariVRInfoWindow",a)}),e=e.extend(b,function(){var a=['
','','
\n
\n
', '','
'+d("rotate-device")+"
","
\n
"].join("\n");b.call(this,"RotateVRInfoWindow",a)}),O={};O.Bfa=new A;O.Aza=new M;O.x_=new E;O.hza=new B;O.lza=new H;O.uza=new I;O.L0=new N;O.Oz=new e;O.C_=new J;O.Gea=new a;O.oN=new G;return O});define("cv",["require"],function(){return{ys:"Cardboard",Rfa:"WebVR",Sfa:"WebXR"}}); define("fH","require,iO,r,gi,jk,V".split(","),function(a){var b=a("iO"),c=a("r"),e=a("gi"),d=a("jk");a("V");var f={Uva:function(a){return this.IE(a)||this.Gca(a)?p:z},Pn:function(){var a=c.Bwa();f.Pn=function(){return a};return a},Gca:function(a){return typeof a=="string"&&e.is(a,e.Ei)?p:z},zAa:function(a){return this.xY(a)||this.yY(a)?p:z},yY:function(a){return typeof a=="string"&&(e.is(a,e.afa)||e.tv(a,e.bfa))?p:z},IE:function(a){return!!a&&!!a.tagName&&a.tagName=="VIDEO"},es:function(a){return typeof a== "string"&&e.is(a,e.Gj)||this.IE(a)&&e.is(a.currentSrc,e.Gj)?p:z},yh:function(a){return typeof a=="string"&&e.is(a,e.Ei)||this.IE(a)&&e.is(a.currentSrc,e.Ei)?p:z},xY:function(a){return!!a&&!!a.tagName&&a.tagName=="IMG"},wca:function(a){return!!a&&!!a.tagName&&a.tagName=="CANVAS"},Cba:function(a){return Math.pow(2,Math.round(Math.log(a)/Math.LN2))},Dca:function(a){return a!==0&&(a&a-1)===0},yca:function(){return c.browser()==c.xi},Nva:function(){return c.browser()==c.Up},uj:function(){return c.Xd()== c.Hj},xea:function(a){if(k)return p;if(c.yX()&&c.YE()<15.1)if(c.YE()>=15){if(c.bca())return p}else if(f.es(a))return p;if(f.Nva())return p;if(f.uj()){if(c.Yr()==c.Wv&&c.sv()>=15)return z;if(f.es(a)){if(!b.oca||c.sv()>=14&&c.sv()<14.6)return p}else if(c.sv()<12||a&&a.videoWidth&&a.videoHeight&&a.videoWidth*a.videoHeight<=262144)return p}return z},gca:function(){return f.yca()||f.uj()},fca:function(){return f.uj()&&b.oca&&c.sv()<11}},g=z;f.qca=function(){g=z};f.Dva=function(){return g};f.hxa=function(){g= p};var k=d.Vf("vic");f.xwa=function(){f.uj()&&(k=p)};f.BX=function(a,b){var d={alpha:p,depth:p,stencil:p,antialias:c.Eca()||c.Hva()||c.wY()?z:b||z,premultipliedAlpha:p,preserveDrawingBuffer:z,powerPreference:"default",failIfMajorPerformanceCaveat:z,xrCompatible:!f.yca()};return a.getContext("webgl",d)||a.getContext("experimental-webgl",d)};f.getPixelRatio=function(){if(c.Wa()){var a,b,d;try{a=window.top.innerWidth;b=window.top.innerHeight;d=p}catch(f){d=z}var e=window.devicePixelRatio||1;if(d){a= [Math.max(document.documentElement.clientWidth,a||0),Math.max(document.documentElement.clientHeight,b||0)].sort(function(a,b){return b-a});e=[screen.width*e,screen.height*e].sort(function(a,b){return b-a});e=[e[0]/a[0],e[1]/a[1]].sort()[0]}if(e!==Infinity)return e}else if(c.Xd()==c.efa&&c.browser()==c.wi)return 1;return window.devicePixelRatio};return f}); define("db","require,fd,jquery.mod,dm,lb,bI,lc,r,d,kj,kw".split(","),function(a){function b(){this.Gc=z;this.rD=r;this.ea=this.W=100;this.nS=this.Gf=m;this.oS=100;this.I=document.createElement("div");this.I.style.opacity=0;this.I.style.display="none";this.I.style.XAa="opacity 0.3s";this.I.addEventListener("transitionend",this.bW.bind(this));this.zd=document.createElement("div");this.Eda(p);this.zd.style.position="absolute";this.zd.style.left=0;this.zd.style.top=0;this.zd.style.right=0;this.zd.style.bottom= 0;this.I.appendChild(this.zd);this.tb=document.createElement("img");this.tb.style.cursor="pointer";this.tb.style.position="absolute";this.tb.style.left="50%";this.tb.style.top="50%";this.tb.style.transform="translate(-50%, -50%)";this.I.appendChild(this.tb);this.JO=d(this.I)}function c(a,b){this.reason=a;this.mp=b}var e=a("fd"),d=a("jquery.mod");a("dm");a("lb");var f=a("bI");EventName=a("lc");Device=a("r");UIComponent=a("d");FadeInEffect=a("kj");FadeOutEffect=a("kw");var g=e.extend(UIComponent,function(){UIComponent.call(this); this.Xc("UserInteractionWindow");this.bb=r;this.Nm=[];var a=new FadeInEffect;a.set("duration",500);a.set("easing","cubic_in");var b=new FadeOutEffect;b.set("duration",500);b.set("easing","cubic_out");this.N({contentOpaque:p,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:z});this.bind(EventName.yb,this.RW,this,p);this.bind(EventName.T,this.Msa,this,p)});g.prototype.RW=function(){this.bb&&this.bb.setSize(this.Gd(),this.Fd())};g.prototype.Msa=function(){var a=this.Nm.slice();this.Nm= [];this.$K();a.forEach(function(a){a.mp.call(a.context)})};g.prototype.Ia=function(){UIComponent.prototype.Ia.call(this);if(!this.bb){this.bb=new b;this.bb.setSize(this.Gd(),this.Fd());this.bb.$e(p);this.Pa().append(this.bb.Cb().css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}));this.$K()}};g.prototype.Vk=function(){UIComponent.prototype.Vk.call(this);this.getParent().bind(EventName.yb,this.RW,this,p);g.uga(this)};g.prototype.gj=function(){this.getParent().unbind(EventName.yb, this.RW,this,p);UIComponent.prototype.gj.call(this);g.Toa(this)};g.prototype.Uwa=function(a){this.Br(i,a)};g.prototype.aZ=function(a){this.Br(k,a)};g.prototype.Br=function(a,b){this.Nm.push(new c(a,b));this.Nm.sort(function(a,b){return n[a.reason]-n[b.reason]});this.$K()};g.prototype.zta=function(a){this.cancel(i,a)};g.prototype.xta=function(){this.cancel(k,m)};g.prototype.cancel=function(a,b){var c=this.jla(a,b);c>=0&&this.$oa(c)};g.prototype.d2=function(){this.mG(p)};g.prototype.vG=function(){this.mG(z)}; g.prototype.jla=function(a,b){for(var c=0;c0?this.Nm[0]:r};var k="vr",i="play",n={};n[k]=0;n[i]=1;b.prototype.Cb= R("JO");b.prototype.setSize=function(a,b){if(this.W!==a||this.ea!==b){this.W=a;this.ea=b;this.aL()}};b.prototype.Eda=function(a){this.zd.style.backdropFilter=a?"blur(8px)":"none"};b.prototype.$e=function(a){if(this.Gc!=a){this.Gc=a;if(this.rD){clearTimeout(this.rD);this.rD=r}if(this.Gc){this.I.style.display="block";this.I.style.opacity=0;this.rD=setTimeout(function(){this.rD=r;this.I.style.opacity=1}.bind(this),30)}else this.I.style.opacity=0}};b.prototype.qZ=function(a){if(this.Gf!=a){this.Gf=a; this.ksa()}};b.prototype.bW=function(){if(!this.Gc)this.I.style.display="none"};b.prototype.ksa=function(){switch(this.Gf){case b.eO:this.nS=f.Qs;this.oS=f.wfa;break;case b.E_:this.nS=f.Nfa;this.oS=f.Pfa}this.tb.src=this.nS;this.aL()};b.prototype.aL=function(){if(Device.Wa()){this.tb.style.maxWidth=Math.round(this.W*0.5)+"px";this.tb.style.width="20vmin"}else{this.tb.style.maxWidth=Math.round(this.W*0.33)+"px";this.tb.style.width=this.oS+"px"}};b.eO="play";b.E_="vr";g.h0=b;g.Vc=[];g.ZT=[];g.uga=function(a){g.Vc.push(a); g.ZT.forEach(function(b){g.h5(a,b)});g.ZT=[]};g.Toa=function(a){g.Vc.splice(g.Vc.indexOf(a),1)};g.ready=function(){return g.Vc.length>0};g.aZ=function(a){g.Vc.length?g.Vc.forEach(function(b){g.h5(b,a)}):g.ZT.push(a)};g.h5=function(a,b){a.aZ(function(){g.Vc.forEach(function(b){b!=a&&b.xta()});b()})};return g}); define("kS",["require"],function(){var a={Fj:{}};a.Fj.NONE="none";a.Fj.oa="left";a.Fj.Ka="right";a.Xg=function(){this.y=this.x=0;this.height=this.width=1};a.M0=function(){this.eye=a.Fj.NONE;this.viewport=new a.Xg;this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.projectionMatrix=new THREE.Matrix4};a.Uea=function(){this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.views=[];this.OL=[]};a.gfa=function(){this.pE=r;this.zk=200;this.pj=100;this.KL=1};return a}); define("df",["require"],function(){return{KF:"gaze",dO:"gaze_click"}}); define("fx","require,fd,lc,fH,eL,db,kS,r,gI,jk,df".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fH"),d=a("eL"),f=a("db"),g=a("kS"),k=a("r"),i=a("gI"),n=a("jk"),j=a("df"),a=b.extend(d,function(){d.call(this);this.V8=j.KF;this.jk=[];this.wc=new g.Uea;this.fg=new g.M0;this.fg.eye=g.Fj.oa;this.ig=new g.M0;this.ig.eye=g.Fj.Ka;this.wc.views=[this.fg,this.ig];this.Pc=new g.gfa;this.bind(c.aa,this.eu,this,z)});a.prototype.bm=C();a.prototype.uh=C();a.prototype.Wd=C();a.prototype.UL=R("Pc");a.prototype.sn= R("wc");a.prototype.Ma=C();a.prototype.isPresenting=C();a.prototype.re=C();a.prototype.XL=R("V8");a.prototype.mv=C();a.prototype.By=function(a){this.jk.indexOf(a)<0&&this.jk.push(a)};a.prototype.FM=function(a){this.jk.splice(this.jk.indexOf(a),1);this.mv()==a&&this.Wd()};a.prototype.PM=function(a){var b=this.jk.indexOf(a);if(!(b<0||b==this.jk.length-1)){this.jk.splice(b,1);this.jk.splice(this.jk.length,0,a)}};a.prototype.cla=function(){return this.jk.length>0?this.jk[this.jk.length-1]:r};a.prototype.XU= function(){var a=this.cla();if(a==r){a=document.createElement("canvas");a=e.BX(a);this.By(a)}return a};a.prototype.SJ=function(a){f.aZ(a)};a.prototype.vV=function(a){if(k.Hc()==k.Vv){this.HU();i.Gea.show(a,function(){this.C1()}.bind(this))}else k.qE()&&k.Hc()==k.Hz?i.Bfa.show(a):k.Hc()==k.zF?i.L0.show(a):k.Hc()==k.AF?i.L0.show():a()};a.prototype.YU=function(a){var b=function(b){this.V8=b;a()}.bind(this);!k.Wa()||k.se()?b(j.KF):n.xn("cardboard_version")=="1"?b(j.KF):n.xn("cardboard_version")=="2"? b(j.dO):i.oN.show(function(){b(j.dO)}.bind(this),function(){b(j.KF)}.bind(this))};a.prototype.eu=function(){k.Wa()||(this.isPresenting()?i.x_.show(this.Wd.bind(this)):i.x_.hide())};a.prototype.C1=function(){this.HU();var a=this.S4();a.push("vr");this.M1(a)};a.prototype.HU=function(){this.M1(this.S4().filter(function(a){return a!="vr"}))};a.prototype.S4=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]};a.prototype.M1=function(a){window.location.hash="#"+(a.length? a.join("&"):"")};return a}); define("p",["require","jquery.mod","jV"],function(a){function b(){j.get(0)==document.body&&g.height(window.innerHeight)}function c(a,b){var c={},d;for(d in b)c[d]=a.css(d);l.push({$el:a,css:c});a.css(b)}function e(a){this.I=a}var d=a("jquery.mod"),f=a("jV");e.prototype.uh=function(){this.enabled()||this.toggle()};e.prototype.Wd=function(){this.enabled()&&this.toggle()};e.prototype.toggle=function(){this.enabled()?e.cancel():e.qg(this.I)};e.prototype.enabled=function(){return e.enabled(this.I)};var g= d("
").css({position:"fixed",bottom:0,left:0,height:"100vh",width:"100vw"}),k=d("
"),i=r,n=r,j=r,l=[],q=r;e.qg=function(a){if(a!==i){e.cancel();i=a;var l=f.Wl()||document.body;n=d(a);j=d(l);k.insertAfter(n);n.appendTo(g);j.children().each(function(){c(d(this),{visibility:"hidden"})});c(n,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});l==document.body?c(g,{position:"fixed",left:0,top:"",right:"",bottom:0,height:"100vh",width:"100vw",margin:0,padding:0}):c(g,{position:"absolute", left:0,top:0,right:"",bottom:"",width:"100%",height:"100%",margin:0,padding:0});g.appendTo(j);b();q=setInterval(b,300)}};e.cancel=function(){if(i){g.detach();n.insertBefore(k);for(k.detach();l.length;){var a=l.pop();a.$el.css(a.css)}j=n=i=r;l=[];clearInterval(q)}};e.enabled=function(a){return i==a};return e}); define("iv","require,fd,lc,bY,eL,lb,bI".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("lb"),a=a("bI"),g=['
','','
\n
\n
'].join("\n"),k=g+['','
'+ f("rotate-device")+"
"].join("\n")+"
\n
",i=g+['','
Please, swipe up to
enter Fullscreen Mode
'].join("\n")+"
\n
",b=b.extend(d,function(){d.call(this);this.Xh=this.Oj=this.Pj=this.vB=this.wB=this.TS=this.US=m; this.YH=z;this.Dr=this.jU=this.SS=this.Ad=r;this.U3=[];this.vS=this.Fl=z;this.nb=this.nb.bind(this)});b.prototype.qg=function(){if(!this.Fl){this.Fl=p;this.lQ();window.addEventListener("resize",this.nb);document.body.appendChild(this.Ad);document.body.appendChild(this.Dr);this.gra=document.documentElement.style.overflow;this.fra=document.body.style.overflow;document.documentElement.style.overflow="auto";document.body.style.overflow="auto";this.iC()}};b.prototype.cancel=function(){if(this.Fl){this.Fl= z;window.removeEventListener("resize",this.nb);document.body.style.overflow=this.fra;document.documentElement.style.overflow=this.gra;document.body.removeChild(this.Ad);document.body.removeChild(this.Dr);this.k9(z)}};b.prototype.enabled=R("YH");b.prototype.lQ=function(){if(!this.Ad){this.Ad=this.YG({position:"fixed",top:0,left:0,zIndex:9999998},p);this.Ad.id="tdvminuictr";this.jU=this.YG({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},p,k);this.Ad.appendChild(this.jU);this.SS= this.YG({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},p,i);this.Ad.appendChild(this.SS);this.Dr=this.YG({position:"absolute",top:0,left:0,right:0,height:"999999999vmax",zIndex:9999999},z);this.Dr.id="tdvminuiscrl";this.Dr.addEventListener("touchend",this.nb)}};b.prototype.YG=function(a,b,c){var d=document.createElement("div");this.UC(d,a);c!==m&&this.Zpa(d,c);b&&this.U3.push(d);return d};b.prototype.nb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.HT.bind(this), a)}.bind(this))};b.prototype.HT=function(){(this.Pj!=window.innerWidth||this.Oj!=window.innerHeight)&&this.iC()};b.prototype.iC=function(){this.Pj=window.innerWidth;this.Oj=window.innerHeight;this.Xh=this.Pj>this.Oj?"landscape":"portrait";var a;if(this.Xh=="landscape"){if(this.US&&this.TS&&this.qma(this.US,this.TS)&&(!this.wB&&!this.vB||this.rma(this.wB,this.vB))){this.wB=this.Pj;this.vB=this.Oj}if(this.mma()){this.wB=this.Pj;this.vB=this.Oj}this.US=this.Pj;this.TS=this.Oj;a=this.wB==this.Pj&&this.vB== this.Oj}else a=z;this.U3.forEach(function(a){a.style.height=this.Oj+"px";a.style.width=this.Pj+"px"}.bind(this));var b=this.Fl&&this.Xh=="portrait",c=this.Fl&&this.Xh=="landscape"&&!a,d=this.Fl&&this.Xh=="landscape";this.UC(this.Ad,{display:b||c?"block":"none"});this.UC(this.jU,{display:b?"block":"none"});this.UC(this.SS,{display:c?"block":"none"});this.UC(this.Dr,{display:d?"block":"none",right:c?0:"99.9%"});this.k9(a)};b.prototype.k9=function(a){if(this.jK!=r){clearTimeout(this.jK);this.jK=r}if(this.YH!= a)this.jK=setTimeout(function(){this.jK=r;(this.YH=a)?this.trigger(new e(c.Jk)):this.trigger(new e(c.Da));this.trigger(new e(c.aa))}.bind(this),a?1E3:0)};b.prototype.mma=function(){var a=window.innerWidth,b=window.innerHeight,c=Infinity;[[480,320],[960,640],[1136,640],[1334,750],[1920,1080],[2001,1125],[2048,1536],[2172,1125],[2208,1242],[2732,2048],[2436,1125]].forEach(function(d){c=Math.min(c,Math.abs(100-100*a*d[1]/(b*d[0])))});return c<=1?p:z};b.prototype.qma=function(a,b){return a*window.innerHeight> b*window.innerWidth};b.prototype.rma=function(a,b){return a*window.innerHeight>=b*window.innerWidth};b.prototype.UC=function(a,b){for(var c in b)a.style[c]=b[c]};b.prototype.Zpa=function(a,b){a.innerHTML=b};return new b}); define("lh","require,gb,r,jR,fX,bC".split(","),function(a){var b=a("gb"),c=a("r"),e=a("jR");MediaType=a("fX");SharedPlayerOrchestrator=a("bC");if(c.browser()==c.wi){a=function(){this.U=new e;this.U.src="data:video/mp4;base64,AAAAIGZ0eXBtcDQyAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAACKBtZGF0AAAC8wYF///v3EXpvebZSLeWLNgg2SPu73gyNjQgLSBjb3JlIDE0MiByMjQ3OSBkZDc5YTYxIC0gSC4yNjQvTVBFRy00IEFWQyBjb2RlYyAtIENvcHlsZWZ0IDIwMDMtMjAxNCAtIGh0dHA6Ly93d3cudmlkZW9sYW4ub3JnL3gyNjQuaHRtbCAtIG9wdGlvbnM6IGNhYmFjPTEgcmVmPTEgZGVibG9jaz0xOjA6MCBhbmFseXNlPTB4MToweDExMSBtZT1oZXggc3VibWU9MiBwc3k9MSBwc3lfcmQ9MS4wMDowLjAwIG1peGVkX3JlZj0wIG1lX3JhbmdlPTE2IGNocm9tYV9tZT0xIHRyZWxsaXM9MCA4eDhkY3Q9MCBjcW09MCBkZWFkem9uZT0yMSwxMSBmYXN0X3Bza2lwPTEgY2hyb21hX3FwX29mZnNldD0wIHRocmVhZHM9NiBsb29rYWhlYWRfdGhyZWFkcz0xIHNsaWNlZF90aHJlYWRzPTAgbnI9MCBkZWNpbWF0ZT0xIGludGVybGFjZWQ9MCBibHVyYXlfY29tcGF0PTAgY29uc3RyYWluZWRfaW50cmE9MCBiZnJhbWVzPTMgYl9weXJhbWlkPTIgYl9hZGFwdD0xIGJfYmlhcz0wIGRpcmVjdD0xIHdlaWdodGI9MSBvcGVuX2dvcD0wIHdlaWdodHA9MSBrZXlpbnQ9MzAwIGtleWludF9taW49MzAgc2NlbmVjdXQ9NDAgaW50cmFfcmVmcmVzaD0wIHJjX2xvb2thaGVhZD0xMCByYz1jcmYgbWJ0cmVlPTEgY3JmPTIwLjAgcWNvbXA9MC42MCBxcG1pbj0wIHFwbWF4PTY5IHFwc3RlcD00IHZidl9tYXhyYXRlPTIwMDAwIHZidl9idWZzaXplPTI1MDAwIGNyZl9tYXg9MC4wIG5hbF9ocmQ9bm9uZSBmaWxsZXI9MCBpcF9yYXRpbz0xLjQwIGFxPTE6MS4wMACAAAAAOWWIhAA3//p+C7v8tDDSTjf97w55i3SbRPO4ZY+hkjD5hbkAkL3zpJ6h/LR1CAABzgB1kqqzUorlhQAAAAxBmiQYhn/+qZYADLgAAAAJQZ5CQhX/AAj5IQADQGgcIQADQGgcAAAACQGeYUQn/wALKCEAA0BoHAAAAAkBnmNEJ/8ACykhAANAaBwhAANAaBwAAAANQZpoNExDP/6plgAMuSEAA0BoHAAAAAtBnoZFESwr/wAI+SEAA0BoHCEAA0BoHAAAAAkBnqVEJ/8ACykhAANAaBwAAAAJAZ6nRCf/AAsoIQADQGgcIQADQGgcAAAADUGarDRMQz/+qZYADLghAANAaBwAAAALQZ7KRRUsK/8ACPkhAANAaBwAAAAJAZ7pRCf/AAsoIQADQGgcIQADQGgcAAAACQGe60Qn/wALKCEAA0BoHAAAAA1BmvA0TEM//qmWAAy5IQADQGgcIQADQGgcAAAAC0GfDkUVLCv/AAj5IQADQGgcAAAACQGfLUQn/wALKSEAA0BoHCEAA0BoHAAAAAkBny9EJ/8ACyghAANAaBwAAAANQZs0NExDP/6plgAMuCEAA0BoHAAAAAtBn1JFFSwr/wAI+SEAA0BoHCEAA0BoHAAAAAkBn3FEJ/8ACyghAANAaBwAAAAJAZ9zRCf/AAsoIQADQGgcIQADQGgcAAAADUGbeDRMQz/+qZYADLkhAANAaBwAAAALQZ+WRRUsK/8ACPghAANAaBwhAANAaBwAAAAJAZ+1RCf/AAspIQADQGgcAAAACQGft0Qn/wALKSEAA0BoHCEAA0BoHAAAAA1Bm7w0TEM//qmWAAy4IQADQGgcAAAAC0Gf2kUVLCv/AAj5IQADQGgcAAAACQGf+UQn/wALKCEAA0BoHCEAA0BoHAAAAAkBn/tEJ/8ACykhAANAaBwAAAANQZvgNExDP/6plgAMuSEAA0BoHCEAA0BoHAAAAAtBnh5FFSwr/wAI+CEAA0BoHAAAAAkBnj1EJ/8ACyghAANAaBwhAANAaBwAAAAJAZ4/RCf/AAspIQADQGgcAAAADUGaJDRMQz/+qZYADLghAANAaBwAAAALQZ5CRRUsK/8ACPkhAANAaBwhAANAaBwAAAAJAZ5hRCf/AAsoIQADQGgcAAAACQGeY0Qn/wALKSEAA0BoHCEAA0BoHAAAAA1Bmmg0TEM//qmWAAy5IQADQGgcAAAAC0GehkUVLCv/AAj5IQADQGgcIQADQGgcAAAACQGepUQn/wALKSEAA0BoHAAAAAkBnqdEJ/8ACyghAANAaBwAAAANQZqsNExDP/6plgAMuCEAA0BoHCEAA0BoHAAAAAtBnspFFSwr/wAI+SEAA0BoHAAAAAkBnulEJ/8ACyghAANAaBwhAANAaBwAAAAJAZ7rRCf/AAsoIQADQGgcAAAADUGa8DRMQz/+qZYADLkhAANAaBwhAANAaBwAAAALQZ8ORRUsK/8ACPkhAANAaBwAAAAJAZ8tRCf/AAspIQADQGgcIQADQGgcAAAACQGfL0Qn/wALKCEAA0BoHAAAAA1BmzQ0TEM//qmWAAy4IQADQGgcAAAAC0GfUkUVLCv/AAj5IQADQGgcIQADQGgcAAAACQGfcUQn/wALKCEAA0BoHAAAAAkBn3NEJ/8ACyghAANAaBwhAANAaBwAAAANQZt4NExC//6plgAMuSEAA0BoHAAAAAtBn5ZFFSwr/wAI+CEAA0BoHCEAA0BoHAAAAAkBn7VEJ/8ACykhAANAaBwAAAAJAZ+3RCf/AAspIQADQGgcAAAADUGbuzRMQn/+nhAAYsAhAANAaBwhAANAaBwAAAAJQZ/aQhP/AAspIQADQGgcAAAACQGf+UQn/wALKCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHCEAA0BoHAAACiFtb292AAAAbG12aGQAAAAA1YCCX9WAgl8AAAPoAAAH/AABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAGGlvZHMAAAAAEICAgAcAT////v7/AAAF+XRyYWsAAABcdGtoZAAAAAPVgIJf1YCCXwAAAAEAAAAAAAAH0AAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAygAAAMoAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAB9AAABdwAAEAAAAABXFtZGlhAAAAIG1kaGQAAAAA1YCCX9WAgl8AAV+QAAK/IFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAUcbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAAE3HN0YmwAAACYc3RzZAAAAAAAAAABAAAAiGF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAygDKAEgAAABIAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAyYXZjQwFNQCj/4QAbZ01AKOyho3ySTUBAQFAAAAMAEAAr8gDxgxlgAQAEaO+G8gAAABhzdHRzAAAAAAAAAAEAAAA8AAALuAAAABRzdHNzAAAAAAAAAAEAAAABAAAB8GN0dHMAAAAAAAAAPAAAAAEAABdwAAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAADqYAAAAAQAAF3AAAAABAAAAAAAAAAEAAAu4AAAAAQAAOpgAAAABAAAXcAAAAAEAAAAAAAAAAQAAC7gAAAABAAA6mAAAAAEAABdwAAAAAQAAAAAAAAABAAALuAAAAAEAAC7gAAAAAQAAF3AAAAABAAAAAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAQAAAAEAAAEEc3RzegAAAAAAAAAAAAAAPAAAAzQAAAAQAAAADQAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAAPAAAADQAAAA0AAAARAAAADwAAAA0AAAANAAAAEQAAAA8AAAANAAAADQAAABEAAAANAAAADQAAAQBzdGNvAAAAAAAAADwAAAAwAAADZAAAA3QAAAONAAADoAAAA7kAAAPQAAAD6wAAA/4AAAQXAAAELgAABEMAAARcAAAEbwAABIwAAAShAAAEugAABM0AAATkAAAE/wAABRIAAAUrAAAFQgAABV0AAAVwAAAFiQAABaAAAAW1AAAFzgAABeEAAAX+AAAGEwAABiwAAAY/AAAGVgAABnEAAAaEAAAGnQAABrQAAAbPAAAG4gAABvUAAAcSAAAHJwAAB0AAAAdTAAAHcAAAB4UAAAeeAAAHsQAAB8gAAAfjAAAH9gAACA8AAAgmAAAIQQAACFQAAAhnAAAIhAAACJcAAAMsdHJhawAAAFx0a2hkAAAAA9WAgl/VgIJfAAAAAgAAAAAAAAf8AAAAAAAAAAAAAAABAQAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAACsm1kaWEAAAAgbWRoZAAAAADVgIJf1YCCXwAArEQAAWAAVcQAAAAAACdoZGxyAAAAAAAAAABzb3VuAAAAAAAAAAAAAAAAU3RlcmVvAAAAAmNtaW5mAAAAEHNtaGQAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAidzdGJsAAAAZ3N0c2QAAAAAAAAAAQAAAFdtcDRhAAAAAAAAAAEAAAAAAAAAAAACABAAAAAArEQAAAAAADNlc2RzAAAAAAOAgIAiAAIABICAgBRAFQAAAAADDUAAAAAABYCAgAISEAaAgIABAgAAABhzdHRzAAAAAAAAAAEAAABYAAAEAAAAABxzdHNjAAAAAAAAAAEAAAABAAAAAQAAAAEAAAAUc3RzegAAAAAAAAAGAAAAWAAAAXBzdGNvAAAAAAAAAFgAAAOBAAADhwAAA5oAAAOtAAADswAAA8oAAAPfAAAD5QAAA/gAAAQLAAAEEQAABCgAAAQ9AAAEUAAABFYAAARpAAAEgAAABIYAAASbAAAErgAABLQAAATHAAAE3gAABPMAAAT5AAAFDAAABR8AAAUlAAAFPAAABVEAAAVXAAAFagAABX0AAAWDAAAFmgAABa8AAAXCAAAFyAAABdsAAAXyAAAF+AAABg0AAAYgAAAGJgAABjkAAAZQAAAGZQAABmsAAAZ+AAAGkQAABpcAAAauAAAGwwAABskAAAbcAAAG7wAABwYAAAcMAAAHIQAABzQAAAc6AAAHTQAAB2QAAAdqAAAHfwAAB5IAAAeYAAAHqwAAB8IAAAfXAAAH3QAAB/AAAAgDAAAICQAACCAAAAg1AAAIOwAACE4AAAhhAAAIeAAACH4AAAiRAAAIpAAACKoAAAiwAAAItgAACLwAAAjCAAAAFnVkdGEAAAAObmFtZVN0ZXJlbwAAAHB1ZHRhAAAAaG1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAAO2lsc3QAAAAzqXRvbwAAACtkYXRhAAAAAQAAAABIYW5kQnJha2UgMC4xMC4yIDIwMTUwNjExMDA=";this.U.loop= p;this.U.xp=p;this.Ha=r};a.prototype.HM=S(p);a.prototype.re=function(){return MediaType.Ei};a.prototype.fY=function(){return b.Mfa};a.prototype.IX=function(a){this.Ha=a;this.Ha.play(r,this.U,0)};a.prototype.EY=function(){this.Ha=r};var d=z,f=new a;return{enable:function(){if(!d){d=p;SharedPlayerOrchestrator.qX(f)}},disable:function(){if(d){d=z;SharedPlayerOrchestrator.jz(f)}}}}return{enable:C(),disable:C()}}); define("hT",["require","jquery.mod","lb","bI"],function(a){function b(){this.sg=r;this.V=z;this.nb=this.nb.bind(this);this.Oj=this.Pj=this.Xh=m}var c=a("jquery.mod"),e=a("lb"),d=a("bI");b.prototype.eo=function(){this.sg||(this.sg=c("
"),this.sg.css({position:"fixed","z-index":1E6,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"}),this.sg.html(['
','','
\n
\n
','','
'+e("rotate-device")+"
","
\n
"].join("\n")))};b.prototype.show=function(a){this.V||(this.V=p,this.eo(), c(a).append(this.sg),c(window).on("resize",this.nb),this.iC())};b.prototype.hide=function(){this.V&&(this.V=z,c(window).off("resize",this.nb),this.sg.detach())};b.prototype.nb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.HT.bind(this),a)}.bind(this))};b.prototype.HT=function(){(this.Pj!=window.innerWidth||this.Oj!=window.innerHeight)&&this.iC()};b.prototype.iC=function(){this.Pj=window.innerWidth;this.Oj=window.innerHeight;this.Xh=this.Pj>this.Oj?"landscape":"portrait";this.sg.toggle("landscape"!= this.Xh)};return new b}); define("il","require,fd,lc,bY,gS,iO,r,fQ,gI,bV,cv,fx,d,V,jV,p,iv,lh,hT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("gS"),f=a("iO"),g=a("r"),k=a("fQ"),i=a("gI"),n=a("bV"),j=a("cv"),l=a("fx"),q=a("d"),o=a("V"),t=a("jV"),s=a("p"),u=a("iv"),v=a("lh"),w=a("hT"),x=b.extend(l,function(){l.call(this);this.Hg=this.Fe=this.tf=this.OC=this.Do=this.sh=this.gc=r;this.Ud=j.ys;this.Ma=this.Ma.bind(this)});x.prototype.bm=function(a){if(this.kB()){var b=function(b){if(this.gc=b.length?b[0]:r){this.gc.depthNear= 0.1;this.gc.depthFar=2*d.Jd;this.sh="VRFrameData"in window?new VRFrameData:r;window.addEventListener("vrdisplaypresentchange",this.oU.bind(this),z);u.bind(c.Da,this.Wd.bind(this))}a(!!this.gc)}.bind(this),f=window.WebVRConfig||(window.WebVRConfig={});f.BUFFER_SCALE=x.Fy;f.ALWAYS_APPEND_POLYFILL_DISPLAY=p;f.LOCK_ORIENTATION=z;n.O0.load(function(){navigator.getVRDisplays().then(b)["catch"](function(){b([])})}.bind(this))}else a(z)};x.prototype.uh=function(){!this.isPresenting()&&!this.Fe&&this.Fu(function(){this.vV(function(){this.YU(function(){if(!this.isPresenting()&& !this.Fe){this.Fe=this.XU();this.sV();this.gc.requestPresent([{source:this.Fe.canvas}]).then(function(){this.Hg=this.Fe;this.Fe=r;g.Hc()!=g.Fz&&w.show(t.Wl());this.Xx();this.ZD()}.bind(this))["catch"](function(){this.Fe=r;this.qD()}.bind(this))}}.bind(this))}.bind(this))}.bind(this))};x.prototype.Wd=function(){this.isPresenting()&&this.gc.exitPresent()};x.prototype.Ma=function(a){return this.gc.requestAnimationFrame(function(b){var c=this.Xx();c&&this.Xu();a(b);c&&this.gc.submitFrame()}.bind(this))}; x.prototype.isPresenting=function(){return!!this.gc&&this.gc.isPresenting};x.prototype.mv=R("Hg");x.prototype.re=R("Ud");x.prototype.oU=function(){if(this.isPresenting())o.QM(this.Ma,this.gc.cancelAnimationFrame.bind(this.gc));else{o.bZ();(this.Hg||this.Fe)&&this.qD()}this.trigger(new e(c.aa))};x.prototype.kB=function(){return k.available&&f.WZ&&g.Wa()&&g.Yr()!=g.Wv};x.prototype.Fu=function(a){if(k.disabled)i.C_.show(function(){k.$Y(function(){this.Fu(a)}.bind(this))});else if(t.enabled()||!q.GE()){t.Wd(); this.SJ(function(){this.Fu(a)}.bind(this))}else a()};x.prototype.sV=function(){s.qg(this.Fe.canvas);g.Hc()==g.Gz?this.C1():v.enable();g.Hc()==g.Fz&&u.qg()};x.prototype.Xx=function(){this.gc.getFrameData(this.sh);if(!this.sh.pose||!this.sh.pose.orientation)return z;this.Do=this.gc.getEyeParameters("left");this.OC=this.gc.getEyeParameters("right");var a=this.gc.getLayers();this.tf=a&&a.length&&a[0]||r;return!this.tf?z:p};x.prototype.ZD=function(){this.Pc.pE=r;this.Pc.zk=this.Do.renderWidth*2;this.Pc.pj= this.Do.renderHeight;this.Pc.KL=1};x.prototype.Xu=function(){var a=this.sh.pose;this.wc.orientation.fromArray(a&&a.orientation||y);this.wc.position.fromArray(a&&a.position||F);this.fX()};x.prototype.fX=function(){this.fg.position.fromArray(this.Do.offset);this.fg.orientation.fromArray(y);this.fg.projectionMatrix.fromArray(this.sh.leftProjectionMatrix);this.fg.viewport.x=Math.round(this.Pc.zk*this.tf.leftBounds[0]);this.fg.viewport.y=Math.round(this.Pc.pj*this.tf.leftBounds[1]);this.fg.viewport.width= Math.round(this.Pc.zk*this.tf.leftBounds[2]);this.fg.viewport.height=Math.round(this.Pc.pj*this.tf.leftBounds[3]);this.ig.position.fromArray(this.OC.offset);this.ig.orientation.fromArray(y);this.ig.projectionMatrix.fromArray(this.sh.rightProjectionMatrix);this.ig.viewport.x=Math.round(this.Pc.zk*this.tf.rightBounds[0]);this.ig.viewport.y=Math.round(this.Pc.pj*this.tf.rightBounds[1]);this.ig.viewport.width=Math.round(this.Pc.zk*this.tf.rightBounds[2]);this.ig.viewport.height=Math.round(this.Pc.pj* this.tf.rightBounds[3])};x.prototype.qD=function(){this.HU();this.Hg=this.Fe=r;u.cancel();s.cancel();v.disable();w.hide()};x.Fy=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var y=[0,0,0,1],F=[0,0,0];return x}); define("gO","require,fd,bY,lc,r,cv,fx,gS,d,V,p".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("lc"),d=a("r"),f=a("cv"),g=a("fx"),k=a("gS"),i=a("d"),n=a("V"),j=a("p"),a=b.extend(g,function(){g.call(this);this.Hg=this.Fe=this.tf=this.OC=this.Do=this.sh=this.gc=r;this.Ma=this.Ma.bind(this)});a.prototype.bm=function(a){if(this.kB()){var b=function(b){if(this.gc=b.length?b[0]:r){this.gc.depthNear=0.1;this.gc.depthFar=2*k.Jd;this.sh="VRFrameData"in window?new VRFrameData:r;window.addEventListener("vrdisplaypresentchange", this.oU.bind(this),z);window.addEventListener("vrdisplayactivate",this.Z7.bind(this));window.addEventListener("vrdisplaydeactivate",this.Wd.bind(this))}a(!!this.gc)}.bind(this);navigator.getVRDisplays().then(b)["catch"](function(){b([])})}else a(z)};a.prototype.uh=function(a){!this.isPresenting()&&!this.Fe&&this.Fu(a,function(){this.vV(function(){this.YU(function(){!this.isPresenting()&&!this.Fe&&this.Z7()}.bind(this))}.bind(this))}.bind(this))};a.prototype.Wd=function(){this.isPresenting()&&this.gc.exitPresent()}; a.prototype.Ma=function(a){return this.gc.requestAnimationFrame(function(b){var c=this.Xx();c&&this.Xu();a(b);c&&this.gc.submitFrame()}.bind(this))};a.prototype.isPresenting=function(){return!!this.gc&&this.gc.isPresenting};a.prototype.mv=R("Hg");a.prototype.re=function(){return f.Rfa};a.prototype.kB=function(){return"getVRDisplays"in navigator&&!window.WebVRConfig};a.prototype.oU=function(){if(this.isPresenting()){n.QM(this.Ma,this.gc.cancelAnimationFrame.bind(this.gc));this.Xx()&&this.Xu()}else{n.bZ(); (this.Hg||this.Fe)&&this.qD()}this.trigger(new c(e.aa))};a.prototype.Fu=function(a,b){a||i.GE()?b():this.SJ(function(){b()})};a.prototype.Z7=function(){this.Fe=this.XU();this.sV();this.gc.requestPresent([{source:this.Fe.canvas,attributes:{foveationLevel:3}}]).then(function(){this.Hg=this.Fe;this.Fe=r;this.Xx()&&this.Xu()}.bind(this))["catch"](function(){this.Fe=r;this.qD()}.bind(this))};a.prototype.sV=function(){j.qg(this.Fe.canvas)};a.prototype.Xx=function(){this.gc.getFrameData(this.sh);if(!this.sh.pose|| !this.sh.pose.orientation)return z;this.Do=this.gc.getEyeParameters("left");this.OC=this.gc.getEyeParameters("right");var a=this.gc.getLayers();this.tf=a&&a.length&&a[0]||r;return!this.tf?z:p};a.prototype.Xu=function(){this.ZD();var a=this.sh.pose;this.wc.orientation.fromArray(a&&a.orientation||l);this.wc.position.fromArray(a&&a.position||q);this.fX()};a.prototype.ZD=function(){this.Pc.pE=r;this.Pc.zk=this.Do.renderWidth*2;this.Pc.pj=this.Do.renderHeight;this.Pc.KL=d.se()?2048/this.Pc.pj:1};a.prototype.fX= function(){this.fg.position.fromArray(this.Do.offset);this.fg.orientation.fromArray(l);this.fg.projectionMatrix.fromArray(this.sh.leftProjectionMatrix);var a=this.tf.leftBounds&&this.tf.leftBounds.length==4?this.tf.leftBounds:o;this.fg.viewport.x=Math.round(this.Pc.zk*a[0]);this.fg.viewport.y=Math.round(this.Pc.pj*a[1]);this.fg.viewport.width=Math.round(this.Pc.zk*a[2]);this.fg.viewport.height=Math.round(this.Pc.pj*a[3]);this.ig.position.fromArray(this.OC.offset);this.ig.orientation.fromArray(l); this.ig.projectionMatrix.fromArray(this.sh.rightProjectionMatrix);a=this.tf.rightBounds&&this.tf.rightBounds.length==4?this.tf.rightBounds:t;this.ig.viewport.x=Math.round(this.Pc.zk*a[0]);this.ig.viewport.y=Math.round(this.Pc.pj*a[1]);this.ig.viewport.width=Math.round(this.Pc.zk*a[2]);this.ig.viewport.height=Math.round(this.Pc.pj*a[3])};a.prototype.qD=function(){this.Hg=this.Fe=r;j.cancel()};var l=[0,0,0,1],q=[0,0,0],o=[0,0,0.5,1],t=[0.5,0,0.5,1];return a}); define("id","require,fd,bY,lc,r,jv,cv,fx,gS,d,V,p,iX,fu".split(","),function(a){function b(a){setTimeout(a,10)}var c=a("fd"),e=a("bY"),d=a("lc"),f=a("r"),g=a("jv"),k=a("cv"),i=a("fx"),n=a("gS"),j=a("d"),l=a("V"),q=a("p"),o=a("iX"),t=a("fu"),s=c.extend(i,function(){i.call(this);this.Yu=this.aE=this.ng=this.Hg=r;this.ey="stopped";this.Ma=this.Ma.bind(this);this.bV=this.bV.bind(this);this.cV=this.cV.bind(this);this.dV=this.dV.bind(this);this.Or=z;o.Az(function(){b(function(){this.Or=p}.bind(this))}.bind(this))}); s.prototype.bm=function(a){if(this.kB())this.tra().then(function(b){b?a(p):a(z)})["catch"](function(){a(z)});else a(z)};s.prototype.uh=function(){this.ey=="stopped"&&this.Fu(function(){this.vV(function(){this.YU(function(){setTimeout(function(){this.Yqa()}.bind(this),200)}.bind(this))}.bind(this))}.bind(this))};s.prototype.Yqa=function(){if(this.ey=="stopped"){this.ey="starting";this.trigger(new e(d.aa));l.vZ(p);navigator.xr.requestSession("immersive-vr").then(function(a){this.ng=a;this.ng.addEventListener("end", this.bV);this.ng.addEventListener("select",this.cV);this.ng.addEventListener("visibilitychange",this.dV);return this.ng.requestReferenceSpace("local")}.bind(this)).then(function(a){this.aE=a;this.Hg=this.XU();return this.Hg.makeXRCompatible()}.bind(this)).then(function(){f.Wa()&&q.qg(this.Hg.canvas);var a=XRWebGLLayer.getNativeFramebufferScaleFactor(this.ng),a=Math.max(a,1);f.wY()?a=a*1:f.se()?a=a*1.42222:f.Wa()&&(a=a*s.Fy);this.Yu=new XRWebGLLayer(this.ng,this.Hg,{antialias:z,framebufferScaleFactor:a}); this.ng.updateRenderState({baseLayer:this.Yu,depthNear:0.1,depthFar:2*n.Jd});this.ZD();this.ey="started";l.QM(this.Ma,this.ng.cancelAnimationFrame.bind(this.ng));l.vZ(z)}.bind(this))["catch"](function(){l.vZ(z);this.a9();this.trigger(new e(d.aa))}.bind(this))}};s.prototype.Wd=function(){this.isPresenting()&&this.ng.end()};s.prototype.Ma=function(a){return this.ng.requestAnimationFrame(function(b,c){this.hX=c;this.Xu();a(b)}.bind(this))};s.prototype.isPresenting=function(){return this.ey!="stopped"}; s.prototype.re=function(){return k.Sfa};s.prototype.mv=R("Hg");s.prototype.kB=function(){return"xr"in navigator};s.prototype.tra=function(){return"isSessionSupported"in navigator.xr?navigator.xr.isSessionSupported("immersive-vr"):"supportsSession"in navigator.xr?navigator.xr.supportsSession("immersive-vr"):Promise.reject()};s.prototype.Fu=function(a){f.Hc()==f.In?this.Or?a():j.GE()?b(a):this.SJ(function(){b(a)}):j.GE()?a():this.SJ(function(){a()})};s.prototype.bV=function(){l.bZ();this.a9();this.trigger(new e(d.aa))}; s.prototype.cV=function(){this.trigger(new e(d.Ci))};s.prototype.dV=function(){t.EZ(!this.ng||this.ng.bza!="visible");g.Rea&&this.ng.bza!="visible"&&this.Wd()};s.prototype.a9=function(){this.Yu=this.aE=this.ng=this.Hg=r;this.ey="stopped";q.cancel()};s.prototype.ZD=function(){this.Pc.pE=this.Yu.framebuffer;this.Pc.zk=this.Yu.framebufferWidth;this.Pc.pj=(f.Hc()==f.In?2:1)*this.Yu.framebufferHeight;this.Pc.KL=1};s.prototype.Xu=function(){var a=this.hX.getViewerPose(this.aE);if(a){var b=a&&a.transform.orientation|| u;this.wc.orientation.set(b.x,b.y,b.z,b.w);b=a&&a.transform.position||v;this.wc.position.set(b.x,b.y,b.z);for(var a=this.hX.getViewerPose(this.aE.getOffsetReferenceSpace(a.transform)),c=0;c5)window.location.reload();else if(!document.hidden&&!d.isPresenting()){d.uh(p);a()}}var c,f;document.addEventListener("visibilitychange",function(){if(!document.hidden){if(c){clearTimeout(c);c=r}f=0;a()}},z);if(c){clearTimeout(c);c=r}f=0;a()}():s&&d.uh()}else v.available=S(z);if(c){clearTimeout(c);c=r;a()}})};v.bind(e.aa,function(){t.MM(v.isPresenting())},window,p);window.addEventListener("vrdisplayblur",function(){t.EZ(p)},p);window.addEventListener("vrdisplayfocus",function(){t.EZ(z)},p); return v}); define("da","require,lc,iE,eL,V,bi".split(","),function(a){function b(a){this.SG=a;this.xg=r;this.FP={};for(a=0;a500};b.prototype.hand=R("zla");b.prototype.quaternion=R("nh");b.prototype.position=R("ua"); b.prototype.pressed=function(a){a||(a=this.SG.Cwa);return!a?this.EP>0:this.FP[a]};var s=new n;s.all=function(){e();return u};s.tM=function(){e();return v};s.oa="left";s.Ka=o;var u=[],v=r,w={},x=m,y=r,F=URL.Lg("disable-controller",z);l.bind(k.aa,g);g();return s}); define("cA",["require","fh","a"],function(a){function b(a,b){this.Pd=a||new c(0,0,0);this.pg=b||new c(1,0,0)}var c=a("fh"),e=a("a");b.prototype.clone=function(){return new b(this.Pd.clone(),this.pg.clone())};b.prototype.apply=function(a){a.Cy(this.Pd);a.Cy(this.pg)};b.prototype.Kba=function(){return e.$r(this.Pd,this.pg)};return b}); define("gj",["cA","fh"],function(a,b){function c(a,b,c){this.W=a||100;this.ea=b||100;this.ba=c||Math.PI;this.tU=m;this.um=p}c.prototype.Jv=function(a){this.ba!=a&&(this.ba=a,this.um=p)};c.prototype.tp=R("ba");c.prototype.mF=function(a){this.W!=a&&(this.W=a,this.um=p)};c.prototype.$c=R("W");c.prototype.Oda=function(a){this.ea!=a&&(this.ea=a,this.um=p)};c.prototype.Nd=R("ea");c.prototype.project=function(a){if(0!=a.z){this.aaa();var b=1/a.z,c=this.tU*b;a.x=0.5*this.W-a.x*c;a.y=0.5*this.ea-a.y*c;a.z= b}};c.prototype.unproject=function(c){this.aaa();return new a(new b(0,0,0),new b(0.5*this.W-c.x,0.5*this.ea-c.y,this.tU))};c.prototype.aaa=function(){this.um&&(this.tU=0.5*this.W/Math.tan(0.5*this.ba),this.um=z)};return c}); define("dP",["require","jquery.mod"],function(a){function b(){this.I=c("
");this.I.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,"pointer-events":"none","background-color":"#ffffff"});this.I.hide()}var c=a("jquery.mod");b.prototype.Cb=R("I");b.prototype.trigger=function(){this.I.fadeIn(100).fadeOut(100)};return b}); define("li",["require"],function(){function a(){this.kd=this.pitch=this.ja=0;this.vf=this.ad=90;this.gE=this.xL=this.height=this.width=100;this.Pg=1;this.BE=this.Ob=z;this.si=0;this.NL=this.rL=this.xM=z;this.rv=this.TE=p;this.Ic=this.nE=this.mE=this.te=r;this.enabled=z;this.vd=0;this.nF=m}a.prototype.clone=function(){var b=new a;b.ja=this.ja;b.pitch=this.pitch;b.kd=this.kd;b.ad=this.ad;b.vf=this.vf;b.width=this.width;b.height=this.height;b.xL=this.xL;b.gE=this.gE;b.Pg=this.Pg;b.Ob=this.Ob;b.BE=this.BE; b.si=this.si;b.xM=this.xM;b.NL=this.NL;b.rL=this.rL;b.TE=this.TE;b.rv=this.rv;b.te=this.te;b.mE=this.mE;b.nE=this.nE;b.Ic=this.Ic;b.enabled=this.enabled;b.vd=this.vd;b.nF=this.nF;return b};return a}); define("cQ","require,jquery.mod,dm,lc,jP,V,dH".split(","),function(a){function b(a){this.GZ=a;this.element=document.createElement("div");this.MZ=document.createElement("span");this.element.appendChild(this.MZ);this.MZ.innerHTML=a.text.split("
").join("\n").split("\n").map(e).join("
");this.zL=z}function c(a){this.F=a;this.ED=f.throttle(this.ED.bind(this),100);this.FD=f.throttle(this.FD.bind(this),100);this.I=document.createElement("div");this.I.style.position="absolute";this.I.style.left=0; this.I.style.top=0;this.I.style.right=0;this.I.style.bottom=0;this.I.style.zIndex=1;this.I.style.cursor="inherit";this.I.style.display="none";this.JO=d(this.I);this.Zh=document.createElement("div");this.Zh.style.position="absolute";this.Zh.style.left=0;this.Zh.style.right=0;this.Zh.style.zIndex=1;this.Zh.style.cursor="inherit";this.I.appendChild(this.Zh);this.Hr=r;this.oy=[];this.nf=[];this.UT={};this.yy=k.jb;this.F.bind(g.D("subtitlesEnabled"),this.qW,this);c.i0.forEach(function(a){this.F.bind(g.D(a), this.ED,this)}.bind(this));c.j0.forEach(function(a){this.F.bind(g.D(a),this.FD,this)}.bind(this));this.qW();this.ED();this.FD()}function e(a){j.innerHTML=a;return j.innerText}var d=a("jquery.mod"),f=a("dm"),g=a("lc"),k=a("jP"),i=a("V"),n=a("dH");c.prototype.clear=function(){this.CZ(r);if(this.F){this.F.unbind(g.D("subtitlesEnabled"),this.qW,this);c.i0.forEach(function(a){this.F.unbind(g.D(a),this.ED,this)}.bind(this));c.j0.forEach(function(a){this.F.unbind(g.D(a),this.FD,this)}.bind(this));this.F= r}};c.prototype.Cb=R("JO");c.prototype.CZ=function(a){if(this.Hr!=a){this.Hr&&this.Hr.unbind(g.D("activeSubtitles"),this.tT,this,p);(this.Hr=a)&&this.Hr.bind(g.D("activeSubtitles"),this.tT,this,p);this.tT()}};c.prototype.tT=function(){this.xqa(this.Hr&&this.Hr.get("activeSubtitles")||[])};c.prototype.qW=function(){this.V=this.F.get("subtitlesEnabled");this.GW()};c.prototype.ED=function(){this.yy=this.VA("subtitlesVerticalAlign",[k.kb,k.rc,k.jb],k.jb);this.Zh.style["text-align"]=this.VA("subtitlesHorizontalAlign", [k.oa,k.Ka,k.Kc],k.Kc);this.Zh.style.bottom=this.yy==k.jb?this.bh("subtitlesBottom",0):"";this.Zh.style.top=this.yy==k.kb?this.bh("subtitlesTop",0):this.yy==k.rc?"50%":"";this.Zh.style.transform=this.yy==k.rc?"translate(0, -50%)":"";this.GW()};c.prototype.FD=function(){var a={};a["background-color"]=this.SR("subtitlesBackgroundColor","subtitlesBackgroundOpacity");a.border=[this.bh("subtitlesBorderSize"),"solid",this.Ef("subtitlesBorderColor")].join(" ");a["box-shadow"]=this.Ef("subtitlesShadow",z)? [this.bh("subtitlesShadowHorizontalLength"),this.bh("subtitlesShadowVerticalLength"),this.bh("subtitlesShadowBlurRadius"),this.SR("subtitlesShadowColor","subtitlesShadowOpacity","#000000",0)].join(" "):"";a.display="inline-block";a["font-family"]=n.Zr(this.Ef("subtitlesFontFamily"));a["font-size"]=this.bh("subtitlesFontSize");a.color=this.Ef("subtitlesFontColor");a["font-weight"]=this.VA("subtitlesFontWeight",["bold","bolder","lighter","100","200","300","400","500","600","700","800","900","normal"], "normal");a["font-style"]=this.VA("subtitlesFontStyle",["italic","normal"],"normal");a["margin-bottom"]=this.bh("subtitlesGap");a.opacity=this.Ef("subtitlesOpacity");a["padding-top"]=this.bh("subtitlesPaddingTop");a["padding-bottom"]=this.bh("subtitlesPaddingBottom");a["padding-left"]=this.bh("subtitlesPaddingLeft");a["padding-right"]=this.bh("subtitlesPaddingRight");a.position="relative";a["text-align"]=this.VA("subtitlesHorizontalAlign",["left","right","center"],"center");a["text-decoration"]=this.Ef("subtitlesTextDecoration", ["underline","overline","line-through","none"],"none");a["text-shadow"]=[this.bh("subtitlesTextShadowHorizontalLength"),this.bh("subtitlesTextShadowVerticalLength"),this.bh("subtitlesTextShadowBlurRadius"),this.SR("subtitlesTextShadowColor","subtitlesTextShadowOpacity","#000000",0)].join(" ");this.UT=a;this.Zga()};c.prototype.xqa=function(a){this.oy=a;this.GW()};c.prototype.GW=function(){for(var a=this.V?this.oy:[],c=this.nf.length-1;c>=0;c--){var d=this.nf[c];if(a.indexOf(d.GZ)>=0)break;this.Zh.removeChild(d.element)}for(var f= [],e=z;c>=0;c--){d=this.nf[c];if(!d.zL&&a.indexOf(d.GZ)<0){d.zL=p;d.element.style.visibility="hidden";e=p}f.splice(0,0,d)}e&&i.Ma(this.M2,this);this.nf=f;var g=this.nf.filter(function(a){return!a.zL}).map(function(a){return a.GZ});a.filter(function(a){return g.indexOf(a)<0}).forEach(function(a){a=new b(a);this.P1(a);this.yy==k.jb&&this.nf.length>0?this.Zh.insertBefore(a.element,this.nf[this.nf.length-1].element):this.Zh.appendChild(a.element);this.nf.push(a)}.bind(this));this.I.style.display=this.nf.length> 0?"block":"none"};c.prototype.M2=function(a){for(var b=z,a=Math.round(200*a/1E3),c=0;c=d.element.clientHeight){a=a-d.element.clientHeight;this.Zh.removeChild(d.element);this.nf.splice(c,1);c--}else{d.element.style.height=d.element.clientHeight-a+"px";break}}}b&&i.Ma(this.M2,this)};c.prototype.Zga=function(){this.nf.forEach(this.P1.bind(this))};c.prototype.P1=function(a){for(var b in this.UT)a.MZ.style[b]=this.UT[b]};c.prototype.Ef=function(a, b){return this.F.get(a,b)};c.prototype.bh=function(a,b){var c=this.F.get(a,b);isNaN(c)||(c=Math.round(c)+"px");return c};c.prototype.VA=function(a,b,c){a=this.F.get(a);return b.indexOf(a)<0?c:a};c.prototype.SR=function(a,b,c,d){a=this.F.get(a,c);b=this.F.get(b,d);return"rgba("+parseInt("0x"+a.substr(1,2))+", "+parseInt("0x"+a.substr(3,2))+", "+parseInt("0x"+a.substr(5,2))+", "+b+")"};c.i0=["subtitlesHorizontalAlign","subtitlesVerticalAlign","subtitlesTop","subtitlesBottom"];c.j0=["subtitlesBackgroundColor", "subtitlesBackgroundOpacity","subtitlesBorderColor","subtitlesBorderSize","subtitlesFontFamily","subtitlesFontColor","subtitlesFontSize","subtitlesFontStyle","subtitlesFontWeight","subtitlesGap","subtitlesOpacity","subtitlesPaddingTop","subtitlesPaddingBottom","subtitlesPaddingLeft","subtitlesPaddingRight","subtitlesShadow","subtitlesShadowBlurRadius","subtitlesShadowHorizontalLength","subtitlesShadowVerticalLength","subtitlesShadowColor","subtitlesTextDecoration","subtitlesTextShadowBlurRadius", "subtitlesTextShadowColor","subtitlesTextShadowHorizontalLength","subtitlesTextShadowOpacity","subtitlesTextShadowVerticalLength"];var j=document.createElement("div");return c}); define("hs",["require","fd","cQ"],function(a){var b=a("fd"),c=a("cQ"),a=b.extend(c,function(a,b){c.call(this,a);this.Qb=b;this.Qb.bind(EventName.D("panorama"),this.CT,this);this.CT()});a.prototype.clear=function(){this.Qb&&(this.Qb.unbind(EventName.D("panorama"),this.CT,this),this.Qb=r);c.prototype.clear.call(this)};a.prototype.CT=function(){this.CZ(this.Qb.get("panorama"))};return a}); define("im",["require","r"],function(a){var b=a("r"),a={},c=180/Math.PI,e=Math.PI/180;a.Bk=function(a,b,c){return this.av(a,b,c)};a.Gn=function(a,b,c){return this.av(a,c,b)};a.av=function(a,b,g){return 2*Math.atan(g*Math.tan(0.5*a*e)/b)*c};a.sAa=function(a){return b.browser()==b.Dz?Math.max(a,20):a};return a});define("cS",["require"],function(){return{Hn:0,oa:1,Ka:2}}); define("hB",["require"],function(){THREE.CopyShader={uniforms:{tDiffuse:{value:r},opacity:{value:1}},vertexShader:"varying vec2 vUv;\nvoid main() {\n\tvUv = uv;\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform float opacity;\nuniform sampler2D tDiffuse;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texel = texture2D( tDiffuse, vUv );\n\tgl_FragColor = opacity * texel;\n}"};return THREE.CopyShader}); define("gJ",["require"],function(){THREE.Pass=function(){this.NY=this.enabled=p;this.Fp=this.clear=z};Object.assign(THREE.Pass.prototype,{setSize:C(),render:function(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}});return THREE.Pass}); define("hZ",["require","gJ"],function(a){a("gJ");THREE.Pass.FullScreenQuad=function(){function a(b){this.AI=new THREE.Mesh(e,b)}var c=new THREE.OrthographicCamera(-1,1,1,-1,0,1),e=new THREE.PlaneBufferGeometry(2,2);Object.defineProperty(a.prototype,"material",{get:function(){return this.AI.material},set:function(a){this.AI.material=a}});Object.assign(a.prototype,{dispose:function(){this.AI.geometry.dispose()},render:function(a){a.render(this.AI,c)}});return a}();return THREE.Pass.FullScreenQuad}); define("fI",["require","gJ","hZ"],function(a){a("gJ");a("hZ");THREE.ShaderPass=function(a,c){THREE.Pass.call(this);this.oF=c!==m?c:"tDiffuse";a instanceof THREE.ShaderMaterial?(this.uniforms=a.uniforms,this.material=a):a&&(this.uniforms=THREE.UniformsUtils.clone(a.uniforms),this.material=new THREE.ShaderMaterial({defines:Object.assign({},a.defines),uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}));this.ML=new THREE.Pass.FullScreenQuad(this.material)};THREE.ShaderPass.prototype= Object.assign(Object.create(THREE.Pass.prototype),{constructor:THREE.ShaderPass,render:function(a,c,e){this.uniforms[this.oF]&&(this.uniforms[this.oF].value=e.texture);this.ML.material=this.material;this.Fp?a.setRenderTarget(r):(a.setRenderTarget(c),this.clear&&a.clear(a.Xza,a.Yza,a.Zza));this.ML.render(a)}});return THREE.ShaderPass}); define("cM",["require","hB","fI"],function(a){a("hB");a("fI");THREE.EffectComposer=function(a,c){this.Ze=a;if(c===m){var e={minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBAFormat,stencilBuffer:z},d=a.getSize(new THREE.Vector2);this.Al=a.getPixelRatio();this.W=d.width;this.ea=d.height;c=new THREE.WebGLRenderTarget(this.W*this.Al,this.ea*this.Al,e);c.texture.name="EffectComposer.rt1"}else this.Al=1,this.W=c.width,this.ea=c.height;this.oz=c;this.pz=c.clone();this.pz.texture.name= "EffectComposer.rt2";this.wF=this.oz;this.VE=this.pz;this.Fp=p;this.hs=[];this.Kta=new THREE.ShaderPass(THREE.CopyShader);this.Hta=new THREE.Clock};Object.assign(THREE.EffectComposer.prototype,{swapBuffers:function(){var a=this.VE;this.VE=this.wF;this.wF=a},addPass:function(a){this.hs.push(a);a.setSize(this.W*this.Al,this.ea*this.Al)},insertPass:function(a,c){this.hs.splice(c,0,a)},Lva:function(a){for(a+=1;a0){this.pR--; if(this.pR===0)this.kq.uniforms.mixRatio.value=0.65}this.Li.render()};return b}); define("jn",["require"],function(){THREE.B_={uniforms:{tDiffuse:{value:r},resolution:{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:"varying vec2 vUv;\nvoid main() {\n\tvUv = uv;\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:'precision highp float;\n\nuniform sampler2D tDiffuse;\n\nuniform vec2 resolution;\n\nvarying vec2 vUv;\n\n// FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)\n\n//----------------------------------------------------------------------------------\n// File: es3-keplerFXAAassetsshaders/FXAA_DefaultES.frag\n// SDK Version: v3.00\n// Email: gameworks@nvidia.com\n// Site: http://developer.nvidia.com/\n//\n// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n// * Redistributions of source code must retain the above copyright\n// notice, this list of conditions and the following disclaimer.\n// * Redistributions in binary form must reproduce the above copyright\n// notice, this list of conditions and the following disclaimer in the\n// documentation and/or other materials provided with the distribution.\n// * Neither the name of NVIDIA CORPORATION nor the names of its\n// contributors may be used to endorse or promote products derived\n// from this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS\'\' AND ANY\n// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n//----------------------------------------------------------------------------------\n\n#define FXAA_PC 1\n#define FXAA_GLSL_100 1\n#define FXAA_QUALITY_PRESET 12\n\n#define FXAA_GREEN_AS_LUMA 1\n\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_PC_CONSOLE\n //\n // The console algorithm for PC is included\n // for developers targeting really low spec machines.\n // Likely better to just run FXAA_PC, and use a really low preset.\n //\n #define FXAA_PC_CONSOLE 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GLSL_120\n #define FXAA_GLSL_120 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GLSL_130\n #define FXAA_GLSL_130 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_3\n #define FXAA_HLSL_3 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_4\n #define FXAA_HLSL_4 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_5\n #define FXAA_HLSL_5 0\n#endif\n/*==========================================================================*/\n#ifndef FXAA_GREEN_AS_LUMA\n //\n // For those using non-linear color,\n // and either not able to get luma in alpha, or not wanting to,\n // this enables FXAA to run using green as a proxy for luma.\n // So with this enabled, no need to pack luma in alpha.\n //\n // This will turn off AA on anything which lacks some amount of green.\n // Pure red and blue or combination of only R and B, will get no AA.\n //\n // Might want to lower the settings for both,\n // fxaaConsoleEdgeThresholdMin\n // fxaaQualityEdgeThresholdMin\n // In order to insure AA does not get turned off on colors\n // which contain a minor amount of green.\n //\n // 1 = On.\n // 0 = Off.\n //\n #define FXAA_GREEN_AS_LUMA 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_EARLY_EXIT\n //\n // Controls algorithm\'s early exit path.\n // On PS3 turning this ON adds 2 cycles to the shader.\n // On 360 turning this OFF adds 10ths of a millisecond to the shader.\n // Turning this off on console will result in a more blurry image.\n // So this defaults to on.\n //\n // 1 = On.\n // 0 = Off.\n //\n #define FXAA_EARLY_EXIT 1\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_DISCARD\n //\n // Only valid for PC OpenGL currently.\n // Probably will not work when FXAA_GREEN_AS_LUMA = 1.\n //\n // 1 = Use discard on pixels which don\'t need AA.\n // For APIs which enable concurrent TEX+ROP from same surface.\n // 0 = Return unchanged color on pixels which don\'t need AA.\n //\n #define FXAA_DISCARD 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_FAST_PIXEL_OFFSET\n //\n // Used for GLSL 120 only.\n //\n // 1 = GL API supports fast pixel offsets\n // 0 = do not use fast pixel offsets\n //\n #ifdef GL_EXT_gpu_shader4\n #define FXAA_FAST_PIXEL_OFFSET 1\n #endif\n #ifdef GL_NV_gpu_shader5\n #define FXAA_FAST_PIXEL_OFFSET 1\n #endif\n #ifdef GL_ARB_gpu_shader5\n #define FXAA_FAST_PIXEL_OFFSET 1\n #endif\n #ifndef FXAA_FAST_PIXEL_OFFSET\n #define FXAA_FAST_PIXEL_OFFSET 0\n #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GATHER4_ALPHA\n //\n // 1 = API supports gather4 on alpha channel.\n // 0 = API does not support gather4 on alpha channel.\n //\n #if (FXAA_HLSL_5 == 1)\n #define FXAA_GATHER4_ALPHA 1\n #endif\n #ifdef GL_ARB_gpu_shader5\n #define FXAA_GATHER4_ALPHA 1\n #endif\n #ifdef GL_NV_gpu_shader5\n #define FXAA_GATHER4_ALPHA 1\n #endif\n #ifndef FXAA_GATHER4_ALPHA\n #define FXAA_GATHER4_ALPHA 0\n #endif\n#endif\n\n\n/*============================================================================\n FXAA QUALITY - TUNING KNOBS\n------------------------------------------------------------------------------\nNOTE the other tuning knobs are now in the shader function inputs!\n============================================================================*/\n#ifndef FXAA_QUALITY_PRESET\n //\n // Choose the quality preset.\n // This needs to be compiled into the shader as it effects code.\n // Best option to include multiple presets is to\n // in each shader define the preset, then include this file.\n //\n // OPTIONS\n // -----------------------------------------------------------------------\n // 10 to 15 - default medium dither (10=fastest, 15=highest quality)\n // 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)\n // 39 - no dither, very expensive\n //\n // NOTES\n // -----------------------------------------------------------------------\n // 12 = slightly faster then FXAA 3.9 and higher edge quality (default)\n // 13 = about same speed as FXAA 3.9 and better than 12\n // 23 = closest to FXAA 3.9 visually and performance wise\n // _ = the lowest digit is directly related to performance\n // _ = the highest digit is directly related to style\n //\n #define FXAA_QUALITY_PRESET 12\n#endif\n\n\n/*============================================================================\n\n FXAA QUALITY - PRESETS\n\n============================================================================*/\n\n/*============================================================================\n FXAA QUALITY - MEDIUM DITHER PRESETS\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 10)\n #define FXAA_QUALITY_PS 3\n #define FXAA_QUALITY_P0 1.5\n #define FXAA_QUALITY_P1 3.0\n #define FXAA_QUALITY_P2 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 11)\n #define FXAA_QUALITY_PS 4\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 3.0\n #define FXAA_QUALITY_P3 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 12)\n #define FXAA_QUALITY_PS 5\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 4.0\n #define FXAA_QUALITY_P4 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 13)\n #define FXAA_QUALITY_PS 6\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 4.0\n #define FXAA_QUALITY_P5 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 14)\n #define FXAA_QUALITY_PS 7\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 4.0\n #define FXAA_QUALITY_P6 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 15)\n #define FXAA_QUALITY_PS 8\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 4.0\n #define FXAA_QUALITY_P7 12.0\n#endif\n\n/*============================================================================\n FXAA QUALITY - LOW DITHER PRESETS\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 20)\n #define FXAA_QUALITY_PS 3\n #define FXAA_QUALITY_P0 1.5\n #define FXAA_QUALITY_P1 2.0\n #define FXAA_QUALITY_P2 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 21)\n #define FXAA_QUALITY_PS 4\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 22)\n #define FXAA_QUALITY_PS 5\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 23)\n #define FXAA_QUALITY_PS 6\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 24)\n #define FXAA_QUALITY_PS 7\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 3.0\n #define FXAA_QUALITY_P6 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 25)\n #define FXAA_QUALITY_PS 8\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 4.0\n #define FXAA_QUALITY_P7 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 26)\n #define FXAA_QUALITY_PS 9\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 4.0\n #define FXAA_QUALITY_P8 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 27)\n #define FXAA_QUALITY_PS 10\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 4.0\n #define FXAA_QUALITY_P9 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 28)\n #define FXAA_QUALITY_PS 11\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 4.0\n #define FXAA_QUALITY_P10 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 29)\n #define FXAA_QUALITY_PS 12\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.5\n #define FXAA_QUALITY_P2 2.0\n #define FXAA_QUALITY_P3 2.0\n #define FXAA_QUALITY_P4 2.0\n #define FXAA_QUALITY_P5 2.0\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 2.0\n #define FXAA_QUALITY_P10 4.0\n #define FXAA_QUALITY_P11 8.0\n#endif\n\n/*============================================================================\n FXAA QUALITY - EXTREME QUALITY\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 39)\n #define FXAA_QUALITY_PS 12\n #define FXAA_QUALITY_P0 1.0\n #define FXAA_QUALITY_P1 1.0\n #define FXAA_QUALITY_P2 1.0\n #define FXAA_QUALITY_P3 1.0\n #define FXAA_QUALITY_P4 1.0\n #define FXAA_QUALITY_P5 1.5\n #define FXAA_QUALITY_P6 2.0\n #define FXAA_QUALITY_P7 2.0\n #define FXAA_QUALITY_P8 2.0\n #define FXAA_QUALITY_P9 2.0\n #define FXAA_QUALITY_P10 4.0\n #define FXAA_QUALITY_P11 8.0\n#endif\n\n\n\n/*============================================================================\n\n API PORTING\n\n============================================================================*/\n#if (FXAA_GLSL_100 == 1) || (FXAA_GLSL_120 == 1) || (FXAA_GLSL_130 == 1)\n #define FxaaBool bool\n #define FxaaDiscard discard\n #define FxaaFloat float\n #define FxaaFloat2 vec2\n #define FxaaFloat3 vec3\n #define FxaaFloat4 vec4\n #define FxaaHalf float\n #define FxaaHalf2 vec2\n #define FxaaHalf3 vec3\n #define FxaaHalf4 vec4\n #define FxaaInt2 ivec2\n #define FxaaSat(x) clamp(x, 0.0, 1.0)\n #define FxaaTex sampler2D\n#else\n #define FxaaBool bool\n #define FxaaDiscard clip(-1)\n #define FxaaFloat float\n #define FxaaFloat2 float2\n #define FxaaFloat3 float3\n #define FxaaFloat4 float4\n #define FxaaHalf half\n #define FxaaHalf2 half2\n #define FxaaHalf3 half3\n #define FxaaHalf4 half4\n #define FxaaSat(x) saturate(x)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_100 == 1)\n #define FxaaTexTop(t, p) texture2D(t, p, 0.0)\n #define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), 0.0)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_120 == 1)\n // Requires,\n // #version 120\n // And at least,\n // #extension GL_EXT_gpu_shader4 : enable\n // (or set FXAA_FAST_PIXEL_OFFSET 1 to work like DX9)\n #define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)\n #if (FXAA_FAST_PIXEL_OFFSET == 1)\n #define FxaaTexOff(t, p, o, r) texture2DLodOffset(t, p, 0.0, o)\n #else\n #define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)\n #endif\n #if (FXAA_GATHER4_ALPHA == 1)\n // use #extension GL_ARB_gpu_shader5 : enable\n #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n #define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_130 == 1)\n // Requires "#version 130" or better\n #define FxaaTexTop(t, p) textureLod(t, p, 0.0)\n #define FxaaTexOff(t, p, o, r) textureLodOffset(t, p, 0.0, o)\n #if (FXAA_GATHER4_ALPHA == 1)\n // use #extension GL_ARB_gpu_shader5 : enable\n #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n #define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_3 == 1)\n #define FxaaInt2 float2\n #define FxaaTex sampler2D\n #define FxaaTexTop(t, p) tex2Dlod(t, float4(p, 0.0, 0.0))\n #define FxaaTexOff(t, p, o, r) tex2Dlod(t, float4(p + (o * r), 0, 0))\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_4 == 1)\n #define FxaaInt2 int2\n struct FxaaTex { SamplerState smpl; Texture2D tex; };\n #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_5 == 1)\n #define FxaaInt2 int2\n struct FxaaTex { SamplerState smpl; Texture2D tex; };\n #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n #define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)\n #define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)\n #define FxaaTexGreen4(t, p) t.tex.GatherGreen(t.smpl, p)\n #define FxaaTexOffGreen4(t, p, o) t.tex.GatherGreen(t.smpl, p, o)\n#endif\n\n\n/*============================================================================\n GREEN AS LUMA OPTION SUPPORT FUNCTION\n============================================================================*/\n#if (FXAA_GREEN_AS_LUMA == 0)\n FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.w; }\n#else\n FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }\n#endif\n\n\n\n\n/*============================================================================\n\n FXAA3 QUALITY - PC\n\n============================================================================*/\n#if (FXAA_PC == 1)\n/*--------------------------------------------------------------------------*/\nFxaaFloat4 FxaaPixelShader(\n //\n // Use noperspective interpolation here (turn off perspective interpolation).\n // {xy} = center of pixel\n FxaaFloat2 pos,\n //\n // Used only for FXAA Console, and not used on the 360 version.\n // Use noperspective interpolation here (turn off perspective interpolation).\n // {xy_} = upper left of pixel\n // {_zw} = lower right of pixel\n FxaaFloat4 fxaaConsolePosPos,\n //\n // Input color texture.\n // {rgb_} = color in linear or perceptual color space\n // if (FXAA_GREEN_AS_LUMA == 0)\n // {__a} = luma in perceptual color space (not linear)\n FxaaTex tex,\n //\n // Only used on the optimized 360 version of FXAA Console.\n // For everything but 360, just use the same input here as for "tex".\n // For 360, same texture, just alias with a 2nd sampler.\n // This sampler needs to have an exponent bias of -1.\n FxaaTex fxaaConsole360TexExpBiasNegOne,\n //\n // Only used on the optimized 360 version of FXAA Console.\n // For everything but 360, just use the same input here as for "tex".\n // For 360, same texture, just alias with a 3nd sampler.\n // This sampler needs to have an exponent bias of -2.\n FxaaTex fxaaConsole360TexExpBiasNegTwo,\n //\n // Only used on FXAA Quality.\n // This must be from a constant/uniform.\n // {x_} = 1.0/screenWidthInPixels\n // {_y} = 1.0/screenHeightInPixels\n FxaaFloat2 fxaaQualityRcpFrame,\n //\n // Only used on FXAA Console.\n // This must be from a constant/uniform.\n // This effects sub-pixel AA quality and inversely sharpness.\n // Where N ranges between,\n // N = 0.50 (default)\n // N = 0.33 (sharper)\n // {x__} = -N/screenWidthInPixels\n // {_y_} = -N/screenHeightInPixels\n // {_z_} = N/screenWidthInPixels\n // {__w} = N/screenHeightInPixels\n FxaaFloat4 fxaaConsoleRcpFrameOpt,\n //\n // Only used on FXAA Console.\n // Not used on 360, but used on PS3 and PC.\n // This must be from a constant/uniform.\n // {x__} = -2.0/screenWidthInPixels\n // {_y_} = -2.0/screenHeightInPixels\n // {_z_} = 2.0/screenWidthInPixels\n // {__w} = 2.0/screenHeightInPixels\n FxaaFloat4 fxaaConsoleRcpFrameOpt2,\n //\n // Only used on FXAA Console.\n // Only used on 360 in place of fxaaConsoleRcpFrameOpt2.\n // This must be from a constant/uniform.\n // {x__} = 8.0/screenWidthInPixels\n // {_y_} = 8.0/screenHeightInPixels\n // {_z_} = -4.0/screenWidthInPixels\n // {__w} = -4.0/screenHeightInPixels\n FxaaFloat4 fxaaConsole360RcpFrameOpt2,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_SUBPIX define.\n // It is here now to allow easier tuning.\n // Choose the amount of sub-pixel aliasing removal.\n // This can effect sharpness.\n // 1.00 - upper limit (softer)\n // 0.75 - default amount of filtering\n // 0.50 - lower limit (sharper, less sub-pixel aliasing removal)\n // 0.25 - almost off\n // 0.00 - completely off\n FxaaFloat fxaaQualitySubpix,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_EDGE_THRESHOLD define.\n // It is here now to allow easier tuning.\n // The minimum amount of local contrast required to apply algorithm.\n // 0.333 - too little (faster)\n // 0.250 - low quality\n // 0.166 - default\n // 0.125 - high quality\n // 0.063 - overkill (slower)\n FxaaFloat fxaaQualityEdgeThreshold,\n //\n // Only used on FXAA Quality.\n // This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define.\n // It is here now to allow easier tuning.\n // Trims the algorithm from processing darks.\n // 0.0833 - upper limit (default, the start of visible unfiltered edges)\n // 0.0625 - high quality (faster)\n // 0.0312 - visible limit (slower)\n // Special notes when using FXAA_GREEN_AS_LUMA,\n // Likely want to set this to zero.\n // As colors that are mostly not-green\n // will appear very dark in the green channel!\n // Tune by looking at mostly non-green content,\n // then start at zero and increase until aliasing is a problem.\n FxaaFloat fxaaQualityEdgeThresholdMin,\n //\n // Only used on FXAA Console.\n // This used to be the FXAA_CONSOLE_EDGE_SHARPNESS define.\n // It is here now to allow easier tuning.\n // This does not effect PS3, as this needs to be compiled in.\n // Use FXAA_CONSOLE_PS3_EDGE_SHARPNESS for PS3.\n // Due to the PS3 being ALU bound,\n // there are only three safe values here: 2 and 4 and 8.\n // These options use the shaders ability to a free *|/ by 2|4|8.\n // For all other platforms can be a non-power of two.\n // 8.0 is sharper (default!!!)\n // 4.0 is softer\n // 2.0 is really soft (good only for vector graphics inputs)\n FxaaFloat fxaaConsoleEdgeSharpness,\n //\n // Only used on FXAA Console.\n // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD define.\n // It is here now to allow easier tuning.\n // This does not effect PS3, as this needs to be compiled in.\n // Use FXAA_CONSOLE_PS3_EDGE_THRESHOLD for PS3.\n // Due to the PS3 being ALU bound,\n // there are only two safe values here: 1/4 and 1/8.\n // These options use the shaders ability to a free *|/ by 2|4|8.\n // The console setting has a different mapping than the quality setting.\n // Other platforms can use other values.\n // 0.125 leaves less aliasing, but is softer (default!!!)\n // 0.25 leaves more aliasing, and is sharper\n FxaaFloat fxaaConsoleEdgeThreshold,\n //\n // Only used on FXAA Console.\n // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD_MIN define.\n // It is here now to allow easier tuning.\n // Trims the algorithm from processing darks.\n // The console setting has a different mapping than the quality setting.\n // This only applies when FXAA_EARLY_EXIT is 1.\n // This does not apply to PS3,\n // PS3 was simplified to avoid more shader instructions.\n // 0.06 - faster but more aliasing in darks\n // 0.05 - default\n // 0.04 - slower and less aliasing in darks\n // Special notes when using FXAA_GREEN_AS_LUMA,\n // Likely want to set this to zero.\n // As colors that are mostly not-green\n // will appear very dark in the green channel!\n // Tune by looking at mostly non-green content,\n // then start at zero and increase until aliasing is a problem.\n FxaaFloat fxaaConsoleEdgeThresholdMin,\n //\n // Extra constants for 360 FXAA Console only.\n // Use zeros or anything else for other platforms.\n // These must be in physical constant registers and NOT immediates.\n // Immediates will result in compiler un-optimizing.\n // {xyzw} = float4(1.0, -1.0, 0.25, -0.25)\n FxaaFloat4 fxaaConsole360ConstDir\n) {\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posM;\n posM.x = pos.x;\n posM.y = pos.y;\n #if (FXAA_GATHER4_ALPHA == 1)\n #if (FXAA_DISCARD == 0)\n FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n #if (FXAA_GREEN_AS_LUMA == 0)\n #define lumaM rgbyM.w\n #else\n #define lumaM rgbyM.y\n #endif\n #endif\n #if (FXAA_GREEN_AS_LUMA == 0)\n FxaaFloat4 luma4A = FxaaTexAlpha4(tex, posM);\n FxaaFloat4 luma4B = FxaaTexOffAlpha4(tex, posM, FxaaInt2(-1, -1));\n #else\n FxaaFloat4 luma4A = FxaaTexGreen4(tex, posM);\n FxaaFloat4 luma4B = FxaaTexOffGreen4(tex, posM, FxaaInt2(-1, -1));\n #endif\n #if (FXAA_DISCARD == 1)\n #define lumaM luma4A.w\n #endif\n #define lumaE luma4A.z\n #define lumaS luma4A.x\n #define lumaSE luma4A.y\n #define lumaNW luma4B.w\n #define lumaN luma4B.z\n #define lumaW luma4B.x\n #else\n FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n #if (FXAA_GREEN_AS_LUMA == 0)\n #define lumaM rgbyM.w\n #else\n #define lumaM rgbyM.y\n #endif\n #if (FXAA_GLSL_100 == 1)\n FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0, 1.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 0.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0,-1.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 0.0), fxaaQualityRcpFrame.xy));\n #else\n FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));\n #endif\n #endif\n/*--------------------------------------------------------------------------*/\n FxaaFloat maxSM = max(lumaS, lumaM);\n FxaaFloat minSM = min(lumaS, lumaM);\n FxaaFloat maxESM = max(lumaE, maxSM);\n FxaaFloat minESM = min(lumaE, minSM);\n FxaaFloat maxWN = max(lumaN, lumaW);\n FxaaFloat minWN = min(lumaN, lumaW);\n FxaaFloat rangeMax = max(maxWN, maxESM);\n FxaaFloat rangeMin = min(minWN, minESM);\n FxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;\n FxaaFloat range = rangeMax - rangeMin;\n FxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);\n FxaaBool earlyExit = range < rangeMaxClamped;\n/*--------------------------------------------------------------------------*/\n if(earlyExit)\n #if (FXAA_DISCARD == 1)\n FxaaDiscard;\n #else\n return rgbyM;\n #endif\n/*--------------------------------------------------------------------------*/\n #if (FXAA_GATHER4_ALPHA == 0)\n #if (FXAA_GLSL_100 == 1)\n FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0,-1.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 1.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0,-1.0), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 1.0), fxaaQualityRcpFrame.xy));\n #else\n FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n #endif\n #else\n FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(1, -1), fxaaQualityRcpFrame.xy));\n FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n #endif\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNS = lumaN + lumaS;\n FxaaFloat lumaWE = lumaW + lumaE;\n FxaaFloat subpixRcpRange = 1.0/range;\n FxaaFloat subpixNSWE = lumaNS + lumaWE;\n FxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;\n FxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNESE = lumaNE + lumaSE;\n FxaaFloat lumaNWNE = lumaNW + lumaNE;\n FxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;\n FxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;\n/*--------------------------------------------------------------------------*/\n FxaaFloat lumaNWSW = lumaNW + lumaSW;\n FxaaFloat lumaSWSE = lumaSW + lumaSE;\n FxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);\n FxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);\n FxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;\n FxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;\n FxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;\n FxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;\n/*--------------------------------------------------------------------------*/\n FxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;\n FxaaFloat lengthSign = fxaaQualityRcpFrame.x;\n FxaaBool horzSpan = edgeHorz >= edgeVert;\n FxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;\n/*--------------------------------------------------------------------------*/\n if(!horzSpan) lumaN = lumaW;\n if(!horzSpan) lumaS = lumaE;\n if(horzSpan) lengthSign = fxaaQualityRcpFrame.y;\n FxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;\n/*--------------------------------------------------------------------------*/\n FxaaFloat gradientN = lumaN - lumaM;\n FxaaFloat gradientS = lumaS - lumaM;\n FxaaFloat lumaNN = lumaN + lumaM;\n FxaaFloat lumaSS = lumaS + lumaM;\n FxaaBool pairN = abs(gradientN) >= abs(gradientS);\n FxaaFloat gradient = max(abs(gradientN), abs(gradientS));\n if(pairN) lengthSign = -lengthSign;\n FxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posB;\n posB.x = posM.x;\n posB.y = posM.y;\n FxaaFloat2 offNP;\n offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;\n offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;\n if(!horzSpan) posB.x += lengthSign * 0.5;\n if( horzSpan) posB.y += lengthSign * 0.5;\n/*--------------------------------------------------------------------------*/\n FxaaFloat2 posN;\n posN.x = posB.x - offNP.x * FXAA_QUALITY_P0;\n posN.y = posB.y - offNP.y * FXAA_QUALITY_P0;\n FxaaFloat2 posP;\n posP.x = posB.x + offNP.x * FXAA_QUALITY_P0;\n posP.y = posB.y + offNP.y * FXAA_QUALITY_P0;\n FxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;\n FxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));\n FxaaFloat subpixE = subpixC * subpixC;\n FxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));\n/*--------------------------------------------------------------------------*/\n if(!pairN) lumaNN = lumaSS;\n FxaaFloat gradientScaled = gradient * 1.0/4.0;\n FxaaFloat lumaMM = lumaM - lumaNN * 0.5;\n FxaaFloat subpixF = subpixD * subpixE;\n FxaaBool lumaMLTZero = lumaMM < 0.0;\n/*--------------------------------------------------------------------------*/\n lumaEndN -= lumaNN * 0.5;\n lumaEndP -= lumaNN * 0.5;\n FxaaBool doneN = abs(lumaEndN) >= gradientScaled;\n FxaaBool doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;\n FxaaBool doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;\n/*--------------------------------------------------------------------------*/\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 3)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 4)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 5)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 6)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 7)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 8)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 9)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 10)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 11)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;\n/*--------------------------------------------------------------------------*/\n #if (FXAA_QUALITY_PS > 12)\n if(doneNP) {\n if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n doneN = abs(lumaEndN) >= gradientScaled;\n doneP = abs(lumaEndP) >= gradientScaled;\n if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;\n if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;\n doneNP = (!doneN) || (!doneP);\n if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;\n if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n #endif\n/*--------------------------------------------------------------------------*/\n }\n/*--------------------------------------------------------------------------*/\n FxaaFloat dstN = posM.x - posN.x;\n FxaaFloat dstP = posP.x - posM.x;\n if(!horzSpan) dstN = posM.y - posN.y;\n if(!horzSpan) dstP = posP.y - posM.y;\n/*--------------------------------------------------------------------------*/\n FxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;\n FxaaFloat spanLength = (dstP + dstN);\n FxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;\n FxaaFloat spanLengthRcp = 1.0/spanLength;\n/*--------------------------------------------------------------------------*/\n FxaaBool directionN = dstN < dstP;\n FxaaFloat dst = min(dstN, dstP);\n FxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;\n FxaaFloat subpixG = subpixF * subpixF;\n FxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;\n FxaaFloat subpixH = subpixG * fxaaQualitySubpix;\n/*--------------------------------------------------------------------------*/\n FxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;\n FxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);\n if(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;\n if( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;\n #if (FXAA_DISCARD == 1)\n return FxaaTexTop(tex, posM);\n #else\n return FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);\n #endif\n}\n/*==========================================================================*/\n#endif\n\nvoid main() {\n gl_FragColor = FxaaPixelShader(\n vUv,\n vec4(0.0),\n tDiffuse,\n tDiffuse,\n tDiffuse,\n resolution,\n vec4(0.0),\n vec4(0.0),\n vec4(0.0),\n 0.75,\n 0.166,\n 0.0833,\n 0.0,\n 0.0,\n 0.0,\n vec4(0.0)\n );\n\n // TODO avoid querying texture twice for same texel\n gl_FragColor.a = texture2D(tDiffuse, vUv).a;\n}'};return THREE.B_}); define("hc",["require","cM","jn","iB","fI"],function(a){function b(a,b){this.g=a;this.Yx=b;this.Li=new THREE.EffectComposer(a);this.Dl=new THREE.CustomRenderPass(b);this.Dl.Fp=z;this.Li.addPass(this.Dl);this.zH=new THREE.ShaderPass(THREE.B_);this.Li.addPass(this.zH);this.sq=this.tq=m}a("cM");a("jn");a("iB");a("fI");var c=new THREE.Vector2;b.prototype.destroy=function(){this.Li=this.zH=this.Dl=this.Yx=this.g=r};b.prototype.render=function(a,b){this.g.getSize(c);if(this.tq!==c.width||this.sq!==c.height)this.tq= c.width,this.sq=c.height,this.Li.setSize(this.tq,this.sq),this.zH.material.uniforms.resolution.value.x=1/this.tq,this.zH.material.uniforms.resolution.value.y=1/this.sq;this.Dl.vj=a;this.Dl.Ic=b;this.Li.render()};return b}); define("io",["require","cz","hc"],function(a){function b(a,f){this.g=a;this.Yx=f;this.DI=new c(a,f);this.tR=new e(a,f);this.mH=b.NONE}var c=a("cz"),e=a("hc");b.A_="fxaa";b.iO="motionBlur";b.NONE="none";b.prototype.destroy=function(){this.DI.destroy();this.DI=r;this.tR.destroy();this.Yx=this.g=this.tR=r};b.prototype.oZ=function(a){this.mH!=a&&(this.mH=a,this.mH==b.iO&&this.DI.start())};b.prototype.render=function(a,c){switch(this.mH){case b.A_:this.tR.render(a,c);break;case b.iO:this.DI.render(a,c); break;default:this.Yx(this.g,a,c,r,z)}};return b}); define("bJ",["require","r"],function(a){function b(a){THREE.Object3D.call(this);this.Vd=document.createElement("div");this.Vd.style.position="absolute";this.Vd.style.pointerEvents="none";this.Vd.style.overflow="hidden";this.Vr=document.createElement("div");this.Vd.appendChild(this.Vr);this.Vr.style.transformStyle="preserve-3d";this.Vr.style.position="absolute";this.Vr.style.pointerEvents="none";this.element=a||document.createElement("div");this.Vr.appendChild(this.element);this.element.style.position= "absolute";this.element.style.pointerEvents="none";this.wk=this.xk=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.UE=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.addEventListener("removed",function(){this.traverse(function(a){a.Vd instanceof Element&&a.Vd.parentNode!==r&&a.Vd.parentNode.removeChild(a.Vd)})})}function c(a){THREE.Object3D.call(this,a);this.wk=this.xk=100;this.vertices=[new THREE.Vector3,new THREE.Vector3, new THREE.Vector3,new THREE.Vector3];this.UE=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.Vd=document.createElement("div");this.Vd.style.position="absolute";this.Vd.style.pointerEvents="none";this.Vd.style.overflow="hidden";this.element=a||document.createElement("div");this.Vd.appendChild(this.element);this.element.style.position="absolute";this.element.style.pointerEvents="none"}function e(a){THREE.qN.call(this,a)}function d(a,b){for(var c=0;ca.z}),c=0,f=0,e=0,i=0;b.forEach(function(b){-1>b.x?c-=1:1b.y?f-=1:1j};b.prototype.uca=p;THREE.e_=b;c.prototype=Object.create(THREE.Object3D.prototype);c.prototype.constructor=c;c.prototype.copy=function(a,b){THREE.Object3D.prototype.copy.call(this,a,b);for(var c=0;4>c;c++)this.vertices[c].copy(a.vertices[c]);return this};c.prototype.YY=function(a){this.matrixWorldNeedsUpdate&&this.updateMatrixWorld();d(this,a);var b=this.UE;this.uY=0>b[0].z&&0>b[1].z&& 0>b[2].z&&0>b[3].z;var c=0,f=0,e=0,i=0;b.forEach(function(b){-1>b.x?c-=1:1b.y?f-=1:1j};c.prototype.vca=p;THREE.qN=c;e.prototype=Object.create(THREE.qN.prototype);e.prototype.constructor=e;e.prototype.sea=function(){this.vertices[0].set(0.5*-this.xk,0.5*+this.wk,0);this.vertices[1].set(0.5*+this.xk,0.5*+this.wk,0);this.vertices[2].set(0.5* +this.xk,0.5*-this.wk,0);this.vertices[3].set(0.5*-this.xk,0.5*-this.wk,0)};THREE.Hea=e;var l=new THREE.Matrix4;THREE.f_=function(){var a;function b(n,o,s){if(n.uca||n.vca){n.onBeforeRender(d,o,s);var G=a.get(n)||{},H=z;if(n.pM){if(n.vca){var T=n.UE,K=n.xk,U=n.wk,V=l.elements,W=0.5*(1+T[0].x)*e,Y=0.5*(1-T[0].y)*j,Z=0.5*(1+T[1].x)*e,aa=0.5*(1-T[1].y)*j,X=0.5*(1+T[3].x)*e,ba=0.5*(1-T[3].y)*j,ca=0.5*(1+T[2].x)*e,T=0.5*(1-T[2].y)*j,da=y;i(0,0,K,0,0,U,K,U,v);i(W,Y,Z,aa,X,ba,ca,T,w);g(v,x);k(w,x,da);f(V, y[0]/y[8],y[3]/y[8],0,y[6]/y[8],y[1]/y[8],y[4]/y[8],0,y[7]/y[8],0,0,1,0,y[2]/y[8],y[5]/y[8],0,1);K=l.elements;K="matrix3d("+c(K[0])+","+c(K[1])+","+c(K[2])+","+c(K[3])+","+c(K[4])+","+c(K[5])+","+c(K[6])+","+c(K[7])+","+c(K[8])+","+c(K[9])+","+c(K[10])+","+c(K[11])+","+c(K[12])+","+c(K[13])+","+c(K[14])+","+c(K[15])+")";G.GX!=K&&(G.GX=n.element.style.transform=K,H=p);if(G.width!==e||G.height!==j)n.Vd.style.width=(G.width=e)+"px",n.Vd.style.height=(G.height=j)+"px",H=p}else{K=n.matrixWorld.elements; K="translate(-50%,-50%)"+("matrix3d("+c(K[0])+","+c(K[1])+","+c(K[2])+","+c(K[3])+","+c(-K[4])+","+c(-K[5])+","+c(-K[6])+","+c(-K[7])+","+c(K[8])+","+c(K[9])+","+c(K[10])+","+c(K[11])+","+c(K[12])+","+c(K[13])+","+c(K[14])+","+c(K[15])+")");G.rta!==q&&(n.Vd.style.perspective=(G.rta=q)+"px",H=p);if(G.width!==e||G.height!==j)n.Vr.style.width=n.Vd.style.width=(G.width=e)+"px",n.Vr.style.height=n.Vd.style.height=(G.height=j)+"px",H=p;G.sta!==u&&(G.sta=n.Vr.style.transform=u,H=p);G.GX!==K&&(G.GX=n.element.style.transform= K,H=p)}n.Vd.style.left="0"}else n.Vd.style.left=e+"px";H&&a.set(n,G);n.Vd.style.display=n.visible?"":"none";n.Vd.parentNode!==t&&t.appendChild(n.Vd);n.onAfterRender(d,o,s)}G=0;for(H=n.children.length;Ga&&-1.0E-10=0&&t.splice(s,1);if(o.Av==0&&o.status!=g.TF){o.status=g.TF;o.XY=0;this.Wra(q)}}};b.prototype.V$= function(a){for(var a=(a==m?this.cr:this.z4(a)).slice(),b=0;b=b.HAVE_CURRENT_DATA&&a.ama.drawImage(b,0,0,k,i);a.image=a.hl}else a.image=b;a.Fm&&a.image!=a.Fm&&(d.EL(a.Fm),delete a.Fm);a.needsUpdate=p;if((k=d.hY(a))&&k.isShaderMaterial)k.needsUpdate=p;c.qca()},nua:function(a){a?c.yY(a)?a=b.qe(a,z):c.Gca(a)?a=this.Ty():c.IE(a)&&!(a.readyState>=a.HAVE_CURRENT_DATA&&0 0.0)"," color.rgb /= color.a;"]));if(b.Tr){var j=a.image.width||a.image.videoWidth,l=a.image.height||a.image.videoHeight,q=0.5*Math.min(j,l)*b.Tr;c.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(q/j,q/l)};d=d.concat(["uniform vec2 blendingLimit;"]);e=e.concat(" float xCoef = 0.0;, float yCoef = 0.0;, if (vUV.x < blendingLimit.x) {, xCoef = 1.0 - (vUV.x / blendingLimit.x);, xCoef = xCoef * xCoef;, } else if ((1.0 - vUV.x) < blendingLimit.x) {, xCoef = 1.0 - ((1.0 - vUV.x) / blendingLimit.x);, xCoef = xCoef * xCoef;, }, if (vUV.y < blendingLimit.y) {, yCoef = 1.0 - (vUV.y / blendingLimit.y);, yCoef = yCoef * yCoef;, } else if ((1.0 - vUV.y) < blendingLimit.y) {, yCoef = 1.0 - ((1.0 - vUV.y) / blendingLimit.y);, yCoef = yCoef * yCoef;, }, alpha = alpha * (1.0 - sqrt(xCoef + yCoef));".split(","))}b.jn&& (c.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(b.jn.substr(1,2),16)/255,parseInt(b.jn.substr(3,2),16)/255,parseInt(b.jn.substr(5,2),16)/255)},c.uniforms.chromaThreshold={type:"f",value:b.jE},c.uniforms.chromaSmoothing={type:"f",value:b.iE},d=d.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),e=e.concat(" float maskY = 0.2989 * chromaColor.r + 0.5866 * chromaColor.g + 0.1145 * chromaColor.b;{ float maskCr = 0.7132 * (chromaColor.r - maskY);{ float maskCb = 0.5647 * (chromaColor.b - maskY);{ float Y = 0.2989 * color.r + 0.5866 * color.g + 0.1145 * color.b;{ float Cr = 0.7132 * (color.r - Y);{ float Cb = 0.5647 * (color.b - Y);{ float chromaBlendValue = smoothstep(chromaThreshold, chromaThreshold + chromaSmoothing, distance(vec2(Cr, Cb), vec2(maskCr, maskCb)));{ alpha = alpha * chromaBlendValue;".split("{"))); e=e.concat(["\tgl_FragColor = vec4(color"+(b.DE?".bgr":".rgb")+", alpha);"]);a.format=THREE.RGBAFormat;c.fragmentShader=[].concat(d,["void main() {"],e,["}"]).join("\n")}else c.fragmentShader="uniform sampler2D texture;\nvarying vec2 vUV;\nvoid main() {\n\tgl_FragColor = texture2D(texture, vUV);\n}";c=new THREE.ShaderMaterial(c);this.Q1(c);return c},dispose:function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){var b=d.$X(a);b&&e.dispose(b);a.dispose()})},Q1:function(a){a.side=THREE.DoubleSide; a.transparent=p;a.depthTest=z;a.needsUpdate=p;a.userData={};a.userData.Kca={};e.lya(d.$X(a),a)},tZ:function(a,b){a.userData.Kca.Dk=b},xba:function(a){return a.userData.Kca.Dk}};b.prototype.Wwa=function(){return this.tF||this.DE||this.Tr||this.jn||this.premultipliedAlpha};b.prototype.isEqual=function(a){return this.tF===a.tF&&this.DE===a.DE&&this.Tr===a.Tr&&this.jn===a.jn&&this.jE===a.jE&&this.iE===a.iE&&this.premultipliedAlpha===a.premultipliedAlpha};d.Jn=b;return d}); define("dt",["require","gS","bT"],function(a){function b(a){return Array.isArray(a)?a:a?[a]:[]}var c=a("gS"),e=a("bT"),d={create:function(a,c){var d=new THREE.Mesh(a,c);d.overdraw=z;d.matrixAutoUpdate=z;d.userData.Bp={};d.userData.Bp.attributes={};b(c).forEach(function(a){e.tZ(a,d)});return d},Raa:function(a){var b=new THREE.Group;d.forEach(a,function(a){b.add(a)});return b},Sxa:function(a,c){b(c).forEach(function(a){e.tZ(a,r)});e.dispose(a.material);a.material=c;b(c).forEach(function(b){e.tZ(b,a)})}, cs:function(a){return b(a.material)},Nua:function(a,b){if(a.layers.mask&b.layers.mask){var e=d.cs(a);return c.Mua(a.geometry,b,a.matrixWorld).map(function(a){return e[a]})}return[]},uxa:function(a,b){a.geometry=b},Jua:function(a,b){var k=[];d.Kg(a,function(a){var f=d.cs(a);b.forEach(function(b){var d=c.Iua(a.geometry,a.matrixWorld,b);if(d){var g=e.$X(f[d.materialIndex]),b=g.image;b==g.Fm&&(b=g.Fm.ia);g=Math.round(d.pea*b.width-0.5);g=0>g?0:g>b.width-1?b.width-1:g;d=Math.round((1-d.tea)*b.height-0.5); d=0>d?0:d>b.height-1?b.height-1:d;k.push({x:g,y:d,source:b})}})});return k},RM:function(a,b){d.forEach(a,function(a){b?b.add(a):a.parent&&a.parent.remove(a)})},us:"panoramaId",Tv:"panoramaFrameId",hN:"panoramaOverlayId",gN:"levelIndex",setAttribute:function(a,b,c){d.Kg(a,function(a){a.userData.Bp.attributes[b]=c})},getAttribute:function(a,b){return a.userData.Bp.attributes[b]},dba:function(a,b,c){for(var d=[],e=0,j=a.length;e\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}\n"; l.side=THREE.BackSide;l.depthWrite=z;l.transparent=p;l.depthTest=z;l.needsUpdate=p;var o=new THREE.Mesh(new THREE.SphereBufferGeometry(5,64,64),l);o.overdraw=z;o.matrixAutoUpdate=z;o.renderOrder=1E3;var t=new THREE.Matrix4;this.Nv=function(a){j=a};this.setSize=function(b,c){if(f!=b||n!=c)a.setSize(f=b,n=c)};this.start=function(c){c.add(o);c.add(q);c.traverse(function(a){if(a.layers.test(q.layers)){a.userData.DY=a.layers.mask;a.layers.mask=q.layers.mask}});q.visible=p;o.visible=p;e.nZ(c,[b]);a.setClearColor(16777215, 1);a.setPixelRatio(d.getPixelRatio())};this.stop=function(b){a.setClearColor(0,0);b.traverse(function(a){if(a.userData.DY!==m){a.layers.mask=a.userData.DY;delete a.userData.DY}});q.visible=z;o.visible=z;b.remove(o);b.remove(q)};this.fov=function(){return b.fov};this.SZ=function(){if(j>0){o.matrix.copy(b.matrixWorld);o.matrix.multiply(t.makeTranslation(0,0,-j*5));o.matrixWorldNeedsUpdate=p}};this.Ic=function(){return b};var s=0;this.render=function(c,e,f){if(j>0){s++;if(!d.Dva()||s%10==0){d.hxa(); o.visible=z;q.update(a,c);o.visible=p}}a.setRenderTarget(e);f&&a.clear();a.render(c,b)}}}}); define("dE","require,jquery.mod,im,kl,cS,io,bJ,X,gS,fH,bi".split(","),function(a){function b(){this.I=c("
");this.I.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,cursor:"inherit"});this.sb=new THREE.PerspectiveCamera(90,16/9,0.1,2*i.Jd);this.sb.layers.enable(f.oa);this.aH=new THREE.PerspectiveCamera;this.mk=new THREE.Scene;this.i3=new THREE.Scene;this.j3=new THREE.Scene;window.Dza=THREE;this.mk.add(this.sb);this.ho=this.yq=this.g=r;this.Ut=0;this.Ro=this.bg=this.BV=this.$W= r;this.qQ=z}var c=a("jquery.mod"),e=a("im"),d=a("kl"),f=a("cS"),g=a("io");a("bJ");var k=a("X"),i=a("gS"),n=a("fH"),j=a("bi");b.prototype.as=R("aH");b.prototype.pua=function(){return this.bg.fov(this.sb)};b.prototype.getPixelRatio=function(){return this.g.getPixelRatio()};b.prototype.Cb=R("I");b.prototype.sua=function(){return this.g?this.g.domElement.width:this.I.width()};b.prototype.rua=function(){return this.g?this.g.domElement.height:this.I.height()};b.prototype.og=function(){return this.g.domElement}; b.prototype.update=function(a){this.Asa(a);this.hsa(a);this.asa(a);this.xsa(a)};b.prototype.render=function(){this.MJ()};b.prototype.Asa=function(a){if(a.enabled){this.Ut=(new Date).getTime();this.g||this.Dqa(a);j.PM(this.g.getContext())}if(this.qQ=a.enabled&&!a.Ob){this.yq.setSize(a.width,a.height);this.ho.setSize(a.width,a.height)}};b.prototype.Dqa=function(a){if(!this.g&&a.enabled){for(;l.length>=q;){l.sort(function(a,b){return a.Ut-b.Ut});l[0].bia()}l.push(this);var b=this.Cb().get(0);this.yq= new THREE.f_;this.yq.domElement.style.position="absolute";this.yq.domElement.style.zIndex=0;b.appendChild(this.yq.domElement);var c={precision:"mediump",alpha:p};if(l.length==1&&a.Ob){a=j.mv();c.context=a;c.canvas=a.canvas}else{c.canvas=document.createElement("canvas");c.context=n.BX(c.canvas,a.rL)}this.g=new THREE.WebGLRenderer(c);this.g.domElement.style.position="absolute";this.g.domElement.style.zIndex=1;this.g.domElement.style.pointerEvents="none";this.g.setClearColor(0,0);b.appendChild(this.g.domElement); this.ho=new THREE.f_;this.ho.domElement.style.position="absolute";this.ho.domElement.style.zIndex=2;this.ho.domElement.style.pointerEvents="none";b.appendChild(this.ho.domElement);this.Ro=new g(this.g,function(a,b,c,d,e){this.bg.render(b,d,e)}.bind(this));this.BV=new k.rfa(this.g,this.sb);this.U9=new k.Hfa(this.g,this.sb);this.$W=new k.Ofa(this.g,this.sb);j.By(this.g.getContext())}};b.prototype.bia=function(){if(this.g){l.splice(l.indexOf(this),1);this.bg=this.BV=this.$W=r;this.Ro.destroy();this.Ro= r;j.FM(this.g.getContext());var a=this.Cb().get(0);a.removeChild(this.ho.domElement);this.ho=r;a.removeChild(this.g.domElement);this.g.dispose();this.g=r;a.removeChild(this.yq.domElement);this.yq=r}};b.prototype.asa=function(a){this.sb.quaternion.copy(d.hba(a.ja,a.pitch,a.kd));this.sb.fov=e.Bk(a.ad,a.width,a.height);this.sb.aspect=a.width/a.height;this.sb.updateProjectionMatrix();this.sb.updateMatrixWorld();this.bg&&this.bg.SZ();this.bg&&this.aH.copy(this.bg.Ic());this.aH.updateProjectionMatrix(); this.aH.updateMatrixWorld();this.mk.autoUpdate===p&&this.mk.updateMatrixWorld()};b.prototype.hsa=function(a){var b=a.Ob?this.$W:a.si>0?this.U9:this.BV;if(this.bg!=b){this.bg&&this.bg.stop(this.mk);(this.bg=b)&&this.bg.start(this.mk)}if(this.bg){this.bg.setSize(a.width,a.height);this.bg==this.U9&&this.bg.Nv(a.si)}};b.prototype.xsa=function(a){this.Ro&&(a.xM?this.Ro.oZ(g.iO):a.NL&&!a.Ob?this.Ro.oZ(g.A_):this.Ro.oZ(g.NONE))};b.prototype.MJ=function(){this.Ro&&this.Ro.render(this.mk,this.sb);if(this.qQ){this.yq.render(this.i3, this.sb);this.ho.render(this.j3,this.sb)}};var l=[],q=10;return b}); define("gQ",["require","fd","eL","fH"],function(a){var b=a("fd"),c=a("eL"),e=a("fH"),a=b.extend(c,function(){c.call(this);this.P=this.Sa=r;this.vc=[];this.XH=this.Sl=z;this.RB=r;this.dh=[this];this.an={};this.um={};this.cB=z;this.xU={};this.yU={};this.Uk(["blendingActive"]);this.nga();this.set("alpha",1);this.set("translationX",0);this.set("translationY",0);this.set("translationZ",0);this.set("deltaYaw",0);this.set("deltaPitch",0);this.set("deltaRoll",0);this.set("flipHorizontally",z);this.set("index", 0)});a.prototype.nga=function(){var a="alpha,deltaYaw,deltaPitch,deltaRoll,translationX,translationY,translationZ".split(",");Array.isArray(a)||(a=[a]);a.forEach(function(a){this.xU[a]=p}.bind(this))};a.prototype.Uk=function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){this.yU[a]=p}.bind(this))};a.prototype.set=function(a,b){this.an[a]!==b&&(this.yU[a]&&this.vc.forEach(function(c){c.set(a,b)}),this.Nga(a,b),this.gV(a))};a.prototype.get=function(a){return this.an[a]};a.prototype.gV=function(a){this.um[a]|| (this.um[a]=p,this.cB||(this.cB=p,this.Ga()),this.xU[a]&&this.vc.forEach(function(b){b.gV(a)}))};a.prototype.dia=function(){this.cB&&(this.cB=z,this.um={})};a.prototype.o=function(){if(this.cB)for(var a=0;a0&&e(c);if(c.visible!=d){c.visible=d;a=p}});var i=n.dba(i,n.Tv,m),i=n.Oba(i,n.us),g;for(g in i){var s=i[g],u=f.map(S(z));s.sort(function(a,b){return n.Lba(b)-n.Lba(a)});var v=s.some(d);s.forEach(function(d){var i=b(f,d)&&n.PL(d)>0&&e(d)&&(!v||c(d));if(i){for(var i=p,j=v||c(d)&&n.PL(d)>0.999,g=0;g0?1E3:this.m.gE/Math.tan(Math.min(this.m.vf*0.5,89.99)*s);o.Wa()||(a=a*1.5);var e=q.PX(this.m.te),f=q.vh(this.m.te).filter(b),i=f.filter(d),j={},j=l.dba(i,l.Tv,m),j=l.Oba(j,l.Tv);j.none=l.HL(i,l.Tv,m);var i=[],g;for(g in j)for(var k=j[g],u=0,J=k.length;uO){N=B;O=L}else if(L>=a&&L0.75*a?i.push(N):i.push(D);else{D&&i.indexOf(D)<0&&i.push(D);N&&i.indexOf(N)<0&&i.push(N)}}}a=[];for(e=0;e=0)}return a};t.prototype.Nr=function(){this.Ym=r;for(var a=[],b=[],d=[],e=(new Date).getTime()-u,i=q.PX(this.m.te),j=q.vh(this.m.te),g=0,n=j.length;g=0){if(this.m.si>0||(c(o).HY||t.hO)==t.Ij)H=G;else for(var I=0,N=i.length;ID){this.br.sort(function(a,b){return c(a).Hca-c(b).Hca});g=this.br.splice(0,this.br.length-D);D=0;for(Q=g.length;D0&&b.push(o)}d=Number.POSITIVE_INFINITY;g=0;for(n=b.length;g=0&&d.splice(e,1);this.br.push(b);this.kV(b,p);a=a.Dk();c(a).cm.indexOf(b)>=0&&this.pP(a,c(a).Gp);this.X$()};t.prototype.pP=function(a,b){var d=c(a).Gp,d=d?d.length:m,e=c(a).cm,e=e?e.length:m;c(a).Gp=b;c(a).cm=b.filter(f);n.rZ(a,c(a).cm.length==0&&(c(a).HY||t.hO)==t.Ij);var i= c(a).Gp,i=i?i.length:m,j=c(a).cm,j=j?j.length:m;if(e!==j||d!==i)a.dispatchEvent({type:k.sc,zh:i?100-100*j/i:100});e!==j&&j===0&&a.dispatchEvent({type:k.S})};t.prototype.kV=function(a,c){if(c!=a.visible){var d=j.xba(a),f=l.getAttribute(d,l.us),i=l.getAttribute(d,l.gN);if(f===m||i===m)a.visible=c;else{for(var g=q.vh(this.m.te).filter(b),f=l.HL(g,l.us,f),i=l.HL(f,l.gN,i),k=l.cs(d).indexOf(a),d=i.map(function(a){return l.cs(a)[k]}),i=c,f=0;fa?(o.Pp=a/o.width, o.sF=l==c.oa?0:l==c.Ka?1-o.Pp:0.5*(1-o.Pp),o.width=a):(o.sF=0,o.Pp=1);o.height>b?(o.Qp=b/o.height,o.vF=q==c.kb?1-o.Qp:q==c.jb?0:0.5*(1-o.Qp),o.height=b):(o.vF=0,o.Qp=1);return o},bY:function(a,k,i,n,j,l,q,o){k||(k=b.Bk(a,i,n));j||(j=e.Mn);l||(l=4096/360);var t={};switch(j){case e.Mn:t.ad=a;t.im=k;break;case e.NONE:t.ad=2*Math.atan2(0.5*i,45*l)*d;t.im=b.Bk(t.ad,i,n);break;case e.Me:t.ad=Math.min(b.Gn(k,i,n),a);t.im=Math.min(b.Bk(a,i,n),k);break;case e.lm:t.ad=Math.max(b.Gn(k,i,n),a);t.im=Math.max(b.Bk(a, i,n),k);break;case e.Qk:t.ad=a;t.im=b.Bk(a,i,n);break;case e.Wg:t.ad=b.Gn(k,i,n),t.im=k}t.ad>a?(t.Pp=Math.tan(0.5*a*f)*i/Math.tan(0.5*t.ad*f)/i,t.sF=q==c.oa?0:q==c.Ka?1-t.Pp:0.5*(1-t.Pp),t.ad=a):(t.sF=0,t.Pp=1);t.im>k?(t.Qp=Math.tan(0.5*k*f)*n/Math.tan(0.5*t.im*f)/n,t.vF=o==c.kb?1-t.Qp:o==c.jb?0:0.5*(1-t.Qp),t.im=k):(t.vF=0,t.Qp=1);return t}}}); define("kF","require,gb,gS,dt,hD,hS,im,kl,jP".split(","),function(a){var b=a("gb"),c=a("gS"),e=a("dt"),d=a("hD"),f=a("hS"),g=a("im"),k=a("kl"),i=a("jP"),n=new THREE.Matrix4,j=Math.PI/180;return{fo:function(){this.set("distance",m);this.set("rotationX",0);this.set("rotationY",0);this.set("rotationZ",0);this.set("yaw",0);this.set("pitch",0);this.set("roll",0);this.set("scale",1);this.set("contentWidth",100);this.set("contentHeight",100);this.set("hfov",m);this.set("vfov",r);this.set("scaleMode",r); this.set("horizontalAlign",r);this.set("verticalAlign",r);this.set("attachToCamera",z);this.Ri=this.wq();this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.gk=new THREE.Matrix4;this.Oi=new THREE.Matrix4;this.jg=new THREE.Matrix4;this.rP=new THREE.Matrix4;this.S1=new THREE.Quaternion;this.U2=new THREE.Matrix4;this.nA=new THREE.Matrix4;this.yA=new THREE.Matrix4;this.mq=new THREE.Matrix4;this.gf=new THREE.Matrix4},ip:function(a){this.Ol(a);this.JW()},JW:function(){if(this.o("hfov","vfov","contentWidth", "contentHeight","panoramaPixelsPerDegree","scaleMode","horizontalAlign","verticalAlign")){var a=d.bY(this.get("hfov"),this.get("vfov"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("panoramaPixelsPerDegree"),this.get("horizontalAlign"),this.get("verticalAlign"));c.Wda(this.Ri[1],a.sF,a.vF,a.Pp,a.Qp)}},DH:function(){var a=this.get("meshGroup");return a?e.vh(a)[1]:r},Mi:function(){return[0,1].map(function(a){var c=a==0?this.b3():this.Kw(),a=e.create(this.Ri[a],c); f.Dn(a,f.Ij);f.En(a,f.Rk);f.ms(a,b.gw);f.uz(a,1);return a}.bind(this))},wq:function(){return[c.Ly(),c.Ly()]},Ol:function(a){var b=z;if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){this.We.makeTranslation(-this.get("composedTranslationX")*0.5*c.Jd,this.get("composedTranslationY")*0.5*c.Jd,this.get("composedTranslationZ")*0.5*c.Jd);b=p}if(this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.ec.makeRotationY(-a.ja*j);this.ec.multiply(n.makeRotationX(-this.get("composedDeltaPitch")* j));this.ec.multiply(n.makeRotationY(this.get("composedDeltaYaw")*j));this.ec.multiply(n.makeRotationY(a.ja*j));b=p}if(this.o("yaw","pitch")){this.gk.makeRotationY(-this.get("yaw")*j);this.gk.multiply(n.makeRotationX(this.get("pitch")*j));b=p}if(this.o("distance","flipHorizontally","scale","hfov","vfov","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign","composedTranslationX","composedTranslationY","composedTranslationZ")){var f=this.P.get("composedTranslationX")==0&&this.P.get("composedTranslationY")== 0&&this.P.get("composedTranslationZ")==0&&this.get("distance")!==m?c.kv(this.get("distance")):c.sp();this.Oi.makeTranslation(0,0,-f);var t=this.get("contentWidth"),s=this.get("contentHeight"),u=this.get("hfov"),v=this.get("vfov")||g.Bk(u,t,s),w=(this.get("flipHorizontally")?-1:1)*this.get("scale"),x=this.get("scale"),y=this.get("scaleMode"),F=this.get("panoramaPixelsPerDegree"),b=this.get("horizontalAlign")||i.Kc,A=this.get("verticalAlign")||i.rc,t=d.bY(u,v,t,s,y,F,b,A),u=w*c.cY(f,u),v=x*c.dY(f,v); this.nA.makeScale(u,v,1);w=w*c.cY(f,t.ad);f=x*c.dY(f,t.im);this.yA.makeScale(w,f,1);this.U2.makeTranslation(b==i.oa?-(u-w)*0.5:b==i.Ka?(u-w)*0.5:0,A==i.kb?(v-f)*0.5:A==i.jb?-(v-f)*0.5:0,0);b=p}if(this.o("rotationX","rotationY","rotationZ","roll")){this.jg.makeRotationZ(this.get("roll")*j);this.jg.multiply(n.makeRotationY(this.get("rotationY")*j));this.jg.multiply(n.makeRotationX(this.get("rotationX")*j));this.jg.multiply(n.makeRotationZ(this.get("rotationZ")*j));b=p}this.set("cameraYaw",a.ja);this.set("cameraPitch", a.pitch);this.set("cameraRoll",a.kd);if(this.get("attachToCamera")&&this.o("cameraYaw","cameraPitch","cameraRoll")){this.S1.copy(k.hba(a.ja,a.pitch,a.kd));this.rP.makeRotationFromQuaternion(this.S1);b=p}else if(this.o("attachToCamera")){this.rP.identity();b=p}if(b||this.o("meshGroup")){this.gf.copy(this.We);this.gf.multiply(this.ec);this.gf.multiply(this.rP);this.gf.multiply(this.gk);this.gf.multiply(this.Oi);this.gf.multiply(this.jg);this.mq.copy(this.gf);this.mq.multiply(this.nA);this.gf.multiply(this.U2); this.gf.multiply(this.yA);a=e.vh(this.get("meshGroup"));e.Vl(a[0],this.mq);e.Vl(a[1],this.gf)}}}});define("hf",["require","fd","ed","kF"],function(a){var b=a("fd"),c=a("ed"),a=a("kF");return b.extend(c,a,function(){c.call(this);this.set("tag","Plane")})}); define("cV","require,fd,lc,eL,kq,V".split(","),function(a){function b(){if(!n){n=p;k.Ma(c,r)}}function c(){for(n=z;i.length;){var a=i.shift();a.add();if(a.fwa())break}i.length&&b()}var e=a("fd"),d=a("lc"),f=a("eL"),g=a("kq"),k=a("V"),i=[],n=z,j=e.extend(f,function(a,b){f.call(this);this.texture=a;this.source=b});j.prototype.fwa=function(){return!this.source.v1&&g.tta(this.source)};j.prototype.Waa=function(){if(!this.source.v1){g.Waa(this.source);this.source.v1=p}};j.prototype.add=function(){g.ZM(this.texture, this.source);this.trigger(d.S)};j.prototype.remove=function(){var a=i.indexOf(this);a>=0&&i.splice(a,1);g.ZM(this.texture,r)};return{add:function(a,c){var d=new j(a,c);i.push(d);b();return d}}}); define("jJ","require,fd,lc,bR,ix,cV,jQ".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bR"),d=a("ix"),f=a("cV");TextureSource=a("jQ");a=b.extend(TextureSource,function(a){TextureSource.call(this);this.Ud=TextureSource.Lfa;this.Md=a;this.pe=this.Vx=this.ee=r});a.prototype.qe=R("pe");a.prototype.yP=function(){this.oQ()};a.prototype.FK=function(){this.lo()};a.prototype.wP=function(){this.$ia()};a.prototype.kD=function(){this.lo();this.OQ()};a.prototype.Mr=function(){this.lo();this.OQ()};a.prototype.dispose= function(){this.lo();this.OQ();TextureSource.prototype.dispose.call(this)};a.prototype.Lf=function(){this.pe=d.qe(this.Md);this.Bx(p)};a.prototype.er=function(){this.Bx(z)};a.prototype.e6=function(){this.d6()};a.prototype.oQ=function(){if(!this.ee){this.ee=new e;this.ee.DZ([this.Md]);this.ee.bind(c.S,this.Lf,this,p);this.ee.bind(c.ie,this.er,this,p);d.An(this.ee,this.zB)}};a.prototype.lo=function(){if(this.ee){this.ee.unbind(c.S,this.Lf,this,p);this.ee.unbind(c.ie,this.er,this,p);d.ti(this.ee,this.zB); this.ee=r}};a.prototype.$ia=function(){this.Vx=f.add(this.rb,this.pe);this.Vx.bind(c.S,this.e6,this,p)};a.prototype.OQ=function(){if(this.Vx){this.Vx.unbind(c.S,this.e6,this,p);this.Vx.remove();this.Vx=r}};return a}); define("gc",["require"],function(){function a(){this.Sq=b++;this.DB="_map_"+this.Sq+"_key";this.hI={};this.Re=[];this.length=0}var b=0;a.prototype.set=a.prototype.add=function(a,b){var d;0>this.Re.indexOf(a)&&this.Re.push(a);if("object"===typeof a&&a!==r){if(d=a[this.DB],!d){d=this.DB;for(var f=[],g=0;8>g;g++)f.push(Math.floor(16*Math.random()).toString(16));d=a[d]=f.join("")}}else d=a;this.hI[d]=b;this.length=this.Re.length};a.prototype.get=function(a){return this.hI["object"===typeof a&&a!==r?a[this.DB]: a]};a.prototype.Vba=function(a){return 0<=this.Re.indexOf(a)};a.prototype.remove=function(a){var b=this.Re.indexOf(a);0>b||(this.Re.splice(b,1),"object"===typeof a&&a!==r?(b=a[this.DB],delete a[this.DB]):b=a,delete this.hI[b],this.length=this.Re.length)};a.prototype.forEach=function(a){this.Re.slice().forEach(function(b){a(b,this.get(b))}.bind(this))};a.prototype.dispose=function(){for(;this.Re.length;)this.remove(this.Re.pop());this.Re=this.hI=r};return a}); define("hL",["require","fd","eL","gc"],function(a){function b(){this.dv=[]}var c=a("fd"),e=a("eL"),d=a("gc"),a=c.extend(e,function(a){e.call(this);this.Zd=a;this.Vc=[];this.vo=new d;this.XD=[];this.aR=[];this.Ax=this.Ax.bind(this)});a.prototype.xd=function(a){this.Vc.forEach(function(a){a.removeEventListener?a.removeEventListener(this.Zd,this.Ax):a.unbind?a.unbind(this.Zd,this.Ax,this,p):h("invalid instance type")}.bind(this));this.Vc=a.slice();this.Vc.forEach(function(a){a.addEventListener?a.addEventListener(this.Zd, this.Ax):a.bind?a.bind(this.Zd,this.Ax,this,p):h("invalid instance type");this.vo.Vba(a)||this.vo.set(a,new b)}.bind(this));this.oW()};a.prototype.dispose=function(){this.xd([]);this.Vc=r;this.vo.dispose();this.aR=this.XD=this.vo=r};a.prototype.vi=function(a){this.XD.push(a);this.oW();return this};a.prototype.Ek=function(a){this.aR.push(a);return this};a.prototype.mn=function(a){this.Vc.forEach(function(b){a(b,this.vo.get(b).dv)}.bind(this))};a.prototype.pi=function(a){a=this.vo.get(a).dv;return 0== a.length?r:a[a.length-1]};a.prototype.Ax=function(a){var b=a.target||a.source;if(b=this.vo&&this.vo.get(b))b.dv.push(a),this.aR.forEach(function(b){b(a,this)}.bind(this)),this.oW()};a.prototype.oW=function(){if(0!=this.Vc.length){for(var a=0;a2?[d*4,d*4/b]:[d*2*b,d*2]}function f(a){if(c())return[m,m];switch(a){case w.Xp:if(y.se()||y.Wa())return[18432,1536];break;case w.om:if(y.se())return[5352,5352];if(y.Wa())return[6086,6086];break;case w.Nn:if(y.se())return[7168,3584];if(y.Wa()&&y.zp())return[8192,4096]}return[m,m]}function g(a,b){var c=f(b);return a.filter(function(a){return t.ob("TiledImageResourceLevel",a)?p:c[0]!==m&&a.get("width")> c[0]||c[1]!==m&&a.get("height")>c[1]?z:p})}function k(){return y.zp()?[s.x0]:y.zY()?[s.z0,s.BO]:y.se()?[s.BO]:y.Wa()?[s.y0]:[]}function i(a){a.sort(function(a,b){return a.get("width")-b.get("width")});return a}function n(a,b){function c(a){return Math.abs(a.get("width")*a.get("height")-b[0]*b[1])}a.sort(function(a,b){return c(a)-c(b)});return a.length&&a[0]||r}function j(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)<0});return a.length?a:c!==m?c:[]}function l(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)>= 0});return a.length?a:c!==m?c:[]}function q(a,b){switch(b){case w.Ss:return a.get("stereoCube").get("levels");case w.Xp:return a.get("cube").get("levels");case w.yi:return a.get("front").get("levels");case w.Nn:return a.get("sphere").get("levels");case w.om:case w.On:return a.get("stereoSphere").get("levels")}}function o(a){for(var b=[],c=0;c0)return i(d);d=this.$ka(a);if(b&&!this.l5(d)){c= this.H4(a);if(c!=d)return[c,d]}return[d]},Qva:function(a){return a.get("tags").indexOf(s.CO)>=0},TX:function(a,b,c){if(w.get(a)!=w.yi)return b;var d;switch(c){case v.FRONT:d=a.get("front");break;case v.oa:d=a.get("left");break;case v.BACK:d=a.get("back");break;case v.Ka:d=a.get("right");break;case v.kb:d=a.get("top");break;case v.jb:d=a.get("bottom")}a=d&&d.get("levels")||[];if(a.length==0)return r;a=a.filter(function(a){return a.get("width")==b.get("width")&&a.get("height")==b.get("height")&&a.get("grayscale", z)==b.get("grayscale",z)&&a.get("colCount",1)==b.get("colCount",1)&&a.get("rowCount",1)==b.get("rowCount",1)});return a[0]},Iba:function(a,c,d,e,f,i,j,g){var a=a.get("url"),k=0;a.indexOf("{eye}")>=0||a.indexOf(encodeURI("{eye}"))>=0?a=b(a,"{eye}",I[d]):k=k+6*(f?G:B)[d];a.indexOf("{face}")>=0||a.indexOf(encodeURI("{face}"))>=0?a=b(a,"{face}",H[e]):c!=w.yi&&(k=k+J[e]);a=b(a,"{row}",j);return a=b(a,"{column}",g+k*i)},Tua:function(a,b){return E.WA(E.It(a.get("image")),90,90,F.Me,b)},tua:function(a,b){return E.WA(E.It(a.get("image")), a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},Gua:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},dva:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},oba:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},It:function(a){return a&&a.get("levels")||[]},WA:function(a,b,d,e,f){if(!a||!a.length)return r;for(var a=j(a,s.pm,a),g=k(),o=0;o=0?z:y.Hc()==y.ws?p:A.KZ(a.get("url"))}},J=function(){var a={};a[v.Ka]=0;a[v.oa]=1;a[v.kb]=2;a[v.jb]=3;a[v.FRONT]=4;a[v.BACK]=5;return a}(),B=function(){var a={};a[u.Ka]=0;a[u.oa]=1;a[u.Hn]=0;return a}(), G=function(){var a={};a[u.Ka]=1;a[u.oa]=0;a[u.Hn]=0;return a}(),H=function(){var a={};a[v.Ka]="r";a[v.oa]="l";a[v.kb]="u";a[v.jb]="d";a[v.FRONT]="f";a[v.BACK]="b";return a}(),I=function(){var a={};a[u.oa]="l";a[u.Ka]="r";a[u.Hn]="b";return a}();return E}); define("dB",["require"],function(){function a(a){this.pe=a;"CANVAS"==a.tagName?this.u=a:(this.u=document.createElement("canvas"),this.u.width=a.width,this.u.height=a.height);this.ha=this.u.getContext("2d");this.ha.globalCompositeOperation="copy";this.u!=a&&this.ha.drawImage(a,0,0,a.width,a.height)}function b(a,b,c){try{if(a instanceof CanvasRenderingContext2D)return a.getImageData(b,c,1,1).data;if(a.tagName&&"CANVAS"==a.tagName)return a.getContext("2d").getImageData(b,c,1,1).data;e.drawImage(a,b, c,1,1,0,0,1,1);return e.getImageData(0,0,1,1).data}catch(d){return[0,0,0,0]}}a.prototype.transparent=function(b,c){return a.transparent(this.ha,b,c)};a.prototype.Op=function(b,c){return a.Op(this.ha,b,c)};a.prototype.info=function(b,c){return a.info(this.ha,b,c)};a.prototype.dispose=function(){this.u!=this.pe&&(this.u.width=this.u.height=0);this.pe=this.u=this.ha=r};a.transparent=function(b,c,d){return!a.Op(b,c,d)};a.Op=function(a,c,d){return a.tagName&&"VIDEO"==a.tagName?p:0b;b++)a[b]="0"+b.toString(16);for(;256>b;b++)a[b]=b.toString(16);return a}();return a}); define("iL","require,fd,ia,lc,dT,hf,jJ,hL,kd,dB,iC".split(","),function(a){function b(a,b,d,e,f,i){for(a=(a-b)/i;d+180e;)e=e+360;d=(d-e)/i;return d=a<-0.1||a>0.1?c(f,d,Math.abs(1/(1500*a))):c(f,d,0.08)}function c(a,b,c){a=(b-a)*(1-c);Math.abs(a)<1.0E-5&&(a=0);return b-a}var e=a("fd"),d=a("ia"),f=a("lc"),g=a("dT"),k=a("hf"),i=a("jJ"),n=a("hL"),j=a("kd"),l=a("dB"),q=a("iC"),a=e.extend(k,function(a){k.call(this);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this);this.Ud= g.ob("CeilingCapPanoramaOverlay",this.j)?"ceiling":"tripod";this.set("tag","Cap");this.set("pitch",this.Ud=="tripod"?-90:90);this.Nf=z;this.tu=this.rU=this.FC=m;this.uoa=this.Ud=="tripod"?1:-1;this.tg=this.mh=this.Be=r});a.prototype.Qa=function(){k.prototype.Qa.call(this);this.Be=(new n(f.S)).vi(this.ol.bind(this));this.mh=(new n(f.sc)).Ek(this.gu.bind(this));d.Rb(this.j,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Sd,p)};a.prototype.Ya=function(){this.tg&&this.tg.dispose(); this.tg=r;this.Be.dispose();this.mh.dispose();d.ac(this.j,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Sd);k.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("angle",this.j.get("angle"));this.set("distance",this.j.get("distance"));this.set("hfov",this.j.get("hfov"));var a=j.tua(this.j,this.get("panoramaPixelsPerDegree"));this.set("imageURL",a&&a.get("url"));this.set("imageWidth",a&&a.get("width"));this.set("imageHeight",a&&a.get("height"));this.set("inertia",this.j.get("inertia")); this.set("rotate",this.j.get("rotate"))};a.prototype.Mi=function(){var a=k.prototype.Mi.call(this);this.Be.xd(a);this.mh.xd(a);return a};a.prototype.J=function(a){this.uW();this.wy(a);k.prototype.J.call(this,a)};a.prototype.uW=function(){if(this.o("imageURL")&&this.get("imageURL")){this.set("textureSource",new i(this.get("imageURL")));this.set("contentWidth",this.get("imageWidth"));this.set("contentHeight",this.get("imageHeight"))}};a.prototype.ol=function(){this.tg&&this.tg.dispose();this.tg=new l(this.get("textureSource").qe()); this.trigger(f.Db);this.trigger(f.S)};a.prototype.gu=function(a,b){var c=0;b.mn(function(a){(a=b.pi(a))&&(c=c+a.zh)});this.trigger(new q(f.sc,c/b.Vc.length))};a.prototype.wy=function(a){this.set("rendererYaw",a.ja);if(this.o("angle","inertia","rotate")||(this.get("rotate")||this.get("inertia"))&&this.o("rendererYaw")){var c=this.get("angle"),d=this.get("rotate"),e=this.get("inertia"),f=this.uoa*a.ja;d&&(c=c+f);var i=0,j=c-f;if(this.FC!==m){if(e)if(d){i=b(f,this.tu,c,this.FC,this.rU,a.vd);c=this.FC+ i*a.vd}else{i=b(f,this.tu,j,this.d8,this.rU,a.vd);j=this.d8+i*a.vd;c=j+f}this.FC!=c&&this.Ga()}this.d8=j;this.FC=c;this.rU=i;this.tu=f;this.set("rotationZ",-c)}};a.prototype.Aj=function(a){if(a.Zd==f.Ai){var b=!a.th()&&this.Ml(a);if(b){a.Qr(this.j);this.j.get("useHandCursor")&&a.Rr(this.j);a.ki(this.get("distance"))}if(this.Nf!=b){this.Nf=b;this.j.trigger(this.Nf?f.tc:f.Ib);a.fs()&&this.j.trigger(this.Nf?f.Ch:f.zf)}}else if(a.Zd==f.zi&&!a.th()&&this.Ml(a)){this.j.sE(f.T,p).length>1&&a.Jp(this.j); a.ki(this.get("distance"));this.j.trigger(f.T)}};a.prototype.Ml=function(a){return this.qo(a.Cl).some(function(a){return this.tg&&this.tg.Op(a.x,a.y)}.bind(this))};return a}); define("hE",["require","fd","fr","gQ"],function(a){var b=a("fd"),c=a("fr"),e=a("gQ"),a=b.extend(e,function(){e.call(this);this.We=new THREE.Matrix4;this.maa=z;this.Jf=new THREE.Matrix4;this.le=r;this.di=new THREE.Matrix4;this.LC=this.yC=0;this.dA=0.75;this.LA=0.5;this.Dm=4;this.jT=0;this.Em=-2;this.kl=3;this.wI=0;this.Ct=7;this.YT=this.pr=1;this.LB=0.15;this.Dt=this.mu=0;this.ZH=this.EJ=c.K;this.DK=this.yK=1E3}),d=Math.PI/180,f=new THREE.Matrix4;a.prototype.Ji=C();a.prototype.Qa=function(){e.prototype.Qa.call(this); this.trigger(EventName.Db);this.trigger(EventName.S)};a.prototype.Ya=function(){this.RP()};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.Ga()};a.prototype.UJ=function(){this.le&&(this.RP(),this.e3())};a.prototype.$G=C();a.prototype.e3=function(){this.epa();this.le=new THREE.Group;for(var a=this.ZH==c.R,b=this.mu,d=this.Dt;0c);var e=360*Math.random(),j=Math.sin(e*d)*Math.sin(c* d)*b,l=-Math.cos(c*d)*b,b=Math.cos(e*d)*Math.sin(c*d)*b;a.userData.Bea=l*this.pr;a.userData.Faa.makeTranslation(j,l,b);a.userData.cZ.makeRotationY(e*d);a.userData.cZ.multiply(f.makeRotationX(-c*d))};a.prototype.J=function(a){e.prototype.J.call(this,a);this.bX=a.te;this.bX!=(this.le&&this.le.parent)?(this.RP(),this.bX&&this.e3()):this.o("index")&&this.R1();this.ssa(a)};a.prototype.ssa=function(a){if(this.le){this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.maa=0!= this.get("composedTranslationX")||0!=this.get("composedTranslationY")||0!=this.get("composedTranslationZ"),this.We.makeTranslation(-this.get("composedTranslationX")*this.Dm,this.get("composedTranslationY")*this.Dm,this.get("composedTranslationZ")*this.Dm));var b=this.EJ==c.R,d=this.le.children,e=d.length,f=b?Math.round(e*a.vd/this.yK):0;if(0this.kl){if(0this.kl-this.dA&&(q*=(this.kl-l.userData.y)/this.dA);l.material.opacity=q*this.YT;this.maa? (l.matrix.copy(this.We),l.matrix.multiply(l.userData.kz)):l.matrix.copy(l.userData.kz);l.matrix.multiply(l.userData.cZ);l.matrixWorldNeedsUpdate=p}this.Ga()}}};a.prototype.R1=function(){if(this.le)for(var a=this.get("index"),b=0;b=this.OK){this.PJ++;if(this.D8&&this.PJ==this.D8){this.ic(d.K);this.vm=this.N3?0:this.OK-0.1;this.trigger(e.Da)}else{this.vm=this.vm%this.OK;this.trigger(e.Rs)}}this.ah();this.m==d.R&&g.Ma(this.Dg,this)}};a.prototype.clear=function(){this.ic(d.K);this.u.width=this.u.height=0;this.u=r;k.Hwa(this.Qe);this.Qe=r};a.prototype.og=R("u");a.prototype.ah=function(){var a=Math.floor(this.vm/this.ke);if(this.rQ!=a&&a0?b[0]:this.Ag[0];b.eua();if(b.kf.length==b.Qe.LL){this.Ag.splice(this.Ag.indexOf(b),1);if(this.Ag.length==0)return}}this.Q8()}}};return a}); define("fp","require,ia,lc,fr,gb,dT,bT,dt,eH,dU,hS,dB,U".split(","),function(a){var b=a("ia"),c=a("lc"),e=a("fr"),d=a("gb"),f=a("dT"),g=a("bT"),k=a("dt"),i=a("eH"),n=a("dU"),j=a("hS"),l=a("dB"),q=a("U");return{st:function(){this.set("visible",z);this.set("inView",z);this.set("blending",0);this.set("chromaColor",m);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("premultipliedAlpha",z);this.set("projected",z);this.set("image",r);this.set("level",r);this.set("levelURL",r);this.set("state", r);this.set("visibleOnStop",p);this.QI=this.QI.bind(this);this.SI=this.SI.bind(this);this.tg=this.ia=this.qw=this.$d=r},vy:function(){this.uW();this.AD();this.zsa()},uW:function(){if(this.o("level")){var a=this.get("level");this.set("levelURL",a&&a.get("url"))}if(this.o("image","level","levelURL","projected")){this.E2();this.ia=this.get("image");this.$a=this.get("level");this.set("textureSource",new n(this.ia&&this.$a.get("url")));this.set("premultipliedAlpha",this.ia&&this.$a.get("premultipliedAlpha")); this.Dga();if(this.ia){this.tga();this.wga()}else{this.trigger(c.Db);this.trigger(c.S)}}},AD:function(){if(this.o("blending","chromaColor","chromaThreshold","chromaSmoothing","premultipliedAlpha")){var a=new g.Jn;a.Tr=this.get("blending");a.jn=this.get("chromaColor");a.jE=this.get("chromaThreshold");a.iE=this.get("chromaSmoothing");a.premultipliedAlpha=this.get("premultipliedAlpha");this.set("materialConfig",a)}},zsa:function(){if(this.o("meshGroup","projected","visible")){var a=this.get("projected")&& this.get("visible")?d.sO:d.gw;k.vh(this.get("meshGroup")).forEach(function(b){j.ms(b,a)}.bind(this))}},hi:function(){this.o("visible","composedAlpha","image","state","visibleOnStop")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0&&(this.get("visibleOnStop")||this.get("state")!=e.K));this.o("composedAlpha","meshGroup","inView")&&k.wd(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0);this.qw&&this.qw.$e(this.get("inView"))},QI:function(){this.ia&&f.ob("AnimatedImageResource", this.ia)?this.set("visibleOnStop",this.ia.get("visibleOnStop")):this.set("visibleOnStop",p)},SI:function(){this.set("levelURL",this.$a.get("url"))},wx:function(){this.E2()},E2:function(){if(this.qw){this.qw.clear();this.qw=r}if(this.$d){this.$d.unbind(c.aa,this.Y4,this,p);this.$d.unbind(c.zc,this.Z4,this,p);this.$d.clear();this.$d=r}if(this.tg){this.tg.dispose();this.tg=r}if(this.get("textureSource")){this.KU();this.set("textureSource",r)}if(this.ia){this.Soa();this.ia=r}if(this.$a){this.Voa();this.$a= r}},tga:function(){b.Rb(this.ia,["visibleOnStop"],this.QI,p)},Soa:function(){b.ac(this.ia,["visibleOnStop"],this.QI,p)},wga:function(){b.Rb(this.$a,["url"],this.SI,p)},Voa:function(){b.ac(this.$a,["url"],this.SI,p)},iB:function(){this.KU();var a,b=this.get("image");if(f.ob("AnimatedImageResource",b)){this.$d=new q(this.get("textureSource").qe(),b.get("rowCount",1),b.get("colCount",1),b.get("frameDuration"),b.get("frameCount",b.get("rowCount",1)*b.get("colCount",1)),b.get("repeat"),b.get("finalFrame")== "first");a=this.$d.og();this.$d.bind(c.zc,this.Z4,this,p);this.$d.bind(c.aa,this.Y4,this,p);this.qw=new i(b,this.$d);this.set("visibleOnStop",b.get("visibleOnStop"));this.set("state",this.$d.Ie())}else{a=this.get("textureSource").qe();this.tg=new l(a);this.set("visibleOnStop",p);this.set("state",r)}this.hi();this.set("contentWidth",a.width);this.set("contentHeight",a.height);this.get("textureSource").ri(a);this.trigger(c.Db);this.trigger(c.S)},a5:function(){this.KU();this.trigger(c.Db);this.trigger(c.S)}, Z4:function(){this.set("state",this.$d.Ie())},Y4:function(){this.get("textureSource").update();this.Ga()},Dga:function(){var a=this.get("textureSource");a.bind(c.S,this.iB,this,p);a.bind(c.ie,this.a5,this,p)},KU:function(){var a=this.get("textureSource");a.unbind(c.S,this.iB,this,p);a.unbind(c.ie,this.a5,this,p)},HR:function(a){return this.tg&&this.tg.pe==a.source?this.tg.info(a.x,a.y):l.info(a.source,a.x,a.y)}}}); define("la","require,ia,lc,dT,kr,gc".split(","),function(a){function b(a){a=a.get("mapColor");return a=="image"||a=="transparent"||a=="any"}function c(a){a=a.get("mapColor");return a!="image"&&a!="transparent"&&a!="any"}var e=a("ia"),d=a("lc"),f=a("dT"),g=a("kr"),k=new (a("gc"));return{xq:function(){this.set("beamEnabled",z);this.OI=this.OI.bind(this);this.lS=r;this.Bf=[];this.Qq=r},yxa:function(a){if(this.Qq!=a){this.EU();this.Qq=a;this.y1()}},Ql:function(a){this.Ar=a.ja;this.zr=a.pitch},EU:function(){this.Qq&& e.ac(this.Qq,["areas"],this.OI,p)},y1:function(){this.Qq&&e.Rb(this.Qq,["areas"],this.OI,p)},Ox:function(){this.EU();this.y1()},Px:function(){this.e9([]);this.EU()},OI:function(){var a=this.Qq.get("areas",[]);this.lS=f.ob("HotspotPanoramaOverlayImage",this.j)||f.ob("FlatHotspotPanoramaOverlayImage",this.j)||f.ob("QuadHotspotPanoramaOverlayImage",this.j)?a.filter(b):a.filter(c);this.lS.forEach(function(a){k.set(a,0)})},Aj:function(a){if(a.Zd==d.Ai){var b=this.get("beamEnabled")&&this.get("alpha")> 0&&!a.th()?this.b4(a):[];if(b.length>0){a.Qr(b);this.Zm(b)&&a.Rr(b);a.ki(this.get("distance"));var c=this.xa(b,a.uv());c&&a.tL(c,this.Ir(a.uv()))}this.e9(b,a.fs(),a.uv())}else if(a.Zd==d.zi){b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.th()?this.b4(a):[];if(b.length>0){var e=z;b.forEach(function(a){a.trigger(d.T);!e&&a.sE(d.T,p).length>1&&(e=p)});a.ki(this.get("distance"));e&&a.Jp(b)}}},b4:function(a){var b=this.qo(a.Cl);return b.length==0?[]:this.lS.filter(function(a){var c=a.get("mapColor"); return c=="any"?p:c=="image"?b.some(function(a){return this.HR(a).Op}.bind(this)):c=="transparent"?b.every(function(a){return!this.HR(a).Op}.bind(this)):c&&c[0]=="#"?b.some(function(a){return g.RX(this.HR(a).color,c)<10}.bind(this)):z}.bind(this))},e9:function(a,b,c){this.Bf.forEach(function(e){if(a.indexOf(e)<0){var f=k.get(e)-1;k.set(e,f);if(f==0){e.trigger(d.Ib,{zX:c});b&&e.trigger(d.zf)}}});var e=this.Bf;this.Bf=a;this.Bf.forEach(function(a){if(e.indexOf(a)<0){var f=(k.get(a)||0)+1;k.set(a,f); if(f==1){a.trigger(d.tc,{zX:c});b&&a.trigger(d.Ch)}}})},xa:function(a,b){for(var c="",d=a.length-1;d>=0&&c=="";d--){var e=a[d];if(!b||e.get("displayTooltipInTouchScreens")&&this.Sa.F.get("displayTooltipInTouchScreens")!==z)c=e.get("toolTip","")}return c},Ir:function(a){if(a){var a=this.get("yaw")-this.Ar,b=this.get("pitch")-this.zr;return Math.sqrt(a*a+b*b)}return 0},Zm:function(a){for(var b=this.Qq.get("useHandCursor"),c=a.length-1;c>=0&&b===m;c--)b=a[c].get("useHandCursor");return!!b}}}); define("ko",["require","r","cb"],function(a){function b(){this.Gg=m;this.lx=this.pu=0;this.Z=p;this.RG=this.YV=this.rR=m;this.Gc=z}var c=a("r"),e=a("cb"),d=Math.PI/180,f=c.browser()==c.wf?[-0.5,0]:[0,0];b.prototype.qs=function(a){this.Gg!=a&&(this.Gg=a,this.Z=p)};b.prototype.ps=function(a){if(athis.pu+f[1])this.pu=a,this.Z=p};b.prototype.get=function(a,b){b!==m||(b=p);this.Z&&(this.J(),this.Z=z);var c=this.rR.get(a)||0,d=(this.YV.get(a)||0)-c;b&&(180d&&(d+=360));return c+ d*this.RG};b.prototype.aY=function(){this.Z&&(this.J(),this.Z=z);for(var a=this.rR.get("vertices"),b=this.YV.get("vertices"),c=[],d=0;dl&&(l+=360);var q=a[d].get("pitch")||0,o=(b[d].get("pitch")||0)-q;c.push(new e(f+l*this.RG,q+o*this.RG))}return c};b.prototype.wh=function(){return this.get("opacity",z)};b.prototype.nv=function(){var a=this.get("hfov")||this.get("vfov"),b=this.Gg[0].get("hfov")||this.Gg[0].get("vfov"); return Math.tan(0.5*a*d)/Math.tan(0.5*b*d)};b.prototype.J=function(){for(var a=this.lx,b,c=this.Gg.length-1,d,e;;){b=Math.min(a+1,c);d=this.L4(a);e=this.L4(b);if(d<=this.pu&&this.pu<=e)break;if(d>this.pu){if(0==a){b=a;break}a-=1}else{if(a==c){b=a;break}a+=1}}this.rR=this.Gg[a];this.YV=this.Gg[b];a=e-d;this.RG=00,d=this.get("interactionEnabled");if(c){a=this.get("centerOver")&&!this.get("inVR");b=this.get("over")||a;a=!this.get("rollOverDisplay")&&!this.get("centerOverDisplay")||this.get("over")&&this.get("rollOverDisplay")|| a&&this.get("centerOverDisplay")!==z&&this.get("rollOverDisplay")}this.get("rollOverItems").forEach(function(a){a.set("visible",b);a.set("beamEnabled",c&&b&&d)});var f=this.get("rollOverItems").length==0;this.get("items").forEach(function(a){a.set("visible",f||!b);a.set("beamEnabled",c&&(f||!b)&&d)});this.get("rollOverMaps").forEach(function(a){a.set("visible",z);a.set("beamEnabled",c&&b&&d)});var i=this.get("rollOverMaps").length==0;this.get("maps").forEach(function(a){a.set("visible",z);a.set("beamEnabled", c&&(i||!b)&&d)});this.set("visible",a)}if(this.o("visible")){var a=this.get("alpha"),s=this.get("visible")?1:0,u=(this.get("visible")?this.get("fadeInDuration"):this.get("fadeOutDuration"))*Math.abs(a-s);this.ji=new g("linear",[new k("alpha",a,s)],Math.max(u,1));this.Ga();this.get("visible")?this.j.trigger(e.md):this.j.trigger(e.yd)}};a.prototype.hi=function(a){if(this.ji){if(this.ji.Je())this.ji=r;else{this.ji.eb(a.vd);this.set("alpha",this.ji.wb("alpha"))}this.Ga()}};a.prototype.cu=function(){this.Rl(); this.trigger(e.S)};a.prototype.$ma=function(){this.Rl();this.trigger(e.Db)};a.prototype.fu=function(){this.Rl()};a.prototype.Rl=function(){var a=0;this.nc.mn(function(b){var c=0,d;this.Cd.pi(b)?c=100:(d=this.nc.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new i(e.sc,a/this.nc.Vc.length))};a.prototype.Tma=function(a){a.data.zX?this.lW([a.source],[]):this.ry([a.source],[])};a.prototype.Sma=function(a){a.data.zX?this.lW([],[a.source]):this.ry([],[a.source])};a.prototype.ry=function(a,b){this.L$(this.Bf, a,b);this.set("over",this.Bf.length>0)};a.prototype.lW=function(a,b){this.L$(this.kP,a,b);this.set("centerOver",this.kP.length>0)};a.prototype.L$=function(a,b,c){b||(b=[]);c||(c=[]);c.forEach(function(b){b=a.indexOf(b);b>=0&&a.splice(b,1)});b.forEach(function(b){a.indexOf(b)<0&&a.push(b)})};return a}); define("cc",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("scaleMode",m);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Rb(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.mc,p)},hk:function(){b.ac(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.mc)},mc:function(){this.set("horizontalAlign",this.j.get("horizontalAlign")); this.set("verticalAlign",this.j.get("verticalAlign"));this.set("scaleMode",this.j.get("scaleMode"));this.set("distance",this.j.get("distance"));this.set("scale",this.j.get("scale"));this.set("playbackPositions",this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions","currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("yaw",this.wa.get("yaw")),this.set("pitch",this.wa.get("pitch")),this.set("roll",this.wa.get("roll")),this.set("rotationX", this.wa.get("rotationX")),this.set("rotationY",this.wa.get("rotationY")),this.set("hfov",this.wa.get("hfov")),this.set("vfov",this.wa.get("vfov")),this.set("alpha",this.wa.wh()))}}}); define("hn","require,fd,ia,lc,dt,ed,kF,fp,la,cc,kd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("dt"),f=a("ed"),g=a("kF"),k=a("fp"),i=a("la"),n=a("cc"),j=a("kd"),l=0,a=b.extend(f,g,k,i,n,function(a){f.call(this);this.set("tag","HotspotImage");this.set("id","hs_image_"+l++);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this)});a.prototype.Qa=function(){f.prototype.Qa.call(this);c.Rb(this.j,["image.levels"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["image.levels"],this.Sd); f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("image",this.j.get("image"));this.set("level",j.Gua(this.j,this.get("panoramaPixelsPerDegree")))};a.prototype.J=function(a){this.Nu();f.prototype.J.call(this,a);this.o("inView")&&this.j.trigger(this.get("inView")?e.md:e.yd)};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.setAttribute(a,d.us,this.get("panoramaId"));d.setAttribute(a,d.hN,this.get("id"))}.bind(this))}}; return a}); define("fG",["require","fh","a"],function(a){function b(a,b,e){this.Pd=a||new c(0,0,0);this.pg=b||new c(1,0,0);this.gs=e||new c(0,1,0)}var c=a("fh"),e=a("a");b.prototype.clone=function(){return new b(this.Pd.clone(),this.pg.clone(),this.gs.clone())};b.prototype.apply=function(a){a.Cy(this.Pd);a.Cy(this.pg);a.Cy(this.gs)};b.prototype.intersection=function(a,b){var g=e.$r(a.Pd,a.pg),k=e.$r(this.Pd,a.Pd),i=e.$r(this.Pd,this.pg);i.CL(e.$r(this.Pd,this.gs));g=g.cv(i);if(!(0==g||b&&0>g))return k=-i.cv(k)/ g,new c(a.Pd.x+(a.pg.x-a.Pd.x)*k,a.Pd.y+(a.pg.y-a.Pd.y)*k,a.Pd.z+(a.pg.z-a.Pd.z)*k)};b.prototype.CM=function(a,b){var g=e.$r(this.Pd,this.pg),k=e.$r(this.Pd,this.gs),i=e.$r(this.Pd,a),n=g.ZX(),j=k.ZX();return b?new c(i.cv(g)/(n*n),i.cv(k)/(j*j),0):new c(i.cv(g)/n,i.cv(k)/j,0)};return b}); define("ea",[],function(){function a(a){a%=e;0>a&&(a+=e);return g[a*d|0]}function b(a){a%=e;0>a&&(a+=e);return f[a*d|0]}function c(){this.identity()}c.prototype.identity=function(){this.m11=1;this.m21=this.m13=this.m12=0;this.m22=1;this.m32=this.m31=this.m23=0;this.m33=1;this.cf=this.bf=this.af=0};c.prototype.clone=function(){var a=new c;a.m11=this.m11;a.m12=this.m12;a.m13=this.m13;a.m21=this.m21;a.m22=this.m22;a.m23=this.m23;a.m31=this.m31;a.m32=this.m32;a.m33=this.m33;a.af=this.af;a.bf=this.bf; a.cf=this.cf;return a};c.prototype.concat=function(a){var b=this.m11,c=this.m12,d=this.m13,e=this.m21,f=this.m22,g=this.m23,k=this.m31,u=this.m32,v=this.m33,w=this.af,x=this.bf,y=this.cf;this.m11=b*a.m11+c*a.m21+d*a.m31;this.m12=b*a.m12+c*a.m22+d*a.m32;this.m13=b*a.m13+c*a.m23+d*a.m33;this.m21=e*a.m11+f*a.m21+g*a.m31;this.m22=e*a.m12+f*a.m22+g*a.m32;this.m23=e*a.m13+f*a.m23+g*a.m33;this.m31=k*a.m11+u*a.m21+v*a.m31;this.m32=k*a.m12+u*a.m22+v*a.m32;this.m33=k*a.m13+u*a.m23+v*a.m33;this.af=w*a.m11+x* a.m21+y*a.m31+a.af;this.bf=w*a.m12+x*a.m22+y*a.m32+a.bf;this.cf=w*a.m13+x*a.m23+y*a.m33+a.cf};c.prototype.translate=function(a,b,c){this.af+=a;this.bf+=b;this.cf+=c};c.prototype.scale=function(a,b,c){this.m11*=a;this.m12*=b;this.m13*=c;this.m21*=a;this.m22*=b;this.m23*=c;this.m31*=a;this.m32*=b;this.m33*=c;this.af*=a;this.bf*=b;this.cf*=c};c.prototype.Cn=function(c){var d=a(c),c=b(c),e=this.m12*d+this.m13*c,f=this.m22*c-this.m23*d,g=this.m22*d+this.m23*c,k=this.m32*c-this.m33*d,t=this.m32*d+this.m33* c,s=this.bf*c-this.cf*d,u=this.bf*d+this.cf*c;this.m12=this.m12*c-this.m13*d;this.m13=e;this.m22=f;this.m23=g;this.m32=k;this.m33=t;this.bf=s;this.cf=u};c.prototype.Hp=function(c){var d=a(c),c=b(c),e=-this.m11*d+this.m13*c,f=this.m21*c+this.m23*d,g=-this.m21*d+this.m23*c,k=this.m31*c+this.m33*d,t=-this.m31*d+this.m33*c,s=this.af*c+this.cf*d,u=-this.af*d+this.cf*c;this.m11=this.m11*c+this.m13*d;this.m13=e;this.m21=f;this.m23=g;this.m31=k;this.m33=t;this.af=s;this.cf=u};c.prototype.Ip=function(c){var d= a(c),c=b(c),e=this.m11*d+this.m12*c,f=this.m21*c-this.m22*d,g=this.m21*d+this.m22*c,k=this.m31*c-this.m32*d,t=this.m31*d+this.m32*c,s=this.af*c-this.bf*d,u=this.af*d+this.bf*c;this.m11=this.m11*c-this.m12*d;this.m12=e;this.m21=f;this.m22=g;this.m31=k;this.m32=t;this.af=s;this.bf=u};c.prototype.rotate=function(a,b,c){this.Cn(a);this.Hp(b);this.Ip(c)};c.prototype.rca=function(){var a=this.vua();if(0==a)return z;var b=this.clone();this.m11=(b.m22*b.m33-b.m23*b.m32)/a;this.m12=(b.m13*b.m32-b.m12*b.m33)/ a;this.m13=(b.m12*b.m23-b.m13*b.m22)/a;this.m21=(b.m23*b.m31-b.m21*b.m33)/a;this.m22=(b.m11*b.m33-b.m13*b.m31)/a;this.m23=(b.m13*b.m21-b.m11*b.m23)/a;this.m31=(b.m21*b.m32-b.m22*b.m31)/a;this.m32=(b.m12*b.m31-b.m11*b.m32)/a;this.m33=(b.m11*b.m22-b.m12*b.m21)/a;this.af=-(b.af*this.m11+b.bf*this.m21+b.cf*this.m31);this.bf=-(b.af*this.m12+b.bf*this.m22+b.cf*this.m32);this.cf=-(b.af*this.m13+b.bf*this.m23+b.cf*this.m33);return p};c.prototype.vua=function(){return this.m11*(this.m22*this.m33-this.m23* this.m32)+this.m12*(this.m23*this.m31-this.m21*this.m33)+this.m13*(this.m21*this.m32-this.m22*this.m31)};c.prototype.Cy=function(a){var b=a.x*this.m12+a.y*this.m22+a.z*this.m32+this.bf,c=a.x*this.m13+a.y*this.m23+a.z*this.m33+this.cf;a.x=a.x*this.m11+a.y*this.m21+a.z*this.m31+this.af;a.y=b;a.z=c};for(var e=2*Math.PI,d=18E4/e,f=new Float32Array(180001),g=new Float32Array(180001),k=0;18E4>k;k++)f[k]=Math.cos(k/d),g[k]=Math.sin(k/d);f[18E4]=f[0];g[18E4]=g[0];return c}); define("cT","require,im,gj,cA,fh,fG,ea,je".split(","),function(a){var b=a("im"),c=a("gj"),e=a("cA"),d=a("fh"),f=a("fG"),g=a("ea"),k=a("je"),i=Math.PI/180,n=180/Math.PI,j=new g,l=new c,q=new f,o=new d;return{get:function(a,b,c,e,f,g,k,n){a=a*i;b=b*i;b=new d(Math.sin(-a)*Math.cos(b),Math.sin(b),Math.cos(-a)*Math.cos(b));j.identity();j.Hp(c*i);j.Ip(f*i);j.Cn(e*i);b.apply(j);if(b.z>0){l.mF(k);l.Oda(n);l.Jv(g*i);l.project(b);return b}return r},aza:function(a,b,c){j.identity();j.Cn(-c.$b()*i);j.Ip(-c.Od()* i);j.Hp(-c.Ub()*i);o.set(a,b,0);a=c.unproject(o).Kba();a.apply(j);return{ja:a.Ub()*n,pitch:a.$b()*n}},aBa:function(a,c,d,e,f,g,l,n,A,M,E,J,B,G){G||(G=k.Mn);B||(B=b.Bk(J,M,E));J||(J=b.Gn(B,M,E));var H=M*0.5/Math.tan(J*0.5*i),I=H*Math.tan(J*0.5*i)*2,N=H*Math.tan(B*0.5*i)*2;q.Pd.set(+I*0.5,+N*0.5,0);q.pg.set(-I*0.5,+N*0.5,0);q.gs.set(+I*0.5,-N*0.5,0);j.identity();j.Ip(-A*i);j.Cn(-l*i);j.Hp(n*i);j.translate(0,0,H);j.Ip(-g*i);j.Cn(-f*i);j.Hp(-e*i);j.Hp(d.Ub()*i);j.Ip(d.Od()*i);j.Cn(d.$b()*i);q.apply(j); o.set(a,c,0);f=q.intersection(d.unproject(o));e={x:m,y:m,xScaled:m,yScaled:m};if(f&&f.z>0){f=q.CM(f);e.xScaled=e.x=f.x/I;e.yScaled=e.y=f.y/N}if(G!=k.Mn){var O,D;switch(G){case k.Me:O=Math.min(b.Gn(B,M,E),J);D=Math.min(b.Bk(J,M,E),B);break;case k.lm:O=Math.max(b.Gn(B,M,E),J);D=Math.max(b.Bk(J,M,E),B);break;case k.Qk:O=J;D=b.Bk(J,M,E);break;case k.Wg:O=b.Gn(B,M,E);D=B}if(O!=J||D!=B){I=H*Math.tan(O*0.5*i)*2;N=H*Math.tan(D*0.5*i)*2;q.Pd.set(+I*0.5,+N*0.5,0);q.pg.set(-I*0.5,+N*0.5,0);q.gs.set(+I*0.5,-N* 0.5,0);q.apply(j);o.set(a,c,0);if((f=q.intersection(d.unproject(o)))&&f.z>0){f=q.CM(f);e.xScaled=f.x/I;e.yScaled=f.y/N}}}return e},eAa:function(a,b,c,f,g,k,l){l=g*0.5/Math.tan(l*0.5*i);q.Pd.set(+g*0.5,+k*0.5,l);q.pg.set(-g*0.5,+k*0.5,l);q.gs.set(+g*0.5,-k*0.5,l);j.identity();j.Ip(-f*i);j.Cn(-c*i);j.Hp(-b*i);j.Hp(a.Ub()*i);j.Ip(a.Od()*i);j.Cn(a.$b()*i);q.apply(j);a=new e(new d(0,0,0),new d(0,0,1));if((a=q.intersection(a))&&a.z>0){a=q.CM(a);return{x:a.x/g,y:a.y/k}}return r}}}); define("y","require,fd,gQ,dt,M,hS,jE".split(","),function(a){var b=a("fd"),c=a("gQ"),e=a("dt"),d=a("M"),f=a("hS"),g=a("jE"),a=b.extend(c,function(){c.call(this);this.set("tag","WebGLObject");this.set("zOrder",0);this.set("webglScene",r);this.set("meshGroup",r);this.set("camera",r)});a.prototype.Mi=function(){return[]};a.prototype.Ya=function(){e.dispose(this.get("meshGroup"));e.RM(this.get("meshGroup"),r);this.set("meshGroup",r);c.prototype.Ya.call(this)};a.prototype.J=function(a){c.prototype.J.call(this, a);this.set("camera",d.as(a.te));this.set("webglScene",a.te);if(!this.get("meshGroup")){this.set("meshGroup",e.Raa(this.Mi()));this.get("meshGroup").userData.qwa=this}this.o("webglScene","meshGroup")&&e.RM(this.get("meshGroup"),this.get("webglScene"));this.hi();this.Ol(a);this.Ru();this.o("loadingActive","meshGroup")&&f.ld(this.get("meshGroup"),this.get("loadingActive"));this.o("blendingActive","meshGroup")&&g.Fda(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.hi=function(){this.o("composedAlpha", "meshGroup")&&this.hq()};a.prototype.hq=function(){e.wd(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.Ol=function(){h("Must be overridden in descendants.")};a.prototype.Ru=function(){if(this.o("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,c){e.UM(a,this.get("index")+b/c.length)}.bind(this))}};return a}); define("ej",["require","fd","gS","y","dt"],function(a){var b=a("fd"),c=a("gS"),e=a("y"),d=a("dt"),f=new THREE.Matrix4,g=Math.PI/180,a=b.extend(e,function(){e.call(this);this.set("tag","Frame");this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.di=new THREE.Matrix4;this.Jf=new THREE.Matrix4});a.prototype.J=function(a){e.prototype.J.call(this,a)};a.prototype.Ol=function(a){var b=z;this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.We.makeTranslation(0.5*-this.get("composedTranslationX")* c.Jd,0.5*this.get("composedTranslationY")*c.Jd,0.5*this.get("composedTranslationZ")*c.Jd),b=p);this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.ec.makeRotationY(-a.ja*g),this.ec.multiply(f.makeRotationX(-this.get("composedDeltaPitch")*g)),this.ec.multiply(f.makeRotationY(this.get("composedDeltaYaw")*g)),this.ec.multiply(f.makeRotationY(a.ja*g)),b=p);this.o("flipHorizontally")&&(this.di.makeScale(this.get("flipHorizontally")?-1:1,1,1),b=p);if(b||this.o("meshGroup"))this.Jf.copy(this.We), this.Jf.multiply(this.ec),this.Jf.multiply(this.di),d.Vl(this.get("meshGroup"),this.Jf)};return a}); define("lk",["require","fd","ix","kq","jJ"],function(a){var b=a("fd"),c=a("ix"),e=a("kq"),d=a("jJ"),a=b.extend(d,function(a,b,c,e,n){d.call(this,a.get("url"));this.ca=b;this.da=c;this.W=e;this.ea=n;this.sma=0!=this.ca||0!=this.da||this.W!=a.get("width")||this.ea!=a.get("height")});a.prototype.Lf=function(){this.sma?(this.cja(),this.lo(),this.Bx(!!this.pe)):d.prototype.Lf.call(this)};a.prototype.kD=function(){d.prototype.kD.call(this);this.PQ()};a.prototype.Mr=function(){d.prototype.Mr.call(this); this.PQ()};d.prototype.dispose=function(){d.prototype.dispose.call(this);this.PQ()};a.prototype.cja=function(){var a=c.qe(this.Md);this.pe=e.Pta(a,this.ca,this.da,this.W,this.ea)};a.prototype.PQ=function(){this.pe&&(e.EL(this.pe),this.pe=r)};return a}); define("eN","require,dT,cS,jC,fH,dU,jJ,lk,gS,bT,dt,bF,kd,hS,r".split(","),function(a){var b=a("dT"),c=a("cS"),e=a("jC"),d=a("fH"),f=a("dU"),g=a("jJ"),k=a("lk"),i=a("gS"),n=a("bT"),j=a("dt"),l=a("bF"),q=a("kd"),o=a("hS"),t=a("r"),s={Lta:function(a,b){var c=l.get(a);switch(c){case l.Ss:case l.Xp:case l.yi:return this.Oia(c,a,b);case l.Nn:case l.om:case l.On:return this.Qia(c,a,b)}},Rta:function(a,b){var c=new g(b.get("posterURL"));return this.h3(a,b,c)},Qta:function(a,b){var c=new f;return this.h3(a, b,c)},h3:function(a,b,d){var e=a.get("hfov"),f=a.get("vfov"),g=a.get("pitch"),k=b.get("width"),b=b.get("url"),a=l.get(a),q=a==l.On?2:1,s=a==l.om?2:1,a=q+s>2?[c.oa,c.Ka]:[c.Hn],t=Math.round(k/q),B=n.Xr(d.texture(),new n.Jn(b));o.vz(B,d);B.visible=p;return a.map(function(a,b){var c=i.Uaa(e,f,g,1,1,b%q/q,(s-1-Math.floor(b/q))/s,1/q,1/s),c=j.create(c,[B]);c.layers.set(a);o.OM(c,t/e);return c}.bind(this))},Nta:function(a){var b=[e.Ka,e.oa,e.kb,e.jb,e.FRONT,e.BACK].map(function(){var b=new f;b.ri(s.ola(a)); var c=n.Xr(b.texture());o.vz(c,b);c.visible=p;return c}),d=i.Taa(1,1),b=j.create(d,b);o.OM(b,256/90);b.layers.set(c.Hn);return b},wV:{},ola:function(a){if(!s.wV[a]){var b=document.createElement("canvas");b.width=b.height=256;var c=b.getContext("2d");c.fillStyle=a;c.fillRect(0,0,b.width,b.height);s.wV[a]=b}return s.wV[a]},Oia:function(a,f,g){var k=a==l.Ss?[c.Ka,c.oa]:[c.Hn],n=f.get("flipImageHorizontally");n&&(k=k.reverse());var s=a==l.yi?1:6*k.length,t=g.get("width")/s,M=g.get("height"),E,J;if(b.ob("TiledImageResourceLevel", g)){E=g.get("colCount",s)/s;J=g.get("rowCount",1)}else if(this.G8(a,g)){E=Math.ceil(t/d.Pn());J=Math.ceil(M/d.Pn())}else J=E=1;var B=[e.Ka,e.oa,e.kb,e.jb,e.FRONT,e.BACK];return k.map(function(c,d){var e=Array(6);B.forEach(function(j,k){var o=q.TX(f,g,j);if(b.ob("TiledImageResourceLevel",g))e[i.A0.indexOf(j)]=this.Kia(o,a,c,j,n,E,J);else{var s=a==l.yi?0:Math.round((d*B.length+k)*t),x=E>1||J>1||a!=l.yi?t>256?1:0.5:0;e[i.A0.indexOf(j)]=this.d3(o,E,J,s,0,t,M,x)}}.bind(this));var k=Array.prototype.concat.apply([], e),s=i.Taa(E,J),k=j.create(s,k);k.layers.set(c);o.OM(k,t/90);return k}.bind(this))},Qia:function(a,b,e){var f=a==l.Nn?[c.Hn]:[c.oa,c.Ka];b.get("flipImageHorizontally")&&(f=f.reverse());var g=e.get("width"),k=e.get("height"),n=b.get("hfov"),q=b.get("vfov"),s=b.get("pitch"),t=Math.round(g/n/(k/q)),B=Math.round(g/t),G=Math.round(k/Math.round(k/q/(g/n))),H=(a=this.G8(a,e))?Math.ceil(B/d.Pn()):1,I=a?Math.ceil(G/d.Pn()):1;return f.map(function(a,b){var c=this.d3(e,H,I,b%t*B,Math.floor(b/t)*G,B,G),d=i.Uaa(n, q,s,H,I,0,0,1,1),c=j.create(d,c);c.layers.set(a);o.OM(c,B/n);return c}.bind(this))},G8:function(a,b){switch(a){case l.Ss:case l.Xp:case l.om:case l.On:return p;case l.yi:return z;case l.Nn:return t.Mba().cwab;b++)f=45*Math.PI/180+2*Math.PI* b/6,a=k+Math.cos(f)*n,f=i+Math.sin(f)*n,0==b?j.moveTo(a,f):j.lineTo(a,f);j.closePath();j.fill()};b.Jz="circle";b.PF="hexagon";return b}); define("kf","require,fd,ia,lc,cT,gQ,cB,jy,fi,dU".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("cT"),f=a("gQ"),g=a("cB"),k=a("jy"),i=a("fi"),n=a("dU"),a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this);this.set("tag","LensFlare");this.set("translationAlpha",0);this.nP=this.Aia();this.ud=this.eja();this.Qg(this.nP.concat([this.ud]))});a.prototype.Qa=function(){f.prototype.Qa.call(this);this.trigger(e.Db);this.trigger(e.S);c.Rb(this.j,["yaw", "pitch","bleaching","bleachingDistance"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["yaw","pitch","bleaching","bleachingDistance"],this.Sd,p);f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("yaw",this.j.get("yaw"));this.set("pitch",this.j.get("pitch"));this.set("bleaching",this.j.get("bleaching"));this.set("bleachingDistance",this.j.get("bleachingDistance"))};a.prototype.J=function(a){f.prototype.J.call(this,a);this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll", a.kd);this.set("rendererCameraFOV",a.vf);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.Ob);if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){var b=this.get("composedTranslationX"),c=this.get("composedTranslationY"),e=this.get("composedTranslationZ");this.set("translationAlpha",Math.max(0,1-Math.sqrt(b*b+c*c+e*e)*10))}if(this.o("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","inVR", "yaw","pitch","translationAlpha","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){var i=a.ja+this.get("composedDeltaYaw"),g=a.pitch+this.get("composedDeltaPitch"),k=a.kd+this.get("composedDeltaRoll"),b=this.get("translationAlpha"),e=c=0,n,x,y,F;if(!a.Ob)if(i=d.get(this.get("yaw"),this.get("pitch"),i,g,k,a.vf,a.width,a.height)){x=a.width*0.5;F=a.height*0.5;n=i.x;y=i.y;x=(x-n)*2;F=(F-y)*2;e=Math.sqrt(x*x+F*F);c=Math.sqrt(a.width*a.width,a.height*a.height);a=Math.min(a.width,a.height);c= Math.max(0,Math.min(0.7,1-e/c))*b;i=this.get("bleaching");a=1-Math.max(0,Math.min(1,e/(a*this.get("bleachingDistance"))));e=i*a*b}for(a=0;a0){b.set("centerX",n+x*j[a].position);b.set("centerY",y+F*j[a].position)}}this.ud.set("alpha",e)}};a.prototype.Aia=function(){return j.map(function(a){var b=(new i(a.form,a.Pv,a.opacity,a.color,a.ov,a.pv)).og(),c=new n;c.ri(b);b=new k;b.set("textureSource",c);b.set("width",a.size);b.set("height",a.size);b.set("offsetX", a.size*0.5);b.set("offsetY",a.size*0.5);b.set("alpha",0);return b})};a.prototype.eja=function(){return new g("#ffffff")};var j=[{form:i.PF,position:0.1,size:52,Pv:128,opacity:0.8,color:"#FCFCFC",ov:[1,0.5],pv:[0,0.866]},{form:i.PF,position:0.2,size:52,Pv:128,opacity:0.6,color:"#C8FCC8",ov:[1,0.5],pv:[0,0.866]},{form:i.Jz,position:0.36,size:112,Pv:128,opacity:0.5,color:"#C8C8FC",ov:[1,0.9,0.6,0],pv:[0,0.2,0.4,1]},{form:i.Jz,position:0.47,size:32,Pv:128,opacity:0.3,color:"#96C8AF",ov:[1,1,0],pv:[0, 0.9,1]},{form:i.Jz,position:0.65,size:52,Pv:128,opacity:0.7,color:"#FCFCFC",ov:[0.7,0.7,0.2,0],pv:[0,0.1,0.4,1]},{form:i.PF,position:0.88,size:128,Pv:128,opacity:0.4,color:"#AF96C8",ov:[1,0.5],pv:[0,0.866]},{form:i.Jz,position:1,size:33,Pv:128,opacity:0.8,color:"#C89696",ov:[0.8,0.8,0.6,0],pv:[0,0.2,0.4,1]}];return a}); define("bz",["require","dH"],function(a){function b(a,b,k){d.style.fontFamily=e.Zr(b.fontFamily);d.style.fontSize=b.fontSize;d.style.fontWeight=b.fontWeight;d.style.fontStyle=b.fontStyle;d.innerHTML=a;document.body.appendChild(d);var i=new c(Math.ceil(d.clientWidth),Math.ceil(d.clientHeight));document.body.removeChild(d);k&&(k.font=b.fontSize+" "+e.Zr(b.fontFamily),a=k.measureText(a).width,i.height*=a/i.width,i.width=a);return i}function c(a,b){this.width=a;this.height=b}var e=a("dH"),d=document.createElement("div"); d.style.display="inline-block";d.style.margin=0;d.style.padding=0;d.style.whiteSpace="nowrap";b.w0=function(){this.fontFamily="Arial";this.fontSize="12px";this.fontWeight="400";this.fontStyle="normal"};b.Cza=c;return b}); define("ka",["require","bz","dH"],function(a){function b(a,b){this.Na=a;this.K7=5;this.Oc=b.map(function(b){return new c(a,b)});this.px=this.qx=this.Fh=this.xe=0;this.wW();this.u=document.createElement("canvas");this.u.width=this.xe;this.u.height=this.Fh;this.ha=this.u.getContext("2d");this.Z=p;this.sd=this.D7=-1}function c(a,b){this.vv=a;this.item=b;this.label=b.get("label");this.fontFamily=this.vv.get("fontFamily","Arial");this.fontSize="12px";this.backgroundColor=this.vv.get("backgroundColor", "#000000");this.qda=this.vv.get("rollOverBackgroundColor",this.backgroundColor);this.axa=this.vv.get("selectedBackgroundColor",this.qda);this.fba=this.vv.get("fontColor","#000000");this.rda=this.vv.get("rollOverFontColor",b.fba);this.bxa=this.vv.get("selectedFontColor",b.rda);this.jea=this.iea=this.kea=this.lea=this.height=this.width=this.left=this.top=0;this.status=z;this.rY=p}var e=a("bz"),d=a("dH");c.prototype.Yya=function(){var a=new e.w0;a.fontFamily=this.fontFamily;a.fontSize=this.fontSize; a=e(this.label,a);this.lea=a.width;this.kea=a.height};c.prototype.kya=function(a){this.status!=a&&(this.status=a,this.rY=p)};c.prototype.Xta=function(a){if(this.rY){this.rY=z;var b,c;switch(this.status){case "normal":b=this.backgroundColor;c=this.fba;break;case "over":b=this.qda;c=this.rda;break;case "selected":b=this.axa,c=this.bxa}a.clearRect(this.left,this.top,this.width,this.height);a.fillStyle=b;a.fillRect(this.left,this.top,this.width,this.height);a.fillStyle=c;a.font=this.fontSize+" '"+this.fontFamily+ "'";a.font=this.fontSize+(isNaN(this.fontSize)?"":"px")+" "+d.Zr(this.fontFamily);a.textBaseline="middle";a.textAlign="center";a.fillText(this.label,Math.round(this.iea),Math.round(this.jea));return p}return z};b.prototype.$c=R("xe");b.prototype.Nd=R("Fh");b.prototype.og=R("u");b.prototype.wW=function(){var a=0,b=0;this.Oc.forEach(function(c){c.Yya();a=Math.max(c.lea,a);b=Math.max(c.kea,b)});this.qx=a+2*this.K7;this.px=b+2*this.K7;var c=0,d=0,e=0;this.Oc.forEach(function(a){20<=e&&(e=0,d+=this.qx, c=0);a.left=d;a.top=c;a.iea=d+0.5*this.qx;a.jea=c+0.5*this.px;a.width=this.qx;a.height=this.px;e+=1;c+=this.px}.bind(this));this.xe=Math.ceil(this.Oc.length/20)*this.qx;this.Fh=Math.min(20,this.Oc.length)*this.px};b.prototype.update=function(){for(var a=z,b=0;b=this.Oc.length&&(c=-1));return c};b.prototype.uZ=P("D7");b.prototype.AZ=P("sd");b.prototype.clear=function(){this.Oc=this.u=this.ha=this.Na=r};return b}); define("eB","require,fd,lc,hf,ka,dU,kO,bq".split(","),function(a){function b(a,b){var c=(b-a)*0.98;Math.abs(c)<1.0E-5&&(c=0);return b-c}var c=a("fd"),e=a("lc"),d=a("hf"),f=a("ka"),g=a("dU"),k=a("kO"),i=a("bq"),a=c.extend(d,function(a){d.call(this);this.Na=a;this.u=r;this.dp=this.lj=this.sU=this.To=m;this.s2=20;this.Yd=r;this.ub=this.Na.get("opacity",0.5);this.pC=this.Na.get("rollOverOpacity",this.ub);this.Fma=1;this.Hma=0.66;this.set("tag","MenuButton");this.set("visible",z);this.set("over",z);this.set("centerDistance", m)});a.prototype.J=function(a){this.lg(a);this.DD(a);this.Tf(a);this.kp(a);d.prototype.J.call(this,a)};a.prototype.lg=function(){if(this.get("visible")){if(!this.u){this.get("textureSource")||this.set("textureSource",new g);this.u=new f(this.Na,[this.Na]);this.get("textureSource").ri(this.u.og());this.set("contentWidth",this.u.$c());this.set("contentHeight",this.u.Nd());this.set("hfov",2*Math.atan2(this.u.$c()*0.5,300)*j);this.set("distance",this.Na.get("distance"))}if(this.u.update()){this.get("textureSource").update(); this.Ga()}this.o("over")&&this.u.uZ(this.get("over")?0:-1)}};a.prototype.DD=function(a){if(this.o("visible"))this.Yd=new k("linear",[new i("displayCoef",this.get("visible")?0:1,this.get("visible")?1:0,m)],300);if(this.Yd)this.Yd.Je()?this.Yd=r:this.Yd.eb(a.vd)};a.prototype.Tf=function(a){if(this.get("visible")||this.Yd){this.lj=a.ja;this.dp=Math.min(90,Math.max(-90,this.s2+this.s2-a.pitch));if(this.o("visible")&&this.get("visible")){this.set("yaw",a.ja);this.set("pitch",a.pitch)}else{for(;this.lj+ 180this.To;)this.To=this.To+360;var c=(this.lj-this.To)/a.vd,d=(this.dp-this.sU)/a.vd,e=Math.atan2(d,c),d=Math.sqrt(d*d+c*c),d=Math.min(d,10*n),c=Math.cos(e)*d,e=Math.sin(e)*d;this.set("yaw",b(this.get("yaw"),this.lj+c));this.set("pitch",b(this.get("pitch"),this.dp+e))}this.To=this.lj;this.sU=this.dp;e=this.get("yaw")-a.ja;a=this.get("pitch")-a.pitch;this.set("centerDistance",Math.sqrt(e*e+a*a))}};a.prototype.kp=function(){if(!this.get("visible")&&!this.Yd)this.set("alpha", 0);else if(this.o("over","centerDistance")||this.Yd){var a=this.get("over")?this.pC:this.ub,b=this.Hma,c=this.get("centerDistance")/this.get("hfov");if(c<1){b=b+(1-c)*(this.Fma-b);a=a+(1-c)*(this.pC-a)}if(this.Yd){a=a*this.Yd.wb("displayCoef");b=b*this.Yd.wb("displayCoef")}this.set("alpha",a);this.set("scale",b)}};a.prototype.Aj=function(a){if(a.Zd==e.Ai){var b=z;this.get("visible")&&!a.th()&&(b=this.qo(a.Cl).length>0);if(b){a.Qr(this.Na);a.Rr(this.Na);a.ki(this.get("distance"))}if(this.get("over")!= b){this.get("over")&&this.Na.trigger(e.Ib);this.set("over",b);this.get("over")&&this.Na.trigger(e.tc)}}else if(a.Zd==e.zi&&this.get("visible")&&!a.th()&&this.qo(a.Cl).length>0){a.Jp(this.Na);this.Na.trigger(e.T);this.trigger(e.T)}};var n=Math.PI/180,j=180/Math.PI;return a}); define("hi","require,fd,lc,hf,ka,dU,kO,bq".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("ka"),f=a("dU"),g=a("kO"),k=a("bq"),a=b.extend(e,function(a,b){e.call(this);this.Na=a;this.JB=b;this.u=r;this.sU=this.To=m;this.Yd=r;this.ub=this.Na.get("opacity",0.5);this.pC=this.Na.get("rollOverOpacity",this.ub);this.set("textureSource",new f);this.u=new d(this.Na,b);this.set("tag","MenuPanel");this.get("textureSource").ri(this.u.og());this.set("contentWidth",this.u.$c());this.set("contentHeight", this.u.Nd());this.set("hfov",2*Math.atan2(this.u.$c()*0.5,300)*i);this.set("distance",this.Na.get("distance"));this.set("overIndex",-1);this.set("selectedIndex",-1);this.q3=z});a.prototype.Qa=function(){e.prototype.Qa.call(this)};a.prototype.Ya=function(){e.prototype.Ya.call(this)};a.prototype.J=function(a){this.lg(a);this.DD(a);this.Tf(a);e.prototype.J.call(this,a)};a.prototype.lg=function(){this.o("selectedIndex")&&this.u.uZ(this.get("selectedIndex"));this.o("overIndex")&&this.u.uZ(this.get("overIndex")); if(this.u.update()){this.get("textureSource").update();this.Ga()}};a.prototype.DD=function(a){if(!this.Yd&&!this.q3)this.Yd=new g("linear",[new k("alpha",0,1,m),new k("scale",0,1,m),new k("yaw",a.ja,this.get("yaw"),m),new k("pitch",a.pitch,this.get("pitch"),m)],300);if(this.Yd)if(this.Yd.Je()){this.q3=p;this.Yd=r}else this.Yd.eb(a.vd)};a.prototype.Tf=function(){if(this.Yd){var a=this.get("overIndex")<0?this.ub:this.pC;this.set("alpha",a*this.Yd.wb("alpha"));this.set("scale",this.Yd.wb("scale"));this.set("yaw", this.Yd.wb("yaw"));this.set("pitch",this.Yd.wb("pitch"))}else if(this.o("overIndex")){a=this.get("overIndex")<0?this.ub:this.pC;this.set("alpha",a)}};a.prototype.Aj=function(a){if(a.Zd==c.Ai){var b=-1;if(!a.th()){var d=this.qo(a.Cl).filter(function(a){return a.source==this.u.og()}.bind(this));d.length>0&&(b=this.u.rba(d[0].x,d[0].y))}if(b>=0){a.Qr(this.JB[b]);a.Rr(this.JB[b]);a.ki(this.get("distance"))}this.get("overIndex")>=0!=b>=0&&(b>0?this.trigger(c.tc):this.trigger(c.Ib));if(this.get("overIndex")!= b){this.get("overIndex")>=0&&this.JB[this.get("overIndex")].trigger(c.Ib);this.set("overIndex",b);this.get("overIndex")>=0&&this.JB[this.get("overIndex")].trigger(c.tc)}}else if(a.Zd==c.zi&&!a.th()){d=this.qo(a.Cl).filter(function(a){return a.source==this.u.og()}.bind(this));if(d.length>0){b=this.u.rba(d[0].x,d[0].y);if(b>=0){d=this.JB[b];this.set("selectedIndex",b);a.Jp(d);a.ki(this.get("distance"));d.trigger(c.T);this.trigger(c.T,{item:d})}}}};var i=180/Math.PI;return a}); define("iy",["require","fd","lc","gQ","hi"],function(a){var b=a("fd"),c=a("lc"),e=a("gQ"),d=a("hi"),a=b.extend(e,function(a){e.call(this);this.Na=a;this.nr=[];this.Hx=r;this.set("tag","MenuPanels");this.set("visible",z)});a.prototype.J=function(a){this.o("visible")&&this.get("visible")&&(this.set("yaw",a.ja),this.set("pitch",a.pitch),this.F1(this.Na));e.prototype.J.call(this,a)};a.prototype.F1=function(a){var a=new d(this.Na,a.get("children",[])),b=this.get("yaw");this.Oa().forEach(function(a){b+= a.get("hfov")+g});a.set("yaw",b);a.set("pitch",this.get("pitch"));this.Aga(a);this.appendChild(a)};a.prototype.B8=function(a){this.Oa().slice(a).forEach(function(a){this.Yoa(a);a.remove()}.bind(this));this.nr=this.nr.filter(function(a){return 0<=this.Oa().indexOf(a)}.bind(this))};a.prototype.Aga=function(a){a.bind(c.tc,this.P7,this,p);a.bind(c.Ib,this.O7,this,p);a.bind(c.T,this.N7,this,p)};a.prototype.Yoa=function(a){a.unbind(c.tc,this.P7,this,p);a.unbind(c.Ib,this.O7,this,p);a.unbind(c.T,this.N7, this,p)};a.prototype.P7=function(a){0>this.nr.indexOf(a.source)&&(this.nr.push(a.source),1==this.nr.length&&this.H2())};a.prototype.O7=function(a){a=this.nr.indexOf(a.source);0<=a&&(this.nr.splice(a,1),0==this.nr.length&&this.fqa())};a.prototype.N7=function(a){var b=a.source,a=a.data.item;a.get("children",[]).length?(this.B8(this.Oa().indexOf(b)+1),this.F1(a)):this.L2()};a.prototype.L2=function(){this.set("visible",z);this.B8(0);this.H2();this.trigger(c.zs)};a.prototype.H2=function(){this.Hx&&(clearTimeout(this.Hx), this.Hx=r)};a.prototype.fqa=function(){this.Hx||(this.Hx=setTimeout(function(){this.Hx=r;this.L2()}.bind(this),f))};var f=3E3,g=1;return a}); define("eF","require,fd,lc,gQ,eB,iy".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gQ"),d=a("eB");MenuPanels=a("iy");a=b.extend(e,function(a){e.call(this);this.j=a;this.dh.push(this.j);this.set("tag","Menu");this.set("visible",z);this.uc=new d(this.j);this.uc.bind(c.T,this.tha,this,z);this.nf=new MenuPanels(this.j);this.nf.bind(c.zs,this.coa,this,z);this.Qg([this.uc,this.nf])});a.prototype.Qa=function(){e.prototype.Qa.call(this);this.trigger(c.Db);this.trigger(c.S)};a.prototype.J=function(a){this.set("visible", a.Ob);if(this.o("visible")){this.uc.set("visible",this.get("visible"));this.nf.set("visible",z)}e.prototype.J.call(this,a)};a.prototype.tha=function(){this.uc.set("visible",z);this.nf.set("visible",p)};a.prototype.coa=function(){this.uc.set("visible",this.get("visible"))};return a}); define("kX","require,fd,lc,hf,dU,hL,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("dU");EventAggregator=a("hL");ProgressEvent=a("iC");a=b.extend(e,function(){e.call(this);this.set("tag","CustomPlane");this.set("source",r);this.set("sourceUpdated",z);this.nc=this.Be=r});a.prototype.Qa=function(){this.Be=(new EventAggregator(c.S)).vi(this.ol.bind(this));this.nc=(new EventAggregator(c.S)).Ek(this.Oo.bind(this));e.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Be.dispose(); this.nc.dispose();e.prototype.Ya.call(this)};a.prototype.J=function(a){if(this.o("source","sourceUpdated","useMipmapping","anisotropy")){var b=this.get("textureSource");b||this.set("textureSource",b=new d);this.o("source")&&b.ri(this.get("source"));this.o("sourceUpdated")&&(b.update(),this.set("sourceUpdated",z));this.o("useMipmapping")&&b.$M(this.get("useMipmapping"),this.get("anisotropy"))}e.prototype.J.call(this,a);if(this.o("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Be.xd(a); this.nc.xd(a)}}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.Oo=function(a,b){var d=0;b.mn(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new ProgressEvent(c.sc,d/b.Vc.length))};return a}); define("hp",["require"],function(){function a(a){this.Pb=this.dB(a.get("surfaceReticleColor"));this.Qm=this.dB(a.get("surfaceReticleSelectionColor"));this.ub=a.get("surfaceReticleOpacity");this.W8=a.get("surfaceReticleSelectionOpacity");this.Fh=this.xe=128;this.Xna=0.456;this.Yna=0.088;this.Rla=0.18;this.u=document.createElement("canvas");this.u.width=this.xe;this.u.height=this.Fh;this.ha=this.u.getContext("2d");this.ha.fillStyle="red";this.ha.vva=p;this.ha.fillRect(0,0,this.xe,this.Fh);this.Nf=this.MP= z;this.sx=this.eJ=m;this.at=0}a.prototype.wR=function(a){return this.kk(this.Qm[0]*a+(1-a)*this.Pb[0],this.Qm[1]*a+(1-a)*this.Pb[1],this.Qm[2]*a+(1-a)*this.Pb[2],this.W8*a+(1-a)*this.ub)};a.prototype.dB=function(a){a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]};a.prototype.kk=function(a,c){return"rgba("+a.join(",")+", "+c+")"};a.prototype.Fa=function(a){this.ua!=a&&(this.ua=a,this.Z=p)};a.prototype.$c=R("xe");a.prototype.Nd=R("Fh"); a.prototype.og=R("u");a.prototype.update=function(){if(!this.Z)return z;this.Z=z;this.ha.clearRect(0,0,this.xe,this.Fh);var a=[this.Qm[0]*this.ua+(1-this.ua)*this.Pb[0],this.Qm[1]*this.ua+(1-this.ua)*this.Pb[1],this.Qm[2]*this.ua+(1-this.ua)*this.Pb[2]],c=this.W8*this.ua+(1-this.ua)*this.ub;this.ha.strokeStyle=this.kk(a,c);this.ha.fillStyle=this.kk(a,c*this.ua);this.ha.beginPath();this.ha.lineWidth=this.xe*this.Yna;this.ha.arc(0.5*this.xe,0.5*this.xe,this.xe*this.Xna,0,2*Math.PI,z);this.ha.stroke(); this.ha.beginPath();this.ha.arc(0.5*this.xe,0.5*this.xe,this.xe*this.Rla,0,2*Math.PI,z);this.ha.fill();return p};return a}); define("ft","require,fd,ia,lc,gS,gQ,kX,hp,cA,fG".split(","),function(a){function b(a,b,c){this.zM=a;this.zM.bind(d.D("distanceToFloor"),this.J,this,z);this.Jg=b;this.Jg.bind(d.D("yaw"),this.J,this,z);this.Jg.bind(d.D("distance"),this.J,this,z);this.Jg.bind(d.D("enabled"),this.J,this,z);this.Jg.bind(d.D("enabledInSurfaceSelection"),this.J,this,z);this.ua=r;this.qi=new k;this.qi.set("hfov",20);this.qi.set("vfov",20);this.qi.set("pitch",-90);this.qi.set("useMipmapping",p);this.qi.set("anisotropy",16); this.qi.set("source",c.og());this.qi.set("contentWidth",c.$c());this.qi.set("contentHeight",c.Nd());this.J()}var c=a("fd"),e=a("ia"),d=a("lc"),f=a("gS"),g=a("gQ"),k=a("kX"),i=a("hp"),n=a("cA"),j=a("fG"),a=c.extend(g,function(a){g.call(this);this.MI=this.MI.bind(this);this.Gm=this.Gm.bind(this);this.KI=this.KI.bind(this);this.set("tag","SurfaceSelector");this.set("reticleVisible",z);this.set("enabled",z);this.M=a;this.lG=[];this.RA=new j;this.Ee=new n;this.Fb=new k;this.Fb.set("useMipmapping",p);this.Fb.set("anisotropy", 16);this.Fb.set("hfov",20);this.Fb.set("vfov",20);this.Fb.set("pitch",-90);this.set("reticleCoef",1);this.Qg([this.Fb])});a.prototype.Qa=function(){this.Via();g.prototype.Qa.call(this);e.Rb(this.M,["distanceToFloor"],this.MI,p);e.Rb(this.M,["adjacentPanoramas"],this.Gm,p);e.Rb(this.Sa.Qb,["adjacentPanoramaPositionsEnabled"],this.KI,p);this.trigger(d.Db);this.trigger(d.S)};a.prototype.Ya=function(){g.prototype.Ya.call(this);e.ac(this.M,["distanceToFloor"],this.MI);e.ac(this.M,["adjacentPanoramas"], this.Gm);e.ac(this.Sa.Qb,["adjacentPanoramaPositionsEnabled"],this.KI);this.d9([])};a.prototype.MI=function(){var a=this.M.get("distanceToFloor");this.Fb.set("distance",a);var a=f.kv(a),b=f.cY(a,90),c=f.dY(a,90);this.RA.Pd.set(-b*0.5,-a,-c*0.5);this.RA.pg.set(b*0.5,-a,-c*0.5);this.RA.gs.set(-b*0.5,-a,c*0.5);this.J8=a/f.sp()};a.prototype.Gm=function(){this.d9(this.M.get("adjacentPanoramas",[]))};a.prototype.KI=function(){this.Gm()};a.prototype.d9=function(a){this.lG.forEach(function(a){a.clear()}); this.lG=a.map(function(a){return new b(this.M,a,this.nU)}.bind(this));a=[];this.Sa.Qb.get("adjacentPanoramaPositionsEnabled")&&(a=a.concat(this.lG.map(function(a){return a.qi})));a=a.concat([this.Fb]);this.Qg(a)};a.prototype.J=function(a){g.prototype.J.call(this,a);this.set("enabled",a.nF);this.LW(a);this.Nr(a)};a.prototype.LW=function(){if(this.o("enabled","reticleVisible","composedTranslationX","composedTranslationY","composedTranslationZ","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.Fb.set("alpha", this.get("reticleVisible")?1:0);this.set("alpha",this.get("enabled")&&!this.get("composedTranslationX")&&!this.get("composedTranslationY")&&!this.get("composedTranslationZ")&&!this.get("composedDeltaYaw")&&!this.get("composedDeltaPitch")&&!this.get("composedDeltaRoll")?1:0);this.P$()}};a.prototype.Via=function(){this.$x=new i(this.Sa.F);this.$x.Fa(this.get("reticleCoef"));this.Fb.set("source",this.$x.og());this.Fb.set("contentWidth",this.$x.$c());this.Fb.set("contentHeight",this.$x.Nd());this.nU= new i(this.Sa.F);this.nU.Fa(0);this.nU.update(1)};a.prototype.Nr=function(a){this.o("reticleCoef")&&this.$x.Fa(this.get("reticleCoef"));this.Fb.set("sourceUpdated",this.$x.update(a.vd))};a.prototype.Aj=function(a){if(!this.get("enabled")||a.Cl.length==0||a.th()||a.pwa())this.set("reticleVisible",z);else{var b=a.Cl[0];this.Ee.Pd.set(b.origin.x,b.origin.y,b.origin.z);this.Ee.pg.set(b.origin.x+b.direction.x,b.origin.y+b.direction.y,b.origin.z+b.direction.z);if(b=this.RA.intersection(this.Ee,p)){var c= this.RA.CM(b,p),e=2*(0.5-c.x),c=2*(0.5-c.y),f=l*Math.atan2(-e,c),i=-90+l*Math.atan2(Math.sqrt(e*e+c*c),1);if(i<-75||i>-1)this.set("reticleVisible",z);else{var j={x:e*this.J8,y:-c*this.J8};if(!a.fs()&&!a.zca())this.set("reticleVisible",z);else{this.set("reticleVisible",p);this.Fb.set("alpha",Math.min(1,(i- -75)/5));this.Fb.set("translationX",j.x);this.Fb.set("translationZ",j.y)}a.zca()&&a.ita([n]);var g=this.Sa.Qb.get("surfaceSelectionHorizontalAngle")*0.5,k=this.Sa.Qb.get("surfaceSelectionVerticalAngle")* 0.5,e=this.lG.map(function(a){var b=a.Fua(f),c=a.bva(i),d=a.RX(j);return{Jg:a.Jg,hca:b,vea:c,aba:d}}).filter(function(a){return a.hca180?360-a:a};b.prototype.bva=function(a){return!this.ua?Infinity:Math.abs(this.ua.pitch-a)};b.prototype.RX=function(a){if(!this.py)return Infinity;var b=a.x-this.py.x,a=a.y-this.py.y;return Math.sqrt(b*b+a*a)};b.prototype.J=function(){var a=this.Jg.get("yaw"),b=this.Jg.get("distance"),c=this.Jg.get("enabled")&&this.Jg.get("enabledInSurfaceSelection");if(a===m||b===m||!c){this.py=this.ua=r;this.qi.set("alpha",0)}else{var c=this.zM.get("distanceToFloor"),d=-90+Math.atan2(b, c)*l;this.qi.set("alpha",d<-1?1:0);this.ua={ja:a,pitch:d};d=-Math.cos(a*q)*b/c;a=-Math.sin(a*q)*b/c;b=f.kv(c)/f.sp();this.py={x:a*b,y:d*b};this.qi.set("translationX",this.py.x);this.qi.set("translationZ",this.py.y);this.qi.set("distance",c)}};var l=180/Math.PI,q=Math.PI/180;return a}); define("O","require,fd,ia,lc,iC,gQ,ft,hL,kd,hd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("iC"),f=a("gQ"),g=a("ft"),k=a("hL"),i=a("kd"),n=a("hd"),j=0,a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.LI=this.LI.bind(this);this.Rd=this.Rd.bind(this);this.Gm=this.Gm.bind(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Panorama");this.set("loadingActive",z);this.set("blendingActive",p);this.set("currentTime",0);this.set("adjacentPanoramas", []);this.set("preloadEnabled",p);this.set("backgroundPreloadEnabled",p);this.set("surfaceSelectionEnabled",z);this.set("id","panorama_"+j++);this.set("ready",z);this.HJ=[];this.ik=this.nc=this.Cd=r;this.kf=new l;this.i8=new q;this.jra=new g(this.j);this.ek=new q;this.Qg([this.kf,this.i8,this.jra,this.ek])});a.prototype.Qa=function(){this.Cd=(new k(e.S)).vi(this.ol.bind(this));this.nc=(new k(e.sc)).Ek(this.gu.bind(this));this.ik=(new k(e.Db)).vi(this.dna.bind(this));f.prototype.Qa.call(this);c.Rb(this.j, ["currentTime"],this.LI,p);c.Rb(this.j,["frames","overlays","vrMenu","adjacentPanoramas"],this.Rd,p);c.Rb(this.j,["adjacentPanoramas"],this.Gm,p)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();this.ik.dispose();f.prototype.Ya.call(this);c.ac(this.j,["currentTime"],this.LI);c.ac(this.j,["frames","overlays","vrMenu","flipImageHorizontally"],this.Rd);c.ac(this.j,["adjacentPanoramas"],this.Gm);this.JV()};a.prototype.Rd=function(){function a(b,c,e){b=f.indexOf(b);return b<0?e:d[b].get(c, e)}function b(c){return a(c,"projected",z)}var c=this.Sa.vp(this.j.get("frames"));c.forEach(function(a){a.set("panoramaId",this.get("id"));a.set("flipHorizontally",this.j.get("flipImageHorizontally"))}.bind(this));var d=this.j.get("overlays"),e=this.Sa.vp(d),f=e.slice(),j=e.filter(b).filter(function(b){return a(b,"enabled",p)});this.j.get("vrMenu")&&e.push(this.Sa.vp(this.j.get("vrMenu")));e.forEach(function(a){a.set("panoramaId",this.get("id"))}.bind(this));this.Cd.xd(c.concat(e));this.nc.xd(c.concat(e)); this.ik.xd(c.concat(j));this.i8.Qg(e.filter(b));this.kf.Qg(c);this.ek.Qg(e.filter(function(a){return!b(a)}));this.set("panoramaPixelsPerDegree",i.yba(this.j));this.U$()};a.prototype.LI=function(){this.set("currentTime",this.j.get("currentTime",0))};a.prototype.Gm=function(){this.set("adjacentPanoramas",this.j.get("adjacentPanoramas",[]))};a.prototype.ol=function(){this.Rl();this.trigger(e.S)};a.prototype.dna=function(){this.Rl();this.set("ready",p);this.trigger(e.Db)};a.prototype.gu=function(){this.Rl()}; a.prototype.Rl=function(){var a=0;this.nc.mn(function(b){var c=0,d;this.Cd.pi(b)?c=100:(d=this.nc.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new d(e.sc,a/this.nc.Vc.length))};a.prototype.J=function(a){this.set("blendingActive",this.get("alpha")<1);this.set("backgroundPreloadEnabled",this.Sa.qb.get("backgroundPreloadEnabled")!==z);this.set("preloadEnabled",a.TE);this.o("adjacentPanoramas","loadingActive","preloadEnabled","backgroundPreloadEnabled")&&(this.get("loadingActive")&&this.get("backgroundPreloadEnabled")? this.Tqa():this.JV());this.o("index")&&this.U$();f.prototype.J.call(this,a)};a.prototype.oY=function(){return i.oY(this.j,this.get("preloadEnabled"))};a.prototype.Tqa=function(){this.JV();this.HJ=this.get("adjacentPanoramas").map(function(a){a=a.get("panorama");return[a,i.Ak(a,this.get("preloadEnabled"))]}.bind(this));this.HJ.forEach(function(a){n.Eaa(a[0],a[1]);n.wM(a[0],1)})};a.prototype.JV=function(){this.HJ.forEach(function(a){n.wM(a[0],-1);n.Swa(a[0],a[1])});this.HJ=[]};a.prototype.U$=function(){var a= this.get("index");this.kf.Oa().forEach(function(b,c,d){b.set("panoramaIndex",a);b.set("frameIndex",c);b.set("frameCount",d.length)})};var l=b.extend(f,function(){f.call(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("currentTime",0);this.set("tag","Group")});l.prototype.J=function(a){this.Oa().forEach(function(a,b,c){a.set("frontFrame",c[c.length-1])});f.prototype.J.call(this,a)};var q=b.extend(f,function(){f.call(this);this.Uk(["loadingActive", "currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("currentTime",0);this.set("tag","Group")});return a}); define("bs",["require","fd","ej","dt"],function(a){var b=a("fd"),c=a("ej"),e=a("dt"),d=0,a=b.extend(c,function(){c.call(this);this.set("tag","PanoramaFrame");this.set("panoramaIndex",0);this.set("frameIndex",0);this.set("frameCount",1);this.set("id","frame_"+d++)});a.prototype.J=function(a){c.prototype.J.call(this,a);this.Nu()};a.prototype.Ru=function(){if(this.o("panoramaIndex","frameIndex","frameCount","meshGroup")){var a=this.get("meshGroup");if(a){var b=this.get("panoramaIndex"),c=this.get("frameIndex"), d=this.get("frameCount"),n=a.children.length;a.children.forEach(function(a,f){e.UM(a,b+(f+c/d)/n)}.bind(this))}}};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b){e.setAttribute(a,e.us,this.get("panoramaId"));e.setAttribute(a,e.gN,b);e.setAttribute(a,e.Tv,this.get("id"))}.bind(this))}};return a}); define("kA","require,fd,ia,lc,gb,gQ,bs,hL,kd,eN,hS,iC".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("gb"),f=a("gQ"),g=a("bs"),k=a("hL"),i=a("kd"),n=a("eN"),j=a("hS"),l=a("iC"),a=b.extend(g,function(a){g.call(this);this.set("tag","ImagePanoramaFrame");this.Y7=p;this.j=a;this.dh.push(this.j);this.mh=this.Be=this.ik=r;this.ZS=[];this.Rd=this.Rd.bind(this);this.Uk(["loadingActive","currentTime","panoramaId","panoramaPixelsPerDegree"]);this.Qg([this.ek=new q])});a.prototype.Qa=function(){this.ik= new k(e.S);this.Be=new k(e.S);this.mh=new k(e.sc);g.prototype.Qa.call(this);c.Rb(this.j,["overlays"],this.Rd,p)};a.prototype.Ya=function(){this.ik.dispose();this.Be.dispose();this.mh.dispose();c.ac(this.j,["overlays"],this.Rd);g.prototype.Ya.call(this)};a.prototype.Rd=function(){this.ek.Qg(this.Sa.vp(this.j.get("overlays")));this.K$()};a.prototype.K$=function(){this.Be.xd([].concat(this.ZS,this.ek.Oa()));this.mh.xd([].concat(this.ZS,this.ek.Oa()))};a.prototype.Mi=function(){var a=[],b=[],c=[];i.YX(this.j, this.Y7).forEach(function(e,f){var g=n.Lta(this.j,e);if(i.Qva(e)){if(f==0){a=a.concat(g);b=b.concat(g)}j.En(g,f==0?j.Rk:j.QF);j.Dn(g,f==0?j.Ij:j.hO)}else{f==0&&(a=a.concat(g));b=b.concat(g);j.En(g,j.Rk);j.Dn(g,j.Ij)}j.ms(g,f==0?d.sO:d.Jj);j.uz(g,f);c=c.concat(g)}.bind(this));this.ik.xd(a);this.ZS=b;this.K$();this.Be.vi(this.ol.bind(this));this.ik.vi(this.Ana.bind(this));this.mh.Ek(this.gu.bind(this));this.trigger(new l(e.sc,0));return c};a.prototype.Ana=function(){this.trigger(e.Db)};a.prototype.ol= function(){this.trigger(e.S)};a.prototype.J=function(a){this.Y7=a.TE;this.qsa();g.prototype.J.call(this,a)};a.prototype.qsa=function(){var a=this.get("frontFrame");if(this.o("frontFrame")||a&&a.o("alpha"))this.ek.set("alpha",!a||a==this?1:1-a.get("alpha"))};a.prototype.gu=function(){var a=0;this.mh.mn(function(b){var c=0,d;this.Be.pi(b)?c=100:(d=this.mh.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new l(e.sc,a/this.mh.Vc.length))};var q=b.extend(f,function(){f.call(this);this.Uk(["loadingActive", "panoramaId","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("tag","Group")});return a}); define("jp","require,dm,lc,bY,fr,kK".split(","),function(a){function b(a,b){this.Nb=a;this.C=b;this.gg=z;this.ag=[];this.Ni=this.Mw=m;this.Mc=[];this.zP();this.kQ();this.BK();this.ih()}function c(a,b,c){this.time=a;this.cue=b;this.action=c}var e=a("dm"),d=a("lc"),f=a("bY"),g=a("fr"),k=a("kK");b.prototype.clear=function(){this.uA();this.ag=[];this.jW();this.C=this.Nb=r};b.prototype.zP=function(){this.C.bind(k.Kd,this.fd,this,p);this.C.bind(d.zc,this.ih,this,p);this.C.bind(d.Da,this.mr,this,p)};b.prototype.jW= function(){this.C.unbind(k.Kd,this.fd,this,p);this.C.unbind(d.zc,this.ih,this,p);this.C.unbind(d.Da,this.mr,this,p)};b.prototype.ih=function(){var a=this.C.Ie()!=g.K;if(this.gg!=a)(this.gg=a)?this.BK():this.uA()};b.prototype.mr=function(){this.Uu()};b.prototype.fd=function(){this.Uu()};b.prototype.BK=function(){this.Ni=this.Mw=0};b.prototype.Uu=function(){if(this.C&&this.gg){var a=this.Mc.slice(),b=this.C.qj(),c=b-this.Mw;if(c<0){this.Mc=[];this.Ni=0}c=c>=0&&c<2;this.Mw=b;var g;for(g=this.Ni;g b)break;for(;this.Ni0){this.Mc=[];this.wD()}};b.prototype.wD=function(){this.Nb.trigger(new f(d.xf,{activeCues:this.Mc.slice()}))};b.prototype.kQ=function(){this.ag=[];var a= this.Nb.get("cues",[]);e(a).each(function(a){this.ag.push(new c(a.get("startTime",0),a,"start"));this.ag.push(new c(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.ag.sort(function(a,b){return a.time==b.time?a.action==b.start?0:a.action=="start"?-1:1:a.time-b.time})};return b}); define("dR",["require","lc","fr","bY","kK"],function(a){function b(a,b,c){this.qb=a;this.Nb=b;this.C=c;this.C.Kp(this.wm=this.Nb.get("currentTime",0));this.C.Id(this.qd=this.qb.get("mute",z));this.C.ic(this.m=this.Nb.get("state",e.K));this.Kb=this.C.rj();this.Bga();this.Gga();this.Un()}var c=a("lc"),e=a("fr"),d=a("bY"),f=a("kK");b.prototype.clear=function(){this.Zoa();this.cpa();this.Wo();this.C.ic(e.K);this.Nb.set("state",e.K);this.Nb.set("currentTime",0);this.Nb.set("duration",m)};b.prototype.y7= function(){var a=this.Nb.get("state",e.K);this.m!=a&&this.C.ic(this.m=a)};b.prototype.x7=function(){var a=this.Nb.get("currentTime",0);this.wm!=a&&this.C.Kp(this.wm=a)};b.prototype.gC=function(){var a=this.qb.get("mute",0);this.qd!=a&&this.C.Id(this.qd=a)};b.prototype.mC=function(){this.Nb.set("currentTime",this.wm=this.C.qj())};b.prototype.kC=function(){this.Nb.set("duration",this.Kb=this.C.rj())};b.prototype.lC=function(){this.Nb.set("state",this.m=this.C.Ie())};b.prototype.nC=function(){this.Nb.trigger(new d(c.Da)); this.Nb.get("loop")&&(this.C.Kp(this.wm=0),this.C.ic(this.m=e.R))};b.prototype.Bga=function(){this.qb.bind(c.D("mute"),this.gC,this,p)};b.prototype.Zoa=function(){this.qb.unbind(c.D("mute"),this.gC,this,p)};b.prototype.Gga=function(){this.Nb.bind(c.D("state"),this.y7,this,p);this.Nb.bind(c.D("currentTime"),this.x7,this,p)};b.prototype.cpa=function(){this.Nb.unbind(c.D("state"),this.y7,this,p);this.Nb.unbind(c.D("currentTime"),this.x7,this,p)};b.prototype.Un=function(){this.C.bind(f.Kd,this.mC,this, p);this.C.bind(f.Xf,this.kC,this,p);this.C.bind(c.zc,this.lC,this,p);this.C.bind(c.Da,this.nC,this,p)};b.prototype.Wo=function(){this.C.unbind(f.Kd,this.mC,this,p);this.C.unbind(f.Xf,this.kC,this,p);this.C.unbind(c.zc,this.lC,this,p);this.C.unbind(c.Da,this.nC,this,p)};return b}); define("hM",["require","kK","lc"],function(a){function b(a,b){this.Nb=a;this.C=b;this.$O=[];this.zP();this.Kf()}a("kK");var c=a("lc");b.prototype.clear=function(){this.cia();this.jW();this.C=this.Nb=r};b.prototype.zP=function(){this.C.bind(c.xf,this.Kf,this,p)};b.prototype.jW=function(){this.C.unbind(c.xf,this.Kf,this,p)};b.prototype.Kf=function(){this.Nb.set("activeSubtitles",this.$O=this.C.rm)};b.prototype.cia=function(){this.Nb.get("activeSubtitles")==this.$O&&this.Nb.set("activeSubtitles",this.$O= [])};return b}); define("cZ","require,fd,lc,gb,fr,bs,hL,eN,jp,dR,dt,hS,hM,kK,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gb"),d=a("fr"),f=a("bs"),g=a("hL"),k=a("eN"),i=a("jp"),n=a("dR"),j=a("dt"),l=a("hS"),q=a("hM"),o=a("kK"),t=a("iC"),a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoPanoramaFrame");this.set("frameEmpty",m);this.set("atStart",m);this.raa=this.j.get("stereoSphere")||this.j.get("sphere"); this.$a=o.Mg(this.raa);this.zy=[];this.ru=[];this.mh=this.Be=this.sf=this.C=r});a.prototype.Qa=function(){this.Be=(new g(c.S)).vi(this.ol.bind(this));this.mh=(new g(c.sc)).Ek(this.gu.bind(this));this.C=new o(this.Sa.qb,this.raa);this.dl=new i(this.j.Vy(),this.C);this.ta=new n(this.Sa.qb,this.j.Vy(),this.C);this.cp=new q(this.j.Vy(),this.C);this.Un();f.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Be.dispose();this.mh.dispose();this.Wo();this.dl.clear();this.dl=r;this.ta.clear();this.ta= r;this.cp.clear();this.cp=r;this.C.clear();this.sf=this.C=r;f.prototype.Ya.call(this)};a.prototype.Mi=function(){this.zy=k.Qta(this.j,this.$a);this.Qsa=l.Qv(j.cs(this.zy[0])[0]);this.zy.forEach(function(a){l.En(a,l.Rk);l.Dn(a,l.Ij)});if(this.$a.get("posterURL")){this.ru=k.Rta(this.j,this.$a);this.ru.forEach(function(a){l.En(a,l.Rk);l.Dn(a,l.Ij);l.ms(a,e.sO)})}else this.ru=[];var a=[].concat(this.zy,this.ru);this.Be.xd(a);this.mh.xd(a);this.trigger(new t(c.sc,0));return a};a.prototype.J=function(a){var b= this.C.QL();this.set("frameEmpty",b.isEmpty());this.set("atStart",!(this.get("currentTime")>1));f.prototype.J.call(this,a);if(!this.sf||!this.sf.isEqual(b)){this.sf=b;this.Qsa.ri(this.sf.zt);this.Ga()}else this.C.Ie()==d.R&&this.Ga()};a.prototype.hi=function(){if(this.o("composedAlpha","meshGroup","frameEmpty","atStart"))if(this.ru.length&&this.get("frameEmpty")&&this.get("atStart")){this.ru.forEach(function(a){j.wd(a,this.get("composedAlpha"))}.bind(this));this.zy.forEach(function(a){j.wd(a,0)}.bind(this))}else{this.ru.forEach(function(a){j.wd(a, 0)}.bind(this));this.zy.forEach(function(a){j.wd(a,this.get("composedAlpha"))}.bind(this))}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.gu=function(a,b){var d=0;b.mn(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new t(c.sc,d/b.Vc.length))};a.prototype.ih=function(){this.Ga()};a.prototype.fd=function(){this.Ga()};a.prototype.Un=function(){this.C.bind(o.Kd,this.fd,this,p);this.C.bind(c.zc,this.ih,this,p)};a.prototype.Wo=function(){this.C.unbind(o.Kd,this.fd,this, p);this.C.unbind(c.zc,this.ih,this,p)};return a}); define("cJ","require,fd,lc,hf,jJ,hL,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("jJ"),f=a("hL"),g=a("iC"),a=b.extend(e,function(){e.call(this);this.set("tag","ImagePlane");this.set("url",r);this.nc=this.Cd=r});a.prototype.Qa=function(){this.Cd=(new f(c.S)).vi(this.ol.bind(this));this.nc=(new f(c.sc)).Ek(this.Oo.bind(this));e.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();e.prototype.Ya.call(this)};a.prototype.J=function(a){if(this.o("url")){var b= this.get("url");this.set("textureSource",b?new d(b):r)}e.prototype.J.call(this,a);if(this.o("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Cd.xd(a);this.nc.xd(a)}}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.Oo=function(a,b){var d=0;b.mn(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new g(c.sc,d/b.Vc.length))};return a}); define("bo","require,fd,ia,lc,fr,fH,gQ,cB,kX,cJ,dR,ko,hL,kd,dB,im,J,iC,kO,bq,kK".split(","),function(a){function b(a,b){for(var c=a-b;c>180;)c=c-360;for(;c<-180;)c=c+360;return c+b}var c=a("fd"),e=a("ia"),d=a("lc"),f=a("fr");a("fH");var g=a("gQ"),k=a("cB"),i=a("kX"),n=a("cJ"),j=a("dR"),l=a("ko"),q=a("hL"),o=a("kd"),t=a("dB"),s=a("im"),u=a("J"),v=a("iC"),w=a("kO"),x=a("bq"),y=a("kK"),F=Math.PI/180,a=c.extend(g,function(a){g.call(this);this.j=a;this.dh.push(this.j);this.Rd=this.Rd.bind(this);this.Uk(["loadingActive", "currentTime","panoramaPixelsPerDegree"]);this.set("tag","Popup");this.set("inVR",z);this.set("enabledInStandard",p);this.set("interactionEnabled",p);this.set("loadingActive",z);this.set("frameEmpty",p);this.set("state",f.K);this.set("itemVisible","none");this.set("visible",z);this.set("visiblePosition",0);this.set("alpha",0);this.set("over",z);this.set("gazeOver",z);this.set("video",r);this.set("image",r);this.zd=this.Ea=this.ia=this.nc=this.Cd=r;this.wa=new l;this.Wn=this.Yq=this.ji=this.sf=this.C= r});a.prototype.Qa=function(){this.Cd=(new q(d.S)).vi(this.cu.bind(this));this.nc=(new q(d.sc)).Ek(this.fu.bind(this));g.prototype.Qa.call(this);this.Bia();this.appendChild(this.zd);e.Rb(this.j,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image.levels.url","video","state","visible"],this.Rd,p)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();e.ac(this.j,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image.levels.url","video","state", "visible"],this.Rd);this.xt();this.Dq();this.s3();g.prototype.Ya.call(this)};a.prototype.Rd=function(){var a=o.Tua(this.j,this.get("panoramaPixelsPerDegree"));this.set("imageURL",a&&a.get("url"));this.set("imageWidth",a&&a.get("width"));this.set("imageHeight",a&&a.get("height"));this.set("video",this.j.get("video"));this.set("state",this.j.get("state"));this.set("visible",this.j.get("visible"));this.set("popupDistance",this.j.get("popupDistance"));this.set("popupMaxWidth",this.j.get("popupMaxWidth")); this.set("popupMaxHeight",this.j.get("popupMaxHeight"));this.set("playbackPositions",this.j.get("playbackPositions"))};a.prototype.J=function(a){this.Ar=a.ja;this.zr=a.pitch;this.mW(a);this.usa();this.MD(a);this.kp(a);this.msa(a);this.Zra(a);g.prototype.J.call(this,a)};a.prototype.usa=function(){if(this.o("playbackPositions","currentTime")){this.wa.qs(this.get("playbackPositions"));this.wa.ps(this.get("currentTime"));this.set("sourceYaw",this.wa.get("yaw"));this.set("sourcePitch",this.wa.get("pitch")); this.set("sourceRotationX",this.wa.get("rotationX"));this.set("sourceRotationY",this.wa.get("rotationY"));this.set("sourceRotationZ",this.wa.get("rotationZ"));this.set("sourceHFOV",this.wa.get("hfov"))}};a.prototype.mW=function(){if(this.o("video","imageURL")){var a=[this.zd];if(this.o("imageURL")){this.BA();this.ia&&a.push(this.ia)}if(this.o("video")){this.EA();this.Ea&&a.push(this.Ea)}this.Cd.xd(a);this.nc.xd(a);this.Qg(a)}};a.prototype.MD=function(){if(this.C){var a=this.C.QL();this.set("frameEmpty", !!a&&a.isEmpty());if(!this.sf||a&&!this.sf.isEqual(a)){this.sf=a;this.Ea.set("source",this.sf.zt);this.Ea.set("sourceUpdated",p);this.Ga()}else this.C.Ie()==f.R&&this.Ga()}else this.set("frameEmpty",z)};a.prototype.kp=function(a){this.set("inVR",a.Ob);this.set("hotspotsEnabled",a.rv);this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.kd);this.set("rendererWidth",a.xL);this.set("rendererHeight",a.gE);this.set("rendererHFOV",a.ad);if(this.o("visible")){var c=this.get("visiblePosition"), e=this.get("visible")?1:0,i=Math.max(1,this.j.get(this.get("visible")?"showDuration":"hideDuration")*Math.abs(e-c)),j=this.j.get(this.get("visible")?"showEasing":"hideEasing");this.ji=new w(j,[new x("position",c,e)],i);this.get("visible")||this.C&&this.C.ic(f.K)}if(this.ji){if(this.ji.Je()){this.ji=r;if(this.get("visible")){this.j.trigger(d.hw);this.j.get("autoplay")&&this.C&&this.C.ic(f.R)}else this.j.trigger(d.Os)}else this.ji.eb(a.vd);if(this.ji){this.set("visiblePosition",this.ji.wb("position")); this.Ga()}}c=z;if(c=a.Ob?this.o("visible"):this.o("rendererYaw","rendererPitch","rendererRoll","rendererWidth","rendererHeight","rendererHFOV","itemVisible","popupMaxWidth","popupMaxHeight","sourceHFOV")){this.set("targetImageScale",this.K4(this.ia,a));this.set("targetVideoScale",this.K4(this.Ea,a));this.set("targetYaw",b(this.get("rendererYaw"),this.get("sourceYaw")));this.set("targetPitch",this.get("rendererPitch"));this.set("targetRotationZ",b(a.Ob?0:this.get("rendererRoll"),this.get("sourceRotationZ")))}if(this.o("visiblePosition", "targetScale","targetYaw","targetPitch","targetRoll","popupDistance","hfov")){var e=this.get("visiblePosition"),g=this.get("targetYaw")*e+this.get("sourceYaw")*(1-e),k=this.get("targetPitch")*e+this.get("sourcePitch")*(1-e),l=this.get("sourceRotationX")*(1-e),n=this.get("sourceRotationY")*(1-e),o=this.get("targetRotationZ")*e+this.get("sourceRotationZ")*(1-e),a=Math.min(1,2*e),q=this.get("popupDistance"),u=this.get("sourceHFOV"),c=this.get("targetImageScale")*e+(1-e),e=this.get("targetVideoScale")* e+(1-e);this.set("alpha",a);this.ia&&this.ia.set("scale",c);this.Ea&&this.Ea.set("scale",e);[].concat(this.Ea?[this.Ea]:[],this.ia?[this.ia]:[]).forEach(function(a){a.set("yaw",g);a.set("pitch",k);a.set("rotationX",l);a.set("rotationY",n);a.set("rotationZ",o);a.set("distance",q);a.set("hfov",u)})}};a.prototype.msa=function(a){if(this.o("frameEmpty","state","imageURL","video")){var b="none";this.Ea&&(!this.ia||!this.get("frameEmpty")&&this.get("state")!=f.K)?b="video":this.ia&&(b="image");this.set("itemVisible", b)}if(this.o("itemVisible")){this.get("itemVisible")!="video"&&this.C&&this.C.ic(f.K);var b=this.ia?this.ia.get("alpha"):0,c=this.Ea?this.Ea.get("alpha"):0,d=this.get("itemVisible")=="image"?1:0,e=this.get("itemVisible")=="video"?1:0,i=this.get("itemVisible")=="video"?1:Math.max(Math.abs(d-b),Math.abs(e-c))*200;this.Yq=new w("linear",[new x("imageAlpha",b,d),new x("videoAlpha",c,e)],i)}if(this.Yq){this.Yq.Je()?this.Yq=r:this.Yq.eb(a.vd);if(this.Yq){this.ia&&this.ia.set("alpha",this.Yq.wb("imageAlpha")); this.Ea&&this.Ea.set("alpha",this.Yq.wb("videoAlpha"));this.Ga()}}};a.prototype.Zra=function(a){if(this.o("gazeOver","inVR")){this.D2();this.get("inVR")&&this.j.get("lookAwayToHide")&&!this.get("gazeOver")&&this.Rqa()}if(a.Ob&&this.j.get("darkenBackground")&&this.j.get("lookAwayToHide")){if(this.o("visible")&&this.get("visible")){this.zd.set("alpha",0.8);this.Wn=r}if(this.o("gazeOver"))this.Wn=new w(this.get("gazeOver")?"linear":"quad_in",[new x("alpha",this.zd.get("alpha"),this.get("gazeOver")?0.8: 0)],this.get("gazeOver")?300:this.j.get("lookAwayToHideTime"))}else{this.Wn=r;this.zd.set("alpha",a.Ob&&this.j.get("darkenBackground")?0.8:0)}if(this.Wn){this.Wn.Je()?this.Wn=r:this.Wn.eb(a.vd);if(this.Wn){this.zd.set("alpha",this.Wn.wb("alpha"));this.Ga()}}};a.prototype.Rqa=function(){this.D2();this.rI=setTimeout(function(){this.rI=r;this.j.set("visible",z)}.bind(this),this.j.get("lookAwayToHideTime"))};a.prototype.D2=function(){if(this.rI){clearTimeout(this.rI);this.rI=r}};a.prototype.K4=function(a, b){if(!a)return 1;var c=this.get("popupMaxWidth","100%"),d=u.Fk(c),e=a.get("contentWidth"),f=a.get("contentHeight"),i=this.get("popupMaxHeight","100%"),j=u.Fk(i),g;if(this.get("inVR")){var k=g=this.get("rendererWidth")*0.5,l=Math.min(b.vf,80),n=s.av(l,g,k),o=this.get("sourceHFOV");g=Math.min(Math.tan(n*(d!==m?d/100:c/g)*0.5*F)/Math.tan(o*0.5*F),Math.tan(l*(j!==m?j/100:i/k)*0.5*F)/Math.tan(s.av(o,e,f)*0.5*F))}else{g=this.get("rendererWidth");k=this.get("rendererHeight");n=Math.min((d!==m?g*d/100:c)/ e,(j!==m?k*j/100:i)/f);e=e*n;n=this.get("rendererHFOV");o=this.get("sourceHFOV");g=Math.tan(n*0.5*F)*e/g/Math.tan(o*0.5*F)}return g};a.prototype.BA=function(){this.xt();if(this.get("imageURL")){this.ia=new n;this.ia.set("url",this.get("imageURL"));this.ia.set("contentWidth",this.get("imageWidth"));this.ia.set("contentHeight",this.get("imageHeight"));this.ia.set("alpha",0)}};a.prototype.xt=function(){if(this.ia){this.ia.remove();this.ia=r}};a.prototype.EA=function(){this.Dq();if(this.get("video")){this.Ea= new i;var a=y.Mg(this.get("video"));this.Ea.set("contentWidth",a.get("width"));this.Ea.set("contentHeight",a.get("height"));this.Ea.set("alpha",0);this.C=new y(this.Sa.qb,this.get("video"));this.ta=new j(this.Sa.qb,this.j,this.C);this.Un()}};a.prototype.Dq=function(){if(this.Ea){this.Wo();this.ta.clear();this.ta=r;this.C.clear();this.sf=this.C=r;this.Ea.remove();this.Ea=r}};a.prototype.Bia=function(){this.s3();this.zd=new k("#000000")};a.prototype.s3=function(){if(this.zd){this.zd.remove();this.zd= r}};a.prototype.cu=function(){this.trigger(d.Db);this.trigger(d.S)};a.prototype.fu=function(a,b){var c=0;b.mn(function(a){var b=0,d;this.Cd.pi(a)?b=100:(d=this.nc.pi(a))&&(b=d.zh);c=c+b}.bind(this));this.trigger(new v(d.sc,c/b.Vc.length))};a.prototype.ih=function(){this.Ga()};a.prototype.fd=function(){this.Ga()};a.prototype.mr=function(){this.j.trigger(d.Da)};a.prototype.Un=function(){this.C.bind(y.Kd,this.fd,this,p);this.C.bind(d.zc,this.ih,this,p);this.C.bind(d.Da,this.mr,this,p)};a.prototype.Wo= function(){this.C.unbind(y.Kd,this.fd,this,p);this.C.unbind(d.zc,this.ih,this,p);this.C.unbind(d.Da,this.mr,this,p)};a.prototype.Aj=function(a){if(a.Zd==d.Ai){if(!a.th()&&this.get("visible")){a.Jp(this.j);this.set("over",this.Ml(a));this.set("gazeOver",this.rra(a))}else this.set("over",z);if(this.get("over")){a.Qr(this.j);a.fs()&&a.Rr(this.j);a.ki(this.get("popupDistance"))}if(this.o("over")){this.j.trigger(this.get("over")?d.tc:d.Ib);a.fs()&&this.j.trigger(this.get("over")?d.Ch:d.zf)}}else if(a.Zd== d.zi&&!a.th()&&this.get("visible")){a.Jp(this.j);a.ki(this.get("popupDistance"));this.Ml(a)?a.Gva()||this.j.trigger(d.T):this.j.set("visible",z)}};a.prototype.Ml=function(a){return this.k$(a.Cl)};a.prototype.rra=function(a){a=a.TA;return!!a&&this.k$([a])};a.prototype.k$=function(a){if(this.get("visible"))for(var a=(this.get("itemVisible")=="video"?this.Ea:this.ia).qo(a),b=0;b 0&&this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard")));this.o("blendingActive")&&this.tP.bya(this.get("blendingActive"))};a.prototype.MD=function(){this.set("frameEmpty",!this.Ea||this.Ea.get("frameEmpty"))};a.prototype.kp=function(a){var b=this.get("itemVisible");if(this.o("frameEmpty","state","image","video","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","enabled","interactionEnabled")){var c= "none";if(this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard"))){this.Ea&&(!this.ia||!this.get("frameEmpty")&&(this.get("state")!=d.K||this.YW&&this.get("videoVisibleOnStop")))?c="video":this.ia&&(c="image");if(this.get("state")!=d.K)this.YW=p}this.set("itemVisible",c);this.set("beamEnabled",c!="none"&&this.get("interactionEnabled"))}if(this.o("itemVisible")){var c=this.get("itemVisible")!="none",f=b!="none", b=c==f?100:c?this.get("fadeInDuration"):this.get("fadeOutDuration");c!=f&&this.j.trigger(c?e.md:e.yd);var f=this.ia?this.ia.get("alpha"):0,i=this.Ea?this.Ea.get("alpha"):0,c=[{Sv:i,image:f}];if(this.get("itemVisible")=="video"){c.push({Sv:1,image:f,time:b*(1-i)});c.push({Sv:1,image:0,time:50*(f-0)})}else if(this.get("itemVisible")=="image"){c.push({Sv:i,image:1,time:b*(1-f)});c.push({Sv:0,image:1,time:50*(i-0)})}else c.push({Sv:0,image:0,time:Math.max(i,f,1/b)*b});this.oo=[];for(b=1;b 0&&this.oo.push(new q("linear",[new o("imageAlpha",c[b-1].image,c[b].image),new o("videoAlpha",c[b-1].Sv,c[b].Sv)],c[b].time))}if(this.oo.length>0){this.oo[0].Je()?this.oo.shift():this.oo[0].eb(a.vd);if(this.oo.length>0){this.ia&&this.ia.set("alpha",this.oo[0].wb("imageAlpha"));this.Ea&&this.Ea.set("alpha",this.oo[0].wb("videoAlpha"));this.Ga()}}};a.prototype.BA=function(){this.xt();if(this.get("image")&&this.get("imageLevel")){this.ia=new this.Ot;this.ia.set("image",this.get("image"));this.ia.set("level", this.get("imageLevel"));this.ia.set("visible",p);this.ia.set("alpha",0)}};a.prototype.xt=function(){if(this.ia){this.ia.remove();this.ia=r}};a.prototype.EA=function(){this.Dq();if(this.get("video")&&this.get("videoLevel")){this.Ea=new this.XW;this.Ea.set("scriptObject",this.j);this.Ea.set("video",this.get("video"));this.Ea.set("level",this.get("videoLevel"));this.Ea.set("visible",p);this.Ea.set("alpha",0)}};a.prototype.Dq=function(){if(this.Ea){this.Ea.remove();this.Ea=r}};a.prototype.cu=function(){this.trigger(e.Db); this.trigger(e.S)};a.prototype.fu=function(a,b){var c=0;b.mn(function(a){(a=b.pi(a))&&(c=c+a.zh)});this.trigger(new l(e.sc,c/b.Vc.length))};a.prototype.RR=function(){return this.get("itemVisible")=="video"?this.Ea:this.ia};return a}); define("ff","require,lc,fr,bT,dt,fH,jp,dR,dU,hM,kK".split(","),function(a){var b=a("lc"),c=a("fr"),e=a("bT"),d=a("dt");a("fH");var f=a("jp"),g=a("dR"),k=a("dU"),i=a("hM"),n=a("kK");return{st:function(){this.set("visible",z);this.set("inView",z);this.set("frameEmpty",p);this.set("blending",0);this.set("chromaColor",m);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("scriptObject",r);this.set("video",r);this.set("level",r);this.set("loop",z);this.$a=this.Ea=r;this.YW=z;this.LK= this.sf=this.cp=this.ta=this.dl=this.C=r},wx:function(){this.Dq()},vy:function(){this.Ksa();this.AD();this.MD()},Ksa:function(){if(this.o("scriptObject","video","level")){this.Dq();this.Ea=this.get("video");this.$a=this.get("level");this.j=this.get("scriptObject");this.EA()}},AD:function(){if(this.o("video","blending","chromaColor","chromaThreshold","chromaSmoothing")&&this.Ea){var a=new e.Jn(this.Ea.sj());a.Tr=this.get("blending");a.jn=this.get("chromaColor");a.jE=this.get("chromaThreshold");a.iE= this.get("chromaSmoothing");this.set("materialConfig",a)}},hi:function(){this.o("visible","composedAlpha","image","state")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0);this.o("composedAlpha","meshGroup","inView")&&d.wd(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0)},MD:function(){var a=this.C&&this.C.QL(),b=!!a&&a.isEmpty();if(b&&!this.get("frameEmpty")&&this.C.Ie()==c.R&&this.j.get("loop")){a=this.sf;b=z}this.set("frameEmpty",b);if(!this.sf||a&&!this.sf.isEqual(a)){this.sf= a;this.LK.ri(this.sf.zt);this.LK.update();this.Ga()}else this.C.Ie()==c.R&&this.Ga()},EA:function(){if(this.Ea&&this.$a&&this.j){this.set("textureSource",this.LK=new k);this.set("contentWidth",this.$a.get("width"));this.set("contentHeight",this.$a.get("height"));this.set("alpha",0);this.C=new n(this.Sa.qb,this.Ea);this.C.ixa();this.dl=new f(this.j,this.C);this.ta=new g(this.Sa.qb,this.j,this.C);this.cp=new i(this.Sa.Qb.get("panorama"),this.C);this.Un();this.trigger(b.Db);this.trigger(b.S)}},Dq:function(){if(this.C){this.set("textureSource", this.LK=r);this.Wo();this.ta.clear();this.ta=r;this.dl.clear();this.dl=r;this.cp.clear();this.cp=r;this.C.clear();this.sf=this.C=r;this.set("frameEmpty",p);this.$a=this.Ea=r}},Un:function(){this.C.bind(n.Kd,this.fd,this,p);this.C.bind(b.zc,this.ih,this,p)},Wo:function(){this.C.unbind(n.Kd,this.fd,this,p);this.C.unbind(b.zc,this.ih,this,p)},ih:function(){this.Ga()},fd:function(){this.Ga()}}}); define("kN",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Rb(this.j,["playbackPositions","distance"],this.mc,p)},hk:function(){b.ac(this.j,["playbackPositions","distance"],this.mc)},mc:function(){this.set("distance",this.j.get("distance"));this.set("playbackPositions",this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions","currentTime")&& (this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("vertices",this.wa.aY()),this.set("alpha",this.wa.wh()));this.o("video","image","vertices","distance")&&this.Oa().forEach(function(a){a.set("vertices",this.get("vertices"));a.set("distance",this.get("distance"))}.bind(this))}}}); define("hJ","require,fd,dQ,ed,cK,fp,ff,kN".split(","),function(a){var b=a("fd"),c=a("dQ"),e=a("ed"),d=a("cK"),f=a("fp"),g=a("ff"),a=a("kN"),k=b.extend(e,d,f,function(){e.call(this);this.set("tag","QuadVideoHotspotImage")}),i=b.extend(e,d,g,function(){e.call(this);this.set("tag","QuadVideoHotspotVideo")});return b.extend(c,a,function(a){c.call(this,a);this.Ot=k;this.XW=i})}); define("ij","require,fd,ia,fr,hE,kr,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("fr"),d=a("hE"),f=a("kr"),g=a("r"),a=b.extend(d,function(a){d.call(this);this.j=a;this.fh=this.fh.bind(this);this.gh=this.gh.bind(this);this.Ji()});a.prototype.Qa=function(){d.prototype.Qa.call(this);this.j.set("state",this.j.get("startState"));c.Rb(this.j,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.fh,p);c.Rb(this.j,["state"],this.gh, p)};a.prototype.Ya=function(){c.ac(this.j,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.fh);c.ac(this.j,["state"],this.gh);this.j.set("state",e.K);d.prototype.Ya.call(this)};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.EJ=this.j.get("state");this.Ga()};a.prototype.Ji=function(){d.prototype.Ji.call(this);var a,b;if(g.se()){this.Ct=this.Dm=4;this.mu=2400;this.Dt=1200;a=1.5;b=1.6}else{this.Dm= 2;this.Ct=4;this.mu=4800;this.Dt=2400;b=a=1}var c=this.j.get("intensity",0.5);this.Pb=f.SE(this.j.get("color","#ffffff"));this.YT=this.j.get("opacity",0.25)*0.24+0.01;this.pr=(c*(0.37-0.17)+0.17)*a;a=(this.j.get("speed",0.5)*(0.09-0.02)+0.02)/this.pr*b;this.LB=a*0.9;this.Yt=a*1.1;this.mu=Math.round(this.j.get("particleCount",this.mu)*c);this.Dt=Math.round(this.j.get("farPlaneParticleCount",this.Dt)*c);this.wI=0;this.kl=2;this.Em=-2;this.jT=0;this.dA=0.75;this.LA=0.5;this.ZH=this.j.get("initialState"); this.yK=this.j.get("startDuration");this.DK=this.j.get("stopDuration");this.Dm=this.j.get("maxDistance",this.Dm);this.Ct=this.j.get("farPlaneDistance",this.Ct);this.bsa()};a.prototype.$G=function(){var a=new THREE.MeshBasicMaterial;a.color=new THREE.Color(this.Pb[0]/255,this.Pb[1]/255,this.Pb[2]/255);a.side=THREE.DoubleSide;a.transparent=p;a.depthTest=z;a.needsUpdate=p;if(!this.BH)this.BH=new THREE.BoxGeometry(0.01,0.2,0.01);return new THREE.Mesh(this.BH,a)};a.prototype.bsa=function(){var a=this.le&& this.le.children||[],b=new THREE.Color(this.Pb[0]/255,this.Pb[1]/255,this.Pb[2]/255);a.forEach(function(a){a.material.color=b;a.material.needsUpdate=p})};return a}); define("eT","require,fd,gc,lc,bY,gQ".split(","),function(a){var b=a("fd"),c=a("gc"),e=a("lc"),d=a("bY"),f=a("gQ"),g=b.extend(f,function(a,b,d,e){f.call(this);this.qb=a;this.F=b;this.Qb=d;this.g=e;this.RB=new c;this.nV(this);this.set("tag","Root")});g.prototype.Uf=function(a){return this.RB.get(a)};g.prototype.all=function(){for(var a=[],b=[this];b.length>0;){var c=b.pop();a.push(c);for(var d=c.vc.length-1;d>=0;d--)b.push(c.vc[d])}return a};g.prototype.update=function(a){var b=this.all(),c=b.length, d;for(d=0;dthis.gP;)this.at-=this.gP;this.Tha(this.at/this.gP);this.sx="changing";return p}; a.prototype.A3=function(a){this.ah(this.w3+this.nk,0,this.hp,this.rK,0,2*Math.PI);this.ah(this.w3,0,this.hp,a,0,2*Math.PI)};a.prototype.Dja=function(a){this.ah(this.MG-0.5*(this.Gh+this.nk),this.Gh+this.nk,this.rK,this.hp,0,2*Math.PI);this.ah(this.MG-0.5*this.Gh,this.Gh,this.Yha,this.hp,0,2*Math.PI);this.ah(this.MG-0.5*this.Gh,this.Gh,this.Zha,this.hp,0.5*Math.PI,(0.5+2*a)*Math.PI)};a.prototype.yja=function(a,c){this.ah(this.x2-0.5*(this.Gh+this.nk),this.Gh+this.nk,this.rK,this.hp,0,2*Math.PI);this.ah(this.x2- 0.5*this.Gh,this.Gh,this.Wha,this.hp,0,2*Math.PI);a=(0.5+2*a)*Math.PI;for(c=(0.5+2*c)*Math.PI;ca?(c=a/0.25,a=0.5*c):0.5>a?(c=(a-0.25)/0.25,a=0.5+c,c=1+0.5*c):0.75>a?(c=(a-0.5)/0.25,a=0.5+0.5*c,c=0.5+c):(a=c=(a-0.75)/0.25,c=0.5+0.5*c);this.yja(a,c)};a.prototype.aoa=function(a){this.NG();this.Dja(a)};return a}); define("jm","require,fd,dt,hf,eA,dU".split(","),function(a){var b=a("fd"),c=a("dt"),e=a("hf"),d=a("eA"),f=a("dU"),a=b.extend(e,function(){e.call(this);this.u=r;this.set("tag","Reticle");this.set("changing",z);this.set("over",z);this.set("overProgress",m);this.set("visible",p);this.set("attachToCamera",p)});a.prototype.J=function(a){this.lg(a);this.Tf(a);e.prototype.J.call(this,a)};a.prototype.lg=function(a){if(!this.u){this.set("textureSource",new f);this.u=new d(this.Sa.F);this.get("textureSource").ri(this.u.og()); this.set("contentWidth",this.u.$c());this.set("contentHeight",this.u.Nd());this.set("hfov",6);this.set("distance",this.Sa.F.get("vrPointerDistance"))}this.o("changing")&&this.u.KM(this.get("changing"));this.o("over","overProgress")&&this.u.Wxa(this.get("over"),this.get("overProgress"));this.u.update(a.vd)&&this.get("textureSource").update();this.get("changing")&&this.Ga()};a.prototype.Tf=function(){this.uk()};a.prototype.hi=function(){this.o("composedAlpha","meshGroup","visible")&&this.hq()};a.prototype.hq= function(){c.wd(this.get("meshGroup"),this.get("visible")?this.get("composedAlpha"):0)};return a}); define("Y","require,jquery.mod,dm,lc,r,ls,dH".split(","),function(a){function b(a){this.pa=a;this.s$=this.pa.Yj;this.pa.bind(d.Lc,this.$i,this);this.I=c("");this.I.css({position:"absolute","z-index":g.C0,"text-align":"center",display:"none"});f.Wa()||this.I.css({"pointer-events":"none"});this.zd=c("");this.zd.css({position:"absolute",left:0,top:0,right:0,bottom:0});this.I.append(this.zd);this.KK=c("");this.KK.css({position:"relative"});this.I.append(this.KK); this.kg=this.$H=this.Cf=r;this.M7=this.L7=m;this.Wq=z;this.t$=m}var c=a("jquery.mod"),e=a("dm"),d=a("lc"),f=a("r"),g=a("ls"),k=a("dH"),i={toolTip:m,toolTipBackgroundColor:"#F6F6F6",toolTipBackgroundOpacity:1,toolTipBorderColor:"#767676",toolTipBorderRadius:3,toolTipBorderSize:1,toolTipFontFamily:"Segoe UI",toolTipFontSize:12,toolTipFontColor:"#606060",toolTipFontWeight:"normal",toolTipFontStyle:"normal",toolTipHorizontalAlign:"center",toolTipOpacity:1,toolTipPaddingBottom:2,toolTipPaddingLeft:4,toolTipPaddingTop:2, toolTipPaddingRight:4,toolTipShadowBlurRadius:3,toolTipShadowColor:"#333333",toolTipShadowHorizontalLength:3,toolTipShadowOpacity:1,toolTipShadowSpread:0,toolTipShadowVerticalLength:3,toolTipTextShadowBlurRadius:3,toolTipTextShadowColor:"#000000",toolTipTextShadowHorizontalLength:0,toolTipTextShadowOpacity:0,toolTipTextShadowVerticalLength:0,toolTipDisplayTime:600};b.prototype.Cb=R("I");b.prototype.Hv=function(a){if(!this.s$){for(;a&&a.get("toolTipDisabled");)a=a.getParent();this.hide();this.Cf&& e(e(i).keys()).each(function(a){this.Cf.unbind(d.D(a),this.FT,this)},this);if(this.Cf=a){e(e(i).keys()).each(function(a){this.Cf.bind(d.D(a),this.FT,this)},this);this.FT()}}};b.prototype.wya=function(a,b){this.Cf=a;this.t$=b;this.dI()||(this.Wq?this.I9():this.jD())};b.prototype.G9=function(a,b,c,e,f){this.Wq&&this.Cf.trigger(d.DO);this.Yra(a);this.KK.html(this.pla(b));var b=this.I.outerWidth(),i=this.I.outerHeight();if(f){c=c-this.I.width()*0.5;e=e-this.I.height()*0.5}c=Math.max(Math.min(c,this.pa.Ba()- b-3),3);e=Math.max(Math.min(e,this.pa.hb()-i-3),3);this.I.css("left",c+"px");this.I.css("top",e+"px");this.I.css("display","inline");this.Cf.trigger(d.B0);this.Wq=p;(f||a.get("checkToolTipOcclusion"))&&this.Kqa(a,c,e)};b.prototype.hide=function(){this.nt();this.X9();if(this.Wq){this.I.css("display","none");this.Cf.trigger(d.DO);this.Wq=z}};b.prototype.FT=function(){this.Cf.get("toolTip")?this.dI()||(this.Wq?this.H9():this.jD()):this.dI()?this.nt():this.Wq&&this.hide()};b.prototype.$i=function(a){this.L7= a.pageX;this.M7=a.pageY};b.prototype.H9=function(){var a=this.L7,b=this.M7+25;this.G9(this.Cf,this.Cf.get("toolTip"),a,b,z)};b.prototype.I9=function(){var a=this.Cf.Cb().offset();this.G9(this.Cf,this.t$,a.left+this.Cf.Ba()*0.5,a.top+this.Cf.hb()*0.5,p)};b.prototype.dI=function(){return this.kg!=r};b.prototype.jD=function(){var a=this.Cf&&this.Cf.get("toolTipDisplayTime");if(a===m||a===r)a=i.toolTipDisplayTime;this.nt();this.kg=setTimeout(function(){this.kg=r;this.s$?this.I9():this.H9()}.bind(this), a)};b.prototype.nt=function(){if(this.dI()){clearTimeout(this.kg);this.kg=r}};b.prototype.Kqa=function(a,b,c){this.X9();var d=function(){this.I.css("display",this.Wq&&!this.ima(a,b,c)?"inline":"none")}.bind(this);this.$H=setInterval(d,300);d()};b.prototype.X9=function(){if(this.$H){clearInterval(this.$H);this.$H=r}};b.prototype.Yra=function(a){function b(c){var d=a.get(c);return d===m?i[c]:d}var c={};c.opacity=b("toolTipOpacity");c.filter=c["-ms-filter"]="alpha(opacity="+Math.round(b("toolTipOpacity")* 100)+")";c.paddingTop=b("toolTipPaddingTop")+"px";c.paddingBottom=b("toolTipPaddingBottom")+"px";c.paddingLeft=b("toolTipPaddingLeft")+"px";c.paddingRight=b("toolTipPaddingRight")+"px";c["text-align"]=b("toolTipHorizontalAlign");this.I.css(c);c={};c.opacity=b("toolTipBackgroundOpacity");c.filter=c["-ms-filter"]="alpha(opacity="+Math.round(b("toolTipBackgroundOpacity")*100)+")";c["background-color"]=b("toolTipBackgroundColor");c.border=[b("toolTipBorderSize")+"px","solid",b("toolTipBorderColor")].join(" "); var d=b("toolTipShadowColor");c["-moz-box-shadow"]=c["-webkit-box-shadow"]=c["box-shadow"]=[b("toolTipShadowHorizontalLength")+"px",b("toolTipShadowVerticalLength")+"px",b("toolTipShadowBlurRadius")+"px",b("toolTipShadowSpread")+"px","rgba("+parseInt("0x"+d.substr(1,2))+", "+parseInt("0x"+d.substr(3,2))+", "+parseInt("0x"+d.substr(5,2))+", "+b("toolTipShadowOpacity")+")"].join(" ");c["-moz-border-radius"]=c["-webkit-border-radius"]=c.borderRadius=b("toolTipBorderRadius")+"px";this.zd.css(c);c={}; c["font-family"]=k.Zr(b("toolTipFontFamily"));d=b("toolTipFontSize");e(d).isNumber()?d=d+"px":e(d).isString()||(d="");c["font-size"]=d;c["font-weight"]=b("toolTipFontWeight");c["font-style"]=b("toolTipFontStyle");c.color=b("toolTipFontColor");d=b("toolTipTextShadowColor");c["-moz-text-shadow"]=c["-webkit-text-shadow"]=c["text-shadow"]=[b("toolTipTextShadowHorizontalLength")+"px",b("toolTipTextShadowVerticalLength")+"px",b("toolTipTextShadowBlurRadius")+"px","rgba("+parseInt("0x"+d.substr(1,2))+", "+ parseInt("0x"+d.substr(3,2))+", "+parseInt("0x"+d.substr(5,2))+", "+b("toolTipTextShadowOpacity")+")"].join(" ");var f=b("toolTipTextShadowVerticalLength")==0&&b("toolTipTextShadowHorizontalLength")==0?135:Math.round(4*Math.atan2("toolTipTextShadowHorizontalLength",-b("toolTipTextShadowVerticalLength"))/Math.PI)*45;c.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a}(255*b("toolTipTextShadowOpacity"))+d.substr(1,6)+",direction="+ f+")";this.KK.css(c)};b.prototype.ima=function(a,b,c){for(var b=document.elementsFromPoint(b,c),a=a.Cb()[0],c=this.pa.Cb()[0],d=0;d0.29)return p}}return z};b.prototype.qia=function(a){if(!a)return 0;var a=a.toLowerCase(),b=a.match(/rgba\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*,\s*(\d*\.?\d*)\s*\)/); return b?parseFloat(b[1]):a.match(/transparent/)?0:1};b.prototype.pla=function(a){for(var a=(a||"").split("\n"),b=0;b"+a+"
"})};b.prototype.Kja=function(a){b.q1.nodeValue=a;return b.m1.innerHTML};b.Lea=i;b.m1=document.createElement("pre");b.q1=document.createTextNode("");b.m1.appendChild(b.q1);b.Kza=600;return b}); define("ck",["require","Y","bz","dH"],function(a){function b(a,b){this.F=a;this.fi=b;this.Bqa()}var c=a("Y"),e=a("bz"),d=a("dH");b.prototype.og=R("u");b.prototype.$c=function(){return this.u.width};b.prototype.Nd=function(){return this.u.height};b.prototype.Bqa=function(){this.u=document.createElement("canvas");var a=this.u.getContext("2d"),b=this.fi.split("\n"),c=this.Ae("toolTipBackgroundColor"),i=this.Ae("toolTipBackgroundOpacity"),n=this.Ae("toolTipBorderRadius"),j=this.Ae("toolTipBorderColor"), l=this.Ae("toolTipBorderSize");this.Ae("toolTipDisplayTime");var q=this.Ae("toolTipFontFamily"),o=this.Ae("toolTipFontSize"),t=this.Ae("toolTipFontColor"),s=this.Ae("toolTipFontWeight"),u=this.Ae("toolTipFontStyle"),v=this.Ae("toolTipPaddingBottom"),w=this.Ae("toolTipPaddingLeft"),x=this.Ae("toolTipPaddingTop"),y=this.Ae("toolTipPaddingRight"),F=this.Ae("toolTipOpacity"),A=this.Ae("toolTipTextShadowBlurRadius"),M=this.Ae("toolTipTextShadowColor"),E=this.Ae("toolTipTextShadowHorizontalLength"),J=this.Ae("toolTipTextShadowVerticalLength"), B=this.Ae("toolTipTextShadowOpacity"),G=new e.w0;G.fontFamily=q;G.fontSize=o+(isNaN(o)?"":"px");G.fontWeight=s;G.fontStyle=u;var H=b.map(function(b){return e(b,G,a)}),I=0,N=0;H.forEach(function(a){I=Math.max(a.width,I);N+=a.height});var O=1a))this.fH=a};b.prototype.tL=function(a,b){if(""==this.xa||this.Ir>b)this.xa=a,this.Ir=b};b.prototype.pF=R("xa");b.prototype.Jp=function(a){this.r2=c(a)};b.prototype.th= function(){return 0=this.X8){this.LV();this.Fw()}else this.Fb.set("overProgress",a/this.X8)};return a}); define("iA","require,fd,lc,jm,kY,dY,kE,bi".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("jm"),d=a("kY"),f=a("dY"),g=a("kE"),k=a("bi"),a=b.extend(g,function(a){g.call(this,g.FO,a);this.Ee=this.m=r;this.Fb=new e;this.g.add(this.Fb);this.Ve="";this.xa=r;this.PK=this.PK.bind(this);document.body.addEventListener("touchend",this.PK);k.bind(c.Ci,this.xaa,this,p)});a.prototype.clear=function(){document.body.removeEventListener("touchend",this.PK);k.unbind(c.Ci,this.xaa,this,p);this.g.remove(this.Fb); this.Fb=r;this.xa&&this.g.remove(this.xa);this.xa=r};a.prototype.update=function(a){this.m=a;this.Fb.set("changing",a.yL);this.mg()};a.prototype.PK=function(){this.Fw()};a.prototype.xaa=function(){this.Fw()};a.prototype.Fw=function(){this.Qf(this.Ff(c.zi));this.Fb.set("over",z)};a.prototype.mg=function(){var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF());this.Fb.set("over",a.zz())};a.prototype.Il=function(a){if(this.Ve!=a){this.Ve&&this.g.remove(this.xa);if(this.Ve=a){this.xa=new d(this.Ve);this.xa.set("text", this.Ve);this.g.add(this.xa)}}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){this.Ee=this.ER();return new f(this,this.Ee?[this.Ee]:[],this.Ee,a)};return a}); define("ie","require,fd,gS,bT,dt,dU,y,kr".split(","),function(a){var b=a("fd"),c=a("gS"),e=a("bT"),d=a("dt"),f=a("dU"),g=a("y"),k=a("kr"),i=new THREE.Matrix4,n=Math.PI/180,a=b.extend(g,function(){g.call(this);this.set("tag","Laser");this.set("matrix",r);this.set("over",z);this.set("pressed",z);this.set("intersectionDistance",0);this.set("visible",z);this.set("attachToCamera",z);this.set("dotVisible",p);this.AU=this.IC=this.Mm=this.zU=r;new THREE.Matrix4;this.BU=new THREE.Matrix4;this.BU.multiply(i.makeRotationX(-90* n));this.BU.multiply(i.makeTranslation(0,j*0.5,0));this.kH=this.jH=this.iH=this.mo=this.TQ=r;new THREE.Matrix4;this.UQ=new THREE.Matrix4;this.zA=this.hH=this.SQ=r;new THREE.Matrix4;this.rt=[new THREE.Matrix4,new THREE.Matrix4,new THREE.Matrix4];this.rt[0].multiply(i.makeRotationX(-90*n));this.rt[0].multiply(i.makeTranslation(0,-q*0.5,0));this.rt[1].multiply(i.makeRotationX(-90*n));this.rt[1].multiply(i.makeTranslation(0,-q*0.5,-l*0.5));this.rt[2].multiply(i.makeRotationX(-90*n));this.rt[2].multiply(i.makeTranslation(0, -q*0.5,-l))});a.prototype.J=function(a){g.prototype.J.call(this,a);this.LW();this.Nr()};a.prototype.LW=function(){if(this.o("visible"))this.get("meshGroup").visible=this.get("visible");this.o("dotVisible")&&d.wd([this.jH,this.hH],this.get("dotVisible")?1:0)};a.prototype.Nr=function(){if(this.o("over","pressed")){this.S$();this.baa()}};var j=0.35,l=0.012,q=0.1;a.prototype.Mi=function(){this.hH=d.create(new THREE.SphereGeometry(2.3,32,32),this.Fia());this.jH=d.create(new THREE.SphereGeometry(2,32,32), this.Gia());this.AU=d.create(new THREE.CylinderGeometry(0.003,0.003,j,8),this.aja());this.Jw=[];this.Jw.push(d.create(new THREE.CylinderGeometry(l,l,q,32),this.jQ()));this.Jw.push(d.create(new THREE.BoxGeometry(2*l,q,l),this.jQ()));this.Jw.push(d.create(new THREE.CylinderGeometry(l,l,q,32),this.jQ()));return[this.hH,this.jH,this.AU].concat(this.Jw)};a.prototype.Fia=function(){if(this.SQ==r){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.ri(a);this.SQ= e.Xr(c.texture(),new e.Jn);b.fillStyle="rgba(0, 0, 0, 0.75)";b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height)}return[this.SQ]};a.prototype.Gia=function(){if(this.TQ==r){this.mo=document.createElement("canvas");this.mo.width=this.mo.height=256;this.iH=this.mo.getContext("2d");this.kH=new f;this.kH.ri(this.mo);this.TQ=e.Xr(this.kH.texture(),new e.Jn);this.S$()}return[this.TQ]};a.prototype.S$=function(){this.iH.fillStyle=this.wR();this.iH.clearRect(0,0,this.mo.width,this.mo.height); this.iH.fillRect(0,0,this.mo.width,this.mo.height);this.kH.update()};a.prototype.aja=function(){if(this.zU==r){this.Mm=document.createElement("canvas");this.Mm.width=this.Mm.height=256;this.IC=this.Mm.getContext("2d");this.CU=new f;this.CU.ri(this.Mm);this.zU=e.Xr(this.CU.texture(),new e.Jn);this.baa()}return[this.zU]};a.prototype.baa=function(){var a=k.SE(this.wR()).join(", "),b=this.IC.createLinearGradient(0,0,0,this.Mm.height);b.addColorStop(0,"rgba("+a+", 0)");b.addColorStop(0.5,"rgba("+a+", 1)"); b.addColorStop(1,"rgba("+a+", 1)");this.IC.fillStyle=b;this.IC.clearRect(0,0,this.Mm.width,this.Mm.height);this.IC.fillRect(0,0,this.Mm.width,this.Mm.height);this.CU.update()};a.prototype.jQ=function(){if(this.zA==r){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.ri(a);this.zA=e.Xr(c.texture(),new e.Jn);b.fillStyle="rgba(64, 64, 64, 1)";b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height)}return[this.zA,this.zA,this.zA]};a.prototype.Ol= function(){var a=z,b=z,e=z;if(this.o("intersectionDistance")){var b=(b=this.get("intersectionDistance"))?c.kv(b):c.sp(),f=b/c.sp();this.UQ.makeTranslation(0,0,-b);this.UQ.multiply(i.makeScale(f,f,f));b=p}if(this.o("matrix"))e=b=a=p;if(b){i.identity();(b=this.get("matrix"))&&i.multiply(b);i.multiply(this.UQ);d.Vl(this.jH,i);d.Vl(this.hH,i)}if(a){i.identity();(b=this.get("matrix"))&&i.multiply(b);i.multiply(this.BU);d.Vl(this.AU,i)}if(e){b=this.get("matrix");for(a=0;a=0};B.prototype.gj=function(){this.EQ.clear();f.prototype.gj.call(this)};B.prototype.nb=function(){var a=this.Ba(),c=this.hb();if(this.m.width!=a||this.m.height!=c)if(!a||!c)b.log("Invalid size values: "+a+" "+c);else{this.m.width=a;this.m.height=c;this.yH.mF(this.m.width);this.yH.Oda(this.m.height);this.Ma()}};B.prototype.hh=function(){this.m.enabled=p;this.Ma()};B.prototype.eh= function(){this.m.enabled=z;this.Ma()};B.prototype.dk=function(){this.m.Ob=A.isPresenting();this.Ql();this.Ma()};B.prototype.fna=function(){this.Ql();this.Ma()};B.prototype.Mna=function(){this.Ma()};B.prototype.rna=function(){this.Ma()};B.prototype.Nv=function(a){if(this.m.si!=a){this.m.si=a;this.Ma()}};B.prototype.Fa=function(a,c,d,e){if(this.m.ja!=a||this.m.pitch!=c||this.m.kd!=d||this.m.ad!=e)if(isNaN(a)||isNaN(c)||isNaN(d)||!e)b.log("Invalid position values: "+a+" "+c+" "+d+" "+e);else{this.m.ja= a;this.m.pitch=c;this.m.kd=d;this.m.ad=e;this.yH.Jv(this.m.ad*J);this.Ma()}};B.prototype.Ub=function(){return this.m.ja};B.prototype.$b=function(){return this.m.pitch};B.prototype.Od=function(){return this.m.kd};B.prototype.He=function(){return this.m.ad};B.prototype.MX=function(){return this.m.Ob?this.m.vf:F.Gn(this.m.vf,this.m.width,this.m.height)};B.prototype.NX=function(){return this.m.vf};B.prototype.unproject=function(a){return this.yH.unproject(a)};B.prototype.Ma=function(){M.Ma(this.Dg,this)}; B.prototype.Dg=function(){if(M.pY){var a=(new Date).getTime(),b=Math.max(1,Math.min(a-this.x5,33));this.x5=a;this.trigger(new d(B.YN,{frameTime:b}));if(this.m.enabled){this.m.vd=b;this.MU()}}else this.Ma()};B.prototype.MU=function(){this.hj.update(this.m);this.m.xL=this.hj.sua();this.m.gE=this.hj.rua();this.m.vf=this.hj.pua();this.m.Pg=this.hj.getPixelRatio();this.Sa.update(this.m);this.l$.update(this.m);this.b6.update(this.m);this.ai.update(this.m);this.hj.render()};B.YN="render start";B.gea=S(p); return B});define("dr",["require"],function(){function a(){}a.prototype.clear=C();a.iAa=function(b){return a.create(b,C())};a.create=function(b,c){c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.id=b;c.not="!"+b;return c};a.bv=function(b,c){var e=a.create(b,c);e.BY=p;return e};return a}); define("el",["require","dr"],function(a){var a=a("dr"),b={};b.Geometry=a.create("GeometryComponent",function(){this.geometry=r});b.Zp=a.create("MaterialComponent",function(){this.material=r});b.Mesh=a.create("MeshComponent",function(){this.Dk=r});b.mm=a.bv("MeshSystemStateComponent",function(){this.Dk=r});b.OrthographicCamera=a.create("OrthographicCameraComponent",C());b.fw=a.bv("OrthographicCameraSystemStateComponent",function(){this.Ic=r});b.Bi=a.create("ParentComponent",function(){this.FL=r}); b.Sk=a.bv("ParentSystemStateComponent",function(){this.Sc=this.parent=r});b.jw=a.create("TransformComponent",function(){this.uda=this.tda=this.sda=this.SY=this.dda=this.cda=0;this.yda=this.xda=this.wda=1});b.Af=a.create("RendererComponent",function(){this.canvas=r;this.antialias=p;this.height=this.width=100;this.vL=this.eZ=this.Ze=r});b.$p=a.bv("RendererSystemStateComponent",function(){this.height=this.width=m;this.Ic=this.vj=this.Ze=r});b.Scene=a.create("SceneComponent",function(){this.vj=r});b.iw= a.bv("SceneSystemStateComponent",function(){this.vj=r});b.Texture=a.create("TextureComponent",function(){this.texture=r});b.aq=a.create("VideoMaterialComponent",function(){this.bba=this.yea=this.Dp=r});b.bq=a.bv("VideoMaterialSystemStateComponent",function(){this.uM=r});b.Xg=a.create("ViewportComponent",function(){this.height=this.width=this.Bv=r});b.cq=a.create("ViewportPlaneGeometryComponent",function(){this.Dp=this.Bv=r});b.Qn=a.bv("ViewportPlaneGeometrySystemStateComponent",function(){this.geometry= r;this.zIndex=this.vda=this.verticalAlign=this.ica=this.dea=this.eea=m});return b}); define("iZ",["require"],function(){function a(b,c){this.Rp=b;this.Hya=c||"Entity";this.id=this.Hya+"_"+a.gwa++;this.vk={};this.WE={};this.HZ=0}a.prototype.hc=function(a){return this.vk[a.id]};a.prototype.$l=function(a){var c=this.vk[a.id];c&&this.Rp.Bta(this,a);return c};a.prototype.Ye=function(a){if(a.id in this.vk)return this.vk[a.id];a.BY&&this.HZ++;var c=this.vk[a.id]=new a;this.Rp.gta(this,a);return c};a.prototype.dm=function(a){a.id in this.vk&&(a.BY&&this.HZ--,this.WE[a.id]=this.vk[a.id],delete this.vk[a.id], this.Rp.lda(this,a,m))};a.prototype.Eta=function(){for(var a in this.WE)this.WE[a].clear(),delete this.WE[a]};a.prototype.Kwa=function(){for(var a in this.vk){var c=this.vk[a].constructor;c.BY||(this.WE[a]=this.vk[a],delete this.vk[a],this.Rp.lda(this,c,z))}};a.gwa=0;return a});define("bG",["require"],function(){function a(){this.id=a.rT++;this.entities=[]}a.rT=0;return a}); define("ii",["require"],function(){function a(b,c){this.id=a.rT++;this.name=c;this.entities=b.entities;this.Sr=b.entities.slice();this.li=[];this.GM=[]}a.prototype.Cta=function(){!this.Sr.length||(this.Sr=[]);!this.li.length||(this.li=[]);!this.GM.length||(this.GM=[])};a.rT=0;return a}); define("bd",["require","bG","ii"],function(a){function b(){this.pva={};this.Hb={};this.zv={};this.Ny={};this.pp={};this.yv={};this.lE={};this.xv={}}function c(a){return"string"==typeof a?a:a.id}var e=a("bG"),d=a("ii");b.prototype.Ke=function(a){this.lE[a.id]={};this.lE[a.not]={}};b.prototype.Ota=function(a,b){var c=this.hla(a),e=new d(c,b);this.zv[c.id].push(e);return e};b.prototype.hla=function(a){var b=this.pva[this.ila(a)];if(b)return b;b=new e;this.Hb[b.id]=b;a=a.map(c);this.xv[b.id]={};for(var d= 0;do.li.indexOf(a)&&o.li.push(a)}};return b}); define("iu",["require","V","iZ","bd"],function(a){function b(a){this.qb=a;this.gR={};this.JA=[];this.sia={};this.nD=[];this.wu=new d;this.pH=[];this.sr=z}var c=a("V"),e=a("iZ"),d=a("bd");b.prototype.Ke=function(a){this.sia[a.id]=a;this.wu.Ke(a);return this};b.prototype.nz=function(a,b){var c=new a(this,b);c.order=this.nD.length;this.nD.push(c);for(var d in a.Hb)c[d]=this.wu.Ota(a.Hb[d],b+"."+d);this.nD.sort(function(a,b){return a.Qd-b.Qd||a.order-b.order});return this};b.prototype.Ky=function(a){a= new e(this,a);this.gR[a.id]=a;this.wu.lwa(a);this.Dv();return a};b.prototype.DX=function(a){a.id in this.gR&&(delete this.gR[a.id],this.JA.push(a),a.Kwa(),this.Dv())};b.prototype.gta=function(a,b){this.wu.iwa(a,b);this.Dv()};b.prototype.lda=function(a,b,c){this.wu.kwa(a,b);c||this.pH.push(a);this.Dv()};b.prototype.Bta=function(a,b){this.wu.jwa(a,b);this.Dv()};b.prototype.Dv=function(){this.sr||(this.sr=p,c.Ma(this.update,this))};b.prototype.update=function(){this.sr=z;var a=(new Date).getTime(),b= this.y5?a-this.y5:0;this.y5=a;for(var c=0;cs*f){u=o;c=t*o/s}else{c=f;u=s*f/t}break;default:if(t*o>s*f){c=f;u=s*f/t}else{u=o;c=t*o/s}}switch(b.ica){case g.oa:f=-f*0.5;break;case g.Ka:f=f*0.5-c;break;default:f=-c*0.5}switch(b.verticalAlign){case g.kb:o=o*0.5-u;break;case g.jb:o=-o*0.5;break;default:o=-u*0.5}t=b.zIndex-i.jfa;d.set(b.geometry,f,o,0,0,0,c,0,0,1,0,u,0,1,0);(a.$l(e.jw)|| a.Ye(e.jw)).SY=t;a.Rp.Dv()};i.jfa=100;i.Hb={};i.Hb.$ca=[e.cq,e.Qn.not];i.Hb.Zca=[e.cq,e.Qn,e.Xg];i.Hb.ada=[e.cq.not,e.Qn];return i});define("gA","require,ee,jF,iG,dy,is,eh".split(","),function(a){var b=a("ee"),c=a("jF"),e=a("iG"),d=a("dy"),f=a("is"),a=a("eh"),g={};g.Mesh=b;g.Bi=c;g.Af=e;g.aq=d;g.Xg=f;g.cq=a;return g}); define("eM","require,fd,d,iu,el,gA".split(","),function(a){var b=a("fd"),c=a("d"),e=a("iu"),d=a("el"),f=a("gA"),a=b.extend(c,function(a){c.call(this);this.YD=(new e(a)).Ke(d.Geometry).Ke(d.Zp).Ke(d.Mesh).Ke(d.mm).Ke(d.OrthographicCamera).Ke(d.fw).Ke(d.Bi).Ke(d.Sk).Ke(d.jw).Ke(d.Af).Ke(d.$p).Ke(d.Scene).Ke(d.iw).Ke(d.Texture).Ke(d.aq).Ke(d.bq).Ke(d.Xg).Ke(d.cq).Ke(d.Qn).nz(f.Xg,"Viewport").nz(f.Bi,"Parent").nz(f.aq,"VideoMaterial").nz(f.cq,"ViewportPlaneGeometry").nz(f.Mesh,"Mesh").nz(f.Af,"Renderer"); this.mk=this.YD.Ky("Scene");this.mk.Ye(d.Scene);this.sb=this.YD.Ky("Camera");this.sb.Ye(d.OrthographicCamera);this.sb.Ye(d.Bi).FL=this.mk;this.g=this.YD.Ky("Renderer");this.bind(EventName.yb,this.nb,this,p);this.bind(EventName.md,this.hh,this,p);this.bind(EventName.yd,this.eh,this,p)});a.prototype.Ky=function(a){return this.YD.Ky(a)};a.prototype.DX=function(a){this.YD.DX(a)};a.prototype.as=R("sb");a.prototype.js=function(a){if(this.sb!=a){this.sb=a;if(a=this.g.$l(d.Af))a.vL=this.sb}};a.prototype.nb= function(){var a=this.g.$l(d.Af);if(a){a.width=this.Gd();a.height=this.Fd()}};a.prototype.hh=function(){this.Eqa()};a.prototype.eh=function(){this.pra()};a.prototype.Eqa=function(){var a=this.g.hc(d.Af);if(!a){a=this.g.Ye(d.Af);a.canvas=document.createElement("canvas");this.Pa().pX(a.canvas);a.vL=this.sb;a.eZ=this.mk;a.antialias=p;a.width=this.Gd();a.height=this.Fd()}};a.prototype.pra=function(){var a=this.g.hc(d.Af);if(a){this.Pa().Nwa(a.canvas);this.g.dm(d.Af)}};return a}); define("ba",["require","fd","cQ"],function(a){var b=a("fd"),c=a("cQ"),a=b.extend(c,function(a,b){c.call(this,a);this.C=b;this.C.bind(EventName.D("video"),this.LT,this);this.LT()});a.prototype.clear=function(){this.C&&(this.C.unbind(EventName.D("video"),this.LT,this),this.C=r);c.prototype.clear.call(this)};a.prototype.LT=function(){this.CZ(this.C.get("video"))};return a}); define("dW","require,fd,lc,R,d,db,ba".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("R"),d=a("d"),f=a("db"),g=a("ba"),a=b.extend(d,function(a,b,n){d.call(this);this.qb=a;this.F=b;this.C=n;this.set("toolTipDisabled",p);this.set("cursor",e.$v);this.bind(c.yb,this.nb,this,p);this.oy=new g(b,n);this.Nx=new f.h0;this.Nx.qZ(f.h0.eO);this.Nx.$e(this.AJ=z);[this.oy.Cb(),this.Nx.Cb()].forEach(function(a,b){this.Pa().append(a);a.css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden", "z-index":b})}.bind(this))});a.prototype.wZ=function(a,b){if(this.AJ!=a){this.AJ=a;this.Nx.Eda(b);this.Nx.$e(a)}};a.prototype.nb=function(){this.sK=p;this.Nx.setSize(this.Ba(),this.hb())};return a}); define("ji","require,fd,R,c,kJ,el,eM,dW".split(","),function(a){var b=a("fd"),c=a("R"),e=a("c"),d=a("kJ"),f=a("el"),g=a("eM"),k=a("dW"),a=b.extend(d,function(a,b,f){d.call(this);this.qb=a;this.F=b;this.C=f;this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",c.$v);this.set("layout",e.fN);this.bb=this.cn=r;this.jL=[];this.VD=[];this.GD()});a.prototype.Ia=function(){d.prototype.Ia.call(this);if(this.cn==r){this.cn=new g(this.qb);this.cn.N({left:0,top:0,right:0,bottom:0});this.ma(this.cn); this.jL.forEach(function(a){this.c3(a)}.bind(this))}if(this.bb==r){this.bb=new k(this.qb,this.F,this.C);this.bb.N({left:0,top:0,right:0,bottom:0});this.ma(this.bb);this.GD()}};a.prototype.mta=function(a){this.jL.push(a);this.cn&&this.c3(a)};a.prototype.c3=function(a){var b=this.cn.Ky("Video");b.Ye(f.Bi).FL=this.cn.mk;b.Ye(f.Mesh).Dp=a;var c=b.Ye(f.cq);c.Dp=a;c.Bv=this.cn.g;c=b.Ye(f.aq);c.Dp=a;c.yea=a.get("video");c.bba=a;this.VD.push(b);this.GD()};a.prototype.mda=function(a){a=this.jL.indexOf(a); if(!(a<0)){this.jL.splice(a,1);this.cn&&this.pja(this.VD[a])}};a.prototype.pja=function(a){var b=this.VD.indexOf(a);if(!(b<0)){this.VD.splice(b,1);this.cn.DX(a);this.GD()}};a.prototype.wZ=function(a){this.AJ=a;this.GD()};a.prototype.GD=function(){this.bb&&this.bb.wZ(this.AJ&&this.VD.length>0)};return a}); define("bl","require,dm,fd,lc,fr,bY,dT,jK,eQ,cq,dN,ji,dk,cj,fj,kJ".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("fr"),f=a("bY"),g=a("dT"),k=a("jK"),i=a("eQ"),n=a("cq"),j=a("dN"),l=a("ji"),q=a("dk"),o=a("cj"),t=a("fj"),s=a("kJ"),u=c.extend(s,function(){s.call(this);this.set("childrenInteractionEnabled",p);this.set("contentOpaque",p);this.set("creationPolicy",o.Ps);this.set("vrPointerColor","#ffffff");this.set("vrPointerOverColor","#007acc");this.set("vrPointerSelectionColor","#ff6600"); this.set("vrPointerDistance",2);this.set("vrPointerSelectionTime",1200);this.set("surfaceReticleColor","#ffffff");this.set("surfaceReticleSelectionColor","#ffffff");this.set("surfaceReticleOpacity",0.6);this.set("surfaceReticleSelectionOpacity",1);this.set("displayTooltipInSurfaceSelection",p);this.set("doubleClickAction","toggle_fullscreen");this.set("subtitlesEnabled",p);this.set("checkToolTipOcclusion",p);this.ym=this.Ac=this.rH=this.Te=r;this.fU=this.Lm=z;this.Pf=d.K;this.Gi=this.Yg=r;this.Xj= z;this.bind(u.l0,this.zna,this,p);this.bind(u.k0,this.yna,this,p);this.bind(e.xb,this.f7,this);this.bind(e.xb,this.f7,this);this.bind(e.tc,this.Sna,this);this.bind(e.Ib,this.Rna,this);this.bind(e.md,this.dJ,this,p);this.bind(e.yd,this.Qna,this,p);this.uX=new k(this,"buttonPause",q.Eh);this.uX.bind(e.T,this.Dx,this);this.uX.set("state",t.cd);this.wX=new k(this,"buttonPlay",q.Eh);this.wX.bind(e.T,this.Ex,this);this.wX.set("state",t.cd);this.vX=new k(this,"buttonPlayPause",q.Eh);this.vX.bind(e.T,this.vna, this);this.vX.set("state",t.cd);this.xX=new k(this,"buttonStop",q.Eh);this.xX.bind(e.T,this.ku,this);this.xX.set("state",t.za);this.pta=new k(this,"buttonRestart",q.Tc);this.pta.bind(e.T,this.ju,this);this.uL=new k(this,"buttonToggleSubtitles",q.Eh);this.uL.bind(e.rg,function(){this.set("subtitlesEnabled",p)},this,p);this.uL.bind(e.Dh,function(){this.set("subtitlesEnabled",z)},this,p);this.bind(e.D("subtitlesEnabled"),function(){this.uL.set("pressed",this.get("subtitlesEnabled"))},this);this.uL.set("pressed", this.get("subtitlesEnabled"));this.ema=c.Bn(this.Lsa,this);this.bind(e.RF,this.Pna,this,p)});g.A("ViewerArea",u).B("UIComponent").L({buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonToggleSubtitles:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",cardboardPointerColor:"color",cardboardPointerSelectionTime:"number",cardboardPointerSelectionColor:"color",cardboardPointerDistance:"number",externalPlaybackBar:"PlaybackBar",vrPointerColor:"color",vrPointerOverColor:"color",vrPointerSelectionTime:"number",vrPointerSelectionColor:"color",vrPointerDistance:"number",transitionMode:"enum[blending, fade_out_fade_in]",transitionDuration:"number",blendingTransitionDuration:"number", disolveTransitionDuration:"number",displayTooltipInSurfaceSelection:"bool",displayTooltipInTouchScreens:"bool",doubleClickAction:"enum[toggle_fullscreen, none]",firstTransitionDuration:"number",translationTransitionDuration:"number",translationTransitionEnabled:"bool",progressBackgroundColor:"or[array[color], color]",progressBackgroundColorDirection:"enum[horizontal, vertical]",progressBackgroundColorRatios:"array[number]",progressBackgroundOpacity:"number",progressBarBackgroundColor:"or[array[color], color]", progressBarBackgroundColorDirection:"enum[horizontal, vertical]",progressBarBackgroundColorRatios:"array[number]",progressBarBorderColor:"color",progressBarBorderRadius:"number",progressBarBorderSize:"number",progressBarOpacity:"number",progressBorderColor:"color",progressBorderRadius:"number",progressBorderSize:"number",progressBottom:"or[number, percent]",progressHeight:"or[number, percent]",progressLeft:"or[number, percent]",progressOpacity:"number",progressRight:"or[number, percent]",externalProgressBar:"ProgressBar", playbackBarBackgroundColor:"or[array[color], color]",playbackBarBackgroundColorDirection:"enum[horizontal, vertical]",playbackBarBackgroundOpacity:"number",playbackBarBorderColor:"color",playbackBarBorderRadius:"number",playbackBarBorderSize:"number",playbackBarBottom:"or[number, percent]",playbackBarHeight:"or[number, percent]",playbackBarWidth:"or[number, percent]",playbackBarLeft:"or[number, percent]",playbackBarOpacity:"number",playbackBarRight:"or[number, percent]",playbackBarRollOverDisplay:"bool", playbackBarLiveDragging:"bool",playbackBarProgressBackgroundColor:"or[array[color], color]",playbackBarProgressBackgroundColorDirection:"enum[horizontal, vertical]",playbackBarProgressBackgroundColorRatios:"array[number]",playbackBarProgressBorderColor:"color",playbackBarProgressBorderRadius:"number",playbackBarProgressBorderSize:"number",playbackBarProgressOpacity:"number",playbackBarHeadBackgroundColor:"or[array[color], color]",playbackBarHeadBackgroundColorDirection:"enum[horizontal, vertical]", playbackBarHeadBackgroundColorRatios:"array[number]",playbackBarHeadBorderColor:"color",playbackBarHeadBorderRadius:"number",playbackBarHeadBorderSize:"number",playbackBarHeadOpacity:"number",playbackBarHeadWidth:"or[number, percent]",playbackBarHeadHeight:"or[number, percent]",playbackBarHeadShadow:"bool",playbackBarHeadShadowBlurRadius:"number",playbackBarHeadShadowColor:"color",playbackBarHeadShadowHorizontalLength:"number",playbackBarHeadShadowOpacity:"number",playbackBarHeadShadowSpread:"number", playbackBarHeadShadowVerticalLength:"number",playbackState:"enum[stopped, playing, paused]",subtitlesBackgroundColor:"color",subtitlesBackgroundOpacity:"number",subtitlesBorderColor:"color",subtitlesBorderSize:"number",subtitlesBottom:"or[number, percent]",subtitlesEnabled:"bool",subtitlesFontFamily:"string",subtitlesFontColor:"color",subtitlesFontSize:"or[number, size]",subtitlesFontStyle:"enum[italic, normal]",subtitlesFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]", subtitlesGap:"number",subtitlesHorizontalAlign:"enum[left, center, right]",subtitlesOpacity:"number",subtitlesPaddingTop:"number",subtitlesPaddingBottom:"number",subtitlesPaddingLeft:"number",subtitlesPaddingRight:"number",subtitlesShadow:"bool",subtitlesShadowBlurRadius:"number",subtitlesShadowColor:"color",subtitlesShadowOpacity:"number",subtitlesShadowHorizontalLength:"number",subtitlesShadowVerticalLength:"number",subtitlesTextDecoration:"enum[underline, overline, line-through, none]",subtitlesTextShadowBlurRadius:"number", subtitlesTextShadowColor:"color",subtitlesTextShadowHorizontalLength:"number",subtitlesTextShadowOpacity:"number",subtitlesTextShadowVerticalLength:"number",subtitlesTop:"or[number, percent]",subtitlesVerticalAlign:"enum[top, middle, bottom]",surfaceReticleColor:"color",surfaceReticleOpacity:"number",surfaceReticleSelectionColor:"color",surfaceReticleSelectionOpacity:"number"}).Rg({play:function(){this.Ex()},pause:function(){this.Dx()},stop:function(){this.ku()},restart:function(){this.ju()}});u.lb= {progressBackgroundColor:m,progressBackgroundColorDirection:m,progressBackgroundColorRatios:m,progressBackgroundOpacity:m,progressBarBackgroundColor:m,progressBarBackgroundColorDirection:m,progressBarBackgroundColorRatios:m,progressBarBorderColor:m,progressBarBorderRadius:m,progressBarBorderSize:m,progressBarOpacity:m,progressBorderColor:m,progressBorderRadius:m,progressBorderSize:m,progressBottom:0,progressHeight:20,progressLeft:0,progressOpacity:m,progressPercent:0,progressRight:0,progressVisible:z, externalPlaybackBar:m,externalProgressBar:m,playbackBarBackgroundColor:m,playbackBarBackgroundColorDirection:m,playbackBarBackgroundOpacity:m,playbackBarBorderColor:m,playbackBarBorderRadius:m,playbackBarBorderSize:m,playbackBarBottom:10,playbackBarHeight:m,playbackBarWidth:m,playbackBarLeft:m,playbackBarOpacity:m,playbackBarRight:m,playbackBarLiveDragging:m,playbackBarDuration:100,playbackBarPosition:0,playbackBarRollOverDisplay:z,plabackBarSteps:m,plabackBarSelectedStep:m,playbackBarVisible:z,playbackBarProgressBackgroundColor:m, playbackBarProgressBackgroundColorDirection:m,playbackBarProgressBackgroundColorRatios:m,playbackBarProgressBorderColor:m,playbackBarProgressBorderRadius:m,playbackBarProgressBorderSize:m,playbackBarProgressOpacity:m,playbackBarHeadBackgroundColor:m,playbackBarHeadBackgroundColorDirection:m,playbackBarHeadBackgroundColorRatios:m,playbackBarHeadBorderColor:m,playbackBarHeadBorderRadius:m,playbackBarHeadBorderSize:m,playbackBarHeadOpacity:m,playbackBarHeadWidth:m,playbackBarHeadHeight:m,playbackBarHeadShadow:m, playbackBarHeadShadowBlurRadius:m,playbackBarHeadShadowColor:m,playbackBarHeadShadowHorizontalLength:m,playbackBarHeadShadowOpacity:m,playbackBarHeadShadowSpread:m,playbackBarHeadShadowVerticalLength:m,playbackBarStepBackgroundColor:m,playbackBarStepBackgroundColorDirection:m,playbackBarStepBackgroundColorRatios:m,playbackBarStepBorderColor:m,playbackBarStepBorderRadius:m,playbackBarStepBorderSize:m,playbackBarStepOpacity:m,playbackBarStepWidth:m,playbackBarStepHeight:m,playbackBarStepShadow:m,playbackBarStepShadowBlurRadius:m, playbackBarStepShadowColor:m,playbackBarStepShadowHorizontalLength:m,playbackBarStepShadowOpacity:m,playbackBarStepShadowSpread:m,playbackBarStepShadowVerticalLength:m,playbackBarStepSelectedBackgroundColor:m,playbackBarStepSelectedBackgroundColorDirection:m,playbackBarStepSelectedBackgroundColorRatios:m,playbackBarStepSelectedBorderColor:m,playbackBarStepSelectedBorderRadius:m,playbackBarStepSelectedBorderSize:m,playbackBarStepSelectedOpacity:m,playbackBarStepSelectedWidth:m,playbackBarStepSelectedHeight:m, playbackBarStepSelectedShadow:m,playbackBarStepSelectedShadowBlurRadius:m,playbackBarStepSelectedShadowColor:m,playbackBarStepSelectedShadowHorizontalLength:m,playbackBarStepSelectedShadowOpacity:m,playbackBarStepSelectedShadowSpread:m,playbackBarStepSelectedShadowVerticalLength:m,subtitlesBackgroundColor:"#000000",subtitlesBackgroundOpacity:1,subtitlesBorderColor:m,subtitlesBorderSize:0,subtitlesBottom:"10%",subtitlesFontFamily:m,subtitlesFontColor:"#ffffff",subtitlesFontSize:"12px",subtitlesFontStyle:m, subtitlesFontWeight:m,subtitlesGap:10,subtitlesHorizontalAlign:"center",subtitlesOpacity:1,subtitlesPaddingTop:5,subtitlesPaddingBottom:5,subtitlesPaddingLeft:5,subtitlesPaddingRight:5,subtitlesShadow:z,subtitlesShadowBlurRadius:m,subtitlesShadowHorizontalLength:0,subtitlesShadowVerticalLength:0,subtitlesShadowColor:"#000000",subtitlesShadowOpacity:0,subtitlesTextDecoration:m,subtitlesTextShadowBlurRadius:m,subtitlesTextShadowColor:"#000000",subtitlesTextShadowHorizontalLength:0,subtitlesTextShadowOpacity:0, subtitlesTextShadowVerticalLength:0,subtitlesTop:m,subtitlesVerticalAlign:"bottom",transitionDuration:500,blendingTransitionDuration:m,disolveTransitionDuration:m,translationTransitionDuration:m,translationTransitionEnabled:p,toolTipEnabled:p};b.defaults(u.lb,s.lb);u.prototype.set=function(a,b){if(a=="playbackState"){b=this.Pf;if(this.get(a)!=b){this.fU=p;this.ema()}}switch(a){case "toolTipEnabled":this.set("toolTipDisabled",b===z);break;case "cardboardPointerDistance":this.set("vrPointerDistance", b);break;case "cardboardPointerColor":this.set("vrPointerColor",b);break;case "cardboardPointerSelectionColor":this.set("vrPointerSelectionColor",b);break;case "cardboardPointerSelectionTime":this.set("vrPointerSelectionTime",b);break;case "playbackBarVisible":case "playbackBarRollOverDisplay":this.HD()}s.prototype.set.call(this,a,b)};u.prototype.ya=function(){this.Rj(u.lb)};u.prototype.Ia=function(){s.prototype.Ia.call(this);if(this.Te==r){this.Te=new n;this.ma(this.Te)}if(this.Ac==r){this.Ac=new i; this.Ac.bind(e.aa,this.cU,this,p);this.ma(this.Ac);this.HD()}};u.prototype.Hua=R("Ac");u.prototype.ui=function(){s.prototype.ui.call(this);var a=this.Oa(),c=b(a).find(function(a){return a instanceof j}),d=b(a).find(function(a){return a instanceof l}),e=this.Te&&this.tE(this.Te)>=0?this.Te:r,f=this.Ac&&this.tE(this.Ac)>=0?this.Ac:r;b([{child:c,index:0},{child:d,index:c?1:0},{child:f,index:a.length-(e?2:1)},{child:e,index:a.length-1}]).each(function(a){var b=a.child,a=a.index;b&&this.tE(b)!=a&&this.wj(b, a)},this)};u.prototype.ga=function(){if(this.n("externalProgressBar")){(this.rH=this.k("externalProgressBar"))?this.removeChild(this.Te):this.ma(this.Te);this.p("externalProgressBar");b(u.n1).each(function(a){this.Eu(a)},this)}this.gb(u.Yfa,u.c1,[this.Te],p,p);var a=[this.Te];this.rH&&a.push(this.rH);this.gb(u.n1,u.o1,a,p,p);if(this.n("externalPlaybackBar")){this.ym&&this.ym.unbind(e.aa,this.cU,this,p);(this.ym=this.k("externalPlaybackBar"))?this.removeChild(this.Ac):this.ma(this.Ac);this.HD();this.ym&& this.ym.bind(e.aa,this.cU,this,p);this.p("externalPlaybackBar");b(u.j1).each(function(a){this.Eu(a)},this)}this.gb(u.Xfa,u.b1,[this.Ac],p,p);a=[this.Ac];this.ym&&a.push(this.ym);this.gb(u.j1,u.k1,a,p,p);s.prototype.ga.call(this)};u.prototype.Lsa=function(){if(this.fU){this.fU=z;this.uX.set("state",this.Pf==d.yc?t.za:t.cd);this.wX.set("state",this.Pf==d.R||this.Pf==d.yc?t.za:t.cd);this.vX.set("state",this.Pf==d.R?t.za:t.cd);this.xX.set("state",this.Pf==d.K?t.za:t.cd)}};u.prototype.Yb=function(a){this.Pf= a;this.set("playbackState",a)};u.prototype.dJ=function(){u.hh(this)};u.prototype.Qna=function(){u.eh(this)};u.prototype.Dx=function(){this.Pf==d.yc?this.lh():this.xl()};u.prototype.Ex=function(){this.lh()};u.prototype.vna=function(){this.Pf==d.R?this.xl():this.lh()};u.prototype.ku=function(){this.qk()};u.prototype.ju=function(){this.qk();this.lh()};u.prototype.Pna=function(){if(!this.Yg||!this.Yg.Naa())switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.Ua().dg;a&&a.available()&& a.toggle()}};u.prototype.lh=function(){this.Gi&&this.Gi.play()};u.prototype.xl=function(){this.Gi&&this.Gi.pause()};u.prototype.qk=function(){this.Gi&&this.Gi.stop()};u.prototype.zna=function(a){this.c9(a.data.player)};u.prototype.yna=function(a){this.Yg==a.data.player&&this.c9(r)};u.prototype.f7=function(){u.gm(this)};u.prototype.Sna=function(){this.Xj=p;this.HD()};u.prototype.Rna=function(){this.Xj=z;this.HD()};u.prototype.HD=function(){this.Ac&&this.Ac.set("visible",this.get("playbackBarVisible")&& (this.Xj||!this.get("playbackBarRollOverDisplay")||Device.XM()))};u.prototype.c9=function(a){if(this.Yg!=a){this.set("playbackBarVisible",z);this.Yg&&this.Yg.gm(z);this.Gi&&this.Gi.unbind(e.D("state"),this.ZO,this);this.woa=this.Yg;(this.Yg=a)&&this.Yg.gm(!!this.ox);(this.Gi=this.Yg&&this.Yg.Mha?this.Yg:r)&&this.Gi.bind(e.D("state"),this.ZO,this,p);this.ZO()}};u.prototype.gm=function(a){this.ox=a;this.Yg&&this.Yg.gm(!!this.ox)};u.prototype.cza=function(){return!this.woa};u.prototype.ZO=function(){this.Gi? this.Yb(this.Gi.get("state")):this.Yb(d.K)};u.prototype.cU=function(){var a=(this.ym?this.ym:this.Ac).get("position");this.trigger(new f(u.WN,{position:a}))};u.c1={progressBackgroundColor:"backgroundColor",progressBackgroundColorDirection:"backgroundColorDirection",progressBackgroundColorRatios:"backgroundColorRatios",progressBackgroundOpacity:"backgroundOpacity",progressBarBackgroundColor:"barBackgroundColor",progressBarBackgroundColorDirection:"barBackgroundColorDirection",progressBarBackgroundColorRatios:"barBackgroundColorRatios", progressBarBorderColor:"barBorderColor",progressBarBorderRadius:"barBorderRadius",progressBarBorderSize:"barBorderSize",progressBarOpacity:"barOpacity",progressBorderColor:"borderColor",progressBorderRadius:"borderRadius",progressBorderSize:"borderSize",progressHeight:"height",progressOpacity:"opacity",progressBottom:"bottom",progressLeft:"left",progressRight:"right"};u.Yfa=b(u.c1).keys();u.o1={progressPercent:"percent",progressVisible:"visible"};u.n1=b(u.o1).keys();u.b1={playbackBarBackgroundColor:"backgroundColor", playbackBarBackgroundColorDirection:"backgroundColorDirection",playbackBarBackgroundOpacity:"backgroundOpacity",playbackBarBorderColor:"borderColor",playbackBarBorderRadius:"borderRadius",playbackBarBorderSize:"borderSize",playbackBarBottom:"bottom",playbackBarHeight:"height",playbackBarWidth:"width",playbackBarLeft:"left",playbackBarOpacity:"opacity",playbackBarRight:"right",playbackBarLiveDragging:"liveDragging",playbackBarProgressBackgroundColor:"barBackgroundColor",playbackBarProgressBackgroundColorDirection:"barBackgroundColorDirection", playbackBarProgressBackgroundColorRatios:"barBackgroundColorRatios",playbackBarProgressBorderColor:"barBorderColor",playbackBarProgressBorderRadius:"barBorderRadius",playbackBarProgressBorderSize:"barBorderSize",playbackBarProgressOpacity:"barOpacity",playbackBarHeadBackgroundColor:"playheadBackgroundColor",playbackBarHeadBackgroundColorDirection:"playheadBackgroundColorDirection",playbackBarHeadBackgroundColorRatios:"playheadBackgroundColorRatios",playbackBarHeadBorderColor:"playheadBorderColor", playbackBarHeadBorderRadius:"playheadBorderRadius",playbackBarHeadBorderSize:"playheadBorderSize",playbackBarHeadOpacity:"playheadOpacity",playbackBarHeadWidth:"playheadWidth",playbackBarHeadHeight:"playheadHeight",playbackBarHeadShadow:"playheadShadow",playbackBarHeadShadowBlurRadius:"playheadShadowBlurRadius",playbackBarHeadShadowColor:"playheadShadowColor",playbackBarHeadShadowHorizontalLength:"playheadShadowHorizontalLength",playbackBarHeadShadowOpacity:"playheadShadowOpacity",playbackBarHeadShadowSpread:"playheadShadowSpread", playbackBarHeadShadowVerticalLength:"playheadShadowVerticalLength",playbackBarStepBackgroundColor:"stepBackgroundColor",playbackBarStepBackgroundColorDirection:"stepBackgroundColorDirection",playbackBarStepBackgroundColorRatios:"stepBackgroundColorRatios",playbackBarStepBorderColor:"stepBorderColor",playbackBarStepBorderRadius:"stepBorderRadius",playbackBarStepBorderSize:"stepBorderSize",playbackBarStepOpacity:"stepOpacity",playbackBarStepWidth:"stepWidth",playbackBarStepHeight:"stepHeight",playbackBarStepShadow:"stepShadow", playbackBarStepShadowBlurRadius:"stepShadowBlurRadius",playbackBarStepShadowColor:"stepShadowColor",playbackBarStepShadowHorizontalLength:"stepShadowHorizontalLength",playbackBarStepShadowOpacity:"stepShadowOpacity",playbackBarStepShadowSpread:"stepShadowSpread",playbackBarStepShadowVerticalLength:"stepShadowVerticalLength",playbackBarSelectedStepBackgroundColor:"selectedStepBackgroundColor",playbackBarSelectedStepBackgroundColorDirection:"selectedStepBackgroundColorDirection",playbackBarSelectedStepBackgroundColorRatios:"selectedStepBackgroundColorRatios", playbackBarSelectedStepBorderColor:"selectedStepBorderColor",playbackBarSelectedStepBorderRadius:"selectedStepBorderRadius",playbackBarSelectedStepBorderSize:"selectedStepBorderSize",playbackBarSelectedStepOpacity:"selectedStepOpacity",playbackBarSelectedStepWidth:"selectedStepWidth",playbackBarSelectedStepHeight:"selectedStepHeight",playbackBarSelectedStepShadow:"selectedStepShadow",playbackBarSelectedStepShadowBlurRadius:"selectedStepShadowBlurRadius",playbackBarSelectedStepShadowColor:"selectedStepShadowColor", playbackBarSelectedStepShadowHorizontalLength:"selectedStepShadowHorizontalLength",playbackBarSelectedStepShadowOpacity:"selectedStepShadowOpacity",playbackBarSelectedStepShadowSpread:"selectedStepShadowSpread",playbackBarSelectedStepShadowVerticalLength:"selectedStepShadowVerticalLength"};u.Xfa=b(u.b1).keys();u.k1={playbackBarDuration:"duration",playbackBarPosition:"position",playbackBarSteps:"steps",playbackBarSelectedStep:"selectedStep",playbackBarVisible:"visible"};u.j1=b(u.k1).keys();u.tO="requestByPlayer"; u.l0="playerShow";u.k0="playerHide";u.WN="playbackBarPositionChange";u.Tt=r;u.gm=function(a){if(u.Tt!=a){u.Tt&&u.Tt.gm(z);u.Tt=a;u.Tt&&u.Tt.gm(p)}};u.Pr=[];u.hh=function(a){var b=u.Pr.indexOf(a);b<0&&u.Pr.splice(b,1);u.Pr.push(a);this.gm(a)};u.eh=function(a){var b=u.Pr.indexOf(a);b<0&&u.Pr.splice(b,1);u.Tt==a&&u.gm(u.Pr.length?u.Pr[u.Pr.length-1]:r)};return u}); define("ct","fd,iU,lc,bY,dT,bl".split(","),function(a,b,c,e,d,f){var g=a.extend(b,function(a){b.call(this);this.Mha=a;this.bD=this.dr=r});g.yf="mediaShow";g.Bh="mediaHide";g.prototype.gm=C();g.prototype.Naa=S(z);g.prototype.pK=function(a){if(this.dr!=a){this.dr&&this.kW(this.dr);(this.dr=a)&&this.AP(this.dr)}};g.prototype.AP=function(a){a.bind(f.tO,this.uaa,this);a.bind(f.WN,this.BJ,this)};g.prototype.kW=function(a){a.unbind(f.tO,this.uaa,this);a.unbind(f.WN,this.BJ,this)};g.prototype.QJ=function(){this.dr.trigger(new e(f.tO, {player:this}))};g.prototype.uaa=function(a){a.data.player!=this&&this.lD()};g.prototype.BJ=C();g.prototype.lD=C();g.prototype.zI=function(a){this.trigger(new e(g.yf,{media:a}));this.bD=this.dr;this.bD.trigger(new e(f.l0,{player:this}))};g.prototype.yI=function(a){this.trigger(new e(g.Bh,{media:a}));if(this.bD){this.bD.trigger(new e(f.k0,{player:this}));this.bD=r}};return g}); define("di","fd,iU,lc,bY,dT,jK,ct,bl,fr,dk,fj".split(","),function(a,b,c,e,d,f,g,k,i,n,j){b=a.extend(g,function(){g.call(this,p);this.Lm=z;this.my=p;this.m=i.K;this.DP=new f(this,"buttonPlayPause",n.Eh);this.DP.bind(c.rg,this.wna,this,p);this.DP.bind(c.Dh,this.xna,this,p);this.e2=new f(this,"buttonPause",n.Tc);this.e2.bind(c.T,this.Dx,this,p);this.f2=new f(this,"buttonPlay",n.Tc);this.f2.bind(c.T,this.Ex,this,p);this.k2=new f(this,"buttonStop",n.Tc);this.k2.bind(c.T,this.ku,this,p);this.Eha=new f(this, "buttonRestart",n.Tc);this.Eha.bind(c.T,this.ju,this,p);this.k5=a.Bn(this.vsa,this);this.k5()});b.prototype.set=function(a,b){a!="state"&&g.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){switch(a){case "state":return this.m}return g.prototype.get.call(this,a,b)};b.prototype.vsa=function(){if(this.my){this.my=z;this.e2.set("state",this.m==i.yc?j.za:j.cd);this.f2.set("state",this.m==i.R||this.m==i.yc?j.za:j.cd);this.DP.set("pressed",this.m==i.R);this.k2.set("state",this.m==i.K?j.za:j.cd)}}; b.prototype.fy=function(a){if(this.Lm!=a)(this.Lm=a)||this.Yb(i.K)};b.prototype.Yb=function(a){var b=this.m;this.m=a;g.prototype.set.call(this,"state",a);if(b!=this.m){this.my=p;this.k5();this.trigger(new e(c.zc,{oldState:b,state:this.m}))}};b.prototype.Dx=function(){this.Lm&&(this.m==i.yc?this.lh():this.xl())};b.prototype.Ex=function(){this.Lm&&this.lh()};b.prototype.wna=function(){this.Lm&&this.lh()};b.prototype.xna=function(){this.Lm&&this.xl()};b.prototype.ku=function(){this.Lm&&this.qk()};b.prototype.ju= function(){if(this.Lm){this.qk();this.lh()}};b.prototype.lh=C();b.prototype.xl=C();b.prototype.qk=C();return b});define("hz",[],function(){return{As:"constrained",Tea:"free_drag",nza:"free_drag_and_rotation",AO:"sync_with_field_of_view"}}); define("ib",["fd","hz","je"],function(a,b,c){function e(){this.Z=p;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Dd=c.Me;this.Yi=b.As;this.gT=this.kT=1;this.Qc=this.Rc=this.Hi=this.Ii=100;this.ij=e.Vs}e.prototype.Zba=function(){return this.ij!==e.Vs};e.prototype.Yba=function(){return this.ij&e.kw?p:z};e.prototype.$ba=function(){return this.ij&e.lw?p:z};e.prototype.aca=function(){return this.ij&e.Ys?p:z};e.prototype.Xba=function(){return this.ij&e.Us?p:z};e.prototype.getX=function(){this.nj();return this.ca}; e.prototype.getY=function(){this.nj();return this.da};e.prototype.am=function(){this.nj();return this.ra};e.prototype.Py=function(){this.nj();return this.Eb};e.prototype.ZE=function(a,b,c,e,i){this.Rc=a;this.Qc=b;this.Dd=c;this.kT=e;this.gT=i;this.da=this.ca=0.5;this.Eb=0;this.ra=e;this.Z=p};e.prototype.Fa=function(a,b,c,e){this.ca=a;this.da=b;this.Eb=c;this.ra=e;this.Z=p};e.prototype.hm=function(a){this.Yi=a;this.Z=p};e.prototype.setSize=function(a,b){this.Ii=a;this.Hi=b;this.Z=p};e.prototype.nj= function(){if(this.Z){this.Z=z;var a=e.Vs;this.ra>this.gT?(this.ra=this.gT,a|=e.Zfa):this.rathis.Qc*this.Ii?(g=this.Rc*this.Hi/this.Qc,i=this.Hi):(g=this.Ii,i=this.Qc*this.Ii/this.Rc);break;default:case c.Me:this.Rc*this.Hi>this.Qc*this.Ii?(g=this.Ii, i=this.Qc*this.Ii/this.Rc):(g=this.Rc*this.Hi/this.Qc,i=this.Hi)}g*=this.ra;i*=this.ra;f=Math.min(0.5*this.Ii/g,0.5);g=Math.max(1-0.5*this.Ii/g,0.5);k=Math.min(0.5*this.Hi/i,0.5);i=Math.max(1-0.5*this.Hi/i,0.5)}else f=0,g=1,k=0,i=1;this.cag&&(this.ca=g,a|=e.lw);this.dai&&(this.da=i,a|=e.Us);if((this.Yi==b.As||this.Yi==b.Tea)&&0!=this.Eb)this.Eb=0,a|=e.dga;this.ij=a}};e.Vs=0;e.kw=1;e.lw=2;e.Ys=4;e.Us=8;e.$fa=16;e.Zfa=32;e.dga=64;return e}); define("eP",[],function(){function a(){this.NA=0.1;this.bH=this.tQ=this.wQ=this.vQ=this.DQ=this.sQ=this.BQ=this.AQ=this.dE=this.lX=this.$s=this.eP=this.bE=this.iX=this.$D=this.gX=0}a.prototype.LM=P("NA");a.prototype.Uda=function(a,c,e,d,f,g,k,i){this.gX=a;this.iX=c;this.eP=e;this.lX=d;this.$D+=f;this.bE+=g;this.$s+=k;this.dE+=i};a.prototype.jd=function(){return 0!=this.AQ||0!=this.BQ||0!=this.sQ||0!=this.DQ||0!=this.gX||0!=this.iX||0!=this.eP||0!=this.lX||0!=this.$D||0!=this.bE||0!=this.$s||0!=this.dE}; a.prototype.eb=function(a){a=1E3/a;this.vQ=this.lH(this.AQ/a,this.gX/a+this.$D,this.NA);this.wQ=this.lH(this.BQ/a,this.iX/a+this.bE,this.NA);this.tQ=this.lH(this.sQ/a,this.eP/a+this.$s,this.NA);this.bH=this.lH(this.DQ/a,this.lX/a+this.dE,this.NA);this.AQ=this.vQ*a;this.BQ=this.wQ*a;this.sQ=this.tQ*a;this.DQ=this.bH*a;this.dE=this.$s=this.bE=this.$D=0};a.prototype.lH=function(a,c,e){return 0==c?this.ze(a,c,e):c};a.prototype.ze=function(a,c,e){a=(c-a)*(1-e);0.01>Math.abs(a)&&(a=0);return c-a};return a}); define("eU",["fd","lc","bY","eL","je"],function(a,b,c,e){var d=a.extend(e,function(){e.call(this);this.Tw=7;this.GI=this.FS=z;this.II=m;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.iI=1;this.kU=p;this.lU=z;this.bta=p;this.kX=z;this.sa=r});d.prototype.$E=P("Tw");d.prototype.ic=function(a,b,c,d){this.Eb=a;this.ra=b;this.Rc=c;this.Qc=d};d.prototype.gya=function(a){this.kU=a;this.lK(this.kU&&!!this.sa)};d.prototype.Fv=function(a){this.sa!=a&&(this.lK(z),this.qV(z),this.mi(),this.sa=a,this.lK(this.kU&& !!this.sa),this.qV(this.bta&&!!this.sa))};d.prototype.mi=function(){this.lK(z);this.qV(z);this.sa=r};d.prototype.lK=function(a){this.lU!=a&&((this.lU=a)?this.nha():this.Sra())};d.prototype.qV=function(a){this.kX!=a&&((this.kX=a)?this.oha():this.Tra())};d.prototype.nha=function(){this.sa.bind(b.xb,this.lc,this,p);this.sa.bind(b.Lc,this.Bg,this,p);this.sa.bind(b.cc,this.Cg,this,p)};d.prototype.Sra=function(){this.sa.unbind(b.xb,this.lc,this);this.sa.unbind(b.Lc,this.Bg,this);this.sa.unbind(b.cc,this.Cg, this)};d.prototype.oha=function(){this.sa.bind(b.Yp,this.$t,this,p);this.sa.bind(b.Zv,this.Ht,this,p)};d.prototype.Tra=function(){this.sa.unbind(b.Yp,this.$t,this);this.sa.unbind(b.Zv,this.Ht,this)};d.prototype.lc=function(a){this.Sqa(a)};d.prototype.Bg=function(a){this.Y$(a)};d.prototype.Cg=function(){this.eR()};d.prototype.$t=function(a){this.MW(a)};d.prototype.Ht=function(a){this.NW(a)};d.prototype.Sqa=function(a){this.FS=p;this.GI=z;this.II=a;this.Y$(a)};d.prototype.Y$=function(a){if(this.FS){var b= a.pageX-this.II.pageX,e=a.pageY-this.II.pageY;this.GI||(Math.sqrt(b*b+e*e)>this.Tw?this.GI=p:b=e=0);this.GI&&(this.II=a);a=this.Eb*Math.PI/180;this.trigger(new c(d.Mk,{xDelta:-((b*Math.cos(a)+e*Math.sin(a))/this.Rc),yDelta:-((e*Math.cos(a)-b*Math.sin(a))/this.Qc)}))}};d.prototype.eR=function(){this.FS=z};d.prototype.NW=function(a){if(this.iI!=a.scale){this.eR();var b=this.iI;this.iI=a.scale;this.trigger(new c(d.Pk,{zoomDelta:this.ra*this.iI/b-this.ra}))}};d.prototype.MW=function(a){0!=a.op&&(this.eR(), this.trigger(new c(d.Pk,{zoomDelta:0.1*this.ra*a.FX})))};d.Mk="position change";d.Pk="zoom change";d.zza="vieport navigation";d.yza="relative navigation";d.xza="relative exponential navigation";d.wza="dragging";return d});define("hm",[],function(){return{uO:"rotateClockwise",vO:"rotateCounterClockwise",Rn:"zoomIn",Sn:"zoomOut",je:"stop"}}); define("km","fd,bY,eL,je,eP,eU,hm,lc".split(","),function(a,b,c,e,d,f,g){var k=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.Bm=this.JJ=this.V=z;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.Dd=e.As;this.ab=new d;this.va=new f;if(this.g.Yj){this.va.$E(k.UO);this.ab.LM(k.VO)}else{this.va.$E(0);this.ab.LM(1)}this.va.bind(f.Mk,this.ona,this,p);this.va.bind(f.Pk,this.hr,this,p)});k.prototype.clear=function(){this.va.unbind(f.Mk,this.KAa,this,p);this.va.unbind(f.Pk,this.hr, this,p);this.va.mi();this.g=this.H=this.ab=this.va=r};k.prototype.Sg=function(a){switch(a){case g.uO:this.vb(0,0,+k.OO,0,0,0,0,0);break;case g.vO:this.vb(0,0,-k.OO,0,0,0,0,0);break;case g.Rn:this.vb(0,0,0,+k.Vz,0,0,0,0);break;case g.Sn:this.vb(0,0,0,-k.Vz,0,0,0,0);break;case g.je:this.vb(0,0,0,0,0,0,0,0)}};k.prototype.Fa=function(a,b,c,d,e,f){this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.Rc=e;this.Qc=f;this.va.ic(this.Eb,this.ra,this.Rc,this.Qc)};k.prototype.jd=function(){return this.V&&this.ab.jd()}; k.prototype.eb=function(a){this.ab.eb(a);this.H.Fa(this.ca+this.ab.vQ,this.da+this.ab.wQ,this.Eb+this.ab.tQ,this.ra+this.ab.bH);this.ca=this.H.getX();this.da=this.H.getY();this.Eb=this.H.Py();this.ra=this.H.am()};k.prototype.dF=function(a){this.Bm=a;this.va.gya(!this.Bm)};k.prototype.ld=function(a){(this.V=a)?this.va.Fv(this.g.getParent()):this.va.mi()};k.prototype.ona=function(a){this.vb(0,0,0,0,a.data.xDelta,a.data.yDelta,0,0)};k.prototype.hr=function(a){this.vb(0,0,0,0,0,0,0,a.data.zoomDelta)}; k.prototype.vb=function(a,b,c,d,e,f,g,k){this.ab.Uda(a,b,c,d,e,f,g,k);this.qf()};k.prototype.qf=function(){this.trigger(new b(k.df))};k.df="position change request";k.UO=7;k.VO=0.2;k.Vz=0.5;k.OO=30;return k}); define("jI","fd,bY,eL,kO,bq,eP,eU,hm,lc".split(","),function(a,b,c,e,d,f,g,k){var i=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.V=z;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.O=r;this.bR=p;this.Bb=r;this.mJ=0;this.Vm=this.fp=this.ep=m;this.ab=new f;this.va=new g;if(this.g.Yj){this.va.$E(i.UO);this.ab.LM(i.VO)}else{this.va.$E(0);this.ab.LM(1)}this.va.bind(g.Pk,this.hr,this,p)});i.prototype.Rxa=function(a,b){this.Rc=a;this.Qc=b;this.bL()};i.prototype.Lp=function(a){if(this.Bb!= a){this.Bb=a;this.mJ=m;this.bL()}};i.prototype.zj=function(a,b){if(this.Bb==a){this.mJ=b;this.bL()}};i.prototype.bL=function(){var a,b,c;if(this.Bb&&this.mJ!=m){a=this.Bb.get("x",0)/this.Rc;b=this.Bb.get("y",0)/this.Qc;c=-(this.mJ+this.Bb.get("angle",0))}else c=b=a=m;if(this.Vm!=c){this.Vm=c;this.qf()}if(this.ep!=a||this.fp!=b){this.ep=a;this.fp=b;this.dma();this.qf()}};i.prototype.dma=function(){this.bR=p;this.qf()};i.prototype.DD=function(){if(this.bR||this.O&&this.O.Je()){this.bR=z;this.O=r;if(this.ep!= m&&this.fp!=m&&this.Vm!=m){for(var a=this.Vm-this.Eb;a>180;)a=a-360;for(;a<-180;)a=a+360;if(this.ca!=this.ep||this.da!=this.fp)this.O=new e("quad_in_out",[new d("x",this.ca,this.ep,1),new d("y",this.da,this.fp,1),new d("angleDif",a,a,360)],500);else if(this.Vm!=this.Eb)this.O=new e("quad_in_out",[new d("x",this.ca,this.ca,1),new d("y",this.da,this.da,1),new d("angleDif",a,0,360)],500)}}};i.prototype.clear=function(){this.va.unbind(g.Pk,this.hr,this,p);this.va.mi();this.g=this.H=this.O=this.ab=this.va= r};i.prototype.Sg=function(a){switch(a){case k.Rn:this.vb(+i.Vz,0);break;case k.Sn:this.vb(-i.Vz,0);break;case k.je:this.vb(0,0)}};i.prototype.Fa=function(a,b,c,d,e,f){this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.va.ic(this.Eb,this.ra,e,f)};i.prototype.jd=function(){return this.V&&(this.O||this.ab.jd()||this.ep!=m&&this.ca!=this.ep||this.fp!=m&&this.da!=this.fp||this.Vm!=m&&this.Eb!=this.Vm)?p:z};i.prototype.eb=function(a){this.DD();if(this.O){this.O.eb(a);this.ca=this.O.wb("x");this.da=this.O.wb("y"); this.Eb=this.Vm-this.O.wb("angleDif")}else{if(this.ep!=m)this.ca=this.ep;if(this.fp!=m)this.da=this.fp;if(this.Vm!=m)this.Eb=this.Vm}this.ab.eb(a);this.H.Fa(this.ca,this.da,this.Eb,this.ra+this.ab.bH);this.ca=this.H.getX();this.da=this.H.getY();this.Eb=this.H.Py();this.ra=this.H.am()};i.prototype.ld=function(a){if(this.V=a){this.va.Fv(this.g.getParent());this.bL()}else this.va.mi()};i.prototype.hr=function(a){this.vb(0,a.data.zoomDelta)};i.prototype.vb=function(a,b){this.ab.Uda(0,0,0,a,0,0,0,b);this.qf()}; i.prototype.qf=function(){this.trigger(new b(i.df))};i.df="position change request";i.UO=7;i.VO=0.2;i.Vz=0.5;i.OO=30;return i}); define("kB","fd,bY,eL,hz,je,ib,km,jI,lc".split(","),function(a,b,c,e,d,f,g,k,i){var n=a.extend(c,function(a){c.call(this);this.g=a;this.g.bind(i.yb,this.nb,this);this.Yi=e.As;this.Bb=r;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.ka=r;this.$J=this.ZJ=this.hn=this.gn=z;this.kj=p;this.V=z;this.H=new f;this.H.hm(this.Yi);this.Ra=new g(this.g,this.H);this.Ra.bind(g.df,this.rl,this,p);this.Sf=new k(this.g,this.H);this.Sf.bind(k.df,this.rl,this,p);this.LJ()});n.prototype.clear=function(){this.Ra.unbind(g.df, this.rl,this);this.Ra.clear();this.Ra=r;this.Sf.unbind(k.df,this.rl,this);this.Sf.clear();this.ka=this.H=this.Sf=r;this.g.unbind(i.yb,this.nb,this);this.g=r};n.prototype.stop=function(){this.xc=this.ka=r;this.V=z;this.Ra.ld(z);this.Sf.ld(z);this.Yo(0,0,0,0)};n.prototype.start=function(a){var b=a.ka,c=b.get("width",100),e=b.get("height",100),f=b.get("scaleMode",d.Me),i=b.get("minimumZoomFactor",1),g=b.get("maximumZoomFactor",1),k=b.get("initialZoomFactor",1);this.ka=b;this.V=p;this.xc=a.getItem(); this.Yo(0,0,0,0);this.Sf.Rxa(c,e);this.H.ZE(c,e,f,i,g);this.H.Fa(0.5,0.5,0,k);this.g.eF(this.xc,this.H.getX(),this.H.getY(),this.H.Py(),this.H.am());this.LJ()};n.prototype.Sg=function(a){this.Ra.Sg(a);this.Sf.Sg(a)};n.prototype.hm=function(a){if(this.Yi!=a){this.Yi=a;this.H.hm(a);this.LJ()}};n.prototype.Lp=function(a){if(this.Bb!=a){this.Bb=a;this.Sf.Lp(a);this.LJ()}};n.prototype.dF=function(a){this.Ra&&this.Ra.dF(a)};n.prototype.zj=function(a,b,c,d){this.Sf.zj(a,b,c,d)};n.prototype.Ep=function(a){if(this.V)if(this.Sf.jd()){this.Sf.eb(a); this.ei(this.Sf.ca,this.Sf.da,this.Sf.Eb,this.Sf.ra);this.fa()}else if(this.Ra.jd()){this.Ra.eb(a);this.ei(this.Ra.ca,this.Ra.da,this.Ra.Eb,this.Ra.ra);this.fa()}else this.Yo(0,0,0,0)};n.prototype.Zb=function(){if(this.xc){var a=this.g.yE(this.xc),b=this.g.zE(this.xc),c=this.g.TL(this.xc),d=this.g.uba(this.xc),e=this.g.xE(this.xc),f=this.g.wE(this.xc),i=a-this.ca,g=b-this.da,k=c-this.Eb,n=d-this.ra;this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.Yo(i,g,k,n);this.Sf.Fa(a,b,c,d,e,f);this.Ra.Fa(a,b,c,d, e,f)}};n.prototype.LJ=function(){if(this.Yi==e.AO&&this.Bb!=r&&this.Bb.get("map")==this.ka){this.Ra.ld(z);this.Sf.ld(p)}else{this.Ra.ld(p);this.Sf.ld(z)}};n.prototype.rl=function(){this.fa()};n.prototype.nb=function(){this.H.setSize(this.g.Ba(),this.g.hb());this.fa()};n.prototype.fa=function(){this.trigger(new b(n.Ja))};n.prototype.ei=function(a,b,c,d){this.g.eF(this.xc,a,b,c,d)};n.prototype.Yo=function(a,c,d,e){a=z;if(this.hn!=e<0){this.hn=!this.hn;a=p}if(this.gn!=e>0){this.gn=!this.gn;a=p}if(this.ZJ!= this.$s>0){this.ZJ=!this.ZJ;a=p}if(this.$J!=this.$s<0){this.$J=!this.$J;a=p}if(this.kj!=(e==0)){this.kj=!this.kj;a=p}a&&this.trigger(new b(n.Ug,{rotatingClockwise:this.ZJ,rotatingCounterClockwise:this.$J,zoomingIn:this.gn,zoomingOut:this.hn,stopped:this.kj}))};n.Ja="request frame";n.Ug="movement change";return n}); define("iR","require,fd,bY,eL,je,ib".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("je"),f=a("ib"),g=b.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.H=new f;this.Se=[];this.Y=g.Lj;this.Sj=this.$g=this.Sj=this.Ih=r;this.qh=this.F.get("transitionDuration");this.gi=m});g.prototype.hm=function(a){this.H.hm(a)};g.prototype.oE=function(a){a.FE()&&this.TP();this.Se.push(a);this.WI()};g.prototype.hide=function(){this.TP();this.Se.push(r);this.WI()};g.prototype.clear=function(){this.Y= g.Lj;this.TP();this.Moa();this.FU();this.g=r};g.prototype.Zb=function(a){if(this.Y!=g.Lj&&(this.Y==g.dq||this.Y==g.Zz)){this.gi=this.gi+a;a=Math.min(1,this.gi/this.qh);this.Y==g.dq?this.g.fm(this.Sj,a):this.g.fm(this.eH,1-a);this.gi0&&this.Kga(this.Se[0],this.$g);)this.Se.shift();this.Se.length>0&&this.jq()}};g.prototype.Kga=function(a,b){return a==b||!!a&&!!b&&a.isEqual(b)};g.prototype.jq= function(){this.$g&&(!this.Se[0]||this.Se[0].FE())&&this.trigger(new c(g.Ds,{map:this.$g.ka}));if(this.F.get("transitionMode","blending")=="fade_out_fade_in"&&this.$g&&(!this.Se[0]||this.Se[0].FE()))this.jA();else{this.Sj=(this.Ih=this.Se.shift())&&this.Ih.getItem();this.Ih?this.xP():this.$g&&this.jA()}};g.prototype.xP=function(){this.oga();this.Ih.FE()&&this.xpa();this.gi=0;this.Y=g.dq;this.fa()};g.prototype.Hja=function(){this.FU();this.$g=this.Ih;this.eH=this.Sj;this.Sj=this.Ih=r;this.Vw()};g.prototype.jA= function(){this.gi=0;this.Y=g.Zz;this.fa()};g.prototype.Jja=function(){this.FU();this.$g=r;this.Vw()};g.prototype.Vw=function(){this.Y=g.Lj;this.$g&&this.$g.FE()&&this.trigger(new c(g.Es,{map:this.$g.ka}));this.Se.length==0?this.$g?this.trigger(new c(g.LN,{level:this.$g})):this.trigger(new c(g.yN)):this.jq()};g.prototype.xpa=function(){var a=this.Ih.ka;this.Ih.Mg();this.H.ZE(a.get("width",100),a.get("height",100),a.get("scaleMode",d.Me),a.get("minimumZoomFactor",1),a.get("maximumZoomFactor",1));this.H.Fa(0.5, 0.5,0,a.get("initialZoomFactor",1));this.g.eF(this.Sj,this.H.getX(),this.H.getY(),this.H.Py(),this.H.am())};g.prototype.fa=function(){this.trigger(new c(g.Ja))};g.prototype.TP=function(){for(;this.Se.length>0;){var a=this.Se.shift();a&&this.g.ti(a.getItem())}};g.prototype.oga=function(){if(this.Ih){this.g.nX(this.Sj);this.g.tX(this.Sj);this.g.fm(this.Sj,0);this.trigger(new c(g.KN,{level:this.Ih}))}};g.prototype.FU=function(){if(this.$g){this.g.removeItem(this.eH);this.trigger(new c(g.FF,{level:this.$g})); this.g.ti(this.eH);this.eH=this.$g=r}};g.prototype.Moa=function(){if(this.Ih){this.g.removeItem(this.Sj);this.trigger(new c(g.FF,{level:this.Ih}));this.g.ti(this.Sj);this.Sj=this.Ih=r}};g.Lj="stopped";g.dq="blending";g.Zz="disolving";g.Ja="request frame";g.KN="level added";g.FF="level removed";g.LN="level fully displayed";g.yN="all pending maps hidden";g.Es="map show";g.Ds="map hide";return g}); define("iq",[],function(){function a(a,c){this.ka=a;this.ia=a.get("image");this.Ud=c;this.DS=m}a.prototype.getItem=function(){switch(this.Ud){case a.WF:return this.ka.Dba();default:return this.ka.Ng()}};a.prototype.Mg=function(){switch(this.Ud){case a.WF:return this.ka.lv();default:return this.ka.Zl()}};a.prototype.FE=function(){return this.DS===m?0==this.getIndex():this.DS};a.prototype.Cxa=P("DS");a.prototype.HE=function(){return this.Ud==a.F_};a.prototype.isEqual=function(a){return a&&this.ka== a.map&&this.Ud==a.type};a.prototype.getIndex=function(){return this.Ud==a.WF||this.ka.Zy()?0:1};a.prototype.lba=function(){return this.ka.Zy()?2:1};a.WF="preload";a.F_="load";return a}); define("hx","require,fd,ia,lc,bY,eL,iq,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("iq"),k=a("r"),i=b.extend(f,function(a){f.call(this);this.g=a;this.Se=[];this.IA=this.Vt=this.ye=r;this.Pt=z;this.kI=r;this.UI=b.Bn(this.UI,this)});i.prototype.clear=function(){this.stop();this.g=r};i.prototype.Jca=function(a,b){if(this.kI!=a||b){this.stop();this.ka=a;this.ka.Xwa();c.eta(this.ka,"image.levels.url",this.UI);var d=[];a.Zy()&&k.Wa()&&d.push(new g(a,g.WF));d.push(new g(a, g.F_));d=d.filter(function(a){return a.getItem().sj()});if(d.length){this.Se=this.Se.concat(d);this.WI()}}};i.prototype.UI=function(){this.reload()};i.prototype.reload=function(){this.Jca(this.ka,p)};i.prototype.stop=function(){c.ac(this.ka,"image.levels.url",this.UI);this.kI=this.ka=r;this.Se=[];this.Y9();if(this.Pt){this.Pt=z;this.hW();this.g.ti(this.ye.getItem());this.ye=r;this.trigger(new d(i.GF))}};i.prototype.WI=function(){this.Pt||this.$S()};i.prototype.$S=function(){if(this.Se.length>0){this.ye= this.Se.shift();if(!this.Pt){this.Pt=p;this.trigger(new d(i.EF,{level:this.ye,percent:0}))}this.iha();this.g.An(this.ye.getItem());this.g.LZ(this.ye.getItem())&&this.yT()}else if(this.Pt){this.Pt=z;this.trigger(new d(i.GF))}};i.prototype.yT=function(){this.hW();this.Lqa();this.ye=r;this.$S()};i.prototype.Lqa=function(){this.Y9();this.Vt=this.ye;var a=this;this.IA=setTimeout(function(){a.IA=r;a.ana()},500)};i.prototype.ana=function(){var a=this.Vt.ka;this.Vt.Cxa(a!=this.kI);this.kI=a;this.trigger(new d(i.MN, {level:this.Vt}));this.Vt=r};i.prototype.Y9=function(){if(this.IA!=r){clearTimeout(this.IA);this.IA=r;this.g.ti(this.Vt.getItem());this.Vt=r}};i.prototype.r6=function(){this.hW();this.ye=r;this.$S()};i.prototype.s6=function(a){this.trigger(new d(i.EF,{level:this.ye,percent:a.zh}))};i.prototype.iha=function(){var a=this.ye.getItem();a.bind(e.S,this.yT,this);a.bind(e.ie,this.r6,this);a.bind(e.sc,this.s6,this)};i.prototype.hW=function(){var a=this.ye.getItem();a.unbind(e.S,this.yT,this);a.unbind(e.ie, this.r6,this);a.unbind(e.sc,this.s6,this)};i.EF="level loading progress";i.MN="level loaded";i.GF="load stopped";return i});define("cg",["require"],function(){function a(a,c){this.x=a;this.y=c}a.prototype.rotate=function(a){var c=Math.cos(a),a=Math.sin(a),e=this.x*a+this.y*c;this.x=this.x*c-this.y*a;this.y=e;return this};a.prototype.translate=function(a,c){this.x+=a;this.y+=c;return this};a.prototype.scale=function(a,c){this.x*=a;this.y*=c;return this};return a}); define("jA",["require","je","jP"],function(a){function b(a,b,g){this.pe=a;this.N9=b;this.M9=g;this.Dd=c.Mn;this.Nh=e.Kc;this.ii=e.rc}var c=a("je"),e=a("jP");b.prototype.rs=P("Dd");b.prototype.sz=P("Nh");b.prototype.xz=P("ii");b.prototype.My=function(a,b,g){var k=this.N9,i=this.M9,n,j;switch(this.Dd){case c.NONE:j=n=1;break;case c.Me:n=j=Math.min(b/k,g/i);break;case c.lm:n=j=Math.max(b/k,g/i);break;case c.Qk:n=j=b/k;break;case c.Wg:n=j=g/i;break;default:n=b/k,j=g/i}var l=b/n;n=Math.min(this.N9*n,b); l=Math.min(l,k);switch(this.Nh){case e.oa:sX=tX=0;break;case e.Ka:tX=b-n;sX=k-l;break;default:tX=0.5*(b-n),sX=0.5*(k-l)}b=g/j;j=Math.min(this.M9*j,g);b=Math.min(b,i);switch(this.ii){case e.kb:i=g=0;break;case e.jb:g-=j;i-=b;break;default:g=0.5*(g-j),i=0.5*(i-b)}a.drawImage(this.pe,Math.round(sX),Math.round(i),Math.round(l+sX-Math.round(sX)),Math.round(b+i-Math.round(i)),Math.round(tX),Math.round(g),Math.round(n+tX-Math.round(tX)),Math.round(j+g-Math.round(g)))};return b}); define("jl","require,lc,gb,cg,hW,jA".split(","),function(a){function b(a,b,d,g){this.g=a;this.ka=b;this.Rc=this.ka.get("width");this.Qc=this.ka.get("height");this.xc=this.ka.Ng();this.U4=d;this.Wj=g;this.Lt=r;if(this.Wj){this.by=this.U4.by;this.W=this.Wj.get("width");this.ea=this.Wj.get("height");this.ca=this.Wj.get("x",0);this.da=this.Wj.get("y",0);this.au=this.Wj.get("offsetX",0);this.bu=this.Wj.get("offsetY",0);if(this.$a=this.Wj.Zl()){this.lf=new f(e.Jj);this.lf.load(this.$a.get("url"));this.lf.bind(c.S, this.U6,this)}}else this.lf=r}var c=a("lc"),e=a("gb"),d=a("cg"),f=a("hW"),g=a("jA");b.prototype.clear=function(){this.Wj=this.U4=this.xc=this.ka=this.g=r;if(this.lf){this.lf.unbind(c.S,this.U6,this);this.lf.cancel();this.lf=r}this.Lt=r};b.prototype.wba=function(a,b){this.V4=m;if(this.Lt&&a!=m&&b!=m){var c=this.g.Ba()*0.5,e=this.g.hb()*0.5,f=this.g.TL(this.xc)*Math.PI/180,g=this.g.xE(this.xc),o=this.g.wE(this.xc),t=this.g.yE(this.xc),s=this.g.zE(this.xc),u=new d(a,b);u.translate(-c,-e);u.rotate(-f); u.scale(1/g,1/o);u.translate(t,s);u.scale(this.Rc,this.Qc);u.translate(-this.ca,-this.da);if(!this.by){u.rotate(f);u.scale(g/this.Rc,o/this.Qc)}u.translate(this.au,this.bu);c=Math.round(u.x);u=Math.round(u.y);if(c>=0&&c=0&&u0?"#"+this.GP(c[u+0])+this.GP(c[u+1])+this.GP(c[u+2]):"transparent"}}return this.V4};b.prototype.U6=function(){var a=new g(this.lf.qe(),this.$a.get("width"),this.$a.get("height"));a.rs(this.Wj.get("scaleMode")); a.sz(this.Wj.get("horizontalAlign"));a.xz(this.Wj.get("verticalAlign"));var b=document.createElement("canvas");b.width=Math.round(this.W);b.height=Math.round(this.ea);var c=b.getContext("2d");a.My(c,b.width,b.height);this.Lt=c.getImageData(0,0,b.width,b.height);b.width=b.height=0};b.prototype.GP=function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a};return b}); define("in","require,dm,fd,lc,bY,eL,kr,jl,R,kO,bq".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("kr"),k=a("jl"),i=a("R"),n=a("kO"),j=a("bq"),l=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.ka=b;this.bb=c;this.X=this.bb.getItem();this.Gl=this.bb.Eba();this.Hl=this.bb.Gba();this.wo=this.Xj=m;this.F=this.g.getParent();this.F.bind(e.Lc,this.$i,this);this.F.bind(e.Ib,this.XB,this);this.F.bind(e.xb,this.gr,this);this.F.bind(e.cc,this.ZB,this);c.bind(e.D("selected"), this.p7,this);c.bind(e.D("enabled"),this.cna,this);this.sI=new k(this.g,this.ka,this.bb,this.bb.get("map",r));this.uI=new k(this.g,this.ka,this.bb,this.bb.get("rollOverMap",this.bb.get("map",r)));this.vI=new k(this.g,this.ka,this.bb,this.bb.get("selectedMap",this.bb.get("rollOverMap",this.bb.get("map",r))));this.PH=new k(this.g,this.ka,this.bb,this.bb.get("image",r));this.QH=new k(this.g,this.ka,this.bb,this.bb.get("rollOverImage",this.bb.get("image",r)));this.RH=new k(this.g,this.ka,this.bb,this.bb.get("selectedImage", this.bb.get("rollOverImage",this.bb.get("image",r))));this.Fc=this.Ec=m;this.sy=r;this.Vn=[];this.eA=[];this.ff={};this.J5=[];this.VR=z;this.Zm=this.bb.get("useHandCursor");this.O=r;this.ny=m;this.gK=this.XJ=this.eI=0;a=this.bb.get("areas",[]);for(b=0;b0);this.cW(b.difference(a,c),"rollOut");this.LD()}}};l.prototype.LD=function(){for(var a="",b=0;b=0};k.prototype.Zb=function(a){for(var b= 0;b");this.u=this.I.get(0);this.ha=this.u.getContext("2d")}var c=a("jquery.mod"),a=a("r");b.prototype.getItem=R("X");b.prototype.Oy=function(a){return this.X==a?this:r};b.prototype.uk=function(){this.P&&this.P.sX(this)};b.prototype.wd=function(a){this.eqa(a)};b.prototype.n9=function(a){this.xB!= a&&(this.xB=a,this.P&&this.P.nM())};b.prototype.eqa=function(a){this.ub!=a&&(this.ub=a,this.mM())};b.prototype.mK=function(a){this.fe!=a&&(this.fe=a,this.mM())};b.prototype.XC=function(a,b){if(this.W!=a||this.ea!=b)this.W=a,this.ea=b,this.jM()};b.prototype.ei=function(a,b){if(this.Co!=a||this.gp!=b)this.Co=a,this.gp=b,this.mM()};b.prototype.mM=function(){this.P&&this.P.kM()};b.prototype.Bc=function(){this.AS=p};b.prototype.ga=function(){this.AS&&(this.AS=z,this.rf())};b.prototype.rf=C();b.prototype.jM= function(){this.xS=p;this.mM()};b.prototype.YM=function(){if(this.xS){this.xS=z;if(this.u.width!=this.W||this.u.height!=this.ea)this.u.width=Math.round(this.W),this.u.height=Math.round(this.ea);this.ha.clearRect(0,0,this.u.width,this.u.height);this.lg()}};b.prototype.lg=C();b.prototype.Yta=function(a){if(0this.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;default:this.rd=this.La*this.dc>this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}this.AC=p}if(this.AC){this.AC=z;var a=this.Ba(),b=this.hb(),d=Math.cos(this.Eb*Math.PI/180),e=Math.sin(this.Eb* Math.PI/180);this.ei(this.Xb*0.5-this.Om*a+(this.Om-this.ca)*d*a-(this.Pm-this.da)*e*b,this.dc*0.5-this.Pm*b+(this.Pm-this.da)*d*b+(this.Om-this.ca)*e*a);this.mK(this.Eb);this.XC(a,b);for(a=0;a=0&&this.Cq.splice(a,1);this.R$()};a.prototype.R$=function(){var a;a=this.Cq.length>0?this.Cq[this.Cq.length-1]:n.cd;this.getParent().set("cursor",a)};a.prototype.PG=function(){if(this.Cq.length>0){this.getParent().set("cursor",n.cd);this.Cq=[]}};a.prototype.Fwa=function(a){this.Ju.push(a);this.LD()};a.prototype.ywa=function(a){a= b(this.Ju).lastIndexOf(a);a>=0&&this.Ju.splice(a,1);this.LD()};a.prototype.LD=function(){var a=this.Ju.length==0?"":this.Ju[this.Ju.length-1]||"";if(this.xa!=a){this.xa=a;this.getParent().set("toolTip",this.xa)}};a.prototype.iia=function(){this.xa&&this.getParent().set("toolTip","");this.xa="";this.Ju=[]};a.prototype.gj=function(){this.iia();this.PG();j.prototype.gj.call(this)};a.prototype.nb=function(){this.W$();this.zW()};a.prototype.W$=function(){this.mf.Cb().css({transform:g.Pg!=1?"scale("+(1/ g.Pg).toFixed(3)+")":"none","transform-origin":"0% 0%"});this.mf.setSize(this.Ba()*g.Pg,this.hb()*g.Pg);this.render()};a.prototype.hh=function(){this.NU=p;this.BW()};a.prototype.eh=function(){this.NU=z;this.BW()};a.prototype.BW=function(){var a=this.NU&&!i.isPresenting();if(this.zu!=a)(this.zu=a)&&this.render()};return a}); define("I","dm,fd,iU,bY,dT,jK,ct,di,jd,hm,hU,lc,dk,fj".split(","),function(a,b,c,e,d,f,g,k,i,n,j,l,q,o){var t=b.extend(g,function(){g.call(this,"map");this.HI=this.cT=this.rh=z;this.bj=this.Bb=this.q=this.g=r;this.nq={};for(var a in t.Tn)this.nq[a]=this.Cia(a);this.pd=b.Bn(this.rf,this)});d.A("MapPlayer",t).B("Object").L({map:"Map",viewerArea:"ViewerArea",movementMode:"enum[constrained, free_drag, free_drag_and_rotation, sync_with_field_of_view]",buttonZoomIn:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonZoomOut:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateCounterClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]"}).Vb([l.SF]).Rg({stop:function(){this.vb(n.je)},rotateClockwise:function(){this.vb(n.uO)},rotateCounterClockwise:function(){this.vb(n.vO)},zoomIn:function(){this.vb(n.Rn)},zoomOut:function(){this.vb(n.Sn)}});t.prototype.set=function(a, b){if(this.get(a)!=b){switch(a){case "map":this.cT=p;this.pd();break;case "viewerArea":this.rh=p;this.pd();break;case "panoramaMapLocation":this.XT=p;this.pd();break;case "movementMode":this.HI=p;this.pd()}g.prototype.set.call(this,a,b)}};t.prototype.Cia=function(a){var b=t.Tn[a],a=new f(this,a,q.Tc);a.bind(l.xb,function(){this.vb(b.movement)},this);b.stopOnRelease&&a.bind(l.cc,function(){this.vb(n.je)},this);return a};t.prototype.kta=function(a){this.bj=r;this.set("map",a.get("map"));this.set("panoramaMapLocation", a)};t.prototype.Qwa=function(a){if(this.get("panoramaMapLocation")==a){this.set("panoramaMapLocation",r);this.bj=r}};t.prototype.zj=function(a,b,c,d){this.q&&this.q.zj(a,b,c,d);this.bj={yaw:b,pitch:c,hfov:d}};t.prototype.rf=function(){if(this.rh){this.rh=z;this.vt();this.get("viewerArea")&&this.tt();this.pK(this.get("viewerArea"))}if(this.q){if(this.cT){this.cT=z;var a=this.get("map");if(a){this.QJ();this.q.Sda(a)}else this.q.Gv();this.XT=this.HI=p}if(this.XT){this.XT=z;a=this.get("panoramaMapLocation"); this.q.Lp(a);a&&this.bj&&this.q.zj(a,this.bj.yaw,this.bj.pitch,this.bj.hfov)}if(this.HI){this.HI=z;this.q.hm(this.get("movementMode"))}}};t.prototype.lD=function(){this.set("map",r)};t.prototype.tt=function(){var a=this.get("viewerArea");this.g=new j;this.g.N({left:0,top:0,bottom:0,right:0});a.ma(this.g);this.q=new i(a,this.g);this.q.bind(i.Ug,this.pl,this);this.q.bind(i.km,this.Jo,this);this.q.bind(i.Cs,this.Cx,this);this.q.bind(i.Es,this.fr,this);this.q.bind(i.Ds,this.Ko,this);this.q.bind(i.Vg, this.hC,this,p)};t.prototype.vt=function(){if(this.g){this.q.unbind(i.Ug,this.pl,this);this.q.unbind(i.km,this.Jo,this);this.q.unbind(i.Cs,this.Cx,this);this.q.unbind(i.Es,this.fr,this);this.q.unbind(i.Ds,this.Ko,this);this.q.unbind(i.Vg,this.hC,this);this.q.clear();this.g.getParent().removeChild(this.g);this.g=r}};t.prototype.fr=function(a){this.zI(a.data.map)};t.prototype.Ko=function(a){this.yI(a.data.map)};t.prototype.pl=function(a){for(var b in t.Tn)this.nq[b].set("state",a.data[t.Tn[b].pressedOn]? o.za:o.cd);this.trigger(new e(l.SF,a.data))};t.prototype.hC=function(a){this.trigger(new e(t.Vg,{yawDelta:a.data.yawDelta}))};t.prototype.Jo=function(a){this.g.getParent().N({progressPercent:a.data.percent,progressVisible:p})};t.prototype.Cx=function(){this.g.getParent().set("progressVisible",z)};t.prototype.vb=function(a){this.q&&this.q.Sg(a)};t.Tn={buttonRotateClockwise:{movement:n.uO,pressedOn:"rotatingClockwise",stopOnRelease:p},buttonRotateCounterClockwise:{movement:n.vO,pressedOn:"rotatingCounterClockwise", stopOnRelease:p},buttonZoomIn:{movement:n.Rn,pressedOn:"zoomingIn",stopOnRelease:p},buttonZoomOut:{movement:n.Sn,pressedOn:"zoomingOut",stopOnRelease:p}};t.Vg="requestYawChange";return t}); define("dj",["fd","iU","lc","bY","dT"],function(a,b,c,e,d){a=a.extend(b,function(){b.call(this);this.gg=z});d.A("PlayListItem",a).B("Object").L({media:"Media",label:"string"}).Vb([c.Di,c.Jk,c.je,c.Da]);a.prototype.start=function(){this.trigger(new e(c.Di))};a.prototype.stop=function(){this.rF()};a.prototype.rF=function(){this.trigger(new e(c.je))};a.prototype.Dy=function(){this.gg=p;this.trigger(new e(c.Jk))};a.prototype.end=function(){this.gg=z;this.trigger(new e(c.Da))};return a}); define("lw",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("MapPlayListItem",a).B("PlayListItem").L({media:"Map",player:"MapPlayer"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.yf,this.fr,this),a.set("map",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&a.get("map")==this.get("media")&&a.set("map",r);e.prototype.stop.call(this)};a.prototype.fr=function(){this.get("player").unbind(c.yf, this.fr,this);this.get("player").bind(c.Bh,this.Ko,this);this.Dy();this.get("player").get("map")!=this.get("media")&&this.Ko()};a.prototype.Ko=function(){this.get("player").unbind(c.Bh,this.Ko,this);this.end()};return a}); define("gx",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("distance",2)});a.A("Menu",b).B("MenuItem").L({backgroundColor:"color",rollOverBackgroundColor:"color",selectedBackgroundColor:"color",opacity:"number",rollOverOpacity:"number",fontFamily:"string",fontColor:"color",rollOverFontColor:"color",selectedFontColor:"color",distance:"number"}).Vb([e.tc,e.Ib]).Wf([e.T]);return b}); define("m",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("MenuItem",b).B("Object").L({label:"string",children:"array[MenuItem]"}).Vb([e.tc,e.Ib]).Wf([e.T]);return b}); define("hY",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("MovementPhotoCamera",a).B("PhotoCamera").L({duration:"number",easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",initialPosition:"PhotoCameraPosition",targetPosition:"PhotoCameraPosition"});return a}); define("ga",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Object",a).L({id:"identifier",data:"*"});return a});define("cd",[],function(){var a={Bs:"drag_acceleration",Kn:"drag_rotation"};a.K_=a.Bs;a.D0=a.Kn;return a});define("lo",["fd","bY"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.hz=this.Cz=this.Cp=this.Tp=0})});define("kk",["fd","bY"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.jY=this.rva=0})}); define("eb","require,fd,dm,lc,bY,eL,cd,lo,kk".split(","),function(a){function b(a,b){return a*b}function c(a){var b=a>0?1:-1;return b*(Math.pow(10,b*a)-1)/9}function e(a,b){return Math.min(Math.max(a/b,-1),1)}var d=a("fd");a("dm");var f=a("lc"),g=a("bY"),k=a("eL"),i=a("cd"),n=a("lo"),j=a("kk"),l=d.extend(k,function(){k.call(this);this.L5=this.M5=1800;this.Tw=7;this.Ima=this.Cra=0;this.nB=z;this.ci=m;this.Zt=i.K_;this.u$=i.D0;this.Tw=0;this.aK=m;this.RD=z;this.xw=r;this.Kt=3;this.ba=90;this.XQ=this.Hu= this.oc=1;this.Ac=this.sa=r;this.xC=z});l.prototype.js=function(a){this.M5=a.get("manualRotationSpeed");this.L5=a.get("manualRotationSpeed");this.Kt=a.get("manualZoomSpeed");this.XQ=a.get("draggingFactor")};l.prototype.ns=function(a){this.Zt=a;this.EW()};l.prototype.Ov=function(a){this.u$=a;this.EW()};l.prototype.Jv=function(a){this.ba=a;this.Hu=this.ba/90};l.prototype.Fv=function(a){this.mi();if(a){this.sa=a;if(this.Ac=a.Hua&&a.Ac){this.Ac.bind(f.xb,this.U7,this,p);this.Ac.bind(f.cc,this.V7,this, p)}this.sa.bind(f.xb,this.lc,this,p);this.sa.bind(f.Lc,this.Bg,this,p);this.sa.bind(f.cc,this.Cg,this,p);this.sa.bind(f.Yp,this.$t,this,p);this.sa.Ua().get("settings").get(TDV.PlayerSettings.vfa)!==z&&this.sa.bind(f.Zv,this.Ht,this,p);this.sa.bind(f.MF,this.Y3,this,p);this.sa.bind(f.LF,this.W3,this,p);this.EW()}};l.prototype.mi=function(){if(this.sa!=r){if(this.Ac){this.Ac.unbind(f.xb,this.U7,this);this.Ac.unbind(f.cc,this.V7,this);this.Ac=r}this.sa.unbind(f.xb,this.lc,this);this.sa.unbind(f.Lc,this.Bg, this);this.sa.unbind(f.cc,this.Cg,this);this.sa.unbind(f.Yp,this.$t,this);this.sa.unbind(f.Zv,this.Ht,this);this.sa.unbind(f.MF,this.Y3,this);this.sa.unbind(f.LF,this.W3,this);this.sa=r;this.oH()}};l.prototype.EW=function(){if(this.sa)if(this.sa.Yj){this.aK=this.u$;this.Tw=this.Cra}else{this.aK=this.Zt;this.Tw=this.Ima}};l.prototype.U7=function(){this.xC=p};l.prototype.V7=function(){this.xC=z};l.prototype.lc=function(a){if(!this.xC){this.Wqa(a);this.GV()}};l.prototype.Bg=function(a){this.xC||this.wy(a)}; l.prototype.Cg=function(){if(!this.xC){this.fR();this.oH()}};l.prototype.$t=function(a){this.MW(a);this.GV(500)};l.prototype.Y3=function(){this.GV()};l.prototype.Ht=function(a){this.NW(a)};l.prototype.W3=function(){this.oH()};l.prototype.Wqa=function(a){this.nB=p;this.ci=a;this.wy(a)};l.prototype.wy=function(a){if(this.nB)switch(this.aK){case i.Bs:this.Dsa(a);break;case i.Kn:this.Csa(a)}};l.prototype.Dsa=function(a){this.caa(+b(c(e(Math.abs(a.x-this.ci.x)<3?0:a.x-this.ci.x,this.sa.Ba())),this.M5* this.Hu),-b(c(e(Math.abs(a.y-this.ci.y)<3?0:a.y-this.ci.y,this.sa.hb())),this.L5*this.Hu))};l.prototype.Csa=function(a){this.DW(-b(e(a.x-this.ci.x,this.sa.Ba()),this.ba*this.XQ),+b(e(a.y-this.ci.y,this.sa.Ba()),this.ba*this.XQ));this.ci=a};l.prototype.fR=function(){if(this.nB){this.nB=z;switch(this.aK){case i.Bs:this.caa(0,0)}}};l.prototype.caa=function(a,b){var c=new n(l.Ln);c.Tp=a;c.Cp=b;this.trigger(c)};l.prototype.DW=function(a,b){var c=new n(l.Ln);c.Cz=a;c.hz=b;this.trigger(c)};l.prototype.NW= function(a){if(this.oc!=a.scale){this.fR();var b=this.oc;this.oc=a.scale;a=new j(l.Pk);a.jY=this.ba*b/this.oc-this.ba;this.trigger(a)}};l.prototype.MW=function(a){if(a.op!=0){this.fR();var b=new j(l.Pk);b.jY=this.ba*-a.op*this.Kt/100;this.trigger(b)}};l.prototype.GV=function(a){var b=this.xw!=r;this.W9();if(a&&(b||!this.RD)){var c=this;this.xw=setTimeout(function(){c.xw=r;c.oH()},a)}if(!this.RD){this.RD=p;this.trigger(new g(l.ve))}};l.prototype.oH=function(){this.W9();if(this.RD){this.RD=z;this.trigger(new g(l.ue))}}; l.prototype.W9=function(){if(this.xw!=r){clearTimeout(this.xw);this.xw=r}};l.Ln="rotation change";l.Pk="zoom change";l.ve="user interaction start";l.ue="user interaction end";return l}); define("cL",["require","r"],function(a){function b(){this.ara=e.Wa()?0.066:0.1;this.Jma=0.5;this.Nqa=e.Wa()?0.066:0.1;this.ata=0.1;this.zK=this.EK=z;this.reset()}function c(a,b,c){a=(b-a)*(1-c);0.01>Math.abs(a)&&(a=0);return b-a}var e=a("r");b.prototype.reset=function(){this.k3=this.uQ=this.Nw=this.zq=this.GA=this.yQ=this.xQ=this.CQ=this.ix=this.Kt=this.WJ=this.YJ=this.zl=this.wC=this.dn=this.cE=0};b.prototype.xZ=function(a,b,c,e,i,n,j,l,q){return this.cE!=a||(this.wC=b)||this.YJ!=c||0!=e||0!=i|| this.zK!=j||this.U5!=l||this.EK!=q?(this.cE=a,this.wC=b,this.YJ=c,this.dn+=e,this.zl+=i,this.WJ+=n,this.zK=j,this.U5=l,this.EK=q,p):z};b.prototype.vya=function(a,b){return this.Kt!=a||0!=b?(this.Kt=a,this.ix+=b,p):z};b.prototype.jd=function(){return 0!=this.CQ||0!=this.xQ||0!=this.yQ||0!=this.GA||0!=this.cE||0!=this.wC||0!=this.YJ||0!=this.Kt||0!=this.dn||0!=this.zl||0!=this.ix};b.prototype.eb=function(a){var a=1E3/a,b=this.CQ/a,e=this.cE/a+this.dn;this.dn=0;var k=this.xQ/a,i=this.wC/a+this.zl;this.zl= 0;var n=this.yQ/a,j=this.YJ/a+this.WJ;this.WJ=0;var l=this.Kt+this.ix*a;this.ix=0;var q=0==e&&0==i&&0==j,o=0==b&&0==k&&0==n;this.zK&&o&&!q||this.EK&&q&&!o||this.U5&&!q&&!o?(q=q?this.ara:o?this.Nqa:this.Jma,this.zq=c(b,e,q),this.Nw=c(k,i,q),this.uQ=c(n,j,q)):(this.zq=e,this.Nw=i,this.uQ=j);b=0==this.GA;e=0==l;this.GA=this.zK&&b&&!e||this.EK&&e&&!b?c(this.GA,l,this.ata):l;this.CQ=this.zq*a;this.xQ=this.Nw*a;this.yQ=this.uQ*a;this.k3=this.GA/a};return b}); define("cs","jquery.mod,fd,d,eb,cL,V,lc".split(","),function(a,b,c,e,d,f,g){b=b.extend(c,function(){c.call(this);this.Xc("Renderer");this.u=a("");this.u.css({position:"absolute",left:0,top:0});this.Pa().append(this.u);this.Tq=r;this.$=this.lx=this.jx=this.kx=0;this.gg=z;this.roa=150;this.gB=0;this.Ui=r;this.bind(g.yb,this.nb,this,p);this.va=new e;this.va.QAa(720);this.va.$E(0);this.va.ns("drag_rotation");this.va.Jv(360);this.va.bind(e.Ln,this.Gna,this);this.ab=new d});b.prototype.Bxa= function(a,b,c){this.Tq=a;this.kx=b;this.jx=c;this.lx=Math.floor(this.Tq.length*this.$/360);this.RU();this.va.Fv(this);this.fa()};b.prototype.Dta=function(){this.Tq=r;this.Um();this.RU();this.va.mi()};b.prototype.play=function(){this.gg=p;this.fa()};b.prototype.Gna=function(a){this.Um();this.ab.xZ(a.Tp,a.Cp,0,a.Cz,a.hz,0,z,p);this.fa()};b.prototype.zT=function(){this.play()};b.prototype.Dg=function(a){if(this.Tq)if(this.ab.jd()){this.gg=z;this.ab.eb(a);this.I1(this.ab.zq);this.fa()}else if(this.gg){this.I1(this.roa* a/1E3);this.fa()}else this.nx()||this.hD()};b.prototype.aea=function(a){for(this.$=a;this.$<0;)this.$=this.$+360;for(;this.$>=360;)this.$=this.$-360;this.lsa()};b.prototype.lsa=function(){if(this.Tq){var a=Math.floor(this.Tq.length*this.$/360);if(this.lx!=a){this.lx=a;this.u8()}}};b.prototype.I1=function(a){this.aea(this.$+a)};b.prototype.nb=function(){this.RU()};b.prototype.RU=function(){var a=this.u.get(0);if(this.kx==0||this.jx==0){a.width=0;a.height=0}else{var b=this.Gd(),c=this.Fd();if(c*this.kx> b*this.jx){a.width=b;a.height=this.jx*b/this.kx}else{a.height=c;a.width=this.kx*c/this.jx}this.u.css({left:Math.round((b-a.width)*0.5)+"px",top:Math.round((c-a.height)*0.5)+"px"});this.u8()}};b.prototype.u8=function(){if(this.Tq){var a=this.u.get(0),b=this.Tq[this.lx];a.getContext("2d").drawImage(b,0,0,this.kx,this.jx,0,0,a.width,a.height)}};b.prototype.nx=function(){return this.Ui?p:z};b.prototype.hD=function(){this.Um();if(this.gB>0){var a=this;this.Ui=setTimeout(function(){a.Ui=r;a.zT()},this.gB)}}; b.prototype.Um=function(){if(this.Ui){clearTimeout(this.Ui);this.Ui=r}};b.prototype.fa=function(){f.Ma(this.Dg,this)};return b}); define("jt","require,jquery.mod,dm,fd,lc,gb,bY,dT,eE,cq,cs,kJ,hW".split(","),function(a){a("jquery.mod");var b=a("dm"),c=a("fd"),e=a("lc"),d=a("gb"),f=a("bY"),g=a("dT");a("eE");ProgressBar=a("cq");Renderer=a("cs");Container=a("kJ");ImageLoader=a("hW");a=c.extend(Container,function(){Container.call(this);this.ed=this.Wi=this.Te=this.g=r;this.bind(e.md,this.hh,this);this.bind(e.yd,this.eh,this)});g.A("Object3D",a).B("UIComponent").L({frames:"array[ImageResource]",yaw:"number"}).Vb([e.S]);a.prototype.Ia= function(){Container.prototype.Ia.call(this);if(!this.g){this.g=new Renderer;this.g.N({left:0,top:0,right:0,bottom:0});this.ma(this.g)}if(!this.Te){this.Te=new ProgressBar;this.Te.N({left:0,bottom:0,right:0,height:20,visible:z});this.ma(this.Te)}};a.prototype.hh=function(){this.yB()};a.prototype.eh=function(){this.qk()};a.prototype.yB=function(){this.Te.set("percent",0);this.Te.set("visible",p);this.g.aea(this.get("yaw"));var a=this.get("frames",[]);this.Wi=[];this.ed=[];for(var b=0;be.indexOf(a)?b.push(a):d.push(a)});b.forEach(function(a){a.iv().ic(c.K)});this.Yk=d;this.YR=z};b.prototype.start=function(a){this.end(a);this.Yk=this.D4(a);this.YR=0=2){x=parseFloat(x[1]);break a}x=m}x=x!==m?2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.fT*45*x/100):this.eB?(this.mR?d.Gn(this.eB,this.W,this.ea):this.eB)*j:2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.fT*45);x=Math.min(w,x);if(this.d5){s=360;v=180;u=0}else if(this.$R||this.XR){s=this.XR?90:this.sC+this.nJ*0.5;var y=this.$R?-90:this.sC-this.nJ*0.5;v=s-y;u=(s+y)*0.5;s=this.VT}else{s=this.VT;u=this.sC;v=this.nJ}s=s*j;v=v*j;u=u*j;for(y=this.W/this.ea;a<-i;)a=a+2*i;for(;a>i;)a= a-2*i;k=Math.max(Math.min(k,w),x);w=b.Vs;e>n?w=w|b.Ys:e<-n&&(w=w|b.Us);var e=Math.max(Math.min(e,i*0.5),-i*0.5),F=2*Math.atan(Math.tan(k*0.5)/y);if(F>=v){k=2*Math.atan(Math.tan(v*0.5)*y);e=u;w=w|b.Ys|b.Us}else{var A=Math.min(v*0.5+u,i*0.5);v=Math.max(-v*0.5+u,-i*0.5);u=!this.lu&&A>=i*0.495?i*0.5:A-F*0.5;v=!this.lu&&v<=-i*0.495?-i*0.5:v+F*0.5;if(e>u){e=u;w=w|b.Ys}else if(e0?y:-y,1);v=new f;v.Cn(-e);y.apply(v);y=y.Ub()*2;y<0&&(y=y+2* i);v=s*0.5-y*0.5;F=-s*0.5+y*0.5;if(y>s){a=0;k=Math.max(x,k*s/y);w=w|b.kw|b.lw}else if(a>v){a=v;w=w|b.lw}else if(ab;)a=a-360;return a};a.prototype.eu=function(){this.V&&this.sk()};a.prototype.sk=function(){this.trigger(new c(b.aa))};return a});define("fT",["require"],function(){return{aG:38,DF:40,Ka:39,oa:37,eN:65,HO:90}});define("dp",[],function(){return{cw:"left",dw:"right",bw:"down",ew:"up",r0:"rotate10x",P0:"zoom2x",R:"playing",Rn:"zoomIn",Sn:"zoomOut",je:"stop"}}); define("ef","require,fd,fT,bY,eL,dp".split(","),function(a){var b=a("fd"),c=a("fT"),e=a("bY"),d=a("eL"),f=a("dp"),g=b.extend(d,function(a){d.call(this);this.g=a;this.V=z;this.Hf={};this.fD=r;this.$C=this.eD=z;this.gI=this.gI.bind(this);this.Ao=this.Ao.bind(this);this.Qb=this.g.Qb;document.addEventListener("keydown",this.gI);document.addEventListener("keyup",this.Ao)});g.prototype.clear=function(){this.V=z;this.Qb=this.g=r;document.removeEventListener("keydown",this.gI);document.removeEventListener("keyup", this.Ao)};g.prototype.ld=function(a){if(this.V!=a)(this.V=a)&&this.VK()};var k=[c.aG,c.DF,c.oa,c.Ka,c.eN,c.HO];g.prototype.gI=function(a){var b=a.which,c=z;if(!this.Hf[b]&&k.indexOf(b)>=0){if(!this.fD&&!this.eD)this.fD=setTimeout(this.Jna.bind(this),100);c=this.Hf[b]=p}if(this.$C!=a.shiftKey){this.$C=a.shiftKey;c=p}c&&this.VK()};g.prototype.Jna=function(){this.eD=p;this.VK()};g.prototype.Ao=function(a){var b=a.which,c=z;if(b in this.Hf){delete this.Hf[b];c=z;for(b in this.Hf)this.Hf[b]&&(c=p);if(!c){this.fD&& clearTimeout(this.fD);this.fD=r;this.eD=z}c=p}if(this.$C!=a.shiftKey){this.$C=a.shiftKey;c=p}c&&this.VK()};g.prototype.VK=function(){if(this.V){var a=this.Qb.get("arrowKeysAction");if(a!="none"){var a=a=="rotate",b=[];this.Hf[c.eN]?b.push(f.Rn):this.Hf[c.HO]&&b.push(f.Sn);this.eD&&(this.Hf[c.eN]||this.Hf[c.HO])&&b.push(f.P0);this.Hf[c.oa]?b.push(f.cw):this.Hf[c.Ka]&&b.push(f.dw);if(a||this.$C)this.Hf[c.aG]?b.push(f.ew):this.Hf[c.DF]&&b.push(f.bw);this.eD&&(this.Hf[c.oa]||this.Hf[c.Ka]||this.Hf[c.aG]|| this.Hf[c.DF])&&b.push(f.r0);b.length==0&&b.push(f.je);this.trigger(new e(g.NN,{Pca:b}))}}};g.NN="movementsChange";return g}); define("lj",["require"],function(){function a(){this.Zs=p;this.reset()}function b(a,b){var d=0.5*(b-a);0.01>Math.abs(d)&&(d=0);return b-d}a.prototype.reset=function(){this.Zs&&(this.Zs=z,this.HK=this.IK=this.dp=this.lj=this.Ow=this.Rw=this.Pw=this.Bq=m)};a.prototype.moveTo=function(a,b,d,f,g){this.lj=a;this.dp=b;this.IK=d;this.HK=f;this.tS=g;this.Zs=p};a.prototype.Fa=function(a,b,d,f){this.Bq=a;this.Pw=b;this.Rw=d;this.Ow=f};a.prototype.Yl=R("Bq");a.prototype.Xl=R("Pw");a.prototype.bs=R("Rw");a.prototype.jv= R("Ow");a.prototype.jd=R("Zs");a.prototype.eb=function(){if(this.Zs)if(this.tS)this.Bq=this.lj,this.Pw=this.dp,this.Rw=this.IK,this.Ow=this.HK,this.Zs=z;else{for(var a=this.Bq,e=this.lj-180,d=this.lj+180;ad;)a-=d-e;this.Bq=a;this.Bq=b(this.Bq,this.lj);this.Pw=b(this.Pw,this.dp);this.Rw=b(this.Rw,this.IK);this.Ow=b(this.Ow,this.HK);this.Bq==this.lj&&this.Pw==this.dp&&this.Rw==this.IK&&this.Ow==this.HK&&(this.Zs=z)}};return a}); define("bU",["require","kl","jk","bi"],function(a){function b(){this.V=z;this.Gb=this.na=this.$=0;this.jI=m}var c=a("kl"),e=a("jk"),d=a("bi");b.prototype.ld=function(a){this.V!=a&&(this.V=a,this.jI=m)};b.prototype.Fa=function(a,b,c){this.$=a;this.na=b;this.Gb=c};b.prototype.Yl=R("$");b.prototype.Xl=R("na");b.prototype.bs=R("Gb");b.prototype.jd=S(p);b.prototype.eb=function(){var a=c.OZ(d.sn().orientation);this.$+=this.jI===m?0:a.ja-this.jI;this.jI=a.ja;this.na=a.pitch;this.Gb=a.kd;this.na=g===m?a.pitch: g;this.Gb=f===m?a.kd:f};var f=e.Vf("debug")?e.RL("force_vr_roll"):m,g=e.Vf("debug")?e.RL("force_vr_pitch"):m;return b}); define("f","require,dm,fd,lc,bY,eL,cd,fL,ef,cL,eb,lj,bU,dp,bi,R".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("cd"),k=a("fL"),i=a("ef"),n=a("cL"),j=a("eb"),l=a("lj"),q=a("bU"),o=a("dp"),t=a("bi"),s=a("R"),u=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.Qb=this.g.Qb;this.H=b;this.pb=c;this.ur=this.Nq=this.aB=this.JJ=this.V=z;this.ab=new n;this.Jl=new l;this.Gb=this.na=this.$=0;this.ba=90;this.Hu=1;this.hf=m;this.sP=this.gA=5;this.Or=z;this.va=new j;this.va.bind(j.Ln, this.YB,this,p);this.va.bind(j.Pk,this.hr,this,p);this.va.bind(j.ve,this.ul,this,p);this.va.bind(j.ue,this.tl,this,p);this.Lh=new k;this.Lh.bind(e.aa,this.x6,this);this.Mq=z;this.Vi=new i(this.g);this.Vi.bind(i.NN,this.J6,this,p);this.bn=new q;t.bind(e.aa,this.dk,this,p);this.dk()});u.prototype.clear=function(){this.va.unbind(j.Ln,this.YB,this,p);this.va.unbind(j.Pk,this.hr,this,p);this.va.unbind(j.ve,this.ul,this,p);this.va.unbind(j.ue,this.tl,this,p);this.va.mi();this.va=r;this.Lh.unbind(e.aa,this.x6, this);this.Lh=r;this.Vi.unbind(i.NN,this.J6,this,p);this.Vi.clear();this.Vi=r;t.unbind(e.aa,this.dk,this,p);this.pb=this.H=this.ab=r;this.PG();this.g=this.Qb=r};u.prototype.js=function(a){this.ab.reset();this.Jl.reset();this.va.js(a);this.gA=a.get("automaticRotationSpeed");this.sP=a.get("automaticZoomSpeed")};u.prototype.Sg=function(a){function c(d){return b(a).contains(d)}b.isArray(a)||(a=[a]);var d=0,e=0,f=0,g=z;if(!c(o.je)){c(o.cw)?d=-this.gA:c(o.dw)&&(d=+this.gA);c(o.bw)?e=-this.gA:c(o.ew)&&(e= +this.gA);c(o.Rn)?f=-this.sP:c(o.Sn)&&(f=+this.sP);c(o.R)&&(g=p);c(o.P0)&&(f=f*2);if(c(o.r0)){d=d*10;e=e*10}d=d*this.Hu;e=e*this.Hu}this.vb(d,e,0,f,0,0,0,0,g,p,p,p)};u.prototype.Fa=function(a,b,c,d){this.$=a;this.na=b;this.Gb=c;this.ba=d;this.Hu=this.ba/90;this.Lh.Fa(this.$,this.na,this.Gb);this.bn.Fa(this.$,this.na,this.Gb);this.va.Jv(this.ba);this.Jl.Fa(this.$,this.na,this.Gb,this.ba)};u.prototype.moveTo=function(a,b,c,d,e){this.Jl.moveTo(a,b,c,this.pb.gba(d),e);this.JJ=z;this.ab.reset();this.qf()}; u.prototype.yZ=function(a,b,c){this.vb(0,0,0,0,a,b,c,0,z,z,z)};u.prototype.jd=function(){return this.V&&(this.ur||this.aN())?p:z};u.prototype.Gta=function(){this.ur=this.Or=z};u.prototype.aN=function(){return this.V?this.Or?p:this.bn.V?this.bn.jd()||this.ab.jd():this.Lh.V?this.Mq?p:this.Lh.jd()||this.ab.jd():this.ab.jd()||this.Jl.jd():z};u.prototype.eb=function(a){this.Or=z;this.ab.eb(a);this.ur=z;var b,c,d;d=this.ba;if(this.bn.V){this.bn.eb(a);a=this.bn.Yl()+this.ab.zq;b=this.bn.Xl();c=this.bn.bs()}else if(this.Jl.jd()){this.Jl.eb(a); a=this.Jl.Yl();b=this.Jl.Xl();c=this.Jl.bs();d=this.Jl.jv()}else{if(this.Lh.V){this.Mq=z;this.Lh.eb(a);a=this.Lh.Yl()+this.ab.zq;b=this.Lh.Xl();this.aB&&(b=b+this.ab.Nw);c=this.Lh.bs()}else{a=this.$+this.ab.zq;b=this.na+this.ab.Nw;c=0}d=d+this.ab.k3}this.pb.em(d);this.H.Fa(a,b,c,this.pb.He(),this.pb.qp());this.$=this.H.Ub();this.na=this.H.$b();this.Gb=this.H.Od();this.ba=this.H.tp();if(this.JJ&&this.H.Zba()){d=this.ab.cE;if(this.H.Yba()||this.H.$ba())d=-d;a=this.ab.wC;if(this.H.aca()||this.H.Xba())a= -a;this.vb(d,a,0,0,0,0,0,0,p,z,z,p)}};u.prototype.Yl=R("$");u.prototype.Xl=R("na");u.prototype.bs=R("Gb");u.prototype.jv=R("ba");u.prototype.ld=function(a){if(this.V!=a){if(this.V=a){this.Gr(this.va.Zt==g.Kn?s.NF:m);this.va.Fv(this.g.getParent());this.qf()}else{this.PG();this.va.mi()}this.xW()}};u.prototype.bF=function(a){if(this.Nq!=a){this.Nq=a;this.xW();this.Mq=p}};u.prototype.ls=function(a){this.Vi.ld(a)};u.prototype.xW=function(){this.Lh.ld(this.V&&this.Nq&&!t.isPresenting());this.bn.ld(this.V&& t.isPresenting())};u.prototype.x6=function(){this.qf()};u.prototype.cF=function(a){this.aB=a;this.Lh.rya(this.aB)};u.prototype.ns=function(a){this.va.ns(a);this.Gr(this.va.Zt==g.Kn?s.NF:m)};u.prototype.Ov=function(a){this.va.Ov(a)};u.prototype.dk=function(){this.xW();this.qf()};u.prototype.YB=function(a){var b=!this.bn.V&&(!this.Lh.V||this.aB);if(this.va.Zt==g.Bs){var c=m;if(a.Tp!=0||a.Cp!=0){var d=Math.sqrt(a.Cp*a.Cp+a.Tp*a.Tp)>25,e=Math.atan2(a.Cp,a.Tp)*180/Math.PI;e>=-22.5&&e<22.5?c=d?s.N_:s.M_: e>=22.5&&e<67.5?c=d?s.P_:s.W_:e>=67.5&&e<112.5?c=d?s.O_:s.V_:e>=112.5&&e<157.5?c=d?s.Q_:s.X_:e>=157.5||e<-157.5?c=d?s.U_:s.a0:e>=-157.5&&e<-112.5?c=d?s.T_:s.$_:e>=-112.5&&e<-67.5?c=d?s.R_:s.Y_:e>=-67.5&&e<-22.5&&(c=d?s.S_:s.Z_)}this.Gr(c);this.vb(a.Tp,a.Cp,0,0,a.Cz,a.hz,0,0,z,z,z,b)}else this.vb(a.Tp,a.Cp,0,0,a.Cz,a.hz,0,0,z,z,b,b)};u.prototype.hr=function(a){this.vb(0,0,0,a.rva,0,0,0,a.jY,z,p,z,p)};u.prototype.vb=function(a,b,c,d,e,f,g,i,j,k,l,n){a=this.ab.xZ(a,b,c,e,f,g,k,l,n)||z;this.Qb.get("zoomEnabled")&& (a=this.ab.vya(d,i)||a);if(a){this.Jl.reset();this.JJ=j;this.qf()}};u.prototype.qf=function(){this.ur=p;this.trigger(new d(u.df))};u.prototype.ul=function(){this.Or=p;this.trigger(new d(u.ve));this.va.Zt==g.Kn&&this.Gr(s.OF)};u.prototype.tl=function(){this.trigger(new d(u.ue));this.va.Zt==g.Kn&&this.Gr(s.NF)};u.prototype.J6=function(a){this.Sg(a.data.Pca);a.data.Pca.indexOf(o.je)<0&&this.g.Ua().trigger(new d(e.HF,{cea:a}))};u.prototype.Gr=function(a){if(this.hf!=a&&this.V){this.hf&&this.g.iz(this.hf); (this.hf=a)&&this.g.DM(this.hf)}};u.prototype.PG=function(){if(this.hf){this.g.iz(this.hf);this.hf=m}};u.df="position change request";u.ve="user interaction start";u.ue="user interaction end";return u}); define("jM",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("TargetRotationalCameraMovement",b).B("RotationalCameraMovement").L({path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number"});return b}); define("G","require,fd,lc,fr,bY,eL,dT,fl,jM,kO,bq".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("bY"),f=a("eL"),g=a("dT");a("fl");a("jM");var k=a("kO"),i=a("bq"),n=b.extend(f,function(a,b,c){f.call(this);this.g=a;this.H=b;this.pb=c;this.Zx=this.td=r;this.qr=this.rr=z;this.nu=m;this.yx=[];this.OU=0;this.O=r;this.na=this.$=0;this.ba=90});n.prototype.clear=function(){this.end();this.H=this.g=r};n.prototype.start=function(a){this.qqa(a);this.ioa();this.qr=z;this.C2();this.rr=z;this.qf(); this.Ig()};n.prototype.end=function(){if(this.td!=r){this.I2();this.rr=this.qr=z;this.O=r;this.Ig()}};n.prototype.swa=function(){if(this.td&&this.td.get("restartMovementOnUserInteraction")){if(!this.rr){this.d$();this.KV();this.O=r;this.rr=p;this.Ig()}}else this.pause()};n.prototype.wwa=function(){if(this.rr){this.rr=z;this.t5()||this.Vqa()}};n.prototype.qqa=function(a){this.I2();this.td=a;this.td.bind(c.Qs,this.r7,this,p);this.td.bind(c.VF,this.q7,this,p);this.td.bind(c.D("movementIndex"),this.VI, this,p);this.yx=this.td.get("movements",[])};n.prototype.I2=function(){this.KV();if(this.td!=r){this.td.unbind(c.Qs,this.r7,this);this.td.unbind(c.VF,this.q7,this);this.td.unbind(c.D("movementIndex"),this.VI,this);this.td.set("movementIndex",-1);this.td=r;this.yx=[]}};n.prototype.Og=function(){return this.td?this.qr?e.yc:e.R:e.K};n.prototype.Fa=function(a,b,c,d){this.$=a;this.na=b;this.ba=d};n.prototype.jd=function(){return this.td&&this.O&&!this.qr&&!this.rr&&!this.t5()?p:z};n.prototype.eb=function(a){if(this.jd()){this.O.eb(a); a=this.O.wb("hfov");if(this.pb.Aca()){var b=this.O.nba("hfov");b.hv=this.pb.AL(b.hv);b.yz=this.pb.AL(b.yz);a=this.pb.AL(a)}this.H.Fa(this.O.wb("yaw"),this.O.wb("pitch"),0,a,this.pb.qp());this.$=this.H.Ub();this.na=this.H.$b();this.ba=this.H.tp();this.O.Je()&&this.pna()}};n.prototype.Yl=R("$");n.prototype.Xl=R("na");n.prototype.jv=R("ba");n.prototype.play=function(){if(this.qr){this.qr=z;this.VI();this.C2();this.qf();this.Ig()}};n.prototype.pause=function(){if(!this.qr){this.qr=p;this.d$();this.Ig()}}; n.prototype.r7=function(){this.play()};n.prototype.q7=function(){this.pause()};n.prototype.ioa=function(){this.OU=0;var a=this.td.get("movementIndex",-1);a==-1&&(a=0);this.zJ(a)};n.prototype.koa=function(){this.OU++;var a=this.td.get("repeat",1);if(this.yx.length>0&&(a==0||this.OU=0?this.Hia(this.yx[a]):r};n.prototype.pna=function(){this.yx[this.td.get("movementIndex")].trigger(new d(c.Da));this.joa()};n.prototype.t5=function(){return this.Zx!=r};n.prototype.Vqa=function(){this.KV();var a=this,b=this.td.get("restartMovementDelay")||0;this.Zx=setTimeout(function(){a.Zx=r;a.Dna()},b);this.Ig()};n.prototype.KV=function(){if(this.Zx){clearTimeout(this.Zx); this.Zx=r}};n.prototype.Dna=function(){this.zJ(this.td.get("movementIndex"));this.qf();this.Ig()};n.prototype.Hia=function(a){var b,c,d,e=this.yu(this.$,-180,180),f=this.na,n=this.ba;if(g.ob("TargetRotationalCameraMovement",a)){b=a.get("targetYaw",e);c=a.get("targetPitch",f);if(d=a.get("targetHfov")){this.pb.Rda(d);d=this.pb.He()}else d=n;this.H.Fa(b,c,0,d,this.pb.qp());if(this.H.lu)b=this.H.Ub();else switch(this.Oja(a)){case "left":b=this.yu(b,e-360,e);break;case "right":b=this.yu(b,e,e+360);break; case "longest":b=this.yu(b,e-180,e+180);b=b>=e?this.yu(b,e-360,e):this.yu(b,e,e+360);break;default:b=this.yu(b,e-180,e+180)}}else if(g.ob("DistanceRotationalCameraMovement",a)){b=e+a.get("yawDelta",0);this.H.lu&&(b=Math.min(Math.max(-180,b),180));c=f+a.get("pitchDelta",0);d=n+a.get("hfovDelta",0);this.H.Fa(b,c,0,d,this.pb.qp());this.H.lu&&(b=this.H.Ub())}c=this.H.$b();d=this.H.tp();return new k(a.get("easing"),[new i("yaw",e,b,a.get("yawSpeed")),new i("pitch",f,c,a.get("pitchSpeed")),new i("hfov", n,d,a.get("hfovSpeed"))],a.get("duration"))};n.prototype.C2=function(){this.nu=m};n.prototype.d$=function(){if(this.O){this.nu=m;var a=this.O&&this.O.nba("yaw");if(a)if(a.yz>a.hv)this.nu="right";else if(a.yzc;)a=a-(c-b);return a};n.prototype.qf=function(){this.trigger(new d(n.df))};n.prototype.Ora=function(){this.trigger(new d(n.$N))}; n.prototype.Ig=function(){this.trigger(new d(n.bc))};n.df="position change request";n.$N="sequence end";n.bc="playback state change";return n}); define("bg","require,dm,fd,lc,bY,eL,gt,fw,f,G,dp,bi,fr".split(","),function(a){a("dm");var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("gt"),g=a("fw"),k=a("f"),i=a("G"),n=a("dp"),j=a("bi"),l=a("fr"),q=b.extend(d,function(a,b){d.call(this);this.g=a;this.g.bind(c.yb,this.nb,this);j.bind(c.aa,this.dk,this,p);this.pb=b;this.TU=z;this.ba=this.Gb=this.na=this.$=m;this.hn=this.gn=this.NB=this.QB=this.PB=this.OB=z;this.kj=p;this.ix=this.zl=0;this.V=z;this.Ui=r;this.gB=5E3;this.jB=this.pS=r;this.$U=[];this.Pf= this.iq=l.K;this.H=new f(a);this.Ra=new k(this.g,this.H,this.pb);this.Ra.bind(k.df,this.rl,this,p);this.Ra.bind(k.ve,this.ul,this,p);this.Ra.bind(k.ue,this.tl,this,p);this.Ti=new g(this.g,this.H,this.pb);this.Ti.bind(g.df,this.rl,this,p);this.hd=new i(this.g,this.H,this.pb);this.hd.bind(i.df,this.rl,this,p);this.hd.bind(i.$N,this.IT,this,p);this.hd.bind(i.bc,this.s7,this,p)});q.prototype.clear=function(){this.Um();this.Ra.unbind(k.df,this.rl,this);this.Ra.unbind(k.ve,this.ul,this,p);this.Ra.unbind(k.ue, this.tl,this,p);this.Ra.clear();this.Ra=r;this.Ti.unbind(g.df,this.rl,this,p);this.Ti.clear();this.Ti=r;this.hd.unbind(i.df,this.rl,this);this.hd.unbind(i.$N,this.IT,this);this.hd.unbind(i.bc,this.s7,this);this.hd.clear();this.H=this.hd=r;this.g.unbind(c.yb,this.nb,this);j.unbind(c.aa,this.dk,this,p);this.g=r;if(this.sb){this.sb.unbind(c.D("sequences"),this.JT,this,p);this.sb=r}this.nK([])};q.prototype.end=function(){this.iq=l.K;this.Um();this.Ra.ld(z);this.Ti.ld(z);this.hd.end();this.V=z;this.Yo(0, 0,0,0);this.jB=this.pS=r;if(this.sb){this.sb.unbind(c.D("sequences"),this.JT,this,p);this.sb=r}this.nK([]);this.Ou()};q.prototype.start=function(a,b){this.iq=l.R;this.V=p;this.Yo(0,0,0,0);this.VC(a);this.Mpa(b);this.t8();this.AK(this.jB);this.Ti.ld(p);this.Ou()};q.prototype.Og=R("Pf");q.prototype.play=function(){this.iq=l.R;this.hd.Og()==l.yc?this.hd.play():this.hd.Og()==l.K&&(this.jB?this.AK(this.jB):this.nx()||this.hD());this.Ou()};q.prototype.resume=function(){if(this.iq==l.yc){this.Ra.Gta();this.play()}}; q.prototype.pause=function(){this.Ra.Sg(n.je);if(this.iq==l.R){this.iq=l.yc;if(this.hd.Og()==l.R){this.hd.pause();this.Ou()}else this.nx()&&this.Um()}};q.prototype.stop=function(){this.iq=l.K;this.hd.Og()!=l.K&&this.hd.end();this.Ra.Sg(n.je);this.Ou();this.nx()&&this.Um()};q.prototype.moveTo=function(a,b,c,d,e){this.Ra.moveTo(a,b,c,d,e)};q.prototype.nK=function(a){this.$U.forEach(function(a){a.unbind(c.Qs,this.Y8,this,p)}.bind(this));this.$U=a;this.$U.forEach(function(a){a.bind(c.Qs,this.Y8,this, p)}.bind(this))};q.prototype.dk=function(){this.H.MM(j.isPresenting())};q.prototype.Sg=function(a){this.Ra.Sg(a)};q.prototype.yZ=function(a,b,c){this.Ra.yZ(a,b,c)};q.prototype.bF=function(a){if(this.Nq!=a){this.Nq=a;this.Ra.bF(this.Nq);this.fa()}};q.prototype.cF=function(a){this.Ra.cF(a)};q.prototype.ns=function(a){this.Ra.ns(a)};q.prototype.Ov=function(a){this.Ra.Ov(a)};q.prototype.ls=function(a){this.Ra.ls(a)};q.prototype.Ep=function(a){if(this.V)if(this.Ra.jd()||j.isPresenting()||this.Nq&&(this.Ra.V|| !this.Ra.aB)){this.Ra.aN()&&this.hd.swa();this.Ra.eb(a);this.ei(this.Ra.Yl(),this.Ra.Xl(),this.Ra.bs(),this.Ra.jv());this.fa()}else if(this.hd.rr){this.hd.wwa();this.fa()}else if(this.hd.jd()){this.hd.eb(a);this.ei(this.hd.Yl(),this.hd.Xl(),0,this.hd.jv());this.fa()}else if(this.Ti.jd()){this.Ti.eb(a);this.ei(this.Ti.Yl(),this.Ti.Xl(),0,this.Ti.jv());this.fa()}else if(this.TU){this.TU=z;this.pb.em(this.g.He());this.H.Fa(this.g.Ub(),this.g.$b(),this.g.Od(),this.pb.He(),this.pb.qp());this.ei(this.H.Ub(), this.H.$b(),this.H.Od(),this.H.tp());this.fa()}else{this.Yo(0,0,0,0);this.iq==l.R&&this.hd.Og()!=l.R&&(this.nx()||this.hD())}};q.prototype.Zb=function(){this.wsa();this.t8()};q.prototype.wsa=function(){var a=this.g.Ub()-this.$||0,b=this.g.$b()-this.na||0,c=this.g.Od()-this.Gb||0;this.Yo(a,b,c,this.g.He()-this.ba||0)};q.prototype.t8=function(){this.$=this.g.Ub();this.na=this.g.$b();this.Gb=this.g.Od();this.ba=this.g.He();this.Ra.Fa(this.$,this.na,this.Gb,this.ba);this.hd.Fa(this.$,this.na,this.Gb, this.ba);this.Ti.Fa(this.$,this.na,this.Gb,this.ba)};q.prototype.VC=function(a){this.H.Tg(a)};q.prototype.Mpa=function(a){this.sb=a;this.gB=a.get("timeToIdle",5E3);this.pS=a.get("idleSequence");this.jB=a.get("initialSequence");this.Ra.js(a);this.Ti.js(a);a.bind(c.D("sequences"),this.JT,this,p);this.nK(a.get("sequences",[]))};q.prototype.JT=function(){this.nK(this.sb.get("sequences",[]))};q.prototype.Y8=function(a){this.AK(a.source)};q.prototype.rl=function(){this.Um();this.fa()};q.prototype.ul=function(){this.trigger(new e(q.ve))}; q.prototype.tl=function(){this.trigger(new e(q.ue))};q.prototype.AK=function(a){if(a){this.Ra.ld(!a.get("mandatory",z));this.hd.start(a)}else this.IT()};q.prototype.IT=function(){this.Ra.ld(p);this.hD()};q.prototype.s7=function(){this.Ou()};q.prototype.nb=function(){this.TU=p;this.fa()};q.prototype.nx=function(){return this.Ui!=r};q.prototype.hD=function(){this.Um();var a=this;this.Ui=setTimeout(function(){a.Ui=r;a.zT()},this.gB)};q.prototype.Um=function(){if(this.Ui){clearTimeout(this.Ui);this.Ui= r}};q.prototype.zT=function(){this.AK(this.pS)};q.prototype.fa=function(){this.trigger(new e(q.Ja))};q.prototype.ei=function(a,b,c,d){this.g.Fa(a,b,c,d)};q.prototype.Yo=function(a,b,c,d){var c=z,f=Math.abs(a)<0.001&&Math.abs(b)<0.001&&Math.abs(d)<0.001;if(f||this.Nq){c=this.kj!=p;this.hn=this.gn=this.NB=this.QB=this.PB=this.OB=z;this.kj=p}else{if(this.OB!=a<-0.001){this.OB=!this.OB;c=p}if(this.PB!=a>0.001){this.PB=!this.PB;c=p}if(this.NB!=b<-0.001){this.NB=!this.NB;c=p}if(this.QB!=b>0.001){this.QB= !this.QB;c=p}if(this.gn!=d<-0.001){this.gn=!this.gn;c=p}if(this.hn!=d>0.001){this.hn=!this.hn;c=p}if(this.kj!=f){this.kj=!this.kj;c=p}}f||this.trigger(new e(q.Mk,{yaw:this.$,pitch:this.na,roll:this.Gb,hfov:this.ba}));if(c){(this.V||this.kj)&&this.trigger(new e(q.Ug,{movingLeft:this.OB,movingRight:this.PB,movingUp:this.QB,movingDown:this.NB,zoomingIn:this.gn,zoomingOut:this.hn,stopped:this.kj}));this.Ou()}};q.prototype.Ou=function(){var a;if(this.V){a=this.hd.Og();if(!this.kj)a=l.R}else a=l.K;if(this.Pf!= a){this.Pf=a;this.trigger(new e(q.bc,{state:this.Pf}))}};q.Ja="request frame";q.Ug="movement change";q.Mk="position change";q.bc="playback state change";q.ve="user interaction start";q.ue="user interaction end";return q}); define("fk","require,lc,gt,r,fQ,jk,bi,kl".split(","),function(a){function b(a,d,e){this.g=a;this.pb=d;this.Lr=e;this.H=new c(a);e.Bj&&this.H.Tg(e.Bj);this.Xo=new c(a);this.rx=this.Bo=m;this.$=this.g.Ub();this.na=this.g.$b();this.Gb=this.g.Od();this.ba=this.Lr.Bj?this.g.He():b.h_;this.V9=0;this.M=r;this.B5=p}a("lc");var c=a("gt");a("r");var e=a("fQ"),d=a("jk"),f=a("bi"),g=a("kl");b.prototype.Tg=function(a){if(this.M!=a){this.or=p;this.M=a}};b.prototype.Mv=function(a,b){this.$=a;this.na=b};b.prototype.Jy= function(a){this.pb.Rda(a);return this.pb.He()};b.prototype.em=P("ba");b.prototype.gF=P("B5");b.prototype.Nv=P("V9");b.prototype.Ep=function(){if(this.pb.Aca())this.ba=this.pb.AL(this.ba);if(this.Lr.Ob()){var a=f.sn().orientation,a=g.OZ(a);this.$=this.$+(this.Bo===m?0:a.ja-this.Bo);this.Bo=a.ja;this.na=a.pitch;this.Gb=a.kd;this.na=i===m?a.pitch:i;this.Gb=k===m?a.kd:k}else if(this.Lr.Pba()){var a=e.un(),b=this.Au(a.yaw,this.$);this.$=this.$+(this.Bo===m?0:b-this.Bo);this.na=this.na+(this.rx===m?0: a.pitch-this.rx);this.Gb=a.roll;this.Bo=a.yaw;this.rx=a.pitch}else{a=this.Au(this.g.Ub(),this.$);b=this.g.$b();this.$=this.$+(this.Bo===m?0:a-this.Bo);this.na=this.na+(this.rx===m?0:b-this.rx);this.Gb=this.g.Od()}this.or&&this.H.Tg(this.M);this.H.MM(f.isPresenting());this.H.Fa(this.$,this.na,this.Gb,this.ba,this.pb.qp());if(this.or){this.or=z;if(this.Lr&&this.Lr.Bj)if(a=this.g.Uf(this.Lr.Bj)){a.set("deltaYaw",this.g.Ub()-this.H.Ub());a.set("deltaPitch",this.g.$b()-this.H.$b());a.set("deltaRoll",this.g.Od()- this.H.Od())}}this.$=this.H.Ub();this.na=this.H.$b();this.Gb=this.H.Od();if(!this.Lr.Ob()&&!this.Lr.Pba()){this.Bo=this.$;this.rx=this.na}this.ba=this.B5?this.H.tp():this.ba;this.g.Fa(this.$,this.na,this.Gb,this.ba);this.g.Nv(this.V9)};b.prototype.JM=function(a,b){this.Xo.Tg(a);this.Xo.Fa(0,0,0,b,this.pb.qp());return this.Xo.tp()};b.prototype.Zwa=function(a,b){this.Xo.Tg(a);this.Xo.Fa(b.ja,b.pitch,b.kd,b.ad,this.pb.qp());b.ja=this.Xo.Ub();b.pitch=this.Xo.$b();b.kd=this.Xo.Od();b.ad=this.Xo.tp()}; b.prototype.Au=function(a,b){for(;a+180b;)a=a-360;return a};b.prototype.Xaa=function(){return b.h_};b.h_=TDV.p0.Kea;var k=d.Vf("debug")?d.RL("force_vr_roll"):m,i=d.Vf("debug")?d.RL("force_vr_pitch"):m;return b}); define("lt","require,dT,fg,jf,r,bi".split(","),function(a){function b(a,d,f,n){this.g=a;a=this.g.F;this.QZ=a.get("transitionMode","blending");var j=a.get("transitionDuration",500);if(this.Jla(d,f)){this.QZ=b.JF;j=1500}this.Haa=a.get("blendingTransitionDuration",j);this.jua=a.get("firstTransitionDuration",j);this.Uta=a.get("disolveTransitionDuration",j);this.Rya=a.get("translationTransitionDuration",1E3);this.Sya=a.get("translationTransitionEnabled",p);this.Uca=a.get("originTransitionDuration",3E3); this.dN=1E3;this.Bj=d;this.zya=!d||d.tca();this.bd=f;this.Jya=!f||f.sca();this.JZ=!f||f.tca();this.Iya=!!f&&this.KS(f);a=(this.IZ=n)&&n.get("initialPosition")||new c;this.oi=new c;this.oi.set("yaw",a.get("yaw",0));this.oi.set("pitch",a.get("pitch"));this.oi.set("hfov",a.get("hfov"));this.Ed=new e;this.Ed.set("yaw",this.oi.get("yaw"));this.Ed.set("pitch",this.oi.get("pitch"));this.Ed.set("hfov",this.oi.get("hfov"));this.Ed.set("stereographicFactor",0);this.yk=[];if(!d){this.yk=n&&n.get("displayMovements")|| [];for(a=this.yk.length-1;a>=0;a--){this.Ed.set("yaw",this.Ed.get("yaw",this.yk[a].get("targetYaw")));this.Ed.set("pitch",this.Ed.get("pitch",this.yk[a].get("targetPitch")));this.Ed.set("hfov",this.Ed.get("hfov",this.yk[a].get("targethfov")));this.Ed.set("stereographicFactor",this.Ed.get("stereographicFactor",this.yk[a].get("stereographicFactor")))}n=n&&n.get("displayOriginPosition")||this.oi;this.Ed.set("yaw",n.get("yaw"));this.Ed.set("pitch",n.get("pitch"));this.Ed.set("hfov",n.get("hfov"));this.Ed.set("stereographicFactor", n.get("stereographicFactor"))}this.mode=(this.qF=this.QZ==b.jm&&this.Sya&&this.Jya?this.tla(d,f):r)?b.E0:d?f?this.QZ=="blending"?b.jm:b.JF:b.z_:b.y_;if(this.mode==b.jm&&(!this.zya||!this.JZ))if(this.Ed.get("stereographicFactor",0)>0||this.yk.filter(function(a){return a.get("targetStereographicFactor",0)>0}).length>0)this.mode=b.JF}a("dT");var c=a("fg"),e=a("jf"),d=a("r"),f=a("bi");b.prototype.Pba=function(){return this.g.Qb.get("gyroscopeEnabled")};b.prototype.Ob=function(){return f.isPresenting()}; b.prototype.tla=function(a,b){if(!a||!b)return r;var c=(a.get("adjacentPanoramas")||[]).filter(function(a){return a.get("enabled")&&a.vta()&&a.get("panorama")==b});return c.length==0?r:c[0]};b.prototype.Jla=function(a,b){return this.Ob()&&d.Xd()==d.Hj&&(this.KS(a)||this.KS(b))};b.prototype.KS=function(a){return!!a&&a.yh()};b.JF="fade_out_fade_in";b.y_="fade_in";b.z_="fade_out";b.jm="blending";b.E0="translation";return b}); define("l",["require"],function(){function a(a,c,e,d){this.q=a;this.ib=c;this.g=e;this.Q=d}a.prototype.tj=S(z);a.prototype.Gk=C();a.prototype.EE=S(z);return a}); define("iV",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.Uf(this.Q.bd);b.uk();b.set("alpha",0.01);this.O=new e("linear",[new d("alpha",0,1,m)],this.Q.Haa)}this.O.eb(a);a=this.O.wb("alpha");b=this.g.Uf(this.Q.bd);b.set("alpha",a);this.O.Je()&&(this.Cc=p)}};return a}); define("jb",["require","fd","l"],function(a){var b=a("fd"),c=a("l"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(){this.Cc||(this.yr(),this.Cc=p)};a.prototype.yr=C();return a}); define("fP",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.Q.bd&&!this.g.Uf(this.Q.bd)&&(this.Ue=this.g.create(this.Q.bd),this.Ue.set("alpha",0),this.g.add(this.Ue))};return a});define("fR",["require","fd","jb","bp"],function(a){var b=a("fd"),c=a("jb"),e=a("bp"),a=b.extend(c,function(a,b,e,k){c.call(this,a,b,e,k)});a.prototype.yr=function(){this.Q.Iya&&e.qg(this.g.Ua())};return a}); define("dX",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l");Ease=a("kO");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",0,1,m)],this.g.F.cza()?this.Q.jua:this.Q.Haa)),this.O.eb(a),a=this.O.wb("alpha"),this.g.Uf(this.Q.bd).set("alpha",a),this.O.Je()))this.Cc=p};return a}); define("bt",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l");Ease=a("kO");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",1,0,m)],this.Q.Uta)),this.O.eb(a),a=this.O.wb("alpha"),this.g.Uf(this.Q.Bj).set("alpha",a),this.O.Je()))this.Cc=p};return a}); define("bM",["require","fd","l","kO","bq"],function(a){function b(a,b,c){for(;ac;)a-=c-b;return a}var c=a("fd"),e=a("l"),d=a("kO"),f=a("bq"),a=c.extend(e,function(a,b,c,d){e.call(this,a,b,c,d);this.O=r;this.Cc=z;this.FI=0});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=this.FIthis.Q.yk.length&&(this.ib.gF(p),this.Cc=p)};a.prototype.Iia=function(){var a=b(this.g.Ub(),-180,180),c=this.g.$b();this.g.Od();var e=this.g.He(),n=this.g.m.si,j=this.Q.oi.get("hfov"),j={ja:this.Q.oi.get("yaw"),pitch:this.Q.oi.get("pitch",c),kd:this.g.Od(),ad:j?this.ib.Jy(j):e,si:0};this.ib.Zwa(this.Q.bd,j);j.ja=b(j.ja,a-180,a+180);var l=0.5=e?b(a,e,e+360):b(a,e-360,e);break;default:a=b(a,e-180,e+180)}return new d(c.get("easing"),[new f("yaw",e,a,c.get("yawSpeed")),new f("pitch",n,t,c.get("pitchSpeed")),new f("hfov",j,o,c.get("hfovSpeed")),new f("stereographicFactor",l,q,c.get("stereographicFactorSpeed"))],c.get("duration"))};return a}); define("ey",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.$b(),c=this.g.He(),i=this.g.m.si,n=this.Q.Ed.get("stereographicFactor",0),j=Math.abs(i-n),l=0=1-0.5*this.$o*this.$o/this.iG?this.$o=Math.sqrt(2*(1-this.ua)*this.iG):this.$o0.99&&(d=c+1);f.prototype.Nl.call(this,this.ua*j.Yz,j.Yz,this.ua*j.Yz,j.Yz,a,d)};j.prototype.Zb=function(a){if(this.M){var b=this.g.Ub(),c=this.g.$b(),d=this.g.Od(),e=0;if(this.tu!==m&&this.qU!==m&&this.g8!==m)var f=b-this.tu,j=c-this.qU,n=d-this.g8,e=Math.sqrt(f*f+j*j+n*n)*1E3/a;this.tu= b;this.qU=c;this.g8=d;for(var f=this.EH(this.M),x=this.ua*(f-1),j=Math.max(0,Math.min(f-2,Math.floor(x))),n=j+1,x=1-(x-j),y=1-x,F=[],A=0;Aj?f+a:f-a:j>this.Fo&&j>x&&(f=Aa?c:1,c=b>a?1:1-c,e=0;ej&&l.uk(),l.set("alpha",j))}this.Nl();this.Qt||this.fa()}};a.prototype.Og=function(){return this.bI?this.Qt?e.yc:e.R:e.K};a.prototype.Ig=function(){d.prototype.Ig.call(this,this.Og())};a.prototype.Nl=function(){var a=this.Zc,b=this.Kb,c=this.n$(this.Zc),e=this.n$(this.Kb),n=this.Tj+1,j=0===this.yR()?this.dx(): m;d.prototype.Nl.call(this,a,b,c,e,n,j)};return a});define("bv",["require","fd","jj"],function(a){var b=a("fd"),c=a("jj");return b.extend(c,function(a){c.call(this,a)})}); define("jr",["require","fd","lc","fr","jj"],function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("jj"),a=b.extend(d,function(a){d.call(this,a);this.qd=z});a.prototype.$y=C();a.prototype.start=function(a){this.end();this.M=a;this.M.set("mute",this.qd);this.M.get("autoplay")&&this.M.set("state",e.R);this.Un()};a.prototype.getTime=function(){return this.M?this.M.get("currentTime"):0};a.prototype.Og=function(){return this.M?this.M.get("state"):e.K};a.prototype.play=function(){this.M&&this.M.set("state", e.R)};a.prototype.pause=function(){this.M&&this.M.set("state",e.yc)};a.prototype.VM=function(){this.M&&this.M.set("state",e.yc)};a.prototype.stop=function(){this.M&&this.M.set("state",e.K)};a.prototype.end=function(){this.M&&(this.Wo(),this.M=r)};a.prototype.Lv=function(a){this.M&&this.M.set("state",e.R);this.M&&this.M.set("currentTime",a)};a.prototype.Id=function(a){this.qd=a;this.M&&this.M.set("mute",this.qd)};a.prototype.Un=function(){this.M.bind(c.D("currentTime"),this.fd,this,p);this.M.bind(c.D("duration"), this.Zi,this,p);this.M.bind(c.D("state"),this.ih,this,p);this.M.get("state")!=e.K&&this.Ig()};a.prototype.Wo=function(){this.M.unbind(c.D("currentTime"),this.fd,this,p);this.M.unbind(c.D("duration"),this.Zi,this,p);this.M.unbind(c.D("state"),this.ih,this,p)};a.prototype.ih=function(){this.Ig()};a.prototype.fd=function(){this.Nl()};a.prototype.Zi=function(){this.Nl()};a.prototype.Nl=function(){this.M&&d.prototype.Nl.call(this,this.M.get("currentTime"),this.M.get("duration"))};return a}); define("t","require,fd,fr,bY,eL,dT,jj,be,kg,bv,jr".split(","),function(a){var b=a("fd");a("fr");var c=a("bY"),e=a("eL"),d=a("dT"),f=a("jj"),g=a("be"),k=a("kg"),i=a("bv"),n=a("jr"),j=b.extend(e,function(a){e.call(this);this.g=a;this.YS=this.XG(k);this.bS=this.XG(g);this.iL=this.XG(n);this.CV=this.XG(i);this.kc=r});j.prototype.clear=function(){this.OG(this.YS);this.YS=r;this.OG(this.bS);this.bS=r;this.OG(this.iL);this.iL=r;this.OG(this.CV);this.g=this.kc=this.CV=r};j.prototype.XG=function(a){a=new a(this.g); a.bind(f.Ja,this.Wc,this,p);a.bind(f.Ej,this.lr,this,p);a.bind(f.bc,this.oe,this,p);return a};j.prototype.OG=function(a){a.unbind(f.Ja,this.Wc,this);a.unbind(f.Ej,this.lr,this);a.unbind(f.bc,this.oe,this);a.clear()};j.prototype.IS=function(a,b){return d.ob(b,a)};j.prototype.j4=function(a){return this.IS(a,"HDRPanorama")?this.bS:this.IS(a,"LivePanorama")?this.YS:this.IS(a,"VideoPanorama")?this.iL:this.CV};j.prototype.$y=function(a){(this.kc=this.j4(a))&&this.kc.$y(a)};j.prototype.start=function(a){this.Wc(); (this.kc=this.j4(a))&&this.kc.start(a)};j.prototype.Og=function(){if(this.kc)return this.kc.Og()};j.prototype.getTime=function(){return this.kc?this.kc.getTime():0};j.prototype.play=function(){this.kc&&this.kc.play()};j.prototype.pause=function(){this.kc&&this.kc.pause()};j.prototype.gz=function(){this.kc&&this.kc.gz()};j.prototype.qz=function(){this.kc&&this.kc.qz()};j.prototype.VM=function(){this.kc&&this.kc.VM()};j.prototype.stop=function(){this.kc&&this.kc.stop();this.trigger(new c(j.Ej,{duration:0, time:0,steps:m,selectedStep:m}))};j.prototype.end=function(){if(this.kc){this.kc.end();this.kc=r}};j.prototype.Lv=function(a){this.kc&&this.kc.Lv(a)};j.prototype.ks=function(a){this.kc&&this.kc.ks(a)};j.prototype.bN=function(){this.kc&&this.kc.bN()};j.prototype.Zb=function(a){this.kc&&this.kc.Zb(a)};j.prototype.Id=function(a){this.iL.Id(a)};j.prototype.Wc=function(){this.trigger(new c(j.Ja))};j.prototype.lr=function(a){this.trigger(new c(j.Ej,a.data))};j.prototype.oe=function(a){this.trigger(new c(j.bc, a.data))};j.Ja="request frame";j.Nea="frame display";j.Oea="frame hide";j.Ej="time change";j.bc="playback state change";return j}); define("js",["require","fd","lc","eL","iC"],function(a){var b=a("fd"),c=a("lc"),e=a("eL"),d=a("iC"),a=b.extend(e,function(a){e.call(this);this.g=a;this.Ue=this.M=r});a.prototype.start=function(a){this.M=a;this.Ue=this.g.Uf(this.M);this.Ue.bind(c.S,this.Lf,this,p);this.Ue.bind(c.sc,this.Oo,this,p);this.Ue.get("ready")?this.trigger(c.Db,{panorama:this.M}):this.Ue.bind(c.Db,this.YI,this,p);this.Ue.set("loadingActive",p)};a.prototype.stop=function(){this.M=r;this.Ue&&(this.Ue.unbind(c.Db,this.YI,this), this.Ue.unbind(c.S,this.Lf,this),this.Ue.unbind(c.sc,this.Oo,this),this.Ue.set("loadingActive",z),this.Ue=r,this.trigger(c.je))};a.prototype.clear=function(){this.stop()};a.prototype.YI=function(){this.Ue.unbind(c.Db,this.YI,this);this.trigger(c.Db,{panorama:this.M})};a.prototype.Lf=function(){this.Ue.unbind(c.Db,this.YI,this);this.Ue.unbind(c.S,this.Lf,this);this.Ue.unbind(c.sc,this.Oo,this);this.Ue=r;this.trigger(c.S,{panorama:this.M});this.M=r;this.trigger(c.je)};a.prototype.Oo=function(a){this.trigger(new d(c.sc, a.zh))};return a}); define("hw","require,fd,lc,bY,eL,I".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("I"),g=b.extend(d,function(a){d.call(this);this.g=a;this.jl=this.M=this.If=r;this.na=this.$=0;this.ba=Math.PI*0.5});g.prototype.clear=function(){this.stop();this.z8();this.If=this.g=r};g.prototype.sZ=function(a){if(this.If!=a){this.z8();this.QG();this.If=a;this.D1();this.zga()}};g.prototype.zga=function(){this.If&&this.If.bind(c.D("map"),this.T6,this,z)};g.prototype.z8=function(){this.If&&this.If.unbind(c.D("map"), this.T6,this,z)};g.prototype.stop=function(){this.QG();this.M=r};g.prototype.Zb=function(){this.$=this.g.Ub();this.na=this.g.$b();this.ba=this.g.He();this.If&&this.jl&&this.If.zj(this.jl,this.$,this.na,this.ba)};g.prototype.T6=function(){if(this.M){this.QG();(this.jl=this.U8(this.M,this.If.get("map",r),z))&&this.J9()}};g.prototype.display=function(a){if(this.M!=a){this.QG();this.M=a;this.D1()}};g.prototype.hide=function(a){this.M==a&&this.stop()};g.prototype.QG=function(){if(this.jl){this.Fla();this.jl= r}};g.prototype.D1=function(){if(this.If&&this.M)(this.jl=this.U8(this.M,this.If.get("map",r),p))&&this.J9()};g.prototype.U8=function(a,b,c){for(var a=a.get("mapLocations",[]),d=0;d0?a[0]:r};g.prototype.J9=function(){this.If.kta(this.jl);this.If.bind(f.Vg,this.F8,this,p);this.If.zj(this.jl,this.$,this.na,this.ba)};g.prototype.Fla=function(){if(this.If){this.If.Qwa(this.jl);this.If.unbind(f.Vg,this.F8,this)}};g.prototype.F8=function(a){this.trigger(new e(g.Vg, {yawDelta:a.data.yawDelta}))};g.Vg="request yaw change";return g}); define("er",["require","fd","bY","eL","dN"],function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("dN"),f=b.extend(e,function(a){e.call(this);this.g=a;this.g.bind(d.YN,this.n7,this,p)});f.prototype.clear=function(){this.g.unbind(d.YN,this.n7,this,p);this.g=r};f.prototype.Ma=function(){this.g.Ma()};f.prototype.n7=function(a){a=a.data.frameTime;this.trigger(new c(f.Nk,{frameTime:a}));this.trigger(new c(f.Ok,{frameTime:a}))};f.Nk="frameStart";f.Ok="positionSet";return f}); define("gs",["require","r","im"],function(a){function b(){this.ea=this.W=0;this.ba=90;this.Xh="landscape";this.NT=z;this.lB=c.Wa()}var c=a("r"),e=a("im");b.prototype.Rda=function(a){this.ba=this.gba(a)};b.prototype.gba=function(a){return this.lB&&"portrait"==this.Xh?e.av(a,this.ea,this.W):a};b.prototype.Kua=function(a){return this.lB&&"portrait"==this.Xh?e.Bk(a,this.W,this.ea):a};b.prototype.em=function(a){return this.ba=this.lB&&this.NT?e.av(a,this.ea,this.W):a};b.prototype.Aca=function(){return this.lB&& this.NT};b.prototype.qp=function(){return this.lB&&"portrait"==this.Xh};b.prototype.He=R("ba");b.prototype.AL=function(a){return e.av(a,this.ea,this.W)};b.prototype.setSize=function(a,b){this.W=a;this.ea=b;var c=this.Wka();this.NT=this.Xh!=c;this.Xh=c};b.prototype.Wka=function(){return 0===this.W||0===this.ea?"landscape":this.Wi;)c=c-(i-d);b=b.pitch;return e<=c&&c<=f&&g<=b&&b<=t}.bind(this));if(d.length==0)return r;d.sort(function(b,d){var e=this.XA(b),f=this.XA(d);return(a-e.ja)*(a-e.ja)+(c-e.pitch)*(c-e.pitch)-((a-f.ja)*(a-f.ja)+(c-f.pitch)*(c-f.pitch))}.bind(this));return d[0]};a.prototype.XA=function(a){var b=a.get("yaw"),a=a.get("distance");if(b===m||a===m)return r; var c=this.M.get("distanceToFloor");return{ja:b,pitch:-90+Math.atan2(a,c)*g}};var g=180/Math.PI;return a}); define("iP","require,fd,lc,bY,eL,cx,bg,ll,t,js,hw,er,gs,gC,cT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("cx"),g=a("bg"),k=a("ll"),i=a("t"),n=a("js"),j=a("hw"),l=a("er"),q=a("gs"),o=a("gC"),t=a("cT"),s=b.extend(d,function(a,b){d.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.pb=new q;this.de=new l(this.g);this.be=new n(this.g);this.Ta=new k(this.F,this.g,this.pb);this.la=new g(this.g,this.pb);this.Bd=new i(this.g);this.Go=new j(this.g);this.jc=new f(this.g); this.RK=new o(this.g);this.de.bind(l.Nk,this.jr,this,p);this.de.bind(l.Ok,this.kr,this,p);this.be.bind(c.Db,this.P6,this,p);this.be.bind(c.je,this.UB,this,p);this.be.bind(c.sc,this.Jo,this,p);this.Ta.bind(k.Ja,this.Wc,this,p);this.Ta.bind(k.ZN,this.Q6,this,p);this.Ta.bind(k.QN,this.Z6,this,p);this.Ta.bind(k.zN,this.g6,this,p);this.Ta.bind(k.AN,this.h6,this,p);this.Ta.bind(k.Is,this.bC,this,p);this.Ta.bind(k.Gs,this.ir,this,p);this.Ta.bind(k.Hs,this.Mo,this,p);this.Ta.bind(k.Fs,this.aC,this,p);this.la.bind(g.Ja, this.Wc,this,p);this.la.bind(g.Ug,this.pl,this);this.la.bind(g.Mk,this.g7,this);this.la.bind(g.bc,this.oe,this,p);this.la.bind(g.ve,this.ul,this,p);this.la.bind(g.ue,this.tl,this,p);this.Bd.bind(i.Ja,this.Wc,this,p);this.Bd.bind(i.Ej,this.lr,this,p);this.Bd.bind(i.bc,this.oe,this,p);this.Go.bind(j.Vg,this.V6,this,p)});s.prototype.clear=function(){this.be.clear();this.de.clear();this.la.clear();this.Ta.clear();this.Bd.clear();this.Go.clear();this.jc.clear();this.be.unbind(c.Db,this.P6,this);this.be.unbind(c.je, this.UB,this);this.be.unbind(c.sc,this.Jo,this);this.de.unbind(l.Nk,this.jr,this);this.de.unbind(l.Ok,this.kr,this);this.Ta.unbind(k.Ja,this.Wc,this);this.Ta.unbind(k.ZN,this.Q6,this);this.Ta.unbind(k.QN,this.Z6,this);this.Ta.unbind(k.zN,this.g6,this);this.Ta.unbind(k.AN,this.h6,this);this.Ta.unbind(k.Is,this.bC,this);this.Ta.unbind(k.Gs,this.ir,this);this.Ta.unbind(k.Hs,this.Mo,this);this.Ta.unbind(k.Fs,this.aC,this);this.la.unbind(g.Qea,this.Wc,this);this.la.unbind(g.Ug,this.pl,this);this.la.unbind(g.Mk, this.g7,this);this.la.unbind(g.bc,this.oe,this,p);this.la.unbind(g.ve,this.ul,this);this.la.unbind(g.ue,this.tl,this);this.Bd.unbind(i.Ja,this.Wc,this);this.Bd.unbind(i.Ej,this.lr,this);this.Bd.unbind(i.bc,this.oe,this);this.Go.unbind(j.Vg,this.V6,this);this.F=this.g=this.RK=this.jc=this.Go=this.Bd=this.Ta=this.la=this.de=this.be=r};s.prototype.sZ=function(a){this.Go.sZ(a)};s.prototype.Tg=function(a,b,c){this.g.set("visible",p);this.Bd.VM();a.set("currentTime",c);this.Ta.start(a,b)};s.prototype.Vy= function(){return this.be.M||this.Ta.wua()||this.Ta.xm};s.prototype.Gv=function(){this.be.stop();this.Bd.end();this.la.end();this.Ta.hide();this.Go.stop();this.jc.end();this.RK.end()};s.prototype.qz=function(){this.la.resume();this.Bd.qz()};s.prototype.gz=function(){this.la.pause();this.Bd.gz()};s.prototype.play=function(){this.la.play();this.jc.play();this.Bd.play()};s.prototype.pause=function(){this.la.pause();this.jc.pause();this.Bd.pause()};s.prototype.stop=function(){this.la.stop();this.jc.stop(); this.Bd.stop()};s.prototype.ls=function(a){this.la.ls(a);this.RK.ls(a)};s.prototype.getTime=function(){return this.Bd.getTime()};s.prototype.moveTo=function(a,b,c,d,e){this.la.moveTo(a,b,c,d,e)};s.prototype.Ub=function(){return this.g?this.g.Ub():m};s.prototype.$b=function(){return this.g?this.g.$b():m};s.prototype.Od=function(){return this.g?this.g.Od():m};s.prototype.He=function(){return this.g?this.pb.Kua(this.g.He()):m};s.prototype.MX=function(){return this.g?this.g.MX():m};s.prototype.NX=function(){return this.g? this.g.NX():m};s.prototype.oe=function(){var a=this.Bd.Og()||this.la.Og();this.trigger(new e(s.bc,{state:a}))};s.prototype.Sg=function(a){this.la.Sg(a)};s.prototype.bF=function(a){this.la.bF(a)};s.prototype.ns=function(a){this.la.ns(a)};s.prototype.cF=function(a){this.la.cF(a)};s.prototype.Id=function(a){this.Bd.Id(a)};s.prototype.Ov=function(a){this.la.Ov(a)};s.prototype.Yua=function(a,b){var c=t.get(a,b,this.g.Ub(),this.g.$b(),this.g.Od(),this.g.He(),this.g.Ba(),this.g.hb());return c?{x:c.x,y:c.y}: r};s.prototype.Pua=function(a,b){var c=t.aza(a,b,this.g);return c?{yaw:c.ja,pitch:c.pitch}:r};s.prototype.dZ=function(){this.g.dZ()};s.prototype.Q6=function(a){this.be.start(a.data.panorama)};s.prototype.Jo=function(a){this.g.KM(p);this.trigger(new e(s.km,{percent:a.zh}))};s.prototype.P6=function(a){this.Bd.end();this.RK.Tg(a.data.panorama)};s.prototype.UB=function(){this.g.KM(z);this.trigger(new e(s.Cs))};s.prototype.Wc=function(){this.de.Ma()};s.prototype.jr=function(a){a=a.data.frameTime;this.pb.setSize(this.g.Ba(), this.g.hb());this.Ta.Ep(a);this.la.Ep(a)};s.prototype.kr=function(a){a=a.data.frameTime;this.Ta.Zb(a);this.la.Zb(a);this.Bd.Zb(a);this.Go.Zb(a);this.jc.Zb(a)};s.prototype.bC=function(a){this.Go.display(a.data.panorama);this.Bd.$y(a.data.panorama);this.trigger(new e(s.Is,{panorama:a.data.panorama}))};s.prototype.Z6=function(a){this.Go.hide(a.data.panorama)};s.prototype.g6=function(a){this.Bd.start(a.data.panorama);this.jc.start(a.data.panorama)};s.prototype.h6=function(){this.Bd.end();this.g.set("visible", z)};s.prototype.aC=function(a){this.la.end();this.jc.end(a.data.nextPanorama);this.trigger(new e(s.Fs,{panorama:a.data.panorama}))};s.prototype.Mo=function(a){this.la.start(a.data.panorama,a.data.camera);this.trigger(new e(s.Hs,{panorama:a.data.panorama}))};s.prototype.ir=function(a){this.trigger(new e(s.Gs,{panorama:a.data.panorama}))};s.prototype.V6=function(a){this.la.yZ(a.data.yawDelta,0)};s.prototype.pl=function(a){this.trigger(new e(s.Ug,a.data))};s.prototype.g7=function(a){this.trigger(new e(s.Mk, a.data))};s.prototype.ul=function(){this.Bd.bN();this.trigger(new e(s.ve))};s.prototype.tl=function(){this.trigger(new e(s.ue))};s.prototype.Jda=function(a){this.Bd.Lv(a)};s.prototype.ks=function(a){this.Bd.ks(a)};s.prototype.lr=function(a){this.trigger(new e(s.Ej,a.data))};s.km="loadingProgress";s.Cs="loadingEnd";s.Ug="movementChange";s.Mk="positionChange";s.Is="panoramaStart";s.Fs="panoramaEnd";s.Hs="panoramaShow";s.Gs="panoramaHide";s.bc="playbackStateChange";s.ve="userInteractionStart";s.ue="userInteractionEnd"; s.Ej="timeChange";return s}); define("kQ","require,dm,jquery.mod,fd,iU,lc,bY,fr,cd,dT,jK,ct,di,fB,iP,dp,dN,fQ,gI,bi,dk,fj".split(","),function(a){a("dm");a("jquery.mod");var b=a("fd");a("iU");var c=a("lc"),e=a("bY"),d=a("fr"),f=a("cd"),g=a("dT"),k=a("jK"),i=a("ct"),n=a("di"),j=a("fB"),l=a("iP"),q=a("dp"),o=a("dN"),t=a("fQ"),s=a("gI"),u=a("bi"),v=a("dk"),w=a("fj"),x=b.extend(n,function(){n.call(this,"panorama");n.prototype.set.call(this,"zoomEnabled",p);n.prototype.set.call(this,"surfaceSelectionEnabled",z);n.prototype.set.call(this, "surfaceSelectionHorizontalAngle",90);n.prototype.set.call(this,"surfaceSelectionVerticalAngle",180);n.prototype.set.call(this,"adjacentPanoramaPositionsEnabled",z);n.prototype.set.call(this,"fxaaEnabled",z);n.prototype.set.call(this,"aaEnabled",z);this.NV=this.mS=this.Mq=this.tI=this.IP=this.or=this.rh=this.jP=z;this.TR=p;this.wt=this.ox=this.VG=z;this.xH=this.qR=this.Zc=this.Kb=0;this.eU=this.gU=m;this.oT=p;this.Pf=d.K;this.q=this.g=r;this.T5={};for(var a in x.Tn)this.T5[a]=this.Xia(a);this.yG= new k(this,"buttonToggleGyroscope",v.Eh);this.yG.bind(c.rg,function(){this.set("gyroscopeEnabled",p)},this);this.yG.bind(c.Dh,function(){this.set("gyroscopeEnabled",z)},this);this.yG.set("pressed",this.get("gyroscopeEnabled")&&t.available);this.sha=new k(this,"buttonCardboardView",v.Tc);this.sha.bind(c.T,function(){this.set("viewMode",x.fq)},this,p);this.Hha=new k(this,"buttonVRView",v.Tc);this.Hha.bind(c.T,function(){this.set("viewMode",x.fq)},this,p);u.bind(c.aa,function(){this.G$("viewMode");this.trigger(x.w_)}, this,p);this.zG=new k(this,"buttonToggleHotspots",v.Eh);this.zG.bind(c.rg,function(){this.set("hotspotsEnabled",p)},this);this.zG.bind(c.Dh,function(){this.set("hotspotsEnabled",z)},this);this.zG.set("pressed",this.get("hotspotsEnabled"));this.BG=new k(this,"buttonToggleSurfaceSelection",v.Eh);this.BG.bind(c.rg,function(){this.set("surfaceSelectionEnabled",p)},this);this.BG.bind(c.Dh,function(){this.set("surfaceSelectionEnabled",z)},this);this.BG.set("pressed",this.get("surfaceSelectionEnabled")); this.Fha=new k(this,"buttonScreenshot",v.Tc);this.Fha.bind(c.T,this.O8,this,p);this.pd=b.Bn(this.rf,this);this.set("arrowKeysAction","rotate");this.set("doubleClickAction","inherit");this.set("hotspotsEnabled",p);this.set("preloadEnabled",p);this.set("keyboardTranslateSelectionAngle",90)});x.p_="cameraPositionChange";x.ve="userInteractionStart";x.ue="userInteractionEnd";x.km="loadingProgress";x.u_="preloadMediaShow";x.w_="viewModeChange";g.A("PanoramaPlayer",x).B("Object").L({aaEnabled:"bool",actualHFOV:"number", actualVFOV:"number",arrowKeysAction:"enum[rotate, translate, none]",buttonCardboardView:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveLeft:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveRight:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayLeft:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayRight:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleGyroscope:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleHotspots:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleSurfaceSelection:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonVRView:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonZoomIn:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonZoomOut:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScreenshot:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",camera:"PanoramaCamera",currentTime:"number",displayPlaybackBar:"bool",doubleClickAction:"enum[toggle_fullscreen, translate, inherit]",fxaaEnabled:"bool",gyroscopeEnabled:"bool",gyroscopeVerticalDraggingEnabled:"bool",hdrPanoramaDisplayPlaybackBar:"bool",hdrPanoramaDisplayPlaybackBarSteps:"bool",hfov:"number",hotspotsEnabled:"bool", keyboardTranslateSelectionAngle:"number",livePanoramaDisplayPlaybackBar:"bool",livePanoramaDisplayPlaybackBarSteps:"bool",mapPlayer:"MapPlayer",mode:"enum[fast, quality]",mouseControlMode:"enum[drag_acceleration, drag_rotation]",panorama:"Panorama",pitch:"number",preloadEnabled:"bool",roll:"number",startTime:"number",state:"enum[stopped, playing, paused]",adjacentPanoramaPositionsEnabled:"bool",surfaceSelectionHorizontalAngle:"number",surfaceSelectionVerticalAngle:"number",surfaceSelectionEnabled:"bool", touchControlMode:"enum[drag_acceleration, drag_rotation]",video:"Video360",viewMode:"enum[standard, cardboard, vr]",videoPanoramaDisplayPlaybackBar:"bool",viewerArea:"ViewerArea",yaw:"number",zoomEnabled:"bool"}).Vb([c.SF,x.p_,x.km,x.ve,x.ue,x.u_,x.w_,c.zc,i.yf,i.Bh]).Rg({moveLeft:function(){this.vb(q.cw)},moveRight:function(){this.vb(q.dw)},moveUp:function(){this.vb(q.ew)},moveDown:function(){this.vb(q.bw)},playLeft:function(){this.vb([q.cw,q.R])},playRight:function(){this.vb([q.dw,q.R])},playUp:function(){this.vb([q.ew, q.R])},playDown:function(){this.vb([q.bw,q.R])},play:function(){this.lh()},pause:function(){this.xl()},stop:function(){this.ku()},seek:function(a){this.SC(a)},setFramePlaybackPosition:function(a){this.Xpa(a)},setFrameTransitionPosition:function(a){this.Ypa(a)},restart:function(){this.ju()},zoomIn:function(){this.vb(q.Rn)},zoomOut:function(){this.vb(q.Sn)},resumeCamera:function(){this.hpa()},pauseCamera:function(){this.foa()},moveTo:function(a,b,c,d){this.S5(a,b,c,d,z)},setPosition:function(a,b,c, d){this.S5(a,b,c,d,p)},getScreenPosition:function(a,b){return this.kla(a,b)},getPanoramaPosition:function(a,b){return this.Xka(a,b)},saveScreenshot:function(){return this.O8()}});x.prototype.get=function(a,b){switch(a){case "currentTime":return this.q&&this.q.getTime()||0;case "viewMode":return u.isPresenting()?x.fq:x.WO;case "video":a="panorama";break;case "rendererPanorama":return this.q&&this.q.Vy()}if(!b)switch(a){case "mouseControlMode":b=f.K_;break;case "touchControlMode":b=f.D0}return n.prototype.get.call(this, a,b)};x.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "application":this.jP=p;this.pd();break;case "startTime":this.or=p;this.pd();break;case "video":case "panorama":a="panorama";this.or=p;this.pd();break;case "camera":this.IP=p;this.pd();break;case "viewerArea":this.rh=p;this.pd();break;case "displayPlaybackBar":case "hdrPanoramaDisplayPlaybackBarSteps":case "livePanoramaDisplayPlaybackBarSteps":case "buttonPlay":case "buttonPlayPause":this.wt=p;this.pd();break;case "mapPlayer":this.tI= p;this.pd();break;case "gyroscopeEnabled":this.Mq=p;this.pd();break;case "gyroscopeVerticalDraggingEnabled":this.TR=p;this.pd();break;case "viewMode":if(b=="vr")b=x.fq;b==x.fq&&!u.isPresenting()?u.uh():b!=x.fq&&u.isPresenting()&&u.Wd();b=u.isPresenting()?x.fq:x.WO;break;case "hotspotsEnabled":this.mS=p;this.pd();break;case "mouseControlMode":case "touchControlMode":this.VG=p;this.pd();break;case "surfaceSelectionEnabled":o.gea()||(b=z);this.NV=p;this.pd()}n.prototype.set.call(this,a,b)}};x.prototype.gm= function(a){this.ox=a;this.q&&this.q.ls(this.ox)};x.prototype.Naa=function(){return this.get("doubleClickAction")!="inherit"};x.prototype.AP=function(a){n.prototype.AP.call(this,a);a.bind(c.RF,this.taa,this,p)};x.prototype.kW=function(a){n.prototype.kW.call(this,a);a.unbind(c.RF,this.taa,this,p)};x.prototype.taa=function(){switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.get("application").dg;a&&a.available()&&a.toggle()}};x.prototype.Xia=function(a){var b=x.Tn[a],a=new k(this, a,v.Tc);a.bind(c.xb,function(){this.vb(b.movement)},this);b.stopOnRelease&&a.bind(c.cc,function(){this.vb(q.je)},this);return a};x.prototype.rf=function(){if(this.rh||this.jP){this.rh=this.jP=z;this.VG=this.Mq=this.tI=p;this.vt();this.get("viewerArea")&&this.get("application")&&this.tt();this.pK(this.get("viewerArea"))}var a=z;if(this.g){if(this.tI){this.tI=z;this.q.sZ(this.get("mapPlayer"))}if(this.VG){this.VG=z;this.q.ns(this.get("mouseControlMode"));this.q.Ov(this.get("touchControlMode"))}if(this.or|| this.IP){this.xH=this.qR=this.Kb=this.Zc=0;this.eU=this.gU=m;a=p;this.IP=this.or=z;if(this.get("panorama")){this.QJ();this.q.Tg(this.get("panorama"),this.get("camera",new j),this.get("startTime"))}else{this.q.Gv();this.oT=p;this.Pf=d.K;this.Yb(d.K)}}if(this.TR){this.TR=z;this.q.cF(this.get("gyroscopeVerticalDraggingEnabled",p))}if(this.Mq){this.Mq=z;var b=this.get("gyroscopeEnabled")&&t.available;if(b&&t.disabled){b=z;s.C_.show(function(){t.$Y(function(){this.set("gyroscopeEnabled",p)}.bind(this))}.bind(this))}this.set("gyroscopeEnabled", b);this.q.bF(b);this.yG.set("pressed",b)}if(this.mS){this.mS=z;this.zG.set("pressed",this.get("hotspotsEnabled"))}if(this.wt){this.wt=z;a=p}if(this.NV){this.NV=z;this.BG.set("pressed",this.get("surfaceSelectionEnabled"))}a&&this.KD()}};x.prototype.lD=function(){this.set("panorama",r)};x.prototype.tt=function(){var a=this.get("viewerArea"),b=this.get("application");this.g=new o(b,a,this);this.g.N({left:0,top:0,bottom:0,right:0});a.ma(this.g);this.q=new l(a,this.g);this.q.bind(l.Ug,this.pl,this);this.q.bind(l.Mk, this.o6,this);this.q.bind(l.km,this.Jo,this);this.q.bind(l.Cs,this.Cx,this);this.q.bind(l.Hs,this.Mo,this,p);this.q.bind(l.Gs,this.ir,this,p);this.q.bind(l.Is,this.bC,this,p);this.q.bind(l.Fs,this.aC,this,p);this.q.bind(l.bc,this.oe,this);this.q.bind(l.ve,this.ul,this);this.q.bind(l.ue,this.tl,this);this.q.bind(l.Ej,this.lr,this);this.get("application").bind(c.D("mute"),this.$B,this);this.get("application").get("mute",z)&&this.q.Id(p);this.q&&this.q.ls(this.ox);u.bind(c.aa,this.dk,this,p);this.gQ(); this.fy(p)};x.prototype.vt=function(){if(this.g){this.q.unbind(l.Ug,this.pl,this);this.q.unbind(l.Mk,this.o6,this);this.q.unbind(l.km,this.Jo,this);this.q.unbind(l.Cs,this.Cx,this);this.q.unbind(l.Hs,this.Mo,this,p);this.q.unbind(l.Gs,this.ir,this,p);this.q.unbind(l.Is,this.bC,this,p);this.q.unbind(l.Fs,this.aC,this,p);this.q.unbind(l.bc,this.oe,this);this.q.unbind(l.ve,this.ul,this);this.q.unbind(l.ue,this.tl,this);this.q.unbind(l.Ej,this.lr,this);this.q.clear();this.q=r;this.get("application").unbind(c.D("mute"), this.$B,this);this.g.getParent().removeChild(this.g);this.g=r;u.unbind(c.aa,this.dk,this,p);this.fy(z)}};x.prototype.$B=function(){this.g&&this.q.Id(this.get("application").get("mute",z))};x.prototype.oe=function(a){this.Pf=a.data.state;this.ge()};x.prototype.ge=function(){this.Yb(this.oT||u.isPresenting()?this.Pf:d.R)};x.prototype.ul=function(){this.trigger(new e(x.ve))};x.prototype.tl=function(){this.trigger(new e(x.ue))};x.prototype.bC=function(a){this.trigger(new e(x.u_,{panorama:a.data.panorama}))}; x.prototype.aC=C();x.prototype.Mo=function(a){this.gQ();this.zI(a.data.panorama)};x.prototype.ir=function(a){this.yI(a.data.panorama)};x.prototype.pl=function(a){for(var b in x.Tn)this.T5[b].set("state",a.data[x.Tn[b].pressedOn]?w.za:w.cd);this.oT=a.data.stopped;this.ge();this.trigger(new e(c.SF,a.data))};x.prototype.o6=function(a){this.gQ();this.trigger(new e(x.p_,a.data))};x.prototype.gQ=function(){if(this.q){this.set("yaw",this.q.Ub());this.set("pitch",this.q.$b());this.set("roll",this.q.Od()); this.set("hfov",this.q.He());this.set("actualHFOV",this.q.MX());this.set("actualVFOV",this.q.NX())}};x.prototype.Jo=function(a){this.g.getParent().N({progressPercent:a.data.percent,progressVisible:p});this.trigger(new e(x.km,a.data))};x.prototype.Cx=function(){this.g.getParent().set("progressVisible",z)};x.prototype.dk=function(){this.set("viewMode",u.isPresenting()?x.fq:x.WO);this.ge()};x.prototype.S5=function(a,b,c,d,e){this.q&&this.q.moveTo(a,b,c,d,e)};x.prototype.vb=function(a){this.q&&this.q.Sg(a)}; x.prototype.lh=function(){this.q.play()};x.prototype.qk=function(){this.q.stop()};x.prototype.xl=function(){this.q.pause()};x.prototype.SC=function(a){this.q&&(this.m4()?this.q.ks(a):this.q.Jda(a))};x.prototype.Xpa=function(a){this.q&&this.q.Jda(a)};x.prototype.Ypa=function(a){this.q&&this.q.ks(a)};x.prototype.foa=function(){this.q&&this.q.gz()};x.prototype.hpa=function(){this.q&&this.q.qz()};x.prototype.kla=function(a,b){if(this.q)return this.q.Yua(a,b)};x.prototype.Xka=function(a,b){if(this.q)return this.q.Pua(a, b)};x.prototype.O8=function(){this.q&&this.q.dZ()};x.prototype.BJ=function(a){this.SC(a.data.position)};x.prototype.lr=function(a){this.Zc=a.data.time;this.Kb=a.data.duration;this.qR=a.data.transitionPosition;this.xH=a.data.transitionLength;this.gU=a.data.steps;this.eU=a.data.selectedStep;this.KD()};x.prototype.KD=function(){var a=this.g.getParent(),b=z;if(this.yka()){var c=this.m4(),d=this.Zka();if(c){if(this.xH>0){a.N({playbackBarPosition:this.qR,playbackBarDuration:this.xH,playbackBarSteps:this.gU, playbackBarSelectedStep:this.eU,playbackBarLiveDragging:d});b=p}}else if(this.Kb>0){a.N({playbackBarPosition:this.Zc,playbackBarDuration:this.Kb,playbackBarSteps:m,playbackBarSelectedStep:m,playbackBarLiveDragging:d});b=p}}a.set("playbackBarVisible",b)};x.prototype.yka=function(){var a=this.get("panorama");return a?g.ob("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",z)):g.ob("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBar",this.get("displayPlaybackBar", z)):g.ob("VideoPanorama",a)?this.get("videoPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",p)):z:z};x.prototype.m4=function(){var a=this.get("panorama");return!a?z:g.ob("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBarSteps",p):g.ob("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBarSteps",p):z};x.prototype.Zka=function(){var a=this.get("panorama");return!a||g.ob("VideoPanorama",a)?z:p};x.fq="cardboard";x.WO="standard";x.Tn={buttonMoveLeft:{movement:q.cw,pressedOn:"movingLeft", stopOnRelease:p},buttonMoveRight:{movement:q.dw,pressedOn:"movingRight",stopOnRelease:p},buttonMoveUp:{movement:q.ew,pressedOn:"movingUp",stopOnRelease:p},buttonMoveDown:{movement:q.bw,pressedOn:"movingDown",stopOnRelease:p},buttonPlayLeft:{movement:[q.cw,q.R],pressedOn:"movingLeft",stopOnRelease:z},buttonPlayRight:{movement:[q.dw,q.R],pressedOn:"movingRight",stopOnRelease:z},buttonPlayUp:{movement:[q.ew,q.R],pressedOn:"movingUp",stopOnRelease:z},buttonPlayDown:{movement:[q.bw,q.R],pressedOn:"movingDown", stopOnRelease:z},buttonZoomIn:{movement:q.Rn,pressedOn:"zoomingIn",stopOnRelease:p},buttonZoomOut:{movement:q.Sn,pressedOn:"zoomingOut",stopOnRelease:p}};return x}); define("ca","fd,bY,dT,ct,kQ,dj".split(","),function(a,b,c,e,d,f){a=a.extend(f,function(){f.call(this)});c.A("PanoramaPlayListItem",a).B("PlayListItem").L({media:"Panorama",camera:"PanoramaCamera",player:"PanoramaPlayer"});a.prototype.start=function(){f.prototype.start.call(this);var a=this.get("player");if(a){a.bind(e.yf,this.Mo,this);a.set("panorama",this.get("media"));a.set("camera",this.get("camera"))}};a.prototype.stop=function(){var a=this.get("player");if(a){a.unbind(e.yf,this.Mo,this);a.get("panorama")== this.get("media")&&a.set("panorama",r)}f.prototype.stop.call(this)};a.prototype.Mo=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.yf,this.Mo,this);this.get("player").bind(e.Bh,this.ir,this);this.Dy()}};a.prototype.ir=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.Bh,this.ir,this);this.end()}};return a}); define("iF",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaSnapshot",b).B("Object").L({position:"PanoramaCameraPosition",image:"ImageResource"});return b});define("jW",["fd","bR"],function(a,b){var c=a.extend(b,function(a,c,f,g){b.call(this);this.Md=a;this.W=c;this.ea=f;this.kR=g});c.prototype.yn=function(){return[this.Md]};c.prototype.sj=R("Md");c.prototype.$c=R("W");c.prototype.Nd=R("ea");return c}); define("eu","require,dm,fd,dT,ds,eE,jW".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("dT"),d=a("ds"),f=a("eE"),g=a("jW"),a=c.extend(d,function(){d.call(this);this.X=m});e.A("Photo",a).B("Media").L({audios:"array[PhotoAudio]",duration:"number",height:"number",image:"ImageResource",width:"number",flipImageHorizontally:"bool"});a.prototype.Ng=function(){if(this.X==m){var a=this.get("image");this.X=a?new g(f.Zl(a).get("url"),this.get("width"),this.get("height"),this.get("flipImageHorizontally", z)):r}return this.X};a.prototype.wp=function(){var a=this.FH(this.Ng());b(this.get("audios",[])).each(function(b){a=a.concat(b.wp())},this);return a};a.prototype.FH=function(a){return a?a.yn():[]};return a}); define("hg",["dm","fd","lc","ds","dT"],function(a,b,c,e,d){b=b.extend(e,function(){e.call(this);this.set("loop",z)});d.A("PhotoAlbum",b).B("Media").L({audios:"array[PhotoAlbumAudio]",loop:"bool",playList:"PhotoPlayList"}).Vb([c.Da]);b.prototype.wp=function(){var b=[],c=this.get("playList");c&&a(c.get("items"),[]).each(function(a){(a=a.get("media"))&&(b=b.concat(a.wp()))});a(this.get("audios",[])).each(function(a){b=b.concat(a.wp())});return b};return b}); define("gm","require,fd,gb,dT,gK,z".split(","),function(a){var b=a("fd"),c=a("gb"),e=a("dT"),d=a("gK");a("z");a=b.extend(d,function(){d.call(this,c.tfa)});e.A("PhotoAlbumAudio",a).B("MediaAudio");return a}); define("cr",["require","fr"],function(a){function b(a,b){this.g=a;this.Yk=b;this.vw=[];this.sm=[];this.Tl=1}var c=a("fr");b.prototype.clear=function(){for(var a=0;athis.ra&&(this.ra=1);var a=Math.min(0.5/this.ra,0.5),b=Math.max(1-0.5/this.ra,0.5);this.cab&&(this.ca=b);a=Math.min(0.5/this.ra,0.5);b=Math.max(1-0.5/this.ra,0.5);this.dab&&(this.da=b)}};return c}); define("bn",[],function(){function a(a,c){this.g=a;this.H=c;this.da=this.ca=0.5;this.ra=1;this.TJ=z}a.prototype.start=function(){this.da=this.ca=0.5;this.ra=1;this.TJ=p};a.prototype.clear=function(){this.H=this.g=r};a.prototype.Fa=function(a,c,e){this.ca=a;this.da=c;this.ra=e};a.prototype.jd=R("TJ");a.prototype.eb=function(){this.TJ=z};return a}); define("fU",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(a,c,f){b.call(this);a!=m&&this.set("x",a);c!=m&&this.set("y",c);f!=m&&this.set("zoomFactor",f)});c.A("PhotoCameraPosition",a).B("Object").L({x:"number",y:"number",zoomFactor:"number"});return a}); define("h",["fd","bn","fU","kO","bq"],function(a,b,c,e,d){a=a.extend(b,function(a,c){b.call(this,a,c);this.O=r});a.prototype.start=function(a){var b=a.get("initialPosition",new c(0.5,0.5,1)),k=a.get("targetPosition",new c(0.5,0.5,1));this.O=new e(a.get("easing","linear"),[new d("x",b.get("x",0.5),k.get("x",0.5)),new d("y",b.get("y",0.5),k.get("y",0.5)),new d("zoom",b.get("zoomFactor",1),k.get("zoomFactor",1))],a.get("duration",1E3));this.eb(0)};a.prototype.clear=function(){this.O=r;b.prototype.clear.call(this)}; a.prototype.jd=function(){return this.O!=r};a.prototype.eb=function(a){this.O&&(this.O.eb(a),this.H.Fa(this.O.wb("x"),this.O.wb("y"),this.O.wb("zoom")),this.ca=this.H.getX(),this.da=this.H.getY(),this.ra=this.H.am(),this.O.Je()&&(this.O=r))};return a}); define("ch","fd,bY,eL,dT,fr,je,j,bn,h,lc".split(","),function(a,b,c,e,d,f,g,k,i,n){var j=a.extend(c,function(a,b){c.call(this);this.g=a;this.pc=b;this.g.bind(n.yb,this.nb,this);this.m=d.K;this.ej=this.yJ=this.sb=this.X=r;this.H=new g});j.prototype.clear=function(){this.end();this.H=r;this.g.unbind(n.yb,this.nb,this);this.g=r};j.prototype.end=function(a){if(this.X==a||typeof a=="undefined"){this.p3();this.sb=this.yJ=this.sb=this.X=r}};j.prototype.start=function(a){if(this.X!=a){this.end(this.X);var b= a.get("media"),c=a.get("camera"),d=b.get("width",100),e=b.get("height",100),i=c?c.get("scaleMode",f.Me):f.Me;this.X=a;this.sb=c;this.yJ=b;b.Ng();this.V=p;this.H.ZE(d,e,i);this.Zia(c);this.fa()}};j.prototype.stop=function(){if(this.m!=d.K){this.m=d.K;if(this.ej){this.ej.start(this.sb);this.fa()}}};j.prototype.play=function(){if(this.m==d.K||this.m==d.yc){this.m=d.R;this.fa()}};j.prototype.pause=function(){if(this.m==d.R)this.m=d.yc};j.prototype.Ep=function(a){if(this.ej&&this.ej.jd()){if(this.m==d.R){this.ej.eb(a); this.fa()}this.ei(this.ej.ca,this.ej.da,this.ej.ra)}};j.prototype.Zia=function(a){this.p3();this.ej=e.ob("MovementPhotoCamera",a)?new i(this.g,this.H):new k(this.g,this.H);this.ej.start(a)};j.prototype.p3=function(){if(this.ej){this.ej.clear();this.ej=r}};j.prototype.nb=function(){this.H.setSize(this.g.Ba(),this.g.hb());this.fa()};j.prototype.fa=function(){this.trigger(new b(j.Ja))};j.prototype.ei=function(a,b,c){this.pc.Fa(this.X,a,b,c)};j.Ja="request frame";return j}); define("gg","require,dm,fd,bY,eL,lc,gb,je".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("bY"),d=a("eL"),f=a("lc");a("gb");var g=a("je"),k=c.extend(d,function(a,b){d.call(this);this.gD=[];this.F=a;this.g=b});k.prototype.lz=function(a){this.Kq(a).lz();return this};k.prototype.wd=function(a,b){this.Kq(a).wd(b);return this};k.prototype.xj=function(a,b){this.Kq(a).xj(b);return this};k.prototype.Fa=function(a,b,c,d){this.Kq(a).Fa(b,c,d);return this};k.prototype.uk=function(a){this.Kq(a).uk();return this}; k.prototype.stop=function(){this.D3(function(a){a.clear()});this.gD=[]};k.prototype.clear=function(){this.stop();this.g=this.F=this.gD=r};k.prototype.Zb=function(){this.D3(function(a){a.update()})};k.prototype.Kq=function(a){var b=this.Uja(a);if(!b){b=new i(a,this.g);b.bind(i.q0,this.vma,this);b.bind(i.o0,this.uma,this);this.gD.push(b)}return b};k.prototype.D3=function(a){b(this.gD).each(a,this)};k.prototype.Uja=function(a){return b(this.gD).find(function(b){return b.getItem()==a})};k.prototype.vma= function(){this.fa()};k.prototype.uma=function(a){this.trigger(new e(k.UN,{item:a.source.getItem()}))};k.prototype.fa=function(){this.trigger(new e(k.Ja))};k.Ja="request frame";k.UN="photo preload end";var i=c.extend(d,function(a,b){d.call(this);this.X=a;this.g=b;var c=a.get("camera");this.Dd=c?c.get("scaleMode",g.Me):g.Me;this.oh=a.get("media").Ng();this.oh.bind(f.S,this.Lf,this);this.oh.bind(f.ie,this.er,this);this.Y=i.cA;this.da=this.ca=0.5;this.ra=1;this.Mj=0;this.zw=z;this.ne=0;this.Z=z});i.prototype.getItem= R("X");i.prototype.lz=function(){this.Y==i.cA?this.FJ():this.E$()};i.prototype.wd=function(a){if(this.Mj!=a){this.Mj=a;this.dd()}};i.prototype.xj=function(a){if(this.ne!=a){this.ne=a;this.dd()}};i.prototype.Fa=function(a,b,c){if(this.ca!=a||this.da!=b||this.ra!=c){this.ca=a;this.da=b;this.ra=c;this.dd()}};i.prototype.uk=function(){if(!this.zw){this.zw=p;this.dd()}};i.prototype.clear=function(){this.Y==i.eG&&this.KC();(this.Y==i.$z||this.Y==i.bA||this.Y==i.aA)&&this.Mr();this.oh.unbind(f.S,this.Lf); this.oh.unbind(f.ie,this.er);this.oh=r};i.prototype.update=function(){if(this.Z){this.Z=z;if(this.ne>-1&&this.ne<1&&this.Mj>0){this.Y==i.cA&&this.yB();this.Y==i.$z&&this.kga();if(this.Y==i.eG){if(this.zw){this.g.tX(this.oh);this.zw=z}this.g.fm(this.oh,this.Mj);this.g.Lxa(this.oh,this.ne);this.g.eF(this.oh,this.ca,this.da,this.ra)}}else{this.Y==i.eG&&this.KC();(this.Y==i.$z||this.Y==i.aA)&&this.Mr()}}};i.prototype.dd=function(){if(!this.Z){this.Z=p;this.Ga()}};i.prototype.Ga=function(){this.trigger(new e(i.q0))}; i.prototype.FJ=function(){this.Y=i.bA;this.g.An(this.oh)};i.prototype.yB=function(){this.Y=i.aA;this.g.An(this.oh)};i.prototype.kga=function(){this.Y=i.eG;this.g.nX(this.oh);this.g.Oxa(this.oh,this.Dd)};i.prototype.KC=function(){this.Y=i.$z;this.g.removeItem(this.oh)};i.prototype.Mr=function(){this.Y=i.cA;this.g.ti(this.oh)};i.prototype.Lf=function(){if(this.Y==i.bA||this.Y==i.aA){var a=this.Y==i.bA;this.Y=i.$z;this.dd();a&&this.E$()}};i.prototype.er=function(){if(this.Y==i.bA||this.Y==i.aA)this.Y= i.cA};i.prototype.E$=function(){this.trigger(new e(i.o0))};i.q0="requestUpdate";i.o0="preloadEnd";i.cA="unloaded";i.bA="preloading";i.aA="loading";i.$z="loaded";i.eG="added";return k});define("jZ",[],function(){return{jm:"blending",nm:"scroll"}}); define("bH","dm,fd,bY,eL,lc,gg,jZ".split(","),function(a,b,c,e,d,f,g){function k(b,c,d){this.oj=b;this.item=c;this.oea=d;this.index=b&&c?a(b.get("playList").get("items")).indexOf(this.item):0;this.loaded=z}k.prototype.isEqual=function(a){return a&&a.oj==this.oj&&a.item==this.item};var i=b.extend(e,function(a,b,c){e.call(this);this.F=a;this.g=b;this.pc=c;this.pc.bind(f.UN,this.T7,this);this.uD=g.jm;this.Y=i.mw;this.Ld=new k(r,r,0);this.io=this.kh=this.Pe=r;this.vD=m;this.Fr=0});i.prototype.nya=P("uD"); i.prototype.zZ=P("Fr");i.prototype.RZ=function(a,b,c){this.kh=r;a=new k(a,b,c);if(!a.isEqual(this.Y==i.mw?this.Ld:this.Pe)){this.kh=a;this.a7()}};i.prototype.clear=function(){(this.Y==i.hG||this.Y==i.fG)&&this.trigger(new c(i.Vp,{album:this.Pe.oj,item:this.Pe.item}));this.Y=i.mw;this.g=this.F=this.io=this.Ld=this.Pe=this.kh=r;this.pc.unbind(f.UN,this.T7,this);this.pc=r};i.prototype.Zb=function(a){if(this.Y!=i.mw){this.vD=this.vD+a;a=this.Pe.oea;a=this.vD>=a?1:this.vD/a;this.Y==i.fG?this.isa(a):this.Y== i.gG?this.jsa(a):this.uD==g.jm?this.$ra(a):this.Fsa(a);a<1?this.fa():this.Vw()}};i.prototype.isa=function(a){this.pc.wd(this.Pe.item,a).xj(this.Pe.item,0)};i.prototype.jsa=function(a){this.pc.wd(this.Ld.item,1-a).xj(this.Ld.item,0)};i.prototype.$ra=function(a){this.pc.wd(this.Pe.item,Math.min(1,a*2)).xj(this.Pe.item,0);this.pc.wd(this.Ld.item,Math.min(1,(1-a)*2)).xj(this.Ld.item,0)};i.prototype.Fsa=function(a){var b=this.Ld.oj!=this.Pe.oj||this.Ld.index0?d[e-1]:r;this.lk=e1){a="quad_out";b=this.xI}else if(this.xK<-1){a="quad_out";b=this.CI}else{a="quad_in_out";b=this.ne<-0.5?this.CI:this.ne>0.5?this.xI:0}this.O=new l(a,[new q("offset",this.ne,b,1E3/this.qh)],0);this.fa()}};o.prototype.Zb=function(a){if(this.bi||this.O){if(this.O){this.O.eb(a);this.ne=this.O.wb("offset");if(this.O.Je()){this.O= r;this.Gja()}else this.fa()}this.X&&this.pc.xj(this.X,this.ne*(1+this.Fr)).wd(this.X,1);this.$j&&this.pc.xj(this.$j,(this.ne-1)*(1+this.Fr)).wd(this.$j,1);this.lk&&this.pc.xj(this.lk,(this.ne+1)*(1+this.Fr)).wd(this.lk,1)}};o.prototype.Gja=function(){this.trigger(new c(o.EN,{album:this.nd,item:this.ne<0?this.lk:this.ne>0?this.$j:this.X}))};o.prototype.fa=function(){this.trigger(new c(o.Ja))};o.prototype.w4=function(a){var b=a&&a.get("camera"),c=a&&a.get("media"),a=c&&c.get("width",100)||100,c=c&& c.get("height",100)||100,d=b?b.get("scaleMode",g.Me):g.Me,e={};if(f.ob("MovementPhotoCamera",b)){b=b.get("initialPosition",new k(0.5,0.5,1));e.x=b.get("x",0.5);e.y=b.get("y",0.5);e.zoom=b.get("zoomFactor",0.5)}else{e.x=0.5;e.y=0.5;e.zoom=1}this.H.ZE(a,c,d);this.H.setSize(this.g.Ba(),this.g.hb());this.H.Fa(e.x,e.y,e.zoom);e.x=this.H.getX();e.y=this.H.getY();e.zoom=this.H.am();return e};o.Ja="request frame";o.DN="interaction begin";o.EN="interaction end";return o}); define("gX","fd,bY,eL,lc,gg,jZ,bH,eo".split(","),function(a,b,c,e,d,f,g,k){var i=a.extend(c,function(a,b,d){c.call(this);this.F=a;this.g=b;this.pc=d;this.uD=f.jm;this.qh=1E3;this.Ta=new g(this.F,this.g,this.pc);this.Ta.bind(g.Ja,this.Wc,this,p);this.Ta.bind(g.aO,this.l6,this,p);this.Ta.bind(g.bO,this.m6,this,p);this.Ta.bind(g.Js,this.cC,this,p);this.Ta.bind(g.Vp,this.fC,this,p);this.Ta.bind(g.Ks,this.eC,this,p);this.Ta.bind(g.Kk,this.ql,this,p);this.Ta.bind(g.Lk,this.ck,this,p);this.Ph=new k(this.F, this.g,this.pc);this.Ph.bind(k.Ja,this.Wc,this,p);this.Ph.bind(k.DN,this.H5,this,p);this.Ph.bind(k.EN,this.I5,this,p)});i.prototype.SM=function(a,b){this.uD=a;this.qh=b;this.Ta.nya(a);this.Ph.mya(b);this.Ta.zZ(0.05);this.Ph.zZ(0.05)};i.prototype.display=function(a,b){this.Ta.RZ(a,b,this.qh)};i.prototype.hide=function(){this.Ta.RZ(r,r,this.qh)};i.prototype.clear=function(){this.Ta.unbind(g.Ja,this.Wc,this);this.Ta.unbind(g.aO,this.l6,this);this.Ta.unbind(g.bO,this.m6,this);this.Ta.unbind(g.Js,this.cC, this);this.Ta.unbind(g.Vp,this.fC,this);this.Ta.unbind(g.Ks,this.eC,this);this.Ta.unbind(g.Kk,this.ql,this);this.Ta.unbind(g.Lk,this.ck,this);this.Ta.clear();this.Ta=r;this.Ph.bind(k.Ja,this.Wc,this,p);this.Ph.bind(k.DN,this.H5,this,p);this.Ph.bind(k.EN,this.I5,this,p);this.Ph.clear();this.pc=this.g=this.F=this.Ph=r};i.prototype.Zb=function(a){this.Ta.Zb(a);this.Ph.Zb(a)};i.prototype.Wc=function(){this.fa()};i.prototype.cC=function(a){this.trigger(new b(i.Js,a.data))};i.prototype.fC=function(a){this.trigger(new b(i.Vp, a.data))};i.prototype.eC=function(a){this.trigger(new b(i.Ks,a.data));this.Ph.pxa(a.data.album,a.data.item)};i.prototype.ql=function(a){this.trigger(new b(i.Kk,a.data))};i.prototype.ck=function(a){this.trigger(new b(i.Lk,a.data))};i.prototype.l6=function(){this.Ph.disable()};i.prototype.m6=function(a){this.uD==f.nm&&a.data.item&&this.Ph.enable();a.data.album||this.trigger(new b(i.BN))};i.prototype.H5=function(){this.trigger(new b(i.r_))};i.prototype.I5=function(a){this.Ta.RZ(a.data.album,a.data.item, 0);this.trigger(new b(i.s_,a.data))};i.prototype.fa=function(){this.trigger(new b(i.Ja))};i.Ja="request frame";i.Js="photo added";i.Vp="photo removed";i.Ks="photo displayed";i.Lk="photo album show";i.Kk="photo album hide";i.r_="manual interaction begin";i.s_="manual interaction end";i.BN="all pending photo albums hidden";return i}); define("gy","require,dm,fd,u,bY,eL,fr".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("u"),d=a("bY"),f=a("eL"),g=a("fr"),k=c.extend(f,function(){f.call(this);this.nd=r;this.m=g.K;this.ZU=r});k.prototype.clear=function(){this.HX()};k.prototype.FZ=function(a){this.HX();this.nd=a;this.m=g.R;this.ZU=e.watch(this.nd,"playList.selectedIndex",this.Bu,this);this.nd.get("playList").get("selectedIndex")==0?this.Bu():this.nd.get("playList").set("selectedIndex",0)};k.prototype.HX=function(){if(this.nd){this.m= g.K;this.ZU.unwatch();this.nd=this.ZU=r}};k.prototype.stop=function(){if(this.m!=g.K){this.m=g.K;this.nd.get("playList").set("selectedIndex",0)}};k.prototype.play=function(){if(this.m==g.K){this.nd.get("playList").set("selectedIndex",0);this.m=g.R;this.Bu()}else if(this.m==g.yc)this.m=g.R};k.prototype.pause=function(){if(this.m==g.R)this.m=g.yc};k.prototype.next=function(){var a=this.nd.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b0||this.nd.get("loop"))&&a.set("selectedIndex",(b-1+c)%c)};k.prototype.qM=function(a){this.pqa(a)};k.prototype.Vva=function(a){if(this.nd){var c=b(this.nd.get("playList").get("items")).last();if(a==c&&!this.nd.get("loop")){this.m=g.K;this.trigger(new d(k.xN,{album:this.nd}))}else this.next()}};k.prototype.Bu=function(){var a=this.mla();a>=0&&(this.m!=g.R&&a!=0?this.trigger(new d(k.XN)): this.trigger(new d(k.IN,{album:this.nd,item:this.nd.get("playList").get("items")[a]})))};k.prototype.mla=function(){return this.nd?this.nd.get("playList").get("selectedIndex"):-1};k.prototype.pqa=function(a){if(this.nd){var c=this.nd.get("playList"),a=b(c.get("items")).indexOf(a);c.set("selectedIndex",a)}};k.XN="play request";k.IN="item request";k.xN="album end";return k}); define("cl","require,dm,fd,lc,bY,eL,fr,fu".split(","),function(a){a("dm");var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("fr"),g=a("fu"),k=b.extend(d,function(a){d.call(this);this.F=a;this.sD=this.X=r;this.xu=m;this.fI=z;this.m=f.K;g.bind(c.aa,this.B7,this,p)});k.prototype.qM=function(a){this.MQ();if(this.X=a){a=this.X.get("media").get("duration",0);this.xu=a==0?m:Math.max(0,a-this.F.get("transitionDuration"));this.fI=z;this.m==f.R&&this.cR()}};k.prototype.clear=function(){g.unbind(c.aa,this.B7, this,p);this.qM(r)};k.prototype.stop=function(){if(this.m!=f.K){this.MQ();this.Yb(f.K)}};k.prototype.play=function(){if(this.m==f.K){this.Yb(f.R);if(this.X){this.fI=z;var a=this.X.get("media").get("duration",0);this.xu=a==0?m:a;this.cR()}}else if(this.m==f.yc){this.Yb(f.R);this.X&&this.cR()}};k.prototype.pause=function(){if(this.m==f.R){this.Yb(f.yc);this.R7()}};k.prototype.cR=function(){if(!this.fI){this.fI=p;this.trigger(new e(k.JN,{item:this.X}))}this.G3()};k.prototype.B7=function(){g.visible? this.G3():g.visible||this.R7()};k.prototype.G3=function(){if(this.xu!==m){var a=this;this.MK=(new Date).getTime()+this.xu;this.sD=setTimeout(function(){a.sD=r;a.vra()},this.xu)}else this.MK=m};k.prototype.MQ=function(){if(this.sD){clearTimeout(this.sD);this.sD=r}};k.prototype.R7=function(){if(this.MK!==m){this.MQ();this.xu=Math.max(1,this.MK-(new Date).getTime());this.MK=m}};k.prototype.vra=function(){var a=this.X;this.X=r;this.xu=m;this.trigger(new e(k.HN,{item:a}))};k.prototype.Yb=function(a){if(this.m!= a){this.m=a;this.trigger(new e(k.bc,{state:this.m}))}};k.bc="playback state change";k.JN="item start";k.HN="item end";return k}); define("kn",["fd","bY","eL","V","r"],function(a,b,c,e,d){var f=a.extend(c,function(a){c.call(this);this.V=p;this.Ft=z;this.g=a;this.Tj=d.browser()==d.vs&&d.Xd()==d.GO?3:1;this.ke=this.SA=0});f.prototype.clear=function(){this.V=z;this.g=r;this.ke=this.SA=0};f.prototype.Ma=function(){this.Ft||(this.Ft=p,e.Ma(this.Dg,this))};f.prototype.Dg=function(a){this.V&&(this.SA++,this.ke+=a,this.SA==this.Tj?(this.SA=0,this.Ft=z,a=this.ke,this.ke=0,this.trigger(new b(f.Nk,{frameTime:a})),this.trigger(new b(f.Ok, {frameTime:a})),this.g.render()):e.Ma(this.Dg,this))};f.Nk="frameStart";f.Ok="positionSet";return f}); define("fc","fd,lc,bY,eL,hb,ch,gX,gy,cl,gg,kn".split(","),function(a,b,c,e,d,f,g,k,i,n,j){var l=a.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.of=new k(this.g);this.ta=new i(this.F);this.pc=new n(this.F,this.g);this.Ca=new g(this.F,this.g,this.pc);this.la=new f(this.g,this.pc);this.de=new j(this.g);this.jc=new d(this.g);this.pc.bind(n.Ja,this.Wc,this,p);this.of.bind(k.IN,this.F6,this,p);this.of.bind(k.XN,this.e7,this,p);this.of.bind(k.xN,this.dC,this,p);this.ta.bind(i.JN, this.G6,this);this.ta.bind(i.HN,this.E6,this);this.ta.bind(i.bc,this.oe,this,p);this.Ca.bind(g.Ja,this.Wc,this,p);this.Ca.bind(g.Js,this.cC,this,p);this.Ca.bind(g.Vp,this.fC,this,p);this.Ca.bind(g.Ks,this.eC,this,p);this.Ca.bind(g.Kk,this.ql,this,p);this.Ca.bind(g.Lk,this.ck,this,p);this.Ca.bind(g.r_,this.mna,this,p);this.Ca.bind(g.s_,this.nna,this,p);this.Ca.bind(g.BN,this.i6,this,p);this.la.bind(f.Ja,this.Wc,this,p);this.de.bind(j.Nk,this.jr,this,p);this.de.bind(j.Ok,this.kr,this,p)});l.prototype.clear= function(){this.of.clear();this.ta.clear();this.Ca.clear();this.la.clear();this.de.clear();this.jc.clear();this.pc.clear();this.pc.unbind(n.Ja,this.Wc,this);this.of.unbind(k.IN,this.F6,this);this.of.unbind(k.xN,this.dC,this);this.of.unbind(k.XN,this.e7,this);this.ta.unbind(i.JN,this.G6,this);this.ta.unbind(i.HN,this.E6,this);this.ta.unbind(i.bc,this.oe,this);this.Ca.unbind(g.Ja,this.Wc,this);this.Ca.unbind(g.Js,this.cC,this);this.Ca.unbind(g.Vp,this.fC,this);this.Ca.unbind(g.Ks,this.eC,this);this.Ca.unbind(g.Kk, this.ql,this);this.Ca.unbind(g.Lk,this.ck,this);this.Ca.unbind(g.BN,this.i6,this);this.la.unbind(f.Ja,this.Wc,this);this.de.unbind(j.Nk,this.jr,this);this.de.unbind(j.Ok,this.kr,this);this.F=this.g=this.pc=this.jc=this.de=this.la=this.Ca=this.ta=this.of=r};l.prototype.SM=function(a,b){this.Ca.SM(a,b)};l.prototype.cya=function(a){this.g.set("visible",p);this.of.FZ(a)};l.prototype.Gv=function(){this.of.HX();this.ta.stop();this.Ca.hide();this.la.end();this.jc.fea()};l.prototype.next=function(){this.of.next()}; l.prototype.TY=function(){this.of.TY()};l.prototype.stop=function(){this.ta.stop();this.jc.stop();this.of.stop();this.la.stop()};l.prototype.play=function(){this.ta.play();this.jc.play();this.of.play();this.la.play()};l.prototype.pause=function(){this.ta.pause();this.jc.pause();this.of.pause();this.la.pause()};l.prototype.mna=function(){this.ta.pause();this.jc.pause();this.of.pause();this.la.pause()};l.prototype.nna=function(){this.ta.play();this.jc.play();this.of.play();this.la.play()};l.prototype.F6= function(a){this.Ca.display(a.data.album,a.data.item)};l.prototype.e7=function(){this.play()};l.prototype.Wc=function(){this.de.Ma()};l.prototype.jr=function(a){this.la.Ep(a.data.frameTime)};l.prototype.kr=function(a){a=a.data.frameTime;this.Ca.Zb(a);this.pc.Zb(a);this.jc.Zb(a)};l.prototype.cC=function(a){this.la.start(a.data.item)};l.prototype.fC=function(a){var b=a.data.album,a=a.data.item,d=a.get("media");this.la.end(a);this.jc.Eya(d);this.trigger(new c(l.TN,{photoAlbum:b,item:a}))};l.prototype.eC= function(a){var b=a.data.album,a=a.data.item;a.get("media");this.of.qM(a);this.ta.qM(a);this.trigger(new c(l.SN,{photoAlbum:b,item:a}))};l.prototype.G6=function(a){this.jc.Bya(a.data.item.get("media"))};l.prototype.E6=function(a){this.of.Vva(a.data.item)};l.prototype.dC=function(a){this.ta.stop();this.jc.stop();this.trigger(new c(l.RN,{photoAlbum:a.data.album}))};l.prototype.ck=function(a){a=a.data.album;this.jc.FZ(a);this.ta.play();this.la.play();this.trigger(new c(l.Lk,{photoAlbum:a}))};l.prototype.ql= function(a){a=a.data.album;this.jc.Cya(a);this.trigger(new c(l.Kk,{photoAlbum:a}))};l.prototype.i6=function(){this.g.set("visible",z)};l.prototype.oe=function(a){this.trigger(new c(l.bc,{state:a.data.state}))};l.Lk="photoAlbumShow";l.RN="photoAlbumEnd";l.Kk="photoAlbumHide";l.SN="photoBegin";l.TN="photoEnd";l.bc="playbackStateChange";return l}); define("fO","require,jquery.mod,dm,je,ix,iO,r".split(","),function(a){function b(a,b){this.X=a;this.P=b;this.La=a.$c();this.Xa=a.Nd();this.sH=a.kR;this.jX=this.xB=0;this.Mj=1;this.ne=0;this.Z=p;this.lQ();this.dc=this.Xb=100;this.da=this.ca=0.5;this.ra=1;this.AC=p;this.rd=1;this.E3={};this.c5={};this.laa=g.browser()!=g.wf}var c=a("jquery.mod"),e=a("dm"),d=a("je"),f=a("ix");a("iO");var g=a("r");b.prototype.lQ=function(){this.bG=c("
");var a={position:"absolute",left:"0",top:"0",width:this.Xb+ "px",height:this.dc+"px",overflow:"hidden","-webkit-transform":"translateZ(0)"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.bG.css(a);this.KO=c(f.qe(this.X.sj()));a={display:"block",position:"absolute",left:"0",top:"0",width:this.La+"px",height:this.Xa+"px"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.KO.css(a);this.bG.append(this.KO)};b.prototype.Cb= R("bG");b.prototype.getItem=R("X");b.prototype.getX=R("ca");b.prototype.getY=R("da");b.prototype.am=R("ra");b.prototype.Ba=function(){return Math.round(this.La*this.ra*this.rd)};b.prototype.hb=function(){return Math.round(this.Xa*this.ra*this.rd)};b.prototype.wd=function(a){if(this.Mj!=a){this.Mj=a;this.Z=p}};b.prototype.PL=R("Mj");b.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.Z=p}};b.prototype.Iv=function(a,b){if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.Z=p}};b.prototype.Fa=function(a, b,c){if(this.ca!=a||this.da!=b||this.ra!=c){this.ca=a;this.da=b;this.ra=c;this.Z=p}};b.prototype.xj=function(a){if(this.ne!=a){this.ne=a;this.Z=p}};b.prototype.qxa=function(a){if(this.jX!=a){this.jX=a;this.Z=p}};b.prototype.render=function(){if(this.Z){this.Z=z;switch(this.Dd){case d.NONE:this.rd=1;break;case d.Qk:this.rd=this.Xb/this.La;break;case d.Wg:this.rd=this.dc/this.Xa;break;case d.lm:this.rd=this.La*this.dc>this.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;default:this.rd=this.La*this.dc> this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}var a=this.ra*this.rd,b=this.Xb*0.5-this.ca*this.La*a,c=this.dc*0.5-this.da*this.Xa*a,f=this.Xb*this.ne,g=function(a,b){return Math.round(a*Math.pow(10,b))*Math.pow(10,-b)},q={};q.width=g(this.Xb,0)+"px";q.height=g(this.dc,0)+"px";q.transform=this.laa?"translate3d("+g(f,2)+"px, 0px, 0px)":"translate("+g(f,2)+"px, 0px)";q["-moz-transform"]=q["-webkit-transform"]=q["-ms-transform"]=q.transform;q["z-index"]=this.jX;if(this.Mj==0)q.display="none";else{q.display= "block";if(this.Mj==1){q.filter=q["-ms-filter"]="";q.opacity=""}else{q.filter=q["-ms-filter"]="alpha(opacity="+Math.round(this.Mj*100)+")";q.opacity=this.Mj}}f=[];if(this.laa){f.push("translate3d("+g(b,2)+"px, "+g(c,2)+"px, 0px)");f.push("scale3d("+a+", "+a+", "+a+")");if(this.sH){f.push("translate3d("+this.La+"px, 0, 0)");f.push("scale3d(-1, 1, 1)")}}else{f.push("translate("+g(b,2)+"px, "+g(c,2)+"px)");f.push("scale("+a+", "+a+")");if(this.sH){f.push("translate("+this.La+"px, 0)");f.push("scale(-1, 1)")}}a= {};a["-moz-transform"]=a["-webkit-transform"]=a["-ms-transform"]=a.transform=f.join(" ");if(!e.isEqual(this.E3,q)){this.E3=q;this.bG.css(q)}if(!e.isEqual(this.c5,a)){this.c5=a;this.KO.css(a)}}};return b}); define("gf","require,jquery.mod,dm,fd,lc,gb,ix,fO,R,d".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("gb"),g=a("ix"),k=a("fO"),i=a("R"),n=a("d"),a=e.extend(n,function(){n.call(this);this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",i.$v);this.bind(d.yb,this.nb,this,p);this.bind(d.md,this.hh,this,p);this.bind(d.yd,this.eh,this,p);this.zu=z;this.Jb=[];this.sK=this.lp=z;this.aU=b("
");this.aU.css({position:"absolute",left:0,top:0,right:0,bottom:0, overflow:"hidden","-webkit-transform":"translateZ(0)"});this.Pa().append(this.aU)});a.prototype.An=function(a){g.An(a,f.Jj)};a.prototype.ti=function(a){g.ti(a,f.Jj)};a.prototype.nX=function(a){a=new k(a,this);a.Iv(this.Ba(),this.hb());a.Fa(0.5,0.5,0,1);this.aU.append(a.Cb());this.Jb.push(a);this.lp=p};a.prototype.removeItem=function(a){if(a=this.fl(a)){this.Jb=c.without(this.Jb,a);a.Cb().detach();this.lp=p}};a.prototype.tX=function(a){if(a=this.fl(a)){this.Jb=c.without(this.Jb,a);this.Jb.push(a); this.lp=p}};a.prototype.Oxa=function(a,b){this.fl(a).rs(b)};a.prototype.fm=function(a,b){this.fl(a).wd(b)};a.prototype.Lxa=function(a,b){this.fl(a).xj(b)};a.prototype.eF=function(a,b,c,d){this.fl(a).Fa(b,c,d)};a.prototype.yE=function(a){return this.fl(a).getX()};a.prototype.zE=function(a){return this.fl(a).getY()};a.prototype.uba=function(a){return this.fl(a).am()};a.prototype.xE=function(a){return this.fl(a).Ba()};a.prototype.wE=function(a){return this.fl(a).hb()};a.prototype.render=function(){if(this.zu){this.Bsa(); this.Iqa();for(var a=0;a=0?this.Oc[a]:r};a.prototype.w9=function(a){if((this.hg!=a||this.ml!==m)&&this.ml!==a)if(this.ml===m){this.ml=a;if(this.hg)if(this.ml&&this.hg.get("player")==this.ml.get("player")){this.hg.rF();this.iu()}else this.hg.stop();else this.iu()}else this.ml= a};a.prototype.iu=function(){if(this.hg){this.hg.unbind(k.Jk,this.DT,this);this.hg.unbind(k.je,this.iu,this);this.hg.unbind(k.Da,this.iu,this)}if(this.ml){this.hg=this.ml;this.ml=m;this.hg.bind(k.Jk,this.DT,this);this.hg.bind(k.je,this.iu,this);this.hg.start()}else{this.ml=this.hg=m;this.set("selectedIndex",-1)}};a.prototype.DT=function(){this.hg.unbind(k.Jk,this.DT,this);this.hg.unbind(k.je,this.iu,this);this.hg.bind(k.Da,this.iu,this)};a.prototype.$$=function(){this.EC&&g.wM(this.EC.get("media"), -1);(this.EC=this.Oc&&this.sd>=0?this.Oc[(this.sd+1)%this.Oc.length]:r)&&g.wM(this.EC.get("media"),1)};return a});define("hR",["fd","dT","dJ"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayList",a).B("PlayList").L({items:"array[PhotoPlayListItem]"});return a});define("if",["fd","dT","dj"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayListItem",a).B("PlayListItem").L({media:"Photo",camera:"PhotoCamera"});return a}); define("eD",["require","dm","fd","eQ","dT"],function(a){a("dm");var b=a("fd"),c=a("eQ"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PlaybackBar",b).B("UIComponent").L({barBackgroundColor:"or[array[color], color]",barBackgroundColorDirection:"enum[horizontal, vertical]",barBackgroundColorRatios:"array[number]",barBorderColor:"color",barBorderRadius:"number",barBorderSize:"number",barOpacity:"number",playheadBackgroundColor:"or[array[color], color]",playheadBackgroundColorDirection:"enum[horizontal, vertical]", playheadBackgroundColorRatios:"array[number]",playheadBorderColor:"color",playheadBorderRadius:"number",playheadBorderSize:"number",playheadOpacity:"number",playheadWidth:"or[number, percent]",playheadHeight:"or[number, percent]",playheadShadow:"bool",playheadShadowBlurRadius:"number",playheadShadowColor:"color",playheadShadowHorizontalLength:"number",playheadShadowOpacity:"number",playheadShadowSpread:"number",playheadShadowVerticalLength:"number",stepBackgroundColor:"or[array[color], color]",stepBackgroundColorDirection:"enum[horizontal, vertical]", stepBackgroundColorRatios:"array[number]",stepBorderColor:"color",stepBorderRadius:"number",stepBorderSize:"number",stepOpacity:"number",stepWidth:"or[number, percent]",stepHeight:"or[number, percent]",stepShadow:"bool",stepShadowBlurRadius:"number",stepShadowColor:"color",stepShadowHorizontalLength:"number",stepShadowOpacity:"number",stepShadowSpread:"number",stepShadowVerticalLength:"number",selectedStepBackgroundColor:"or[array[color], color]",selectedStepBackgroundColorDirection:"enum[horizontal, vertical]", selectedStepBackgroundColorRatios:"array[number]",selectedStepBorderColor:"color",selectedStepBorderRadius:"number",selectedStepBorderSize:"number",selectedStepOpacity:"number",selectedStepWidth:"or[number, percent]",selectedStepHeight:"or[number, percent]",selectedStepShadow:"bool",selectedStepShadowBlurRadius:"number",selectedStepShadowColor:"color",selectedStepShadowHorizontalLength:"number",selectedStepShadowOpacity:"number",selectedStepShadowSpread:"number",selectedStepShadowVerticalLength:"number", position:"number",duration:"number",steps:"number",selectedStep:"number"});return b}); define("jU",["require"],function(){function a(a){try{for(var d=(c.JE<<12)+c.NE&65535,f="",g=0,k=a.length;ga.Ba(),d=Math.min(a.Ba(),a.hb())/100,a=function(a){return Math.round(a*d)};this.N({gap:b?a(4.63):20,paddingLeft:b?a(4.63):20, paddingRight:b?a(4.63):20,paddingTop:b?a(4.63):14,paddingBottom:b?a(4.63):14,layout:b&&c?j.ef:j.we});this.fi&&this.fi.N({fontSize:b?a(3.15):14,textAlign:b&&c?"center":"left"});this.oq&&this.oq.N({gap:b?0:13});this.dt&&this.dt.N({borderRadius:b?a(4.63):15,fontSize:b?a(3.15):14,height:b?a(9.26):30,paddingLeft:b?a(6):20,paddingRight:b?a(6):20});this.Aw&&this.Aw.N({borderRadius:b?a(4.63):15,fontSize:b?a(3.15):14,height:b?a(9.26):30,paddingLeft:b?a(6):20,paddingRight:b?a(6):20});this.Jc()}};a.prototype.Z2= function(){var a=e.toArray(this.qb.get("cookiesPolicy"));if(this.zC!=a){this.zC=a;this.npa()}};a.prototype.npa=function(){if(this.zC.length==0)this.mV(r);else{var a=this.zC[0];e.toArray(a.get("geographicArea")).length==0?this.mV(a):this.Eka(function(a){for(var b=r,c=0;c=0&&(b=d)}this.mV(b)}.bind(this))}};a.prototype.mV=function(a){if(this.Qx!==a){this.Qx&& this.Qx.unbind(d.D("url"),this.IW,this);if(this.Qx=a){this.Qx.bind(d.D("url"),this.IW,this);this.IW();this.set("visible",p)}else{this.trigger(d.Xv);this.set("visible",z)}}};a.prototype.IW=function(){var a=c(document.createElement("div")).html(f("cookies-notice"));a.find("a").css({color:"#2aabe2",cursor:"pointer","text-decoration":"underline"}).attr({href:this.Qx.get("url"),target:"_blank"});this.QV=a.html();this.fi&&this.fi.set("content",this.QV)};a.prototype.rha=function(){this.x9(p);this.set("visible", z);this.trigger(d.Xv)};a.prototype.Dha=function(){this.x9(z);this.set("visible",z)};var s=["AT","BE","BG","CY","CZ","DE","DK","EE","EL","ES","FI","FR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"];a.prototype.Eka=function(a){this.vka(function(b){var c=[b];s.indexOf(b)&&c.push("EU");a(c)})};a.prototype.vka=function(a){var d=b("tdvp_country_code");if(d)a(d);else if(!this.M3){this.M3=p;c.get("https://geoloc.3dvista.com",function(b){this.M3=z;b=b.country.toUpperCase();try{window.localStorage.setItem("tdvp_country_code", b)}catch(c){}a(b)}.bind(this))}};var u="tdvp_accept_cookies_"+window.location.origin+window.location.pathname;a.prototype.ela=function(){var a=b(u);if(a=="yes")return p;if(a=="no")return z};a.prototype.x9=function(a){try{window.localStorage.setItem(u,a?"yes":"no")}catch(b){}};return a}); define("jc",["require"],function(){function a(a){var b=a instanceof Request||a instanceof Response?a.url:a;b&&(b=b.split("#")[0]);b&&(b=b.split("?")[0]);return!b||-1!=b.indexOf("://")?Promise.resolve(b):("undefined"!==typeof window?Promise.resolve(window.location.href):clients.matchAll({type:"window"}).then(function(a){if(a.length)return a[0].url})).then(function(a){return(new URL(b,a)).toString()})}function b(a,b){return new Promise(function(c,e){(b===m?d():Promise.resolve(b)).then(function(b){(window.webkitRequestFileSystem|| window.requestFileSystem)(b?PERSISTENT:TEMPORARY,a,function(a){c(a)},function(a){console.log("Error getting file system access",a);e("error getting file system")})},function(a){console.log("error getting file system access",a);e("error getting file system")})})}function c(a,b){return a&&a.queryUsageAndQuota?new Promise(function(c,d){a.queryUsageAndQuota(function(e,f){console.log("UsedBytes:",e,"grantedBytes:",f,"freeBytesRequired:",b);var g=e+b;f>=g?c(g):a==navigator.webkitPersistentStorage||a==navigator.persistentStorage? (console.log("requestQuota:",g),a.requestQuota(g,function(){console.log("Granted bytes:",g);c(g)},function(a){console.log("Not granted bytes:",g,a);d("not enough free space granted")})):(console.log("Not enough temporary free space."),d("not enough free space granted"))},function(a){console.log("Query quota error:",a);a&&a.message&&(a=a.message);d("not enough free space granted: "+a)})}):Promise.reject("unknown free space")}function e(){return(navigator.storage&&navigator.storage.persist?navigator.storage.persist(): Promise.resolve(z)).then(function(a){console.log("Persistence granted:",a);return a?navigator.webkitPersistentStorage||navigator.persistentStorage:navigator.webkitTemporaryStorage||navigator.temporaryStorage})}function d(){return navigator.storage&&navigator.storage.persisted?navigator.storage.persisted():Promise.resolve(z)}function f(){return!v?Promise.reject("files uninitialized, no space was requested"):Promise.resolve(v)}function g(a){a.length&&"/"==a[0]&&(a=a.substr(1));return a.split("/").filter(function(a){return""!= a})}function k(a){return new Promise(function(b,c){a.remove(function(){b()},function(a){c("can't remove entry"+(a&&a.message?": "+a.message:"")+".")})})}function i(a){return n(a).then(function(a){return Promise.all(a.map(function(a){return a.isDirectory?i(a):k(a)}))}).then(function(){return k(a).then(function(){return Promise.resolve()},function(){return Promise.resolve()})})}function n(a){return new Promise(function(b,c){a.createReader().readEntries(function(a){b(a)},function(){c("can't list directory")})})} function j(a,b,c){return new Promise(function(d,e){a.getDirectory(b,c,function(a){d(a)},function(){e("can't get directory entry: "+b)})})}function l(a,b){return new Promise(function(c,d){j(a,b,{create:z}).then(function(a){c(a)})["catch"](function(){j(a,b,{create:p}).then(function(a){c(a)})["catch"](function(a){console.log("Can't create directory entry: "+b,a);d("can't create directory entry: "+b)})})})}function q(a,b){return 0==b.length?a:l(a,b[0]).then(function(a){return q(a,b.slice(1))})}function o(a, b){return 0==b.length?a:j(a,b[0]).then(function(a){return o(a,b.slice(1))})}function t(a,b,c){return new Promise(function(d,e){a.getFile(b,c,function(a){d(a)},function(){e("can't get file entry: "+b)})})}function s(a){return new Promise(function(b,c){a.createWriter(function(a){b(a)},function(){c("can't create File for writing: "+path)})})}function u(a){var b=a.lastIndexOf(".");switch((0>b?"":a.substr(b)).toLowerCase()){case ".bmp":return"image/bmp";case ".eot":return"application/vnd.ms-fontobject"; case ".gif":return"image/gif";case ".htm":case ".html":return"text/html";case ".jpeg":case ".jpg":return"image/jpeg";case ".js":return"text/javascript";case ".json":return"application/json";case ".m3u8":return"application/vnd.apple.mpegurl";case ".m4a":return"audio/mp4";case ".m4v":return"video/mp4";case ".mp3":return"audio/mpeg";case ".mp4":return"video/mp4";case ".ogg":return"audio/ogg";case ".ogv":return"video/ogg";case ".otf":return"font/otf";case ".png":return"image/png";case ".svg":return"image/svg+xml"; case ".tif":return"image/tiff";case ".tiff":return"image/tiff";case ".ts":return"video/vnd.dlna.mpeg-tts";case ".ttf":return"application/font-sfnt";case ".tts":return"video/vnd.dlna.mpeg-tts";case ".txt":return"text/plain";case ".webm":return"video/webm";case ".woff":return"font/x-woff";case ".woff2":return"font/woff2";case ".xml":return"text/xml";default:return"application/octet-stream"}}var v=r;return{AM:function(){return d()},toURL:function(b,c){return a(b).then(function(a){var a=new URL(a),b= c?"persistent":"temporary",d=a.pathname.split("/").map(encodeURIComponent).join("/");return"filesystem:"+a.origin+"/"+b+d})},Vwa:function(a){return e().then(function(b){return c(b,a)}).then(function(a){return b(a)}).then(function(a){v=a})},Owa:function(a){var a=g(a),b=a[a.length-1],c=a.slice(0,-1);return f().then(function(a){return o(a.root,c)}).then(function(a){return t(a,b,{create:p})},function(){return Promise.resolve(r)}).then(function(a){return a&&k(a)})},kda:function(a,c){var d=g(a);return b(1024, c).then(function(a){return o(a.root,d)}).then(function(a){return i(a)},function(){return Promise.resolve()})},Aea:function(a,b,c){var d=g(a),e=d[d.length-1],i=d.slice(0,-1);return f().then(function(a){return q(a.root,i)}).then(function(a){return t(a,e,{create:z}).then(function(a){return Promise.resolve(a)},function(){return t(a,e,{create:p})})}).then(function(a){return s(a)}).then(function(d){d.seek(d.length);return new Promise(function(f,g){d.onwriteend=function(){f()};d.onerror=function(b){console.log("Error writing file:", a,b);g("error writing file: "+a)};d.write(new Blob([b],{type:c||u(e)}))})})}}}); define("bW",["require","jc","jk","r"],function(a){function b(a,b){this.Br=a;this.KP=z;this.JC=r;this.Oo=b||C()}function c(a){return a.Rv>=f}var e=a("jc"),d=a("jk"),f=1048576,g=10485760,k=a("r").se()?3:5,a={File:function(a,b){this.url=a;this.Rv=b;this.XE=this.Gy=0}},i=a.Files=function(a,b,c,d){this.m2=this.fha=a;this.Km=b.slice();this.L3=[];var e=0;this.Km.sort(function(a,b){return a.Rv-b.Rv});this.Km.forEach(function(a){e+=a.Rv});this.q$=e;this.yt=[];this.CG=m;this.zm=[];this.LP=z;this.Td=c||C(); this.OA=d||C()};i.prototype.kn=function(){return this.$ha().then(function(){return this.aia()}.bind(this))};i.prototype.$ha=function(){return caches["delete"](this.m2)};i.prototype.aia=function(){var a=(new d(this.fha)).pathname;return e.kda(a,z).then(function(){return e.kda(a,p)})};i.prototype.requestStorage=function(){return e.Vwa(Math.round(1.1*this.q$+10485760)).then(function(){return e.AM()})};i.prototype.download=function(){this.LP=z;this.CG=0;this.kn().then(function(){this.MA()}.bind(this))["catch"](function(a){console.log("error cleaning storage", a);e.AM().then(function(a){this.OA(z,a)}.bind(this))}.bind(this))};i.prototype.cancelDownload=function(){this.LP=p;this.zm.forEach(function(a){a.cancel()});this.kn()};i.prototype.MA=function(){if(!(this.LP||this.zm.length>=k))if(0=this.L3.length;e.AM().then(function(a){this.OA(i,a)}.bind(this))}};i.prototype.z3=function(a,b,d){d?(this.yt.splice(this.yt.indexOf(a),1),this.zm.splice(this.zm.indexOf(b),1),this.CG+=a.Rv,this.Rl(),this.MA()): (a.Gy=0,a.XE+=1,this.Rl(),20<=a.XE?(console.log("Error downloading file: "+a.url+" after "+a.XE+" retries."),this.n5(a.url)?(this.L3.push(a),this.zm.splice(this.zm.indexOf(b),1),this.MA()):(this.cancelDownload(),e.AM().then(function(a){this.OA(z,a)}.bind(this)))):(console.log("Error downloading file: "+a.url+" attempt "+a.XE+" of 20. Will retry in 2000ms."),setTimeout(function(){this.yt.splice(this.yt.indexOf(a),1);this.zm.splice(this.zm.indexOf(b),1);c(a)?this.Km.push(a):this.Km.splice(0,0,a);this.MA()}.bind(this), 2E3)))};i.prototype.cra=function(a,b){return this.era(a,b).then(function(){if(!this.n5(a))return this.dra(a,b)}.bind(this))};i.prototype.dra=function(a,b){b=b.clone();return 200!=b.status?Promise.reject("response status: "+b.status):caches.open(this.m2).then(function(c){return c.put(a,b)})};i.prototype.era=function(a,b){b=b.clone();if(200!=b.status)return Promise.reject("response status: "+b.status);var c=(new d(a)).pathname;return c.lastIndexOf("/")==c.length-1?Promise.resolve():new Promise(function(a, d){function f(){F.read().then(function(b){var c=b.value,d=[];if(c){for(;c.length+y>=g;){var e=c.slice(0,g-y);n.push(e);d.push(i(n));n=[];y=0;c=c.slice(e.length,c.length)}0a.indexOf("loading/")};i.prototype.Rl=function(){var a=this.CG;this.yt.forEach(function(b){a+=b.Gy});this.Td(100*a/this.q$)};b.prototype.fetch=function(){return fetch(this.Br).then(function(a){if(this.KP)return a.body.getReader().cancel(),Promise.reject("cancel requested before server responded.");if(!a.ok)return Promise.resolve(a);var b=a.headers.get("content-length"),c=m,d=0;b!==r&&(c=parseInt(b,10));this.JC=a.body.getReader();var e=z,f=function(a){this.KP?a.close():e=p}.bind(this),g=function(a){return this.JC.read().then(function(b){var e= b.value;e&&(d+=e.byteLength,a.enqueue(e));b.done&&(c=d,i(a));this.Oo({Rv:c,Gy:d})}.bind(this))["catch"](function(b){console.log("Error reading response",b);a.error(b)}.bind(this))}.bind(this),i=function(a){e&&(a.close(),e=z,this.JC=r)}.bind(this);return new Response(new ReadableStream({start:function(a){return f(a)},pull:function(a){return g(a)},cancel:function(){i()}}))}.bind(this))};b.prototype.cancel=function(){this.KP=p;this.JC&&this.JC.cancel()};a.kn=function(a){return(new i(a,[])).kn()};return a}); define("dL","require,fd,jquery.mod,lc,eL,r,bW,jc,jv,jk,iC,cI".split(","),function(a){function b(a){o=a}var c=a("fd"),e=a("jquery.mod"),d=a("lc"),f=a("eL"),g=a("r"),k=a("bW"),i=a("jc"),n=a("jv"),j=a("jk"),l=a("iC"),q=a("cI"),o=r;window.addEventListener("beforeinstallprompt",b);var t=c.extend(f,function(a){f.call(this);this.qb=a;this.m="initial";this.aV=this.qK=this.yg=r;this.DU=z;this.Et=r;this.fL=m;this.ut=o;this.nI=t.Ica();this.WS=j.Vf("vr");if(!this.ut&&!this.nI){window.removeEventListener("beforeinstallprompt", b);window.addEventListener("beforeinstallprompt",this.Wma.bind(this))}this.nI||window.addEventListener("appinstalled",this.Hga.bind(this))});t.prototype.BZ=function(a){this.qK=a;this.Ki=j.ts(this.qK.get(TDV.PlayerSettings.BASE_DIR_URL)||j.getDirectory(this.qK.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL)));if(this.Ki[this.Ki.length-1]!="/")this.Ki=this.Ki+"/";this.yg=new s(this.Ki);this.fL=this.s8=a.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);this.Hla=j.parse(j.getDirectory(window.location.href)).pathname; this.Qja=j.$u(j.ts("files.json",this.Ki),this.s8);a=TDV.Aa.YL();this.aV=j.$u(this.qK.get(TDV.PlayerSettings.SERVICE_WORKER_URL),"swv="+a.MAJOR+"."+a.MINOR);this.yg=new s(this.Ki);this.yg.bind(d.S,this.sra,this,p);this.yg.load()};t.prototype.az=function(){return this.yg.state==s.Kz};t.prototype.Kaa=function(){return this.m=="can_install"&&!this.WS};t.prototype.Maa=function(){return this.az()&&this.fL!=this.yg.version&&!this.WS};t.prototype.Jaa=function(){return this.yg.state!=s.j_&&!this.WS};t.prototype.pca= function(){if(this.m=="can_install")if(this.ut){this.ut.userChoice.then(function(a){a.outcome!="accepted"&&this.Yb("unavailable")}.bind(this));this.ut.prompt().then(function(){this.ut=r}.bind(this))}else this.VQ()};t.prototype.cancel=function(){if(this.m=="downloading"){if(this.Et){this.Et.cancelDownload();this.Et=r}this.yg.kn();this.Yb("unavailable")}};t.prototype.kn=function(){k.kn(this.Ki);this.yg.kn()};t.prototype.sra=function(){this.qb.get("downloadEnabled")!==p?this.Yb("unavailable"):n.Mea!== p?this.Yb("unavailable"):g.browser()!=g.wi||g.Hc()==g.ws||g.Hc()==g.Vv?this.Yb("unavailable"):this.aV?"serviceWorker"in navigator?this.az()&&!this.Maa()?this.Yb("unavailable"):navigator.onLine?this.Joa():this.Yb("unavailable"):this.Yb("unavailable"):this.Yb("unavailable")};t.prototype.Yb=function(a){if(this.m!=a){this.m=a;a=["can_install","unavailable"].indexOf(this.m)>=0;if(this.DU!=a)(this.DU=a)&&this.trigger(d.Db)}};t.prototype.Joa=function(){this.Yb("registering_sw");navigator.serviceWorker.register(this.aV, {scope:this.Hla}).then(function(){this.Z8(p)}.bind(this))["catch"](function(){this.Z8(z)}.bind(this))};t.prototype.Z8=function(a){if(a)if(g.se())this.Yb("can_install");else if(this.nI&&this.yg.state==s.wN){this.Yb("can_install");this.VQ()}else if(this.ut)this.Yb("can_install");else{this.Yb("sw_registered");setTimeout(function(){this.m=="sw_registered"&&this.Yb("can_install")}.bind(this),3E3)}else this.Yb("unavailable")};t.prototype.Wma=function(a){this.ut=a;this.m=="sw_registered"&&this.Yb("can_install")}; t.prototype.Hga=function(){this.m=="sw_registered"&&this.Yb("can_install");this.VQ()};t.prototype.VQ=function(){this.Yb("downloading");this.trigger(d.Jk);this.F$(0);this.xma()};t.prototype.xma=function(){var a=j.$u(this.Qja,"nc="+(new Date).getTime());e.getJSON(a,function(a){if(this.m=="downloading"){var b=[],c;for(c in a){var d=a[c].tags;if(d){Array.isArray(d)||(d=[d]);for(var e=0;e=0&&g.zY()?f.push("mobilevr2gen"): b.indexOf("mobilevr")>=0&&g.se()?f.push("mobilevr"):b.indexOf("mobile")>=0&&g.Wa()?f.push("mobile"):b.indexOf("desktop")>=0&&!g.Wa()&&f.push("desktop");b=[];for(c in a){if(d=a[c].tags){var i=z;if(Array.isArray(d))for(var e=0,l=d.length;e=0;else i=f.indexOf(d)>=0;if(!i)continue}d=j.ts(c,this.Ki);b.push(new k.File(d,a[c].size))}var o=(new j(window.location.pathname,window.location.href)).toString();b.filter(function(a){return a.url==o}).length==0&&b.push(new k.File(o,1024)); this.Et=new k.Files(this.Ki,b,this.F$.bind(this),this.y3.bind(this));this.Et.requestStorage().then(function(a){this.yg.storage=a?s.Qz:s.zO;this.yg.state=s.wN;this.yg.version=this.fL;this.yg.save();this.Et.download()}.bind(this))["catch"](function(){this.y3(z,m)}.bind(this))}}.bind(this))};t.prototype.F$=function(a){this.trigger(new l(d.sc,a))};t.prototype.y3=function(a,b){this.Et=r;this.Yb("unavailable");if(a){this.yg.state=s.Kz;this.yg.save()}a?this.trigger(d.Da,{success:p}):b?this.trigger(d.Da, {success:z,error:t.l_}):g.se()?this.trigger(d.Da,{success:z,error:t.k_}):this.nI?this.trigger(d.Da,{success:z,error:t.l_}):this.trigger(d.Da,{success:z,error:t.m_})};t.Ica=function(){return j.Lg("installed",z)};t.Ewa=function(a,b){var c=new t.fO(a);c.bind(d.S,function(){var d=z;c.state==t.fO.Kz&&(d=t.Ica()?p:!navigator.onLine);d?i.toURL(a,c.storage==t.fO.Qz).then(function(a){b(a)}):b(a)},this,p);c.load()};t.m_="launchFromHomeScreen";t.k_="addToBookmark";t.l_="errorDownloading";var s=c.extend(f,function(a){f.call(this); this.Ki=a;this.QS="installation_state_"+a;this.eoa=j.parse(this.Ki).pathname+"installation_state.json";this.state=this.storage=this.version=m;this.h9()});s.prototype.load=function(){if(this.yma()&&this.state==s.Kz)this.j$(this.storage==s.Qz).then(function(){this.trigger(d.S)}.bind(this))["catch"](function(){this.j$(this.storage!=s.Qz).then(function(){this.storage=this.storage==s.zO?s.Qz:s.zO;this.UU();this.trigger(d.S)}.bind(this))["catch"](function(){this.state=s.wN;this.UU();this.trigger(d.S)}.bind(this))}.bind(this)); else this.trigger(d.S)};s.prototype.save=function(){this.UU();this.state==s.Kz&&this.lpa()};s.prototype.yma=function(){var a=q.getItem(this.QS);if(!a)return z;this.gka(a);return p};s.prototype.UU=function(){q.setItem(this.QS,this.p$())};s.prototype.j$=function(a){return new Promise(function(b,c){i.toURL(this.Ki+"installation_state.json",a).then(function(a){e.ajax({type:"GET",url:a,success:function(){b()},error:function(){c()}})}.bind(this))}.bind(this))};s.prototype.lpa=function(){i.Aea(this.eoa, this.p$(),"text/json")};s.prototype.p$=function(){var a={};a.version=this.version;a.storage=this.storage;a.state=this.state;return JSON.stringify(a)};s.prototype.gka=function(a){this.fka(JSON.parse(a))};s.prototype.fka=function(a){this.version=a.version;this.storage=a.storage;this.state=a.state};s.prototype.kn=function(){q.removeItem(this.QS);this.h9()};s.prototype.h9=function(){this.version="";this.storage=s.Efa;this.state=s.j_};s.Efa="unkonwn";s.zO="temporary";s.Qz="persistent";s.j_="not started"; s.wN="started";s.Kz="completed";t.fO=s;return t}); define("ic","require,fd,lc,lb,r,dL,ew,eC,jP,c,kJ,d,gM".split(","),function(a){function b(a){var b=new k;b.N({label:a,backgroundColor:"#0071BC",borderRadius:2,fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",fontSize:14,paddingLeft:14,paddingRight:14,height:31,verticalAlign:n.rc});return b}var c=a("fd"),e=a("lc"),d=a("lb"),f=a("r"),g=a("dL"),k=a("ew"),i=a("eC"),n=a("jP"),j=a("c"),l=a("kJ"),q=a("d"),o=a("gM"),a=c.extend(l,function(a,b){l.call(this);this.qb=a;this.ae=b;this.ae.bind(e.Db, this.$la,this,p);this.ae.bind(e.Jk,this.Xla,this,p);this.ae.bind(e.sc,this.Zla,this,p);this.ae.bind(e.Da,this.Yla,this,p);this.Y="hidden";this.WD=m;this.hU=z;this.Td=m;this.Zf=this.ao=this.et=this.ht=this.ft=this.wK=this.qa=r;this.Ega();this.N({backgroundColor:"#000000",gap:18,height:55,width:"100%",paddingLeft:28,paddingRight:28,verticalAlign:n.rc,layout:j.we});this.ge()});a.prototype.$la=function(){if(this.ae.Kaa()||this.ae.az()&&this.ae.Jaa()){this.Y="ready";this.hU&&this.P9()}else this.Y="hidden"; this.ge()};a.prototype.Xla=function(){this.Y="installing";this.ge()};a.prototype.Zla=function(a){this.Td=a.zh;this.ge()};a.prototype.Yla=function(a){this.Y=a.data.success?"installed":"failed";this.I3=a.data.error;this.ge()};a.prototype.$i=function(){this.bra()};a.prototype.XI=function(){if(!this.hU){this.hU=p;this.Y=="ready"&&this.P9()}};a.prototype.P9=function(){this.WD=setTimeout(function(){this.WD=r;this.Tna()}.bind(this),5E3);this.ge()};a.prototype.bra=function(){this.C8();this.WD&&clearTimeout(this.WD); this.WD=r};a.prototype.Tna=function(){this.C8();if(this.Y=="ready"){this.Y="hidden";this.ge()}};a.prototype.Ega=function(){this.bind(e.Lc,this.$i,this);this.qb.bind(e.Lc,this.XI,this);this.qb.bind(e.xb,this.XI,this)};a.prototype.C8=function(){this.unbind(e.Lc,this.$i,this);this.qb.unbind(e.Lc,this.XI,this);this.qb.unbind(e.xb,this.XI,this)};a.prototype.Ia=function(){l.prototype.Ia.call(this);if(this.qa==r){this.qa=new o;this.qa.N({fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif", fontSize:14,text:d("download-tour")});this.ma(this.qa)}if(this.ft==r){this.ft=b(d("download"));this.ma(this.ft);this.ft.bind(e.T,this.wha,this,p)}if(this.ht==r){this.ht=b(d("refresh-downloaded"));this.ma(this.ht);this.ht.bind(e.T,this.Cha,this,p)}if(this.et==r){this.et=b(d("delete-downloaded"));this.ma(this.et);this.et.bind(e.T,this.vha,this,p)}if(this.wK==r){this.wK=new q;this.wK.N({width:"100%"});this.ma(this.wK)}if(this.ao==r){this.ao=new i;this.ao.N({backgroundColor:"#ffffff",borderRadius:2,iconColor:"#000000", iconLineWidth:1,iconWidth:17,iconHeight:17,height:31,width:31});this.ma(this.ao);this.ao.bind(e.T,this.uha,this,p)}if(this.Zf==r){this.Zf=b(d("cancel"));this.ma(this.Zf);this.Zf.bind(e.T,this.vG,this,p)}f.Wa()&&this.Wm();this.ge()};a.prototype.Vk=function(){l.prototype.Vk.call(this);f.Wa()&&this.getParent().bind(e.yb,this.Wm,this,p)};a.prototype.gj=function(){f.Wa()&&this.getParent().unbind(e.yb,this.Wm,this,p);l.prototype.gj.call(this)};a.prototype.Wm=function(){var a=this.getParent();if(a){var b= Math.min(a.Ba(),a.hb())/100,c=function(a){return Math.round(a*b)};this.N({gap:c(3.9),height:c(11.9),paddingLeft:c(6),paddingRight:c(6)});this.qa&&this.qa.N({fontSize:c(3)});[this.ft,this.Zf,this.ht,this.et].forEach(function(a){a&&a.N({borderRadius:c(0.4),fontSize:c(3),paddingLeft:c(3),paddingRight:c(3),height:c(6.7)})});this.ao&&this.ao.N({borderRadius:c(0.4),iconLineWidth:c(0.22),iconWidth:c(3.7),iconHeight:c(3.7),height:c(6.7),width:c(6.7)})}};a.prototype.ge=function(){var a;switch(this.Y){case "ready":a= this.ae.az()?d("downloaded"):d("download-tour");break;case "installing":a=d("downloading");this.Td!==m&&(a=a+("..."+this.Td.toFixed(1)+"%"));break;case "installed":a=d("downloaded");break;case "failed":a=this.I3==g.m_?f.Wa()?d("storage-not-provided-launch-from-homescreen"):d("storage-not-provided-launch-from-desktop"):this.I3==g.k_?d("storage-not-provided-bookmark"):d("download-failed")}this.qa&&this.qa.set("text",a);this.ft&&this.ft.set("visible",this.Y=="ready"&&!this.ae.az()&&this.ae.Kaa());this.et&& this.et.set("visible",this.Y=="ready"&&this.ae.az()&&this.ae.Jaa());this.ht&&this.ht.set("visible",this.Y=="ready"&&this.ae.Maa());this.Zf&&this.Zf.set("visible",this.Y=="installing");this.ao&&this.ao.set("visible",this.Y!="installing");this.set("visible",this.Y!="hidden")};a.prototype.wha=function(){this.ae.pca()};a.prototype.Cha=function(){this.ae.pca()};a.prototype.vha=function(){this.ae.kn();this.Y="hidden";this.ge()};a.prototype.vG=function(){this.ae.cancel();this.Y="hidden";this.ge()};a.prototype.uha= function(){this.Y=="installing"&&this.ae.cancel();this.Y="hidden";this.ge()};return a}); define("dI","require,fd,dm,lc,lb,r,jP,c,kJ,kj,kw,ew,gM,gG".split(","),function(a){function b(a,b){this.text=a;this.mp=b}var c=a("fd"),e=a("dm"),d=a("lc"),f=a("lb"),g=a("r"),k=a("jP"),i=a("c"),n=a("kJ"),j=a("kj"),l=a("kw"),q=a("ew"),o=a("gM"),t=a("gG"),a=c.extend(n,function(){n.call(this);this.ll=[];this.Zf=this.gt=this.qa=this.Mt=this.dy=this.Ul=r;var a=new j;a.set("duration",500);a.set("easing","cubic_in");var b=new l;b.set("duration",500);b.set("easing","cubic_out");this.N({backgroundColor:"#000000", backgroundOpacity:0.6,horizontalAlign:k.Kc,gap:5,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:z})});a.prototype.Ia=function(){n.prototype.Ia.call(this);if(this.Ul==r){this.Ul=new n;this.Ul.N({centerX:0,centerY:0,backgroundColor:"#ffffff",horizontalAlign:k.Kc,verticalAlign:k.rc,layout:i.ef,shadow:p,shadowColor:"#000000",shadowHorizontalLength:0,shadowVerticalLength:0,shadowOpacity:0.2});this.ma(this.Ul)}if(this.qa==r){this.qa=new o;this.qa.N({fontColor:"#808080",fontWeight:"300", fontFamily:"Tahoma, Geneva, sans-serif"});this.Ul.ma(this.qa)}if(this.Mt==r){this.Mt=new t;this.Mt.N({width:"80%"});this.Ul.ma(this.Mt)}if(this.dy==r){this.dy=new n;this.dy.N({backgroundColor:"#b3b3b3"});this.Ul.ma(this.dy)}if(this.$f==r){this.$f=new n;this.$f.N({horizontalAlign:k.Kc,verticalAlign:k.rc,layout:i.we});this.Ul.ma(this.$f)}if(this.gt==r){this.gt=new q;this.gt.N({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:k.Kc,verticalAlign:k.rc, label:f("yes").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.gt.bind(d.T,this.d2,this,p);this.$f.ma(this.gt)}if(this.Zf==r){this.Zf=new q;this.Zf.N({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:k.Kc,verticalAlign:k.rc,label:f("no").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.Zf.bind(d.T,this.vG,this,p);this.$f.ma(this.Zf)}};a.prototype.Vk=function(){n.prototype.Vk.call(this); this.getParent().bind(d.yb,this.Wm,this,p)};a.prototype.gj=function(){this.getParent().unbind(d.yb,this.Wm,this,p);n.prototype.gj.call(this)};a.prototype.Wm=function(){var a=this.getParent();if(a){var b=a.Ba(),a=a.hb();if(g.Wa())var c=Math.min(b,a),b=function(a){return Math.round(a*c/100)};else b=function(a){return Math.round(a*4)};this.Ul&&this.Ul.N({borderRadius:b(1),width:b(80),height:b(40),gap:b(4),shadowBlurRadius:b(1),shadowSpread:b(1)});this.dy&&this.dy.N({width:b(60),minHeight:2,height:b(0.25)}); this.$f&&this.$f.N({gap:b(5)});this.Zf&&this.Zf.N({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.25)});this.gt&&this.gt.N({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.5)});this.qa&&this.qa.N({fontSize:b(5)});this.XK()}};a.prototype.show=function(a,c){this.Wm();var d=this.A4(c);d>=0&&this.A8(d);this.Aoa(new b(a,c));this.zw()};a.prototype.hide=function(a){a=this.A4(a);a>=0&&this.A8(a)};a.prototype.zw=function(){var a=this.getParent();a&&a.wj(this,a.Oa().length-1)};a.prototype.d2= function(){this.mG(p)};a.prototype.vG=function(){this.mG(z)};a.prototype.A4=function(a){for(var b=0;b'+a+"
"};a.prototype.mG=function(a){var b=this.M4();if(b){b=this.Tka(b.text);this.Xoa(b);e(b).each(function(b){b.mp&&b.mp.call(this,a)},this)}};a.prototype.Aoa=function(a){this.ll.push(a);this.XK()};a.prototype.Tka=function(a){return e(this.ll).filter(function(b){return b.text==a})};a.prototype.Xoa=function(a){this.ll=e(this.ll).filter(function(b){return!e(a).contains(b)}); this.XK()};a.prototype.A8=function(a){this.ll.splice(a,1);a==this.ll.length&&this.XK()};a.prototype.M4=function(){return this.ll.length>0?this.ll[this.ll.length-1]:r};return a}); define("iQ","require,fd,lc,bY,eL,r,jV".split(","),function(a){function b(a){for(;a&&a!=document;){if(a.getAttribute("tdvclass")=="Button")return p;a=a.parentNode}return z}var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("r"),k=a("jV"),i=[],a=[99,111,110,116,101,120,116,109,101,110,117].map(function(a){return String.fromCharCode(a)}).join("");document.addEventListener(a,function(a){(!g.Wa()||!b(a.target))&&i.forEach(function(b){b(a)});a.preventDefault();a.stopImmediatePropagation()},p);var n=1,c=c.extend(f, function(a,b){f.call(this);this.pa=a;this.Nka=b;this.xT=this.xT.bind(this);this.lc=this.lc.bind(this);this.PS=z;this.MS=this.MS.bind(this);this.NS=this.NS.bind(this);this.LS=this.LS.bind(this);this.OS=this.OS.bind(this);this.I=document.createElement("div");this.I.style.setProperty("border","1px solid #bbb","important");this.I.style.setProperty("border-radius","3px","important");this.I.style.setProperty("position","absolute","important");this.I.style.setProperty("z-index",n,"important");this.I.style.setProperty("display", "none","important");this.I.style.setProperty("background-color","#e5e5e5","important");this.I.style.setProperty("display","none","important");this.I.style.setProperty("opacity",1,"important");this.I.style.setProperty("padding",0,"important");this.I.style.setProperty("margin",0,"important");this.I.style.setProperty("pointer-events","all","important");this.I.style.setProperty("text-align","left","important");this.I.style.setProperty("box-shadow","1px 1px 3px rgba(0, 0, 0, 0.2)","important");i.push(this.xT)}); c.prototype.xT=function(a){var b=this.Nka();if(b.length!=0){this.I.innerHTML="";this.PS=z;var c=0;b.forEach(function(a){var b=document.createElement("div");if(a){b.textContent=a;b.style.setProperty("cursor","pointer","important");b.style.setProperty("border-radius","3px","important");b.style.setProperty("padding","7px 20px","important");b.style.setProperty("white-space","nowrap","important");var d=c;c++;b.addEventListener("mouseenter",function(a){this.MS(a,d)}.bind(this));b.addEventListener("mouseleave", function(a){this.NS(a,d)}.bind(this));b.addEventListener("mousedown",function(a){this.LS(a,d)}.bind(this));b.addEventListener("mouseup",function(a){this.OS(a,d)}.bind(this))}else{b.style.setProperty("margin","7px 5px","important");b.style.setProperty("border-top","1px solid #aaa","important");b.style.setProperty("border-bottom","1px solid #fff","important")}b.style.setProperty("font-family","Arial","important");b.style.setProperty("font-size","13px","important");b.style.setProperty("color","#000000", "important");b.style.setProperty("opacity",1,"important");b.style.setProperty("display","block","important");b.style.setProperty("pointer-events","all","important");this.I.appendChild(b)}.bind(this));(k.Wl()||document.body).appendChild(this.I);this.I.style.setProperty("display","block","important");b=a.pageX;a=a.pageY;b+this.I.clientWidth>document.body.clientWidth-5&&(b=document.body.clientWidth-this.I.clientWidth-5);a+this.I.clientHeight>document.body.clientHeight-5&&(a=document.body.clientHeight- this.I.clientHeight-5);this.I.style.setProperty("left",b+"px","important");this.I.style.setProperty("top",a+"px","important");this.pa.bind(e.xb,this.lc,this);document.addEventListener("mousedown",this.lc);this.$sa=setInterval(this.Zsa.bind(this),200)}};c.prototype.T4=function(){clearInterval(this.$sa);this.I.parentNode.removeChild(this.I);document.removeEventListener("mousedown",this.lc);this.pa.unbind(e.xb,this.lc,this);this.I.style.setProperty("display","none","important")};c.prototype.Zsa=function(){this.I.contains(document.elementFromPoint(this.I.offsetLeft+ this.I.clientWidth*0.5,this.I.offsetTop+this.I.clientHeight*0.5))||this.I.style.setProperty("z-index",n=n*10,"important")};c.prototype.lc=function(){this.T4()};c.prototype.LS=function(a){this.PS=p;a.preventDefault();a.stopImmediatePropagation()};c.prototype.OS=function(a,b){if(this.PS){this.T4();a.preventDefault();a.stopImmediatePropagation();this.trigger(new d(e.Ci,{index:b}))}};c.prototype.MS=function(a){a.currentTarget.style.setProperty("color","#ffffff","important");a.currentTarget.style.setProperty("background-color", "rgba(0, 0, 0, 0.7)","important")};c.prototype.NS=function(a){a.currentTarget.style.setProperty("color","#000000","important");a.currentTarget.style.setProperty("background-color","","important")};return c}); define("jo",["require","jk","R"],function(a){function b(a){this.pa=a;this.Tm={};this.Tm[e.lfa]="move";this.Tm[e.mfa]="ew-resize";this.Tm[e.ofa]="ns-resize";this.Tm[e.nfa]="nesw-resize";this.Tm[e.pfa]="nwse-resize";this.Tm[e.he]="pointer";this.Tm[e.$v]="inherit";this.Tm[e.cd]="default";this.Oe={};this.Oe[e.NF]="grab.cur";this.Oe[e.OF]="grabbing.cur";this.Oe[e.V_]="N.cur";this.Oe[e.W_]="NE.cur";this.Oe[e.M_]="E.cur";this.Oe[e.Z_]="SE.cur";this.Oe[e.Y_]="S.cur";this.Oe[e.$_]="SW.cur";this.Oe[e.a0]="W.cur"; this.Oe[e.X_]="NW.cur";this.Oe[e.O_]="FN.cur";this.Oe[e.P_]="FNE.cur";this.Oe[e.N_]="FE.cur";this.Oe[e.S_]="FSE.cur";this.Oe[e.R_]="FS.cur";this.Oe[e.T_]="FSW.cur";this.Oe[e.U_]="FW.cur";this.Oe[e.Q_]="FNW.cur";this.l2={}}var c=a("jk"),e=a("R");b.prototype.jba=function(a){return this.pma(a)?this.J4(a):this.jma(a)?this.wka(a):this.J4(e.cd)};b.prototype.Iha=function(a){if(!(a in this.l2)){var b=new Image;b.src=this.l4(a);this.l2[a]=b}};b.prototype.pma=function(a){return a in this.Tm};b.prototype.J4= function(a){return this.Tm[a]};b.prototype.jma=function(a){return this.Oe[a]};b.prototype.wka=function(a){this.Iha(a);return"url("+this.l4(a)+"), default"};b.prototype.l4=function(a){return c.ts(this.pa.get("settings").get(TDV.PlayerSettings.CURSORS_DIR_URL))+"/"+this.Oe[a]};return b}); define("bS",["dm"],function(a){function b(){this.Uo={};this.Bl=[];this.AA=0}b.prototype.push=function(b,e){if(this.Uo[e]==m)this.Uo[e]=[b],this.Bl.push(e),this.Bl.sort(function(a,b){return a-b}),this.AA++;else{var d=this.Uo[e];a(d).contains(b)||(d.push(b),this.AA++)}};b.prototype.lba=R("AA");b.prototype.isEmpty=function(){return 0==this.Bl.length};b.prototype.bda=function(){if(!this.isEmpty()){var a=this.Bl[0],b=this.Uo[a].pop();0==this.Uo[a].length&&(delete this.Uo[a],this.Bl=this.Bl.slice(1));this.AA--; return b}};b.prototype.RY=function(){if(!this.isEmpty()){var a=this.Bl[this.Bl.length-1],b=this.Uo[a].pop();0==this.Uo[a].length&&(delete this.Uo[a],this.Bl=this.Bl.slice(0,this.Bl.length-1));this.AA--;return b}};return b}); define("gF","require,dm,fd,fb,bS,V,iE".split(","),function(a){function b(){this.sr=z;this.S7=m;this.V=p;this.cJ=this.cJ.bind(this);this.KG=new e;this.IJ=new e;this.tK=new e;this.oI=new e;this.RQ=new e;d.Ma(this.Dg,this)}a("dm");a("fd");var c=a("fb"),e=a("bS"),d=a("V"),f=a("iE");b.prototype.clear=function(){this.V=z};b.prototype.CE=function(a){this.KG.push(a,this.ex(a));this.PC()};b.prototype.Bc=function(a){this.IJ.push(a,this.ex(a));this.PC()};b.prototype.Va=function(a){this.tK.push(a,this.ex(a)); this.PC()};b.prototype.Jc=function(a){this.oI.push(a,this.ex(a));this.PC()};b.prototype.xh=function(a){this.RQ.push(a,this.ex(a));this.PC()};b.prototype.J=function(){this.dsa();this.Gsa();this.fsa()};b.prototype.dsa=function(){do{for(;!this.KG.isEmpty();)this.KG.RY().Ia();this.IJ.isEmpty()||this.IJ.RY().ga()}while(!this.IJ.isEmpty()||!this.KG.isEmpty())};b.prototype.Gsa=function(){for(;!this.tK.isEmpty()||!this.oI.isEmpty();){this.aL();this.wW()}};b.prototype.aL=function(){for(;!this.tK.isEmpty();){var a= this.tK.RY();if(a.Xya()){var b=a.getParent();if(b){b.Va();b.Jc()}else a.Hda(0,0,a.wn(),a.vn())}}};b.prototype.wW=function(){for(;!this.oI.isEmpty();)this.oI.bda().ui()};b.prototype.fsa=function(){for(;!this.RQ.isEmpty();)this.RQ.bda().Le();c.Dwa()};b.prototype.PC=function(){if(!this.sr){this.sr=p;this.S7=(new Date).getTime()+500;f.Ev(this.cJ)}};b.prototype.cJ=function(){this.sr=z;this.V&&this.J()};b.prototype.ex=function(a){return(a=a.getParent())?this.ex(a)+1:0};b.prototype.Dg=function(){this.sr&& (new Date).getTime()>=this.S7&&this.cJ();d.Ma(this.Dg,this)};return b}); define("fe","jquery.mod,dm,fd,lc,kJ,iQ,jo,Y,gF,jV,r".split(","),function(a,b,c,e,d,f,g,k,i,n,j){c=c.extend(d,function(b){this.rw=new i;d.call(this);this.Rm(this);this.Xc("Application");this.Ad=a(b);this.Ad.css({overflow:"hidden","user-select":"none","-ms-user-select":"none","-moz-user-select":"none","-webkit-user-select":"none","-ms-touch-action":"none","touch-action":"none",visibility:"visible","-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)"});this.bp=a(document.createElement("div"));this.bp.css({position:"absolute", left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",margin:0});this.Ad.append(this.bp);this.bp.append(this.Cb());this.e$=this.bp.get(0);this.dc=this.Xb=m;this.cma=10;this.Uha=500;this.MC=r;this.FQ=new g(this);this.xa=new k(this);this.I.append(this.xa.Cb());this.zia=new f(this,this.i4.bind(this));this.zia.bind(e.Ci,this.Xe(this.q6),this,p);this.Q5=p;this.set("contentOpaque",p);this.qt=r;this.vA=[];this.Uw(["globalmousemove"]);this.gha();this.kL=this.lL=0;this.Ix=1;try{this.lL=window.top.innerWidth; this.kL=window.top.innerHeight;this.aS=p}catch(c){this.aS=z}this.haa();this.dg=new n(b);this.dg.bind(e.aa,function(){this.sR(this.dg.enabled())},this)});c.prototype.start=function(){if(!this.Q9){this.Q9=p;this.trigger(e.Di)}};c.prototype.haa=function(){if(this.aS&&!n.enabled()){this.lL=window.top.innerWidth;this.kL=window.top.innerHeight}};c.prototype.clear=function(){this.Hv(r);this.b$();this.Ija();this.rw.clear();if(this.Ad){this.Cb().remove();this.bp.remove();this.Ad=r}this.FQ=r;this.dg.qea(); this.dg=r};c.prototype.Uxa=P("Q5");c.prototype.sR=function(a){a?this.g9():this.eia()};c.prototype.Ho=function(){this.HB=this.Sh=this.bp.width();this.GB=this.Rh=this.bp.height()};c.prototype.Hv=function(a){if(this.qt!=a){this.qt!=r&&this.qt.Jra();this.qt=a;for(var c=[];a!=r;){c=[a].concat(c);a=a.getParent()}for(var a=this.vA.length-1,d=p;a>=0&&d;a--)b(c).contains(this.vA[a])?d=z:this.vA.pop().Lra();for(a=0;a=0&&c>=0&&bb?a:b)/(this.lL> this.kL?this.lL:this.kL),d=Math.round(a/c),e=Math.round(b/c);this.Ix=c;a={left:Math.round((a-d)*0.5)+"px",top:Math.round((b-e)*0.5)+"px",right:"auto",bottom:"auto",width:d+"px",height:e+"px",transform:"scale("+[c,c].join(", ")+")",position:"absolute"}}else{a={position:"absolute",left:0,top:0,right:"auto",bottom:"auto",width:document.body.clientWidth+"px",height:document.body.clientHeight+"px"};this.Ix=1}this.bp.css(a)};c.prototype.eia=function(){this.bp.css({position:"abolute",left:0,top:0,right:0, bottom:0,width:"auto",height:"auto",transform:""});this.Ix=1};c.prototype.Uqa=function(){this.b$();var a=this;this.MC=setTimeout(function(){a.MC=r;a.Va()},this.cma)};c.prototype.b$=function(){if(this.MC){this.MC=r;clearTimeout(this.MC)}};c.prototype.vla=function(){this.v2()};c.prototype.BR=function(){return b(d.prototype.BR.call(this)).defaults({globaltouchmove:[{target:a(document),name:"touchmove",handler:this.Xe(this.wla)}],globalmousemove:[{target:a(document),name:"mousemove",handler:this.Xe(this.P4)}, {target:a(window),name:"mouseout",handler:this.Xe(this.P4)}],globalresize:[{target:a(window),name:"resize",handler:this.Xe(this.vla)}]})};return c}); define("eZ","require,jquery.mod,ls,bI,jV,lc,eL,lb,r".split(","),function(a){function b(){o=TDV.Aa.un();var a=q||o;if(l!=a){l=a;j.trigger(g.aa)}a=!!q&&o!=q&&n.Wa();if(t!=a){if(!s){s=c("
");s.css({position:"fixed","z-index":e.Sea,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});s.html(['
\n
','','
'+i("rotate-device")+"
","
\n
"].join("\n"));u=s.find("img")}t&&s.detach();(t=a)&&(f.enabled()?c(f.Wl()):c("body")).append(s)}t&&u.css("transform",l==j.yfa?"translate(-11%, 0) rotate(-90deg)":"none")}var c=a("jquery.mod"),e=a("ls"),d=a("bI"),f=a("jV"),g=a("lc"),k=a("eL"),i=a("lb"),n=a("r"),j=new k;j.oza=TDV.Aa.lO;j.yfa=TDV.Aa.mO;j.hF= function(a){if(q!=a){q=a;b()}};j.vba=function(){return q};j.get=function(){return l};var l=m,q=m,o=m,t=z,s=r,u=r;window.addEventListener("resize",function(){b();setTimeout(b,500)},p);try{window.screen.orientation.addEventListener("change",b)}catch(v){window.addEventListener("orientationchange",b,z)}b();return j}); define("gB","require,fd,dm,lc,bY,cd,dT,jU,lb,jK,A,ic,dI,db,dN,kq,iO,r,fQ,dL,bV,hd,jk,bi,dk,fe,kJ,cu,jV,bp,eZ,iX,cI".split(","),function(a){var b=a("fd"),c=a("dm"),e=a("lc"),d=a("bY"),f=a("cd"),g=a("dT"),k=a("jU"),i=a("lb"),n=a("jK"),j=a("A"),l=a("ic"),q=a("dI");UserInteractionWindow=a("db");Renderer=a("dN");TextureUtil=a("kq");Capabilities=a("iO");Device=a("r");Gyroscope=a("fQ");Installer=a("dL");LibsLoader=a("bV");Preloader=a("hd");URL=a("jk");VR=a("bi");ButtonMode=a("dk");Application=a("fe");Container= a("kJ");VerticalLayout=a("cu");Fullscreen=a("jV");AudioActivation=a("bp");Orientation=a("eZ");UserInitiatedAction=a("iX");Storage=a("cI");var o=b.extend(Application,function(a){Application.call(this,a);this.ae=new Installer(this);this.x3=new l(this,this.ae);this.tm=new Container;this.tm.N({visible:p,width:"100%",height:"100%"});this.xx=new q;this.xy=new UserInteractionWindow;this.WG=new j(this);a=new VerticalLayout;a.TM(0);this.fF(a);this.$e(p);this.bind(e.D("settings"),this.Ina,this,p);this.fL=TDV.Aa.YL(); Orientation.bind(e.aa,this.tna,this,p);AudioActivation.Pya();this.zha=new n(this,"buttonMute",ButtonMode.Tc);this.zha.bind(e.T,this.W6,this,p);this.Gha=new n(this,"buttonUnmute",ButtonMode.Tc);this.Gha.bind(e.T,this.u7,this,p);this.AG=new n(this,"buttonToggleMute",ButtonMode.Eh);this.AG.bind(e.rg,this.W6,this,p);this.AG.bind(e.Dh,this.u7,this,p);this.bind(e.D("mute"),this.qna,this);this.AG.set("pressed",this.get("mute"));this.xha=new n(this,"buttonEnterFullscreen",ButtonMode.Tc);this.xha.bind(e.T, this.v6,this,p);this.yha=new n(this,"buttonExitFullscreen",ButtonMode.Tc);this.yha.bind(e.T,this.w6,this,p);this.xG=new n(this,"buttonToggleFullscreen",ButtonMode.Eh);this.xG.bind(e.rg,this.v6,this,p);this.xG.bind(e.Dh,this.w6,this,p);this.xG.set("pressed",this.get("fullscreenEnabled"));this.bind(e.D("fullscreenEnabled"),this.ena,this,p);this.set("fullscreenEnabled",this.dg.enabled());this.set("mouseWheelEnabled",p);this.set("backgroundPreloadEnabled",p);this.set("defaultVRPointer","laser");this.set("downloadEnabled", z);this.set("mediaActivationMode","window");this.set("fullscreenFallback","out_of_frame");this.set("defaultMenu",["fullscreen","mute","rotation"]);this.bind(e.Di,this.Lna,this,p);[e.xb,e.cc,e.Yp,e.MF,e.LF].forEach(function(a){this.bind(a,function(a){this.trigger(new d(e.HF,{cea:a}))},this,p)}.bind(this));VR.bind(e.aa,function(){VR.isPresenting()?Orientation.hF(m):Orientation.hF(Application.prototype.get.call(this,"lockedOrientation"))},this);this.dg.bind(e.aa,function(){var a=Orientation.vba();Orientation.hF(m); Orientation.hF(a)},this)});o.t_="orientationChange";g.A("Player",o).Dxa().B("Container").L({backgroundPreloadEnabled:"bool",buttonEnterFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonExitFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleMute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonUnmute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",cardboardAvailable:"bool",cookiesPolicy:"or[array[CookiesPolicy], CookiesPolicy]",defaultVRPointer:"enum[gaze, laser]",definitions:"array[Object]",desktopMipmappingEnabled:"bool",downloadEnabled:"bool",fullscreenAvailable:"bool",fullscreenEnabled:"bool",fullscreenFallback:"enum[out_of_frame, none]",gyroscopeAvailable:"bool",hash:"string",isMobile:"bool",mediaActivationMode:"enum[window, button]",menu:"array[PlayerMenuItem]", defaultMenu:"array[enum[fullscreen, mute, rotation]]",mobileMipmappingEnabled:"bool",mouseWheelEnabled:"bool",mute:"bool",lockedOrientation:"enum[portrait, landscape]",orientation:"enum[portrait, landscape]",surfaceSelectionAvailable:"bool",touchDevice:"bool",touchEnabled:"bool",vrAvailable:"bool",vrPolyfillScale:"number"}).Vxa().Rg({logCapabilities:function(){this.Ema()},activateAudio:function(a){this.iga(a)}}).Wf([e.Di,o.t_,e.HF]);o.prototype.sR=function(a){Application.prototype.sR.apply(this,arguments); this.set("fullscreenEnabled",a)};o.prototype.ya=function(){Application.prototype.ya.call(this);this.f("mute",z);this.f("fullscreenEnabled",z)};o.prototype.Ia=function(){Application.prototype.Ia.call(this);this.x3.getParent()!=this&&this.ma(this.x3);if(this.tm.getParent()!=this){this.ma(this.tm);this.tm.ma(this.WG);this.tm.ma(this.xx);this.tm.ma(this.xy)}};o.prototype.kpa=function(a){var b=[];this.xx&&b.push(this.xx);this.xy&&b.push(this.xy);this.WG&&b.push(this.WG);for(var c=p,d=0;d<=b.length&&c;d++){c= a.indexOf(b[d]);c=a.length-(b.length-d)==c}return c?a:a.filter(function(a){return b.indexOf(a)<0}).concat(b)};o.prototype.ga=function(){this.r8||(this.r8=c.difference(this.gla(),["visible","includeInLayout","state","left","right","top","bottom","centerX","centerY","width","height","minWidth","minHeight","maxWidth","maxHeight","actualWidth","actualHeight","paddingLeft","paddingTop","paddingRight","paddingBottom"]));this.gb(this.r8,{},[this.tm],p,p);Application.prototype.ga.call(this);this.Rza===p&& this.Qza()};o.prototype.set=function(a,b){switch(a){case "children":this.tm.set(a,this.kpa(b));return;case "creationPolicy":this.tm.set(a,b);return;case "fullscreenAvailable":case "gyroscopeAvailable":case "cardboardAvailable":case "isMobile":case "orientation":case "surfaceSelectionAvailable":case "touchEnabled":case "touchDevice":case "vrAvailable":b=this.get(a);break;case "fullscreenEnabled":b=this.dg.available()&&b;break;case "fullscreenFallback":Fullscreen.pZ(b);break;case "lockedOrientation":Device.Hc()== Device.xs&&(b=m);Orientation.hF(b);break;case "installAvailable":b=this.ae.ready();break;case "mouseWheelEnabled":this.Uxa(URL.Lg("mousewheelenabled",b));break;case "backgroundPreloadEnabled":this.wpa(b);break;case "vrPolyfillScale":VR.fya(b);break;case "desktopMipmappingEnabled":TextureUtil.oxa(b);break;case "mobileMipmappingEnabled":TextureUtil.Txa(b)}Application.prototype.set.call(this,a,b)};o.prototype.get=function(a,b){switch(a){case "children":case "creationPolicy":return this.tm.get(a,b);case "touchEnabled":return this.Yj; case "touchDevice":return Device.PZ();case "isMobile":return Device.Wa();case "orientation":return Orientation.get();case "lockedOrientation":return Orientation.vba();case "gyroscopeAvailable":return Gyroscope.available;case "cardboardAvailable":case "vrAvailable":return VR.available();case "fullscreenAvailable":return this.dg.available();case "vrPolyfillScale":return VR.Sua();case "installAvailable":return this.ae.ready();case "surfaceSelectionAvailable":return Renderer.gea();default:return Application.prototype.get.apply(this, arguments)}};o.prototype.W6=function(){this.set("mute",p)};o.prototype.u7=function(){this.set("mute",z)};o.prototype.qna=function(){this.AG.set("pressed",this.get("mute"))};o.prototype.v6=function(){this.set("fullscreenEnabled",p)};o.prototype.w6=function(){this.set("fullscreenEnabled",z)};o.prototype.ena=function(){this.get("fullscreenEnabled")?this.dg.uh():this.dg.Wd();this.xG.set("pressed",this.get("fullscreenEnabled"));this.set("fullscreenEnabled",this.dg.enabled())};o.prototype.Ina=function(){var a= this.get("settings");if(a){LibsLoader.bm(a);Preloader.BZ(a);this.ae.BZ(a)}};o.prototype.wpa=function(a){Preloader.enabled(a)};o.prototype.i4=function(){if(URL.Vf("debug"))return[];var a=[];this.Iw=[];(this.get("menu")||[]).forEach(function(b){var c=b.get("label");a.push(b.get("label"));c&&this.Iw.push(function(){b.trigger("click")})}.bind(this));var b=this.get("defaultMenu",[]);if(b.indexOf("rotation")>=0){var c=this.pn("PanoramaPlayer");if(c.length){a.push(c[0].get("mouseControlMode")==f.Bs?i("change-to-drag-and-release"): i("change-to-click-and-move"));this.Iw.push(this.yra.bind(this))}}if(b.indexOf("fullscreen")>=0&&this.dg.available()){a.push(this.dg.enabled()?i("exit-fullscreen"):i("enter-fullscreen"));this.Iw.push(this.wra.bind(this))}if(b.indexOf("mute")>=0){a.push(this.get("mute")?i("unmute"):i("mute"));this.Iw.push(this.xra.bind(this))}b=[].concat(k.name?[k.name]:[],k.Vta!="false"?k.JE?["v:"+k.JE+"."+k.NE]:["v:"+k.NE]:[]).join(" ");if(b!=""){a.length>0&&a.push("");a.push(b);this.Iw.push(this.Wna.bind(this))}return a}; o.prototype.q6=function(a){this.Iw[a.data.index]()};o.prototype.yra=function(){var a=this.pn("PanoramaPlayer"),b=a[0].get("mouseControlMode")==f.Bs?f.Kn:f.Bs;a.forEach(function(a){Storage.setItem(t,b);a.set("mouseControlMode",b)})};o.prototype.Lna=function(){Storage.getItem(t)==f.Kn&&this.pn("PanoramaPlayer").forEach(function(a){a.set("mouseControlMode",f.Kn)});URL.Vf("mute")&&this.set("mute",URL.Lg("mute",this.get("mute")));URL.Vf("vr")&&VR.uh()};o.prototype.wra=function(){this.dg.toggle()};o.prototype.xra= function(){this.set("mute",!this.get("mute"))};o.prototype.Wna=function(){k.zea&&window.open(k.zea,"_blank")};o.prototype.tna=function(){this.trigger(o.t_)};o.prototype.Ema=function(){b.$ta(p);b.log("UA: "+navigator.userAgent);b.log("screen: ("+Math.max(window.screen.width,window.screen.height)+", "+Math.min(window.screen.width,window.screen.height)+") dpr: "+window.devicePixelRatio+" ("+Math.max(window.screen.width,window.screen.height)*window.devicePixelRatio+", "+Math.min(window.screen.width,window.screen.height)* window.devicePixelRatio+")");Device.log();Capabilities.log();i.log();VR.log()};o.prototype.iga=function(a){if(AudioActivation.mX())UserInitiatedAction.Az(a);else{AudioActivation.UZ(a);AudioActivation.qg(this)}};var t="tdvp_"+window.location.pathname+"_rotation_mode";return o});define("bP",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PlayerMenuItem",b).B("Object").L({label:"string"}).Wf([e.T]);return b}); define("K","require,fd,iU,lc,fr,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("fr"),f=a("dT"),g=a("hP"),a=b.extend(c,function(){c.call(this);this.set("visible",z);this.set("state",d.K);this.set("showDuration",1E3);this.set("hideDuration",1E3);this.set("darkenBackground",p);this.set("lookAwayToHide",p);this.set("lookAwayToHideTime",2E3);this.set("showEasing","linear");this.set("hideEasing","linear");this.bind(e.D("state"),function(){this.trigger(e.zc)},this,p);this.Lb=m});a.prototype.show= function(){this.set("visible",p)};a.prototype.hide=function(){this.set("visible",z)};a.prototype.play=function(){this.set("state",d.R)};a.prototype.pause=function(){this.set("state",d.VF)};a.prototype.stop=function(){this.set("state",d.K)};f.A("PopupPanoramaOverlay",a).B("PanoramaOverlay").L({autoplay:"bool",darkenBackground:"bool",loop:"bool",yaw:"number",pitch:"number",hfov:"number",image:"ImageResource",video:"VideoResource",lookAwayToHide:"bool",lookAwayToHideTime:"number",popupDistance:"number", popupMaxHeight:"or[number,percent]",popupMaxWidth:"or[number,percent]",rotationX:"number",rotationY:"number",rotationZ:"number",hideEasing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",hideDuration:"number",state:"enum[stopped, playing, paused]",showEasing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]", showDuration:"number",visible:"bool",playbackPositions:"array[PopupPanoramaOverlayPlaybackPosition]"}).Rg({hide:a.prototype.hide,pause:a.prototype.pause,play:a.prototype.play,show:a.prototype.show,stop:a.prototype.stop}).Vb([e.Da,e.hw,e.Os,e.zc]).Wf([e.T]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=g.Uua(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "rotationZ":case "yaw":case "playbackPositions":this.Lb= m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("ld",["dm","fd","cq","dT"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("ProgressBar",a).B("UIComponent").L({barBackgroundColor:"or[array[color], color]",barBackgroundColorDirection:"enum[horizontal, vertical]",barBackgroundColorRatios:"array[number]",barBorderColor:"color",barBorderRadius:"number",barBorderSize:"number",barOpacity:"number",percent:"number"});return a}); define("cX","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("contentInteractive",z);this.set("transparent",z)});d.A("QuadFramePanoramaOverlay",a).B("PanoramaOverlay").L({displayTooltipInTouchScreens:"bool",contentInteractive:"bool",enabled:"bool",image:"ImageResource",interactionEnabled:"bool",height:"number",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]", transparent:"bool",toolTip:"string",url:"string",useHandCursor:"bool",vertices:"array[PanoramaPoint]",width:"number"}).Vb([e.yd,e.Ch,e.zf,e.tc,e.Ib,e.md]).Wf([e.T]).Ah(["url"]);a.prototype.set=function(a,b){var d=z;switch(a){case "vertices":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.gY(this);return this.Lb}return c.prototype.get.call(this, a,b)};return a});define("br",["require","fd","dT","ci"],function(a){var b=a("fd"),c=a("dT"),e=a("ci"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlay",a).B("HotspotPanoramaOverlay");return a});define("gH",["dT","q"],function(a,b){a.A("QuadHotspotPanoramaOverlayArea",b).B("HotspotPanoramaOverlayArea");return b}); define("cW","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.Lb=m});d.A("QuadHotspotPanoramaOverlayImageBase",a).B("Object").L({distance:"number",image:"ImageResource",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",opacity:"number",vertices:"array[PanoramaPoint]"}).Vb([e.md,e.yd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb= f.gY(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "opacity":case "distance":case "vertices":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a}); define("ei",["require","fd","dT","cW"],function(a){var b=a("fd"),c=a("dT"),e=a("cW"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlayImage",a).B("QuadHotspotPanoramaOverlayImageBase");return a});define("hQ",["require","fd","dT","cW"],function(a){var b=a("fd"),c=a("dT"),e=a("cW"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlayMap",a).B("QuadHotspotPanoramaOverlayImageBase");return a}); define("dM","require,fd,iU,lc,fr,bY,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("fr"),f=a("bY"),g=a("dT"),k=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("state",d.K);this.set("enabledInCardboard",p);this.set("enabledInStandard",p);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});a.prototype.play=function(){this.set("state",d.R)};a.prototype.pause= function(){this.set("state",d.yc)};a.prototype.stop=function(){this.set("state",d.K)};g.A("QuadVideoPanoramaOverlay",a).B("PanoramaOverlay").L({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",distance:"number",displayTooltipInTouchScreens:"bool",enabled:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",videoVisibleOnStop:"bool", vertices:"array[PanoramaPoint]",image:"ImageResource",loop:"bool",opacity:"number",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",state:"enum[stopped, playing, paused]",toolTip:"string",useHandCursor:"bool",video:"VideoResource"}).Vb([e.Da,e.yd,e.Ch,e.zf,e.tc,e.Ib,e.md,e.Di,e.xf,e.zc]).Wf([e.T]).Rg({pause:a.prototype.pause,play:a.prototype.play,stop:a.prototype.stop});a.prototype.set=function(a,b){var g=z;switch(a){case "state":var k=this.get("state")||d.K;k==d.K&&b==d.R&&this.trigger(e.Di); k!=b&&this.trigger(new f(e.zc,{oldState:k,state:b}));break;case "enabledInCardboard":this.set("enabledInVR",b);break;case "distance":case "opacity":case "playbackPositions":case "vertices":this.Lb=m;g=p}c.prototype.set.call(this,a,b);g&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=k.gY(this);return this.Lb}return c.prototype.get.call(this,a,b)};return a}); define("jz",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("opacity",0.25);this.set("speed",0.5);this.set("intensity",0.5);this.set("color","#ffffff");this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("RainPanoramaOverlay",b).B("PanoramaOverlay").L({initialState:"enum[playing, stopped]",intensity:"number",speed:"number",opacity:"number",color:"color", startDuration:"number",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"});b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b}); define("dZ",["require","fd","iU","dT","lc"],function(a){var b=a("fd"),c=a("iU"),e=a("dT"),a=a("lc"),b=b.extend(c,function(){c.call(this)});e.A("RotationalCameraMovement",b).B("Object").L({easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",duration:"number",hfovSpeed:"number",pitchSpeed:"number",yawSpeed:"number"}).Vb([a.Da]);return b}); define("bN",["fd","dC","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideInEffect",a).B("Effect").L({from:"enum[left, top, right, bottom]"});return a});define("gr",["fd","fM","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideOutEffect",a).B("Effect").L({to:"enum[left, top, right, bottom]"});return a}); define("kz",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("intensity",0.5);this.set("speed",0.25);this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("SnowPanoramaOverlay",b).B("PanoramaOverlay").L({initialState:"enum[playing, stopped]",intensity:"number",speed:"number",startDuration:"number",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"}); b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b}); define("jq",["require","fd","dT","iI"],function(a){var b=a("fd"),c=a("dT"),e=a("iI"),a=b.extend(e,function(){e.call(this)});c.A("SphericPanoramaFrame",a).B("PanoramaFrame").L({sphere:"or[ImageResource, Video360Resource]",stereoSphere:"or[ImageResource, Video360Resource]"});a.prototype.yh=function(){var a=this.get("sphere");return a&&c.ob("Video360Resource",a)?p:(a=this.get("stereoSphere"))&&c.ob("Video360Resource",a)?p:z};return a}); define("cy","dm,fd,u,kJ,jP,N,gM".split(","),function(a,b,c,e,d,f,g){var k=b.extend(e,function(a){e.call(this);this.Xc("Tab");this.RT=a;this.fi="";this.PV=z;this.w5=this.qa=r;this.UW=this.TW=z;this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p)});k.prototype.ya=function(){e.prototype.ya.call(this);this.f("horizontalAlign",d.Kc);this.f("verticalAlign",d.rc);this.f("fontFamily");this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");this.f("textDecoration"); this.f("textShadowBlurRadius");this.f("textShadowColor");this.f("textShadowHorizontalLength");this.f("textShadowOpacity");this.f("textShadowVerticalLength")};k.prototype.$da=function(a){if(this.TW!=a){this.TW=a;this.UW=p;this.Bc()}};k.prototype.Ia=function(){e.prototype.Ia.call(this);if(this.qa==r){this.qa=new g;this.qa.set("horizontalAlign","center");this.ma(this.qa)}};k.prototype.Vk=function(){e.prototype.Vk.call(this);this.w5=c.watch(this.RT,"label",this.hna,this);this.z9(this.RT.get("label"))}; k.prototype.LU=function(){e.prototype.LU.call(this);this.w5.unwatch()};k.prototype.hna=function(){var a=this.RT.get("label");this.z9(a?a:"")};k.prototype.z9=function(a){if(this.fi!=a){this.fi=a;this.PV=p;this.Bc()}};k.prototype.ga=function(){if(this.PV){this.PV=z;this.qa.set("text",this.fi)}if(this.UW){this.UW=z;this.qa.set("direction",this.TW?f.ef:f.we)}this.gb(k.g1,k.nw,[this.qa],p,p);e.prototype.ga.call(this)};k.g1=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration", "textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];k.nw={};a(k.g1).each(function(a){k.nw[a]=a});return k});define("dS",[],function(){return{Nz:"normal",aw:"inverse",b_:"center"}}); define("cp","dm,fd,W,R,lc,kJ,jP,c,cy,dS,bh".split(","),function(a,b,c,e,d,f,g,k,i,n,j){b=b.extend(f,function(){f.call(this);this.Xc("TabPanel");this.sd=-1;this.Bu=z;this.pD=[];this.GK=z;this.Im=[];this.TT=z;this.oD=[];this.De=this.pf=r;this.Du(z)});b.prototype.ya=function(){f.prototype.ya.call(this);this.f("pages",[]);this.f("selectedIndex",-1);this.f("tabsSize",25);this.f("tabsPosition",j.kb);this.f("tabsGap",0);this.f("tabsPadding",10);this.f("tabsAlign",n.Nz);this.f("tabsBackgroundOpacity",0.6); this.f("tabsBackgroundColor",["#FFFFFF","#CCCCCC"]);this.f("tabsBackgroundColorRatios",[0,0.5]);this.f("tabsRollOverBackgroundOpacity",1);this.f("tabsRollOverBackgroundColor",["#FFFFFF","#CCCCCC"]);this.f("tabsRollOverBackgroundColorRatios",[0,0.5]);this.f("backgroundColor","#FFFFFF");this.f("selectedTabBackgroundOpacity",1);this.f("selectedTabBackgroundColor");this.f("selectedTabBackgroundColorRatios");this.f("borderRadius",6);this.f("pagePaddingLeft",4);this.f("pagePaddingTop",4);this.f("pagePaddingRight", 4);this.f("pagePaddingBottom",4);this.f("borderColor","#AAAAAA");this.f("borderSize",1);this.f("selectedTabFontSize");this.f("selectedTabFontColor");this.f("selectedTabFontWeight");this.f("selectedTabFontStyle");this.f("selectedTabTextDecoration");this.f("selectedTabTextShadowBlurRadius");this.f("selectedTabTextShadowColor");this.f("selectedTabTextShadowHorizontalLength");this.f("selectedTabTextShadowOpacity");this.f("selectedTabTextShadowVerticalLength");this.f("tabsFontFamily");this.f("tabsFontSize"); this.f("tabsFontColor");this.f("tabsFontWeight");this.f("tabsFontStyle");this.f("tabsTextDecoration");this.f("tabsTextShadowBlurRadius");this.f("tabsTextShadowColor");this.f("tabsTextShadowHorizontalLength");this.f("tabsTextShadowOpacity");this.f("tabsTextShadowVerticalLength");this.f("tabsRollOverFontSize");this.f("tabsRollOverFontColor");this.f("tabsRollOverFontWeight");this.f("tabsRollOverFontStyle");this.f("tabsRollOverTextDecoration");this.f("tabsRollOverTextShadowBlurRadius");this.f("tabsRollOverTextShadowColor"); this.f("tabsRollOverTextShadowHorizontalLength");this.f("tabsRollOverTextShadowOpacity");this.f("tabsRollOverTextShadowVerticalLength")};b.prototype.Ia=function(){f.prototype.Ia.call(this);if(this.De==r){this.De=new f;this.De.Du(z);this.ma(this.De)}if(this.pf==r){this.pf=new f;this.pf.Du(z);this.ma(this.pf)}};b.prototype.set=function(a,b){if(a=="pages")this.aya(b||[]);else if(a=="selectedIndex")this.AZ(b);else if(a=="layout")b=k.eza;f.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){return a== "pages"?this.Im:a=="selectedIndex"?this.sd:f.prototype.get.call(this,a,b)};b.prototype.AZ=function(a){if(this.sd!=a){this.sd=a;this.sd=Math.min(Math.max(this.sd,-1),this.Im.length);this.Bu=p;this.Bc();this.trigger(d.aa)}};b.prototype.aya=function(b){if(!a.isEqual(this.Im,b)){this.Im=b;this.TT=p;this.Bc()}};b.prototype.mra=function(b){this.pD=a(this.pD).union([b.source]);this.GK=p;this.Bc()};b.prototype.lra=function(b){this.pD=a(this.pD).difference([b.source]);this.GK=p;this.Bc()};b.prototype.kra= function(b){this.AZ(a(this.oD).indexOf(b.source))};b.prototype.ga=function(){var b=z,q=z,o=z,t=z,s=z,u=this.k("tabsPosition"),v=this.k("tabsAlign");if(this.TT){this.oD=[];this.pf.ida();this.De.ida();a(this.Im).forEach(function(b){var c=new i(b);c.Du(p);c.bind(d.tc,a.bind(this.mra,this));c.bind(d.Ib,a.bind(this.lra,this));c.bind(d.xb,a.bind(this.kra,this));this.oD.push(c);this.pf.ma(c);b.N({top:m,left:m,right:m,bottom:m,width:"100%",height:"100%"});this.De.ma(b)},this);this.sd=Math.min(Math.max(this.sd, 0),this.Im.length-1);this.TT=z;q=b=s=p}if(this.n("tabsPosition")){this.p("tabsPosition");t=q=b=p}if(this.Bu){this.Bu=z;o=q=s=p}if(this.GK){this.GK=z;o=p}a(["tabsAlign","tabsGap","tabsSize"]).forEach(function(a){if(this.n(a)){this.p(a);b=p}},this);a(["borderRadius","borderTopRadius","borderBottomRadius","borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderSize","borderLeftSize","borderTopSize","borderRightSize", "borderBottomSize","borderColor","borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","shadow","shadowHorizontalLength","shadowVerticalLength","shadowBlurRadius","shadowSpread","shadowColor","backgroundOpacity","backgroundColor","backgroundColorRatios"]).forEach(function(a){if(this.n(a)){this.p(a);t=q=p}},this);a(["tabsBackgroundOpacity","tabsBackgroundColor","tabsBackgroundColorRatios","selectedTabBackgroundOpacity","selectedTabBackgroundColor","selectedTabBackgroundColorRatios", "selectedTabFontSize","selectedTabFontColor","selectedTabFontWeight","selectedTabFontStyle","selectedTabTextDecoration","selectedTabTextShadowColor","selectedTabTextShadowHorizontalLength","selectedTabTextShadowVerticalLength","selectedTabTextShadowBlurRadius","selectedTabTextShadowOpacity","tabsFontFamily","tabsFontSize","tabsFontColor","tabsFontWeight","tabsFontStyle","tabsPadding","tabsTextDecoration","tabsRollOverFontSize","tabsRollOverFontColor","tabsTextShadowColor","tabsTextShadowHorizontalLength", "tabsTextShadowVerticalLength","tabsTextShadowBlurRadius","tabsTextShadowOpacity","tabsRollOverFontWeight","tabsRollOverFontStyle","tabsRollOverTextDecoration","tabsRollOverTextShadowColor","tabsRollOverTextShadowHorizontalLength","tabsRollOverTextShadowVerticalLength","tabsRollOverTextShadowBlurRadius","tabsRollOverTextShadowOpacity"]).forEach(function(a){if(this.n(a)){this.p(a);q=p}},this);a(["pagePaddingLeft","pagePaddingTop","pagePaddingRight","pagePaddingBottom"]).forEach(function(a){if(this.n(a)){this.p(a); t=p}},this);this.n("backgroundColorDirection")&&this.p("backgroundColorDirection");if(b){switch(u){case j.oa:this.pf.N({left:0,right:m});break;case j.Ka:this.pf.N({left:m,right:0});break;case j.kb:this.pf.N({bottom:m,top:0});break;case j.jb:this.pf.N({bottom:0,top:m})}switch(u){case j.oa:case j.Ka:this.pf.N({layout:k.ef,top:0,bottom:0,height:m,width:this.k("tabsSize")});switch(v){case n.aw:this.pf.set("verticalAlign",g.jb);break;case n.b_:this.pf.set("verticalAlign",g.rc);break;default:this.pf.set("verticalAlign", g.kb)}break;case j.kb:case j.jb:this.pf.N({layout:k.we,left:0,right:0,height:this.k("tabsSize"),width:m});switch(v){case n.aw:this.pf.set("horizontalAlign",g.Ka);break;case n.b_:this.pf.set("horizontalAlign",g.Kc);break;default:this.pf.set("horizontalAlign",g.oa)}}this.pf.set("gap",this.k("tabsGap"))}if(q)for(var w=0;w0?u==j.oa||u==j.kb?y[0]:y[y.length-1]:y}x.N({backgroundOpacity:this.k("selectedTabBackgroundOpacity", "tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:y,backgroundColorRatios:this.k("selectedTabBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.cd,fontSize:this.k("selectedTabFontSize","tabsFontSize"),fontColor:this.k("selectedTabFontColor","tabsFontColor"),fontWeight:this.k("selectedTabFontWeight","tabsFontWeight"),fontStyle:this.k("selectedTabFontStyle","tabsFontStyle"),textDecoration:this.k("selectedTabTextDecoration","tabsTextDecoration"),textShadowColor:this.k("selectedTabTextShadowColor", "tabsTextShadowColor"),textShadowHorizontalLength:this.k("selectedTabTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("selectedTabTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("selectedTabTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.k("selectedTabTextShadowOpacity","tabsTextShadowOpacity")})}else y?x.N({backgroundOpacity:this.k("tabsRollOverBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"), backgroundColor:this.k("tabsRollOverBackgroundColor","tabsBackgroundColor"),backgroundColorRatios:this.k("tabsRollOverBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.he,fontSize:this.k("tabsRollOverFontSize","tabsFontSize"),fontColor:this.k("tabsRollOverFontColor","tabsFontColor"),fontWeight:this.k("tabsRollOverFontWeight","tabsFontWeight"),fontStyle:this.k("tabsRollOverFontStyle","tabsFontStyle"),textDecoration:this.k("tabsRollOverTextDecoration","tabsTextDecoration"),textShadowColor:this.k("tabsRollOverTextShadowColor", "tabsTextShadowColor"),textShadowHorizontalLength:this.k("tabsRollOverTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("tabsRollOverTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("tabsRollOverTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.k("tabsRollOverTextShadowOpacity","tabsTextShadowOpacity")}):x.N({backgroundOpacity:this.k("tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.k("tabsBackgroundColor"), backgroundColorRatios:this.k("tabsBackgroundColorRatios"),fontSize:this.k("tabsFontSize"),fontColor:this.k("tabsFontColor"),fontWeight:this.k("tabsFontWeight"),fontStyle:this.k("tabsFontStyle"),textDecoration:this.k("tabsTextDecoration"),textShadowColor:this.k("tabsTextShadowColor"),textShadowHorizontalLength:this.k("tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("tabsTextShadowBlurRadius"),textShadowOpacity:this.k("tabsTextShadowOpacity")}); x.N({borderLeftSize:u==j.Ka&&o?0:m,borderRightSize:u==j.oa&&o?0:m,borderBottomSize:u==j.kb&&o?0:m,borderTopSize:u==j.jb&&o?0:m})}if(t){w=this.k("tabsSize");switch(u){case j.oa:this.De.N({left:w-(this.k("borderLeftSize","borderSize")||0),right:0,top:0,bottom:0});break;case j.Ka:this.De.N({left:0,right:w-(this.k("borderRightSize","borderSize")||0),top:0,bottom:0});break;case j.kb:this.De.N({left:0,right:0,top:w-(this.k("borderTopSize","borderSize")||0),bottom:0});break;case j.jb:this.De.N({left:0,right:0, top:0,bottom:w-(this.k("borderBottomSize","borderSize")||0)})}u==j.kb&&v==n.Nz||u==j.oa&&v==n.Nz?this.De.set("borderTopLeftRadius",0):this.De.set("borderTopLeftRadius",this.k("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));u==j.kb&&v==n.aw||u==j.Ka&&v==n.Nz?this.De.set("borderTopRightRadius",0):this.De.set("borderTopRightRadius",this.k("borderTopRightRadius","borderTopRadius","borderRightRadius","borderRadius"));u==j.jb&&v==n.Nz||u==j.oa&&v==n.aw?this.De.set("borderBottomLeftRadius", 0):this.De.set("borderBottomLeftRadius",this.k("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));u==j.jb&&v==n.aw||u==j.Ka&&v==n.aw?this.De.set("borderBottomRightRadius",0):this.De.set("borderBottomRightRadius",this.k("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));this.De.N({paddingLeft:this.k("pagePaddingLeft"),paddingTop:this.k("pagePaddingTop"),paddingRight:this.k("pagePaddingRight"),paddingBottom:this.k("pagePaddingBottom"), borderLeftSize:this.k("borderLeftSize","borderSize"),borderTopSize:this.k("borderTopSize","borderSize"),borderRightSize:this.k("borderRightSize","borderSize"),borderBottomSize:this.k("borderBottomSize","borderSize"),borderLeftColor:this.k("borderLeftColor","borderColor"),borderTopColor:this.k("borderTopColor","borderColor"),borderRightColor:this.k("borderRightColor","borderColor"),borderBottomColor:this.k("borderBottomColor","borderColor"),shadow:this.k("shadow"),shadowHorizontalLength:this.k("shadowHorizontalLength"), shadowVerticalLength:this.k("shadowVerticalLength"),shadowBlurRadius:this.k("shadowBlurRadius"),shadowSpread:this.k("shadowSpread"),shadowColor:this.k("shadowColor"),backgroundOpacity:this.k("backgroundOpacity"),backgroundColor:this.k("backgroundColor"),backgroundColorRatios:this.k("backgroundColorRatios")});u==j.kb||u==j.jb?this.De.set("backgroundColorDirection",c.EO):this.De.set("backgroundColorDirection",c.gO)}if(s)for(w=0;wc.length){for(g=c.length;g=0&&aa.length){for(g=a.length;g=0&&e<2;this.Mw=b;var g;for(g=this.Ni;gb)break;for(;this.Ni0){this.Mc=[];this.wD()}};a.prototype.wD=function(){this.zb.trigger(new f(d.xf,{activeCues:this.Mc.slice()}))};a.prototype.kQ=function(){this.ag=[];var a=this.zb.get("cues",[]);c(a).each(function(a){this.ag.push(new b(a.get("startTime",0),a,"start"));this.ag.push(new b(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.ag.sort(function(a,b){return a.time==b.time?a.action==b.start?0:a.action=="start"?-1:1:a.time-b.time})};return a}); define("ks","require,fd,V,bY,eL,lc,je".split(","),function(a){var b=a("fd"),c=a("V"),e=a("bY"),d=a("eL");a("lc");a("je");var f=b.extend(d,function(a,b){d.call(this);this.F=a;this.g=b;this.ou=[];this.Y=f.Lj;this.Df=r;this.NQ=m;this.cg=r;this.gi=this.qh=m});f.prototype.display=function(a,b){this.UP();if(this.cg!=a||this.Y!=f.Lj){this.ou.push({video:a,startTime:b});this.b7()}};f.prototype.hide=function(){this.UP();this.ou.push({video:r,startTime:m});this.b7()};f.prototype.clear=function(){this.Y=f.Lj; this.UP();this.Noa();this.w8();this.g=r};f.prototype.Gk=function(a){if(this.Y!=f.Lj&&(this.Y==f.dq||this.Y==f.Zz||this.Y==f.SO)){this.gi=this.gi+a;a=Math.min(1,this.gi/this.qh);if(this.Y==f.dq)this.Df.set("opacity",a);else if(this.Y==f.SO){this.Df.set("opacity",Math.min(1,a*2));this.cg.set("opacity",Math.min(1,(1-a)*2))}else this.cg.set("opacity",1-a);this.gi0&&this.Y==f.Lj&&this.jq()};f.prototype.jq=function(){this.cg&&this.trigger(new e(f.Ls, {video:this.cg}));if(this.F.get("transitionMode","blending")=="fade_out_fade_in"&&this.cg)this.jA();else{var a=this.ou.shift();this.Df=a.video;this.NQ=a.startTime;this.Df?this.Df.get("chromaColor")&&this.cg?this.hha():this.xP():this.cg&&this.jA()}};f.prototype.xP=function(){this.A1();this.gi=0;this.qh=this.F.get("transitionDuration");this.Y=f.dq;this.fa()};f.prototype.hha=function(){this.A1();this.gi=0;this.qh=this.F.get("transitionDuration")*2;this.Y=f.SO;this.fa()};f.prototype.jA=function(){this.Df= r;this.gi=0;this.qh=this.F.get("transitionDuration");this.Y=f.Zz;this.fa()};f.prototype.Vw=function(){this.w8();this.cg=this.Df;this.Df=r;this.Y=f.Lj;this.cg?this.trigger(new e(f.Ms,{video:this.cg})):this.ou.length==0&&this.trigger(new e(f.n_));this.ou.length!=0&&this.jq()};f.prototype.fa=function(){c.Ma(this.Gk,this)};f.prototype.UP=function(){this.ou=[]};f.prototype.A1=function(){if(this.Df){this.Df.set("opacity",0);this.Df.set("zIndex",1);this.cg&&this.cg.set("zIndex",0);this.Df.set("currentTime", this.NQ||0);this.g.mta(this.Df);this.trigger(new e(f.cO,{video:this.Df,startTime:this.NQ}))}};f.prototype.w8=function(){if(this.cg){this.g.mda(this.cg);this.trigger(new e(f.IF,{video:this.cg}));this.cg=r}};f.prototype.Noa=function(){if(this.Df){this.g.mda(this.Df);this.trigger(new e(f.IF,{video:this.Df}));this.Df=r}};f.Lj="stopped";f.dq="blending";f.SO="double blending";f.Zz="disolving";f.Ja="request frame";f.cO="video added";f.IF="video removed";f.Ms="video show";f.Ls="video hide";f.n_="all pending videos hidden"; return f}); define("gW","require,fd,lc,bY,eL,fr".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("fr"),g=b.extend(d,function(){d.call(this);this.zb=r;this.qd=z;this.zQ=f.K});g.prototype.start=function(a){this.end();this.hV(a)};g.prototype.end=function(){this.stop();this.mt()};g.prototype.clear=function(){this.mt()};g.prototype.play=function(){this.zb&&this.zb.set("state",f.R)};g.prototype.pause=function(){this.zb&&this.zb.set("state",f.yc)};g.prototype.stop=function(){this.zb&&this.zb.set("state", f.K)};g.prototype.Id=function(a){this.qd=a;this.zb&&this.zb.set("muted",this.qd)};g.prototype.setTime=function(a){this.zb&&this.zb.set("currentTime",a)};g.prototype.getTime=function(){if(this.zb)return this.zb.get("currentTime")};g.prototype.hV=function(a){this.mt();this.zb=a;this.zb.set("mute",this.qd);this.zb.bind(c.D("state"),this.my,this,p);this.zb.bind(c.D("currentTime"),this.Vu,this,p);this.zb.bind(c.Da,this.UD,this,p)};g.prototype.mt=function(){if(this.zb){this.zb.unbind(c.D("state"),this.my, this);this.zb.unbind(c.D("currentTime"),this.Vu,this);this.zb.unbind(c.Da,this.UD,this);this.zb=r}};g.prototype.Vu=function(){this.trigger(new e(g.Ns,{video:this.zb,time:this.zb.get("currentTime"),duration:this.zb.get("duration")}))};g.prototype.UD=function(){this.trigger(new e(g.Mz,{video:this.zb}))};g.prototype.my=function(a){a=this.zb.get("state");if(this.zQ!=a){this.zQ=a;this.trigger(new e(g.bc,{state:this.zQ}))}};g.bc="playback state change";g.Mz="video end";g.Ns="video time change";return g}); define("kD","fd,fr,bY,eL,cF,ks,gW".split(","),function(a,b,c,e,d,f,g){var k=a.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.Ca=new f(this.F,this.g);this.ta=new g(this.g);this.dl=new d(this.g);this.Ca.bind(f.Ls,this.vl,this,p);this.Ca.bind(f.Ms,this.aj,this,p);this.Ca.bind(f.cO,this.v7,this,p);this.Ca.bind(f.IF,this.w7,this,p);this.Ca.bind(f.n_,this.Rma,this,p);this.ta.bind(g.bc,this.oe,this,p);this.ta.bind(g.Mz,this.mr,this,p);this.ta.bind(g.Ns,this.oC,this,p)}); k.prototype.clear=function(){this.Ca.clear();this.ta.clear();this.dl.clear();this.Ca.unbind(f.Ls,this.vl,this);this.Ca.unbind(f.Ms,this.aj,this);this.Ca.unbind(f.cO,this.v7,this);this.Ca.unbind(f.IF,this.w7,this);this.ta.unbind(g.bc,this.oe,this);this.ta.unbind(g.Mz,this.mr,this);this.ta.unbind(g.Ns,this.oC,this);this.F=this.g=this.dl=this.ta=this.Ca=r};k.prototype.uya=function(a,b){this.g.set("visible",p);this.Ca.display(a,b)};k.prototype.Gv=function(){this.Ca.hide();this.ta.end();this.dl.end()}; k.prototype.play=function(){this.ta.play()};k.prototype.stop=function(){this.ta.stop()};k.prototype.pause=function(){this.ta.pause()};k.prototype.Id=function(a){this.ta.Id(a)};k.prototype.setTime=function(a){this.ta.setTime(a)};k.prototype.getTime=function(){return this.ta.getTime()};k.prototype.v7=function(a){var b=a.data.video;this.ta.start(b,a.data.startTime);this.dl.start(b)};k.prototype.w7=C();k.prototype.aj=function(a){a=a.data.video;a.get("autoplay")&&a.get("state")!=b.R&&a.set("state",b.R); this.trigger(new c(k.Ms,{video:a}))};k.prototype.vl=function(a){this.trigger(new c(k.Ls,{video:a.data.video}))};k.prototype.Rma=function(){this.g.set("visible",z)};k.prototype.mr=function(a){this.trigger(new c(k.Mz,{video:a.data.video}))};k.prototype.oC=function(a){this.trigger(new c(k.Ns,{video:a.data.video,time:a.data.time,duration:a.data.duration}))};k.prototype.oe=function(a){this.trigger(new c(k.bc,{state:a.data.state}))};k.Ms="videoShow";k.Ls="videoHide";k.Mz="videoEnd";k.Ns="videoTimeChange"; k.bc="playbackStateChange";return k}); define("iw","require,fd,lc,bY,dT,ct,di,fr,kD,ji".split(","),function(a){var b=a("fd"),c=a("lc");a("bY");var e=a("dT"),d=a("ct"),f=a("di"),g=a("fr"),k=a("kD"),i=a("ji"),a=b.extend(f,function(){f.call(this,"video");this.set("clickAction","none");this.set("displayPlayOverlay",z);this.wt=this.FV=this.Vu=this.rh=z;this.q=this.g=r;this.Kb=this.Zc=0;this.pd=b.Bn(this.rf,this)});e.A("VideoPlayer",a).B("Object").L({buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]", buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",clickAction:"enum[play_pause, none]",displayPlayOverlay:"bool",displayPlaybackBar:"bool",currentTime:"number",state:"enum[stopped, playing, paused]",video:"Video",viewerArea:"ViewerArea"}).Rg({seek:function(a){this.SC(a)},play:function(){this.Ex()},pause:function(){this.Dx()}, stop:function(){this.ku()},restart:function(){this.ju()}}).Vb([d.yf,d.Bh,c.zc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "startTime":this.FV=p;this.pd();break;case "video":this.Vu=p;this.pd();break;case "viewerArea":this.rh=p;this.pd();break;case "displayPlaybackBar":this.wt=p;this.pd()}f.prototype.set.call(this,a,b)}};a.prototype.get=function(a,b){switch(a){case "currentTime":return this.q&&this.q.getTime()||0}return f.prototype.get.call(this,a,b)};a.prototype.rf=function(){if(this.rh){this.rh= z;this.vt();this.get("viewerArea")&&this.tt();this.pK(this.get("viewerArea"));this.Vu=p}var a=z;if(this.g&&(this.Vu||this.FV)){var b=this.get("video"),c=this.get("startTime")||0;if(b&&!this.g.Ua()){this.pd();return}this.FV=this.Vu=z;this.Kb=this.Zc=0;a=p;if(b){this.QJ();this.q.uya(b,c)}else this.q.Gv()}if(this.wt){this.wt=z;a=p}a&&this.KD()};a.prototype.lD=function(){this.set("video",r)};a.prototype.tt=function(){var a=this.get("application"),b=this.get("viewerArea");this.g=new i(a,b,this);this.g.N({left:0, top:0,bottom:0,right:0});b.ma(this.g);b.bind(c.T,this.z7,this,p);this.q=new k(b,this.g);this.q.bind(k.Ms,this.aj,this);this.q.bind(k.Ls,this.vl,this);this.q.bind(k.Ns,this.oC,this,p);this.q.bind(k.bc,this.oe,this);a.bind(c.D("mute"),this.$B,this);this.q.Id(a.get("mute",z));this.fy(p)};a.prototype.vt=function(){if(this.g){this.q.unbind(k.Ms,this.aj,this);this.q.unbind(k.Ls,this.vl,this);this.q.unbind(k.Ns,this.oC,this);this.q.unbind(k.bc,this.oe,this);this.q.clear();this.get("application").unbind(c.D("mute"), this.$B,this);var a=this.g.getParent();a.removeChild(this.g);a.unbind(c.T,this.z7,this,p);this.g=r;this.fy(z)}};a.prototype.$B=function(){this.g&&this.q.Id(this.get("application").get("mute",z))};a.prototype.oe=function(a){a=a.data.state;this.g&&this.g.wZ(this.get("displayPlayOverlay")&&a!=g.R,this.Zc<0.5);this.Yb(a)};a.prototype.aj=function(a){var b=this.get("viewerArea");(this.Ac=b&&b.Ac)&&this.Ac.bind(c.T,this.A7,this,p);this.dU=z;this.zI(a.data.video)};a.prototype.vl=function(a){this.Ac&&this.Ac.unbind(c.T, this.A7,this,p);this.Ac=r;this.yI(a.data.video)};a.prototype.oC=function(a){this.Zc=a.data.time;this.Kb=a.data.duration;this.KD()};a.prototype.z7=function(){if(this.dU)this.dU=z;else switch(this.get("clickAction")){case "play_pause":this.get("state")!=g.R?this.q.play():this.q.pause()}};a.prototype.A7=function(){this.dU=p};a.prototype.BJ=function(a){this.SC(a.data.position)};a.prototype.lh=function(){this.q.play()};a.prototype.qk=function(){this.q.stop()};a.prototype.xl=function(){this.q.pause()}; a.prototype.SC=function(a){this.q&&this.q.setTime(a)};a.prototype.KD=function(){if(this.g){var a=this.g.getParent();this.Kb>0&&this.get("displayPlaybackBar")?a.N({playbackBarPosition:this.Zc,playbackBarDuration:this.Kb,playbackBarVisible:p}):a.set("playbackBarVisible",z)}};return a}); define("e",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("VideoPlayListItem",a).B("PlayListItem").L({media:"Video",player:"VideoPlayer",startTime:"number"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.yf,this.aj,this),a.set("video",this.get("media")),a.set("startTime",this.get("startTime")))};a.prototype.stop=function(){var a=this.get("player");a&&(a.unbind(c.yf,this.aj,this),a.get("video")==this.get("media")&& a.set("video",r));e.prototype.stop.call(this)};a.prototype.aj=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.yf,this.aj,this),this.get("player").bind(c.Bh,this.vl,this),this.Dy())};a.prototype.vl=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Bh,this.vl,this),this.end())};return a}); define("fJ",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("VideoResourceLevel",b).B("Object").L({bitrate:"number",framerate:"number",height:"number",posterURL:"string",type:"string",url:"string",width:"number"}).Ah(["posterURL","url"]);return b}); define("dx","require,fd,iU,dT,iO,fJ".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("dT"),d=a("iO"),f=a("fJ"),a=b.extend(c,function(){c.call(this);this.pT=new f;this.pT.set("type","video/mp4");this.sT=new f;this.sT.set("type","video/ogg");this.cX=new f;this.cX.set("type","video/webm");this.set("gain",1);this.set("hasAudio",p)});e.A("VideoResource",a).B("Object").L({gain:"number",hasAudio:"bool",height:"number",levels:"array[VideoResourceLevel]",mp4Url:"string",oggUrl:"string",subtitlesURL:"string", webmUrl:"string",width:"number"}).Ah(["mp4Url","oggUrl","subtitlesURL","webmUrl"]);a.prototype.get=function(a,b){switch(a){case "levels":var b=[],d=this.get("mp4Url");if(d){this.pT.set("url",d);b.push(this.pT)}if(d=this.get("oggUrl")){this.sT.set("url",d);b.push(this.sT)}if(d=this.get("webmUrl")){this.cX.set("url",d);b.push(this.cX)}b.forEach(function(a){a.set("width",this.get("width"));a.set("height",this.get("height"))}.bind(this))}return c.prototype.get.call(this,a,b)};a.prototype.sj=function(){var a= this.get("webmUrl"),b=this.get("oggUrl"),c=this.get("mp4Url");return c&&d.iM?c:a&&d.mY?a:b&&d.lY?b:c||a||b};return a}); define("cY","require,jquery.mod,fd,lc,r,jk,d,fb".split(","),function(a){var b=a("jquery.mod"),c=a("fd"),e=a("lc"),d=a("r"),f=a("jk"),g=a("d"),k=a("fb"),a=c.extend(g,function(){g.call(this);this.Xc("WebFrame");this.AB=this.At=this.mb=this.qc=r;this.BT=this.BT.bind(this);this.TI=this.TI.bind(this);this.bind(e.md,this.Vna,this,p);this.bind(e.yd,this.Una,this,p)});a.prototype.ya=function(){g.prototype.ya.call(this);this.f("url");this.f("backgroundColor","#ffffff");this.f("insetBorder",z);this.f("scrollEnabled", p)};a.prototype.Vna=function(){this.Eu("url")};a.prototype.Una=function(){this.Eu("url")};a.prototype.Ia=function(){g.prototype.Ia.call(this);if(!this.qc){this.qc=b("
");this.qc.css({position:"absolute",left:0,top:0,width:"100%",height:"100%"});this.Pa().append(this.qc)}if(!this.mb){this.mb=b("");this.mb.css({position:"absolute",left:0,top:0});this.mb.attr("allowfullscreen","true");this.mb.attr("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone"); this.qc.append(this.mb)}if(!this.At){this.At=b("
");this.At.css({"text-shadow":"0 0 5px rgba(255,255,255,0.5)",display:"none",color:"#000000","font-weight":"300","font-family":"Tahoma, Geneva, sans-serif","font-size":d.Wa()?"5vmin":"20px",position:"absolute",top:"50%",left:"50%","text-align":"center",transform:"translate(-50%, -50%)",width:"90%"});this.qc.append(this.At)}};a.prototype.ga=function(){if(this.n("url")){var a=this.k("url");a&&this.Xq?this.j9(a):this.j9("");this.p("url")}if(this.n("insetBorder")){this.k("insetBorder")? this.mb.attr("frameborder","1"):this.mb.attr("frameborder","0");this.p("insetBorder")}if(this.n("scrollEnabled")){if(this.k("scrollEnabled")){this.mb.attr("scrolling","auto");this.qc.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}else{this.mb.attr("scrolling","no");this.qc.css({overflow:"hidden","-webkit-overflow-scrolling":"auto"})}this.p("scrollEnabled")}g.prototype.ga.call(this)};a.prototype.Le=function(){this.mb&&k.css(this.mb.get(0),{width:this.W+"px",height:this.ea+"px"});g.prototype.Le.call(this)}; a.prototype.refresh=function(){if(this.k("url")&&this.Xq){this.hS();this.rq();this.iW();this.mb.attr("src","");setTimeout(function(){this.O9();this.X1();this.mb.attr("src",this.k("url"))}.bind(this),30)}};a.prototype.j9=function(a){if(this.mb.attr("src")!=a){this.hS();if(a){this.O9();this.X1()}else{this.rq();this.iW()}this.mb.attr("src",a)}};a.prototype.BT=function(){this.AB=r;this.lma()&&this.Fqa()};a.prototype.TI=function(){this.hS();this.rq();this.iW()};a.prototype.X1=function(){this.mb.on("load", this.TI)};a.prototype.iW=function(){this.mb.off("load",this.TI)};a.prototype.rq=function(){if(this.AB){clearTimeout(this.AB);this.AB=r}};a.prototype.O9=function(){this.rq();this.AB=setTimeout(this.BT.bind(this),3E3)};a.prototype.lma=function(){if(window.location.protocol=="https:"){var a=this.mb.attr("src");if(f.parse(a).protocol!="https:")return p}return z};a.prototype.Fqa=function(){this.At.text("A secure web page served over HTTPS can not display insecure content served over HTTP.");this.At.show()}; a.prototype.hS=function(){this.At.hide()};return a});define("bO",["fd","cY","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("WebFrame",a).B("UIComponent").L({url:"string",insetBorder:"bool",scrollEnabled:"bool"}).Ah(["url"]).Rg({refresh:function(){b.prototype.refresh.call(this)}});return a});define("eW",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.lb={layout:e.we};a.defaults(d.lb,c.lb);d.prototype.ya=function(){this.Rj(d.lb)};return d}); define("ju","dm,fd,lc,bY,jP,c,kJ,eW,fD,eC,d,kj,kw,gM".split(","),function(a,b,c,e,d,f,g,k,i,n,j,l,q,o){var t=b.extend(i,function(){i.call(this);this.Xc("Window");this.lq=this.Gw=this.tD=this.Mh=r;this.CP=new g;this.cx=r;this.dS=this.cS=0;this.D9=this.E9=z;this.dX=this.eX=m;for(var a in t.Lza)this.Eu(a);this.bind(c.yb,this.Xsa,this);this.bind(c.Os,this.Vsa,this);this.bind(c.hw,this.Ysa,this);this.bind(c.T,this.Usa,this);this.eL=0;this.ud=new g;this.ud.N({visible:z,includeInLayout:z,layout:"absolute", height:"100%",width:"100%",backgroundOpacity:0,contentOpaque:z});this.ud.bind(c.yb,this.oaa,this);this.ud.bind(c.hw,this.Psa,this);this.ud.bind(c.Os,this.naa,this);this.ud.bind(c.Os,this.naa,this);this.ud.bind(c.T,this.Osa,this);this.ud.ma(this)});t.prototype.set=function(a,b){switch(a){case "maxWidth":this.eX=b;this.WK();break;case "maxHeight":this.dX=b;this.WK();break;case "children":this.CP.set(a,b);break;case "shadow":this.E9=b;this.kaa();break;default:i.prototype.set.call(this,a,b)}};t.prototype.show= function(b,c){this.WK(b);this.set("visible",z);this.ud.set("visible",z);this.cha();c&&this.Ata();var d=b.get("children");b.set("children",d.concat([this.ud]));var e=this;a.defer(function(){e.ud.set("visible",p)})};t.prototype.cha=function(){var a=this.k("modal"),b=this.k("veilShowEffect"),c=this.k("veilHideEffect");a&&b?this.ud.set("showEffect",b):this.ud.set("showEffect",r);a&&c?this.ud.set("hideEffect",c):this.ud.set("hideEffect",r)};t.prototype.hide=function(){this.get("visible")&&this.trigger(c.ZZ); this.eL=0;this.oK(z);this.set("visible",z)};t.prototype.Ata=function(){this.set("centerX",0);this.set("centerY",0)};t.prototype.get=function(a,b){return a=="children"?this.CP.get(a,b):i.prototype.get.call(this,a,b)};t.a1={headerBackgroundOpacity:"backgroundOpacity",headerBackgroundColor:"backgroundColor",headerBackgroundColorRatios:"backgroundColorRatios",headerBackgroundColorDirection:"backgroundColorDirection",headerBorderSize:"borderSize",headerBorderLeftSize:"borderLeftSize",headerBorderTopSize:"borderTopSize", headerBorderRightSize:"borderRightSize",headerBorderBottomSize:"borderBottomSize",headerBorderColor:"borderColor",headerBorderLeftColor:"borderLeftColor",headerBorderTopColor:"borderTopColor",headerBorderRightColor:"borderRightColor",headerBorderBottomColor:"borderBottomColor",headerHeight:"height",headerPaddingLeft:"paddingLeft",headerPaddingTop:"paddingTop",headerPaddingRight:"paddingRight",headerPaddingBottom:"paddingBottom",headerVerticalAlign:"verticalAlign"};t.$0=a(t.a1).keys();t.NO={borderRadius:"borderTopRadius", borderTopRadius:"borderTopRadius",borderLeftRadius:"borderTopLeftRadius",borderRightRadius:"borderTopRightRadius",borderTopLeftRadius:"borderTopLeftRadius",borderTopRightRadius:"borderTopRightRadius"};t.MO=["borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderTopRadius","borderRadius"];t.s1={title:"text",titleFontFamily:"fontFamily",titleFontSize:"fontSize",titleFontColor:"fontColor",titleFontWeight:"fontWeight",titleFontStyle:"fontStyle",titleHorizontalAlign:"horizontalAlign", titlePaddingLeft:"paddingLeft",titlePaddingTop:"paddingTop",titlePaddingRight:"paddingRight",titlePaddingBottom:"paddingBottom",titleTextDecoration:"textDecoration",titleTextShadowColor:"textShadowColor",titleTextShadowHorizontalLength:"textShadowHorizontalLength",titleTextShadowVerticalLength:"textShadowVerticalLength",titleTextShadowBlurRadius:"textShadowBlurRadius",titleTextShadowOpacity:"textShadowOpacity"};t.r1=a(t.s1).keys();t.V0={closeButtonBackgroundColor:"backgroundColor",closeButtonBackgroundColorDirection:"backgroundColorDirection", closeButtonBackgroundColorRatios:"backgroundColorRatios",closeButtonBackgroundOpacity:"backgroundOpacity",closeButtonBorderColor:"borderColor",closeButtonBorderRadius:"borderRadius",closeButtonBorderSize:"borderSize",closeButtonHeight:"height",closeButtonIconColor:"iconColor",closeButtonIconHeight:"iconHeight",closeButtonIconLineWidth:"iconLineWidth",closeButtonIconWidth:"iconWidth",closeButtonOpacity:"opacity",closeButtonWidth:"width",closeButtonPaddingBottom:"paddingBottom",closeButtonPaddingLeft:"paddingLeft", closeButtonPaddingRight:"paddingRight",closeButtonPaddingTop:"paddingTop",closeButtonRollOverBackgroundColor:"rollOverBackgroundColor",closeButtonRollOverBackgroundColorDirection:"rollOverBackgroundColorDirection",closeButtonRollOverBackgroundColorRatios:"rollOverBackgroundColorRatios",closeButtonRollOverBackgroundOpacity:"rollOverBackgroundOpacity",closeButtonRollOverBorderColor:"rollOverBorderColor",closeButtonRollOverBorderSize:"rollOverBorderSize",closeButtonRollOverIconColor:"rollOverIconColor", closeButtonRollOverIconLineWidth:"rollOverIconLineWidth",closeButtonRollOverOpacity:"rollOverOpacity",closeButtonPressedBackgroundColor:"pressedBackgroundColor",closeButtonPressedBackgroundColorDirection:"pressedBackgroundColorDirection",closeButtonPressedBackgroundColorRatios:"pressedBackgroundColorRatios",closeButtonPressedBackgroundOpacity:"pressedBackgroundOpacity",closeButtonPressedBorderColor:"pressedBorderColor",closeButtonPressedBorderSize:"pressedBorderSize",closeButtonPressedIconColor:"pressedIconColor", closeButtonPressedIconLineWidth:"pressedIconLineWidth",closeButtonPressedOpacity:"pressedOpacity"};t.U0=a(t.V0).keys();t.X0={footerBackgroundOpacity:"backgroundOpacity",footerBackgroundColor:"backgroundColor",footerBackgroundColorRatios:"backgroundColorRatios",footerBackgroundColorDirection:"backgroundColorDirection",footerBorderSize:"borderSize",footerBorderLeftSize:"borderLeftSize",footerBorderTopSize:"borderTopSize",footerBorderRightSize:"borderRightSize",footerBorderBottomSize:"borderBottomSize", footerBorderColor:"borderColor",footerBorderLeftColor:"borderLeftColor",footerBorderTopColor:"borderTopColor",footerBorderRightColor:"borderRightColor",footerBorderBottomColor:"borderBottomColor",footerHeight:"height"};t.W0=a(t.X0).keys();t.Z0={borderRadius:"borderBottomRadius",borderBottomRadius:"borderBottomRadius",borderLeftRadius:"borderBottomLeftRadius",borderRightRadius:"borderBottomRightRadius",borderBottomLeftRadius:"borderBottomLeftRadius",borderBottomRightRadius:"borderBottomRightRadius"}; t.Y0=["borderLeftRadius","borderRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomRadius","borderRadius"];t.R0={bodyBackgroundOpacity:"backgroundOpacity",bodyBackgroundColor:"backgroundColor",bodyBackgroundColorRatios:"backgroundColorRatios",bodyBackgroundColorDirection:"backgroundColorDirection",bodyBorderSize:"borderSize",bodyBorderLeftSize:"borderLeftSize",bodyBorderTopSize:"borderTopSize",bodyBorderRightSize:"borderRightSize",bodyBorderBottomSize:"borderBottomSize", bodyBorderColor:"borderColor",bodyBorderLeftColor:"borderLeftColor",bodyBorderTopColor:"borderTopColor",bodyBorderRightColor:"borderRightColor",bodyBorderBottomColor:"borderBottomColor",bodyPaddingLeft:"paddingLeft",bodyPaddingTop:"paddingTop",bodyPaddingRight:"paddingRight",bodyPaddingBottom:"paddingBottom",overflow:"overflow",scrollBarColor:"scrollBarColor",scrollBarWidth:"scrollBarWidth",scrollBarMargin:"scrollBarMargin",scrollBarHorizontalMargin:"scrollBarHorizontalMargin",scrollBarVerticalMargin:"scrollBarVerticalMargin", scrollBarOpacity:"scrollBarOpacity",gap:"gap"};t.Q0=a(t.R0).keys();t.S0={layout:"layout",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign"};t.Tfa=a(t.S0).keys();t.u1={veilOpacity:"backgroundOpacity",veilColor:"backgroundColor",veilColorRatios:"backgroundColorRatios",veilColorDirection:"backgroundColorDirection"};t.t1=a(t.u1).keys();t.lb=function(){var b={modal:z,visible:z,centerX:0,centerY:0,veilShowEffect:m,veilHideEffect:m};a.defaults(b,g.lb);for(var c=[].concat(t.$0,t.r1,t.U0,t.Q0, t.W0,t.t1),d=0;d0&&this.hide()}.bind(this),100)};t.prototype.Usa=function(){this.eL--};t.prototype.oia=function(){this.hide()};t.prototype.Ela=function(a){this.cS=a.pageX;this.dS=a.pageY;this.Ua().bind(c.Lc,this.zaa,this,p);this.Ua().bind(c.cc,this.Aaa,this,p)};t.prototype.zaa=function(a){this.set("centerX",this.get("centerX")+(a.pageX-this.cS)); this.set("centerY",this.get("centerY")+(a.pageY-this.dS));this.cS=a.pageX;this.dS=a.pageY;this.jaa()};t.prototype.Aaa=function(){this.Ua().unbind(c.Lc,this.zaa,this);this.Ua().unbind(c.cc,this.Aaa,this)};t.prototype.oaa=function(){this.WK()};t.prototype.Psa=function(){this.set("visible",p)};t.prototype.naa=function(){this.ud.unbind(c.yb,this.oaa,this);var a=this.ud.getParent();a&&a.removeChild(this.ud);this.trigger(new e(c.zs))};t.prototype.Xsa=function(){this.jaa()};t.prototype.Ysa=function(){this.oK(p)}; t.prototype.Vsa=function(){this.ud.set("visible",z)};t.prototype.oK=function(a){this.D9=a;this.kaa()};t.prototype.kaa=function(){i.prototype.set.call(this,"shadow",this.D9&&this.E9)};t.prototype.WK=function(a){a||(a=this.P);this.eX!==m?i.prototype.set.call(this,"maxWidth",this.eX):a?i.prototype.set.call(this,"maxWidth",a.Ba()):i.prototype.set.call(this,"maxWidth",m);this.dX!==m?i.prototype.set.call(this,"maxHeight",this.dX):a?i.prototype.set.call(this,"maxHeight",a.hb()):i.prototype.set.call(this, "maxHeight",m)};t.prototype.jaa=function(){var a=this.ud.Ba(),b=this.Ba(),c=this.get("centerX"),b=a*0.5+c-b*0.5,d=this.Mh.ni(),e=this.Mh.Ba(),f=Math.min(e,30),a=a-d-f,d=-(d+e-f);ba&&this.set("centerX",c-(b-a));a=this.ud.hb();b=this.hb();c=this.get("centerY");b=a*0.5+c-b*0.5;d=this.Mh.rn();e=this.Mh.hb();f=Math.min(e,5);a=a-d-f;d=-(d+e-f);ba&&this.set("centerY",c-(b-a))};t.prototype.ga=function(){this.gb(t.$0,t.a1,[this.Mh],p,p);this.gb(t.MO, t.NO,[this.Mh],p,z);this.get("headerHeight")===0?this.gb(t.MO,t.NO,[this.lq],p,z):this.gb(t.MO,t.NO,[this.Mh],p,z);this.gb(t.r1,t.s1,[this.tD],p,p);this.gb(t.U0,t.V0,[this.Gw],p,p);this.gb(t.Q0,t.R0,[this.lq],p,p);this.gb(t.Tfa,t.S0,[this.lq],p,z);this.gb(t.W0,t.X0,[this.cx],p,p);this.get("footerHeight")===0?this.gb(t.Y0,t.Z0,[this.lq],p,z):this.gb(t.Y0,t.Z0,[this.cx],p,z);if(this.k("modal")){this.gb(t.t1,t.u1,[this.ud],p,p);this.ud.set("contentOpaque",p)}else{this.ud.set("backgroundOpacity",0);this.ud.set("contentOpaque", z)}this.N({layout:f.ef,horizontalAlign:d.Kc,verticalAlign:d.rc});i.prototype.ga.call(this);this.Zj.TM(0)};return t}); define("dn",["dm","fd","ju","dT","lc"],function(a,b,c,e,d){a=b.extend(c,function(){c.call(this)});e.A("Window",a).B("Container").L({modal:"bool",headerBackgroundOpacity:"number",headerBackgroundColor:"or[array[color], color]",headerBackgroundColorRatios:"array[number]",headerBackgroundColorDirection:"enum[horizontal, vertical]",headerBorderSize:"number",headerBorderLeftSize:"number",headerBorderTopSize:"number",headerBorderRightSize:"number",headerBorderBottomSize:"number",headerBorderColor:"color", headerBorderLeftColor:"color",headerBorderTopColor:"color",headerBorderRightColor:"color",headerBorderBottomColor:"color",headerHeight:"number",headerPaddingLeft:"number",headerPaddingTop:"number",headerPaddingRight:"number",headerPaddingBottom:"number",headerVerticalAlign:"enum[bottom, middle, top]",title:"string",titleFontFamily:"string",titleFontSize:"or[number, size]",titleFontColor:"color",titleFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",titleFontStyle:"enum[italic, normal]", titleHorizontalAlign:"enum[left, center, right]",titlePaddingLeft:"number",titlePaddingTop:"number",titlePaddingRight:"number",titlePaddingBottom:"number",titleTextDecoration:"enum[underline, overline, line-through, none]",titleTextShadowBlurRadius:"number",titleTextShadowColor:"color",titleTextShadowHorizontalLength:"number",titleTextShadowOpacity:"number",titleTextShadowVerticalLength:"number",closeButtonBackgroundColor:"or[array[color], color]",closeButtonBackgroundColorDirection:"enum[horizontal, vertical]", closeButtonBackgroundColorRatios:"array[number]",closeButtonBackgroundOpacity:"number",closeButtonBorderColor:"color",closeButtonBorderRadius:"number",closeButtonBorderSize:"number",closeButtonHeight:"number",closeButtonIconColor:"color",closeButtonIconHeight:"number",closeButtonIconLineWidth:"number",closeButtonIconWidth:"number",closeButtonOpacity:"number",closeButtonWidth:"number",closeButtonPaddingBottom:"number",closeButtonPaddingLeft:"number",closeButtonPaddingRight:"number",closeButtonPaddingTop:"number", closeButtonRollOverBackgroundColor:"or[array[color], color]",closeButtonRollOverBackgroundColorDirection:"enum[horizontal, vertical]",closeButtonRollOverBackgroundColorRatios:"array[number]",closeButtonRollOverBackgroundOpacity:"number",closeButtonRollOverBorderColor:"color",closeButtonRollOverBorderSize:"number",closeButtonRollOverIconColor:"color",closeButtonRollOverIconLineWidth:"number",closeButtonRollOverOpacity:"number",closeButtonPressedBackgroundColor:"or[array[color], color]",closeButtonPressedBackgroundColorDirection:"enum[horizontal, vertical]", closeButtonPressedBackgroundColorRatios:"array[number]",closeButtonPressedBackgroundOpacity:"number",closeButtonPressedBorderColor:"color",closeButtonPressedBorderSize:"number",closeButtonPressedIconColor:"color",closeButtonPressedIconLineWidth:"number",closeButtonPressedOpacity:"number",footerBackgroundOpacity:"number",footerBackgroundColor:"or[array[color], color]",footerBackgroundColorRatios:"array[number]",footerBackgroundColorDirection:"enum[horizontal, vertical]",footerBorderSize:"number",footerBorderLeftSize:"number", footerBorderTopSize:"number",footerBorderRightSize:"number",footerBorderBottomSize:"number",footerBorderColor:"color",footerBorderLeftColor:"color",footerBorderTopColor:"color",footerBorderRightColor:"color",footerBorderBottomColor:"color",footerHeight:"number",bodyBackgroundOpacity:"number",bodyBackgroundColor:"or[array[color], color]",bodyBackgroundColorRatios:"array[number]",bodyBackgroundColorDirection:"enum[horizontal, vertical]",bodyBorderSize:"number",bodyBorderLeftSize:"number",bodyBorderTopSize:"number", bodyBorderRightSize:"number",bodyBorderBottomSize:"number",bodyBorderColor:"color",bodyBorderLeftColor:"color",bodyBorderTopColor:"color",bodyBorderRightColor:"color",bodyBorderBottomColor:"color",bodyPaddingLeft:"number",bodyPaddingTop:"number",bodyPaddingRight:"number",bodyPaddingBottom:"number",veilOpacity:"number",veilColor:"or[array[color], color]",veilColorRatios:"array[number]",veilColorDirection:"enum[horizontal, vertical]",veilHideEffect:"Effect",veilShowEffect:"Effect"}).Mp(["titleFontSize"]).Rg({show:a.prototype.show, hide:a.prototype.hide}).Vb([d.ZZ,d.zs]);return a}); define("jS","require,jquery.mod,dm,lc,gb,bY,eL,V,kO,bq,hW,je,r,fd".split(","),function(a){function b(a){this.source=a;this.width=this.source.get("width");this.height=this.source.get("height");this.url=this.source.get("url");this.Yy=this.source.get("grayscale");this.Ap=new l(f.Jj)}var c=a("jquery.mod"),e=a("dm"),d=a("lc"),f=a("gb"),g=a("bY"),k=a("eL"),i=a("V"),n=a("kO"),j=a("bq"),l=a("hW"),q=a("je"),o=a("r"),t=a("fd"),s=t.extend(k,function(){k.call(this);this.ye=r;this.b5=[];this.Wi=[];this.Xa=this.La= this.dc=this.Xb=100;this.rd=1;this.qq=this.pq=0.5;this.oc=1;this.ug=this.eg=r;this.tJ=z;this.pQ={};this.Lw={};this.Lw.low={};this.Lw.hight={};if(o.Ey()==o.Iz){this.Lw.low.transform="translateZ(0)";this.Lw.hight.transform=""}this.V=z;this.hf="inherit";this.I=c("
").css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"});this.fB=r;this.dd=t.Bn(this.J,this)});s.prototype.Cb=R("I");s.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.qP(1);this.dd()}};s.prototype.mxa=function(a){if(this.hf!= a){this.hf=a;this.ug&&this.ug.css("cursor",this.hf);this.eg&&this.eg.css("cursor",this.hf)}};s.prototype.zxa=function(a){if(this.b5!=a){this.SP();this.ye=r;if(this.eg){this.eg.detach();this.eg=r}if(this.ug){this.ug.detach();this.ug=r}if(this.ze)this.ze=r;this.SP();this.tJ=z;e(this.Wi).each(function(a){a.Ap.cancel();a.Ap.unbind(d.S,this.z5,this)},this);a=(this.b5=a)&&a.get("levels")||[];this.Wi=e(a).map(function(a){a=new b(a);a.Ap.bind(d.S,this.z5,this);return a},this);if(a=this.Rka()){this.La=a.width; this.Xa=a.height}else this.Xa=this.La=100;this.qq=this.pq=0.5;this.qP(1);this.dd()}};s.prototype.Iv=function(a,b){if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.dd()}};s.prototype.nxa=function(a,b){if(this.m3!=a||this.l3!=b){this.m3=a;this.l3=b;this.dd()}};s.prototype.ld=function(a){if(this.V!=a){this.V=a;this.dd()}};s.prototype.move=function(a,b){var c=this.rd*this.oc;this.pq=this.pq+a/(this.La*c);this.qq=this.qq+b/(this.Xa*c);this.RJ()};s.prototype.nv=R("oc");s.prototype.setScale=function(a){this.qP(Math.max(1, Math.min(1/this.rd,a)));this.ye&&this.ye.width=0&&a>=0&&cthis.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;case q.Iea:a=Math.min(this.m3/this.La,this.l3/this.Xa);break;default:a=this.La*this.dc>this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}this.$ga(a)};s.prototype.z5=function(){this.dd()};s.prototype.oja=function(a){if(this.ug){this.iV(this.ug,1);this.eg&&this.eg.detach();this.eg=this.ug}this.ug=this.Pia(a);this.iV(this.ug,0);this.I.append(this.ug);this.ze=this.Jia(); this.pQ={}};s.prototype.Vka=function(){return this.ye?this.oka(this.oc*this.rd*this.La):this.nla()};s.prototype.p9=function(a){e(this.Wi).each(function(b){b==a?b.Ap.sj()!=b.url&&b.Ap.load(b.url):b.Ap.yp()||b.Ap.cancel()})};s.prototype.Rka=function(){return e(this.Wi).reduce(function(a,b){a||(a=b);if(b.width>a.width||b.width==a.width&&!b.Yy&&a.Yy)a=b;return a},r)};s.prototype.nla=function(){return e(this.Wi).reduce(function(a,b){a||(a=b);if(b.width=a&&b.width=a&&c.widthb.width||!c.Yy&&b.Yy)b=c;return b},r)};s.prototype.Pia=function(a){a=c(a.Ap.qe(p));a.css({position:"absolute",cursor:this.hf,"pointer-events":"none"});return a};s.prototype.Jia=function(){return new n("linear",[new j("alpha",0,1)],200)};s.prototype.RJ=function(){i.Ma(function(a){this.MJ(a,"low")},this)};s.prototype.WX=function(){return this.La*this.oc* this.rd};s.prototype.VX=function(){return this.Xa*this.oc*this.rd};s.prototype.pba=function(){var a=this.WX();return a>this.Xb?Math.max(this.Xb-a,Math.min(0,this.Xb*0.5-a*this.pq)):(this.Xb-a)*0.5};s.prototype.qba=function(){var a=this.VX();return a>this.dc?Math.max(this.dc-a,Math.min(0,this.dc*0.5-a*this.qq)):(this.dc-a)*0.5};s.prototype.MJ=function(a,b){var b=b||"low",c=this.WX(),e=this.pba(),f=this.VX(),i=this.qba();this.pq=(this.Xb*0.5-e)/c;this.qq=(this.dc*0.5-i)/f;var c={left:Math.round(e)+ "px",top:Math.round(i)+"px",width:Math.round(c)+"px",height:Math.round(f)+"px",display:"block"},j;for(j in this.Lw[b])c[j]=this.Lw[b][j];if(this.pQ!=c){this.eg&&this.eg.css(c);this.ug&&this.ug.css(c);this.pQ=c}this.SP();if(this.ze){this.ze.eb(a);this.iV(this.ug,this.ze.wb("alpha"));if(this.ze.Je()){this.ze=r;this.eg&&this.eg.detach();this.eg=this.ug;this.ug=r}this.RJ()}else b=="low"&&this.Pqa();if(!this.ze&&this.tJ){this.tJ=z;this.trigger(new g(d.S))}};s.prototype.iV=function(a,b){a.css({opacity:b, filter:"alpha(opacity="+Math.round(b*100)+")","-ms-filter":"alpha(opacity="+Math.round(b*100)+")"})};s.prototype.SP=function(){if(this.fB!=r){clearTimeout(this.fB);this.fB=r}};s.prototype.Pqa=function(){var a=this;this.fB=setTimeout(function(){a.fB=r;a.MJ(50,"hight")},50)};s.prototype.qP=function(a){if(this.oc!=a){this.oc=a;this.Nra()}};s.prototype.$ga=function(a){if(this.rd!=a)this.rd=a};s.prototype.Nra=function(){this.trigger(new g(s.Lz,{scale:this.oc}))};s.Lz="scaleChange";return s}); define("hO","require,jquery.mod,lc,bY,jS,fd,d,J".split(","),function(a){a("jquery.mod");var b=a("lc"),c=a("bY"),e=a("jS"),d=a("fd"),f=a("d"),g=a("J"),k=d.extend(f,function(){f.call(this);this.Xc("ZoomImage");this.So=this.fj=m;this.bi=z;this.a8=m;this.f5=this.oc;this.SD=r;this.g=new e;this.g.bind(b.S,this.Bna,this);this.g.bind(e.Lz,this.Cna,this);this.Pa().append(this.g.Cb());this.bind(b.yb,this.nb,this,p);this.bind(b.md,this.hh,this,p);this.bind(b.yd,this.eh,this,p);this.bind(b.xb,this.lc,this,p); this.bind(b.Lc,this.Bg,this,p);this.bind(b.cc,this.Cg,this,p);this.bind(b.Yp,this.$t,this,p);this.bind(b.Zv,this.Ht,this,p)});k.prototype.set=function(a,b){switch(a){case "scale":this.g.setScale(b);b=this.g.nv();break;case "imageLeft":case "imageTop":case "imageWidth":case "imageHeight":return}f.prototype.set.call(this,a,b)};k.prototype.get=function(a,b){switch(a){case "scale":return this.g.nv();case "imageLeft":return this.g.pba();case "imageTop":return this.g.qba();case "imageWidth":return this.g.WX(); case "imageHeight":return this.g.VX()}return f.prototype.get.call(this,a,b)};k.prototype.ya=function(){f.prototype.ya.call(this);this.f("image");this.f("scaleMode");this.f("customHeight");this.f("customWidth");this.f("imageCursor");this.f("imageLeft");this.f("imageTop");this.f("imageWidth");this.f("imageHeight")};k.prototype.ga=function(){if(this.n("scaleMode")){this.g.rs(this.k("scaleMode"));this.p("scaleMode")}if(this.n("image")){this.g.zxa(this.k("image"));this.p("image");this.f5=this.oc}if(this.n("customHeight")|| this.n("customWidth")){this.p("customHeight");this.p("customWidth");this.nb()}if(this.n("imageCursor")){this.p("imageCursor");this.g.mxa(this.pa.FQ.jba(this.get("imageCursor")))}f.prototype.ga.call(this)};k.prototype.nb=function(){var a=this.Ba(),b=this.hb(),c=this.get("customWidth","100%"),d=g.Fk(c),c=d!==m?a*d/100:c,d=this.get("customHeight","100%"),e=g.Fk(d);this.g.nxa(c,e!==m?b*e/100:d);this.g.Iv(a,b)};k.prototype.hh=function(){this.g.ld(p)};k.prototype.eh=function(){this.g.ld(z)};k.prototype.lc= function(a){this.fj=a.x;this.So=a.y;this.bi=p;this.a8=this.g.Cca(a)};k.prototype.Bg=function(a){if(this.bi){this.QW();this.g.move(-(a.x-this.fj),-(a.y-this.So));this.fj=a.x;this.So=a.y}};k.prototype.Cg=function(a){this.bi=z;!this.a8&&!this.g.Cca(a)&&this.trigger(new c(k.o_))};k.prototype.$t=function(a){this.QW();this.g.setScale((1+a.op/20)*this.g.nv())};k.prototype.Ht=function(a){this.QW();this.g.setScale(a.scale/this.f5)};k.prototype.Bna=function(){this.trigger(new c(b.S))};k.prototype.Cna=function(){f.prototype.set.call(this, "scale",this.g.nv());this.trigger(new c(k.Lz))};k.prototype.QW=function(){if(this.SD){clearTimeout(this.SD);this.SD=r}else this.trigger(new c(k.ve));this.SD=setTimeout(function(){this.SD=r;this.trigger(new c(k.ue))}.bind(this),300)};k.o_="backgroundClick";k.Lz="scaleChange";k.ve="userInteractionStart";k.ue="userInteractionEnd";return k}); define("ky",["fd","lc","hO","dT"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});e.A("ZoomImage",a).B("UIComponent").L({scaleMode:"enum[fit_inside, fit_outside, fit_to_width, fit_to_height, custom]",customHeight:"or[number,percent]",customWidth:"or[number,percent]",image:"ImageResource",imageCursor:"enum[default, hand]",imageHeight:"number",imageLeft:"number",imageTop:"number",imageWidth:"number",scale:"number"}).Vb([c.o_,c.Lz,c.ve,c.ue,b.S]);return Image}); define("gR","gE,du,dK,kL,hl,ev,fY,gY,hF,iT,kR,fy,ge,fl,ep,cG,bm,kt,ho,jx,ek,n,gV,dd,gv,jL,hr,kc,gp,iY,fv,F,ci,q,iN,eJ,P,hK,bk,Z,kb,kI,dV,ja,gT,bu,kM,jY,ip,I,lw,ds,gK,gx,m,hY,ga,jt,gz,lu,fB,ik,bf,ce,bw,iI,gw,lp,eK,kQ,ca,cb,iF,eu,hg,gm,hI,fa,iM,ki,fU,hR,if,eD,gB,bP,dJ,dj,K,ld,cX,br,gH,ei,cW,hQ,dM,jz,jf,dZ,fg,ir,bN,gr,kz,jq,kC,T,eX,cE,jM,fZ,he,hG,fF,bE,v,cO,bx,hA,hh,kV,et,fq,bL,iw,e,dx,fJ,bl,bO,dn,ky".split(","),S(p)); define("eR","require,dm,jquery.mod,fd,dT,bD,gR,jk".split(","),function(a){function b(a,b){this.type=a;this.stack=b}function c(){}var e=a("dm"),d=a("jquery.mod"),f=a("fd"),g=a("dT"),k=a("bD");a("gR");a("jk");c.prototype.rwa=function(a,b,c,d){this.hR=[];this.Cr=this.Wx(a);this.Vq=m;if(this.Cr.np.tba()){k.$ya(a);this.Vq=this.a4(this.Cr,i.Kj);this.Sia(this.Vq,this.Cr,b,c,d);this.Vga(this.Cr);this.Tga(this.Cr,this.Vq);this.Wga(this.Vq,this.Cr);this.lha(this.Vq,this.Cr)}else this.Tk("Invalid root class", []);return this.hR.length==0};c.prototype.Ua=function(){return this.Cr.Hd};c.prototype.Wx=function(a,b){b=b||[];return e(a).isArray()?this.Doa(a,b):d.isPlainObject(a)&&a["class"]?this.Goa(a,b):d.isPlainObject(a)?this.Eoa(a,b):e(a).isFunction()?this.Foa(a,b):this.Hoa(a,b)};c.prototype.Doa=function(a,b){for(var c=[],d=0;d> ")+": "+a)};b.prototype.Oa=function(){return[]};b.prototype.zn=C();var i=f.extend(b,function(a,c,d,e,f,g){b.call(this,i.Kj,a);this.np=c;this.id=d;this.attributes= e;this.dv=f;this.scripts=g;this.Hd=r});i.prototype.Oa=function(){var a=this.np.Bba(),b=[],c=e(this.attributes).clone();if(a)for(var d=0;d0?d.push("v:"+l.JE+"."+l.NE):d.push("v:"+l.NE);t.log(d.join(" "));this.Hk=b;if(i.Iva()||[g.Uv,g.Up].indexOf(g.browser())>=0){this.jh=new f;if(c=this.Hk.get(TDV.PlayerSettings.BASE_DIR_URL)){c=i.ts(c);c[c.length-1]!="/"&&(c=c+"/")}else c=i.getDirectory(this.Hk.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL));this.gda=this.Hk.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS); k.Ewa(c,function(b){this.Gaa=b;this.doa(a)}.bind(this))}else window.alert(q("web-server-required"))}var c=a("dm"),e=a("lc");a("bY");var d=a("dT"),f=a("eR"),g=a("r"),k=a("dL"),i=a("jk"),n=a("bi"),j=a("fH"),l=a("jU"),q=a("lb"),o=a("jV"),t=a("fd");b.prototype.doa=function(a){a.trigger(new TDV.XF(e.zfa,{},[],m));c.defer(function(){if(!this.jh.rwa(this.Hk.get(TDV.PlayerSettings.SCRIPT_DATA),this.Hk.get(TDV.PlayerSettings.CONTAINER),this.Gaa,this.gda)){if(l.Dya!="false"){window.alert(this.F4());return}t.log(this.F4())}this.jha(a); this.Oga(this.Hk);this.Yga();n.bm(function(){this.Pra()}.bind(this))}.bind(this))};b.prototype.clear=function(){if(this.jh){this.jh.Vq.forEach(function(a){a.Hd.qea();a.np.uE().forEach(function(b){switch(b){case "VideoPlayer":a.Hd.stop();case "MapPlayer":case "PanoramaPlayer":case "PhotoAlbumPlayer":case "VideoPlayer":a.Hd.set("viewerArea",r);break;case "ZoomImage":a.Hd.set("image",r);break;case "Audio":a.Hd.stop();break;case "Effect":a.Hd.end();break;case "Media":a.Hd.Rwa()}})});j.xwa();this.jh.Ua().clear(); s={};this.Hk=this.jh=r}};b.prototype.Zua=function(a){return this.jh.Ua()[a]};b.prototype.Fba=function(a){if(a in s)return s[a].slice();var b=[];this.jh&&this.jh.Vq.forEach(function(d){var e=d.np.uE();c(e).contains(a)&&b.push(d.Hd)});s[a]=b;return b.slice()};var s={};b.prototype.Wr=function(a){var b=d.pn(a);b||h("Invalid className: "+a);s={};return b.Wr(this.jh.Ua(),this.Gaa,this.gda)};b.prototype.F4=function(){for(var a=this.jh.hR,b=["Errors parsing script file:"],c=0;ch)return!1}return!0}function eb(a,b){this.center=void 0!==a?a:new m;this.radius=void 0!==b?b:-1}function Wb(a,b){this.origin=void 0!==a?a:new m;this.direction=void 0!==b?b:new m(0,0,-1)}function Ua(a,b){this.normal=void 0!==a?a:new m(1,0,0);this.constant=void 0!==b?b:0}function wa(a,b,c){this.a=void 0!==a?a:new m;this.b=void 0!==b?b:new m;this.c=void 0!==c?c:new m}function D(a,b,c){return void 0===b&&void 0===c?this.set(a):this.setRGB(a,b,c)}function cg(a,b,c){0>c&&(c+=1);1< c&&--c;return c<1/6?a+6*(b-a)*c:.5>c?b:c<2/3?a+6*(b-a)*(2/3-c):a}function dg(a){return.04045>a?.0773993808*a:Math.pow(.9478672986*a+.0521327014,2.4)}function eg(a){return.0031308>a?12.92*a:1.055*Math.pow(a,.41666)-.055}function zc(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.normal=d&&d.isVector3?d:new m;this.vertexNormals=Array.isArray(d)?d:[];this.color=e&&e.isColor?e:new D;this.vertexColors=Array.isArray(e)?e:[];this.materialIndex=void 0!==f?f:0}function G(){Object.defineProperty(this,"id",{value:jj++}); this.uuid=K.generateUUID();this.name="";this.type="Material";this.fog=!0;this.blending=1;this.side=0;this.vertexColors=this.flatShading=!1;this.opacity=1;this.transparent=!1;this.blendSrc=204;this.blendDst=205;this.blendEquation=100;this.blendEquationAlpha=this.blendDstAlpha=this.blendSrcAlpha=null;this.depthFunc=3;this.depthWrite=this.depthTest=!0;this.stencilWriteMask=255;this.stencilFunc=519;this.stencilRef=0;this.stencilFuncMask=255;this.stencilZPass=this.stencilZFail=this.stencilFail=7680;this.stencilWrite= !1;this.clippingPlanes=null;this.clipShadows=this.clipIntersection=!1;this.shadowSide=null;this.colorWrite=!0;this.precision=null;this.polygonOffset=!1;this.polygonOffsetUnits=this.polygonOffsetFactor=0;this.dithering=!1;this.alphaTest=0;this.premultipliedAlpha=!1;this.toneMapped=this.visible=!0;this.userData={};this.version=0}function Oa(a){G.call(this);this.type="MeshBasicMaterial";this.color=new D(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity= 1;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphTargets=this.skinning=!1;this.setValues(a)}function H(a,b,c){if(Array.isArray(a))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="";this.array=a;this.itemSize=b;this.count=void 0!==a?a.length/b:0;this.normalized=!0===c;this.usage=35044;this.updateRange= {offset:0,count:-1};this.version=0}function yd(a,b,c){H.call(this,new Int8Array(a),b,c)}function zd(a,b,c){H.call(this,new Uint8Array(a),b,c)}function Ad(a,b,c){H.call(this,new Uint8ClampedArray(a),b,c)}function Bd(a,b,c){H.call(this,new Int16Array(a),b,c)}function Xb(a,b,c){H.call(this,new Uint16Array(a),b,c)}function Cd(a,b,c){H.call(this,new Int32Array(a),b,c)}function Yb(a,b,c){H.call(this,new Uint32Array(a),b,c)}function B(a,b,c){H.call(this,new Float32Array(a),b,c)}function Dd(a,b,c){H.call(this, new Float64Array(a),b,c)}function vh(){this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.uvsNeedUpdate=this.colorsNeedUpdate=this.normalsNeedUpdate=this.verticesNeedUpdate=!1}function wh(a){if(0===a.length)return-Infinity;for(var b=a[0],c=1,d=a.length;cb&&(b=a[c]);return b}function F(){Object.defineProperty(this,"id",{value:kj+= 2});this.uuid=K.generateUUID();this.name="";this.type="BufferGeometry";this.index=null;this.attributes={};this.morphAttributes={};this.morphTargetsRelative=!1;this.groups=[];this.boundingSphere=this.boundingBox=null;this.drawRange={start:0,count:Infinity};this.userData={}}function X(a,b){z.call(this);this.type="Mesh";this.geometry=void 0!==a?a:new F;this.material=void 0!==b?b:new Oa;this.updateMorphTargets()}function xh(a,b,c,d,e,f,g,h){if(null===(1===b.side?d.intersectTriangle(g,f,e,!0,h):d.intersectTriangle(e, f,g,2!==b.side,h)))return null;Ge.copy(h);Ge.applyMatrix4(a.matrixWorld);b=c.ray.origin.distanceTo(Ge);return bc.far?null:{distance:b,point:Ge.clone(),object:a}}function He(a,b,c,d,e,f,g,h,l,n,q,p){Cb.fromBufferAttribute(e,n);Db.fromBufferAttribute(e,q);Eb.fromBufferAttribute(e,p);e=a.morphTargetInfluences;if(b.morphTargets&&f&&e){Ie.set(0,0,0);Je.set(0,0,0);Ke.set(0,0,0);for(var v=0,t=f.length;vg;g++)a.setRenderTarget(c, g),a.clear(b,d,e);a.setRenderTarget(f)}}}function Zb(a,b,c){Number.isInteger(b)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),b=c);Ha.call(this,a,a,b)}function $b(a,b,c,d,e,f,g,h,l,n,q,p){W.call(this,null,f,g,h,l,n,d,e,q,p);this.image={data:a||null,width:b||1,height:c||1};this.magFilter=void 0!==l?l:1003;this.minFilter=void 0!==n?n:1003;this.flipY=this.generateMipmaps=!1;this.unpackAlignment=1;this.needsUpdate=!0}function Fc(a,b, c,d,e,f){this.planes=[void 0!==a?a:new Ua,void 0!==b?b:new Ua,void 0!==c?c:new Ua,void 0!==d?d:new Ua,void 0!==e?e:new Ua,void 0!==f?f:new Ua]}function yh(){function a(e,f){!1!==c&&(d(e,f),b.requestAnimationFrame(a))}var b=null,c=!1,d=null;return{start:function(){!0!==c&&null!==d&&(b.requestAnimationFrame(a),c=!0)},stop:function(){c=!1},setAnimationLoop:function(a){d=a},setContext:function(a){b=a}}}function mj(a,b){function c(b,c){var d=b.array,e=b.usage,f=a.createBuffer();a.bindBuffer(c,f);a.bufferData(c, d,e);b.onUploadCallback();c=5126;d instanceof Float32Array?c=5126:d instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):d instanceof Uint16Array?c=5123:d instanceof Int16Array?c=5122:d instanceof Uint32Array?c=5125:d instanceof Int32Array?c=5124:d instanceof Int8Array?c=5120:d instanceof Uint8Array&&(c=5121);return{buffer:f,type:c,bytesPerElement:d.BYTES_PER_ELEMENT,version:b.version}}var d=b.isWebGL2,e=new WeakMap;return{get:function(a){a.isInterleavedBufferAttribute&& (a=a.data);return e.get(a)},remove:function(b){b.isInterleavedBufferAttribute&&(b=b.data);var c=e.get(b);c&&(a.deleteBuffer(c.buffer),e.delete(b))},update:function(b,g){b.isInterleavedBufferAttribute&&(b=b.data);var f=e.get(b);if(void 0===f)e.set(b,c(b,g));else if(f.versionl;l++){if(p=d[l])if(q=p[0],p=p[1]){n&&e.setAttribute("morphTarget"+l,n[q]);f&&e.setAttribute("morphNormal"+l,f[q]);c[l]=p;h+=p;continue}c[l]=0}e=e.morphTargetsRelative?1:1-h;g.getUniforms().setValue(a, "morphTargetBaseInfluence",e);g.getUniforms().setValue(a,"morphTargetInfluences",c)}}}function xj(a,b,c,d){var e=new WeakMap;return{update:function(a){var f=d.render.frame,h=a.geometry,l=b.get(a,h);e.get(l)!==f&&(h.isGeometry&&l.updateFromObject(a),b.update(l),e.set(l,f));a.isInstancedMesh&&c.update(a.instanceMatrix,34962);return l},dispose:function(){e=new WeakMap}}}function qb(a,b,c,d,e,f,g,h,l,n){a=void 0!==a?a:[];W.call(this,a,void 0!==b?b:301,c,d,e,f,void 0!==g?g:1022,h,l,n);this.flipY=!1}function Gc(a, b,c,d){W.call(this,null);this.image={data:a||null,width:b||1,height:c||1,depth:d||1};this.minFilter=this.magFilter=1003;this.wrapR=1001;this.flipY=this.generateMipmaps=!1;this.needsUpdate=!0}function Hc(a,b,c,d){W.call(this,null);this.image={data:a||null,width:b||1,height:c||1,depth:d||1};this.minFilter=this.magFilter=1003;this.wrapR=1001;this.flipY=this.generateMipmaps=!1;this.needsUpdate=!0}function Ic(a,b,c){var d=a[0];if(0>=d||0");return a.replace(kg,jg)}function Oh(a,b,c,d){console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead.");return lg(a,b,c,d)}function lg(a,b,c,d){a="";for(b=parseInt(b);bd;d++)c.probe.push(new m);var e=new m,f=new M,g=new M;return{setup:function(d,l,n){for(var h=l=0,p=0,k=0;9>k;k++)c.probe[k].set(0,0,0);var t=k=0,r=0,u=0,m=0,E=0,x=0,Ea=0;n=n.matrixWorldInverse;d.sort(wk);for(var ka=0,U=d.length;kafa;fa++)c.probe[fa].addScaledVector(C.sh.coefficients[fa],O);else if(C.isDirectionalLight){O=a.get(C);O.color.copy(C.color).multiplyScalar(C.intensity);O.direction.setFromMatrixPosition(C.matrixWorld);e.setFromMatrixPosition(C.target.matrixWorld);O.direction.sub(e);O.direction.transformDirection(n);if(C.castShadow){var ja=C.shadow;w=b.get(C);w.shadowBias=ja.bias;w.shadowNormalOffset= ja.normalOffset;w.shadowRadius=ja.radius;w.shadowMapSize=ja.mapSize;c.directionalShadow[k]=w;c.directionalShadowMap[k]=fa;c.directionalShadowMatrix[k]=C.shadow.matrix;E++}c.directional[k]=O;k++}else C.isSpotLight?(ja=a.get(C),ja.position.setFromMatrixPosition(C.matrixWorld),ja.position.applyMatrix4(n),ja.color.copy(w).multiplyScalar(O),ja.distance=aa,ja.direction.setFromMatrixPosition(C.matrixWorld),e.setFromMatrixPosition(C.target.matrixWorld),ja.direction.sub(e),ja.direction.transformDirection(n), ja.coneCos=Math.cos(C.angle),ja.penumbraCos=Math.cos(C.angle*(1-C.penumbra)),ja.decay=C.decay,C.castShadow&&(O=C.shadow,w=b.get(C),w.shadowBias=O.bias,w.shadowNormalOffset=O.normalOffset,w.shadowRadius=O.radius,w.shadowMapSize=O.mapSize,c.spotShadow[r]=w,c.spotShadowMap[r]=fa,c.spotShadowMatrix[r]=C.shadow.matrix,Ea++),c.spot[r]=ja,r++):C.isRectAreaLight?(fa=a.get(C),fa.color.copy(w).multiplyScalar(O),fa.position.setFromMatrixPosition(C.matrixWorld),fa.position.applyMatrix4(n),g.identity(),f.copy(C.matrixWorld), f.premultiply(n),g.extractRotation(f),fa.halfWidth.set(.5*C.width,0,0),fa.halfHeight.set(0,.5*C.height,0),fa.halfWidth.applyMatrix4(g),fa.halfHeight.applyMatrix4(g),c.rectArea[u]=fa,u++):C.isPointLight?(O=a.get(C),O.position.setFromMatrixPosition(C.matrixWorld),O.position.applyMatrix4(n),O.color.copy(C.color).multiplyScalar(C.intensity),O.distance=C.distance,O.decay=C.decay,C.castShadow&&(ja=C.shadow,w=b.get(C),w.shadowBias=ja.bias,w.shadowNormalOffset=ja.normalOffset,w.shadowRadius=ja.radius,w.shadowMapSize= ja.mapSize,w.shadowCameraNear=ja.camera.near,w.shadowCameraFar=ja.camera.far,c.pointShadow[t]=w,c.pointShadowMap[t]=fa,c.pointShadowMatrix[t]=C.shadow.matrix,x++),c.point[t]=O,t++):C.isHemisphereLight&&(fa=a.get(C),fa.direction.setFromMatrixPosition(C.matrixWorld),fa.direction.transformDirection(n),fa.direction.normalize(),fa.skyColor.copy(C.color).multiplyScalar(O),fa.groundColor.copy(C.groundColor).multiplyScalar(O),c.hemi[m]=fa,m++)}c.ambient[0]=l;c.ambient[1]=h;c.ambient[2]=p;d=c.hash;if(d.directionalLength!== k||d.pointLength!==t||d.spotLength!==r||d.rectAreaLength!==u||d.hemiLength!==m||d.numDirectionalShadows!==E||d.numPointShadows!==x||d.numSpotShadows!==Ea)c.directional.length=k,c.spot.length=r,c.rectArea.length=u,c.point.length=t,c.hemi.length=m,c.directionalShadow.length=E,c.directionalShadowMap.length=E,c.pointShadow.length=x,c.pointShadowMap.length=x,c.spotShadow.length=Ea,c.spotShadowMap.length=Ea,c.directionalShadowMatrix.length=E,c.pointShadowMatrix.length=x,c.spotShadowMatrix.length=Ea,d.directionalLength= k,d.pointLength=t,d.spotLength=r,d.rectAreaLength=u,d.hemiLength=m,d.numDirectionalShadows=E,d.numPointShadows=x,d.numSpotShadows=Ea,c.version=yk++},state:c}}function Uh(){var a=new xk,b=[],c=[];return{init:function(){b.length=0;c.length=0},state:{lightsArray:b,shadowsArray:c,lights:a},setupLights:function(d){a.setup(b,c,d)},pushLight:function(a){b.push(a)},pushShadow:function(a){c.push(a)}}}function zk(){function a(c){c=c.target;c.removeEventListener("dispose",a);b.delete(c)}var b=new WeakMap;return{get:function(c, d){if(!1===b.has(c)){var e=new Uh;b.set(c,new WeakMap);b.get(c).set(d,e);c.addEventListener("dispose",a)}else!1===b.get(c).has(d)?(e=new Uh,b.get(c).set(d,e)):e=b.get(c).get(d);return e},dispose:function(){b=new WeakMap}}}function Gb(a){G.call(this);this.type="MeshDepthMaterial";this.depthPacking=3200;this.morphTargets=this.skinning=!1;this.displacementMap=this.alphaMap=this.map=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=!1;this.wireframeLinewidth=1;this.fog=!1;this.setValues(a)} function Hb(a){G.call(this);this.type="MeshDistanceMaterial";this.referencePosition=new m;this.nearDistance=1;this.farDistance=1E3;this.morphTargets=this.skinning=!1;this.displacementMap=this.alphaMap=this.map=null;this.displacementScale=1;this.displacementBias=0;this.fog=!1;this.setValues(a)}function Vh(a,b,c){function d(a,b,c){c=a<<0|b<<1|c<<2;var d=k[c];void 0===d&&(d=new Gb({depthPacking:3201,morphTargets:a,skinning:b}),k[c]=d);return d}function e(a,b,c){c=a<<0|b<<1|c<<2;var d=v[c];void 0===d&& (d=new Hb({morphTargets:a,skinning:b}),v[c]=d);return d}function f(b,c,f,g,h,l,n){var q=d,k=b.customDepthMaterial;!0===g.isPointLight&&(q=e,k=b.customDistanceMaterial);void 0===k?(k=!1,!0===f.morphTargets&&(k=c.morphAttributes&&c.morphAttributes.position&&0\nvoid main() {\n float mean = 0.0;\n float squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n for ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n #ifdef HORIZONAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean * HALF_SAMPLE_RATE;\n squared_mean = squared_mean * HALF_SAMPLE_RATE;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}), m=u.clone();m.defines.HORIZONAL_PASS=1;var E=new F;E.setAttribute("position",new H(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var x=new X(E,u),Ea=this;this.enabled=!1;this.autoUpdate=!0;this.needsUpdate=!1;this.type=1;this.render=function(d,e,f){if(!1!==Ea.enabled&&(!1!==Ea.autoUpdate||!1!==Ea.needsUpdate)&&0!==d.length){var k=a.getRenderTarget(),p=a.getActiveCubeFace(),v=a.getActiveMipmapLevel(),r=a.state;r.setBlending(0);r.buffers.color.setClear(1,1,1,1);r.buffers.depth.setTest(!0);r.setScissorTest(!1); for(var t=0,A=d.length;tc||l.y>c)l.x>c&&(n.x=Math.floor(c/w.x),l.x=n.x*w.x,C.mapSize.x=n.x),l.y>c&&(n.y=Math.floor(c/w.y),l.y=n.y*w.y,C.mapSize.y=n.y);null!==C.map||C.isPointLightShadow||3!==this.type||(w={minFilter:1006,magFilter:1006,format:1023},C.map=new Ha(l.x,l.y,w),C.map.texture.name=E.name+".shadowMap", C.mapPass=new Ha(l.x,l.y,w),C.camera.updateProjectionMatrix());null===C.map&&(C.map=new Ha(l.x,l.y,{minFilter:1003,magFilter:1003,format:1023}),C.map.texture.name=E.name+".shadowMap",C.camera.updateProjectionMatrix());a.setRenderTarget(C.map);a.clear();w=C.getViewportCount();for(var U=0;Ud||a.height>d)e=d/Math.max(a.width,a.height);if(1>e||!0===b){if("undefined"!==typeof HTMLImageElement&&a instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&a instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&a instanceof ImageBitmap)return d=b?K.floorPowerOfTwo:Math.floor,b=d(e*a.width),e=d(e*a.height),void 0===F&&(F=h(b,e)),c=c?h(b,e):F,c.width=b,c.height=e, c.getContext("2d").drawImage(a,0,0,b,e),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+a.width+"x"+a.height+") to ("+b+"x"+e+")."),c;"data"in a&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+a.width+"x"+a.height+").")}return a}function n(a){return K.isPowerOfTwo(a.width)&&K.isPowerOfTwo(a.height)}function q(a,b){return a.generateMipmaps&&b&&1003!==a.minFilter&&1006!==a.minFilter}function k(b,c,e,f){a.generateMipmap(b);d.get(c).__maxMipLevel=Math.log(Math.max(e, f))*Math.LOG2E}function v(c,d,e){if(!1===aa)return d;if(null!==c){if(void 0!==a[c])return a[c];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+c+"'")}c=d;6403===d&&(5126===e&&(c=33326),5131===e&&(c=33325),5121===e&&(c=33321));6407===d&&(5126===e&&(c=34837),5131===e&&(c=34843),5121===e&&(c=32849));6408===d&&(5126===e&&(c=34836),5131===e&&(c=34842),5121===e&&(c=32856));33325!==c&&33326!==c&&34842!==c&&34836!==c||b.get("EXT_color_buffer_float");return c}function t(a){return 1003=== a||1004===a||1005===a?9728:9729}function r(b){b=b.target;b.removeEventListener("dispose",r);var c=d.get(b);void 0!==c.__webglInit&&(a.deleteTexture(c.__webglTexture),d.remove(b));b.isVideoTexture&&D.delete(b);g.memory.textures--}function u(b){b=b.target;b.removeEventListener("dispose",u);var c=d.get(b),e=d.get(b.texture);if(b){void 0!==e.__webglTexture&&a.deleteTexture(e.__webglTexture);b.depthTexture&&b.depthTexture.dispose();if(b.isWebGLCubeRenderTarget)for(e=0;6>e;e++)a.deleteFramebuffer(c.__webglFramebuffer[e]), c.__webglDepthbuffer&&a.deleteRenderbuffer(c.__webglDepthbuffer[e]);else a.deleteFramebuffer(c.__webglFramebuffer),c.__webglDepthbuffer&&a.deleteRenderbuffer(c.__webglDepthbuffer),c.__webglMultisampledFramebuffer&&a.deleteFramebuffer(c.__webglMultisampledFramebuffer),c.__webglColorRenderbuffer&&a.deleteRenderbuffer(c.__webglColorRenderbuffer),c.__webglDepthRenderbuffer&&a.deleteRenderbuffer(c.__webglDepthRenderbuffer);d.remove(b.texture);d.remove(b)}g.memory.textures--}function m(a,b){var e=d.get(a); if(a.isVideoTexture){var f=g.render.frame;D.get(a)!==f&&(D.set(a,f),a.update())}if(0r;r++)e[r]=h||p?p?b.image[r].image:b.image[r]:l(b.image[r],!1,!0,ja);r=e[0];var t=n(r)||aa,m=f.convert(b.format),u=f.convert(b.type),A=v(b.internalFormat,m,u);w(34067,b,t);if(h){for(p=0;6>p;p++){var x=e[p].mipmaps;for(h=0;hh;h++)if(p)for(c.texImage2D(34069+h,0,A,e[h].width,e[h].height,0,m,u,e[h].data),R=0;R=fa&&console.warn("THREE.WebGLTextures: Trying to use "+a+" texture units while this GPU supports only "+fa);H+=1;return a};this.resetTextureUnits=function(){H=0};this.setTexture2D=m;this.setTexture2DArray=function(a,b){var e=d.get(a);0p;p++)e.__webglFramebuffer[p]=a.createFramebuffer();else if(e.__webglFramebuffer=a.createFramebuffer(),p)if(aa){e.__webglMultisampledFramebuffer=a.createFramebuffer();e.__webglColorRenderbuffer=a.createRenderbuffer();a.bindRenderbuffer(36161,e.__webglColorRenderbuffer); p=f.convert(b.texture.format);var t=f.convert(b.texture.type);p=v(b.texture.internalFormat,p,t);t=O(b);a.renderbufferStorageMultisample(36161,t,p,b.width,b.height);a.bindFramebuffer(36160,e.__webglMultisampledFramebuffer);a.framebufferRenderbuffer(36160,36064,36161,e.__webglColorRenderbuffer);a.bindRenderbuffer(36161,null);b.depthBuffer&&(e.__webglDepthRenderbuffer=a.createRenderbuffer(),z(e.__webglDepthRenderbuffer,b,!0));a.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2."); if(l){c.bindTexture(34067,h.__webglTexture);w(34067,b.texture,r);for(h=0;6>h;h++)C(e.__webglFramebuffer[h],b,36064,34069+h);q(b.texture,r)&&k(34067,b.texture,b.width,b.height);c.bindTexture(34067,null)}else c.bindTexture(3553,h.__webglTexture),w(3553,b.texture,r),C(e.__webglFramebuffer,b,36064,3553),q(b.texture,r)&&k(3553,b.texture,b.width,b.height),c.bindTexture(3553,null);if(b.depthBuffer){e=d.get(b);r=!0===b.isWebGLCubeRenderTarget;if(b.depthTexture){if(r)throw Error("target.depthTexture not supported in Cube render targets"); if(b&&b.isWebGLCubeRenderTarget)throw Error("Depth Texture with cube render targets is not supported");a.bindFramebuffer(36160,e.__webglFramebuffer);if(!b.depthTexture||!b.depthTexture.isDepthTexture)throw Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");d.get(b.depthTexture).__webglTexture&&b.depthTexture.image.width===b.width&&b.depthTexture.image.height===b.height||(b.depthTexture.image.width=b.width,b.depthTexture.image.height=b.height,b.depthTexture.needsUpdate=!0); m(b.depthTexture,0);e=d.get(b.depthTexture).__webglTexture;if(1026===b.depthTexture.format)a.framebufferTexture2D(36160,36096,3553,e,0);else if(1027===b.depthTexture.format)a.framebufferTexture2D(36160,33306,3553,e,0);else throw Error("Unknown depthTexture format");}else if(r)for(e.__webglDepthbuffer=[],r=0;6>r;r++)a.bindFramebuffer(36160,e.__webglFramebuffer[r]),e.__webglDepthbuffer[r]=a.createRenderbuffer(),z(e.__webglDepthbuffer[r],b,!1);else a.bindFramebuffer(36160,e.__webglFramebuffer),e.__webglDepthbuffer= a.createRenderbuffer(),z(e.__webglDepthbuffer,b,!1);a.bindFramebuffer(36160,null)}};this.updateRenderTargetMipmap=function(a){var b=a.texture,e=n(a)||aa;if(q(b,e)){e=a.isWebGLCubeRenderTarget?34067:3553;var f=d.get(b).__webglTexture;c.bindTexture(e,f);k(e,b,a.width,a.height);c.bindTexture(e,null)}};this.updateMultisampleRenderTarget=function(b){if(b.isWebGLMultisampleRenderTarget)if(aa){var c=d.get(b);a.bindFramebuffer(36008,c.__webglMultisampledFramebuffer);a.bindFramebuffer(36009,c.__webglFramebuffer); var e=b.width,f=b.height,g=16384;b.depthBuffer&&(g|=256);b.stencilBuffer&&(g|=1024);a.blitFramebuffer(0,0,e,f,0,0,e,f,g,9728);a.bindFramebuffer(36160,c.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")};this.safeSetTexture2D=function(a,b){a&&a.isWebGLRenderTarget&&(!1===M&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),M=!0),a=a.texture); m(a,b)};this.safeSetTextureCube=function(a,b){a&&a.isWebGLCubeRenderTarget&&(!1===N&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),N=!0),a=a.texture);a&&a.isCubeTexture||Array.isArray(a.image)&&6===a.image.length?E(a,b):x(a,b)}}function Wh(a,b,c){var d=c.isWebGL2;return{convert:function(a){if(1009===a)return 5121;if(1017===a)return 32819;if(1018===a)return 32820;if(1019===a)return 33635;if(1010===a)return 5120; if(1011===a)return 5122;if(1012===a)return 5123;if(1013===a)return 5124;if(1014===a)return 5125;if(1015===a)return 5126;if(1016===a){if(d)return 5131;var c=b.get("OES_texture_half_float");return null!==c?c.HALF_FLOAT_OES:null}if(1021===a)return 6406;if(1022===a)return 6407;if(1023===a)return 6408;if(1024===a)return 6409;if(1025===a)return 6410;if(1026===a)return 6402;if(1027===a)return 34041;if(1028===a)return 6403;if(1029===a)return 36244;if(1030===a)return 33319;if(1031===a)return 33320;if(1032=== a)return 36248;if(1033===a)return 36249;if(33776===a||33777===a||33778===a||33779===a)if(c=b.get("WEBGL_compressed_texture_s3tc"),null!==c){if(33776===a)return c.COMPRESSED_RGB_S3TC_DXT1_EXT;if(33777===a)return c.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(33778===a)return c.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(33779===a)return c.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(35840===a||35841===a||35842===a||35843===a)if(c=b.get("WEBGL_compressed_texture_pvrtc"),null!==c){if(35840===a)return c.COMPRESSED_RGB_PVRTC_4BPPV1_IMG; if(35841===a)return c.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(35842===a)return c.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(35843===a)return c.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(36196===a)return c=b.get("WEBGL_compressed_texture_etc1"),null!==c?c.COMPRESSED_RGB_ETC1_WEBGL:null;if(37492===a||37496===a)if(c=b.get("WEBGL_compressed_texture_etc"),null!==c){if(37492===a)return c.COMPRESSED_RGB8_ETC2;if(37496===a)return c.COMPRESSED_RGBA8_ETC2_EAC}if(37808===a||37809===a||37810===a||37811===a||37812=== a||37813===a||37814===a||37815===a||37816===a||37817===a||37818===a||37819===a||37820===a||37821===a||37840===a||37841===a||37842===a||37843===a||37844===a||37845===a||37846===a||37847===a||37848===a||37849===a||37850===a||37851===a||37852===a||37853===a)return c=b.get("WEBGL_compressed_texture_astc"),null!==c?a:null;if(36492===a)return c=b.get("EXT_texture_compression_bptc"),null!==c?a:null;if(1020===a){if(d)return 34042;c=b.get("WEBGL_depth_texture");return null!==c?c.UNSIGNED_INT_24_8_WEBGL:null}}}} function Ne(a){P.call(this);this.cameras=a||[]}function Jc(){z.call(this);this.type="Group"}function Oe(){this._grip=this._targetRay=null}function Xh(a,b){function c(a){var b=r.get(a.inputSource);b&&b.dispatchEvent({type:a.type})}function d(){r.forEach(function(a,b){a.disconnect(b)});r.clear();a.setFramebuffer(null);a.setRenderTarget(a.getRenderTarget());O.stop();h.isPresenting=!1;h.dispatchEvent({type:"sessionend"})}function e(a){q=a;O.setContext(l);O.start();h.isPresenting=!0;h.dispatchEvent({type:"sessionstart"})} function f(a){for(var b=l.inputSources,c=0;cf.matrixWorld.determinant(),l=t(a,c,e,f);V.setMaterial(e,h);var n=!1;if(b!==d.id||Me!==l.id||S!==(!0===e.wireframe))b=d.id,Me=l.id,S=!0===e.wireframe,n=!0;if(e.morphTargets||e.morphNormals)za.update(f,d,e,l),n=!0;!0===f.isInstancedMesh&&(n=!0);a=d.index;c=d.attributes.position;if(null===a){if(void 0===c||0===c.count)return}else if(0===a.count)return; var q=1;!0===e.wireframe&&(a=wa.getWireframeAttribute(d),q=2);h=Ba;if(null!==a){var k=na.get(a);h=Da;h.setIndex(k)}if(n){if(!1!==Ga.isWebGL2||!f.isInstancedMesh&&!d.isInstancedBufferGeometry||null!==sa.get("ANGLE_instanced_arrays")){V.initAttributes();n=d.attributes;l=l.getAttributes();var p=e.defaultAttributeValues;for(U in l){var r=l[U];if(0<=r){var v=n[U];if(void 0!==v){var u=v.normalized,m=v.itemSize,A=na.get(v);if(void 0!==A){var x=A.buffer,E=A.type;A=A.bytesPerElement;if(v.isInterleavedBufferAttribute){var C= v.data,w=C.stride;v=v.offset;C&&C.isInstancedInterleavedBuffer?(V.enableAttributeAndDivisor(r,C.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=C.meshPerAttribute*C.count)):V.enableAttribute(r);I.bindBuffer(34962,x);V.vertexAttribPointer(r,m,E,u,w*A,v*A)}else v.isInstancedBufferAttribute?(V.enableAttributeAndDivisor(r,v.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=v.meshPerAttribute*v.count)):V.enableAttribute(r),I.bindBuffer(34962,x),V.vertexAttribPointer(r, m,E,u,0,0)}}else if("instanceMatrix"===U)m=na.get(f.instanceMatrix),void 0!==m&&(u=m.buffer,m=m.type,V.enableAttributeAndDivisor(r+0,1),V.enableAttributeAndDivisor(r+1,1),V.enableAttributeAndDivisor(r+2,1),V.enableAttributeAndDivisor(r+3,1),I.bindBuffer(34962,u),I.vertexAttribPointer(r+0,4,m,!1,64,0),I.vertexAttribPointer(r+1,4,m,!1,64,16),I.vertexAttribPointer(r+2,4,m,!1,64,32),I.vertexAttribPointer(r+3,4,m,!1,64,48));else if(void 0!==p&&(u=p[U],void 0!==u))switch(u.length){case 2:I.vertexAttrib2fv(r, u);break;case 3:I.vertexAttrib3fv(r,u);break;case 4:I.vertexAttrib4fv(r,u);break;default:I.vertexAttrib1fv(r,u)}}}V.disableUnusedAttributes()}null!==a&&I.bindBuffer(34963,k.buffer)}var U=d.drawRange.start*q;n=null!==g?g.start*q:0;k=Math.max(U,n);g=Math.max(0,Math.min(null!==a?a.count:c.count,U+d.drawRange.count*q,n+(null!==g?g.count*q:Infinity))-1-k+1);0!==g&&(f.isMesh?!0===e.wireframe?(V.setLineWidth(e.wireframeLinewidth*(null===G?da:1)),h.setMode(1)):h.setMode(4):f.isLine?(e=e.linewidth,void 0=== e&&(e=1),V.setLineWidth(e*(null===G?da:1)),f.isLineSegments?h.setMode(1):f.isLineLoop?h.setMode(2):h.setMode(3)):f.isPoints?h.setMode(0):f.isSprite&&h.setMode(4),f.isInstancedMesh?h.renderInstances(d,k,g,f.count):d.isInstancedBufferGeometry?h.renderInstances(d,k,g,Math.min(d.instanceCount,d._maxInstanceCount)):h.render(k,g))};this.compile=function(a,b){aa=va.get(a,b);aa.init();a.traverse(function(a){a.isLight&&(aa.pushLight(a),a.castShadow&&aa.pushShadow(a))});aa.setupLights(b);var c=new WeakMap; a.traverse(function(b){var d=b.material;if(d)if(Array.isArray(d))for(var e=0;ee.far||f.push({distance:a,distanceToRay:Math.sqrt(h),point:c,index:b,face:null,object:g}))}function sg(a,b,c,d,e,f,g,h,l){W.call(this,a,b,c,d,e,f,g,h,l);this.format=void 0!==g?g:1022;this.minFilter=void 0!==f?f:1006;this.magFilter=void 0!==e?e:1006;this.generateMipmaps=!1}function Nc(a,b,c,d,e,f,g,h,l,n,q,k){W.call(this,null,f,g,h,l,n,d,e,q, k);this.image={width:b,height:c};this.mipmaps=a;this.generateMipmaps=this.flipY=!1}function Qd(a,b,c,d,e,f,g,h,l){W.call(this,a,b,c,d,e,f,g,h,l);this.needsUpdate=!0}function Rd(a,b,c,d,e,f,g,h,l,n){n=void 0!==n?n:1026;if(1026!==n&&1027!==n)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===c&&1026===n&&(c=1012);void 0===c&&1027===n&&(c=1020);W.call(this,null,d,e,f,g,h,n,c,l);this.image={width:a,height:b};this.magFilter=void 0!==g?g:1003;this.minFilter= void 0!==h?h:1003;this.generateMipmaps=this.flipY=!1}function Oc(a){F.call(this);this.type="WireframeGeometry";var b=[],c=[0,0],d={},e=["a","b","c"];if(a&&a.isGeometry){for(var f=a.faces,g=0,h=f.length;gn;n++){var q=l[e[n]],k=l[e[(n+1)%3]];c[0]=Math.min(q,k);c[1]=Math.max(q,k);q=c[0]+","+c[1];void 0===d[q]&&(d[q]={index1:c[0],index2:c[1]})}for(var v in d)c=d[v],f=a.vertices[c.index1],b.push(f.x,f.y,f.z),f=a.vertices[c.index2],b.push(f.x,f.y,f.z)}else if(a&&a.isBufferGeometry)if(v= new m,null!==a.index){e=a.attributes.position;g=a.index;a=a.groups;0===a.length&&(a=[{start:0,count:g.count,materialIndex:0}]);h=0;for(l=a.length;hk;k++){var t=g.getX(n+k),r=g.getX(n+(k+1)%3);c[0]=Math.min(t,r);c[1]=Math.max(t,r);t=c[0]+","+c[1];void 0===d[t]&&(d[t]={index1:c[0],index2:c[1]})}for(f in d)c=d[f],v.fromBufferAttribute(e,c.index1),b.push(v.x,v.y,v.z),v.fromBufferAttribute(e,c.index2),b.push(v.x,v.y,v.z)}else for(d=a.attributes.position, c=0,f=d.count/3;ca;a++)v.fromBufferAttribute(d,3*c+a),b.push(v.x,v.y,v.z),v.fromBufferAttribute(d,3*c+(a+1)%3),b.push(v.x,v.y,v.z);this.setAttribute("position",new B(b,3))}function Sd(a,b,c){L.call(this);this.type="ParametricGeometry";this.parameters={func:a,slices:b,stacks:c};this.fromBufferGeometry(new Pc(a,b,c));this.mergeVertices()}function Pc(a,b,c){F.call(this);this.type="ParametricBufferGeometry";this.parameters={func:a,slices:b,stacks:c};var d=[],e=[],f=[],g=[],h=new m,l= new m,n=new m,q=new m,k=new m;3>a.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");for(var v=b+1,t=0;t<=c;t++)for(var r=t/c,u=0;u<=b;u++){var A=u/b;a(A,r,l);e.push(l.x,l.y,l.z);0<=A-1E-5?(a(A-1E-5,r,n),q.subVectors(l,n)):(a(A+1E-5,r,n),q.subVectors(n,l));0<=r-1E-5?(a(A,r-1E-5,n),k.subVectors(l,n)):(a(A,r+1E-5,n),k.subVectors(n,l));h.crossVectors(q,k).normalize();f.push(h.x,h.y,h.z);g.push(A,r)}for(a=0;ad&& 1===a.x&&(l[b]=a.x-1);0===c.x&&0===c.z&&(l[b]=d/2/Math.PI+.5)}F.call(this);this.type="PolyhedronBufferGeometry";this.parameters={vertices:a,indices:b,radius:c,detail:d};c=c||1;d=d||0;var h=[],l=[];(function(a){for(var c=new m,d=new m,g=new m,h=0;he&&(.2>b&&(l[a+0]+=1),.2>c&&(l[a+2]+=1),.2>d&&(l[a+4]+=1))})();this.setAttribute("position",new B(h,3)); this.setAttribute("normal",new B(h.slice(),3));this.setAttribute("uv",new B(l,2));0===d?this.computeVertexNormals():this.normalizeNormals()}function Ud(a,b){L.call(this);this.type="TetrahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Qc(a,b));this.mergeVertices()}function Qc(a,b){Fa.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],a,b);this.type="TetrahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Vd(a,b){L.call(this);this.type= "OctahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new bc(a,b));this.mergeVertices()}function bc(a,b){Fa.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],a,b);this.type="OctahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Wd(a,b){L.call(this);this.type="IcosahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Rc(a,b));this.mergeVertices()}function Rc(a,b){var c=(1+Math.sqrt(5))/ 2;Fa.call(this,[-1,c,0,1,c,0,-1,-c,0,1,-c,0,0,-1,c,0,1,c,0,-1,-c,0,1,-c,c,0,-1,c,0,1,-c,0,-1,-c,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],a,b);this.type="IcosahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Xd(a,b){L.call(this);this.type="DodecahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Sc(a,b));this.mergeVertices()}function Sc(a,b){var c=(1+Math.sqrt(5))/ 2,d=1/c;Fa.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-d,-c,0,-d,c,0,d,-c,0,d,c,-d,-c,0,-d,c,0,d,-c,0,d,c,0,-c,0,-d,c,0,-d,-c,0,d,c,0,d],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],a,b);this.type="DodecahedronBufferGeometry";this.parameters={radius:a, detail:b}}function Yd(a,b,c,d,e,f){L.call(this);this.type="TubeGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,closed:e};void 0!==f&&console.warn("THREE.TubeGeometry: taper has been removed.");a=new cc(a,b,c,d,e);this.tangents=a.tangents;this.normals=a.normals;this.binormals=a.binormals;this.fromBufferGeometry(a);this.mergeVertices()}function cc(a,b,c,d,e){function f(e){q=a.getPointAt(e/b,q);var f=g.normals[e];e=g.binormals[e];for(var n=0;n<=d;n++){var p=n/d*Math.PI* 2,r=Math.sin(p);p=-Math.cos(p);l.x=p*f.x+r*e.x;l.y=p*f.y+r*e.y;l.z=p*f.z+r*e.z;l.normalize();v.push(l.x,l.y,l.z);h.x=q.x+c*l.x;h.y=q.y+c*l.y;h.z=q.z+c*l.z;k.push(h.x,h.y,h.z)}}F.call(this);this.type="TubeBufferGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,closed:e};b=b||64;c=c||1;d=d||8;e=e||!1;var g=a.computeFrenetFrames(b,e);this.tangents=g.tangents;this.normals=g.normals;this.binormals=g.binormals;var h=new m,l=new m,n=new w,q=new m,k=[],v=[],t=[],r=[];(function(){for(var a= 0;a=b;e-=d)f=ai(e,a[e],a[e+1],f);f&&We(f,f.next)&&(ae(f),f=f.next);return f}function Lb(a,b){if(!a)return a; b||(b=a);do{var c=!1;if(a.steiner||!We(a,a.next)&&0!==ma(a.prev,a,a.next))a=a.next;else{ae(a);a=b=a.prev;if(a===a.next)break;c=!0}}while(c||a!==b);return b}function be(a,b,c,d,e,f,g){if(a){if(!g&&f){var h=a,l=h;do null===l.z&&(l.z=tg(l.x,l.y,d,e,f)),l.prevZ=l.prev,l=l.nextZ=l.next;while(l!==h);l.prevZ.nextZ=null;l.prevZ=null;h=l;var n,k,p,v,t=1;do{l=h;var r=h=null;for(k=0;l;){k++;var m=l;for(n=p=0;nt!==r.next.y>t&&r.next.y!== r.y&&p<(r.next.x-r.x)*(t-r.y)/(r.next.y-r.y)+r.x&&(k=!k),r=r.next;while(r!==l);r=k}r=r&&(ma(l.prev,l,m.prev)||ma(l,m.prev,m))||We(l,m)&&0a.x?e.x>f.x?e.x:f.x:a.x>f.x?a.x:f.x,h=e.y>a.y?e.y>f.y?e.y:f.y:a.y>f.y?a.y:f.y,l=tg(e.x=l&&d&&d.z<=b;){if(c!==a.prev&&c!==a.next&&Vc(e.x,e.y,a.x,a.y,f.x,f.y,c.x,c.y)&&0<=ma(c.prev,c,c.next))return!1;c=c.prevZ;if(d!==a.prev&&d!==a.next&&Vc(e.x,e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ma(d.prev,d,d.next))return!1;d=d.nextZ}for(;c&&c.z>=l;){if(c!==a.prev&&c!==a.next&&Vc(e.x,e.y,a.x,a.y,f.x,f.y,c.x,c.y)&&0<=ma(c.prev,c,c.next))return!1;c=c.prevZ}for(;d&&d.z<=b;){if(d!==a.prev&&d!==a.next&&Vc(e.x, e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ma(d.prev,d,d.next))return!1;d=d.nextZ}return!0}function Ek(a,b){return a.x-b.x}function Fk(a,b){var c=b,d=a.x,e=a.y,f=-Infinity;do{if(e<=c.y&&e>=c.next.y&&c.next.y!==c.y){var g=c.x+(e-c.y)*(c.next.x-c.x)/(c.next.y-c.y);if(g<=d&&g>f){f=g;if(g===d){if(e===c.y)return c;if(e===c.next.y)return c.next}var h=c.x=c.x&&c.x>=g&&d!==c.x&&Vc(eh.x)&&(p=c.x===h.x)){p=h;var v=c;p=0>ma(p.prev,p,v.prev)&&0>ma(v.next,p,p.next)}p&&(h=c,n=k)}c=c.next}while(c!==b);return h}function tg(a,b,c,d,e){a=32767*(a-c)*e;b=32767*(b-d)*e;a=(a|a<<8)&16711935;a=(a|a<<4)&252645135;a=(a|a<<2)&858993459;b=(b|b<<8)&16711935;b=(b|b<<4)&252645135;b=(b|b<<2)&858993459;return(a|a<<1)&1431655765|((b|b<<1)&1431655765)<<1}function Gk(a){var b=a,c=a;do{if(b.x=Math.min(a.x,c.x)&&b.y<=Math.max(a.y,c.y)&&b.y>=Math.min(a.y,c.y)}function Xe(a){return 0a?-1:0}function ce(a,b){return 0>ma(a.prev,a,a.next)?0<=ma(a,b,a.next)&&0<=ma(a,a.prev,b):0>ma(a,b,a.prev)||0>ma(a,a.next,b)}function ci(a,b){var c=new ug(a.i,a.x,a.y),d=new ug(b.i,b.x,b.y),e=a.next,f=b.prev;a.next=b;b.prev=a;c.next=e;e.prev=c;d.next=c;c.prev=d;f.next=d;d.prev=f;return d}function ai(a,b,c,d){a=new ug(a,b,c);d?(a.next=d.next,a.prev=d,d.next.prev=a,d.next=a):(a.prev=a,a.next=a); return a}function ae(a){a.next.prev=a.prev;a.prev.next=a.next;a.prevZ&&(a.prevZ.nextZ=a.nextZ);a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function ug(a,b,c){this.i=a;this.x=b;this.y=c;this.nextZ=this.prevZ=this.z=this.next=this.prev=null;this.steiner=!1}function di(a){var b=a.length;2Number.EPSILON){var l=Math.sqrt(h),n=Math.sqrt(f*f+g*g);h=b.x-e/l;b=b.y+d/l;g=((c.x-g/n-h)*g-(c.y+f/n-b)*f)/(d*g-e*f);f=h+d*g-a.x;d=b+e*g-a.y;e=f*f+d*d;if(2>=e)return new w(f,d);e=Math.sqrt(e/2)}else a=!1,d>Number.EPSILON? f>Number.EPSILON&&(a=!0):d<-Number.EPSILON?f<-Number.EPSILON&&(a=!0):Math.sign(e)===Math.sign(g)&&(a=!0),a?(f=-e,e=Math.sqrt(h)):(f=d,d=e,e=Math.sqrt(h/2));return new w(f/e,d/e)}function h(a,b){for(var c=a.length;0<=--c;){var f=c,g=c-1;0>g&&(g=a.length-1);for(var h=0,l=x+2*O;hk;k++){var p=n[f[k]];var m=n[f[(k+1)%3]];d[0]=Math.min(p,m);d[1]=Math.max(p,m);p=d[0]+","+d[1];void 0===e[p]?e[p]={index1:d[0],index2:d[1],face1:h,face2:void 0}:e[p].face2=h}for(p in e)if(d=e[p],void 0===d.face2||g[d.face1].normal.dot(g[d.face2].normal)<=b)f=a[d.index1],c.push(f.x,f.y,f.z),f=a[d.index2],c.push(f.x,f.y,f.z);this.setAttribute("position",new B(c,3))}function hc(a, b,c,d,e,f,g,h){L.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};this.fromBufferGeometry(new sb(a,b,c,d,e,f,g,h));this.mergeVertices()}function sb(a,b,c,d,e,f,g,h){function l(c){var e,f=new w,l=new m,q=0,u=!0===c?a:b,x=!0===c?1:-1;var z=r;for(e=1;e<=d;e++)p.push(0,A*x,0),v.push(0,x,0),t.push(.5,.5),r++;e=r;for(var B=0;B<=d;B++){var y=B/d*h+g,D=Math.cos(y);y=Math.sin(y);l.x=u*y;l.y= A*x;l.z=u*D;p.push(l.x,l.y,l.z);v.push(0,x,0);f.x=.5*D+.5;f.y=.5*y*x+.5;t.push(f.x,f.y);r++}for(f=0;fthis.duration&&this.resetDuration()}function Ik(a){switch(a.toLowerCase()){case "scalar":case "double":case "float":case "number":case "integer":return ad;case "vector":case "vector2":case "vector3":case "vector4":return bd;case "color":return bf;case "quaternion":return le;case "bool":case "boolean":return af;case "string":return df}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+a);}function Jk(a){if(void 0===a.type)throw Error("THREE.KeyframeTrack: track type undefined, can not parse"); var b=Ik(a.type);if(void 0===a.times){var c=[],d=[];Z.flattenJSON(a.keys,c,d,"value");a.times=c;a.values=d}return void 0!==b.parse?b.parse(a):new b(a.name,a.times,a.values,a.interpolation)}function vg(a,b,c){var d=this,e=!1,f=0,g=0,h=void 0,l=[];this.onStart=void 0;this.onLoad=a;this.onProgress=b;this.onError=c;this.itemStart=function(a){g++;if(!1===e&&void 0!==d.onStart)d.onStart(a,f,g);e=!0};this.itemEnd=function(a){f++;if(void 0!==d.onProgress)d.onProgress(a,f,g);if(f===g&&(e=!1,void 0!==d.onLoad))d.onLoad()}; this.itemError=function(a){if(void 0!==d.onError)d.onError(a)};this.resolveURL=function(a){return h?h(a):a};this.setURLModifier=function(a){h=a;return this};this.addHandler=function(a,b){l.push(a,b);return this};this.removeHandler=function(a){a=l.indexOf(a);-1!==a&&l.splice(a,2);return this};this.getHandler=function(a){for(var b=0,c=l.length;ba;a++)this.coefficients.push(new m)}function Sa(a,b){T.call(this,void 0,b);this.type="LightProbe";this.sh=void 0!==a?a:new qf}function rf(a){S.call(this,a);this.textures={}}function oe(){F.call(this);this.type="InstancedBufferGeometry";this.instanceCount=Infinity}function sf(a,b,c,d){"number"===typeof c&&(d=c, c=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument."));H.call(this,a,b,c);this.meshPerAttribute=d||1}function tf(a){S.call(this,a)}function uf(a){S.call(this,a)}function Ag(a){"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported.");"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported.");S.call(this,a);this.options=void 0}function Bg(){this.type= "ShapePath";this.color=new D;this.subPaths=[];this.currentPath=null}function Cg(a){this.type="Font";this.data=a}function Dg(a){S.call(this,a)}function vf(a){S.call(this,a)}function Eg(a,b,c){Sa.call(this,void 0,c);a=(new D).set(a);c=(new D).set(b);b=new m(a.r,a.g,a.b);a=new m(c.r,c.g,c.b);c=Math.sqrt(Math.PI);var d=c*Math.sqrt(.75);this.sh.coefficients[0].copy(b).add(a).multiplyScalar(c);this.sh.coefficients[1].copy(b).sub(a).multiplyScalar(d)}function Fg(a,b){Sa.call(this,void 0,b);a=(new D).set(a); this.sh.coefficients[0].set(a.r,a.g,a.b).multiplyScalar(2*Math.sqrt(Math.PI))}function ji(){this.type="StereoCamera";this.aspect=1;this.eyeSep=.064;this.cameraL=new P;this.cameraL.layers.enable(1);this.cameraL.matrixAutoUpdate=!1;this.cameraR=new P;this.cameraR.layers.enable(2);this.cameraR.matrixAutoUpdate=!1;this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}function Gg(a){this.autoStart=void 0!==a?a:!0;this.elapsedTime=this.oldTime=this.startTime=0;this.running= !1}function Hg(){z.call(this);this.type="AudioListener";this.context=Ig.getContext();this.gain=this.context.createGain();this.gain.connect(this.context.destination);this.filter=null;this.timeDelta=0;this._clock=new Gg}function fd(a){z.call(this);this.type="Audio";this.listener=a;this.context=a.context;this.gain=this.context.createGain();this.gain.connect(a.getInput());this.autoplay=!1;this.buffer=null;this.detune=0;this.loop=!1;this.offset=this.loopEnd=this.loopStart=0;this.duration=void 0;this.playbackRate= 1;this.isPlaying=!1;this.hasPlaybackControl=!0;this.sourceType="empty";this._progress=this._startedAt=0;this.filters=[]}function Jg(a){fd.call(this,a);this.panner=this.context.createPanner();this.panner.panningModel="HRTF";this.panner.connect(this.gain)}function Kg(a,b){this.analyser=a.context.createAnalyser();this.analyser.fftSize=void 0!==b?b:2048;this.data=new Uint8Array(this.analyser.frequencyBinCount);a.getOutput().connect(this.analyser)}function Lg(a,b,c){this.binding=a;this.valueSize=c;switch(b){case "quaternion":a= this._slerp;b=this._slerpAdditive;var d=this._setAdditiveIdentityQuaternion;this.buffer=new Float64Array(6*c);this._workIndex=5;break;case "string":case "bool":b=a=this._select;d=this._setAdditiveIdentityOther;this.buffer=Array(5*c);break;default:a=this._lerp,b=this._lerpAdditive,d=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*c)}this._mixBufferRegion=a;this._mixBufferRegionAdditive=b;this._setIdentity=d;this._origIndex=3;this._addIndex=4;this.referenceCount=this.useCount=this.cumulativeWeightAdditive= this.cumulativeWeight=0}function ki(a,b,c){c=c||za.parseTrackName(b);this._targetGroup=a;this._bindings=a.subscribe_(b,c)}function za(a,b,c){this.path=b;this.parsedPath=c||za.parseTrackName(b);this.node=za.findNode(a,this.parsedPath.nodeName)||a;this.rootNode=a}function li(){this.uuid=K.generateUUID();this._objects=Array.prototype.slice.call(arguments);this.nCachedObjects_=0;var a={};this._indicesByUUID=a;for(var b=0,c=arguments.length;b!==c;++b)a[arguments[b].uuid]=b;this._paths=[];this._parsedPaths= [];this._bindings=[];this._bindingsIndicesByPath={};var d=this;this.stats={objects:{get total(){return d._objects.length},get inUse(){return this.total-d.nCachedObjects_}},get bindingsPerObject(){return d._bindings.length}}}function mi(a,b,c,d){this._mixer=a;this._clip=b;this._localRoot=c||null;this.blendMode=d||b.blendMode;a=b.tracks;b=a.length;c=Array(b);d={endingStart:2400,endingEnd:2400};for(var e=0;e!==b;++e){var f=a[e].createInterpolant(null);c[e]=f;f.settings=d}this._interpolantSettings=d; this._interpolants=c;this._propertyBindings=Array(b);this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null;this.loop=2201;this._loopCount=-1;this._startTime=null;this.time=0;this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1;this.repetitions=Infinity;this.paused=!1;this.enabled=!0;this.clampWhenFinished=!1;this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function Mg(a){this._root=a;this._initMemoryManager();this.time=this._accuIndex=0; this.timeScale=1}function wf(a,b){"string"===typeof a&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),a=b);this.value=a}function Ng(a,b,c){Ja.call(this,a,b);this.meshPerAttribute=c||1}function Og(a,b,c,d){this.ray=new Wb(a,b);this.near=c||0;this.far=d||Infinity;this.camera=null;this.layers=new Fe;this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}};Object.defineProperties(this.params,{PointCloud:{get:function(){console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."); return this.Points}}})}function ni(a,b){return a.distance-b.distance}function Pg(a,b,c,d){a.layers.test(b.layers)&&a.raycast(b,c);if(!0===d){a=a.children;d=0;for(var e=a.length;dc;c++,d++){var e=c/32*Math.PI*2,f=d/32*Math.PI*2;b.push(Math.cos(e),Math.sin(e),1,Math.cos(f),Math.sin(f),1)}a.setAttribute("position",new B(b,3));b=new la({fog:!1,toneMapped:!1});this.cone=new ha(a,b);this.add(this.cone);this.update()}function qi(a){var b=[];a&&a.isBone&&b.push(a);for(var c=0;c\n\nvec3 getSample(float theta, vec3 axis) {\n\tfloat cosTheta = cos(theta);\n\t// Rodrigues' axis-angle rotation\n\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t+ cross(axis, vOutputDirection) * sin(theta)\n\t\t+ axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);\n\treturn bilinearCubeUV(envMap, sampleDirection, mipInt);\n}\n\nvoid main() {\n\tvec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);\n\tif (all(equal(axis, vec3(0.0))))\n\t\taxis = vec3(vOutputDirection.z, 0.0, - vOutputDirection.x);\n\taxis = normalize(axis);\n\tgl_FragColor = vec4(0.0);\n\tgl_FragColor.rgb += weights[0] * getSample(0.0, axis);\n\tfor (int i = 1; i < n; i++) {\n\t\tif (i >= samples)\n\t\t\tbreak;\n\t\tfloat theta = dTheta * float(i);\n\t\tgl_FragColor.rgb += weights[i] * getSample(-1.0 * theta, axis);\n\t\tgl_FragColor.rgb += weights[i] * getSample(theta, axis);\n\t}\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t", blending:0,depthTest:!1,depthWrite:!1});this._cubemapShader=this._equirectShader=null;this._compileMaterial(this._blurMaterial)}function ri(a){a=new Ha(3*nb,3*nb,a);a.texture.mapping=306;a.texture.name="PMREM.cubeUv";a.scissorTest=!0;return a}function Wg(a,b,c,d,e){a.viewport.set(b,c,d,e);a.scissor.set(b,c,d,e)}function si(){var a=new w(1,1);return new tb({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:a},inputEncoding:{value:mb[3E3]},outputEncoding:{value:mb[3E3]}}, vertexShader:Ug(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform vec2 texelSize;\n\n"+Vg()+"\n\n#include \n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tvec3 outputDirection = normalize(vOutputDirection);\n\tvec2 uv = equirectUv( outputDirection );\n\tvec2 f = fract(uv / texelSize - 0.5);\n\tuv -= f * texelSize;\n\tvec3 tl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.x += texelSize.x;\n\tvec3 tr = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.y += texelSize.y;\n\tvec3 br = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.x -= texelSize.x;\n\tvec3 bl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tvec3 tm = mix(tl, tr, f.x);\n\tvec3 bm = mix(bl, br, f.x);\n\tgl_FragColor.rgb = mix(tm, bm, f.y);\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t", blending:0,depthTest:!1,depthWrite:!1})}function ti(){return new tb({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:mb[3E3]},outputEncoding:{value:mb[3E3]}},vertexShader:Ug(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform samplerCube envMap;\n\n"+Vg()+"\n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tgl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t", blending:0,depthTest:!1,depthWrite:!1})}function Ug(){return"\nprecision mediump float;\nprecision mediump int;\nattribute vec3 position;\nattribute vec2 uv;\nattribute float faceIndex;\nvarying vec3 vOutputDirection;\n\n// RH coordinate system; PMREM face-indexing convention\nvec3 getDirection(vec2 uv, float face) {\n\tuv = 2.0 * uv - 1.0;\n\tvec3 direction = vec3(uv, 1.0);\n\tif (face == 0.0) {\n\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\t} else if (face == 1.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\t} else if (face == 2.0) {\n\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\t} else if (face == 3.0) {\n\t\tdirection = direction.zyx;\n\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\t} else if (face == 4.0) {\n\t\tdirection = direction.xzy;\n\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\t} else if (face == 5.0) {\n\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\t}\n\treturn direction;\n}\n\nvoid main() {\n\tvOutputDirection = getDirection(uv, faceIndex);\n\tgl_Position = vec4( position, 1.0 );\n}\n\t"} function Vg(){return"\nuniform int inputEncoding;\nuniform int outputEncoding;\n\n#include \n\nvec4 inputTexelToLinear(vec4 value){\n\tif(inputEncoding == 0){\n\t\treturn value;\n\t}else if(inputEncoding == 1){\n\t\treturn sRGBToLinear(value);\n\t}else if(inputEncoding == 2){\n\t\treturn RGBEToLinear(value);\n\t}else if(inputEncoding == 3){\n\t\treturn RGBMToLinear(value, 7.0);\n\t}else if(inputEncoding == 4){\n\t\treturn RGBMToLinear(value, 16.0);\n\t}else if(inputEncoding == 5){\n\t\treturn RGBDToLinear(value, 256.0);\n\t}else{\n\t\treturn GammaToLinear(value, 2.2);\n\t}\n}\n\nvec4 linearToOutputTexel(vec4 value){\n\tif(outputEncoding == 0){\n\t\treturn value;\n\t}else if(outputEncoding == 1){\n\t\treturn LinearTosRGB(value);\n\t}else if(outputEncoding == 2){\n\t\treturn LinearToRGBE(value);\n\t}else if(outputEncoding == 3){\n\t\treturn LinearToRGBM(value, 7.0);\n\t}else if(outputEncoding == 4){\n\t\treturn LinearToRGBM(value, 16.0);\n\t}else if(outputEncoding == 5){\n\t\treturn LinearToRGBD(value, 256.0);\n\t}else{\n\t\treturn LinearToGamma(value, 2.2);\n\t}\n}\n\nvec4 envMapTexelToLinear(vec4 color) {\n\treturn inputTexelToLinear(color);\n}\n\t"} function ui(a){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");pa.call(this,a);this.type="catmullrom";this.closed=!0}function vi(a){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");pa.call(this,a);this.type="catmullrom"}function Xg(a){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.");pa.call(this,a);this.type="catmullrom"}void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2, -52));void 0===Number.isInteger&&(Number.isInteger=function(a){return"number"===typeof a&&isFinite(a)&&Math.floor(a)===a});void 0===Math.sign&&(Math.sign=function(a){return 0>a?-1:0ue;ue++)ya[ue]=(16>ue?"0":"")+ue.toString(16);var K={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){var a=4294967295*Math.random()|0,b=4294967295*Math.random()|0,c=4294967295*Math.random()| 0,d=4294967295*Math.random()|0;return(ya[a&255]+ya[a>>8&255]+ya[a>>16&255]+ya[a>>24&255]+"-"+ya[b&255]+ya[b>>8&255]+"-"+ya[b>>16&15|64]+ya[b>>24&255]+"-"+ya[c&63|128]+ya[c>>8&255]+"-"+ya[c>>16&255]+ya[c>>24&255]+ya[d&255]+ya[d>>8&255]+ya[d>>16&255]+ya[d>>24&255]).toUpperCase()},clamp:function(a,b,c){return Math.max(b,Math.min(c,a))},euclideanModulo:function(a,b){return(a%b+b)%b},mapLinear:function(a,b,c,d,e){return d+(a-b)*(e-d)/(c-b)},lerp:function(a,b,c){return(1-c)*a+c*b},smoothstep:function(a, b,c){if(a<=b)return 0;if(a>=c)return 1;a=(a-b)/(c-b);return a*a*(3-2*a)},smootherstep:function(a,b,c){if(a<=b)return 0;if(a>=c)return 1;a=(a-b)/(c-b);return a*a*a*(a*(6*a-15)+10)},randInt:function(a,b){return a+Math.floor(Math.random()*(b-a+1))},randFloat:function(a,b){return a+Math.random()*(b-a)},randFloatSpread:function(a){return a*(.5-Math.random())},degToRad:function(a){return a*K.DEG2RAD},radToDeg:function(a){return a*K.RAD2DEG},isPowerOfTwo:function(a){return 0===(a&a-1)&&0!==a},ceilPowerOfTwo:function(a){return Math.pow(2, Math.ceil(Math.log(a)/Math.LN2))},floorPowerOfTwo:function(a){return Math.pow(2,Math.floor(Math.log(a)/Math.LN2))},setQuaternionFromProperEuler:function(a,b,c,d,e){var f=Math.cos,g=Math.sin,h=f(c/2);c=g(c/2);var l=f((b+d)/2),n=g((b+d)/2),k=f((b-d)/2),p=g((b-d)/2);f=f((d-b)/2);b=g((d-b)/2);switch(e){case "XYX":a.set(h*n,c*k,c*p,h*l);break;case "YZY":a.set(c*p,h*n,c*k,h*l);break;case "ZXZ":a.set(c*k,c*p,h*n,h*l);break;case "XZX":a.set(h*n,c*b,c*f,h*l);break;case "YXY":a.set(c*f,h*n,c*b,h*l);break;case "ZYZ":a.set(c* b,c*f,h*n,h*l);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+e)}}};Object.defineProperties(w.prototype,{width:{get:function(){return this.x},set:function(a){this.x=a}},height:{get:function(){return this.y},set:function(a){this.y=a}}});Object.assign(w.prototype,{isVector2:!0,set:function(a,b){this.x=a;this.y=b;return this},setScalar:function(a){this.y=this.x=a;return this},setX:function(a){this.x=a;return this},setY:function(a){this.y= a;return this},setComponent:function(a,b){switch(a){case 0:this.x=b;break;case 1:this.y=b;break;default:throw Error("index is out of range: "+a);}return this},getComponent:function(a){switch(a){case 0:return this.x;case 1:return this.y;default:throw Error("index is out of range: "+a);}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(a){this.x=a.x;this.y=a.y;return this},add:function(a,b){if(void 0!==b)return console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."), this.addVectors(a,b);this.x+=a.x;this.y+=a.y;return this},addScalar:function(a){this.x+=a;this.y+=a;return this},addVectors:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;return this},addScaledVector:function(a,b){this.x+=a.x*b;this.y+=a.y*b;return this},sub:function(a,b){if(void 0!==b)return console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(a,b);this.x-=a.x;this.y-=a.y;return this},subScalar:function(a){this.x-=a;this.y-=a;return this}, subVectors:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;return this},multiply:function(a){this.x*=a.x;this.y*=a.y;return this},multiplyScalar:function(a){this.x*=a;this.y*=a;return this},divide:function(a){this.x/=a.x;this.y/=a.y;return this},divideScalar:function(a){return this.multiplyScalar(1/a)},applyMatrix3:function(a){var b=this.x,c=this.y;a=a.elements;this.x=a[0]*b+a[3]*c+a[6];this.y=a[1]*b+a[4]*c+a[7];return this},min:function(a){this.x=Math.min(this.x,a.x);this.y=Math.min(this.y,a.y);return this}, max:function(a){this.x=Math.max(this.x,a.x);this.y=Math.max(this.y,a.y);return this},clamp:function(a,b){this.x=Math.max(a.x,Math.min(b.x,this.x));this.y=Math.max(a.y,Math.min(b.y,this.y));return this},clampScalar:function(a,b){this.x=Math.max(a,Math.min(b,this.x));this.y=Math.max(a,Math.min(b,this.y));return this},clampLength:function(a,b){var c=this.length();return this.divideScalar(c||1).multiplyScalar(Math.max(a,Math.min(b,c)))},floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y); return this},ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},roundToZero:function(){this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x);this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y);return this},negate:function(){this.x=-this.x;this.y=-this.y;return this},dot:function(a){return this.x*a.x+this.y*a.y},cross:function(a){return this.x*a.y-this.y*a.x},lengthSq:function(){return this.x* this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){return Math.atan2(-this.y,-this.x)+Math.PI},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){var b=this.x-a.x;a=this.y-a.y;return b*b+a*a},manhattanDistanceTo:function(a){return Math.abs(this.x-a.x)+Math.abs(this.y- a.y)},setLength:function(a){return this.normalize().multiplyScalar(a)},lerp:function(a,b){this.x+=(a.x-this.x)*b;this.y+=(a.y-this.y)*b;return this},lerpVectors:function(a,b,c){this.x=a.x+(b.x-a.x)*c;this.y=a.y+(b.y-a.y)*c;return this},equals:function(a){return a.x===this.x&&a.y===this.y},fromArray:function(a,b){void 0===b&&(b=0);this.x=a[b];this.y=a[b+1];return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this.x;a[b+1]=this.y;return a},fromBufferAttribute:function(a,b,c){void 0!== c&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute().");this.x=a.getX(b);this.y=a.getY(b);return this},rotateAround:function(a,b){var c=Math.cos(b);b=Math.sin(b);var d=this.x-a.x,e=this.y-a.y;this.x=d*c-e*b+a.x;this.y=d*b+e*c+a.y;return this},random:function(){this.x=Math.random();this.y=Math.random();return this}});Object.assign(xa.prototype,{isMatrix3:!0,set:function(a,b,c,d,e,f,g,h,l){var n=this.elements;n[0]=a;n[1]=d;n[2]=g;n[3]=b;n[4]=e;n[5]=h;n[6]=c;n[7]=f;n[8]= l;return this},identity:function(){this.set(1,0,0,0,1,0,0,0,1);return this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(a){var b=this.elements;a=a.elements;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=a[6];b[7]=a[7];b[8]=a[8];return this},extractBasis:function(a,b,c){a.setFromMatrix3Column(this,0);b.setFromMatrix3Column(this,1);c.setFromMatrix3Column(this,2);return this},setFromMatrix4:function(a){a=a.elements;this.set(a[0],a[4],a[8],a[1], a[5],a[9],a[2],a[6],a[10]);return this},multiply:function(a){return this.multiplyMatrices(this,a)},premultiply:function(a){return this.multiplyMatrices(a,this)},multiplyMatrices:function(a,b){var c=a.elements,d=b.elements;b=this.elements;a=c[0];var e=c[3],f=c[6],g=c[1],h=c[4],l=c[7],n=c[2],k=c[5];c=c[8];var p=d[0],m=d[3],t=d[6],r=d[1],u=d[4],A=d[7],w=d[2],x=d[5];d=d[8];b[0]=a*p+e*r+f*w;b[3]=a*m+e*u+f*x;b[6]=a*t+e*A+f*d;b[1]=g*p+h*r+l*w;b[4]=g*m+h*u+l*x;b[7]=g*t+h*A+l*d;b[2]=n*p+k*r+c*w;b[5]=n*m+k* u+c*x;b[8]=n*t+k*A+c*d;return this},multiplyScalar:function(a){var b=this.elements;b[0]*=a;b[3]*=a;b[6]*=a;b[1]*=a;b[4]*=a;b[7]*=a;b[2]*=a;b[5]*=a;b[8]*=a;return this},determinant:function(){var a=this.elements,b=a[0],c=a[1],d=a[2],e=a[3],f=a[4],g=a[5],h=a[6],l=a[7];a=a[8];return b*f*a-b*g*l-c*e*a+c*g*h+d*e*l-d*f*h},getInverse:function(a,b){void 0!==b&&console.warn("THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate.");var c=a.elements;a=this.elements;b=c[0];var d=c[1], e=c[2],f=c[3],g=c[4],h=c[5],l=c[6],n=c[7];c=c[8];var k=c*g-h*n,p=h*l-c*f,m=n*f-g*l,t=b*k+d*p+e*m;if(0===t)return this.set(0,0,0,0,0,0,0,0,0);t=1/t;a[0]=k*t;a[1]=(e*n-c*d)*t;a[2]=(h*d-e*g)*t;a[3]=p*t;a[4]=(c*b-e*l)*t;a[5]=(e*f-h*b)*t;a[6]=m*t;a[7]=(d*l-n*b)*t;a[8]=(g*b-d*f)*t;return this},transpose:function(){var a=this.elements;var b=a[1];a[1]=a[3];a[3]=b;b=a[2];a[2]=a[6];a[6]=b;b=a[5];a[5]=a[7];a[7]=b;return this},getNormalMatrix:function(a){return this.setFromMatrix4(a).getInverse(this).transpose()}, transposeIntoArray:function(a){var b=this.elements;a[0]=b[0];a[1]=b[3];a[2]=b[6];a[3]=b[1];a[4]=b[4];a[5]=b[7];a[6]=b[2];a[7]=b[5];a[8]=b[8];return this},setUvTransform:function(a,b,c,d,e,f,g){var h=Math.cos(e);e=Math.sin(e);this.set(c*h,c*e,-c*(h*f+e*g)+f+a,-d*e,d*h,-d*(-e*f+h*g)+g+b,0,0,1)},scale:function(a,b){var c=this.elements;c[0]*=a;c[3]*=a;c[6]*=a;c[1]*=b;c[4]*=b;c[7]*=b;return this},rotate:function(a){var b=Math.cos(a);a=Math.sin(a);var c=this.elements,d=c[0],e=c[3],f=c[6],g=c[1],h=c[4], l=c[7];c[0]=b*d+a*g;c[3]=b*e+a*h;c[6]=b*f+a*l;c[1]=-a*d+b*g;c[4]=-a*e+b*h;c[7]=-a*f+b*l;return this},translate:function(a,b){var c=this.elements;c[0]+=a*c[2];c[3]+=a*c[5];c[6]+=a*c[8];c[1]+=b*c[2];c[4]+=b*c[5];c[7]+=b*c[8];return this},equals:function(a){var b=this.elements;a=a.elements;for(var c=0;9>c;c++)if(b[c]!==a[c])return!1;return!0},fromArray:function(a,b){void 0===b&&(b=0);for(var c=0;9>c;c++)this.elements[c]=a[c+b];return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);var c= this.elements;a[b]=c[0];a[b+1]=c[1];a[b+2]=c[2];a[b+3]=c[3];a[b+4]=c[4];a[b+5]=c[5];a[b+6]=c[6];a[b+7]=c[7];a[b+8]=c[8];return a}});var kd,Ob={getDataURL:function(a){if(/^data:/i.test(a.src)||"undefined"==typeof HTMLCanvasElement)return a.src;if(!(a instanceof HTMLCanvasElement)){void 0===kd&&(kd=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"));kd.width=a.width;kd.height=a.height;var b=kd.getContext("2d");a instanceof ImageData?b.putImageData(a,0,0):b.drawImage(a,0,0,a.width,a.height); a=kd}return 2048a.x||1a.x?0:1;break;case 1002:a.x=1===Math.abs(Math.floor(a.x)%2)?Math.ceil(a.x)-a.x:a.x-Math.floor(a.x)}if(0>a.y||1a.y?0:1;break;case 1002:a.y=1===Math.abs(Math.floor(a.y)%2)?Math.ceil(a.y)- a.y:a.y-Math.floor(a.y)}this.flipY&&(a.y=1-a.y);return a}});Object.defineProperty(W.prototype,"needsUpdate",{set:function(a){!0===a&&this.version++}});Object.defineProperties(Y.prototype,{width:{get:function(){return this.z},set:function(a){this.z=a}},height:{get:function(){return this.w},set:function(a){this.w=a}}});Object.assign(Y.prototype,{isVector4:!0,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},setScalar:function(a){this.w=this.z=this.y=this.x=a;return this},setX:function(a){this.x= a;return this},setY:function(a){this.y=a;return this},setZ:function(a){this.z=a;return this},setW:function(a){this.w=a;return this},setComponent:function(a,b){switch(a){case 0:this.x=b;break;case 1:this.y=b;break;case 2:this.z=b;break;case 3:this.w=b;break;default:throw Error("index is out of range: "+a);}return this},getComponent:function(a){switch(a){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error("index is out of range: "+a);}},clone:function(){return new this.constructor(this.x, this.y,this.z,this.w)},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=void 0!==a.w?a.w:1;return this},add:function(a,b){if(void 0!==b)return console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(a,b);this.x+=a.x;this.y+=a.y;this.z+=a.z;this.w+=a.w;return this},addScalar:function(a){this.x+=a;this.y+=a;this.z+=a;this.w+=a;return this},addVectors:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;this.w=a.w+b.w;return this}, addScaledVector:function(a,b){this.x+=a.x*b;this.y+=a.y*b;this.z+=a.z*b;this.w+=a.w*b;return this},sub:function(a,b){if(void 0!==b)return console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(a,b);this.x-=a.x;this.y-=a.y;this.z-=a.z;this.w-=a.w;return this},subScalar:function(a){this.x-=a;this.y-=a;this.z-=a;this.w-=a;return this},subVectors:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;this.w=a.w-b.w;return this},multiplyScalar:function(a){this.x*= a;this.y*=a;this.z*=a;this.w*=a;return this},applyMatrix4:function(a){var b=this.x,c=this.y,d=this.z,e=this.w;a=a.elements;this.x=a[0]*b+a[4]*c+a[8]*d+a[12]*e;this.y=a[1]*b+a[5]*c+a[9]*d+a[13]*e;this.z=a[2]*b+a[6]*c+a[10]*d+a[14]*e;this.w=a[3]*b+a[7]*c+a[11]*d+a[15]*e;return this},divideScalar:function(a){return this.multiplyScalar(1/a)},setAxisAngleFromQuaternion:function(a){this.w=2*Math.acos(a.w);var b=Math.sqrt(1-a.w*a.w);1E-4>b?(this.x=1,this.z=this.y=0):(this.x=a.x/b,this.y=a.y/b,this.z=a.z/ b);return this},setAxisAngleFromRotationMatrix:function(a){a=a.elements;var b=a[0];var c=a[4];var d=a[8],e=a[1],f=a[5],g=a[9];var h=a[2];var l=a[6];var n=a[10];if(.01>Math.abs(c-e)&&.01>Math.abs(d-h)&&.01>Math.abs(g-l)){if(.1>Math.abs(c+e)&&.1>Math.abs(d+h)&&.1>Math.abs(g+l)&&.1>Math.abs(b+f+n-3))return this.set(1,0,0,0),this;a=Math.PI;b=(b+1)/2;f=(f+1)/2;n=(n+1)/2;c=(c+e)/4;d=(d+h)/4;g=(g+l)/4;b>f&&b>n?.01>b?(l=0,c=h=.707106781):(l=Math.sqrt(b),h=c/l,c=d/l):f>n?.01>f?(l=.707106781,h=0,c=.707106781): (h=Math.sqrt(f),l=c/h,c=g/h):.01>n?(h=l=.707106781,c=0):(c=Math.sqrt(n),l=d/c,h=g/c);this.set(l,h,c,a);return this}a=Math.sqrt((l-g)*(l-g)+(d-h)*(d-h)+(e-c)*(e-c));.001>Math.abs(a)&&(a=1);this.x=(l-g)/a;this.y=(d-h)/a;this.z=(e-c)/a;this.w=Math.acos((b+f+n-1)/2);return this},min:function(a){this.x=Math.min(this.x,a.x);this.y=Math.min(this.y,a.y);this.z=Math.min(this.z,a.z);this.w=Math.min(this.w,a.w);return this},max:function(a){this.x=Math.max(this.x,a.x);this.y=Math.max(this.y,a.y);this.z=Math.max(this.z, a.z);this.w=Math.max(this.w,a.w);return this},clamp:function(a,b){this.x=Math.max(a.x,Math.min(b.x,this.x));this.y=Math.max(a.y,Math.min(b.y,this.y));this.z=Math.max(a.z,Math.min(b.z,this.z));this.w=Math.max(a.w,Math.min(b.w,this.w));return this},clampScalar:function(a,b){this.x=Math.max(a,Math.min(b,this.x));this.y=Math.max(a,Math.min(b,this.y));this.z=Math.max(a,Math.min(b,this.z));this.w=Math.max(a,Math.min(b,this.w));return this},clampLength:function(a,b){var c=this.length();return this.divideScalar(c|| 1).multiplyScalar(Math.max(a,Math.min(b,c)))},floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);this.z=Math.floor(this.z);this.w=Math.floor(this.w);return this},ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);this.z=Math.ceil(this.z);this.w=Math.ceil(this.w);return this},round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);this.z=Math.round(this.z);this.w=Math.round(this.w);return this},roundToZero:function(){this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x); this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y);this.z=0>this.z?Math.ceil(this.z):Math.floor(this.z);this.w=0>this.w?Math.ceil(this.w):Math.floor(this.w);return this},negate:function(){this.x=-this.x;this.y=-this.y;this.z=-this.z;this.w=-this.w;return this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}, manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(a){return this.normalize().multiplyScalar(a)},lerp:function(a,b){this.x+=(a.x-this.x)*b;this.y+=(a.y-this.y)*b;this.z+=(a.z-this.z)*b;this.w+=(a.w-this.w)*b;return this},lerpVectors:function(a,b,c){this.x=a.x+(b.x-a.x)*c;this.y=a.y+(b.y-a.y)*c;this.z=a.z+(b.z-a.z)*c;this.w=a.w+(b.w-a.w)*c;return this},equals:function(a){return a.x=== this.x&&a.y===this.y&&a.z===this.z&&a.w===this.w},fromArray:function(a,b){void 0===b&&(b=0);this.x=a[b];this.y=a[b+1];this.z=a[b+2];this.w=a[b+3];return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this.x;a[b+1]=this.y;a[b+2]=this.z;a[b+3]=this.w;return a},fromBufferAttribute:function(a,b,c){void 0!==c&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute().");this.x=a.getX(b);this.y=a.getY(b);this.z=a.getZ(b);this.w=a.getW(b);return this},random:function(){this.x= Math.random();this.y=Math.random();this.z=Math.random();this.w=Math.random();return this}});Ha.prototype=Object.assign(Object.create(ua.prototype),{constructor:Ha,isWebGLRenderTarget:!0,setSize:function(a,b){if(this.width!==a||this.height!==b)this.width=a,this.height=b,this.texture.image.width=a,this.texture.image.height=b,this.dispose();this.viewport.set(0,0,a,b);this.scissor.set(0,0,a,b)},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.width=a.width;this.height=a.height; this.viewport.copy(a.viewport);this.texture=a.texture.clone();this.depthBuffer=a.depthBuffer;this.stencilBuffer=a.stencilBuffer;this.depthTexture=a.depthTexture;return this},dispose:function(){this.dispatchEvent({type:"dispose"})}});ag.prototype=Object.assign(Object.create(Ha.prototype),{constructor:ag,isWebGLMultisampleRenderTarget:!0,copy:function(a){Ha.prototype.copy.call(this,a);this.samples=a.samples;return this}});Object.assign(na,{slerp:function(a,b,c,d){return c.copy(a).slerp(b,d)},slerpFlat:function(a, b,c,d,e,f,g){var h=c[d+0],l=c[d+1],n=c[d+2];c=c[d+3];d=e[f+0];var k=e[f+1],p=e[f+2];e=e[f+3];if(c!==e||h!==d||l!==k||n!==p){f=1-g;var m=h*d+l*k+n*p+c*e,t=0<=m?1:-1,r=1-m*m;r>Number.EPSILON&&(r=Math.sqrt(r),m=Math.atan2(r,m*t),f=Math.sin(f*m)/r,g=Math.sin(g*m)/r);t*=g;h=h*f+d*t;l=l*f+k*t;n=n*f+p*t;c=c*f+e*t;f===1-g&&(g=1/Math.sqrt(h*h+l*l+n*n+c*c),h*=g,l*=g,n*=g,c*=g)}a[b]=h;a[b+1]=l;a[b+2]=n;a[b+3]=c},multiplyQuaternionsFlat:function(a,b,c,d,e,f){var g=c[d],h=c[d+1],l=c[d+2];c=c[d+3];d=e[f];var n= e[f+1],k=e[f+2];e=e[f+3];a[b]=g*e+c*d+h*k-l*n;a[b+1]=h*e+c*n+l*d-g*k;a[b+2]=l*e+c*k+g*n-h*d;a[b+3]=c*e-g*d-h*n-l*k;return a}});Object.defineProperties(na.prototype,{x:{get:function(){return this._x},set:function(a){this._x=a;this._onChangeCallback()}},y:{get:function(){return this._y},set:function(a){this._y=a;this._onChangeCallback()}},z:{get:function(){return this._z},set:function(a){this._z=a;this._onChangeCallback()}},w:{get:function(){return this._w},set:function(a){this._w=a;this._onChangeCallback()}}}); Object.assign(na.prototype,{isQuaternion:!0,set:function(a,b,c,d){this._x=a;this._y=b;this._z=c;this._w=d;this._onChangeCallback();return this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(a){this._x=a.x;this._y=a.y;this._z=a.z;this._w=a.w;this._onChangeCallback();return this},setFromEuler:function(a,b){if(!a||!a.isEuler)throw Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var c=a._x,d=a._y, e=a._z;a=a.order;var f=Math.cos,g=Math.sin,h=f(c/2),l=f(d/2);f=f(e/2);c=g(c/2);d=g(d/2);e=g(e/2);switch(a){case "XYZ":this._x=c*l*f+h*d*e;this._y=h*d*f-c*l*e;this._z=h*l*e+c*d*f;this._w=h*l*f-c*d*e;break;case "YXZ":this._x=c*l*f+h*d*e;this._y=h*d*f-c*l*e;this._z=h*l*e-c*d*f;this._w=h*l*f+c*d*e;break;case "ZXY":this._x=c*l*f-h*d*e;this._y=h*d*f+c*l*e;this._z=h*l*e+c*d*f;this._w=h*l*f-c*d*e;break;case "ZYX":this._x=c*l*f-h*d*e;this._y=h*d*f+c*l*e;this._z=h*l*e-c*d*f;this._w=h*l*f+c*d*e;break;case "YZX":this._x= c*l*f+h*d*e;this._y=h*d*f+c*l*e;this._z=h*l*e-c*d*f;this._w=h*l*f-c*d*e;break;case "XZY":this._x=c*l*f-h*d*e;this._y=h*d*f-c*l*e;this._z=h*l*e+c*d*f;this._w=h*l*f+c*d*e;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}!1!==b&&this._onChangeCallback();return this},setFromAxisAngle:function(a,b){b/=2;var c=Math.sin(b);this._x=a.x*c;this._y=a.y*c;this._z=a.z*c;this._w=Math.cos(b);this._onChangeCallback();return this},setFromRotationMatrix:function(a){var b= a.elements,c=b[0];a=b[4];var d=b[8],e=b[1],f=b[5],g=b[9],h=b[2],l=b[6];b=b[10];var n=c+f+b;0f&&c>b?(c=2*Math.sqrt(1+c-f-b),this._w=(l-g)/c,this._x=.25*c,this._y=(a+e)/c,this._z=(d+h)/c):f>b?(c=2*Math.sqrt(1+f-c-b),this._w=(d-h)/c,this._x=(a+e)/c,this._y=.25*c,this._z=(g+l)/c):(c=2*Math.sqrt(1+b-c-f),this._w=(e-a)/c,this._x=(d+h)/c,this._y=(g+l)/c,this._z=.25*c);this._onChangeCallback();return this},setFromUnitVectors:function(a, b){var c=a.dot(b)+1;1E-6>c?(c=0,Math.abs(a.x)>Math.abs(a.z)?(this._x=-a.y,this._y=a.x,this._z=0):(this._x=0,this._y=-a.z,this._z=a.y)):(this._x=a.y*b.z-a.z*b.y,this._y=a.z*b.x-a.x*b.z,this._z=a.x*b.y-a.y*b.x);this._w=c;return this.normalize()},angleTo:function(a){return 2*Math.acos(Math.abs(K.clamp(this.dot(a),-1,1)))},rotateTowards:function(a,b){var c=this.angleTo(a);if(0===c)return this;this.slerp(a,Math.min(1,b/c));return this},inverse:function(){return this.conjugate()},conjugate:function(){this._x*= -1;this._y*=-1;this._z*=-1;this._onChangeCallback();return this},dot:function(a){return this._x*a._x+this._y*a._y+this._z*a._z+this._w*a._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var a=this.length();0===a?(this._z=this._y=this._x=0,this._w=1):(a=1/a,this._x*=a,this._y*=a,this._z*=a,this._w*=a);this._onChangeCallback();return this}, multiply:function(a,b){return void 0!==b?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(a,b)):this.multiplyQuaternions(this,a)},premultiply:function(a){return this.multiplyQuaternions(a,this)},multiplyQuaternions:function(a,b){var c=a._x,d=a._y,e=a._z;a=a._w;var f=b._x,g=b._y,h=b._z;b=b._w;this._x=c*b+a*f+d*h-e*g;this._y=d*b+a*g+e*f-c*h;this._z=e*b+a*h+c*g-d*f;this._w=a*b-c*f-d*g-e*h;this._onChangeCallback(); return this},slerp:function(a,b){if(0===b)return this;if(1===b)return this.copy(a);var c=this._x,d=this._y,e=this._z,f=this._w,g=f*a._w+c*a._x+d*a._y+e*a._z;0>g?(this._w=-a._w,this._x=-a._x,this._y=-a._y,this._z=-a._z,g=-g):this.copy(a);if(1<=g)return this._w=f,this._x=c,this._y=d,this._z=e,this;a=1-g*g;if(a<=Number.EPSILON)return g=1-b,this._w=g*f+b*this._w,this._x=g*c+b*this._x,this._y=g*d+b*this._y,this._z=g*e+b*this._z,this.normalize(),this._onChangeCallback(),this;a=Math.sqrt(a);var h=Math.atan2(a, g);g=Math.sin((1-b)*h)/a;b=Math.sin(b*h)/a;this._w=f*g+this._w*b;this._x=c*g+this._x*b;this._y=d*g+this._y*b;this._z=e*g+this._z*b;this._onChangeCallback();return this},equals:function(a){return a._x===this._x&&a._y===this._y&&a._z===this._z&&a._w===this._w},fromArray:function(a,b){void 0===b&&(b=0);this._x=a[b];this._y=a[b+1];this._z=a[b+2];this._w=a[b+3];this._onChangeCallback();return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this._x;a[b+1]=this._y;a[b+2]=this._z;a[b+ 3]=this._w;return a},fromBufferAttribute:function(a,b){this._x=a.getX(b);this._y=a.getY(b);this._z=a.getZ(b);this._w=a.getW(b);return this},_onChange:function(a){this._onChangeCallback=a;return this},_onChangeCallback:function(){}});var Yg=new m,wi=new na;Object.assign(m.prototype,{isVector3:!0,set:function(a,b,c){this.x=a;this.y=b;this.z=c;return this},setScalar:function(a){this.z=this.y=this.x=a;return this},setX:function(a){this.x=a;return this},setY:function(a){this.y=a;return this},setZ:function(a){this.z= a;return this},setComponent:function(a,b){switch(a){case 0:this.x=b;break;case 1:this.y=b;break;case 2:this.z=b;break;default:throw Error("index is out of range: "+a);}return this},getComponent:function(a){switch(a){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error("index is out of range: "+a);}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this},add:function(a,b){if(void 0!==b)return console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."), this.addVectors(a,b);this.x+=a.x;this.y+=a.y;this.z+=a.z;return this},addScalar:function(a){this.x+=a;this.y+=a;this.z+=a;return this},addVectors:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;return this},addScaledVector:function(a,b){this.x+=a.x*b;this.y+=a.y*b;this.z+=a.z*b;return this},sub:function(a,b){if(void 0!==b)return console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(a,b);this.x-=a.x;this.y-=a.y;this.z-=a.z; return this},subScalar:function(a){this.x-=a;this.y-=a;this.z-=a;return this},subVectors:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;return this},multiply:function(a,b){if(void 0!==b)return console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(a,b);this.x*=a.x;this.y*=a.y;this.z*=a.z;return this},multiplyScalar:function(a){this.x*=a;this.y*=a;this.z*=a;return this},multiplyVectors:function(a,b){this.x=a.x* b.x;this.y=a.y*b.y;this.z=a.z*b.z;return this},applyEuler:function(a){a&&a.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.");return this.applyQuaternion(wi.setFromEuler(a))},applyAxisAngle:function(a,b){return this.applyQuaternion(wi.setFromAxisAngle(a,b))},applyMatrix3:function(a){var b=this.x,c=this.y,d=this.z;a=a.elements;this.x=a[0]*b+a[3]*c+a[6]*d;this.y=a[1]*b+a[4]*c+a[7]*d;this.z=a[2]*b+a[5]*c+a[8]*d;return this},applyNormalMatrix:function(a){return this.applyMatrix3(a).normalize()}, applyMatrix4:function(a){var b=this.x,c=this.y,d=this.z;a=a.elements;var e=1/(a[3]*b+a[7]*c+a[11]*d+a[15]);this.x=(a[0]*b+a[4]*c+a[8]*d+a[12])*e;this.y=(a[1]*b+a[5]*c+a[9]*d+a[13])*e;this.z=(a[2]*b+a[6]*c+a[10]*d+a[14])*e;return this},applyQuaternion:function(a){var b=this.x,c=this.y,d=this.z,e=a.x,f=a.y,g=a.z;a=a.w;var h=a*b+f*d-g*c,l=a*c+g*b-e*d,n=a*d+e*c-f*b;b=-e*b-f*c-g*d;this.x=h*a+b*-e+l*-g-n*-f;this.y=l*a+b*-f+n*-e-h*-g;this.z=n*a+b*-g+h*-f-l*-e;return this},project:function(a){return this.applyMatrix4(a.matrixWorldInverse).applyMatrix4(a.projectionMatrix)}, unproject:function(a){return this.applyMatrix4(a.projectionMatrixInverse).applyMatrix4(a.matrixWorld)},transformDirection:function(a){var b=this.x,c=this.y,d=this.z;a=a.elements;this.x=a[0]*b+a[4]*c+a[8]*d;this.y=a[1]*b+a[5]*c+a[9]*d;this.z=a[2]*b+a[6]*c+a[10]*d;return this.normalize()},divide:function(a){this.x/=a.x;this.y/=a.y;this.z/=a.z;return this},divideScalar:function(a){return this.multiplyScalar(1/a)},min:function(a){this.x=Math.min(this.x,a.x);this.y=Math.min(this.y,a.y);this.z=Math.min(this.z, a.z);return this},max:function(a){this.x=Math.max(this.x,a.x);this.y=Math.max(this.y,a.y);this.z=Math.max(this.z,a.z);return this},clamp:function(a,b){this.x=Math.max(a.x,Math.min(b.x,this.x));this.y=Math.max(a.y,Math.min(b.y,this.y));this.z=Math.max(a.z,Math.min(b.z,this.z));return this},clampScalar:function(a,b){this.x=Math.max(a,Math.min(b,this.x));this.y=Math.max(a,Math.min(b,this.y));this.z=Math.max(a,Math.min(b,this.z));return this},clampLength:function(a,b){var c=this.length();return this.divideScalar(c|| 1).multiplyScalar(Math.max(a,Math.min(b,c)))},floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);this.z=Math.floor(this.z);return this},ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);this.z=Math.ceil(this.z);return this},round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);this.z=Math.round(this.z);return this},roundToZero:function(){this.x=0>this.x?Math.ceil(this.x):Math.floor(this.x);this.y=0>this.y?Math.ceil(this.y):Math.floor(this.y);this.z= 0>this.z?Math.ceil(this.z):Math.floor(this.z);return this},negate:function(){this.x=-this.x;this.y=-this.y;this.z=-this.z;return this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(a){return this.normalize().multiplyScalar(a)}, lerp:function(a,b){this.x+=(a.x-this.x)*b;this.y+=(a.y-this.y)*b;this.z+=(a.z-this.z)*b;return this},lerpVectors:function(a,b,c){this.x=a.x+(b.x-a.x)*c;this.y=a.y+(b.y-a.y)*c;this.z=a.z+(b.z-a.z)*c;return this},cross:function(a,b){return void 0!==b?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(a,b)):this.crossVectors(this,a)},crossVectors:function(a,b){var c=a.x,d=a.y;a=a.z;var e=b.x,f=b.y;b=b.z;this.x=d*b-a*f;this.y=a* e-c*b;this.z=c*f-d*e;return this},projectOnVector:function(a){var b=a.lengthSq();if(0===b)return this.set(0,0,0);b=a.dot(this)/b;return this.copy(a).multiplyScalar(b)},projectOnPlane:function(a){Yg.copy(this).projectOnVector(a);return this.sub(Yg)},reflect:function(a){return this.sub(Yg.copy(a).multiplyScalar(2*this.dot(a)))},angleTo:function(a){var b=Math.sqrt(this.lengthSq()*a.lengthSq());if(0===b)return Math.PI/2;a=this.dot(a)/b;return Math.acos(K.clamp(a,-1,1))},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))}, distanceToSquared:function(a){var b=this.x-a.x,c=this.y-a.y;a=this.z-a.z;return b*b+c*c+a*a},manhattanDistanceTo:function(a){return Math.abs(this.x-a.x)+Math.abs(this.y-a.y)+Math.abs(this.z-a.z)},setFromSpherical:function(a){return this.setFromSphericalCoords(a.radius,a.phi,a.theta)},setFromSphericalCoords:function(a,b,c){var d=Math.sin(b)*a;this.x=d*Math.sin(c);this.y=Math.cos(b)*a;this.z=d*Math.cos(c);return this},setFromCylindrical:function(a){return this.setFromCylindricalCoords(a.radius,a.theta, a.y)},setFromCylindricalCoords:function(a,b,c){this.x=a*Math.sin(b);this.y=c;this.z=a*Math.cos(b);return this},setFromMatrixPosition:function(a){a=a.elements;this.x=a[12];this.y=a[13];this.z=a[14];return this},setFromMatrixScale:function(a){var b=this.setFromMatrixColumn(a,0).length(),c=this.setFromMatrixColumn(a,1).length();a=this.setFromMatrixColumn(a,2).length();this.x=b;this.y=c;this.z=a;return this},setFromMatrixColumn:function(a,b){return this.fromArray(a.elements,4*b)},setFromMatrix3Column:function(a, b){return this.fromArray(a.elements,3*b)},equals:function(a){return a.x===this.x&&a.y===this.y&&a.z===this.z},fromArray:function(a,b){void 0===b&&(b=0);this.x=a[b];this.y=a[b+1];this.z=a[b+2];return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this.x;a[b+1]=this.y;a[b+2]=this.z;return a},fromBufferAttribute:function(a,b,c){void 0!==c&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute().");this.x=a.getX(b);this.y=a.getY(b);this.z=a.getZ(b);return this}, random:function(){this.x=Math.random();this.y=Math.random();this.z=Math.random();return this}});var ld=new m,Q=new M,Kk=new m(0,0,0),Lk=new m(1,1,1),Pb=new m,Bf=new m,Da=new m;Object.assign(M.prototype,{isMatrix4:!0,set:function(a,b,c,d,e,f,g,h,l,n,k,p,m,t,r,u){var q=this.elements;q[0]=a;q[4]=b;q[8]=c;q[12]=d;q[1]=e;q[5]=f;q[9]=g;q[13]=h;q[2]=l;q[6]=n;q[10]=k;q[14]=p;q[3]=m;q[7]=t;q[11]=r;q[15]=u;return this},identity:function(){this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return this},clone:function(){return(new M).fromArray(this.elements)}, copy:function(a){var b=this.elements;a=a.elements;b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=a[6];b[7]=a[7];b[8]=a[8];b[9]=a[9];b[10]=a[10];b[11]=a[11];b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15];return this},copyPosition:function(a){var b=this.elements;a=a.elements;b[12]=a[12];b[13]=a[13];b[14]=a[14];return this},extractBasis:function(a,b,c){a.setFromMatrixColumn(this,0);b.setFromMatrixColumn(this,1);c.setFromMatrixColumn(this,2);return this},makeBasis:function(a,b,c){this.set(a.x, b.x,c.x,0,a.y,b.y,c.y,0,a.z,b.z,c.z,0,0,0,0,1);return this},extractRotation:function(a){var b=this.elements,c=a.elements,d=1/ld.setFromMatrixColumn(a,0).length(),e=1/ld.setFromMatrixColumn(a,1).length();a=1/ld.setFromMatrixColumn(a,2).length();b[0]=c[0]*d;b[1]=c[1]*d;b[2]=c[2]*d;b[3]=0;b[4]=c[4]*e;b[5]=c[5]*e;b[6]=c[6]*e;b[7]=0;b[8]=c[8]*a;b[9]=c[9]*a;b[10]=c[10]*a;b[11]=0;b[12]=0;b[13]=0;b[14]=0;b[15]=1;return this},makeRotationFromEuler:function(a){a&&a.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order."); var b=this.elements,c=a.x,d=a.y,e=a.z,f=Math.cos(c);c=Math.sin(c);var g=Math.cos(d);d=Math.sin(d);var h=Math.cos(e);e=Math.sin(e);if("XYZ"===a.order){a=f*h;var l=f*e,n=c*h,k=c*e;b[0]=g*h;b[4]=-g*e;b[8]=d;b[1]=l+n*d;b[5]=a-k*d;b[9]=-c*g;b[2]=k-a*d;b[6]=n+l*d;b[10]=f*g}else"YXZ"===a.order?(a=g*h,l=g*e,n=d*h,k=d*e,b[0]=a+k*c,b[4]=n*c-l,b[8]=f*d,b[1]=f*e,b[5]=f*h,b[9]=-c,b[2]=l*c-n,b[6]=k+a*c,b[10]=f*g):"ZXY"===a.order?(a=g*h,l=g*e,n=d*h,k=d*e,b[0]=a-k*c,b[4]=-f*e,b[8]=n+l*c,b[1]=l+n*c,b[5]=f*h,b[9]= k-a*c,b[2]=-f*d,b[6]=c,b[10]=f*g):"ZYX"===a.order?(a=f*h,l=f*e,n=c*h,k=c*e,b[0]=g*h,b[4]=n*d-l,b[8]=a*d+k,b[1]=g*e,b[5]=k*d+a,b[9]=l*d-n,b[2]=-d,b[6]=c*g,b[10]=f*g):"YZX"===a.order?(a=f*g,l=f*d,n=c*g,k=c*d,b[0]=g*h,b[4]=k-a*e,b[8]=n*e+l,b[1]=e,b[5]=f*h,b[9]=-c*h,b[2]=-d*h,b[6]=l*e+n,b[10]=a-k*e):"XZY"===a.order&&(a=f*g,l=f*d,n=c*g,k=c*d,b[0]=g*h,b[4]=-e,b[8]=d*h,b[1]=a*e+k,b[5]=f*h,b[9]=l*e-n,b[2]=n*e-l,b[6]=c*h,b[10]=k*e+a);b[3]=0;b[7]=0;b[11]=0;b[12]=0;b[13]=0;b[14]=0;b[15]=1;return this},makeRotationFromQuaternion:function(a){return this.compose(Kk, a,Lk)},lookAt:function(a,b,c){var d=this.elements;Da.subVectors(a,b);0===Da.lengthSq()&&(Da.z=1);Da.normalize();Pb.crossVectors(c,Da);0===Pb.lengthSq()&&(1===Math.abs(c.z)?Da.x+=1E-4:Da.z+=1E-4,Da.normalize(),Pb.crossVectors(c,Da));Pb.normalize();Bf.crossVectors(Da,Pb);d[0]=Pb.x;d[4]=Bf.x;d[8]=Da.x;d[1]=Pb.y;d[5]=Bf.y;d[9]=Da.y;d[2]=Pb.z;d[6]=Bf.z;d[10]=Da.z;return this},multiply:function(a,b){return void 0!==b?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."), this.multiplyMatrices(a,b)):this.multiplyMatrices(this,a)},premultiply:function(a){return this.multiplyMatrices(a,this)},multiplyMatrices:function(a,b){var c=a.elements,d=b.elements;b=this.elements;a=c[0];var e=c[4],f=c[8],g=c[12],h=c[1],l=c[5],k=c[9],q=c[13],p=c[2],m=c[6],t=c[10],r=c[14],u=c[3],A=c[7],w=c[11];c=c[15];var x=d[0],z=d[4],B=d[8],y=d[12],C=d[1],D=d[5],F=d[9],G=d[13],H=d[2],J=d[6],K=d[10],L=d[14],M=d[3],N=d[7],P=d[11];d=d[15];b[0]=a*x+e*C+f*H+g*M;b[4]=a*z+e*D+f*J+g*N;b[8]=a*B+e*F+f*K+ g*P;b[12]=a*y+e*G+f*L+g*d;b[1]=h*x+l*C+k*H+q*M;b[5]=h*z+l*D+k*J+q*N;b[9]=h*B+l*F+k*K+q*P;b[13]=h*y+l*G+k*L+q*d;b[2]=p*x+m*C+t*H+r*M;b[6]=p*z+m*D+t*J+r*N;b[10]=p*B+m*F+t*K+r*P;b[14]=p*y+m*G+t*L+r*d;b[3]=u*x+A*C+w*H+c*M;b[7]=u*z+A*D+w*J+c*N;b[11]=u*B+A*F+w*K+c*P;b[15]=u*y+A*G+w*L+c*d;return this},multiplyScalar:function(a){var b=this.elements;b[0]*=a;b[4]*=a;b[8]*=a;b[12]*=a;b[1]*=a;b[5]*=a;b[9]*=a;b[13]*=a;b[2]*=a;b[6]*=a;b[10]*=a;b[14]*=a;b[3]*=a;b[7]*=a;b[11]*=a;b[15]*=a;return this},determinant:function(){var a= this.elements,b=a[0],c=a[4],d=a[8],e=a[12],f=a[1],g=a[5],h=a[9],l=a[13],k=a[2],q=a[6],p=a[10],m=a[14];return a[3]*(+e*h*q-d*l*q-e*g*p+c*l*p+d*g*m-c*h*m)+a[7]*(+b*h*m-b*l*p+e*f*p-d*f*m+d*l*k-e*h*k)+a[11]*(+b*l*q-b*g*m-e*f*q+c*f*m+e*g*k-c*l*k)+a[15]*(-d*g*k-b*h*q+b*g*p+d*f*q-c*f*p+c*h*k)},transpose:function(){var a=this.elements;var b=a[1];a[1]=a[4];a[4]=b;b=a[2];a[2]=a[8];a[8]=b;b=a[6];a[6]=a[9];a[9]=b;b=a[3];a[3]=a[12];a[12]=b;b=a[7];a[7]=a[13];a[13]=b;b=a[11];a[11]=a[14];a[14]=b;return this},setPosition:function(a, b,c){var d=this.elements;a.isVector3?(d[12]=a.x,d[13]=a.y,d[14]=a.z):(d[12]=a,d[13]=b,d[14]=c);return this},getInverse:function(a,b){void 0!==b&&console.warn("THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate.");b=this.elements;var c=a.elements;a=c[0];var d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],l=c[6],k=c[7],q=c[8],p=c[9],m=c[10],t=c[11],r=c[12],u=c[13],A=c[14];c=c[15];var w=p*A*k-u*m*k+u*l*t-h*A*t-p*l*c+h*m*c,x=r*m*k-q*A*k-r*l*t+g*A*t+q*l*c-g*m*c,z=q*u*k-r*p*k+r*h*t-g*u* t-q*h*c+g*p*c,B=r*p*l-q*u*l-r*h*m+g*u*m+q*h*A-g*p*A,y=a*w+d*x+e*z+f*B;if(0===y)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);y=1/y;b[0]=w*y;b[1]=(u*m*f-p*A*f-u*e*t+d*A*t+p*e*c-d*m*c)*y;b[2]=(h*A*f-u*l*f+u*e*k-d*A*k-h*e*c+d*l*c)*y;b[3]=(p*l*f-h*m*f-p*e*k+d*m*k+h*e*t-d*l*t)*y;b[4]=x*y;b[5]=(q*A*f-r*m*f+r*e*t-a*A*t-q*e*c+a*m*c)*y;b[6]=(r*l*f-g*A*f-r*e*k+a*A*k+g*e*c-a*l*c)*y;b[7]=(g*m*f-q*l*f+q*e*k-a*m*k-g*e*t+a*l*t)*y;b[8]=z*y;b[9]=(r*p*f-q*u*f-r*d*t+a*u*t+q*d*c-a*p*c)*y;b[10]=(g*u*f-r*h*f+r*d*k- a*u*k-g*d*c+a*h*c)*y;b[11]=(q*h*f-g*p*f-q*d*k+a*p*k+g*d*t-a*h*t)*y;b[12]=B*y;b[13]=(q*u*e-r*p*e+r*d*m-a*u*m-q*d*A+a*p*A)*y;b[14]=(r*h*e-g*u*e-r*d*l+a*u*l+g*d*A-a*h*A)*y;b[15]=(g*p*e-q*h*e+q*d*l-a*p*l-g*d*m+a*h*m)*y;return this},scale:function(a){var b=this.elements,c=a.x,d=a.y;a=a.z;b[0]*=c;b[4]*=d;b[8]*=a;b[1]*=c;b[5]*=d;b[9]*=a;b[2]*=c;b[6]*=d;b[10]*=a;b[3]*=c;b[7]*=d;b[11]*=a;return this},getMaxScaleOnAxis:function(){var a=this.elements;return Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1]+a[2]*a[2],a[4]* a[4]+a[5]*a[5]+a[6]*a[6],a[8]*a[8]+a[9]*a[9]+a[10]*a[10]))},makeTranslation:function(a,b,c){this.set(1,0,0,a,0,1,0,b,0,0,1,c,0,0,0,1);return this},makeRotationX:function(a){var b=Math.cos(a);a=Math.sin(a);this.set(1,0,0,0,0,b,-a,0,0,a,b,0,0,0,0,1);return this},makeRotationY:function(a){var b=Math.cos(a);a=Math.sin(a);this.set(b,0,a,0,0,1,0,0,-a,0,b,0,0,0,0,1);return this},makeRotationZ:function(a){var b=Math.cos(a);a=Math.sin(a);this.set(b,-a,0,0,a,b,0,0,0,0,1,0,0,0,0,1);return this},makeRotationAxis:function(a, b){var c=Math.cos(b);b=Math.sin(b);var d=1-c,e=a.x,f=a.y;a=a.z;var g=d*e,h=d*f;this.set(g*e+c,g*f-b*a,g*a+b*f,0,g*f+b*a,h*f+c,h*a-b*e,0,g*a-b*f,h*a+b*e,d*a*a+c,0,0,0,0,1);return this},makeScale:function(a,b,c){this.set(a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1);return this},makeShear:function(a,b,c){this.set(1,b,c,0,a,1,c,0,a,b,1,0,0,0,0,1);return this},compose:function(a,b,c){var d=this.elements,e=b._x,f=b._y,g=b._z,h=b._w,l=e+e,k=f+f,q=g+g;b=e*l;var p=e*k;e*=q;var m=f*k;f*=q;g*=q;l*=h;k*=h;h*=q;q=c.x;var t= c.y;c=c.z;d[0]=(1-(m+g))*q;d[1]=(p+h)*q;d[2]=(e-k)*q;d[3]=0;d[4]=(p-h)*t;d[5]=(1-(b+g))*t;d[6]=(f+l)*t;d[7]=0;d[8]=(e+k)*c;d[9]=(f-l)*c;d[10]=(1-(b+m))*c;d[11]=0;d[12]=a.x;d[13]=a.y;d[14]=a.z;d[15]=1;return this},decompose:function(a,b,c){var d=this.elements,e=ld.set(d[0],d[1],d[2]).length(),f=ld.set(d[4],d[5],d[6]).length(),g=ld.set(d[8],d[9],d[10]).length();0>this.determinant()&&(e=-e);a.x=d[12];a.y=d[13];a.z=d[14];Q.copy(this);a=1/e;d=1/f;var h=1/g;Q.elements[0]*=a;Q.elements[1]*=a;Q.elements[2]*= a;Q.elements[4]*=d;Q.elements[5]*=d;Q.elements[6]*=d;Q.elements[8]*=h;Q.elements[9]*=h;Q.elements[10]*=h;b.setFromRotationMatrix(Q);c.x=e;c.y=f;c.z=g;return this},makePerspective:function(a,b,c,d,e,f){void 0===f&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var g=this.elements;g[0]=2*e/(b-a);g[4]=0;g[8]=(b+a)/(b-a);g[12]=0;g[1]=0;g[5]=2*e/(c-d);g[9]=(c+d)/(c-d);g[13]=0;g[2]=0;g[6]=0;g[10]=-(f+e)/(f-e);g[14]=-2*f*e/(f-e);g[3]= 0;g[7]=0;g[11]=-1;g[15]=0;return this},makeOrthographic:function(a,b,c,d,e,f){var g=this.elements,h=1/(b-a),l=1/(c-d),k=1/(f-e);g[0]=2*h;g[4]=0;g[8]=0;g[12]=-((b+a)*h);g[1]=0;g[5]=2*l;g[9]=0;g[13]=-((c+d)*l);g[2]=0;g[6]=0;g[10]=-2*k;g[14]=-((f+e)*k);g[3]=0;g[7]=0;g[11]=0;g[15]=1;return this},equals:function(a){var b=this.elements;a=a.elements;for(var c=0;16>c;c++)if(b[c]!==a[c])return!1;return!0},fromArray:function(a,b){void 0===b&&(b=0);for(var c=0;16>c;c++)this.elements[c]=a[c+b];return this},toArray:function(a, b){void 0===a&&(a=[]);void 0===b&&(b=0);var c=this.elements;a[b]=c[0];a[b+1]=c[1];a[b+2]=c[2];a[b+3]=c[3];a[b+4]=c[4];a[b+5]=c[5];a[b+6]=c[6];a[b+7]=c[7];a[b+8]=c[8];a[b+9]=c[9];a[b+10]=c[10];a[b+11]=c[11];a[b+12]=c[12];a[b+13]=c[13];a[b+14]=c[14];a[b+15]=c[15];return a}});var xi=new M,yi=new na;Ub.RotationOrders="XYZ YZX ZXY XZY YXZ ZYX".split(" ");Ub.DefaultOrder="XYZ";Object.defineProperties(Ub.prototype,{x:{get:function(){return this._x},set:function(a){this._x=a;this._onChangeCallback()}},y:{get:function(){return this._y}, set:function(a){this._y=a;this._onChangeCallback()}},z:{get:function(){return this._z},set:function(a){this._z=a;this._onChangeCallback()}},order:{get:function(){return this._order},set:function(a){this._order=a;this._onChangeCallback()}}});Object.assign(Ub.prototype,{isEuler:!0,set:function(a,b,c,d){this._x=a;this._y=b;this._z=c;this._order=d||this._order;this._onChangeCallback();return this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(a){this._x= a._x;this._y=a._y;this._z=a._z;this._order=a._order;this._onChangeCallback();return this},setFromRotationMatrix:function(a,b,c){var d=K.clamp,e=a.elements;a=e[0];var f=e[4],g=e[8],h=e[1],l=e[5],k=e[9],q=e[2],p=e[6];e=e[10];b=b||this._order;switch(b){case "XYZ":this._y=Math.asin(d(g,-1,1));.9999999>Math.abs(g)?(this._x=Math.atan2(-k,e),this._z=Math.atan2(-f,a)):(this._x=Math.atan2(p,l),this._z=0);break;case "YXZ":this._x=Math.asin(-d(k,-1,1));.9999999>Math.abs(k)?(this._y=Math.atan2(g,e),this._z=Math.atan2(h, l)):(this._y=Math.atan2(-q,a),this._z=0);break;case "ZXY":this._x=Math.asin(d(p,-1,1));.9999999>Math.abs(p)?(this._y=Math.atan2(-q,e),this._z=Math.atan2(-f,l)):(this._y=0,this._z=Math.atan2(h,a));break;case "ZYX":this._y=Math.asin(-d(q,-1,1));.9999999>Math.abs(q)?(this._x=Math.atan2(p,e),this._z=Math.atan2(h,a)):(this._x=0,this._z=Math.atan2(-f,l));break;case "YZX":this._z=Math.asin(d(h,-1,1));.9999999>Math.abs(h)?(this._x=Math.atan2(-k,l),this._y=Math.atan2(-q,a)):(this._x=0,this._y=Math.atan2(g, e));break;case "XZY":this._z=Math.asin(-d(f,-1,1));.9999999>Math.abs(f)?(this._x=Math.atan2(p,l),this._y=Math.atan2(g,a)):(this._x=Math.atan2(-k,e),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+b)}this._order=b;!1!==c&&this._onChangeCallback();return this},setFromQuaternion:function(a,b,c){xi.makeRotationFromQuaternion(a);return this.setFromRotationMatrix(xi,b,c)},setFromVector3:function(a,b){return this.set(a.x,a.y,a.z,b||this._order)}, reorder:function(a){yi.setFromEuler(this);return this.setFromQuaternion(yi,a)},equals:function(a){return a._x===this._x&&a._y===this._y&&a._z===this._z&&a._order===this._order},fromArray:function(a){this._x=a[0];this._y=a[1];this._z=a[2];void 0!==a[3]&&(this._order=a[3]);this._onChangeCallback();return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this._x;a[b+1]=this._y;a[b+2]=this._z;a[b+3]=this._order;return a},toVector3:function(a){return a?a.set(this._x,this._y,this._z): new m(this._x,this._y,this._z)},_onChange:function(a){this._onChangeCallback=a;return this},_onChangeCallback:function(){}});Object.assign(Fe.prototype,{set:function(a){this.mask=1<e&&(e=k);q>f&&(f=q);p>g&&(g=p)}this.min.set(b,c,d);this.max.set(e,f,g);return this},setFromBufferAttribute:function(a){for(var b=Infinity,c=Infinity,d=Infinity,e=-Infinity,f=-Infinity,g=-Infinity,h=0,l=a.count;he&&(e=k);q>f&&(f=q);p>g&&(g=p)}this.min.set(b,c,d);this.max.set(e,f,g);return this},setFromPoints:function(a){this.makeEmpty();for(var b=0,c=a.length;bthis.max.x||a.ythis.max.y||a.zthis.max.z?!1:!0},containsBox:function(a){return this.min.x<=a.min.x&&a.max.x<=this.max.x&&this.min.y<=a.min.y&&a.max.y<=this.max.y&&this.min.z<=a.min.z&&a.max.z<=this.max.z},getParameter:function(a,b){void 0===b&&(console.warn("THREE.Box3: .getParameter() target is now required"),b=new m);return b.set((a.x-this.min.x)/(this.max.x-this.min.x),(a.y-this.min.y)/(this.max.y-this.min.y),(a.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(a){return a.max.xthis.max.x|| a.max.ythis.max.y||a.max.zthis.max.z?!1:!0},intersectsSphere:function(a){this.clampPoint(a.center,we);return we.distanceToSquared(a.center)<=a.radius*a.radius},intersectsPlane:function(a){if(0=-a.constant},intersectsTriangle:function(a){if(this.isEmpty())return!1;this.getCenter(xe);Df.subVectors(this.max,xe);nd.subVectors(a.a,xe);od.subVectors(a.b,xe);pd.subVectors(a.c,xe);Qb.subVectors(od,nd);Rb.subVectors(pd,od);qc.subVectors(nd,pd);a=[0,-Qb.z,Qb.y,0,-Rb.z,Rb.y,0,-qc.z,qc.y,Qb.z,0,-Qb.x,Rb.z,0,-Rb.x,qc.z,0,-qc.x,-Qb.y,Qb.x,0,-Rb.y,Rb.x,0,-qc.y,qc.x,0];if(!bg(a,nd,od,pd,Df))return!1; a=[1,0,0,0,1,0,0,0,1];if(!bg(a,nd,od,pd,Df))return!1;Ef.crossVectors(Qb,Rb);a=[Ef.x,Ef.y,Ef.z];return bg(a,nd,od,pd,Df)},clampPoint:function(a,b){void 0===b&&(console.warn("THREE.Box3: .clampPoint() target is now required"),b=new m);return b.copy(a).clamp(this.min,this.max)},distanceToPoint:function(a){return we.copy(a).clamp(this.min,this.max).sub(a).length()},getBoundingSphere:function(a){void 0===a&&console.error("THREE.Box3: .getBoundingSphere() target is now required");this.getCenter(a.center); a.radius=.5*this.getSize(we).length();return a},intersect:function(a){this.min.max(a.min);this.max.min(a.max);this.isEmpty()&&this.makeEmpty();return this},union:function(a){this.min.min(a.min);this.max.max(a.max);return this},applyMatrix4:function(a){if(this.isEmpty())return this;yb[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(a);yb[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(a);yb[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(a);yb[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(a); yb[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(a);yb[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(a);yb[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(a);yb[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(a);this.setFromPoints(yb);return this},translate:function(a){this.min.add(a);this.max.add(a);return this},equals:function(a){return a.min.equals(this.min)&&a.max.equals(this.max)}});var Qk=new Ta;Object.assign(eb.prototype,{set:function(a,b){this.center.copy(a);this.radius= b;return this},setFromPoints:function(a,b){var c=this.center;void 0!==b?c.copy(b):Qk.setFromPoints(a).getCenter(c);for(var d=b=0,e=a.length;dthis.radius},makeEmpty:function(){this.center.set(0,0,0);this.radius=-1;return this},containsPoint:function(a){return a.distanceToSquared(this.center)<= this.radius*this.radius},distanceToPoint:function(a){return a.distanceTo(this.center)-this.radius},intersectsSphere:function(a){var b=this.radius+a.radius;return a.center.distanceToSquared(this.center)<=b*b},intersectsBox:function(a){return a.intersectsSphere(this)},intersectsPlane:function(a){return Math.abs(a.distanceToPoint(this.center))<=this.radius},clampPoint:function(a,b){var c=this.center.distanceToSquared(a);void 0===b&&(console.warn("THREE.Sphere: .clampPoint() target is now required"), b=new m);b.copy(a);c>this.radius*this.radius&&(b.sub(this.center).normalize(),b.multiplyScalar(this.radius).add(this.center));return b},getBoundingBox:function(a){void 0===a&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),a=new Ta);if(this.isEmpty())return a.makeEmpty(),a;a.set(this.center,this.center);a.expandByScalar(this.radius);return a},applyMatrix4:function(a){this.center.applyMatrix4(a);this.radius*=a.getMaxScaleOnAxis();return this},translate:function(a){this.center.add(a); return this},equals:function(a){return a.center.equals(this.center)&&a.radius===this.radius}});var zb=new m,$g=new m,Ff=new m,Sb=new m,ah=new m,Gf=new m,bh=new m;Object.assign(Wb.prototype,{set:function(a,b){this.origin.copy(a);this.direction.copy(b);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.origin.copy(a.origin);this.direction.copy(a.direction);return this},at:function(a,b){void 0===b&&(console.warn("THREE.Ray: .at() target is now required"),b=new m); return b.copy(this.direction).multiplyScalar(a).add(this.origin)},lookAt:function(a){this.direction.copy(a).sub(this.origin).normalize();return this},recast:function(a){this.origin.copy(this.at(a,zb));return this},closestPointToPoint:function(a,b){void 0===b&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),b=new m);b.subVectors(a,this.origin);a=b.dot(this.direction);return 0>a?b.copy(this.origin):b.copy(this.direction).multiplyScalar(a).add(this.origin)},distanceToPoint:function(a){return Math.sqrt(this.distanceSqToPoint(a))}, distanceSqToPoint:function(a){var b=zb.subVectors(a,this.origin).dot(this.direction);if(0>b)return this.origin.distanceToSquared(a);zb.copy(this.direction).multiplyScalar(b).add(this.origin);return zb.distanceToSquared(a)},distanceSqToSegment:function(a,b,c,d){$g.copy(a).add(b).multiplyScalar(.5);Ff.copy(b).sub(a).normalize();Sb.copy(this.origin).sub($g);var e=.5*a.distanceTo(b),f=-this.direction.dot(Ff),g=Sb.dot(this.direction),h=-Sb.dot(Ff),l=Sb.lengthSq(),k=Math.abs(1-f*f);if(0=-q?b<=q?(e=1/k,a*=e,b*=e,f=a*(a+f*b+2*g)+b*(f*a+b+2*h)+l):(b=e,a=Math.max(0,-(f*b+g)),f=-a*a+b*(b+2*h)+l):(b=-e,a=Math.max(0,-(f*b+g)),f=-a*a+b*(b+2*h)+l):b<=-q?(a=Math.max(0,-(-f*e+g)),b=0a)return null;a=Math.sqrt(a-d);d=c-a;c+=a;return 0>d&&0>c?null:0>d?this.at(c,b):this.at(d,b)},intersectsSphere:function(a){return this.distanceSqToPoint(a.center)<=a.radius*a.radius},distanceToPlane:function(a){var b=a.normal.dot(this.direction);if(0===b)return 0===a.distanceToPoint(this.origin)?0:null;a=-(this.origin.dot(a.normal)+ a.constant)/b;return 0<=a?a:null},intersectPlane:function(a,b){a=this.distanceToPlane(a);return null===a?null:this.at(a,b)},intersectsPlane:function(a){var b=a.distanceToPoint(this.origin);return 0===b||0>a.normal.dot(this.direction)*b?!0:!1},intersectBox:function(a,b){var c=1/this.direction.x;var d=1/this.direction.y;var e=1/this.direction.z,f=this.origin;if(0<=c){var g=(a.min.x-f.x)*c;c*=a.max.x-f.x}else g=(a.max.x-f.x)*c,c*=a.min.x-f.x;if(0<=d){var h=(a.min.y-f.y)*d;d*=a.max.y-f.y}else h=(a.max.y- f.y)*d,d*=a.min.y-f.y;if(g>d||h>c)return null;if(h>g||g!==g)g=h;if(da||h>c)return null;if(h>g||g!==g)g=h;if(ac?null:this.at(0<=g?g:c,b)},intersectsBox:function(a){return null!==this.intersectBox(a,zb)},intersectTriangle:function(a,b,c,d,e){ah.subVectors(b,a);Gf.subVectors(c,a);bh.crossVectors(ah,Gf);b=this.direction.dot(bh);if(0b)d=-1,b=-b;else return null; Sb.subVectors(this.origin,a);a=d*this.direction.dot(Gf.crossVectors(Sb,Gf));if(0>a)return null;c=d*this.direction.dot(ah.cross(Sb));if(0>c||a+c>b)return null;a=-d*Sb.dot(bh);return 0>a?null:this.at(a/b,e)},applyMatrix4:function(a){this.origin.applyMatrix4(a);this.direction.transformDirection(a);return this},equals:function(a){return a.origin.equals(this.origin)&&a.direction.equals(this.direction)}});var ch=new m,Rk=new m,Sk=new xa;Object.assign(Ua.prototype,{isPlane:!0,set:function(a,b){this.normal.copy(a); this.constant=b;return this},setComponents:function(a,b,c,d){this.normal.set(a,b,c);this.constant=d;return this},setFromNormalAndCoplanarPoint:function(a,b){this.normal.copy(a);this.constant=-b.dot(this.normal);return this},setFromCoplanarPoints:function(a,b,c){b=ch.subVectors(c,b).cross(Rk.subVectors(a,b)).normalize();this.setFromNormalAndCoplanarPoint(b,a);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.normal.copy(a.normal);this.constant=a.constant; return this},normalize:function(){var a=1/this.normal.length();this.normal.multiplyScalar(a);this.constant*=a;return this},negate:function(){this.constant*=-1;this.normal.negate();return this},distanceToPoint:function(a){return this.normal.dot(a)+this.constant},distanceToSphere:function(a){return this.distanceToPoint(a.center)-a.radius},projectPoint:function(a,b){void 0===b&&(console.warn("THREE.Plane: .projectPoint() target is now required"),b=new m);return b.copy(this.normal).multiplyScalar(-this.distanceToPoint(a)).add(a)}, intersectLine:function(a,b){void 0===b&&(console.warn("THREE.Plane: .intersectLine() target is now required"),b=new m);var c=a.delta(ch),d=this.normal.dot(c);if(0===d){if(0===this.distanceToPoint(a.start))return b.copy(a.start)}else if(d=-(a.start.dot(this.normal)+this.constant)/d,!(0>d||1b&&0a&&0=Bb.x+Bb.y},getUV:function(a,b,c,d,e,f,g,h){this.getBarycoord(a,b,c,d,Bb);h.set(0,0);h.addScaledVector(e,Bb.x);h.addScaledVector(f,Bb.y);h.addScaledVector(g,Bb.z);return h},isFrontFacing:function(a, b,c,d){cb.subVectors(c,b);Ab.subVectors(a,b);return 0>cb.cross(Ab).dot(d)?!0:!1}});Object.assign(wa.prototype,{set:function(a,b,c){this.a.copy(a);this.b.copy(b);this.c.copy(c);return this},setFromPointsAndIndices:function(a,b,c,d){this.a.copy(a[b]);this.b.copy(a[c]);this.c.copy(a[d]);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.a.copy(a.a);this.b.copy(a.b);this.c.copy(a.c);return this},getArea:function(){cb.subVectors(this.c,this.b);Ab.subVectors(this.a, this.b);return.5*cb.cross(Ab).length()},getMidpoint:function(a){void 0===a&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),a=new m);return a.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(a){return wa.getNormal(this.a,this.b,this.c,a)},getPlane:function(a){void 0===a&&(console.warn("THREE.Triangle: .getPlane() target is now required"),a=new Ua);return a.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(a,b){return wa.getBarycoord(a, this.a,this.b,this.c,b)},getUV:function(a,b,c,d,e){return wa.getUV(a,this.a,this.b,this.c,b,c,d,e)},containsPoint:function(a){return wa.containsPoint(a,this.a,this.b,this.c)},isFrontFacing:function(a){return wa.isFrontFacing(this.a,this.b,this.c,a)},intersectsBox:function(a){return a.intersectsTriangle(this)},closestPointToPoint:function(a,b){void 0===b&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),b=new m);var c=this.a,d=this.b,e=this.c;qd.subVectors(d,c);rd.subVectors(e, c);eh.subVectors(a,c);var f=qd.dot(eh),g=rd.dot(eh);if(0>=f&&0>=g)return b.copy(c);fh.subVectors(a,d);var h=qd.dot(fh),l=rd.dot(fh);if(0<=h&&l<=h)return b.copy(d);var k=f*l-h*g;if(0>=k&&0<=f&&0>=h)return d=f/(f-h),b.copy(c).addScaledVector(qd,d);gh.subVectors(a,e);a=qd.dot(gh);var q=rd.dot(gh);if(0<=q&&a<=q)return b.copy(e);f=a*g-f*q;if(0>=f&&0<=g&&0>=q)return k=g/(g-q),b.copy(c).addScaledVector(rd,k);g=h*q-a*l;if(0>=g&&0<=l-h&&0<=a-q)return Di.subVectors(e,d),k=(l-h)/(l-h+(a-q)),b.copy(d).addScaledVector(Di, k);e=1/(g+f+k);d=f*e;k*=e;return b.copy(c).addScaledVector(qd,d).addScaledVector(rd,k)},equals:function(a){return a.a.equals(this.a)&&a.b.equals(this.b)&&a.c.equals(this.c)}});var Ei={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388, crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146, floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323, lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273, moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638, sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Aa={h:0,s:0,l:0},Hf={h:0,s:0,l:0};Object.assign(D.prototype,{isColor:!0,r:1,g:1,b:1,set:function(a){a&&a.isColor?this.copy(a):"number"===typeof a?this.setHex(a):"string"=== typeof a&&this.setStyle(a);return this},setScalar:function(a){this.b=this.g=this.r=a;return this},setHex:function(a){a=Math.floor(a);this.r=(a>>16&255)/255;this.g=(a>>8&255)/255;this.b=(a&255)/255;return this},setRGB:function(a,b,c){this.r=a;this.g=b;this.b=c;return this},setHSL:function(a,b,c){a=K.euclideanModulo(a,1);b=K.clamp(b,0,1);c=K.clamp(c,0,1);0===b?this.r=this.g=this.b=c:(b=.5>=c?c*(1+b):c+b-c*b,c=2*c-b,this.r=cg(c,b,a+1/3),this.g=cg(c,b,a),this.b=cg(c,b,a-1/3));return this},setStyle:function(a){function b(b){void 0!== b&&1>parseFloat(b)&&console.warn("THREE.Color: Alpha component of "+a+" will be ignored.")}var c;if(c=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(a)){var d=c[2];switch(c[1]){case "rgb":case "rgba":if(c=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(d))return this.r=Math.min(255,parseInt(c[1],10))/255,this.g=Math.min(255,parseInt(c[2],10))/255,this.b=Math.min(255,parseInt(c[3],10))/255,b(c[5]),this;if(c=/^(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(d))return this.r= Math.min(100,parseInt(c[1],10))/100,this.g=Math.min(100,parseInt(c[2],10))/100,this.b=Math.min(100,parseInt(c[3],10))/100,b(c[5]),this;break;case "hsl":case "hsla":if(c=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(d)){d=parseFloat(c[1])/360;var e=parseInt(c[2],10)/100,f=parseInt(c[3],10)/100;b(c[5]);return this.setHSL(d,e,f)}}}else if(c=/^#([A-Fa-f0-9]+)$/.exec(a)){c=c[1];d=c.length;if(3===d)return this.r=parseInt(c.charAt(0)+c.charAt(0),16)/255,this.g=parseInt(c.charAt(1)+ c.charAt(1),16)/255,this.b=parseInt(c.charAt(2)+c.charAt(2),16)/255,this;if(6===d)return this.r=parseInt(c.charAt(0)+c.charAt(1),16)/255,this.g=parseInt(c.charAt(2)+c.charAt(3),16)/255,this.b=parseInt(c.charAt(4)+c.charAt(5),16)/255,this}return a&&0=h?l/(e+f):l/(2-e-f);switch(e){case b:g=(c-d)/l+(cthis.opacity&&(d.opacity= this.opacity);!0===this.transparent&&(d.transparent=this.transparent);d.depthFunc=this.depthFunc;d.depthTest=this.depthTest;d.depthWrite=this.depthWrite;d.stencilWrite=this.stencilWrite;d.stencilWriteMask=this.stencilWriteMask;d.stencilFunc=this.stencilFunc;d.stencilRef=this.stencilRef;d.stencilFuncMask=this.stencilFuncMask;d.stencilFail=this.stencilFail;d.stencilZFail=this.stencilZFail;d.stencilZPass=this.stencilZPass;this.rotation&&0!==this.rotation&&(d.rotation=this.rotation);!0===this.polygonOffset&& (d.polygonOffset=!0);0!==this.polygonOffsetFactor&&(d.polygonOffsetFactor=this.polygonOffsetFactor);0!==this.polygonOffsetUnits&&(d.polygonOffsetUnits=this.polygonOffsetUnits);this.linewidth&&1!==this.linewidth&&(d.linewidth=this.linewidth);void 0!==this.dashSize&&(d.dashSize=this.dashSize);void 0!==this.gapSize&&(d.gapSize=this.gapSize);void 0!==this.scale&&(d.scale=this.scale);!0===this.dithering&&(d.dithering=!0);0g;g++)if(f[g]===f[(g+1)%3]){a.push(d);break}for(c=a.length-1;0<=c;c--)for(d=a[c],this.faces.splice(d,1),e=0,f=this.faceVertexUvs.length;e\n\t#include \n}", fragmentShader:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n}",side:1,blending:0});d.uniforms.tEquirect.value=b;b=new X(new Gd(5,5,5),d);c.add(b);(new Ec(1,10,this)).update(a,c);b.geometry.dispose();b.material.dispose();return this};$b.prototype=Object.create(W.prototype);$b.prototype.constructor=$b;$b.prototype.isDataTexture= !0;var td=new eb,Kf=new m;Object.assign(Fc.prototype,{set:function(a,b,c,d,e,f){var g=this.planes;g[0].copy(a);g[1].copy(b);g[2].copy(c);g[3].copy(d);g[4].copy(e);g[5].copy(f);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){for(var b=this.planes,c=0;6>c;c++)b[c].copy(a.planes[c]);return this},setFromProjectionMatrix:function(a){var b=this.planes,c=a.elements;a=c[0];var d=c[1],e=c[2],f=c[3],g=c[4],h=c[5],l=c[6],k=c[7],q=c[8],p=c[9],m=c[10],t=c[11],r=c[12],u= c[13],w=c[14];c=c[15];b[0].setComponents(f-a,k-g,t-q,c-r).normalize();b[1].setComponents(f+a,k+g,t+q,c+r).normalize();b[2].setComponents(f+d,k+h,t+p,c+u).normalize();b[3].setComponents(f-d,k-h,t-p,c-u).normalize();b[4].setComponents(f-e,k-l,t-m,c-w).normalize();b[5].setComponents(f+e,k+l,t+m,c+w).normalize();return this},intersectsObject:function(a){var b=a.geometry;null===b.boundingSphere&&b.computeBoundingSphere();td.copy(b.boundingSphere).applyMatrix4(a.matrixWorld);return this.intersectsSphere(td)}, intersectsSprite:function(a){td.center.set(0,0,0);td.radius=.7071067811865476;td.applyMatrix4(a.matrixWorld);return this.intersectsSphere(td)},intersectsSphere:function(a){var b=this.planes,c=a.center;a=-a.radius;for(var d=0;6>d;d++)if(b[d].distanceToPoint(c)c;c++){var d=b[c];Kf.x=0d.distanceToPoint(Kf))return!1}return!0}, containsPoint:function(a){for(var b=this.planes,c=0;6>c;c++)if(0>b[c].distanceToPoint(a))return!1;return!0}});var y={common:{diffuse:{value:new D(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new xa},uv2Transform:{value:new xa},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null}, lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new w(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:2.5E-4},fogNear:{value:1},fogFar:{value:2E3},fogColor:{value:new D(16777215)}}, lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalOffset:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalOffset:{},shadowRadius:{}, shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalOffset:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{}, height:{}}}},points:{diffuse:{value:new D(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},uvTransform:{value:new xa}},sprite:{diffuse:{value:new D(15658734)},opacity:{value:1},center:{value:new w(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},uvTransform:{value:new xa}}};Fd.prototype=Object.create(L.prototype);Fd.prototype.constructor=Fd;ac.prototype=Object.create(F.prototype);ac.prototype.constructor=ac;var N={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif", alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif", aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif", bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif", clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif", clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif", color_vertex:"#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}", cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n#define cubeUV_maxMipLevel 8.0\n#define cubeUV_minMipLevel 4.0\n#define cubeUV_maxTileSize 256.0\n#define cubeUV_minTileSize 16.0\nfloat getFace(vec3 direction) {\n vec3 absDirection = abs(direction);\n float face = -1.0;\n if (absDirection.x > absDirection.z) {\n if (absDirection.x > absDirection.y)\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if (absDirection.z > absDirection.y)\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n}\nvec2 getUV(vec3 direction, float face) {\n vec2 uv;\n if (face == 0.0) {\n uv = vec2(direction.z, direction.y) / abs(direction.x); } else if (face == 1.0) {\n uv = vec2(-direction.x, -direction.z) / abs(direction.y); } else if (face == 2.0) {\n uv = vec2(-direction.x, direction.y) / abs(direction.z); } else if (face == 3.0) {\n uv = vec2(-direction.z, direction.y) / abs(direction.x); } else if (face == 4.0) {\n uv = vec2(-direction.x, direction.z) / abs(direction.y); } else {\n uv = vec2(direction.x, direction.y) / abs(direction.z); }\n return 0.5 * (uv + 1.0);\n}\nvec3 bilinearCubeUV(sampler2D envMap, vec3 direction, float mipInt) {\n float face = getFace(direction);\n float filterInt = max(cubeUV_minMipLevel - mipInt, 0.0);\n mipInt = max(mipInt, cubeUV_minMipLevel);\n float faceSize = exp2(mipInt);\n float texelSize = 1.0 / (3.0 * cubeUV_maxTileSize);\n vec2 uv = getUV(direction, face) * (faceSize - 1.0);\n vec2 f = fract(uv);\n uv += 0.5 - f;\n if (face > 2.0) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n if(mipInt < cubeUV_maxMipLevel){\n uv.y += 2.0 * cubeUV_maxTileSize;\n }\n uv.y += filterInt * 2.0 * cubeUV_minTileSize;\n uv.x += 3.0 * max(0.0, cubeUV_maxTileSize - 2.0 * faceSize);\n uv *= texelSize;\n vec3 tl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n uv.x += texelSize;\n vec3 tr = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n uv.y += texelSize;\n vec3 br = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n uv.x -= texelSize;\n vec3 bl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n vec3 tm = mix(tl, tr, f.x);\n vec3 bm = mix(bl, br, f.x);\n return mix(tm, bm, f.y);\n}\n#define r0 1.0\n#define v0 0.339\n#define m0 -2.0\n#define r1 0.8\n#define v1 0.276\n#define m1 -1.0\n#define r4 0.4\n#define v4 0.046\n#define m4 2.0\n#define r5 0.305\n#define v5 0.016\n#define m5 3.0\n#define r6 0.21\n#define v6 0.0038\n#define m6 4.0\nfloat roughnessToMip(float roughness) {\n float mip = 0.0;\n if (roughness >= r1) {\n mip = (r0 - roughness) * (m1 - m0) / (r0 - r1) + m0;\n } else if (roughness >= r4) {\n mip = (r1 - roughness) * (m4 - m1) / (r1 - r4) + m1;\n } else if (roughness >= r5) {\n mip = (r4 - roughness) * (m5 - m4) / (r4 - r5) + m4;\n } else if (roughness >= r6) {\n mip = (r5 - roughness) * (m6 - m5) / (r5 - r6) + m5;\n } else {\n mip = -2.0 * log2(1.16 * roughness); }\n return mip;\n}\nvec4 textureCubeUV(sampler2D envMap, vec3 sampleDir, float roughness) {\n float mip = clamp(roughnessToMip(roughness), m0, cubeUV_maxMipLevel);\n float mipF = fract(mip);\n float mipInt = floor(mip);\n vec3 color0 = bilinearCubeUV(envMap, sampleDir, mipInt);\n if (mipF == 0.0) {\n return vec4(color0, 1.0);\n } else {\n vec3 color1 = bilinearCubeUV(envMap, sampleDir, mipInt + 1.0);\n return vec4(mix(color0, color1, mipF), 1.0);\n }\n}\n#endif", defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif", displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif", emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}", envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\t\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\treflectVec = normalize( reflectVec );\n\t\tvec2 sampleUV = equirectUv( reflectVec );\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif", envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif", envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t vec3 reflectVec = reflect( -viewDir, normal );\n\t\t reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t vec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV = equirectUv( reflectVec );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif", envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) { \n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif", fog_vertex:"#ifdef USE_FOG\n\tfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif", gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif", lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif", lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif", lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)", lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)", lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif", lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}", lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif", lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif", lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif", logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif", map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif", map_particle_pars_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif", morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif", morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif", normal_fragment_begin:"#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;", normal_fragment_maps:"#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif", normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\tvec3 N = normalize( surf_norm );\n\t\tmat3 tsn = mat3( S, T, N );\n\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif", clearcoat_normal_fragment_begin:"#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN );\n\t#endif\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif", packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}", premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif", roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif", shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalOffset;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif", shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalOffset, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalOffset, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalOffset, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif", shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}", skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif", skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif", specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}", uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif", uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}", background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include \nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include \n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}", cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}", depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}", distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}", distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}", equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}", linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}", linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_ENVMAP\n\t#include \n\t#include \n\t#include \n\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}", meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}", meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}", meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define REFLECTIVITY\n\t#define CLEARCOAT\n\t#define TRANSPARENCY\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef TRANSPARENCY\n\tuniform float transparency;\n#endif\n#ifdef REFLECTIVITY\n\tuniform float reflectivity;\n#endif\n#ifdef CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheen;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#ifdef TRANSPARENCY\n\t\tdiffuseColor.a *= saturate( 1. - transparency + linearToRelativeLuminance( reflectedLight.directSpecular + reflectedLight.indirectSpecular ) );\n\t#endif\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}", normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}", normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}", points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}", points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}", shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}", sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n}", sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}"}, gb={basic:{uniforms:va([y.common,y.specularmap,y.envmap,y.aomap,y.lightmap,y.fog]),vertexShader:N.meshbasic_vert,fragmentShader:N.meshbasic_frag},lambert:{uniforms:va([y.common,y.specularmap,y.envmap,y.aomap,y.lightmap,y.emissivemap,y.fog,y.lights,{emissive:{value:new D(0)}}]),vertexShader:N.meshlambert_vert,fragmentShader:N.meshlambert_frag},phong:{uniforms:va([y.common,y.specularmap,y.envmap,y.aomap,y.lightmap,y.emissivemap,y.bumpmap,y.normalmap,y.displacementmap,y.fog,y.lights,{emissive:{value:new D(0)}, specular:{value:new D(1118481)},shininess:{value:30}}]),vertexShader:N.meshphong_vert,fragmentShader:N.meshphong_frag},standard:{uniforms:va([y.common,y.envmap,y.aomap,y.lightmap,y.emissivemap,y.bumpmap,y.normalmap,y.displacementmap,y.roughnessmap,y.metalnessmap,y.fog,y.lights,{emissive:{value:new D(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:N.meshphysical_vert,fragmentShader:N.meshphysical_frag},toon:{uniforms:va([y.common,y.specularmap,y.aomap,y.lightmap, y.emissivemap,y.bumpmap,y.normalmap,y.displacementmap,y.gradientmap,y.fog,y.lights,{emissive:{value:new D(0)},specular:{value:new D(1118481)},shininess:{value:30}}]),vertexShader:N.meshtoon_vert,fragmentShader:N.meshtoon_frag},matcap:{uniforms:va([y.common,y.bumpmap,y.normalmap,y.displacementmap,y.fog,{matcap:{value:null}}]),vertexShader:N.meshmatcap_vert,fragmentShader:N.meshmatcap_frag},points:{uniforms:va([y.points,y.fog]),vertexShader:N.points_vert,fragmentShader:N.points_frag},dashed:{uniforms:va([y.common, y.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:N.linedashed_vert,fragmentShader:N.linedashed_frag},depth:{uniforms:va([y.common,y.displacementmap]),vertexShader:N.depth_vert,fragmentShader:N.depth_frag},normal:{uniforms:va([y.common,y.bumpmap,y.normalmap,y.displacementmap,{opacity:{value:1}}]),vertexShader:N.normal_vert,fragmentShader:N.normal_frag},sprite:{uniforms:va([y.sprite,y.fog]),vertexShader:N.sprite_vert,fragmentShader:N.sprite_frag},background:{uniforms:{uvTransform:{value:new xa}, t2D:{value:null}},vertexShader:N.background_vert,fragmentShader:N.background_frag},cube:{uniforms:va([y.envmap,{opacity:{value:1}}]),vertexShader:N.cube_vert,fragmentShader:N.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:N.equirect_vert,fragmentShader:N.equirect_frag},distanceRGBA:{uniforms:va([y.common,y.displacementmap,{referencePosition:{value:new m},nearDistance:{value:1},farDistance:{value:1E3}}]),vertexShader:N.distanceRGBA_vert,fragmentShader:N.distanceRGBA_frag},shadow:{uniforms:va([y.lights, y.fog,{color:{value:new D(0)},opacity:{value:1}}]),vertexShader:N.shadow_vert,fragmentShader:N.shadow_frag}};gb.physical={uniforms:va([gb.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new w(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new D(0)},transparency:{value:0}}]),vertexShader:N.meshphysical_vert,fragmentShader:N.meshphysical_frag};qb.prototype=Object.create(W.prototype);qb.prototype.constructor= qb;qb.prototype.isCubeTexture=!0;Object.defineProperty(qb.prototype,"images",{get:function(){return this.image},set:function(a){this.image=a}});Gc.prototype=Object.create(W.prototype);Gc.prototype.constructor=Gc;Gc.prototype.isDataTexture2DArray=!0;Hc.prototype=Object.create(W.prototype);Hc.prototype.constructor=Hc;Hc.prototype.isDataTexture3D=!0;var Fh=new W,Hj=new Gc,Jj=new Hc,Gh=new qb,zh=[],Bh=[],Eh=new Float32Array(16),Dh=new Float32Array(9),Ch=new Float32Array(4);Hh.prototype.updateCache=function(a){var b= this.cache;a instanceof Float32Array&&b.length!==a.length&&(this.cache=new Float32Array(a.length));Ia(b,a)};Ih.prototype.setValue=function(a,b,c){for(var d=this.seq,e=0,f=d.length;e!==f;++e){var g=d[e];g.setValue(a,b[g.id],c)}};var ig=/([\w\d_]+)(\])?(\[|\.)?/g;Fb.prototype.setValue=function(a,b,c,d){b=this.map[b];void 0!==b&&b.setValue(a,c,d)};Fb.prototype.setOptional=function(a,b,c){b=b[c];void 0!==b&&this.setValue(a,c,b)};Fb.upload=function(a,b,c,d){for(var e=0,f=b.length;e!==f;++e){var g=b[e], h=c[g.id];!1!==h.needsUpdate&&g.setValue(a,h.value,d)}};Fb.seqWithValue=function(a,b){for(var c=[],d=0,e=a.length;d!==e;++d){var f=a[d];f.id in b&&c.push(f)}return c};var ok=0,kg=/^[ \t]*#include +<([\w\d./]+)>/gm,Rh=/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Qh=/#pragma unroll_loop_start[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g,yk=0;Gb.prototype=Object.create(G.prototype);Gb.prototype.constructor= Gb;Gb.prototype.isMeshDepthMaterial=!0;Gb.prototype.copy=function(a){G.prototype.copy.call(this,a);this.depthPacking=a.depthPacking;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;return this};Hb.prototype=Object.create(G.prototype);Hb.prototype.constructor= Hb;Hb.prototype.isMeshDistanceMaterial=!0;Hb.prototype.copy=function(a){G.prototype.copy.call(this,a);this.referencePosition.copy(a.referencePosition);this.nearDistance=a.nearDistance;this.farDistance=a.farDistance;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;return this};Ne.prototype=Object.assign(Object.create(P.prototype), {constructor:Ne,isArrayCamera:!0});Jc.prototype=Object.assign(Object.create(z.prototype),{constructor:Jc,isGroup:!0});Object.assign(Oe.prototype,{constructor:Oe,getTargetRaySpace:function(){null===this._targetRay&&(this._targetRay=new Jc,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1);return this._targetRay},getGripSpace:function(){null===this._grip&&(this._grip=new Jc,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1);return this._grip},dispatchEvent:function(a){null!==this._targetRay&& this._targetRay.dispatchEvent(a);null!==this._grip&&this._grip.dispatchEvent(a);return this},disconnect:function(a){this.dispatchEvent({type:"disconnected",data:a});null!==this._targetRay&&(this._targetRay.visible=!1);null!==this._grip&&(this._grip.visible=!1);return this},update:function(a,b,c){var d=null,e=null,f=this._targetRay,g=this._grip;a&&(null!==f&&(d=b.getPose(a.targetRaySpace,c),null!==d&&(f.matrix.fromArray(d.transform.matrix),f.matrix.decompose(f.position,f.rotation,f.scale))),null!== g&&a.gripSpace&&(e=b.getPose(a.gripSpace,c),null!==e&&(g.matrix.fromArray(e.transform.matrix),g.matrix.decompose(g.position,g.rotation,g.scale))));null!==f&&(f.visible=null!==d);null!==g&&(g.visible=null!==e);return this}});Object.assign(Xh.prototype,ua.prototype);og.prototype=Object.assign(Object.create(Md.prototype),{constructor:og,isWebGL1Renderer:!0});Object.assign(Pe.prototype,{isFogExp2:!0,clone:function(){return new Pe(this.color,this.density)},toJSON:function(){return{type:"FogExp2",color:this.color.getHex(), density:this.density}}});Object.assign(Qe.prototype,{isFog:!0,clone:function(){return new Qe(this.color,this.near,this.far)},toJSON:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}});Object.defineProperty(Ja.prototype,"needsUpdate",{set:function(a){!0===a&&this.version++}});Object.assign(Ja.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(a){this.usage=a;return this},copy:function(a){this.array=new a.array.constructor(a.array);this.count= a.count;this.stride=a.stride;this.usage=a.usage;return this},copyAt:function(a,b,c){a*=this.stride;c*=b.stride;for(var d=0,e=this.stride;da.far||b.push({distance:e,point:ze.clone(),uv:wa.getUV(ze,Lf,Ae,Mf,Gi,lh,Hi,new w),face:null,object:this})},copy:function(a){z.prototype.copy.call(this,a);void 0!==a.center&&this.center.copy(a.center);this.material=a.material;return this}});var Nf=new m,Ii=new m;Pd.prototype=Object.assign(Object.create(z.prototype),{constructor:Pd,isLOD:!0,copy:function(a){z.prototype.copy.call(this,a,!1);for(var b=a.levels,c=0,d=b.length;c=b[d].distance)b[d-1].object.visible=!1,b[d].object.visible=!0;else break;for(this._currentLevel=d-1;df;f++)if(l=c.getComponent(f),0!==l){var k=b.getComponent(f);e.multiplyMatrices(h.bones[k].matrixWorld,h.boneInverses[k]);g.addScaledVector(d.copy(a).applyMatrix4(e),l)}return g.applyMatrix4(this.bindMatrixInverse)}}()});var Ji=new M,Tk=new M;Object.assign(Te.prototype,{calculateInverses:function(){this.boneInverses=[];for(var a=0,b=this.bones.length;a< b;a++){var c=new M;this.bones[a]&&c.getInverse(this.bones[a].matrixWorld);this.boneInverses.push(c)}},pose:function(){for(var a=0,b=this.bones.length;ad||(h.applyMatrix4(this.matrixWorld),v=a.ray.origin.distanceTo(h), va.far||b.push({distance:v,point:e.clone().applyMatrix4(this.matrixWorld),index:q,face:null,faceIndex:null,object:this}))}}else for(k=0,q=c.length/3-1;kd||(h.applyMatrix4(this.matrixWorld),p=a.ray.origin.distanceTo(h),pa.far||b.push({distance:p,point:e.clone().applyMatrix4(this.matrixWorld),index:k,face:null,faceIndex:null,object:this}))}else if(c.isGeometry)for(f=c.vertices,g=f.length,c=0;cd||(h.applyMatrix4(this.matrixWorld),k=a.ray.origin.distanceTo(h),ka.far||b.push({distance:k,point:e.clone().applyMatrix4(this.matrixWorld),index:c,face:null,faceIndex:null,object:this}))}},updateMorphTargets:function(){var a=this.geometry;if(a.isBufferGeometry){a=a.morphAttributes;var b=Object.keys(a);if(0=a.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}});Nc.prototype=Object.create(W.prototype);Nc.prototype.constructor=Nc;Nc.prototype.isCompressedTexture=!0;Qd.prototype= Object.create(W.prototype);Qd.prototype.constructor=Qd;Qd.prototype.isCanvasTexture=!0;Rd.prototype=Object.create(W.prototype);Rd.prototype.constructor=Rd;Rd.prototype.isDepthTexture=!0;Oc.prototype=Object.create(F.prototype);Oc.prototype.constructor=Oc;Sd.prototype=Object.create(L.prototype);Sd.prototype.constructor=Sd;Pc.prototype=Object.create(F.prototype);Pc.prototype.constructor=Pc;Td.prototype=Object.create(L.prototype);Td.prototype.constructor=Td;Fa.prototype=Object.create(F.prototype);Fa.prototype.constructor= Fa;Ud.prototype=Object.create(L.prototype);Ud.prototype.constructor=Ud;Qc.prototype=Object.create(Fa.prototype);Qc.prototype.constructor=Qc;Vd.prototype=Object.create(L.prototype);Vd.prototype.constructor=Vd;bc.prototype=Object.create(Fa.prototype);bc.prototype.constructor=bc;Wd.prototype=Object.create(L.prototype);Wd.prototype.constructor=Wd;Rc.prototype=Object.create(Fa.prototype);Rc.prototype.constructor=Rc;Xd.prototype=Object.create(L.prototype);Xd.prototype.constructor=Xd;Sc.prototype=Object.create(Fa.prototype); Sc.prototype.constructor=Sc;Yd.prototype=Object.create(L.prototype);Yd.prototype.constructor=Yd;cc.prototype=Object.create(F.prototype);cc.prototype.constructor=cc;cc.prototype.toJSON=function(){var a=F.prototype.toJSON.call(this);a.path=this.parameters.path.toJSON();return a};Zd.prototype=Object.create(L.prototype);Zd.prototype.constructor=Zd;Tc.prototype=Object.create(F.prototype);Tc.prototype.constructor=Tc;$d.prototype=Object.create(L.prototype);$d.prototype.constructor=$d;Uc.prototype=Object.create(F.prototype); Uc.prototype.constructor=Uc;var Uk={triangulate:function(a,b,c){c=c||2;var d=b&&b.length,e=d?b[0]*c:a.length,f=$h(a,0,e,c,!0),g=[];if(!f||f.next===f.prev)return g;var h;if(d){var k=c;d=[];var n;var q=0;for(n=b.length;q80*c){var t=h=a[0];var r=d=a[1];for(k=c;kh&&(h=q),b>d&&(d=b);h=Math.max(h-t,d-r);h=0!==h?1/h:0}be(f,g,c,t,r,h);return g}},rb={area:function(a){for(var b=a.length,c=0,d=b-1,e=0;erb.area(a)},triangulateShape:function(a,b){var c=[],d=[],e=[];di(a);ei(c,a);a=a.length;b.forEach(di);for(var f=0;fMath.abs(g-k)?[new w(a,1-c),new w(h,1-d),new w(n,1-e),new w(p,1-b)]:[new w(g,1-c),new w(k,1-d),new w(m,1-e),new w(v,1-b)]}};de.prototype=Object.create(L.prototype);de.prototype.constructor=de;Wc.prototype=Object.create(hb.prototype);Wc.prototype.constructor=Wc;ee.prototype=Object.create(L.prototype); ee.prototype.constructor=ee;ec.prototype=Object.create(F.prototype);ec.prototype.constructor=ec;fe.prototype=Object.create(L.prototype);fe.prototype.constructor=fe;Xc.prototype=Object.create(F.prototype);Xc.prototype.constructor=Xc;ge.prototype=Object.create(L.prototype);ge.prototype.constructor=ge;Yc.prototype=Object.create(F.prototype);Yc.prototype.constructor=Yc;fc.prototype=Object.create(L.prototype);fc.prototype.constructor=fc;fc.prototype.toJSON=function(){var a=L.prototype.toJSON.call(this); return gi(this.parameters.shapes,a)};gc.prototype=Object.create(F.prototype);gc.prototype.constructor=gc;gc.prototype.toJSON=function(){var a=F.prototype.toJSON.call(this);return gi(this.parameters.shapes,a)};Zc.prototype=Object.create(F.prototype);Zc.prototype.constructor=Zc;hc.prototype=Object.create(L.prototype);hc.prototype.constructor=hc;sb.prototype=Object.create(F.prototype);sb.prototype.constructor=sb;he.prototype=Object.create(hc.prototype);he.prototype.constructor=he;ie.prototype=Object.create(sb.prototype); ie.prototype.constructor=ie;je.prototype=Object.create(L.prototype);je.prototype.constructor=je;$c.prototype=Object.create(F.prototype);$c.prototype.constructor=$c;var ra=Object.freeze({__proto__:null,WireframeGeometry:Oc,ParametricGeometry:Sd,ParametricBufferGeometry:Pc,TetrahedronGeometry:Ud,TetrahedronBufferGeometry:Qc,OctahedronGeometry:Vd,OctahedronBufferGeometry:bc,IcosahedronGeometry:Wd,IcosahedronBufferGeometry:Rc,DodecahedronGeometry:Xd,DodecahedronBufferGeometry:Sc,PolyhedronGeometry:Td, PolyhedronBufferGeometry:Fa,TubeGeometry:Yd,TubeBufferGeometry:cc,TorusKnotGeometry:Zd,TorusKnotBufferGeometry:Tc,TorusGeometry:$d,TorusBufferGeometry:Uc,TextGeometry:de,TextBufferGeometry:Wc,SphereGeometry:ee,SphereBufferGeometry:ec,RingGeometry:fe,RingBufferGeometry:Xc,PlaneGeometry:Fd,PlaneBufferGeometry:ac,LatheGeometry:ge,LatheBufferGeometry:Yc,ShapeGeometry:fc,ShapeBufferGeometry:gc,ExtrudeGeometry:dc,ExtrudeBufferGeometry:hb,EdgesGeometry:Zc,ConeGeometry:he,ConeBufferGeometry:ie,CylinderGeometry:hc, CylinderBufferGeometry:sb,CircleGeometry:je,CircleBufferGeometry:$c,BoxGeometry:kh,BoxBufferGeometry:Gd});ic.prototype=Object.create(G.prototype);ic.prototype.constructor=ic;ic.prototype.isShadowMaterial=!0;ic.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);return this};tb.prototype=Object.create(Ba.prototype);tb.prototype.constructor=tb;tb.prototype.isRawShaderMaterial=!0;ib.prototype=Object.create(G.prototype);ib.prototype.constructor=ib;ib.prototype.isMeshStandardMaterial= !0;ib.prototype.copy=function(a){G.prototype.copy.call(this,a);this.defines={STANDARD:""};this.color.copy(a.color);this.roughness=a.roughness;this.metalness=a.metalness;this.map=a.map;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity=a.emissiveIntensity;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType= a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.roughnessMap=a.roughnessMap;this.metalnessMap=a.metalnessMap;this.alphaMap=a.alphaMap;this.envMap=a.envMap;this.envMapIntensity=a.envMapIntensity;this.refractionRatio=a.refractionRatio;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin= a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;this.vertexTangents=a.vertexTangents;return this};jc.prototype=Object.create(ib.prototype);jc.prototype.constructor=jc;jc.prototype.isMeshPhysicalMaterial=!0;jc.prototype.copy=function(a){ib.prototype.copy.call(this,a);this.defines={STANDARD:"",PHYSICAL:""};this.clearcoat=a.clearcoat;this.clearcoatMap=a.clearcoatMap;this.clearcoatRoughness=a.clearcoatRoughness;this.clearcoatRoughnessMap= a.clearcoatRoughnessMap;this.clearcoatNormalMap=a.clearcoatNormalMap;this.clearcoatNormalScale.copy(a.clearcoatNormalScale);this.reflectivity=a.reflectivity;this.sheen=a.sheen?(this.sheen||new D).copy(a.sheen):null;this.transparency=a.transparency;return this};Mb.prototype=Object.create(G.prototype);Mb.prototype.constructor=Mb;Mb.prototype.isMeshPhongMaterial=!0;Mb.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.specular.copy(a.specular);this.shininess=a.shininess; this.map=a.map;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity=a.emissiveIntensity;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType=a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias; this.specularMap=a.specularMap;this.alphaMap=a.alphaMap;this.envMap=a.envMap;this.combine=a.combine;this.reflectivity=a.reflectivity;this.refractionRatio=a.refractionRatio;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin=a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};kc.prototype=Object.create(G.prototype);kc.prototype.constructor=kc;kc.prototype.isMeshToonMaterial= !0;kc.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.specular.copy(a.specular);this.shininess=a.shininess;this.map=a.map;this.gradientMap=a.gradientMap;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity=a.emissiveIntensity;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType= a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.specularMap=a.specularMap;this.alphaMap=a.alphaMap;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin=a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};lc.prototype= Object.create(G.prototype);lc.prototype.constructor=lc;lc.prototype.isMeshNormalMaterial=!0;lc.prototype.copy=function(a){G.prototype.copy.call(this,a);this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType=a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.skinning= a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};mc.prototype=Object.create(G.prototype);mc.prototype.constructor=mc;mc.prototype.isMeshLambertMaterial=!0;mc.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity= a.emissiveIntensity;this.specularMap=a.specularMap;this.alphaMap=a.alphaMap;this.envMap=a.envMap;this.combine=a.combine;this.reflectivity=a.reflectivity;this.refractionRatio=a.refractionRatio;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin=a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};nc.prototype=Object.create(G.prototype);nc.prototype.constructor= nc;nc.prototype.isMeshMatcapMaterial=!0;nc.prototype.copy=function(a){G.prototype.copy.call(this,a);this.defines={MATCAP:""};this.color.copy(a.color);this.matcap=a.matcap;this.map=a.map;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType=a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.alphaMap=a.alphaMap;this.skinning=a.skinning; this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};oc.prototype=Object.create(la.prototype);oc.prototype.constructor=oc;oc.prototype.isLineDashedMaterial=!0;oc.prototype.copy=function(a){la.prototype.copy.call(this,a);this.scale=a.scale;this.dashSize=a.dashSize;this.gapSize=a.gapSize;return this};var Vk=Object.freeze({__proto__:null,ShadowMaterial:ic,SpriteMaterial:Kb,RawShaderMaterial:tb,ShaderMaterial:Ba,PointsMaterial:Xa,MeshPhysicalMaterial:jc,MeshStandardMaterial:ib, MeshPhongMaterial:Mb,MeshToonMaterial:kc,MeshNormalMaterial:lc,MeshLambertMaterial:mc,MeshDepthMaterial:Gb,MeshDistanceMaterial:Hb,MeshBasicMaterial:Oa,MeshMatcapMaterial:nc,LineDashedMaterial:oc,LineBasicMaterial:la,Material:G}),Z={arraySlice:function(a,b,c){return Z.isTypedArray(a)?new a.constructor(a.subarray(b,void 0!==c?c:a.length)):a.slice(b,c)},convertArray:function(a,b,c){return!a||!c&&a.constructor===b?a:"number"===typeof b.BYTES_PER_ELEMENT?new b(a):Array.prototype.slice.call(a)},isTypedArray:function(a){return ArrayBuffer.isView(a)&& !(a instanceof DataView)},getKeyframeOrder:function(a){for(var b=a.length,c=Array(b),d=0;d!==b;++d)c[d]=d;c.sort(function(b,c){return a[b]-a[c]});return c},sortedArray:function(a,b,c){for(var d=a.length,e=new a.constructor(d),f=0,g=0;g!==d;++f)for(var h=c[f]*b,k=0;k!==b;++k)e[g++]=a[h+k];return e},flattenJSON:function(a,b,c,d){for(var e=1,f=a[0];void 0!==f&&void 0===f[d];)f=a[e++];if(void 0!==f){var g=f[d];if(void 0!==g)if(Array.isArray(g)){do g=f[d],void 0!==g&&(b.push(f.time),c.push.apply(c,g)), f=a[e++];while(void 0!==f)}else if(void 0!==g.toArray){do g=f[d],void 0!==g&&(b.push(f.time),g.toArray(c,c.length)),f=a[e++];while(void 0!==f)}else{do g=f[d],void 0!==g&&(b.push(f.time),c.push(g)),f=a[e++];while(void 0!==f)}}},subclip:function(a,b,c,d,e){e=e||30;a=a.clone();a.name=b;b=[];for(var f=0;f=d))for(k.push(g.times[m]),p=0;pa.tracks[d].times[0]&&(c=a.tracks[d].times[0]);for(d=0;d=d)d=30;var e=a.tracks.length,f=b/d;b=function(b){var d=c.tracks[b],e=d.ValueTypeName;if("bool"!==e&&"string"!==e&&(b=a.tracks.find(function(a){return a.name=== d.name&&a.ValueTypeName===e}),void 0!==b)){var g=d.getValueSize(),k=d.times.length-1,m=void 0;f<=d.times[0]?m=Z.arraySlice(d.values,0,d.valueSize):f>=d.times[k]?m=Z.arraySlice(d.values,k*g):(m=d.createInterpolant(),m.evaluate(f),m=m.resultBuffer);"quaternion"===e&&(new na(m[0],m[1],m[2],m[3])).normalize().conjugate().toArray(m);k=b.times.length;for(var v=0;v=e)break a;else{f=b[1];a=e)break b}d=c;c=0}}for(;c>>1,ab;)--f;++f;if(0!==e||f!==d)e>=f&&(f=Math.max(f,1),e=f-1),a=this.getValueSize(),this.times=Z.arraySlice(c,e,f),this.values=Z.arraySlice(this.values,e*a,f*a);return this},validate:function(){var a=!0, b=this.getValueSize();0!==b-Math.floor(b)&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),a=!1);var c=this.times;b=this.values;var d=c.length;0===d&&(console.error("THREE.KeyframeTrack: Track is empty.",this),a=!1);for(var e=null,f=0;f!==d;f++){var g=c[f];if("number"===typeof g&&isNaN(g)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,f,g);a=!1;break}if(null!==e&&e>g){console.error("THREE.KeyframeTrack: Out of order keys.",this,f,g,e);a=!1;break}e= g}if(void 0!==b&&Z.isTypedArray(b))for(c=0,d=b.length;c!==d;++c)if(e=b[c],isNaN(e)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,c,e);a=!1;break}return a},optimize:function(){for(var a=Z.arraySlice(this.times),b=Z.arraySlice(this.values),c=this.getValueSize(),d=2302===this.getInterpolation(),e=a.length-1,f=1,g=1;gg)e=a+1;else if(0c&&(c=0);1Number.EPSILON&&(g.normalize(),k=Math.acos(K.clamp(d[c-1].dot(d[c]),-1,1)),e[c].applyMatrix4(h.makeRotationAxis(g,k))),f[c].crossVectors(d[c],e[c]);if(!0===b)for(b=Math.acos(K.clamp(e[0].dot(e[a]),-1,1)),b/=a,0d;)d+=c;for(;d>c;)d-=c;de&&(e=1);1E-4>d&&(d=e);1E-4>k&&(k=e);mh.initNonuniformCatmullRom(f.x,g.x,h.x,c.x,d,e,k);nh.initNonuniformCatmullRom(f.y,g.y,h.y,c.y,d,e,k);oh.initNonuniformCatmullRom(f.z,g.z,h.z,c.z,d,e,k)}else"catmullrom"===this.curveType&&(mh.initCatmullRom(f.x,g.x,h.x,c.x,this.tension),nh.initCatmullRom(f.y,g.y,h.y,c.y,this.tension),oh.initCatmullRom(f.z,g.z,h.z,c.z,this.tension));b.set(mh.calc(a), nh.calc(a),oh.calc(a));return b};pa.prototype.copy=function(a){J.prototype.copy.call(this,a);this.points=[];for(var b=0,c=a.points.length;bc.length-2?c.length-1:a+1];c=c[a>c.length-3?c.length-1:a+2];b.set(ii(d,e.x,f.x,g.x,c.x),ii(d,e.y,f.y,g.y,c.y));return b};ab.prototype.copy=function(a){J.prototype.copy.call(this,a);this.points=[];for(var b=0,c=a.points.length;b=b)return b=c[a]-b,a=this.curves[a],c=a.getLength(),a.getPointAt(0=== c?0:1-b/c);a++}return null},getLength:function(){var a=this.getCurveLengths();return a[a.length-1]},updateArcLengths:function(){this.needsUpdate=!0;this.cacheLengths=null;this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var a=[],b=0,c=0,d=this.curves.length;cb;b++)this.coefficients[b].copy(a[b]);return this},zero:function(){for(var a=0;9>a;a++)this.coefficients[a].set(0,0,0);return this},getAt:function(a,b){var c=a.x,d=a.y;a=a.z;var e=this.coefficients;b.copy(e[0]).multiplyScalar(.282095); b.addScaledVector(e[1],.488603*d);b.addScaledVector(e[2],.488603*a);b.addScaledVector(e[3],.488603*c);b.addScaledVector(e[4],1.092548*c*d);b.addScaledVector(e[5],1.092548*d*a);b.addScaledVector(e[6],.315392*(3*a*a-1));b.addScaledVector(e[7],1.092548*c*a);b.addScaledVector(e[8],.546274*(c*c-d*d));return b},getIrradianceAt:function(a,b){var c=a.x,d=a.y;a=a.z;var e=this.coefficients;b.copy(e[0]).multiplyScalar(.886227);b.addScaledVector(e[1],1.023328*d);b.addScaledVector(e[2],1.023328*a);b.addScaledVector(e[3], 1.023328*c);b.addScaledVector(e[4],.858086*c*d);b.addScaledVector(e[5],.858086*d*a);b.addScaledVector(e[6],.743125*a*a-.247708);b.addScaledVector(e[7],.858086*c*a);b.addScaledVector(e[8],.429043*(c*c-d*d));return b},add:function(a){for(var b=0;9>b;b++)this.coefficients[b].add(a.coefficients[b]);return this},addScaledSH:function(a,b){for(var c=0;9>c;c++)this.coefficients[c].addScaledVector(a.coefficients[c],b);return this},scale:function(a){for(var b=0;9>b;b++)this.coefficients[b].multiplyScalar(a); return this},lerp:function(a,b){for(var c=0;9>c;c++)this.coefficients[c].lerp(a.coefficients[c],b);return this},equals:function(a){for(var b=0;9>b;b++)if(!this.coefficients[b].equals(a.coefficients[b]))return!1;return!0},copy:function(a){return this.set(a.coefficients)},clone:function(){return(new this.constructor).copy(this)},fromArray:function(a,b){void 0===b&&(b=0);for(var c=this.coefficients,d=0;9>d;d++)c[d].fromArray(a,b+3*d);return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&& (b=0);for(var c=this.coefficients,d=0;9>d;d++)c[d].toArray(a,b+3*d);return a}});Object.assign(qf,{getBasisAt:function(a,b){var c=a.x,d=a.y;a=a.z;b[0]=.282095;b[1]=.488603*d;b[2]=.488603*a;b[3]=.488603*c;b[4]=1.092548*c*d;b[5]=1.092548*d*a;b[6]=.315392*(3*a*a-1);b[7]=1.092548*c*a;b[8]=.546274*(c*c-d*d)}});Sa.prototype=Object.assign(Object.create(T.prototype),{constructor:Sa,isLightProbe:!0,copy:function(a){T.prototype.copy.call(this,a);this.sh.copy(a.sh);return this},fromJSON:function(a){this.intensity= a.intensity;this.sh.fromArray(a.sh);return this},toJSON:function(a){a=T.prototype.toJSON.call(this,a);a.object.sh=this.sh.toArray();return a}});rf.prototype=Object.assign(Object.create(S.prototype),{constructor:rf,load:function(a,b,c,d){var e=this,f=new Ra(e.manager);f.setPath(e.path);f.load(a,function(c){try{b(e.parse(JSON.parse(c)))}catch(h){d?d(h):console.error(h),e.manager.itemError(a)}},c,d)},parse:function(a){function b(a){void 0===c[a]&&console.warn("THREE.MaterialLoader: Undefined texture", a);return c[a]}var c=this.textures,d=new Vk[a.type];void 0!==a.uuid&&(d.uuid=a.uuid);void 0!==a.name&&(d.name=a.name);void 0!==a.color&&d.color.setHex(a.color);void 0!==a.roughness&&(d.roughness=a.roughness);void 0!==a.metalness&&(d.metalness=a.metalness);void 0!==a.sheen&&(d.sheen=(new D).setHex(a.sheen));void 0!==a.emissive&&d.emissive.setHex(a.emissive);void 0!==a.specular&&d.specular.setHex(a.specular);void 0!==a.shininess&&(d.shininess=a.shininess);void 0!==a.clearcoat&&(d.clearcoat=a.clearcoat); void 0!==a.clearcoatRoughness&&(d.clearcoatRoughness=a.clearcoatRoughness);void 0!==a.fog&&(d.fog=a.fog);void 0!==a.flatShading&&(d.flatShading=a.flatShading);void 0!==a.blending&&(d.blending=a.blending);void 0!==a.combine&&(d.combine=a.combine);void 0!==a.side&&(d.side=a.side);void 0!==a.opacity&&(d.opacity=a.opacity);void 0!==a.transparent&&(d.transparent=a.transparent);void 0!==a.alphaTest&&(d.alphaTest=a.alphaTest);void 0!==a.depthTest&&(d.depthTest=a.depthTest);void 0!==a.depthWrite&&(d.depthWrite= a.depthWrite);void 0!==a.colorWrite&&(d.colorWrite=a.colorWrite);void 0!==a.stencilWrite&&(d.stencilWrite=a.stencilWrite);void 0!==a.stencilWriteMask&&(d.stencilWriteMask=a.stencilWriteMask);void 0!==a.stencilFunc&&(d.stencilFunc=a.stencilFunc);void 0!==a.stencilRef&&(d.stencilRef=a.stencilRef);void 0!==a.stencilFuncMask&&(d.stencilFuncMask=a.stencilFuncMask);void 0!==a.stencilFail&&(d.stencilFail=a.stencilFail);void 0!==a.stencilZFail&&(d.stencilZFail=a.stencilZFail);void 0!==a.stencilZPass&&(d.stencilZPass= a.stencilZPass);void 0!==a.wireframe&&(d.wireframe=a.wireframe);void 0!==a.wireframeLinewidth&&(d.wireframeLinewidth=a.wireframeLinewidth);void 0!==a.wireframeLinecap&&(d.wireframeLinecap=a.wireframeLinecap);void 0!==a.wireframeLinejoin&&(d.wireframeLinejoin=a.wireframeLinejoin);void 0!==a.rotation&&(d.rotation=a.rotation);1!==a.linewidth&&(d.linewidth=a.linewidth);void 0!==a.dashSize&&(d.dashSize=a.dashSize);void 0!==a.gapSize&&(d.gapSize=a.gapSize);void 0!==a.scale&&(d.scale=a.scale);void 0!==a.polygonOffset&& (d.polygonOffset=a.polygonOffset);void 0!==a.polygonOffsetFactor&&(d.polygonOffsetFactor=a.polygonOffsetFactor);void 0!==a.polygonOffsetUnits&&(d.polygonOffsetUnits=a.polygonOffsetUnits);void 0!==a.skinning&&(d.skinning=a.skinning);void 0!==a.morphTargets&&(d.morphTargets=a.morphTargets);void 0!==a.morphNormals&&(d.morphNormals=a.morphNormals);void 0!==a.dithering&&(d.dithering=a.dithering);void 0!==a.vertexTangents&&(d.vertexTangents=a.vertexTangents);void 0!==a.visible&&(d.visible=a.visible);void 0!== a.toneMapped&&(d.toneMapped=a.toneMapped);void 0!==a.userData&&(d.userData=a.userData);void 0!==a.vertexColors&&(d.vertexColors="number"===typeof a.vertexColors?0Number.EPSILON){if(0>l&&(g=b[f],k=-k,h=b[e],l=-l),!(a.yh.y))if(a.y=== g.y){if(a.x===g.x)return!0}else{e=l*(a.x-g.x)-k*(a.y-g.y);if(0===e)return!0;0>e||(d=!d)}}else if(a.y===g.y&&(h.x<=a.x&&a.x<=g.x||g.x<=a.x&&a.x<=h.x))return!0}return d}var e=rb.isClockWise,f=this.subPaths;if(0===f.length)return[];if(!0===b)return c(f);b=[];if(1===f.length){var g=f[0];var h=new Nb;h.curves=g.curves;b.push(h);return b}var k=!e(f[0].getPoints());k=a?!k:k;h=[];var n=[],m=[],p=0;n[p]=void 0;m[p]=[];for(var v=0,t=f.length;vd&&this._mixBufferRegion(c,a,b*this._origIndex,1-d,b);0=e){var m=e++,p=a[m];b[p.uuid]=n;a[n]=p;b[k]=m;a[m]=h;h=0;for(k=d;h!==k;++h){p=c[h];var v=p[n];p[n]=p[m];p[m]=v}}}this.nCachedObjects_=e},uncache:function(){for(var a=this._objects,b=this._indicesByUUID,c=this._bindings,d=c.length,e=this.nCachedObjects_,f=a.length,g=0,h=arguments.length;g!==h;++g){var k=arguments[g].uuid,n=b[k];if(void 0!==n)if(delete b[k],nb||0===c)return;this._startTime= null;b*=c}b*=this._updateTimeScale(a);c=this._updateTime(b);a=this._updateWeight(a);if(0c.parameterPositions[1]&& (this.stopFading(),0===d&&(this.enabled=!1))}}return this._effectiveWeight=b},_updateTimeScale:function(a){var b=0;if(!this.paused){b=this.timeScale;var c=this._timeScaleInterpolant;if(null!==c){var d=c.evaluate(a)[0];b*=d;a>c.parameterPositions[1]&&(this.stopWarping(),0===b?this.paused=!0:this.timeScale=b)}}return this._effectiveTimeScale=b},_updateTime:function(a){var b=this._clip.duration,c=this.loop,d=this.time+a,e=this._loopCount,f=2202===c;if(0===a)return-1===e?d:f&&1===(e&1)?b-d:d;if(2200=== c)a:{if(-1===e&&(this._loopCount=0,this._setEndings(!0,!0,!1)),d>=b)d=b;else if(0>d)d=0;else{this.time=d;break a}this.clampWhenFinished?this.paused=!0:this.enabled=!1;this.time=d;this._mixer.dispatchEvent({type:"finished",action:this,direction:0>a?-1:1})}else{-1===e&&(0<=a?(e=0,this._setEndings(!0,0===this.repetitions,f)):this._setEndings(0===this.repetitions,!0,f));if(d>=b||0>d){c=Math.floor(d/b);d-=b*c;e+=Math.abs(c);var g=this.repetitions-e;0>=g?(this.clampWhenFinished?this.paused=!0:this.enabled= !1,this.time=d=0a,this._setEndings(a,!a,f)):this._setEndings(!1,!1,f),this._loopCount=e,this.time=d,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:c}))}else this.time=d;if(f&&1===(e&1))return b-d}return d},_setEndings:function(a,b,c){var d=this._interpolantSettings;c?(d.endingStart=2401,d.endingEnd=2401):(d.endingStart=a?this.zeroSlopeAtStart?2401:2400:2402,d.endingEnd=b?this.zeroSlopeAtEnd? 2401:2400:2402)},_scheduleFading:function(a,b,c){var d=this._mixer,e=d.time,f=this._weightInterpolant;null===f&&(this._weightInterpolant=f=d._lendControlInterpolant());d=f.parameterPositions;f=f.sampleValues;d[0]=e;f[0]=b;d[1]=e+a;f[1]=c;return this}});Mg.prototype=Object.assign(Object.create(ua.prototype),{constructor:Mg,_bindAction:function(a,b){var c=a._localRoot||this._root,d=a._clip.tracks,e=d.length,f=a._propertyBindings;a=a._interpolants;var g=c.uuid,h=this._bindingsByRootAndName,k=h[g];void 0=== k&&(k={},h[g]=k);for(h=0;h!==e;++h){var n=d[h],m=n.name,p=k[m];if(void 0===p){p=f[h];if(void 0!==p){null===p._cacheIndex&&(++p.referenceCount,this._addInactiveBinding(p,g,m));continue}p=new Lg(za.create(c,m,b&&b._propertyBindings[h].binding.parsedPath),n.ValueTypeName,n.getValueSize());++p.referenceCount;this._addInactiveBinding(p,g,m)}f[h]=p;a[h].resultBuffer=p.buffer}},_activateAction:function(a){if(!this._isActiveAction(a)){if(null===a._cacheIndex){var b=(a._localRoot||this._root).uuid,c=a._clip.uuid, d=this._actionsByClip[c];this._bindAction(a,d&&d.knownActions[0]);this._addInactiveAction(a,c,b)}b=a._propertyBindings;c=0;for(d=b.length;c!==d;++c){var e=b[c];0===e.useCount++&&(this._lendBinding(e),e.saveOriginalState())}this._lendAction(a)}},_deactivateAction:function(a){if(this._isActiveAction(a)){for(var b=a._propertyBindings,c=0,d=b.length;c!==d;++c){var e=b[c];0===--e.useCount&&(e.restoreOriginalState(),this._takeBackBinding(e))}this._takeBackAction(a)}},_initMemoryManager:function(){this._actions= [];this._nActiveActions=0;this._actionsByClip={};this._bindings=[];this._nActiveBindings=0;this._bindingsByRootAndName={};this._controlInterpolants=[];this._nActiveControlInterpolants=0;var a=this;this.stats={actions:{get total(){return a._actions.length},get inUse(){return a._nActiveActions}},bindings:{get total(){return a._bindings.length},get inUse(){return a._nActiveBindings}},controlInterpolants:{get total(){return a._controlInterpolants.length},get inUse(){return a._nActiveControlInterpolants}}}}, _isActiveAction:function(a){a=a._cacheIndex;return null!==a&&athis.max.x||a.ythis.max.y?!1:!0},containsBox:function(a){return this.min.x<=a.min.x&&a.max.x<=this.max.x&&this.min.y<=a.min.y&&a.max.y<=this.max.y},getParameter:function(a, b){void 0===b&&(console.warn("THREE.Box2: .getParameter() target is now required"),b=new w);return b.set((a.x-this.min.x)/(this.max.x-this.min.x),(a.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(a){return a.max.xthis.max.x||a.max.ythis.max.y?!1:!0},clampPoint:function(a,b){void 0===b&&(console.warn("THREE.Box2: .clampPoint() target is now required"),b=new w);return b.copy(a).clamp(this.min,this.max)},distanceToPoint:function(a){return Wi.copy(a).clamp(this.min, this.max).sub(a).length()},intersect:function(a){this.min.max(a.min);this.max.min(a.max);return this},union:function(a){this.min.min(a.min);this.max.max(a.max);return this},translate:function(a){this.min.add(a);this.max.add(a);return this},equals:function(a){return a.min.equals(this.min)&&a.max.equals(this.max)}});var Xi=new m,Wf=new m;Object.assign(Rg.prototype,{set:function(a,b){this.start.copy(a);this.end.copy(b);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.start.copy(a.start); this.end.copy(a.end);return this},getCenter:function(a){void 0===a&&(console.warn("THREE.Line3: .getCenter() target is now required"),a=new m);return a.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(a){void 0===a&&(console.warn("THREE.Line3: .delta() target is now required"),a=new m);return a.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(a,b){void 0=== b&&(console.warn("THREE.Line3: .at() target is now required"),b=new m);return this.delta(b).multiplyScalar(a).add(this.start)},closestPointToPointParameter:function(a,b){Xi.subVectors(a,this.start);Wf.subVectors(this.end,this.start);a=Wf.dot(Wf);a=Wf.dot(Xi)/a;b&&(a=K.clamp(a,0,1));return a},closestPointToPoint:function(a,b,c){a=this.closestPointToPointParameter(a,b);void 0===c&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),c=new m);return this.delta(c).multiplyScalar(a).add(this.start)}, applyMatrix4:function(a){this.start.applyMatrix4(a);this.end.applyMatrix4(a);return this},equals:function(a){return a.start.equals(this.start)&&a.end.equals(this.end)}});pe.prototype=Object.create(z.prototype);pe.prototype.constructor=pe;pe.prototype.isImmediateRenderObject=!0;var Yi=new m;gd.prototype=Object.create(z.prototype);gd.prototype.constructor=gd;gd.prototype.dispose=function(){this.cone.geometry.dispose();this.cone.material.dispose()};gd.prototype.update=function(){this.light.updateMatrixWorld(); var a=this.light.distance?this.light.distance:1E3,b=a*Math.tan(this.light.angle);this.cone.scale.set(b,b,a);Yi.setFromMatrixPosition(this.light.target.matrixWorld);this.cone.lookAt(Yi);void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)};var Tb=new m,Xf=new M,rh=new M;pc.prototype=Object.create(ha.prototype);pc.prototype.constructor=pc;pc.prototype.isSkeletonHelper=!0;pc.prototype.updateMatrixWorld=function(a){var b=this.bones,c=this.geometry, d=c.getAttribute("position");rh.getInverse(this.root.matrixWorld);for(var e=0,f=0;eMath.abs(b)&&(b=1E-8);this.scale.set(.5*this.size,.5*this.size,b);this.children[0].material.side=0>b?1:0;this.lookAt(this.plane.normal);z.prototype.updateMatrixWorld.call(this,a)};var cj=new m,Af,Sg;wb.prototype=Object.create(z.prototype); wb.prototype.constructor=wb;wb.prototype.setDirection=function(a){.99999a.y?this.quaternion.set(1,0,0,0):(cj.set(a.z,0,-a.x).normalize(),this.quaternion.setFromAxisAngle(cj,Math.acos(a.y)))};wb.prototype.setLength=function(a,b,c){void 0===b&&(b=.2*a);void 0===c&&(c=.2*b);this.line.scale.set(1,Math.max(1E-4,a-b),1);this.line.updateMatrix();this.cone.scale.set(c,b,c);this.cone.position.y=a;this.cone.updateMatrix()};wb.prototype.setColor=function(a){this.line.material.color.set(a); this.cone.material.color.set(a)};wb.prototype.copy=function(a){z.prototype.copy.call(this,a,!1);this.line.copy(a.line);this.cone.copy(a.cone);return this};wb.prototype.clone=function(){return(new this.constructor).copy(this)};te.prototype=Object.create(ha.prototype);te.prototype.constructor=te;var nb=Math.pow(2,8),dj=[.125,.215,.35,.446,.526,.582],ej=5+dj.length,mb={3E3:0,3001:1,3002:2,3004:3,3005:4,3006:5,3007:6},sh=new ed,th=function(){for(var a=[],b=[],c=[],d=8,e=0;en;n++){var m=n%3*2/3-1,p=2m;m++)p=m%3,0==p?(b.up.set(0,c[m],0),b.lookAt(e[m],0,0)):1==p?(b.up.set(0,0,c[m]),b.lookAt(0,e[m],0)):(b.up.set(0,c[m],0),b.lookAt(0,0,e[m])),Wg(d,p*nb,2r;++r){var u=r/p;u=Math.exp(-u*u/2);e.push(u);0==r?t+=u:r