(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;k<e.length;k++){m=e[k].depArray;for(n=0;n<m.length;n++)if(m[n]===b)m[n]=c}}}delete T[a]}function ma(a){var b=a.prefix,c=a.fullName;if(!(y[c]||c in p)){if(b&&!G[b]){G[b]=undefined;(T[b]||(T[b]=[])).push(a);(w[b]||(w[b]=[])).push({onDep:function(e){e===b&&xa(b)}});ma(j(b))}i.paused.push(a)}}
function aa(a){var b,c,e;b=a.callback;var g=a.fullName,k=[],n=a.depArray;if(b&&J(b)){if(n)for(b=0;b<n.length;b++)k.push(a.deps[n[b]]);try{c=h.execCb(g,a.callback,k,p[g])}catch(m){e=m}if(g)if(a.cjsModule&&a.cjsModule.exports!==undefined)c=p[g]=a.cjsModule.exports;else if(c===undefined&&a.usingExports)c=p[g];else p[g]=c}else if(g)c=p[g]=b;if(B[a.waitId]){delete B[a.waitId];a.isDone=true;i.waitCount-=1;if(i.waitCount===0)ba=[]}if(e){e=K("defineerror",'Error evaluating module "'+g+'" at location "'+(g?
j(g).url:"")+'":\n'+e+"\nfileName:"+(e.fileName||e.sourceURL)+"\nlineNumber: "+(e.lineNumber||e.line),e);e.moduleName=g;return h.onError(e)}if(g)if(a=w[g]){for(b=0;b<a.length;b++)a[b].onDep(g,c);delete w[g]}}function na(a,b,c,e){a=j(a,e);var g=a.name,k=a.fullName,n={},m={waitId:g||ya+za++,depCount:0,depMax:0,prefix:a.prefix,name:g,fullName:k,deps:{},depArray:b,callback:c,onDep:function(oa,Aa){if(!(oa in m.deps)){m.deps[oa]=Aa;m.depCount+=1;m.depCount===m.depMax&&aa(m)}}},u,t;if(k){if(k in p||v[k]===
true||k==="jquery"&&r.jQuery&&r.jQuery!==c().fn.jquery)return;y[k]=true;v[k]=true;k==="jquery"&&c&&U(c())}for(c=0;c<b.length;c++)if(u=b[c]){u=j(u,g?a:e);t=u.fullName;b[c]=t;if(t==="require")m.deps[t]=la(a);else if(t==="exports"){m.deps[t]=p[k]={};m.usingExports=true}else if(t==="module"){m.cjsModule=u=m.deps[t]={id:g,uri:g?i.nameToUrl(g,null,e):undefined,exports:p[k]};u.setExports=o(u)}else if(t in p&&!(t in B))m.deps[t]=p[t];else if(!n[t]){m.depMax+=1;ma(u);(w[t]||(w[t]=[])).push(m);n[t]=true}}if(m.depCount===
m.depMax)aa(m);else{B[m.waitId]=m;ba.push(m);i.waitCount+=1}}function M(a){na.apply(null,a);v[a[0]]=true}function pa(a,b){if(!a.isDone){var c=a.fullName,e=a.depArray,g,k;if(c){if(b[c])return p[c];b[c]=true}for(k=0;k<e.length;k++)(g=e[k])&&!a.deps[g]&&B[g]&&a.onDep(g,pa(B[g],b));return c?p[c]:undefined}}function ca(){var a=r.waitSeconds*1E3,b=a&&i.startTime+a<(new Date).getTime();a="";var c=false,e=false,g;if(!(i.pausedCount>0)){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;g<n.length;g++){k=n[g];ra(b,j(k.originalName,k.parentMap))}delete O[b]}}})}O[b].push(a)}else if(!e[a.url]){h.load(i,c,a.url);e[a.url]=true}}}var i,C,r={waitSeconds:7,baseUrl:s.baseUrl||"./",paths:{},pkgs:{}},P=[],y={require:true,exports:true,module:true},$={},p={},v={},B={},ba=[],za=0,w={},G={},O={},fa=0,T={};U=function(a){if(!i.jQuery)if(a=a||(typeof jQuery!=="undefined"?jQuery:null))if(!(r.jQuery&&a.fn.jquery!==r.jQuery))if("holdReady"in a||"readyWait"in a){i.jQuery=a;M(["jquery",
[],function(){return jQuery}]);if(i.scriptCount){Z(a,true);i.jQueryIncremented=true}}};C=function(){var a,b,c;fa+=1;if(i.scriptCount<=0)i.scriptCount=0;for(;P.length;){a=P.shift();if(a[0]===null)return h.onError(K("mismatch","Mismatched anonymous define() module: "+a[a.length-1]));else M(a)}if(!r.priorityWait||q())for(;i.paused.length;){c=i.paused;i.pausedCount+=c.length;i.paused=[];for(b=0;a=c[b];b++)Ba(a);i.startTime=(new Date).getTime();i.pausedCount-=c.length}fa===1&&ca();fa-=1};i={contextName:d,
config:r,defQueue:P,waiting:B,waitCount:0,specified:y,loaded:v,urlMap:$,scriptCount:0,urlFetched:{},defined:p,paused:[],pausedCount:0,plugins:G,managerCallbacks:w,makeModuleMap:j,normalize:l,configure:function(a){var b,c,e;if(a.baseUrl)if(a.baseUrl.charAt(a.baseUrl.length-1)!=="/")a.baseUrl+="/";b=r.paths;e=r.pkgs;Y(r,a,true);if(a.paths){for(c in a.paths)c in F||(b[c]=a.paths[c]);r.paths=b}if((b=a.packagePaths)||a.packages){if(b)for(c in b)c in F||ja(e,b[c],c);a.packages&&ja(e,a.packages);r.pkgs=
e}if(a.priority){c=i.requireWait;i.requireWait=false;i.takeGlobalQueue();C();i.require(a.priority);C();i.requireWait=c;r.priorityWait=a.priority}if(a.deps||a.callback)i.require(a.deps||[],a.callback);a.ready&&h.ready(a.ready)},requireDefined:function(a,b){return j(a,b).fullName in p},requireSpecified:function(a,b){return j(a,b).fullName in y},require:function(a,b,c){if(typeof a==="string"){if(h.get)return h.get(i,a,b);c=b;b=j(a,c);a=b.fullName;if(!(a in p))return h.onError(K("notloaded","Module name '"+
b.fullName+"' has not been loaded yet for context: "+d));return p[a]}na(null,a,b,c);if(!i.requireWait)for(;!i.scriptCount&&i.paused.length;){i.takeGlobalQueue();C()}},takeGlobalQueue:function(){if(V.length){Ca.apply(i.defQueue,[i.defQueue.length-1,0].concat(V));V=[]}},completeLoad:function(a){var b;for(i.takeGlobalQueue();P.length;){b=P.shift();if(b[0]===null){b[0]=a;break}else if(b[0]===a)break;else{M(b);b=null}}b?M(b):M([a,[],a==="jquery"&&typeof jQuery!=="undefined"?function(){return jQuery}:null]);
v[a]=true;U();if(h.isAsync)i.scriptCount-=1;C();h.isAsync||(i.scriptCount-=1)},toUrl:function(a,b){var c=a.lastIndexOf("."),e=null;if(c!==-1){e=a.substring(c,a.length);a=a.substring(0,c)}return i.nameToUrl(a,e,b)},nameToUrl:function(a,b,c){var e,g,k,n,m=i.config;a=l(a,c&&c.fullName);if(h.jsExtRegExp.test(a))b=a+(b?b:"");else{e=m.paths;g=m.pkgs;c=a.split("/");for(n=c.length;n>0;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(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,
b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},
first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=
g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a);},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!n.isArray(a)&&a-parseFloat(a)>=0},
isPlainObject:function(a){return"object"!==n.type(a)||a.nodeType||n.isWindow(a)?!1:a.constructor&&!j.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=l.createElement("script"),b.text=a,l.head.appendChild(b).parentNode.removeChild(b)):c(a))},
camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c)if(g)for(;f>e;e++){if(d=b.apply(a[e],c),d===!1)break}else for(e in a){if(d=b.apply(a[e],c),d===!1)break}else if(g)for(;f>e;e++){if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,
b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:g.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);
return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(e=d.call(arguments,2),f=function(){return a.apply(b||this,e.concat(d.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:k}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&
b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b){return a===b&&(l=!0),0},C="undefined",D=1<<31,E={}.hasOwnProperty,F=[],G=F.pop,H=F.push,I=F.push,J=F.slice,K=F.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
M="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=N.replace("w","w#"),P="\\["+M+"*("+N+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",Q=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",R=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),S=new RegExp("^"+M+"*,"+M+"*"),T=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),
V=new RegExp(Q),W=new RegExp("^"+O+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+Q),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("^(?:"+L+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)",
"i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{I.apply(F=J.call(v.childNodes),v.childNodes),F[v.childNodes.length].nodeType}catch(eb){I={apply:F.length?function(a,b){H.apply(a,J.call(b))}:function(a,b){var c=
a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],!a||"string"!=typeof a)return d;if(1!==(k=b.nodeType)&&9!==k)return[];if(p&&!e){if(f=_.exec(a))if(j=f[1])if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else{if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return I.apply(d,b.getElementsByTagName(a)),
d;if((j=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return I.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=9===k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+qb(o[l]);w=ab.test(a)&&ob(b.parentNode)||b,x=o.join(",")}if(x)try{return I.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,
"$1"),b,d,e)}function gb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function hb(a){return a[u]=!0,a}function ib(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function jb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function kb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||D)-(~a.sourceIndex||D);if(d)return d;if(c)while(c=
c.nextSibling)if(c===b)return-1;return a?1:-1}function lb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function nb(a){return hb(function(b){return b=+b,hb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function ob(a){return a&&typeof a.getElementsByTagName!==C&&a}c=fb.support={},f=fb.isXML=function(a){var b=
a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fb.setDocument=function(a){var b,e=a?a.ownerDocument||a:v,g=e.defaultView;return e!==n&&9===e.nodeType&&e.documentElement?(n=e,o=e.documentElement,p=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){m()},!1):g.attachEvent&&g.attachEvent("onunload",function(){m()})),c.attributes=ib(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ib(function(a){return a.appendChild(e.createComment("")),
!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(e.getElementsByClassName)&&ib(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=ib(function(a){return o.appendChild(a).id=u,!e.getElementsByName||!e.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==C&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=
a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c=typeof a.getAttributeNode!==C&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==C?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=
c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==C&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(e.querySelectorAll))&&(ib(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&q.push("[*^$]="+M+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+M+"*(?:value|"+L+")"),a.querySelectorAll(":checked").length||q.push(":checked")}),ib(function(a){var b=e.createElement("input");
b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+M+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ib(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",Q)}),q=q.length&&new RegExp(q.join("|")),
r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||
b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===v&&t(v,a)?-1:b===e||b.ownerDocument===v&&t(v,b)?1:k?K.call(k,a)-K.call(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],i=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:k?K.call(k,a)-K.call(k,b):0;if(f===g)return kb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?kb(h[d],
i[d]):h[d]===v?-1:i[d]===v?1:0},e):n},fb.matches=function(a,b){return fb(a,null,null,b)},fb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fb(b,n,null,[a]).length>0},fb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=
d.attrHandle[b.toLowerCase()],f=e&&E.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a);},fb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fb.getText=function(a){var b,
c="",d=0,f=a.nodeType;if(f)if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else{if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fb.selectors={cacheLength:50,createPseudo:hb,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=
(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),
a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+M+")"+a+"("+M+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==C&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===
b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?
l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===
b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?hb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=K.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:hb(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?hb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=
g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:hb(function(a){return function(b){return fb(a,b).length>0}}),contains:hb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:hb(function(a){return W.test(a||"")||fb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=
b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&
a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},
first:nb(function(){return[0]}),last:nb(function(a,b){return[b-1]}),eq:nb(function(a,b,c){return[0>c?c+b:c]}),even:nb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:nb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:nb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:nb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=lb(b);for(b in{submit:!0,
reset:!0})d.pseudos[b]=mb(b);function pb(){}pb.prototype=d.filters=d.pseudos,d.setFilters=new pb,g=fb.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));
if(!c)break}return b?h.length:h?fb.error(a):z(a,i).slice(0)};function qb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function rb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g)while(b=b[d]){if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}
function sb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function tb(a,b,c){for(var d=0,e=b.length;e>d;d++)fb(a,b[d],c);return c}function ub(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function vb(a,b,c,d,e,f){return d&&!d[u]&&(d=vb(d)),e&&!e[u]&&(e=vb(e,f)),hb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||tb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ub(p,m,a,
h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ub(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?K.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ub(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):I.apply(g,r)})}function wb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=rb(function(a){return a===b},h,!0),l=rb(function(a){return K.call(b,
a)>-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>i;i++)if(c=d.relative[a[i].type])m=[rb(sb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return vb(i>1&&sb(m),i>1&&qb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&wb(a.slice(i,e)),f>e&&wb(a=a.slice(e)),f>e&&qb(a))}m.push(c)}return sb(m)}function xb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,
k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||0.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=G.call(i));s=ub(s)}I.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&fb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?hb(f):f}return h=fb.compile=function(a,b){var c,
d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xb(e,d)),f.selector=a}return f},i=fb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?
0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&ob(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qb(j),!a)return I.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&ob(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ib(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ib(function(a){return a.innerHTML="<a href='#'></a>",
"#"===a.firstChild.getAttribute("href")})||jb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ib(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||jb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ib(function(a){return null==a.getAttribute("disabled")})||jb(L,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():
(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fb}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,
a)}return n.grep(a,function(a){return g.call(b,a)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):
d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=n.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);
if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:l,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=l.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=l,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=
a.context),n.makeArray(a,this))};A.prototype=n.fn,y=n(l);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,
b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?g.call(n(a),this[0]):g.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),
n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,
"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(C[a]||n.unique(e),
B.test(a)&&e.reverse()),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return n.each(a.match(E)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(b=a.memory&&l,c=!0,g=e||0,e=0,f=h.length,d=!0;h&&f>g;g++)if(h[g].apply(l[0],l[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,h&&(i?i.length&&j(i.shift()):b?h=[]:k.disable())},k={add:function(){if(h){var c=h.length;!function g(b){n.each(b,
function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&g(c)})}(arguments),d?f=h.length:b&&(e=c,j(b))}return this},remove:function(){return h&&n.each(arguments,function(a,b){var c;while((c=n.inArray(b,h,c))>-1)h.splice(c,1),d&&(f>=c&&f--,g>=c&&g--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],f=0,this},disable:function(){return h=i=b=void 0,this},disabled:function(){return!h},lock:function(){return i=
void 0,b||k.disable(),this},locked:function(){return!i},fireWith:function(a,b){return!h||c&&!i||(b=b||[],b=[a,b.slice?b.slice():b],d?i.push(b):j(b)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!c}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),
this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=
h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&
n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(H.resolveWith(l,[n]),n.fn.triggerHandler&&(n(l).triggerHandler("ready"),n(l).off("ready"))))}});function I(){l.removeEventListener("DOMContentLoaded",
I,!1),a.removeEventListener("load",I,!1),n.ready()}n.ready.promise=function(b){return H||(H=n.Deferred(),"complete"===l.readyState?setTimeout(n.ready):(l.addEventListener("DOMContentLoaded",I,!1),a.addEventListener("load",I,!1))),H.promise(b)},n.ready.promise();var J=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),
c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};n.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function K(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=n.expando+Math.random()}K.uid=1,K.accepts=n.acceptData,K.prototype={key:function(a){if(!K.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=K.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=
c,n.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(n.isEmptyObject(f))n.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,
b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(E)||[])),c=d.length;while(c--)delete g[d[c]]}},hasData:function(a){return!n.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var L=new K,M=new K,N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d=
"data-"+b.replace(O,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}M.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return M.hasData(a)||L.hasData(a)},data:function(a,b,c){return M.access(a,b,c)},removeData:function(a,b){M.remove(a,b)},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=
this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a);if(f&&void 0===b){if(c=M.get(f,a),void 0!==c)return c;if(c=M.get(f,d),void 0!==c)return c;if(c=P(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=
M.get(this,d);M.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&M.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){M.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=L.get(a,b),c&&(!d||n.isArray(c)?d=L.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),
d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return L.get(a,c)||L.access(a,c,{empty:n.Callbacks("once memory").add(function(){L.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,
a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=L.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,R=["Top","Right","Bottom","Left"],S=function(a,b){return a=b||a,"none"===
n.css(a,"display")||!n.contains(a.ownerDocument,a)},T=/^(?:checkbox|radio)$/i;!function(){var a=l.createDocumentFragment(),b=a.appendChild(l.createElement("div")),c=l.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var U="undefined";k.focusinBubbles="onfocusin"in
a;var V=/^key/,W=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^([^.]*)(?:\.(.+)|)$/;function Z(){return!0}function $(){return!1}function _(){try{return l.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return typeof n!==U&&n.event.triggered!==b.type?n.event.dispatch.apply(a,
arguments):void 0}),b=(b||"").match(E)||[""],j=b.length;while(j--)h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g,!1)),l.add&&(l.add.call(a,
k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=L.hasData(a)&&L.get(a);if(r&&(i=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=Y.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||
c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&(delete r.handle,L.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,m,o,p=[d||l],q=j.call(b,"type")?b.type:b,r=j.call(b,"namespace")?b.namespace.split("."):
[];if(g=h=d=d||l,3!==d.nodeType&&8!==d.nodeType&&!X.test(q+n.event.triggered)&&(q.indexOf(".")>=0&&(r=q.split("."),q=r.shift(),r.sort()),k=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=r.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},e||!o.trigger||o.trigger.apply(d,c)!==!1)){if(!e&&!o.noBubble&&
!n.isWindow(d)){for(i=o.delegateType||q,X.test(i+q)||(g=g.parentNode);g;g=g.parentNode)p.push(g),h=g;h===(d.ownerDocument||l)&&p.push(h.defaultView||h.parentWindow||a)}f=0;while((g=p[f++])&&!b.isPropagationStopped())b.type=f>1?i:o.bindType||q,m=(L.get(g,"events")||{})[b.type]&&L.get(g,"handle"),m&&m.apply(g,c),m=k&&g[k],m&&m.apply&&n.acceptData(g)&&(b.result=m.apply(g,c),b.result===!1&&b.preventDefault());return b.type=q,e||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!n.acceptData(d)||
k&&n.isFunction(d[q])&&!n.isWindow(d)&&(h=d[k],h&&(d[k]=null),n.event.triggered=q,d[q](),n.event.triggered=void 0,h&&(d[k]=h)),b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(L.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&
!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(g.namespace))&&(a.handleObj=g,a.data=g.data,e=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(a.result=e)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==
a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>=0:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&
(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||l,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||
void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=W.test(e)?this.mouseHooks:V.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=l),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==_()&&this.focus?
(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===_()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,
{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?Z:$):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=
!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:$,isPropagationStopped:$,isImmediatePropagationStopped:$,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=Z,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=Z,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=Z,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),
this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};
n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=L.access(d,b);e||d.addEventListener(a,c,!0),L.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=L.access(d,b)-1;e?L.access(d,b,e):(d.removeEventListener(a,c,!0),L.remove(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):
(d=c,c=b,b=void 0)),d===!1)d=$;else if(!d)return this;return 1===e&&(f=d,d=function(a){return n().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);
return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=$),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});var ab=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bb=/<([\w:]+)/,cb=/<|&#?\w+;/,db=/<(?:script|style|link)/i,eb=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/^$|\/(?:java|ecma)script/i,
gb=/^true\/(.*)/,hb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ib={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ib.optgroup=ib.option,ib.tbody=ib.tfoot=ib.colgroup=ib.caption=ib.thead,ib.th=ib.td;function jb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||
a.appendChild(a.ownerDocument.createElement("tbody")):a}function kb(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function lb(a){var b=gb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function mb(a,b){for(var c=0,d=a.length;d>c;c++)L.set(a[c],"globalEval",!b||L.get(b[c],"globalEval"))}function nb(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(L.hasData(a)&&(f=L.access(a),g=L.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,
e,j[e][c])}M.hasData(a)&&(h=M.access(a),i=n.extend({},h),M.set(b,i))}}function ob(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function pb(a,b){var c=b.nodeName.toLowerCase();"input"===c&&T.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}n.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,
a);if(!(k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=ob(h),f=ob(a),d=0,e=f.length;e>d;d++)pb(f[d],g[d]);if(b)if(c)for(f=f||ob(a),g=g||ob(h),d=0,e=f.length;e>d;d++)nb(f[d],g[d]);else nb(a,h);return g=ob(h,"script"),g.length>0&&mb(g,!i&&ob(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,o=a.length;o>m;m++)if(e=a[m],e||0===e)if("object"===n.type(e))n.merge(l,e.nodeType?[e]:e);else if(cb.test(e)){f=f||k.appendChild(b.createElement("div")),
g=(bb.exec(e)||["",""])[1].toLowerCase(),h=ib[g]||ib._default,f.innerHTML=h[1]+e.replace(ab,"<$1></$2>")+h[2],j=h[0];while(j--)f=f.lastChild;n.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));k.textContent="",m=0;while(e=l[m++])if((!d||-1===n.inArray(e,d))&&(i=n.contains(e.ownerDocument,e),f=ob(k.appendChild(e),"script"),i&&mb(f),c)){j=0;while(e=f[j++])fb.test(e.type||"")&&c.push(e)}return k},cleanData:function(a){for(var b,c,d,e,f=n.event.special,g=0;void 0!==
(c=a[g]);g++){if(n.acceptData(c)&&(e=c[L.expando],e&&(b=L.cache[e]))){if(b.events)for(d in b.events)f[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);L.cache[e]&&delete L.cache[e]}delete M.cache[c[M.expando]]}}}),n.fn.extend({text:function(a){return J(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===
this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=jb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},
remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(ob(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&mb(ob(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(ob(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return J(this,function(a){var b=
this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!db.test(a)&&!ib[(bb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(ab,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ob(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(ob(this)),a&&a.replaceChild(b,this)}),a&&(a.length||
a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,m=this,o=l-1,p=a[0],q=n.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&eb.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(c=n.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(f=n.map(ob(c,"script"),kb),g=f.length;l>j;j++)h=c,
j!==o&&(h=n.clone(h,!0,!0),g&&n.merge(f,ob(h,"script"))),b.call(this[j],h,j);if(g)for(i=f[f.length-1].ownerDocument,n.map(f,lb),j=0;g>j;j++)h=f[j],fb.test(h.type||"")&&!L.access(h,"globalEval")&&n.contains(i,h)&&(h.src?n._evalUrl&&n._evalUrl(h.src):n.globalEval(h.textContent.replace(hb,"")))}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),g=e.length-1,h=0;g>=h;h++)c=
h===g?this:this.clone(!0),n(e[h])[b](c),f.apply(d,c.get());return this.pushStack(d)}});var qb,rb={};function sb(b,c){var d,e=n(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:n.css(e[0],"display");return e.detach(),f}function tb(a){var b=l,c=rb[a];return c||(c=sb(a,b),"none"!==c&&c||(qb=(qb||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=qb[0].contentDocument,b.write(),b.close(),c=sb(a,b),qb.detach()),
rb[a]=c),c}var ub=/^margin/,vb=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),wb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};function xb(a,b,c){var d,e,f,g,h=a.style;return c=c||wb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),vb.test(g)&&ub.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function yb(a,b){return{get:function(){return a()?
void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d=l.documentElement,e=l.createElement("div"),f=l.createElement("div");if(f.style){f.style.backgroundClip="content-box",f.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===f.style.backgroundClip,e.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",e.appendChild(f);function g(){f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",
f.innerHTML="",d.appendChild(e);var g=a.getComputedStyle(f,null);b="1%"!==g.top,c="4px"===g.width,d.removeChild(e)}a.getComputedStyle&&n.extend(k,{pixelPosition:function(){return g(),b},boxSizingReliable:function(){return null==c&&g(),c},reliableMarginRight:function(){var b,c=f.appendChild(l.createElement("div"));return c.style.cssText=f.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width=
"0",f.style.width="1px",d.appendChild(e),b=!parseFloat(a.getComputedStyle(c,null).marginRight),d.removeChild(e),b}})}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var zb=/^(none|table(?!-c[ea]).+)/,Ab=new RegExp("^("+Q+")(.*)$","i"),Bb=new RegExp("^([+-])=("+Q+")","i"),Cb={position:"absolute",visibility:"hidden",display:"block"},Db={letterSpacing:"0",fontWeight:"400"},Eb=["Webkit","O","Moz","ms"];function Fb(a,
b){if(b in a)return b;var c=b[0].toUpperCase()+b.slice(1),d=b,e=Eb.length;while(e--)if(b=Eb[e]+c,b in a)return b;return d}function Gb(a,b,c){var d=Ab.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Hb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+R[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+R[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+R[f]+"Width",!0,e))):(g+=n.css(a,"padding"+R[f],!0,e),"padding"!==c&&(g+=n.css(a,
"border"+R[f]+"Width",!0,e)));return g}function Ib(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=wb(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=xb(a,b,f),(0>e||null==e)&&(e=a.style[b]),vb.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Hb(a,b,c||(g?"border":"content"),d,f)+"px"}function Jb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=L.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||
(d.style.display=""),""===d.style.display&&S(d)&&(f[g]=L.access(d,"olddisplay",tb(d.nodeName)))):(e=S(d),"none"===c&&e||L.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=xb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,
order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Fb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Bb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||
0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Fb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=xb(a,b,d)),"normal"===e&&b in Db&&(e=Db[b]),""===c||c?(f=parseFloat(e),c===!0||n.isNumeric(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?zb.test(n.css(a,"display"))&&
0===a.offsetWidth?n.swap(a,Cb,function(){return Ib(a,b,d)}):Ib(a,b,d):void 0},set:function(a,c,d){var e=d&&wb(a);return Gb(a,c,d?Hb(a,b,d,"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),n.cssHooks.marginRight=yb(k.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},xb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+R[d]+b]=f[d]||
f[d-2]||f[0];return e}},ub.test(a)||(n.cssHooks[a+b].set=Gb)}),n.fn.extend({css:function(a,b){return J(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=wb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Jb(this,!0)},hide:function(){return Jb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){S(this)?n(this).show():n(this).hide()})}});function Kb(a,
b,c,d,e){return new Kb.prototype.init(a,b,c,d,e)}n.Tween=Kb,Kb.prototype={constructor:Kb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Kb.propHooks[this.prop];return a&&a.get?a.get(this):Kb.propHooks._default.get(this)},run:function(a){var b,c=Kb.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,
0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Kb.propHooks._default.set(this),this}},Kb.prototype.init.prototype=Kb.prototype,Kb.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||
n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Kb.propHooks.scrollTop=Kb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}},n.fx=Kb.prototype.init,n.fx.step={};var Lb,Mb,Nb=/^(?:toggle|show|hide)$/,Ob=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),Pb=/queueHooks$/,Qb=[Vb],Rb={"*":[function(a,b){var c=this.createTween(a,b),d=
c.cur(),e=Ob.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&Ob.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function Sb(){return setTimeout(function(){Lb=void 0}),Lb=n.now()}function Tb(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=R[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=
e.width=a),e}function Ub(a,b,c){for(var d,e=(Rb[b]||[]).concat(Rb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Vb(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&S(a),q=L.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&
(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?L.get(a,"olddisplay")||tb(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Nb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;
if(n.isEmptyObject(m))"inline"===("none"===j?tb(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=L.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;L.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ub(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function Wb(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==
d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function Xb(a,b,c){var d,e,f=0,g=Qb.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Lb||Sb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,
{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Lb||Sb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(Wb(k,j.opts.specialEasing);g>f;f++)if(d=Qb[f].call(j,a,k,j.opts))return d;return n.map(k,Ub,j),
n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(Xb,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],Rb[c]=Rb[c]||[],Rb[c].unshift(b)},prefilter:function(a,b){b?Qb.unshift(a):Qb.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||
!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(S).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,
b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=Xb(this,n.extend({},a),f);(e||L.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=L.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Pb.test(e)&&
d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=L.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),
n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Tb(b,!0),a,d,e)}}),n.each({slideDown:Tb("show"),slideUp:Tb("hide"),slideToggle:Tb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Lb=n.now();b<c.length;b++)a=c[b],a()||c[b]!==
a||c.splice(b--,1);c.length||n.fx.stop(),Lb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Mb||(Mb=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(Mb),Mb=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=l.createElement("input"),
b=l.createElement("select"),c=b.appendChild(l.createElement("option"));a.type="checkbox",k.checkOn=""!==a.value,k.optSelected=c.selected,b.disabled=!0,k.optDisabled=!c.disabled,a=l.createElement("input"),a.value="t",a.type="radio",k.radioValue="t"===a.value}();var Yb,Zb,$b=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return J(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&
3!==f&&8!==f&&2!==f)return typeof a.getAttribute===U?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?Zb:Yb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},
attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$b[b]=function(a,b,d){var e,f;return d||(f=$b[b],$b[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,$b[b]=f),e}});var _b=/^(?:input|select|textarea|button)$/i;n.fn.extend({prop:function(a,
b){return J(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||
_b.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),k.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var ac=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,
b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(E)||[];j>i;i++)if(c=
this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ac," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?n.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(E)||[];while(b=
f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===U||"boolean"===c)&&(this.className&&L.set(this,"__className__",this.className),this.className=this.className||a===!1?"":L.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ac," ").indexOf(b)>=0)return!0;return!1}});var bc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;
1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(bc,""):null==c?"":c)}}),n.extend({valHooks:{option:{get:function(a){var b=
n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=
n.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},k.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),
function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var cc=n.now(),dc=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.parseXML=
function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+a),b};var ec,fc,gc=/#.*$/,hc=/([?&])_=[^&]*/,ic=/^(.*?):[ \t]*([^\r\n]*)$/gm,jc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,kc=/^(?:GET|HEAD)$/,lc=/^\/\//,mc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,nc={},oc={},pc="*/".concat("*");try{fc=location.href}catch(qc){fc=
l.createElement("a"),fc.href="",fc=fc.href}ec=mc.exec(fc.toLowerCase())||[];function rc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(n.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function sc(a,b,c,d){var e={},f=a===oc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),
i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function tc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function uc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==
i[0]&&i.unshift(f),c[f]):void 0}function vc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==
!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:fc,type:"GET",isLocal:jc.test(ec[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,
json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?tc(tc(a,n.ajaxSettings),b):tc(n.ajaxSettings,a)},ajaxPrefilter:rc(nc),ajaxTransport:rc(oc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,
o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!f){f={};while(b=ic.exec(e))f[b[1].toLowerCase()]=b[2]}b=f[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?e:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=
[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return c&&c.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||fc)+"").replace(gc,"").replace(lc,ec[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(h=mc.exec(k.url.toLowerCase()),k.crossDomain=!(!h||h[1]===ec[1]&&h[2]===ec[2]&&(h[3]||("http:"===h[1]?"80":"443"))===(ec[3]||("http:"===
ec[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),sc(nc,k,b,v),2===t)return v;i=k.global,i&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!kc.test(k.type),d=k.url,k.hasContent||(k.data&&(d=k.url+=(dc.test(d)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=hc.test(d)?d.replace(hc,"$1_="+cc++):d+(dc.test(d)?"&":"?")+"_="+cc++)),k.ifModified&&(n.lastModified[d]&&v.setRequestHeader("If-Modified-Since",
n.lastModified[d]),n.etag[d]&&v.setRequestHeader("If-None-Match",n.etag[d])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+pc+"; q=0.01":""):k.accepts["*"]);for(j in k.headers)v.setRequestHeader(j,k.headers[j]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(j in{success:1,error:1,
complete:1})v[j](k[j]);if(c=sc(oc,k,b,v)){v.readyState=1,i&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,c.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,f,h){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),c=void 0,e=h||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,f&&(u=uc(k,v,f)),u=vc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[d]=w),w=v.getResponseHeader("etag"),
w&&(n.etag[d]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,i&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),i&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,
b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?
this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?
a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var wc=/%20/g,xc=/\[\]$/,yc=/\r?\n/g,zc=/^(?:submit|button|image|reset|file)$/i,Ac=/^(?:input|select|textarea|keygen)/i;function Bc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||xc.test(a)?d(a,e):
Bc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Bc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Bc(c,a[c],b,e);return d.join("&").replace(wc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},
serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Ac.test(this.nodeName)&&!zc.test(a)&&(this.checked||!T.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(yc,"\r\n")}}):{name:b.name,value:c.replace(yc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};
var Cc=0,Dc={},Ec={"0":200,1223:204},Fc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Dc)Dc[a]()}),k.cors=!!Fc&&"withCredentials"in Fc,k.ajax=Fc=!!Fc,n.ajaxTransport(function(a){var b;return k.cors||Fc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Cc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||
(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Dc[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Ec[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Dc[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h;}},abort:function(){b&&b()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},
contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=n("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),l.head.appendChild(b[0])},abort:function(){c&&c()}}}});
var Gc=[],Hc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Gc.pop()||n.expando+"_"+cc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Hc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Hc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Hc,"$1"+
e):b.jsonp!==!1&&(b.url+=(dc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Gc.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||l;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:
(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var Ic=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Ic)return Ic.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,
f||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var Jc=a.document.documentElement;function Kc(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):
(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(typeof d.getBoundingClientRect!==U&&(e=d.getBoundingClientRect()),c=Kc(f),{top:e.top+
c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=
this.offsetParent||Jc;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Jc})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;n.fn[b]=function(e){return J(this,function(b,e,f){var g=Kc(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=yb(k.pixelPosition,function(a,c){return c?(c=xb(a,
b),vb.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return J(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):
void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Lc=a.jQuery,Mc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Mc),b&&a.jQuery===n&&(a.jQuery=Lc),n},typeof b===U&&(a.jQuery=a.$=n),n});(function(){var TDV=window["TDV"]||(window["TDV"]={});(function(){(function(){function n(n){function t(t,r,e,u,i,o){for(;i>=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])<u?i=a+1:o=a}return i},m.indexOf=r(1,m.findIndex,m.sortedIndex),m.lastIndexOf=
r(-1,m.findLastIndex),m.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;e>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<arguments.length;)i.push(arguments[e++]);return E(n,r,this,this,i)};return r},m.bindAll=function(n){var t,r,e=arguments.length;if(1>=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},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,o=!0,q=null,y=!1;function E(){return function(){}}function N(a){return function(b){this[a]=b}}function Q(a){return function(){return this[a]}}function R(a){return function(){return a}}
(function(){function a(a){this.Vj=a;this.Xn=q;this.Bc={}}function b(){this.ij={};this.ij[b.SCRIPT_URL]=[];this.ij[b.THREE_JS_WEBGL_URL]="lib/ThreeWebGL.js";this.ij[b.WEBVR_POLYFILL_URL]="lib/WebVRPolyfill.js";this.ij[b.HLS_URL]="lib/Hls.js";this.ij[b.CURSORS_DIR_URL]="lib/cursors";this.ij[b.SERVICE_WORKER_URL]="tdvplayersw.js";this.ij[b.BACKGROUND_PRELOAD_ENABLED]=m}function c(){this.aB=[];this.AI=[];this.mla=[];this.LE=q}function e(a){return"[object Array]"==Object.prototype.toString.call(a)}function d(a){return 0<=
i.search(a.toLowerCase())}var f=window.TDV=window.TDV||{},i=navigator.userAgent.toLowerCase();c.prototype.getVersion=c.prototype.F9=function(){return{MAJOR:"0",MINOR:"1351"}};c.prototype.j5=function(){if(this.LE)for(;0<this.aB.length;){var a=this.aB[0];this.aB=this.aB.slice(1);this.AI.push(a);this.aga(a)}};c.prototype.g3=function(a){var b=document.createElement("a");b.href=a;return b.href};c.prototype.Uha=function(){var a=document.currentScript;a||(a=document.getElementsByTagName("head")[0].getElementsByTagName("script"),
a=a[a.length-1]);return this.g3(a.src)};c.prototype.aga=function(a){var f=this,g=a.Vj.get(b.SELECTED_SCRIPT_URL);setTimeout(function(){var b=document.createElement("script");b.type="text/javascript";b.src=g;document.getElementsByTagName("head")[0].appendChild(b);f.LE.nva(a)},1)};c.prototype.defineScript=c.prototype.Jwa=function(a){for(var f=[],g=this.Uha(),d=0;d<this.AI.length;d++){var c=this.AI[d],j=this.g3(c.Vj.get(b.SELECTED_SCRIPT_URL));j==g?(c.Vj.set(b.SCRIPT_DATA,a),c.Fua(new this.LE(c,c.Vj)),
this.mla.push(c)):f.push(j)}this.AI=f};c.prototype.create=c.prototype.create=function(a){var d=a.get(b.SCRIPT_URL),d=e(d)?this.ama(d):"string"===typeof d?d:"script.js";a.set(b.SELECTED_SCRIPT_URL,d);a=new f.PY(a);this.aB.push(a);this.j5();return a};c.prototype.setPlayerClass=c.prototype.Eua=function(a){this.LE=a;this.j5()};c.prototype.getOrientation=c.prototype.Cm=function(){var a=screen.orientation&&screen.orientation.type||window.orientation;return"portrait-primary"==a||"portrait-secondary"==a||
0===a||180==a?f.xa.pM:"landscape-primary"==a||"landscape-secondary"==a||90==a||-90==a?f.xa.oM:window.innerWidth<window.innerHeight?f.xa.pM:f.xa.oM};c.prototype.ama=function(a){if(0<a.length){for(var b=0;b<a.length;b++){var f=a[b];if(e(f)){if(this.c7(f[0]))return f[1]}else if("string"===typeof f)return f}return a[0][1]}return"script.js"};c.prototype.c7=function(a){if("string"===typeof a){var b=a.match(/^\s*default\s*$/);if(b)return o;if(b=a.match(/^\s*os\s*=\s*(\w+)\s*$/))return this.sd==b[1].toLowerCase();
if(b=a.match(/^\s*browser\s*=\s*(\w+)\s*$/))return this.browser==b[1].toLowerCase();if(b=a.match(/^\s*device\s*=\s*(\w+)\s*$/))return this.Rt==b[1].toLowerCase();if(b=a.match(/^\s*screen_size\s*(<|>|=|<=|>=)\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<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};break;case ">=":d=function(a,b){return a>=b}}return d(screen.width,
a)&&d(screen.height,f)||this.hW&&d(screen.width,f)&&d(screen.height,a)}return y}if(e(a)){for(b=0;b<a.length;b++)if(!this.c7(a[b]))return y;return o}return y};c.prototype.ORIENTATION_LANDSCAPE=c.prototype.oM="landscape";c.prototype.ORIENTATION_PORTRAIT=c.prototype.pM="portrait";c.prototype.OS_IOS=c.prototype.BE="ios";c.prototype.OS_ANDROID=c.prototype.qM="android";c.prototype.OS_WINDOWS=c.prototype.DY="windows";c.prototype.OS_WINDOWS_PHONE=c.prototype.uM="windows_phone";c.prototype.OS_MACOSX=c.prototype.rM=
"osx";c.prototype.OS_LINUX=c.prototype.CY="linux";c.prototype.OS_QNX=c.prototype.tM="qnx";c.prototype.OS_OTHER=c.prototype.sM="other";c.prototype.BROWSER_TYPE_WEBKIT=c.prototype.ny="webkit";c.prototype.BROWSER_TYPE_OPERA=c.prototype.tL="opera";c.prototype.BROWSER_TYPE_MSIE=c.prototype.sL="msie";c.prototype.BROWSER_TYPE_MOZILLA=c.prototype.rL="mozilla";c.prototype.BROWSER_TYPE_OTHER=c.prototype.uL="other";c.prototype.BROWSER_SAFARI_IOS=c.prototype.Ug="safari_ios";c.prototype.BROWSER_OPERA=c.prototype.dE=
"opera";c.prototype.BROWSER_SAFARI=c.prototype.Wi="safari";c.prototype.BROWSER_CHROME=c.prototype.Vi="chrome";c.prototype.BROWSER_EDGE=c.prototype.pr="edge";c.prototype.BROWSER_MSIE=c.prototype.qr="msie";c.prototype.BROWSER_ANDROID=c.prototype.iy="android";c.prototype.BROWSER_MOZILLA=c.prototype.jy="mozilla";c.prototype.BROWSER_OTHER=c.prototype.qL="other";c.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET=c.prototype.iE="samsunginternet";c.prototype.BROWSER_SUBTYPE_OCULUS_BROWSER=c.prototype.Zo="oculusbrowser";
c.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET_FOR_GEAR_VR=c.prototype.my="samsunginternetgearvr";c.prototype.BROWSER_SUBTYPE_CHROME_IOS=c.prototype.eE="chromeios";c.prototype.BROWSER_SUBTYPE_SAFARI_IOS=c.prototype.ky="safari_ios";c.prototype.BROWSER_SUBTYPE_CHROME_WEBVIEW=c.prototype.Fu="chrome_webview";c.prototype.BROWSER_SUBTYPE_SAFARI_WEBVIEW=c.prototype.ly="safari_webview";c.prototype.BROWSER_SUBTYPE_TOUR_LAUNCHER=c.prototype.rr="tour_launcher";c.prototype.BROWSER_SUBTYPE_CHROMIUM_EDGE=c.prototype.Fu=
"chromium_edge";c.prototype.BROWSER_SUBTYPE_FIREFOX_REALITY=c.prototype.gE="firefox_reality";c.prototype.BROWSER_SUBTYPE_FACEBOOK_IOS_WEBVIEW=c.prototype.fE="facebook_ios_webview";c.prototype.BROWSER_SUBTYPE_OTHER=c.prototype.hE="other";c.prototype.BROWSER_VERSION_UNKNOWN=c.prototype.vL=-1;c.prototype.DEVICE_IPHONE=c.prototype.zL="iphone";c.prototype.DEVICE_IPAD=c.prototype.py="ipad";c.prototype.DEVICE_IPOD=c.prototype.AL="ipod";c.prototype.DEVICE_OTHER=c.prototype.BL="other";c.prototype.os=c.prototype.sd=
d("iphone")||d("ipad")||d("ipod")?c.prototype.BE:d("qnx")?c.prototype.tM:d("android")||d("oculusbrowser")&&d("linux")?c.prototype.qM:d("windows phone")?c.prototype.uM:d("windows")?c.prototype.DY:d("mac_powerpc")?c.prototype.rM:d("macintosh")?1<navigator.maxTouchPoints?c.prototype.BE:c.prototype.rM:d("linux")||d("x11")?c.prototype.CY:c.prototype.sM;c.prototype.browser=c.prototype.browser=d("ipad")||d("iphone")||d("ipod")||d("macintosh")&&1<navigator.maxTouchPoints?c.prototype.Ug:d("opera")?c.prototype.dE:
d("edge")?c.prototype.pr:d("chrome")||d("crmo")?c.prototype.Vi:d("android")?c.prototype.iy:d("safari")?c.prototype.Wi:d("trident")||d("msie")?c.prototype.qr:!d("compatible")&&d("mozilla")?c.prototype.jy:c.prototype.qL;c.prototype.browserType=c.prototype.ix=c.prototype.browser==c.prototype.Ug||c.prototype.browser==c.prototype.Vi||c.prototype.browser==c.prototype.iy||c.prototype.browser==c.prototype.Wi||d("webkit")?c.prototype.ny:c.prototype.browser==c.prototype.dE||d("opera")?c.prototype.tL:d("trident")||
d("msie")?c.prototype.sL:!d("compatible")&&d("mozilla")?c.prototype.rL:c.prototype.uL;c.prototype.browserSubtype=c.prototype.fd=d("oculusbrowser")?c.prototype.Zo:d("samsungbrowser")&&d("android")?d("mobile vr")?c.prototype.my:c.prototype.iE:d("ipad")||d("iphone")||d("ipod")?d("crios")?c.prototype.eE:d("fban")||d("fbav")?c.prototype.fE:d("safari")&&d("version")&&!navigator.sxa?c.prototype.ky:c.prototype.ly:d("electron")?c.prototype.rr:d("chrome")&&d("wv")?c.prototype.Fu:d("edg/")?c.prototype.zX:!d("compatible")&&
d("mozilla")&&d("mobile vr")?c.prototype.gE:c.prototype.hE;c.prototype.browserVersion=c.prototype.F8=function(){if(c.prototype.browser==c.prototype.qr){var a=i.match(/MSIE ([0-9]{1,}[.0-9]{0,})/);if(a!=q)return parseFloat(a[1]);a=i.match(/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/);if(a!=q)return parseFloat(a[1])}return c.prototype.vL}();c.prototype.device=c.prototype.Rt=d("ipad")||d("macintosh")&&1<navigator.maxTouchPoints?c.prototype.py:d("iphone")?c.prototype.zL:d("ipod")?c.prototype.AL:c.prototype.BL;
var j;a:{switch(c.prototype.sd){case c.prototype.qM:case c.prototype.BE:case c.prototype.uM:case c.prototype.tM:j=o;break a}j=y}c.prototype.mobile=c.prototype.hW=j;f.PlayerAPI=f.xa=new c;b.prototype.append=b.prototype.append=function(a,f,g){a==b.SCRIPT_URL&&("undefined"==typeof g&&(g=f,f="default"),f=[f,g]);e(this.ij[a])||(this.ij[a]=[]);this.ij[a].push(f)};b.prototype.set=b.prototype.set=function(a,b){this.ij[a]=b};b.prototype.get=b.prototype.get=function(a){return this.ij[a]};b.SCRIPT_URL=b.SCRIPT_URL=
"ScriptURL";b.SCRIPT_DATA=b.SCRIPT_DATA="ScriptData";b.FLASH_EXPRESS_INSTALLER_URL=b.FLASH_EXPRESS_INSTALLER_URL="FlashExpressInstallerURL";b.FLASH_AUDIO_PLAYER_URL=b.FLASH_AUDIO_PLAYER_URL="FlashAudioPlayerURL";b.FLASH_VIDEO_PLAYER_URL=b.FLASH_VIDEO_PLAYER_URL="FlashVideoPlayerURL";b.FLASH_PANORAMA_PLAYER_URL=b.FLASH_PANORAMA_PLAYER_URL="FlashPanoramaPlayerURL";b.THREE_JS_WEBGL_URL=b.THREE_JS_WEBGL_URL="ThreeJSWebGLURL";b.WEBVR_POLYFILL_URL=b.WEBVR_POLYFILL_URL="WebVRPolyfillURL";b.CAPTURA_VIEWER_URL=
b.CAPTURA_VIEWER_URL="CapturaViewerURL";b.DASH_URL=b.DASH_URL="DashURL";b.HLS_URL=b.HLS_URL="HlsURL";b.CONTAINER=b.CONTAINER="Container";b.SELECTED_SCRIPT_URL=b.SELECTED_SCRIPT_URL="SelectedScriptURL";b.BASE_DIR_URL=b.BASE_DIR_URL="BaseDirURL";b.QUERY_STRING_PARAMETERS=b.QUERY_STRING_PARAMETERS="QueryStringParameters";b.CURSORS_DIR_URL=b.CURSORS_DIR_URL="CursorsDirURL";b.BACKGROUND_PRELOAD_ENABLED=b.BACKGROUND_PRELOAD_ENABLED="BackgroundPreloadEnabled";b.ACTIVE_VIDEO_ELEMENT=b.ACTIVE_VIDEO_ELEMENT=
"ActiveVideoElement";b.SERVICE_WORKER_URL=b.SERVICE_WORKER_URL="ServiceWorkerURL";b.PINCH_TO_ZOOM_ENABLED=b.nca="PinchToZoomEnabled";f.PlayerSettings=f.PlayerSettings=b;f.PlayerEvent=f.EE=function(a,b,f,d){this.name=a;this.data=this.originalEvent=b;this.sourceClassName=f[f.length-1];this.sourceClassPath=f;this.sourceId=d};a.prototype.Fua=N("Xn");a.prototype["delete"]=function(){this.Xn&&(this.Xn.clear(),this.Xn=q)};a.prototype.getById=a.prototype.Pwa=function(a){return this.Xn?this.Xn.Gra(a):q};a.prototype.getByClassName=
a.prototype.vm=function(a){return this.Xn?this.Xn.z9(a):[]};a.prototype.createInstance=a.prototype.Uq=function(a){return this.Xn.Uq(a)};a.prototype.bind=a.prototype.bind=function(a,b,f,d){var c=a.split(":"),a=c[0],c=1<c.length?c[1]:"*";this.Bc[a]=this.Bc[a]||{};this.Bc[a][c]=this.Bc[a][c]||[];this.Bc[a][c].push({handler:b,context:f,immediate:d});return this};a.prototype.unbind=a.prototype.unbind=function(a,b,f,d){var c=a.split(":"),a=c[0],c=1<c.length?c[1]:"*";if(a in this.Bc&&c in this.Bc[a]){for(var j=
[],i=this.Bc[a][c],e=0;e<i.length;e++){var u=i[e];(u.handler!=b||u.context!=f||u.immediate!=d)&&j.push(u)}this.Bc[a][c]=j}};a.prototype.bindOnObject=a.prototype.Bwa=function(a,b,f,d,c){return this.bind(b+":"+this.KP(a),f,d,c)};a.prototype.unbindOnObject=a.prototype.zxa=function(a,b,f,d,c){return this.unbind(b+":"+this.KP(a),f,d,c)};a.prototype.bindOnObjectsOf=a.prototype.Cwa=function(a,b,f,d,c){return this.bind(b+":"+this.zP(a),f,d,c)};a.prototype.unbindOnObjectsOf=a.prototype.Axa=function(a,b,f,
d,c){return this.unbind(b+":"+this.zP(a),f,d,c)};a.prototype.cookiesEnabled=a.prototype.pqa=y;a.DEFAULT_PANORAMA_HFOV=a.Hba=c.prototype.hW?90:110;a.prototype.trigger=function(a){if(a.name in this.Bc){this.az(a,o);var b=this;setTimeout(function(){b.az(a,y)},0)}};a.prototype.az=function(a,b){for(var f=this.nha(a,b),d=0;d<f.length;d++)try{f[d].handler.call(f[d].context||window,a)}catch(c){setTimeout(function(){h(c)},0)}};a.prototype.nha=function(a,b){var f=[];if(a.name in this.Bc){for(var d=[],c=0;c<
a.sourceClassPath.length;c++)d.push(this.zP(a.sourceClassPath[c]));a.sourceId&&d.push(this.KP(a.sourceId));d.push("*");for(var j=this.Bc[a.name],c=0;c<d.length;c++)for(var i=j[d[c]]||[],e=0;e<i.length;e++)!!i[e].immediate==!!b&&f.push(i[e])}return f};a.prototype.KP=function(a){return"instance("+a+")"};a.prototype.zP=function(a){return"className("+a+")"};f.Player=f.PY=a})();define("jquery.mod",["jquery"],function(a){return a.noConflict(o)});
(function(){(function(){function a(a,b){return a.Bea?p(b).chain():b}function b(a){return"\\"+T[a]}function c(a){function b(f){return a[f]}var f="(?:"+p.keys(a).join("|")+")",d=RegExp(f),g=RegExp(f,"g");return function(a){return a=q==a?"":""+a,d.test(a)?a.replace(g,b):a}}function e(a,b,f,d){if(a===b)return 0!==a||1/a===1/b;if(q==a||q==b)return a===b;a instanceof p&&(a=a.Mt);b instanceof p&&(b=b.Mt);var g=F.call(a);if(g!==F.call(b))return y;switch(g){case "[object RegExp]":case "[object String]":return""+
a==""+b;case "[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return+a===+b}g="[object Array]"===g;if(!g){if("object"!=typeof a||"object"!=typeof b)return y;var k=a.constructor,c=b.constructor;if(k!==c&&(!p.isFunction(k)||!(k instanceof k&&p.isFunction(c)&&c instanceof c))&&"constructor"in a&&"constructor"in b)return y}f=f||[];d=d||[];for(k=f.length;k--;)if(f[k]===a)return d[k]===b;if(f.push(a),d.push(b),g){if(k=a.length,k!==b.length)return y;
for(;k--;)if(!e(a[k],b[k],f,d))return y}else{var j,g=p.keys(a);if(k=g.length,p.keys(b).length!==k)return y;for(;k--;)if(j=g[k],!p.has(b,j)||!e(a[j],b[j],f,d))return y}return f.pop(),d.pop(),o}function d(a,b,f,d,g){if(!(d instanceof b))return a.apply(f,g);b=n(a.prototype);a=a.apply(b,g);return p.Mx(a)?a:b}function f(a,b,d,g){for(var k=[],c=0,g=g||0,i=D(a);i>g;g++){var e=a[g];if(j(e)&&(p.isArray(e)||p.isArguments(e))){b||(e=f(e,b,d));var l=0,n=e.length;for(k.length+=n;n>l;)k[c++]=e[l++]}else d||(k[c++]=
e)}return k}function i(a){return function(b,f,d){var g={};return f=l(f,d),p.each(b,function(d,k){var c=f(d,k,b);a(g,d,c)}),g}}function j(a){a=D(a);return"number"==typeof a&&0<=a&&L>=a}function k(a){return function(b){return q==b?m:b[a]}}function n(a){if(!p.Mx(a))return{};if(M)return M(a);s.prototype=a;a=new s;return s.prototype=q,a}function g(a,b){return function(f){var d=arguments.length;if(2>d||q==f)return f;for(var g=1;d>g;g++)for(var k=arguments[g],c=a(k),j=c.length,i=0;j>i;i++){var p=c[i];b&&
f[p]!==m||(f[p]=k[p])}return f}}function l(a,b,f){return q==a?p.identity:p.isFunction(a)?r(a,b,f):p.Mx(a)?p.cW(a):p.Y$(a)}function r(a,b,f){if(b===m)return a;switch(q==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,k){return a.call(b,f,d,g,k)}}return function(){return a.apply(b,arguments)}}function p(a){return a instanceof p?a:this instanceof p?void(this.Mt=a):
new p(a)}function s(){}function t(a){return function(b,f,d,g){var f=r(f,g,4),k=!j(b)&&p.keys(b),c=(k||b).length,i=0<a?0:c-1;3>arguments.length&&(d=b[k?k[i]:i],i+=a);for(var e=f,l=d;0<=i&&c>i;i+=a)var n=k?k[i]:i,l=e(l,b[n],n,b);return l}}function u(a){return function(b,f,d){for(var f=l(f,d),d=D(b),g=0<a?0:d-1;0<=g&&d>g;g+=a)if(f(b[g],g,b))return g;return-1}}function v(a,b,f){return function(d,g,k){var c=0,j=D(d);if("number"==typeof k)0<a?c=0<=k?k:Math.max(k+j,c):j=0<=k?Math.min(k+1,j):k+j+1;else if(f&&
k&&j)return k=f(d,g),d[k]===g?k:-1;if(g!==g)return k=b(z.call(d,c,j),p.isNaN),0<=k?k+c:-1;for(k=0<a?c:j-1;0<=k&&j>k;k+=a)if(d[k]===g)return k;return-1}}function x(a,b){var f=I.length,d=a.constructor,d=p.isFunction(d)&&d.prototype||B,g="constructor";for(p.has(a,g)&&!p.contains(b,g)&&b.push(g);f--;)g=I[f],g in a&&a[g]!==d[g]&&!p.contains(b,g)&&b.push(g)}var w=this,A=w.MM,C=Array.prototype,B=Object.prototype,G=C.push,z=C.slice,F=B.toString,H=B.hasOwnProperty,J=Array.isArray,O=Object.keys,K=Function.prototype.bind,
M=Object.create;"undefined"!=typeof exports?("undefined"!=typeof module&&module.Kqa&&(exports=module.Kqa=p),exports.MM=p):w.MM=p;p.VERSION="1.8.3";p.axa=function(a,b){return l(a,b,1/0)};var L=Math.pow(2,53)-1,D=k("length");p.each=p.forEach=function(a,b,f){var b=r(b,f),d;if(j(a)){f=0;for(d=a.length;d>f;f++)b(a[f],f,a)}else{var g=p.keys(a),f=0;for(d=g.length;d>f;f++)b(a[g[f]],g[f],a)}return a};p.map=p.Fwa=function(a,b,f){for(var b=l(b,f),f=!j(a)&&p.keys(a),d=(f||a).length,g=Array(d),k=0;d>k;k++){var c=
f?f[k]:k;g[k]=b(a[c],c,a)}return g};p.reduce=p.Mwa=p.Xwa=t(1);p.reduceRight=p.Nwa=t(-1);p.find=p.detect=function(a,b,f){var d;return d=j(a)?p.a9(a,b,f):p.Pqa(a,b,f),d!==m&&-1!==d?a[d]:m};p.filter=p.select=function(a,b,f){var d=[];return b=l(b,f),p.each(a,function(a,f,g){b(a,f,g)&&d.push(a)}),d};p.reject=function(a,b,f){return p.filter(a,p.L$(l(b)),f)};p.every=p.all=function(a,b,f){for(var b=l(b,f),f=!j(a)&&p.keys(a),d=(f||a).length,g=0;d>g;g++){var k=f?f[g]:g;if(!b(a[k],k,a))return y}return o};p.some=
p.any=function(a,b,f){for(var b=l(b,f),f=!j(a)&&p.keys(a),d=(f||a).length,g=0;d>g;g++){var k=f?f[g]:g;if(b(a[k],k,a))return o}return y};p.contains=p.Vwa=p.include=function(a,b,f,d){return j(a)||(a=p.values(a)),("number"!=typeof f||d)&&(f=0),0<=p.indexOf(a,b,f)};p.invoke=function(a,b){var f=z.call(arguments,2),d=p.isFunction(b);return p.map(a,function(a){var g=d?b:a[b];return q==g?g:g.apply(a,f)})};p.pluck=function(a,b){return p.map(a,p.Y$(b))};p.Dxa=function(a,b){return p.filter(a,p.cW(b))};p.Lwa=
function(a,b){return p.find(a,p.cW(b))};p.max=function(a,b,f){var d,g=-1/0,k=-1/0;if(q==b&&q!=a)for(var a=j(a)?a:p.values(a),c=0,i=a.length;i>c;c++)f=a[c],f>g&&(g=f);else b=l(b,f),p.each(a,function(a,f,c){d=b(a,f,c);(d>k||d===-1/0&&g===-1/0)&&(g=a,k=d)});return g};p.min=function(a,b,f){var d,g=1/0,k=1/0;if(q==b&&q!=a)for(var a=j(a)?a:p.values(a),c=0,i=a.length;i>c;c++)f=a[c],g>f&&(g=f);else b=l(b,f),p.each(a,function(a,f,c){d=b(a,f,c);(k>d||1/0===d&&1/0===g)&&(g=a,k=d)});return g};p.Xua=function(a){for(var b=
j(a)?a:p.values(a),f=b.length,d=Array(f),g=0;f>g;g++)a=p.random(0,g),a!==g&&(d[g]=d[a]),d[a]=b[g];return d};p.sample=function(a,b,f){return q==b||f?(j(a)||(a=p.values(a)),a[p.random(a.length-1)]):p.Xua(a).slice(0,Math.max(0,b))};p.sortBy=function(a,b,f){return b=l(b,f),p.pluck(p.map(a,function(a,f,d){return{value:a,index:f,Q8:b(a,f,d)}}).sort(function(a,b){var f=a.Q8,d=b.Q8;if(f!==d){if(f>d||f===m)return 1;if(d>f||d===m)return-1}return a.index-b.index}),"value")};p.groupBy=i(function(a,b,f){p.has(a,
f)?a[f].push(b):a[f]=[b]});p.Wwa=i(function(a,b,f){a[f]=b});p.Hwa=i(function(a,b,f){p.has(a,f)?a[f]++:a[f]=1});p.toArray=function(a){return a?p.isArray(a)?z.call(a):j(a)?p.map(a,p.identity):p.values(a):[]};p.size=function(a){return q==a?0:j(a)?a.length:p.keys(a).length};p.mxa=function(a,b,f){var b=l(b,f),d=[],g=[];return p.each(a,function(a,f,k){(b(a,f,k)?d:g).push(a)}),[d,g]};p.first=p.head=p.vxa=function(a,b,f){return q==a?m:q==b||f?a[0]:p.csa(a,a.length-b)};p.csa=function(a,b){return z.call(a,
0,Math.max(0,a.length-(q==b?1:b)))};p.last=function(a,b,f){return q==a?m:q==b||f?a[a.length-1]:p.rest(a,Math.max(0,a.length-b))};p.rest=p.uxa=p.Kwa=function(a,b,f){return z.call(a,q==b||f?1:b)};p.compact=function(a){return p.filter(a,p.identity)};p.flatten=function(a,b){return f(a,b,y)};p.without=function(a){return p.difference(a,z.call(arguments,1))};p.uniq=p.unique=function(a,b,f,d){p.isBoolean(b)||(d=f,f=b,b=y);q!=f&&(f=l(f,d));for(var d=[],g=[],k=0,c=D(a);c>k;k++){var j=a[k],i=f?f(j,k,a):j;b?
(k&&g===i||d.push(j),g=i):f?p.contains(g,i)||(g.push(i),d.push(j)):p.contains(d,j)||d.push(j)}return d};p.union=function(){return p.uniq(f(arguments,o,o))};p.intersection=function(a){for(var b=[],f=arguments.length,d=0,g=D(a);g>d;d++){var k=a[d];if(!p.contains(b,k)){for(var c=1;f>c&&p.contains(arguments[c],k);c++);c===f&&b.push(k)}}return b};p.difference=function(a){var b=f(arguments,o,o,1);return p.filter(a,function(a){return!p.contains(b,a)})};p.zip=function(){return p.qva(arguments)};p.qva=function(a){for(var b=
a&&p.max(a,D).length||0,f=Array(b),d=0;b>d;d++)f[d]=p.pluck(a,d);return f};p.object=function(a,b){for(var f={},d=0,g=D(a);g>d;d++)b?f[a[d]]=b[d]:f[a[d][0]]=a[d][1];return f};p.a9=u(1);p.Qqa=u(-1);p.sortedIndex=function(a,b,f,d){for(var f=l(f,d,1),b=f(b),d=0,g=D(a);g>d;){var k=Math.floor((d+g)/2);f(a[k])<b?d=k+1:g=k}return d};p.indexOf=v(1,p.a9,p.sortedIndex);p.lastIndexOf=v(-1,p.Qqa);p.range=function(a,b,f){q==b&&(b=a||0,a=0);for(var f=f||1,b=Math.max(Math.ceil((b-a)/f),0),d=Array(b),g=0;b>g;g++,
a+=f)d[g]=a;return d};p.bind=function(a,b){function f(){return d(a,f,b,this,g.concat(z.call(arguments)))}if(K&&a.bind===K)return K.apply(a,z.call(arguments,1));p.isFunction(a)||h(new TypeError("Bind must be called on a function"));var g=z.call(arguments,2);return f};p.lW=function(a){function b(){for(var g=0,k=f.length,c=Array(k),j=0;k>j;j++)c[j]=f[j]===p?arguments[g++]:f[j];for(;g<arguments.length;)c.push(arguments[g++]);return d(a,b,this,this,c)}var f=z.call(arguments,1);return b};p.bindAll=function(a){var b,
f,d=arguments.length;1>=d&&h(Error("bindAll must be passed function names"));for(b=1;d>b;b++)f=arguments[b],a[f]=p.bind(a[f],a);return a};p.memoize=function(a,b){function f(d){var g=f.aqa,k=""+(b?b.apply(this,arguments):d);return p.has(g,k)||(g[k]=a.apply(this,arguments)),g[k]}return f.aqa={},f};p.delay=function(a,b){var f=z.call(arguments,2);return setTimeout(function(){return a.apply(q,f)},b)};p.defer=p.lW(p.delay,p,1);p.throttle=function(a,b,f){function d(){i=f.Asa===y?0:p.now();j=q;c=a.apply(g,
k);j||(g=k=q)}var g,k,c,j=q,i=0;f||(f={});return function(){var e=p.now();i||f.Asa!==y||(i=e);var l=b-(e-i);return g=this,k=arguments,0>=l||l>b?(j&&(clearTimeout(j),j=q),i=e,c=a.apply(g,k),j||(g=k=q)):j||f.wxa===y||(j=setTimeout(d,l)),c}};p.debounce=function(a,b,f){function d(){var e=p.now()-j;b>e&&0<=e?g=setTimeout(d,b-e):(g=q,f||(i=a.apply(c,k),g||(c=k=q)))}var g,k,c,j,i;return function(){c=this;k=arguments;j=p.now();var e=f&&!g;return g||(g=setTimeout(d,b)),e&&(i=a.apply(c,k),c=k=q),i}};p.wrap=
function(a,b){return p.lW(b,a)};p.L$=function(a){return function(){return!a.apply(this,arguments)}};p.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}};p.after=function(a,b){return function(){return 1>--a?b.apply(this,arguments):m}};p.before=function(a,b){var f;return function(){return 0<--a&&(f=b.apply(this,arguments)),1>=a&&(b=q),f}};p.once=p.lW(p.before,2);var P=!{toString:q}.propertyIsEnumerable("toString"),
I="valueOf,isPrototypeOf,toString,propertyIsEnumerable,hasOwnProperty,toLocaleString".split(",");p.keys=function(a){if(!p.Mx(a))return[];if(O)return O(a);var b=[],f;for(f in a)p.has(a,f)&&b.push(f);return P&&x(a,b),b};p.WU=function(a){if(!p.Mx(a))return[];var b=[],f;for(f in a)b.push(f);return P&&x(a,b),b};p.values=function(a){for(var b=p.keys(a),f=b.length,d=Array(f),g=0;f>g;g++)d[g]=a[b[g]];return d};p.dxa=function(a,b,f){for(var b=l(b,f),d=p.keys(a),g=d.length,k={},c=0;g>c;c++)f=d[c],k[f]=b(a[f],
f,a);return k};p.lxa=function(a){for(var b=p.keys(a),f=b.length,d=Array(f),g=0;f>g;g++)d[g]=[b[g],a[b[g]]];return d};p.k$=function(a){for(var b={},f=p.keys(a),d=0,g=f.length;g>d;d++)b[a[f[d]]]=f[d];return b};p.functions=p.gxa=function(a){var b=[],f;for(f in a)p.isFunction(a[f])&&b.push(f);return b.sort()};p.extend=g(p.WU);p.Y8=p.assign=g(p.keys);p.Pqa=function(a,b,f){for(var b=l(b,f),d,f=p.keys(a),g=0,k=f.length;k>g;g++)if(d=f[g],b(a[d],d,a))return d};p.Xsa=function(a,b,d){var g,k,c={},j=a;if(q==
j)return c;p.isFunction(b)?(k=p.WU(j),g=r(b,d)):(k=f(arguments,y,y,1),g=function(a,b,f){return b in f},j=Object(j));for(var i=0,e=k.length;e>i;i++){var l=k[i],n=j[l];g(n,l,j)&&(c[l]=n)}return c};p.ixa=function(a,b,d){if(p.isFunction(b))b=p.L$(b);else var g=p.map(f(arguments,y,y,1),String),b=function(a,b){return!p.contains(g,b)};return p.Xsa(a,b,d)};p.defaults=g(p.WU,o);p.create=function(a,b){var f=n(a);return b&&p.Y8(f,b),f};p.clone=function(a){return p.Mx(a)?p.isArray(a)?a.slice():p.extend({},a):
a};p.tap=function(a,b){return b(a),a};p.qsa=function(a,b){var f=p.keys(b),d=f.length;if(q==a)return!d;for(var g=Object(a),k=0;d>k;k++){var c=f[k];if(b[c]!==g[c]||!(c in g))return y}return o};p.isEqual=function(a,b){return e(a,b)};p.isEmpty=function(a){return q==a?o:j(a)&&(p.isArray(a)||p.isString(a)||p.isArguments(a))?0===a.length:0===p.keys(a).length};p.isElement=function(a){return!(!a||1!==a.nodeType)};p.isArray=J||function(a){return"[object Array]"===F.call(a)};p.Mx=function(a){var b=typeof a;
return"function"===b||"object"===b&&!!a};p.each("Arguments,Function,String,Number,Date,RegExp,Error".split(","),function(a){p["is"+a]=function(b){return F.call(b)==="[object "+a+"]"}});p.isArguments(arguments)||(p.isArguments=function(a){return p.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(p.isFunction=function(a){return"function"==typeof a||y});p.Ywa=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};p.isNaN=function(a){return p.isNumber(a)&&a!==+a};p.isBoolean=function(a){return a===
o||a===y||"[object Boolean]"===F.call(a)};p.isNull=function(a){return q===a};p.isUndefined=function(a){return a===m};p.has=function(a,b){return q!=a&&H.call(a,b)};p.noConflict=function(){return w.MM=A,this};p.identity=function(a){return a};p.Gwa=function(a){return function(){return a}};p.noop=E();p.Y$=k;p.nxa=function(a){return q==a?E():function(b){return a[b]}};p.cW=p.exa=function(a){return a=p.Y8({},a),function(b){return p.qsa(b,a)}};p.times=function(a,b,f){for(var d=Array(Math.max(0,a)),b=r(b,
f,1),f=0;a>f;f++)d[f]=b(f);return d};p.random=function(a,b){return q==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))};p.now=Date.now||function(){return(new Date).getTime()};var J={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=p.k$(J);p.escape=c(J);p.unescape=c(U);p.result=function(a,b,f){b=q==a?m:a[b];return b===m&&(b=f),p.isFunction(b)?b.call(a):b};var V=0;p.uniqueId=function(a){var b=++V+"";return a?a+b:b};p.kva={evaluate:/<%([\s\S]+?)%>/g,gsa:/<%=([\s\S]+?)%>/g,
escape:/<%-([\s\S]+?)%>/g};var S=/(.)^/,T={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g;p.template=function(a,f,d){function g(a){return j.call(this,a,p)}!f&&d&&(f=d);var f=p.defaults({},f,p.kva),k=0,c="__p+='";a.replace(RegExp([(f.escape||S).source,(f.gsa||S).source,(f.evaluate||S).source].join("|")+"|$","g"),function(f,d,g,j,i){return c+=a.slice(k,i).replace(W,b),k=i+f.length,d?c+="'+\n((__t=("+d+"))==null?'':_.escape(__t))+\n'":g?c+="'+\n((__t=("+
g+"))==null?'':__t)+\n'":j&&(c+="';\n"+j+"\n__p+='"),f});c+="';\n";f.pba||(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.pba||"obj","_",c)}catch(i){h((i.source=c,i))}return g.source="function("+(f.pba||"obj")+"){\n"+c+"}",g};p.chain=function(a){a=p(a);return a.Bea=o,a};p.mixin=function(b){p.each(p.functions(b),function(f){var d=p[f]=b[f];p.prototype[f]=function(){var b=[this.Mt];
return G.apply(b,arguments),a(this,d.apply(p,b))}})};p.mixin(p);p.each("pop,push,reverse,shift,sort,splice,unshift".split(","),function(b){var f=C[b];p.prototype[b]=function(){var d=this.Mt;return f.apply(d,arguments),"shift"!==b&&"splice"!==b||0!==d.length||delete d[0],a(this,d)}});p.each(["concat","join","slice"],function(b){var f=C[b];p.prototype[b]=function(){return a(this,f.apply(this.Mt,arguments))}});p.prototype.value=Q("Mt");p.prototype.valueOf=p.prototype.toJSON=p.prototype.value;p.prototype.toString=
function(){return""+this.Mt};"function"==typeof define&&define.uwa&&define("kp",[],function(){return p})}).call(this)}).call(window.TDV||(window.TDV={}));define("underscore-min",E());define("cV",["underscore-min"],function(){return window.TDV._.noConflict()});
define("kd",[],function(){return{L:function(a){return a+"_change"},Gc:"default",ob:"mouseDown",qc:"mouseMove",Lb:"mouseUp",cp:"mouseWheel",U:"click",yE:"doubleClick",Ic:"rollOver",jc:"rollOut",fk:"mouseEnter",Ef:"mouseLeave",Sh:"pointerOver",Sva:"pointerOut",MY:"pointerDown",NY:"pointerUp",Rh:"pointerClick",sE:"gestureStart",Sba:"gestureChange",rE:"gestureEnd",Tba:"gestureRotate",Hu:"gestureScale",ic:"progress",tr:"close",OPEN:"open",Uh:"select",pb:"resize",xL:"changing",$:"change",Um:"stateChange",
T:"loaded",xd:"loadingError",aj:"start",Dd:"stop",Lr:"play",CE:"pause",Ub:"ready",Xj:"begin",Ia:"end",Eva:"cancel",Wf:"press",Wg:"release",Mr:"repeatEnd",Bl:"scroll",zE:"movementChange",Dva:"beforeShow",yX:"beforeHide",INIT:"init",Le:"show",Df:"hide",Pu:"showEnd",Jr:"hideEnd",$ba:"loadingScript",rca:"processingScript",Gu:"enableCookies",Cba:"applicationSet",nE:"userInteraction",aZ:"toolTipShow",GM:"toolTipHide"}});
define("bS",[],function(){return function(a,b){this.name=a;this.source=m;this.data=b}});
define("jw",[],function(){function a(){this.ye=[];this.jm=[]}a.prototype.hG=function(a){for(var c=0;c<this.ye.length;c++)if(this.ye[c]==a)return c;return-1};a.prototype.set=function(a,c){var e=this.hG(a);0<=e?this.jm[e]=c:(this.ye.push(a),this.jm.push(c))};a.prototype.P9=function(a){return 0<=this.hG(a)};a.prototype.get=function(a){a=this.hG(a);if(0<=a)return this.jm[a]};a.prototype.keys=function(){return this.ye.slice()};a.prototype.values=function(){return this.jm.slice()};a.prototype.length=function(){return this.ye.length};
a.prototype.clear=function(a){a=this.hG(a);0<=a&&(this.ye.splice(a,1),this.jm.splice(a,1))};a.prototype.each=function(a,c){for(var e=0;e<this.ye.length;e++)a.call(c,this.ye[e],this.jm[e])};return a});
define("fO",["require","cV","kd"],function(a){function b(a){var b=d[a];if(b)return b;if("string"!=typeof a)return d[a]=function(){return a};var k=(b=f.exec(a))&&parseFloat(b[1]);switch(b&&b[4]&&b[4].toLowerCase()){case "vw":return d[a]=function(a){return a*k};case "vh":return d[a]=function(a,b){return b*k};case "vmin":return d[a]=function(a,b,f){return f*k};case "vmax":return d[a]=function(a,b,f,d){return d*k};default:return d[a]=function(){return a}}}function c(a){this.sa=a;this.lx=this.lx.bind(this);
this.sa.bind(e.pb,this.hb,this,o);this.hT={};this.qn=[];this.hb()}a("cV");var e=a("kd");c.prototype.hb=function(){this.xpa();for(var a in this.hT)this.lx(this.hT[a]);this.qn.forEach(this.lx)};c.prototype.xpa=function(){var a=this.sa.Za();this.IJ=0.01*this.sa.ua();this.CJ=0.01*a;this.s8=Math.min(this.IJ,this.CJ);this.r8=Math.max(this.IJ,this.CJ)};c.prototype.lx=function(a){a(this.IJ,this.CJ,this.s8,this.r8)};c.prototype.Qpa=function(a){this.qn.push(a)};c.prototype.ota=function(a){a=this.qn.indexOf(a);
0<=a&&this.qn.splice(a,1)};c.prototype.Wpa=function(a,f,d,c){function g(b,g,c,n){f.call(a,d,e(b,g,c,n))}var e=b(c);this.hT[a.Op+"."+d]=g;g(this.IJ,this.CJ,this.s8,this.r8)};c.Lc={};c.get=function(a){var b=a.Op,f=c.Lc[b];f||(f=new c(a),c.Lc[b]=f);return f};var d={},f=/^\s*((\+|\-)?(\d*\.)?\d+)\s*(vmin|vmax|vw|vh|px|%)?\s*$/i;return c});
define("iB",[],function(){function a(a,b){var d=a.split(b),f=d[0];(d=d.slice(1).join(b))&&(d=b+d);return[f,d]}var b=window.URL||E();b.ii=document.createElement("a");b.o$=function(a){if(b.SV(a)){var e=window.location.protocol+"//"+window.location.hostname;return a.substring(0,e.length)!=e}return y};b.nr=function(a,e){if(b.tsa(a))a=window.location.protocol+a;else if(!b.SV(a)&&!b.lD(a)){if(e)if(0==a.indexOf("/")){var d=e.indexOf("//"),f="";0<=d&&(f=e.substr(0,d+2),e=e.substr(d+2));d=e.indexOf("/");0<
d&&(e=e.substr(0,d));a=f+e+a}else a=e+a;b.ii.href=a;a=b.ii.href}return a};b.lsa=function(){switch(window.location.protocol){case "http:":case "https:":return o;default:return y}};b.tsa=function(a){return 0===a.indexOf("//")};b.SV=function(a){if(!a)return y;var b=a.indexOf("://");return 3<=b&&5>=b?o:0==a.indexOf("filesystem:")};b.lD=function(a){return a&&0==a.indexOf("data:")};b.getDirectory=function(a){a=b.nr(a);a=a.split("?")[0];a=a.split("/");1<a.length&&a.splice(a.length-1,1);return a.join("/")+
"/"};b.sg=function(a){b.ow||(b.ow=b.P1());return b.ow[a]!==m};b.Fm=function(a){b.ow||(b.ow=b.P1());return b.ow[a]};b.Sq=function(b,e){if(!e)return b;var d=a(b,"#"),f=d[1],d=a(d[0],"?"),i=d[0],d=d[1];return 0<=d.indexOf(e)?b:i+(d+(d?"&":"?")+e)+f};b.parse=function(a){b.ii.href=a;a={};a.protocol=b.ii.protocol;a.hostname=b.ii.hostname;a.port=b.ii.port;a.pathname=b.ii.pathname;a.search=b.ii.search;a.hash=b.ii.hash;a.host=b.ii.host;var e=a.pathname?a.pathname.lastIndexOf("."):-1;a.Lqa=0<=e?a.pathname.substr(e).toLowerCase():
"";return a};b.Dwa=function(a){return a.protocol+"//"+a.hostname+a.pathname+a.search+a.hash};b.getExtension=function(a){var a=b.parse(a).pathname,e=a.lastIndexOf(".");return 0<=e?a.substr(e,a.length):""};b.um=function(a,e){switch((b.Fm(a)||"").toLowerCase()){case "false":case "0":case "no":case "n":return y;case "true":case "1":case "yes":case "y":return o;default:return e}};b.m9=function(a){a=parseInt(b.Fm(a));return isNaN(a)?10:a};b.kK=function(a){a=parseFloat(b.Fm(a));return isNaN(a)?m:a};b.ow=
q;b.P1=function(){for(var a={},b=window.location.search.substring(1).split("&"),d=0;d<b.length;d++){var f=b[d].split("=");a[decodeURIComponent(f[0])]=1<f.length?decodeURIComponent(f[1]):q}return a};return b});
define("eD",["require","cV","jquery.mod"],function(a){var b=a("cV"),c=a("jquery.mod"),e={bsa:function(a,b){function d(){}d.prototype=b.prototype;a.prototype=new d;a.prototype.constructor=a},Ypa:function(a,b){b.forEach(function(b){Object.getOwnPropertyNames(b.prototype).forEach(function(d){a.prototype[d]=b.prototype[d]})})},extend:function(){var a=arguments[0],b=arguments[arguments.length-1],d=Array.prototype.slice.call(arguments,1,arguments.length-1);e.bsa(b,a);e.Ypa(b,d);return b},deferred:function(a,
d){return function(){var c=arguments;b.defer(function(){a.apply(d,c)})}},Jo:function(a,d){var c=y;return function(){c||(c=o,b.defer(function(){c=y;a.apply(d||window)}))}},memoize:function(a,b,d,k){a.oA||(a.oA=[],a.dR=[]);for(var c=a.oA,g=0,e=c.length;g<e;g++){var r=c[g];if(k.length==r.length){for(var p=o,s=0,t=k.length;s<t&&p;s++)p=r[s]==k[s];if(p)return a.dR[g]}}d=d.apply(window,k);a.oA.length==b&&(a.oA.shift(),a.dR.shift());a.oA.push(k);a.dR.push(d);return d},Lv:[],Awa:function(a,b){var d=e.Ifa();
window[d]=function(){a.apply(b,arguments)};e.Lv.push({handler:a,context:b,callback:d});return d},Qwa:function(a,b){for(var d=0;d<e.Lv.length;d++){var k=e.Lv[d];if(k.handler==a&&k.context==b)return k.callback}},yxa:function(a,b){for(var d=0;d<e.Lv.length;d++){var k=e.Lv[d];if(k.handler==a&&k.context==b)return k=k.callback,e.Lv.splice(d,1),delete window[k],k}},Ifa:function(){var a;do a="__callback_"+e.$$(8);while(window[a]);return a},$$:function(a){for(var b=[],d=0;d<a;d++)b.push(Math.floor(16*Math.random()).toString(16));
return b.join("")},Iqa:function(a){e.Zv=c("<div></div>");e.Zv.css({overflow:"auto",position:"absolute",bottom:0,left:0,right:0,padding:"20px",fontFamily:"Verdana",backgroundColor:"#FFFFFF",color:"#000000","z-index":100});a?e.Zv.css({top:0}):e.Zv.css({width:"40%",right:"0",left:"auto",height:"50%",filter:"alpha(opacity=60)",opacity:0.6});c("body").append(e.Zv);console.log=function(a){e.log(a)}}},d;e.log=function(a){if(a!=d){d=a;try{e.Zv?c("<div></div>").text(a).prependTo(e.Zv):console.log(a)}catch(b){}}};
e.oxa=function(a){this.oP.push(a)};e.oP=[];e.debug=function(a,b){try{b.apply(this,arguments)}catch(d){e.DK(a,d),h(d)}};e.DK=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;d<this.oP.length;d++)this.oP[d](b)};e.clone=function(a,b){var b=b||0,d=new a.constructor,k;for(k in a)if(a.hasOwnProperty(k)){var c=a[k];0<b&&c&&"object"===typeof c&&(c=e.clone(c,b-1));d[k]=c}return d};e.toArray=function(a){return a===m||a===q?
[]:!Array.isArray(a)?[a]:a};"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(a,b){a==q&&h(new TypeError("Cannot convert undefined or null to object"));for(var d=Object(a),k=1;k<arguments.length;k++){var c=arguments[k];if(c!=q)for(var g in c)Object.prototype.hasOwnProperty.call(c,g)&&(d[g]=c[g])}return d},writable:o,configurable:o});return e});
define("dx","require,jquery.mod,cV,jw,fO,iB,eD".split(","),function(a){function b(a,b){this.kv=a;this.aO=b;this.$A=q;this.LR={};this.HR=this.Zr=this.bv=m;this.J4=[];this.tC=this.Gt=m;this.I4=[];this.FB=this.xt=m;this.H4={};this.qA=m;this.F4=[];this.Ep=m;this.G4=[];this.Rp=m;this.B2=this.D2=y}var c=a("jquery.mod"),e=a("cV"),d=a("jw"),f=a("fO"),i=a("iB"),j=a("eD");b.prototype.B=function(a){this.$A=a;this.Z_();this.a0();this.VN();return this};b.prototype.yra=function(){if(this.$A)return b.vm(this.$A)};
b.prototype.ux=Q("kv");b.prototype.$C=function(){return this.Mp()?this.An().$C().concat(this.kv):[this.kv]};b.prototype.R=function(a){this.LR=a;this.Z_();return this};b.prototype.hasAttributes=function(){return this.e9().length>0};b.prototype.hasAttribute=function(a){return this.qV(a)?o:y};b.prototype.e9=function(){this.bv==m&&this.x0();return this.bv};b.prototype.wua=function(){this.HR=["definitions"];return this};b.prototype.v9=function(){if(this.HR)return this.HR;if(this.Mp())this.An().v9();else return[]};
b.prototype.qV=function(a){this.Zr==m&&this.x0();return this.Zr[a]};b.prototype.Si=function(a){this.J4=a;this.Rea();return this};b.prototype.Ura=function(){return this.D9().length>0};b.prototype.D9=function(){this.Gt==m&&this.C0();return this.Gt};b.prototype.Ira=function(){this.tC==m&&this.C0();return this.tC};b.prototype.To=function(a){this.I4=a;this.Pea();return this};b.prototype.Tra=function(){return this.B9().length>0};b.prototype.B9=function(){this.xt==m&&this.B0();return this.xt};b.prototype.Hra=
function(){this.FB==m&&this.B0();return this.FB};b.prototype.fc=function(a){this.F4=a;this.VN();return this};b.prototype.Pra=function(){return this.tV().length>0};b.prototype.N9=function(a){this.Ep==m&&this.FF();return e(this.Ep).contains(a)};b.prototype.tV=function(){this.Ep==m&&this.FF();return this.Ep};b.prototype.Rg=function(a){this.G4=a;this.VN();return this};b.prototype.Sra=function(){return this.yV().length>0};b.prototype.O9=function(a){this.Rp==m&&this.FF();return e(this.Rp).contains(a)};
b.prototype.yV=function(){this.Rp==m&&this.FF();return this.Rp};b.prototype.Sg=function(a){this.H4=a;this.a0();return this};b.prototype.t9=function(){this.qA==m&&this.zfa();return this.qA};b.prototype.fua=function(){this.D2=o;return this};b.prototype.n9=function(){return this.D2||this.Mp()&&this.An().n9()};b.prototype.Uq=function(a,b,f,d){this.jla(b,f);var c=this.aO,e;e=d&&d.length>0?new (j.extend(c,function(){c.apply(this,d)})):new c;e.set("application",a);e.set("baseDirectoy",b);e.set("queryStringParameters",
f);e.set("class",this.ux());return e};b.prototype.jla=function(a,b){if(!this.B2){this.B2=o;this.Lfa(a,b);this.rga()}};b.prototype.Lfa=function(a,b){if(this.Ura()||this.Tra()){var d=this.aO.prototype,c=this.Ira(),j=this.Hra(),e=d.set;d.set=function(d,g){if(c[d]){!i.lD(g)&&!i.SV(g)&&(g=i.Sq(i.nr(g,a),b));e.call(this,d,g)}else j[d]?f.get(this.get("application")||this.Pa()).Wpa(this,e,d,g):e.call(this,d,g)}}};b.prototype.rga=function(){var a=this.aO.prototype,b=this;if(this.hasAttributes()){a.set=a.set;
a.get=a.get}if(this.Pra()||this.Sra()){a.bind=a.bind;a.getBindings=a.YC;a.hasBindings=a.L9;a.trigger=a.trigger;a.unbind=a.unbind}a.getClassName=function(){return b.ux()};a.getClassPath=function(){return b.$C()};var f=this.t9(),d;for(d in f)a[d]=f[d]};b.prototype.Z_=function(){this.Zr=this.bv=m};b.prototype.x0=function(){this.bv=[];this.Zr={};for(var a in this.LR){this.bv.push(a);this.Zr[a]=b.EP(this.LR[a])}if(this.Mp())for(var f=this.An(),d=f.e9(),c=0;c<d.length;c++){a=d[c];if(!this.Zr[a]){this.bv.push(a);
this.Zr[a]=f.qV(a)}}};b.prototype.Rea=function(){this.tC=m};b.prototype.C0=function(){this.Gt=this.J4.slice();if(this.Mp())this.Gt=e(this.Gt).union(this.An().D9());this.tC={};for(var a=0;a<this.Gt.length;a++)this.tC[this.Gt[a]]=o};b.prototype.Pea=function(){this.FB=m};b.prototype.B0=function(){this.xt=this.I4.slice();if(this.Mp())this.xt=e(this.xt).union(this.An().B9());this.FB={};for(var a=0;a<this.xt.length;a++)this.FB[this.xt[a]]=o};b.prototype.VN=function(){this.Rp=this.Ep=m};b.prototype.FF=function(){this.Ep=
this.F4.slice();this.Rp=this.G4.slice();if(this.Mp()){this.Ep=e(this.Ep).union(this.An().tV());this.Rp=e(this.Rp).union(this.An().yV())}};b.prototype.a0=function(){this.qA=m};b.prototype.zfa=function(){this.qA=e(this.H4).clone();this.Mp()&&e(this.qA).defaults(this.An().t9())};b.prototype.Mp=function(){return this.$A?o:y};b.prototype.An=function(){return b.vm(this.$A)};b.X_=new d;b.W_=new d;b.qwa={};b.A=function(a,f){var d=new b(a,f);b.X_.set(a,d);b.W_.set(f,d);return d};b.vm=function(a){return b.X_.get(a)};
b.Xqa=function(a){return b.W_.get(a)};b.sb=function(a,f){var d=b.vm(a);if(e(f).isNull())return o;if(f&&f.constructor)for(var c=b.Xqa(f.constructor);c;){if(c==d)return o;c=c.yra()}return y};b.EP=function(a){switch(a){case "string":case "code":return b.Xna;case "number":return b.xja;case "bool":return b.Zda;case "color":return b.Xea;case "percent":return b.Vka;case "size":return b.wna;case "identifier":return b.via;case "array":return b.j_;case "dict":return b.Wka;case "*":return b.jga;default:if(b.Pia(a))switch(b.$ga(a)){case "array":var f=
b.EP(b.p1(a));return function(a,d){for(var a=b.j_(a,d),g=0;g<a.length;g++)a[g]=f(a[g],d);return a};case "enum":var d=b.q1(a);return b.aha(d);case "or":var d=b.q1(a),c=e(d).map(function(a){return b.EP(a)});return function(a,b){for(var f=0;f<c.length;f++)try{return c[f](a,b)}catch(d){}h("Invalid value")};default:h("Invalid type validator definition: "+a)}else return b.rk(function(f){return b.sb(a,f)})}};b.Pia=function(a){return a.indexOf("[")>=0&&a.lastIndexOf("]")==a.length-1};b.$ga=function(a){return a.substring(0,
a.indexOf("["))};b.p1=function(a){return a.substring(a.indexOf("[")+1,a.lastIndexOf("]"))};b.q1=function(a){for(var a=b.p1(a),f=[],d="",c=0,j=0;j<a.length;j++){var p=a.charAt(j),d=d+p;switch(p){case "[":c++;break;case "]":c--;break;case ",":if(c==0){f.push(d.substr(0,d.length-1));d=""}}}d!=""&&f.push(d);return e(f).map(function(a){return b.Hoa(a)})};b.Hoa=function(a){return a.replace(/^\s+|\s+$/g,"")};b.rk=function(a){return function(f,d){if(!a(f)){typeof f!="string"&&h("Invalid value");f=b.pga(f,
d);a(f)||h("Invalid value")}return f}};b.pga=function(a,b){return function(){return eval(a)}.call(b)};b.jga=function(a){return a};b.xja=b.rk(function(a){return Object.prototype.toString.call(a)=="[object Number]"});b.Xna=b.rk(function(a){return typeof a=="string"||a===q});b.Zda=b.rk(function(a){return a===o||a===y});b.j_=b.rk(function(a){return Object.prototype.toString.call(a)=="[object Array]"});b.aha=function(a){return b.rk(function(b){return e(a).contains(b)})};b.YF=function(a,b){return e(a).isString()&&
b.test(a)};b.via=b.rk(function(a){return b.YF(a,/^[a-z][a-z0-9_]*$/i)});b.Vka=b.rk(function(a){return b.YF(a,/^\s*([+-]?\d+\.?\d*)%\s*$/i)});b.wna=b.rk(function(a){return b.YF(a,/^\s*([+-]?\d+\.?\d*)\s*((vw)|(vh)|(vmin)|(vmax)|(px))\s*$/i)});b.Xea=b.rk(function(a){return b.YF(a,/^#[0-9a-f]{6}$/i)});b.Wka=b.rk(function(a){try{return c.isPlainObject(a)}catch(b){return y}});return b});
define("hV",[],function(){function a(){var a=f.length,b=f.splice(0,a);d+=a;for(var c=0;c<a;c++){var k=b[c];k&&k()}}var b=window.MutationObserver,c=window.Promise,e=0,d=0,f=[],i;setInterval(function(){0<f.length&&100<(new Date).getTime()-j&&a()},100);var j,k;c&&(k=new c(function(a){a()}));b&&(i=document.createTextNode(""),(new b(a)).observe(i,{characterData:o}));return{qu:function(d,g){if(g>0||!b&&!c)return~setTimeout(d,g||1);if(f.length==0){c?k.then(a):i.textContent=e;j=(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]=q}}}}});
define("em",["cV","hV","bS","eD"],function(a,b,c,e){function d(){this.Bc={}}d.prototype.bind=function(a,b,d,c,e){a===m&&h("Event name undefined");b===m&&h("Event handler undefined");a in this.Bc||(this.Bc[a]=[]);this.Bc[a].push({handler:b,handlerDef:e||b,context:d||this,immediate:c?o:y});return this};d.prototype.unbind=function(b,d,c){if(b in this.Bc){var c=c||this,k=a(this.Bc[b]).select(function(a){return a.handler!=d||a.context!=c});0<k.length?this.Bc[b]=k:delete this.Bc[b]}return this};d.prototype.pva=
function(a){a in this.Bc&&delete this.Bc[a]};d.prototype.nba=function(){this.Bc={}};d.prototype.trigger=function(a,b){var d="string"==typeof a,k=d?a:a.name;k in this.Bc&&(d&&(a=new c(a,b)),a.source=this,this.az(a,o),k in this.Bc&&this.Mfa(a));return this};d.prototype.Mfa=function(a){d.IF.push({caller:this,event:a});d.QO||(d.QO=o,b.qu(d.G0))};d.IF=[];d.QO=y;d.G0=function(){for(var a=(new Date).getTime()+1E3;d.IF.length;){var c=d.IF.shift();d.prototype.az.call(c.caller,c.event,y);if((new Date).getTime()>
a)break}0<d.IF.length?b.qu(d.G0,1):d.QO=y};d.prototype.L9=function(a){return a in this.Bc};d.prototype.YC=function(a,b){for(var d=[],c=this.Bc[a]||[],e=0;e<c.length;e++){var g=c[e];(b===m||g.immediate==b)&&d.push(g.handlerDef)}return d};d.prototype.az=function(a,b){if(a.name in this.Bc)for(var d=this.Bc[a.name],c=0;c<d.length;c++){var n=d[c];if(n.immediate==b)try{n.handler.call(n.context,a)}catch(g){e.DK("Exception handling event "+a.name,g)}}};return d});
define("im",["kd","eD","bS","em"],function(a,b,c,e){b=b.extend(e,function(){e.call(this);this.Sy={}});b.prototype.set=function(a,b){this.Sy[a]!=b&&(this.Sy[a]=b,this.B7(a))};b.prototype.B7=function(b){this.trigger(new c(a.L(b)))};b.prototype.get=function(a,b){var c=this.Sy[a];return c!==m?c:b};return b});
define("eH",[],function(){function a(a,c,e){this.set("undefined"!=typeof a?a:0,"undefined"!=typeof c?c:0,"undefined"!=typeof e?e:0)}a.prototype.set=function(a,c,e){this.x=a;this.y=c;this.z=e};a.prototype.clone=function(){return new a(this.x,this.y,this.z)};a.prototype.apply=function(a){a.ex(this)};a.prototype.project=function(a){a.project(this)};return a});
define("a",["eD","eH"],function(a,b){var c=a.extend(b,function(a,d,f){b.call(this,a,d,f)});c.prototype.clone=function(){return new c(this.x,this.y,this.z)};c.prototype.Eb=function(){return 0==this.x&&0==this.z?0:-Math.atan2(this.x,this.z)};c.prototype.Ib=function(){return 0==this.y&&0==this.z?0:Math.atan2(this.y,Math.sqrt(this.z*this.z+this.x*this.x))};c.prototype.BV=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};c.prototype.normalize=function(){var a=this.BV();1!=a&&(this.x/=
a,this.y/=a,this.z/=a)};c.prototype.St=function(a){return this.x*a.x+this.y*a.y+this.z*a.z};c.prototype.zqa=function(a){var b=this.z*a.x-this.x*a.z,f=this.x*a.y-this.y*a.x;this.x=this.y*a.z-this.z*a.y;this.y=b;this.z=f};c.Wq=function(a,b){return new c(b.x-a.x,b.y-a.y,b.z-a.z)};c.Vqa=function(a){return new c(Math.cos(0)*Math.sin(a),Math.sin(0),Math.cos(0)*Math.cos(a))};return c});
define("gv","require,eD,im,kd,dx,a".split(","),function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("dx"),f=a("a"),a=b.extend(c,function(){c.call(this);this.AU=this.tn=m;this.set("enabled",o);this.set("enabledInSurfaceSelection",o)});d.A("AdjacentPanorama",a).B("Object").R({enabled:"bool",enabledInSurfaceSelection:"bool",yaw:"number",distance:"number",panorama:"Panorama",backwardYaw:"number"}).Rg([e.Uh]);a.prototype.i9=function(){if(this.tn===m){for(this.tn=this.C1()-this.get("yaw");this.tn>180;)this.tn=
this.tn-360;for(;this.tn<-180;)this.tn=this.tn+360}return this.tn};a.prototype.jra=function(){if(this.AU===m)this.AU=f.Vqa(this.C1()*Math.PI/180);return this.AU};a.prototype.cqa=function(){return this.get("yaw")!==m&&this.get("backwardYaw")!==m};a.prototype.C1=function(){return this.get("backwardYaw")-180};return a});define("eQ",[],function(){return{K:"stopped",N:"playing",Ac:"paused"}});
define("dy",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("ImageResource",b).B("Object").R({levels:"array[ImageResourceLevel]"});return b});
define("dd","require,eD,kd,eQ,dy,dx".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("dy"),a=a("dx"),b=b.extend(d,function(){d.call(this);this.set("state",e.K);this.set("autoplay",o);this.set("repeat",0);this.set("visibleOnStop",o);this.set("finalFrame","last")});b.prototype.play=function(){this.set("state",e.N)};b.prototype.pause=function(){this.set("state",e.Ac)};b.prototype.stop=function(){this.set("state",e.K)};a.A("AnimatedImageResource",b).B("ImageResource").R({autoplay:"bool",
finalFrame:"enum[first, last]",frameCount:"number",frameDuration:"number",rowCount:"number",colCount:"number",repeat:"number",state:"enum[stopped, playing, paused]",visibleOnStop:"bool"}).fc([c.Ia,c.Mr,c.aj]).Sg({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.N&&this.trigger(c.aj)}d.prototype.set.call(this,a,b)};b.prototype.yx=function(a,b,c){b||(b=1);c||(c=1);return d.prototype.yx.call(this,
a,b*this.get("colCount",1),c*this.get("rowCount",1))};return b});
define("fP",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(a){b.call(this);this.Cw=a===m?o:a;this.Xv=this.Uk=this.Rk=this.P=m;this.set("enabled",o);this.set("selected",y)});c.A("HotspotMapOverlay",a).B("MapOverlay").R({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.P===m){var a=this.get("image");this.P=a?a.WJ(this.Cw):q}return this.P};a.prototype.y9=function(){if(this.Rk===m){var a=this.get("rollOverImage");this.Rk=a?a.WJ(this.Cw):q}return this.Rk};a.prototype.A9=function(){if(this.Uk===m){var a=this.get("selectedImage");this.Uk=a?a.WJ(this.Cw):q}return this.Uk};a.prototype.tra=function(){if(this.Xv===m){this.Xv=[];var a=this.getItem();a&&this.Xv.push(a);(a=this.y9())&&this.Xv.push(a);
(a=this.A9())&&this.Xv.push(a)}return this.Xv};return a});define("dq",["eD","dx","fP"],function(a,b,c){a=a.extend(c,function(){c.call(this,o)});b.A("AreaHotspotMapOverlay",a).B("HotspotMapOverlay");return a});define("jN",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("AudioResource",a).B("Object").R({mp3Url:"string",oggUrl:"string"}).Si(["mp3Url","oggUrl"]);return a});define("cd",[],function(){return{Kr:"inAdvance",FX:"delayed"}});
define("S",[],function(){return{tE:"grab",uE:"grabbing",dca:"move",tY:"move-n",uY:"move-ne",kY:"move-e",xY:"move-se",wY:"move-s",yY:"move-sw",zY:"move-w",vY:"move-nw",eca:"move-ew",gca:"move-ns",fca:"move-nesw",hca:"move-nwse",mY:"move-fast-n",nY:"move-fast-ne",lY:"move-fast-e",qY:"move-fast-se",pY:"move-fast-s",rY:"move-fast-sw",sY:"move-fast-w",oY:"move-fast-nw",Qd:"hand",Gc:"default",Iu:"inherit"}});
define("fb",["require","kd"],function(a){function b(){this.Cg=[]}var c=a("kd");b.prototype.register=function(a){this.cda(a);this.Cg.push(a);a.get("pressed")&&this.d6(a)};b.prototype.$D=function(a){this.zla(a)};b.prototype.cda=function(a){a.bind(c.Wf,this.t3,this,o)};b.prototype.zla=function(a){a.unbind(c.Wf,this.t3,this)};b.prototype.t3=function(a){this.d6(a.source)};b.prototype.d6=function(a){this.Cg.forEach(function(b){b.set("pressed",b==a)})};b.register=function(a,b){this.$D(a);var f=this.pf(b);
a.aN=f;f.register(a)};b.$D=function(a){a.aN&&(a.aN.$D(a),delete a.aN)};b.pf=function(a){return this.q2[a]||(this.q2[a]=new b)};b.q2={};return b});define("cU",[],function(){return{Hc:"push",Xg:"toggle"}});define("fs",[],function(){return{Pr:"visible",aY:"hidden",Bl:"scroll"}});define("eK",[],function(){return{Gc:m,t:"over",va:"pressed",Va:"pressedOver",F:"selected"}});define("dN",[],function(){return{Ic:"rollOver",ALWAYS:"always"}});
define("u",["require","eD","iB"],function(a){function b(){}var c=a("eD"),e=a("iB");b.Ph=TDV.xa.BE;b.wX=TDV.xa.qM;b.KM=TDV.xa.DY;b.hwa=TDV.xa.uM;b.dY=TDV.xa.rM;b.Nva=TDV.xa.CY;b.Uva=TDV.xa.tM;b.sM=TDV.xa.sM;b.ny=TDV.xa.ny;b.tL=TDV.xa.tL;b.sL=TDV.xa.sL;b.rL=TDV.xa.rL;b.uL=TDV.xa.uL;b.Ug=TDV.xa.Ug;b.dE=TDV.xa.dE;b.Wi=TDV.xa.Wi;b.Vi=TDV.xa.Vi;b.pr=TDV.xa.pr;b.qr=TDV.xa.qr;b.iy=TDV.xa.iy;b.jy=TDV.xa.jy;b.qL=TDV.xa.qL;b.iE=TDV.xa.iE;b.Zo=TDV.xa.Zo;b.my=TDV.xa.my;b.ky=TDV.xa.ky;b.eE=TDV.xa.eE;b.Fu=TDV.xa.Fu;
b.ly=TDV.xa.ly;b.rr=TDV.xa.rr;b.zX=TDV.xa.zX;b.gE=TDV.xa.gE;b.fE=TDV.xa.fE;b.hE=TDV.xa.hE;b.vL=TDV.xa.vL;b.zL=TDV.xa.zL;b.py=TDV.xa.py;b.AL=TDV.xa.AL;b.BL=TDV.xa.BL;b.Hp=function(a){a="force_"+a;if(e.sg("debug")&&e.sg(a))return e.Fm(a)};b.Iga=b.Hp("os");b.sd=function(){return b.Iga||TDV.xa.sd};b.Dga=b.Hp("browser");b.browser=function(){return b.Dga||TDV.xa.browser};b.Ega=b.Hp("browser_type");b.ix=function(){return b.Ega||TDV.xa.ix};b.e1=b.Hp("browser_subtype");b.fd=function(){return b.e1?b.e1:TDV.xa.fd};
b.Fga=b.Hp("browser_version");b.F8=function(){return b.Fga||TDV.xa.F8};b.Hga=b.Hp("device");b.Rt=function(){return b.Hga||TDV.xa.Rt};b.Qa=function(){return TDV.xa.hW};b.uga=function(){for(var a=navigator.userAgent.toLowerCase(),b=["SM-G960","SM-G965"],d=0;d<b.length;d++)if(0<=a.indexOf(b[d].toLowerCase()))return o;return y}();b.Nga=function(){for(var a=navigator.userAgent.toLowerCase(),b="SM-G920,SM-G925,SM-G928,SM-N920,SM-G930,SM-G935,SC-02H,SM-G950,SM-G955,SM-N950,SM-G960,SM-G965,SM-N960,SM-G970,SM-G973,SM-G975,SM-G977,SM-N970,SM-N975".split(","),
d=0;d<b.length;d++)if(0<=a.indexOf(b[d].toLowerCase()))return o;return y}();b.f1=b.Hp("gearvrcompatible");b.XC=function(){return b.f1!==m?"true"==b.f1:b.Nga};b.Eea=b.browser()!=b.Vi||0>navigator.userAgent.indexOf("; wv")?y:o;b.Gga=!!b.Hp("chromewebview");b.O8=function(){return b.Gga||b.Eea};b.gf=function(){return b.fd()==b.Zo||b.fd()==b.my||b.fd()==b.gE};b.AK=function(){return b.fd()==b.Zo&&0<=navigator.userAgent.indexOf("Quest 2")};b.usa=function(){return b.fd()==b.Zo&&0<=navigator.userAgent.indexOf("Quest")&&
0>navigator.userAgent.indexOf("Quest 2")};b.q$=function(){return b.gf()&&b.XC()};b.iB=m;b.eta=function(){b.iB===m&&(b.iB=parseInt(e.Fm("sts")),isNaN(b.iB)&&(b.iB=b.gf()&&!b.uga?512:b.Qa()&&b.sd()==b.Ph?512:b.Qa()?256:1024));return b.iB};b.sia=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||y;b.uK=function(){return b.sia};b.b2=function(){var a={I9:"unknown",B$: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.I9=b.getParameter(d.UNMASKED_RENDERER_WEBGL));a.Gsa=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.B$=b.getParameter(d.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}return a}();b.H9=function(){return b.b2};b.xda=function(){var a=b.b2.I9.match(/Apple\s+(.+)\s+GPU/);
return a?a[1].toUpperCase():"unknown"}();b.vwa=function(){return b.xda};b.Xia=b.Rt()==b.py?o:y;b.br=function(){return b.Xia};var d;b.browser()==b.Wi&&(d=parseFloat(/Version\/([0-9]+\.[0-9]+)/i.exec(navigator.userAgent)[1]));b.Yla=d;b.oaa=function(){return b.Yla};b.G8=function(){return b.browser()==b.Wi&&14<=b.oaa()};b.cja="ontouchstart"in window||"undefined"!==typeof window.PointerEvent&&"undefined"!==typeof navigator.maxTouchPoints&&0<navigator.maxTouchPoints?o:y;b.oX=function(){return b.cja};b.pj=
"ontouchstart"in window?b.sd()==b.KM?y:o:y;b.gL=function(){return b.pj};b.summary=function(){return["browser: "+b.browser(),"browserType: "+b.ix(),"browserSubtype: "+b.fd(),"device: "+b.Rt(),"isMobile: "+b.Qa(),"gearVRCompatibleDevice: "+b.XC(),"chromeWebView: "+b.O8(),"touchDevice"+b.oX(),"touchEnabled"+b.gL()].join(", ")};b.log=function(){c.log("browser: "+b.browser());c.log("browserType: "+b.ix());c.log("browserSubtype: "+b.fd());c.log("device: "+b.Rt());c.log("isMobile: "+b.Qa());c.log("gearVRCompatibleDevice: "+
b.XC());c.log("chromeWebView: "+b.O8());c.log("touchDevice: "+b.oX());c.log("touchEnabled: "+b.gL())};return b});
define("ip",["require","u"],function(a){function b(){for(;n.length;)n.shift()();document.body.removeEventListener("click",b,o);document.body.removeEventListener("touchstart",d,o);document.body.removeEventListener("touchmove",e,o);document.body.removeEventListener("touchend",c,o);j=y}function c(){k&&b()}function e(){k=y}function d(){k=o;i.sd()==i.Ph&&b()}function f(){document.body.addEventListener("click",b,o);document.body.addEventListener("touchstart",d,o);document.body.addEventListener("touchmove",
e,o);document.body.addEventListener("touchend",c,o)}var i=a("u"),j=y,k=y,n=[];return{kL:function(){b()},tX:function(a){n.push(a);j||(j=o,document.body?f():document.addEventListener("DOMContentLoaded",f))},txa:function(a){a=n.indexOf(a);0<=a&&n.splice(a,1)}}});define("fB",[],function(){return{cca:7,cE:6,wE:5,$i:4,UY:3,vM:2,JY:1,Ova:0}});define("Y",[],function(){return{jM:"horizontal",HM:"vertical"}});
define("kr",[],function(){return{jZ:"auto",iZ:"auto",TY:"1",FY:"2",EY:"auto",cE:"2",DX:"3",CX:"auto",SY:"3",bZ:"100",jZ:"1",iZ:"auto",TY:"1",FY:"2",EY:"auto",cE:"2",DX:"3",CX:"auto",SY:"5",bZ:"100",Hva:"101",Oba:999998,gwa:999999,Yba:1E6}});
define("eB",[],function(){var a=1,b={};return{css:function(c,e){var d=c.__duqid;d===m&&(d=a.toString(),c.__duqid=d,a++);var d=b[d]||(b[d]={e:c,s:{}}),f;for(f in e)d.s[f]=e[f]},gta:function(){for(var a in b){var e=b[a],d=e.e.style,e=e.s,f;for(f in e)d[f]=e[f]}b={}}}});
define("bx",["require"],function(){return{Qra:function(a){return!!a&&0<=a.indexOf("&tdvflipx")},z8:function(a){a&&(0>a.indexOf("#")&&(a+="#"),a+="&tdvflipx");return a},Sqa: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("cx",["require"],function(){var a={},b;a:{try{if("localStorage"in window&&(window.localStorage.setItem("test","test"),"test"==window.localStorage.getItem("test"))){b=o;break a}}catch(c){}b=y}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("fV",["require","u","iB","hV","cx"],function(a){function b(a,b,d,c,e){this.url=a;this.Xd=b;this.time=d;this.$ua=c;this.dqa=e}var c=a("u");URL=a("iB");async=a("hV");Storage=a("cx");b.prototype.loaded=function(){e.ZS(this.url);e.wq(this)};b.prototype.cancel=function(){e.wq(this)};var e={vq:[],Ml:[],QB:[],qU:q,L2:{},add:function(a,d,c,k){a=new b(a,d,(new Date).getTime(),c,k);this.vq.push(a);this.G();return a},eba:function(a){this.QB.push(a);this.G()},dba:function(a){var b=this.QB,a=b.indexOf(a);
0<=a&&b.splice(a,1);this.G()}};if(c.fd()==c.rr)e.uX=R(o),e.ZS=E();else if(!URL.sg("debug")||!URL.um("disable-cache")){e.uX=function(a){return this.L2[a]||Storage.getItem("tdvp_"+a)};var d=y;e.ZS=function(a){this.L2[a]=o;try{Storage.setItem("tdvp_"+a,o)}catch(b){d||(d=o,Storage.clear())}}}else e.uX=R(y),e.ZS=E();e.G=function(){this.qU||(this.qU=async.qu(e.Zoa))};e.Zoa=function(){e.qU=q;for(var a=this.cma(),b=0,d=this.Ml.length;b<d;b++){var c=this.Ml[b];0>a.indexOf(c)&&c.dqa()}var n=this.Ml;this.Ml=
a;b=0;for(d=this.Ml.length;b<d;b++)c=this.Ml[b],0>n.indexOf(c)&&c.$ua()}.bind(e);e.xna=function(){this.vq.sort(function(a,b){return a.Xd-b.Xd||b.time-a.time});this.QB.sort(function(a,b){return a-b})};e.cma=function(){this.xna();var a=[];if(this.vq.length)for(var b=this.QB.length?this.QB[0]:this.vq[0].Xd,d=0;10>d&&d<this.vq.length&&this.vq[d].Xd<=b;d++)a.push(this.vq[d]);return a};e.wq=function(a){var b=this.vq,a=b.indexOf(a);0<=a&&b.splice(a,1);this.G()};return e});
define("hn","require,eD,bS,em,kd,fB,iB,bx,fV".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=a("kd"),f=a("fB"),i=a("iB"),j=a("bx"),k=a("fV"),a=b.extend(e,function(a){e.call(this);this.ao=a||f.cca;this.da=this.W=this.kb=this.Qb=q;this.Zp=y;this.Bw=this.sj=q;this.pI=0;this.sQ=[];this.uG=this.uG.bind(this);this.vG=this.vG.bind(this)});a.prototype.load=function(a){this.cancel();this.Qb=a;this.pI=0;this.G5()};a.prototype.G5=function(){this.sj=k.add(this.Qb,this.ao,this.Fna.bind(this),this.yea.bind(this))};
a.prototype.cancel=function(){if(this.sj){this.sj.cancel();this.sj=q}this.Y_()};a.prototype.osa=function(){return!!this.kb&&!this.Zp||this.Bw};a.prototype.Go=Q("Zp");a.prototype.Bd=function(a){if(a){a=this.kb.cloneNode(o);this.sQ.push(a);return a}return this.kb};a.prototype.Fc=Q("W");a.prototype.qd=Q("da");a.prototype.Gh=Q("Qb");a.prototype.Fna=function(){this.kb=this.ufa(this.Qb)};a.prototype.yea=function(){this.osa()&&this.Y_()};a.prototype.Y_=function(){if(this.kb){if(this.Bw){clearTimeout(this.Bw);
this.Bw=q}for(this.Zp=y;this.sQ.length;)this.N0(this.sQ.shift());this.N0(this.kb);this.kb=q}};a.prototype.fda=function(a){a.addEventListener("load",this.uG);a.addEventListener("error",this.vG)};a.prototype.y5=function(a){a.removeEventListener("load",this.uG);a.removeEventListener("error",this.vG)};a.prototype.uG=function(){this.sj.loaded();this.sj=q;this.y5(this.kb);this.Zp=o;this.W=this.kb.width;this.da=this.kb.height;j.Qra(this.Qb)&&j.Sqa(this.kb,this.W,this.da);this.trigger(new c(d.T))};a.prototype.vG=
function(){this.cancel();if(this.pI<l){this.pI++;this.Bw=setTimeout(function(){this.Bw=q;this.G5()}.bind(this),Math.pow(2,this.pI)*1E3)}else this.trigger(new c(d.xd))};a.prototype.ufa=function(a){var b;if(g.length>0)b=g.pop();else{b=document.createElement("img");if(i.o$(a))b.crossOrigin="Anonymous"}b.setAttribute("draggable","false");b.style.position="static";b.style.border="none";b.style.display="none";this.fda(b);b.src=a;return b};a.prototype.N0=function(a){this.y5(a);a.parentNode&&a.parentNode.removeChild(a);
a.src="";g.length>n&&g.push(a)};var n=100,g=[],l=5;a.jX=function(a){return k.uX(a)};return a});
define("ew","require,cV,jquery.mod,kd,fB,Y,kr,eB,hn".split(","),function(a){function b(){this.lk=this.nk=this.pk=this.mk=this.kn=this.jn=this.mn=this.ln=0;this.XE=this.ZE=this.$E=this.YE="";this.lb=1;this.yd=m;this.ms=[];this.eO=[];this.bO=i.HM;this.oF=y;this.rG=m;this.Ue=q;this.XP=this.IU=0;this.Wa=document.createElement("canvas");this.Wa.setAttribute("tdvlayer","background");this.I=e(this.Wa);k.css(this.Wa,{position:"absolute",left:0,top:0,"z-index":j.cE,"user-select":"none","-ms-user-select":"none",
"-moz-user-select":"none","-webkit-user-select":"none"});this.Rd=o}var c=a("cV"),e=a("jquery.mod"),d=a("kd"),f=a("fB"),i=a("Y"),j=a("kr"),k=a("eB"),n=a("hn");b.prototype.setSize=function(a,b){if(this.IU!=a||this.XP!=b){this.IU=a||0;this.XP=b||0;this.Rd=o}};b.prototype.Kaa=function(a){if(this.wk!=a){this.wk=a;this.Rd=o}};b.prototype.Ab=Q("I");b.prototype.aD=Q("Wa");b.prototype.cua=function(a){if(this.rG!=a){if(this.Ue){this.Ue.unbind(d.T,this.Pp,this);this.Ue.cancel();this.Ue=q}if(this.rG=a){this.Ue=
new n(f.UY);this.Ue.bind(d.T,this.Pp,this);this.Ue.load(this.rG)}this.Rd=o}};b.prototype.IW=function(a){if(this.ln!=a){this.ln=a;this.Rd=o}};b.prototype.JW=function(a){if(this.mn!=a){this.mn=a;this.Rd=o}};b.prototype.DW=function(a){if(this.jn!=a){this.jn=a;this.Rd=o}};b.prototype.EW=function(a){if(this.kn!=a){this.kn=a;this.Rd=o}};b.prototype.GW=function(a){if(this.mk!=a){this.mk=a;this.Rd=o}};b.prototype.KW=function(a){if(this.pk!=a){this.pk=a;this.Rd=o}};b.prototype.HW=function(a){if(this.nk!=a){this.nk=
a;this.Rd=o}};b.prototype.FW=function(a){if(this.lk!=a){this.lk=a;this.Rd=o}};b.prototype.Kta=function(a){if(this.YE!=a){this.YE=a;this.Rd=o}};b.prototype.Mta=function(a){if(this.$E!=a){this.$E=a;this.Rd=o}};b.prototype.Lta=function(a){if(this.ZE!=a){this.ZE=a;this.Rd=o}};b.prototype.Jta=function(a){if(this.XE!=a){this.XE=a;this.Rd=o}};b.prototype.Pi=function(a){if(this.lb!=a){this.lb=a;this.Rd=o}};b.prototype.Ji=Q("lb");b.prototype.Zx=function(a){if(!c.isEqual(this.yd,a)){this.yd=a;c(a).isArray()||
(a=[a]);a=c(a).filter(function(a){return c(a).isString()});this.Baa(a)}};b.prototype.Baa=function(a){if(!c.isEqual(this.ms,a)){this.ms=a;this.Rd=o}};b.prototype.Qta=function(a){if(this.nwa!=a){this.eO=a;this.Rd=o}};b.prototype.Pta=function(a){if(this.bO!=a){this.bO=a;this.Rd=o}};b.prototype.Pp=function(){this.Rd=o;this.pe()};b.prototype.pe=function(){if(this.Rd){this.G();this.Rd=y}};b.prototype.G=function(){var a=Math.max(0,this.IU-(this.mk+this.nk)),b=Math.max(0,this.XP-(this.pk+this.lk)),f=this.I.get(0);
f.width=a;f.height=b;var f=f.getContext("2d"),d=this.rea(),k=d.length>0,j=this.Ue&&this.Ue.Go(),e=this.mk>0&&this.YE||this.pk>0&&this.$E||this.nk>0&&this.ZE||this.lk>0&&this.XE,e=k||j||e;if(k){var n;n=this.bO==i.jM?f.createLinearGradient(0,0,a,0):f.createLinearGradient(0,0,0,b);c(d).forEach(function(a){n.addColorStop(a.ratio,a.color)});f.fillStyle=n;f.fillRect(0,0,a,b);this.oF=o}else if(this.oF){f.clearRect(0,0,a,b);this.oF=y}if(j){f.drawImage(this.Ue.Bd(),0,0,a,b);this.oF=o}this.Wa.style.opacity=
this.lb;this.Wa.style.filter="alpha(opacity="+Math.round(this.lb*100)+")";this.Wa.style["-ms-filter"]="alpha(opacity="+Math.round(this.lb*100)+")";this.Wa.style.borderTopLeftRadius=this.ln+"px";this.Wa.style.borderTopRightRadius=this.mn+"px";this.Wa.style.borderBottomLeftRadius=this.jn+"px";this.Wa.style.borderBottomRightRadius=this.kn+"px";this.Wa.style.borderLeft=this.eG(this.mk,this.YE);this.Wa.style.borderTop=this.eG(this.pk,this.$E);this.Wa.style.borderRight=this.eG(this.nk,this.ZE);this.Wa.style.borderBottom=
this.eG(this.lk,this.XE);this.Wa.style.width=a+"px";this.Wa.style.height=b+"px";this.Wa.style.cursor="inherit";this.Wa.style.display=e?"block":"none";if(this.Wa.clientWidth===0&&a!==0){this.Wa.style.width=0;this.Wa.style.width=a+"px"}};b.prototype.eG=function(a,b){return a>0?b?a+"px solid "+b:a+"px solid transparent":"none"};b.prototype.rea=function(){var a=[];if(this.ms.length>0){for(var b=this.ms.slice(),b=[].concat([b[0]],b,[b[b.length-1]]),f=this.qea(),f=[].concat([0],f,[1]),d=0;d<b.length;d++){var c=
f[d];c>=0&&a.push({color:b[d],ratio:c})}for(d=0;d<a.length-1;)a[d].ratio==a[d+1].ratio&&a[d].color==a[d+1].color?a.splice(d,1):d++;for(d=1;d<a.length-1;)a[d-1].ratio==a[d+1].ratio?a.splice(d,1):d++}return a};b.prototype.qea=function(){var a=this.ms.length,b;for(b=this.eO.length>0?c(this.eO).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.length<a;)b.push(1);b.length>a&&b.splice(a,b.length-a);return b};return b});
define("dl",["jquery.mod","kr","eB"],function(a,b,c){function e(){this.AH=this.CH=this.DH=this.BH=this.lk=this.nk=this.pk=this.mk=0;this.YA=this.wk=o;this.EU=this.mQ=0;this.Z=o;this.tB=document.createElement("div");this.tB.setAttribute("tdvlayer","content");this.Q5=a(this.tB);c.css(this.tB,{position:"absolute"});this.fz=document.createElement("div");this.s0=a(this.fz);c.css(this.fz,{position:"absolute"});this.Q5.append(this.s0)}e.prototype.append=function(a){this.s0.append(a)};e.prototype.XU=function(a){this.fz.appendChild(a)};
e.prototype.qta=function(a){this.fz.removeChild(a)};e.prototype.Ab=Q("Q5");e.prototype.aD=Q("tB");e.prototype.aua=function(a){this.mQ!=a&&(this.mQ=a,this.Z=o)};e.prototype.Sua=function(a){this.EU!=a&&(this.EU=a,this.Z=o)};e.prototype.xx=function(){return this.BH+this.mk};e.prototype.Ex=function(){return this.DH+this.pk};e.prototype.Dx=function(){return this.CH+this.nk};e.prototype.tx=function(){return this.AH+this.lk};e.prototype.cy=function(a){this.YA!=a&&(this.YA=a,this.Z=o)};e.prototype.zua=function(a){this.BH!=
a&&(this.BH=a,this.Z=o)};e.prototype.Bua=function(a){this.DH!=a&&(this.DH=a,this.Z=o)};e.prototype.Aua=function(a){this.CH!=a&&(this.CH=a,this.Z=o)};e.prototype.yua=function(a){this.AH!=a&&(this.AH=a,this.Z=o)};e.prototype.GW=function(a){this.mk!=a&&(this.mk=a,this.Z=o)};e.prototype.KW=function(a){this.pk!=a&&(this.pk=a,this.Z=o)};e.prototype.HW=function(a){this.nk!=a&&(this.nk=a,this.Z=o)};e.prototype.FW=function(a){this.lk!=a&&(this.lk=a,this.Z=o)};e.prototype.Kaa=function(a){this.wk!=a&&(this.wk=
a,this.Z=o)};e.prototype.pe=function(){this.Z&&(this.G(),this.Z=y)};e.prototype.G=function(){c.css(this.tB,{overflow:this.YA?"visible":"hidden","z-index":this.wk?b.DX:b.CX,left:this.xx()+"px",top:this.Ex()+"px",right:this.Dx()+"px",bottom:this.tx()+"px",cursor:"inherit"});c.css(this.fz,{left:-this.mQ+"px",top:-this.EU+"px",right:this.YA?0:"initial",bottom:this.YA?0:"initial",cursor:"inherit"})};return e});
define("gT",["cV","jquery.mod","eD","kr","eB"],function(a,b,c,e,d){function f(){this.da=this.W=this.ca=this.ba=m;this.kn=this.jn=this.mn=this.ln=0;this.dd=y;this.lQ=0;this.DU=4;this.HN=6;this.qT=0;this.yd="#000000";this.lb=1;this.Wa=document.createElement("div");this.Wa.setAttribute("tdvlayer","shadow");this.I=b(this.Wa);d.css(this.Wa,{position:"absolute",left:0,top:0,right:0,bottom:"0"});this.Z=y}f.prototype.Ab=Q("I");f.prototype.aD=Q("Wa");f.prototype.IW=function(a){this.ln!=a&&(this.ln=a,this.Z=
o)};f.prototype.JW=function(a){this.mn!=a&&(this.mn=a,this.Z=o)};f.prototype.DW=function(a){this.jn!=a&&(this.jn=a,this.Z=o)};f.prototype.EW=function(a){this.kn!=a&&(this.kn=a,this.Z=o)};f.prototype.Pi=function(a){this.lb!=a&&(this.lb=a,this.Z=o)};f.prototype.Ji=Q("lb");f.prototype.jf=function(a){this.dd!=a&&(this.dd=a,this.Z=o)};f.prototype.$ta=function(a){this.lQ!=a&&(this.lQ=a,this.Z=o)};f.prototype.Rua=function(a){this.DU!=a&&(this.DU=a,this.Z=o)};f.prototype.Ita=function(a){this.HN!=a&&(this.HN=
a,this.Z=o)};f.prototype.Iua=function(a){this.qT!=a&&(this.qT=a,this.Z=o)};f.prototype.Zx=function(a){this.yd!=a&&(this.yd=a,this.Z=o)};f.prototype.pe=function(){this.Z&&(this.G(),this.Z=y)};f.prototype.G=function(){var a=this.lQ+"px "+this.DU+"px "+this.HN+"px "+this.qT+"px "+this.yd;this.Wa.style.display=this.dd?"block":"none";this.Wa.style.boxShadow=a;this.Wa.style["-webkit-box-shadow"]=a;this.Wa.style["-moz-box-shadow"]=a;this.Wa.style.borderTopLeftRadius=this.ln+"px";this.Wa.style.borderTopRightRadius=
this.mn+"px";this.Wa.style.borderBottomLeftRadius=this.jn+"px";this.Wa.style.borderBottomRightRadius=this.kn+"px";this.Wa.style.filter="alpha(opacity="+Math.round(100*this.lb)+")";this.Wa.style["-ms-filter"]="alpha(opacity="+Math.round(100*this.lb)+")";this.Wa.style.opacity=this.lb;this.Wa.style.zIndex=e.TY};return f});
define("jc","require,jquery.mod,cV,eD,im,S,kd,ew,dl,gT,kr,bS,eB,u".split(","),function(a){var b=a("jquery.mod");a("cV");var c=a("eD"),e=a("im"),d=a("S"),f=a("kd"),i=a("ew"),j=a("dl"),k=a("gT"),n=a("kr"),g=a("bS"),l=a("eB");a("u");var r=c.extend(e,function(){e.call(this);this.Op=r.Op++;this.kO=this.Kc=this.KR=this.XA=this.jT=this.I=this.Wa=q;this.E7=this.v2=y;this.S=this.sa=q;this.da=this.W=this.Ws=this.Vs=0;this.Up=this.dd=y;this.m2=o;this.mA=this.nA=this.kh=this.lh=0;this.lb=1;this.Pe=d.Gc;this.set("inView",
y);this.set("toolTip",m);this.ut(o);this.aT(o)});r.prototype.Dc=N("kv");r.prototype.toString=function(){return"["+this.I.attr("tdvclass")+"::"+this.Op+"]"};r.prototype.log=function(a){c.log(a+" "+this.toString()+" "+(new Date).getTime().toString())};r.prototype.Pa=Q("sa");r.prototype.bm=function(a){(this.sa=a)&&this.Rz();this.Ww();this.trigger(f.Cba)};r.prototype.Ab=function(){this.I=b(this.zn());this.Ab=Q("I");return this.I};r.prototype.zn=function(){this.Wa=document.createElement("div");this.Wa.setAttribute("id",
this.Op);this.kv&&this.Wa.setAttribute("tdvclass",this.kv);l.css(this.Wa,{margin:0,padding:0,position:"absolute",overflow:"visible",display:"block"});this.zn=Q("Wa");return this.Wa};r.prototype.dh=function(){this.jT=new k;this.dh=Q("jT");return this.jT};r.prototype.qb=function(){this.Kc=new i;this.qb=Q("Kc");return this.Kc};r.prototype.Kv=function(){this.XA=document.createElement("div");this.XA.setAttribute("tdvlayer","overShadow");l.css(this.XA,{position:"absolute",left:0,top:0,cursor:"inherit"});
this.Kv=Q("XA");return this.XA};r.prototype.OP=function(){this.KR=b(this.Kv());this.OP=Q("KR");return this.KR};r.prototype.Ja=function(){this.kO=new j;this.Ja=Q("kO");return this.kO};r.prototype.getParent=Q("S");r.prototype.ua=Q("W");r.prototype.Za=Q("da");r.prototype.Ora=function(){return this.W!==m&&this.da!==m};r.prototype.jd=function(){return this.W-this.Ja().xx()-this.Ja().Dx()};r.prototype.hd=function(){return this.da-this.Ja().Ex()-this.Ja().tx()};r.prototype.Fh=function(){return this.Ja().xx()};
r.prototype.xm=function(){return this.Ja().Ex()};r.prototype.wm=function(){return this.Ja().Dx()};r.prototype.vx=function(){return this.Ja().tx()};r.prototype.jf=function(a){if(this.dd!=a){this.dd=a;this.hc();if(this.S){this.S.La();this.S.oc()}this.Ww()}};r.prototype.Ww=function(){var a=y;this.sa&&this.dd&&this.Ji()>0&&(this==this.sa?a=o:this.S&&(a=this.S.Up));this.Up!=a&&this.vN(a)};r.prototype.vN=function(a){this.Up=a;this.set("inView",a);this.Up?this.trigger(new g(f.Le)):this.trigger(new g(f.Df))};
r.prototype.Qma=function(a){if(this.m2!=a){this.m2=a;this.S&&this.S.oc()}};r.prototype.Lma=function(a){if(this.Gv!=a){this.Gv=a;this.La()}};r.prototype.Kma=function(a){if(this.Fv!=a){this.Fv=a;this.La()}};r.prototype.Jma=function(a){if(this.Ev!=a){this.Ev=a;this.La()}};r.prototype.Ima=function(a){if(this.Dv!=a){this.Dv=a;this.La()}};r.prototype.Mma=function(a){if(this.bi!=a){this.bi=a;if(this.bi!=m)this.vi=m;this.La()}};r.prototype.Hma=function(a){if(this.ys!=a){this.ys=a;if(this.ys!=m)this.ui=m;
this.La()}};r.prototype.$ma=function(a){if(this.vi!=a){this.vi=a;if(this.vi!=m)this.bi=m;this.La()}};r.prototype.Wma=function(a){if(this.ui!=a){this.ui=a;if(this.ui!=m)this.ys=m;this.La()}};r.prototype.Sma=function(a){if(this.Kn!=a){if(a!=m)this.OH=m;this.Kn=a;this.S&&this.S.oc();this.La()}};r.prototype.mna=function(a){if(this.po!=a){if(a!=m)this.QH=m;this.po=a;this.S&&this.S.oc();this.La()}};r.prototype.ana=function(a){if(this.pB!=a){if(a!=m)this.PH=m;this.pB=a;this.S&&this.S.oc();this.La()}};r.prototype.Bma=
function(a){if(this.Uy!=a){if(a!=m)this.NH=m;this.Uy=a;this.S&&this.S.oc();this.La()}};r.prototype.Xma=function(a){if(this.OH!=a){if(a!=m)this.Kn=m;this.OH=a;this.S&&this.S.oc();this.La()}};r.prototype.Zma=function(a){if(this.QH!=a){if(a!=m)this.po=m;this.QH=a;this.S&&this.S.oc();this.La()}};r.prototype.Yma=function(a){if(this.PH!=a){if(a!=m)this.pB=m;this.PH=a;this.S&&this.S.oc();this.La()}};r.prototype.Vma=function(a){if(this.NH!=a){if(a!=m)this.Uy=m;this.NH=a;this.S&&this.S.oc();this.La()}};r.prototype.Ema=
function(a){if(this.sp!=a){this.sp=a;this.S&&this.S.oc()}};r.prototype.Fma=function(a){if(this.tp!=a){this.tp=a;this.S&&this.S.oc()}};r.prototype.Em=function(){return isNaN(this.bi)?this.lh:this.bi};r.prototype.Dm=function(){return isNaN(this.ys)?this.kh:this.ys};r.prototype.Kha=function(){return isNaN(this.qga)?this.U2:this.qga};r.prototype.Bm=function(){return isNaN(this.Gv)?this.nA:this.Gv};r.prototype.Do=function(){return isNaN(this.Fv)?this.mA:this.Fv};r.prototype.pK=function(){return isNaN(this.Ev)?
1E4:this.Ev};r.prototype.oK=function(){return isNaN(this.Dv)?1E4:this.Dv};r.prototype.q6=function(a){if(this.RP()!=a){this.Ja().zua(a);this.La()}};r.prototype.RP=function(){return this.Ja().BH};r.prototype.s6=function(a){if(this.TP()!=a){this.Ja().Bua(a);this.La()}};r.prototype.TP=function(){return this.Ja().DH};r.prototype.r6=function(a){if(this.SP()!=a){this.Ja().Aua(a);this.La()}};r.prototype.SP=function(){return this.Ja().CH};r.prototype.p6=function(a){if(this.QP()!=a){this.Ja().yua(a);this.La()}};
r.prototype.QP=function(){return this.Ja().AH};r.prototype.ND=function(a){if(this.Vs!=a){this.Vs=a;this.Qg()}};r.prototype.OD=function(a){if(this.Ws!=a){this.Ws=a;this.Qg()}};r.prototype.Pi=function(a){if(this.lb!=a){this.lb=a;l.css(this.Kv(),{filter:"alpha(opacity="+Math.round(this.lb*100)+") ",opacity:this.lb});this.Ww();this.Qg()}};r.prototype.Ji=Q("lb");r.prototype.yma=function(a){if(this.qb().ln!=a){this.dh().IW(a);this.qb().IW(a)}};r.prototype.Yga=function(){return this.qb().ln};r.prototype.zma=
function(a){if(this.qb().mn!=a){this.dh().JW(a);this.qb().JW(a)}};r.prototype.Zga=function(){return this.qb().mn};r.prototype.qma=function(a){if(this.qb().jn!=a){this.dh().DW(a);this.qb().DW(a)}};r.prototype.Wga=function(){return this.qb().jn};r.prototype.rma=function(a){if(this.qb().kn!=a){this.dh().EW(a);this.qb().EW(a)}};r.prototype.Xga=function(){return this.qb().kn};r.prototype.uma=function(a){if(this.qb().mk!=a){this.qb().GW(a);this.Ja().GW(a);this.La()}};r.prototype.s1=function(){return this.qb().mk};
r.prototype.Ama=function(a){if(this.qb().pk!=a){this.qb().KW(a);this.Ja().KW(a);this.La()}};r.prototype.u1=function(){return this.qb().pk};r.prototype.wma=function(a){if(this.qb().nk!=a){this.qb().HW(a);this.Ja().HW(a);this.La()}};r.prototype.t1=function(){return this.qb().nk};r.prototype.sma=function(a){if(this.qb().lk!=a){this.qb().FW(a);this.Ja().FW(a);this.La()}};r.prototype.r1=function(){return this.qb().lk};r.prototype.tma=function(a){this.qb().Kta(a)};r.prototype.xma=function(a){this.qb().Mta(a)};
r.prototype.vma=function(a){this.qb().Lta(a)};r.prototype.pma=function(a){this.qb().Jta(a)};r.prototype.JI=function(a){this.dh().jf(a)};r.prototype.gna=function(a){this.dh().$ta(a)};r.prototype.jna=function(a){this.dh().Rua(a)};r.prototype.ena=function(a){this.dh().Ita(a)};r.prototype.ina=function(a){this.dh().Iua(a)};r.prototype.hna=function(a){this.dh().Pi(a)};r.prototype.fna=function(a){this.dh().Zx(a)};r.prototype.mma=function(a){this.Uga()!=a&&this.qb().Pi(a)};r.prototype.Uga=function(){return this.qb().Ji()};
r.prototype.ima=function(a){this.Tga()!=a&&this.qb().Zx(a)};r.prototype.Tga=function(){return this.qb().yd};r.prototype.kma=function(a){this.qb().Qta(a)};r.prototype.jma=function(a){this.qb().Pta(a)};r.prototype.lma=function(a){this.qb().cua(a)};r.prototype.Dq=function(a){if(this.Pe!=a){this.Pe=a;this.Qg()}};r.prototype.ut=function(a){if(this.wk!=a){this.wk=a;l.css(this.Kv(),{"z-index":this.wk?n.FY:n.EY});this.Ja().Kaa(this.wk);this.Qg()}};r.prototype.aT=function(a){if(this.Q4!=a){this.Q4=a;l.css(this.zn(),
{"z-index":this.Q4?n.jZ:n.iZ});this.Qg()}};r.prototype.ik=function(){this.Ww();this.iD()};r.prototype.yi=function(){this.Ww()};r.prototype.DS=E();r.prototype.Rz=function(){this.iD();this.hc();this.La();this.oc();this.Qg()};r.prototype.On=function(){this.mA=this.nA=this.kh=this.lh=0;this.U2=m};r.prototype.iD=function(){var a=this.Pa();a&&a.Zu.iD(this)};r.prototype.hc=function(){var a=this.Pa();a&&a.Zu.hc(this)};r.prototype.La=function(){var a=this.Pa();a&&a.Zu.La(this)};r.prototype.oc=function(){var a=
this.Pa();a&&a.Zu.oc(this)};r.prototype.Qg=function(){var a=this.Pa();a&&a.Zu.Qg(this)};r.prototype.bQ=function(){var a=isNaN(this.OH)&&isNaN(this.Kn),b=isNaN(this.PH)&&isNaN(this.pB);return isNaN(this.bi)&&isNaN(this.vi)&&(a||b)?o:y};r.prototype.c2=function(){var a=isNaN(this.QH)&&isNaN(this.po),b=isNaN(this.NH)&&isNaN(this.Uy);return isNaN(this.ys)&&isNaN(this.ui)&&(a||b)?o:y};r.prototype.opa=function(){this.On();var a=this.Kha();if(a){var b=this.bQ(),f=this.c2();if(b&&!f){b=this.hd();if(b!=0){this.lh=
b*a+this.Fh()+this.wm();this.kh=b+this.xm()+this.vx()}}else if(!b&&f){b=this.jd();if(b!=0){this.kh=b/a+this.Fh()+this.wm();this.lh=b+this.Fh()+this.wm()}}}if(!isNaN(this.Gv)&&this.lh<this.Gv)this.lh=this.Gv;if(!isNaN(this.Ev)&&this.lh>this.Ev)this.lh=this.Ev;if(!isNaN(this.Fv)&&this.kh<this.Fv)this.kh=this.Fv;if(!isNaN(this.Dv)&&this.kh>this.Dv)this.kh=this.Dv};r.prototype.Ba=function(){if(!this.E7){this.E7=o;var a=this.zn(),b=this.Kv();a.appendChild(this.dh().aD());a.appendChild(b);b.appendChild(this.qb().aD());
b.appendChild(this.Ja().aD())}};r.prototype.sva=function(){this.opa();var a=this.Em(),b=this.Dm(),f=this.Bm(),d=this.Do();if(a!=this.Dja||b!=this.Cja||f!=this.zja||d!=this.yja||this.vi!=this.Bja||this.ui!=this.Aja){this.Dja=a;this.Cja=b;this.zja=f;this.yja=d;this.Bja=this.vi;this.Aja=this.ui;return o}return y};r.prototype.fa=function(){this.Qg()};r.prototype.Oh=E();r.prototype.Aaa=function(a,b,d,c){if(this.ba!=a||this.ca!=b||this.W!=d||this.da!=c){this.ba=a;this.ca=b;this.W=d;this.da=c;this.qb().setSize(this.W,
this.da);this.oc();this.Qg();this.trigger(new g(f.pb))}};r.prototype.pe=function(){var a=this.zn(),b=this.Kv();if(this.dd){b.style.width=this.W+"px";b.style.height=this.da+"px";a.style.left=this.ba+this.Vs+"px";a.style.top=this.ca+this.Ws+"px";a.style.width=this.W+"px";a.style.height=this.da+"px";a.style.visibility="inherit";a.style.overflow="visible";a.style.cursor=this.sa&&this.sa.MO.f9(this.Pe);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.dh().pe();this.qb().pe();this.Ja().pe();if(!this.v2&&this.sa){this.v2=o;this.sa.M6?this.uQ():this.sa.bind(f.aj,this.uQ,this,o)}};r.prototype.uQ=function(){this.trigger(f.INIT)};r.prototype.Era=function(a){var a=a.Ab().offset(),b=this.Ab().offset(),f={};f.left=b.left-a.left;f.top=b.top-a.top;if(this.sa){f.left=f.left/this.sa.lw;f.top=f.top/this.sa.lw}return f};r.Op=0;return r});
define("J","require,cV,eD,kd,bS,eK,jc".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("eK"),i=a("jc"),j=c.extend(i,function(){this.wa={};this.co=this.g1=m;this.uq={};this.d1=o;this.N6={};i.call(this);this.Nfa();this.ta();this.Dc("UICustomizable");this.hc()});j.fb={visible:o,includeInLayout:o,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:y,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};j.prototype.Nfa=function(){this.N6[f.Va]=f.va};j.prototype.ta=function(){this.jj(j.fb)};j.prototype.jj=function(a){for(var b in a){var f=a[b],d=f&&f.length;!d||typeof f=="string"?this.f(b,f):d==1?this.f(b,f[0]):d==2?this.h(b,f[0],f[1]):d==3&&this.h(b,f[0],f[1],f[2])}};j.prototype.f=function(a,b){this.wa[a]={i:o,d:b}};j.prototype.Pha=function(){var a=[],b;for(b in this.wa)a.push(b);
return a};j.prototype.h=function(a,b,f,d){this.uq[b]||(this.uq[b]={});this.f(a,d);this.uq[b][f]=a};j.prototype.Iw=function(a,b){if(b)this.g1=a;else if(this.g1!=m)return;if(this.co!=a){var f=this.uq[this.co];if(f)for(var d in f)(this.wa[d]||(this.wa[d]={})).i=o;this.co=a;if(f=this.uq[this.co])for(d in f)(this.wa[d]||(this.wa[d]={})).i=o;this.hc()}};j.prototype.M=function(a){if(b(a).isString())this.set(a,m);else{var f=a;for(a in f)this.set(a,f[a])}};j.prototype.set=function(a,f){var d=this.wa[a];if(d){f==
m&&(f=d.d);if(!b.isEqual(this.get(a),f)){a=="state"&&this.Iw(f,o);i.prototype.set.call(this,a,f);d.i=o;this.hc()}}else i.prototype.set.call(this,a,f)};j.prototype.get=function(a,b){switch(a){case "actualWidth":return this.ua();case "actualHeight":return this.Za();default:var f=i.prototype.get.call(this,a);if(f===m){var d=this.wa[a];d&&(f=d.d);f===m&&(f=b)}return f}};j.prototype.i_=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<a.length;b++)if(this.n(a[b]))return o;return y};j.prototype.n=function(a){if((this.wa[a]||{}).i)return o;if(this.co!==m){a=this.uq[this.co][a];return!!(this.wa[a]||{}).i}};j.prototype.vt=function(a){(this.wa[a]||(this.wa[a]={})).i=o;this.hc()};j.prototype.o=function(a){(this.wa[a]||
(this.wa[a]={})).i=y;if(this.co!=m)(a=this.uq[this.co][a])&&((this.wa[a]||(this.wa[a]={})).i=y)};j.prototype.j=function(){for(var a,b=0;b<arguments.length;b++){for(var f=arguments[b],d=this.co;d;){if(a=this.uq[d][f]){a=this.get(a);if(a!=m&&a!=q)return a}d=this.N6[d]}a=this.get(f);if(a!=m&&a!=q)return a}};j.prototype.kT=function(a){a.source.unbind(e.Ia,this.kT,this);this.trigger(new d(e.Pu))};j.prototype.jQ=function(a){a.source.unbind(e.Ia,this.jQ,this);this.trigger(new d(e.Jr))};j.prototype.fa=function(){if(this.d1)this.d1=
y;else if(this.n("visible")){var a=this.j("visible"),b=this.get(a?"hideEffect":"showEffect");if(b&&b.fu(this)){b.unbind(e.Ia,a?this.jQ:this.kT,this);b.end()}if(b=this.get(a?"showEffect":"hideEffect")){if(!b.fu(this)){this.o("visible");b.bind(e.Ia,a?this.kT:this.jQ,this);b.play(this)}}else this.trigger(new d(a?e.Pu:e.Jr))}if(this.n("visible")){this.jf(this.j("visible"));this.o("visible")}if(this.n("includeInLayout")){this.Qma(this.j("includeInLayout"));this.o("includeInLayout")}if(this.n("left")){b=
this.j("left");a=j.Tj(b);b=a===m?b:m;this.Xma(a);this.Sma(b);this.o("left")}if(this.n("top")){b=this.j("top");a=j.Tj(b);b=a===m?b:m;this.Zma(a);this.mna(b);this.o("top")}if(this.n("right")){b=this.j("right");a=j.Tj(b);b=a===m?b:m;this.Yma(a);this.ana(b);this.o("right")}if(this.n("bottom")){b=this.j("bottom");a=j.Tj(b);b=a===m?b:m;this.Vma(a);this.Bma(b);this.o("bottom")}if(this.n("centerX")){this.Ema(this.j("centerX"));this.o("centerX")}if(this.n("centerY")){this.Fma(this.j("centerY"));this.o("centerY")}if(this.n("width")){b=
this.j("width");a=j.Tj(b);b=a===m?b:m;this.$ma(a);this.Mma(b);this.o("width")}if(this.n("height")){b=this.j("height");a=j.Tj(b);b=a===m?b:m;this.Wma(a);this.Hma(b);this.o("height")}if(this.n("minWidth")){b=this.j("minWidth");this.Lma(b);this.o("minWidth")}if(this.n("minHeight")){b=this.j("minHeight");this.Kma(b);this.o("minHeight")}if(this.n("maxWidth")){b=this.j("maxWidth");this.Jma(b);this.o("maxWidth")}if(this.n("maxHeight")){b=this.j("maxHeight");this.Ima(b);this.o("maxHeight")}if(this.n("paddingLeft")){this.q6(this.j("paddingLeft"));
this.o("paddingLeft")}if(this.n("paddingTop")){this.s6(this.j("paddingTop"));this.o("paddingTop")}if(this.n("paddingRight")){this.r6(this.j("paddingRight"));this.o("paddingRight")}if(this.n("paddingBottom")){this.p6(this.j("paddingBottom"));this.o("paddingBottom")}a=y;if(this.n("borderRadius")){this.o("borderRadius");a=o}b=y;if(this.n("borderLeftRadius")){this.o("borderLeftRadius");b=o}var f=y;if(this.n("borderTopRadius")){this.o("borderTopRadius");f=o}var c=y;if(this.n("borderRightRadius")){this.o("borderRightRadius");
c=o}var r=y;if(this.n("borderBottomRadius")){this.o("borderBottomRadius");r=o}if(this.n("borderTopLeftRadius")||f||b||a){this.yma(this.j("borderTopLeftRadius","borderLeftRadius","borderTopRadius","borderRadius"));this.o("borderTopLeftRadius")}if(this.n("borderTopRightRadius")||f||c||a){this.zma(this.j("borderTopRightRadius","borderRightRadius","borderTopRadius","borderRadius"));this.o("borderTopRightRadius")}if(this.n("borderBottomLeftRadius")||r||b||a){this.qma(this.j("borderBottomLeftRadius","borderLeftRadius",
"borderBottomRadius","borderRadius"));this.o("borderBottomLeftRadius")}if(this.n("borderBottomRightRadius")||r||c||a){this.rma(this.j("borderBottomRightRadius","borderRightRadius","borderBottomRadius","borderRadius"));this.o("borderBottomRightRadius")}a=y;if(this.n("borderSize")){this.o("borderSize");a=o}if(this.n("borderLeftSize")||a){this.uma(this.j("borderLeftSize","borderSize"));this.o("borderLeftSize")}if(this.n("borderTopSize")||a){this.Ama(this.j("borderTopSize","borderSize"));this.o("borderTopSize")}if(this.n("borderRightSize")||
a){this.wma(this.j("borderRightSize","borderSize"));this.o("borderRightSize")}if(this.n("borderBottomSize")||a){this.sma(this.j("borderBottomSize","borderSize"));this.o("borderBottomSize")}a=y;if(this.n("borderColor")){this.o("borderColor");a=o}if(this.n("borderLeftColor")||a){this.tma(this.j("borderLeftColor","borderColor"));this.o("borderLeftColor")}if(this.n("borderTopColor")||a){this.xma(this.j("borderTopColor","borderColor"));this.o("borderTopColor")}if(this.n("borderRightColor")||a){this.vma(this.j("borderRightColor",
"borderColor"));this.o("borderRightColor")}if(this.n("borderBottomColor")||a){this.pma(this.j("borderBottomColor","borderColor"));this.o("borderBottomColor")}if(this.n("shadow")){this.JI(this.j("shadow"));this.o("shadow")}if(this.n("shadowHorizontalLength")){this.gna(this.j("shadowHorizontalLength"));this.o("shadowHorizontalLength")}if(this.n("shadowVerticalLength")){this.jna(this.j("shadowVerticalLength"));this.o("shadowVerticalLength")}if(this.n("shadowBlurRadius")){this.ena(this.j("shadowBlurRadius"));
this.o("shadowBlurRadius")}if(this.n("shadowSpread")){this.ina(this.j("shadowSpread"));this.o("shadowSpread")}if(this.n("shadowColor")){this.fna(this.j("shadowColor"));this.o("shadowColor")}a=y;if(this.n("opacity")){this.Pi(this.j("opacity"));this.o("opacity");a=o}if(this.n("shadowOpacity")||a){this.hna(this.j("shadowOpacity","opacity"));this.o("shadowOpacity")}if(this.n("backgroundOpacity")){this.mma(this.j("backgroundOpacity"));this.o("backgroundOpacity")}if(this.n("backgroundColor")){this.ima(this.j("backgroundColor"));
this.o("backgroundColor")}if(this.n("backgroundColorRatios")){this.kma(this.j("backgroundColorRatios"));this.o("backgroundColorRatios")}if(this.n("backgroundColorDirection")){this.jma(this.j("backgroundColorDirection"));this.o("backgroundColorDirection")}if(this.n("backgroundImageUrl")){this.lma(this.j("backgroundImageUrl"));this.o("backgroundImageUrl")}i.prototype.fa.call(this)};j.Tj=function(a){if(b(a).isString())if((a=a.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&a.length>=2)return parseFloat(a[1])};
return j});define("gF",["cV","eD","bS"],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("kg",["cV","eD","bS"],function(a,b,c){return b.extend(c,function(a,b,f,i,j,k,n){c.call(this,a);this.x=b;this.y=f;this.pageX=i;this.pageY=j;this.yo=k;this.iV=n})});
define("d","require,jquery.mod,cV,eD,kd,eK,ip,J,gF,kg,eB,u,iB".split(","),function(a){var b=a("jquery.mod"),c=a("cV"),e=a("eD"),d=a("kd"),f=a("eK"),i=a("ip"),j=a("J"),k=a("gF"),n=a("kg");a("eB");var g=a("u"),a=a("iB"),l=e.extend(j,function(){j.call(this);this.Dc("UIComponent");this.SF=[];this.sA=[];this.$fa=500;this.wb=1;this.pj=g.gL();this.Uz=this.En=this.AG=y;this.set("propagateClick",o)});l.fb={autoRolledOver:y,autoPressed:y,contentOpaque:o,cursor:m,inheritedCursor:m,inheritedInteractionEnabled:o,
interactionEnabled:o,rollOverOpacity:[f.t,"opacity"],rollOverShadow:[f.t,"shadow"]};c.defaults(l.fb,j.fb);l.prototype.ta=function(){this.jj(l.fb)};l.prototype.w_=function(){this.v6(o)};l.prototype.v_=function(){this.v6(y)};l.prototype.t_=function(){this.Hw(o)};l.prototype.u_=function(){this.Hw(y)};l.prototype.zB=function(a){if(this.En!=a){this.En=a;this.Wd()}};l.prototype.Hw=function(a){if(this.Uz!=a){this.Uz=a;this.Wd()}};l.prototype.v6=function(a){if(this.AG!=a){this.AG=a;this.Wd()}};l.prototype.Wd=
function(){this.En?this.Iw(f.F):this.Uz&&this.AG?this.Iw(f.Va):this.Uz?this.Iw(f.va):this.AG?this.Iw(f.t):this.Iw(f.Gc)};l.prototype.trigger=function(){j.prototype.trigger.apply(this,arguments)};l.prototype.w7=function(a){this.trigger(new n(d.ob,a.x,a.y,a.pageX,a.pageY))};l.prototype.x7=function(a){this.trigger(new n(d.qc,a.x,a.y,a.pageX,a.pageY))};l.prototype.y7=function(a){this.trigger(new n(d.Lb,a.x,a.y,a.pageX,a.pageY))};l.prototype.Aoa=function(a,b){this.trigger(new n(d.cp,a.x,a.y,a.pageX,a.pageY,
b.yo,b.iV))};l.prototype.r7=function(a){this.trigger(new n(d.U,a.x,a.y,a.pageX,a.pageY))};l.prototype.s7=function(a){this.trigger(new n(d.yE,a.x,a.y,a.pageX,a.pageY))};l.prototype.Coa=function(){this.trigger(new n(d.Ic))};l.prototype.Boa=function(){this.trigger(new n(d.jc))};l.prototype.yoa=function(){this.trigger(new n(d.fk))};l.prototype.zoa=function(){this.trigger(new n(d.Ef))};l.prototype.xoa=function(a,b){this.trigger(new k(d.sE,a,b))};l.prototype.voa=function(a,b){this.trigger(new k(d.Sba,a,
b))};l.prototype.woa=function(a,b){this.trigger(new k(d.rE,a,b))};l.prototype.u7=function(a){this.trigger(new k(d.Tba,m,a))};l.prototype.v7=function(a){this.trigger(new k(d.Hu,a))};l.prototype.MT=function(a){a.stopImmediatePropagation();this.zv(["touchend"]);if(this.FQ(a))this.sS(a);else{this.o2();this.q5(a,o)}};l.prototype.q5=function(a,b){var f=this.Fz(a);b&&this.poa(f);this.w7(f);this.S&&this.S.q5(a,b&&this.get("propagateClick"))};l.prototype.LT=function(a){a.preventDefault();a.stopImmediatePropagation();
this.FQ(a)?this.qS(a):this.p5(a)};l.prototype.p5=function(a){var b=this.Fz(a);this.ooa(b);this.x7(b);this.S&&this.S.p5(a)};l.prototype.x1=function(a,b){var f=a.pageX-b.pageX,d=a.pageY-b.pageY;return Math.sqrt(f*f+d*d)};l.prototype.Kq=function(a,b){this.oz(["touchend"]);b!==y&&a.preventDefault();a.stopImmediatePropagation();this.FQ(a)?this.rS(a):this.o5(a,this.y2());this.Oy()};l.prototype.o5=function(a,b){this.y7(this.Fz(a));this.noa(b);this.S&&this.S.o5(a)};l.prototype.poa=function(a){this.bind(d.jc,
this.m7,this,o);this.At=a};l.prototype.ooa=function(a){if(this.At){var a=this.x1(this.At,a),b;if(g.Qa()){b=this.Pa();b=Math.min(b.ua(),b.Za())*0.01;b=l.Rca*b}else b=l.Xca;a>b&&this.KT()}};l.prototype.noa=function(a){if(this.At){this.r7(this.At);a&&this.s7(this.At);this.KT()}};l.prototype.KT=function(){if(this.At){this.unbind(d.jc,this.m7,this);this.At=m}};l.prototype.m7=function(){this.KT()};l.prototype.yP=function(a){this.zv(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();
this.sS(a)};l.prototype.sS=function(a){var b=this.JP(a);this.sw=b;this.xoa(b.scale,b.rotation);this.S&&this.S.sS(a)};l.prototype.j1=function(a){a.preventDefault();a.stopImmediatePropagation();this.qS(a)};l.prototype.qS=function(a){var b=this.JP(a,this.sw),f=b.rotation-this.sw.rotation,d=b.scale/this.sw.scale;this.sw=b;this.wb=this.wb*d;for(this.Nd=this.Nd+f;this.Nd>180;)this.Nd=this.Nd-360;for(;this.Nd<-180;)this.Nd=this.Nd+360;this.voa(this.wb,this.Nd);f!=0&&this.u7(this.Nd);d!=1&&this.v7(this.wb);
this.S&&this.S.qS(a)};l.prototype.l1=function(a){this.oz(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();this.rS(a)};l.prototype.rS=function(a){var b=this.JP(a),f=b.rotation-this.sw.rotation,b=b.scale/this.sw.scale;this.wb=this.wb*b;for(this.Nd=this.Nd+f;this.Nd>180;)this.Nd=this.Nd-360;for(;this.Nd<-180;)this.Nd=this.Nd+360;this.woa(this.wb,this.Nd);f!=0&&this.u7(this.Nd);b!=1&&this.v7(this.wb);this.S&&this.S.rS(a)};l.prototype.hR=function(a){this.zv(["mouseup"]);
a.stopImmediatePropagation();this.o2();this.k5(a,o);r&&this.mja(a.ctrlKey)};l.prototype.k5=function(a,b){var f=this.Es(a);b&&this.Vea(f);this.w7(f);this.S&&this.S.k5(a,b&&this.get("propagateClick"))};l.prototype.iR=function(a){a.preventDefault();a.stopImmediatePropagation();this.Pa().$x(this);this.l5(a)};l.prototype.l5=function(a){var b=this.Es(a);this.Uea(b);this.x7(b);this.S&&this.S.l5(a)};l.prototype.bH=function(a){this.oz(["mouseup"]);a.preventDefault();a.stopImmediatePropagation();this.m5(a,
this.y2())};l.prototype.m5=function(a,b){this.y7(this.Es(a));this.Tea(b);this.S&&this.S.m5(a,b)};l.prototype.Vea=function(a){this.bind(d.jc,this.f0,this,o);this.ls=a};l.prototype.Uea=function(a){this.ls&&this.x1(this.ls,a)>l.Mca&&this.$N()};l.prototype.Tea=function(a){if(this.ls){this.r7(this.ls);a&&this.s7(this.ls);this.$N()}};l.prototype.$N=function(){if(this.ls){this.unbind(d.jc,this.f0,this);this.ls=m}};l.prototype.f0=function(){this.$N()};l.prototype.Z2=function(a){if(this.sa.Y2){a.preventDefault();
a.stopImmediatePropagation();this.n5(a)}};l.prototype.P_=R(y);l.prototype.n5=function(a){var b=this.Es(a),f=this.Cha(a);this.S&&!this.P_(f.yo)&&this.S.n5(a);this.Aoa(b,f)};l.prototype.Es=function(a){return this.BP(a.pageX,a.pageY)};l.prototype.Cha=function(a){var a=window.event||a.originalEvent||a,b={};b.yo=Math.max(-1,Math.min(1,a.wheelDelta||-a.detail));b.iV=a.wheelDelta?a.wheelDelta*0.01:b.yo;return b};l.prototype.Fz=function(a){var b=this.GP(a);return this.lla=a=b===m?this.BP(a.pageX,a.pageY):
b.length==0?this.lla:this.BP(b[0].pageX,b[0].pageY)};l.prototype.FQ=function(a){if((a=this.GP(a))&&a.length>1)for(var b=0,f=0;f<a.length;f++)if(this.Qia(a[f].target)){b++;if(b>1)return o}return y};l.prototype.Qia=function(a){for(;a;){if(a==this.Wa)return o;a=a.parentNode}return y};l.prototype.GP=function(a){return a.originalEvent.touches||a.originalEvent.targetTouches||a.originalEvent.changedTouches};l.prototype.BP=function(a,b){var f=this.Ab().offset(),d=this.sa?this.sa.lw:1,c={};c.x=(a-f.left)/
d;c.y=(b-f.top)/d;c.pageX=a/d;c.pageY=b/d;c.N$=a;c.O$=b;return c};l.prototype.JP=function(a,b){if(a.originalEvent.scale!==m||a.originalEvent.rotation!==m)return{scale:a.originalEvent.scale,rotation:a.originalEvent.rotation};if(b){var f=this.E1(a);return{scale:b.scale*f/b.touchesDistance,rotation:0,touchesDistance:f}}return{scale:1,rotation:0,touchesDistance:this.E1(a)}};l.prototype.E1=function(a){var b=this.GP(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.zv=function(a){this.SF=c(this.SF).union(a);for(var a=this.D1(a),b=0;b<a.length;b++){var f=a[b];f.target.bind(f.name,f.handler)}};l.prototype.o2=function(){this.sA.push((new Date).getTime());this.sA=this.sA.slice(-2)};l.prototype.y2=function(){var a=(new Date).getTime();if(this.sA.length>1){var b=this.sA.slice(-2)[0];if(a-b<=this.$fa)return o}return y};l.prototype.oz=function(a){this.SF=c(this.SF).difference(a);for(var a=this.D1(a),b=0;b<a.length;b++){var f=
a[b];f.target.unbind(f.name,f.handler)}};l.prototype.D1=function(a){this.$0||(this.$0=this.FP());for(var b=[],f=0;f<a.length;f++)b=b.concat(this.$0[a[f]]);return b};l.prototype.FP=function(){var a=this.Ab(),f=b(document),d=b(window);return{touchstart:[{target:a,name:"touchstart",handler:this.De(this.MT)}],touchmove:[{target:a,name:"touchmove",handler:this.De(this.LT)}],touchend:[{target:a,name:"touchend",handler:this.De(this.Kq,o)},{target:f,name:"touchend",handler:this.De(this.Kq,o)},{target:a,name:"touchcancel",
handler:this.De(this.Kq,o)},{target:f,name:"touchcancel",handler:this.De(this.Kq,o)}],gesturestart:[{target:a,name:"gesturestart",handler:this.De(this.yP)}],gesturechange:[{target:a,name:"gesturechange",handler:this.De(this.j1)}],gestureend:[{target:a,name:"gestureend",handler:this.De(this.l1)}],mousedown:[{target:a,name:"mousedown",handler:this.De(this.hR)}],mousemove:[{target:a,name:"mousemove",handler:this.De(this.iR)}],mouseup:[{target:a,name:"mouseup",handler:this.De(this.bH,o)},{target:d,name:"mouseup",
handler:this.De(this.bH,o)}],mousewheel:[{target:a,name:"mousewheel",handler:this.De(this.Z2)},{target:a,name:"DOMMouseScroll",handler:this.De(this.Z2)}]}};l.prototype.De=function(a,b){var f=this;return function(){b&&i.kL();l.wC=l.wC+1;var d=a.apply(f,arguments);l.wC=l.wC-1;return d}};l.prototype.fa=function(){if(this.n("autoRolledOver")){this.unbind(d.Ic,this.w_,this);this.unbind(d.jc,this.v_,this);if(this.j("autoRolledOver")){this.bind(d.Ic,this.w_,this);this.bind(d.jc,this.v_,this)}this.o("autoRolledOver")}if(this.n("autoPressed")){this.unbind(d.ob,
this.t_);this.unbind(d.Lb,this.u_);if(this.j("autoPressed")){this.bind(d.ob,this.t_);this.bind(d.Lb,this.u_)}this.o("autoPressed")}var a=y;if(this.n("contentOpaque")){a=o;this.o("contentOpaque")}if(this.n("inheritedInteractionEnabled")){a=o;this.o("inheritedInteractionEnabled")}if(this.n("interactionEnabled")){a=o;this.o("interactionEnabled")}if(this.n("backgroundOpacity")||this.n("backgroundColor"))a=o;j.prototype.fa.call(this);if(a){var b=this.qb(),b=b.Ji()>0&&b.ms.length>0,f=this.j("contentOpaque"),
c=this.j("inheritedInteractionEnabled"),g=this.j("interactionEnabled");this.tt(c&&g&&(f||b))}if(a||this.n("cursor")||this.n("inheritedCursor")){this.o("cursor");this.o("inheritedCursor");this.SE?this.Dq(this.j("cursor")):this.Dq(this.j("inheritedCursor"))}};l.prototype.tt=function(a){if(this.SE!=a){(this.SE=a)?this.zv(l.WZ):this.oz(l.WZ);this.Oy()}};l.prototype.Oy=function(){this.zn().style["pointer-events"]=this.SE?"auto":"none"};l.prototype.mja=function(a){if(a){for(var a=[],b=this;b;){a.push(b);
b=b.getParent()}console.log(a.map(function(a){return a.Sy}))}else console.log(this.Sy)};l.Lx=function(){return l.wC>0};l.WZ=function(){var a=[],a=a.concat(["touchstart","touchmove","gesturestart"]);g.sd()!=g.Ph&&(a=a.concat(["mousedown","mousemove","mousewheel"]));return a}();l.wC=0;l.kwa=1E3;l.Xca=10;l.Rca=5;l.Mca=10;var r=a.um("debug");return l});define("bc",[],function(){return{ka:"left",Fa:"right",pc:"center",eb:"top",cb:"bottom",$b:"middle"}});
define("c",[],function(){return{oL:"absolute",$d:"horizontal",ap:"grid",Me:"vertical"}});define("bT",[],function(){return function(a){this.zc=a;this.height=this.width=this.y=this.x=0}});define("cH",[],function(){return function(){this.minHeight=this.minWidth=this.height=this.width=0}});
define("bF",["bc","bT","cH"],function(a,b,c){function e(){this.zb=q;this.zh=a.eb;this.gh=a.ka;this.It=this.Bn=0}e.prototype.Iaa=function(a){this.Bn!=a&&(this.Bn=a,this.Mc())};e.prototype.cL=function(a){this.It!=a&&(this.It=a,this.Mc())};e.prototype.Vaa=function(a){this.zb=a;this.Mc()};e.prototype.by=function(a){this.gh!=a&&(this.gh=a,this.Mc())};e.prototype.ey=function(a){this.zh!=a&&(this.zh=a,this.Mc())};e.prototype.qD=function(){return new c};e.prototype.update=function(){var a=this.kfa();this.Vw(a);
this.Gma(a)};e.prototype.Vw=function(a){this.fC(a);this.eC(a)};e.prototype.iG=function(){for(var a=this.Z1(),b=[],c=0;c<a.length;c++){var j=a[c];j.get("includeInLayout")&&b.push(j)}return b};e.prototype.Z1=function(){for(var a=this.zb.Ta(),b=[],c=0;c<a.length;c++){var j=a[c];j.get("visible")&&b.push(j)}return b};e.prototype.kfa=function(){for(var a=this.Z1(),f=[],c=0;c<a.length;c++)f.push(new b(a[c]));return f};e.prototype.Gma=function(a){for(var b=0;b<a.length;b++){var c=a[b];c.zc.Aaa(c.x,c.y,c.width,
c.height)}};e.prototype.Mc=function(){this.zb&&this.zb.La()};return e});
define("cC",["eD","bc","bF","cH"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.qD=function(){for(var a=new e,b=this.iG(),c=0;c<b.length;c++){var j=b[c],k=j.Kn,n=j.pB,g=0;isNaN(k)||(g+=k);isNaN(n)||(g+=n);a.width=Math.max(g+j.Em(),a.width);a.minWidth=Math.max(g+j.Bm(),a.minWidth);k=j.po;n=j.Uy;g=0;isNaN(k)||(g+=k);isNaN(n)||(g+=n);a.height=Math.max(g+j.Dm(),a.height);a.minHeight=Math.max(g+j.Do(),a.minHeight)}b=this.zb.Fh()+this.zb.wm();a.width+=b;a.minWidth+=b;b=this.zb.xm()+
this.zb.vx();a.height+=b;a.minHeight+=b;return a};a.prototype.Vw=function(a){this.fC(a);this.eC(a)};a.prototype.Vw=function(a){for(var b=this.zb.jd(),c=this.zb.hd(),j=0;j<a.length;j++){var k=a[j],e=k.zc,g=e.Kn;if(isNaN(g)){var l=e.OH;isNaN(l)||(g=Math.round(0.01*l*b))}l=e.pB;if(isNaN(l)){var r=e.PH;isNaN(r)||(l=Math.round(0.01*r*b))}var r=e.sp,p=e.bi;if(isNaN(p)){var s=e.vi;isNaN(s)?!isNaN(g)&&!isNaN(l)&&(p=b-g-l):p=Math.round(0.01*s*b)}s=e.po;if(isNaN(s)){var t=e.QH;isNaN(t)||(s=Math.round(0.01*
t*c))}t=e.Uy;if(isNaN(t)){var u=e.NH;isNaN(u)||(t=Math.round(0.01*u*c))}var u=e.tp,v=e.ys;if(isNaN(v)){var x=e.ui;isNaN(x)?!isNaN(s)&&!isNaN(t)&&(v=c-s-t):v=Math.round(0.01*x*c)}k.width=isNaN(p)?e.Em():Math.max(e.Bm(),Math.min(e.pK(),p));k.height=isNaN(v)?e.Dm():Math.max(e.Do(),Math.min(e.oK(),v));k.x=!isNaN(g)&&!isNaN(l)?Math.round(g+0.5*(b-l-g-k.width)):isNaN(g)?isNaN(l)?isNaN(r)?0:0.5*b+r-0.5*k.width:b-l-k.width:g;k.y=!isNaN(s)&&!isNaN(t)?Math.round(s+0.5*(c-t-s-k.height)):isNaN(s)?isNaN(t)?isNaN(u)?
0:0.5*c+u-0.5*k.height:c-t-k.height:s}};return a});
define("hg",["eD","bc","bF","cH"],function(a,b,c,e){a=a.extend(c,function(){c.call(this);this.Wz=this.Xz=this.Yz=this.Ms=this.Fn=this.Gn=this.$z=this.Wp=this.bi=m});a.prototype.Yta=function(a){this.bi!=a&&(this.bi=a,this.Mc())};a.prototype.hua=function(a){this.Gn!=a&&(this.Gn=a,this.Gn!=m&&(this.Wp=m),this.Mc())};a.prototype.gua=function(a){this.Fn!=a&&(this.Fn=a,this.Fn!=m&&(this.$z=m),this.Mc())};a.prototype.pua=function(a){this.Wp!=a&&(this.Wp=a,this.Gn!=m&&(this.Gn=m),this.Mc())};a.prototype.oua=
function(a){this.$z!=a&&(this.$z=a,this.Fn!=m&&(this.Fn=m),this.Mc())};a.prototype.mua=function(a){this.Ms!=a&&(this.Ms=a,this.Mc())};a.prototype.lua=function(a){this.Yz!=a&&(this.Yz=a,this.Mc())};a.prototype.kua=function(a){this.Xz!=a&&(this.Xz=a,this.Mc())};a.prototype.jua=function(a){this.Wz!=a&&(this.Wz=a,this.Mc())};a.prototype.qD=function(){for(var a=new e,b=this.iG(),c=0,j=0;j<b.length;j++)b[j].get("includeInLayout")&&c++;if(!isNaN(this.Wp)){isNaN(this.Ms)||(a.minWidth=this.Ms);for(j=0;j<b.length;j++){var k=
b[j].Bm();isNaN(k)||(a.minWidth=Math.max(k,a.minWidth))}}if(isNaN(this.Gn))for(j=0;j<b.length;j++)k=b[j].Em(),isNaN(k)||(a.width=Math.max(k,a.width));else a.width=this.Gn;if(isNaN(this.Fn))for(j=0;j<b.length;j++)k=b[j].Dm(),isNaN(k)||(a.height=Math.max(k,a.height));else a.height=this.Fn;isNaN(this.Wp)?isNaN(this.bi)?b=Math.ceil(Math.sqrt(c)):(b=this.bi-this.zb.Fh()-this.zb.wm(),b=Math.max(1,Math.floor((b+this.Bn)/(a.width+this.Bn)))):b=Math.max(1,Math.floor(100/this.Wp));c=Math.ceil(c/b);a.width=
a.width*b+Math.max(0,b-1)*this.Bn+this.zb.Fh()+this.zb.wm();a.minWidth=a.minWidth+this.zb.Fh()+this.zb.wm();a.height=a.height*c+Math.max(0,c-1)*this.It+this.zb.xm()+this.zb.vx();a.minHeight=0;return a};a.prototype.Vw=function(a){for(var f,c,j=[],k=[],e=0;e<a.length;e++)c=a[e].zc,c.get("includeInLayout")?j.push(a[e]):k.push(a[e]);var g=j.length,l=this.zb.jd(),r=this.Bn,p;if(isNaN(this.Gn))if(isNaN(this.Wp)){for(e=a=0;e<j.length;e++)c=j[e].zc,a=Math.max(c.Bm(),c.Em(),a);a=Math.min(l,a)}else{if(a=Math.max(1,
Math.floor(100/this.Wp)),a=(l-(a-1)*r)/a,e=y,!isNaN(this.Xz)&&this.Xz<a&&(a=this.Xz,e=o),!isNaN(this.Ms)&&this.Ms>a&&(a=this.Ms,e=o),e)a=Math.max(1,Math.floor((l+r)/(a+r))),a=(l-(a-1)*r)/a}else a=this.Gn;a=Math.max(1,a);p=Math.max(1,Math.floor(0.001+(l+r)/(a+r)));var e=p*a,s=p*(a+r)-r,t=0;if(l>=s)switch(this.gh){case b.Fa:t=l-s;break;case b.pc:t=Math.round(0.5*(l-s));break;default:t=0}for(var l=[],s=[],u=0;u<p;u++)c=Math.round(e/(p-u)),e-=c,s.push(t),t+=c+r,l.push(c);t=this.zb.hd();u=this.It;if(isNaN(this.Fn))if(isNaN(this.$z)){r=
1;for(e=0;e<j.length;e++)c=j[e].zc,r=Math.max(c.Do(),c.Dm(),r)}else{if(r=Math.max(1,100/this.$z),r=(t-(r-1)*u)/r,e=y,!isNaN(this.Wz)&&this.Wz<r&&(r=this.Wz,e=o),!isNaN(this.Yz)&&this.Yz>r&&(r=this.Yz,e=o),e)r=Math.max(1,Math.floor((t+u)/(r+u))),r=(t-(r-1)*u)/r}else r=this.Fn;e=Math.max(1,Math.ceil(g/p));f=e*r;var g=e*(r+u)-u,v=0;if(t>=g)switch(this.zh){case b.cb:v=t-g;break;case b.$b:v=Math.round(0.5*(t-g))}g=[];t=[];for(c=0;c<e;c++){var x=Math.round(f/(e-c));f-=x;t.push(v);v+=x+u;g.push(x)}for(e=
0;e<j.length;e++)f=j[e],u=e%p,c=Math.floor(e/p),f.x=s[u],f.width=l[u],f.y=t[c],f.height=g[c];for(e=0;e<k.length;e++)f=k[e],f.x=0,f.width=Math.round(a),f.y=0,f.height=Math.round(r)};return a});
define("hP",["eD","bc","bF","cH"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.qD=function(){for(var a=new e,b=this.iG(),c=0;c<b.length;c++){var j=b[c];a.height=Math.max(j.Dm(),a.height);a.minHeight=Math.max(j.Do(),a.minHeight);a.width+=j.Em();a.minWidth+=j.Bm()}b=Math.max(0,b.length-1)*this.Bn+this.zb.Fh()+this.zb.wm();a.width+=b;a.minWidth+=b;b=this.zb.xm()+this.zb.vx();a.height+=b;a.minHeight+=b;return a};a.prototype.Vw=function(a){this.fC(a);this.eC(a)};a.prototype.fC=
function(a){for(var b=0,c=0;c<a.length;c++)a[c].zc.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.Bn,j=this.zb.jd()-c,e=this.zb.hd(),b=j,n=0,g=[],c=0;c<a.length;c++){var l=a[c],r=l.zc,p=r.ui;l.height=isNaN(p)?r.Dm():Math.max(r.Do(),Math.min(r.oK(),Math.round(0.01*e*p)));p=r.vi;isNaN(p)?(l.width=r.Em(),b-=l.width):r.get("includeInLayout")?(n+=p,g.push(l)):l.width=Math.max(r.Bm(),Math.min(r.pK(),Math.round(0.01*j*p)))}c=Math.max(0,b-0.01*j*n);b-=c;do{a=y;j=Math.max(0,0<n?b/n:0);e=[];for(c=
n=0;c<g.length;c++){var l=g[c],r=l.zc,p=Math.round(r.vi*j),s=r.Bm(),t=r.pK();p<s?(l.width=s,b-=l.width,a=o):p>t?(l.width=t,b-=l.width,a=o):(n+=r.vi,e.push(l))}g=e}while(a);for(c=0;c<g.length;c++)l=g[c],r=l.zc,j=Math.max(0,0<n?b/n:0),l.width=Math.round(r.vi*j),b-=l.width,n-=r.vi};a.prototype.eC=function(a){for(var f=this.Bn,c=this.zb.jd(),j=this.zb.hd(),e=0,n=0,g=0;g<a.length;g++){var l=a[g];l.zc.get("includeInLayout")&&(e+=a[g].width,n++)}e+=f*(n-1);if(c>=e)switch(this.gh){case b.Fa:c-=e;break;case b.pc:c=
Math.round(0.5*(c-e));break;default:c=0}else c=0;for(g=0;g<a.length;g++)if(l=a[g],l.zc.get("includeInLayout")){if(j>=l.height)switch(this.zh){case b.cb:l.y=j-l.height;break;case b.$b:l.y=Math.round(0.5*(j-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("cm",["eD","bc","bF","cH"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.qD=function(){for(var a=new e,b=this.iG(),c=0;c<b.length;c++){var j=b[c];a.width=Math.max(j.Em(),a.width);a.minWidth=Math.max(j.Bm(),a.minWidth);a.height+=j.Dm();a.minHeight+=j.Do()}b=Math.max(0,b.length-1)*this.It+this.zb.xm()+this.zb.vx();a.height+=b;a.minHeight+=b;b=this.zb.Fh()+this.zb.wm();a.width+=b;a.minWidth+=b;return a};a.prototype.Vw=function(a){this.fC(a);this.eC(a)};a.prototype.fC=function(a){for(var b=
0,c=0;c<a.length;c++)a[c].zc.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.It,j=this.zb.jd(),e=this.zb.hd()-c,b=e,n=0,g=[],c=0;c<a.length;c++){var l=a[c],r=l.zc,p=r.vi;l.width=isNaN(p)?r.Em():Math.max(r.Bm(),Math.min(r.pK(),Math.round(0.01*j*p)));p=r.ui;isNaN(p)?(l.height=r.Dm(),b-=l.height):r.get("includeInLayout")?(n+=p,g.push(l)):l.height=Math.max(r.Do(),Math.min(r.oK(),Math.round(0.01*e*p)))}c=Math.max(0,b-0.01*e*n);b-=c;do{a=y;j=Math.max(0,0<n?b/n:0);e=[];for(c=n=0;c<g.length;c++){var l=
g[c],r=l.zc,p=Math.round(r.ui*j),s=r.Do(),t=r.oK();p<s?(l.height=s,b-=l.height,a=o):p>t?(l.height=t,b-=l.height,a=o):(n+=r.ui,e.push(l))}g=e}while(a);for(c=0;c<g.length;c++)l=g[c],r=l.zc,j=Math.max(0,0<n?b/n:0),l.height=Math.round(r.ui*j),b-=l.height,n-=r.ui};a.prototype.eC=function(a){for(var f=this.It,c=this.zb.jd(),e=this.zb.hd(),k=0,n=0,g=0;g<a.length;g++){var l=a[g];l.zc.get("includeInLayout")&&(k+=l.height,l.width>c&&(c=l.width),n++)}k+=f*(n-1);if(e>=k)switch(this.zh){case b.cb:e-=k;break;case b.$b:e=
Math.round(0.5*(e-k));break;default:e=0}else e=0;for(g=0;g<a.length;g++)if(l=a[g],l.zc.get("includeInLayout")){switch(this.gh){case b.Fa:l.x=c-l.width;break;case b.pc:l.x=Math.round(0.5*(c-l.width));break;default:l.x=0}l.y=e;e+=l.height+f}else l.x=0,l.y=0};return a});
define("n","eD,cV,d,J,bc,cd,c,cC,hg,hP,cm".split(","),function(a,b,c,e,d,f,i,j,k,n,g){var l=a.extend(c,function(){c.call(this);this.Dc("BaseContainer");this.qj=q;this.cc=[];this.qk=[];this.kz=f.FX;this.set("contentOpaque",y)});l.fb={children:[[]],childrenInteractionEnabled:o,gap:0,horizontalAlign:d.ka,itemHeight:m,itemMaxHeight:m,itemMaxWidth:m,itemMinHeight:m,itemMinWidth:m,itemWidth:m,layout:i.oL,verticalAlign:d.eb};b.defaults(l.fb,c.fb);l.prototype.ta=function(){this.jj(l.fb)};l.prototype.set=
function(a,b){a=="children"?this.Lh(b):a=="creationPolicy"?this.Rta(b):c.prototype.set.call(this,a,b)};l.prototype.get=function(a,b){return a=="children"?this.Ta():a=="creationPolicy"?this.kz:c.prototype.get.call(this,a,b)};l.prototype.Rta=function(a){if(this.kz!=a){this.kz=a;this.VT()}};l.prototype.Lh=function(a){for(var f=this.Ta(),a=a||[],c=b(f).difference(a),d=0;d<c.length;d++)this.removeChild(c[d]);f=b(a).difference(f);for(d=0;d<f.length;d++)this.ia(f[d]);for(d=0;d<a.length;d++)this.Ni(a[d],
d)};l.prototype.Ta=Q("cc");l.prototype.ia=function(a){a.getParent()&&a.getParent().removeChild(a);this.cc.push(a);a.S=this;this.l_(a);a.aT(this.wk);this.qk.push(a);this.VT();a.ik()};l.prototype.removeChild=function(a){if(a.getParent()==this){a.yi();a.S=q;if(b(this.qk).contains(a))this.qk=b.without(this.qk,a);else{a.Ab().detach();a.bm(q);this.La();this.oc()}this.cc=b.without(this.cc,a);a.DS()}};l.prototype.aaa=function(){b(this.Ta()).forEach(function(a){this.removeChild(a)})};l.prototype.ZC=function(a){return b(this.cc).indexOf(a)};
l.prototype.Ni=function(a,f){var c=this.ZC(a);c<0&&h("Can't set index. This is not a child of this container");var d=this.cc.slice();d.splice(c,1);d.splice(f,0,a);if(!b.isEqual(this.cc,d)){this.cc=d;if(!b(this.qk).contains(a)){c=this.ZC(a);a.Ab().detach();for(var g=d=q,e=c-1;e>=0&&!d;e--)b(this.qk).contains(this.cc[e])||(d=this.cc[e]);for(e=c+1;e<this.cc.length&&!g&&!d;e++)b(this.qk).contains(this.cc[e])||(g=this.cc[e]);d?a.Ab().insertAfter(d.Ab()):g?a.Ab().insertBefore(g.Ab()):this.Ja().XU(a.zn());
this.oc()}}};l.prototype.tt=function(a){c.prototype.tt.call(this,a);this.I7()};l.prototype.I7=function(){b(this.cc).forEach(function(a){this.l_(a)},this)};l.prototype.l_=function(a){a.set("inheritedInteractionEnabled",this.j("interactionEnabled")&&this.j("inheritedInteractionEnabled")&&this.j("childrenInteractionEnabled"))};l.prototype.Oy=function(){c.prototype.Oy.call(this);this.cc.forEach(function(a){a.Oy()})};l.prototype.ut=function(a){c.prototype.ut.call(this,a);b(this.cc).forEach(function(a){a.aT(this.wk)},
this)};l.prototype.vN=function(a){c.prototype.vN.call(this,a);b(this.Ta()).forEach(function(a){a.Ww()});this.VT()};l.prototype.bm=function(a){c.prototype.bm.call(this,a);b(this.Ta()).forEach(function(f){b(this.qk).contains(f)||f.bm(a)},this)};l.prototype.VT=function(){if((this.kz==f.FX&&this.Up||this.kz==f.Kr)&&this.qk.length>0){b(this.qk).forEach(function(a){this.Ja().XU(a.zn());a.bm(this.Pa())},this);this.qk=[];this.La();this.oc()}};l.prototype.JD=function(a){if(this.qj!=a){this.qj&&this.qj.Vaa(q);
(this.qj=a)&&this.qj.Vaa(this)}};l.prototype.fa=function(){var a=y,b=this.j("layout");if(this.n("layout")){switch(b){case i.ap:this.JD(new k);break;case i.$d:this.JD(new n);break;case i.Me:this.JD(new g);break;default:this.JD(new j)}this.o("layout");a=o}var f=this.qj;if(this.n("horizontalAlign")||a){f.by(this.j("horizontalAlign"));this.o("horizontalAlign")}if(this.n("verticalAlign")||a){f.ey(this.j("verticalAlign"));this.o("verticalAlign")}if(this.n("gap")||a){if(b==i.ap){f.Iaa(this.j("gap"));f.cL(this.j("gap"))}else b==
i.$d?f.Iaa(this.j("gap")):b==i.Me&&f.cL(this.j("gap"));this.o("gap")}if(b==i.ap){if(this.n("itemWidth")||a){var d=this.j("itemWidth"),l=e.Tj(d);l!==m?f.pua(l):f.hua(d);this.o("itemWidth")}if(this.n("itemHeight")||a){d=this.j("itemHeight");l=e.Tj(d);l!==m?f.oua(l):f.gua(d);this.o("itemHeight")}if(this.n("itemMinWidth")){f.mua(this.j("itemMinWidth"));this.o("itemMinWidth")}if(this.n("itemMinHeight")){f.lua(this.j("itemMinHeight"));this.o("itemMinHeight")}if(this.n("itemMaxWidth")){f.kua(this.j("itemMaxWidth"));
this.o("itemMaxWidth")}if(this.n("itemMaxHeight")){f.jua(this.j("itemMaxHeight"));this.o("itemMaxHeight")}}if(this.n("childrenInteractionEnabled")){this.o("childrenInteractionEnabled");this.I7()}this.Xa(["cursor"],{cursor:"inheritedCursor"},this.cc,o,y);c.prototype.fa.call(this);b==i.ap&&f.Yta(this.bi)};l.prototype.Xa=function(a,b,f,d,c){for(var g=0;g<a.length;g++){var e=a[g];if(!d||this.n(e)){for(var j=0;j<f.length;j++)f[j].set(b[e]?b[e]:e,this.j(e));c&&this.o(e)}}};l.prototype.On=function(){if(this.qj){var a=
this.qj.qD();this.lh=a.width;this.kh=a.height;this.nA=a.minWidth;this.mA=a.minHeight}else c.prototype.On.call(this)};l.prototype.Oh=function(){this.qj&&this.qj.update(this);c.prototype.Oh.call(this)};return l});
define("kf",["jquery.mod","eD","kr","eB"],function(a,b,c,e){function d(b,d){this.xv=b;this.yd="#000000";this.lb=0.5;this.W=10;this.zC=this.Hz=5;this.ad=d;this.zF=this.NR=this.Aa=0;this.g_=this.dd=this.aF=y;this.Z=o;this.nv=document.createElement("div");this.nv.setAttribute("tdvlayer","scrollbar");this.ez=a(this.nv);e.css(this.nv,{position:"absolute","z-index":c.SY});this.Qy=document.createElement("div");this.BN=a(this.Qy);e.css(this.Qy,{position:"absolute",left:0,top:0});this.ez.append(this.BN)}d.prototype.Fc=
function(){return this.ez.width()};d.prototype.qd=function(){return this.ez.height()};d.prototype.ya=function(a){this.Aa!=a&&(this.Aa=a,this.M5(),this.Z=o)};d.prototype.Bx=Q("Aa");d.prototype.setSize=function(a,b){this.NR=a;this.zF=b;this.M5();this.Z=o};d.prototype.jf=function(a){this.dd!=a&&(this.dd=a,this.Z=o)};d.prototype.zaa=function(a){this.aF!=a&&(this.aF=a,this.Z=o)};d.prototype.Zx=function(a){this.yd!=a&&(this.yd=a,this.Z=o)};d.prototype.Pi=function(a){this.lb!=a&&(this.lb=a,this.Z=o)};d.prototype.RD=
function(a){this.W!=a&&(this.W=a,this.Z=o)};d.prototype.Gaa=function(a){this.Hz!=a&&(this.Hz=a,this.Z=o)};d.prototype.Waa=function(a){this.zC!=a&&(this.zC=a,this.Z=o)};d.prototype.pe=function(){this.Z&&(this.g_!=this.dd&&(this.dd?this.ad.append(this.ez):this.ez.detach(),this.g_=this.dd),this.G(),this.Z=y)};d.prototype.G=function(){var a=Math.round(100*this.NR/this.zF),b=Math.round(100*this.Aa/this.zF);e.css(this.nv,{filter:"alpha(opacity="+Math.round(100*this.lb)+")",opacity:this.lb,display:this.dd?
"block":"none"});e.css(this.Qy,{backgroundColor:this.yd,"border-radius":Math.floor(this.W/2)+"px"});this.xv==d.$d?(e.css(this.nv,{left:this.Hz+"px",right:(this.aF?this.W:0)+this.Hz+"px",height:this.W+"px",bottom:this.zC+"px"}),e.css(this.Qy,{left:b+"%",width:a+"%",height:this.W+"px"})):(e.css(this.nv,{top:this.zC+"px",right:this.Hz+"px",width:this.W+"px",bottom:(this.aF?this.W:0)+this.zC+"px"}),e.css(this.Qy,{top:b+"%",width:this.W+"px",height:a+"%"}))};d.prototype.M5=function(){var a=this.zF-this.NR;
0>this.Aa?this.Aa=0:this.Aa>a&&(this.Aa=a)};d.$d="horizontal";d.Me="vertical";return d});define("eJ",["eD","kf"],function(a,b){return a.extend(b,function(a){b.call(this,b.$d,a)})});define("de",["eD","kf"],function(a,b){return a.extend(b,function(a){b.call(this,b.Me,a)})});
define("X",["require"],function(){function a(){}function b(f){var c=i;i=[];a.OV=o;var e=f-a.pd,e=1<e?100>e?e:100:1;a.pd=f;for(f=0;f<c.length;f++){var k=c[f];k.callback.call(k.context,e)}a.OV=y;j=0<i.length?d(b):m}var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||
window.msCancelAnimationFrame,d=c,f=e,i=[],j=m,k=y;a.Ha=function(a,f){for(var c=0;c<i.length;c++){var e=i[c];if(e.callback==a&&e.context==f)return}i.push({callback:a,context:f});!k&&j===m&&(j=d(b))};a.VW=function(a){k!=a&&((k=a)?j!==m&&(f(j),j=m):0<i.length&&(j=d(b)))};a.aL=function(a,g){a=a||c;g=g||e;d!=a&&(j!==m&&(f(j),j=a(b)),d=a,f=g)};a.zW=function(){a.aL(q,q)};a.pd=(new Date).getTime();a.OV=y;return a});
define("jP",[],function(){function a(a){var b={mV:function(b,d,c,g){c=0>=c?0:c>=g?1:c/g;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.gW=e(a);return b}function b(a){var b={mV:function(b,c,d,g){return b+(c-b)*(1-Math.pow(1-(0>=d?0:d>=g?1:d/g),a))}};b.gW=e(a);return b}function c(a){var b={mV:function(b,c,d,g){return b+(c-b)*Math.pow(0>=d?0:d>=g?1:d/g,a)}};b.gW=e(a);return b}function e(a){return function(b,c,d){b=Math.abs(c-b);return 1>b/d?0:1/(1-Math.pow((b-d)/b,
1/a))}}function d(f,d,e){this.Dg=q;switch(f){case "quad_in":this.Dg=c(2);break;case "quad_out":this.Dg=b(2);break;case "quad_in_out":this.Dg=a(2);break;case "cubic_in":this.Dg=c(3);break;case "cubic_out":this.Dg=b(3);break;case "cubic_in_out":this.Dg=a(3);break;case "quart_in":this.Dg=c(4);break;case "quart_out":this.Dg=b(4);break;case "quart_in_out":this.Dg=a(4);break;case "quint_in":this.Dg=c(5);break;case "quint_out":this.Dg=b(5);break;case "quint_in_out":this.Dg=a(5);break;default:this.Dg=c(1)}this.un=
d.slice();this.ec=0;this.Ob=this.Gp(d,e);this.SO={};for(f=0;f<this.un.length;f++)this.SO[this.un[f].name]=d[f].WC}d.prototype.era=function(){for(var a=0;a<this.un.length;a++)if("hfov"==this.un[a].name)return this.un[a];return q};d.prototype.nb=function(a){return this.SO[a]};d.prototype.me=function(){return this.ec>=this.Ob};d.prototype.$t=Q("Ob");d.prototype.setTime=function(a){this.ec=Math.min(Math.max(0,a),this.Ob);for(a=0;a<this.un.length;a++){var b=this.un[a];this.SO[b.name]=this.Dg.mV(b.WC,b.fL,
this.ec,this.Ob)}};d.prototype.Ua=function(a){this.setTime(this.ec+a)};d.prototype.Gp=function(a,b,d){for(var c=[],e=0;e<this.un.length;e++){var g=this.un[e],l=d?d:g.Fsa;l!==m&&0<l&&c.push(this.Dg.gW(g.WC,g.fL,l/1E3))}if(0<c.length){a=c[0];for(e=1;e<c.length;e++)a=Math.max(a,c[e]);return 0<b?Math.max(b,a):a}return 0<b?b:this.Gp(a,b,1E3)};return d});define("bq",[],function(){return function(a,b,c,e){this.name=a;this.WC=b;this.fL=c;this.Fsa=e}});
define("jM","require,cV,eD,kd,bS,fs,dN,n,eJ,de,X,jP,bq".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("fs"),i=a("dN"),j=a("n"),k=a("eJ"),n=a("de"),g=a("X"),l=a("jP"),r=a("bq"),p=c.extend(j,function(){j.call(this);this.Dc("Container");this.Rb=this.mc=this.Kd=this.ge=this.Ma=this.Da=this.u0=this.t0=0;this.AQ=this.GQ=this.nh=this.mh=y;this.n0=0;this.hO=this.gO=m;this.jO=this.iO=0;this.Bq=q;this.zH=f.aY;this.Lp=y;this.mG=q;this.im=y;this.yJ=q});p.fb={overflow:f.Pr,scrollBarColor:"#000000",
scrollBarWidth:10,scrollBarMargin:5,scrollBarHorizontalMargin:m,scrollBarVerticalMargin:m,scrollBarOpacity:0.5,scrollBarVisible:i.Ic};b.defaults(p.fb,j.fb);p.prototype.lj=function(){this.mG=new k(this.OP());this.mG.BN.bind("mousedown touchstart",b.bind(this.gia,this));this.lj=Q("mG");return this.mG};p.prototype.mj=function(){this.yJ=new n(this.OP());this.yJ.BN.bind("mousedown touchstart",b.bind(this.Apa,this));this.mj=Q("yJ");return this.yJ};p.prototype.scrollIntoView=function(a){var b=a.ba,b=Math.min(b,
Math.max(b+a.ua()-this.ge,this.mc)),f=a.ca,a=Math.min(f,Math.max(f+a.Za()-this.Kd,this.Rb));this.scrollTo(b,a)};p.prototype.scrollTo=function(a,b){var f=this.mc;a>this.mc?this.lF()&&(f=Math.min(a,this.Da-this.ge)):a<this.mc&&this.kF()&&(f=Math.max(a,0));var c=this.Rb;b>this.Rb?this.jF()&&(c=Math.min(b,this.Ma-this.Kd)):b<this.Rb&&this.mF()&&(c=Math.max(b,0));this.MB(f,c)};p.prototype.vaa=function(){if(this.jF()){for(var a=Math.max(0,this.Ma-this.Kd),b=Math.min(a,this.Rb+this.Kd*0.5),f=a=Math.min(a,
this.Rb+this.Kd),c=this.Ta().slice(),d=c.shift();c.length;d=c.shift())if(d.get("visible")){var g=d.ca;g+d.Za()>this.Rb+this.Kd&&g>=b&&g<a&&g<f&&(f=g)}this.MB(this.mc,f)}};p.prototype.jF=function(){return this.N_()&&this.Rb+this.Kd<this.Ma};p.prototype.xaa=function(){if(this.mF()){for(var a=Math.max(0,this.Rb-this.Kd),b=Math.max(0,this.Rb-this.Kd*0.5),f=a,c=this.Ta().slice(),d=c.shift();c.length;d=c.shift())if(d.get("visible")){var g=d.ca,d=g+d.Za();g<this.Rb&&d>=a+this.Kd&&d<b+this.Kd&&d>f+this.Kd&&
(f=d-this.Kd)}this.MB(this.mc,f)}};p.prototype.mF=function(){return this.N_()&&this.Rb>0};p.prototype.waa=function(){if(this.lF()){for(var a=Math.max(0,this.Da-this.ge),b=Math.min(a,this.mc+this.ge*0.5),f=a=Math.min(a,this.mc+this.ge),d=this.Ta().slice(),c=d.shift();d.length;c=d.shift())if(c.get("visible")){var g=c.ba;g+c.ua()>this.mc+this.ge&&g>=b&&g<a&&g<f&&(f=g)}this.MB(f,this.Rb)}};p.prototype.lF=function(){return this.M_()&&this.mc+this.ge<this.Da};p.prototype.scrollLeft=function(){if(this.kF()){for(var a=
Math.max(0,this.mc-this.ge),b=Math.max(0,this.mc-this.ge*0.5),f=a,c=this.Ta().slice(),d=c.shift();c.length;d=c.shift())if(d.get("visible")){var g=d.ba,d=g+d.ua();g<this.mc&&d>=a+this.ge&&d<b+this.ge&&d>f+this.ge&&(f=d-this.ge)}this.MB(f,this.Rb)}};p.prototype.kF=function(){return this.M_()&&this.mc>0};p.prototype.MB=function(a,b){this.mh=this.mc!=a;this.nh=this.Rb!=b;this.gm();this.Bq=new l("cubic_in_out",[new r("hScrollPosition",this.mc,a),new r("vScrollPosition",this.Rb,b)],500);g.Ha(this.lN,this)};
p.prototype.N_=function(){return this.im&&this.Kd<this.Ma};p.prototype.M_=function(){return this.Lp&&this.ge<this.Da};p.prototype.ta=function(){this.jj(p.fb)};p.prototype.efa=function(){this.GQ=o;this.gm()};p.prototype.dfa=function(){this.GQ=y;this.gm()};p.prototype.gia=function(){this.mh=o};p.prototype.Apa=function(){this.nh=o};p.prototype.afa=function(a){if(this.mh||this.nh){this.Pa().bind(e.qc,this.l0,this);this.Pa().bind(e.Lb,this.m0,this);this.wp=a.pageX;this.xp=a.pageY;this.gm()}else this.o0(a)};
p.prototype.l0=function(a){if(this.mh){var b=(a.pageX-this.wp)*this.Da/this.lj().Fc();this.mc=this.mc+b}else if(this.nh){b=(a.pageY-this.xp)*this.Ma/this.mj().qd();this.Rb=this.Rb+b}this.wp=a.pageX;this.xp=a.pageY;this.uo()};p.prototype.m0=function(){this.Pa().unbind(e.qc,this.l0,this);this.Pa().unbind(e.Lb,this.m0,this);this.nh=this.mh=y;this.gm()};p.prototype.P_=function(a){return this.im&&(a>0&&this.Rb>0||a<0&&this.Rb<this.Ma-this.Kd)?o:y};p.prototype.cfa=function(a){if(this.im){this.Rb=this.Rb-
a.yo*this.Kd*0.1;this.uo()}};p.prototype.o0=function(a){if(this.Lp||this.im){this.Pa().bind(e.qc,this.p0,this);this.Pa().bind(e.Lb,this.q0,this);this.AQ=o;this.wp=a.pageX;this.xp=a.pageY;this.gm();this.yia()}};p.prototype.p0=function(a){var b=a.pageX-this.wp,f=a.pageY-this.xp;if(!this.mh&&!this.nh&&b*b+f*f>25){this.mh=this.Lp;this.nh=this.im;this.gm()}if(this.mh||this.nh){this.mc=this.mc-b;this.Rb=this.Rb-f;this.wp=a.pageX;this.xp=a.pageY;this.uo();this.Voa()}};p.prototype.q0=function(){this.Pa().unbind(e.qc,
this.p0,this);this.Pa().unbind(e.Lb,this.q0,this);this.AQ=y;this.gm();var a=Math.max(Math.abs(this.iO/0.001),Math.abs(this.jO/0.001));this.Bq=new l("linear",[new r("hScrollPosition",this.mc,this.mc-0.5*this.iO*a),new r("vScrollPosition",this.Rb,this.Rb-0.5*this.jO*a)],a);g.Ha(this.lN,this)};p.prototype.yia=function(){this.gO=this.wp;this.hO=this.xp};p.prototype.Voa=function(){var a=(new Date).getTime(),b=a-this.n0;if(b>10){this.n0=a;this.iO=(this.wp-this.gO)/b;this.jO=(this.xp-this.hO)/b;this.gO=
this.wp;this.hO=this.xp}};p.prototype.lN=function(a){if(this.Bq&&!this.Bq.me()&&(this.mh||this.nh)){this.Bq.Ua(a);if(this.mh){this.mc=this.Bq.nb("hScrollPosition");if(this.mc<0||this.mc>this.Da-this.ge)this.mh=y}if(this.nh){this.Rb=this.Bq.nb("vScrollPosition");if(this.Rb<0||this.Rb>this.Ma-this.Kd)this.nh=y}this.uo();g.Ha(this.lN,this)}else{this.nh=this.mh=y;this.Bq=q;this.gm()}};p.prototype.uo=function(){this.mc=this.Lp?Math.max(0,Math.min(this.Da-this.ge,this.mc)):0;this.Rb=this.im?Math.max(0,
Math.min(this.Ma-this.Kd,this.Rb)):0;this.lj().ya(this.mc);this.mj().ya(this.Rb);this.Ja().aua(this.mc);this.Ja().Sua(this.Rb);this.Qg();if(this.d5!=this.mc||this.e5!=this.Rb){this.d5!==m&&this.e5!==m&&this.trigger(new d(e.Bl));this.d5=this.mc;this.e5=this.Rb}};p.prototype.gm=function(){var a;a=this.get("scrollBarVisible")==i.ALWAYS?o:this.pj?this.mh||this.nh||this.AQ:this.mh||this.nh||this.GQ;this.lj().jf(this.Lp&&a);this.mj().jf(this.im&&a);this.Qg()};p.prototype.Ba=function(){j.prototype.Ba.call(this);
if(!this.bfa){this.bfa=o;if(this.pj)this.bind(e.ob,this.o0,this);else{this.bind(e.ob,this.afa,this);this.bind(e.Ic,this.efa,this);this.bind(e.jc,this.dfa,this);this.bind(e.cp,this.cfa,this)}}};p.prototype.fa=function(){if(this.n("overflow")){this.zH=this.j("overflow");this.o("overflow");this.oc()}if(this.n("scrollBarColor")){this.lj().Zx(this.j("scrollBarColor"));this.mj().Zx(this.j("scrollBarColor"));this.o("scrollBarColor")}if(this.n("scrollBarWidth")){this.lj().RD(this.j("scrollBarWidth"));this.mj().RD(this.j("scrollBarWidth"));
this.o("scrollBarWidth")}if(this.n("scrollBarMargin")||this.n("scrollBarVerticalMargin")||this.n("scrollBarHorizontalMargin")){var a=this.j("scrollBarHorizontalMargin","scrollBarMargin"),b=this.j("scrollBarVerticalMargin","scrollBarMargin");this.lj().Gaa(a);this.lj().Waa(b);this.mj().Gaa(a);this.mj().Waa(b);this.o("scrollBarMargin");this.o("scrollBarVerticalMargin");this.o("scrollBarHorizontalMargin")}if(this.n("scrollBarOpacity")){this.lj().Pi(this.j("scrollBarOpacity"));this.mj().Pi(this.j("scrollBarOpacity"));
this.o("scrollBarOpacity")}j.prototype.fa.call(this)};p.prototype.Oh=function(){j.prototype.Oh.call(this);this.Xoa();this.jpa();this.hpa();this.gm();this.Qg()};p.prototype.Xoa=function(){for(var a=0,b=0,f=0,d=0,c=this.Ta(),g=0;g<c.length;g++){var e=c[g];if(e.get("visible")){d=Math.min(d,e.ba);f=Math.min(f,e.ca);a=Math.max(a,e.ba+e.ua());b=Math.max(b,e.ca+e.Za())}}this.t0=d;this.u0=f;this.Da=a;this.Ma=b};p.prototype.jpa=function(){if(this.zH==f.Pr){this.ge=this.Da;this.Kd=this.Ma}else{this.ge=Math.min(this.jd(),
this.Da);this.Kd=Math.min(this.hd(),this.Ma)}};p.prototype.hpa=function(){var a=this.t0<0||this.u0<0||this.Da>this.ge||this.Ma>this.Kd;if(this.zH==f.Bl){this.Lp=this.ge<this.Da;var b=(this.im=this.Kd<this.Ma)&&this.Lp;this.lj().setSize(this.ge,this.Da);this.lj().zaa(b);this.mj().setSize(this.Kd,this.Ma);this.mj().zaa(b);this.Ja().cy(!a)}else{this.im=this.Lp=y;this.zH==f.Pr?this.Ja().cy(o):this.Ja().cy(!a)}this.uo()};p.prototype.pe=function(){this.mj().pe();this.lj().pe();j.prototype.pe.call(this)};
return p});define("N",[],function(){return{Me:"vertical",$d:"horizontal"}});define("dn",["require"],function(){return{Vq:function(a){return!a?"":a.split(",").map(function(a){return a.trim()}).filter(function(a){return""!=a}).map(function(a){"'"!=a[0]&&'"'!=a[0]&&(a="'"+a+"'");return a}).join(", ")}}});
define("gj","require,jquery.mod,cV,eD,bc,N,d,eB,dn".split(","),function(a){function b(a){var b=a.Ai.width(),f=a.Ai.height();a.get("fontStyle")=="italic"&&(b=b+f*1/5);return Math.round(b)}var c=a("jquery.mod"),e=a("cV"),d=a("eD"),f=a("bc"),i=a("N"),j=a("d");a("eB");var k=a("dn"),a=d.extend(j,function(){j.call(this);this.Dc("Label");this.Ai=this.HB=q});a.fb={};a.prototype.ta=function(){j.prototype.ta.call(this);this.f("fontFamily");this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");
this.f("horizontalAlign",f.ka);this.f("verticalAlign",f.$b);this.f("direction",i.$d);this.f("text","");this.f("textDecoration");this.f("textShadowBlurRadius",3);this.f("textShadowColor","#000000");this.f("textShadowHorizontalLength",0);this.f("textShadowOpacity",0);this.f("textShadowVerticalLength",0)};a.prototype.Ba=function(){j.prototype.Ba.call(this);if(!this.Ai){this.HB=document.createElement("span");this.Ai=c(this.HB);this.pT({position:"absolute","text-align":"center",cursor:"inherit","white-space":"nowrap",
transform:"translate3d(0, 0, 0)"});var a=this.Ja();a.cy(y);a.append(this.Ai)}};a.prototype.On=function(){j.prototype.On.call(this);var a=this.Ja();this.lh=b(this)+a.xx()+a.Dx();this.kh=this.Ai.height()+a.Ex()+a.tx();n(this)};a.prototype.fa=function(){var a,b={};if(this.n("direction")||this.n("text")){switch(this.j("direction")){case i.Me:b["line-height"]="100%";this.Ai.html(this.Ai.text(this.j("text")).text().split("").join("<br/>"));break;default:b["line-height"]="normal";this.Ai.text(this.j("text"));
this.Ai.html(this.Ai.html().split(" ").join("&nbsp;"))}this.o("direction");this.o("text");setTimeout(function(){this.La();this.oc()}.bind(this),0)}if(this.n("fontFamily")){a=this.j("fontFamily");e(a).isString()||(a="");b.fontFamily=k.Vq(a);this.o("fontFamily");this.La();this.oc()}if(this.n("fontSize")){a=this.j("fontSize");e(a).isNumber()?a=a+"px":e(a).isString()||(a="");b.fontSize=a;this.o("fontSize");this.La();this.oc()}if(this.n("fontColor")){a=this.j("fontColor");e(a).isString()||(a="");b.color=
a;this.o("fontColor")}if(this.n("fontWeight")){a=this.j("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.o("fontWeight");this.La();this.oc()}if(this.n("fontStyle")){a=this.j("fontStyle");switch(a){case "italic":case "normal":break;default:a="normal"}b.fontStyle=a;this.o("fontStyle");this.La();this.oc()}if(this.n("textDecoration")){a=
this.j("textDecoration");switch(a){case "underline":case "overline":case "line-through":case "none":break;default:a="none"}b.textDecoration=a;this.o("textDecoration");this.La();this.oc()}if(this.n("horizontalAlign")){this.oc();this.o("horizontalAlign")}if(this.n("verticalAlign")){this.oc();this.o("verticalAlign")}a=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(e(a).any(function(a){return this.n(a)},this)){var f={};e(a).each(function(a){f[a]=
this.j(a);this.o(a)},this);b["-moz-text-shadow"]=b["-webkit-text-shadow"]=b["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(" ");a=f.textShadowVerticalLength==0&&this.j("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(f.textShadowHorizontalLength,
-f.textShadowVerticalLength)/Math.PI)*45;b.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*f.textShadowOpacity).toString(16)).slice(-2)+f.textShadowColor.substr(1,6)+",direction="+a+")";this.Ja().cy((f.textShadowHorizontalLength>0||f.textShadowVerticalLength>0||f.textShadowBlurRadius>0)&&f.textShadowOpacity>0)}this.pT(b);j.prototype.fa.call(this)};a.prototype.Oh=function(){var a={left:"auto",right:"auto",top:"auto",bottom:"auto"};switch(this.j("horizontalAlign")){case f.ka:a.left=
"0";break;case f.Fa:this.pe();a.left=this.jd()-b(this)+"px";break;case f.pc:this.pe();a.left=Math.max(0,Math.round((this.jd()-b(this))*0.5))+"px"}switch(this.j("verticalAlign")){case f.eb:a.top="0";break;case f.cb:this.pe();a.top=this.hd()-this.HB.clientHeight+"px";break;case f.$b:this.pe();a.top=Math.max(0,Math.round((this.hd()-this.HB.clientHeight)*0.5))+"px"}this.pT(a)};a.prototype.pT=function(a){var b=this.HB.style,f;for(f in a)b[f]=a[f]};var n=function(){function a(){!e&&f()&&(e=setTimeout(function(){e=
q;var f=(new Date).getTime()-5E3,d;for(d in c){var j=c[d];j.timestamp<f&&delete c[d];var k=j.label;if(j.width!=b(k)||j.height!=k.Ai.height()){k.La();k.oc()}}a()},500))}function f(){for(var a in c)return o;return y}var d=1,c={},e=q;return function(f){f.d3||(f.d3=d++);c[f.d3]={label:f,timestamp:(new Date).getTime(),width:b(f),height:f.Ai.height()};a()}}();return a});
define("ik","require,eD,cV,cd,S,kd,bS,fb,cU,fs,eK,jM,gj".split(","),function(a){var b=a("eD"),c=a("cV"),e=a("cd"),d=a("S"),f=a("kd"),i=a("bS"),j=a("fb"),k=a("cU"),n=a("fs"),g=a("eK"),l=a("jM"),r=a("gj"),p=b.extend(l,function(){this.Dc("Button");l.call(this);this.rf=this.la=q;this.set("childrenInteractionEnabled",y);this.set("contentOpaque",o);this.set("creationPolicy",e.Kr);this.set("overflow",n.aY);this.set("autoRolledOver",o);this.set("autoPressed",o);this.set("cursor",d.Qd)});p.prototype.ta=function(){l.prototype.ta.call(this);
this.f("label");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");this.f("layout","horizontal");this.f("iconWidth");this.f("iconHeight");this.f("iconBeforeLabel");this.f("gap",5);this.f("mode",k.Hc);this.f("buttonGroup");this.f("paddingLeft",5);this.f("paddingTop",5);
this.f("paddingRight",5);this.f("paddingBottom",5);this.f("pressed");this.h("rollOverOpacity",g.t,"opacity");this.h("rollOverIconWidth",g.t,"iconWidth");this.h("rollOverIconHeight",g.t,"iconHeight");this.h("rollOverFontSize",g.t,"fontSize");this.h("rollOverFontColor",g.t,"fontColor");this.h("rollOverFontWeight",g.t,"fontWeight");this.h("rollOverFontStyle",g.t,"fontStyle");this.h("rollOverTextDecoration",g.t,"textDecoration");this.h("rollOverTextShadowBlurRadius",g.t,"textShadowBlurRadius");this.h("rollOverTextShadowColor",
g.t,"textShadowColor");this.h("rollOverTextShadowHorizontalLength",g.t,"textShadowHorizontalLength");this.h("rollOverTextShadowOpacity",g.t,"textShadowOpacity");this.h("rollOverTextShadowVerticalLength",g.t,"textShadowVerticalLength");this.h("rollOverBorderSize",g.t,"borderSize");this.h("rollOverBorderLeftSize",g.t,"borderLeftSize");this.h("rollOverBorderTopSize",g.t,"borderTopSize");this.h("rollOverBorderRightSize",g.t,"borderRightSize");this.h("rollOverBorderBottomSize",g.t,"borderBottomSize");
this.h("rollOverBorderColor",g.t,"borderColor");this.h("rollOverBorderLeftColor",g.t,"borderLeftColor");this.h("rollOverBorderTopColor",g.t,"borderTopColor");this.h("rollOverBorderRightColor",g.t,"borderRightColor");this.h("rollOverBorderBottomColor",g.t,"borderBottomColor");this.h("rollOverShadow",g.t,"shadow");this.h("rollOverShadowHorizontalLength",g.t,"shadowHorizontalLength");this.h("rollOverShadowVerticalLength",g.t,"shadowVerticalLength");this.h("rollOverShadowBlurRadius",g.t,"shadowBlurRadius");
this.h("rollOverShadowSpread",g.t,"shadowSpread");this.h("rollOverShadowOpacity",g.t,"shadowOpacity");this.h("rollOverShadowColor",g.t,"shadowColor");this.h("rollOverBackgroundOpacity",g.t,"backgroundOpacity");this.h("rollOverBackgroundColor",g.t,"backgroundColor");this.h("rollOverBackgroundColorRatios",g.t,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",g.t,"backgroundColorDirection");this.h("pressedLabel",g.va,"label");this.h("pressedOpacity",g.va,"opacity");this.h("pressedIconWidth",
g.va,"iconWidth");this.h("pressedIconHeight",g.va,"iconHeight");this.h("pressedFontSize",g.va,"fontSize");this.h("pressedFontColor",g.va,"fontColor");this.h("pressedFontWeight",g.va,"fontWeight");this.h("pressedFontStyle",g.va,"fontStyle");this.h("pressedTextDecoration",g.va,"textDecoration");this.h("pressedTextShadowBlurRadius",g.va,"textShadowBlurRadius");this.h("pressedTextShadowColor",g.va,"textShadowColor");this.h("pressedTextShadowHorizontalLength",g.va,"textShadowHorizontalLength");this.h("pressedTextShadowOpacity",
g.va,"textShadowOpacity");this.h("pressedTextShadowVerticalLength",g.va,"textShadowVerticalLength");this.h("pressedBorderSize",g.va,"borderSize");this.h("pressedBorderLeftSize",g.va,"borderLeftSize");this.h("pressedBorderTopSize",g.va,"borderTopSize");this.h("pressedBorderRightSize",g.va,"borderRightSize");this.h("pressedBorderBottomSize",g.va,"borderBottomSize");this.h("pressedBorderColor",g.va,"borderColor");this.h("pressedBorderLeftColor",g.va,"borderLeftColor");this.h("pressedBorderTopColor",
g.va,"borderTopColor");this.h("pressedBorderRightColor",g.va,"borderRightColor");this.h("pressedBorderBottomColor",g.va,"borderBottomColor");this.h("pressedShadow",g.va,"shadow");this.h("pressedShadowHorizontalLength",g.va,"shadowHorizontalLength");this.h("pressedShadowVerticalLength",g.va,"shadowVerticalLength");this.h("pressedShadowBlurRadius",g.va,"shadowBlurRadius");this.h("pressedShadowSpread",g.va,"shadowSpread");this.h("pressedShadowOpacity",g.va,"shadowOpacity");this.h("pressedShadowColor",
g.va,"shadowColor");this.h("pressedBackgroundOpacity",g.va,"backgroundOpacity");this.h("pressedBackgroundColor",g.va,"backgroundColor");this.h("pressedBackgroundColorRatios",g.va,"backgroundColorRatios");this.h("pressedBackgroundColorDirection",g.va,"backgroundColorDirection");this.h("pressedLabel",g.Va,"label");this.h("pressedRollOverOpacity",g.Va,"opacity");this.h("pressedRollOverIconWidth",g.Va,"iconWidth");this.h("pressedRollOverIconHeight",g.Va,"iconHeight");this.h("pressedRollOverFontSize",
g.Va,"fontSize");this.h("pressedRollOverFontColor",g.Va,"fontColor");this.h("pressedRollOverFontWeight",g.Va,"fontWeight");this.h("pressedRollOverFontStyle",g.Va,"fontStyle");this.h("pressedRollOverTextDecoration",g.Va,"textDecoration");this.h("pressedRollOverTextShadowBlurRadius",g.Va,"textShadowBlurRadius");this.h("pressedRollOverTextShadowColor",g.Va,"textShadowColor");this.h("pressedRollOverTextShadowHorizontalLength",g.Va,"textShadowHorizontalLength");this.h("pressedRollOverTextShadowOpacity",
g.Va,"textShadowOpacity");this.h("pressedRollOverTextShadowVerticalLength",g.Va,"textShadowVerticalLength");this.h("pressedRollOverBorderSize",g.Va,"borderSize");this.h("pressedRollOverBorderLeftSize",g.Va,"borderLeftSize");this.h("pressedRollOverBorderTopSize",g.Va,"borderTopSize");this.h("pressedRollOverBorderRightSize",g.Va,"borderRightSize");this.h("pressedRollOverBorderBottomSize",g.Va,"borderBottomSize");this.h("pressedRollOverBorderColor",g.Va,"borderColor");this.h("pressedRollOverBorderLeftColor",
g.Va,"borderLeftColor");this.h("pressedRollOverBorderTopColor",g.Va,"borderTopColor");this.h("pressedRollOverBorderRightColor",g.Va,"borderRightColor");this.h("pressedRollOverBorderBottomColor",g.Va,"borderBottomColor");this.h("pressedRollOverShadow",g.Va,"shadow");this.h("pressedRollOverShadowHorizontalLength",g.Va,"shadowHorizontalLength");this.h("pressedRollOverShadowVerticalLength",g.Va,"shadowVerticalLength");this.h("pressedRollOverShadowBlurRadius",g.Va,"shadowBlurRadius");this.h("pressedRollOverShadowSpread",
g.Va,"shadowSpread");this.h("pressedRollOverShadowOpacity",g.Va,"shadowOpacity");this.h("pressedRollOverShadowColor",g.Va,"shadowColor");this.h("pressedRollOverBackgroundOpacity",g.Va,"backgroundOpacity");this.h("pressedRollOverBackgroundColor",g.Va,"backgroundColor");this.h("pressedRollOverBackgroundColorRatios",g.Va,"backgroundColorRatios");this.h("pressedRollOverBackgroundColorDirection",g.Va,"backgroundColorDirection")};p.prototype.tO=E();p.prototype.Ba=function(){l.prototype.Ba.call(this);if(!this.rf){this.rf=
this.tO();this.ia(this.rf)}if(!this.la){this.la=new r;this.ia(this.la)}};p.prototype.Wy=function(){if(this.get("pressed")){this.set("pressed",y);this.trigger(new i(f.Wg))}else{this.set("pressed",o);this.trigger(new i(f.Wf))}};p.prototype.fa=function(){var a=y;if(this.n("mode")){if(this.j("mode")==k.Hc){this.unbind(f.U,this.Wy,this,o);this.set("autoPressed",o)}else{this.bind(f.U,this.Wy,this,o);this.set("autoPressed",y)}this.o("mode");a=o}if(a||this.n("pressed"))this.j("mode")==k.Xg?this.Hw(this.j("pressed")==
o):a&&this.Hw(y);if(this.n("label")){a=this.j("label");this.la.set("text",a);this.la.set("visible",a?o:y);this.o("label")}this.Xa(p.DZ,p.EZ,[this.la],o,o);if(this.n("iconBeforeLabel")){this.j("iconBeforeLabel")==y?this.Ni(this.la,0):this.Ni(this.rf,0);this.o("iconBeforeLabel")}if(this.n("iconWidth")){this.rf.set("width",this.j("iconWidth"));this.o("iconWidth")}if(this.n("iconHeight")){this.rf.set("height",this.j("iconHeight"));this.o("iconHeight")}if(this.n("buttonGroup")){(a=this.j("buttonGroup"))?
j.register(this,a):j.$D(this);this.o("buttonGroup")}this.Xa(["horizontalAlign","verticalAlign"],{},[this.rf],o,y);l.prototype.fa.call(this)};p.DZ=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];p.EZ={};c(p.DZ).each(function(a){p.EZ[a]=a});return p});
define("gG",["require","eD","ik","dx","kd"],function(a){var b=a("eD"),c=a("ik"),e=a("dx"),a=a("kd"),b=b.extend(c,function(){c.call(this)});e.A("BaseButton",b).B("UIComponent").R({label:"string",gap:"number",horizontalAlign:"enum[center, left, right]",iconBeforeLabel:"bool",layout:"enum[horizontal, vertical]",mode:"enum[push, toggle]",buttonGroup:"string",verticalAlign:"enum[bottom, middle, top]",iconWidth:"or[number, percent]",iconHeight:"or[number, percent]",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]",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",textShadowColor:"color",textShadowHorizontalLength:"number",textShadowOpacity:"number",textShadowVerticalLength:"number",rollOverIconWidth:"or[number, percent]",rollOverIconHeight:"or[number, percent]",rollOverFontFamily:"string",rollOverFontSize:"or[number, size]",
rollOverFontColor:"color",rollOverFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",rollOverFontStyle:"enum[italic, normal]",rollOverTextDecoration:"enum[underline, overline, line-through, none]",rollOverTextShadowBlurRadius:"number",rollOverTextShadowColor:"color",rollOverTextShadowHorizontalLength:"number",rollOverTextShadowOpacity:"number",rollOverTextShadowVerticalLength:"number",rollOverBorderSize:"number",rollOverBorderLeftSize:"number",rollOverBorderTopSize:"number",
rollOverBorderRightSize:"number",rollOverBorderBottomSize:"number",rollOverBorderColor:"color",rollOverBorderLeftColor:"color",rollOverBorderTopColor:"color",rollOverBorderRightColor:"color",rollOverBorderBottomColor:"color",rollOverShadow:"bool",rollOverShadowHorizontalLength:"number",rollOverShadowVerticalLength:"number",rollOverShadowBlurRadius:"number",rollOverShadowSpread:"number",rollOverShadowColor:"color",rollOverShadowOpacity:"number",rollOverBackgroundOpacity:"number",rollOverBackgroundColor:"or[array[color], color]",
rollOverBackgroundColorRatios:"array[number]",rollOverBackgroundColorDirection:"enum[horizontal, vertical]",pressed:"bool",pressedLabel:"string",pressedIconWidth:"or[number, percent]",pressedIconHeight:"or[number, percent]",pressedFontFamily:"string",pressedFontSize:"or[number, size]",pressedFontColor:"color",pressedFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",pressedFontStyle:"enum[italic, normal]",pressedTextDecoration:"enum[underline, overline, line-through, none]",
pressedTextShadowBlurRadius:"number",pressedTextShadowColor:"color",pressedTextShadowHorizontalLength:"number",pressedTextShadowOpacity:"number",pressedTextShadowVerticalLength:"number",pressedOpacity:"number",pressedBorderSize:"number",pressedBorderLeftSize:"number",pressedBorderTopSize:"number",pressedBorderRightSize:"number",pressedBorderBottomSize:"number",pressedBorderColor:"color",pressedBorderLeftColor:"color",pressedBorderTopColor:"color",pressedBorderRightColor:"color",pressedBorderBottomColor:"color",
pressedShadow:"bool",pressedShadowHorizontalLength:"number",pressedShadowVerticalLength:"number",pressedShadowBlurRadius:"number",pressedShadowSpread:"number",pressedShadowOpacity:"number",pressedShadowColor:"color",pressedBackgroundOpacity:"number",pressedBackgroundColor:"or[array[color], color]",pressedBackgroundColorRatios:"array[number]",pressedBackgroundColorDirection:"enum[horizontal, vertical]",pressedRollOverIconWidth:"or[number, percent]",pressedRollOverIconHeight:"or[number, percent]",pressedRollOverFontFamily:"string",
pressedRollOverFontSize:"or[number, size]",pressedRollOverFontColor:"color",pressedRollOverFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",pressedRollOverFontStyle:"enum[italic, normal]",pressedRollOverTextDecoration:"enum[underline, overline, line-through, none]",pressedRollOverTextShadowBlurRadius:"number",pressedRollOverTextShadowColor:"color",pressedRollOverTextShadowHorizontalLength:"number",pressedRollOverTextShadowOpacity:"number",pressedRollOverTextShadowVerticalLength:"number",
pressedRollOverOpacity:"number",pressedRollOverBorderSize:"number",pressedRollOverBorderLeftSize:"number",pressedRollOverBorderTopSize:"number",pressedRollOverBorderRightSize:"number",pressedRollOverBorderBottomSize:"number",pressedRollOverBorderColor:"color",pressedRollOverBorderLeftColor:"color",pressedRollOverBorderTopColor:"color",pressedRollOverBorderRightColor:"color",pressedRollOverBorderBottomColor:"color",pressedRollOverShadow:"bool",pressedRollOverShadowHorizontalLength:"number",pressedRollOverShadowVerticalLength:"number",
pressedRollOverShadowBlurRadius:"number",pressedRollOverShadowSpread:"number",pressedRollOverShadowOpacity:"number",pressedRollOverShadowColor:"color",pressedRollOverBackgroundOpacity:"number",pressedRollOverBackgroundColor:"or[array[color], color]",pressedRollOverBackgroundColorRatios:"array[number]",pressedRollOverBackgroundColorDirection:"enum[horizontal, vertical]"}).To(["fontSize","rollOverFontSize","pressedFontSize","pressedRollOverFontSize"]).fc([a.Wf,a.Wg]).Rg([a.U]);return b});
define("iw",[],function(){return{NONE:"none",Sm:"fill",qe:"fit_inside",xl:"fit_outside",ek:"fit_to_width",yg:"fit_to_height",Fba:"custom"}});
define("iL","require,cV,jquery.mod,eD,kd,fB,u,bc,iw,d,eB,hn".split(","),function(a){function b(a){this.NN=a;this.Nc=[];this.$g=q}var c=a("cV"),e=a("jquery.mod"),d=a("eD"),f=a("kd"),i=a("fB"),j=a("u"),k=a("bc"),n=a("iw"),g=a("d"),l=a("eB"),r=a("hn");b.ii=document.createElement("a");b.prototype.Zea=function(a){b.ii.href=a;return b.ii.href};b.prototype.load=function(a,b,d){a=this.Zea(a);if(this.$g&&!this.$g.Go()){this.$g.cancel();this.Nc=c(this.Nc).without(this.$g)}if(this.$g=c(this.Nc).find(function(b){return b.Gh()==
a}))this.Nc=c(this.Nc).without(this.$g);else{this.$g=new r(i.UY);this.$g.load(a)}for(this.Nc.splice(0,0,this.$g);this.Nc.length>this.NN;)this.Nc.pop().cancel();if(b){var g=this.$g,e=function(){b.call(d||window,g.Bd(),g.Fc(),g.qd())};this.$g.Go()?e():this.$g.bind(f.T,e)}};b.prototype.clear=function(){this.Nc.forEach(function(a){a.cancel()});this.$g=q};a=d.extend(g,function(a){g.call(this);this.Dc("Image");this.NN=a||1;this.wU=y;this.gh=k.ka;this.nG=y;this.zh=k.eb;this.BJ=y;this.cd=n.NONE;this.LS=y;
this.iw=this.jw=0;this.rQ=this.JR=y;this.Ma=this.Da=0;this.rn=y;this.ZQ=this.hh=this.kb=this.tG=this.sG=q;this.bind(f.pb,this.wia,this);this.bind(f.Le,this.xia,this)});a.prototype.NP=function(){this.ZQ=new b(this.NN);this.NP=Q("ZQ");return this.ZQ};a.prototype.ta=function(){g.prototype.ta.call(this);this.f("horizontalAlign",k.ka);this.f("verticalAlign",k.eb);this.f("scaleMode",n.NONE)};a.prototype.set=function(a,b){if(a=="url"&&this.get("url")!=b){this.wU=o;this.hc()}g.prototype.set.call(this,a,b)};
a.prototype.by=function(a){if(this.gh!=a){this.gh=a;this.nG=o;this.hc()}};a.prototype.ey=function(a){if(this.zh!=a){this.zh=a;this.BJ=o;this.hc()}};a.prototype.lr=function(a){if(this.cd!=a){this.cd=a;this.LS=o;this.hc();this.La()}};a.prototype.wia=function(){this.rn=o;this.hc()};a.prototype.xia=function(){this.a8()};var p={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"};j.browser()==j.Vi&&j.Qa()&&(p.transform="translate3d(0,0,0)");a.prototype.m_=function(a,b,d){this.jw=b?b:0;this.iw=d?d:0;if(this.kb){this.kb.remove();this.kb=q}if(this.hh=a){this.kb=e(this.hh);l.css(this.hh,p);this.sG.append(this.kb)}this.JR=this.rQ=o;this.hc();this.La();this.kb&&this.trigger(f.T)};a.prototype.Ba=function(){g.prototype.Ba.call(this);if(!this.sG){this.tG=document.createElement("div");this.sG=e(this.tG);
l.css(this.tG,{position:"static",overflow:"hidden",cursor:"inherit"});this.Ja().append(this.sG)}};a.prototype.On=function(){this.lh=this.jw+this.Fh()+this.wm();this.kh=this.iw+this.xm()+this.vx();this.U2=this.jw==0&&this.iw==0?0:this.jw/this.iw;this.mA=this.nA=0};a.prototype.fa=function(){if(this.n("scaleMode")){this.lr(this.j("scaleMode"));this.o("scaleMode")}if(this.n("horizontalAlign")){this.by(this.j("horizontalAlign"));this.o("horizontalAlign")}if(this.n("verticalAlign")){this.ey(this.j("verticalAlign"));
this.o("verticalAlign")}if(this.i_())this.rn=o;g.prototype.fa.call(this);this.a8();if(this.Ora()){var a=y;if(this.LS||this.JR||this.rn){var b=this.jd(),f=this.hd(),d=this.jw,c=this.iw,e,j;if(d==0||c==0)j=e=0;else switch(this.cd){case n.NONE:e=d;j=c;break;case n.Sm:e=b;j=f;break;case n.qe:if(d*f>c*b){e=b;j=c*b/d}else{e=d*f/c;j=f}break;case n.xl:if(d*f>c*b){e=d*f/c;j=f}else{e=b;j=c*b/d}break;case n.ek:e=b;j=c*b/d;break;case n.yg:e=d*f/c;j=f}if(this.Da!=e||this.Ma!=j){this.Da=e;this.Ma=j;a=o}this.JR=
this.LS=y}if(a||this.rn||this.rQ){this.BJ=this.nG=o;this.hh&&l.css(this.hh,{width:this.Da+"px",height:this.Ma+"px",visibility:"inherit"});l.css(this.tG,{width:this.jd()+"px",height:this.hd()+"px","border-top-left-radius":this.kG(this.Yga(),this.u1(),this.s1())+"px","border-top-right-radius":this.kG(this.Zga(),this.u1(),this.t1())+"px","border-bottom-left-radius":this.kG(this.Wga(),this.r1(),this.s1())+"px","border-bottom-right-radius":this.kG(this.Xga(),this.r1(),this.t1())+"px"});this.La();this.rQ=
this.rn=y}if(this.nG&&this.hh){switch(this.gh){case k.ka:l.css(this.hh,{"margin-left":0,"margin-right":this.jd()-this.Da+"px"});break;case k.Fa:l.css(this.hh,{"margin-left":this.jd()-this.Da+"px","margin-right":0});break;case k.pc:l.css(this.hh,{"margin-left":Math.floor((this.jd()-this.Da)*0.5)+"px","margin-right":Math.ceil((this.jd()-this.Da)*0.5)+"px"})}this.nG=y}if(this.BJ&&this.hh){switch(this.zh){case k.eb:l.css(this.hh,{"margin-top":0,"margin-bottom":this.hd()-this.Ma+"px"});break;case k.cb:l.css(this.hh,
{"margin-top":this.hd()-this.Ma+"px","margin-bottom":0});break;case k.$b:l.css(this.hh,{"margin-top":Math.floor((this.hd()-this.Ma)*0.5)+"px","margin-bottom":Math.ceil((this.hd()-this.Ma)*0.5)+"px"})}this.BJ=y}}};a.prototype.a8=function(){if(this.wU){var a=this.get("url");if(a)this.NP().load(a,this.m_,this);else{this.NP().clear();this.m_(q,0,0)}this.wU=y}};a.prototype.kG=function(a,b,f){if(!a)return 0;var d=0;b&&(d=Math.max(d,b));f&&(d=Math.max(d,f));return Math.max(0,a-d)};return a});
define("dW",["eD","iw","eK","ik","iL"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.ta=function(){e.prototype.ta.call(this);this.f("iconURL");this.h("rollOverIconURL",c.t,"iconURL");this.h("pressedIconURL",c.va,"iconURL");this.h("pressedRollOverIconURL",c.Va,"iconURL")};a.prototype.tO=function(){var a=new d(3);a.set("scaleMode",b.qe);return a};a.prototype.fa=function(){if(this.n("iconURL")){var a=this.j("iconURL");this.rf.set("url",a);this.rf.set("visible",a?o:y);this.o("iconURL")}e.prototype.fa.call(this)};
return a});define("dV",["eD","dW","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Button",a).B("BaseButton").R({iconURL:"string",rollOverIconURL:"string",pressedIconURL:"string",pressedRollOverIconURL:"string"}).Si(["iconURL","rollOverIconURL","pressedIconURL","pressedRollOverIconURL"]);return a});
define("fH",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this);this.set("angle",0);this.set("rotate",y);this.set("inertia",y)});a.A("CapPanoramaOverlay",b).B("PanoramaOverlay").R({angle:"number",distance:"number",hfov:"number",image:"ImageResource",inertia:"bool",rotate:"bool",useHandCursor:"bool"}).fc([e.Ic,e.jc,e.fk,e.Ef]).Rg([e.U]);return b});
define("fx",["eD","dx","fH"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("CeilingCapPanoramaOverlay",a).B("CapPanoramaOverlay");return a});
define("bR","cV,jquery.mod,eD,kd,bS,d".split(","),function(a,b,c,e,d,f){a=c.extend(f,function(){f.call(this);this.Dc("Canvas");this.eP=o;this.q=q;this.bind(e.pb,this.zea,this)});a.prototype.zea=function(){this.xK()};a.prototype.xK=function(){this.eP=o;this.Qg()};a.prototype.Ba=function(){f.prototype.Ba.call(this);if(!this.q){this.q=b("<canvas/>");this.q.css({position:"absolute",left:0,top:0,cursor:"inherit"});this.Ja().append(this.q)}};a.prototype.fa=function(){this.i_()&&this.xK();f.prototype.fa.call(this)};
a.prototype.pe=function(){if(this.eP){this.eP=y;var a=this.q.get(0);a.width=this.jd();a.height=this.hd();this.rva()}f.prototype.pe.call(this)};a.prototype.ira=function(){return this.q.get(0).width};a.prototype.hra=function(){return this.q.get(0).height};a.prototype.gra=function(){return this.q.get(0).getContext("2d")};a.prototype.rva=function(){this.trigger(new d(e.$))};return a});
define("gY",["eD","kd","eK","ik","bR"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.Oh=function(){e.prototype.Oh.call(this)};a.prototype.ta=function(){e.prototype.ta.call(this);this.f("iconColor");this.h("rollOverIconColor",c.t,"iconColor");this.h("pressedIconColor",c.va,"iconColor");this.h("pressedRollOverIconColor",c.Va,"iconColor")};a.prototype.tO=function(){var a=new d;a.bind(b.$,this.oba,this,o);return a};a.prototype.fa=function(){this.n("iconColor")&&(this.rf.xK(),
this.o("iconColor"));e.prototype.fa.call(this)};a.prototype.pha=function(){return this.j("iconColor")};a.prototype.qha=function(){return this.rf.gra()};a.prototype.sha=function(){return this.rf.ira()};a.prototype.rha=function(){return this.rf.hra()};a.prototype.oba=E();return a});
define("ec",["eD","gY","bc","eK"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.M({horizontalAlign:c.pc,verticalAlign:c.$b})});a.prototype.ta=function(){b.prototype.ta.call(this);this.f("iconLineWidth");this.h("rollOverIconLineWidth",e.t,"iconLineWidth");this.h("pressedIconLineWidth",e.va,"iconLineWidth");this.h("pressedRollOverIconLineWidth",e.Va,"iconLineWidth")};a.prototype.zha=function(){return this.j("iconLineWidth")};a.prototype.fa=function(){this.n("iconLineWidth")&&(this.rf.xK(),
this.o("iconLineWidth"));b.prototype.fa.call(this)};a.prototype.oba=function(){var a=this.qha(),b=this.pha(),c=this.sha(),e=this.rha(),k=this.zha();a.clearRect(0,0,c,e);a.lineWidth=k||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("gu",["eD","ec","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("CloseButton",a).B("BaseButton").R({iconColor:"color",iconLineWidth:"number",rollOverIconColor:"color",rollOverIconLineWidth:"number",pressedIconColor:"color",pressedIconLineWidth:"number",pressedRollOverIconColor:"color",pressedRollOverIconLineWidth:"number"});return a});
define("ha",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("CookiesPolicy",b).B("Object").R({url:"string",geographicArea:"or[array[string], string]"}).Si(["url"]);return b});
define("il","require,cV,hV,eD,jM,dx".split(","),function(a){a("cV");var b=a("hV"),c=a("eD"),e=a("jM"),a=a("dx"),c=c.extend(e,function(){e.call(this)});a.A("Container",c).B("UIComponent").R({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]"}).Sg({scrollTo:function(a,b){e.prototype.scrollTo.call(this,a,b)},scrollIntoView:function(a){b.qu(function(){e.prototype.scrollIntoView.call(this,a)}.bind(this))}});return c});
define("ia",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),e=a("dx"),a=b.extend(c,function(){c.call(this);this.J=q});e.A("PanoramaFrame",a).B("Object").R({thumbnailUrl:"string",snapshots:"array[PanoramaSnapshot]",overlays:"array[PanoramaOverlay]"}).Si(["thumbnailUrl"]);a.prototype.get=function(a,b){switch(a){case "overlays":return this.PP();case "hfov":case "vfov":case "pitch":case "flipImageHorizontally":if(this.J)return this.J.get(a,b)}return c.prototype.get.call(this,a,b)};a.prototype.PP=
function(){var a=c.prototype.get.call(this,"overlays");a||(a=[]);return this.nT(a)};a.prototype.nT=function(a){if(this.Mw===m||this.JG!=a){var b=function(a){return e.sb("PopupPanoramaOverlay",a)},c=function(a){return e.sb("LensFlarePanoramaOverlay",a)};this.JG=a;this.Mw=[].concat(a.filter(function(a){return!(b(a)||c(a))}),a.filter(c),a.filter(b))}return this.Mw};a.prototype.Zpa=N("J");a.prototype.zx=Q("J");return a});
define("jS",["require","eD","dx","ia"],function(a){var b=a("eD"),c=a("dx"),e=a("ia"),a=b.extend(e,function(){e.call(this)});c.A("CubicPanoramaFrame",a).B("PanoramaFrame").R({cube:"ImageResource",stereoCube:"ImageResource",front:"ImageResource",left:"ImageResource",back:"ImageResource",right:"ImageResource",top:"ImageResource",bottom:"ImageResource"});return a});
define("ig",["require","jquery.mod","eD","u","iB"],function(a){function b(){}a("jquery.mod");var c=a("eD"),e=a("u"),a=a("iB");b.jia=function(){window.MediaSource=window.MediaSource||window.WebKitMediaSource;return window.MediaSource&&"function"===typeof window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')};b.tia=function(){if(e.browser()==e.Ug){var a=e.uK();if(10<=a&&11>a||11.3<=a)return o}return y};b.kia=function(){return e.browser()==
e.Wi||e.browser()==e.Ug?o:y};var d;b.J8=function(a){try{return d||(d=document.createElement("audio")),!!d.canPlayType(a).replace(/^no$/,"")}catch(b){}return y};var f;b.mx=function(a){try{return f||(f=document.createElement("video"),f.setAttribute("webkit-playsinline","true"),f.setAttribute("playsinline","true")),!!f.canPlayType(a).replace(/^no$/,"")}catch(b){}return y};b.lia=function(){try{if(document.createElement("canvas").getContext("webgl"))return o}catch(a){}try{if(document.createElement("canvas").getContext("experimental-webgl"))return o}catch(b){}return y};
b.E$=e.sd()==e.Ph?[4096,2048]:e.AK()?[7680,3840]:e.usa()?[5120,2560]:e.Qa()?[3840,1920]:[4096,2048];b.C$=b.E$;b.log=function(){c.log("webgl: "+b.vX);c.log("html5 audio: "+b.d$);c.log("html5 video: "+b.g$)};b.Yna=function(){return["webgl:"+b.vX,"html5audio:"+b.d$,"html5video:"+b.g$].join(" ")};b.f$=b.J8('audio/ogg; codecs="vorbis"');b.e$=b.J8("audio/mpeg");b.d$=b.f$||b.e$;b.LV=b.mx('video/ogg; codecs="theora"');b.Uwa=b.mx('video/mp4; codecs="avc1.42E01E"');b.tK=b.mx('video/webm; codecs="vp8, vorbis"');
b.Xra=b.mx('video/mp4; codecs="hev1"');b.hD=b.mx("video/mp4");b.Yra=b.mx("video/quicktime");b.h$=b.tia();b.Q9=b.kia();b.Rra=b.Q9||b.hD&&b.jia();b.g$=b.LV||b.hD||b.tK;b.vX=b.lia();a.sg("debug")&&a.sg("capabilities")&&b.log();b.summary=b.Yna();return b});
define("V",["require","ig"],function(a){a("ig");a={hxa:"data:audio/mpeg;base64,/+MYxAAAAANIAAAAAExBTUUzLjk4LjIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",Msa:"data:audio/ogg;base64, "};a.src=
a.Msa;return a});
define("fR",["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 <a> \u0633\u064a\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 </a>.",
"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 <a> \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043a\u0432\u0438\u0442\u043a\u0438\u0442\u0435 </a>.",
"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 <a>Pol\u00edtica de cookies</a>.","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 <a> Cookiepolitik </a>.","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":"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":["Der Bewegungs- und Orientierungszugriff, sowie VR Modus Ihres Ger\u00e4ts  sind 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:"Cancel","change-to-click-and-move":"\u00c4ndern Sie den Steuerungsmodus, um zu klicken und zu verschieben",
yes:"ja","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Vollbild verlassen",no:"nein","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","download-failed":"Download failed","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 <a>Cookie-Richtlinie</a>.",
"use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Ablehnen","disable-measure":"Stop measuring","change-to-drag-and-release":"\u00c4ndern Sie den Steuerungsmodus zum Ziehen und Loslassen","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":"Video und Audio aktivieren?",
"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 aktivieren?","storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Vollbildmodus aktivieren","use-cardboard-v2":"Use Cardboard v2",unmute:"Audio aktivieren","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":"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 <a> \u03a0\u03bf\u03bb\u03b9\u03c4\u03b9\u03ba\u03ae cookie </a>.",
"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 <a>Cookie Policy</a>.","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 <a>Pol\u00edtica de Cookies</a>.","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":"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":"Muuta ohjaustilaa vet\u00e4m\u00e4ll\u00e4 ja vapauttamalla",accept:"Hyv\u00e4ksy",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":"Muuta ohjaustilaa napsauttamalla ja siirt\u00e4m\u00e4ll\u00e4",yes:"Joo","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Poistu koko n\u00e4yt\u00f6st\u00e4",no:"ei","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":"T\u00e4m\u00e4 verkkosivu k\u00e4ytt\u00e4\u00e4 ev\u00e4steit\u00e4 ker\u00e4\u00e4m\u00e4\u00e4n k\u00e4ytt\u00f6tilastoja. Lis\u00e4tietoja on <a>ev\u00e4stek\u00e4yt\u00e4nn\u00f6ss\u00e4</a>.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please, rotate your device","exit-vr":"Exit VR",reject:"Hylk\u00e4\u00e4","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":"Ota \u00e4\u00e4ni ja video k\u00e4ytt\u00f6\u00f6n?","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":"Ota video k\u00e4ytt\u00f6\u00f6n?","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":"Anna koko n\u00e4ytt\u00f6","use-cardboard-v2":"Use Cardboard v2",unmute:"Ota \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n",
"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":"Ota \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 <a>Politique relative aux cookies</a>.","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 <a>Pravila o kola\u010di\u0107ima</a>.","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 <a>s\u00fctikre vonatkoz\u00f3 ir\u00e1nyelvekbe</a>.",
"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 <a>Kebijakan Cookie</a>.",
"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 <a>Cookie Policy</a>.","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\u3001<a>Cookie\u30dd\u30ea\u30b7\u30fc</a>\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 <a>retningslinjer for informasjonskapsler</a>.","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 <a>Cookiebeleid</a> 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 <a>retningslinjer for informasjonskapsler</a>.","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 <a>Zasady dotycz\u0105ce plik\u00f3w cookie</a>.",
"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 <a>Pol\u00edtica de cookies</a>.","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 <a>Pol\u00edtica de cookies</a>.",
"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. <a>\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</a>.",
"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 <a> pravidl\u00e1ch pou\u017e\u00edvania s\u00faborov cookie </a>.","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 <a>Cookie Policy</a>.",
"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 <a>\u00c7erez Politikas\u0131n\u0131</a> 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 <a> \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</a>.",
"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\u95ee<a>Cookie\u653f\u7b56</a>\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<a> Cookie\u653f\u7b56</a>\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("kc",["require","eD","fR","iB"],function(a){function b(a){return e[k][a]||e.en[a]||a}var c=a("eD"),e=a("fR"),d=a("iB"),f;for(f in e)e[f.substr(0,2)]=e[f];e.en["giroscope-disabled-safari-toggle-on"]='<div>Your device\'s motion and orientation access and VR mode are disabled for this site.</div>\n<div>To properly see this webpage, please enable it:</div>\n<ul style="display:inline-block; text-align:left;">\n<li>Access you device\'s settings: "Settings > Safari > Privacy & Security" and toggle on: "Motion & Orientation Access".</li>\n<li>Refresh the browser.</li>\n</ul>';
e["zh-hk"]=e["zh-mo"]=e["zh-tw"];e.no=e.nn;var i=function(){var a=window.navigator,b=["language","browserLanguage","systemLanguage","userLanguage"],f,c,e=[];(f=d.Fm("language"))&&e.push(f.toLowerCase());var j=a.languages;if(Array.isArray(j))for(f=0;f<j.length;f++)if((c=j[f])&&c.length)c=c.toLowerCase(),-1==e.indexOf(c)&&e.push(c);for(f=0;f<b.length;f++)if((c=a[b[f]])&&c.length)c=c.toLowerCase(),-1==e.indexOf(c)&&e.push(c);return e}(),j=Object.keys(e),k=function(){for(var a=0;a<i.length;a++){var b=
i[a];if(0<=j.indexOf(b))return b;b=b.substr(0,2);if(0<=j.indexOf(b))return b}return"en"}();b.log=function(){c.log("translation lang: "+k);c.log("browser lang: "+i.join(", "))};return b});
define("fQ",["require","ig"],function(a){var a=a("ig"),b={xba:"data:video/webm;base64,GkXfo0AgQoaBAUL3gQFC8oEEQvOBCEKCQAR3ZWJtQoeBAkKFgQIYU4BnQI0VSalmQCgq17FAAw9CQE2AQAZ3aGFtbXlXQUAGd2hhbW15RIlACECPQAAAAAAAFlSua0AxrkAu14EBY8WBAZyBACK1nEADdW5khkAFVl9WUDglhohAA1ZQOIOBAeBABrCBCLqBCB9DtnVAIueBAKNAHIEAAIAwAQCdASoIAAgAAUAmJaQAA3AA/vz0AAA=",I$:"data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE="};
b.src=!a.hD&&a.tK?b.xba:b.I$;return b});
define("cc",["require","fQ","u","iB"],function(a){function b(a){var b=document.createElement("video");b.setAttribute("webkit-playsinline","true");b.setAttribute("playsinline","true");b.src=f.src;var c=b.play();if(c){var d=y;c.then(function(){d=o;b.pause();a(y)})["catch"](function(){d||a(o)})}else b.pause(),a(y)}function c(a){var b=y,f=document.createElement("video");f.setAttribute("webkit-playsinline","true");f.setAttribute("playsinline","true");f.src="";(f=f.play())?f["catch"](function(a){b="NotAllowedError"!==
a.name}).then(function(){a(!b)}):a(o)}function e(a){n=a;j=o;d()}function d(){for(;k.length;)k.shift().call(window,n)}var f=a("fQ"),i=a("u");a("iB");var j=y,k=[],n;(function(){i.browser()==i.Wi&&11<=i.oaa()?e(o):i.browser()==i.Ug?b(e):c(function(a){a?b(e):e(y)})})();return{test:function(a){k.push(a);j&&d()}}});
define("ie",["require","kc","d","ip","cc"],function(a){function b(a,b){this.dx=a;this.wo=b;this.media=0;this.Qk=this.Qk.bind(this)}function c(){this.l8=[];this.s_=[];this.Yr=[];this.bn={};this.bn[i]=m;this.bn[j]=m;this.Qk=this.Qk.bind(this);this.xU=this.xU.bind(this);f.test(function(a){a?d.tX(this.xU):this.Qk(j|i,o)}.bind(this))}var e=a("kc");a("d");var d=a("ip"),f=a("cc");c.prototype.wba=function(a){this.bn[j]?a.call(this,o):this.l8.push(a)};c.prototype.vba=function(a){this.bn[i]?a.call(this,o):
this.s_.push(a)};c.prototype.haa=function(a){this.fo(i,a)};c.prototype.yW=function(a){this.fo(j,a)};c.prototype.C8=function(){return this.bn[i]};c.prototype.Uua=function(){this.bn[j]=m};c.prototype.xU=function(){var a=j|i;this.Yr.forEach(function(b){a&=~b.media});this.an(a,o)};c.prototype.fo=function(a,b){this.bn[a]===m&&this.rda(b).Km(a)};c.prototype.Qk=function(a,b){this.xea();this.an(a,b)};c.prototype.an=function(a,b){a&j&&(this.bn[j]=b,this.l8.forEach(function(a){a.call(window,b)}));a&i&&(this.bn[i]=
b,this.s_.forEach(function(a){a.call(window,b)}))};c.prototype.xea=function(){var a=this.Yr;this.Yr=[];a.forEach(function(a){a.cancel()})};c.prototype.rda=function(a){for(var f=q,c=0;c<this.Yr.length&&!f;c++)this.Yr[c].dx==a&&(f=this.Yr[c]);f||(f=new b(a,this.Qk),this.Yr.push(f));return f};var i=1,j=2;b.prototype.Km=function(a){0===(a&this.media)&&(this.media|=a,"button"==this.dx.get("mediaActivationMode")?this.dx.Zw.xta(this.Qk):this.dx.$v.show(this.Aha(this.media),this.Qk))};b.prototype.cancel=
function(){this.dx.Zw.gqa(this.Qk);this.dx.$v.hide(this.Qk)};b.prototype.Qk=function(a){this.wo(this.media,a!==y);this.media=0};b.prototype.Aha=function(a){return a==(i|j)?e("enable-video-audio-prompt"):a==j?e("enable-video-prompt"):e("enable-audio-prompt")};return new c});
define("eT",["require","kd","bS","em"],function(a){function b(){var a;a=d?!f:!document[j];i.visible!=a&&(i.visible=a,i.trigger(new e(c.$)))}var c=a("kd"),e=a("bS"),d=y,f=y,i=new (a("em"));i.visible=o;for(var j,k,a=["hidden","msHidden","webkitHidden"],n=["visibilitychange","msvisibilitychange","webkitvisibilitychange"],g=0;g<a.length;g++)"undefined"!==typeof document[a[g]]&&(j=a[g],k=n[g]);j===m||"undefined"===typeof document[j]?(j="hidden",document[j]=y,k=function(){document[j]=y;b()},a=function(){document[j]=
o;b()},document.addEventListener?(window.addEventListener("focus",k,o),window.addEventListener("blur",a,o)):(document.attachEvent("onfocusin",k),document.attachEvent("onfocusout",a))):document.addEventListener(k,b,y);i.VK=function(a){(d=a)&&(f=y);b()};window.addEventListener("vrdisplayblur",function(){f=o;b()},o);window.addEventListener("vrdisplayfocus",function(){f=y;b()},o);return i});
define("fy","require,cV,eD,kd,eQ,fB,bS,em,V,fV,d,ie,eT".split(","),function(a){a("cV");var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("fB"),f=a("bS"),i=a("em"),j=a("V"),k=a("fV"),n=a("d"),g=a("ie"),l=a("eT"),r=j.src,a=b.extend(i,function(){i.call(this);this.pi=this.pi.bind(this);this.Pl=this.Pl.bind(this);this.Un=this.Un.bind(this);this.Xs=this.Xs.bind(this);this.cN=this.cN.bind(this);this.GB=[];this.cv="";this.gn=e.K;this.Us=m;this.$r=y;this.Hg=e.K;this.yj="";this.Kk=m;this.us=y;this.ae="inactive";l.bind(c.$,
this.GU,this);this.hH=m;this.zN=y;this.Jc=document.createElement("audio");this.Jc.autobuffer="autobuffer";this.Jc.iu="auto";this.Jc.addEventListener("progress",this.pi,y);this.Jc.addEventListener("ended",this.Pl,o);this.Jc.addEventListener("pause",this.Un,y);this.Jc.addEventListener("canplaythrough",this.Xs,y);g.vba(this.cN)});a.prototype.cN=function(a){if(this.ae=="asking")this.ae="inactive";a?this.an():this.sa.set("mute",o)};a.prototype.BW=N("sa");a.prototype.play=function(a,b){this.yj=a;this.Kk=
b;this.yB(e.N)};a.prototype.stop=function(){this.yB(e.K)};a.prototype.ym=function(){return this.Jc&&this.Jc.currentTime||0};a.prototype.rl=function(a){this.Jc.volume=a};a.prototype.yB=function(a){this.Hg=a;this.ae=="activated"?l.visible&&this.Vl():this.ae=="inactive"&&(n.Lx()?this.an():this.Hg!=e.K?this.My():this.Vl())};a.prototype.My=function(){this.ae="asking";g.haa(this.sa)};a.prototype.pi=function(){if(this.Kk!==m){this.Jc.currentTime=this.Kk;this.Kk=m}};a.prototype.Un=function(){if(this.gn==
e.N||this.$r&&this.Us==e.N)!isNaN(this.Jc.duration)&&this.Jc.currentTime==this.Jc.duration?this.Pl():l.visible&&this.Jc.play()};a.prototype.Pl=function(){if(this.gn==e.N||this.$r&&this.Us==e.N){this.Dj(y);this.gn=e.K;this.trigger(new f(c.Ia))}};a.prototype.Xs=function(){this.zN=o;this.gC();this.Dj(y)};a.prototype.GU=function(){l.visible?this.Hg&&this.Oia?this.Vl():this.gn==e.N&&this.Jc.play():this.gn==e.N&&this.Jc.pause()};a.prototype.an=function(){if(this.ae=="inactive"||this.ae=="asking"){this.ae=
"activating";this.w6(r);this.U4(function(){this.ae="activated";this.Jc.pause();this.Vl()}.bind(this),function(){this.ae="inactive";this.My()}.bind(this))}};a.prototype.Vl=function(){this.Hg!=e.K&&this.fma(this.yj,this.Kk);this.gma(this.Hg);this.Kk=this.Hg=this.yj=m};a.prototype.fma=function(a,b){this.w6(a||"");this.Jc.currentTime!=b&&this.hma(b)};a.prototype.hma=function(a){try{this.Jc.currentTime=a}catch(b){}this.hH=a;this.gC()};a.prototype.gC=function(){if(this.zN&&this.hH!==m){try{this.Jc.currentTime=
this.hH}catch(a){}this.hH=m}};a.prototype.gma=function(a){this.Us=a;this.$r||this.bI()};a.prototype.bI=function(){if(this.gn!=this.Us)if(this.Us==e.N||this.Us==e.Ac&&this.gn!=e.N){this.$r=o;this.Dj(this.cv!=r&&this.cv!=""?o:y);var a=function(){if(this.$r){this.gn=e.N;this.$r=y;this.bI()}}.bind(this),b=function(){this.$r=y;this.Dj(y);setTimeout(function(){this.bI()}.bind(this),100)}.bind(this);this.U4(a,b)}else{this.Dj(y);this.Jc.pause();this.gn=this.Us;this.bI()}};a.prototype.U4=function(a,b){function f(){if(!d){l();
b&&b()}}function c(){d=o;l();a&&a()}var d=y,g=2E3,e,j=function(){g=Math.min(g*2,8E3);e=setTimeout(j,g);this.Jc.play()}.bind(this),k=function(){this.Jc.addEventListener("play",c,y);this.Jc.addEventListener("error",f,y);e=setTimeout(j,g)}.bind(this),l=function(){this.Jc.removeEventListener("play",c,y);this.Jc.removeEventListener("error",f,y);clearTimeout(e)}.bind(this);k();(k=this.Jc.play())&&k["catch"](f)};a.prototype.w6=function(a){if(this.cv!=a){this.zN=y;this.cv=a;this.Jc.src=this.cv?this.cv:j.src}};
a.prototype.Dj=function(a){if(this.us!=a)(this.us=a)?k.eba(d.wE):k.dba(d.wE)};return a});
define("fI",["require","cV","iB"],function(a){var b=a("cV"),c=a("iB"),a={is:function(a,d){var f=c.parse(a).Lqa;return b(d).contains(f)},lD:function(a,c){return a&&b(c).any(function(b){return 0===a.indexOf(b)})},nM:[".mp4",".m4v",".m4p"],Vba:[".hevc"],jY:[".mov"],mZ:[".webm"],BY:[".ogv",".ogg"],ica:[".mpg",".mpeg"],Zba:[".jpg",".jpeg"],Zi:[".m3u8"],AY:[".mpd"],pca:[".png"],Uba:[".gif"],Dba:[".bmp"]};a.Wba=[].concat(a.Zba,a.pca,a.Uba,a.Dba);a.Bba=[].concat(a.Zi,a.AY);a.JM=[].concat(a.Bba,a.nM,a.mZ,
a.BY,a.ica,a.Zi,a.AY);a.Xba=["data:image/"];return a});
define("bP",["require","iB"],function(a){function b(){this.MG=this.VQ=q;this.qn=[];this.Ml=y;this.Xp=m}var c=a("iB");b.prototype.jl=function(a,b){this.VQ=c.nr(a);this.MG=b;this.G()};b.prototype.load=function(a,b){var f={};f.call=a;f.context=b||window;this.qn.push(f);this.Xp||(this.Xp=this.J1());this.G()};b.prototype.Go=function(){return this.Xp!==m};b.prototype.G=function(){0<this.qn.length&&(this.Xp!==m?this.Sfa():this.VQ&&this.fA())};b.prototype.fA=function(){if(!(this.Ml||this.Xp!==m)){this.Ml=
o;var a=document.createElement("script");a.type="text/javascript";a.src=this.VQ;document.getElementsByTagName("head")[0].appendChild(a);this.u8()}};b.prototype.u8=function(){var a=this.J1();if(a===m){var b=this;setTimeout(function(){b.u8()},250)}else this.Xp=a,this.Ml=y,this.G()};b.prototype.J1=function(){if(this.MG){for(var a=window,b=0;b<this.MG.length&&a!==m;b++)a=a[this.MG[b]];return a}};b.prototype.Sfa=function(){for(;0<this.qn.length;){var a=this.qn.pop();a.call.call(a.context,this.Xp)}};return{nZ:new b,
Zi:new b,jl:function(a){this.Zi.jl(a.get(TDV.PlayerSettings.HLS_URL),["Hls"]);this.nZ.jl(a.get(TDV.PlayerSettings.WEBVR_POLYFILL_URL),["WebVRConfig","FORCE_ENABLE_VR"])}}});
define("dm","require,eD,kd,eQ,fB,bS,em,ig,u,fI,bP,fV,iB,d,ie,eT,fQ".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("fB"),f=a("bS"),i=a("em"),j=a("ig"),k=a("u"),n=a("fI"),g=a("bP"),l=a("fV"),r=a("iB"),p=a("d"),s=a("ie"),t=a("eT"),u=a("fQ"),v=b.extend(i,function(){i.call(this);this.Pl=this.Pl.bind(this);this.Un=this.Un.bind(this);this.FR=this.FR.bind(this);this.Xs=this.Xs.bind(this);this.pR=this.pR.bind(this);this.vR=this.vR.bind(this);this.dN=this.dN.bind(this);this.uj=this.uj.bind(this);
this.oR=this.oR.bind(this);this.GB=[];this.Di=q;this.kc=[];this.Jd=y;this.Lj=1;this.us=y;this.Pn=this.EJ=this.bx=this.Kj=m;this.Lt=y;this.Hg=e.K;this.WB=this.Kk=this.JH=this.yj=this.LH=m;this.sa=this.Sc=q;this.u=document.createElement("video");this.bw=m;this.FU=y;this.y6();t.bind(c.$,this.GU,this);this.ae="inactive";s.wba(this.dN)});v.prototype.y6=function(){for(this.u.parentNode&&this.u.parentNode.removeChild(this.u);this.u.children.length;)this.u.removeChild(this.u.children[0]);this.u.autoplay=
y;this.u.autobuffer="autobuffer";this.u.iu=k.browser()==k.Ug?"metadata":"none";this.u.setAttribute("preload",k.browser()==k.Ug?"metadata":"none");this.u.setAttribute("webkit-playsinline","true");this.u.setAttribute("playsinline","true");this.u.addEventListener("ended",this.Pl,o);this.u.addEventListener("pause",this.Un,y);this.u.addEventListener("stalled",this.Un,y);this.u.addEventListener("waiting",this.Un,y);this.u.addEventListener("timeupdate",this.FR,y);this.u.addEventListener("loadedmetadata",
this.vR,o);this.u.addEventListener("canplay",this.pR,o);this.u.addEventListener("canplaythrough",this.Xs,y);this.u.textTracks.addEventListener("addtrack",this.oR,y);this.fT()};v.prototype.clear=function(){this.e0();this.u=q};v.prototype.px=function(a,b,f){if(this.gD())try{a.drawImage(this.u,0,0,b,f);return}catch(c){}a.fillRect(0,0,b,f)};v.prototype.play=function(a,b,f,c,d){if(!(this.sa==a&&(this.yj==b&&this.LH==f&&this.Kk==c&&this.JH==d&&this.Hg==e.N||!this.yj&&this.bx==b&&(this.EJ||m)==(f||m)&&(this.bw||
0)==(c||0)&&this.Pn==e.N))){this.sa=a;this.yj=b;this.LH=f;this.Kk=c;this.JH=d;this.yB(e.N)}};v.prototype.stop=function(){this.yB(e.K)};v.prototype.Pg=Q("Kj");v.prototype.gD=function(){return this.yj||this.u.readyState==this.u.HAVE_NOTHING||this.u.readyState==this.u.HAVE_METADATA||this.u.currentTime===0?y:o};v.prototype.Tf=function(a){if(this.Jd!=a){this.Jd=a;this.fT()}};v.prototype.rl=function(a){if(this.Lj!=a){this.Lj=a;this.fT()}};v.prototype.fT=function(){this.u.muted=this.Lj===0||this.Jd;this.u.volume=
this.Jd?0:this.Lj};v.prototype.yB=function(a){this.Hg=a;this.ae=="activated"?t.visible&&this.Vl():this.ae=="inactive"&&(this.sa&&this.iia()?this.$ca():this.sa&&p.Lx()?this.an():this.sa&&this.Hg!=e.K?this.My():this.Vl())};v.prototype.ym=function(){return this.bw||!this.yj&&this.u&&this.u.currentTime||0};v.prototype.$t=function(){return this.u&&this.u.duration||0};v.prototype.Fc=function(){return this.u&&this.u.videoWidth||0};v.prototype.qd=function(){return this.u&&this.u.videoHeight||0};v.prototype.My=
function(){if(this.sa){this.ae="requested";s.yW(this.sa)}};v.prototype.iia=function(){var a=this.n1();return a&&(!a.currentSrc||a.paused)&&!a.muted?o:y};v.prototype.n1=function(){return this.sa.get("settings").get(TDV.PlayerSettings.ACTIVE_VIDEO_ELEMENT)};v.prototype.$ca=function(){this.u=this.n1();this.y6();this.an()};v.prototype.Un=function(){(this.Kj==e.N||this.Lt&&this.Pn==e.N)&&!this.u.hasAttribute("loop")&&!isNaN(this.u.duration)&&this.u.currentTime==this.u.duration&&this.u.duration>0&&this.Pl();
this.sJ()};v.prototype.dN=function(a){if(this.ae=="requested")this.ae="inactive";a&&this.an()};v.prototype.an=function(){if(this.ae=="inactive"||this.ae=="requested"){this.ae="activating";this.KI(q,q,0,y,function(){this.WR(function(){this.u.pause();this.ae="activated";this.Vl()}.bind(this),function(){this.ae="inactive";this.My(this.sa)}.bind(this))}.bind(this))}};v.prototype.Ye=function(){this.trigger(new f(v.Cf))};v.prototype.FR=function(){if(this.VE!==m&&this.u.currentTime>this.VE){this.VE=m;try{this.u.currentTime=
this.u.currentTime-0.01}catch(a){}}this.trigger(new f(v.Mba))};v.prototype.vR=function(){this.Y7();this.trigger(new f(v.Qm));this.trigger(new f(v.Lba));!isNaN(this.u.duration)&&this.u.currentTime==this.u.duration&&this.u.duration>0&&this.Pl()};v.prototype.pR=function(){this.sJ()};v.prototype.Xs=function(){this.FU=o;this.gC();this.sJ();this.Dj(y)};v.prototype.Pl=function(){this.qN=y;this.VE=m;if(this.Kj==e.N||this.Lt&&this.Pn==e.N){this.Dj(y);this.Kj=e.K;this.u.paused||this.u.pause();this.trigger(new f(v.Vf))}};
v.prototype.oR=function(){this.Y7()};v.prototype.GU=function(){t.visible?this.Hg&&this.Oia?this.Vl():this.Kj==e.N&&this.u.play():this.Kj==e.N&&this.u.pause()};v.prototype.Vl=function(){if(this.J5(this.yj)&&!g.Zi.Go())g.Zi.load(this.Vl,this);else{var a=function(){this.z6(this.Hg);this.Kk=this.Hg=this.LH=this.yj=this.JH=m}.bind(this);this.Hg==e.N?this.KI(this.yj,this.LH,this.Kk,this.JH,a):this.bx===m?this.KI(q,q,0,y,a):k.browser()==k.pr?this.KI(q,q,0,y,a):this.z6(this.Hg)}};v.prototype.KI=function(a,
b,f,c,d){a=a||q;b=b||q;this.qna(c);if(this.bx!==a||this.EJ!=b){this.Kj=e.K;this.Nda(a,b,f,d)}else{this.eT(f);d()}if(k.G8()&&!n.is(a,n.Zi))this.VE=f||0};v.prototype.pna=function(a){a&&!this.u.hasAttribute("crossorigin")?this.u.setAttribute("crossorigin","anonymous"):!a&&this.u.hasAttribute("crossorigin")&&this.u.removeAttribute("crossorigin")};v.prototype.qna=function(a){a&&!this.u.hasAttribute("loop")?this.u.setAttribute("loop",""):!a&&this.u.hasAttribute("loop")&&this.u.removeAttribute("loop")};
v.prototype.eT=function(a){try{this.u.currentTime=a}catch(b){}if(k.browser()!=k.qr&&k.browser()!=k.pr){this.bw=a;this.gC()}};v.prototype.gC=function(){if(this.FU&&this.bw!==m){try{this.u.currentTime=this.bw}catch(a){}this.bw=m}};v.prototype.sJ=function(){if(this.Kj==e.N&&t.visible&&this.u.paused&&this.u.readyState>=3){if(this.qN&&this.u.currentTime==0){this.qN=y;try{this.u.currentTime=0.3}catch(a){}}this.WR(E(),this.Aka.bind(this))}};v.prototype.Aka=function(){if(k.browser()!=k.pr){s.Uua();s.wba(this.sJ.bind(this));
setTimeout(function(){s.yW(this.sa)}.bind(this),0)}};v.prototype.uj=function(){this.a6(this.Di.track.activeCues)};v.prototype.a6=function(a){a||(a=[]);if(!(this.kc.length==0&&a.length==0)){this.kc=Array.prototype.slice.call(a);this.trigger(v.Je,this.kc)}};v.prototype.e0=function(){if(this.Sc){this.Sc.destroy();this.Sc=q}this.Pla();this.Qla()};v.prototype.Nda=function(a,b,f,c){this.e0();this.FU=y;this.qN=k.browser()==k.Ug;this.pna(!!a&&r.o$(a));this.J5(a)?this.Bda(a,b,f,c):this.Kda(a,b,f,c)};v.prototype.J5=
function(a){return n.is(a,n.Zi)&&!j.Q9};v.prototype.Bda=function(a,b,f,c){var d=g.Zi.Xp;this.bx=a;this.EJ=b;var e=r.um("debughls",y),k=r.sg("hqhls"),l=(navigator.connection?Math.max(navigator.connection.downlink,2):2)*1048576,i=l*0.66,n={debug:e,startPosition:f===0?-1:f,levelLoadingTimeOut:6E4,startLevel:-1,autoStartLoad:y,abrEwmaDefaultEstimate:l};this.Dj(o);this.Sc=new d(n);this.Sc.loadSource(a);this.Sc.attachMedia(this.u);var p=function(){this.Sc.off(d.Events.MANIFEST_PARSED,p);if(navigator.connection){var a=
this.Sc.levels.filter(function(a){return a.bitrate<=l});if(a.length){a.sort(function(a,b){return b.width-a.width});var g=this.Sc.levels.indexOf(a[0]);this.Sc.startLevel=g}a=this.Sc.levels.filter(function(a){return a.bitrate<=i});if(a.length){a.sort(function(a,b){return b.width-a.width});this.Sc.config.minAutoBitrate=a[0].bitrate-1}a=this.Sc.levels.filter(function(a){return a.width<=j.C$[0]&&a.height<=j.C$[1]});if(k){a.sort(function(a,b){return b.width-a.width});g=this.Sc.levels.indexOf(a[0]);this.Sc.startLevel=
g}if(a.length&&a.length<this.Sc.levels.length){a.sort(function(a,b){return b.width-a.width});this.Sc.autoLevelCapping=this.Sc.levels.indexOf(a[0])}if(e){console.log("bandwidth:",l,"lowBandwidth:",i);console.log("levels",this.Sc.levels);console.log("startLevel",this.Sc.levels[this.Sc.startLevel]);console.log("minLevel",this.Sc.levels[this.Sc.minAutoLevel])}}this.Sc.startLoad(f===0?-1:f);f!=0&&this.eT(f);b&&this.e_(b);c()}.bind(this);this.Sc.on(d.Events.MANIFEST_PARSED,p);this.Sc.on(d.Events.Kva,function(a,
b){b.fatal&&b.type==d.ErrorTypes.Pva&&this.Sc.recoverMediaError()}.bind(this))};v.prototype.Kda=function(a,b,f,c){this.bx=a;this.EJ=b;if(a)this.gN(a);else{this.gN(u.xba,"video/webm");this.gN(u.I$,"video/mp4")}b&&this.e_(b);this.u.load();f!=0&&this.eT(f);c()};v.prototype.gN=function(a,b){var f=document.createElement("source");b||(b=this.fia(a));if(b)f.type=b;r.lD(a)||(a=r.Sq(a,"swbypass=true"));f.src=a;this.u.appendChild(f);this.GB.push(f)};v.prototype.fia=function(a){switch(r.getExtension(a).toLowerCase()){case ".m4v":case ".mp4":return"video/mp4";
case ".webm":return"video/webm";case ".ogv":return"video/ogg";case ".m3u8":return"application/x-mpegURL";case ".mov":return"video/quicktime"}};v.prototype.Pla=function(){for(;this.GB&&this.GB.length;){var a=this.GB.shift();a.src="";this.u.removeChild(a)}};v.prototype.e_=function(a){this.Di=document.createElement("track");this.Di.kind="subtitles";this.Di.src=a;this.u.appendChild(this.Di)};v.prototype.Qla=function(){if(this.Di){this.Di.track.removeEventListener("cuechange",this.uj);this.Di.track.mode=
"disabled";this.Di.src="";this.u.removeChild(this.Di);this.Di=q;this.a6([])}};v.prototype.Y7=function(){for(var a=0;a<this.u.textTracks.length;a++){var b=this.u.textTracks[a];b.removeEventListener("cuechange",this.uj);b.mode=this.Di&&b==this.Di.track?"hidden":"disabled";b.mode=="hidden"&&b.addEventListener("cuechange",this.uj)}};v.prototype.z6=function(a){this.Pn=a;this.Lt||this.cI()};v.prototype.cI=function(){if(this.Kj!=this.Pn)if(this.Pn==e.N||this.Pn==e.K&&this.Kj!=e.N){this.Lt=o;this.Dj(this.bx?
o:y);var a=function(){if(this.Lt){this.Kj=e.N;this.Lt=y;this.dT(o);this.cI()}}.bind(this),b=function(){this.Lt=y;this.Dj(y);this.dT(y);setTimeout(function(){this.cI()}.bind(this),100)}.bind(this);this.WR(a,b)}else{this.Dj(y);this.dT(y);this.u.pause();if(this.Pn==e.K)this.u.currentTime=0;this.Kj=this.Pn;this.cI()}};v.prototype.Dj=function(a){if(this.us!=a)(this.us=a)?l.eba(d.wE):l.dba(d.wE)};v.prototype.dT=function(a){if(!!this.WB!=a)if(this.WB){clearInterval(this.WB);this.WB=q}else{var b=this;this.WB=
setInterval(function(){b.Ye()},16)}};v.prototype.WR=function(a,b){function f(){if(!d){l();b&&b()}}function c(){d=o;l();a&&a()}var d=y,g=2E3,e,j=function(){g=Math.min(g*2,8E3);e=setTimeout(j,g);this.u.play()}.bind(this),k=function(){this.u.addEventListener("play",c,y);this.u.addEventListener("error",f,y);e=setTimeout(j,g)}.bind(this),l=function(){this.u.removeEventListener("play",c,y);this.u.removeEventListener("error",f,y);clearTimeout(e)}.bind(this);k();(k=this.u.play())&&k["catch"](f)};v.Cf="time update";
v.Mba="time update native";v.Qm="duration update";v.Lba="size update";v.Vf="end";v.Je="cueChange";return v});
define("ee","require,eD,cV,kd,eQ,bS,em,u,iB,dm".split(","),function(a){function b(a){this.v=a;this.P=q;this.Os=(new Date).getTime()}var c=a("eD"),e=a("cV"),d=a("kd"),f=a("eQ"),i=a("bS"),j=a("em"),k=a("u"),n=a("iB"),g=a("dm");b.prototype.TV=function(){return this.P==q};b.prototype.item=Q("P");b.prototype.Uqa=function(){this.P.aW(this.v);this.P=q};b.prototype.uva=function(a){this.P=a;this.P.kV(this.v);this.Os=(new Date).getTime()};var l=c.extend(j,function(){j.call(this);var a=k.sd()==k.Ph?1:n.m9("dvs");
this.Fq=[];for(var c=0;c<a;c++)this.Fq.push(new b(new g));this.xf=[];this.k=f.K});l.prototype.fu=function(){return this.T1().length>0};l.prototype.uW=function(a){this.xf=[a].concat(e(this.xf).without(a));this.VR()};l.prototype.NJ=function(a){this.xf.push(a);this.VR()};l.prototype.yD=function(a){this.xf=e(this.xf).without(a);this.VR()};l.prototype.VR=function(){var a=this.xf.slice(0,this.Fq.length);this.T1().forEach(function(b){a.indexOf(b.item())<0&&b.Uqa()});this.Pb(a.length>0?f.N:f.K);a.forEach(function(a){this.tha(a)||
this.jha().uva(a)}.bind(this));this.kha().forEach(function(a){a.v.stop()})};l.prototype.Pb=function(a){if(this.k!=a){this.k=a;this.trigger(new i(this.k==f.K?d.Dd:d.aj))}};l.prototype.jha=function(){var a=this.Fq.filter(function(a){return a.TV()});if(a.length){if(k.browser()==k.Wi){a.sort(function(a,b){return b.Os-a.Os});return a[Math.min(2,a.length-1)]}return a[0]}return q};l.prototype.kha=function(){return this.Fq.filter(function(a){return a.TV()})};l.prototype.T1=function(){return this.Fq.filter(function(a){return!a.TV()})};
l.prototype.tha=function(a){for(var b=0;b<this.Fq.length;b++)if(this.Fq[b].item()==a)return this.Fq[b];return q};l.vQ=q;l.bind=function(){var a=l.pf();a.bind.apply(a,arguments)};l.unbind=function(){var a=l.pf();a.unbind.apply(a,arguments)};l.fu=function(){return l.pf().fu()};l.NJ=function(a){l.pf().NJ(a)};l.uW=function(a){l.pf().uW(a)};l.yD=function(a){l.pf().yD(a)};l.yp=function(){if(l.vQ===q)l.vQ=new l;return l.vQ};l.pf=l.yp;l.yp();return l});
define("fC","require,cV,kd,bS,fy,u,ee".split(","),function(a){var b=a("cV"),c=a("kd"),e=a("bS"),d=a("fy"),f=a("u"),i=a("ee"),a={Rz:function(){this.sa=q;this.Z4=f.sd()==f.Ph?1:URL.m9("das");this.vja=y;this.cS=[];for(var a=0;a<this.Z4;a++){var b=new d;b.bind(c.Ia,this.kka,this,o);this.cS.push(b)}this.x_=this.cS.slice();this.Ul={};this.qw=[];i.bind(c.aj,this.G,this,o);i.bind(c.Dd,this.G,this,o);this.tea=f.fd()!=f.my},BW:function(a){this.sa=a;this.cS.forEach(function(b){b.BW(a)});this.G()},Paa:function(a,
b){if(a.Jd!=b){a.Tf(b);this.bU(a);this.G()}},rl:function(a,b){if(a.Lj!=b){a.rl(b);this.bU(a);this.G()}},bU:function(a){a.$a&&a.$a.rl(a.Jd?0:a.Lj)},add:function(a){if(!this.t2(a)){this.ola(a);this.G()}},remove:function(a){if(this.t2(a)){this.wq(a);this.G()}},G:function(){var a=this.Dha(),f=b.difference(this.qw,a),a=b.difference(a,this.qw);f.forEach(this.D5.bind(this));a.forEach(this.qda.bind(this))},D5:function(a){var f=a.$a;a.setTime(f.ym());a.Saa(q);f.stop();this.x_.push(f);this.qw=b(this.qw).without(a)},
qda:function(a){var b=this.x_.shift();a.Saa(b);this.bU(a);b.play(a.Gh(),a.getTime());this.qw.push(a)},kka:function(a){var f=a.source,a=b(this.qw).find(function(a){return a.$a==f});this.D5(a);a.PG?this.tja(a):this.wq(a);a.setTime(0);a.trigger(new e(c.Ia));this.G()},ola:function(a){var b=a.ao;this.Ul[b]==m&&(this.Ul[b]=[]);this.Ul[b].splice(0,0,a)},t2:function(a){return this.Ul&&b(this.Ul[a.ao]).contains(a)},Dha:function(){if(!this.sa||!this.tea&&i.fu())return[];var a=b(this.Ul).keys();a.sort(function(a,
b){return b-a});for(var f=[],c=0;c<a.length;c++)for(var d=this.Ul[a[c]],e=0;e<d.length;e++){var r=d[e];if(this.vja||!this.Via(r)){f.push(r);if(f.length==this.Z4)return f}}return f},Via:function(a){return a.Jd||a.Lj==0},wq:function(a){var f=a.ao,c=this.Ul[f];if(c){a=b(c).indexOf(a);if(a>=0){c.splice(a,1);c.length==0&&delete this.Ul[f]}}},tja:function(a){var f=this.Ul[a.ao];if(f){var c=b(f).indexOf(a);if(c>=0){f.splice(c,1);f.push(a)}}}};a.Rz();return a});
define("gW",["require","eD","em"],function(a){var b=a("eD"),c=a("em"),a=b.extend(c,function(a,b){c.call(this);this.Qb=a;this.ao=b;this.ec=0;this.Jd=this.PG=y;this.$a=q;this.Lj=1});a.prototype.toString=function(){return"SharedAudioPlayerOrchestatorItem (url:"+this.Qb+" priority:"+this.ao+" time:"+this.ec+" loop:"+this.PG+")"};a.prototype.Gh=Q("Qb");a.prototype.setTime=N("ec");a.prototype.getTime=Q("ec");a.prototype.QW=N("PG");a.prototype.Tf=N("Jd");a.prototype.rl=N("Lj");a.prototype.Saa=N("$a");return a});
define("dz","require,eD,kd,bS,im,eQ,fC,gW".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("im"),f=a("eQ"),i=a("fC"),j=a("gW"),a=b.extend(d,function(a,b){d.call(this);this.set("state",f.K);this.P=new j(a,b);this.P.setTime(0);this.P.bind(c.Ia,this.j4,this,o)});a.prototype.clear=function(){i.remove(this.P);this.P.unbind(c.Ia,this.j4,this,o);this.set("state",f.K)};a.prototype.play=function(){i.add(this.P);this.set("state",f.N)};a.prototype.pause=function(){i.remove(this.P);this.get("state")==
f.N&&this.set("state",f.Ac)};a.prototype.stop=function(){i.remove(this.P);this.P.setTime(0);this.set("state",f.K)};a.prototype.QW=function(a){this.P.QW(a)};a.prototype.Px=function(){i.Paa(this.P,o)};a.prototype.ZD=function(){i.Paa(this.P,y)};a.prototype.rl=function(a){i.rl(this.P,a)};a.prototype.j4=function(){this.P.PG||this.set("state",f.K);this.trigger(new e(c.Ia))};return a});
define("gn",["require","dz","ig"],function(a){function b(){}var c=a("dz"),e=a("ig");b.mca=3;b.lca=2;b.kca=2;b.Aca=1;b.zva="mp3";b.Bva="ogg";b.Ava="none";b.create=function(a,f,e){return new c(b.Eta(a,f),e)};b.Eta=function(a,b){return a&&e.e$?a:b&&e.f$?b:a||b};return b});
define("gp","require,eD,kd,eQ,im,bS,dx,gn".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("im"),f=a("bS"),i=a("dx"),j=a("gn"),k=b.extend(d,function(a){d.call(this);this.set("state",e.K);this.ao=a||j.Aca;this.dj=m});k.wd="stateChange";i.A("Audio",k).B("Object").R({audio:"AudioResource",loop:"bool",state:"enum[stopped, playing, paused]"}).Sg({play:function(){this.Ig()},pause:function(){this.Jk()},stop:function(){this.Gj()}}).fc([c.Ia,k.wd]);k.prototype.Xt=function(){if(this.dj==m){var a=
this.get("audio");if(a){this.dj=j.create(a.get("mp3Url"),a.get("oggUrl"),this.ao);a=function(){this.dj.QW(this.get("loop",y))};a.call(this);this.bind(c.L("loop"),a,this);a=function(){this.get("application").get("mute",y)?this.dj.Px():this.dj.ZD()};a.call(this);this.get("application").bind(c.L("mute"),a,this,o);a=function(){this.set("state",this.dj.get("state"))};a.call(this);this.dj.bind(c.L("state"),a,this,o);this.dj.bind(c.Ia,this.Hja,this,o)}else this.dj=q}return this.dj};k.prototype.set=function(a,
b){if(a=="state"){var c=this.get("state"),j=this.dj?this.dj.get("state"):e.K;j!=c&&this.trigger(new f(k.wd,{oldState:c,state:j}))}d.prototype.set.call(this,a,b)};k.prototype.Fo=function(){return[]};k.prototype.Hja=function(){this.trigger(new f(c.Ia))};k.prototype.Ig=function(){var a=this.Xt();a&&a.play()};k.prototype.Gj=function(){var a=this.Xt();a&&a.stop()};k.prototype.Jk=function(){var a=this.Xt();a&&a.pause()};return k});
define("gh",["eD","dx","gp"],function(a,b,c){a=a.extend(c,function(a){c.call(this,a)});b.A("MediaAudio",a).B("Audio").R({autoplay:"bool"});return a});define("kt",["eD","dx","gh","gn"],function(a,b,c,e){a=a.extend(c,function(){c.call(this,e.kca)});b.A("PanoramaAudio",a).B("MediaAudio");return a});define("eX",["eD","kt","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("DirectionalPanoramaAudio",a).B("PanoramaAudio").R({yaw:"number",pitch:"number",maximumAngle:"number"});return a});
define("fE",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("DistancePanoramaCameraMovement",b).B("DistanceRotationalCameraMovement");return b});define("eM",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("DistanceRotationalCameraMovement",b).B("RotationalCameraMovement").R({hfovDelta:"number",pitchDelta:"number",yawDelta:"number"});return b});
define("x","require,cV,kd,eD,bS,em".split(","),function(a){function b(a,b,c,d,n){this.di=q;this.lR=a;this.Gd=e.L(this.lR);this.ZP=b;this.ga=c||window;this.tQ=d;this.f3=n;this.BQ=y}var c=a("cV"),e=a("kd"),d=a("eD");a("bS");a("em");b.prototype.unwatch=function(){this.GS(q)};b.prototype.GS=function(a){c(this.G1()).each(function(a){a&&a.unbind(this.Gd,this.S_,this)},this);this.di=a;c(this.G1()).each(function(a){a&&a.bind(this.Gd,this.S_,this,this.tQ)},this);this.K5()};b.prototype.G1=function(){return this.di?
c(this.di).isArray()?this.di:[this.di]:[]};b.prototype.K5=function(){this.f3&&this.f3.GS(this.oha())};b.prototype.oha=function(){return this.di==q?q:c(this.di).isArray()?c(this.di).map(function(a){return a?a.get(this.lR):q},this):this.di.get(this.lR)};b.prototype.S_=function(a){if(!this.BQ){try{this.BQ=o;this.K5();this.ZP.call(this.ga,a)}catch(b){d.DK("ChangeWatcher._changeHandler",b)}this.BQ=y}};b.watch=function(a,d,e,k,n){c.isString(d)&&(d=d.split("."));typeof n=="undefined"&&(n=y);if(d.length>
0){d=new b(d[0],e,k,n,b.watch(q,d.slice(1),e,k,n));d.GS(a);return d}return q};return b});
define("kq",["jquery.mod","eD","kd","d"],function(a,b,c,e){var d=b.extend(e,function(){e.call(this);this.Dc("DropDownArrow");this.q=q;this.rn=o;this.bind(c.pb,this.iga,this)});d.prototype.ta=function(){e.prototype.ta.call(this);this.f("color","#000000");this.f("direction",d.CL)};d.prototype.iga=function(){this.rn=o;this.hc()};d.prototype.Ba=function(){e.prototype.Ba.call(this);this.q||(this.q=a("<canvas/>"),this.q.css({position:"absolute",left:0,top:0}),this.Ja().append(this.q))};d.prototype.fa=function(){var a=
y;this.n("color")&&(a=o,this.o("color"));this.n("direction")&&(a=o,this.o("direction"));this.rn&&(a=o,this.rn=y);if(a){var a=this.jd(),b=this.hd(),c=this.j("color"),k=this.j("direction"),n=[0.5*a,0,a],k=k==d.CL?[b,0,0]:[0,b,b],g=this.q.get(0);g.width=a;g.height=b;g=g.getContext("2d");g.clearRect(0,0,a,b);g.beginPath();g.moveTo(n[0],k[0]);g.lineTo(n[1],k[1]);g.lineTo(n[2],k[2]);g.fillStyle=c;g.fill()}e.prototype.fa.call(this)};d.CL="down";d.Iva="up";return d});
define("fn","eD,bS,bc,S,kd,c,eK,jM,kq,gj".split(","),function(a,b,c,e,d,f,i,j,k,n){a=a.extend(j,function(){j.call(this);this.Dc("DropDownButton");this.kp=this.la=q;this.QQ=o;this.set("autoRolledOver",o);this.set("autoPressed",o);this.set("childrenInteractionEnabled",y);this.set("contentOpaque",o);this.set("cursor",e.Qd);this.bind(d.U,this.fP,this)});a.prototype.ta=function(){j.prototype.ta.call(this);this.f("arrowColor","#000000");this.f("arrowBeforeLabel");this.f("arrowWidth",9);this.f("arrowHeight",
5);this.f("arrowGap",5);this.f("shadow",y);this.f("layout",f.$d);this.f("verticalAlign",c.$b);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",i.t,"borderColor");this.h("rollOverArrowColor",i.t,"arrowColor");this.h("rollOverBackgroundColor",i.t,"backgroundColor");this.h("rollOverBackgroundColorRatios",i.t,"backgroundColorRatios");this.h("rollOverShadow",i.t,"shadow");this.h("pressedBorderColor",i.va,"borderColor");this.h("pressedArrowColor",
i.va,"arrowColor");this.h("pressedBackgroundColor",i.va,"backgroundColor");this.h("pressedBackgroundColorRatios",i.va,"backgroundColorRatios");this.h("pressedShadow",i.va,"shadow");this.h("pressedRollOverBorderColor",i.Va,"borderColor");this.h("pressedRollOverArrowColor",i.Va,"arrowColor");this.h("pressedRollOverBackgroundColor",i.Va,"backgroundColor");this.h("pressedRollOverBackgroundColorRatios",i.Va,"backgroundColorRatios");this.h("pressedRollOverShadow",i.Va,"shadow");this.h("pressedBorderColor",
i.F,"borderColor");this.h("pressedArrowColor",i.F,"arrowColor");this.h("pressedBackgroundColor",i.F,"backgroundColor");this.h("pressedBackgroundColorRatios",i.F,"backgroundColorRatios");this.h("pressedShadow",i.F,"shadow")};a.prototype.set=function(a,b){if(a=="label"&&this.get("label")!=b){this.QQ=o;this.hc()}j.prototype.set.call(this,a,b)};a.prototype.Ba=function(){j.prototype.Ba.call(this);if(!this.la){this.la=new n;this.la.set("width","100%");this.ia(this.la)}if(!this.kp){this.kp=new k;this.kp.set("direction",
k.CL);this.ia(this.kp)}};a.prototype.fP=function(){this.open();this.trigger(new b(d.OPEN))};a.prototype.open=function(){this.unbind(d.U,this.fP,this);this.zB(o)};a.prototype.close=function(){this.bind(d.U,this.fP,this);this.zB(y)};a.prototype.fa=function(){if(this.QQ){this.la.set("text",this.get("label"));this.QQ=y}this.Xa(["horizontalAlign","fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius",
"textShadowOpacity"],{},[this.la],o,o);if(this.n("arrowGap")){this.set("gap",this.j("arrowGap"));this.o("arrowGap")}if(this.n("arrowColor")){this.kp.set("color",this.j("arrowColor"));this.o("arrowColor")}if(this.n("arrowBeforeLabel")){this.j("arrowBeforeLabel")==o?this.Ni(this.kp,0):this.Ni(this.la,0);this.o("arrowBeforeLabel")}if(this.n("arrowWidth")){this.kp.set("width",this.j("arrowWidth"));this.o("arrowWidth")}if(this.n("arrowHeight")){this.kp.set("height",this.j("arrowHeight"));this.o("arrowHeight")}j.prototype.fa.call(this)};
return a});define("fd",["cV","eD","jM","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.fb={layout:e.Me};a.defaults(d.fb,c.fb);d.prototype.ta=function(){this.jj(d.fb)};return d});
define("hZ","require,eD,bS,bc,S,fs,kd,jM,fd,gj".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("bc"),d=a("S"),f=a("fs"),i=a("kd"),j=a("jM"),k=a("fd"),n=a("gj"),a=b.extend(j,function(){j.call(this);this.Dc("DropDownPopup");this.ac=q;this.cF=y;this.Ga=q;this.bA=[];this.Jq=o});a.prototype.open=function(a){this.ac=a;this.cF=o;this.Pa().Ni(this,this.Pa().Ta().length-1);this.set("overIndex",-1);this.set("visible",o);this.bind(i.ob,this.Wb,this);this.Pa().bind(i.Lb,this.X2,this);this.Pa().bind(i.pb,
this.hb,this)};a.prototype.close=function(){this.ac=q;this.cF=o;this.set("visible",y);this.Ga.set("overflow",f.Pr);this.Ga.set("contentOpaque",o);this.unbind(i.ob,this.Wb,this);this.Pa().unbind(i.Lb,this.X2,this);this.Pa().bind(i.pb,this.hb,this)};a.prototype.Ba=function(){j.prototype.Ba.call(this);if(!this.Ga){this.Ga=new k;this.Ga.set("overflow",f.Pr);this.Ga.bind(i.pb,this.hb,this);this.Ga.bind(i.Bl,this.Aq,this);this.ia(this.Ga)}};a.prototype.hb=function(){this.S7()};a.prototype.Wb=function(){this.MS=
y};a.prototype.Aq=function(){this.MS=o};a.prototype.X2=function(){this.get("overIndex")==-1&&(!this.MS||!this.pj)&&this.trigger(new c(i.tr));this.MS=y};a.prototype.Wja=function(a){this.set("overIndex",this.MP(a.source))};a.prototype.Xja=function(a){a=this.MP(a.source);this.get("overIndex")==a&&this.set("overIndex",-1)};a.prototype.Vja=function(a){a=this.MP(a.source);this.set("overIndex",a);this.set("selectedIndex",a);this.trigger(new c(i.Uh))};a.prototype.MP=function(a){for(var b=0;b<this.bA.length;b++)if(this.bA[b]==
a)return b;return-1};a.prototype.ta=function(){j.prototype.ta.call(this);this.f("visible",y);this.f("width","100%");this.f("height","100%");this.f("includeInLayout",y);this.f("items",[]);this.f("selectedIndex",-1);this.f("overIndex",-1);this.f("popUpGap",0);this.f("popUpBackgroundColor");this.f("popUpBackgroundOpacity");this.f("rollOverPopUpBackgroundColor");this.f("selectedPopUpBackgroundColor");this.f("popUpFontColor");this.f("rollOverPopUpFontColor");this.f("selectedPopUpFontColor");this.f("popUpShadow",
o);this.f("popUpShadowBlurRadius");this.f("popUpShadowColor");this.f("popUpShadowHorizontalLength");this.f("popUpShadowOpacity");this.f("popUpShadowSpread");this.f("popUpShadowVerticalLength");this.f("fontFamily");this.f("fontSize");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.f("buttonWidth")};a.prototype.fa=function(){var a=
y,b=y;if(this.n("items")){for(var a=this.j("items")||[],f=this.bA.length;f<a.length;f++){var c=new n;c.M({width:"100%",paddingLeft:5,paddingRight:5,paddingBottom:2,paddingTop:2,cursor:d.Qd});c.bind(i.fk,this.Wja,this);c.bind(i.Ef,this.Xja,this);c.bind(i.U,this.Vja,this);this.bA.push(c)}c=this.Ga.Ta();for(f=a.length;f<c.length;f++)this.Ga.removeChild(c[f]);for(f=c.length;f<a.length;f++)this.Ga.ia(this.bA[f]);for(f=0;f<a.length;f++)c[f].set("text",a[f]);this.o("items");b=a=o}if(this.n("selectedIndex")){this.o("selectedIndex");
a=o}for(var e=["horizontalAlign","popUpBackgroundOpacity","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight","popUpPaddingTop","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],f=0;f<e.length;f++){c=e[f];if(this.n(c)){this.o(c);b=o}}if(b){e={fontFamily:this.j("fontFamily"),fontSize:this.j("fontSize"),fontWeight:this.j("fontWeight"),fontStyle:this.j("fontStyle"),
horizontalAlign:this.j("horizontalAlign"),textDecoration:this.j("textDecoration"),textShadowColor:this.j("textShadowColor"),textShadowHorizontalLength:this.j("textShadowHorizontalLength"),textShadowVerticalLength:this.j("textShadowVerticalLength"),textShadowBlurRadius:this.j("textShadowBlurRadius"),textShadowOpacity:this.j("textShadowOpacity"),paddingBottom:this.j("popUpPaddingBottom"),paddingLeft:this.j("popUpPaddingLeft"),paddingRight:this.j("popUpPaddingRight"),paddingTop:this.j("popUpPaddingTop"),
backgroundOpacity:this.j("popUpBackgroundOpacity")};c=this.Ga.Ta();for(f=0;f<c.length;f++)c[f].M(e)}e=["selectedIndex","overIndex","popUpBackgroundColor","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor"];for(f=0;f<e.length;f++){c=e[f];if(this.n(c)){this.o(c);a=o}}if(a)for(var a=this.j("popUpBackgroundColor"),e=this.j("rollOverPopUpBackgroundColor")||a,b=this.j("selectedPopUpBackgroundColor")||a,k=this.j("popUpFontColor"),
u=this.j("rollOverPopUpFontColor")||k,v=this.j("selectedPopUpFontColor")||k,x=this.j("selectedIndex"),w=this.j("overIndex"),c=this.Ga.Ta(),f=0;f<c.length;f++)f==x?c[f].M({fontColor:v,backgroundColor:b}):f==w?c[f].M({fontColor:u,backgroundColor:e}):c[f].M({fontColor:k,backgroundColor:a});if(this.cF||this.n("popUpGap")||this.n("buttonWidth")){this.ac&&this.Ga.set("minWidth",this.ac.ua());this.o("popUpGap");this.S7();this.cF=y}this.Xa(["popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength",
"popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{popUpShadow:"shadow",popUpShadowBlurRadius:"shadowBlurRadius",popUpShadowColor:"shadowColor",popUpShadowHorizontalLength:"shadowHorizontalLength",popUpShadowOpacity:"shadowOpacity",popUpShadowSpread:"shadowSpread",popUpShadowVerticalLength:"shadowVerticalLength"},[this.Ga],o,o);this.H7();j.prototype.fa.call(this)};a.prototype.S7=function(){if(this.ac){var a=this.Pa(),b=this.ac.Era(a),c=this.ac.ua(),d=this.ac.Za(),j=this.j("popUpGap"),
k=this.Ga.Da,i=this.Ga.Ma,n=a.Za()-(b.top+d+j)-5,x=b.top-5-j,w=this.j("horizontalAlign");if(i<=n){this.Jq=o;this.Ga.set("top",b.top+d+j);this.Ga.set("maxHeight",m);this.Ga.set("overflow",f.Pr)}else if(i<=x){this.Jq=y;this.Ga.set("top",b.top-i-j);this.Ga.set("maxHeight",m);this.Ga.set("overflow",f.Pr)}else{if(n>=x){this.Jq=o;this.Ga.set("top",b.top+d+j);this.Ga.set("maxHeight",n)}else{this.Jq=y;this.Ga.set("top",b.top-x+j);this.Ga.set("maxHeight",x)}this.Ga.set("overflow",f.Bl)}d=w==e.pc?b.left+Math.round((c-
k)*0.5):w==e.Fa?b.left+c-k:b.left;d<0?d=b.left:b.left+k>a.ua()&&(d=b.left+c-k);this.Ga.set("left",d);this.H7()}};a.prototype.H7=function(){var a=this.j("popUpBorderRadius");this.Ga.M({borderTopRadius:this.Jq?0:a,borderBottomRadius:this.Jq?a:0});for(var b=this.Ga.Ta(),f=0;f<b.length;f++){var c=f==0,d=f==b.length-1;b[f].M({borderTopRadius:!this.Jq&&c?a:0,borderBottomRadius:this.Jq&&d?a:0})}};return a});
define("km","require,eD,bS,kd,jM,fn,hZ".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("kd"),d=a("jM"),f=a("fn"),i=a("hZ"),a=b.extend(d,function(){d.call(this);this.Dc("DropDown");this.Uz=y;this.ac=this.lg=q;this.G6=o;this.Vc=-1;this.Hj=y});a.prototype.ta=function(){d.prototype.ta.call(this);this.f("prompt","");this.f("label","");this.f("items",[]);this.f("selectedIndex",-1);this.f("arrowBeforeLabel");this.f("arrowWidth",9);this.f("arrowHeight",5);this.f("arrowGap",5);this.f("borderRadius",5);
this.f("borderSize",1);this.f("backgroundColorDirection","vertical");this.f("horizontalAlign","left");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.f("popUpGap",
0);this.f("popUpBorderRadius");this.f("popUpPaddingBottom",2);this.f("popUpPaddingLeft",5);this.f("popUpPaddingRight",5);this.f("popUpPaddingTop",2);this.f("popUpShadow",o);this.f("popUpShadowBlurRadius");this.f("popUpShadowColor");this.f("popUpShadowHorizontalLength");this.f("popUpShadowOpacity");this.f("popUpShadowSpread");this.f("popUpShadowVerticalLength");this.f("popUpBackgroundColor","#FFFFFF");this.f("popUpBackgroundOpacity");this.f("rollOverPopUpBackgroundColor");this.f("selectedPopUpBackgroundColor");
this.f("popUpFontColor","#555555");this.f("rollOverPopUpFontColor");this.f("selectedPopUpFontColor");this.f("borderColor","#AAAAAA");this.f("arrowColor","#000000");this.f("backgroundColor",["#FAFAFA","#E5E5E5"]);this.f("backgroundColorRatios",[0,1]);this.f("shadow",y);this.f("rollOverBorderColor");this.f("rollOverArrowColor");this.f("rollOverBackgroundColor");this.f("rollOverBackgroundColorRatios");this.f("rollOverShadow");this.f("pressedBorderColor");this.f("pressedArrowColor");this.f("pressedBackgroundColor");
this.f("pressedBackgroundColorRatios");this.f("pressedShadow");this.f("pressedRollOverBorderColor");this.f("pressedRollOverArrowColor");this.f("pressedRollOverBackgroundColor");this.f("pressedRollOverBackgroundColorRatios");this.f("pressedRollOverShadow")};a.prototype.Ba=function(){d.prototype.Ba.call(this);if(!this.ac){this.ac=new f;this.ac.bind(e.pb,this.Lja,this);this.ac.bind(e.OPEN,this.fka,this);this.ac.bind(e.tr,this.qR,this);this.ac.bind(e.Df,this.Kja,this);this.ac.set("width","100%");this.ac.set("height",
"100%");this.ia(this.ac)}if(!this.lg){this.lg=new i;this.lg.bind(e.tr,this.qR,this);this.lg.bind(e.Uh,this.tka,this);this.Pa().ia(this.lg)}};a.prototype.Lja=function(){this.G6=o;this.hc()};a.prototype.fka=function(){this.ac.open();this.lg.set("selectedIndex",this.get("selectedIndex"));this.lg.open(this.ac)};a.prototype.qR=function(){this.ac.close();this.lg.close()};a.prototype.Kja=function(){this.ac.close();this.lg.close()};a.prototype.tka=function(){this.set("selectedIndex",this.lg.get("selectedIndex"));
this.qR();this.Hj=o};a.prototype.fa=function(){var a=y;if(this.n("prompt")||this.n("label")){a=o;this.o("label");this.o("prompt")}if(this.n("selectedIndex")||this.n("items")){var a=o,b=this.j("selectedIndex"),f=this.j("items");b>=0&&b>=f.length&&(b=-1);this.set("selectedIndex",b);this.lg.set("items",this.j("items"));this.lg.set("selectedIndex",this.j("selectedIndex"));this.o("items");this.o("selectedIndex");if(this.Hj){this.Hj=y;this.trigger(new c(e.$))}}if(a){a=this.j("label");if(!a){b=this.j("selectedIndex");
a=b<0?this.j("prompt"):this.j("items")[b]}this.ac.set("label",a)}if(this.G6){this.lg.set("minWidth",this.ac.ua());this.lg.set("buttonWidth",this.ac.ua())}this.Xa(["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","horizontalAlign","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],{},[this.ac,this.lg],o,o);this.Xa(["popUpBorderRadius","popUpGap","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight",
"popUpPaddingTop","popUpBackgroundColor","popUpBackgroundOpacity","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor","popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength","popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{},[this.lg],o,o);this.Xa(["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.ac],o,o);d.prototype.fa.call(this)};return a});
define("dQ","require,eD,x,kd,km,dx,cV".split(","),function(a){var b=a("eD"),c=a("x"),e=a("kd"),d=a("km"),f=a("dx"),i=a("cV"),a=b.extend(d,function(){d.call(this);this.Cb=q;this.E2=[];this.bind(e.$,this.Oja,this)});f.A("DropDown",a).B("UIComponent").R({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"}).To(["fontSize"]).fc([e.$]);a.prototype.set=function(a,b){if(a=="playList"){if(this.Cb)for(this.Cb.unbind("change",this.Vn,this);this.E2.length;)this.E2.shift().unwatch();
if(this.Cb=b){c.watch(this.Cb,"items.label",this.nJ,this);c.watch(this.Cb,"items.media.label",this.nJ,this);this.nJ();this.Cb.bind("change",this.Vn,this);this.Vn()}else this.nJ()}d.prototype.set.call(this,a,b)};a.prototype.nJ=function(){this.Cb?this.set("items",i(this.Cb.get("items")).map(function(a){return a.get("label")||a.get("media")&&a.get("media").get("label")})):this.set("items",[])};a.prototype.Vn=function(){this.set("selectedIndex",this.Cb.get("selectedIndex"))};a.prototype.Oja=function(){this.Cb&&
this.Cb.set("selectedIndex",this.get("selectedIndex"))};return a});
define("df","eD,im,kd,bS,X,jP,bq".split(","),function(a,b,c,e,d,f,i){var j={},k=a.extend(b,function(){b.call(this);this.Ob=m;this.Yk=[];this.k="stopped";this.set("easing","linear");this.set("duration",1E3)});k.prototype.play=function(a){a||(a=j);if(!this.fu(a))if(this.k=="stopped"||this.Yk.indexOf(a)<0){this.k="playing";this.Yk.push(a);this.ve=0;this.Ob=Math.max(this.get("duration",1E3),1);this.ue=new f(this.get("easing","linear"),[new i("pos",0,1)],this.Ob);this.ue.setTime(this.ve);this.Lw();this.Eq();
this.XH()}else this.k="playing"};k.prototype.reverse=function(){target||(target=j);if(!this.ssa())if(this.k=="stopped"||this.Yk.indexOf(target)<0){this.k="playingReverse";this.Yk.push(target);this.ve=this.Ob=Math.max(this.get("duration",1E3),0);this.ue=new f(this.get("easing","linear"),[new i("pos",0,1)],this.Ob);this.ue.setTime(this.ve);this.Lw();this.Eq();this.XH()}else this.k="playingReverse"};k.prototype.end=function(){if(this.k!="stopped"){this.ve=this.Ob;this.Eq();this.XH()}};k.prototype.fu=
function(a){return this.k=="playing"&&this.Yk.indexOf(a)>=0};k.prototype.ssa=function(){return this.k=="playingReverse"&&this.Yk.indexOf(target)>=0};k.prototype.ig=function(a){if(this.k!="stopped"){this.ve=this.k=="playing"?Math.min(this.Ob,this.ve+a):Math.max(0,this.ve-a);this.ue.setTime(this.ve);this.Eq();this.XH()}};k.prototype.Bx=function(){return this.ue.nb("pos")};k.prototype.Dp=function(a){if(this.Yk)for(var b=0;b<this.Yk.length;b++)a.call(this,this.Yk[b],b)};k.prototype.Lw=function(){this.trigger(new e(k.TX))};
k.prototype.Eq=function(){this.trigger(new e(k.NX))};k.prototype.Jw=function(){this.trigger(new e(k.Vf))};k.prototype.Kw=function(){this.trigger(new e(k.SX))};k.prototype.XH=function(){if(this.k=="playingReverse"&&this.ve<=0){this.Kw();this.k="stopped";this.Yk=[]}else if(this.k=="playing"&&this.ve>=this.Ob){this.Jw();this.k="stopped";this.Yk=[]}else this.k!="stopped"&&d.Ha(this.ig,this)};k.TX="start";k.NX="frame";k.Vf="end";k.SX="reverseEnd";return k});
define("bn",["eD","kd","bS","dx","df"],function(a,b,c,e,d){a=a.extend(d,function(){d.call(this)});e.A("Effect",a).B("Object").R({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]"}).Rg([d.TX,d.NX,d.Vf,d.SX]).Sg({play:function(){return d.prototype.play.apply(this,arguments)},reverse:function(){return d.prototype.reverse.apply(this,arguments)},getPosition:function(){return d.prototype.Bx.apply(this,
arguments)}});return a});
define("bd",["eD","df"],function(a,b){var c=a.extend(b,function(){b.call(this);this.jN=this.iN=q});c.prototype.Lw=function(){b.prototype.Lw.call(this);this.iN=[];this.jN=[];this.Dp(function(a){this.iN.push(this.get("alphaFrom",a.Ji()));this.jN.push(this.get("alphaTo",a.Ji()))});this.jI()};c.prototype.Eq=function(){b.prototype.Eq.call(this);this.jI()};c.prototype.jI=function(){this.Dp(function(a,b){var f=this.iN[b],f=f+(this.jN[b]-f)*this.Bx(),c=0<a.Ji()&&a.dd;!c&&0<f?(a.Pi(0),a.jf(o),a.Pi(f)):0==
f?(a.jf(y),a.Pi(1)):a.Pi(f)})};c.prototype.Jw=function(){this.jI();b.prototype.Jw.call(this)};c.prototype.Kw=function(){this.jI();b.prototype.Kw.call(this)};return c});define("jq",["eD","bd"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",0);this.set("alphaTo",1)})});define("jA",["eD","jq","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("FadeInEffect",a).B("Effect");return a});
define("jD",["eD","bd"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",1);this.set("alphaTo",0)})});define("gJ",["eD","jD","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("FadeOutEffect",a).B("Effect");return a});
define("cb",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this);this.set("enabled",o);this.set("interactionEnabled",o);this.set("enabledInCardboard",y);this.set("enabledInStandard",o);this.set("enabledInSurfaceSelection",o);this.set("items",[]);this.set("rollOverItems",[]);this.set("maps",[]);this.set("rollOverMaps",[]);this.set("areas",[]);this.set("fadeInDuration",200);this.set("fadeOutDuration",200);this.be=[]});a.A("HotspotPanoramaOverlay",
b).B("PanoramaOverlay").R({centerOverDisplay:"bool",rollOverDisplay:"bool",useHandCursor:"bool",enabled:"bool",enabledInSurfaceSelection:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",rollOverEffect:"Effect",items:"array[or[FlatHotspotPanoramaOverlayImage, HotspotPanoramaOverlayImage]]",rollOverItems:"array[or[FlatHotspotPanoramaOverlayImage, HotspotPanoramaOverlayImage]]",maps:"array[or[FlatHotspotPanoramaOverlayMap, HotspotPanoramaOverlayMap]]",
rollOverMaps:"array[or[FlatHotspotPanoramaOverlayMap, HotspotPanoramaOverlayMap]]",areas:"array[or[FlatHotspotPanoramaOverlayArea, HotspotPanoramaOverlayArea]]"});b.prototype.set=function(a,b){switch(a){case "enabledInCardboard":this.set("enabledInVR",b);break;case "rollOverEffect":case "areas":this.Ola(),this.be=[]}c.prototype.set.call(this,a,b);switch(a){case "enabledInCardboard":this.set("enabledInVR",b);break;case "rollOverEffect":case "areas":this.get("rollOverEffect")&&this.get("areas",[]).length&&
this.sda()}};b.prototype.sda=function(){this.get("areas",[]).forEach(function(a){a.bind(e.Ic,this.q3,this,o);a.bind(e.jc,this.p3,this,o)}.bind(this))};b.prototype.Ola=function(){this.get("areas",[]).forEach(function(a){a.unbind(e.Ic,this.q3,this,o);a.unbind(e.jc,this.p3,this,o)}.bind(this))};b.prototype.q3=function(a){0>this.be.indexOf(a.source)&&(this.be.push(a.source),1==this.be.length&&(a=this.get("rollOverEffect"))&&a.play())};b.prototype.p3=function(a){a=this.be.indexOf(a.source);0<=a&&(this.be.splice(a,
1),0==this.be.length&&(a=this.get("rollOverEffect"))&&a.reverse())};return b});define("iM",["require","eD","dx","cb"],function(a){var b=a("eD"),c=a("dx"),e=a("cb"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlay",a).B("HotspotPanoramaOverlay");return a});
define("t",["eD","im","dx","kd"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.set("displayTooltipInTouchScreens",o)});c.A("HotspotPanoramaOverlayArea",a).B("Object").R({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",displayTooltipInTouchScreens:"bool",useHandCursor:"bool"}).fc([e.Ic,e.jc,e.fk,e.Ef]).Rg([e.U]);return a});define("dL",["dx","t"],function(a,b){a.A("FlatHotspotPanoramaOverlayArea",b).B("HotspotPanoramaOverlayArea");return b});
define("cS",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(a,b,f,i,j){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("roll",f);this.set("opacity",i!==m?i:1);j!==m&&this.set("timestamp",j)});a.A("FlatPanoramaOverlayPlaybackPosition",b).B("Object").R({opacity:"number",pitch:"number",roll:"number",timestamp:"number",yaw:"number"});return b});
define("el",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(a,b,f,i,j,k,n,g,l){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);i!==m&&this.set("rotationY",i);j!==m&&this.set("roll",j);k!==m&&this.set("hfov",k);n!==m&&this.set("vfov",n);this.set("opacity",g!==m?g:1);l!==m&&this.set("timestamp",l)});a.A("PanoramaOverlayPlaybackPosition",b).B("Object").R({opacity:"number",yaw:"number",pitch:"number",rotationX:"number",
rotationY:"number",roll:"number",hfov:"number",vfov:"number",timestamp:"number"});return b});
define("L",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(a,b,f,i,j,k,n){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);i!==m&&this.set("rotationY",i);j!==m&&this.set("rotationZ",j);k!==m&&this.set("hfov",k);n!==m&&this.set("timestamp",n)});a.A("PopupPanoramaOverlayPlaybackPosition",b).B("Object").R({yaw:"number",pitch:"number",rotationX:"number",rotationY:"number",rotationZ:"number",hfov:"number",timestamp:"number"});
return b});
define("hi",["require","im","cS","el","L"],function(a){var b=a("im"),c=a("cS"),e=a("el"),d=a("L");return{lra:function(a){return this.UP(a,this.Aga)},qK:function(a){return this.UP(a,this.ala)},Cra:function(a){return this.UP(a,this.hla)},Aga:function(a){return new c(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)},ala:function(a){function c(d,e){return b.prototype.get.call(a,d,e)}return new e(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)},hla:function(a){function c(d,e){return b.prototype.get.call(a,d,e)}return new d(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("rotationZ",0),c("hfov",45),0)},UP:function(a,c){var d=b.prototype.get.call(a,"playbackPositions")||[];return 0<d.length?d.slice().sort(function(a,b){return a.get("timestamp")-b.get("timestamp")||d.indexOf(a)-d.indexOf(b)}):[c(a)]}}});
define("gr","require,eD,im,kd,dx,hi".split(","),function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("dx"),f=a("hi"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Vd=m});d.A("FlatHotspotPanoramaOverlayImageBase",a).B("Object").R({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"}).fc([e.Le,e.Df]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Vd===m)this.Vd=f.lra(this);return this.Vd}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=y;switch(a){case "opacity":case "distance":case "pitch":case "roll":case "yaw":case "playbackPositions":this.Vd=m;f=o}c.prototype.set.call(this,
a,b);f&&a!="playbackPositions"&&this.trigger(e.L("playbackPositions"))};return a});define("q",["require","eD","dx","gr"],function(a){var b=a("eD"),c=a("dx"),e=a("gr"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayImage",a).B("FlatHotspotPanoramaOverlayImageBase");return a});
define("cP",["require","eD","dx","gr"],function(a){var b=a("eD"),c=a("dx"),e=a("gr"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayMap",a).B("FlatHotspotPanoramaOverlayImageBase");return a});define("ct",["cV","eD","jM","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.fb={layout:e.ap};a.defaults(d.fb,c.fb);d.prototype.ta=function(){this.jj(d.fb)};return d});
define("gM",["cV","eD","ct","dx"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("GridContainer",a).B("UIComponent").R({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("gz","require,cV,jquery.mod,bS,em,kd,fB,iB,hn,fV,eD".split(","),function(a){function b(){}function c(a){this.jta=a;this.Rj=[];this.Xd=0}var e=a("cV");a("jquery.mod");var d=a("bS"),f=a("em"),i=a("kd"),j=a("fB"),k=a("iB"),n=a("hn"),g=a("fV"),l=a("eD").extend(f,function(a){f.call(this);this.url=a;this.vW=this.Xd=0;this.status=l.BM;this.Xo=q});l.prototype.iW=function(a){this.vW=this.vW+a};l.prototype.Ox=function(a){this.Xd=this.Xd+a};l.prototype.start=function(){this.status=l.GE;n.jX(this.url)?
this.Zp():this.sj=g.add(this.url,j.cE,this.ema.bind(this),this.O_.bind(this))};l.prototype.ema=function(){this.Xo=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.Xo.open("GET",this.url);this.Xo.onreadystatechange=function(){this.Xo.readyState>3&&this.Zp()}.bind(this);this.Xo.send()};l.prototype.O_=function(){if(this.Xo){this.Xo.abort();this.Xo=q}};l.prototype.stop=function(){if(this.status==l.GE){this.status=l.BM;this.O_();this.sj&&this.sj.cancel()}};l.prototype.Zp=
function(){this.Xo=q;if(this.sj){this.sj.loaded();this.sj=q}this.status=l.vca;this.trigger(new d(i.T))};l.BM="not loaded";l.GE="loading";l.vca="loaded";c.prototype.Upa=function(a){a.forEach(function(a){if(this.Rj.indexOf(a)<0){this.Rj.push(a);a.Ox(this.Xd);a.iW(1)}}.bind(this))};c.prototype.sta=function(a){var b=this.Rj;this.Rj=[];b.forEach(function(b){if(a.indexOf(b)<0)this.Rj.push(b);else{b.Ox(-this.Xd);b.iW(-1)}}.bind(this))};c.prototype.lta=function(){this.Rj.forEach(function(a){a.Ox(-this.Xd);
a.iW(-1)}.bind(this));this.Rj=[];this.Xd=0};c.prototype.Ox=function(a){this.Xd=this.Xd+a;this.Rj.forEach(function(b){b.Ox(a)})};b.sc=[];b.w5=[];b.Jga=0;b.A8=function(a,b){this.fI(a).Upa(b.map(function(a){return this.P(a)}.bind(this)));this.RI();this.G()};b.vta=function(a,b){this.fI(a).sta(b.map(function(a){return this.P(a)}.bind(this)));this.RI();this.G()};b.mta=function(a){this.fI(a).lta();this.RI();this.G()};b.HK=function(a,b){this.fI(a).Ox(b);this.RI();this.G()};b.RI=function(){this.sc.sort(function(a,
b){return b.Xd-a.Xd})};b.G=function(a){if(this.enabled()&&(a||!this.hm))if(a){this.hm&&clearTimeout(this.hm);this.hm=q;var a=this.vha(),b=this.wha();e(a).difference(b).forEach(function(a){a.stop()});e(b).difference(a).forEach(function(a){a.start()})}else this.hm=setTimeout(function(){this.hm=q;this.G(o)}.bind(this),1E3)};b.hm=q;b.vha=function(){return this.sc.filter(function(a){return a.status==l.GE})};b.wha=function(){for(var a=this.xha(),b=[],f=0;f<this.sc.length&&b.length<a;f++){var c=this.sc[f];
c.vW>0&&(c.status==l.BM||c.status==l.GE)&&b.push(c)}return b};b.xha=function(){return this.Jga>0?0:1};b.fI=function(a){var b=e(this.w5).find(function(b){return b.jta==a});if(!b){b=new c(a);this.w5.push(b)}return b};b.P=function(a){var b=e(this.sc).find(function(b){return b.url==a});if(!b){b=new l(a);b.bind(i.T,this.G,this);this.sc.push(b)}return b};b.enabled=function(a){if(a===m)return b.Qfa||b.Rfa?y:b.jP!==m?b.jP:b.V;b.V=a};b.V=o;b.aX=function(a){b.jP=a.get(TDV.PlayerSettings.BACKGROUND_PRELOAD_ENABLED)};
b.jP=m;b.Rfa=k.um("disable-background-preload",y);b.Qfa=y;return b});define("db",["eD","im","dx","gz"],function(a,b,c,e){var d=a.extend(b,function(){b.call(this);this.hU=a.Jo(this.hU,this)});c.A("Media",d).B("Object").R({label:"string",thumbnailUrl:"string"}).Si(["thumbnailUrl"]);d.prototype.hU=function(){e.A8(this,this.Fo())};d.prototype.Fo=function(){return[]};d.prototype.uta=function(){e.mta(this)};d.prototype.set=function(a,c){b.prototype.set.call(this,a,c);this.hU()};return d});
define("fZ",["require","cV","eD","dx","db"],function(a){a("cV");var b=a("eD"),c=a("dx"),e=a("db"),a=b.extend(e,function(){e.call(this);this.JG=this.Mw=m;this.set("distanceToFloor",1.7)});c.A("Panorama",a).B("Media").R({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.PP();case "frames":return this.iha()}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.PP=function(){var a=e.prototype.get.call(this,"overlays");a||(a=[]);return this.nT(a)};a.prototype.nT=function(a){if(this.Mw===m||this.JG!=a){var b=function(a){return c.sb("PopupPanoramaOverlay",
a)},e=function(a){return c.sb("LensFlarePanoramaOverlay",a)};this.JG=a;this.Mw=[].concat(a.filter(function(a){return!(b(a)||e(a))}),a.filter(e),a.filter(b))}return this.Mw};a.prototype.X9=function(){return 0<this.get("overlays").filter(function(a){return c.sb("TripodCapPanoramaOverlay",a)}).length};a.prototype.M9=function(){return 0<this.get("overlays").filter(function(a){return c.sb("CeilingCapPanoramaOverlay",a)}).length};a.prototype.m$=function(){if(!this.l$())return y;var a=this.get("pitch",0),
b=this.get("vfov",180);if(179.9<=b)return o;var c=this.M9()?90:a+0.5*b,a=this.X9()?-90:a-0.5*b;return 179.9<=c-a?o:y};a.prototype.l$=function(){return 359.9<=this.get("hfov")&&!this.get("partial")};a.prototype.lK=R(0);a.prototype.iha=function(){var a=e.prototype.get.call(this,"frames",[]);a.forEach(function(a){a.Zpa(this)}.bind(this));return a};return a});
define("jk",["require","eD","dx","fZ"],function(a){var b=a("eD"),c=a("dx"),e=a("fZ"),a=b.extend(e,function(){e.call(this)});c.A("HDRPanorama",a).B("Panorama").R({minimumLuminance:"number",maximumLuminance:"number",luminanceChangeTime:"number",maxLuminanceChangeSpeed:"number"});a.prototype.lK=function(){var a=this.get("frames")||[];return Math.floor((a.length-1)/2)};return a});
define("iq",["eD","im","dx","kd"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});c.A("HotspotMapOverlayArea",a).B("Object").R({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",useHandCursor:"bool"}).fc([e.Ic,e.jc]).Rg([e.U]);return a});
define("is",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),e=b.extend(c,function(){c.call(this)});a.A("ImageResourceLevel",e).B("Object").R({url:"string",width:"number",height:"number",grayscale:"bool",tags:"or[array[enum[preload,mobile,ipadpro,oculusgo,mobilevr,ondemand]], enum[preload,mobile,ipadpro,oculusgo,mobilevr,ondemand]]"}).Si(["url"]);e.prototype.get=function(a,b){switch(a){case "tags":var i=c.prototype.get.call(this,a);i||(i=[]);Array.isArray(i)||(i=[i]);0>i.indexOf(e.Vm)&&
c.prototype.get.call(this,"grayscale")&&(i=i.concat([e.Vm]));return i}return c.prototype.get.call(this,a,b)};e.prototype.W9=function(a){return 0<=this.get("tags").indexOf(a)};e.Vm="preload";e.YY="mobile";e.XY="ipadpro";e.EM="mobilevr";e.ZY="mobilevr2gen";e.FM="ondemand";return e});
define("ef",["require","is","u","iB"],function(a){var b=a("is"),c=a("u"),e=a("iB");return{gl:function(a){return this.yx(a,"load")},au:function(a){return this.yx(a,"preload")},Gx:function(a){return this.gl(a)!=this.au(a)},yx:function(a,b){var c=a.get("levels")||[],e=this.Sga(c),e=this.Nha(b,e),c=this.xga(c,b),k=this.N1(c,e[0],e[1],this.Lha(b));k||(k=this.N1(c,e[0],e[1],m));return k},xga:function(a,f){"preload"==f?a=this.uz(a,b.Vm):"load"==f&&(a=this.wga(a,b.Vm));c.br()&&(a=this.uz(a,b.XY));c.AK()&&
(a=this.uz(a,b.ZY));c.gf()&&(a=this.uz(a,b.EM));c.Qa()&&(a=this.uz(a,b.YY));return a},Sga: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")},Nha:function(a,b){if("preload"==a)return[0,0];var e=1E4;this.Cga()||(c.gf()?e=2048:c.br()?e=1280:c.Qa()&&(e=1024));return 1>b?[e*b,e]:[e,e/b]},Lha:function(a){if("load"==a)return y},Cga:function(){return c.br()&&e.um("recent_ipad_use_max_res",y)},uz:function(a,b){var c=
a.filter(function(a){return a.W9(b)});0==c.length&&(c=a);return c},wga:function(a,b){var c=a.filter(function(a){return!a.W9(b)});0==c.length&&(c=a);return c},N1:function(a,b,c,e){function k(a){return Math.abs(a.get("width")*a.get("height")-b*c)}a=a.filter(function(a){return e!==m&&e!=a.get("grayscale",y)?y:o});if(0==a.length)return q;a.sort(function(a,b){return k(a)-k(b)});return a[0]}}});
define("C","require,eD,im,dx,ef,bc,iw".split(","),function(a){var b=a("eD"),c=a("im"),e=a("dx"),d=a("ef"),f=a("bc"),i=a("iw"),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",i.Sm);this.set("horizontalAlign",f.pc);this.set("verticalAlign",f.$b)});e.A("HotspotMapOverlayImageBase",a).B("Object").R({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.gl=function(){return this.get("image")?d.gl(this.get("image")):q};a.prototype.au=function(){return this.get("image")?d.au(this.get("image")):q};return a});define("hT",["eD","bS"],function(a,b){return a.extend(b,function(a,e){b.call(this,a);this.Ih=e})});
define("bL",["require","eD","im","kd","hT"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("hT"),a=b.extend(c,function(){c.call(this);this.uC=[];this.Ad=m;this.k="initial"});a.prototype.Gm=Q("uC");a.prototype.cX=function(a){this.uC!=a&&(this.uC=a,this.Zp=this.Ad=m)};a.prototype.sua=function(a){this.Ad!==a&&(this.k="loading",this.Ad=a,this.trigger(new d(e.ic,this.Ad)))};a.prototype.PW=function(){"loaded"!==this.k&&(this.k="loaded",this.trigger(e.T))};a.prototype.Xta=function(){"loaded"!==this.k&&
(this.k="error",this.trigger(e.xd))};return a});define("cs",["eD","bL"],function(a,b){var c=a.extend(b,function(a){b.call(this);this.zf=a});c.prototype.Bf=Q("zf");c.gZ="map";c.hZ="overlay";return c});define("gQ",["eD","cs"],function(a,b){var c=a.extend(b,function(a,c,f){b.call(this,b.hZ);this.Oka=a;this.ba=c;this.ca=f});c.prototype.getX=Q("ba");c.prototype.getY=Q("ca");c.fZ="image";c.eZ="fov";return c});
define("io",["eD","gQ"],function(a,b){var c=a.extend(b,function(a,c,f,i,j,k,n,g,l,r,p){b.call(this,b.fZ,c,f);this.Qb=a;this.O5=i;this.Vs=j;this.Ws=k;this.W=n;this.da=g;this.cd=l;this.gh=r;this.zh=p;this.uC=[a]});c.prototype.Gh=Q("Qb");c.prototype.Fc=Q("W");c.prototype.qd=Q("da");return c});
define("eU","require,eD,dx,C,ef,io".split(","),function(a){var b=a("eD"),c=a("dx"),e=a("C");LevelUtil=a("ef");ImageOverlay=a("io");a=b.extend(e,function(){e.call(this);this.Yp=m});c.A("HotspotMapOverlayImage",a).B("HotspotMapOverlayImageBase");a.prototype.getItem=function(){return this.qg()};a.prototype.qg=function(a){if(this.Yp===m)this.Yp=this.WJ(a);return this.Yp};a.prototype.WJ=function(a){var b=this.get("image");if(b){b=LevelUtil.gl(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 q};return a});define("F",["require","eD","dx","C"],function(a){var b=a("eD"),c=a("dx"),e=a("C"),a=b.extend(e,function(){e.call(this)});c.A("HotspotMapOverlayMap",a).B("HotspotMapOverlayImageBase");return a});
define("ek","require,eD,im,kd,dx,hi".split(","),function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("dx"),f=a("hi"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Vd=m});d.A("HotspotPanoramaOverlayImageBase",a).B("Object").R({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]"}).fc([e.Le,e.Df]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Vd===m)this.Vd=f.qK(this);return this.Vd}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=y;switch(a){case "distance":case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "yaw":case "opacity":case "playbackPositions":this.Vd=m;f=o}c.prototype.set.call(this,
a,b);f&&a!="playbackPositions"&&this.trigger(e.L("playbackPositions"))};return a});define("if",["require","eD","dx","ek"],function(a){var b=a("eD"),c=a("dx"),e=a("ek"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayImage",a).B("HotspotPanoramaOverlayImageBase");return a});define("P",["require","eD","dx","ek"],function(a){var b=a("eD"),c=a("dx"),e=a("ek"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayMap",a).B("HotspotPanoramaOverlayImageBase");return a});
define("hU",[],function(){function a(a){for(var b={},a=a.split(","),f=0;f<a.length;f++)b[a[f]]=o;return b}var b=/^<([-A-Za-z0-9_]+\:?[-A-Za-z0-9_]*)((?:\s+[-A-Za-z0-9_]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\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"),
i=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"),j=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),k=a("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),n=a("script,style");return function(a,l){function r(a,b,c,g){b=b.toLowerCase();if(f[b])for(;u.last()&&i[u.last()];)p(0,u.last());j[b]&&
u.last()==b&&p(0,b);(g=d[b]||!!g)||u.push(b);if(l.start){var n=[];c.replace(e,function(a,b,f,c,d){a=f?f:c?c:d?d:k[b]?b:"";n.push({name:b,value:a,lV:a.replace(/(^|[^\\])"/g,'$1\\"')})});l.start&&l.start(b,n,g)}}function p(a,b){if(b){b=b.toLowerCase();for(f=u.length-1;0<=f&&u[f]!=b;f--);}else var f=0;if(0<=f){for(var c=u.length-1;c>=f;c--)l.end&&l.end(u[c]);u.length=f}}var s,t,u=[],v=a;for(u.last=function(){return this[this.length-1]};a;){t=o;if(!u.last()||!n[u.last()]){if(0==a.indexOf("<\!--"))s=a.indexOf("--\>"),
0<=s&&(l.oqa&&l.oqa(a.substring(4,s)),a=a.substring(s+3),t=y);else if(0==a.indexOf("</")){if(s=a.match(c))a=a.substring(s[0].length),s[0].replace(c,p),t=y}else if(0==a.indexOf("<")&&(s=a.match(b)))a=a.substring(s[0].length),s[0].replace(b,r),t=y;t&&(s=a.indexOf("<"),t=0>s?a:a.substring(0,s),a=0>s?"":a.substring(s),l.OC&&l.OC(t))}else a=a.replace(RegExp("(.*?)</"+u.last()+"[^>]*>"),function(a,b){b=b.replace(/<\!--(.*?)--\>/g,"$1").replace(/<!\[CDATA\[(.*?)]]\>/g,"$1");l.OC&&l.OC(b);return""}),p(0,
u.last());a==v&&h("Parse Error: "+a);v=a}p()}});
define("dI","require,jquery.mod,cV,eD,kd,bS,em,u,hU".split(","),function(a){var b=a("jquery.mod");a("cV");var c=a("eD"),e=a("kd"),d=a("bS"),f=a("em"),i=a("u"),j=a("hU"),k=c.extend(f,function(a){f.call(this);this.ad=b(a);this.sB=[];this.Ap=q});k.prototype.fsa=function(a){a&&a.toLowerCase().indexOf("<script")>=0?i.ix()==i.ny?this.Cia(a):this.Bia(a):this.Aia(a)};k.prototype.Aia=function(a){this.ad.empty();a&&this.ad.append(a);this.t7()};k.prototype.Cia=function(a){this.ad.empty();var f=this.ad,c=q,d=
[],e=q;new j(a,{start:function(a,d,j){if(a=="script"){for(var j=m,k=0;k<d.length&&j===m;k++){var i=d[k];if(i.name=="src")j=i.value}e={parent:f,previousSibling:c,src:j,content:""}}else{for(var n={},k=0;k<d.length;k++){i=d[k];n[i.name]=i.value}d=b("<"+a+"/>");d.attr(n);f.append(d);if(j)c=d;else{f=d;c=q}}},OC:function(a){e?e.content=e.content+a:f.append(a)},end:function(a){if(a=="script"){d.push(e);e=q}else{c=f;f=f.parent()}}});this.sB=d;this.NG()};k.prototype.Bia=function(a){function f(){e++;return d+
e}this.ad.empty();var d="fragment_"+c.$$(6)+"_",e=0,k=f(),i=[k],t=m,u=[],v=q,x="";new j(a,{start:function(a,b,c){if(a=="script"){c=m;for(a=0;a<b.length&&c===m;a++){var d=b[a];if(d.name=="src")c=d.value}v={parentClsName:i[i.length-1],previousSiblingClsName:t,src:c,content:""}}else{x=x+("<"+a);for(var e=f(),k=y,a=0;a<b.length;a++){d=b[a];if(d.name=="class"){d.lV=d.lV+(" "+e);k=o}x=x+(" "+d.name+'="'+d.lV+'"')}k||(x=x+(' class="'+e+'"'));if(c){x=x+"/>";t=e}else{x=x+">";i.push(e);t=m}}},OC:function(a){v?
v.content=v.content+a:x=x+a},end:function(a){if(a=="script"){u.push(v);v=q}else{t=i[i.length-1];i.pop()}}});this.ad.get(0).innerHTML=x;this.ad.addClass(k);for(a=0;a<u.length;a++){var w=u[a],A=w.parentClsName;delete w.parentClsName;t=w.previousSiblingClsName;delete w.previousSiblingClsName;w.parent=b("."+A);w.previousSibling=t?b("."+t):q}this.ad.removeClass(k);this.sB=u;this.NG()};k.prototype.NG=function(){if(!this.Ap)if(this.sB.length>0){this.Ap=this.sB[0];this.sB.splice(0,1);var a=this.Ap.src;if(a){var f=
this;k.fja(a,function(){f.M2()},function(){f.lja()})}else{var c=this.Ap.parent,a=this.Ap.previousSibling,d;d=a?a.next():c.children(":first");a=document.write;document.write=d.length?function(a){d.before(a)}:function(a){c.append(a)};b.globalEval(this.Ap.content);document.write=a;this.M2()}}else this.t7()};k.prototype.lja=function(){this.Ap=q;this.NG()};k.prototype.M2=function(){this.Ap=q;this.NG()};k.prototype.t7=function(){this.trigger(new d(e.Ia))};k.K2={};k.fja=function(a,f,c){k.K2[a]?f.call(window):
b.ajax({url:a,async:y,dataType:"script",error:c,success:function(){k.K2[a]=o;f.call(window)}})};return k});
define("iP",["eD","kd","bS","em"],function(a,b,c,e){a=a.extend(e,function(a,b){e.call(this);this.Kia=a;this.V=b;this.Pf=q});a.prototype.bind=function(){var a=e.prototype.bind.apply(this,arguments);this.pC();return a};a.prototype.unbind=function(){var a=e.prototype.unbind.apply(this,arguments);this.pC();return a};a.prototype.start=function(){this.V=o;this.pC()};a.prototype.stop=function(){this.V=y;this.pC()};a.prototype.QA=function(){this.trigger(new c(b.Gc))};a.prototype.pC=function(){if(this.V&&
this.L9(b.Gc)){if(this.Pf==q){var a=this;this.Pf=setTimeout(function(){a.Pf=q;a.QA();a.pC()},this.Kia)}}else this.Pf!=q&&(clearTimeout(this.Pf),this.Pf=q)};return a});
define("hQ","require,jquery.mod,cV,eD,kd,fO,bc,d,dI,dn,iP".split(","),function(a){var b=a("jquery.mod"),c=a("cV"),e=a("eD"),d=a("kd"),f=a("fO"),i=a("bc"),j=a("d"),k=a("dI"),n=a("dn"),a=a("iP"),g=e.extend(j,function(){j.call(this);this.Dc("HTML");this.hs=g.KE;this.g5=this.h5=0;this.H6=(new Date).getTime();this.LF=this.Zf=q;this.$u=this.$u.bind(this);this.oN=[]});g.prototype.ta=function(){j.prototype.ta.call(this);this.f("content");this.f("horizontalAlign",i.ka);this.f("verticalAlign",i.$b);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)};g.prototype.bm=function(a){this.sa&&f.get(this.sa).ota(this.$u);j.prototype.bm.call(this,a);if(this.sa){f.get(this.sa).Qpa(this.$u);f.get(this.sa).lx(this.$u)}};g.prototype.Ba=function(){j.prototype.Ba.call(this);
if(!this.LF){this.Zf=document.createElement("div");this.LF=b(this.Zf);this.XO({position:"absolute",display:"inline",left:0,top:0,"box-sizing":"border-box"});var a=this.Ja();a.cy(y);a.append(this.LF);this.h2=new k(this.LF);this.h2.bind(d.Ia,this.qia,this,o);this.bind(d.pb,this.i2,this)}};g.prototype.fa=function(){var a={},b=y;this.n("visible")&&(b=o);if(this.n("content")){this.h2.fsa(this.j("content"));this.o("content");b=o}if(this.n("fontFamily")){b=this.j("fontFamily");c(b).isString()||(b="");a.fontFamily=
n.Vq(b);this.o("fontFamily");b=o}if(this.n("fontSize")){b=this.j("fontSize");c(b).isNumber()?b=b+"px":c(b).isString()||(b="");a.fontSize=b;this.o("fontSize");b=o}if(this.n("fontColor")){b=this.j("fontColor");c(b).isString()||(b="");a.color=b;this.o("fontColor");b=o}if(this.n("fontWeight")){b=this.j("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.o("fontWeight");b=o}if(this.n("fontStyle")){b=this.j("fontStyle");switch(b){case "italic":case "normal":break;default:b="normal"}a.fontStyle=b;this.o("fontStyle");b=o}if(this.n("textDecoration")){b=this.j("textDecoration");switch(b){case "underline":case "overline":case "line-through":case "none":break;default:b="none"}a.textDecoration=b;this.o("textDecoration");b=o}if(this.n("textAlign")){b=this.j("textAlign");switch(b){case "left":case "right":case "center":case "justify":break;default:b=
""}a["text-align"]=b;this.o("textAlign");b=o}var f=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(c(f).any(function(a){return this.n(a)},this)){var d={};c(f).each(function(a){d[a]=this.j(a);this.o(a)},this);a["-moz-text-shadow"]=a["-webkit-text-shadow"]=a["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(" ");f=d.textShadowVerticalLength==0&&this.j("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(d.textShadowHorizontalLength,-d.textShadowVerticalLength)/Math.PI)*45;a.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*d.textShadowOpacity).toString(16)).slice(-2)+d.textShadowColor.substr(1,6)+",direction="+f+")"}c(["paddingTop","paddingRight","paddingBottom",
"paddingLeft"]).any(function(a){return this.n(a)},this)&&(b=o);this.XO(a);b&&this.e3();j.prototype.fa.call(this)};g.prototype.e3=function(){this.i2();this.La();this.j("visible")&&this.j("content")?this.vB(g.sZ):this.vB(g.KE)};g.prototype.Kq=function(a){for(var b=a.target;b&&b.tagName!="A"&&b.tagName!="BUTTON";)b=b.parentElement;j.prototype.Kq.call(this,a,!b)};g.prototype.On=function(){j.prototype.On.call(this);var a=this.Ja();this.lh=this.Zf.clientWidth+a.xx()+a.Dx();this.kh=this.Zf.clientHeight+
a.Ex()+a.tx()};g.prototype.q6=function(a){if(this.RP()!=a){this.Zf.style.paddingLeft=a+"px";this.La()}};g.prototype.RP=function(){return parseInt(this.Zf.style.paddingLeft)||0};g.prototype.s6=function(a){if(this.TP()!=a){this.Zf.style.paddingTop=a+"px";this.La()}};g.prototype.TP=function(){return parseInt(this.Zf.style.paddingTop)||0};g.prototype.r6=function(a){if(this.SP!=a){this.Zf.style.paddingRight=a+"px";this.La()}};g.prototype.SP=function(){return parseInt(this.Zf.style.paddingRight)||0};g.prototype.p6=
function(a){if(this.QP()!=a){this.Zf.style.paddingBottom=a+"px";this.La()}};g.prototype.QP=function(){return parseInt(this.Zf.style.paddingBottom)||0};g.prototype.qia=function(){this.oN=Array.prototype.slice.call(this.Zf.querySelectorAll("*[style]")).map(function(a){var b={};b.Hqa=a;b.style=a.getAttribute("style");return b}).filter(function(a){return l.test(a.style)}).map(function(a){for(var b=a.style,f=[];;){var c=l.exec(b);if(c){f.push(function(a){return function(){return a}}(b.substr(0,c.index+
1)));f.push(function(a,b){switch(b){case "vw":return function(b){return Math.round(b*a)+"px"};case "vh":return function(b,f){return Math.round(f*a)+"px"};case "vmin":return function(b,f,c){return Math.round(c*a)+"px"};case "vmax":return function(b,f,c){return Math.round(c*a)+"px"}}}(parseFloat(c[1]),c[3].toLowerCase()));b=b.substr(c.index+c[0].length)}else{f.push(function(a){return function(){return a}}(b));a.functions=f;return a}}});this.sa&&f.get(this.sa).lx(this.$u)};g.prototype.$u=function(a,
b,f,c){if(this.oN.length!=0){this.oN.forEach(function(d){var e=d.functions.map(function(d){return d(a,b,f,c)}).join("");d.Hqa.setAttribute("style",e)});this.e3()}};g.prototype.i2=function(){var a={width:"auto",height:"auto"},b=this.Ja();if(!this.bQ()){this.lh!=this.W&&this.La();var f=this.W-(b.xx()+b.Dx());f>0&&(a.width=f+"px")}if(!this.c2()){this.kh!=this.da&&this.La();b=this.da-(b.Ex()+b.tx());b>0&&(a.height=b+"px")}this.XO(a)};g.prototype.v3=function(){var a=this.Zf.clientWidth,b=this.Zf.clientHeight;
if(this.h5!=a||this.g5!=b){this.h5=a;this.g5=b;this.La();this.vB(g.sZ)}else{a=(new Date).getTime()-this.H6;a>g.Wca?this.vB(g.Lca):a>g.Vca&&this.vB(g.Kca)}};g.prototype.Vla=function(){this.H6=(new Date).getTime()};g.prototype.vB=function(a){this.hs==g.Gva&&this.Vla();if(this.hs!=a){this.hs!=g.KE&&g.U_[this.hs].unbind(d.Gc,this.v3,this);this.hs=a;this.hs!=g.KE&&g.U_[this.hs].bind(d.Gc,this.v3,this,o)}};g.prototype.XO=function(a){var b=this.Zf.style,f;for(f in a)b[f]=a[f]};var l=/[^\d]((\d*\.)?\d+)\s*(vmin|vmax|vw|vh)/i;
g.KE="stopped";g.Lca="slow";g.Kca="normal";g.sZ="fast";g.Wca=3E4;g.Vca=5E3;g.U_={slow:new a(2E3,o),normal:new a(500,o),fast:new a(100,o)};return g});
define("he",["eD","hQ","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("HTML",a).B("UIComponent").R({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"}).To(["fontSize"]);return a});define("b",["cV","eD","jM","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.fb={layout:e.oL};a.defaults(d.fb,c.fb);d.prototype.ta=function(){this.jj(d.fb)};return d});
define("ge",["eD","fs","b","hQ"],function(a,b,c,e){a=a.extend(c,function(){c.call(this);this.Np=q;this.set("contentOpaque",o)});a.prototype.ta=function(){c.prototype.ta.call(this);this.f("overflow",b.Bl);this.f("html")};a.prototype.Ba=function(){c.prototype.Ba.call(this);this.Np==q&&(this.Np=new e,this.Np.M({left:0}),this.ia(this.Np))};a.prototype.fa=function(){this.Np.set("width",this.bQ()?m:"100%");this.n("html")&&(this.Np.set("content",this.j("html")),this.o("html"));this.Xa(["paddingLeft","paddingTop",
"paddingRight","paddingBottom"],{},[this.Np],o,o);this.Xa(["cursor"],{},[this.Np],o,y);c.prototype.fa.call(this)};return a});
define("bl",["require","eD","ge","dx"],function(a){var b=a("eD"),c=a("ge"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("HTMLText",b).B("UIComponent").R({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("hc","require,jquery.mod,eD,kd,bS,iB,fb,S,iw,eK,cU,iL".split(","),function(a){function b(a,b,f){return function(c){var d;d=b=="mouse"?this.Es(c):this.Fz(c);this.x2(d)?a.call(this,c):f=="release"?a.call(this,c):this.Kga(d,c)}}var c=a("jquery.mod"),e=a("eD"),d=a("kd"),f=a("bS"),i=a("iB"),j=a("fb"),k=a("S"),n=a("iw"),g=a("eK"),l=a("cU"),r=a("iL"),p=i.sg("debug"),a=e.extend(r,function(){this.Dc("Button");r.call(this,3);this.set("autoRolledOver",o);this.set("autoPressed",o);this.set("cursor",k.Qd);
this.set("scaleMode",n.qe);this.cO=document.createElement("canvas");this.cO.width=1;this.cO.height=1;this.dO=this.cO.getContext("2d");this.dO.globalCompositeOperation="copy";this.rP=y;this.bind(d.jc,this.uia,this)});a.prototype.ta=function(){r.prototype.ta.call(this);this.f("buttonGroup");this.f("mode",l.Hc);this.f("pressed");this.f("iconURL");this.f("transparencyActive");this.h("rollOverOpacity",g.t,"opacity");this.h("rollOverIconURL",g.t,"iconURL");this.h("pressedOpacity",g.va,"opacity");this.h("pressedIconURL",
g.va,"iconURL");this.h("pressedRollOverOpacity",g.Va,"opacity");this.h("pressedRollOverIconURL",g.Va,"iconURL")};a.prototype.yP=b(r.prototype.yP,"touch","capture");a.prototype.j1=b(r.prototype.Pga,"touch");a.prototype.l1=b(r.prototype.Pga,"touch","release");a.prototype.MT=b(r.prototype.MT,"touch","capture");a.prototype.LT=b(r.prototype.LT,"touch");a.prototype.Kq=b(r.prototype.Kq,"touch","release");a.prototype.hR=b(r.prototype.hR,"mouse","capture");a.prototype.iR=function(a){var b=this.Es(a);if(this.x2(b)||
this.rP){r.prototype.iR.call(this,a);this.set("cursor",k.Qd)}else{this.rP=o;if(b=this.F1(b)){c(b).trigger(this.g0(a));a.preventDefault();a.stopImmediatePropagation()}this.B1(b)=="pointer"?this.set("cursor",k.Qd):this.set("cursor",k.Gc);this.rP=y}};a.prototype.uia=function(){this.set("cursor",k.Qd)};a.prototype.bH=b(r.prototype.bH,"mouse","release");a.prototype.x2=function(a){if(!this.kb)return y;if(this.get("transparencyActive"))return o;var b=this.kb.offset(),f=a.N$-b.left,c=this.kb.width(),a=a.O$-
b.top,b=this.kb.height();if(f>=0&&a>=0&&f<c&&a<b){if(p)return o;f=f*this.jw/c;c=a*this.iw/b;this.dO.drawImage(this.kb.get(0),f,c,1,1,0,0,1,1);if(this.dO.getImageData(0,0,1,1).data[3]>0)return o}return y};a.prototype.Kga=function(a,b){var f=this.F1(a);if(f){c(f).trigger(this.g0(b));b.preventDefault();b.stopImmediatePropagation()}};a.prototype.F1=function(a){var b=this.zn(),f=b.style.pointerEvents;b.style.pointerEvents="none";a=document.elementFromPoint(a.N$,a.O$);setTimeout(function(){b.style.pointerEvents=
f},0);return a};a.prototype.g0=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.B1=function(a){if(a){var b=a.style.cursor;b=="inherit"&&(b=this.B1(a.parentElement))}else b="default";return b};a.prototype.Wy=function(){if(this.get("pressed")){this.set("pressed",y);this.trigger(new f(d.Wg))}else{this.set("pressed",
o);this.trigger(new f(d.Wf))}};a.prototype.fa=function(){var a=y;if(this.n("backgroundOpacityy")||this.n("backgroundColor"))a=o;if(this.n("iconURL")){this.set("url",this.j("iconURL"));this.o("iconURL")}var b=y;if(this.n("mode")){if(this.j("mode")==l.Hc){this.unbind(d.U,this.Wy,this,o);this.set("autoPressed",o)}else{this.bind(d.U,this.Wy,this,o);this.set("autoPressed",y)}this.o("mode");b=o}if(b||this.n("pressed"))this.j("mode")==l.Xg?this.Hw(this.j("pressed")==o):b&&this.Hw(y);if(this.n("buttonGroup")){(b=
this.j("buttonGroup"))?j.register(this,b):j.$D(this);this.o("buttonGroup")}r.prototype.fa.call(this);if(a){a=this.qb();if(a.Ji()==0||a.ms.length==0){a.Pi(0.001);a.Baa(["#000000"])}}};return a});
define("bb",["eD","hc","dx","kd"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});c.A("IconButton",a).B("UIComponent").R({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"}).Si(["iconURL","rollOverIconURL",
"pressedIconURL"]).fc([e.Wf,e.Wg]).Rg([e.U]);return a});define("jj",["eD","dx","fP"],function(a,b,c){a=a.extend(c,function(){c.call(this,y)});b.A("IconHotspotMapOverlay",a).B("HotspotMapOverlay");return a});
define("jL",["require","eD","kd","iL","dx"],function(a){var b=a("eD"),c=a("kd"),e=a("iL"),a=a("dx"),b=b.extend(e,function(){e.call(this)});a.A("Image",b).B("UIComponent").R({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]"}).Si(["url"]).Rg([c.U]);return b});
define("gq",["eD","gj","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Label",a).B("UIComponent").R({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"}).To(["fontSize"]);return a});define("bt",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this);this.set("bleaching",0);this.set("bleachingDistance",0.4)});a.A("LensFlarePanoramaOverlay",b).B("PanoramaOverlay").R({yaw:"number",pitch:"number",bleaching:"number",bleachingDistance:"number"});return b});
define("jO",["require","eD","dx","fZ"],function(a){var b=a("eD"),c=a("dx"),e=a("fZ"),a=b.extend(e,function(){e.call(this)});c.A("LivePanorama",a).B("Panorama").R({frameDisplayTime:"number",frameTransitionTime:"number",initialFrameIndex:"number"});a.prototype.lK=function(){return this.get("initialFrameIndex",0)};return a});
define("cg",["eD","cs"],function(a,b){var c=a.extend(b,function(a,c,f,i,j,k){b.call(this,b.gZ);this.Qb=a;this.W=c;this.da=f;this.cd=i;this.qP=j;this.xj=k.slice()});c.prototype.Gm=function(){for(var a=[this.Qb],b=0;b<this.xj.length;b++)a=a.concat(this.xj[b].Gm());return a};c.prototype.Gh=Q("Qb");c.prototype.Fc=Q("W");c.prototype.qd=Q("da");return c});
define("jg","require,cV,eD,dx,iw,db,ef,cg".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("dx"),d=a("iw"),f=a("db"),i=a("ef"),j=a("cg"),a=c.extend(f,function(){f.call(this);this.Yp=this.jS=m});e.A("Map",a).B("Media").R({fieldOfViewOverlayInsideColor:"color",fieldOfViewOverlayInsideOpacity:"number",fieldOfViewOverlayOutsideColor:"color",fieldOfViewOverlayOutsideOpacity:"number",fieldOfViewOverlayRadiusScale:"number",flipImageHorizontally:"bool",height:"number",image:"ImageResource",initialZoomFactor:"number",
maximumZoomFactor:"number",minimumZoomFactor:"number",overlays:"array[MapOverlay]",scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]",width:"number"});a.prototype.Gx=function(){return!(!this.get("image")||!i.Gx(this.get("image")))};a.prototype.au=function(){return this.get("image")&&i.au(this.get("image"))};a.prototype.gl=function(){return this.get("image")&&i.gl(this.get("image"))};a.prototype.x9=function(){if(this.jS==m)this.jS=this.Gx()?new j(this.au().get("url"),this.get("width"),
this.get("height"),this.get("scaleMode",d.ur),this.get("flipImageHorizontally",y),[]):q;return this.jS};a.prototype.qg=function(){if(this.Yp==m)if(this.get("image")){var a=Array.prototype.concat.apply([],b(this.get("overlays",[])).map(function(a){return a.tra()}));this.Yp=new j(this.gl().get("url"),this.get("width"),this.get("height"),this.get("scaleMode",d.ur),this.get("flipImageHorizontally",y),a)}else this.Yp=q;return this.Yp};a.prototype.Fo=function(){return[].concat(this.gG(this.x9()),this.gG(this.qg()))};
a.prototype.gG=function(a){return a?a.Gm():[]};return a});define("hF",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("MapOverlay",a).B("Object");return a});
define("iV","eD,cV,kd,bS,em,cU".split(","),function(a,b,c,e,d,f){a=a.extend(d,function(a,b,e){d.call(this);this.k0=a;this.nla=b;this.B_=e||f.Hc;this.Cg=[];this.qp={};this.qp.mode=this.B_;this.B_==f.Xg&&(this.qp.pressed=y);this.k0.bind(c.L(b),this.r5,this);this.r5()});a.prototype.r5=function(){var a=this.k0.get(this.nla);a||(a=[]);b.isArray(a)||(a=[a]);this.Cma(a)};a.prototype.Cma=function(a){var f=b.difference(this.Cg,a);b(f).each(function(a){a.unbind(c.Wf,this.H_,this,o);a.unbind(c.Wg,this.I_,this,
o);a.unbind(c.U,this.A_,this,o);a.unbind(c.ob,this.C_,this,o);a.unbind(c.Lb,this.D_,this,o)},this);f=b.difference(a,this.Cg);b(f).each(function(a){a.M(this.qp);a.bind(c.Wf,this.H_,this,o);a.bind(c.Wg,this.I_,this,o);a.bind(c.U,this.A_,this,o);a.bind(c.ob,this.C_,this,o);a.bind(c.Lb,this.D_,this,o)},this);this.Cg=a};a.prototype.H_=function(){this.trigger(new e(c.Wf))};a.prototype.I_=function(){this.trigger(new e(c.Wg))};a.prototype.A_=function(){this.trigger(new e(c.U))};a.prototype.C_=function(){this.trigger(new e(c.ob))};
a.prototype.D_=function(){this.trigger(new e(c.Lb))};a.prototype.set=function(a,f){this.qp[a]=f;b(this.Cg).each(function(a){a.M(this.qp)},this)};return a});
define("er","require,cV,eD,kd,bS,eK,S,b,d,jq,jD".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("eK"),i=a("S"),j=a("b"),k=a("d");a("jq");a("jD");var n=c.extend(j,function(){j.call(this);this.Dc("PlaybackBar");this.sh=this.Ad=q;this.ke=[];this.WH=y;this.dS=this.ft=m;this.wT=y});n.fb={cursor:i.Qd,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:o,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:o,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:o,selectedStepShadowBlurRadius:3,selectedStepShadowColor:"#000000",selectedStepShadowHorizontalLength:0,selectedStepShadowOpacity:m,selectedStepShadowSpread:0,selectedStepShadowVerticalLength:0};b.defaults(n.fb,j.fb);n.prototype.ta=function(){this.jj(n.fb)};n.prototype.Ba=function(){j.prototype.Ba.call(this);(!this.Ad||!this.sh)&&this.bind(e.pb,this.bla,this,o);if(this.Ad==q){this.Ad=new k;this.Ad.M({left:"0",height:"100%",
cursor:i.Qd});this.ia(this.Ad)}if(this.sh==q){this.sh=new k;this.sh.M({left:"0",cursor:i.Qd});this.sh.bind(e.pb,this.ela,this,o);this.sh.bind(e.ob,this.cla,this,o);this.Pa().bind(e.qc,this.Y4,this,o);this.bind(e.U,this.$ka,this,o);this.sh.bind(e.Lb,this.dla,this,o);this.ia(this.sh)}var a=this.get("steps")||0;if(this.ke.length!=a){for(;this.ke.length>a;)this.Pfa(this.ke.pop());for(;this.ke.length<a;)this.ke.push(this.Ffa());this.Xa(n.PZ,n.XM,this.ke,y,o);this.X7();this.lU();this.Ni(this.sh,this.Ta().length-
1)}};n.prototype.Ffa=function(){var a=new g;a.M({cursor:i.Qd});a.bind(e.U,this.O6,this,o);a.bind(e.pb,this.P6,this,o);this.ia(a);return a};n.prototype.Pfa=function(a){a.unbind(e.U,this.O6,this,o);a.unbind(e.pb,this.P6,this,o);this.removeChild(a)};n.prototype.fa=function(){var a=y;if(this.n("position")||this.n("duration")){this.o("position");this.o("duration");a=o}if(this.n("selectedStep")){this.o("selectedStep");this.X7()}if(this.n("steps")){this.o("steps");this.iD()}this.Xa(n.PM,n.Ay,[this.Ad],o,
o);this.Xa(n.Sca,n.LZ,[this.sh],o,o);this.Xa(n.PZ,n.XM,this.ke,o,o);j.prototype.fa.call(this);a&&this.rJ()};n.prototype.X7=function(){var a=this.get("selectedStep");this.ke.forEach(function(b,f){b.QD(f===a)});this.sh.set("visible",a===m)};n.prototype.rJ=function(){var a=this.ua(),b=this.sh.ua(),f=this.sh.Za(),c=this.Gp(),d=this.Cz(),e=d*a/c,a=Math.round((this.WH?this.ft:d)*a/c-b*0.5),a=Math.max(0,Math.min(a,this.jd()-b)),b=Math.round(this.hd()*0.5-f*0.5);this.sh.M({left:a,top:b});this.Ad.set("width",
Math.round(e))};n.prototype.ela=function(){this.rJ()};n.prototype.cla=function(a){this.WH=o;this.dS=a.pageX;this.ft=this.j("position")};n.prototype.Y4=function(a){if(this.WH){var b=a.pageX-this.dS;this.dS=a.pageX;var a=this.ua(),f=this.Gp();this.ft=Math.max(0,Math.min(f,this.ft+f*b/a));this.rJ();if(this.get("liveDragging")){this.set("position",this.ft);this.trigger(new d(e.$))}}};n.prototype.dla=function(a){this.Y4(a);this.WH=y;if(!this.get("liveDragging")){this.set("position",this.ft);this.trigger(new d(e.$))}this.ft=
m};n.prototype.$ka=function(a){if(!this.wT){var b=this.ua();this.set("position",this.Gp()*a.x/b);this.trigger(new d(e.$))}};n.prototype.P6=function(){this.lU()};n.prototype.bla=function(){this.lU();this.rJ()};n.prototype.lU=function(){for(var a=this.ua(),b=this.Za(),f=this.ba,c=this.getParent().ua()-(f+a),d=0,e=this.ke.length;d<e;d++){var g=this.ke[d],j=g.ua();g.M({left:d==0&&f==0?0:d==e-1&&c==0?a-j:Math.round(a*d/(e-1)-j*0.5),top:Math.round(b*0.5-g.Za()*0.5)})}};n.prototype.O6=function(a){a=this.ke.indexOf(a.source);
this.set("position",this.Gp()*a/(this.ke.length-1));this.wT=o;this.trigger(new d(e.$));setTimeout(function(){this.wT=y}.bind(this),0)};n.prototype.Gp=function(){var a=this.j("duration");return!a?1:a};n.prototype.Cz=function(){return Math.max(0,Math.min(this.Gp(),this.j("position")))};n.Ay={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",
barOpacity:"opacity"};n.PM=b(n.Ay).keys();n.LZ={playheadBackgroundColor:"backgroundColor",playheadBackgroundColorDirection:"backgroundColorDirection",playheadBackgroundColorRatios:"backgroundColorRatios",playheadBorderColor:"borderColor",playheadBorderRadius:"borderRadius",playheadBorderSize:"borderSize",playheadOpacity:"opacity",playheadWidth:"width",playheadHeight:"height",playheadShadow:"shadow",playheadShadowBlurRadius:"shadowBlurRadius",playheadShadowColor:"shadowColor",playheadShadowHorizontalLength:"shadowHorizontalLength",
playheadShadowOpacity:"shadowOpacity",playheadShadowSpread:"shadowSpread",playheadShadowVerticalLength:"shadowVerticalLength"};n.Sca=b(n.LZ).keys();n.XM={stepBackgroundColor:"backgroundColor",stepBackgroundColorDirection:"backgroundColorDirection",stepBackgroundColorRatios:"backgroundColorRatios",stepBorderColor:"borderColor",stepBorderRadius:"borderRadius",stepBorderSize:"borderSize",stepOpacity:"opacity",stepWidth:"width",stepHeight:"height",stepShadow:"shadow",stepShadowBlurRadius:"shadowBlurRadius",
stepShadowColor:"shadowColor",stepShadowHorizontalLength:"shadowHorizontalLength",stepShadowOpacity:"shadowOpacity",stepShadowSpread:"shadowSpread",stepShadowVerticalLength:"shadowVerticalLength",selectedStepBackgroundColor:"selectedBackgroundColor",selectedStepBackgroundColorDirection:"selectedBackgroundColorDirection",selectedStepBackgroundColorRatios:"selectedBackgroundColorRatios",selectedStepBorderColor:"selectedBorderColor",selectedStepBorderRadius:"selectedBorderRadius",selectedStepBorderSize:"selectedBorderSize",
selectedStepOpacity:"selectedOpacity",selectedStepWidth:"selectedWidth",selectedStepHeight:"selectedHeight",selectedStepShadow:"selectedShadow",selectedStepShadowBlurRadius:"selectedShadowBlurRadius",selectedStepShadowColor:"selectedShadowColor",selectedStepShadowHorizontalLength:"selectedShadowHorizontalLength",selectedStepShadowOpacity:"selectedShadowOpacity",selectedStepShadowSpread:"selectedShadowSpread",selectedStepShadowVerticalLength:"selectedShadowVerticalLength"};n.PZ=b(n.XM).keys();var g=
c.extend(k,function(){k.call(this)});g.prototype.QD=function(a){this.zB(a)};g.prototype.ta=function(){k.prototype.ta.call(this);this.f("backgroundColor");this.f("backgroundColorDirection");this.f("backgroundColorRatios");this.f("borderColor");this.f("borderRadius");this.f("borderSize");this.f("opacity");this.f("width");this.f("height");this.f("shadow");this.f("shadowBlurRadius");this.f("shadowColor");this.f("shadowHorizontalLength");this.f("shadowOpacity");this.f("shadowSpread");this.f("shadowVerticalLength");
this.h("selectedBackgroundColor",f.F,"backgroundColor");this.h("selectedBackgroundColorDirection",f.F,"backgroundColorDirection");this.h("selectedBackgroundColorRatios",f.F,"backgroundColorRatios");this.h("selectedBorderColor",f.F,"borderColor");this.h("selectedBorderRadius",f.F,"borderRadius");this.h("selectedBorderSize",f.F,"borderSize");this.h("selectedOpacity",f.F,"opacity");this.h("selectedWidth",f.F,"width");this.h("selectedHeight",f.F,"height");this.h("selectedShadow",f.F,"shadow");this.h("selectedShadowBlurRadius",
f.F,"shadowBlurRadius");this.h("selectedShadowColor",f.F,"shadowColor");this.h("selectedShadowHorizontalLength",f.F,"shadowHorizontalLength");this.h("selectedShadowOpacity",f.F,"shadowOpacity");this.h("selectedShadowSpread",f.F,"shadowSpread");this.h("selectedShadowVerticalLength",f.F,"shadowVerticalLength")};g.prototype.fa=function(){k.prototype.fa.call(this)};return n});
define("z",["cV","eD","b","d"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this);this.Dc("ProgressBar")});d.fb={percent:0,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:m,barBackgroundColorRatios:m,barBorderColor:m,barBorderRadius:m,barBorderSize:m,barOpacity:m};a.defaults(d.fb,c.fb);d.prototype.ta=function(){this.jj(d.fb)};d.prototype.Ba=function(){c.prototype.Ba.call(this);this.Ad==q&&(this.Ad=new e,this.Ad.M({left:"0",width:"0%",height:"100%"}),this.ia(this.Ad))};
d.prototype.fa=function(){this.n("percent")&&(this.Ad.set("width",Math.round(this.j("percent"))+"%"),this.o("percent"));this.Xa(d.PM,d.Ay,[this.Ad],o,o);c.prototype.fa.call(this)};d.Ay={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",barOpacity:"opacity"};d.PM=a(d.Ay).keys();return d});
define("hr",["require","cV","eD","x"],function(a){var b=a("cV"),c=a("eD"),e=a("x");return{ev:[],ed:function(a,b,c,e){this.XZ(a,b,c,e,y)},twa:function(a,b,c,e){this.XZ(a,b,c,e,o)},XZ:function(a,f,i,j,k){function n(){for(var b=[],e=0;e<f.length;e++)try{b.push(a.get(f[e]))}catch(g){b.push(m),c.DK("BindingsHandler._addBinding",g)}i.apply(this,b)}b.isArray(f)||(f=[f]);var n=k?c.Jo(n,this.ga):n.bind(this.ga),g=[];b.forEach(f,function(b){g.push(e.watch(a,b,n))},this);this.ev.push({yva:g,host:a,Lo:f,K9:i});
j&&n()},Cd:function(a,f,c){var e=b(this.ev).select(function(e){return e.K9==c&&e.host==a&&b.isEqual(e.Lo,f)});b(e).forEach(function(a){b(a.yva).forEach(function(a){a.unwatch()})});this.ev=b.difference(this.ev,e)},pxa:function(){for(;0<this.ev.length;){var a=b.first(this.ev);this.Cd(a.host,a.Lo,a.K9)}}}});
define("js",["require"],function(){var a=Math.PI/180,b=180/Math.PI;return{create:function(){return{x:0,y:0,z:0,w:0}},d9:function(b,e,d){var e=e*a,b=-b*a,f=d*a,d=Math.cos(b/2),b=Math.sin(b/2),i=Math.cos(f/2),f=Math.sin(f/2),j=Math.cos(e/2),e=Math.sin(e/2),k={};k.w=d*i*j-b*f*e;k.x=d*i*e+b*f*j;k.y=b*i*j+d*f*e;k.z=d*f*j-b*i*e;return k},nX:function(a){var e=a.x*a.y+a.z*a.w,d={};if(0.499<e)d.ra=-2*Math.atan2(a.x,a.w),d.ld=-Math.PI/2,d.pitch=0;else if(-0.499>e)d.ra=2*Math.atan2(a.x,a.w),d.ld=Math.PI/2,d.pitch=
0;else{var f=a.x*a.x,i=a.z*a.z;d.ra=-Math.atan2(2*a.y*a.w-2*a.x*a.z,1-2*a.y*a.y-2*i);d.ld=-Math.asin(2*e);d.pitch=Math.atan2(2*a.x*a.w-2*a.y*a.z,1-2*f-2*i);d.pitch=Math.min(Math.PI/2,Math.max(-Math.PI/2,d.pitch))}d.ra*=b;d.pitch*=b;d.ld*=-b;return d},ra:function(a){var e=a.x*a.y+a.z*a.w;return 0.499<e?-2*Math.atan2(a.x,a.w)*b:-0.499>e?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("jB",["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.K$(1/a):this.z=this.y=this.x=0;return this},K$: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,i=a.y,j=a.z,a=a.w,k=a*c+i*d-j*e,n=a*e+j*c-f*d,g=a*d+f*e-i*c,c=-f*c-i*e-j*d;this.x=k*a+c*-f+n*-j-g*-i;this.y=n*a+c*-i+g*-f-k*-j;this.z=g*a+c*-j+k*-i-n*-f;return this},Eqa:function(a){return this.x*a.x+this.y*a.y+this.z*
a.z},Aqa:function(a,c){var e=a.x,d=a.y,f=a.z,i=c.x,j=c.y,k=c.z;this.x=d*k-f*j;this.y=f*i-e*k;this.z=e*j-d*i;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},Daa:function(a,c,e){var d=Math.cos(a/2),f=Math.cos(c/2),i=Math.cos(e/2),a=Math.sin(a/2),c=Math.sin(c/
2),e=Math.sin(e/2);this.x=a*f*i+d*c*e;this.y=d*c*i-a*f*e;this.z=d*f*e-a*c*i;this.w=d*f*i+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.J$(this,a)},J$:function(a,c){var e=a.x,d=a.y,f=a.z,i=a.w,j=c.x,k=c.y,n=c.z,g=c.w;this.x=e*g+i*j+d*n-f*k;this.y=d*g+i*k+f*j-e*n;this.z=f*g+i*n+e*k-d*j;this.w=i*g-e*j-d*k-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},Yua: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,i=this.w,j=i*a.w+e*a.x+d*a.y+f*a.z;0>j?(this.w=-a.w,this.x=-a.x,this.y=-a.y,this.z=-a.z,j=-j):this.copy(a);if(1<=j)return this.w=i,this.x=e,this.y=d,this.z=f,this;var k=Math.acos(j),
n=Math.sqrt(1-j*j);if(0.001>Math.abs(n))return this.w=0.5*(i+this.w),this.x=0.5*(e+this.x),this.y=0.5*(d+this.y),this.z=0.5*(f+this.z),this;j=Math.sin((1-c)*k)/n;k=Math.sin(c*k)/n;this.w=i*j+this.w*k;this.x=e*j+this.x*k;this.y=d*j+this.y*k;this.z=f*j+this.z*k;return this},Eaa:function(){var b,c;return function(e,d){b===m&&(b=new a.Vector3);c=e.Eqa(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.Aqa(e,d);this.x=b.x;this.y=b.y;this.z=b.z;this.w=c;this.normalize();
return this}}()};return a});
define("dF",["require","kd","bS","em","jB"],function(a){function b(){n||(n=o,p=new k.Vector3(0,0,1),s=new k.Quaternion,t=new k.Quaternion(-Math.sqrt(0.5),0,0,Math.sqrt(0.5)),u=new k.Quaternion,e(),window.addEventListener("orientationchange",e,y),window.addEventListener("deviceorientation",d,y),c())}function c(){if(v&&!(l===m||r===m)){v=y;var a=k.degToRad*r;u.Daa(k.degToRad*l.beta,k.degToRad*l.alpha,-(k.degToRad*l.gamma));u.multiply(t);u.multiply(s.setFromAxisAngle(p,-a));x||(w++,5<=w&&(x=o,g.trigger(new i(f.Ub))));
g.trigger(new i(f.$))}}function e(){r=window.orientation||0;v=o;c()}function d(a){l=a;v=o;c()}var f=a("kd"),i=a("bS"),j=a("em"),k=a("jB"),n=y,g=new j,l,r,p,s,t,u,v,x=y,w=0;b.prototype.Cm=function(){c();return u};b.prototype.bind=function(){g.bind.apply(g,arguments)};b.prototype.unbind=function(){g.unbind.apply(g,arguments)};b.prototype.stop=function(){window.removeEventListener("orientationchange",e,y);window.removeEventListener("deviceorientation",d,y)};return b});
define("gi","require,kd,bS,em,u,jB".split(","),function(a){function b(a){this.zsa=a;this.fV=new d;this.XJ=new d;this.rW=new d;this.Ut=new n.Quaternion;this.qW=new n.Quaternion;this.x8=new n.Quaternion;this.t$=y;this.$J=new n.Vector3;this.eW=new n.Vector3;this.Lra=new n.Quaternion}function c(){this.G$=y;this.F$=0;this.LC=new n.Vector3;this.sK=new n.Vector3;this.filter=new b(l);this.cta=new e(r);this.Kx=p.Kx();this.Li=p.Li();p.sV();this.ZV=p.jsa();this.bK=new n.Quaternion;p.Li()?this.bK.setFromAxisAngle(new n.Vector3(1,
0,0),Math.PI/2):this.bK.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);this.RV=new n.Quaternion;this.gy=new n.Quaternion;this.Tsa=new n.Quaternion;this.Tsa.setFromAxisAngle(new n.Vector3(0,0,1),-window.orientation*Math.PI/180);this.Uaa();p.msa()&&this.bK.multiply(this.RV);this.iaa=new n.Quaternion;this.Kx=p.Kx();this.Li=p.Li();this.isa=p.sV()>=66;this.hu=this.hu.bind(this);this.vD=this.vD.bind(this);this.uD=this.uD.bind(this);screen&&screen.orientation&&screen.orientation.addEventListener?screen.orientation.addEventListener("change",
this.hu):window.addEventListener("orientationchange",this.hu);this.ZV?window.addEventListener("deviceorientation",this.vD):window.addEventListener("devicemotion",this.uD)}function e(a){this.dta=a;this.MK=new n.Quaternion;this.Ux=q;this.T8=new n.Quaternion;this.xD=new n.Quaternion}function d(a,b){this.set(a,b)}var f=a("kd"),i=a("bS"),j=a("em"),k=a("u"),n=a("jB"),g=new j,l=0.98,r=0.04;b.prototype.Ppa=function(a,b){this.fV.set(a,b)};b.prototype.Spa=function(a,b){this.XJ.set(a,b);p.wsa(b-this.rW.eL)&&
this.Bta();this.rW.copy(this.XJ)};b.prototype.Bta=function(){if(this.t$){var a=this.Mra(this.XJ.sample,this.XJ.eL-this.rW.eL);this.Lra.multiply(a);this.Ut.copy(this.qW);this.Ut.multiply(a);a=new n.Quaternion;a.copy(this.Ut);a.inverse();this.$J.set(0,0,-1);this.$J.applyQuaternion(a);this.$J.normalize();this.eW.copy(this.fV.sample);this.eW.normalize();a=new n.Quaternion;a.Eaa(this.$J,this.eW);a.inverse();var b=new n.Quaternion;b.copy(this.Ut);b.multiply(a);this.Ut.Yua(b,1-this.zsa);this.qW.copy(this.Ut)}else{this.x8=
this.Npa(this.fV.sample);this.qW.copy(this.x8);this.t$=o}};b.prototype.Cm=Q("Ut");b.prototype.Npa=function(a){var b=new n.Vector3;b.copy(a);b.normalize();a=new n.Quaternion;a.Eaa(new n.Vector3(0,0,-1),b);a.inverse();return a};b.prototype.Mra=function(a,b){var f=new n.Quaternion,c=new n.Vector3;c.copy(a);c.normalize();f.setFromAxisAngle(c,a.length()*b);return f};c.prototype.stop=function(){screen&&screen.orientation&&screen.orientation.addEventListener&&screen.orientation.removeEventListener("change",
this.hu);window.removeEventListener("orientationchange",this.hu);window.removeEventListener("deviceorientation",this.vD);window.removeEventListener("devicemotion",this.uD)};c.prototype.Bx=R(q);c.prototype.Cm=function(){var a=m;if(this.ZV&&this.JF){this.V8=this.V8||function(){var a=(new n.Quaternion).setFromAxisAngle(new n.Vector3(0,0,-1),0),b=new n.Quaternion;this.zI=="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.U8=this.U8||function(){var a=new n.Quaternion;a.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);return a}();var a=this.JF,b=new n.Quaternion;b.copy(a);b.multiply(this.U8);b.multiply(this.iaa);b.multiply(this.gy);b.J$(this.V8,b);if(this.Exa){b.x=0;b.z=0;b.normalize()}this.JK[0]=b.x;this.JK[1]=b.y;this.JK[2]=b.z;this.JK[3]=b.w;return this.JK}a=this.cta.Dra(this.filter.Cm(),this.sK,this.Ux);b=new n.Quaternion;b.copy(this.bK);b.multiply(this.iaa);b.multiply(a);b.multiply(this.gy);return b};c.prototype.vD=
function(a){this.JF=this.JF||new n.Quaternion;var b=a.alpha,f=a.zwa,a=a.Owa,b=(b||0)*Math.PI/180,f=(f||0)*Math.PI/180,a=(a||0)*Math.PI/180;this.JF.Daa(f,b,-a)};c.prototype.uD=function(a){var b=a.rotationRate;if(b){var c=a.accelerationIncludingGravity,a=a.timeStamp/1E3;this.Kx&&(a=a/1E3);var d=a-this.Ux;if(d<=p.hY||d>p.gY)this.Ux=a;else{this.LC.set(-c.x,-c.y,-c.z);this.sK.set(b.alpha,b.beta,b.gamma);(this.Li||this.Kx||this.isa)&&this.sK.K$(Math.PI/180);this.filter.Ppa(this.LC,a);this.filter.Spa(this.sK,
a);this.Ux=a;if(!this.G$){this.F$++;if(this.F$>=5){this.G$=o;g.trigger(new i(f.Ub))}}this.zI!=this.g9()&&this.hu();g.trigger(new i(f.$))}}else{this.ZV=o;window.addEventListener("deviceorientation",this.vD);window.removeEventListener("devicemotion",this.uD)}};c.prototype.bind=function(){g.bind.apply(g,arguments)};c.prototype.unbind=function(){g.unbind.apply(g,arguments)};c.prototype.hu=function(){this.Uaa();g.trigger(new i(f.$))};c.prototype.Uaa=function(){this.gy.set(0,0,0,1);this.zI=this.g9();switch(this.zI){case "landscape-primary":this.gy.setFromAxisAngle(new n.Vector3(0,
0,1),-Math.PI/2);break;case "landscape-secondary":this.gy.setFromAxisAngle(new n.Vector3(0,0,1),Math.PI/2)}this.RV.copy(this.gy);this.RV.inverse()};c.prototype.g9=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.LC.z>4.9||this.LC.z<-4.9?a=this.zI||a:this.LC.x>0&&(a="landscape-secondary"));
return a};e.prototype.Dra=function(a,b,f){if(!this.Ux){this.MK.copy(a);this.Ux=f;return a}f=new n.Vector3;f.copy(b);f.normalize();b=b.length();if(b<n.degToRad*20){this.xD.copy(a);this.MK.copy(a);return this.xD}this.T8.setFromAxisAngle(f,b*this.dta);this.xD.copy(this.MK);this.xD.multiply(this.T8);this.MK.copy(a);return this.xD};d.prototype.set=function(a,b){this.sample=a;this.eL=b};d.prototype.copy=function(a){this.set(a.sample,a.eL)};var p={hY:0.001,gY:1,wsa:function(a){return isNaN(a)||a<=p.hY||
a>p.gY?y:o}};p.Li=function(){var a=/iPad|iPhone|iPod/.test(navigator.platform);return function(){return a}}();p.$wa=function(){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return function(){return a}}();p.Kx=function(){var a=navigator.userAgent.indexOf("Firefox")!==-1&&navigator.userAgent.indexOf("Android")!==-1;return function(){return a}}();p.sV=function(){var a=navigator.userAgent.match(/.*Chrome\/([0-9]+)/),b=a?parseInt(a[1],10):q;return function(){return b}}();p.jsa=function(){var a=
y;if(p.sV()===65){var b=navigator.userAgent.match(/.*Chrome\/([0-9\.]*)/);if(b)var b=b[1].split("."),f=b[3],a=parseInt(b[2],10)===3325&&parseInt(f,10)<148}else"getVRDisplays"in navigator&&k.browser()==k.Vi&&k.XC()&&k.fd()==k.hE&&(a=o);return function(){return a}}();p.msa=function(){return window.orientation==90||window.orientation==-90};return c});
define("fq","require,eD,kd,bS,em,js,u,dF,gi,iB".split(","),function(a){function b(){function a(){r=o;g.trigger(new e(c.$))}function b(){var e;s&&(f||!l)?e=u:l&&(e=d);if(p!=e){if(p){p.unbind(c.$,a);p.stop()}if(p=e){p.bind(c.$,a,this,o);a()}}}var f=i.sd()==i.Ph||n.sg("debug")&&n.Fm("sensor")=="deviceorientation",d=new k,l=y;d.bind(c.Ub,function(){l=o;b()},this,o);var u=new j,s=y;u.bind(c.Ub,function(){s=o;b()},this,o)}a("eD");var c=a("kd"),e=a("bS"),d=a("em"),f=a("js"),i=a("u"),j=a("dF"),k=a("gi"),
n=a("iB"),g=new d,l={},r=y,p,s=[],t=y,u=y;l.wW=function(a){a&&s.push(a);if(l.disabled){if(i.sd()==i.Ph&&window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(function(a){if(a==="granted"){u=o;f()}});DeviceMotionEvent.requestPermission().then(function(a){if(a==="granted"){t=o;f()}});var f=function(){if(l.disabled&&t&&u){l.disabled=y;for(b();s.length;)s.pop()()}};f()}}else for(;s.length;)s.pop()()};l.bind=function(a,b){g.bind(c.$,a,b)};l.unbind=
function(a,b){g.unbind(c.$,a,b)};l.Ssa=function(){return r};l.Cm=function(){r=y;if(p){var a=p.Cm(),a=f.nX(a);return{yaw:a.ra,pitch:a.pitch,roll:a.ld}}return{yaw:0,pitch:0,roll:0}};if(i.sd()==i.KM||i.sd()==i.dY){l.available=y;l.disabled=y}else if(i.sd()==i.wX&&i.browser()==i.Vi&&window.location.protocol!="https:"&&window.location.hostname!="localhost"){l.available=o;l.disabled=o}else if(i.sd()==i.Ph){l.available=o;l.disabled=o;if(!window.DeviceMotionEvent||!DeviceMotionEvent.requestPermission){var v=
function(){window.removeEventListener("deviceorientation",v,y);l.disabled=y;b()};window.addEventListener("deviceorientation",v,y)}else l.wW()}else{l.available=window.DeviceMotionEvent!=m;l.disabled=y}l.available&&!l.disabled&&b();return l});define("iO",["require"],function(){return{$va:"single",FRONT:"front",ka:"left",BACK:"back",Fa:"right",eb:"top",cb:"bottom"}});
define("eO",["require","iO"],function(a){var a=a("iO"),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.Uf=Math.pow(10,3);b.yL=0.5*b.Uf;b.uca=b.Uf;b.$Y=[a.FRONT,a.Fa,a.BACK,a.ka,a.eb,a.cb];b.P8=function(a,c){for(var d=b.Uf,e=b.yL,n=a*c,g=this.yp(),l=[],r=0,p=6*n;r<p;r++)l.push(r);var r=[],s=n;r.push(this.Yu(g,a,c,-e,+e,-e,+d,0,-d,0,l.slice(0,s)));p=s;s+=n;r.push(this.Yu(g,
a,c,+e,+e,-e,0,+d,-d,0,l.slice(p,s)));p=s;s+=n;r.push(this.Yu(g,a,c,+e,+e,+e,-d,0,-d,0,l.slice(p,s)));p=s;s+=n;r.push(this.Yu(g,a,c,-e,+e,+e,0,-d,-d,0,l.slice(p,s)));p=s;s+=n;r.push(this.Yu(g,a,c,-e,+e,+e,+d,0,0,-d,l.slice(p,s)));p=s;r.push(this.Yu(g,a,c,-e,-e,-e,+d,0,0,+d,l.slice(p,s+n)));g.mergeVertices();g.computeFaceNormals();g.userData.type="cube";g.userData.c$=a;g.userData.rba=c;g.userData.Zsa=r;return g};b.TC=function(){var a=this.yp();this.d_(a,-0.5,0.5,0,1,0,0,0,-1,0,0);a.mergeVertices();
a.computeFaceNormals();a.userData.type="plane";return a};b.Raa=function(a,b,c,d,e){var g=a.faceVertexUvs[0][0];g[0].x=b;g[0].y=c+e;g[1].x=b;g[1].y=c;g[2].x=b+d;g[2].y=c;g=a.faceVertexUvs[0][1];g[0].x=b;g[0].y=c+e;g[1].x=b+d;g[1].y=c;g[2].x=b+d;g[2].y=c+e;a.uvsNeedUpdate=o};b.Yq=function(){return b.yL};b.EV=function(a,b){return 2*a*Math.tan(0.5*b*c)};b.FV=function(a,b){return 2*a*Math.tan(0.5*b*c)};b.Ax=function(a){return Math.max(Math.min(3.539647*a-6.669366*a*a+4.7454*a*a*a,b.yL),0.1)};b.yp=function(){var a=
new THREE.Geometry;a.userData={};return a};b.Yu=function(a,b,c,d,e,g,l,r,p,s,t){for(var u={},v=0,x=0;x<c;x++){u[x]={};for(var w=0;w<b;w++)this.d_(a,d+l*w/b+0*x/c,e+0*w/b+p*x/c,g+r*w/b+s*x/c,l/b,0/b,r/b,0/c,p/c,s/c,t[v]),u[x][w]=a.faces.slice(a.faces.length-2,a.faces.length),v+=1}return u};b.Twa=function(a,b,c){b=0.5*b/Math.tan(0.5*c);e.copy(a);a=d[0];a.x=0;a.y=0;a.z=0;a.applyMatrix4(e);var c=Math.sqrt(a.x*a.x+a.y*a.y+a.z*a.z),k=b/a.z,n=d[1];n.x=a.x*k;n.y=a.y*k;n.z=b;return c/Math.sqrt(n.x*n.x+n.y*
n.y+n.z*n.z)};b.ura=function(a,c,d){e.copy(c.matrixWorldInverse).multiply(d);switch(a.userData.type){case "cube":return b.Zha(a,e,c.projectionMatrix);default:return b.$ha(a)}};b.rra=function(a,c,d){switch(a.userData.type){case "plane":return b.Hha(a,c,d);default:return q}};b.d_=function(a,b,c,d,e,g,l,r,p,s,t){var u=a.vertices.length;a.vertices.push(new THREE.Vector3(b,c,d));a.vertices.push(new THREE.Vector3(b+r,c+p,d+s));a.vertices.push(new THREE.Vector3(b+e+r,c+g+p,d+l+s));a.vertices.push(new THREE.Vector3(b+
e,c+g,d+l));a.faces.push(new THREE.Face3(u,u+1,u+2,q,q,t));a.faceVertexUvs[0].push([new THREE.Vector2(0,1),new THREE.Vector2(0,0),new THREE.Vector2(1,0)]);a.faces.push(new THREE.Face3(u,u+2,u+3,q,q,t));a.faceVertexUvs[0].push([new THREE.Vector2(0,1),new THREE.Vector2(1,0),new THREE.Vector2(1,1)])};b.Hha=function(a,b,c){var e=a.faces[0],n=a.faces[1],g=d[0],l=d[1],r=d[2];g.copy(a.vertices[e.a]).applyMatrix4(b);l.copy(a.vertices[n.c]).applyMatrix4(b);r.copy(a.vertices[e.b]).applyMatrix4(b);var b=l.x-
g.x,n=l.y-g.y,p=l.z-g.z,l=r.x-g.x,s=r.y-g.y,r=r.z-g.z,t=n*r-p*s,u=p*l-b*r,v=b*s-n*l,x=c.direction.x*t+c.direction.y*u+c.direction.z*v;if(0!=x&&(v=-(t*(c.origin.x-g.x)+u*(c.origin.y-g.y)+v*(c.origin.z-g.z))/x,!(0>=v)))return t=c.origin.x+c.direction.x*v-g.x,u=c.origin.y+c.direction.y*v-g.y,g=c.origin.z+c.direction.z*v-g.z,c=(b*t+n*u+p*g)/(b*b+n*n+p*p),g=(l*t+s*u+r*g)/(l*l+s*s+r*r),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)*g,b=b.y+(n.y-
b.y)*c+(l.y-b.y)*g,0>c||1<c||0>g||1<g?m:{ova:a,vva:b,materialIndex:e.materialIndex}};b.Zha=function(a,c,d){var e=Array.prototype.concat.apply([],a.userData.Zsa.map(function(e){return b.R1(c,d,e,a.vertices,0,0,a.userData.c$,a.userData.rba).map(function(a){return a.materialIndex})}));return b.Y1(e)};b.$ha=function(a){a=a.faces.map(function(a){return a.materialIndex});return b.Y1(a)};b.Y1=function(a){var b={};a.forEach(function(a){b[a]=o});var a=[],c;for(c in b)a.push(c);return a};b.R1=function(a,c,
d,e,n,g,l,r){var p=[];if(b.eoa(a,c,e[d[g][n][0].a],e[d[g+r-1][n][0].b],e[d[g+r-1][n+l-1][0].c],e[d[g][n+l-1][1].c]))if(1==l&&1==r)p.push(d[g][n][0]);else{g=1<r?[g,g+Math.ceil(0.5*r),g+r]:[g,g+r];n=1<l?[n,n+Math.ceil(0.5*l),n+l]:[n,n+l];for(l=1;l<g.length;l++)for(var r=g[l-1],s=g[l]-r,t=1;t<n.length;t++)var u=n[t-1],p=p.concat(b.R1(a,c,d,e,u,r,n[t]-u,s))}return p};b.eoa=function(a,b,c,e,n,g){var l=[q,q,q,q,q];d[0].copy(c).applyMatrix4(a);d[1].copy(e).applyMatrix4(a);d[2].copy(n).applyMatrix4(a);d[3].copy(g).applyMatrix4(a);
c=0;e=4;for(a=0;4>a;a++){var n=d[(a+3)%4],g=d[a],r=d[(a+1)%4];if(0>=g.z)l[c++]=g;else{if(0>=n.z){var p=d[e++],s=n.z/(n.z-g.z);p.x=n.x+(g.x-n.x)*s;p.y=n.y+(g.y-n.y)*s;p.z=-1.0E-5;l[c++]=p}0>=r.z&&(p=d[e++],s=g.z/(g.z-r.z),p.x=g.x+(r.x-g.x)*s,p.y=g.y+(r.y-g.y)*s,p.z=-1.0E-5,l[c++]=p)}}if(2<c){for(a=0;a<c;a++)l[a].applyMatrix4(b);a=0;for(b=c-2;a<b;a++)if(c=l[a],e=l[a+1],n=l[a+2],!(1<c.x&&1<e.x&&1<n.x||-1>c.x&&-1>e.x&&-1>n.x||1<c.y&&1<e.y&&1<n.y||-1>c.y&&-1>e.y&&-1>n.y))return o}return y};b.eV=function(a,
d,e,k,n){for(var g=a*c,l=0.5*-g+0.5*Math.PI,r=d*c,p=0.5*(Math.PI-r)-e*c,s=0.5*b.uca,t=64/Math.PI,u=Math.max(2,Math.ceil(g/k*t)),t=Math.max(2,Math.ceil(r/n*t)),v=k*u,x=n*t,w=this.yp(),A=0,C=[],B=0;B<=x;B++){for(var G=[],z=p+B*r/x,F=0;F<=v;F++){var H=-(l+F*g/v);w.vertices.push(new THREE.Vector3(-s*Math.cos(H)*Math.sin(z),+s*Math.cos(z),+s*Math.sin(H)*Math.sin(z)));G.push(A++)}C.push(G)}for(l=g=0;l<n;l++){r=l*t;for(p=0;p<k;p++){s=p*u;for(B=0;B<t;B++){v=1-B/t;x=1-(B+1)/t;for(F=0;F<u;F++){var A=F/u,G=
(F+1)/u,z=C[r+B][s+F],H=C[r+B+1][s+F+1],J=C[r+B][s+F+1];w.faces.push(new THREE.Face3(z,C[r+B+1][s+F],H,q,q,g));w.faceVertexUvs[0].push([new THREE.Vector2(A,v),new THREE.Vector2(A,x),new THREE.Vector2(G,x)]);w.faces.push(new THREE.Face3(z,H,J,q,q,g));w.faceVertexUvs[0].push([new THREE.Vector2(A,v),new THREE.Vector2(G,x),new THREE.Vector2(G,v)])}}g++}}w.mergeVertices();w.computeFaceNormals();w.userData.type="sphere";w.userData.Zc=a;w.userData.tl=d;w.userData.pitch=e;w.userData.c$=k;w.userData.rba=n;
return w};return b});
define("bE",["require"],function(){return{sr:"data:image/png;base64, ",Rba:"data:image/png;base64, ",
sca:"data:image/png;base64, ",
uy:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAE4CAMAAADW5D7KAAAAM1BMVEUAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBprCkqAAAAEHRSTlMAQIC/758wECDPYK/fcFCPt8VnWAAABehJREFUeNrt3N2WmzAMRWHABmx+/f5P20672kwSIBYI8MA+110T+sUWQnGSZeQyqZu2C1+xxpiiaPIak7kUNrzFjH2FzPuy8mEupsjxibT6szHbhj35PyZ8jMfrb/oQlXaAKstsiExX3H55DUGQ0t0bqwwBLsXyDpe4ZH3jqsGKj+3ZhoL4ezb2bViX8Y57sVmJFbobLq7artUKxQ3HM6uxgr9dF1F367Xs7bZitX4jhtCjJelQb7cT2w1a/nY9RFV2lHnJ8sq/MhRFa4Tb0t77g406L1qLlmRr9i1akhXWtGhJvPoOLUEGQwchSG7Q0uVqUXpsxo+1awTpUeo/DnMakL51Xp5boiAjRV5S6C0Dm/i45a3IWZvnOr94OsKyEQWFi27rJQ0bUUmrYyMKtGjkJVoOnpcsPPsYdF6z0EHwRYO3eJaWoDu1jB8EQ4j59gGct/R0poIYqpZgBGG5ISpsRAZbkv6BNv49OadzFRp5uoepGk+JV3iipsQLnnosNIKqRRcvqFrsw6m03A+391qcfJhKx1dVNncPjB4kJV7vBZrSh6Pj236XB1y/axPfHA+154/wFDsWraYLZ8aqTwSq3Q6JVD6cHfUvg08/8vjtyyqkEOXF1e5T4cuQRnQfRvpdKnwqVsqnzvI9PmwdQzpRXVs7bPYmpBTNuuXVV6+zSWFpTn5L9Qcek5aV5hCl0H6BIaQWvbnAoN07dMlh2b1vh+ozsjOjdpDKKX8uXSaI5XfuHVbfQmyCWHpHEnSxUtyFivtQF6tIEmt1G18Vz5n588//qI8dpbVJYplj33obue1NklhBddepreQOrPiVHC6Ftfat709pRGZuufPpVbFW/vRdmSWEddwDySqtMrsn1hqtMrsrllyrzO6LJdWS9L/Xw5JpiZ4VLogl0ZI9V10RK15L+Ax6SaxYLenz+jWx4rTEs42LYsVoyedAV8X6rLViZnZZrE9aa+aL18Va1lo1i70w1pLWurn1lbHmtVbO+C+NNae19vOQa2NNa63+7OjiWFNa64/LXR3rXWvD0cLLY71qbTmGeX2sZ61NR1ZvgPVda9vx3jtgPbQ2HoW+BdY/ra3Hxu+B9Vdr8xH7m2BlrjTbz/XeBUslYIEFFlhggQUWWGCBBRZYYIEFFlhggQUWWGCBBRZYYIEFFlhggQUWWGCBBRZYYIEFFlhggQUWWGCBBRZYYIEFFlhgCbAqc1DGYnA/HevQ367vRgeWICYHS8LlwIqPbcBa+auvYAm0wBJogfU5I1iCDGAJ7ok1WOKNCFZUHFjSOyJYgqoFVlwasIT7EKzI8RZYgtRgxScHS/bIA1Zkih+G5YpD0l0C66AYsMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssMACCyywwAILLLDAAgsssJIIWGCBBRZYYIEFFlhggbUnli/yOqvz3oP1kerxLJkbsBYzPr1WD9ZCmpcXa8CKXFdKa+uiWD765cCanBM6sCbTTb5eC9bc33hPA1b8tN6BNRU3/YJgCf5XYE2lPhArP/PR/gvL/qCadSpWr9A/Hnk3HM7EyhWw/C59lpn8q8WZWJXGBezSwZfpYaksbbNHA9/v81ywdQfVQf8/tn1G4wT39GMyKr1dr/Osyqq8jfr9yNaSpXKLeV5bjQ377MLq7F34O932P2Ue28YpFBZb79OPKOwelWtom6916hqVGjzdu2XleVaPQZQPaWVmYWlsgbUZkqgFy1eWSslqU2n2IhvSLBsTWeplQlZ+bnJy2i601fOFpFO2fC071nxCWajb1K1OW/12SKkiPNWrWSt30hV11eSwyJ5OZZv5We9JN6F25t2ri2SX1e+LO+Wt9AvfNKmL8/o+O7qlDxHOqBLtpy/l5OMZcxA/DsuXdXjF6trGRX0U5PJj45K7pMmi/gv70+gtsjuKIwAAAABJRU5ErkJggg==",
xca:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADcCAMAAADA8VqlAAAAM1BMVEUAAACAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBprCkqAAAAEHRSTlMAQL8QgO/fn89gMHAgUI+vkrzZGQAAB8pJREFUeNrtXduW2yAM5H63zf9/bdukjdYBjI0t4KHz1Obsnp0INJKQjMl//MeM4I7MDaM4mRk6xo1MDB9/Q5BpYeMLlEwKJ98E5aTbMMj4F4bMCG7iByuZEFv8gYVMBx1/Qk6n1zbuYSZzFBq/oclMcDIm8GQecBUzmGgbmpjDPGmDjnkwMgdElt08aYPNcpsnbXDxADKQ0Qgyy2yatIHnHXietIHFGixpALLAzJM2OPZBBMyZNnzb7SUw9IUpCa5kNsybKGQJSjIb6JxpAoDOmCUcEKT5sLgIT8kApASzP8Le23OMdWktReB6rHLTSkXHzeDYQisF3fZmtrJRMk6PfWT5hL/wMmUgvRF2BJMlVFDkcTmmqt/VmxkDglkt/ERPHMYR/dNoHGzcE4epjNodyJkh5d6RE/O9dushsVAdODHda7cY4CVQPYGIFBnRIekOO4jEsKYgSaQ39IHKsK9lH+LGoqQy4LZD3RgIQrOuaDE24vyVHqTT33tONOhMV4J2hBtzIGiPCIIu9gYQpDWCfIjOmDJBCZV88kE/MCBY00HCRnTzBASSKsF1hBv7CwQ9qGU/0DLB7du16YikmmcJgjCPd+M6QYAaEY3ZBYLbCC9ZswQhtA33Ep8czJRTaNr/kBPcmJUJAj6VgVvZq1clmUCPLUWCLlUV9laeRe0KfkvwAIWdylNPN6zmW9JTQbQiDM4cE4TDEGU6d878IcFQkHVmX1ZznqF3WCgQrARjyM7Uj48Dw55nuUJwzZ21euR5FlYiuKWba8mWLxZ38EskBMtlHIcKNWEoN+EpRqhe4Hy1SpCYUlgEmKfFmycp/0HoXWE1088Bag2Pb0JajXVgbn1ijEnz5zbhBYK8FHZCOlVgn1VCm/+beUu5oq/JQP329KyfLLQ6cwRFSfS4gpNkLuSjzSl9QDBkzc3Kw1bqTXd9kqEFcTsOJRB4eCEvgr1C5XOrzMEodYKsGDbsPrMM5rkmOUs8s9x5EOXsRe5HM7iE/92Er8Y6gIOdlucOy+rk26CO0ps0Q5mgLtgpHPQmA3xxgNKUtMNUlDpNwe1Bdi4KU2ys3Y6+SNAUUnB9kHfI4qC2vbPGPu/dheFNVpL8PQ/21PAVOw4lqd7Jo9xSJSYU3N4rDSwQ/KLiCu0pkoWQ0WhP03alg73RBC6PQ0kqyPRa0cg+v+hb4zHLe6UvqMly+pvDvqSy3VMoEKw2l9SVbM/+HK2zN8ZPFasoNcCLJVyoef6YzXgOdNseFxDgek83sSkNez/f2qQQ/o15bL41O0ruayEcm3PVOoyfc0uMgSgKi3wfDONcXzz2xAUI4fOLbEgz8Lvsy63Epkfjgd1UB/RpHnrThPjTPOzeF8ef5qE3HRl/msc8VdQzpB6DfS3NtDrzt3oR8+oMIeKG0mBP84A+2Hl1hhDdrDT4+QwoTZg0n3lB3anjewz/+nv9e/zhXy4fcZNlt5cndBOHN0jhXm4ya7rwLyCv06YLjW5C/eKQyxIAvxxN3PvoTwcCEMk6POsm20XHf4OFshsPjCY+AgSyG0M08dfCmmHQqiy58ZCkC+IutwoY4rkxJEvuemLgX5vRF914gBQCQWhiSY7pxlCbyIsEIQwJVDcGKVxacj/xMiGmG8MG0i1hF5Kh1I0HrDEQ3Km8QnVjqD+XiwRBASimG4Mh9PnAo/Y7csN0YwilsumsbXntPVQ3hjVuKD8gUKZuPGiNoYCDgTGTbUaMWGPw1r2bBPwZ/rpWp08QA2OPcQaXavV60tQqyQ8Z4hlc/eHvdIo7rQs5+kMGvJpzgdPazEf4T+6aeiQAc6W1P7bOwFaqq6DJkbbIOgO2qedaPveh5LgE4XH/uhq5bF1ocBMuCCZ1V8q7dtQIp5ipwrWdlnODfKUeWCe0tQ2dxCUIQmPbCBKHQLAeJK4MeNjqLbf4m/A4p/K4V0rBJmzWIo1KEDZhe4FqotSOYGKtp1z24M7s4AgylnpPkN9skOL3BPW4a8fPlRWhcWSp3wjR2i53fVpuXLUOH/bqnNPO95Ndf4BeD7wJWJ7501y2jTr0G4BZWoJa10E71vUSuobrbILsc+1N+0CvH3ZV8dm1M2MiHmRc04rhenZz6QY/6TrCwEf5iTp7FuwHxRN/ever7hdYwdL59iFdfKynDcPG5F3htHvSQa8qMadXTo9Z5PW0XbhsYdhzko02HHfgF5/pkRHr7ClA8CxDeahLQwkSK6s3Bo0lSJyJL5hi2BtKEO4iwLdi++VtjjVQ7Dv3Tj8UBbJHg1C3UpQ6EERAqGunGNlCMphgLNjp5KobBOg7eWhY4dWFNtmNUzzBwb2Ci4P3HKd52o7q+AHzgbww1/OK3BvgqPTynCHDYydrblURoLR1jwQRA7XkUxwBRt/ek/rpAw0nTNxhs/f4IZS6fFl3JNVygx/WkRVfBJNgRX6HnyNYCFarGy9Z4Qz44WFhrQydAX6ooKrpXU9eAj9k8IZ7rALDvIc0ZXjVF4XsW92GayZcVPc3bK0X4illsX158Z8PsSo2mw9/VhGyXxZIX4i60nALJQ4lveEqSRO3WxxBD6AOVNd5Fj/QjgzBkv/rYZdUROU5GQX9bwGZ+AvN9qmjXMcYDxgeQenxL4u3ssSO+TlevAmuCmDaz/DeZoCji/gLP8t7Xv/jP87hF6zG3Qlg7TIVAAAAAElFTkSuQmCC",
wL:"data:image/png;base64, ",
Lr:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAB0CAMAAACBmP1sAAAAmVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACRkZHz8/M8PDzLy8ufn5/u7u4UFBT8/PxmZmbz8/NNTU07Ozuvr6/i4uJwcHDm5uZfX1/o6Oi8vLy9vb2AgIAoKCj29vbT09OsrKzZ2dkoKCiGhoagoKDb29vJycnQ0NDHx8f4+Pj///9ot3XMAAAAMnRSTlOyALYLBLrAvRUiGsMxKS004vxC8WfNyPNP2tLP6rXa+NbBgu3eyeibdvTMWuWojp2P5xSTSb8AAAbBSURBVGje5NfrUuJAEAVg1l0SNTEJAUK4KRdRvLu8/8NtTyeHw5CKEwzln21rt7RK+ep09wyh8+vn62TzT7Ucf9HKpPIb5YBbmrAqRfu85oF3ab5Q+sOhex6TILDr60v5ksL/aoNtZ1IEqMTVcRFG2HZmCZqA4G6OC7CyTdSOSwRYcFEUSr0MUHloKipgYRH22yZEyaCe0d7fhqPdYf0dvq3yWN2mascRsoxowPx9Sc6u0XyVxsJqWHT4dJOigun7GECvv05Q/f7eXZYs1cYmSYrxYF5y62SSBYHHCoLNIukjbV6oQJubDFmK26G+5N3rdM/5RcENFrNeEXYgKqICdZkkNaTJqGJvZkBqfrfbxbclu1Z1KFkdUWHaJEKGca7i3W1mQLUqtWefEw37lsbRjUQF6jRJasiPkYoaEeCFVXvXqJmqoy2iAnWZIG+iOB+briYiAqRlu1RfdaxpGBF1mhil9HVlQq4ziAA7VlmsUadmix9epL9Aa02mBDk3IRcmJEVaVXev3puoqzgk+oVJMgpTszz9IiTB2rLU6ZP87ZzoVybJODWj1ElqRogutkSzmUHTGrRTT/ZkXRESYkM1CBJBx4rqkak3i40FOUVfm4ryj+gtUY6Upr2ysj4kbbF5VM9TdBlHV0Atk51tR1IlOheUI62aIOPlEXnRAn3kSGmSxP58yK9OQLoAJ7qtjBQmOxsP5BdvSX5LBSpHZpRLdxWtmvthyoU3I/ktkahcDsOYQWlax0SG+RQErVIyabDpcaQVE53d6v4wZZukvqALmVSuuytBaZK8CtOH3e5eSL9NSiySdnct3WXQqqk7+6TDxLlsjWbS3a1ZIwbtYGk1Zq7HpG1n7ZHey7spgtJkzLns7JlIjvRO3kytiXYQU0yNufE8DvMs3Z3IBwwEhcmlrYnZtrt9K6hlRumIMVntg8p5GTOoMbFBN+GnienY2Qutk4LqRAeRbWKDxrK0jpjFA15ztQgqqzuXoDguNMMXeXrGNOtfYuHz2cEplkEzuepjBu2wtW9yBTlj+rv+ptmaMaheRtuwakbxg2yQ49XkBeQ4vWZUnUGxRWyumBhnrtceYtaZnn5Iuw+wa46ymlsxw5U8z3ou01dTBj/Brdy4uS8YqJgY59Jsrd91mMGurPUzGtxwcz/DqinjdLZWTVSSuVVculN57sRAxcQlJJ9OvJNMedDHWN3NxZuLZQ5kHz2/kcnqO8aKzdU7N42OzXc5nWiV02TNMFbHQGe8/tTU97FHs0KI6TbZ4CRjg+vNpHxvoSkrNNQbobnJultwrLUndGKe/2BibcX0TjQ5Vjwp1qE0Lw/NcQtTxlo2uNbcFI9/tomjcqLJsQKtGaiYOCznMHEdej9ncqyb7n9g/uvVDloTBoIwDBcPkWI0l0K1pZdSELzU///rOpnk6+u6LmucmL0UCuVh1nTdzHzRvZ3/Gdok5lL/K5iLnglm8v8ZPfua+84+PxM4b597xq/9jG+vv1eW/C7TFezR72zEsqnvbEzuJpvJd5Nmwt2ky+4m3YN3sLLII5Tewbj3dc+/a9pjm5rtedqdGvHeO7Ue24t7/BLvDph8oKcJ70iI9TL7dyQ9Qm7qA+3fBTfPexf0jxPTTyJ/58UMv/NCJlu70Lv95kdbK5PNpYfxMlMPg67UW7sdmzWYhnrr9kSh8cUTdGBrzcxab5jzkENPSoeQTG2u994oNE4OZX7YWasyE3PuHiNleo9RT1DS16RQHt0ZyLGX2tHuw0x7xmvQ8M56z5gyZVKoeuPsbsCkN86niUmhwwwg3hxPZwA3+/EMAYZZB2iwdXuynf1VmZl5NdNZx1D7W2Y6hfkKu6vZVQB1ktmVyKL52vqM7jOEOrkeZ3TpzsoEZRYZQP/H2j6L7MmSCeqTZdBVhPzKB725aegO9MmzZQrt0fdk1LuaXuQ4Q4fMzAzdH3RNp9SpWQHIsglKJkIo6pRMREqWTaF59uMe0YtU9iMjMQuoMi6ViIvALOOSk5gllCwPKm7iIZLlKZOYoASIlFlqXIVlAY4BLTJLkLlZRq3U45DNyqNZrFI2C7Jsgt7MoDVpBs2xYgatnZRBA1WpZO0auYJLWTuyYEbWTVAyhd9kCuVq3cwUWpGQBbOe1kyzk8092UnIukmpqMYGMqKBLGy3P1eysCYGsrCgZH53xna3Mr9Hz/w6iAgZyjb7Hveru8g2d87ttg66SJE1s64qUm2yLddNM848gYjBrDqsu/mqZNWjmXxl5N3uf+IhhkxUZwUny34BiBgwYXF9YeEBxk1YX0BwgLOauKyqFzdZWA+sP5AziIxB81g8AAAAAElFTkSuQmCC",
oca:115,Rva:115,Dca:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAB1CAMAAABKxC7JAAAAh1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQkJBMTEwAAADz8/M8PDzLy8ugoKDu7u5wcHA6Ojr8/PxmZmYUFBTz8/Pi4uKvr6+AgIAnJyfo6Oi8vLzm5ua9vb1fX1/S0tL4+PjZ2dmPj4/JycmsrKyGhoafn58UFBTb29v///9i05URAAAALHRSTlO0AL0KwyYRGDMuHuPUyfxC8WbN29DzT8jaterfzMGC+e3XnOf15Y52W+fOqAzih28AAAcuSURBVGje1JWJcqpAEEUJkrxBZHHfUNEY1/n/73s9wzQ31ACiUq/qXVKpklKPp7uncT7+ff4TZs/6s9IJEzT9j5O/ArlrZk9ddQG1OybkvnT+mEsHzt0xWTCn2dFoYN9lAmhw/X7/sxy6Y7igvsYEEUDg7PQZi86+xASx4Pm+L4S4DDkzQfH9HEtcyD7JBJEV+zmPaKf7aCp/53t03yqy5oL6KlMhWZF4s9MGuHKmy21MWFCh+gyTq9rPDePTggFRkgWcJJGcDWF9H9QXmKaPueJwaXBZMJh75aT7IGFbKrKhQrUlE2XVxPNIquyuE0K4VhR4v4py2aGhKtXWnqirIQ41MVoBWIPNNHVErlBtwcS8fhnkTBN343kJ6HBK2DTQsvfYqPYorT11XbXkYaqJUDSo4lIBda6p07MQqG8rJuo6W6iqBgWxoHH4JbDzq26rVtX1bcEEUoitksx0VQGsir7L1EmiNsWlqG8DE71k5FJJ7kGs5sHX4QqvJWUrBKDNTIOkJaCGJzGSUGwIqJMjfXYJaDOzVyBVKwOWBK8Nlbq6UtC4BurUI6MxSyKtqQFBFwqKc1rDLCEnjHyOaqBjQGuY0KTxARLEZwLoRvhcXZuJkS0jQXyuvgxdAlrJZKTYAPlaXEAPQu2Gcksdu5kHeusAli8F0LPdUsdq5pDeOIblW6YrWr4zVNdicjNp4a3etIQpLYeROqVVTFSWmnmE5bumaWRaylAwoXlW8wPLt0331ClTXTBLmiL+lnJtbZ93WppRdSFqMfOZPaKZXYjOI5pdFgUTmjN9TGDZhelaym8WBROaS5rZjiwxuzsptyzKTAyt0kyh2ZHoAKLMxNB2qwnTBKIlptKMp9DsiMjnZcGizOx95Jqnek233VUjSh0dKtGCiQla8NBavLaxqa4Z3aUWNUyU9iLljjXtz7WIxlaJzmnVC78oroMJupsVZFuug7YZu5U/ODN7wTC5nb6gtZdWaLpuItsncCu3LooLz/xwHqu66U7kE4lct7a4YHI7t1IGlcyBfCae1RtT3IvPj1GnaOeGplYj3S6YCC/dk+CGOnw6VTsrJ8h7mQlRj/qzMQ2Fpx9LmVSclPeYEOWdCya1cyjl1SNk9568c2OfmTxCJzqd0Ozcc0Xrj7cCMfPn2IFHqEtPNDTIny1l5ggbodbzOE5v+0SWkw1uk3VUzYQofcmBN5HTA9N74JmFYeiF4aqEHIcqt2OjJ5hf7KmOysIw6z2jW+hRwnD32zLMb04eeKZSjgomH08pkwee19DTCztcS2SgbxI0afb0iCkKzx6YzZ57Zg4kEvLNn3pPMD9RWzCdBs8f/vq9RNK/tJnbTsMwDEDFijTESlXYG1TqyxBi4v+/D9eLdZTaklct9QtlgbnHcRxf7MPPlBOdNSeYnnOUnVvMWDnRV7HtddjA2eWcuKi6i/yODNPtw9+/LZxP+X4CJXJWosv01uvD3C9HRVRu5eSshJxQjeOsD/NVNJXzcRlH0Z5wTtF+fiTn0wQzq68ieRzSs0LsU51TwonMonJpd8GXcMY6LcbnnFa7aeS+i5MYfyTG212WcXJq5C9LcZnfn9xl3CvdkTs74QTTXj/nrO/sjjyB3MS9ZO8xy7sBmnL63ERT6tBx0ekwAU046xyMvI9ccy0upyZeybetQYcovyXXhNMqwdNzwOlqh76adaxAT+6tXU5NHv9C7VCL1Ujfi8hPM4YxnFkMayT1b6sd0EmNBGj9T8jqrXQRoQ6IayTqsrgWRHxhy5JfjMuVH9tOOMW4Yc3rxzcbFzFt2U5q+1dq+/greUgWHSa1faXT9TDaSelKvWNa+iZiXO3VANq0V4PXis69Wm9gak8Kr1WdeO6OvTc6GHCKF+3ZY3T9PryofS9VpoSKiQehU+MfPeMWoAd6xmC6PjW98Rag9MbZTXQSFxrNALCszgDCfjwB8NFZB8Ksg7DndDaZ6UDJTEdDkNdJd7PMrh4edxxEdHaFZcN5GTO6/1btXbVhIIqiKKhNm5RJ4f//yIixLgtxjY9Ho3GVNMtHeWCY/f1Et5WV23FH5xco3EWuociHC9DXd66ueQu9PnKrO1dPltmvs6HXpiJ/kWcTCf1xh35hpDt0pMOEjtJEKzA3tcgvpHypm/5KWxMxM1ITUWRoIqDaD1Mn2w9kaFwKbY1LUHvj4sEG0/+G1vLsryxqeazMXY2AqJolkVS57aNtb5asjCb03GZt2PPrXZuVezBqBWH71FODBg4NGhLazY5eb+20YMRger5HxfinKeTyFptCaGgnab2dHCOFuNHs6shgP2pEpanK1GB21NaPWtgsMnNlXEHs6+b38Wx+d5CIzGafSj3c1jaLm2fa5qxih+wM7gBLRE6aVGNbOn5ww8tgNqkS+R0esqPJJ66bxpZb9NDK20HiomlssWxf1hu70bS2Bjve0v2mn234zs0miTV//gHyyprZmiIc9wAAAABJRU5ErkJggg==",
Fca:115,fwa:117}});
define("je","require,jquery.mod,eD,kd,bS,em,u".split(","),function(a){var b=a("jquery.mod"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("em"),a=a("u");if(a.fd()!=a.ly){var i=function(a){return a.requestFullscreen||a.msRequestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullscreen},j=function(){return document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen},k=document.createElement("div");if(a=!(i(k)||j())){var n;try{n=window.self===window.top}catch(g){n=
y}a=!n}if(a){var l=c.extend(f,function(a){f.call(this);this.I=a}),r=o;l.NW=function(a){r=a=="out_of_frame"};l.prototype.available=function(){return r};l.prototype.Eh=function(){this.toggle()};l.prototype.Pd=E();l.prototype.toggle=function(){r&&window.open(window.self.location.href,"_blank")};l.prototype.enabled=function(){return l.enabled()};l.enabled=R(y);l.dl=R(q);l.Pd=E();return l}l=c.extend(f,function(a){f.call(this);this.I=a;this.fo=i(a);this.wea=j();this.V=this.DP();var c=this;b(document).bind("msfullscreenchange webkitfullscreenchange mozfullscreenchange fullscreenchange",
function(){c.CT()});b(window).bind("resize",function(){c.CT()})});l.NW=E();l.prototype.available=function(){return!(!i(this.I||k)&&!j())};l.prototype.Eh=function(){this.enabled()||this.toggle()};l.prototype.Pd=function(){this.enabled()&&this.toggle()};l.prototype.toggle=function(){this.enabled()?this.wea.call(document):this.fo.call(this.I);this.CT()};l.prototype.enabled=function(){return this.V&&this.DP()};l.prototype.DP=function(){return this.I===l.dl()};l.prototype.CT=function(){var a=this.DP();
if(this.V!=a){this.V=a;this.trigger(new d(e.$))}};l.enabled=function(){return!!l.dl()};l.dl=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement};l.Pd=function(){l.enabled()&&j().call(document)}}else{l=c.extend(f,function(a){f.call(this);this.I=a});l.prototype.available=R(o);l.prototype.Eh=function(){this.enabled()||this.toggle()};l.prototype.Pd=function(){this.enabled()&&this.toggle()};l.prototype.toggle=function(){if(this.enabled()){p();
l.Fp=q}else{l.Fp&&l.Fp.Pd();p();var a=s();a.push("fullscreen");t(a);l.Fp=this}this.trigger(new d(e.$))};l.prototype.enabled=function(){return this==l.Fp};l.enabled=function(){return!!l.dl()};l.dl=function(){return l.Fp&&l.Fp.I};l.Pd=function(){l.enabled()&&l.Fp.Pd()};l.NW=E();l.Fp=q;var p=function(){for(var a=s(),b=[],c=0;c<a.length;c++)a[c]!="fullscreen"&&b.push(a[c]);t(b)},s=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]},t=function(a){window.location.hash="#"+
(a.length?a.join("&"):"")}}return l});
define("gf","require,jquery.mod,eD,kc,u,iB,kr,bE,je,cx".split(","),function(a){function b(a,b){this.Gpa=a;this.ffa=b;this.AT=[];this.Xf=q;this.DB=y}var c=a("jquery.mod"),e=a("eD"),d=a("kc"),f=a("u"),i=a("iB"),j=a("kr"),k=a("bE"),n=a("je"),g=a("cx"),l="color:#000; font-family:Arial, Helvetica, sans-serif;",r="",p="border-color:#b2b2b2;",s=p,t="background-color:#009adb; border:none; box-sizing:border-box; color:#fff; cursor:pointer; font-family:Arial, Helvetica, sans-serif; text-align:center;",u="vertical-align:middle; padding:0;",
v='<img style="width:33vmin;" src="'+k.sr+'"/>',x='<img style="width:24vmin;" src="'+k.sr+'"/>',w='<img style="width:34vmin;" src="'+k.wL+'"/>',A='<img style="width:34vmin;" src="'+k.Rba+'"/>',C='<img style="width:24vmin;" src="'+k.sca+'"/>';if(f.Qa()){t=t+" 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;";r=r+" margin:5vmin 0;";p=p+"  margin:5vmin 0;";s=s+"  margin:3vmin 0;";u=u+" height:4vmin; margin:0 1vmin 0 0; width:4vmin;"}else t=
t+" font-size:19px; padding:17px 34px;";r=r+l;b.prototype.sO=function(){if(!this.Xf){this.Xf=c("<div/>");this.Xf.css({position:"fixed","z-index":j.Yba,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});this.Xf.html(this.ffa);c(this.Xf).find("button").on("click",function(a){this.Jja(c(a.currentTarget).attr("id"))}.bind(this))}};b.prototype.VS=function(a,b){var c={},f;for(f in b)c[f]=a.css(f);this.AT.push({$el:a,css:c});a.css(b)};b.prototype.Wla=
function(){for(;this.AT.length;){var a=this.AT.pop();a.$el.css(a.css)}};b.prototype.show=function(a,b,f){a||(a=E());b||(b=E());if(this.DB){var d=this.AF;this.AF=function(){d();a()};var e=this.nF;this.nF=function(){e();b()}}else{this.sO();this.AF=a;this.nF=b;var g=this.hha();if(g===m){this.DB=o;var k=this,g=c(n.dl()||document.body);if(f!==o)g.children().each(function(){k.VS(c(this),{visibility:"hidden"})});else{this.VS(g,{overflow:"hidden"});g.children().each(function(){k.VS(c(this),{position:"absolute",
"z-index":0})})}g.append(this.Xf)}else{this.DB=y;g?this.AF():this.nF()}}};b.prototype.hide=function(){if(this.DB){this.DB=y;this.Xf.detach();this.Wla()}};b.prototype.hha=function(){var a=g.getItem(this.A1());if(a=="true")return o;if(a=="false")return y};b.prototype.g6=function(a){g.setItem(this.A1(),a?"true":"false")};b.prototype.A1=function(){return this.Gpa+"DontDisplay:"+window.location.pathname};b.prototype.Jja=function(a){var b=c("#tdvvriw_dontdisplay").is(":checked");this.hide();if(a=="tdvvriw_continue"){this.AF();
b&&this.g6(o)}else if(a=="tdvvriw_cancel"){this.nF();b&&this.g6(y)}};var a=e.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',v,'<div style="'+r+'">'+d("use-cardboard-info")+"</div>",'<div><button style="'+t+'" id="tdvvriw_continue">'+d("use-cardboard")+"</button></div>","</div>",'<hr style="'+p+'">',"<div>",'<div style="'+r+'">','<div style="margin-bottom:2vmin;">'+
d("samsung-internet-vr-app-info")+"</div>",'<div><button style="'+t+'" id="tdvvriw_cancel">'+d("launch-default-browser")+"</button></div>","</div>",A,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+d("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"ChromeAppInfoWindow",a)}),B=e.extend(b,
function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',v,'<div style="'+r+'">'+d("use-cardboard-info")+"</div>",'<div><button style="'+t+'" id="tdvvriw_continue">OK</button></div>',"</div>",'<hr style="'+p+'">',"<div>",'<div style="'+r+'">','<div style="margin-bottom:2vmin;">'+d("samsung-internet-vr-info")+"</div>","</div>",A,"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+d("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"SamsungInternetInfoWindow",a)}),G=e.extend(b,function(){b.call(this,"SamsungInternetForGearVRInfoWindow",['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',
A,'<div style="'+r+'">This content requires access to the WebVR API.<br>To enable WebVR open the "More" menu you\'ll find above this window and then click on the "Labs" item.</div>','<div><button style="'+t+'" id="tdvvriw_cancel">OK</button></div>',"</div>\n</div></div>"].join("\n"))}),z=e.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">','<div style="'+
r+'"></div>','<div style="text-align:center;"><button style="'+t+' box-shadow:0 0 4px rgba(0, 0, 0, 0.5);" id="tdvvriw_continue">'+d("exit-vr")+"</button></div>","</div></div>"].join("\n");b.call(this,"ExternalVRDisplayVRInfoWindow",a)});z.prototype.sO=function(){b.prototype.sO.call(this);i.um("vrv")===o&&this.Xf.css({background:"none"})};var F=e.extend(b,function(){var a;a=f.browser()==f.Ug?window.location.protocol!="https:"?"<div>"+d("giroscope-disabled-http")+"</div>":window.DeviceMotionEvent.requestPermission?
d("giroscope-disabled-safari-request-permission").map(function(a){return"<div>"+a+"</div>"}).join("\n"):d("giroscope-disabled-safari-toggle-on"):"<div>"+d("giroscope-disabled-http")+"</div>";a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>','<div style="'+r+'">',a,"</div>",'<div><button style="'+t+'" id="tdvvriw_continue">OK</button></div>',"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+d("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"GiroscopeDisabledInfoWindow",a)}),H=e.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',
v,'<div style="'+r+'">'+d("use-cardboard-info")+'</div><div><button style="'+t+'" id="tdvvriw_continue">'+d("use-cardboard")+"</button></div>","</div>",'<hr style="'+p+'">',"<div>",A,'<div style="'+r+'">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).</div>','<div><button style="'+t+'" id="tdvvriw_cancel">Use Carmel web browser</button></div>',"</div>\n</div></div>"].join("\n");b.call(this,"CarmelInstallationPromptVRInfoWindow",
a)}),J=e.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',v,'<div style="'+l+' margin:2vmin 0;">'+d("cardboard-v1")+"</div>",'<div><button style="'+t+'" id="tdvvriw_cancel">'+d("use-default-cardboard")+"</button></div>","</div>",'<hr style="'+s+'">',"<div>",'<div style="'+l+' margin-bottom:2vmin;">'+d("cardboard-v2")+"</div>",'<div><button style="'+
t+'" id="tdvvriw_continue">'+d("use-cardboard-v2")+"</button></div>",w,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+d("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"CardboardV2InfoWindow",a)}),O=e.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">',
'<div style="'+r+'"></div>','<div style="text-align:center;"><button style="'+t+'" id="tdvvriw_continue">'+d("enter-vr")+"</button></div>","</div></div>"].join("\n");b.call(this,"EnterVRInfoWindow",a)}),K=e.extend(b,function(){b.call(this,"PreparingVRInfoWindow",['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">','<div style="'+r+'">Preparing VR...</div>',"</div></div>"].join("\n"))}),
M=e.extend(b,function(){var a=['<div style="position: absolute; top: 7vmin; right:5vmin; ">',x,'</div>\n<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">',C,'<div style="'+r+'">'+d("use-safari-for-vr")+"</div>",'<div style="text-align:center;"><button style="'+t+'" id="tdvvriw_continue">OK</button></div>',"</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+
r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+d("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"UseSafariVRInfoWindow",a)}),e=e.extend(b,function(){var a=['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+k.sr+'"/>','</div>\n<div style="box-sizing:border-box; padding:0 10vmin; display:table; height:100%; width:100vw;">\n<div style="vertical-align:middle; text-align:center; display:table-cell;">',
'<img style="width:22vmin" src="'+k.uy+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+d("rotate-device")+"</div>","</div>\n</div>"].join("\n");b.call(this,"RotateVRInfoWindow",a)}),L={};L.tca=new B;L.Zva=new G;L.VX=new z;L.Fva=new H;L.Jva=new O;L.Tva=new K;L.kZ=new M;L.uy=new e;L.$X=new F;L.Eba=new a;L.wL=new J;return L});define("cn",["require"],function(){return{sr:"Cardboard",Hca:"WebVR",Ica:"WebXR"}});
define("fh","require,ig,u,fI,iB,X".split(","),function(a){var b=a("ig"),c=a("u"),e=a("fI"),d=a("iB");a("X");var f={xsa:function(a){return this.oD(a)||this.x$(a)?o:y},Wm:function(){var a=c.eta();f.Wm=function(){return a};return a},x$:function(a){return typeof a=="string"&&e.is(a,e.JM)?o:y},Zwa:function(a){return this.VV(a)||this.WV(a)?o:y},WV:function(a){return typeof a=="string"&&(e.is(a,e.Wba)||e.lD(a,e.Xba))?o:y},oD:function(a){return!!a&&!!a.tagName&&a.tagName=="VIDEO"},$q:function(a){return typeof a==
"string"&&e.is(a,e.Zi)||this.oD(a)&&e.is(a.currentSrc,e.Zi)?o:y},w$:function(a){return typeof a=="string"&&e.is(a,e.JM)||this.oD(a)&&e.is(a.currentSrc,e.JM)?o:y},VV:function(a){return!!a&&!!a.tagName&&a.tagName=="IMG"},n$:function(a){return!!a&&!!a.tagName&&a.tagName=="CANVAS"},w9:function(a){return Math.pow(2,Math.round(Math.log(a)/Math.LN2))},v$:function(a){return a!==0&&(a&a-1)===0},p$:function(){return c.browser()==c.Wi},psa:function(){return c.browser()==c.qr},Li:function(){return c.sd()==c.Ph},
sba:function(a){if(j||c.G8()&&f.$q(a)||f.psa())return o;if(f.Li())if(f.$q(a)){if(!b.h$||c.uK()>=14)return o}else if(c.uK()<12||a&&a.videoWidth&&a.videoHeight&&a.videoWidth*a.videoHeight<=589824)return o;return y},tba:function(){return f.p$()?o:y},VU:function(a){f.tba()&&(a=d.Sq(a,"playbacksession="+(new Date).getTime()));return a},Z9:function(){return f.p$()||f.Li()},Y9:function(){return f.Li()&&b.h$&&c.uK()<11}},i=y;f.j$=function(){i=y};f.hsa=function(){return i};f.Nta=function(){i=o};var j=d.sg("vic");
f.ata=function(){f.Li()&&(j=o)};f.dV=function(a,b){var c={alpha:o,depth:o,stencil:o,antialias:b||y,premultipliedAlpha:o,preserveDrawingBuffer:y,powerPreference:"default",failIfMajorPerformanceCaveat:y,xrCompatible:o};return a.getContext("webgl",c)||a.getContext("experimental-webgl",c)};f.getPixelRatio=function(){if(c.Qa()){var a,b,f;try{a=window.top.innerWidth;b=window.top.innerHeight;f=o}catch(d){f=y}var e=window.devicePixelRatio||1;if(f){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}return window.devicePixelRatio};return f});
define("cN","require,eD,jquery.mod,cV,kc,bE,kd,u,d,jq,jD".split(","),function(a){function b(){this.dd=y;this.XB=q;this.da=this.W=100;this.oQ=this.rf=m;this.pQ=100;this.I=document.createElement("div");this.I.style.opacity=0;this.I.style.display="none";this.I.style.xxa="opacity 0.3s";this.I.addEventListener("transitionend",this.NT.bind(this));this.Kc=document.createElement("div");this.yaa(o);this.Kc.style.position="absolute";this.Kc.style.left=0;this.Kc.style.top=0;this.Kc.style.right=0;this.Kc.style.bottom=
0;this.I.appendChild(this.Kc);this.kb=document.createElement("img");this.kb.style.cursor="pointer";this.kb.style.position="absolute";this.kb.style.left="50%";this.kb.style.top="50%";this.kb.style.transform="translate(-50%, -50%)";this.I.appendChild(this.kb);this.NM=d(this.I)}function c(a,b){this.reason=a;this.wo=b}var e=a("eD"),d=a("jquery.mod");a("cV");a("kc");var f=a("bE");EventName=a("kd");Device=a("u");UIComponent=a("d");FadeInEffect=a("jq");FadeOutEffect=a("jD");var i=e.extend(UIComponent,function(){UIComponent.call(this);
this.Dc("UserInteractionWindow");this.Sa=q;this.Yl=[];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.M({contentOpaque:o,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:y});this.bind(EventName.pb,this.zU,this,o);this.bind(EventName.U,this.zpa,this,o)});i.prototype.zU=function(){this.Sa&&this.Sa.setSize(this.jd(),this.hd())};i.prototype.zpa=function(){var a=this.Yl.slice();this.Yl=
[];this.uJ();a.forEach(function(a){a.wo.call(a.context)})};i.prototype.Ba=function(){UIComponent.prototype.Ba.call(this);if(!this.Sa){this.Sa=new b;this.Sa.setSize(this.jd(),this.hd());this.Sa.jf(o);this.Ja().append(this.Sa.Ab().css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}));this.uJ()}};i.prototype.ik=function(){UIComponent.prototype.ik.call(this);this.getParent().bind(EventName.pb,this.zU,this,o);i.kda(this)};i.prototype.yi=function(){this.getParent().unbind(EventName.pb,
this.zU,this,o);UIComponent.prototype.yi.call(this);i.Hla(this)};i.prototype.xta=function(a){this.fo(k,a)};i.prototype.xW=function(a){this.fo(j,a)};i.prototype.fo=function(a,b){this.Yl.push(new c(a,b));this.Yl.sort(function(a,b){return n[a.reason]-n[b.reason]});this.uJ()};i.prototype.gqa=function(a){this.cancel(k,a)};i.prototype.eqa=function(){this.cancel(j,m)};i.prototype.cancel=function(a,b){var c=this.Sha(a,b);c>=0&&this.Nla(c)};i.prototype.E_=function(){this.UE(o)};i.prototype.bF=function(){this.UE(y)};
i.prototype.Sha=function(a,b){for(var c=0;c<this.Yl.length;c++){var f=this.Yl[c];if(f.reason==a&&f.wo==b)return c}return-1};i.prototype.uJ=function(){if(this.Sa){var a=this.aia();if(a){switch(a.reason){case j:this.Sa.OW(b.bY);break;case k:this.Sa.OW(b.hM)}this.set("visible",o)}else this.set("visible",y)}};i.prototype.Nla=function(a){this.Yl.splice(a,1);a==this.Yl.length&&this.uJ()};i.prototype.aia=function(){return this.Yl.length>0?this.Yl[0]:q};var j="vr",k="play",n={};n[j]=0;n[k]=1;b.prototype.Ab=
Q("NM");b.prototype.setSize=function(a,b){if(this.W!==a||this.da!==b){this.W=a;this.da=b;this.vJ()}};b.prototype.yaa=function(a){this.Kc.style.hasOwnProperty("backdropFilter")?this.Kc.style.backdropFilter=a?"blur(8px)":"none":this.Kc.style.backgroundColor=a?"rgba(0, 0, 0, 0.6)":"none"};b.prototype.jf=function(a){if(this.dd!=a){this.dd=a;if(this.XB){clearTimeout(this.XB);this.XB=q}if(this.dd){this.I.style.display="block";this.I.style.opacity=0;this.XB=setTimeout(function(){this.XB=q;this.I.style.opacity=
1}.bind(this),30)}else this.I.style.opacity=0}};b.prototype.OW=function(a){if(this.rf!=a){this.rf=a;this.cpa()}};b.prototype.NT=function(){if(!this.dd)this.I.style.display="none"};b.prototype.cpa=function(){switch(this.rf){case b.hM:this.oQ=f.Lr;this.pQ=f.oca;break;case b.bY:this.oQ=f.Dca;this.pQ=f.Fca}this.kb.src=this.oQ;this.vJ()};b.prototype.vJ=function(){if(Device.Qa()){this.kb.style.maxWidth=Math.round(this.W*0.5)+"px";this.kb.style.width="20vmin"}else{this.kb.style.maxWidth=Math.round(this.W*
0.33)+"px";this.kb.style.width=this.pQ+"px"}};b.hM="play";b.bY="vr";i.GY=b;i.Lc=[];i.SR=[];i.kda=function(a){i.Lc.push(a);i.SR.forEach(function(b){i.p2(a,b)});i.SR=[]};i.Hla=function(a){i.Lc.splice(i.Lc.indexOf(a),1)};i.ready=function(){return i.Lc.length>0};i.xW=function(a){i.Lc.length?i.Lc.forEach(function(b){i.p2(b,a)}):i.SR.push(a)};i.p2=function(a,b){a.xW(function(){i.Lc.forEach(function(b){b!=a&&b.eqa()});b()})};return i});
define("jT",["require"],function(){var a={Yi:{}};a.Yi.NONE="none";a.Yi.ka="left";a.Yi.Fa="right";a.zg=function(){this.y=this.x=0;this.height=this.width=1};a.lZ=function(){this.eye=a.Yi.NONE;this.viewport=new a.zg;this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.projectionMatrix=new THREE.Matrix4};a.Qba=function(){this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.views=[];this.hK=[]};a.aca=function(){this.VC=q;this.Pj=200;this.Ii=100;this.dK=1};return a});
define("cQ",["require"],function(){return{qE:"gaze",gM:"gaze_click"}});
define("eW","require,eD,kd,fh,em,cN,jT,u,gf,iB,cQ".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("fh"),d=a("em"),f=a("cN"),i=a("jT"),j=a("u"),k=a("gf"),n=a("iB"),g=a("cQ"),a=b.extend(d,function(){d.call(this);this.U5=g.qE;this.Aj=[];this.$f=new i.Qba;this.Mf=new i.lZ;this.Mf.eye=i.Yi.ka;this.Of=new i.lZ;this.Of.eye=i.Yi.Fa;this.$f.views=[this.Mf,this.Of];this.tc=new i.aca;this.bind(c.$,this.Ys,this,y)});a.prototype.jl=E();a.prototype.Eh=E();a.prototype.Pd=E();a.prototype.nK=Q("tc");a.prototype.zm=
Q("$f");a.prototype.Ha=E();a.prototype.isPresenting=E();a.prototype.Bf=E();a.prototype.rK=Q("U5");a.prototype.bu=E();a.prototype.cx=function(a){this.Aj.indexOf(a)<0&&this.Aj.push(a)};a.prototype.PK=function(a){this.Aj.splice(this.Aj.indexOf(a),1);this.bu()==a&&this.Pd()};a.prototype.$K=function(a){var b=this.Aj.indexOf(a);if(!(b<0||b==this.Aj.length-1)){this.Aj.splice(b,1);this.Aj.splice(this.Aj.length,0,a)}};a.prototype.Mha=function(){return this.Aj.length>0?this.Aj[this.Aj.length-1]:q};a.prototype.OS=
function(){var a=this.Mha();if(a==q){a=document.createElement("canvas");a=e.dV(a);this.cx(a)}return a};a.prototype.nI=function(a){f.xW(a)};a.prototype.lT=function(a){if(j.fd()==j.Fu){this.BS();k.Eba.show(a,function(){this.$Z()}.bind(this))}else j.XC()&&j.fd()==j.iE?k.tca.show(a):j.fd()==j.eE?k.kZ.show(a):j.fd()==j.fE?k.kZ.show():a()};a.prototype.PS=function(a){var b=function(b){this.U5=b;a()}.bind(this);!j.Qa()||j.gf()?b(g.qE):n.Fm("cardboard_version")=="1"?b(g.qE):n.Fm("cardboard_version")=="2"?
b(g.gM):k.wL.show(function(){b(g.gM)}.bind(this),function(){b(g.qE)}.bind(this))};a.prototype.Ys=function(){j.Qa()||(this.isPresenting()?k.VX.show(this.Pd.bind(this)):k.VX.hide())};a.prototype.$Z=function(){this.BS();var a=this.d2();a.push("vr");this.k_(a)};a.prototype.BS=function(){this.k_(this.d2().filter(function(a){return a!="vr"}))};a.prototype.d2=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]};a.prototype.k_=function(a){window.location.hash="#"+(a.length?
a.join("&"):"")};return a});
define("s",["require","jquery.mod","je"],function(a){function b(){g.get(0)==document.body&&i.height(window.innerHeight)}function c(a,b){var c={},f;for(f in b)c[f]=a.css(f);l.push({$el:a,css:c});a.css(b)}function e(a){this.I=a}var d=a("jquery.mod"),f=a("je");e.prototype.Eh=function(){this.enabled()||this.toggle()};e.prototype.Pd=function(){this.enabled()&&this.toggle()};e.prototype.toggle=function(){this.enabled()?e.cancel():e.Km(this.I)};e.prototype.enabled=function(){return e.enabled(this.I)};var i=
d("<div/>").css({position:"fixed",bottom:0,left:0,height:"100vh",width:"100vw"}),j=d("<div/>"),k=q,n=q,g=q,l=[],r=q;e.Km=function(a){if(a!==k){e.cancel();k=a;var l=f.dl()||document.body;n=d(a);g=d(l);j.insertAfter(n);n.appendTo(i);g.children().each(function(){c(d(this),{visibility:"hidden"})});c(n,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});l==document.body?c(i,{position:"fixed",left:0,top:"",right:"",bottom:0,height:"100vh",width:"100vw",margin:0,padding:0}):c(i,{position:"absolute",
left:0,top:0,right:"",bottom:"",width:"100%",height:"100%",margin:0,padding:0});i.appendTo(g);b();r=setInterval(b,300)}};e.cancel=function(){if(k){i.detach();n.insertBefore(j);for(j.detach();l.length;){var a=l.pop();a.$el.css(a.css)}g=n=k=q;l=[];clearInterval(r)}};e.enabled=function(a){return k==a};return e});
define("hL","require,eD,kd,bS,em,kc,bE".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("kc"),a=a("bE"),i=['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+a.sr+'"/>','</div>\n<div style="box-sizing:border-box; padding:0 10vmin; display:table; height:100%; width:100vw;">\n<div style="vertical-align:middle; text-align:center; display:table-cell;">'].join("\n"),j=i+['<img style="width:22vmin" src="'+a.uy+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+
f("rotate-device")+"</div>"].join("\n")+"</div>\n</div>",k=i+['<img style="width:13vmin; vertical-align:middle;" src="'+a.xca+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; text-align:left; display:inline-block; vertical-align:middle; margin:5vmin 0 0 2vmin;">Please, swipe up to<br>enter Fullscreen Mode</div>'].join("\n")+"</div>\n</div>",b=b.extend(d,function(){d.call(this);this.oh=this.gj=this.hj=this.cA=this.dA=this.SQ=this.TQ=m;
this.wG=y;this.Aq=this.eS=this.RQ=this.ad=q;this.i1=[];this.uQ=this.qt=y;this.hb=this.hb.bind(this)});b.prototype.Km=function(){if(!this.qt){this.qt=o;this.qO();window.addEventListener("resize",this.hb);document.body.appendChild(this.ad);document.body.appendChild(this.Aq);this.Wna=document.documentElement.style.overflow;this.Vna=document.body.style.overflow;document.documentElement.style.overflow="auto";document.body.style.overflow="auto";this.PA()}};b.prototype.cancel=function(){if(this.qt){this.qt=
y;window.removeEventListener("resize",this.hb);document.body.style.overflow=this.Vna;document.documentElement.style.overflow=this.Wna;document.body.removeChild(this.ad);document.body.removeChild(this.Aq);this.i6(y)}};b.prototype.enabled=Q("wG");b.prototype.qO=function(){if(!this.ad){this.ad=this.EF({position:"fixed",top:0,left:0,zIndex:9999998},o);this.ad.id="tdvminuictr";this.eS=this.EF({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},o,j);this.ad.appendChild(this.eS);this.RQ=
this.EF({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},o,k);this.ad.appendChild(this.RQ);this.Aq=this.EF({position:"absolute",top:0,left:0,right:0,height:"999999999vmax",zIndex:9999999},y);this.Aq.id="tdvminuiscrl";this.Aq.addEventListener("touchend",this.hb)}};b.prototype.EF=function(a,b,c){var f=document.createElement("div");this.wB(f,a);c!==m&&this.Pma(f,c);b&&this.i1.push(f);return f};b.prototype.hb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.BR.bind(this),
a)}.bind(this))};b.prototype.BR=function(){(this.hj!=window.innerWidth||this.gj!=window.innerHeight)&&this.PA()};b.prototype.PA=function(){this.hj=window.innerWidth;this.gj=window.innerHeight;this.oh=this.hj>this.gj?"landscape":"portrait";var a;if(this.oh=="landscape"){if(this.TQ&&this.SQ&&this.$ia(this.TQ,this.SQ)&&(!this.dA&&!this.cA||this.aja(this.dA,this.cA))){this.dA=this.hj;this.cA=this.gj}if(this.Wia()){this.dA=this.hj;this.cA=this.gj}this.TQ=this.hj;this.SQ=this.gj;a=this.dA==this.hj&&this.cA==
this.gj}else a=y;this.i1.forEach(function(a){a.style.height=this.gj+"px";a.style.width=this.hj+"px"}.bind(this));var b=this.qt&&this.oh=="portrait",c=this.qt&&this.oh=="landscape"&&!a,f=this.qt&&this.oh=="landscape";this.wB(this.ad,{display:b||c?"block":"none"});this.wB(this.eS,{display:b?"block":"none"});this.wB(this.RQ,{display:c?"block":"none"});this.wB(this.Aq,{display:f?"block":"none",right:c?0:"99.9%"});this.i6(a)};b.prototype.i6=function(a){if(this.EI!=q){clearTimeout(this.EI);this.EI=q}if(this.wG!=
a)this.EI=setTimeout(function(){this.EI=q;(this.wG=a)?this.trigger(new e(c.Xj)):this.trigger(new e(c.Ia));this.trigger(new e(c.$))}.bind(this),a?1E3:0)};b.prototype.Wia=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(f){c=Math.min(c,Math.abs(100-100*a*f[1]/(b*f[0])))});return c<=1?o:y};b.prototype.$ia=function(a,b){return a*window.innerHeight>
b*window.innerWidth};b.prototype.aja=function(a,b){return a*window.innerHeight>=b*window.innerWidth};b.prototype.wB=function(a,b){for(var c in b)a.style[c]=b[c]};b.prototype.Pma=function(a,b){a.innerHTML=b};return new b});
define("kh",["require","u","dm","ee"],function(a){var b=a("u");a("dm");var c=a("ee");if(b.browser()==b.Ug){a=function(){this.bb=q};a.prototype.kV=function(a){this.bb=a;this.bb.play(q,"data:video/mp4;base64, ",q,
0,o)};a.prototype.aW=function(){this.bb=q};var e=y,d=new a;return{enable:function(){e||(e=o,c.NJ(d))},disable:function(){e&&(e=y,c.yD(d))}}}return b.browser()==b.Vi?(a=function(){this.bb=q},a.prototype.kV=function(a){this.bb=a;this.bb.play(q,q,q,0,o)},a.prototype.aW=function(){this.bb=q},e=y,d=new a,{enable:function(){e||(e=o,c.NJ(d))},disable:function(){e&&(e=y,c.yD(d))}}):{enable:E(),disable:E()}});
define("hl",["require","jquery.mod","kc","bE"],function(a){function b(){this.Xf=q;this.V=y;this.hb=this.hb.bind(this);this.gj=this.hj=this.oh=m}var c=a("jquery.mod"),e=a("kc"),d=a("bE");b.prototype.yp=function(){this.Xf||(this.Xf=c("<div/>"),this.Xf.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.Xf.html(['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+
d.sr+'"/>','</div>\n<div style="box-sizing:border-box; padding:0 10vmin; display:table; height:100%; width:100vw;">\n<div style="vertical-align:middle; text-align:center; display:table-cell;">','<img style="width:22vmin" src="'+d.uy+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+e("rotate-device")+"</div>","</div>\n</div>"].join("\n")))};b.prototype.show=function(a){this.V||(this.V=o,this.yp(),
c(a).append(this.Xf),c(window).on("resize",this.hb),this.PA())};b.prototype.hide=function(){this.V&&(this.V=y,c(window).off("resize",this.hb),this.Xf.detach())};b.prototype.hb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.BR.bind(this),a)}.bind(this))};b.prototype.BR=function(){(this.hj!=window.innerWidth||this.gj!=window.innerHeight)&&this.PA()};b.prototype.PA=function(){this.hj=window.innerWidth;this.gj=window.innerHeight;this.oh=this.hj>this.gj?"landscape":"portrait";this.Xf.toggle("landscape"!=
this.oh)};return new b});
define("hB","require,eD,kd,bS,eO,ig,u,fq,gf,bP,cn,eW,d,X,je,s,hL,kh,hl".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("eO"),f=a("ig"),i=a("u"),j=a("fq"),k=a("gf"),n=a("bP"),g=a("cn"),l=a("eW"),r=a("d"),p=a("X"),s=a("je"),t=a("s"),u=a("hL"),v=a("kh"),x=a("hl"),w=b.extend(l,function(){l.call(this);this.ng=this.je=this.ef=this.qB=this.Ln=this.Ng=this.Sb=q;this.zf=g.sr;this.Ha=this.Ha.bind(this)});w.prototype.jl=function(a){if(this.Sz()){var b=function(b){if(this.Sb=b.length?b[0]:q){this.Sb.depthNear=
0.1;this.Sb.depthFar=2*d.Uf;this.Ng="VRFrameData"in window?new VRFrameData:q;window.addEventListener("vrdisplaypresentchange",this.kS.bind(this),y);u.bind(c.Ia,this.Pd.bind(this))}a(!!this.Sb)}.bind(this),f=window.WebVRConfig||(window.WebVRConfig={});f.BUFFER_SCALE=w.jx;f.ALWAYS_APPEND_POLYFILL_DISPLAY=o;f.LOCK_ORIENTATION=y;n.nZ.load(function(){navigator.getVRDisplays().then(b)["catch"](function(){b([])})}.bind(this))}else a(y)};w.prototype.Eh=function(){!this.isPresenting()&&!this.je&&this.wt(function(){this.lT(function(){this.PS(function(){if(!this.isPresenting()&&
!this.je){this.je=this.OS();this.iT();this.Sb.requestPresent([{source:this.je.canvas}]).then(function(){this.ng=this.je;this.je=q;i.fd()!=i.ky&&x.show(s.dl());this.vw();this.FC()}.bind(this))["catch"](function(){this.je=q;this.VB()}.bind(this))}}.bind(this))}.bind(this))}.bind(this))};w.prototype.Pd=function(){this.isPresenting()&&this.Sb.exitPresent()};w.prototype.Ha=function(a){return this.Sb.requestAnimationFrame(function(b){var c=this.vw();c&&this.Nt();a(b);c&&this.Sb.submitFrame()}.bind(this))};
w.prototype.isPresenting=function(){return!!this.Sb&&this.Sb.isPresenting};w.prototype.bu=Q("ng");w.prototype.Bf=Q("zf");w.prototype.kS=function(){if(this.isPresenting())p.aL(this.Ha,this.Sb.cancelAnimationFrame.bind(this.Sb));else{p.zW();(this.ng||this.je)&&this.VB()}this.trigger(new e(c.$))};w.prototype.Sz=function(){return j.available&&f.vX&&i.Qa()&&i.Rt()!=i.py};w.prototype.wt=function(a){if(j.disabled)k.$X.show(function(){j.wW(function(){this.wt(a)}.bind(this))});else if(s.enabled()||!r.Lx()){s.Pd();
this.nI(function(){this.wt(a)}.bind(this))}else a()};w.prototype.iT=function(){t.Km(this.je.canvas);i.fd()==i.ly?this.$Z():v.enable();i.fd()==i.ky&&u.Km()};w.prototype.vw=function(){this.Sb.getFrameData(this.Ng);if(!this.Ng.pose||!this.Ng.pose.orientation)return y;this.Ln=this.Sb.getEyeParameters("left");this.qB=this.Sb.getEyeParameters("right");var a=this.Sb.getLayers();this.ef=a&&a.length&&a[0]||q;return!this.ef?y:o};w.prototype.FC=function(){this.tc.VC=q;this.tc.Pj=this.Ln.renderWidth*2;this.tc.Ii=
this.Ln.renderHeight;this.tc.dK=1};w.prototype.Nt=function(){var a=this.Ng.pose;this.$f.orientation.fromArray(a&&a.orientation||A);this.$f.position.fromArray(a&&a.position||C);this.NU()};w.prototype.NU=function(){this.Mf.position.fromArray(this.Ln.offset);this.Mf.orientation.fromArray(A);this.Mf.projectionMatrix.fromArray(this.Ng.leftProjectionMatrix);this.Mf.viewport.x=Math.round(this.tc.Pj*this.ef.leftBounds[0]);this.Mf.viewport.y=Math.round(this.tc.Ii*this.ef.leftBounds[1]);this.Mf.viewport.width=
Math.round(this.tc.Pj*this.ef.leftBounds[2]);this.Mf.viewport.height=Math.round(this.tc.Ii*this.ef.leftBounds[3]);this.Of.position.fromArray(this.qB.offset);this.Of.orientation.fromArray(A);this.Of.projectionMatrix.fromArray(this.Ng.rightProjectionMatrix);this.Of.viewport.x=Math.round(this.tc.Pj*this.ef.rightBounds[0]);this.Of.viewport.y=Math.round(this.tc.Ii*this.ef.rightBounds[1]);this.Of.viewport.width=Math.round(this.tc.Pj*this.ef.rightBounds[2]);this.Of.viewport.height=Math.round(this.tc.Ii*
this.ef.rightBounds[3])};w.prototype.VB=function(){this.BS();this.ng=this.je=q;u.cancel();t.cancel();v.disable();x.hide()};w.jx=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var A=[0,0,0,1],C=[0,0,0];return w});
define("gl","require,eD,bS,kd,u,cn,eW,eO,d,X,s".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("kd"),d=a("u"),f=a("cn"),i=a("eW"),j=a("eO"),k=a("d"),n=a("X"),g=a("s"),a=b.extend(i,function(){i.call(this);this.ng=this.je=this.ef=this.qB=this.Ln=this.Ng=this.Sb=q;this.Ha=this.Ha.bind(this)});a.prototype.jl=function(a){if(this.Sz()){var b=function(b){if(this.Sb=b.length?b[0]:q){this.Sb.depthNear=0.1;this.Sb.depthFar=2*j.Uf;this.Ng="VRFrameData"in window?new VRFrameData:q;window.addEventListener("vrdisplaypresentchange",
this.kS.bind(this),y);window.addEventListener("vrdisplayactivate",this.b5.bind(this));window.addEventListener("vrdisplaydeactivate",this.Pd.bind(this))}a(!!this.Sb)}.bind(this);navigator.getVRDisplays().then(b)["catch"](function(){b([])})}else a(y)};a.prototype.Eh=function(){!this.isPresenting()&&!this.je&&this.wt(function(){this.lT(function(){this.PS(function(){!this.isPresenting()&&!this.je&&this.b5()}.bind(this))}.bind(this))}.bind(this))};a.prototype.Pd=function(){this.isPresenting()&&this.Sb.exitPresent()};
a.prototype.Ha=function(a){return this.Sb.requestAnimationFrame(function(b){var c=this.vw();c&&this.Nt();a(b);c&&this.Sb.submitFrame()}.bind(this))};a.prototype.isPresenting=function(){return!!this.Sb&&this.Sb.isPresenting};a.prototype.bu=Q("ng");a.prototype.Bf=function(){return f.Hca};a.prototype.Sz=function(){return"getVRDisplays"in navigator&&!window.WebVRConfig};a.prototype.kS=function(){if(this.isPresenting()){n.aL(this.Ha,this.Sb.cancelAnimationFrame.bind(this.Sb));this.vw()&&this.Nt()}else{n.zW();
(this.ng||this.je)&&this.VB()}this.trigger(new c(e.$))};a.prototype.wt=function(a){k.Lx()?a():this.nI(function(){a()})};a.prototype.b5=function(){this.je=this.OS();this.iT();this.Sb.requestPresent([{source:this.je.canvas,attributes:{foveationLevel:3}}]).then(function(){this.ng=this.je;this.je=q;this.vw()&&this.Nt()}.bind(this))["catch"](function(){this.je=q;this.VB()}.bind(this))};a.prototype.iT=function(){g.Km(this.je.canvas)};a.prototype.vw=function(){this.Sb.getFrameData(this.Ng);if(!this.Ng.pose||
!this.Ng.pose.orientation)return y;this.Ln=this.Sb.getEyeParameters("left");this.qB=this.Sb.getEyeParameters("right");var a=this.Sb.getLayers();this.ef=a&&a.length&&a[0]||q;return!this.ef?y:o};a.prototype.Nt=function(){this.FC();var a=this.Ng.pose;this.$f.orientation.fromArray(a&&a.orientation||l);this.$f.position.fromArray(a&&a.position||r);this.NU()};a.prototype.FC=function(){this.tc.VC=q;this.tc.Pj=this.Ln.renderWidth*2;this.tc.Ii=this.Ln.renderHeight;this.tc.dK=d.gf()?2048/this.tc.Ii:1};a.prototype.NU=
function(){this.Mf.position.fromArray(this.Ln.offset);this.Mf.orientation.fromArray(l);this.Mf.projectionMatrix.fromArray(this.Ng.leftProjectionMatrix);var a=this.ef.leftBounds&&this.ef.leftBounds.length==4?this.ef.leftBounds:p;this.Mf.viewport.x=Math.round(this.tc.Pj*a[0]);this.Mf.viewport.y=Math.round(this.tc.Ii*a[1]);this.Mf.viewport.width=Math.round(this.tc.Pj*a[2]);this.Mf.viewport.height=Math.round(this.tc.Ii*a[3]);this.Of.position.fromArray(this.qB.offset);this.Of.orientation.fromArray(l);
this.Of.projectionMatrix.fromArray(this.Ng.rightProjectionMatrix);a=this.ef.rightBounds&&this.ef.rightBounds.length==4?this.ef.rightBounds:s;this.Of.viewport.x=Math.round(this.tc.Pj*a[0]);this.Of.viewport.y=Math.round(this.tc.Ii*a[1]);this.Of.viewport.width=Math.round(this.tc.Pj*a[2]);this.Of.viewport.height=Math.round(this.tc.Ii*a[3])};a.prototype.VB=function(){this.ng=this.je=q;g.cancel()};var l=[0,0,0,1],r=[0,0,0],p=[0,0,0.5,1],s=[0.5,0,0.5,1];return a});
define("hu","require,eD,bS,kd,u,cn,eW,eO,d,X,s,ip".split(","),function(a){function b(a){setTimeout(a,10)}var c=a("eD"),e=a("bS"),d=a("kd"),f=a("u"),i=a("cn"),j=a("eW"),k=a("eO"),n=a("d"),g=a("X"),l=a("s"),r=a("ip"),p=c.extend(j,function(){j.call(this);this.Ot=this.HC=this.Gi=this.ng=q;this.Fw="stopped";this.Ha=this.Ha.bind(this);this.TS=this.TS.bind(this);this.NS=this.NS.bind(this);this.Ht=y;r.tX(function(){b(function(){this.Ht=o}.bind(this))}.bind(this))});p.prototype.jl=function(a){if(this.Sz())this.hoa().then(function(b){b?
a(o):a(y)})["catch"](function(){a(y)});else a(y)};p.prototype.Eh=function(){this.Fw=="stopped"&&this.wt(function(){this.lT(function(){this.PS(function(){setTimeout(function(){this.Nna()}.bind(this),200)}.bind(this))}.bind(this))}.bind(this))};p.prototype.Nna=function(){if(this.Fw=="stopped"){this.Fw="starting";this.trigger(new e(d.$));g.VW(o);navigator.xr.requestSession("immersive-vr").then(function(a){this.Gi=a;this.Gi.addEventListener("end",this.TS);this.Gi.addEventListener("select",this.NS);return this.Gi.requestReferenceSpace("local")}.bind(this)).then(function(a){this.HC=
a;this.ng=this.OS();return this.ng.makeXRCompatible()}.bind(this)).then(function(){f.Qa()&&l.Km(this.ng.canvas);var a=XRWebGLLayer.getNativeFramebufferScaleFactor(this.Gi),a=Math.max(a,1);f.q$()?a=a*1:f.gf()?a=a*1.42222:f.Qa()&&(a=a*p.jx);this.Ot=new XRWebGLLayer(this.Gi,this.ng,{antialias:y,framebufferScaleFactor:a});this.Gi.updateRenderState({baseLayer:this.Ot,depthNear:0.1,depthFar:2*k.Uf});this.FC();this.Fw="started";g.aL(this.Ha,this.Gi.cancelAnimationFrame.bind(this.Gi));g.VW(y)}.bind(this))["catch"](function(){g.VW(y);
this.Z5();this.trigger(new e(d.$))}.bind(this))}};p.prototype.Pd=function(){this.isPresenting()&&this.Gi.end()};p.prototype.Ha=function(a){return this.Gi.requestAnimationFrame(function(b,c){this.PU=c;this.Nt();a(b)}.bind(this))};p.prototype.isPresenting=function(){return this.Fw!="stopped"};p.prototype.Bf=function(){return i.Ica};p.prototype.bu=Q("ng");p.prototype.Sz=function(){return"xr"in navigator};p.prototype.hoa=function(){return"isSessionSupported"in navigator.xr?navigator.xr.isSessionSupported("immersive-vr"):
"supportsSession"in navigator.xr?navigator.xr.supportsSession("immersive-vr"):Promise.reject()};p.prototype.wt=function(a){f.fd()==f.Zo?this.Ht?a():n.Lx()?b(a):this.nI(function(){b(a)}):n.Lx()?a():this.nI(function(){a()})};p.prototype.TS=function(){g.zW();this.Z5();this.trigger(new e(d.$))};p.prototype.NS=function(){this.trigger(new e(d.Uh))};p.prototype.Z5=function(){this.Ot=this.HC=this.Gi=this.ng=q;this.Fw="stopped";l.cancel()};p.prototype.FC=function(){this.tc.VC=this.Ot.framebuffer;this.tc.Pj=
this.Ot.framebufferWidth;this.tc.Ii=(f.fd()==f.Zo?2:1)*this.Ot.framebufferHeight;this.tc.dK=1};p.prototype.Nt=function(){var a=this.PU.getViewerPose(this.HC);if(a){var b=a&&a.transform.orientation||s;this.$f.orientation.set(b.x,b.y,b.z,b.w);b=a&&a.transform.position||t;this.$f.position.set(b.x,b.y,b.z);for(var a=this.PU.getViewerPose(this.HC.getOffsetReferenceSpace(a.transform)),c=0;c<a.views.length;c++){var f=a.views[c],d;if(f.eye=="left")d=this.Mf;else if(f.eye=="right")d=this.Of;else continue;
b=f.transform.position;d.position.set(b.x,b.y,b.z);b=f.transform.orientation;d.orientation.set(b.x,b.y,b.z,b.w);d.projectionMatrix.fromArray(f.projectionMatrix);f=this.Ot.getViewport(f);d.viewport.x=f.x;d.viewport.y=f.y;d.viewport.width=f.width;d.viewport.height=f.height}var e=[];this.Gi.inputSources.forEach(function(a){if(a.targetRayMode=="tracked-pointer"&&a.gamepad){var b=a.gamepad;if(!b.pose)b.PV=this.PU.getPose(a.targetRaySpace,this.HC);if(!b.hand)b.dsa=a.handedness;if(!b.id)b.esa=b.mapping+
" "+a.handedness;e.push(b)}}.bind(this));this.$f.hK=e}};p.jx=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var s={x:0,y:0,z:0,w:1},t={x:0,y:0,z:0};return p});
define("bj","require,eD,kd,em,u,fq,iB,hB,cQ,cn,jT,gl,hu,eT".split(","),function(a){function b(a,c){if(a.length){var f=new a[0];f.jl(function(d){d?c(f):b(a.slice(1),c)})}else c(q)}var c=a("eD"),e=a("kd"),d=a("em"),f=a("u"),i=a("fq"),j=a("iB"),k=a("hB"),n=a("cQ"),g=a("cn"),l=a("jT"),r=a("gl"),p=a("hu"),s=a("eT"),t=y,u=[],v=new d;v.Yi=l.Yi;v.yca=n;v.ewa=g;v.available=R(o);v.zm=R(q);v.nK=R(q);v.isPresenting=R(y);v.Eh=function(){t=o};v.Pd=function(){t=y};v.Rwa=R(q);v.cx=function(a){u.indexOf(a)<0&&u.push(a)};
v.PK=function(a){a=u.indexOf(a);a==-1||u.splice(a,1)};v.$K=E();v.Gua=function(a){k.jx=a;p.jx=a};v.Ara=function(){return k.jx};v.Bf=R(q);v.rK=R(q);v.log=function(){v.available()?v.Bf()?c.log("VR: "+v.Bf()):c.log("VR: not ready"):c.log("VR: not available");c.log("gyroscope: "+i.available)};var x;x=f.browser()==f.Vi&&!f.Qa()?[p,r,k]:f.q$()?[p,r]:j.Fm("vr_mode")=="cardboard"?[k]:[r,p,k];v.jl=function(a){var c=setTimeout(function(){c=q;a()},250);b(x,function(b){if(b){b.bind(e.$,function(){v.trigger(e.$)},
v,o);b.bind(e.Uh,function(){v.trigger(e.Uh)},v,o);v.available=R(o);v.nK=function(){return b.nK()};v.zm=function(){return b.zm()};v.isPresenting=function(){return b.isPresenting()};v.Eh=function(){b.Eh()};v.Pd=function(){b.Pd()};v.bu=function(){return b.bu()};v.cx=function(a){b.cx(a)};v.PK=function(a){b.PK(a)};v.$K=function(a){b.$K(a)};v.Bf=function(){return b.Bf()};v.rK=function(){return b.rK()};u.forEach(function(a){b.cx(a)});t&&b.Eh()}else v.available=R(y);if(c){clearTimeout(c);c=q;a()}})};v.bind(e.$,
function(){s.VK(v.isPresenting())},window,o);return v});
define("cM","require,kd,hV,em,X,bj".split(","),function(a){function b(a){this.yF=a;this.bg=q;this.LN={};for(a=0;a<this.yF.buttons.length;a++)this.LN[this.yF.buttons[a]]=y;this.KN=0;this.sq=q;this.kt=[new THREE.Quaternion,new THREE.Quaternion];this.jt=this.kt[0];this.mg=[new THREE.Vector3,new THREE.Vector3];this.Aa=this.mg[0]}function c(a,b,c){this.Zra=a;this.buttons=b;this.fta=c}function e(){if(!(C||w==g.pd)){w=g.pd;var a,c=l.isPresenting()&&l.zm();if(a=c&&c.hK&&c.hK.length?c.hK:navigator.getGamepads&&
navigator.getGamepads()){for(c=0;c<u.length;c++)u[c].Faa(q);for(c=0;c<a.length;c++){var f=a[c];if(f&&(f.pose||f.PV)){var e=f.id||f.esa,j=x[e];if(!j){var i;a:{i=e;for(var n=0;n<r.length;n++){var t=r[n];if(i.indexOf(s[t].Zra)==0){i=t;break a}}i=m}i&&u.push(j=x[e]=new b(s[i]))}j&&x[e].Faa(f)}}(a=v)&&!v.XV()&&(v=q);for(c=0;c<u.length;c++){j=u[c];if(j.XV()&&j.pressed()){v=j;break}}if(!v)for(c=0;c<u.length;c++){j=u[c];if(j.XV()){if(j.hand()==p){v=j;break}v||(v=j)}}a!=v&&k.qu(d)}}}function d(){t.trigger(j.$)}
function f(){e()}function i(){if(l.isPresenting()){if(A){clearInterval(A);A=q}e();A=setInterval(f,500)}else if(A){clearInterval(A);A=q}}var j=a("kd"),k=a("hV"),n=a("em"),g=a("X"),l=a("bj"),r=["oculus go","oculus touch","xr-standard","gear vr","daydream","vive","vive focus","microsoft","unknown"],p="right",s={};s["oculus go"]=new c("Oculus Go",["trackpad","trigger"],"trigger");s["oculus touch"]=new c("Oculus Touch",["thumbstick","trigger","grip","abutton","bbutton","surface"],"trigger");s["xr-standard"]=
new c("xr-standard",["trigger","grip","unknow_button_0","thumbstick","abutton","bbutton","unknow_button"],"trigger");s["gear vr"]=new c("Gear VR",["trackpad","trigger"],"trigger");s.daydream=new c("Daydream Controller",["trackpad","menu","system"],"trackpad");s.vive=new c("OpenVR",["trackpad","trigger","grip","menu","system"],"trigger");s["vive focus"]=new c("HTC Vive Focus",["trackpad","trigger","grip"],"trigger");s.microsoft=new c("Spatial Controller (Spatial Interaction Source)",["thumbstick",
"trigger","grip","menu","thumbpad"],"trigger");s.unknown=new c("",[],m);b.prototype.Faa=function(a){if(this.bg=a){this.hia=this.bg.hand||this.bg.dsa;if(this.bg.pose){this.sq=this.bg.pose;if(this.sq.orientation){this.jt=this.kt[0]==this.jt?this.kt[1]:this.kt[0];this.jt.fromArray(this.sq.orientation)}if(this.sq.position){this.Aa=this.mg[0]==this.Aa?this.mg[1]:this.mg[0];this.Aa.fromArray(this.sq.position)}else this.Aa=q}else if(this.bg.PV){this.sq=this.bg.PV.transform;this.jt=this.kt[0]==this.jt?this.kt[1]:
this.kt[0];this.jt.copy(this.sq.orientation);this.Aa=this.mg[0]==this.Aa?this.mg[1]:this.mg[0];this.Aa.copy(this.sq.position)}for(var a=0,b=Math.min(this.bg.buttons.length,this.bg.buttons.length);a<b;a++)this.LN[this.yF.buttons[a]]=this.bg.buttons[a].pressed;for(a=this.KN=0;a<this.bg.buttons.length;a++)this.bg.buttons[a].pressed&&this.KN++}};b.prototype.pulse=function(a,b){var c=this.bg&&this.bg.hapticActuators;(c=c&&c.length&&c[0])&&c.pulse&&c.pulse(a,b)};b.prototype.XV=function(){return!!this.bg};
b.prototype.hand=Q("hia");b.prototype.quaternion=Q("jt");b.prototype.position=Q("Aa");b.prototype.pressed=function(a){a||(a=this.yF.fta);return!a?this.KN>0:this.LN[a]};var t=new n;t.all=function(){e();return u};t.EK=function(){e();return v};t.ka="left";t.Fa=p;var u=[],v=q,x={},w=m,A=q,C=URL.um("disable-controller",y);l.bind(j.$,i);i();return t});
define("cq",["require","eH","a"],function(a){function b(a,b){this.td=a||new c(0,0,0);this.Sf=b||new c(1,0,0)}var c=a("eH"),e=a("a");b.prototype.clone=function(){return new b(this.td.clone(),this.Sf.clone())};b.prototype.apply=function(a){a.ex(this.td);a.ex(this.Sf)};b.prototype.E9=function(){return e.Wq(this.td,this.Sf)};return b});
define("fJ",["cq","eH"],function(a,b){function c(a,b,c){this.W=a||100;this.da=b||100;this.aa=c||Math.PI;this.pS=m;this.El=o}c.prototype.uu=function(a){this.aa!=a&&(this.aa=a,this.El=o)};c.prototype.Co=Q("aa");c.prototype.RD=function(a){this.W!=a&&(this.W=a,this.El=o)};c.prototype.Fc=Q("W");c.prototype.Haa=function(a){this.da!=a&&(this.da=a,this.El=o)};c.prototype.qd=Q("da");c.prototype.project=function(a){if(0!=a.z){this.U7();var b=1/a.z,c=this.pS*b;a.x=0.5*this.W-a.x*c;a.y=0.5*this.da-a.y*c;a.z=
b}};c.prototype.unproject=function(c){this.U7();return new a(new b(0,0,0),new b(0.5*this.W-c.x,0.5*this.da-c.y,this.pS))};c.prototype.U7=function(){this.El&&(this.pS=0.5*this.W/Math.tan(0.5*this.aa),this.El=y)};return c});
define("ki",["require"],function(){function a(){this.ld=this.pitch=this.ra=0;this.ff=this.Zc=90;this.MC=this.RJ=this.height=this.width=100;this.tg=1;this.Jb=y;this.Mh=0;this.gK=this.KJ=this.IK=y;this.Hx=this.zD=o;this.Yc=this.Ie=q;this.enabled=y;this.pd=0;this.SD=m}a.prototype.clone=function(){var b=new a;b.ra=this.ra;b.pitch=this.pitch;b.ld=this.ld;b.Zc=this.Zc;b.ff=this.ff;b.width=this.width;b.height=this.height;b.RJ=this.RJ;b.MC=this.MC;b.tg=this.tg;b.Jb=this.Jb;b.Mh=this.Mh;b.IK=this.IK;b.gK=
this.gK;b.KJ=this.KJ;b.zD=this.zD;b.Hx=this.Hx;b.Ie=this.Ie;b.Yc=this.Yc;b.enabled=this.enabled;b.pd=this.pd;b.SD=this.SD;return b};return a});
define("cE","require,jquery.mod,cV,kd,bc,X,dn".split(","),function(a){function b(a){this.fX=a;this.element=document.createElement("div");this.lX=document.createElement("span");this.element.appendChild(this.lX);this.lX.innerHTML=a.text.split("<br>").join("\n").split("\n").map(e).join("<br>");this.TJ=y}function c(a){this.D=a;this.kC=f.throttle(this.kC.bind(this),100);this.lC=f.throttle(this.lC.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.NM=d(this.I);this.qh=document.createElement("div");this.qh.style.position="absolute";this.qh.style.left=0;this.qh.style.right=0;this.qh.style.zIndex=1;this.qh.style.cursor="inherit";this.I.appendChild(this.qh);this.Gq=q;this.Pw=[];this.Ze=[];this.PR={};this.$w=j.cb;this.D.bind(i.L("subtitlesEnabled"),this.YT,this);c.HY.forEach(function(a){this.D.bind(i.L(a),
this.kC,this)}.bind(this));c.IY.forEach(function(a){this.D.bind(i.L(a),this.lC,this)}.bind(this));this.YT();this.kC();this.lC()}function e(a){g.innerHTML=a;return g.innerText}var d=a("jquery.mod"),f=a("cV"),i=a("kd"),j=a("bc"),k=a("X"),n=a("dn");c.prototype.clear=function(){this.bX(q);if(this.D){this.D.unbind(i.L("subtitlesEnabled"),this.YT,this);c.HY.forEach(function(a){this.D.unbind(i.L(a),this.kC,this)}.bind(this));c.IY.forEach(function(a){this.D.unbind(i.L(a),this.lC,this)}.bind(this));this.D=
q}};c.prototype.Ab=Q("NM");c.prototype.bX=function(a){if(this.Gq!=a){this.Gq&&this.Gq.unbind(i.L("activeSubtitles"),this.k3,this,o);(this.Gq=a)&&this.Gq.bind(i.L("activeSubtitles"),this.k3,this,o)}};c.prototype.k3=function(){this.lna(this.Gq&&this.Gq.get("activeSubtitles")||[])};c.prototype.YT=function(){this.V=this.D.get("subtitlesEnabled");this.mU()};c.prototype.kC=function(){this.$w=this.Bz("subtitlesVerticalAlign",[j.eb,j.$b,j.cb],j.cb);this.qh.style["text-align"]=this.Bz("subtitlesHorizontalAlign",
[j.ka,j.Fa,j.pc],j.pc);this.qh.style.bottom=this.$w==j.cb?this.Eg("subtitlesBottom",0):"";this.qh.style.top=this.$w==j.eb?this.Eg("subtitlesTop",0):this.$w==j.$b?"50%":"";this.qh.style.transform=this.$w==j.$b?"translate(0, -50%)":"";this.mU()};c.prototype.lC=function(){var a={};a["background-color"]=this.VP("subtitlesBackgroundColor","subtitlesBackgroundOpacity");a.border=[this.Eg("subtitlesBorderSize"),"solid",this.pf("subtitlesBorderColor")].join(" ");a["box-shadow"]=this.pf("subtitlesShadow",y)?
[this.Eg("subtitlesShadowHorizontalLength"),this.Eg("subtitlesShadowVerticalLength"),this.Eg("subtitlesShadowBlurRadius"),this.VP("subtitlesShadowColor","subtitlesShadowOpacity","#000000",0)].join(" "):"";a.display="inline-block";a["font-family"]=n.Vq(this.pf("subtitlesFontFamily"));a["font-size"]=this.Eg("subtitlesFontSize");a.color=this.pf("subtitlesFontColor");a["font-weight"]=this.Bz("subtitlesFontWeight",["bold","bolder","lighter","100","200","300","400","500","600","700","800","900","normal"],
"normal");a["font-style"]=this.Bz("subtitlesFontStyle",["italic","normal"],"normal");a["margin-bottom"]=this.Eg("subtitlesGap");a.opacity=this.pf("subtitlesOpacity");a["padding-top"]=this.Eg("subtitlesPaddingTop");a["padding-bottom"]=this.Eg("subtitlesPaddingBottom");a["padding-left"]=this.Eg("subtitlesPaddingLeft");a["padding-right"]=this.Eg("subtitlesPaddingRight");a.position="relative";a["text-align"]=this.Bz("subtitlesHorizontalAlign",["left","right","center"],"center");a["text-decoration"]=this.pf("subtitlesTextDecoration",
["underline","overline","line-through","none"],"none");a["text-shadow"]=[this.Eg("subtitlesTextShadowHorizontalLength"),this.Eg("subtitlesTextShadowVerticalLength"),this.Eg("subtitlesTextShadowBlurRadius"),this.VP("subtitlesTextShadowColor","subtitlesTextShadowOpacity","#000000",0)].join(" ");this.PR=a;this.Ida()};c.prototype.lna=function(a){this.Pw=a;this.mU()};c.prototype.mU=function(){for(var a=this.V?this.Pw:[],c=this.Ze.length-1;c>=0;c--){var f=this.Ze[c];if(a.indexOf(f.fX)>=0)break;this.qh.removeChild(f.element)}for(var d=
[],e=y;c>=0;c--){f=this.Ze[c];if(!f.TJ&&a.indexOf(f.fX)<0){f.TJ=o;f.element.style.visibility="hidden";e=o}d.splice(0,0,f)}e&&k.Ha(this.j0,this);this.Ze=d;var g=this.Ze.filter(function(a){return!a.TJ}).map(function(a){return a.fX});a.filter(function(a){return g.indexOf(a)<0}).forEach(function(a){a=new b(a);this.n_(a);this.$w==j.cb&&this.Ze.length>0?this.qh.insertBefore(a.element,this.Ze[this.Ze.length-1].element):this.qh.appendChild(a.element);this.Ze.push(a)}.bind(this));this.I.style.display=this.Ze.length>
0?"block":"none"};c.prototype.j0=function(a){for(var b=y,a=Math.round(200*a/1E3),c=0;c<this.Ze.length;c++){var f=this.Ze[c];if(f.TJ){b=o;if(a>=f.element.clientHeight){a=a-f.element.clientHeight;this.qh.removeChild(f.element);this.Ze.splice(c,1);c--}else{f.element.style.height=f.element.clientHeight-a+"px";break}}}b&&k.Ha(this.j0,this)};c.prototype.Ida=function(){this.Ze.forEach(this.n_.bind(this))};c.prototype.n_=function(a){for(var b in this.PR)a.lX.style[b]=this.PR[b]};c.prototype.pf=function(a,
b){return this.D.get(a,b)};c.prototype.Eg=function(a,b){var c=this.D.get(a,b);isNaN(c)||(c=Math.round(c)+"px");return c};c.prototype.Bz=function(a,b,c){a=this.D.get(a);return b.indexOf(a)<0?c:a};c.prototype.VP=function(a,b,c,f){a=this.D.get(a,c);b=this.D.get(b,f);return"rgba("+parseInt("0x"+a.substr(1,2))+", "+parseInt("0x"+a.substr(3,2))+", "+parseInt("0x"+a.substr(5,2))+", "+b+")"};c.HY=["subtitlesHorizontalAlign","subtitlesVerticalAlign","subtitlesTop","subtitlesBottom"];c.IY=["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 g=document.createElement("div");return c});
define("gN",["require","eD","cE"],function(a){var b=a("eD"),c=a("cE"),a=b.extend(c,function(a,b){c.call(this,a);this.Bb=b;this.Bb.bind(EventName.L("panorama"),this.xR,this);this.xR()});a.prototype.clear=function(){this.Bb&&(this.Bb.unbind(EventName.L("panorama"),this.xR,this),this.Bb=q);c.prototype.clear.call(this)};a.prototype.xR=function(){this.bX(this.Bb.get("panorama"))};return a});
define("hC",["require","u"],function(a){var b=a("u"),a={},c=180/Math.PI,e=Math.PI/180;a.Qj=function(a,b,c){return this.Pt(a,b,c)};a.Nm=function(a,b,c){return this.Pt(a,c,b)};a.Pt=function(a,b,i){return 2*Math.atan(i*Math.tan(0.5*a*e)/b)*c};a.Swa=function(a){return b.browser()==b.iy?Math.max(a,20):a};return a});define("cF",["require"],function(){return{vl:0,ka:1,Fa:2}});
define("gX",["require"],function(){THREE.CopyShader={uniforms:{tDiffuse:{value:q},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("gg",["require"],function(){THREE.Pass=function(){this.jW=this.enabled=o;this.No=this.clear=y};Object.assign(THREE.Pass.prototype,{setSize:E(),render:function(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}});return THREE.Pass});
define("hq",["require","gg"],function(a){a("gg");THREE.Pass.FullScreenQuad=function(){function a(b){this.YG=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.YG.material},set:function(a){this.YG.material=a}});Object.assign(a.prototype,{dispose:function(){this.YG.geometry.dispose()},render:function(a){a.render(this.YG,c)}});return a}();return THREE.Pass.FullScreenQuad});
define("fi",["require","gg","hq"],function(a){a("gg");a("hq");THREE.ShaderPass=function(a,c){THREE.Pass.call(this);this.TD=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.fK=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.TD]&&(this.uniforms[this.TD].value=e.texture);this.fK.material=this.material;this.No?a.setRenderTarget(q):(a.setRenderTarget(c),this.clear&&a.clear(a.wwa,a.xwa,a.ywa));this.fK.render(a)}});return THREE.ShaderPass});
define("cB",["require","gX","fi"],function(a){a("gX");a("fi");THREE.EffectComposer=function(a,c){this.hf=a;if(c===m){var e={minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBAFormat,stencilBuffer:y},d=a.getSize(new THREE.Vector2);this.Mk=a.getPixelRatio();this.W=d.width;this.da=d.height;c=new THREE.WebGLRenderTarget(this.W*this.Mk,this.da*this.Mk,e);c.texture.name="EffectComposer.rt1"}else this.Mk=1,this.W=c.width,this.da=c.height;this.Wx=c;this.Xx=c.clone();this.Xx.texture.name=
"EffectComposer.rt2";this.bE=this.Wx;this.AD=this.Xx;this.No=o;this.er=[];this.qqa=new THREE.ShaderPass(THREE.CopyShader);this.nqa=new THREE.Clock};Object.assign(THREE.EffectComposer.prototype,{swapBuffers:function(){var a=this.AD;this.AD=this.bE;this.bE=a},addPass:function(a){this.er.push(a);a.setSize(this.W*this.Mk,this.da*this.Mk)},insertPass:function(a,c){this.er.splice(c,0,a)},nsa:function(a){for(a+=1;a<this.er.length;a++)if(this.er[a].enabled)return y;return o},render:function(a){a===m&&(a=
this.nqa.getDelta());var c=this.hf.getRenderTarget(),e=y,d,f,i=this.er.length;for(f=0;f<i;f++)if(d=this.er[f],d.enabled!==y){d.No=this.No&&this.nsa(f);d.render(this.hf,this.bE,this.AD,a,e);if(d.jW){if(e){var j=this.hf.getContext(),k=this.hf.state.buffers.stencil;k.setFunc(j.NOTEQUAL,1,4294967295);this.qqa.render(this.hf,this.bE,this.AD,a);k.setFunc(j.EQUAL,1,4294967295)}this.swapBuffers()}THREE.MaskPass!==m&&(d instanceof THREE.MaskPass?e=o:d instanceof THREE.ClearMaskPass&&(e=y))}this.hf.setRenderTarget(c)},
reset:function(a){a===m&&(a=this.hf.getSize(new THREE.Vector2),this.Mk=this.hf.getPixelRatio(),this.W=a.width,this.da=a.height,a=this.Wx.clone(),a.setSize(this.W*this.Mk,this.da*this.Mk));this.Wx.dispose();this.Xx.dispose();this.Wx=a;this.Xx=a.clone();this.bE=this.Wx;this.AD=this.Xx},setSize:function(a,c){this.W=a;this.da=c;var e=this.W*this.Mk,d=this.da*this.Mk;this.Wx.setSize(e,d);this.Xx.setSize(e,d);for(var f=0;f<this.er.length;f++)this.er[f].setSize(e,d)},setPixelRatio:function(a){this.Mk=a;
this.setSize(this.W,this.da)}});return THREE.EffectComposer});
define("e",["require"],function(){THREE.AX={uniforms:{tDiffuse1:{value:q},tDiffuse2:{value:q},mixRatio:{value:0.5},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 float mixRatio;\nuniform sampler2D tDiffuse1;\nuniform sampler2D tDiffuse2;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texel1 = texture2D( tDiffuse1, vUv );\n\tvec4 texel2 = texture2D( tDiffuse2, vUv );\n\tgl_FragColor = opacity * mix( texel1, texel2, mixRatio );\n}"};return THREE.AX});
define("hS",["require","gg"],function(a){a("gg");THREE.CustomRenderPass=function(a){THREE.Pass.call(this);this.wta=a;this.Yc=this.Kh=q;this.clear=o;this.jW=this.clearDepth=y};THREE.CustomRenderPass.prototype=Object.assign(Object.create(THREE.Pass.prototype),{constructor:THREE.CustomRenderPass,render:function(a,c,e){c=a.autoClear;a.autoClear=y;this.wta(a,this.Kh,this.Yc,this.No?q:e,this.clear);a.autoClear=c}});return THREE.CustomRenderPass});
define("ib",["require","gg","gX","hq"],function(a){a("gg");a("gX");a("hq");THREE.SavePass=function(a){THREE.Pass.call(this);var c=THREE.CopyShader;this.TD="tDiffuse";this.uniforms=THREE.UniformsUtils.clone(c.uniforms);this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:c.vertexShader,fragmentShader:c.fragmentShader});this.renderTarget=a;this.renderTarget===m&&(this.renderTarget=new THREE.WebGLRenderTarget(window.innerWidth,window.innerHeight,{minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,
format:THREE.RGBFormat,stencilBuffer:y}),this.renderTarget.texture.name="SavePass.rt");this.jW=y;this.fK=new THREE.Pass.FullScreenQuad(this.material)};THREE.SavePass.prototype=Object.assign(Object.create(THREE.Pass.prototype),{constructor:THREE.SavePass,render:function(a,c,e){this.uniforms[this.TD]&&(this.uniforms[this.TD].value=e.texture);a.setRenderTarget(this.renderTarget);this.clear&&a.clear();this.fK.render(a)}});return THREE.SavePass});
define("kb","require,cB,e,hS,gX,ib,fi".split(","),function(a){function b(a,b){this.g=a;this.ww=b;this.Pk=new THREE.CustomRenderPass(b);this.Pk.No=y;this.xI=new THREE.SavePass;this.xI.enabled=o;this.np=new THREE.ShaderPass(THREE.AX,"tDiffuse1");this.np.uniforms.tDiffuse2.value=this.xI.renderTarget.texture;this.np.uniforms.mixRatio.value=0.8;this.np.No=o;this.np.enabled=o;this.C4=new THREE.ShaderPass(THREE.CopyShader);this.C4.No=o;this.$h=new THREE.EffectComposer(a);this.$h.addPass(this.Pk);this.$h.addPass(this.np);
this.$h.addPass(this.xI);this.$h.addPass(this.C4);this.up=this.vp=m}a("cB");a("e");a("hS");a("gX");a("ib");a("fi");var c=new THREE.Vector2;b.prototype.destroy=function(){this.$h=this.np=this.xI=this.Pk=this.ww=this.g=q};b.prototype.start=function(){this.np.uniforms.mixRatio.value=0;this.uP=3};b.prototype.render=function(a,b){this.g.getSize(c);if(this.vp!==c.width||this.up!==c.height){this.vp=c.width;this.up=c.height;this.$h.setSize(this.vp,this.up)}this.Pk.Kh=a;this.Pk.Yc=b;if(this.uP>0){this.uP--;
if(this.uP===0)this.np.uniforms.mixRatio.value=0.65}this.$h.render()};return b});
define("iE",["require"],function(){THREE.ZX={uniforms:{tDiffuse:{value:q},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.ZX});
define("gy",["require","cB","iE","hS","fi"],function(a){function b(a,b){this.g=a;this.ww=b;this.$h=new THREE.EffectComposer(a);this.Pk=new THREE.CustomRenderPass(b);this.Pk.No=y;this.$h.addPass(this.Pk);this.dG=new THREE.ShaderPass(THREE.ZX);this.$h.addPass(this.dG);this.up=this.vp=m}a("cB");a("iE");a("hS");a("fi");var c=new THREE.Vector2;b.prototype.destroy=function(){this.$h=this.dG=this.Pk=this.ww=this.g=q};b.prototype.render=function(a,b){this.g.getSize(c);if(this.vp!==c.width||this.up!==c.height)this.vp=
c.width,this.up=c.height,this.$h.setSize(this.vp,this.up),this.dG.material.uniforms.resolution.value.x=1/this.vp,this.dG.material.uniforms.resolution.value.y=1/this.up;this.Pk.Kh=a;this.Pk.Yc=b;this.$h.render()};return b});
define("hE",["require","kb","gy"],function(a){function b(a,f){this.g=a;this.ww=f;this.aH=new c(a,f);this.xP=new e(a,f);this.RF=b.NONE}var c=a("kb"),e=a("gy");b.YX="fxaa";b.lM="motionBlur";b.NONE="none";b.prototype.destroy=function(){this.aH.destroy();this.aH=q;this.xP.destroy();this.ww=this.g=this.xP=q};b.prototype.MW=function(a){this.RF!=a&&(this.RF=a,this.RF==b.lM&&this.aH.start())};b.prototype.render=function(a,c){switch(this.RF){case b.YX:this.xP.render(a,c);break;case b.lM:this.aH.render(a,c);
break;default:this.ww(this.g,a,c,q,y)}};return b});define("hy",["require","fB"],function(a){function b(){this.status=b.AE;this.tW=this.mu=0;this.sW=[]}a("fB");b.LOADING="loading";b.T="loaded";b.AE="not loaded";return b});
define("hO","require,cV,eD,bS,kd,hn,hy".split(","),function(a){function b(){this.Y0={};this.sc=[];this.aq=[];this.Nc={}}var c=a("cV"),e=a("eD");a("bS");var d=a("kd"),f=a("hn"),i=a("hy");b.prototype.kX=function(a){for(var a=a.Gm(),b=0,c=a.length;b<c;b++)if(this.Az(a[b]).status!=i.T)return y;return o};b.prototype.Im=function(a,b){this.sc.push(a);this.lda(a,b)};b.prototype.Nh=function(a,b){var f=c(this.sc).indexOf(a);f<0&&h("Unloading item not loaded");this.sc.splice(f,1);this.Ila(a,b)};b.prototype.Bd=
function(a,b){return this.Nc[a].Bd(b)};b.prototype.lda=function(a,b){this.aq.push(a);for(var c=a.Gm(),f=0,d=c.length;f<d;f++){var e=c[f],p=this.Az(e);p.mu++;p.sW.push(b);if(p.status==i.AE){p.status=i.LOADING;this.kja(e,Math.min.apply(Math,p.sW))}}this.O7()};b.prototype.Ila=function(a,b){this.aq=c(this.aq).without(a);for(var f=a.Gm(),d=0,e=f.length;d<e;d++){var r=f[d],p=this.Az(r);p.mu--;var s=p.sW,t=s.indexOf(b);t>=0&&s.splice(t,1);if(p.mu==0&&p.status!=i.AE){p.status=i.AE;p.tW=0;this.Ooa(r)}}};b.prototype.O7=
function(a){for(var a=(a==m?this.aq:this.K1(a)).slice(),b=0;b<a.length;b++){for(var f=a[b],d=f.Gm(),e=0,r=0,p=d.length,s=0;s<d.length;s++){var t=this.Az(d[s]),e=e+t.tW;t.status==i.T&&r++}f.sua(e/p);if(r==p){f.PW();this.aq=c(this.aq).without(f)}}};b.prototype.Az=function(a){var b=this.Y0[a];b||(this.Y0[a]=b=new i);return b};b.prototype.K1=function(a){for(var b=[],f=0;f<this.aq.length;f++){var d=this.aq[f];c(d.Gm()).contains(a)&&b.push(d)}return b};b.prototype.kja=function(a,b){var c=new f(b);this.Nc[a]=
c;c.bind(d.T,this.BA,this,o);c.bind(d.xd,this.CA,this,o);c.load(a)};b.prototype.Ooa=function(a){var b=this.Nc[a];delete this.Nc[a];b.unbind(d.T,this.BA,this);b.unbind(d.xd,this.CA,this);b.cancel()};b.prototype.BA=function(a){var a=a.source.Gh(),b=this.Az(a);b.tW=100;b.status=i.T;this.O7(a)};b.prototype.CA=function(a){for(var a=a.source.Gh(),b=this.K1(a),c=0;c<b.length;c++){var f=b[c];this.Nh(f);f.Xta()}e.log("Error loading: "+a)};b.kd=new b;return b.kd});
define("jx",["require","hO","fh","u"],function(a){var b=a("hO"),c=a("fh"),e=a("u"),d={gR:m,uua:N("gR"),RO:m,Uta:N("RO"),createTexture:function(){var a=new THREE.Texture;a.image=d.wx();a.userData={};a.userData.kba={};return a},mqa:function(a){a.image!=this.wx()&&(a.image=this.wx(),a.needsUpdate=o)},iL:function(a,b){b=this.Wqa(b);a.generateMipmaps=this.vea(b);if(a.generateMipmaps)a.minFilter=THREE.LinearMipMapLinearFilter,a.anisotropy=Math.min(this.Qga(b),e.H9().B$),!c.v$(b.width)||!c.v$(b.height)?
(a.Nl||(a.Nl=document.createElement("canvas"),a.Nl.cJ=o),a.image=a.Nl,a.Nl.za=b,a.image.width=c.w9(b.width),a.image.height=c.w9(b.height),a.image.getContext("2d").drawImage(b,0,0,a.image.width,a.image.height)):a.image=b;else if(a.minFilter=THREE.LinearFilter,c.oD(b)&&c.sba(b)){a.vk||(a.vk=document.createElement("canvas"),a.Jia=a.vk.getContext("2d"),a.vk.cJ=o);var j=b.videoWidth;c.Li()&&(j=Math.min(4096,j));var k=j*b.videoHeight/b.videoWidth;if(a.vk.width!=j||a.vk.height!=k)a.vk.width=j,a.vk.height=
k;b.readyState>=b.HAVE_CURRENT_DATA&&a.Jia.drawImage(b,0,0,j,k);a.image=a.vk}else a.image=b;a.Nl&&a.image!=a.Nl&&(d.YJ(a.Nl),delete a.Nl);a.needsUpdate=o;if((j=d.GV(a))&&j.vsa)j.needsUpdate=o;c.j$()},Wqa:function(a){a?c.WV(a)?a=b.Bd(a,y):c.x$(a)?a=this.wx():c.oD(a)&&!(a.readyState>=a.HAVE_CURRENT_DATA&&0<a.videoWidth&&0<a.videoHeight)&&(a=this.wx()):a=this.wx();return a},wqa:function(a,b,d,e,n){var g=document.createElement("canvas");g.width=c.Wm();g.height=c.Wm();g.cJ=o;var l=g.getContext("2d");if(!l)return q;
l.drawImage(a,b,d,e,n,0,0,c.Wm(),c.Wm());this.cK(g);return g},YJ:function(a){c.n$(a)&&a.cJ&&(delete a.cJ,a.width=0,a.height=0)},dispose:function(a){a.vk&&a.vk!=a.image&&this.YJ(a.vk);a.image&&this.YJ(a.image);a.dispose()},jL:function(a,b,c){b?(a.b7=o,a.a7=c||1):(delete a.b7,delete a.a7)},Qga:function(a){return a&&a.a7||1},Kua:function(a,b){a.userData.kba.material=b},GV:function(a){return a.userData.kba.material},bqa:function(a){return c.VV(a)},R8:function(a){c.WV(a)&&(a=b.Bd(a,y));c.VV(a)&&this.cK(a)},
cK:function(a){var b=document.createElement("canvas");b.width=1;b.height=1;var c=b.getContext("2d");d.cK=function(a){c.drawImage(a,0,0,1,1,0,0,1,1)};return d.cK(a)},OO:q,wx:function(){if(!this.OO){var a=document.createElement("canvas");a.width=128;a.height=128;a.getContext("2d").clearRect(0,0,a.width,a.height);this.OO=a}return this.OO},vea:function(a){if(c.xsa(a))return y;if(c.n$(a))return!!a.b7;if(e.Qa()){if(this.gR!==m)return this.gR}else if(this.RO!==m)return this.RO;return y}};return d});
define("bN",["require","fh","jx"],function(a){function b(a){this.YD=(a=c.$q(a))&&c.Z9();this.jD=a&&c.Y9();this.Tq=0;this.qm=m;this.PC=this.QC=0}var c=a("fh"),e=a("jx"),d={CV:function(a){return a.map||a.uniforms&&a.uniforms.texture&&a.uniforms.texture.value},cl:function(a,b){a||(a=e.createTexture());b||(b=new d.Yj);return b.zta()?this.tqa(a,b):this.VJ(a)},VJ:function(a){var b=new THREE.MeshBasicMaterial;b.map=a;this.p_(b);return b},tqa:function(a,b){var c={uniforms:{},transparent:o};c.uniforms.texture=
{type:"sampler2D",value:a};a.flipY=!b.YD;c.vertexShader=["varying vec2 vUV;\nvoid main() {","\tvUV = vec2( uv.x, "+(b.YD?"1.0 - uv.y":"uv.y")+");","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"].join("\n");if(b.jD||b.Tq||b.qm){var d=[],e=[],d=d.concat(["uniform sampler2D texture;","uniform float opacity;","varying vec2 vUV;"]);c.uniforms.opacity={type:"float",value:1};e=e.concat(["   vec4 color = texture2D(texture, vUV);","   float alpha = color.a * opacity;"]);if(b.Tq){var g=
a.image.width||a.image.videoWidth,l=a.image.height||a.image.videoHeight,r=0.5*Math.min(g,l)*b.Tq;c.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(r/g,r/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.qm&&
(c.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(b.qm.substr(1,2),16)/255,parseInt(b.qm.substr(3,2),16)/255,parseInt(b.qm.substr(5,2),16)/255)},c.uniforms.chromaThreshold={type:"f",value:b.QC},c.uniforms.chromaSmoothing={type:"f",value:b.PC},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.jD?".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.p_(c);return c},dispose:function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){var b=d.CV(a);b&&e.dispose(b);a.dispose()})},p_:function(a){a.side=THREE.DoubleSide;
a.transparent=o;a.depthTest=y;a.needsUpdate=o;a.userData={};a.userData.A$={};e.Kua(d.CV(a),a)},TW:function(a,b){a.userData.A$.Sj=b},r9:function(a){return a.userData.A$.Sj}};b.prototype.zta=function(){return this.YD||this.jD||this.Tq||this.qm};b.prototype.isEqual=function(a){return this.YD===a.YD&&this.jD===a.jD&&this.Tq===a.Tq&&this.qm===a.qm&&this.QC===a.QC&&this.PC===a.PC};d.Yj=b;return d});
define("dc",["require","eO","bN"],function(a){function b(a){return Array.isArray(a)?a:a?[a]:[]}var c=a("eO"),e=a("bN"),d={create:function(a,c){var d=new THREE.Mesh(a,c);d.overdraw=y;d.matrixAutoUpdate=y;d.userData.Io={};d.userData.Io.attributes={};b(c).forEach(function(a){e.TW(a,d)});return d},rqa:function(a){var b=new THREE.Group;d.forEach(a,function(a){b.add(a)});return b},SW:function(a,c){b(c).forEach(function(a){e.TW(a,q)});e.dispose(a.material);a.material=c;b(c).forEach(function(b){e.TW(b,a)})},
Zq:function(a){return b(a.material)},vra:function(a,b){if(a.layers.mask&b.layers.mask){var e=d.Zq(a);return c.ura(a.geometry,b,a.matrixWorld).map(function(a){return e[a]})}return[]},zV:function(a,b){var j=[];d.Rf(a,function(a){var f=d.Zq(a);b.forEach(function(b){var d=c.rra(a.geometry,a.matrixWorld,b);if(d){var i=e.CV(f[d.materialIndex]),b=i.image;b==i.Nl&&(b=i.Nl.za);i=Math.round(d.ova*b.width-0.5);i=0>i?0:i>b.width-1?b.width-1:i;d=Math.round((1-d.vva)*b.height-0.5);d=0>d?0:d>b.height-1?b.height-
1:d;j.push({x:i,y:d,source:b})}})});return j},Taa:function(a,b){d.forEach(a,function(a){b?b.add(a):a.parent&&a.parent.remove(a)})},Du:"panoramaId",Eu:"panoramaFrameId",xX:"panoramaOverlayId",pL:"levelIndex",setAttribute:function(a,b,c){d.Rf(a,function(a){a.userData.Io.attributes[b]=c})},getAttribute:function(a,b){return a.userData.Io.attributes[b]},Z8:function(a,b,c){for(var d=[],e=0,g=a.length;e<g;e++){var l=a[e];l.userData.Io.attributes[b]!==c&&d.push(l)}return d},aK:function(a,b,c){for(var d=[],
e=0,g=a.length;e<g;e++){var l=a[e];l.userData.Io.attributes[b]===c&&d.push(l)}return d},J9:function(a,b){for(var c={},d=0,e=a.length;d<e;d++){var g=a[d],l=g.userData.Io.attributes[b];l!==m&&(c[l]||(c[l]=[])).push(g)}return c},pV:function(a){a=a.userData.Io.alpha;return a===m?1:a},ud:function(a,b){d.Rf(a,function(a){a.userData.Io.alpha=b;d.Zq(a).forEach(function(a){a.opacity=b;"ShaderMaterial"==a.type&&a.uniforms&&a.uniforms.opacity&&(a.uniforms.opacity.value=b)})})},sm:function(a,b){d.Rf(a,function(a){a.matrix.copy(b);
a.matrixWorldNeedsUpdate=o})},G9:function(a){return a.renderOrder},dX:function(a,b){d.forEach(a,function(a){a.renderOrder=b})},dispose:function(a){d.Rf(a,function(a){a.geometry&&(a.geometry.dispose(),a.geometry=m);a.material&&(e.dispose(a.material),a.material=m)})},Am:function(a){var b=[];d.Rf(a,function(a){b.push(a)});return b},forEach:function(a,b){Array.isArray(a)?a.forEach(b):a&&a.isObject3D&&(a.isMesh||"Group"==a.type)&&b(a)},Rf:function(a,b){if(Array.isArray(a))for(var c=0,e=a.length;c<e;c++)d.Rf(a[c],
b);else if(a&&a.children){c=0;for(e=a.children.length;c<e;c++)d.Rf(a.children[c],b)}a&&a.isObject3D&&a.isMesh&&b(a)}};return d});define("M",["require","dc"],function(a){var b=a("dc");return{Am:function(a){var e=[];a.children&&a.children.forEach(function(a){b.Rf(a,function(a){a.userData&&a.userData.Io&&e.push(a)})});return e},LW:function(a,b){a.userData.QJ=b},rV:function(a){return a.userData.QJ||[]},Yt:function(a){return a.userData.QJ&&0<a.userData.QJ.length&&a.userData.QJ[0]||q}}});
define("Z","require,bj,u,cF,M,fh".split(","),function(a){var b=a("bj");a("u");var c=a("cF"),e=a("M"),d=a("fh"),f=180/Math.PI;return{jca:function(a,b){var c,f;this.setSize=function(b,d){if(c!=b||f!=d){c=b;f=d;a.setSize(b,d)}};this.start=function(c){e.LW(c,[b]);a.setPixelRatio(d.getPixelRatio())};this.stop=E();this.fov=function(){return b.fov};this.rX=E();this.Yc=function(){return b};this.render=function(c,d,f){a.setRenderTarget(d);f&&a.clear();a.render(c,b)}},Eca:function(a,d){var k,n,g,l,r=new THREE.Vector2,
p=new THREE.PerspectiveCamera;p.layers.enable(c.ka);var s=new THREE.PerspectiveCamera;s.layers.enable(c.Fa);this.start=function(c){a.getSize(r);k=a.getPixelRatio();n=r.width;g=r.height;l=a.getContext().getParameter(a.getContext().FRAMEBUFFER_BINDING);var d=b.nK();d.VC&&a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,d.VC);a.setClearColor(0,1);a.setDrawingBufferSize(d.Pj,d.Ii,d.dK);e.LW(c,[p,s])};this.stop=function(){a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,l);a.setClearColor(0,
0);a.setDrawingBufferSize(n,g,k)};this.setSize=function(a,b){n=a;g=b};this.fov=function(){return s.fov};this.Yc=function(){return s};this.rX=function(){d.updateProjectionMatrix();d.updateMatrixWorld();b.zm().views.forEach(function(a){var c=a.eye==b.Yi.ka?p:a.eye==b.Yi.Fa?s:q;if(c){d.matrixWorld.decompose(c.position,c.quaternion,c.scale);c.applyQuaternion(a.orientation);c.translateOnAxis(a.position,1);c.projectionMatrix.copy(a.projectionMatrix);c.fov=2*Math.atan(1/c.projectionMatrix.elements[5])*f}})};
this.render=function(c,d,f){var e=c.autoUpdate;if(e){c.updateMatrixWorld();c.autoUpdate=y}if(d){a.setRenderTarget(d);d.scissorTest=o}else{a.setRenderTarget(q);a.setScissorTest(o)}(a.autoClear||f)&&a.clear();b.zm().views.forEach(function(f){var e=f.eye==b.Yi.ka?p:f.eye==b.Yi.Fa?s:q;if(e){if(d){d.viewport.set(f.viewport.x,f.viewport.y,f.viewport.width,f.viewport.height);d.scissor.set(f.viewport.x,f.viewport.y,f.viewport.width,f.viewport.height)}else{a.setViewport(f.viewport.x,f.viewport.y,f.viewport.width,
f.viewport.height);a.setScissor(f.viewport.x,f.viewport.y,f.viewport.width,f.viewport.height)}a.render(c,e)}});a.getSize(r);if(d){d.viewport.set(0,0,r.width,r.height);d.scissor.set(0,0,r.width,r.height);d.scissorTest=y;a.setRenderTarget(q)}else{a.setViewport(0,0,r.width,r.height);a.setScissorTest(y)}if(e)c.autoUpdate=o}},zca:function(a,b){var f,n,g=1,l=new THREE.WebGLCubeRenderTarget(1024),r=new THREE.CubeCamera(0.1,1E4,l);r.layers.enable(c.vl);r.layers.enable(c.ka);l=new THREE.ShaderMaterial;l.uniforms=
{tCube:{value:r.renderTarget.texture},tFlip:{value:1},opacity:{value:1}};l.fragmentShader="uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n";l.vertexShader="varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}\n";
l.side=THREE.BackSide;l.depthWrite=y;l.transparent=o;l.depthTest=y;l.needsUpdate=o;var p=new THREE.Mesh(new THREE.SphereBufferGeometry(5,64,64),l);p.overdraw=y;p.matrixAutoUpdate=y;p.renderOrder=1E3;var s=new THREE.Matrix4;this.xu=function(a){g=a};this.setSize=function(b,c){if(f!=b||n!=c)a.setSize(f=b,n=c)};this.start=function(c){c.add(p);c.add(r);c.traverse(function(a){if(a.layers.test(r.layers)){a.userData.$V=a.layers.mask;a.layers.mask=r.layers.mask}});r.visible=o;p.visible=o;e.LW(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.$V!==m){a.layers.mask=a.userData.$V;delete a.userData.$V}});r.visible=y;p.visible=y;b.remove(p);b.remove(r)};this.fov=function(){return b.fov};this.rX=function(){if(g>0){p.matrix.copy(b.matrixWorld);p.matrix.multiply(s.makeTranslation(0,0,-g*5));p.matrixWorldNeedsUpdate=o}};this.Yc=function(){return b};var t=0;this.render=function(c,f,e){if(g>0){t++;if(!d.hsa()||t%10==0){d.Nta();
p.visible=y;r.update(a,c);p.visible=o}}a.setRenderTarget(f);e&&a.clear();a.render(c,b)}}}});
define("dk","require,jquery.mod,hC,js,cF,hE,Z,eO,fh,bj".split(","),function(a){function b(){this.I=c("<div/>");this.I.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,cursor:"inherit"});this.bc=new THREE.PerspectiveCamera(90,16/9,0.1,2*k.Uf);this.bc.layers.enable(f.ka);this.GF=new THREE.PerspectiveCamera;this.Tk=new THREE.Scene;window.Kh=this.Tk;window.bwa=THREE;this.Tk.add(this.bc);this.g=q;this.Os=0;this.Yn=this.Hf=this.rT=this.HU=q}var c=a("jquery.mod"),e=a("hC"),d=a("js"),f=
a("cF"),i=a("hE"),j=a("Z"),k=a("eO"),n=a("fh"),g=a("bj");b.prototype.Yt=Q("GF");b.prototype.Yqa=function(){return this.Hf.fov(this.bc)};b.prototype.getPixelRatio=function(){return this.g.getPixelRatio()};b.prototype.Ab=Q("I");b.prototype.ara=function(){return this.g?this.g.domElement.width:this.I.width()};b.prototype.$qa=function(){return this.g?this.g.domElement.height:this.I.height()};b.prototype.update=function(a){this.ppa(a);this.$oa(a);this.Uoa(a);this.npa(a)};b.prototype.render=function(){this.hI()};
b.prototype.ppa=function(a){if(a.enabled){this.Os=(new Date).getTime();this.g||this.sna(a);g.$K(this.g.getContext())}};b.prototype.sna=function(a){if(!this.g&&a.enabled){for(;l.length>=r;){l.sort(function(a,b){return a.Os-b.Os});l[0].Lea()}l.push(this);var b=this.Ab().get(0),c={precision:"mediump",alpha:o};if(l.length==1&&a.Jb){a=g.bu();c.context=a;c.canvas=a.canvas}else{c.canvas=document.createElement("canvas");c.context=n.dV(c.canvas,a.KJ)}this.g=new THREE.WebGLRenderer(c);this.g.setClearColor(0,
0);b.appendChild(this.g.domElement);this.Yn=new i(this.g,function(a,b,c,d,f){this.Hf.render(b,d,f)}.bind(this));this.rT=new j.jca(this.g,this.bc);this.Q6=new j.zca(this.g,this.bc);this.HU=new j.Eca(this.g,this.bc);g.cx(this.g.getContext())}};b.prototype.Lea=function(){if(this.g){l.splice(l.indexOf(this),1);this.Hf=this.rT=this.HU=q;this.Yn.destroy();this.Yn=q;g.PK(this.g.getContext());this.Ab().get(0).removeChild(this.g.domElement);this.g.dispose();this.g=q}};b.prototype.Uoa=function(a){this.bc.quaternion.copy(d.d9(a.ra,
a.pitch,a.ld));this.bc.fov=e.Qj(a.Zc,a.width,a.height);this.bc.aspect=a.width/a.height;this.bc.updateProjectionMatrix();this.bc.updateMatrixWorld();this.Hf&&this.Hf.rX();this.Hf&&this.GF.copy(this.Hf.Yc());this.GF.updateProjectionMatrix();this.GF.updateMatrixWorld()};b.prototype.$oa=function(a){var b=a.Jb?this.HU:a.Mh>0?this.Q6:this.rT;if(this.Hf!=b){this.Hf&&this.Hf.stop(this.Tk);(this.Hf=b)&&this.Hf.start(this.Tk)}if(this.Hf){this.Hf.setSize(a.width,a.height);this.Hf==this.Q6&&this.Hf.xu(a.Mh)}};
b.prototype.npa=function(a){this.Yn&&(a.IK?this.Yn.MW(i.lM):a.gK&&!a.Jb?this.Yn.MW(i.YX):this.Yn.MW(i.NONE))};b.prototype.hI=function(){this.Yn&&this.Yn.render(this.Tk,this.bc)};var l=[],r=10;return b});
define("gm",["require","eD","em","fh"],function(a){var b=a("eD"),c=a("em"),e=a("fh"),a=b.extend(c,function(){c.call(this);this.S=this.Ya=q;this.cc=[];this.so=y;this.xA=q;this.li=[this];this.jm={};this.El={};this.Iz=y;this.tS={};this.uS={};this.Cl(["blendingActive"]);this.dda();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",y);this.set("index",0)});
a.prototype.dda=function(){var a="alpha,deltaYaw,deltaPitch,deltaRoll,translationX,translationY,translationZ".split(",");Array.isArray(a)||(a=[a]);a.forEach(function(a){this.tS[a]=o}.bind(this))};a.prototype.Cl=function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){this.uS[a]=o}.bind(this))};a.prototype.set=function(a,b){this.jm[a]!==b&&(this.uS[a]&&this.cc.forEach(function(c){c.set(a,b)}),this.zda(a,b),this.WS(a))};a.prototype.get=function(a){return this.jm[a]};a.prototype.WS=function(a){this.El[a]||
(this.El[a]=o,this.Iz||(this.Iz=o,this.Oa()),this.tS[a]&&this.cc.forEach(function(b){b.WS(a)}))};a.prototype.Nea=function(){this.Iz&&(this.Iz=y,this.El={})};a.prototype.C=function(){if(this.Iz)for(var a=0;a<arguments.length;a++)if(this.El[arguments[a]])return o;return y};a.prototype.zda=function(a,b){this.jm[a]=b};a.prototype.Ta=Q("cc");a.prototype.Lh=function(a){for(var b=a||[],c=this.cc.slice(),a=b.length!=c.length,e=0;e<b.length&&!a;e++)a=b[e]!=c[e];a&&(a=c.filter(function(a){return-1==b.indexOf(a)}),
e=b.filter(function(a){return-1==c.indexOf(a)}),this.cc=b,a.forEach(function(a){a.FI(q)}),e.forEach(function(a){a.remove();a.FI(this)}.bind(this)),this.Oa())};a.prototype.FI=function(a){this.S!=a&&(this.S&&this.yi(),(this.S=a)&&this.ik(),this.cT(this.S&&this.S.Ya))};a.prototype.ik=function(){for(var a in this.S.tS)this.WS(a);for(a in this.S.uS)this.set(a,this.S.get(a))};a.prototype.yi=E();a.prototype.cT=function(a){this.Ya!=a&&(a||this.Xb(),(this.Ya=a)&&this.Mb(),this.cc.forEach(function(a){a.cT(this.Ya)}.bind(this)))};
a.prototype.Mb=function(){this.uda()};a.prototype.Xb=function(){this.Dla()};a.prototype.uda=function(){this.li.forEach(function(a){this.Ya.xA.add(a,this)}.bind(this))};a.prototype.Dla=function(){this.li.forEach(function(a){this.Ya.xA.remove(a,this)}.bind(this))};a.prototype.Mj=function(){this.S&&this.S.YU(this)};a.prototype.YU=function(a){var b=this.cc.indexOf(a);-1==b&&h("Child not found");b!=this.cc.length-1&&(this.cc.splice(b,1),this.cc.push(a),this.Oa())};a.prototype.Mqa=function(a){var b=this.cc.indexOf(a);
-1==b&&h("Child not found");this.cc.splice(b,1);a.FI(q);this.Oa()};a.prototype.appendChild=function(a){a.remove();this.cc.push(a);a.FI(this);this.Oa()};a.prototype.remove=function(){this.S&&this.S.Mqa(this)};a.prototype.Ri=E();a.prototype.Oa=function(){this.so||(this.so=o,this.S&&this.S.Oa(this))};a.prototype.Sea=function(){this.so=y};a.prototype.G=function(){this.J7();this.C("translationX","translationY","translationZ")&&(this.set("composedTranslationX",this.get("translationX")+(this.S?this.S.get("composedTranslationX"):
0)),this.set("composedTranslationY",this.get("translationY")+(this.S?this.S.get("composedTranslationY"):0)),this.set("composedTranslationZ",this.get("translationZ")+(this.S?this.S.get("composedTranslationZ"):0)));this.C("deltaYaw","deltaPitch","deltaRoll")&&(this.set("composedDeltaYaw",this.get("deltaYaw")+(this.S?this.S.get("composedDeltaYaw"):0)),this.set("composedDeltaPitch",this.get("deltaPitch")+(this.S?this.S.get("composedDeltaPitch"):0)),this.set("composedDeltaRoll",this.get("deltaRoll")+(this.S?
this.S.get("composedDeltaRoll"):0)),e.j$())};a.prototype.J7=function(){this.C("alpha")&&this.set("composedAlpha",this.get("alpha")*(this.S?this.S.get("composedAlpha"):1))};return a});
define("iQ","require,eD,kd,em,dc,M".split(","),function(a){function b(a,b){return a.reduce(function(a,c){return a?o:!!(b.layers.mask&c.layers.mask)},y)}function c(a){a=f(a).loaded;return a===m?y:a}function e(a){a=f(a).Opa;return a===m?o:a}function d(a){a=f(a).hx;return a===m?y:a}function f(a){return a.userData.Lsa||(a.userData.Lsa={})}var i=a("eD"),j=a("kd"),k=a("em"),n=a("dc"),g=a("M"),a=i.extend(k,function(){k.call(this);this.k=m;this.eR=y});a.prototype.update=function(a){var b=a.Jb&&this.k&&!this.k.Jb;
this.k=a.clone();this.eR||(b?this.oia():this.fpa())};a.prototype.fpa=function(){var a=y,f=g.rV(this.k.Ie),k=g.Am(this.k.Ie);n.aK(k,n.Eu,m).forEach(function(c){var d=b(f,c)&&n.pV(c)>0&&e(c);if(c.visible!=d){c.visible=d;a=o}});var k=n.Z8(k,n.Eu,m),k=n.J9(k,n.Du),i;for(i in k){var t=k[i],u=f.map(R(y));t.sort(function(a,b){return n.G9(b)-n.G9(a)});var v=t.some(d);t.forEach(function(d){var g=b(f,d)&&n.pV(d)>0&&e(d)&&(!v||c(d));if(g){for(var g=o,k=v||c(d)&&n.pV(d)>0.999,j=0;j<f.length;j++)if(d.layers.mask&
f[j].layers.mask&&!u[j]){g=y;k&&(u[j]=o)}g=!g}if(d.visible!=g){d.visible=g;a=o}})}a&&this.trigger(j.$)};a.prototype.oia=function(){this.eR=o;g.Am(this.k.Ie).forEach(function(a){a.visible=y});setTimeout(function(){this.eR=y;this.update(this.k)}.bind(this),300);this.trigger(j.$)};a.PW=function(a,b){f(a).loaded=b};a.setActive=function(a,b){f(a).Opa=b};a.Hta=function(a,b){n.Rf(a,function(a){f(a).hx=b})};return a});
define("hk","require,eD,kd,fB,em,iQ,bN,dc,M,u".split(","),function(a){function b(a){return(a=a.userData.Wj)&&!(!a.fW&&!a.dW)}function c(a){return a.userData.Wj||(a.userData.Wj={})}function e(a){return c(a).Au}function d(a){return c(a).enabled||y}function f(a){return!e(a).bW()}var i=a("eD"),j=a("kd");a("fB");var k=a("em"),n=a("iQ"),g=a("bN"),l=a("dc"),r=a("M"),p=a("u"),s=i.extend(k,function(){k.call(this);this.Yv=[];this.$p=[];this.Xu=[];this.k=m;this.hm=q;this.Mq=this.Mq.bind(this)});s.prototype.update=
function(a){this.k=a.clone();this.Poa()?this.Mq():this.Q7()};s.prototype.Q7=function(){if(!this.hm)this.hm=setTimeout(this.Mq,1E3)};var t=Math.PI/180;s.prototype.Poa=function(){var a=this.k.Mh>0?1E3:this.k.MC/Math.tan(Math.min(this.k.ff*0.5,89.99)*t);p.Qa()||(a=a*1.5);var f=r.rV(this.k.Ie),e=r.Am(this.k.Ie).filter(b),g=e.filter(d),k={},k=l.Z8(g,l.Eu,m),k=l.J9(k,l.Eu);k.none=l.aK(g,l.Eu,m);var g=[],j;for(j in k)for(var i=k[j],u=0,F=i.length;u<F;u++){var H=i[u];(c(H).fW||s.xE)==s.Tm&&g.push(H)}for(var J=
0,O=f.length;J<O;J++){var K=f[J];for(j in k){for(var i=k[j],M=q,L=Number.NEGATIVE_INFINITY,D=q,P=Number.POSITIVE_INFINITY,u=0,F=i.length;u<F;u++){H=i[u];if(H.layers.mask&K.layers.mask&&(c(H).fW||s.xE)==s.xE){var I=c(H).Ysa*90;if(I<a&&I>L){M=H;L=I}else if(I>=a&&I<P){D=H;P=I}}}if(this.k.Jb&&D&&M)L>0.75*a?g.push(M):g.push(D);else{D&&g.indexOf(D)<0&&g.push(D);M&&g.indexOf(M)<0&&g.push(M)}}}a=[];for(f=0;f<g.length;f++){j=g[f];a.indexOf(j)<0&&a.push(j)}g=a;a:{a=this.Xu;f=g;for(j=0;j<a.length;j++)if(f.indexOf(a[j])<
0){a=y;break a}for(j=0;j<f.length;j++)if(a.indexOf(f[j])<0){a=y;break a}a=o}a=!a;this.Xu=g;u=0;for(F=e.length;u<F;u++){H=e[u];d(H)&&n.setActive(H,this.Xu.indexOf(H)>=0)}return a};s.prototype.Mq=function(){this.hm=q;for(var a=[],b=[],d=[],e=(new Date).getTime()-u,g=r.rV(this.k.Ie),k=r.Am(this.k.Ie),i=0,n=k.length;i<n;i++){var p=k[i],t=p.userData.Wj;if(t){var J=l.Zq(p);if(t.enabled){var O=[];if(this.Xu.indexOf(p)>=0){if(this.k.Mh>0||(c(p).dW||s.kM)==s.yl)O=J;else for(var K=0,M=g.length;K<M;K++){var L=
l.vra(p,g[K]);if(K==0)O=L;else for(var D=0,P=L.length;D<P;D++){var I=L[D];O.indexOf(I)<0&&O.push(I)}}D=0;for(P=O.length;D<P;D++){I=O[D];(I.userData.Wj||(I.userData.Wj={})).y$=e}}this.wN(p,O);D=0;for(P=t.ll.length;D<P;D++)a.push(t.ll[D]);D=0;for(P=t.Oo.length;D<P;D++)b.push(t.Oo[D])}else{t.Oo||this.wN(p,[]);D=0;for(P=t.Oo.length;D<P;D++){I=t.Oo[D];t.ll.indexOf(I)<0&&b.push(I)}}D=0;for(P=J.length;D<P;D++)d.push(J[D])}}i=[];D=0;for(P=this.$p.length;D<P;D++){I=this.$p[D];d.indexOf(I)<0?I.userData.Wj.Au.unload():
f(I)?this.$S(I,y):i.push(I)}this.$p=i;D=Math.max(s.D$(),Math.round(b.length*1.25))-a.length;if(this.$p.length>D){this.$p.sort(function(a,b){return c(a).y$-c(b).y$});i=this.$p.splice(0,this.$p.length-D);D=0;for(P=i.length;D<P;D++){I=i[D];I.userData.Wj.Au.unload();this.$S(I,y)}}b=[];i=0;for(n=this.Xu.length;i<n;i++){p=this.Xu[i];t=p.userData.Wj;t.ll.length>0&&b.push(p)}d=Number.POSITIVE_INFINITY;i=0;for(n=b.length;i<n;i++){p=b[i];t=p.userData.Wj;D=t.Xd;D=D!==m?D:Number.POSITIVE_INFINITY;D<d&&(d=D)}a=
[];i=0;for(n=b.length;i<n;i++){p=b[i];t=p.userData.Wj;D=t.Xd;D=D!==m?D:Number.POSITIVE_INFINITY;if(D==d){L=t.ll;D=0;for(P=L.length;D<P;D++){I=L[D];a.push(I)}}}D=0;for(P=this.Yv.length;D<P;D++){I=this.Yv[D];if(a.indexOf(I)<0){I=I.userData.Wj.Au;I.unbind(j.T,this.GT,this,o);I.unbind(j.xd,this.HT,this,o);I.fqa()}}i=this.Yv;this.Yv=a;n=this.Yv.slice();D=0;for(P=n.length;D<P;D++){I=n[D];if(i.indexOf(I)<0){I=I.userData.Wj.Au;I.bind(j.T,this.GT,this,o);I.bind(j.xd,this.HT,this,o);I.load()}}};s.prototype.GT=
function(a){this.g7(a.source);this.trigger(j.T)};s.prototype.HT=function(a){this.g7(a.source)};s.prototype.g7=function(a){a.unbind(j.T,this.GT,this,o);a.unbind(j.xd,this.HT,this,o);var b=a.material(),f=this.Yv,d=f.indexOf(b);d>=0&&f.splice(d,1);this.$p.push(b);this.$S(b,o);a=a.Sj();c(a).ll.indexOf(b)>=0&&this.wN(a,c(a).Oo);this.Q7()};s.prototype.wN=function(a,b){var d=c(a).Oo,d=d?d.length:m,e=c(a).ll,e=e?e.length:m;c(a).Oo=b;c(a).ll=b.filter(f);n.PW(a,c(a).ll.length==0&&(c(a).dW||s.kM)==s.yl);var g=
c(a).Oo,g=g?g.length:m,k=c(a).ll,k=k?k.length:m;if(e!==k||d!==g)a.dispatchEvent({type:j.ic,Ih:g?100-100*k/g:100});e!==k&&k===0&&a.dispatchEvent({type:j.T})};s.prototype.$S=function(a,c){if(c!=a.visible){var f=g.r9(a),d=l.getAttribute(f,l.Du),k=l.getAttribute(f,l.pL);if(d===m||k===m)a.visible=c;else{for(var j=r.Am(this.k.Ie).filter(b),d=l.aK(j,l.Du,d),k=l.aK(d,l.pL,k),i=l.Zq(f).indexOf(a),f=k.map(function(a){return l.Zq(a)[i]}),k=c,d=0;d<f.length&&k;d++)k=k&&e(f[d]).bW();for(d=0;d<f.length;d++)f[d].visible=
k}}};s.D$=function(){var a;if(p.Qa()){p.sd();a=384}else a=1536;a=128;s.D$=function(){return a};return a};s.$c=function(a,b){l.Rf(a,function(a){c(a).enabled=b})};s.enabled=d;s.PD=function(a,b){l.Rf(a,function(a){c(a).Ysa=b})};s.yl="all";s.kM="in view";s.ir=function(a,b){l.Rf(a,function(a){c(a).dW=b})};s.Tm="always";s.xE="on demand";s.jr=function(a,b){l.Rf(a,function(a){c(a).fW=b})};s.ZK=function(a,b){l.Rf(a,function(a){c(a).Xd=b})};s.MD=function(a,b){l.Rf(a,function(a){c(a).fxa=b;l.Zq(a).forEach(function(a){e(a).rua(b)})})};
s.cxa=function(a){return 100-100*c(a).ll.length/c(a).Oo.length};s.bxa=function(a){return c(a).ll.length==0};s.Mm=function(a,b){(c(a).Au=b)&&(a.visible=b.bW())};s.Au=e;var u=(new Date).getTime();return s});
define("h","require,eD,gm,dc,M,hk,iQ".split(","),function(a){var b=a("eD"),c=a("gm"),e=a("dc"),d=a("M"),f=a("hk"),i=a("iQ"),a=b.extend(c,function(){c.call(this);this.set("tag","WebGLObject");this.set("zOrder",0);this.set("webglScene",q);this.set("meshGroup",q);this.set("camera",q)});a.prototype.Fl=function(){return[]};a.prototype.Xb=function(){e.dispose(this.get("meshGroup"));e.Taa(this.get("meshGroup"),q);this.set("meshGroup",q);c.prototype.Xb.call(this)};a.prototype.G=function(a){c.prototype.G.call(this,
a);this.set("camera",d.Yt(a.Ie));this.set("webglScene",a.Ie);if(!this.get("meshGroup")){this.set("meshGroup",e.rqa(this.Fl()));this.get("meshGroup").userData.kxa=this}this.C("webglScene","meshGroup")&&e.Taa(this.get("meshGroup"),this.get("webglScene"));this.ro();this.Xw(a);this.tU();this.C("loadingActive","meshGroup")&&f.$c(this.get("meshGroup"),this.get("loadingActive"));this.C("blendingActive","meshGroup")&&i.Hta(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.ro=function(){this.C("composedAlpha",
"meshGroup")&&this.Ny()};a.prototype.Ny=function(){e.ud(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.Xw=function(){h("Must be overridden in descendants.")};a.prototype.tU=function(){if(this.C("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,c){e.dX(a,this.get("index")+b/c.length)}.bind(this))}};return a});
define("ci","require,eD,kd,fB,em,bN,jx".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("fB"),d=a("em"),f=a("bN"),i=a("jx"),j=b.extend(d,function(){d.call(this);this.zf=m;this.Zb=i.createTexture();this.k=j.vy;this.gA=e.$i});j.prototype.type=Q("zf");j.prototype.texture=Q("Zb");j.prototype.material=function(){return this.Zb&&i.GV(this.Zb)};j.prototype.Sj=function(){var a=this.Zb&&i.GV(this.Zb);return a&&f.r9(a)};j.prototype.rua=N("gA");j.prototype.load=function(){if(this.k==j.vy){this.k=j.FE;this.EN()}};
j.prototype.fqa=function(){if(this.Csa()){this.k==j.FE?this.ZI():this.OB();this.k=j.vy}};j.prototype.unload=function(){if(this.k!=j.vy){this.k==j.FE?this.ZI():this.k==j.AM?this.OB():this.Lq();this.k=j.vy}};j.prototype.EN=E();j.prototype.ZI=E();j.prototype.CN=E();j.prototype.OB=E();j.prototype.Lq=function(){i.mqa(this.texture)};j.prototype.Csa=function(){return this.k==j.FE||this.k==j.AM};j.prototype.bW=function(){return this.k==j.zM||this.k==j.VY};j.prototype.dispose=function(){i.dispose(this.Zb);
this.Zb=q};j.prototype.ew=function(a){this.k=a?j.AM:j.VY;a?this.CN():this.trigger(c.xd)};j.prototype.l3=function(){this.k=j.zM;this.trigger(c.T)};j.vy="initial";j.FE="loading";j.AM="adding";j.VY="error loading";j.zM="added";j.Bca="custom";j.Cca="image tile";j.cwa="image animation";j.dwa="video 360";return j});
define("cz","require,eD,kd,bL,hO,jx,ci".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bL"),d=a("hO"),f=a("jx"),i=a("ci"),a=b.extend(i,function(a){i.call(this);this.zf=i.Bca;this.Qb=a;if(!this.Qb)this.k=i.zM;this.Od=this.Md=q;this.nN=this.vC=m});a.prototype.Tg=function(a){this.Od=a;f.iL(this.Zb,this.Od);this.Od&&this.vC!==m&&f.jL(this.Od,this.vC,this.nN)};a.prototype.jL=function(a,b){if(this.vC!==a){this.vC=a;this.nN=b;this.Od&&f.jL(this.Od,this.vC,this.nN)}};a.prototype.Bd=function(){return d.Bd(this.Qb)};
a.prototype.update=function(){f.iL(this.Zb,this.Od)};a.prototype.EN=function(){this.Qb?this.vO():this.ew(o)};a.prototype.ZI=function(){this.vn()};a.prototype.CN=function(){this.l3()};a.prototype.Lq=function(){this.vn()};a.prototype.dispose=function(){this.vn();i.prototype.dispose.call(this)};a.prototype.uf=function(){this.ew(o)};a.prototype.dq=function(){this.ew(y)};a.prototype.vO=function(){if(!this.Md){this.Md=new e;this.Md.cX([this.Qb]);this.Md.bind(c.T,this.uf,this,o);this.Md.bind(c.xd,this.dq,
this,o);d.Im(this.Md,this.gA)}};a.prototype.vn=function(){if(this.Md){this.Md.unbind(c.T,this.uf,this,o);this.Md.unbind(c.xd,this.dq,this,o);d.Nh(this.Md,this.gA);this.Md=q}};return a});
define("gZ",["require","hC","bc","iw"],function(a){var b=a("hC"),c=a("bc"),e=a("iw"),d=180/Math.PI,f=Math.PI/180;return{vV:function(a,b,f,d,g,l,r){b||(b=a*d/f);g||(g=e.Sm);var p={};switch(g){case e.Sm:p.width=a;p.height=b;break;case e.NONE:p.width=f;p.height=d;break;case e.qe:p.width=Math.min(b*f/d,a);p.height=Math.min(a*d/f,b);break;case e.xl:p.width=Math.max(b*f/d,a);p.height=Math.max(a*d/f,b);break;case e.ek:p.width=a;p.height=a*d/f;break;case e.yg:p.width=b*f/d,p.height=b}p.width>a?(p.Uo=a/p.width,
p.XD=l==c.ka?0:l==c.Fa?1-p.Uo:0.5*(1-p.Uo),p.width=a):(p.XD=0,p.Uo=1);p.height>b?(p.Vo=b/p.height,p.aE=r==c.eb?1-p.Vo:r==c.cb?0:0.5*(1-p.Vo),p.height=b):(p.aE=0,p.Vo=1);return p},DV:function(a,j,k,n,g,l,r,p){j||(j=b.Qj(a,k,n));g||(g=e.Sm);l||(l=4096/360);var s={};switch(g){case e.Sm:s.Zc=a;s.tl=j;break;case e.NONE:s.Zc=2*Math.atan2(0.5*k,45*l)*d;s.tl=b.Qj(s.Zc,k,n);break;case e.qe:s.Zc=Math.min(b.Nm(j,k,n),a);s.tl=Math.min(b.Qj(a,k,n),j);break;case e.xl:s.Zc=Math.max(b.Nm(j,k,n),a);s.tl=Math.max(b.Qj(a,
k,n),j);break;case e.ek:s.Zc=a;s.tl=b.Qj(a,k,n);break;case e.yg:s.Zc=b.Nm(j,k,n),s.tl=j}s.Zc>a?(s.Uo=Math.tan(0.5*a*f)*k/Math.tan(0.5*s.Zc*f)/k,s.XD=r==c.ka?0:r==c.Fa?1-s.Uo:0.5*(1-s.Uo),s.Zc=a):(s.XD=0,s.Uo=1);s.tl>j?(s.Vo=Math.tan(0.5*j*f)*n/Math.tan(0.5*s.tl*f)/n,s.aE=p==c.eb?1-s.Vo:p==c.cb?0:0.5*(1-s.Vo),s.tl=j):(s.aE=0,s.Vo=1);return s}}});
define("gB","require,eD,fB,eO,bN,dc,h,cz,gZ,hk,hC,js,bc".split(","),function(a){var b=a("eD"),c=a("fB"),e=a("eO"),d=a("bN"),f=a("dc"),i=a("h"),j=a("cz"),k=a("gZ"),n=a("hk"),g=a("hC"),l=a("js"),r=a("bc"),p=new THREE.Matrix4,s=Math.PI/180,t=b.extend(i,function(){i.call(this);this.set("tag","Plane");this.set("distance",m);this.set("textureSource",q);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",q);this.set("scaleMode",q);this.set("horizontalAlign",q);this.set("verticalAlign",q);this.set("attachToCamera",y);this.set("materialConfig",this.yk=new d.Yj);this.yz=this.rO();this.Zk=new THREE.Matrix4;this.If=new THREE.Matrix4;this.ht=new THREE.Matrix4;this.wn=new THREE.Matrix4;this.Sk=new THREE.Matrix4;this.yN=new THREE.Matrix4;this.r_=new THREE.Quaternion;this.r0=new THREE.Matrix4;this.Vy=new THREE.Matrix4;this.gz=new THREE.Matrix4;
this.pp=new THREE.Matrix4;this.Oe=new THREE.Matrix4});t.or=0;t.Om=1;t.prototype.G=function(a){i.prototype.G.call(this,a);this.qC();this.pU()};t.prototype.qC=function(){if(this.C("textureSource")||this.C("materialConfig")&&!this.yk.isEqual(this.get("materialConfig"))){var a=this.get("meshGroup");if(a){a=f.Am(a)[t.Om];f.SW(a,this.jz());this.Ny()}}};t.prototype.pU=function(){if(this.C("hfov","vfov","contentWidth","contentHeight","panoramaPixelsPerDegree","scaleMode","horizontalAlign","verticalAlign")){var a=
k.DV(this.get("hfov"),this.get("vfov"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("panoramaPixelsPerDegree"),this.get("horizontalAlign"),this.get("verticalAlign"));e.Raa(this.yz[t.Om],a.XD,a.aE,a.Uo,a.Vo)}};t.prototype.Fl=function(){return[t.or,t.Om].map(function(a){var b=a==t.or?this.mO():this.jz(),a=f.create(this.yz[a],b);n.ir(a,n.yl);n.jr(a,n.Tm);n.MD(a,c.vM);n.ZK(a,1);return a}.bind(this))};t.prototype.jz=function(){var a=this.get("textureSource")||new j;
this.yk=this.get("materialConfig");var b=d.cl(a.texture(),this.yk);n.Mm(b,a);return[b]};t.prototype.mO=function(){var a=new j,b=d.cl(a.texture());n.Mm(b,a);return[b]};t.prototype.rO=function(){return[e.TC(),e.TC()]};t.prototype.tk=function(a){return f.zV(this.get("meshGroup"),a)};t.prototype.Xw=function(a){var b=y;if(this.C("composedTranslationX","composedTranslationY","composedTranslationZ")){this.Zk.makeTranslation(-this.get("composedTranslationX")*0.5*e.Uf,this.get("composedTranslationY")*0.5*
e.Uf,this.get("composedTranslationZ")*0.5*e.Uf);b=o}if(this.C("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.If.makeRotationY(-a.ra*s);this.If.multiply(p.makeRotationX(-this.get("composedDeltaPitch")*s));this.If.multiply(p.makeRotationY(this.get("composedDeltaYaw")*s));this.If.multiply(p.makeRotationY(a.ra*s));b=o}if(this.C("yaw","pitch")){this.ht.makeRotationY(-this.get("yaw")*s);this.ht.multiply(p.makeRotationX(this.get("pitch")*s));b=o}if(this.C("distance","flipHorizontally",
"scale","hfov","vfov","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign","composedTranslationX","composedTranslationY","composedTranslationZ")){var c=this.S.get("composedTranslationX")==0&&this.S.get("composedTranslationY")==0&&this.S.get("composedTranslationZ")==0&&this.get("distance")!==m?e.Ax(this.get("distance")):e.Yq();this.wn.makeTranslation(0,0,-c);var d=this.get("contentWidth"),j=this.get("contentHeight"),i=this.get("hfov"),n=this.get("vfov")||g.Qj(i,d,j),G=(this.get("flipHorizontally")?
-1:1)*this.get("scale"),z=this.get("scale"),F=this.get("scaleMode"),H=this.get("panoramaPixelsPerDegree"),b=this.get("horizontalAlign")||r.pc,J=this.get("verticalAlign")||r.$b,d=k.DV(i,n,d,j,F,H,b,J),i=G*e.EV(c,i),n=z*e.FV(c,n);this.Vy.makeScale(i,n,1);G=G*e.EV(c,d.Zc);c=z*e.FV(c,d.tl);this.gz.makeScale(G,c,1);this.r0.makeTranslation(b==r.ka?-(i-G)*0.5:b==r.Fa?(i-G)*0.5:0,J==r.eb?(n-c)*0.5:J==r.cb?-(n-c)*0.5:0,0);b=o}if(this.C("rotationX","rotationY","rotationZ","roll")){this.Sk.makeRotationZ(this.get("roll")*
s);this.Sk.multiply(p.makeRotationY(this.get("rotationY")*s));this.Sk.multiply(p.makeRotationX(this.get("rotationX")*s));this.Sk.multiply(p.makeRotationZ(this.get("rotationZ")*s));b=o}this.set("cameraYaw",a.ra);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.ld);if(this.get("attachToCamera")&&this.C("cameraYaw","cameraPitch","cameraRoll")){this.r_.copy(l.d9(a.ra,a.pitch,a.ld));this.yN.makeRotationFromQuaternion(this.r_);b=o}else if(this.C("attachToCamera")){this.yN.identity();b=o}if(b||this.C("meshGroup")){this.Oe.copy(this.Zk);
this.Oe.multiply(this.If);this.Oe.multiply(this.yN);this.Oe.multiply(this.ht);this.Oe.multiply(this.wn);this.Oe.multiply(this.Sk);this.pp.copy(this.Oe);this.pp.multiply(this.Vy);this.Oe.multiply(this.r0);this.Oe.multiply(this.gz);a=f.Am(this.get("meshGroup"));f.sm(a[t.or],this.pp);f.sm(a[t.Om],this.Oe)}};return t});
define("cI","require,eD,kd,em,jx,X".split(","),function(a){function b(){if(!n){n=o;j.Ha(c,q)}}function c(){for(n=y;k.length;){var a=k.shift();a.add();if(a.Jsa())break}k.length&&b()}var e=a("eD"),d=a("kd"),f=a("em"),i=a("jx"),j=a("X"),k=[],n=y,g=e.extend(f,function(a,b){f.call(this);this.texture=a;this.source=b});g.prototype.Jsa=function(){return!this.source.VZ&&i.bqa(this.source)};g.prototype.R8=function(){if(!this.source.VZ){i.R8(this.source);this.source.VZ=o}};g.prototype.add=function(){i.iL(this.texture,
this.source);this.trigger(d.T)};g.prototype.remove=function(){var a=k.indexOf(this);a>=0&&k.splice(a,1);i.iL(this.texture,q)};return{add:function(a,c){var f=new g(a,c);k.push(f);b();return f}}});
define("iU","require,eD,kd,bL,hO,cI,ci".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bL"),d=a("hO"),f=a("cI");TextureSource=a("ci");a=b.extend(TextureSource,function(a){TextureSource.call(this);this.zf=TextureSource.Cca;this.Qb=a;this.Od=this.tw=this.Md=q});a.prototype.Bd=Q("Od");a.prototype.EN=function(){this.vO()};a.prototype.ZI=function(){this.vn()};a.prototype.CN=function(){this.Dfa()};a.prototype.OB=function(){this.vn();this.VO()};a.prototype.Lq=function(){this.vn();this.VO()};a.prototype.dispose=
function(){this.vn();this.VO();TextureSource.prototype.dispose.call(this)};a.prototype.uf=function(){this.Od=d.Bd(this.Qb);this.ew(o)};a.prototype.dq=function(){this.ew(y)};a.prototype.m3=function(){this.l3()};a.prototype.vO=function(){if(!this.Md){this.Md=new e;this.Md.cX([this.Qb]);this.Md.bind(c.T,this.uf,this,o);this.Md.bind(c.xd,this.dq,this,o);d.Im(this.Md,this.gA)}};a.prototype.vn=function(){if(this.Md){this.Md.unbind(c.T,this.uf,this,o);this.Md.unbind(c.xd,this.dq,this,o);d.Nh(this.Md,this.gA);
this.Md=q}};a.prototype.Dfa=function(){this.tw=f.add(this.Zb,this.Od);this.tw.bind(c.T,this.m3,this,o)};a.prototype.VO=function(){if(this.tw){this.tw.unbind(c.T,this.m3,this,o);this.tw.remove();this.tw=q}};return a});
define("fD",["require"],function(){function a(){this.Op=b++;this.jA="_map_"+this.Op+"_key";this.FG={};this.ye=[];this.length=0}var b=0;a.prototype.set=a.prototype.add=function(a,b){var d;0>this.ye.indexOf(a)&&this.ye.push(a);if("object"===typeof a&&a!==q){if(d=a[this.jA],!d){d=this.jA;for(var f=[],i=0;8>i;i++)f.push(Math.floor(16*Math.random()).toString(16));d=a[d]=f.join("")}}else d=a;this.FG[d]=b;this.length=this.ye.length};a.prototype.get=function(a){return this.FG["object"===typeof a&&a!==q?a[this.jA]:
a]};a.prototype.P9=function(a){return 0<=this.ye.indexOf(a)};a.prototype.remove=function(a){var b=this.ye.indexOf(a);0>b||(this.ye.splice(b,1),"object"===typeof a&&a!==q?(b=a[this.jA],delete a[this.jA]):b=a,delete this.FG[b],this.length=this.ye.length)};a.prototype.forEach=function(a){this.ye.slice().forEach(function(b){a(b,this.get(b))}.bind(this))};a.prototype.dispose=function(){for(;this.ye.length;)this.remove(this.ye.pop());this.ye=this.FG=q};return a});
define("hf",["require","eD","em","fD"],function(a){function b(){this.Tt=[]}var c=a("eD"),e=a("em"),d=a("fD"),a=c.extend(e,function(a){e.call(this);this.Gd=a;this.Lc=[];this.Dn=new d;this.DC=[];this.gP=[];this.dw=this.dw.bind(this)});a.prototype.vd=function(a){this.Lc.forEach(function(a){a.removeEventListener?a.removeEventListener(this.Gd,this.dw):a.unbind?a.unbind(this.Gd,this.dw,this,o):h("invalid instance type")}.bind(this));this.Lc=a.slice();this.Lc.forEach(function(a){a.addEventListener?a.addEventListener(this.Gd,
this.dw):a.bind?a.bind(this.Gd,this.dw,this,o):h("invalid instance type");this.Dn.P9(a)||this.Dn.set(a,new b)}.bind(this));this.WT()};a.prototype.dispose=function(){this.vd([]);this.Lc=q;this.Dn.dispose();this.gP=this.DC=this.Dn=q};a.prototype.Ui=function(a){this.DC.push(a);this.WT();return this};a.prototype.kl=function(a){this.gP.push(a);return this};a.prototype.Ao=function(a){this.Lc.forEach(function(b){a(b,this.Dn.get(b).Tt)}.bind(this))};a.prototype.Mi=function(a){a=this.Dn.get(a).Tt;return 0==
a.length?q:a[a.length-1]};a.prototype.dw=function(a){var b=a.target||a.source;if(b=this.Dn&&this.Dn.get(b))b.Tt.push(a),this.gP.forEach(function(b){b(a,this)}.bind(this)),this.WT()};a.prototype.WT=function(){if(0!=this.Lc.length){for(var a=0;a<this.Lc.length;a++)if(0==this.Dn.get(this.Lc[a]).Tt.length)return;this.DC.length&&(a=this.DC.slice(),this.DC=[],a.forEach(function(a){a(this)}.bind(this)))}};return a});
define("fc",["require","ig","u","fI"],function(a){function b(a,b,c){if(c&&a.get("width")>c[0]&&a.get("height")>c[1])return y;if(!b)return o;c=a.get("url");a=a.get("type")||"";switch(b){case f:return d.is(c,d.mZ);case i:return d.is(c,d.Vba)||(d.is(c,d.nM)||d.is(c,d.jY))&&(0<=(a||"").toLowerCase().indexOf("hev1")||0<=(a||"").toLowerCase().indexOf("h265")||0<=(a||"").toLowerCase().indexOf("heic"))?o:y;case j:return d.is(c,d.nM);case k:return d.is(c,d.Zi);case n:return d.is(c,d.BY);case g:return d.is(c,
d.jY);default:return y}}var c=a("ig"),e=a("u"),d=a("fI"),f="webm",i="h265",j="mp4",k="hls",n="ogv",g="mov",l={IV:function(a){return l.select(a.get("levels"))},select:function(a){a||(a=[]);var a=a.slice(),d=c.E$,l=[];c.Rra&&l.push({type:k,Jm:m});c.Xra&&l.push({type:i,Jm:d});c.tK&&l.push({type:f,Jm:d});c.hD&&l.push({type:j,Jm:d});c.Yra&&l.push({type:g,Jm:d});c.LV&&l.push({type:n,Jm:d});l.push({type:j,Jm:d});l.push({type:f,Jm:d});l.push({type:j,Jm:m});l.push({type:f,Jm:m});for(var t=1E3*(e.Qa()?800:
5E3),u=0;u<l.length;u++){var v=l[u].type,d=l[u].Jm,x=a.filter(function(a){if(b(a,v,d))return o});v!=k&&x.sort(function(a,b){return Math.abs(t-a.get("bitrate"))-Math.abs(t-b.get("bitrate"))});if(x.length)return x[0]}return q}};return l});
define("bB",["require","dx"],function(a){var b=a("dx"),c={get:function(a){return a.Yca||(a.Yca=this.yga(a))},yga:function(a){if(b.sb("CubicPanoramaFrame",a))return a.get("stereoCube")?c.Nr:a.get("cube")?c.bp:c.Qh;if(b.sb("SphericPanoramaFrame",a)){if(a.get("stereoSphere")){var d=a.get("hfov"),f=a.get("vfov"),i=a.get("stereoSphere").get("levels"),a=Math.max.apply(Math,i.map(function(a){return a.get("width")})),i=Math.max.apply(Math,i.map(function(a){return a.get("height")}));return 2==Math.round(i/
f/(a/d))?c.Or:c.Qu}return c.zl}},Nr:"stereoCube_12_1",bp:"monoCube_6_1",Qh:"monoCube_1_1",zl:"monoSphere_1_1",Or:"stereoSphere_1_2",Qu:"stereoSphere_2_1"};return c});
define("jl","require,dx,is,fc,cF,iO,bB,gZ,ig,u,fI,iw,hn".split(","),function(a){function b(a,b,c){return a.split(b).join(c).split(encodeURI(b)).join(c)}function c(){var a=C.br()&&URL.um("recent_ipad_use_max_res",y);c=function(){return a};return a}function e(a){if(a.length==0)return 1;a.sort(function(a,b){return b.get("width")-a.get("width")});return a[0].get("width")/a[0].get("height")}function d(a,b){var d=1E4;c()||(C.gf()?d=2048:C.br()?d=1280:C.Qa()&&(d=1024));switch(a){case w.bp:return[6*d,d];
case w.Qh:return[d,d];case w.Nr:return[12*d,d]}switch(a){case w.Or:b=b*2;break;case w.Qu:b=b*0.5}return b>2?[d*4,d*4/b]:[d*2*b,d*2]}function f(a){if(c())return[m,m];switch(a){case w.bp:if(C.gf()||C.Qa())return[18432,1536];break;case w.Or:if(C.gf())return[5352,5352];if(C.Qa())return[6086,6086];break;case w.zl:if(C.gf())return[7168,3584];if(C.Qa()&&C.br())return[8192,4096]}return[m,m]}function i(a,b){var c=f(b);return a.filter(function(a){return s.sb("TiledImageResourceLevel",a)?o:c[0]!==m&&a.get("width")>
c[0]||c[1]!==m&&a.get("height")>c[1]?y:o})}function j(){return C.br()?[t.XY]:C.AK()?[t.ZY,t.EM]:C.gf()?[t.EM]:C.Qa()?[t.YY]:[]}function k(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]||q}function g(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 r(a,b){switch(b){case w.Nr:return a.get("stereoCube").get("levels");case w.bp:return a.get("cube").get("levels");case w.Qh:return a.get("front").get("levels");case w.zl:return a.get("sphere").get("levels");case w.Or:case w.Qu:return a.get("stereoSphere").get("levels")}}function p(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];b.indexOf(d)<0&&b.push(d)}return b}var s=a("dx"),t=a("is"),u=a("fc"),v=a("cF"),x=a("iO"),w=a("bB"),A=a("gZ");a("ig");var C=a("u");a("fI");
var B=a("iw"),G=a("hn"),z={s9:function(a){a=a.get("frames");if(a.length==0)return 1;var b=a[0],a=w.get(b)==w.zl&&s.sb("Video360Resource",b.get("sphere"))?[z.HV(b)]:z.AV(b,y);return Math.max.apply(Math,a.map(function(a){return z.zra(b,a)}))},zra:function(a,b){var b=z.uV(a,b,x.FRONT),c=b.get("width"),d=a.zx().get("hfov",360);switch(w.get(a)){case w.Nr:return c/1080;case w.bp:return c/540;case w.Qh:return c/90;case w.zl:return c/d;case w.Or:return c/d;case w.Qu:return c/(2*d)}},NV:function(a,b){var c=
z.Cx(a,b);return c.length<=6&&c.every(function(a){return G.jX(a)})},Cx:function(a,b,c){c||(c=y);if(s.sb("Panorama",a)){c=a.get("flipImageHorizontally",y);return p(Array.prototype.concat.apply([],a.get("frames").map(function(a){return z.Cx(a,b,c)})))}if(s.sb("PanoramaFrame",a)){if(w.get(a)==w.zl&&s.sb("Video360Resource",a.get("sphere")))return z.Cx(z.HV(a),b);var d=z.AV(a,b)[0],c=a.get("flipImageHorizontally",y);if(w.get(a)==w.Qh){var f=[x.FRONT,x.ka,x.BACK,x.Fa,x.eb,x.cb];return Array.prototype.concat.apply([],
f.map(function(f){return(f=z.uV(a,d,f))?z.Cx(f,b,c):[]}))}return z.Cx(d,b,c)}if(s.sb("Video360ResourceLevel",a)){var e=a.get("posterURL");return e?[e]:[]}if(s.sb("TiledImageResourceLevel",a)){var g=[],e=Math.round(a.get("width")/a.get("height")),k;if(e==1)k=w.Qh;else if(e==12)k=w.Qva;else if(e==6)k=w.bp;else return[];var j=e==12?[v.Fa,v.ka]:[v.vl],f=[x.Fa,x.ka,x.eb,x.cb,x.FRONT,x.BACK],l=a.get("colCount",e)/e,i=a.get("rowCount",1);j.forEach(function(b){f.forEach(function(d){for(var f=0;f<i;f++)for(var e=
0;e<l;e++)g.push(z.C9(a,k,b,d,c,i,f,e))})});return g}return s.sb("ImageResourceLevel",a)?[a.get("url")]:[]},AV:function(a,b){var c=w.get(a),d=this.dha(a);if(d){if(b&&!this.u2(d)){c=this.S1(a);if(c!=d)return[c,d]}return[d]}d=l(r(a,c),t.FM);if(d.length>0)return k(d);d=this.Jha(a);if(b&&!this.u2(d)){c=this.S1(a);if(c!=d)return[c,d]}return[d]},rsa:function(a){return a.get("tags").indexOf(t.FM)>=0},uV:function(a,b,c){if(w.get(a)!=w.Qh)return b;var d;switch(c){case x.FRONT:d=a.get("front");break;case x.ka:d=
a.get("left");break;case x.BACK:d=a.get("back");break;case x.Fa:d=a.get("right");break;case x.eb:d=a.get("top");break;case x.cb:d=a.get("bottom")}a=d&&d.get("levels")||[];if(a.length==0)return q;a=a.filter(function(a){return a.get("width")==b.get("width")&&a.get("height")==b.get("height")&&a.get("grayscale",y)==b.get("grayscale",y)&&a.get("colCount",1)==b.get("colCount",1)&&a.get("rowCount",1)==b.get("rowCount",1)});return a[0]},C9:function(a,c,d,f,e,g,k,j){var a=a.get("url"),l=0;a.indexOf("{eye}")>=
0||a.indexOf(encodeURI("{eye}"))>=0?a=b(a,"{eye}",K[d]):l=l+6*(e?J:H)[d];a.indexOf("{face}")>=0||a.indexOf(encodeURI("{face}"))>=0?a=b(a,"{face}",O[f]):c!=w.Qh&&(l=l+F[f]);a=b(a,"{row}",k);return a=b(a,"{column}",j+l*g)},Bra:function(a,b){return z.jG(a.get("image").get("levels"),90,90,B.qe,b)},bra:function(a,b){return z.jG(a.get("image").get("levels"),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},pra:function(a,b){return z.jG(a.get("image").get("levels"),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),
b)},Kra:function(a,b){return z.jG(a.get("image").get("levels"),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},jG:function(a,b,d,f,e){for(var a=g(a,t.Vm,a),i=j(),p=0;p<i.length;p++)a=l(a,i[p],a);i=1E4;c()||(C.gf()?i=2048:C.br()?i=1280:C.Qa()&&(i=1024));p=k(a)[a.length-1];b=A.DV(b,d,p.get("width"),p.get("height"),f,e);return n(a,[b.Zc*i/90,b.tl*i/90])},kra:function(a){for(var b=a.get("image").get("levels"),b=g(b,t.Vm,b),c=j(),d=0;d<c.length;d++)b=l(b,c[d],b);c=k(b)[b.length-1];a=A.vV(a.get("width"),
a.get("height"),c.get("width"),c.get("height"),a.get("scaleMode"));return n(b,[a.width,a.height])},HV:function(a){return u.select(r(a,w.get(a)))},S1:function(a){for(var b=w.get(a),a=r(a,b),a=i(a,b),a=l(a,t.Vm,a),b=j(),c=0;c<b.length;c++)a=l(a,b[c],a);return n(a,[0,0])},Jha:function(a){for(var b=w.get(a),a=r(a,b),a=i(a,b),a=g(a,t.Vm,a),c=j(),f=0;f<c.length;f++)a=l(a,c[f],a);b=d(b,e(a));return n(a,b)},dha:function(a){var b=j();if(b.length==0)return q;for(var c=w.get(a),f=r(a,c),f=i(f,c),f=g(f,t.Vm,
f),a=[],k=0;k<b.length&&a.length==0;k++)a=l(f,b[k]);if(a.length==0)return q;b=d(c,e(a));return n(a,b)},u2:function(a){return a.get("tags").indexOf(t.FM)>=0?y:C.fd()==C.rr?o:G.jX(a.get("url"))}},F=function(){var a={};a[x.Fa]=0;a[x.ka]=1;a[x.eb]=2;a[x.cb]=3;a[x.FRONT]=4;a[x.BACK]=5;return a}(),H=function(){var a={};a[v.Fa]=0;a[v.ka]=1;a[v.vl]=0;return a}(),J=function(){var a={};a[v.Fa]=1;a[v.ka]=0;a[v.vl]=0;return a}(),O=function(){var a={};a[x.Fa]="r";a[x.ka]="l";a[x.eb]="u";a[x.cb]="d";a[x.FRONT]=
"f";a[x.BACK]="b";return a}(),K=function(){var a={};a[v.ka]="l";a[v.Fa]="r";a[v.vl]="b";return a}();return z});
define("di",["require"],function(){function a(a){this.Od=a;"CANVAS"==a.tagName?this.q=a:(this.q=document.createElement("canvas"),this.q.width=a.width,this.q.height=a.height);this.ga=this.q.getContext("2d");this.ga.globalCompositeOperation="copy";this.q!=a&&this.ga.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.ga,b,c)};a.prototype.sl=function(b,c){return a.sl(this.ga,b,c)};a.prototype.info=function(b,c){return a.info(this.ga,b,c)};a.prototype.dispose=function(){this.q!=this.Od&&(this.q.width=this.q.height=0);this.Od=this.q=this.ga=q};a.transparent=function(b,c,d){return!a.sl(b,c,d)};a.sl=function(a,c,d){return a.tagName&&"VIDEO"==a.tagName?o:0<b(a,c,d)[3]};a.info=
function(a,c,e){a=b(a,c,e);c=a[3];return{sl:0<c,opacity:c,color:"#"+d[a[0]]+d[a[1]]+d[a[2]]}};var c=document.createElement("canvas");c.width=c.height=1;var e=c.getContext("2d");e.globalCompositeOperation="copy";var d=function(){for(var a=Array(256),b=0;16>b;b++)a[b]="0"+b.toString(16);for(;256>b;b++)a[b]=b.toString(16);return a}();return a});
define("id","require,eD,hr,kd,dx,gB,iU,hf,jl,di,hT".split(","),function(a){function b(a,b,d,f,e,g){for(a=(a-b)/g;d+180<f;)f=f-360;for(;d-180>f;)f=f+360;d=(d-f)/g;return d=a<-0.1||a>0.1?c(e,d,Math.abs(1/(1500*a))):c(e,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("eD"),d=a("hr"),f=a("kd"),i=a("dx"),j=a("gB"),k=a("iU"),n=a("hf"),g=a("jl"),l=a("di"),r=a("hT"),a=e.extend(j,function(a){j.call(this);this.m=a;this.li.push(this.m);this.Xe=this.Xe.bind(this);this.zf=
i.sb("CeilingCapPanoramaOverlay",this.m)?"ceiling":"tripod";this.set("tag","Cap");this.set("pitch",this.zf=="tripod"?-90:90);this.si=y;this.it=this.nS=this.kB=m;this.ila=this.zf=="tripod"?1:-1;this.zd=this.Jg=this.fe=q});a.prototype.Mb=function(){j.prototype.Mb.call(this);this.fe=(new n(f.T)).Ui(this.Bk.bind(this));this.Jg=(new n(f.ic)).kl(this.Zs.bind(this));d.ed(this.m,["angle","distance","hfov","image","inertia","rotate"],this.Xe,o)};a.prototype.Xb=function(){this.zd&&this.zd.dispose();this.zd=
q;this.fe.dispose();this.Jg.dispose();d.Cd(this.m,["angle","distance","hfov","image","inertia","rotate"],this.Xe);j.prototype.Xb.call(this)};a.prototype.Xe=function(){this.set("angle",this.m.get("angle"));this.set("distance",this.m.get("distance"));this.set("hfov",this.m.get("hfov"));this.set("image",this.m.get("image"));this.set("inertia",this.m.get("inertia"));this.set("rotate",this.m.get("rotate"))};a.prototype.Fl=function(){var a=j.prototype.Fl.call(this);this.fe.vd(a);this.Jg.vd(a);return a};
a.prototype.G=function(a){this.iC();this.Yw(a);j.prototype.G.call(this,a)};a.prototype.iC=function(){if(this.C("image")){var a=g.bra(this.m,this.get("panoramaPixelsPerDegree"));this.set("textureSource",new k(a.get("url")));this.set("contentWidth",a.get("width"));this.set("contentHeight",a.get("height"))}};a.prototype.Bk=function(){this.zd&&this.zd.dispose();this.zd=new l(this.get("textureSource").Bd());this.trigger(f.Ub);this.trigger(f.T)};a.prototype.Zs=function(a,b){var c=0;b.Ao(function(a){(a=
b.Mi(a))&&(c=c+a.Ih)});this.trigger(new r(f.ic,c/b.Lc.length))};a.prototype.Yw=function(a){this.set("rendererYaw",a.ra);if(this.C("angle","inertia","rotate")||(this.get("rotate")||this.get("inertia"))&&this.C("rendererYaw")){var c=this.get("angle"),d=this.get("rotate"),f=this.get("inertia"),e=this.ila*a.ra;d&&(c=c+e);var g=0,k=c-e;if(this.kB!==m){if(f)if(d){g=b(e,this.it,c,this.kB,this.nS,a.pd);c=this.kB+g*a.pd}else{g=b(e,this.it,k,this.f5,this.nS,a.pd);k=this.f5+g*a.pd;c=k+e}this.kB!=c&&this.Oa()}this.f5=
k;this.kB=c;this.nS=g;this.it=e;this.set("rotationZ",-c)}};a.prototype.Ri=function(a){if(a.Gd==f.Sh){var b=!a.Og()&&this.Hq(a);if(b){a.Pq(this.m);this.m.get("useHandCursor")&&a.Qq(this.m);a.Bh(this.get("distance"))}if(this.si!=b){this.si=b;this.m.trigger(this.si?f.Ic:f.jc);a.ar()&&this.m.trigger(this.si?f.fk:f.Ef)}}else if(a.Gd==f.Rh&&!a.Og()&&this.Hq(a)){this.m.YC(f.U,o).length>1&&a.Ro(this.m);a.Bh(this.get("distance"));this.m.trigger(f.U)}};a.prototype.Hq=function(a){return this.tk(a.Ok).some(function(a){return this.zd&&
this.zd.sl(a.x,a.y)}.bind(this))};return a});
define("cK","require,eD,fB,eO,bN,dc,h,cz,gZ,hk,bc".split(","),function(a){var b=a("eD"),c=a("fB"),e=a("eO"),d=a("bN"),f=a("dc"),i=a("h"),j=a("cz"),k=a("gZ"),n=a("hk"),g=a("bc"),l=new THREE.Matrix4,r=Math.PI/180,p=b.extend(i,function(){i.call(this);this.set("tag","FlatPlane");this.set("distance",m);this.set("textureSource",q);this.set("width",100);this.set("height",100);this.set("offsetX",m);this.set("offsetY",m);this.set("yaw",0);this.set("pitch",0);this.set("roll",0);this.set("rotationZ",0);this.set("contentWidth",
100);this.set("contentHeight",100);this.set("scale",1);this.set("scaleMode",q);this.set("horizontalAlign",q);this.set("verticalAlign",q);this.set("materialConfig",this.yk=new d.Yj);this.yz=this.rO();this.Zk=new THREE.Matrix4;this.If=new THREE.Matrix4;this.ht=new THREE.Matrix4;this.wn=new THREE.Matrix4;this.hv=new THREE.Matrix4;this.Dw=new THREE.Matrix4;this.z_=new THREE.Matrix4;this.Sk=new THREE.Matrix4;this.v0=new THREE.Matrix4;this.Vy=new THREE.Matrix4;this.gz=new THREE.Matrix4;this.pp=new THREE.Matrix4;
this.Oe=new THREE.Matrix4;this.jv=new THREE.Matrix4;this.fs=new THREE.Vector3});p.or=0;p.Om=1;p.prototype.G=function(a){i.prototype.G.call(this,a);this.qC();this.pU()};p.prototype.qC=function(){if(this.C("textureSource")||this.C("materialConfig")&&!this.yk.isEqual(this.get("materialConfig"))){var a=this.get("meshGroup");if(a){a=f.Am(a)[p.Om];f.SW(a,this.jz());this.Ny()}}};p.prototype.pU=function(){if(this.C("width","height","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign")){var a=
k.vV(this.get("width"),this.get("height"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"));e.Raa(this.yz[p.Om],a.XD,a.aE,a.Uo,a.Vo)}};p.prototype.Fl=function(){return[p.or,p.Om].map(function(a){var b=a==p.or?this.mO():this.jz(),a=f.create(this.yz[a],b);n.ir(a,n.yl);n.jr(a,n.Tm);n.MD(a,c.vM);n.ZK(a,1);return a}.bind(this))};p.prototype.jz=function(){var a=this.get("textureSource")||new j;this.yk=this.get("materialConfig");
var b=d.cl(a.texture(),this.yk);n.Mm(b,a);return[b]};p.prototype.mO=function(){var a=new j,b=d.cl(a.texture());n.Mm(b,a);return[b]};p.prototype.rO=function(){return[e.TC(),e.TC()]};p.prototype.tk=function(a){return f.zV(this.get("meshGroup"),a)};p.prototype.Xw=function(a){var b=y;if(this.C("composedTranslationX","composedTranslationY","composedTranslationZ")){this.Zk.makeTranslation(-this.get("composedTranslationX")*0.5*e.Uf,this.get("composedTranslationY")*0.5*e.Uf,this.get("composedTranslationZ")*
0.5*e.Uf);b=o}if(this.C("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.If.makeRotationY(-a.ra*r);this.If.multiply(l.makeRotationX(-this.get("composedDeltaPitch")*r));this.If.multiply(l.makeRotationY(this.get("composedDeltaYaw")*r));this.If.multiply(l.makeRotationY(a.ra*r));b=o}if(this.C("yaw","pitch")){this.ht.makeRotationY(-this.get("yaw")*r);this.ht.multiply(l.makeRotationX(this.get("pitch")*r));b=o}this.C("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&
this.set("z",this.get("composedTranslationX")==0&&this.get("composedTranslationY")==0&&this.get("composedTranslationZ")==0&&this.get("distance")!==m?e.Ax(this.get("distance")):e.Yq());if(this.C("z")){this.wn.makeTranslation(0,0,-this.get("z"));b=o}if(b){this.jv.copy(this.Zk);this.jv.multiply(this.If);this.jv.multiply(this.ht);this.jv.multiply(this.wn)}var c=y;this.set("rendererYaw",a.ra);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.ld);this.set("rendererCameraFOV",a.ff);this.set("rendererWidth",
a.width);this.set("rendererHeight",a.height);a.ff&&this.C("z","rendererCameraFOV")&&this.set("rendererHeightZ",Math.tan(a.ff*r*0.5)*this.get("z")*2);if(a.ff&&(b||this.C("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR"))){if(a.Jb){this.hv.copy(this.jv);this.Dw.identity()}else{c=a.Yc;this.hv.copy(c.matrixWorld);this.fs.setFromMatrixPosition(c.matrixWorld);this.fs.applyMatrix4(this.jv);this.fs.applyMatrix4(c.matrixWorldInverse);
var d=-10,j=-10;if(this.fs.z<0){this.fs.applyMatrix4(c.projectionMatrix);d=this.fs.x*0.5;j=this.fs.y*0.5}var i=this.get("rendererHeightZ");this.Dw.makeTranslation(d*i*c.aspect,j*i,0)}c=o}if(this.C("roll")){this.Sk.makeRotationZ(this.get("roll")*r);c=o}if(a.ff&&(b||this.C("rendererHeight","inVR","rendererHeightZ","width","height","contentWidth","contentHeight","scale","scaleMode","horizontalAlign","verticalAlign","flipHorizontally","offsetX","offsetY"))){var b=a.Jb?1024:a.height,c=this.get("scale")*
this.get("rendererHeightZ")/b*(a.Jb?2:1),n=this.get("width"),i=this.get("height"),C=this.get("offsetX"),B=this.get("offsetY"),j=this.get("contentWidth"),G=this.get("contentHeight"),d=(this.get("flipHorizontally")?-1:1)*c,z=this.get("scaleMode"),b=this.get("horizontalAlign")||g.pc,a=this.get("verticalAlign")||g.$b,z=k.vV(n,i,j,G,z,b,a),G=d*n,j=c*i;this.Vy.makeScale(G,j,1);n=d*(n*0.5-C);i=c*(B-i*0.5);this.z_.makeTranslation(n,i,0);d=d*z.width;c=c*z.height;this.gz.makeScale(d,c,1);b=b==g.ka?-(G-d)*0.5:
b==g.Fa?(G-d)*0.5:0;a=a==g.eb?(j-c)*0.5:a==g.cb?-(j-c)*0.5:0;this.v0.makeTranslation(b+n,a+i,0);c=o}if(c){this.Oe.copy(this.hv);this.Oe.multiply(this.wn);this.Oe.multiply(this.Dw);this.Oe.multiply(this.Sk);this.pp.copy(this.Oe);this.pp.multiply(this.z_);this.pp.multiply(this.Vy);this.Oe.multiply(this.v0);this.Oe.multiply(this.gz);a=f.Am(this.get("meshGroup"));f.sm(a[p.or],this.pp);f.sm(a[p.Om],this.Oe)}};return p});
define("ei",["require","kd","eQ"],function(a){function b(a,b){this.kk=a;this.Hb=b;this.dd=y;this.bda();this.ida()}var c=a("kd"),e=a("eQ");b.prototype.clear=function(){this.yla();this.Fla();this.kk.set("state",e.K);this.Hb=this.kk=q};b.prototype.jf=function(a){this.dd!=a&&(this.dd=a,this.mJ())};b.prototype.H3=function(){this.Hb.oe(this.kk.get("state"))};b.prototype.G3=function(){this.mJ()};b.prototype.E3=function(){this.kk.trigger(c.Mr)};b.prototype.D3=function(){this.kk.trigger(c.Ia)};b.prototype.F3=
function(){this.kk.set("state",this.Hb.Pg())};b.prototype.mJ=function(){this.kk.get("autoplay")&&this.Hb.oe(this.dd?e.N:e.K)};b.prototype.bda=function(){this.kk.bind(c.L("state"),this.H3,this,o);this.kk.bind(c.L("autoplay"),this.G3,this,o)};b.prototype.yla=function(){this.kk.unbind(c.L("state"),this.H3,this,o);this.kk.unbind(c.L("autoplay"),this.G3,this,o)};b.prototype.ida=function(){this.Hb.bind(c.Mr,this.E3,this,o);this.Hb.bind(c.Ia,this.D3,this,o);this.Hb.bind(c.Um,this.F3,this,o)};b.prototype.Fla=
function(){this.Hb.unbind(c.Mr,this.E3,this,o);this.Hb.unbind(c.Ia,this.D3,this,o);this.Hb.unbind(c.Um,this.F3,this,o)};return b});
define("jv",["require","u"],function(a){function b(){this.mg=m;this.Pv=this.et=0;this.Z=o;this.i0=this.j7=this.h1=m;this.dd=y}var a=a("u"),c=Math.PI/180,e=a.browser()==a.Ug?[-0.5,0]:[0,0];b.prototype.YK=function(a){this.mg!=a&&(this.mg=a,this.Z=o)};b.prototype.XK=function(a){if(a<this.et+e[0]||a>this.et+e[1])this.et=a,this.Z=o};b.prototype.get=function(a,b){b!==m||(b=o);this.Z&&(this.G(),this.Z=y);var c=this.h1.get(a)||0,e=(this.j7.get(a)||0)-c;b&&(180<e?e-=360:-180>e&&(e+=360));return c+e*this.i0};
b.prototype.Ji=function(){return this.get("opacity",y)};b.prototype.cu=function(){var a=this.get("hfov")||this.get("vfov"),b=this.mg[0].get("hfov")||this.mg[0].get("vfov");return Math.tan(0.5*a*c)/Math.tan(0.5*b*c)};b.prototype.G=function(){for(var a=this.Pv,b,c=this.mg.length-1,e,k;;){b=Math.min(a+1,c);e=this.W1(a);k=this.W1(b);if(e<=this.et&&this.et<=k)break;if(e>this.et){if(0==a){b=a;break}a-=1}else{if(a==c){b=a;break}a+=1}}this.h1=this.mg[a];this.j7=this.mg[b];a=k-e;this.i0=0<a?(this.et-e)/a:
0};b.prototype.W1=function(a){return this.mg[a].get("timestamp")};return b});
define("jy",["require"],function(){function a(a){return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}function b(a,b){return Math.max(Math.abs(a[0]-b[0]),Math.abs(a[1]-b[1]),Math.abs(a[2]-b[2]))}var c={Dta:function(c,d,f){if(c&&0==c.indexOf("#")){var i=a(c),j=m,k=256;d.forEach(function(c){if(c&&0==c.indexOf("#")){var d=b(i,a(c));d<k&&(j=c,k=d)}});if(j&&k<=f)return j}return c},jK:function(c,d){return b(a(c),a(d))}};c.kW=a;return c});
define("W","require,eD,kd,eQ,bS,em,X".split(","),function(a){function b(a,b,c,d){this.MV=a;this.src=a.src;this.RK=b;this.RC=c;this.eK=d;this.Wt=this.MV.width/this.RC;this.Vt=this.MV.height/this.RK}var c=a("eD"),e=a("kd"),d=a("eQ");a("bS");var f=a("em"),i=a("X"),a=c.extend(f,function(a,c,k,i,n,t,u){f.call(this);this.we=new b(a,c,k,n);this.F5=t;this.ve=i;this.c1=u;this.gJ=this.ve*this.we.eK;this.q=document.createElement("canvas");this.q.width=this.we.Wt;this.q.height=this.we.Vt;this.ga=this.q.getContext("2d");
this.ga.globalCompositeOperation="copy";this.k=d.K;this.kI=this.Hl=0;this.yO=m;this.Se=j.Km(this.we);this.Se.bind(e.$,this.ah,this,o);this.ah()});a.prototype.oe=function(a){if(this.k!=a){if(a==d.Ac){if(this.k!=d.N)return}else if(a==d.N){if(this.k==d.K)this.Hl=this.kI=0}else if(a==d.K&&(this.Hl!=0||this.kI==0)){this.Hl=this.c1?0:this.gJ-0.1;this.ah()}this.k=a;i.Ha(this.ig,this);this.trigger(e.Um)}};a.prototype.Pg=Q("k");a.prototype.ig=function(a){if(this.k==d.N){this.Hl=Math.min(this.Hl+a,this.Se.Se.length*
this.ve);if(this.Hl>=this.gJ){this.kI++;if(this.F5&&this.kI==this.F5){this.oe(d.K);this.Hl=this.c1?0:this.gJ-0.1;this.trigger(e.Ia)}else{this.Hl=this.Hl%this.gJ;this.trigger(e.Mr)}}this.ah();this.k==d.N&&i.Ha(this.ig,this)}};a.prototype.clear=function(){this.oe(d.K);this.q.width=this.q.height=0;this.q=q;j.kta(this.we);this.we=q};a.prototype.ah=function(){var a=Math.floor(this.Hl/this.ve);if(this.yO!=a&&a<this.Se.Se.length){this.yO=a;this.ga.drawImage(this.Se.get(this.yO),0,0);this.trigger(e.$)}};
b.prototype.isEqual=function(a){return this.src==a.src&&this.RK==a.RK&&(this.RC=a.RC)&&(this.Wt=a.Wt)&&(this.Vt=a.Vt)&&(this.eK=a.eK)};var j={fg:[],Tca:2E3,Km:function(a){a=this.pf(a);a.mu++;this.V6(a);return a.frames},kta:function(a){a=this.pf(a);a.mu--;a.mu==0&&this.Cna(a)},pf:function(a){for(var b=0;b<this.fg.length;b++)if(this.fg[b].Tqa.isEqual(a))return this.fg[b];b={};b.Tqa=a;b.frames=new k(a);b.mu=0;this.fg.push(b);return b},Cna:function(a){this.V6(a);a.hV=setTimeout(function(){j.Ofa(a)},j.Tca)},
V6:function(a){if(a.hV){clearTimeout(a.hV);a.hV=q}},Ofa:function(a){this.fg.splice(this.fg.indexOf(a),1);a.frames.clear()}},k=c.extend(f,function(a){f.call(this);this.we=a;this.Se=[];n.add(this)});k.prototype.clear=function(){n.remove(this);this.Se.forEach(function(a){a.width=0;a.height=0});this.Se=q};k.prototype.get=function(a){return this.Se[a]};k.prototype.Nqa=function(){var a=this.Se.length%this.we.RC,b=Math.floor(this.Se.length/this.we.RC)%this.we.RK,c=document.createElement("canvas");c.width=
this.we.Wt;c.height=this.we.Vt;var d=c.getContext("2d");d.globalCompositeOperation="copy";d.drawImage(this.we.MV,a*this.we.Wt,b*this.we.Vt,this.we.Wt,this.we.Vt,0,0,this.we.Wt,this.we.Vt);k.Bga(c);this.Se.push(c);this.trigger(e.$)};k.Bga=function(){var a=document.createElement("canvas");a.width=1;a.height=1;var b=a.getContext("2d");return function(a){b.drawImage(a,0,0,1,1,0,0,1,1)}}();var n={fg:[],JT:q,add:function(a){this.fg.push(a);this.P5()},remove:function(a){this.fg=this.fg.filter(function(b){return b!=
a})},P5:function(){if(!this.JT)this.JT=setTimeout(function(){this.JT=q;this.QA()}.bind(this),40)},QA:function(){if(this.fg.length!=0){for(var a=(new Date).getTime()+10;(new Date).getTime()<a;){var b=this.fg.filter(function(a){return a.Se.length==0}),b=b.length>0?b[0]:this.fg[0];b.Nqa();if(b.Se.length==b.we.eK){this.fg.splice(this.fg.indexOf(b),1);if(this.fg.length==0)return}}this.P5()}}};return a});
define("gL","require,eD,hr,kd,dx,dc,cK,ei,jv,cz,jy,di,jl,W,fD".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("eD"),d=a("hr"),f=a("kd"),i=a("dx"),j=a("dc"),k=a("cK"),n=a("ei"),g=a("jv"),l=a("cz"),r=a("jy"),p=a("di"),s=a("jl"),t=a("W"),u=new (a("fD")),v=0,a=e.extend(k,function(a){k.call(this);this.set("tag","FlatHotspotImage");this.set("visible",y);this.set("playbackPositions",
q);this.set("image",q);this.set("beamEnabled",y);this.set("state",q);this.set("visibleOnStop",o);this.set("id","flat_hs_image_"+v++);this.m=a;this.li.push(this.m);this.Xe=this.Xe.bind(this);this.ni=this.ni.bind(this);this.Db=new g;this.Gs=this.nd=this.Wh=this.Hb=q;this.be=[];this.zd=q});a.prototype.Jaa=function(a){if(this.nd!=a){this.nd&&d.Cd(this.nd,["areas"],this.ni,o);(this.nd=a)&&d.ed(this.nd,["areas"],this.ni,o)}};a.prototype.Mb=function(){k.prototype.Mb.call(this);d.ed(this.m,["horizontalAlign",
"verticalAlign","scale","scaleMode","width","height","offsetX","offsetY","distance","playbackPositions","image"],this.Xe,o);this.nd&&d.ed(this.nd,["areas"],this.ni,o)};a.prototype.Xb=function(){this.cz();this.nd&&d.Cd(this.nd,["areas"],this.ni,o);d.Cd(this.m,["horizontalAlign","verticalAlign","scale","scaleMode","width","height","offsetX","offsetY","distance","playbackPositions","image"],this.Xe);k.prototype.Xb.call(this)};a.prototype.Xe=function(){this.set("horizontalAlign",this.m.get("horizontalAlign"));
this.set("verticalAlign",this.m.get("verticalAlign"));this.set("scale",this.m.get("scale"));this.set("scaleMode",this.m.get("scaleMode"));this.set("width",this.m.get("width"));this.set("height",this.m.get("height"));this.set("offsetX",this.m.get("offsetX",this.m.get("width")*0.5));this.set("offsetY",this.m.get("offsetY",this.m.get("height")*0.5));this.set("distance",this.m.get("distance"));this.set("playbackPositions",this.m.get("playbackPositions"));this.set("image",this.m.get("image"))};a.prototype.ni=
function(){var a=this.nd.get("areas",[]);this.Gs=i.sb("FlatHotspotPanoramaOverlayImage",this.m)?a.filter(b):a.filter(c);this.Gs.forEach(function(a){u.set(a,0)})};a.prototype.G=function(a){this.yw=a.ra;this.xw=a.pitch;this.Ct();this.iC();this.jC();k.prototype.G.call(this,a)};a.prototype.jC=function(){if(this.C("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){j.setAttribute(a,j.Du,this.get("panoramaId"));j.setAttribute(a,j.xX,this.get("id"))}.bind(this))}};
a.prototype.Ct=function(){if(this.C("playbackPositions","currentTime")){this.Db.YK(this.get("playbackPositions"));this.Db.XK(this.get("currentTime"));this.set("yaw",this.Db.get("yaw"));this.set("pitch",this.Db.get("pitch"));this.set("roll",this.Db.get("roll"));this.set("alpha",this.Db.Ji())}};a.prototype.iC=function(){if(this.C("image")){this.cz();var a=s.kra(this.m);this.set("textureSource",new l(a.get("url")));this.hN()}};a.prototype.ro=function(){this.C("visible","composedAlpha","image","state",
"visibleOnStop")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0&&(this.get("visibleOnStop")||this.get("state")!=PlaybackState.K));this.C("composedAlpha","meshGroup","inView")&&j.ud(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0);this.C("inView")&&this.m.trigger(this.get("inView")?f.Le:f.Df);this.Wh&&this.Wh.jf(this.get("inView"))};a.prototype.cz=function(){if(this.Wh){this.Wh.clear();this.Wh=q}if(this.Hb){this.Hb.unbind(f.$,this.Nz,this,o);this.Hb.unbind(f.Um,
this.Oz,this,o);this.Hb.clear();this.Hb=q}if(this.zd){this.zd.dispose();this.zd=q}if(this.get("textureSource")){this.ot();this.set("textureSource",q)}};a.prototype.Pp=function(){this.ot();var a,b=this.get("image");if(i.sb("AnimatedImageResource",b)){this.Hb=new t(this.get("textureSource").Bd(),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.Hb.q;this.Hb.bind(f.Um,this.Oz,
this,o);this.Hb.bind(f.$,this.Nz,this,o);this.Wh=new n(b,this.Hb);this.set("visibleOnStop",b.get("visibleOnStop"));this.set("state",this.Hb.Pg())}else{a=this.get("textureSource").Bd();this.zd=new p(a);this.get("textureSource").Tg(a);this.set("visibleOnStop",o);this.set("state",q)}this.ro();this.set("contentWidth",a.width);this.set("contentHeight",a.height);this.get("textureSource").Tg(a);this.trigger(f.Ub);this.trigger(f.T)};a.prototype.Pz=function(){this.ot();this.trigger(f.Ub);this.trigger(f.T)};
a.prototype.Oz=function(){this.set("state",this.Hb.Pg())};a.prototype.Nz=function(){this.get("textureSource").update();this.Oa()};a.prototype.hN=function(){var a=this.get("textureSource");a.bind(f.T,this.Pp,this,o);a.bind(f.xd,this.Pz,this,o)};a.prototype.ot=function(){var a=this.get("textureSource");a.unbind(f.T,this.Pp,this,o);a.unbind(f.xd,this.Pz,this,o)};a.prototype.Ri=function(a){if(a.Gd==f.Sh){var b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.Og()?this.zz(a):[];if(b.length>0){a.Pq(b);
this.Ij(b)&&a.Qq(b);a.Bh(this.get("distance"));var c=this.qa(b,a.cr());c&&a.MJ(c,this.Iq(a.cr()))}this.CI(b,a.ar(),a.cr())}else if(a.Gd==f.Rh){b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.Og()?this.zz(a):[];if(b.length>0){var d=y;b.forEach(function(a){a.trigger(f.U);!d&&a.YC(f.U,o).length>1&&(d=o)});a.Bh(this.get("distance"));d&&a.Ro(b)}}};a.prototype.Ds=function(a){return this.zd&&this.zd.Od==a.source?this.zd.info(a.x,a.y):p.info(a.source,a.x,a.y)};a.prototype.zz=function(a){var b=this.tk(a.Ok);
return b.length==0?[]:this.Gs.filter(function(a){var c=a.get("mapColor");return c=="any"?o:c=="image"?b.some(function(a){return this.Ds(a).sl}.bind(this)):c=="transparent"?b.every(function(a){return!this.Ds(a).sl}.bind(this)):c&&c[0]=="#"?b.some(function(a){return r.jK(this.Ds(a).color,c)<10}.bind(this)):y}.bind(this))};a.prototype.CI=function(a,b,c){this.be.forEach(function(d){if(a.indexOf(d)<0){var e=u.get(d)-1;u.set(d,e);if(e==0){d.trigger(f.jc,{NC:c});b&&d.trigger(f.Ef)}}});var d=this.be;this.be=
a;this.be.forEach(function(a){if(d.indexOf(a)<0){var e=(u.get(a)||0)+1;u.set(a,e);if(e==1){a.trigger(f.Ic,{NC:c});b&&a.trigger(f.fk)}}})};a.prototype.qa=function(a,b){for(var c="",d=a.length-1;d>=0&&c=="";d--){var f=a[d];if(!b||f.get("displayTooltipInTouchScreens")&&this.Ya.D.get("displayTooltipInTouchScreens")!==y)c=f.get("toolTip","")}return c};a.prototype.Iq=function(a){if(a){var a=this.get("yaw")-this.yw,b=this.get("pitch")-this.xw;return Math.sqrt(a*a+b*b)}return 0};a.prototype.Ij=function(a){for(var b=
this.nd.get("useHandCursor"),c=a.length-1;c>=0&&b===m;c--)b=a[c].get("useHandCursor");return!!b};return a});
define("iz","require,eD,hr,kd,gm,hf,u,jP,bq,hT".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("gm"),f=a("hf");a("u");var i=a("jP"),j=a("bq"),k=a("hT"),a=b.extend(d,function(a){d.call(this);this.m=a;this.li.push(this.m);this.sH=this.sH.bind(this);this.rH=this.rH.bind(this);this.tH=this.tH.bind(this);this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Hotspot");this.set("over",y);this.set("centerOver",y);this.set("enabled",o);this.set("visible",y);this.set("alpha",
0);this.set("inVR",y);this.set("overlaysEnabled",o);this.set("enabledInVR",o);this.set("enabledInStandard",o);this.set("interactionEnabled",o);this.set("centerOverDisplay",y);this.set("rollOverDisplay",y);this.set("loadingActive",y);this.sN=this.tN=this.zj=this.yc=this.Sd=q;this.be=[];this.rN=[];this.Ah=q});a.prototype.Mb=function(){this.Sd=(new f(e.T)).Ui(this.yA.bind(this));this.yc=(new f(e.ic)).kl(this.zA.bind(this));this.zj=(new f(e.Ub)).Ui(this.Mja.bind(this));this.tN=(new f(e.Ic)).kl(this.Gja.bind(this));
this.sN=(new f(e.jc)).kl(this.Fja.bind(this));d.prototype.Mb.call(this);c.ed(this.m,["items","rollOverItems","maps","rollOverMaps"],this.sH,o);c.ed(this.m,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.tH,o);c.ed(this.m,["areas"],this.rH,o)};a.prototype.Xb=function(){this.Tw([],this.be);this.TT([],this.rN);this.Sd.dispose();this.yc.dispose();this.zj.dispose();this.tN.dispose();
this.sN.dispose();c.Cd(this.m,["items","rollOverItems","maps","rollOverMaps"],this.sH);c.Cd(this.m,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.tH);c.Cd(this.m,["areas"],this.rH);d.prototype.Xb.call(this)};a.prototype.sH=function(){this.set("items",this.Ya.Eo(this.m.get("items",[])));this.set("rollOverItems",this.Ya.Eo(this.m.get("rollOverItems",[])));this.set("maps",this.Ya.Eo(this.m.get("maps",
[])));this.set("rollOverMaps",this.Ya.Eo(this.m.get("rollOverMaps",[])));var a=[].concat(this.get("maps"),this.get("items"),this.get("rollOverMaps"),this.get("rollOverItems"));a.forEach(function(a){a.Jaa(this.m)}.bind(this));this.Lh(a);this.Sd.vd(a);this.yc.vd(a);this.zj.vd(a)};a.prototype.tH=function(){this.set("fadeInDuration",this.m.get("fadeInDuration"));this.set("fadeOutDuration",this.m.get("fadeOutDuration"));this.set("enabled",this.m.get("enabled",o));this.set("enabledInVR",this.m.get("enabledInVR"));
this.set("enabledInStandard",this.m.get("enabledInStandard",o));this.set("enabledInSurfaceSelection",this.m.get("enabledInSurfaceSelection",o));this.set("centerOverDisplay",this.m.get("centerOverDisplay"));this.set("rollOverDisplay",this.m.get("rollOverDisplay",y));this.set("interactionEnabled",this.m.get("interactionEnabled",o))};a.prototype.rH=function(){var a=this.m.get("areas");this.tN.vd(a);this.sN.vd(a)};a.prototype.G=function(a){this.ro(a);d.prototype.G.call(this,a);this.Ft(a)};a.prototype.Ft=
function(a){this.set("inVR",a.Jb);this.set("surfaceSelection",a.SD);this.set("hotspotsEnabled",a.Hx);if(this.C("items","rollOverItems","maps","rollOverMaps","over","centerOver","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","surfaceSelection","enabledInSurfaceSelection","enabled","interactionEnabled","rollOverDisplay","centerOverDisplay")||this.S&&this.S.C("composedAlpha")){var b=a=y,c=this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||
this.get("enabledInStandard"))&&(!this.get("surfaceSelection")||this.get("enabledInSurfaceSelection"))&&this.S&&this.S.get("composedAlpha")>0,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")!==y&&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",y);a.set("beamEnabled",c&&b&&d)});var e=this.get("rollOverMaps").length==0;this.get("maps").forEach(function(a){a.set("visible",y);a.set("beamEnabled",c&&(e||!b)&&d)});this.set("visible",a)}if(this.C("visible")){var a=this.get("alpha"),k=this.get("visible")?1:0,u=(this.get("visible")?this.get("fadeInDuration"):
this.get("fadeOutDuration"))*Math.abs(a-k);this.Ah=new i("linear",[new j("alpha",a,k)],Math.max(u,1));this.Oa()}};a.prototype.ro=function(a){if(this.Ah){if(this.Ah.me())this.Ah=q;else{this.Ah.Ua(a.pd);this.set("alpha",this.Ah.nb("alpha"))}this.Oa()}};a.prototype.yA=function(){this.bl();this.trigger(e.T)};a.prototype.Mja=function(){this.bl();this.trigger(e.Ub)};a.prototype.zA=function(){this.bl()};a.prototype.bl=function(){var a=0;this.yc.Ao(function(b){var c=0,d;this.Sd.Mi(b)?c=100:(d=this.yc.Mi(b))&&
(c=d.Ih);a=a+c}.bind(this));this.trigger(new k(e.ic,a/this.yc.Lc.length))};a.prototype.Gja=function(a){a.data.NC?this.TT([a.source],[]):this.Tw([a.source],[])};a.prototype.Fja=function(a){a.data.NC?this.TT([],[a.source]):this.Tw([],[a.source])};a.prototype.Tw=function(a,b){this.G7(this.be,a,b);this.set("over",this.be.length>0)};a.prototype.TT=function(a,b){this.G7(this.rN,a,b);this.set("centerOver",this.rN.length>0)};a.prototype.G7=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("gI","require,eD,hr,kd,eQ,dx,dc,gB,ei,jv,cz,jy,di,jl,W,fD".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("eD"),d=a("hr"),f=a("kd"),i=a("eQ"),j=a("dx"),k=a("dc"),n=a("gB"),g=a("ei"),l=a("jv"),r=a("cz"),p=a("jy"),s=a("di"),t=a("jl"),u=a("W"),v=new (a("fD")),x=0,a=e.extend(n,function(a){n.call(this);this.set("tag","HotspotImage");this.set("visible",y);
this.set("playbackPositions",q);this.set("image",q);this.set("beamEnabled",y);this.set("state",q);this.set("visibleOnStop",o);this.set("id","hs_image_"+x++);this.m=a;this.li.push(this.m);this.Xe=this.Xe.bind(this);this.ni=this.ni.bind(this);this.lH=this.lH.bind(this);this.Db=new l;this.Gs=this.nd=this.Wh=this.Hb=q;this.be=[];this.za=this.zd=q});a.prototype.Jaa=function(a){if(this.nd!=a){this.nd&&d.Cd(this.nd,["areas"],this.ni,o);(this.nd=a)&&d.ed(this.nd,["areas"],this.ni,o)}};a.prototype.Mb=function(){n.prototype.Mb.call(this);
d.ed(this.m,["horizontalAlign","verticalAlign","scale","scaleMode","distance","playbackPositions","image"],this.Xe,o);this.nd&&d.ed(this.nd,["areas"],this.ni,o)};a.prototype.Xb=function(){this.CI([]);this.cz();this.nd&&d.Cd(this.nd,["areas"],this.ni,o);d.Cd(this.m,["horizontalAlign","verticalAlign","scale","scaleMode","distance","playbackPositions","image"],this.Xe);n.prototype.Xb.call(this)};a.prototype.Xe=function(){this.set("horizontalAlign",this.m.get("horizontalAlign"));this.set("verticalAlign",
this.m.get("verticalAlign"));this.set("scaleMode",this.m.get("scaleMode"));this.set("distance",this.m.get("distance"));this.set("scale",this.m.get("scale"));this.set("playbackPositions",this.m.get("playbackPositions"));this.set("image",this.m.get("image"))};a.prototype.ni=function(){var a=this.nd.get("areas",[]);this.Gs=j.sb("HotspotPanoramaOverlayImage",this.m)?a.filter(b):a.filter(c);this.Gs.forEach(function(a){v.set(a,0)})};a.prototype.G=function(a){this.yw=a.ra;this.xw=a.pitch;this.Ct();this.iC();
this.jC();n.prototype.G.call(this,a)};a.prototype.jC=function(){if(this.C("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){k.setAttribute(a,k.Du,this.get("panoramaId"));k.setAttribute(a,k.xX,this.get("id"))}.bind(this))}};a.prototype.Ct=function(){if(this.C("playbackPositions","currentTime")){this.Db.YK(this.get("playbackPositions"));this.Db.XK(this.get("currentTime"));this.set("yaw",this.Db.get("yaw"));this.set("pitch",this.Db.get("pitch"));this.set("roll",
this.Db.get("roll"));this.set("rotationX",this.Db.get("rotationX"));this.set("rotationY",this.Db.get("rotationY"));this.set("hfov",this.Db.get("hfov"));this.set("vfov",this.Db.get("vfov"));this.set("alpha",this.Db.Ji())}};a.prototype.iC=function(){if(this.C("image")){this.cz();var a=t.pra(this.m,this.get("panoramaPixelsPerDegree"));this.set("textureSource",new r(a.get("url")));this.hN();(this.za=this.get("image"))&&this.jda()}};a.prototype.ro=function(){this.C("visible","composedAlpha","image","state",
"visibleOnStop")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0&&(this.get("visibleOnStop")||this.get("state")!=i.K));this.C("composedAlpha","meshGroup","inView")&&k.ud(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0);this.C("inView")&&this.m.trigger(this.get("inView")?f.Le:f.Df);this.Wh&&this.Wh.jf(this.get("inView"))};a.prototype.lH=function(){this.za&&j.sb("AnimatedImageResource",this.za)?this.set("visibleOnStop",this.za.get("visibleOnStop")):this.set("visibleOnStop",
o)};a.prototype.cz=function(){if(this.Wh){this.Wh.clear();this.Wh=q}if(this.Hb){this.Hb.unbind(f.$,this.Nz,this,o);this.Hb.unbind(f.Um,this.Oz,this,o);this.Hb.clear();this.Hb=q}if(this.zd){this.zd.dispose();this.zd=q}if(this.get("textureSource")){this.ot();this.set("textureSource",q)}if(this.za){this.Gla();this.za=q}};a.prototype.Pp=function(){this.ot();var a,b=this.get("image");if(j.sb("AnimatedImageResource",b)){this.Hb=new u(this.get("textureSource").Bd(),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.Hb.q;this.Hb.bind(f.Um,this.Oz,this,o);this.Hb.bind(f.$,this.Nz,this,o);this.Wh=new g(b,this.Hb);this.set("visibleOnStop",b.get("visibleOnStop"));this.set("state",this.Hb.Pg())}else{a=this.get("textureSource").Bd();this.zd=new s(a);this.set("visibleOnStop",o);this.set("state",q)}this.ro();this.set("contentWidth",a.width);this.set("contentHeight",a.height);this.get("textureSource").Tg(a);
this.trigger(f.Ub);this.trigger(f.T)};a.prototype.Pz=function(){this.ot();this.trigger(f.Ub);this.trigger(f.T)};a.prototype.Oz=function(){this.set("state",this.Hb.Pg())};a.prototype.Nz=function(){this.get("textureSource").update();this.Oa()};a.prototype.hN=function(){var a=this.get("textureSource");a.bind(f.T,this.Pp,this,o);a.bind(f.xd,this.Pz,this,o)};a.prototype.ot=function(){var a=this.get("textureSource");a.unbind(f.T,this.Pp,this,o);a.unbind(f.xd,this.Pz,this,o)};a.prototype.jda=function(){d.ed(this.za,
["visibleOnStop"],this.lH,o)};a.prototype.Gla=function(){d.Cd(this.za,["visibleOnStop"],this.lH,o)};a.prototype.Ri=function(a){if(a.Gd==f.Sh){var b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.Og()?this.zz(a):[];if(b.length>0){a.Pq(b);this.Ij(b)&&a.Qq(b);a.Bh(this.get("distance"));var c=this.qa(b,a.cr());c&&a.MJ(c,this.Iq(a.cr()))}this.CI(b,a.ar(),a.cr())}else if(a.Gd==f.Rh){b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.Og()?this.zz(a):[];if(b.length>0){var d=y;b.forEach(function(a){a.trigger(f.U);
!d&&a.YC(f.U,o).length>1&&(d=o)});a.Bh(this.get("distance"));d&&a.Ro(b)}}};a.prototype.Ds=function(a){return this.zd&&this.zd.Od==a.source?this.zd.info(a.x,a.y):s.info(a.source,a.x,a.y)};a.prototype.zz=function(a){var b=this.tk(a.Ok);return b.length==0?[]:this.Gs.filter(function(a){var c=a.get("mapColor");return c=="any"?o:c=="image"?b.some(function(a){return this.Ds(a).sl}.bind(this)):c=="transparent"?b.every(function(a){return!this.Ds(a).sl}.bind(this)):c&&c[0]=="#"?b.some(function(a){return p.jK(this.Ds(a).color,
c)<10}.bind(this)):y}.bind(this))};a.prototype.CI=function(a,b,c){this.be.forEach(function(d){if(a.indexOf(d)<0){var e=v.get(d)-1;v.set(d,e);if(e==0){d.trigger(f.jc,{NC:c});b&&d.trigger(f.Ef)}}});var d=this.be;this.be=a;this.be.forEach(function(a){if(d.indexOf(a)<0){var e=(v.get(a)||0)+1;v.set(a,e);if(e==1){a.trigger(f.Ic,{NC:c});b&&a.trigger(f.fk)}}})};a.prototype.qa=function(a,b){for(var c="",d=a.length-1;d>=0&&c=="";d--){var f=a[d];if(!b||f.get("displayTooltipInTouchScreens")&&this.Ya.D.get("displayTooltipInTouchScreens")!==
y)c=f.get("toolTip","")}return c};a.prototype.Iq=function(a){if(a){var a=this.get("yaw")-this.yw,b=this.get("pitch")-this.xw;return Math.sqrt(a*a+b*b)}return 0};a.prototype.Ij=function(a){for(var b=this.nd.get("useHandCursor"),c=a.length-1;c>=0&&b===m;c--)b=a[c].get("useHandCursor");return!!b};return a});
define("fg",["require","eH","a"],function(a){function b(a,b,e){this.td=a||new c(0,0,0);this.Sf=b||new c(1,0,0);this.dr=e||new c(0,1,0)}var c=a("eH"),e=a("a");b.prototype.clone=function(){return new b(this.td.clone(),this.Sf.clone(),this.dr.clone())};b.prototype.apply=function(a){a.ex(this.td);a.ex(this.Sf);a.ex(this.dr)};b.prototype.intersection=function(a,b){var i=e.Wq(a.td,a.Sf),j=e.Wq(this.td,a.td),k=e.Wq(this.td,this.Sf);k.zqa(e.Wq(this.td,this.dr));i=i.St(k);if(!(0==i||b&&0>i))return j=-k.St(j)/
i,new c(a.td.x+(a.Sf.x-a.td.x)*j,a.td.y+(a.Sf.y-a.td.y)*j,a.td.z+(a.Sf.z-a.td.z)*j)};b.prototype.NK=function(a,b){var i=e.Wq(this.td,this.Sf),j=e.Wq(this.td,this.dr),k=e.Wq(this.td,a),n=i.BV(),g=j.BV();return b?new c(k.St(i)/(n*n),k.St(j)/(g*g),0):new c(k.St(i)/n,k.St(j)/g,0)};return b});
define("dD",[],function(){function a(a){a%=e;0>a&&(a+=e);return i[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.He=this.Ge=this.Fe=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.Fe=this.Fe;a.Ge=this.Ge;
a.He=this.He;return a};c.prototype.concat=function(a){var b=this.m11,c=this.m12,d=this.m13,f=this.m21,e=this.m22,j=this.m23,i=this.m31,u=this.m32,v=this.m33,x=this.Fe,w=this.Ge,A=this.He;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=f*a.m11+e*a.m21+j*a.m31;this.m22=f*a.m12+e*a.m22+j*a.m32;this.m23=f*a.m13+e*a.m23+j*a.m33;this.m31=i*a.m11+u*a.m21+v*a.m31;this.m32=i*a.m12+u*a.m22+v*a.m32;this.m33=i*a.m13+u*a.m23+v*a.m33;this.Fe=x*a.m11+w*
a.m21+A*a.m31+a.Fe;this.Ge=x*a.m12+w*a.m22+A*a.m32+a.Ge;this.He=x*a.m13+w*a.m23+A*a.m33+a.He};c.prototype.translate=function(a,b,c){this.Fe+=a;this.Ge+=b;this.He+=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.Fe*=a;this.Ge*=b;this.He*=c};c.prototype.Lm=function(c){var d=a(c),c=b(c),f=this.m12*d+this.m13*c,e=this.m22*c-this.m23*d,j=this.m22*d+this.m23*c,i=this.m32*c-this.m33*d,s=this.m32*d+this.m33*
c,t=this.Ge*c-this.He*d,u=this.Ge*d+this.He*c;this.m12=this.m12*c-this.m13*d;this.m13=f;this.m22=e;this.m23=j;this.m32=i;this.m33=s;this.Ge=t;this.He=u};c.prototype.Po=function(c){var d=a(c),c=b(c),f=-this.m11*d+this.m13*c,e=this.m21*c+this.m23*d,j=-this.m21*d+this.m23*c,i=this.m31*c+this.m33*d,s=-this.m31*d+this.m33*c,t=this.Fe*c+this.He*d,u=-this.Fe*d+this.He*c;this.m11=this.m11*c+this.m13*d;this.m13=f;this.m21=e;this.m23=j;this.m31=i;this.m33=s;this.Fe=t;this.He=u};c.prototype.Qo=function(c){var d=
a(c),c=b(c),f=this.m11*d+this.m12*c,e=this.m21*c-this.m22*d,j=this.m21*d+this.m22*c,i=this.m31*c-this.m32*d,s=this.m31*d+this.m32*c,t=this.Fe*c-this.Ge*d,u=this.Fe*d+this.Ge*c;this.m11=this.m11*c-this.m12*d;this.m12=f;this.m21=e;this.m22=j;this.m31=i;this.m32=s;this.Fe=t;this.Ge=u};c.prototype.rotate=function(a,b,c){this.Lm(a);this.Po(b);this.Qo(c)};c.prototype.k$=function(){var a=this.dra();if(0==a)return y;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.Fe=-(b.Fe*this.m11+b.Ge*this.m21+b.He*this.m31);this.Ge=-(b.Fe*this.m12+b.Ge*this.m22+b.He*this.m32);this.He=-(b.Fe*this.m13+b.Ge*this.m23+b.He*this.m33);return o};c.prototype.dra=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.ex=function(a){var b=a.x*this.m12+a.y*this.m22+a.z*this.m32+this.Ge,c=a.x*this.m13+a.y*this.m23+a.z*this.m33+this.He;a.x=a.x*this.m11+a.y*this.m21+a.z*this.m31+this.Fe;a.y=b;a.z=c};for(var e=2*Math.PI,d=18E4/e,f=new Float32Array(180001),i=new Float32Array(180001),j=0;18E4>j;j++)f[j]=Math.cos(j/d),i[j]=Math.sin(j/d);f[18E4]=f[0];i[18E4]=i[0];return c});
define("cG","require,hC,fJ,cq,eH,fg,dD,iw".split(","),function(a){var b=a("hC"),c=a("fJ"),e=a("cq"),d=a("eH"),f=a("fg"),i=a("dD"),j=a("iw"),k=Math.PI/180,n=180/Math.PI,g=new i,l=new c,r=new f,p=new d;return{get:function(a,b,c,f,e,j,i,n){a=a*k;b=b*k;b=new d(Math.sin(-a)*Math.cos(b),Math.sin(b),Math.cos(-a)*Math.cos(b));g.identity();g.Po(c*k);g.Qo(e*k);g.Lm(f*k);b.apply(g);if(b.z>0){l.RD(i);l.Haa(n);l.uu(j*k);l.project(b);return b}return q},wva:function(a,b,c){g.identity();g.Lm(-c.Ib()*k);g.Qo(-c.rd()*
k);g.Po(-c.Eb()*k);p.set(a,b,0);a=c.unproject(p).E9();a.apply(g);return{ra:a.Eb()*n,pitch:a.Ib()*n}},Bxa:function(a,c,d,f,e,l,i,n,B,G,z,F,H,J){J||(J=j.Sm);H||(H=b.Qj(F,G,z));F||(F=b.Nm(H,G,z));var O=G*0.5/Math.tan(F*0.5*k),K=O*Math.tan(F*0.5*k)*2,M=O*Math.tan(H*0.5*k)*2;r.td.set(+K*0.5,+M*0.5,0);r.Sf.set(-K*0.5,+M*0.5,0);r.dr.set(+K*0.5,-M*0.5,0);g.identity();g.Qo(-B*k);g.Lm(-i*k);g.Po(n*k);g.translate(0,0,O);g.Qo(-l*k);g.Lm(-e*k);g.Po(-f*k);g.Po(d.Eb()*k);g.Qo(d.rd()*k);g.Lm(d.Ib()*k);r.apply(g);
p.set(a,c,0);e=r.intersection(d.unproject(p));f={x:m,y:m,xScaled:m,yScaled:m};if(e&&e.z>0){e=r.NK(e);f.xScaled=f.x=e.x/K;f.yScaled=f.y=e.y/M}if(J!=j.Sm){var L,D;switch(J){case j.qe:L=Math.min(b.Nm(H,G,z),F);D=Math.min(b.Qj(F,G,z),H);break;case j.xl:L=Math.max(b.Nm(H,G,z),F);D=Math.max(b.Qj(F,G,z),H);break;case j.ek:L=F;D=b.Qj(F,G,z);break;case j.yg:L=b.Nm(H,G,z);D=H}if(L!=F||D!=H){K=O*Math.tan(L*0.5*k)*2;M=O*Math.tan(D*0.5*k)*2;r.td.set(+K*0.5,+M*0.5,0);r.Sf.set(-K*0.5,+M*0.5,0);r.dr.set(+K*0.5,-M*
0.5,0);r.apply(g);p.set(a,c,0);if((e=r.intersection(d.unproject(p)))&&e.z>0){e=r.NK(e);f.xScaled=e.x/K;f.yScaled=e.y/M}}}return f},Ewa:function(a,b,c,f,j,l,i){i=j*0.5/Math.tan(i*0.5*k);r.td.set(+j*0.5,+l*0.5,i);r.Sf.set(-j*0.5,+l*0.5,i);r.dr.set(+j*0.5,-l*0.5,i);g.identity();g.Qo(-f*k);g.Lm(-c*k);g.Po(-b*k);g.Po(a.Eb()*k);g.Qo(a.rd()*k);g.Lm(a.Ib()*k);r.apply(g);a=new e(new d(0,0,0),new d(0,0,1));if((a=r.intersection(a))&&a.z>0){a=r.NK(a);return{x:a.x/j,y:a.y/l}}return q}}});
define("dK",["require","eD","eO","h","dc"],function(a){var b=a("eD"),c=a("eO"),e=a("h"),d=a("dc"),f=new THREE.Matrix4,i=Math.PI/180,a=b.extend(e,function(){e.call(this);this.set("tag","Frame");this.Zk=new THREE.Matrix4;this.If=new THREE.Matrix4;this.zq=new THREE.Matrix4;this.ji=new THREE.Matrix4});a.prototype.G=function(a){e.prototype.G.call(this,a)};a.prototype.Xw=function(a){var b=y;this.C("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.Zk.makeTranslation(0.5*-this.get("composedTranslationX")*
c.Uf,0.5*this.get("composedTranslationY")*c.Uf,0.5*this.get("composedTranslationZ")*c.Uf),b=o);this.C("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.If.makeRotationY(-a.ra*i),this.If.multiply(f.makeRotationX(-this.get("composedDeltaPitch")*i)),this.If.multiply(f.makeRotationY(this.get("composedDeltaYaw")*i)),this.If.multiply(f.makeRotationY(a.ra*i)),b=o);this.C("flipHorizontally")&&(this.zq.makeScale(this.get("flipHorizontally")?-1:1,1,1),b=o);if(b||this.C("meshGroup"))this.ji.copy(this.Zk),
this.ji.multiply(this.If),this.ji.multiply(this.zq),d.sm(this.get("meshGroup"),this.ji)};return a});
define("kk",["require","eD","hO","jx","iU"],function(a){var b=a("eD"),c=a("hO"),e=a("jx"),d=a("iU"),a=b.extend(d,function(a,b,c,e,n){d.call(this,a.get("url"));this.ba=b;this.ca=c;this.W=e;this.da=n;this.bja=0!=this.ba||0!=this.ca||this.W!=a.get("width")||this.da!=a.get("height")});a.prototype.uf=function(){this.bja?(this.Hfa(),this.vn(),this.ew(!!this.Od)):d.prototype.uf.call(this)};a.prototype.OB=function(){d.prototype.OB.call(this);this.WO()};a.prototype.Lq=function(){d.prototype.Lq.call(this);
this.WO()};d.prototype.dispose=function(){d.prototype.dispose.call(this);this.WO()};a.prototype.Hfa=function(){var a=c.Bd(this.Qb);this.Od=e.wqa(a,this.ba,this.ca,this.W,this.da)};a.prototype.WO=function(){this.Od&&(e.YJ(this.Od),this.Od=q)};return a});
define("eo","require,dx,cF,iO,fh,cz,iU,kk,eO,bN,dc,bB,jl,hk,u".split(","),function(a){var b=a("dx"),c=a("cF"),e=a("iO"),d=a("fh"),f=a("cz"),i=a("iU"),j=a("kk"),k=a("eO"),n=a("bN"),g=a("dc"),l=a("bB"),r=a("jl"),p=a("hk"),s=a("u"),t={sqa:function(a,b){var c=l.get(a);switch(c){case l.Nr:case l.bp:case l.Qh:return this.rfa(c,a,b);case l.zl:case l.Or:case l.Qu:return this.tfa(c,a,b)}},yqa:function(a,b){var d=a.get("hfov"),f=a.get("vfov"),e=a.get("pitch"),j=a.get("width"),l=b.get("posterURL"),r=new i(l),
l=n.VJ(r.texture());p.Mm(l,r);l.visible=y;f=k.eV(d,f,e,1,1);f=g.create(f,[l]);p.PD(f,j/d);f.layers.set(c.vl);return f},xqa:function(a,b){var d=a.get("hfov"),e=a.get("vfov"),j=a.get("pitch"),l=a.get("width"),i=b.get("url"),r=new f,i=n.cl(r.texture(),new n.Yj(i));p.Mm(i,r);i.visible=o;e=k.eV(d,e,j,1,1);e=g.create(e,[i]);p.PD(e,l/d);e.layers.set(c.vl);return e},uqa:function(a){var b=[e.Fa,e.ka,e.eb,e.cb,e.FRONT,e.BACK].map(function(){var b=new f;b.Tg(t.Xha(a));var c=n.cl(b.texture());p.Mm(c,b);c.visible=
o;return c}),d=k.P8(1,1),b=g.create(d,b);p.PD(b,256/90);b.layers.set(c.vl);return b},mT:{},Xha:function(a){if(!t.mT[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);t.mT[a]=b}return t.mT[a]},rfa:function(a,f,j){var i=a==l.Nr?[c.Fa,c.ka]:[c.vl],n=f.get("flipImageHorizontally");n&&(i=i.reverse());var s=a==l.Qh?1:6*i.length,t=j.get("width")/s,G=j.get("height"),z,F;if(b.sb("TiledImageResourceLevel",j)){z=j.get("colCount",
s)/s;F=j.get("rowCount",1)}else if(this.I5(a,j)){z=Math.ceil(t/d.Wm());F=Math.ceil(G/d.Wm())}else F=z=1;var H=[e.Fa,e.ka,e.eb,e.cb,e.FRONT,e.BACK];return i.map(function(c,d){var e=Array(6);H.forEach(function(g,i){var p=r.uV(f,j,g);if(b.sb("TiledImageResourceLevel",j))e[k.$Y.indexOf(g)]=this.qfa(p,a,c,g,n,z,F);else{var s=a==l.Qh?0:Math.round((d*H.length+i)*t),w=z>1||F>1||a!=l.Qh?t>256?1:0.5:0;e[k.$Y.indexOf(g)]=this.z0(p,z,F,s,0,t,G,w)}}.bind(this));var i=Array.prototype.concat.apply([],e),s=k.P8(z,
F),i=g.create(s,i);i.layers.set(c);p.PD(i,t/90);return i}.bind(this))},tfa:function(a,b,f){var e=a==l.zl?[c.vl]:[c.ka,c.Fa];b.get("flipImageHorizontally")&&(e=e.reverse());var j=f.get("width"),i=f.get("height"),n=b.get("hfov"),r=b.get("vfov"),s=b.get("pitch"),t=Math.round(j/n/(i/r)),H=Math.round(j/t),J=Math.round(i/Math.round(i/r/(j/n))),O=(a=this.I5(a,f))?Math.ceil(H/d.Wm()):1,K=a?Math.ceil(J/d.Wm()):1;return e.map(function(a,b){var c=this.z0(f,O,K,b%t*H,Math.floor(b/t)*J,H,J),d=k.eV(n,r,s,O,K),
c=g.create(d,c);c.layers.set(a);p.PD(c,H/n);return c}.bind(this))},I5:function(a,b){switch(a){case l.Nr:case l.bp:case l.Or:case l.Qu:return o;case l.Qh:return y;case l.zl:return s.H9().Gsa<Math.max(b.get("width"),b.get("height"))?o:d.Li()||s.Qa()?y:s.fd()==s.rr?o:y}},z0:function(a,b,c,d,e,g,k,l){l||(l=0);for(var i=[],r=0;r<c;r++)for(var s=e+l+(k-2*l)*r/c,t=e+l+(k-2*l)*(r+1)/c,O=0;O<b;O++){var K=d+l+(g-2*l)*O/b,M=d+l+(g-2*l)*(O+1)/b,K=a?new j(a,K,s,M-K,t-s):new f,M=n.VJ(K.texture());p.Mm(M,K);i.push(M)}return i},
qfa:function(a,b,c,d,e,g,j){for(var k=[],l=0;l<j;l++)for(var s=0;s<g;s++){var t;t=a?new i(r.C9(a,b,c,d,e,j,l,s)):new f;var J=n.VJ(t.texture());p.Mm(J,t);J.visible=y;k.push(J)}return k}};return t});
define("cr","require,eD,kd,dK,hf,eo,hk".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("dK"),d=a("hf"),f=a("eo"),i=a("hk"),a=b.extend(e,function(a){e.call(this);this.yd=a;this.set("tag","SolidFrame");this.fe=q});a.prototype.Mb=function(){this.fe=(new d(c.T)).Ui(this.uf.bind(this));e.prototype.Mb.call(this)};a.prototype.Xb=function(){this.fe.dispose();e.prototype.Xb.call(this)};a.prototype.Fl=function(){var a=[f.uqa(this.yd)];i.jr(a,i.Tm);i.ir(a,i.yl);this.fe.vd(a);return a};a.prototype.uf=function(){this.trigger(c.Ub);
this.trigger(c.T)};return a});
define("gO","require,eD,fB,eO,bN,dc,M,h,cz,hk".split(","),function(a){var b=a("eD"),c=a("fB"),e=a("eO"),d=a("bN"),f=a("dc");a("M");var i=a("h"),j=a("cz"),k=a("hk");new THREE.Matrix4;var n=Math.PI/180,a=b.extend(i,function(){i.call(this);this.set("tag","Sprite");this.set("distance",m);this.set("textureSource",q);this.set("width",100);this.set("height",100);this.set("offsetX",m);this.set("offsetY",m);this.set("centerX",0);this.set("centerY",0);this.set("roll",0);this.set("materialConfig",this.yk=new d.Yj);
this.Oga=e.TC();this.wn=new THREE.Matrix4;this.hv=new THREE.Matrix4;this.Dw=new THREE.Matrix4;this.j3=new THREE.Matrix4;this.Sk=new THREE.Matrix4;this.zq=new THREE.Matrix4;this.ji=new THREE.Matrix4});a.prototype.G=function(a){i.prototype.G.call(this,a);this.qC()};a.prototype.qC=function(){if(this.C("textureSource")||this.C("materialConfig")&&!this.yk.isEqual(this.get("materialConfig"))){var a=this.get("meshGroup");a&&f.Rf(a,function(a){f.SW(a,this.qv())}.bind(this))}};a.prototype.Fl=function(){var a=
f.create(this.Oga,this.qv());k.ir(a,k.yl);k.jr(a,k.Tm);k.MD(a,c.vM);k.ZK(a,1);return[a]};a.prototype.qv=function(){var a=this.get("textureSource")||new j;this.yk=this.get("materialConfig");var b=d.cl(a.texture(),this.yk);k.Mm(b,a);return[b]};a.prototype.tk=function(a){return f.zV(this.get("meshGroup"),a)};a.prototype.Xw=function(a){var b=y;this.set("rendererYaw",a.ra);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.ld);this.set("rendererCameraFOV",a.ff);this.set("rendererWidth",a.width);
this.set("rendererHeight",a.height);this.set("inVR",a.Jb);this.C("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&this.set("z",this.get("composedTranslationX")==0&&this.get("composedTranslationY")==0&&this.get("composedTranslationZ")==0&&this.get("distance")!==m?e.Ax(this.get("distance")):e.Yq());if(this.C("z")){this.wn.makeTranslation(0,0,-this.get("z"));centerMatrixChanged=o}a.ff&&this.C("z","rendererCameraFOV")&&this.set("rendererHeightZ",Math.tan(a.ff*n*0.5)*this.get("z")*
2);if(a.Yc&&this.C("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR","centerX","centerY")){this.hv.copy(a.Yc.matrixWorld);var b=this.get("rendererHeightZ"),c=b*a.Yc.aspect,c=(this.get("centerX")-a.width*0.5)*c/a.width*0.5,b=(a.height*0.5-this.get("centerY"))*b/a.height*0.5;this.Dw.makeTranslation(c,b,0);b=o}if(this.C("roll")){this.Sk.makeRotationZ(this.get("roll")*n);b=o}if(a.ff&&(centerMatrixChanged||this.C("rendererHeight",
"inVR","rendererHeightZ","width","height","flipHorizontally"))){b=a.Jb?512/a.height:1;a=(this.get("flipHorizontally")?-1:1)*this.get("width")*b;b=this.get("height")*b;this.zq.makeScale(a,b,1);b=o}if(this.C("width","height","offsetX","offsetY")){a=0.5-this.get("offsetX")/this.get("width");b=this.get("offsetY")/this.get("height")-0.5;this.j3.makeTranslation(a,b,0);b=o}if(b){this.ji.copy(this.hv);this.ji.multiply(this.wn);this.ji.multiply(this.Dw);this.ji.multiply(this.Sk);this.ji.multiply(this.zq);
this.ji.multiply(this.j3);f.sm(this.get("meshGroup"),this.ji)}};return a});
define("eI",["require","jy"],function(a){function b(a,c,f,i,j,k){this.Fj=c;this.q=document.createElement("canvas");this.q.width=this.Fj;this.q.height=this.Fj;switch(a){case b.oy:this.dga(f,i,j,k);break;case b.vE:this.ega(f,i,j,k)}}var c=a("jy");b.prototype.Fc=Q("Fj");b.prototype.qd=Q("Fj");b.prototype.dga=function(a,b,f,i){for(var j=0.5*this.Fj,k=0.5*this.Fj,n=0.5*this.Fj,g=this.q.getContext("2d"),b=c.kW(b),l=g.createRadialGradient(j,k,0,j,k,n),r=0;r<f.length;r++)l.addColorStop(i[r],"rgba("+b[0]+
","+b[1]+","+b[2]+","+f[r]+")");g.fillStyle=l;g.globalAlpha=a;g.beginPath();g.arc(j,k,n,0,2*Math.PI,o);g.closePath();g.fill()};b.prototype.ega=function(a,b,f,i){var j=0.5*this.Fj,k=0.5*this.Fj,n=0.5*this.Fj,g=this.q.getContext("2d");g.clearRect(0,0,this.Fj,this.Fj);for(var l=c.kW(b),r=g.createRadialGradient(j,k,0,j,k,n),b=0;b<f.length;b++)r.addColorStop(i[b],"rgba("+l[0]+","+l[1]+","+l[2]+","+f[b]+")");g.fillStyle=r;g.globalAlpha=a;g.beginPath();for(b=0;6>b;b++)f=45*Math.PI/180+2*Math.PI*b/6,a=j+
Math.cos(f)*n,f=k+Math.sin(f)*n,0==b?g.moveTo(a,f):g.lineTo(a,f);g.closePath();g.fill()};b.oy="circle";b.vE="hexagon";return b});
define("jm","require,eD,hr,kd,cG,gm,cr,gO,eI,cz".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("cG"),f=a("gm"),i=a("cr"),j=a("gO"),k=a("eI"),n=a("cz"),a=b.extend(f,function(a){f.call(this);this.m=a;this.li.push(this.m);this.Xe=this.Xe.bind(this);this.set("tag","LensFlare");this.set("translationAlpha",0);this.uN=this.hfa();this.Xc=this.Jfa();this.Lh(this.uN.concat([this.Xc]))});a.prototype.Mb=function(){f.prototype.Mb.call(this);this.trigger(e.Ub);this.trigger(e.T);c.ed(this.m,["yaw",
"pitch","bleaching","bleachingDistance"],this.Xe,o)};a.prototype.Xb=function(){c.Cd(this.m,["yaw","pitch","bleaching","bleachingDistance"],this.Xe,o);f.prototype.Xb.call(this)};a.prototype.Xe=function(){this.set("yaw",this.m.get("yaw"));this.set("pitch",this.m.get("pitch"));this.set("bleaching",this.m.get("bleaching"));this.set("bleachingDistance",this.m.get("bleachingDistance"))};a.prototype.G=function(a){f.prototype.G.call(this,a);this.set("rendererYaw",a.ra);this.set("rendererPitch",a.pitch);this.set("rendererRoll",
a.ld);this.set("rendererCameraFOV",a.ff);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.Jb);if(this.C("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.C("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","inVR",
"yaw","pitch","translationAlpha","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){var j=a.ra+this.get("composedDeltaYaw"),k=a.pitch+this.get("composedDeltaPitch"),i=a.ld+this.get("composedDeltaRoll"),b=this.get("translationAlpha"),e=c=0,n,w,A,C;if(!a.Jb)if(j=d.get(this.get("yaw"),this.get("pitch"),j,k,i,a.ff,a.width,a.height)){w=a.width*0.5;C=a.height*0.5;n=j.x;A=j.y;w=(w-n)*2;C=(C-A)*2;e=Math.sqrt(w*w+C*C);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;j=this.get("bleaching");a=1-Math.max(0,Math.min(1,e/(a*this.get("bleachingDistance"))));e=j*a*b}for(a=0;a<this.uN.length;a++){b=this.uN[a];b.set("alpha",c);if(c>0){b.set("centerX",n+w*g[a].position);b.set("centerY",A+C*g[a].position)}}this.Xc.set("alpha",e)}};a.prototype.hfa=function(){return g.map(function(a){var b=(new k(a.form,a.zu,a.opacity,a.color,a.du,a.eu)).q,c=new n;c.Tg(b);b=new j;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.Jfa=function(){return new i("#ffffff")};var g=[{form:k.vE,position:0.1,size:52,zu:128,opacity:0.8,color:"#FCFCFC",du:[1,0.5],eu:[0,0.866]},{form:k.vE,position:0.2,size:52,zu:128,opacity:0.6,color:"#C8FCC8",du:[1,0.5],eu:[0,0.866]},{form:k.oy,position:0.36,size:112,zu:128,opacity:0.5,color:"#C8C8FC",du:[1,0.9,0.6,0],eu:[0,0.2,0.4,1]},{form:k.oy,position:0.47,size:32,zu:128,opacity:0.3,color:"#96C8AF",du:[1,1,0],eu:[0,
0.9,1]},{form:k.oy,position:0.65,size:52,zu:128,opacity:0.7,color:"#FCFCFC",du:[0.7,0.7,0.2,0],eu:[0,0.1,0.4,1]},{form:k.vE,position:0.88,size:128,zu:128,opacity:0.4,color:"#AF96C8",du:[1,0.5],eu:[0,0.866]},{form:k.oy,position:1,size:33,zu:128,opacity:0.8,color:"#C89696",du:[0.8,0.8,0.6,0],eu:[0,0.2,0.4,1]}];return a});
define("by",["require","dn"],function(a){function b(a,b,j){d.style.fontFamily=e.Vq(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 k=new c(Math.ceil(d.clientWidth),Math.ceil(d.clientHeight));document.body.removeChild(d);j&&(j.font=b.fontSize+" "+e.Vq(b.fontFamily),a=j.measureText(a).width,k.height*=a/k.width,k.width=a);return k}function c(a,b){this.width=a;this.height=b}var e=a("dn"),d=document.createElement("div");
d.style.display="inline-block";d.style.margin=0;d.style.padding=0;d.style.whiteSpace="nowrap";b.WY=function(){this.fontFamily="Arial";this.fontSize="12px";this.fontWeight="400";this.fontStyle="normal"};b.awa=c;return b});
define("ji",["require","by","dn"],function(a){function b(a,b){this.Ga=a;this.K4=5;this.sc=b.map(function(b){return new c(a,b)});this.Tv=this.Uv=this.Yg=this.ce=0;this.cU();this.q=document.createElement("canvas");this.q.width=this.ce;this.q.height=this.Yg;this.ga=this.q.getContext("2d");this.Z=o;this.Vc=this.D4=-1}function c(a,b){this.gu=a;this.item=b;this.label=b.get("label");this.fontFamily=this.gu.get("fontFamily","Arial");this.fontSize="12px";this.backgroundColor=this.gu.get("backgroundColor",
"#000000");this.jaa=this.gu.get("rollOverBackgroundColor",this.backgroundColor);this.Fta=this.gu.get("selectedBackgroundColor",this.jaa);this.b9=this.gu.get("fontColor","#000000");this.kaa=this.gu.get("rollOverFontColor",b.b9);this.Gta=this.gu.get("selectedFontColor",b.kaa);this.hba=this.gba=this.iba=this.jba=this.height=this.width=this.left=this.top=0;this.status=y;this.QV=o}var e=a("by"),d=a("dn");c.prototype.tva=function(){var a=new e.WY;a.fontFamily=this.fontFamily;a.fontSize=this.fontSize;a=
e(this.label,a);this.jba=a.width;this.iba=a.height};c.prototype.Jua=function(a){this.status!=a&&(this.status=a,this.QV=o)};c.prototype.Fqa=function(a){if(this.QV){this.QV=y;var b,c;switch(this.status){case "normal":b=this.backgroundColor;c=this.b9;break;case "over":b=this.jaa;c=this.kaa;break;case "selected":b=this.Fta,c=this.Gta}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.Vq(this.fontFamily);a.textBaseline="middle";a.textAlign="center";a.fillText(this.label,Math.round(this.gba),Math.round(this.hba));return o}return y};b.prototype.Fc=Q("ce");b.prototype.qd=Q("Yg");b.prototype.cU=function(){var a=0,b=0;this.sc.forEach(function(c){c.tva();a=Math.max(c.jba,a);b=Math.max(c.iba,b)});this.Uv=a+2*this.K4;this.Tv=b+2*this.K4;var c=0,d=0,e=0;this.sc.forEach(function(a){20<=e&&(e=0,d+=this.Uv,c=0);a.left=d;a.top=c;
a.gba=d+0.5*this.Uv;a.hba=c+0.5*this.Tv;a.width=this.Uv;a.height=this.Tv;e+=1;c+=this.Tv}.bind(this));this.ce=Math.ceil(this.sc.length/20)*this.Uv;this.Yg=Math.min(20,this.sc.length)*this.Tv};b.prototype.update=function(){for(var a=y,b=0;b<this.sc.length;b++)this.sc[b].Jua(this.D4==b?"over":this.Vc==b?"selected":"normal"),a=this.sc[b].Fqa(this.ga)||a;return a};b.prototype.l9=function(a,b){var c=-1;0<=a&&a<this.ce&&0<=b&&b<this.Yg&&(c=20*Math.floor(a/this.Uv)+Math.floor(b/this.Tv),c>=this.sc.length&&
(c=-1));return c};b.prototype.UW=N("D4");b.prototype.$W=N("Vc");b.prototype.clear=function(){this.sc=this.q=this.ga=this.Ga=q};return b});
define("eb","require,eD,kd,gB,ji,cz,jP,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("eD"),e=a("kd"),d=a("gB"),f=a("ji"),i=a("cz"),j=a("jP"),k=a("bq"),a=c.extend(d,function(a){d.call(this);this.Ga=a;this.q=q;this.lo=this.Ci=this.oS=this.$n=m;this.R_=20;this.Fd=q;this.lb=this.Ga.get("opacity",0.5);this.WA=this.Ga.get("rollOverOpacity",this.lb);this.pja=1;this.rja=0.66;this.set("tag","MenuButton");this.set("visible",y);this.set("over",y);this.set("centerDistance",
m)});a.prototype.G=function(a){this.Qf(a);this.hC(a);this.oC(a);this.Ft(a);d.prototype.G.call(this,a)};a.prototype.Qf=function(){if(this.get("visible")){if(!this.q){this.get("textureSource")||this.set("textureSource",new i);this.q=new f(this.Ga,[this.Ga]);this.get("textureSource").Tg(this.q.q);this.set("contentWidth",this.q.Fc());this.set("contentHeight",this.q.qd());this.set("hfov",2*Math.atan2(this.q.Fc()*0.5,300)*g);this.set("distance",this.Ga.get("distance"))}if(this.q.update()){this.get("textureSource").update();
this.Oa()}this.C("over")&&this.q.UW(this.get("over")?0:-1)}};a.prototype.hC=function(a){if(this.C("visible"))this.Fd=new j("linear",[new k("displayCoef",this.get("visible")?0:1,this.get("visible")?1:0,m)],300);if(this.Fd)this.Fd.me()?this.Fd=q:this.Fd.Ua(a.pd)};a.prototype.oC=function(a){if(this.get("visible")||this.Fd){this.Ci=a.ra;this.lo=Math.min(90,Math.max(-90,this.R_+this.R_-a.pitch));if(this.C("visible")&&this.get("visible")){this.set("yaw",a.ra);this.set("pitch",a.pitch)}else{for(;this.Ci+
180<this.$n;)this.$n=this.$n-360;for(;this.Ci-180>this.$n;)this.$n=this.$n+360;var c=(this.Ci-this.$n)/a.pd,d=(this.lo-this.oS)/a.pd,f=Math.atan2(d,c),d=Math.sqrt(d*d+c*c),d=Math.min(d,10*n),c=Math.cos(f)*d,f=Math.sin(f)*d;this.set("yaw",b(this.get("yaw"),this.Ci+c));this.set("pitch",b(this.get("pitch"),this.lo+f))}this.$n=this.Ci;this.oS=this.lo;f=this.get("yaw")-a.ra;a=this.get("pitch")-a.pitch;this.set("centerDistance",Math.sqrt(f*f+a*a))}};a.prototype.Ft=function(){if(!this.get("visible")&&!this.Fd)this.set("alpha",
0);else if(this.C("over","centerDistance")||this.Fd){var a=this.get("over")?this.WA:this.lb,b=this.rja,c=this.get("centerDistance")/this.get("hfov");if(c<1){b=b+(1-c)*(this.pja-b);a=a+(1-c)*(this.WA-a)}if(this.Fd){a=a*this.Fd.nb("displayCoef");b=b*this.Fd.nb("displayCoef")}this.set("alpha",a);this.set("scale",b)}};a.prototype.Ri=function(a){if(a.Gd==e.Sh){var b=y;this.get("visible")&&!a.Og()&&(b=this.tk(a.Ok).length>0);if(b){a.Pq(this.Ga);a.Qq(this.Ga);a.Bh(this.get("distance"))}if(this.get("over")!=
b){this.get("over")&&this.Ga.trigger(e.jc);this.set("over",b);this.get("over")&&this.Ga.trigger(e.Ic)}}else if(a.Gd==e.Rh&&this.get("visible")&&!a.Og()&&this.tk(a.Ok).length>0){a.Ro(this.Ga);this.Ga.trigger(e.U);this.trigger(e.U)}};var n=Math.PI/180,g=180/Math.PI;return a});
define("gE","require,eD,kd,gB,ji,cz,jP,bq".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("gB"),d=a("ji"),f=a("cz"),i=a("jP"),j=a("bq"),a=b.extend(e,function(a,b){e.call(this);this.Ga=a;this.pA=b;this.q=q;this.oS=this.$n=m;this.Fd=q;this.lb=this.Ga.get("opacity",0.5);this.WA=this.Ga.get("rollOverOpacity",this.lb);this.set("textureSource",new f);this.q=new d(this.Ga,b);this.set("tag","MenuPanel");this.get("textureSource").Tg(this.q.q);this.set("contentWidth",this.q.Fc());this.set("contentHeight",
this.q.qd());this.set("hfov",2*Math.atan2(this.q.Fc()*0.5,300)*k);this.set("distance",this.Ga.get("distance"));this.set("overIndex",-1);this.set("selectedIndex",-1);this.K0=y});a.prototype.Mb=function(){e.prototype.Mb.call(this)};a.prototype.Xb=function(){e.prototype.Xb.call(this)};a.prototype.G=function(a){this.Qf(a);this.hC(a);this.oC(a);e.prototype.G.call(this,a)};a.prototype.Qf=function(){this.C("selectedIndex")&&this.q.UW(this.get("selectedIndex"));this.C("overIndex")&&this.q.UW(this.get("overIndex"));
if(this.q.update()){this.get("textureSource").update();this.Oa()}};a.prototype.hC=function(a){if(!this.Fd&&!this.K0)this.Fd=new i("linear",[new j("alpha",0,1,m),new j("scale",0,1,m),new j("yaw",a.ra,this.get("yaw"),m),new j("pitch",a.pitch,this.get("pitch"),m)],300);if(this.Fd)if(this.Fd.me()){this.K0=o;this.Fd=q}else this.Fd.Ua(a.pd)};a.prototype.oC=function(){if(this.Fd){var a=this.get("overIndex")<0?this.lb:this.WA;this.set("alpha",a*this.Fd.nb("alpha"));this.set("scale",this.Fd.nb("scale"));this.set("yaw",
this.Fd.nb("yaw"));this.set("pitch",this.Fd.nb("pitch"))}else if(this.C("overIndex")){a=this.get("overIndex")<0?this.lb:this.WA;this.set("alpha",a)}};a.prototype.Ri=function(a){if(a.Gd==c.Sh){var b=-1;if(!a.Og()){var d=this.tk(a.Ok).filter(function(a){return a.source==this.q.q}.bind(this));d.length>0&&(b=this.q.l9(d[0].x,d[0].y))}if(b>=0){a.Pq(this.pA[b]);a.Qq(this.pA[b]);a.Bh(this.get("distance"))}this.get("overIndex")>=0!=b>=0&&(b>0?this.trigger(c.Ic):this.trigger(c.jc));if(this.get("overIndex")!=
b){this.get("overIndex")>=0&&this.pA[this.get("overIndex")].trigger(c.jc);this.set("overIndex",b);this.get("overIndex")>=0&&this.pA[this.get("overIndex")].trigger(c.Ic)}}else if(a.Gd==c.Rh&&!a.Og()){d=this.tk(a.Ok).filter(function(a){return a.source==this.q.q}.bind(this));if(d.length>0){b=this.q.l9(d[0].x,d[0].y);if(b>=0){d=this.pA[b];this.set("selectedIndex",b);a.Ro(d);a.Bh(this.get("distance"));d.trigger(c.U);this.trigger(c.U,{item:d})}}}};var k=180/Math.PI;return a});
define("dZ",["require","eD","kd","gm","gE"],function(a){var b=a("eD"),c=a("kd"),e=a("gm"),d=a("gE"),a=b.extend(e,function(a){e.call(this);this.Ga=a;this.nq=[];this.kw=q;this.set("tag","MenuPanels");this.set("visible",y)});a.prototype.G=function(a){this.C("visible")&&this.get("visible")&&(this.set("yaw",a.ra),this.set("pitch",a.pitch),this.c_(this.Ga));e.prototype.G.call(this,a)};a.prototype.c_=function(a){var a=new d(this.Ga,a.get("children",[])),b=this.get("yaw");this.Ta().forEach(function(a){b+=
a.get("hfov")+i});a.set("yaw",b);a.set("pitch",this.get("pitch"));this.oda(a);this.appendChild(a)};a.prototype.C5=function(a){this.Ta().slice(a).forEach(function(a){this.Lla(a);a.remove()}.bind(this));this.nq=this.nq.filter(function(a){return 0<=this.Ta().indexOf(a)}.bind(this))};a.prototype.oda=function(a){a.bind(c.Ic,this.P4,this,o);a.bind(c.jc,this.O4,this,o);a.bind(c.U,this.N4,this,o)};a.prototype.Lla=function(a){a.unbind(c.Ic,this.P4,this,o);a.unbind(c.jc,this.O4,this,o);a.unbind(c.U,this.N4,
this,o)};a.prototype.P4=function(a){0>this.nq.indexOf(a.source)&&(this.nq.push(a.source),1==this.nq.length&&this.c0())};a.prototype.O4=function(a){a=this.nq.indexOf(a.source);0<=a&&(this.nq.splice(a,1),0==this.nq.length&&this.Uma())};a.prototype.N4=function(a){var b=a.source,a=a.data.item;a.get("children",[]).length?(this.C5(this.Ta().indexOf(b)+1),this.c_(a)):this.h0()};a.prototype.h0=function(){this.set("visible",y);this.C5(0);this.c0();this.trigger(c.tr)};a.prototype.c0=function(){this.kw&&(clearTimeout(this.kw),
this.kw=q)};a.prototype.Uma=function(){this.kw||(this.kw=setTimeout(function(){this.kw=q;this.h0()}.bind(this),f))};var f=3E3,i=1;return a});
define("eg","require,eD,kd,gm,eb,dZ".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("gm"),d=a("eb");MenuPanels=a("dZ");a=b.extend(e,function(a){e.call(this);this.m=a;this.li.push(this.m);this.set("tag","Menu");this.set("visible",y);this.ac=new d(this.m);this.ac.bind(c.U,this.bea,this,y);this.Ze=new MenuPanels(this.m);this.Ze.bind(c.tr,this.Pka,this,y);this.Lh([this.ac,this.Ze])});a.prototype.Mb=function(){e.prototype.Mb.call(this);this.trigger(c.Ub);this.trigger(c.T)};a.prototype.G=function(a){this.set("visible",
a.Jb);if(this.C("visible")){this.ac.set("visible",this.get("visible"));this.Ze.set("visible",y)}e.prototype.G.call(this,a)};a.prototype.bea=function(){this.ac.set("visible",y);this.Ze.set("visible",o)};a.prototype.Pka=function(){this.ac.set("visible",this.get("visible"))};return a});
define("jZ","require,eD,kd,gB,cz,hf,hT".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("gB"),d=a("cz");EventAggregator=a("hf");ProgressEvent=a("hT");a=b.extend(e,function(){e.call(this);this.set("tag","CustomPlane");this.set("source",q);this.set("sourceUpdated",y);this.yc=this.fe=q});a.prototype.Mb=function(){this.fe=(new EventAggregator(c.T)).Ui(this.Bk.bind(this));this.yc=(new EventAggregator(c.T)).kl(this.pi.bind(this));e.prototype.Mb.call(this)};a.prototype.Xb=function(){this.fe.dispose();
this.yc.dispose();e.prototype.Xb.call(this)};a.prototype.G=function(a){if(this.C("source","sourceUpdated","useMipmapping","anisotropy")){var b=this.get("textureSource");b||this.set("textureSource",b=new d);this.C("source")&&b.Tg(this.get("source"));this.C("sourceUpdated")&&(b.update(),this.set("sourceUpdated",y));this.C("useMipmapping")&&b.jL(this.get("useMipmapping"),this.get("anisotropy"))}e.prototype.G.call(this,a);if(this.C("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.fe.vd(a);
this.yc.vd(a)}}};a.prototype.Bk=function(){this.trigger(c.Ub);this.trigger(c.T)};a.prototype.pi=function(a,b){var d=0;b.Ao(function(a){(a=b.Mi(a))&&(d=d+a.Ih)});this.trigger(new ProgressEvent(c.ic,d/b.Lc.length))};return a});
define("ij",["require"],function(){function a(a){this.yd=this.Jz(a.get("surfaceReticleColor"));this.am=this.Jz(a.get("surfaceReticleSelectionColor"));this.lb=a.get("surfaceReticleOpacity");this.V5=a.get("surfaceReticleSelectionOpacity");this.Yg=this.ce=128;this.Jka=0.456;this.Kka=0.088;this.zia=0.18;this.q=document.createElement("canvas");this.q.width=this.ce;this.q.height=this.Yg;this.ga=this.q.getContext("2d");this.ga.fillStyle="red";this.ga.$ra=o;this.ga.fillRect(0,0,this.ce,this.Yg);this.si=this.RN=
y;this.Wv=this.yH=m;this.Xr=0}a.prototype.AP=function(a){return this.Bj(this.am[0]*a+(1-a)*this.yd[0],this.am[1]*a+(1-a)*this.yd[1],this.am[2]*a+(1-a)*this.yd[2],this.V5*a+(1-a)*this.lb)};a.prototype.Jz=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.Bj=function(a,c){return"rgba("+a.join(",")+", "+c+")"};a.prototype.ya=function(a){this.Aa!=a&&(this.Aa=a,this.Z=o)};a.prototype.Fc=Q("ce");a.prototype.qd=Q("Yg");
a.prototype.update=function(){if(!this.Z)return y;this.Z=y;this.ga.clearRect(0,0,this.ce,this.Yg);var a=[this.am[0]*this.Aa+(1-this.Aa)*this.yd[0],this.am[1]*this.Aa+(1-this.Aa)*this.yd[1],this.am[2]*this.Aa+(1-this.Aa)*this.yd[2]],c=this.V5*this.Aa+(1-this.Aa)*this.lb;this.ga.strokeStyle=this.Bj(a,c);this.ga.fillStyle=this.Bj(a,c*this.Aa);this.ga.beginPath();this.ga.lineWidth=this.ce*this.Kka;this.ga.arc(0.5*this.ce,0.5*this.ce,this.ce*this.Jka,0,2*Math.PI,y);this.ga.stroke();this.ga.beginPath();
this.ga.arc(0.5*this.ce,0.5*this.ce,this.ce*this.zia,0,2*Math.PI,y);this.ga.fill();return o};return a});
define("eS","require,eD,hr,kd,eO,gm,jZ,ij,cq,fg".split(","),function(a){function b(a,b,c){this.KK=a;this.KK.bind(d.L("distanceToFloor"),this.G,this,y);this.pg=b;this.pg.bind(d.L("yaw"),this.G,this,y);this.pg.bind(d.L("distance"),this.G,this,y);this.pg.bind(d.L("enabled"),this.G,this,y);this.pg.bind(d.L("enabledInSurfaceSelection"),this.G,this,y);this.Aa=q;this.Jh=new j;this.Jh.set("hfov",20);this.Jh.set("vfov",20);this.Jh.set("pitch",-90);this.Jh.set("useMipmapping",o);this.Jh.set("anisotropy",16);
this.Jh.set("source",c.q);this.Jh.set("contentWidth",c.Fc());this.Jh.set("contentHeight",c.qd());this.G()}var c=a("eD"),e=a("hr"),d=a("kd"),f=a("eO"),i=a("gm"),j=a("jZ"),k=a("ij"),n=a("cq"),g=a("fg"),a=c.extend(i,function(a){i.call(this);this.kH=this.kH.bind(this);this.Ol=this.Ol.bind(this);this.iH=this.iH.bind(this);this.set("tag","SurfaceSelector");this.set("reticleVisible",y);this.set("enabled",y);this.J=a;this.TE=[];this.vz=new g;this.ie=new n;this.ub=new j;this.ub.set("useMipmapping",o);this.ub.set("anisotropy",
16);this.ub.set("hfov",20);this.ub.set("vfov",20);this.ub.set("pitch",-90);this.set("reticleCoef",1);this.Lh([this.ub])});a.prototype.Mb=function(){this.yfa();i.prototype.Mb.call(this);e.ed(this.J,["distanceToFloor"],this.kH,o);e.ed(this.J,["adjacentPanoramas"],this.Ol,o);e.ed(this.Ya.Bb,["adjacentPanoramaPositionsEnabled"],this.iH,o);this.trigger(d.Ub);this.trigger(d.T)};a.prototype.Xb=function(){i.prototype.Xb.call(this);e.Cd(this.J,["distanceToFloor"],this.kH);e.Cd(this.J,["adjacentPanoramas"],
this.Ol);e.Cd(this.Ya.Bb,["adjacentPanoramaPositionsEnabled"],this.iH);this.c6([])};a.prototype.kH=function(){var a=this.J.get("distanceToFloor");this.ub.set("distance",a);var a=f.Ax(a),b=f.EV(a,90),c=f.FV(a,90);this.vz.td.set(-b*0.5,-a,-c*0.5);this.vz.Sf.set(b*0.5,-a,-c*0.5);this.vz.dr.set(-b*0.5,-a,c*0.5);this.L5=a/f.Yq()};a.prototype.Ol=function(){this.c6(this.J.get("adjacentPanoramas",[]))};a.prototype.iH=function(){this.Ol()};a.prototype.c6=function(a){this.TE.forEach(function(a){a.clear()});
this.TE=a.map(function(a){return new b(this.J,a,this.iS)}.bind(this));a=[];this.Ya.Bb.get("adjacentPanoramaPositionsEnabled")&&(a=a.concat(this.TE.map(function(a){return a.Jh})));a=a.concat([this.ub]);this.Lh(a)};a.prototype.G=function(a){i.prototype.G.call(this,a);this.set("enabled",a.SD);this.sU(a);this.Mq(a)};a.prototype.sU=function(){if(this.C("enabled","reticleVisible","composedTranslationX","composedTranslationY","composedTranslationZ","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.ub.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.J7()}};a.prototype.yfa=function(){this.Aw=new k(this.Ya.D);this.Aw.ya(this.get("reticleCoef"));this.ub.set("source",this.Aw.q);this.ub.set("contentWidth",this.Aw.Fc());this.ub.set("contentHeight",this.Aw.qd());this.iS=new k(this.Ya.D);
this.iS.ya(0);this.iS.update(1)};a.prototype.Mq=function(a){this.C("reticleCoef")&&this.Aw.ya(this.get("reticleCoef"));this.ub.set("sourceUpdated",this.Aw.update(a.pd))};a.prototype.Ri=function(a){if(!this.get("enabled")||a.Ok.length==0||a.Og()||a.Usa())this.set("reticleVisible",y);else{var b=a.Ok[0];this.ie.td.set(b.origin.x,b.origin.y,b.origin.z);this.ie.Sf.set(b.origin.x+b.direction.x,b.origin.y+b.direction.y,b.origin.z+b.direction.z);if(b=this.vz.intersection(this.ie,o)){var c=this.vz.NK(b,o),
f=2*(0.5-c.x),c=2*(0.5-c.y),e=l*Math.atan2(-f,c),g=-90+l*Math.atan2(Math.sqrt(f*f+c*c),1);if(g<-75||g>-1)this.set("reticleVisible",y);else{var j={x:f*this.L5,y:-c*this.L5};if(!a.ar()&&!a.r$())this.set("reticleVisible",y);else{this.set("reticleVisible",o);this.ub.set("alpha",Math.min(1,(g- -75)/5));this.ub.set("translationX",j.x);this.ub.set("translationZ",j.y)}a.r$()&&a.Tpa([n]);var k=this.Ya.Bb.get("surfaceSelectionHorizontalAngle")*0.5,i=this.Ya.Bb.get("surfaceSelectionVerticalAngle")*0.5,f=this.TE.map(function(a){var b=
a.ora(e),c=a.Jra(g),d=a.jK(j);return{pg:a.pg,a$:b,qba:c,W8:d}}).filter(function(a){return a.a$<k&&a.qba<i});if(f.length==0)this.set("reticleCoef",0);else{f.sort(function(a,b){return a.W8-b.W8});var n=f[0].pg;this.set("reticleCoef",Math.max(0,Math.min(1,(1-f[0].a$/k)*(1-f[0].qba/i))));b=this.J.get("distanceToFloor")*Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z)/-b.y;a.Bh(b);if(a.Gd==d.Rh){a.Ro([n]);n.trigger(d.Uh)}else{a.Pq([n]);a.ar()&&a.Qq([n]);(n=this.Ya.D.get("displayTooltipInSurfaceSelection")&&n.get("panorama")&&
n.get("panorama").get("label"))&&a.MJ(n,0)}}}}else this.set("reticleVisible",y)}};b.prototype.clear=function(){this.KK.unbind(d.L("distanceToFloor"),this.G,this,y);this.KK=q;this.pg.unbind(d.L("yaw"),this.G,this,y);this.pg.unbind(d.L("distance"),this.G,this,y);this.pg.unbind(d.L("enabled"),this.G,this,y);this.pg.unbind(d.L("enabledInSurfaceSelection"),this.G,this,y);this.pg=q};b.prototype.ora=function(a){if(!this.Aa)return Infinity;a=Math.abs(this.Aa.ra-a);return a>180?360-a:a};b.prototype.Jra=function(a){return!this.Aa?
Infinity:Math.abs(this.Aa.pitch-a)};b.prototype.jK=function(a){if(!this.Rw)return Infinity;var b=a.x-this.Rw.x,a=a.y-this.Rw.y;return Math.sqrt(b*b+a*a)};b.prototype.G=function(){var a=this.pg.get("yaw"),b=this.pg.get("distance"),c=this.pg.get("enabled")&&this.pg.get("enabledInSurfaceSelection");if(a===m||b===m||!c){this.Rw=this.Aa=q;this.Jh.set("alpha",0)}else{var c=this.KK.get("distanceToFloor"),d=-90+Math.atan2(b,c)*l;this.Jh.set("alpha",d<-1?1:0);this.Aa={ra:a,pitch:d};d=-Math.cos(a*r)*b/c;a=
-Math.sin(a*r)*b/c;b=f.Ax(c)/f.Yq();this.Rw={x:a*b,y:d*b};this.Jh.set("translationX",this.Rw.x);this.Jh.set("translationZ",this.Rw.y);this.Jh.set("distance",c)}};var l=180/Math.PI,r=Math.PI/180;return a});
define("O","require,eD,hr,kd,hT,gm,eS,hf,jl,gz".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("hT"),f=a("gm"),i=a("eS"),j=a("hf"),k=a("jl"),n=a("gz"),g=0,a=b.extend(f,function(a){f.call(this);this.m=a;this.li.push(this.m);this.jH=this.jH.bind(this);this.We=this.We.bind(this);this.Ol=this.Ol.bind(this);this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Panorama");this.set("loadingActive",y);this.set("blendingActive",o);this.set("currentTime",0);this.set("adjacentPanoramas",
[]);this.set("preloadEnabled",o);this.set("backgroundPreloadEnabled",o);this.set("surfaceSelectionEnabled",y);this.set("id","panorama_"+g++);this.set("ready",y);this.aI=[];this.zj=this.yc=this.Sd=q;this.Se=new l;this.xj=new r;this.Zna=new i(this.m);this.Lh([this.Se,this.Zna,this.xj])});a.prototype.Mb=function(){this.Sd=(new j(e.T)).Ui(this.Bk.bind(this));this.yc=(new j(e.ic)).kl(this.Zs.bind(this));this.zj=(new j(e.Ub)).Ui(this.Qja.bind(this));f.prototype.Mb.call(this);c.ed(this.m,["currentTime"],
this.jH,o);c.ed(this.m,["frames","overlays","vrMenu","adjacentPanoramas"],this.We,o);c.ed(this.m,["adjacentPanoramas"],this.Ol,o)};a.prototype.Xb=function(){this.Sd.dispose();this.yc.dispose();this.zj.dispose();f.prototype.Xb.call(this);c.Cd(this.m,["currentTime"],this.jH);c.Cd(this.m,["frames","overlays","vrMenu","flipImageHorizontally"],this.We);c.Cd(this.m,["adjacentPanoramas"],this.Ol);this.xT()};a.prototype.We=function(){var a=this.Ya.Eo(this.m.get("frames"));a.forEach(function(a){a.set("panoramaId",
this.get("id"));a.set("flipHorizontally",this.m.get("flipImageHorizontally"))}.bind(this));var b=this.Ya.Eo(this.m.get("overlays"));this.m.get("vrMenu")&&b.push(this.Ya.Eo(this.m.get("vrMenu")));b.forEach(function(a){a.set("panoramaId",this.get("id"))}.bind(this));this.Sd.vd(a.concat(b));this.yc.vd(a.concat(b));this.zj.vd(a);this.Se.Lh(a);this.xj.Lh(b);this.set("panoramaPixelsPerDegree",k.s9(this.m));this.N7()};a.prototype.jH=function(){this.set("currentTime",this.m.get("currentTime",0))};a.prototype.Ol=
function(){this.set("adjacentPanoramas",this.m.get("adjacentPanoramas",[]))};a.prototype.Bk=function(){this.bl();this.trigger(e.T)};a.prototype.Qja=function(){this.bl();this.set("ready",o);this.trigger(e.Ub)};a.prototype.Zs=function(){this.bl()};a.prototype.bl=function(){var a=0;this.yc.Ao(function(b){var c=0,d;this.Sd.Mi(b)?c=100:(d=this.yc.Mi(b))&&(c=d.Ih);a=a+c}.bind(this));this.trigger(new d(e.ic,a/this.yc.Lc.length))};a.prototype.G=function(a){this.set("blendingActive",this.get("alpha")<1);this.set("backgroundPreloadEnabled",
this.Ya.$a.get("backgroundPreloadEnabled")!==y);this.set("preloadEnabled",a.zD);this.C("adjacentPanoramas","loadingActive","preloadEnabled","backgroundPreloadEnabled")&&(this.get("loadingActive")&&this.get("backgroundPreloadEnabled")?this.Ina():this.xT());this.C("index")&&this.N7();f.prototype.G.call(this,a)};a.prototype.NV=function(){return k.NV(this.m,this.get("preloadEnabled"))};a.prototype.Ina=function(){this.xT();this.aI=this.get("adjacentPanoramas").map(function(a){a=a.get("panorama");return[a,
k.Cx(a,this.get("preloadEnabled"))]}.bind(this));this.aI.forEach(function(a){n.A8(a[0],a[1]);n.HK(a[0],1)})};a.prototype.xT=function(){this.aI.forEach(function(a){n.HK(a[0],-1);n.vta(a[0],a[1])});this.aI=[]};a.prototype.N7=function(){var a=this.get("index");this.Se.Ta().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.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",
y);this.set("currentTime",0);this.set("tag","Group")});l.prototype.G=function(a){this.Ta().forEach(function(a,b,c){a.set("frontFrame",c[c.length-1])});f.prototype.G.call(this,a)};var r=b.extend(f,function(){f.call(this);this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",y);this.set("currentTime",0);this.set("tag","Group")});return a});
define("br",["require","eD","dK","dc"],function(a){var b=a("eD"),c=a("dK"),e=a("dc"),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.G=function(a){c.prototype.G.call(this,a);this.jC()};a.prototype.tU=function(){if(this.C("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.dX(a,b+(f+c/d)/n)}.bind(this))}}};a.prototype.jC=function(){if(this.C("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b){e.setAttribute(a,e.Du,this.get("panoramaId"));e.setAttribute(a,e.pL,b);e.setAttribute(a,e.Eu,this.get("id"))}.bind(this))}};return a});
define("jG","require,eD,hr,kd,fB,gm,br,hf,jl,eo,hk,hT".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("fB"),f=a("gm"),i=a("br"),j=a("hf"),k=a("jl"),n=a("eo"),g=a("hk"),l=a("hT"),a=b.extend(i,function(a){i.call(this);this.set("tag","ImagePanoramaFrame");this.a5=o;this.m=a;this.li.push(this.m);this.Jg=this.fe=this.zj=q;this.XQ=[];this.We=this.We.bind(this);this.Cl(["loadingActive","currentTime","panoramaId","panoramaPixelsPerDegree"]);this.Lh([this.xj=new r])});a.prototype.Mb=function(){this.zj=
new j(e.T);this.fe=new j(e.T);this.Jg=new j(e.ic);i.prototype.Mb.call(this);c.ed(this.m,["overlays"],this.We,o)};a.prototype.Xb=function(){this.zj.dispose();this.fe.dispose();this.Jg.dispose();c.Cd(this.m,["overlays"],this.We);i.prototype.Xb.call(this)};a.prototype.We=function(){this.xj.Lh(this.Ya.Eo(this.m.get("overlays")));this.F7()};a.prototype.F7=function(){this.fe.vd([].concat(this.XQ,this.xj.Ta()));this.Jg.vd([].concat(this.XQ,this.xj.Ta()))};a.prototype.Fl=function(){var a=[],b=[],c=[];k.AV(this.m,
this.a5).forEach(function(f,e){var j=n.sqa(this.m,f);if(k.rsa(f)){if(e==0){a=a.concat(j);b=b.concat(j)}g.jr(j,e==0?g.Tm:g.xE);g.ir(j,e==0?g.yl:g.kM)}else{e==0&&(a=a.concat(j));b=b.concat(j);g.jr(j,g.Tm);g.ir(j,g.yl)}g.MD(j,e==0?d.JY:d.$i);g.ZK(j,e);c=c.concat(j)}.bind(this));this.zj.vd(a);this.XQ=b;this.F7();this.fe.Ui(this.Bk.bind(this));this.zj.Ui(this.oka.bind(this));this.Jg.kl(this.Zs.bind(this));this.trigger(new l(e.ic,0));return c};a.prototype.oka=function(){this.trigger(e.Ub)};a.prototype.Bk=
function(){this.trigger(e.T)};a.prototype.G=function(a){this.a5=a.zD;this.ipa();i.prototype.G.call(this,a)};a.prototype.ipa=function(){var a=this.get("frontFrame");if(this.C("frontFrame")||a&&a.C("alpha"))this.xj.set("alpha",!a||a==this?1:1-a.get("alpha"))};a.prototype.Zs=function(){var a=0;this.Jg.Ao(function(b){var c=0,d;this.fe.Mi(b)?c=100:(d=this.Jg.Mi(b))&&(c=d.Ih);a=a+c}.bind(this));this.trigger(new l(e.ic,a/this.Jg.Lc.length))};var r=b.extend(f,function(){f.call(this);this.Cl(["loadingActive",
"panoramaId","panoramaPixelsPerDegree"]);this.set("loadingActive",y);this.set("tag","Group")});return a});define("dT",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this)});b.Je="cueChange";a.A("VideoCue",b).B("Object").R({startTime:"number",endTime:"number"}).fc([e.Xj,e.Ia]);return b});define("l",["require"],function(){return function(a){this.cue=a;this.text=a.text}});
define("hY",["require"],function(){function a(a,e,d){this.Qb=a;this.i7=e;this.ws=d||b}var b=function(){var a=document.createElement("canvas");a.width=a.height=256;a.getContext("2d").clearRect(0,0,a.width,a.height);return a}();a.prototype.isEmpty=function(){return this.ws==b};a.prototype.isEqual=function(a){return this.Qb==a.Qb&&this.i7==a.i7&&this.ws==a.ws};return a});
define("R","require,eD,bS,em,eQ,u,dm,l,hY,ee".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=a("eQ"),f=a("u"),i=a("dm"),j=a("l"),k=a("hY"),n=a("ee"),g=b.extend(e,function(a,b,c){e.call(this);this.sa=a;this.Qb=b;this.Z6=c;this.k=d.K;this.re=this.Ob=0;this.Jd=y;this.Lj=1;this.q=this.bb=q;this.iv=y;this.pF=m;this.b0=y;this.Ky=[]});g.prototype.Pa=Q("sa");g.prototype.oe=function(a){if(this.k!=a&&!(a==d.Ac&&this.k!=d.N)){this.b0&&a==d.N&&this.k==d.K&&this.UN();this.k=a;if(this.k==d.N)n.uW(this);
else{n.yD(this);this.k==d.K&&this.kna()}this.Goa()}};g.prototype.Pg=Q("k");g.prototype.$t=Q("Ob");g.prototype.ay=function(a){this.re=a;if(this.bb){this.bb.gD()&&this.T0();this.bb.play(this.sa,this.Qb,this.Z6,this.re)}};g.prototype.ym=Q("re");g.prototype.rl=function(a){this.Lj=a;this.bb&&this.bb.rl(a)};g.prototype.Tf=function(a){this.Jd=a;this.bb&&this.bb.Tf(a)};g.prototype.Ota=function(){this.b0=o};g.prototype.px=function(a,b,c){this.bb&&this.bb.gD()?this.bb.px(a,b,c):this.iv?a.drawImage(this.q,0,
0,b,c):a.fillRect(0,0,b,c)};g.prototype.iK=function(){if(this.bb&&this.bb.gD()){var a=this.bb.ym(),b=this.bb.u;if(this.iv&&Math.abs(a-this.pF)<0.15)return new k(this.Qb,this.pF,this.q);this.UN();return new k(this.Qb,a,b)}return this.iv?new k(this.Qb,this.re,this.q):new k(this.Qb,this.re,q)};g.prototype.kV=function(a){this.bb=a;setTimeout(function(){this.bb&&this.bb.bind(i.Vf,this.z3,this,o)}.bind(this),0);this.bb.bind(i.Cf,this.Ye,this,o);this.bb.bind(i.Qm,this.cw,this,o);this.bb.bind(i.Je,this.uj,
this,o);this.bb.Tf(this.Jd);this.bb.rl(this.Lj);this.bb.play(this.sa,this.Qb,this.Z6,this.re)};g.prototype.aW=function(){this.bb.gD()&&this.T0();this.re=this.bb.ym();this.bb.unbind(i.Vf,this.z3,this,o);this.bb.unbind(i.Cf,this.Ye,this,o);this.bb.unbind(i.Qm,this.cw,this,o);this.bb.unbind(i.Je,this.uj,this,o);this.bb=q};g.prototype.clear=function(){this.UN()};g.prototype.T0=function(){if(!this.q)this.q=document.createElement("canvas");this.q.width=this.bb.Fc();this.q.height=this.bb.qd();this.pF=this.bb.ym();
var a=this.q.getContext("2d");a.clearRect(0,0,this.q.width,this.q.height);this.bb.px(a,this.q.width,this.q.height);this.iv=o};g.prototype.UN=function(){if(this.iv){this.pF=m;this.iv=y;if(f.browser()!=f.Wi){this.q.width=0;this.q.height=0;this.q=q}}};g.prototype.cw=function(){this.Ob=this.bb.$t();this.toa()};g.prototype.Ye=function(){this.Ob!=this.bb.$t()&&this.cw();this.re=this.bb.ym();this.C7()};g.prototype.uj=function(){this.Ky=this.bb.kc.map(function(a){for(var b=q,c=0;c<this.Ky.length&&!b;c++)this.Ky[c].cue==
a&&(b=this.Ky[c]);b||(b=new j(a));return b}.bind(this));this.trigger(new c(g.Je))};g.prototype.z3=function(){this.oe(d.K);this.uoa()};g.prototype.kna=function(){this.re=0;this.C7()};g.prototype.C7=function(){this.trigger(new c(g.Cf))};g.prototype.toa=function(){this.trigger(new c(g.Qm))};g.prototype.uoa=function(){this.trigger(new c(g.Vf))};g.prototype.Goa=function(){this.trigger(new c(g.wd))};g.Cf="time update";g.Qm="duration update";g.wd="state change";g.Vf="end";g.Je="cue change";return g});
define("iG","require,cV,kd,bS,eQ,dT,R".split(","),function(a){function b(a,b){this.od=a;this.v=b;this.kg=y;this.Gf=[];this.ai=this.sv=m;this.kc=[];this.FN();this.pO();this.WI();this.Fg()}function c(a,b,c){this.time=a;this.cue=b;this.action=c}var e=a("cV"),d=a("kd"),f=a("bS"),i=a("eQ"),j=a("dT"),k=a("R");b.prototype.clear=function(){this.bz();this.Gf=[];this.RT();this.v=this.od=q};b.prototype.FN=function(){this.v.bind(k.Cf,this.Ye,this,o);this.v.bind(k.wd,this.Fg,this,o);this.v.bind(k.Vf,this.mq,this,
o)};b.prototype.RT=function(){this.v.unbind(k.Cf,this.Ye,this,o);this.v.unbind(k.wd,this.Fg,this,o);this.v.unbind(k.Vf,this.mq,this,o)};b.prototype.Fg=function(){var a=this.v.Pg()!=i.K;if(this.kg!=a)(this.kg=a)?this.WI():this.bz()};b.prototype.mq=function(){this.Jt()};b.prototype.Ye=function(){this.Jt()};b.prototype.WI=function(){this.ai=this.sv=0};b.prototype.Jt=function(){if(this.v&&this.kg){var a=this.kc.slice(),b=this.v.ym(),c=b-this.sv;if(c<0){this.kc=[];this.ai=0}c=c>=0&&c<2;this.sv=b;var j;
for(j=this.ai;j<this.Gf.length;j++)if(this.Gf[j].time>b)break;for(;this.ai<j;this.ai++){b=this.Gf[this.ai];if(b.action=="start"){this.kc=e(this.kc).union([b.cue]);c&&b.cue.trigger(new f(d.Xj))}else{this.kc=e(this.kc).difference([b.cue]);c&&b.cue.trigger(new f(d.Ia))}}(a.length!=this.kc.length||e(a).intersection(this.kc).length!=this.kc.length)&&this.bC()}};b.prototype.bz=function(){if(this.kc.length>0){this.kc=[];this.bC()}};b.prototype.bC=function(){this.od.trigger(new f(j.Je,{activeCues:this.kc.slice()}))};
b.prototype.pO=function(){this.Gf=[];var a=this.od.get("cues",[]);e(a).each(function(a){this.Gf.push(new c(a.get("startTime",0),a,"start"));this.Gf.push(new c(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.Gf.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("dv",["require","kd","eQ","bS","R"],function(a){function b(a,b,c){this.$a=a;this.od=b;this.v=c;this.v.ay(this.re=this.od.get("currentTime",0));this.v.Tf(this.Jd=this.$a.get("mute",y));this.v.oe(this.k=this.od.get("state",e.K));this.Ob=this.v.$t();this.pda();this.vda();this.cn()}var c=a("kd"),e=a("eQ"),d=a("bS"),f=a("R");b.prototype.clear=function(){this.Mla();this.Rla();this.eo();this.v.oe(e.K);this.od.set("state",e.K);this.od.set("currentTime",0);this.od.set("duration",m)};b.prototype.y4=
function(){var a=this.od.get("state",e.K);this.k!=a&&this.v.oe(this.k=a)};b.prototype.x4=function(){var a=this.od.get("currentTime",0);this.re!=a&&this.v.ay(this.re=a)};b.prototype.NA=function(){var a=this.$a.get("mute",0);this.Jd!=a&&this.v.Tf(this.Jd=a)};b.prototype.TA=function(){this.od.set("currentTime",this.re=this.v.ym())};b.prototype.RA=function(){this.od.set("duration",this.Ob=this.v.$t())};b.prototype.SA=function(){this.od.set("state",this.k=this.v.Pg())};b.prototype.UA=function(){this.od.trigger(new d(c.Ia));
this.od.get("loop")&&(this.v.ay(this.re=0),this.v.oe(this.k=e.N))};b.prototype.pda=function(){this.$a.bind(c.L("mute"),this.NA,this,o)};b.prototype.Mla=function(){this.$a.unbind(c.L("mute"),this.NA,this,o)};b.prototype.vda=function(){this.od.bind(c.L("state"),this.y4,this,o);this.od.bind(c.L("currentTime"),this.x4,this,o)};b.prototype.Rla=function(){this.od.unbind(c.L("state"),this.y4,this,o);this.od.unbind(c.L("currentTime"),this.x4,this,o)};b.prototype.cn=function(){this.v.bind(f.Cf,this.TA,this,
o);this.v.bind(f.Qm,this.RA,this,o);this.v.bind(f.wd,this.SA,this,o);this.v.bind(f.Vf,this.UA,this,o)};b.prototype.eo=function(){this.v.unbind(f.Cf,this.TA,this,o);this.v.unbind(f.Qm,this.RA,this,o);this.v.unbind(f.wd,this.SA,this,o);this.v.unbind(f.Vf,this.UA,this,o)};return b});
define("k",["require","R"],function(a){function b(a,b){this.od=a;this.v=b;this.fN=[];this.FN();this.uj()}var c=a("R");b.prototype.clear=function(){this.Mea();this.RT();this.v=this.od=q};b.prototype.FN=function(){this.v.bind(c.Je,this.uj,this,o)};b.prototype.RT=function(){this.v.unbind(c.Je,this.uj,this,o)};b.prototype.uj=function(){this.od.set("activeSubtitles",this.fN=this.v.Ky)};b.prototype.Mea=function(){this.od.get("activeSubtitles")==this.fN&&this.od.set("activeSubtitles",this.fN=[])};return b});
define("cX",["require","R"],function(a){function b(){}var c=a("R");b.create=function(a,b,f){return new c(a,b,f)};return b});
define("cL","require,eD,kd,fB,eQ,br,hf,jl,eo,iG,dv,dc,fh,hk,k,cX,R,hT".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("fB"),d=a("eQ"),f=a("br"),i=a("hf"),j=a("jl"),k=a("eo"),n=a("iG"),g=a("dv"),l=a("dc"),r=a("fh"),p=a("hk"),s=a("k"),t=a("cX"),u=a("R"),v=a("hT"),a=b.extend(f,function(a){f.call(this);this.m=a;this.li.push(this.m);this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoPanoramaFrame");this.set("frameEmpty",m);this.set("atStart",m);this.eg=j.HV(this.m);
this.Jg=this.fe=this.df=this.v=this.tq=this.ax=q});a.prototype.Mb=function(){this.fe=(new i(c.T)).Ui(this.Bk.bind(this));this.Jg=(new i(c.ic)).kl(this.Zs.bind(this));this.v=t.create(this.Ya.$a,r.VU(this.eg.get("url")),this.m.get("sphere").get("subtitlesURL"));this.Gl=new n(this.m.zx(),this.v);this.gb=new g(this.Ya.$a,this.m.zx(),this.v);this.RB=new s(this.m.zx(),this.v);this.cn();f.prototype.Mb.call(this)};a.prototype.Xb=function(){this.fe.dispose();this.Jg.dispose();this.eo();this.Gl.clear();this.Gl=
q;this.gb.clear();this.gb=q;this.RB.clear();this.RB=q;this.v.clear();this.df=this.v=q;f.prototype.Xb.call(this)};a.prototype.Fl=function(){var a=[];a.push(this.ax=k.xqa(this.m,this.eg));this.Dpa=p.Au(l.Zq(this.ax)[0]);p.jr(this.ax,p.Tm);p.ir(this.ax,p.yl);if(this.eg.get("posterURL")){a.push(this.tq=k.yqa(this.m,this.eg));p.jr(this.tq,p.Tm);p.ir(this.tq,p.yl);p.MD(this.tq,e.JY)}this.fe.vd(a);this.Jg.vd(a);this.trigger(new v(c.ic,0));return a};a.prototype.G=function(a){var b=this.v.iK();this.set("frameEmpty",
b.isEmpty());this.set("atStart",!(this.get("currentTime")>1));f.prototype.G.call(this,a);if(!this.df||!this.df.isEqual(b)){this.df=b;this.Dpa.Tg(this.df.ws);this.Oa()}else this.v.Pg()==d.N&&this.Oa()};a.prototype.ro=function(){if(this.C("composedAlpha","meshGroup","frameEmpty","atStart"))if(this.tq&&this.get("frameEmpty")&&this.get("atStart")){l.ud(this.tq,this.get("composedAlpha"));l.ud(this.ax,0)}else{this.tq&&l.ud(this.tq,0);l.ud(this.ax,this.get("composedAlpha"))}};a.prototype.Bk=function(){this.trigger(c.Ub);
this.trigger(c.T)};a.prototype.Zs=function(a,b){var d=0;b.Ao(function(a){(a=b.Mi(a))&&(d=d+a.Ih)});this.trigger(new v(c.ic,d/b.Lc.length))};a.prototype.Fg=function(){this.Oa()};a.prototype.Ye=function(){this.Oa()};a.prototype.cn=function(){this.v.bind(u.Cf,this.Ye,this,o);this.v.bind(u.wd,this.Fg,this,o)};a.prototype.eo=function(){this.v.unbind(u.Cf,this.Ye,this,o);this.v.unbind(u.wd,this.Fg,this,o)};return a});
define("cy","require,eD,kd,gB,iU,hf,hT".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("gB"),d=a("iU"),f=a("hf"),i=a("hT"),a=b.extend(e,function(){e.call(this);this.set("tag","ImagePlane");this.set("url",q);this.yc=this.Sd=q});a.prototype.Mb=function(){this.Sd=(new f(c.T)).Ui(this.Bk.bind(this));this.yc=(new f(c.ic)).kl(this.pi.bind(this));e.prototype.Mb.call(this)};a.prototype.Xb=function(){this.Sd.dispose();this.yc.dispose();e.prototype.Xb.call(this)};a.prototype.G=function(a){if(this.C("url")){var b=
this.get("url");this.set("textureSource",b?new d(b):q)}e.prototype.G.call(this,a);if(this.C("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Sd.vd(a);this.yc.vd(a)}}};a.prototype.Bk=function(){this.trigger(c.Ub);this.trigger(c.T)};a.prototype.pi=function(a,b){var d=0;b.Ao(function(a){(a=b.Mi(a))&&(d=d+a.Ih)});this.trigger(new i(c.ic,d/b.Lc.length))};return a});
define("bp","require,eD,hr,kd,eQ,fc,fh,gm,cr,jZ,cy,dv,jv,hf,jl,di,hC,J,hT,jP,bq,cX,R".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("eD"),e=a("hr"),d=a("kd"),f=a("eQ"),i=a("fc"),j=a("fh"),k=a("gm"),n=a("cr"),g=a("jZ"),l=a("cy"),r=a("dv"),p=a("jv"),s=a("hf"),t=a("jl"),u=a("di"),v=a("hC"),x=a("J"),w=a("hT"),A=a("jP"),C=a("bq"),B=a("cX"),G=a("R"),z=Math.PI/180,a=c.extend(k,function(a){k.call(this);this.m=a;this.li.push(this.m);this.We=this.We.bind(this);
this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Popup");this.set("inVR",y);this.set("enabledInStandard",o);this.set("interactionEnabled",o);this.set("loadingActive",y);this.set("frameEmpty",o);this.set("state",f.K);this.set("itemVisible","none");this.set("visible",y);this.set("visiblePosition",0);this.set("alpha",0);this.set("over",y);this.set("gazeOver",y);this.set("video",q);this.set("image",q);this.Kc=this.u=this.za=this.yc=this.Sd=q;this.Db=new p;this.hn=this.Vp=
this.Ah=this.df=this.v=q});a.prototype.Mb=function(){this.Sd=(new s(d.T)).Ui(this.yA.bind(this));this.yc=(new s(d.ic)).kl(this.zA.bind(this));k.prototype.Mb.call(this);this.ifa();this.appendChild(this.Kc);e.ed(this.m,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image","video","state","visible"],this.We,o)};a.prototype.Xb=function(){this.Sd.dispose();this.yc.dispose();e.Cd(this.m,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image","video","state",
"visible"],this.We);this.pz();this.qz();this.M0();k.prototype.Xb.call(this)};a.prototype.We=function(){this.set("image",this.m.get("image"));this.set("video",this.m.get("video"));this.set("state",this.m.get("state"));this.set("visible",this.m.get("visible"));this.set("popupDistance",this.m.get("popupDistance"));this.set("popupMaxWidth",this.m.get("popupMaxWidth"));this.set("popupMaxHeight",this.m.get("popupMaxHeight"));this.set("playbackPositions",this.m.get("playbackPositions"))};a.prototype.G=function(a){this.yw=
a.ra;this.xw=a.pitch;this.UT(a);this.Ct(a);this.rU(a);this.Ft(a);this.epa(a);this.Roa(a);k.prototype.G.call(this,a)};a.prototype.Ct=function(){if(this.C("playbackPositions","currentTime")){this.Db.YK(this.get("playbackPositions"));this.Db.XK(this.get("currentTime"));this.set("sourceYaw",this.Db.get("yaw"));this.set("sourcePitch",this.Db.get("pitch"));this.set("sourceRotationX",this.Db.get("rotationX"));this.set("sourceRotationY",this.Db.get("rotationY"));this.set("sourceRotationZ",this.Db.get("rotationZ"));
this.set("sourceHFOV",this.Db.get("hfov"))}};a.prototype.UT=function(){if(this.C("video","image")){var a=[this.Kc];if(this.C("image")){this.uO();this.za&&a.push(this.za)}if(this.C("video")){this.wO();this.u&&a.push(this.u)}this.Sd.vd(a);this.yc.vd(a);this.Lh(a)}};a.prototype.rU=function(){if(this.v){var a=this.v.iK();this.set("frameEmpty",!!a&&a.isEmpty());if(!this.df||a&&!this.df.isEqual(a)){this.df=a;this.u.set("source",this.df.ws);this.u.set("sourceUpdated",o);this.Oa()}else this.v.Pg()==f.N&&
this.Oa()}else this.set("frameEmpty",y)};a.prototype.Ft=function(a){this.set("inVR",a.Jb);this.set("hotspotsEnabled",a.Hx);this.set("rendererYaw",a.ra);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.ld);this.set("rendererWidth",a.RJ);this.set("rendererHeight",a.MC);this.set("rendererHFOV",a.Zc);if(this.C("visible")){var c=this.get("visiblePosition"),e=this.get("visible")?1:0,g=Math.max(1,this.m.get(this.get("visible")?"showDuration":"hideDuration")*Math.abs(e-c)),j=this.m.get(this.get("visible")?
"showEasing":"hideEasing");this.Ah=new A(j,[new C("position",c,e)],g);this.get("visible")||this.v&&this.v.oe(f.K)}if(this.Ah){if(this.Ah.me()){this.Ah=q;if(this.get("visible")){this.m.trigger(d.Pu);this.m.get("autoplay")&&this.v&&this.v.oe(f.N)}else this.m.trigger(d.Jr)}else this.Ah.Ua(a.pd);if(this.Ah){this.set("visiblePosition",this.Ah.nb("position"));this.Oa()}}c=y;if(c=a.Jb?this.C("visible"):this.C("rendererYaw","rendererPitch","rendererRoll","rendererWidth","rendererHeight","rendererHFOV","itemVisible",
"popupMaxWidth","popupMaxHeight","sourceHFOV")){this.set("targetImageScale",this.V1(this.za,a));this.set("targetVideoScale",this.V1(this.u,a));this.set("targetYaw",b(this.get("rendererYaw"),this.get("sourceYaw")));this.set("targetPitch",this.get("rendererPitch"));this.set("targetRotationZ",b(a.Jb?0:this.get("rendererRoll"),this.get("sourceRotationZ")))}if(this.C("visiblePosition","targetScale","targetYaw","targetPitch","targetRoll","popupDistance","hfov")){var e=this.get("visiblePosition"),k=this.get("targetYaw")*
e+this.get("sourceYaw")*(1-e),i=this.get("targetPitch")*e+this.get("sourcePitch")*(1-e),l=this.get("sourceRotationX")*(1-e),n=this.get("sourceRotationY")*(1-e),r=this.get("targetRotationZ")*e+this.get("sourceRotationZ")*(1-e),a=Math.min(1,2*e),p=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.za&&this.za.set("scale",c);this.u&&this.u.set("scale",e);[].concat(this.u?[this.u]:[],this.za?[this.za]:
[]).forEach(function(a){a.set("yaw",k);a.set("pitch",i);a.set("rotationX",l);a.set("rotationY",n);a.set("rotationZ",r);a.set("distance",p);a.set("hfov",u)})}};a.prototype.epa=function(a){if(this.C("frameEmpty","state","image","video")){var b="none";this.u&&(!this.za||!this.get("frameEmpty")&&this.get("state")!=f.K)?b="video":this.za&&(b="image");this.set("itemVisible",b)}if(this.C("itemVisible")){this.get("itemVisible")!="video"&&this.v&&this.v.oe(f.K);var b=this.za?this.za.get("alpha"):0,c=this.u?
this.u.get("alpha"):0,d=this.get("itemVisible")=="image"?1:0,e=this.get("itemVisible")=="video"?1:0,g=this.get("itemVisible")=="video"?1:Math.max(Math.abs(d-b),Math.abs(e-c))*200;this.Vp=new A("linear",[new C("imageAlpha",b,d),new C("videoAlpha",c,e)],g)}if(this.Vp){this.Vp.me()?this.Vp=q:this.Vp.Ua(a.pd);if(this.Vp){this.za&&this.za.set("alpha",this.Vp.nb("imageAlpha"));this.u&&this.u.set("alpha",this.Vp.nb("videoAlpha"));this.Oa()}}};a.prototype.Roa=function(a){if(this.C("gazeOver","inVR")){this.$_();
this.get("inVR")&&this.m.get("lookAwayToHide")&&!this.get("gazeOver")&&this.Gna()}if(a.Jb&&this.m.get("darkenBackground")&&this.m.get("lookAwayToHide")){if(this.C("visible")&&this.get("visible")){this.Kc.set("alpha",0.8);this.hn=q}if(this.C("gazeOver"))this.hn=new A(this.get("gazeOver")?"linear":"quad_in",[new C("alpha",this.Kc.get("alpha"),this.get("gazeOver")?0.8:0)],this.get("gazeOver")?300:this.m.get("lookAwayToHideTime"))}else{this.hn=q;this.Kc.set("alpha",a.Jb&&this.m.get("darkenBackground")?
0.8:0)}if(this.hn){this.hn.me()?this.hn=q:this.hn.Ua(a.pd);if(this.hn){this.Kc.set("alpha",this.hn.nb("alpha"));this.Oa()}}};a.prototype.Gna=function(){this.$_();this.OG=setTimeout(function(){this.OG=q;this.m.set("visible",y)}.bind(this),this.m.get("lookAwayToHideTime"))};a.prototype.$_=function(){if(this.OG){clearTimeout(this.OG);this.OG=q}};a.prototype.V1=function(a,b){if(!a)return 1;var c=this.get("popupMaxWidth","100%"),d=x.Tj(c),f=a.get("contentWidth"),e=a.get("contentHeight"),g=this.get("popupMaxHeight",
"100%"),j=x.Tj(g),k;if(this.get("inVR")){var i=k=this.get("rendererWidth")*0.5,l=Math.min(b.ff,80),n=v.Pt(l,k,i),r=this.get("sourceHFOV");k=Math.min(Math.tan(n*(d!==m?d/100:c/k)*0.5*z)/Math.tan(r*0.5*z),Math.tan(l*(j!==m?j/100:g/i)*0.5*z)/Math.tan(v.Pt(r,f,e)*0.5*z))}else{k=this.get("rendererWidth");i=this.get("rendererHeight");n=Math.min((d!==m?k*d/100:c)/f,(j!==m?i*j/100:g)/e);f=f*n;n=this.get("rendererHFOV");r=this.get("sourceHFOV");k=Math.tan(n*0.5*z)*f/k/Math.tan(r*0.5*z)}return k};a.prototype.uO=
function(){this.pz();if(this.get("image")){var a=t.Bra(this.m,this.get("panoramaPixelsPerDegree"));this.za=new l;this.za.set("url",a.get("url"));this.za.set("contentWidth",a.get("width"));this.za.set("contentHeight",a.get("height"));this.za.set("alpha",0)}};a.prototype.pz=function(){if(this.za){this.za.remove();this.za=q}};a.prototype.wO=function(){this.qz();if(this.get("video")){this.u=new g;var a=i.IV(this.get("video"));this.u.set("contentWidth",a.get("width"));this.u.set("contentHeight",a.get("height"));
this.u.set("alpha",0);this.v=B.create(this.Ya.$a,j.VU(a.get("url")));this.gb=new r(this.Ya.$a,this.m,this.v);this.cn()}};a.prototype.qz=function(){if(this.u){this.eo();this.gb.clear();this.gb=q;this.v.clear();this.df=this.v=q;this.u.remove();this.u=q}};a.prototype.ifa=function(){this.M0();this.Kc=new n("#000000")};a.prototype.M0=function(){if(this.Kc){this.Kc.remove();this.Kc=q}};a.prototype.yA=function(){this.trigger(d.Ub);this.trigger(d.T)};a.prototype.zA=function(a,b){var c=0;b.Ao(function(a){var b=
0,d;this.Sd.Mi(a)?b=100:(d=this.yc.Mi(a))&&(b=d.Ih);c=c+b}.bind(this));this.trigger(new w(d.ic,c/b.Lc.length))};a.prototype.Fg=function(){this.Oa()};a.prototype.Ye=function(){this.Oa()};a.prototype.mq=function(){this.m.trigger(d.Ia)};a.prototype.cn=function(){this.v.bind(G.Cf,this.Ye,this,o);this.v.bind(G.wd,this.Fg,this,o);this.v.bind(G.Vf,this.mq,this,o)};a.prototype.eo=function(){this.v.unbind(G.Cf,this.Ye,this,o);this.v.unbind(G.wd,this.Fg,this,o);this.v.unbind(G.Vf,this.mq,this,o)};a.prototype.Ri=
function(a){if(a.Gd==d.Sh){if(!a.Og()&&this.get("visible")){a.Ro(this.m);this.set("over",this.Hq(a));this.set("gazeOver",this.foa(a))}else this.set("over",y);if(this.get("over")){a.Pq(this.m);a.ar()&&a.Qq(this.m);a.Bh(this.get("popupDistance"))}if(this.C("over")){this.m.trigger(this.get("over")?d.Ic:d.jc);a.ar()&&this.m.trigger(this.get("over")?d.fk:d.Ef)}}else if(a.Gd==d.Rh&&!a.Og()&&this.get("visible")){a.Ro(this.m);a.Bh(this.get("popupDistance"));this.Hq(a)?a.ksa()||this.m.trigger(d.U):this.m.set("visible",
y)}};a.prototype.Hq=function(a){return this.e7(a.Ok)};a.prototype.foa=function(a){a=a.xz;return!!a&&this.e7([a])};a.prototype.e7=function(a){if(this.get("visible"))for(var a=(this.get("itemVisible")=="video"?this.u:this.za).tk(a),b=0;b<a.length;b++){var c=a[b];if(u.sl(c.source,c.x,c.y))return o}return y};return a});
define("eu","require,eD,fD,kd,bS,gm".split(","),function(a){var b=a("eD"),c=a("fD"),e=a("kd"),d=a("bS"),f=a("gm"),i=b.extend(f,function(a,b,d,e){f.call(this);this.$a=a;this.D=b;this.Bb=d;this.g=e;this.xA=new c;this.cT(this);this.set("tag","Root")});i.prototype.Af=function(a){return this.xA.get(a)};i.prototype.all=function(){for(var a=[],b=[this];b.length>0;){var c=b.pop();a.push(c);for(var d=c.cc.length-1;d>=0;d--)b.push(c.cc[d])}return a};i.prototype.update=function(a){var b=this.all(),c=b.length,
d;for(d=0;d<c;d++)b[d].Sea();for(d=0;d<c;d++)b[d].set("index",d);for(d=0;d<c;d++)b[d].G(a);for(d=0;d<c;d++)b[d].Nea()};i.prototype.Oa=function(){this.so||this.trigger(new d(e.$));f.prototype.Oa.call(this)};i.prototype.Eo=function(a){return Array.isArray(a)?a.map(this.Eo.bind(this)):this.xA.get(a)||i.factory.create(a)};return i});
define("jo","require,eD,hr,eQ,gm,u".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("eQ"),d=a("gm"),f=a("u"),a=b.extend(d,function(a){d.call(this);this.m=a;this.uH=this.uH.bind(this);this.vH=this.vH.bind(this);this.Zk=new THREE.Matrix4;this.g8=y;this.ji=new THREE.Matrix4;this.xe=q;this.zq=new THREE.Matrix4;this.wb=1;this.eB=0;this.Zb=q;this.nB=0;this.o_()}),i=Math.PI/180;a.prototype.Mb=function(){d.prototype.Mb.call(this);this.trigger(EventName.Ub);this.trigger(EventName.T);this.m.set("state",
this.m.get("startState"));c.ed(this.m,["intensity","speed"],this.uH,o);c.ed(this.m,["state"],this.vH,o)};a.prototype.Xb=function(){c.Cd(this.m,["intensity","speed"],this.uH);c.Cd(this.m,["state"],this.vH);this.m.set("state",e.K);this.WN()};a.prototype.uH=function(){this.o_();this.Tla()};a.prototype.vH=function(){this.Oa()};a.prototype.o_=function(){var a=this.m.get("intensity");speed=this.m.get("speed");var b,c,d,e,i,p;if(f.Qa()||f.browser()==f.jy){b=1E3;c=350;d=1800;e=400;p=0.8;i=1.2}else if(f.gf()){b=
1500;c=500;d=2500;e=500;p=0.8;i=1.2}else{b=3E3;c=1E3;d=5E3;e=1E3;p=0.6;i=1}this.h_=0.75;this.J0=0.5;this.UG=4;this.rA=-2;this.bq=3;this.oja=35;this.sga=7;this.Ska=p+a*(i-p);this.V2=this.lA=0.15+speed*1.35;this.Rka=c+a*(b-c);this.tga=e+a*(d-e)};a.prototype.Tla=function(){if(this.xe){this.WN();this.A0()}};a.prototype.A0=function(){this.una();this.Ula();this.xe=new THREE.Group;for(var a=this.m.get("initialState")==e.N,b=this.Rka,c=this.tga;c+b>0;){var d=Math.random()*(c+b)<=c;d?c--:b--;var f=new THREE.Sprite(this.qv());
f.matrixAutoUpdate=y;f.overdraw=y;f.material.opacity=0;f.userData={Oqa:d,Tx:new THREE.Matrix4,B8:new THREE.Matrix4,y:m,Aba:m,mW:a};this.xe.add(f);a&&this.IS(f,this.rA,this.bq);this.Sla(f)}this.eB=a?this.xe.children.length:0;this.JU.add(this.xe);this.q_()};a.prototype.WN=function(){if(this.xe){this.xe.parent&&this.xe.parent.remove(this.xe);for(var a=0,b=this.xe&&this.xe.children.length;a<b;a++)this.xe.children[a].material.dispose();this.xe=q;this.nB=0}};a.prototype.Ula=function(){this.wb=this.Ska/
32;this.zq=(new THREE.Matrix4).makeScale(this.wb,this.wb,this.wb)};a.prototype.IS=function(a,b,c){b=b+Math.random()*(c-b);if(a.userData.Oqa){var c=this.sga,d=360*Math.random()*i;a.userData.Tx.makeTranslation(c*Math.cos(d),b,c*Math.sin(d))}else{c=Math.random()*2*Math.PI;d=this.UG*Math.sqrt(Math.random());a.userData.Tx.makeTranslation(d*Math.cos(c),b,d*Math.sin(c))}a.userData.Tx.multiply(this.zq);a.userData.y=b};a.prototype.Sla=function(a){var b=this.V2+Math.random()*(this.lA-this.V2),c=Math.random()*
this.oja,d=Math.random()*360,f=Math.sin(d*i)*Math.sin(c*i)*b,e=-Math.cos(c*i)*b,b=Math.cos(d*i)*Math.sin(c*i)*b;a.userData.Aba=e*this.wb;a.userData.B8.makeTranslation(f,e,b)};a.prototype.una=function(){if(!this.Zb){var a=document.createElement("canvas");a.width=a.height=32;var b=a.getContext("2d"),c=b.createRadialGradient(a.width*0.5,a.height*0.5,a.height*0.2,a.width*0.5,a.height*0.5,a.height*0.5);c.addColorStop(0,"rgba(255, 255, 255, 0.8)");c.addColorStop(1,"rgba(255, 255, 255, 0)");b.fillStyle=
c;b.fillRect(0,0,a.width,a.height);this.Zb=new THREE.Texture;this.Zb.image=a;this.Zb.needsUpdate=o}};a.prototype.qv=function(){var a=new THREE.SpriteMaterial;a.map=this.Zb;a.side=THREE.DoubleSide;a.transparent=o;a.depthTest=y;a.needsUpdate=o;return a};a.prototype.G=function(a){d.prototype.G.call(this,a);this.JU=a.Ie;if(this.JU!=(this.xe&&this.xe.parent)){this.WN();this.JU&&this.A0()}else this.C("index")&&this.q_();this.wpa(a)};a.prototype.wpa=function(a){if(this.xe){if(this.C("composedTranslationX",
"composedTranslationY","composedTranslationZ")){this.g8=this.get("composedTranslationX")!=0||this.get("composedTranslationY")!=0||this.get("composedTranslationZ")!=0;this.Zk.makeTranslation(-this.get("composedTranslationX")*this.UG,this.get("composedTranslationY")*this.UG,this.get("composedTranslationZ")*this.UG)}var b=this.m.get("state")==e.N,c=this.xe.children,d=c.length,f=b?Math.round(d*a.pd/this.m.get("startDuration")):0;if(this.eB+f>0){this.nB=b?0:Math.min(this.eB,this.nB+Math.round(d*a.pd/this.m.get("stopDuration")));
a=this.get("composedAlpha");for(b=0;b<d;b++){var i=c[b];if(!i.userData.mW)if(f>0){f--;i.userData.mW=o;this.eB++;this.IS(i,this.bq,this.bq+(this.bq-this.rA))}else continue;i.userData.Tx.multiply(i.userData.B8);i.userData.y=i.userData.y+i.userData.Aba;if(i.userData.y<this.rA){if(this.nB>0){this.nB--;i.userData.mW=y;this.eB--;i.material.opacity=0;continue}this.IS(i,this.bq,this.bq)}var p=a;i.userData.y<this.rA+this.J0?p=p*((i.userData.y-this.rA)/this.J0):i.userData.y>this.bq-this.h_&&(p=p*((this.bq-
i.userData.y)/this.h_));i.material.opacity=p;if(this.g8){i.matrix.copy(this.Zk);i.matrix.multiply(i.userData.Tx)}else i.matrix.copy(i.userData.Tx);i.matrixWorldNeedsUpdate=o}this.Oa()}}};a.prototype.q_=function(){if(this.xe)for(var a=this.get("index"),b=0;b<this.xe.children.length;b++)this.xe.children[b].renderOrder=a};return a});
define("du","require,eD,hr,kd,eQ,fc,bN,fh,gm,jZ,cy,iG,dv,jv,hf,jl,di,hT,jP,bq,cX,R".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("eQ"),f=a("fc"),i=a("bN"),j=a("fh"),k=a("gm"),n=a("jZ"),g=a("cy"),l=a("iG"),r=a("dv"),p=a("jv"),s=a("hf"),t=a("jl"),u=a("di"),v=a("hT"),x=a("jP"),w=a("bq"),A=a("cX"),C=a("R"),a=b.extend(k,function(a){k.call(this);this.m=a;this.li.push(this.m);this.We=this.We.bind(this);this.Cl(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoHotspot");
this.set("enabled",o);this.set("inVR",y);this.set("overlaysEnabled",o);this.set("enabledInVR",o);this.set("enabledInStandard",o);this.set("interactionEnabled",o);this.set("centerOverDisplay",y);this.set("loadingActive",y);this.set("frameEmpty",o);this.set("state",d.K);this.set("itemVisible","none");this.set("blending",0);this.set("chromaColor",m);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.yc=this.Sd=q;this.si=y;this.u=this.za=q;this.m8=y;this.Db=new p;this.df=this.gb=this.v=
q;this.yn=[]});a.prototype.Mb=function(){this.Sd=(new s(e.T)).Ui(this.yA.bind(this));this.yc=(new s(e.ic)).kl(this.zA.bind(this));k.prototype.Mb.call(this);c.ed(this.m,["playbackPositions","blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode","image","video","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.We,o)};a.prototype.Xb=function(){this.Sd.dispose();this.yc.dispose();c.Cd(this.m,
["playbackPositions","blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode","image","video","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.We);this.pz();this.qz();k.prototype.Xb.call(this)};a.prototype.We=function(){this.set("image",this.m.get("image"));this.set("video",this.m.get("video"));this.set("enabled",this.m.get("enabled"));this.set("enabledInStandard",this.m.get("enabledInStandard"));
this.set("enabledInVR",this.m.get("enabledInVR"));this.set("fadeInDuration",this.m.get("fadeInDuration"));this.set("fadeOutDuration",this.m.get("fadeOutDuration"));this.set("interactionEnabled",this.m.get("interactionEnabled"));this.set("state",this.m.get("state"));this.set("videoVisibleOnStop",this.m.get("videoVisibleOnStop"));this.set("scaleMode",this.m.get("scaleMode"));this.set("distance",this.m.get("distance"));this.set("playbackPositions",this.m.get("playbackPositions"));this.set("blending",
this.m.get("blending"));this.set("chromaColor",this.m.get("chromaColor"));this.set("chromaThreshold",this.m.get("chromaThreshold"));this.set("chromaSmoothing",this.m.get("chromaSmoothing"))};a.prototype.G=function(a){this.set("inVR",a.Jb);this.set("hotspotsEnabled",a.Hx);this.yw=a.ra;this.xw=a.pitch;this.UT();this.Soa();this.Ct();k.prototype.G.call(this,a);this.mJ(a);this.rU();this.Ft(a)};a.prototype.UT=function(){if(this.C("video","image")){var a=[];if(this.C("image")){this.uO();this.za&&a.push(this.za)}if(this.C("video")){this.wO();
this.u&&a.push(this.u)}this.Lh(a);this.Sd.vd(a);this.yc.vd(a)}};a.prototype.Ct=function(){if(this.C("playbackPositions","currentTime")){this.Db.YK(this.get("playbackPositions"));this.Db.XK(this.get("currentTime"));this.set("yaw",this.Db.get("yaw"));this.set("pitch",this.Db.get("pitch"));this.set("roll",this.Db.get("roll"));this.set("rotationX",this.Db.get("rotationX"));this.set("rotationY",this.Db.get("rotationY"));this.set("hfov",this.Db.get("hfov"));this.set("vfov",this.Db.get("vfov"));this.set("alpha",
this.Db.Ji())}this.C("yaw","pitch","roll","rotationX","rotationY","hfov","vfov","distance","scaleMode","image","video")&&this.Ta().forEach(function(a){a.set("yaw",this.get("yaw"));a.set("pitch",this.get("pitch"));a.set("roll",this.get("roll"));a.set("rotationX",this.get("rotationX"));a.set("rotationY",this.get("rotationY"));a.set("hfov",this.get("hfov"));a.set("vfov",this.get("vfov"));a.set("scaleMode",this.get("scaleMode"));a.set("distance",this.get("distance"))}.bind(this))};a.prototype.Soa=function(){if(this.C("video",
"image","blending","chromaColor","chromaThreshold","chromaSmoothing")){if(this.u){var a=new i.Yj(this.get("video").Gh());a.Tq=this.get("blending");a.qm=this.get("chromaColor");a.QC=this.get("chromaThreshold");a.PC=this.get("chromaSmoothing");this.u.set("materialConfig",a)}if(this.za){a=new i.Yj;a.Tq=this.get("blending");a.qm=this.get("chromaColor");a.QC=this.get("chromaThreshold");a.PC=this.get("chromaSmoothing");this.za.set("materialConfig",a)}}};a.prototype.mJ=function(){var a=y;if(this.m.get("autoplay")&&
this.C("video","composedAlpha","enabledInVR","enabledInStandard","enabled","blendingActive")&&!this.get("blendingActive")&&this.get("composedAlpha")>0&&this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard"))){this.m.set("state",d.N);a=o}!a&&this.C("itemVisible")&&this.get("itemVisible")!="video"&&this.v&&this.v.oe(d.K)};a.prototype.rU=function(){var a=this.v&&this.v.iK(),b=!!a&&a.isEmpty();if(b&&!this.get("frameEmpty")&&
this.v.Pg()==d.N&&this.m.get("loop")){a=this.df;b=y}this.set("frameEmpty",b);if(!this.df||a&&!this.df.isEqual(a)){this.df=a;this.u.set("source",this.df.ws);this.u.set("sourceUpdated",o);this.Oa()}else this.v.Pg()==d.N&&this.Oa()};a.prototype.Ft=function(a){var b=this.get("itemVisible");if(this.C("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.u&&(!this.za||!this.get("frameEmpty")&&(this.get("state")!=d.K||this.m8&&this.get("videoVisibleOnStop")))?c="video":this.za&&(c="image");if(this.get("state")!=d.K)this.m8=o}this.set("itemVisible",c);this.set("beamEnabled",c!="none"&&this.get("interactionEnabled"))}if(this.C("itemVisible")){var c=this.get("itemVisible")!="none",f=b!="none",b=c==f?100:c?this.get("fadeInDuration"):this.get("fadeOutDuration");c!=f&&this.m.trigger(c?
e.Le:e.Df);var f=this.za?this.za.get("alpha"):0,g=this.u?this.u.get("alpha"):0,c=[{Cu:g,image:f}];if(this.get("itemVisible")=="video"){c.push({Cu:1,image:f,time:b*(1-g)});c.push({Cu:1,image:0,time:50*(f-0)})}else if(this.get("itemVisible")=="image"){c.push({Cu:g,image:1,time:b*(1-f)});c.push({Cu:0,image:1,time:50*(g-0)})}else c.push({Cu:0,image:0,time:Math.max(g,f,1/b)*b});this.yn=[];for(b=1;b<c.length;b++)c[b].time>0&&this.yn.push(new x("linear",[new w("imageAlpha",c[b-1].image,c[b].image),new w("videoAlpha",
c[b-1].Cu,c[b].Cu)],c[b].time))}if(this.yn.length>0){this.yn[0].me()?this.yn.shift():this.yn[0].Ua(a.pd);if(this.yn.length>0){this.za&&this.za.set("alpha",this.yn[0].nb("imageAlpha"));this.u&&this.u.set("alpha",this.yn[0].nb("videoAlpha"));this.Oa()}}};a.prototype.uO=function(){this.pz();if(this.get("image")){var a=t.Kra(this.m,this.get("panoramaPixelsPerDegree"));this.za=new g;this.za.set("url",a.get("url"));this.za.set("contentWidth",a.get("width"));this.za.set("contentHeight",a.get("height"));
this.za.set("alpha",0)}};a.prototype.pz=function(){if(this.za){this.za.remove();this.za=q}};a.prototype.wO=function(){this.qz();if(this.get("video")){this.u=new n;var a=f.IV(this.get("video"));this.u.set("contentWidth",a.get("width"));this.u.set("contentHeight",a.get("height"));this.u.set("alpha",0);this.v=A.create(this.Ya.$a,j.VU(a.get("url")));this.v.Ota();this.Gl=new l(this.m,this.v);this.gb=new r(this.Ya.$a,this.m,this.v);this.cn()}};a.prototype.qz=function(){if(this.u){this.eo();this.gb.clear();
this.gb=q;this.Gl.clear();this.Gl=q;this.v.clear();this.df=this.v=q;this.u.remove();this.u=q}};a.prototype.yA=function(){this.trigger(e.Ub);this.trigger(e.T)};a.prototype.zA=function(a,b){var c=0;b.Ao(function(a){(a=b.Mi(a))&&(c=c+a.Ih)});this.trigger(new v(e.ic,c/b.Lc.length))};a.prototype.Fg=function(){this.Oa()};a.prototype.Ye=function(){this.Oa()};a.prototype.cn=function(){this.v.bind(C.Cf,this.Ye,this,o);this.v.bind(C.wd,this.Fg,this,o)};a.prototype.eo=function(){this.v.unbind(C.Cf,this.Ye,this,
o);this.v.unbind(C.wd,this.Fg,this,o)};a.prototype.Ri=function(a){if(a.Gd==e.Sh){var b=!a.Og()&&this.Hq(a);if(b){a.Pq(this.m);this.m.get("useHandCursor")&&a.Qq(this.m);a.Bh(this.get("distance"));var c=this.qa(a.cr());c&&a.MJ(c,this.Iq(a.cr()))}if(this.si!=b){this.si=b;this.m.trigger(this.si?e.Ic:e.jc);a.ar()&&this.m.trigger(this.si?e.fk:e.Ef)}}else if(a.Gd==e.Rh&&!a.Og()&&this.Hq(a)){this.m.YC(e.U,o).length>1&&a.Ro(this.m);a.Bh(this.get("distance"));this.m.trigger(e.U)}};a.prototype.Hq=function(a){if(this.get("beamEnabled"))for(var a=
(this.get("itemVisible")=="video"?this.u:this.za).tk(a.Ok),b=0;b<a.length;b++){var c=a[b];if(u.sl(c.source,c.x,c.y))return o}return y};a.prototype.qa=function(a){return!a||this.m.get("displayTooltipInTouchScreens")&&this.Ya.D.get("displayTooltipInTouchScreens")!==y?this.m.get("toolTip",""):""};a.prototype.Iq=function(a){if(a){var a=this.get("yaw")-this.yw,b=this.get("pitch")-this.xw;return Math.sqrt(a*a+b*b)}return 0};return a});
define("cO","require,dx,gm,id,gL,iz,gI,jm,eg,O,jG,cL,bp,eu,jo,du,bB".split(","),function(a){function b(a,b){Array.isArray(b)||(b=[b]);for(var d=0;d<b.length;d++)if(c.sb(b[d],a))return o;return y}var c=a("dx"),e=a("gm"),d=a("id"),f=a("gL"),i=a("iz"),j=a("gI"),k=a("jm"),n=a("eg"),g=a("O"),l=a("jG"),r=a("cL"),p=a("bp"),s=a("eu"),t=a("jo"),u=a("du"),v=a("bB"),a={};s.factory=a;a.create=function(a){if(a instanceof e)return a;if(b(a,["HDRPanorama","LivePanorama","Panorama","VideoPanorama"]))return new g(a);
if(b(a,["CubicPanoramaFrame","SphericPanoramaFrame"]))return v.get(a)==v.zl&&b(a.get("sphere"),"Video360Resource")?new r(a):new l(a);if(b(a,"HotspotPanoramaOverlay"))return new i(a);if(b(a,["HotspotPanoramaOverlayImage","HotspotPanoramaOverlayMap"]))return new j(a);if(b(a,"Menu"))return new n(a);if(b(a,["CeilingCapPanoramaOverlay","TripodCapPanoramaOverlay"]))return new d(a);if(b(a,["FlatHotspotPanoramaOverlayImage","FlatHotspotPanoramaOverlayMap"]))return new f(a);if(b(a,["LensFlarePanoramaOverlay"]))return new k(a);
if(b(a,["SnowPanoramaOverlay"]))return new t(a);if(b(a,["PopupPanoramaOverlay"]))return new p(a);if(b(a,["VideoPanoramaOverlay"]))return new u(a);h("Invalid script object")};return a});
define("hI",["require"],function(){var a={u9:function(b,c,e,d,f,i){return a.Zqa(b,2*(c/d)-1,2*-(e/f)+1,i)},Zqa:function(a,c,e,d){d||(d=new THREE.Ray);d.origin.setFromMatrixPosition(a.matrixWorld);d.direction.set(c,e,0.5).unproject(a).sub(d.origin).normalize();return d},nra:function(a,c){c||(c=new THREE.Ray);c.origin.set(0,0,0);c.direction.set(0,0,-1).applyQuaternion(a.quaternion);return c},mra:function(a,c){c||(c=new THREE.Ray);c.origin.set(0,0,0).applyMatrix4(a);c.direction.set(0,0,-1).applyMatrix4(a).sub(c.origin).normalize();
return c}};return a});
define("ea",["require"],function(){function a(a){this.yd=this.Jz(a.get("vrPointerColor"));this.am=this.Jz(a.get("vrPointerSelectionColor"));this.qo=this.Bj([0,0,0],0);this.NI=this.Bj([0,0,0],0.125);this.Yfa=this.Bj(this.yd,1);this.Zfa=this.Bj(this.am,1);this.Iea=this.Bj(this.am,1);this.Hea=this.Bj(this.yd,0.5);this.Fea=this.Bj(this.yd,1);this.Gea=this.Bj(this.am,1);this.Yg=this.ce=64;this.mN=4E3;this.O0=0.1;this.Zg=0.16;this.Ej=0.04;this.V_=this.sF=0.68-this.Ej;this.rF=1-this.Ej;this.q=document.createElement("canvas");
this.q.width=this.ce;this.q.height=this.Yg;this.ga=this.q.getContext("2d");this.si=this.RN=y;this.Wv=this.yH=m;this.Xr=0}a.prototype.Jz=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.Bj=function(a,c){return"rgba("+a.join(",")+", "+c+")"};a.prototype.xua=function(a,c){this.si=a;this.yH=c};a.prototype.TK=N("RN");a.prototype.Fc=Q("ce");a.prototype.qd=Q("Yg");a.prototype.update=function(a){return this.RN?this.bga(a):
this.si?this.gga():this.fga()};a.prototype.tF=function(){this.ga.clearRect(0,0,this.ce,this.Yg)};a.prototype.fga=function(){if("initial"==this.Wv)return y;this.tF();this.S0(this.Yfa);this.Wv="initial";return o};a.prototype.gga=function(){if(this.yH===m){if("over"==this.Wv)return y;this.tF();this.S0(this.Zfa)}else this.Nka(this.yH);this.Wv="over";return o};a.prototype.bga=function(a){for(this.Xr+=a;this.Xr>this.mN;)this.Xr-=this.mN;this.Cea(this.Xr/this.mN);this.Wv="changing";return o};a.prototype.S0=
function(a){this.ah(this.O0+this.Ej,0,this.qo,this.NI,0,2*Math.PI);this.ah(this.O0,0,this.qo,a,0,2*Math.PI)};a.prototype.hga=function(a){this.ah(this.sF-0.5*(this.Zg+this.Ej),this.Zg+this.Ej,this.NI,this.qo,0,2*Math.PI);this.ah(this.sF-0.5*this.Zg,this.Zg,this.Hea,this.qo,0,2*Math.PI);this.ah(this.sF-0.5*this.Zg,this.Zg,this.Iea,this.qo,0.5*Math.PI,(0.5+2*a)*Math.PI)};a.prototype.cga=function(a,c){this.ah(this.V_-0.5*(this.Zg+this.Ej),this.Zg+this.Ej,this.NI,this.qo,0,2*Math.PI);this.ah(this.V_-0.5*
this.Zg,this.Zg,this.Fea,this.qo,0,2*Math.PI);a=(0.5+2*a)*Math.PI;for(c=(0.5+2*c)*Math.PI;c<a;)c+=2*Math.PI;var e=a-this.Ej/(2*this.rF*Math.PI),d=c+this.Ej/(2*this.rF*Math.PI);Math.abs(d-e+2*Math.PI)<2*this.Ej&&(e=0,d=c);this.ah(this.rF-0.5*(this.Zg+this.Ej),this.Zg+this.Ej,this.NI,this.qo,e,d);this.ah(this.rF-0.5*this.Zg,this.Zg,this.Gea,this.qo,a,c)};a.prototype.ah=function(a,c,e,d,f,i){var j=Math.round(0.5*this.ce),k=Math.round(0.5*this.Yg),n=Math.min(j,k),a=Math.round(a*n),g=this.ga;g.$ra=g.Cxa=
o;g.lineWidth=c*n;g.strokeStyle=e;g.fillStyle=d;g.beginPath();g.arc(j,k,a,f,i,y);g.stroke();g.fill()};a.prototype.Cea=function(a){this.tF();var c;0.25>a?(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.cga(a,c)};a.prototype.Nka=function(a){this.tF();this.hga(a)};return a});
define("iD","require,eD,dc,gB,ea,cz".split(","),function(a){var b=a("eD"),c=a("dc"),e=a("gB"),d=a("ea"),f=a("cz"),a=b.extend(e,function(){e.call(this);this.q=q;this.set("tag","Reticle");this.set("changing",y);this.set("over",y);this.set("overProgress",m);this.set("visible",o);this.set("attachToCamera",o)});a.prototype.G=function(a){this.Qf(a);this.oC(a);e.prototype.G.call(this,a)};a.prototype.Qf=function(a){if(!this.q){this.set("textureSource",new f);this.q=new d(this.Ya.D);this.get("textureSource").Tg(this.q.q);
this.set("contentWidth",this.q.Fc());this.set("contentHeight",this.q.qd());this.set("hfov",6);this.set("distance",this.Ya.D.get("vrPointerDistance"))}this.C("changing")&&this.q.TK(this.get("changing"));this.C("over","overProgress")&&this.q.xua(this.get("over"),this.get("overProgress"));this.q.update(a.pd)&&this.get("textureSource").update();this.get("changing")&&this.Oa()};a.prototype.oC=function(){this.Mj()};a.prototype.ro=function(){this.C("composedAlpha","meshGroup","visible")&&this.Ny()};a.prototype.Ny=
function(){c.ud(this.get("meshGroup"),this.get("visible")?this.get("composedAlpha"):0)};return a});
define("ba","require,jquery.mod,cV,kd,u,kr,dn".split(","),function(a){function b(a){this.sa=a;this.n7=this.sa.pj;this.sa.bind(d.qc,this.oi,this);this.I=c("<span></span>");this.I.css({position:"absolute","z-index":i.bZ,"text-align":"center",display:"none"});f.Qa()||this.I.css({"pointer-events":"none"});this.Kc=c("<span></span>");this.Kc.css({position:"absolute",left:0,top:0,right:0,bottom:0});this.I.append(this.Kc);this.dJ=c("<span></span>");this.dJ.css({position:"relative"});this.I.append(this.dJ);
this.Pf=this.xG=this.mf=q;this.M4=this.L4=m;this.Tp=y;this.o7=m}var c=a("jquery.mod"),e=a("cV"),d=a("kd"),f=a("u"),i=a("kr"),j=a("dn"),k={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.Ab=Q("I");b.prototype.$x=function(a){if(!this.n7){for(;a&&a.get("toolTipDisabled");)a=a.getParent();this.hide();this.mf&&
e(e(k).keys()).each(function(a){this.mf.unbind(d.L(a),this.AR,this)},this);if(this.mf=a){e(e(k).keys()).each(function(a){this.mf.bind(d.L(a),this.AR,this)},this);this.AR()}}};b.prototype.Wua=function(a,b){this.mf=a;this.o7=b;this.BG()||(this.Tp?this.E6():this.NB())};b.prototype.C6=function(a,b,c,f,e){this.Tp&&this.mf.trigger(d.GM);this.Qoa(a);this.dJ.html(this.Yha(b));var b=this.I.outerWidth(),j=this.I.outerHeight();if(e){c=c-this.I.width()*0.5;f=f-this.I.height()*0.5}c=Math.max(Math.min(c,this.sa.ua()-
b-3),3);f=Math.max(Math.min(f,this.sa.Za()-j-3),3);this.I.css("left",c+"px");this.I.css("top",f+"px");this.I.css("display","inline");this.mf.trigger(d.aZ);this.Tp=o;(e||a.get("checkToolTipOcclusion"))&&this.Ana(a,c,f)};b.prototype.hide=function(){this.ks();this.T6();if(this.Tp){this.I.css("display","none");this.mf.trigger(d.GM);this.Tp=y}};b.prototype.AR=function(){this.mf.get("toolTip")?this.BG()||(this.Tp?this.D6():this.NB()):this.BG()?this.ks():this.Tp&&this.hide()};b.prototype.oi=function(a){this.L4=
a.pageX;this.M4=a.pageY};b.prototype.D6=function(){var a=this.L4,b=this.M4+25;this.C6(this.mf,this.mf.get("toolTip"),a,b,y)};b.prototype.E6=function(){var a=this.mf.Ab().offset();this.C6(this.mf,this.o7,a.left+this.mf.ua()*0.5,a.top+this.mf.Za()*0.5,o)};b.prototype.BG=function(){return this.Pf!=q};b.prototype.NB=function(){var a=this.mf&&this.mf.get("toolTipDisplayTime");if(a===m||a===q)a=k.toolTipDisplayTime;this.ks();this.Pf=setTimeout(function(){this.Pf=q;this.n7?this.E6():this.D6()}.bind(this),
a)};b.prototype.ks=function(){if(this.BG()){clearTimeout(this.Pf);this.Pf=q}};b.prototype.Ana=function(a,b,c){this.T6();var d=function(){this.I.css("display",this.Tp&&!this.Ria(a,b,c)?"inline":"none")}.bind(this);this.xG=setInterval(d,300);d()};b.prototype.T6=function(){if(this.xG){clearInterval(this.xG);this.xG=q}};b.prototype.Qoa=function(a){function b(c){var d=a.get(c);return d===m?k[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.Kc.css(c);c={};
c["font-family"]=j.Vq(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.dJ.css(c)};b.prototype.Ria=function(a,b,c){for(var b=document.elementsFromPoint(b,c),a=a.Ab()[0],c=this.sa.Ab()[0],d=0;d<b.length;d++){var f=b[d];if(a==f||a.contains(f))break;if(!this.I[0].contains(f)&&c.contains(f)){var e=window.getComputedStyle(f);if(e.display!="none"&&e.visibility!="hidden"&&(f.tagName=="CANVAS"?1:this.Yea(e.backgroundColor))*e.opacity>0.29)return o}}return y};b.prototype.Yea=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.Yha=function(a){for(var a=(a||"").split("\n"),b=0;b<a.length;b++)a[b]=this.oga(a[b]);return a.map(function(a){return"<div>"+a+"</div>"})};b.prototype.oga=function(a){b.QZ.nodeValue=a;return b.MZ.innerHTML};b.Iba=k;b.MZ=document.createElement("pre");b.QZ=document.createTextNode("");b.MZ.appendChild(b.QZ);b.iwa=600;return b});
define("ce",["require","ba","by","dn"],function(a){function b(a,b){this.D=a;this.xh=b;this.rna()}var c=a("ba"),e=a("by"),d=a("dn");b.prototype.Fc=function(){return this.q.width};b.prototype.qd=function(){return this.q.height};b.prototype.rna=function(){this.q=document.createElement("canvas");var a=this.q.getContext("2d"),b=this.xh.split("\n"),c=this.ee("toolTipBackgroundColor"),k=this.ee("toolTipBackgroundOpacity"),n=this.ee("toolTipBorderRadius"),g=this.ee("toolTipBorderColor"),l=this.ee("toolTipBorderSize");
this.ee("toolTipDisplayTime");var r=this.ee("toolTipFontFamily"),p=this.ee("toolTipFontSize"),s=this.ee("toolTipFontColor"),t=this.ee("toolTipFontWeight"),u=this.ee("toolTipFontStyle"),v=this.ee("toolTipPaddingBottom"),x=this.ee("toolTipPaddingLeft"),w=this.ee("toolTipPaddingTop"),A=this.ee("toolTipPaddingRight"),C=this.ee("toolTipOpacity"),B=this.ee("toolTipTextShadowBlurRadius"),G=this.ee("toolTipTextShadowColor"),z=this.ee("toolTipTextShadowHorizontalLength"),F=this.ee("toolTipTextShadowVerticalLength"),
H=this.ee("toolTipTextShadowOpacity"),J=new e.WY;J.fontFamily=r;J.fontSize=p+(isNaN(p)?"":"px");J.fontWeight=t;J.fontStyle=u;var O=b.map(function(b){return e(b,J,a)}),K=0,M=0;O.forEach(function(a){K=Math.max(a.width,K);M+=a.height});var L=1<b.length?0.25*(M/b.length):0,M=M+(b.length-1)*L,A=l+x+K+A+l,v=l+w+M+v+l;this.q=document.createElement("canvas");a=this.q.getContext("2d");this.q.width=A;this.q.height=v;a.globalAlpha=C;a.strokeStyle=g;a.fillStyle="transparent"===c?"rgba(0,0,0,0)":this.b_(k,c);
a.lineWidth=l;a.beginPath();a.moveTo(n,0);a.lineTo(A-n,0);a.quadraticCurveTo(A,0,A,n);a.lineTo(A,v-n);a.quadraticCurveTo(A,v,A-n,v);a.lineTo(n,v);a.quadraticCurveTo(0,v,0,v-n);a.lineTo(0,n);a.quadraticCurveTo(0,0,n,0);a.closePath();a.fill();0<l&&a.stroke();a.fillStyle=s;a.font=t+" "+("normal"!=u?u+" ":"")+p+(isNaN(p)?"":"px")+" "+d.Vq(r);a.shadowColor=this.b_(H,G);a.shadowOffsetX=z;a.shadowOffsetY=F;a.shadowBlur=B;a.textBaseline="middle";a.textAlign="center";var D=l+x+0.5*K,P=l+w;b.forEach(function(b,
c){a.fillText(b,Math.round(D),Math.round(P+0.5*O[c].height));P+=O[c].height+L})};b.prototype.ee=function(a){var b=this.D.get(a);return b===m?c.Iba[a]:b};b.prototype.b_=function(a,b){return"rgba("+parseInt("0x"+b.substr(1,2))+", "+parseInt("0x"+b.substr(3,2))+", "+parseInt("0x"+b.substr(5,2))+", "+a+")"};return b});
define("ka","require,eD,eO,gB,ce,cz".split(","),function(a){var b=a("eD"),c=a("eO"),e=a("gB"),d=a("ce"),f=a("cz"),a=b.extend(e,function(){e.call(this);this.q=q;this.set("tag","ToolTip");this.set("text","");this.Jj=new THREE.Vector3(0,0,-c.Yq())});a.prototype.G=function(a){this.Qf(a);e.prototype.G.call(this,a)};a.prototype.Qf=function(a){if(!this.q||this.C("text")){this.get("textureSource")||this.set("textureSource",new f);this.q=new d(this.Ya.D,this.get("text"));this.get("textureSource").Tg(this.q.q);
this.set("contentWidth",this.q.Fc());this.set("contentHeight",this.q.qd());this.set("hfov",2*Math.atan2(this.q.Fc()*0.5,600)*i);this.set("distance",this.Ya.D.get("vrPointerDistance"));var b=this.get("matrix");if(b){this.Jj.applyMatrix4(b);(this.Jj.x!=0||this.Jj.z!=0)&&this.set("yaw",i*Math.atan2(this.Jj.x,-this.Jj.z));(this.Jj.y!=0||this.Jj.z!=0)&&this.set("pitch",i*Math.atan2(this.Jj.y,Math.sqrt(this.Jj.z*this.Jj.z+this.Jj.x*this.Jj.x))+j)}else{this.set("yaw",a.ra);this.set("pitch",a.pitch+k)}}};
var i=180/Math.PI,j=2,k=5;return a});define("jJ",["require","hI","M"],function(a){function b(a,b){this.zf=a;this.g=b;this.xz=q}var c=a("hI"),e=a("M");b.prototype.update=E();b.prototype.clear=E();b.prototype.Bf=Q("zf");b.prototype.IP=function(){var a=this.k.Ie&&e.Yt(this.k.Ie);return this.xz=a?c.nra(a,this.xz):q};b.HE="gaze";b.IM="gaze_click";b.xy="laser";b.yy="mouse";b.zy="touch";return b});
define("dB",["require","jJ"],function(a){function b(a,b,c,e){this.th=a;this.Ok=b;this.xz=c;this.Gd=e;this.Q_=[];this.ph=[];this.xJ=[];this.iQ=[];this.qa="";this.Iq=Number.MAX_VALUE}function c(a){return a===m?[]:Array.isArray(a)?a:[a]}var e=a("jJ");b.prototype.ar=function(){return this.th.Bf()==e.yy};b.prototype.r$=function(){return this.th.Bf()==e.xy};b.prototype.cr=function(){return this.th.Bf()==e.zy};b.prototype.ksa=function(){return this.th.Bf()==e.HE};b.prototype.Qq=function(a){this.xJ=this.xJ.concat(c(a))};
b.prototype.fy=function(){return 0<this.xJ.length};b.prototype.Tpa=function(a){this.iQ=this.iQ.concat(c(a))};b.prototype.Bqa=function(){return 0==this.xJ.length&&0<this.iQ.length};b.prototype.Pq=function(a){this.ph=this.ph.concat(c(a))};b.prototype.Usa=function(){return 0<this.ph.length};b.prototype.Bh=function(a){if(a&&(this.KF===m||this.KF>a))this.KF=a};b.prototype.MJ=function(a,b){if(""==this.qa||this.Iq>b)this.qa=a,this.Iq=b};b.prototype.UD=Q("qa");b.prototype.Ro=function(a){this.Q_=c(a)};b.prototype.Og=
function(){return 0<this.Q_.length};return b});
define("bY","require,eD,kd,hI,M,iD,ka,dB,jJ".split(","),function(a){var b=a("eD"),c=a("kd");a("hI");a("M");var e=a("iD"),d=a("ka"),f=a("dB"),i=a("jJ"),a=b.extend(i,function(a){i.call(this,i.HE,a);this.ie=this.k=q;this.ph=[];this.fJ=q;this.E4=m;this.ub=new e;this.g.add(this.ub);this.Ce="";this.qa=q;this.W5=this.g.D.get("vrPointerSelectionTime")});a.prototype.clear=function(){this.zT();this.g.remove(this.ub);this.ub=q;this.qa&&this.g.remove(this.qa);this.qa=q};a.prototype.update=function(a){this.k=
a;this.ub.set("changing",a.SJ);this.Ei()};a.prototype.lv=function(){this.wf(this.qf(c.Rh));this.ub.set("over",y)};a.prototype.Ei=function(){var a=this.qf(c.Sh);this.wf(a);this.Vk(a.UD());var b;a:{b=this.ph;for(var d=a.ph,f=0;f<b.length;f++)if(d.indexOf(b[f])<0){b=y;break a}for(f=0;f<d.length;f++)if(b.indexOf(d[f])<0){b=y;break a}b=o}if(!b){this.zT();this.ub.set("over",y);this.ph=a.ph;if(this.ph.length){this.ub.set("over",a.fy());this.ub.set("overProgress",0);this.Mna()}}};a.prototype.Vk=function(a){if(this.Ce!=
a){this.Ce&&this.g.remove(this.qa);if(this.Ce=a){this.qa=new d(this.Ce);this.qa.set("text",this.Ce);this.g.add(this.qa)}}};a.prototype.wf=function(a){this.g.fD().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Ri(a)}.bind(this))};a.prototype.qf=function(a){this.ie=this.IP();return new f(this,this.ie?[this.ie]:[],this.ie,a)};a.prototype.zT=function(){this.fJ&&(clearInterval(this.fJ),this.fJ=q)};a.prototype.Mna=function(){this.E4=(new Date).getTime();this.fJ=setInterval(this.Tja.bind(this),
100)};a.prototype.Tja=function(){var a=(new Date).getTime()-this.E4;if(a>=this.W5){this.zT();this.lv()}else this.ub.set("overProgress",a/this.W5)};return a});
define("hR","require,eD,kd,iD,ka,dB,jJ,bj".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("iD"),d=a("ka"),f=a("dB"),i=a("jJ"),j=a("bj"),a=b.extend(i,function(a){i.call(this,i.IM,a);this.ie=this.k=q;this.ub=new e;this.g.add(this.ub);this.Ce="";this.qa=q;this.hJ=this.hJ.bind(this);document.body.addEventListener("touchend",this.hJ);j.bind(c.Uh,this.t8,this,o)});a.prototype.clear=function(){document.body.removeEventListener("touchend",this.hJ);j.unbind(c.Uh,this.t8,this,o);this.g.remove(this.ub);
this.ub=q;this.qa&&this.g.remove(this.qa);this.qa=q};a.prototype.update=function(a){this.k=a;this.ub.set("changing",a.SJ);this.Ei()};a.prototype.hJ=function(){this.lv()};a.prototype.t8=function(){this.lv()};a.prototype.lv=function(){this.wf(this.qf(c.Rh));this.ub.set("over",y)};a.prototype.Ei=function(){var a=this.qf(c.Sh);this.wf(a);this.Vk(a.UD());this.ub.set("over",a.fy())};a.prototype.Vk=function(a){if(this.Ce!=a){this.Ce&&this.g.remove(this.qa);if(this.Ce=a){this.qa=new d(this.Ce);this.qa.set("text",
this.Ce);this.g.add(this.qa)}}};a.prototype.wf=function(a){this.g.fD().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Ri(a)}.bind(this))};a.prototype.qf=function(a){this.ie=this.IP();return new f(this,this.ie?[this.ie]:[],this.ie,a)};return a});
define("hv","require,eD,eO,bN,dc,cz,h,jy".split(","),function(a){var b=a("eD"),c=a("eO"),e=a("bN"),d=a("dc"),f=a("cz"),i=a("h"),j=a("jy"),k=new THREE.Matrix4,n=Math.PI/180,a=b.extend(i,function(){i.call(this);this.set("tag","Laser");this.set("matrix",q);this.set("over",y);this.set("pressed",y);this.set("intersectionDistance",0);this.set("visible",y);this.set("attachToCamera",y);this.set("dotVisible",o);this.wS=this.lB=this.Wl=this.vS=q;new THREE.Matrix4;this.xS=new THREE.Matrix4;this.xS.multiply(k.makeRotationX(-90*
n));this.xS.multiply(k.makeTranslation(0,g*0.5,0));this.PF=this.OF=this.NF=this.xn=this.$O=q;new THREE.Matrix4;this.aP=new THREE.Matrix4;this.hz=this.MF=this.ZO=q;new THREE.Matrix4;this.ps=[new THREE.Matrix4,new THREE.Matrix4,new THREE.Matrix4];this.ps[0].multiply(k.makeRotationX(-90*n));this.ps[0].multiply(k.makeTranslation(0,-r*0.5,0));this.ps[1].multiply(k.makeRotationX(-90*n));this.ps[1].multiply(k.makeTranslation(0,-r*0.5,-l*0.5));this.ps[2].multiply(k.makeRotationX(-90*n));this.ps[2].multiply(k.makeTranslation(0,
-r*0.5,-l))});a.prototype.G=function(a){i.prototype.G.call(this,a);this.sU();this.Mq()};a.prototype.sU=function(){if(this.C("visible"))this.get("meshGroup").visible=this.get("visible");this.C("dotVisible")&&d.ud([this.OF,this.MF],this.get("dotVisible")?1:0)};a.prototype.Mq=function(){if(this.C("over","pressed")){this.M7();this.V7()}};var g=0.35,l=0.012,r=0.1;a.prototype.Fl=function(){this.MF=d.create(new THREE.SphereGeometry(2.3,32,32),this.lfa());this.OF=d.create(new THREE.SphereGeometry(2,32,32),
this.mfa());this.wS=d.create(new THREE.CylinderGeometry(0.003,0.003,g,8),this.Efa());this.pv=[];this.pv.push(d.create(new THREE.CylinderGeometry(l,l,r,32),this.oO()));this.pv.push(d.create(new THREE.BoxGeometry(2*l,r,l),this.oO()));this.pv.push(d.create(new THREE.CylinderGeometry(l,l,r,32),this.oO()));return[this.MF,this.OF,this.wS].concat(this.pv)};a.prototype.lfa=function(){if(this.ZO==q){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.Tg(a);this.ZO=
e.cl(c.texture(),new e.Yj);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.ZO]};a.prototype.mfa=function(){if(this.$O==q){this.xn=document.createElement("canvas");this.xn.width=this.xn.height=256;this.NF=this.xn.getContext("2d");this.PF=new f;this.PF.Tg(this.xn);this.$O=e.cl(this.PF.texture(),new e.Yj);this.M7()}return[this.$O]};a.prototype.M7=function(){this.NF.fillStyle=this.AP();this.NF.clearRect(0,0,this.xn.width,this.xn.height);
this.NF.fillRect(0,0,this.xn.width,this.xn.height);this.PF.update()};a.prototype.Efa=function(){if(this.vS==q){this.Wl=document.createElement("canvas");this.Wl.width=this.Wl.height=256;this.lB=this.Wl.getContext("2d");this.yS=new f;this.yS.Tg(this.Wl);this.vS=e.cl(this.yS.texture(),new e.Yj);this.V7()}return[this.vS]};a.prototype.V7=function(){var a=j.kW(this.AP()).join(", "),b=this.lB.createLinearGradient(0,0,0,this.Wl.height);b.addColorStop(0,"rgba("+a+", 0)");b.addColorStop(0.5,"rgba("+a+", 1)");
b.addColorStop(1,"rgba("+a+", 1)");this.lB.fillStyle=b;this.lB.clearRect(0,0,this.Wl.width,this.Wl.height);this.lB.fillRect(0,0,this.Wl.width,this.Wl.height);this.yS.update()};a.prototype.oO=function(){if(this.hz==q){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.Tg(a);this.hz=e.cl(c.texture(),new e.Yj);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.hz,this.hz,this.hz]};a.prototype.Xw=
function(){var a=y,b=y,f=y;if(this.C("intersectionDistance")){var b=(b=this.get("intersectionDistance"))?c.Ax(b):c.Yq(),e=b/c.Yq();this.aP.makeTranslation(0,0,-b);this.aP.multiply(k.makeScale(e,e,e));b=o}if(this.C("matrix"))f=b=a=o;if(b){k.identity();(b=this.get("matrix"))&&k.multiply(b);k.multiply(this.aP);d.sm(this.OF,k);d.sm(this.MF,k)}if(a){k.identity();(b=this.get("matrix"))&&k.multiply(b);k.multiply(this.xS);d.sm(this.wS,k)}if(f){b=this.get("matrix");for(a=0;a<this.pv.length;a++){k.identity();
b&&k.multiply(b);k.multiply(this.ps[a]);d.sm(this.pv[a],k)}}};a.prototype.tU=function(){if(this.C("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.dX(a,this.get("index"))}.bind(this))}};a.prototype.AP=function(){return this.get("pressed")?this.Ya.D.get("vrPointerSelectionColor"):this.get("over")?this.Ya.D.get("vrPointerOverColor"):this.Ya.D.get("vrPointerColor")};return a});
define("cZ","require,eD,kd,hI,hv,iD,ka,dB,jJ,cM,bj,js".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("hI"),d=a("hv"),f=a("iD"),i=a("ka"),j=a("dB"),k=a("jJ"),n=a("cM"),g=a("bj"),l=a("js"),r=new THREE.Matrix4,p=Math.PI/180,a=b.extend(k,function(a){k.call(this,k.xy,a);this.ie=this.k=q;this.ph=[];this.dg=new d;this.g.add(this.dg);this.ub=new f;this.g.add(this.ub);this.uh=y;this.Ce="";this.qa=q;this.bh=new THREE.Matrix4});a.prototype.clear=function(){this.g.remove(this.dg);this.g.remove(this.ub);
this.ub=this.dg=q;this.qa&&this.g.remove(this.qa);this.qa=q};a.prototype.update=function(a){this.k=a;this.ub.set("changing",a.SJ);this.ub.set("visible",a.SJ);var b=n.EK();if(b){var c=b.quaternion(),d=b.position(),f=g.zm().position,e=l.ra(g.zm().orientation);this.bh.identity();if(d){this.bh.multiply(r.makeRotationY((e-a.ra)*p));this.bh.multiply(r.makeTranslation(-f.x,-f.y,-f.z));this.bh.multiply(r.makeTranslation(d.x,d.y,d.z));this.bh.multiply(r.makeRotationFromQuaternion(c))}else{this.bh.multiply(r.makeRotationY(-a.ra*
p));b.hand()==n.ka?this.bh.multiply(r.makeTranslation(-0.2,-0.4,0)):this.bh.multiply(r.makeTranslation(0.2,-0.4,0));this.bh.multiply(r.makeRotationY(e*p));this.bh.multiply(r.makeRotationFromQuaternion(c));this.bh.multiply(r.makeTranslation(0,0,-0.3))}this.dg.set("matrix",q);this.dg.set("matrix",this.bh);this.dg.set("pressed",b.pressed());this.dg.set("visible",o)}else this.dg.set("visible",y);this.Ei();a=!!b&&b.pressed();if(this.uh!=a){this.uh&&this.lv();this.uh=a}this.dg.Mj();this.ub.Mj()};a.prototype.lv=
function(){var a=this.qf(c.Rh);this.wf(a);this.dg.set("over",o);this.dg.set("dotVisible",o);this.dg.set("intersectionDistance",a.KF);(a=n.EK())&&a.pulse(0.6,50)};a.prototype.Ei=function(){var a=this.qf(c.Sh);this.wf(a);this.Vk(a.UD());var b;a:{b=this.ph;for(var d=a.ph,f=0;f<b.length;f++)if(d.indexOf(b[f])<0){b=y;break a}for(f=0;f<d.length;f++)if(b.indexOf(d[f])<0){b=y;break a}b=o}if(!b&&(a.fy()||this.dg.get("over"))){this.ph=a.ph;(b=n.EK())&&b.pulse(0.6,5)}this.dg.set("over",a.fy());this.dg.set("intersectionDistance",
a.KF);this.dg.set("dotVisible",!a.Bqa())};a.prototype.Vk=function(a){if(this.Ce!=a){this.Ce&&this.g.remove(this.qa);if(this.Ce=a){this.qa=new i(this.Ce);this.qa.set("text",this.Ce);this.qa.set("matrix",q);this.qa.set("matrix",this.bh);this.g.add(this.qa)}}};a.prototype.wf=function(a){this.g.fD().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Ri(a)}.bind(this))};a.prototype.qf=function(a){this.ie=e.mra(this.bh,this.ie);return new j(this,[this.ie],this.IP(),a)};return a});
define("gw","require,eD,kd,hI,M,dB,jJ,S".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("hI"),d=a("M"),f=a("dB"),i=a("jJ"),j=a("S"),a=b.extend(i,function(a){i.call(this,i.yy,a);this.g.D.bind(c.qc,this.gg,this,o);this.g.D.bind(c.Ef,this.W2,this,o);this.g.D.bind(c.ob,this.Wb,this,o);this.g.D.bind(c.Lb,this.hg,this,o);this.Zn=this.xi=this.xc=this.wc=m;this.ie=this.k=q;this.Ij=y;this.qa=""});a.prototype.clear=function(){this.g.D.unbind(c.qc,this.gg,this,o);this.g.D.unbind(c.Ef,this.W2,this,o);this.g.D.unbind(c.ob,
this.Wb,this,o);this.g.D.unbind(c.Lb,this.hg,this,o);this.Ij&&(this.g.Sx(j.Qd),this.Ij=y);this.Vk("")};a.prototype.update=function(a){this.k=a;this.eU()};a.prototype.gg=function(a){this.wc=a.x;this.xc=a.y;this.fU()};a.prototype.W2=function(){this.xc=this.wc=m;this.fU()};a.prototype.Wb=function(a){this.wc=this.xi=a.x;this.xc=this.Zn=a.y;this.wf(this.qf(c.MY))};a.prototype.hg=function(a){this.wc=a.x;this.xc=a.y;this.wf(this.qf(c.NY));this.IQ(this.xi,this.Zn,this.wc,this.xc)&&this.wf(this.qf(c.Rh))};
a.prototype.eU=function(){if(!this.al)this.al=setTimeout(function(){this.al=q;this.Ei()}.bind(this),300)};a.prototype.fU=function(){if(this.al){clearTimeout(this.al);this.al=q}this.Ei()};a.prototype.Ei=function(){var a=this.qf(c.Sh);this.wf(a);this.Vk(a.UD());if(this.Ij!=a.fy()){this.Ij&&this.g.Sx(j.Qd);(this.Ij=a.fy())&&this.g.OK(j.Qd)}};a.prototype.Vk=function(a){if(this.qa!=a){this.qa=a;this.g.D.set("toolTip",this.qa)}};a.prototype.wf=function(a){this.g.fD().sort(function(a,b){return b.get("index")-
a.get("index")}).forEach(function(b){b.Ri(a)}.bind(this))};a.prototype.qf=function(a){return new f(this,this.lG(),q,a)};a.prototype.lG=function(){if(this.wc!==m&&this.xc!==m&&this.k.Ie){var a=d.Yt(this.k.Ie);if(a){this.ie=e.u9(a,this.wc,this.xc,this.k.width,this.k.height,this.ie);return[this.ie]}}return[]};a.prototype.IQ=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)<=5};return a});
define("ey","require,eD,kd,hI,M,dB,jJ".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("hI"),d=a("M"),f=a("dB"),i=a("jJ"),a=b.extend(i,function(a){i.call(this,i.zy,a);this.g.D.bind(c.ob,this.Wb,this,o);this.g.D.bind(c.Lb,this.hg,this,o);this.Zn=this.xi=this.xc=this.wc=m;this.k=q;this.Aea=Array(j.length);this.gla=Array(k.length);this.qa="";this.Ei=this.Ei.bind(this)});a.prototype.clear=function(){this.g.D.unbind(c.ob,this.Wb,this,o);this.g.D.unbind(c.Lb,this.hg,this,o);this.Vk("")};a.prototype.update=
function(a){this.k=a;this.eU()};a.prototype.Wb=function(a){this.wc=this.xi=a.x;this.xc=this.Zn=a.y;this.wf(this.qf(c.MY))};a.prototype.hg=function(a){this.wc=a.x;this.xc=a.y;this.wf(this.qf(c.NY));this.IQ(this.xi,this.Zn,this.wc,this.xc)&&this.wf(this.qf(c.Rh))};a.prototype.eU=function(){if(!this.al)this.al=setTimeout(this.Ei,300)};a.prototype.fU=function(){if(this.al){clearTimeout(this.al);this.al=q}this.Ei()};a.prototype.Ei=function(){this.al=q;var a=this.qf(c.Sh);this.wf(a);this.Vk(a.UD())};a.prototype.Vk=
function(a){if(this.qa!=a){this.qa=a;a=this.g.D;a.set("toolTip",this.qa);if(!a.get("toolTipDisabled")){var b=a.Pa().qa;this.qa?b.Wua(a,this.qa):b.hide()}}};a.prototype.wf=function(a){this.g.fD().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Ri(a)}.bind(this))};a.prototype.qf=function(a){var b;b=a==c.Sh?this.lG(this.k.width*0.5,this.k.height*0.5,j,this.Aea):this.lG(this.wc,this.xc,k,this.gla);return new f(this,b,q,a)};a.prototype.lG=function(a,b,c,f){var j=this.k.Ie&&
d.Yt(this.k.Ie);if(j){var k=this.k.width,i=this.k.height,u=Math.min(k,i)/100;c.forEach(function(c,d){f[d]=e.u9(j,a+c[0]*u,b+c[1]*u,k,i,f[d])});return f}return[]};a.prototype.IQ=function(a,b,c,d){a=c-a;b=d-b;b=Math.sqrt(a*a+b*b);d=4*Math.round(1*Math.min(window.screen.width,window.screen.height)/100);return b<=d};var j=function(){for(var a=[],b=-5;b<=5;b++)for(var c=-5;c<=5;c++){var d=Math.sqrt(c*c+b*b);d<5&&a.push([c,b,d])}for(c=-30;c<-5;c++)a.push([c,0,Math.sqrt(c*c)]);for(c=6;c<=30;c++)a.push([c,
0,Math.sqrt(c*c)]);for(b=-15;b<-5;b++)a.push([0,b,Math.sqrt(b*b)]);for(b=6;b<=15;b++)a.push([0,b,Math.sqrt(b*b)]);a.sort(function(a,b){return a[2]-b[2]});return a.map(function(a){return[a[0],a[1]]})}(),k=function(){for(var a=[],b=0;b<5;b++)for(var c=-2+4*b/4,d=0;d<5;d++){var f=-2+4*d/4,e=Math.sqrt(f*f+c*c);e<=2&&a.push([f,c,e])}a.sort(function(a,b){return a[2]-b[2]});return a.map(function(a){return[a[0],a[1]]})}();return a});
define("eZ","require,bY,hR,cZ,gw,jJ,ey".split(","),function(a){var b=a("bY"),c=a("hR"),e=a("cZ"),d=a("gw"),f=a("jJ"),i=a("ey");return{create:function(a,k){switch(a){case f.HE:return new b(k);case f.IM:return new c(k);case f.xy:return new e(k);case f.yy:return new d(k);case f.zy:return new i(k)}}}});
define("ku",["require","S"],function(a){function b(a){this.zb=a;this.xf=[]}var c=a("S");b.prototype.push=function(a){this.xf.push(a);this.G()};b.prototype.pop=function(a){for(var b=this.xf.length-1;0<=b;b--)if(this.xf[b]==a){this.xf.splice(b,1);this.G();break}};b.prototype.clear=function(){0<this.xf.length&&(this.zb.set("cursor",c.Gc),this.xf=[])};b.prototype.G=function(){this.zb.set("cursor",0<=this.xf.indexOf(c.uE)?c.uE:0<=this.xf.indexOf(c.Qd)?c.Qd:0<this.xf.length?this.xf[this.xf.length-1]:c.Gc)};
return b});
define("ds","require,eD,hr,kd,bS,d,S,u,cM,fJ,ki,gN,dk,cO,eu,eZ,jJ,ku,iQ,hk,hC,bj,X".split(","),function(a){var b=a("eD"),c=a("hr"),e=a("kd"),d=a("bS"),f=a("d"),i=a("S"),j=a("u"),k=a("cM"),n=a("fJ"),g=a("ki"),l=a("gN"),r=a("dk"),p=a("cO"),s=a("eu"),t=a("eZ"),u=a("jJ"),v=a("ku"),x=a("iQ"),w=a("hk"),A=a("hC"),C=a("bj"),B=a("X"),G=Math.PI/180,z=b.extend(f,function(a,b,d){f.call(this);this.Dc("Renderer");this.set("toolTipDisabled",o);this.set("cursor",i.Iu);this.set("layout","absolute");this.$a=a;this.D=
b;this.Bb=d;this.LO=new v(b);this.th=q;this.k=new g;this.Ya=new s(this.$a,this.D,this.Bb,this);this.Ya.bind(e.$,this.Ha,this,o);this.Xl=new r;this.k.Ie=this.Xl.Tk;this.k.Yc=this.Xl.Yt();this.G2=(new Date).getTime();this.Ja().append(this.Xl.Ab());this.Pw=new l(b,d);this.Ja().append(this.Pw.Ab());this.f7=new w;this.f7.bind(e.T,this.xka,this,o);this.i3=new x;this.i3.bind(e.$,this.eka,this,o);this.cG=new n(this.k.width,this.k.height,this.k.Zc*G);this.bind(e.pb,this.hb,this,o);this.bind(e.Le,this.qi,this,
o);this.bind(e.Df,this.mi,this,o);C.bind(e.$,this.wj,this,o);k.bind(e.$,this.Sja,this,o);c.ed(this.Bb,["fxaaEnabled","aaEnabled","hotspotsEnabled","preloadEnabled"],function(){this.k.Hx=this.Bb.get("hotspotsEnabled");this.k.zD=this.Bb.get("preloadEnabled");this.k.gK=this.Bb.get("fxaaEnabled");this.k.KJ=this.Bb.get("aaEnabled");this.Ha()}.bind(this),o);c.ed(this.Bb,["surfaceSelectionEnabled"],this.nU.bind(this));this.nU();this.wj();c.ed(this.$a,["defaultVRPointer"],this.tJ.bind(this));this.tJ()});
z.prototype.create=function(a){return p.create(a)};z.prototype.add=function(a){this.Ya.appendChild(a)};z.prototype.remove=function(a){(a=this.Ya.Af(a))&&a.remove()};z.prototype.Af=function(a){return this.Ya.Af(a)};z.prototype.fD=function(){return this.Ya.all()};z.prototype.Naa=function(a){this.k.IK=a};z.prototype.OK=function(a){this.LO.push(a)};z.prototype.Sx=function(a){this.LO.pop(a)};z.prototype.TK=function(a){this.k.SJ=a;this.Ha()};z.prototype.getPixelRatio=function(){return this.Xl.getPixelRatio()};
z.prototype.tJ=function(){var a;a=this.k.Jb?k.EK()&&this.$a.get("defaultVRPointer")=="laser"?u.xy:C.rK()==C.yca.gM?u.IM:u.HE:j.Qa()?u.zy:u.yy;if(!(this.th&&this.th.Bf()==a)){this.th&&this.th.clear();this.th=t.create(a,this);this.nU();this.th.update(this.k)}};z.prototype.nU=function(){this.k.SD=this.Bb.get("surfaceSelectionEnabled")&&[u.yy,u.xy,u.zy].indexOf(this.th&&this.th.Bf())>=0};z.prototype.yi=function(){this.LO.clear();f.prototype.yi.call(this)};z.prototype.hb=function(){var a=this.ua(),c=this.Za();
if(this.k.width!=a||this.k.height!=c)if(!a||!c)b.log("Invalid size values: "+a+" "+c);else{this.k.width=a;this.k.height=c;this.cG.RD(this.k.width);this.cG.Haa(this.k.height);this.Ha()}};z.prototype.qi=function(){this.k.enabled=o;this.Ha()};z.prototype.mi=function(){this.k.enabled=y;this.Ha()};z.prototype.wj=function(){this.k.Jb=C.isPresenting();this.tJ();this.Ha()};z.prototype.Sja=function(){this.tJ();this.Ha()};z.prototype.xka=function(){this.Ha()};z.prototype.eka=function(){this.Ha()};z.prototype.xu=
function(a){if(this.k.Mh!=a){this.k.Mh=a;this.Ha()}};z.prototype.ya=function(a,c,d,f){if(this.k.ra!=a||this.k.pitch!=c||this.k.ld!=d||this.k.Zc!=f)if(isNaN(a)||isNaN(c)||isNaN(d)||!f)b.log("Invalid position values: "+a+" "+c+" "+d+" "+f);else{this.k.ra=a;this.k.pitch=c;this.k.ld=d;this.k.Zc=f;this.cG.uu(this.k.Zc*G);this.Ha()}};z.prototype.Eb=function(){return this.k.ra};z.prototype.Ib=function(){return this.k.pitch};z.prototype.rd=function(){return this.k.ld};z.prototype.le=function(){return this.k.Zc};
z.prototype.nV=function(){return this.k.Jb?this.k.ff:A.Nm(this.k.ff,this.k.width,this.k.height)};z.prototype.oV=function(){return this.k.ff};z.prototype.unproject=function(a){return this.cG.unproject(a)};z.prototype.Ha=function(){B.Ha(this.ig,this)};z.prototype.ig=function(){if(B.OV){var a=(new Date).getTime(),b=Math.max(1,Math.min(a-this.G2,33));this.G2=a;this.trigger(new d(z.aM,{frameTime:b}));if(this.k.enabled){this.k.pd=b;this.Xl.update(this.k);this.k.RJ=this.Xl.ara();this.k.MC=this.Xl.$qa();
this.k.ff=this.Xl.Yqa();this.k.tg=this.Xl.getPixelRatio();this.Ya.update(this.k);this.f7.update(this.k);this.i3.update(this.k);this.th.update(this.k);this.Xl.render()}}else this.Ha()};z.aM="render start";z.fba=R(o);return z});
define("da",["require"],function(){function a(){}a.prototype.clear=E();a.Iwa=function(b){return a.create(b,E())};a.create=function(b,c){c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.id=b;c.not="!"+b;return c};a.Qt=function(b,c){var e=a.create(b,c);e.YV=o;return e};return a});
define("dM",["require","da"],function(a){var a=a("da"),b={};b.Geometry=a.create("GeometryComponent",function(){this.geometry=q});b.dp=a.create("MaterialComponent",function(){this.material=q});b.Mesh=a.create("MeshComponent",function(){this.Sj=q});b.Al=a.Qt("MeshSystemStateComponent",function(){this.Sj=q});b.OrthographicCamera=a.create("OrthographicCameraComponent",E());b.Ou=a.Qt("OrthographicCameraSystemStateComponent",function(){this.Yc=q});b.Th=a.create("ParentComponent",function(){this.ZJ=q});
b.gk=a.Qt("ParentSystemStateComponent",function(){this.zc=this.parent=q});b.Su=a.create("TransformComponent",function(){this.naa=this.maa=this.laa=this.oW=this.W$=this.V$=0;this.saa=this.raa=this.qaa=1});b.lf=a.create("RendererComponent",function(){this.canvas=q;this.antialias=o;this.height=this.width=100;this.PJ=this.AW=this.hf=q});b.ep=a.Qt("RendererSystemStateComponent",function(){this.height=this.width=m;this.Yc=this.Kh=this.hf=q});b.Scene=a.create("SceneComponent",function(){this.Kh=q});b.Ru=
a.Qt("SceneSystemStateComponent",function(){this.Kh=q});b.Texture=a.create("TextureComponent",function(){this.texture=q});b.fp=a.create("VideoMaterialComponent",function(){this.X8=this.uba=this.Lo=q});b.gp=a.Qt("VideoMaterialSystemStateComponent",function(){this.FK=q});b.zg=a.create("ViewportComponent",function(){this.height=this.width=this.nu=q});b.hp=a.create("ViewportPlaneGeometryComponent",function(){this.Lo=this.nu=q});b.Xm=a.Qt("ViewportPlaneGeometrySystemStateComponent",function(){this.geometry=
q;this.zIndex=this.paa=this.verticalAlign=this.b$=this.aba=this.bba=m});return b});
define("ir",["require"],function(){function a(b,c){this.Wo=b;this.eva=c||"Entity";this.id=this.eva+"_"+a.Ksa++;this.Nj={};this.BD={};this.gX=0}a.prototype.Tb=function(a){return this.Nj[a.id]};a.prototype.hl=function(a){var c=this.Nj[a.id];c&&this.Wo.iqa(this,a);return c};a.prototype.Ee=function(a){if(a.id in this.Nj)return this.Nj[a.id];a.YV&&this.gX++;var c=this.Nj[a.id]=new a;this.Wo.Rpa(this,a);return c};a.prototype.ml=function(a){a.id in this.Nj&&(a.YV&&this.gX--,this.BD[a.id]=this.Nj[a.id],delete this.Nj[a.id],
this.Wo.daa(this,a,m))};a.prototype.lqa=function(){for(var a in this.BD)this.BD[a].clear(),delete this.BD[a]};a.prototype.nta=function(){for(var a in this.Nj){var c=this.Nj[a].constructor;c.YV||(this.BD[a]=this.Nj[a],delete this.Nj[a],this.Wo.daa(this,c,y))}};a.Ksa=0;return a});define("bC",["require"],function(){function a(){this.id=a.mR++;this.entities=[]}a.mR=0;return a});
define("hz",["require"],function(){function a(b,c){this.id=a.mR++;this.name=c;this.entities=b.entities;this.Rq=b.entities.slice();this.Ch=[];this.QK=[]}a.prototype.jqa=function(){!this.Rq.length||(this.Rq=[]);!this.Ch.length||(this.Ch=[]);!this.QK.length||(this.QK=[])};a.mR=0;return a});
define("be",["require","bC","hz"],function(a){function b(){this.Vra={};this.xb={};this.lu={};this.qx={};this.zo={};this.ku={};this.SC={};this.ju={}}function c(a){return"string"==typeof a?a:a.id}var e=a("bC"),d=a("hz");b.prototype.ne=function(a){this.SC[a.id]={};this.SC[a.not]={}};b.prototype.vqa=function(a,b){var c=this.Qha(a),e=new d(c,b);this.lu[c.id].push(e);return e};b.prototype.Qha=function(a){var b=this.Vra[this.Rha(a)];if(b)return b;b=new e;this.xb[b.id]=b;a=a.map(c);this.ju[b.id]={};for(var d=
0;d<a.length;d++){var k=a[d];this.ju[b.id][k]=o;this.SC[k][b.id]=o}this.ku[b.id]={};this.lu[b.id]=[];return b};b.prototype.Rha=function(a){a=a.map(c);a.sort();return a.join("-")};b.prototype.Qsa=function(a){this.qx[a.id]={};this.zo[a.id]={}};b.prototype.Rsa=function(a){delete this.qx[a.id];delete this.zo[a.id]};b.prototype.Nsa=function(a,b){var c=b.id,d=b.not,e=a.id;this.qx[e][c]=o;for(var g in this.zo[e])if(d in this.ju[g]){delete this.ku[g][e];delete this.zo[e][g];var l=this.xb[g].entities;l.splice(l.indexOf(a),
1);for(var l=this.lu[g],r=0,p=l.length;r<p;r++){var s=l[r];s.QK.push(a)}}for(g in this.SC[c])if(!(e in this.ku[g])){var d=o,t;for(t in this.ju[g])if(l="!"!=t[0],(l?t:t.slice(1))in this.qx[e]!=l){d=y;break}if(d){this.ku[g][e]=o;this.zo[e][g]=o;this.xb[g].entities.push(a);l=this.lu[g];r=0;for(p=l.length;r<p;r++)s=l[r],s.Rq.push(a)}}};b.prototype.Psa=function(a,b){var c=b.id,d="!"+c,e=a.id;delete this.qx[e][c];for(var g in this.zo[e])if(c in this.ju[g]){delete this.ku[g][e];delete this.zo[e][g];var l=
this.xb[g].entities;l.splice(l.indexOf(a),1);for(var l=this.lu[g],r=0,p=l.length;r<p;r++){var s=l[r];s.QK.push(a)}}for(g in this.SC[d])if(!(e in this.ku[g])){var c=o,t;for(t in this.ju[g])if(l="!"!=t[0],(l?t:t.slice(1))in this.qx[e]!=l){c=y;break}if(c){this.ku[g][e]=o;this.zo[e][g]=o;this.xb[g].entities.push(a);l=this.lu[g];r=0;for(p=l.length;r<p;r++)s=l[r],s.Rq.push(a)}}};b.prototype.Osa=function(a,b){var c=b.id,d=a.id,e;for(e in this.zo[d])if(c in this.ju[e])for(var g=this.lu[e],l=0,r=g.length;l<
r;l++){var p=g[l];0>p.Ch.indexOf(a)&&p.Ch.push(a)}};return b});
define("hK",["require","X","ir","be"],function(a){function b(a){this.$a=a;this.mP={};this.nz=[];this.$ea={};this.SB=[];this.lt=new d;this.UF=[];this.rq=y}var c=a("X"),e=a("ir"),d=a("be");b.prototype.ne=function(a){this.$ea[a.id]=a;this.lt.ne(a);return this};b.prototype.Vx=function(a,b){var c=new a(this,b);c.order=this.SB.length;this.SB.push(c);for(var d in a.xb)c[d]=this.lt.vqa(a.xb[d],b+"."+d);this.SB.sort(function(a,b){return a.Xd-b.Xd||a.order-b.order});return this};b.prototype.ox=function(a){a=
new e(this,a);this.mP[a.id]=a;this.lt.Qsa(a);this.pu();return a};b.prototype.gV=function(a){a.id in this.mP&&(delete this.mP[a.id],this.nz.push(a),a.nta(),this.pu())};b.prototype.Rpa=function(a,b){this.lt.Nsa(a,b);this.pu()};b.prototype.daa=function(a,b,c){this.lt.Psa(a,b);c||this.UF.push(a);this.pu()};b.prototype.iqa=function(a,b){this.lt.Osa(a,b);this.pu()};b.prototype.pu=function(){this.rq||(this.rq=o,c.Ha(this.update,this))};b.prototype.update=function(){this.rq=y;var a=(new Date).getTime(),b=
this.H2?a-this.H2:0;this.H2=a;for(var c=0;c<this.SB.length;c++){var d=this.SB[c];d.execute(b,a);for(var e in d.constructor.xb)d[e].jqa()}for(c=0;c<this.UF.length;c++)this.UF[c].lqa();this.UF.length=0;for(c=this.nz.length-1;0<=c;c--)0==this.nz[c].gX&&(this.lt.Rsa(this.nz[c]),this.nz.splice(c,1))};return b});define("ic",["require"],function(){function a(a,c){this.Wo=a;this.name=c;this.Xd=0}a.prototype.execute=E();return a});
define("fw",["require","dM"],function(a){var b=a("dM"),a={dy:function(a){var c=a.Ee(b.Al);a.Ee(b.Su);var f=a.hl(b.Mesh);c.Sj=f.Sj=new THREE.Mesh(a.Tb(b.Geometry).geometry,a.Tb(b.dp).material)}},c=new THREE.Euler;a.update=function(a){var d=a.hl(b.Al);d.Sj.geometry=a.Tb(b.Geometry).geometry;d.Sj.material=a.Tb(b.dp).material;var a=a.Tb(b.Su),d=d.Sj,f=y;if(d.position.x!=a.V$||d.position.y!=a.W$||d.position.z!=a.oW)d.position.x=a.V$,d.position.y=a.W$,d.position.z=a.oW,f=o;if(d.rotation.x!=a.laa||d.rotation.y!=
a.maa||d.rotation.z!=a.naa)c.x=a.laa,c.y=a.maa,c.z=a.naa,d.rxa(c),f=o;if(d.scale.x!=a.qaa||d.scale.y!=a.raa||d.scale.z!=a.saa)d.scale.x=a.qaa,d.scale.y=a.raa,d.scale.z=a.saa,f=o;f&&d.updateMatrix()};a.mr=function(a){a.Tb(b.Al).Sj=q;a.ml(b.Al)};return a});
define("dG",["require","eD","ic","dM","fw"],function(a){var b=a("eD"),c=a("ic"),e=a("dM"),d=a("fw"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.sD.entities.length&&this.sD.entities.forEach(function(a){d.dy(a)});this.rD.Ch.length&&this.rD.Ch.forEach(function(a){d.update(a)});this.GK.entities.length&&this.GK.entities.forEach(function(a){d.mr(a)});this.Hsa.entities.length&&this.GK.entities.forEach(function(a){d.mr(a)});this.Isa.entities.length&&this.GK.entities.forEach(function(a){d.mr(a)})};
a.xb={};a.xb.sD=[e.Mesh,e.Geometry,e.dp,e.Al.not];a.xb.rD=[e.Mesh,e.Geometry,e.dp,e.Su,e.Al];a.xb.GK=[e.Mesh.not,e.Al];a.xb.Hsa=[e.Geometry.not,e.Al];a.xb.Isa=[e.dp.not,e.Al];return a});
define("fv",["require","dM"],function(a){function b(a){if(!a)return q;var b=a.Tb(c.Scene);return b?b.Kh:(b=a.Tb(c.Mesh))?b.Sj:(a=a.Tb(c.OrthographicCamera))?a.Yc:q}var c=a("dM");return{dy:function(a){var d=a.Ee(c.gk);d.parent=b(a.Tb(c.Th).ZJ);d.zc=b(a);d.parent&&d.zc&&d.parent.add(d.zc)},update:function(a){var d=a.hl(c.gk),f=b(a.Tb(c.Th).ZJ),a=b(a);if(d.parent!=f||d.zc!=a)d.parent&&d.zc&&d.parent.remove(d.zc),d.parent=f,d.zc=a,d.parent&&d.zc&&d.parent.add(d.zc)},mr:function(a){var b=a.Tb(c.gk);b.parent&&
b.zc&&b.parent.remove(b.zc);b.parent=q;b.zc=q;a.ml(c.gk)}}});
define("gP",["require","eD","ic","dM","fv"],function(a){var b=a("eD"),c=a("ic"),e=a("dM"),d=a("fv"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.sD.entities.length&&this.sD.entities.forEach(function(a){d.dy(a)});this.wD.entities.length&&this.wD.entities.forEach(function(a){d.dy(a)});this.rD.Ch.length&&this.rD.Ch.forEach(function(a){d.update(a)});this.P$.Ch.length&&this.P$.Ch.forEach(function(a){d.update(a)});this.M8.entities.length&&this.M8.entities.forEach(function(a){d.mr(a)});
this.N8.entities.length&&this.N8.entities.forEach(function(a){d.mr(a)})};a.xb={};a.xb.sD=[e.Mesh,e.Th,e.gk.not];a.xb.wD=[e.OrthographicCamera,e.Th,e.gk.not];a.xb.rD=[e.Mesh,e.Th,e.gk];a.xb.P$=[e.OrthographicCamera,e.Th,e.gk];a.xb.M8=[e.OrthographicCamera.not,e.Mesh.not,e.Th,e.gk];a.xb.N8=[e.Th.not,e.gk];return a});define("eh",["require","fh"],function(a){return a("fh")});
define("hX",["require","eD","ic","dM","eh"],function(a){var b=a("eD"),c=a("ic"),e=a("dM");Util=a("eh");a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){for(var a=0,b=this.taa.entities.length;a<b;a++)this.Pua(this.taa.entities[a]);a=0;for(b=this.wD.entities.length;a<b;a++)this.Nua(this.wD.entities[a]);a=0;for(b=this.faa.entities.length;a<b;a++)this.Oua(this.faa.entities[a]);a=0;for(b=this.ou.entities.length;a<b;a++)this.Jqa(this.ou.entities[a]);a=0;for(b=this.uaa.entities.length;a<
b;a++)this.jva(this.uaa.entities[a]);a=0;for(b=this.Q$.entities.length;a<b;a++)this.hva(this.Q$.entities[a]);a=0;for(b=this.gaa.entities.length;a<b;a++)this.iva(this.gaa.entities[a])};a.prototype.Pua=function(a){var b=a.hl(e.Scene);a.Ee(e.Ru).Kh=b.Kh=new THREE.Scene};a.prototype.Nua=function(a){var b=a.hl(e.OrthographicCamera);a.Ee(e.Ou).Yc=b.Yc=new THREE.OrthographicCamera};a.prototype.Oua=function(a){var b=a.Tb(e.lf),a=a.Ee(e.ep);a.hf=new THREE.WebGLRenderer({precision:"mediump",alpha:o,canvas:b.canvas,
context:Util.dV(b.canvas,b.antialias||y)});a.hf.setPixelRatio(Util.getPixelRatio());a.hf.autoClear=y;a.hf.setClearColor(0,0);a.width=b.width;a.height=b.height};a.prototype.Jqa=function(a){var b=a.Tb(e.lf),a=a.Tb(e.ep),c=a.hf,j=b.PJ&&b.PJ.Tb(e.OrthographicCamera).Yc,k=b.width,n=b.height;if(a.width!=k||a.height!=n||a.Yc!=j)a.width=k,a.height=n,a.Yc=j,c.setSize(k,n),j&&(j.left=-0.5*k,j.right=0.5*k,j.top=0.5*n,j.bottom=-0.5*n,j.updateProjectionMatrix());b=b.AW&&b.AW.Tb(e.Scene).Kh;a.Kh!=b&&(a.Kh=b);c.clear();
b&&j&&c.render(b,j)};a.prototype.iva=function(a){var b=a.Tb(e.ep);b.hf.dispose();b.hf=q;a.ml(e.ep)};a.prototype.hva=function(a){var b=a.Tb(e.Ou);b.Yc.parent&&b.Yc.parent.remove(b.Yc);b.Yc=q;a.ml(e.Ou)};a.prototype.jva=function(a){a.Tb(e.Ru).Kh=q;a.ml(e.Ru)};a.xb={};a.xb.faa=[e.lf,e.ep.not];a.xb.gaa=[e.lf.not,e.ep];a.xb.ou=[e.lf,e.ep];a.xb.taa=[e.Scene,e.Ru.not];a.xb.uaa=[e.Scene.not,e.Ru];a.xb.wD=[e.OrthographicCamera,e.Ou.not];a.xb.Q$=[e.OrthographicCamera.not,e.Ou];return a});
define("et",["require","kd","eQ","bS","R"],function(a){function b(a,b,c,d){this.v=a;this.wa=b;this.VF=c;this.Oa=d;this.$a=a.Pa();this.re=this.wa.get("currentTime");this.k=this.wa.get("state");this.VH=this.$a.get("mute");this.gH=this.wa.get("mute");this.k=this.wa.get("autoplay")?e.N:e.Ac;this.gda();this.wa.set("state",this.k);this.v.Tf(this.VH||this.gH);this.v.ay(this.re);this.v.oe(this.k)}var c=a("kd"),e=a("eQ"),d=a("bS"),f=a("R");b.prototype.dispose=function(){this.Cla()};b.prototype.m4=function(){var a=
this.wa.get("currentTime",0);this.re!=a&&this.v.ay(this.re=a)};b.prototype.o4=function(){var a=this.wa.get("state",e.K);this.k!=a&&this.v.oe(this.k=a)};b.prototype.n4=function(){var a=this.wa.get("mute",y);this.gH!=a&&this.v.Tf(this.VH||(this.gH=a))};b.prototype.NA=function(){var a=this.$a.get("mute",y);this.VH!=a&&this.v.Tf((this.VH=a)||this.gH)};b.prototype.TA=function(){this.wa.set("currentTime",this.re=this.v.ym())};b.prototype.RA=function(){this.wa.set("duration",this.v.$t())};b.prototype.SA=
function(){this.wa.set("state",this.k=this.v.Pg());this.Oa()};b.prototype.UA=function(){this.VF.trigger(new d(c.Ia));this.wa.get("loop")&&(this.v.ay(this.re=0),this.v.oe(this.k=e.N))};b.prototype.gda=function(){this.$a.bind(c.L("mute"),this.NA,this,o);this.v.bind(f.Cf,this.TA,this,o);this.v.bind(f.Qm,this.RA,this,o);this.v.bind(f.wd,this.SA,this,o);this.v.bind(f.Vf,this.UA,this,o);this.wa.bind(c.L("currentTime"),this.m4,this,o);this.wa.bind(c.L("state"),this.o4,this,o);this.wa.bind(c.L("mute"),this.n4,
this,o)};b.prototype.Cla=function(){this.$a.unbind(c.L("mute"),this.NA,this,o);this.v.unbind(f.Cf,this.TA,this,o);this.v.unbind(f.Qm,this.RA,this,o);this.v.unbind(f.wd,this.SA,this,o);this.v.unbind(f.Vf,this.UA,this,o);this.wa.unbind(c.L("currentTime"),this.m4,this,o);this.wa.unbind(c.L("state"),this.o4,this,o);this.wa.unbind(c.L("mute"),this.n4,this,o);this.wa.unbind(c.L("opacity"),this.zR,this,o)};return b});
define("v","require,kd,eQ,fB,bL,hO,eh".split(","),function(a){function b(a,b,c,d,e,f){this.Zb=a;this.v=b;this.wa=c;this.ZH=d;this.Oa=f;this.$f=q;this.jja();this.Oa();this.ga=(this.q=j.sba(e)?document.createElement("canvas"):q)&&this.q.getContext("2d")}var c=a("kd"),e=a("eQ"),d=a("fB"),f=a("bL"),i=a("hO"),j=a("eh");b.prototype.update=function(){var a=this.v.iK();a.isEmpty()&&(a=q);if(a&&(!this.$f||this.$f&&!this.$f.isEqual(a))){this.$f=a;a=this.$f.ws;if(this.q&&j.w$(a)){this.ga.drawImage(a,0,0,this.q.width=
a.videoWidth,this.q.height=a.videoHeight);a=this.q}this.Zb.image=a;this.Zb.needsUpdate=o}else if(!this.$f&&this.YH&&this.Zb.image!=this.YH){this.Zb.image=this.YH;this.Zb.needsUpdate=o}(this.Zb.needsUpdate||this.v.Pg()==e.N)&&this.Oa()};b.prototype.jja=function(){if(this.ZH){this.YH=q;this.hB=new f;this.hB.cX([this.ZH]);this.hB.bind(c.T,this.l4,this,o);i.Im(this.hB,this.wa.get("loadPriority",d.$i))}};b.prototype.Noa=function(){if(this.ZH){this.hB.unbind(c.T,this.l4,this,o);i.Nh(this.hB,this.wa.get("loadPriority",
d.$i))}};b.prototype.l4=function(){this.YH=i.Bd(this.ZH);this.Oa()};b.prototype.dispose=function(){this.Noa();this.ga=q;this.q&&(this.q=this.q.width=this.q.height=0);this.Oa=this.df=this.v=this.Zb=q};return b});
define("hx",["require","eh"],function(a){var b=a("eh");return{Gba:function(){this.hx=0;this.Nx=m;this.Zaa=this.lba=0},Gca:function(){this.$q=y;this.height=this.width=100},create:function(a,e,d){var f=a.$q&&b.Z9(),i=a.$q&&b.Y9(),j={uniforms:{},transparent:o};j.uniforms.texture={type:"sampler2D",value:d};j.uniforms.opacity={type:"float",value:1};d.flipY=!f;j.vertexShader=["varying vec2 vUV;\nvoid main() {","\tvUV = vec2( uv.x, "+(f?"1.0 - uv.y":"uv.y")+");","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"].join("\n");
if(i||e.hx||e.Nx){var f=[],k=[],f=f.concat(["uniform sampler2D texture;","uniform float opacity;","varying vec2 vUV;"]),k=k.concat(["   vec4 color = texture2D(texture, vUV);","   float alpha = color.a * opacity;"]);if(e.hx){var n=0.5*Math.min(a.width,a.height)*e.hx;j.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(n/a.width,n/a.height)};f=f.concat(["uniform vec2 blendingLimit;"]);k=k.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(","))}e.Nx&&
(j.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(e.Nx.substr(1,2),16)/255,parseInt(e.Nx.substr(3,2),16)/255,parseInt(e.Nx.substr(5,2),16)/255)},j.uniforms.chromaThreshold={type:"f",value:e.lba},j.uniforms.chromaSmoothing={type:"f",value:e.Zaa},f=f.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),k=k.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("{")));
k=k.concat(["\tgl_FragColor = vec4(color"+(i?".bgr":".rgb")+", alpha);"]);d.format=THREE.RGBAFormat;j.fragmentShader=[].concat(f,["void main() {"],k,["}"]).join("\n")}else j.fragmentShader="uniform sampler2D texture;\nuniform float opacity;\nvarying vec2 vUV;\nvoid main() {\n   vec4 color = texture2D(texture, vUV);\n   float alpha = color.a * opacity;\n\tgl_FragColor = vec4(color.rgb, alpha);\n}";a=new THREE.ShaderMaterial(j);a.transparent=o;a.depthWrite=o;a.side=THREE.DoubleSide;a.depthTest=o;a.needsUpdate=
o;return a}}});define("hM",["require"],function(){var a={},b=q;a.cra=function(){if(!b){var a=document.createElement("canvas");a.width=128;a.height=128;a.getContext("2d").clearRect(0,0,a.width,a.height);b=a}return b};return a});
define("Q","require,kd,eQ,fc,et,v,hx,hM,eh,dM,iB,k,cX".split(","),function(a){function b(a){this.Bv=a;a=a.Tb(g.fp);this.VF=a.X8;this.wa=a.Lo;this.o8=a.uba;this.eg=d.IV(this.o8);this.$a=this.Bv.Wo.$a;this.Gfa();this.qv();this.Kfa();this.Oa=this.Oa.bind(this);this.n8=new f(this.v,this.wa,this.VF,this.Oa);this.FT=new i(this.Zb,this.v,this.wa,this.eg.get("posterURL"),this.eg.get("url"),this.Oa);this.wa.bind(c.L("opacity"),this.zR,this,o);this.o6(this.lb=this.wa.get("opacity",1));this.so=y;this.Oa()}var c=
a("kd"),e=a("eQ"),d=a("fc"),f=a("et"),i=a("v"),j=a("hx"),k=a("hM"),n=a("eh"),g=a("dM"),l=a("iB"),r=a("k"),p=a("cX");b.prototype.update=function(){if(this.so){this.so=y;this.FT.update()}};b.prototype.Oa=function(){if(!this.so){this.so=o;this.Bv.Wo.pu()}};b.prototype.Gfa=function(){this.Zb=new THREE.Texture;this.Zb.image=k.cra();this.Zb.generateMipmaps=y;this.Zb.minFilter=THREE.LinearFilter;this.Zb.magFilter=THREE.LinearFilter;this.Zb.format=THREE.RGBFormat};b.prototype.Wfa=function(){this.Zb.dispose();
this.Zb=q};b.prototype.Kfa=function(){var a=this.eg.get("url");n.tba()&&(a=l.Sq(a,"playbacksession="+(new Date).getTime()));this.v=p.create(this.Bv.Wo.$a,a,this.o8.get("subtitlesURL"));this.RB=new r(this.wa,this.v)};b.prototype.Xfa=function(){this.v.oe(e.K);this.v=q;this.RB.clear();this.RB=q};b.prototype.qv=function(){var a=new j.Gca;a.$q=n.$q(this.eg.get("url"));a.width=this.eg.get("width");a.height=this.eg.get("height");var b=new j.Gba;b.hx=this.wa.get("blending",0);b.Nx=this.wa.get("chromaColor");
b.lba=this.wa.get("chromaThreshold",0);b.Zaa=this.wa.get("chromaSmoothing",0);this.Rs=j.create(a,b,this.Zb);this.Bv.Ee(g.dp).material=this.Rs};b.prototype.Vfa=function(){this.Rs.dispose();this.Rs=q;this.Bv.ml(g.dp)};b.prototype.dispose=function(){this.n8.dispose();this.n8=q;this.FT.dispose();this.FT=q;this.Vfa();this.Wfa();this.Xfa();this.$a=q;this.wa.unbind(c.L("opacity"),this.zR,this,o);this.wa.set("state",e.K);this.Bv=this.VF=this.wa=q};b.prototype.zR=function(){var a=this.wa.get("opacity");if(this.lb!=
a){this.o6(this.lb=a);this.Oa()}};b.prototype.o6=function(a){this.Rs.opacity=a;if(this.Rs.vsa&&this.Rs.uniforms.opacity)this.Rs.uniforms.opacity.value=a};b.dy=function(a){a.Ee(g.gp).FK=new b(a)};b.mr=function(a){var b=a.Tb(g.gp);b.FK.dispose();b.FK=q;a.ml(g.gp)};b.update=function(a){a.Tb(g.gp).FK.update()};return b});
define("dg",["require","eD","ic","dM","Q"],function(a){var b=a("eD"),c=a("ic"),e=a("dM"),d=a("Q"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.Dsa.entities.forEach(function(a){d.dy(a)});this.Esa.entities.forEach(function(a){d.mr(a)});this.materials.entities.forEach(function(a){d.update(a)})};a.xb={};a.xb.Dsa=[e.fp,e.gp.not];a.xb.materials=[e.fp,e.gp];a.xb.Esa=[e.fp.not,e.gp];return a});
define("jY",["require","eD","ic","dM"],function(a){var b=a("eD"),c=a("ic"),e=a("dM"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){for(var a=0,b=this.sX.Rq.length;a<b;a++)this.ona(this.sX.Rq[a]);a=0;for(b=this.ou.Ch.length;a<b;a++)this.c8(this.ou.Ch[a]);a=0;for(b=this.ou.Rq.length;a<b;a++)this.c8(this.ou.Rq[a])};a.prototype.ona=function(a){var b=a.Tb(e.zg),c=b.nu.Tb(e.lf),j=c&&c.height||100;if(b.width!=(c&&c.width||100)||b.height!=j)b=a.hl(e.zg),b.width=c&&c.width||
100,b.height=c&&c.height||100};a.prototype.c8=function(a){var b=a.Tb(e.lf);this.sX.entities.forEach(function(c){if(c.Tb(e.zg).nu==a){var j=c.Tb(e.zg);if(j.width!=b.width||j.height!=b.height)j=c.hl(e.zg),j.width=b.width,j.height=b.height}})};a.xb={};a.xb.sX=[e.zg];a.xb.ou=[e.lf];return a});
define("cR",["require"],function(){return{create:function(){var a=new THREE.BufferGeometry;a.setAttribute("position",new THREE.BufferAttribute(new Float32Array(18),3));a.setAttribute("normal",new THREE.BufferAttribute(new Float32Array(18),3));a.setAttribute("uv",new THREE.BufferAttribute(new Float32Array(12),2));a.setIndex(new THREE.BufferAttribute(new Uint32Array(6),1));return a},set:function(a,b,c,e,d,f,i,j,k,n,g,l,r,p,s){var t=a.getAttribute("position").array,u=a.getAttribute("normal").array,v=
a.getAttribute("uv").array,x=a.getIndex().array;t[9]=t[0]=b;t[10]=t[1]=c;t[11]=t[2]=e;v[6]=v[0]=d;v[7]=v[1]=f;t[3]=t[0]+g;t[4]=t[1]+l;t[5]=t[2]+r;v[2]=v[0];v[3]=v[1]+p;t[12]=t[6]=t[3]+i;t[13]=t[7]=t[4]+j;t[14]=t[8]=t[5]+k;v[8]=v[4]=v[2]+n;v[9]=v[5]=v[3];t[15]=t[12]-g;t[16]=t[13]-l;t[17]=t[14]-r;v[10]=v[8];v[11]=v[9]-p;b=j*r-k*l;k=k*g-i*r;i=i*l-j*g;j=1/Math.sqrt(b*b+k*k+i*i);u[0]=u[3]=u[6]=u[9]=u[12]=u[15]=b*j;u[1]=u[4]=u[7]=u[10]=u[13]=u[16]=k*j;u[2]=u[5]=u[8]=u[11]=u[14]=u[17]=i*j;x[0]=0;x[1]=1;
x[2]=2;x[3]=3;x[4]=4;x[5]=5;a.getAttribute("position").needsUpdate=o;a.getAttribute("normal").needsUpdate=o;a.getAttribute("uv").needsUpdate=o;a.clearGroups();a.addGroup(0,6,s);a.computeBoundingBox();a.computeBoundingSphere();return a}}});
define("jQ",["kd","hV"],function(){function a(a,c,f){this.di=a;this.wa=c;this.ZP=f;this.wI=this.wI.bind(this);this.av=m;this.wa.forEach(function(a){this.di.bind(b.L(a),this.Ys,this,o)}.bind(this));this.wI()}var b=require("kd"),c=require("hV");a.prototype.stop=function(){this.wa.forEach(function(a){this.di.unbind(b.L(a),this.Ys,this,o)}.bind(this));this.av&&(c.cancel(this.av),this.av=m)};a.prototype.Ys=function(){this.av||(this.av=c.qu(this.wI))};a.prototype.wI=function(){this.av=m;var a=this.di;this.ZP.apply(window,
this.wa.map(function(b){return a.get(b)}))};return a});
define("dJ","require,eD,ic,dM,cR,jQ,bc,iw".split(","),function(a){var b=a("eD"),c=a("ic"),e=a("dM"),d=a("cR"),f=a("jQ"),i=a("bc"),j=a("iw"),k=b.extend(c,function(){c.apply(this,arguments)});k.prototype.execute=function(){for(var a=0,b=this.S$.entities.length;a<b;a++)this.nna(this.S$.entities[a]);a=0;for(b=this.R$.Ch.length;a<b;a++)this.kpa(this.R$.Ch[a]);a=0;for(b=this.T$.entities.length;a<b;a++)this.coa(this.T$.entities[a])};k.prototype.nna=function(a){var b=a.Tb(e.hp),c=a.Ee(e.zg);c.nu=b.nu;var j=
b.nu.Tb(e.lf);if(j){c.width=j.width;c.height=j.height}c=a.Ee(e.Xm);c.geometry=d.create();c.X$=new f(b.Lo,["width","height","horizontalAlign","verticalAlign","scaleMode","zIndex"],function(b,c,d,f,g,j){var k=a.hl(e.Xm);k.bba=b;k.aba=c;k.b$=d;k.verticalAlign=f;k.paa=g;k.zIndex=j});a.Ee(e.Geometry).geometry=c.geometry};k.prototype.coa=function(a){var b=a.Tb(e.Xm);b.geometry.dispose();b.geometry=q;b.X$.stop();b.X$=q;a.ml(e.Geometry);a.ml(e.zg);a.ml(e.Xm)};k.prototype.kpa=function(a){var b=a.Tb(e.Xm),
c=a.Tb(e.zg),f=c.width,p=c.height,s=b.bba,t=b.aba,u;switch(b.paa){case j.NONE:c=s;u=t;break;case j.ek:c=f;u=t*f/s;break;case j.yg:u=p;c=s*p/t;break;case j.xl:if(s*p>t*f){u=p;c=s*p/t}else{c=f;u=t*f/s}break;default:if(s*p>t*f){c=f;u=t*f/s}else{u=p;c=s*p/t}}switch(b.b$){case i.ka:f=-f*0.5;break;case i.Fa:f=f*0.5-c;break;default:f=-c*0.5}switch(b.verticalAlign){case i.eb:p=p*0.5-u;break;case i.cb:p=-p*0.5;break;default:p=-u*0.5}s=b.zIndex-k.bca;d.set(b.geometry,f,p,0,0,0,c,0,0,1,0,u,0,1,0);(a.hl(e.Su)||
a.Ee(e.Su)).oW=s;a.Wo.pu()};k.bca=100;k.xb={};k.xb.S$=[e.hp,e.Xm.not];k.xb.R$=[e.hp,e.Xm,e.zg];k.xb.T$=[e.hp.not,e.Xm];return k});define("ga","require,dG,gP,hX,dg,jY,dJ".split(","),function(a){var b=a("dG"),c=a("gP"),e=a("hX"),d=a("dg"),f=a("jY"),a=a("dJ"),i={};i.Mesh=b;i.Th=c;i.lf=e;i.fp=d;i.zg=f;i.hp=a;return i});
define("en","require,eD,d,hK,dM,ga".split(","),function(a){var b=a("eD"),c=a("d"),e=a("hK"),d=a("dM"),f=a("ga"),a=b.extend(c,function(a){c.call(this);this.EC=(new e(a)).ne(d.Geometry).ne(d.dp).ne(d.Mesh).ne(d.Al).ne(d.OrthographicCamera).ne(d.Ou).ne(d.Th).ne(d.gk).ne(d.Su).ne(d.lf).ne(d.ep).ne(d.Scene).ne(d.Ru).ne(d.Texture).ne(d.fp).ne(d.gp).ne(d.zg).ne(d.hp).ne(d.Xm).Vx(f.zg,"Viewport").Vx(f.Th,"Parent").Vx(f.fp,"VideoMaterial").Vx(f.hp,"ViewportPlaneGeometry").Vx(f.Mesh,"Mesh").Vx(f.lf,"Renderer");
this.Tk=this.EC.ox("Scene");this.Tk.Ee(d.Scene);this.bc=this.EC.ox("Camera");this.bc.Ee(d.OrthographicCamera);this.bc.Ee(d.Th).ZJ=this.Tk;this.g=this.EC.ox("Renderer");this.bind(EventName.pb,this.hb,this,o);this.bind(EventName.Le,this.qi,this,o);this.bind(EventName.Df,this.mi,this,o)});a.prototype.ox=function(a){return this.EC.ox(a)};a.prototype.gV=function(a){this.EC.gV(a)};a.prototype.Yt=Q("bc");a.prototype.fr=function(a){if(this.bc!=a){this.bc=a;if(a=this.g.hl(d.lf))a.PJ=this.bc}};a.prototype.hb=
function(){var a=this.g.hl(d.lf);if(a){a.width=this.jd();a.height=this.hd()}};a.prototype.qi=function(){this.tna()};a.prototype.mi=function(){this.doa()};a.prototype.tna=function(){var a=this.g.Tb(d.lf);if(!a){a=this.g.Ee(d.lf);a.canvas=document.createElement("canvas");this.Ja().XU(a.canvas);a.PJ=this.bc;a.AW=this.Tk;a.antialias=o;a.width=this.jd();a.height=this.hd()}};a.prototype.doa=function(){var a=this.g.Tb(d.lf);if(a){this.Ja().qta(a.canvas);this.g.ml(d.lf)}};return a});
define("ja",["require","eD","cE"],function(a){var b=a("eD"),c=a("cE"),a=b.extend(c,function(a,b){c.call(this,a);this.v=b;this.v.bind(EventName.L("video"),this.GR,this);this.GR()});a.prototype.clear=function(){this.v&&(this.v.unbind(EventName.L("video"),this.GR,this),this.v=q);c.prototype.clear.call(this)};a.prototype.GR=function(){this.bX(this.v.get("video"))};return a});
define("jU","require,eD,kd,S,d,cN,ja".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("S"),d=a("d"),f=a("cN"),i=a("ja"),a=b.extend(d,function(a,b,n){d.call(this);this.$a=a;this.D=b;this.v=n;this.set("toolTipDisabled",o);this.set("cursor",e.Iu);this.bind(c.pb,this.hb,this,o);this.Pw=new i(b,n);this.pw=new f.GY;this.pw.OW(f.GY.hM);this.pw.jf(this.TH=y);[this.Pw.Ab(),this.pw.Ab()].forEach(function(a,b){this.Ja().append(a);a.css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",
"z-index":b})}.bind(this))});a.prototype.WW=function(a,b){if(this.TH!=a){this.TH=a;this.pw.yaa(b);this.pw.jf(a)}};a.prototype.hb=function(){this.OI=o;this.pw.setSize(this.ua(),this.Za())};return a});
define("iA","require,eD,S,c,jM,dM,en,jU".split(","),function(a){var b=a("eD"),c=a("S"),e=a("c"),d=a("jM"),f=a("dM"),i=a("en"),j=a("jU"),a=b.extend(d,function(a,b,f){d.call(this);this.$a=a;this.D=b;this.v=f;this.Dc("Renderer");this.set("toolTipDisabled",o);this.set("cursor",c.Iu);this.set("layout",e.oL);this.Sa=this.lm=q;this.FJ=[];this.BC=[];this.mC()});a.prototype.Ba=function(){d.prototype.Ba.call(this);if(this.lm==q){this.lm=new i(this.$a);this.lm.M({left:0,top:0,right:0,bottom:0});this.ia(this.lm);
this.FJ.forEach(function(a){this.y0(a)}.bind(this))}if(this.Sa==q){this.Sa=new j(this.$a,this.D,this.v);this.Sa.M({left:0,top:0,right:0,bottom:0});this.ia(this.Sa);this.mC()}};a.prototype.Xpa=function(a){this.FJ.push(a);this.lm&&this.y0(a)};a.prototype.y0=function(a){var b=this.lm.ox("Video");b.Ee(f.Th).ZJ=this.lm.Tk;b.Ee(f.Mesh).Lo=a;var c=b.Ee(f.hp);c.Lo=a;c.nu=this.lm.g;c=b.Ee(f.fp);c.Lo=a;c.uba=a.get("video");c.X8=a;this.BC.push(b);this.mC()};a.prototype.eaa=function(a){a=this.FJ.indexOf(a);if(!(a<
0)){this.FJ.splice(a,1);this.lm&&this.Ufa(this.BC[a])}};a.prototype.Ufa=function(a){var b=this.BC.indexOf(a);if(!(b<0)){this.BC.splice(b,1);this.lm.gV(a);this.mC()}};a.prototype.WW=function(a){this.TH=a;this.mC()};a.prototype.mC=function(){this.Sa&&this.Sa.WW(this.TH&&this.BC.length>0)};return a});
define("bm","require,cV,eD,kd,eQ,bS,dx,iV,er,z,ds,iA,cU,cd,eK,jM".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("eQ"),f=a("bS"),i=a("dx"),j=a("iV"),k=a("er"),n=a("z"),g=a("ds"),l=a("iA"),r=a("cU"),p=a("cd"),s=a("eK"),t=a("jM"),u=c.extend(t,function(){t.call(this);this.set("childrenInteractionEnabled",o);this.set("contentOpaque",o);this.set("creationPolicy",p.Kr);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",o);this.set("doubleClickAction","toggle_fullscreen");this.set("subtitlesEnabled",o);this.set("checkToolTipOcclusion",o);this.Jl=this.gc=this.WF=this.Ae=q;this.$R=this.Tl=y;this.vf=d.K;this.Vh=this.Ag=q;this.oj=
y;this.bind(u.LY,this.mka,this,o);this.bind(u.KY,this.lka,this,o);this.bind(e.ob,this.i4,this);this.bind(e.ob,this.i4,this);this.bind(e.Ic,this.Eka,this);this.bind(e.jc,this.Dka,this);this.bind(e.Le,this.xH,this,o);this.bind(e.Df,this.Cka,this,o);this.$U=new j(this,"buttonPause",r.Xg);this.$U.bind(e.U,this.gw,this);this.$U.set("state",s.Gc);this.bV=new j(this,"buttonPlay",r.Xg);this.bV.bind(e.U,this.hw,this);this.bV.set("state",s.Gc);this.aV=new j(this,"buttonPlayPause",r.Xg);this.aV.bind(e.U,this.hka,
this);this.aV.set("state",s.Gc);this.cV=new j(this,"buttonStop",r.Xg);this.cV.bind(e.U,this.bt,this);this.cV.set("state",s.va);this.$pa=new j(this,"buttonRestart",r.Hc);this.$pa.bind(e.U,this.at,this);this.OJ=new j(this,"buttonToggleSubtitles",r.Xg);this.OJ.bind(e.Wf,function(){this.set("subtitlesEnabled",o)},this,o);this.OJ.bind(e.Wg,function(){this.set("subtitlesEnabled",y)},this,o);this.bind(e.L("subtitlesEnabled"),function(){this.OJ.set("pressed",this.get("subtitlesEnabled"))},this);this.OJ.set("pressed",
this.get("subtitlesEnabled"));this.Nia=c.Jo(this.ypa,this);this.bind(e.yE,this.Bka,this,o)});i.A("ViewerArea",u).B("UIComponent").R({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"}).Sg({play:function(){this.hw()},pause:function(){this.gw()},stop:function(){this.bt()},restart:function(){this.at()}});u.fb=
{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:y,
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:y,plabackBarSteps:m,plabackBarSelectedStep:m,playbackBarVisible:y,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:y,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:o,toolTipEnabled:o};b.defaults(u.fb,t.fb);u.prototype.set=function(a,b){if(a=="playbackState"){b=this.vf;if(this.get(a)!=b){this.$R=o;this.Nia()}}switch(a){case "toolTipEnabled":this.set("toolTipDisabled",b===y);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.nC()}t.prototype.set.call(this,a,b)};u.prototype.ta=function(){this.jj(u.fb)};u.prototype.Ba=function(){t.prototype.Ba.call(this);if(this.Ae==q){this.Ae=new n;this.ia(this.Ae)}if(this.gc==q){this.gc=new k;
this.gc.bind(e.$,this.XR,this,o);this.ia(this.gc);this.nC()}};u.prototype.qra=Q("gc");u.prototype.Oh=function(){t.prototype.Oh.call(this);var a=this.Ta(),c=b(a).find(function(a){return a instanceof g}),d=b(a).find(function(a){return a instanceof l}),e=this.Ae&&this.ZC(this.Ae)>=0?this.Ae:q,f=this.gc&&this.ZC(this.gc)>=0?this.gc:q;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.ZC(b)!=a&&this.Ni(b,
a)},this)};u.prototype.fa=function(){if(this.n("externalProgressBar")){(this.WF=this.j("externalProgressBar"))?this.removeChild(this.Ae):this.ia(this.Ae);this.o("externalProgressBar");b(u.NZ).each(function(a){this.vt(a)},this)}this.Xa(u.Oca,u.CZ,[this.Ae],o,o);var a=[this.Ae];this.WF&&a.push(this.WF);this.Xa(u.NZ,u.OZ,a,o,o);if(this.n("externalPlaybackBar")){this.Jl&&this.Jl.unbind(e.$,this.XR,this,o);(this.Jl=this.j("externalPlaybackBar"))?this.removeChild(this.gc):this.ia(this.gc);this.nC();this.Jl&&
this.Jl.bind(e.$,this.XR,this,o);this.o("externalPlaybackBar");b(u.JZ).each(function(a){this.vt(a)},this)}this.Xa(u.Nca,u.BZ,[this.gc],o,o);a=[this.gc];this.Jl&&a.push(this.Jl);this.Xa(u.JZ,u.KZ,a,o,o);t.prototype.fa.call(this)};u.prototype.ypa=function(){if(this.$R){this.$R=y;this.$U.set("state",this.vf==d.Ac?s.va:s.Gc);this.bV.set("state",this.vf==d.N||this.vf==d.Ac?s.va:s.Gc);this.aV.set("state",this.vf==d.N?s.va:s.Gc);this.cV.set("state",this.vf==d.K?s.va:s.Gc)}};u.prototype.Pb=function(a){this.vf=
a;this.set("playbackState",a)};u.prototype.xH=function(){u.qi(this)};u.prototype.Cka=function(){u.mi(this)};u.prototype.gw=function(){this.vf==d.Ac?this.Ig():this.Jk()};u.prototype.hw=function(){this.Ig()};u.prototype.hka=function(){this.vf==d.N?this.Jk():this.Ig()};u.prototype.bt=function(){this.Gj()};u.prototype.at=function(){this.Gj();this.Ig()};u.prototype.Bka=function(){if(!this.Ag||!this.Ag.L8())switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.Pa().Kf;a&&a.available()&&
a.toggle()}};u.prototype.Ig=function(){this.Vh&&this.Vh.play()};u.prototype.Jk=function(){this.Vh&&this.Vh.pause()};u.prototype.Gj=function(){this.Vh&&this.Vh.stop()};u.prototype.mka=function(a){this.b6(a.data.player)};u.prototype.lka=function(a){this.Ag==a.data.player&&this.b6(q)};u.prototype.i4=function(){u.pl(this)};u.prototype.Eka=function(){this.oj=o;this.nC()};u.prototype.Dka=function(){this.oj=y;this.nC()};u.prototype.nC=function(){this.gc&&this.gc.set("visible",this.get("playbackBarVisible")&&
(this.oj||!this.get("playbackBarRollOverDisplay")||Device.gL()))};u.prototype.b6=function(a){if(this.Ag!=a){this.set("playbackBarVisible",y);this.Ag&&this.Ag.pl(y);this.Vh&&this.Vh.unbind(e.L("state"),this.eN,this);this.kla=this.Ag;(this.Ag=a)&&this.Ag.pl(!!this.Sv);(this.Vh=this.Ag&&this.Ag.uea?this.Ag:q)&&this.Vh.bind(e.L("state"),this.eN,this,o);this.eN()}};u.prototype.pl=function(a){this.Sv=a;this.Ag&&this.Ag.pl(!!this.Sv)};u.prototype.xva=function(){return!this.kla};u.prototype.eN=function(){this.Vh?
this.Pb(this.Vh.get("state")):this.Pb(d.K)};u.prototype.XR=function(){var a=(this.Jl?this.Jl:this.gc).get("position");this.trigger(new f(u.ZL,{position:a}))};u.CZ={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.Oca=b(u.CZ).keys();u.OZ={progressPercent:"percent",progressVisible:"visible"};u.NZ=b(u.OZ).keys();u.BZ={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.Nca=b(u.BZ).keys();u.KZ={playbackBarDuration:"duration",playbackBarPosition:"position",playbackBarSteps:"steps",playbackBarSelectedStep:"selectedStep",playbackBarVisible:"visible"};u.JZ=b(u.KZ).keys();u.wM="requestByPlayer";
u.LY="playerShow";u.KY="playerHide";u.ZL="playbackBarPositionChange";u.Ns=q;u.pl=function(a){if(u.Ns!=a){u.Ns&&u.Ns.pl(y);u.Ns=a;u.Ns&&u.Ns.pl(o)}};u.Nq=[];u.qi=function(a){var b=u.Nq.indexOf(a);b<0&&u.Nq.splice(b,1);u.Nq.push(a);this.pl(a)};u.mi=function(a){var b=u.Nq.indexOf(a);b<0&&u.Nq.splice(b,1);u.Ns==a&&u.pl(u.Nq.length?u.Nq[u.Nq.length-1]:q)};return u});
define("cl","eD,im,kd,bS,dx,bm".split(","),function(a,b,c,e,d,f){var i=a.extend(b,function(a){b.call(this);this.uea=a;this.EB=this.cq=q});i.kf="mediaShow";i.Vg="mediaHide";i.prototype.pl=E();i.prototype.L8=R(y);i.prototype.LI=function(a){if(this.cq!=a){this.cq&&this.ST(this.cq);(this.cq=a)&&this.GN(this.cq)}};i.prototype.GN=function(a){a.bind(f.wM,this.q8,this);a.bind(f.ZL,this.UH,this)};i.prototype.ST=function(a){a.unbind(f.wM,this.q8,this);a.unbind(f.ZL,this.UH,this)};i.prototype.lI=function(){this.cq.trigger(new e(f.wM,
{player:this}))};i.prototype.q8=function(a){a.data.player!=this&&this.PB()};i.prototype.UH=E();i.prototype.PB=E();i.prototype.XG=function(a){this.trigger(new e(i.kf,{media:a}));this.EB=this.cq;this.EB.trigger(new e(f.LY,{player:this}))};i.prototype.WG=function(a){this.trigger(new e(i.Vg,{media:a}));if(this.EB){this.EB.trigger(new e(f.KY,{player:this}));this.EB=q}};return i});
define("fW","eD,im,kd,bS,dx,iV,cl,bm,eQ,cU,eK".split(","),function(a,b,c,e,d,f,i,j,k,n,g){var l=a.extend(i,function(){i.call(this,o);this.Tl=y;this.Nw=o;this.k=k.K;this.JN=new f(this,"buttonPlayPause",n.Xg);this.JN.bind(c.Wf,this.ika,this,o);this.JN.bind(c.Wg,this.jka,this,o);this.F_=new f(this,"buttonPause",n.Hc);this.F_.bind(c.U,this.gw,this,o);this.G_=new f(this,"buttonPlay",n.Hc);this.G_.bind(c.U,this.hw,this,o);this.J_=new f(this,"buttonStop",n.Hc);this.J_.bind(c.U,this.bt,this,o);this.mea=new f(this,
"buttonRestart",n.Hc);this.mea.bind(c.U,this.at,this,o);this.s2=a.Jo(this.lpa,this);this.s2()});l.prototype.set=function(a,b){a!="state"&&i.prototype.set.call(this,a,b)};l.prototype.get=function(a,b){switch(a){case "state":return this.k}return i.prototype.get.call(this,a,b)};l.prototype.lpa=function(){if(this.Nw){this.Nw=y;this.F_.set("state",this.k==k.Ac?g.va:g.Gc);this.G_.set("state",this.k==k.N||this.k==k.Ac?g.va:g.Gc);this.JN.set("pressed",this.k==k.N);this.J_.set("state",this.k==k.K?g.va:g.Gc)}};
l.prototype.Gw=function(a){if(this.Tl!=a)(this.Tl=a)||this.Pb(k.K)};l.prototype.Pb=function(a){var b=this.k;this.k=a;i.prototype.set.call(this,"state",a);if(b!=this.k){this.Nw=o;this.s2();this.trigger(new e(l.wd,{oldState:b,state:this.k}))}};l.prototype.gw=function(){this.Tl&&(this.k==k.Ac?this.Ig():this.Jk())};l.prototype.hw=function(){this.Tl&&this.Ig()};l.prototype.ika=function(){this.Tl&&this.Ig()};l.prototype.jka=function(){this.Tl&&this.Jk()};l.prototype.bt=function(){this.Tl&&this.Gj()};l.prototype.at=
function(){if(this.Tl){this.Gj();this.Ig()}};l.prototype.Ig=E();l.prototype.Jk=E();l.prototype.Gj=E();l.wd="stateChange";return l});define("gU",[],function(){return{ur:"constrained",Pba:"free_drag",Lva:"free_drag_and_rotation",DM:"sync_with_field_of_view"}});
define("hs",["eD","gU","iw"],function(a,b,c){function e(){this.Z=o;this.ca=this.ba=0.5;this.tb=0;this.ma=1;this.cd=c.qe;this.ki=b.ur;this.cR=this.fR=1;this.uc=this.vc=this.Xh=this.Yh=100;this.zi=e.Rr}e.prototype.T9=function(){return this.zi!==e.Rr};e.prototype.S9=function(){return this.zi&e.Tu?o:y};e.prototype.U9=function(){return this.zi&e.Uu?o:y};e.prototype.V9=function(){return this.zi&e.Ur?o:y};e.prototype.R9=function(){return this.zi&e.Qr?o:y};e.prototype.getX=function(){this.Fi();return this.ba};
e.prototype.getY=function(){this.Fi();return this.ca};e.prototype.il=function(){this.Fi();return this.ma};e.prototype.sx=function(){this.Fi();return this.tb};e.prototype.DD=function(a,b,c,e,k){this.vc=a;this.uc=b;this.cd=c;this.fR=e;this.cR=k;this.ca=this.ba=0.5;this.tb=0;this.ma=e;this.Z=o};e.prototype.ya=function(a,b,c,e){this.ba=a;this.ca=b;this.tb=c;this.ma=e;this.Z=o};e.prototype.ql=function(a){this.ki=a;this.Z=o};e.prototype.setSize=function(a,b){this.Yh=a;this.Xh=b;this.Z=o};e.prototype.Fi=
function(){if(this.Z){this.Z=y;var a=e.Rr;this.ma>this.cR?(this.ma=this.cR,a|=e.Pca):this.ma<this.fR&&(this.ma=this.fR,a|=e.Qca);var f,i,j,k;if(this.ki==b.ur){switch(this.cd){case c.NONE:i=this.vc;k=this.uc;break;case c.ek:i=this.Yh;k=this.uc*this.Yh/this.vc;break;case c.yg:i=this.vc*this.Xh/this.uc;k=this.Xh;break;case c.xl:this.vc*this.Xh>this.uc*this.Yh?(i=this.vc*this.Xh/this.uc,k=this.Xh):(i=this.Yh,k=this.uc*this.Yh/this.vc);break;default:case c.qe:this.vc*this.Xh>this.uc*this.Yh?(i=this.Yh,
k=this.uc*this.Yh/this.vc):(i=this.vc*this.Xh/this.uc,k=this.Xh)}i*=this.ma;k*=this.ma;f=Math.min(0.5*this.Yh/i,0.5);i=Math.max(1-0.5*this.Yh/i,0.5);j=Math.min(0.5*this.Xh/k,0.5);k=Math.max(1-0.5*this.Xh/k,0.5)}else f=0,i=1,j=0,k=1;this.ba<f?(this.ba=f,a|=e.Tu):this.ba>i&&(this.ba=i,a|=e.Uu);this.ca<j?(this.ca=j,a|=e.Ur):this.ca>k&&(this.ca=k,a|=e.Qr);if((this.ki==b.ur||this.ki==b.Pba)&&0!=this.tb)this.tb=0,a|=e.Uca;this.zi=a}};e.Rr=0;e.Tu=1;e.Uu=2;e.Ur=4;e.Qr=8;e.Qca=16;e.Pca=32;e.Uca=64;return e});
define("eq",[],function(){function a(){this.sz=0.1;this.HF=this.AO=this.DO=this.CO=this.KO=this.zO=this.IO=this.HO=this.KC=this.TU=this.Wr=this.kN=this.IC=this.QU=this.GC=this.OU=0}a.prototype.UK=N("sz");a.prototype.Oaa=function(a,c,e,d,f,i,j,k){this.OU=a;this.QU=c;this.kN=e;this.TU=d;this.GC+=f;this.IC+=i;this.Wr+=j;this.KC+=k};a.prototype.Pc=function(){return 0!=this.HO||0!=this.IO||0!=this.zO||0!=this.KO||0!=this.OU||0!=this.QU||0!=this.kN||0!=this.TU||0!=this.GC||0!=this.IC||0!=this.Wr||0!=this.KC};
a.prototype.Ua=function(a){a=1E3/a;this.CO=this.QF(this.HO/a,this.OU/a+this.GC,this.sz);this.DO=this.QF(this.IO/a,this.QU/a+this.IC,this.sz);this.AO=this.QF(this.zO/a,this.kN/a+this.Wr,this.sz);this.HF=this.QF(this.KO/a,this.TU/a+this.KC,this.sz);this.HO=this.CO*a;this.IO=this.DO*a;this.zO=this.AO*a;this.KO=this.HF*a;this.KC=this.Wr=this.IC=this.GC=0};a.prototype.QF=function(a,c,e){return 0==c?this.ue(a,c,e):c};a.prototype.ue=function(a,c,e){a=(c-a)*(1-e);0.01>Math.abs(a)&&(a=0);return c-a};return a});
define("ev",["eD","kd","bS","em","iw"],function(a,b,c,e){var d=a.extend(e,function(){e.call(this);this.yv=7;this.dH=this.EQ=y;this.fH=m;this.tb=0;this.ma=1;this.uc=this.vc=100;this.GG=1;this.fS=o;this.gS=y;this.Mpa=o;this.SU=y;this.na=q});d.prototype.ED=N("yv");d.prototype.oe=function(a,b,c,d){this.tb=a;this.ma=b;this.vc=c;this.uc=d};d.prototype.Hua=function(a){this.fS=a;this.GI(this.fS&&!!this.na)};d.prototype.ru=function(a){this.na!=a&&(this.GI(y),this.gT(y),this.Dh(),this.na=a,this.GI(this.fS&&
!!this.na),this.gT(this.Mpa&&!!this.na))};d.prototype.Dh=function(){this.GI(y);this.gT(y);this.na=q};d.prototype.GI=function(a){this.gS!=a&&((this.gS=a)?this.Wda():this.Joa())};d.prototype.gT=function(a){this.SU!=a&&((this.SU=a)?this.Xda():this.Koa())};d.prototype.Wda=function(){this.na.bind(b.ob,this.Wb,this,o);this.na.bind(b.qc,this.gg,this,o);this.na.bind(b.Lb,this.hg,this,o)};d.prototype.Joa=function(){this.na.unbind(b.ob,this.Wb,this);this.na.unbind(b.qc,this.gg,this);this.na.unbind(b.Lb,this.hg,
this)};d.prototype.Xda=function(){this.na.bind(b.cp,this.Ts,this,o);this.na.bind(b.Hu,this.Cs,this,o)};d.prototype.Koa=function(){this.na.unbind(b.cp,this.Ts,this);this.na.unbind(b.Hu,this.Cs,this)};d.prototype.Wb=function(a){this.Hna(a)};d.prototype.gg=function(a){this.R7(a)};d.prototype.hg=function(){this.kP()};d.prototype.Ts=function(a){this.uU(a)};d.prototype.Cs=function(a){this.vU(a)};d.prototype.Hna=function(a){this.EQ=o;this.dH=y;this.fH=a;this.R7(a)};d.prototype.R7=function(a){if(this.EQ){var b=
a.pageX-this.fH.pageX,e=a.pageY-this.fH.pageY;this.dH||(Math.sqrt(b*b+e*e)>this.yv?this.dH=o:b=e=0);this.dH&&(this.fH=a);a=this.tb*Math.PI/180;this.trigger(new c(d.ak,{xDelta:-((b*Math.cos(a)+e*Math.sin(a))/this.vc),yDelta:-((e*Math.cos(a)-b*Math.sin(a))/this.uc)}))}};d.prototype.kP=function(){this.EQ=y};d.prototype.vU=function(a){if(this.GG!=a.scale){this.kP();var b=this.GG;this.GG=a.scale;this.trigger(new c(d.dk,{zoomDelta:this.ma*this.GG/b-this.ma}))}};d.prototype.uU=function(a){0!=a.yo&&(this.kP(),
this.trigger(new c(d.dk,{zoomDelta:0.1*this.ma*a.iV})))};d.ak="position change";d.dk="zoom change";d.Yva="vieport navigation";d.Xva="relative navigation";d.Wva="relative exponential navigation";d.Vva="dragging";return d});define("gH",[],function(){return{xM:"rotateClockwise",yM:"rotateCounterClockwise",Ym:"zoomIn",Zm:"zoomOut",Dd:"stop"}});
define("jt","eD,bS,em,iw,eq,ev,gH,kd".split(","),function(a,b,c,e,d,f,i){var j=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.Ll=this.eI=this.V=y;this.ca=this.ba=0.5;this.tb=0;this.ma=1;this.uc=this.vc=100;this.cd=e.ur;this.Ra=new d;this.pa=new f;if(this.g.pj){this.pa.ED(j.YM);this.Ra.UK(j.ZM)}else{this.pa.ED(0);this.Ra.UK(1)}this.pa.bind(f.ak,this.aka,this,o);this.pa.bind(f.dk,this.hq,this,o)});j.prototype.clear=function(){this.pa.unbind(f.ak,this.jxa,this,o);this.pa.unbind(f.dk,this.hq,
this,o);this.pa.Dh();this.g=this.H=this.Ra=this.pa=q};j.prototype.ug=function(a){switch(a){case i.xM:this.mb(0,0,+j.SM,0,0,0,0,0);break;case i.yM:this.mb(0,0,-j.SM,0,0,0,0,0);break;case i.Ym:this.mb(0,0,0,+j.By,0,0,0,0);break;case i.Zm:this.mb(0,0,0,-j.By,0,0,0,0);break;case i.Dd:this.mb(0,0,0,0,0,0,0,0)}};j.prototype.ya=function(a,b,c,d,e,f){this.ba=a;this.ca=b;this.tb=c;this.ma=d;this.vc=e;this.uc=f;this.pa.oe(this.tb,this.ma,this.vc,this.uc)};j.prototype.Pc=function(){return this.V&&this.Ra.Pc()};
j.prototype.Ua=function(a){this.Ra.Ua(a);this.H.ya(this.ba+this.Ra.CO,this.ca+this.Ra.DO,this.tb+this.Ra.AO,this.ma+this.Ra.HF);this.ba=this.H.getX();this.ca=this.H.getY();this.tb=this.H.sx();this.ma=this.H.il()};j.prototype.HD=function(a){this.Ll=a;this.pa.Hua(!this.Ll)};j.prototype.$c=function(a){(this.V=a)?this.pa.ru(this.g.getParent()):this.pa.Dh()};j.prototype.aka=function(a){this.mb(0,0,0,0,a.data.xDelta,a.data.yDelta,0,0)};j.prototype.hq=function(a){this.mb(0,0,0,0,0,0,0,a.data.zoomDelta)};
j.prototype.mb=function(a,b,c,d,e,f,j,i){this.Ra.Oaa(a,b,c,d,e,f,j,i);this.bf()};j.prototype.bf=function(){this.trigger(new b(j.Ke))};j.Ke="position change request";j.YM=7;j.ZM=0.2;j.By=0.5;j.SM=30;return j});
define("iT","eD,bS,em,jP,bq,eq,ev,gH,kd".split(","),function(a,b,c,e,d,f,i,j){var k=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.V=y;this.ca=this.ba=0.5;this.tb=0;this.ma=1;this.uc=this.vc=100;this.O=q;this.hP=o;this.rb=q;this.FH=0;this.em=this.oo=this.mo=m;this.Ra=new f;this.pa=new i;if(this.g.pj){this.pa.ED(k.YM);this.Ra.UK(k.ZM)}else{this.pa.ED(0);this.Ra.UK(1)}this.pa.bind(i.dk,this.hq,this,o)});k.prototype.tua=function(a,b){this.vc=a;this.uc=b;this.wJ()};k.prototype.So=function(a){if(this.rb!=
a){this.rb=a;this.FH=m;this.wJ()}};k.prototype.Qi=function(a,b){if(this.rb==a){this.FH=b;this.wJ()}};k.prototype.wJ=function(){var a,b,c;if(this.rb&&this.FH!=m){a=this.rb.get("x",0)/this.vc;b=this.rb.get("y",0)/this.uc;c=-(this.FH+this.rb.get("angle",0))}else c=b=a=m;if(this.em!=c){this.em=c;this.bf()}if(this.mo!=a||this.oo!=b){this.mo=a;this.oo=b;this.Mia();this.bf()}};k.prototype.Mia=function(){this.hP=o;this.bf()};k.prototype.hC=function(){if(this.hP||this.O&&this.O.me()){this.hP=y;this.O=q;if(this.mo!=
m&&this.oo!=m&&this.em!=m){for(var a=this.em-this.tb;a>180;)a=a-360;for(;a<-180;)a=a+360;if(this.ba!=this.mo||this.ca!=this.oo)this.O=new e("quad_in_out",[new d("x",this.ba,this.mo,1),new d("y",this.ca,this.oo,1),new d("angleDif",a,a,360)],500);else if(this.em!=this.tb)this.O=new e("quad_in_out",[new d("x",this.ba,this.ba,1),new d("y",this.ca,this.ca,1),new d("angleDif",a,0,360)],500)}}};k.prototype.clear=function(){this.pa.unbind(i.dk,this.hq,this,o);this.pa.Dh();this.g=this.H=this.O=this.Ra=this.pa=
q};k.prototype.ug=function(a){switch(a){case j.Ym:this.mb(+k.By,0);break;case j.Zm:this.mb(-k.By,0);break;case j.Dd:this.mb(0,0)}};k.prototype.ya=function(a,b,c,d,e,f){this.ba=a;this.ca=b;this.tb=c;this.ma=d;this.pa.oe(this.tb,this.ma,e,f)};k.prototype.Pc=function(){return this.V&&(this.O||this.Ra.Pc()||this.mo!=m&&this.ba!=this.mo||this.oo!=m&&this.ca!=this.oo||this.em!=m&&this.tb!=this.em)?o:y};k.prototype.Ua=function(a){this.hC();if(this.O){this.O.Ua(a);this.ba=this.O.nb("x");this.ca=this.O.nb("y");
this.tb=this.em-this.O.nb("angleDif")}else{if(this.mo!=m)this.ba=this.mo;if(this.oo!=m)this.ca=this.oo;if(this.em!=m)this.tb=this.em}this.Ra.Ua(a);this.H.ya(this.ba,this.ca,this.tb,this.ma+this.Ra.HF);this.ba=this.H.getX();this.ca=this.H.getY();this.tb=this.H.sx();this.ma=this.H.il()};k.prototype.$c=function(a){if(this.V=a){this.pa.ru(this.g.getParent());this.wJ()}else this.pa.Dh()};k.prototype.hq=function(a){this.mb(0,a.data.zoomDelta)};k.prototype.mb=function(a,b){this.Ra.Oaa(0,0,0,a,0,0,0,b);this.bf()};
k.prototype.bf=function(){this.trigger(new b(k.Ke))};k.Ke="position change request";k.YM=7;k.ZM=0.2;k.By=0.5;k.SM=30;return k});
define("jH","eD,bS,em,gU,iw,hs,jt,iT,kd".split(","),function(a,b,c,e,d,f,i,j,k){var n=a.extend(c,function(a){c.call(this);this.g=a;this.g.bind(k.pb,this.hb,this);this.ki=e.ur;this.rb=q;this.ca=this.ba=0.5;this.tb=0;this.ma=1;this.oa=q;this.uI=this.tI=this.pm=this.om=y;this.Bi=o;this.V=y;this.H=new f;this.H.ql(this.ki);this.Na=new i(this.g,this.H);this.Na.bind(i.Ke,this.Ek,this,o);this.yf=new j(this.g,this.H);this.yf.bind(j.Ke,this.Ek,this,o);this.gI()});n.prototype.clear=function(){this.Na.unbind(i.Ke,
this.Ek,this);this.Na.clear();this.Na=q;this.yf.unbind(j.Ke,this.Ek,this);this.yf.clear();this.oa=this.H=this.yf=q;this.g.unbind(k.pb,this.hb,this);this.g=q};n.prototype.stop=function(){this.dc=this.oa=q;this.V=y;this.Na.$c(y);this.yf.$c(y);this.io(0,0,0,0)};n.prototype.start=function(a){var b=a.oa,c=b.get("width",100),e=b.get("height",100),f=b.get("scaleMode",d.qe),j=b.get("minimumZoomFactor",1),k=b.get("maximumZoomFactor",1),i=b.get("initialZoomFactor",1);this.oa=b;this.V=o;this.dc=a.getItem();
this.io(0,0,0,0);this.yf.tua(c,e);this.H.DD(c,e,f,j,k);this.H.ya(0.5,0.5,0,i);this.g.ID(this.dc,this.H.getX(),this.H.getY(),this.H.sx(),this.H.il());this.gI()};n.prototype.ug=function(a){this.Na.ug(a);this.yf.ug(a)};n.prototype.ql=function(a){if(this.ki!=a){this.ki=a;this.H.ql(a);this.gI()}};n.prototype.So=function(a){if(this.rb!=a){this.rb=a;this.yf.So(a);this.gI()}};n.prototype.HD=function(a){this.Na&&this.Na.HD(a)};n.prototype.Qi=function(a,b,c,d){this.yf.Qi(a,b,c,d)};n.prototype.Mo=function(a){if(this.V)if(this.yf.Pc()){this.yf.Ua(a);
this.wh(this.yf.ba,this.yf.ca,this.yf.tb,this.yf.ma);this.ea()}else if(this.Na.Pc()){this.Na.Ua(a);this.wh(this.Na.ba,this.Na.ca,this.Na.tb,this.Na.ma);this.ea()}else this.io(0,0,0,0)};n.prototype.nc=function(){if(this.dc){var a=this.g.dD(this.dc),b=this.g.eD(this.dc),c=this.g.mK(this.dc),d=this.g.o9(this.dc),e=this.g.cD(this.dc),f=this.g.bD(this.dc),j=a-this.ba,k=b-this.ca,i=c-this.tb,n=d-this.ma;this.ba=a;this.ca=b;this.tb=c;this.ma=d;this.io(j,k,i,n);this.yf.ya(a,b,c,d,e,f);this.Na.ya(a,b,c,d,
e,f)}};n.prototype.gI=function(){if(this.ki==e.DM&&this.rb!=q&&this.rb.get("map")==this.oa){this.Na.$c(y);this.yf.$c(o)}else{this.Na.$c(o);this.yf.$c(y)}};n.prototype.Ek=function(){this.ea()};n.prototype.hb=function(){this.H.setSize(this.g.ua(),this.g.Za());this.ea()};n.prototype.ea=function(){this.trigger(new b(n.Ca))};n.prototype.wh=function(a,b,c,d){this.g.ID(this.dc,a,b,c,d)};n.prototype.io=function(a,c,d,e){a=y;if(this.pm!=e<0){this.pm=!this.pm;a=o}if(this.om!=e>0){this.om=!this.om;a=o}if(this.tI!=
this.Wr>0){this.tI=!this.tI;a=o}if(this.uI!=this.Wr<0){this.uI=!this.uI;a=o}if(this.Bi!=(e==0)){this.Bi=!this.Bi;a=o}a&&this.trigger(new b(n.wg,{rotatingClockwise:this.tI,rotatingCounterClockwise:this.uI,zoomingIn:this.om,zoomingOut:this.pm,stopped:this.Bi}))};n.Ca="request frame";n.wg="movement change";return n});
define("gK","require,eD,bS,em,iw,hs".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=a("iw"),f=a("hs"),i=b.extend(e,function(a,b){e.call(this);this.D=a;this.g=b;this.H=new f;this.ze=[];this.X=i.cj;this.nf=this.Qe=q;this.Lg=this.D.get("transitionDuration");this.yh=m});i.prototype.ql=function(a){this.H.ql(a)};i.prototype.UC=function(a){a.mD()&&this.YN();this.ze.push(a);this.oH()};i.prototype.hide=function(){this.YN();this.ze.push(q);this.oH()};i.prototype.clear=function(){this.X=i.cj;this.YN();
this.Ala();this.AS();this.g=q};i.prototype.nc=function(a){if(this.X!=i.cj&&(this.X==i.ip||this.X==i.Fy)){this.yh=this.yh+a;a=Math.min(1,this.yh/this.Lg);this.X==i.ip?this.g.ol(this.Qe.getItem(),a):this.g.ol(this.nf.getItem(),1-a);this.yh<this.Lg?this.ea():this.X==i.ip?this.lga():this.nga()}};i.prototype.oH=function(){if(this.X==i.cj){for(;this.ze.length>0&&this.yda(this.ze[0],this.nf);)this.ze.shift();this.ze.length>0&&this.mp()}};i.prototype.yda=function(a,b){return a==b||!!a&&!!b&&a.isEqual(b)};
i.prototype.mp=function(){this.nf&&(!this.ze[0]||this.ze[0].mD())&&this.trigger(new c(i.yr,{map:this.nf.oa}));if(this.D.get("transitionMode","blending")=="fade_out_fade_in"&&this.nf&&(!this.ze[0]||this.ze[0].mD()))this.Ry();else(this.Qe=this.ze.shift())?this.DN():this.nf&&this.Ry()};i.prototype.DN=function(){this.eda();this.Qe.mD()&&this.oma();this.yh=0;this.X=i.ip;this.ea()};i.prototype.lga=function(){this.AS();this.nf=this.Qe;this.Qe=q;this.Av()};i.prototype.Ry=function(){this.yh=0;this.X=i.Fy;
this.ea()};i.prototype.nga=function(){this.AS();this.nf=q;this.Av()};i.prototype.Av=function(){this.X=i.cj;this.nf&&this.nf.mD()&&this.trigger(new c(i.zr,{map:this.nf.oa}));this.ze.length==0?this.nf&&this.trigger(new c(i.PL,{level:this.nf})):this.mp()};i.prototype.oma=function(){var a=this.Qe.oa;this.Qe.yx();this.H.DD(a.get("width",100),a.get("height",100),a.get("scaleMode",d.qe),a.get("minimumZoomFactor",1),a.get("maximumZoomFactor",1));this.H.ya(0.5,0.5,0,a.get("initialZoomFactor",1));this.g.ID(this.Qe.getItem(),
this.H.getX(),this.H.getY(),this.H.sx(),this.H.il())};i.prototype.ea=function(){this.trigger(new c(i.Ca))};i.prototype.YN=function(){for(;this.ze.length>0;){var a=this.ze.shift();a&&this.g.Nh(a.getItem())}};i.prototype.eda=function(){if(this.Qe){this.g.UU(this.Qe.getItem());this.g.ZU(this.Qe.getItem());this.g.ol(this.Qe.getItem(),0);this.trigger(new c(i.OL,{level:this.Qe}))}};i.prototype.AS=function(){if(this.nf){this.g.removeItem(this.nf.getItem());this.trigger(new c(i.lE,{level:this.nf}));this.g.Nh(this.nf.getItem());
this.nf=q}};i.prototype.Ala=function(){if(this.Qe){this.g.removeItem(this.Qe.getItem());this.trigger(new c(i.lE,{level:this.Qe}));this.g.Nh(this.Qe.getItem());this.Qe=q}};i.cj="stopped";i.ip="blending";i.Fy="disolving";i.Ca="request frame";i.OL="level added";i.lE="level removed";i.PL="level fully displayed";i.zr="map show";i.yr="map hide";return i});
define("hG",[],function(){function a(a,c){this.oa=a;this.za=a.get("image");this.zf=c;this.CQ=m}a.prototype.getItem=function(){switch(this.zf){case a.DE:return this.oa.x9();default:return this.oa.qg()}};a.prototype.yx=function(){switch(this.zf){case a.DE:return this.oa.au();default:return this.oa.gl()}};a.prototype.mD=function(){return this.CQ===m?0==this.getIndex():this.CQ};a.prototype.eua=N("CQ");a.prototype.nD=function(){return this.zf==a.cY};a.prototype.isEqual=function(a){return a&&this.oa==a.map&&
this.zf==a.type};a.prototype.getIndex=function(){return this.zf==a.DE||this.oa.Gx()?0:1};a.prototype.h9=function(){return this.oa.Gx()?2:1};a.DE="preload";a.cY="load";return a});
define("gS","require,eD,bS,em,kd,hG,u".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=a("kd"),f=a("hG"),i=a("u"),j=b.extend(e,function(a){e.call(this);this.g=a;this.ze=[];this.mz=this.Ps=this.de=q;this.Js=y;this.IG=q});j.prototype.clear=function(){this.stop();this.g=q};j.prototype.Bsa=function(a){if(this.IG!=a){this.stop();a.Gx()&&i.Qa()&&this.ze.push(new f(a,f.DE));this.ze.push(new f(a,f.cY));this.oH()}};j.prototype.stop=function(){this.IG=q;this.ze=[];this.U6();if(this.Js){this.Js=y;
this.PT();this.g.Nh(this.de.getItem());this.de=q;this.trigger(new c(j.mE))}};j.prototype.oH=function(){this.Js||this.YQ()};j.prototype.YQ=function(){if(this.ze.length>0){this.de=this.ze.shift();if(!this.Js){this.Js=o;this.trigger(new c(j.kE,{level:this.de,percent:0}))}this.Rda();this.g.Im(this.de.getItem());this.g.kX(this.de.getItem())&&this.sR()}else if(this.Js){this.Js=y;this.trigger(new c(j.mE))}};j.prototype.sR=function(){this.PT();this.Bna();this.de=q;this.YQ()};j.prototype.Bna=function(){this.U6();
this.Ps=this.de;var a=this;this.mz=setTimeout(function(){a.mz=q;a.Nja()},500)};j.prototype.Nja=function(){var a=this.Ps.oa;this.Ps.eua(a!=this.IG);this.IG=a;this.trigger(new c(j.QL,{level:this.Ps}));this.Ps=q};j.prototype.U6=function(){if(this.mz!=q){clearTimeout(this.mz);this.mz=q;this.g.Nh(this.Ps.getItem());this.Ps=q}};j.prototype.x3=function(){this.PT();this.de=q;this.YQ()};j.prototype.y3=function(a){this.trigger(new c(j.kE,{level:this.de,percent:a.Ih}))};j.prototype.Rda=function(){var a=this.de.getItem();
a.bind(d.T,this.sR,this);a.bind(d.xd,this.x3,this);a.bind(d.ic,this.y3,this)};j.prototype.PT=function(){var a=this.de.getItem();a.unbind(d.T,this.sR,this);a.unbind(d.xd,this.x3,this);a.unbind(d.ic,this.y3,this)};j.kE="level loading progress";j.QL="level loaded";j.mE="load stopped";return j});
define("bZ",["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("iN",["require","iw","bc"],function(a){function b(a,b,i){this.Od=a;this.J6=b;this.I6=i;this.cd=c.Sm;this.gh=e.pc;this.zh=e.$b}var c=a("iw"),e=a("bc");b.prototype.lr=N("cd");b.prototype.by=N("gh");b.prototype.ey=N("zh");b.prototype.px=function(a,b,i){var j=this.J6,k=this.I6,n,g;switch(this.cd){case c.NONE:g=n=1;break;case c.qe:n=g=Math.min(b/j,i/k);break;case c.xl:n=g=Math.max(b/j,i/k);break;case c.ek:n=g=b/j;break;case c.yg:n=g=i/k;break;default:n=b/j,g=i/k}var l=b/n;n=Math.min(this.J6*n,b);
l=Math.min(l,j);switch(this.gh){case e.ka:sX=tX=0;break;case e.Fa:tX=b-n;sX=j-l;break;default:tX=0.5*(b-n),sX=0.5*(j-l)}b=i/g;g=Math.min(this.I6*g,i);b=Math.min(b,k);switch(this.zh){case e.eb:k=i=0;break;case e.cb:i-=g;k-=b;break;default:i=0.5*(i-g),k=0.5*(k-b)}a.drawImage(this.Od,Math.round(sX),Math.round(k),Math.round(l+sX-Math.round(sX)),Math.round(b+k-Math.round(k)),Math.round(tX),Math.round(i),Math.round(n+tX-Math.round(tX)),Math.round(g+i-Math.round(i)))};return b});
define("iC","require,kd,fB,bZ,hn,iN".split(","),function(a){function b(a,b,d,g){this.g=a;this.oa=b;this.vc=this.oa.get("width");this.uc=this.oa.get("height");this.dc=this.oa.qg();this.f2=d;this.nj=g;this.Hs=q;if(this.nj){this.Cw=this.f2.Cw;this.W=this.nj.get("width");this.da=this.nj.get("height");this.ba=this.nj.get("x",0);this.ca=this.nj.get("y",0);this.Vs=this.nj.get("offsetX",0);this.Ws=this.nj.get("offsetY",0);if(this.eg=this.nj.gl()){this.Ue=new f(e.$i);this.Ue.load(this.eg.get("url"));this.Ue.bind(c.T,
this.Z3,this)}}else this.Ue=q}var c=a("kd"),e=a("fB"),d=a("bZ"),f=a("hn"),i=a("iN");b.prototype.clear=function(){this.nj=this.f2=this.dc=this.oa=this.g=q;if(this.Ue){this.Ue.unbind(c.T,this.Z3,this);this.Ue.cancel();this.Ue=q}this.Hs=q};b.prototype.q9=function(a,b){this.g2=m;if(this.Hs&&a!=m&&b!=m){var c=this.g.ua()*0.5,e=this.g.Za()*0.5,f=this.g.mK(this.dc)*Math.PI/180,i=this.g.cD(this.dc),p=this.g.bD(this.dc),s=this.g.dD(this.dc),t=this.g.eD(this.dc),u=new d(a,b);u.translate(-c,-e);u.rotate(-f);
u.scale(1/i,1/p);u.translate(s,t);u.scale(this.vc,this.uc);u.translate(-this.ba,-this.ca);if(!this.Cw){u.rotate(f);u.scale(i/this.vc,p/this.uc)}u.translate(this.Vs,this.Ws);c=Math.round(u.x);u=Math.round(u.y);if(c>=0&&c<this.Hs.width&&u>=0&&u<this.Hs.height){u=(this.Hs.width*u+c)*4;c=this.Hs.data;this.g2=c[u+3]>0?"#"+this.MN(c[u+0])+this.MN(c[u+1])+this.MN(c[u+2]):"transparent"}}return this.g2};b.prototype.Z3=function(){var a=new i(this.Ue.Bd(),this.eg.get("width"),this.eg.get("height"));a.lr(this.nj.get("scaleMode"));
a.by(this.nj.get("horizontalAlign"));a.ey(this.nj.get("verticalAlign"));var b=document.createElement("canvas");b.width=Math.round(this.W);b.height=Math.round(this.da);var c=b.getContext("2d");a.px(c,b.width,b.height);this.Hs=c.getImageData(0,0,b.width,b.height);b.width=b.height=0};b.prototype.MN=function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a};return b});
define("hD","require,cV,eD,kd,bS,em,jy,iC,S,jP,bq".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("em"),i=a("jy"),j=a("iC"),k=a("S"),n=a("jP"),g=a("bq"),l=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.oa=b;this.Sa=c;this.P=this.Sa.getItem();this.Rk=this.Sa.y9();this.Uk=this.Sa.A9();this.En=this.oj=m;this.D=this.g.getParent();this.D.bind(e.qc,this.oi,this);this.D.bind(e.Ef,this.DA,this);this.D.bind(e.ob,this.gq,this);this.D.bind(e.Lb,this.FA,this);c.bind(e.L("selected"),
this.q4,this);c.bind(e.L("enabled"),this.Pja,this);this.QG=new j(this.g,this.oa,this.Sa,this.Sa.get("map",q));this.SG=new j(this.g,this.oa,this.Sa,this.Sa.get("rollOverMap",this.Sa.get("map",q)));this.TG=new j(this.g,this.oa,this.Sa,this.Sa.get("selectedMap",this.Sa.get("rollOverMap",this.Sa.get("map",q))));this.oG=new j(this.g,this.oa,this.Sa,this.Sa.get("image",q));this.pG=new j(this.g,this.oa,this.Sa,this.Sa.get("rollOverImage",this.Sa.get("image",q)));this.qG=new j(this.g,this.oa,this.Sa,this.Sa.get("selectedImage",
this.Sa.get("rollOverImage",this.Sa.get("image",q))));this.xc=this.wc=m;this.Uw=q;this.dn=[];this.Ly=[];this.Ne={};this.Q2=[];this.YP=y;this.Ij=this.Sa.get("useHandCursor");this.O=q;this.Ow=m;this.BI=this.rI=this.CG=0;a=this.Sa.get("areas",[]);for(b=0;b<a.length;b++){var c=a[b],d=c.get("mapColor");if(d){d=d.toLowerCase();if(this.Ne[d]===m){this.Ne[d]=[];this.Q2.push(d)}this.Ne[d].push(c)}}if(this.P){this.g.LJ(this.oa.qg(),this.P);this.g.ol(this.P,this.CG)}if(this.Rk){this.g.LJ(this.oa.qg(),this.Rk);
this.g.ol(this.Rk,this.rI)}if(this.Uk){this.g.LJ(this.oa.qg(),this.Uk);this.g.ol(this.Uk,this.BI)}this.BB("none");this.$T();this.j6(y);this.k6(this.Sa.get("selected"))});l.prototype.clear=function(){this.D.unbind(e.qc,this.oi,this);this.D.unbind(e.Ef,this.DA,this);this.D.unbind(e.ob,this.gq,this);this.D.unbind(e.Lb,this.FA,this);this.D=q;this.QG&&this.QG.clear();this.QG=q;this.SG&&this.SG.clear();this.SG=q;this.TG&&this.TG.clear();this.TG=q;this.oG&&this.oG.clear();this.oG=q;this.pG&&this.pG.clear();
this.pG=q;this.qG&&this.qG.clear();this.qG=q;this.dn=[];this.oj=y;this.$T();this.Ly=[];this.Ne={};this.X6();this.sC();this.oa=this.g=q;this.Sa.unbind(e.L("selected"),this.q4,this);this.Uk=this.Rk=this.P=this.Sa=q};l.prototype.match=function(a){return this.Sa==a};l.prototype.nc=function(a){this.Qv(y);if(this.O){this.O.Ua(a);this.CG=this.O.nb("itemAlpha");this.rI=this.O.nb("rollOverItemAlpha");this.BI=this.O.nb("selectedItemAlpha");this.P&&this.g.ol(this.P,this.CG);this.Rk&&this.g.ol(this.Rk,this.rI);
this.Uk&&this.g.ol(this.Uk,this.BI);this.O.me()?this.O=q:this.ea()}};l.prototype.gq=function(a){this.wc=a.x-this.D.Fh();this.xc=a.y-this.D.xm();this.Qv(o);this.Ly=this.dn.slice()};l.prototype.oi=function(a){this.wc=a.x-this.D.Fh();this.xc=a.y-this.D.xm();this.Qv(o)};l.prototype.FA=function(a){this.wc=a.x-this.D.Fh();this.xc=a.y-this.D.xm();this.Qv(o);a=b.intersection(this.Ly,this.dn);this.Ly=[];this.OT(a,"click")};l.prototype.DA=function(){this.xc=this.wc=m;this.Qv(o);this.Ly=this.dn.slice()};l.prototype.q4=
function(){this.k6(this.Sa.get("selected"))};l.prototype.Pja=function(){this.Qv(o);this.Wd();this.ea()};l.prototype.Qv=function(a){this.r2=o;a?this.Tw():this.Yia()||this.Ona()};l.prototype.Ona=function(){this.X6();var a=this;this.Uw=setTimeout(function(){a.Uw=q;a.Tw()},200)};l.prototype.Yia=function(){return this.Uw?o:y};l.prototype.X6=function(){if(this.Uw){clearTimeout(this.Uw);this.Uw=q}};l.prototype.Tw=function(){if(this.r2){this.r2=y;var a=this.dn,c=this.Rga();this.dn=c;if(!this.D.pj){this.OT(b.difference(c,
a),"rollOver");this.j6(c.length>0);this.OT(b.difference(a,c),"rollOut");this.sC()}}};l.prototype.sC=function(){for(var a="",b=0;b<this.dn.length&&!a;b++){var c=this.dn[b];c.get("toolTip")&&(a=c.get("toolTip"))}if(this.qa!=a){this.qa&&this.g.bta(this.qa);(this.qa=a)&&this.g.ita(this.qa)}};l.prototype.$T=function(){var a=this.oj&&(this.Ij!==y||b(this.dn).any(function(a){return a.get("useHandCursor")===o}));if(this.YP!=a)(this.YP=a)?this.g.OK(k.Qd):this.g.Sx(k.Qd)};l.prototype.Rga=function(){if(this.Sa.get("enabled")===
y)return[];var a=[],b=this.En?this.TG:this.oj?this.SG:this.QG;if(b)if(b=b.q9(this.wc,this.xc)){this.Ne.any&&(a=a.concat(this.Ne.any));b=="transparent"&&this.Ne.transparent&&(a=a.concat(this.Ne.transparent));if(b!="transparent"){a=this.Ne[b]?a.concat(this.Ne[b]):a.concat(this.Ne[i.Dta(b,this.Q2,5)]||[]);this.Ne.image&&(a=a.concat(this.Ne.image))}}if(b=this.En?this.qG:this.oj?this.pG:this.oG)if(b=b.q9(this.wc,this.xc)){this.Ne.any&&(a=a.concat(this.Ne.any));b=="transparent"&&this.Ne.transparent&&(a=
a.concat(this.Ne.transparent));b!="transparent"&&this.Ne.image&&(a=a.concat(this.Ne.image))}for(var b=[],c=0;c<a.length;c++){var d=a[c];b.indexOf(d)<0&&b.push(d)}return b};l.prototype.OT=function(a,b){if(a)for(var c=0;c<a.length;c++)a[c].trigger(new d(b))};l.prototype.j6=function(a){if(this.oj!=a){this.oj=a;this.trigger(new d(l.KL));this.Wd();this.$T();this.ea()}};l.prototype.k6=function(a){if(this.En!=a){this.En=a;this.Wd();this.ea()}};l.prototype.Wd=function(){(this.oj||this.Sa.get("rollOverDisplay")!=
o)&&this.Sa.get("enabled")!==y?this.En?this.BB("selected"):this.oj?this.BB("roll over"):this.BB("visible"):this.BB("none")};l.prototype.BB=function(a){if(this.Ow!=a){this.Ow=a;var c,d;if(b(["selected"]).contains(this.Ow)&&this.Uk){d=1;a=c=0}else if(b(["selected","roll over"]).contains(this.Ow)&&this.Rk){c=1;a=d=0}else if(b(["selected","roll over","visible"]).contains(this.Ow)){a=1;d=c=0}else a=d=c=0;var e=this.CG,f=this.rI,j=this.BI,k=this.Ow=="none"?"quad_out":"quad_in",i=Math.max(200*Math.abs(a-
e),200*Math.abs(c-f),200*Math.abs(d-j));this.O=new n(k,[new g("itemAlpha",e,a),new g("rollOverItemAlpha",f,c),new g("selectedItemAlpha",j,d)],i)}};l.prototype.ea=function(){this.trigger(new d(l.Ca))};l.Ca="request frame";l.KL="is over update";return l});define("iZ",["eD","gQ"],function(a,b){var c=a.extend(b,function(a,c,f,i,j,k,n){b.call(this,b.eZ,a,c);this.Dia=f;this.Eia=i;this.Lka=j;this.Mka=k;this.wb=n;this.uC=[]});c.prototype.cu=Q("wb");return c});
define("dO","eD,kd,bS,em,bZ,iZ".split(","),function(a,b,c,e,d,f){var i=a.extend(e,function(a,c,d){e.call(this);this.g=a;this.D=this.g.getParent();this.D.bind(b.ob,this.gq,this,o);this.D.bind(b.qc,this.oi,this,o);this.D.bind(b.Ef,this.DA,this,o);this.oa=c;this.vc=this.oa.get("width");this.uc=this.oa.get("height");this.qla=Math.sqrt(this.vc*this.vc+this.uc*this.uc)*this.oa.get("fieldOfViewOverlayRadiusScale",1);this.dc=this.oa.qg();this.rb=d;this.mw=this.rb.get("x",0);this.nw=this.rb.get("y",0);this.EH=
this.rb.get("angle",0);this.P=this.wfa();this.Ll=y;this.Y=0;this.aa=Math.PI*0.5;this.Wb=y;this.xc=this.wc=m;this.g.LJ(this.oa.qg(),this.P)});i.prototype.Qaa=function(a,b){this.Y=a+this.EH-90;this.aa=b;this.ea()};i.prototype.clear=function(){this.D.unbind(b.ob,this.gq,this);this.D.unbind(b.qc,this.oi,this);this.D.unbind(b.Ef,this.DA,this);this.D=q;this.g.pta(this.oa.qg(),this.P);this.P=this.rb=this.dc=this.oa=this.g=q};i.prototype.nc=function(){this.g.iua(this.P,this.Y,this.aa)};i.prototype.wfa=function(){return new f(this.mw,
this.nw,this.oa.get("fieldOfViewOverlayInsideColor","#FFFFFF"),this.oa.get("fieldOfViewOverlayInsideOpacity",0),this.oa.get("fieldOfViewOverlayOutsideColor","#000000"),this.oa.get("fieldOfViewOverlayOutsideOpacity",0),this.oa.get("fieldOfViewOverlayRadiusScale",1))};i.prototype.ea=function(){this.trigger(new c(i.Ca))};i.prototype.aU=function(){var a=y;if(this.wc!=m&&this.xc!=m){var b=this.g.ua()*0.5,e=this.g.Za()*0.5,f=this.g.mK(this.dc)*Math.PI/180,l=this.g.cD(this.dc),r=this.g.bD(this.dc),p=this.g.dD(this.dc),
s=this.g.eD(this.dc),a=new d(this.wc,this.xc);a.translate(-b,-e);a.rotate(-f);a.scale(1/l,1/r);a.translate(p,s);a.scale(this.vc,this.uc);a.translate(-this.mw,-this.nw);a.rotate(-this.Y*Math.PI/180);b=Math.round(Math.atan2(a.y,a.x)*180/Math.PI);a=Math.round(Math.sqrt(a.x*a.x+a.y*a.y))<=this.qla&&Math.abs(b)<this.aa*0.5}if(this.Ll!=a){this.Ll=a;this.trigger(new c(i.mM,{inFOV:this.Ll}))}};i.prototype.asa=Q("Ll");i.prototype.gq=function(a){this.wc=a.x;this.xc=a.y;this.Wb=o;this.aU()};i.prototype.oi=function(a){if(!this.Wb){this.wc=
a.x;this.xc=a.y;this.aU()}};i.prototype.DA=function(){this.xc=this.wc=m;this.Wb=y;this.aU()};i.Ca="request frame";i.mM="mouse in fov change";return i});
define("jV","cV,eD,bS,em,fP,hD,dO,S".split(","),function(a,b,c,e,d,f,i){var j=b.extend(e,function(a){e.call(this);this.g=a;this.kA=[];this.Cn=[];this.ci=[];this.ti=this.rb=q});j.prototype.clear=function(){for(var a=0;a<this.Cn.length;a++)this.Cn[a].clear();for(a=0;a<this.ci.length;a++)this.ci[a].clear();this.g=this.kA=this.rb=this.ci=this.Cn=q};j.prototype.UC=function(a){a.nD()&&this.mda(a.oa)};j.prototype.KV=function(a){a.nD()&&this.Jla(a.oa)};j.prototype.So=function(a){if(this.rb!=a){this.rb&&this.z5(this.rb.get("map"));
this.rb=a;this.ti=q;if(this.rb){a=this.rb.get("map");this.DQ(a)&&this.ZZ(a)}}};j.prototype.Qi=function(a,b,c,d){this.ti={yaw:b,pitch:c,hfov:d};for(c=0;c<this.ci.length;c++){var e=this.ci[c];if(e.rb==a){e.Qaa(b,d);break}}};j.prototype.mda=function(a){if(!this.DQ(a)){this.kA.push(a);this.hda(a);this.ZZ(a)}};j.prototype.Jla=function(b){if(this.DQ(b)){this.kA=a(this.kA).without(b);this.Ela(b);this.z5(b)}};j.prototype.DQ=function(b){return a(this.kA).indexOf(b)>=0};j.prototype.nc=function(a){for(var b=
0;b<this.Cn.length;b++)this.Cn[b].nc(a);for(b=0;b<this.ci.length;b++)this.ci[b].nc(a)};j.prototype.hda=function(a){for(var b=a.get("overlays",[]),c=0;c<b.length;c++){var e=b[c];if(e instanceof d){e=new f(this.g,a,e);e.bind(f.Ca,this.ea,this,o);e.bind(f.KL,this.A2,this,o);this.Cn.push(e)}}};j.prototype.ZZ=function(a){if(this.rb&&this.rb.get("map")==a&&this.rb.get("visible")!==y){a=new i(this.g,a,this.rb);a.bind(i.Ca,this.ea,this,o);a.bind(i.mM,this.mH,this,o);this.ci.push(a);this.ti&&a.Qaa(this.ti.yaw,
this.ti.hfov)}this.mH()};j.prototype.Ela=function(a){for(var a=a.get("overlays",[]),b=0;b<a.length;b++)for(var c=a[b],d=0;d<this.Cn.length;d++){var e=this.Cn[d];if(e.match(c)){e.unbind(f.Ca,this.ea,this);e.unbind(f.KL,this.A2,this);e.clear();this.Cn.splice(d,1);break}}};j.prototype.z5=function(a){for(var b=0;b<this.ci.length;b++){var c=this.ci[b];if(c.oa==a){c.unbind(i.Ca,this.ea,this);c.unbind(i.mM,this.mH,this);c.clear();this.ci.splice(b,1);break}}this.mH()};j.prototype.A2=E();j.prototype.ea=function(){this.trigger(new c(j.Ca))};
j.prototype.mH=function(){for(var a=y,b=0;b<this.ci.length;b++)this.ci[b].asa()&&(a=o);this.trigger(new c(j.JL,{inFOV:a}))};j.Ca="request frame";j.JL="in fov change";return j});
define("B","eD,kd,bS,em,gU,bZ".split(","),function(a,b,c,e,d,f){var i=a.extend(e,function(a){e.call(this);this.g=a;this.D=this.g.getParent();this.D.bind(b.qc,this.oi,this,o);this.D.bind(b.ob,this.gq,this,o);this.D.bind(b.Lb,this.FA,this,o);this.oa=q;this.dc=this.uc=this.vc=m;this.rb=q;this.EH=this.nw=this.mw=m;this.Ll=y;this.xc=this.wc=this.ki=m;this.Wb=y;this.Y=0});i.prototype.clear=function(){this.D.unbind(b.qc,this.oi,this);this.D.unbind(b.ob,this.gq,this);this.D.unbind(b.Lb,this.FA,this);this.g=
this.rb=this.dc=this.oa=this.D=q};i.prototype.HD=function(a){this.Ll=a;this.XT()};i.prototype.UC=function(a){a.nD()&&this.n6(a.oa)};i.prototype.KV=function(a){a.nD()&&this.oa==a.oa&&this.n6(q)};i.prototype.n6=function(a){if(this.oa!=a)if(this.oa=a){this.vc=this.oa.get("width");this.uc=this.oa.get("height");this.dc=this.oa.qg()}else{this.uc=this.vc=m;this.dc=q}};i.prototype.So=function(a){if(this.rb!=a)if(this.rb=a){this.mw=this.rb.get("x",0);this.nw=this.rb.get("y",0);this.EH=this.rb.get("angle",
0)}else this.EH=this.nw=this.mw=m};i.prototype.Qi=function(a,b){if(this.rb==a)this.Y=b};i.prototype.ql=N("ki");i.prototype.gq=function(a){this.wc=a.x;this.xc=a.y;this.Wb=o;this.XT()};i.prototype.oi=function(a){this.wc=a.x;this.xc=a.y;if(this.dP){a=this.M1();this.trigger(new c(i.xg,{yawDelta:a-this.tb}));this.tb=a}};i.prototype.FA=function(a){this.wc=a.x;this.xc=a.y;this.Wb=y;this.XT()};i.prototype.XT=function(){var a=this.Wb&&this.rb&&this.oa&&(this.ki==d.DM||this.Ll);if(this.dP!=a)if(this.dP=a)this.tb=
this.M1()};i.prototype.M1=function(){var a=this.g.ua()*0.5,b=this.g.Za()*0.5,c=new f(this.wc,this.xc);c.translate(-a,-b);if(this.ki==d.DM)return-Math.atan2(c.y,c.x)*180/Math.PI;var a=this.g.mK(this.dc)*Math.PI/180,b=this.g.cD(this.dc),e=this.g.bD(this.dc),i=this.g.dD(this.dc),r=this.g.eD(this.dc);c.rotate(-a);c.scale(1/b,1/e);c.translate(i,r);c.scale(this.vc,this.uc);c.translate(-this.mw,-this.nw);return Math.atan2(c.y,c.x)*180/Math.PI};i.xg="request yaw change";return i});
define("iS",["eD","bS","em","X"],function(a,b,c,e){var d=a.extend(c,function(a){c.call(this);this.V=o;this.As=y;this.g=a});d.prototype.clear=function(){this.V=y;this.g=q};d.prototype.Ha=function(){this.As||(this.As=o,e.Ha(this.ig,this))};d.prototype.ig=function(a){this.V&&(this.As=y,this.trigger(new b(d.bk,{frameTime:a})),this.trigger(new b(d.ck,{frameTime:a})),this.g.render())};d.bk="frameStart";d.ck="positionSet";return d});
define("iv","require,eD,kd,bS,em,jH,gK,gS,jV,B,iS".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("jH"),i=a("gK"),j=a("gS"),k=a("jV"),n=a("B"),g=a("iS"),l=b.extend(d,function(a,b){d.call(this);this.D=a;this.g=b;this.KH=q;this.Ld=new g(this.g);this.Id=new j(this.g);this.Ea=new i(this.D,this.g);this.ha=new f(this.g);this.Ik=new k(this.g);this.Rl=new n(this.g);this.D.bind(c.Le,this.xH,this,o);this.Ld.bind(g.bk,this.jq,this,o);this.Ld.bind(g.ck,this.kq,this,o);this.Id.bind(j.mE,
this.AA,this);this.Id.bind(j.QL,this.R3,this);this.Id.bind(j.kE,this.S3,this);this.Ea.bind(i.Ca,this.Cc,this,o);this.Ea.bind(i.OL,this.P3,this,o);this.Ea.bind(i.lE,this.T3,this,o);this.Ea.bind(i.PL,this.Q3,this,o);this.Ea.bind(i.yr,this.Rn,this,o);this.Ea.bind(i.zr,this.fq,this,o);this.ha.bind(f.Ca,this.Cc,this,o);this.ha.bind(f.wg,this.Ck,this);this.Ik.bind(k.Ca,this.Cc,this,o);this.Ik.bind(k.JL,this.I3,this,o);this.Rl.bind(n.xg,this.OA,this,o);this.W0=y});l.prototype.ql=function(a){this.ha.ql(a);
this.Ea.ql(a);this.Rl.ql(a)};l.prototype.clear=function(){this.W0=o;this.Id.clear();this.Ld.clear();this.ha.clear();this.Ea.clear();this.Ik.clear();this.Rl.clear();this.D.unbind(c.Le,this.xH,this);this.Id.unbind(j.mE,this.AA,this);this.Id.unbind(j.QL,this.R3,this);this.Id.unbind(j.kE,this.S3,this);this.Ld.unbind(g.bk,this.jq,this);this.Ld.unbind(g.ck,this.kq,this);this.Ea.unbind(i.Ca,this.Cc,this);this.Ea.unbind(i.OL,this.P3,this);this.Ea.unbind(i.lE,this.T3,this);this.Ea.unbind(i.PL,this.Q3,this);
this.Ea.unbind(i.yr,this.Rn,this);this.Ea.unbind(i.zr,this.fq,this);this.ha.unbind(f.Nba,this.Cc,this);this.ha.unbind(f.wg,this.Ck,this);this.Ik.unbind(k.Ca,this.Cc,this);this.Ik.unbind(k.JL,this.I3,this);this.Rl.unbind(n.xg,this.OA,this);this.D=this.g=this.Rl=this.Ik=this.Ea=this.ha=this.Ld=this.Id=q};l.prototype.xH=function(){if(this.KH){this.Maa(this.KH);this.KH=q}};l.prototype.Maa=function(a){if(this.D.Up)this.Id.Bsa(a);else{this.Id.stop();this.ha.stop();this.Ea.hide();this.KH=a}};l.prototype.su=
function(){this.Id.stop();this.ha.stop();this.Ea.hide()};l.prototype.ug=function(a){this.ha.ug(a)};l.prototype.So=function(a){if(!this.W0){this.ha.So(a);this.Ik.So(a);this.Rl.So(a)}};l.prototype.Qi=function(a,b,c,d){this.ha.Qi(a,b,c,d);this.Ik.Qi(a,b,c,d);this.Rl.Qi(a,b,c,d)};l.prototype.S3=function(a){var b=a.data.level,a=(a.data.percent+100*b.getIndex())/b.h9();this.trigger(new e(l.wl,{percent:a}))};l.prototype.R3=function(a){a=a.data.level;this.ha.stop();this.Ea.UC(a)};l.prototype.AA=function(){this.trigger(new e(l.wr))};
l.prototype.Cc=function(){this.Ld.Ha()};l.prototype.jq=function(a){this.ha.Mo(a.data.frameTime)};l.prototype.kq=function(a){a=a.data.frameTime;this.Ea.nc(a);this.ha.nc(a);this.Ik.nc(a)};l.prototype.P3=function(a){a=a.data.level;this.Ik.UC(a);this.Rl.UC(a)};l.prototype.T3=function(a){a=a.data.level;this.Ik.KV(a);this.Rl.KV(a)};l.prototype.Q3=function(a){a=a.data.level;a.nD()&&this.ha.start(a)};l.prototype.I3=function(a){a=a.data.inFOV;this.ha.HD(a);this.Rl.HD(a)};l.prototype.fq=function(a){this.trigger(new e(l.zr,
{map:a.data.map}))};l.prototype.Rn=function(a){this.trigger(new e(l.yr,{map:a.data.map}))};l.prototype.Ck=function(a){this.trigger(new e(l.wg,a.data))};l.prototype.OA=function(a){this.trigger(new e(l.xg,{yawDelta:a.data.yawDelta}))};l.wg="movementChange";l.wr="loadingEnd";l.wl="loadingProgress";l.zr="mapShow";l.yr="mapHide";l.xg="requestYawChange";return l});
define("fk",["require","jquery.mod","u"],function(a){function b(a,b){this.P=a;this.S=b;this.eA=0;this.$l=this.Zl=0.5;this.Nd=0;this.lb=1;this.po=this.Kn=this.da=this.W=0;this.wb=1;this.wQ=this.zQ=o;this.I=c("<canvas/>");this.q=this.I.get(0);this.ga=this.q.getContext("2d")}var c=a("jquery.mod"),a=a("u");b.prototype.getItem=Q("P");b.prototype.rx=function(a){return this.P==a?this:q};b.prototype.Mj=function(){this.S&&this.S.YU(this)};b.prototype.ud=function(a){this.Tma(a)};b.prototype.l6=function(a){this.eA!=
a&&(this.eA=a,this.S&&this.S.zK())};b.prototype.Tma=function(a){this.lb!=a&&(this.lb=a,this.yK())};b.prototype.HI=function(a){this.Nd!=a&&(this.Nd=a,this.yK())};b.prototype.AB=function(a,b){if(this.W!=a||this.da!=b)this.W=a,this.da=b,this.vK()};b.prototype.wh=function(a,b){if(this.Kn!=a||this.po!=b)this.Kn=a,this.po=b,this.yK()};b.prototype.yK=function(){this.S&&this.S.wK()};b.prototype.hc=function(){this.zQ=o};b.prototype.fa=function(){this.zQ&&(this.zQ=y,this.cf())};b.prototype.cf=E();b.prototype.vK=
function(){this.wQ=o;this.yK()};b.prototype.hL=function(){if(this.wQ){this.wQ=y;if(this.q.width!=this.W||this.q.height!=this.da)this.q.width=Math.round(this.W),this.q.height=Math.round(this.da);this.ga.clearRect(0,0,this.q.width,this.q.height);this.Qf()}};b.prototype.Qf=E();b.prototype.Gqa=function(a){if(0<this.lb&&1<=this.W&&1<=this.da){a.save();var b=Math.round(this.Kn),c=Math.round(this.po),i=Math.round(this.W*this.Zl),j=Math.round(this.da*this.$l);a.scale(this.wb,this.wb);a.translate(b+i,c+j);
a.rotate(this.Nd*Math.PI/180);a.globalAlpha=this.lb;a.drawImage(this.q,-i,-j);a.restore()}};b.fY=a.Qa()||a.sd()==a.dY?window.devicePixelRatio||1:1;b.tg=b.fY;b.eY=a.sd()==a.Ph?16E6:256E6;return b});
define("iR",["require","cV","eD","fk"],function(a){var b=a("cV"),c=a("eD"),e=a("fk"),a=c.extend(e,function(a,b){e.call(this,a,b);this.yb=[];this.JJ=q;this.vo=o});a.prototype.y8=function(a){(a=this.nO(a))||h("Container renderer can't create child renderer for an item");this.yb.push(a);this.zK();this.wK()};a.prototype.nO=E();a.prototype.baa=function(a){if(a=this.tm(a))this.yb=b.without(this.yb,a),this.zK(),this.wK()};a.prototype.rx=function(a){for(var b=e.prototype.rx.call(this,a),c=0;c<this.yb.length&&
!b;c++)b=this.yb[c].rx(a);return b};a.prototype.tm=function(a){for(var b=q,c=0;c<this.yb.length&&!b;c++)this.yb[c].getItem()==a&&(b=this.yb[c]);return b};a.prototype.YU=function(a){this.yb=b.without(this.yb,a);this.yb.push(a);this.zK();this.wK()};a.prototype.zK=function(){this.vo=o;this.hc()};a.prototype.wK=function(){this.vK()};a.prototype.fa=function(){e.prototype.fa.call(this);for(var a=0;a<this.yb.length;a++)this.yb[a].fa()};a.prototype.cf=function(){if(this.vo){this.vo=y;for(var a=[],b=0;b<this.yb.length;b++){var c=
this.yb[b];a.push({l:c.eA,z:b,r:c})}a.sort(function(a,b){return a.l==b.l?a.z-b.z:a.l-b.l});this.JJ=[];for(b=0;b<a.length;b++)this.JJ.push(a[b].r);this.vK()}e.prototype.cf.call(this)};a.prototype.hL=function(){for(var a=0;a<this.yb.length;a++)this.yb[a].hL();e.prototype.hL.call(this)};a.prototype.Qf=function(){for(var a=0;a<this.JJ.length;a++)this.JJ[a].Gqa(this.ga);e.prototype.Qf.call(this)};return a});
define("H",["require","eD","fk"],function(a){var b=a("eD"),c=a("fk"),a=b.extend(c,function(a,b){c.call(this,a,b)});a.prototype.WK=E();return a});
define("iy",["require","eD","H"],function(a){var b=a("eD"),c=a("H"),a=b.extend(c,function(a,b){c.call(this,a,b);this.IH=this.S.getItem().Fc();this.HH=this.S.getItem().qd();this.wb=2;this.xv=0;this.aa=0.5*Math.PI;this.xQ=this.yQ=o;this.jh=1;this.yG=o;this.l6(1)});a.prototype.WK=function(a,b){this.jh!=b&&(this.jh=b,this.yG=o,this.hc())};a.prototype.Zta=function(a,b){this.aa!=b&&(this.aa=b,this.yQ=o,this.hc());this.xv!=a&&(this.xv=a,this.xQ=o,this.hc())};a.prototype.cf=function(){this.yQ&&(this.yQ=y,
this.vK());if(this.yG||this.xQ){this.xQ=this.yG=y;this.wb=Math.max(1,Math.ceil(Math.sqrt(this.IH*this.IH+this.HH*this.HH))/4096);var a=this.jh/this.wb,b=this.P.getX()*a,f=this.P.getY()*a,i=a*this.HH,a=Math.max(b,a*this.IH-b),i=Math.max(f,i-f),i=2*Math.ceil(Math.sqrt(a*a+i*i)),j=this.xv*Math.PI/180,a=Math.cos(j),j=Math.sin(j),b=b-this.Zl*i-(0.5-this.Zl)*i*a+(0.5-this.$l)*i*j,f=f-this.$l*i-(0.5-this.$l)*i*a-(0.5-this.Zl)*i*j;this.yG=y;this.wh(b,f);this.AB(i,i);this.HI(this.xv)}c.prototype.cf.call(this)};
a.prototype.Qf=function(){var a=this.P.Eia,b=this.P.Mka;if(0<b||0<a){var f=this.jh*this.IH,i=this.jh*this.HH,f=Math.ceil(Math.sqrt(f*f+i*i))*this.P.cu()/this.wb,i=Math.round(0.5*this.W),j=Math.round(0.5*this.da),k=this.aa*Math.PI/180,n=0.5*-k,k=n+k;0<b&&(this.ga.fillStyle=this.P.Lka,this.ga.globalAlpha=b,this.ga.rect(0,0,this.W,this.da),this.ga.fill(),this.ga.globalCompositeOperation="destination-out",this.ga.fillStyle="#FFFFFF",this.ga.globalAlpha=1,this.ga.beginPath(),this.ga.moveTo(i,j),this.ga.arc(i,
j,f,n,k,y),this.ga.lineTo(i,j),this.ga.closePath(),this.ga.fill(),this.ga.globalCompositeOperation="source-over");0<a&&(this.ga.fillStyle=this.P.Dia,this.ga.globalAlpha=a,this.ga.beginPath(),this.ga.moveTo(i,j),this.ga.arc(i,j,f,n,k,y),this.ga.lineTo(i,j),this.ga.closePath(),this.ga.fill())}c.prototype.Qf.call(this)};return a});
define("j","require,eD,fk,H,hO,iN".split(","),function(a){var b=a("eD"),c=a("fk"),e=a("H"),d=a("hO"),f=a("iN"),a=b.extend(e,function(a,b){e.call(this,a,b);this.l6(this.P.O5?0:2);this.kb=d.Bd(this.P.Gh());this.yI=new f(this.kb,this.kb.width,this.kb.height);this.yI.lr(this.P.cd);this.yI.ey(this.P.zh);this.yI.by(this.P.gh);this.iA=0;this.jh=1;this.aR=o});a.prototype.WK=function(a,b){if(this.iA!=a||this.jh!=b){this.iA=a;this.jh=b;this.aR=o;this.hc()}};a.prototype.cf=function(){if(this.aR){this.aR=y;var a=
this.P.getX(),b=this.P.getY(),d=this.P.Fc(),f=this.P.qd(),g=this.P.Vs,l=this.P.Ws;if(this.P.O5){this.HI(0);this.wh((a-g)*this.jh,(b-l)*this.jh);this.AB(d*this.jh,f*this.jh)}else{var d=d*c.tg,f=f*c.tg,g=g*c.tg,l=l*c.tg,r=Math.cos(-this.iA*Math.PI/180),p=Math.sin(-this.iA*Math.PI/180),a=a*this.jh-this.Zl*d-(g-this.Zl*d)*r+(l-this.$l*f)*p,b=b*this.jh-this.$l*f-(l-this.$l*f)*r-(g-this.Zl*d)*p;this.HI(-this.iA);this.wh(a,b);this.AB(d,f)}}e.prototype.cf.call(this)};a.prototype.Qf=function(){this.yI.px(this.ga,
this.q.width,this.q.height);e.prototype.Qf.call(this)};return a});
define("fN","require,eD,iw,hO,cs,gQ,iy,j,iR".split(","),function(a){var b=a("eD"),c=a("iw"),e=a("hO"),d=a("cs"),f=a("gQ"),i=a("iy"),j=a("j"),k=a("iR"),a=b.extend(k,function(a,b){k.call(this,a,b,a.xj);this.Da=this.P.Fc();this.Ma=this.P.qd();this.cd=this.P.cd;this.XF=this.P.qP;this.Nb=this.Gb=100;this.fO=o;this.ca=this.ba=0.5;this.tb=0;this.ma=1;this.gB=o;this.Uc=1;this.kb=e.Bd(this.P.Gh())});a.prototype.nO=function(a){a.Bf()!=d.hZ&&h("Invalid item type");switch(a.Oka){case f.eZ:a=new i(a,this);break;
case f.fZ:a=new j(a,this);break;default:a=q}a&&a.WK(this.tb,this.Uc*this.ma);return a};a.prototype.getX=Q("ba");a.prototype.getY=Q("ca");a.prototype.sx=Q("tb");a.prototype.il=Q("ma");a.prototype.ua=function(){return Math.round(this.Da*this.ma*this.Uc)};a.prototype.Za=function(){return Math.round(this.Ma*this.ma*this.Uc)};a.prototype.tu=function(a,b){if(this.Gb!=a||this.Nb!=b){this.Gb=a;this.Nb=b;this.fO=o;this.hc()}};a.prototype.ya=function(a,b,c,d){if(this.ba!=a||this.ca!=b||this.tb!=c||this.ma!=
d){this.ba=a;this.ca=b;this.tb=c;this.ma=d;this.gB=o;this.hc()}};a.prototype.cf=function(){if(this.fO){this.fO=y;switch(this.cd){case c.NONE:this.Uc=1;break;case c.ek:this.Uc=this.Gb/this.Da;break;case c.yg:this.Uc=this.Nb/this.Ma;break;case c.xl:this.Uc=this.Da*this.Nb>this.Ma*this.Gb?this.Nb/this.Ma:this.Gb/this.Da;break;default:this.Uc=this.Da*this.Nb>this.Ma*this.Gb?this.Gb/this.Da:this.Nb/this.Ma}this.gB=o}if(this.gB){this.gB=y;var a=this.ua(),b=this.Za(),d=Math.cos(this.tb*Math.PI/180),e=Math.sin(this.tb*
Math.PI/180);this.wh(this.Gb*0.5-this.Zl*a+(this.Zl-this.ba)*d*a-(this.$l-this.ca)*e*b,this.Nb*0.5-this.$l*b+(this.$l-this.ca)*d*b+(this.Zl-this.ba)*e*a);this.HI(this.tb);this.AB(a,b);for(a=0;a<this.yb.length;a++)this.yb[a].WK(this.tb,this.Uc*this.ma)}k.prototype.cf.call(this)};a.prototype.Qf=function(){var a=Math.round(this.W),b=Math.round(this.da);if(this.XF){this.ga.save();this.ga.translate(a,0);this.ga.scale(-1,1);this.ga.drawImage(this.kb,0,0,a,b);this.ga.restore()}else this.ga.drawImage(this.kb,
0,0,a,b);k.prototype.Qf.call(this)};return a});
define("eN","require,cV,eD,cs,iR,fN".split(","),function(a){a("cV");var b=a("eD"),c=a("cs"),e=a("iR"),d=a("fN"),a=b.extend(e,function(){e.call(this,q,q);this.TN=o});a.prototype.Ab=Q("I");a.prototype.render=function(){this.fa();this.hL()};a.prototype.wra=function(){for(var a=1,b=0;b<this.yb.length;b++){var c=this.yb[b],c=c.ua()*c.Za();a<c&&(a=c)}return a};a.prototype.nO=function(a){a.Bf()!=c.gZ&&h("Invalid item type");a=new d(a,this);a.tu(this.W,this.da);a.ya(0.5,0.5,0,1);return a};a.prototype.setSize=
function(a,b){this.AB(a,b);this.TN=o;this.hc()};a.prototype.cf=function(){if(this.TN){this.TN=y;for(var a=0;a<this.yb.length;a++)this.yb[a].tu(this.W,this.da)}e.prototype.cf.call(this)};return a});
define("hm","require,cV,eD,kd,fB,hO,fk,eN,bj,S,d".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("fB"),f=a("hO"),i=a("fk"),j=a("eN"),k=a("bj"),n=a("S"),g=a("d"),a=c.extend(g,function(){g.call(this);this.Dc("Renderer");this.set("toolTipDisabled",o);this.set("cursor",n.Iu);this.Cp=[];this.zt=[];this.qa="";this.Ve=new j;this.Ja().append(this.Ve.Ab());this.bind(e.pb,this.hb,this,o);this.bind(e.Le,this.qi,this,o);this.bind(e.Df,this.mi,this,o);k.bind(e.$,this.iU,this,o);this.pt=this.ES=y});
a.prototype.Im=function(a){f.Im(a,d.$i)};a.prototype.kX=function(a){return f.kX(a)};a.prototype.Nh=function(a){f.Nh(a,d.$i)};a.prototype.UU=function(a){this.Ve.y8(a)};a.prototype.removeItem=function(a){this.Ve.baa(a)};a.prototype.LJ=function(a,b){this.Ve.tm(a).y8(b);this.gU()};a.prototype.pta=function(a,b){var c=this.Ve.tm(a);c&&c.baa(b)};a.prototype.ZU=function(a){this.Ve.rx(a).Mj()};a.prototype.ol=function(a,b){this.Ve.rx(a).ud(b)};a.prototype.ID=function(a,b,c,d,e){this.Ve.tm(a).ya(b,c,d,e);this.gU()};
a.prototype.gU=function(){var a=this.Ve.wra();if(a>i.eY){newPixelRatio=i.fY/Math.sqrt(a/i.eY);if(newPixelRatio<i.tg){i.tg=newPixelRatio;this.P7()}}};a.prototype.iua=function(a,b,c){this.Ve.rx(a).Zta(b,c)};a.prototype.dD=function(a){return this.Ve.tm(a).getX()};a.prototype.eD=function(a){return this.Ve.tm(a).getY()};a.prototype.mK=function(a){return this.Ve.tm(a).sx()};a.prototype.o9=function(a){return this.Ve.tm(a).il()};a.prototype.cD=function(a){return this.Ve.tm(a).ua()/i.tg};a.prototype.bD=function(a){return this.Ve.tm(a).Za()/
i.tg};a.prototype.render=function(){this.pt&&this.Ve.render()};a.prototype.OK=function(a){this.Cp.push(a);this.K7()};a.prototype.Sx=function(a){a=b(this.Cp).lastIndexOf(a);a>=0&&this.Cp.splice(a,1);this.K7()};a.prototype.K7=function(){var a;a=this.Cp.length>0?this.Cp[this.Cp.length-1]:n.Gc;this.getParent().set("cursor",a)};a.prototype.vF=function(){if(this.Cp.length>0){this.getParent().set("cursor",n.Gc);this.Cp=[]}};a.prototype.ita=function(a){this.zt.push(a);this.sC()};a.prototype.bta=function(a){a=
b(this.zt).lastIndexOf(a);a>=0&&this.zt.splice(a,1);this.sC()};a.prototype.sC=function(){var a=this.zt.length==0?"":this.zt[this.zt.length-1]||"";if(this.qa!=a){this.qa=a;this.getParent().set("toolTip",this.qa)}};a.prototype.Qea=function(){this.qa&&this.getParent().set("toolTip","");this.qa="";this.zt=[]};a.prototype.yi=function(){this.Qea();this.vF();g.prototype.yi.call(this)};a.prototype.hb=function(){this.P7();this.gU()};a.prototype.P7=function(){this.Ve.Ab().css({transform:i.tg!=1?"scale("+(1/
i.tg).toFixed(3)+")":"none","transform-origin":"0% 0%"});this.Ve.setSize(this.ua()*i.tg,this.Za()*i.tg);this.render()};a.prototype.qi=function(){this.ES=o;this.iU()};a.prototype.mi=function(){this.ES=y;this.iU()};a.prototype.iU=function(){var a=this.ES&&!k.isPresenting();if(this.pt!=a)(this.pt=a)&&this.render()};return a});
define("I","cV,eD,im,bS,dx,iV,cl,fW,iv,gH,hm,kd,cU,eK".split(","),function(a,b,c,e,d,f,i,j,k,n,g,l,r,p){var s=b.extend(i,function(){i.call(this,"map");this.eH=this.$Q=this.Mg=y;this.ti=this.rb=this.p=this.g=q;this.qp={};for(var a in s.$m)this.qp[a]=this.jfa(a);this.Tc=b.Jo(this.cf,this)});d.A("MapPlayer",s).B("Object").R({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]]"}).fc([l.zE]).Sg({stop:function(){this.mb(n.Dd)},rotateClockwise:function(){this.mb(n.xM)},rotateCounterClockwise:function(){this.mb(n.yM)},zoomIn:function(){this.mb(n.Ym)},zoomOut:function(){this.mb(n.Zm)}});s.prototype.set=function(a,
b){if(this.get(a)!=b){switch(a){case "map":this.$Q=o;this.Tc();break;case "viewerArea":this.Mg=o;this.Tc();break;case "panoramaMapLocation":this.RR=o;this.Tc();break;case "movementMode":this.eH=o;this.Tc()}i.prototype.set.call(this,a,b)}};s.prototype.jfa=function(a){var b=s.$m[a],a=new f(this,a,r.Hc);a.bind(l.ob,function(){this.mb(b.movement)},this);b.stopOnRelease&&a.bind(l.Lb,function(){this.mb(n.Dd)},this);return a};s.prototype.Vpa=function(a){this.ti=q;this.set("map",a.get("map"));this.set("panoramaMapLocation",
a)};s.prototype.tta=function(a){if(this.get("panoramaMapLocation")==a){this.set("panoramaMapLocation",q);this.ti=q}};s.prototype.Qi=function(a,b,c,d){this.p&&this.p.Qi(a,b,c,d);this.ti={yaw:b,pitch:c,hfov:d}};s.prototype.cf=function(){if(this.Mg){this.Mg=y;this.ss();this.get("viewerArea")&&this.qs();this.LI(this.get("viewerArea"))}if(this.p){if(this.$Q){this.$Q=y;var a=this.get("map");if(a){this.lI();this.p.Maa(a)}else this.p.su();this.RR=this.eH=o}if(this.RR){this.RR=y;a=this.get("panoramaMapLocation");
this.p.So(a);a&&this.ti&&this.p.Qi(a,this.ti.yaw,this.ti.pitch,this.ti.hfov)}if(this.eH){this.eH=y;this.p.ql(this.get("movementMode"))}}};s.prototype.PB=function(){this.set("map",q)};s.prototype.qs=function(){var a=this.get("viewerArea");this.g=new g;this.g.M({left:0,top:0,bottom:0,right:0});a.ia(this.g);this.p=new k(a,this.g);this.p.bind(k.wg,this.Ck,this);this.p.bind(k.wl,this.Qn,this);this.p.bind(k.wr,this.fw,this);this.p.bind(k.zr,this.fq,this);this.p.bind(k.yr,this.Rn,this);this.p.bind(k.xg,
this.OA,this,o)};s.prototype.ss=function(){if(this.g){this.p.unbind(k.wg,this.Ck,this);this.p.unbind(k.wl,this.Qn,this);this.p.unbind(k.wr,this.fw,this);this.p.unbind(k.zr,this.fq,this);this.p.unbind(k.yr,this.Rn,this);this.p.unbind(k.xg,this.OA,this);this.p.clear();this.g.getParent().removeChild(this.g);this.g=q}};s.prototype.fq=function(a){this.XG(a.data.map)};s.prototype.Rn=function(a){this.WG(a.data.map)};s.prototype.Ck=function(a){for(var b in s.$m)this.qp[b].set("state",a.data[s.$m[b].pressedOn]?
p.va:p.Gc);this.trigger(new e(l.zE,a.data))};s.prototype.OA=function(a){this.trigger(new e(s.xg,{yawDelta:a.data.yawDelta}))};s.prototype.Qn=function(a){this.g.getParent().M({progressPercent:a.data.percent,progressVisible:o})};s.prototype.fw=function(){this.g.getParent().set("progressVisible",y)};s.prototype.mb=function(a){this.p&&this.p.ug(a)};s.$m={buttonRotateClockwise:{movement:n.xM,pressedOn:"rotatingClockwise",stopOnRelease:o},buttonRotateCounterClockwise:{movement:n.yM,pressedOn:"rotatingCounterClockwise",
stopOnRelease:o},buttonZoomIn:{movement:n.Ym,pressedOn:"zoomingIn",stopOnRelease:o},buttonZoomOut:{movement:n.Zm,pressedOn:"zoomingOut",stopOnRelease:o}};s.xg="requestYawChange";return s});
define("cT",["eD","im","kd","bS","dx"],function(a,b,c,e,d){a=a.extend(b,function(){b.call(this);this.kg=y});d.A("PlayListItem",a).B("Object").R({media:"Media",label:"string"}).fc([c.aj,c.Xj,c.Dd,c.Ia]);a.prototype.start=function(){this.trigger(new e(c.aj))};a.prototype.stop=function(){this.WD()};a.prototype.WD=function(){this.trigger(new e(c.Dd))};a.prototype.gx=function(){this.kg=o;this.trigger(new e(c.Xj))};a.prototype.end=function(){this.kg=y;this.trigger(new e(c.Ia))};return a});
define("kv",["eD","dx","cl","cT"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("MapPlayListItem",a).B("PlayListItem").R({media:"Map",player:"MapPlayer"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.kf,this.fq,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",q);e.prototype.stop.call(this)};a.prototype.fq=function(){this.get("player").unbind(c.kf,
this.fq,this);this.get("player").bind(c.Vg,this.Rn,this);this.gx();this.get("player").get("map")!=this.get("media")&&this.Rn()};a.prototype.Rn=function(){this.get("player").unbind(c.Vg,this.Rn,this);this.end()};return a});
define("jK",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this);this.set("distance",2)});a.A("Menu",b).B("MenuItem").R({backgroundColor:"color",rollOverBackgroundColor:"color",selectedBackgroundColor:"color",opacity:"number",rollOverOpacity:"number",fontFamily:"string",fontColor:"color",rollOverFontColor:"color",selectedFontColor:"color",distance:"number"}).fc([e.Ic,e.jc]).Rg([e.U]);return b});
define("p",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("MenuItem",b).B("Object").R({label:"string",children:"array[MenuItem]"}).fc([e.Ic,e.jc]).Rg([e.U]);return b});
define("hp",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("MovementPhotoCamera",a).B("PhotoCamera").R({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("fA",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Object",a).R({id:"identifier",data:"*"});return a});define("bW",[],function(){var a={vr:"drag_acceleration",Pm:"drag_rotation"};a.iY=a.vr;a.cZ=a.Pm;return a});define("kn",["eD","bS"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.Rx=this.hy=this.Ko=this.Yo=0})});define("jr",["eD","bS"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.JV=this.Wra=0})});
define("dE","require,eD,cV,kd,bS,em,bW,kn,jr".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("eD");a("cV");var f=a("kd"),i=a("bS"),j=a("em"),k=a("bW"),n=a("kn"),g=a("jr"),l=d.extend(j,function(){j.call(this);this.S2=this.T2=1800;this.yv=7;this.sja=this.qoa=0;this.Vz=y;this.vh=m;this.Ss=k.iY;this.p7=k.cZ;this.yv=0;this.vI=m;this.xC=y;this.dv=q;this.Fs=3;this.aa=90;this.cP=this.yt=
this.wb=1;this.gc=this.na=q;this.dB=y});l.prototype.fr=function(a){this.T2=a.get("manualRotationSpeed");this.S2=a.get("manualRotationSpeed");this.Fs=a.get("manualZoomSpeed");this.cP=a.get("draggingFactor")};l.prototype.kr=function(a){this.Ss=a;this.kU()};l.prototype.yu=function(a){this.p7=a;this.kU()};l.prototype.uu=function(a){this.aa=a;this.yt=this.aa/90};l.prototype.ru=function(a){this.Dh();if(a){this.na=a;if(this.gc=a.qra&&a.gc){this.gc.bind(f.ob,this.V4,this,o);this.gc.bind(f.Lb,this.W4,this,
o)}this.na.bind(f.ob,this.Wb,this,o);this.na.bind(f.qc,this.gg,this,o);this.na.bind(f.Lb,this.hg,this,o);this.na.bind(f.cp,this.Ts,this,o);this.na.Pa().get("settings").get(TDV.PlayerSettings.nca)!==y&&this.na.bind(f.Hu,this.Cs,this,o);this.na.bind(f.sE,this.m1,this,o);this.na.bind(f.rE,this.k1,this,o);this.kU()}};l.prototype.Dh=function(){if(this.na!=q){if(this.gc){this.gc.unbind(f.ob,this.V4,this);this.gc.unbind(f.Lb,this.W4,this);this.gc=q}this.na.unbind(f.ob,this.Wb,this);this.na.unbind(f.qc,this.gg,
this);this.na.unbind(f.Lb,this.hg,this);this.na.unbind(f.cp,this.Ts,this);this.na.unbind(f.Hu,this.Cs,this);this.na.unbind(f.sE,this.m1,this);this.na.unbind(f.rE,this.k1,this);this.na=q;this.TF()}};l.prototype.kU=function(){if(this.na)if(this.na.pj){this.vI=this.p7;this.yv=this.qoa}else{this.vI=this.Ss;this.yv=this.sja}};l.prototype.V4=function(){this.dB=o};l.prototype.W4=function(){this.dB=y};l.prototype.Wb=function(a){if(!this.dB){this.Lna(a);this.uT()}};l.prototype.gg=function(a){this.dB||this.Yw(a)};
l.prototype.hg=function(){if(!this.dB){this.lP();this.TF()}};l.prototype.Ts=function(a){this.uU(a);this.uT(500)};l.prototype.m1=function(){this.uT()};l.prototype.Cs=function(a){this.vU(a)};l.prototype.k1=function(){this.TF()};l.prototype.Lna=function(a){this.Vz=o;this.vh=a;this.Yw(a)};l.prototype.Yw=function(a){if(this.Vz)switch(this.vI){case k.vr:this.spa(a);break;case k.Pm:this.rpa(a)}};l.prototype.spa=function(a){this.W7(+b(c(e(Math.abs(a.x-this.vh.x)<3?0:a.x-this.vh.x,this.na.ua())),this.T2*this.yt),
-b(c(e(Math.abs(a.y-this.vh.y)<3?0:a.y-this.vh.y,this.na.Za())),this.S2*this.yt))};l.prototype.rpa=function(a){this.jU(-b(e(a.x-this.vh.x,this.na.ua()),this.aa*this.cP),+b(e(a.y-this.vh.y,this.na.ua()),this.aa*this.cP));this.vh=a};l.prototype.lP=function(){if(this.Vz){this.Vz=y;switch(this.vI){case k.vr:this.W7(0,0)}}};l.prototype.W7=function(a,b){var c=new n(l.Rm);c.Yo=a;c.Ko=b;this.trigger(c)};l.prototype.jU=function(a,b){var c=new n(l.Rm);c.hy=a;c.Rx=b;this.trigger(c)};l.prototype.vU=function(a){if(this.wb!=
a.scale){this.lP();var b=this.wb;this.wb=a.scale;a=new g(l.dk);a.JV=this.aa*b/this.wb-this.aa;this.trigger(a)}};l.prototype.uU=function(a){if(a.yo!=0){this.lP();var b=new g(l.dk);b.JV=this.aa*-a.yo*this.Fs/100;this.trigger(b)}};l.prototype.uT=function(a){var b=this.dv!=q;this.S6();if(a&&(b||!this.xC)){var c=this;this.dv=setTimeout(function(){c.dv=q;c.TF()},a)}if(!this.xC){this.xC=o;this.trigger(new i(l.Zd))}};l.prototype.TF=function(){this.S6();if(this.xC){this.xC=y;this.trigger(new i(l.Yd))}};l.prototype.S6=
function(){if(this.dv!=q){clearTimeout(this.dv);this.dv=q}};l.Rm="rotation change";l.dk="zoom change";l.Zd="user interaction start";l.Yd="user interaction end";return l});
define("cA",["require","u"],function(a){function b(){this.Qna=e.Qa()?0.066:0.1;this.uja=0.5;this.Dna=e.Qa()?0.066:0.1;this.Lpa=0.1;this.UI=this.YI=y;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("u");b.prototype.reset=function(){this.D0=this.BO=this.tv=this.zp=this.lz=this.FO=this.EO=this.JO=this.Mv=this.Fs=this.qI=this.sI=this.Lk=this.cB=this.nm=this.JC=0};b.prototype.XW=function(a,b,c,e,k,n,g,l,r){return this.JC!=a||(this.cB=b)||this.sI!=c||0!=e||0!=k||
this.UI!=g||this.c3!=l||this.YI!=r?(this.JC=a,this.cB=b,this.sI=c,this.nm+=e,this.Lk+=k,this.qI+=n,this.UI=g,this.c3=l,this.YI=r,o):y};b.prototype.Vua=function(a,b){return this.Fs!=a||0!=b?(this.Fs=a,this.Mv+=b,o):y};b.prototype.Pc=function(){return 0!=this.JO||0!=this.EO||0!=this.FO||0!=this.lz||0!=this.JC||0!=this.cB||0!=this.sI||0!=this.Fs||0!=this.nm||0!=this.Lk||0!=this.Mv};b.prototype.Ua=function(a){var a=1E3/a,b=this.JO/a,e=this.JC/a+this.nm;this.nm=0;var j=this.EO/a,k=this.cB/a+this.Lk;this.Lk=
0;var n=this.FO/a,g=this.sI/a+this.qI;this.qI=0;var l=this.Fs+this.Mv*a;this.Mv=0;var r=0==e&&0==k&&0==g,p=0==b&&0==j&&0==n;this.UI&&p&&!r||this.YI&&r&&!p||this.c3&&!r&&!p?(r=r?this.Qna:p?this.Dna:this.uja,this.zp=c(b,e,r),this.tv=c(j,k,r),this.BO=c(n,g,r)):(this.zp=e,this.tv=k,this.BO=g);b=0==this.lz;e=0==l;this.lz=this.UI&&b&&!e||this.YI&&e&&!b?c(this.lz,l,this.Lpa):l;this.JO=this.zp*a;this.EO=this.tv*a;this.FO=this.BO*a;this.D0=this.lz/a};return b});
define("ck","jquery.mod,eD,d,dE,cA,X,kd".split(","),function(a,b,c,e,d,f,i){b=b.extend(c,function(){c.call(this);this.Dc("Renderer");this.q=a("<canvas></canvas>");this.q.css({position:"absolute",left:0,top:0});this.Ja().append(this.q);this.Qp=q;this.Y=this.Pv=this.Nv=this.Ov=0;this.kg=y;this.fla=150;this.Mz=0;this.fi=q;this.bind(i.pb,this.hb,this,o);this.pa=new e;this.pa.qxa(720);this.pa.ED(0);this.pa.kr("drag_rotation");this.pa.uu(360);this.pa.bind(e.Rm,this.ska,this);this.Ra=new d});b.prototype.dua=
function(a,b,c){this.Qp=a;this.Ov=b;this.Nv=c;this.Pv=Math.floor(this.Qp.length*this.Y/360);this.HS();this.pa.ru(this);this.ea()};b.prototype.kqa=function(){this.Qp=q;this.dm();this.HS();this.pa.Dh()};b.prototype.play=function(){this.kg=o;this.ea()};b.prototype.ska=function(a){this.dm();this.Ra.XW(a.Yo,a.Ko,0,a.hy,a.Rx,0,y,o);this.ea()};b.prototype.tR=function(){this.play()};b.prototype.ig=function(a){if(this.Qp)if(this.Ra.Pc()){this.kg=y;this.Ra.Ua(a);this.f_(this.Ra.zp);this.ea()}else if(this.kg){this.f_(this.fla*
a/1E3);this.ea()}else this.Rv()||this.LB()};b.prototype.Yaa=function(a){for(this.Y=a;this.Y<0;)this.Y=this.Y+360;for(;this.Y>=360;)this.Y=this.Y-360;this.dpa()};b.prototype.dpa=function(){if(this.Qp){var a=Math.floor(this.Qp.length*this.Y/360);if(this.Pv!=a){this.Pv=a;this.v5()}}};b.prototype.f_=function(a){this.Yaa(this.Y+a)};b.prototype.hb=function(){this.HS()};b.prototype.HS=function(){var a=this.q.get(0);if(this.Ov==0||this.Nv==0){a.width=0;a.height=0}else{var b=this.jd(),c=this.hd();if(c*this.Ov>
b*this.Nv){a.width=b;a.height=this.Nv*b/this.Ov}else{a.height=c;a.width=this.Ov*c/this.Nv}this.q.css({left:Math.round((b-a.width)*0.5)+"px",top:Math.round((c-a.height)*0.5)+"px"});this.v5()}};b.prototype.v5=function(){if(this.Qp){var a=this.q.get(0),b=this.Qp[this.Pv];a.getContext("2d").drawImage(b,0,0,this.Ov,this.Nv,0,0,a.width,a.height)}};b.prototype.Rv=function(){return this.fi?o:y};b.prototype.LB=function(){this.dm();if(this.Mz>0){var a=this;this.fi=setTimeout(function(){a.fi=q;a.tR()},this.Mz)}};
b.prototype.dm=function(){if(this.fi){clearTimeout(this.fi);this.fi=q}};b.prototype.ea=function(){f.Ha(this.ig,this)};return b});
define("iJ","require,jquery.mod,cV,eD,kd,fB,bS,dx,ef,z,ck,jM,hn".split(","),function(a){a("jquery.mod");var b=a("cV"),c=a("eD"),e=a("kd"),d=a("fB"),f=a("bS"),i=a("dx");a("ef");ProgressBar=a("z");Renderer=a("ck");Container=a("jM");ImageLoader=a("hn");a=c.extend(Container,function(){Container.call(this);this.Nc=this.hi=this.Ae=this.g=q;this.bind(e.Le,this.qi,this);this.bind(e.Df,this.mi,this)});i.A("Object3D",a).B("UIComponent").R({frames:"array[ImageResource]",yaw:"number"}).fc([e.T]);a.prototype.Ba=
function(){Container.prototype.Ba.call(this);if(!this.g){this.g=new Renderer;this.g.M({left:0,top:0,right:0,bottom:0});this.ia(this.g)}if(!this.Ae){this.Ae=new ProgressBar;this.Ae.M({left:0,bottom:0,right:0,height:20,visible:y});this.ia(this.Ae)}};a.prototype.qi=function(){this.fA()};a.prototype.mi=function(){this.Gj()};a.prototype.fA=function(){this.Ae.set("percent",0);this.Ae.set("visible",o);this.g.Yaa(this.get("yaw"));var a=this.get("frames",[]);this.hi=[];this.Nc=[];for(var b=0;b<a.length;b++){this.hi.push(Level.gl(a[b]));
var c=new ImageLoader(d.$i);c.bind(e.T,this.BA,this);c.bind(e.xd,this.CA,this);this.Nc.push(c)}for(b=0;b<a.length;b++)this.Nc[b].load(this.hi[b].get("url"))};a.prototype.BA=function(){var a=b(this.Nc).filter(function(a){return a.Go()});this.Ae.set("percent",100*a.length/this.Nc.length);a.length==this.Nc.length&&this.uf()};a.prototype.CA=E();a.prototype.uf=function(){this.Ae.set("visible",y);var a=this.hi[0].get("width",this.Nc[0].Fc()),c=this.hi[0].get("height",this.Nc[0].qd());this.g.dua(b(this.Nc).map(function(a){return a.Bd()}),
a,c);this.trigger(new f(e.T))};a.prototype.Gj=function(){if(this.Nc){this.Ae.set("visible",y);this.g.kqa();this.Nc=b(this.Nc).each(function(a){a.unbind(e.T,this.BA,this);a.unbind(e.xd,this.CA,this);a.cancel()});this.hi=this.Nc=q}};return a});
define("eF",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(a,b,f){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("hfov",f)});a.A("RotationalCameraPosition",b).B("Object").R({stereographicFactor:"number",yaw:"number",pitch:"number",hfov:"number"});return b});
define("bX",["require","eD","eF","dx"],function(a){var b=a("eD"),c=a("eF"),a=a("dx"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("PanoramaCameraPosition",b).B("RotationalCameraPosition");return b});
define("fa","require,eD,im,dx,bX,eF".split(","),function(a){var b=a("eD"),c=a("im"),e=a("dx"),d=a("bX"),f=a("eF"),i=b.extend(c,function(){c.call(this);this.set("initialPosition",new f);this.set("draggingFactor",1);this.set("hoverFactor",0);this.set("manualRotationSpeed",1800);this.set("manualZoomSpeed",1);this.set("automaticRotationSpeed",10);this.set("automaticZoomSpeed",10)});e.A("RotationalCamera",i).B("Object").R({displayOriginPosition:"RotationalCameraDisplayPosition",displayMovements:"array[TargetRotationalCameraDisplayMovement]",
draggingFactor:"number",hoverFactor:"number",initialPosition:"RotationalCameraPosition",initialSequence:"RotationalCameraSequence",idleSequence:"RotationalCameraSequence",sequences:"array[RotationalCameraSequence]",timeToIdle:"number",manualRotationSpeed:"number",manualZoomSpeed:"number",automaticRotationSpeed:"number",automaticZoomSpeed:"number"});a=b.extend(i,function(){i.call(this);this.set("initialPosition",new d)});e.A("PanoramaCamera",a).B("RotationalCamera");return a});
define("ix",["require","eD","eF","dx"],function(a){var b=a("eD"),c=a("eF"),a=a("dx"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("RotationalCameraDisplayPosition",b).B("RotationalCameraPosition").R({stereographicFactor:"number"});return b});define("hA",["require","eD","ix","dx"],function(a){var b=a("eD"),c=a("ix"),a=a("dx"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("PanoramaCameraDisplayPosition",b).B("RotationalCameraDisplayPosition");return b});
define("bg",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaCameraMovement",b).B("RotationalCameraMovement");return b});
define("hH","require,eD,im,bS,dx,kd".split(","),function(a){var b=a("eD"),c=a("im"),e=a("bS"),d=a("dx"),f=a("kd"),a=b.extend(c,function(){c.call(this)});a.prototype.play=function(){this.trigger(new e(f.Lr))};a.prototype.pause=function(){this.trigger(new e(f.CE))};d.A("RotationalCameraSequence",a).B("Object").R({movements:"array[RotationalCameraMovement]",mandatory:"bool",movementIndex:"number",repeat:"number",restartMovementOnUserInteraction:"bool",restartMovementDelay:"number"}).Sg({pause:a.prototype.pause,
play:a.prototype.play}).fc([f.Ia,f.Mr]);return a});define("bv",["require","eD","dx","hH"],function(a){var b=a("eD"),c=a("dx"),e=a("hH"),a=b.extend(e,function(){e.call(this)});c.A("PanoramaCameraSequence",a).B("RotationalCameraSequence");return a});define("fX",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("PanoramaMapLocation",a).B("Object").R({map:"Map",x:"number",y:"number",angle:"number",visible:"bool"});return a});
define("ko",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaOverlay",b).B("Object");return b});
define("co",["require","eQ","eX","a"],function(a){function b(a){this.g=a;this.ej=[];this.aQ=y;this.ja=this.Y=0}var c=a("eQ"),e=a("eX"),d=a("a");b.prototype.clear=function(){this.stop();this.ej=this.g=q};b.prototype.end=function(a){function b(a){return 0<=c.indexOf(a)}var c=this.O1(a);this.ej.forEach(function(a){b(a)||a.Xt().stop()});this.ej=this.ej.filter(b);this.aQ=y};b.prototype.start=function(a){this.end(a);this.ej=this.O1(a);this.aQ=0<this.ej.filter(function(a){return a instanceof e}).length;
this.L7();this.DI(c.N,o)};b.prototype.play=function(){this.DI(c.N)};b.prototype.pause=function(){this.DI(c.Ac)};b.prototype.stop=function(){this.DI(c.K)};b.prototype.nc=function(){this.Y=this.g.Eb();this.ja=this.g.Ib();this.L7()};b.prototype.L7=function(){if(this.aQ){var a=Math.PI/180,b=this.Y*a,c=this.ja*a,k=new d(Math.sin(b)*Math.cos(c),Math.sin(c),Math.cos(b)*Math.cos(c));this.ej.forEach(function(n){if(n instanceof e){var g=n.get("yaw",b)*a,l=n.get("pitch",c)*a,r=n.get("maximumAngle",360)*a,g=
new d(Math.sin(g)*Math.cos(l),Math.sin(l),Math.cos(g)*Math.cos(l)),r=Math.min(1,Math.max(0,1-Math.acos(k.St(g))/r));n.Xt().rl(r)}})}};b.prototype.O1=function(a){return a?a.get("audios",[]):[]};b.prototype.DI=function(a,b){(b?this.ej.slice().reverse():this.ej).forEach(function(b){if(b.get("autoplay",y)){var b=b.Xt(),d=b.get("state");a==c.N&&d!=c.N?b.play():a==c.Ac&&d==c.N?b.pause():a==c.K&&d!=c.K&&b.stop()}})};return b});
define("fU","require,cV,kd,hC,dD,a,jl".split(","),function(a){function b(a){this.g=a;this.Z=y;this.zi=b.Rr;this.sP=this.l2=y;this.vg(q);this.g.bind(e.pb,this.hb,this,o);this.hb()}var c=a("cV"),e=a("kd"),d=a("hC"),f=a("dD"),i=a("a"),j=a("jl");b.prototype.T9=function(){return this.zi!==b.Rr};b.prototype.S9=function(){return this.zi&b.Tu?o:y};b.prototype.U9=function(){return this.zi&b.Uu?o:y};b.prototype.V9=function(){return this.zi&b.Ur?o:y};b.prototype.R9=function(){return this.zi&b.Qr?o:y};b.prototype.VK=
N("l2");b.prototype.Eb=function(){this.Fi();return this.Y};b.prototype.Ib=function(){this.Fi();return this.ja};b.prototype.rd=function(){this.Fi();return this.vb};b.prototype.Co=function(){this.Fi();return this.aa};b.prototype.vg=function(a){if(a){this.QR=a.get("hfov",360);this.GH=a.get("vfov",180);this.ZA=a.get("pitch",0);this.ct=a.get("partial",y);this.cQ=a.X9();this.$P=a.M9();this.hQ=Math.min(a.get("hfovMax",170),170);this.Kz=a.get("hfovMin");this.bR=j.s9(a)}else{this.QR=360;this.GH=180;this.ZA=
0;this.$P=this.cQ=this.ct=y;this.hQ=120;this.bR=this.Kz=1}this.Y=0;this.ja=this.ZA;this.vb=0;this.Z=o};b.prototype.ya=function(a,b,c,d,e){this.Y=a;this.ja=b;this.vb=c;this.aa=d;this.sP=e;this.Z=o};b.prototype.hb=function(){var a=this.g.ua(),b=this.g.Za();if(this.W!=a||this.da!=b){this.W=a;this.da=b;this.Z=o}};b.prototype.Fi=function(){if(this.Z){this.Z=y;var a=this.Y*g,e=this.ja*g,j=this.aa*g,t,u,v,x=(this.sP?d.Nm(this.hQ,this.W,this.da):this.hQ)*g,w;a:{w=this.Kz;if(c(w).isString())if((w=w.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&
w.length>=2){w=parseFloat(w[1]);break a}w=m}w=w!==m?2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.bR*45*w/100):this.Kz?(this.sP?d.Nm(this.Kz,this.W,this.da):this.Kz)*g:2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.bR*45);w=Math.min(x,w);if(this.l2){t=360;v=180;u=0}else if(this.cQ||this.$P){t=this.$P?90:this.ZA+this.GH*0.5;var A=this.cQ?-90:this.ZA-this.GH*0.5;v=t-A;u=(t+A)*0.5;t=this.QR}else{t=this.QR;u=this.ZA;v=this.GH}t=t*g;v=v*g;u=u*g;for(A=this.W/this.da;a<-k;)a=a+2*k;for(;a>k;)a=
a-2*k;j=Math.max(Math.min(j,x),w);x=b.Rr;e>n?x=x|b.Ur:e<-n&&(x=x|b.Qr);var e=Math.max(Math.min(e,k*0.5),-k*0.5),C=2*Math.atan(Math.tan(j*0.5)/A);if(C>=v){j=2*Math.atan(Math.tan(v*0.5)*A);e=u;x=x|b.Ur|b.Qr}else{var B=Math.min(v*0.5+u,k*0.5);v=Math.max(-v*0.5+u,-k*0.5);u=!this.ct&&B>=k*0.495?k*0.5:B-C*0.5;v=!this.ct&&v<=-k*0.495?-k*0.5:v+C*0.5;if(e>u){e=u;x=x|b.Ur}else if(e<v){e=v;x=x|b.Qr}}if(this.ct){v=Math.tan(j*0.5);A=v/A;A=new i(-v,e>0?A:-A,1);v=new f;v.Lm(-e);A.apply(v);A=A.Eb()*2;A<0&&(A=A+2*
k);v=t*0.5-A*0.5;C=-t*0.5+A*0.5;if(A>t){a=0;j=Math.max(w,j*t/A);x=x|b.Tu|b.Uu}else if(a>v){a=v;x=x|b.Uu}else if(a<C){a=C;x=x|b.Tu}}this.Y=a*l;this.ja=e*l;this.aa=j*l;this.zi=x}};var k=Math.PI,n=Math.PI*0.5,g=Math.PI/180,l=180/Math.PI;b.Rr=0;b.Tu=1;b.Uu=2;b.Ur=4;b.Qr=8;return b});
define("T",["require","eD","kd","em","kn"],function(a){function b(a,b){return a*b}var c=a("eD"),e=a("kd"),d=a("em"),f=a("kn"),i=c.extend(d,function(){d.call(this);this.Vz=y;this.vh=m;this.aa=90;this.pP=0.1;this.na=q});i.prototype.fr=function(a){this.pP=a.get("hoverFactor")};i.prototype.uu=N("aa");i.prototype.ru=function(a){this.Dh();a&&(this.na=a,this.vh=m,this.na.bind(e.qc,this.gg,this,o))};i.prototype.Dh=function(){this.na!=q&&(this.na.unbind(e.qc,this.gg,this),this.na=q)};i.prototype.gg=function(a){this.Yw(a)};
i.prototype.Yw=function(a){this.vh&&this.jU(+b(Math.min(Math.max((a.x-this.vh.x)/this.na.ua(),-1),1),this.aa*this.pP),-b(Math.min(Math.max((a.y-this.vh.y)/this.na.ua(),-1),1),this.aa*this.pP));this.vh=a};i.prototype.jU=function(a,b){if(!(0==a&&0==b)){var c=new f(i.Rm);c.hy=a;c.Rx=b;this.trigger(c)}};i.Rm="rotation change";return i});
define("eV","require,cV,eD,bS,em,cA,T".split(","),function(a){a("cV");var b=a("eD"),c=a("bS"),e=a("em"),d=a("cA"),f=a("T"),i=b.extend(e,function(a,b,c){e.call(this);this.g=a;this.Bb=this.g.Bb;this.H=b;this.jb=c;this.gt=this.RE=this.V=y;this.Ra=new d;this.Pf=q;this.vb=this.ja=this.Y=0;this.aa=90;this.pa=new f;this.pa.bind(f.Rm,this.EA,this,o)});i.prototype.clear=function(){this.pa.unbind(f.Rm,this.EA,this,o);this.pa.Dh();this.pa=q;this.ks();this.g=this.Bb=this.jb=this.H=this.Ra=q};i.prototype.fr=function(a){this.Ra.reset();
this.pa.fr(a)};i.prototype.ya=function(a,b,c,d){if(this.Y!=a||this.ja!=b||this.vb!=c||this.aa!=d){this.Y=a;this.ja=b;this.vb=c;this.aa=d;this.pa.uu(this.aa);this.US(y);this.NB()}};i.prototype.Pc=function(){return this.RE&&this.gt?o:y};i.prototype.Ua=function(a){this.Ht=y;this.Ra.Ua(a);this.gt=y;var a=this.Y+this.Ra.zp,b=this.ja+this.Ra.tv;this.jb.nl(this.aa);this.H.ya(a,b,this.vb,this.jb.le(),this.jb.Bo());this.Y=this.H.Eb();this.ja=this.H.Ib();this.vb=this.H.rd();this.aa=this.H.Co()};i.prototype.fl=
Q("Y");i.prototype.el=Q("ja");i.prototype.Xq=Q("vb");i.prototype.Zt=Q("aa");i.prototype.$c=function(a){if(this.V!=a)if(this.V=a)this.NB();else{this.ks();this.US(y)}};i.prototype.EA=function(a){this.mb(a.Yo,a.Ko,0,0,a.hy,a.Rx,0,0,y,y,o,o)};i.prototype.mb=function(a,b,c,d,e,f,i,s,t,u,v,x){var w=this.Ra.XW(a,b,c,e,f,i,u,v,x)||w;w&&this.bf()};i.prototype.bf=function(){this.gt=o;this.trigger(new c(i.Ke))};i.prototype.NB=function(){this.ks();this.Pf=setTimeout(this.QA.bind(this),30)};i.prototype.ks=function(){if(this.Pf){clearTimeout(this.Pf);
this.Pf=q}};i.prototype.QA=function(){this.US(this.V)};i.prototype.US=function(a){if(this.RE!=a)if(this.RE=a){this.Ra.reset();this.pa.ru(this.g.getParent());this.bf()}else this.pa.Dh()};i.Ke="position change request";return i});
define("fl","eD,kd,bS,em,u,fq".split(","),function(a,b,c,e,d,f){a=a.extend(e,function(){e.call(this);this.j8=this.V=y;this.vb=this.ja=this.Y=0;this.oI=y;this.Lk=this.nm=0});a.prototype.$c=function(a){if(this.V!=a)if(this.V=a){f.bind(this.Ys,this,o);var a=f.Cm(),b=a.pitch;this.nm=this.Y-a.yaw;this.Lk=this.ja-b;this.Hj()}else f.unbind(this.Ys,this,o)};a.prototype.ya=function(a,b,c){if(this.Y!=a){this.nm=this.rt(this.nm+(a-this.rt(this.Y,a)),0);this.Y=a}if(this.ja!=b){this.Lk=this.Lk+(b-this.ja);this.ja=
b}this.vb=c};a.prototype.fl=Q("Y");a.prototype.el=Q("ja");a.prototype.Xq=Q("vb");a.prototype.Pc=function(){return f.Ssa()};a.prototype.Ua=function(a){var b=f.Cm(),a=20*a/1E3,c=b.pitch+(this.j8?this.Lk:0),d=b.roll;this.Y=this.ue(this.Y,this.rt(this.rt(b.yaw,this.Y)+this.nm,this.Y),a);this.ja=this.ue(this.ja,c,a);this.vb=this.ue(this.vb,d,a)};a.prototype.Qua=N("j8");a.prototype.ue=function(a,b,c){a=(b-a)*(1-c);Math.abs(a)<0.01&&(a=0);return b-a};a.prototype.rt=function(a,b){for(;a+180<b;)a=a+360;for(;a-
180>b;)a=a-360;return a};a.prototype.Ys=function(){this.V&&this.Hj()};a.prototype.Hj=function(){this.trigger(new c(b.$))};return a});define("ft",["require"],function(){return{IE:38,jE:40,Fa:39,ka:37,nL:65,LM:90}});define("cY",[],function(){return{Lu:"left",Mu:"right",Ku:"down",Nu:"up",RY:"rotate10x",oZ:"zoom2x",N:"playing",Ym:"zoomIn",Zm:"zoomOut",Dd:"stop"}});
define("dH","require,eD,ft,bS,em,cY".split(","),function(a){var b=a("eD"),c=a("ft"),e=a("bS"),d=a("em"),f=a("cY"),i=b.extend(d,function(a){d.call(this);this.g=a;this.V=y;this.sf={};this.JB=q;this.CB=this.IB=y;this.EG=this.EG.bind(this);this.In=this.In.bind(this);this.Bb=this.g.Bb;document.addEventListener("keydown",this.EG);document.addEventListener("keyup",this.In)});i.prototype.clear=function(){this.V=y;this.Bb=this.g=q;document.removeEventListener("keydown",this.EG);document.removeEventListener("keyup",
this.In)};i.prototype.$c=function(a){if(this.V!=a)(this.V=a)&&this.oJ()};var j=[c.IE,c.jE,c.ka,c.Fa,c.nL,c.LM];i.prototype.EG=function(a){var b=a.which,c=y;if(!this.sf[b]&&j.indexOf(b)>=0){if(!this.JB&&!this.IB)this.JB=setTimeout(this.vka.bind(this),100);c=this.sf[b]=o}if(this.CB!=a.shiftKey){this.CB=a.shiftKey;c=o}c&&this.oJ()};i.prototype.vka=function(){this.IB=o;this.oJ()};i.prototype.In=function(a){var b=a.which,c=y;if(b in this.sf){delete this.sf[b];c=y;for(b in this.sf)this.sf[b]&&(c=o);if(!c){this.JB&&
clearTimeout(this.JB);this.JB=q;this.IB=y}c=o}if(this.CB!=a.shiftKey){this.CB=a.shiftKey;c=o}c&&this.oJ()};i.prototype.oJ=function(){if(this.V){var a=this.Bb.get("arrowKeysAction");if(a!="none"){var a=a=="rotate",b=[];this.sf[c.nL]?b.push(f.Ym):this.sf[c.LM]&&b.push(f.Zm);this.IB&&(this.sf[c.nL]||this.sf[c.LM])&&b.push(f.oZ);this.sf[c.ka]?b.push(f.Lu):this.sf[c.Fa]&&b.push(f.Mu);if(a||this.CB)this.sf[c.IE]?b.push(f.Nu):this.sf[c.jE]&&b.push(f.Ku);this.IB&&(this.sf[c.ka]||this.sf[c.Fa]||this.sf[c.IE]||
this.sf[c.jE])&&b.push(f.RY);b.length==0&&b.push(f.Dd);this.trigger(new e(i.RL,{H$:b}))}}};i.RL="movementsChange";return i});
define("kj",["require"],function(){function a(){this.Vr=o;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.Vr&&(this.Vr=y,this.aJ=this.bJ=this.lo=this.Ci=this.uv=this.wv=this.vv=this.Bp=m)};a.prototype.moveTo=function(a,b,d,f,i){this.Ci=a;this.lo=b;this.bJ=d;this.aJ=f;this.tQ=i;this.Vr=o};a.prototype.ya=function(a,b,d,f){this.Bp=a;this.vv=b;this.wv=d;this.uv=f};a.prototype.fl=Q("Bp");a.prototype.el=Q("vv");a.prototype.Xq=Q("wv");a.prototype.Zt=
Q("uv");a.prototype.Pc=Q("Vr");a.prototype.Ua=function(){if(this.Vr)if(this.tQ)this.Bp=this.Ci,this.vv=this.lo,this.wv=this.bJ,this.uv=this.aJ,this.Vr=y;else{for(var a=this.Bp,e=this.Ci-180,d=this.Ci+180;a<e;)a+=d-e;for(;a>d;)a-=d-e;this.Bp=a;this.Bp=b(this.Bp,this.Ci);this.vv=b(this.vv,this.lo);this.wv=b(this.wv,this.bJ);this.uv=b(this.uv,this.aJ);this.Bp==this.Ci&&this.vv==this.lo&&this.wv==this.bJ&&this.uv==this.aJ&&(this.Vr=y)}};return a});
define("bO",["require","js","iB","bj"],function(a){function b(){this.V=y;this.vb=this.ja=this.Y=0;this.HG=m}var c=a("js"),e=a("iB"),d=a("bj");b.prototype.$c=function(a){this.V!=a&&(this.V=a,this.HG=m)};b.prototype.ya=function(a,b,c){this.Y=a;this.ja=b;this.vb=c};b.prototype.fl=Q("Y");b.prototype.el=Q("ja");b.prototype.Xq=Q("vb");b.prototype.Pc=R(o);b.prototype.Ua=function(){var a=c.nX(d.zm().orientation);this.Y+=this.HG===m?0:a.ra-this.HG;this.HG=a.ra;this.ja=a.pitch;this.vb=a.ld;this.ja=i===m?a.pitch:
i;this.vb=f===m?a.ld:f};var f=e.sg("debug")?e.kK("force_vr_roll"):m,i=e.sg("debug")?e.kK("force_vr_pitch"):m;return b});
define("g","require,cV,eD,kd,bS,em,bW,fl,dH,cA,dE,kj,bO,cY,bj,S".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("kd"),d=a("bS"),f=a("em"),i=a("bW"),j=a("fl"),k=a("dH"),n=a("cA"),g=a("dE"),l=a("kj"),r=a("bO"),p=a("cY"),s=a("bj"),t=a("S"),u=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.Bb=this.g.Bb;this.H=b;this.jb=c;this.gt=this.Kp=this.Gz=this.eI=this.V=y;this.Ra=new n;this.Wk=new l;this.vb=this.ja=this.Y=0;this.aa=90;this.yt=1;this.Pe=m;this.AN=this.Py=5;this.Ht=y;this.pa=new g;this.pa.bind(g.Rm,
this.EA,this,o);this.pa.bind(g.dk,this.hq,this,o);this.pa.bind(g.Zd,this.Gk,this,o);this.pa.bind(g.Yd,this.Fk,this,o);this.eh=new j;this.eh.bind(e.$,this.C3,this);this.Jp=y;this.gi=new k(this.g);this.gi.bind(k.RL,this.O3,this,o);this.km=new r;s.bind(e.$,this.wj,this,o);this.wj()});u.prototype.clear=function(){this.pa.unbind(g.Rm,this.EA,this,o);this.pa.unbind(g.dk,this.hq,this,o);this.pa.unbind(g.Zd,this.Gk,this,o);this.pa.unbind(g.Yd,this.Fk,this,o);this.pa.Dh();this.pa=q;this.eh.unbind(e.$,this.C3,
this);this.eh=q;this.gi.unbind(k.RL,this.O3,this,o);this.gi.clear();this.gi=q;s.unbind(e.$,this.wj,this,o);this.jb=this.H=this.Ra=q;this.vF();this.g=this.Bb=q};u.prototype.fr=function(a){this.Ra.reset();this.Wk.reset();this.pa.fr(a);this.Py=a.get("automaticRotationSpeed");this.AN=a.get("automaticZoomSpeed")};u.prototype.ug=function(a){function c(d){return b(a).contains(d)}b.isArray(a)||(a=[a]);var d=0,e=0,f=0,g=y;if(!c(p.Dd)){c(p.Lu)?d=-this.Py:c(p.Mu)&&(d=+this.Py);c(p.Ku)?e=-this.Py:c(p.Nu)&&(e=
+this.Py);c(p.Ym)?f=-this.AN:c(p.Zm)&&(f=+this.AN);c(p.N)&&(g=o);c(p.oZ)&&(f=f*2);if(c(p.RY)){d=d*10;e=e*10}d=d*this.yt;e=e*this.yt}this.mb(d,e,0,f,0,0,0,0,g,o,o,o)};u.prototype.ya=function(a,b,c,d){this.Y=a;this.ja=b;this.vb=c;this.aa=d;this.yt=this.aa/90;this.eh.ya(this.Y,this.ja,this.vb);this.km.ya(this.Y,this.ja,this.vb);this.pa.uu(this.aa);this.Wk.ya(this.Y,this.ja,this.vb,this.aa)};u.prototype.moveTo=function(a,b,c,d,e){this.Wk.moveTo(a,b,c,this.jb.c9(d),e);this.eI=y;this.Ra.reset();this.bf()};
u.prototype.YW=function(a,b,c){this.mb(0,0,0,0,a,b,c,0,y,y,y)};u.prototype.Pc=function(){return this.V&&(this.gt||this.kL())?o:y};u.prototype.kL=function(){return this.V?this.Ht?o:this.km.V?this.km.Pc()||this.Ra.Pc():this.eh.V?this.Jp?o:this.eh.Pc()||this.Ra.Pc():this.Ra.Pc()||this.Wk.Pc():y};u.prototype.Ua=function(a){this.Ht=y;this.Ra.Ua(a);this.gt=y;var b,c,d;d=this.aa;if(this.km.V){this.km.Ua(a);a=this.km.fl()+this.Ra.zp;b=this.km.el();c=this.km.Xq()}else if(this.Wk.Pc()){this.Wk.Ua(a);a=this.Wk.fl();
b=this.Wk.el();c=this.Wk.Xq();d=this.Wk.Zt()}else{if(this.eh.V){this.Jp=y;this.eh.Ua(a);a=this.eh.fl()+this.Ra.zp;b=this.eh.el();this.Gz&&(b=b+this.Ra.tv);c=this.eh.Xq()}else{a=this.Y+this.Ra.zp;b=this.ja+this.Ra.tv;c=0}d=d+this.Ra.D0}this.jb.nl(d);this.H.ya(a,b,c,this.jb.le(),this.jb.Bo());this.Y=this.H.Eb();this.ja=this.H.Ib();this.vb=this.H.rd();this.aa=this.H.Co();if(this.eI&&this.H.T9()){d=this.Ra.JC;if(this.H.S9()||this.H.U9())d=-d;a=this.Ra.cB;if(this.H.V9()||this.H.R9())a=-a;this.mb(d,a,0,
0,0,0,0,0,o,y,y,o)}};u.prototype.fl=Q("Y");u.prototype.el=Q("ja");u.prototype.Xq=Q("vb");u.prototype.Zt=Q("aa");u.prototype.$c=function(a){if(this.V!=a){if(this.V=a){this.Dq(this.pa.Ss==i.Pm?t.tE:m);this.pa.ru(this.g.getParent());this.bf()}else{this.vF();this.pa.Dh()}this.dU()}};u.prototype.FD=function(a){if(this.Kp!=a){this.Kp=a;this.dU();this.Jp=o}};u.prototype.hr=function(a){this.gi.$c(a)};u.prototype.dU=function(){this.eh.$c(this.V&&this.Kp&&!s.isPresenting());this.km.$c(this.V&&s.isPresenting())};
u.prototype.C3=function(){this.bf()};u.prototype.GD=function(a){this.Gz=a;this.eh.Qua(this.Gz)};u.prototype.kr=function(a){this.pa.kr(a);this.Dq(this.pa.Ss==i.Pm?t.tE:m)};u.prototype.yu=function(a){this.pa.yu(a)};u.prototype.wj=function(){this.dU();this.bf()};u.prototype.EA=function(a){var b=!this.km.V&&(!this.eh.V||this.Gz);if(this.pa.Ss==i.vr){var c=m;if(a.Yo!=0||a.Ko!=0){var d=Math.sqrt(a.Ko*a.Ko+a.Yo*a.Yo)>25,e=Math.atan2(a.Ko,a.Yo)*180/Math.PI;e>=-22.5&&e<22.5?c=d?t.lY:t.kY:e>=22.5&&e<67.5?c=
d?t.nY:t.uY:e>=67.5&&e<112.5?c=d?t.mY:t.tY:e>=112.5&&e<157.5?c=d?t.oY:t.vY:e>=157.5||e<-157.5?c=d?t.sY:t.zY:e>=-157.5&&e<-112.5?c=d?t.rY:t.yY:e>=-112.5&&e<-67.5?c=d?t.pY:t.wY:e>=-67.5&&e<-22.5&&(c=d?t.qY:t.xY)}this.Dq(c);this.mb(a.Yo,a.Ko,0,0,a.hy,a.Rx,0,0,y,y,y,b)}else this.mb(a.Yo,a.Ko,0,0,a.hy,a.Rx,0,0,y,y,b,b)};u.prototype.hq=function(a){this.mb(0,0,0,a.Wra,0,0,0,a.JV,y,o,y,o)};u.prototype.mb=function(a,b,c,d,e,f,g,j,i,k,l,p){a=this.Ra.XW(a,b,c,e,f,g,k,l,p)||y;this.Bb.get("zoomEnabled")&&(a=this.Ra.Vua(d,
j)||a);if(a){this.Wk.reset();this.eI=i;this.bf()}};u.prototype.bf=function(){this.gt=o;this.trigger(new d(u.Ke))};u.prototype.Gk=function(){this.Ht=o;this.trigger(new d(u.Zd));this.pa.Ss==i.Pm&&this.Dq(t.uE)};u.prototype.Fk=function(){this.trigger(new d(u.Yd));this.pa.Ss==i.Pm&&this.Dq(t.tE)};u.prototype.O3=function(a){this.ug(a.data.H$);a.data.H$.indexOf(p.Dd)<0&&this.g.Pa().trigger(new d(e.nE,{$aa:a}))};u.prototype.Dq=function(a){if(this.Pe!=a&&this.V){this.Pe&&this.g.Sx(this.Pe);(this.Pe=a)&&this.g.OK(this.Pe)}};
u.prototype.vF=function(){if(this.Pe){this.g.Sx(this.Pe);this.Pe=m}};u.Ke="position change request";u.Zd="user interaction start";u.Yd="user interaction end";return u});define("iX",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("TargetRotationalCameraMovement",b).B("RotationalCameraMovement").R({path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number"});return b});
define("G","require,eD,kd,eQ,bS,em,dx,eM,iX,jP,bq".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("bS"),f=a("em"),i=a("dx");a("eM");a("iX");var j=a("jP"),k=a("bq"),n=b.extend(f,function(a,b,c){f.call(this);this.g=a;this.H=b;this.jb=c;this.zw=this.Wc=q;this.pq=this.qq=y;this.aw=[];this.FS=0;this.O=q;this.ja=this.Y=0;this.aa=90});n.prototype.clear=function(){this.end();this.H=this.g=q};n.prototype.start=function(a){this.dna(a);this.Xka();this.qq=this.pq=y;this.bf();this.og()};n.prototype.end=
function(){if(this.Wc!=q){this.d0();this.qq=this.pq=y;this.O=q;this.og()}};n.prototype.Wsa=function(){if(this.Wc&&this.Wc.get("restartMovementOnUserInteraction")){if(!this.qq){this.yT();this.O=q;this.qq=o;this.og()}}else this.end()};n.prototype.$sa=function(){if(this.qq){this.qq=y;this.C2()||this.Kna()}};n.prototype.dna=function(a){this.d0();this.Wc=a;this.Wc.bind(c.Lr,this.s4,this,o);this.Wc.bind(c.CE,this.r4,this,o);this.Wc.bind(c.L("movementIndex"),this.wR,this,o);this.aw=this.Wc.get("movements",
[])};n.prototype.d0=function(){this.yT();if(this.Wc!=q){this.Wc.unbind(c.Lr,this.s4,this);this.Wc.unbind(c.CE,this.r4,this);this.Wc.unbind(c.L("movementIndex"),this.wR,this);this.Wc.set("movementIndex",-1);this.Wc=q;this.aw=[]}};n.prototype.rg=function(){return this.Wc?this.pq?e.Ac:e.N:e.K};n.prototype.ya=function(a,b,c,d){this.Y=a;this.ja=b;this.aa=d};n.prototype.Pc=function(){return this.Wc&&this.O&&!this.pq&&!this.qq&&!this.C2()?o:y};n.prototype.Ua=function(a){if(this.Pc()){this.O.Ua(a);a=this.O.nb("hfov");
if(this.jb.s$()){var b=this.O.era();b.WC=this.jb.UJ(b.WC);b.fL=this.jb.UJ(b.fL);a=this.jb.UJ(a)}this.H.ya(this.O.nb("yaw"),this.O.nb("pitch"),0,a,this.jb.Bo());this.Y=this.H.Eb();this.ja=this.H.Ib();this.aa=this.H.Co();this.O.me()&&this.bka()}};n.prototype.fl=Q("Y");n.prototype.el=Q("ja");n.prototype.Zt=Q("aa");n.prototype.play=function(){if(this.pq){this.pq=y;this.bf();this.og()}};n.prototype.pause=function(){if(!this.pq){this.pq=o;this.og()}};n.prototype.s4=function(){this.play()};n.prototype.r4=
function(){this.pause()};n.prototype.Xka=function(){this.FS=0;var a=this.Wc.get("movementIndex",-1);a==-1&&(a=0);this.SH(a)};n.prototype.Zka=function(){this.FS++;var a=this.Wc.get("repeat",1);if(this.aw.length>0&&(a==0||this.FS<a))this.SH(0);else{this.Wc.trigger(new d(c.Ia));this.end();this.Eoa()}};n.prototype.Yka=function(){this.SH(this.Wc.get("movementIndex",0)+1)};n.prototype.SH=function(a){if(a<this.aw.length)this.Wc.get("movementIndex")!=a?this.Wc.set("movementIndex",a):this.wR();else{this.Wc.trigger(new d(c.Mr));
this.Zka()}};n.prototype.wR=function(){var a=this.Wc.get("movementIndex");this.O=a>=0?this.nfa(this.aw[a]):q};n.prototype.bka=function(){this.aw[this.Wc.get("movementIndex")].trigger(new d(c.Ia));this.Yka()};n.prototype.C2=function(){return this.zw!=q};n.prototype.Kna=function(){this.yT();var a=this,b=this.Wc.get("restartMovementDelay")||0;this.zw=setTimeout(function(){a.zw=q;a.rka()},b);this.og()};n.prototype.yT=function(){if(this.zw){clearTimeout(this.zw);this.zw=q}};n.prototype.rka=function(){this.SH(this.Wc.get("movementIndex"));
this.bf();this.og()};n.prototype.nfa=function(a){var b,c,d,e=this.nt(this.Y,-180,180),f=this.ja,n=this.aa;if(i.sb("TargetRotationalCameraMovement",a)){b=a.get("targetYaw",e);c=a.get("targetPitch",f);if(d=a.get("targetHfov")){this.jb.Laa(d);d=this.jb.le()}else d=n;this.H.ya(b,c,0,d,this.jb.Bo());if(this.H.ct)b=this.H.Eb();else switch(a.get("path")){case "left":b=this.nt(b,e-360,e);break;case "right":b=this.nt(b,e,e+360);break;case "longest":b=this.nt(b,e-180,e+180);b=b>=e?this.nt(b,e-360,e):this.nt(b,
e,e+360);break;default:b=this.nt(b,e-180,e+180)}}else if(i.sb("DistanceRotationalCameraMovement",a)){b=e+a.get("yawDelta",0);this.H.ct&&(b=Math.min(Math.max(-180,b),180));c=f+a.get("pitchDelta",0);d=n+a.get("hfovDelta",0);this.H.ya(b,c,0,d,this.jb.Bo());this.H.ct&&(b=this.H.Eb())}c=this.H.Ib();d=this.H.Co();return new j(a.get("easing"),[new k("yaw",e,b,a.get("yawSpeed")),new k("pitch",f,c,a.get("pitchSpeed")),new k("hfov",n,d,a.get("hfovSpeed"))],a.get("duration"))};n.prototype.nt=function(a,b,c){for(;a<
b;)a=a+(c-b);for(;a>c;)a=a-(c-b);return a};n.prototype.bf=function(){this.trigger(new d(n.Ke))};n.prototype.Eoa=function(){this.trigger(new d(n.cM))};n.prototype.og=function(){this.trigger(new d(n.Kb))};n.Ke="position change request";n.cM="sequence end";n.Kb="playback state change";return n});
define("bh","require,cV,eD,kd,bS,em,fU,eV,g,G,cY,bj,eQ".split(","),function(a){a("cV");var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("fU"),i=a("eV"),j=a("g"),k=a("G"),n=a("cY"),g=a("bj"),l=a("eQ"),r=b.extend(d,function(a,b){d.call(this);this.g=a;this.g.bind(c.pb,this.hb,this);g.bind(c.$,this.wj,this,o);this.jb=b;this.JS=y;this.aa=this.vb=this.ja=this.Y=m;this.pm=this.om=this.tA=this.wA=this.vA=this.uA=y;this.Bi=o;this.Mv=this.Lk=0;this.V=y;this.fi=q;this.Mz=5E3;this.Qz=this.qQ=q;this.RS=[];this.vf=
this.lp=l.K;this.H=new f(a);this.Na=new j(this.g,this.H,this.jb);this.Na.bind(j.Ke,this.Ek,this,o);this.Na.bind(j.Zd,this.Gk,this,o);this.Na.bind(j.Yd,this.Fk,this,o);this.ei=new i(this.g,this.H,this.jb);this.ei.bind(i.Ke,this.Ek,this,o);this.Oc=new k(this.g,this.H,this.jb);this.Oc.bind(k.Ke,this.Ek,this,o);this.Oc.bind(k.cM,this.CR,this,o);this.Oc.bind(k.Kb,this.t4,this,o)});r.prototype.clear=function(){this.dm();this.Na.unbind(j.Ke,this.Ek,this);this.Na.unbind(j.Zd,this.Gk,this,o);this.Na.unbind(j.Yd,
this.Fk,this,o);this.Na.clear();this.Na=q;this.ei.unbind(i.Ke,this.Ek,this,o);this.ei.clear();this.ei=q;this.Oc.unbind(k.Ke,this.Ek,this);this.Oc.unbind(k.cM,this.CR,this);this.Oc.unbind(k.Kb,this.t4,this);this.Oc.clear();this.H=this.Oc=q;this.g.unbind(c.pb,this.hb,this);g.unbind(c.$,this.wj,this,o);this.g=q;if(this.bc){this.bc.unbind(c.L("sequences"),this.DR,this,o);this.bc=q}this.II([])};r.prototype.end=function(){this.lp=l.K;this.dm();this.Na.$c(y);this.ei.$c(y);this.Oc.end();this.V=y;this.io(0,
0,0,0);this.Qz=this.qQ=q;if(this.bc){this.bc.unbind(c.L("sequences"),this.DR,this,o);this.bc=q}this.II([]);this.Dt()};r.prototype.start=function(a,b){this.lp=l.N;this.V=o;this.io(0,0,0,0);this.xB(a);this.Dma(b);this.u5();this.VI(this.Qz);this.ei.$c(o);this.Dt()};r.prototype.rg=Q("vf");r.prototype.play=function(){this.lp=l.N;this.Oc.rg()==l.Ac?this.Oc.play():this.Oc.rg()==l.K&&(this.Qz?this.VI(this.Qz):this.Rv()||this.LB());this.Dt()};r.prototype.Ata=function(){this.lp==l.Ac&&this.play()};r.prototype.pause=
function(){this.Na.ug(n.Dd);if(this.lp==l.N){this.lp=l.Ac;if(this.Oc.rg()==l.N){this.Oc.pause();this.Dt()}else this.Rv()&&this.dm()}};r.prototype.stop=function(){this.lp=l.K;this.Oc.rg()!=l.K&&this.Oc.end();this.Na.ug(n.Dd);this.Dt();this.Rv()&&this.dm()};r.prototype.moveTo=function(a,b,c,d,e){this.Na.moveTo(a,b,c,d,e)};r.prototype.II=function(a){this.RS.forEach(function(a){a.unbind(c.Lr,this.X5,this,o)}.bind(this));this.RS=a;this.RS.forEach(function(a){a.bind(c.Lr,this.X5,this,o)}.bind(this))};r.prototype.wj=
function(){this.H.VK(g.isPresenting())};r.prototype.ug=function(a){this.Na.ug(a)};r.prototype.YW=function(a,b,c){this.Na.YW(a,b,c)};r.prototype.FD=function(a){if(this.Kp!=a){this.Kp=a;this.Na.FD(this.Kp);this.ea()}};r.prototype.GD=function(a){this.Na.GD(a)};r.prototype.kr=function(a){this.Na.kr(a)};r.prototype.yu=function(a){this.Na.yu(a)};r.prototype.hr=function(a){this.Na.hr(a)};r.prototype.Mo=function(a){if(this.V)if(this.Na.Pc()||g.isPresenting()||this.Kp&&(this.Na.V||!this.Na.Gz)){this.Na.kL()&&
this.Oc.Wsa();this.Na.Ua(a);this.wh(this.Na.fl(),this.Na.el(),this.Na.Xq(),this.Na.Zt());this.ea()}else if(this.Oc.qq){this.Oc.$sa();this.ea()}else if(this.Oc.Pc()){this.Oc.Ua(a);this.wh(this.Oc.fl(),this.Oc.el(),0,this.Oc.Zt());this.ea()}else if(this.ei.Pc()){this.ei.Ua(a);this.wh(this.ei.fl(),this.ei.el(),0,this.ei.Zt());this.ea()}else if(this.JS){this.JS=y;this.jb.nl(this.g.le());this.H.ya(this.g.Eb(),this.g.Ib(),this.g.rd(),this.jb.le(),this.jb.Bo());this.wh(this.H.Eb(),this.H.Ib(),this.H.rd(),
this.H.Co());this.ea()}else{this.io(0,0,0,0);this.lp==l.N&&this.Oc.rg()==l.K&&(this.Rv()||this.LB())}};r.prototype.nc=function(){this.mpa();this.u5()};r.prototype.mpa=function(){var a=this.g.Eb()-this.Y||0,b=this.g.Ib()-this.ja||0,c=this.g.rd()-this.vb||0;this.io(a,b,c,this.g.le()-this.aa||0)};r.prototype.u5=function(){this.Y=this.g.Eb();this.ja=this.g.Ib();this.vb=this.g.rd();this.aa=this.g.le();this.Na.ya(this.Y,this.ja,this.vb,this.aa);this.Oc.ya(this.Y,this.ja,this.vb,this.aa);this.ei.ya(this.Y,
this.ja,this.vb,this.aa)};r.prototype.xB=function(a){this.H.vg(a)};r.prototype.Dma=function(a){this.bc=a;this.Mz=a.get("timeToIdle",5E3);this.qQ=a.get("idleSequence");this.Qz=a.get("initialSequence");this.Na.fr(a);this.ei.fr(a);a.bind(c.L("sequences"),this.DR,this,o);this.II(a.get("sequences",[]))};r.prototype.DR=function(){this.II(this.bc.get("sequences",[]))};r.prototype.X5=function(a){this.VI(a.source)};r.prototype.Ek=function(){this.dm();this.ea()};r.prototype.Gk=function(){this.trigger(new e(r.Zd))};
r.prototype.Fk=function(){this.trigger(new e(r.Yd))};r.prototype.VI=function(a){if(a){this.Na.$c(!a.get("mandatory",y));this.Oc.start(a)}else this.CR()};r.prototype.CR=function(){this.Na.$c(o);this.LB()};r.prototype.t4=function(){this.Dt()};r.prototype.hb=function(){this.JS=o;this.ea()};r.prototype.Rv=function(){return this.fi!=q};r.prototype.LB=function(){this.dm();var a=this;this.fi=setTimeout(function(){a.fi=q;a.tR()},this.Mz)};r.prototype.dm=function(){if(this.fi){clearTimeout(this.fi);this.fi=
q}};r.prototype.tR=function(){this.VI(this.qQ)};r.prototype.ea=function(){this.trigger(new e(r.Ca))};r.prototype.wh=function(a,b,c,d){this.g.ya(a,b,c,d)};r.prototype.io=function(a,b,c,d){var c=y,f=Math.abs(a)<0.001&&Math.abs(b)<0.001&&Math.abs(d)<0.001;if(f||this.Kp){c=this.Bi!=o;this.pm=this.om=this.tA=this.wA=this.vA=this.uA=y;this.Bi=o}else{if(this.uA!=a<-0.001){this.uA=!this.uA;c=o}if(this.vA!=a>0.001){this.vA=!this.vA;c=o}if(this.tA!=b<-0.001){this.tA=!this.tA;c=o}if(this.wA!=b>0.001){this.wA=
!this.wA;c=o}if(this.om!=d<-0.001){this.om=!this.om;c=o}if(this.pm!=d>0.001){this.pm=!this.pm;c=o}if(this.Bi!=f){this.Bi=!this.Bi;c=o}}f||this.trigger(new e(r.ak,{yaw:this.Y,pitch:this.ja,roll:this.vb,hfov:this.aa}));if(c){(this.V||this.Bi)&&this.trigger(new e(r.wg,{movingLeft:this.uA,movingRight:this.vA,movingUp:this.wA,movingDown:this.tA,zoomingIn:this.om,zoomingOut:this.pm,stopped:this.Bi}));this.Dt()}};r.prototype.Dt=function(){var a;if(this.V){a=this.Oc.rg();if(!this.Bi)a=l.N}else a=l.K;if(this.vf!=
a){this.vf=a;this.trigger(new e(r.Kb,{state:this.vf}))}};r.Ca="request frame";r.wg="movement change";r.ak="position change";r.Kb="playback state change";r.Zd="user interaction start";r.Yd="user interaction end";return r});
define("eL","require,kd,fU,u,fq,iB,bj,js".split(","),function(a){function b(a,d,e){this.g=a;this.jb=d;this.Qw=e;this.H=new c(a);e.Ti&&this.H.vg(e.Ti);this.ho=new c(a);this.Vv=this.Jn=m;this.Y=this.g.Eb();this.ja=this.g.Ib();this.vb=this.g.rd();this.aa=this.Qw.Ti?this.g.le():b.EX;this.R6=0;this.J=q;this.J2=o}a("kd");var c=a("fU");a("u");var e=a("fq"),d=a("iB"),f=a("bj"),i=a("js");b.prototype.vg=function(a){if(this.J!=a){this.oq=o;this.J=a}};b.prototype.wu=function(a,b){this.Y=a;this.ja=b};b.prototype.nx=
function(a){this.jb.Laa(a);return this.jb.le()};b.prototype.nl=N("aa");b.prototype.KD=N("J2");b.prototype.xu=N("R6");b.prototype.Mo=function(){if(this.jb.s$())this.aa=this.jb.UJ(this.aa);if(this.Qw.Jb()){var a=f.zm().orientation,a=i.nX(a);this.Y=this.Y+(this.Jn===m?0:a.ra-this.Jn);this.Jn=a.ra;this.ja=a.pitch;this.vb=a.ld;this.ja=k===m?a.pitch:k;this.vb=j===m?a.ld:j}else if(this.Qw.Nra()){var a=e.Cm(),b=this.rt(a.yaw,this.Y);this.Y=this.Y+(this.Jn===m?0:b-this.Jn);this.ja=this.ja+(this.Vv===m?0:a.pitch-
this.Vv);this.vb=a.roll;this.Jn=a.yaw;this.Vv=a.pitch}else{a=this.rt(this.g.Eb(),this.Y);b=this.g.Ib();this.Y=this.Y+(this.Jn===m?0:a-this.Jn);this.ja=this.ja+(this.Vv===m?0:b-this.Vv);this.vb=this.g.rd();this.Jn=this.Y;this.Vv=this.ja}this.oq&&this.H.vg(this.J);this.H.VK(f.isPresenting());this.H.ya(this.Y,this.ja,this.vb,this.aa,this.jb.Bo());if(this.oq){this.oq=y;if(this.Qw&&this.Qw.Ti)if(a=this.g.Af(this.Qw.Ti)){a.set("deltaYaw",this.g.Eb()-this.H.Eb());a.set("deltaPitch",this.g.Ib()-this.H.Ib());
a.set("deltaRoll",this.g.rd()-this.H.rd())}}this.Y=this.H.Eb();this.ja=this.H.Ib();this.vb=this.H.rd();this.aa=this.J2?this.H.Co():this.aa;this.g.ya(this.Y,this.ja,this.vb,this.aa);this.g.xu(this.R6)};b.prototype.SK=function(a,b){this.ho.vg(a);this.ho.ya(0,0,0,b,this.jb.Bo());return this.ho.Co()};b.prototype.Cta=function(a,b){this.ho.vg(a);this.ho.ya(b.ra,b.pitch,b.ld,b.Zc,this.jb.Bo());b.ra=this.ho.Eb();b.pitch=this.ho.Ib();b.ld=this.ho.rd();b.Zc=this.ho.Co()};b.prototype.rt=function(a,b){for(;a+
180<b;)a=a+360;for(;a-180>b;)a=a-360;return a};b.prototype.S8=function(){return b.EX};b.EX=TDV.PY.Hba;var j=d.sg("debug")?d.kK("force_vr_roll"):m,k=d.sg("debug")?d.kK("force_vr_pitch"):m;return b});
define("ks","require,dx,eF,ix,u,bj".split(","),function(a){function b(a,c,f,g){this.g=a;a=this.g.D;this.pX=a.get("transitionMode","blending");var i=a.get("transitionDuration",500);if(this.ria(c,f)){this.pX=b.pE;i=1500}this.E8=a.get("blendingTransitionDuration",i);this.Rqa=a.get("firstTransitionDuration",i);this.Cqa=a.get("disolveTransitionDuration",i);this.lva=a.get("translationTransitionDuration",1E3);this.mva=a.get("translationTransitionEnabled",o);this.M$=a.get("originTransitionDuration",3E3);
this.mL=1E3;this.Ti=c;this.Zua=!c||c.m$();this.Qc=f;this.gva=!f||f.l$();this.iX=!f||f.m$();this.fva=!!f&&this.JQ(f);a=(this.hX=g)&&g.get("initialPosition")||new e;this.Hh=new e;this.Hh.set("yaw",a.get("yaw",0));this.Hh.set("pitch",a.get("pitch"));this.Hh.set("hfov",a.get("hfov"));this.gd=new d;this.gd.set("yaw",this.Hh.get("yaw"));this.gd.set("pitch",this.Hh.get("pitch"));this.gd.set("hfov",this.Hh.get("hfov"));this.gd.set("stereographicFactor",0);this.Oj=[];if(!c){this.Oj=g&&g.get("displayMovements")||
[];for(a=this.Oj.length-1;a>=0;a--){this.gd.set("yaw",this.gd.get("yaw",this.Oj[a].get("targetYaw")));this.gd.set("pitch",this.gd.get("pitch",this.Oj[a].get("targetPitch")));this.gd.set("hfov",this.gd.get("hfov",this.Oj[a].get("targethfov")));this.gd.set("stereographicFactor",this.gd.get("stereographicFactor",this.Oj[a].get("stereographicFactor")))}g=g&&g.get("displayOriginPosition")||this.Hh;this.gd.set("yaw",g.get("yaw"));this.gd.set("pitch",g.get("pitch"));this.gd.set("hfov",g.get("hfov"));this.gd.set("stereographicFactor",
g.get("stereographicFactor"))}this.mode=(this.VD=this.pX==b.ul&&this.mva&&this.gva?this.bia(c,f):q)?b.dZ:c?f?this.pX=="blending"?b.ul:b.pE:b.XX:b.WX;if(this.mode==b.ul&&(!this.Zua||!this.iX))if(this.gd.get("stereographicFactor",0)>0||this.Oj.filter(function(a){return a.get("targetStereographicFactor",0)>0}).length>0)this.mode=b.pE}var c=a("dx"),e=a("eF"),d=a("ix"),f=a("u"),i=a("bj");b.prototype.Nra=function(){return this.g.Bb.get("gyroscopeEnabled")};b.prototype.Jb=function(){return i.isPresenting()};
b.prototype.bia=function(a,b){if(!a||!b)return q;var c=(a.get("adjacentPanoramas")||[]).filter(function(a){return a.get("enabled")&&a.cqa()&&a.get("panorama")==b});return c.length==0?q:c[0]};b.prototype.ria=function(a,b){return this.Jb()&&f.sd()==f.Ph&&(this.JQ(a)||this.JQ(b))};b.prototype.JQ=function(a){a=(a=a&&a.get("frames"))&&a.length>0&&a[0].get("sphere");return!(!a||!c.sb("Video360Resource",a))};b.pE="fade_out_fade_in";b.WX="fade_in";b.XX="fade_out";b.ul="blending";b.dZ="translation";return b});
define("o",["require"],function(){function a(a,c,e,d){this.p=a;this.ab=c;this.g=e;this.Q=d}a.prototype.Ki=R(y);a.prototype.Uj=E();a.prototype.kD=R(y);return a});
define("in",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o"),e=a("jP"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc){if(!this.O){var b=this.g.Af(this.Q.Qc);b.Mj();b.set("alpha",0.01);this.O=new e("linear",[new d("alpha",0,1,m)],this.Q.E8)}this.O.Ua(a);a=this.O.nb("alpha");b=this.g.Af(this.Q.Qc);b.set("alpha",a);this.O.me()&&(this.lc=o)}};return a});
define("it",["require","eD","o"],function(a){var b=a("eD"),c=a("o"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i);this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(){this.lc||(this.xq(),this.lc=o)};a.prototype.xq=E();return a});
define("fp",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.xq=function(){this.Q.Qc&&!this.g.Af(this.Q.Qc)&&(this.Be=this.g.create(this.Q.Qc),this.Be.set("alpha",0),this.g.add(this.Be))};return a});define("fr",["require","eD","it","ie"],function(a){var b=a("eD"),c=a("it"),e=a("ie"),a=b.extend(c,function(a,b,e,j){c.call(this,a,b,e,j)});a.prototype.xq=function(){this.Q.fva&&e.yW(this.g.Pa())};return a});
define("dA",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o");Ease=a("jP");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",0,1,m)],this.g.D.xva()?this.Q.Rqa:this.Q.E8)),this.O.Ua(a),a=this.O.nb("alpha"),this.g.Af(this.Q.Qc).set("alpha",a),this.O.me()))this.lc=o};return a});
define("bs",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o");Ease=a("jP");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",1,0,m)],this.Q.Cqa)),this.O.Ua(a),a=this.O.nb("alpha"),this.g.Af(this.Q.Ti).set("alpha",a),this.O.me()))this.lc=o};return a});
define("bH",["require","eD","o","jP","bq"],function(a){function b(a,b,c){for(;a<b;)a+=c-b;for(;a>c;)a-=c-b;return a}var c=a("eD"),e=a("o"),d=a("jP"),f=a("bq"),a=c.extend(e,function(a,b,c,d){e.call(this,a,b,c,d);this.O=q;this.lc=y;this.cH=0});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc&&(this.O||(this.O=this.cH<this.Q.Oj.length?this.Bfa(this.cH):this.ofa()),this.O.Ua(a),this.ab.wu(this.O.nb("yaw"),this.O.nb("pitch")),this.ab.nl(this.O.nb("hfov")),this.ab.xu(this.O.nb("stereographicFactor")),
this.O.me()))this.O=q,this.cH++,this.cH>this.Q.Oj.length&&(this.ab.KD(o),this.lc=o)};a.prototype.ofa=function(){var a=b(this.g.Eb(),-180,180),c=this.g.Ib();this.g.rd();var e=this.g.le(),n=this.g.k.Mh,g=this.Q.Hh.get("hfov"),g={ra:this.Q.Hh.get("yaw"),pitch:this.Q.Hh.get("pitch",c),ld:this.g.rd(),Zc:g?this.ab.nx(g):e,Mh:0};this.ab.Cta(this.Q.Qc,g);g.ra=b(g.ra,a-180,a+180);var l=0.5<Math.abs(e-g.Zc),r=Math.abs(n-g.Mh),p=0.01<r,l=this.Q.Jb()?1:Math.max(l?this.Q.mL:1,p?this.Q.M$*r:1);return new d(p?"linear":
"cubic_in_out",[new f("yaw",a,g.ra,m),new f("pitch",c,g.pitch,m),new f("hfov",e,g.Zc,m),new f("stereographicFactor",n,g.Mh,m)],l)};a.prototype.Bfa=function(a){var c=this.Q.Oj[a],e=b(this.g.Eb(),-180,180),n=this.g.Ib();this.g.rd();var g=this.g.le(),l=this.g.k.Mh,r=c.get("targetStereographicFactor",l),p=c.get("targetHfov");if(p)p=this.ab.nx(p);else{for(p=y;a<this.Q.Oj.length&&!p;a++)p=this.Q.Oj[a].get("targetHfov")!==m;p?p=g:(p=this.ab.nx(this.Q.Hh.get("hfov",this.ab.S8())),p=g+(p-g)*(l-r))}var a=c.get("targetYaw",
e),s=c.get("targetPitch",n);this.g.rd();switch(c.get("path")){case "left":a=b(a,e-360,e);break;case "right":a=b(a,e,e+360);break;case "longest":a=b(a,-360,360);a=a>=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,s,c.get("pitchSpeed")),new f("hfov",g,p,c.get("hfovSpeed")),new f("stereographicFactor",l,r,c.get("stereographicFactorSpeed"))],c.get("duration"))};return a});
define("dY",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o"),e=a("jP"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc){if(!this.O){var b=this.g.Ib(),c=this.g.le(),k=this.g.k.Mh,n=this.Q.gd.get("stereographicFactor",0),g=Math.abs(k-n),l=0<n?this.Q.gd.get("pitch",b):b,r=this.Q.gd.get("hfov"),r=r?this.ab.nx(r):c;0==n&&(r=Math.min(c,this.ab.SK(this.Q.Qc,r)));this.ab.KD(y);g=this.Q.Jb()?1:
Math.max(0.5<Math.abs(c-r)?this.Q.mL:1,0.01<g?this.Q.M$:1);this.O=new e("cubic_in_out",[new d("hfov",c,r,m),new d("pitch",b,l,m),new d("stereographicFactor",k,n,m)],g)}this.O.Ua(a);this.ab.nl(this.O.nb("hfov"));this.ab.xu(this.O.nb("stereographicFactor"));this.ab.wu(this.g.Eb(),this.O.nb("pitch"));this.O.me()&&(this.ab.vg(this.Q.Qc),this.ab.wu(this.Q.gd.get("yaw"),this.Q.gd.get("pitch",this.g.Ib())),this.lc=o)}};return a});
define("dh",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.xq=function(){this.g.remove(this.g.Af(this.Q.Ti))};return a});
define("r",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.xq=function(){this.ab.vg(this.Q.Qc);this.ab.wu(this.Q.Hh.get("yaw"),this.Q.Hh.get("pitch",this.g.Ib()));var a=this.Q.Hh.get("hfov");a&&(a=this.ab.nx(a),this.ab.nl(a))};return a});
define("eY",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.xq=function(){this.ab.vg(this.Q.Qc);this.ab.xu(this.Q.iX?this.Q.gd.get("stereographicFactor",0):0);this.ab.wu(this.Q.gd.get("yaw"),this.Q.gd.get("pitch",this.g.Ib()));var a=this.Q.gd.get("hfov");!a&&!this.Q.Ti&&(a=this.ab.S8());a&&(a=this.ab.nx(a),this.ab.nl(a),this.ab.KD(!this.Q.iX))};return a});
define("ep",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.xq=function(){this.ab.vg(this.Q.Qc);this.ab.nl(this.ab.SK(this.Q.Qc,this.g.le()));this.ab.wu(this.g.Eb()+this.Q.VD.i9(),this.g.Ib())};a.prototype.kD=R(o);return a});
define("jW",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o"),e=a("jP"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc){if(!this.O){var b=this.g.le(),c=this.ab.SK(this.Q.Qc,b),k=!this.Q.Jb()&&0.01<Math.abs(b-c)?this.Q.mL:1;this.O=new e("cubic_in_out",[new d("hfov",b,c,m)],k)}this.O.Ua(a);this.ab.nl(this.O.nb("hfov"));this.O.me()&&(this.ab.KD(o),this.lc=o)}};return a});
define("dR",["require","eD","o","jP","bq"],function(a){var b=a("eD"),c=a("o"),e=a("jP"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=q;this.lc=y});a.prototype.Ki=Q("lc");a.prototype.Uj=function(a){if(!this.lc){if(!this.O){var b=this.g.le(),c=Math.min(this.ab.SK(this.Q.Qc,b),b),k=!this.Q.Jb()&&0.01<Math.abs(b-c)?this.Q.mL:1;this.O=new e("cubic_in_out",[new d("hfov",b,c,m)],k);this.ab.KD(y)}this.O.Ua(a);this.ab.nl(this.O.nb("hfov"));this.O.me()&&(this.ab.vg(this.Q.Qc),this.ab.wu(this.g.Eb()+
this.Q.VD.i9(),this.g.Ib()),this.lc=o)}};a.prototype.kD=R(o);return a});
define("bk",["require","eD","o","u"],function(a){var b=a("eD"),c=a("o"),e=a("u"),a=b.extend(c,function(a,b,e,j){c.call(this,a,b,e,j);this.k="not initialized";this.Aa=0});a.prototype.Ki=function(){return"ended"==this.k};a.prototype.Uj=function(a){this.Ki()||("not initialized"==this.k&&this.Rz(),"initialized"==this.k&&(this.Xk.get("ready")||this.Xk.NV())&&this.zna(),"started"==this.k&&this.G(a),1<=this.Aa&&this.tz())};a.prototype.Rz=function(){this.X4=this.Q.lva;this.Ty=0.25;this.Yda=0.75;this.wla=
0.25;this.q7=this.cia();this.bN=0.5*this.X4;this.Loa=this.X4-2*this.bN;this.lA=1/(this.bN+this.Loa);this.QE=this.lA/this.bN;this.jo=0;this.Xk=this.g.Af(this.Q.Qc);this.oT=this.g.Af(this.Q.Ti);this.Cv=this.Q.VD.jra();this.k="initialized"};a.prototype.cia=function(){var a=this.Q.VD.get("distance");return a?Math.min(0.99,a/this.Q.Ti.get("distanceToFloor")):0.75};a.prototype.zna=function(){this.g.Naa(!this.Q.Jb()&&e.browser()!=e.Wi);this.Xk.Mj();this.k="started"};a.prototype.G=function(a){this.Xk.get("ready")||
this.Aa<this.wla?this.Aa>=1-0.5*this.jo*this.jo/this.QE?this.jo=Math.sqrt(2*(1-this.Aa)*this.QE):this.jo<this.lA&&(this.jo=Math.min(this.jo+this.QE*a,this.lA)):this.jo=Math.max(this.jo-this.QE*a,0);this.Aa=Math.min(Math.max(0,this.Aa+this.jo*a),1);this.Xk.get("ready")||(this.Ty=Math.max(this.Ty,this.Aa));this.gpa(this.Aa,Math.max(0,Math.min(1,(this.Aa-this.Ty)/(this.Yda-this.Ty))))};a.prototype.tz=function(){this.Xk.set("alpha",1);this.g.Naa(y);this.k="ended"};a.prototype.gpa=function(a,b){var c=
(a-1)*this.q7;this.Xk.set("translationX",c*this.Cv.x);this.Xk.set("translationY",c*this.Cv.y);this.Xk.set("translationZ",c*this.Cv.z);this.Xk.get("ready");c=a*this.q7;this.oT.set("translationX",c*this.Cv.x);this.oT.set("translationY",c*this.Cv.y);this.oT.set("translationZ",c*this.Cv.z);this.Xk.set("alpha",Math.max(0.01,Math.min(0.99,b)))};a.prototype.kD=function(){return this.Aa<this.Ty};return a});
define("gk",["require","eD","it"],function(a){var b=a("eD"),c=a("it"),a=b.extend(c,function(a,b,f,i,j){c.call(this,a,b,f,i);this.sea=j});a.prototype.xq=function(){this.sea.call(this.p)};return a});define("ej",["require","eD","o"],function(a){var b=a("eD"),c=a("o"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i)});a.prototype.Ki=function(){var a=this.g.Pa(),b=a&&a.Zw,a=a&&a.$v;return!!b&&!b.get("visible")&&!!a&&!a.get("visible")};return a});
define("E",["require","eD","o"],function(a){var b=a("eD"),c=a("o"),a=b.extend(c,function(a,b,f,i){c.call(this,a,b,f,i);this.iI=q});a.prototype.Ki=function(){this.iI||(this.iI=this.Q.Qc&&this.g.Af(this.Q.Qc));return this.iI&&this.iI.get("ready")};a.prototype.kD=R(o);return a});
define("kl","require,bS,em,eL,ks,in,fp,fr,dA,bs,bH,dY,dh,r,eY,ep,jW,dR,bk,gk,ej,E,eD".split(","),function(a){var b=a("bS"),c=a("em"),e=a("eL"),d=a("ks"),f=a("in"),i=a("fp"),j=a("fr"),k=a("dA"),n=a("bs"),g=a("bH"),l=a("dY"),r=a("dh"),p=a("r"),s=a("eY"),t=a("ep"),u=a("jW"),v=a("dR"),x=a("bk"),w=a("gk"),A=a("ej"),C=a("E"),B=a("eD").extend(c,function(a,b,d){c.call(this);this.D=a;this.g=b;this.jb=d;this.ab=q;this.L0=this.Il=this.bB=this.Wn=m;this.Q=q;this.ke=[]});B.prototype.clear=function(){this.CS(this.Il);
this.Q&&this.CS(this.Q.Qc);this.bB=this.Wn=m;this.H=this.jb=this.g=this.D=this.Q=q};B.prototype.start=function(a,b){if(!this.Q&&a==this.Il||this.Q&&a==this.Q.Qc)this.bB=this.Wn=m;else{this.Wn=a;this.bB=b;this.ke.length==0&&this.XI()}};B.prototype.hide=function(){this.Wn=q;!this.Q&&this.Il&&this.XI()};B.prototype.fra=function(){return this.Q&&this.Q.Qc};B.prototype.XI=function(){this.Q=new d(this.g,this.Il,this.Wn,this.bB);this.ab=new e(this.g,this.jb,this.Q);this.bB=this.Wn=m;this.Fb(i);switch(this.Q.mode){case d.XX:this.rc(this.dC);
this.Fb(n);this.rc(this.cC);this.Fb(r);this.rc(this.Bt);break;case d.WX:this.rc(this.lJ);this.Fb(C);this.Fb(j);this.Fb(s);this.rc(this.Sw);this.Fb(k);this.Fb(A);this.Fb(g);this.rc(this.kJ);break;case d.pE:this.rc(this.lJ);this.rc(this.dC);this.Fb(n);this.rc(this.cC);this.Fb(r);this.rc(this.Bt);this.Fb(C);this.Fb(j);this.Fb(s);this.rc(this.Sw);this.Fb(k);this.Fb(A);this.Fb(g);this.rc(this.kJ);break;case d.dZ:this.rc(this.lJ);this.rc(this.dC);this.rc(this.cC);if(this.Q.Jb()){this.Fb(t);this.rc(this.Sw);
this.Fb(x);this.Fb(r);this.rc(this.Bt)}else{this.Fb(v);this.rc(this.Sw);this.Fb(x);this.Fb(r);this.rc(this.Bt);this.Fb(u);this.Fb(j);this.Fb(A)}this.rc(this.kJ);break;case d.ul:this.rc(this.lJ);this.Fb(C);if(this.Q.Jb()){this.rc(this.dC);this.rc(this.cC);this.Fb(p);this.rc(this.Sw);this.Fb(f);this.Fb(r);this.rc(this.Bt)}else{this.rc(this.dC);this.rc(this.cC);this.Fb(l);this.rc(this.Sw);this.Fb(f);this.Fb(r);this.rc(this.Bt);this.Fb(j);this.Fb(A);this.Fb(g)}this.rc(this.kJ)}this.ea()};B.prototype.NT=
function(){this.Il=this.Q.Qc;this.L0=this.Q.hX;this.Q=this.ab=q;this.Wn===m?this.Il?this.roa(this.Il,this.L0):this.soa():this.XI()};B.prototype.Mo=function(a){for(;this.ke.length;){var b=this.ke[0];if(this.Wn!==m&&this.Wn!==this.Il&&b.kD()){this.CS(this.Q.Qc);this.ke=[];this.XI();break}else{b.Uj(a);this.ea();this.ab.Mo(a);if(b.Ki()){this.ke.shift();this.ke.length==0&&this.NT()}else break}}};B.prototype.nc=E();B.prototype.Fb=function(a){this.ke.push(new a(this,this.ab,this.g,this.Q))};B.prototype.rc=
function(a){this.ke.push(new w(this,this.ab,this.g,this.Q,a))};B.prototype.CS=function(a){if(a)if(a=this.g.Af(a)){this.g.remove(a);this.Bt()}};B.prototype.lJ=function(){this.trigger(new b(B.bM,{panorama:this.Q.Qc}))};B.prototype.Bt=function(){this.trigger(new b(B.UL,{panorama:this.Q?this.Q.Ti:this.Il}))};B.prototype.dC=function(){this.trigger(new b(B.Br,{panorama:this.Q.Ti}))};B.prototype.cC=function(){this.trigger(new b(B.Ar,{panorama:this.Q.Ti,nextPanorama:this.Q.Qc}))};B.prototype.kJ=function(){this.trigger(new b(B.Cr,
{panorama:this.Q.Qc,camera:this.Q.hX}))};B.prototype.Sw=function(){this.trigger(new b(B.Dr,{panorama:this.Q.Qc,camera:this.Q.hX}))};B.prototype.roa=function(a,c){this.trigger(new b(B.FL,{panorama:a,camera:c}))};B.prototype.soa=function(){this.trigger(new b(B.GL))};B.prototype.ea=function(){this.trigger(new b(B.Ca))};B.Ca="request frame";B.bM="request load";B.UL="panorama removed";B.FL="all pending panoramas displayed";B.GL="all pending panoramas hidden";B.Ar="panorama end";B.Dr="panorama start";B.Cr=
"panorama show";B.Br="panorama hide";return B});
define("hJ",["require","eD","bS","em"],function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=b.extend(e,function(a){e.call(this);this.g=a});d.prototype.clear=function(){this.end();this.g=q};d.prototype.Ix=function(a){for(var b=this.fG(a),c=a.lK(),d=0;d<b;d++)this.g.Af(this.HP(a,d)).set("alpha",d==c?1:0)};d.prototype.getTime=R(0);d.prototype.start=E();d.prototype.end=E();d.prototype.play=E();d.prototype.pause=E();d.prototype.Qx=E();d.prototype.Yx=E();d.prototype.dL=E();d.prototype.stop=E();d.prototype.vu=
E();d.prototype.gr=E();d.prototype.lL=E();d.prototype.nc=E();d.prototype.rg=E();d.prototype.fG=function(a){return a.get("frames").length};d.prototype.HP=function(a,b){return a.get("frames")[b]};d.prototype.ea=function(){this.trigger(new c(d.Ca))};d.prototype.$k=function(a,b,e,k,n,g){this.trigger(new c(d.Xi,{time:a,duration:b,transitionPosition:e,transitionLength:k,steps:n,selectedStep:g}))};d.prototype.og=function(){this.trigger(new c(d.Kb,{state:this.rg()}))};d.Ca="request frame";d.Jba="frame display";
d.Kba="frame hide";d.Xi="time change";d.Kb="playback state change";return d});
define("bf","require,jquery.mod,cV,eD,kd,fB,bS,hJ,eH,dD,iB,bj,hn".split(","),function(a){a("jquery.mod");var b=a("cV"),c=a("eD"),e=a("kd"),d=a("fB");a("bS");var f=a("hJ"),i=a("eH"),j=a("dD");a("iB");var k=a("bj"),n=a("hn"),g=c.extend(f,function(a){f.call(this,a);this.aG=q;this.tP=this.Bs=0;this.J=this.Qs=q;this.wz=m;this.hS=y;this.aa=360;this.k8=180;this.ja=0.5;this.tj=0.2;this.Mn=0.45;this.N2=5E3;this.R2=1;this.ZG=[[0.5,0.25],[0.5,0.375],[0.25,0.5],[0.375,0.5],[0.5,0.5],[0.625,0.5],[0.75,0.5],[0.5,
0.625],[0.5,0.75]];this.qja=[0.05,0.1,0.05,0.1,0.4,0.1,0.05,0.1,0.05]});g.prototype.Ix=function(a){f.prototype.Ix.call(this,a);this.xB(a)};g.prototype.start=function(a){this.xB(a);this.ea()};g.prototype.end=function(){this.xB(q)};g.prototype.xB=function(a){if(this.J!=a){if(this.J){this.Ioa();this.J=q;this.Moa()}if(this.J=a){this.Vda();this.aa=a.get("hfov",360);this.k8=a.get("vfov",180);this.ja=a.get("pitch",0);this.mS=this.it=m;this.ija(a);this.Aa=0.5}}};g.prototype.lL=function(){this.hS=y};g.prototype.vu=
function(a){this.Aa=a/g.Ey;this.ea();this.hS=o};g.prototype.gr=function(a){this.vu(a)};g.prototype.$k=function(){var a=this.fG(this.J),b=this.Aa*(a-1),c=Math.max(0,Math.min(a-2,Math.floor(b))),d=m;b-c<0.01?d=c:b-c>0.99&&(d=c+1);f.prototype.$k.call(this,this.Aa*g.Ey,g.Ey,this.Aa*g.Ey,g.Ey,a,d)};g.prototype.nc=function(a){if(this.J){var b=this.g.Eb(),c=this.g.Ib(),d=this.g.rd(),e=0;if(this.it!==m&&this.mS!==m&&this.i5!==m)var f=b-this.it,g=c-this.mS,n=d-this.i5,e=Math.sqrt(f*f+g*g+n*n)*1E3/a;this.it=
b;this.mS=c;this.i5=d;for(var f=this.fG(this.J),w=this.Aa*(f-1),g=Math.max(0,Math.min(f-2,Math.floor(w))),n=g+1,w=1-(w-g),A=1-w,C=[],B=0;B<f;B++)C.push(0);C[n]=A;C[g]=A<1?1:0;for(B=0;B<f;B++)this.g.Af(this.HP(this.J,B)).set("alpha",C[B]);this.$k();if(this.aG&&(e<=this.R2||k.isPresenting())&&!this.hS){var B=Math.PI/180,e=180/Math.PI,C=this.g.ua(),G=this.g.Za(),z=new j;z.Qo(-d*B);z.Lm(-c*B);z.Po(-b*B);b=[];for(B=0;B<this.ZG.length;B++){d=this.g.unproject(new i(this.ZG[B][0]*C,this.ZG[B][1]*G,0)).E9();
d.apply(z);c=d.Eb()*e;d=d.Ib()*e;b.push(Math.round((90-d)*this.tP/180)*this.Bs+Math.round((c+180)*this.Bs/360))}c=[];for(B=0;B<f;B++){d=this.aG[B];for(C=e=0;C<this.ZG.length;C++)e=e+this.qja[C]*d[b[C]];c.push(e)}B=c[g];b=c[n];g=w*c[g]+A*c[n];a=Math.min(1/f,a/this.N2);f=this.Aa;n=Math.max.apply(Math,c);w=Math.min.apply(Math,c);g<this.tj&&g<n?f=b>g?f+a:f-a:g>this.Mn&&g>w&&(f=B<g?f-a:f+a);f=Math.min(1,Math.max(0,f));if(this.Aa!=f){this.Aa=f;this.ea()}}}};g.prototype.ija=function(a){var c=b(a.get("frames",
[])).map(function(a){return a.get("thumbnailUrl")});this.Qs=b(c).map(function(a){var b=q;if(a){b=new n(d.$i);b.bind(e.T,this.W3,this);b.bind(e.xd,this.X3,this)}return b},this);b(this.Qs).each(function(a,b){a&&a.load(c[b])})};g.prototype.Moa=function(){this.H0();this.aG=q};g.prototype.Yja=function(){this.Bs=150;this.Qs.map(function(a){if(a)this.Bs=Math.min(a.Fc()*360/this.aa,this.Bs)},this);this.tP=Math.round(this.Bs/2);this.aG=this.Qs.map(function(a){return this.xfa(a,this.Bs,this.tP,this.aa,this.k8,
this.ja)},this);this.H0()};g.prototype.xfa=function(a,b,c,d,e,f){var g=document.createElement("canvas");g.width=b;g.height=c;var j=g.getContext("2d");j.fillStyle="#000000";j.fillRect(0,0,b,c);if(a){a=a.Bd();d=Math.round(b*d/360);j.drawImage(a,(b-d)*0.5,Math.round(c*(90-(f+e*0.5))/180),d,Math.round(c*e/180))}b=[];g=j.getImageData(0,0,g.width,g.height);for(c=j=0;j<g.height;j++)for(e=0;e<g.width;e++,c=c+4)b.push((0.299*g.data[c]+0.587*g.data[c+1]+0.114*g.data[c+2])/255);return b};g.prototype.H0=function(){b(this.Qs).each(function(a){if(a){a.unbind(e.T,
this.W3,this);a.unbind(e.xd,this.X3,this);a.cancel()}},this);this.Qs=q};g.prototype.W3=function(){b(this.Qs).filter(function(a){return a&&!a.Go()}).length==0&&this.Yja()};g.prototype.X3=E();g.prototype.Vda=function(){this.J.bind(e.L("minimumLuminance"),this.Sn,this);this.J.bind(e.L("maximumLuminance"),this.Sn,this);this.J.bind(e.L("luminanceChangeTime"),this.Sn,this);this.J.bind(e.L("maxLuminanceChangeSpeed"),this.Sn,this);this.Sn()};g.prototype.Ioa=function(){this.J.unbind(e.L("minimumLuminance"),
this.Sn,this);this.J.unbind(e.L("maximumLuminance"),this.Sn,this);this.J.unbind(e.L("luminanceChangeTime"),this.Sn,this);this.J.unbind(e.L("maxLuminanceChangeSpeed"),this.Sn,this)};g.prototype.Sn=function(){this.tj=this.J.get("minimumLuminance");this.Mn=this.J.get("maximumLuminance");if(this.tj==m&&this.Mn==m){this.tj=0.2;this.Mn=0.45}else this.tj==m?this.tj=Math.min(0.2,this.Mn):this.tj==m?this.Mn=Math.max(0.45,this.tj):this.tj=Math.min(this.tj,this.Mn);this.Mn=Math.min(1,Math.max(0,this.Mn));this.tj=
Math.min(1,Math.max(0,this.tj));this.N2=Math.max(100,this.J.get("luminanceChangeTime",5E3));this.R2=this.J.get("maxLuminanceChangeSpeed",1);this.ea()};g.Ey=1E3;return g});
define("jn",["require","eD","x","eQ","hJ"],function(a){var b=a("eD"),c=a("x"),e=a("eQ"),d=a("hJ"),a=b.extend(d,function(a){d.call(this,a);this.ZF=this.$F=q;this.ag=this.Re=5E3;this.ec=m;this.Ob=this.Re;this.kj=1;this.J=q;this.Ks=y});a.prototype.start=function(a){this.J=a;this.Ks=y;this.zG=o;this.$F=c.watch(this.J,"frameDisplayTime",this.ZT,this);this.ZF=c.watch(this.J,"frameTransitionTime",this.ZT,this);this.kj=this.fG(this.J);this.ec=this.J.lK()*(this.Re+this.ag);this.ZT(o);this.$k();this.ea();this.og()};
a.prototype.ZT=function(a){var b=Math.max(100,this.J.get("frameDisplayTime",5E3)),c=Math.max(100,this.J.get("frameTransitionTime",5E3));if(this.Re!=b||this.ag!=c||a){var a=this.Iv(),d=this.fha();this.CP();this.Re=b;this.ag=c;1<this.kj?(this.ec=a*(this.Re+this.ag)+d*this.Re+d*this.ag,this.Ob=this.kj*(this.Re+this.ag)):(this.ec=d*this.Re,this.Ob=this.Re)}};a.prototype.Iv=function(){return 1<this.kj?Math.floor(this.ec/(this.Re+this.ag)):0};a.prototype.gha=function(){return 1<this.kj?(this.Iv()+1)%this.kj:
0};a.prototype.fha=function(){return 1<this.kj?Math.max(0,Math.min(1,this.ec-this.Iv()*(this.Re+this.ag))):this.ec/this.Re};a.prototype.CP=function(){return 1<this.kj?Math.max(0,Math.min(1,(this.ec-(this.Iv()*(this.Re+this.ag)+this.Re))/this.ag)):0};a.prototype.Pna=function(a){var b=Math.floor(a/this.ag);return b*(this.Re+this.ag)+this.Re+(a-b*this.ag)};a.prototype.h7=function(a){var b=Math.floor(a/(this.Re+this.ag)),a=Math.max(0,a-b*(this.Re+this.ag)-this.Re);return b*this.ag+a};a.prototype.play=
function(){this.Ks&&(this.Ks=y,this.zG&&this.ea(),this.og())};a.prototype.pause=function(){this.Ks=o;this.og()};a.prototype.Qx=function(){this.pause()};a.prototype.Yx=function(){this.play()};a.prototype.end=function(){this.zG=y;this.J=q;this.$F&&(this.$F.unwatch(),this.$F=q);this.ZF&&(this.ZF.unwatch(),this.ZF=q);this.og()};a.prototype.vu=function(a){this.ec=a;this.ea()};a.prototype.gr=function(a){this.ec=this.Pna(a);this.ea();this.pause()};a.prototype.nc=function(a){if(this.zG){this.Ks||(this.ec+=
a);this.ec%=this.Ob;for(var a=this.Iv(),b=this.gha(),c=this.CP(),d=b>a?c:1,c=b>a?1:1-c,e=0;e<this.kj;e++){var g;g=e==a?c:e==b?d:0;var l=this.g.Af(this.HP(this.J,e));l.get("alpha")!=g&&(0<g&&1>g&&l.Mj(),l.set("alpha",g))}this.$k();this.Ks||this.ea()}};a.prototype.rg=function(){return this.zG?this.Ks?e.Ac:e.N:e.K};a.prototype.og=function(){d.prototype.og.call(this,this.rg())};a.prototype.$k=function(){var a=this.ec,b=this.Ob,c=this.h7(this.ec),e=this.h7(this.Ob),n=this.kj+1,g=0===this.CP()?this.Iv():
m;d.prototype.$k.call(this,a,b,c,e,n,g)};return a});define("bu",["require","eD","hJ"],function(a){var b=a("eD"),c=a("hJ");return b.extend(c,function(a){c.call(this,a)})});
define("iH",["require","eD","kd","eQ","hJ"],function(a){var b=a("eD"),c=a("kd"),e=a("eQ"),d=a("hJ"),a=b.extend(d,function(a){d.call(this,a);this.Jd=y});a.prototype.Ix=E();a.prototype.start=function(a){this.end();this.J=a;this.J.set("mute",this.Jd);this.J.set("state",e.N);this.cn()};a.prototype.getTime=function(){return this.J?this.J.get("currentTime"):0};a.prototype.rg=function(){return this.J?this.J.get("state"):e.K};a.prototype.play=function(){this.J&&this.J.set("state",e.N)};a.prototype.pause=
function(){this.J&&this.J.set("state",e.Ac)};a.prototype.dL=function(){this.J&&this.J.set("state",e.Ac)};a.prototype.stop=function(){this.J&&this.J.set("state",e.K)};a.prototype.end=function(){this.J&&(this.eo(),this.J=q)};a.prototype.vu=function(a){this.J&&this.J.set("state",e.N);this.J&&this.J.set("currentTime",a)};a.prototype.Tf=function(a){this.Jd=a;this.J&&this.J.set("mute",this.Jd)};a.prototype.cn=function(){this.J.bind(c.L("currentTime"),this.Ye,this,o);this.J.bind(c.L("duration"),this.cw,
this,o);this.J.bind(c.L("state"),this.Fg,this,o);this.J.get("state")!=e.K&&this.og()};a.prototype.eo=function(){this.J.unbind(c.L("currentTime"),this.Ye,this,o);this.J.unbind(c.L("duration"),this.cw,this,o);this.J.unbind(c.L("state"),this.Fg,this,o)};a.prototype.Fg=function(){this.og()};a.prototype.Ye=function(){this.$k()};a.prototype.cw=function(){this.$k()};a.prototype.$k=function(){this.J&&d.prototype.$k.call(this,this.J.get("currentTime"),this.J.get("duration"))};return a});
define("w","require,eD,eQ,bS,em,dx,hJ,bf,jn,bu,iH".split(","),function(a){var b=a("eD");a("eQ");var c=a("bS"),e=a("em"),d=a("dx"),f=a("hJ"),i=a("bf"),j=a("jn"),k=a("bu"),n=a("iH"),g=b.extend(e,function(a){e.call(this);this.g=a;this.WQ=this.DF(j);this.eQ=this.DF(i);this.DJ=this.DF(n);this.sT=this.DF(k);this.Vb=q});g.prototype.clear=function(){this.uF(this.WQ);this.WQ=q;this.uF(this.eQ);this.eQ=q;this.uF(this.DJ);this.DJ=q;this.uF(this.sT);this.g=this.Vb=this.sT=q};g.prototype.DF=function(a){a=new a(this.g);
a.bind(f.Ca,this.Cc,this,o);a.bind(f.Xi,this.lq,this,o);a.bind(f.Kb,this.Ud,this,o);return a};g.prototype.uF=function(a){a.unbind(f.Ca,this.Cc,this);a.unbind(f.Xi,this.lq,this);a.unbind(f.Kb,this.Ud,this);a.clear()};g.prototype.HQ=function(a,b){return d.sb(b,a)};g.prototype.w1=function(a){return this.HQ(a,"HDRPanorama")?this.eQ:this.HQ(a,"LivePanorama")?this.WQ:this.HQ(a,"VideoPanorama")?this.DJ:this.sT};g.prototype.Ix=function(a){(this.Vb=this.w1(a))&&this.Vb.Ix(a)};g.prototype.start=function(a){this.Cc();
(this.Vb=this.w1(a))&&this.Vb.start(a)};g.prototype.rg=function(){if(this.Vb)return this.Vb.rg()};g.prototype.getTime=function(){return this.Vb?this.Vb.getTime():0};g.prototype.play=function(){this.Vb&&this.Vb.play()};g.prototype.pause=function(){this.Vb&&this.Vb.pause()};g.prototype.Qx=function(){this.Vb&&this.Vb.Qx()};g.prototype.Yx=function(){this.Vb&&this.Vb.Yx()};g.prototype.dL=function(){this.Vb&&this.Vb.dL()};g.prototype.stop=function(){this.Vb&&this.Vb.stop();this.trigger(new c(g.Xi,{duration:0,
time:0,steps:m,selectedStep:m}))};g.prototype.end=function(){if(this.Vb){this.Vb.end();this.Vb=q}};g.prototype.vu=function(a){this.Vb&&this.Vb.vu(a)};g.prototype.gr=function(a){this.Vb&&this.Vb.gr(a)};g.prototype.lL=function(){this.Vb&&this.Vb.lL()};g.prototype.nc=function(a){this.Vb&&this.Vb.nc(a)};g.prototype.Tf=function(a){this.DJ.Tf(a)};g.prototype.Cc=function(){this.trigger(new c(g.Ca))};g.prototype.lq=function(a){this.trigger(new c(g.Xi,a.data))};g.prototype.Ud=function(a){this.trigger(new c(g.Kb,
a.data))};g.Ca="request frame";g.Jba="frame display";g.Kba="frame hide";g.Xi="time change";g.Kb="playback state change";return g});
define("iI",["require","eD","kd","em","hT"],function(a){var b=a("eD"),c=a("kd"),e=a("em"),d=a("hT"),a=b.extend(e,function(a){e.call(this);this.g=a;this.Be=this.J=q});a.prototype.start=function(a){this.J=a;this.Be=this.g.Af(this.J);this.Be.bind(c.T,this.uf,this,o);this.Be.bind(c.ic,this.pi,this,o);this.Be.get("ready")?this.trigger(c.Ub,{panorama:this.J}):this.Be.bind(c.Ub,this.qH,this,o);this.Be.set("loadingActive",o)};a.prototype.stop=function(){this.J=q;this.Be&&(this.Be.unbind(c.Ub,this.qH,this),
this.Be.unbind(c.T,this.uf,this),this.Be.unbind(c.ic,this.pi,this),this.Be.set("loadingActive",y),this.Be=q,this.trigger(c.Dd))};a.prototype.clear=function(){this.stop()};a.prototype.qH=function(){this.Be.unbind(c.Ub,this.qH,this);this.trigger(c.Ub,{panorama:this.J})};a.prototype.uf=function(){this.Be.unbind(c.Ub,this.qH,this);this.Be.unbind(c.T,this.uf,this);this.Be.unbind(c.ic,this.pi,this);this.Be=q;this.trigger(c.T,{panorama:this.J});this.J=q;this.trigger(c.Dd)};a.prototype.pi=function(a){this.trigger(new d(c.ic,
a.Ih))};return a});
define("gR","require,eD,kd,bS,em,I".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("I"),i=b.extend(d,function(a){d.call(this);this.g=a;this.xk=this.J=this.tf=q;this.ja=this.Y=0;this.aa=Math.PI*0.5});i.prototype.clear=function(){this.stop();this.A5();this.tf=this.g=q};i.prototype.RW=function(a){if(this.tf!=a){this.A5();this.xF();this.tf=a;this.a_();this.nda()}};i.prototype.nda=function(){this.tf&&this.tf.bind(c.L("map"),this.Y3,this,y)};i.prototype.A5=function(){this.tf&&this.tf.unbind(c.L("map"),
this.Y3,this,y)};i.prototype.stop=function(){this.xF();this.J=q};i.prototype.nc=function(){this.Y=this.g.Eb();this.ja=this.g.Ib();this.aa=this.g.le();this.tf&&this.xk&&this.tf.Qi(this.xk,this.Y,this.ja,this.aa)};i.prototype.Y3=function(){if(this.J){this.xF();(this.xk=this.T5(this.J,this.tf.get("map",q),y))&&this.F6()}};i.prototype.display=function(a){if(this.J!=a){this.xF();this.J=a;this.a_()}};i.prototype.hide=function(a){this.J==a&&this.stop()};i.prototype.xF=function(){if(this.xk){this.nia();this.xk=
q}};i.prototype.a_=function(){if(this.tf&&this.J)(this.xk=this.T5(this.J,this.tf.get("map",q),o))&&this.F6()};i.prototype.T5=function(a,b,c){for(var a=a.get("mapLocations",[]),d=0;d<a.length;d++){var e=a[d];if(e.get("map")==b)return e}return c&&a.length>0?a[0]:q};i.prototype.F6=function(){this.tf.Vpa(this.xk);this.tf.bind(f.xg,this.H5,this,o);this.tf.Qi(this.xk,this.Y,this.ja,this.aa)};i.prototype.nia=function(){if(this.tf){this.tf.tta(this.xk);this.tf.unbind(f.xg,this.H5,this)}};i.prototype.H5=function(a){this.trigger(new e(i.xg,
{yawDelta:a.data.yawDelta}))};i.xg="request yaw change";return i});
define("dS",["require","eD","bS","em","ds"],function(a){var b=a("eD"),c=a("bS"),e=a("em"),d=a("ds"),f=b.extend(e,function(a){e.call(this);this.g=a;this.g.bind(d.aM,this.p4,this,o)});f.prototype.clear=function(){this.g.unbind(d.aM,this.p4,this,o);this.g=q};f.prototype.Ha=function(){this.g.Ha()};f.prototype.p4=function(a){a=a.data.frameTime;this.trigger(new c(f.bk,{frameTime:a}));this.trigger(new c(f.ck,{frameTime:a}))};f.bk="frameStart";f.ck="positionSet";return f});
define("fT",["require","u","hC"],function(a){function b(){this.da=this.W=0;this.aa=90;this.oh="landscape";this.IR=y;this.Tz=c.Qa()}var c=a("u"),e=a("hC");b.prototype.Laa=function(a){this.aa=this.c9(a)};b.prototype.c9=function(a){return this.Tz&&"portrait"==this.oh?e.Pt(a,this.da,this.W):a};b.prototype.sra=function(a){return this.Tz&&"portrait"==this.oh?e.Qj(a,this.W,this.da):a};b.prototype.nl=function(a){return this.aa=this.Tz&&this.IR?e.Pt(a,this.da,this.W):a};b.prototype.s$=function(){return this.Tz&&
this.IR};b.prototype.Bo=function(){return this.Tz&&"portrait"==this.oh};b.prototype.le=Q("aa");b.prototype.UJ=function(a){return e.Pt(a,this.da,this.W)};b.prototype.setSize=function(a,b){this.W=a;this.da=b;var c=this.Fha();this.IR=this.oh!=c;this.oh=c};b.prototype.Fha=function(){return 0===this.W||0===this.da?"landscape":this.W<this.da?"portrait":"landscape"};return b});
define("jC",["require","eD","ft","bS","em"],function(a){var b=a("eD"),c=a("ft"),e=a("bS"),d=a("em"),f=b.extend(d,function(a){d.call(this);this.g=a;this.V=y;this.In=this.In.bind(this);this.Bb=this.g.Bb});f.prototype.clear=function(){this.Bb=this.g=q};f.prototype.$c=function(a){this.V!=a&&(this.V&&document.removeEventListener("keyup",this.In),(this.V=a)&&document.addEventListener("keyup",this.In))};f.prototype.In=function(a){"translate"==this.Bb.get("arrowKeysAction")&&(a.which==c.jE&&!a.shiftKey?this.trigger(new e(f.SL)):
a.which==c.IE&&!a.shiftKey&&this.trigger(new e(f.TL)))};f.TL="moveForward";f.SL="moveBackward";return f});
define("gc","require,cV,eD,kd,bS,em,jC".split(","),function(a){a("cV");var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("jC"),a=b.extend(d,function(a){d.call(this);this.g=a;this.gi=new f(a);this.gi.bind(f.TL,this.N3,this,o);this.gi.bind(f.SL,this.M3,this,o)});a.prototype.clear=function(){this.gi.unbind(f.TL,this.N3,this,o);this.gi.unbind(f.SL,this.M3,this,o);this.gi.clear();this.gi=q};a.prototype.hr=function(a){this.gi.$c(a)};a.prototype.vg=N("J");a.prototype.end=function(){this.J=q};a.prototype.N3=
function(a){this.D7(a);(a=this.S5(this.g.Eb(),this.I1()))&&a.trigger(c.Uh)};a.prototype.M3=function(a){this.D7(a);(a=this.S5(this.g.Eb()-180,this.I1()))&&a.trigger(c.Uh)};a.prototype.D7=function(a){this.g.Pa().trigger(new e(c.nE,{$aa:a}))};a.prototype.I1=function(){return this.g.Bb.get("keyboardTranslateSelectionAngle")};a.prototype.S5=function(a,b){var c,d;if(!this.J)return q;c!==m||(c=-90);d!==m||(d=360);var e=a-b*0.5,f=a+b*0.5,i=Math.max(-90,c-d*0.5),s=Math.max(90,c+d*0.5);d=this.J.get("adjacentPanoramas",
[]).slice();d=d.filter(function(b){if(!b.get("enabled"))return y;b=this.Cz(b);if(!b)return y;var c;c=b.ra;for(var d=a-180,g=a+180;c<d;)c=c+(g-d);for(;c>g;)c=c-(g-d);b=b.pitch;return e<=c&&c<=f&&i<=b&&b<=s}.bind(this));if(d.length==0)return q;d.sort(function(b,d){var e=this.Cz(b),f=this.Cz(d);return(a-e.ra)*(a-e.ra)+(c-e.pitch)*(c-e.pitch)-((a-f.ra)*(a-f.ra)+(c-f.pitch)*(c-f.pitch))}.bind(this));return d[0]};a.prototype.Cz=function(a){var b=a.get("yaw"),a=a.get("distance");if(b===m||a===m)return q;
var c=this.J.get("distanceToFloor");return{ra:b,pitch:-90+Math.atan2(a,c)*i}};var i=180/Math.PI;return a});
define("ih","require,eD,kd,bS,em,co,bh,kl,w,iI,gR,dS,fT,gc,cG".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("co"),i=a("bh"),j=a("kl"),k=a("w"),n=a("iI"),g=a("gR"),l=a("dS"),r=a("fT"),p=a("gc"),s=a("cG"),t=b.extend(d,function(a,b){d.call(this);this.D=a;this.g=b;this.g.set("visible",y);this.jb=new r;this.Ld=new l(this.g);this.Id=new n(this.g);this.Ka=new j(this.D,this.g,this.jb);this.ha=new i(this.g,this.jb);this.bd=new k(this.g);this.Nn=new g(this.g);this.Ed=new f(this.g);
this.jJ=new p(this.g);this.Ld.bind(l.bk,this.jq,this,o);this.Ld.bind(l.ck,this.kq,this,o);this.Id.bind(c.Ub,this.U3,this,o);this.Id.bind(c.Dd,this.AA,this,o);this.Id.bind(c.ic,this.Qn,this,o);this.Ka.bind(j.Ca,this.Cc,this,o);this.Ka.bind(j.bM,this.V3,this,o);this.Ka.bind(j.UL,this.c4,this,o);this.Ka.bind(j.FL,this.n3,this,o);this.Ka.bind(j.GL,this.o3,this,o);this.Ka.bind(j.Dr,this.IA,this,o);this.Ka.bind(j.Br,this.iq,this,o);this.Ka.bind(j.Cr,this.Tn,this,o);this.Ka.bind(j.Ar,this.HA,this,o);this.ha.bind(i.Ca,
this.Cc,this,o);this.ha.bind(i.wg,this.Ck,this);this.ha.bind(i.ak,this.k4,this);this.ha.bind(i.Kb,this.Ud,this,o);this.ha.bind(i.Zd,this.Gk,this,o);this.ha.bind(i.Yd,this.Fk,this,o);this.bd.bind(k.Ca,this.Cc,this,o);this.bd.bind(k.Xi,this.lq,this,o);this.bd.bind(k.Kb,this.Ud,this,o);this.Nn.bind(g.xg,this.a4,this,o)});t.prototype.clear=function(){this.Id.clear();this.Ld.clear();this.ha.clear();this.Ka.clear();this.bd.clear();this.Nn.clear();this.Ed.clear();this.Id.unbind(c.Ub,this.U3,this);this.Id.unbind(c.Dd,
this.AA,this);this.Id.unbind(c.ic,this.Qn,this);this.Ld.unbind(l.bk,this.jq,this);this.Ld.unbind(l.ck,this.kq,this);this.Ka.unbind(j.Ca,this.Cc,this);this.Ka.unbind(j.bM,this.V3,this);this.Ka.unbind(j.UL,this.c4,this);this.Ka.unbind(j.FL,this.n3,this);this.Ka.unbind(j.GL,this.o3,this);this.Ka.unbind(j.Dr,this.IA,this);this.Ka.unbind(j.Br,this.iq,this);this.Ka.unbind(j.Cr,this.Tn,this);this.Ka.unbind(j.Ar,this.HA,this);this.ha.unbind(i.Nba,this.Cc,this);this.ha.unbind(i.wg,this.Ck,this);this.ha.unbind(i.ak,
this.k4,this);this.ha.unbind(i.Kb,this.Ud,this,o);this.ha.unbind(i.Zd,this.Gk,this);this.ha.unbind(i.Yd,this.Fk,this);this.bd.unbind(k.Ca,this.Cc,this);this.bd.unbind(k.Xi,this.lq,this);this.bd.unbind(k.Kb,this.Ud,this);this.Nn.unbind(g.xg,this.a4,this);this.D=this.g=this.jJ=this.Ed=this.Nn=this.bd=this.Ka=this.ha=this.Ld=this.Id=q};t.prototype.RW=function(a){this.Nn.RW(a)};t.prototype.vg=function(a,b,c){this.g.set("visible",o);this.bd.dL();a.set("currentTime",c);this.Ka.start(a,b)};t.prototype.zx=
function(){return this.Id.J||this.Ka.fra()||this.Ka.Il};t.prototype.su=function(){this.Id.stop();this.bd.end();this.ha.end();this.Ka.hide();this.Nn.stop();this.Ed.end();this.jJ.end()};t.prototype.Yx=function(){this.ha.Ata();this.bd.Yx()};t.prototype.Qx=function(){this.ha.pause();this.bd.Qx()};t.prototype.play=function(){this.ha.play();this.Ed.play();this.bd.play()};t.prototype.pause=function(){this.ha.pause();this.Ed.pause();this.bd.pause()};t.prototype.stop=function(){this.ha.stop();this.Ed.stop();
this.bd.stop()};t.prototype.hr=function(a){this.ha.hr(a);this.jJ.hr(a)};t.prototype.getTime=function(){return this.bd.getTime()};t.prototype.moveTo=function(a,b,c,d,e){this.ha.moveTo(a,b,c,d,e)};t.prototype.Eb=function(){return this.g?this.g.Eb():m};t.prototype.Ib=function(){return this.g?this.g.Ib():m};t.prototype.rd=function(){return this.g?this.g.rd():m};t.prototype.le=function(){return this.g?this.jb.sra(this.g.le()):m};t.prototype.nV=function(){return this.g?this.g.nV():m};t.prototype.oV=function(){return this.g?
this.g.oV():m};t.prototype.Ud=function(){var a=this.bd.rg()||this.ha.rg();this.trigger(new e(t.Kb,{state:a}))};t.prototype.ug=function(a){this.ha.ug(a)};t.prototype.FD=function(a){this.ha.FD(a)};t.prototype.kr=function(a){this.ha.kr(a)};t.prototype.GD=function(a){this.ha.GD(a)};t.prototype.Tf=function(a){this.bd.Tf(a)};t.prototype.yu=function(a){this.ha.yu(a)};t.prototype.Fra=function(a,b){var c=s.get(a,b,this.g.Eb(),this.g.Ib(),this.g.rd(),this.g.le(),this.g.ua(),this.g.Za());return c?{x:c.x,y:c.y}:
q};t.prototype.xra=function(a,b){var c=s.wva(a,b,this.g);return c?{yaw:c.ra,pitch:c.pitch}:q};t.prototype.V3=function(a){this.Id.start(a.data.panorama)};t.prototype.Qn=function(a){this.g.TK(o);this.trigger(new e(t.wl,{percent:a.Ih}))};t.prototype.U3=function(a){this.bd.end();this.jJ.vg(a.data.panorama)};t.prototype.AA=function(){this.g.TK(y);this.trigger(new e(t.wr))};t.prototype.Cc=function(){this.Ld.Ha()};t.prototype.jq=function(a){a=a.data.frameTime;this.jb.setSize(this.g.ua(),this.g.Za());this.Ka.Mo(a);
this.ha.Mo(a)};t.prototype.kq=function(a){a=a.data.frameTime;this.Ka.nc(a);this.ha.nc(a);this.bd.nc(a);this.Nn.nc(a);this.Ed.nc(a)};t.prototype.IA=function(a){this.Nn.display(a.data.panorama);this.bd.Ix(a.data.panorama);this.trigger(new e(t.Dr,{panorama:a.data.panorama}))};t.prototype.c4=function(a){this.Nn.hide(a.data.panorama)};t.prototype.n3=function(a){this.bd.start(a.data.panorama);this.Ed.start(a.data.panorama)};t.prototype.o3=function(){this.bd.end();this.g.set("visible",y)};t.prototype.HA=
function(a){this.ha.end();this.Ed.end(a.data.nextPanorama);this.trigger(new e(t.Ar,{panorama:a.data.panorama}))};t.prototype.Tn=function(a){this.ha.start(a.data.panorama,a.data.camera);this.trigger(new e(t.Cr,{panorama:a.data.panorama}))};t.prototype.iq=function(a){this.trigger(new e(t.Br,{panorama:a.data.panorama}))};t.prototype.a4=function(a){this.ha.YW(a.data.yawDelta,0)};t.prototype.Ck=function(a){this.trigger(new e(t.wg,a.data))};t.prototype.k4=function(a){this.trigger(new e(t.ak,a.data))};t.prototype.Gk=
function(){this.bd.lL();this.trigger(new e(t.Zd))};t.prototype.Fk=function(){this.trigger(new e(t.Yd))};t.prototype.Caa=function(a){this.bd.vu(a)};t.prototype.gr=function(a){this.bd.gr(a)};t.prototype.lq=function(a){this.trigger(new e(t.Xi,a.data))};t.wl="loadingProgress";t.wr="loadingEnd";t.wg="movementChange";t.ak="positionChange";t.Dr="panoramaStart";t.Ar="panoramaEnd";t.Cr="panoramaShow";t.Br="panoramaHide";t.Kb="playbackStateChange";t.Zd="userInteractionStart";t.Yd="userInteractionEnd";t.Xi=
"timeChange";return t});
define("jR","require,cV,jquery.mod,eD,im,kd,bS,eQ,bW,dx,iV,cl,fW,fa,ih,cY,ds,fq,gf,bj,cU,eK".split(","),function(a){a("cV");a("jquery.mod");var b=a("eD");a("im");var c=a("kd"),e=a("bS"),d=a("eQ"),f=a("bW"),i=a("dx"),j=a("iV"),k=a("cl"),n=a("fW"),g=a("fa"),l=a("ih"),r=a("cY"),p=a("ds"),s=a("fq"),t=a("gf"),u=a("bj"),v=a("cU"),x=a("eK"),w=b.extend(n,function(){n.call(this,"panorama");n.prototype.set.call(this,"zoomEnabled",o);n.prototype.set.call(this,"surfaceSelectionEnabled",y);n.prototype.set.call(this,
"surfaceSelectionHorizontalAngle",90);n.prototype.set.call(this,"surfaceSelectionVerticalAngle",180);n.prototype.set.call(this,"adjacentPanoramaPositionsEnabled",y);n.prototype.set.call(this,"fxaaEnabled",y);n.prototype.set.call(this,"aaEnabled",y);this.BT=this.nQ=this.Jp=this.RG=this.ON=this.oq=this.Mg=this.pN=y;this.WP=o;this.ts=this.Sv=this.BF=y;this.bG=this.vP=this.ec=this.Ob=0;this.ZR=this.aS=m;this.jR=o;this.vf=d.K;this.p=this.g=q;this.b3={};for(var a in w.$m)this.b3[a]=this.Afa(a);this.eF=
new j(this,"buttonToggleGyroscope",v.Xg);this.eF.bind(c.Wf,function(){this.set("gyroscopeEnabled",o)},this);this.eF.bind(c.Wg,function(){this.set("gyroscopeEnabled",y)},this);this.eF.set("pressed",this.get("gyroscopeEnabled")&&s.available);this.aea=new j(this,"buttonCardboardView",v.Hc);this.aea.bind(c.U,function(){this.set("viewMode",w.jp)},this,o);this.oea=new j(this,"buttonVRView",v.Hc);this.oea.bind(c.U,function(){this.set("viewMode",w.jp)},this,o);u.bind(c.$,function(){this.B7("viewMode");this.trigger(w.UX)},
this,o);this.fF=new j(this,"buttonToggleHotspots",v.Xg);this.fF.bind(c.Wf,function(){this.set("hotspotsEnabled",o)},this);this.fF.bind(c.Wg,function(){this.set("hotspotsEnabled",y)},this);this.fF.set("pressed",this.get("hotspotsEnabled"));this.hF=new j(this,"buttonToggleSurfaceSelection",v.Xg);this.hF.bind(c.Wf,function(){this.set("surfaceSelectionEnabled",o)},this);this.hF.bind(c.Wg,function(){this.set("surfaceSelectionEnabled",y)},this);this.hF.set("pressed",this.get("surfaceSelectionEnabled"));
this.Tc=b.Jo(this.cf,this);this.set("arrowKeysAction","rotate");this.set("doubleClickAction","inherit");this.set("hotspotsEnabled",o);this.set("preloadEnabled",o);this.set("keyboardTranslateSelectionAngle",90)});w.MX="cameraPositionChange";w.Zd="userInteractionStart";w.Yd="userInteractionEnd";w.wl="loadingProgress";w.RX="preloadMediaShow";w.UX="viewModeChange";i.A("PanoramaPlayer",w).B("Object").R({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]]",
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"}).fc([c.zE,w.MX,w.wl,w.Zd,w.Yd,w.RX,w.UX,n.wd,k.kf,k.Vg]).Sg({moveLeft:function(){this.mb(r.Lu)},moveRight:function(){this.mb(r.Mu)},moveUp:function(){this.mb(r.Nu)},moveDown:function(){this.mb(r.Ku)},playLeft:function(){this.mb([r.Lu,r.N])},playRight:function(){this.mb([r.Mu,r.N])},playUp:function(){this.mb([r.Nu,r.N])},playDown:function(){this.mb([r.Ku,r.N])},play:function(){this.Ig()},pause:function(){this.Jk()},stop:function(){this.bt()},seek:function(a){this.uB(a)},
setFramePlaybackPosition:function(a){this.Nma(a)},setFrameTransitionPosition:function(a){this.Oma(a)},restart:function(){this.at()},zoomIn:function(){this.mb(r.Ym)},zoomOut:function(){this.mb(r.Zm)},resumeCamera:function(){this.Xla()},pauseCamera:function(){this.Uka()},moveTo:function(a,b,c,d){this.a3(a,b,c,d,y)},setPosition:function(a,b,c,d){this.a3(a,b,c,d,o)},getScreenPosition:function(a,b){return this.Tha(a,b)},getPanoramaPosition:function(a,b){return this.Gha(a,b)}});w.prototype.get=function(a,
b){switch(a){case "currentTime":return this.p&&this.p.getTime()||0;case "viewMode":return u.isPresenting()?w.jp:w.$M;case "video":a="panorama";break;case "rendererPanorama":return this.p&&this.p.zx()}if(!b)switch(a){case "mouseControlMode":b=f.iY;break;case "touchControlMode":b=f.cZ}return n.prototype.get.call(this,a,b)};w.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "application":this.pN=o;this.Tc();break;case "startTime":this.oq=o;this.Tc();break;case "video":case "panorama":a=
"panorama";this.oq=o;this.Tc();break;case "camera":this.ON=o;this.Tc();break;case "viewerArea":this.Mg=o;this.Tc();break;case "displayPlaybackBar":case "hdrPanoramaDisplayPlaybackBarSteps":case "livePanoramaDisplayPlaybackBarSteps":case "buttonPlay":case "buttonPlayPause":this.ts=o;this.Tc();break;case "mapPlayer":this.RG=o;this.Tc();break;case "gyroscopeEnabled":this.Jp=o;this.Tc();break;case "gyroscopeVerticalDraggingEnabled":this.WP=o;this.Tc();break;case "viewMode":if(b=="vr")b=w.jp;b==w.jp&&
!u.isPresenting()?u.Eh():b!=w.jp&&u.isPresenting()&&u.Pd();b=u.isPresenting()?w.jp:w.$M;break;case "hotspotsEnabled":this.nQ=o;this.Tc();break;case "mouseControlMode":case "touchControlMode":this.BF=o;this.Tc();break;case "surfaceSelectionEnabled":p.fba()||(b=y);this.BT=o;this.Tc()}n.prototype.set.call(this,a,b)}};w.prototype.pl=function(a){this.Sv=a;this.p&&this.p.hr(this.Sv)};w.prototype.L8=function(){return this.get("doubleClickAction")!="inherit"};w.prototype.GN=function(a){n.prototype.GN.call(this,
a);a.bind(c.yE,this.p8,this,o)};w.prototype.ST=function(a){n.prototype.ST.call(this,a);a.unbind(c.yE,this.p8,this,o)};w.prototype.p8=function(){switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.get("application").Kf;a&&a.available()&&a.toggle()}};w.prototype.Afa=function(a){var b=w.$m[a],a=new j(this,a,v.Hc);a.bind(c.ob,function(){this.mb(b.movement)},this);b.stopOnRelease&&a.bind(c.Lb,function(){this.mb(r.Dd)},this);return a};w.prototype.cf=function(){if(this.Mg||this.pN){this.Mg=
this.pN=y;this.BF=this.Jp=this.RG=o;this.ss();this.get("viewerArea")&&this.get("application")&&this.qs();this.LI(this.get("viewerArea"))}var a=y;if(this.g){if(this.RG){this.RG=y;this.p.RW(this.get("mapPlayer"))}if(this.BF){this.BF=y;this.p.kr(this.get("mouseControlMode"));this.p.yu(this.get("touchControlMode"))}if(this.oq||this.ON){this.bG=this.vP=this.Ob=this.ec=0;this.ZR=this.aS=m;a=o;this.ON=this.oq=y;if(this.get("panorama")){this.lI();this.p.vg(this.get("panorama"),this.get("camera",new g),this.get("startTime"))}else{this.p.su();
this.jR=o;this.vf=d.K;this.Pb(d.K)}}if(this.WP){this.WP=y;this.p.GD(this.get("gyroscopeVerticalDraggingEnabled",o))}if(this.Jp){this.Jp=y;var b=this.get("gyroscopeEnabled")&&s.available;if(b&&s.disabled){b=y;t.$X.show(function(){s.wW(function(){this.set("gyroscopeEnabled",o)}.bind(this))}.bind(this))}this.set("gyroscopeEnabled",b);this.p.FD(b);this.eF.set("pressed",b)}if(this.nQ){this.nQ=y;this.fF.set("pressed",this.get("hotspotsEnabled"))}if(this.ts){this.ts=y;a=o}if(this.BT){this.BT=y;this.hF.set("pressed",
this.get("surfaceSelectionEnabled"))}a&&this.rC()}};w.prototype.PB=function(){this.set("panorama",q)};w.prototype.qs=function(){var a=this.get("viewerArea"),b=this.get("application");this.g=new p(b,a,this);this.g.M({left:0,top:0,bottom:0,right:0});a.ia(this.g);this.p=new l(a,this.g);this.p.bind(l.wg,this.Ck,this);this.p.bind(l.ak,this.u3,this);this.p.bind(l.wl,this.Qn,this);this.p.bind(l.wr,this.fw,this);this.p.bind(l.Cr,this.Tn,this,o);this.p.bind(l.Br,this.iq,this,o);this.p.bind(l.Dr,this.IA,this,
o);this.p.bind(l.Ar,this.HA,this,o);this.p.bind(l.Kb,this.Ud,this);this.p.bind(l.Zd,this.Gk,this);this.p.bind(l.Yd,this.Fk,this);this.p.bind(l.Xi,this.lq,this);this.get("application").bind(c.L("mute"),this.GA,this);this.get("application").get("mute",y)&&this.p.Tf(o);this.p&&this.p.hr(this.Sv);u.bind(c.$,this.wj,this,o);this.lO();this.Gw(o)};w.prototype.ss=function(){if(this.g){this.p.unbind(l.wg,this.Ck,this);this.p.unbind(l.ak,this.u3,this);this.p.unbind(l.wl,this.Qn,this);this.p.unbind(l.wr,this.fw,
this);this.p.unbind(l.Cr,this.Tn,this,o);this.p.unbind(l.Br,this.iq,this,o);this.p.unbind(l.Dr,this.IA,this,o);this.p.unbind(l.Ar,this.HA,this,o);this.p.unbind(l.Kb,this.Ud,this);this.p.unbind(l.Zd,this.Gk,this);this.p.unbind(l.Yd,this.Fk,this);this.p.unbind(l.Xi,this.lq,this);this.p.clear();this.p=q;this.get("application").unbind(c.L("mute"),this.GA,this);this.g.getParent().removeChild(this.g);this.g=q;u.unbind(c.$,this.wj,this,o);this.Gw(y)}};w.prototype.GA=function(){this.g&&this.p.Tf(this.get("application").get("mute",
y))};w.prototype.Ud=function(a){this.vf=a.data.state;this.Wd()};w.prototype.Wd=function(){this.Pb(this.jR?this.vf:d.N)};w.prototype.Gk=function(){this.trigger(new e(w.Zd))};w.prototype.Fk=function(){this.trigger(new e(w.Yd))};w.prototype.IA=function(a){this.trigger(new e(w.RX,{panorama:a.data.panorama}))};w.prototype.HA=E();w.prototype.Tn=function(a){this.lO();this.XG(a.data.panorama)};w.prototype.iq=function(a){this.WG(a.data.panorama)};w.prototype.Ck=function(a){for(var b in w.$m)this.b3[b].set("state",
a.data[w.$m[b].pressedOn]?x.va:x.Gc);this.jR=a.data.stopped;this.Wd();this.trigger(new e(c.zE,a.data))};w.prototype.u3=function(a){this.lO();this.trigger(new e(w.MX,a.data))};w.prototype.lO=function(){if(this.p){this.set("yaw",this.p.Eb());this.set("pitch",this.p.Ib());this.set("roll",this.p.rd());this.set("hfov",this.p.le());this.set("actualHFOV",this.p.nV());this.set("actualVFOV",this.p.oV())}};w.prototype.Qn=function(a){this.g.getParent().M({progressPercent:a.data.percent,progressVisible:o});this.trigger(new e(w.wl,
a.data))};w.prototype.fw=function(){this.g.getParent().set("progressVisible",y)};w.prototype.wj=function(){this.set("viewMode",u.isPresenting()?w.jp:w.$M)};w.prototype.a3=function(a,b,c,d,e){this.p&&this.p.moveTo(a,b,c,d,e)};w.prototype.mb=function(a){this.p&&this.p.ug(a)};w.prototype.Ig=function(){this.p.play()};w.prototype.Gj=function(){this.p.stop()};w.prototype.Jk=function(){this.p.pause()};w.prototype.uB=function(a){this.p&&(this.z1()?this.p.gr(a):this.p.Caa(a))};w.prototype.Nma=function(a){this.p&&
this.p.Caa(a)};w.prototype.Oma=function(a){this.p&&this.p.gr(a)};w.prototype.Uka=function(){this.p&&this.p.Qx()};w.prototype.Xla=function(){this.p&&this.p.Yx()};w.prototype.Tha=function(a,b){if(this.p)return this.p.Fra(a,b)};w.prototype.Gha=function(a,b){if(this.p)return this.p.xra(a,b)};w.prototype.UH=function(a){this.uB(a.data.position)};w.prototype.lq=function(a){this.ec=a.data.time;this.Ob=a.data.duration;this.vP=a.data.transitionPosition;this.bG=a.data.transitionLength;this.aS=a.data.steps;this.ZR=
a.data.selectedStep;this.rC()};w.prototype.rC=function(){var a=this.g.getParent(),b=y;if(this.eha()){var c=this.z1(),d=this.Iha();if(c){if(this.bG>0){a.M({playbackBarPosition:this.vP,playbackBarDuration:this.bG,playbackBarSteps:this.aS,playbackBarSelectedStep:this.ZR,playbackBarLiveDragging:d});b=o}}else if(this.Ob>0){a.M({playbackBarPosition:this.ec,playbackBarDuration:this.Ob,playbackBarSteps:m,playbackBarSelectedStep:m,playbackBarLiveDragging:d});b=o}}a.set("playbackBarVisible",b)};w.prototype.eha=
function(){var a=this.get("panorama");return a?i.sb("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",y)):i.sb("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",y)):i.sb("VideoPanorama",a)?this.get("videoPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",o)):y:y};w.prototype.z1=function(){var a=this.get("panorama");return!a?y:i.sb("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBarSteps",o):i.sb("LivePanorama",
a)?this.get("livePanoramaDisplayPlaybackBarSteps",o):y};w.prototype.Iha=function(){var a=this.get("panorama");return!a||i.sb("VideoPanorama",a)?y:o};w.jp="cardboard";w.$M="standard";w.$m={buttonMoveLeft:{movement:r.Lu,pressedOn:"movingLeft",stopOnRelease:o},buttonMoveRight:{movement:r.Mu,pressedOn:"movingRight",stopOnRelease:o},buttonMoveUp:{movement:r.Nu,pressedOn:"movingUp",stopOnRelease:o},buttonMoveDown:{movement:r.Ku,pressedOn:"movingDown",stopOnRelease:o},buttonPlayLeft:{movement:[r.Lu,r.N],
pressedOn:"movingLeft",stopOnRelease:y},buttonPlayRight:{movement:[r.Mu,r.N],pressedOn:"movingRight",stopOnRelease:y},buttonPlayUp:{movement:[r.Nu,r.N],pressedOn:"movingUp",stopOnRelease:y},buttonPlayDown:{movement:[r.Ku,r.N],pressedOn:"movingDown",stopOnRelease:y},buttonZoomIn:{movement:r.Ym,pressedOn:"zoomingIn",stopOnRelease:o},buttonZoomOut:{movement:r.Zm,pressedOn:"zoomingOut",stopOnRelease:o}};return w});
define("bU","eD,bS,dx,cl,jR,cT".split(","),function(a,b,c,e,d,f){a=a.extend(f,function(){f.call(this)});c.A("PanoramaPlayListItem",a).B("PlayListItem").R({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.kf,this.Tn,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.kf,this.Tn,this);a.get("panorama")==
this.get("media")&&a.set("panorama",q)}f.prototype.stop.call(this)};a.prototype.Tn=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.kf,this.Tn,this);this.get("player").bind(e.Vg,this.iq,this);this.gx()}};a.prototype.iq=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.Vg,this.iq,this);this.end()}};return a});
define("hW",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaSnapshot",b).B("Object").R({position:"PanoramaCameraPosition",image:"ImageResource"});return b});define("jf",["eD","bL"],function(a,b){var c=a.extend(b,function(a,c,f,i){b.call(this);this.Qb=a;this.W=c;this.da=f;this.qP=i});c.prototype.Gm=function(){return[this.Qb]};c.prototype.Gh=Q("Qb");c.prototype.Fc=Q("W");c.prototype.qd=Q("da");return c});
define("dU","require,cV,eD,dx,db,ef,jf".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("dx"),d=a("db"),f=a("ef"),i=a("jf"),a=c.extend(d,function(){d.call(this);this.P=m});e.A("Photo",a).B("Media").R({audios:"array[PhotoAudio]",duration:"number",height:"number",image:"ImageResource",width:"number",flipImageHorizontally:"bool"});a.prototype.qg=function(){if(this.P==m){var a=this.get("image");this.P=a?new i(f.gl(a).get("url"),this.get("width"),this.get("height"),this.get("flipImageHorizontally",
y)):q}return this.P};a.prototype.Fo=function(){var a=this.gG(this.qg());b(this.get("audios",[])).each(function(b){a=a.concat(b.Fo())},this);return a};a.prototype.gG=function(a){return a?a.Gm():[]};return a});
define("gC",["cV","eD","kd","db","dx"],function(a,b,c,e,d){b=b.extend(e,function(){e.call(this);this.set("loop",y)});d.A("PhotoAlbum",b).B("Media").R({audios:"array[PhotoAlbumAudio]",loop:"bool",playList:"PhotoPlayList"}).fc([c.Ia]);b.prototype.Fo=function(){var b=[],c=this.get("playList");c&&a(c.get("items"),[]).each(function(a){(a=a.get("media"))&&(b=b.concat(a.Fo()))});a(this.get("audios",[])).each(function(a){b=b.concat(a.Fo())});return b};return b});
define("fM",["eD","dx","gh","gn"],function(a,b,c,e){a=a.extend(c,function(){c.call(this,e.lca)});b.A("PhotoAlbumAudio",a).B("MediaAudio");return a});
define("cj",["eQ"],function(a){function b(a){this.ej=a;this.WE=[];this.fj=[]}b.prototype.clear=function(){for(var a=0;a<this.WE.length;a++)this.WE[a].stop();this.fj=this.WE=q};b.prototype.stop=function(){for(var a=0;a<this.fj.length;a++)this.fj[a].stop()};b.prototype.play=function(){for(var b=0;b<this.fj.length;b++)this.fj[b].get("state")!=a.N&&this.fj[b].play()};b.prototype.pause=function(){for(var b=0;b<this.fj.length;b++)this.fj[b].get("state")==a.N&&this.fj[b].pause()};b.prototype.start=function(){this.stop();
for(var a=0;a<this.ej.length;a++){var b=this.ej[a],d=b.Xt();d&&(this.WE.push(d),b.get("autoplay",y)&&this.fj.push(d))}for(a=0;a<this.fj.length;a++)this.fj[a].play()};return b});define("fL",["eD","cj"],function(a,b){return a.extend(b,function(a){b.call(this,a.get("audios",[]));this.RH=a})});define("fe",["eD","cj"],function(a,b){return a.extend(b,function(a){b.call(this,a.get("audios",[]));this.Rc=a})});
define("gx",["fL","fe"],function(a,b){function c(){this.Bg=[];this.jg=[]}c.prototype.clear=function(){this.cba();this.jg=this.Bg=q};c.prototype.cba=function(){for(var a=0;a<this.Bg.length;a++)this.Bg[a].clear();for(a=0;a<this.jg.length;a++)this.jg[a].clear();this.Bg=[];this.jg=[]};c.prototype.pause=function(){for(var a=0;a<this.Bg.length;a++)this.Bg[a].pause();for(a=0;a<this.jg.length;a++)this.jg[a].pause()};c.prototype.play=function(){for(var a=0;a<this.Bg.length;a++)this.Bg[a].play();for(a=0;a<
this.jg.length;a++)this.jg[a].play()};c.prototype.stop=function(){for(var a=0;a<this.Bg.length;a++)this.Bg[a].stop();for(a=0;a<this.jg.length;a++)this.jg[a].clear();this.jg=[]};c.prototype.ava=function(b){b=new a(b);this.jg.push(b);b.start()};c.prototype.dva=function(a){for(var b=0;b<this.jg.length;b++)if(this.jg[b].RH==a){this.jg[b].clear();this.jg.splice(b,1);break}};c.prototype.eX=function(a){a=new b(a);this.Bg.push(a);a.start()};c.prototype.bva=function(a){for(var b=0;b<this.Bg.length;b++)if(this.Bg[b].Rc==
a){this.Bg[b].clear();this.Bg.splice(b,1);break}};return c});
define("m",["eD","iw"],function(a,b){function c(){this.Z=o;this.ca=this.ba=0.5;this.ma=1;this.cd=b.qe;this.Xh=this.Yh=100}c.prototype.getX=function(){this.Fi();return this.ba};c.prototype.getY=function(){this.Fi();return this.ca};c.prototype.il=function(){this.Fi();return this.ma};c.prototype.DD=function(a,b,c){this.cd=c;this.ca=this.ba=0.5;this.ma=1;this.Z=o};c.prototype.ya=function(a,b,c){this.ba=a;this.ca=b;this.ma=c;this.Z=o};c.prototype.setSize=function(a,b){this.Yh=a;this.Xh=b;this.Z=o};c.prototype.Fi=
function(){if(this.Z){this.Z=y;1>this.ma&&(this.ma=1);var a=Math.min(0.5/this.ma,0.5),b=Math.max(1-0.5/this.ma,0.5);this.ba<a?this.ba=a:this.ba>b&&(this.ba=b);a=Math.min(0.5/this.ma,0.5);b=Math.max(1-0.5/this.ma,0.5);this.ca<a?this.ca=a:this.ca>b&&(this.ca=b)}};return c});
define("bo",[],function(){function a(a,c){this.g=a;this.H=c;this.ca=this.ba=0.5;this.ma=1;this.oI=y}a.prototype.start=function(){this.ca=this.ba=0.5;this.ma=1;this.oI=o};a.prototype.clear=function(){this.H=this.g=q};a.prototype.ya=function(a,c,e){this.ba=a;this.ca=c;this.ma=e};a.prototype.Pc=Q("oI");a.prototype.Ua=function(){this.oI=y};return a});
define("fu",["eD","im","dx"],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").R({x:"number",y:"number",zoomFactor:"number"});return a});
define("i",["eD","bo","fu","jP","bq"],function(a,b,c,e,d){a=a.extend(b,function(a,c){b.call(this,a,c);this.O=q});a.prototype.start=function(a){var b=a.get("initialPosition",new c(0.5,0.5,1)),j=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),j.get("x",0.5)),new d("y",b.get("y",0.5),j.get("y",0.5)),new d("zoom",b.get("zoomFactor",1),j.get("zoomFactor",1))],a.get("duration",1E3));this.Ua(0)};a.prototype.clear=function(){this.O=q;b.prototype.clear.call(this)};
a.prototype.Pc=function(){return this.O!=q};a.prototype.Ua=function(a){this.O&&(this.O.Ua(a),this.H.ya(this.O.nb("x"),this.O.nb("y"),this.O.nb("zoom")),this.ba=this.H.getX(),this.ca=this.H.getY(),this.ma=this.H.il(),this.O.me()&&(this.O=q))};return a});
define("ca","eD,bS,em,dx,eQ,iw,m,bo,i,kd".split(","),function(a,b,c,e,d,f,i,j,k,n){var g=a.extend(c,function(a,b){c.call(this);this.g=a;this.Yb=b;this.g.bind(n.pb,this.hb,this);this.k=d.K;this.wi=this.RH=this.bc=this.P=q;this.H=new i});g.prototype.clear=function(){this.end();this.H=q;this.g.unbind(n.pb,this.hb,this);this.g=q};g.prototype.end=function(a){if(this.P==a||typeof a=="undefined"){this.I0();this.bc=this.RH=this.bc=this.P=q}};g.prototype.start=function(a){if(this.P!=a){this.end(this.P);var b=
a.get("media"),c=a.get("camera"),d=b.get("width",100),e=b.get("height",100),g=c?c.get("scaleMode",f.qe):f.qe;this.P=a;this.bc=c;this.RH=b;b.qg();this.V=o;this.H.DD(d,e,g);this.Cfa(c);this.ea()}};g.prototype.stop=function(){if(this.k!=d.K){this.k=d.K;if(this.wi){this.wi.start(this.bc);this.ea()}}};g.prototype.play=function(){if(this.k==d.K||this.k==d.Ac){this.k=d.N;this.ea()}};g.prototype.pause=function(){if(this.k==d.N)this.k=d.Ac};g.prototype.Mo=function(a){if(this.wi&&this.wi.Pc()){if(this.k==d.N){this.wi.Ua(a);
this.ea()}this.wh(this.wi.ba,this.wi.ca,this.wi.ma)}};g.prototype.Cfa=function(a){this.I0();this.wi=e.sb("MovementPhotoCamera",a)?new k(this.g,this.H):new j(this.g,this.H);this.wi.start(a)};g.prototype.I0=function(){if(this.wi){this.wi.clear();this.wi=q}};g.prototype.hb=function(){this.H.setSize(this.g.ua(),this.g.Za());this.ea()};g.prototype.ea=function(){this.trigger(new b(g.Ca))};g.prototype.wh=function(a,b,c){this.Yb.ya(this.P,a,b,c)};g.Ca="request frame";return g});
define("fG","require,cV,eD,bS,em,kd,fB,iw".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("bS"),d=a("em"),f=a("kd");a("fB");var i=a("iw"),j=c.extend(d,function(a,b){d.call(this);this.KB=[];this.D=a;this.g=b});j.prototype.iu=function(a){this.Ip(a).iu();return this};j.prototype.ud=function(a,b){this.Ip(a).ud(b);return this};j.prototype.Oi=function(a,b){this.Ip(a).Oi(b);return this};j.prototype.ya=function(a,b,c,d){this.Ip(a).ya(b,c,d);return this};j.prototype.Mj=function(a){this.Ip(a).Mj();return this};
j.prototype.stop=function(){this.U0(function(a){a.clear()});this.KB=[]};j.prototype.clear=function(){this.stop();this.g=this.D=this.KB=q};j.prototype.nc=function(){this.U0(function(a){a.update()})};j.prototype.Ip=function(a){var b=this.zga(a);if(!b){b=new k(a,this.g);b.bind(k.QY,this.eja,this);b.bind(k.OY,this.dja,this);this.KB.push(b)}return b};j.prototype.U0=function(a){b(this.KB).each(a,this)};j.prototype.zga=function(a){return b(this.KB).find(function(b){return b.getItem()==a})};j.prototype.eja=
function(){this.ea()};j.prototype.dja=function(a){this.trigger(new e(j.YL,{item:a.source.getItem()}))};j.prototype.ea=function(){this.trigger(new e(j.Ca))};j.Ca="request frame";j.YL="photo preload end";var k=c.extend(d,function(a,b){d.call(this);this.P=a;this.g=b;var c=a.get("camera");this.cd=c?c.get("scaleMode",i.qe):i.qe;this.Kg=a.get("media").qg();this.Kg.bind(f.T,this.uf,this);this.Kg.bind(f.xd,this.dq,this);this.X=k.Jy;this.ca=this.ba=0.5;this.ma=1;this.jk=0;this.fv=y;this.Td=0;this.Z=y});k.prototype.getItem=
Q("P");k.prototype.iu=function(){this.X==k.Jy?this.$H():this.z7()};k.prototype.ud=function(a){if(this.jk!=a){this.jk=a;this.Mc()}};k.prototype.Oi=function(a){if(this.Td!=a){this.Td=a;this.Mc()}};k.prototype.ya=function(a,b,c){if(this.ba!=a||this.ca!=b||this.ma!=c){this.ba=a;this.ca=b;this.ma=c;this.Mc()}};k.prototype.Mj=function(){if(!this.fv){this.fv=o;this.Mc()}};k.prototype.clear=function(){this.X==k.ME&&this.wq();(this.X==k.Gy||this.X==k.Iy||this.X==k.Hy)&&this.Lq();this.Kg.unbind(f.T,this.uf);
this.Kg.unbind(f.xd,this.dq);this.Kg=q};k.prototype.update=function(){if(this.Z){this.Z=y;if(this.Td>-1&&this.Td<1&&this.jk>0){this.X==k.Jy&&this.fA();this.X==k.Gy&&this.ada();if(this.X==k.ME){if(this.fv){this.g.ZU(this.Kg);this.fv=y}this.g.ol(this.Kg,this.jk);this.g.nua(this.Kg,this.Td);this.g.ID(this.Kg,this.ba,this.ca,this.ma)}}else{this.X==k.ME&&this.wq();(this.X==k.Gy||this.X==k.Hy)&&this.Lq()}}};k.prototype.Mc=function(){if(!this.Z){this.Z=o;this.Oa()}};k.prototype.Oa=function(){this.trigger(new e(k.QY))};
k.prototype.$H=function(){this.X=k.Iy;this.g.Im(this.Kg)};k.prototype.fA=function(){this.X=k.Hy;this.g.Im(this.Kg)};k.prototype.ada=function(){this.X=k.ME;this.g.UU(this.Kg);this.g.qua(this.Kg,this.cd)};k.prototype.wq=function(){this.X=k.Gy;this.g.removeItem(this.Kg)};k.prototype.Lq=function(){this.X=k.Jy;this.g.Nh(this.Kg)};k.prototype.uf=function(){if(this.X==k.Iy||this.X==k.Hy){var a=this.X==k.Iy;this.X=k.Gy;this.Mc();a&&this.z7()}};k.prototype.dq=function(){if(this.X==k.Iy||this.X==k.Hy)this.X=
k.Jy};k.prototype.z7=function(){this.trigger(new e(k.OY))};k.QY="requestUpdate";k.OY="preloadEnd";k.Jy="unloaded";k.Iy="preloading";k.Hy="loading";k.Gy="loaded";k.ME="added";return j});define("jh",[],function(){return{ul:"blending",Bl:"scroll"}});
define("bD","cV,eD,bS,em,kd,fG,jh".split(","),function(a,b,c,e,d,f,i){function j(b,c,d){this.Hi=b;this.item=c;this.mba=d;this.index=b&&c?a(b.get("playList").get("items")).indexOf(this.item):0;this.loaded=y}j.prototype.isEqual=function(a){return a&&a.Hi==this.Hi&&a.item==this.item};var k=b.extend(e,function(a,b,c){e.call(this);this.D=a;this.g=b;this.Yb=c;this.Yb.bind(f.YL,this.T4,this);this.$B=i.ul;this.X=k.Vu;this.md=new j(q,q,0);this.sn=this.Gg=this.te=q;this.aC=m;this.Cq=0});k.prototype.Mua=N("$B");
k.prototype.ZW=N("Cq");k.prototype.qX=function(a,b,c){this.Gg=q;a=new j(a,b,c);if(!a.isEqual(this.X==k.Vu?this.md:this.te)){this.Gg=a;this.d4()}};k.prototype.clear=function(){(this.X==k.PE||this.X==k.NE)&&this.trigger(new c(k.$o,{album:this.te.Hi,item:this.te.item}));this.X=k.Vu;this.g=this.D=this.sn=this.md=this.te=this.Gg=q;this.Yb.unbind(f.YL,this.T4,this);this.Yb=q};k.prototype.nc=function(a){if(this.X!=k.Vu){this.aC=this.aC+a;a=this.te.mba;a=this.aC>=a?1:this.aC/a;this.X==k.NE?this.apa(a):this.X==
k.OE?this.bpa(a):this.$B==i.ul?this.Toa(a):this.upa(a);a<1?this.ea():this.Av()}};k.prototype.apa=function(a){this.Yb.ud(this.te.item,a).Oi(this.te.item,0)};k.prototype.bpa=function(a){this.Yb.ud(this.md.item,1-a).Oi(this.md.item,0)};k.prototype.Toa=function(a){this.Yb.ud(this.te.item,Math.min(1,a*2)).Oi(this.te.item,0);this.Yb.ud(this.md.item,Math.min(1,(1-a)*2)).Oi(this.md.item,0)};k.prototype.upa=function(a){var b=this.md.Hi!=this.te.Hi||this.md.index<this.te.index;this.Yb.Oi(this.te.item,(b?1-
a:a-1)*(1+this.Cq)).ud(this.te.item,1);this.Yb.Oi(this.md.item,(b?-a:a)*(1+this.Cq)).ud(this.md.item,1)};k.prototype.d4=function(){this.Gg&&this.X==k.Vu&&(this.Gg.item&&!this.Gg.loaded?this.Yb.iu(this.Gg.item):this.mp())};k.prototype.T4=function(a){if(this.Gg&&this.Gg.item==a.data.item){this.Gg.loaded=o;this.d4()}};k.prototype.mp=function(){if(this.sn&&this.sn!=this.Gg.Hi){this.trigger(new c(k.Zj,{album:this.sn}));this.sn=q}this.trigger(new c(k.dM));if(this.D.get("transitionMode")=="fade_out_fade_in"&&
this.Gg.item!=q&&this.md.item!=q){this.X=k.OE;this.te=new j(this.md.Hi,q,this.md.mba)}else{this.te=this.Gg;this.Gg=q;if(this.md.item)if(this.te.item)this.X=k.PE;else{if(this.md.item)this.X=k.OE}else this.X=k.NE}if(this.X==k.PE||this.X==k.NE){this.Yb.Mj(this.te.item);this.trigger(new c(k.Er,{album:this.te.Hi,item:this.te.item}))}this.aC=0;this.ea()};k.prototype.Av=function(){(this.X==k.PE||this.X==k.OE)&&this.trigger(new c(k.$o,{album:this.md.Hi,item:this.md.item}));this.md=this.te;if(this.sn!=this.md.Hi){this.sn=
this.md.Hi;this.trigger(new c(k.$j,{album:this.sn}))}this.X=k.Vu;if(this.Gg==q){this.md.item&&this.trigger(new c(k.Fr,{album:this.md.Hi,item:this.md.item}));this.trigger(new c(k.eM,{album:this.md.Hi,item:this.md.item}))}else this.mp()};k.prototype.ea=function(){this.trigger(new c(k.Ca))};k.Vu="stopped";k.PE="blending";k.OE="fading_out";k.NE="fading_in";k.Ca="request frame";k.dM="transition begin";k.eM="transition end";k.Er="photo added";k.$o="photo removed";k.Fr="photo displayed";k.$j="photo album show";
k.Zj="photo album hide";return k});
define("dP","cV,eD,bS,em,kd,dx,iw,fu,m,bo,i,jP,bq".split(","),function(a,b,c,e,d,f,i,j,k,n,g,l,r){var p=b.extend(e,function(a,b,c){e.call(this);this.D=a;this.g=b;this.Yb=c;this.Cj=this.rj=this.P=this.Rc=this.na=q;this.xi=m;this.TI=0;this.uh=y;this.Td=0;this.$G=this.Cj?-1:0;this.VG=this.rj?1:0;this.O=q;this.Lg=400;this.Cq=0;this.H=new k});p.prototype.clear=function(){this.Yb=this.g=this.D=this.sn=q};p.prototype.Vta=function(b,c){this.Rc=b;this.P=c;var d=b&&b.get("playList")&&b.get("playList").get("items")||
[],e=a(d).indexOf(c);this.rj=e>0?d[e-1]:q;this.Cj=e<d.length-1?d[e+1]:q;this.Td=0;this.$G=this.Cj?-1:0;this.VG=this.rj?1:0;this.$H()};p.prototype.enable=function(){if(this.na=this.g.getParent()){this.na.bind(d.ob,this.Wb,this,o);this.na.bind(d.qc,this.gg,this,o);this.na.bind(d.Lb,this.hg,this,o);this.$H()}};p.prototype.disable=function(){if(this.na){this.na.unbind(d.ob,this.Wb,this);this.na.unbind(d.qc,this.gg,this);this.na.unbind(d.Lb,this.hg,this);this.na=q}};p.prototype.Lua=N("Lg");p.prototype.ZW=
N("Cq");p.prototype.$H=function(){if(this.na){this.rj&&this.Yb.iu(this.rj);this.Cj&&this.Yb.iu(this.Cj)}};p.prototype.h3=function(){return(new Date).getTime()};p.prototype.Wb=function(a){if(!this.uh){this.xi=a.x;this.TI=0;this.lS=this.h3();this.uh=o;this.O=q;this.trigger(new c(p.HL));if(this.rj){a=this.H1(this.rj);this.Yb.ya(this.rj,a.x,a.y,a.zoom)}if(this.Cj){a=this.H1(this.Cj);this.Yb.ya(this.Cj,a.x,a.y,a.zoom)}}};p.prototype.gg=function(a){if(this.uh){var b=a.x-this.xi,c=b/this.na.ua(),d=this.h3()-
this.lS;this.TI=b/d;this.lS=this.lS+d;this.xi=a.x;this.Td=Math.max(this.$G,Math.min(this.VG,this.Td+c));this.ea()}};p.prototype.hg=function(){if(this.uh){this.uh=y;var a,b;if(this.TI>1){a="quad_out";b=this.VG}else if(this.TI<-1){a="quad_out";b=this.$G}else{a="quad_in_out";b=this.Td<-0.5?this.$G:this.Td>0.5?this.VG:0}this.O=new l(a,[new r("offset",this.Td,b,1E3/this.Lg)],0);this.ea()}};p.prototype.nc=function(a){if(this.uh||this.O){if(this.O){this.O.Ua(a);this.Td=this.O.nb("offset");if(this.O.me()){this.O=
q;this.kga()}else this.ea()}this.P&&this.Yb.Oi(this.P,this.Td*(1+this.Cq)).ud(this.P,1);this.rj&&this.Yb.Oi(this.rj,(this.Td-1)*(1+this.Cq)).ud(this.rj,1);this.Cj&&this.Yb.Oi(this.Cj,(this.Td+1)*(1+this.Cq)).ud(this.Cj,1)}};p.prototype.kga=function(){this.trigger(new c(p.IL,{album:this.Rc,item:this.Td<0?this.Cj:this.Td>0?this.rj:this.P}))};p.prototype.ea=function(){this.trigger(new c(p.Ca))};p.prototype.H1=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",i.qe):i.qe,e={};if(f.sb("MovementPhotoCamera",b)){b=b.get("initialPosition",new j(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.DD(a,c,d);this.H.setSize(this.g.ua(),this.g.Za());this.H.ya(e.x,e.y,e.zoom);e.x=this.H.getX();e.y=this.H.getY();e.zoom=this.H.il();return e};p.Ca="request frame";p.HL="interaction begin";p.IL="interaction end";return p});
define("gt","eD,bS,em,kd,fG,jh,bD,dP".split(","),function(a,b,c,e,d,f,i,j){var k=a.extend(c,function(a,b,d){c.call(this);this.D=a;this.g=b;this.Yb=d;this.$B=f.ul;this.Lg=1E3;this.Ka=new i(this.D,this.g,this.Yb);this.Ka.bind(i.Ca,this.Cc,this,o);this.Ka.bind(i.dM,this.r3,this,o);this.Ka.bind(i.eM,this.s3,this,o);this.Ka.bind(i.Er,this.JA,this,o);this.Ka.bind(i.$o,this.MA,this,o);this.Ka.bind(i.Fr,this.LA,this,o);this.Ka.bind(i.Zj,this.Dk,this,o);this.Ka.bind(i.$j,this.vj,this,o);this.ih=new j(this.D,
this.g,this.Yb);this.ih.bind(j.Ca,this.Cc,this,o);this.ih.bind(j.HL,this.O2,this,o);this.ih.bind(j.IL,this.P2,this,o)});k.prototype.bL=function(a,b){this.$B=a;this.Lg=b;this.Ka.Mua(a);this.ih.Lua(b);this.Ka.ZW(0.05);this.ih.ZW(0.05)};k.prototype.display=function(a,b){this.Ka.qX(a,b,this.Lg)};k.prototype.hide=function(){this.Ka.qX(q,q,this.Lg)};k.prototype.clear=function(){this.Ka.unbind(i.Ca,this.Cc,this);this.Ka.unbind(i.dM,this.r3,this);this.Ka.unbind(i.eM,this.s3,this);this.Ka.unbind(i.Er,this.JA,
this);this.Ka.unbind(i.$o,this.MA,this);this.Ka.unbind(i.Fr,this.LA,this);this.Ka.unbind(i.Zj,this.Dk,this);this.Ka.unbind(i.$j,this.vj,this);this.Ka.clear();this.Ka=q;this.ih.bind(j.Ca,this.Cc,this,o);this.ih.bind(j.HL,this.O2,this,o);this.ih.bind(j.IL,this.P2,this,o);this.ih.clear();this.Yb=this.g=this.D=this.ih=q};k.prototype.nc=function(a){this.Ka.nc(a);this.ih.nc(a)};k.prototype.Cc=function(){this.ea()};k.prototype.JA=function(a){this.trigger(new b(k.Er,a.data))};k.prototype.MA=function(a){this.trigger(new b(k.$o,
a.data))};k.prototype.LA=function(a){this.trigger(new b(k.Fr,a.data));this.ih.Vta(a.data.album,a.data.item)};k.prototype.Dk=function(a){this.trigger(new b(k.Zj,a.data))};k.prototype.vj=function(a){this.trigger(new b(k.$j,a.data))};k.prototype.r3=function(){this.ih.disable()};k.prototype.s3=function(a){this.$B==f.Bl&&a.data.item&&this.ih.enable()};k.prototype.O2=function(){this.trigger(new b(k.OX))};k.prototype.P2=function(a){this.Ka.qX(a.data.album,a.data.item,0);this.trigger(new b(k.PX,a.data))};
k.prototype.ea=function(){this.trigger(new b(k.Ca))};k.Ca="request frame";k.Er="photo added";k.$o="photo removed";k.Fr="photo displayed";k.$j="photo album show";k.Zj="photo album hide";k.OX="manual interaction begin";k.PX="manual interaction end";return k});
define("fY","require,cV,eD,x,bS,em,eQ".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("x"),d=a("bS"),f=a("em"),i=a("eQ"),j=c.extend(f,function(){f.call(this);this.Rc=q;this.k=i.K;this.QS=q});j.prototype.clear=function(){this.jV()};j.prototype.eX=function(a){this.jV();this.Rc=a;this.k=i.N;this.QS=e.watch(this.Rc,"playList.selectedIndex",this.st,this);this.Rc.get("playList").get("selectedIndex")==0?this.st():this.Rc.get("playList").set("selectedIndex",0)};j.prototype.jV=function(){if(this.Rc){this.k=
i.K;this.QS.unwatch();this.Rc=this.QS=q}};j.prototype.stop=function(){if(this.k!=i.K){this.k=i.K;this.Rc.get("playList").set("selectedIndex",0)}};j.prototype.play=function(){if(this.k==i.K){this.Rc.get("playList").set("selectedIndex",0);this.k=i.N;this.st()}else if(this.k==i.Ac)this.k=i.N};j.prototype.pause=function(){if(this.k==i.N)this.k=i.Ac};j.prototype.next=function(){var a=this.Rc.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b<c-1||this.Rc.get("loop"))&&a.set("selectedIndex",
(b+1)%c)};j.prototype.pW=function(){var a=this.Rc.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b>0||this.Rc.get("loop"))&&a.set("selectedIndex",(b-1+c)%c)};j.prototype.BK=function(a){this.cna(a)};j.prototype.ysa=function(a){if(this.Rc){var c=b(this.Rc.get("playList").get("items")).last();if(a==c&&!this.Rc.get("loop")){this.k=i.K;this.trigger(new d(j.EL,{album:this.Rc}))}else this.next()}};j.prototype.st=function(){var a=this.Vha();a>=0&&(this.k!=i.N&&a!=0?this.trigger(new d(j.$L)):
this.trigger(new d(j.ML,{album:this.Rc,item:this.Rc.get("playList").get("items")[a]})))};j.prototype.Vha=function(){return this.Rc?this.Rc.get("playList").get("selectedIndex"):-1};j.prototype.cna=function(a){if(this.Rc){var c=this.Rc.get("playList"),a=b(c.get("items")).indexOf(a);c.set("selectedIndex",a)}};j.$L="play request";j.ML="item request";j.EL="album end";return j});
define("cf","require,cV,eD,kd,bS,em,eQ,eT".split(","),function(a){a("cV");var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("eQ"),i=a("eT"),j=b.extend(d,function(a){d.call(this);this.D=a;this.YB=this.P=q;this.mt=m;this.DG=y;this.k=f.K;i.bind(c.$,this.B4,this,o)});j.prototype.BK=function(a){this.TO();if(this.P=a){a=this.P.get("media").get("duration",0);this.mt=a==0?m:Math.max(0,a-this.D.get("transitionDuration"));this.DG=y;this.k==f.N&&this.iP()}};j.prototype.clear=function(){i.unbind(c.$,this.B4,this,
o);this.BK(q)};j.prototype.stop=function(){if(this.k!=f.K){this.TO();this.Pb(f.K)}};j.prototype.play=function(){if(this.k==f.K){this.Pb(f.N);if(this.P){this.DG=y;var a=this.P.get("media").get("duration",0);this.mt=a==0?m:a;this.iP()}}else if(this.k==f.Ac){this.Pb(f.N);this.P&&this.iP()}};j.prototype.pause=function(){if(this.k==f.N){this.Pb(f.Ac);this.R4()}};j.prototype.iP=function(){if(!this.DG){this.DG=o;this.trigger(new e(j.NL,{item:this.P}))}this.X0()};j.prototype.B4=function(){i.visible?this.X0():
i.visible||this.R4()};j.prototype.X0=function(){if(this.mt!==m){var a=this;this.eJ=(new Date).getTime()+this.mt;this.YB=setTimeout(function(){a.YB=q;a.joa()},this.mt)}else this.eJ=m};j.prototype.TO=function(){if(this.YB){clearTimeout(this.YB);this.YB=q}};j.prototype.R4=function(){if(this.eJ!==m){this.TO();this.mt=Math.max(1,this.eJ-(new Date).getTime());this.eJ=m}};j.prototype.joa=function(){var a=this.P;this.P=q;this.mt=m;this.trigger(new e(j.LL,{item:a}))};j.prototype.Pb=function(a){if(this.k!=
a){this.k=a;this.trigger(new e(j.Kb,{state:this.k}))}};j.Kb="playback state change";j.NL="item start";j.LL="item end";return j});
define("ju",["eD","bS","em","X","u"],function(a,b,c,e,d){var f=a.extend(c,function(a){c.call(this);this.V=o;this.As=y;this.g=a;this.kj=d.browser()==d.jy&&d.sd()==d.KM?3:1;this.ve=this.wz=0});f.prototype.clear=function(){this.V=y;this.g=q;this.ve=this.wz=0};f.prototype.Ha=function(){this.As||(this.As=o,e.Ha(this.ig,this))};f.prototype.ig=function(a){this.V&&(this.wz++,this.ve+=a,this.wz==this.kj?(this.wz=0,this.As=y,a=this.ve,this.ve=0,this.trigger(new b(f.bk,{frameTime:a})),this.trigger(new b(f.ck,
{frameTime:a})),this.g.render()):e.Ha(this.ig,this))};f.bk="frameStart";f.ck="positionSet";return f});
define("eC","eD,kd,bS,em,gx,ca,gt,fY,cf,fG,ju".split(","),function(a,b,c,e,d,f,i,j,k,n,g){var l=a.extend(e,function(a,b){e.call(this);this.D=a;this.g=b;this.$e=new j(this.g);this.gb=new k(this.D);this.Yb=new n(this.D,this.g);this.Ea=new i(this.D,this.g,this.Yb);this.ha=new f(this.g,this.Yb);this.Ld=new g(this.g);this.Ed=new d;this.Yb.bind(n.Ca,this.Cc,this,o);this.$e.bind(j.ML,this.K3,this,o);this.$e.bind(j.$L,this.h4,this,o);this.$e.bind(j.EL,this.KA,this,o);this.gb.bind(k.NL,this.L3,this);this.gb.bind(k.LL,
this.J3,this);this.gb.bind(k.Kb,this.Ud,this,o);this.Ea.bind(i.Ca,this.Cc,this,o);this.Ea.bind(i.Er,this.JA,this,o);this.Ea.bind(i.$o,this.MA,this,o);this.Ea.bind(i.Fr,this.LA,this,o);this.Ea.bind(i.Zj,this.Dk,this,o);this.Ea.bind(i.$j,this.vj,this,o);this.Ea.bind(i.OX,this.Zja,this,o);this.Ea.bind(i.PX,this.$ja,this,o);this.ha.bind(f.Ca,this.Cc,this,o);this.Ld.bind(g.bk,this.jq,this,o);this.Ld.bind(g.ck,this.kq,this,o)});l.prototype.clear=function(){this.$e.clear();this.gb.clear();this.Ea.clear();
this.ha.clear();this.Ld.clear();this.Ed.clear();this.Yb.clear();this.Yb.unbind(n.Ca,this.Cc,this);this.$e.unbind(j.ML,this.K3,this);this.$e.unbind(j.EL,this.KA,this);this.$e.unbind(j.$L,this.h4,this);this.gb.unbind(k.NL,this.L3,this);this.gb.unbind(k.LL,this.J3,this);this.gb.unbind(k.Kb,this.Ud,this);this.Ea.unbind(i.Ca,this.Cc,this);this.Ea.unbind(i.Er,this.JA,this);this.Ea.unbind(i.$o,this.MA,this);this.Ea.unbind(i.Fr,this.LA,this);this.Ea.unbind(i.Zj,this.Dk,this);this.Ea.unbind(i.$j,this.vj,this);
this.ha.unbind(f.Ca,this.Cc,this);this.Ld.unbind(g.bk,this.jq,this);this.Ld.unbind(g.ck,this.kq,this);this.D=this.g=this.Yb=this.Ed=this.Ld=this.ha=this.Ea=this.gb=this.$e=q};l.prototype.bL=function(a,b){this.Ea.bL(a,b)};l.prototype.Dua=function(a){this.$e.eX(a)};l.prototype.su=function(){this.$e.jV();this.gb.stop();this.Ea.hide();this.ha.end();this.Ed.cba()};l.prototype.next=function(){this.$e.next()};l.prototype.pW=function(){this.$e.pW()};l.prototype.stop=function(){this.gb.stop();this.Ed.stop();
this.$e.stop();this.ha.stop()};l.prototype.play=function(){this.gb.play();this.Ed.play();this.$e.play();this.ha.play()};l.prototype.pause=function(){this.gb.pause();this.Ed.pause();this.$e.pause();this.ha.pause()};l.prototype.Zja=function(){this.gb.pause();this.Ed.pause();this.$e.pause();this.ha.pause()};l.prototype.$ja=function(){this.gb.play();this.Ed.play();this.$e.play();this.ha.play()};l.prototype.K3=function(a){this.Ea.display(a.data.album,a.data.item)};l.prototype.h4=function(){this.play()};
l.prototype.Cc=function(){this.Ld.Ha()};l.prototype.jq=function(a){this.ha.Mo(a.data.frameTime)};l.prototype.kq=function(a){a=a.data.frameTime;this.Ea.nc(a);this.Yb.nc(a)};l.prototype.JA=function(a){this.ha.start(a.data.item)};l.prototype.MA=function(a){var b=a.data.album,a=a.data.item,d=a.get("media");this.ha.end(a);this.Ed.dva(d);this.trigger(new c(l.XL,{photoAlbum:b,item:a}))};l.prototype.LA=function(a){var b=a.data.album,a=a.data.item;a.get("media");this.$e.BK(a);this.gb.BK(a);this.trigger(new c(l.WL,
{photoAlbum:b,item:a}))};l.prototype.L3=function(a){this.Ed.ava(a.data.item.get("media"))};l.prototype.J3=function(a){this.$e.ysa(a.data.item)};l.prototype.KA=function(a){this.gb.stop();this.Ed.stop();this.trigger(new c(l.VL,{photoAlbum:a.data.album}))};l.prototype.vj=function(a){a=a.data.album;this.Ed.eX(a);this.gb.play();this.ha.play();this.trigger(new c(l.$j,{photoAlbum:a}))};l.prototype.Dk=function(a){a=a.data.album;this.Ed.bva(a);this.trigger(new c(l.Zj,{photoAlbum:a}))};l.prototype.Ud=function(a){this.trigger(new c(l.Kb,
{state:a.data.state}))};l.$j="photoAlbumShow";l.VL="photoAlbumEnd";l.Zj="photoAlbumHide";l.WL="photoBegin";l.XL="photoEnd";l.Kb="playbackStateChange";return l});
define("fo","require,jquery.mod,cV,iw,hO,ig,u".split(","),function(a){function b(a,b){this.P=a;this.S=b;this.Da=a.Fc();this.Ma=a.qd();this.XF=a.qP;this.RU=this.eA=0;this.jk=1;this.Td=0;this.Z=o;this.qO();this.Nb=this.Gb=100;this.ca=this.ba=0.5;this.ma=1;this.gB=o;this.Uc=1;this.V0={};this.k2={};this.f8=i.browser()!=i.Ug}var c=a("jquery.mod"),e=a("cV"),d=a("iw"),f=a("hO");a("ig");var i=a("u");b.prototype.qO=function(){this.JE=c("<div></div>");var a={position:"absolute",left:"0",top:"0",width:this.Gb+
"px",height:this.Nb+"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.JE.css(a);this.OM=c(f.Bd(this.P.Gh()));a={display:"block",position:"absolute",left:"0",top:"0",width:this.Da+"px",height:this.Ma+"px"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.OM.css(a);this.JE.append(this.OM)};b.prototype.Ab=
Q("JE");b.prototype.getItem=Q("P");b.prototype.getX=Q("ba");b.prototype.getY=Q("ca");b.prototype.il=Q("ma");b.prototype.ua=function(){return Math.round(this.Da*this.ma*this.Uc)};b.prototype.Za=function(){return Math.round(this.Ma*this.ma*this.Uc)};b.prototype.ud=function(a){if(this.jk!=a){this.jk=a;this.Z=o}};b.prototype.lr=function(a){if(this.cd!=a){this.cd=a;this.Z=o}};b.prototype.tu=function(a,b){if(this.Gb!=a||this.Nb!=b){this.Gb=a;this.Nb=b;this.Z=o}};b.prototype.ya=function(a,b,c){if(this.ba!=
a||this.ca!=b||this.ma!=c){this.ba=a;this.ca=b;this.ma=c;this.Z=o}};b.prototype.Oi=function(a){if(this.Td!=a){this.Td=a;this.Z=o}};b.prototype.Wta=function(a){if(this.RU!=a){this.RU=a;this.Z=o}};b.prototype.render=function(){if(this.Z){this.Z=y;switch(this.cd){case d.NONE:this.Uc=1;break;case d.ek:this.Uc=this.Gb/this.Da;break;case d.yg:this.Uc=this.Nb/this.Ma;break;case d.xl:this.Uc=this.Da*this.Nb>this.Ma*this.Gb?this.Nb/this.Ma:this.Gb/this.Da;break;default:this.Uc=this.Da*this.Nb>this.Ma*this.Gb?
this.Gb/this.Da:this.Nb/this.Ma}var a=this.ma*this.Uc,b=this.Gb*0.5-this.ba*this.Da*a,c=this.Nb*0.5-this.ca*this.Ma*a,f=this.Gb*this.Td,i=function(a,b){return Math.round(a*Math.pow(10,b))*Math.pow(10,-b)},r={};r.width=i(this.Gb,0)+"px";r.height=i(this.Nb,0)+"px";r.transform=this.f8?"translate3d("+i(f,2)+"px, 0px, 0px)":"translate("+i(f,2)+"px, 0px)";r["-moz-transform"]=r["-webkit-transform"]=r["-ms-transform"]=r.transform;r["z-index"]=this.RU;if(this.jk==0)r.display="none";else{r.display="block";
if(this.jk==1){r.filter=r["-ms-filter"]="";r.opacity=""}else{r.filter=r["-ms-filter"]="alpha(opacity="+Math.round(this.jk*100)+")";r.opacity=this.jk}}f=[];if(this.f8){f.push("translate3d("+i(b,2)+"px, "+i(c,2)+"px, 0px)");f.push("scale3d("+a+", "+a+", "+a+")");if(this.XF){f.push("translate3d("+this.Da+"px, 0, 0)");f.push("scale3d(-1, 1, 1)")}}else{f.push("translate("+i(b,2)+"px, "+i(c,2)+"px)");f.push("scale("+a+", "+a+")");if(this.XF){f.push("translate("+this.Da+"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.V0,r)){this.V0=r;this.JE.css(r)}if(!e.isEqual(this.k2,a)){this.k2=a;this.OM.css(a)}}};return b});
define("fF","require,jquery.mod,cV,eD,kd,fB,hO,fo,S,d".split(","),function(a){var b=a("jquery.mod"),c=a("cV"),e=a("eD"),d=a("kd"),f=a("fB"),i=a("hO"),j=a("fo"),k=a("S"),n=a("d"),a=e.extend(n,function(){n.call(this);this.Dc("Renderer");this.set("toolTipDisabled",o);this.set("cursor",k.Iu);this.bind(d.pb,this.hb,this,o);this.bind(d.Le,this.qi,this,o);this.bind(d.Df,this.mi,this,o);this.pt=y;this.yb=[];this.OI=this.vo=y;this.UR=b("<div/>");this.UR.css({position:"absolute",left:0,top:0,right:0,bottom:0,
overflow:"hidden","-webkit-transform":"translateZ(0)"});this.Ja().append(this.UR)});a.prototype.Im=function(a){i.Im(a,f.$i)};a.prototype.Nh=function(a){i.Nh(a,f.$i)};a.prototype.UU=function(a){a=new j(a,this);a.tu(this.ua(),this.Za());a.ya(0.5,0.5,0,1);this.UR.append(a.Ab());this.yb.push(a);this.vo=o};a.prototype.removeItem=function(a){if(a=this.sk(a)){this.yb=c.without(this.yb,a);a.Ab().detach();this.vo=o}};a.prototype.ZU=function(a){if(a=this.sk(a)){this.yb=c.without(this.yb,a);this.yb.push(a);
this.vo=o}};a.prototype.qua=function(a,b){this.sk(a).lr(b)};a.prototype.ol=function(a,b){this.sk(a).ud(b)};a.prototype.nua=function(a,b){this.sk(a).Oi(b)};a.prototype.ID=function(a,b,c,d){this.sk(a).ya(b,c,d)};a.prototype.dD=function(a){return this.sk(a).getX()};a.prototype.eD=function(a){return this.sk(a).getY()};a.prototype.o9=function(a){return this.sk(a).il()};a.prototype.cD=function(a){return this.sk(a).ua()};a.prototype.bD=function(a){return this.sk(a).Za()};a.prototype.render=function(){if(this.pt){this.qpa();
this.yna();for(var a=0;a<this.yb.length;a++)this.yb[a].render()}};a.prototype.qpa=function(){if(this.OI){this.OI=y;for(var a=this.ua(),b=this.Za(),c=0;c<this.yb.length;c++)this.yb[c].tu(a,b)}};a.prototype.yna=function(){if(this.vo){this.vo=y;for(var a=[],b=0;b<this.yb.length;b++){var c=this.yb[b],d={};d.CK=c.eA;d.index=b;d.hf=c;a.push(d)}a.sort(function(a,b){return a.CK==b.CK?a.index-b.index:a.CK-b.CK});for(b=0;b<a.length;b++)a[b].hf.Wta(b+1)}};a.prototype.sk=function(a){if(this.mwa==a)return this.lwa;
for(var b=q,c=0;c<this.yb.length&&!b;c++)this.yb[c].getItem()==a&&(b=this.yb[c]);return b};a.prototype.hb=function(){this.OI=o;this.render()};a.prototype.qi=function(){this.pt=o;this.render()};a.prototype.mi=function(){this.pt=y};return a});
define("hd","require,eD,bS,dx,iV,cl,fW,eC,jh,fF,cU,kd".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("dx"),d=a("iV"),f=a("cl"),i=a("fW"),j=a("eC"),k=a("jh"),n=a("fF"),g=a("cU"),l=a("kd"),a=b.extend(i,function(){i.call(this,"photoAlbum");this.iJ=this.TR=this.Mg=y;this.p=this.g=q;this.iea=new d(this,"buttonNext",g.Hc);this.iea.bind(l.U,this.dka,this);this.jea=new d(this,"buttonPrevious",g.Hc);this.jea.bind(l.U,this.nka,this);this.Tc=b.Jo(this.cf,this)});e.A("PhotoAlbumPlayer",a).B("Object").R({photoAlbum:"PhotoAlbum",
viewerArea:"ViewerArea",state:"enum[stopped, playing, paused]",mouseTransition:"enum[blending, scroll]",mouseTransitionDuration:"number",touchTransition:"enum[blending, scroll]",touchTransitionDuration:"number",buttonNext:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPrevious:"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]]",
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]]"}).Sg({play:function(){this.hw()},pause:function(){this.gw()},stop:function(){this.bt()},restart:function(){this.at()}}).fc([f.kf,f.Vg,i.wd]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "photoAlbum":this.TR=o;this.Tc();break;case "viewerArea":this.Mg=
o;this.Tc();break;case "touchTransition":case "mouseTransition":case "touchTransitionDuration":case "mouseTransitionDuration":case "transitionDuration":this.iJ=o;this.Tc()}i.prototype.set.call(this,a,b)}};a.prototype.cf=function(){if(this.Mg){this.Mg=y;this.iJ=o;this.ss();this.get("viewerArea")&&this.qs();this.LI(this.get("viewerArea"))}if(this.g&&this.TR){this.TR=y;if(this.get("photoAlbum")){this.lI();this.p.Dua(this.get("photoAlbum"))}else this.p.su()}if(this.iJ){this.iJ=y;this.Z7()}};a.prototype.PB=
function(){this.set("photoAlbum",q)};a.prototype.qs=function(){var a=this.get("viewerArea");this.g=new n;this.g.M({left:0,top:0,bottom:0,right:0});a.ia(this.g);this.p=new j(a,this.g);this.Z7();this.p.bind(j.$j,this.vj,this);this.p.bind(j.Zj,this.Dk,this);this.p.bind(j.VL,this.KA,this);this.p.bind(j.WL,this.f4,this);this.p.bind(j.XL,this.g4,this);this.p.bind(j.Kb,this.Ud,this);this.Gw(o)};a.prototype.ss=function(){if(this.g){this.p.unbind(j.$j,this.vj,this);this.p.unbind(j.Zj,this.Dk,this);this.p.unbind(j.VL,
this.KA,this);this.p.unbind(j.WL,this.f4,this);this.p.unbind(j.XL,this.g4,this);this.p.unbind(j.Kb,this.Ud,this);this.p.clear();this.g.getParent().removeChild(this.g);this.g=q;this.Gw(y)}};a.prototype.Z7=function(){var a=this.get("viewerArea");a&&this.p&&(a.pj?this.p.bL(this.get("touchTransition",k.ul),this.get("touchTransitionDuration",a.get("transitionDuration",1E3))):this.p.bL(this.get("mouseTransition",k.ul),this.get("mouseTransitionDuration",a.get("transitionDuration",1E3))))};a.prototype.Ud=
function(a){this.Pb(a.data.state)};a.prototype.vj=function(a){this.XG(a.data.photoAlbum)};a.prototype.Dk=function(a){this.WG(a.data.photoAlbum)};a.prototype.KA=function(a){a.data.photoAlbum.trigger(new c(l.Ia))};a.prototype.f4=function(a){a.data.item.gx()};a.prototype.g4=function(a){a.data.item.end()};a.prototype.Qn=function(a){this.g.getParent().M({progressPercent:a.data.percent,progressVisible:o})};a.prototype.fw=function(){this.g.getParent().set("progressVisible",y)};a.prototype.dka=function(){this.p&&
this.get("photoAlbum")&&this.p.next()};a.prototype.nka=function(){this.p&&this.get("photoAlbum")&&this.p.pW()};a.prototype.Ig=function(){this.p&&this.get("photoAlbum")&&this.p.play()};a.prototype.Gj=function(){this.p&&this.get("photoAlbum")&&this.p.stop()};a.prototype.Jk=function(){this.p&&this.get("photoAlbum")&&this.p.pause()};return a});
define("eA",["eD","dx","cl","cT"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("PhotoAlbumPlayListItem",a).B("PlayListItem").R({media:"PhotoAlbum",player:"PhotoAlbumPlayer"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.kf,this.vj,this),a.set("photoAlbum",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&(a.unbind(c.kf,this.vj,this),a.get("photoAlbum")==this.get("media")&&a.set("photoAlbum",q));e.prototype.stop.call(this)};
a.prototype.WD=function(){var a=this.get("media");if(a){var b=a.get("playList");b&&(a=b.get("selectedIndex"),b=b.get("items"),0<=a&&b&&b[a].WD())}e.prototype.WD.call(this)};a.prototype.vj=function(){this.get("player").unbind(c.kf,this.vj,this);this.get("player").bind(c.Vg,this.Dk,this);this.gx()};a.prototype.Dk=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Vg,this.Dk,this),this.end())};return a});
define("eR",["eD","dx","gh","gn"],function(a,b,c,e){a=a.extend(c,function(){c.call(this,e.mca)});b.A("PhotoAudio",a).B("MediaAudio");return a});define("jp",["eD","im","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("PhotoCamera",a).B("Object").R({scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]"});return a});
define("dp","require,cV,eD,im,bS,dx,gz,kd".split(","),function(a){var b=a("cV"),c=a("eD"),e=a("im"),d=a("bS"),f=a("dx"),i=a("gz"),j=a("kd"),a=c.extend(e,function(){this.Vc=-1;this.sc=[];this.jB=this.Ak=this.Nf=m;e.call(this)});f.A("PlayList",a).B("Object").R({items:"array[PlayListItem]",selectedIndex:"number"}).Rg([j.xL]).fc([j.$]);a.prototype.set=function(a,b){a=="selectedIndex"?this.bna(b):a=="items"?this.Rma(b):e.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a=="selectedIndex"?
this.Vc:a=="items"?this.sc:e.prototype.get.call(this,a,b)};a.prototype.Rma=function(a){a=a||[];if(!b.isEqual(this.sc,a)){var c=this.Vc;this.sc=a;a=this.N5(this.Vc);this.trigger(new d(j.xL,{nextSelectedIndex:a}));this.Vc=a;this.t6(this.Ip(this.Vc));this.T7();this.trigger(new d(j.$,{previousSelectedIndex:c}));e.prototype.set.call(this,"items",this.sc);e.prototype.set.call(this,"selectedIndex",this.Vc)}};a.prototype.bna=function(a){a=this.N5(a);if(this.Vc!=a){var b=this.Vc;this.trigger(new d(j.xL,{nextSelectedIndex:a}));
this.Vc=a;this.t6(this.Ip(this.Vc));this.T7();this.trigger(new d(j.$,{previousSelectedIndex:b}));e.prototype.set.call(this,"selectedIndex",this.Vc)}};a.prototype.N5=function(a){return Math.max(-1,Math.min(this.sc.length-1,a))};a.prototype.Ip=function(a){return a>=0?this.sc[a]:q};a.prototype.t6=function(a){if((this.Nf!=a||this.Ak!==m)&&this.Ak!==a)if(this.Ak===m){this.Ak=a;if(this.Nf)if(this.Ak&&this.Nf.get("player")==this.Ak.get("player")){this.Nf.WD();this.$s()}else this.Nf.stop();else this.$s()}else this.Ak=
a};a.prototype.$s=function(){if(this.Nf){this.Nf.unbind(j.Xj,this.yR,this);this.Nf.unbind(j.Dd,this.$s,this);this.Nf.unbind(j.Ia,this.$s,this)}if(this.Ak){this.Nf=this.Ak;this.Ak=m;this.Nf.bind(j.Xj,this.yR,this);this.Nf.bind(j.Dd,this.$s,this);this.Nf.start()}else{this.Ak=this.Nf=m;this.set("selectedIndex",-1)}};a.prototype.yR=function(){this.Nf.unbind(j.Xj,this.yR,this);this.Nf.unbind(j.Dd,this.$s,this);this.Nf.bind(j.Ia,this.$s,this)};a.prototype.T7=function(){this.jB&&i.HK(this.jB.get("media"),
-1);(this.jB=this.sc&&this.Vc>=0?this.sc[(this.Vc+1)%this.sc.length]:q)&&i.HK(this.jB.get("media"),1)};return a});define("hj",["eD","dx","dp"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayList",a).B("PlayList").R({items:"array[PhotoPlayListItem]"});return a});define("hw",["eD","dx","cT"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayListItem",a).B("PlayListItem").R({media:"Photo",camera:"PhotoCamera"});return a});
define("ed",["require","cV","eD","er","dx"],function(a){a("cV");var b=a("eD"),c=a("er"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("PlaybackBar",b).B("UIComponent").R({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("jd",["require"],function(){function a(a){try{for(var d=(c.pD<<12)+c.tD&65535,f="",i=0,j=a.length;i<j;)var k=b.indexOf(a.charAt(i++))<<12|b.indexOf(a.charAt(i++))<<6|b.indexOf(a.charAt(i++))<<0,k=k-d+65536&65535,f=f+String.fromCharCode(k);return f}catch(n){if("{%"==a.substr(0,2))return""}}var b="";[[65,26],[97,26],[48,10]].forEach(function(a){for(var c=0;c<a[1];c++)b+=String.fromCharCode(a[0]+c)});var b=b+"+/",c={Dqa:"true"};c.pD=parseInt("0")||
0;c.tD=parseInt("1351")||1;c.cva="true";c.name=a("AV6AWLAWdAWwAW6AW7AWoAVnAWXAWzAWoAXAAWsAW5");c.yba=a("");return c});define("bi",[],function(){return{ka:"left",Fa:"right",eb:"top",cb:"bottom"}});
define("cw",["eD","df","N","bi"],function(a,b){var c=a.extend(b,function(){b.call(this)});c.prototype.Dz=R(0);c.prototype.Ez=R(0);c.prototype.Lw=function(){b.prototype.Lw.call(this);this.Dp(function(a){a.jf(o)})};c.prototype.Eq=function(){b.prototype.Eq.call(this);this.Dp(function(a){a.ND(this.Dz(a,this.Bx()));a.OD(this.Ez(a,this.Bx()))})};c.prototype.Jw=function(){this.Dp(function(a){a.ND(this.Dz(a,1));a.OD(this.Ez(a,1))});b.prototype.Jw.call(this)};c.prototype.Kw=function(){this.Dp(function(a){a.ND(this.Dz(a,
0));a.OD(this.Ez(a,0))});b.prototype.Kw.call(this)};return c});
define("dj",["eD","cw","bi"],function(a,b,c){a=a.extend(b,function(){b.call(this)});a.prototype.Dz=function(a,b){switch(this.get("from")){case c.eb:case c.cb:return 0;case c.ka:var f=a.ba,i=a.ua();return isNaN(i)||isNaN(f)?1E4:(-f-i)*(1-b);default:f=a.getParent();if(!f)return 0;i=f.jd();f=a.ba;return isNaN(f)||isNaN(i)?1E4:(i-f)*(1-b)}};a.prototype.Ez=function(a,b){switch(this.get("from")){case c.eb:var f=a.ca,i=a.Za();return isNaN(i)||isNaN(f)?1E4:(-f-i)*(1-b);case c.cb:f=a.getParent();if(!f)return 0;
i=f.hd();f=a.ca;return isNaN(f)||isNaN(i)?1E4:(i-f)*(1-b);default:return 0}};a.prototype.Kw=function(){this.Dp(function(a){a.ND(0);a.OD(0);a.jf(y)})};return a});
define("fm",["eD","cw","N","bi"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});a.prototype.Dz=function(a,b){switch(this.get("to")){case e.eb:case e.cb:return 0;case e.ka:var c=a.ba,j=a.ua();return isNaN(j)||isNaN(c)?1E4:(-c-j)*b;default:c=a.getParent();if(!c)return 0;j=c.jd();c=a.ba;return isNaN(c)||isNaN(j)?1E4:(j-c)*b}};a.prototype.Ez=function(a,b){switch(this.get("to")){case e.eb:var c=a.ca,j=a.Za();return isNaN(j)||isNaN(c)?1E4:(-c-j)*b;case e.cb:c=a.getParent();if(!c)return 0;j=c.hd();
c=a.ca;return isNaN(c)||isNaN(j)?1E4:(j-c)*b;default:return 0}};a.prototype.Jw=function(){this.Dp(function(a){a.ND(0);a.OD(0);a.jf(y)})};return a});
define("A","require,jquery.mod,eD,kd,kc,u,dW,bc,cd,c,jM,dj,fm,he".split(","),function(a){function b(a){try{return window.localStorage.getItem(a)}catch(b){}}var c=a("jquery.mod"),e=a("eD"),d=a("kd"),f=a("kc"),i=a("u"),j=a("dW"),k=a("bc"),n=a("cd"),g=a("c"),l=a("jM"),r=a("dj"),p=a("fm"),s=a("he"),a=e.extend(l,function(a){l.call(this);this.$a=a;this.Ff=this.as=this.rp=this.xh=q;a=new r;a.set("duration",500);a.set("from","bottom");a=new p;a.set("duration",500);a.set("to","bottom");this.M({creationPolicy:n.Kr,
verticalAlign:k.$b,horizontalAlign:k.pc,visible:y,showEffect:this.rwa,hideEffect:this.swa});this.ET="";a=this.Oha();if(a===o)setTimeout(function(){this.trigger(d.Gu)}.bind(this),0);else if(a===m){this.$a.bind(d.L("cookiesPolicy"),this.w0,this);setTimeout(function(){this.w0()}.bind(this),0)}});a.prototype.Ba=function(){l.prototype.Ba.call(this);this.M({backgroundColor:"#1a1a1a",width:"100%",left:0,bottom:0});if(this.xh==q){this.xh=new s;this.xh.M({content:this.ET,fontColor:"#ffffff",fontWeight:"400",
fontFamily:"Open Sans, Arial, sans-serif",width:"100%"});this.ia(this.xh)}if(this.rp==q){this.rp=new l;this.ia(this.rp);this.rp.M({creationPolicy:n.Kr,verticalAlign:k.$b,layout:g.$d})}if(this.as==q){this.as=new j;this.as.M({backgroundColor:"#2aabe2",fontColor:"#ffffff",fontFamily:"Open Sans, Arial, sans-serif",label:f("accept").toUpperCase(),verticalAlign:"middle"});this.rp.ia(this.as);this.as.bind(d.U,this.$da,this,o)}if(this.gv==q){this.gv=new j;this.gv.M({backgroundColor:"#1a1a1a",fontColor:"#808080",
fontFamily:"Open Sans, Arial, sans-serif",label:f("reject").toUpperCase(),textDecoration:"underline",verticalAlign:"middle"});this.rp.ia(this.gv);this.gv.bind(d.U,this.lea,this,o)}};a.prototype.bm=function(){l.prototype.bm.apply(this,arguments);var a=this.Pa();if(a){a.bind(d.pb,this.fm,this,o);this.fm()}};a.prototype.fm=function(){var a=this.Pa();if(a){var b=i.Qa(),c=a.Za()>a.ua(),d=Math.min(a.ua(),a.Za())/100,a=function(a){return Math.round(a*d)};this.M({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?g.Me:g.$d});this.xh&&this.xh.M({fontSize:b?a(3.15):14,textAlign:b&&c?"center":"left"});this.rp&&this.rp.M({gap:b?0:13});this.as&&this.as.M({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.gv&&this.gv.M({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.oc()}};a.prototype.w0=
function(){var a=e.toArray(this.$a.get("cookiesPolicy"));if(this.fB!=a){this.fB=a;this.bma()}};a.prototype.bma=function(){if(this.fB.length==0)this.bT(q);else{var a=this.fB[0];e.toArray(a.get("geographicArea")).length==0?this.bT(a):this.lha(function(a){for(var b=q,c=0;c<this.fB.length&&!b;c++){var d=this.fB[c],f=e.toArray(d.get("geographicArea"));if(f.length==0)b=d;else for(var g=0;g<f.length&&!b;g++)a.indexOf(f[g])>=0&&(b=d)}this.bT(b)}.bind(this))}};a.prototype.bT=function(a){if(this.rw!==a){this.rw&&
this.rw.unbind(d.L("url"),this.oU,this);if(this.rw=a){this.rw.bind(d.L("url"),this.oU,this);this.oU();this.set("visible",o)}else{this.trigger(d.Gu);this.set("visible",y)}}};a.prototype.oU=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.rw.get("url"),target:"_blank"});this.ET=a.html();this.xh&&this.xh.set("content",this.ET)};a.prototype.$da=function(){this.u6(o);this.set("visible",
y);this.trigger(d.Gu)};a.prototype.lea=function(){this.u6(y);this.set("visible",y)};var t=["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.lha=function(a){this.bha(function(b){var c=[b];t.indexOf(b)&&c.push("EU");a(c)})};a.prototype.bha=function(a){var d=b("tdvp_country_code");if(d)a(d);else if(!this.b1){this.b1=o;c.get("https://geoloc.3dvista.com",function(b){this.b1=y;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.Oha=function(){var a=b(u);if(a=="yes")return o;if(a=="no")return y};a.prototype.u6=function(a){try{window.localStorage.setItem(u,a?"yes":"no")}catch(b){}};return a});
define("iu",["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(y)).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(y)}function f(){return!v?Promise.reject("files uninitialized, no space was requested"):Promise.resolve(v)}function i(a){a.length&&"/"==a[0]&&(a=a.substr(1));return a.split("/").filter(function(a){return""!=
a})}function j(a){return new Promise(function(b,c){a.remove(function(){b()},function(a){c("can't remove entry"+(a&&a.message?": "+a.message:"")+".")})})}function k(a){return n(a).then(function(a){return Promise.all(a.map(function(a){return a.isDirectory?k(a):j(a)}))}).then(function(){return j(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 g(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){g(a,b,{create:y}).then(function(a){c(a)})["catch"](function(){g(a,b,{create:o}).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 r(a,b){return 0==b.length?a:l(a,b[0]).then(function(a){return r(a,b.slice(1))})}function p(a,
b){return 0==b.length?a:g(a,b[0]).then(function(a){return p(a,b.slice(1))})}function s(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 t(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=q;return{LK: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})},yta:function(a){return e().then(function(b){return c(b,a)}).then(function(a){return b(a)}).then(function(a){v=a})},rta:function(a){var a=i(a),b=a[a.length-1],c=a.slice(0,-1);return f().then(function(a){return p(a.root,c)}).then(function(a){return s(a,b,{create:o})},function(){return Promise.resolve(q)}).then(function(a){return a&&j(a)})},caa:function(a,c){var d=i(a);return b(1024,
c).then(function(a){return p(a.root,d)}).then(function(a){return k(a)},function(){return Promise.resolve()})},zba:function(a,b,c){var d=i(a),e=d[d.length-1],g=d.slice(0,-1);return f().then(function(a){return r(a.root,g)}).then(function(a){return s(a,e,{create:y}).then(function(a){return Promise.resolve(a)},function(){return s(a,e,{create:o})})}).then(function(a){return t(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("bQ",["require","iu","iB","u"],function(a){function b(a,b){this.fo=a;this.PN=y;this.mB=q;this.pi=b||E()}function c(a){return a.Bu>=f}var e=a("iu"),d=a("iB"),f=1048576,i=10485760,j=a("u").gf()?3:5,a={File:function(a,b){this.url=a;this.Bu=b;this.CD=this.kx=0}},k=a.Files=function(a,b,c,d){this.L_=this.Oda=a;this.Sl=b.slice();this.a1=[];var e=0;this.Sl.sort(function(a,b){return a.Bu-b.Bu});this.Sl.forEach(function(a){e+=a.Bu});this.l7=e;this.vs=[];this.iF=m;this.Kl=[];this.QN=y;this.Ad=c||E();
this.tz=d||E()};k.prototype.rm=function(){return this.Jea().then(function(){return this.Kea()}.bind(this))};k.prototype.Jea=function(){return caches["delete"](this.L_)};k.prototype.Kea=function(){var a=(new d(this.Oda)).pathname;return e.caa(a,y).then(function(){return e.caa(a,o)})};k.prototype.requestStorage=function(){return e.yta(Math.round(1.1*this.l7+10485760)).then(function(){return e.LK()})};k.prototype.download=function(){this.QN=y;this.iF=0;this.rm().then(function(){this.rz()}.bind(this))["catch"](function(a){console.log("error cleaning storage",
a);e.LK().then(function(a){this.tz(y,a)}.bind(this))}.bind(this))};k.prototype.cancelDownload=function(){this.QN=o;this.Kl.forEach(function(a){a.cancel()});this.rm()};k.prototype.rz=function(){if(!(this.QN||this.Kl.length>=j))if(0<this.Sl.length){var a;if(1==j)a=0.5<Math.random()?this.Sl.shift():this.Sl.pop();else if(0==this.vs.filter(c).length)a=this.Sl.pop();else{if(c(this.Sl[0]))return;a=this.Sl.shift()}this.vs.push(a);var f=d.Sq(a.url,"nc="+(new Date).getTime()),i=new b(f,function(b){a.kx=b.kx;
this.bl()}.bind(this));this.Kl.push(i);i.fetch().then(function(b){return this.Sna(a.url,b)}.bind(this)).then(function(){this.R0(a,i,o)}.bind(this))["catch"](function(b){console.log("download error",a.url,a.Bu,a.kx,b);this.R0(a,i,y)}.bind(this));this.rz()}else if(0==this.Kl.length){var k=5>=this.a1.length;e.LK().then(function(a){this.tz(k,a)}.bind(this))}};k.prototype.R0=function(a,b,d){d?(this.vs.splice(this.vs.indexOf(a),1),this.Kl.splice(this.Kl.indexOf(b),1),this.iF+=a.Bu,this.bl(),this.rz()):
(a.kx=0,a.CD+=1,this.bl(),20<=a.CD?(console.log("Error downloading file: "+a.url+" after "+a.CD+" retries."),this.w2(a.url)?(this.a1.push(a),this.Kl.splice(this.Kl.indexOf(b),1),this.rz()):(this.cancelDownload(),e.LK().then(function(a){this.tz(y,a)}.bind(this)))):(console.log("Error downloading file: "+a.url+" attempt "+a.CD+" of 20. Will retry in 2000ms."),setTimeout(function(){this.vs.splice(this.vs.indexOf(a),1);this.Kl.splice(this.Kl.indexOf(b),1);c(a)?this.Sl.push(a):this.Sl.splice(0,0,a);this.rz()}.bind(this),
2E3)))};k.prototype.Sna=function(a,b){return this.Una(a,b).then(function(){if(!this.w2(a))return this.Tna(a,b)}.bind(this))};k.prototype.Tna=function(a,b){b=b.clone();return 200!=b.status?Promise.reject("response status: "+b.status):caches.open(this.L_).then(function(c){return c.put(a,b)})};k.prototype.Una=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(){C.read().then(function(b){var c=b.value,d=[];if(c){for(;c.length+A>=i;){var e=c.slice(0,i-A);n.push(e);d.push(g(n));n=[];A=0;c=c.slice(e.length,c.length)}0<c.length&&(n.push(c),A+=c.length)}var l=b.done;A&&l&&d.push(g(n));j(d).then(function(){l?a():f()})["catch"](k)})["catch"](k)}function g(a){if(0==a.length)return new Uint8Array(0);var b=0;a.forEach(function(a){b+=a.length});for(var c=new Uint8Array(b),d=0,e=0;e<a.length;d+=a[e].length,e++)c.set(a[e],d);return c}function j(a){if(0==
a.length)return Promise.resolve();var b=a.shift();return e.zba(c,b).then(function(){j(a)})}function k(a){console.log("Error writing response to file system:",a);e.rta(c).then(function(){d("Error reading response body")})}var n=[],A=0,C=b.body.getReader();f()})};var n=".bmp,.gif,.jpeg,.jpg,.m3u8,.m4a,.m4v,.mp3,.mp4,.ogg,.ogv,.otf,.png,.svg,.tif,.tiff,.ts,.tts,.webm,.woff,.woff2".split(",");k.prototype.w2=function(a){var a=(new d(a)).pathname,b="."+a.split(".").pop().toLowerCase();return 0<=n.indexOf(b)&&
0>a.indexOf("loading/")};k.prototype.bl=function(){var a=this.iF;this.vs.forEach(function(b){a+=b.kx});this.Ad(100*a/this.l7)};b.prototype.fetch=function(){return fetch(this.fo).then(function(a){if(this.PN)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!==q&&(c=parseInt(b,10));this.mB=a.body.getReader();var e=y,f=function(a){this.PN?a.close():e=o}.bind(this),j=function(a){return this.mB.read().then(function(b){var e=
b.value;e&&(d+=e.byteLength,a.enqueue(e));b.done&&(c=d,i(a));this.pi({Bu:c,kx: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=y,this.mB=q)}.bind(this);return new Response(new ReadableStream({start:function(a){return f(a)},pull:function(a){return j(a)},cancel:function(){i()}}))}.bind(this))};b.prototype.cancel=function(){this.PN=o;this.mB&&this.mB.cancel()};a.rm=function(a){return(new k(a,[])).rm()};return a});
define("dr","require,eD,jquery.mod,kd,em,u,bQ,iu,iB,hT,cx".split(","),function(a){function b(a){r=a}var c=a("eD"),e=a("jquery.mod"),d=a("kd"),f=a("em"),i=a("u"),j=a("bQ"),k=a("iu"),n=a("iB"),g=a("hT"),l=a("cx"),r=q;window.addEventListener("beforeinstallprompt",b);var p=c.extend(f,function(a){f.call(this);this.$a=a;this.k="initial";this.SS=this.MI=this.cg=q;this.zS=y;this.zs=q;this.AJ=m;this.rs=r;this.KG=p.z$();this.UQ=n.sg("vr");if(!this.rs&&!this.KG){window.removeEventListener("beforeinstallprompt",
b);window.addEventListener("beforeinstallprompt",this.Ija.bind(this))}this.KG||window.addEventListener("appinstalled",this.wda.bind(this))});p.prototype.aX=function(a){this.MI=a;this.Zh=n.nr(this.MI.get(TDV.PlayerSettings.BASE_DIR_URL)||n.getDirectory(this.MI.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL)));if(this.Zh[this.Zh.length-1]!="/")this.Zh=this.Zh+"/";this.cg=new s(this.Zh);this.AJ=this.t5=a.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);this.pia=n.parse(n.getDirectory(window.location.href)).pathname;
this.vga=n.Sq(n.nr("files.json",this.Zh),this.t5);a=TDV.xa.F9();this.SS=n.Sq(this.MI.get(TDV.PlayerSettings.SERVICE_WORKER_URL),"swv="+a.MAJOR+"."+a.MINOR);this.cg=new s(this.Zh);this.cg.bind(d.T,this.goa,this,o);this.cg.load()};p.prototype.Jx=function(){return this.cg.state==s.qy};p.prototype.I8=function(){return this.k=="can_install"&&!this.UQ};p.prototype.K8=function(){return this.Jx()&&this.AJ!=this.cg.version&&!this.UQ};p.prototype.H8=function(){return this.cg.state!=s.GX&&!this.UQ};p.prototype.i$=
function(){if(this.k=="can_install")if(this.rs){this.rs.userChoice.then(function(a){a.outcome!="accepted"&&this.Pb("unavailable")}.bind(this));this.rs.prompt().then(function(){this.rs=q}.bind(this))}else this.bP()};p.prototype.cancel=function(){if(this.k=="downloading"){if(this.zs){this.zs.cancelDownload();this.zs=q}this.cg.rm();this.Pb("unavailable")}};p.prototype.rm=function(){j.rm(this.Zh);this.cg.rm()};p.prototype.goa=function(){this.$a.get("downloadEnabled")!==o?this.Pb("unavailable"):i.browser()!=
i.Vi||i.fd()==i.rr||i.fd()==i.Fu?this.Pb("unavailable"):this.SS?"serviceWorker"in navigator?this.Jx()&&!this.K8()?this.Pb("unavailable"):navigator.onLine?this.xla():this.Pb("unavailable"):this.Pb("unavailable"):this.Pb("unavailable")};p.prototype.Pb=function(a){if(this.k!=a){this.k=a;a=["can_install","unavailable"].indexOf(this.k)>=0;if(this.zS!=a)(this.zS=a)&&this.trigger(d.Ub)}};p.prototype.xla=function(){this.Pb("registering_sw");navigator.serviceWorker.register(this.SS,{scope:this.pia}).then(function(){this.Y5(o)}.bind(this))["catch"](function(){this.Y5(y)}.bind(this))};
p.prototype.Y5=function(a){if(a)if(i.gf())this.Pb("can_install");else if(this.KG&&this.cg.state==s.DL){this.Pb("can_install");this.bP()}else if(this.rs)this.Pb("can_install");else{this.Pb("sw_registered");setTimeout(function(){this.k=="sw_registered"&&this.Pb("can_install")}.bind(this),3E3)}else this.Pb("unavailable")};p.prototype.Ija=function(a){this.rs=a;this.k=="sw_registered"&&this.Pb("can_install")};p.prototype.wda=function(){this.k=="sw_registered"&&this.Pb("can_install");this.bP()};p.prototype.bP=
function(){this.Pb("downloading");this.trigger(d.Xj);this.A7(0);this.gja()};p.prototype.gja=function(){var a=n.Sq(this.vga,"nc="+(new Date).getTime());e.getJSON(a,function(a){if(this.k=="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<d.length;e++)b.indexOf(d[e])<0&&b.push(d[e])}}var f=[];b.indexOf("mobilevr2gen")>=0&&i.AK()?f.push("mobilevr2gen"):b.indexOf("mobilevr")>=0&&i.gf()?f.push("mobilevr"):b.indexOf("mobile")>=0&&i.Qa()?f.push("mobile"):
b.indexOf("desktop")>=0&&!i.Qa()&&f.push("desktop");b=[];for(c in a){if(d=a[c].tags){var g=y;if(Array.isArray(d))for(var e=0,k=d.length;e<k&&!g;e++)g=f.indexOf(d[e])>=0;else g=f.indexOf(d)>=0;if(!g)continue}d=n.nr(c,this.Zh);b.push(new j.File(d,a[c].size))}var l=(new n(window.location.pathname,window.location.href)).toString();b.filter(function(a){return a.url==l}).length==0&&b.push(new j.File(l,1024));this.zs=new j.Files(this.Zh,b,this.A7.bind(this),this.Q0.bind(this));this.zs.requestStorage().then(function(a){this.cg.storage=
a?s.wy:s.CM;this.cg.state=s.DL;this.cg.version=this.AJ;this.cg.save();this.zs.download()}.bind(this))["catch"](function(){this.Q0(y,m)}.bind(this))}}.bind(this))};p.prototype.A7=function(a){this.trigger(new g(d.ic,a))};p.prototype.Q0=function(a,b){this.zs=q;this.Pb("unavailable");if(a){this.cg.state=s.qy;this.cg.save()}a?this.trigger(d.Ia,{success:o}):b?this.trigger(d.Ia,{success:y,error:p.IX}):i.gf()?this.trigger(d.Ia,{success:y,error:p.HX}):this.KG?this.trigger(d.Ia,{success:y,error:p.IX}):this.trigger(d.Ia,
{success:y,error:p.JX})};p.z$=function(){return n.um("installed",y)};p.hta=function(a,b){var c=new p.iM(a);c.bind(d.T,function(){var d=y;c.state==p.iM.qy&&(d=p.z$()?o:!navigator.onLine);d?k.toURL(a,c.storage==p.iM.wy).then(function(a){b(a)}):b(a)},this,o);c.load()};p.JX="launchFromHomeScreen";p.HX="addToBookmark";p.IX="errorDownloading";var s=c.extend(f,function(a){f.call(this);this.Zh=a;this.PQ="installation_state_"+a;this.Tka=n.parse(this.Zh).pathname+"installation_state.json";this.state=this.storage=
this.version=m;this.f6()});s.prototype.load=function(){if(this.hja()&&this.state==s.qy)this.d7(this.storage==s.wy).then(function(){this.trigger(d.T)}.bind(this))["catch"](function(){this.d7(this.storage!=s.wy).then(function(){this.storage=this.storage==s.CM?s.wy:s.CM;this.KS();this.trigger(d.T)}.bind(this))["catch"](function(){this.state=s.DL;this.KS();this.trigger(d.T)}.bind(this))}.bind(this));else this.trigger(d.T)};s.prototype.save=function(){this.KS();this.state==s.qy&&this.$la()};s.prototype.hja=
function(){var a=l.getItem(this.PQ);if(!a)return y;this.Mga(a);return o};s.prototype.KS=function(){l.setItem(this.PQ,this.k7())};s.prototype.d7=function(a){return new Promise(function(b,c){k.toURL(this.Zh+"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.$la=function(){k.zba(this.Tka,this.k7(),"text/json")};s.prototype.k7=function(){var a={};a.version=this.version;a.storage=this.storage;a.state=
this.state;return JSON.stringify(a)};s.prototype.Mga=function(a){this.Lga(JSON.parse(a))};s.prototype.Lga=function(a){this.version=a.version;this.storage=a.storage;this.state=a.state};s.prototype.rm=function(){l.removeItem(this.PQ);this.f6()};s.prototype.f6=function(){this.version="";this.storage=s.wca;this.state=s.GX};s.wca="unkonwn";s.CM="temporary";s.wy="persistent";s.GX="not started";s.DL="started";s.qy="completed";p.iM=s;return p});
define("ht","require,eD,kd,kc,u,dr,dW,ec,bc,c,jM,d,gj".split(","),function(a){function b(a){var b=new j;b.M({label:a,backgroundColor:"#0071BC",borderRadius:2,fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",fontSize:14,paddingLeft:14,paddingRight:14,height:31,verticalAlign:n.$b});return b}var c=a("eD"),e=a("kd"),d=a("kc"),f=a("u"),i=a("dr"),j=a("dW"),k=a("ec"),n=a("bc"),g=a("c"),l=a("jM"),r=a("d"),p=a("gj"),a=c.extend(l,function(a,b){l.call(this);this.$a=a;this.Hd=b;this.Hd.bind(e.Ub,
this.Iia,this,o);this.Hd.bind(e.Xj,this.Fia,this,o);this.Hd.bind(e.ic,this.Hia,this,o);this.Hd.bind(e.Ia,this.Gia,this,o);this.X="hidden";this.CC=m;this.bS=y;this.Ad=m;this.Ff=this.pn=this.bs=this.es=this.cs=this.SI=this.la=q;this.tda();this.M({backgroundColor:"#000000",gap:18,height:55,width:"100%",paddingLeft:28,paddingRight:28,verticalAlign:n.$b,layout:g.$d});this.Wd()});a.prototype.Iia=function(){if(this.Hd.I8()||this.Hd.Jx()&&this.Hd.H8()){this.X="ready";this.bS&&this.L6()}else this.X="hidden";
this.Wd()};a.prototype.Fia=function(){this.X="installing";this.Wd()};a.prototype.Hia=function(a){this.Ad=a.Ih;this.Wd()};a.prototype.Gia=function(a){this.X=a.data.success?"installed":"failed";this.Z0=a.data.error;this.Wd()};a.prototype.oi=function(){this.Rna()};a.prototype.pH=function(){if(!this.bS){this.bS=o;this.X=="ready"&&this.L6()}};a.prototype.L6=function(){this.CC=setTimeout(function(){this.CC=q;this.Fka()}.bind(this),5E3);this.Wd()};a.prototype.Rna=function(){this.E5();this.CC&&clearTimeout(this.CC);
this.CC=q};a.prototype.Fka=function(){this.E5();if(this.X=="ready"){this.X="hidden";this.Wd()}};a.prototype.tda=function(){this.bind(e.qc,this.oi,this);this.$a.bind(e.qc,this.pH,this);this.$a.bind(e.ob,this.pH,this)};a.prototype.E5=function(){this.unbind(e.qc,this.oi,this);this.$a.unbind(e.qc,this.pH,this);this.$a.unbind(e.ob,this.pH,this)};a.prototype.Ba=function(){l.prototype.Ba.call(this);if(this.la==q){this.la=new p;this.la.M({fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",
fontSize:14,text:d("download-tour")});this.ia(this.la)}if(this.cs==q){this.cs=b(d("download"));this.ia(this.cs);this.cs.bind(e.U,this.eea,this,o)}if(this.es==q){this.es=b(d("refresh-downloaded"));this.ia(this.es);this.es.bind(e.U,this.kea,this,o)}if(this.bs==q){this.bs=b(d("delete-downloaded"));this.ia(this.bs);this.bs.bind(e.U,this.dea,this,o)}if(this.SI==q){this.SI=new r;this.SI.M({width:"100%"});this.ia(this.SI)}if(this.pn==q){this.pn=new k;this.pn.M({backgroundColor:"#ffffff",borderRadius:2,iconColor:"#000000",
iconLineWidth:1,iconWidth:17,iconHeight:17,height:31,width:31});this.ia(this.pn);this.pn.bind(e.U,this.cea,this,o)}if(this.Ff==q){this.Ff=b(d("cancel"));this.ia(this.Ff);this.Ff.bind(e.U,this.bF,this,o)}f.Qa()&&this.fm();this.Wd()};a.prototype.ik=function(){l.prototype.ik.call(this);f.Qa()&&this.getParent().bind(e.pb,this.fm,this,o)};a.prototype.yi=function(){f.Qa()&&this.getParent().unbind(e.pb,this.fm,this,o);l.prototype.yi.call(this)};a.prototype.fm=function(){var a=this.getParent();if(a){var b=
Math.min(a.ua(),a.Za())/100,c=function(a){return Math.round(a*b)};this.M({gap:c(3.9),height:c(11.9),paddingLeft:c(6),paddingRight:c(6)});this.la&&this.la.M({fontSize:c(3)});[this.cs,this.Ff,this.es,this.bs].forEach(function(a){a&&a.M({borderRadius:c(0.4),fontSize:c(3),paddingLeft:c(3),paddingRight:c(3),height:c(6.7)})});this.pn&&this.pn.M({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.Wd=function(){var a;switch(this.X){case "ready":a=
this.Hd.Jx()?d("downloaded"):d("download-tour");break;case "installing":a=d("downloading");this.Ad!==m&&(a=a+("..."+this.Ad.toFixed(1)+"%"));break;case "installed":a=d("downloaded");break;case "failed":a=this.Z0==i.JX?f.Qa()?d("storage-not-provided-launch-from-homescreen"):d("storage-not-provided-launch-from-desktop"):this.Z0==i.HX?d("storage-not-provided-bookmark"):d("download-failed")}this.la&&this.la.set("text",a);this.cs&&this.cs.set("visible",this.X=="ready"&&!this.Hd.Jx()&&this.Hd.I8());this.bs&&
this.bs.set("visible",this.X=="ready"&&this.Hd.Jx()&&this.Hd.H8());this.es&&this.es.set("visible",this.X=="ready"&&this.Hd.K8());this.Ff&&this.Ff.set("visible",this.X=="installing");this.pn&&this.pn.set("visible",this.X!="installing");this.set("visible",this.X!="hidden")};a.prototype.eea=function(){this.Hd.i$()};a.prototype.kea=function(){this.Hd.i$()};a.prototype.dea=function(){this.Hd.rm();this.X="hidden";this.Wd()};a.prototype.bF=function(){this.Hd.cancel();this.X="hidden";this.Wd()};a.prototype.cea=
function(){this.X=="installing"&&this.Hd.cancel();this.X="hidden";this.Wd()};return a});
define("do","require,eD,cV,kd,kc,u,bc,c,jM,jq,jD,dW,gj,ge".split(","),function(a){function b(a,b){this.text=a;this.wo=b}var c=a("eD"),e=a("cV"),d=a("kd"),f=a("kc"),i=a("u"),j=a("bc"),k=a("c"),n=a("jM"),g=a("jq"),l=a("jD"),r=a("dW"),p=a("gj"),s=a("ge"),a=c.extend(n,function(){n.call(this);this.zk=[];this.Ff=this.ds=this.la=this.Is=this.Ew=this.mm=q;var a=new g;a.set("duration",500);a.set("easing","cubic_in");var b=new l;b.set("duration",500);b.set("easing","cubic_out");this.M({backgroundColor:"#000000",
backgroundOpacity:0.6,horizontalAlign:j.pc,gap:5,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:y})});a.prototype.Ba=function(){n.prototype.Ba.call(this);if(this.mm==q){this.mm=new n;this.mm.M({centerX:0,centerY:0,backgroundColor:"#ffffff",horizontalAlign:j.pc,verticalAlign:j.$b,layout:k.Me,shadow:o,shadowColor:"#000000",shadowHorizontalLength:0,shadowVerticalLength:0,shadowOpacity:0.2});this.ia(this.mm)}if(this.la==q){this.la=new p;this.la.M({fontColor:"#808080",fontWeight:"300",
fontFamily:"Tahoma, Geneva, sans-serif"});this.mm.ia(this.la)}if(this.Is==q){this.Is=new s;this.Is.M({width:"80%"});this.mm.ia(this.Is)}if(this.Ew==q){this.Ew=new n;this.Ew.M({backgroundColor:"#b3b3b3"});this.mm.ia(this.Ew)}if(this.Cg==q){this.Cg=new n;this.Cg.M({horizontalAlign:j.pc,verticalAlign:j.$b,layout:k.$d});this.mm.ia(this.Cg)}if(this.ds==q){this.ds=new r;this.ds.M({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:j.pc,verticalAlign:j.$b,
label:f("yes").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.ds.bind(d.U,this.E_,this,o);this.Cg.ia(this.ds)}if(this.Ff==q){this.Ff=new r;this.Ff.M({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:j.pc,verticalAlign:j.$b,label:f("no").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.Ff.bind(d.U,this.bF,this,o);this.Cg.ia(this.Ff)}};a.prototype.ik=function(){n.prototype.ik.call(this);
this.getParent().bind(d.pb,this.fm,this,o)};a.prototype.yi=function(){this.getParent().unbind(d.pb,this.fm,this,o);n.prototype.yi.call(this)};a.prototype.fm=function(){var a=this.getParent();if(a){var b=a.ua(),a=a.Za();if(i.Qa())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.mm&&this.mm.M({borderRadius:b(1),width:b(80),height:b(40),gap:b(4),shadowBlurRadius:b(1),shadowSpread:b(1)});this.Ew&&this.Ew.M({width:b(60),minHeight:2,height:b(0.25)});
this.Cg&&this.Cg.M({gap:b(5)});this.Ff&&this.Ff.M({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.25)});this.ds&&this.ds.M({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.5)});this.la&&this.la.M({fontSize:b(5)});this.qJ()}};a.prototype.show=function(a,c){this.fm();var d=this.L1(c);d>=0&&this.B5(d);this.pla(new b(a,c));this.fv()};a.prototype.hide=function(a){a=this.L1(a);a>=0&&this.B5(a)};a.prototype.fv=function(){var a=this.getParent();a&&a.Ni(this,a.Ta().length-1)};a.prototype.E_=
function(){this.UE(o)};a.prototype.bF=function(){this.UE(y)};a.prototype.L1=function(a){for(var b=0;b<this.zk.length;b++)if(this.zk[b].wo==a)return b;return-1};a.prototype.qJ=function(){var a=this.X1();if(a){if(a.text.length<20){this.Is.set("visible",y);this.la.set("text",a.text);this.la.set("visible",o)}else{this.la.set("visible",y);this.Is.set("html",this.mha(a.text));this.Is.set("visible",o)}this.Ff.set("visible",a.wo?o:y);this.set("visible",o)}else this.set("visible",y)};a.prototype.mha=function(a){return"<div style=\"color:#808080; font-weight:300; font-family:'Tahoma', 'Geneva', sans-serif; font-size: "+
this.la.get("fontSize")+'px; text-align:center;" >'+a+"</div>"};a.prototype.UE=function(a){var b=this.X1();if(b){b=this.Bha(b.text);this.Kla(b);e(b).each(function(b){b.wo&&b.wo.call(this,a)},this)}};a.prototype.pla=function(a){this.zk.push(a);this.qJ()};a.prototype.Bha=function(a){return e(this.zk).filter(function(b){return b.text==a})};a.prototype.Kla=function(a){this.zk=e(this.zk).filter(function(b){return!e(a).contains(b)});this.qJ()};a.prototype.B5=function(a){this.zk.splice(a,1);a==this.zk.length&&
this.qJ()};a.prototype.X1=function(){return this.zk.length>0?this.zk[this.zk.length-1]:q};return a});
define("ii","require,eD,kd,bS,em,u,je".split(","),function(a){function b(a){for(;a&&a!=document;){if(a.getAttribute("tdvclass")=="Button")return o;a=a.parentNode}return y}var c=a("eD"),e=a("kd"),d=a("bS"),f=a("em"),i=a("u"),j=a("je"),k=[],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){(!i.Qa()||!b(a.target))&&k.forEach(function(b){b(a)});a.preventDefault();a.stopImmediatePropagation()},o);var n=1,c=c.extend(f,
function(a,b){f.call(this);this.sa=a;this.uha=b;this.rR=this.rR.bind(this);this.Wb=this.Wb.bind(this);this.OQ=y;this.LQ=this.LQ.bind(this);this.MQ=this.MQ.bind(this);this.KQ=this.KQ.bind(this);this.NQ=this.NQ.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");k.push(this.rR)});
c.prototype.rR=function(a){var b=this.uha();if(b.length!=0){this.I.innerHTML="";this.OQ=y;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.LQ(a,d)}.bind(this));b.addEventListener("mouseleave",
function(a){this.MQ(a,d)}.bind(this));b.addEventListener("mousedown",function(a){this.KQ(a,d)}.bind(this));b.addEventListener("mouseup",function(a){this.NQ(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));(j.dl()||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.sa.bind(e.ob,this.Wb,this);document.addEventListener("mousedown",this.Wb);this.Kpa=setInterval(this.Jpa.bind(this),200)}};c.prototype.e2=function(){clearInterval(this.Kpa);this.I.parentNode.removeChild(this.I);document.removeEventListener("mousedown",this.Wb);this.sa.unbind(e.ob,this.Wb,this);this.I.style.setProperty("display","none","important")};c.prototype.Jpa=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.Wb=function(){this.e2()};c.prototype.KQ=function(a){this.OQ=o;a.preventDefault();a.stopImmediatePropagation()};c.prototype.NQ=function(a,b){if(this.OQ){this.e2();a.preventDefault();a.stopImmediatePropagation();this.trigger(new d(e.Uh,{index:b}))}};c.prototype.LQ=function(a){a.currentTarget.style.setProperty("color","#ffffff","important");a.currentTarget.style.setProperty("background-color",
"rgba(0, 0, 0, 0.7)","important")};c.prototype.MQ=function(a){a.currentTarget.style.setProperty("color","#000000","important");a.currentTarget.style.setProperty("background-color","","important")};return c});
define("iF",["require","iB","S"],function(a){function b(a){this.sa=a;this.cm={};this.cm[e.dca]="move";this.cm[e.eca]="ew-resize";this.cm[e.gca]="ns-resize";this.cm[e.fca]="nesw-resize";this.cm[e.hca]="nwse-resize";this.cm[e.Qd]="pointer";this.cm[e.Iu]="inherit";this.cm[e.Gc]="default";this.se={};this.se[e.tE]="grab.cur";this.se[e.uE]="grabbing.cur";this.se[e.tY]="N.cur";this.se[e.uY]="NE.cur";this.se[e.kY]="E.cur";this.se[e.xY]="SE.cur";this.se[e.wY]="S.cur";this.se[e.yY]="SW.cur";this.se[e.zY]="W.cur";
this.se[e.vY]="NW.cur";this.se[e.mY]="FN.cur";this.se[e.nY]="FNE.cur";this.se[e.lY]="FE.cur";this.se[e.qY]="FSE.cur";this.se[e.pY]="FS.cur";this.se[e.rY]="FSW.cur";this.se[e.sY]="FW.cur";this.se[e.oY]="FNW.cur";this.K_={}}var c=a("iB"),e=a("S");b.prototype.f9=function(a){return this.Zia(a)?this.U1(a):this.Sia(a)?this.cha(a):this.U1(e.Gc)};b.prototype.pea=function(a){if(!(a in this.K_)){var b=new Image;b.src=this.y1(a);this.K_[a]=b}};b.prototype.Zia=function(a){return a in this.cm};b.prototype.U1=
function(a){return this.cm[a]};b.prototype.Sia=function(a){return this.se[a]};b.prototype.cha=function(a){this.pea(a);return"url("+this.y1(a)+"), default"};b.prototype.y1=function(a){return c.nr(this.sa.get("settings").get(TDV.PlayerSettings.CURSORS_DIR_URL))+"/"+this.se[a]};return b});
define("bM",["cV"],function(a){function b(){this.bo={};this.Nk=[];this.iz=0}b.prototype.push=function(b,e){if(this.bo[e]==m)this.bo[e]=[b],this.Nk.push(e),this.Nk.sort(function(a,b){return a-b}),this.iz++;else{var d=this.bo[e];a(d).contains(b)||(d.push(b),this.iz++)}};b.prototype.h9=Q("iz");b.prototype.isEmpty=function(){return 0==this.Nk.length};b.prototype.U$=function(){if(!this.isEmpty()){var a=this.Nk[0],b=this.bo[a].pop();0==this.bo[a].length&&(delete this.bo[a],this.Nk=this.Nk.slice(1));this.iz--;
return b}};b.prototype.nW=function(){if(!this.isEmpty()){var a=this.Nk[this.Nk.length-1],b=this.bo[a].pop();0==this.bo[a].length&&(delete this.bo[a],this.Nk=this.Nk.slice(0,this.Nk.length-1));this.iz--;return b}};return b});
define("gd","require,cV,eD,eB,bM,X,hV".split(","),function(a){function b(){this.rq=y;this.S4=m;this.V=o;this.wH=this.wH.bind(this);this.qF=new e;this.dI=new e;this.QI=new e;this.LG=new e;this.YO=new e;d.Ha(this.ig,this)}a("cV");a("eD");var c=a("eB"),e=a("bM"),d=a("X"),f=a("hV");b.prototype.clear=function(){this.V=y};b.prototype.iD=function(a){this.qF.push(a,this.Jv(a));this.rB()};b.prototype.hc=function(a){this.dI.push(a,this.Jv(a));this.rB()};b.prototype.La=function(a){this.QI.push(a,this.Jv(a));
this.rB()};b.prototype.oc=function(a){this.LG.push(a,this.Jv(a));this.rB()};b.prototype.Qg=function(a){this.YO.push(a,this.Jv(a));this.rB()};b.prototype.G=function(){this.Woa();this.vpa();this.Yoa()};b.prototype.Woa=function(){do{for(;!this.qF.isEmpty();)this.qF.nW().Ba();this.dI.isEmpty()||this.dI.nW().fa()}while(!this.dI.isEmpty()||!this.qF.isEmpty())};b.prototype.vpa=function(){for(;!this.QI.isEmpty()||!this.LG.isEmpty();){this.vJ();this.cU()}};b.prototype.vJ=function(){for(;!this.QI.isEmpty();){var a=
this.QI.nW();if(a.sva()){var b=a.getParent();if(b){b.La();b.oc()}else a.Aaa(0,0,a.Em(),a.Dm())}}};b.prototype.cU=function(){for(;!this.LG.isEmpty();)this.LG.U$().Oh()};b.prototype.Yoa=function(){for(;!this.YO.isEmpty();)this.YO.U$().pe();c.gta()};b.prototype.rB=function(){if(!this.rq){this.rq=o;this.S4=(new Date).getTime()+500;f.qu(this.wH)}};b.prototype.wH=function(){this.rq=y;this.V&&this.G()};b.prototype.Jv=function(a){return(a=a.getParent())?this.Jv(a)+1:0};b.prototype.ig=function(){this.rq&&
(new Date).getTime()>=this.S4&&this.wH();d.Ha(this.ig,this)};return b});
define("eE","jquery.mod,cV,eD,kd,jM,ii,iF,ba,gd,je,u".split(","),function(a,b,c,e,d,f,i,j,k,n,g){c=c.extend(d,function(b){this.Zu=new k;d.call(this);this.bm(this);this.Dc("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","-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)"});this.ko=a(document.createElement("div"));this.ko.css({position:"absolute",
left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",margin:0});this.ad.append(this.ko);this.ko.append(this.Ab());this.Y6=this.ko.get(0);this.Nb=this.Gb=m;this.Lia=10;this.Dea=500;this.oB=q;this.MO=new i(this);this.qa=new j(this);this.I.append(this.qa.Ab());this.gfa=new f(this,this.v1.bind(this));this.gfa.bind(e.Uh,this.De(this.w3),this,o);this.Y2=o;this.set("contentOpaque",o);this.ns=q;this.dz=[];this.zv(["globalmousemove"]);this.Pda();this.GJ=this.HJ=0;this.lw=1;try{this.HJ=window.top.innerWidth;
this.GJ=window.top.innerHeight;this.dQ=o}catch(c){this.dQ=y}this.b8();this.Kf=new n(b);this.Kf.bind(e.$,function(){this.wP(this.Kf.enabled())},this)});c.prototype.start=function(){if(!this.M6){this.M6=o;this.trigger(e.aj)}};c.prototype.b8=function(){if(this.dQ&&!n.enabled()){this.HJ=window.top.innerWidth;this.GJ=window.top.innerHeight}};c.prototype.clear=function(){this.$x(q);this.W6();this.mga();this.Zu.clear();if(this.ad){this.Ab().remove();this.ko.remove();this.ad=q}this.MO=q;this.Kf.nba();this.Kf=
q};c.prototype.vua=N("Y2");c.prototype.wP=function(a){a?this.e6():this.Oea()};c.prototype.On=function(){this.nA=this.lh=this.ko.width();this.mA=this.kh=this.ko.height()};c.prototype.$x=function(a){if(this.ns!=a){this.ns!=q&&this.ns.zoa();this.ns=a;for(var c=[];a!=q;){c=[a].concat(c);a=a.getParent()}for(var a=this.dz.length-1,d=o;a>=0&&d;a--)b(c).contains(this.dz[a])?d=y:this.dz.pop().Boa();for(a=0;a<c.length;a++)b(this.dz).contains(c[a])||c[a].Coa();this.dz=c;this.ns!=q&&this.ns.yoa();this.qa.$x(this.ns)}};
c.prototype.eia=function(a){var b=this.Fz(a);this.z2(a,b.x,b.y)?a.preventDefault():this.$x(q)};c.prototype.a2=function(a){var b=this.Es(a);this.z2(a,b.x,b.y)?a.preventDefault():this.$x(q)};c.prototype.v1=function(){return[]};c.prototype.w3=E();c.prototype.z2=function(a,b,c){return this.Tia(a.target)&&b>=0&&c>=0&&b<this.W&&c<this.da};c.prototype.Tia=function(a){if(!this.ad)return y;for(var b=this.ad.get(0);a;){if(a===b)return o;a=a.parentElement}return y};c.prototype.Pda=function(){this.zv(["globalresize"]);
this.SN=setInterval(b.bind(function(){this.T_()},this),this.Dea)};c.prototype.mga=function(){this.oz(["globalresize"]);if(this.SN){clearInterval(this.SN);this.SN=q}};c.prototype.T_=function(){this.Kf.enabled()?this.e6():this.b8();var a=this.Y6.clientWidth,b=this.Y6.clientHeight;if(this.Gb!=a||this.Nb!=b){this.Gb=a;this.Nb=b;this.Jna()}};c.prototype.e6=function(){var a;if(this.dQ&&(g.sd()==g.wX&&g.browser()==g.Vi||g.sd()==g.Ph)){var b=n.dl();a=b.clientWidth;var b=b.clientHeight,c=(a>b?a:b)/(this.HJ>
this.GJ?this.HJ:this.GJ),d=Math.round(a/c),e=Math.round(b/c);this.lw=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.lw=1}this.ko.css(a)};c.prototype.Oea=function(){this.ko.css({position:"abolute",left:0,top:0,right:0,
bottom:0,width:"auto",height:"auto",transform:""});this.lw=1};c.prototype.Jna=function(){this.W6();var a=this;this.oB=setTimeout(function(){a.oB=q;a.La()},this.Lia)};c.prototype.W6=function(){if(this.oB){this.oB=q;clearTimeout(this.oB)}};c.prototype.dia=function(){this.T_()};c.prototype.FP=function(){return b(d.prototype.FP.call(this)).defaults({globaltouchmove:[{target:a(document),name:"touchmove",handler:this.De(this.eia)}],globalmousemove:[{target:a(document),name:"mousemove",handler:this.De(this.a2)},
{target:a(window),name:"mouseout",handler:this.De(this.a2)}],globalresize:[{target:a(window),name:"resize",handler:this.De(this.dia)}]})};return c});
define("ez","require,jquery.mod,kr,bE,je,kd,em,kc,u".split(","),function(a){function b(){p=TDV.xa.Cm();var a=r||p;if(l!=a){l=a;g.trigger(i.$)}a=!!r&&p!=r&&n.Qa();if(s!=a){if(!t){t=c("<div/>");t.css({position:"fixed","z-index":e.Oba,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});t.html(['<div style="box-sizing:border-box; padding:0 10vmin; display:table; height:100%; width:100vw;">\n<div style="vertical-align:middle; text-align:center; display:table-cell;">','<img style="width:22vmin" src="'+
d.uy+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+k("rotate-device")+"</div>","</div>\n</div>"].join("\n"));u=t.find("img")}s&&t.detach();(s=a)&&(f.enabled()?c(f.dl()):c("body")).append(t)}s&&u.css("transform",l==g.qca?"translate(-11%, 0) rotate(-90deg)":"none")}var c=a("jquery.mod"),e=a("kr"),d=a("bE"),f=a("je"),i=a("kd"),j=a("em"),k=a("kc"),n=a("u"),g=new j;g.Mva=TDV.xa.oM;g.qca=TDV.xa.pM;g.LD=
function(a){if(r!=a){r=a;b()}};g.p9=function(){return r};g.get=function(){return l};var l=m,r=m,p=m,s=y,t=q,u=q;window.addEventListener("resize",function(){b();setTimeout(b,500)},o);try{window.screen.orientation.addEventListener("change",b)}catch(v){window.addEventListener("orientationchange",b,y)}b();return g});
define("gb","require,eD,cV,kd,bS,bW,dx,jd,kc,iV,fC,A,ht,do,cN,ds,jx,ig,u,fq,dr,bP,gz,iB,bj,cU,eE,jM,cm,je,ie,ez,ip,cx".split(","),function(a){var b=a("eD"),c=a("cV"),e=a("kd"),d=a("bS"),f=a("bW"),i=a("dx"),j=a("jd"),k=a("kc"),n=a("iV"),g=a("fC"),l=a("A"),r=a("ht"),p=a("do");UserInteractionWindow=a("cN");Renderer=a("ds");TextureUtil=a("jx");Capabilities=a("ig");Device=a("u");Gyroscope=a("fq");Installer=a("dr");LibsLoader=a("bP");Preloader=a("gz");URL=a("iB");VR=a("bj");ButtonMode=a("cU");Application=
a("eE");Container=a("jM");VerticalLayout=a("cm");Fullscreen=a("je");MediaActivation=a("ie");Orientation=a("ez");UserInitiatedAction=a("ip");Storage=a("cx");var s=b.extend(Application,function(a){Application.call(this,a);this.Hd=new Installer(this);this.P0=new r(this,this.Hd);this.Dl=new Container;this.Dl.M({visible:o,width:"100%",height:"100%"});this.$v=new p;this.Zw=new UserInteractionWindow;this.CF=new l(this);a=new VerticalLayout;a.cL(0);this.JD(a);this.jf(o);this.bind(e.L("settings"),this.uka,
this,o);this.AJ=TDV.xa.F9();Orientation.bind(e.$,this.gka,this,o);this.hea=new n(this,"buttonMute",ButtonMode.Hc);this.hea.bind(e.U,this.b4,this,o);this.nea=new n(this,"buttonUnmute",ButtonMode.Hc);this.nea.bind(e.U,this.u4,this,o);this.gF=new n(this,"buttonToggleMute",ButtonMode.Xg);this.gF.bind(e.Wf,this.b4,this,o);this.gF.bind(e.Wg,this.u4,this,o);this.bind(e.L("mute"),this.cka,this);this.gF.set("pressed",this.get("mute"));this.fea=new n(this,"buttonEnterFullscreen",ButtonMode.Hc);this.fea.bind(e.U,
this.A3,this,o);this.gea=new n(this,"buttonExitFullscreen",ButtonMode.Hc);this.gea.bind(e.U,this.B3,this,o);this.dF=new n(this,"buttonToggleFullscreen",ButtonMode.Xg);this.dF.bind(e.Wf,this.A3,this,o);this.dF.bind(e.Wg,this.B3,this,o);this.dF.set("pressed",this.get("fullscreenEnabled"));this.bind(e.L("fullscreenEnabled"),this.Rja,this,o);this.set("fullscreenEnabled",this.Kf.enabled());this.set("mouseWheelEnabled",o);this.set("backgroundPreloadEnabled",o);this.set("defaultVRPointer","laser");this.set("downloadEnabled",
y);this.set("mediaActivationMode","window");this.set("fullscreenFallback","out_of_frame");this.set("defaultMenu",["fullscreen","mute","rotation"]);this.bind(e.aj,this.wka,this,o);[e.ob,e.Lb,e.cp,e.sE,e.rE].forEach(function(a){this.bind(a,function(a){this.trigger(new d(e.nE,{$aa:a}))},this,o)}.bind(this));VR.bind(e.$,function(){VR.isPresenting()?Orientation.LD(m):Orientation.LD(Application.prototype.get.call(this,"lockedOrientation"))},this);this.Kf.bind(e.$,function(){var a=Orientation.p9();Orientation.LD(m);
Orientation.LD(a)},this)});s.QX="orientationChange";i.A("Player",s).fua().B("Container").R({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",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"}).wua().Sg({logCapabilities:function(){this.nja()},activateAudio:function(a){this.Zca(a)}}).Rg([e.aj,s.QX,e.nE]);s.prototype.wP=function(a){Application.prototype.wP.apply(this,arguments);this.set("fullscreenEnabled",a)};s.prototype.ta=
function(){Application.prototype.ta.call(this);this.f("mute",y);this.f("fullscreenEnabled",y)};s.prototype.Ba=function(){Application.prototype.Ba.call(this);this.P0.getParent()!=this&&this.ia(this.P0);if(this.Dl.getParent()!=this){this.ia(this.Dl);this.Dl.ia(this.CF);this.Dl.ia(this.$v);this.Dl.ia(this.Zw);setTimeout(function(){g.BW(this)}.bind(this),100)}};s.prototype.Zla=function(a){var b=[];this.$v&&b.push(this.$v);this.Zw&&b.push(this.Zw);this.CF&&b.push(this.CF);for(var c=o,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)};s.prototype.fa=function(){this.s5||(this.s5=c.difference(this.Pha(),["visible","includeInLayout","state","left","right","top","bottom","centerX","centerY","width","height","minWidth","minHeight","maxWidth","maxHeight","actualWidth","actualHeight","paddingLeft","paddingTop","paddingRight","paddingBottom"]));this.Xa(this.s5,{},[this.Dl],o,o);Application.prototype.fa.call(this);this.pwa===
o&&this.owa()};s.prototype.set=function(a,b){switch(a){case "children":this.Dl.set(a,this.Zla(b));return;case "creationPolicy":this.Dl.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.Kf.available()&&b;break;case "fullscreenFallback":Fullscreen.NW(b);break;case "lockedOrientation":Orientation.LD(b);
break;case "installAvailable":b=this.Hd.ready();break;case "mouseWheelEnabled":this.vua(URL.um("mousewheelenabled",b));break;case "backgroundPreloadEnabled":this.nma(b);break;case "vrPolyfillScale":VR.Gua(b);break;case "desktopMipmappingEnabled":TextureUtil.Uta(b);break;case "mobileMipmappingEnabled":TextureUtil.uua(b)}Application.prototype.set.call(this,a,b)};s.prototype.get=function(a,b){switch(a){case "children":case "creationPolicy":return this.Dl.get(a,b);case "touchEnabled":return this.pj;case "touchDevice":return Device.oX();
case "isMobile":return Device.Qa();case "orientation":return Orientation.get();case "lockedOrientation":return Orientation.p9();case "gyroscopeAvailable":return Gyroscope.available;case "cardboardAvailable":case "vrAvailable":return VR.available();case "fullscreenAvailable":return this.Kf.available();case "vrPolyfillScale":return VR.Ara();case "installAvailable":return this.Hd.ready();case "surfaceSelectionAvailable":return Renderer.fba();default:return Application.prototype.get.apply(this,arguments)}};
s.prototype.b4=function(){this.set("mute",o)};s.prototype.u4=function(){this.set("mute",y)};s.prototype.cka=function(){this.gF.set("pressed",this.get("mute"))};s.prototype.A3=function(){this.set("fullscreenEnabled",o)};s.prototype.B3=function(){this.set("fullscreenEnabled",y)};s.prototype.Rja=function(){this.get("fullscreenEnabled")?this.Kf.Eh():this.Kf.Pd();this.dF.set("pressed",this.get("fullscreenEnabled"));this.set("fullscreenEnabled",this.Kf.enabled())};s.prototype.uka=function(){var a=this.get("settings");
if(a){LibsLoader.jl(a);Preloader.aX(a);this.Hd.aX(a)}};s.prototype.nma=function(a){Preloader.enabled(a)};s.prototype.v1=function(){if(URL.sg("debug"))return[];var a=[];this.ov=[];(this.get("menu")||[]).forEach(function(b){var c=b.get("label");a.push(b.get("label"));c&&this.ov.push(function(){b.trigger("click")})}.bind(this));var b=this.get("defaultMenu",[]);if(b.indexOf("rotation")>=0){var c=this.vm("PanoramaPlayer");if(c.length){a.push(c[0].get("mouseControlMode")==f.vr?k("change-to-drag-and-release"):
k("change-to-click-and-move"));this.ov.push(this.moa.bind(this))}}if(b.indexOf("fullscreen")>=0&&this.Kf.available()){a.push(this.Kf.enabled()?k("exit-fullscreen"):k("enter-fullscreen"));this.ov.push(this.koa.bind(this))}if(b.indexOf("mute")>=0){a.push(this.get("mute")?k("unmute"):k("mute"));this.ov.push(this.loa.bind(this))}b=[].concat(j.name?[j.name]:[],j.Dqa!="false"?j.pD?["v:"+j.pD+"."+j.tD]:["v:"+j.tD]:[]).join(" ");if(b!=""){a.length>0&&a.push("");a.push(b);this.ov.push(this.Ika.bind(this))}return a};
s.prototype.w3=function(a){this.ov[a.data.index]()};s.prototype.moa=function(){var a=this.vm("PanoramaPlayer"),b=a[0].get("mouseControlMode")==f.vr?f.Pm:f.vr;a.forEach(function(a){Storage.setItem(t,b);a.set("mouseControlMode",b)})};s.prototype.wka=function(){Storage.getItem(t)==f.Pm&&this.vm("PanoramaPlayer").forEach(function(a){a.set("mouseControlMode",f.Pm)});URL.sg("vr")&&VR.Eh()};s.prototype.koa=function(){this.Kf.toggle()};s.prototype.loa=function(){this.set("mute",!this.get("mute"))};s.prototype.Ika=
function(){j.yba&&window.open(j.yba,"_blank")};s.prototype.gka=function(){this.trigger(s.QX)};s.prototype.nja=function(){b.Iqa(o);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();k.log();VR.log()};s.prototype.Zca=function(a){if(MediaActivation.C8()!==y)if(MediaActivation.C8()===o)UserInitiatedAction.tX(a);else{MediaActivation.vba(a);MediaActivation.haa(this)}};var t="tdvp_"+window.location.pathname+"_rotation_mode";return s});define("bK",["require","eD","im","kd","dx"],function(a){var b=a("eD"),c=a("im"),e=a("kd"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("PlayerMenuItem",b).B("Object").R({label:"string"}).Rg([e.U]);return b});
define("K","require,eD,im,kd,eQ,dx,hi".split(","),function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("eQ"),f=a("dx"),i=a("hi"),a=b.extend(c,function(){c.call(this);this.set("visible",y);this.set("state",d.K);this.set("showDuration",1E3);this.set("hideDuration",1E3);this.set("darkenBackground",o);this.set("lookAwayToHide",o);this.set("lookAwayToHideTime",2E3);this.set("showEasing","linear");this.set("hideEasing","linear");this.bind(e.L("state"),function(){this.trigger(e.Um)},this,o);this.Vd=m});a.prototype.show=
function(){this.set("visible",o)};a.prototype.hide=function(){this.set("visible",y)};a.prototype.play=function(){this.set("state",d.N)};a.prototype.pause=function(){this.set("state",d.CE)};a.prototype.stop=function(){this.set("state",d.K)};f.A("PopupPanoramaOverlay",a).B("PanoramaOverlay").R({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]"}).Sg({hide:a.prototype.hide,pause:a.prototype.pause,play:a.prototype.play,show:a.prototype.show,stop:a.prototype.stop}).fc([e.Ia,e.Pu,e.Jr,e.Um]).Rg([e.U]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Vd===m)this.Vd=i.Cra(this);return this.Vd}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=y;switch(a){case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "rotationZ":case "yaw":case "playbackPositions":this.Vd=
m;d=o}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.L("playbackPositions"))};return a});define("ke",["cV","eD","z","dx"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("ProgressBar",a).B("UIComponent").R({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("dC",["require","eD","im","dx","kd"],function(a){var b=a("eD"),c=a("im"),e=a("dx"),a=a("kd"),b=b.extend(c,function(){c.call(this)});e.A("RotationalCameraMovement",b).B("Object").R({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"}).fc([a.Ia]);return b});
define("bI",["eD","dj","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideInEffect",a).B("Effect").R({from:"enum[left, top, right, bottom]"});return a});define("fS",["eD","fm","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideOutEffect",a).B("Effect").R({to:"enum[left, top, right, bottom]"});return a});
define("jF",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),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").R({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("dt",["require","eD","dx","ia"],function(a){var b=a("eD"),c=a("dx"),e=a("ia"),a=b.extend(e,function(){e.call(this)});c.A("SphericPanoramaFrame",a).B("PanoramaFrame").R({sphere:"or[ImageResource, Video360Resource]",stereoSphere:"or[ImageResource]"});a.prototype.w$=function(){var a=this.get("sphere");return a&&c.sb("Video360Resource",a)};return a});
define("cp","cV,eD,x,jM,bc,N,gj".split(","),function(a,b,c,e,d,f,i){var j=b.extend(e,function(a){e.call(this);this.Dc("Tab");this.MR=a;this.xh="";this.DT=y;this.F2=this.la=q;this.CU=this.BU=y;this.set("childrenInteractionEnabled",y);this.set("contentOpaque",o)});j.prototype.ta=function(){e.prototype.ta.call(this);this.f("horizontalAlign",d.pc);this.f("verticalAlign",d.$b);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")};j.prototype.Xaa=function(a){if(this.BU!=a){this.BU=a;this.CU=o;this.hc()}};j.prototype.Ba=function(){e.prototype.Ba.call(this);if(this.la==q){this.la=new i;this.la.set("horizontalAlign","center");this.ia(this.la)}};j.prototype.ik=function(){e.prototype.ik.call(this);this.F2=c.watch(this.MR,"label",this.Uja,this);this.x6(this.MR.get("label"))};
j.prototype.DS=function(){e.prototype.DS.call(this);this.F2.unwatch()};j.prototype.Uja=function(){var a=this.MR.get("label");this.x6(a?a:"")};j.prototype.x6=function(a){if(this.xh!=a){this.xh=a;this.DT=o;this.hc()}};j.prototype.fa=function(){if(this.DT){this.DT=y;this.la.set("text",this.xh)}if(this.CU){this.CU=y;this.la.set("direction",this.BU?f.Me:f.$d)}this.Xa(j.GZ,j.Wu,[this.la],o,o);e.prototype.fa.call(this)};j.GZ=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration",
"textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];j.Wu={};a(j.GZ).each(function(a){j.Wu[a]=a});return j});define("dw",[],function(){return{ty:"normal",Ju:"inverse",BX:"center"}});
define("ch","cV,eD,Y,S,kd,jM,bc,c,cp,dw,bi".split(","),function(a,b,c,e,d,f,i,j,k,n,g){b=b.extend(f,function(){f.call(this);this.Dc("TabPanel");this.Vc=-1;this.st=y;this.UB=[];this.$I=y;this.Ql=[];this.OR=y;this.TB=[];this.he=this.af=q;this.ut(y)});b.prototype.ta=function(){f.prototype.ta.call(this);this.f("pages",[]);this.f("selectedIndex",-1);this.f("tabsSize",25);this.f("tabsPosition",g.eb);this.f("tabsGap",0);this.f("tabsPadding",10);this.f("tabsAlign",n.ty);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.Ba=function(){f.prototype.Ba.call(this);if(this.he==q){this.he=new f;this.he.ut(y);this.ia(this.he)}if(this.af==q){this.af=new f;this.af.ut(y);this.ia(this.af)}};b.prototype.set=function(a,b){if(a=="pages")this.Cua(b||[]);else if(a=="selectedIndex")this.$W(b);else if(a=="layout")b=j.Cva;f.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){return a==
"pages"?this.Ql:a=="selectedIndex"?this.Vc:f.prototype.get.call(this,a,b)};b.prototype.$W=function(a){if(this.Vc!=a){this.Vc=a;this.Vc=Math.min(Math.max(this.Vc,-1),this.Ql.length);this.st=o;this.hc();this.trigger(d.$)}};b.prototype.Cua=function(b){if(!a.isEqual(this.Ql,b)){this.Ql=b;this.OR=o;this.hc()}};b.prototype.boa=function(b){this.UB=a(this.UB).union([b.source]);this.$I=o;this.hc()};b.prototype.aoa=function(b){this.UB=a(this.UB).difference([b.source]);this.$I=o;this.hc()};b.prototype.$na=function(b){this.$W(a(this.TB).indexOf(b.source))};
b.prototype.fa=function(){var b=y,r=y,p=y,s=y,t=y,u=this.j("tabsPosition"),v=this.j("tabsAlign");if(this.OR){this.TB=[];this.af.aaa();this.he.aaa();a(this.Ql).forEach(function(b){var c=new k(b);c.ut(o);c.bind(d.Ic,a.bind(this.boa,this));c.bind(d.jc,a.bind(this.aoa,this));c.bind(d.ob,a.bind(this.$na,this));this.TB.push(c);this.af.ia(c);b.M({top:m,left:m,right:m,bottom:m,width:"100%",height:"100%"});this.he.ia(b)},this);this.Vc=Math.min(Math.max(this.Vc,0),this.Ql.length-1);this.OR=y;r=b=t=o}if(this.n("tabsPosition")){this.o("tabsPosition");
s=r=b=o}if(this.st){this.st=y;p=r=t=o}if(this.$I){this.$I=y;p=o}a(["tabsAlign","tabsGap","tabsSize"]).forEach(function(a){if(this.n(a)){this.o(a);b=o}},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.o(a);s=r=o}},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.o(a);r=o}},this);a(["pagePaddingLeft","pagePaddingTop","pagePaddingRight","pagePaddingBottom"]).forEach(function(a){if(this.n(a)){this.o(a);s=o}},this);this.n("backgroundColorDirection")&&this.o("backgroundColorDirection");if(b){switch(u){case g.ka:this.af.M({left:0,
right:m});break;case g.Fa:this.af.M({left:m,right:0});break;case g.eb:this.af.M({bottom:m,top:0});break;case g.cb:this.af.M({bottom:0,top:m})}switch(u){case g.ka:case g.Fa:this.af.M({layout:j.Me,top:0,bottom:0,height:m,width:this.j("tabsSize")});switch(v){case n.Ju:this.af.set("verticalAlign",i.cb);break;case n.BX:this.af.set("verticalAlign",i.$b);break;default:this.af.set("verticalAlign",i.eb)}break;case g.eb:case g.cb:this.af.M({layout:j.$d,left:0,right:0,height:this.j("tabsSize"),width:m});switch(v){case n.Ju:this.af.set("horizontalAlign",
i.Fa);break;case n.BX:this.af.set("horizontalAlign",i.pc);break;default:this.af.set("horizontalAlign",i.ka)}}this.af.set("gap",this.j("tabsGap"))}if(r)for(var x=0;x<this.Ql.length;x++){var w=this.TB[x];if(u==g.cb||u==g.eb){w.M({layout:j.$d,width:m,paddingLeft:this.j("tabsPadding"),paddingTop:0,paddingRight:this.j("tabsPadding"),paddingBottom:0,height:"100%",backgroundColorDirection:c.HM});w.Xaa(y)}else{w.M({layout:j.Me,width:"100%",paddingLeft:0,paddingTop:this.j("tabsPadding"),paddingRight:0,paddingBottom:this.j("tabsPadding"),
height:m,backgroundColorDirection:c.jM});w.Xaa(o)}u==g.cb||u==g.Fa?w.set("borderTopLeftRadius",0):w.set("borderTopLeftRadius",this.j("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));u==g.cb||u==g.ka?w.set("borderTopRightRadius",0):w.set("borderTopRightRadius",this.j("borderTopRightRadius","borderTopRadius","borderRightRadius","borderRadius"));u==g.eb||u==g.Fa?w.set("borderBottomLeftRadius",0):w.set("borderBottomLeftRadius",this.j("borderBottomLeftRadius","borderBottomRadius",
"borderLeftRadius","borderRadius"));u==g.eb||u==g.ka?w.set("borderBottomRightRadius",0):w.set("borderBottomRightRadius",this.j("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));u==g.Fa&&w.set("borderSize",this.j("borderRightSize","borderSize"));u==g.ka&&w.set("borderSize",this.j("borderLeftSize","borderSize"));u==g.eb&&w.set("borderSize",this.j("borderTopSize","borderSize"));u==g.cb&&w.set("borderSize",this.j("borderBottomSize","borderSize"));var A;switch(u){case g.ka:A=
this.j("borderLeftColor","borderColor");break;case g.Fa:A=this.j("borderRightColor","borderColor");break;case g.cb:A=this.j("borderBottomColor","borderColor");break;default:case g.eb:A=this.j("borderTopColor","borderColor")}w.set("borderColor",A);w.M({fontFamily:this.j("tabsFontFamily"),shadow:this.j("shadow"),shadowHorizontalLength:this.j("shadowHorizontalLength"),shadowVerticalLength:this.j("shadowVerticalLength"),shadowBlurRadius:this.j("shadowBlurRadius"),shadowSpread:this.j("shadowSpread"),shadowColor:this.j("shadowColor")})}if(r||
p)for(x=0;x<this.Ql.length;x++){w=this.TB[x];p=x==this.Vc;A=a(this.UB).contains(w);if(p){A=this.j("selectedTabBackgroundColor","tabsBackgroundColor");if(a(A).isUndefined()){A=this.j("backgroundColor");A=a(A).isArray()&&A.length>0?u==g.ka||u==g.eb?A[0]:A[A.length-1]:A}w.M({backgroundOpacity:this.j("selectedTabBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:A,backgroundColorRatios:this.j("selectedTabBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.Gc,fontSize:this.j("selectedTabFontSize",
"tabsFontSize"),fontColor:this.j("selectedTabFontColor","tabsFontColor"),fontWeight:this.j("selectedTabFontWeight","tabsFontWeight"),fontStyle:this.j("selectedTabFontStyle","tabsFontStyle"),textDecoration:this.j("selectedTabTextDecoration","tabsTextDecoration"),textShadowColor:this.j("selectedTabTextShadowColor","tabsTextShadowColor"),textShadowHorizontalLength:this.j("selectedTabTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.j("selectedTabTextShadowVerticalLength",
"tabsTextShadowVerticalLength"),textShadowBlurRadius:this.j("selectedTabTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.j("selectedTabTextShadowOpacity","tabsTextShadowOpacity")})}else A?w.M({backgroundOpacity:this.j("tabsRollOverBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.j("tabsRollOverBackgroundColor","tabsBackgroundColor"),backgroundColorRatios:this.j("tabsRollOverBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.Qd,
fontSize:this.j("tabsRollOverFontSize","tabsFontSize"),fontColor:this.j("tabsRollOverFontColor","tabsFontColor"),fontWeight:this.j("tabsRollOverFontWeight","tabsFontWeight"),fontStyle:this.j("tabsRollOverFontStyle","tabsFontStyle"),textDecoration:this.j("tabsRollOverTextDecoration","tabsTextDecoration"),textShadowColor:this.j("tabsRollOverTextShadowColor","tabsTextShadowColor"),textShadowHorizontalLength:this.j("tabsRollOverTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.j("tabsRollOverTextShadowVerticalLength",
"tabsTextShadowVerticalLength"),textShadowBlurRadius:this.j("tabsRollOverTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.j("tabsRollOverTextShadowOpacity","tabsTextShadowOpacity")}):w.M({backgroundOpacity:this.j("tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.j("tabsBackgroundColor"),backgroundColorRatios:this.j("tabsBackgroundColorRatios"),fontSize:this.j("tabsFontSize"),fontColor:this.j("tabsFontColor"),fontWeight:this.j("tabsFontWeight"),fontStyle:this.j("tabsFontStyle"),
textDecoration:this.j("tabsTextDecoration"),textShadowColor:this.j("tabsTextShadowColor"),textShadowHorizontalLength:this.j("tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.j("tabsTextShadowVerticalLength"),textShadowBlurRadius:this.j("tabsTextShadowBlurRadius"),textShadowOpacity:this.j("tabsTextShadowOpacity")});w.M({borderLeftSize:u==g.Fa&&p?0:m,borderRightSize:u==g.ka&&p?0:m,borderBottomSize:u==g.eb&&p?0:m,borderTopSize:u==g.cb&&p?0:m})}if(s){x=this.j("tabsSize");switch(u){case g.ka:this.he.M({left:x-
(this.j("borderLeftSize","borderSize")||0),right:0,top:0,bottom:0});break;case g.Fa:this.he.M({left:0,right:x-(this.j("borderRightSize","borderSize")||0),top:0,bottom:0});break;case g.eb:this.he.M({left:0,right:0,top:x-(this.j("borderTopSize","borderSize")||0),bottom:0});break;case g.cb:this.he.M({left:0,right:0,top:0,bottom:x-(this.j("borderBottomSize","borderSize")||0)})}u==g.eb&&v==n.ty||u==g.ka&&v==n.ty?this.he.set("borderTopLeftRadius",0):this.he.set("borderTopLeftRadius",this.j("borderTopLeftRadius",
"borderTopRadius","borderLeftRadius","borderRadius"));u==g.eb&&v==n.Ju||u==g.Fa&&v==n.ty?this.he.set("borderTopRightRadius",0):this.he.set("borderTopRightRadius",this.j("borderTopRightRadius","borderTopRadius","borderRightRadius","borderRadius"));u==g.cb&&v==n.ty||u==g.ka&&v==n.Ju?this.he.set("borderBottomLeftRadius",0):this.he.set("borderBottomLeftRadius",this.j("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));u==g.cb&&v==n.Ju||u==g.Fa&&v==n.Ju?this.he.set("borderBottomRightRadius",
0):this.he.set("borderBottomRightRadius",this.j("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));this.he.M({paddingLeft:this.j("pagePaddingLeft"),paddingTop:this.j("pagePaddingTop"),paddingRight:this.j("pagePaddingRight"),paddingBottom:this.j("pagePaddingBottom"),borderLeftSize:this.j("borderLeftSize","borderSize"),borderTopSize:this.j("borderTopSize","borderSize"),borderRightSize:this.j("borderRightSize","borderSize"),borderBottomSize:this.j("borderBottomSize",
"borderSize"),borderLeftColor:this.j("borderLeftColor","borderColor"),borderTopColor:this.j("borderTopColor","borderColor"),borderRightColor:this.j("borderRightColor","borderColor"),borderBottomColor:this.j("borderBottomColor","borderColor"),shadow:this.j("shadow"),shadowHorizontalLength:this.j("shadowHorizontalLength"),shadowVerticalLength:this.j("shadowVerticalLength"),shadowBlurRadius:this.j("shadowBlurRadius"),shadowSpread:this.j("shadowSpread"),shadowColor:this.j("shadowColor"),backgroundOpacity:this.j("backgroundOpacity"),
backgroundColor:this.j("backgroundColor"),backgroundColorRatios:this.j("backgroundColorRatios")});u==g.eb||u==g.cb?this.he.set("backgroundColorDirection",c.HM):this.he.set("backgroundColorDirection",c.jM)}if(t)for(x=0;x<this.Ql.length;x++)this.Ql[x].set("visible",x==this.Vc);f.prototype.fa.call(this)};return b});
define("jI",["cV","eD","kd","ch","dx"],function(a,b,c,e,d){a=b.extend(e,function(){e.call(this)});d.A("TabPanel",a).B("Container").R({pagePaddingLeft:"number",pagePaddingTop:"number",pagePaddingRight:"number",pagePaddingBottom:"number",pages:"array[TabPanelPage]",selectedIndex:"number",selectedTabBackgroundColor:"or[color, array[color]]",selectedTabBackgroundColorRatios:"array[number]",selectedTabBackgroundOpacity:"number",selectedTabFontColor:"color",selectedTabFontSize:"or[number, size]",selectedTabFontStyle:"enum[italic, normal]",
selectedTabFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",selectedTabTextDecoration:"enum[underline, overline, line-through, none]",selectedTabTextShadowBlurRadius:"number",selectedTabTextShadowColor:"color",selectedTabTextShadowHorizontalLength:"number",selectedTabTextShadowOpacity:"number",selectedTabTextShadowVerticalLength:"number",tabsAlign:"enum[normal, inverse, center]",tabsBackgroundColor:"or[color, array[color]]",tabsBackgroundColorRatios:"array[number]",
tabsBackgroundOpacity:"number",tabsFontColor:"color",tabsFontFamily:"string",tabsFontSize:"or[number, size]",tabsFontStyle:"enum[italic, normal]",tabsFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",tabsGap:"number",tabsPadding:"number",tabsPosition:"enum[left, top, right, bottom]",tabsRollOverBackgroundColor:"or[color, array[color]]",tabsRollOverBackgroundColorRatios:"array[number]",tabsRollOverBackgroundOpacity:"number",tabsRollOverFontColor:"color",
tabsRollOverFontSize:"or[number, size]",tabsRollOverFontStyle:"enum[italic, normal]",tabsRollOverFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",tabsRollOverTextDecoration:"enum[underline, overline, line-through, none]",tabsRollOverTextShadowBlurRadius:"number",tabsRollOverTextShadowColor:"color",tabsRollOverTextShadowHorizontalLength:"number",tabsRollOverTextShadowOpacity:"number",tabsRollOverTextShadowVerticalLength:"number",tabsSize:"number",tabsTextDecoration:"enum[underline, overline, line-through, none]",
tabsTextShadowBlurRadius:"number",tabsTextShadowColor:"color",tabsTextShadowHorizontalLength:"number",tabsTextShadowOpacity:"number",tabsTextShadowVerticalLength:"number"}).To(["selectedTabFontSize","tabsFontSize","tabsRollOverFontSize"]).fc([c.$]);return a});define("dX",["eD","jM"],function(a,b){var c=a.extend(b,function(){b.call(this);this.Dc("Page");this.set("label","")});c.prototype.ta=function(){b.prototype.ta.call(this);this.f("visible",m)};return c});
define("U",["eD","dX","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("TabPanelPage",a).B("Container").R({label:"string"});return a});define("ex",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("TargetPanoramaCameraMovement",b).B("TargetRotationalCameraMovement");return b});
define("cu",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("TargetRotationalCameraDisplayMovement",b).B("RotationalCameraMovement").R({stereographicFactorSpeed:"number",path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number",targetStereographicFactor:"number"});return b});
define("fz",["require","eD","is","dx"],function(a){var b=a("eD"),c=a("is"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("TiledImageResourceLevel",b).B("ImageResourceLevel").R({rowCount:"number",colCount:"number"});return b});define("gA",["require","eD","dx","fH"],function(a){var b=a("eD"),c=a("dx"),e=a("fH"),a=b.extend(e,function(){e.call(this)});c.A("TripodCapPanoramaOverlay",a).B("CapPanoramaOverlay");return a});
define("fK","require,eD,x,kd,bc,cd,S,c,bi,iw,eK,jM,iL,gj,cV".split(","),function(a){var b=a("eD"),c=a("x"),e=a("kd"),d=a("bc"),f=a("cd"),i=a("S"),j=a("c"),k=a("bi"),n=a("iw"),g=a("eK"),l=a("jM"),r=a("iL"),p=a("gj"),s=a("cV"),t=b.extend(l,function(){l.call(this);this.la=this.Ec=q;this.gs=[];this.set("autoRolledOver",o);this.set("childrenInteractionEnabled",y);this.set("contentOpaque",o);this.set("creationPolicy",f.Kr);this.set("cursor",i.Qd)});t.prototype.ta=function(){l.prototype.ta.call(this);this.f("overflow",
"hidden");this.f("item");this.f("thumbnailUrlFunction",this.PO);this.f("sourceProperties");this.f("labelFunction",this.NO);this.f("labelFontFamily");this.f("labelFontColor");this.f("labelFontSize");this.f("labelFontStyle");this.f("labelFontWeight");this.f("labelGap");this.f("labelHorizontalAlign");this.f("labelMaxWidth");this.f("labelPosition");this.f("labelTextDecoration");this.f("labelTextShadowColor");this.f("labelTextShadowHorizontalLength");this.f("labelTextShadowVerticalLength");this.f("labelTextShadowBlurRadius");
this.f("labelTextShadowOpacity");this.f("thumbnailBorderRadius");this.f("thumbnailOpacity");this.f("thumbnailBorderSize");this.f("thumbnailBorderColor");this.f("thumbnailWidth");this.f("thumbnailHeight");this.f("thumbnailMaxWidth");this.f("thumbnailMaxHeight");this.f("thumbnailShadow");this.f("thumbnailShadowHorizontalLength");this.f("thumbnailShadowVerticalLength");this.f("thumbnailShadowBlurRadius");this.f("thumbnailShadowSpread");this.f("thumbnailShadowColor");this.f("thumbnailShadowOpacity");
this.h("rollOverBackgroundOpacity",g.t,"backgroundOpacity");this.h("rollOverBackgroundColor",g.t,"backgroundColor");this.h("rollOverBackgroundColorRatios",g.t,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",g.t,"backgroundColorDirection");this.h("rollOverBorderRadius",g.t,"borderRadius");this.h("rollOverBorderTopRadius",g.t,"borderTopRadius");this.h("rollOverBorderBottomRadius",g.t,"borderBottomRadius");this.h("rollOverBorderLeftRadius",g.t,"borderLeftRadius");this.h("rollOverBorderRightRadius",
g.t,"borderRightRadius");this.h("rollOverBorderTopLeftRadius",g.t,"borderTopLeftRadius");this.h("rollOverBorderTopRightRadius",g.t,"borderTopRightRadius");this.h("rollOverBorderBottomLeftRadius",g.t,"borderBottomLeftRadius");this.h("rollOverBorderBottomRightRadius",g.t,"borderBottomRightRadius");this.h("rollOverBorderSize",g.t,"borderSize");this.h("rollOverBorderLeftSize",g.t,"borderLeftSize");this.h("rollOverBorderTopSize",g.t,"borderTopSize");this.h("rollOverBorderRightSize",g.t,"borderRightSize");
this.h("rollOverBorderBottomSize",g.t,"borderBottomSize");this.h("rollOverBorderColor",g.t,"borderColor");this.h("rollOverBorderLeftColor",g.t,"borderLeftColor");this.h("rollOverBorderTopColor",g.t,"borderTopColor");this.h("rollOverBorderRightColor",g.t,"borderRightColor");this.h("rollOverBorderBottomColor",g.t,"borderBottomColor");this.h("rollOverLabelFontColor",g.t,"labelFontColor");this.h("rollOverLabelFontSize",g.t,"labelFontSize");this.h("rollOverLabelFontStyle",g.t,"labelFontStyle");this.h("rollOverLabelFontWeight",
g.t,"labelFontWeight");this.h("rollOverLabelTextDecoration",g.t,"labelTextDecoration");this.h("rollOverLabelTextShadowColor",g.t,"labelTextShadowColor");this.h("rollOverLabelTextShadowHorizontalLength",g.t,"labelTextShadowHorizontalLength");this.h("rollOverLabelTextShadowVerticalLength",g.t,"labelTextShadowVerticalLength");this.h("rollOverLabelTextShadowBlurRadius",g.t,"labelTextShadowBlurRadius");this.h("rollOverLabelTextShadowOpacity",g.t,"labelTextShadowOpacity");this.h("rollOverOpacity",g.t,"opacity");
this.h("rollOverPaddingLeft",g.t,"paddingLeft");this.h("rollOverPaddingTop",g.t,"paddingTop");this.h("rollOverPaddingRight",g.t,"paddingRight");this.h("rollOverPaddingBottom",g.t,"paddingBottom");this.h("rollOverShadow",g.t,"shadow");this.h("rollOverThumbnailOpacity",g.t,"thumbnailOpacity");this.h("rollOverThumbnailBorderSize",g.t,"thumbnailBorderSize");this.h("rollOverThumbnailBorderColor",g.t,"thumbnailBorderColor");this.h("rollOverThumbnailShadow",g.t,"thumbnailShadow");this.h("rollOverThumbnailShadowHorizontalLength",
g.t,"thumbnailShadowHorizontalLength");this.h("rollOverThumbnailShadowVerticalLength",g.t,"thumbnailShadowVerticalLength");this.h("rollOverThumbnailShadowBlurRadius",g.t,"thumbnailShadowBlurRadius");this.h("rollOverThumbnailShadowSpread",g.t,"thumbnailShadowSpread");this.h("rollOverThumbnailShadowColor",g.t,"thumbnailShadowColor");this.h("rollOverThumbnailShadowOpacity",g.t,"thumbnailShadowOpacity");this.h("selectedBackgroundOpacity",g.F,"backgroundOpacity");this.h("selectedBackgroundColor",g.F,"backgroundColor");
this.h("selectedBackgroundColorRatios",g.F,"backgroundColorRatios");this.h("selectedBackgroundColorDirection",g.F,"backgroundColorDirection");this.h("selectedBorderRadius",g.F,"borderRadius");this.h("selectedBorderTopRadius",g.F,"borderTopRadius");this.h("selectedBorderBottomRadius",g.F,"borderBottomRadius");this.h("selectedBorderLeftRadius",g.F,"borderLeftRadius");this.h("selectedBorderRightRadius",g.F,"borderRightRadius");this.h("selectedBorderTopLeftRadius",g.F,"borderTopLeftRadius");this.h("selectedBorderTopRightRadius",
g.F,"borderTopRightRadius");this.h("selectedBorderBottomLeftRadius",g.F,"borderBottomLeftRadius");this.h("selectedBorderBottomRightRadius",g.F,"borderBottomRightRadius");this.h("selectedBorderSize",g.F,"borderSize");this.h("selectedBorderLeftSize",g.F,"borderLeftSize");this.h("selectedBorderTopSize",g.F,"borderTopSize");this.h("selectedBorderRightSize",g.F,"borderRightSize");this.h("selectedBorderBottomSize",g.F,"borderBottomSize");this.h("selectedBorderColor",g.F,"borderColor");this.h("selectedBorderLeftColor",
g.F,"borderLeftColor");this.h("selectedBorderTopColor",g.F,"borderTopColor");this.h("selectedBorderRightColor",g.F,"borderRightColor");this.h("selectedBorderBottomColor",g.F,"borderBottomColor");this.h("selectedLabelFontColor",g.F,"labelFontColor");this.h("selectedLabelFontSize",g.F,"labelFontSize");this.h("selectedLabelFontStyle",g.F,"labelFontStyle");this.h("selectedLabelFontWeight",g.F,"labelFontWeight");this.h("selectedLabelTextDecoration",g.F,"labelTextDecoration");this.h("selectedLabelTextShadowColor",
g.F,"labelTextShadowColor");this.h("selectedLabelTextShadowHorizontalLength",g.F,"labelTextShadowHorizontalLength");this.h("selectedLabelTextShadowVerticalLength",g.F,"labelTextShadowVerticalLength");this.h("selectedLabelTextShadowBlurRadius",g.F,"labelTextShadowBlurRadius");this.h("selectedLabelTextShadowOpacity",g.F,"labelTextShadowOpacity");this.h("selectedOpacity",g.F,"opacity");this.h("selectedPaddingLeft",g.F,"paddingLeft");this.h("selectedPaddingTop",g.F,"paddingTop");this.h("selectedPaddingRight",
g.F,"paddingRight");this.h("selectedPaddingBottom",g.F,"paddingBottom");this.h("selectedShadow",g.F,"shadow");this.h("selectedThumbnailOpacity",g.F,"thumbnailOpacity");this.h("selectedThumbnailBorderSize",g.F,"thumbnailBorderSize");this.h("selectedThumbnailBorderColor",g.F,"thumbnailBorderColor");this.h("selectedThumbnailShadow",g.F,"thumbnailShadow");this.h("selectedThumbnailShadowHorizontalLength",g.F,"thumbnailShadowHorizontalLength");this.h("selectedThumbnailShadowVerticalLength",g.F,"thumbnailShadowVerticalLength");
this.h("selectedThumbnailShadowBlurRadius",g.F,"thumbnailShadowBlurRadius");this.h("selectedThumbnailShadowSpread",g.F,"thumbnailShadowSpread");this.h("selectedThumbnailShadowColor",g.F,"thumbnailShadowColor");this.h("selectedThumbnailShadowOpacity",g.F,"thumbnailShadowOpacity")};t.prototype.QD=function(a){this.zB(a)};t.prototype.Ba=function(){l.prototype.Ba.call(this);if(!this.Ec){this.Ec=new r;this.ia(this.Ec);this.Ec.set("horizontalAlign",d.pc);this.Ec.set("verticalAlign",d.$b);this.Ec.bind(e.T,
this.IT,this)}if(!this.la){this.la=new p;this.ia(this.la)}};t.prototype.PO=function(a){if(s(a).isString())return a;if(a&&a.mX)return a.mX};t.prototype.NO=function(a){if(a&&a.label)return a.label};t.prototype.fa=function(){if(this.n("sourceProperties")||this.n("item")){for(;this.gs.length;)this.gs.pop().unwatch();var a=this.j("sourceProperties"),b=this.j("item");a&&b&&a.forEach(function(a){this.gs.push(c.watch(b,a,this.ER,this,o))}.bind(this))}if(this.n("sourceProperties")||this.n("item")||this.n("tooltipFunction")){b=
this.j("item");a=this.j("tooltipFunction")(b);this.set("toolTip",a)}if(this.n("sourceProperties")||this.n("item")||this.n("thumbnailUrlFunction")){b=this.j("item");(a=this.j("thumbnailUrlFunction")(b))?this.Ec.get("url")!=a&&this.Ec.M({url:a,visible:o,opacity:0.5}):this.Ec.M({url:m,visible:y});this.o("thumbnailUrlFunction")}if(this.n("sourceProperties")||this.n("item")||this.n("labelFunction")){b=this.j("item");a=this.j("labelFunction")(b);this.la.M({text:a,visible:a?o:y});this.o("labelFunction")}this.o("item");
this.o("sourceProperties");if(this.n("labelPosition")||this.n("listLayout")||this.n("thumbnailWidth")||this.n("thumbnailHeight")){var d=this,a=function(a,b){var c=d.j(a);return c!==m?c:b};switch(this.j("labelPosition")){case k.ka:case k.Fa:this.set("layout",j.$d);this.la.set("width","100%");this.Ec.M({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.yg)});break;default:this.set("layout",j.Me);this.la.set("width","100%");this.Ec.M({height:a("thumbnailHeight",
"100%"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",n.yg)})}switch(this.j("labelPosition")){case k.ka:case k.eb:this.Ni(this.la,0);break;default:this.Ni(this.la,1)}this.o("labelPosition")}this.Xa(t.TM,t.FZ,[this],o,o);this.Xa(t.VM,t.IZ,[this.Ec],o,o);this.Xa(t.UM,t.HZ,[this.la],o,o);l.prototype.fa.call(this)};t.prototype.ER=function(){this.vt("item")};t.prototype.tt=function(a){l.prototype.tt.call(this,a)};t.prototype.IT=function(){this.Ec.set("opacity",1)};t.FZ={labelGap:"gap"};
t.TM=s(t.FZ).keys();t.HZ={labelFontFamily:"fontFamily",labelFontColor:"fontColor",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelHorizontalAlign:"horizontalAlign",labelMaxWidth:"maxWidth",labelTextDecoration:"textDecoration",labelTextShadowColor:"textShadowColor",labelTextShadowHorizontalLength:"textShadowHorizontalLength",labelTextShadowVerticalLength:"textShadowVerticalLength",labelTextShadowBlurRadius:"textShadowBlurRadius",labelTextShadowOpacity:"textShadowOpacity"};
t.UM=s(t.HZ).keys();t.IZ={thumbnailMaxWidth:"maxWidth",thumbnailMaxHeight:"maxHeight",thumbnailBorderRadius:"borderRadius",thumbnailOpacity:"opacity",thumbnailBorderSize:"borderSize",thumbnailBorderColor:"borderColor",thumbnailShadow:"shadow",thumbnailShadowHorizontalLength:"shadowHorizontalLength",thumbnailShadowVerticalLength:"shadowVerticalLength",thumbnailShadowBlurRadius:"shadowBlurRadius",thumbnailShadowSpread:"shadowSpread",thumbnailShadowColor:"shadowColor",thumbnailShadowOpacity:"shadowOpacity"};
t.VM=s(t.IZ).keys();return t});
define("bz","eD,bS,bc,kd,cd,c,fs,bi,jM,fK,cV".split(","),function(a,b,c,e,d,f,i,j,k,n,g){var l=a.extend(k,function(){k.call(this);this.set("contentOpaque",o)});l.prototype.ta=function(){k.prototype.ta.call(this);this.f("layout",f.ap);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",i.Bl);this.f("itemHorizontalAlign",c.pc);this.f("itemLabelFontFamily");this.f("itemLabelPosition",j.cb);this.f("itemLabelFunction");this.f("itemLabelMaxWidth");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",
c.pc);this.f("itemSourceProperties");this.f("itemThumbnailBorderRadius");this.f("itemThumbnailScaleMode");this.f("itemThumbnailWidth");this.f("itemThumbnailHeight");this.f("itemThumbnailMaxWidth");this.f("itemThumbnailMaxHeight");this.f("itemThumbnailUrlFunction");this.f("itemTooltipFunction");this.f("itemVerticalAlign",c.$b);this.f("itemBackgroundOpacity");this.f("itemBackgroundColor");this.f("itemBackgroundColorRatios");this.f("itemBackgroundColorDirection");this.f("itemBorderRadius");this.f("itemBorderTopRadius");
this.f("itemBorderBottomRadius");this.f("itemBorderLeftRadius");this.f("itemBorderRightRadius");this.f("itemBorderTopLeftRadius");this.f("itemBorderTopRightRadius");this.f("itemBorderBottomLeftRadius");this.f("itemBorderBottomRightRadius");this.f("itemBorderSize");this.f("itemBorderLeftSize");this.f("itemBorderTopSize");this.f("itemBorderRightSize");this.f("itemBorderBottomSize");this.f("itemBorderColor");this.f("itemBorderLeftColor");this.f("itemBorderTopColor");this.f("itemBorderRightColor");this.f("itemBorderBottomColor");
this.f("itemLabelFontColor");this.f("itemLabelFontSize");this.f("itemLabelFontStyle");this.f("itemLabelFontWeight");this.f("itemLabelMaxWidth");this.f("itemLabelTextDecoration");this.f("itemLabelTextShadowColor");this.f("itemLabelTextShadowHorizontalLength");this.f("itemLabelTextShadowVerticalLength");this.f("itemLabelTextShadowBlurRadius");this.f("itemLabelTextShadowOpacity");this.f("itemOpacity");this.f("itemPaddingLeft");this.f("itemPaddingTop");this.f("itemPaddingRight");this.f("itemPaddingBottom");
this.f("itemShadow");this.f("itemThumbnailOpacity");this.f("itemThumbnailBorderSize");this.f("itemThumbnailBorderColor");this.f("itemThumbnailShadow");this.f("itemThumbnailShadowHorizontalLength");this.f("itemThumbnailShadowVerticalLength");this.f("itemThumbnailShadowBlurRadius");this.f("itemThumbnailShadowSpread");this.f("itemThumbnailShadowColor");this.f("itemThumbnailShadowOpacity");this.f("rollOverItemBackgroundOpacity");this.f("rollOverItemBackgroundColor");this.f("rollOverItemBackgroundColorRatios");
this.f("rollOverItemBackgroundColorDirection");this.f("rollOverItemBorderRadius");this.f("rollOverItemBorderTopRadius");this.f("rollOverItemBorderBottomRadius");this.f("rollOverItemBorderLeftRadius");this.f("rollOverItemBorderRightRadius");this.f("rollOverItemBorderTopLeftRadius");this.f("rollOverItemBorderTopRightRadius");this.f("rollOverItemBorderBottomLeftRadius");this.f("rollOverItemBorderBottomRightRadius");this.f("rollOverItemBorderSize");this.f("rollOverItemBorderLeftSize");this.f("rollOverItemBorderTopSize");
this.f("rollOverItemBorderRightSize");this.f("rollOverItemBorderBottomSize");this.f("rollOverItemBorderColor");this.f("rollOverItemBorderLeftColor");this.f("rollOverItemBorderTopColor");this.f("rollOverItemBorderRightColor");this.f("rollOverItemBorderBottomColor");this.f("rollOverItemLabelFontSize");this.f("rollOverItemLabelFontStyle");this.f("rollOverItemLabelFontWeight");this.f("rollOverItemLabelTextDecoration");this.f("rollOverItemLabelTextShadowColor");this.f("rollOverItemLabelTextShadowHorizontalLength");
this.f("rollOverItemLabelTextShadowVerticalLength");this.f("rollOverItemLabelTextShadowBlurRadius");this.f("rollOverItemLabelTextShadowOpacity");this.f("rollOverItemOpacity");this.f("rollOverItemPaddingLeft");this.f("rollOverItemPaddingTop");this.f("rollOverItemPaddingRight");this.f("rollOverItemPaddingBottom");this.f("rollOverItemShadow");this.f("rollOverItemThumbnailOpacity");this.f("rollOverItemThumbnailBorderSize");this.f("rollOverItemThumbnailBorderColor");this.f("rollOverItemThumbnailShadow");
this.f("rollOverItemThumbnailShadowHorizontalLength");this.f("rollOverItemThumbnailShadowVerticalLength");this.f("rollOverItemThumbnailShadowBlurRadius");this.f("rollOverItemThumbnailShadowSpread");this.f("rollOverItemThumbnailShadowColor");this.f("rollOverItemThumbnailShadowOpacity");this.f("selectedItemBackgroundOpacity");this.f("selectedItemBackgroundColor");this.f("selectedItemBackgroundColorRatios");this.f("selectedItemBackgroundColorDirection");this.f("selectedItemBorderRadius");this.f("selectedItemBorderTopRadius");
this.f("selectedItemBorderBottomRadius");this.f("selectedItemBorderLeftRadius");this.f("selectedItemBorderRightRadius");this.f("selectedItemBorderTopLeftRadius");this.f("selectedItemBorderTopRightRadius");this.f("selectedItemBorderBottomLeftRadius");this.f("selectedItemBorderBottomRightRadius");this.f("selectedItemBorderSize");this.f("selectedItemBorderLeftSize");this.f("selectedItemBorderTopSize");this.f("selectedItemBorderRightSize");this.f("selectedItemBorderBottomSize");this.f("selectedItemBorderColor");
this.f("selectedItemBorderLeftColor");this.f("selectedItemBorderTopColor");this.f("selectedItemBorderRightColor");this.f("selectedItemBorderBottomColor");this.f("selectedItemLabelFontSize");this.f("selectedItemLabelFontStyle");this.f("selectedItemLabelFontWeight");this.f("selectedItemLabelTextDecoration");this.f("selectedItemLabelTextShadowColor");this.f("selectedItemLabelTextShadowHorizontalLength");this.f("selectedItemLabelTextShadowVerticalLength");this.f("selectedItemLabelTextShadowBlurRadius");
this.f("selectedItemLabelTextShadowOpacity");this.f("selectedItemOpacity");this.f("selectedItemPaddingLeft");this.f("selectedItemPaddingTop");this.f("selectedItemPaddingRight");this.f("selectedItemPaddingBottom");this.f("selectedItemShadow");this.f("selectedItemThumbnailOpacity");this.f("selectedItemThumbnailBorderSize");this.f("selectedItemThumbnailBorderColor");this.f("selectedItemThumbnailShadow");this.f("selectedItemThumbnailShadowHorizontalLength");this.f("selectedItemThumbnailShadowVerticalLength");
this.f("selectedItemThumbnailShadowBlurRadius");this.f("selectedItemThumbnailShadowSpread");this.f("selectedItemThumbnailShadowColor");this.f("selectedItemThumbnailShadowOpacity")};l.prototype.Zz=function(a){this.Hj=o;this.set("selectedIndex",this.LP(a.source))};l.prototype.LP=function(a){for(var b=this.Ta(),c=0;c<b.length;c++)if(b[c]==a)return c;return-1};l.prototype.fa=function(){this.n("layout")&&this.j("layout")!=f.ap&&this.set("layout",f.ap);var a=y;if(this.n("items")){var a=o,c=this.j("items")||
[],d=this.Ta();if(d.length<c.length){for(var g=d.length;g<c.length;g++){d=new n;d.bind(e.U,this.Zz,this);this.Xa(l.Cy,l.Sr,[d],y,y);this.Xa(l.Dy,l.Tr,[d],y,y);this.ia(d)}d=this.Ta()}if(d.length>c.length){for(g=c.length;g<d.length;g++){var j=d[g];j.unbind(e.U,this.Zz,this);this.removeChild(j)}d=this.Ta()}for(g=0;g<c.length;g++)d[g].set("item",c[g]);this.o("items")}if(this.n("selectedIndex")||a){c=this.Ta();a=Math.min(c.length-1,Math.max(-1,this.j("selectedIndex")));this.set("selectedIndex",a);for(g=
0;g<c.length;g++)c[g].QD(g==a);this.o("selectedIndex");if(this.Hj){this.Hj=y;this.trigger(new b(e.$))}}this.Xa(l.Cy,l.Sr,this.Ta(),o,y);this.Xa(l.Dy,l.Tr,this.Ta(),o,o);k.prototype.fa.call(this)};l.Sr={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};l.Tr={itemHorizontalAlign:"horizontalAlign",itemLabelFunction:"labelFunction",
itemLabelFontFamily:"labelFontFamily",itemLabelGap:"labelGap",itemLabelHorizontalAlign:"labelHorizontalAlign",itemLabelMaxWidth:"labelMaxWidth",itemLabelPosition:"labelPosition",itemSourceProperties:"sourceProperties",itemThumbnailBorderRadius:"thumbnailBorderRadius",itemThumbnailScaleMode:"thumbnailScaleMode",itemThumbnailHeight:"thumbnailHeight",itemThumbnailWidth:"thumbnailWidth",itemThumbnailMaxHeight:"thumbnailMaxHeight",itemThumbnailMaxWidth:"thumbnailMaxWidth",itemThumbnailUrlFunction:"thumbnailUrlFunction",
itemTooltipFunction:"tooltipFunction",itemVerticalAlign:"verticalAlign",itemBackgroundOpacity:"backgroundOpacity",itemBackgroundColor:"backgroundColor",itemBackgroundColorRatios:"backgroundColorRatios",itemBackgroundColorDirection:"backgroundColorDirection",itemBorderRadius:"borderRadius",itemBorderTopRadius:"borderTopRadius",itemBorderBottomRadius:"borderBottomRadius",itemBorderLeftRadius:"borderLeftRadius",itemBorderRightRadius:"borderRightRadius",itemBorderTopLeftRadius:"borderTopLeftRadius",itemBorderTopRightRadius:"borderTopRightRadius",
itemBorderBottomLeftRadius:"borderBottomLeftRadius",itemBorderBottomRightRadius:"borderBottomRightRadius",itemBorderSize:"borderSize",itemBorderLeftSize:"borderLeftSize",itemBorderTopSize:"borderTopSize",itemBorderRightSize:"borderRightSize",itemBorderBottomSize:"borderBottomSize",itemBorderColor:"borderColor",itemBorderLeftColor:"borderLeftColor",itemBorderTopColor:"borderTopColor",itemBorderRightColor:"borderRightColor",itemBorderBottomColor:"borderBottomColor",itemLabelFontColor:"labelFontColor",
itemLabelFontSize:"labelFontSize",itemLabelFontStyle:"labelFontStyle",itemLabelFontWeight:"labelFontWeight",itemLabelTextDecoration:"labelTextDecoration",itemLabelTextShadowColor:"labelTextShadowColor",itemLabelTextShadowHorizontalLength:"labelTextShadowHorizontalLength",itemLabelTextShadowVerticalLength:"labelTextShadowVerticalLength",itemLabelTextShadowBlurRadius:"labelTextShadowBlurRadius",itemLabelTextShadowOpacity:"labelTextShadowOpacity",itemOpacity:"opacity",itemPaddingLeft:"paddingLeft",itemPaddingTop:"paddingTop",
itemPaddingRight:"paddingRight",itemPaddingBottom:"paddingBottom",itemShadow:"shadow",itemThumbnailOpacity:"thumbnailOpacity",itemThumbnailBorderSize:"thumbnailBorderSize",itemThumbnailBorderColor:"thumbnailBorderColor",itemThumbnailShadow:"thumbnailShadow",itemThumbnailShadowHorizontalLength:"thumbnailShadowHorizontalLength",itemThumbnailShadowVerticalLength:"thumbnailShadowVerticalLength",itemThumbnailShadowBlurRadius:"thumbnailShadowBlurRadius",itemThumbnailShadowSpread:"thumbnailShadowSpread",
itemThumbnailShadowColor:"thumbnailShadowColor",itemThumbnailShadowOpacity:"thumbnailShadowOpacity",rollOverItemBackgroundOpacity:"rollOverBackgroundOpacity",rollOverItemBackgroundColor:"rollOverBackgroundColor",rollOverItemBackgroundColorRatios:"rollOverBackgroundColorRatios",rollOverItemBackgroundColorDirection:"rollOverBackgroundColorDirection",rollOverItemBorderRadius:"rollOverBorderRadius",rollOverItemBorderTopRadius:"rollOverBorderTopRadius",rollOverItemBorderBottomRadius:"rollOverBorderBottomRadius",
rollOverItemBorderLeftRadius:"rollOverBorderLeftRadius",rollOverItemBorderRightRadius:"rollOverBorderRightRadius",rollOverItemBorderTopLeftRadius:"rollOverBorderTopLeftRadius",rollOverItemBorderTopRightRadius:"rollOverBorderTopRightRadius",rollOverItemBorderBottomLeftRadius:"rollOverBorderBottomLeftRadius",rollOverItemBorderBottomRightRadius:"rollOverBorderBottomRightRadius",rollOverItemBorderSize:"rollOverBorderSize",rollOverItemBorderLeftSize:"rollOverBorderLeftSize",rollOverItemBorderTopSize:"rollOverBorderTopSize",
rollOverItemBorderRightSize:"rollOverBorderRightSize",rollOverItemBorderBottomSize:"rollOverBorderBottomSize",rollOverItemBorderColor:"rollOverBorderColor",rollOverItemBorderLeftColor:"rollOverBorderLeftColor",rollOverItemBorderTopColor:"rollOverBorderTopColor",rollOverItemBorderRightColor:"rollOverBorderRightColor",rollOverItemBorderBottomColor:"rollOverBorderBottomColor",rollOverItemLabelFontColor:"rollOverLabelFontColor",rollOverItemLabelFontSize:"rollOverLabelFontSize",rollOverItemLabelFontStyle:"rollOverLabelFontStyle",
rollOverItemLabelFontWeight:"rollOverLabelFontWeight",rollOverItemLabelTextDecoration:"rollOverLabelTextDecoration",rollOverItemLabelTextShadowColor:"rollOverLabelTextShadowColor",rollOverItemLabelTextShadowHorizontalLength:"rollOverLabelTextShadowHorizontalLength",rollOverItemLabelTextShadowVerticalLength:"rollOverLabelTextShadowVerticalLength",rollOverItemLabelTextShadowBlurRadius:"rollOverLabelTextShadowBlurRadius",rollOverItemLabelTextShadowOpacity:"rollOverLabelTextShadowOpacity",rollOverItemOpacity:"rollOverOpacity",
rollOverItemPaddingLeft:"rollOverPaddingLeft",rollOverItemPaddingTop:"rollOverPaddingTop",rollOverItemPaddingRight:"rollOverPaddingRight",rollOverItemPaddingBottom:"rollOverPaddingBottom",rollOverItemShadow:"rollOverShadow",rollOverItemThumbnailOpacity:"rollOverThumbnailOpacity",rollOverItemThumbnailBorderSize:"rollOverThumbnailBorderSize",rollOverItemThumbnailBorderColor:"rollOverThumbnailBorderColor",rollOverItemThumbnailShadow:"rollOverThumbnailShadow",rollOverItemThumbnailShadowHorizontalLength:"rollOverThumbnailShadowHorizontalLength",
rollOverItemThumbnailShadowVerticalLength:"rollOverThumbnailShadowVerticalLength",rollOverItemThumbnailShadowBlurRadius:"rollOverThumbnailShadowBlurRadius",rollOverItemThumbnailShadowSpread:"rollOverThumbnailShadowSpread",rollOverItemThumbnailShadowColor:"rollOverThumbnailShadowColor",rollOverItemThumbnailShadowOpacity:"rollOverThumbnailShadowOpacity",selectedItemBackgroundOpacity:"selectedBackgroundOpacity",selectedItemBackgroundColor:"selectedBackgroundColor",selectedItemBackgroundColorRatios:"selectedBackgroundColorRatios",
selectedItemBackgroundColorDirection:"selectedBackgroundColorDirection",selectedItemBorderRadius:"selectedBorderRadius",selectedItemBorderTopRadius:"selectedBorderTopRadius",selectedItemBorderBottomRadius:"selectedBorderBottomRadius",selectedItemBorderLeftRadius:"selectedBorderLeftRadius",selectedItemBorderRightRadius:"selectedBorderRightRadius",selectedItemBorderTopLeftRadius:"selectedBorderTopLeftRadius",selectedItemBorderTopRightRadius:"selectedBorderTopRightRadius",selectedItemBorderBottomLeftRadius:"selectedBorderBottomLeftRadius",
selectedItemBorderBottomRightRadius:"selectedBorderBottomRightRadius",selectedItemBorderSize:"selectedBorderSize",selectedItemBorderLeftSize:"selectedBorderLeftSize",selectedItemBorderTopSize:"selectedBorderTopSize",selectedItemBorderRightSize:"selectedBorderRightSize",selectedItemBorderBottomSize:"selectedBorderBottomSize",selectedItemBorderColor:"selectedBorderColor",selectedItemBorderLeftColor:"selectedBorderLeftColor",selectedItemBorderTopColor:"selectedBorderTopColor",selectedItemBorderRightColor:"selectedBorderRightColor",
selectedItemBorderBottomColor:"selectedBorderBottomColor",selectedItemLabelFontColor:"selectedLabelFontColor",selectedItemLabelFontSize:"selectedLabelFontSize",selectedItemLabelFontStyle:"selectedLabelFontStyle",selectedItemLabelFontWeight:"selectedLabelFontWeight",selectedItemLabelTextDecoration:"selectedLabelTextDecoration",selectedItemLabelTextShadowColor:"selectedLabelTextShadowColor",selectedItemLabelTextShadowHorizontalLength:"selectedLabelTextShadowHorizontalLength",selectedItemLabelTextShadowVerticalLength:"selectedLabelTextShadowVerticalLength",
selectedItemLabelTextShadowBlurRadius:"selectedLabelTextShadowBlurRadius",selectedItemLabelTextShadowOpacity:"selectedLabelTextShadowOpacity",selectedItemOpacity:"selectedOpacity",selectedItemPaddingLeft:"selectedPaddingLeft",selectedItemPaddingTop:"selectedPaddingTop",selectedItemPaddingRight:"selectedPaddingRight",selectedItemPaddingBottom:"selectedPaddingBottom",selectedItemShadow:"selectedShadow",selectedItemThumbnailOpacity:"selectedThumbnailOpacity",selectedItemThumbnailBorderSize:"selectedThumbnailBorderSize",
selectedItemThumbnailBorderColor:"selectedThumbnailBorderColor",selectedItemThumbnailShadow:"selectedThumbnailShadow",selectedItemThumbnailShadowHorizontalLength:"selectedThumbnailShadowHorizontalLength",selectedItemThumbnailShadowVerticalLength:"selectedThumbnailShadowVerticalLength",selectedItemThumbnailShadowBlurRadius:"selectedThumbnailShadowBlurRadius",selectedItemThumbnailShadowSpread:"selectedThumbnailShadowSpread",selectedItemThumbnailShadowColor:"selectedThumbnailShadowColor",selectedItemThumbnailShadowOpacity:"selectedThumbnailShadowOpacity",
toolTipBackgroundColor:"toolTipBackgroundColor",toolTipBackgroundOpacity:"toolTipBackgroundOpacity",toolTipBorderRadius:"toolTipBorderRadius",toolTipBorderColor:"toolTipBorderColor",toolTipBorderSize:"toolTipBorderSize",toolTipDisplayTime:"toolTipDisplayTime",toolTipFontFamily:"toolTipFontFamily",toolTipFontSize:"toolTipFontSize",toolTipFontColor:"toolTipFontColor",toolTipFontWeight:"toolTipFontWeight",toolTipFontStyle:"toolTipFontStyle",toolTipPaddingBottom:"toolTipPaddingBottom",toolTipPaddingLeft:"toolTipPaddingLeft",
toolTipPaddingTop:"toolTipPaddingTop",toolTipPaddingRight:"toolTipPaddingRight",toolTipShadowBlurRadius:"toolTipShadowBlurRadius",toolTipShadowColor:"toolTipShadowColor",toolTipShadowHorizontalLength:"toolTipShadowHorizontalLength",toolTipShadowOpacity:"toolTipShadowOpacity",toolTipShadowSpread:"toolTipShadowSpread",toolTipShadowVerticalLength:"toolTipShadowVerticalLength",toolTipOpacity:"toolTipOpacity",toolTipTextShadowBlurRadius:"toolTipTextShadowBlurRadius",toolTipTextShadowColor:"toolTipTextShadowColor",
toolTipTextShadowHorizontalLength:"toolTipTextShadowHorizontalLength",toolTipTextShadowOpacity:"toolTipTextShadowOpacity",toolTipTextShadowVerticalLength:"toolTipTextShadowVerticalLength"};l.Cy=g(l.Sr).keys();l.Dy=g(l.Tr).keys();return l});
define("hb","eD,kd,bz,dx,iV,cU,bx,cV".split(","),function(a,b,c,e,d,f,i){a=a.extend(c,function(){c.call(this);this.Cb=q;this.set("itemMode","normal");this.uk=y;this.Xy=new d(this,"buttonScrollDown",f.Hc);this.Xy.bind(b.U,this.vaa,this);this.Yy=new d(this,"buttonScrollLeft",f.Hc);this.Yy.bind(b.U,this.scrollLeft,this);this.Zy=new d(this,"buttonScrollRight",f.Hc);this.Zy.bind(b.U,this.waa,this);this.$y=new d(this,"buttonScrollUp",f.Hc);this.$y.bind(b.U,this.xaa,this);this.bind(b.$,this.yka,this)});
e.A("ThumbnailGrid",a).B("UIComponent").R({buttonScrollDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScrollUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",contentOpaque:"bool",gap:"number",hideScrollButtons:"bool",horizontalAlign:"enum[center, left, right]",itemMode:"enum[normal, thumbnail-only, label-only]",itemBackgroundColor:"or[array[color], color]",itemBackgroundColorDirection:"enum[horizontal, vertical]",itemBackgroundColorRatios:"array[number]",
itemBackgroundOpacity:"number",itemBorderBottomColor:"color",itemBorderBottomLeftRadius:"number",itemBorderBottomRadius:"number",itemBorderBottomRightRadius:"number",itemBorderBottomSize:"number",itemBorderColor:"color",itemBorderLeftColor:"color",itemBorderLeftRadius:"number",itemBorderLeftSize:"number",itemBorderRadius:"number",itemBorderRightColor:"color",itemBorderRightRadius:"number",itemBorderRightSize:"number",itemBorderSize:"number",itemBorderTopColor:"color",itemBorderTopLeftRadius:"number",
itemBorderTopRadius:"number",itemBorderTopRightRadius:"number",itemBorderTopSize:"number",itemHeight:"or[number, percent]",itemHorizontalAlign:"enum[center, left, right]",itemLabelFontColor:"color",itemLabelFontFamily:"string",itemLabelFontSize:"or[number, size]",itemLabelFontStyle:"enum[italic, normal]",itemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",itemLabelGap:"number",itemLabelHorizontalAlign:"enum[center, left, right]",itemLabelMaxWidth:"number",
itemLabelPosition:"enum[left, top, right, bottom]",itemLabelTextDecoration:"enum[underline, overline, line-through, none]",itemLabelTextShadowBlurRadius:"number",itemLabelTextShadowColor:"color",itemLabelTextShadowHorizontalLength:"number",itemLabelTextShadowOpacity:"number",itemLabelTextShadowVerticalLength:"number",itemMaxHeight:"number",itemMaxWidth:"number",itemMinHeight:"number",itemMinWidth:"number",itemOpacity:"number",itemPaddingBottom:"number",itemPaddingLeft:"number",itemPaddingTop:"number",
itemPaddingRight:"number",itemShadow:"bool",itemThumbnailBorderColor:"color",itemThumbnailBorderRadius:"number",itemThumbnailBorderSize:"number",itemThumbnailScaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",itemThumbnailHeight:"number",itemThumbnailWidth:"number",itemThumbnailMaxHeight:"number",itemThumbnailMaxWidth:"number",itemThumbnailOpacity:"number",itemThumbnailShadow:"bool",itemThumbnailShadowBlurRadius:"number",itemThumbnailShadowColor:"color",itemThumbnailShadowHorizontalLength:"number",
itemThumbnailShadowOpacity:"number",itemThumbnailShadowSpread:"number",itemThumbnailShadowVerticalLength:"number",itemWidth:"or[number, percent]",itemVerticalAlign:"enum[bottom, middle, top]",overflow:"enum[scroll, hidden, visible]",playList:"PlayList",rollOverItemBackgroundColor:"or[array[color], color]",rollOverItemBackgroundColorDirection:"enum[horizontal, vertical]",rollOverItemBackgroundColorRatios:"array[number]",rollOverItemBackgroundOpacity:"number",rollOverItemBorderBottomColor:"color",rollOverItemBorderBottomLeftRadius:"number",
rollOverItemBorderBottomRadius:"number",rollOverItemBorderBottomRightRadius:"number",rollOverItemBorderBottomSize:"number",rollOverItemBorderColor:"color",rollOverItemBorderLeftColor:"color",rollOverItemBorderLeftRadius:"number",rollOverItemBorderLeftSize:"number",rollOverItemBorderRadius:"number",rollOverItemBorderRightColor:"color",rollOverItemBorderRightRadius:"number",rollOverItemBorderRightSize:"number",rollOverItemBorderSize:"number",rollOverItemBorderTopColor:"color",rollOverItemBorderTopLeftRadius:"number",
rollOverItemBorderTopRadius:"number",rollOverItemBorderTopRightRadius:"number",rollOverItemBorderTopSize:"number",rollOverItemLabelFontColor:"color",rollOverItemLabelFontSize:"or[number, size]",rollOverItemLabelFontStyle:"enum[italic, normal]",rollOverItemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",rollOverItemLabelTextDecoration:"enum[underline, overline, line-through, none]",rollOverItemLabelTextShadowBlurRadius:"number",rollOverItemLabelTextShadowColor:"color",
rollOverItemLabelTextShadowHorizontalLength:"number",rollOverItemLabelTextShadowOpacity:"number",rollOverItemLabelTextShadowVerticalLength:"number",rollOverItemOpacity:"number",rollOverItemPaddingBottom:"number",rollOverItemPaddingLeft:"number",rollOverItemPaddingRight:"number",rollOverItemPaddingTop:"number",rollOverItemShadow:"bool",rollOverItemThumbnailBorderColor:"color",rollOverItemThumbnailBorderSize:"number",rollOverItemThumbnailOpacity:"number",rollOverItemThumbnailShadow:"bool",rollOverItemThumbnailShadowBlurRadius:"number",
rollOverItemThumbnailShadowColor:"color",rollOverItemThumbnailShadowHorizontalLength:"number",rollOverItemThumbnailShadowOpacity:"number",rollOverItemThumbnailShadowSpread:"number",rollOverItemThumbnailShadowVerticalLength:"number",scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",selectedItemBackgroundColor:"or[array[color], color]",selectedItemBackgroundColorDirection:"enum[horizontal, vertical]",
selectedItemBackgroundColorRatios:"array[number]",selectedItemBackgroundOpacity:"number",selectedItemBorderBottomColor:"color",selectedItemBorderBottomLeftRadius:"number",selectedItemBorderBottomRadius:"number",selectedItemBorderBottomRightRadius:"number",selectedItemBorderBottomSize:"number",selectedItemBorderColor:"color",selectedItemBorderLeftColor:"color",selectedItemBorderLeftRadius:"number",selectedItemBorderLeftSize:"number",selectedItemBorderRadius:"number",selectedItemBorderRightRadius:"number",
selectedItemBorderRightSize:"number",selectedItemBorderSize:"number",selectedItemBorderTopLeftRadius:"number",selectedItemBorderTopRadius:"number",selectedItemBorderTopRightRadius:"number",selectedItemBorderTopSize:"number",selectedItemBorderTopColor:"color",selectedItemBorderRightColor:"color",selectedItemLabelFontColor:"color",selectedItemLabelFontSize:"or[number, size]",selectedItemLabelFontStyle:"enum[italic, normal]",selectedItemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",
selectedItemLabelTextDecoration:"enum[underline, overline, line-through, none]",selectedItemLabelTextShadowBlurRadius:"number",selectedItemLabelTextShadowColor:"color",selectedItemLabelTextShadowHorizontalLength:"number",selectedItemLabelTextShadowOpacity:"number",selectedItemLabelTextShadowVerticalLength:"number",selectedItemOpacity:"number",selectedItemPaddingBottom:"number",selectedItemPaddingLeft:"number",selectedItemPaddingTop:"number",selectedItemPaddingRight:"number",selectedItemShadow:"bool",
selectedItemThumbnailBorderSize:"number",selectedItemThumbnailBorderColor:"color",selectedItemThumbnailOpacity:"number",selectedItemThumbnailShadow:"bool",selectedItemThumbnailShadowBlurRadius:"number",selectedItemThumbnailShadowColor:"color",selectedItemThumbnailShadowHorizontalLength:"number",selectedItemThumbnailShadowOpacity:"number",selectedItemThumbnailShadowSpread:"number",selectedItemThumbnailShadowVerticalLength:"number",verticalAlign:"enum[bottom, middle, top]"}).To(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).fc([b.$]);a.prototype.Oh=function(){c.prototype.Oh.call(this);this.Et()};a.prototype.uo=function(){c.prototype.uo.call(this);this.Et()};a.prototype.Et=function(){this.Xy.set("visible",!this.uk||this.jF());this.$y.set("visible",!this.uk||this.mF());this.Yy.set("visible",!this.uk||this.kF());this.Zy.set("visible",!this.uk||this.lF())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.Hn);this.set("itemThumbnailUrlFunction",this.aA);this.set("itemTooltipFunction",this.Ls);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.Ls);this.set("itemThumbnailUrlFunction",this.Hn);this.set("itemTooltipFunction",this.Hn);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.Ls);this.set("itemThumbnailUrlFunction",this.aA);
this.set("itemTooltipFunction",this.Hn);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.Cb&&this.Cb.unbind("change",this.Vn,this);if(this.Cb=b){this.set("items",this.Cb.get("items"));this.set("selectedIndex",this.Cb.get("selectedIndex"));this.Cb.bind("change",this.Vn,this,o)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.uk=b;this.Et()}else c.prototype.set.call(this,a,b)};a.prototype.get=function(a,
b){switch(a){case "playList":return this.Cb;default:return c.prototype.get.call(this,a,b)}};a.prototype.Vn=function(){this.set("items",this.Cb.get("items"));this.set("selectedIndex",this.Cb.get("selectedIndex"))};a.prototype.yka=function(){this.Cb&&this.Cb.set("selectedIndex",this.get("selectedIndex"))};a.prototype.Hn=E();a.prototype.Ls=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.aA=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&
(b=i.z8(b));return b};return a});
define("ho","require,eD,x,kd,bc,cd,S,c,bi,iw,eK,jM,iL,gj,cV".split(","),function(a){var b=a("eD"),c=a("x"),e=a("kd"),d=a("bc"),f=a("cd"),i=a("S"),j=a("c"),k=a("bi"),n=a("iw"),g=a("eK"),l=a("jM"),r=a("iL"),p=a("gj"),s=a("cV"),t=b.extend(l,function(){l.call(this);this.la=this.Ec=q;this.gs=[];this.set("autoRolledOver",o);this.set("childrenInteractionEnabled",y);this.set("contentOpaque",o);this.set("creationPolicy",f.Kr);this.set("cursor",i.Qd)});t.prototype.ta=function(){l.prototype.ta.call(this);this.f("listLayout");
this.f("overflow","hidden");this.f("item");this.f("thumbnailUrlFunction",this.PO);this.f("sourceProperties");this.f("labelFunction",this.NO);this.f("labelFontFamily");this.f("labelFontColor");this.f("labelFontSize");this.f("labelFontStyle");this.f("labelFontWeight");this.f("labelGap");this.f("labelHorizontalAlign");this.f("labelPosition");this.f("labelTextDecoration");this.f("labelTextShadowColor");this.f("labelTextShadowHorizontalLength");this.f("labelTextShadowVerticalLength");this.f("labelTextShadowBlurRadius");
this.f("labelTextShadowOpacity");this.f("thumbnailBorderRadius");this.f("thumbnailOpacity");this.f("thumbnailBorderSize");this.f("thumbnailBorderColor");this.f("thumbnailWidth");this.f("thumbnailHeight");this.f("thumbnailMaxWidth");this.f("thumbnailMaxHeight");this.f("thumbnailShadow");this.f("thumbnailShadowHorizontalLength");this.f("thumbnailShadowVerticalLength");this.f("thumbnailShadowBlurRadius");this.f("thumbnailShadowSpread");this.f("thumbnailShadowColor");this.f("thumbnailShadowOpacity");
this.h("rollOverBackgroundOpacity",g.t,"backgroundOpacity");this.h("rollOverBackgroundColor",g.t,"backgroundColor");this.h("rollOverBackgroundColorRatios",g.t,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",g.t,"backgroundColorDirection");this.h("rollOverBorderRadius",g.t,"borderRadius");this.h("rollOverBorderTopRadius",g.t,"borderTopRadius");this.h("rollOverBorderBottomRadius",g.t,"borderBottomRadius");this.h("rollOverBorderLeftRadius",g.t,"borderLeftRadius");this.h("rollOverBorderRightRadius",
g.t,"borderRightRadius");this.h("rollOverBorderTopLeftRadius",g.t,"borderTopLeftRadius");this.h("rollOverBorderTopRightRadius",g.t,"borderTopRightRadius");this.h("rollOverBorderBottomLeftRadius",g.t,"borderBottomLeftRadius");this.h("rollOverBorderBottomRightRadius",g.t,"borderBottomRightRadius");this.h("rollOverBorderSize",g.t,"borderSize");this.h("rollOverBorderLeftSize",g.t,"borderLeftSize");this.h("rollOverBorderTopSize",g.t,"borderTopSize");this.h("rollOverBorderRightSize",g.t,"borderRightSize");
this.h("rollOverBorderBottomSize",g.t,"borderBottomSize");this.h("rollOverBorderColor",g.t,"borderColor");this.h("rollOverBorderLeftColor",g.t,"borderLeftColor");this.h("rollOverBorderTopColor",g.t,"borderTopColor");this.h("rollOverBorderRightColor",g.t,"borderRightColor");this.h("rollOverBorderBottomColor",g.t,"borderBottomColor");this.h("rollOverLabelFontColor",g.t,"labelFontColor");this.h("rollOverLabelFontSize",g.t,"labelFontSize");this.h("rollOverLabelFontStyle",g.t,"labelFontStyle");this.h("rollOverLabelFontWeight",
g.t,"labelFontWeight");this.h("rollOverLabelTextDecoration",g.t,"labelTextDecoration");this.h("rollOverLabelTextShadowColor",g.t,"labelTextShadowColor");this.h("rollOverLabelTextShadowHorizontalLength",g.t,"labelTextShadowHorizontalLength");this.h("rollOverLabelTextShadowVerticalLength",g.t,"labelTextShadowVerticalLength");this.h("rollOverLabelTextShadowBlurRadius",g.t,"labelTextShadowBlurRadius");this.h("rollOverLabelTextShadowOpacity",g.t,"labelTextShadowOpacity");this.h("rollOverOpacity",g.t,"opacity");
this.h("rollOverPaddingLeft",g.t,"paddingLeft");this.h("rollOverPaddingTop",g.t,"paddingTop");this.h("rollOverPaddingRight",g.t,"paddingRight");this.h("rollOverPaddingBottom",g.t,"paddingBottom");this.h("rollOverShadow",g.t,"shadow");this.h("rollOverThumbnailOpacity",g.t,"thumbnailOpacity");this.h("rollOverThumbnailBorderSize",g.t,"thumbnailBorderSize");this.h("rollOverThumbnailBorderColor",g.t,"thumbnailBorderColor");this.h("rollOverThumbnailShadow",g.t,"thumbnailShadow");this.h("rollOverThumbnailShadowHorizontalLength",
g.t,"thumbnailShadowHorizontalLength");this.h("rollOverThumbnailShadowVerticalLength",g.t,"thumbnailShadowVerticalLength");this.h("rollOverThumbnailShadowBlurRadius",g.t,"thumbnailShadowBlurRadius");this.h("rollOverThumbnailShadowSpread",g.t,"thumbnailShadowSpread");this.h("rollOverThumbnailShadowColor",g.t,"thumbnailShadowColor");this.h("rollOverThumbnailShadowOpacity",g.t,"thumbnailShadowOpacity");this.h("selectedBackgroundOpacity",g.F,"backgroundOpacity");this.h("selectedBackgroundColor",g.F,"backgroundColor");
this.h("selectedBackgroundColorRatios",g.F,"backgroundColorRatios");this.h("selectedBackgroundColorDirection",g.F,"backgroundColorDirection");this.h("selectedBorderRadius",g.F,"borderRadius");this.h("selectedBorderTopRadius",g.F,"borderTopRadius");this.h("selectedBorderBottomRadius",g.F,"borderBottomRadius");this.h("selectedBorderLeftRadius",g.F,"borderLeftRadius");this.h("selectedBorderRightRadius",g.F,"borderRightRadius");this.h("selectedBorderTopLeftRadius",g.F,"borderTopLeftRadius");this.h("selectedBorderTopRightRadius",
g.F,"borderTopRightRadius");this.h("selectedBorderBottomLeftRadius",g.F,"borderBottomLeftRadius");this.h("selectedBorderBottomRightRadius",g.F,"borderBottomRightRadius");this.h("selectedBorderSize",g.F,"borderSize");this.h("selectedBorderLeftSize",g.F,"borderLeftSize");this.h("selectedBorderTopSize",g.F,"borderTopSize");this.h("selectedBorderRightSize",g.F,"borderRightSize");this.h("selectedBorderBottomSize",g.F,"borderBottomSize");this.h("selectedBorderColor",g.F,"borderColor");this.h("selectedBorderLeftColor",
g.F,"borderLeftColor");this.h("selectedBorderTopColor",g.F,"borderTopColor");this.h("selectedBorderRightColor",g.F,"borderRightColor");this.h("selectedBorderBottomColor",g.F,"borderBottomColor");this.h("selectedLabelFontColor",g.F,"labelFontColor");this.h("selectedLabelFontSize",g.F,"labelFontSize");this.h("selectedLabelFontStyle",g.F,"labelFontStyle");this.h("selectedLabelFontWeight",g.F,"labelFontWeight");this.h("selectedLabelTextDecoration",g.F,"labelTextDecoration");this.h("selectedLabelTextShadowColor",
g.F,"labelTextShadowColor");this.h("selectedLabelTextShadowHorizontalLength",g.F,"labelTextShadowHorizontalLength");this.h("selectedLabelTextShadowVerticalLength",g.F,"labelTextShadowVerticalLength");this.h("selectedLabelTextShadowBlurRadius",g.F,"labelTextShadowBlurRadius");this.h("selectedLabelTextShadowOpacity",g.F,"labelTextShadowOpacity");this.h("selectedOpacity",g.F,"opacity");this.h("selectedPaddingLeft",g.F,"paddingLeft");this.h("selectedPaddingTop",g.F,"paddingTop");this.h("selectedPaddingRight",
g.F,"paddingRight");this.h("selectedPaddingBottom",g.F,"paddingBottom");this.h("selectedShadow",g.F,"shadow");this.h("selectedThumbnailOpacity",g.F,"thumbnailOpacity");this.h("selectedThumbnailBorderSize",g.F,"thumbnailBorderSize");this.h("selectedThumbnailBorderColor",g.F,"thumbnailBorderColor");this.h("selectedThumbnailShadow",g.F,"thumbnailShadow");this.h("selectedThumbnailShadowHorizontalLength",g.F,"thumbnailShadowHorizontalLength");this.h("selectedThumbnailShadowVerticalLength",g.F,"thumbnailShadowVerticalLength");
this.h("selectedThumbnailShadowBlurRadius",g.F,"thumbnailShadowBlurRadius");this.h("selectedThumbnailShadowSpread",g.F,"thumbnailShadowSpread");this.h("selectedThumbnailShadowColor",g.F,"thumbnailShadowColor");this.h("selectedThumbnailShadowOpacity",g.F,"thumbnailShadowOpacity")};t.prototype.QD=function(a){this.zB(a)};t.prototype.Ba=function(){l.prototype.Ba.call(this);if(!this.Ec){this.Ec=new r;this.ia(this.Ec);this.Ec.set("horizontalAlign",d.pc);this.Ec.set("verticalAlign",d.$b);this.Ec.bind(e.T,
this.IT,this)}if(!this.la){this.la=new p;this.ia(this.la)}};t.prototype.PO=function(a){if(s(a).isString())return a;if(a&&a.mX)return a.mX};t.prototype.NO=function(a){if(a&&a.label)return a.label};t.prototype.fa=function(){if(this.n("sourceProperties")||this.n("item")){for(;this.gs.length;)this.gs.pop().unwatch();var a=this.j("sourceProperties"),b=this.j("item");a&&b&&a.forEach(function(a){this.gs.push(c.watch(b,a,this.ER,this,o))}.bind(this))}if(this.n("sourceProperties")||this.n("item")||this.n("tooltipFunction")){b=
this.j("item");a=this.j("tooltipFunction")(b);this.set("toolTip",a)}if(this.n("sourceProperties")||this.n("item")||this.n("thumbnailUrlFunction")){b=this.j("item");(a=this.j("thumbnailUrlFunction")(b))?this.Ec.get("url")!=a&&this.Ec.M({url:a,visible:o,opacity:0.5}):this.Ec.M({url:m,visible:y});this.o("thumbnailUrlFunction")}if(this.n("sourceProperties")||this.n("item")||this.n("labelFunction")){b=this.j("item");a=this.j("labelFunction")(b);this.la.M({text:a,visible:a?o:y});this.o("labelFunction")}this.o("sourceProperties");
this.o("item");if(this.n("listLayout"))switch(this.j("listLayout")){case j.Me:this.M({width:"100%",height:m});break;default:this.M({height:"100%",width:m})}if(this.n("labelPosition")||this.n("listLayout")||this.n("thumbnailWidth")||this.n("thumbnailHeight")){var d=this,a=function(a,b){var c=d.j(a);c===m&&(c=b);return c};switch(this.j("labelPosition")){case k.ka:case k.Fa:this.set("layout",j.$d);this.la.set("width","100%");switch(this.j("listLayout")){case j.Me:this.Ec.M({height:a("thumbnailHeight"),
width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.yg)});break;default:this.Ec.M({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.yg)})}break;default:this.set("layout",j.Me);this.la.set("width",m);switch(this.j("listLayout")){case j.Me:this.Ec.M({height:a("thumbnailHeight"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",n.ek)});break;default:this.Ec.M({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",
n.yg)})}}switch(this.j("labelPosition")){case k.ka:case k.eb:this.Ni(this.la,0);break;default:this.Ni(this.la,1)}this.o("labelPosition")}this.o("listLayout");this.Xa(t.TM,t.Wu,[this],o,o);this.Xa(t.VM,t.Wu,[this.Ec],o,o);this.Xa(t.UM,t.Wu,[this.la],o,o);l.prototype.fa.call(this)};t.prototype.ER=function(){this.vt("item")};t.prototype.tt=function(a){l.prototype.tt.call(this,a)};t.prototype.IT=function(){this.Ec.set("opacity",1)};t.TM=["labelGap"];t.VM=["thumbnailBorderColor","thumbnailBorderRadius",
"thumbnailBorderSize","thumbnailMaxWidth","thumbnailMaxHeight","thumbnailOpacity","thumbnailShadow","thumbnailShadowHorizontalLength","thumbnailShadowVerticalLength","thumbnailShadowBlurRadius","thumbnailShadowSpread","thumbnailShadowColor","thumbnailShadowOpacity"];t.UM=["labelFontFamily","labelFontColor","labelFontSize","labelFontStyle","labelFontWeight","labelHorizontalAlign","labelTextDecoration","labelTextShadowColor","labelTextShadowHorizontalLength","labelTextShadowVerticalLength","labelTextShadowBlurRadius",
"labelTextShadowOpacity"];t.Wu={labelFontFamily:"fontFamily",labelFontColor:"fontColor",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelGap:"gap",labelHorizontalAlign:"horizontalAlign",labelTextDecoration:"textDecoration",labelTextShadowColor:"textShadowColor",labelTextShadowHorizontalLength:"textShadowHorizontalLength",labelTextShadowVerticalLength:"textShadowVerticalLength",labelTextShadowBlurRadius:"textShadowBlurRadius",labelTextShadowOpacity:"textShadowOpacity",
thumbnailMaxWidth:"maxWidth",thumbnailMaxHeight:"maxHeight",thumbnailBorderRadius:"borderRadius",thumbnailOpacity:"opacity",thumbnailBorderSize:"borderSize",thumbnailBorderColor:"borderColor",thumbnailShadow:"shadow",thumbnailShadowHorizontalLength:"shadowHorizontalLength",thumbnailShadowVerticalLength:"shadowVerticalLength",thumbnailShadowBlurRadius:"shadowBlurRadius",thumbnailShadowSpread:"shadowSpread",thumbnailShadowColor:"shadowColor",thumbnailShadowOpacity:"shadowOpacity"};return t});
define("D","require,eD,bS,bc,kd,c,fs,bi,jM,ho,cV".split(","),function(a){var b=a("eD"),c=a("bS"),e=a("bc"),d=a("kd"),f=a("c"),i=a("fs"),j=a("bi"),k=a("jM"),n=a("ho"),a=a("cV"),g=b.extend(k,function(){k.call(this);this.set("contentOpaque",o);this.bind(d.L("selectedIndex"),this.dma,this);this.bind(d.pb,this.ioa,this)});g.prototype.ta=function(){k.prototype.ta.call(this);this.f("layout",f.$d);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",i.Bl);this.f("itemHorizontalAlign",e.pc);this.f("itemLabelFontFamily");
this.f("itemLabelPosition",j.cb);this.f("itemLabelFunction");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",e.pc);this.f("itemThumbnailBorderRadius");this.f("itemThumbnailScaleMode");this.f("itemThumbnailWidth");this.f("itemThumbnailHeight");this.f("itemThumbnailMaxWidth");this.f("itemThumbnailMaxHeight");this.f("itemThumbnailUrlFunction");this.f("itemTooltipFunction");this.f("itemSourceProperties");this.f("itemVerticalAlign",e.$b);this.f("itemBackgroundOpacity");this.f("itemBackgroundColor");
this.f("itemBackgroundColorRatios");this.f("itemBackgroundColorDirection");this.f("itemBorderRadius");this.f("itemBorderTopRadius");this.f("itemBorderBottomRadius");this.f("itemBorderLeftRadius");this.f("itemBorderRightRadius");this.f("itemBorderTopLeftRadius");this.f("itemBorderTopRightRadius");this.f("itemBorderBottomLeftRadius");this.f("itemBorderBottomRightRadius");this.f("itemBorderSize");this.f("itemBorderLeftSize");this.f("itemBorderTopSize");this.f("itemBorderRightSize");this.f("itemBorderBottomSize");
this.f("itemBorderColor");this.f("itemBorderLeftColor");this.f("itemBorderTopColor");this.f("itemBorderRightColor");this.f("itemBorderBottomColor");this.f("itemLabelFontColor");this.f("itemLabelFontSize");this.f("itemLabelFontStyle");this.f("itemLabelFontWeight");this.f("itemLabelTextDecoration");this.f("itemLabelTextShadowColor");this.f("itemLabelTextShadowHorizontalLength");this.f("itemLabelTextShadowVerticalLength");this.f("itemLabelTextShadowBlurRadius");this.f("itemLabelTextShadowOpacity");this.f("itemOpacity");
this.f("itemPaddingLeft");this.f("itemPaddingTop");this.f("itemPaddingRight");this.f("itemPaddingBottom");this.f("itemShadow");this.f("itemThumbnailOpacity");this.f("itemThumbnailBorderSize");this.f("itemThumbnailBorderColor");this.f("itemThumbnailShadow");this.f("itemThumbnailShadowHorizontalLength");this.f("itemThumbnailShadowVerticalLength");this.f("itemThumbnailShadowBlurRadius");this.f("itemThumbnailShadowSpread");this.f("itemThumbnailShadowColor");this.f("itemThumbnailShadowOpacity");this.f("rollOverItemBackgroundOpacity");
this.f("rollOverItemBackgroundColor");this.f("rollOverItemBackgroundColorRatios");this.f("rollOverItemBackgroundColorDirection");this.f("rollOverItemBorderRadius");this.f("rollOverItemBorderTopRadius");this.f("rollOverItemBorderBottomRadius");this.f("rollOverItemBorderLeftRadius");this.f("rollOverItemBorderRightRadius");this.f("rollOverItemBorderTopLeftRadius");this.f("rollOverItemBorderTopRightRadius");this.f("rollOverItemBorderBottomLeftRadius");this.f("rollOverItemBorderBottomRightRadius");this.f("rollOverItemBorderSize");
this.f("rollOverItemBorderLeftSize");this.f("rollOverItemBorderTopSize");this.f("rollOverItemBorderRightSize");this.f("rollOverItemBorderBottomSize");this.f("rollOverItemBorderColor");this.f("rollOverItemBorderLeftColor");this.f("rollOverItemBorderTopColor");this.f("rollOverItemBorderRightColor");this.f("rollOverItemBorderBottomColor");this.f("rollOverItemLabelFontSize");this.f("rollOverItemLabelFontStyle");this.f("rollOverItemLabelFontWeight");this.f("rollOverItemLabelTextDecoration");this.f("rollOverItemLabelTextShadowColor");
this.f("rollOverItemLabelTextShadowHorizontalLength");this.f("rollOverItemLabelTextShadowVerticalLength");this.f("rollOverItemLabelTextShadowBlurRadius");this.f("rollOverItemLabelTextShadowOpacity");this.f("rollOverItemOpacity");this.f("rollOverItemPaddingLeft");this.f("rollOverItemPaddingTop");this.f("rollOverItemPaddingRight");this.f("rollOverItemPaddingBottom");this.f("rollOverItemShadow");this.f("rollOverItemThumbnailOpacity");this.f("rollOverItemThumbnailBorderSize");this.f("rollOverItemThumbnailBorderColor");
this.f("rollOverItemThumbnailShadow");this.f("rollOverItemThumbnailShadowHorizontalLength");this.f("rollOverItemThumbnailShadowVerticalLength");this.f("rollOverItemThumbnailShadowBlurRadius");this.f("rollOverItemThumbnailShadowSpread");this.f("rollOverItemThumbnailShadowColor");this.f("rollOverItemThumbnailShadowOpacity");this.f("selectedItemBackgroundOpacity");this.f("selectedItemBackgroundColor");this.f("selectedItemBackgroundColorRatios");this.f("selectedItemBackgroundColorDirection");this.f("selectedItemBorderRadius");
this.f("selectedItemBorderTopRadius");this.f("selectedItemBorderBottomRadius");this.f("selectedItemBorderLeftRadius");this.f("selectedItemBorderRightRadius");this.f("selectedItemBorderTopLeftRadius");this.f("selectedItemBorderTopRightRadius");this.f("selectedItemBorderBottomLeftRadius");this.f("selectedItemBorderBottomRightRadius");this.f("selectedItemBorderSize");this.f("selectedItemBorderLeftSize");this.f("selectedItemBorderTopSize");this.f("selectedItemBorderRightSize");this.f("selectedItemBorderBottomSize");
this.f("selectedItemBorderColor");this.f("selectedItemBorderLeftColor");this.f("selectedItemBorderTopColor");this.f("selectedItemBorderRightColor");this.f("selectedItemBorderBottomColor");this.f("selectedItemLabelFontSize");this.f("selectedItemLabelFontStyle");this.f("selectedItemLabelFontWeight");this.f("selectedItemLabelTextDecoration");this.f("selectedItemLabelTextShadowColor");this.f("selectedItemLabelTextShadowHorizontalLength");this.f("selectedItemLabelTextShadowVerticalLength");this.f("selectedItemLabelTextShadowBlurRadius");
this.f("selectedItemLabelTextShadowOpacity");this.f("selectedItemOpacity");this.f("selectedItemPaddingLeft");this.f("selectedItemPaddingTop");this.f("selectedItemPaddingRight");this.f("selectedItemPaddingBottom");this.f("selectedItemShadow");this.f("selectedItemThumbnailOpacity");this.f("selectedItemThumbnailBorderSize");this.f("selectedItemThumbnailBorderColor");this.f("selectedItemThumbnailShadow");this.f("selectedItemThumbnailShadowHorizontalLength");this.f("selectedItemThumbnailShadowVerticalLength");
this.f("selectedItemThumbnailShadowBlurRadius");this.f("selectedItemThumbnailShadowSpread");this.f("selectedItemThumbnailShadowColor");this.f("selectedItemThumbnailShadowOpacity")};g.prototype.Zz=function(a){this.Hj=o;this.set("selectedIndex",this.LP(a.source))};g.prototype.dma=function(){this.R5()};g.prototype.ioa=function(){this.R5()};g.prototype.R5=function(){var a=this.get("selectedIndex"),b=this.Ta();a>=0&&a<b.length&&this.scrollIntoView(b[a])};g.prototype.LP=function(a){for(var b=this.Ta(),
c=0;c<b.length;c++)if(b[c]==a)return c;return-1};g.prototype.fa=function(){if(this.n("layout")){var a=this.j("layout");a!=f.Me&&a!=f.$d&&this.set("layout",f.$d)}var b=y;if(this.n("items")){var b=o,a=this.j("items")||[],e=this.Ta();if(e.length<a.length){for(var j=e.length;j<a.length;j++){e=new n;e.bind(d.U,this.Zz,this);this.Xa(g.Cy,g.Sr,[e],y,y);this.Xa(g.Dy,g.Tr,[e],y,y);this.ia(e)}e=this.Ta()}if(e.length>a.length){for(j=a.length;j<e.length;j++){var i=e[j];i.unbind(d.U,this.Zz,this);this.removeChild(i)}e=
this.Ta()}for(j=0;j<a.length;j++)e[j].set("item",a[j]);this.o("items")}if(this.n("selectedIndex")||b){a=this.Ta();b=Math.min(a.length-1,Math.max(-1,this.j("selectedIndex")));this.set("selectedIndex",b);for(j=0;j<a.length;j++)a[j].QD(j==b);this.o("selectedIndex");if(this.Hj){this.Hj=y;this.trigger(new c(d.$))}}this.Xa(g.Cy,g.Sr,this.Ta(),o,y);this.Xa(g.Dy,g.Tr,this.Ta(),o,o);k.prototype.fa.call(this)};g.Sr={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",
shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};g.Tr={itemHorizontalAlign:"horizontalAlign",itemLabelFunction:"labelFunction",itemLabelFontFamily:"labelFontFamily",itemLabelGap:"labelGap",itemLabelHorizontalAlign:"labelHorizontalAlign",itemLabelPosition:"labelPosition",itemSourceProperties:"sourceProperties",itemThumbnailBorderRadius:"thumbnailBorderRadius",itemThumbnailScaleMode:"thumbnailScaleMode",itemThumbnailHeight:"thumbnailHeight",
itemThumbnailWidth:"thumbnailWidth",itemThumbnailMaxHeight:"thumbnailMaxHeight",itemThumbnailMaxWidth:"thumbnailMaxWidth",itemThumbnailUrlFunction:"thumbnailUrlFunction",itemTooltipFunction:"tooltipFunction",itemVerticalAlign:"verticalAlign",itemBackgroundOpacity:"backgroundOpacity",itemBackgroundColor:"backgroundColor",itemBackgroundColorRatios:"backgroundColorRatios",itemBackgroundColorDirection:"backgroundColorDirection",itemBorderRadius:"borderRadius",itemBorderTopRadius:"borderTopRadius",itemBorderBottomRadius:"borderBottomRadius",
itemBorderLeftRadius:"borderLeftRadius",itemBorderRightRadius:"borderRightRadius",itemBorderTopLeftRadius:"borderTopLeftRadius",itemBorderTopRightRadius:"borderTopRightRadius",itemBorderBottomLeftRadius:"borderBottomLeftRadius",itemBorderBottomRightRadius:"borderBottomRightRadius",itemBorderSize:"borderSize",itemBorderLeftSize:"borderLeftSize",itemBorderTopSize:"borderTopSize",itemBorderRightSize:"borderRightSize",itemBorderBottomSize:"borderBottomSize",itemBorderColor:"borderColor",itemBorderLeftColor:"borderLeftColor",
itemBorderTopColor:"borderTopColor",itemBorderRightColor:"borderRightColor",itemBorderBottomColor:"borderBottomColor",itemLabelFontColor:"labelFontColor",itemLabelFontSize:"labelFontSize",itemLabelFontStyle:"labelFontStyle",itemLabelFontWeight:"labelFontWeight",itemLabelTextDecoration:"labelTextDecoration",itemLabelTextShadowColor:"labelTextShadowColor",itemLabelTextShadowHorizontalLength:"labelTextShadowHorizontalLength",itemLabelTextShadowVerticalLength:"labelTextShadowVerticalLength",itemLabelTextShadowBlurRadius:"labelTextShadowBlurRadius",
itemLabelTextShadowOpacity:"labelTextShadowOpacity",itemOpacity:"opacity",itemPaddingLeft:"paddingLeft",itemPaddingTop:"paddingTop",itemPaddingRight:"paddingRight",itemPaddingBottom:"paddingBottom",itemShadow:"shadow",itemThumbnailOpacity:"thumbnailOpacity",itemThumbnailBorderSize:"thumbnailBorderSize",itemThumbnailBorderColor:"thumbnailBorderColor",itemThumbnailShadow:"thumbnailShadow",itemThumbnailShadowHorizontalLength:"thumbnailShadowHorizontalLength",itemThumbnailShadowVerticalLength:"thumbnailShadowVerticalLength",
itemThumbnailShadowBlurRadius:"thumbnailShadowBlurRadius",itemThumbnailShadowSpread:"thumbnailShadowSpread",itemThumbnailShadowColor:"thumbnailShadowColor",itemThumbnailShadowOpacity:"thumbnailShadowOpacity",rollOverItemBackgroundOpacity:"rollOverBackgroundOpacity",rollOverItemBackgroundColor:"rollOverBackgroundColor",rollOverItemBackgroundColorRatios:"rollOverBackgroundColorRatios",rollOverItemBackgroundColorDirection:"rollOverBackgroundColorDirection",rollOverItemBorderRadius:"rollOverBorderRadius",
rollOverItemBorderTopRadius:"rollOverBorderTopRadius",rollOverItemBorderBottomRadius:"rollOverBorderBottomRadius",rollOverItemBorderLeftRadius:"rollOverBorderLeftRadius",rollOverItemBorderRightRadius:"rollOverBorderRightRadius",rollOverItemBorderTopLeftRadius:"rollOverBorderTopLeftRadius",rollOverItemBorderTopRightRadius:"rollOverBorderTopRightRadius",rollOverItemBorderBottomLeftRadius:"rollOverBorderBottomLeftRadius",rollOverItemBorderBottomRightRadius:"rollOverBorderBottomRightRadius",rollOverItemBorderSize:"rollOverBorderSize",
rollOverItemBorderLeftSize:"rollOverBorderLeftSize",rollOverItemBorderTopSize:"rollOverBorderTopSize",rollOverItemBorderRightSize:"rollOverBorderRightSize",rollOverItemBorderBottomSize:"rollOverBorderBottomSize",rollOverItemBorderColor:"rollOverBorderColor",rollOverItemBorderLeftColor:"rollOverBorderLeftColor",rollOverItemBorderTopColor:"rollOverBorderTopColor",rollOverItemBorderRightColor:"rollOverBorderRightColor",rollOverItemBorderBottomColor:"rollOverBorderBottomColor",rollOverItemLabelFontColor:"rollOverLabelFontColor",
rollOverItemLabelFontSize:"rollOverLabelFontSize",rollOverItemLabelFontStyle:"rollOverLabelFontStyle",rollOverItemLabelFontWeight:"rollOverLabelFontWeight",rollOverItemLabelTextDecoration:"rollOverLabelTextDecoration",rollOverItemLabelTextShadowColor:"rollOverLabelTextShadowColor",rollOverItemLabelTextShadowHorizontalLength:"rollOverLabelTextShadowHorizontalLength",rollOverItemLabelTextShadowVerticalLength:"rollOverLabelTextShadowVerticalLength",rollOverItemLabelTextShadowBlurRadius:"rollOverLabelTextShadowBlurRadius",
rollOverItemLabelTextShadowOpacity:"rollOverLabelTextShadowOpacity",rollOverItemOpacity:"rollOverOpacity",rollOverItemPaddingLeft:"rollOverPaddingLeft",rollOverItemPaddingTop:"rollOverPaddingTop",rollOverItemPaddingRight:"rollOverPaddingRight",rollOverItemPaddingBottom:"rollOverPaddingBottom",rollOverItemShadow:"rollOverShadow",rollOverItemThumbnailOpacity:"rollOverThumbnailOpacity",rollOverItemThumbnailBorderSize:"rollOverThumbnailBorderSize",rollOverItemThumbnailBorderColor:"rollOverThumbnailBorderColor",
rollOverItemThumbnailShadow:"rollOverThumbnailShadow",rollOverItemThumbnailShadowHorizontalLength:"rollOverThumbnailShadowHorizontalLength",rollOverItemThumbnailShadowVerticalLength:"rollOverThumbnailShadowVerticalLength",rollOverItemThumbnailShadowBlurRadius:"rollOverThumbnailShadowBlurRadius",rollOverItemThumbnailShadowSpread:"rollOverThumbnailShadowSpread",rollOverItemThumbnailShadowColor:"rollOverThumbnailShadowColor",rollOverItemThumbnailShadowOpacity:"rollOverThumbnailShadowOpacity",selectedItemBackgroundOpacity:"selectedBackgroundOpacity",
selectedItemBackgroundColor:"selectedBackgroundColor",selectedItemBackgroundColorRatios:"selectedBackgroundColorRatios",selectedItemBackgroundColorDirection:"selectedBackgroundColorDirection",selectedItemBorderRadius:"selectedBorderRadius",selectedItemBorderTopRadius:"selectedBorderTopRadius",selectedItemBorderBottomRadius:"selectedBorderBottomRadius",selectedItemBorderLeftRadius:"selectedBorderLeftRadius",selectedItemBorderRightRadius:"selectedBorderRightRadius",selectedItemBorderTopLeftRadius:"selectedBorderTopLeftRadius",
selectedItemBorderTopRightRadius:"selectedBorderTopRightRadius",selectedItemBorderBottomLeftRadius:"selectedBorderBottomLeftRadius",selectedItemBorderBottomRightRadius:"selectedBorderBottomRightRadius",selectedItemBorderSize:"selectedBorderSize",selectedItemBorderLeftSize:"selectedBorderLeftSize",selectedItemBorderTopSize:"selectedBorderTopSize",selectedItemBorderRightSize:"selectedBorderRightSize",selectedItemBorderBottomSize:"selectedBorderBottomSize",selectedItemBorderColor:"selectedBorderColor",
selectedItemBorderLeftColor:"selectedBorderLeftColor",selectedItemBorderTopColor:"selectedBorderTopColor",selectedItemBorderRightColor:"selectedBorderRightColor",selectedItemBorderBottomColor:"selectedBorderBottomColor",selectedItemLabelFontColor:"selectedLabelFontColor",selectedItemLabelFontSize:"selectedLabelFontSize",selectedItemLabelFontStyle:"selectedLabelFontStyle",selectedItemLabelFontWeight:"selectedLabelFontWeight",selectedItemLabelTextDecoration:"selectedLabelTextDecoration",selectedItemLabelTextShadowColor:"selectedLabelTextShadowColor",
selectedItemLabelTextShadowHorizontalLength:"selectedLabelTextShadowHorizontalLength",selectedItemLabelTextShadowVerticalLength:"selectedLabelTextShadowVerticalLength",selectedItemLabelTextShadowBlurRadius:"selectedLabelTextShadowBlurRadius",selectedItemLabelTextShadowOpacity:"selectedLabelTextShadowOpacity",selectedItemOpacity:"selectedOpacity",selectedItemPaddingLeft:"selectedPaddingLeft",selectedItemPaddingTop:"selectedPaddingTop",selectedItemPaddingRight:"selectedPaddingRight",selectedItemPaddingBottom:"selectedPaddingBottom",
selectedItemShadow:"selectedShadow",selectedItemThumbnailOpacity:"selectedThumbnailOpacity",selectedItemThumbnailBorderSize:"selectedThumbnailBorderSize",selectedItemThumbnailBorderColor:"selectedThumbnailBorderColor",selectedItemThumbnailShadow:"selectedThumbnailShadow",selectedItemThumbnailShadowHorizontalLength:"selectedThumbnailShadowHorizontalLength",selectedItemThumbnailShadowVerticalLength:"selectedThumbnailShadowVerticalLength",selectedItemThumbnailShadowBlurRadius:"selectedThumbnailShadowBlurRadius",
selectedItemThumbnailShadowSpread:"selectedThumbnailShadowSpread",selectedItemThumbnailShadowColor:"selectedThumbnailShadowColor",selectedItemThumbnailShadowOpacity:"selectedThumbnailShadowOpacity",toolTipBackgroundColor:"toolTipBackgroundColor",toolTipBackgroundOpacity:"toolTipBackgroundOpacity",toolTipBorderRadius:"toolTipBorderRadius",toolTipBorderColor:"toolTipBorderColor",toolTipBorderSize:"toolTipBorderSize",toolTipDisplayTime:"toolTipDisplayTime",toolTipFontFamily:"toolTipFontFamily",toolTipFontSize:"toolTipFontSize",
toolTipFontColor:"toolTipFontColor",toolTipFontWeight:"toolTipFontWeight",toolTipFontStyle:"toolTipFontStyle",toolTipPaddingBottom:"toolTipPaddingBottom",toolTipPaddingLeft:"toolTipPaddingLeft",toolTipPaddingTop:"toolTipPaddingTop",toolTipPaddingRight:"toolTipPaddingRight",toolTipShadowBlurRadius:"toolTipShadowBlurRadius",toolTipShadowColor:"toolTipShadowColor",toolTipShadowHorizontalLength:"toolTipShadowHorizontalLength",toolTipShadowOpacity:"toolTipShadowOpacity",toolTipShadowSpread:"toolTipShadowSpread",
toolTipShadowVerticalLength:"toolTipShadowVerticalLength",toolTipOpacity:"toolTipOpacity",toolTipTextShadowBlurRadius:"toolTipTextShadowBlurRadius",toolTipTextShadowColor:"toolTipTextShadowColor",toolTipTextShadowHorizontalLength:"toolTipTextShadowHorizontalLength",toolTipTextShadowOpacity:"toolTipTextShadowOpacity",toolTipTextShadowVerticalLength:"toolTipTextShadowVerticalLength"};g.Cy=a(g.Sr).keys();g.Dy=a(g.Tr).keys();return g});
define("ff","eD,kd,D,dx,iV,cU,bx,cV".split(","),function(a,b,c,e,d,f,i){a=a.extend(c,function(){c.call(this);this.Cb=q;this.set("itemMode","normal");this.uk=y;this.Xy=new d(this,"buttonScrollDown",f.Hc);this.Xy.bind(b.U,this.vaa,this);this.Yy=new d(this,"buttonScrollLeft",f.Hc);this.Yy.bind(b.U,this.scrollLeft,this);this.Zy=new d(this,"buttonScrollRight",f.Hc);this.Zy.bind(b.U,this.waa,this);this.$y=new d(this,"buttonScrollUp",f.Hc);this.$y.bind(b.U,this.xaa,this);this.bind(b.$,this.zka,this)});e.A("ThumbnailList",
a).B("UIComponent").R({buttonScrollDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScrollLeft:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScrollRight:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScrollUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",contentOpaque:"bool",gap:"number",hideScrollButtons:"bool",horizontalAlign:"enum[center, left, right]",itemMode:"enum[normal, thumbnail-only, label-only]",
itemBackgroundColor:"or[array[color], color]",itemBackgroundColorDirection:"enum[horizontal, vertical]",itemBackgroundColorRatios:"array[number]",itemBackgroundOpacity:"number",itemBorderBottomColor:"color",itemBorderBottomLeftRadius:"number",itemBorderBottomRadius:"number",itemBorderBottomRightRadius:"number",itemBorderBottomSize:"number",itemBorderColor:"color",itemBorderLeftColor:"color",itemBorderLeftRadius:"number",itemBorderLeftSize:"number",itemBorderRadius:"number",itemBorderRightColor:"color",
itemBorderRightRadius:"number",itemBorderRightSize:"number",itemBorderSize:"number",itemBorderTopColor:"color",itemBorderTopLeftRadius:"number",itemBorderTopRadius:"number",itemBorderTopRightRadius:"number",itemBorderTopSize:"number",itemHorizontalAlign:"enum[center, left, right]",itemLabelFontColor:"color",itemLabelFontFamily:"string",itemLabelFontSize:"or[number, size]",itemLabelFontStyle:"enum[italic, normal]",itemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",
itemLabelGap:"number",itemLabelHorizontalAlign:"enum[center, left, right]",itemLabelPosition:"enum[left, top, right, bottom]",itemLabelTextDecoration:"enum[underline, overline, line-through, none]",itemLabelTextShadowBlurRadius:"number",itemLabelTextShadowColor:"color",itemLabelTextShadowHorizontalLength:"number",itemLabelTextShadowOpacity:"number",itemLabelTextShadowVerticalLength:"number",itemOpacity:"number",itemPaddingBottom:"number",itemPaddingLeft:"number",itemPaddingTop:"number",itemPaddingRight:"number",
itemShadow:"bool",itemThumbnailBorderColor:"color",itemThumbnailBorderRadius:"number",itemThumbnailBorderSize:"number",itemThumbnailScaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",itemThumbnailHeight:"number",itemThumbnailWidth:"number",itemThumbnailMaxHeight:"number",itemThumbnailMaxWidth:"number",itemThumbnailOpacity:"number",itemThumbnailShadow:"bool",itemThumbnailShadowBlurRadius:"number",itemThumbnailShadowColor:"color",itemThumbnailShadowHorizontalLength:"number",
itemThumbnailShadowOpacity:"number",itemThumbnailShadowSpread:"number",itemThumbnailShadowVerticalLength:"number",itemVerticalAlign:"enum[bottom, middle, top]",layout:"enum[vertical, horizontal]",playList:"PlayList",rollOverItemBackgroundColor:"or[array[color], color]",rollOverItemBackgroundColorDirection:"enum[horizontal, vertical]",rollOverItemBackgroundColorRatios:"array[number]",rollOverItemBackgroundOpacity:"number",rollOverItemBorderBottomColor:"color",rollOverItemBorderBottomLeftRadius:"number",
rollOverItemBorderBottomRadius:"number",rollOverItemBorderBottomRightRadius:"number",rollOverItemBorderBottomSize:"number",rollOverItemBorderColor:"color",rollOverItemBorderLeftColor:"color",rollOverItemBorderLeftRadius:"number",rollOverItemBorderLeftSize:"number",rollOverItemBorderRadius:"number",rollOverItemBorderRightColor:"color",rollOverItemBorderRightRadius:"number",rollOverItemBorderRightSize:"number",rollOverItemBorderSize:"number",rollOverItemBorderTopColor:"color",rollOverItemBorderTopLeftRadius:"number",
rollOverItemBorderTopRadius:"number",rollOverItemBorderTopRightRadius:"number",rollOverItemBorderTopSize:"number",rollOverItemLabelFontColor:"color",rollOverItemLabelFontSize:"or[number, size]",rollOverItemLabelFontStyle:"enum[italic, normal]",rollOverItemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",rollOverItemLabelTextDecoration:"enum[underline, overline, line-through, none]",rollOverItemLabelTextShadowBlurRadius:"number",rollOverItemLabelTextShadowColor:"color",
rollOverItemLabelTextShadowHorizontalLength:"number",rollOverItemLabelTextShadowOpacity:"number",rollOverItemLabelTextShadowVerticalLength:"number",rollOverItemOpacity:"number",rollOverItemPaddingBottom:"number",rollOverItemPaddingLeft:"number",rollOverItemPaddingRight:"number",rollOverItemPaddingTop:"number",rollOverItemShadow:"bool",rollOverItemThumbnailBorderColor:"color",rollOverItemThumbnailBorderSize:"number",rollOverItemThumbnailOpacity:"number",rollOverItemThumbnailShadow:"bool",rollOverItemThumbnailShadowBlurRadius:"number",
rollOverItemThumbnailShadowColor:"color",rollOverItemThumbnailShadowHorizontalLength:"number",rollOverItemThumbnailShadowOpacity:"number",rollOverItemThumbnailShadowSpread:"number",rollOverItemThumbnailShadowVerticalLength:"number",scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",selectedItemBackgroundColor:"or[array[color], color]",selectedItemBackgroundColorDirection:"enum[horizontal, vertical]",
selectedItemBackgroundColorRatios:"array[number]",selectedItemBackgroundOpacity:"number",selectedItemBorderBottomColor:"color",selectedItemBorderBottomLeftRadius:"number",selectedItemBorderBottomRadius:"number",selectedItemBorderBottomRightRadius:"number",selectedItemBorderBottomSize:"number",selectedItemBorderColor:"color",selectedItemBorderLeftColor:"color",selectedItemBorderLeftRadius:"number",selectedItemBorderLeftSize:"number",selectedItemBorderRadius:"number",selectedItemBorderRightRadius:"number",
selectedItemBorderRightSize:"number",selectedItemBorderSize:"number",selectedItemBorderTopLeftRadius:"number",selectedItemBorderTopRadius:"number",selectedItemBorderTopRightRadius:"number",selectedItemBorderTopSize:"number",selectedItemBorderTopColor:"color",selectedItemBorderRightColor:"color",selectedItemLabelFontColor:"color",selectedItemLabelFontSize:"or[number, size]",selectedItemLabelFontStyle:"enum[italic, normal]",selectedItemLabelFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",
selectedItemLabelTextDecoration:"enum[underline, overline, line-through, none]",selectedItemLabelTextShadowBlurRadius:"number",selectedItemLabelTextShadowColor:"color",selectedItemLabelTextShadowHorizontalLength:"number",selectedItemLabelTextShadowOpacity:"number",selectedItemLabelTextShadowVerticalLength:"number",selectedItemOpacity:"number",selectedItemPaddingBottom:"number",selectedItemPaddingLeft:"number",selectedItemPaddingTop:"number",selectedItemPaddingRight:"number",selectedItemShadow:"bool",
selectedItemThumbnailBorderSize:"number",selectedItemThumbnailBorderColor:"color",selectedItemThumbnailOpacity:"number",selectedItemThumbnailShadow:"bool",selectedItemThumbnailShadowBlurRadius:"number",selectedItemThumbnailShadowColor:"color",selectedItemThumbnailShadowHorizontalLength:"number",selectedItemThumbnailShadowOpacity:"number",selectedItemThumbnailShadowSpread:"number",selectedItemThumbnailShadowVerticalLength:"number",verticalAlign:"enum[bottom, middle, top]",itemLabelFunction:"*"}).To(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).fc([b.$]);a.prototype.Oh=function(){c.prototype.Oh.call(this);this.Et()};a.prototype.uo=function(){c.prototype.uo.call(this);this.Et()};a.prototype.Et=function(){this.Xy.set("visible",!this.uk||this.jF());this.$y.set("visible",!this.uk||this.mF());this.Yy.set("visible",!this.uk||this.kF());this.Zy.set("visible",!this.uk||this.lF())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.Hn);this.set("itemThumbnailUrlFunction",this.aA);this.set("itemTooltipFunction",this.Ls);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.Ls);this.set("itemThumbnailUrlFunction",this.Hn);this.set("itemTooltipFunction",this.Hn);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.Ls);this.set("itemThumbnailUrlFunction",this.aA);
this.set("itemTooltipFunction",this.Hn);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.Cb&&this.Cb.unbind("change",this.Vn,this);if(this.Cb=b){this.set("items",this.Cb.get("items"));this.Cb.bind("change",this.Vn,this)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.uk=b;this.Et()}else c.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){switch(a){case "playList":return this.Cb;default:return c.prototype.get.call(this,
a,b)}};a.prototype.Vn=function(){this.set("items",this.Cb.get("items"));this.set("selectedIndex",this.Cb.get("selectedIndex"))};a.prototype.zka=function(){this.Cb&&this.Cb.set("selectedIndex",this.get("selectedIndex"))};a.prototype.Hn=E();a.prototype.Ls=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.aA=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&(b=i.z8(b));return b};return a});
define("bA",["eD","kd","d","dx"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});e.A("UIComponent",a).B("Object").R({actualHeight:"number",actualWidth:"number",backgroundColor:"or[array[color], color]",backgroundColorDirection:"enum[horizontal, vertical]",backgroundColorRatios:"array[number]",backgroundImageUrl:"string",backgroundOpacity:"number",borderBottomColor:"color",borderBottomLeftRadius:"number",borderBottomRadius:"number",borderBottomRightRadius:"number",borderBottomSize:"number",
borderColor:"color",borderLeftColor:"color",borderLeftRadius:"number",borderLeftSize:"number",borderRadius:"number",borderRightColor:"color",borderRightRadius:"number",borderRightSize:"number",borderSize:"number",borderTopColor:"color",borderTopLeftRadius:"number",borderTopRadius:"number",borderTopRightRadius:"number",borderTopSize:"number",bottom:"or[number, percent]",centerX:"number",centerY:"number",cursor:"enum[default, hand]",height:"or[number, percent]",hideEffect:"Effect",includeInLayout:"bool",
interactionEnabled:"bool",inView:"bool",left:"or[number, percent]",maxHeight:"number",maxWidth:"number",minHeight:"number",minWidth:"number",opacity:"number",paddingBottom:"number",paddingLeft:"number",paddingTop:"number",paddingRight:"number",propagateClick:"bool",right:"or[number, percent]",rollOverOpacity:"number",showEffect:"Effect",shadow:"bool",shadowBlurRadius:"number",shadowColor:"color",shadowHorizontalLength:"number",shadowOpacity:"number",shadowSpread:"number",shadowVerticalLength:"number",
toolTip:"string",toolTipBackgroundColor:"or[color, enum[transparent]]",toolTipBackgroundOpacity:"number",toolTipBorderRadius:"number",toolTipBorderColor:"color",toolTipBorderSize:"number",toolTipDisplayTime:"number",toolTipFontFamily:"string",toolTipFontSize:"or[number, size]",toolTipFontColor:"color",toolTipFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",toolTipFontStyle:"enum[italic, normal]",toolTipHorizontalAlign:"enum[left, center, right]",toolTipPaddingBottom:"number",
toolTipPaddingLeft:"number",toolTipPaddingTop:"number",toolTipPaddingRight:"number",toolTipShadowBlurRadius:"number",toolTipShadowColor:"color",toolTipShadowHorizontalLength:"number",toolTipShadowOpacity:"number",toolTipShadowSpread:"number",toolTipShadowVerticalLength:"number",toolTipOpacity:"number",toolTipTextShadowBlurRadius:"number",toolTipTextShadowColor:"color",toolTipTextShadowHorizontalLength:"number",toolTipTextShadowOpacity:"number",toolTipTextShadowVerticalLength:"number",top:"or[number, percent]",
visible:"bool",width:"or[number, percent]"}).To(["toolTipFontSize"]).Si(["backgroundImageUrl"]).fc([b.Df,b.INIT,b.U,b.fk,b.Ef,b.pb,b.Ic,b.jc,b.Le,b.aZ,b.GM]);return a});
define("y","require,eD,kd,dx,bc,iw,db,dT".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("dx"),d=a("bc"),f=a("iw"),i=a("db"),a=a("dT"),b=b.extend(i,function(){i.call(this);this.P=m;this.set("autoplay",o);this.set("blending",0);this.set("mute",y);this.set("scaleMode",f.qe);this.set("horizontalAlign",d.pc);this.set("verticalAlign",d.$b)});b.Je=a.Je;e.A("Video",b).B("Media").R({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",
currentTime:"number",duration:"number",state:"enum[playing, paused, stopped]",height:"number",horizontalAlign:"enum[center, left, right]",mute:"bool",loop:"bool",scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]",verticalAlign:"enum[bottom, middle, top]",video:"VideoResource",width:"number"}).fc([c.Ia,b.Je]);b.prototype.Fo=function(){this.get("video");return[]};return b});
define("eP","require,eD,kd,dx,fZ,dT".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("dx"),d=a("fZ"),a=a("dT"),b=b.extend(d,function(){d.call(this)});b.Je=a.Je;e.A("VideoPanorama",b).B("Panorama").R({cues:"array[VideoCue]",loop:"bool"}).fc([c.Ia,b.Je]);return b});
define("gD",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("Video360Resource",b).B("Video360ResourceLevel").R({levels:"array[Video360ResourceLevel]",subtitlesURL:"string"}).Si(["subtitlesURL"]);b.prototype.get=function(a,b){switch(a){case "levels":b=[this];break;case "subtitlesURL":for(var f=c.prototype.get.call(this,a),i=this.get("levels"),j=0;i&&j<i.length&&f===m;j++){var k=i[j];k!=this&&(f=k.get("subtitlesURL"))}return f!==m?
f:b}return c.prototype.get.call(this,a,b)};return b});
define("cD","require,eD,cV,dx,dt,eP,gD".split(","),function(a){var b=a("eD"),c=a("cV"),e=a("dx"),d=a("dt"),f=a("eP"),i=a("gD"),a=b.extend(f,function(){f.call(this);this.xj=this.u=m});e.A("Video360",a).B("VideoPanorama").R({video:"or[Video360Resource, array[Video360Resource]]"});a.prototype.set=function(a,b){a=="video"?this.Mda(b):f.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a=="video"?this.u===m?b:this.u:f.prototype.get.call(this,a,b)};a.prototype.Mda=function(a){if(this.u!=
a){this.u=a;a=[];if(this.u){var b=new d;b.set("sphere",this.wja(this.u));a.push(b)}f.prototype.set.call(this,"frames",a)}};a.prototype.wja=function(a){if(c.isArray(a)){var b=[];c(a).each(function(a){b=b.concat(a.get("levels")||[a])});a=new i;a.set("levels",b)}return a};return a});define("bw",["require","eD","dx","jR"],function(a){var b=a("eD"),c=a("dx"),e=a("jR"),a=b.extend(e,function(){e.call(this)});c.A("Video360Player",a).B("PanoramaPlayer");return a});
define("gV",["eD","dx","cl","cT"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("Video360PlayListItem",a).B("PlayListItem").R({media:"Video360",camera:"RotationalCamera",player:"PanoramaPlayer",startTime:"number"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.kf,this.ri,this),a.set("video",this.get("media")),a.set("camera",this.get("camera")),a.set("startTime",this.get("startTime")))};a.prototype.stop=function(){var a=this.get("player");
a&&(a.unbind(c.kf,this.ri,this),a.get("video")==this.get("media")&&a.set("video",q));e.prototype.stop.call(this)};a.prototype.ri=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.kf,this.ri,this),this.get("player").bind(c.Vg,this.Hk,this),this.gx())};a.prototype.Hk=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Vg,this.Hk,this),this.end())};return a});
define("jX",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("Video360ResourceLevel",b).B("VideoResourceLevel");return b});
define("bG","require,eD,im,kd,eQ,bS,dx,dT,hi".split(","),function(a){var b=a("eD"),c=a("im"),e=a("kd"),d=a("eQ"),f=a("bS"),i=a("dx"),j=a("dT"),k=a("hi"),n=b.extend(c,function(){c.call(this);this.Vd=m;this.set("enabled",o);this.set("interactionEnabled",o);this.set("state",d.K);this.set("enabledInCardboard",o);this.set("enabledInStandard",o);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});n.prototype.play=function(){this.set("state",d.N)};
n.prototype.pause=function(){this.set("state",d.Ac)};n.prototype.stop=function(){this.set("state",d.K)};n.Je=j.Je;n.wd="stateChange";i.A("VideoPanoramaOverlay",n).B("PanoramaOverlay").R({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",hfov:"number",vfov:"number",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",image:"ImageResource",loop:"bool",opacity:"number",pitch:"number",rotationX:"number",rotationY:"number",roll:"number",state:"enum[stopped, playing, paused]",toolTip:"string",useHandCursor:"bool",video:"VideoResource",yaw:"number",playbackPositions:"array[PanoramaOverlayPlaybackPosition]"}).fc([e.Ia,e.Df,e.fk,e.Ef,e.Ic,e.jc,e.Le,e.aj,n.Je,
n.wd]).Rg([e.U]).Sg({pause:n.prototype.pause,play:n.prototype.play,stop:n.prototype.stop});n.prototype.set=function(a,b){var i=y;switch(a){case "state":var j=this.get("state")||d.K;j==d.K&&b==d.N&&this.trigger(e.aj);j!=b&&this.trigger(new f(n.wd,{oldState:j,state:b}));break;case "enabledInCardboard":this.set("enabledInVR",b);break;case "distance":case "hfov":case "opacity":case "pitch":case "rotationX":case "rotationY":case "roll":case "vfov":case "yaw":case "playbackPositions":this.Vd=m;i=o}c.prototype.set.call(this,
a,b);i&&a!="playbackPositions"&&this.trigger(e.L("playbackPositions"))};n.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Vd===m)this.Vd=k.qK(this);return this.Vd}return c.prototype.get.call(this,a,b)};n.prototype.qK=function(){if(this.Vd===m)this.Vd=k.qK(this);return this.Vd};return n});
define("cv","require,cV,eD,kd,bS,em,eQ,y".split(","),function(a){function b(a,b,c){this.time=a;this.cue=b;this.action=c}var c=a("cV"),e=a("eD"),d=a("kd"),f=a("bS"),i=a("em"),j=a("eQ"),k=a("y"),a=e.extend(i,function(a){i.call(this);this.g=a;this.ib=q;this.kg=y;this.Gf=[];this.ai=m;this.kc=[]});a.prototype.clear=function(){this.g=q;this.js();this.Gf=[];this.kc=[]};a.prototype.start=function(a){this.end();this.XS(a);this.pO();this.vT();this.Jt()};a.prototype.XS=function(a){this.js();this.ib=a;this.ib.bind(d.L("currentTime"),
this.Jt,this,o);this.ib.bind(d.L("state"),this.vT,this,o);this.ib.bind(d.Ia,this.AC,this,o)};a.prototype.js=function(){if(this.ib){this.ib.unbind(d.L("currentTime"),this.Jt,this);this.ib.unbind(d.L("state"),this.vT,this);this.ib.unbind(d.Ia,this.AC,this);this.ib=q}};a.prototype.end=function(){this.bz();this.js()};a.prototype.vT=function(a){a=a!=j.K;if(this.kg!=a)(this.kg=a)?this.WI():this.bz()};a.prototype.AC=function(){this.Jt()};a.prototype.WI=function(){this.ai=this.sv=0};a.prototype.Jt=function(){if(this.ib&&
this.kg){var a=this.kc.slice(),b=this.ib.get("currentTime",0),e=b-this.sv;if(e<0){this.kc=[];this.ai=0}e=e>=0&&e<2;this.sv=b;var i;for(i=this.ai;i<this.Gf.length;i++)if(this.Gf[i].time>b)break;for(;this.ai<i;this.ai++){b=this.Gf[this.ai];if(b.action=="start"){this.kc=c(this.kc).union([b.cue]);e&&b.cue.trigger(new f(d.Xj))}else{this.kc=c(this.kc).difference([b.cue]);e&&b.cue.trigger(new f(d.Ia))}}(a.length!=this.kc.length||c(a).intersection(this.kc).length!=this.kc.length)&&this.bC()}};a.prototype.bz=
function(){if(this.kc.length>0){this.kc=[];this.bC()}};a.prototype.bC=function(){this.ib.trigger(new f(k.Je,{activeCues:this.kc.slice()}))};a.prototype.pO=function(){this.Gf=[];var a=this.ib.get("cues",[]);c(a).each(function(a){this.Gf.push(new b(a.get("startTime",0),a,"start"));this.Gf.push(new b(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.Gf.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("jz","require,eD,X,bS,em,kd,iw".split(","),function(a){var b=a("eD"),c=a("X"),e=a("bS"),d=a("em");a("kd");a("iw");var f=b.extend(d,function(a,b){d.call(this);this.D=a;this.g=b;this.dt=[];this.X=f.cj;this.of=q;this.UO=m;this.Jf=q;this.yh=this.Lg=m});f.prototype.display=function(a,b){this.ZN();if(this.Jf!=a||this.X!=f.cj){this.dt.push({video:a,startTime:b});this.e4()}};f.prototype.hide=function(){this.ZN();this.dt.push({video:q,startTime:m});this.e4()};f.prototype.clear=function(){this.X=f.cj;
this.ZN();this.Bla();this.x5();this.g=q};f.prototype.Uj=function(a){if(this.X!=f.cj&&(this.X==f.ip||this.X==f.Fy||this.X==f.WM)){this.yh=this.yh+a;a=Math.min(1,this.yh/this.Lg);if(this.X==f.ip)this.of.set("opacity",a);else if(this.X==f.WM){this.of.set("opacity",Math.min(1,a*2));this.Jf.set("opacity",Math.min(1,(1-a)*2))}else this.Jf.set("opacity",1-a);this.yh<this.Lg?this.ea():this.Av()}};f.prototype.e4=function(){this.dt.length>0&&this.X==f.cj&&this.mp()};f.prototype.mp=function(){this.Jf&&this.trigger(new e(f.Gr,
{video:this.Jf}));if(this.D.get("transitionMode","blending")=="fade_out_fade_in"&&this.Jf)this.Ry();else{var a=this.dt.shift();this.of=a.video;this.UO=a.startTime;this.of?this.of.get("chromaColor")&&this.Jf?this.Qda():this.DN():this.Jf&&this.Ry()}};f.prototype.DN=function(){this.YZ();this.yh=0;this.Lg=this.D.get("transitionDuration");this.X=f.ip;this.ea()};f.prototype.Qda=function(){this.YZ();this.yh=0;this.Lg=this.D.get("transitionDuration")*2;this.X=f.WM;this.ea()};f.prototype.Ry=function(){this.of=
q;this.yh=0;this.Lg=this.D.get("transitionDuration");this.X=f.Fy;this.ea()};f.prototype.Av=function(){this.x5();this.Jf=this.of;this.of=q;this.X=f.cj;this.Jf?this.trigger(new e(f.Hr,{video:this.Jf})):this.dt.length==0&&this.trigger(new e(f.KX));this.dt.length!=0&&this.mp()};f.prototype.ea=function(){c.Ha(this.Uj,this)};f.prototype.ZN=function(){this.dt=[]};f.prototype.YZ=function(){if(this.of){this.of.set("opacity",0);this.of.set("zIndex",1);this.Jf&&this.Jf.set("zIndex",0);this.of.set("currentTime",
this.UO||0);this.g.Xpa(this.of);this.trigger(new e(f.fM,{video:this.of,startTime:this.UO}))}};f.prototype.x5=function(){if(this.Jf){this.g.eaa(this.Jf);this.trigger(new e(f.oE,{video:this.Jf}));this.Jf=q}};f.prototype.Bla=function(){if(this.of){this.g.eaa(this.of);this.trigger(new e(f.oE,{video:this.of}));this.of=q}};f.cj="stopped";f.ip="blending";f.WM="double blending";f.Fy="disolving";f.Ca="request frame";f.fM="video added";f.oE="video removed";f.Hr="video show";f.Gr="video hide";f.KX="all pending videos hidden";
return f});
define("gs","require,eD,kd,bS,em,eQ".split(","),function(a){var b=a("eD"),c=a("kd"),e=a("bS"),d=a("em"),f=a("eQ"),i=b.extend(d,function(){d.call(this);this.ib=q;this.Jd=y;this.GO=f.K});i.prototype.start=function(a){this.end();this.XS(a)};i.prototype.end=function(){this.stop();this.js()};i.prototype.clear=function(){this.js()};i.prototype.play=function(){this.ib&&this.ib.set("state",f.N)};i.prototype.pause=function(){this.ib&&this.ib.set("state",f.Ac)};i.prototype.stop=function(){this.ib&&this.ib.set("state",
f.K)};i.prototype.Px=function(){this.Jd=o;this.ib&&this.ib.set("muted",o)};i.prototype.ZD=function(){this.Jd=y;this.ib&&this.ib.set("muted",y)};i.prototype.setTime=function(a){this.ib&&this.ib.set("currentTime",a)};i.prototype.getTime=function(){if(this.ib)return this.ib.get("currentTime")};i.prototype.XS=function(a){this.js();this.ib=a;this.ib.set("mute",this.Jd);this.ib.bind(c.L("state"),this.Nw,this,o);this.ib.bind(c.L("currentTime"),this.Kt,this,o);this.ib.bind(c.Ia,this.AC,this,o)};i.prototype.js=
function(){if(this.ib){this.ib.unbind(c.L("state"),this.Nw,this);this.ib.unbind(c.L("currentTime"),this.Kt,this);this.ib.unbind(c.Ia,this.AC,this);this.ib=q}};i.prototype.Kt=function(){this.trigger(new e(i.Ir,{video:this.ib,time:this.ib.get("currentTime"),duration:this.ib.get("duration")}))};i.prototype.AC=function(){this.trigger(new e(i.sy,{video:this.ib}))};i.prototype.Nw=function(a){a=this.ib.get("state");if(this.GO!=a){this.GO=a;this.trigger(new e(i.Kb,{state:this.GO}))}};i.Kb="playback state change";
i.sy="video end";i.Ir="video time change";return i});
define("bV","eD,eQ,bS,em,cv,jz,gs".split(","),function(a,b,c,e,d,f,i){var j=a.extend(e,function(a,b){e.call(this);this.D=a;this.g=b;this.g.set("visible",y);this.Ea=new f(this.D,this.g);this.gb=new i(this.g);this.Gl=new d(this.g);this.Ea.bind(f.Gr,this.Hk,this,o);this.Ea.bind(f.Hr,this.ri,this,o);this.Ea.bind(f.fM,this.v4,this,o);this.Ea.bind(f.oE,this.w4,this,o);this.Ea.bind(f.KX,this.Eja,this,o);this.gb.bind(i.Kb,this.Ud,this,o);this.gb.bind(i.sy,this.mq,this,o);this.gb.bind(i.Ir,this.VA,this,o)});
j.prototype.clear=function(){this.Ea.clear();this.gb.clear();this.Gl.clear();this.Ea.unbind(f.Gr,this.Hk,this);this.Ea.unbind(f.Hr,this.ri,this);this.Ea.unbind(f.fM,this.v4,this);this.Ea.unbind(f.oE,this.w4,this);this.gb.unbind(i.Kb,this.Ud,this);this.gb.unbind(i.sy,this.mq,this);this.gb.unbind(i.Ir,this.VA,this);this.D=this.g=this.Gl=this.gb=this.Ea=q};j.prototype.Tua=function(a,b){this.g.set("visible",o);this.Ea.display(a,b)};j.prototype.su=function(){this.Ea.hide();this.gb.end();this.Gl.end()};
j.prototype.play=function(){this.gb.play()};j.prototype.stop=function(){this.gb.stop()};j.prototype.pause=function(){this.gb.pause()};j.prototype.Px=function(){this.gb.Px()};j.prototype.ZD=function(){this.gb.ZD()};j.prototype.setTime=function(a){this.gb.setTime(a)};j.prototype.getTime=function(){return this.gb.getTime()};j.prototype.v4=function(a){var b=a.data.video;this.gb.start(b,a.data.startTime);this.Gl.start(b)};j.prototype.w4=E();j.prototype.ri=function(a){a=a.data.video;a.get("autoplay")&&
a.get("state")!=b.N&&a.set("state",b.N);this.trigger(new c(j.Hr,{video:a}))};j.prototype.Hk=function(a){this.trigger(new c(j.Gr,{video:a.data.video}))};j.prototype.Eja=function(){this.g.set("visible",y)};j.prototype.mq=function(a){this.trigger(new c(j.sy,{video:a.data.video}))};j.prototype.VA=function(a){this.trigger(new c(j.Ir,{video:a.data.video,time:a.data.time,duration:a.data.duration}))};j.prototype.Ud=function(a){this.trigger(new c(j.Kb,{state:a.data.state}))};j.Hr="videoShow";j.Gr="videoHide";
j.sy="videoEnd";j.Ir="videoTimeChange";j.Kb="playbackStateChange";return j});
define("hN","require,eD,kd,bS,dx,cl,fW,eQ,bV,iA".split(","),function(a){var b=a("eD"),c=a("kd");a("bS");var e=a("dx"),d=a("cl"),f=a("fW"),i=a("eQ"),j=a("bV"),k=a("iA"),a=b.extend(f,function(){f.call(this,"video");this.set("clickAction","none");this.set("displayPlayOverlay",y);this.ts=this.tT=this.Kt=this.Mg=y;this.p=this.g=q;this.Ob=this.ec=0;this.Tc=b.Jo(this.cf,this)});e.A("VideoPlayer",a).B("Object").R({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"}).Sg({seek:function(a){this.uB(a)},play:function(){this.hw()},pause:function(){this.gw()},
stop:function(){this.bt()},restart:function(){this.at()}}).fc([d.kf,d.Vg,f.wd]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "startTime":this.tT=o;this.Tc();break;case "video":this.Kt=o;this.Tc();break;case "viewerArea":this.Mg=o;this.Tc();break;case "displayPlaybackBar":this.ts=o;this.Tc()}f.prototype.set.call(this,a,b)}};a.prototype.get=function(a,b){switch(a){case "currentTime":return this.p&&this.p.getTime()||0}return f.prototype.get.call(this,a,b)};a.prototype.cf=function(){if(this.Mg){this.Mg=
y;this.ss();this.get("viewerArea")&&this.qs();this.LI(this.get("viewerArea"));this.Kt=o}var a=y;if(this.g&&(this.Kt||this.tT)){var b=this.get("video"),c=this.get("startTime")||0;if(b&&!this.g.Pa()){this.Tc();return}this.tT=this.Kt=y;this.Ob=this.ec=0;a=o;if(b){this.lI();this.p.Tua(b,c)}else this.p.su()}if(this.ts){this.ts=y;a=o}a&&this.rC()};a.prototype.PB=function(){this.set("video",q)};a.prototype.qs=function(){var a=this.get("application"),b=this.get("viewerArea");this.g=new k(a,b,this);this.g.M({left:0,
top:0,bottom:0,right:0});b.ia(this.g);b.bind(c.U,this.z4,this,o);this.p=new j(b,this.g);this.p.bind(j.Hr,this.ri,this);this.p.bind(j.Gr,this.Hk,this);this.p.bind(j.Ir,this.VA,this,o);this.p.bind(j.Kb,this.Ud,this);a.bind(c.L("mute"),this.GA,this);a.get("mute",y)&&this.p.Px();this.Gw(o)};a.prototype.ss=function(){if(this.g){this.p.unbind(j.Hr,this.ri,this);this.p.unbind(j.Gr,this.Hk,this);this.p.unbind(j.Ir,this.VA,this);this.p.unbind(j.Kb,this.Ud,this);this.p.clear();this.get("application").unbind(c.L("mute"),
this.GA,this);var a=this.g.getParent();a.removeChild(this.g);a.unbind(c.U,this.z4,this,o);this.g=q;this.Gw(y)}};a.prototype.GA=function(){this.g&&(this.get("application").get("mute",y)?this.p.Px():this.p.ZD())};a.prototype.Ud=function(a){a=a.data.state;this.g&&this.g.WW(this.get("displayPlayOverlay")&&a!=i.N,this.ec<0.5);this.Pb(a)};a.prototype.ri=function(a){var b=this.get("viewerArea");(this.gc=b&&b.gc)&&this.gc.bind(c.U,this.A4,this,o);this.YR=y;this.XG(a.data.video)};a.prototype.Hk=function(a){this.gc&&
this.gc.unbind(c.U,this.A4,this,o);this.gc=q;this.WG(a.data.video)};a.prototype.VA=function(a){this.ec=a.data.time;this.Ob=a.data.duration;this.rC()};a.prototype.z4=function(){if(this.YR)this.YR=y;else switch(this.get("clickAction")){case "play_pause":this.get("state")!=i.N?this.p.play():this.p.pause()}};a.prototype.A4=function(){this.YR=o};a.prototype.UH=function(a){this.uB(a.data.position)};a.prototype.Ig=function(){this.p.play()};a.prototype.Gj=function(){this.p.stop()};a.prototype.Jk=function(){this.p.pause()};
a.prototype.uB=function(a){this.p&&this.p.setTime(a)};a.prototype.rC=function(){if(this.g){var a=this.g.getParent();this.Ob>0&&this.get("displayPlaybackBar")?a.M({playbackBarPosition:this.ec,playbackBarDuration:this.Ob,playbackBarVisible:o}):a.set("playbackBarVisible",y)}};return a});
define("f",["eD","dx","cl","cT"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("VideoPlayListItem",a).B("PlayListItem").R({media:"Video",player:"VideoPlayer",startTime:"number"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.kf,this.ri,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.kf,this.ri,this),a.get("video")==this.get("media")&&
a.set("video",q));e.prototype.stop.call(this)};a.prototype.ri=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.kf,this.ri,this),this.get("player").bind(c.Vg,this.Hk,this),this.gx())};a.prototype.Hk=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Vg,this.Hk,this),this.end())};return a});
define("fj",["require","eD","im","dx"],function(a){var b=a("eD"),c=a("im"),a=a("dx"),b=b.extend(c,function(){c.call(this)});a.A("VideoResourceLevel",b).B("Object").R({bitrate:"number",framerate:"number",height:"number",posterURL:"string",type:"string",url:"string",width:"number"}).Si(["posterURL","url"]);return b});
define("iW","require,eD,im,dx,ig,fj".split(","),function(a){var b=a("eD"),c=a("im"),e=a("dx"),d=a("ig"),f=a("fj"),a=b.extend(c,function(){c.call(this);this.kR=new f;this.kR.set("type","video/mp4");this.nR=new f;this.nR.set("type","video/ogg");this.KU=new f;this.KU.set("type","video/webm")});e.A("VideoResource",a).B("Object").R({levels:"array[VideoResourceLevel]",mp4Url:"string",oggUrl:"string",subtitlesURL:"string",webmUrl:"string",width:"number",height:"number"}).Si(["mp4Url","oggUrl","subtitlesURL",
"webmUrl"]);a.prototype.get=function(a,b){switch(a){case "levels":var b=[],d=this.get("mp4Url");if(d){this.kR.set("url",d);b.push(this.kR)}if(d=this.get("oggUrl")){this.nR.set("url",d);b.push(this.nR)}if(d=this.get("webmUrl")){this.KU.set("url",d);b.push(this.KU)}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.Gh=function(){var a=this.get("webmUrl"),b=this.get("oggUrl"),c=this.get("mp4Url");return c&&
d.hD?c:a&&d.tK?a:b&&d.LV?b:c||a||b};return a});
define("eG","require,jquery.mod,eD,kd,u,iB,d,eB".split(","),function(a){var b=a("jquery.mod"),c=a("eD"),e=a("kd"),d=a("u"),f=a("iB"),i=a("d"),j=a("eB"),a=c.extend(i,function(){i.call(this);this.Dc("WebFrame");this.hA=this.xs=this.Te=this.Oq=q;this.uR=this.uR.bind(this);this.nH=this.nH.bind(this);this.bind(e.Le,this.Hka,this,o);this.bind(e.Df,this.Gka,this,o)});a.prototype.ta=function(){i.prototype.ta.call(this);this.f("url");this.f("backgroundColor","#ffffff");this.f("insetBorder",y);this.f("scrollEnabled",
o)};a.prototype.Hka=function(){this.vt("url")};a.prototype.Gka=function(){this.vt("url")};a.prototype.Ba=function(){i.prototype.Ba.call(this);if(!this.Oq){this.Oq=b("<div></div>");this.Oq.css({position:"absolute",left:0,top:0,width:"100%",height:"100%"});this.Ja().append(this.Oq)}if(!this.Te){this.Te=b("<iframe></iframe>");this.Te.css({position:"absolute",left:0,top:0});this.Te.attr("allowfullscreen","true");this.Te.attr("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone");
this.Oq.append(this.Te)}if(!this.xs){this.xs=b("<div></div>");this.xs.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.Qa()?"5vmin":"20px",position:"absolute",top:"50%",left:"50%","text-align":"center",transform:"translate(-50%, -50%)",width:"90%"});this.Oq.append(this.xs)}};a.prototype.fa=function(){if(this.n("url")){var a=this.j("url");a&&this.Up?this.h6(a):this.h6("");this.o("url")}if(this.n("insetBorder")){this.j("insetBorder")?
this.Te.attr("frameborder","1"):this.Te.attr("frameborder","0");this.o("insetBorder")}if(this.n("scrollEnabled")){if(this.j("scrollEnabled")){this.Te.attr("scrolling","auto");this.Oq.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}else{this.Te.attr("scrolling","no");this.Oq.css({overflow:"hidden","-webkit-overflow-scrolling":"auto"})}this.o("scrollEnabled")}i.prototype.fa.call(this)};a.prototype.pe=function(){this.Te&&j.css(this.Te.get(0),{width:this.W+"px",height:this.da+"px"});i.prototype.pe.call(this)};
a.prototype.refresh=function(){if(this.j("url")&&this.Up){this.kQ();this.wF();this.QT();this.Te.attr("src","");setTimeout(function(){this.K6();this.y_();this.Te.attr("src",this.j("url"))}.bind(this),30)}};a.prototype.h6=function(a){if(this.Te.attr("src")!=a){this.kQ();if(a){this.K6();this.y_()}else{this.wF();this.QT()}this.Te.attr("src",a)}};a.prototype.uR=function(){this.hA=q;this.Uia()&&this.vna()};a.prototype.nH=function(){this.kQ();this.wF();this.QT()};a.prototype.y_=function(){this.Te.on("load",
this.nH)};a.prototype.QT=function(){this.Te.off("load",this.nH)};a.prototype.wF=function(){if(this.hA){clearTimeout(this.hA);this.hA=q}};a.prototype.K6=function(){this.wF();this.hA=setTimeout(this.uR.bind(this),3E3)};a.prototype.Uia=function(){if(window.location.protocol=="https:"){var a=this.Te.attr("src");if(f.parse(a).protocol!="https:")return o}return y};a.prototype.vna=function(){this.xs.text("A secure web page served over HTTPS can not display insecure content served over HTTP.");this.xs.show()};
a.prototype.kQ=function(){this.xs.hide()};return a});define("bJ",["eD","eG","dx"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("WebFrame",a).B("UIComponent").R({url:"string",insetBorder:"bool",scrollEnabled:"bool"}).Si(["url"]).Sg({refresh:function(){b.prototype.refresh.call(this)}});return a});define("cJ",["cV","eD","jM","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.fb={layout:e.$d};a.defaults(d.fb,c.fb);d.prototype.ta=function(){this.jj(d.fb)};return d});
define("iK","cV,eD,kd,bS,bc,c,jM,cJ,fd,ec,d,jq,jD,gj".split(","),function(a,b,c,e,d,f,i,j,k,n,g,l,r,p){var s=b.extend(k,function(){k.call(this);this.Dc("Window");this.op=this.mv=this.ZB=this.fh=q;this.IN=new i;this.Hv=q;this.gQ=this.fQ=0;this.A6=this.B6=y;this.LU=this.MU=m;for(var a in s.jwa)this.vt(a);this.bind(c.pb,this.Hpa,this);this.bind(c.Jr,this.Fpa,this);this.bind(c.Pu,this.Ipa,this);this.bind(c.U,this.Epa,this);this.zJ=0;this.Xc=new i;this.Xc.M({visible:y,includeInLayout:y,layout:"absolute",
height:"100%",width:"100%",backgroundOpacity:0,contentOpaque:y});this.Xc.bind(c.pb,this.i8,this);this.Xc.bind(c.Pu,this.Cpa,this);this.Xc.bind(c.Jr,this.h8,this);this.Xc.bind(c.Jr,this.h8,this);this.Xc.bind(c.U,this.Bpa,this);this.Xc.ia(this)});s.prototype.set=function(a,b){switch(a){case "maxWidth":this.MU=b;this.pJ();break;case "maxHeight":this.LU=b;this.pJ();break;case "children":this.IN.set(a,b);break;case "shadow":this.B6=b;this.e8();break;default:k.prototype.set.call(this,a,b)}};s.prototype.show=
function(b,c){this.pJ(b);this.set("visible",y);this.Xc.set("visible",y);this.Lda();c&&this.hqa();var d=b.get("children");b.set("children",d.concat([this.Xc]));var e=this;a.defer(function(){e.Xc.set("visible",o)})};s.prototype.Lda=function(){var a=this.j("modal"),b=this.j("veilShowEffect"),c=this.j("veilHideEffect");a&&b?this.Xc.set("showEffect",b):this.Xc.set("showEffect",q);a&&c?this.Xc.set("hideEffect",c):this.Xc.set("hideEffect",q)};s.prototype.hide=function(){this.get("visible")&&this.trigger(c.yX);
this.zJ=0;this.JI(y);this.set("visible",y)};s.prototype.hqa=function(){this.set("centerX",0);this.set("centerY",0)};s.prototype.get=function(a,b){return a=="children"?this.IN.get(a,b):k.prototype.get.call(this,a,b)};s.AZ={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"};s.zZ=a(s.AZ).keys();s.RM={borderRadius:"borderTopRadius",
borderTopRadius:"borderTopRadius",borderLeftRadius:"borderTopLeftRadius",borderRightRadius:"borderTopRightRadius",borderTopLeftRadius:"borderTopLeftRadius",borderTopRightRadius:"borderTopRightRadius"};s.QM=["borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderTopRadius","borderRadius"];s.SZ={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"};s.RZ=a(s.SZ).keys();s.uZ={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"};s.tZ=a(s.uZ).keys();s.wZ={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"};s.vZ=a(s.wZ).keys();s.yZ={borderRadius:"borderBottomRadius",borderBottomRadius:"borderBottomRadius",borderLeftRadius:"borderBottomLeftRadius",borderRightRadius:"borderBottomRightRadius",borderBottomLeftRadius:"borderBottomLeftRadius",borderBottomRightRadius:"borderBottomRightRadius"};
s.xZ=["borderLeftRadius","borderRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomRadius","borderRadius"];s.qZ={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"};s.pZ=a(s.qZ).keys();s.rZ={layout:"layout",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign"};s.Jca=a(s.rZ).keys();s.UZ={veilOpacity:"backgroundOpacity",veilColor:"backgroundColor",veilColorRatios:"backgroundColorRatios",veilColorDirection:"backgroundColorDirection"};s.TZ=a(s.UZ).keys();s.fb=function(){var b={modal:y,visible:y,centerX:0,centerY:0,veilShowEffect:m,veilHideEffect:m};a.defaults(b,i.fb);for(var c=[].concat(s.zZ,s.RZ,s.tZ,s.pZ,
s.vZ,s.TZ),d=0;d<c.length;d++)b[c[d]]=m;return b}();s.prototype.ta=function(){this.jj(s.fb)};s.prototype.Ba=function(){k.prototype.Ba.call(this);if(this.fh==q){this.fh=new j;this.fh.set("width","100%");this.fh.bind(c.ob,this.mia,this);this.ia(this.fh)}if(this.ZB==q){this.ZB=new p;this.ZB.set("width","100%");this.fh.ia(this.ZB)}if(this.mv==q){this.mv=new n;this.mv.M({horizontalAlign:d.pc,verticalAlign:d.$b});this.mv.bind(c.U,this.Wea,this);this.fh.ia(this.mv)}if(this.op==q){this.op=this.IN;this.op.M({width:"100%",
height:"100%"});this.ia(this.op)}if(this.Hv==q){this.Hv=new i;this.Hv.set("width","100%");this.ia(this.Hv)}};s.prototype.Bpa=function(){this.zJ++;setTimeout(function(){this.zJ>0&&this.hide()}.bind(this),100)};s.prototype.Epa=function(){this.zJ--};s.prototype.Wea=function(){this.hide()};s.prototype.mia=function(a){this.fQ=a.pageX;this.gQ=a.pageY;this.Pa().bind(c.qc,this.v8,this,o);this.Pa().bind(c.Lb,this.w8,this,o)};s.prototype.v8=function(a){this.set("centerX",this.get("centerX")+(a.pageX-this.fQ));
this.set("centerY",this.get("centerY")+(a.pageY-this.gQ));this.fQ=a.pageX;this.gQ=a.pageY;this.d8()};s.prototype.w8=function(){this.Pa().unbind(c.qc,this.v8,this);this.Pa().unbind(c.Lb,this.w8,this)};s.prototype.i8=function(){this.pJ()};s.prototype.Cpa=function(){this.set("visible",o)};s.prototype.h8=function(){this.Xc.unbind(c.pb,this.i8,this);var a=this.Xc.getParent();a&&a.removeChild(this.Xc);this.trigger(new e(c.tr))};s.prototype.Hpa=function(){this.d8()};s.prototype.Ipa=function(){this.JI(o)};
s.prototype.Fpa=function(){this.Xc.set("visible",y)};s.prototype.JI=function(a){this.A6=a;this.e8()};s.prototype.e8=function(){k.prototype.set.call(this,"shadow",this.A6&&this.B6)};s.prototype.pJ=function(a){a||(a=this.S);this.MU!==m?k.prototype.set.call(this,"maxWidth",this.MU):a?k.prototype.set.call(this,"maxWidth",a.ua()):k.prototype.set.call(this,"maxWidth",m);this.LU!==m?k.prototype.set.call(this,"maxHeight",this.LU):a?k.prototype.set.call(this,"maxHeight",a.Za()):k.prototype.set.call(this,"maxHeight",
m)};s.prototype.d8=function(){var a=this.Xc.ua(),b=this.ua(),c=this.get("centerX"),b=a*0.5+c-b*0.5,d=this.fh.Fh(),e=this.fh.ua(),f=Math.min(e,30),a=a-d-f,d=-(d+e-f);b<d?this.set("centerX",c+(d-b)):b>a&&this.set("centerX",c-(b-a));a=this.Xc.Za();b=this.Za();c=this.get("centerY");b=a*0.5+c-b*0.5;d=this.fh.xm();e=this.fh.Za();f=Math.min(e,5);a=a-d-f;d=-(d+e-f);b<d?this.set("centerY",c+(d-b)):b>a&&this.set("centerY",c-(b-a))};s.prototype.fa=function(){this.Xa(s.zZ,s.AZ,[this.fh],o,o);this.Xa(s.QM,s.RM,
[this.fh],o,y);this.get("headerHeight")===0?this.Xa(s.QM,s.RM,[this.op],o,y):this.Xa(s.QM,s.RM,[this.fh],o,y);this.Xa(s.RZ,s.SZ,[this.ZB],o,o);this.Xa(s.tZ,s.uZ,[this.mv],o,o);this.Xa(s.pZ,s.qZ,[this.op],o,o);this.Xa(s.Jca,s.rZ,[this.op],o,y);this.Xa(s.vZ,s.wZ,[this.Hv],o,o);this.get("footerHeight")===0?this.Xa(s.xZ,s.yZ,[this.op],o,y):this.Xa(s.xZ,s.yZ,[this.Hv],o,y);if(this.j("modal")){this.Xa(s.TZ,s.UZ,[this.Xc],o,o);this.Xc.set("contentOpaque",o)}else{this.Xc.set("backgroundOpacity",0);this.Xc.set("contentOpaque",
y)}this.M({layout:f.Me,horizontalAlign:d.pc,verticalAlign:d.$b});k.prototype.fa.call(this);this.qj.cL(0)};return s});
define("cW",["cV","eD","iK","dx","kd"],function(a,b,c,e,d){a=b.extend(c,function(){c.call(this)});e.A("Window",a).B("Container").R({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"}).To(["titleFontSize"]).Sg({show:a.prototype.show,
hide:a.prototype.hide}).fc([d.yX,d.tr]);return a});
define("jb","require,jquery.mod,cV,kd,fB,bS,em,X,jP,bq,hn,iw,u,eD".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.Fx=this.source.get("grayscale");this.Ho=new l(f.$i)}var c=a("jquery.mod"),e=a("cV"),d=a("kd"),f=a("fB"),i=a("bS"),j=a("em"),k=a("X"),n=a("jP"),g=a("bq"),l=a("hn"),r=a("iw"),p=a("u"),s=a("eD"),t=s.extend(j,function(){j.call(this);this.de=q;this.j2=[];this.hi=[];this.Ma=this.Da=
this.Nb=this.Gb=100;this.Uc=1;this.tp=this.sp=0.5;this.wb=1;this.Yf=this.Lf=q;this.MH=y;this.xO={};this.rv={};this.rv.low={};this.rv.hight={};if(p.ix()==p.ny){this.rv.low.transform="translateZ(0)";this.rv.hight.transform=""}this.V=y;this.Pe="inherit";this.I=c("<div/>").css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"});this.Lz=q;this.Mc=s.Jo(this.G,this)});t.prototype.Ab=Q("I");t.prototype.lr=function(a){if(this.cd!=a){this.cd=a;this.xN(1);this.Mc()}};t.prototype.Sta=function(a){if(this.Pe!=
a){this.Pe=a;this.Yf&&this.Yf.css("cursor",this.Pe);this.Lf&&this.Lf.css("cursor",this.Pe)}};t.prototype.bua=function(a){if(this.j2!=a){this.XN();this.de=q;if(this.Lf){this.Lf.detach();this.Lf=q}if(this.Yf){this.Yf.detach();this.Yf=q}if(this.ue)this.ue=q;this.XN();this.MH=y;e(this.hi).each(function(a){a.Ho.cancel();a.Ho.unbind(d.T,this.I2,this)},this);a=(this.j2=a)&&a.get("levels")||[];this.hi=e(a).map(function(a){a=new b(a);a.Ho.bind(d.T,this.I2,this);return a},this);if(a=this.yha()){this.Da=a.width;
this.Ma=a.height}else this.Ma=this.Da=100;this.tp=this.sp=0.5;this.xN(1);this.Mc()}};t.prototype.tu=function(a,b){if(this.Gb!=a||this.Nb!=b){this.Gb=a;this.Nb=b;this.Mc()}};t.prototype.Tta=function(a,b){if(this.F0!=a||this.E0!=b){this.F0=a;this.E0=b;this.Mc()}};t.prototype.$c=function(a){if(this.V!=a){this.V=a;this.Mc()}};t.prototype.move=function(a,b){var c=this.Uc*this.wb;this.sp=this.sp+a/(this.Da*c);this.tp=this.tp+b/(this.Ma*c);this.mI()};t.prototype.cu=Q("wb");t.prototype.setScale=function(a){this.xN(Math.max(1,
Math.min(1/this.Uc,a)));this.de&&this.de.width<this.wb*this.Uc*this.Da&&this.de.width<this.Da?this.G():this.mI()};t.prototype.u$=function(a){if(!this.Lf)return y;var b=this.Lf.offset(),c=a.pageX-b.left,a=a.pageY-b.top;return c>=0&&a>=0&&c<this.Lf.width()&&a<this.Lf.height()};t.prototype.G=function(){if(this.V){this.tpa();var a=this.Eha();if(a&&a.Ho.Go()){if(a!=this.de){if(!this.de){this.Mc();this.MH=o}this.Tfa(a);this.de=a}this.m6(q)}else this.m6(a);this.mI()}};t.prototype.tpa=function(){var a;switch(this.cd){case r.ek:a=
this.Gb/this.Da;break;case r.yg:a=this.Nb/this.Ma;break;case r.xl:a=this.Da*this.Nb>this.Ma*this.Gb?this.Nb/this.Ma:this.Gb/this.Da;break;case r.Fba:a=Math.min(this.F0/this.Da,this.E0/this.Ma);break;default:a=this.Da*this.Nb>this.Ma*this.Gb?this.Gb/this.Da:this.Nb/this.Ma}this.Jda(a)};t.prototype.I2=function(){this.Mc()};t.prototype.Tfa=function(a){if(this.Yf){this.YS(this.Yf,1);this.Lf&&this.Lf.detach();this.Lf=this.Yf}this.Yf=this.sfa(a);this.YS(this.Yf,0);this.I.append(this.Yf);this.ue=this.pfa();
this.xO={}};t.prototype.Eha=function(){return this.de?this.Vga(this.wb*this.Uc*this.Da):this.Wha()};t.prototype.m6=function(a){e(this.hi).each(function(b){b==a?b.Ho.Gh()!=b.url&&b.Ho.load(b.url):b.Ho.Go()||b.Ho.cancel()})};t.prototype.yha=function(){return e(this.hi).reduce(function(a,b){a||(a=b);if(b.width>a.width||b.width==a.width&&!b.Fx&&a.Fx)a=b;return a},q)};t.prototype.Wha=function(){return e(this.hi).reduce(function(a,b){a||(a=b);if(b.width<a.width||b.width==a.width&&b.Fx&&!a.Fx)a=b;return a},
q)};t.prototype.Vga=function(a){return e(this.hi).reduce(function(b,c){b||(b=c);if(c.width>=a&&b.width<a||c.width>=a&&c.width<b.width||c.width<a&&c.width>b.width||!c.Fx&&b.Fx)b=c;return b},q)};t.prototype.sfa=function(a){a=c(a.Ho.Bd(o));a.css({position:"absolute",cursor:this.Pe,"pointer-events":"none"});return a};t.prototype.pfa=function(){return new n("linear",[new g("alpha",0,1)],200)};t.prototype.mI=function(){k.Ha(function(a){this.hI(a,"low")},this)};t.prototype.xV=function(){return this.Da*this.wb*
this.Uc};t.prototype.wV=function(){return this.Ma*this.wb*this.Uc};t.prototype.j9=function(){var a=this.xV();return a>this.Gb?Math.max(this.Gb-a,Math.min(0,this.Gb*0.5-a*this.sp)):(this.Gb-a)*0.5};t.prototype.k9=function(){var a=this.wV();return a>this.Nb?Math.max(this.Nb-a,Math.min(0,this.Nb*0.5-a*this.tp)):(this.Nb-a)*0.5};t.prototype.hI=function(a,b){var b=b||"low",c=this.xV(),e=this.j9(),f=this.wV(),g=this.k9();this.sp=(this.Gb*0.5-e)/c;this.tp=(this.Nb*0.5-g)/f;var c={left:Math.round(e)+"px",
top:Math.round(g)+"px",width:Math.round(c)+"px",height:Math.round(f)+"px",display:"block"},j;for(j in this.rv[b])c[j]=this.rv[b][j];if(this.xO!=c){this.Lf&&this.Lf.css(c);this.Yf&&this.Yf.css(c);this.xO=c}this.XN();if(this.ue){this.ue.Ua(a);this.YS(this.Yf,this.ue.nb("alpha"));if(this.ue.me()){this.ue=q;this.Lf&&this.Lf.detach();this.Lf=this.Yf;this.Yf=q}this.mI()}else b=="low"&&this.Ena();if(!this.ue&&this.MH){this.MH=y;this.trigger(new i(d.T))}};t.prototype.YS=function(a,b){a.css({opacity:b,filter:"alpha(opacity="+
Math.round(b*100)+")","-ms-filter":"alpha(opacity="+Math.round(b*100)+")"})};t.prototype.XN=function(){if(this.Lz!=q){clearTimeout(this.Lz);this.Lz=q}};t.prototype.Ena=function(){var a=this;this.Lz=setTimeout(function(){a.Lz=q;a.hI(50,"hight")},50)};t.prototype.xN=function(a){if(this.wb!=a){this.wb=a;this.Doa()}};t.prototype.Jda=function(a){if(this.Uc!=a)this.Uc=a};t.prototype.Doa=function(){this.trigger(new i(t.ry,{scale:this.wb}))};t.ry="scaleChange";return t});
define("hh","require,jquery.mod,kd,bS,jb,eD,d,J".split(","),function(a){a("jquery.mod");var b=a("kd"),c=a("bS"),e=a("jb"),d=a("eD"),f=a("d"),i=a("J"),j=d.extend(f,function(){f.call(this);this.Dc("ZoomImage");this.Zn=this.xi=m;this.uh=y;this.c5=m;this.n2=this.wb;this.yC=q;this.g=new e;this.g.bind(b.T,this.pka,this);this.g.bind(e.ry,this.qka,this);this.Ja().append(this.g.Ab());this.bind(b.pb,this.hb,this,o);this.bind(b.Le,this.qi,this,o);this.bind(b.Df,this.mi,this,o);this.bind(b.ob,this.Wb,this,o);
this.bind(b.qc,this.gg,this,o);this.bind(b.Lb,this.hg,this,o);this.bind(b.cp,this.Ts,this,o);this.bind(b.Hu,this.Cs,this,o)});j.prototype.set=function(a,b){switch(a){case "scale":this.g.setScale(b);b=this.g.cu();break;case "imageLeft":case "imageTop":case "imageWidth":case "imageHeight":return}f.prototype.set.call(this,a,b)};j.prototype.get=function(a,b){switch(a){case "scale":return this.g.cu();case "imageLeft":return this.g.j9();case "imageTop":return this.g.k9();case "imageWidth":return this.g.xV();
case "imageHeight":return this.g.wV()}return f.prototype.get.call(this,a,b)};j.prototype.ta=function(){f.prototype.ta.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")};j.prototype.fa=function(){if(this.n("scaleMode")){this.g.lr(this.j("scaleMode"));this.o("scaleMode")}if(this.n("image")){this.g.bua(this.j("image"));this.o("image");this.n2=this.wb}if(this.n("customHeight")||
this.n("customWidth")){this.o("customHeight");this.o("customWidth");this.hb()}if(this.n("imageCursor")){this.o("imageCursor");this.g.Sta(this.sa.MO.f9(this.get("imageCursor")))}f.prototype.fa.call(this)};j.prototype.hb=function(){var a=this.ua(),b=this.Za(),c=this.get("customWidth","100%"),d=i.Tj(c),c=d!==m?a*d/100:c,d=this.get("customHeight","100%"),e=i.Tj(d);this.g.Tta(c,e!==m?b*e/100:d);this.g.tu(a,b)};j.prototype.qi=function(){this.g.$c(o)};j.prototype.mi=function(){this.g.$c(y)};j.prototype.Wb=
function(a){this.xi=a.x;this.Zn=a.y;this.uh=o;this.c5=this.g.u$(a)};j.prototype.gg=function(a){if(this.uh){this.yU();this.g.move(-(a.x-this.xi),-(a.y-this.Zn));this.xi=a.x;this.Zn=a.y}};j.prototype.hg=function(a){this.uh=y;!this.c5&&!this.g.u$(a)&&this.trigger(new c(j.LX))};j.prototype.Ts=function(a){this.yU();this.g.setScale((1+a.yo/20)*this.g.cu())};j.prototype.Cs=function(a){this.yU();this.g.setScale(a.scale/this.n2)};j.prototype.pka=function(){this.trigger(new c(b.T))};j.prototype.qka=function(){f.prototype.set.call(this,
"scale",this.g.cu());this.trigger(new c(j.ry))};j.prototype.yU=function(){if(this.yC){clearTimeout(this.yC);this.yC=q}else this.trigger(new c(j.Zd));this.yC=setTimeout(function(){this.yC=q;this.trigger(new c(j.Yd))}.bind(this),300)};j.LX="backgroundClick";j.ry="scaleChange";j.Zd="userInteractionStart";j.Yd="userInteractionEnd";return j});
define("jE",["eD","kd","hh","dx"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});e.A("ZoomImage",a).B("UIComponent").R({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"}).fc([c.LX,c.ry,c.Zd,c.Yd,b.T]);return Image});
define("go","gv,dd,dq,jN,gG,dV,fx,gu,ha,il,jS,eX,fE,eM,dQ,bn,jA,gJ,iM,dL,q,gr,cP,cS,gM,jk,fP,iq,eU,F,cb,t,if,ek,P,he,bl,bb,jj,jL,dy,is,gq,bt,jO,jg,hF,I,kv,db,gh,jK,p,hp,fA,iJ,fZ,kt,fa,hA,bg,bX,bv,ia,fX,ko,el,jR,bU,hW,dU,gC,fM,hd,eA,eR,jp,fu,hj,hw,ed,gb,bK,dp,cT,K,ke,ix,dC,eF,hH,bI,fS,jF,dt,jI,U,ex,cu,iX,fz,gA,hb,ff,bA,y,cD,bw,gV,gD,jX,dT,eP,bG,hN,f,iW,fj,bm,bJ,cW,jE".split(","),R(o));
define("es","require,cV,jquery.mod,eD,dx,go,iB".split(","),function(a){function b(a,b){this.type=a;this.stack=b}function c(){}var e=a("cV"),d=a("jquery.mod"),f=a("eD"),i=a("dx");a("go");a("iB");c.prototype.Vsa=function(a,b,c,d){this.nP=[];this.yq=this.uw(a);this.Sp=m;if(this.yq.xo.n9()){this.Sp=this.o1(this.yq,j.bj);this.vfa(this.Sp,this.yq,b,c,d);this.Fda(this.yq);this.Dda(this.yq,this.Sp);this.Gda(this.Sp,this.yq);this.Uda(this.Sp,this.yq)}else this.hk("Invalid root class",[]);return this.nP.length==
0};c.prototype.Pa=function(){return this.yq.kd};c.prototype.uw=function(a,b){b=b||[];return e(a).isArray()?this.rla(a,b):d.isPlainObject(a)&&a["class"]?this.ula(a,b):d.isPlainObject(a)?this.sla(a,b):e(a).isFunction()?this.tla(a,b):this.vla(a,b)};c.prototype.rla=function(a,b){for(var c=[],d=0;d<a.length;d++){b.push("Item["+d+"]");c.push(this.uw(a[d],b));b.pop()}return new k(b.slice(),c)};c.prototype.ula=function(a,b){var c=a["class"],d=i.vm(a["class"]);if(d){var e,c={},f={},g;for(g in a){b.push(g);
var k=a[g];switch(g){case "class":break;case "scripts":e=this.uw(k,b);break;default:d.hasAttribute(g)?c[g]=this.uw(k,b):d.N9(g)||d.O9(g)?f[g]=this.uw(k,b):this.hk(d.ux()+" object doesn't have any attribute named "+g,b)}b.pop()}return new j(b.slice(),d,a.id,c,f,e)}this.hk("Undefined class name: "+c,b.slice());return new l(b.slice(),q)};c.prototype.sla=function(a,b){var c={},d;for(d in a){b.push(d);c[d]=this.uw(a[d],b);b.pop()}return new n(b.slice(),c)};c.prototype.tla=function(a,b){return new g(b.slice(),
a)};c.prototype.vla=function(a,b){return new l(b.slice(),a)};c.prototype.o1=function(a,b){for(var c=!b||a.type==b?[a]:[],d=0,e=a.Ta();d<e.length;d++)c=c.concat(this.o1(e[d],b));return c};c.prototype.vfa=function(a,b,c,d,e){b.kd=b.xo.Uq(q,d,e,[c]);b.kd.set("application",b.kd);for(c=0;c<a.length;c++){var f=a[c];if(f!=b)f.kd=f.xo.Uq(b.kd,d,e)}};c.prototype.Fda=function(a){if(a.scripts)if(a.scripts.type==n.bj)for(var b in a.scripts.value)this.Eda(a,b);else this.hk("Invalid content.",a.scripts.stack)};
c.prototype.Eda=function(a,b){var c=a.kd,d=a.scripts.value[b];e(c[b]).isUndefined()?d&&d.type==g.bj?c[b]=function(){return d.Hm().apply(c,arguments)}:this.hk("Invalid content.",d.stack):this.hk("Identifier: "+b+" is already in use",d.stack)};c.prototype.Dda=function(a,b){for(var c=a.kd,d=0;d<b.length;d++){var f=b[d],g=f.id;if(g)e(c[g]).isUndefined()?c[g]=f.kd:this.hk("Identifier: "+g+" is arleady in use",f.stack)}};c.prototype.Gda=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=d.attributes,
f;for(f in e)this.Cda(d,f,b)}};c.prototype.Cda=function(a,b,c){var d=a.xo;if(d.hasAttribute(b)){var e=a.attributes[b].Hm();try{e=d.qV(b)(e,c.kd);a.kd.set(b,e)}catch(f){this.hk("Invalid value for property "+b+" of "+d.ux()+" instance",a.stack)}}else this.hk(d.ux()+" object doesn't have any property named "+b,a.stack)};c.prototype.Uda=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e;for(e in d.Tt)this.Tda(d,e,b)}};c.prototype.Tda=function(a,b,c){var d=a.xo,f=a.kd,g=d.N9(b),i=d.O9(b);if(g||i){var a=
a.Tt[b],j=a.Hm();e(j).isFunction()?f.bind(b,j,c.kd,i,j):typeof j=="string"?f.bind(b,function(){eval("var event = arguments[0];"+j)},c.kd,i,j):this.hk("Invalid value.",a.stack)}else this.hk(d.ux()+" object doesn't have any event named "+b,a.stack)};c.prototype.hk=function(a,b){this.nP.push("In "+b.join(" >> ")+": "+a)};b.prototype.Ta=function(){return[]};b.prototype.Hm=E();var j=f.extend(b,function(a,c,d,e,f,g){b.call(this,j.bj,a);this.xo=c;this.id=d;this.attributes=e;this.Tt=f;this.scripts=g;this.kd=
q});j.prototype.Ta=function(){var a=this.xo.v9(),b=[],c=e(this.attributes).clone();if(a)for(var d=0;d<a.length;d++){var f=a[d];if(c[f]!=m){b.push(c[f]);delete c[f]}}return b=b.concat(e(c).values())};j.prototype.Hm=Q("kd");j.bj="instance";var k=f.extend(b,function(a,c){b.call(this,k.bj,a);this.Rj=c});k.prototype.Ta=function(){return this.Rj.slice()};k.prototype.Hm=function(){for(var a=[],b=0;b<this.Rj.length;b++)a.push(this.Rj[b].Hm());return a};k.bj="array";var n=f.extend(b,function(a,c){b.call(this,
n.bj,a);this.value=c});n.prototype.Ta=function(){return e(this.value).values()};n.prototype.Hm=function(){var a={},b;for(b in this.value)a[b]=this.value[b].Hm();return a};n.bj="dict";var g=f.extend(b,function(a,c){b.call(this,g.bj,a);this.value=c});g.prototype.Hm=Q("value");g.bj="function";var l=f.extend(b,function(a,c){b.call(this,l.bj,a);this.value=c});l.prototype.Hm=Q("value");l.bj="simple";return c});
define("iY","require,cV,kd,bS,dx,es,u,dr,iB,bj,fh,jd,kc,je,eD".split(","),function(a){function b(a,b){i.Qa()&&!i.gf()&&p.Pd();var c=l.name,d=[];c&&d.push(c);l.pD>0?d.push("v:"+l.pD+"."+l.tD):d.push("v:"+l.tD);s.log(d.join(" "));this.Vj=b;if(k.lsa()||[i.pr,i.qr].indexOf(i.browser())>=0){this.rh=new f;if(c=this.Vj.get(TDV.PlayerSettings.BASE_DIR_URL)){c=k.nr(c);c[c.length-1]!="/"&&(c=c+"/")}else c=k.getDirectory(this.Vj.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL));this.Z$=this.Vj.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);
j.hta(c,function(b){this.D8=b;this.Qka(a)}.bind(this))}else window.alert(r("web-server-required"))}var c=a("cV"),e=a("kd");a("bS");var d=a("dx"),f=a("es"),i=a("u"),j=a("dr"),k=a("iB"),n=a("bj"),g=a("fh"),l=a("jd"),r=a("kc"),p=a("je"),s=a("eD");b.prototype.Qka=function(a){a.trigger(new TDV.EE(e.rca,{},[],m));c.defer(function(){if(!this.rh.Vsa(this.Vj.get(TDV.PlayerSettings.SCRIPT_DATA),this.Vj.get(TDV.PlayerSettings.CONTAINER),this.D8,this.Z$)){if(l.cva!="false"){window.alert(this.Q1());return}s.log(this.Q1())}this.Sda(a);
this.Ada(this.Vj);this.Hda();n.jl(function(){this.Foa()}.bind(this))}.bind(this))};b.prototype.clear=function(){if(this.rh){this.rh.Sp.forEach(function(a){a.kd.nba();a.xo.$C().forEach(function(b){switch(b){case "VideoPlayer":a.kd.stop();case "MapPlayer":case "PanoramaPlayer":case "PhotoAlbumPlayer":case "VideoPlayer":a.kd.set("viewerArea",q);break;case "ZoomImage":a.kd.set("image",q);break;case "Audio":a.kd.stop();break;case "Effect":a.kd.end();break;case "Media":a.kd.uta()}})});g.ata();this.rh.Pa().clear();
t={};this.Vj=this.rh=q}};b.prototype.Gra=function(a){return this.rh.Pa()[a]};b.prototype.z9=function(a){if(a in t)return t[a].slice();var b=[];this.rh.Sp.forEach(function(d){var e=d.xo.$C();c(e).contains(a)&&b.push(d.kd)});t[a]=b;return b.slice()};var t={};b.prototype.Uq=function(a){var b=d.vm(a);b||h("Invalid className: "+a);t={};return b.Uq(this.rh.Pa(),this.D8,this.Z$)};b.prototype.Q1=function(){for(var a=this.rh.nP,b=["Errors parsing script file:"],c=0;c<a.length;c++)b.push(a[c]);return b.join("\n")};
b.prototype.Sda=function(a){this.rh.Sp.forEach(function(b){var d=b.xo,e=b.kd,f=b.id,g=d.$C();c.union(d.tV(),d.yV()).forEach(function(b){e.bind(b,function(c){a.trigger(new TDV.EE(b,c,g,f))},this,o)})});var b=this.rh.Pa().CF;b.bind(e.Gu,function(){b.pva(e.Gu);a.cookiesEnabled=a.pqa=o;a.trigger(new TDV.EE(e.Gu,{},[],m))},this,o)};b.prototype.Ada=function(a){this.rh.Pa().set("settings",a)};b.prototype.Hda=function(){var a=this.rh.Pa(),b=this;a.getByClassName=a.vm=function(){return b.z9.apply(b,arguments)};
a.createInstance=a.Uq=function(){return b.Uq.apply(b,arguments)};a.isInstanceOfClass=a.sb=function(){return d.sb.apply(d,arguments)}};b.prototype.Foa=function(){this.rh.Pa().start()};b.nva=function(a){a.trigger(new TDV.EE(e.$ba,{},[],m))};return b});define("main",["require","jquery.mod","iY"],function(a){var b=a("jquery.mod"),c=a("iY");b(document).ready(function(){TDV.xa.Eua(c)})});
// threejs.org/license
(function(t,e){e(t.THREE=t.THREE||{})})(this,function(k){function ua(){}function w(a,b){void 0===a&&(a=0);void 0===b&&(b=0);this.x=a;this.y=b}function xa(){this.elements=[1,0,0,0,1,0,0,0,1];0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}function W(a,b,c,d,e,f,g,h,l,n){Object.defineProperty(this,"id",
{value:hj++});this.uuid=K.generateUUID();this.name="";this.image=void 0!==a?a:W.DEFAULT_IMAGE;this.mipmaps=[];this.mapping=void 0!==b?b:W.DEFAULT_MAPPING;this.wrapS=void 0!==c?c:1001;this.wrapT=void 0!==d?d:1001;this.magFilter=void 0!==e?e:1006;this.minFilter=void 0!==f?f:1008;this.anisotropy=void 0!==l?l:1;this.format=void 0!==g?g:1023;this.internalFormat=null;this.type=void 0!==h?h:1009;this.offset=new w(0,0);this.repeat=new w(1,1);this.center=new w(0,0);this.rotation=0;this.matrixAutoUpdate=!0;
this.matrix=new xa;this.generateMipmaps=!0;this.premultiplyAlpha=!1;this.flipY=!0;this.unpackAlignment=4;this.encoding=void 0!==n?n:3E3;this.version=0;this.onUpdate=null}function Y(a,b,c,d){void 0===a&&(a=0);void 0===b&&(b=0);void 0===c&&(c=0);void 0===d&&(d=1);this.x=a;this.y=b;this.z=c;this.w=d}function Ha(a,b,c){this.width=a;this.height=b;this.scissor=new Y(0,0,a,b);this.scissorTest=!1;this.viewport=new Y(0,0,a,b);c=c||{};this.texture=new W(void 0,c.mapping,c.wrapS,c.wrapT,c.magFilter,c.minFilter,
c.format,c.type,c.anisotropy,c.encoding);this.texture.image={};this.texture.image.width=a;this.texture.image.height=b;this.texture.generateMipmaps=void 0!==c.generateMipmaps?c.generateMipmaps:!1;this.texture.minFilter=void 0!==c.minFilter?c.minFilter:1006;this.depthBuffer=void 0!==c.depthBuffer?c.depthBuffer:!0;this.stencilBuffer=void 0!==c.stencilBuffer?c.stencilBuffer:!0;this.depthTexture=void 0!==c.depthTexture?c.depthTexture:null}function ag(a,b,c){Ha.call(this,a,b,c);this.samples=4}function na(a,
b,c,d){void 0===a&&(a=0);void 0===b&&(b=0);void 0===c&&(c=0);void 0===d&&(d=1);this._x=a;this._y=b;this._z=c;this._w=d}function m(a,b,c){void 0===a&&(a=0);void 0===b&&(b=0);void 0===c&&(c=0);this.x=a;this.y=b;this.z=c}function M(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function Ub(a,b,c,d){void 0===a&&(a=0);void 0===b&&(b=0);void 0===c&&(c=0);void 0===d&&(d=Ub.DefaultOrder);
this._x=a;this._y=b;this._z=c;this._order=d}function Fe(){this.mask=1}function z(){Object.defineProperty(this,"id",{value:ij++});this.uuid=K.generateUUID();this.name="";this.type="Object3D";this.parent=null;this.children=[];this.up=z.DefaultUp.clone();var a=new m,b=new Ub,c=new na,d=new m(1,1,1);b._onChange(function(){c.setFromEuler(b,!1)});c._onChange(function(){b.setFromQuaternion(c,void 0,!1)});Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:a},rotation:{configurable:!0,
enumerable:!0,value:b},quaternion:{configurable:!0,enumerable:!0,value:c},scale:{configurable:!0,enumerable:!0,value:d},modelViewMatrix:{value:new M},normalMatrix:{value:new xa}});this.matrix=new M;this.matrixWorld=new M;this.matrixAutoUpdate=z.DefaultMatrixAutoUpdate;this.matrixWorldNeedsUpdate=!1;this.layers=new Fe;this.visible=!0;this.receiveShadow=this.castShadow=!1;this.frustumCulled=!0;this.renderOrder=0;this.userData={}}function xd(){z.call(this);this.type="Scene";this.overrideMaterial=this.fog=
this.environment=this.background=null;this.autoUpdate=!0;"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function Ta(a,b){this.min=void 0!==a?a:new m(Infinity,Infinity,Infinity);this.max=void 0!==b?b:new m(-Infinity,-Infinity,-Infinity)}function bg(a,b,c,d,e){for(var f=0,g=a.length-3;f<=g;f+=3){Vb.fromArray(a,f);var h=e.x*Math.abs(Vb.x)+e.y*Math.abs(Vb.y)+e.z*Math.abs(Vb.z),l=b.dot(Vb),n=c.dot(Vb),q=d.dot(Vb);if(Math.max(-Math.max(l,
n,q),Math.min(l,n,q))>h)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;c<d;++c)a[c]>b&&(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 b<c.near||b>c.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;v<t;v++){var k=e[v],u=f[v];0!==k&&(fg.fromBufferAttribute(u,n),gg.fromBufferAttribute(u,q),hg.fromBufferAttribute(u,
p),g?(Ie.addScaledVector(fg,k),Je.addScaledVector(gg,k),Ke.addScaledVector(hg,k)):(Ie.addScaledVector(fg.sub(Cb),k),Je.addScaledVector(gg.sub(Db),k),Ke.addScaledVector(hg.sub(Eb),k)))}Cb.add(Ie);Db.add(Je);Eb.add(Ke)}a.isSkinnedMesh&&(a.boneTransform(n,Cb),a.boneTransform(q,Db),a.boneTransform(p,Eb));if(a=xh(a,b,c,d,Cb,Db,Eb,Ed))h&&(Ac.fromBufferAttribute(h,n),Bc.fromBufferAttribute(h,q),Cc.fromBufferAttribute(h,p),a.uv=wa.getUV(Ed,Cb,Db,Eb,Ac,Bc,Cc,new w)),l&&(Ac.fromBufferAttribute(l,n),Bc.fromBufferAttribute(l,
q),Cc.fromBufferAttribute(l,p),a.uv2=wa.getUV(Ed,Cb,Db,Eb,Ac,Bc,Cc,new w)),h=new zc(n,q,p),wa.getNormal(Cb,Db,Eb,h.normal),a.face=h;return a}function L(){Object.defineProperty(this,"id",{value:lj+=2});this.uuid=K.generateUUID();this.name="";this.type="Geometry";this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingSphere=this.boundingBox=null;this.groupsNeedUpdate=this.lineDistancesNeedUpdate=
this.colorsNeedUpdate=this.normalsNeedUpdate=this.uvsNeedUpdate=this.verticesNeedUpdate=this.elementsNeedUpdate=!1}function Dc(a){var b={},c;for(c in a){b[c]={};for(var d in a[c]){var e=a[c][d];e&&(e.isColor||e.isMatrix3||e.isMatrix4||e.isVector2||e.isVector3||e.isVector4||e.isTexture)?b[c][d]=e.clone():Array.isArray(e)?b[c][d]=e.slice():b[c][d]=e}}return b}function va(a){for(var b={},c=0;c<a.length;c++){var d=Dc(a[c]),e;for(e in d)b[e]=d[e]}return b}function Ba(a){G.call(this);this.type="ShaderMaterial";
this.defines={};this.uniforms={};this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}";this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";this.linewidth=1;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.clipping=this.lights=this.fog=!1;this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1};this.defaultAttributeValues={color:[1,1,
1],uv:[0,0],uv2:[0,0]};this.index0AttributeName=void 0;this.uniformsNeedUpdate=!1;void 0!==a&&(void 0!==a.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(a))}function fb(){z.call(this);this.type="Camera";this.matrixWorldInverse=new M;this.projectionMatrix=new M;this.projectionMatrixInverse=new M}function P(a,b,c,d){fb.call(this);this.type="PerspectiveCamera";this.fov=void 0!==a?a:50;this.zoom=1;this.near=void 0!==
c?c:.1;this.far=void 0!==d?d:2E3;this.focus=10;this.aspect=void 0!==b?b:1;this.view=null;this.filmGauge=35;this.filmOffset=0;this.updateProjectionMatrix()}function Ec(a,b,c){z.call(this);this.type="CubeCamera";if(!0!==c.isWebGLCubeRenderTarget)console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");else{this.renderTarget=c;var d=new P(90,1,a,b);d.layers=this.layers;d.up.set(0,-1,0);d.lookAt(new m(1,0,0));this.add(d);var e=new P(90,1,
a,b);e.layers=this.layers;e.up.set(0,-1,0);e.lookAt(new m(-1,0,0));this.add(e);var f=new P(90,1,a,b);f.layers=this.layers;f.up.set(0,0,1);f.lookAt(new m(0,1,0));this.add(f);var g=new P(90,1,a,b);g.layers=this.layers;g.up.set(0,0,-1);g.lookAt(new m(0,-1,0));this.add(g);var h=new P(90,1,a,b);h.layers=this.layers;h.up.set(0,-1,0);h.lookAt(new m(0,0,1));this.add(h);var l=new P(90,1,a,b);l.layers=this.layers;l.up.set(0,-1,0);l.lookAt(new m(0,0,-1));this.add(l);this.update=function(a,b){null===this.parent&&
this.updateMatrixWorld();var n=a.xr.enabled,q=a.getRenderTarget();a.xr.enabled=!1;var t=c.texture.generateMipmaps;c.texture.generateMipmaps=!1;a.setRenderTarget(c,0);a.render(b,d);a.setRenderTarget(c,1);a.render(b,e);a.setRenderTarget(c,2);a.render(b,f);a.setRenderTarget(c,3);a.render(b,g);a.setRenderTarget(c,4);a.render(b,h);c.texture.generateMipmaps=t;a.setRenderTarget(c,5);a.render(b,l);a.setRenderTarget(q);a.xr.enabled=n};this.clear=function(a,b,d,e){for(var f=a.getRenderTarget(),g=0;6>g;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.version<b.version){var l=b.array,n=b.updateRange;a.bindBuffer(g,f.buffer);-1===n.count?a.bufferSubData(g,0,l):(d?a.bufferSubData(g,n.offset*l.BYTES_PER_ELEMENT,l,n.offset,n.count):a.bufferSubData(g,n.offset*l.BYTES_PER_ELEMENT,l.subarray(n.offset,
n.offset+n.count)),n.count=-1);f.version=b.version}}}}function Fd(a,b,c,d){L.call(this);this.type="PlaneGeometry";this.parameters={width:a,height:b,widthSegments:c,heightSegments:d};this.fromBufferGeometry(new ac(a,b,c,d));this.mergeVertices()}function ac(a,b,c,d){F.call(this);this.type="PlaneBufferGeometry";this.parameters={width:a,height:b,widthSegments:c,heightSegments:d};a=a||1;b=b||1;var e=a/2,f=b/2;c=Math.floor(c)||1;d=Math.floor(d)||1;var g=c+1,h=d+1,l=a/c,n=b/d;b=[];a=[];for(var q=[],p=[],
k=0;k<h;k++)for(var t=k*n-f,r=0;r<g;r++)a.push(r*l-e,-t,0),q.push(0,0,1),p.push(r/c),p.push(1-k/d);for(e=0;e<d;e++)for(f=0;f<c;f++)h=f+g*(e+1),l=f+1+g*(e+1),n=f+1+g*e,b.push(f+g*e,h,n),b.push(h,l,n);this.setIndex(b);this.setAttribute("position",new B(a,3));this.setAttribute("normal",new B(q,3));this.setAttribute("uv",new B(p,2))}function nj(a,b,c,d){function e(a,c){b.buffers.color.setClear(a.r,a.g,a.b,c,d)}var f=new D(0),g=0,h,l,n=null,q=0,p=null;return{getClearColor:function(){return f},setClearColor:function(a,
b){f.set(a);g=void 0!==b?b:1;e(f,g)},getClearAlpha:function(){return g},setClearAlpha:function(a){g=a;e(f,g)},render:function(b,d,k,u){d=!0===d.isScene?d.background:null;k=a.xr;(k=k.getSession&&k.getSession())&&"additive"===k.environmentBlendMode&&(d=null);null===d?e(f,g):d&&d.isColor&&(e(d,1),u=!0);(a.autoClear||u)&&a.clear(a.autoClearColor,a.autoClearDepth,a.autoClearStencil);if(d&&(d.isCubeTexture||d.isWebGLCubeRenderTarget||306===d.mapping)){void 0===l&&(l=new X(new Gd(1,1,1),new Ba({name:"BackgroundCubeMaterial",
uniforms:Dc(gb.cube.uniforms),vertexShader:gb.cube.vertexShader,fragmentShader:gb.cube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(a,b,c){this.matrixWorld.copyPosition(c.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),c.update(l));u=d.isWebGLCubeRenderTarget?d.texture:d;l.material.uniforms.envMap.value=u;l.material.uniforms.flipEnvMap.value=
u.isCubeTexture?-1:1;if(n!==d||q!==u.version||p!==a.toneMapping)l.material.needsUpdate=!0,n=d,q=u.version,p=a.toneMapping;b.unshift(l,l.geometry,l.material,0,0,null)}else if(d&&d.isTexture){void 0===h&&(h=new X(new ac(2,2),new Ba({name:"BackgroundMaterial",uniforms:Dc(gb.background.uniforms),vertexShader:gb.background.vertexShader,fragmentShader:gb.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),Object.defineProperty(h.material,"map",{get:function(){return this.uniforms.t2D.value}}),
c.update(h));h.material.uniforms.t2D.value=d;!0===d.matrixAutoUpdate&&d.updateMatrix();h.material.uniforms.uvTransform.value.copy(d.matrix);if(n!==d||q!==d.version||p!==a.toneMapping)h.material.needsUpdate=!0,n=d,q=d.version,p=a.toneMapping;b.unshift(h,h.geometry,h.material,0,0,null)}}}}function oj(a,b,c,d){var e=d.isWebGL2,f;this.setMode=function(a){f=a};this.render=function(b,d){a.drawArrays(f,b,d);c.update(d,f)};this.renderInstances=function(d,h,l,n){if(0!==n){if(e){d=a;var g="drawArraysInstanced"}else if(d=
b.get("ANGLE_instanced_arrays"),g="drawArraysInstancedANGLE",null===d){console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}d[g](f,h,l,n);c.update(l,f,n)}}}function pj(a,b,c){function d(b){if("highp"===b){if(0<a.getShaderPrecisionFormat(35633,36338).precision&&0<a.getShaderPrecisionFormat(35632,36338).precision)return"highp";b="mediump"}return"mediump"===b&&0<a.getShaderPrecisionFormat(35633,36337).precision&&
0<a.getShaderPrecisionFormat(35632,36337).precision?"mediump":"lowp"}var e,f="undefined"!==typeof WebGL2RenderingContext&&a instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&a instanceof WebGL2ComputeRenderingContext,g=void 0!==c.precision?c.precision:"highp",h=d(g);h!==g&&(console.warn("THREE.WebGLRenderer:",g,"not supported, using",h,"instead."),g=h);c=!0===c.logarithmicDepthBuffer;h=a.getParameter(34930);var l=a.getParameter(35660),n=a.getParameter(3379),q=
a.getParameter(34076),p=a.getParameter(34921),k=a.getParameter(36347),t=a.getParameter(36348),r=a.getParameter(36349),u=0<l,m=f||!!b.get("OES_texture_float"),E=u&&m,x=f?a.getParameter(36183):0;return{isWebGL2:f,getMaxAnisotropy:function(){if(void 0!==e)return e;var c=b.get("EXT_texture_filter_anisotropic");return e=null!==c?a.getParameter(c.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:d,precision:g,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:l,maxTextureSize:n,maxCubemapSize:q,
maxAttributes:p,maxVertexUniforms:k,maxVaryings:t,maxFragmentUniforms:r,vertexTextures:u,floatFragmentTextures:m,floatVertexTextures:E,maxSamples:x}}function qj(){function a(){n.value!==d&&(n.value=d,n.needsUpdate=0<e);c.numPlanes=e;c.numIntersection=0}function b(a,b,d,e){var f=null!==a?a.length:0,g=null;if(0!==f){g=n.value;if(!0!==e||null===g){e=d+4*f;b=b.matrixWorldInverse;l.getNormalMatrix(b);if(null===g||g.length<e)g=new Float32Array(e);for(e=0;e!==f;++e,d+=4)h.copy(a[e]).applyMatrix4(b,l),h.normal.toArray(g,
d),g[d+3]=h.constant}n.value=g;n.needsUpdate=!0}c.numPlanes=f;c.numIntersection=0;return g}var c=this,d=null,e=0,f=!1,g=!1,h=new Ua,l=new xa,n={value:null,needsUpdate:!1};this.uniform=n;this.numIntersection=this.numPlanes=0;this.init=function(a,c,g){var h=0!==a.length||c||0!==e||f;f=c;d=b(a,g,0);e=a.length;return h};this.beginShadows=function(){g=!0;b(null)};this.endShadows=function(){g=!1;a()};this.setState=function(c,h,l,k,r,u){if(!f||null===c||0===c.length||g&&!l)g?b(null):a();else{l=g?0:e;var q=
4*l,p=r.clippingState||null;n.value=p;p=b(c,k,q,u);for(c=0;c!==q;++c)p[c]=d[c];r.clippingState=p;this.numIntersection=h?this.numPlanes:0;this.numPlanes+=l}}}function rj(a){var b={};return{get:function(c){if(void 0!==b[c])return b[c];switch(c){case "WEBGL_depth_texture":var d=a.getExtension("WEBGL_depth_texture")||a.getExtension("MOZ_WEBGL_depth_texture")||a.getExtension("WEBKIT_WEBGL_depth_texture");break;case "EXT_texture_filter_anisotropic":d=a.getExtension("EXT_texture_filter_anisotropic")||a.getExtension("MOZ_EXT_texture_filter_anisotropic")||
a.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case "WEBGL_compressed_texture_s3tc":d=a.getExtension("WEBGL_compressed_texture_s3tc")||a.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||a.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case "WEBGL_compressed_texture_pvrtc":d=a.getExtension("WEBGL_compressed_texture_pvrtc")||a.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:d=a.getExtension(c)}null===d&&console.warn("THREE.WebGLRenderer: "+c+" extension not supported.");
return b[c]=d}}}function sj(a,b,c){function d(a){var e=a.target;a=f.get(e);null!==a.index&&b.remove(a.index);for(var h in a.attributes)b.remove(a.attributes[h]);e.removeEventListener("dispose",d);f.delete(e);if(h=g.get(a))b.remove(h),g.delete(a);c.memory.geometries--}function e(a){var c=[],d=a.index,e=a.attributes.position;if(null!==d){e=d.array;d=d.version;for(var f=0,h=e.length;f<h;f+=3){var k=e[f+0],r=e[f+1],u=e[f+2];c.push(k,r,r,u,u,k)}}else for(f=e.array,d=e.version,e=0,f=f.length/3-1;e<f;e+=
3)h=e+0,k=e+1,r=e+2,c.push(h,k,k,r,r,h);c=new (65535<wh(c)?Yb:Xb)(c,1);c.version=d;b.update(c,34963);(d=g.get(a))&&b.remove(d);g.set(a,c)}var f=new WeakMap,g=new WeakMap;return{get:function(a,b){var e=f.get(b);if(e)return e;b.addEventListener("dispose",d);b.isBufferGeometry?e=b:b.isGeometry&&(void 0===b._bufferGeometry&&(b._bufferGeometry=(new F).setFromObject(a)),e=b._bufferGeometry);f.set(b,e);c.memory.geometries++;return e},update:function(a){var c=a.index,d=a.attributes;null!==c&&b.update(c,34963);
for(var e in d)b.update(d[e],34962);a=a.morphAttributes;for(var f in a)for(c=a[f],d=0,e=c.length;d<e;d++)b.update(c[d],34962)},getWireframeAttribute:function(a){var b=g.get(a);if(b){var c=a.index;null!==c&&b.version<c.version&&e(a)}else e(a);return g.get(a)}}}function tj(a,b,c,d){var e=d.isWebGL2,f,g,h;this.setMode=function(a){f=a};this.setIndex=function(a){g=a.type;h=a.bytesPerElement};this.render=function(b,d){a.drawElements(f,d,g,b*h);c.update(d,f)};this.renderInstances=function(d,n,q,p){if(0!==
p){if(e){d=a;var l="drawElementsInstanced"}else if(d=b.get("ANGLE_instanced_arrays"),l="drawElementsInstancedANGLE",null===d){console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");return}d[l](f,q,g,n*h,p);c.update(q,f,p)}}}function uj(a){var b={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:b,programs:null,autoReset:!0,reset:function(){b.frame++;b.calls=0;
b.triangles=0;b.points=0;b.lines=0},update:function(a,d,e){e=e||1;b.calls++;switch(d){case 4:b.triangles+=a/3*e;break;case 1:b.lines+=a/2*e;break;case 3:b.lines+=e*(a-1);break;case 2:b.lines+=e*a;break;case 0:b.points+=e*a;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",d)}}}}function vj(a,b){return Math.abs(b[1])-Math.abs(a[1])}function wj(a){var b={},c=new Float32Array(8);return{update:function(d,e,f,g){var h=d.morphTargetInfluences,l=void 0===h?0:h.length;d=b[e.id];if(void 0===
d){d=[];for(var n=0;n<l;n++)d[n]=[n,0];b[e.id]=d}n=f.morphTargets&&e.morphAttributes.position;f=f.morphNormals&&e.morphAttributes.normal;for(var q=0;q<l;q++)0!==d[q][1]&&(n&&e.deleteAttribute("morphTarget"+q),f&&e.deleteAttribute("morphNormal"+q));for(q=0;q<l;q++){var p=d[q];p[0]=q;p[1]=h[q]}d.sort(vj);for(l=h=0;8>l;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<d)return a;var e=b*c,f=zh[e];void 0===f&&(f=new Float32Array(e),
zh[e]=f);if(0!==b)for(d.toArray(f,0),d=1,e=0;d!==b;++d)e+=c,a[d].toArray(f,e);return f}function Pa(a,b){if(a.length!==b.length)return!1;for(var c=0,d=a.length;c<d;c++)if(a[c]!==b[c])return!1;return!0}function Ia(a,b){for(var c=0,d=b.length;c<d;c++)a[c]=b[c]}function Ah(a,b){var c=Bh[b];void 0===c&&(c=new Int32Array(b),Bh[b]=c);for(var d=0;d!==b;++d)c[d]=a.allocateTextureUnit();return c}function yj(a,b){var c=this.cache;c[0]!==b&&(a.uniform1f(this.addr,b),c[0]=b)}function zj(a,b){var c=this.cache;
if(void 0!==b.x){if(c[0]!==b.x||c[1]!==b.y)a.uniform2f(this.addr,b.x,b.y),c[0]=b.x,c[1]=b.y}else Pa(c,b)||(a.uniform2fv(this.addr,b),Ia(c,b))}function Aj(a,b){var c=this.cache;if(void 0!==b.x){if(c[0]!==b.x||c[1]!==b.y||c[2]!==b.z)a.uniform3f(this.addr,b.x,b.y,b.z),c[0]=b.x,c[1]=b.y,c[2]=b.z}else if(void 0!==b.r){if(c[0]!==b.r||c[1]!==b.g||c[2]!==b.b)a.uniform3f(this.addr,b.r,b.g,b.b),c[0]=b.r,c[1]=b.g,c[2]=b.b}else Pa(c,b)||(a.uniform3fv(this.addr,b),Ia(c,b))}function Bj(a,b){var c=this.cache;if(void 0!==
b.x){if(c[0]!==b.x||c[1]!==b.y||c[2]!==b.z||c[3]!==b.w)a.uniform4f(this.addr,b.x,b.y,b.z,b.w),c[0]=b.x,c[1]=b.y,c[2]=b.z,c[3]=b.w}else Pa(c,b)||(a.uniform4fv(this.addr,b),Ia(c,b))}function Cj(a,b){var c=this.cache,d=b.elements;void 0===d?Pa(c,b)||(a.uniformMatrix2fv(this.addr,!1,b),Ia(c,b)):Pa(c,d)||(Ch.set(d),a.uniformMatrix2fv(this.addr,!1,Ch),Ia(c,d))}function Dj(a,b){var c=this.cache,d=b.elements;void 0===d?Pa(c,b)||(a.uniformMatrix3fv(this.addr,!1,b),Ia(c,b)):Pa(c,d)||(Dh.set(d),a.uniformMatrix3fv(this.addr,
!1,Dh),Ia(c,d))}function Ej(a,b){var c=this.cache,d=b.elements;void 0===d?Pa(c,b)||(a.uniformMatrix4fv(this.addr,!1,b),Ia(c,b)):Pa(c,d)||(Eh.set(d),a.uniformMatrix4fv(this.addr,!1,Eh),Ia(c,d))}function Fj(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.safeSetTexture2D(b||Fh,e)}function Gj(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.setTexture2DArray(b||Hj,e)}function Ij(a,b,c){var d=this.cache,e=c.allocateTextureUnit();
d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.setTexture3D(b||Jj,e)}function Kj(a,b,c){var d=this.cache,e=c.allocateTextureUnit();d[0]!==e&&(a.uniform1i(this.addr,e),d[0]=e);c.safeSetTextureCube(b||Gh,e)}function Lj(a,b){var c=this.cache;c[0]!==b&&(a.uniform1i(this.addr,b),c[0]=b)}function Mj(a,b){var c=this.cache;Pa(c,b)||(a.uniform2iv(this.addr,b),Ia(c,b))}function Nj(a,b){var c=this.cache;Pa(c,b)||(a.uniform3iv(this.addr,b),Ia(c,b))}function Oj(a,b){var c=this.cache;Pa(c,b)||(a.uniform4iv(this.addr,
b),Ia(c,b))}function Pj(a,b){var c=this.cache;c[0]!==b&&(a.uniform1ui(this.addr,b),c[0]=b)}function Qj(a){switch(a){case 5126:return yj;case 35664:return zj;case 35665:return Aj;case 35666:return Bj;case 35674:return Cj;case 35675:return Dj;case 35676:return Ej;case 5124:case 35670:return Lj;case 35667:case 35671:return Mj;case 35668:case 35672:return Nj;case 35669:case 35673:return Oj;case 5125:return Pj;case 35678:case 36198:case 36298:case 36306:case 35682:return Fj;case 35679:case 36299:case 36307:return Ij;
case 35680:case 36300:case 36308:case 36293:return Kj;case 36289:case 36303:case 36311:case 36292:return Gj}}function Rj(a,b){a.uniform1fv(this.addr,b)}function Sj(a,b){a.uniform1iv(this.addr,b)}function Tj(a,b){a.uniform2iv(this.addr,b)}function Uj(a,b){a.uniform3iv(this.addr,b)}function Vj(a,b){a.uniform4iv(this.addr,b)}function Wj(a,b){b=Ic(b,this.size,2);a.uniform2fv(this.addr,b)}function Xj(a,b){b=Ic(b,this.size,3);a.uniform3fv(this.addr,b)}function Yj(a,b){b=Ic(b,this.size,4);a.uniform4fv(this.addr,
b)}function Zj(a,b){b=Ic(b,this.size,4);a.uniformMatrix2fv(this.addr,!1,b)}function ak(a,b){b=Ic(b,this.size,9);a.uniformMatrix3fv(this.addr,!1,b)}function bk(a,b){b=Ic(b,this.size,16);a.uniformMatrix4fv(this.addr,!1,b)}function ck(a,b,c){var d=b.length,e=Ah(c,d);a.uniform1iv(this.addr,e);for(a=0;a!==d;++a)c.safeSetTexture2D(b[a]||Fh,e[a])}function dk(a,b,c){var d=b.length,e=Ah(c,d);a.uniform1iv(this.addr,e);for(a=0;a!==d;++a)c.safeSetTextureCube(b[a]||Gh,e[a])}function ek(a){switch(a){case 5126:return Rj;
case 35664:return Wj;case 35665:return Xj;case 35666:return Yj;case 35674:return Zj;case 35675:return ak;case 35676:return bk;case 5124:case 35670:return Sj;case 35667:case 35671:return Tj;case 35668:case 35672:return Uj;case 35669:case 35673:return Vj;case 35678:case 36198:case 36298:case 36306:case 35682:return ck;case 35680:case 36300:case 36308:case 36293:return dk}}function fk(a,b,c){this.id=a;this.addr=c;this.cache=[];this.setValue=Qj(b.type)}function Hh(a,b,c){this.id=a;this.addr=c;this.cache=
[];this.size=b.size;this.setValue=ek(b.type)}function Ih(a){this.id=a;this.seq=[];this.map={}}function Fb(a,b){this.seq=[];this.map={};for(var c=a.getProgramParameter(b,35718),d=0;d<c;++d){var e=a.getActiveUniform(b,d),f=a.getUniformLocation(b,e.name),g=this,h=e.name,l=h.length;for(ig.lastIndex=0;;){var n=ig.exec(h),q=ig.lastIndex,p=n[1],k=n[3];"]"===n[2]&&(p|=0);if(void 0===k||"["===k&&q+2===l){h=g;e=void 0===k?new fk(p,e,f):new Hh(p,e,f);h.seq.push(e);h.map[e.id]=e;break}else k=g.map[p],void 0===
k&&(k=new Ih(p),p=g,g=k,p.seq.push(g),p.map[g.id]=g),g=k}}}function Jh(a,b,c){b=a.createShader(b);a.shaderSource(b,c);a.compileShader(b);return b}function Kh(a){switch(a){case 3E3:return["Linear","( value )"];case 3001:return["sRGB","( value )"];case 3002:return["RGBE","( value )"];case 3004:return["RGBM","( value, 7.0 )"];case 3005:return["RGBM","( value, 16.0 )"];case 3006:return["RGBD","( value, 256.0 )"];case 3007:return["Gamma","( value, float( GAMMA_FACTOR ) )"];case 3003:return["LogLuv","( value )"];
default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",a),["Linear","( value )"]}}function Lh(a,b,c){var d=a.getShaderParameter(b,35713),e=a.getShaderInfoLog(b).trim();if(d&&""===e)return"";a=a.getShaderSource(b).split("\n");for(b=0;b<a.length;b++)a[b]=b+1+": "+a[b];a=a.join("\n");return"THREE.WebGLShader: gl.getShaderInfoLog() "+c+"\n"+e+a}function Hd(a,b){b=Kh(b);return"vec4 "+a+"( vec4 value ) { return "+b[0]+"ToLinear"+b[1]+"; }"}function gk(a,b){b=Kh(b);return"vec4 "+a+"( vec4 value ) { return LinearTo"+
b[0]+b[1]+"; }"}function hk(a,b){switch(b){case 1:b="Linear";break;case 2:b="Reinhard";break;case 3:b="OptimizedCineon";break;case 4:b="ACESFilmic";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",b),b="Linear"}return"vec3 "+a+"( vec3 color ) { return "+b+"ToneMapping( color ); }"}function ik(a){var b=[],c;for(c in a){var d=a[c];!1!==d&&b.push("#define "+c+" "+d)}return b.join("\n")}function Id(a){return""!==a}function Mh(a,b){return a.replace(/NUM_DIR_LIGHTS/g,b.numDirLights).replace(/NUM_SPOT_LIGHTS/g,
b.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,b.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,b.numPointLights).replace(/NUM_HEMI_LIGHTS/g,b.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,b.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,b.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,b.numPointLightShadows)}function Nh(a,b){return a.replace(/NUM_CLIPPING_PLANES/g,b.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,b.numClippingPlanes-b.numClipIntersection)}function jg(a,b){a=
N[b];if(void 0===a)throw Error("Can not resolve #include <"+b+">");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);b<parseInt(c);b++)a+=d.replace(/\[ i \]/g,"[ "+b+" ]").replace(/UNROLLED_LOOP_INDEX/g,b);return a}function Ph(a){var b="precision "+a.precision+" float;\nprecision "+a.precision+" int;";"highp"===
a.precision?b+="\n#define HIGH_PRECISION":"mediump"===a.precision?b+="\n#define MEDIUM_PRECISION":"lowp"===a.precision&&(b+="\n#define LOW_PRECISION");return b}function jk(a){var b="SHADOWMAP_TYPE_BASIC";1===a.shadowMapType?b="SHADOWMAP_TYPE_PCF":2===a.shadowMapType?b="SHADOWMAP_TYPE_PCF_SOFT":3===a.shadowMapType&&(b="SHADOWMAP_TYPE_VSM");return b}function kk(a){var b="ENVMAP_TYPE_CUBE";if(a.envMap)switch(a.envMapMode){case 301:case 302:b="ENVMAP_TYPE_CUBE";break;case 306:case 307:b="ENVMAP_TYPE_CUBE_UV";
break;case 303:case 304:b="ENVMAP_TYPE_EQUIREC"}return b}function lk(a){var b="ENVMAP_MODE_REFLECTION";if(a.envMap)switch(a.envMapMode){case 302:case 304:b="ENVMAP_MODE_REFRACTION"}return b}function mk(a){var b="ENVMAP_BLENDING_NONE";if(a.envMap)switch(a.combine){case 0:b="ENVMAP_BLENDING_MULTIPLY";break;case 1:b="ENVMAP_BLENDING_MIX";break;case 2:b="ENVMAP_BLENDING_ADD"}return b}function nk(a,b,c){var d=a.getContext(),e=c.defines,f=c.vertexShader,g=c.fragmentShader,h=jk(c),l=kk(c),n=lk(c),q=mk(c),
p=0<a.gammaFactor?a.gammaFactor:1,k=c.isWebGL2?"":[c.extensionDerivatives||c.envMapCubeUV||c.bumpMap||c.tangentSpaceNormalMap||c.clearcoatNormalMap||c.flatShading||"physical"===c.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(c.extensionFragDepth||c.logarithmicDepthBuffer)&&c.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",c.extensionDrawBuffers&&c.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(c.extensionShaderTextureLOD||c.envMap)&&
c.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Id).join("\n"),t=ik(e),r=d.createProgram();c.isRawShaderMaterial?(e=[t].filter(Id).join("\n"),0<e.length&&(e+="\n"),h=[k,t].filter(Id).join("\n"),0<h.length&&(h+="\n")):(e=[Ph(c),"#define SHADER_NAME "+c.shaderName,t,c.instancing?"#define USE_INSTANCING":"",c.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+p,"#define MAX_BONES "+c.maxBones,c.useFog&&c.fog?"#define USE_FOG":"",
c.useFog&&c.fogExp2?"#define FOG_EXP2":"",c.map?"#define USE_MAP":"",c.envMap?"#define USE_ENVMAP":"",c.envMap?"#define "+n:"",c.lightMap?"#define USE_LIGHTMAP":"",c.aoMap?"#define USE_AOMAP":"",c.emissiveMap?"#define USE_EMISSIVEMAP":"",c.bumpMap?"#define USE_BUMPMAP":"",c.normalMap?"#define USE_NORMALMAP":"",c.normalMap&&c.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",c.normalMap&&c.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",c.clearcoatMap?"#define USE_CLEARCOATMAP":"",
c.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",c.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",c.displacementMap&&c.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",c.specularMap?"#define USE_SPECULARMAP":"",c.roughnessMap?"#define USE_ROUGHNESSMAP":"",c.metalnessMap?"#define USE_METALNESSMAP":"",c.alphaMap?"#define USE_ALPHAMAP":"",c.vertexTangents?"#define USE_TANGENT":"",c.vertexColors?"#define USE_COLOR":"",c.vertexUvs?"#define USE_UV":"",c.uvsVertexOnly?"#define UVS_VERTEX_ONLY":
"",c.flatShading?"#define FLAT_SHADED":"",c.skinning?"#define USE_SKINNING":"",c.useVertexTexture?"#define BONE_TEXTURE":"",c.morphTargets?"#define USE_MORPHTARGETS":"",c.morphNormals&&!1===c.flatShading?"#define USE_MORPHNORMALS":"",c.doubleSided?"#define DOUBLE_SIDED":"",c.flipSided?"#define FLIP_SIDED":"",c.shadowMapEnabled?"#define USE_SHADOWMAP":"",c.shadowMapEnabled?"#define "+h:"",c.sizeAttenuation?"#define USE_SIZEATTENUATION":"",c.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",c.logarithmicDepthBuffer&&
c.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#ifdef USE_COLOR","\tattribute vec3 color;",
"#endif","#ifdef USE_MORPHTARGETS","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif",
"#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Id).join("\n"),h=[k,Ph(c),"#define SHADER_NAME "+c.shaderName,t,c.alphaTest?"#define ALPHATEST "+c.alphaTest+(c.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+p,c.useFog&&c.fog?"#define USE_FOG":"",c.useFog&&c.fogExp2?"#define FOG_EXP2":"",c.map?"#define USE_MAP":"",c.matcap?"#define USE_MATCAP":"",c.envMap?"#define USE_ENVMAP":"",c.envMap?"#define "+l:"",c.envMap?"#define "+n:"",c.envMap?"#define "+
q:"",c.lightMap?"#define USE_LIGHTMAP":"",c.aoMap?"#define USE_AOMAP":"",c.emissiveMap?"#define USE_EMISSIVEMAP":"",c.bumpMap?"#define USE_BUMPMAP":"",c.normalMap?"#define USE_NORMALMAP":"",c.normalMap&&c.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",c.normalMap&&c.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",c.clearcoatMap?"#define USE_CLEARCOATMAP":"",c.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",c.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",
c.specularMap?"#define USE_SPECULARMAP":"",c.roughnessMap?"#define USE_ROUGHNESSMAP":"",c.metalnessMap?"#define USE_METALNESSMAP":"",c.alphaMap?"#define USE_ALPHAMAP":"",c.sheen?"#define USE_SHEEN":"",c.vertexTangents?"#define USE_TANGENT":"",c.vertexColors?"#define USE_COLOR":"",c.vertexUvs?"#define USE_UV":"",c.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",c.gradientMap?"#define USE_GRADIENTMAP":"",c.flatShading?"#define FLAT_SHADED":"",c.doubleSided?"#define DOUBLE_SIDED":"",c.flipSided?"#define FLIP_SIDED":
"",c.shadowMapEnabled?"#define USE_SHADOWMAP":"",c.shadowMapEnabled?"#define "+h:"",c.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",c.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",c.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",c.logarithmicDepthBuffer&&c.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(c.extensionShaderTextureLOD||c.envMap)&&c.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",
"uniform bool isOrthographic;",0!==c.toneMapping?"#define TONE_MAPPING":"",0!==c.toneMapping?N.tonemapping_pars_fragment:"",0!==c.toneMapping?hk("toneMapping",c.toneMapping):"",c.dithering?"#define DITHERING":"",N.encodings_pars_fragment,c.map?Hd("mapTexelToLinear",c.mapEncoding):"",c.matcap?Hd("matcapTexelToLinear",c.matcapEncoding):"",c.envMap?Hd("envMapTexelToLinear",c.envMapEncoding):"",c.emissiveMap?Hd("emissiveMapTexelToLinear",c.emissiveMapEncoding):"",c.lightMap?Hd("lightMapTexelToLinear",
c.lightMapEncoding):"",gk("linearToOutputTexel",c.outputEncoding),c.depthPacking?"#define DEPTH_PACKING "+c.depthPacking:"","\n"].filter(Id).join("\n"));f=f.replace(kg,jg);f=Mh(f,c);f=Nh(f,c);g=g.replace(kg,jg);g=Mh(g,c);g=Nh(g,c);f=f.replace(Qh,lg).replace(Rh,Oh);g=g.replace(Qh,lg).replace(Rh,Oh);c.isWebGL2&&!c.isRawShaderMaterial&&(l=!1,n=/^\s*#version\s+300\s+es\s*\n/,c.isShaderMaterial&&null!==f.match(n)&&null!==g.match(n)&&(l=!0,f=f.replace(n,""),g=g.replace(n,"")),e="#version 300 es\n\n#define attribute in\n#define varying out\n#define texture2D texture\n"+
e,h=["#version 300 es\n\n#define varying in",l?"":"out highp vec4 pc_fragColor;",l?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth\n#define texture2D texture\n#define textureCube texture\n#define texture2DProj textureProj\n#define texture2DLodEXT textureLod\n#define texture2DProjLodEXT textureProjLod\n#define textureCubeLodEXT textureLod\n#define texture2DGradEXT textureGrad\n#define texture2DProjGradEXT textureProjGrad\n#define textureCubeGradEXT textureGrad"].join("\n")+
"\n"+h);g=h+g;f=Jh(d,35633,e+f);g=Jh(d,35632,g);d.attachShader(r,f);d.attachShader(r,g);void 0!==c.index0AttributeName?d.bindAttribLocation(r,0,c.index0AttributeName):!0===c.morphTargets&&d.bindAttribLocation(r,0,"position");d.linkProgram(r);if(a.debug.checkShaderErrors){a=d.getProgramInfoLog(r).trim();l=d.getShaderInfoLog(f).trim();n=d.getShaderInfoLog(g).trim();p=q=!0;if(!1===d.getProgramParameter(r,35714))q=!1,k=Lh(d,f,"vertex"),t=Lh(d,g,"fragment"),console.error("THREE.WebGLProgram: shader error: ",
d.getError(),"35715",d.getProgramParameter(r,35715),"gl.getProgramInfoLog",a,k,t);else if(""!==a)console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",a);else if(""===l||""===n)p=!1;p&&(this.diagnostics={runnable:q,programLog:a,vertexShader:{log:l,prefix:e},fragmentShader:{log:n,prefix:h}})}d.deleteShader(f);d.deleteShader(g);var u;this.getUniforms=function(){void 0===u&&(u=new Fb(d,r));return u};var m;this.getAttributes=function(){if(void 0===m){for(var a={},b=d.getProgramParameter(r,35721),
c=0;c<b;c++){var e=d.getActiveAttrib(r,c).name;a[e]=d.getAttribLocation(r,e)}m=a}return m};this.destroy=function(){d.deleteProgram(r);this.program=void 0};this.name=c.shaderName;this.id=ok++;this.cacheKey=b;this.usedTimes=1;this.program=r;this.vertexShader=f;this.fragmentShader=g;return this}function pk(a,b,c){function d(a){if(a)a.isTexture?b=a.encoding:a.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),
b=a.texture.encoding);else var b=3E3;return b}var e=[],f=c.isWebGL2,g=c.logarithmicDepthBuffer,h=c.floatVertexTextures,l=c.maxVertexUniforms,n=c.vertexTextures,q=c.precision,p={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",
PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},k="precision isWebGL2 supportsVertexTextures outputEncoding instancing map mapEncoding matcap matcapEncoding envMap envMapMode envMapEncoding envMapCubeUV lightMap lightMapEncoding aoMap emissiveMap emissiveMapEncoding bumpMap normalMap objectSpaceNormalMap tangentSpaceNormalMap clearcoatMap clearcoatRoughnessMap clearcoatNormalMap displacementMap specularMap roughnessMap metalnessMap gradientMap alphaMap combine vertexColors vertexTangents vertexUvs uvsVertexOnly fog useFog fogExp2 flatShading sizeAttenuation logarithmicDepthBuffer skinning maxBones useVertexTexture morphTargets morphNormals maxMorphTargets maxMorphNormals premultipliedAlpha numDirLights numPointLights numSpotLights numHemiLights numRectAreaLights numDirLightShadows numPointLightShadows numSpotLightShadows shadowMapEnabled shadowMapType toneMapping physicallyCorrectLights alphaTest doubleSided flipSided numClippingPlanes numClipIntersection depthPacking dithering sheen".split(" ");
return{getParameters:function(e,k,v,m,E,x,Ea){var r=m.fog;m=e.isMeshStandardMaterial?m.environment:null;m=e.envMap||m;var t=p[e.type];if(Ea.isSkinnedMesh){var u=Ea.skeleton.bones;if(h)u=1024;else{var A=Math.min(Math.floor((l-20)/4),u.length);A<u.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+u.length+" bones. This GPU supports "+A+"."),u=0):u=A}}else u=0;null!==e.precision&&(q=c.getMaxPrecision(e.precision),q!==e.precision&&console.warn("THREE.WebGLProgram.getParameters:",e.precision,"not supported, using",
q,"instead."));t?(A=gb[t],A={name:e.name||e.type,uniforms:Sh.clone(A.uniforms),vertexShader:A.vertexShader,fragmentShader:A.fragmentShader}):A={name:e.name||e.type,uniforms:e.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader};e.onBeforeCompile(A,a);var w=a.getRenderTarget();return{isWebGL2:f,shaderID:t,shaderName:A.name,uniforms:A.uniforms,vertexShader:A.vertexShader,fragmentShader:A.fragmentShader,defines:e.defines,isRawShaderMaterial:e.isRawShaderMaterial,isShaderMaterial:e.isShaderMaterial,
precision:q,instancing:!0===Ea.isInstancedMesh,supportsVertexTextures:n,outputEncoding:null!==w?d(w.texture):a.outputEncoding,map:!!e.map,mapEncoding:d(e.map),matcap:!!e.matcap,matcapEncoding:d(e.matcap),envMap:!!m,envMapMode:m&&m.mapping,envMapEncoding:d(m),envMapCubeUV:!!m&&(306===m.mapping||307===m.mapping),lightMap:!!e.lightMap,lightMapEncoding:d(e.lightMap),aoMap:!!e.aoMap,emissiveMap:!!e.emissiveMap,emissiveMapEncoding:d(e.emissiveMap),bumpMap:!!e.bumpMap,normalMap:!!e.normalMap,objectSpaceNormalMap:1===
e.normalMapType,tangentSpaceNormalMap:0===e.normalMapType,clearcoatMap:!!e.clearcoatMap,clearcoatRoughnessMap:!!e.clearcoatRoughnessMap,clearcoatNormalMap:!!e.clearcoatNormalMap,displacementMap:!!e.displacementMap,roughnessMap:!!e.roughnessMap,metalnessMap:!!e.metalnessMap,specularMap:!!e.specularMap,alphaMap:!!e.alphaMap,gradientMap:!!e.gradientMap,sheen:!!e.sheen,combine:e.combine,vertexTangents:e.normalMap&&e.vertexTangents,vertexColors:e.vertexColors,vertexUvs:!!e.map||!!e.bumpMap||!!e.normalMap||
!!e.specularMap||!!e.alphaMap||!!e.emissiveMap||!!e.roughnessMap||!!e.metalnessMap||!!e.clearcoatMap||!!e.clearcoatRoughnessMap||!!e.clearcoatNormalMap||!!e.displacementMap,uvsVertexOnly:!(e.map||e.bumpMap||e.normalMap||e.specularMap||e.alphaMap||e.emissiveMap||e.roughnessMap||e.metalnessMap||e.clearcoatNormalMap)&&!!e.displacementMap,fog:!!r,useFog:e.fog,fogExp2:r&&r.isFogExp2,flatShading:e.flatShading,sizeAttenuation:e.sizeAttenuation,logarithmicDepthBuffer:g,skinning:e.skinning&&0<u,maxBones:u,
useVertexTexture:h,morphTargets:e.morphTargets,morphNormals:e.morphNormals,maxMorphTargets:a.maxMorphTargets,maxMorphNormals:a.maxMorphNormals,numDirLights:k.directional.length,numPointLights:k.point.length,numSpotLights:k.spot.length,numRectAreaLights:k.rectArea.length,numHemiLights:k.hemi.length,numDirLightShadows:k.directionalShadowMap.length,numPointLightShadows:k.pointShadowMap.length,numSpotLightShadows:k.spotShadowMap.length,numClippingPlanes:E,numClipIntersection:x,dithering:e.dithering,shadowMapEnabled:a.shadowMap.enabled&&
0<v.length,shadowMapType:a.shadowMap.type,toneMapping:e.toneMapped?a.toneMapping:0,physicallyCorrectLights:a.physicallyCorrectLights,premultipliedAlpha:e.premultipliedAlpha,alphaTest:e.alphaTest,doubleSided:2===e.side,flipSided:1===e.side,depthPacking:void 0!==e.depthPacking?e.depthPacking:!1,index0AttributeName:e.index0AttributeName,extensionDerivatives:e.extensions&&e.extensions.derivatives,extensionFragDepth:e.extensions&&e.extensions.fragDepth,extensionDrawBuffers:e.extensions&&e.extensions.drawBuffers,
extensionShaderTextureLOD:e.extensions&&e.extensions.shaderTextureLOD,rendererExtensionFragDepth:f||null!==b.get("EXT_frag_depth"),rendererExtensionDrawBuffers:f||null!==b.get("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:f||null!==b.get("EXT_shader_texture_lod"),customProgramCacheKey:e.customProgramCacheKey()}},getProgramCacheKey:function(b){var c=[];b.shaderID?c.push(b.shaderID):(c.push(b.fragmentShader),c.push(b.vertexShader));if(void 0!==b.defines)for(var d in b.defines)c.push(d),c.push(b.defines[d]);
if(void 0===b.isRawShaderMaterial){for(d=0;d<k.length;d++)c.push(b[k[d]]);c.push(a.outputEncoding);c.push(a.gammaFactor)}c.push(b.customProgramCacheKey);return c.join()},acquireProgram:function(b,c){for(var d,f=0,g=e.length;f<g;f++){var h=e[f];if(h.cacheKey===c){d=h;++d.usedTimes;break}}void 0===d&&(d=new nk(a,c,b),e.push(d));return d},releaseProgram:function(a){if(0===--a.usedTimes){var b=e.indexOf(a);e[b]=e[e.length-1];e.pop();a.destroy()}},programs:e}}function qk(){var a=new WeakMap;return{get:function(b){var c=
a.get(b);void 0===c&&(c={},a.set(b,c));return c},remove:function(b){a.delete(b)},update:function(b,c,d){a.get(b)[c]=d},dispose:function(){a=new WeakMap}}}function rk(a,b){return a.groupOrder!==b.groupOrder?a.groupOrder-b.groupOrder:a.renderOrder!==b.renderOrder?a.renderOrder-b.renderOrder:a.program!==b.program?a.program.id-b.program.id:a.material.id!==b.material.id?a.material.id-b.material.id:a.z!==b.z?a.z-b.z:a.id-b.id}function sk(a,b){return a.groupOrder!==b.groupOrder?a.groupOrder-b.groupOrder:
a.renderOrder!==b.renderOrder?a.renderOrder-b.renderOrder:a.z!==b.z?b.z-a.z:a.id-b.id}function Th(){function a(a,d,e,n,q,p){var g=b[c];void 0===g?(g={id:a.id,object:a,geometry:d,material:e,program:e.program||f,groupOrder:n,renderOrder:a.renderOrder,z:q,group:p},b[c]=g):(g.id=a.id,g.object=a,g.geometry=d,g.material=e,g.program=e.program||f,g.groupOrder=n,g.renderOrder=a.renderOrder,g.z=q,g.group=p);c++;return g}var b=[],c=0,d=[],e=[],f={id:-1};return{opaque:d,transparent:e,init:function(){c=0;d.length=
0;e.length=0},push:function(b,c,f,n,q,p){b=a(b,c,f,n,q,p);(!0===f.transparent?e:d).push(b)},unshift:function(b,c,f,n,q,p){b=a(b,c,f,n,q,p);(!0===f.transparent?e:d).unshift(b)},finish:function(){for(var a=c,d=b.length;a<d;a++){var e=b[a];if(null===e.id)break;e.id=null;e.object=null;e.geometry=null;e.material=null;e.program=null;e.group=null}},sort:function(a,b){1<d.length&&d.sort(a||rk);1<e.length&&e.sort(b||sk)}}}function tk(){function a(c){c=c.target;c.removeEventListener("dispose",a);b.delete(c)}
var b=new WeakMap;return{get:function(c,d){var e=b.get(c);if(void 0===e){var f=new Th;b.set(c,new WeakMap);b.get(c).set(d,f);c.addEventListener("dispose",a)}else f=e.get(d),void 0===f&&(f=new Th,e.set(d,f));return f},dispose:function(){b=new WeakMap}}}function uk(){var a={};return{get:function(b){if(void 0!==a[b.id])return a[b.id];switch(b.type){case "DirectionalLight":var c={direction:new m,color:new D};break;case "SpotLight":c={position:new m,direction:new m,color:new D,distance:0,coneCos:0,penumbraCos:0,
decay:0};break;case "PointLight":c={position:new m,color:new D,distance:0,decay:0};break;case "HemisphereLight":c={direction:new m,skyColor:new D,groundColor:new D};break;case "RectAreaLight":c={color:new D,position:new m,halfWidth:new m,halfHeight:new m}}return a[b.id]=c}}}function vk(){var a={};return{get:function(b){if(void 0!==a[b.id])return a[b.id];switch(b.type){case "DirectionalLight":var c={shadowBias:0,shadowNormalOffset:0,shadowRadius:1,shadowMapSize:new w};break;case "SpotLight":c={shadowBias:0,
shadowNormalOffset:0,shadowRadius:1,shadowMapSize:new w};break;case "PointLight":c={shadowBias:0,shadowNormalOffset:0,shadowRadius:1,shadowMapSize:new w,shadowCameraNear:1,shadowCameraFar:1E3}}return a[b.id]=c}}}function wk(a,b){return(b.castShadow?1:0)-(a.castShadow?1:0)}function xk(){for(var a=new uk,b=vk(),c={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],
directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},d=0;9>d;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;ka<U;ka++){var C=d[ka],w=C.color,O=C.intensity,aa=C.distance,
fa=C.shadow&&C.shadow.map?C.shadow.map.texture:null;if(C.isAmbientLight)l+=w.r*O,h+=w.g*O,p+=w.b*O;else if(C.isLightProbe)for(fa=0;9>fa;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<c.morphAttributes.position.length),c=!1,!0===b.isSkinnedMesh&&(!0===f.skinning?c=!0:console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",b)),b=q(k,c,!0===b.isInstancedMesh)):b=k;a.localClippingEnabled&&!0===
f.clipShadows&&0!==f.clippingPlanes.length&&(k=b.uuid,q=f.uuid,c=t[k],void 0===c&&(c={},t[k]=c),k=c[q],void 0===k&&(k=b.clone(),c[q]=k),b=k);b.visible=f.visible;b.wireframe=f.wireframe;b.side=3===n?null!==f.shadowSide?f.shadowSide:f.side:null!==f.shadowSide?f.shadowSide:r[f.side];b.clipShadows=f.clipShadows;b.clippingPlanes=f.clippingPlanes;b.clipIntersection=f.clipIntersection;b.wireframeLinewidth=f.wireframeLinewidth;b.linewidth=f.linewidth;!0===g.isPointLight&&!0===b.isMeshDistanceMaterial&&(b.referencePosition.setFromMatrixPosition(g.matrixWorld),
b.nearDistance=h,b.farDistance=l);return b}function g(c,d,e,l,n){if(!1!==c.visible){if(c.layers.test(d.layers)&&(c.isMesh||c.isLine||c.isPoints)&&(c.castShadow||c.receiveShadow&&3===n)&&(!c.frustumCulled||h.intersectsObject(c))){c.modelViewMatrix.multiplyMatrices(e.matrixWorldInverse,c.matrixWorld);var q=b.update(c),k=c.material;if(Array.isArray(k))for(var p=q.groups,v=0,r=p.length;v<r;v++){var t=p[v],u=k[t.materialIndex];u&&u.visible&&(u=f(c,q,u,l,e.near,e.far,n),a.renderBufferDirect(e,null,q,u,
c,t))}else k.visible&&(k=f(c,q,k,l,e.near,e.far,n),a.renderBufferDirect(e,null,q,k,c,null))}c=c.children;q=0;for(k=c.length;q<k;q++)g(c[q],d,e,l,n)}}var h=new Fc,l=new w,n=new w,q=new Y,k=[],v=[],t={},r={0:1,1:0,2:2},u=new Ba({defines:{SAMPLE_RATE:.25,HALF_SAMPLE_RATE:.125},uniforms:{shadow_pass:{value:null},resolution:{value:new w},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\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;t<A;t++){var E=d[t],C=E.shadow;if(void 0===C)console.warn("THREE.WebGLShadowMap:",E,"has no shadow.");else{l.copy(C.mapSize);var w=C.getFrameExtents();l.multiply(w);n.copy(C.mapSize);if(l.x>c||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;U<w;U++){var ka=C.getViewport(U);q.set(n.x*ka.x,n.y*ka.y,n.x*ka.z,n.y*ka.w);r.viewport(q);C.updateMatrices(E,U);h=C.getFrustum();g(e,f,C.camera,E,this.type)}C.isPointLightShadow||3!==this.type||(E=C,C=f,w=b.update(x),
u.uniforms.shadow_pass.value=E.map.texture,u.uniforms.resolution.value=E.mapSize,u.uniforms.radius.value=E.radius,a.setRenderTarget(E.mapPass),a.clear(),a.renderBufferDirect(C,null,w,u,x,null),m.uniforms.shadow_pass.value=E.mapPass.texture,m.uniforms.resolution.value=E.mapSize,m.uniforms.radius.value=E.radius,a.setRenderTarget(E.map),a.clear(),a.renderBufferDirect(C,null,w,m,x,null))}}Ea.needsUpdate=!1;a.setRenderTarget(k,p,v)}}}function Ak(a,b,c){function d(b,c,d){var e=new Uint8Array(4),f=a.createTexture();
a.bindTexture(b,f);a.texParameteri(b,10241,9728);a.texParameteri(b,10240,9728);for(b=0;b<d;b++)a.texImage2D(c+b,0,6408,1,1,0,6408,5121,e);return f}function e(c,d){m[c]=1;0===E[c]&&(a.enableVertexAttribArray(c),E[c]=1);x[c]!==d&&((v?a:b.get("ANGLE_instanced_arrays"))[v?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](c,d),x[c]=d)}function f(b){!0!==w[b]&&(a.enable(b),w[b]=!0)}function g(b){!1!==w[b]&&(a.disable(b),w[b]=!1)}function h(b,c,d,e,h,l,n,q){if(0===b)U&&(g(3042),U=!1);else if(U||(f(3042),
U=!0),5!==b){if(b!==C||q!==y){if(100!==z||100!==fa)a.blendEquation(32774),fa=z=100;if(q)switch(b){case 1:a.blendFuncSeparate(1,771,1,771);break;case 2:a.blendFunc(1,1);break;case 3:a.blendFuncSeparate(0,0,769,771);break;case 4:a.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",b)}else switch(b){case 1:a.blendFuncSeparate(770,771,1,771);break;case 2:a.blendFunc(770,1);break;case 3:a.blendFunc(0,769);break;case 4:a.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",
b)}B=ja=aa=O=null;C=b;y=q}}else{h=h||c;l=l||d;n=n||e;if(c!==z||h!==fa)a.blendEquationSeparate(ea[c],ea[h]),z=c,fa=h;if(d!==O||e!==aa||l!==ja||n!==B)a.blendFuncSeparate(da[d],da[e],da[l],da[n]),O=d,aa=e,ja=l,B=n;C=b;y=null}}function l(b){D!==b&&(b?a.frontFace(2304):a.frontFace(2305),D=b)}function n(b){0!==b?(f(2884),b!==F&&(1===b?a.cullFace(1029):2===b?a.cullFace(1028):a.cullFace(1032))):g(2884);F=b}function q(b,c,d){if(b){if(f(32823),H!==c||G!==d)a.polygonOffset(c,d),H=c,G=d}else g(32823)}function k(b){void 0===
b&&(b=33984+L-1);M!==b&&(a.activeTexture(b),M=b)}var v=c.isWebGL2,t=new function(){var b=!1,c=new Y,d=null,e=new Y(0,0,0,0);return{setMask:function(c){d===c||b||(a.colorMask(c,c,c,c),d=c)},setLocked:function(a){b=a},setClear:function(b,d,f,g,h){!0===h&&(b*=g,d*=g,f*=g);c.set(b,d,f,g);!1===e.equals(c)&&(a.clearColor(b,d,f,g),e.copy(c))},reset:function(){b=!1;d=null;e.set(-1,0,0,0)}}},r=new function(){var b=!1,c=null,d=null,e=null;return{setTest:function(a){a?f(2929):g(2929)},setMask:function(d){c===
d||b||(a.depthMask(d),c=d)},setFunc:function(b){if(d!==b){if(b)switch(b){case 0:a.depthFunc(512);break;case 1:a.depthFunc(519);break;case 2:a.depthFunc(513);break;case 3:a.depthFunc(515);break;case 4:a.depthFunc(514);break;case 5:a.depthFunc(518);break;case 6:a.depthFunc(516);break;case 7:a.depthFunc(517);break;default:a.depthFunc(515)}else a.depthFunc(515);d=b}},setLocked:function(a){b=a},setClear:function(b){e!==b&&(a.clearDepth(b),e=b)},reset:function(){b=!1;e=d=c=null}}},u=new function(){var b=
!1,c=null,d=null,e=null,h=null,l=null,n=null,q=null,k=null;return{setTest:function(a){b||(a?f(2960):g(2960))},setMask:function(d){c===d||b||(a.stencilMask(d),c=d)},setFunc:function(b,c,f){if(d!==b||e!==c||h!==f)a.stencilFunc(b,c,f),d=b,e=c,h=f},setOp:function(b,c,d){if(l!==b||n!==c||q!==d)a.stencilOp(b,c,d),l=b,n=c,q=d},setLocked:function(a){b=a},setClear:function(b){k!==b&&(a.clearStencil(b),k=b)},reset:function(){b=!1;k=q=n=l=h=e=d=c=null}}};c=a.getParameter(34921);var m=new Uint8Array(c),E=new Uint8Array(c),
x=new Uint8Array(c),w={},ka=null,U=null,C=null,z=null,O=null,aa=null,fa=null,ja=null,B=null,y=!1,D=null,F=null,J=null,H=null,G=null,L=a.getParameter(35661),K=!1;c=0;c=a.getParameter(7938);-1!==c.indexOf("WebGL")?(c=parseFloat(/^WebGL ([0-9])/.exec(c)[1]),K=1<=c):-1!==c.indexOf("OpenGL ES")&&(c=parseFloat(/^OpenGL ES ([0-9])/.exec(c)[1]),K=2<=c);var M=null,Ld={},R=new Y,ba=new Y,Wa={};Wa[3553]=d(3553,3553,1);Wa[34067]=d(34067,34069,6);t.setClear(0,0,0,1);r.setClear(1);u.setClear(0);f(2929);r.setFunc(3);
l(!1);n(1);f(2884);h(0);var ea={100:32774,101:32778,102:32779};v?(ea[103]=32775,ea[104]=32776):(c=b.get("EXT_blend_minmax"),null!==c&&(ea[103]=c.MIN_EXT,ea[104]=c.MAX_EXT));var da={200:0,201:1,202:768,204:770,210:776,208:774,206:772,203:769,205:771,209:775,207:773};return{buffers:{color:t,depth:r,stencil:u},initAttributes:function(){for(var a=0,b=m.length;a<b;a++)m[a]=0},enableAttribute:function(a){e(a,0)},enableAttributeAndDivisor:e,disableUnusedAttributes:function(){for(var b=0,c=E.length;b!==c;++b)E[b]!==
m[b]&&(a.disableVertexAttribArray(b),E[b]=0)},vertexAttribPointer:function(b,c,d,e,f,g){!0!==v||5124!==d&&5125!==d?a.vertexAttribPointer(b,c,d,e,f,g):a.vertexAttribIPointer(b,c,d,e,f,g)},enable:f,disable:g,useProgram:function(b){return ka!==b?(a.useProgram(b),ka=b,!0):!1},setBlending:h,setMaterial:function(a,b){2===a.side?g(2884):f(2884);var c=1===a.side;b&&(c=!c);l(c);1===a.blending&&!1===a.transparent?h(0):h(a.blending,a.blendEquation,a.blendSrc,a.blendDst,a.blendEquationAlpha,a.blendSrcAlpha,a.blendDstAlpha,
a.premultipliedAlpha);r.setFunc(a.depthFunc);r.setTest(a.depthTest);r.setMask(a.depthWrite);t.setMask(a.colorWrite);b=a.stencilWrite;u.setTest(b);b&&(u.setMask(a.stencilWriteMask),u.setFunc(a.stencilFunc,a.stencilRef,a.stencilFuncMask),u.setOp(a.stencilFail,a.stencilZFail,a.stencilZPass));q(a.polygonOffset,a.polygonOffsetFactor,a.polygonOffsetUnits)},setFlipSided:l,setCullFace:n,setLineWidth:function(b){b!==J&&(K&&a.lineWidth(b),J=b)},setPolygonOffset:q,setScissorTest:function(a){a?f(3089):g(3089)},
activeTexture:k,bindTexture:function(b,c){null===M&&k();var d=Ld[M];void 0===d&&(d={type:void 0,texture:void 0},Ld[M]=d);if(d.type!==b||d.texture!==c)a.bindTexture(b,c||Wa[b]),d.type=b,d.texture=c},unbindTexture:function(){var b=Ld[M];void 0!==b&&void 0!==b.type&&(a.bindTexture(b.type,null),b.type=void 0,b.texture=void 0)},compressedTexImage2D:function(){try{a.compressedTexImage2D.apply(a,arguments)}catch(Jd){console.error("THREE.WebGLState:",Jd)}},texImage2D:function(){try{a.texImage2D.apply(a,arguments)}catch(Jd){console.error("THREE.WebGLState:",
Jd)}},texImage3D:function(){try{a.texImage3D.apply(a,arguments)}catch(Jd){console.error("THREE.WebGLState:",Jd)}},scissor:function(b){!1===R.equals(b)&&(a.scissor(b.x,b.y,b.z,b.w),R.copy(b))},viewport:function(b){!1===ba.equals(b)&&(a.viewport(b.x,b.y,b.z,b.w),ba.copy(b))},reset:function(){for(var b=0;b<E.length;b++)1===E[b]&&(a.disableVertexAttribArray(b),E[b]=0);w={};M=null;Ld={};F=D=C=ka=null;t.reset();r.reset();u.reset()}}}function Bk(a,b,c,d,e,f,g){function h(a,b){return J?new OffscreenCanvas(a,
b):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function l(a,b,c,d){var e=1;if(a.width>d||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(0<a.version&&e.__version!==a.version)if(f=a.image,void 0===f)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else if(!1===f.complete)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{U(e,a,b);return}c.activeTexture(33984+b);c.bindTexture(3553,e.__webglTexture)}function E(b,e){if(6===b.image.length){var g=d.get(b);if(0<b.version&&g.__version!==
b.version){ka(g,b);c.activeTexture(33984+e);c.bindTexture(34067,g.__webglTexture);a.pixelStorei(37440,b.flipY);var h=b&&(b.isCompressedTexture||b.image[0].isCompressedTexture),p=b.image[0]&&b.image[0].isDataTexture;e=[];for(var r=0;6>r;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;h<x.length;h++){var R=x[h];1023!==b.format&&1022!==
b.format?null!==m?c.compressedTexImage2D(34069+p,h,A,R.width,R.height,0,R.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):c.texImage2D(34069+p,h,A,R.width,R.height,0,m,u,R.data)}}g.__maxMipLevel=x.length-1}else{x=b.mipmaps;for(h=0;6>h;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<x.length;R++){var E=x[R].image[h].image;c.texImage2D(34069+h,R+1,A,E.width,E.height,0,m,u,E.data)}else for(c.texImage2D(34069+
h,0,A,m,u,e[h]),R=0;R<x.length;R++)c.texImage2D(34069+h,R+1,A,m,u,x[R].image[h]);g.__maxMipLevel=x.length}q(b,t)&&k(34067,b,r.width,r.height);g.__version=b.version;if(b.onUpdate)b.onUpdate(b)}else c.activeTexture(33984+e),c.bindTexture(34067,g.__webglTexture)}}function x(a,b){c.activeTexture(33984+b);c.bindTexture(34067,d.get(a).__webglTexture)}function w(c,f,g){g?(a.texParameteri(c,10242,G[f.wrapS]),a.texParameteri(c,10243,G[f.wrapT]),32879!==c&&35866!==c||a.texParameteri(c,32882,G[f.wrapR]),a.texParameteri(c,
10240,L[f.magFilter]),a.texParameteri(c,10241,L[f.minFilter])):(a.texParameteri(c,10242,33071),a.texParameteri(c,10243,33071),32879!==c&&35866!==c||a.texParameteri(c,32882,33071),1001===f.wrapS&&1001===f.wrapT||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),a.texParameteri(c,10240,t(f.magFilter)),a.texParameteri(c,10241,t(f.minFilter)),1003!==f.minFilter&&1006!==f.minFilter&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));
!(g=b.get("EXT_texture_filter_anisotropic"))||1015===f.type&&null===b.get("OES_texture_float_linear")||1016===f.type&&null===(aa||b.get("OES_texture_half_float_linear"))||!(1<f.anisotropy||d.get(f).__currentAnisotropy)||(a.texParameterf(c,g.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(f.anisotropy,e.getMaxAnisotropy())),d.get(f).__currentAnisotropy=f.anisotropy)}function ka(b,c){void 0===b.__webglInit&&(b.__webglInit=!0,c.addEventListener("dispose",r),b.__webglTexture=a.createTexture(),g.memory.textures++)}
function U(b,d,e){var g=3553;d.isDataTexture2DArray&&(g=35866);d.isDataTexture3D&&(g=32879);ka(b,d);c.activeTexture(33984+e);c.bindTexture(g,b.__webglTexture);a.pixelStorei(37440,d.flipY);a.pixelStorei(37441,d.premultiplyAlpha);a.pixelStorei(3317,d.unpackAlignment);e=aa?!1:1001!==d.wrapS||1001!==d.wrapT||1003!==d.minFilter&&1006!==d.minFilter;e=e&&!1===n(d.image);e=l(d.image,e,!1,B);var h=n(e)||aa,p=f.convert(d.format),r=f.convert(d.type),t=v(d.internalFormat,p,r);w(g,d,h);var m=d.mipmaps;if(d.isDepthTexture)t=
6402,aa?t=1015===d.type?36012:1014===d.type?33190:1020===d.type?35056:33189:1015===d.type&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),1026===d.format&&6402===t&&1012!==d.type&&1014!==d.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),d.type=1012,r=f.convert(d.type)),1027===d.format&&6402===t&&(t=34041,1020!==d.type&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),
d.type=1020,r=f.convert(d.type))),c.texImage2D(3553,0,t,e.width,e.height,0,p,r,null);else if(d.isDataTexture)if(0<m.length&&h){for(var u=0,A=m.length;u<A;u++){var x=m[u];c.texImage2D(3553,u,t,x.width,x.height,0,p,r,x.data)}d.generateMipmaps=!1;b.__maxMipLevel=m.length-1}else c.texImage2D(3553,0,t,e.width,e.height,0,p,r,e.data),b.__maxMipLevel=0;else if(d.isCompressedTexture){u=0;for(A=m.length;u<A;u++)x=m[u],1023!==d.format&&1022!==d.format?null!==p?c.compressedTexImage2D(3553,u,t,x.width,x.height,
0,x.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):c.texImage2D(3553,u,t,x.width,x.height,0,p,r,x.data);b.__maxMipLevel=m.length-1}else if(d.isDataTexture2DArray)c.texImage3D(35866,0,t,e.width,e.height,e.depth,0,p,r,e.data),b.__maxMipLevel=0;else if(d.isDataTexture3D)c.texImage3D(32879,0,t,e.width,e.height,e.depth,0,p,r,e.data),b.__maxMipLevel=0;else if(0<m.length&&h){u=0;for(A=m.length;u<A;u++)x=m[u],c.texImage2D(3553,u,t,p,r,
x);d.generateMipmaps=!1;b.__maxMipLevel=m.length-1}else c.texImage2D(3553,0,t,p,r,e),b.__maxMipLevel=0;q(d,h)&&k(g,d,e.width,e.height);b.__version=d.version;if(d.onUpdate)d.onUpdate(d)}function C(b,e,g,h){var l=f.convert(e.texture.format),n=f.convert(e.texture.type),q=v(e.texture.internalFormat,l,n);c.texImage2D(h,0,q,e.width,e.height,0,l,n,null);a.bindFramebuffer(36160,b);a.framebufferTexture2D(36160,g,h,d.get(e.texture).__webglTexture,0);a.bindFramebuffer(36160,null)}function z(b,c,d){a.bindRenderbuffer(36161,
b);if(c.depthBuffer&&!c.stencilBuffer){var e=33189;d?((d=c.depthTexture)&&d.isDepthTexture&&(1015===d.type?e=36012:1014===d.type&&(e=33190)),d=O(c),a.renderbufferStorageMultisample(36161,d,e,c.width,c.height)):a.renderbufferStorage(36161,e,c.width,c.height);a.framebufferRenderbuffer(36160,36096,36161,b)}else c.depthBuffer&&c.stencilBuffer?(d?(d=O(c),a.renderbufferStorageMultisample(36161,d,35056,c.width,c.height)):a.renderbufferStorage(36161,34041,c.width,c.height),a.framebufferRenderbuffer(36160,
33306,36161,b)):(b=f.convert(c.texture.format),e=f.convert(c.texture.type),b=v(c.texture.internalFormat,b,e),d?(d=O(c),a.renderbufferStorageMultisample(36161,d,b,c.width,c.height)):a.renderbufferStorage(36161,b,c.width,c.height));a.bindRenderbuffer(36161,null)}function O(a){return aa&&a.isWebGLMultisampleRenderTarget?Math.min(y,a.samples):0}var aa=e.isWebGL2,fa=e.maxTextures,ja=e.maxCubemapSize,B=e.maxTextureSize,y=e.maxSamples,D=new WeakMap,F,J=!1;try{J="undefined"!==typeof OffscreenCanvas&&null!==
(new OffscreenCanvas(1,1)).getContext("2d")}catch(Ld){}var H=0,G={1E3:10497,1001:33071,1002:33648},L={1003:9728,1004:9984,1005:9986,1006:9729,1007:9985,1008:9987},M=!1,N=!1;this.allocateTextureUnit=function(){var a=H;a>=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);0<a.version&&e.__version!==a.version?U(e,a,b):(c.activeTexture(33984+
b),c.bindTexture(35866,e.__webglTexture))};this.setTexture3D=function(a,b){var e=d.get(a);0<a.version&&e.__version!==a.version?U(e,a,b):(c.activeTexture(33984+b),c.bindTexture(32879,e.__webglTexture))};this.setTextureCube=E;this.setTextureCubeDynamic=x;this.setupRenderTarget=function(b){var e=d.get(b),h=d.get(b.texture);b.addEventListener("dispose",u);h.__webglTexture=a.createTexture();g.memory.textures++;var l=!0===b.isWebGLCubeRenderTarget,p=!0===b.isWebGLMultisampleRenderTarget,r=n(b)||aa;!aa||
1022!==b.texture.format||1015!==b.texture.type&&1016!==b.texture.type||(b.texture.format=1023,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead."));if(l)for(e.__webglFramebuffer=[],p=0;6>p;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;c<t.length;c++)r.set(b[c],t[c]);for(b=0;b<a.removed.length;b++){c=a.removed[b];var d=r.get(c);d&&(d.dispatchEvent({type:"disconnected",data:c}),r.delete(c))}for(b=0;b<a.added.length;b++)c=a.added[b],(d=r.get(c))&&d.dispatchEvent({type:"connected",data:c})}function g(a,b){null===b?a.matrixWorld.copy(a.matrix):a.matrixWorld.multiplyMatrices(b.matrixWorld,a.matrix);a.matrixWorldInverse.getInverse(a.matrixWorld)}var h=this,l=null,n=1,q=null,k="local-floor",v=
null,t=[],r=new Map,u=new P;u.layers.enable(1);u.viewport=new Y;var A=new P;A.layers.enable(2);A.viewport=new Y;var E=[u,A],x=new Ne;x.layers.enable(1);x.layers.enable(2);var w=null,ka=null;this.isPresenting=this.enabled=!1;this.getController=function(a){var b=t[a];void 0===b&&(b=new Oe,t[a]=b);return b.getTargetRaySpace()};this.getControllerGrip=function(a){var b=t[a];void 0===b&&(b=new Oe,t[a]=b);return b.getGripSpace()};this.setFramebufferScaleFactor=function(a){n=a;!0===h.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")};
this.setReferenceSpaceType=function(a){k=a;!0===h.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")};this.getReferenceSpace=function(){return q};this.getSession=function(){return l};this.setSession=function(a){l=a;null!==l&&(l.addEventListener("select",c),l.addEventListener("selectstart",c),l.addEventListener("selectend",c),l.addEventListener("squeeze",c),l.addEventListener("squeezestart",c),l.addEventListener("squeezeend",c),l.addEventListener("end",
d),a=b.getContextAttributes(),!0!==a.xrCompatible&&b.makeXRCompatible(),a=new XRWebGLLayer(l,b,{antialias:a.antialias,alpha:a.alpha,depth:a.depth,stencil:a.stencil,framebufferScaleFactor:n}),l.updateRenderState({baseLayer:a}),l.requestReferenceSpace(k).then(e),l.addEventListener("inputsourceschange",f))};var U=new m,C=new m;this.getCamera=function(a){x.near=A.near=u.near=a.near;x.far=A.far=u.far=a.far;if(w!==x.near||ka!==x.far)l.updateRenderState({depthNear:x.near,depthFar:x.far}),w=x.near,ka=x.far;
var b=a.parent,c=x.cameras;g(x,b);for(var d=0;d<c.length;d++)g(c[d],b);a.matrixWorld.copy(x.matrixWorld);a=a.children;b=0;for(d=a.length;b<d;b++)a[b].updateMatrixWorld(!0);if(2===c.length){U.setFromMatrixPosition(u.matrixWorld);C.setFromMatrixPosition(A.matrixWorld);c=U.distanceTo(C);var e=u.projectionMatrix.elements,f=A.projectionMatrix.elements,h=e[14]/(e[10]-1);a=e[14]/(e[10]+1);b=(e[9]+1)/e[5];d=(e[9]-1)/e[5];var n=(e[8]-1)/e[0],q=(f[8]+1)/f[0];f=h*n;e=h*q;q=c/(-n+q);n=q*-n;u.matrixWorld.decompose(x.position,
x.quaternion,x.scale);x.translateX(n);x.translateZ(q);x.matrixWorld.compose(x.position,x.quaternion,x.scale);x.matrixWorldInverse.getInverse(x.matrixWorld);h+=q;q=a+q;x.projectionMatrix.makePerspective(f-n,e+(c-n),b*a/q*h,d*a/q*h,h,q)}else x.projectionMatrix.copy(u.projectionMatrix);return x};var z=null,O=new yh;O.setAnimationLoop(function(b,c){v=c.getViewerPose(q);if(null!==v){var d=v.views,e=l.renderState.baseLayer;a.setFramebuffer(e.framebuffer);var f=!1;d.length!==x.cameras.length&&(x.cameras.length=
0,f=!0);for(var g=0;g<d.length;g++){var h=d[g],n=e.getViewport(h),k=E[g];k.matrix.fromArray(h.transform.matrix);k.projectionMatrix.fromArray(h.projectionMatrix);k.viewport.set(n.x,n.y,n.width,n.height);0===g&&x.matrix.copy(k.matrix);!0===f&&x.cameras.push(k)}}d=l.inputSources;for(e=0;e<t.length;e++)t[e].update(d[e],c,q);z&&z(b,c)});this.setAnimationLoop=function(a){z=a};this.dispose=function(){}}function Ck(a){function b(b,c,f){b.opacity.value=c.opacity;c.color&&b.diffuse.value.copy(c.color);c.emissive&&
b.emissive.value.copy(c.emissive).multiplyScalar(c.emissiveIntensity);c.map&&(b.map.value=c.map);c.alphaMap&&(b.alphaMap.value=c.alphaMap);c.specularMap&&(b.specularMap.value=c.specularMap);if(f=c.envMap||f)b.envMap.value=f,b.flipEnvMap.value=f.isCubeTexture?-1:1,b.reflectivity.value=c.reflectivity,b.refractionRatio.value=c.refractionRatio,b.maxMipLevel.value=a.get(f).__maxMipLevel;c.lightMap&&(b.lightMap.value=c.lightMap,b.lightMapIntensity.value=c.lightMapIntensity);c.aoMap&&(b.aoMap.value=c.aoMap,
b.aoMapIntensity.value=c.aoMapIntensity);if(c.map)var d=c.map;else c.specularMap?d=c.specularMap:c.displacementMap?d=c.displacementMap:c.normalMap?d=c.normalMap:c.bumpMap?d=c.bumpMap:c.roughnessMap?d=c.roughnessMap:c.metalnessMap?d=c.metalnessMap:c.alphaMap?d=c.alphaMap:c.emissiveMap&&(d=c.emissiveMap);void 0!==d&&(d.isWebGLRenderTarget&&(d=d.texture),!0===d.matrixAutoUpdate&&d.updateMatrix(),b.uvTransform.value.copy(d.matrix));if(c.aoMap)var e=c.aoMap;else c.lightMap&&(e=c.lightMap);void 0!==e&&
(e.isWebGLRenderTarget&&(e=e.texture),!0===e.matrixAutoUpdate&&e.updateMatrix(),b.uv2Transform.value.copy(e.matrix))}function c(a,b,c){a.roughness.value=b.roughness;a.metalness.value=b.metalness;b.roughnessMap&&(a.roughnessMap.value=b.roughnessMap);b.metalnessMap&&(a.metalnessMap.value=b.metalnessMap);b.emissiveMap&&(a.emissiveMap.value=b.emissiveMap);b.bumpMap&&(a.bumpMap.value=b.bumpMap,a.bumpScale.value=b.bumpScale,1===b.side&&(a.bumpScale.value*=-1));b.normalMap&&(a.normalMap.value=b.normalMap,
a.normalScale.value.copy(b.normalScale),1===b.side&&a.normalScale.value.negate());b.displacementMap&&(a.displacementMap.value=b.displacementMap,a.displacementScale.value=b.displacementScale,a.displacementBias.value=b.displacementBias);if(b.envMap||c)a.envMapIntensity.value=b.envMapIntensity}return{refreshFogUniforms:function(a,b){a.fogColor.value.copy(b.color);b.isFog?(a.fogNear.value=b.near,a.fogFar.value=b.far):b.isFogExp2&&(a.fogDensity.value=b.density)},refreshMaterialUniforms:function(a,e,f,
g,h){if(e.isMeshBasicMaterial)b(a,e);else if(e.isMeshLambertMaterial)b(a,e),e.emissiveMap&&(a.emissiveMap.value=e.emissiveMap);else if(e.isMeshToonMaterial)b(a,e),a.specular.value.copy(e.specular),a.shininess.value=Math.max(e.shininess,1E-4),e.gradientMap&&(a.gradientMap.value=e.gradientMap),e.emissiveMap&&(a.emissiveMap.value=e.emissiveMap),e.bumpMap&&(a.bumpMap.value=e.bumpMap,a.bumpScale.value=e.bumpScale,1===e.side&&(a.bumpScale.value*=-1)),e.normalMap&&(a.normalMap.value=e.normalMap,a.normalScale.value.copy(e.normalScale),
1===e.side&&a.normalScale.value.negate()),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias);else if(e.isMeshPhongMaterial)b(a,e),a.specular.value.copy(e.specular),a.shininess.value=Math.max(e.shininess,1E-4),e.emissiveMap&&(a.emissiveMap.value=e.emissiveMap),e.bumpMap&&(a.bumpMap.value=e.bumpMap,a.bumpScale.value=e.bumpScale,1===e.side&&(a.bumpScale.value*=-1)),e.normalMap&&(a.normalMap.value=e.normalMap,
a.normalScale.value.copy(e.normalScale),1===e.side&&a.normalScale.value.negate()),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias);else if(e.isMeshStandardMaterial)b(a,e,f),e.isMeshPhysicalMaterial?(c(a,e,f),a.reflectivity.value=e.reflectivity,a.clearcoat.value=e.clearcoat,a.clearcoatRoughness.value=e.clearcoatRoughness,e.sheen&&a.sheen.value.copy(e.sheen),e.clearcoatMap&&(a.clearcoatMap.value=
e.clearcoatMap),e.clearcoatRoughnessMap&&(a.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(a.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),a.clearcoatNormalMap.value=e.clearcoatNormalMap,1===e.side&&a.clearcoatNormalScale.value.negate()),a.transparency.value=e.transparency):c(a,e,f);else if(e.isMeshMatcapMaterial)b(a,e),e.matcap&&(a.matcap.value=e.matcap),e.bumpMap&&(a.bumpMap.value=e.bumpMap,a.bumpScale.value=e.bumpScale,1===e.side&&(a.bumpScale.value*=-1)),
e.normalMap&&(a.normalMap.value=e.normalMap,a.normalScale.value.copy(e.normalScale),1===e.side&&a.normalScale.value.negate()),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias);else if(e.isMeshDepthMaterial)b(a,e),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias);else if(e.isMeshDistanceMaterial)b(a,
e),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias),a.referencePosition.value.copy(e.referencePosition),a.nearDistance.value=e.nearDistance,a.farDistance.value=e.farDistance;else if(e.isMeshNormalMaterial)b(a,e),e.bumpMap&&(a.bumpMap.value=e.bumpMap,a.bumpScale.value=e.bumpScale,1===e.side&&(a.bumpScale.value*=-1)),e.normalMap&&(a.normalMap.value=e.normalMap,a.normalScale.value.copy(e.normalScale),
1===e.side&&a.normalScale.value.negate()),e.displacementMap&&(a.displacementMap.value=e.displacementMap,a.displacementScale.value=e.displacementScale,a.displacementBias.value=e.displacementBias);else if(e.isLineBasicMaterial)a.diffuse.value.copy(e.color),a.opacity.value=e.opacity,e.isLineDashedMaterial&&(a.dashSize.value=e.dashSize,a.totalSize.value=e.dashSize+e.gapSize,a.scale.value=e.scale);else if(e.isPointsMaterial){a.diffuse.value.copy(e.color);a.opacity.value=e.opacity;a.size.value=e.size*g;
a.scale.value=.5*h;e.map&&(a.map.value=e.map);e.alphaMap&&(a.alphaMap.value=e.alphaMap);if(e.map)var d=e.map;else e.alphaMap&&(d=e.alphaMap);void 0!==d&&(!0===d.matrixAutoUpdate&&d.updateMatrix(),a.uvTransform.value.copy(d.matrix))}else if(e.isSpriteMaterial){a.diffuse.value.copy(e.color);a.opacity.value=e.opacity;a.rotation.value=e.rotation;e.map&&(a.map.value=e.map);e.alphaMap&&(a.alphaMap.value=e.alphaMap);if(e.map)var n=e.map;else e.alphaMap&&(n=e.alphaMap);void 0!==n&&(!0===n.matrixAutoUpdate&&
n.updateMatrix(),a.uvTransform.value.copy(n.matrix))}else e.isShadowMaterial?(a.color.value.copy(e.color),a.opacity.value=e.opacity):e.isShaderMaterial&&(e.uniformsNeedUpdate=!1)}}}function Md(a){var b;function c(a,b){for(var c=0;c<a.length;c++){var d=r.getContext(a[c],b);if(null!==d)return d}return null}function d(){sa=new rj(I);Ga=new pj(I,sa,a);!1===Ga.isWebGL2&&(sa.get("WEBGL_depth_texture"),sa.get("OES_texture_float"),sa.get("OES_texture_half_float"),sa.get("OES_texture_half_float_linear"),sa.get("OES_standard_derivatives"),
sa.get("OES_element_index_uint"),sa.get("ANGLE_instanced_arrays"));sa.get("OES_texture_float_linear");ra=new Wh(I,sa,Ga);V=new Ak(I,sa,Ga);V.scissor(R.copy(ha).multiplyScalar(da).floor());V.viewport(T.copy(Z).multiplyScalar(da).floor());ca=new uj(I);P=new qk;Q=new Bk(I,sa,V,P,Ga,ra,ca);na=new mj(I,Ga);wa=new sj(I,na,ca);qa=new xj(I,wa,na,ca);za=new wj(I);ta=new pk(B,sa,Ga);ya=new Ck(P);xa=new tk;va=new zk;pa=new nj(B,V,qa,ka);Ba=new oj(I,sa,ca,Ga);Da=new tj(I,sa,ca,Ga);ca.programs=ta.programs;B.capabilities=
Ga;B.extensions=sa;B.properties=P;B.renderLists=xa;B.state=V;B.info=ca}function e(a){a.preventDefault();console.log("THREE.WebGLRenderer: Context Lost.");D=!0}function f(){console.log("THREE.WebGLRenderer: Context Restored.");D=!1;d()}function g(a){a=a.target;a.removeEventListener("dispose",g);h(a);P.remove(a)}function h(a){var b=P.get(a).program;a.program=void 0;void 0!==b&&ta.releaseProgram(b)}function l(a,b){a.render(function(a){B.renderBufferImmediate(a,b)})}function n(a,b,c,d){if(!1!==a.visible){if(a.layers.test(b.layers))if(a.isGroup)c=
a.renderOrder;else if(a.isLOD)!0===a.autoUpdate&&a.update(b);else if(a.isLight)aa.pushLight(a),a.castShadow&&aa.pushShadow(a);else if(a.isSprite){if(!a.frustumCulled||mg.intersectsSprite(a)){d&&Ib.setFromMatrixPosition(a.matrixWorld).applyMatrix4(Kd);var e=qa.update(a),f=a.material;f.visible&&O.push(a,e,f,c,Ib.z,null)}}else if(a.isImmediateRenderObject)d&&Ib.setFromMatrixPosition(a.matrixWorld).applyMatrix4(Kd),O.push(a,null,a.material,c,Ib.z,null);else if(a.isMesh||a.isLine||a.isPoints)if(a.isSkinnedMesh&&
a.skeleton.frame!==ca.render.frame&&(a.skeleton.update(),a.skeleton.frame=ca.render.frame),!a.frustumCulled||mg.intersectsObject(a))if(d&&Ib.setFromMatrixPosition(a.matrixWorld).applyMatrix4(Kd),e=qa.update(a),f=a.material,Array.isArray(f))for(var g=e.groups,h=0,l=g.length;h<l;h++){var q=g[h],k=f[q.materialIndex];k&&k.visible&&O.push(a,e,k,c,Ib.z,q)}else f.visible&&O.push(a,e,f,c,Ib.z,null);a=a.children;e=0;for(f=a.length;e<f;e++)n(a[e],b,c,d)}}function q(a,b,c){for(var d=!0===b.isScene?b.overrideMaterial:
null,e=0,f=a.length;e<f;e++){var g=a[e],h=g.object,l=g.geometry,n=null===d?g.material:d;g=g.group;if(c.isArrayCamera){X=c;for(var q=c.cameras,p=0,r=q.length;p<r;p++){var v=q[p];h.layers.test(v.layers)&&(V.viewport(T.copy(v.viewport)),aa.setupLights(v),k(h,b,v,l,n,g))}}else X=null,k(h,b,c,l,n,g)}}function k(a,c,d,e,f,g){a.onBeforeRender(B,c,d,e,f,g);aa=va.get(c,X||d);a.modelViewMatrix.multiplyMatrices(d.matrixWorldInverse,a.matrixWorld);a.normalMatrix.getNormalMatrix(a.modelViewMatrix);if(a.isImmediateRenderObject){var h=
t(d,c,f,a);V.setMaterial(f);Me=b=null;S=!1;l(a,h)}else B.renderBufferDirect(d,c,e,f,a,g);a.onAfterRender(B,c,d,e,f,g);aa=va.get(c,X||d)}function v(a,b,c){!0!==b.isScene&&(b=oa);var d=P.get(a),e=aa.state.lights,f=e.state.version;c=ta.getParameters(a,e.state,aa.state.shadowsArray,b,Va.numPlanes,Va.numIntersection,c);var l=ta.getProgramCacheKey(c),n=d.program,q=!0;if(void 0===n)a.addEventListener("dispose",g);else if(n.cacheKey!==l)h(a);else{if(d.lightsStateVersion!==f)d.lightsStateVersion=f;else if(void 0!==
c.shaderID)return;q=!1}q&&(n=ta.acquireProgram(c,l),d.program=n,d.uniforms=c.uniforms,d.outputEncoding=c.outputEncoding,a.program=n);c=n.getAttributes();if(a.morphTargets)for(l=a.numSupportedMorphTargets=0;l<B.maxMorphTargets;l++)0<=c["morphTarget"+l]&&a.numSupportedMorphTargets++;if(a.morphNormals)for(l=a.numSupportedMorphNormals=0;l<B.maxMorphNormals;l++)0<=c["morphNormal"+l]&&a.numSupportedMorphNormals++;c=d.uniforms;if(!a.isShaderMaterial&&!a.isRawShaderMaterial||!0===a.clipping)d.numClippingPlanes=
Va.numPlanes,d.numIntersection=Va.numIntersection,c.clippingPlanes=Va.uniform;d.environment=a.isMeshStandardMaterial?b.environment:null;d.fog=b.fog;d.needsLights=a.isMeshLambertMaterial||a.isMeshToonMaterial||a.isMeshPhongMaterial||a.isMeshStandardMaterial||a.isShadowMaterial||a.isShaderMaterial&&!0===a.lights;d.lightsStateVersion=f;d.needsLights&&(c.ambientLightColor.value=e.state.ambient,c.lightProbe.value=e.state.probe,c.directionalLights.value=e.state.directional,c.directionalLightShadows.value=
e.state.directionalShadow,c.spotLights.value=e.state.spot,c.spotLightShadows.value=e.state.spotShadow,c.rectAreaLights.value=e.state.rectArea,c.pointLights.value=e.state.point,c.pointLightShadows.value=e.state.pointShadow,c.hemisphereLights.value=e.state.hemi,c.directionalShadowMap.value=e.state.directionalShadowMap,c.directionalShadowMatrix.value=e.state.directionalShadowMatrix,c.spotShadowMap.value=e.state.spotShadowMap,c.spotShadowMatrix.value=e.state.spotShadowMatrix,c.pointShadowMap.value=e.state.pointShadowMap,
c.pointShadowMatrix.value=e.state.pointShadowMatrix);a=d.program.getUniforms();a=Fb.seqWithValue(a.seq,c);d.uniformsList=a}function t(a,b,c,d){!0!==b.isScene&&(b=oa);Q.resetTextureUnits();var e=b.fog,f=c.isMeshStandardMaterial?b.environment:null,g=null===G?B.outputEncoding:G.texture.encoding,h=P.get(c),l=aa.state.lights;!0!==Le||!0!==ng&&a===W||Va.setState(c.clippingPlanes,c.clipIntersection,c.clipShadows,a,h,a===W&&c.id===N);c.version===h.__version?void 0===h.program?v(c,b,d):c.fog&&h.fog!==e?v(c,
b,d):h.environment!==f?v(c,b,d):h.needsLights&&h.lightsStateVersion!==l.state.version?v(c,b,d):void 0===h.numClippingPlanes||h.numClippingPlanes===Va.numPlanes&&h.numIntersection===Va.numIntersection?h.outputEncoding!==g&&v(c,b,d):v(c,b,d):(v(c,b,d),h.__version=c.version);var n=!1,q=!1,k=!1;b=h.program;g=b.getUniforms();l=h.uniforms;V.useProgram(b.program)&&(k=q=n=!0);c.id!==N&&(N=c.id,q=!0);if(n||W!==a){g.setValue(I,"projectionMatrix",a.projectionMatrix);Ga.logarithmicDepthBuffer&&g.setValue(I,"logDepthBufFC",
2/(Math.log(a.far+1)/Math.LN2));W!==a&&(W=a,k=q=!0);if(c.isShaderMaterial||c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshStandardMaterial||c.envMap)n=g.map.cameraPosition,void 0!==n&&n.setValue(I,Ib.setFromMatrixPosition(a.matrixWorld));(c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshLambertMaterial||c.isMeshBasicMaterial||c.isMeshStandardMaterial||c.isShaderMaterial)&&g.setValue(I,"isOrthographic",!0===a.isOrthographicCamera);(c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshLambertMaterial||
c.isMeshBasicMaterial||c.isMeshStandardMaterial||c.isShaderMaterial||c.isShadowMaterial||c.skinning)&&g.setValue(I,"viewMatrix",a.matrixWorldInverse)}if(c.skinning&&(g.setOptional(I,d,"bindMatrix"),g.setOptional(I,d,"bindMatrixInverse"),a=d.skeleton))if(n=a.bones,Ga.floatVertexTextures){if(void 0===a.boneTexture){n=Math.sqrt(4*n.length);n=K.ceilPowerOfTwo(n);n=Math.max(n,4);var p=new Float32Array(n*n*4);p.set(a.boneMatrices);var r=new $b(p,n,n,1023,1015);a.boneMatrices=p;a.boneTexture=r;a.boneTextureSize=
n}g.setValue(I,"boneTexture",a.boneTexture,Q);g.setValue(I,"boneTextureSize",a.boneTextureSize)}else g.setOptional(I,a,"boneMatrices");if(q||h.receiveShadow!==d.receiveShadow)h.receiveShadow=d.receiveShadow,g.setValue(I,"receiveShadow",d.receiveShadow);q&&(g.setValue(I,"toneMappingExposure",B.toneMappingExposure),h.needsLights&&(q=k,l.ambientLightColor.needsUpdate=q,l.lightProbe.needsUpdate=q,l.directionalLights.needsUpdate=q,l.directionalLightShadows.needsUpdate=q,l.pointLights.needsUpdate=q,l.pointLightShadows.needsUpdate=
q,l.spotLights.needsUpdate=q,l.spotLightShadows.needsUpdate=q,l.rectAreaLights.needsUpdate=q,l.hemisphereLights.needsUpdate=q),e&&c.fog&&ya.refreshFogUniforms(l,e),ya.refreshMaterialUniforms(l,c,f,da,ea),void 0!==l.ltc_1&&(l.ltc_1.value=y.LTC_1),void 0!==l.ltc_2&&(l.ltc_2.value=y.LTC_2),Fb.upload(I,h.uniformsList,l,Q));c.isShaderMaterial&&!0===c.uniformsNeedUpdate&&(Fb.upload(I,h.uniformsList,l,Q),c.uniformsNeedUpdate=!1);c.isSpriteMaterial&&g.setValue(I,"center",d.center);g.setValue(I,"modelViewMatrix",
d.modelViewMatrix);g.setValue(I,"normalMatrix",d.normalMatrix);g.setValue(I,"modelMatrix",d.matrixWorld);return b}a=a||{};var r=void 0!==a.canvas?a.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),u=void 0!==a.context?a.context:null,A=void 0!==a.alpha?a.alpha:!1,E=void 0!==a.depth?a.depth:!0,x=void 0!==a.stencil?a.stencil:!0,Ea=void 0!==a.antialias?a.antialias:!1,ka=void 0!==a.premultipliedAlpha?a.premultipliedAlpha:!0,U=void 0!==a.preserveDrawingBuffer?a.preserveDrawingBuffer:
!1,C=void 0!==a.powerPreference?a.powerPreference:"default",z=void 0!==a.failIfMajorPerformanceCaveat?a.failIfMajorPerformanceCaveat:!1,O=null,aa=null;this.domElement=r;this.debug={checkShaderErrors:!0};this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;this.clippingPlanes=[];this.localClippingEnabled=!1;this.gammaFactor=2;this.outputEncoding=3E3;this.physicallyCorrectLights=!1;this.toneMapping=0;this.toneMappingExposure=1;this.maxMorphTargets=8;this.maxMorphNormals=
4;var B=this,D=!1,F=null,J=0,H=0,G=null,L=null,N=-1;var Me=b=null;var S=!1;var W=null,X=null,T=new Y,R=new Y,ba=null,Wa=r.width,ea=r.height,da=1,ia=null,la=null,Z=new Y(0,0,Wa,ea),ha=new Y(0,0,Wa,ea),ma=!1,mg=new Fc,Va=new qj,Le=!1,ng=!1,Kd=new M,Ib=new m,oa={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},I=u;try{u={alpha:A,depth:E,stencil:x,antialias:Ea,premultipliedAlpha:ka,preserveDrawingBuffer:U,powerPreference:C,failIfMajorPerformanceCaveat:z};r.addEventListener("webglcontextlost",
e,!1);r.addEventListener("webglcontextrestored",f,!1);if(null===I&&(A=["webgl2","webgl","experimental-webgl"],!0===B.isWebGL1Renderer&&A.shift(),I=c(A,u),null===I)){if(c(A))throw Error("Error creating WebGL context with your selected attributes.");throw Error("Error creating WebGL context.");}void 0===I.getShaderPrecisionFormat&&(I.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Yh){throw console.error("THREE.WebGLRenderer: "+Yh.message),Yh;}var sa,Ga,V,ca,P,
Q,na,wa,qa,ta,ya,xa,va,pa,za,Ba,Da,ra;d();var ua=new Xh(B,I);this.xr=ua;var Fa=new Vh(B,qa,Ga.maxTextureSize);this.shadowMap=Fa;this.getContext=function(){return I};this.getContextAttributes=function(){return I.getContextAttributes()};this.forceContextLoss=function(){var a=sa.get("WEBGL_lose_context");a&&a.loseContext()};this.forceContextRestore=function(){var a=sa.get("WEBGL_lose_context");a&&a.restoreContext()};this.getPixelRatio=function(){return da};this.setPixelRatio=function(a){void 0!==a&&
(da=a,this.setSize(Wa,ea,!1))};this.getSize=function(a){void 0===a&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),a=new w);return a.set(Wa,ea)};this.setSize=function(a,b,c){ua.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Wa=a,ea=b,r.width=Math.floor(a*da),r.height=Math.floor(b*da),!1!==c&&(r.style.width=a+"px",r.style.height=b+"px"),this.setViewport(0,0,a,b))};this.getDrawingBufferSize=function(a){void 0===a&&
(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),a=new w);return a.set(Wa*da,ea*da).floor()};this.setDrawingBufferSize=function(a,b,c){Wa=a;ea=b;da=c;r.width=Math.floor(a*c);r.height=Math.floor(b*c);this.setViewport(0,0,a,b)};this.getCurrentViewport=function(a){void 0===a&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),a=new Y);return a.copy(T)};this.getViewport=function(a){return a.copy(Z)};this.setViewport=
function(a,b,c,d){a.isVector4?Z.set(a.x,a.y,a.z,a.w):Z.set(a,b,c,d);V.viewport(T.copy(Z).multiplyScalar(da).floor())};this.getScissor=function(a){return a.copy(ha)};this.setScissor=function(a,b,c,d){a.isVector4?ha.set(a.x,a.y,a.z,a.w):ha.set(a,b,c,d);V.scissor(R.copy(ha).multiplyScalar(da).floor())};this.getScissorTest=function(){return ma};this.setScissorTest=function(a){V.setScissorTest(ma=a)};this.setOpaqueSort=function(a){ia=a};this.setTransparentSort=function(a){la=a};this.getClearColor=function(){return pa.getClearColor()};
this.setClearColor=function(){pa.setClearColor.apply(pa,arguments)};this.getClearAlpha=function(){return pa.getClearAlpha()};this.setClearAlpha=function(){pa.setClearAlpha.apply(pa,arguments)};this.clear=function(a,b,c){var d=0;if(void 0===a||a)d|=16384;if(void 0===b||b)d|=256;if(void 0===c||c)d|=1024;I.clear(d)};this.clearColor=function(){this.clear(!0,!1,!1)};this.clearDepth=function(){this.clear(!1,!0,!1)};this.clearStencil=function(){this.clear(!1,!1,!0)};this.dispose=function(){r.removeEventListener("webglcontextlost",
e,!1);r.removeEventListener("webglcontextrestored",f,!1);xa.dispose();va.dispose();P.dispose();qa.dispose();ua.dispose();Aa.stop()};this.renderBufferImmediate=function(a,b){V.initAttributes();var c=P.get(a);a.hasPositions&&!c.position&&(c.position=I.createBuffer());a.hasNormals&&!c.normal&&(c.normal=I.createBuffer());a.hasUvs&&!c.uv&&(c.uv=I.createBuffer());a.hasColors&&!c.color&&(c.color=I.createBuffer());b=b.getAttributes();a.hasPositions&&(I.bindBuffer(34962,c.position),I.bufferData(34962,a.positionArray,
35048),V.enableAttribute(b.position),I.vertexAttribPointer(b.position,3,5126,!1,0,0));a.hasNormals&&(I.bindBuffer(34962,c.normal),I.bufferData(34962,a.normalArray,35048),V.enableAttribute(b.normal),I.vertexAttribPointer(b.normal,3,5126,!1,0,0));a.hasUvs&&(I.bindBuffer(34962,c.uv),I.bufferData(34962,a.uvArray,35048),V.enableAttribute(b.uv),I.vertexAttribPointer(b.uv,2,5126,!1,0,0));a.hasColors&&(I.bindBuffer(34962,c.color),I.bufferData(34962,a.colorArray,35048),V.enableAttribute(b.color),I.vertexAttribPointer(b.color,
3,5126,!1,0,0));V.disableUnusedAttributes();I.drawArrays(4,0,a.count);a.count=0};this.renderBufferDirect=function(a,c,d,e,f,g){null===c&&(c=oa);var h=f.isMesh&&0>f.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;e<d.length;e++){var f=d[e];!1===c.has(f)&&(v(f,a,b),c.set(f))}else!1===c.has(d)&&(v(d,a,b),c.set(d))})};var Ca=null,Aa=new yh;Aa.setAnimationLoop(function(a){ua.isPresenting||Ca&&Ca(a)});"undefined"!==typeof window&&Aa.setContext(window);this.setAnimationLoop=function(a){Ca=a;ua.setAnimationLoop(a);Aa.start()};this.render=function(a,c,d,e){if(void 0!==d){console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.");
var f=d}if(void 0!==e){console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.");var g=e}if(void 0!==c&&!0!==c.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!0!==D){Me=b=null;S=!1;N=-1;W=null;!0===a.autoUpdate&&a.updateMatrixWorld();null===c.parent&&c.updateMatrixWorld();!0===ua.enabled&&!0===ua.isPresenting&&(c=ua.getCamera(c));if(!0===a.isScene)a.onBeforeRender(B,a,c,f||G);aa=va.get(a,
c);aa.init();Kd.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse);mg.setFromProjectionMatrix(Kd);ng=this.localClippingEnabled;Le=Va.init(this.clippingPlanes,ng,c);O=xa.get(a,c);O.init();n(a,c,0,B.sortObjects);O.finish();!0===B.sortObjects&&O.sort(ia,la);!0===Le&&Va.beginShadows();Fa.render(aa.state.shadowsArray,a,c);aa.setupLights(c);!0===Le&&Va.endShadows();!0===this.info.autoReset&&this.info.reset();void 0!==f&&this.setRenderTarget(f);pa.render(O,a,c,g);d=O.opaque;e=O.transparent;0<d.length&&
q(d,a,c);0<e.length&&q(e,a,c);if(!0===a.isScene)a.onAfterRender(B,a,c);null!==G&&(Q.updateRenderTargetMipmap(G),Q.updateMultisampleRenderTarget(G));V.buffers.depth.setTest(!0);V.buffers.depth.setMask(!0);V.buffers.color.setMask(!0);V.setPolygonOffset(!1);aa=O=null}};this.setFramebuffer=function(a){F!==a&&null===G&&I.bindFramebuffer(36160,a);F=a};this.getActiveCubeFace=function(){return J};this.getActiveMipmapLevel=function(){return H};this.getRenderTarget=function(){return G};this.setRenderTarget=
function(a,b,c){G=a;J=b;H=c;a&&void 0===P.get(a).__webglFramebuffer&&Q.setupRenderTarget(a);var d=F,e=!1;a?(d=P.get(a).__webglFramebuffer,a.isWebGLCubeRenderTarget?(d=d[b||0],e=!0):d=a.isWebGLMultisampleRenderTarget?P.get(a).__webglMultisampledFramebuffer:d,T.copy(a.viewport),R.copy(a.scissor),ba=a.scissorTest):(T.copy(Z).multiplyScalar(da).floor(),R.copy(ha).multiplyScalar(da).floor(),ba=ma);L!==d&&(I.bindFramebuffer(36160,d),L=d);V.viewport(T);V.scissor(R);V.setScissorTest(ba);e&&(a=P.get(a.texture),
I.framebufferTexture2D(36160,36064,34069+(b||0),a.__webglTexture,c||0))};this.readRenderTargetPixels=function(a,b,c,d,e,f,g){if(a&&a.isWebGLRenderTarget){var h=P.get(a).__webglFramebuffer;a.isWebGLCubeRenderTarget&&void 0!==g&&(h=h[g]);if(h){g=!1;h!==L&&(I.bindFramebuffer(36160,h),g=!0);try{var l=a.texture,n=l.format,q=l.type;1023!==n&&ra.convert(n)!==I.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===
q||ra.convert(q)===I.getParameter(35738)||1015===q&&(Ga.isWebGL2||sa.get("OES_texture_float")||sa.get("WEBGL_color_buffer_float"))||1016===q&&(Ga.isWebGL2?sa.get("EXT_color_buffer_float"):sa.get("EXT_color_buffer_half_float"))?36053===I.checkFramebufferStatus(36160)?0<=b&&b<=a.width-d&&0<=c&&c<=a.height-e&&I.readPixels(b,c,d,e,ra.convert(n),ra.convert(q),f):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{g&&
I.bindFramebuffer(36160,L)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")};this.copyFramebufferToTexture=function(a,b,c){void 0===c&&(c=0);var d=Math.pow(2,-c),e=Math.floor(b.image.width*d);d=Math.floor(b.image.height*d);var f=ra.convert(b.format);Q.setTexture2D(b,0);I.copyTexImage2D(3553,c,f,a.x,a.y,e,d,0);V.unbindTexture()};this.copyTextureToTexture=function(a,b,c,d){void 0===d&&(d=0);var e=b.image.width,f=b.image.height,g=ra.convert(c.format),
h=ra.convert(c.type);Q.setTexture2D(c,0);b.isDataTexture?I.texSubImage2D(3553,d,a.x,a.y,e,f,g,h,b.image.data):b.isCompressedTexture?I.compressedTexSubImage2D(3553,d,a.x,a.y,b.mipmaps[0].width,b.mipmaps[0].height,g,b.mipmaps[0].data):I.texSubImage2D(3553,d,a.x,a.y,g,h,b.image);0===d&&c.generateMipmaps&&I.generateMipmap(3553);V.unbindTexture()};this.initTexture=function(a){Q.setTexture2D(a,0);V.unbindTexture()};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",
{detail:this}))}function og(a){Md.call(this,a)}function Pe(a,b){this.name="";this.color=new D(a);this.density=void 0!==b?b:2.5E-4}function Qe(a,b,c){this.name="";this.color=new D(a);this.near=void 0!==b?b:1;this.far=void 0!==c?c:1E3}function Ja(a,b){this.array=a;this.stride=b;this.count=void 0!==a?a.length/b:0;this.usage=35044;this.updateRange={offset:0,count:-1};this.version=0;this.uuid=K.generateUUID()}function Jb(a,b,c,d){this.name="";this.data=a;this.itemSize=b;this.offset=c;this.normalized=!0===
d}function Kb(a){G.call(this);this.type="SpriteMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.rotation=0;this.transparent=this.sizeAttenuation=!0;this.setValues(a)}function Nd(a){z.call(this);this.type="Sprite";if(void 0===Kc){Kc=new F;var b=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);b=new Ja(b,5);Kc.setIndex([0,1,2,0,2,3]);Kc.setAttribute("position",new Jb(b,3,0,!1));Kc.setAttribute("uv",new Jb(b,2,3,!1))}this.geometry=Kc;this.material=void 0!==
a?a:new Kb;this.center=new w(.5,.5)}function Re(a,b,c,d,e,f){Lc.subVectors(a,c).addScalar(.5).multiply(d);void 0!==e?(Od.x=f*Lc.x-e*Lc.y,Od.y=e*Lc.x+f*Lc.y):Od.copy(Lc);a.copy(b);a.x+=Od.x;a.y+=Od.y;a.applyMatrix4(Zh)}function Pd(){z.call(this);this._currentLevel=0;this.type="LOD";Object.defineProperties(this,{levels:{enumerable:!0,value:[]}});this.autoUpdate=!0}function Se(a,b){a&&a.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");
X.call(this,a,b);this.type="SkinnedMesh";this.bindMode="attached";this.bindMatrix=new M;this.bindMatrixInverse=new M}function Te(a,b){a=a||[];this.bones=a.slice(0);this.boneMatrices=new Float32Array(16*this.bones.length);this.frame=-1;if(void 0===b)this.calculateInverses();else if(this.bones.length===b.length)this.boneInverses=b.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],a=0,b=this.bones.length;a<b;a++)this.boneInverses.push(new M)}function pg(){z.call(this);
this.type="Bone"}function Ue(a,b,c){X.call(this,a,b);this.instanceMatrix=new H(new Float32Array(16*c),16);this.count=c;this.frustumCulled=!1}function la(a){G.call(this);this.type="LineBasicMaterial";this.color=new D(16777215);this.linewidth=1;this.linejoin=this.linecap="round";this.morphTargets=!1;this.setValues(a)}function Ka(a,b,c){1===c&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.");z.call(this);this.type="Line";this.geometry=void 0!==
a?a:new F;this.material=void 0!==b?b:new la;this.updateMorphTargets()}function ha(a,b){Ka.call(this,a,b);this.type="LineSegments"}function Ve(a,b){Ka.call(this,a,b);this.type="LineLoop"}function Xa(a){G.call(this);this.type="PointsMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.size=1;this.sizeAttenuation=!0;this.morphTargets=!1;this.setValues(a)}function Mc(a,b){z.call(this);this.type="Points";this.geometry=void 0!==a?a:new F;this.material=void 0!==b?b:new Xa;this.updateMorphTargets()}
function qg(a,b,c,d,e,f,g){var h=rg.distanceSqToPoint(a);h<c&&(c=new m,rg.closestPointToPoint(a,c),c.applyMatrix4(d),a=e.ray.origin.distanceTo(c),a<e.near||a>e.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;g<h;g++)for(var l=f[g],n=0;3>n;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;h<l;++h)for(q=a[h],n=k=q.start,q=k+q.count;n<q;n+=3)for(k=0;3>k;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;c<f;c++)for(a=0;3>a;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;a<c;a++)for(h=0;h<b;h++)l=a*v+h+1,n=(a+
1)*v+h+1,q=(a+1)*v+h,d.push(a*v+h,l,q),d.push(l,n,q);this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,3));this.setAttribute("uv",new B(g,2))}function Td(a,b,c,d){L.call(this);this.type="PolyhedronGeometry";this.parameters={vertices:a,indices:b,radius:c,detail:d};this.fromBufferGeometry(new Fa(a,b,c,d));this.mergeVertices()}function Fa(a,b,c,d){function e(a){h.push(a.x,a.y,a.z)}function f(b,c){b*=3;c.x=a[b+0];c.y=a[b+1];c.z=a[b+2]}function g(a,b,c,d){0>d&&
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;h<b.length;h+=3){f(b[h+0],c);f(b[h+1],d);f(b[h+2],g);for(var l=c,n=d,k=g,E=Math.pow(2,a),x=[],w=0;w<=E;w++){x[w]=[];for(var B=l.clone().lerp(k,w/E),U=n.clone().lerp(k,w/E),C=E-w,z=0;z<=C;z++)x[w][z]=0===z&&w===E?B:B.clone().lerp(U,z/C)}for(l=0;l<E;l++)for(n=
0;n<2*(E-l)-1;n++)k=Math.floor(n/2),0===n%2?(e(x[l][k+1]),e(x[l+1][k]),e(x[l][k])):(e(x[l][k+1]),e(x[l+1][k+1]),e(x[l+1][k]))}})(d);(function(a){for(var b=new m,c=0;c<h.length;c+=3)b.x=h[c+0],b.y=h[c+1],b.z=h[c+2],b.normalize().multiplyScalar(a),h[c+0]=b.x,h[c+1]=b.y,h[c+2]=b.z})(c);(function(){for(var a=new m,b=0;b<h.length;b+=3)a.x=h[b+0],a.y=h[b+1],a.z=h[b+2],l.push(Math.atan2(a.z,-a.x)/2/Math.PI+.5,1-(Math.atan2(-a.y,Math.sqrt(a.x*a.x+a.z*a.z))/Math.PI+.5));a=new m;b=new m;for(var c=new m,d=new m,
e=new w,f=new w,k=new w,A=0,E=0;A<h.length;A+=9,E+=6){a.set(h[A+0],h[A+1],h[A+2]);b.set(h[A+3],h[A+4],h[A+5]);c.set(h[A+6],h[A+7],h[A+8]);e.set(l[E+0],l[E+1]);f.set(l[E+2],l[E+3]);k.set(l[E+4],l[E+5]);d.copy(a).add(b).add(c).divideScalar(3);var x=Math.atan2(d.z,-d.x);g(e,E+0,a,x);g(f,E+2,b,x);g(k,E+4,c,x)}for(a=0;a<l.length;a+=6)b=l[a+0],c=l[a+2],d=l[a+4],e=Math.min(b,c,d),.9<Math.max(b,c,d)&&.1>e&&(.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;a++)f(a);f(!1===e?b:0);for(a=0;a<=b;a++)for(var c=0;c<=d;c++)n.x=a/b,n.y=c/d,t.push(n.x,n.y);for(a=1;a<=b;a++)for(c=1;c<=d;c++){var g=(d+1)*a+(c-1),h=(d+1)*a+c,l=(d+1)*(a-1)+c;r.push((d+1)*(a-1)+(c-1),g,l);r.push(g,h,l)}})();this.setIndex(r);this.setAttribute("position",new B(k,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(t,2))}function Zd(a,b,c,d,e,f,g){L.call(this);this.type="TorusKnotGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,
p:e,q:f};void 0!==g&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead.");this.fromBufferGeometry(new Tc(a,b,c,d,e,f));this.mergeVertices()}function Tc(a,b,c,d,e,f){function g(a,b,c,d,e){var f=Math.sin(a);b=c/b*a;c=Math.cos(b);e.x=d*(2+c)*.5*Math.cos(a);e.y=d*(2+c)*f*.5;e.z=d*Math.sin(b)*.5}F.call(this);this.type="TorusKnotBufferGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,p:e,q:f};a=a||1;b=b||.4;c=Math.floor(c)||
64;d=Math.floor(d)||8;e=e||2;f=f||3;for(var h=[],l=[],n=[],q=[],k=new m,v=new m,t=new m,r=new m,u=new m,A=new m,w=new m,x=0;x<=c;++x){var z=x/c*e*Math.PI*2;g(z,e,f,a,t);g(z+.01,e,f,a,r);A.subVectors(r,t);w.addVectors(r,t);u.crossVectors(A,w);w.crossVectors(u,A);u.normalize();w.normalize();for(z=0;z<=d;++z){var ka=z/d*Math.PI*2,U=-b*Math.cos(ka);ka=b*Math.sin(ka);k.x=t.x+(U*w.x+ka*u.x);k.y=t.y+(U*w.y+ka*u.y);k.z=t.z+(U*w.z+ka*u.z);l.push(k.x,k.y,k.z);v.subVectors(k,t).normalize();n.push(v.x,v.y,v.z);
q.push(x/c);q.push(z/d)}}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*a+(b-1),f=(d+1)*a+b,k=(d+1)*(a-1)+b,h.push((d+1)*(a-1)+(b-1),e,k),h.push(e,f,k);this.setIndex(h);this.setAttribute("position",new B(l,3));this.setAttribute("normal",new B(n,3));this.setAttribute("uv",new B(q,2))}function $d(a,b,c,d,e){L.call(this);this.type="TorusGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};this.fromBufferGeometry(new Uc(a,b,c,d,e));this.mergeVertices()}function Uc(a,b,c,d,e){F.call(this);
this.type="TorusBufferGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};a=a||1;b=b||.4;c=Math.floor(c)||8;d=Math.floor(d)||6;e=e||2*Math.PI;for(var f=[],g=[],h=[],l=[],n=new m,k=new m,p=new m,v=0;v<=c;v++)for(var t=0;t<=d;t++){var r=t/d*e,u=v/c*Math.PI*2;k.x=(a+b*Math.cos(u))*Math.cos(r);k.y=(a+b*Math.cos(u))*Math.sin(r);k.z=b*Math.sin(u);g.push(k.x,k.y,k.z);n.x=a*Math.cos(r);n.y=a*Math.sin(r);p.subVectors(k,n).normalize();h.push(p.x,p.y,p.z);l.push(t/d);l.push(v/
c)}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*(a-1)+b-1,n=(d+1)*(a-1)+b,k=(d+1)*a+b,f.push((d+1)*a+b-1,e,k),f.push(e,n,k);this.setIndex(f);this.setAttribute("position",new B(g,3));this.setAttribute("normal",new B(h,3));this.setAttribute("uv",new B(l,2))}function $h(a,b,c,d,e){for(var f,g=0,h=b,l=c-d;h<c;h+=d)g+=(a[l]-a[h])*(a[h+1]+a[l+1]),l=h;if(e===0<g)for(e=b;e<c;e+=d)f=ai(e,a[e],a[e+1],f);else for(e=c-d;e>=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;n<t&&(p++,m=m.nextZ,m);n++);for(v=t;0<p||0<v&&m;)0!==p&&(0===v||!m||l.z<=m.z)?(n=l,l=l.nextZ,p--):(n=
m,m=m.nextZ,v--),r?r.nextZ=n:h=n,n.prevZ=r,r=n;l=m}r.nextZ=null;t*=2}while(1<k)}for(h=a;a.prev!==a.next;){l=a.prev;m=a.next;if(f)r=Dk(a,d,e,f);else a:if(r=a,k=r.prev,p=r,t=r.next,0<=ma(k,p,t))r=!1;else{for(n=r.next.next;n!==r.prev;){if(Vc(k.x,k.y,p.x,p.y,t.x,t.y,n.x,n.y)&&0<=ma(n.prev,n,n.next)){r=!1;break a}n=n.next}r=!0}if(r)b.push(l.i/c),b.push(a.i/c),b.push(m.i/c),ae(a),h=a=m.next;else if(a=m,a===h){if(!g)be(Lb(a),b,c,d,e,f,1);else if(1===g){a=Lb(a);g=b;h=c;l=a;do m=l.prev,r=l.next.next,!We(m,
r)&&bi(m,l,l.next,r)&&ce(m,r)&&ce(r,m)&&(g.push(m.i/h),g.push(l.i/h),g.push(r.i/h),ae(l),ae(l.next),l=a=r),l=l.next;while(l!==a);a=Lb(l);be(a,b,c,d,e,f,2)}else if(2===g)a:{g=a;do{for(h=g.next.next;h!==g.prev;){if(l=g.i!==h.i){l=g;m=h;if(r=l.next.i!==m.i&&l.prev.i!==m.i){b:{r=l;do{if(r.i!==l.i&&r.next.i!==l.i&&r.i!==m.i&&r.next.i!==m.i&&bi(r,r.next,l,m)){r=!0;break b}r=r.next}while(r!==l);r=!1}r=!r}if(r){if(r=ce(l,m)&&ce(m,l)){r=l;k=!1;p=(l.x+m.x)/2;t=(l.y+m.y)/2;do r.y>t!==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)&&0<ma(l.prev,l,l.next)&&0<ma(m.prev,m,m.next)}l=r}if(l){a=ci(g,h);g=Lb(g,g.next);a=Lb(a,a.next);be(g,b,c,d,e,f);be(a,b,c,d,e,f);break a}h=h.next}g=g.next}while(g!==a)}break}}}}function Dk(a,b,c,d){var e=a.prev,f=a.next;if(0<=ma(e,a,f))return!1;var g=e.x>a.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<a.x?e.x<f.x?e.x:f.x:a.x<f.x?
a.x:f.x,e.y<a.y?e.y<f.y?e.y:f.y:a.y<f.y?a.y:f.y,b,c,d);b=tg(g,h,b,c,d);c=a.prevZ;for(d=a.nextZ;c&&c.z>=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.next.x?c:c.next}}c=c.next}while(c!==b);if(!h)return null;if(d===f)return h;b=h;g=h.x;var l=h.y,n=Infinity;c=h;do{if(d>=c.x&&c.x>=g&&d!==c.x&&Vc(e<l?d:f,e,g,l,
e<l?f:d,e,c.x,c.y)){var k=Math.abs(e-c.y)/(d-c.x);var p;if((p=ce(c,a))&&!(p=k<n)&&(p=k===n)&&!(p=c.x>h.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<c.x||b.x===
c.x&&b.y<c.y)c=b;b=b.next}while(b!==a);return c}function Vc(a,b,c,d,e,f,g,h){return 0<=(e-g)*(b-h)-(a-g)*(f-h)&&0<=(a-g)*(d-h)-(c-g)*(b-h)&&0<=(c-g)*(f-h)-(e-g)*(d-h)}function ma(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function We(a,b){return a.x===b.x&&a.y===b.y}function bi(a,b,c,d){var e=Xe(ma(a,b,c)),f=Xe(ma(a,b,d)),g=Xe(ma(c,d,a)),h=Xe(ma(c,d,b));return e!==f&&g!==h||0===e&&Ye(a,c,b)||0===f&&Ye(a,d,b)||0===g&&Ye(c,a,d)||0===h&&Ye(c,b,d)?!0:!1}function Ye(a,b,c){return b.x<=Math.max(a.x,
c.x)&&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 0<a?1:0>a?-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;2<b&&a[b-1].equals(a[0])&&a.pop()}function ei(a,b){for(var c=0;c<b.length;c++)a.push(b[c].x),a.push(b[c].y)}function dc(a,b){L.call(this);this.type="ExtrudeGeometry";this.parameters={shapes:a,options:b};this.fromBufferGeometry(new hb(a,
b));this.mergeVertices()}function hb(a,b){function c(a){function c(a,b,c){b||console.error("THREE.ExtrudeGeometry: vec does not exist");return b.clone().multiplyScalar(c).add(a)}function g(a,b,c){var d=a.x-b.x;var e=a.y-b.y;var f=c.x-a.x;var g=c.y-a.y,h=d*d+e*e;if(Math.abs(d*g-e*f)>Number.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;h<l;h++){var n=T*h,k=T*(h+1),q=b+g+n,p=b+g+k;k=b+f+k;r(b+f+n);r(q);r(k);r(q);r(p);r(k);n=e.length/3;n=F.generateSideWallUV(d,e,n-6,n-3,n-2,n-1);u(n[0]);u(n[1]);u(n[3]);u(n[1]);u(n[2]);u(n[3])}}}function l(a,b,c){A.push(a);A.push(b);
A.push(c)}function k(a,b,c){r(a);r(b);r(c);a=e.length/3;a=F.generateTopUV(d,e,a-3,a-2,a-1);u(a[0]);u(a[1]);u(a[2])}function r(a){e.push(A[3*a]);e.push(A[3*a+1]);e.push(A[3*a+2])}function u(a){f.push(a.x);f.push(a.y)}var A=[],E=void 0!==b.curveSegments?b.curveSegments:12,x=void 0!==b.steps?b.steps:1,B=void 0!==b.depth?b.depth:100,z=void 0!==b.bevelEnabled?b.bevelEnabled:!0,U=void 0!==b.bevelThickness?b.bevelThickness:6,C=void 0!==b.bevelSize?b.bevelSize:U-2,D=void 0!==b.bevelOffset?b.bevelOffset:0,
O=void 0!==b.bevelSegments?b.bevelSegments:3,y=b.extrudePath,F=void 0!==b.UVGenerator?b.UVGenerator:Hk;void 0!==b.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),B=b.amount);var G=!1;if(y){var J=y.getSpacedPoints(x);G=!0;z=!1;var H=y.computeFrenetFrames(x,!1);var L=new m;var M=new m;var K=new m}z||(D=C=U=O=0);a=a.extractPoints(E);y=a.shape;var N=a.holes;if(!rb.isClockWise(y))for(y=y.reverse(),a=0,E=N.length;a<E;a++){var P=N[a];rb.isClockWise(P)&&(N[a]=P.reverse())}var W=
rb.triangulateShape(y,N),S=y;a=0;for(E=N.length;a<E;a++)y=y.concat(N[a]);var T=y.length,ca=W.length;a=[];E=0;P=S.length;for(var R=P-1,ba=E+1;E<P;E++,R++,ba++)R===P&&(R=0),ba===P&&(ba=0),a[E]=g(S[E],S[R],S[ba]);E=[];P=a.concat();ba=0;for(var Q=N.length;ba<Q;ba++){var ea=N[ba];R=[];for(var da=0,X=ea.length,Z=X-1,Y=da+1;da<X;da++,Z++,Y++)Z===X&&(Z=0),Y===X&&(Y=0),R[da]=g(ea[da],ea[Z],ea[Y]);E.push(R);P=P.concat(R)}for(ba=0;ba<O;ba++){R=ba/O;Q=U*Math.cos(R*Math.PI/2);ea=C*Math.sin(R*Math.PI/2)+D;R=0;
for(da=S.length;R<da;R++)X=c(S[R],a[R],ea),l(X.x,X.y,-Q);da=0;for(X=N.length;da<X;da++){Z=N[da];R=E[da];Y=0;for(var ha=Z.length;Y<ha;Y++){var ia=c(Z[Y],R[Y],ea);l(ia.x,ia.y,-Q)}}}R=C+D;for(ba=0;ba<T;ba++)Q=z?c(y[ba],P[ba],R):y[ba],G?(M.copy(H.normals[0]).multiplyScalar(Q.x),L.copy(H.binormals[0]).multiplyScalar(Q.y),K.copy(J[0]).add(M).add(L),l(K.x,K.y,K.z)):l(Q.x,Q.y,0);for(ba=1;ba<=x;ba++)for(Q=0;Q<T;Q++)ea=z?c(y[Q],P[Q],R):y[Q],G?(M.copy(H.normals[ba]).multiplyScalar(ea.x),L.copy(H.binormals[ba]).multiplyScalar(ea.y),
K.copy(J[ba]).add(M).add(L),l(K.x,K.y,K.z)):l(ea.x,ea.y,B/x*ba);for(H=O-1;0<=H;H--){M=H/O;L=U*Math.cos(M*Math.PI/2);M=C*Math.sin(M*Math.PI/2)+D;K=0;for(y=S.length;K<y;K++)P=c(S[K],a[K],M),l(P.x,P.y,B+L);K=0;for(y=N.length;K<y;K++)for(P=N[K],R=E[K],ba=0,Q=P.length;ba<Q;ba++)ea=c(P[ba],R[ba],M),G?l(ea.x,ea.y+J[x-1].y,J[x-1].x+L):l(ea.x,ea.y,B+L)}(function(){var a=e.length/3;if(z){for(var b=0*T,c=0;c<ca;c++){var f=W[c];k(f[2]+b,f[1]+b,f[0]+b)}b=T*(x+2*O);for(c=0;c<ca;c++)f=W[c],k(f[0]+b,f[1]+b,f[2]+
b)}else{for(b=0;b<ca;b++)c=W[b],k(c[2],c[1],c[0]);for(b=0;b<ca;b++)c=W[b],k(c[0]+T*x,c[1]+T*x,c[2]+T*x)}d.addGroup(a,e.length/3-a,0)})();(function(){var a=e.length/3,b=0;h(S,b);b+=S.length;for(var c=0,f=N.length;c<f;c++){var g=N[c];h(g,b);b+=g.length}d.addGroup(a,e.length/3-a,1)})()}F.call(this);this.type="ExtrudeBufferGeometry";this.parameters={shapes:a,options:b};a=Array.isArray(a)?a:[a];for(var d=this,e=[],f=[],g=0,h=a.length;g<h;g++)c(a[g]);this.setAttribute("position",new B(e,3));this.setAttribute("uv",
new B(f,2));this.computeVertexNormals()}function fi(a,b,c){c.shapes=[];if(Array.isArray(a))for(var d=0,e=a.length;d<e;d++)c.shapes.push(a[d].uuid);else c.shapes.push(a.uuid);void 0!==b.extrudePath&&(c.options.extrudePath=b.extrudePath.toJSON());return c}function de(a,b){L.call(this);this.type="TextGeometry";this.parameters={text:a,parameters:b};this.fromBufferGeometry(new Wc(a,b));this.mergeVertices()}function Wc(a,b){b=b||{};var c=b.font;if(!c||!c.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),
new L;a=c.generateShapes(a,b.size);b.depth=void 0!==b.height?b.height:50;void 0===b.bevelThickness&&(b.bevelThickness=10);void 0===b.bevelSize&&(b.bevelSize=8);void 0===b.bevelEnabled&&(b.bevelEnabled=!1);hb.call(this,a,b);this.type="TextBufferGeometry"}function ee(a,b,c,d,e,f,g){L.call(this);this.type="SphereGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,thetaLength:g};this.fromBufferGeometry(new ec(a,b,c,d,e,f,g));this.mergeVertices()}function ec(a,
b,c,d,e,f,g){F.call(this);this.type="SphereBufferGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,thetaLength:g};a=a||1;b=Math.max(3,Math.floor(b)||8);c=Math.max(2,Math.floor(c)||6);d=void 0!==d?d:0;e=void 0!==e?e:2*Math.PI;f=void 0!==f?f:0;g=void 0!==g?g:Math.PI;for(var h=Math.min(f+g,Math.PI),l=0,n=[],k=new m,p=new m,v=[],t=[],r=[],u=[],A=0;A<=c;A++){var w=[],x=A/c,z=0;0==A&&0==f?z=.5/b:A==c&&h==Math.PI&&(z=-.5/b);for(var y=0;y<=b;y++){var U=
y/b;k.x=-a*Math.cos(d+U*e)*Math.sin(f+x*g);k.y=a*Math.cos(f+x*g);k.z=a*Math.sin(d+U*e)*Math.sin(f+x*g);t.push(k.x,k.y,k.z);p.copy(k).normalize();r.push(p.x,p.y,p.z);u.push(U+z,1-x);w.push(l++)}n.push(w)}for(a=0;a<c;a++)for(d=0;d<b;d++)e=n[a][d+1],g=n[a][d],l=n[a+1][d],k=n[a+1][d+1],(0!==a||0<f)&&v.push(e,g,k),(a!==c-1||h<Math.PI)&&v.push(g,l,k);this.setIndex(v);this.setAttribute("position",new B(t,3));this.setAttribute("normal",new B(r,3));this.setAttribute("uv",new B(u,2))}function fe(a,b,c,d,e,
f){L.call(this);this.type="RingGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};this.fromBufferGeometry(new Xc(a,b,c,d,e,f));this.mergeVertices()}function Xc(a,b,c,d,e,f){F.call(this);this.type="RingBufferGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};a=a||.5;b=b||1;e=void 0!==e?e:0;f=void 0!==f?f:2*Math.PI;c=void 0!==c?Math.max(3,c):8;d=void 0!==d?Math.max(1,d):1;var g=
[],h=[],l=[],n=[],k=a;a=(b-a)/d;for(var p=new m,v=new w,t=0;t<=d;t++){for(var r=0;r<=c;r++){var u=e+r/c*f;p.x=k*Math.cos(u);p.y=k*Math.sin(u);h.push(p.x,p.y,p.z);l.push(0,0,1);v.x=(p.x/b+1)/2;v.y=(p.y/b+1)/2;n.push(v.x,v.y)}k+=a}for(b=0;b<d;b++)for(e=b*(c+1),f=0;f<c;f++)k=f+e,a=k+c+1,p=k+c+2,v=k+1,g.push(k,a,v),g.push(a,p,v);this.setIndex(g);this.setAttribute("position",new B(h,3));this.setAttribute("normal",new B(l,3));this.setAttribute("uv",new B(n,2))}function ge(a,b,c,d){L.call(this);this.type=
"LatheGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};this.fromBufferGeometry(new Yc(a,b,c,d));this.mergeVertices()}function Yc(a,b,c,d){F.call(this);this.type="LatheBufferGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};b=Math.floor(b)||12;c=c||0;d=d||2*Math.PI;d=K.clamp(d,0,2*Math.PI);for(var e=[],f=[],g=[],h=1/b,l=new m,n=new w,k=0;k<=b;k++){var p=c+k*h*d,v=Math.sin(p);p=Math.cos(p);for(var t=0;t<=a.length-1;t++)l.x=a[t].x*v,l.y=a[t].y,l.z=a[t].x*p,
f.push(l.x,l.y,l.z),n.x=k/b,n.y=t/(a.length-1),g.push(n.x,n.y)}for(c=0;c<b;c++)for(h=0;h<a.length-1;h++)l=h+c*a.length,n=l+a.length,k=l+a.length+1,v=l+1,e.push(l,n,v),e.push(n,k,v);this.setIndex(e);this.setAttribute("position",new B(f,3));this.setAttribute("uv",new B(g,2));this.computeVertexNormals();if(d===2*Math.PI)for(d=this.attributes.normal.array,e=new m,f=new m,g=new m,b=b*a.length*3,h=c=0;c<a.length;c++,h+=3)e.x=d[h+0],e.y=d[h+1],e.z=d[h+2],f.x=d[b+h+0],f.y=d[b+h+1],f.z=d[b+h+2],g.addVectors(e,
f).normalize(),d[h+0]=d[b+h+0]=g.x,d[h+1]=d[b+h+1]=g.y,d[h+2]=d[b+h+2]=g.z}function fc(a,b){L.call(this);this.type="ShapeGeometry";"object"===typeof b&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),b=b.curveSegments);this.parameters={shapes:a,curveSegments:b};this.fromBufferGeometry(new gc(a,b));this.mergeVertices()}function gc(a,b){function c(a){var c=e.length/3,h=a.extractPoints(b);a=h.shape;var n=h.holes;!1===rb.isClockWise(a)&&(a=a.reverse());h=0;for(var k=n.length;h<
k;h++){var q=n[h];!0===rb.isClockWise(q)&&(n[h]=q.reverse())}h=rb.triangulateShape(a,n);k=0;for(q=n.length;k<q;k++)a=a.concat(n[k]);n=0;for(k=a.length;n<k;n++)q=a[n],e.push(q.x,q.y,0),f.push(0,0,1),g.push(q.x,q.y);a=0;for(n=h.length;a<n;a++)k=h[a],d.push(k[0]+c,k[1]+c,k[2]+c),l+=3}F.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:a,curveSegments:b};b=b||12;var d=[],e=[],f=[],g=[],h=0,l=0;if(!1===Array.isArray(a))c(a);else for(var n=0;n<a.length;n++)c(a[n]),this.addGroup(h,l,n),
h+=l,l=0;this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,3));this.setAttribute("uv",new B(g,2))}function gi(a,b){b.shapes=[];if(Array.isArray(a))for(var c=0,d=a.length;c<d;c++)b.shapes.push(a[c].uuid);else b.shapes.push(a.uuid);return b}function Zc(a,b){F.call(this);this.type="EdgesGeometry";this.parameters={thresholdAngle:b};var c=[];b=Math.cos(K.DEG2RAD*(void 0!==b?b:1));var d=[0,0],e={},f=["a","b","c"];if(a.isBufferGeometry){var g=new L;g.fromBufferGeometry(a)}else g=
a.clone();g.mergeVertices();g.computeFaceNormals();a=g.vertices;g=g.faces;for(var h=0,l=g.length;h<l;h++)for(var n=g[h],k=0;3>k;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;f<d;f++)l=z+f,u=e+f,!0===c?k.push(u,u+1,l):k.push(u+1,u,l),q+=3;n.addGroup(E,q,!0===c?1:2);E+=q}F.call(this);this.type="CylinderBufferGeometry";this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};var n=this;a=void 0!==a?a:1;b=void 0!==b?b:1;c=c||1;d=Math.floor(d)||8;e=Math.floor(e)||1;f=void 0!==f?f:!1;g=void 0!==g?g:0;h=void 0!==
h?h:2*Math.PI;var k=[],p=[],v=[],t=[],r=0,u=[],A=c/2,E=0;(function(){for(var f=new m,l=new m,q=0,w=(b-a)/c,C=0;C<=e;C++){for(var z=[],B=C/e,y=B*(b-a)+a,D=0;D<=d;D++){var F=D/d,G=F*h+g,H=Math.sin(G);G=Math.cos(G);l.x=y*H;l.y=-B*c+A;l.z=y*G;p.push(l.x,l.y,l.z);f.set(H,w,G).normalize();v.push(f.x,f.y,f.z);t.push(F,1-B);z.push(r++)}u.push(z)}for(f=0;f<d;f++)for(l=0;l<e;l++)w=u[l+1][f],C=u[l+1][f+1],z=u[l][f+1],k.push(u[l][f],w,z),k.push(w,C,z),q+=6;n.addGroup(E,q,0);E+=q})();!1===f&&(0<a&&l(!0),0<b&&
l(!1));this.setIndex(k);this.setAttribute("position",new B(p,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(t,2))}function he(a,b,c,d,e,f,g){hc.call(this,0,a,b,c,d,e,f,g);this.type="ConeGeometry";this.parameters={radius:a,height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function ie(a,b,c,d,e,f,g){sb.call(this,0,a,b,c,d,e,f,g);this.type="ConeBufferGeometry";this.parameters={radius:a,height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,
thetaLength:g}}function je(a,b,c,d){L.call(this);this.type="CircleGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};this.fromBufferGeometry(new $c(a,b,c,d));this.mergeVertices()}function $c(a,b,c,d){F.call(this);this.type="CircleBufferGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};a=a||1;b=void 0!==b?Math.max(3,b):8;c=void 0!==c?c:0;d=void 0!==d?d:2*Math.PI;var e=[],f=[],g=[],h=[],l=new m,n=new w;f.push(0,0,0);g.push(0,0,1);h.push(.5,.5);for(var k=
0,p=3;k<=b;k++,p+=3){var v=c+k/b*d;l.x=a*Math.cos(v);l.y=a*Math.sin(v);f.push(l.x,l.y,l.z);g.push(0,0,1);n.x=(f[p]/a+1)/2;n.y=(f[p+1]/a+1)/2;h.push(n.x,n.y)}for(a=1;a<=b;a++)e.push(a,a+1,0);this.setIndex(e);this.setAttribute("position",new B(f,3));this.setAttribute("normal",new B(g,3));this.setAttribute("uv",new B(h,2))}function ic(a){G.call(this);this.type="ShadowMaterial";this.color=new D(0);this.transparent=!0;this.setValues(a)}function tb(a){Ba.call(this,a);this.type="RawShaderMaterial"}function ib(a){G.call(this);
this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new D(16777215);this.roughness=1;this.metalness=0;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=
null;this.envMapIntensity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.vertexTangents=this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function jc(a){ib.call(this);this.defines={STANDARD:"",PHYSICAL:""};this.type="MeshPhysicalMaterial";this.clearcoat=0;this.clearcoatMap=null;this.clearcoatRoughness=0;this.clearcoatRoughnessMap=null;this.clearcoatNormalScale=new w(1,1);this.clearcoatNormalMap=
null;this.reflectivity=.5;this.sheen=null;this.transparency=0;this.setValues(a)}function Mb(a){G.call(this);this.type="MeshPhongMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=
1;this.displacementBias=0;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.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function kc(a){G.call(this);this.defines={TOON:""};this.type="MeshToonMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=this.gradientMap=this.map=null;
this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=this.specularMap=null;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}
function lc(a){G.call(this);this.type="MeshNormalMaterial";this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.fog=!1;this.setValues(a)}function mc(a){G.call(this);this.type="MeshLambertMaterial";this.color=new D(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;
this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function nc(a){G.call(this);this.defines={MATCAP:""};this.type="MeshMatcapMaterial";this.color=new D(16777215);this.bumpMap=
this.map=this.matcap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=null;this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function oc(a){la.call(this);this.type="LineDashedMaterial";this.scale=1;this.dashSize=3;this.gapSize=1;this.setValues(a)}function La(a,b,c,d){this.parameterPositions=a;this._cachedIndex=0;this.resultBuffer=void 0!==d?d:new b.constructor(c);
this.sampleValues=b;this.valueSize=c}function Ze(a,b,c,d){La.call(this,a,b,c,d);this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function ke(a,b,c,d){La.call(this,a,b,c,d)}function $e(a,b,c,d){La.call(this,a,b,c,d)}function ta(a,b,c,d){if(void 0===a)throw Error("THREE.KeyframeTrack: track name is undefined");if(void 0===b||0===b.length)throw Error("THREE.KeyframeTrack: no keyframes in track named "+a);this.name=a;this.times=Z.convertArray(b,this.TimeBufferType);this.values=Z.convertArray(c,
this.ValueBufferType);this.setInterpolation(d||this.DefaultInterpolation)}function af(a,b,c){ta.call(this,a,b,c)}function bf(a,b,c,d){ta.call(this,a,b,c,d)}function ad(a,b,c,d){ta.call(this,a,b,c,d)}function cf(a,b,c,d){La.call(this,a,b,c,d)}function le(a,b,c,d){ta.call(this,a,b,c,d)}function df(a,b,c,d){ta.call(this,a,b,c,d)}function bd(a,b,c,d){ta.call(this,a,b,c,d)}function Qa(a,b,c,d){this.name=a;this.tracks=c;this.duration=void 0!==b?b:-1;this.blendMode=void 0!==d?d:2500;this.uuid=K.generateUUID();
0>this.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;b<c;b+=2){var d=l[b],e=l[b+1];d.global&&(d.lastIndex=0);if(d.test(a))return e}return null}}function S(a){this.manager=void 0!==a?a:hi;this.crossOrigin="anonymous";
this.resourcePath=this.path="";this.requestHeader={}}function Ra(a){S.call(this,a)}function wg(a){S.call(this,a)}function xg(a){S.call(this,a)}function ef(a){S.call(this,a)}function cd(a){S.call(this,a)}function ff(a){S.call(this,a)}function gf(a){S.call(this,a)}function J(){this.type="Curve";this.arcLengthDivisions=200}function Ma(a,b,c,d,e,f,g,h){J.call(this);this.type="EllipseCurve";this.aX=a||0;this.aY=b||0;this.xRadius=c||1;this.yRadius=d||1;this.aStartAngle=e||0;this.aEndAngle=f||2*Math.PI;
this.aClockwise=g||!1;this.aRotation=h||0}function dd(a,b,c,d,e,f){Ma.call(this,a,b,c,c,d,e,f);this.type="ArcCurve"}function yg(){var a=0,b=0,c=0,d=0;return{initCatmullRom:function(e,f,g,h,l){e=l*(g-e);h=l*(h-f);a=f;b=e;c=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},initNonuniformCatmullRom:function(e,f,g,h,l,n,k){e=((f-e)/l-(g-e)/(l+n)+(g-f)/n)*n;h=((g-f)/n-(h-f)/(n+k)+(h-g)/k)*n;a=f;b=e;c=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},calc:function(e){var f=e*e;return a+b*e+c*f+d*f*e}}}function pa(a,b,c,d){J.call(this);this.type=
"CatmullRomCurve3";this.points=a||[];this.closed=b||!1;this.curveType=c||"centripetal";this.tension=d||.5}function ii(a,b,c,d,e){b=.5*(d-b);e=.5*(e-c);var f=a*a;return(2*c-2*d+b+e)*a*f+(-3*c+3*d-2*b-e)*f+b*a+c}function me(a,b,c,d){var e=1-a;return e*e*b+2*(1-a)*a*c+a*a*d}function ne(a,b,c,d,e){var f=1-a,g=1-a;return f*f*f*b+3*g*g*a*c+3*(1-a)*a*a*d+a*a*a*e}function Ya(a,b,c,d){J.call(this);this.type="CubicBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w;this.v3=d||new w}function jb(a,
b,c,d){J.call(this);this.type="CubicBezierCurve3";this.v0=a||new m;this.v1=b||new m;this.v2=c||new m;this.v3=d||new m}function Ca(a,b){J.call(this);this.type="LineCurve";this.v1=a||new w;this.v2=b||new w}function Za(a,b){J.call(this);this.type="LineCurve3";this.v1=a||new m;this.v2=b||new m}function $a(a,b,c){J.call(this);this.type="QuadraticBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w}function kb(a,b,c){J.call(this);this.type="QuadraticBezierCurve3";this.v0=a||new m;this.v1=b||
new m;this.v2=c||new m}function ab(a){J.call(this);this.type="SplineCurve";this.points=a||[]}function ub(){J.call(this);this.type="CurvePath";this.curves=[];this.autoClose=!1}function bb(a){ub.call(this);this.type="Path";this.currentPoint=new w;a&&this.setFromPoints(a)}function Nb(a){bb.call(this,a);this.uuid=K.generateUUID();this.type="Shape";this.holes=[]}function T(a,b){z.call(this);this.type="Light";this.color=new D(a);this.intensity=void 0!==b?b:1;this.receiveShadow=void 0}function hf(a,b,c){T.call(this,
a,c);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(z.DefaultUp);this.updateMatrix();this.groundColor=new D(b)}function lb(a){this.camera=a;this.normalOffset=this.bias=0;this.radius=1;this.mapSize=new w(512,512);this.mapPass=this.map=null;this.matrix=new M;this._frustum=new Fc;this._frameExtents=new w(1,1);this._viewportCount=1;this._viewports=[new Y(0,0,1,1)]}function jf(){lb.call(this,new P(50,1,.5,500))}function kf(a,b,c,d,e,f){T.call(this,a,b);this.type="SpotLight";this.position.copy(z.DefaultUp);
this.updateMatrix();this.target=new z;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(a){this.intensity=a/Math.PI}});this.distance=void 0!==c?c:0;this.angle=void 0!==d?d:Math.PI/3;this.penumbra=void 0!==e?e:0;this.decay=void 0!==f?f:1;this.shadow=new jf}function zg(){lb.call(this,new P(90,1,.5,500));this._frameExtents=new w(4,2);this._viewportCount=6;this._viewports=[new Y(2,1,1,1),new Y(0,1,1,1),new Y(3,1,1,1),new Y(1,1,1,1),new Y(3,0,1,1),new Y(1,0,
1,1)];this._cubeDirections=[new m(1,0,0),new m(-1,0,0),new m(0,0,1),new m(0,0,-1),new m(0,1,0),new m(0,-1,0)];this._cubeUps=[new m(0,1,0),new m(0,1,0),new m(0,1,0),new m(0,1,0),new m(0,0,1),new m(0,0,-1)]}function lf(a,b,c,d){T.call(this,a,b);this.type="PointLight";Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(a){this.intensity=a/(4*Math.PI)}});this.distance=void 0!==c?c:0;this.decay=void 0!==d?d:1;this.shadow=new zg}function ed(a,b,c,d,e,f){fb.call(this);
this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=void 0!==a?a:-1;this.right=void 0!==b?b:1;this.top=void 0!==c?c:1;this.bottom=void 0!==d?d:-1;this.near=void 0!==e?e:.1;this.far=void 0!==f?f:2E3;this.updateProjectionMatrix()}function mf(){lb.call(this,new ed(-5,5,5,-5,.5,500))}function nf(a,b){T.call(this,a,b);this.type="DirectionalLight";this.position.copy(z.DefaultUp);this.updateMatrix();this.target=new z;this.shadow=new mf}function of(a,b){T.call(this,a,b);this.type="AmbientLight";
this.castShadow=void 0}function pf(a,b,c,d){T.call(this,a,b);this.type="RectAreaLight";this.width=void 0!==c?c:10;this.height=void 0!==d?d:10}function qf(){this.coefficients=[];for(var a=0;9>a;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;d<e;d++)Pg(a[d],b,c,!0)}}function oi(a,b,c){this.radius=void 0!==a?a:1;this.phi=void 0!==b?b:0;this.theta=void 0!==c?c:0;return this}function pi(a,b,c){this.radius=void 0!==a?a:1;this.theta=void 0!==b?b:0;this.y=void 0!==c?c:0;return this}function Qg(a,b){this.min=void 0!==a?a:new w(Infinity,Infinity);this.max=void 0!==b?b:
new w(-Infinity,-Infinity)}function Rg(a,b){this.start=void 0!==a?a:new m;this.end=void 0!==b?b:new m}function pe(a){z.call(this);this.material=a;this.render=function(){};this.hasUvs=this.hasColors=this.hasNormals=this.hasPositions=!1;this.uvArray=this.colorArray=this.normalArray=this.positionArray=null;this.count=0}function gd(a,b){z.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=b;a=new F;b=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,
1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var c=0,d=1;32>c;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<a.children.length;c++)b.push.apply(b,qi(a.children[c]));return b}function pc(a){for(var b=qi(a),c=new F,d=[],e=[],f=new D(0,0,1),g=new D(0,1,0),h=0;h<b.length;h++){var l=
b[h];l.parent&&l.parent.isBone&&(d.push(0,0,0),d.push(0,0,0),e.push(f.r,f.g,f.b),e.push(g.r,g.g,g.b))}c.setAttribute("position",new B(d,3));c.setAttribute("color",new B(e,3));d=new la({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});ha.call(this,c,d);this.type="SkeletonHelper";this.root=a;this.bones=b;this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1}function hd(a,b,c){this.light=a;this.light.updateMatrixWorld();this.color=c;a=new ec(b,4,2);b=new Oa({wireframe:!0,fog:!1,
toneMapped:!1});X.call(this,a,b);this.type="PointLightHelper";this.matrix=this.light.matrixWorld;this.matrixAutoUpdate=!1;this.update()}function id(a,b,c){z.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;a=new bc(b);a.rotateY(.5*Math.PI);this.material=new Oa({wireframe:!0,fog:!1,toneMapped:!1});void 0===this.color&&(this.material.vertexColors=!0);b=a.getAttribute("position");b=new Float32Array(3*b.count);a.setAttribute("color",
new H(b,3));this.add(new X(a,this.material));this.update()}function xf(a,b,c,d){a=a||10;b=b||10;c=new D(void 0!==c?c:4473924);d=new D(void 0!==d?d:8947848);var e=b/2,f=a/b,g=a/2;a=[];for(var h=[],l=0,n=0,k=-g;l<=b;l++,k+=f){a.push(-g,0,k,g,0,k);a.push(k,0,-g,k,0,g);var p=l===e?c:d;p.toArray(h,n);n+=3;p.toArray(h,n);n+=3;p.toArray(h,n);n+=3;p.toArray(h,n);n+=3}b=new F;b.setAttribute("position",new B(a,3));b.setAttribute("color",new B(h,3));c=new la({vertexColors:!0,toneMapped:!1});ha.call(this,b,c);
this.type="GridHelper"}function yf(a,b,c,d,e,f){a=a||10;b=b||16;c=c||8;d=d||64;e=new D(void 0!==e?e:4473924);f=new D(void 0!==f?f:8947848);for(var g=[],h=[],l=0;l<=b;l++){var n=l/b*2*Math.PI,k=Math.sin(n)*a;n=Math.cos(n)*a;g.push(0,0,0);g.push(k,0,n);k=l&1?e:f;h.push(k.r,k.g,k.b);h.push(k.r,k.g,k.b)}for(b=0;b<=c;b++)for(l=b&1?e:f,k=a-a/c*b,n=0;n<d;n++){var p=n/d*2*Math.PI,m=Math.sin(p)*k;p=Math.cos(p)*k;g.push(m,0,p);h.push(l.r,l.g,l.b);p=(n+1)/d*2*Math.PI;m=Math.sin(p)*k;p=Math.cos(p)*k;g.push(m,
0,p);h.push(l.r,l.g,l.b)}a=new F;a.setAttribute("position",new B(g,3));a.setAttribute("color",new B(h,3));g=new la({vertexColors:!0,toneMapped:!1});ha.call(this,a,g);this.type="PolarGridHelper"}function jd(a,b,c){z.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;void 0===b&&(b=1);a=new F;a.setAttribute("position",new B([-b,b,0,b,b,0,b,-b,0,-b,-b,0,-b,b,0],3));b=new la({fog:!1,toneMapped:!1});this.lightPlane=new Ka(a,b);this.add(this.lightPlane);
a=new F;a.setAttribute("position",new B([0,0,0,0,0,1],3));this.targetLine=new Ka(a,b);this.add(this.targetLine);this.update()}function qe(a){function b(a,b,d){c(a,d);c(b,d)}function c(a,b){f.push(0,0,0);g.push(b.r,b.g,b.b);void 0===h[a]&&(h[a]=[]);h[a].push(f.length/3-1)}var d=new F,e=new la({color:16777215,vertexColors:!0,toneMapped:!1}),f=[],g=[],h={},l=new D(16755200),n=new D(16711680),k=new D(43775),p=new D(16777215),m=new D(3355443);b("n1","n2",l);b("n2","n4",l);b("n4","n3",l);b("n3","n1",l);
b("f1","f2",l);b("f2","f4",l);b("f4","f3",l);b("f3","f1",l);b("n1","f1",l);b("n2","f2",l);b("n3","f3",l);b("n4","f4",l);b("p","n1",n);b("p","n2",n);b("p","n3",n);b("p","n4",n);b("u1","u2",k);b("u2","u3",k);b("u3","u1",k);b("c","t",p);b("p","c",m);b("cn1","cn2",m);b("cn3","cn4",m);b("cf1","cf2",m);b("cf3","cf4",m);d.setAttribute("position",new B(f,3));d.setAttribute("color",new B(g,3));ha.call(this,d,e);this.type="CameraHelper";this.camera=a;this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix();
this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.pointMap=h;this.update()}function ca(a,b,c,d,e,f,g){zf.set(e,f,g).unproject(d);a=b[a];if(void 0!==a)for(c=c.getAttribute("position"),b=0,d=a.length;b<d;b++)c.setXYZ(a[b],zf.x,zf.y,zf.z)}function vb(a,b){this.object=a;void 0===b&&(b=16776960);a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=new Float32Array(24),d=new F;d.setIndex(new H(a,1));d.setAttribute("position",new H(c,3));ha.call(this,d,new la({color:b,toneMapped:!1}));
this.type="BoxHelper";this.matrixAutoUpdate=!1;this.update()}function re(a,b){this.type="Box3Helper";this.box=a;b=b||16776960;a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=new F;c.setIndex(new H(a,1));c.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3));ha.call(this,c,new la({color:b,toneMapped:!1}));this.type="Box3Helper";this.geometry.computeBoundingSphere()}function se(a,b,c){this.plane=a;this.size=void 0===b?1:b;a=void 0!==
c?c:16776960;b=new F;b.setAttribute("position",new B([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,0,1,0,0,0],3));b.computeBoundingSphere();Ka.call(this,b,new la({color:a,toneMapped:!1}));this.type="PlaneHelper";b=new F;b.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3));b.computeBoundingSphere();this.add(new X(b,new Oa({color:a,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}function wb(a,b,c,d,e,f){z.call(this);this.type="ArrowHelper";void 0===
a&&(a=new m(0,0,1));void 0===b&&(b=new m(0,0,0));void 0===c&&(c=1);void 0===d&&(d=16776960);void 0===e&&(e=.2*c);void 0===f&&(f=.2*e);void 0===Af&&(Af=new F,Af.setAttribute("position",new B([0,0,0,0,1,0],3)),Sg=new sb(0,.5,1,5,1),Sg.translate(0,-.5,0));this.position.copy(b);this.line=new Ka(Af,new la({color:d,toneMapped:!1}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new X(Sg,new Oa({color:d,toneMapped:!1}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(a);
this.setLength(c,e,f)}function te(a){a=a||1;var b=[0,0,0,a,0,0,0,0,0,0,a,0,0,0,0,0,0,a];a=new F;a.setAttribute("position",new B(b,3));a.setAttribute("color",new B([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));b=new la({vertexColors:!0,toneMapped:!1});ha.call(this,a,b);this.type="AxesHelper"}function Tg(a){this._renderer=a;this._pingPongRenderTarget=null;a=new Float32Array(20);var b=new m(0,1,0);this._blurMaterial=new tb({name:"SphericalGaussianBlur",defines:{n:20},uniforms:{envMap:{value:null},samples:{value:1},
weights:{value:a},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:b},inputEncoding:{value:mb[3E3]},outputEncoding:{value:mb[3E3]}},vertexShader:Ug(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform int samples;\nuniform float weights[n];\nuniform bool latitudinal;\nuniform float dTheta;\nuniform float mipInt;\nuniform vec3 poleAxis;\n\n"+Vg()+"\n\n#define ENVMAP_TYPE_CUBE_UV\n#include <cube_uv_reflection_fragment>\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 <common>\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 <encodings_pars_fragment>\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:0<a?1:+a});!1==="name"in Function.prototype&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}});void 0===Object.assign&&(Object.assign=function(a){if(void 0===a||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=
Object(a),c=1;c<arguments.length;c++){var d=arguments[c];if(void 0!==d&&null!==d)for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(b[e]=d[e])}return b});Object.assign(ua.prototype,{addEventListener:function(a,b){void 0===this._listeners&&(this._listeners={});var c=this._listeners;void 0===c[a]&&(c[a]=[]);-1===c[a].indexOf(b)&&c[a].push(b)},hasEventListener:function(a,b){if(void 0===this._listeners)return!1;var c=this._listeners;return void 0!==c[a]&&-1!==c[a].indexOf(b)},removeEventListener:function(a,
b){void 0!==this._listeners&&(a=this._listeners[a],void 0!==a&&(b=a.indexOf(b),-1!==b&&a.splice(b,1)))},dispatchEvent:function(a){if(void 0!==this._listeners){var b=this._listeners[a.type];if(void 0!==b){a.target=this;b=b.slice(0);for(var c=0,d=b.length;c<d;c++)b[c].call(this,a)}}}});for(var ya=[],ue=0;256>ue;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 2048<a.width||2048<a.height?a.toDataURL("image/jpeg",.6):a.toDataURL("image/png")}},hj=0;W.DEFAULT_IMAGE=void 0;W.DEFAULT_MAPPING=300;W.prototype=Object.assign(Object.create(ua.prototype),{constructor:W,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.name=a.name;this.image=a.image;this.mipmaps=
a.mipmaps.slice(0);this.mapping=a.mapping;this.wrapS=a.wrapS;this.wrapT=a.wrapT;this.magFilter=a.magFilter;this.minFilter=a.minFilter;this.anisotropy=a.anisotropy;this.format=a.format;this.internalFormat=a.internalFormat;this.type=a.type;this.offset.copy(a.offset);this.repeat.copy(a.repeat);this.center.copy(a.center);this.rotation=a.rotation;this.matrixAutoUpdate=a.matrixAutoUpdate;this.matrix.copy(a.matrix);this.generateMipmaps=a.generateMipmaps;this.premultiplyAlpha=a.premultiplyAlpha;this.flipY=
a.flipY;this.unpackAlignment=a.unpackAlignment;this.encoding=a.encoding;return this},toJSON:function(a){var b=void 0===a||"string"===typeof a;if(!b&&void 0!==a.textures[this.uuid])return a.textures[this.uuid];var c={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,
type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var d=this.image;void 0===d.uuid&&(d.uuid=K.generateUUID());if(!b&&void 0===a.images[d.uuid]){if(Array.isArray(d)){var e=[];for(var f=0,g=d.length;f<g;f++)e.push(Ob.getDataURL(d[f]))}else e=Ob.getDataURL(d);a.images[d.uuid]={uuid:d.uuid,url:e}}c.image=d.uuid}b||(a.textures[this.uuid]=
c);return c},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(a){if(300!==this.mapping)return a;a.applyMatrix3(this.matrix);if(0>a.x||1<a.x)switch(this.wrapS){case 1E3:a.x-=Math.floor(a.x);break;case 1001:a.x=0>a.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||1<a.y)switch(this.wrapT){case 1E3:a.y-=Math.floor(a.y);break;case 1001:a.y=0>a.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;0<n?(c=.5/Math.sqrt(n+1),this._w=.25/c,this._x=(l-g)*c,this._y=(d-h)*c,this._z=(e-a)*c):c>f&&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<<a|0},enable:function(a){this.mask=this.mask|1<<a|0},enableAll:function(){this.mask=-1},toggle:function(a){this.mask^=1<<a|0},disable:function(a){this.mask&=~(1<<a|0)},disableAll:function(){this.mask=0},test:function(a){return 0!==(this.mask&a.mask)}});var ij=0,zi=new m,md=new na,xb=new M,Cf=new m,ve=new m,Mk=new m,Nk=
new na,Ai=new m(1,0,0),Bi=new m(0,1,0),Ci=new m(0,0,1),Ok={type:"added"},Pk={type:"removed"};z.DefaultUp=new m(0,1,0);z.DefaultMatrixAutoUpdate=!0;z.prototype=Object.assign(Object.create(ua.prototype),{constructor:z,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix4:function(a){this.matrixAutoUpdate&&this.updateMatrix();this.matrix.premultiply(a);this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(a){this.quaternion.premultiply(a);
return this},setRotationFromAxisAngle:function(a,b){this.quaternion.setFromAxisAngle(a,b)},setRotationFromEuler:function(a){this.quaternion.setFromEuler(a,!0)},setRotationFromMatrix:function(a){this.quaternion.setFromRotationMatrix(a)},setRotationFromQuaternion:function(a){this.quaternion.copy(a)},rotateOnAxis:function(a,b){md.setFromAxisAngle(a,b);this.quaternion.multiply(md);return this},rotateOnWorldAxis:function(a,b){md.setFromAxisAngle(a,b);this.quaternion.premultiply(md);return this},rotateX:function(a){return this.rotateOnAxis(Ai,
a)},rotateY:function(a){return this.rotateOnAxis(Bi,a)},rotateZ:function(a){return this.rotateOnAxis(Ci,a)},translateOnAxis:function(a,b){zi.copy(a).applyQuaternion(this.quaternion);this.position.add(zi.multiplyScalar(b));return this},translateX:function(a){return this.translateOnAxis(Ai,a)},translateY:function(a){return this.translateOnAxis(Bi,a)},translateZ:function(a){return this.translateOnAxis(Ci,a)},localToWorld:function(a){return a.applyMatrix4(this.matrixWorld)},worldToLocal:function(a){return a.applyMatrix4(xb.getInverse(this.matrixWorld))},
lookAt:function(a,b,c){a.isVector3?Cf.copy(a):Cf.set(a,b,c);a=this.parent;this.updateWorldMatrix(!0,!1);ve.setFromMatrixPosition(this.matrixWorld);this.isCamera||this.isLight?xb.lookAt(ve,Cf,this.up):xb.lookAt(Cf,ve,this.up);this.quaternion.setFromRotationMatrix(xb);a&&(xb.extractRotation(a.matrixWorld),md.setFromRotationMatrix(xb),this.quaternion.premultiply(md.inverse()))},add:function(a){if(1<arguments.length){for(var b=0;b<arguments.length;b++)this.add(arguments[b]);return this}if(a===this)return console.error("THREE.Object3D.add: object can't be added as a child of itself.",
a),this;a&&a.isObject3D?(null!==a.parent&&a.parent.remove(a),a.parent=this,this.children.push(a),a.dispatchEvent(Ok)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",a);return this},remove:function(a){if(1<arguments.length){for(var b=0;b<arguments.length;b++)this.remove(arguments[b]);return this}b=this.children.indexOf(a);-1!==b&&(a.parent=null,this.children.splice(b,1),a.dispatchEvent(Pk));return this},attach:function(a){this.updateWorldMatrix(!0,!1);xb.getInverse(this.matrixWorld);
null!==a.parent&&(a.parent.updateWorldMatrix(!0,!1),xb.multiply(a.parent.matrixWorld));a.applyMatrix4(xb);a.updateWorldMatrix(!1,!1);this.add(a);return this},getObjectById:function(a){return this.getObjectByProperty("id",a)},getObjectByName:function(a){return this.getObjectByProperty("name",a)},getObjectByProperty:function(a,b){if(this[a]===b)return this;for(var c=0,d=this.children.length;c<d;c++){var e=this.children[c].getObjectByProperty(a,b);if(void 0!==e)return e}},getWorldPosition:function(a){void 0===
a&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),a=new m);this.updateMatrixWorld(!0);return a.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(a){void 0===a&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),a=new na);this.updateMatrixWorld(!0);this.matrixWorld.decompose(ve,a,Mk);return a},getWorldScale:function(a){void 0===a&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),a=new m);this.updateMatrixWorld(!0);
this.matrixWorld.decompose(ve,Nk,a);return a},getWorldDirection:function(a){void 0===a&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),a=new m);this.updateMatrixWorld(!0);var b=this.matrixWorld.elements;return a.set(b[8],b[9],b[10]).normalize()},raycast:function(){},traverse:function(a){a(this);for(var b=this.children,c=0,d=b.length;c<d;c++)b[c].traverse(a)},traverseVisible:function(a){if(!1!==this.visible){a(this);for(var b=this.children,c=0,d=b.length;c<d;c++)b[c].traverseVisible(a)}},
traverseAncestors:function(a){var b=this.parent;null!==b&&(a(b),b.traverseAncestors(a))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale);this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(a){this.matrixAutoUpdate&&this.updateMatrix();if(this.matrixWorldNeedsUpdate||a)null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,a=!0;for(var b=this.children,c=
0,d=b.length;c<d;c++)b[c].updateMatrixWorld(a)},updateWorldMatrix:function(a,b){var c=this.parent;!0===a&&null!==c&&c.updateWorldMatrix(!0,!1);this.matrixAutoUpdate&&this.updateMatrix();null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix);if(!0===b)for(a=this.children,b=0,c=a.length;b<c;b++)a[b].updateWorldMatrix(!1,!0)},toJSON:function(a){function b(b,c){void 0===b[c.uuid]&&(b[c.uuid]=c.toJSON(a));return c.uuid}function c(a){var b=
[],c;for(c in a){var d=a[c];delete d.metadata;b.push(d)}return b}var d=void 0===a||"string"===typeof a,e={};d&&(a={geometries:{},materials:{},textures:{},images:{},shapes:{}},e.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var f={};f.uuid=this.uuid;f.type=this.type;""!==this.name&&(f.name=this.name);!0===this.castShadow&&(f.castShadow=!0);!0===this.receiveShadow&&(f.receiveShadow=!0);!1===this.visible&&(f.visible=!1);!1===this.frustumCulled&&(f.frustumCulled=!1);0!==this.renderOrder&&
(f.renderOrder=this.renderOrder);"{}"!==JSON.stringify(this.userData)&&(f.userData=this.userData);f.layers=this.layers.mask;f.matrix=this.matrix.toArray();!1===this.matrixAutoUpdate&&(f.matrixAutoUpdate=!1);this.isInstancedMesh&&(f.type="InstancedMesh",f.count=this.count,f.instanceMatrix=this.instanceMatrix.toJSON());if(this.isMesh||this.isLine||this.isPoints){f.geometry=b(a.geometries,this.geometry);var g=this.geometry.parameters;if(void 0!==g&&void 0!==g.shapes)if(g=g.shapes,Array.isArray(g))for(var h=
0,l=g.length;h<l;h++)b(a.shapes,g[h]);else b(a.shapes,g)}if(void 0!==this.material)if(Array.isArray(this.material)){g=[];h=0;for(l=this.material.length;h<l;h++)g.push(b(a.materials,this.material[h]));f.material=g}else f.material=b(a.materials,this.material);if(0<this.children.length)for(f.children=[],g=0;g<this.children.length;g++)f.children.push(this.children[g].toJSON(a).object);if(d){d=c(a.geometries);g=c(a.materials);h=c(a.textures);l=c(a.images);var k=c(a.shapes);0<d.length&&(e.geometries=d);
0<g.length&&(e.materials=g);0<h.length&&(e.textures=h);0<l.length&&(e.images=l);0<k.length&&(e.shapes=k)}e.object=f;return e},clone:function(a){return(new this.constructor).copy(this,a)},copy:function(a,b){void 0===b&&(b=!0);this.name=a.name;this.up.copy(a.up);this.position.copy(a.position);this.quaternion.copy(a.quaternion);this.scale.copy(a.scale);this.matrix.copy(a.matrix);this.matrixWorld.copy(a.matrixWorld);this.matrixAutoUpdate=a.matrixAutoUpdate;this.matrixWorldNeedsUpdate=a.matrixWorldNeedsUpdate;
this.layers.mask=a.layers.mask;this.visible=a.visible;this.castShadow=a.castShadow;this.receiveShadow=a.receiveShadow;this.frustumCulled=a.frustumCulled;this.renderOrder=a.renderOrder;this.userData=JSON.parse(JSON.stringify(a.userData));if(!0===b)for(b=0;b<a.children.length;b++)this.add(a.children[b].clone());return this}});xd.prototype=Object.assign(Object.create(z.prototype),{constructor:xd,isScene:!0,copy:function(a,b){z.prototype.copy.call(this,a,b);null!==a.background&&(this.background=a.background.clone());
null!==a.environment&&(this.environment=a.environment.clone());null!==a.fog&&(this.fog=a.fog.clone());null!==a.overrideMaterial&&(this.overrideMaterial=a.overrideMaterial.clone());this.autoUpdate=a.autoUpdate;this.matrixAutoUpdate=a.matrixAutoUpdate;return this},toJSON:function(a){var b=z.prototype.toJSON.call(this,a);null!==this.background&&(b.object.background=this.background.toJSON(a));null!==this.environment&&(b.object.environment=this.environment.toJSON(a));null!==this.fog&&(b.object.fog=this.fog.toJSON());
return b},dispose:function(){this.dispatchEvent({type:"dispose"})}});var yb=[new m,new m,new m,new m,new m,new m,new m,new m],we=new m,Zg=new Ta,nd=new m,od=new m,pd=new m,Qb=new m,Rb=new m,qc=new m,xe=new m,Df=new m,Ef=new m,Vb=new m;Object.assign(Ta.prototype,{isBox3:!0,set:function(a,b){this.min.copy(a);this.max.copy(b);return this},setFromArray:function(a){for(var b=Infinity,c=Infinity,d=Infinity,e=-Infinity,f=-Infinity,g=-Infinity,h=0,l=a.length;h<l;h+=3){var k=a[h],q=a[h+1],p=a[h+2];k<b&&(b=
k);q<c&&(c=q);p<d&&(d=p);k>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;h<l;h++){var k=a.getX(h),q=a.getY(h),p=a.getZ(h);k<b&&(b=k);q<c&&(c=q);p<d&&(d=p);k>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},setFromPoints:function(a){this.makeEmpty();for(var b=0,c=a.length;b<c;b++)this.expandByPoint(a[b]);
return this},setFromCenterAndSize:function(a,b){b=we.copy(b).multiplyScalar(.5);this.min.copy(a).sub(b);this.max.copy(a).add(b);return this},setFromObject:function(a){this.makeEmpty();return this.expandByObject(a)},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.min.copy(a.min);this.max.copy(a.max);return this},makeEmpty:function(){this.min.x=this.min.y=this.min.z=Infinity;this.max.x=this.max.y=this.max.z=-Infinity;return this},isEmpty:function(){return this.max.x<
this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(a){void 0===a&&(console.warn("THREE.Box3: .getCenter() target is now required"),a=new m);return this.isEmpty()?a.set(0,0,0):a.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(a){void 0===a&&(console.warn("THREE.Box3: .getSize() target is now required"),a=new m);return this.isEmpty()?a.set(0,0,0):a.subVectors(this.max,this.min)},expandByPoint:function(a){this.min.min(a);this.max.max(a);return this},expandByVector:function(a){this.min.sub(a);
this.max.add(a);return this},expandByScalar:function(a){this.min.addScalar(-a);this.max.addScalar(a);return this},expandByObject:function(a){a.updateWorldMatrix(!1,!1);var b=a.geometry;void 0!==b&&(null===b.boundingBox&&b.computeBoundingBox(),Zg.copy(b.boundingBox),Zg.applyMatrix4(a.matrixWorld),this.union(Zg));a=a.children;b=0;for(var c=a.length;b<c;b++)this.expandByObject(a[b]);return this},containsPoint:function(a){return a.x<this.min.x||a.x>this.max.x||a.y<this.min.y||a.y>this.max.y||a.z<this.min.z||
a.z>this.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.x<this.min.x||a.min.x>this.max.x||
a.max.y<this.min.y||a.min.y>this.max.y||a.max.z<this.min.z||a.min.z>this.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.normal.x){var b=a.normal.x*this.min.x;var c=a.normal.x*this.max.x}else b=a.normal.x*this.max.x,c=a.normal.x*this.min.x;0<a.normal.y?(b+=a.normal.y*this.min.y,c+=a.normal.y*this.max.y):(b+=a.normal.y*this.max.y,c+=a.normal.y*this.min.y);0<a.normal.z?(b+=a.normal.z*
this.min.z,c+=a.normal.z*this.max.z):(b+=a.normal.z*this.max.z,c+=a.normal.z*this.min.z);return b<=-a.constant&&c>=-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;d<e;d++)b=Math.max(b,c.distanceToSquared(a[d]));this.radius=Math.sqrt(b);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.center.copy(a.center);this.radius=a.radius;return this},isEmpty:function(){return 0>this.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<k){a=f*h-g;b=f*
g-h;var q=e*k;0<=a?b>=-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=0<a?-e:Math.min(Math.max(-e,-h),e),f=-a*a+b*(b+2*h)+l):b<=q?(a=0,b=Math.min(Math.max(-e,-h),e),f=b*(b+2*h)+l):(a=Math.max(0,-(f*e+g)),b=0<a?e:Math.min(Math.max(-e,-h),e),f=-a*a+b*(b+2*h)+l)}else b=0<f?-e:e,a=Math.max(0,-(f*b+g)),f=-a*a+b*(b+2*h)+l;c&&c.copy(this.direction).multiplyScalar(a).add(this.origin);
d&&d.copy(Ff).multiplyScalar(b).add($g);return f},intersectSphere:function(a,b){zb.subVectors(a.center,this.origin);var c=zb.dot(this.direction),d=zb.dot(zb)-c*c;a=a.radius*a.radius;if(d>a)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(d<c||c!==c)c=d;0<=e?(h=(a.min.z-f.z)*e,a=(a.max.z-f.z)*e):(h=(a.max.z-f.z)*e,a=(a.min.z-f.z)*e);if(g>a||h>c)return null;if(h>g||g!==g)g=h;if(a<c||c!==c)c=a;return 0>c?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(0<b){if(d)return null;d=1}else if(0>b)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||1<d))return b.copy(c).multiplyScalar(d).add(a.start)},intersectsLine:function(a){var b=this.distanceToPoint(a.start);a=this.distanceToPoint(a.end);return 0>b&&0<a||0>a&&0<b},intersectsBox:function(a){return a.intersectsPlane(this)},
intersectsSphere:function(a){return a.intersectsPlane(this)},coplanarPoint:function(a){void 0===a&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),a=new m);return a.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(a,b){b=b||Sk.getNormalMatrix(a);a=this.coplanarPoint(ch).applyMatrix4(a);b=this.normal.applyMatrix3(b).normalize();this.constant=-a.dot(b);return this},translate:function(a){this.constant-=a.dot(this.normal);return this},equals:function(a){return a.normal.equals(this.normal)&&
a.constant===this.constant}});var cb=new m,Ab=new m,dh=new m,Bb=new m,qd=new m,rd=new m,Di=new m,eh=new m,fh=new m,gh=new m;Object.assign(wa,{getNormal:function(a,b,c,d){void 0===d&&(console.warn("THREE.Triangle: .getNormal() target is now required"),d=new m);d.subVectors(c,b);cb.subVectors(a,b);d.cross(cb);a=d.lengthSq();return 0<a?d.multiplyScalar(1/Math.sqrt(a)):d.set(0,0,0)},getBarycoord:function(a,b,c,d,e){cb.subVectors(d,b);Ab.subVectors(c,b);dh.subVectors(a,b);a=cb.dot(cb);b=cb.dot(Ab);c=cb.dot(dh);
var f=Ab.dot(Ab);d=Ab.dot(dh);var g=a*f-b*b;void 0===e&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),e=new m);if(0===g)return e.set(-2,-1,-1);g=1/g;f=(f*c-b*d)*g;a=(a*d-b*c)*g;return e.set(1-f-a,a,f)},containsPoint:function(a,b,c,d){wa.getBarycoord(a,b,c,d,Bb);return 0<=Bb.x&&0<=Bb.y&&1>=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<a.length?this.setColorName(a):this},setColorName:function(a){var b=Ei[a];void 0!==b?this.setHex(b):console.warn("THREE.Color: Unknown color "+a);return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(a){this.r=a.r;
this.g=a.g;this.b=a.b;return this},copyGammaToLinear:function(a,b){void 0===b&&(b=2);this.r=Math.pow(a.r,b);this.g=Math.pow(a.g,b);this.b=Math.pow(a.b,b);return this},copyLinearToGamma:function(a,b){void 0===b&&(b=2);b=0<b?1/b:1;this.r=Math.pow(a.r,b);this.g=Math.pow(a.g,b);this.b=Math.pow(a.b,b);return this},convertGammaToLinear:function(a){this.copyGammaToLinear(this,a);return this},convertLinearToGamma:function(a){this.copyLinearToGamma(this,a);return this},copySRGBToLinear:function(a){this.r=
dg(a.r);this.g=dg(a.g);this.b=dg(a.b);return this},copyLinearToSRGB:function(a){this.r=eg(a.r);this.g=eg(a.g);this.b=eg(a.b);return this},convertSRGBToLinear:function(){this.copySRGBToLinear(this);return this},convertLinearToSRGB:function(){this.copyLinearToSRGB(this);return this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(a){void 0===a&&(console.warn("THREE.Color: .getHSL() target is now required"),
a={h:0,s:0,l:0});var b=this.r,c=this.g,d=this.b,e=Math.max(b,c,d),f=Math.min(b,c,d),g,h=(f+e)/2;if(f===e)f=g=0;else{var l=e-f;f=.5>=h?l/(e+f):l/(2-e-f);switch(e){case b:g=(c-d)/l+(c<d?6:0);break;case c:g=(d-b)/l+2;break;case d:g=(b-c)/l+4}g/=6}a.h=g;a.s=f;a.l=h;return a},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(a,b,c){this.getHSL(Aa);Aa.h+=a;Aa.s+=b;Aa.l+=c;this.setHSL(Aa.h,Aa.s,Aa.l);return this},add:function(a){this.r+=a.r;this.g+=
a.g;this.b+=a.b;return this},addColors:function(a,b){this.r=a.r+b.r;this.g=a.g+b.g;this.b=a.b+b.b;return this},addScalar:function(a){this.r+=a;this.g+=a;this.b+=a;return this},sub:function(a){this.r=Math.max(0,this.r-a.r);this.g=Math.max(0,this.g-a.g);this.b=Math.max(0,this.b-a.b);return this},multiply:function(a){this.r*=a.r;this.g*=a.g;this.b*=a.b;return this},multiplyScalar:function(a){this.r*=a;this.g*=a;this.b*=a;return this},lerp:function(a,b){this.r+=(a.r-this.r)*b;this.g+=(a.g-this.g)*b;this.b+=
(a.b-this.b)*b;return this},lerpHSL:function(a,b){this.getHSL(Aa);a.getHSL(Hf);a=K.lerp(Aa.h,Hf.h,b);var c=K.lerp(Aa.s,Hf.s,b);b=K.lerp(Aa.l,Hf.l,b);this.setHSL(a,c,b);return this},equals:function(a){return a.r===this.r&&a.g===this.g&&a.b===this.b},fromArray:function(a,b){void 0===b&&(b=0);this.r=a[b];this.g=a[b+1];this.b=a[b+2];return this},toArray:function(a,b){void 0===a&&(a=[]);void 0===b&&(b=0);a[b]=this.r;a[b+1]=this.g;a[b+2]=this.b;return a},fromBufferAttribute:function(a,b){this.r=a.getX(b);
this.g=a.getY(b);this.b=a.getZ(b);!0===a.normalized&&(this.r/=255,this.g/=255,this.b/=255);return this},toJSON:function(){return this.getHex()}});D.NAMES=Ei;Object.assign(zc.prototype,{clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.normal.copy(a.normal);this.color.copy(a.color);this.materialIndex=a.materialIndex;for(var b=0,c=a.vertexNormals.length;b<c;b++)this.vertexNormals[b]=a.vertexNormals[b].clone();b=0;for(c=a.vertexColors.length;b<
c;b++)this.vertexColors[b]=a.vertexColors[b].clone();return this}});var jj=0;G.prototype=Object.assign(Object.create(ua.prototype),{constructor:G,isMaterial:!0,onBeforeCompile:function(){},customProgramCacheKey:function(){return this.onBeforeCompile.toString()},setValues:function(a){if(void 0!==a)for(var b in a){var c=a[b];if(void 0===c)console.warn("THREE.Material: '"+b+"' parameter is undefined.");else if("shading"===b)console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),
this.flatShading=1===c?!0:!1;else{var d=this[b];void 0===d?console.warn("THREE."+this.type+": '"+b+"' is not a property of this material."):d&&d.isColor?d.set(c):d&&d.isVector3&&c&&c.isVector3?d.copy(c):this[b]=c}}},toJSON:function(a){function b(a){var b=[],c;for(c in a){var d=a[c];delete d.metadata;b.push(d)}return b}var c=void 0===a||"string"===typeof a;c&&(a={textures:{},images:{}});var d={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};d.uuid=this.uuid;d.type=this.type;""!==
this.name&&(d.name=this.name);this.color&&this.color.isColor&&(d.color=this.color.getHex());void 0!==this.roughness&&(d.roughness=this.roughness);void 0!==this.metalness&&(d.metalness=this.metalness);this.sheen&&this.sheen.isColor&&(d.sheen=this.sheen.getHex());this.emissive&&this.emissive.isColor&&(d.emissive=this.emissive.getHex());this.emissiveIntensity&&1!==this.emissiveIntensity&&(d.emissiveIntensity=this.emissiveIntensity);this.specular&&this.specular.isColor&&(d.specular=this.specular.getHex());
void 0!==this.shininess&&(d.shininess=this.shininess);void 0!==this.clearcoat&&(d.clearcoat=this.clearcoat);void 0!==this.clearcoatRoughness&&(d.clearcoatRoughness=this.clearcoatRoughness);this.clearcoatMap&&this.clearcoatMap.isTexture&&(d.clearcoatMap=this.clearcoatMap.toJSON(a).uuid);this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(d.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(a).uuid);this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(d.clearcoatNormalMap=
this.clearcoatNormalMap.toJSON(a).uuid,d.clearcoatNormalScale=this.clearcoatNormalScale.toArray());this.map&&this.map.isTexture&&(d.map=this.map.toJSON(a).uuid);this.matcap&&this.matcap.isTexture&&(d.matcap=this.matcap.toJSON(a).uuid);this.alphaMap&&this.alphaMap.isTexture&&(d.alphaMap=this.alphaMap.toJSON(a).uuid);this.lightMap&&this.lightMap.isTexture&&(d.lightMap=this.lightMap.toJSON(a).uuid);this.aoMap&&this.aoMap.isTexture&&(d.aoMap=this.aoMap.toJSON(a).uuid,d.aoMapIntensity=this.aoMapIntensity);
this.bumpMap&&this.bumpMap.isTexture&&(d.bumpMap=this.bumpMap.toJSON(a).uuid,d.bumpScale=this.bumpScale);this.normalMap&&this.normalMap.isTexture&&(d.normalMap=this.normalMap.toJSON(a).uuid,d.normalMapType=this.normalMapType,d.normalScale=this.normalScale.toArray());this.displacementMap&&this.displacementMap.isTexture&&(d.displacementMap=this.displacementMap.toJSON(a).uuid,d.displacementScale=this.displacementScale,d.displacementBias=this.displacementBias);this.roughnessMap&&this.roughnessMap.isTexture&&
(d.roughnessMap=this.roughnessMap.toJSON(a).uuid);this.metalnessMap&&this.metalnessMap.isTexture&&(d.metalnessMap=this.metalnessMap.toJSON(a).uuid);this.emissiveMap&&this.emissiveMap.isTexture&&(d.emissiveMap=this.emissiveMap.toJSON(a).uuid);this.specularMap&&this.specularMap.isTexture&&(d.specularMap=this.specularMap.toJSON(a).uuid);this.envMap&&this.envMap.isTexture&&(d.envMap=this.envMap.toJSON(a).uuid,d.reflectivity=this.reflectivity,d.refractionRatio=this.refractionRatio,void 0!==this.combine&&
(d.combine=this.combine),void 0!==this.envMapIntensity&&(d.envMapIntensity=this.envMapIntensity));this.gradientMap&&this.gradientMap.isTexture&&(d.gradientMap=this.gradientMap.toJSON(a).uuid);void 0!==this.size&&(d.size=this.size);void 0!==this.sizeAttenuation&&(d.sizeAttenuation=this.sizeAttenuation);1!==this.blending&&(d.blending=this.blending);!0===this.flatShading&&(d.flatShading=this.flatShading);0!==this.side&&(d.side=this.side);this.vertexColors&&(d.vertexColors=!0);1>this.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);0<this.alphaTest&&(d.alphaTest=this.alphaTest);!0===this.premultipliedAlpha&&(d.premultipliedAlpha=
this.premultipliedAlpha);!0===this.wireframe&&(d.wireframe=this.wireframe);1<this.wireframeLinewidth&&(d.wireframeLinewidth=this.wireframeLinewidth);"round"!==this.wireframeLinecap&&(d.wireframeLinecap=this.wireframeLinecap);"round"!==this.wireframeLinejoin&&(d.wireframeLinejoin=this.wireframeLinejoin);!0===this.morphTargets&&(d.morphTargets=!0);!0===this.morphNormals&&(d.morphNormals=!0);!0===this.skinning&&(d.skinning=!0);!1===this.visible&&(d.visible=!1);!1===this.toneMapped&&(d.toneMapped=!1);
"{}"!==JSON.stringify(this.userData)&&(d.userData=this.userData);c&&(c=b(a.textures),a=b(a.images),0<c.length&&(d.textures=c),0<a.length&&(d.images=a));return d},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.name=a.name;this.fog=a.fog;this.blending=a.blending;this.side=a.side;this.flatShading=a.flatShading;this.vertexColors=a.vertexColors;this.opacity=a.opacity;this.transparent=a.transparent;this.blendSrc=a.blendSrc;this.blendDst=a.blendDst;this.blendEquation=a.blendEquation;
this.blendSrcAlpha=a.blendSrcAlpha;this.blendDstAlpha=a.blendDstAlpha;this.blendEquationAlpha=a.blendEquationAlpha;this.depthFunc=a.depthFunc;this.depthTest=a.depthTest;this.depthWrite=a.depthWrite;this.stencilWriteMask=a.stencilWriteMask;this.stencilFunc=a.stencilFunc;this.stencilRef=a.stencilRef;this.stencilFuncMask=a.stencilFuncMask;this.stencilFail=a.stencilFail;this.stencilZFail=a.stencilZFail;this.stencilZPass=a.stencilZPass;this.stencilWrite=a.stencilWrite;var b=a.clippingPlanes,c=null;if(null!==
b){var d=b.length;c=Array(d);for(var e=0;e!==d;++e)c[e]=b[e].clone()}this.clippingPlanes=c;this.clipIntersection=a.clipIntersection;this.clipShadows=a.clipShadows;this.shadowSide=a.shadowSide;this.colorWrite=a.colorWrite;this.precision=a.precision;this.polygonOffset=a.polygonOffset;this.polygonOffsetFactor=a.polygonOffsetFactor;this.polygonOffsetUnits=a.polygonOffsetUnits;this.dithering=a.dithering;this.alphaTest=a.alphaTest;this.premultipliedAlpha=a.premultipliedAlpha;this.visible=a.visible;this.toneMapped=
a.toneMapped;this.userData=JSON.parse(JSON.stringify(a.userData));return this},dispose:function(){this.dispatchEvent({type:"dispose"})}});Object.defineProperty(G.prototype,"needsUpdate",{set:function(a){!0===a&&this.version++}});Oa.prototype=Object.create(G.prototype);Oa.prototype.constructor=Oa;Oa.prototype.isMeshBasicMaterial=!0;Oa.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.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;return this};var ia=new m,If=new w;Object.defineProperty(H.prototype,
"needsUpdate",{set:function(a){!0===a&&this.version++}});Object.assign(H.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setUsage:function(a){this.usage=a;return this},copy:function(a){this.name=a.name;this.array=new a.array.constructor(a.array);this.itemSize=a.itemSize;this.count=a.count;this.normalized=a.normalized;this.usage=a.usage;return this},copyAt:function(a,b,c){a*=this.itemSize;c*=b.itemSize;for(var d=0,e=this.itemSize;d<e;d++)this.array[a+d]=b.array[c+d];return this},copyArray:function(a){this.array.set(a);
return this},copyColorsArray:function(a){for(var b=this.array,c=0,d=0,e=a.length;d<e;d++){var f=a[d];void 0===f&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",d),f=new D);b[c++]=f.r;b[c++]=f.g;b[c++]=f.b}return this},copyVector2sArray:function(a){for(var b=this.array,c=0,d=0,e=a.length;d<e;d++){var f=a[d];void 0===f&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",d),f=new w);b[c++]=f.x;b[c++]=f.y}return this},copyVector3sArray:function(a){for(var b=
this.array,c=0,d=0,e=a.length;d<e;d++){var f=a[d];void 0===f&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",d),f=new m);b[c++]=f.x;b[c++]=f.y;b[c++]=f.z}return this},copyVector4sArray:function(a){for(var b=this.array,c=0,d=0,e=a.length;d<e;d++){var f=a[d];void 0===f&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",d),f=new Y);b[c++]=f.x;b[c++]=f.y;b[c++]=f.z;b[c++]=f.w}return this},applyMatrix3:function(a){if(2===this.itemSize)for(var b=
0,c=this.count;b<c;b++)If.fromBufferAttribute(this,b),If.applyMatrix3(a),this.setXY(b,If.x,If.y);else if(3===this.itemSize)for(b=0,c=this.count;b<c;b++)ia.fromBufferAttribute(this,b),ia.applyMatrix3(a),this.setXYZ(b,ia.x,ia.y,ia.z);return this},applyMatrix4:function(a){for(var b=0,c=this.count;b<c;b++)ia.x=this.getX(b),ia.y=this.getY(b),ia.z=this.getZ(b),ia.applyMatrix4(a),this.setXYZ(b,ia.x,ia.y,ia.z);return this},applyNormalMatrix:function(a){for(var b=0,c=this.count;b<c;b++)ia.x=this.getX(b),ia.y=
this.getY(b),ia.z=this.getZ(b),ia.applyNormalMatrix(a),this.setXYZ(b,ia.x,ia.y,ia.z);return this},transformDirection:function(a){for(var b=0,c=this.count;b<c;b++)ia.x=this.getX(b),ia.y=this.getY(b),ia.z=this.getZ(b),ia.transformDirection(a),this.setXYZ(b,ia.x,ia.y,ia.z);return this},set:function(a,b){void 0===b&&(b=0);this.array.set(a,b);return this},getX:function(a){return this.array[a*this.itemSize]},setX:function(a,b){this.array[a*this.itemSize]=b;return this},getY:function(a){return this.array[a*
this.itemSize+1]},setY:function(a,b){this.array[a*this.itemSize+1]=b;return this},getZ:function(a){return this.array[a*this.itemSize+2]},setZ:function(a,b){this.array[a*this.itemSize+2]=b;return this},getW:function(a){return this.array[a*this.itemSize+3]},setW:function(a,b){this.array[a*this.itemSize+3]=b;return this},setXY:function(a,b,c){a*=this.itemSize;this.array[a+0]=b;this.array[a+1]=c;return this},setXYZ:function(a,b,c,d){a*=this.itemSize;this.array[a+0]=b;this.array[a+1]=c;this.array[a+2]=
d;return this},setXYZW:function(a,b,c,d,e){a*=this.itemSize;this.array[a+0]=b;this.array[a+1]=c;this.array[a+2]=d;this.array[a+3]=e;return this},onUpload:function(a){this.onUploadCallback=a;return this},clone:function(){return(new this.constructor(this.array,this.itemSize)).copy(this)},toJSON:function(){return{itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized}}});yd.prototype=Object.create(H.prototype);yd.prototype.constructor=
yd;zd.prototype=Object.create(H.prototype);zd.prototype.constructor=zd;Ad.prototype=Object.create(H.prototype);Ad.prototype.constructor=Ad;Bd.prototype=Object.create(H.prototype);Bd.prototype.constructor=Bd;Xb.prototype=Object.create(H.prototype);Xb.prototype.constructor=Xb;Cd.prototype=Object.create(H.prototype);Cd.prototype.constructor=Cd;Yb.prototype=Object.create(H.prototype);Yb.prototype.constructor=Yb;B.prototype=Object.create(H.prototype);B.prototype.constructor=B;Dd.prototype=Object.create(H.prototype);
Dd.prototype.constructor=Dd;Object.assign(vh.prototype,{computeGroups:function(a){var b=[],c=void 0,d=a.faces;for(a=0;a<d.length;a++){var e=d[a];if(e.materialIndex!==c){c=e.materialIndex;void 0!==f&&(f.count=3*a-f.start,b.push(f));var f={start:3*a,materialIndex:c}}}void 0!==f&&(f.count=3*a-f.start,b.push(f));this.groups=b},fromGeometry:function(a){var b=a.faces,c=a.vertices,d=a.faceVertexUvs,e=d[0]&&0<d[0].length,f=d[1]&&0<d[1].length,g=a.morphTargets,h=g.length;if(0<h){var l=[];for(var k=0;k<h;k++)l[k]=
{name:g[k].name,data:[]};this.morphTargets.position=l}k=a.morphNormals;var q=k.length;if(0<q){var p=[];for(var m=0;m<q;m++)p[m]={name:k[m].name,data:[]};this.morphTargets.normal=p}m=a.skinIndices;var t=a.skinWeights,r=m.length===c.length,u=t.length===c.length;0<c.length&&0===b.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var A=0;A<b.length;A++){var E=b[A];this.vertices.push(c[E.a],c[E.b],c[E.c]);var x=E.vertexNormals;3===x.length?this.normals.push(x[0],
x[1],x[2]):(x=E.normal,this.normals.push(x,x,x));x=E.vertexColors;3===x.length?this.colors.push(x[0],x[1],x[2]):(x=E.color,this.colors.push(x,x,x));!0===e&&(x=d[0][A],void 0!==x?this.uvs.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",A),this.uvs.push(new w,new w,new w)));!0===f&&(x=d[1][A],void 0!==x?this.uvs2.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",A),this.uvs2.push(new w,new w,new w)));for(x=0;x<
h;x++){var y=g[x].vertices;l[x].data.push(y[E.a],y[E.b],y[E.c])}for(x=0;x<q;x++)y=k[x].vertexNormals[A],p[x].data.push(y.a,y.b,y.c);r&&this.skinIndices.push(m[E.a],m[E.b],m[E.c]);u&&this.skinWeights.push(t[E.a],t[E.b],t[E.c])}this.computeGroups(a);this.verticesNeedUpdate=a.verticesNeedUpdate;this.normalsNeedUpdate=a.normalsNeedUpdate;this.colorsNeedUpdate=a.colorsNeedUpdate;this.uvsNeedUpdate=a.uvsNeedUpdate;this.groupsNeedUpdate=a.groupsNeedUpdate;null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());
null!==a.boundingBox&&(this.boundingBox=a.boundingBox.clone());return this}});var kj=1,ob=new M,hh=new z,sd=new m,Na=new Ta,ye=new Ta,qa=new m;F.prototype=Object.assign(Object.create(ua.prototype),{constructor:F,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(a){Array.isArray(a)?this.index=new (65535<wh(a)?Yb:Xb)(a,1):this.index=a},getAttribute:function(a){return this.attributes[a]},setAttribute:function(a,b){this.attributes[a]=b;return this},deleteAttribute:function(a){delete this.attributes[a];
return this},addGroup:function(a,b,c){this.groups.push({start:a,count:b,materialIndex:void 0!==c?c:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(a,b){this.drawRange.start=a;this.drawRange.count=b},applyMatrix4:function(a){var b=this.attributes.position;void 0!==b&&(b.applyMatrix4(a),b.needsUpdate=!0);b=this.attributes.normal;if(void 0!==b){var c=(new xa).getNormalMatrix(a);b.applyNormalMatrix(c);b.needsUpdate=!0}b=this.attributes.tangent;void 0!==b&&(b.transformDirection(a),b.needsUpdate=
!0);null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();return this},rotateX:function(a){ob.makeRotationX(a);this.applyMatrix4(ob);return this},rotateY:function(a){ob.makeRotationY(a);this.applyMatrix4(ob);return this},rotateZ:function(a){ob.makeRotationZ(a);this.applyMatrix4(ob);return this},translate:function(a,b,c){ob.makeTranslation(a,b,c);this.applyMatrix4(ob);return this},scale:function(a,b,c){ob.makeScale(a,b,c);this.applyMatrix4(ob);
return this},lookAt:function(a){hh.lookAt(a);hh.updateMatrix();this.applyMatrix4(hh.matrix);return this},center:function(){this.computeBoundingBox();this.boundingBox.getCenter(sd).negate();this.translate(sd.x,sd.y,sd.z);return this},setFromObject:function(a){var b=a.geometry;if(a.isPoints||a.isLine){a=new B(3*b.vertices.length,3);var c=new B(3*b.colors.length,3);this.setAttribute("position",a.copyVector3sArray(b.vertices));this.setAttribute("color",c.copyColorsArray(b.colors));b.lineDistances&&b.lineDistances.length===
b.vertices.length&&(a=new B(b.lineDistances.length,1),this.setAttribute("lineDistance",a.copyArray(b.lineDistances)));null!==b.boundingSphere&&(this.boundingSphere=b.boundingSphere.clone());null!==b.boundingBox&&(this.boundingBox=b.boundingBox.clone())}else a.isMesh&&b&&b.isGeometry&&this.fromGeometry(b);return this},setFromPoints:function(a){for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c];b.push(e.x,e.y,e.z||0)}this.setAttribute("position",new B(b,3));return this},updateFromObject:function(a){var b=
a.geometry;if(a.isMesh){var c=b.__directGeometry;!0===b.elementsNeedUpdate&&(c=void 0,b.elementsNeedUpdate=!1);if(void 0===c)return this.fromGeometry(b);c.verticesNeedUpdate=b.verticesNeedUpdate;c.normalsNeedUpdate=b.normalsNeedUpdate;c.colorsNeedUpdate=b.colorsNeedUpdate;c.uvsNeedUpdate=b.uvsNeedUpdate;c.groupsNeedUpdate=b.groupsNeedUpdate;b.verticesNeedUpdate=!1;b.normalsNeedUpdate=!1;b.colorsNeedUpdate=!1;b.uvsNeedUpdate=!1;b.groupsNeedUpdate=!1;b=c}!0===b.verticesNeedUpdate&&(c=this.attributes.position,
void 0!==c&&(c.copyVector3sArray(b.vertices),c.needsUpdate=!0),b.verticesNeedUpdate=!1);!0===b.normalsNeedUpdate&&(c=this.attributes.normal,void 0!==c&&(c.copyVector3sArray(b.normals),c.needsUpdate=!0),b.normalsNeedUpdate=!1);!0===b.colorsNeedUpdate&&(c=this.attributes.color,void 0!==c&&(c.copyColorsArray(b.colors),c.needsUpdate=!0),b.colorsNeedUpdate=!1);b.uvsNeedUpdate&&(c=this.attributes.uv,void 0!==c&&(c.copyVector2sArray(b.uvs),c.needsUpdate=!0),b.uvsNeedUpdate=!1);b.lineDistancesNeedUpdate&&
(c=this.attributes.lineDistance,void 0!==c&&(c.copyArray(b.lineDistances),c.needsUpdate=!0),b.lineDistancesNeedUpdate=!1);b.groupsNeedUpdate&&(b.computeGroups(a.geometry),this.groups=b.groups,b.groupsNeedUpdate=!1);return this},fromGeometry:function(a){a.__directGeometry=(new vh).fromGeometry(a);return this.fromDirectGeometry(a.__directGeometry)},fromDirectGeometry:function(a){var b=new Float32Array(3*a.vertices.length);this.setAttribute("position",(new H(b,3)).copyVector3sArray(a.vertices));0<a.normals.length&&
(b=new Float32Array(3*a.normals.length),this.setAttribute("normal",(new H(b,3)).copyVector3sArray(a.normals)));0<a.colors.length&&(b=new Float32Array(3*a.colors.length),this.setAttribute("color",(new H(b,3)).copyColorsArray(a.colors)));0<a.uvs.length&&(b=new Float32Array(2*a.uvs.length),this.setAttribute("uv",(new H(b,2)).copyVector2sArray(a.uvs)));0<a.uvs2.length&&(b=new Float32Array(2*a.uvs2.length),this.setAttribute("uv2",(new H(b,2)).copyVector2sArray(a.uvs2)));this.groups=a.groups;for(var c in a.morphTargets){b=
[];for(var d=a.morphTargets[c],e=0,f=d.length;e<f;e++){var g=d[e],h=new B(3*g.data.length,3);h.name=g.name;b.push(h.copyVector3sArray(g.data))}this.morphAttributes[c]=b}0<a.skinIndices.length&&(c=new B(4*a.skinIndices.length,4),this.setAttribute("skinIndex",c.copyVector4sArray(a.skinIndices)));0<a.skinWeights.length&&(c=new B(4*a.skinWeights.length,4),this.setAttribute("skinWeight",c.copyVector4sArray(a.skinWeights)));null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());null!==
a.boundingBox&&(this.boundingBox=a.boundingBox.clone());return this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new Ta);var a=this.attributes.position,b=this.morphAttributes.position;if(void 0!==a){if(this.boundingBox.setFromBufferAttribute(a),b){a=0;for(var c=b.length;a<c;a++)Na.setFromBufferAttribute(b[a]),this.morphTargetsRelative?(qa.addVectors(this.boundingBox.min,Na.min),this.boundingBox.expandByPoint(qa),qa.addVectors(this.boundingBox.max,Na.max),this.boundingBox.expandByPoint(qa)):
(this.boundingBox.expandByPoint(Na.min),this.boundingBox.expandByPoint(Na.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new eb);var a=this.attributes.position,b=this.morphAttributes.position;
if(a){var c=this.boundingSphere.center;Na.setFromBufferAttribute(a);if(b)for(var d=0,e=b.length;d<e;d++)ye.setFromBufferAttribute(b[d]),this.morphTargetsRelative?(qa.addVectors(Na.min,ye.min),Na.expandByPoint(qa),qa.addVectors(Na.max,ye.max),Na.expandByPoint(qa)):(Na.expandByPoint(ye.min),Na.expandByPoint(ye.max));Na.getCenter(c);e=d=0;for(var f=a.count;e<f;e++)qa.fromBufferAttribute(a,e),d=Math.max(d,c.distanceToSquared(qa));if(b)for(e=0,f=b.length;e<f;e++)for(var g=b[e],h=this.morphTargetsRelative,
l=0,k=g.count;l<k;l++)qa.fromBufferAttribute(g,l),h&&(sd.fromBufferAttribute(a,l),qa.add(sd)),d=Math.max(d,c.distanceToSquared(qa));this.boundingSphere.radius=Math.sqrt(d);isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}},computeFaceNormals:function(){},computeVertexNormals:function(){var a=this.index,b=this.getAttribute("position");if(void 0!==b){var c=this.getAttribute("normal");
if(void 0===c)c=new H(new Float32Array(3*b.count),3),this.setAttribute("normal",c);else for(var d=0,e=c.count;d<e;d++)c.setXYZ(d,0,0,0);d=new m;e=new m;var f=new m,g=new m,h=new m,l=new m,k=new m,q=new m;if(a)for(var p=0,v=a.count;p<v;p+=3){var t=a.getX(p+0),r=a.getX(p+1),u=a.getX(p+2);d.fromBufferAttribute(b,t);e.fromBufferAttribute(b,r);f.fromBufferAttribute(b,u);k.subVectors(f,e);q.subVectors(d,e);k.cross(q);g.fromBufferAttribute(c,t);h.fromBufferAttribute(c,r);l.fromBufferAttribute(c,u);g.add(k);
h.add(k);l.add(k);c.setXYZ(t,g.x,g.y,g.z);c.setXYZ(r,h.x,h.y,h.z);c.setXYZ(u,l.x,l.y,l.z)}else for(a=0,g=b.count;a<g;a+=3)d.fromBufferAttribute(b,a+0),e.fromBufferAttribute(b,a+1),f.fromBufferAttribute(b,a+2),k.subVectors(f,e),q.subVectors(d,e),k.cross(q),c.setXYZ(a+0,k.x,k.y,k.z),c.setXYZ(a+1,k.x,k.y,k.z),c.setXYZ(a+2,k.x,k.y,k.z);this.normalizeNormals();c.needsUpdate=!0}},merge:function(a,b){if(a&&a.isBufferGeometry){void 0===b&&(b=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));
var c=this.attributes,d;for(d in c)if(void 0!==a.attributes[d]){var e=c[d].array,f=a.attributes[d],g=f.array,h=f.itemSize*b;f=Math.min(g.length,e.length-h);for(var l=0;l<f;l++,h++)e[h]=g[l]}return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",a)},normalizeNormals:function(){for(var a=this.attributes.normal,b=0,c=a.count;b<c;b++)qa.fromBufferAttribute(a,b),qa.normalize(),a.setXYZ(b,qa.x,qa.y,qa.z)},toNonIndexed:function(){function a(a,b){var c=
a.array,d=a.itemSize;a=a.normalized;for(var e=new c.constructor(b.length*d),f,g=0,h=0,l=b.length;h<l;h++){f=b[h]*d;for(var k=0;k<d;k++)e[g++]=c[f++]}return new H(e,d,a)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var b=new F,c=this.index.array,d=this.attributes;for(g in d){var e=a(d[g],c);b.setAttribute(g,e)}d=this.morphAttributes;for(var f in d){var g=[];e=d[f];for(var h=0,l=e.length;h<l;h++){var k=a(e[h],c);g.push(k)}b.morphAttributes[f]=
g}b.morphTargetsRelative=this.morphTargetsRelative;c=this.groups;f=0;for(d=c.length;f<d;f++)g=c[f],b.addGroup(g.start,g.count,g.materialIndex);return b},toJSON:function(){var a={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};a.uuid=this.uuid;a.type=this.type;""!==this.name&&(a.name=this.name);0<Object.keys(this.userData).length&&(a.userData=this.userData);if(void 0!==this.parameters){var b=this.parameters;for(c in b)void 0!==b[c]&&(a[c]=b[c]);return a}a.data={attributes:{}};
var c=this.index;null!==c&&(a.data.index={type:c.array.constructor.name,array:Array.prototype.slice.call(c.array)});c=this.attributes;for(var d in c){var e=c[d],f=e.toJSON(a.data);""!==e.name&&(f.name=e.name);a.data.attributes[d]=f}d={};c=!1;for(b in this.morphAttributes){e=this.morphAttributes[b];f=[];for(var g=0,h=e.length;g<h;g++){var l=e[g],k=l.toJSON(a.data);""!==l.name&&(k.name=l.name);f.push(k)}0<f.length&&(d[b]=f,c=!0)}c&&(a.data.morphAttributes=d,a.data.morphTargetsRelative=this.morphTargetsRelative);
b=this.groups;0<b.length&&(a.data.groups=JSON.parse(JSON.stringify(b)));b=this.boundingSphere;null!==b&&(a.data.boundingSphere={center:b.center.toArray(),radius:b.radius});return a},clone:function(){return(new F).copy(this)},copy:function(a){this.index=null;this.attributes={};this.morphAttributes={};this.groups=[];this.boundingSphere=this.boundingBox=null;var b={};this.name=a.name;var c=a.index;null!==c&&this.setIndex(c.clone(b));c=a.attributes;for(var d in c)this.setAttribute(d,c[d].clone(b));d=
a.morphAttributes;for(var e in d){c=[];for(var f=d[e],g=0,h=f.length;g<h;g++)c.push(f[g].clone(b));this.morphAttributes[e]=c}this.morphTargetsRelative=a.morphTargetsRelative;b=a.groups;e=0;for(d=b.length;e<d;e++)c=b[e],this.addGroup(c.start,c.count,c.materialIndex);b=a.boundingBox;null!==b&&(this.boundingBox=b.clone());b=a.boundingSphere;null!==b&&(this.boundingSphere=b.clone());this.drawRange.start=a.drawRange.start;this.drawRange.count=a.drawRange.count;this.userData=a.userData;return this},dispose:function(){this.dispatchEvent({type:"dispose"})}});
var Fi=new M,rc=new Wb,ih=new eb,Cb=new m,Db=new m,Eb=new m,fg=new m,gg=new m,hg=new m,Ie=new m,Je=new m,Ke=new m,Ac=new w,Bc=new w,Cc=new w,Ed=new m,Ge=new m;X.prototype=Object.assign(Object.create(z.prototype),{constructor:X,isMesh:!0,copy:function(a){z.prototype.copy.call(this,a);void 0!==a.morphTargetInfluences&&(this.morphTargetInfluences=a.morphTargetInfluences.slice());void 0!==a.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},a.morphTargetDictionary));this.material=a.material;
this.geometry=a.geometry;return this},updateMorphTargets:function(){var a=this.geometry;if(a.isBufferGeometry){a=a.morphAttributes;var b=Object.keys(a);if(0<b.length&&(a=a[b[0]],void 0!==a)){this.morphTargetInfluences=[];this.morphTargetDictionary={};b=0;for(var c=a.length;b<c;b++){var d=a[b].name||String(b);this.morphTargetInfluences.push(0);this.morphTargetDictionary[d]=b}}}else a=a.morphTargets,void 0!==a&&0<a.length&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")},
raycast:function(a,b){var c=this.geometry,d=this.material,e=this.matrixWorld;if(void 0!==d&&(null===c.boundingSphere&&c.computeBoundingSphere(),ih.copy(c.boundingSphere),ih.applyMatrix4(e),!1!==a.ray.intersectsSphere(ih)&&(Fi.getInverse(e),rc.copy(a.ray).applyMatrix4(Fi),null===c.boundingBox||!1!==rc.intersectsBox(c.boundingBox))))if(c.isBufferGeometry){var f=c.index,g=c.attributes.position;e=c.morphAttributes.position;var h=c.morphTargetsRelative,l=c.attributes.uv,k=c.attributes.uv2,q=c.groups,p=
c.drawRange;if(null!==f)if(Array.isArray(d))for(var m=0,t=q.length;m<t;m++)for(var r=q[m],u=d[r.materialIndex],A=Math.max(r.start,p.start),E=Math.min(r.start+r.count,p.start+p.count);A<E;A+=3){c=f.getX(A);var x=f.getX(A+1),y=f.getX(A+2);if(c=He(this,u,a,rc,g,e,h,l,k,c,x,y))c.faceIndex=Math.floor(A/3),c.face.materialIndex=r.materialIndex,b.push(c)}else for(q=Math.max(0,p.start),p=Math.min(f.count,p.start+p.count);q<p;q+=3){if(c=f.getX(q),m=f.getX(q+1),t=f.getX(q+2),c=He(this,d,a,rc,g,e,h,l,k,c,m,t))c.faceIndex=
Math.floor(q/3),b.push(c)}else if(void 0!==g)if(Array.isArray(d))for(f=0,m=q.length;f<m;f++)for(t=q[f],r=d[t.materialIndex],u=Math.max(t.start,p.start),A=Math.min(t.start+t.count,p.start+p.count);u<A;u+=3){if(c=He(this,r,a,rc,g,e,h,l,k,u,u+1,u+2))c.faceIndex=Math.floor(u/3),c.face.materialIndex=t.materialIndex,b.push(c)}else for(q=Math.max(0,p.start),p=Math.min(g.count,p.start+p.count);q<p;q+=3)if(c=He(this,d,a,rc,g,e,h,l,k,q,q+1,q+2))c.faceIndex=Math.floor(q/3),b.push(c)}else if(c.isGeometry)for(e=
Array.isArray(d),h=c.vertices,l=c.faces,c=c.faceVertexUvs[0],0<c.length&&(g=c),k=0,p=l.length;k<p;k++)if(q=l[k],c=e?d[q.materialIndex]:d,void 0!==c&&(f=h[q.a],m=h[q.b],t=h[q.c],c=xh(this,c,a,rc,f,m,t,Ed)))g&&g[k]&&(r=g[k],Ac.copy(r[0]),Bc.copy(r[1]),Cc.copy(r[2]),c.uv=wa.getUV(Ed,f,m,t,Ac,Bc,Cc,new w)),c.face=q,c.faceIndex=k,b.push(c)}});var lj=0,pb=new M,jh=new z,Jf=new m;L.prototype=Object.assign(Object.create(ua.prototype),{constructor:L,isGeometry:!0,applyMatrix4:function(a){for(var b=(new xa).getNormalMatrix(a),
c=0,d=this.vertices.length;c<d;c++)this.vertices[c].applyMatrix4(a);a=0;for(c=this.faces.length;a<c;a++){d=this.faces[a];d.normal.applyMatrix3(b).normalize();for(var e=0,f=d.vertexNormals.length;e<f;e++)d.vertexNormals[e].applyMatrix3(b).normalize()}null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();this.normalsNeedUpdate=this.verticesNeedUpdate=!0;return this},rotateX:function(a){pb.makeRotationX(a);this.applyMatrix4(pb);return this},rotateY:function(a){pb.makeRotationY(a);
this.applyMatrix4(pb);return this},rotateZ:function(a){pb.makeRotationZ(a);this.applyMatrix4(pb);return this},translate:function(a,b,c){pb.makeTranslation(a,b,c);this.applyMatrix4(pb);return this},scale:function(a,b,c){pb.makeScale(a,b,c);this.applyMatrix4(pb);return this},lookAt:function(a){jh.lookAt(a);jh.updateMatrix();this.applyMatrix4(jh.matrix);return this},fromBufferGeometry:function(a){function b(a,b,d,e){var f=void 0===h?[]:[c.colors[a].clone(),c.colors[b].clone(),c.colors[d].clone()],n=
void 0===g?[]:[(new m).fromBufferAttribute(g,a),(new m).fromBufferAttribute(g,b),(new m).fromBufferAttribute(g,d)];e=new zc(a,b,d,n,f,e);c.faces.push(e);void 0!==l&&c.faceVertexUvs[0].push([(new w).fromBufferAttribute(l,a),(new w).fromBufferAttribute(l,b),(new w).fromBufferAttribute(l,d)]);void 0!==k&&c.faceVertexUvs[1].push([(new w).fromBufferAttribute(k,a),(new w).fromBufferAttribute(k,b),(new w).fromBufferAttribute(k,d)])}var c=this,d=null!==a.index?a.index:void 0,e=a.attributes;if(void 0===e.position)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),
this;var f=e.position,g=e.normal,h=e.color,l=e.uv,k=e.uv2;void 0!==k&&(this.faceVertexUvs[1]=[]);for(e=0;e<f.count;e++)c.vertices.push((new m).fromBufferAttribute(f,e)),void 0!==h&&c.colors.push((new D).fromBufferAttribute(h,e));e=a.groups;if(0<e.length)for(f=0;f<e.length;f++){var q=e[f],p=q.start,v=p;for(p+=q.count;v<p;v+=3)void 0!==d?b(d.getX(v),d.getX(v+1),d.getX(v+2),q.materialIndex):b(v,v+1,v+2,q.materialIndex)}else if(void 0!==d)for(e=0;e<d.count;e+=3)b(d.getX(e),d.getX(e+1),d.getX(e+2));else for(d=
0;d<f.count;d+=3)b(d,d+1,d+2);this.computeFaceNormals();null!==a.boundingBox&&(this.boundingBox=a.boundingBox.clone());null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());return this},center:function(){this.computeBoundingBox();this.boundingBox.getCenter(Jf).negate();this.translate(Jf.x,Jf.y,Jf.z);return this},normalize:function(){this.computeBoundingSphere();var a=this.boundingSphere.center,b=this.boundingSphere.radius;b=0===b?1:1/b;var c=new M;c.set(b,0,0,-b*a.x,0,b,0,-b*a.y,
0,0,b,-b*a.z,0,0,0,1);this.applyMatrix4(c);return this},computeFaceNormals:function(){for(var a=new m,b=new m,c=0,d=this.faces.length;c<d;c++){var e=this.faces[c],f=this.vertices[e.a],g=this.vertices[e.b];a.subVectors(this.vertices[e.c],g);b.subVectors(f,g);a.cross(b);a.normalize();e.normal.copy(a)}},computeVertexNormals:function(a){void 0===a&&(a=!0);for(var b=Array(this.vertices.length),c=0,d=this.vertices.length;c<d;c++)b[c]=new m;if(a){a=new m;c=new m;d=0;for(var e=this.faces.length;d<e;d++){var f=
this.faces[d],g=this.vertices[f.a],h=this.vertices[f.b];a.subVectors(this.vertices[f.c],h);c.subVectors(g,h);a.cross(c);b[f.a].add(a);b[f.b].add(a);b[f.c].add(a)}}else for(this.computeFaceNormals(),a=0,c=this.faces.length;a<c;a++)d=this.faces[a],b[d.a].add(d.normal),b[d.b].add(d.normal),b[d.c].add(d.normal);a=0;for(c=this.vertices.length;a<c;a++)b[a].normalize();a=0;for(c=this.faces.length;a<c;a++)d=this.faces[a],e=d.vertexNormals,3===e.length?(e[0].copy(b[d.a]),e[1].copy(b[d.b]),e[2].copy(b[d.c])):
(e[0]=b[d.a].clone(),e[1]=b[d.b].clone(),e[2]=b[d.c].clone());0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){this.computeFaceNormals();for(var a=0,b=this.faces.length;a<b;a++){var c=this.faces[a],d=c.vertexNormals;3===d.length?(d[0].copy(c.normal),d[1].copy(c.normal),d[2].copy(c.normal)):(d[0]=c.normal.clone(),d[1]=c.normal.clone(),d[2]=c.normal.clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){for(var a=0,b=this.faces.length;a<
b;a++){var c=this.faces[a];c.__originalFaceNormal?c.__originalFaceNormal.copy(c.normal):c.__originalFaceNormal=c.normal.clone();c.__originalVertexNormals||(c.__originalVertexNormals=[]);for(var d=0,e=c.vertexNormals.length;d<e;d++)c.__originalVertexNormals[d]?c.__originalVertexNormals[d].copy(c.vertexNormals[d]):c.__originalVertexNormals[d]=c.vertexNormals[d].clone()}a=new L;a.faces=this.faces;b=0;for(c=this.morphTargets.length;b<c;b++){if(!this.morphNormals[b]){this.morphNormals[b]={};this.morphNormals[b].faceNormals=
[];this.morphNormals[b].vertexNormals=[];d=this.morphNormals[b].faceNormals;e=this.morphNormals[b].vertexNormals;for(var f=0,g=this.faces.length;f<g;f++){var h=new m,l={a:new m,b:new m,c:new m};d.push(h);e.push(l)}}d=this.morphNormals[b];a.vertices=this.morphTargets[b].vertices;a.computeFaceNormals();a.computeVertexNormals();e=0;for(f=this.faces.length;e<f;e++)g=this.faces[e],h=d.vertexNormals[e],d.faceNormals[e].copy(g.normal),h.a.copy(g.vertexNormals[0]),h.b.copy(g.vertexNormals[1]),h.c.copy(g.vertexNormals[2])}a=
0;for(b=this.faces.length;a<b;a++)c=this.faces[a],c.normal=c.__originalFaceNormal,c.vertexNormals=c.__originalVertexNormals},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new Ta);this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new eb);this.boundingSphere.setFromPoints(this.vertices)},merge:function(a,b,c){if(a&&a.isGeometry){var d,e=this.vertices.length,f=this.vertices,g=a.vertices,h=this.faces,
l=a.faces,k=this.colors,q=a.colors;void 0===c&&(c=0);void 0!==b&&(d=(new xa).getNormalMatrix(b));for(var p=0,m=g.length;p<m;p++){var t=g[p].clone();void 0!==b&&t.applyMatrix4(b);f.push(t)}b=0;for(f=q.length;b<f;b++)k.push(q[b].clone());k=0;for(q=l.length;k<q;k++){b=l[k];m=b.vertexNormals;g=b.vertexColors;f=new zc(b.a+e,b.b+e,b.c+e);f.normal.copy(b.normal);void 0!==d&&f.normal.applyMatrix3(d).normalize();t=0;for(var r=m.length;t<r;t++)p=m[t].clone(),void 0!==d&&p.applyMatrix3(d).normalize(),f.vertexNormals.push(p);
f.color.copy(b.color);m=0;for(t=g.length;m<t;m++)p=g[m],f.vertexColors.push(p.clone());f.materialIndex=b.materialIndex+c;h.push(f)}c=0;for(d=a.faceVertexUvs.length;c<d;c++)for(e=a.faceVertexUvs[c],void 0===this.faceVertexUvs[c]&&(this.faceVertexUvs[c]=[]),h=0,l=e.length;h<l;h++){k=e[h];q=[];b=0;for(f=k.length;b<f;b++)q.push(k[b].clone());this.faceVertexUvs[c].push(q)}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",a)},mergeMesh:function(a){a&&a.isMesh?(a.matrixAutoUpdate&&
a.updateMatrix(),this.merge(a.geometry,a.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",a)},mergeVertices:function(){for(var a={},b=[],c=[],d=Math.pow(10,4),e=0,f=this.vertices.length;e<f;e++){var g=this.vertices[e];g=Math.round(g.x*d)+"_"+Math.round(g.y*d)+"_"+Math.round(g.z*d);void 0===a[g]?(a[g]=e,b.push(this.vertices[e]),c[e]=b.length-1):c[e]=c[a[g]]}a=[];d=0;for(e=this.faces.length;d<e;d++)for(f=this.faces[d],f.a=c[f.a],f.b=c[f.b],f.c=c[f.c],f=[f.a,f.b,
f.c],g=0;3>g;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<f;e++)this.faceVertexUvs[e].splice(d,1);c=this.vertices.length-b.length;this.vertices=b;return c},setFromPoints:function(a){this.vertices=[];for(var b=0,c=a.length;b<c;b++){var d=a[b];this.vertices.push(new m(d.x,d.y,d.z||0))}return this},sortFacesByMaterialIndex:function(){for(var a=this.faces,b=a.length,c=0;c<b;c++)a[c]._id=c;a.sort(function(a,b){return a.materialIndex-
b.materialIndex});c=this.faceVertexUvs[0];var d=this.faceVertexUvs[1],e,f;c&&c.length===b&&(e=[]);d&&d.length===b&&(f=[]);for(var g=0;g<b;g++){var h=a[g]._id;e&&e.push(c[h]);f&&f.push(d[h])}e&&(this.faceVertexUvs[0]=e);f&&(this.faceVertexUvs[1]=f)},toJSON:function(){function a(a,b,c){return c?a|1<<b:a&~(1<<b)}function b(a){var b=a.x.toString()+a.y.toString()+a.z.toString();if(void 0!==k[b])return k[b];k[b]=l.length/3;l.push(a.x,a.y,a.z);return k[b]}function c(a){var b=a.r.toString()+a.g.toString()+
a.b.toString();if(void 0!==p[b])return p[b];p[b]=q.length;q.push(a.getHex());return p[b]}function d(a){var b=a.x.toString()+a.y.toString();if(void 0!==t[b])return t[b];t[b]=m.length/2;m.push(a.x,a.y);return t[b]}var e={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};e.uuid=this.uuid;e.type=this.type;""!==this.name&&(e.name=this.name);if(void 0!==this.parameters){var f=this.parameters,g;for(g in f)void 0!==f[g]&&(e[g]=f[g]);return e}f=[];for(g=0;g<this.vertices.length;g++){var h=
this.vertices[g];f.push(h.x,h.y,h.z)}g=[];var l=[],k={},q=[],p={},m=[],t={};for(h=0;h<this.faces.length;h++){var r=this.faces[h],u=void 0!==this.faceVertexUvs[0][h],A=0<r.normal.length(),w=0<r.vertexNormals.length,x=1!==r.color.r||1!==r.color.g||1!==r.color.b,y=0<r.vertexColors.length,z=0;z=a(z,0,0);z=a(z,1,!0);z=a(z,2,!1);z=a(z,3,u);z=a(z,4,A);z=a(z,5,w);z=a(z,6,x);z=a(z,7,y);g.push(z);g.push(r.a,r.b,r.c);g.push(r.materialIndex);u&&(u=this.faceVertexUvs[0][h],g.push(d(u[0]),d(u[1]),d(u[2])));A&&
g.push(b(r.normal));w&&(A=r.vertexNormals,g.push(b(A[0]),b(A[1]),b(A[2])));x&&g.push(c(r.color));y&&(r=r.vertexColors,g.push(c(r[0]),c(r[1]),c(r[2])))}e.data={};e.data.vertices=f;e.data.normals=l;0<q.length&&(e.data.colors=q);0<m.length&&(e.data.uvs=[m]);e.data.faces=g;return e},clone:function(){return(new L).copy(this)},copy:function(a){this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=
[];this.boundingSphere=this.boundingBox=null;this.name=a.name;for(var b=a.vertices,c=0,d=b.length;c<d;c++)this.vertices.push(b[c].clone());b=a.colors;c=0;for(d=b.length;c<d;c++)this.colors.push(b[c].clone());b=a.faces;c=0;for(d=b.length;c<d;c++)this.faces.push(b[c].clone());b=0;for(c=a.faceVertexUvs.length;b<c;b++){d=a.faceVertexUvs[b];void 0===this.faceVertexUvs[b]&&(this.faceVertexUvs[b]=[]);for(var e=0,f=d.length;e<f;e++){for(var g=d[e],h=[],l=0,k=g.length;l<k;l++)h.push(g[l].clone());this.faceVertexUvs[b].push(h)}}b=
a.morphTargets;c=0;for(d=b.length;c<d;c++){e={};e.name=b[c].name;if(void 0!==b[c].vertices)for(e.vertices=[],f=0,g=b[c].vertices.length;f<g;f++)e.vertices.push(b[c].vertices[f].clone());if(void 0!==b[c].normals)for(e.normals=[],f=0,g=b[c].normals.length;f<g;f++)e.normals.push(b[c].normals[f].clone());this.morphTargets.push(e)}b=a.morphNormals;c=0;for(d=b.length;c<d;c++){e={};if(void 0!==b[c].vertexNormals)for(e.vertexNormals=[],f=0,g=b[c].vertexNormals.length;f<g;f++)h=b[c].vertexNormals[f],l={},
l.a=h.a.clone(),l.b=h.b.clone(),l.c=h.c.clone(),e.vertexNormals.push(l);if(void 0!==b[c].faceNormals)for(e.faceNormals=[],f=0,g=b[c].faceNormals.length;f<g;f++)e.faceNormals.push(b[c].faceNormals[f].clone());this.morphNormals.push(e)}b=a.skinWeights;c=0;for(d=b.length;c<d;c++)this.skinWeights.push(b[c].clone());b=a.skinIndices;c=0;for(d=b.length;c<d;c++)this.skinIndices.push(b[c].clone());b=a.lineDistances;c=0;for(d=b.length;c<d;c++)this.lineDistances.push(b[c]);b=a.boundingBox;null!==b&&(this.boundingBox=
b.clone());b=a.boundingSphere;null!==b&&(this.boundingSphere=b.clone());this.elementsNeedUpdate=a.elementsNeedUpdate;this.verticesNeedUpdate=a.verticesNeedUpdate;this.uvsNeedUpdate=a.uvsNeedUpdate;this.normalsNeedUpdate=a.normalsNeedUpdate;this.colorsNeedUpdate=a.colorsNeedUpdate;this.lineDistancesNeedUpdate=a.lineDistancesNeedUpdate;this.groupsNeedUpdate=a.groupsNeedUpdate;return this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var kh=function(a){function b(b,d,e,f,g,h){a.call(this);
this.type="BoxGeometry";this.parameters={width:b,height:d,depth:e,widthSegments:f,heightSegments:g,depthSegments:h};this.fromBufferGeometry(new Gd(b,d,e,f,g,h));this.mergeVertices()}a&&(b.__proto__=a);b.prototype=Object.create(a&&a.prototype);return b.prototype.constructor=b}(L),Gd=function(a){function b(b,d,e,f,g,h){function c(a,b,c,d,e,f,g,h,l,n,w){var A=f/l,x=g/n,y=f/2,z=g/2,C=h/2;g=l+1;for(var E=n+1,B=f=0,D=new m,F=0;F<E;F++)for(var G=F*x-z,H=0;H<g;H++)D[a]=(H*A-y)*d,D[b]=G*e,D[c]=C,p.push(D.x,
D.y,D.z),D[a]=0,D[b]=0,D[c]=0<h?1:-1,v.push(D.x,D.y,D.z),t.push(H/l),t.push(1-F/n),f+=1;for(a=0;a<n;a++)for(b=0;b<l;b++)c=r+b+g*(a+1),d=r+(b+1)+g*(a+1),e=r+(b+1)+g*a,q.push(r+b+g*a,c,e),q.push(c,d,e),B+=6;k.addGroup(u,B,w);u+=B;r+=f}a.call(this);this.type="BoxBufferGeometry";this.parameters={width:b,height:d,depth:e,widthSegments:f,heightSegments:g,depthSegments:h};var k=this;b=b||1;d=d||1;e=e||1;f=Math.floor(f)||1;g=Math.floor(g)||1;h=Math.floor(h)||1;var q=[],p=[],v=[],t=[],r=0,u=0;c("z","y","x",
-1,-1,e,d,b,h,g,0);c("z","y","x",1,-1,e,d,-b,h,g,1);c("x","z","y",1,1,b,e,d,f,h,2);c("x","z","y",1,-1,b,e,-d,f,h,3);c("x","y","z",1,-1,b,d,e,f,g,4);c("x","y","z",-1,-1,b,d,-e,f,g,5);this.setIndex(q);this.setAttribute("position",new B(p,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(t,2))}a&&(b.__proto__=a);b.prototype=Object.create(a&&a.prototype);return b.prototype.constructor=b}(F),Sh={clone:Dc,merge:va};Ba.prototype=Object.create(G.prototype);Ba.prototype.constructor=Ba;
Ba.prototype.isShaderMaterial=!0;Ba.prototype.copy=function(a){G.prototype.copy.call(this,a);this.fragmentShader=a.fragmentShader;this.vertexShader=a.vertexShader;this.uniforms=Dc(a.uniforms);this.defines=Object.assign({},a.defines);this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.lights=a.lights;this.clipping=a.clipping;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;this.extensions=Object.assign({},a.extensions);return this};
Ba.prototype.toJSON=function(a){var b=G.prototype.toJSON.call(this,a);b.uniforms={};for(var c in this.uniforms){var d=this.uniforms[c].value;b.uniforms[c]=d&&d.isTexture?{type:"t",value:d.toJSON(a).uuid}:d&&d.isColor?{type:"c",value:d.getHex()}:d&&d.isVector2?{type:"v2",value:d.toArray()}:d&&d.isVector3?{type:"v3",value:d.toArray()}:d&&d.isVector4?{type:"v4",value:d.toArray()}:d&&d.isMatrix3?{type:"m3",value:d.toArray()}:d&&d.isMatrix4?{type:"m4",value:d.toArray()}:{value:d}}0<Object.keys(this.defines).length&&
(b.defines=this.defines);b.vertexShader=this.vertexShader;b.fragmentShader=this.fragmentShader;a={};for(var e in this.extensions)!0===this.extensions[e]&&(a[e]=!0);0<Object.keys(a).length&&(b.extensions=a);return b};fb.prototype=Object.assign(Object.create(z.prototype),{constructor:fb,isCamera:!0,copy:function(a,b){z.prototype.copy.call(this,a,b);this.matrixWorldInverse.copy(a.matrixWorldInverse);this.projectionMatrix.copy(a.projectionMatrix);this.projectionMatrixInverse.copy(a.projectionMatrixInverse);
return this},getWorldDirection:function(a){void 0===a&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),a=new m);this.updateMatrixWorld(!0);var b=this.matrixWorld.elements;return a.set(-b[8],-b[9],-b[10]).normalize()},updateMatrixWorld:function(a){z.prototype.updateMatrixWorld.call(this,a);this.matrixWorldInverse.getInverse(this.matrixWorld)},updateWorldMatrix:function(a,b){z.prototype.updateWorldMatrix.call(this,a,b);this.matrixWorldInverse.getInverse(this.matrixWorld)},
clone:function(){return(new this.constructor).copy(this)}});P.prototype=Object.assign(Object.create(fb.prototype),{constructor:P,isPerspectiveCamera:!0,copy:function(a,b){fb.prototype.copy.call(this,a,b);this.fov=a.fov;this.zoom=a.zoom;this.near=a.near;this.far=a.far;this.focus=a.focus;this.aspect=a.aspect;this.view=null===a.view?null:Object.assign({},a.view);this.filmGauge=a.filmGauge;this.filmOffset=a.filmOffset;return this},setFocalLength:function(a){a=.5*this.getFilmHeight()/a;this.fov=2*K.RAD2DEG*
Math.atan(a);this.updateProjectionMatrix()},getFocalLength:function(){var a=Math.tan(.5*K.DEG2RAD*this.fov);return.5*this.getFilmHeight()/a},getEffectiveFOV:function(){return 2*K.RAD2DEG*Math.atan(Math.tan(.5*K.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(a,b,c,d,e,f){this.aspect=a/b;null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,
offsetX:0,offsetY:0,width:1,height:1});this.view.enabled=!0;this.view.fullWidth=a;this.view.fullHeight=b;this.view.offsetX=c;this.view.offsetY=d;this.view.width=e;this.view.height=f;this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1);this.updateProjectionMatrix()},updateProjectionMatrix:function(){var a=this.near,b=a*Math.tan(.5*K.DEG2RAD*this.fov)/this.zoom,c=2*b,d=this.aspect*c,e=-.5*d,f=this.view;if(null!==this.view&&this.view.enabled){var g=f.fullWidth,
h=f.fullHeight;e+=f.offsetX*d/g;b-=f.offsetY*c/h;d*=f.width/g;c*=f.height/h}f=this.filmOffset;0!==f&&(e+=a*f/this.getFilmWidth());this.projectionMatrix.makePerspective(e,e+d,b,b-c,a,this.far);this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(a){a=z.prototype.toJSON.call(this,a);a.object.fov=this.fov;a.object.zoom=this.zoom;a.object.near=this.near;a.object.far=this.far;a.object.focus=this.focus;a.object.aspect=this.aspect;null!==this.view&&(a.object.view=Object.assign({},
this.view));a.object.filmGauge=this.filmGauge;a.object.filmOffset=this.filmOffset;return a}});Ec.prototype=Object.create(z.prototype);Ec.prototype.constructor=Ec;Zb.prototype=Object.create(Ha.prototype);Zb.prototype.constructor=Zb;Zb.prototype.isWebGLCubeRenderTarget=!0;Zb.prototype.fromEquirectangularTexture=function(a,b){this.texture.type=b.type;this.texture.format=b.format;this.texture.encoding=b.encoding;var c=new xd,d=new Ba({name:"CubemapFromEquirect",uniforms:Dc({tEquirect:{value:null}}),vertexShader:"varying vec3 vWorldDirection;\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",
fragmentShader:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\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)<a)return!1;return!0},intersectsBox:function(a){for(var b=this.planes,c=0;6>c;c++){var d=b[c];Kf.x=0<d.normal.x?a.max.x:a.min.x;Kf.y=0<d.normal.y?a.max.y:a.min.y;Kf.z=0<d.normal.z?a.max.z:a.min.z;if(0>d.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 <tonemapping_fragment>\n\t#include <encodings_fragment>\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 <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",
cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\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 <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",
distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\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 <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",
equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",
linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",
linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",
meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\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 <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\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 <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\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 <lightmap_fragment>\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 <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\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 <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\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 <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\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 <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",
meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",
meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\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 <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\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 <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\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 <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\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 <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\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 <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\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 <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\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 <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\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 <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",
points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\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 <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",
shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",
sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",
sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\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 <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\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;d<e;d++)this.array[a+d]=b.array[c+d];return this},set:function(a,b){void 0===b&&(b=0);this.array.set(a,b);return this},clone:function(a){void 0===a.arrayBuffers&&(a.arrayBuffers={});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=K.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);
a=new this.array.constructor(a.arrayBuffers[this.array.buffer._uuid]);a=new Ja(a,this.stride);a.setUsage(this.usage);return a},onUpload:function(a){this.onUploadCallback=a;return this},toJSON:function(a){void 0===a.arrayBuffers&&(a.arrayBuffers={});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=K.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer)));return{uuid:this.uuid,
buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});var sc=new m;Object.defineProperties(Jb.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}});Object.assign(Jb.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(a){for(var b=0,c=this.data.count;b<c;b++)sc.x=this.getX(b),sc.y=this.getY(b),sc.z=this.getZ(b),sc.applyMatrix4(a),this.setXYZ(b,sc.x,sc.y,sc.z);return this},setX:function(a,b){this.data.array[a*
this.data.stride+this.offset]=b;return this},setY:function(a,b){this.data.array[a*this.data.stride+this.offset+1]=b;return this},setZ:function(a,b){this.data.array[a*this.data.stride+this.offset+2]=b;return this},setW:function(a,b){this.data.array[a*this.data.stride+this.offset+3]=b;return this},getX:function(a){return this.data.array[a*this.data.stride+this.offset]},getY:function(a){return this.data.array[a*this.data.stride+this.offset+1]},getZ:function(a){return this.data.array[a*this.data.stride+
this.offset+2]},getW:function(a){return this.data.array[a*this.data.stride+this.offset+3]},setXY:function(a,b,c){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=c;return this},setXYZ:function(a,b,c,d){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=c;this.data.array[a+2]=d;return this},setXYZW:function(a,b,c,d,e){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=c;this.data.array[a+2]=d;this.data.array[a+3]=e;return this},
clone:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");a=[];for(var b=0;b<this.count;b++)for(var c=b*this.data.stride+this.offset,d=0;d<this.itemSize;d++)a.push(this.data.array[c+d]);return new H(new this.array.constructor(a),this.itemSize,this.normalized)}void 0===a.interleavedBuffers&&(a.interleavedBuffers={});void 0===a.interleavedBuffers[this.data.uuid]&&(a.interleavedBuffers[this.data.uuid]=
this.data.clone(a));return new Jb(a.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");a=[];for(var b=0;b<this.count;b++)for(var c=b*this.data.stride+this.offset,d=0;d<this.itemSize;d++)a.push(this.data.array[c+d]);return{itemSize:this.itemSize,type:this.array.constructor.name,array:a,normalized:this.normalized}}void 0===
a.interleavedBuffers&&(a.interleavedBuffers={});void 0===a.interleavedBuffers[this.data.uuid]&&(a.interleavedBuffers[this.data.uuid]=this.data.toJSON(a));return{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}});Kb.prototype=Object.create(G.prototype);Kb.prototype.constructor=Kb;Kb.prototype.isSpriteMaterial=!0;Kb.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.alphaMap=
a.alphaMap;this.rotation=a.rotation;this.sizeAttenuation=a.sizeAttenuation;return this};var Kc,ze=new m,ud=new m,vd=new m,Lc=new w,Od=new w,Zh=new M,Lf=new m,Ae=new m,Mf=new m,Gi=new w,lh=new w,Hi=new w;Nd.prototype=Object.assign(Object.create(z.prototype),{constructor:Nd,isSprite:!0,raycast:function(a,b){null===a.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.');ud.setFromMatrixScale(this.matrixWorld);Zh.copy(a.camera.matrixWorld);this.modelViewMatrix.multiplyMatrices(a.camera.matrixWorldInverse,
this.matrixWorld);vd.setFromMatrixPosition(this.modelViewMatrix);a.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&ud.multiplyScalar(-vd.z);var c=this.material.rotation;if(0!==c){var d=Math.cos(c);var e=Math.sin(c)}c=this.center;Re(Lf.set(-.5,-.5,0),vd,c,ud,e,d);Re(Ae.set(.5,-.5,0),vd,c,ud,e,d);Re(Mf.set(.5,.5,0),vd,c,ud,e,d);Gi.set(0,0);lh.set(1,0);Hi.set(1,1);var f=a.ray.intersectTriangle(Lf,Ae,Mf,!1,ze);if(null===f&&(Re(Ae.set(-.5,.5,0),vd,c,ud,e,d),lh.set(0,1),f=a.ray.intersectTriangle(Lf,
Mf,Ae,!1,ze),null===f))return;e=a.ray.origin.distanceTo(ze);e<a.near||e>a.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<d;c++){var e=
b[c];this.addLevel(e.object.clone(),e.distance)}this.autoUpdate=a.autoUpdate;return this},addLevel:function(a,b){void 0===b&&(b=0);b=Math.abs(b);var c=this.levels,d;for(d=0;d<c.length&&!(b<c[d].distance);d++);c.splice(d,0,{distance:b,object:a});this.add(a);return this},getCurrentLevel:function(){return this._currentLevel},getObjectForDistance:function(a){var b=this.levels;if(0<b.length){var c;var d=1;for(c=b.length;d<c&&!(a<b[d].distance);d++);return b[d-1].object}return null},raycast:function(a,
b){if(0<this.levels.length){Nf.setFromMatrixPosition(this.matrixWorld);var c=a.ray.origin.distanceTo(Nf);this.getObjectForDistance(c).raycast(a,b)}},update:function(a){var b=this.levels;if(1<b.length){Nf.setFromMatrixPosition(a.matrixWorld);Ii.setFromMatrixPosition(this.matrixWorld);a=Nf.distanceTo(Ii)/a.zoom;b[0].object.visible=!0;var c;var d=1;for(c=b.length;d<c;d++)if(a>=b[d].distance)b[d-1].object.visible=!1,b[d].object.visible=!0;else break;for(this._currentLevel=d-1;d<c;d++)b[d].object.visible=
!1}},toJSON:function(a){a=z.prototype.toJSON.call(this,a);!1===this.autoUpdate&&(a.object.autoUpdate=!1);a.object.levels=[];for(var b=this.levels,c=0,d=b.length;c<d;c++){var e=b[c];a.object.levels.push({object:e.object.uuid,distance:e.distance})}return a}});Se.prototype=Object.assign(Object.create(X.prototype),{constructor:Se,isSkinnedMesh:!0,copy:function(a){X.prototype.copy.call(this,a);this.bindMode=a.bindMode;this.bindMatrix.copy(a.bindMatrix);this.bindMatrixInverse.copy(a.bindMatrixInverse);
this.skeleton=a.skeleton;return this},bind:function(a,b){this.skeleton=a;void 0===b&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),b=this.matrixWorld);this.bindMatrix.copy(b);this.bindMatrixInverse.getInverse(b)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){for(var a=new Y,b=this.geometry.attributes.skinWeight,c=0,d=b.count;c<d;c++){a.x=b.getX(c);a.y=b.getY(c);a.z=b.getZ(c);a.w=b.getW(c);var e=1/a.manhattanLength();Infinity!==e?a.multiplyScalar(e):a.set(1,
0,0,0);b.setXYZW(c,a.x,a.y,a.z,a.w)}},updateMatrixWorld:function(a){X.prototype.updateMatrixWorld.call(this,a);"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},boneTransform:function(){var a=new m,b=new Y,c=new Y,d=new m,e=new M;return function(f,g){var h=this.skeleton,l=this.geometry;b.fromBufferAttribute(l.attributes.skinIndex,
f);c.fromBufferAttribute(l.attributes.skinWeight,f);a.fromBufferAttribute(l.attributes.position,f).applyMatrix4(this.bindMatrix);g.set(0,0,0);for(f=0;4>f;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;a<b;a++){var c=this.bones[a];c&&c.matrixWorld.getInverse(this.boneInverses[a])}a=0;for(b=this.bones.length;a<b;a++)if(c=this.bones[a])c.parent&&c.parent.isBone?(c.matrix.getInverse(c.parent.matrixWorld),c.matrix.multiply(c.matrixWorld)):c.matrix.copy(c.matrixWorld),c.matrix.decompose(c.position,c.quaternion,c.scale)},update:function(){for(var a=this.bones,
b=this.boneInverses,c=this.boneMatrices,d=this.boneTexture,e=0,f=a.length;e<f;e++)Ji.multiplyMatrices(a[e]?a[e].matrixWorld:Tk,b[e]),Ji.toArray(c,16*e);void 0!==d&&(d.needsUpdate=!0)},clone:function(){return new Te(this.bones,this.boneInverses)},getBoneByName:function(a){for(var b=0,c=this.bones.length;b<c;b++){var d=this.bones[b];if(d.name===a)return d}},dispose:function(){this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=void 0)}});pg.prototype=Object.assign(Object.create(z.prototype),
{constructor:pg,isBone:!0});var Ki=new M,Li=new M,Of=[],Be=new X;Ue.prototype=Object.assign(Object.create(X.prototype),{constructor:Ue,isInstancedMesh:!0,copy:function(a){X.prototype.copy.call(this,a);this.instanceMatrix.copy(a.instanceMatrix);this.count=a.count;return this},getMatrixAt:function(a,b){b.fromArray(this.instanceMatrix.array,16*a)},raycast:function(a,b){var c=this.matrixWorld,d=this.count;Be.geometry=this.geometry;Be.material=this.material;if(void 0!==Be.material)for(var e=0;e<d;e++){this.getMatrixAt(e,
Ki);Li.multiplyMatrices(c,Ki);Be.matrixWorld=Li;Be.raycast(a,Of);for(var f=0,g=Of.length;f<g;f++){var h=Of[f];h.instanceId=e;h.object=this;b.push(h)}Of.length=0}},setMatrixAt:function(a,b){b.toArray(this.instanceMatrix.array,16*a)},updateMorphTargets:function(){}});la.prototype=Object.create(G.prototype);la.prototype.constructor=la;la.prototype.isLineBasicMaterial=!0;la.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.linewidth=a.linewidth;this.linecap=a.linecap;
this.linejoin=a.linejoin;this.morphTargets=a.morphTargets;return this};var Mi=new m,Ni=new m,Oi=new M,Pf=new Wb,Ce=new eb;Ka.prototype=Object.assign(Object.create(z.prototype),{constructor:Ka,isLine:!0,copy:function(a){z.prototype.copy.call(this,a);this.material=a.material;this.geometry=a.geometry;return this},computeLineDistances:function(){var a=this.geometry;if(a.isBufferGeometry)if(null===a.index){for(var b=a.attributes.position,c=[0],d=1,e=b.count;d<e;d++)Mi.fromBufferAttribute(b,d-1),Ni.fromBufferAttribute(b,
d),c[d]=c[d-1],c[d]+=Mi.distanceTo(Ni);a.setAttribute("lineDistance",new B(c,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(a.isGeometry)for(b=a.vertices,a=a.lineDistances,a[0]=0,c=1,d=b.length;c<d;c++)a[c]=a[c-1],a[c]+=b[c-1].distanceTo(b[c]);return this},raycast:function(a,b){var c=this.geometry,d=this.matrixWorld,e=a.params.Line.threshold;null===c.boundingSphere&&c.computeBoundingSphere();Ce.copy(c.boundingSphere);
Ce.applyMatrix4(d);Ce.radius+=e;if(!1!==a.ray.intersectsSphere(Ce)){Oi.getInverse(d);Pf.copy(a.ray).applyMatrix4(Oi);d=e/((this.scale.x+this.scale.y+this.scale.z)/3);d*=d;var f=new m,g=new m;e=new m;var h=new m,l=this&&this.isLineSegments?2:1;if(c.isBufferGeometry){var k=c.index;c=c.attributes.position.array;if(null!==k){k=k.array;for(var q=0,p=k.length-1;q<p;q+=l){var v=k[q+1];f.fromArray(c,3*k[q]);g.fromArray(c,3*v);Pf.distanceSqToSegment(f,g,h,e)>d||(h.applyMatrix4(this.matrixWorld),v=a.ray.origin.distanceTo(h),
v<a.near||v>a.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;k<q;k+=l)f.fromArray(c,3*k),g.fromArray(c,3*k+3),Pf.distanceSqToSegment(f,g,h,e)>d||(h.applyMatrix4(this.matrixWorld),p=a.ray.origin.distanceTo(h),p<a.near||p>a.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;c<g-1;c+=
l)Pf.distanceSqToSegment(f[c],f[c+1],h,e)>d||(h.applyMatrix4(this.matrixWorld),k=a.ray.origin.distanceTo(h),k<a.near||k>a.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<b.length&&(a=a[b[0]],void 0!==a)){this.morphTargetInfluences=[];this.morphTargetDictionary={};b=0;for(var c=a.length;b<c;b++){var d=a[b].name||
String(b);this.morphTargetInfluences.push(0);this.morphTargetDictionary[d]=b}}}else a=a.morphTargets,void 0!==a&&0<a.length&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}});var Qf=new m,Rf=new m;ha.prototype=Object.assign(Object.create(Ka.prototype),{constructor:ha,isLineSegments:!0,computeLineDistances:function(){var a=this.geometry;if(a.isBufferGeometry)if(null===a.index){for(var b=a.attributes.position,c=[],d=0,e=b.count;d<
e;d+=2)Qf.fromBufferAttribute(b,d),Rf.fromBufferAttribute(b,d+1),c[d]=0===d?0:c[d-1],c[d+1]=c[d]+Qf.distanceTo(Rf);a.setAttribute("lineDistance",new B(c,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(a.isGeometry)for(b=a.vertices,a=a.lineDistances,c=0,d=b.length;c<d;c+=2)Qf.copy(b[c]),Rf.copy(b[c+1]),a[c]=0===c?0:a[c-1],a[c+1]=a[c]+Qf.distanceTo(Rf);return this}});Ve.prototype=Object.assign(Object.create(Ka.prototype),
{constructor:Ve,isLineLoop:!0});Xa.prototype=Object.create(G.prototype);Xa.prototype.constructor=Xa;Xa.prototype.isPointsMaterial=!0;Xa.prototype.copy=function(a){G.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.alphaMap=a.alphaMap;this.size=a.size;this.sizeAttenuation=a.sizeAttenuation;this.morphTargets=a.morphTargets;return this};var Pi=new M,rg=new Wb,De=new eb,Sf=new m;Mc.prototype=Object.assign(Object.create(z.prototype),{constructor:Mc,isPoints:!0,copy:function(a){z.prototype.copy.call(this,
a);this.material=a.material;this.geometry=a.geometry;return this},raycast:function(a,b){var c=this.geometry,d=this.matrixWorld,e=a.params.Points.threshold;null===c.boundingSphere&&c.computeBoundingSphere();De.copy(c.boundingSphere);De.applyMatrix4(d);De.radius+=e;if(!1!==a.ray.intersectsSphere(De))if(Pi.getInverse(d),rg.copy(a.ray).applyMatrix4(Pi),e/=(this.scale.x+this.scale.y+this.scale.z)/3,e*=e,c.isBufferGeometry){var f=c.index;c=c.attributes.position.array;if(null!==f){f=f.array;for(var g=0,
h=f.length;g<h;g++){var k=f[g];Sf.fromArray(c,3*k);qg(Sf,k,e,d,a,b,this)}}else for(f=0,g=c.length/3;f<g;f++)Sf.fromArray(c,3*f),qg(Sf,f,e,d,a,b,this)}else for(c=c.vertices,f=0,g=c.length;f<g;f++)qg(c[f],f,e,d,a,b,this)},updateMorphTargets:function(){var a=this.geometry;if(a.isBufferGeometry){a=a.morphAttributes;var b=Object.keys(a);if(0<b.length&&(a=a[b[0]],void 0!==a)){this.morphTargetInfluences=[];this.morphTargetDictionary={};b=0;for(var c=a.length;b<c;b++){var d=a[b].name||String(b);this.morphTargetInfluences.push(0);
this.morphTargetDictionary[d]=b}}}else a=a.morphTargets,void 0!==a&&0<a.length&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}});sg.prototype=Object.assign(Object.create(W.prototype),{constructor:sg,isVideoTexture:!0,update:function(){var a=this.image;a.readyState>=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;q<n;q++){var m=b[q]*k;var v=q<n-1?b[q+1]*k:a.length;m=$h(a,m,v,k,!1);m===m.next&&(m.steiner=!0);d.push(Gk(m))}d.sort(Ek);for(q=0;q<d.length;q++){k=d[q];b=f;if(b=Fk(k,b))k=ci(b,k),Lb(b,b.next),Lb(k,k.next);f=Lb(f,f.next)}}if(a.length>80*c){var t=h=a[0];var r=d=a[1];for(k=c;k<e;k+=c)q=
a[k],b=a[k+1],q<t&&(t=q),b<r&&(r=b),q>h&&(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;e<b;d=e++)c+=a[d].x*a[e].y-a[e].x*a[d].y;return.5*c},isClockWise:function(a){return 0>rb.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;f<b.length;f++)d.push(a),a+=b[f].length,ei(c,b[f]);b=Uk.triangulate(c,d);for(c=0;c<b.length;c+=3)e.push(b.slice(c,c+3));return e}};
dc.prototype=Object.create(L.prototype);dc.prototype.constructor=dc;dc.prototype.toJSON=function(){var a=L.prototype.toJSON.call(this);return fi(this.parameters.shapes,this.parameters.options,a)};hb.prototype=Object.create(F.prototype);hb.prototype.constructor=hb;hb.prototype.toJSON=function(){var a=F.prototype.toJSON.call(this);return fi(this.parameters.shapes,this.parameters.options,a)};var Hk={generateTopUV:function(a,b,c,d,e){a=b[3*d];d=b[3*d+1];var f=b[3*e];e=b[3*e+1];return[new w(b[3*c],b[3*
c+1]),new w(a,d),new w(f,e)]},generateSideWallUV:function(a,b,c,d,e,f){a=b[3*c];var g=b[3*c+1];c=b[3*c+2];var h=b[3*d],k=b[3*d+1];d=b[3*d+2];var n=b[3*e],m=b[3*e+1];e=b[3*e+2];var p=b[3*f],v=b[3*f+1];b=b[3*f+2];return.01>Math.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<a.tracks.length;++f){for(var g=a.tracks[f],h=g.getValueSize(),k=[],n=[],m=0;m<g.times.length;++m){var p=g.times[m]*e;if(!(p<c||p>=d))for(k.push(g.times[m]),p=0;p<h;++p)n.push(g.values[m*h+p])}0!==k.length&&
(g.times=Z.convertArray(k,g.times.constructor),g.values=Z.convertArray(n,g.values.constructor),b.push(g))}a.tracks=b;c=Infinity;for(d=0;d<a.tracks.length;++d)c>a.tracks[d].times[0]&&(c=a.tracks[d].times[0]);for(d=0;d<a.tracks.length;++d)a.tracks[d].shift(-1*c);a.resetDuration();return a},makeClipAdditive:function(a,b,c,d){void 0===b&&(b=0);void 0===c&&(c=a);if(void 0===d||0>=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<k;++v){var t=v*g;if("quaternion"===e)na.multiplyQuaternionsFlat(b.values,t,m,0,b.values,t);else for(var r=0;r<g;++r)b.values[t+r]-=m[r]}}};for(d=
0;d<e;++d)b(d);a.blendMode=2501;return a}};Object.assign(La.prototype,{evaluate:function(a){var b=this.parameterPositions,c=this._cachedIndex,d=b[c],e=b[c-1];a:{b:{c:{d:if(!(a<d)){for(var f=c+2;;){if(void 0===d){if(a<e)break d;this._cachedIndex=c=b.length;return this.afterEnd_(c-1,a,e)}if(c===f)break;e=d;d=b[++c];if(a<d)break b}d=b.length;break c}if(a>=e)break a;else{f=b[1];a<f&&(c=2,e=f);for(f=c-2;;){if(void 0===e)return this._cachedIndex=0,this.beforeStart_(0,a,d);if(c===f)break;d=e;e=b[--c-1];
if(a>=e)break b}d=c;c=0}}for(;c<d;)e=c+d>>>1,a<b[e]?d=e:c=e+1;d=b[c];e=b[c-1];if(void 0===e)return this._cachedIndex=0,this.beforeStart_(0,a,d);if(void 0===d)return this._cachedIndex=c=b.length,this.afterEnd_(c-1,e,a)}this._cachedIndex=c;this.intervalChanged_(c,e,d)}return this.interpolate_(c,e,a,d)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(a){var b=this.resultBuffer,c=this.sampleValues,d=this.valueSize;a*=d;for(var e=
0;e!==d;++e)b[e]=c[a+e];return b},interpolate_:function(){throw Error("call to abstract method");},intervalChanged_:function(){}});Object.assign(La.prototype,{beforeStart_:La.prototype.copySampleValue_,afterEnd_:La.prototype.copySampleValue_});Ze.prototype=Object.assign(Object.create(La.prototype),{constructor:Ze,DefaultSettings_:{endingStart:2400,endingEnd:2400},intervalChanged_:function(a,b,c){var d=this.parameterPositions,e=a-2,f=a+1,g=d[e],h=d[f];if(void 0===g)switch(this.getSettings_().endingStart){case 2401:e=
a;g=2*b-c;break;case 2402:e=d.length-2;g=b+d[e]-d[e+1];break;default:e=a,g=c}if(void 0===h)switch(this.getSettings_().endingEnd){case 2401:f=a;h=2*c-b;break;case 2402:f=1;h=c+d[1]-d[0];break;default:f=a-1,h=b}a=.5*(c-b);d=this.valueSize;this._weightPrev=a/(b-g);this._weightNext=a/(h-c);this._offsetPrev=e*d;this._offsetNext=f*d},interpolate_:function(a,b,c,d){var e=this.resultBuffer,f=this.sampleValues,g=this.valueSize;a*=g;var h=a-g,k=this._offsetPrev,n=this._offsetNext,m=this._weightPrev,p=this._weightNext,
v=(c-b)/(d-b);c=v*v;d=c*v;b=-m*d+2*m*c-m*v;m=(1+m)*d+(-1.5-2*m)*c+(-.5+m)*v+1;v=(-1-p)*d+(1.5+p)*c+.5*v;p=p*d-p*c;for(c=0;c!==g;++c)e[c]=b*f[k+c]+m*f[h+c]+v*f[a+c]+p*f[n+c];return e}});ke.prototype=Object.assign(Object.create(La.prototype),{constructor:ke,interpolate_:function(a,b,c,d){var e=this.resultBuffer,f=this.sampleValues,g=this.valueSize;a*=g;var h=a-g;b=(c-b)/(d-b);c=1-b;for(d=0;d!==g;++d)e[d]=f[h+d]*c+f[a+d]*b;return e}});$e.prototype=Object.assign(Object.create(La.prototype),{constructor:$e,
interpolate_:function(a){return this.copySampleValue_(a-1)}});Object.assign(ta,{toJSON:function(a){var b=a.constructor;if(void 0!==b.toJSON)b=b.toJSON(a);else{b={name:a.name,times:Z.convertArray(a.times,Array),values:Z.convertArray(a.values,Array)};var c=a.getInterpolation();c!==a.DefaultInterpolation&&(b.interpolation=c)}b.type=a.ValueTypeName;return b}});Object.assign(ta.prototype,{constructor:ta,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:2301,InterpolantFactoryMethodDiscrete:function(a){return new $e(this.times,
this.values,this.getValueSize(),a)},InterpolantFactoryMethodLinear:function(a){return new ke(this.times,this.values,this.getValueSize(),a)},InterpolantFactoryMethodSmooth:function(a){return new Ze(this.times,this.values,this.getValueSize(),a)},setInterpolation:function(a){switch(a){case 2300:var b=this.InterpolantFactoryMethodDiscrete;break;case 2301:b=this.InterpolantFactoryMethodLinear;break;case 2302:b=this.InterpolantFactoryMethodSmooth}if(void 0===b){b="unsupported interpolation for "+this.ValueTypeName+
" keyframe track named "+this.name;if(void 0===this.createInterpolant)if(a!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw Error(b);console.warn("THREE.KeyframeTrack:",b);return this}this.createInterpolant=b;return this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return 2300;case this.InterpolantFactoryMethodLinear:return 2301;case this.InterpolantFactoryMethodSmooth:return 2302}},getValueSize:function(){return this.values.length/
this.times.length},shift:function(a){if(0!==a)for(var b=this.times,c=0,d=b.length;c!==d;++c)b[c]+=a;return this},scale:function(a){if(1!==a)for(var b=this.times,c=0,d=b.length;c!==d;++c)b[c]*=a;return this},trim:function(a,b){for(var c=this.times,d=c.length,e=0,f=d-1;e!==d&&c[e]<a;)++e;for(;-1!==f&&c[f]>b;)--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;g<e;++g){var h=!1,k=a[g];if(k!==a[g+1]&&(1!==g||k!==k[0]))if(d)h=!0;else{k=g*c;for(var n=k-c,m=k+c,p=0;p!==c;++p){var v=b[k+p];if(v!==b[n+p]||v!==b[m+p]){h=!0;break}}}if(h){if(g!==
f)for(a[f]=a[g],h=g*c,k=f*c,n=0;n!==c;++n)b[k+n]=b[h+n];++f}}if(0<e){a[f]=a[e];d=e*c;e=f*c;for(g=0;g!==c;++g)b[e+g]=b[d+g];++f}f!==a.length?(this.times=Z.arraySlice(a,0,f),this.values=Z.arraySlice(b,0,f*c)):(this.times=a,this.values=b);return this},clone:function(){var a=Z.arraySlice(this.times,0),b=Z.arraySlice(this.values,0);a=new this.constructor(this.name,a,b);a.createInterpolant=this.createInterpolant;return a}});af.prototype=Object.assign(Object.create(ta.prototype),{constructor:af,ValueTypeName:"bool",
ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0});bf.prototype=Object.assign(Object.create(ta.prototype),{constructor:bf,ValueTypeName:"color"});ad.prototype=Object.assign(Object.create(ta.prototype),{constructor:ad,ValueTypeName:"number"});cf.prototype=Object.assign(Object.create(La.prototype),{constructor:cf,interpolate_:function(a,b,c,d){var e=this.resultBuffer,f=this.sampleValues,g=this.valueSize;b=(c-b)/(d-b);a*=g;for(c=
a+g;a!==c;a+=4)na.slerpFlat(e,0,f,a-g,f,a,b);return e}});le.prototype=Object.assign(Object.create(ta.prototype),{constructor:le,ValueTypeName:"quaternion",DefaultInterpolation:2301,InterpolantFactoryMethodLinear:function(a){return new cf(this.times,this.values,this.getValueSize(),a)},InterpolantFactoryMethodSmooth:void 0});df.prototype=Object.assign(Object.create(ta.prototype),{constructor:df,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:2300,InterpolantFactoryMethodLinear:void 0,
InterpolantFactoryMethodSmooth:void 0});bd.prototype=Object.assign(Object.create(ta.prototype),{constructor:bd,ValueTypeName:"vector"});Object.assign(Qa,{parse:function(a){for(var b=[],c=a.tracks,d=1/(a.fps||1),e=0,f=c.length;e!==f;++e)b.push(Jk(c[e]).scale(d));return new Qa(a.name,a.duration,b,a.blendMode)},toJSON:function(a){var b=[],c=a.tracks;a={name:a.name,duration:a.duration,tracks:b,uuid:a.uuid,blendMode:a.blendMode};for(var d=0,e=c.length;d!==e;++d)b.push(ta.toJSON(c[d]));return a},CreateFromMorphTargetSequence:function(a,
b,c,d){for(var e=b.length,f=[],g=0;g<e;g++){var h=[],k=[];h.push((g+e-1)%e,g,(g+1)%e);k.push(0,1,0);var n=Z.getKeyframeOrder(h);h=Z.sortedArray(h,1,n);k=Z.sortedArray(k,1,n);d||0!==h[0]||(h.push(e),k.push(k[0]));f.push((new ad(".morphTargetInfluences["+b[g].name+"]",h,k)).scale(1/c))}return new Qa(a,-1,f)},findByName:function(a,b){var c=a;Array.isArray(a)||(c=a.geometry&&a.geometry.animations||a.animations);for(a=0;a<c.length;a++)if(c[a].name===b)return c[a];return null},CreateClipsFromMorphTargetSequences:function(a,
b,c){for(var d={},e=/^([\w-]*?)([\d]+)$/,f=0,g=a.length;f<g;f++){var h=a[f],k=h.name.match(e);if(k&&1<k.length){k=k[1];var n=d[k];n||(d[k]=n=[]);n.push(h)}}a=[];for(var m in d)a.push(Qa.CreateFromMorphTargetSequence(m,d[m],b,c));return a},parseAnimation:function(a,b){if(!a)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;var c=function(a,b,c,d,e){if(0!==c.length){var f=[],g=[];Z.flattenJSON(c,f,g,d);0!==f.length&&e.push(new a(b,f,g))}},d=[],e=a.name||"default",f=
a.fps||30,g=a.blendMode,h=a.length||-1;a=a.hierarchy||[];for(var k=0;k<a.length;k++){var n=a[k].keys;if(n&&0!==n.length)if(n[0].morphTargets){h={};var m=void 0;for(m=0;m<n.length;m++)if(n[m].morphTargets)for(var p=0;p<n[m].morphTargets.length;p++)h[n[m].morphTargets[p]]=-1;for(var v in h){p=[];for(var t=[],r=0;r!==n[m].morphTargets.length;++r){var u=n[m];p.push(u.time);t.push(u.morphTarget===v?1:0)}d.push(new ad(".morphTargetInfluence["+v+"]",p,t))}h=h.length*(f||1)}else m=".bones["+b[k].name+"]",
c(bd,m+".position",n,"pos",d),c(le,m+".quaternion",n,"rot",d),c(bd,m+".scale",n,"scl",d)}return 0===d.length?null:new Qa(e,h,d,g)}});Object.assign(Qa.prototype,{resetDuration:function(){for(var a=0,b=0,c=this.tracks.length;b!==c;++b){var d=this.tracks[b];a=Math.max(a,d.times[d.times.length-1])}this.duration=a;return this},trim:function(){for(var a=0;a<this.tracks.length;a++)this.tracks[a].trim(0,this.duration);return this},validate:function(){for(var a=!0,b=0;b<this.tracks.length;b++)a=a&&this.tracks[b].validate();
return a},optimize:function(){for(var a=0;a<this.tracks.length;a++)this.tracks[a].optimize();return this},clone:function(){for(var a=[],b=0;b<this.tracks.length;b++)a.push(this.tracks[b].clone());return new Qa(this.name,this.duration,a,this.blendMode)}});var tc={enabled:!1,files:{},add:function(a,b){!1!==this.enabled&&(this.files[a]=b)},get:function(a){if(!1!==this.enabled)return this.files[a]},remove:function(a){delete this.files[a]},clear:function(){this.files={}}},hi=new vg;Object.assign(S.prototype,
{load:function(){},loadAsync:function(a,b){var c=this;return new Promise(function(d,e){c.load(a,d,b,e)})},parse:function(){},setCrossOrigin:function(a){this.crossOrigin=a;return this},setPath:function(a){this.path=a;return this},setResourcePath:function(a){this.resourcePath=a;return this},setRequestHeader:function(a){this.requestHeader=a;return this}});var db={};Ra.prototype=Object.assign(Object.create(S.prototype),{constructor:Ra,load:function(a,b,c,d){void 0===a&&(a="");void 0!==this.path&&(a=this.path+
a);a=this.manager.resolveURL(a);var e=this,f=tc.get(a);if(void 0!==f)return e.manager.itemStart(a),setTimeout(function(){b&&b(f);e.manager.itemEnd(a)},0),f;if(void 0!==db[a])db[a].push({onLoad:b,onProgress:c,onError:d});else{var g=a.match(/^data:(.*?)(;base64)?,(.*)$/);if(g){c=g[1];var h=!!g[2];g=g[3];g=decodeURIComponent(g);h&&(g=atob(g));try{var k=(this.responseType||"").toLowerCase();switch(k){case "arraybuffer":case "blob":var n=new Uint8Array(g.length);for(h=0;h<g.length;h++)n[h]=g.charCodeAt(h);
var m="blob"===k?new Blob([n.buffer],{type:c}):n.buffer;break;case "document":m=(new DOMParser).parseFromString(g,c);break;case "json":m=JSON.parse(g);break;default:m=g}setTimeout(function(){b&&b(m);e.manager.itemEnd(a)},0)}catch(v){setTimeout(function(){d&&d(v);e.manager.itemError(a);e.manager.itemEnd(a)},0)}}else{db[a]=[];db[a].push({onLoad:b,onProgress:c,onError:d});var p=new XMLHttpRequest;p.open("GET",a,!0);p.addEventListener("load",function(b){var c=this.response,d=db[a];delete db[a];if(200===
this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received.");tc.add(a,c);b=0;for(var f=d.length;b<f;b++){var g=d[b];if(g.onLoad)g.onLoad(c)}}else{c=0;for(f=d.length;c<f;c++)if(g=d[c],g.onError)g.onError(b);e.manager.itemError(a)}e.manager.itemEnd(a)},!1);p.addEventListener("progress",function(b){for(var c=db[a],d=0,e=c.length;d<e;d++){var f=c[d];if(f.onProgress)f.onProgress(b)}},!1);p.addEventListener("error",function(b){var c=db[a];delete db[a];for(var d=
0,f=c.length;d<f;d++){var g=c[d];if(g.onError)g.onError(b)}e.manager.itemError(a);e.manager.itemEnd(a)},!1);p.addEventListener("abort",function(b){var c=db[a];delete db[a];for(var d=0,f=c.length;d<f;d++){var g=c[d];if(g.onError)g.onError(b)}e.manager.itemError(a);e.manager.itemEnd(a)},!1);void 0!==this.responseType&&(p.responseType=this.responseType);void 0!==this.withCredentials&&(p.withCredentials=this.withCredentials);p.overrideMimeType&&p.overrideMimeType(void 0!==this.mimeType?this.mimeType:
"text/plain");for(h in this.requestHeader)p.setRequestHeader(h,this.requestHeader[h]);p.send(null)}e.manager.itemStart(a);return p}},setResponseType:function(a){this.responseType=a;return this},setWithCredentials:function(a){this.withCredentials=a;return this},setMimeType:function(a){this.mimeType=a;return this}});wg.prototype=Object.assign(Object.create(S.prototype),{constructor:wg,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){for(var b=[],c=0;c<a.length;c++){var d=Qa.parse(a[c]);b.push(d)}return b}});xg.prototype=Object.assign(Object.create(S.prototype),{constructor:xg,load:function(a,b,c,d){function e(e){k.load(a[e],function(a){a=f.parse(a,!0);g[e]={width:a.width,height:a.height,format:a.format,mipmaps:a.mipmaps};n+=1;6===n&&(1===a.mipmapCount&&(h.minFilter=1006),h.format=a.format,h.needsUpdate=!0,b&&b(h))},c,d)}var f=this,g=[],h=new Nc;h.image=g;
var k=new Ra(this.manager);k.setPath(this.path);k.setResponseType("arraybuffer");var n=0;if(Array.isArray(a))for(var m=0,p=a.length;m<p;++m)e(m);else k.load(a,function(a){a=f.parse(a,!0);if(a.isCubemap)for(var c=a.mipmaps.length/a.mipmapCount,d=0;d<c;d++){g[d]={mipmaps:[]};for(var e=0;e<a.mipmapCount;e++)g[d].mipmaps.push(a.mipmaps[d*a.mipmapCount+e]),g[d].format=a.format,g[d].width=a.width,g[d].height=a.height}else h.image.width=a.width,h.image.height=a.height,h.mipmaps=a.mipmaps;1===a.mipmapCount&&
(h.minFilter=1006);h.format=a.format;h.needsUpdate=!0;b&&b(h)},c,d);return h}});ef.prototype=Object.assign(Object.create(S.prototype),{constructor:ef,load:function(a,b,c,d){var e=this,f=new $b,g=new Ra(this.manager);g.setResponseType("arraybuffer");g.setPath(this.path);g.load(a,function(a){if(a=e.parse(a))void 0!==a.image?f.image=a.image:void 0!==a.data&&(f.image.width=a.width,f.image.height=a.height,f.image.data=a.data),f.wrapS=void 0!==a.wrapS?a.wrapS:1001,f.wrapT=void 0!==a.wrapT?a.wrapT:1001,
f.magFilter=void 0!==a.magFilter?a.magFilter:1006,f.minFilter=void 0!==a.minFilter?a.minFilter:1006,f.anisotropy=void 0!==a.anisotropy?a.anisotropy:1,void 0!==a.format&&(f.format=a.format),void 0!==a.type&&(f.type=a.type),void 0!==a.mipmaps&&(f.mipmaps=a.mipmaps,f.minFilter=1008),1===a.mipmapCount&&(f.minFilter=1006),f.needsUpdate=!0,b&&b(f,a)},c,d);return f}});cd.prototype=Object.assign(Object.create(S.prototype),{constructor:cd,load:function(a,b,c,d){function e(){k.removeEventListener("load",e,
!1);k.removeEventListener("error",f,!1);tc.add(a,this);b&&b(this);g.manager.itemEnd(a)}function f(b){k.removeEventListener("load",e,!1);k.removeEventListener("error",f,!1);d&&d(b);g.manager.itemError(a);g.manager.itemEnd(a)}void 0!==this.path&&(a=this.path+a);a=this.manager.resolveURL(a);var g=this,h=tc.get(a);if(void 0!==h)return g.manager.itemStart(a),setTimeout(function(){b&&b(h);g.manager.itemEnd(a)},0),h;var k=document.createElementNS("http://www.w3.org/1999/xhtml","img");k.addEventListener("load",
e,!1);k.addEventListener("error",f,!1);"data:"!==a.substr(0,5)&&void 0!==this.crossOrigin&&(k.crossOrigin=this.crossOrigin);g.manager.itemStart(a);k.src=a;return k}});ff.prototype=Object.assign(Object.create(S.prototype),{constructor:ff,load:function(a,b,c,d){function e(c){g.load(a[c],function(a){f.images[c]=a;h++;6===h&&(f.needsUpdate=!0,b&&b(f))},void 0,d)}var f=new qb,g=new cd(this.manager);g.setCrossOrigin(this.crossOrigin);g.setPath(this.path);var h=0;for(c=0;c<a.length;++c)e(c);return f}});
gf.prototype=Object.assign(Object.create(S.prototype),{constructor:gf,load:function(a,b,c,d){var e=new W,f=new cd(this.manager);f.setCrossOrigin(this.crossOrigin);f.setPath(this.path);f.load(a,function(c){e.image=c;c=0<a.search(/\.jpe?g($|\?)/i)||0===a.search(/^data:image\/jpeg/);e.format=c?1022:1023;e.needsUpdate=!0;void 0!==b&&b(e)},c,d);return e}});Object.assign(J.prototype,{getPoint:function(){console.warn("THREE.Curve: .getPoint() not implemented.");return null},getPointAt:function(a,b){a=this.getUtoTmapping(a);
return this.getPoint(a,b)},getPoints:function(a){void 0===a&&(a=5);for(var b=[],c=0;c<=a;c++)b.push(this.getPoint(c/a));return b},getSpacedPoints:function(a){void 0===a&&(a=5);for(var b=[],c=0;c<=a;c++)b.push(this.getPointAt(c/a));return b},getLength:function(){var a=this.getLengths();return a[a.length-1]},getLengths:function(a){void 0===a&&(a=this.arcLengthDivisions);if(this.cacheArcLengths&&this.cacheArcLengths.length===a+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var b=
[],c=this.getPoint(0),d=0;b.push(0);for(var e=1;e<=a;e++){var f=this.getPoint(e/a);d+=f.distanceTo(c);b.push(d);c=f}return this.cacheArcLengths=b},updateArcLengths:function(){this.needsUpdate=!0;this.getLengths()},getUtoTmapping:function(a,b){var c=this.getLengths(),d=c.length;b=b?b:a*c[d-1];for(var e=0,f=d-1,g;e<=f;)if(a=Math.floor(e+(f-e)/2),g=c[a]-b,0>g)e=a+1;else if(0<g)f=a-1;else{f=a;break}a=f;if(c[a]===b)return a/(d-1);e=c[a];return(a+(b-e)/(c[a+1]-e))/(d-1)},getTangent:function(a,b){var c=
a-1E-4;a+=1E-4;0>c&&(c=0);1<a&&(a=1);c=this.getPoint(c);a=this.getPoint(a);b=b||(c.isVector2?new w:new m);b.copy(a).sub(c).normalize();return b},getTangentAt:function(a,b){a=this.getUtoTmapping(a);return this.getTangent(a,b)},computeFrenetFrames:function(a,b){for(var c=new m,d=[],e=[],f=[],g=new m,h=new M,k=0;k<=a;k++)d[k]=this.getTangentAt(k/a,new m),d[k].normalize();e[0]=new m;f[0]=new m;k=Number.MAX_VALUE;var n=Math.abs(d[0].x),q=Math.abs(d[0].y),p=Math.abs(d[0].z);n<=k&&(k=n,c.set(1,0,0));q<=
k&&(k=q,c.set(0,1,0));p<=k&&c.set(0,0,1);g.crossVectors(d[0],c).normalize();e[0].crossVectors(d[0],g);f[0].crossVectors(d[0],e[0]);for(c=1;c<=a;c++)e[c]=e[c-1].clone(),f[c]=f[c-1].clone(),g.crossVectors(d[c-1],d[c]),g.length()>Number.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,0<d[0].dot(g.crossVectors(e[0],e[a]))&&(b=-b),g=1;g<=a;g++)e[g].applyMatrix4(h.makeRotationAxis(d[g],
b*g)),f[g].crossVectors(d[g],e[g]);return{tangents:d,normals:e,binormals:f}},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.arcLengthDivisions=a.arcLengthDivisions;return this},toJSON:function(){var a={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};a.arcLengthDivisions=this.arcLengthDivisions;a.type=this.type;return a},fromJSON:function(a){this.arcLengthDivisions=a.arcLengthDivisions;return this}});Ma.prototype=Object.create(J.prototype);Ma.prototype.constructor=
Ma;Ma.prototype.isEllipseCurve=!0;Ma.prototype.getPoint=function(a,b){b=b||new w;for(var c=2*Math.PI,d=this.aEndAngle-this.aStartAngle,e=Math.abs(d)<Number.EPSILON;0>d;)d+=c;for(;d>c;)d-=c;d<Number.EPSILON&&(d=e?0:c);!0!==this.aClockwise||e||(d=d===c?-c:d-c);c=this.aStartAngle+a*d;a=this.aX+this.xRadius*Math.cos(c);var f=this.aY+this.yRadius*Math.sin(c);0!==this.aRotation&&(c=Math.cos(this.aRotation),d=Math.sin(this.aRotation),e=a-this.aX,f-=this.aY,a=e*c-f*d+this.aX,f=e*d+f*c+this.aY);return b.set(a,
f)};Ma.prototype.copy=function(a){J.prototype.copy.call(this,a);this.aX=a.aX;this.aY=a.aY;this.xRadius=a.xRadius;this.yRadius=a.yRadius;this.aStartAngle=a.aStartAngle;this.aEndAngle=a.aEndAngle;this.aClockwise=a.aClockwise;this.aRotation=a.aRotation;return this};Ma.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.aX=this.aX;a.aY=this.aY;a.xRadius=this.xRadius;a.yRadius=this.yRadius;a.aStartAngle=this.aStartAngle;a.aEndAngle=this.aEndAngle;a.aClockwise=this.aClockwise;a.aRotation=
this.aRotation;return a};Ma.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.aX=a.aX;this.aY=a.aY;this.xRadius=a.xRadius;this.yRadius=a.yRadius;this.aStartAngle=a.aStartAngle;this.aEndAngle=a.aEndAngle;this.aClockwise=a.aClockwise;this.aRotation=a.aRotation;return this};dd.prototype=Object.create(Ma.prototype);dd.prototype.constructor=dd;dd.prototype.isArcCurve=!0;var Tf=new m,mh=new yg,nh=new yg,oh=new yg;pa.prototype=Object.create(J.prototype);pa.prototype.constructor=pa;pa.prototype.isCatmullRomCurve3=
!0;pa.prototype.getPoint=function(a,b){b=b||new m;var c=this.points,d=c.length;a*=d-(this.closed?0:1);var e=Math.floor(a);a-=e;this.closed?e+=0<e?0:(Math.floor(Math.abs(e)/d)+1)*d:0===a&&e===d-1&&(e=d-2,a=1);if(this.closed||0<e)var f=c[(e-1)%d];else Tf.subVectors(c[0],c[1]).add(c[0]),f=Tf;var g=c[e%d];var h=c[(e+1)%d];this.closed||e+2<d?c=c[(e+2)%d]:(Tf.subVectors(c[d-1],c[d-2]).add(c[d-1]),c=Tf);if("centripetal"===this.curveType||"chordal"===this.curveType){var k="chordal"===this.curveType?.5:.25;
d=Math.pow(f.distanceToSquared(g),k);e=Math.pow(g.distanceToSquared(h),k);k=Math.pow(h.distanceToSquared(c),k);1E-4>e&&(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;b<c;b++)this.points.push(a.points[b].clone());this.closed=a.closed;this.curveType=a.curveType;this.tension=a.tension;return this};pa.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.points=[];for(var b=0,c=this.points.length;b<c;b++)a.points.push(this.points[b].toArray());a.closed=this.closed;a.curveType=this.curveType;a.tension=this.tension;return a};
pa.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.points=[];for(var b=0,c=a.points.length;b<c;b++){var d=a.points[b];this.points.push((new m).fromArray(d))}this.closed=a.closed;this.curveType=a.curveType;this.tension=a.tension;return this};Ya.prototype=Object.create(J.prototype);Ya.prototype.constructor=Ya;Ya.prototype.isCubicBezierCurve=!0;Ya.prototype.getPoint=function(a,b){b=b||new w;var c=this.v0,d=this.v1,e=this.v2,f=this.v3;b.set(ne(a,c.x,d.x,e.x,f.x),ne(a,c.y,d.y,e.y,
f.y));return b};Ya.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v0.copy(a.v0);this.v1.copy(a.v1);this.v2.copy(a.v2);this.v3.copy(a.v3);return this};Ya.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v0=this.v0.toArray();a.v1=this.v1.toArray();a.v2=this.v2.toArray();a.v3=this.v3.toArray();return a};Ya.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);this.v3.fromArray(a.v3);return this};
jb.prototype=Object.create(J.prototype);jb.prototype.constructor=jb;jb.prototype.isCubicBezierCurve3=!0;jb.prototype.getPoint=function(a,b){b=b||new m;var c=this.v0,d=this.v1,e=this.v2,f=this.v3;b.set(ne(a,c.x,d.x,e.x,f.x),ne(a,c.y,d.y,e.y,f.y),ne(a,c.z,d.z,e.z,f.z));return b};jb.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v0.copy(a.v0);this.v1.copy(a.v1);this.v2.copy(a.v2);this.v3.copy(a.v3);return this};jb.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v0=this.v0.toArray();
a.v1=this.v1.toArray();a.v2=this.v2.toArray();a.v3=this.v3.toArray();return a};jb.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);this.v3.fromArray(a.v3);return this};Ca.prototype=Object.create(J.prototype);Ca.prototype.constructor=Ca;Ca.prototype.isLineCurve=!0;Ca.prototype.getPoint=function(a,b){b=b||new w;1===a?b.copy(this.v2):(b.copy(this.v2).sub(this.v1),b.multiplyScalar(a).add(this.v1));return b};Ca.prototype.getPointAt=
function(a,b){return this.getPoint(a,b)};Ca.prototype.getTangent=function(a,b){a=b||new w;a.copy(this.v2).sub(this.v1).normalize();return a};Ca.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v1.copy(a.v1);this.v2.copy(a.v2);return this};Ca.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v1=this.v1.toArray();a.v2=this.v2.toArray();return a};Ca.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);return this};
Za.prototype=Object.create(J.prototype);Za.prototype.constructor=Za;Za.prototype.isLineCurve3=!0;Za.prototype.getPoint=function(a,b){b=b||new m;1===a?b.copy(this.v2):(b.copy(this.v2).sub(this.v1),b.multiplyScalar(a).add(this.v1));return b};Za.prototype.getPointAt=function(a,b){return this.getPoint(a,b)};Za.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v1.copy(a.v1);this.v2.copy(a.v2);return this};Za.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v1=this.v1.toArray();
a.v2=this.v2.toArray();return a};Za.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);return this};$a.prototype=Object.create(J.prototype);$a.prototype.constructor=$a;$a.prototype.isQuadraticBezierCurve=!0;$a.prototype.getPoint=function(a,b){b=b||new w;var c=this.v0,d=this.v1,e=this.v2;b.set(me(a,c.x,d.x,e.x),me(a,c.y,d.y,e.y));return b};$a.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v0.copy(a.v0);this.v1.copy(a.v1);
this.v2.copy(a.v2);return this};$a.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v0=this.v0.toArray();a.v1=this.v1.toArray();a.v2=this.v2.toArray();return a};$a.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);return this};kb.prototype=Object.create(J.prototype);kb.prototype.constructor=kb;kb.prototype.isQuadraticBezierCurve3=!0;kb.prototype.getPoint=function(a,b){b=b||new m;var c=this.v0,d=
this.v1,e=this.v2;b.set(me(a,c.x,d.x,e.x),me(a,c.y,d.y,e.y),me(a,c.z,d.z,e.z));return b};kb.prototype.copy=function(a){J.prototype.copy.call(this,a);this.v0.copy(a.v0);this.v1.copy(a.v1);this.v2.copy(a.v2);return this};kb.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.v0=this.v0.toArray();a.v1=this.v1.toArray();a.v2=this.v2.toArray();return a};kb.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);
return this};ab.prototype=Object.create(J.prototype);ab.prototype.constructor=ab;ab.prototype.isSplineCurve=!0;ab.prototype.getPoint=function(a,b){b=b||new w;var c=this.points,d=(c.length-1)*a;a=Math.floor(d);d-=a;var e=c[0===a?a:a-1],f=c[a],g=c[a>c.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<c;b++)this.points.push(a.points[b].clone());
return this};ab.prototype.toJSON=function(){var a=J.prototype.toJSON.call(this);a.points=[];for(var b=0,c=this.points.length;b<c;b++)a.points.push(this.points[b].toArray());return a};ab.prototype.fromJSON=function(a){J.prototype.fromJSON.call(this,a);this.points=[];for(var b=0,c=a.points.length;b<c;b++){var d=a.points[b];this.points.push((new w).fromArray(d))}return this};var ph=Object.freeze({__proto__:null,ArcCurve:dd,CatmullRomCurve3:pa,CubicBezierCurve:Ya,CubicBezierCurve3:jb,EllipseCurve:Ma,
LineCurve:Ca,LineCurve3:Za,QuadraticBezierCurve:$a,QuadraticBezierCurve3:kb,SplineCurve:ab});ub.prototype=Object.assign(Object.create(J.prototype),{constructor:ub,add:function(a){this.curves.push(a)},closePath:function(){var a=this.curves[0].getPoint(0),b=this.curves[this.curves.length-1].getPoint(1);a.equals(b)||this.curves.push(new Ca(b,a))},getPoint:function(a){var b=a*this.getLength(),c=this.getCurveLengths();for(a=0;a<c.length;){if(c[a]>=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;c<d;c++)b+=this.curves[c].getLength(),a.push(b);return this.cacheLengths=a},getSpacedPoints:function(a){void 0===a&&(a=40);for(var b=[],c=0;c<=a;c++)b.push(this.getPoint(c/
a));this.autoClose&&b.push(b[0]);return b},getPoints:function(a){a=a||12;for(var b=[],c,d=0,e=this.curves;d<e.length;d++){var f=e[d];f=f.getPoints(f&&f.isEllipseCurve?2*a:f&&(f.isLineCurve||f.isLineCurve3)?1:f&&f.isSplineCurve?a*f.points.length:a);for(var g=0;g<f.length;g++){var h=f[g];c&&c.equals(h)||(b.push(h),c=h)}}this.autoClose&&1<b.length&&!b[b.length-1].equals(b[0])&&b.push(b[0]);return b},copy:function(a){J.prototype.copy.call(this,a);this.curves=[];for(var b=0,c=a.curves.length;b<c;b++)this.curves.push(a.curves[b].clone());
this.autoClose=a.autoClose;return this},toJSON:function(){var a=J.prototype.toJSON.call(this);a.autoClose=this.autoClose;a.curves=[];for(var b=0,c=this.curves.length;b<c;b++)a.curves.push(this.curves[b].toJSON());return a},fromJSON:function(a){J.prototype.fromJSON.call(this,a);this.autoClose=a.autoClose;this.curves=[];for(var b=0,c=a.curves.length;b<c;b++){var d=a.curves[b];this.curves.push((new ph[d.type]).fromJSON(d))}return this}});bb.prototype=Object.assign(Object.create(ub.prototype),{constructor:bb,
setFromPoints:function(a){this.moveTo(a[0].x,a[0].y);for(var b=1,c=a.length;b<c;b++)this.lineTo(a[b].x,a[b].y);return this},moveTo:function(a,b){this.currentPoint.set(a,b);return this},lineTo:function(a,b){var c=new Ca(this.currentPoint.clone(),new w(a,b));this.curves.push(c);this.currentPoint.set(a,b);return this},quadraticCurveTo:function(a,b,c,d){a=new $a(this.currentPoint.clone(),new w(a,b),new w(c,d));this.curves.push(a);this.currentPoint.set(c,d);return this},bezierCurveTo:function(a,b,c,d,
e,f){a=new Ya(this.currentPoint.clone(),new w(a,b),new w(c,d),new w(e,f));this.curves.push(a);this.currentPoint.set(e,f);return this},splineThru:function(a){var b=[this.currentPoint.clone()].concat(a);b=new ab(b);this.curves.push(b);this.currentPoint.copy(a[a.length-1]);return this},arc:function(a,b,c,d,e,f){this.absarc(a+this.currentPoint.x,b+this.currentPoint.y,c,d,e,f);return this},absarc:function(a,b,c,d,e,f){this.absellipse(a,b,c,c,d,e,f);return this},ellipse:function(a,b,c,d,e,f,g,h){this.absellipse(a+
this.currentPoint.x,b+this.currentPoint.y,c,d,e,f,g,h);return this},absellipse:function(a,b,c,d,e,f,g,h){a=new Ma(a,b,c,d,e,f,g,h);0<this.curves.length&&(b=a.getPoint(0),b.equals(this.currentPoint)||this.lineTo(b.x,b.y));this.curves.push(a);a=a.getPoint(1);this.currentPoint.copy(a);return this},copy:function(a){ub.prototype.copy.call(this,a);this.currentPoint.copy(a.currentPoint);return this},toJSON:function(){var a=ub.prototype.toJSON.call(this);a.currentPoint=this.currentPoint.toArray();return a},
fromJSON:function(a){ub.prototype.fromJSON.call(this,a);this.currentPoint.fromArray(a.currentPoint);return this}});Nb.prototype=Object.assign(Object.create(bb.prototype),{constructor:Nb,getPointsHoles:function(a){for(var b=[],c=0,d=this.holes.length;c<d;c++)b[c]=this.holes[c].getPoints(a);return b},extractPoints:function(a){return{shape:this.getPoints(a),holes:this.getPointsHoles(a)}},copy:function(a){bb.prototype.copy.call(this,a);this.holes=[];for(var b=0,c=a.holes.length;b<c;b++)this.holes.push(a.holes[b].clone());
return this},toJSON:function(){var a=bb.prototype.toJSON.call(this);a.uuid=this.uuid;a.holes=[];for(var b=0,c=this.holes.length;b<c;b++)a.holes.push(this.holes[b].toJSON());return a},fromJSON:function(a){bb.prototype.fromJSON.call(this,a);this.uuid=a.uuid;this.holes=[];for(var b=0,c=a.holes.length;b<c;b++){var d=a.holes[b];this.holes.push((new bb).fromJSON(d))}return this}});T.prototype=Object.assign(Object.create(z.prototype),{constructor:T,isLight:!0,copy:function(a){z.prototype.copy.call(this,
a);this.color.copy(a.color);this.intensity=a.intensity;return this},toJSON:function(a){a=z.prototype.toJSON.call(this,a);a.object.color=this.color.getHex();a.object.intensity=this.intensity;void 0!==this.groundColor&&(a.object.groundColor=this.groundColor.getHex());void 0!==this.distance&&(a.object.distance=this.distance);void 0!==this.angle&&(a.object.angle=this.angle);void 0!==this.decay&&(a.object.decay=this.decay);void 0!==this.penumbra&&(a.object.penumbra=this.penumbra);void 0!==this.shadow&&
(a.object.shadow=this.shadow.toJSON());return a}});hf.prototype=Object.assign(Object.create(T.prototype),{constructor:hf,isHemisphereLight:!0,copy:function(a){T.prototype.copy.call(this,a);this.groundColor.copy(a.groundColor);return this}});Object.assign(lb.prototype,{_projScreenMatrix:new M,_lightPositionWorld:new m,_lookTarget:new m,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(a){var b=this.camera,c=this.matrix,d=this._projScreenMatrix,
e=this._lookTarget,f=this._lightPositionWorld;f.setFromMatrixPosition(a.matrixWorld);b.position.copy(f);e.setFromMatrixPosition(a.target.matrixWorld);b.lookAt(e);b.updateMatrixWorld();d.multiplyMatrices(b.projectionMatrix,b.matrixWorldInverse);this._frustum.setFromProjectionMatrix(d);c.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);c.multiply(b.projectionMatrix);c.multiply(b.matrixWorldInverse)},getViewport:function(a){return this._viewports[a]},getFrameExtents:function(){return this._frameExtents},copy:function(a){this.camera=
a.camera.clone();this.bias=a.bias;this.radius=a.radius;this.mapSize.copy(a.mapSize);return this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var a={};0!==this.bias&&(a.bias=this.bias);0!==this.normalOffset&&(a.normalOffset=this.normalOffset);1!==this.radius&&(a.radius=this.radius);if(512!==this.mapSize.x||512!==this.mapSize.y)a.mapSize=this.mapSize.toArray();a.camera=this.camera.toJSON(!1).object;delete a.camera.matrix;return a}});jf.prototype=Object.assign(Object.create(lb.prototype),
{constructor:jf,isSpotLightShadow:!0,updateMatrices:function(a){var b=this.camera,c=2*K.RAD2DEG*a.angle,d=this.mapSize.width/this.mapSize.height,e=a.distance||b.far;if(c!==b.fov||d!==b.aspect||e!==b.far)b.fov=c,b.aspect=d,b.far=e,b.updateProjectionMatrix();lb.prototype.updateMatrices.call(this,a)}});kf.prototype=Object.assign(Object.create(T.prototype),{constructor:kf,isSpotLight:!0,copy:function(a){T.prototype.copy.call(this,a);this.distance=a.distance;this.angle=a.angle;this.penumbra=a.penumbra;
this.decay=a.decay;this.target=a.target.clone();this.shadow=a.shadow.clone();return this}});zg.prototype=Object.assign(Object.create(lb.prototype),{constructor:zg,isPointLightShadow:!0,updateMatrices:function(a,b){void 0===b&&(b=0);var c=this.camera,d=this.matrix,e=this._lightPositionWorld,f=this._lookTarget,g=this._projScreenMatrix;e.setFromMatrixPosition(a.matrixWorld);c.position.copy(e);f.copy(c.position);f.add(this._cubeDirections[b]);c.up.copy(this._cubeUps[b]);c.lookAt(f);c.updateMatrixWorld();
d.makeTranslation(-e.x,-e.y,-e.z);g.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse);this._frustum.setFromProjectionMatrix(g)}});lf.prototype=Object.assign(Object.create(T.prototype),{constructor:lf,isPointLight:!0,copy:function(a){T.prototype.copy.call(this,a);this.distance=a.distance;this.decay=a.decay;this.shadow=a.shadow.clone();return this}});ed.prototype=Object.assign(Object.create(fb.prototype),{constructor:ed,isOrthographicCamera:!0,copy:function(a,b){fb.prototype.copy.call(this,
a,b);this.left=a.left;this.right=a.right;this.top=a.top;this.bottom=a.bottom;this.near=a.near;this.far=a.far;this.zoom=a.zoom;this.view=null===a.view?null:Object.assign({},a.view);return this},setViewOffset:function(a,b,c,d,e,f){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1});this.view.enabled=!0;this.view.fullWidth=a;this.view.fullHeight=b;this.view.offsetX=c;this.view.offsetY=d;this.view.width=e;this.view.height=f;this.updateProjectionMatrix()},
clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1);this.updateProjectionMatrix()},updateProjectionMatrix:function(){var a=(this.right-this.left)/(2*this.zoom),b=(this.top-this.bottom)/(2*this.zoom),c=(this.right+this.left)/2,d=(this.top+this.bottom)/2,e=c-a;c+=a;a=d+b;b=d-b;null!==this.view&&this.view.enabled&&(d=(this.right-this.left)/this.view.fullWidth/this.zoom,b=(this.top-this.bottom)/this.view.fullHeight/this.zoom,e+=d*this.view.offsetX,c=e+d*this.view.width,a-=b*this.view.offsetY,
b=a-b*this.view.height);this.projectionMatrix.makeOrthographic(e,c,a,b,this.near,this.far);this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(a){a=z.prototype.toJSON.call(this,a);a.object.zoom=this.zoom;a.object.left=this.left;a.object.right=this.right;a.object.top=this.top;a.object.bottom=this.bottom;a.object.near=this.near;a.object.far=this.far;null!==this.view&&(a.object.view=Object.assign({},this.view));return a}});mf.prototype=Object.assign(Object.create(lb.prototype),
{constructor:mf,isDirectionalLightShadow:!0,updateMatrices:function(a){lb.prototype.updateMatrices.call(this,a)}});nf.prototype=Object.assign(Object.create(T.prototype),{constructor:nf,isDirectionalLight:!0,copy:function(a){T.prototype.copy.call(this,a);this.target=a.target.clone();this.shadow=a.shadow.clone();return this}});of.prototype=Object.assign(Object.create(T.prototype),{constructor:of,isAmbientLight:!0});pf.prototype=Object.assign(Object.create(T.prototype),{constructor:pf,isRectAreaLight:!0,
copy:function(a){T.prototype.copy.call(this,a);this.width=a.width;this.height=a.height;return this},toJSON:function(a){a=T.prototype.toJSON.call(this,a);a.object.width=this.width;a.object.height=this.height;return a}});Object.assign(qf.prototype,{isSphericalHarmonics3:!0,set:function(a){for(var b=0;9>b;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?0<a.vertexColors?!0:!1:a.vertexColors);if(void 0!==a.uniforms)for(var e in a.uniforms){var f=a.uniforms[e];d.uniforms[e]={};switch(f.type){case "t":d.uniforms[e].value=b(f.value);break;case "c":d.uniforms[e].value=(new D).setHex(f.value);break;case "v2":d.uniforms[e].value=(new w).fromArray(f.value);break;case "v3":d.uniforms[e].value=(new m).fromArray(f.value);
break;case "v4":d.uniforms[e].value=(new Y).fromArray(f.value);break;case "m3":d.uniforms[e].value=(new xa).fromArray(f.value);case "m4":d.uniforms[e].value=(new M).fromArray(f.value);break;default:d.uniforms[e].value=f.value}}void 0!==a.defines&&(d.defines=a.defines);void 0!==a.vertexShader&&(d.vertexShader=a.vertexShader);void 0!==a.fragmentShader&&(d.fragmentShader=a.fragmentShader);if(void 0!==a.extensions)for(var g in a.extensions)d.extensions[g]=a.extensions[g];void 0!==a.shading&&(d.flatShading=
1===a.shading);void 0!==a.size&&(d.size=a.size);void 0!==a.sizeAttenuation&&(d.sizeAttenuation=a.sizeAttenuation);void 0!==a.map&&(d.map=b(a.map));void 0!==a.matcap&&(d.matcap=b(a.matcap));void 0!==a.alphaMap&&(d.alphaMap=b(a.alphaMap));void 0!==a.bumpMap&&(d.bumpMap=b(a.bumpMap));void 0!==a.bumpScale&&(d.bumpScale=a.bumpScale);void 0!==a.normalMap&&(d.normalMap=b(a.normalMap));void 0!==a.normalMapType&&(d.normalMapType=a.normalMapType);void 0!==a.normalScale&&(e=a.normalScale,!1===Array.isArray(e)&&
(e=[e,e]),d.normalScale=(new w).fromArray(e));void 0!==a.displacementMap&&(d.displacementMap=b(a.displacementMap));void 0!==a.displacementScale&&(d.displacementScale=a.displacementScale);void 0!==a.displacementBias&&(d.displacementBias=a.displacementBias);void 0!==a.roughnessMap&&(d.roughnessMap=b(a.roughnessMap));void 0!==a.metalnessMap&&(d.metalnessMap=b(a.metalnessMap));void 0!==a.emissiveMap&&(d.emissiveMap=b(a.emissiveMap));void 0!==a.emissiveIntensity&&(d.emissiveIntensity=a.emissiveIntensity);
void 0!==a.specularMap&&(d.specularMap=b(a.specularMap));void 0!==a.envMap&&(d.envMap=b(a.envMap));void 0!==a.envMapIntensity&&(d.envMapIntensity=a.envMapIntensity);void 0!==a.reflectivity&&(d.reflectivity=a.reflectivity);void 0!==a.refractionRatio&&(d.refractionRatio=a.refractionRatio);void 0!==a.lightMap&&(d.lightMap=b(a.lightMap));void 0!==a.lightMapIntensity&&(d.lightMapIntensity=a.lightMapIntensity);void 0!==a.aoMap&&(d.aoMap=b(a.aoMap));void 0!==a.aoMapIntensity&&(d.aoMapIntensity=a.aoMapIntensity);
void 0!==a.gradientMap&&(d.gradientMap=b(a.gradientMap));void 0!==a.clearcoatMap&&(d.clearcoatMap=b(a.clearcoatMap));void 0!==a.clearcoatRoughnessMap&&(d.clearcoatRoughnessMap=b(a.clearcoatRoughnessMap));void 0!==a.clearcoatNormalMap&&(d.clearcoatNormalMap=b(a.clearcoatNormalMap));void 0!==a.clearcoatNormalScale&&(d.clearcoatNormalScale=(new w).fromArray(a.clearcoatNormalScale));return d},setTextures:function(a){this.textures=a;return this}});var qh={decodeText:function(a){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(a);
for(var b="",c=0,d=a.length;c<d;c++)b+=String.fromCharCode(a[c]);try{return decodeURIComponent(escape(b))}catch(e){return b}},extractUrlBase:function(a){var b=a.lastIndexOf("/");return-1===b?"./":a.substr(0,b+1)}};oe.prototype=Object.assign(Object.create(F.prototype),{constructor:oe,isInstancedBufferGeometry:!0,copy:function(a){F.prototype.copy.call(this,a);this.instanceCount=a.instanceCount;return this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var a=F.prototype.toJSON.call(this);
a.instanceCount=this.instanceCount;a.isInstancedBufferGeometry=!0;return a}});sf.prototype=Object.assign(Object.create(H.prototype),{constructor:sf,isInstancedBufferAttribute:!0,copy:function(a){H.prototype.copy.call(this,a);this.meshPerAttribute=a.meshPerAttribute;return this},toJSON:function(){var a=H.prototype.toJSON.call(this);a.meshPerAttribute=this.meshPerAttribute;a.isInstancedBufferAttribute=!0;return a}});tf.prototype=Object.assign(Object.create(S.prototype),{constructor:tf,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,b){if(void 0!==c[b])return c[b];var e=a.interleavedBuffers[b];var f=e.buffer;void 0!==d[f]?f=d[f]:(a=(new Uint32Array(a.arrayBuffers[f])).buffer,f=d[f]=a);f=new Uf[e.type](f);f=new Ja(f,e.stride);f.uuid=e.uuid;return c[b]=f}var c={},d={},e=a.isInstancedBufferGeometry?new oe:new F,f=a.data.index;void 0!==
f&&(f=new Uf[f.type](f.array),e.setIndex(new H(f,1)));f=a.data.attributes;for(var g in f){var h=f[g],k=void 0;h.isInterleavedBufferAttribute?(k=b(a.data,h.data),k=new Jb(k,h.itemSize,h.offset,h.normalized)):(k=new Uf[h.type](h.array),k=new (h.isInstancedBufferAttribute?sf:H)(k,h.itemSize,h.normalized));void 0!==h.name&&(k.name=h.name);e.setAttribute(g,k)}if(g=a.data.morphAttributes)for(var n in g){f=g[n];h=[];k=0;for(var q=f.length;k<q;k++){var p=f[k],v=void 0;p.isInterleavedBufferAttribute?(v=b(a.data,
p.data),v=new Jb(v,p.itemSize,p.offset,p.normalized)):(v=new Uf[p.type](p.array),v=new H(v,p.itemSize,p.normalized));void 0!==p.name&&(v.name=p.name);h.push(v)}e.morphAttributes[n]=h}a.data.morphTargetsRelative&&(e.morphTargetsRelative=!0);n=a.data.groups||a.data.drawcalls||a.data.offsets;if(void 0!==n)for(g=0,f=n.length;g!==f;++g)h=n[g],e.addGroup(h.start,h.count,h.materialIndex);n=a.data.boundingSphere;void 0!==n&&(g=new m,void 0!==n.center&&g.fromArray(n.center),e.boundingSphere=new eb(g,n.radius));
a.name&&(e.name=a.name);a.userData&&(e.userData=a.userData);return e}});var Uf={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!==typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};uf.prototype=Object.assign(Object.create(S.prototype),{constructor:uf,load:function(a,b,c,d){var e=this,f=""===this.path?qh.extractUrlBase(a):this.path;
this.resourcePath=this.resourcePath||f;f=new Ra(e.manager);f.setPath(this.path);f.load(a,function(c){var f=null;try{f=JSON.parse(c)}catch(l){void 0!==d&&d(l);console.error("THREE:ObjectLoader: Can't parse "+a+".",l.message);return}c=f.metadata;void 0===c||void 0===c.type||"geometry"===c.type.toLowerCase()?console.error("THREE.ObjectLoader: Can't load "+a):e.parse(f,b)},c,d)},parse:function(a,b){var c=this.parseShape(a.shapes);c=this.parseGeometries(a.geometries,c);var d=this.parseImages(a.images,
function(){void 0!==b&&b(e)});d=this.parseTextures(a.textures,d);d=this.parseMaterials(a.materials,d);var e=this.parseObject(a.object,c,d);a.animations&&(e.animations=this.parseAnimations(a.animations));void 0!==a.images&&0!==a.images.length||void 0===b||b(e);return e},parseShape:function(a){var b={};if(void 0!==a)for(var c=0,d=a.length;c<d;c++){var e=(new Nb).fromJSON(a[c]);b[e.uuid]=e}return b},parseGeometries:function(a,b){var c={};if(void 0!==a)for(var d=new tf,e=0,f=a.length;e<f;e++){var g=void 0;
var h=a[e];switch(h.type){case "PlaneGeometry":case "PlaneBufferGeometry":g=new ra[h.type](h.width,h.height,h.widthSegments,h.heightSegments);break;case "BoxGeometry":case "BoxBufferGeometry":case "CubeGeometry":g=new ra[h.type](h.width,h.height,h.depth,h.widthSegments,h.heightSegments,h.depthSegments);break;case "CircleGeometry":case "CircleBufferGeometry":g=new ra[h.type](h.radius,h.segments,h.thetaStart,h.thetaLength);break;case "CylinderGeometry":case "CylinderBufferGeometry":g=new ra[h.type](h.radiusTop,
h.radiusBottom,h.height,h.radialSegments,h.heightSegments,h.openEnded,h.thetaStart,h.thetaLength);break;case "ConeGeometry":case "ConeBufferGeometry":g=new ra[h.type](h.radius,h.height,h.radialSegments,h.heightSegments,h.openEnded,h.thetaStart,h.thetaLength);break;case "SphereGeometry":case "SphereBufferGeometry":g=new ra[h.type](h.radius,h.widthSegments,h.heightSegments,h.phiStart,h.phiLength,h.thetaStart,h.thetaLength);break;case "DodecahedronGeometry":case "DodecahedronBufferGeometry":case "IcosahedronGeometry":case "IcosahedronBufferGeometry":case "OctahedronGeometry":case "OctahedronBufferGeometry":case "TetrahedronGeometry":case "TetrahedronBufferGeometry":g=
new ra[h.type](h.radius,h.detail);break;case "RingGeometry":case "RingBufferGeometry":g=new ra[h.type](h.innerRadius,h.outerRadius,h.thetaSegments,h.phiSegments,h.thetaStart,h.thetaLength);break;case "TorusGeometry":case "TorusBufferGeometry":g=new ra[h.type](h.radius,h.tube,h.radialSegments,h.tubularSegments,h.arc);break;case "TorusKnotGeometry":case "TorusKnotBufferGeometry":g=new ra[h.type](h.radius,h.tube,h.tubularSegments,h.radialSegments,h.p,h.q);break;case "TubeGeometry":case "TubeBufferGeometry":g=
new ra[h.type]((new ph[h.path.type]).fromJSON(h.path),h.tubularSegments,h.radius,h.radialSegments,h.closed);break;case "LatheGeometry":case "LatheBufferGeometry":g=new ra[h.type](h.points,h.segments,h.phiStart,h.phiLength);break;case "PolyhedronGeometry":case "PolyhedronBufferGeometry":g=new ra[h.type](h.vertices,h.indices,h.radius,h.details);break;case "ShapeGeometry":case "ShapeBufferGeometry":g=[];for(var k=0,n=h.shapes.length;k<n;k++)g.push(b[h.shapes[k]]);g=new ra[h.type](g,h.curveSegments);
break;case "ExtrudeGeometry":case "ExtrudeBufferGeometry":g=[];k=0;for(n=h.shapes.length;k<n;k++)g.push(b[h.shapes[k]]);k=h.options.extrudePath;void 0!==k&&(h.options.extrudePath=(new ph[k.type]).fromJSON(k));g=new ra[h.type](g,h.options);break;case "BufferGeometry":case "InstancedBufferGeometry":g=d.parse(h);break;case "Geometry":console.error('THREE.ObjectLoader: Loading "Geometry" is not supported anymore.');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+h.type+'"');
continue}g.uuid=h.uuid;void 0!==h.name&&(g.name=h.name);!0===g.isBufferGeometry&&void 0!==h.userData&&(g.userData=h.userData);c[h.uuid]=g}return c},parseMaterials:function(a,b){var c={},d={};if(void 0!==a){var e=new rf;e.setTextures(b);b=0;for(var f=a.length;b<f;b++){var g=a[b];if("MultiMaterial"===g.type){for(var h=[],k=0;k<g.materials.length;k++){var n=g.materials[k];void 0===c[n.uuid]&&(c[n.uuid]=e.parse(n));h.push(c[n.uuid])}d[g.uuid]=h}else void 0===c[g.uuid]&&(c[g.uuid]=e.parse(g)),d[g.uuid]=
c[g.uuid]}}return d},parseAnimations:function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=Qa.parse(d);void 0!==d.uuid&&(e.uuid=d.uuid);b.push(e)}return b},parseImages:function(a,b){function c(a){d.manager.itemStart(a);return f.load(a,function(){d.manager.itemEnd(a)},void 0,function(){d.manager.itemError(a);d.manager.itemEnd(a)})}var d=this,e={};if(void 0!==a&&0<a.length){b=new vg(b);var f=new cd(b);f.setCrossOrigin(this.crossOrigin);b=0;for(var g=a.length;b<g;b++){var h=a[b],k=h.url;if(Array.isArray(k)){e[h.uuid]=
[];for(var n=0,m=k.length;n<m;n++){var p=k[n];p=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p)?p:d.resourcePath+p;e[h.uuid].push(c(p))}}else k=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(h.url)?h.url:d.resourcePath+h.url,e[h.uuid]=c(k)}}return e},parseTextures:function(a,b){function c(a,b){if("number"===typeof a)return a;console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",a);return b[a]}var d={};if(void 0!==a)for(var e=0,f=a.length;e<f;e++){var g=a[e];void 0===g.image&&console.warn('THREE.ObjectLoader: No "image" specified for',
g.uuid);void 0===b[g.image]&&console.warn("THREE.ObjectLoader: Undefined image",g.image);var h=void 0;h=Array.isArray(b[g.image])?new qb(b[g.image]):new W(b[g.image]);h.needsUpdate=!0;h.uuid=g.uuid;void 0!==g.name&&(h.name=g.name);void 0!==g.mapping&&(h.mapping=c(g.mapping,Wk));void 0!==g.offset&&h.offset.fromArray(g.offset);void 0!==g.repeat&&h.repeat.fromArray(g.repeat);void 0!==g.center&&h.center.fromArray(g.center);void 0!==g.rotation&&(h.rotation=g.rotation);void 0!==g.wrap&&(h.wrapS=c(g.wrap[0],
Qi),h.wrapT=c(g.wrap[1],Qi));void 0!==g.format&&(h.format=g.format);void 0!==g.type&&(h.type=g.type);void 0!==g.encoding&&(h.encoding=g.encoding);void 0!==g.minFilter&&(h.minFilter=c(g.minFilter,Ri));void 0!==g.magFilter&&(h.magFilter=c(g.magFilter,Ri));void 0!==g.anisotropy&&(h.anisotropy=g.anisotropy);void 0!==g.flipY&&(h.flipY=g.flipY);void 0!==g.premultiplyAlpha&&(h.premultiplyAlpha=g.premultiplyAlpha);void 0!==g.unpackAlignment&&(h.unpackAlignment=g.unpackAlignment);d[g.uuid]=h}return d},parseObject:function(a,
b,c){function d(a){void 0===b[a]&&console.warn("THREE.ObjectLoader: Undefined geometry",a);return b[a]}function e(a){if(void 0!==a){if(Array.isArray(a)){for(var b=[],d=0,e=a.length;d<e;d++){var f=a[d];void 0===c[f]&&console.warn("THREE.ObjectLoader: Undefined material",f);b.push(c[f])}return b}void 0===c[a]&&console.warn("THREE.ObjectLoader: Undefined material",a);return c[a]}}switch(a.type){case "Scene":var f=new xd;void 0!==a.background&&Number.isInteger(a.background)&&(f.background=new D(a.background));
void 0!==a.fog&&("Fog"===a.fog.type?f.fog=new Qe(a.fog.color,a.fog.near,a.fog.far):"FogExp2"===a.fog.type&&(f.fog=new Pe(a.fog.color,a.fog.density)));break;case "PerspectiveCamera":f=new P(a.fov,a.aspect,a.near,a.far);void 0!==a.focus&&(f.focus=a.focus);void 0!==a.zoom&&(f.zoom=a.zoom);void 0!==a.filmGauge&&(f.filmGauge=a.filmGauge);void 0!==a.filmOffset&&(f.filmOffset=a.filmOffset);void 0!==a.view&&(f.view=Object.assign({},a.view));break;case "OrthographicCamera":f=new ed(a.left,a.right,a.top,a.bottom,
a.near,a.far);void 0!==a.zoom&&(f.zoom=a.zoom);void 0!==a.view&&(f.view=Object.assign({},a.view));break;case "AmbientLight":f=new of(a.color,a.intensity);break;case "DirectionalLight":f=new nf(a.color,a.intensity);break;case "PointLight":f=new lf(a.color,a.intensity,a.distance,a.decay);break;case "RectAreaLight":f=new pf(a.color,a.intensity,a.width,a.height);break;case "SpotLight":f=new kf(a.color,a.intensity,a.distance,a.angle,a.penumbra,a.decay);break;case "HemisphereLight":f=new hf(a.color,a.groundColor,
a.intensity);break;case "LightProbe":f=(new Sa).fromJSON(a);break;case "SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case "Mesh":f=d(a.geometry);var g=e(a.material);f=new X(f,g);break;case "InstancedMesh":f=d(a.geometry);g=e(a.material);var h=a.instanceMatrix;f=new Ue(f,g,a.count);f.instanceMatrix=new H(new Float32Array(h.array),16);break;case "LOD":f=new Pd;break;case "Line":f=new Ka(d(a.geometry),e(a.material),a.mode);break;case "LineLoop":f=new Ve(d(a.geometry),
e(a.material));break;case "LineSegments":f=new ha(d(a.geometry),e(a.material));break;case "PointCloud":case "Points":f=new Mc(d(a.geometry),e(a.material));break;case "Sprite":f=new Nd(e(a.material));break;case "Group":f=new Jc;break;default:f=new z}f.uuid=a.uuid;void 0!==a.name&&(f.name=a.name);void 0!==a.matrix?(f.matrix.fromArray(a.matrix),void 0!==a.matrixAutoUpdate&&(f.matrixAutoUpdate=a.matrixAutoUpdate),f.matrixAutoUpdate&&f.matrix.decompose(f.position,f.quaternion,f.scale)):(void 0!==a.position&&
f.position.fromArray(a.position),void 0!==a.rotation&&f.rotation.fromArray(a.rotation),void 0!==a.quaternion&&f.quaternion.fromArray(a.quaternion),void 0!==a.scale&&f.scale.fromArray(a.scale));void 0!==a.castShadow&&(f.castShadow=a.castShadow);void 0!==a.receiveShadow&&(f.receiveShadow=a.receiveShadow);a.shadow&&(void 0!==a.shadow.bias&&(f.shadow.bias=a.shadow.bias),void 0!==a.shadow.normalOffset&&(f.shadow.normalOffset=a.shadow.normalOffset),void 0!==a.shadow.radius&&(f.shadow.radius=a.shadow.radius),
void 0!==a.shadow.mapSize&&f.shadow.mapSize.fromArray(a.shadow.mapSize),void 0!==a.shadow.camera&&(f.shadow.camera=this.parseObject(a.shadow.camera)));void 0!==a.visible&&(f.visible=a.visible);void 0!==a.frustumCulled&&(f.frustumCulled=a.frustumCulled);void 0!==a.renderOrder&&(f.renderOrder=a.renderOrder);void 0!==a.userData&&(f.userData=a.userData);void 0!==a.layers&&(f.layers.mask=a.layers);if(void 0!==a.children)for(h=a.children,g=0;g<h.length;g++)f.add(this.parseObject(h[g],b,c));if("LOD"===a.type)for(void 0!==
a.autoUpdate&&(f.autoUpdate=a.autoUpdate),a=a.levels,h=0;h<a.length;h++){g=a[h];var k=f.getObjectByProperty("uuid",g.object);void 0!==k&&f.addLevel(k,g.distance)}return f}});var Wk={UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Qi={RepeatWrapping:1E3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},Ri={NearestFilter:1003,NearestMipmapNearestFilter:1004,
NearestMipmapLinearFilter:1005,LinearFilter:1006,LinearMipmapNearestFilter:1007,LinearMipmapLinearFilter:1008};Ag.prototype=Object.assign(Object.create(S.prototype),{constructor:Ag,setOptions:function(a){this.options=a;return this},load:function(a,b,c,d){void 0===a&&(a="");void 0!==this.path&&(a=this.path+a);a=this.manager.resolveURL(a);var e=this,f=tc.get(a);if(void 0!==f)return e.manager.itemStart(a),setTimeout(function(){b&&b(f);e.manager.itemEnd(a)},0),f;fetch(a).then(function(a){return a.blob()}).then(function(a){return void 0===
e.options?createImageBitmap(a):createImageBitmap(a,e.options)}).then(function(c){tc.add(a,c);b&&b(c);e.manager.itemEnd(a)}).catch(function(b){d&&d(b);e.manager.itemError(a);e.manager.itemEnd(a)});e.manager.itemStart(a)}});Object.assign(Bg.prototype,{moveTo:function(a,b){this.currentPath=new bb;this.subPaths.push(this.currentPath);this.currentPath.moveTo(a,b);return this},lineTo:function(a,b){this.currentPath.lineTo(a,b);return this},quadraticCurveTo:function(a,b,c,d){this.currentPath.quadraticCurveTo(a,
b,c,d);return this},bezierCurveTo:function(a,b,c,d,e,f){this.currentPath.bezierCurveTo(a,b,c,d,e,f);return this},splineThru:function(a){this.currentPath.splineThru(a);return this},toShapes:function(a,b){function c(a){for(var b=[],c=0,d=a.length;c<d;c++){var e=a[c],f=new Nb;f.curves=e.curves;b.push(f)}return b}function d(a,b){for(var c=b.length,d=!1,e=c-1,f=0;f<c;e=f++){var g=b[e],h=b[f],k=h.x-g.x,l=h.y-g.y;if(Math.abs(l)>Number.EPSILON){if(0>l&&(g=b[f],k=-k,h=b[e],l=-l),!(a.y<g.y||a.y>h.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;v<t;v++){g=f[v];var r=g.getPoints();var u=e(r);(u=a?!u:u)?(!k&&n[p]&&
p++,n[p]={s:new Nb,p:r},n[p].s.curves=g.curves,k&&p++,m[p]=[]):m[p].push({h:g,p:r[0]})}if(!n[0])return c(f);if(1<n.length){a=!1;e=[];f=0;for(g=n.length;f<g;f++)h[f]=[];f=0;for(g=n.length;f<g;f++)for(u=m[f],k=0;k<u.length;k++){p=u[k];r=!0;for(v=0;v<n.length;v++)d(p.p,n[v].p)&&(f!==v&&e.push({froms:f,tos:v,hole:k}),r?(r=!1,h[v].push(p)):a=!0);r&&h[f].push(p)}0<e.length&&(a||(m=h))}e=0;for(f=n.length;e<f;e++)for(h=n[e].s,b.push(h),a=m[e],g=0,u=a.length;g<u;g++)h.holes.push(a[g].h);return b}});Object.assign(Cg.prototype,
{isFont:!0,generateShapes:function(a,b){void 0===b&&(b=100);var c=[],d=b;b=this.data;var e=Array.from?Array.from(a):String(a).split("");d/=b.resolution;var f=(b.boundingBox.yMax-b.boundingBox.yMin+b.underlineThickness)*d;a=[];for(var g=0,h=0,k=0;k<e.length;k++){var n=e[k];if("\n"===n)g=0,h-=f;else{var m=n;n=d;var p=g,v=h,t=b,r=t.glyphs[m]||t.glyphs["?"];if(r){m=new Bg;if(r.o){t=r._cachedOutline||(r._cachedOutline=r.o.split(" "));for(var u=0,w=t.length;u<w;)switch(t[u++]){case "m":var y=t[u++]*n+p;
var x=t[u++]*n+v;m.moveTo(y,x);break;case "l":y=t[u++]*n+p;x=t[u++]*n+v;m.lineTo(y,x);break;case "q":var z=t[u++]*n+p;var B=t[u++]*n+v;var D=t[u++]*n+p;var C=t[u++]*n+v;m.quadraticCurveTo(D,C,z,B);break;case "b":z=t[u++]*n+p,B=t[u++]*n+v,D=t[u++]*n+p,C=t[u++]*n+v,y=t[u++]*n+p,x=t[u++]*n+v,m.bezierCurveTo(D,C,y,x,z,B)}}n={offsetX:r.ha*n,path:m}}else console.error('THREE.Font: character "'+m+'" does not exists in font family '+t.familyName+"."),n=void 0;g+=n.offsetX;a.push(n.path)}}b=0;for(e=a.length;b<
e;b++)Array.prototype.push.apply(c,a[b].toShapes());return c}});Dg.prototype=Object.assign(Object.create(S.prototype),{constructor:Dg,load:function(a,b,c,d){var e=this,f=new Ra(this.manager);f.setPath(this.path);f.load(a,function(a){try{var c=JSON.parse(a)}catch(l){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),c=JSON.parse(a.substring(65,a.length-2))}a=e.parse(c);b&&b(a)},c,d)},parse:function(a){return new Cg(a)}});var Vf,Ig={getContext:function(){void 0===
Vf&&(Vf=new (window.AudioContext||window.webkitAudioContext));return Vf},setContext:function(a){Vf=a}};vf.prototype=Object.assign(Object.create(S.prototype),{constructor:vf,load:function(a,b,c,d){var e=this,f=new Ra(e.manager);f.setResponseType("arraybuffer");f.setPath(e.path);f.load(a,function(c){try{var f=c.slice(0);Ig.getContext().decodeAudioData(f,function(a){b(a)})}catch(l){d?d(l):console.error(l),e.manager.itemError(a)}},c,d)}});Eg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:Eg,
isHemisphereLightProbe:!0,copy:function(a){Sa.prototype.copy.call(this,a);return this},toJSON:function(a){return Sa.prototype.toJSON.call(this,a)}});Fg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:Fg,isAmbientLightProbe:!0,copy:function(a){Sa.prototype.copy.call(this,a);return this},toJSON:function(a){return Sa.prototype.toJSON.call(this,a)}});var Si=new M,Ti=new M;Object.assign(ji.prototype,{update:function(a){var b=this._cache;if(b.focus!==a.focus||b.fov!==a.fov||b.aspect!==
a.aspect*this.aspect||b.near!==a.near||b.far!==a.far||b.zoom!==a.zoom||b.eyeSep!==this.eyeSep){b.focus=a.focus;b.fov=a.fov;b.aspect=a.aspect*this.aspect;b.near=a.near;b.far=a.far;b.zoom=a.zoom;b.eyeSep=this.eyeSep;var c=a.projectionMatrix.clone(),d=b.eyeSep/2,e=d*b.near/b.focus,f=b.near*Math.tan(K.DEG2RAD*b.fov*.5)/b.zoom;Ti.elements[12]=-d;Si.elements[12]=d;d=-f*b.aspect+e;var g=f*b.aspect+e;c.elements[0]=2*b.near/(g-d);c.elements[8]=(g+d)/(g-d);this.cameraL.projectionMatrix.copy(c);d=-f*b.aspect-
e;g=f*b.aspect-e;c.elements[0]=2*b.near/(g-d);c.elements[8]=(g+d)/(g-d);this.cameraR.projectionMatrix.copy(c)}this.cameraL.matrixWorld.copy(a.matrixWorld).multiply(Ti);this.cameraR.matrixWorld.copy(a.matrixWorld).multiply(Si)}});Object.assign(Gg.prototype,{start:function(){this.oldTime=this.startTime=("undefined"===typeof performance?Date:performance).now();this.elapsedTime=0;this.running=!0},stop:function(){this.getElapsedTime();this.autoStart=this.running=!1},getElapsedTime:function(){this.getDelta();
return this.elapsedTime},getDelta:function(){var a=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var b=("undefined"===typeof performance?Date:performance).now();a=(b-this.oldTime)/1E3;this.oldTime=b;this.elapsedTime+=a}return a}});var uc=new m,Ui=new na,Xk=new m,vc=new m;Hg.prototype=Object.assign(Object.create(z.prototype),{constructor:Hg,getInput:function(){return this.gain},removeFilter:function(){null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),
this.gain.connect(this.context.destination),this.filter=null);return this},getFilter:function(){return this.filter},setFilter:function(a){null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination);this.filter=a;this.gain.connect(this.filter);this.filter.connect(this.context.destination);return this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(a){this.gain.gain.setTargetAtTime(a,
this.context.currentTime,.01);return this},updateMatrixWorld:function(a){z.prototype.updateMatrixWorld.call(this,a);a=this.context.listener;var b=this.up;this.timeDelta=this._clock.getDelta();this.matrixWorld.decompose(uc,Ui,Xk);vc.set(0,0,-1).applyQuaternion(Ui);if(a.positionX){var c=this.context.currentTime+this.timeDelta;a.positionX.linearRampToValueAtTime(uc.x,c);a.positionY.linearRampToValueAtTime(uc.y,c);a.positionZ.linearRampToValueAtTime(uc.z,c);a.forwardX.linearRampToValueAtTime(vc.x,c);
a.forwardY.linearRampToValueAtTime(vc.y,c);a.forwardZ.linearRampToValueAtTime(vc.z,c);a.upX.linearRampToValueAtTime(b.x,c);a.upY.linearRampToValueAtTime(b.y,c);a.upZ.linearRampToValueAtTime(b.z,c)}else a.setPosition(uc.x,uc.y,uc.z),a.setOrientation(vc.x,vc.y,vc.z,b.x,b.y,b.z)}});fd.prototype=Object.assign(Object.create(z.prototype),{constructor:fd,getOutput:function(){return this.gain},setNodeSource:function(a){this.hasPlaybackControl=!1;this.sourceType="audioNode";this.source=a;this.connect();return this},
setMediaElementSource:function(a){this.hasPlaybackControl=!1;this.sourceType="mediaNode";this.source=this.context.createMediaElementSource(a);this.connect();return this},setMediaStreamSource:function(a){this.hasPlaybackControl=!1;this.sourceType="mediaStreamNode";this.source=this.context.createMediaStreamSource(a);this.connect();return this},setBuffer:function(a){this.buffer=a;this.sourceType="buffer";this.autoplay&&this.play();return this},play:function(a){void 0===a&&(a=0);if(!0===this.isPlaying)console.warn("THREE.Audio: Audio is already playing.");
else if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this._startedAt=this.context.currentTime+a,a=this.context.createBufferSource(),a.buffer=this.buffer,a.loop=this.loop,a.loopStart=this.loopStart,a.loopEnd=this.loopEnd,a.onended=this.onEnded.bind(this),a.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=a,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()},pause:function(){if(!1===
this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress%=this.duration||this.buffer.duration),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this},stop:function(){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this._progress=0,this.source.stop(),
this.source.onended=null,this.isPlaying=!1,this},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var a=1,b=this.filters.length;a<b;a++)this.filters[a-1].connect(this.filters[a]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var a=1,b=this.filters.length;a<b;a++)this.filters[a-1].disconnect(this.filters[a]);
this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(a){a||(a=[]);!0===this.isPlaying?(this.disconnect(),this.filters=a,this.connect()):this.filters=a;return this},setDetune:function(a){this.detune=a;if(void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this},getDetune:function(){return this.detune},
getFilter:function(){return this.getFilters()[0]},setFilter:function(a){return this.setFilters(a?[a]:[])},setPlaybackRate:function(a){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.playbackRate=a,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?
(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(a){if(!1===this.hasPlaybackControl)console.warn("THREE.Audio: this Audio has no playback control.");else return this.loop=a,!0===this.isPlaying&&(this.source.loop=this.loop),this},setLoopStart:function(a){this.loopStart=a;return this},setLoopEnd:function(a){this.loopEnd=a;return this},getVolume:function(){return this.gain.gain.value},setVolume:function(a){this.gain.gain.setTargetAtTime(a,this.context.currentTime,
.01);return this}});var wc=new m,Vi=new na,Yk=new m,xc=new m;Jg.prototype=Object.assign(Object.create(fd.prototype),{constructor:Jg,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(a){this.panner.refDistance=a;return this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(a){this.panner.rolloffFactor=a;return this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(a){this.panner.distanceModel=
a;return this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(a){this.panner.maxDistance=a;return this},setDirectionalCone:function(a,b,c){this.panner.coneInnerAngle=a;this.panner.coneOuterAngle=b;this.panner.coneOuterGain=c;return this},updateMatrixWorld:function(a){z.prototype.updateMatrixWorld.call(this,a);if(!0!==this.hasPlaybackControl||!1!==this.isPlaying)if(this.matrixWorld.decompose(wc,Vi,Yk),xc.set(0,0,1).applyQuaternion(Vi),a=this.panner,a.positionX){var b=
this.context.currentTime+this.listener.timeDelta;a.positionX.linearRampToValueAtTime(wc.x,b);a.positionY.linearRampToValueAtTime(wc.y,b);a.positionZ.linearRampToValueAtTime(wc.z,b);a.orientationX.linearRampToValueAtTime(xc.x,b);a.orientationY.linearRampToValueAtTime(xc.y,b);a.orientationZ.linearRampToValueAtTime(xc.z,b)}else a.setPosition(wc.x,wc.y,wc.z),a.setOrientation(xc.x,xc.y,xc.z)}});Object.assign(Kg.prototype,{getFrequencyData:function(){this.analyser.getByteFrequencyData(this.data);return this.data},
getAverageFrequency:function(){for(var a=0,b=this.getFrequencyData(),c=0;c<b.length;c++)a+=b[c];return a/b.length}});Object.assign(Lg.prototype,{accumulate:function(a,b){var c=this.buffer,d=this.valueSize;a=a*d+d;var e=this.cumulativeWeight;if(0===e){for(e=0;e!==d;++e)c[a+e]=c[e];e=b}else e+=b,this._mixBufferRegion(c,a,0,b/e,d);this.cumulativeWeight=e},accumulateAdditive:function(a){var b=this.buffer,c=this.valueSize,d=c*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity();this._mixBufferRegionAdditive(b,
d,0,a,c);this.cumulativeWeightAdditive+=a},apply:function(a){var b=this.valueSize,c=this.buffer;a=a*b+b;var d=this.cumulativeWeight,e=this.cumulativeWeightAdditive,f=this.binding;this.cumulativeWeightAdditive=this.cumulativeWeight=0;1>d&&this._mixBufferRegion(c,a,b*this._origIndex,1-d,b);0<e&&this._mixBufferRegionAdditive(c,a,this._addIndex*b,1,b);d=b;for(e=b+b;d!==e;++d)if(c[d]!==c[d+b]){f.setValue(c,a);break}},saveOriginalState:function(){var a=this.buffer,b=this.valueSize,c=b*this._origIndex;this.binding.getValue(a,
c);for(var d=b;d!==c;++d)a[d]=a[c+d%b];this._setIdentity();this.cumulativeWeightAdditive=this.cumulativeWeight=0},restoreOriginalState:function(){this.binding.setValue(this.buffer,3*this.valueSize)},_setAdditiveIdentityNumeric:function(){for(var a=this._addIndex*this.valueSize,b=a+this.valueSize;a<b;a++)this.buffer[a]=0},_setAdditiveIdentityQuaternion:function(){this._setAdditiveIdentityNumeric();this.buffer[4*this._addIndex+3]=1},_setAdditiveIdentityOther:function(){for(var a=this._origIndex*this.valueSize,
b=this._addIndex*this.valueSize,c=0;c<this.valueSize;c++)this.buffer[b+c]=this.buffer[a+c]},_select:function(a,b,c,d,e){if(.5<=d)for(d=0;d!==e;++d)a[b+d]=a[c+d]},_slerp:function(a,b,c,d){na.slerpFlat(a,b,a,b,a,c,d)},_slerpAdditive:function(a,b,c,d,e){e*=this._workIndex;na.multiplyQuaternionsFlat(a,e,a,b,a,c);na.slerpFlat(a,b,a,b,a,e,d)},_lerp:function(a,b,c,d,e){for(var f=1-d,g=0;g!==e;++g){var h=b+g;a[h]=a[h]*f+a[c+g]*d}},_lerpAdditive:function(a,b,c,d,e){for(var f=0;f!==e;++f){var g=b+f;a[g]+=a[c+
f]*d}}});var Zk=/[\[\]\.:\/]/g,$k="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",al=/((?:WC+[\/:])*)/.source.replace("WC","[^\\[\\]\\.:\\/]"),bl=/(WCOD+)?/.source.replace("WCOD",$k),cl=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC","[^\\[\\]\\.:\\/]"),dl=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC","[^\\[\\]\\.:\\/]"),el=new RegExp("^"+al+bl+cl+dl+"$"),fl=["material","materials","bones"];Object.assign(ki.prototype,{getValue:function(a,b){this.bind();var c=this._bindings[this._targetGroup.nCachedObjects_];
void 0!==c&&c.getValue(a,b)},setValue:function(a,b){for(var c=this._bindings,d=this._targetGroup.nCachedObjects_,e=c.length;d!==e;++d)c[d].setValue(a,b)},bind:function(){for(var a=this._bindings,b=this._targetGroup.nCachedObjects_,c=a.length;b!==c;++b)a[b].bind()},unbind:function(){for(var a=this._bindings,b=this._targetGroup.nCachedObjects_,c=a.length;b!==c;++b)a[b].unbind()}});Object.assign(za,{Composite:ki,create:function(a,b,c){return a&&a.isAnimationObjectGroup?new za.Composite(a,b,c):new za(a,
b,c)},sanitizeNodeName:function(a){return a.replace(/\s/g,"_").replace(Zk,"")},parseTrackName:function(a){var b=el.exec(a);if(!b)throw Error("PropertyBinding: Cannot parse trackName: "+a);b={nodeName:b[2],objectName:b[3],objectIndex:b[4],propertyName:b[5],propertyIndex:b[6]};var c=b.nodeName&&b.nodeName.lastIndexOf(".");if(void 0!==c&&-1!==c){var d=b.nodeName.substring(c+1);-1!==fl.indexOf(d)&&(b.nodeName=b.nodeName.substring(0,c),b.objectName=d)}if(null===b.propertyName||0===b.propertyName.length)throw Error("PropertyBinding: can not parse propertyName from trackName: "+
a);return b},findNode:function(a,b){if(!b||""===b||"."===b||-1===b||b===a.name||b===a.uuid)return a;if(a.skeleton){var c=a.skeleton.getBoneByName(b);if(void 0!==c)return c}if(a.children){var d=function(a){for(var c=0;c<a.length;c++){var e=a[c];if(e.name===b||e.uuid===b||(e=d(e.children)))return e}return null};if(a=d(a.children))return a}return null}});Object.assign(za.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},BindingType:{Direct:0,EntireArray:1,ArrayElement:2,
HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(a,b){a[b]=this.node[this.propertyName]},function(a,b){for(var c=this.resolvedProperty,d=0,e=c.length;d!==e;++d)a[b++]=c[d]},function(a,b){a[b]=this.resolvedProperty[this.propertyIndex]},function(a,b){this.resolvedProperty.toArray(a,b)}],SetterByBindingTypeAndVersioning:[[function(a,b){this.targetObject[this.propertyName]=a[b]},function(a,b){this.targetObject[this.propertyName]=a[b];this.targetObject.needsUpdate=
!0},function(a,b){this.targetObject[this.propertyName]=a[b];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(a,b){for(var c=this.resolvedProperty,d=0,e=c.length;d!==e;++d)c[d]=a[b++]},function(a,b){for(var c=this.resolvedProperty,d=0,e=c.length;d!==e;++d)c[d]=a[b++];this.targetObject.needsUpdate=!0},function(a,b){for(var c=this.resolvedProperty,d=0,e=c.length;d!==e;++d)c[d]=a[b++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(a,b){this.resolvedProperty[this.propertyIndex]=a[b]},function(a,
b){this.resolvedProperty[this.propertyIndex]=a[b];this.targetObject.needsUpdate=!0},function(a,b){this.resolvedProperty[this.propertyIndex]=a[b];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(a,b){this.resolvedProperty.fromArray(a,b)},function(a,b){this.resolvedProperty.fromArray(a,b);this.targetObject.needsUpdate=!0},function(a,b){this.resolvedProperty.fromArray(a,b);this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(a,b){this.bind();this.getValue(a,b)},setValue:function(a,
b){this.bind();this.setValue(a,b)},bind:function(){var a=this.node,b=this.parsedPath,c=b.objectName,d=b.propertyName,e=b.propertyIndex;a||(this.node=a=za.findNode(this.rootNode,b.nodeName)||this.rootNode);this.getValue=this._getValue_unavailable;this.setValue=this._setValue_unavailable;if(a){if(c){var f=b.objectIndex;switch(c){case "materials":if(!a.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!a.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",
this);return}a=a.material.materials;break;case "bones":if(!a.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}a=a.skeleton.bones;for(c=0;c<a.length;c++)if(a[c].name===f){f=c;break}break;default:if(void 0===a[c]){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}a=a[c]}if(void 0!==f){if(void 0===a[f]){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",
this,a);return}a=a[f]}}f=a[d];if(void 0===f)console.error("THREE.PropertyBinding: Trying to update property for track: "+b.nodeName+"."+d+" but it wasn't found.",a);else{b=this.Versioning.None;this.targetObject=a;void 0!==a.needsUpdate?b=this.Versioning.NeedsUpdate:void 0!==a.matrixWorldNeedsUpdate&&(b=this.Versioning.MatrixWorldNeedsUpdate);c=this.BindingType.Direct;if(void 0!==e){if("morphTargetInfluences"===d){if(!a.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",
this);return}if(a.geometry.isBufferGeometry){if(!a.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}void 0!==a.morphTargetDictionary[e]&&(e=a.morphTargetDictionary[e])}else{console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);return}}c=this.BindingType.ArrayElement;this.resolvedProperty=f;this.propertyIndex=
e}else void 0!==f.fromArray&&void 0!==f.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=f):Array.isArray(f)?(c=this.BindingType.EntireArray,this.resolvedProperty=f):this.propertyName=d;this.getValue=this.GetterByBindingType[c];this.setValue=this.SetterByBindingTypeAndVersioning[c][b]}}else console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null;this.getValue=this._getValue_unbound;this.setValue=
this._setValue_unbound}});Object.assign(za.prototype,{_getValue_unbound:za.prototype.getValue,_setValue_unbound:za.prototype.setValue});Object.assign(li.prototype,{isAnimationObjectGroup:!0,add:function(){for(var a=this._objects,b=this._indicesByUUID,c=this._paths,d=this._parsedPaths,e=this._bindings,f=e.length,g=void 0,h=a.length,k=this.nCachedObjects_,n=0,m=arguments.length;n!==m;++n){var p=arguments[n],v=p.uuid,t=b[v];if(void 0===t){t=h++;b[v]=t;a.push(p);t=0;for(var r=f;t!==r;++t)e[t].push(new za(p,
c[t],d[t]))}else if(t<k){g=a[t];r=--k;var u=a[r];b[u.uuid]=t;a[t]=u;b[v]=r;a[r]=p;v=0;for(u=f;v!==u;++v){var w=e[v],y=w[t];w[t]=w[r];void 0===y&&(y=new za(p,c[v],d[v]));w[r]=y}}else a[t]!==g&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=k},remove:function(){for(var a=this._objects,b=this._indicesByUUID,c=this._bindings,d=c.length,e=this.nCachedObjects_,f=0,g=
arguments.length;f!==g;++f){var h=arguments[f],k=h.uuid,n=b[k];if(void 0!==n&&n>=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],n<e){k=--e;var m=a[k],p=--f,v=a[p];b[m.uuid]=n;a[n]=m;b[v.uuid]=
k;a[k]=v;a.pop();m=0;for(v=d;m!==v;++m){var t=c[m],r=t[p];t[n]=t[k];t[k]=r;t.pop()}}else for(k=--f,p=a[k],b[p.uuid]=n,a[n]=p,a.pop(),p=0,m=d;p!==m;++p)v=c[p],v[n]=v[k],v.pop()}this.nCachedObjects_=e},subscribe_:function(a,b){var c=this._bindingsIndicesByPath,d=c[a],e=this._bindings;if(void 0!==d)return e[d];var f=this._paths,g=this._parsedPaths,h=this._objects,k=this.nCachedObjects_,n=Array(h.length);d=e.length;c[a]=d;f.push(a);g.push(b);e.push(n);c=k;for(d=h.length;c!==d;++c)n[c]=new za(h[c],a,b);
return n},unsubscribe_:function(a){var b=this._bindingsIndicesByPath,c=b[a];if(void 0!==c){var d=this._paths,e=this._parsedPaths,f=this._bindings,g=f.length-1,h=f[g];b[a[g]]=c;f[c]=h;f.pop();e[c]=e[g];e.pop();d[c]=d[g];d.pop()}}});Object.assign(mi.prototype,{play:function(){this._mixer._activateAction(this);return this},stop:function(){this._mixer._deactivateAction(this);return this.reset()},reset:function(){this.paused=!1;this.enabled=!0;this.time=0;this._loopCount=-1;this._startTime=null;return this.stopFading().stopWarping()},
isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(a){this._startTime=a;return this},setLoop:function(a,b){this.loop=a;this.repetitions=b;return this},setEffectiveWeight:function(a){this.weight=a;this._effectiveWeight=this.enabled?a:0;return this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(a){return this._scheduleFading(a,
0,1)},fadeOut:function(a){return this._scheduleFading(a,1,0)},crossFadeFrom:function(a,b,c){a.fadeOut(b);this.fadeIn(b);if(c){c=this._clip.duration;var d=a._clip.duration,e=c/d;a.warp(1,d/c,b);this.warp(e,1,b)}return this},crossFadeTo:function(a,b,c){return a.crossFadeFrom(this,b,c)},stopFading:function(){var a=this._weightInterpolant;null!==a&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(a));return this},setEffectiveTimeScale:function(a){this.timeScale=a;this._effectiveTimeScale=
this.paused?0:a;return this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(a){this.timeScale=this._clip.duration/a;return this.stopWarping()},syncWith:function(a){this.time=a.time;this.timeScale=a.timeScale;return this.stopWarping()},halt:function(a){return this.warp(this._effectiveTimeScale,0,a)},warp:function(a,b,c){var d=this._mixer,e=d.time,f=this.timeScale,g=this._timeScaleInterpolant;null===g&&(this._timeScaleInterpolant=g=d._lendControlInterpolant());
d=g.parameterPositions;g=g.sampleValues;d[0]=e;d[1]=e+c;g[0]=a/f;g[1]=b/f;return this},stopWarping:function(){var a=this._timeScaleInterpolant;null!==a&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(a));return this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(a,b,c,d){if(this.enabled){var e=this._startTime;if(null!==e){b=(a-e)*c;if(0>b||0===c)return;this._startTime=
null;b*=c}b*=this._updateTimeScale(a);c=this._updateTime(b);a=this._updateWeight(a);if(0<a)switch(b=this._interpolants,e=this._propertyBindings,this.blendMode){case 2501:d=0;for(var f=b.length;d!==f;++d)b[d].evaluate(c),e[d].accumulateAdditive(a);break;default:f=0;for(var g=b.length;f!==g;++f)b[f].evaluate(c),e[f].accumulate(d,a)}}else this._updateWeight(a)},_updateWeight:function(a){var b=0;if(this.enabled){b=this.weight;var c=this._weightInterpolant;if(null!==c){var d=c.evaluate(a)[0];b*=d;a>c.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=0<a?b:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<a?1:-1})):(1===g?(a=0>a,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&&a<this._nActiveActions},_addInactiveAction:function(a,b,c){var d=this._actions,e=this._actionsByClip,f=e[b];void 0===f?(f={knownActions:[a],actionByRoot:{}},a._byClipCacheIndex=0,e[b]=f):(b=f.knownActions,a._byClipCacheIndex=b.length,b.push(a));a._cacheIndex=d.length;d.push(a);f.actionByRoot[c]=a},_removeInactiveAction:function(a){var b=this._actions,c=b[b.length-1],d=a._cacheIndex;c._cacheIndex=d;b[d]=c;b.pop();a._cacheIndex=null;b=a._clip.uuid;
c=this._actionsByClip;d=c[b];var e=d.knownActions,f=e[e.length-1],g=a._byClipCacheIndex;f._byClipCacheIndex=g;e[g]=f;e.pop();a._byClipCacheIndex=null;delete d.actionByRoot[(a._localRoot||this._root).uuid];0===e.length&&delete c[b];this._removeInactiveBindingsForAction(a)},_removeInactiveBindingsForAction:function(a){a=a._propertyBindings;for(var b=0,c=a.length;b!==c;++b){var d=a[b];0===--d.referenceCount&&this._removeInactiveBinding(d)}},_lendAction:function(a){var b=this._actions,c=a._cacheIndex,
d=this._nActiveActions++,e=b[d];a._cacheIndex=d;b[d]=a;e._cacheIndex=c;b[c]=e},_takeBackAction:function(a){var b=this._actions,c=a._cacheIndex,d=--this._nActiveActions,e=b[d];a._cacheIndex=d;b[d]=a;e._cacheIndex=c;b[c]=e},_addInactiveBinding:function(a,b,c){var d=this._bindingsByRootAndName,e=this._bindings,f=d[b];void 0===f&&(f={},d[b]=f);f[c]=a;a._cacheIndex=e.length;e.push(a)},_removeInactiveBinding:function(a){var b=this._bindings,c=a.binding,d=c.rootNode.uuid;c=c.path;var e=this._bindingsByRootAndName,
f=e[d],g=b[b.length-1];a=a._cacheIndex;g._cacheIndex=a;b[a]=g;b.pop();delete f[c];0===Object.keys(f).length&&delete e[d]},_lendBinding:function(a){var b=this._bindings,c=a._cacheIndex,d=this._nActiveBindings++,e=b[d];a._cacheIndex=d;b[d]=a;e._cacheIndex=c;b[c]=e},_takeBackBinding:function(a){var b=this._bindings,c=a._cacheIndex,d=--this._nActiveBindings,e=b[d];a._cacheIndex=d;b[d]=a;e._cacheIndex=c;b[c]=e},_lendControlInterpolant:function(){var a=this._controlInterpolants,b=this._nActiveControlInterpolants++,
c=a[b];void 0===c&&(c=new ke(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),c.__cacheIndex=b,a[b]=c);return c},_takeBackControlInterpolant:function(a){var b=this._controlInterpolants,c=a.__cacheIndex,d=--this._nActiveControlInterpolants,e=b[d];a.__cacheIndex=d;b[d]=a;e.__cacheIndex=c;b[c]=e},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(a,b,c){var d=b||this._root,e=d.uuid;d="string"===typeof a?Qa.findByName(d,a):a;a=null!==d?d.uuid:a;var f=
this._actionsByClip[a],g=null;void 0===c&&(c=null!==d?d.blendMode:2500);if(void 0!==f){g=f.actionByRoot[e];if(void 0!==g&&g.blendMode===c)return g;g=f.knownActions[0];null===d&&(d=g._clip)}if(null===d)return null;b=new mi(this,d,b,c);this._bindAction(b,g);this._addInactiveAction(b,a,e);return b},existingAction:function(a,b){var c=b||this._root;b=c.uuid;c="string"===typeof a?Qa.findByName(c,a):a;a=this._actionsByClip[c?c.uuid:a];return void 0!==a?a.actionByRoot[b]||null:null},stopAllAction:function(){for(var a=
this._actions,b=this._nActiveActions-1;0<=b;--b)a[b].stop();return this},update:function(a){a*=this.timeScale;for(var b=this._actions,c=this._nActiveActions,d=this.time+=a,e=Math.sign(a),f=this._accuIndex^=1,g=0;g!==c;++g)b[g]._update(d,a,e,f);a=this._bindings;b=this._nActiveBindings;for(c=0;c!==b;++c)a[c].apply(f);return this},setTime:function(a){for(var b=this.time=0;b<this._actions.length;b++)this._actions[b].time=0;return this.update(a)},getRoot:function(){return this._root},uncacheClip:function(a){var b=
this._actions;a=a.uuid;var c=this._actionsByClip,d=c[a];if(void 0!==d){d=d.knownActions;for(var e=0,f=d.length;e!==f;++e){var g=d[e];this._deactivateAction(g);var h=g._cacheIndex,k=b[b.length-1];g._cacheIndex=null;g._byClipCacheIndex=null;k._cacheIndex=h;b[h]=k;b.pop();this._removeInactiveBindingsForAction(g)}delete c[a]}},uncacheRoot:function(a){a=a.uuid;var b=this._actionsByClip;for(d in b){var c=b[d].actionByRoot[a];void 0!==c&&(this._deactivateAction(c),this._removeInactiveAction(c))}var d=this._bindingsByRootAndName[a];
if(void 0!==d)for(var e in d)a=d[e],a.restoreOriginalState(),this._removeInactiveBinding(a)},uncacheAction:function(a,b){a=this.existingAction(a,b);null!==a&&(this._deactivateAction(a),this._removeInactiveAction(a))}});wf.prototype.clone=function(){return new wf(void 0===this.value.clone?this.value:this.value.clone())};Ng.prototype=Object.assign(Object.create(Ja.prototype),{constructor:Ng,isInstancedInterleavedBuffer:!0,copy:function(a){Ja.prototype.copy.call(this,a);this.meshPerAttribute=a.meshPerAttribute;
return this},clone:function(a){a=Ja.prototype.clone.call(this,a);a.meshPerAttribute=this.meshPerAttribute;return a},toJSON:function(a){a=Ja.prototype.toJSON.call(this,a);a.isInstancedInterleavedBuffer=!0;a.meshPerAttribute=this.meshPerAttribute;return a}});Object.assign(Og.prototype,{set:function(a,b){this.ray.set(a,b)},setFromCamera:function(a,b){b&&b.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(b.matrixWorld),this.ray.direction.set(a.x,a.y,.5).unproject(b).sub(this.ray.origin).normalize(),
this.camera=b):b&&b.isOrthographicCamera?(this.ray.origin.set(a.x,a.y,(b.near+b.far)/(b.near-b.far)).unproject(b),this.ray.direction.set(0,0,-1).transformDirection(b.matrixWorld),this.camera=b):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(a,b,c){c=c||[];Pg(a,this,c,b);c.sort(ni);return c},intersectObjects:function(a,b,c){c=c||[];if(!1===Array.isArray(a))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),c;for(var d=0,e=a.length;d<
e;d++)Pg(a[d],this,c,b);c.sort(ni);return c}});Object.assign(oi.prototype,{set:function(a,b,c){this.radius=a;this.phi=b;this.theta=c;return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.radius=a.radius;this.phi=a.phi;this.theta=a.theta;return this},makeSafe:function(){this.phi=Math.max(1E-6,Math.min(Math.PI-1E-6,this.phi));return this},setFromVector3:function(a){return this.setFromCartesianCoords(a.x,a.y,a.z)},setFromCartesianCoords:function(a,b,c){this.radius=
Math.sqrt(a*a+b*b+c*c);0===this.radius?this.phi=this.theta=0:(this.theta=Math.atan2(a,c),this.phi=Math.acos(K.clamp(b/this.radius,-1,1)));return this}});Object.assign(pi.prototype,{set:function(a,b,c){this.radius=a;this.theta=b;this.y=c;return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.radius=a.radius;this.theta=a.theta;this.y=a.y;return this},setFromVector3:function(a){return this.setFromCartesianCoords(a.x,a.y,a.z)},setFromCartesianCoords:function(a,b,
c){this.radius=Math.sqrt(a*a+c*c);this.theta=Math.atan2(a,c);this.y=b;return this}});var Wi=new w;Object.assign(Qg.prototype,{set:function(a,b){this.min.copy(a);this.max.copy(b);return this},setFromPoints:function(a){this.makeEmpty();for(var b=0,c=a.length;b<c;b++)this.expandByPoint(a[b]);return this},setFromCenterAndSize:function(a,b){b=Wi.copy(b).multiplyScalar(.5);this.min.copy(a).sub(b);this.max.copy(a).add(b);return this},clone:function(){return(new this.constructor).copy(this)},copy:function(a){this.min.copy(a.min);
this.max.copy(a.max);return this},makeEmpty:function(){this.min.x=this.min.y=Infinity;this.max.x=this.max.y=-Infinity;return this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(a){void 0===a&&(console.warn("THREE.Box2: .getCenter() target is now required"),a=new w);return this.isEmpty()?a.set(0,0):a.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(a){void 0===a&&(console.warn("THREE.Box2: .getSize() target is now required"),a=new w);return this.isEmpty()?
a.set(0,0):a.subVectors(this.max,this.min)},expandByPoint:function(a){this.min.min(a);this.max.max(a);return this},expandByVector:function(a){this.min.sub(a);this.max.add(a);return this},expandByScalar:function(a){this.min.addScalar(-a);this.max.addScalar(a);return this},containsPoint:function(a){return a.x<this.min.x||a.x>this.max.x||a.y<this.min.y||a.y>this.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.x<this.min.x||a.min.x>this.max.x||a.max.y<this.min.y||a.min.y>this.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;e<b.length;e++){var g=b[e];g.parent&&g.parent.isBone&&(Xf.multiplyMatrices(rh,g.matrixWorld),Tb.setFromMatrixPosition(Xf),d.setXYZ(f,Tb.x,Tb.y,Tb.z),Xf.multiplyMatrices(rh,g.parent.matrixWorld),Tb.setFromMatrixPosition(Xf),d.setXYZ(f+1,Tb.x,Tb.y,Tb.z),f+=2)}c.getAttribute("position").needsUpdate=!0;z.prototype.updateMatrixWorld.call(this,a)};hd.prototype=Object.create(X.prototype);hd.prototype.constructor=hd;hd.prototype.dispose=
function(){this.geometry.dispose();this.material.dispose()};hd.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)};var gl=new m,Zi=new D,$i=new D;id.prototype=Object.create(z.prototype);id.prototype.constructor=id;id.prototype.dispose=function(){this.children[0].geometry.dispose();this.children[0].material.dispose()};id.prototype.update=function(){var a=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);
else{var b=a.geometry.getAttribute("color");Zi.copy(this.light.color);$i.copy(this.light.groundColor);for(var c=0,d=b.count;c<d;c++){var e=c<d/2?Zi:$i;b.setXYZ(c,e.r,e.g,e.b)}b.needsUpdate=!0}a.lookAt(gl.setFromMatrixPosition(this.light.matrixWorld).negate())};xf.prototype=Object.assign(Object.create(ha.prototype),{constructor:xf,copy:function(a){ha.prototype.copy.call(this,a);this.geometry.copy(a.geometry);this.material.copy(a.material);return this},clone:function(){return(new this.constructor).copy(this)}});
yf.prototype=Object.create(ha.prototype);yf.prototype.constructor=yf;var aj=new m,Yf=new m,bj=new m;jd.prototype=Object.create(z.prototype);jd.prototype.constructor=jd;jd.prototype.dispose=function(){this.lightPlane.geometry.dispose();this.lightPlane.material.dispose();this.targetLine.geometry.dispose();this.targetLine.material.dispose()};jd.prototype.update=function(){aj.setFromMatrixPosition(this.light.matrixWorld);Yf.setFromMatrixPosition(this.light.target.matrixWorld);bj.subVectors(Yf,aj);this.lightPlane.lookAt(Yf);
void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color));this.targetLine.lookAt(Yf);this.targetLine.scale.z=bj.length()};var zf=new m,oa=new fb;qe.prototype=Object.create(ha.prototype);qe.prototype.constructor=qe;qe.prototype.update=function(){var a=this.geometry,b=this.pointMap;oa.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse);
ca("c",b,a,oa,0,0,-1);ca("t",b,a,oa,0,0,1);ca("n1",b,a,oa,-1,-1,-1);ca("n2",b,a,oa,1,-1,-1);ca("n3",b,a,oa,-1,1,-1);ca("n4",b,a,oa,1,1,-1);ca("f1",b,a,oa,-1,-1,1);ca("f2",b,a,oa,1,-1,1);ca("f3",b,a,oa,-1,1,1);ca("f4",b,a,oa,1,1,1);ca("u1",b,a,oa,.7,1.1,-1);ca("u2",b,a,oa,-.7,1.1,-1);ca("u3",b,a,oa,0,2,-1);ca("cf1",b,a,oa,-1,0,1);ca("cf2",b,a,oa,1,0,1);ca("cf3",b,a,oa,0,-1,1);ca("cf4",b,a,oa,0,1,1);ca("cn1",b,a,oa,-1,0,-1);ca("cn2",b,a,oa,1,0,-1);ca("cn3",b,a,oa,0,-1,-1);ca("cn4",b,a,oa,0,1,-1);a.getAttribute("position").needsUpdate=
!0};var Zf=new Ta;vb.prototype=Object.create(ha.prototype);vb.prototype.constructor=vb;vb.prototype.update=function(a){void 0!==a&&console.warn("THREE.BoxHelper: .update() has no longer arguments.");void 0!==this.object&&Zf.setFromObject(this.object);if(!Zf.isEmpty()){a=Zf.min;var b=Zf.max,c=this.geometry.attributes.position,d=c.array;d[0]=b.x;d[1]=b.y;d[2]=b.z;d[3]=a.x;d[4]=b.y;d[5]=b.z;d[6]=a.x;d[7]=a.y;d[8]=b.z;d[9]=b.x;d[10]=a.y;d[11]=b.z;d[12]=b.x;d[13]=b.y;d[14]=a.z;d[15]=a.x;d[16]=b.y;d[17]=
a.z;d[18]=a.x;d[19]=a.y;d[20]=a.z;d[21]=b.x;d[22]=a.y;d[23]=a.z;c.needsUpdate=!0;this.geometry.computeBoundingSphere()}};vb.prototype.setFromObject=function(a){this.object=a;this.update();return this};vb.prototype.copy=function(a){ha.prototype.copy.call(this,a);this.object=a.object;return this};vb.prototype.clone=function(){return(new this.constructor).copy(this)};re.prototype=Object.create(ha.prototype);re.prototype.constructor=re;re.prototype.updateMatrixWorld=function(a){var b=this.box;b.isEmpty()||
(b.getCenter(this.position),b.getSize(this.scale),this.scale.multiplyScalar(.5),z.prototype.updateMatrixWorld.call(this,a))};se.prototype=Object.create(Ka.prototype);se.prototype.constructor=se;se.prototype.updateMatrixWorld=function(a){var b=-this.plane.constant;1E-8>Math.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){.99999<a.y?this.quaternion.set(0,0,0,1):-.99999>a.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;e<ej;e++){var f=Math.pow(2,d);
b.push(f);var g=1/f;4<e?g=dj[e-8+4-1]:0==e&&(g=0);c.push(g);g=1/(f-1);f=-g/2;g=1+g/2;var h=[f,f,g,f,g,g,f,f,g,g,f,g];f=new Float32Array(108);g=new Float32Array(72);for(var k=new Float32Array(36),n=0;6>n;n++){var m=n%3*2/3-1,p=2<n?0:-1;f.set([m,p,0,m+2/3,p,0,m+2/3,p+1,0,m,p,0,m+2/3,p+1,0,m,p+1,0],18*n);g.set(h,12*n);k.set([n,n,n,n,n,n],6*n)}h=new F;h.setAttribute("position",new H(f,3));h.setAttribute("uv",new H(g,2));h.setAttribute("faceIndex",new H(k,1));a.push(h);4<d&&d--}return{_lodPlanes:a,_sizeLods:b,
_sigmas:c}}(),Ee=th._lodPlanes,fj=th._sizeLods,$f=th._sigmas,uh=null,yc=(1+Math.sqrt(5))/2,wd=1/yc,gj=[new m(1,1,1),new m(-1,1,1),new m(1,1,-1),new m(-1,1,-1),new m(0,yc,wd),new m(0,yc,-wd),new m(wd,0,yc),new m(-wd,0,yc),new m(yc,wd,0),new m(-yc,wd,0)];Tg.prototype={constructor:Tg,fromScene:function(a,b,c,d){void 0===b&&(b=0);void 0===c&&(c=.1);void 0===d&&(d=100);uh=this._renderer.getRenderTarget();var e=this._allocateTargets();this._sceneToCubeUV(a,c,d,e);0<b&&this._blur(e,0,0,b);this._applyPMREM(e);
this._cleanup(e);return e},fromEquirectangular:function(a){return this._fromTexture(a)},fromCubemap:function(a){return this._fromTexture(a)},compileCubemapShader:function(){null===this._cubemapShader&&(this._cubemapShader=ti(),this._compileMaterial(this._cubemapShader))},compileEquirectangularShader:function(){null===this._equirectShader&&(this._equirectShader=si(),this._compileMaterial(this._equirectShader))},dispose:function(){this._blurMaterial.dispose();null!==this._cubemapShader&&this._cubemapShader.dispose();
null!==this._equirectShader&&this._equirectShader.dispose();for(var a=0;a<Ee.length;a++)Ee[a].dispose()},_cleanup:function(a){this._pingPongRenderTarget.dispose();this._renderer.setRenderTarget(uh);a.scissorTest=!1;a.setSize(a.width,a.height)},_fromTexture:function(a){uh=this._renderer.getRenderTarget();var b=this._allocateTargets(a);this._textureToCubeUV(a,b);this._applyPMREM(b);this._cleanup(b);return b},_allocateTargets:function(a){var b=void 0===a||1009!==a.type?!1:3E3===a.encoding||3001===a.encoding||
3007===a.encoding;b={magFilter:1003,minFilter:1003,generateMipmaps:!1,type:1009,format:1023,encoding:b?a.encoding:3002,depthBuffer:!1,stencilBuffer:!1};var c=ri(b);c.depthBuffer=a?!1:!0;this._pingPongRenderTarget=ri(b);return c},_compileMaterial:function(a){a=new X(Ee[0],a);this._renderer.compile(a,sh)},_sceneToCubeUV:function(a,b,c,d){b=new P(90,1,b,c);c=[1,-1,1,1,1,1];var e=[1,1,1,-1,-1,-1],f=this._renderer,g=f.outputEncoding,h=f.toneMapping,k=f.getClearColor(),n=f.getClearAlpha();f.toneMapping=
0;f.outputEncoding=3E3;var m=a.background;if(m&&m.isColor){m.convertSRGBToLinear();var p=Math.min(Math.max(Math.ceil(Math.log2(Math.max(m.r,m.g,m.b))),-128),127);m=m.multiplyScalar(Math.pow(2,-p));f.setClearColor(m,(p+128)/255);a.background=null}for(m=0;6>m;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,2<m?nb:0,nb,nb),f.setRenderTarget(d),f.render(a,b);f.toneMapping=h;f.outputEncoding=g;f.setClearColor(k,
n)},_textureToCubeUV:function(a,b){var c=this._renderer;a.isCubeTexture?null==this._cubemapShader&&(this._cubemapShader=ti()):null==this._equirectShader&&(this._equirectShader=si());var d=a.isCubeTexture?this._cubemapShader:this._equirectShader,e=new X(Ee[0],d);d=d.uniforms;d.envMap.value=a;a.isCubeTexture||d.texelSize.value.set(1/a.image.width,1/a.image.height);d.inputEncoding.value=mb[a.encoding];d.outputEncoding.value=mb[b.texture.encoding];Wg(b,0,0,3*nb,2*nb);c.setRenderTarget(b);c.render(e,sh)},
_applyPMREM:function(a){var b=this._renderer,c=b.autoClear;b.autoClear=!1;for(var d=1;d<ej;d++)this._blur(a,d-1,d,Math.sqrt($f[d]*$f[d]-$f[d-1]*$f[d-1]),gj[(d-1)%gj.length]);b.autoClear=c},_blur:function(a,b,c,d,e){var f=this._pingPongRenderTarget;this._halfBlur(a,f,b,c,d,"latitudinal",e);this._halfBlur(f,a,c,c,d,"longitudinal",e)},_halfBlur:function(a,b,c,d,e,f,g){var h=this._renderer,k=this._blurMaterial;"latitudinal"!==f&&"longitudinal"!==f&&console.error("blur direction must be either latitudinal or longitudinal!");
var m=new X(Ee[d],k);k=k.uniforms;var q=fj[c]-1;q=isFinite(e)?Math.PI/(2*q):2*Math.PI/39;var p=e/q,v=isFinite(e)?1+Math.floor(3*p):20;20<v&&console.warn("sigmaRadians, "+e+", is too large and will clip, as it requested "+v+" samples when the maximum is set to 20");e=[];for(var t=0,r=0;20>r;++r){var u=r/p;u=Math.exp(-u*u/2);e.push(u);0==r?t+=u:r<v&&(t+=2*u)}for(p=0;p<e.length;p++)e[p]/=t;k.envMap.value=a.texture;k.samples.value=v;k.weights.value=e;k.latitudinal.value="latitudinal"===f;g&&(k.poleAxis.value=
g);k.dTheta.value=q;k.mipInt.value=8-c;k.inputEncoding.value=mb[a.texture.encoding];k.outputEncoding.value=mb[a.texture.encoding];a=fj[d];Wg(b,3*Math.max(0,nb-2*a),(0===d?0:2*nb)+2*a*(4<d?d-8+4:0),3*a,2*a);h.setRenderTarget(b);h.render(m,sh)}};J.create=function(a,b){console.log("THREE.Curve.create() has been deprecated");a.prototype=Object.create(J.prototype);a.prototype.constructor=a;a.prototype.getPoint=b;return a};Object.assign(ub.prototype,{createPointsGeometry:function(a){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");
a=this.getPoints(a);return this.createGeometry(a)},createSpacedPointsGeometry:function(a){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");a=this.getSpacedPoints(a);return this.createGeometry(a)},createGeometry:function(a){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var b=new L,c=0,d=a.length;c<d;c++){var e=a[c];b.vertices.push(new m(e.x,
e.y,e.z||0))}return b}});Object.assign(bb.prototype,{fromPoints:function(a){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints().");return this.setFromPoints(a)}});ui.prototype=Object.create(pa.prototype);vi.prototype=Object.create(pa.prototype);Xg.prototype=Object.create(pa.prototype);Object.assign(Xg.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},
reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}});xf.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")};pc.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")};Object.assign(S.prototype,{extractUrlBase:function(a){console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.");
return qh.extractUrlBase(a)}});S.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}};Object.assign(uf.prototype,{setTexturePath:function(a){console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath().");return this.setResourcePath(a)}});Object.assign(Qg.prototype,{center:function(a){console.warn("THREE.Box2: .center() has been renamed to .getCenter().");
return this.getCenter(a)},empty:function(){console.warn("THREE.Box2: .empty() has been renamed to .isEmpty().");return this.isEmpty()},isIntersectionBox:function(a){console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox().");return this.intersectsBox(a)},size:function(a){console.warn("THREE.Box2: .size() has been renamed to .getSize().");return this.getSize(a)}});Object.assign(Ta.prototype,{center:function(a){console.warn("THREE.Box3: .center() has been renamed to .getCenter().");
return this.getCenter(a)},empty:function(){console.warn("THREE.Box3: .empty() has been renamed to .isEmpty().");return this.isEmpty()},isIntersectionBox:function(a){console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox().");return this.intersectsBox(a)},isIntersectionSphere:function(a){console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere().");return this.intersectsSphere(a)},size:function(a){console.warn("THREE.Box3: .size() has been renamed to .getSize().");
return this.getSize(a)}});Object.assign(eb.prototype,{empty:function(){console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty().");return this.isEmpty()}});Fc.prototype.setFromMatrix=function(a){console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix().");return this.setFromProjectionMatrix(a)};Rg.prototype.center=function(a){console.warn("THREE.Line3: .center() has been renamed to .getCenter().");return this.getCenter(a)};Object.assign(K,{random16:function(){console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead.");
return Math.random()},nearestPowerOfTwo:function(a){console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo().");return K.floorPowerOfTwo(a)},nextPowerOfTwo:function(a){console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo().");return K.ceilPowerOfTwo(a)}});Object.assign(xa.prototype,{flattenToArrayOffset:function(a,b){console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.");return this.toArray(a,b)},
multiplyVector3:function(a){console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead.");return a.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBufferAttribute:function(a){console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead.");return a.applyMatrix3(this)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}});
Object.assign(M.prototype,{extractPosition:function(a){console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition().");return this.copyPosition(a)},flattenToArrayOffset:function(a,b){console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead.");return this.toArray(a,b)},getPosition:function(){console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead.");return(new m).setFromMatrixColumn(this,
3)},setRotationFromQuaternion:function(a){console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion().");return this.makeRotationFromQuaternion(a)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(a){console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead.");return a.applyMatrix4(this)},multiplyVector4:function(a){console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead.");
return a.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(a){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead.");a.transformDirection(this)},crossVector:function(a){console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead.");return a.applyMatrix4(this)},translate:function(){console.error("THREE.Matrix4: .translate() has been removed.")},
rotateX:function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},applyToBufferAttribute:function(a){console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead.");return a.applyMatrix4(this)},
applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(a,b,c,d,e,f){console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead.");return this.makePerspective(a,b,d,c,e,f)}});Ua.prototype.isIntersectionLine=function(a){console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine().");return this.intersectsLine(a)};na.prototype.multiplyVector3=
function(a){console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead.");return a.applyQuaternion(this)};Object.assign(Wb.prototype,{isIntersectionBox:function(a){console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox().");return this.intersectsBox(a)},isIntersectionPlane:function(a){console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane().");return this.intersectsPlane(a)},isIntersectionSphere:function(a){console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere().");
return this.intersectsSphere(a)}});Object.assign(wa.prototype,{area:function(){console.warn("THREE.Triangle: .area() has been renamed to .getArea().");return this.getArea()},barycoordFromPoint:function(a,b){console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().");return this.getBarycoord(a,b)},midpoint:function(a){console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint().");return this.getMidpoint(a)},normal:function(a){console.warn("THREE.Triangle: .normal() has been renamed to .getNormal().");
return this.getNormal(a)},plane:function(a){console.warn("THREE.Triangle: .plane() has been renamed to .getPlane().");return this.getPlane(a)}});Object.assign(wa,{barycoordFromPoint:function(a,b,c,d,e){console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord().");return wa.getBarycoord(a,b,c,d,e)},normal:function(a,b,c,d){console.warn("THREE.Triangle: .normal() has been renamed to .getNormal().");return wa.getNormal(a,b,c,d)}});Object.assign(Nb.prototype,{extractAllPoints:function(a){console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.");
return this.extractPoints(a)},extrude:function(a){console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.");return new dc(this,a)},makeGeometry:function(a){console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead.");return new fc(this,a)}});Object.assign(w.prototype,{fromAttribute:function(a,b,c){console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute().");return this.fromBufferAttribute(a,b,c)},distanceToManhattan:function(a){console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo().");
return this.manhattanDistanceTo(a)},lengthManhattan:function(){console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength().");return this.manhattanLength()}});Object.assign(m.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},
getPositionFromMatrix:function(a){console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition().");return this.setFromMatrixPosition(a)},getScaleFromMatrix:function(a){console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale().");return this.setFromMatrixScale(a)},getColumnFromMatrix:function(a,b){console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn().");return this.setFromMatrixColumn(b,
a)},applyProjection:function(a){console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead.");return this.applyMatrix4(a)},fromAttribute:function(a,b,c){console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute().");return this.fromBufferAttribute(a,b,c)},distanceToManhattan:function(a){console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo().");return this.manhattanDistanceTo(a)},lengthManhattan:function(){console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength().");
return this.manhattanLength()}});Object.assign(Y.prototype,{fromAttribute:function(a,b,c){console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute().");return this.fromBufferAttribute(a,b,c)},lengthManhattan:function(){console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength().");return this.manhattanLength()}});Object.assign(L.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")},
applyMatrix:function(a){console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4().");return this.applyMatrix4(a)}});Object.assign(z.prototype,{getChildByName:function(a){console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName().");return this.getObjectByName(a)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(a,b){console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead.");
return this.translateOnAxis(b,a)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},applyMatrix:function(a){console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4().");return this.applyMatrix4(a)}});Object.defineProperties(z.prototype,{eulerOrder:{get:function(){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order.");return this.rotation.order},set:function(a){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order.");
this.rotation.order=a}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}});Object.assign(X.prototype,{setDrawMode:function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}});
Object.defineProperties(X.prototype,{drawMode:{get:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode.");return 0},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}});Object.defineProperties(Pd.prototype,{objects:{get:function(){console.warn("THREE.LOD: .objects has been renamed to .levels.");
return this.levels}}});Object.defineProperty(Te.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}});Se.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")};Object.defineProperty(J.prototype,"__arcLengthDivisions",{get:function(){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.");return this.arcLengthDivisions},
set:function(a){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions.");this.arcLengthDivisions=a}});P.prototype.setLens=function(a,b){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup.");void 0!==b&&(this.filmGauge=b);this.setFocalLength(a)};Object.defineProperties(T.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(a){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov.");
this.shadow.camera.fov=a}},shadowCameraLeft:{set:function(a){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left.");this.shadow.camera.left=a}},shadowCameraRight:{set:function(a){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right.");this.shadow.camera.right=a}},shadowCameraTop:{set:function(a){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top.");this.shadow.camera.top=a}},shadowCameraBottom:{set:function(a){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom.");
this.shadow.camera.bottom=a}},shadowCameraNear:{set:function(a){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near.");this.shadow.camera.near=a}},shadowCameraFar:{set:function(a){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far.");this.shadow.camera.far=a}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(a){console.warn("THREE.Light: .shadowBias is now .shadow.bias.");
this.shadow.bias=a}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(a){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width.");this.shadow.mapSize.width=a}},shadowMapHeight:{set:function(a){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height.");this.shadow.mapSize.height=a}}});Object.defineProperties(H.prototype,{length:{get:function(){console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead.");
return this.array.length}},dynamic:{get:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.");return 35048===this.usage},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead.");this.setUsage(35048)}}});Object.assign(H.prototype,{setDynamic:function(a){console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead.");this.setUsage(!0===a?35048:35044);return this},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},
setArray:function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}});Object.assign(F.prototype,{addIndex:function(a){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex().");this.setIndex(a)},addAttribute:function(a,b,c){console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute().");return b&&b.isBufferAttribute||b&&b.isInterleavedBufferAttribute?"index"===
a?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(b),this):this.setAttribute(a,b):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(a,new H(b,c)))},addDrawCall:function(a,b,c){void 0!==c&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.");console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup().");this.addGroup(a,b)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups().");
this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},removeAttribute:function(a){console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute().");return this.deleteAttribute(a)},applyMatrix:function(a){console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4().");return this.applyMatrix4(a)}});
Object.defineProperties(F.prototype,{drawcalls:{get:function(){console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups.");return this.groups}},offsets:{get:function(){console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups.");return this.groups}}});Object.defineProperties(oe.prototype,{maxInstancedCount:{get:function(){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.");return this.instanceCount},set:function(a){console.warn("THREE.InstancedBufferGeometry: .maxInstancedCount has been renamed to .instanceCount.");
this.instanceCount=a}}});Object.defineProperties(Og.prototype,{linePrecision:{get:function(){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.");return this.params.Line.threshold},set:function(a){console.warn("THREE.Raycaster: .linePrecision has been deprecated. Use .params.Line.threshold instead.");this.params.Line.threshold=a}}});Object.defineProperties(Ja.prototype,{dynamic:{get:function(){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.");
return 35048===this.usage},set:function(a){console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead.");this.setUsage(a)}}});Object.assign(Ja.prototype,{setDynamic:function(a){console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead.");this.setUsage(!0===a?35048:35044);return this},setArray:function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")}});
Object.assign(hb.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}});Object.defineProperties(wf.prototype,{dynamic:{set:function(){console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead.")}},onUpdate:{value:function(){console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead.");
return this}}});Object.defineProperties(G.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){console.warn("THREE.Material: .wrapRGB has been removed.");return new D}},shading:{get:function(){console.error("THREE."+
this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(a){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.");this.flatShading=1===a}},stencilMask:{get:function(){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead.");return this.stencilFuncMask},set:function(a){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead.");this.stencilFuncMask=
a}}});Object.defineProperties(Mb.prototype,{metal:{get:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead.");return!1},set:function(){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}});Object.defineProperties(Ba.prototype,{derivatives:{get:function(){console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives.");return this.extensions.derivatives},
set:function(a){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives.");this.extensions.derivatives=a}}});Object.assign(Md.prototype,{clearTarget:function(a,b,c,d){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead.");this.setRenderTarget(a);this.clear(b,c,d)},animate:function(a){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop().");this.setAnimationLoop(a)},getCurrentRenderTarget:function(){console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget().");
return this.getRenderTarget()},getMaxAnisotropy:function(){console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy().");return this.capabilities.getMaxAnisotropy()},getPrecision:function(){console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision.");return this.capabilities.precision},resetGLState:function(){console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset().");return this.state.reset()},supportsFloatTextures:function(){console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' ).");
return this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' ).");return this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' ).");return this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' ).");
return this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' ).");return this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' ).");return this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures.");
return this.capabilities.vertexTextures},supportsInstancedArrays:function(){console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' ).");return this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(a){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest().");this.setScissorTest(a)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},
addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},allocTextureUnit:function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},setTexture:function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},setTexture2D:function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},
setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel().");return this.getActiveMipmapLevel()}});Object.defineProperties(Md.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(a){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.");this.shadowMap.enabled=a}},shadowMapType:{get:function(){return this.shadowMap.type},
set:function(a){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.");this.shadowMap.type=a}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead.");return this.getContext()}},
vr:{get:function(){console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr");return this.xr}},gammaInput:{get:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.");return!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.");
return!1},set:function(a){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.");this.outputEncoding=!0===a?3001:3E3}},toneMappingWhitePoint:{get:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.");return 1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}});Object.defineProperties(Vh.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},
set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},
set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}});Object.defineProperties(Ha.prototype,{wrapS:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");return this.texture.wrapS},set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");this.texture.wrapS=a}},wrapT:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");return this.texture.wrapT},
set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");this.texture.wrapT=a}},magFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");return this.texture.magFilter},set:function(a){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");this.texture.magFilter=a}},minFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");return this.texture.minFilter},
set:function(a){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");this.texture.minFilter=a}},anisotropy:{get:function(){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");return this.texture.anisotropy},set:function(a){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");this.texture.anisotropy=a}},offset:{get:function(){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");return this.texture.offset},
set:function(a){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");this.texture.offset=a}},repeat:{get:function(){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");return this.texture.repeat},set:function(a){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");this.texture.repeat=a}},format:{get:function(){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");return this.texture.format},set:function(a){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");
this.texture.format=a}},type:{get:function(){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");return this.texture.type},set:function(a){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");this.texture.type=a}},generateMipmaps:{get:function(){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");return this.texture.generateMipmaps},set:function(a){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");
this.texture.generateMipmaps=a}}});Object.defineProperties(fd.prototype,{load:{value:function(a){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var b=this;(new vf).load(a,function(a){b.setBuffer(a)});return this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}});Kg.prototype.getData=function(){console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData().");return this.getFrequencyData()};Ec.prototype.updateCubeMap=
function(a,b){console.warn("THREE.CubeCamera: .updateCubeMap() is now .update().");return this.update(a,b)};Ob.crossOrigin=void 0;Ob.loadTexture=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var e=new gf;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};Ob.loadTextureCube=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");
var e=new ff;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};Ob.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")};Ob.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"118dev"}}));
k.ACESFilmicToneMapping=4;k.AddEquation=100;k.AddOperation=2;k.AdditiveAnimationBlendMode=2501;k.AdditiveBlending=2;k.AlphaFormat=1021;k.AlwaysDepth=1;k.AlwaysStencilFunc=519;k.AmbientLight=of;k.AmbientLightProbe=Fg;k.AnimationClip=Qa;k.AnimationLoader=wg;k.AnimationMixer=Mg;k.AnimationObjectGroup=li;k.AnimationUtils=Z;k.ArcCurve=dd;k.ArrayCamera=Ne;k.ArrowHelper=wb;k.Audio=fd;k.AudioAnalyser=Kg;k.AudioContext=Ig;k.AudioListener=Hg;k.AudioLoader=vf;k.AxesHelper=te;k.AxisHelper=function(a){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper.");
return new te(a)};k.BackSide=1;k.BasicDepthPacking=3200;k.BasicShadowMap=0;k.BinaryTextureLoader=function(a){console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.");return new ef(a)};k.Bone=pg;k.BooleanKeyframeTrack=af;k.BoundingBoxHelper=function(a,b){console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.");return new vb(a,b)};k.Box2=Qg;k.Box3=Ta;k.Box3Helper=re;k.BoxBufferGeometry=Gd;k.BoxGeometry=kh;k.BoxHelper=vb;k.BufferAttribute=
H;k.BufferGeometry=F;k.BufferGeometryLoader=tf;k.ByteType=1010;k.Cache=tc;k.Camera=fb;k.CameraHelper=qe;k.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")};k.CanvasTexture=Qd;k.CatmullRomCurve3=pa;k.CineonToneMapping=3;k.CircleBufferGeometry=$c;k.CircleGeometry=je;k.ClampToEdgeWrapping=1001;k.Clock=Gg;k.ClosedSplineCurve3=ui;k.Color=D;k.ColorKeyframeTrack=bf;k.CompressedTexture=Nc;k.CompressedTextureLoader=xg;k.ConeBufferGeometry=ie;k.ConeGeometry=he;k.CubeCamera=Ec;
k.CubeGeometry=kh;k.CubeReflectionMapping=301;k.CubeRefractionMapping=302;k.CubeTexture=qb;k.CubeTextureLoader=ff;k.CubeUVReflectionMapping=306;k.CubeUVRefractionMapping=307;k.CubicBezierCurve=Ya;k.CubicBezierCurve3=jb;k.CubicInterpolant=Ze;k.CullFaceBack=1;k.CullFaceFront=2;k.CullFaceFrontBack=3;k.CullFaceNone=0;k.Curve=J;k.CurvePath=ub;k.CustomBlending=5;k.CylinderBufferGeometry=sb;k.CylinderGeometry=hc;k.Cylindrical=pi;k.DataTexture=$b;k.DataTexture2DArray=Gc;k.DataTexture3D=Hc;k.DataTextureLoader=
ef;k.DecrementStencilOp=7683;k.DecrementWrapStencilOp=34056;k.DefaultLoadingManager=hi;k.DepthFormat=1026;k.DepthStencilFormat=1027;k.DepthTexture=Rd;k.DirectionalLight=nf;k.DirectionalLightHelper=jd;k.DirectionalLightShadow=mf;k.DiscreteInterpolant=$e;k.DodecahedronBufferGeometry=Sc;k.DodecahedronGeometry=Xd;k.DoubleSide=2;k.DstAlphaFactor=206;k.DstColorFactor=208;k.DynamicBufferAttribute=function(a,b){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead.");
return(new H(a,b)).setUsage(35048)};k.DynamicCopyUsage=35050;k.DynamicDrawUsage=35048;k.DynamicReadUsage=35049;k.EdgesGeometry=Zc;k.EdgesHelper=function(a,b){console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.");return new ha(new Zc(a.geometry),new la({color:void 0!==b?b:16777215}))};k.EllipseCurve=Ma;k.EqualDepth=4;k.EqualStencilFunc=514;k.EquirectangularReflectionMapping=303;k.EquirectangularRefractionMapping=304;k.Euler=Ub;k.EventDispatcher=ua;k.ExtrudeBufferGeometry=
hb;k.ExtrudeGeometry=dc;k.Face3=zc;k.Face4=function(a,b,c,d,e,f,g){console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead.");return new zc(a,b,c,e,f,g)};k.FaceColors=1;k.FileLoader=Ra;k.FlatShading=1;k.Float32Attribute=function(a,b){console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.");return new B(a,b)};k.Float32BufferAttribute=B;k.Float64Attribute=function(a,b){console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.");
return new Dd(a,b)};k.Float64BufferAttribute=Dd;k.FloatType=1015;k.Fog=Qe;k.FogExp2=Pe;k.Font=Cg;k.FontLoader=Dg;k.FrontFaceDirectionCCW=1;k.FrontFaceDirectionCW=0;k.FrontSide=0;k.Frustum=Fc;k.GammaEncoding=3007;k.Geometry=L;k.GeometryUtils={merge:function(a,b,c){console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.");if(b.isMesh){b.matrixAutoUpdate&&b.updateMatrix();var d=b.matrix;b=b.geometry}a.merge(b,d,c)},
center:function(a){console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.");return a.center()}};k.GreaterDepth=6;k.GreaterEqualDepth=5;k.GreaterEqualStencilFunc=518;k.GreaterStencilFunc=516;k.GridHelper=xf;k.Group=Jc;k.HalfFloatType=1016;k.HemisphereLight=hf;k.HemisphereLightHelper=id;k.HemisphereLightProbe=Eg;k.IcosahedronBufferGeometry=Rc;k.IcosahedronGeometry=Wd;k.ImageBitmapLoader=Ag;k.ImageLoader=cd;k.ImageUtils=Ob;k.ImmediateRenderObject=pe;k.IncrementStencilOp=
7682;k.IncrementWrapStencilOp=34055;k.InstancedBufferAttribute=sf;k.InstancedBufferGeometry=oe;k.InstancedInterleavedBuffer=Ng;k.InstancedMesh=Ue;k.Int16Attribute=function(a,b){console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.");return new Bd(a,b)};k.Int16BufferAttribute=Bd;k.Int32Attribute=function(a,b){console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.");return new Cd(a,b)};k.Int32BufferAttribute=Cd;
k.Int8Attribute=function(a,b){console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.");return new yd(a,b)};k.Int8BufferAttribute=yd;k.IntType=1013;k.InterleavedBuffer=Ja;k.InterleavedBufferAttribute=Jb;k.Interpolant=La;k.InterpolateDiscrete=2300;k.InterpolateLinear=2301;k.InterpolateSmooth=2302;k.InvertStencilOp=5386;k.JSONLoader=function(){console.error("THREE.JSONLoader has been removed.")};k.KeepStencilOp=7680;k.KeyframeTrack=ta;k.LOD=Pd;k.LatheBufferGeometry=
Yc;k.LatheGeometry=ge;k.Layers=Fe;k.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")};k.LessDepth=2;k.LessEqualDepth=3;k.LessEqualStencilFunc=515;k.LessStencilFunc=513;k.Light=T;k.LightProbe=Sa;k.LightShadow=lb;k.Line=Ka;k.Line3=Rg;k.LineBasicMaterial=la;k.LineCurve=Ca;k.LineCurve3=Za;k.LineDashedMaterial=oc;k.LineLoop=Ve;k.LinePieces=1;k.LineSegments=ha;k.LineStrip=0;k.LinearEncoding=3E3;k.LinearFilter=1006;k.LinearInterpolant=ke;k.LinearMipMapLinearFilter=
1008;k.LinearMipMapNearestFilter=1007;k.LinearMipmapLinearFilter=1008;k.LinearMipmapNearestFilter=1007;k.LinearToneMapping=1;k.Loader=S;k.LoaderUtils=qh;k.LoadingManager=vg;k.LogLuvEncoding=3003;k.LoopOnce=2200;k.LoopPingPong=2202;k.LoopRepeat=2201;k.LuminanceAlphaFormat=1025;k.LuminanceFormat=1024;k.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2};k.Material=G;k.MaterialLoader=rf;k.Math=K;k.MathUtils=K;k.Matrix3=xa;k.Matrix4=M;k.MaxEquation=104;k.Mesh=X;k.MeshBasicMaterial=Oa;k.MeshDepthMaterial=
Gb;k.MeshDistanceMaterial=Hb;k.MeshFaceMaterial=function(a){console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead.");return a};k.MeshLambertMaterial=mc;k.MeshMatcapMaterial=nc;k.MeshNormalMaterial=lc;k.MeshPhongMaterial=Mb;k.MeshPhysicalMaterial=jc;k.MeshStandardMaterial=ib;k.MeshToonMaterial=kc;k.MinEquation=103;k.MirroredRepeatWrapping=1002;k.MixOperation=1;k.MultiMaterial=function(a){void 0===a&&(a=[]);console.warn("THREE.MultiMaterial has been removed. Use an Array instead.");
a.isMultiMaterial=!0;a.materials=a;a.clone=function(){return a.slice()};return a};k.MultiplyBlending=4;k.MultiplyOperation=0;k.NearestFilter=1003;k.NearestMipMapLinearFilter=1005;k.NearestMipMapNearestFilter=1004;k.NearestMipmapLinearFilter=1005;k.NearestMipmapNearestFilter=1004;k.NeverDepth=0;k.NeverStencilFunc=512;k.NoBlending=0;k.NoColors=0;k.NoToneMapping=0;k.NormalAnimationBlendMode=2500;k.NormalBlending=1;k.NotEqualDepth=7;k.NotEqualStencilFunc=517;k.NumberKeyframeTrack=ad;k.Object3D=z;k.ObjectLoader=
uf;k.ObjectSpaceNormalMap=1;k.OctahedronBufferGeometry=bc;k.OctahedronGeometry=Vd;k.OneFactor=201;k.OneMinusDstAlphaFactor=207;k.OneMinusDstColorFactor=209;k.OneMinusSrcAlphaFactor=205;k.OneMinusSrcColorFactor=203;k.OrthographicCamera=ed;k.PCFShadowMap=1;k.PCFSoftShadowMap=2;k.PMREMGenerator=Tg;k.ParametricBufferGeometry=Pc;k.ParametricGeometry=Sd;k.Particle=function(a){console.warn("THREE.Particle has been renamed to THREE.Sprite.");return new Nd(a)};k.ParticleBasicMaterial=function(a){console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.");
return new Xa(a)};k.ParticleSystem=function(a,b){console.warn("THREE.ParticleSystem has been renamed to THREE.Points.");return new Mc(a,b)};k.ParticleSystemMaterial=function(a){console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.");return new Xa(a)};k.Path=bb;k.PerspectiveCamera=P;k.Plane=Ua;k.PlaneBufferGeometry=ac;k.PlaneGeometry=Fd;k.PlaneHelper=se;k.PointCloud=function(a,b){console.warn("THREE.PointCloud has been renamed to THREE.Points.");return new Mc(a,b)};k.PointCloudMaterial=
function(a){console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.");return new Xa(a)};k.PointLight=lf;k.PointLightHelper=hd;k.Points=Mc;k.PointsMaterial=Xa;k.PolarGridHelper=yf;k.PolyhedronBufferGeometry=Fa;k.PolyhedronGeometry=Td;k.PositionalAudio=Jg;k.PropertyBinding=za;k.PropertyMixer=Lg;k.QuadraticBezierCurve=$a;k.QuadraticBezierCurve3=kb;k.Quaternion=na;k.QuaternionKeyframeTrack=le;k.QuaternionLinearInterpolant=cf;k.REVISION="118dev";k.RGBADepthPacking=3201;k.RGBAFormat=
1023;k.RGBAIntegerFormat=1033;k.RGBA_ASTC_10x10_Format=37819;k.RGBA_ASTC_10x5_Format=37816;k.RGBA_ASTC_10x6_Format=37817;k.RGBA_ASTC_10x8_Format=37818;k.RGBA_ASTC_12x10_Format=37820;k.RGBA_ASTC_12x12_Format=37821;k.RGBA_ASTC_4x4_Format=37808;k.RGBA_ASTC_5x4_Format=37809;k.RGBA_ASTC_5x5_Format=37810;k.RGBA_ASTC_6x5_Format=37811;k.RGBA_ASTC_6x6_Format=37812;k.RGBA_ASTC_8x5_Format=37813;k.RGBA_ASTC_8x6_Format=37814;k.RGBA_ASTC_8x8_Format=37815;k.RGBA_BPTC_Format=36492;k.RGBA_ETC2_EAC_Format=37496;k.RGBA_PVRTC_2BPPV1_Format=
35843;k.RGBA_PVRTC_4BPPV1_Format=35842;k.RGBA_S3TC_DXT1_Format=33777;k.RGBA_S3TC_DXT3_Format=33778;k.RGBA_S3TC_DXT5_Format=33779;k.RGBDEncoding=3006;k.RGBEEncoding=3002;k.RGBEFormat=1023;k.RGBFormat=1022;k.RGBIntegerFormat=1032;k.RGBM16Encoding=3005;k.RGBM7Encoding=3004;k.RGB_ETC1_Format=36196;k.RGB_ETC2_Format=37492;k.RGB_PVRTC_2BPPV1_Format=35841;k.RGB_PVRTC_4BPPV1_Format=35840;k.RGB_S3TC_DXT1_Format=33776;k.RGFormat=1030;k.RGIntegerFormat=1031;k.RawShaderMaterial=tb;k.Ray=Wb;k.Raycaster=Og;k.RectAreaLight=
pf;k.RedFormat=1028;k.RedIntegerFormat=1029;k.ReinhardToneMapping=2;k.RepeatWrapping=1E3;k.ReplaceStencilOp=7681;k.ReverseSubtractEquation=102;k.RingBufferGeometry=Xc;k.RingGeometry=fe;k.SRGB8_ALPHA8_ASTC_10x10_Format=37851;k.SRGB8_ALPHA8_ASTC_10x5_Format=37848;k.SRGB8_ALPHA8_ASTC_10x6_Format=37849;k.SRGB8_ALPHA8_ASTC_10x8_Format=37850;k.SRGB8_ALPHA8_ASTC_12x10_Format=37852;k.SRGB8_ALPHA8_ASTC_12x12_Format=37853;k.SRGB8_ALPHA8_ASTC_4x4_Format=37840;k.SRGB8_ALPHA8_ASTC_5x4_Format=37841;k.SRGB8_ALPHA8_ASTC_5x5_Format=
37842;k.SRGB8_ALPHA8_ASTC_6x5_Format=37843;k.SRGB8_ALPHA8_ASTC_6x6_Format=37844;k.SRGB8_ALPHA8_ASTC_8x5_Format=37845;k.SRGB8_ALPHA8_ASTC_8x6_Format=37846;k.SRGB8_ALPHA8_ASTC_8x8_Format=37847;k.Scene=xd;k.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};
k.ShaderChunk=N;k.ShaderLib=gb;k.ShaderMaterial=Ba;k.ShadowMaterial=ic;k.Shape=Nb;k.ShapeBufferGeometry=gc;k.ShapeGeometry=fc;k.ShapePath=Bg;k.ShapeUtils=rb;k.ShortType=1011;k.Skeleton=Te;k.SkeletonHelper=pc;k.SkinnedMesh=Se;k.SmoothShading=2;k.Sphere=eb;k.SphereBufferGeometry=ec;k.SphereGeometry=ee;k.Spherical=oi;k.SphericalHarmonics3=qf;k.Spline=Xg;k.SplineCurve=ab;k.SplineCurve3=vi;k.SpotLight=kf;k.SpotLightHelper=gd;k.SpotLightShadow=jf;k.Sprite=Nd;k.SpriteMaterial=Kb;k.SrcAlphaFactor=204;k.SrcAlphaSaturateFactor=
210;k.SrcColorFactor=202;k.StaticCopyUsage=35046;k.StaticDrawUsage=35044;k.StaticReadUsage=35045;k.StereoCamera=ji;k.StreamCopyUsage=35042;k.StreamDrawUsage=35040;k.StreamReadUsage=35041;k.StringKeyframeTrack=df;k.SubtractEquation=101;k.SubtractiveBlending=3;k.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3};k.TangentSpaceNormalMap=0;k.TetrahedronBufferGeometry=Qc;k.TetrahedronGeometry=Ud;k.TextBufferGeometry=Wc;k.TextGeometry=de;k.Texture=W;k.TextureLoader=gf;k.TorusBufferGeometry=Uc;k.TorusGeometry=
$d;k.TorusKnotBufferGeometry=Tc;k.TorusKnotGeometry=Zd;k.Triangle=wa;k.TriangleFanDrawMode=2;k.TriangleStripDrawMode=1;k.TrianglesDrawMode=0;k.TubeBufferGeometry=cc;k.TubeGeometry=Yd;k.UVMapping=300;k.Uint16Attribute=function(a,b){console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.");return new Xb(a,b)};k.Uint16BufferAttribute=Xb;k.Uint32Attribute=function(a,b){console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.");
return new Yb(a,b)};k.Uint32BufferAttribute=Yb;k.Uint8Attribute=function(a,b){console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.");return new zd(a,b)};k.Uint8BufferAttribute=zd;k.Uint8ClampedAttribute=function(a,b){console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.");return new Ad(a,b)};k.Uint8ClampedBufferAttribute=Ad;k.Uniform=wf;k.UniformsLib=y;k.UniformsUtils=Sh;k.UnsignedByteType=1009;
k.UnsignedInt248Type=1020;k.UnsignedIntType=1014;k.UnsignedShort4444Type=1017;k.UnsignedShort5551Type=1018;k.UnsignedShort565Type=1019;k.UnsignedShortType=1012;k.VSMShadowMap=3;k.Vector2=w;k.Vector3=m;k.Vector4=Y;k.VectorKeyframeTrack=bd;k.Vertex=function(a,b,c){console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead.");return new m(a,b,c)};k.VertexColors=2;k.VideoTexture=sg;k.WebGL1Renderer=og;k.WebGLCubeRenderTarget=Zb;k.WebGLMultisampleRenderTarget=ag;k.WebGLRenderTarget=Ha;k.WebGLRenderTargetCube=
function(a,b,c){console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).");return new Zb(a,c)};k.WebGLRenderer=Md;k.WebGLUtils=Wh;k.WireframeGeometry=Oc;k.WireframeHelper=function(a,b){console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.");return new ha(new Oc(a.geometry),new la({color:void 0!==b?b:16777215}))};k.WrapAroundEnding=2402;k.XHRLoader=function(a){console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader.");
return new Ra(a)};k.ZeroCurvatureEnding=2400;k.ZeroFactor=200;k.ZeroSlopeEnding=2401;k.ZeroStencilOp=0;k.sRGBEncoding=3001;Object.defineProperty(k,"__esModule",{value:!0})});

})();