(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(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==
typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,
t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,
t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=
S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),
isReady:!0,error:function(e){throw new Error(e);},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e))for(n=e.length;r<n;r++){if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},
makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],
o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,
t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+
W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+
M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>
10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\x00"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,
r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1])if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else{if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,
e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=
[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?
1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,
le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&
(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),
d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=
function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===
n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||
v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\u000c"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||
a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},
j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,
t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||
e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e);},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),
e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i)if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else{if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",
first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&
(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,
r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":
"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]=
{}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,
r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),
lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||
~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();
return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),
gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,
p];if(n)while(e=e[u]){if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,
r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],
i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,
e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),
n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=
e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||0.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=
se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||
t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(j).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?
1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=
d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=
0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&
3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,
D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,
e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,
"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=
e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e;}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,
t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?
r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||
(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),
this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");
t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,
m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,
r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+
e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e;})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&
!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}
function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):
e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};
var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,
t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==
(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,
i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,
e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,
e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,
t,c+l),(1-o)*(1-(o=s()/u||0.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),
o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;
ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={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,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||
(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=
""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,
s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Se(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i])if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();
else{if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,we)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,
i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),
namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||
{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,
"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&
!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=
[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,
t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==
e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=
e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=
this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),
S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,
arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){S.event.remove(this,e,n,t)})}});
var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,
"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),De)).length;c<f;c++)u=
e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&
(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<
i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return $(this,function(e){return void 0===e?
S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,
function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===
e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",
insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},
Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",
l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip=
"content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",
t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;
while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,
"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-0.5))||0),u}function Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&
A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,
gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Xe.test(t),l=e.style;if(u||(t=ze(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==
o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,
t,n){if(t)return!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-0.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),
S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Ye)}),S.fn.extend({css:function(e,t){return $(this,
function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Re(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},
run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:
(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=Ke.prototype.init,S.fx.step={};var Ze,et,
tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,
t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,
startTime:Ze||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=
S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=lt.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ut,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(lt,
{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||
s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],rt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||
l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),
d)S.style(e,r,d[r])})),u=ut(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),
r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=lt(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,
t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&it.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,
o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=
S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,
e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=
e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;
function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==
n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),
S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},
removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):
this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+ht(gt(n))+" ").indexOf(t))return!0;
return!1}});var yt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==
(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,
t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var mt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};
S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!mt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=
void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,mt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&
(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,
t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,
r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;
function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)At(n,e[n],
t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&kt.test(this.nodeName)&&!St.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):
{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Wt(t,i,o,a){var s={},u=t===Pt;function l(e){var r;return s[e]=!0,
S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ft(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,
processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,
S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=qt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=
n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||bt.href)+"").replace(Ht,
bt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Mt.protocol+"//"+Mt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Wt(Ot,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),
v.hasContent=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.guid++ +o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&
T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+Rt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Wt(Pt,v,
t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));
if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&S.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=
t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&
(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,
t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},
dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},
wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Bt={"0":200,1223:204},$t=S.ajaxSettings.xhr();
y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=
r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Bt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&
i.data||null)}catch(e){if(o)throw e;}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,
i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&
(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===
i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=
N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=ht(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,
e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&
(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();
else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;
return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},
function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),
S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=
X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});(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,p=!0,r=null,z=!1;function C(){return function(){}}function P(a){return function(b){this[a]=b}}function R(a){return function(){return this[a]}}function S(a){return function(){return a}}
(function(){function a(a){this.Hk=a;this.Po=r;this.Uc={}}function b(){this.Qj={};this.Qj[b.SCRIPT_URL]=[];this.Qj[b.THREE_JS_WEBGL_URL]="lib/ThreeWebGL.js";this.Qj[b.WEBVR_POLYFILL_URL]="lib/WebVRPolyfill.js";this.Qj[b.HLS_URL]="lib/Hls.js";this.Qj[b.CURSORS_DIR_URL]="lib/cursors";this.Qj[b.SERVICE_WORKER_URL]="tdvplayersw.js";this.Qj[b.BACKGROUND_PRELOAD_ENABLED]=m}function c(){this.uC=[];this.fK=[];this.voa=[];this.dG=r}function e(a){return"[object Array]"==Object.prototype.toString.call(a)}function d(a){return 0<=
g.search(a.toLowerCase())}var f=window.TDV=window.TDV||{},g=navigator.userAgent.toLowerCase();c.prototype.getVersion=c.prototype.YL=function(){return{MAJOR:"0",MINOR:"1460"}};c.prototype.e8=function(){if(this.dG)for(;0<this.uC.length;){var a=this.uC[0];this.uC=this.uC.slice(1);this.fK.push(a);this.tja(a)}};c.prototype.V5=function(a){var b=document.createElement("a");b.href=a;return b.href};c.prototype.ila=function(){var a=document.currentScript;a||(a=document.getElementsByTagName("head")[0].getElementsByTagName("script"),
a=a[a.length-1]);return this.V5(a.src)};c.prototype.tja=function(a){var f=this,d=a.Hk.get(b.SELECTED_SCRIPT_URL);setTimeout(function(){var b=document.createElement("script");b.type="text/javascript";b.src=d;document.getElementsByTagName("head")[0].appendChild(b);f.dG.Qya(a)},1)};c.prototype.defineScript=c.prototype.gAa=function(a){for(var f=[],d=this.ila(),g=0;g<this.fK.length;g++){var c=this.fK[g],k=this.V5(c.Hk.get(b.SELECTED_SCRIPT_URL));k==d?(c.Hk.set(b.SCRIPT_DATA,a),c.bya(new this.dG(c,c.Hk)),
this.voa.push(c)):f.push(k)}this.fK=f};c.prototype.create=c.prototype.create=function(a){var d=a.get(b.SCRIPT_URL),d=e(d)?this.jpa(d):"string"===typeof d?d:"script.js";a.set(b.SELECTED_SCRIPT_URL,d);a=new f.m0(a);this.uC.push(a);this.e8();return a};c.prototype.setPlayerClass=c.prototype.aya=function(a){this.dG=a;this.e8()};c.prototype.getOrientation=c.prototype.tn=function(){var a=screen.orientation&&screen.orientation.type||window.orientation;return"portrait-primary"==a||"portrait-secondary"==a||
0===a||180==a?f.Aa.mO:"landscape-primary"==a||"landscape-secondary"==a||90==a||-90==a?f.Aa.lO:window.innerWidth<window.innerHeight?f.Aa.mO:f.Aa.lO};c.prototype.jpa=function(a){if(0<a.length){for(var b=0;b<a.length;b++){var f=a[b];if(e(f)){if(this.e$(f[0]))return f[1]}else if("string"===typeof f)return f}return a[0][1]}return"script.js"};c.prototype.e$=function(a){if("string"===typeof a){var b=a.match(/^\s*default\s*$/);if(b)return p;if(b=a.match(/^\s*os\s*=\s*(\w+)\s*$/))return this.Xd==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.Yr==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.IY&&d(screen.width,f)&&d(screen.height,a)}return z}if(e(a)){for(b=0;b<a.length;b++)if(!this.e$(a[b]))return z;return p}return z};c.prototype.ORIENTATION_LANDSCAPE=c.prototype.lO="landscape";c.prototype.ORIENTATION_PORTRAIT=c.prototype.mO="portrait";c.prototype.OS_IOS=c.prototype.UF="ios";c.prototype.OS_ANDROID=c.prototype.nO="android";c.prototype.OS_WINDOWS=c.prototype.b0="windows";c.prototype.OS_WINDOWS_PHONE=c.prototype.rO="windows_phone";c.prototype.OS_MACOSX=c.prototype.oO=
"osx";c.prototype.OS_LINUX=c.prototype.a0="linux";c.prototype.OS_QNX=c.prototype.qO="qnx";c.prototype.OS_OTHER=c.prototype.pO="other";c.prototype.BROWSER_TYPE_WEBKIT=c.prototype.Iz="webkit";c.prototype.BROWSER_TYPE_OPERA=c.prototype.lN="opera";c.prototype.BROWSER_TYPE_MSIE=c.prototype.kN="msie";c.prototype.BROWSER_TYPE_MOZILLA=c.prototype.jN="mozilla";c.prototype.BROWSER_TYPE_OTHER=c.prototype.mN="other";c.prototype.BROWSER_SAFARI_IOS=c.prototype.wf="safari_ios";c.prototype.BROWSER_OPERA=c.prototype.yF=
"opera";c.prototype.BROWSER_SAFARI=c.prototype.xi="safari";c.prototype.BROWSER_CHROME=c.prototype.wi="chrome";c.prototype.BROWSER_EDGE=c.prototype.Uv="edge";c.prototype.BROWSER_MSIE=c.prototype.Up="msie";c.prototype.BROWSER_ANDROID=c.prototype.Dz="android";c.prototype.BROWSER_MOZILLA=c.prototype.vs="mozilla";c.prototype.BROWSER_OTHER=c.prototype.iN="other";c.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET=c.prototype.Hz="samsunginternet";c.prototype.BROWSER_SUBTYPE_OCULUS_BROWSER=c.prototype.Hn="oculusbrowser";
c.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET_FOR_GEAR_VR=c.prototype.CF="samsunginternetgearvr";c.prototype.BROWSER_SUBTYPE_CHROME_IOS=c.prototype.zF="chromeios";c.prototype.BROWSER_SUBTYPE_SAFARI_IOS=c.prototype.Fz="safari_ios";c.prototype.BROWSER_SUBTYPE_CHROME_WEBVIEW=c.prototype.Vv="chrome_webview";c.prototype.BROWSER_SUBTYPE_SAFARI_WEBVIEW=c.prototype.Gz="safari_webview";c.prototype.BROWSER_SUBTYPE_TOUR_LAUNCHER=c.prototype.ws="tour_launcher";c.prototype.BROWSER_SUBTYPE_CHROMIUM_EDGE=c.prototype.Vv=
"chromium_edge";c.prototype.BROWSER_SUBTYPE_FIREFOX_REALITY=c.prototype.Ez="firefox_reality";c.prototype.BROWSER_SUBTYPE_VR_APP=c.prototype.xs="vrapp";c.prototype.BROWSER_SUBTYPE_FACEBOOK_IOS_WEBVIEW=c.prototype.AF="facebook_ios_webview";c.prototype.BROWSER_SUBTYPE_OTHER=c.prototype.BF="other";c.prototype.BROWSER_VERSION_UNKNOWN=c.prototype.nN=-1;c.prototype.DEVICE_IPHONE=c.prototype.sN="iphone";c.prototype.DEVICE_IPAD=c.prototype.Wv="ipad";c.prototype.DEVICE_IPOD=c.prototype.tN="ipod";c.prototype.DEVICE_OTHER=
c.prototype.uN="other";c.prototype.os=c.prototype.Xd=d("iphone")||d("ipad")||d("ipod")?c.prototype.UF:d("qnx")?c.prototype.qO:d("android")||d("oculusbrowser")&&d("linux")?c.prototype.nO:d("windows phone")?c.prototype.rO:d("windows")?c.prototype.b0:d("mac_powerpc")?c.prototype.oO:d("macintosh")?1<navigator.maxTouchPoints?c.prototype.UF:c.prototype.oO:d("linux")||d("x11")?c.prototype.a0:c.prototype.pO;c.prototype.browser=c.prototype.browser=d("ipad")||d("iphone")||d("ipod")||d("macintosh")&&1<navigator.maxTouchPoints?
c.prototype.wf:d("opera")?c.prototype.yF:d("edge")?c.prototype.Uv:d("chrome")||d("crmo")?c.prototype.wi:d("android")?c.prototype.Dz:d("safari")?c.prototype.xi:d("trident")||d("msie")?c.prototype.Up:!d("compatible")&&d("mozilla")?c.prototype.vs:c.prototype.iN;c.prototype.browserType=c.prototype.Ey=c.prototype.browser==c.prototype.wf||c.prototype.browser==c.prototype.wi||c.prototype.browser==c.prototype.Dz||c.prototype.browser==c.prototype.xi||d("webkit")?c.prototype.Iz:c.prototype.browser==c.prototype.yF||
d("opera")?c.prototype.lN:d("trident")||d("msie")?c.prototype.kN:!d("compatible")&&d("mozilla")?c.prototype.jN:c.prototype.mN;c.prototype.browserSubtype=c.prototype.Hc=d("oculusbrowser")?c.prototype.Hn:d("samsungbrowser")&&d("android")?d("mobile vr")?c.prototype.CF:c.prototype.Hz:d("ipad")||d("iphone")||d("ipod")?d("crios")?c.prototype.zF:d("fban")||d("fbav")?c.prototype.AF:d("safari")&&d("version")&&!navigator.QAa?c.prototype.Fz:c.prototype.Gz:d("electron")?c.prototype.ws:d("chrome")&&d("wv")?c.prototype.Vv:
d("edg/")?c.prototype.XZ:window.location.hash&&0<=window.location.hash.indexOf("vrapp")?c.prototype.xs:!d("compatible")&&d("mozilla")&&d("mobile vr")?c.prototype.Ez:c.prototype.BF;c.prototype.browserVersion=c.prototype.Faa=function(){if(c.prototype.browser==c.prototype.Up){var a=g.match(/MSIE ([0-9]{1,}[.0-9]{0,})/);if(a!=r)return parseFloat(a[1]);a=g.match(/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/);if(a!=r)return parseFloat(a[1])}return c.prototype.nN}();c.prototype.device=c.prototype.Yr=d("ipad")||
d("macintosh")&&1<navigator.maxTouchPoints?c.prototype.Wv:d("iphone")?c.prototype.sN:d("ipod")?c.prototype.tN:c.prototype.uN;var k;a:{switch(c.prototype.Xd){case c.prototype.nO:case c.prototype.UF:case c.prototype.rO:case c.prototype.qO:k=p;break a}k=z}c.prototype.mobile=c.prototype.IY=k;f.PlayerAPI=f.Aa=new c;b.prototype.append=b.prototype.append=function(a,f,d){a==b.SCRIPT_URL&&("undefined"==typeof d&&(d=f,f="default"),f=[f,d]);e(this.Qj[a])||(this.Qj[a]=[]);this.Qj[a].push(f)};b.prototype.set=
b.prototype.set=function(a,b){this.Qj[a]=b};b.prototype.get=b.prototype.get=function(a){return this.Qj[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.sfa="PinchToZoomEnabled";f.PlayerSettings=f.PlayerSettings=b;f.PlayerEvent=f.XF=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.bya=P("Po");a.prototype["delete"]=function(){this.Po&&(this.Po.clear(),
this.Po=r)};a.prototype.getById=a.prototype.mAa=function(a){return this.Po?this.Po.Wua(a):r};a.prototype.getByClassName=a.prototype.mn=function(a){return this.Po?this.Po.Cba(a):[]};a.prototype.createInstance=a.prototype.Wr=function(a){return this.Po.Wr(a)};a.prototype.bind=a.prototype.bind=function(a,b,f,d){var g=a.split(":"),a=g[0],g=1<g.length?g[1]:"*";this.Uc[a]=this.Uc[a]||{};this.Uc[a][g]=this.Uc[a][g]||[];this.Uc[a][g].push({handler:b,context:f,immediate:d});return this};a.prototype.unbind=
a.prototype.unbind=function(a,b,f,d){var g=a.split(":"),a=g[0],g=1<g.length?g[1]:"*";if(a in this.Uc&&g in this.Uc[a]){for(var c=[],k=this.Uc[a][g],e=0;e<k.length;e++){var u=k[e];(u.handler!=b||u.context!=f||u.immediate!=d)&&c.push(u)}this.Uc[a][g]=c}};a.prototype.bindOnObject=a.prototype.Zza=function(a,b,f,d,g){return this.bind(b+":"+this.GR(a),f,d,g)};a.prototype.unbindOnObject=a.prototype.XAa=function(a,b,f,d,g){return this.unbind(b+":"+this.GR(a),f,d,g)};a.prototype.bindOnObjectsOf=a.prototype.$za=
function(a,b,f,d,g){return this.bind(b+":"+this.vR(a),f,d,g)};a.prototype.unbindOnObjectsOf=a.prototype.YAa=function(a,b,f,d,g){return this.unbind(b+":"+this.vR(a),f,d,g)};a.prototype.cookiesEnabled=a.prototype.Gta=z;a.DEFAULT_PANORAMA_HFOV=a.Hea=c.prototype.IY?90:110;a.prototype.trigger=function(a){if(a.name in this.Uc){this.tA(a,p);var b=this;setTimeout(function(){b.tA(a,z)},0)}};a.prototype.tA=function(a,b){for(var f=this.Dka(a,b),d=0;d<f.length;d++)try{f[d].handler.call(f[d].context||window,a)}catch(g){setTimeout(function(){h(g)},
0)}};a.prototype.Dka=function(a,b){var f=[];if(a.name in this.Uc){for(var d=[],g=0;g<a.sourceClassPath.length;g++)d.push(this.vR(a.sourceClassPath[g]));a.sourceId&&d.push(this.GR(a.sourceId));d.push("*");for(var c=this.Uc[a.name],g=0;g<d.length;g++)for(var k=c[d[g]]||[],e=0;e<k.length;e++)!!k[e].immediate==!!b&&f.push(k[e])}return f};a.prototype.GR=function(a){return"instance("+a+")"};a.prototype.vR=function(a){return"className("+a+")"};f.Player=f.m0=a})();define("jquery.mod",["jquery"],function(a){return a.noConflict(p)});
(function(){(function(){function a(a,b){return a.Pha?o(b).chain():b}function b(a){return"\\"+K[a]}function c(a){function b(f){return a[f]}var f="(?:"+o.keys(a).join("|")+")",d=RegExp(f),i=RegExp(f,"g");return function(a){return a=r==a?"":""+a,d.test(a)?a.replace(i,b):a}}function e(a,b,f,d){if(a===b)return 0!==a||1/a===1/b;if(r==a||r==b)return a===b;a instanceof o&&(a=a.Wu);b instanceof o&&(b=b.Wu);var i=J.call(a);if(i!==J.call(b))return z;switch(i){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}i="[object Array]"===i;if(!i){if("object"!=typeof a||"object"!=typeof b)return z;var g=a.constructor,c=b.constructor;if(g!==c&&(!o.isFunction(g)||!(g instanceof g&&o.isFunction(c)&&c instanceof c))&&"constructor"in a&&"constructor"in b)return z}f=f||[];d=d||[];for(g=f.length;g--;)if(f[g]===a)return d[g]===b;if(f.push(a),d.push(b),i){if(g=a.length,g!==b.length)return z;
for(;g--;)if(!e(a[g],b[g],f,d))return z}else{var j,i=o.keys(a);if(g=i.length,o.keys(b).length!==g)return z;for(;g--;)if(j=i[g],!o.has(b,j)||!e(a[j],b[j],f,d))return z}return f.pop(),d.pop(),p}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 o.cz(a)?a:b}function f(a,b,d,g){for(var i=[],c=0,g=g||0,j=D(a);j>g;g++){var e=a[g];if(k(e)&&(o.isArray(e)||o.isArguments(e))){b||(e=f(e,b,d));var n=0,l=e.length;for(i.length+=l;l>n;)i[c++]=e[n++]}else d||(i[c++]=
e)}return i}function g(a){return function(b,f,d){var g={};return f=l(f,d),o.each(b,function(d,i){var c=f(d,i,b);a(g,d,c)}),g}}function k(a){a=D(a);return"number"==typeof a&&0<=a&&O>=a}function i(a){return function(b){return r==b?m:b[a]}}function n(a){if(!o.cz(a))return{};if(N)return N(a);t.prototype=a;a=new t;return t.prototype=r,a}function j(a,b){return function(f){var d=arguments.length;if(2>d||r==f)return f;for(var g=1;d>g;g++)for(var i=arguments[g],c=a(i),j=c.length,e=0;j>e;e++){var k=c[e];b&&
f[k]!==m||(f[k]=i[k])}return f}}function l(a,b,f){return r==a?o.identity:o.isFunction(a)?q(a,b,f):o.cz(a)?o.DY(a):o.cda(a)}function q(a,b,f){if(b===m)return a;switch(r==f?3:f){case 1:return function(f){return a.call(b,f)};case 2:return function(f,d){return a.call(b,f,d)};case 3:return function(f,d,g){return a.call(b,f,d,g)};case 4:return function(f,d,g,i){return a.call(b,f,d,g,i)}}return function(){return a.apply(b,arguments)}}function o(a){return a instanceof o?a:this instanceof o?void(this.Wu=a):
new o(a)}function t(){}function s(a){return function(b,f,d,g){var f=q(f,g,4),i=!k(b)&&o.keys(b),c=(i||b).length,j=0<a?0:c-1;3>arguments.length&&(d=b[i?i[j]:j],j+=a);for(var e=f,n=d;0<=j&&c>j;j+=a)var l=i?i[j]:j,n=e(n,b[l],l,b);return n}}function u(a){return function(b,f,d){for(var f=l(f,d),d=D(b),g=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,i){var c=0,j=D(d);if("number"==typeof i)0<a?c=0<=i?i:Math.max(i+j,c):j=0<=i?Math.min(i+1,j):i+j+1;else if(f&&
i&&j)return i=f(d,g),d[i]===g?i:-1;if(g!==g)return i=b(E.call(d,c,j),o.isNaN),0<=i?i+c:-1;for(i=0<a?c:j-1;0<=i&&j>i;i+=a)if(d[i]===g)return i;return-1}}function w(a,b){var f=L.length,d=a.constructor,d=o.isFunction(d)&&d.prototype||A,i="constructor";for(o.has(a,i)&&!o.contains(b,i)&&b.push(i);f--;)i=L[f],i in a&&a[i]!==d[i]&&!o.contains(b,i)&&b.push(i)}var x=this,y=x.IO,F=Array.prototype,A=Object.prototype,M=F.push,E=F.slice,J=A.toString,B=A.hasOwnProperty,G=Array.isArray,H=Object.keys,I=Function.prototype.bind,
N=Object.create;"undefined"!=typeof exports?("undefined"!=typeof module&&module.Zta&&(exports=module.Zta=o),exports.IO=o):x.IO=o;o.VERSION="1.8.3";o.zAa=function(a,b){return l(a,b,1/0)};var O=Math.pow(2,53)-1,D=i("length");o.each=o.forEach=function(a,b,f){var b=q(b,f),d;if(k(a)){f=0;for(d=a.length;d>f;f++)b(a[f],f,a)}else{var i=o.keys(a),f=0;for(d=i.length;d>f;f++)b(a[i[f]],i[f],a)}return a};o.map=o.cAa=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=Array(d),g=0;d>g;g++){var c=
f?f[g]:g;i[g]=b(a[c],c,a)}return i};o.reduce=o.jAa=o.uAa=s(1);o.reduceRight=o.kAa=s(-1);o.find=o.detect=function(a,b,f){var d;return d=k(a)?o.bba(a,b,f):o.eua(a,b,f),d!==m&&-1!==d?a[d]:m};o.filter=o.select=function(a,b,f){var d=[];return b=l(b,f),o.each(a,function(a,f,i){b(a,f,i)&&d.push(a)}),d};o.reject=function(a,b,f){return o.filter(a,o.Qca(l(b)),f)};o.every=o.all=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=0;d>i;i++){var g=f?f[i]:i;if(!b(a[g],g,a))return z}return p};
o.some=o.any=function(a,b,f){for(var b=l(b,f),f=!k(a)&&o.keys(a),d=(f||a).length,i=0;d>i;i++){var g=f?f[i]:i;if(b(a[g],g,a))return p}return z};o.contains=o.sAa=o.include=function(a,b,f,d){return k(a)||(a=o.values(a)),("number"!=typeof f||d)&&(f=0),0<=o.indexOf(a,b,f)};o.invoke=function(a,b){var f=E.call(arguments,2),d=o.isFunction(b);return o.map(a,function(a){var i=d?b:a[b];return r==i?i:i.apply(a,f)})};o.pluck=function(a,b){return o.map(a,o.cda(b))};o.aBa=function(a,b){return o.filter(a,o.DY(b))};
o.iAa=function(a,b){return o.find(a,o.DY(b))};o.max=function(a,b,f){var d,i=-1/0,g=-1/0;if(r==b&&r!=a)for(var a=k(a)?a:o.values(a),c=0,j=a.length;j>c;c++)f=a[c],f>i&&(i=f);else b=l(b,f),o.each(a,function(a,f,c){d=b(a,f,c);(d>g||d===-1/0&&i===-1/0)&&(i=a,g=d)});return i};o.min=function(a,b,f){var d,i=1/0,g=1/0;if(r==b&&r!=a)for(var a=k(a)?a:o.values(a),c=0,j=a.length;j>c;c++)f=a[c],i>f&&(i=f);else b=l(b,f),o.each(a,function(a,f,c){d=b(a,f,c);(g>d||1/0===d&&1/0===i)&&(i=a,g=d)});return i};o.uya=function(a){for(var b=
k(a)?a:o.values(a),f=b.length,d=Array(f),i=0;f>i;i++)a=o.random(0,i),a!==i&&(d[i]=d[a]),d[a]=b[i];return d};o.sample=function(a,b,f){return r==b||f?(k(a)||(a=o.values(a)),a[o.random(a.length-1)]):o.uya(a).slice(0,Math.max(0,b))};o.sortBy=function(a,b,f){return b=l(b,f),o.pluck(o.map(a,function(a,f,d){return{value:a,index:f,Saa:b(a,f,d)}}).sort(function(a,b){var f=a.Saa,d=b.Saa;if(f!==d){if(f>d||f===m)return 1;if(d>f||d===m)return-1}return a.index-b.index}),"value")};o.groupBy=g(function(a,b,f){o.has(a,
f)?a[f].push(b):a[f]=[b]});o.tAa=g(function(a,b,f){a[f]=b});o.eAa=g(function(a,b,f){o.has(a,f)?a[f]++:a[f]=1});o.toArray=function(a){return a?o.isArray(a)?E.call(a):k(a)?o.map(a,o.identity):o.values(a):[]};o.size=function(a){return r==a?0:k(a)?a.length:o.keys(a).length};o.KAa=function(a,b,f){var b=l(b,f),d=[],i=[];return o.each(a,function(a,f,g){(b(a,f,g)?d:i).push(a)}),[d,i]};o.first=o.head=o.TAa=function(a,b,f){return r==a?m:r==b||f?a[0]:o.vva(a,a.length-b)};o.vva=function(a,b){return E.call(a,
0,Math.max(0,a.length-(r==b?1:b)))};o.last=function(a,b,f){return r==a?m:r==b||f?a[a.length-1]:o.rest(a,Math.max(0,a.length-b))};o.rest=o.SAa=o.hAa=function(a,b,f){return E.call(a,r==b||f?1:b)};o.compact=function(a){return o.filter(a,o.identity)};o.flatten=function(a,b){return f(a,b,z)};o.without=function(a){return o.difference(a,E.call(arguments,1))};o.uniq=o.unique=function(a,b,f,d){o.isBoolean(b)||(d=f,f=b,b=z);r!=f&&(f=l(f,d));for(var d=[],i=[],g=0,c=D(a);c>g;g++){var j=a[g],e=f?f(j,g,a):j;b?
(g&&i===e||d.push(j),i=e):f?o.contains(i,e)||(i.push(e),d.push(j)):o.contains(d,j)||d.push(j)}return d};o.union=function(){return o.uniq(f(arguments,p,p))};o.intersection=function(a){for(var b=[],f=arguments.length,d=0,i=D(a);i>d;d++){var g=a[d];if(!o.contains(b,g)){for(var c=1;f>c&&o.contains(arguments[c],g);c++);c===f&&b.push(g)}}return b};o.difference=function(a){var b=f(arguments,p,p,1);return o.filter(a,function(a){return!o.contains(b,a)})};o.zip=function(){return o.Sya(arguments)};o.Sya=function(a){for(var b=
a&&o.max(a,D).length||0,f=Array(b),d=0;b>d;d++)f[d]=o.pluck(a,d);return f};o.object=function(a,b){for(var f={},d=0,i=D(a);i>d;d++)b?f[a[d]]=b[d]:f[a[d][0]]=a[d][1];return f};o.bba=u(1);o.fua=u(-1);o.sortedIndex=function(a,b,f,d){for(var f=l(f,d,1),b=f(b),d=0,i=D(a);i>d;){var g=Math.floor((d+i)/2);f(a[g])<b?d=g+1:i=g}return d};o.indexOf=v(1,o.bba,o.sortedIndex);o.lastIndexOf=v(-1,o.fua);o.range=function(a,b,f){r==b&&(b=a||0,a=0);for(var f=f||1,b=Math.max(Math.ceil((b-a)/f),0),d=Array(b),i=0;b>i;i++,
a+=f)d[i]=a;return d};o.bind=function(a,b){function f(){return d(a,f,b,this,i.concat(E.call(arguments)))}if(I&&a.bind===I)return I.apply(a,E.call(arguments,1));o.isFunction(a)||h(new TypeError("Bind must be called on a function"));var i=E.call(arguments,2);return f};o.MY=function(a){function b(){for(var i=0,g=f.length,c=Array(g),j=0;g>j;j++)c[j]=f[j]===o?arguments[i++]:f[j];for(;i<arguments.length;)c.push(arguments[i++]);return d(a,b,this,this,c)}var f=E.call(arguments,1);return b};o.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]=o.bind(a[f],a);return a};o.memoize=function(a,b){function f(d){var i=f.nta,g=""+(b?b.apply(this,arguments):d);return o.has(i,g)||(i[g]=a.apply(this,arguments)),i[g]}return f.nta={},f};o.delay=function(a,b){var f=E.call(arguments,2);return setTimeout(function(){return a.apply(r,f)},b)};o.defer=o.MY(o.delay,o,1);o.throttle=function(a,b,f){function d(){e=f.Vva===z?0:o.now();j=r;c=a.apply(i,
g);j||(i=g=r)}var i,g,c,j=r,e=0;f||(f={});return function(){var k=o.now();e||f.Vva!==z||(e=k);var n=b-(k-e);return i=this,g=arguments,0>=n||n>b?(j&&(clearTimeout(j),j=r),e=k,c=a.apply(i,g),j||(i=g=r)):j||f.UAa===z||(j=setTimeout(d,n)),c}};o.debounce=function(a,b,f){function d(){var k=o.now()-j;b>k&&0<=k?i=setTimeout(d,b-k):(i=r,f||(e=a.apply(c,g),i||(c=g=r)))}var i,g,c,j,e;return function(){c=this;g=arguments;j=o.now();var k=f&&!i;return i||(i=setTimeout(d,b)),k&&(e=a.apply(c,g),c=g=r),e}};o.wrap=
function(a,b){return o.MY(b,a)};o.Qca=function(a){return function(){return!a.apply(this,arguments)}};o.compose=function(){var a=arguments,b=a.length-1;return function(){for(var f=b,d=a[b].apply(this,arguments);f--;)d=a[f].call(this,d);return d}};o.after=function(a,b){return function(){return 1>--a?b.apply(this,arguments):m}};o.before=function(a,b){var f;return function(){return 0<--a&&(f=b.apply(this,arguments)),1>=a&&(b=r),f}};o.once=o.MY(o.before,2);var Q=!{toString:r}.propertyIsEnumerable("toString"),
L="valueOf,isPrototypeOf,toString,propertyIsEnumerable,hasOwnProperty,toLocaleString".split(",");o.keys=function(a){if(!o.cz(a))return[];if(H)return H(a);var b=[],f;for(f in a)o.has(a,f)&&b.push(f);return Q&&w(a,b),b};o.mX=function(a){if(!o.cz(a))return[];var b=[],f;for(f in a)b.push(f);return Q&&w(a,b),b};o.values=function(a){for(var b=o.keys(a),f=b.length,d=Array(f),i=0;f>i;i++)d[i]=a[b[i]];return d};o.CAa=function(a,b,f){for(var b=l(b,f),d=o.keys(a),i=d.length,g={},c=0;i>c;c++)f=d[c],g[f]=b(a[f],
f,a);return g};o.JAa=function(a){for(var b=o.keys(a),f=b.length,d=Array(f),i=0;f>i;i++)d[i]=[b[i],a[b[i]]];return d};o.oca=function(a){for(var b={},f=o.keys(a),d=0,i=f.length;i>d;d++)b[a[f[d]]]=f[d];return b};o.functions=o.FAa=function(a){var b=[],f;for(f in a)o.isFunction(a[f])&&b.push(f);return b.sort()};o.extend=j(o.mX);o.$aa=o.assign=j(o.keys);o.eua=function(a,b,f){for(var b=l(b,f),d,f=o.keys(a),i=0,g=f.length;g>i;i++)if(d=f[i],b(a[d],d,a))return d};o.qwa=function(a,b,d){var i,g,c={},j=a;if(r==
j)return c;o.isFunction(b)?(g=o.mX(j),i=q(b,d)):(g=f(arguments,z,z,1),i=function(a,b,f){return b in f},j=Object(j));for(var e=0,k=g.length;k>e;e++){var n=g[e],l=j[n];i(l,n,j)&&(c[n]=l)}return c};o.HAa=function(a,b,d){if(o.isFunction(b))b=o.Qca(b);else var i=o.map(f(arguments,z,z,1),String),b=function(a,b){return!o.contains(i,b)};return o.qwa(a,b,d)};o.defaults=j(o.mX,p);o.create=function(a,b){var f=n(a);return b&&o.$aa(f,b),f};o.clone=function(a){return o.cz(a)?o.isArray(a)?a.slice():o.extend({},
a):a};o.tap=function(a,b){return b(a),a};o.Kva=function(a,b){var f=o.keys(b),d=f.length;if(r==a)return!d;for(var i=Object(a),g=0;d>g;g++){var c=f[g];if(b[c]!==i[c]||!(c in i))return z}return p};o.isEqual=function(a,b){return e(a,b)};o.isEmpty=function(a){return r==a?p:k(a)&&(o.isArray(a)||o.isString(a)||o.isArguments(a))?0===a.length:0===o.keys(a).length};o.isElement=function(a){return!(!a||1!==a.nodeType)};o.isArray=G||function(a){return"[object Array]"===J.call(a)};o.cz=function(a){var b=typeof a;
return"function"===b||"object"===b&&!!a};o.each("Arguments,Function,String,Number,Date,RegExp,Error".split(","),function(a){o["is"+a]=function(b){return J.call(b)==="[object "+a+"]"}});o.isArguments(arguments)||(o.isArguments=function(a){return o.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(o.isFunction=function(a){return"function"==typeof a||z});o.vAa=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};o.isNaN=function(a){return o.isNumber(a)&&a!==+a};o.isBoolean=function(a){return a===
p||a===z||"[object Boolean]"===J.call(a)};o.isNull=function(a){return r===a};o.isUndefined=function(a){return a===m};o.has=function(a,b){return r!=a&&B.call(a,b)};o.noConflict=function(){return x.IO=y,this};o.identity=function(a){return a};o.dAa=function(a){return function(){return a}};o.noop=C();o.cda=i;o.LAa=function(a){return r==a?C():function(b){return a[b]}};o.DY=o.DAa=function(a){return a=o.$aa({},a),function(b){return o.Kva(b,a)}};o.times=function(a,b,f){for(var d=Array(Math.max(0,a)),b=q(b,
f,1),f=0;a>f;f++)d[f]=b(f);return d};o.random=function(a,b){return r==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))};o.now=Date.now||function(){return(new Date).getTime()};var G={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ea=o.oca(G);o.escape=c(G);o.unescape=c(ea);o.result=function(a,b,f){b=r==a?m:a[b];return b===m&&(b=f),o.isFunction(b)?b.call(a):b};var fa=0;o.uniqueId=function(a){var b=++fa+"";return a?a+b:b};o.Kya={evaluate:/<%([\s\S]+?)%>/g,zva:/<%=([\s\S]+?)%>/g,
escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},U=/\\|'|\r|\n|\u2028|\u2029/g;o.template=function(a,f,d){function i(a){return j.call(this,a,o)}!f&&d&&(f=d);var f=o.defaults({},f,o.Kya),g=0,c="__p+='";a.replace(RegExp([(f.escape||T).source,(f.zva||T).source,(f.evaluate||T).source].join("|")+"|$","g"),function(f,d,i,j,e){return c+=a.slice(g,e).replace(U,b),g=e+f.length,d?c+="'+\n((__t=("+d+"))==null?'':_.escape(__t))+\n'":i?c+="'+\n((__t=("+
i+"))==null?'':__t)+\n'":j&&(c+="';\n"+j+"\n__p+='"),f});c+="';\n";f.rea||(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.rea||"obj","_",c)}catch(e){h((e.source=c,e))}return i.source="function("+(f.rea||"obj")+"){\n"+c+"}",i};o.chain=function(a){a=o(a);return a.Pha=p,a};o.mixin=function(b){o.each(o.functions(b),function(f){var d=o[f]=b[f];o.prototype[f]=function(){var b=[this.Wu];
return M.apply(b,arguments),a(this,d.apply(o,b))}})};o.mixin(o);o.each("pop,push,reverse,shift,sort,splice,unshift".split(","),function(b){var f=F[b];o.prototype[b]=function(){var d=this.Wu;return f.apply(d,arguments),"shift"!==b&&"splice"!==b||0!==d.length||delete d[0],a(this,d)}});o.each(["concat","join","slice"],function(b){var f=F[b];o.prototype[b]=function(){return a(this,f.apply(this.Wu,arguments))}});o.prototype.value=R("Wu");o.prototype.valueOf=o.prototype.toJSON=o.prototype.value;o.prototype.toString=
function(){return""+this.Wu};"function"==typeof define&&define.Sza&&define("lq",[],function(){return o})}).call(this)}).call(window.TDV||(window.TDV={}));define("underscore-min",C());define("dm",["underscore-min"],function(){return window.TDV._.noConflict()});
define("lc",[],function(){return{D:function(a){return a+"_change"},cd:"default",xb:"mouseDown",Lc:"mouseMove",cc:"mouseUp",Yp:"mouseWheel",T:"click",RF:"doubleClick",tc:"rollOver",Ib:"rollOut",Ch:"mouseEnter",zf:"mouseLeave",Ai:"pointerOver",qza:"pointerOut",j0:"pointerDown",k0:"pointerUp",zi:"pointerClick",MF:"gestureStart",Tea:"gestureChange",LF:"gestureEnd",Uea:"gestureRotate",Zv:"gestureScale",sc:"progress",zs:"close",OPEN:"open",Ci:"select",yb:"resize",pN:"changing",aa:"change",zc:"stateChange",
xf:"cueChange",S:"loaded",ie:"loadingError",Di:"start",je:"stop",Qs:"play",VF:"pause",Db:"ready",Jk:"begin",Da:"end",dza:"cancel",rg:"press",Dh:"release",Rs:"repeatEnd",mm:"scroll",SF:"movementChange",cza:"beforeShow",WZ:"beforeHide",INIT:"init",nd:"show",zd:"hide",hw:"showEnd",Os:"hideEnd",cfa:"loadingScript",wfa:"processingScript",Xv:"enableCookies",Aea:"applicationSet",HF:"userInteraction",y0:"toolTipShow",DO:"toolTipHide"}});
define("bY",[],function(){return function(a,b){this.name=a;this.source=m;this.data=b}});
define("kp",[],function(){function a(){this.Re=[];this.$m=[]}a.prototype.GH=function(a){for(var c=0;c<this.Re.length;c++)if(this.Re[c]==a)return c;return-1};a.prototype.set=function(a,c){var e=this.GH(a);0<=e?this.$m[e]=c:(this.Re.push(a),this.$m.push(c))};a.prototype.Sba=function(a){return 0<=this.GH(a)};a.prototype.get=function(a){a=this.GH(a);if(0<=a)return this.$m[a]};a.prototype.keys=function(){return this.Re.slice()};a.prototype.values=function(){return this.$m.slice()};a.prototype.length=function(){return this.Re.length};
a.prototype.clear=function(a){a=this.GH(a);0<=a&&(this.Re.splice(a,1),this.$m.splice(a,1))};a.prototype.each=function(a,c){for(var e=0;e<this.Re.length;e++)a.call(c,this.Re[e],this.$m[e])};return a});
define("go",["require","dm","lc"],function(a){function b(a){var b=d[a];if(b)return b;if("string"!=typeof a)return d[a]=function(){return a};var i=(b=f.exec(a))&&parseFloat(b[1]);switch(b&&b[4]&&b[4].toLowerCase()){case "vw":return d[a]=function(a){return a*i};case "vh":return d[a]=function(a,b){return b*i};case "vmin":return d[a]=function(a,b,f){return f*i};case "vmax":return d[a]=function(a,b,f,d){return d*i};default:return d[a]=function(){return a}}}function c(a){this.pa=a;this.Hy=this.Hy.bind(this);
this.pa.bind(e.yb,this.nb,this,p);this.qV={};this.ao=[];this.nb()}a("dm");var e=a("lc");c.prototype.nb=function(){this.Fsa();for(var a in this.qV)this.Hy(this.qV[a]);this.ao.forEach(this.Hy)};c.prototype.Fsa=function(){var a=this.pa.gb();this.mL=0.01*this.pa.Ba();this.hL=0.01*a;this.taa=Math.min(this.mL,this.hL);this.saa=Math.max(this.mL,this.hL)};c.prototype.Hy=function(a){a(this.mL,this.hL,this.taa,this.saa)};c.prototype.cta=function(a){this.ao.push(a)};c.prototype.Iwa=function(a){a=this.ao.indexOf(a);
0<=a&&this.ao.splice(a,1)};c.prototype.ita=function(a,f,d,c){function j(b,c,j,n){f.call(a,d,e(b,c,j,n))}var e=b(c);this.qV[a.Sq+"."+d]=j;j(this.mL,this.hL,this.taa,this.saa)};c.Vc={};c.get=function(a){var b=a.Sq,f=c.Vc[b];f||(f=new c(a),c.Vc[b]=f);return f};var d={},f=/^\s*((\+|\-)?(\d*\.)?\d+)\s*(vmin|vmax|vw|vh|px|%)?\s*$/i;return c});
define("jk",[],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||C();b.Xi=document.createElement("a");b.uca=function(a){if(b.rY(a)){var e=window.location.protocol+"//"+window.location.hostname;return a.substring(0,e.length)!=e}return z};b.ts=function(a,e){if(b.Ova(a))a=window.location.protocol+a;else if(!b.rY(a)&&!b.tv(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.Xi.href=a;a=b.Xi.href}return a};b.Eva=function(){switch(window.location.protocol){case "http:":case "https:":return p;default:return z}};b.Ova=function(a){return 0===a.indexOf("//")};b.rY=function(a){if(!a)return z;var b=a.indexOf("://");return 3<=b&&5>=b?p:0==a.indexOf("filesystem:")};b.tv=function(a){return a&&0==a.indexOf("data:")};b.getDirectory=function(a){a=b.ts(a);a=a.split("?")[0];a=a.split("/");1<a.length&&a.splice(a.length-1,1);return a.join("/")+
"/"};b.Vf=function(a){b.Lx||(b.Lx=b.B4());return b.Lx[a]!==m};b.wn=function(a){b.Lx||(b.Lx=b.B4());return b.Lx[a]};b.$u=function(b,e){if(!e)return b;var d=a(b,"#"),f=d[1],d=a(d[0],"?"),g=d[0],d=d[1];return 0<=d.indexOf(e)?b:g+(d+(d?"&":"?")+e)+f};b.parse=function(a){b.Xi.href=a;a={};a.protocol=b.Xi.protocol;a.hostname=b.Xi.hostname;a.port=b.Xi.port;a.pathname=b.Xi.pathname;a.search=b.Xi.search;a.hash=b.Xi.hash;a.host=b.Xi.host;var e=a.pathname?a.pathname.lastIndexOf("."):-1;a.$ta=0<=e?a.pathname.substr(e).toLowerCase():
"";return a};b.aAa=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.Lg=function(a,e){switch((b.wn(a)||"").toLowerCase()){case "false":case "0":case "no":case "n":return z;case "true":case "1":case "yes":case "y":return p;default:return e}};b.pba=function(a,e){var d=parseInt(b.wn(a));return isNaN(d)?e:d};b.RL=function(a){a=parseFloat(b.wn(a));return isNaN(a)?m:a};
b.Lx=r;b.B4=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]):r}return a};return b});
define("fd",["require","dm","jquery.mod"],function(a){var b=a("dm"),c=a("jquery.mod"),e={uva:function(a,b){function d(){}d.prototype=b.prototype;a.prototype=new d;a.prototype.constructor=a},kta:function(a,b){b.forEach(function(b){Object.getOwnPropertyNames(b).forEach(function(d){a.prototype[d]=b[d]})})},extend:function(){var a=arguments[0],b=arguments[arguments.length-1],d=Array.prototype.slice.call(arguments,1,arguments.length-1);e.uva(b,a);e.kta(b,d);return b},deferred:function(a,d){return function(){var c=
arguments;b.defer(function(){a.apply(d,c)})}},An:function(a,d){var c=z;return function(){c||(c=p,b.defer(function(){c=z;a.apply(d||window)}))}},memoize:function(a,b,d,i){a.IB||(a.IB=[],a.hT=[]);for(var c=a.IB,j=0,e=c.length;j<e;j++){var q=c[j];if(i.length==q.length){for(var o=p,t=0,s=i.length;t<s&&o;t++)o=q[t]==i[t];if(o)return a.hT[j]}}d=d.apply(window,i);a.IB.length==b&&(a.IB.shift(),a.hT.shift());a.IB.push(i);a.hT.push(d);return d},hx:[],Yza:function(a,b){var d=e.aja();window[d]=function(){a.apply(b,
arguments)};e.hx.push({handler:a,context:b,callback:d});return d},nAa:function(a,b){for(var d=0;d<e.hx.length;d++){var i=e.hx[d];if(i.handler==a&&i.context==b)return i.callback}},WAa:function(a,b){for(var d=0;d<e.hx.length;d++){var i=e.hx[d];if(i.handler==a&&i.context==b)return i=i.callback,e.hx.splice(d,1),delete window[i],i}},aja:function(){var a;do a="__callback_"+e.eda(8);while(window[a]);return a},eda:function(a){for(var b=[],d=0;d<a;d++)b.push(Math.floor(16*Math.random()).toString(16));return b.join("")},
Xta:function(a){e.vx=c("<div></div>");e.vx.css({overflow:"auto",position:"absolute",bottom:0,left:0,right:0,padding:"20px",fontFamily:"Verdana",backgroundColor:"#FFFFFF",color:"#000000","z-index":100});a?e.vx.css({top:0}):e.vx.css({width:"40%",right:"0",left:"auto",height:"50%",filter:"alpha(opacity=60)",opacity:0.6});c("body").append(e.vx);console.log=function(a){e.log(a)}}},d;e.log=function(a){if(a!=d){d=a;try{e.vx?c("<div></div>").text(a).prependTo(e.vx):console.log(a)}catch(b){}}};e.MAa=function(a){this.iR.push(a)};
e.iR=[];e.debug=function(a,b){try{b.apply(this,arguments)}catch(d){e.sM(a,d),h(d)}};e.sM=function(a,b){var d=[];d.push("Exception: "+a);b.message?(d.push(b.message),d.push(b.stack)):d.push(b);this.log(d.join("\n"));for(d=0;d<this.iR.length;d++)this.iR[d](b)};e.clone=function(a,b){var b=b||0,d=new a.constructor,i;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];0<b&&c&&"object"===typeof c&&(c=e.clone(c,b-1));d[i]=c}return d};e.toArray=function(a){return a===m||a===r?[]:!Array.isArray(a)?[a]:a};"function"!=
typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(a,b){a==r&&h(new TypeError("Cannot convert undefined or null to object"));for(var d=Object(a),i=1;i<arguments.length;i++){var c=arguments[i];if(c!=r)for(var j in c)Object.prototype.hasOwnProperty.call(c,j)&&(d[j]=c[j])}return d},writable:p,configurable:p});return e});
define("dT","require,jquery.mod,dm,kp,go,jk,fd".split(","),function(a){function b(a,b){this.Ew=a;this.WP=b;this.tC=r;this.PT={};this.LT=this.ct=this.uw=m;this.G7=[];this.ND=this.Su=m;this.F7=[];this.cD=this.Gu=m;this.E7={};this.KB=m;this.C7=[];this.Fq=m;this.D7=[];this.Uq=m;this.p5=this.r5=z}var c=a("jquery.mod"),e=a("dm"),d=a("kp"),f=a("go"),g=a("jk"),k=a("fd");b.prototype.B=function(a){this.tC=a;this.y2();this.C2();this.QP();return this};b.prototype.Nua=function(){if(this.tC)return b.mn(this.tC)};
b.prototype.Ry=R("Ew");b.prototype.uE=function(){return this.Pq()?this.qo().uE().concat(this.Ew):[this.Ew]};b.prototype.L=function(a){this.PT=a;this.y2();return this};b.prototype.hasAttributes=function(){return this.fba().length>0};b.prototype.hasAttribute=function(a){return this.MX(a)?p:z};b.prototype.fba=function(){this.uw==m&&this.X2();return this.uw};b.prototype.Sxa=function(){this.LT=["definitions"];return this};b.prototype.yba=function(){if(this.LT)return this.LT;if(this.Pq())this.qo().yba();
else return[]};b.prototype.MX=function(a){this.ct==m&&this.X2();return this.ct[a]};b.prototype.Ah=function(a){this.G7=a;this.gia();return this};b.prototype.lva=function(){return this.Gba().length>0};b.prototype.Gba=function(){this.Su==m&&this.d3();return this.Su};b.prototype.Yua=function(){this.ND==m&&this.d3();return this.ND};b.prototype.Mp=function(a){this.F7=a;this.eia();return this};b.prototype.kva=function(){return this.Eba().length>0};b.prototype.Eba=function(){this.Gu==m&&this.c3();return this.Gu};
b.prototype.Xua=function(){this.cD==m&&this.c3();return this.cD};b.prototype.Vb=function(a){this.C7=a;this.QP();return this};b.prototype.fva=function(){return this.QX().length>0};b.prototype.Qba=function(a){this.Fq==m&&this.ZG();return e(this.Fq).contains(a)};b.prototype.QX=function(){this.Fq==m&&this.ZG();return this.Fq};b.prototype.Wf=function(a){this.D7=a;this.QP();return this};b.prototype.iva=function(){return this.VX().length>0};b.prototype.Rba=function(a){this.Uq==m&&this.ZG();return e(this.Uq).contains(a)};
b.prototype.VX=function(){this.Uq==m&&this.ZG();return this.Uq};b.prototype.Rg=function(a){this.E7=a;this.C2();return this};b.prototype.wba=function(){this.KB==m&&this.Tia();return this.KB};b.prototype.Axa=function(){this.r5=p;return this};b.prototype.qba=function(){return this.r5||this.Pq()&&this.qo().qba()};b.prototype.Wr=function(a,b,f,d){this.soa(b,f);var g=this.WP,c;c=d&&d.length>0?new (k.extend(g,function(){g.apply(this,d)})):new g;c.set("application",a);c.set("baseDirectoy",b);c.set("queryStringParameters",
f);c.set("class",this.Ry());return c};b.prototype.soa=function(a,b){if(!this.p5){this.p5=p;this.dja(a,b);this.Kja()}};b.prototype.dja=function(a,b){if(this.lva()||this.kva()){var d=this.WP.prototype,c=this.Yua(),e=this.Xua(),k=d.set;d.set=function(d,j){if(c[d]){j&&!g.tv(j)&&!g.rY(j)&&(j=g.$u(g.ts(j,a),b));k.call(this,d,j)}else e[d]?f.get(this.get("application")||this.Ua()).ita(this,k,d,j):k.call(this,d,j)}}};b.prototype.Kja=function(){var a=this.WP.prototype,b=this;if(this.hasAttributes()){a.set=
a.set;a.get=a.get}if(this.fva()||this.iva()){a.bind=a.bind;a.getBindings=a.sE;a.hasBindings=a.Oba;a.trigger=a.trigger;a.unbind=a.unbind}a.getClassName=function(){return b.Ry()};a.getClassPath=function(){return b.uE()};var f=this.wba(),d;for(d in f)a[d]=f[d]};b.prototype.y2=function(){this.ct=this.uw=m};b.prototype.X2=function(){this.uw=[];this.ct={};for(var a in this.PT){this.uw.push(a);this.ct[a]=b.AR(this.PT[a])}if(this.Pq())for(var f=this.qo(),d=f.fba(),g=0;g<d.length;g++){a=d[g];if(!this.ct[a]){this.uw.push(a);
this.ct[a]=f.MX(a)}}};b.prototype.gia=function(){this.ND=m};b.prototype.d3=function(){this.Su=this.G7.slice();if(this.Pq())this.Su=e(this.Su).union(this.qo().Gba());this.ND={};for(var a=0;a<this.Su.length;a++)this.ND[this.Su[a]]=p};b.prototype.eia=function(){this.cD=m};b.prototype.c3=function(){this.Gu=this.F7.slice();if(this.Pq())this.Gu=e(this.Gu).union(this.qo().Eba());this.cD={};for(var a=0;a<this.Gu.length;a++)this.cD[this.Gu[a]]=p};b.prototype.QP=function(){this.Uq=this.Fq=m};b.prototype.ZG=
function(){this.Fq=this.C7.slice();this.Uq=this.D7.slice();if(this.Pq()){this.Fq=e(this.Fq).union(this.qo().QX());this.Uq=e(this.Uq).union(this.qo().VX())}};b.prototype.C2=function(){this.KB=m};b.prototype.Tia=function(){this.KB=e(this.E7).clone();this.Pq()&&e(this.KB).defaults(this.qo().wba())};b.prototype.Pq=function(){return this.tC?p:z};b.prototype.qo=function(){return b.mn(this.tC)};b.w2=new d;b.v2=new d;b.Pza={};b.A=function(a,f){var d=new b(a,f);b.w2.set(a,d);b.v2.set(f,d);return d};b.mn=function(a){return b.w2.get(a)};
b.lua=function(a){return b.v2.get(a)};b.ob=function(a,f){var d=b.mn(a);if(e(f).isNull())return p;if(f&&f.constructor)for(var g=b.lua(f.constructor);g;){if(g==d)return p;g=g.Nua()}return z};b.AR=function(a){switch(a){case "string":case "code":return b.era;case "number":return b.Hma;case "bool":return b.nha;case "color":return b.mia;case "percent":return b.doa;case "size":return b.Dqa;case "identifier":return b.Kla;case "array":return b.I1;case "dict":return b.eoa;case "*":return b.Cja;default:if(b.dma(a))switch(b.qka(a)){case "array":var f=
b.AR(b.Z3(a));return function(a,d){for(var a=b.I1(a,d),i=0;i<a.length;i++)a[i]=f(a[i],d);return a};case "enum":var d=b.a4(a);return b.rka(d);case "or":var d=b.a4(a),g=e(d).map(function(a){return b.AR(a)});return function(a,b){for(var f=0;f<g.length;f++)try{return g[f](a,b)}catch(d){}h("Invalid value")};default:h("Invalid type validator definition: "+a)}else return b.el(function(f){return b.ob(a,f)})}};b.dma=function(a){return a.indexOf("[")>=0&&a.lastIndexOf("]")==a.length-1};b.qka=function(a){return a.substring(0,
a.indexOf("["))};b.Z3=function(a){return a.substring(a.indexOf("[")+1,a.lastIndexOf("]"))};b.a4=function(a){for(var a=b.Z3(a),f=[],d="",g=0,c=0;c<a.length;c++){var k=a.charAt(c),d=d+k;switch(k){case "[":g++;break;case "]":g--;break;case ",":if(g==0){f.push(d.substr(0,d.length-1));d=""}}}d!=""&&f.push(d);return e(f).map(function(a){return b.Nra(a)})};b.Nra=function(a){return a.replace(/^\s+|\s+$/g,"")};b.el=function(a){return function(f,d){if(!a(f)){typeof f!="string"&&h("Invalid value");f=b.Ija(f,
d);a(f)||h("Invalid value")}return f}};b.Ija=function(a,b){return function(){return eval(a)}.call(b)};b.Cja=function(a){return a};b.Hma=b.el(function(a){return Object.prototype.toString.call(a)=="[object Number]"});b.era=b.el(function(a){return typeof a=="string"||a===r});b.nha=b.el(function(a){return a===p||a===z});b.I1=b.el(function(a){return Object.prototype.toString.call(a)=="[object Array]"});b.rka=function(a){return b.el(function(b){return e(a).contains(b)})};b.tH=function(a,b){return e(a).isString()&&
b.test(a)};b.Kla=b.el(function(a){return b.tH(a,/^[a-z][a-z0-9_]*$/i)});b.doa=b.el(function(a){return b.tH(a,/^\s*([+-]?\d+\.?\d*)%\s*$/i)});b.Dqa=b.el(function(a){return b.tH(a,/^\s*([+-]?\d+\.?\d*)\s*((vw)|(vh)|(vmin)|(vmax)|(px))\s*$/i)});b.mia=b.el(function(a){return b.tH(a,/^#[0-9a-f]{6}$/i)});b.eoa=b.el(function(a){try{return c.isPlainObject(a)}catch(b){return z}});return b});
define("gD",["require"],function(){function a(){f[0]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=f[8]=f[9]=f[10]=f[11]=f[12]=f[13]=f[14]=f[15]=f[16]=0;this.pX=f;this.$L=1779033703;this.aM=3144134277;this.bM=1013904242;this.cM=2773480762;this.dM=1359893119;this.eM=2600822924;this.fM=528734635;this.gM=1541459225;this.fE=this.start=this.Ur=this.gY=0;this.IX=this.hM=z;this.first=p}var b="0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f".split(","),c=[-2147483648,8388608,32768,128],e=[24,16,8,0],d=[1116352408,1899447441,3049323471,
3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,
659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=[];a.prototype.update=function(a){if(!this.IX){for(var b,f=0,d,c=a.length,l=this.pX;f<c;){this.hM&&(this.hM=z,l[0]=this.fE,l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0);for(d=this.start;f<c&&64>d;++f)b=a.charCodeAt(f),128>b?l[d>>2]|=b<<e[d++&3]:(2048>b?l[d>>2]|=(192|b>>6)<<e[d++&3]:(55296>b||57344<=b?l[d>>
2]|=(224|b>>12)<<e[d++&3]:(b=65536+((b&1023)<<10|a.charCodeAt(++f)&1023),l[d>>2]|=(240|b>>18)<<e[d++&3],l[d>>2]|=(128|b>>12&63)<<e[d++&3]),l[d>>2]|=(128|b>>6&63)<<e[d++&3]),l[d>>2]|=(128|b&63)<<e[d++&3]);this.Uva=d;this.Ur+=d-this.start;64<=d?(this.fE=l[16],this.start=d-64,this.hash(),this.hM=p):this.start=d}4294967295<this.Ur&&(this.gY+=this.Ur/4294967296<<0,this.Ur%=4294967296);return this}};a.prototype.dua=function(){if(!this.IX){this.IX=p;var a=this.pX,b=this.Uva;a[16]=this.fE;a[b>>2]|=c[b&3];
this.fE=a[16];56<=b&&(this.hM||this.hash(),a[0]=this.fE,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0);a[14]=this.gY<<3|this.Ur>>>29;a[15]=this.Ur<<3;this.hash()}};a.prototype.hash=function(){var a=this.$L,b=this.aM,f=this.bM,c=this.cM,j=this.dM,e=this.eM,q=this.fM,o=this.gM,t=this.pX,s,u,v,w,x,y,F;for(s=16;64>s;++s)v=t[s-15],u=(v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3,v=t[s-2],v=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,t[s]=t[s-16]+u+t[s-7]+v<<0;F=b&f;for(s=0;64>s;s+=
4)this.first?(y=704751109,v=t[0]-210244248,o=v-1521486534<<0,c=v+143694565<<0,this.first=z):(u=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),v=(j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7),y=a&b,w=y^a&f^F,x=j&e^~j&q,v=o+v+x+d[s]+t[s],u+=w,o=c+v<<0,c=v+u<<0),u=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),v=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),F=c&a,w=F^c&b^y,x=o&j^~o&e,v=q+v+x+d[s+1]+t[s+1],u+=w,q=f+v<<0,f=v+u<<0,u=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),v=(q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|
q<<7),y=f&c,w=y^f&a^F,x=q&o^~q&j,v=e+v+x+d[s+2]+t[s+2],u+=w,e=b+v<<0,b=v+u<<0,u=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),v=(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7),F=b&f,w=F^b&c^y,x=e&q^~e&o,v=j+v+x+d[s+3]+t[s+3],u+=w,j=a+v<<0,a=v+u<<0;this.$L=this.$L+a<<0;this.aM=this.aM+b<<0;this.bM=this.bM+f<<0;this.cM=this.cM+c<<0;this.dM=this.dM+j<<0;this.eM=this.eM+e<<0;this.fM=this.fM+q<<0;this.gM=this.gM+o<<0};a.prototype.nva=function(){this.dua();var a=this.$L,f=this.aM,d=this.bM,c=this.cM,j=this.dM,
e=this.eM,q=this.fM,o=this.gM;return b[a>>28&15]+b[a>>24&15]+b[a>>20&15]+b[a>>16&15]+b[a>>12&15]+b[a>>8&15]+b[a>>4&15]+b[a&15]+b[f>>28&15]+b[f>>24&15]+b[f>>20&15]+b[f>>16&15]+b[f>>12&15]+b[f>>8&15]+b[f>>4&15]+b[f&15]+b[d>>28&15]+b[d>>24&15]+b[d>>20&15]+b[d>>16&15]+b[d>>12&15]+b[d>>8&15]+b[d>>4&15]+b[d&15]+b[c>>28&15]+b[c>>24&15]+b[c>>20&15]+b[c>>16&15]+b[c>>12&15]+b[c>>8&15]+b[c>>4&15]+b[c&15]+b[j>>28&15]+b[j>>24&15]+b[j>>20&15]+b[j>>16&15]+b[j>>12&15]+b[j>>8&15]+b[j>>4&15]+b[j&15]+b[e>>28&15]+b[e>>
24&15]+b[e>>20&15]+b[e>>16&15]+b[e>>12&15]+b[e>>8&15]+b[e>>4&15]+b[e&15]+b[q>>28&15]+b[q>>24&15]+b[q>>20&15]+b[q>>16&15]+b[q>>12&15]+b[q>>8&15]+b[q>>4&15]+b[q&15]+b[o>>28&15]+b[o>>24&15]+b[o>>20&15]+b[o>>16&15]+b[o>>12&15]+b[o>>8&15]+b[o>>4&15]+b[o&15]};return function(b){return(new a).update(b).nva()}});
define("jv",["require","jk"],function(a){var a=a("jk"),b={};b.d_=a.Lg("debug",z);b.Xea=a.Vf("hqhls");b.VZ=a.Lg("audiocontext",p);b.Ffa=a.Lg("testhash",z);b.Oea=a.Lg("exitvronblur",z);b.Jea=a.Lg("download",p);return b});
define("bD",["require","gD","jv"],function(a){function b(a){switch(Array.isArray(a)?"array":a===r?"null":typeof a){case "array":return"["+a.map(b).join(",")+"]";case "object":return"{"+Object.keys(a).sort().map(function(d){return b(d)+":"+b(a[d])}).join(",")+"}";case "boolean":return a?"true":"false";case "number":return a.toFixed(3);case "string":return'"'+a.split('"').join('\\"')+'"';case "null":return"null";case "undefined":return"undefined";case "function":return"<function>"}return""}var c=a("gD"),
e=a("jv"),d=TDV.Aa.YL().MAJOR+"."+TDV.Aa.YL().MINOR;return{Xya:function(a){var g=a.hash;delete a.hash;var a=b(a),k=c(d+a);e.Ffa&&k!=g&&(console.log(d+a),console.log(k),console.log(g))}}});
define("iE",[],function(){function a(){var a=f.length,b=f.splice(0,a);d+=a;for(var i=0;i<a;i++){var g=b[i];g&&g()}}var b=window.MutationObserver,c=window.Promise,e=0,d=0,f=[],g;setInterval(function(){0<f.length&&100<(new Date).getTime()-k&&a()},100);var k,i;c&&(i=new c(function(a){a()}));b&&(g=document.createTextNode(""),(new b(a)).observe(g,{characterData:p}));return{Ev:function(d,j){if(j>0||!b&&!c)return~setTimeout(d,j||1);if(f.length==0){c?i.then(a):g.textContent=e;k=(new Date).getTime()}e++;f.push(d);
return e-1},cancel:function(a){if(a<0)clearTimeout(~a);else{var b=a-d;if(b>=0){f[b]||h("invalid async handle: "+a);f[b]=r}}}}});
define("eL",["dm","iE","bY","fd"],function(a,b,c,e){function d(){this.Uc={}}d.prototype.bind=function(a,b,d,i,c){a===m&&h("Event name undefined");b===m&&h("Event handler undefined");a in this.Uc||(this.Uc[a]=[]);this.Uc[a].push({handler:b,handlerDef:c||b,context:d||this,immediate:i?p:z});return this};d.prototype.unbind=function(b,d,c){if(b in this.Uc){var c=c||this,i=a(this.Uc[b]).select(function(a){return a.handler!=d||a.context!=c});0<i.length?this.Uc[b]=i:delete this.Uc[b]}return this};d.prototype.Rya=
function(a){a in this.Uc&&delete this.Uc[a]};d.prototype.nea=function(){this.Uc={}};d.prototype.trigger=function(a,b){var d="string"==typeof a,i=d?a:a.name;i in this.Uc&&(d&&(a=new c(a,b)),a.source=this,this.tA(a,p),i in this.Uc&&this.eja(a));return this};d.prototype.eja=function(a){d.cH.push({caller:this,event:a});d.JQ||(d.JQ=p,b.Ev(d.k3))};d.cH=[];d.JQ=z;d.k3=function(){for(var a=(new Date).getTime()+1E3;d.cH.length;){var c=d.cH.shift();d.prototype.tA.call(c.caller,c.event,z);if((new Date).getTime()>
a)break}0<d.cH.length?b.Ev(d.k3,1):d.JQ=z};d.prototype.Oba=function(a){return a in this.Uc};d.prototype.sE=function(a,b){for(var d=[],i=this.Uc[a]||[],c=0;c<i.length;c++){var j=i[c];(b===m||j.immediate==b)&&d.push(j.handlerDef)}return d};d.prototype.tA=function(a,b){if(a.name in this.Uc)for(var d=this.Uc[a.name],i=0;i<d.length;i++){var c=d[i];if(c.immediate==b)try{c.handler.call(c.context,a)}catch(j){e.sM("Exception handling event "+a.name,j)}}};return d});
define("iU",["lc","fd","bY","eL"],function(a,b,c,e){b=b.extend(e,function(){e.call(this);this.kA={}});b.prototype.set=function(a,b){this.kA[a]!=b&&(this.kA[a]=b,this.C$(a))};b.prototype.C$=function(b){this.trigger(new c(a.D(b)))};b.prototype.get=function(a,b){var c=this.kA[a];return c!==m?c:b};return b});
define("fh",[],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.Cy(this)};a.prototype.project=function(a){a.project(this)};return a});
define("a",["fd","fh"],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.Ub=function(){return 0==this.x&&0==this.z?0:-Math.atan2(this.x,this.z)};c.prototype.$b=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.XX=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};c.prototype.iF=function(a){a/=this.XX();this.x*=a;this.y*=a;
this.z*=a;return this};c.prototype.normalize=function(){return this.iF(1)};c.prototype.cv=function(a){return this.x*a.x+this.y*a.y+this.z*a.z};c.prototype.CL=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;return this};c.$r=function(a,b){return new c(b.x-a.x,b.y-a.y,b.z-a.z)};c.rp=function(a,b){return new c(Math.cos(b)*Math.sin(a),Math.sin(b),Math.cos(b)*Math.cos(a))};return c});
define("gE","require,fd,iU,lc,dT,a".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("a"),a=b.extend(c,function(){c.call(this);this.RW=this.io=m;this.set("enabled",p);this.set("enabledInSurfaceSelection",p)});d.A("AdjacentPanorama",a).B("Object").L({enabled:"bool",enabledInSurfaceSelection:"bool",yaw:"number",distance:"number",panorama:"Panorama",backwardYaw:"number"}).Wf([e.Ci]);a.prototype.jba=function(){if(this.io===m){for(this.io=this.m4()-this.get("yaw");this.io>180;)this.io=
this.io-360;for(;this.io<-180;)this.io=this.io+360}return this.io};a.prototype.xua=function(){if(this.RW===m)this.RW=f.rp(this.m4()*Math.PI/180,0);return this.RW};a.prototype.sta=function(){return this.get("yaw")!==m&&this.get("backwardYaw")!==m};a.prototype.m4=function(){return this.get("backwardYaw")-180};return a});define("fr",[],function(){return{K:"stopped",R:"playing",yc:"paused"}});
define("dV",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("ImageResource",b).B("Object").L({levels:"array[ImageResourceLevel]"});return b});
define("du","require,fd,lc,fr,dV,dT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("dV"),a=a("dT"),b=b.extend(d,function(){d.call(this);this.set("state",e.K);this.set("autoplay",p);this.set("repeat",0);this.set("visibleOnStop",p);this.set("finalFrame","last")});b.prototype.play=function(){this.set("state",e.R)};b.prototype.pause=function(){this.set("state",e.yc)};b.prototype.stop=function(){this.set("state",e.K)};a.A("AnimatedImageResource",b).B("ImageResource").L({autoplay:"bool",
finalFrame:"enum[first, last]",frameCount:"number",frameDuration:"number",rowCount:"number",colCount:"number",repeat:"number",state:"enum[stopped, playing, paused]",visibleOnStop:"bool"}).Vb([c.Da,c.Rs,c.Di]).Rg({pause:b.prototype.pause,play:b.prototype.play,stop:b.prototype.stop});b.prototype.set=function(a,b){switch(a){case "state":(this.get("state")||e.K)==e.K&&b==e.R&&this.trigger(c.Di)}d.prototype.set.call(this,a,b)};b.prototype.Mg=function(a,b,c){b||(b=1);c||(c=1);return d.prototype.Mg.call(this,
a,b*this.get("colCount",1),c*this.get("rowCount",1))};return b});
define("gp",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(a){b.call(this);this.by=a===m?p:a;this.tx=this.Hl=this.Gl=this.X=m;this.set("enabled",p);this.set("selected",z)});c.A("HotspotMapOverlay",a).B("MapOverlay").L({areas:"array[HotspotMapOverlayArea]",enabled:"bool",image:"HotspotMapOverlayImage",map:"HotspotMapOverlayMap",rollOverDisplay:"bool",rollOverImage:"HotspotMapOverlayImage",rollOverMap:"HotspotMapOverlayMap",selectedImage:"HotspotMapOverlayImage",selectedMap:"HotspotMapOverlayMap",
selected:"bool",useHandCursor:"bool"});a.prototype.getItem=function(){if(this.X===m){var a=this.get("image");this.X=a?a.BL(this.by):r}return this.X};a.prototype.Bba=function(){if(this.Gl===m){var a=this.get("rollOverImage");this.Gl=a?a.BL(this.by):r}return this.Gl};a.prototype.Dba=function(){if(this.Hl===m){var a=this.get("selectedImage");this.Hl=a?a.BL(this.by):r}return this.Hl};a.prototype.Iua=function(){if(this.tx===m){this.tx=[];var a=this.getItem();a&&this.tx.push(a);(a=this.Bba())&&this.tx.push(a);
(a=this.Dba())&&this.tx.push(a)}return this.tx};return a});define("dK",["fd","dT","gp"],function(a,b,c){a=a.extend(c,function(){c.call(this,p)});b.A("AreaHotspotMapOverlay",a).B("HotspotMapOverlay");return a});
define("kL",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("gain",1);this.set("fadeOutTime",0)});a.A("AudioResource",b).B("Object").L({fadeOutTime:"number",gain:"number",mp3Url:"string",oggUrl:"string"}).Ah(["mp3Url","oggUrl"]);return b});define("cj",[],function(){return{Ps:"inAdvance",f_:"delayed"}});
define("R",[],function(){return{NF:"grab",OF:"grabbing",ifa:"move",S_:"move-n",T_:"move-ne",J_:"move-e",W_:"move-se",V_:"move-s",X_:"move-sw",Y_:"move-w",U_:"move-nw",jfa:"move-ew",lfa:"move-ns",kfa:"move-nesw",mfa:"move-nwse",L_:"move-fast-n",M_:"move-fast-ne",K_:"move-fast-e",P_:"move-fast-se",O_:"move-fast-s",Q_:"move-fast-sw",R_:"move-fast-w",N_:"move-fast-nw",he:"hand",cd:"default",$v:"inherit"}});
define("fC",["require","lc"],function(a){function b(){this.$f=[]}var c=a("lc");b.prototype.register=function(a){this.jga(a);this.$f.push(a);a.get("pressed")&&this.c9(a)};b.prototype.uF=function(a){this.Ioa(a)};b.prototype.jga=function(a){a.bind(c.rg,this.k6,this,p)};b.prototype.Ioa=function(a){a.unbind(c.rg,this.k6,this)};b.prototype.k6=function(a){this.c9(a.source)};b.prototype.c9=function(a){this.$f.forEach(function(b){b.set("pressed",b==a)})};b.register=function(a,b){this.uF(a);var f=this.Ef(b);
a.XO=f;f.register(a)};b.uF=function(a){a.XO&&(a.XO.uF(a),delete a.XO)};b.Ef=function(a){return this.f5[a]||(this.f5[a]=new b)};b.f5={};return b});define("dk",[],function(){return{Tc:"push",Eh:"toggle"}});define("fS",[],function(){return{Ts:"visible",A_:"hidden",mm:"scroll"}});define("fj",[],function(){return{cd:m,v:"over",za:"pressed",Za:"pressedOver",G:"selected"}});define("em",[],function(){return{tc:"rollOver",ALWAYS:"always"}});
define("cI",["require"],function(){var a={},b;a:{try{if("localStorage"in window&&(window.localStorage.setItem("test","test"),"test"==window.localStorage.getItem("test"))){b=p;break a}}catch(c){}b=z}if(b)a.setItem=function(a,b){window.localStorage.setItem(a,b)},a.getItem=function(a){return window.localStorage.getItem(a)},a.removeItem=function(a){return window.localStorage.removeItem(a)},a.clear=function(){try{window.localStorage.clear()}catch(a){}};else{var e={};a.setItem=function(a,b){e[a]=b};a.getItem=
function(a){return e[a]};a.removeItem=function(a){delete e[a]};a.clear=function(){e={}}}return a});
define("r",["require","fd","jk","cI"],function(a){function b(){}var c=a("fd"),e=a("jk"),d=a("cI");b.Hj=TDV.Aa.UF;b.UZ=TDV.Aa.nO;b.GO=TDV.Aa.b0;b.Gza=TDV.Aa.rO;b.efa=TDV.Aa.oO;b.bfa=TDV.Aa.a0;b.sza=TDV.Aa.qO;b.pO=TDV.Aa.pO;b.Iz=TDV.Aa.Iz;b.lN=TDV.Aa.lN;b.kN=TDV.Aa.kN;b.jN=TDV.Aa.jN;b.mN=TDV.Aa.mN;b.wf=TDV.Aa.wf;b.yF=TDV.Aa.yF;b.xi=TDV.Aa.xi;b.wi=TDV.Aa.wi;b.Uv=TDV.Aa.Uv;b.Up=TDV.Aa.Up;b.Dz=TDV.Aa.Dz;b.vs=TDV.Aa.vs;b.iN=TDV.Aa.iN;b.Hz=TDV.Aa.Hz;b.Hn=TDV.Aa.Hn;b.CF=TDV.Aa.CF;b.Fz=TDV.Aa.Fz;b.zF=TDV.Aa.zF;
b.Vv=TDV.Aa.Vv;b.Gz=TDV.Aa.Gz;b.ws=TDV.Aa.ws;b.XZ=TDV.Aa.XZ;b.Ez=TDV.Aa.Ez;b.xs=TDV.Aa.xs;b.AF=TDV.Aa.AF;b.BF=TDV.Aa.BF;b.nN=TDV.Aa.nN;b.sN=TDV.Aa.sN;b.Wv=TDV.Aa.Wv;b.tN=TDV.Aa.tN;b.uN=TDV.Aa.uN;b.Jq=function(a){a="force_"+a;if(e.Vf("debug")&&e.Vf(a))return e.wn(a)};b.$ja=b.Jq("os");b.Xd=function(){return b.$ja||TDV.Aa.Xd};b.Vja=b.Jq("browser");b.browser=function(){return b.Vja||TDV.Aa.browser};b.Wja=b.Jq("browser_type");b.Ey=function(){return b.Wja||TDV.Aa.Ey};b.N3=b.Jq("browser_subtype");b.Hc=function(){return b.N3?
b.N3:TDV.Aa.Hc};b.Xja=b.Jq("browser_version");b.Faa=function(){return b.Xja||TDV.Aa.Faa};b.Zja=b.Jq("device");b.Yr=function(){return b.Zja||TDV.Aa.Yr};b.Wa=function(){return TDV.Aa.IY};b.Mja=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 p;return z}();b.eka=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 p;return z}();b.O3=b.Jq("gearvrcompatible");b.qE=function(){return b.O3!==m?"true"==b.O3:b.eka};b.Sha=b.browser()!=b.wi||0>navigator.userAgent.indexOf("; wv")?z:p;b.Yja=!!b.Jq("chromewebview");b.Naa=function(){return b.Yja||b.Sha};b.se=function(){return b.Hc()==b.Hn||b.Hc()==b.CF||b.Hc()==b.xs||b.Hc()==b.Ez};b.wY=function(){return b.Cca()||b.Lva()};b.Lva=function(){return!!(window.location.hash&&0<=window.location.hash.indexOf("device=piconeo3"))};
b.Cca=function(){return b.Hc()==b.Hn&&0<=navigator.userAgent.indexOf("Quest 2")};b.Pva=function(){return b.Hc()==b.Hn&&0<=navigator.userAgent.indexOf("Quest")&&0>navigator.userAgent.indexOf("Quest 2")};b.wAa=function(){return b.Hc()==b.Hn&&0>navigator.userAgent.indexOf("Quest")};b.wca=function(){return b.se()&&b.qE()};b.DC=m;b.ywa=function(){b.DC===m&&(b.DC=parseInt(e.wn("sts")),isNaN(b.DC)&&(b.DC=b.se()&&!b.Mja?512:b.Wa()&&b.Xd()==b.Hj?512:b.Wa()?256:1024));return b.DC};var f;if(b.browser()==b.xi||
b.browser()==b.wf)try{f=parseFloat(/Version\/([0-9]+\.[0-9]+)/i.exec(navigator.userAgent)[1])}catch(g){}b.gpa=f;b.YE=function(){return b.gpa};b.Hla=function(){var a;try{a=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||z}catch(d){}a||(a=b.YE());return a}();b.sv=function(){return b.Hla};b.N4=function(){var a={Kba:"unknown",Ica: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.Kba=b.getParameter(d.UNMASKED_RENDERER_WEBGL));a.$va=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.Ica=b.getParameter(d.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}return a}();b.Jba=function(){return b.N4};b.Fga=function(){var a=b.N4.Kba.match(/Apple\s+(.+)\s+GPU/);
return a?a[1].toUpperCase():"unknown"}();b.Tza=function(){return b.Fga};b.kma=b.Yr()==b.Wv?p:z;b.zp=function(){return b.kma};b.wX=function(){return b.browser()==b.xi&&14<=b.YE()};var k=!!d.getItem("tdvp_video_drift_2");b.Zba=function(){return k};b.fya=function(){k=p;d.setItem("tdvp_video_drift_2",p)};b.qma="ontouchstart"in window||"undefined"!==typeof window.PointerEvent&&"undefined"!==typeof navigator.maxTouchPoints&&0<navigator.maxTouchPoints?p:z;b.MZ=function(){return b.qma};b.Yj=e.Vf("touchenabled")?
e.Lg("touchenabled"):"ontouchstart"in window?b.Xd()==b.GO?z:p:z;b.XM=function(){return b.Yj};b.summary=function(){return["browser: "+b.browser(),"browserType: "+b.Ey(),"browserSubtype: "+b.Hc(),"device: "+b.Yr(),"isMobile: "+b.Wa(),"gearVRCompatibleDevice: "+b.qE(),"chromeWebView: "+b.Naa(),"touchDevice"+b.MZ(),"touchEnabled"+b.XM()].join(", ")};b.log=function(){c.log("browser: "+b.browser());c.log("browserType: "+b.Ey());c.log("browserSubtype: "+b.Hc());c.log("device: "+b.Yr());c.log("isMobile: "+
b.Wa());c.log("gearVRCompatibleDevice: "+b.qE());c.log("chromeWebView: "+b.Naa());c.log("touchDevice: "+b.MZ());c.log("touchEnabled: "+b.XM())};return b});
define("iX",["require","r"],function(a){function b(){for(;n.length;)n.shift()();document.body.removeEventListener("click",b,p);document.body.removeEventListener("touchstart",d,p);document.body.removeEventListener("touchmove",e,p);document.body.removeEventListener("touchend",c,p);k=z}function c(){i&&b()}function e(){i=z}function d(){i=p;g.Xd()==g.Hj&&b()}function f(){document.body.addEventListener("click",b,p);document.body.addEventListener("touchstart",d,p);document.body.addEventListener("touchmove",
e,p);document.body.addEventListener("touchend",c,p)}var g=a("r"),k=z,i=z,n=[];return{aN:function(){b()},Az:function(a){n.push(a);k||(k=p,document.body?f():document.addEventListener("DOMContentLoaded",f))},RAa:function(a){a=n.indexOf(a);0<=a&&n.splice(a,1)}}});define("gb",[],function(){return{hfa:7,xF:6,F_:5,Jj:4,r0:3,gw:2,sO:1,mza:0,rfa:1,qfa:2,pfa:2,Ei:2,Gfa:3,Jfa:4}});define("W",[],function(){return{gO:"horizontal",EO:"vertical"}});
define("ls",[],function(){return{H0:"auto",G0:"auto",q0:"1",d0:"2",c0:"auto",xF:"2",a_:"3",$Z:"auto",p0:"3",z0:"100",H0:"1",G0:"auto",q0:"1",d0:"2",c0:"auto",xF:"2",a_:"3",$Z:"auto",p0:"5",z0:"100",gza:"101",Pea:999998,Fza:999999,$ea:1E6}});
define("fb",[],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]},Awa: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("by",["require"],function(){return{gva:function(a){return!!a&&0<=a.indexOf("&tdvflipx")},Aaa:function(a){a&&(0>a.indexOf("#")&&(a+="#"),a+="&tdvflipx");return a},hua:function(a,b,c){var e=document.createElement("canvas");e.width=b;e.height=c;c=e.getContext("2d");c.translate(b,0);c.scale(-1,1);c.drawImage(a,0,0);a.src=e.toDataURL()}}});
define("gu",["require","r","jk","iE","cI"],function(a){function b(a,b,d,c,e){this.url=a;this.Qd=b;this.time=d;this.xya=c;this.tta=e}var c=a("r");URL=a("jk");async=a("iE");Storage=a("cI");b.prototype.loaded=function(){e.iV(this.url);e.KC(this)};b.prototype.cancel=function(){e.KC(this)};var e={wr:[],Bm:[],mD:[],JW:r,B5:{},add:function(a,d,c,i){a=new b(a,d,(new Date).getTime(),c,i);this.wr.push(a);this.J();return a},Dya:function(a){this.mD.push(a);this.J()},Cya:function(a){var b=this.mD,a=b.indexOf(a);
0<=a&&b.splice(a,1);this.J()}};if(c.Hc()==c.ws)e.SZ=S(p),e.iV=C();else if(!URL.Vf("debug")||!URL.Lg("disable-cache")){e.SZ=function(a){return this.B5[a]||Storage.getItem("tdvp_"+a)};var d=z;e.iV=function(a){this.B5[a]=p;try{Storage.setItem("tdvp_"+a,p)}catch(b){d||(d=p,Storage.clear())}}}else e.SZ=S(z),e.iV=C();e.J=function(){this.JW||(this.JW=async.Ev(e.dsa))};e.dsa=function(){e.JW=r;for(var a=this.lpa(),b=0,d=this.Bm.length;b<d;b++){var c=this.Bm[b];0>a.indexOf(c)&&c.tta()}var n=this.Bm;this.Bm=
a;b=0;for(d=this.Bm.length;b<d;b++)c=this.Bm[b],0>n.indexOf(c)&&c.xya()}.bind(e);e.Eqa=function(){this.wr.sort(function(a,b){return a.Qd-b.Qd||b.time-a.time});this.mD.sort(function(a,b){return a-b})};e.lpa=function(){this.Eqa();var a=[];if(this.wr.length)for(var b=this.mD.length?this.mD[0]:this.wr[0].Qd,d=0;10>d&&d<this.wr.length&&this.wr[d].Qd<=b;d++)a.push(this.wr[d]);return a};e.KC=function(a){var b=this.wr,a=b.indexOf(a);0<=a&&b.splice(a,1);this.J()};return e});
define("hW","require,fd,bY,eL,lc,gb,jk,by,gu".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("lc"),f=a("gb"),g=a("jk"),k=a("by"),i=a("gu"),a=b.extend(e,function(a){e.call(this);this.GC=a||f.hfa;this.ea=this.W=this.tb=this.Md=r;this.ar=z;this.ay=this.ak=r;this.VJ=0;this.sS=[];this.VH=this.VH.bind(this);this.WH=this.WH.bind(this)});a.prototype.load=function(a){this.cancel();this.Md=a;this.VJ=0;this.B8()};a.prototype.B8=function(){this.ak=i.add(this.Md,this.GC,this.Nqa.bind(this),this.Mha.bind(this))};
a.prototype.cancel=function(){if(this.ak){this.ak.cancel();this.ak=r}this.x2()};a.prototype.Iva=function(){return!!this.tb&&!this.ar||this.ay};a.prototype.yp=R("ar");a.prototype.qe=function(a){if(a){a=this.tb.cloneNode(p);this.sS.push(a);return a}return this.tb};a.prototype.$c=R("W");a.prototype.Nd=R("ea");a.prototype.sj=R("Md");a.prototype.Nqa=function(){this.tb=this.Oia(this.Md)};a.prototype.Mha=function(){this.Iva()&&this.x2()};a.prototype.x2=function(){if(this.tb){if(this.ay){clearTimeout(this.ay);
this.ay=r}for(this.ar=z;this.sS.length;)this.s3(this.sS.shift());this.s3(this.tb);this.tb=r}};a.prototype.nga=function(a){a.addEventListener("load",this.VH);a.addEventListener("error",this.WH)};a.prototype.u8=function(a){a.removeEventListener("load",this.VH);a.removeEventListener("error",this.WH)};a.prototype.VH=function(){this.ak.loaded();this.ak=r;this.u8(this.tb);this.ar=p;this.W=this.tb.width;this.ea=this.tb.height;k.gva(this.Md)&&k.hua(this.tb,this.W,this.ea);this.trigger(new c(d.S))};a.prototype.WH=
function(){this.cancel();if(this.VJ<l){this.VJ++;this.ay=setTimeout(function(){this.ay=r;this.B8()}.bind(this),Math.pow(2,this.VJ)*1E3)}else this.trigger(new c(d.ie))};a.prototype.Oia=function(a){var b;if(j.length>0)b=j.pop();else{b=document.createElement("img");if(g.uca(a))b.crossOrigin="Anonymous"}b.setAttribute("draggable","false");b.style.position="static";b.style.border="none";b.style.display="none";this.nga(b);b.src=a;return b};a.prototype.s3=function(a){this.u8(a);a.parentNode&&a.parentNode.removeChild(a);
a.src="";j.length>n&&j.push(a)};var n=100,j=[],l=5;a.HZ=function(a){return i.SZ(a)};return a});
define("eV","require,dm,jquery.mod,lc,gb,W,ls,fb,hW".split(","),function(a){function b(){this.Zk=this.al=this.bl=this.$k=this.Xn=this.Wn=this.Zn=this.Yn=0;this.qG=this.sG=this.tG=this.rG="";this.ub=1;this.Pb=m;this.pt=[];this.$P=[];this.XP=g.EO;this.IG=z;this.SH=m;this.kf=r;this.UR=this.ZW=0;this.eb=document.createElement("canvas");this.eb.setAttribute("tdvlayer","background");this.I=e(this.eb);i.css(this.eb,{position:"absolute",left:0,top:0,"z-index":k.xF,"user-select":"none","-ms-user-select":"none",
"-moz-user-select":"none","-webkit-user-select":"none"});this.me=p}var c=a("dm"),e=a("jquery.mod"),d=a("lc"),f=a("gb"),g=a("W"),k=a("ls"),i=a("fb"),n=a("hW");b.prototype.setSize=function(a,b){if(this.ZW!=a||this.UR!=b){this.ZW=a||0;this.UR=b||0;this.me=p}};b.prototype.Nda=function(a){if(this.il!=a){this.il=a;this.me=p}};b.prototype.Cb=R("I");b.prototype.vE=R("eb");b.prototype.xxa=function(a){if(this.SH!=a){if(this.kf){this.kf.unbind(d.S,this.iB,this);this.kf.cancel();this.kf=r}if(this.SH=a){this.kf=
new n(f.r0);this.kf.bind(d.S,this.iB,this);this.kf.load(this.SH)}this.me=p}};b.prototype.hZ=function(a){if(this.Yn!=a){this.Yn=a;this.me=p}};b.prototype.iZ=function(a){if(this.Zn!=a){this.Zn=a;this.me=p}};b.prototype.cZ=function(a){if(this.Wn!=a){this.Wn=a;this.me=p}};b.prototype.dZ=function(a){if(this.Xn!=a){this.Xn=a;this.me=p}};b.prototype.fZ=function(a){if(this.$k!=a){this.$k=a;this.me=p}};b.prototype.jZ=function(a){if(this.bl!=a){this.bl=a;this.me=p}};b.prototype.gZ=function(a){if(this.al!=a){this.al=
a;this.me=p}};b.prototype.eZ=function(a){if(this.Zk!=a){this.Zk=a;this.me=p}};b.prototype.bxa=function(a){if(this.rG!=a){this.rG=a;this.me=p}};b.prototype.dxa=function(a){if(this.tG!=a){this.tG=a;this.me=p}};b.prototype.cxa=function(a){if(this.sG!=a){this.sG=a;this.me=p}};b.prototype.axa=function(a){if(this.qG!=a){this.qG=a;this.me=p}};b.prototype.yj=function(a){if(this.ub!=a){this.ub=a;this.me=p}};b.prototype.wh=R("ub");b.prototype.rz=function(a){if(!c.isEqual(this.Pb,a)){this.Pb=a;c(a).isArray()||
(a=[a]);a=c(a).filter(function(a){return c(a).isString()});this.Fda(a)}};b.prototype.Fda=function(a){if(!c.isEqual(this.pt,a)){this.pt=a;this.me=p}};b.prototype.hxa=function(a){if(this.Mza!=a){this.$P=a;this.me=p}};b.prototype.gxa=function(a){if(this.XP!=a){this.XP=a;this.me=p}};b.prototype.iB=function(){this.me=p;this.Le()};b.prototype.Le=function(){if(this.me){this.J();this.me=z}};b.prototype.J=function(){var a=Math.max(0,this.ZW-(this.$k+this.al)),b=Math.max(0,this.UR-(this.bl+this.Zk)),d=this.I.get(0);
d.width=a;d.height=b;var d=d.getContext("2d"),f=this.Hha(),i=f.length>0,e=this.kf&&this.kf.yp(),k=this.$k>0&&this.rG||this.bl>0&&this.tG||this.al>0&&this.sG||this.Zk>0&&this.qG,k=i||e||k;if(i){var n;n=this.XP==g.gO?d.createLinearGradient(0,0,a,0):d.createLinearGradient(0,0,0,b);c(f).forEach(function(a){n.addColorStop(a.ratio,a.color)});d.fillStyle=n;d.fillRect(0,0,a,b);this.IG=p}else if(this.IG){d.clearRect(0,0,a,b);this.IG=z}if(e){d.drawImage(this.kf.qe(),0,0,a,b);this.IG=p}this.eb.style.opacity=
this.ub;this.eb.style.filter="alpha(opacity="+Math.round(this.ub*100)+")";this.eb.style["-ms-filter"]="alpha(opacity="+Math.round(this.ub*100)+")";this.eb.style.borderTopLeftRadius=this.Yn+"px";this.eb.style.borderTopRightRadius=this.Zn+"px";this.eb.style.borderBottomLeftRadius=this.Wn+"px";this.eb.style.borderBottomRightRadius=this.Xn+"px";this.eb.style.borderLeft=this.CH(this.$k,this.rG);this.eb.style.borderTop=this.CH(this.bl,this.tG);this.eb.style.borderRight=this.CH(this.al,this.sG);this.eb.style.borderBottom=
this.CH(this.Zk,this.qG);this.eb.style.width=a+"px";this.eb.style.height=b+"px";this.eb.style.cursor="inherit";this.eb.style.display=k?"block":"none";if(this.eb.clientWidth===0&&a!==0){this.eb.style.width=0;this.eb.style.width=a+"px"}};b.prototype.CH=function(a,b){return a>0?b?a+"px solid "+b:a+"px solid transparent":"none"};b.prototype.Hha=function(){var a=[];if(this.pt.length>0){for(var b=this.pt.slice(),b=[].concat([b[0]],b,[b[b.length-1]]),d=this.Gha(),d=[].concat([0],d,[1]),f=0;f<b.length;f++){var c=
d[f];c>=0&&a.push({color:b[f],ratio:c})}for(f=0;f<a.length-1;)a[f].ratio==a[f+1].ratio&&a[f].color==a[f+1].color?a.splice(f,1):f++;for(f=1;f<a.length-1;)a[f-1].ratio==a[f+1].ratio?a.splice(f,1):f++}return a};b.prototype.Gha=function(){var a=this.pt.length,b;for(b=this.$P.length>0?c(this.$P).map(function(a){return Math.min(1,Math.max(0,a))}):a==1?[0.5]:c(c.range(a)).map(function(b,d){return 1*d/(a-1)});b.length<a;)b.push(1);b.length>a&&b.splice(a,b.length-a);return b};return b});
define("dF",["jquery.mod","ls","fb"],function(a,b,c){function e(){this.gJ=this.iJ=this.jJ=this.hJ=this.Zk=this.al=this.bl=this.$k=0;this.rC=this.il=p;this.VW=this.kS=0;this.Z=p;this.RC=document.createElement("div");this.RC.setAttribute("tdvlayer","content");this.O8=a(this.RC);c.css(this.RC,{position:"absolute"});this.xA=document.createElement("div");this.S2=a(this.xA);c.css(this.xA,{position:"absolute"});this.O8.append(this.S2)}e.prototype.append=function(a){this.S2.append(a)};e.prototype.nX=function(a){this.xA.appendChild(a)};
e.prototype.Kwa=function(a){this.xA.removeChild(a)};e.prototype.Cb=R("O8");e.prototype.vE=R("RC");e.prototype.uxa=function(a){this.kS!=a&&(this.kS=a,this.Z=p)};e.prototype.qya=function(a){this.VW!=a&&(this.VW=a,this.Z=p)};e.prototype.Uy=function(){return this.hJ+this.$k};e.prototype.Xy=function(){return this.jJ+this.bl};e.prototype.Wy=function(){return this.iJ+this.al};e.prototype.Qy=function(){return this.gJ+this.Zk};e.prototype.tz=function(a){this.rC!=a&&(this.rC=a,this.Z=p)};e.prototype.Vxa=function(a){this.hJ!=
a&&(this.hJ=a,this.Z=p)};e.prototype.Xxa=function(a){this.jJ!=a&&(this.jJ=a,this.Z=p)};e.prototype.Wxa=function(a){this.iJ!=a&&(this.iJ=a,this.Z=p)};e.prototype.Uxa=function(a){this.gJ!=a&&(this.gJ=a,this.Z=p)};e.prototype.fZ=function(a){this.$k!=a&&(this.$k=a,this.Z=p)};e.prototype.jZ=function(a){this.bl!=a&&(this.bl=a,this.Z=p)};e.prototype.gZ=function(a){this.al!=a&&(this.al=a,this.Z=p)};e.prototype.eZ=function(a){this.Zk!=a&&(this.Zk=a,this.Z=p)};e.prototype.Nda=function(a){this.il!=a&&(this.il=
a,this.Z=p)};e.prototype.Le=function(){this.Z&&(this.J(),this.Z=z)};e.prototype.J=function(){c.css(this.RC,{overflow:this.rC?"visible":"hidden","z-index":this.il?b.a_:b.$Z,left:this.Uy()+"px",top:this.Xy()+"px",right:this.Wy()+"px",bottom:this.Qy()+"px",cursor:"inherit"});c.css(this.xA,{left:-this.kS+"px",top:-this.VW+"px",right:this.rC?0:"initial",bottom:this.rC?0:"initial",cursor:"inherit"})};return e});
define("hy",["dm","jquery.mod","fd","ls","fb"],function(a,b,c,e,d){function f(){this.ea=this.W=this.da=this.ca=m;this.Xn=this.Wn=this.Zn=this.Yn=0;this.Gc=z;this.jS=0;this.UW=4;this.BP=6;this.zV=0;this.Pb="#000000";this.ub=1;this.eb=document.createElement("div");this.eb.setAttribute("tdvlayer","shadow");this.I=b(this.eb);d.css(this.eb,{position:"absolute",left:0,top:0,right:0,bottom:"0"});this.Z=z}f.prototype.Cb=R("I");f.prototype.vE=R("eb");f.prototype.hZ=function(a){this.Yn!=a&&(this.Yn=a,this.Z=
p)};f.prototype.iZ=function(a){this.Zn!=a&&(this.Zn=a,this.Z=p)};f.prototype.cZ=function(a){this.Wn!=a&&(this.Wn=a,this.Z=p)};f.prototype.dZ=function(a){this.Xn!=a&&(this.Xn=a,this.Z=p)};f.prototype.yj=function(a){this.ub!=a&&(this.ub=a,this.Z=p)};f.prototype.wh=R("ub");f.prototype.Ze=function(a){this.Gc!=a&&(this.Gc=a,this.Z=p)};f.prototype.txa=function(a){this.jS!=a&&(this.jS=a,this.Z=p)};f.prototype.pya=function(a){this.UW!=a&&(this.UW=a,this.Z=p)};f.prototype.$wa=function(a){this.BP!=a&&(this.BP=
a,this.Z=p)};f.prototype.gya=function(a){this.zV!=a&&(this.zV=a,this.Z=p)};f.prototype.rz=function(a){this.Pb!=a&&(this.Pb=a,this.Z=p)};f.prototype.Le=function(){this.Z&&(this.J(),this.Z=z)};f.prototype.J=function(){var a=this.jS+"px "+this.UW+"px "+this.BP+"px "+this.zV+"px "+this.Pb;this.eb.style.display=this.Gc?"block":"none";this.eb.style.boxShadow=a;this.eb.style["-webkit-box-shadow"]=a;this.eb.style["-moz-box-shadow"]=a;this.eb.style.borderTopLeftRadius=this.Yn+"px";this.eb.style.borderTopRightRadius=
this.Zn+"px";this.eb.style.borderBottomLeftRadius=this.Wn+"px";this.eb.style.borderBottomRightRadius=this.Xn+"px";this.eb.style.filter="alpha(opacity="+Math.round(100*this.ub)+")";this.eb.style["-ms-filter"]="alpha(opacity="+Math.round(100*this.ub)+")";this.eb.style.opacity=this.ub;this.eb.style.zIndex=e.q0};return f});
define("jT","require,jquery.mod,dm,fd,iU,R,lc,eV,dF,hy,ls,bY,fb,r".split(","),function(a){var b=a("jquery.mod");a("dm");var c=a("fd"),e=a("iU"),d=a("R"),f=a("lc"),g=a("eV"),k=a("dF"),i=a("hy"),n=a("ls"),j=a("bY"),l=a("fb");a("r");var q=c.extend(e,function(){e.call(this);this.Sq=q.Sq++;this.fQ=this.dd=this.OT=this.qC=this.sV=this.I=this.eb=r;this.E$=this.j5=z;this.P=this.pa=r;this.ea=this.W=this.bu=this.au=0;this.Xq=this.Gc=z;this.b5=p;this.GB=this.HB=this.Rh=this.Sh=0;this.ub=1;this.gf=d.cd;this.set("inView",
z);this.set("toolTip",m);this.Du(p);this.kV(p)});q.prototype.Xc=P("Ew");q.prototype.toString=function(){return"["+this.I.attr("tdvclass")+"::"+this.Sq+"]"};q.prototype.log=function(a){c.log(a+" "+this.toString()+" "+(new Date).getTime().toString())};q.prototype.Ua=R("pa");q.prototype.Qm=function(a){(this.pa=a)&&this.uS();this.uy();this.trigger(f.Aea)};q.prototype.Cb=function(){this.I=b(this.oo());this.Cb=R("I");return this.I};q.prototype.oo=function(){this.eb=document.createElement("div");this.eb.setAttribute("id",
this.Sq);this.Ew&&this.eb.setAttribute("tdvclass",this.Ew);l.css(this.eb,{margin:0,padding:0,position:"absolute",overflow:"visible",display:"block"});this.oo=R("eb");return this.eb};q.prototype.Kh=function(){this.sV=new i;this.Kh=R("sV");return this.sV};q.prototype.Ab=function(){this.dd=new g;this.Ab=R("dd");return this.dd};q.prototype.gx=function(){this.qC=document.createElement("div");this.qC.setAttribute("tdvlayer","overShadow");l.css(this.qC,{position:"absolute",left:0,top:0,cursor:"inherit"});
this.gx=R("qC");return this.qC};q.prototype.LR=function(){this.OT=b(this.gx());this.LR=R("OT");return this.OT};q.prototype.Pa=function(){this.fQ=new k;this.Pa=R("fQ");return this.fQ};q.prototype.getParent=R("P");q.prototype.Ba=R("W");q.prototype.gb=R("ea");q.prototype.eva=function(){return this.W!==m&&this.ea!==m};q.prototype.Gd=function(){return this.W-this.Pa().Uy()-this.Pa().Wy()};q.prototype.Fd=function(){return this.ea-this.Pa().Xy()-this.Pa().Qy()};q.prototype.ni=function(){return this.Pa().Uy()};
q.prototype.qn=function(){return this.Pa().Xy()};q.prototype.pn=function(){return this.Pa().Wy()};q.prototype.Sy=function(){return this.Pa().Qy()};q.prototype.Ze=function(a){if(this.Gc!=a){this.Gc=a;this.Bc();if(this.P){this.P.Va();this.P.Jc()}this.uy()}};q.prototype.uy=function(){var a=z;this.pa&&this.Gc&&this.wh()>0&&(this==this.pa?a=p:this.P&&(a=this.P.Xq));this.Xq!=a&&this.oP(a)};q.prototype.oP=function(a){this.Xq=a;this.set("inView",a);this.Xq?this.trigger(new j(f.nd)):this.trigger(new j(f.zd))};
q.prototype.Ypa=function(a){if(this.b5!=a){this.b5=a;this.P&&this.P.Jc()}};q.prototype.Spa=function(a){if(this.ax!=a){this.ax=a;this.Va()}};q.prototype.Rpa=function(a){if(this.$w!=a){this.$w=a;this.Va()}};q.prototype.Qpa=function(a){if(this.Zw!=a){this.Zw=a;this.Va()}};q.prototype.Ppa=function(a){if(this.Yw!=a){this.Yw=a;this.Va()}};q.prototype.Tpa=function(a){if(this.Pi!=a){this.Pi=a;if(this.Pi!=m)this.dj=m;this.Va()}};q.prototype.Opa=function(a){if(this.Bt!=a){this.Bt=a;if(this.Bt!=m)this.cj=m;
this.Va()}};q.prototype.iqa=function(a){if(this.dj!=a){this.dj=a;if(this.dj!=m)this.Pi=m;this.Va()}};q.prototype.eqa=function(a){if(this.cj!=a){this.cj=a;if(this.cj!=m)this.Bt=m;this.Va()}};q.prototype.$pa=function(a){if(this.Bo!=a){if(a!=m)this.vJ=m;this.Bo=a;this.P&&this.P.Jc();this.Va()}};q.prototype.vqa=function(a){if(this.fp!=a){if(a!=m)this.xJ=m;this.fp=a;this.P&&this.P.Jc();this.Va()}};q.prototype.kqa=function(a){if(this.NC!=a){if(a!=m)this.wJ=m;this.NC=a;this.P&&this.P.Jc();this.Va()}};q.prototype.Hpa=
function(a){if(this.mA!=a){if(a!=m)this.uJ=m;this.mA=a;this.P&&this.P.Jc();this.Va()}};q.prototype.fqa=function(a){if(this.vJ!=a){if(a!=m)this.Bo=m;this.vJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.hqa=function(a){if(this.xJ!=a){if(a!=m)this.fp=m;this.xJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.gqa=function(a){if(this.wJ!=a){if(a!=m)this.NC=m;this.wJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.dqa=function(a){if(this.uJ!=a){if(a!=m)this.mA=m;this.uJ=a;this.P&&this.P.Jc();this.Va()}};q.prototype.Kpa=
function(a){if(this.pq!=a){this.pq=a;this.P&&this.P.Jc()}};q.prototype.Lpa=function(a){if(this.qq!=a){this.qq=a;this.P&&this.P.Jc()}};q.prototype.vn=function(){return isNaN(this.Pi)?this.Sh:this.Pi};q.prototype.un=function(){return isNaN(this.Bt)?this.Rh:this.Bt};q.prototype.Yka=function(){return isNaN(this.Jja)?this.K5:this.Jja};q.prototype.sn=function(){return isNaN(this.ax)?this.HB:this.ax};q.prototype.up=function(){return isNaN(this.$w)?this.GB:this.$w};q.prototype.WL=function(){return isNaN(this.Zw)?
1E4:this.Zw};q.prototype.VL=function(){return isNaN(this.Yw)?1E4:this.Yw};q.prototype.p9=function(a){if(this.OR()!=a){this.Pa().Vxa(a);this.Va()}};q.prototype.OR=function(){return this.Pa().hJ};q.prototype.r9=function(a){if(this.QR()!=a){this.Pa().Xxa(a);this.Va()}};q.prototype.QR=function(){return this.Pa().jJ};q.prototype.q9=function(a){if(this.PR()!=a){this.Pa().Wxa(a);this.Va()}};q.prototype.PR=function(){return this.Pa().iJ};q.prototype.o9=function(a){if(this.NR()!=a){this.Pa().Uxa(a);this.Va()}};
q.prototype.NR=function(){return this.Pa().gJ};q.prototype.jF=function(a){if(this.au!=a){this.au=a;this.xh()}};q.prototype.kF=function(a){if(this.bu!=a){this.bu=a;this.xh()}};q.prototype.yj=function(a){if(this.ub!=a){this.ub=a;l.css(this.gx(),{filter:"alpha(opacity="+Math.round(this.ub*100)+") ",opacity:this.ub});this.uy();this.xh()}};q.prototype.wh=R("ub");q.prototype.Epa=function(a){if(this.Ab().Yn!=a){this.Kh().hZ(a);this.Ab().hZ(a)}};q.prototype.oka=function(){return this.Ab().Yn};q.prototype.Fpa=
function(a){if(this.Ab().Zn!=a){this.Kh().iZ(a);this.Ab().iZ(a)}};q.prototype.pka=function(){return this.Ab().Zn};q.prototype.wpa=function(a){if(this.Ab().Wn!=a){this.Kh().cZ(a);this.Ab().cZ(a)}};q.prototype.mka=function(){return this.Ab().Wn};q.prototype.xpa=function(a){if(this.Ab().Xn!=a){this.Kh().dZ(a);this.Ab().dZ(a)}};q.prototype.nka=function(){return this.Ab().Xn};q.prototype.Apa=function(a){if(this.Ab().$k!=a){this.Ab().fZ(a);this.Pa().fZ(a);this.Va()}};q.prototype.c4=function(){return this.Ab().$k};
q.prototype.Gpa=function(a){if(this.Ab().bl!=a){this.Ab().jZ(a);this.Pa().jZ(a);this.Va()}};q.prototype.e4=function(){return this.Ab().bl};q.prototype.Cpa=function(a){if(this.Ab().al!=a){this.Ab().gZ(a);this.Pa().gZ(a);this.Va()}};q.prototype.d4=function(){return this.Ab().al};q.prototype.ypa=function(a){if(this.Ab().Zk!=a){this.Ab().eZ(a);this.Pa().eZ(a);this.Va()}};q.prototype.b4=function(){return this.Ab().Zk};q.prototype.zpa=function(a){this.Ab().bxa(a)};q.prototype.Dpa=function(a){this.Ab().dxa(a)};
q.prototype.Bpa=function(a){this.Ab().cxa(a)};q.prototype.vpa=function(a){this.Ab().axa(a)};q.prototype.oK=function(a){this.Kh().Ze(a)};q.prototype.qqa=function(a){this.Kh().txa(a)};q.prototype.tqa=function(a){this.Kh().pya(a)};q.prototype.oqa=function(a){this.Kh().$wa(a)};q.prototype.sqa=function(a){this.Kh().gya(a)};q.prototype.rqa=function(a){this.Kh().yj(a)};q.prototype.pqa=function(a){this.Kh().rz(a)};q.prototype.spa=function(a){this.kka()!=a&&this.Ab().yj(a)};q.prototype.kka=function(){return this.Ab().wh()};
q.prototype.opa=function(a){this.jka()!=a&&this.Ab().rz(a)};q.prototype.jka=function(){return this.Ab().Pb};q.prototype.qpa=function(a){this.Ab().hxa(a)};q.prototype.ppa=function(a){this.Ab().gxa(a)};q.prototype.rpa=function(a){this.Ab().xxa(a)};q.prototype.Gr=function(a){if(this.gf!=a){this.gf=a;this.xh()}};q.prototype.Du=function(a){if(this.il!=a){this.il=a;l.css(this.gx(),{"z-index":this.il?n.d0:n.c0});this.Pa().Nda(this.il);this.xh()}};q.prototype.kV=function(a){if(this.N7!=a){this.N7=a;l.css(this.oo(),
{"z-index":this.N7?n.H0:n.G0});this.xh()}};q.prototype.Vk=function(){this.uy();this.CE()};q.prototype.gj=function(){this.uy()};q.prototype.KU=C();q.prototype.uS=function(){this.CE();this.Bc();this.Va();this.Jc();this.xh()};q.prototype.Go=function(){this.GB=this.HB=this.Rh=this.Sh=0;this.K5=m};q.prototype.CE=function(){var a=this.Ua();a&&a.rw.CE(this)};q.prototype.Bc=function(){var a=this.Ua();a&&a.rw.Bc(this)};q.prototype.Va=function(){var a=this.Ua();a&&a.rw.Va(this)};q.prototype.Jc=function(){var a=
this.Ua();a&&a.rw.Jc(this)};q.prototype.xh=function(){var a=this.Ua();a&&a.rw.xh(this)};q.prototype.ZR=function(){var a=isNaN(this.vJ)&&isNaN(this.Bo),b=isNaN(this.wJ)&&isNaN(this.NC);return isNaN(this.Pi)&&isNaN(this.dj)&&(a||b)?p:z};q.prototype.O4=function(){var a=isNaN(this.xJ)&&isNaN(this.fp),b=isNaN(this.uJ)&&isNaN(this.mA);return isNaN(this.Bt)&&isNaN(this.cj)&&(a||b)?p:z};q.prototype.vsa=function(){this.Go();var a=this.Yka();if(a){var b=this.ZR(),d=this.O4();if(b&&!d){b=this.Fd();if(b!=0){this.Sh=
b*a+this.ni()+this.pn();this.Rh=b+this.qn()+this.Sy()}}else if(!b&&d){b=this.Gd();if(b!=0){this.Rh=b/a+this.ni()+this.pn();this.Sh=b+this.ni()+this.pn()}}}if(!isNaN(this.ax)&&this.Sh<this.ax)this.Sh=this.ax;if(!isNaN(this.Zw)&&this.Sh>this.Zw)this.Sh=this.Zw;if(!isNaN(this.$w)&&this.Rh<this.$w)this.Rh=this.$w;if(!isNaN(this.Yw)&&this.Rh>this.Yw)this.Rh=this.Yw};q.prototype.Ia=function(){if(!this.E$){this.E$=p;var a=this.oo(),b=this.gx();a.appendChild(this.Kh().vE());a.appendChild(b);b.appendChild(this.Ab().vE());
b.appendChild(this.Pa().vE())}};q.prototype.Uya=function(){this.vsa();var a=this.vn(),b=this.un(),d=this.sn(),f=this.up();if(a!=this.Nma||b!=this.Mma||d!=this.Jma||f!=this.Ima||this.dj!=this.Lma||this.cj!=this.Kma){this.Nma=a;this.Mma=b;this.Jma=d;this.Ima=f;this.Lma=this.dj;this.Kma=this.cj;return p}return z};q.prototype.ga=function(){this.xh()};q.prototype.ui=C();q.prototype.Eda=function(a,b,d,c){if(this.ca!=a||this.da!=b||this.W!=d||this.ea!=c){this.ca=a;this.da=b;this.W=d;this.ea=c;this.Ab().setSize(this.W,
this.ea);this.Jc();this.xh();this.trigger(new j(f.yb))}};q.prototype.Le=function(){var a=this.oo(),b=this.gx();if(this.Gc){b.style.width=this.W+"px";b.style.height=this.ea+"px";a.style.left=this.ca+this.au+"px";a.style.top=this.da+this.bu+"px";a.style.width=this.W+"px";a.style.height=this.ea+"px";a.style.visibility="inherit";a.style.overflow="visible";a.style.cursor=this.pa&&this.pa.FQ.gba(this.gf);if(b.clientWidth===0&&this.W!==0){a.style.width=0;a.style.width=this.W+"px"}}else{a.style.visibility=
"hidden";a.style.width=0;a.style.height=0;a.style.overflow="hidden";b.style.width=0;b.style.height=0}this.Kh().Le();this.Ab().Le();this.Pa().Le();if(!this.j5&&this.pa){this.j5=p;this.pa.M9?this.vS():this.pa.bind(f.Di,this.vS,this,p)}};q.prototype.vS=function(){this.trigger(f.INIT)};q.prototype.Uua=function(a){var a=a.Cb().offset(),b=this.Cb().offset(),d={};d.left=b.left-a.left;d.top=b.top-a.top;if(this.pa){d.left=d.left/this.pa.Ix;d.top=d.top/this.pa.Ix}return d};q.Sq=0;return q});
define("J","require,dm,fd,lc,bY,fj,jT".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("fj"),g=a("jT"),k=c.extend(g,function(){this.U={};this.Uo=this.P3=m;this.vr={};this.L3=p;this.N9={};g.call(this);this.fja();this.ya();this.Xc("UICustomizable");this.Bc()});k.kb={visible:p,includeInLayout:p,state:m,left:m,right:m,top:m,bottom:m,centerX:m,centerY:m,width:m,height:m,minWidth:m,minHeight:m,maxWidth:m,maxHeight:m,actualWidth:m,actualHeight:m,paddingLeft:0,paddingTop:0,paddingRight:0,
paddingBottom:0,opacity:1,borderRadius:0,borderTopRadius:m,borderBottomRadius:m,borderLeftRadius:m,borderRightRadius:m,borderTopLeftRadius:m,borderTopRightRadius:m,borderBottomLeftRadius:m,borderBottomRightRadius:m,borderSize:0,borderLeftSize:m,borderTopSize:m,borderRightSize:m,borderBottomSize:m,borderColor:m,borderLeftColor:m,borderTopColor:m,borderRightColor:m,borderBottomColor:m,shadow:z,shadowHorizontalLength:0,shadowVerticalLength:3,shadowBlurRadius:6,shadowSpread:0,shadowColor:"#000000",shadowOpacity:m,
backgroundOpacity:1,backgroundColor:m,backgroundColorRatios:m,backgroundColorDirection:m,backgroundImageUrl:m,hideEffect:m,showEffect:m};k.prototype.fja=function(){this.N9[f.Za]=f.za};k.prototype.ya=function(){this.Rj(k.kb)};k.prototype.Rj=function(a){for(var b in a){var d=a[b],f=d&&d.length;!f||typeof d=="string"?this.f(b,d):f==1?this.f(b,d[0]):f==2?this.h(b,d[0],d[1]):f==3&&this.h(b,d[0],d[1],d[2])}};k.prototype.f=function(a,b){this.U[a]={i:p,d:b}};k.prototype.dla=function(){var a=[],b;for(b in this.U)a.push(b);
return a};k.prototype.h=function(a,b,d,f){this.vr[b]||(this.vr[b]={});this.f(a,f);this.vr[b][d]=a};k.prototype.hy=function(a,b){if(b)this.P3=a;else if(this.P3!=m)return;if(this.Uo!=a){var d=this.vr[this.Uo];if(d)for(var f in d)(this.U[f]||(this.U[f]={})).i=p;this.Uo=a;if(d=this.vr[this.Uo])for(f in d)(this.U[f]||(this.U[f]={})).i=p;this.Bc()}};k.prototype.N=function(a){if(b(a).isString())this.set(a,m);else{var d=a;for(a in d)this.set(a,d[a])}};k.prototype.set=function(a,d){var f=this.U[a];if(f){d==
m&&(d=f.d);if(!b.isEqual(this.get(a),d)){a=="state"&&this.hy(d,p);g.prototype.set.call(this,a,d);f.i=p;this.Bc()}}else g.prototype.set.call(this,a,d)};k.prototype.get=function(a,b){switch(a){case "actualWidth":return this.Ba();case "actualHeight":return this.gb();default:var d=g.prototype.get.call(this,a);if(d===m){var f=this.U[a];f&&(d=f.d);d===m&&(d=b)}return d}};k.prototype.H1=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 p;return z};k.prototype.n=function(a){if((this.U[a]||{}).i)return p;if(this.Uo!==m){a=this.vr[this.Uo][a];return!!(this.U[a]||{}).i}};k.prototype.Eu=function(a){(this.U[a]||(this.U[a]={})).i=p;this.Bc()};k.prototype.p=function(a){(this.U[a]||
(this.U[a]={})).i=z;if(this.Uo!=m)(a=this.vr[this.Uo][a])&&((this.U[a]||(this.U[a]={})).i=z)};k.prototype.k=function(){for(var a,b=0;b<arguments.length;b++){for(var d=arguments[b],f=this.Uo;f;){if(a=this.vr[f][d]){a=this.get(a);if(a!=m&&a!=r)return a}f=this.N9[f]}a=this.get(d);if(a!=m&&a!=r)return a}};k.prototype.tV=function(a){a.source.unbind(e.Da,this.tV,this);this.trigger(new d(e.hw))};k.prototype.gS=function(a){a.source.unbind(e.Da,this.gS,this);this.trigger(new d(e.Os))};k.prototype.ga=function(){if(this.L3)this.L3=
z;else if(this.n("visible")){var a=this.k("visible"),b=this.get(a?"hideEffect":"showEffect");if(b&&b.dz(this)){b.unbind(e.Da,a?this.gS:this.tV,this);b.end()}if(b=this.get(a?"showEffect":"hideEffect")){if(!b.dz(this)){this.p("visible");b.bind(e.Da,a?this.tV:this.gS,this);b.play(this)}}else this.trigger(new d(a?e.hw:e.Os))}if(this.n("visible")){this.Ze(this.k("visible"));this.p("visible")}if(this.n("includeInLayout")){this.Ypa(this.k("includeInLayout"));this.p("includeInLayout")}if(this.n("left")){b=
this.k("left");a=k.Fk(b);b=a===m?b:m;this.fqa(a);this.$pa(b);this.p("left")}if(this.n("top")){b=this.k("top");a=k.Fk(b);b=a===m?b:m;this.hqa(a);this.vqa(b);this.p("top")}if(this.n("right")){b=this.k("right");a=k.Fk(b);b=a===m?b:m;this.gqa(a);this.kqa(b);this.p("right")}if(this.n("bottom")){b=this.k("bottom");a=k.Fk(b);b=a===m?b:m;this.dqa(a);this.Hpa(b);this.p("bottom")}if(this.n("centerX")){this.Kpa(this.k("centerX"));this.p("centerX")}if(this.n("centerY")){this.Lpa(this.k("centerY"));this.p("centerY")}if(this.n("width")){b=
this.k("width");a=k.Fk(b);b=a===m?b:m;this.iqa(a);this.Tpa(b);this.p("width")}if(this.n("height")){b=this.k("height");a=k.Fk(b);b=a===m?b:m;this.eqa(a);this.Opa(b);this.p("height")}if(this.n("minWidth")){b=this.k("minWidth");this.Spa(b);this.p("minWidth")}if(this.n("minHeight")){b=this.k("minHeight");this.Rpa(b);this.p("minHeight")}if(this.n("maxWidth")){b=this.k("maxWidth");this.Qpa(b);this.p("maxWidth")}if(this.n("maxHeight")){b=this.k("maxHeight");this.Ppa(b);this.p("maxHeight")}if(this.n("paddingLeft")){this.p9(this.k("paddingLeft"));
this.p("paddingLeft")}if(this.n("paddingTop")){this.r9(this.k("paddingTop"));this.p("paddingTop")}if(this.n("paddingRight")){this.q9(this.k("paddingRight"));this.p("paddingRight")}if(this.n("paddingBottom")){this.o9(this.k("paddingBottom"));this.p("paddingBottom")}a=z;if(this.n("borderRadius")){this.p("borderRadius");a=p}b=z;if(this.n("borderLeftRadius")){this.p("borderLeftRadius");b=p}var f=z;if(this.n("borderTopRadius")){this.p("borderTopRadius");f=p}var c=z;if(this.n("borderRightRadius")){this.p("borderRightRadius");
c=p}var q=z;if(this.n("borderBottomRadius")){this.p("borderBottomRadius");q=p}if(this.n("borderTopLeftRadius")||f||b||a){this.Epa(this.k("borderTopLeftRadius","borderLeftRadius","borderTopRadius","borderRadius"));this.p("borderTopLeftRadius")}if(this.n("borderTopRightRadius")||f||c||a){this.Fpa(this.k("borderTopRightRadius","borderRightRadius","borderTopRadius","borderRadius"));this.p("borderTopRightRadius")}if(this.n("borderBottomLeftRadius")||q||b||a){this.wpa(this.k("borderBottomLeftRadius","borderLeftRadius",
"borderBottomRadius","borderRadius"));this.p("borderBottomLeftRadius")}if(this.n("borderBottomRightRadius")||q||c||a){this.xpa(this.k("borderBottomRightRadius","borderRightRadius","borderBottomRadius","borderRadius"));this.p("borderBottomRightRadius")}a=z;if(this.n("borderSize")){this.p("borderSize");a=p}if(this.n("borderLeftSize")||a){this.Apa(this.k("borderLeftSize","borderSize"));this.p("borderLeftSize")}if(this.n("borderTopSize")||a){this.Gpa(this.k("borderTopSize","borderSize"));this.p("borderTopSize")}if(this.n("borderRightSize")||
a){this.Cpa(this.k("borderRightSize","borderSize"));this.p("borderRightSize")}if(this.n("borderBottomSize")||a){this.ypa(this.k("borderBottomSize","borderSize"));this.p("borderBottomSize")}a=z;if(this.n("borderColor")){this.p("borderColor");a=p}if(this.n("borderLeftColor")||a){this.zpa(this.k("borderLeftColor","borderColor"));this.p("borderLeftColor")}if(this.n("borderTopColor")||a){this.Dpa(this.k("borderTopColor","borderColor"));this.p("borderTopColor")}if(this.n("borderRightColor")||a){this.Bpa(this.k("borderRightColor",
"borderColor"));this.p("borderRightColor")}if(this.n("borderBottomColor")||a){this.vpa(this.k("borderBottomColor","borderColor"));this.p("borderBottomColor")}if(this.n("shadow")){this.oK(this.k("shadow"));this.p("shadow")}if(this.n("shadowHorizontalLength")){this.qqa(this.k("shadowHorizontalLength"));this.p("shadowHorizontalLength")}if(this.n("shadowVerticalLength")){this.tqa(this.k("shadowVerticalLength"));this.p("shadowVerticalLength")}if(this.n("shadowBlurRadius")){this.oqa(this.k("shadowBlurRadius"));
this.p("shadowBlurRadius")}if(this.n("shadowSpread")){this.sqa(this.k("shadowSpread"));this.p("shadowSpread")}if(this.n("shadowColor")){this.pqa(this.k("shadowColor"));this.p("shadowColor")}a=z;if(this.n("opacity")){this.yj(this.k("opacity"));this.p("opacity");a=p}if(this.n("shadowOpacity")||a){this.rqa(this.k("shadowOpacity","opacity"));this.p("shadowOpacity")}if(this.n("backgroundOpacity")){this.spa(this.k("backgroundOpacity"));this.p("backgroundOpacity")}if(this.n("backgroundColor")){this.opa(this.k("backgroundColor"));
this.p("backgroundColor")}if(this.n("backgroundColorRatios")){this.qpa(this.k("backgroundColorRatios"));this.p("backgroundColorRatios")}if(this.n("backgroundColorDirection")){this.ppa(this.k("backgroundColorDirection"));this.p("backgroundColorDirection")}if(this.n("backgroundImageUrl")){this.rpa(this.k("backgroundImageUrl"));this.p("backgroundImageUrl")}g.prototype.ga.call(this)};k.Fk=function(a){if(b(a).isString())if((a=a.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&a.length>=2)return parseFloat(a[1])};
return k});define("hk",["dm","fd","bY"],function(a,b,c){return b.extend(c,function(b,d,f){a.isNumber(d)||(d=1);a.isNumber(f)||(f=0);c.call(this,b);this.scale=d;this.rotation=f})});define("lg",["dm","fd","bY"],function(a,b,c){return b.extend(c,function(a,b,f,g,k,i,n){c.call(this,a);this.x=b;this.y=f;this.pageX=g;this.pageY=k;this.op=i;this.DX=n})});
define("d","require,jquery.mod,dm,fd,lc,fj,iX,J,hk,lg,fb,r,jk".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("fj"),g=a("iX"),k=a("J"),i=a("hk"),n=a("lg");a("fb");var j=a("r"),a=a("jk"),l=e.extend(k,function(){k.call(this);this.Xc("UIComponent");this.nH=[];this.MB=[];this.sja=500;this.oc=1;this.Yj=j.XM();this.mB=this.vo=this.cI=z;this.set("propagateClick",p)});l.kb={autoRolledOver:z,autoPressed:z,contentOpaque:p,cursor:m,inheritedCursor:m,inheritedInteractionEnabled:p,
interactionEnabled:p,rollOverOpacity:[f.v,"opacity"],rollOverShadow:[f.v,"shadow"]};c.defaults(l.kb,k.kb);l.prototype.ya=function(){this.Rj(l.kb)};l.prototype.T1=function(){this.u9(p)};l.prototype.S1=function(){this.u9(z)};l.prototype.Q1=function(){this.gy(p)};l.prototype.R1=function(){this.gy(z)};l.prototype.WC=function(a){if(this.vo!=a){this.vo=a;this.ge()}};l.prototype.gy=function(a){if(this.mB!=a){this.mB=a;this.ge()}};l.prototype.u9=function(a){if(this.cI!=a){this.cI=a;this.ge()}};l.prototype.ge=
function(){this.vo?this.hy(f.G):this.mB&&this.cI?this.hy(f.Za):this.mB?this.hy(f.za):this.cI?this.hy(f.v):this.hy(f.cd)};l.prototype.trigger=function(){k.prototype.trigger.apply(this,arguments)};l.prototype.x$=function(a){this.trigger(new n(d.xb,a.x,a.y,a.pageX,a.pageY))};l.prototype.y$=function(a){this.trigger(new n(d.Lc,a.x,a.y,a.pageX,a.pageY))};l.prototype.z$=function(a){this.trigger(new n(d.cc,a.x,a.y,a.pageX,a.pageY))};l.prototype.Hra=function(a,b){this.trigger(new n(d.Yp,a.x,a.y,a.pageX,a.pageY,
b.op,b.DX))};l.prototype.s$=function(a){this.trigger(new n(d.T,a.x,a.y,a.pageX,a.pageY))};l.prototype.t$=function(a){this.trigger(new n(d.RF,a.x,a.y,a.pageX,a.pageY))};l.prototype.Jra=function(){this.trigger(new n(d.tc))};l.prototype.Ira=function(){this.trigger(new n(d.Ib))};l.prototype.Fra=function(){this.trigger(new n(d.Ch))};l.prototype.Gra=function(){this.trigger(new n(d.zf))};l.prototype.Era=function(a,b){this.trigger(new i(d.MF,a,b))};l.prototype.Cra=function(a,b){this.trigger(new i(d.Tea,a,
b))};l.prototype.Dra=function(a,b){this.trigger(new i(d.LF,a,b))};l.prototype.v$=function(a){this.trigger(new i(d.Uea,m,a))};l.prototype.w$=function(a){this.trigger(new i(d.Zv,a))};l.prototype.$V=function(a){a.stopImmediatePropagation();this.Uw(["touchend"]);if(this.GS(a))this.vU(a);else{this.d5();this.m8(a,p)}};l.prototype.m8=function(a,b){var d=this.$A(a);b&&this.yra(d);this.x$(d);this.P&&this.P.m8(a,b&&this.get("propagateClick"))};l.prototype.ZV=function(a){a.preventDefault();a.stopImmediatePropagation();
this.GS(a)?this.tU(a):this.l8(a)};l.prototype.l8=function(a){var b=this.$A(a);this.xra(b);this.y$(b);this.P&&this.P.l8(a)};l.prototype.h4=function(a,b){var d=a.pageX-b.pageX,f=a.pageY-b.pageY;return Math.sqrt(d*d+f*f)};l.prototype.Kr=function(a,b){this.KA(["touchend"]);b!==z&&a.preventDefault();a.stopImmediatePropagation();this.GS(a)?this.uU(a):this.k8(a,this.m5());this.fA()};l.prototype.k8=function(a,b){this.z$(this.$A(a));this.wra(b);this.P&&this.P.k8(a)};l.prototype.yra=function(a){this.bind(d.Ib,
this.n$,this,p);this.Ku=a};l.prototype.xra=function(a){if(this.Ku){var a=this.h4(this.Ku,a),b;if(j.Wa()){b=this.Ua();b=Math.min(b.Ba(),b.gb())*0.01;b=l.Yfa*b}else b=l.dga;a>b&&this.YV()}};l.prototype.wra=function(a){if(this.Ku){this.s$(this.Ku);a&&this.t$(this.Ku);this.YV()}};l.prototype.YV=function(){if(this.Ku){this.unbind(d.Ib,this.n$,this);this.Ku=m}};l.prototype.n$=function(){this.YV()};l.prototype.uR=function(a){this.Uw(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();
this.vU(a)};l.prototype.vU=function(a){var b=this.FR(a);this.Tx=b;this.Era(b.scale,b.rotation);this.P&&this.P.vU(a)};l.prototype.S3=function(a){a.preventDefault();a.stopImmediatePropagation();this.tU(a)};l.prototype.tU=function(a){var b=this.FR(a,this.Tx),d=b.rotation-this.Tx.rotation,f=b.scale/this.Tx.scale;this.Tx=b;this.oc=this.oc*f;for(this.fe=this.fe+d;this.fe>180;)this.fe=this.fe-360;for(;this.fe<-180;)this.fe=this.fe+360;this.Cra(this.oc,this.fe);d!=0&&this.v$(this.fe);f!=1&&this.w$(this.oc);
this.P&&this.P.tU(a)};l.prototype.U3=function(a){this.KA(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();this.uU(a)};l.prototype.uU=function(a){var b=this.FR(a),d=b.rotation-this.Tx.rotation,b=b.scale/this.Tx.scale;this.oc=this.oc*b;for(this.fe=this.fe+d;this.fe>180;)this.fe=this.fe-360;for(;this.fe<-180;)this.fe=this.fe+360;this.Dra(this.oc,this.fe);d!=0&&this.v$(this.fe);b!=1&&this.w$(this.oc);this.P&&this.P.uU(a)};l.prototype.mT=function(a){this.Uw(["mouseup"]);
a.stopImmediatePropagation();this.d5();this.g8(a,p);q&&this.Ama(a.ctrlKey)};l.prototype.g8=function(a,b){var d=this.Jt(a);b&&this.kia(d);this.x$(d);this.P&&this.P.g8(a,b&&this.get("propagateClick"))};l.prototype.nT=function(a){a.preventDefault();a.stopImmediatePropagation();this.Ua().Hv(this);this.h8(a)};l.prototype.h8=function(a){var b=this.Jt(a);this.jia(b);this.y$(b);this.P&&this.P.h8(a)};l.prototype.EI=function(a){this.KA(["mouseup"]);a.preventDefault();a.stopImmediatePropagation();this.i8(a,
this.m5())};l.prototype.i8=function(a,b){this.z$(this.Jt(a));this.iia(b);this.P&&this.P.i8(a,b)};l.prototype.kia=function(a){this.bind(d.Ib,this.G2,this,p);this.ot=a};l.prototype.jia=function(a){this.ot&&this.h4(this.ot,a)>l.Tfa&&this.VP()};l.prototype.iia=function(a){if(this.ot){this.s$(this.ot);a&&this.t$(this.ot);this.VP()}};l.prototype.VP=function(){if(this.ot){this.unbind(d.Ib,this.G2,this);this.ot=m}};l.prototype.G2=function(){this.VP()};l.prototype.O5=function(a){if(this.pa.N5){a.preventDefault();
a.stopImmediatePropagation();this.j8(a)}};l.prototype.n2=S(z);l.prototype.j8=function(a){var b=this.Jt(a),d=this.Rka(a);this.P&&!this.n2(d.op)&&this.P.j8(a);this.Hra(b,d)};l.prototype.Jt=function(a){return this.xR(a.pageX,a.pageY)};l.prototype.Rka=function(a){var a=window.event||a.originalEvent||a,b={};b.op=Math.max(-1,Math.min(1,a.wheelDelta||-a.detail));b.DX=a.wheelDelta?a.wheelDelta*0.01:b.op;return b};l.prototype.$A=function(a){var b=this.CR(a);return this.uoa=a=b===m?this.xR(a.pageX,a.pageY):
b.length==0?this.uoa:this.xR(b[0].pageX,b[0].pageY)};l.prototype.GS=function(a){if((a=this.CR(a))&&a.length>1)for(var b=0,d=0;d<a.length;d++)if(this.ema(a[d].target)){b++;if(b>1)return p}return z};l.prototype.ema=function(a){for(;a;){if(a==this.eb)return p;a=a.parentNode}return z};l.prototype.CR=function(a){return a.originalEvent.touches||a.originalEvent.targetTouches||a.originalEvent.changedTouches};l.prototype.xR=function(a,b){var d=this.Cb().offset(),f=this.pa?this.pa.Ix:1,c={};c.x=(a-d.left)/
f;c.y=(b-d.top)/f;c.pageX=a/f;c.pageY=b/f;c.Sca=a;c.Tca=b;return c};l.prototype.FR=function(a,b){if(a.originalEvent.scale!==m||a.originalEvent.rotation!==m)return{scale:a.originalEvent.scale,rotation:a.originalEvent.rotation};if(b){var d=this.o4(a);return{scale:b.scale*d/b.touchesDistance,rotation:0,touchesDistance:d}}return{scale:1,rotation:0,touchesDistance:this.o4(a)}};l.prototype.o4=function(a){var b=this.CR(a);if(b&&b.length>1){a=Math.abs(b[0].pageX-b[1].pageX);b=Math.abs(b[0].pageY-b[1].pageY);
return Math.sqrt(a*a+b*b)}return 0};l.prototype.Uw=function(a){this.nH=c(this.nH).union(a);for(var a=this.n4(a),b=0;b<a.length;b++){var d=a[b];d.target.bind(d.name,d.handler)}};l.prototype.d5=function(){this.MB.push((new Date).getTime());this.MB=this.MB.slice(-2)};l.prototype.m5=function(){var a=(new Date).getTime();if(this.MB.length>1){var b=this.MB.slice(-2)[0];if(a-b<=this.sja)return p}return z};l.prototype.KA=function(a){this.nH=c(this.nH).difference(a);for(var a=this.n4(a),b=0;b<a.length;b++){var d=
a[b];d.target.unbind(d.name,d.handler)}};l.prototype.n4=function(a){this.G3||(this.G3=this.BR());for(var b=[],d=0;d<a.length;d++)b=b.concat(this.G3[a[d]]);return b};l.prototype.BR=function(){var a=this.Cb(),d=b(document),f=b(window);return{touchstart:[{target:a,name:"touchstart",handler:this.Xe(this.$V)}],touchmove:[{target:a,name:"touchmove",handler:this.Xe(this.ZV)}],touchend:[{target:a,name:"touchend",handler:this.Xe(this.Kr,p)},{target:d,name:"touchend",handler:this.Xe(this.Kr,p)},{target:a,name:"touchcancel",
handler:this.Xe(this.Kr,p)},{target:d,name:"touchcancel",handler:this.Xe(this.Kr,p)}],gesturestart:[{target:a,name:"gesturestart",handler:this.Xe(this.uR)}],gesturechange:[{target:a,name:"gesturechange",handler:this.Xe(this.S3)}],gestureend:[{target:a,name:"gestureend",handler:this.Xe(this.U3)}],mousedown:[{target:a,name:"mousedown",handler:this.Xe(this.mT)}],mousemove:[{target:a,name:"mousemove",handler:this.Xe(this.nT)}],mouseup:[{target:a,name:"mouseup",handler:this.Xe(this.EI,p)},{target:f,name:"mouseup",
handler:this.Xe(this.EI,p)}],mousewheel:[{target:a,name:"mousewheel",handler:this.Xe(this.O5)},{target:a,name:"DOMMouseScroll",handler:this.Xe(this.O5)}]}};l.prototype.Xe=function(a,b){var d=this;return function(){b&&g.aN();l.QD=l.QD+1;var f=a.apply(d,arguments);l.QD=l.QD-1;return f}};l.prototype.ga=function(){if(this.n("autoRolledOver")){this.unbind(d.tc,this.T1,this);this.unbind(d.Ib,this.S1,this);if(this.k("autoRolledOver")){this.bind(d.tc,this.T1,this);this.bind(d.Ib,this.S1,this)}this.p("autoRolledOver")}if(this.n("autoPressed")){this.unbind(d.xb,
this.Q1);this.unbind(d.cc,this.R1);if(this.k("autoPressed")){this.bind(d.xb,this.Q1);this.bind(d.cc,this.R1)}this.p("autoPressed")}var a=z;if(this.n("contentOpaque")){a=p;this.p("contentOpaque")}if(this.n("inheritedInteractionEnabled")){a=p;this.p("inheritedInteractionEnabled")}if(this.n("interactionEnabled")){a=p;this.p("interactionEnabled")}if(this.n("backgroundOpacity")||this.n("backgroundColor"))a=p;k.prototype.ga.call(this);if(a){var b=this.Ab(),b=b.wh()>0&&b.pt.length>0,f=this.k("contentOpaque"),
c=this.k("inheritedInteractionEnabled"),g=this.k("interactionEnabled");this.Cu(c&&g&&(f||b))}if(a||this.n("cursor")||this.n("inheritedCursor")){this.p("cursor");this.p("inheritedCursor");this.kG?this.Gr(this.k("cursor")):this.Gr(this.k("inheritedCursor"))}};l.prototype.Cu=function(a){if(this.kG!=a){(this.kG=a)?this.Uw(l.u1):this.KA(l.u1);this.fA()}};l.prototype.fA=function(){this.oo().style["pointer-events"]=this.kG?"auto":"none"};l.prototype.Ama=function(a){if(a){for(var a=[],b=this;b;){a.push(b);
b=b.getParent()}console.log(a.map(function(a){return a.kA}))}else console.log(this.kA)};l.GE=function(){return l.QD>0};l.u1=function(){var a=[],a=a.concat(["touchstart","touchmove","gesturestart"]);j.Xd()!=j.Hj&&(a=a.concat(["mousedown","mousemove","mousewheel"]));return a}();l.QD=0;l.Jza=1E3;l.dga=10;l.Yfa=5;l.Tfa=10;var q=a.Lg("debug");return l});define("jP",[],function(){return{oa:"left",Ka:"right",Kc:"center",jb:"top",ib:"bottom",rc:"middle"}});
define("c",[],function(){return{fN:"absolute",we:"horizontal",Wp:"grid",df:"vertical"}});define("bZ",[],function(){return function(a){this.Sc=a;this.height=this.width=this.y=this.x=0}});define("cU",[],function(){return function(){this.minHeight=this.minWidth=this.height=this.width=0}});
define("bK",["jP","bZ","cU"],function(a,b,c){function e(){this.Mb=r;this.ii=a.jb;this.Nh=a.oa;this.Tu=this.ro=0}e.prototype.Mda=function(a){this.ro!=a&&(this.ro=a,this.ed())};e.prototype.TM=function(a){this.Tu!=a&&(this.Tu=a,this.ed())};e.prototype.Vda=function(a){this.Mb=a;this.ed()};e.prototype.sz=function(a){this.Nh!=a&&(this.Nh=a,this.ed())};e.prototype.xz=function(a){this.ii!=a&&(this.ii=a,this.ed())};e.prototype.KE=function(){return new c};e.prototype.update=function(){var a=this.Bia();this.ty(a);
this.Mpa(a)};e.prototype.ty=function(a){this.CD(a);this.BD(a)};e.prototype.HH=function(){for(var a=this.L4(),b=[],c=0;c<a.length;c++){var e=a[c];e.get("includeInLayout")&&b.push(e)}return b};e.prototype.L4=function(){for(var a=this.Mb.Oa(),b=[],c=0;c<a.length;c++){var e=a[c];e.get("visible")&&b.push(e)}return b};e.prototype.Bia=function(){for(var a=this.L4(),f=[],c=0;c<a.length;c++)f.push(new b(a[c]));return f};e.prototype.Mpa=function(a){for(var b=0;b<a.length;b++){var c=a[b];c.Sc.Eda(c.x,c.y,c.width,
c.height)}};e.prototype.ed=function(){this.Mb&&this.Mb.Va()};return e});
define("cN",["fd","jP","bK","cU"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.KE=function(){for(var a=new e,b=this.HH(),c=0;c<b.length;c++){var k=b[c],i=k.Bo,n=k.NC,j=0;isNaN(i)||(j+=i);isNaN(n)||(j+=n);a.width=Math.max(j+k.vn(),a.width);a.minWidth=Math.max(j+k.sn(),a.minWidth);i=k.fp;n=k.mA;j=0;isNaN(i)||(j+=i);isNaN(n)||(j+=n);a.height=Math.max(j+k.un(),a.height);a.minHeight=Math.max(j+k.up(),a.minHeight)}b=this.Mb.ni()+this.Mb.pn();a.width+=b;a.minWidth+=b;b=this.Mb.qn()+
this.Mb.Sy();a.height+=b;a.minHeight+=b;return a};a.prototype.ty=function(a){this.CD(a);this.BD(a)};a.prototype.ty=function(a){for(var b=this.Mb.Gd(),c=this.Mb.Fd(),e=0;e<a.length;e++){var i=a[e],n=i.Sc,j=n.Bo;if(isNaN(j)){var l=n.vJ;isNaN(l)||(j=Math.round(0.01*l*b))}l=n.NC;if(isNaN(l)){var q=n.wJ;isNaN(q)||(l=Math.round(0.01*q*b))}var q=n.pq,o=n.Pi;if(isNaN(o)){var t=n.dj;isNaN(t)?!isNaN(j)&&!isNaN(l)&&(o=b-j-l):o=Math.round(0.01*t*b)}t=n.fp;if(isNaN(t)){var s=n.xJ;isNaN(s)||(t=Math.round(0.01*
s*c))}s=n.mA;if(isNaN(s)){var u=n.uJ;isNaN(u)||(s=Math.round(0.01*u*c))}var u=n.qq,v=n.Bt;if(isNaN(v)){var w=n.cj;isNaN(w)?!isNaN(t)&&!isNaN(s)&&(v=c-t-s):v=Math.round(0.01*w*c)}i.width=isNaN(o)?n.vn():Math.max(n.sn(),Math.min(n.WL(),o));i.height=isNaN(v)?n.un():Math.max(n.up(),Math.min(n.VL(),v));i.x=!isNaN(j)&&!isNaN(l)?Math.round(j+0.5*(b-l-j-i.width)):isNaN(j)?isNaN(l)?isNaN(q)?0:0.5*b+q-0.5*i.width:b-l-i.width:j;i.y=!isNaN(t)&&!isNaN(s)?Math.round(t+0.5*(c-s-t-i.height)):isNaN(t)?isNaN(s)?isNaN(u)?
0:0.5*c+u-0.5*i.height:c-s-i.height:t}};return a});
define("hN",["fd","jP","bK","cU"],function(a,b,c,e){a=a.extend(c,function(){c.call(this);this.oB=this.pB=this.qB=this.St=this.wo=this.xo=this.sB=this.Zq=this.Pi=m});a.prototype.pxa=function(a){this.Pi!=a&&(this.Pi=a,this.ed())};a.prototype.Cxa=function(a){this.xo!=a&&(this.xo=a,this.xo!=m&&(this.Zq=m),this.ed())};a.prototype.Bxa=function(a){this.wo!=a&&(this.wo=a,this.wo!=m&&(this.sB=m),this.ed())};a.prototype.Kxa=function(a){this.Zq!=a&&(this.Zq=a,this.xo!=m&&(this.xo=m),this.ed())};a.prototype.Jxa=
function(a){this.sB!=a&&(this.sB=a,this.wo!=m&&(this.wo=m),this.ed())};a.prototype.Hxa=function(a){this.St!=a&&(this.St=a,this.ed())};a.prototype.Gxa=function(a){this.qB!=a&&(this.qB=a,this.ed())};a.prototype.Fxa=function(a){this.pB!=a&&(this.pB=a,this.ed())};a.prototype.Exa=function(a){this.oB!=a&&(this.oB=a,this.ed())};a.prototype.KE=function(){for(var a=new e,b=this.HH(),c=0,k=0;k<b.length;k++)b[k].get("includeInLayout")&&c++;if(!isNaN(this.Zq)){isNaN(this.St)||(a.minWidth=this.St);for(k=0;k<b.length;k++){var i=
b[k].sn();isNaN(i)||(a.minWidth=Math.max(i,a.minWidth))}}if(isNaN(this.xo))for(k=0;k<b.length;k++)i=b[k].vn(),isNaN(i)||(a.width=Math.max(i,a.width));else a.width=this.xo;if(isNaN(this.wo))for(k=0;k<b.length;k++)i=b[k].un(),isNaN(i)||(a.height=Math.max(i,a.height));else a.height=this.wo;isNaN(this.Zq)?isNaN(this.Pi)?b=Math.ceil(Math.sqrt(c)):(b=this.Pi-this.Mb.ni()-this.Mb.pn(),b=Math.max(1,Math.floor((b+this.ro)/(a.width+this.ro)))):b=Math.max(1,Math.floor(100/this.Zq));c=Math.ceil(c/b);a.width=
a.width*b+Math.max(0,b-1)*this.ro+this.Mb.ni()+this.Mb.pn();a.minWidth=a.minWidth+this.Mb.ni()+this.Mb.pn();a.height=a.height*c+Math.max(0,c-1)*this.Tu+this.Mb.qn()+this.Mb.Sy();a.minHeight=0;return a};a.prototype.ty=function(a){for(var f,c,e=[],i=[],n=0;n<a.length;n++)c=a[n].Sc,c.get("includeInLayout")?e.push(a[n]):i.push(a[n]);var j=e.length,l=this.Mb.Gd(),q=this.ro,o;if(isNaN(this.xo))if(isNaN(this.Zq)){for(n=a=0;n<e.length;n++)c=e[n].Sc,a=Math.max(c.sn(),c.vn(),a);a=Math.min(l,a)}else{if(a=Math.max(1,
Math.floor(100/this.Zq)),a=(l-(a-1)*q)/a,n=z,!isNaN(this.pB)&&this.pB<a&&(a=this.pB,n=p),!isNaN(this.St)&&this.St>a&&(a=this.St,n=p),n)a=Math.max(1,Math.floor((l+q)/(a+q))),a=(l-(a-1)*q)/a}else a=this.xo;a=Math.max(1,a);o=Math.max(1,Math.floor(0.001+(l+q)/(a+q)));var n=o*a,t=o*(a+q)-q,s=0;if(l>=t)switch(this.Nh){case b.Ka:s=l-t;break;case b.Kc:s=Math.round(0.5*(l-t));break;default:s=0}for(var l=[],t=[],u=0;u<o;u++)c=Math.round(n/(o-u)),n-=c,t.push(s),s+=c+q,l.push(c);s=this.Mb.Fd();u=this.Tu;if(isNaN(this.wo))if(isNaN(this.sB)){q=
1;for(n=0;n<e.length;n++)c=e[n].Sc,q=Math.max(c.up(),c.un(),q)}else{if(q=Math.max(1,100/this.sB),q=(s-(q-1)*u)/q,n=z,!isNaN(this.oB)&&this.oB<q&&(q=this.oB,n=p),!isNaN(this.qB)&&this.qB>q&&(q=this.qB,n=p),n)q=Math.max(1,Math.floor((s+u)/(q+u))),q=(s-(q-1)*u)/q}else q=this.wo;n=Math.max(1,Math.ceil(j/o));f=n*q;var j=n*(q+u)-u,v=0;if(s>=j)switch(this.ii){case b.ib:v=s-j;break;case b.rc:v=Math.round(0.5*(s-j))}j=[];s=[];for(c=0;c<n;c++){var w=Math.round(f/(n-c));f-=w;s.push(v);v+=w+u;j.push(w)}for(n=
0;n<e.length;n++)f=e[n],u=n%o,c=Math.floor(n/o),f.x=t[u],f.width=l[u],f.y=s[c],f.height=j[c];for(n=0;n<i.length;n++)f=i[n],f.x=0,f.width=Math.round(a),f.y=0,f.height=Math.round(q)};return a});
define("ez",["fd","jP","bK","cU"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.KE=function(){for(var a=new e,b=this.HH(),c=0;c<b.length;c++){var k=b[c];a.height=Math.max(k.un(),a.height);a.minHeight=Math.max(k.up(),a.minHeight);a.width+=k.vn();a.minWidth+=k.sn()}b=Math.max(0,b.length-1)*this.ro+this.Mb.ni()+this.Mb.pn();a.width+=b;a.minWidth+=b;b=this.Mb.qn()+this.Mb.Sy();a.height+=b;a.minHeight+=b;return a};a.prototype.ty=function(a){this.CD(a);this.BD(a)};a.prototype.CD=
function(a){for(var b=0,c=0;c<a.length;c++)a[c].Sc.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.ro,e=this.Mb.Gd()-c,i=this.Mb.Fd(),b=e,n=0,j=[],c=0;c<a.length;c++){var l=a[c],q=l.Sc,o=q.cj;l.height=isNaN(o)?q.un():Math.max(q.up(),Math.min(q.VL(),Math.round(0.01*i*o)));o=q.dj;isNaN(o)?(l.width=q.vn(),b-=l.width):q.get("includeInLayout")?(n+=o,j.push(l)):l.width=Math.max(q.sn(),Math.min(q.WL(),Math.round(0.01*e*o)))}c=Math.max(0,b-0.01*e*n);b-=c;do{a=z;e=Math.max(0,0<n?b/n:0);i=[];for(c=
n=0;c<j.length;c++){var l=j[c],q=l.Sc,o=Math.round(q.dj*e),t=q.sn(),s=q.WL();o<t?(l.width=t,b-=l.width,a=p):o>s?(l.width=s,b-=l.width,a=p):(n+=q.dj,i.push(l))}j=i}while(a);for(c=0;c<j.length;c++)l=j[c],q=l.Sc,e=Math.max(0,0<n?b/n:0),l.width=Math.round(q.dj*e),b-=l.width,n-=q.dj};a.prototype.BD=function(a){for(var f=this.ro,c=this.Mb.Gd(),e=this.Mb.Fd(),i=0,n=0,j=0;j<a.length;j++){var l=a[j];l.Sc.get("includeInLayout")&&(i+=a[j].width,n++)}i+=f*(n-1);if(c>=i)switch(this.Nh){case b.Ka:c-=i;break;case b.Kc:c=
Math.round(0.5*(c-i));break;default:c=0}else c=0;for(j=0;j<a.length;j++)if(l=a[j],l.Sc.get("includeInLayout")){if(e>=l.height)switch(this.ii){case b.ib:l.y=e-l.height;break;case b.rc:l.y=Math.round(0.5*(e-l.height));break;default:l.y=0}else l.y=0;l.x=c;c+=l.width+f}else l.x=0,l.y=0};return a});
define("cu",["fd","jP","bK","cU"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});a.prototype.KE=function(){for(var a=new e,b=this.HH(),c=0;c<b.length;c++){var k=b[c];a.width=Math.max(k.vn(),a.width);a.minWidth=Math.max(k.sn(),a.minWidth);a.height+=k.un();a.minHeight+=k.up()}b=Math.max(0,b.length-1)*this.Tu+this.Mb.qn()+this.Mb.Sy();a.height+=b;a.minHeight+=b;b=this.Mb.ni()+this.Mb.pn();a.width+=b;a.minWidth+=b;return a};a.prototype.ty=function(a){this.CD(a);this.BD(a)};a.prototype.CD=function(a){for(var b=
0,c=0;c<a.length;c++)a[c].Sc.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.Tu,e=this.Mb.Gd(),i=this.Mb.Fd()-c,b=i,n=0,j=[],c=0;c<a.length;c++){var l=a[c],q=l.Sc,o=q.dj;l.width=isNaN(o)?q.vn():Math.max(q.sn(),Math.min(q.WL(),Math.round(0.01*e*o)));o=q.cj;isNaN(o)?(l.height=q.un(),b-=l.height):q.get("includeInLayout")?(n+=o,j.push(l)):l.height=Math.max(q.up(),Math.min(q.VL(),Math.round(0.01*i*o)))}c=Math.max(0,b-0.01*i*n);b-=c;do{a=z;e=Math.max(0,0<n?b/n:0);i=[];for(c=n=0;c<j.length;c++){var l=
j[c],q=l.Sc,o=Math.round(q.cj*e),t=q.up(),s=q.VL();o<t?(l.height=t,b-=l.height,a=p):o>s?(l.height=s,b-=l.height,a=p):(n+=q.cj,i.push(l))}j=i}while(a);for(c=0;c<j.length;c++)l=j[c],q=l.Sc,e=Math.max(0,0<n?b/n:0),l.height=Math.round(q.cj*e),b-=l.height,n-=q.cj};a.prototype.BD=function(a){for(var f=this.Tu,c=this.Mb.Gd(),e=this.Mb.Fd(),i=0,n=0,j=0;j<a.length;j++){var l=a[j];l.Sc.get("includeInLayout")&&(i+=l.height,l.width>c&&(c=l.width),n++)}i+=f*(n-1);if(e>=i)switch(this.ii){case b.ib:e-=i;break;case b.rc:e=
Math.round(0.5*(e-i));break;default:e=0}else e=0;for(j=0;j<a.length;j++)if(l=a[j],l.Sc.get("includeInLayout")){switch(this.Nh){case b.Ka:l.x=c-l.width;break;case b.Kc: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("k","fd,dm,d,J,jP,cj,c,cN,hN,ez,cu".split(","),function(a,b,c,e,d,f,g,k,i,n,j){var l=a.extend(c,function(){c.call(this);this.Xc("BaseContainer");this.Zj=r;this.vc=[];this.cl=[];this.FA=f.f_;this.set("contentOpaque",z)});l.kb={children:[[]],childrenInteractionEnabled:p,gap:0,horizontalAlign:d.oa,itemHeight:m,itemMaxHeight:m,itemMaxWidth:m,itemMinHeight:m,itemMinWidth:m,itemWidth:m,layout:g.fN,verticalAlign:d.jb};b.defaults(l.kb,c.kb);l.prototype.ya=function(){this.Rj(l.kb)};l.prototype.set=
function(a,b){a=="children"?this.Qg(b):a=="creationPolicy"?this.ixa(b):c.prototype.set.call(this,a,b)};l.prototype.get=function(a,b){return a=="children"?this.Oa():a=="creationPolicy"?this.FA:c.prototype.get.call(this,a,b)};l.prototype.ixa=function(a){if(this.FA!=a){this.FA=a;this.mW()}};l.prototype.Qg=function(a){for(var f=this.Oa(),a=a||[],d=b(f).difference(a),c=0;c<d.length;c++)this.removeChild(d[c]);f=b(a).difference(f);for(c=0;c<f.length;c++)this.ma(f[c]);for(c=0;c<a.length;c++)this.wj(a[c],
c)};l.prototype.Oa=R("vc");l.prototype.ma=function(a){a.getParent()&&a.getParent().removeChild(a);this.vc.push(a);a.P=this;this.K1(a);a.kV(this.il);this.cl.push(a);this.mW();a.Vk()};l.prototype.removeChild=function(a){if(a.getParent()==this){a.gj();a.P=r;if(b(this.cl).contains(a))this.cl=b.without(this.cl,a);else{a.Cb().detach();a.Qm(r);this.Va();this.Jc()}this.vc=b.without(this.vc,a);a.KU()}};l.prototype.fda=function(){b(this.Oa()).forEach(function(a){this.removeChild(a)})};l.prototype.tE=function(a){return b(this.vc).indexOf(a)};
l.prototype.wj=function(a,f){var d=this.tE(a);d<0&&h("Can't set index. This is not a child of this container");var c=this.vc.slice();c.splice(d,1);c.splice(f,0,a);if(!b.isEqual(this.vc,c)){this.vc=c;if(!b(this.cl).contains(a)){d=this.tE(a);a.Cb().detach();for(var e=c=r,i=d-1;i>=0&&!c;i--)b(this.cl).contains(this.vc[i])||(c=this.vc[i]);for(i=d+1;i<this.vc.length&&!e&&!c;i++)b(this.cl).contains(this.vc[i])||(e=this.vc[i]);c?a.Cb().insertAfter(c.Cb()):e?a.Cb().insertBefore(e.Cb()):this.Pa().nX(a.oo());
this.Jc()}}};l.prototype.Cu=function(a){c.prototype.Cu.call(this,a);this.K$()};l.prototype.K$=function(){b(this.vc).forEach(function(a){this.K1(a)},this)};l.prototype.K1=function(a){a.set("inheritedInteractionEnabled",this.k("interactionEnabled")&&this.k("inheritedInteractionEnabled")&&this.k("childrenInteractionEnabled"))};l.prototype.fA=function(){c.prototype.fA.call(this);this.vc.forEach(function(a){a.fA()})};l.prototype.Du=function(a){c.prototype.Du.call(this,a);b(this.vc).forEach(function(a){a.kV(this.il)},
this)};l.prototype.oP=function(a){c.prototype.oP.call(this,a);b(this.Oa()).forEach(function(a){a.uy()});this.mW()};l.prototype.Qm=function(a){c.prototype.Qm.call(this,a);b(this.Oa()).forEach(function(f){b(this.cl).contains(f)||f.Qm(a)},this)};l.prototype.mW=function(){if((this.FA==f.f_&&this.Xq||this.FA==f.Ps)&&this.cl.length>0){b(this.cl).forEach(function(a){this.Pa().nX(a.oo());a.Qm(this.Ua())},this);this.cl=[];this.Va();this.Jc()}};l.prototype.fF=function(a){if(this.Zj!=a){this.Zj&&this.Zj.Vda(r);
(this.Zj=a)&&this.Zj.Vda(this)}};l.prototype.ga=function(){var a=z,b=this.k("layout");if(this.n("layout")){switch(b){case g.Wp:this.fF(new i);break;case g.we:this.fF(new n);break;case g.df:this.fF(new j);break;default:this.fF(new k)}this.p("layout");a=p}var f=this.Zj;if(this.n("horizontalAlign")||a){f.sz(this.k("horizontalAlign"));this.p("horizontalAlign")}if(this.n("verticalAlign")||a){f.xz(this.k("verticalAlign"));this.p("verticalAlign")}if(this.n("gap")||a){if(b==g.Wp){f.Mda(this.k("gap"));f.TM(this.k("gap"))}else b==
g.we?f.Mda(this.k("gap")):b==g.df&&f.TM(this.k("gap"));this.p("gap")}if(b==g.Wp){if(this.n("itemWidth")||a){var d=this.k("itemWidth"),l=e.Fk(d);l!==m?f.Kxa(l):f.Cxa(d);this.p("itemWidth")}if(this.n("itemHeight")||a){d=this.k("itemHeight");l=e.Fk(d);l!==m?f.Jxa(l):f.Bxa(d);this.p("itemHeight")}if(this.n("itemMinWidth")){f.Hxa(this.k("itemMinWidth"));this.p("itemMinWidth")}if(this.n("itemMinHeight")){f.Gxa(this.k("itemMinHeight"));this.p("itemMinHeight")}if(this.n("itemMaxWidth")){f.Fxa(this.k("itemMaxWidth"));
this.p("itemMaxWidth")}if(this.n("itemMaxHeight")){f.Exa(this.k("itemMaxHeight"));this.p("itemMaxHeight")}}if(this.n("childrenInteractionEnabled")){this.p("childrenInteractionEnabled");this.K$()}this.fb(["cursor"],{cursor:"inheritedCursor"},this.vc,p,z);c.prototype.ga.call(this);b==g.Wp&&f.pxa(this.Pi)};l.prototype.fb=function(a,b,f,d,c){for(var e=0;e<a.length;e++){var i=a[e];if(!d||this.n(i)){for(var g=0;g<f.length;g++)f[g].set(b[i]?b[i]:i,this.k(i));c&&this.p(i)}}};l.prototype.Go=function(){if(this.Zj){var a=
this.Zj.KE();this.Sh=a.width;this.Rh=a.height;this.HB=a.minWidth;this.GB=a.minHeight}else c.prototype.Go.call(this)};l.prototype.ui=function(){this.Zj&&this.Zj.update(this);c.prototype.ui.call(this)};return l});
define("le",["jquery.mod","fd","ls","fb"],function(a,b,c,e){function d(b,d){this.Sw=b;this.Pb="#000000";this.ub=0.5;this.W=10;this.TD=this.bB=5;this.Ad=d;this.TG=this.RT=this.ua=0;this.G1=this.Gc=this.uG=z;this.Z=p;this.Hw=document.createElement("div");this.Hw.setAttribute("tdvlayer","scrollbar");this.wA=a(this.Hw);e.css(this.Hw,{position:"absolute","z-index":c.p0});this.iA=document.createElement("div");this.vP=a(this.iA);e.css(this.iA,{position:"absolute",left:0,top:0});this.wA.append(this.vP)}d.prototype.$c=
function(){return this.wA.width()};d.prototype.Nd=function(){return this.wA.height()};d.prototype.Fa=function(a){this.ua!=a&&(this.ua=a,this.J8(),this.Z=p)};d.prototype.ds=R("ua");d.prototype.setSize=function(a,b){this.RT=a;this.TG=b;this.J8();this.Z=p};d.prototype.Ze=function(a){this.Gc!=a&&(this.Gc=a,this.Z=p)};d.prototype.Dda=function(a){this.uG!=a&&(this.uG=a,this.Z=p)};d.prototype.rz=function(a){this.Pb!=a&&(this.Pb=a,this.Z=p)};d.prototype.yj=function(a){this.ub!=a&&(this.ub=a,this.Z=p)};d.prototype.mF=
function(a){this.W!=a&&(this.W=a,this.Z=p)};d.prototype.Kda=function(a){this.bB!=a&&(this.bB=a,this.Z=p)};d.prototype.Wda=function(a){this.TD!=a&&(this.TD=a,this.Z=p)};d.prototype.Le=function(){this.Z&&(this.G1!=this.Gc&&(this.Gc?this.Ad.append(this.wA):this.wA.detach(),this.G1=this.Gc),this.J(),this.Z=z)};d.prototype.J=function(){var a=Math.round(100*this.RT/this.TG),b=Math.round(100*this.ua/this.TG);e.css(this.Hw,{filter:"alpha(opacity="+Math.round(100*this.ub)+")",opacity:this.ub,display:this.Gc?
"block":"none"});e.css(this.iA,{backgroundColor:this.Pb,"border-radius":Math.floor(this.W/2)+"px"});this.Sw==d.we?(e.css(this.Hw,{left:this.bB+"px",right:(this.uG?this.W:0)+this.bB+"px",height:this.W+"px",bottom:this.TD+"px"}),e.css(this.iA,{left:b+"%",width:a+"%",height:this.W+"px"})):(e.css(this.Hw,{top:this.TD+"px",right:this.bB+"px",width:this.W+"px",bottom:(this.uG?this.W:0)+this.TD+"px"}),e.css(this.iA,{top:b+"%",width:this.W+"px",height:a+"%"}))};d.prototype.J8=function(){var a=this.TG-this.RT;
0>this.ua?this.ua=0:this.ua>a&&(this.ua=a)};d.we="horizontal";d.df="vertical";return d});define("hu",["fd","le"],function(a,b){return a.extend(b,function(a){b.call(this,b.we,a)})});define("dv",["fd","le"],function(a,b){return a.extend(b,function(a){b.call(this,b.df,a)})});
define("V",["require"],function(){function a(){}function b(f){var c=g;g=[];a.nY=p;var e=f-a.wd,e=1<e?100>e?e:100:1;a.wd=f;for(f=0;f<c.length;f++){var i=c[f];i.callback.call(i.context,e)}a.nY=z;k=0<g.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,g=[],k=m,i=z;a.Ma=function(a,f){for(var c=0;c<g.length;c++){var e=g[c];if(e.callback==a&&e.context==f)return}g.push({callback:a,context:f});!i&&k===m&&(k=d(b))};a.sZ=function(a){i!=a&&((i=a)?k!==m&&(f(k),k=m):0<g.length&&(k=d(b)))};a.QM=function(a,i){a=a||c;i=i||e;d!=a&&(k!==m&&(f(k),k=a(b)),d=a,f=i)};a.ZY=function(){a.QM(r,r)};a.wd=(new Date).getTime();a.nY=z;return a});
define("kO",[],function(){function a(a){var b={JX:function(b,d,c,e){c=0>=c?0:c>=e?1:c/e;0.5>c?c=Math.pow(2*c,a):(c=1-Math.pow(1-(2*c-1),a),c+=1);return b+(d-b)*0.5*c}};b.HY=e(a);return b}function b(a){var b={JX:function(b,d,c,e){return b+(d-b)*(1-Math.pow(1-(0>=c?0:c>=e?1:c/e),a))}};b.HY=e(a);return b}function c(a){var b={JX:function(b,d,c,e){return b+(d-b)*Math.pow(0>=c?0:c>=e?1:c/e,a)}};b.HY=e(a);return b}function e(a){return function(b,d,c){b=Math.abs(d-b);return 1>b/c?0:1/(1-Math.pow((b-c)/b,
1/a))}}function d(d,e,k){this.Zg=r;switch(d){case "quad_in":this.Zg=c(2);break;case "quad_out":this.Zg=b(2);break;case "quad_in_out":this.Zg=a(2);break;case "cubic_in":this.Zg=c(3);break;case "cubic_out":this.Zg=b(3);break;case "cubic_in_out":this.Zg=a(3);break;case "quart_in":this.Zg=c(4);break;case "quart_out":this.Zg=b(4);break;case "quart_in_out":this.Zg=a(4);break;case "quint_in":this.Zg=c(5);break;case "quint_out":this.Zg=b(5);break;case "quint_in_out":this.Zg=a(5);break;default:this.Zg=c(1)}this.jo=
e.slice();this.Zc=0;this.Kb=this.Iq(e,k);this.LQ={};for(d=0;d<this.jo.length;d++)this.LQ[this.jo[d].name]=e[d].hv}d.prototype.kba=function(a){for(var b=0;b<this.jo.length;b++)if(this.jo[b].name==a)return this.jo[b];return r};d.prototype.wb=function(a){return this.LQ[a]};d.prototype.Je=function(){return this.Zc>=this.Kb};d.prototype.rj=R("Kb");d.prototype.setTime=function(a){this.Zc=Math.min(Math.max(0,a),this.Kb);for(a=0;a<this.jo.length;a++){var b=this.jo[a];this.LQ[b.name]=this.Zg.JX(b.hv,b.yz,
this.Zc,this.Kb)}};d.prototype.cb=function(a){this.setTime(this.Zc+a)};d.prototype.Iq=function(a,b,d){for(var c=[],e=0;e<this.jo.length;e++){var j=this.jo[e],l=d?d:j.Zva;l!==m&&0<l&&c.push(this.Zg.HY(j.hv,j.yz,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.Iq(a,b,1E3)};return d});define("bq",[],function(){return function(a,b,c,e){this.name=a;this.hv=b;this.yz=c;this.Zva=e}});
define("kJ","require,dm,fd,lc,bY,fS,em,k,hu,dv,V,kO,bq".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("fS"),g=a("em"),k=a("k"),i=a("hu"),n=a("dv"),j=a("V"),l=a("kO"),q=a("bq"),o=c.extend(k,function(){k.call(this);this.Xc("Container");this.fc=this.Dc=this.ce=this.Ce=this.Xa=this.La=this.U2=this.T2=0;this.BS=this.HS=this.Uh=this.Th=z;this.N2=0;this.cQ=this.bQ=m;this.eQ=this.dQ=0;this.Er=r;this.fJ=f.A_;this.Oq=z;this.LH=r;this.Zm=z;this.dL=r});o.kb={overflow:f.Ts,scrollBarColor:"#000000",
scrollBarWidth:10,scrollBarMargin:5,scrollBarHorizontalMargin:m,scrollBarVerticalMargin:m,scrollBarOpacity:0.5,scrollBarVisible:g.tc};b.defaults(o.kb,k.kb);o.prototype.Uj=function(){this.LH=new i(this.LR());this.LH.vP.bind("mousedown touchstart",b.bind(this.vla,this));this.Uj=R("LH");return this.LH};o.prototype.Vj=function(){this.dL=new n(this.LR());this.dL.vP.bind("mousedown touchstart",b.bind(this.Ksa,this));this.Vj=R("dL");return this.dL};o.prototype.scrollIntoView=function(a){var b=a.ca,b=Math.min(b,
Math.max(b+a.Ba()-this.Ce,this.Dc)),d=a.da,a=Math.min(d,Math.max(d+a.gb()-this.ce,this.fc));this.scrollTo(b,a)};o.prototype.scrollTo=function(a,b){var d=this.Dc;a>this.Dc?this.FG()&&(d=Math.min(a,this.La-this.Ce)):a<this.Dc&&this.EG()&&(d=Math.max(a,0));var c=this.fc;b>this.fc?this.DG()&&(c=Math.min(b,this.Xa-this.ce)):b<this.fc&&this.GG()&&(c=Math.max(b,0));this.iD(d,c)};o.prototype.yda=function(){if(this.DG()){for(var a=Math.max(0,this.Xa-this.ce),b=Math.min(a,this.fc+this.ce*0.5),d=a=Math.min(a,
this.fc+this.ce),c=this.Oa().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var e=f.da;e+f.gb()>this.fc+this.ce&&e>=b&&e<a&&e<d&&(d=e)}this.iD(this.Dc,d)}};o.prototype.DG=function(){return this.l2()&&this.fc+this.ce<this.Xa};o.prototype.Ada=function(){if(this.GG()){for(var a=Math.max(0,this.fc-this.ce),b=Math.max(0,this.fc-this.ce*0.5),d=a,c=this.Oa().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var e=f.da,f=e+f.gb();e<this.fc&&f>=a+this.ce&&f<b+this.ce&&f>d+this.ce&&
(d=f-this.ce)}this.iD(this.Dc,d)}};o.prototype.GG=function(){return this.l2()&&this.fc>0};o.prototype.zda=function(){if(this.FG()){for(var a=Math.max(0,this.La-this.Ce),b=Math.min(a,this.Dc+this.Ce*0.5),d=a=Math.min(a,this.Dc+this.Ce),c=this.Oa().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var e=f.ca;e+f.Ba()>this.Dc+this.Ce&&e>=b&&e<a&&e<d&&(d=e)}this.iD(d,this.fc)}};o.prototype.FG=function(){return this.k2()&&this.Dc+this.Ce<this.La};o.prototype.scrollLeft=function(){if(this.EG()){for(var a=
Math.max(0,this.Dc-this.Ce),b=Math.max(0,this.Dc-this.Ce*0.5),d=a,c=this.Oa().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var e=f.ca,f=e+f.Ba();e<this.Dc&&f>=a+this.Ce&&f<b+this.Ce&&f>d+this.Ce&&(d=f-this.Ce)}this.iD(d,this.fc)}};o.prototype.EG=function(){return this.k2()&&this.Dc>0};o.prototype.iD=function(a,b){this.Th=this.Dc!=a;this.Uh=this.fc!=b;this.Wm();this.Er=new l("cubic_in_out",[new q("hScrollPosition",this.Dc,a),new q("vScrollPosition",this.fc,b)],500);j.Ma(this.fP,this)};
o.prototype.l2=function(){return this.Zm&&this.ce<this.Xa};o.prototype.k2=function(){return this.Oq&&this.Ce<this.La};o.prototype.ya=function(){this.Rj(o.kb)};o.prototype.uia=function(){this.HS=p;this.Wm()};o.prototype.tia=function(){this.HS=z;this.Wm()};o.prototype.vla=function(){this.Th=p};o.prototype.Ksa=function(){this.Uh=p};o.prototype.qia=function(a){if(this.Th||this.Uh){this.Ua().bind(e.Lc,this.L2,this);this.Ua().bind(e.cc,this.M2,this);this.uq=a.pageX;this.vq=a.pageY;this.Wm()}else this.O2(a)};
o.prototype.L2=function(a){if(this.Th){var b=(a.pageX-this.uq)*this.La/this.Uj().$c();this.Dc=this.Dc+b}else if(this.Uh){b=(a.pageY-this.vq)*this.Xa/this.Vj().Nd();this.fc=this.fc+b}this.uq=a.pageX;this.vq=a.pageY;this.jp()};o.prototype.M2=function(){this.Ua().unbind(e.Lc,this.L2,this);this.Ua().unbind(e.cc,this.M2,this);this.Uh=this.Th=z;this.Wm()};o.prototype.n2=function(a){return this.Zm&&(a>0&&this.fc>0||a<0&&this.fc<this.Xa-this.ce)?p:z};o.prototype.sia=function(a){if(this.Zm){this.fc=this.fc-
a.op*this.ce*0.1;this.jp()}};o.prototype.O2=function(a){if(this.Oq||this.Zm){this.Ua().bind(e.Lc,this.P2,this);this.Ua().bind(e.cc,this.Q2,this);this.BS=p;this.uq=a.pageX;this.vq=a.pageY;this.Wm();this.Nla()}};o.prototype.P2=function(a){var b=a.pageX-this.uq,d=a.pageY-this.vq;if(!this.Th&&!this.Uh&&b*b+d*d>25){this.Th=this.Oq;this.Uh=this.Zm;this.Wm()}if(this.Th||this.Uh){this.Dc=this.Dc-b;this.fc=this.fc-d;this.uq=a.pageX;this.vq=a.pageY;this.jp();this.$ra()}};o.prototype.Q2=function(){this.Ua().unbind(e.Lc,
this.P2,this);this.Ua().unbind(e.cc,this.Q2,this);this.BS=z;this.Wm();var a=Math.max(Math.abs(this.dQ/0.001),Math.abs(this.eQ/0.001));this.Er=new l("linear",[new q("hScrollPosition",this.Dc,this.Dc-0.5*this.dQ*a),new q("vScrollPosition",this.fc,this.fc-0.5*this.eQ*a)],a);j.Ma(this.fP,this)};o.prototype.Nla=function(){this.bQ=this.uq;this.cQ=this.vq};o.prototype.$ra=function(){var a=(new Date).getTime(),b=a-this.N2;if(b>10){this.N2=a;this.dQ=(this.uq-this.bQ)/b;this.eQ=(this.vq-this.cQ)/b;this.bQ=
this.uq;this.cQ=this.vq}};o.prototype.fP=function(a){if(this.Er&&!this.Er.Je()&&(this.Th||this.Uh)){this.Er.cb(a);if(this.Th){this.Dc=this.Er.wb("hScrollPosition");if(this.Dc<0||this.Dc>this.La-this.Ce)this.Th=z}if(this.Uh){this.fc=this.Er.wb("vScrollPosition");if(this.fc<0||this.fc>this.Xa-this.ce)this.Uh=z}this.jp();j.Ma(this.fP,this)}else{this.Uh=this.Th=z;this.Er=r;this.Wm()}};o.prototype.jp=function(){this.Dc=this.Oq?Math.max(0,Math.min(this.La-this.Ce,this.Dc)):0;this.fc=this.Zm?Math.max(0,
Math.min(this.Xa-this.ce,this.fc)):0;this.Uj().Fa(this.Dc);this.Vj().Fa(this.fc);this.Pa().uxa(this.Dc);this.Pa().qya(this.fc);this.xh();if(this.Y7!=this.Dc||this.Z7!=this.fc){this.Y7!==m&&this.Z7!==m&&this.trigger(new d(e.mm));this.Y7=this.Dc;this.Z7=this.fc}};o.prototype.Wm=function(){var a;a=this.get("scrollBarVisible")==g.ALWAYS?p:this.Yj?this.Th||this.Uh||this.BS:this.Th||this.Uh||this.HS;this.Uj().Ze(this.Oq&&a);this.Vj().Ze(this.Zm&&a);this.xh()};o.prototype.Ia=function(){k.prototype.Ia.call(this);
if(!this.ria){this.ria=p;if(this.Yj)this.bind(e.xb,this.O2,this);else{this.bind(e.xb,this.qia,this);this.bind(e.tc,this.uia,this);this.bind(e.Ib,this.tia,this);this.bind(e.Yp,this.sia,this)}}};o.prototype.ga=function(){if(this.n("overflow")){this.fJ=this.k("overflow");this.p("overflow");this.Jc()}if(this.n("scrollBarColor")){this.Uj().rz(this.k("scrollBarColor"));this.Vj().rz(this.k("scrollBarColor"));this.p("scrollBarColor")}if(this.n("scrollBarWidth")){this.Uj().mF(this.k("scrollBarWidth"));this.Vj().mF(this.k("scrollBarWidth"));
this.p("scrollBarWidth")}if(this.n("scrollBarMargin")||this.n("scrollBarVerticalMargin")||this.n("scrollBarHorizontalMargin")){var a=this.k("scrollBarHorizontalMargin","scrollBarMargin"),b=this.k("scrollBarVerticalMargin","scrollBarMargin");this.Uj().Kda(a);this.Uj().Wda(b);this.Vj().Kda(a);this.Vj().Wda(b);this.p("scrollBarMargin");this.p("scrollBarVerticalMargin");this.p("scrollBarHorizontalMargin")}if(this.n("scrollBarOpacity")){this.Uj().yj(this.k("scrollBarOpacity"));this.Vj().yj(this.k("scrollBarOpacity"));
this.p("scrollBarOpacity")}k.prototype.ga.call(this)};o.prototype.ui=function(){k.prototype.ui.call(this);this.bsa();this.osa();this.msa();this.Wm();this.xh()};o.prototype.bsa=function(){for(var a=0,b=0,d=0,f=0,c=this.Oa(),e=0;e<c.length;e++){var i=c[e];if(i.get("visible")){f=Math.min(f,i.ca);d=Math.min(d,i.da);a=Math.max(a,i.ca+i.Ba());b=Math.max(b,i.da+i.gb())}}this.T2=f;this.U2=d;this.La=a;this.Xa=b};o.prototype.osa=function(){if(this.fJ==f.Ts){this.Ce=this.La;this.ce=this.Xa}else{this.Ce=Math.min(this.Gd(),
this.La);this.ce=Math.min(this.Fd(),this.Xa)}};o.prototype.msa=function(){var a=this.T2<0||this.U2<0||this.La>this.Ce||this.Xa>this.ce;if(this.fJ==f.mm){this.Oq=this.Ce<this.La;var b=(this.Zm=this.ce<this.Xa)&&this.Oq;this.Uj().setSize(this.Ce,this.La);this.Uj().Dda(b);this.Vj().setSize(this.ce,this.Xa);this.Vj().Dda(b);this.Pa().tz(!a)}else{this.Zm=this.Oq=z;this.fJ==f.Ts?this.Pa().tz(p):this.Pa().tz(!a)}this.jp()};o.prototype.Le=function(){this.Vj().Le();this.Uj().Le();k.prototype.Le.call(this)};
return o});define("N",[],function(){return{df:"vertical",we:"horizontal"}});define("dH",["require"],function(){return{Zr: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("gM","require,jquery.mod,dm,fd,jP,N,d,fb,dH".split(","),function(a){function b(a){var b=a.jj.width(),d=a.jj.height();a.get("fontStyle")=="italic"&&(b=b+d*1/5);return Math.round(b)}var c=a("jquery.mod"),e=a("dm"),d=a("fd"),f=a("jP"),g=a("N"),k=a("d");a("fb");var i=a("dH"),a=d.extend(k,function(){k.call(this);this.Xc("Label");this.jj=this.dD=r});a.kb={};a.prototype.ya=function(){k.prototype.ya.call(this);this.f("fontFamily");this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");
this.f("horizontalAlign",f.oa);this.f("verticalAlign",f.rc);this.f("direction",g.we);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.Ia=function(){k.prototype.Ia.call(this);if(!this.jj){this.dD=document.createElement("span");this.jj=c(this.dD);this.yV({position:"absolute","text-align":"center",cursor:"inherit","white-space":"nowrap",
transform:"translate3d(0, 0, 0)"});var a=this.Pa();a.tz(z);a.append(this.jj)}};a.prototype.Go=function(){k.prototype.Go.call(this);var a=this.Pa();this.Sh=b(this)+a.Uy()+a.Wy();this.Rh=this.jj.height()+a.Xy()+a.Qy();n(this)};a.prototype.ga=function(){var a,b={};if(this.n("direction")||this.n("text")){switch(this.k("direction")){case g.df:b["line-height"]="100%";this.jj.html(this.jj.text(this.k("text")).text().split("").join("<br/>"));break;default:b["line-height"]="normal";this.jj.text(this.k("text"));
this.jj.html(this.jj.html().split(" ").join("&nbsp;"))}this.p("direction");this.p("text");setTimeout(function(){this.Va();this.Jc()}.bind(this),0)}if(this.n("fontFamily")){a=this.k("fontFamily");e(a).isString()||(a="");b.fontFamily=i.Zr(a);this.p("fontFamily");this.Va();this.Jc()}if(this.n("fontSize")){a=this.k("fontSize");e(a).isNumber()?a=a+"px":e(a).isString()||(a="");b.fontSize=a;this.p("fontSize");this.Va();this.Jc()}if(this.n("fontColor")){a=this.k("fontColor");e(a).isString()||(a="");b.color=
a;this.p("fontColor")}if(this.n("fontWeight")){a=this.k("fontWeight");switch(a){case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":case "normal":break;default:a="normal"}b.fontWeight=a;this.p("fontWeight");this.Va();this.Jc()}if(this.n("fontStyle")){a=this.k("fontStyle");switch(a){case "italic":case "normal":break;default:a="normal"}b.fontStyle=a;this.p("fontStyle");this.Va();this.Jc()}if(this.n("textDecoration")){a=
this.k("textDecoration");switch(a){case "underline":case "overline":case "line-through":case "none":break;default:a="none"}b.textDecoration=a;this.p("textDecoration");this.Va();this.Jc()}if(this.n("horizontalAlign")){this.Jc();this.p("horizontalAlign")}if(this.n("verticalAlign")){this.Jc();this.p("verticalAlign")}a=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(e(a).any(function(a){return this.n(a)},this)){var d={};e(a).each(function(a){d[a]=
this.k(a);this.p(a)},this);b["-moz-text-shadow"]=b["-webkit-text-shadow"]=b["text-shadow"]=[d.textShadowHorizontalLength+"px",d.textShadowVerticalLength+"px",d.textShadowBlurRadius+"px","rgba("+parseInt("0x"+d.textShadowColor.substr(1,2))+", "+parseInt("0x"+d.textShadowColor.substr(3,2))+", "+parseInt("0x"+d.textShadowColor.substr(5,2))+", "+d.textShadowOpacity+")"].join(" ");a=d.textShadowVerticalLength==0&&this.k("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(d.textShadowHorizontalLength,
-d.textShadowVerticalLength)/Math.PI)*45;b.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*d.textShadowOpacity).toString(16)).slice(-2)+d.textShadowColor.substr(1,6)+",direction="+a+")";this.Pa().tz((d.textShadowHorizontalLength>0||d.textShadowVerticalLength>0||d.textShadowBlurRadius>0)&&d.textShadowOpacity>0)}this.yV(b);k.prototype.ga.call(this)};a.prototype.ui=function(){var a={left:"auto",right:"auto",top:"auto",bottom:"auto"};switch(this.k("horizontalAlign")){case f.oa:a.left=
"0";break;case f.Ka:this.Le();a.left=this.Gd()-b(this)+"px";break;case f.Kc:this.Le();a.left=Math.max(0,Math.round((this.Gd()-b(this))*0.5))+"px"}switch(this.k("verticalAlign")){case f.jb:a.top="0";break;case f.ib:this.Le();a.top=this.Fd()-this.dD.clientHeight+"px";break;case f.rc:this.Le();a.top=Math.max(0,Math.round((this.Fd()-this.dD.clientHeight)*0.5))+"px"}this.yV(a)};a.prototype.yV=function(a){var b=this.dD.style,d;for(d in a)b[d]=a[d]};var n=function(){function a(){!e&&d()&&(e=setTimeout(function(){e=
r;var d=(new Date).getTime()-5E3,f;for(f in c){var i=c[f];i.timestamp<d&&delete c[f];var g=i.label;if(i.width!=b(g)||i.height!=g.jj.height()){g.Va();g.Jc()}}a()},500))}function d(){for(var a in c)return p;return z}var f=1,c={},e=r;return function(d){d.S5||(d.S5=f++);c[d.S5]={label:d,timestamp:(new Date).getTime(),width:b(d),height:d.jj.height()};a()}}();return a});
define("iS","require,fd,dm,cj,R,lc,bY,fC,dk,fS,fj,kJ,gM".split(","),function(a){var b=a("fd"),c=a("dm"),e=a("cj"),d=a("R"),f=a("lc"),g=a("bY"),k=a("fC"),i=a("dk"),n=a("fS"),j=a("fj"),l=a("kJ"),q=a("gM"),o=b.extend(l,function(){this.Xc("Button");l.call(this);this.Gf=this.qa=r;this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p);this.set("creationPolicy",e.Ps);this.set("overflow",n.A_);this.set("autoRolledOver",p);this.set("autoPressed",p);this.set("cursor",d.he)});o.prototype.ya=function(){l.prototype.ya.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",i.Tc);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",j.v,"opacity");this.h("rollOverIconWidth",j.v,"iconWidth");this.h("rollOverIconHeight",j.v,"iconHeight");this.h("rollOverFontSize",j.v,"fontSize");this.h("rollOverFontColor",j.v,"fontColor");this.h("rollOverFontWeight",j.v,"fontWeight");this.h("rollOverFontStyle",j.v,"fontStyle");this.h("rollOverTextDecoration",j.v,"textDecoration");this.h("rollOverTextShadowBlurRadius",j.v,"textShadowBlurRadius");this.h("rollOverTextShadowColor",
j.v,"textShadowColor");this.h("rollOverTextShadowHorizontalLength",j.v,"textShadowHorizontalLength");this.h("rollOverTextShadowOpacity",j.v,"textShadowOpacity");this.h("rollOverTextShadowVerticalLength",j.v,"textShadowVerticalLength");this.h("rollOverBorderSize",j.v,"borderSize");this.h("rollOverBorderLeftSize",j.v,"borderLeftSize");this.h("rollOverBorderTopSize",j.v,"borderTopSize");this.h("rollOverBorderRightSize",j.v,"borderRightSize");this.h("rollOverBorderBottomSize",j.v,"borderBottomSize");
this.h("rollOverBorderColor",j.v,"borderColor");this.h("rollOverBorderLeftColor",j.v,"borderLeftColor");this.h("rollOverBorderTopColor",j.v,"borderTopColor");this.h("rollOverBorderRightColor",j.v,"borderRightColor");this.h("rollOverBorderBottomColor",j.v,"borderBottomColor");this.h("rollOverShadow",j.v,"shadow");this.h("rollOverShadowHorizontalLength",j.v,"shadowHorizontalLength");this.h("rollOverShadowVerticalLength",j.v,"shadowVerticalLength");this.h("rollOverShadowBlurRadius",j.v,"shadowBlurRadius");
this.h("rollOverShadowSpread",j.v,"shadowSpread");this.h("rollOverShadowOpacity",j.v,"shadowOpacity");this.h("rollOverShadowColor",j.v,"shadowColor");this.h("rollOverBackgroundOpacity",j.v,"backgroundOpacity");this.h("rollOverBackgroundColor",j.v,"backgroundColor");this.h("rollOverBackgroundColorRatios",j.v,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",j.v,"backgroundColorDirection");this.h("pressedLabel",j.za,"label");this.h("pressedOpacity",j.za,"opacity");this.h("pressedIconWidth",
j.za,"iconWidth");this.h("pressedIconHeight",j.za,"iconHeight");this.h("pressedFontSize",j.za,"fontSize");this.h("pressedFontColor",j.za,"fontColor");this.h("pressedFontWeight",j.za,"fontWeight");this.h("pressedFontStyle",j.za,"fontStyle");this.h("pressedTextDecoration",j.za,"textDecoration");this.h("pressedTextShadowBlurRadius",j.za,"textShadowBlurRadius");this.h("pressedTextShadowColor",j.za,"textShadowColor");this.h("pressedTextShadowHorizontalLength",j.za,"textShadowHorizontalLength");this.h("pressedTextShadowOpacity",
j.za,"textShadowOpacity");this.h("pressedTextShadowVerticalLength",j.za,"textShadowVerticalLength");this.h("pressedBorderSize",j.za,"borderSize");this.h("pressedBorderLeftSize",j.za,"borderLeftSize");this.h("pressedBorderTopSize",j.za,"borderTopSize");this.h("pressedBorderRightSize",j.za,"borderRightSize");this.h("pressedBorderBottomSize",j.za,"borderBottomSize");this.h("pressedBorderColor",j.za,"borderColor");this.h("pressedBorderLeftColor",j.za,"borderLeftColor");this.h("pressedBorderTopColor",
j.za,"borderTopColor");this.h("pressedBorderRightColor",j.za,"borderRightColor");this.h("pressedBorderBottomColor",j.za,"borderBottomColor");this.h("pressedShadow",j.za,"shadow");this.h("pressedShadowHorizontalLength",j.za,"shadowHorizontalLength");this.h("pressedShadowVerticalLength",j.za,"shadowVerticalLength");this.h("pressedShadowBlurRadius",j.za,"shadowBlurRadius");this.h("pressedShadowSpread",j.za,"shadowSpread");this.h("pressedShadowOpacity",j.za,"shadowOpacity");this.h("pressedShadowColor",
j.za,"shadowColor");this.h("pressedBackgroundOpacity",j.za,"backgroundOpacity");this.h("pressedBackgroundColor",j.za,"backgroundColor");this.h("pressedBackgroundColorRatios",j.za,"backgroundColorRatios");this.h("pressedBackgroundColorDirection",j.za,"backgroundColorDirection");this.h("pressedLabel",j.Za,"label");this.h("pressedRollOverOpacity",j.Za,"opacity");this.h("pressedRollOverIconWidth",j.Za,"iconWidth");this.h("pressedRollOverIconHeight",j.Za,"iconHeight");this.h("pressedRollOverFontSize",
j.Za,"fontSize");this.h("pressedRollOverFontColor",j.Za,"fontColor");this.h("pressedRollOverFontWeight",j.Za,"fontWeight");this.h("pressedRollOverFontStyle",j.Za,"fontStyle");this.h("pressedRollOverTextDecoration",j.Za,"textDecoration");this.h("pressedRollOverTextShadowBlurRadius",j.Za,"textShadowBlurRadius");this.h("pressedRollOverTextShadowColor",j.Za,"textShadowColor");this.h("pressedRollOverTextShadowHorizontalLength",j.Za,"textShadowHorizontalLength");this.h("pressedRollOverTextShadowOpacity",
j.Za,"textShadowOpacity");this.h("pressedRollOverTextShadowVerticalLength",j.Za,"textShadowVerticalLength");this.h("pressedRollOverBorderSize",j.Za,"borderSize");this.h("pressedRollOverBorderLeftSize",j.Za,"borderLeftSize");this.h("pressedRollOverBorderTopSize",j.Za,"borderTopSize");this.h("pressedRollOverBorderRightSize",j.Za,"borderRightSize");this.h("pressedRollOverBorderBottomSize",j.Za,"borderBottomSize");this.h("pressedRollOverBorderColor",j.Za,"borderColor");this.h("pressedRollOverBorderLeftColor",
j.Za,"borderLeftColor");this.h("pressedRollOverBorderTopColor",j.Za,"borderTopColor");this.h("pressedRollOverBorderRightColor",j.Za,"borderRightColor");this.h("pressedRollOverBorderBottomColor",j.Za,"borderBottomColor");this.h("pressedRollOverShadow",j.Za,"shadow");this.h("pressedRollOverShadowHorizontalLength",j.Za,"shadowHorizontalLength");this.h("pressedRollOverShadowVerticalLength",j.Za,"shadowVerticalLength");this.h("pressedRollOverShadowBlurRadius",j.Za,"shadowBlurRadius");this.h("pressedRollOverShadowSpread",
j.Za,"shadowSpread");this.h("pressedRollOverShadowOpacity",j.Za,"shadowOpacity");this.h("pressedRollOverShadowColor",j.Za,"shadowColor");this.h("pressedRollOverBackgroundOpacity",j.Za,"backgroundOpacity");this.h("pressedRollOverBackgroundColor",j.Za,"backgroundColor");this.h("pressedRollOverBackgroundColorRatios",j.Za,"backgroundColorRatios");this.h("pressedRollOverBackgroundColorDirection",j.Za,"backgroundColorDirection")};o.prototype.nQ=C();o.prototype.Ia=function(){l.prototype.Ia.call(this);if(!this.Gf){this.Gf=
this.nQ();this.ma(this.Gf)}if(!this.qa){this.qa=new q;this.ma(this.qa)}};o.prototype.oA=function(){if(this.get("pressed")){this.set("pressed",z);this.trigger(new g(f.Dh))}else{this.set("pressed",p);this.trigger(new g(f.rg))}};o.prototype.ga=function(){var a=z;if(this.n("mode")){if(this.k("mode")==i.Tc){this.unbind(f.T,this.oA,this,p);this.set("autoPressed",p)}else{this.bind(f.T,this.oA,this,p);this.set("autoPressed",z)}this.p("mode");a=p}if(a||this.n("pressed"))this.k("mode")==i.Eh?this.gy(this.k("pressed")==
p):a&&this.gy(z);if(this.n("label")){a=this.k("label");this.qa.set("text",a);this.qa.set("visible",a?p:z);this.p("label")}this.fb(o.a1,o.b1,[this.qa],p,p);if(this.n("iconBeforeLabel")){this.k("iconBeforeLabel")==z?this.wj(this.qa,0):this.wj(this.Gf,0);this.p("iconBeforeLabel")}if(this.n("iconWidth")){this.Gf.set("width",this.k("iconWidth"));this.p("iconWidth")}if(this.n("iconHeight")){this.Gf.set("height",this.k("iconHeight"));this.p("iconHeight")}if(this.n("buttonGroup")){(a=this.k("buttonGroup"))?
k.register(this,a):k.uF(this);this.p("buttonGroup")}this.fb(["horizontalAlign","verticalAlign"],{},[this.Gf],p,z);l.prototype.ga.call(this)};o.a1=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];o.b1={};c(o.a1).each(function(a){o.b1[a]=a});return o});
define("hl",["require","fd","iS","dT","lc"],function(a){var b=a("fd"),c=a("iS"),e=a("dT"),a=a("lc"),b=b.extend(c,function(){c.call(this)});e.A("BaseButton",b).B("UIComponent").L({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]"}).Mp(["fontSize","rollOverFontSize","pressedFontSize","pressedRollOverFontSize"]).Vb([a.rg,a.Dh]).Wf([a.T]);return b});
define("je",[],function(){return{NONE:"none",Ln:"fill",Me:"fit_inside",km:"fit_outside",Qk:"fit_to_width",Wg:"fit_to_height",Fea:"custom"}});
define("jw","require,dm,jquery.mod,fd,lc,gb,r,jP,je,d,fb,hW".split(","),function(a){function b(a){this.HP=a;this.fd=[];this.Hh=r}var c=a("dm"),e=a("jquery.mod"),d=a("fd"),f=a("lc"),g=a("gb"),k=a("r"),i=a("jP"),n=a("je"),j=a("d"),l=a("fb"),q=a("hW");b.Xi=document.createElement("a");b.prototype.oia=function(a){b.Xi.href=a;return b.Xi.href};b.prototype.load=function(a,b,d){a=this.oia(a);if(this.Hh&&!this.Hh.yp()){this.Hh.cancel();this.fd=c(this.fd).without(this.Hh)}if(this.Hh=c(this.fd).find(function(b){return b.sj()==
a}))this.fd=c(this.fd).without(this.Hh);else{this.Hh=new q(g.r0);this.Hh.load(a)}for(this.fd.splice(0,0,this.Hh);this.fd.length>this.HP;)this.fd.pop().cancel();if(b){var e=this.Hh,i=function(){b.call(d||window,e.qe(),e.$c(),e.Nd())};this.Hh.yp()?i():this.Hh.bind(f.S,i)}};b.prototype.clear=function(){this.fd.forEach(function(a){a.cancel()});this.Hh=r};a=d.extend(j,function(a){j.call(this);this.Xc("Image");this.HP=a||1;this.NW=z;this.Nh=i.oa;this.NH=z;this.ii=i.jb;this.gL=z;this.Dd=n.NONE;this.UU=z;
this.Fx=this.Gx=0;this.rS=this.NT=z;this.Xa=this.La=0;this.bo=z;this.aT=this.Oh=this.tb=this.UH=this.TH=r;this.bind(f.yb,this.Lla,this);this.bind(f.nd,this.Mla,this)});a.prototype.KR=function(){this.aT=new b(this.HP);this.KR=R("aT");return this.aT};a.prototype.ya=function(){j.prototype.ya.call(this);this.f("horizontalAlign",i.oa);this.f("verticalAlign",i.jb);this.f("scaleMode",n.NONE)};a.prototype.set=function(a,b){if(a=="url"&&this.get("url")!=b){this.NW=p;this.Bc()}j.prototype.set.call(this,a,b)};
a.prototype.sz=function(a){if(this.Nh!=a){this.Nh=a;this.NH=p;this.Bc()}};a.prototype.xz=function(a){if(this.ii!=a){this.ii=a;this.gL=p;this.Bc()}};a.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.UU=p;this.Bc();this.Va()}};a.prototype.Lla=function(){this.bo=p;this.Bc()};a.prototype.Mla=function(){this.caa()};var o={position:"static",cursor:"inherit",display:"inline",verticalAlign:"top",visibility:"hidden","pointer-events":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"none",
"-webkit-user-select":"none","touch-callout":"none","-webkit-touch-callout":"none"};k.browser()==k.wi&&k.Wa()&&(o.transform="translate3d(0,0,0)");a.prototype.L1=function(a,b,d){this.Gx=b?b:0;this.Fx=d?d:0;if(this.tb){this.tb.remove();this.tb=r}if(this.Oh=a){this.tb=e(this.Oh);l.css(this.Oh,o);this.TH.append(this.tb)}this.NT=this.rS=p;this.Bc();this.Va();this.tb&&this.trigger(f.S)};a.prototype.Ia=function(){j.prototype.Ia.call(this);if(!this.TH){this.UH=document.createElement("div");this.TH=e(this.UH);
l.css(this.UH,{position:"static",overflow:"hidden",cursor:"inherit"});this.Pa().append(this.TH)}};a.prototype.Go=function(){this.Sh=this.Gx+this.ni()+this.pn();this.Rh=this.Fx+this.qn()+this.Sy();this.K5=this.Gx==0&&this.Fx==0?0:this.Gx/this.Fx;this.GB=this.HB=0};a.prototype.ga=function(){if(this.n("scaleMode")){this.rs(this.k("scaleMode"));this.p("scaleMode")}if(this.n("horizontalAlign")){this.sz(this.k("horizontalAlign"));this.p("horizontalAlign")}if(this.n("verticalAlign")){this.xz(this.k("verticalAlign"));
this.p("verticalAlign")}if(this.H1())this.bo=p;j.prototype.ga.call(this);this.caa();if(this.eva()){var a=z;if(this.UU||this.NT||this.bo){var b=this.Gd(),d=this.Fd(),f=this.Gx,c=this.Fx,e,g;if(f==0||c==0)g=e=0;else switch(this.Dd){case n.NONE:e=f;g=c;break;case n.Ln:e=b;g=d;break;case n.Me:if(f*d>c*b){e=b;g=c*b/f}else{e=f*d/c;g=d}break;case n.km:if(f*d>c*b){e=f*d/c;g=d}else{e=b;g=c*b/f}break;case n.Qk:e=b;g=c*b/f;break;case n.Wg:e=f*d/c;g=d}if(this.La!=e||this.Xa!=g){this.La=e;this.Xa=g;a=p}this.NT=
this.UU=z}if(a||this.bo||this.rS){this.gL=this.NH=p;this.Oh&&l.css(this.Oh,{width:this.La+"px",height:this.Xa+"px",visibility:"inherit"});l.css(this.UH,{width:this.Gd()+"px",height:this.Fd()+"px","border-top-left-radius":this.JH(this.oka(),this.e4(),this.c4())+"px","border-top-right-radius":this.JH(this.pka(),this.e4(),this.d4())+"px","border-bottom-left-radius":this.JH(this.mka(),this.b4(),this.c4())+"px","border-bottom-right-radius":this.JH(this.nka(),this.b4(),this.d4())+"px"});this.Va();this.rS=
this.bo=z}if(this.NH&&this.Oh){switch(this.Nh){case i.oa:l.css(this.Oh,{"margin-left":0,"margin-right":this.Gd()-this.La+"px"});break;case i.Ka:l.css(this.Oh,{"margin-left":this.Gd()-this.La+"px","margin-right":0});break;case i.Kc:l.css(this.Oh,{"margin-left":Math.floor((this.Gd()-this.La)*0.5)+"px","margin-right":Math.ceil((this.Gd()-this.La)*0.5)+"px"})}this.NH=z}if(this.gL&&this.Oh){switch(this.ii){case i.jb:l.css(this.Oh,{"margin-top":0,"margin-bottom":this.Fd()-this.Xa+"px"});break;case i.ib:l.css(this.Oh,
{"margin-top":this.Fd()-this.Xa+"px","margin-bottom":0});break;case i.rc:l.css(this.Oh,{"margin-top":Math.floor((this.Fd()-this.Xa)*0.5)+"px","margin-bottom":Math.ceil((this.Fd()-this.Xa)*0.5)+"px"})}this.gL=z}}};a.prototype.caa=function(){if(this.NW){var a=this.get("url");if(a)this.KR().load(a,this.L1,this);else{this.KR().clear();this.L1(r,0,0)}this.NW=z}};a.prototype.JH=function(a,b,d){if(!a)return 0;var f=0;b&&(f=Math.max(f,b));d&&(f=Math.max(f,d));return Math.max(0,a-f)};return a});
define("ew",["fd","je","fj","iS","jw"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.ya=function(){e.prototype.ya.call(this);this.f("iconURL");this.h("rollOverIconURL",c.v,"iconURL");this.h("pressedIconURL",c.za,"iconURL");this.h("pressedRollOverIconURL",c.Za,"iconURL")};a.prototype.nQ=function(){var a=new d(3);a.set("scaleMode",b.Me);return a};a.prototype.ga=function(){if(this.n("iconURL")){var a=this.k("iconURL");this.Gf.set("url",a);this.Gf.set("visible",a?p:z);this.p("iconURL")}e.prototype.ga.call(this)};
return a});define("ev",["fd","ew","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Button",a).B("BaseButton").L({iconURL:"string",rollOverIconURL:"string",pressedIconURL:"string",pressedRollOverIconURL:"string"}).Ah(["iconURL","rollOverIconURL","pressedIconURL","pressedRollOverIconURL"]);return a});
define("gh",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("angle",0);this.set("rotate",z);this.set("inertia",z)});a.A("CapPanoramaOverlay",b).B("PanoramaOverlay").L({angle:"number",distance:"number",hfov:"number",image:"ImageResource",inertia:"bool",rotate:"bool",useHandCursor:"bool"}).Vb([e.tc,e.Ib,e.Ch,e.zf]).Wf([e.T]);return b});
define("fY",["fd","dT","gh"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("CeilingCapPanoramaOverlay",a).B("CapPanoramaOverlay");return a});
define("bX","dm,jquery.mod,fd,lc,bY,d".split(","),function(a,b,c,e,d,f){a=c.extend(f,function(){f.call(this);this.Xc("Canvas");this.ZQ=p;this.u=r;this.bind(e.yb,this.Nha,this)});a.prototype.Nha=function(){this.lM()};a.prototype.lM=function(){this.ZQ=p;this.xh()};a.prototype.Ia=function(){f.prototype.Ia.call(this);if(!this.u){this.u=b("<canvas/>");this.u.css({position:"absolute",left:0,top:0,cursor:"inherit"});this.Pa().append(this.u)}};a.prototype.ga=function(){this.H1()&&this.lM();f.prototype.ga.call(this)};
a.prototype.Le=function(){if(this.ZQ){this.ZQ=z;var a=this.u.get(0);a.width=this.Gd();a.height=this.Fd();this.Tya()}f.prototype.Le.call(this)};a.prototype.wua=function(){return this.u.get(0).width};a.prototype.vua=function(){return this.u.get(0).height};a.prototype.uua=function(){return this.u.get(0).getContext("2d")};a.prototype.Tya=function(){this.trigger(new d(e.aa))};return a});
define("hC",["fd","lc","fj","iS","bX"],function(a,b,c,e,d){a=a.extend(e,function(){e.call(this)});a.prototype.ui=function(){e.prototype.ui.call(this)};a.prototype.ya=function(){e.prototype.ya.call(this);this.f("iconColor");this.h("rollOverIconColor",c.v,"iconColor");this.h("pressedIconColor",c.za,"iconColor");this.h("pressedRollOverIconColor",c.Za,"iconColor")};a.prototype.nQ=function(){var a=new d;a.bind(b.aa,this.oea,this,p);return a};a.prototype.ga=function(){this.n("iconColor")&&(this.Gf.lM(),
this.p("iconColor"));e.prototype.ga.call(this)};a.prototype.Fka=function(){return this.k("iconColor")};a.prototype.Gka=function(){return this.Gf.uua()};a.prototype.Ika=function(){return this.Gf.wua()};a.prototype.Hka=function(){return this.Gf.vua()};a.prototype.oea=C();return a});
define("eC",["fd","hC","jP","fj"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.N({horizontalAlign:c.Kc,verticalAlign:c.rc})});a.prototype.ya=function(){b.prototype.ya.call(this);this.f("iconLineWidth");this.h("rollOverIconLineWidth",e.v,"iconLineWidth");this.h("pressedIconLineWidth",e.za,"iconLineWidth");this.h("pressedRollOverIconLineWidth",e.Za,"iconLineWidth")};a.prototype.Pka=function(){return this.k("iconLineWidth")};a.prototype.ga=function(){this.n("iconLineWidth")&&(this.Gf.lM(),
this.p("iconLineWidth"));b.prototype.ga.call(this)};a.prototype.oea=function(){var a=this.Gka(),b=this.Fka(),c=this.Ika(),e=this.Hka(),i=this.Pka();a.clearRect(0,0,c,e);a.lineWidth=i||1;a.strokeStyle=b||"#000000";a.beginPath();a.moveTo(0,0);a.lineTo(c,e);a.moveTo(0,e);a.lineTo(c,0);a.closePath();a.stroke()};return a});
define("gY",["fd","eC","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("CloseButton",a).B("BaseButton").L({iconColor:"color",iconLineWidth:"number",rollOverIconColor:"color",rollOverIconLineWidth:"number",pressedIconColor:"color",pressedIconLineWidth:"number",pressedRollOverIconColor:"color",pressedRollOverIconLineWidth:"number"});return a});
define("hF",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("CookiesPolicy",b).B("Object").L({url:"string",geographicArea:"or[array[string], string]"}).Ah(["url"]);return b});
define("iT","require,dm,iE,fd,kJ,dT".split(","),function(a){a("dm");var b=a("iE"),c=a("fd"),e=a("kJ"),a=a("dT"),c=c.extend(e,function(){e.call(this)});a.A("Container",c).B("UIComponent").L({children:"array[UIComponent]",contentOpaque:"bool",childrenInteractionEnabled:"bool",creationPolicy:"enum[inAdvance, delayed]",layout:"enum[absolute, vertical, horizontal]",gap:"number",horizontalAlign:"enum[center, left, right]",overflow:"enum[scroll, hidden, visible]",scrollBarColor:"color",scrollBarWidth:"number",
scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",verticalAlign:"enum[bottom, middle, top]"}).Rg({scrollTo:function(a,b){e.prototype.scrollTo.call(this,a,b)},scrollIntoView:function(a){b.Ev(function(){e.prototype.scrollIntoView.call(this,a)}.bind(this))}});return c});
define("iI",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("dT"),a=b.extend(c,function(){c.call(this);this.M=r});e.A("PanoramaFrame",a).B("Object").L({thumbnailUrl:"string",snapshots:"array[PanoramaSnapshot]",overlays:"array[PanoramaOverlay]"}).Ah(["thumbnailUrl"]);a.prototype.get=function(a,b){switch(a){case "overlays":return this.MR();case "hfov":case "vfov":case "pitch":case "flipImageHorizontally":if(this.M)return this.M.get(a,b)}return c.prototype.get.call(this,a,b)};a.prototype.MR=
function(){var a=c.prototype.get.call(this,"overlays");a||(a=[]);return this.wV(a)};a.prototype.wV=function(a){if(this.ly===m||this.lI!=a){var b=function(a){return e.ob("PopupPanoramaOverlay",a)},c=function(a){return e.ob("LensFlarePanoramaOverlay",a)};this.lI=a;this.ly=[].concat(a.filter(function(a){return!(b(a)||c(a))}),a.filter(c),a.filter(b))}return this.ly};a.prototype.lta=P("M");a.prototype.Vy=R("M");a.prototype.yh=S(z);return a});
define("kR",["require","fd","dT","iI"],function(a){var b=a("fd"),c=a("dT"),e=a("iI"),a=b.extend(e,function(){e.call(this)});c.A("CubicPanoramaFrame",a).B("PanoramaFrame").L({cube:"ImageResource",stereoCube:"ImageResource",front:"ImageResource",left:"ImageResource",back:"ImageResource",right:"ImageResource",top:"ImageResource",bottom:"ImageResource"});return a});
define("gq",["require"],function(){return{"ar-ar":{mute:"\u062a\u0639\u0637\u064a\u0644 \u0627\u0644\u0635\u0648\u062a","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0633\u062d\u0628 \u0648\u0627\u0644\u0625\u0641\u0631\u0627\u062c",
accept:"\u0642\u0628\u0648\u0644",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0646\u0642\u0631 \u0648\u0627\u0644\u062a\u062d\u0631\u0643",
yes:"\u0646\u0639\u0645 \u0641\u0639\u0644\u0627","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 \u0645\u0644\u0626 \u0644\u0644\u0634\u0627\u0634\u0629",no:"\u0644\u0627","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.",
"cookies-notice":"\u062a\u0633\u062a\u062e\u062f\u0645 \u0635\u0641\u062d\u0629 \u0627\u0644\u0648\u064a\u0628 \u0647\u0630\u0647 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 \u0644\u062c\u0645\u0639 \u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645. \u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u060c \u064a\u0631\u062c\u0649 \u0632\u064a\u0627\u0631\u0629 <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":"Wenn Sie sich nicht sicher sind, welche Cardboard-Version Sie verwenden, w\u00e4hlen Sie die Standard-Hotspot-Steuerung. Sie schauen dann einfach auf einen Hotspot und warten, bis die jeweilige Aktion ausgel\u00f6st wird.","download-tour":"Tour zum Offline-Abspielen herunterladen","giroscope-disabled-safari-request-permission":["Der Bewegungs- und Orientierungszugriff, sowie VR Modus Ihres Ger\u00e4ts ist f\u00fcr diese Seite deaktiviert.","Um diese Webseite korrekt anzuzeigen, klicken Sie auf Weiter und akzeptieren Sie die Erlaubnisanfrage, wenn Sie dazu aufgefordert werden."],
accept:"Akzeptieren",download:"Download",downloading:"Downloading","dont-display-again":"Diese Info nicht mehr anzeigen","web-server-required":"Diese Virtual Tour kann nicht von einem lokalen Laufwerk abgespielt werden. Laden Sie Ihre Tour ins Internet und versuchen Sie es erneut.\nAlternativ, ziehen Sie die htm Datei (oder den ganzen Tour Ordner) auf das Icon der Tour Viewer App, um die Tour direkt lokal abzuspielen.",cancel:"Abbrechen","change-to-click-and-move":"\u00c4ndern Sie den Steuerungsmodus, um zu klicken und zu drehen",
yes:"ja","delete-downloaded":"L\u00f6schen","use-safari-for-vr":"Wir empfehlen Safari, um diese Tour im VR-Modus zu sehen","exit-fullscreen":"Vollbild verlassen",no:"nein","storage-not-provided-bookmark":"Dauerhafte Speicherung verweigert. Versuchen Sie, diese Seite als Lesezeichen zu speichern und erneut zu laden.","download-failed":"Download fehlgeschlagen","giroscope-disabled-http":"Der Bewegungs- und Ausrichtungsszugriff Ihres Ger\u00e4ts ist f\u00fcr diese Webseite deaktiviert. Greifen Sie bitte \u00fcber https darauf zu.",
"cookies-notice":"Diese Webseite verwendet Cookies, um Nutzungsstatistiken zu sammeln. Weitere Informationen finden Sie in der <a>Cookie-Richtlinie</a>.","use-cardboard":"Cardboard verwenden","launch-default-browser":"Im Standardbrowser starten","rotate-device":"Bitte drehen Sie Ihr Ger\u00e4t","exit-vr":"VR verlassen",reject:"Ablehnen","disable-measure":"Messung beenden","change-to-drag-and-release":"\u00c4ndern Sie den Steuerungsmodus zu Ziehen und Loslassen","cardboard-v2":"Wenn Sie ein Cardboard v2-Headset haben, das mit einer Taste ausgestattet ist, k\u00f6nnen Sie auf einen Hotspot blicken und die Taste dr\u00fccken, um dessen Aktion auszul\u00f6sen.",
"enable-video-audio-prompt":"Video und Audio aktivieren?","storage-not-provided-launch-from-desktop":"Bitte starten Sie die Tour erneut \u00fcber das Desktop-Symbol, um sie herunterzuladen.",downloaded:"Diese Tour ist zum Offline-Abspielen heruntergeladen.","samsung-internet-vr-app-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR anzusehen. Machen Sie dazu Samsung Internet zu Ihrem Standardbrowser.",
"samsung-internet-vr-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR zu sehen. Setzen Sie dazu nun das Mobiltelefon auf das Headset.","enable-video-prompt":"Video aktivieren?","storage-not-provided-launch-from-homescreen":"Bitte starten Sie die Tour erneut \u00fcber das Symbol auf dem Startbildschirm, um sie herunterzuladen.","enter-fullscreen":"Vollbildmodus aktivieren",
"use-cardboard-v2":"Cardboard v2 verwenden",unmute:"Audio aktivieren","enter-vr":"VR Inhalt eingeben","enable-measure":"Messung beginnen","use-cardboard-info":"Sie k\u00f6nnen jedes kompatible Google Cardboard-Headset verwenden, um diese Inhalte in VR zu sehen.","refresh-downloaded":"Aktualisieren","use-default-cardboard":"Standard verwenden","enable-audio-prompt":"Audio aktivieren?"},"el-gr":{mute:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ae\u03c7\u03bf",
"cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03b1\u03c0\u03b5\u03bb\u03b5\u03c5\u03b8\u03b5\u03c1\u03ce\u03c3\u03b5\u03c4\u03b5",
accept:"\u0391\u03c0\u03bf\u03b4\u03ad\u03c7\u03bf\u03bc\u03b1\u03b9",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03bc\u03b5\u03c4\u03b1\u03ba\u03b9\u03bd\u03b7\u03b8\u03b5\u03af\u03c4\u03b5",
yes:"\u039d\u03b1\u03af","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0388\u03be\u03bf\u03b4\u03bf\u03c2 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03c0\u03bb\u03ae\u03c1\u03b7 \u03bf\u03b8\u03cc\u03bd\u03b7",no:"\u03cc\u03c7\u03b9","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.",
"cookies-notice":"\u0391\u03c5\u03c4\u03ae \u03b7 \u03b9\u03c3\u03c4\u03bf\u03c3\u03b5\u03bb\u03af\u03b4\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af cookie \u03b3\u03b9\u03b1 \u03c4\u03b7 \u03c3\u03c5\u03bb\u03bb\u03bf\u03b3\u03ae \u03c3\u03c4\u03b1\u03c4\u03b9\u03c3\u03c4\u03b9\u03ba\u03ce\u03bd \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03c9\u03bd \u03c7\u03c1\u03ae\u03c3\u03b7\u03c2. \u0393\u03b9\u03b1 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b5\u03c2 \u03c0\u03bb\u03b7\u03c1\u03bf\u03c6\u03bf\u03c1\u03af\u03b5\u03c2, \u03b5\u03c0\u03b9\u03c3\u03ba\u03b5\u03c6\u03b8\u03b5\u03af\u03c4\u03b5 \u03c4\u03b7\u03bd <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":"Sulje koko n\u00e4yt\u00f6n n\u00e4kym\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 k\u00e4ytt\u00f6tilastojen ker\u00e4\u00e4miseen. Lis\u00e4tietoja <a>ev\u00e4stek\u00e4yt\u00e4nn\u00f6st\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":"Avaa koko n\u00e4yt\u00f6n n\u00e4kym\u00e4","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":"Otetaanko \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n?"},"fr-fr":{mute:"D\u00e9sactiver l'audio","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.",
"download-tour":"Download Tour for offline playing","giroscope-disabled-safari-request-permission":["L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour ce site.","Pour voir correctement cette page Web, veuillez cliquer sur Continuer et accepter la demande d'autorisation si elle est affich\u00e9e."],accept:"Accepter",download:"Download",downloading:"Downloading","dont-display-again":"Ne plus afficher cette information","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",
cancel:"Cancel","change-to-click-and-move":"Changer le mode de contr\u00f4le pour cliquer et d\u00e9placer",yes:"oui","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Quitter le mode plein \u00e9cran",no:"non","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","download-failed":"Download failed","giroscope-disabled-http":"L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour cette page Web. Veuillez y acc\u00e9der via https.",
"cookies-notice":"Cette page Web utilise des cookies pour collecter des statistiques d'utilisation. Pour plus d'informations, veuillez consulter la <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("lb",["require","fd","gq","jk"],function(a){function b(a){return e[i][a]||e.en[a]||a}var c=a("fd"),e=a("gq"),d=a("jk"),f;for(f in e)e[f.substr(0,2)]=e[f];e.en["giroscope-disabled-safari-toggle-on"]='<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 g=function(){var a=window.navigator,b=["language","browserLanguage","systemLanguage","userLanguage"],c,f,e=[];(c=d.wn("language"))&&e.push(c.toLowerCase());var i=a.languages;if(Array.isArray(i))for(c=0;c<i.length;c++)if((f=i[c])&&f.length)f=f.toLowerCase(),-1==e.indexOf(f)&&e.push(f);for(c=0;c<b.length;c++)if((f=a[b[c]])&&f.length)f=f.toLowerCase(),-1==e.indexOf(f)&&e.push(f);return e}(),k=Object.keys(e),i=function(){for(var a=0;a<g.length;a++){var b=
g[a];if(0<=k.indexOf(b))return b;b=b.substr(0,2);if(0<=k.indexOf(b))return b}return"en"}();b.log=function(){c.log("translation lang: "+i);c.log("browser lang: "+g.join(", "))};return b});
define("ln",["require"],function(){var a={};a.src=a.GAa="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=";return a});
define("dh",["require","ln","r"],function(a){function b(a){var b=document.createElement("video");b.setAttribute("webkit-playsinline","true");b.setAttribute("playsinline","true");b.src=g.src;var d=b.play();if(d){var c=z;d.then(function(){c=p;b.pause();a(z)})["catch"](function(){c||a(p)})}else b.pause(),a(z)}function c(a){var b=z,d=document.createElement("video");d.setAttribute("webkit-playsinline","true");d.setAttribute("playsinline","true");d.src="";(d=d.play())?d["catch"](function(a){b="NotAllowedError"!==
a.name}).then(function(){a(!b)}):a(p)}function e(a){l=a;n=p;d()}function d(){for(;j.length;)j.shift().call(window,l)}function f(){i||(i=p,k.browser()==k.xi&&11<=k.YE()?e(p):k.browser()==k.wf?b(e):c(function(a){a?b(e):e(z)}))}var g=a("ln"),k=a("r"),i=z,n=z,j=[],l;return{test:function(a){!n&&!i&&f();j.push(a);n&&d()}}});
define("bp",["require","lb","iX","dh"],function(a){function b(a,b){this.Zu=a;this.mp=b;this.El=this.El.bind(this);this.Fl=z}function c(){this.El=this.El.bind(this);this.OW=this.OW.bind(this);this.m="not tested";this.t1=[];this.bt=[];this.rJ=z;d.Az(this.OW)}var e=a("lb"),d=a("iX"),f=a("dh");c.prototype.Mya=function(){"not tested"==this.m&&(this.m="testing",f.test(function(a){this.m=a?"requires action":"allowed";this.Sma()}.bind(this)))};c.prototype.Sma=function(){"allowed"==this.m?this.El(p):this.rJ&&
(this.rJ=z,this.bt.forEach(function(a){a.qg()}))};c.prototype.RZ=function(a){"allowed"==this.m?a.call(this,p):this.t1.push(a)};c.prototype.qg=function(a){this.Br(a)};c.prototype.cancel=function(a){this.JP(a)};c.prototype.kX=function(){return"allowed"==this.m};c.prototype.eya=function(){"allowed"==this.m&&(this.m="requires action")};c.prototype.OW=function(){this.pm(p)};c.prototype.Br=function(a){"testing"==this.m||"not tested"==this.m?(this.aP(a),this.rJ=p):"requires action"==this.m&&this.aP(a).qg()};
c.prototype.JP=function(a){"testing"==this.m||"not tested"==this.m?this.rJ=z:"requires action"==this.m&&this.aP(a).cancel()};c.prototype.El=function(a){var b=this.bt;this.bt=[];b.forEach(function(b){a||b.Zu.set("mute",p);b.cancel()});this.pm(a)};c.prototype.pm=function(a){this.m="allowed";this.t1.forEach(function(b){b.call(window,a)})};c.prototype.aP=function(a){for(var d=r,c=0;c<this.bt.length&&!d;c++)this.bt[c].Zu==a&&(d=this.bt[c]);d||(d=new b(a,this.El),this.bt.push(d));return d};b.prototype.qg=
function(){this.Fl||(this.Fl=p,"button"==this.Zu.get("mediaActivationMode")?this.Zu.xy.Rwa(this.El):this.Zu.xx.show(e("enable-audio-prompt"),this.El))};b.prototype.cancel=function(){this.Zu.xy.wta(this.El);this.Zu.xx.hide(this.El)};b.prototype.El=function(a){this.mp(a!==z);this.Fl=z};return new c});
define("fu",["require","lc","bY","eL"],function(a){function b(){var a;a=d?!f:!document[k];g.visible!=a&&(g.visible=a,g.trigger(new e(c.aa)))}var c=a("lc"),e=a("bY"),d=z,f=z,g=new (a("eL"));g.visible=p;for(var k,i,a=["hidden","msHidden","webkitHidden"],n=["visibilitychange","msvisibilitychange","webkitvisibilitychange"],j=0;j<a.length;j++)"undefined"!==typeof document[a[j]]&&(k=a[j],i=n[j]);k===m||"undefined"===typeof document[k]?(k="hidden",document[k]=z,i=function(){document[k]=z;b()},a=function(){document[k]=
p;b()},document.addEventListener?(window.addEventListener("focus",i,p),window.addEventListener("blur",a,p)):(document.attachEvent("onfocusin",i),document.attachEvent("onfocusout",a))):document.addEventListener(i,b,z);g.MM=function(a){(d=a)&&(f=z);b()};g.BZ=function(a){f=a;b()};return g});
define("gd",["require","lc","jv","bp","fu"],function(a){var b=a("lc"),c=a("jv"),e=a("bp"),d=a("fu");if(!c.VZ||"AudioContext"in window===z)return r;var f=new AudioContext;e.RZ(function(){"running"!==f.state&&f.resume()});d.bind(b.aa,function(){d.visible&&"interrupted"==f.state&&f.resume()});return f});
define("dl","require,gd,lc,r,jk,jv,fu".split(","),function(a){function b(a){this.Mf=this.Mf.bind(this);this.Gm=this.Gm.bind(this);this.t=r;this.rd=z;this.Sl=this.AH=1;this.MH=p;this.Hq=this.ww=r;this.t=a;this.t.addEventListener("play",this.Mf,p);this.t.addEventListener("playing",this.Gm,p);this.x9();this.Qu()}var c=a("gd");a("lc");var e=a("r"),d=a("jk"),f=a("jv");a("fu");var g;b.prototype.clear=function(){if(this.t){this.kra();this.t.removeEventListener("play",this.Mf,p);this.t.removeEventListener("playing",
this.Gm,p);this.t=r}};b.prototype.x9=function(){if(f.VZ&&e.browser()==e.wf&&c&&!this.ww&&this.Lq()){if(!g){g=c.createDelay();g.delayTime.value=0.3;g.connect(c.destination)}this.ww=c.createMediaElementSource(this.t);this.Hq=c.createGain();this.ww.connect(this.Hq);this.Hq.connect(g)}};b.prototype.kra=function(){if(this.ww){this.ww.disconnect();this.ww=r}if(this.Hq){this.Hq.disconnect();this.Hq=r}};b.prototype.sxa=function(a){if(this.MH!=a){this.t.log("AudioController","set hasAudio: "+a);this.MH=a;
this.Qu()}};b.prototype.Id=function(a){if(this.rd!=a){this.t.log("AudioController","set muted: "+a);this.rd=a;this.Qu()}};b.prototype.Np=function(a){if(this.Sl!=a){this.t.log("AudioController","set volume: "+a);this.Sl=a;this.Qu()}};b.prototype.aF=function(a){if(this.AH!=a){this.t.log("AudioController","set gain: "+a);this.AH=Math.max(0,Math.min(1,a));this.Qu()}};b.prototype.Mf=function(){this.Qu()};b.prototype.Gm=function(){this.Qu()};b.prototype.Qu=function(){this.t.log("AudioController","updateVolume paused: "+
this.t.paused+" outputVolume: "+(!this.MH||this.rd?0:this.Sl*this.AH));if(!this.t.paused){var a=!this.MH||this.rd?0:this.Sl*this.AH;a>0&&a<1&&this.x9();if(this.Hq){this.Hq.gain.value=a;this.t.volume=1}else this.t.volume=a;this.t.muted=a==0}};b.prototype.Lq=function(){var a=this.t.currentSrc||this.t.children.length&&this.t.children[0].src||"";d.tv(a)&&(a=m);return a};return b});define("fX",["require"],function(){return{Ei:"video",Bea:"audio"}});
define("jX","require,fd,lc,fr,gb,bY,eL,r,jk,gu,fu".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("gb"),f=a("bY"),g=a("eL"),k=a("r"),i=a("jk"),n=a("gu"),j=a("fu"),l=b.extend(g,function(a){g.call(this);this.t=a;this.du=this.du.bind(this);this.Ho=this.Ho.bind(this);this.Vh=this.Vh.bind(this);this.hu=this.hu.bind(this);this.Eg=this.Eg.bind(this);this.Wh=this.Wh.bind(this);this.Mf=this.Mf.bind(this);this.Gm=this.Gm.bind(this);this.ID=this.ID.bind(this);this.t.addEventListener("ended",this.Vh,
p);this.t.addEventListener("pause",this.Wh,z);this.t.addEventListener("stalled",this.Wh,z);this.t.addEventListener("waiting",this.Wh,z);this.t.addEventListener("canplay",this.du,p);this.t.addEventListener("canplaythrough",this.Ho,z);this.t.addEventListener("loadedmetadata",this.Eg,p);this.t.addEventListener("play",this.Mf,z);this.t.addEventListener("playing",this.Gm,z);this.t.addEventListener("error",this.hu,z);this.WQ=z;this.m=e.K;this.Mx=this.tf=r;j.bind(c.aa,this.Psa,this)});l.prototype.clear=
function(){if(this.t){this.t.removeEventListener("ended",this.Vh,p);this.t.removeEventListener("pause",this.Wh,z);this.t.removeEventListener("stalled",this.Wh,z);this.t.removeEventListener("waiting",this.Wh,z);this.t.removeEventListener("canplay",this.du,p);this.t.removeEventListener("canplaythrough",this.Ho,z);this.t.removeEventListener("loadedmetadata",this.Eg,p);this.t.removeEventListener("play",this.Mf,z);this.t.removeEventListener("error",this.hu,z);this.t=r}};l.prototype.play=function(){this.t.log("PlaybackController",
"play");this.Mx=e.R;this.HC()};l.prototype.stop=function(){this.t.log("PlaybackController","stop");this.Mx=e.K;this.HC()};l.prototype.Ie=function(){return this.tf||this.m};l.prototype.qv=function(){return this.t.readyState==this.t.HAVE_NOTHING||this.t.readyState==this.t.HAVE_METADATA||this.t.currentTime===0?z:p};l.prototype.HC=function(){if(!this.tf&&this.Mx){this.tf=this.Mx;this.Mx=r;this.tf==e.R?this.DV():this.CV()}};l.prototype.Psa=function(){if(j.visible){this.t.log("PlaybackController","visibile changed to true, setting state to "+
this.m);this.tf=this.m;this.tf==e.R?this.DV():this.CV()}else if(!this.t.paused){this.t.log("PlaybackController","paused by visibile changed to false");var a=this.t.pause();a&&a["catch"](this.hu)}};l.prototype.Lq=function(){return this.t.currentSrc||this.t.children.length&&this.t.children[0].src||""};l.prototype.DV=function(){var a=this.Lq();this.iK(a&&!i.tv(a));this.oG=k.browser()==k.wf;if(this.t.paused){this.t.log("PlaybackController","startPlaying calling play");this.t.muted=p;this.t.log("PlaybackController",
"this._media.play()");(a=this.t.play())&&a["catch"](this.hu)}else{this.t.log("PlaybackController","startPlaying already playing");this.Mf()}};l.prototype.Gm=function(){this.t.log("PlaybackController","onPlaying event received. Visible: "+j.visible)};l.prototype.Mf=function(){if(this.tf==e.R){this.t.log("PlaybackController","onPlay event received when waiting to play");this.tf=r;this.m=e.R;this.trigger(new f(l.VN));this.HC()}else this.t.log("PlaybackController","onPlay event received. Visible: "+j.visible)};
l.prototype.CV=function(){this.iK(z);this.oG=z;if(this.t.paused){this.t.log("PlaybackController","startPausing already paused");this.Wh()}else{this.t.log("PlaybackController","startPausing calling pause");var a=this.t.pause();a&&a["catch"](this.hu)}};l.prototype.Wh=function(){if(this.tf==e.K){this.t.log("PlaybackController","onPause event received when waiting to stop");this.tf=r;this.m=e.K;this.HC()}else if(j.visible){this.t.log("PlaybackController","onPause event received without calling to pause");
(this.m==e.R&&!this.tf||this.tf==e.R)&&!this.t.hasAttribute("loop")&&!isNaN(this.t.duration)&&this.t.currentTime==this.t.duration&&this.t.duration>0&&this.Vh();this.ID()}else this.t.log("PlaybackController","onPause event received when not visible")};l.prototype.du=function(){this.t.log("PlaybackController","on can play");this.ID()};l.prototype.Ho=function(){this.t.log("PlaybackController","can play through");this.ID();this.iK(z)};l.prototype.ID=function(){if(this.B9()){if(this.oG&&this.t.currentTime==
0){this.t.log("PlaybackController","updatePlaying applying ios hack");this.oG=z;try{this.t.currentTime=0.3}catch(a){}}k.browser()!=k.Uv&&this.H8()}};l.prototype.B9=function(){return this.m==e.R&&j.visible&&this.t.paused&&this.t.readyState>=3};l.prototype.H8=function(a){if(!this.I8)if(a){if(this.B9()){this.t.log("PlaybackController","updatePlaying retrying play");this.tf=e.R;this.DV()}}else this.I8=setTimeout(function(){this.I8=r;this.H8(p)}.bind(this),500)};l.prototype.hu=function(){if(this.tf==e.R){this.t.log("PlaybackController",
"onError waiting to play");this.tf=r;this.Mx?this.HC():k.browser()==k.wf?this.trigger(new f(l.CN)):this.tf=e.R}};l.prototype.Eg=function(){this.t.log("PlaybackController","on loaded metadata");!isNaN(this.t.duration)&&this.t.currentTime==this.t.duration&&this.t.duration>0&&this.Vh()};l.prototype.Vh=function(){this.t.log("PlaybackController","onEnded");this.oG=z;if(this.m==e.R&&!this.tf||this.tf==e.K){this.t.log("PlaybackController","onEnded finalizing video");this.iK(z);this.tf=e.K;this.CV();this.trigger(new f(l.Dj))}};
l.prototype.iK=function(a){if(this.WQ!=a){this.t.log("PlaybackController","downloading changed to: "+a);(this.WQ=a)?n.Dya(d.F_):n.Cya(d.F_)}};l.CN="deactivated";l.Dj="end";l.VN="play";return l});
define("x",["require","fd","lc","bY","eL"],function(a){var b=a("fd"),c=a("lc");a("bY");var e=a("eL"),a=b.extend(e,function(a){e.call(this);this.Eg=this.Eg.bind(this);this.uT=this.uT.bind(this);this.Kf=this.Kf.bind(this);this.t=a;this.ph=r;this.Mc=[];this.t.addEventListener("loadedmetadata",this.Eg,p);this.t.textTracks.addEventListener("addtrack",this.uT,z)});a.prototype.set=function(a){a&&this.zga(a)};a.prototype.clear=function(){this.Zoa()};a.prototype.rE=function(){var a=this.ph&&this.ph.track.activeCues;
a&&(a=Array.prototype.slice.call(a,0));return a||[]};a.prototype.Eg=function(){this.aaa()};a.prototype.uT=function(){this.aaa()};a.prototype.Kf=function(){this.Y8(this.ph.track.activeCues)};a.prototype.Y8=function(a){a||(a=[]);0==this.Mc.length&&0==a.length||(this.Mc=Array.prototype.slice.call(a),this.trigger(c.xf,this.Mc))};a.prototype.zga=function(a){this.t.log("TextTracksController","add text track src: "+a);this.ph=document.createElement("track");this.ph.kind="subtitles";this.ph.src=a;this.t.appendChild(this.ph)};
a.prototype.Zoa=function(){this.ph&&(this.t.log("TextTracksController","remove text track"),this.ph.track.removeEventListener("cuechange",this.Kf),this.ph.track.mode="disabled",this.ph.src="",this.t.removeChild(this.ph),this.ph=r,this.Y8([]))};a.prototype.aaa=function(){for(var a=0;a<this.t.textTracks.length;a++){var b=this.t.textTracks[a];b.removeEventListener("cuechange",this.Kf);b.mode=this.ph&&b==this.ph.track?"hidden":"disabled";"hidden"==b.mode&&b.addEventListener("cuechange",this.Kf)}};return a});
define("gi",["require","dm","jk"],function(a){var b=a("dm"),c=a("jk"),a={is:function(a,d){var f=c.parse(a).$ta;return b(d).contains(f)},tv:function(a,d){return a&&b(d).any(function(b){return 0===a.indexOf(b)})},kO:[".mp4",".m4v",".m4p"],Wea:[".hevc"],I_:[".mov"],K0:[".webm"],$_:[".ogv",".ogg"],nfa:[".mpg",".mpeg"],afa:[".jpg",".jpeg"],Gj:[".m3u8"],Z_:[".mpd"],ufa:[".png"],Vea:[".gif"],Cea:[".bmp"]};a.Yea=[].concat(a.afa,a.ufa,a.Vea,a.Cea);a.zea=[].concat(a.Gj,a.Z_);a.Ei=[].concat(a.zea,a.kO,a.K0,
a.$_,a.nfa,a.Gj,a.Z_);a.Zea=["data:image/"];return a});
define("dz","require,fd,lc,bY,eL,r,gi".split(","),function(a){var b=a("fd");a("lc");var c=a("bY"),e=a("eL"),d=a("r"),f=a("gi"),g=b.extend(e,function(a){e.call(this);this.t=a;this.Ho=this.Ho.bind(this);this.Wh=this.Wh.bind(this);this.Mf=this.Mf.bind(this);this.Eg=this.Eg.bind(this);this.Vh=this.Vh.bind(this);this.bJ=this.bJ.bind(this);this.gd=this.gd.bind(this);this.VS=this.zx=this.Iu=m;this.VV=0;this.t.addEventListener("ended",this.Vh,p);this.t.addEventListener("pause",this.Wh,z);this.t.addEventListener("canplaythrough",
this.Ho,z);this.t.addEventListener("timeupdate",this.bJ,z);this.t.addEventListener("play",this.Mf,z);this.t.addEventListener("playing",this.Gm,z)});g.prototype.clear=function(){if(this.t){this.t.removeEventListener("ended",this.Vh,p);this.t.removeEventListener("pause",this.Wh,z);this.t.removeEventListener("canplaythrough",this.Ho,z);this.t.removeEventListener("timeupdate",this.bJ,z);this.t.removeEventListener("play",this.Mf,z);this.t.removeEventListener("playing",this.Gm,z);this.t=r;this.Iu&&clearInterval(this.Iu)}};
g.prototype.setTime=function(a){this.VV=0;this.mI=m;this.t.log("TimeController","setTime: "+a);this.nG=d.wX()&&!f.is(this.Lq(),f.Gj)?a||0:m;try{this.t.currentTime=a}catch(b){}if(d.browser()!=d.Up&&d.browser()!=d.Uv&&(d.Hc()!=d.Hz||a!=0)){this.zx=a;this.M$()}};g.prototype.getTime=function(){return this.zx||this.t.currentTime||0};g.prototype.rj=function(){return this.t.duration||0};g.prototype.Mf=function(){this.oV(p)};g.prototype.Wh=function(){this.oV(z);this.mI=m};g.prototype.Ho=function(){this.t.log("TimeController",
"on can play through");this.M$()};g.prototype.Vh=function(){this.nG=m;this.oV(z)};g.prototype.Eg=function(){this.trigger(new c(g.Xf))};g.prototype.M$=function(){if(this.t.readyState>=this.t.HAVE_ENOUGH_DATA&&this.zx!==m){this.t.log("TimeController","updateCurrentTime when can play through set time to: "+this.zx);try{this.t.currentTime=this.zx}catch(a){}this.zx=m}};g.prototype.gd=function(){this.trigger(new c(g.Kd))};g.prototype.bJ=function(){if(d.wX()&&!d.Zba()&&!this.t.paused&&this.t.readyState>=
this.t.HAVE_ENOUGH_DATA){var a=(new Date).getTime();this.mI||(this.mI=a);if(this.VS&&a-this.VS>500){this.VV++;this.VV/((a-this.mI)*0.001)>0.4&&d.fya()}this.VS=a}if(this.nG!==m&&this.t.currentTime>this.nG){this.nG=m;try{this.t.currentTime=this.t.currentTime-0.01}catch(b){}}this.gd()};g.prototype.oV=function(a){if(!!this.Iu!=a)if(this.Iu){clearInterval(this.Iu);this.Iu=r}else this.Iu=setInterval(this.gd,16)};g.prototype.Lq=function(){return this.t.currentSrc||this.t.children.length&&this.t.children[0].src||
""};g.Kd="time update";g.Xf="duration update";return g});
define("iO","require,jquery.mod,fd,gd,r,jk".split(","),function(a){function b(){}a("jquery.mod");var c=a("fd"),e=a("gd"),d=a("r"),a=a("jk");b.yla=function(){window.MediaSource=window.MediaSource||window.WebKitMediaSource;return window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function"&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')};b.Ila=function(){if(d.browser()==d.wf){var a=d.sv();if(a>=10&&a<11||a>=11.3)return p}return z};b.zla=function(){return d.browser()==
d.xi||d.browser()==d.wf?p:z};var f;b.Iaa=function(a){try{f||(f=document.createElement("audio"));return!!f.canPlayType(a).replace(/^no$/,"")}catch(b){}return z};var g;b.Iy=function(a){try{if(!g){g=document.createElement("video");g.setAttribute("webkit-playsinline","true");g.setAttribute("playsinline","true")}return!!g.canPlayType(a).replace(/^no$/,"")}catch(b){}return z};b.rta=function(){return d.browser()==d.wf?d.sv()>=15||e?p:z:p};b.Ala=function(){try{if(document.createElement("canvas").getContext("webgl"))return p}catch(a){}try{if(document.createElement("canvas").getContext("experimental-webgl"))return p}catch(b){}return z};
b.eea=function(a,b,c){if(d.Xd()==d.Hj)if(!c||c>30){if(a<=3168&&b<=1584)return p}else{if(a<=4096&&b<=2048)return p}else if(d.Cca())if(!c||c>30){if(a<=4096&&b<=4096||a<=5760&&b<=5760||a<=5760&&b<=2880||a<=8192&&b<=4096)return p}else{if(a<=5760&&b<=5760||a<=8192&&b<=4096)return p}else if(d.Pva())if(!c||c>30){if(a<=2880&&b<=2880||a<=4096&&b<=2048)return p}else{if(a<=3840&&b<=3840||a<=4096&&b<=4096||a<=5760&&b<=2880||a<=2880&&b<=5760)return p}else if(d.Wa()){if(a<=3840&&b<=2160)return p}else if(a<=4096&&
b<=2048)return p;return z};b.Lya=function(a,d){return b.eea(a,d,30)};b.log=function(){c.log("webgl: "+b.TZ);c.log("html5 audio: "+b.hca);c.log("html5 video: "+b.kca)};b.fra=function(){return["webgl:"+b.TZ,"html5audio:"+b.hca,"html5video:"+b.kca].join(" ")};b.jca=b.Iaa('audio/ogg; codecs="vorbis"');b.ica=b.Iaa("audio/mpeg");b.hca=b.jca||b.ica;b.jY=b.Iy('video/ogg; codecs="theora"');b.rAa=b.Iy('video/mp4; codecs="avc1.42E01E"');b.kY=b.Iy('video/webm; codecs="vp8, vorbis"');b.pva=b.Iy('video/mp4; codecs="hev1"');
b.iM=b.Iy("video/mp4");b.qva=b.Iy("video/quicktime");b.lca=b.Ila();b.Tba=b.zla();b.hva=b.Tba||b.iM&&b.yla();b.kca=b.jY||b.iM||b.kY;b.TZ=b.Ala();a.Vf("debug")&&a.Vf("capabilities")&&b.log();b.summary=b.fra();return b});
define("bV",["require","jk"],function(a){function b(){this.pI=this.XS=r;this.ao=[];this.Bm=z;this.$q=m}var c=a("jk");b.prototype.am=function(a,b){this.XS=c.ts(a);this.pI=b;this.J()};b.prototype.load=function(a,b){var c={};c.call=a;c.context=b||window;this.ao.push(c);this.$q||(this.$q=this.v4());this.J()};b.prototype.yp=function(){return this.$q!==m};b.prototype.J=function(){0<this.ao.length&&(this.$q!==m?this.kja():this.XS&&this.yB())};b.prototype.yB=function(){if(!(this.Bm||this.$q!==m)){this.Bm=
p;var a=document.createElement("script");a.type="text/javascript";a.src=this.XS;document.getElementsByTagName("head")[0].appendChild(a);this.vaa()}};b.prototype.vaa=function(){var a=this.v4();if(a===m){var b=this;setTimeout(function(){b.vaa()},250)}else this.$q=a,this.Bm=z,this.J()};b.prototype.v4=function(){if(this.pI){for(var a=window,b=0;b<this.pI.length&&a!==m;b++)a=a[this.pI[b]];return a}};b.prototype.kja=function(){for(;0<this.ao.length;){var a=this.ao.pop();a.call.call(a.context,this.$q)}};
return{L0:new b,Gj:new b,am:function(a){this.Gj.am(a.get(TDV.PlayerSettings.HLS_URL),["Hls"]);this.L0.am(a.get(TDV.PlayerSettings.WEBVR_POLYFILL_URL),["WebVRConfig","FORCE_ENABLE_VR"])}}});
define("dO",["require"],function(){var a={Nca:"data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV"};a.src=
a.Nca;return a});
define("cR","require,fd,lc,bY,eL,iO,jk,jv,gi,bV,dO".split(","),function(a){function b(a,b,d){this.src=a||"";this.Cj=b||"";this.startTime=d||0}var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("iO"),k=a("jk"),i=a("jv"),n=a("gi"),j=a("bV"),l=a("dO"),a=c.extend(f,function(a,b){f.call(this);this.t=a;this.mj=b;this.bT=z;this.vK=[];this.pd=this.hd=this.HA=r});a.prototype.set=function(a,d,c){this.t.log("SrcSetter","set: "+a+" subtitles: "+d+" startTime: "+c);a=new b(a,d,c);if(!this.hd||!this.hd.isEqual(a))if(!this.hd&&this.HA&&
this.HA.isEqual(a))this.eW();else{this.hd=a;this.wma()}};a.prototype.clear=function(){if(this.pd){this.pd.destroy();this.pd=r}this.HA=r;this.Yoa();this.mj.clear()};a.prototype.jva=function(){return!!this.hd};a.prototype.wma=function(){this.bT=p;if(this.E8(this.hd.src)&&!j.Gj.yp()){this.t.log("SrcSetter","hls lib required");j.Gj.load(this.x5,this)}else this.x5()};a.prototype.x5=function(){if(this.bT){this.bT=z;this.Yga()}};a.prototype.Yga=function(){this.clear();this.Npa(!!this.hd.src&&k.uca(this.hd.src));
this.E8(this.hd.src)?this.Nga():this.Zga()};a.prototype.Nga=function(){var a=j.Gj.$q,b=(navigator.connection?Math.max(navigator.connection.downlink,2):2)*1048576,d=b*0.66;this.pd=new a({debug:i.d_,startPosition:this.hd.startTime===0?-1:this.hd.startTime,levelLoadingTimeOut:6E4,startLevel:-1,autoStartLoad:z,abrEwmaDefaultEstimate:b});this.pd.loadSource(this.hd.src);this.pd.attachMedia(this.t);var c=function(){this.pd.off(a.Events.MANIFEST_PARSED,c);if(navigator.connection){var f=this.pd.levels.filter(function(a){return a.bitrate<=
b});if(f.length){f.sort(function(a,b){return b.width-a.width});var e=this.pd.levels.indexOf(f[0]);this.pd.startLevel=e}f=this.pd.levels.filter(function(a){return a.bitrate<=d});if(f.length){f.sort(function(a,b){return b.width-a.width});this.pd.config.minAutoBitrate=f[0].bitrate-1}f=this.pd.levels.filter(function(a){return g.Lya(a.width,a.height)});if(i.Xea){f.sort(function(a,b){return b.width-a.width});e=this.pd.levels.indexOf(f[0]);this.pd.startLevel=e}if(f.length&&f.length<this.pd.levels.length){f.sort(function(a,
b){return b.width-a.width});this.pd.autoLevelCapping=this.pd.levels.indexOf(f[0])}this.t.log("SrcSetter","bandwidth: "+b+" lowBandwidth: "+d);this.t.log("SrcSetter","levels: "+this.pd.levels);this.t.log("SrcSetter","startLevel: "+this.pd.levels[this.pd.startLevel]);this.t.log("SrcSetter","minLevel: "+this.pd.levels[this.pd.minAutoLevel])}this.pd.startLoad(this.hd.startTime===0?-1:this.hd.startTime);this.hd.startTime!=0&&this.w9(this.hd.startTime);this.hd.Cj&&this.mj.set(this.hd.Cj);this.HA=this.hd;
this.hd=r;this.eW()}.bind(this);this.pd.on(a.Events.MANIFEST_PARSED,c);this.pd.on(a.Events.jza,function(b,d){d.fatal&&d.type==a.ErrorTypes.nza&&this.pd.recoverMediaError()}.bind(this))};a.prototype.Zga=function(){this.hd.src?this.E1(this.hd.src):this.E1(l.Nca,"audio/mpeg");this.hd.Cj&&this.mj.set(this.hd.Cj);this.t.load();this.hd.startTime!=0&&this.w9(this.hd.startTime);this.HA=this.hd;this.hd=r;this.eW()};a.prototype.eW=function(){this.t.log("SrcSetter","src ready");this.trigger(new d(e.Db))};a.prototype.E8=
function(a){return a&&n.is(a,n.Gj)&&!g.Tba};a.prototype.Npa=function(a){a&&!this.t.hasAttribute("crossorigin")?this.t.setAttribute("crossorigin","anonymous"):!a&&this.t.hasAttribute("crossorigin")&&this.t.removeAttribute("crossorigin")};a.prototype.w9=function(a){try{this.t.currentTime=a}catch(b){}};a.prototype.E1=function(a,b){var d=document.createElement("source");b||(b=this.ula(a));if(b)d.type=b;k.tv(a)||(a=k.$u(a,"swbypass=true"));d.src=a;this.t.appendChild(d);this.vK.push(d)};a.prototype.Yoa=
function(){for(;this.vK&&this.vK.length;){var a=this.vK.shift();a.src="";this.t.removeChild(a)}};a.prototype.ula=function(a){switch(k.getExtension(a).toLowerCase()){case ".mp3":return"audio/mpeg";case ".ogg":return"audio/ogg";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"}};b.prototype.isEqual=function(a){return this.src==a.src&&this.Cj==a.Cj};return a});
define("kH","require,fd,lc,bY,eL,r,jv,d,bp,iX,dl,fX,jX,x,dz,cR".split(","),function(a){function b(a){setTimeout(a,0)}var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("r"),k=a("jv"),i=a("d"),n=a("bp"),j=a("iX"),l=a("dl"),q=a("fX"),o=a("jX"),t=a("x"),s=a("dz"),u=a("cR"),v=0,w=c.extend(f,function(a,b){f.call(this);this.Ud=a;this.Qsa=b;this.Eg=this.Eg.bind(this);this.pm=this.pm.bind(this);this.FT=this.FT.bind(this);this.yl=this.Qw=r;this.sJ=m;this.bb=this.pa=r;this.Fi="inactive";this.rk=this.ta=this.jc=
this.$o=this.mj=r;this.rd=z;this.y9(document.createElement(this.Ud));b&&j.Az(this.pm)});w.prototype.y9=function(a){this.d$();this.bb=a;for(this.bb.parentNode&&this.bb.parentNode.removeChild(this.bb);this.bb.children.length;)this.bb.removeChild(this.bb.children[0]);this.zqa();this.bb.autoplay=z;this.bb.autobuffer="autobuffer";this.bb.lz=g.browser()==g.wf?"metadata":"none";this.bb.setAttribute("preload",g.browser()==g.wf?"metadata":"none");this.bb.setAttribute("webkit-playsinline","true");this.bb.setAttribute("playsinline",
"true");this.bb.addEventListener("loadedmetadata",this.Eg,p);this.mj=new t(this.bb);this.mj.bind(e.xf,this.Kf,this,p);this.$o=new u(this.bb,this.mj);this.$o.bind(e.Db,this.q7,this,p);this.jc=new l(this.bb);this.ta=new o(this.bb);this.ta.bind(o.CN,this.q6,this,p);this.ta.bind(o.Dj,this.Vh,this,p);this.ta.bind(o.VN,this.Mf,this,p);this.rk=new s(this.bb);this.rk.bind(s.Kd,this.gd,this,p);this.rk.bind(s.Xf,this.Zi,this,p)};w.prototype.zqa=function(){if(k.d_){var a="["+this.Ud+" "+v++ +"]";this.bb.log=
function(b,d){console.log(a+"["+(new Date).toISOString().split("T")[1]+"] "+b+" "+d)}}else this.bb.log=C()};w.prototype.d$=function(){if(this.bb){this.bb.removeEventListener("loadedmetadata",this.Eg,p);if(this.$o){this.$o.unbind(e.Db,this.q7,this,p);this.$o.clear();this.$o=r}if(this.mj){this.mj.unbind(e.xf,this.Kf,this,p);this.mj.clear();this.mj=r}if(this.jc){this.jc.clear();this.jc=r}if(this.ta){this.ta.unbind(o.CN,this.q6,this,p);this.ta.unbind(o.Dj,this.Vh,this,p);this.ta.unbind(o.VN,this.Mf,this,
p);this.ta.clear();this.ta=r}if(this.rk){this.rk.unbind(s.Kd,this.gd,this,p);this.rk.unbind(s.Xf,this.Zi,this,p);this.rk.clear();this.rk=r}this.bb=r}};w.prototype.clear=function(){this.d$()};w.prototype.My=function(a,b,d){if(this.yh()&&this.qv())try{a.drawImage(this.bb,0,0,b,d);return p}catch(c){}a.fillRect(0,0,b,d);return z};w.prototype.play=function(a,b,d){this.bb.log("HTMLMediaPlayer","play src: "+b.src+" subtitlesSrc: "+b.Cj+" hasAudio: "+b.xp+" gain: "+b.gain);this.pa=a;this.Qw=r;this.yl=b.clone();
this.sJ=d||0;this.Jga()};w.prototype.oM=function(){return this.Fi=="activated"};w.prototype.cN=R("Qsa");w.prototype.stop=function(){this.bb.log("HTMLMediaPlayer","stop");this.ta.stop();this.yl=r};w.prototype.Ie=function(){return this.ta.Ie()};w.prototype.qv=function(){return this.$o.jva()?z:this.ta.qv()};w.prototype.Id=function(a){this.jc.Id(a);this.rd=a;this.pa&&this.Fi=="requested"&&(this.rd?n.cancel(this.pa):n.qg(this.pa))};w.prototype.Np=function(a){this.jc.Np(a)};w.prototype.aF=function(a){this.jc.aF(a)};
w.prototype.Kv=function(a){this.Uga(a)};w.prototype.qj=function(){return this.rk.getTime()};w.prototype.Kp=function(a){return this.rk.setTime(a)};w.prototype.rj=function(){return this.rk.rj()};w.prototype.yh=function(){return this.Ud==q.Ei};w.prototype.re=R("Ud");w.prototype.$c=function(){return this.bb&&this.yh()&&this.bb.videoWidth||0};w.prototype.Nd=function(){return this.bb&&this.yh()&&this.bb.videoHeight||0};w.prototype.rE=function(){return this.mj.rE()};w.prototype.Jga=function(){this.bb.log("HTMLMediaPlayer",
"assert can play");if(this.Fi=="activated"||!this.yl.xp){this.bb.log("HTMLMediaPlayer","can play activationState: "+this.Fi+" pending media has audio: "+this.yl.xp);this.du()}else if(this.Fi=="inactive"){this.bb.log("HTMLMediaPlayer","needs activation");this.pa&&this.Ud==q.Ei&&this.xla()?this.gga():this.pa&&i.GE()?this.pm():this.pa&&this.Iga()}};w.prototype.xla=function(){var a=this.W3();return a&&(!a.currentSrc||a.paused)&&!a.muted?p:z};w.prototype.W3=function(){return this.pa.get("settings").get(TDV.PlayerSettings.ACTIVE_VIDEO_ELEMENT)};
w.prototype.gga=function(){this.bb.log("HTMLMediaPlayer","activate with application parameter");this.y9(this.W3());this.pm()};w.prototype.Iga=function(){this.bb.log("HTMLMediaPlayer","ask for activation");this.Fi="requested";n.RZ(this.pm);this.pa&&!this.rd&&n.qg(this.pa)};w.prototype.pm=function(){if(this.Fi=="inactive"||this.Fi=="requested"){this.bb.log("HTMLMediaPlayer","activate received when state: "+this.Fi+" and has media: "+!!this.Qw);if(this.Qw)b(function(){j.Az(this.pm)}.bind(this));else{this.Fi=
"activating";this.$o.set("","",0)}}};w.prototype.du=function(){this.bb.log("HTMLMediaPlayer","media can play. Has pending properties: "+!!this.yl);this.yl&&this.$o.set(this.yl.src,this.yl.Cj,this.sJ)};w.prototype.q7=function(){this.Fi=="activating"?this.Hna():this.yl&&this.rna()};w.prototype.Hna=function(){this.bb.log("HTMLMediaPlayer","on src ready activating");this.ta.play()};w.prototype.Mf=function(){if(this.Fi=="activating"){this.bb.log("HTMLMediaPlayer","on play activating");this.ta.stop();this.Fi=
"activated";this.du()}};w.prototype.rna=function(){this.bb.log("HTMLMediaPlayer","on pending src ready");this.Qw=this.yl;this.yl=r;this.Oga(this.Qw.xp);this.Mga(this.Qw.gain);this.rk.setTime(this.sJ);this.sJ=m;this.ta.play()};w.prototype.Oga=function(a){this.jc.sxa(a)};w.prototype.Mga=function(a){this.jc.aF(a)};w.prototype.Uga=function(a){a&&!this.bb.hasAttribute("loop")?this.bb.setAttribute("loop",""):!a&&this.bb.hasAttribute("loop")&&this.bb.removeAttribute("loop")};w.prototype.q6=function(){this.bb.log("HTMLMediaPlayer",
"on deactivated");n.eya();j.Az(this.FT);this.pa&&b(function(){n.qg(this.pa)}.bind(this))};w.prototype.FT=function(){this.bb.log("HTMLMediaPlayer","on reactivated");this.ta.play()};w.prototype.Kf=function(){this.trigger(e.xf,this.mj.rE())};w.prototype.Eg=function(){this.trigger(new d(w.Mea))};w.prototype.gd=function(){this.trigger(new d(w.Kd))};w.prototype.Zi=function(){this.trigger(new d(w.Xf))};w.prototype.Vh=function(){this.trigger(new d(w.Dj))};w.Kd="time update";w.Xf="duration update";w.Mea="size update";
w.Dj="end";return w});define("cP",["require"],function(){return function(a){this.cue=a;this.text=a.text}});define("jR",["require"],function(){function a(){this.Cj=this.src=m;this.xp=z;this.gain=1}a.prototype.clone=function(){var b=new a;b.src=this.src;b.Cj=this.Cj;b.xp=this.xp;b.gain=this.gain;return b};return a});
define("bC","require,fd,dm,lc,fr,bY,eL,iO,r,jk,kH,fX".split(","),function(a){function b(a){this.hA=a;this.X=r;this.Ut=(new Date).getTime()}var c=a("fd"),e=a("dm"),d=a("lc"),f=a("fr"),g=a("bY"),k=a("eL"),i=a("iO"),n=a("r"),j=a("jk"),l=a("kH"),q=a("fX");b.prototype.tY=function(){return this.X==r};b.prototype.oM=function(){return this.hA.oM()};b.prototype.cN=function(){return this.hA.cN()};b.prototype.item=R("X");b.prototype.jua=function(){this.X.BY(this.hA);this.X=r};b.prototype.Wya=function(a){this.X=
a;this.X.GX(this.hA);this.Ut=(new Date).getTime()};var o=c.extend(k,function(){k.call(this);this.Rm=[];for(var a=j.pba("avs",10),d=j.pba("avpas",i.rta()?4:1),c=0;c<a;c++)this.Rm.push(new b(new l(q.Ei,c<d)));this.Rf=[];this.m=f.K});o.prototype.dz=function(){return this.F4().length>0};o.prototype.EM=function(a){this.Rf=[a].concat(e(this.Rf).without(a));this.aU()};o.prototype.oX=function(a){this.Rf.push(a);this.aU()};o.prototype.jz=function(a){this.Rf=e(this.Rf).without(a);this.aU()};o.prototype.aU=
function(){var a=this.cla();if(o.bca())for(;this.Rm.length<a.length;)this.Rm.push(new b(new l(q.Ei,z)));this.F4().forEach(function(b){a.indexOf(b.item())<0&&b.jua()});this.Yb(a.length>0?f.R:f.K);a.forEach(function(a){if(!this.Jka(a)){var d=this.zka(a.HM());!d&&!a.HM()&&this.Rm.push(d=new b(new l(q.Ei,z)));d&&d.Wya(a)}}.bind(this));this.Aka().forEach(function(a){a.hA.stop()})};o.prototype.cla=function(){return this.Rf.map(function(a,b){var d={};d.index=b;d.Qd=a.dY();d.item=a;return d}).sort(function(a,
b){return a.Qd-b.Qd||a.index-b.index}).map(function(a){return a.item})};o.prototype.Yb=function(a){if(this.m!=a){this.m=a;this.trigger(new g(this.m==f.K?d.je:d.Di))}};o.prototype.zka=function(a){var b=this.Rm.filter(function(a){return a.tY()});if(b.length){if(a){a=b.filter(function(a){return a.oM()});a.length||(a=b.filter(function(a){return a.cN()}))}else{a=b.filter(function(a){return!a.cN()});a.length||(a=b.filter(function(a){return!a.oM()}))}a.length&&(b=a);if(n.browser()==n.xi){b.sort(function(a,
b){return b.Ut-a.Ut});return b[Math.min(2,b.length-1)]}return b[0]}return r};o.prototype.Aka=function(){return this.Rm.filter(function(a){return a.tY()})};o.prototype.F4=function(){return this.Rm.filter(function(a){return!a.tY()})};o.prototype.Jka=function(a){for(var b=0;b<this.Rm.length;b++)if(this.Rm[b].item()==a)return this.Rm[b];return r};o.wS=r;o.bind=function(){var a=o.Ef();a.bind.apply(a,arguments)};o.unbind=function(){var a=o.Ef();a.unbind.apply(a,arguments)};var t=[n.Ez,n.xs].indexOf(n.Hc())>=
0;o.bca=function(){return t};o.dz=function(){return o.Ef().dz()};o.oX=function(a){o.Ef().oX(a)};o.EM=function(a){o.Ef().EM(a)};o.jz=function(a){o.Ef().jz(a)};o.co=function(){if(o.wS===r)o.wS=new o;return o.wS};o.Ef=o.co;o.co();return o});
define("z","require,fd,bY,eL,lc,fr,kH,cP,jR,fX,bC,V,iO".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("lc"),f=a("fr"),g=a("kH"),k=a("cP"),i=a("jR"),n=a("fX"),j=a("bC"),l=a("V"),q=a("iO"),o=b.extend(e,function(a,b,c){e.call(this);this.pa=a;this.j=b;this.GC=c;this.U=r;this.ZC();this.NI=this.NI.bind(this);this.j.bind(d.D("gain"),this.TB,this,p);this.j.bind(d.D("mp3Url"),this.sl,this,p);this.j.bind(d.D("oggUrl"),this.sl,this,p);this.m=f.K;this.BB=z;this.Ne=this.Kb=0;this.rd=z;this.Sl=1;
this.PA=z;this.bx=1;this.Sb=r;this.qm=[]});o.prototype.Ua=R("pa");o.prototype.ic=function(a){if(this.m!=a&&!(a==f.yc&&this.m!=f.R)){this.m=a;if(this.m==f.R){this.Lha();j.EM(this)}else this.Lqa();this.fW()}};o.prototype.Lqa=function(){if(!this.PA){this.PA=p;this.H3=this.j.get("fadeOutTime");this.H3==0?this.W9():this.NI(0)}};o.prototype.NI=function(a){if(!this.Sb||this.bx==0||!this.PA||this.cma())this.W9();else{this.bx=Math.max(0,this.bx-a/this.H3);this.pG();l.Ma(this.NI)}};o.prototype.Lha=function(){this.PA=
z;this.bx=1;this.pG()};o.prototype.W9=function(){this.PA=z;this.bx=1;if(this.Sb){j.jz(this);this.m==f.K&&this.nV()}};o.prototype.Ie=R("m");o.prototype.rj=R("Kb");o.prototype.Kp=function(a){this.Ne=a;this.Sb&&this.Sb.play(this.pa,this.U,this.Ne)};o.prototype.qj=R("Ne");o.prototype.Np=function(a){this.Sl=a;this.pG()};o.prototype.pG=function(){this.Sb&&this.Sb.Np(this.Sl*this.bx)};o.prototype.Id=function(a){this.rd=a;this.Sb&&this.Sb.Id(a)};o.prototype.Kv=function(a){this.BB=a;this.Sb&&this.Sb.Kv(a)};
o.prototype.HM=function(){return!this.rd};o.prototype.re=function(){return n.Bea};o.prototype.dY=R("GC");o.prototype.GX=function(a){this.Sb=a;setTimeout(function(){this.Sb&&this.Sb.bind(g.Dj,this.SB,this,p)}.bind(this),0);this.ZC();this.Sb.bind(g.Kd,this.gd,this,p);this.Sb.bind(g.Xf,this.Zi,this,p);this.Sb.bind(d.xf,this.Kf,this,p);this.Sb.Id(this.rd);this.pG();this.Sb.Kv(this.BB);this.Sb.play(this.pa,this.U,this.Ne)};o.prototype.BY=function(){this.Ne=this.Sb.qj();this.Sb.unbind(g.Dj,this.SB,this,
p);this.Sb.unbind(g.Kd,this.gd,this,p);this.Sb.unbind(g.Xf,this.Zi,this,p);this.Sb.unbind(d.xf,this.Kf,this,p);this.Sb=r};o.prototype.clear=function(){this.ic(f.K);if(this.j){this.j.unbind(d.D("gain"),this.TB,this,p);this.j.unbind(d.D("mp3Url"),this.sl,this,p);this.j.unbind(d.D("oggUrl"),this.sl,this,p);this.j=r}};o.prototype.sl=function(){this.uu&&clearTimeout(this.uu);this.uu=setTimeout(function(){this.uu=r;if(this.Sb){this.U.src=this.Lq(this.j);this.Sb.play(this.pa,this.U,this.Ne)}}.bind(this),
10)};o.prototype.TB=function(){if(this.Sb){var a=this.j.get("gain");if(this.U.gain!=a){this.U.gain=a;this.Sb.aF(this.U.gain)}}};o.prototype.ZC=function(){this.U=new i;this.U.src=this.Lq(this.j);this.U.xp=p;this.U.gain=this.j.get("gain")};o.prototype.Lq=function(a){var b=a.get("mp3Url");if(b&&q.ica)return b;return(a=a.get("oggUrl"))&&q.jca?a:b||a};o.prototype.Zi=function(){this.Kb=this.Sb.rj();this.cW()};o.prototype.gd=function(){this.Kb!=this.Sb.rj()&&this.Zi();this.Ne=this.Sb.qj();this.zD()};o.prototype.Kf=
function(){this.qm=this.Sb.rE().map(function(a){for(var b=r,d=0;d<this.qm.length&&!b;d++)this.qm[d].cue==a&&(b=this.qm[d]);b||(b=new k(a));return b}.bind(this));this.trigger(new c(d.xf))};o.prototype.SB=function(){this.ic(f.K);this.dW()};o.prototype.cma=function(){return this.Sb&&this.Sb.qj()&&this.Sb.qj()==this.Sb.rj()};o.prototype.nV=function(){this.Ne=0;this.zD()};o.prototype.zD=function(){this.trigger(new c(o.Kd))};o.prototype.cW=function(){this.trigger(new c(o.Xf))};o.prototype.dW=function(){this.trigger(new c(d.Da))};
o.prototype.fW=function(){this.trigger(new c(d.zc))};o.Kd="time update";o.Xf="duration update";return o});
define("ke","require,fd,lc,gb,fr,iU,bY,dT,z".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gb"),d=a("fr"),f=a("iU"),g=a("bY"),k=a("dT"),i=a("z"),a=b.extend(f,function(a){f.call(this);this.set("state",d.K);this.GC=a||e.Gfa;this.Xk=m});k.A("Audio",a).B("Object").L({audio:"AudioResource",loop:"bool",state:"enum[stopped, playing, paused]"}).Rg({play:function(){this.lh()},pause:function(){this.xl()},stop:function(){this.qk()}}).Vb([c.Da,c.zc]);a.prototype.iv=function(){if(this.Xk==m){var a=this.get("audio");
if(a){this.Xk=new i(this.get("application"),a,this.GC);a=function(){this.Xk.Kv(this.get("loop",z))};a.call(this);this.bind(c.D("loop"),a,this);a=function(){this.Xk.Id(this.get("application").get("mute",z))};a.call(this);this.get("application").bind(c.D("mute"),a,this,p);a=function(){this.set("state",this.Xk.Ie())};a.call(this);this.Xk.bind(c.zc,a,this,p);this.Xk.bind(c.Da,this.Rma,this,p)}else this.Xk=r}return this.Xk};a.prototype.set=function(a,b){if(a=="state"){var e=this.get("state"),i=this.Xk?
this.Xk.Ie():d.K;i!=e&&this.trigger(new g(c.zc,{oldState:e,state:i}))}f.prototype.set.call(this,a,b)};a.prototype.wp=function(){return[]};a.prototype.Rma=function(){this.trigger(new g(c.Da))};a.prototype.lh=function(){var a=this.iv();a&&a.ic(d.R)};a.prototype.qk=function(){var a=this.iv();a&&a.ic(d.K)};a.prototype.xl=function(){var a=this.iv();a&&a.ic(d.yc)};return a});
define("gK",["fd","dT","ke"],function(a,b,c){a=a.extend(c,function(a){c.call(this,a)});b.A("MediaAudio",a).B("Audio").L({autoplay:"bool"});return a});define("lu","require,fd,gb,dT,gK,z".split(","),function(a){var b=a("fd"),c=a("gb"),e=a("dT"),d=a("gK");a("z");a=b.extend(d,function(){d.call(this,c.pfa)});e.A("PanoramaAudio",a).B("MediaAudio");return a});
define("fy",["fd","lu","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("DirectionalPanoramaAudio",a).B("PanoramaAudio").L({yaw:"number",pitch:"number",maximumAngle:"number"});return a});define("ge",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("DistancePanoramaCameraMovement",b).B("DistanceRotationalCameraMovement");return b});
define("fl",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("DistanceRotationalCameraMovement",b).B("RotationalCameraMovement").L({hfovDelta:"number",pitchDelta:"number",yawDelta:"number"});return b});
define("u","require,dm,lc,fd,bY,eL".split(","),function(a){function b(a,b,d,c,n){this.Si=r;this.qT=a;this.Zd=e.D(this.qT);this.WR=b;this.ha=d||window;this.tS=c;this.U5=n;this.CS=z}var c=a("dm"),e=a("lc"),d=a("fd");a("bY");a("eL");b.prototype.unwatch=function(){this.PU(r)};b.prototype.PU=function(a){c(this.s4()).each(function(a){a&&a.unbind(this.Zd,this.q2,this)},this);this.Si=a;c(this.s4()).each(function(a){a&&a.bind(this.Zd,this.q2,this,this.tS)},this);this.F8()};b.prototype.s4=function(){return this.Si?
c(this.Si).isArray()?this.Si:[this.Si]:[]};b.prototype.F8=function(){this.U5&&this.U5.PU(this.Eka())};b.prototype.Eka=function(){return this.Si==r?r:c(this.Si).isArray()?c(this.Si).map(function(a){return a?a.get(this.qT):r},this):this.Si.get(this.qT)};b.prototype.q2=function(a){if(!this.CS){try{this.CS=p;this.F8();this.WR.call(this.ha,a)}catch(b){d.sM("ChangeWatcher._changeHandler",b)}this.CS=z}};b.watch=function(a,d,e,i,n){c.isString(d)&&(d=d.split("."));typeof n=="undefined"&&(n=z);if(d.length>
0){d=new b(d[0],e,i,n,b.watch(r,d.slice(1),e,i,n));d.PU(a);return d}return r};return b});
define("lr",["jquery.mod","fd","lc","d"],function(a,b,c,e){var d=b.extend(e,function(){e.call(this);this.Xc("DropDownArrow");this.u=r;this.bo=p;this.bind(c.yb,this.Bja,this)});d.prototype.ya=function(){e.prototype.ya.call(this);this.f("color","#000000");this.f("direction",d.vN)};d.prototype.Bja=function(){this.bo=p;this.Bc()};d.prototype.Ia=function(){e.prototype.Ia.call(this);this.u||(this.u=a("<canvas/>"),this.u.css({position:"absolute",left:0,top:0}),this.Pa().append(this.u))};d.prototype.ga=function(){var a=
z;this.n("color")&&(a=p,this.p("color"));this.n("direction")&&(a=p,this.p("direction"));this.bo&&(a=p,this.bo=z);if(a){var a=this.Gd(),b=this.Fd(),c=this.k("color"),i=this.k("direction"),n=[0.5*a,0,a],i=i==d.vN?[b,0,0]:[0,b,b],j=this.u.get(0);j.width=a;j.height=b;j=j.getContext("2d");j.clearRect(0,0,a,b);j.beginPath();j.moveTo(n[0],i[0]);j.lineTo(n[1],i[1]);j.lineTo(n[2],i[2]);j.fillStyle=c;j.fill()}e.prototype.ga.call(this)};d.vN="down";d.hza="up";return d});
define("fN","fd,bY,jP,R,lc,c,fj,kJ,lr,gM".split(","),function(a,b,c,e,d,f,g,k,i,n){a=a.extend(k,function(){k.call(this);this.Xc("DropDownButton");this.gq=this.qa=r;this.RS=p;this.set("autoRolledOver",p);this.set("autoPressed",p);this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p);this.set("cursor",e.he);this.bind(d.T,this.$Q,this)});a.prototype.ya=function(){k.prototype.ya.call(this);this.f("arrowColor","#000000");this.f("arrowBeforeLabel");this.f("arrowWidth",9);this.f("arrowHeight",
5);this.f("arrowGap",5);this.f("shadow",z);this.f("layout",f.we);this.f("verticalAlign",c.rc);this.f("borderRadius",5);this.f("borderColor","#AAAAAA");this.f("borderSize",1);this.f("backgroundColor",["#FAFAFA","#E5E5E5"]);this.f("backgroundColorRatios",[0,1]);this.f("backgroundColorDirection","vertical");this.f("paddingLeft",5);this.f("paddingTop",5);this.f("paddingRight",5);this.f("paddingBottom",5);this.f("fontFamily");this.f("fontSize");this.f("fontColor","#555555");this.f("fontWeight");this.f("fontStyle");
this.f("textDecoration");this.f("textShadowColor");this.f("textShadowHorizontalLength");this.f("textShadowVerticalLength");this.f("textShadowBlurRadius");this.f("textShadowOpacity");this.h("rollOverBorderColor",g.v,"borderColor");this.h("rollOverArrowColor",g.v,"arrowColor");this.h("rollOverBackgroundColor",g.v,"backgroundColor");this.h("rollOverBackgroundColorRatios",g.v,"backgroundColorRatios");this.h("rollOverShadow",g.v,"shadow");this.h("pressedBorderColor",g.za,"borderColor");this.h("pressedArrowColor",
g.za,"arrowColor");this.h("pressedBackgroundColor",g.za,"backgroundColor");this.h("pressedBackgroundColorRatios",g.za,"backgroundColorRatios");this.h("pressedShadow",g.za,"shadow");this.h("pressedRollOverBorderColor",g.Za,"borderColor");this.h("pressedRollOverArrowColor",g.Za,"arrowColor");this.h("pressedRollOverBackgroundColor",g.Za,"backgroundColor");this.h("pressedRollOverBackgroundColorRatios",g.Za,"backgroundColorRatios");this.h("pressedRollOverShadow",g.Za,"shadow");this.h("pressedBorderColor",
g.G,"borderColor");this.h("pressedArrowColor",g.G,"arrowColor");this.h("pressedBackgroundColor",g.G,"backgroundColor");this.h("pressedBackgroundColorRatios",g.G,"backgroundColorRatios");this.h("pressedShadow",g.G,"shadow")};a.prototype.set=function(a,b){if(a=="label"&&this.get("label")!=b){this.RS=p;this.Bc()}k.prototype.set.call(this,a,b)};a.prototype.Ia=function(){k.prototype.Ia.call(this);if(!this.qa){this.qa=new n;this.qa.set("width","100%");this.ma(this.qa)}if(!this.gq){this.gq=new i;this.gq.set("direction",
i.vN);this.ma(this.gq)}};a.prototype.$Q=function(){this.open();this.trigger(new b(d.OPEN))};a.prototype.open=function(){this.unbind(d.T,this.$Q,this);this.WC(p)};a.prototype.close=function(){this.bind(d.T,this.$Q,this);this.WC(z)};a.prototype.ga=function(){if(this.RS){this.qa.set("text",this.get("label"));this.RS=z}this.fb(["horizontalAlign","fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius",
"textShadowOpacity"],{},[this.qa],p,p);if(this.n("arrowGap")){this.set("gap",this.k("arrowGap"));this.p("arrowGap")}if(this.n("arrowColor")){this.gq.set("color",this.k("arrowColor"));this.p("arrowColor")}if(this.n("arrowBeforeLabel")){this.k("arrowBeforeLabel")==p?this.wj(this.gq,0):this.wj(this.qa,0);this.p("arrowBeforeLabel")}if(this.n("arrowWidth")){this.gq.set("width",this.k("arrowWidth"));this.p("arrowWidth")}if(this.n("arrowHeight")){this.gq.set("height",this.k("arrowHeight"));this.p("arrowHeight")}k.prototype.ga.call(this)};
return a});define("fD",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.kb={layout:e.df};a.defaults(d.kb,c.kb);d.prototype.ya=function(){this.Rj(d.kb)};return d});
define("iH","require,fd,bY,jP,R,fS,lc,kJ,fD,gM".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("jP"),d=a("R"),f=a("fS"),g=a("lc"),k=a("kJ"),i=a("fD"),n=a("gM"),a=b.extend(k,function(){k.call(this);this.Xc("DropDownPopup");this.uc=r;this.wG=z;this.Na=r;this.uB=[];this.Jr=p});a.prototype.open=function(a){this.uc=a;this.wG=p;this.Ua().wj(this,this.Ua().Oa().length-1);this.set("overIndex",-1);this.set("visible",p);this.bind(g.xb,this.lc,this);this.Ua().bind(g.cc,this.M5,this);this.Ua().bind(g.yb,
this.nb,this)};a.prototype.close=function(){this.uc=r;this.wG=p;this.set("visible",z);this.Na.set("overflow",f.Ts);this.Na.set("contentOpaque",p);this.unbind(g.xb,this.lc,this);this.Ua().unbind(g.cc,this.M5,this);this.Ua().bind(g.yb,this.nb,this)};a.prototype.Ia=function(){k.prototype.Ia.call(this);if(!this.Na){this.Na=new i;this.Na.set("overflow",f.Ts);this.Na.bind(g.yb,this.nb,this);this.Na.bind(g.mm,this.Dr,this);this.ma(this.Na)}};a.prototype.nb=function(){this.V$()};a.prototype.lc=function(){this.VU=
z};a.prototype.Dr=function(){this.VU=p};a.prototype.M5=function(){this.get("overIndex")==-1&&(!this.VU||!this.Yj)&&this.trigger(new c(g.zs));this.VU=z};a.prototype.gna=function(a){this.set("overIndex",this.JR(a.source))};a.prototype.hna=function(a){a=this.JR(a.source);this.get("overIndex")==a&&this.set("overIndex",-1)};a.prototype.fna=function(a){a=this.JR(a.source);this.set("overIndex",a);this.set("selectedIndex",a);this.trigger(new c(g.Ci))};a.prototype.JR=function(a){for(var b=0;b<this.uB.length;b++)if(this.uB[b]==
a)return b;return-1};a.prototype.ya=function(){k.prototype.ya.call(this);this.f("visible",z);this.f("width","100%");this.f("height","100%");this.f("includeInLayout",z);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",
p);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.ga=function(){var a=
z,b=z;if(this.n("items")){for(var a=this.k("items")||[],c=this.uB.length;c<a.length;c++){var f=new n;f.N({width:"100%",paddingLeft:5,paddingRight:5,paddingBottom:2,paddingTop:2,cursor:d.he});f.bind(g.Ch,this.gna,this);f.bind(g.zf,this.hna,this);f.bind(g.T,this.fna,this);this.uB.push(f)}f=this.Na.Oa();for(c=a.length;c<f.length;c++)this.Na.removeChild(f[c]);for(c=f.length;c<a.length;c++)this.Na.ma(this.uB[c]);for(c=0;c<a.length;c++)f[c].set("text",a[c]);this.p("items");b=a=p}if(this.n("selectedIndex")){this.p("selectedIndex");
a=p}for(var e=["horizontalAlign","popUpBackgroundOpacity","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight","popUpPaddingTop","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],c=0;c<e.length;c++){f=e[c];if(this.n(f)){this.p(f);b=p}}if(b){e={fontFamily:this.k("fontFamily"),fontSize:this.k("fontSize"),fontWeight:this.k("fontWeight"),fontStyle:this.k("fontStyle"),
horizontalAlign:this.k("horizontalAlign"),textDecoration:this.k("textDecoration"),textShadowColor:this.k("textShadowColor"),textShadowHorizontalLength:this.k("textShadowHorizontalLength"),textShadowVerticalLength:this.k("textShadowVerticalLength"),textShadowBlurRadius:this.k("textShadowBlurRadius"),textShadowOpacity:this.k("textShadowOpacity"),paddingBottom:this.k("popUpPaddingBottom"),paddingLeft:this.k("popUpPaddingLeft"),paddingRight:this.k("popUpPaddingRight"),paddingTop:this.k("popUpPaddingTop"),
backgroundOpacity:this.k("popUpBackgroundOpacity")};f=this.Na.Oa();for(c=0;c<f.length;c++)f[c].N(e)}e=["selectedIndex","overIndex","popUpBackgroundColor","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor"];for(c=0;c<e.length;c++){f=e[c];if(this.n(f)){this.p(f);a=p}}if(a)for(var a=this.k("popUpBackgroundColor"),e=this.k("rollOverPopUpBackgroundColor")||a,b=this.k("selectedPopUpBackgroundColor")||a,i=this.k("popUpFontColor"),
u=this.k("rollOverPopUpFontColor")||i,v=this.k("selectedPopUpFontColor")||i,w=this.k("selectedIndex"),x=this.k("overIndex"),f=this.Na.Oa(),c=0;c<f.length;c++)c==w?f[c].N({fontColor:v,backgroundColor:b}):c==x?f[c].N({fontColor:u,backgroundColor:e}):f[c].N({fontColor:i,backgroundColor:a});if(this.wG||this.n("popUpGap")||this.n("buttonWidth")){this.uc&&this.Na.set("minWidth",this.uc.Ba());this.p("popUpGap");this.V$();this.wG=z}this.fb(["popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength",
"popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{popUpShadow:"shadow",popUpShadowBlurRadius:"shadowBlurRadius",popUpShadowColor:"shadowColor",popUpShadowHorizontalLength:"shadowHorizontalLength",popUpShadowOpacity:"shadowOpacity",popUpShadowSpread:"shadowSpread",popUpShadowVerticalLength:"shadowVerticalLength"},[this.Na],p,p);this.J$();k.prototype.ga.call(this)};a.prototype.V$=function(){if(this.uc){var a=this.Ua(),b=this.uc.Uua(a),d=this.uc.Ba(),c=this.uc.gb(),i=this.k("popUpGap"),
g=this.Na.La,k=this.Na.Xa,n=a.gb()-(b.top+c+i)-5,w=b.top-5-i,x=this.k("horizontalAlign");if(k<=n){this.Jr=p;this.Na.set("top",b.top+c+i);this.Na.set("maxHeight",m);this.Na.set("overflow",f.Ts)}else if(k<=w){this.Jr=z;this.Na.set("top",b.top-k-i);this.Na.set("maxHeight",m);this.Na.set("overflow",f.Ts)}else{if(n>=w){this.Jr=p;this.Na.set("top",b.top+c+i);this.Na.set("maxHeight",n)}else{this.Jr=z;this.Na.set("top",b.top-w+i);this.Na.set("maxHeight",w)}this.Na.set("overflow",f.mm)}c=x==e.Kc?b.left+Math.round((d-
g)*0.5):x==e.Ka?b.left+d-g:b.left;c<0?c=b.left:b.left+g>a.Ba()&&(c=b.left+d-g);this.Na.set("left",c);this.J$()}};a.prototype.J$=function(){var a=this.k("popUpBorderRadius");this.Na.N({borderTopRadius:this.Jr?0:a,borderBottomRadius:this.Jr?a:0});for(var b=this.Na.Oa(),c=0;c<b.length;c++){var d=c==0,f=c==b.length-1;b[c].N({borderTopRadius:!this.Jr&&d?a:0,borderBottomRadius:this.Jr&&f?a:0})}};return a});
define("lm","require,fd,bY,lc,kJ,fN,iH".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("lc"),d=a("kJ"),f=a("fN"),g=a("iH"),a=b.extend(d,function(){d.call(this);this.Xc("DropDown");this.mB=z;this.uc=this.Fg=r;this.G9=p;this.td=-1;this.sk=z});a.prototype.ya=function(){d.prototype.ya.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",p);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",z);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.Ia=function(){d.prototype.Ia.call(this);if(!this.uc){this.uc=new f;this.uc.bind(e.yb,this.Wma,this);this.uc.bind(e.OPEN,this.pna,this);this.uc.bind(e.zs,this.wT,this);this.uc.bind(e.zd,this.Vma,this);this.uc.set("width","100%");this.uc.set("height",
"100%");this.ma(this.uc)}if(!this.Fg){this.Fg=new g;this.Fg.bind(e.zs,this.wT,this);this.Fg.bind(e.Ci,this.Ena,this);this.Ua().ma(this.Fg)}};a.prototype.Wma=function(){this.G9=p;this.Bc()};a.prototype.pna=function(){this.uc.open();this.Fg.set("selectedIndex",this.get("selectedIndex"));this.Fg.open(this.uc)};a.prototype.wT=function(){this.uc.close();this.Fg.close()};a.prototype.Vma=function(){this.uc.close();this.Fg.close()};a.prototype.Ena=function(){this.set("selectedIndex",this.Fg.get("selectedIndex"));
this.wT();this.sk=p};a.prototype.ga=function(){var a=z;if(this.n("prompt")||this.n("label")){a=p;this.p("label");this.p("prompt")}if(this.n("selectedIndex")||this.n("items")){var a=p,b=this.k("selectedIndex"),f=this.k("items");b>=0&&b>=f.length&&(b=-1);this.set("selectedIndex",b);this.Fg.set("items",this.k("items"));this.Fg.set("selectedIndex",this.k("selectedIndex"));this.p("items");this.p("selectedIndex");if(this.sk){this.sk=z;this.trigger(new c(e.aa))}}if(a){a=this.k("label");if(!a){b=this.k("selectedIndex");
a=b<0?this.k("prompt"):this.k("items")[b]}this.uc.set("label",a)}if(this.G9){this.Fg.set("minWidth",this.uc.Ba());this.Fg.set("buttonWidth",this.uc.Ba())}this.fb(["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","horizontalAlign","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],{},[this.uc,this.Fg],p,p);this.fb(["popUpBorderRadius","popUpGap","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight",
"popUpPaddingTop","popUpBackgroundColor","popUpBackgroundOpacity","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor","popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength","popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{},[this.Fg],p,p);this.fb(["arrowBeforeLabel","arrowWidth","arrowHeight","arrowColor","rollOverArrowColor","pressedArrowColor","pressedRollOverArrowColor",
"arrowGap","shadow","shadowBlurRadius","shadowColor","shadowHorizontalLength","shadowOpacity","shadowSpread","shadowVerticalLength","borderRadius","borderTopRadius","borderBottomRadius","borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderSize","borderLeftSize","borderTopSize","borderRightSize","borderBottomSize","borderColor","borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","rollOverBorderColor",
"pressedBorderColor","pressedRollOverBorderColor","backgroundColor","backgroundColorRatios","backgroundColorDirection","backgroundOpacity","rollOverBackgroundColor","rollOverBackgroundColorRatios","rollOverShadow","pressedBackgroundColor","pressedBackgroundColorRatios","pressedShadow","pressedRollOverBackgroundColor","pressedRollOverBackgroundColorRatios","pressedRollOverShadow","paddingLeft","paddingTop","paddingRight","paddingBottom"],{},[this.uc],p,p);d.prototype.ga.call(this)};return a});
define("ep","require,fd,u,lc,lm,dT,dm".split(","),function(a){var b=a("fd"),c=a("u"),e=a("lc"),d=a("lm"),f=a("dT"),g=a("dm"),a=b.extend(d,function(){d.call(this);this.Rb=r;this.s5=[];this.bind(e.aa,this.Zma,this)});f.A("DropDown",a).B("UIComponent").L({arrowBeforeLabel:"bool",arrowColor:"color",arrowHeight:"number",arrowWidth:"number",arrowGap:"number",fontFamily:"string",fontSize:"or[number, size]",fontColor:"color",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",
fontStyle:"enum[italic, normal]",gap:"number",horizontalAlign:"enum[left, center, right]",label:"string",playList:"PlayList",popUpGap:"number",popUpBackgroundColor:"color",popUpBackgroundOpacity:"number",popUpBorderRadius:"number",popUpFontColor:"color",popUpPaddingBottom:"number",popUpPaddingLeft:"number",popUpPaddingRight:"number",popUpPaddingTop:"number",popUpShadow:"bool",popUpShadowBlurRadius:"number",popUpShadowColor:"color",popUpShadowHorizontalLength:"number",popUpShadowOpacity:"number",popUpShadowSpread:"number",
popUpShadowVerticalLength:"number",pressedArrowColor:"color",pressedShadow:"bool",pressedBackgroundColor:"or[array[color], color]",pressedBackgroundColorRatios:"array[number]",pressedRollOverArrowColor:"color",pressedRollOverShadow:"bool",pressedRollOverBackgroundColor:"or[array[color], color]",pressedRollOverBackgroundColorRatios:"array[number]",prompt:"string",rollOverArrowColor:"color",rollOverBackgroundColor:"or[array[color], color]",rollOverBackgroundColorRatios:"array[number]",rollOverPopUpBackgroundColor:"color",
rollOverPopUpFontColor:"color",rollOverShadow:"bool",selectedPopUpBackgroundColor:"color",selectedPopUpFontColor:"color",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",textShadowColor:"color",textShadowHorizontalLength:"number",textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]).Vb([e.aa]);a.prototype.set=function(a,b){if(a=="playList"){if(this.Rb)for(this.Rb.unbind("change",this.Mo,this);this.s5.length;)this.s5.shift().unwatch();
if(this.Rb=b){c.watch(this.Rb,"items.label",this.UK,this);c.watch(this.Rb,"items.media.label",this.UK,this);this.UK();this.Rb.bind("change",this.Mo,this);this.Mo()}else this.UK()}d.prototype.set.call(this,a,b)};a.prototype.UK=function(){this.Rb?this.set("items",g(this.Rb.get("items")).map(function(a){return a.get("label")||a.get("media")&&a.get("media").get("label")})):this.set("items",[])};a.prototype.Mo=function(){this.set("selectedIndex",this.Rb.get("selectedIndex"))};a.prototype.Zma=function(){this.Rb&&
this.Rb.set("selectedIndex",this.get("selectedIndex"))};return a});
define("cG",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("distance",0.5);this.set("intensity",0.1);this.set("speed",0.2);this.set("opacity",0.1);this.set("color","#ffffff");this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("DustPanoramaOverlay",b).B("PanoramaOverlay").L({intensity:"number",speed:"number",color:"color",opacity:"number",distance:"number",
startDuration:"number",initialState:"enum[playing, stopped]",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"});b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b});
define("dw","fd,iU,lc,bY,V,kO,bq".split(","),function(a,b,c,e,d,f,g){var k={},i=a.extend(b,function(){b.call(this);this.Kb=m;this.Ll=[];this.m="stopped";this.set("easing","linear");this.set("duration",1E3);this.set("loop",z);this.set("animationDirection","normal")});i.prototype.play=function(a){a||(a=k);if(!this.dz(a))if(this.m=="stopped"||this.Ll.indexOf(a)<0){this.m="playing";this.Ll.push(a);this.ke=0;this.Kb=Math.max(this.get("duration",1E3),1);this.ze=new f(this.get("easing","linear"),[new g("pos",
0,1)],this.Kb);this.ze.setTime(this.ke);this.ky();this.Yo();this.BC()}else this.m="playing"};i.prototype.reverse=function(a){a||(a=k);if(!this.Nva(a))if(this.m=="stopped"||this.Ll.indexOf(a)<0){this.m="playingReverse";this.Ll.push(a);this.ke=this.Kb=Math.max(this.get("duration",1E3),0);this.ze=new f(this.get("easing","linear"),[new g("pos",0,1)],this.Kb);this.ze.setTime(this.ke);this.ky();this.Yo();this.BC()}else this.m="playingReverse"};i.prototype.stop=function(){this.m="stopped";if(this.ke!==0){this.ke=
0;this.Yo();this.BC()}};i.prototype.end=function(){if(this.m!="stopped"){this.ke=this.Kb;this.Yo();this.BC()}};i.prototype.dz=function(a){return this.m=="playing"&&this.Ll.indexOf(a)>=0};i.prototype.Nva=function(a){return this.m=="playingReverse"&&this.Ll.indexOf(a)>=0};i.prototype.Dg=function(a){if(this.m!="stopped"){this.ke=this.m=="playing"?Math.min(this.Kb,this.ke+a):Math.max(0,this.ke-a);this.ze.setTime(this.ke);this.Yo();this.BC()}};i.prototype.ds=function(){return this.ze&&this.ze.wb("pos")||
0};i.prototype.Eq=function(a){if(this.Ll)for(var b=0;b<this.Ll.length;b++)a.call(this,this.Ll[b],b)};i.prototype.ky=function(){this.trigger(new e(i.s_))};i.prototype.Yo=function(){this.trigger(new e(i.n_))};i.prototype.iy=function(){this.trigger(new e(i.Dj))};i.prototype.jy=function(){this.trigger(new e(i.Yv))};i.prototype.BC=function(){if(this.m=="playingReverse"&&this.ke<=0){this.jy();this.Ll=[];if(this.m!="stopped"){this.stop();this.get("loop")&&this.play()}}else if(this.m=="playing"&&this.ke>=
this.Kb){this.iy();this.Ll=[];if(this.m!="stopped"){this.stop();this.get("animationDirection")=="alternate"?this.reverse():this.get("loop")&&this.play()}}else this.m!="stopped"&&d.Ma(this.Dg,this)};i.s_="start";i.n_="frame";i.Dj="end";i.Yv="reverseEnd";return i});
define("bm",["require","fd","dT","dw"],function(a){var b=a("fd"),c=a("dT"),e=a("dw"),a=b.extend(e,function(){e.call(this)});c.A("Effect",a).B("Object").L({duration:"number",easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",animationDirection:"enum[normal, alternate]",loop:"bool"}).Wf([e.s_,e.n_,e.Dj,e.Yv]).Rg({play:function(){return e.prototype.play.apply(this,arguments)},reverse:function(){return e.prototype.reverse.apply(this,
arguments)},getPosition:function(){return e.prototype.ds.apply(this,arguments)}});return a});
define("bb",["fd","dw"],function(a,b){var c=a.extend(b,function(){b.call(this);this.dP=this.cP=r});c.prototype.ky=function(){b.prototype.ky.call(this);this.cP=[];this.dP=[];this.Eq(function(a){this.cP.push(this.get("alphaFrom",a.wh()));this.dP.push(this.get("alphaTo",a.wh()))});this.OJ()};c.prototype.Yo=function(){b.prototype.Yo.call(this);this.OJ()};c.prototype.OJ=function(){this.Eq(function(a,b){var c=this.cP[b],c=c+(this.dP[b]-c)*this.ds(),g=0<a.wh()&&a.Gc;!g&&0<c?(a.yj(0),a.Ze(p),a.yj(c)):0==
c?(a.Ze(z),a.yj(1)):a.yj(c)})};c.prototype.iy=function(){this.OJ();b.prototype.iy.call(this)};c.prototype.jy=function(){this.OJ();b.prototype.jy.call(this)};return c});define("kj",["fd","bb"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",0);this.set("alphaTo",1)})});define("kt",["fd","kj","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("FadeInEffect",a).B("Effect");return a});
define("kw",["fd","bb"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",1);this.set("alphaTo",0)})});define("ho",["fd","kw","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("FadeOutEffect",a).B("Effect");return a});
define("ci","require,fd,iU,lc,dT,dw".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("dw"),a=b.extend(c,function(){c.call(this);this.set("enabled",p);this.set("interactionEnabled",p);this.set("enabledInCardboard",z);this.set("enabledInStandard",p);this.set("enabledInSurfaceSelection",p);this.set("items",[]);this.set("rollOverItems",[]);this.set("maps",[]);this.set("rollOverMaps",[]);this.set("areas",[]);this.set("fadeInDuration",200);this.set("fadeOutDuration",200);this.set("projected",
z);this.bind(e.nd,this.hh,this,p);this.bind(e.zd,this.eh,this,p);this.Bf=[];this.Gc=z});d.A("HotspotPanoramaOverlay",a).B("PanoramaOverlay").L({centerOverDisplay:"bool",rollOverDisplay:"bool",useHandCursor:"bool",enabled:"bool",enabledInSurfaceSelection:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",projected:"bool",effect:"Effect",rollOverEffect:"Effect",items:"array[or[FlatHotspotPanoramaOverlayImage, HotspotPanoramaOverlayImage, QuadHotspotPanoramaOverlayImage]]",
rollOverItems:"array[or[FlatHotspotPanoramaOverlayImage, HotspotPanoramaOverlayImage, QuadHotspotPanoramaOverlayImage]]",maps:"array[or[FlatHotspotPanoramaOverlayMap, HotspotPanoramaOverlayMap, QuadHotspotPanoramaOverlayMap]]",rollOverMaps:"array[or[FlatHotspotPanoramaOverlayMap, HotspotPanoramaOverlayMap, QuadHotspotPanoramaOverlayMap]]",areas:"array[or[FlatHotspotPanoramaOverlayArea, HotspotPanoramaOverlayArea, QuadHotspotPanoramaOverlayArea]]"});a.prototype.set=function(a,b){switch(a){case "enabledInCardboard":this.set("enabledInVR",
b);break;case "effect":case "rollOverEffect":case "areas":this.Loa();this.Bf=[]}c.prototype.set.call(this,a,b);switch(a){case "enabledInCardboard":this.set("enabledInVR",b);break;case "effect":case "rollOverEffect":case "areas":this.mga()}};a.prototype.mga=function(){this.get("effect")&&this.get("effect").bind(f.Yv,this.r6,this,p);this.get("rollOverEffect")&&this.get("rollOverEffect").bind(f.Yv,this.l7,this,p);this.get("areas",[]).forEach(function(a){a.bind(e.tc,this.h6,this,p);a.bind(e.Ib,this.g6,
this,p)}.bind(this))};a.prototype.Loa=function(){this.get("effect")&&this.get("effect").unbind(f.Yv,this.r6,this,p);this.get("rollOverEffect")&&this.get("rollOverEffect").unbind(f.Yv,this.l7,this,p);this.get("areas",[]).forEach(function(a){a.unbind(e.tc,this.h6,this,p);a.unbind(e.Ib,this.g6,this,p)}.bind(this))};a.prototype.h6=function(a){if(this.Bf.indexOf(a.source)<0){this.Bf.push(a.source);this.Bf.length==1&&this.Cna()}};a.prototype.g6=function(a){a=this.Bf.indexOf(a.source);if(a>=0){this.Bf.splice(a,
1);this.Bf.length==0&&this.Bna()}};a.prototype.Cna=function(){var a=this.get("effect"),b=this.get("rollOverEffect");b&&(a&&a.ds()>0?a.reverse():b.play())};a.prototype.Bna=function(){var a=this.get("rollOverEffect");if(a){var b=this.get("effect");a.ds()>0?a.reverse():b&&b.get("loop")&&b.play()}};a.prototype.r6=function(){if(this.Bf.length>0){var a=this.get("rollOverEffect");if(a){this.get("effect").stop();a.play()}}};a.prototype.l7=function(){if(this.Bf.length==0){this.get("rollOverEffect").stop();
var a=this.get("effect");a&&a.get("loop")&&a.play()}};a.prototype.hh=function(){var a=this.get("effect");a&&a.play()};a.prototype.eh=function(){var a=this.get("effect");a&&a.stop();(a=this.get("rollOverEffect"))&&a.stop()};return a});define("jx",["require","fd","dT","ci"],function(a){var b=a("fd"),c=a("dT"),e=a("ci"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlay",a).B("HotspotPanoramaOverlay");return a});
define("q",["fd","iU","dT","lc"],function(a,b,c,e){a=a.extend(b,function(){b.call(this);this.set("displayTooltipInTouchScreens",p)});c.A("HotspotPanoramaOverlayArea",a).B("Object").L({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",displayTooltipInTouchScreens:"bool",useHandCursor:"bool"}).Vb([e.tc,e.Ib,e.Ch,e.zf]).Wf([e.T]);return a});define("ek",["dT","q"],function(a,b){a.A("FlatHotspotPanoramaOverlayArea",b).B("HotspotPanoramaOverlayArea");return b});
define("bc",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f){c.call(this);a!==m&&this.set("vertices",a);this.set("opacity",b!==m?b:1);f!==m&&this.set("timestamp",f)});a.A("QuadPanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",timestamp:"number",vertices:"array[PanoramaPoint]"});return b});
define("gv",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("roll",f);this.set("opacity",g!==m?g:1);k!==m&&this.set("timestamp",k)});a.A("FlatPanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",pitch:"number",roll:"number",timestamp:"number",yaw:"number"});return b});
define("eK",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k,i,n,j,l){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);g!==m&&this.set("rotationY",g);k!==m&&this.set("roll",k);i!==m&&this.set("hfov",i);n!==m&&this.set("vfov",n);this.set("opacity",j!==m?j:1);l!==m&&this.set("timestamp",l)});a.A("PanoramaOverlayPlaybackPosition",b).B("Object").L({opacity:"number",yaw:"number",pitch:"number",rotationX:"number",
rotationY:"number",roll:"number",hfov:"number",vfov:"number",timestamp:"number"});return b});define("cb",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b){c.call(this);this.set("yaw",a);this.set("pitch",b)});a.A("PanoramaPoint",b).B("Object").L({pitch:"number",yaw:"number"});return b});
define("L",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f,g,k,i,n){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("rotationX",f);g!==m&&this.set("rotationY",g);k!==m&&this.set("rotationZ",k);i!==m&&this.set("hfov",i);n!==m&&this.set("timestamp",n)});a.A("PopupPanoramaOverlayPlaybackPosition",b).B("Object").L({yaw:"number",pitch:"number",rotationX:"number",rotationY:"number",rotationZ:"number",hfov:"number",timestamp:"number"});
return b});
define("hP","require,iU,bc,gv,eK,cb,L".split(","),function(a){var b=a("iU"),c=a("bc"),e=a("gv"),d=a("eK"),f=a("cb"),g=a("L");return{zua:function(a){return this.IH(a,this.Sja)},cY:function(a){return this.IH(a,this.joa)},Rua:function(a){return this.IH(a,this.qoa)},eY:function(a){return this.IH(a,this.yoa)},Sja:function(a){return new e(b.prototype.get.call(a,"yaw",0),b.prototype.get.call(a,"pitch",0),b.prototype.get.call(a,"roll",0),b.prototype.get.call(a,"opacity",1),0)},yoa:function(a){var d=b.prototype.get.call(a,
"vertices",[r,r,r,r]);return new c([d[0]||new f(0,0),d[1]||new f(0,0),d[2]||new f(0,0),d[3]||new f(0,0)],b.prototype.get.call(a,"opacity",1),0)},joa:function(a){function c(d,f){return b.prototype.get.call(a,d,f)}return new d(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("roll",0),c("hfov",c("vfov")===m?45:m),c("vfov"),c("opacity",1),0)},qoa:function(a){function c(d,f){return b.prototype.get.call(a,d,f)}return new g(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("rotationZ",
0),c("hfov",45),0)},IH:function(a,c){var d=b.prototype.get.call(a,"playbackPositions")||[];return d.length>0?d.slice().sort(function(a,b){return a.get("timestamp")-b.get("timestamp")||d.indexOf(a)-d.indexOf(b)}):[c(a)]}}});
define("gV","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Lb=m});d.A("FlatHotspotPanoramaOverlayImageBase",a).B("Object").L({distance:"number",height:"number",horizontalAlign:"enum[center, left, right]",image:"ImageResource",offsetX:"number",offsetY:"number",opacity:"number",pitch:"number",playbackPositions:"array[FlatPanoramaOverlayPlaybackPosition]",roll:"number",
scale:"number",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",verticalAlign:"enum[bottom, middle, top]",width:"number",yaw:"number"}).Vb([e.nd,e.zd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.zua(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "opacity":case "distance":case "pitch":case "roll":case "yaw":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,
a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("n",["require","fd","dT","gV"],function(a){var b=a("fd"),c=a("dT"),e=a("gV"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayImage",a).B("FlatHotspotPanoramaOverlayImageBase");return a});
define("dd",["require","fd","dT","gV"],function(a){var b=a("fd"),c=a("dT"),e=a("gV"),a=b.extend(e,function(){e.call(this)});c.A("FlatHotspotPanoramaOverlayMap",a).B("FlatHotspotPanoramaOverlayImageBase");return a});
define("jL","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("contentInteractive",z);this.set("transparent",z)});d.A("FramePanoramaOverlay",a).B("PanoramaOverlay").L({contentInteractive:"bool",displayTooltipInTouchScreens:"bool",enabled:"bool",hfov:"number",height:"number",image:"ImageResource",interactionEnabled:"bool",pitch:"number",
roll:"number",rotationX:"number",rotationY:"number",toolTip:"string",transparent:"bool",url:"string",useHandCursor:"bool",playbackPositions:"array[PanoramaOverlayPlaybackPosition]",vfov:"number",width:"number",yaw:"number"}).Vb([e.zd,e.Ch,e.zf,e.tc,e.Ib,e.nd]).Wf([e.T]).Ah(["url"]);a.prototype.set=function(a,b){var d=z;switch(a){case "hfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "vfov":case "yaw":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!=
"playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.cY(this);return this.Lb}return c.prototype.get.call(this,a,b)};return a});define("cD",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.kb={layout:e.Wp};a.defaults(d.kb,c.kb);d.prototype.ya=function(){this.Rj(d.kb)};return d});
define("hr",["dm","fd","cD","dT"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("GridContainer",a).B("UIComponent").L({children:"array[UIComponent]",contentOpaque:"bool",childrenInteractionEnabled:"bool",creationPolicy:"enum[inAdvance, delayed]",gap:"number",horizontalAlign:"enum[center, left, right]",itemHeight:"or[number, percent]",itemMaxHeight:"number",itemMaxWidth:"number",itemMinHeight:"number",itemMinWidth:"number",itemWidth:"or[number, percent]",overflow:"enum[scroll, hidden, visible]",
scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]",verticalAlign:"enum[bottom, middle, top]"});return a});
define("hd","require,dm,jquery.mod,bY,eL,lc,gb,jk,hW,gu,fd".split(","),function(a){function b(){}function c(a){this.Dwa=a;this.Ck=[];this.Qd=0}var e=a("dm");a("jquery.mod");var d=a("bY"),f=a("eL"),g=a("lc"),k=a("gb"),i=a("jk"),n=a("hW"),j=a("gu"),l=a("fd").extend(f,function(a){f.call(this);this.url=a;this.WY=this.Qd=0;this.status=l.yO;this.Sp=r});l.prototype.JY=function(a){this.WY=this.WY+a};l.prototype.fz=function(a){this.Qd=this.Qd+a};l.prototype.start=function(){this.status=l.ZF;n.HZ(this.url)?
this.ar():this.ak=j.add(this.url,k.xF,this.npa.bind(this),this.m2.bind(this))};l.prototype.npa=function(){this.Sp=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.Sp.open("GET",this.url);this.Sp.onreadystatechange=function(){this.Sp.readyState>3&&this.ar()}.bind(this);this.Sp.send()};l.prototype.m2=function(){if(this.Sp){this.Sp.abort();this.Sp=r}};l.prototype.stop=function(){if(this.status==l.ZF){this.status=l.yO;this.m2();this.ak&&this.ak.cancel()}};l.prototype.ar=
function(){this.Sp=r;if(this.ak){this.ak.loaded();this.ak=r}this.status=l.Afa;this.trigger(new d(g.S))};l.yO="not loaded";l.ZF="loading";l.Afa="loaded";c.prototype.gta=function(a){a.forEach(function(a){if(this.Ck.indexOf(a)<0){this.Ck.push(a);a.fz(this.Qd);a.JY(1)}}.bind(this))};c.prototype.Mwa=function(a){var b=this.Ck;this.Ck=[];b.forEach(function(b){if(a.indexOf(b)<0)this.Ck.push(b);else{b.fz(-this.Qd);b.JY(-1)}}.bind(this))};c.prototype.Fwa=function(){this.Ck.forEach(function(a){a.fz(-this.Qd);
a.JY(-1)}.bind(this));this.Ck=[];this.Qd=0};c.prototype.fz=function(a){this.Qd=this.Qd+a;this.Ck.forEach(function(b){b.fz(a)})};b.Oc=[];b.s8=[];b.aka=0;b.Baa=function(a,b){this.KJ(a).gta(b.map(function(a){return this.X(a)}.bind(this)));this.uK();this.J()};b.Pwa=function(a,b){this.KJ(a).Mwa(b.map(function(a){return this.X(a)}.bind(this)));this.uK();this.J()};b.Gwa=function(a){this.KJ(a).Fwa();this.uK();this.J()};b.wM=function(a,b){this.KJ(a).fz(b);this.uK();this.J()};b.uK=function(){this.Oc.sort(function(a,
b){return b.Qd-a.Qd})};b.J=function(a){if(this.enabled()&&(a||!this.Xm))if(a){this.Xm&&clearTimeout(this.Xm);this.Xm=r;var a=this.Lka(),b=this.Mka();e(a).difference(b).forEach(function(a){a.stop()});e(b).difference(a).forEach(function(a){a.start()})}else this.Xm=setTimeout(function(){this.Xm=r;this.J(p)}.bind(this),1E3)};b.Xm=r;b.Lka=function(){return this.Oc.filter(function(a){return a.status==l.ZF})};b.Mka=function(){for(var a=this.Nka(),b=[],c=0;c<this.Oc.length&&b.length<a;c++){var d=this.Oc[c];
d.WY>0&&(d.status==l.yO||d.status==l.ZF)&&b.push(d)}return b};b.Nka=function(){return this.aka>0?0:1};b.KJ=function(a){var b=e(this.s8).find(function(b){return b.Dwa==a});if(!b){b=new c(a);this.s8.push(b)}return b};b.X=function(a){var b=e(this.Oc).find(function(b){return b.url==a});if(!b){b=new l(a);b.bind(g.S,this.J,this);this.Oc.push(b)}return b};b.enabled=function(a){if(a===m)return b.ija||b.jja?z:b.dR!==m?b.dR:b.V;b.V=a};b.V=p;b.yZ=function(a){b.dR=a.get(TDV.PlayerSettings.BACKGROUND_PRELOAD_ENABLED)};
b.dR=m;b.jja=i.Lg("disable-background-preload",z);b.ija=z;return b});define("ds",["fd","iU","dT","hd"],function(a,b,c,e){var d=a.extend(b,function(){b.call(this);this.zW=a.An(this.zW,this)});c.A("Media",d).B("Object").L({label:"string",thumbnailUrl:"string"}).Ah(["thumbnailUrl"]);d.prototype.zW=function(){e.Baa(this,this.wp())};d.prototype.wp=function(){return[]};d.prototype.Owa=function(){e.Gwa(this)};d.prototype.set=function(a,c){b.prototype.set.call(this,a,c);this.zW()};return d});
define("gz",["require","dm","fd","dT","ds"],function(a){a("dm");var b=a("fd"),c=a("dT"),e=a("ds"),a=b.extend(e,function(){e.call(this);this.lI=this.ly=m;this.set("distanceToFloor",1.7)});c.A("Panorama",a).B("Media").L({adjacentPanoramas:"array[AdjacentPanorama]",audios:"array[PanoramaAudio]",cardboardMenu:"Menu",flipImageHorizontally:"bool",frames:"array[PanoramaFrame]",distanceToFloor:"number",hfov:"number",hfovMax:"number",hfovMin:"or[number,percent]",mapLocations:"array[PanoramaMapLocation]",overlays:"array[PanoramaOverlay]",
partial:"bool",pitch:"number",vfov:"number",vrMenu:"Menu"});a.prototype.get=function(a,b){switch(a){case "overlays":return this.MR();case "frames":return this.r4()}return e.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){switch(a){case "cardboardMenu":this.set("vrMenu",b)}e.prototype.set.call(this,a,b)};a.prototype.MR=function(){var a=e.prototype.get.call(this,"overlays");a||(a=[]);return this.wV(a)};a.prototype.wV=function(a){if(this.ly===m||this.lI!=a){var b=function(a){return c.ob("PopupPanoramaOverlay",
a)},e=function(a){return c.ob("LensFlarePanoramaOverlay",a)};this.lI=a;this.ly=[].concat(a.filter(function(a){return!(b(a)||e(a))}),a.filter(e),a.filter(b))}return this.ly};a.prototype.aca=function(){return 0<this.get("overlays").filter(function(a){return c.ob("TripodCapPanoramaOverlay",a)}).length};a.prototype.Pba=function(){return 0<this.get("overlays").filter(function(a){return c.ob("CeilingCapPanoramaOverlay",a)}).length};a.prototype.qca=function(){if(!this.pca())return z;var a=this.get("pitch",
0),b=this.get("vfov",180);if(179.9<=b)return p;var c=this.Pba()?90:a+0.5*b,a=this.aca()?-90:a-0.5*b;return 179.9<=c-a?p:z};a.prototype.pca=function(){return 359.9<=this.get("hfov")&&!this.get("partial")};a.prototype.yh=function(){var a=this.r4();return 0<a.length&&a[0].yh()};a.prototype.SL=S(0);a.prototype.r4=function(){var a=e.prototype.get.call(this,"frames",[]);a.forEach(function(a){a.lta(this)}.bind(this));return a};return a});
define("kc",["require","fd","dT","gz"],function(a){var b=a("fd"),c=a("dT"),e=a("gz"),a=b.extend(e,function(){e.call(this)});c.A("HDRPanorama",a).B("Panorama").L({minimumLuminance:"number",maximumLuminance:"number",luminanceChangeTime:"number",maxLuminanceChangeSpeed:"number"});a.prototype.SL=function(){var a=this.get("frames")||[];return Math.floor((a.length-1)/2)};return a});
define("iY",["fd","iU","dT","lc"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});c.A("HotspotMapOverlayArea",a).B("Object").L({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",useHandCursor:"bool"}).Vb([e.tc,e.Ib]).Wf([e.T]);return a});
define("ja",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),e=b.extend(c,function(){c.call(this)});a.A("ImageResourceLevel",e).B("Object").L({url:"string",width:"number",height:"number",grayscale:"bool",premultipliedAlpha:"bool",tags:"or[array[enum[preload,mobile,ipadpro,oculusgo,mobilevr,mobilevr2gen,ondemand]], enum[preload,mobile,ipadpro,oculusgo,mobilevr,mobilevr2gen,ondemand]]"}).Ah(["url"]);e.prototype.get=function(a,b){switch(a){case "tags":var g=c.prototype.get.call(this,
a);g||(g=[]);Array.isArray(g)||(g=[g]);0>g.indexOf(e.om)&&c.prototype.get.call(this,"grayscale")&&(g=g.concat([e.om]));return g}return c.prototype.get.call(this,a,b)};e.prototype.$ba=function(a){return 0<=this.get("tags").indexOf(a)};e.om="preload";e.v0="mobile";e.u0="ipadpro";e.BO="mobilevr";e.w0="mobilevr2gen";e.CO="ondemand";return e});
define("eE",["require","ja","r","jk"],function(a){var b=a("ja"),c=a("r"),e=a("jk");return{Yl:function(a){return this.Mg(a,"load")},lv:function(a){return this.Mg(a,"preload")},Zy:function(a){return this.Yl(a)!=this.lv(a)},Mg:function(a,b){var c=a.get("levels")||[],e=this.ika(c),e=this.ala(b,e),c=this.Pja(c,b),i=this.z4(c,e[0],e[1],this.Zka(b));i||(i=this.z4(c,e[0],e[1],m));return i},Pja:function(a,f){"preload"==f?a=this.QA(a,b.om):"load"==f&&(a=this.Oja(a,b.om));c.zp()&&(a=this.QA(a,b.u0));c.wY()&&
(a=this.QA(a,b.w0));c.se()&&(a=this.QA(a,b.BO));c.Wa()&&(a=this.QA(a,b.v0));return a},ika: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")},ala:function(a,b){if("preload"==a)return[0,0];var e=1E4;this.Uja()||(c.se()?e=2048:c.zp()?e=1280:c.Wa()&&(e=1024));return 1>b?[e*b,e]:[e,e/b]},Zka:function(a){if("load"==a)return z},Uja:function(){return c.zp()&&e.Lg("recent_ipad_use_max_res",z)},QA:function(a,b){var c=
a.filter(function(a){return a.$ba(b)});0==c.length&&(c=a);return c},Oja:function(a,b){var c=a.filter(function(a){return!a.$ba(b)});0==c.length&&(c=a);return c},z4:function(a,b,c,e){function i(a){return Math.abs(a.get("width")*a.get("height")-b*c)}a=a.filter(function(a){return e!==m&&e!=a.get("grayscale",z)?z:p});if(0==a.length)return r;a.sort(function(a,b){return i(a)-i(b)});return a[0]}}});
define("C","require,fd,iU,dT,eE,jP,je".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("dT"),d=a("eE"),f=a("jP"),g=a("je"),a=b.extend(c,function(){c.call(this);this.set("x",0);this.set("y",0);this.set("offsetX",0);this.set("offsetY",0);this.set("width",0);this.set("height",0);this.set("scaleMode",g.Ln);this.set("horizontalAlign",f.Kc);this.set("verticalAlign",f.rc)});e.A("HotspotMapOverlayImageBase",a).B("Object").L({height:"number",horizontalAlign:"enum[center, left, right]",image:"ImageResource",
offsetX:"number",offsetY:"number",scaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",verticalAlign:"enum[bottom, middle, top]",width:"number",x:"number",y:"number"});a.prototype.Yl=function(){return this.get("image")?d.Yl(this.get("image")):r};a.prototype.lv=function(){return this.get("image")?d.lv(this.get("image")):r};return a});define("iC",["fd","bY"],function(a,b){return a.extend(b,function(a,e){b.call(this,a);this.zh=e})});
define("bR",["require","fd","iU","lc","iC"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("iC"),a=b.extend(c,function(){c.call(this);this.OD=[];this.Td=m;this.m="initial"});a.prototype.xn=R("OD");a.prototype.AZ=function(a){this.OD!=a&&(this.OD=a,this.ar=this.Td=m)};a.prototype.Nxa=function(a){this.Td!==a&&(this.m="loading",this.Td=a,this.trigger(new d(e.sc,this.Td)))};a.prototype.oZ=function(){"loaded"!==this.m&&(this.m="loaded",this.trigger(e.S))};a.prototype.oxa=function(){"loaded"!==this.m&&
(this.m="error",this.trigger(e.ie))};return a});define("cC",["fd","bR"],function(a,b){var c=a.extend(b,function(a){b.call(this);this.Ud=a});c.prototype.re=R("Ud");c.E0="map";c.F0="overlay";return c});define("hv",["fd","cC"],function(a,b){var c=a.extend(b,function(a,c,f){b.call(this,b.F0);this.Zna=a;this.ca=c;this.da=f});c.prototype.getX=R("ca");c.prototype.getY=R("da");c.D0="image";c.C0="fov";return c});
define("iW",["fd","hv"],function(a,b){var c=a.extend(b,function(a,c,f,g,k,i,n,j,l,q,o){b.call(this,b.D0,c,f);this.Md=a;this.M8=g;this.au=k;this.bu=i;this.W=n;this.ea=j;this.Dd=l;this.Nh=q;this.ii=o;this.OD=[a]});c.prototype.sj=R("Md");c.prototype.$c=R("W");c.prototype.Nd=R("ea");return c});
define("fv","require,fd,dT,C,eE,iW".split(","),function(a){var b=a("fd"),c=a("dT"),e=a("C");LevelUtil=a("eE");ImageOverlay=a("iW");a=b.extend(e,function(){e.call(this);this.Do=m});c.A("HotspotMapOverlayImage",a).B("HotspotMapOverlayImageBase");a.prototype.getItem=function(){return this.Ng()};a.prototype.Ng=function(a){if(this.Do===m)this.Do=this.BL(a);return this.Do};a.prototype.BL=function(a){var b=this.get("image");if(b){b=LevelUtil.Yl(b);return new ImageOverlay(b.get("url"),this.get("x"),this.get("y"),
a,this.get("offsetX"),this.get("offsetY"),this.get("width"),this.get("height"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"))}return r};return a});define("F",["require","fd","dT","C"],function(a){var b=a("fd"),c=a("dT"),e=a("C"),a=b.extend(e,function(){e.call(this)});c.A("HotspotMapOverlayMap",a).B("HotspotMapOverlayImageBase");return a});
define("eJ","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.set("scale",1);this.Lb=m});d.A("HotspotPanoramaOverlayImageBase",a).B("Object").L({yaw:"number",pitch:"number",roll:"number",rotationX:"number",rotationY:"number",hfov:"number",vfov:"number",distance:"number",horizontalAlign:"enum[center, left, right]",verticalAlign:"enum[bottom, middle, top]",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",
opacity:"number",scale:"number",image:"ImageResource",playbackPositions:"array[PanoramaOverlayPlaybackPosition]"}).Vb([e.nd,e.zd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.cY(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "distance":case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "yaw":case "opacity":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,
a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("iN",["require","fd","dT","eJ"],function(a){var b=a("fd"),c=a("dT"),e=a("eJ"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayImage",a).B("HotspotPanoramaOverlayImageBase");return a});define("P",["require","fd","dT","eJ"],function(a){var b=a("fd"),c=a("dT"),e=a("eJ"),a=b.extend(e,function(){e.call(this)});c.A("HotspotPanoramaOverlayMap",a).B("HotspotPanoramaOverlayImageBase");return a});
define("iD",[],function(){function a(a){for(var b={},a=a.split(","),c=0;c<a.length;c++)b[a[c]]=p;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"),
g=a("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),k=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),i=a("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),n=a("script,style");return function(a,l){function q(a,b,c,j){b=b.toLowerCase();if(f[b])for(;u.last()&&g[u.last()];)o(0,u.last());k[b]&&
u.last()==b&&o(0,b);(j=d[b]||!!j)||u.push(b);if(l.start){var n=[];c.replace(e,function(a,b,c,d,f){a=c?c:d?d:f?f:i[b]?b:"";n.push({name:b,value:a,HX:a.replace(/(^|[^\\])"/g,'$1\\"')})});l.start&&l.start(b,n,j)}}function o(a,b){if(b){b=b.toLowerCase();for(c=u.length-1;0<=c&&u[c]!=b;c--);}else var c=0;if(0<=c){for(var d=u.length-1;d>=c;d--)l.end&&l.end(u[d]);u.length=c}}var t,s,u=[],v=a;for(u.last=function(){return this[this.length-1]};a;){s=p;if(!u.last()||!n[u.last()]){if(0==a.indexOf("<\!--"))t=a.indexOf("--\>"),
0<=t&&(l.Fta&&l.Fta(a.substring(4,t)),a=a.substring(t+3),s=z);else if(0==a.indexOf("</")){if(t=a.match(c))a=a.substring(t[0].length),t[0].replace(c,o),s=z}else if(0==a.indexOf("<")&&(t=a.match(b)))a=a.substring(t[0].length),t[0].replace(b,q),s=z;s&&(t=a.indexOf("<"),s=0>t?a:a.substring(0,t),a=0>t?"":a.substring(t),l.hE&&l.hE(s))}else a=a.replace(RegExp("(.*?)</"+u.last()+"[^>]*>"),function(a,b){b=b.replace(/<\!--(.*?)--\>/g,"$1").replace(/<!\[CDATA\[(.*?)]]\>/g,"$1");l.hE&&l.hE(b);return""}),o(0,
u.last());a==v&&h("Parse Error: "+a);v=a}o()}});
define("eg","require,jquery.mod,dm,fd,lc,bY,eL,r,iD".split(","),function(a){var b=a("jquery.mod");a("dm");var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("r"),k=a("iD"),i=c.extend(f,function(a){f.call(this);this.Ad=b(a);this.QC=[];this.Aq=r});i.prototype.yva=function(a){a&&a.toLowerCase().indexOf("<script")>=0?g.Ey()==g.Iz?this.Rla(a):this.Qla(a):this.Pla(a)};i.prototype.Pla=function(a){this.Ad.empty();a&&this.Ad.append(a);this.u$()};i.prototype.Rla=function(a){this.Ad.empty();var c=this.Ad,d=r,f=
[],e=r;new k(a,{start:function(a,f,i){if(a=="script"){for(var i=m,g=0;g<f.length&&i===m;g++){var k=f[g];if(k.name=="src")i=k.value}e={parent:c,previousSibling:d,src:i,content:""}}else{for(var n={},g=0;g<f.length;g++){k=f[g];n[k.name]=k.value}f=b("<"+a+"/>");f.attr(n);c.append(f);if(i)d=f;else{c=f;d=r}}},hE:function(a){e?e.content=e.content+a:c.append(a)},end:function(a){if(a=="script"){f.push(e);e=r}else{d=c;c=c.parent()}}});this.QC=f;this.qI()};i.prototype.Qla=function(a){function d(){e++;return f+
e}this.Ad.empty();var f="fragment_"+c.eda(6)+"_",e=0,i=d(),g=[i],s=m,u=[],v=r,w="";new k(a,{start:function(a,b,c){if(a=="script"){c=m;for(a=0;a<b.length&&c===m;a++){var f=b[a];if(f.name=="src")c=f.value}v={parentClsName:g[g.length-1],previousSiblingClsName:s,src:c,content:""}}else{w=w+("<"+a);for(var e=d(),i=z,a=0;a<b.length;a++){f=b[a];if(f.name=="class"){f.HX=f.HX+(" "+e);i=p}w=w+(" "+f.name+'="'+f.HX+'"')}i||(w=w+(' class="'+e+'"'));if(c){w=w+"/>";s=e}else{w=w+">";g.push(e);s=m}}},hE:function(a){v?
v.content=v.content+a:w=w+a},end:function(a){if(a=="script"){u.push(v);v=r}else{s=g[g.length-1];g.pop()}}});this.Ad.get(0).innerHTML=w;this.Ad.addClass(i);for(a=0;a<u.length;a++){var x=u[a],y=x.parentClsName;delete x.parentClsName;s=x.previousSiblingClsName;delete x.previousSiblingClsName;x.parent=b("."+y);x.previousSibling=s?b("."+s):r}this.Ad.removeClass(i);this.QC=u;this.qI()};i.prototype.qI=function(){if(!this.Aq)if(this.QC.length>0){this.Aq=this.QC[0];this.QC.splice(0,1);var a=this.Aq.src;if(a){var c=
this;i.tma(a,function(){c.C5()},function(){c.zma()})}else{var d=this.Aq.parent,a=this.Aq.previousSibling,f;f=a?a.next():d.children(":first");a=document.write;document.write=f.length?function(a){f.before(a)}:function(a){d.append(a)};b.globalEval(this.Aq.content);document.write=a;this.C5()}}else this.u$()};i.prototype.zma=function(){this.Aq=r;this.qI()};i.prototype.C5=function(){this.Aq=r;this.qI()};i.prototype.u$=function(){this.trigger(new d(e.Da))};i.A5={};i.tma=function(a,c,d){i.A5[a]?c.call(window):
b.ajax({url:a,async:z,dataType:"script",error:d,success:function(){i.A5[a]=p;c.call(window)}})};return i});
define("jD",["fd","lc","bY","eL"],function(a,b,c,e){a=a.extend(e,function(a,b){e.call(this);this.Zla=a;this.V=b;this.kg=r});a.prototype.bind=function(){var a=e.prototype.bind.apply(this,arguments);this.JD();return a};a.prototype.unbind=function(){var a=e.prototype.unbind.apply(this,arguments);this.JD();return a};a.prototype.start=function(){this.V=p;this.JD()};a.prototype.stop=function(){this.V=z;this.JD()};a.prototype.jC=function(){this.trigger(new c(b.cd))};a.prototype.JD=function(){if(this.V&&
this.Oba(b.cd)){if(this.kg==r){var a=this;this.kg=setTimeout(function(){a.kg=r;a.jC();a.JD()},this.Zla)}}else this.kg!=r&&(clearTimeout(this.kg),this.kg=r)};return a});
define("iz","require,jquery.mod,dm,fd,lc,go,jP,d,eg,dH,jD".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("go"),g=a("jP"),k=a("d"),i=a("eg"),n=a("dH"),a=a("jD"),j=e.extend(k,function(){k.call(this);this.Xc("HTML");this.lt=j.cG;this.b8=this.c8=0;this.H9=(new Date).getTime();this.gH=this.vg=r;this.sw=this.sw.bind(this);this.iP=[]});j.prototype.ya=function(){k.prototype.ya.call(this);this.f("content");this.f("horizontalAlign",g.oa);this.f("verticalAlign",g.rc);this.f("fontFamily");
this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");this.f("textAlign");this.f("textDecoration");this.f("textShadowBlurRadius",3);this.f("textShadowColor","#000000");this.f("textShadowHorizontalLength",0);this.f("textShadowOpacity",0);this.f("textShadowVerticalLength",0)};j.prototype.Qm=function(a){this.pa&&f.get(this.pa).Iwa(this.sw);k.prototype.Qm.call(this,a);if(this.pa){f.get(this.pa).cta(this.sw);f.get(this.pa).Hy(this.sw)}};j.prototype.Ia=function(){k.prototype.Ia.call(this);
if(!this.gH){this.vg=document.createElement("div");this.gH=b(this.vg);this.QQ({position:"absolute",display:"inline",left:0,top:0,"box-sizing":"border-box"});var a=this.Pa();a.tz(z);a.append(this.gH);this.T4=new i(this.gH);this.T4.bind(d.Da,this.Fla,this,p);this.bind(d.yb,this.U4,this)}};j.prototype.ga=function(){var a={},b=z;this.n("visible")&&(b=p);if(this.n("content")){this.T4.yva(this.k("content"));this.p("content");b=p}if(this.n("fontFamily")){b=this.k("fontFamily");c(b).isString()||(b="");a.fontFamily=
n.Zr(b);this.p("fontFamily");b=p}if(this.n("fontSize")){b=this.k("fontSize");c(b).isNumber()?b=b+"px":c(b).isString()||(b="");a.fontSize=b;this.p("fontSize");b=p}if(this.n("fontColor")){b=this.k("fontColor");c(b).isString()||(b="");a.color=b;this.p("fontColor");b=p}if(this.n("fontWeight")){b=this.k("fontWeight");switch(b){case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":case "normal":break;default:b="normal"}a.fontWeight=
b;this.p("fontWeight");b=p}if(this.n("fontStyle")){b=this.k("fontStyle");switch(b){case "italic":case "normal":break;default:b="normal"}a.fontStyle=b;this.p("fontStyle");b=p}if(this.n("textDecoration")){b=this.k("textDecoration");switch(b){case "underline":case "overline":case "line-through":case "none":break;default:b="none"}a.textDecoration=b;this.p("textDecoration");b=p}if(this.n("textAlign")){b=this.k("textAlign");switch(b){case "left":case "right":case "center":case "justify":break;default:b=
""}a["text-align"]=b;this.p("textAlign");b=p}var d=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(c(d).any(function(a){return this.n(a)},this)){var f={};c(d).each(function(a){f[a]=this.k(a);this.p(a)},this);a["-moz-text-shadow"]=a["-webkit-text-shadow"]=a["text-shadow"]=[f.textShadowHorizontalLength+"px",f.textShadowVerticalLength+"px",f.textShadowBlurRadius+"px","rgba("+parseInt("0x"+f.textShadowColor.substr(1,2))+", "+parseInt("0x"+
f.textShadowColor.substr(3,2))+", "+parseInt("0x"+f.textShadowColor.substr(5,2))+", "+f.textShadowOpacity+")"].join(" ");d=f.textShadowVerticalLength==0&&this.k("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(f.textShadowHorizontalLength,-f.textShadowVerticalLength)/Math.PI)*45;a.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*f.textShadowOpacity).toString(16)).slice(-2)+f.textShadowColor.substr(1,6)+",direction="+d+")"}c(["paddingTop","paddingRight","paddingBottom",
"paddingLeft"]).any(function(a){return this.n(a)},this)&&(b=p);this.QQ(a);b&&this.T5();k.prototype.ga.call(this)};j.prototype.T5=function(){this.U4();this.Va();this.k("visible")&&this.k("content")?this.TC(j.Q0):this.TC(j.cG)};j.prototype.Kr=function(a){for(var b=a.target;b&&b.tagName!="A"&&b.tagName!="BUTTON";)b=b.parentElement;k.prototype.Kr.call(this,a,!b)};j.prototype.Go=function(){k.prototype.Go.call(this);var a=this.Pa();this.Sh=this.vg.clientWidth+a.Uy()+a.Wy();this.Rh=this.vg.clientHeight+
a.Xy()+a.Qy()};j.prototype.p9=function(a){if(this.OR()!=a){this.vg.style.paddingLeft=a+"px";this.Va()}};j.prototype.OR=function(){return parseInt(this.vg.style.paddingLeft)||0};j.prototype.r9=function(a){if(this.QR()!=a){this.vg.style.paddingTop=a+"px";this.Va()}};j.prototype.QR=function(){return parseInt(this.vg.style.paddingTop)||0};j.prototype.q9=function(a){if(this.PR!=a){this.vg.style.paddingRight=a+"px";this.Va()}};j.prototype.PR=function(){return parseInt(this.vg.style.paddingRight)||0};j.prototype.o9=
function(a){if(this.NR()!=a){this.vg.style.paddingBottom=a+"px";this.Va()}};j.prototype.NR=function(){return parseInt(this.vg.style.paddingBottom)||0};j.prototype.Fla=function(){this.iP=Array.prototype.slice.call(this.vg.querySelectorAll("*[style]")).map(function(a){var b={};b.Wta=a;b.style=a.getAttribute("style");return b}).filter(function(a){return l.test(a.style)}).map(function(a){for(var b=a.style,c=[];;){var d=l.exec(b);if(d){c.push(function(a){return function(){return a}}(b.substr(0,d.index+
1)));c.push(function(a,b){switch(b){case "vw":return function(b){return Math.round(b*a)+"px"};case "vh":return function(b,c){return Math.round(c*a)+"px"};case "vmin":return function(b,c,d){return Math.round(d*a)+"px"};case "vmax":return function(b,c,d){return Math.round(d*a)+"px"}}}(parseFloat(d[1]),d[3].toLowerCase()));b=b.substr(d.index+d[0].length)}else{c.push(function(a){return function(){return a}}(b));a.functions=c;return a}}});this.pa&&f.get(this.pa).Hy(this.sw)};j.prototype.sw=function(a,
b,c,d){if(this.iP.length!=0){this.iP.forEach(function(f){var e=f.functions.map(function(f){return f(a,b,c,d)}).join("");f.Wta.setAttribute("style",e)});this.T5()}};j.prototype.U4=function(){var a={width:"auto",height:"auto"},b=this.Pa();if(!this.ZR()){this.Sh!=this.W&&this.Va();var c=this.W-(b.Uy()+b.Wy());c>0&&(a.width=c+"px")}if(!this.O4()){this.Rh!=this.ea&&this.Va();b=this.ea-(b.Xy()+b.Qy());b>0&&(a.height=b+"px")}this.QQ(a)};j.prototype.m6=function(){var a=this.vg.clientWidth,b=this.vg.clientHeight;
if(this.c8!=a||this.b8!=b){this.c8=a;this.b8=b;this.Va();this.TC(j.Q0)}else{a=(new Date).getTime()-this.H9;a>j.cga?this.TC(j.Sfa):a>j.bga&&this.TC(j.Rfa)}};j.prototype.cpa=function(){this.H9=(new Date).getTime()};j.prototype.TC=function(a){this.lt==j.fza&&this.cpa();if(this.lt!=a){this.lt!=j.cG&&j.t2[this.lt].unbind(d.cd,this.m6,this);this.lt=a;this.lt!=j.cG&&j.t2[this.lt].bind(d.cd,this.m6,this,p)}};j.prototype.QQ=function(a){var b=this.vg.style,c;for(c in a)b[c]=a[c]};var l=/[^\d]((\d*\.)?\d+)\s*(vmin|vmax|vw|vh)/i;
j.cG="stopped";j.Sfa="slow";j.Rfa="normal";j.Q0="fast";j.cga=3E4;j.bga=5E3;j.t2={slow:new a(2E3,p),normal:new a(500,p),fast:new a(100,p)};return j});
define("hK",["fd","iz","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("HTML",a).B("UIComponent").L({content:"string",fontColor:"color",fontFamily:"string",fontSize:"or[number, size]",fontStyle:"enum[italic, normal]",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",textAlign:"enum[center, justify, left, right]",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",textShadowColor:"color",textShadowHorizontalLength:"number",
textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]);return a});define("b",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.kb={layout:e.fN};a.defaults(d.kb,c.kb);d.prototype.ya=function(){this.Rj(d.kb)};return d});
define("gG",["fd","fS","b","iz"],function(a,b,c,e){a=a.extend(c,function(){c.call(this);this.Rq=r;this.set("contentOpaque",p)});a.prototype.ya=function(){c.prototype.ya.call(this);this.f("overflow",b.mm);this.f("html")};a.prototype.Ia=function(){c.prototype.Ia.call(this);this.Rq==r&&(this.Rq=new e,this.Rq.N({left:0}),this.ma(this.Rq))};a.prototype.ga=function(){this.Rq.set("width",this.ZR()?m:"100%");this.n("html")&&(this.Rq.set("content",this.k("html")),this.p("html"));this.fb(["paddingLeft","paddingTop",
"paddingRight","paddingBottom"],{},[this.Rq],p,p);this.fb(["cursor"],{},[this.Rq],p,z);c.prototype.ga.call(this)};return a});
define("bk",["require","fd","gG","dT"],function(a){var b=a("fd"),c=a("gG"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("HTMLText",b).B("UIComponent").L({html:"string",overflow:"enum[scroll, hidden, visible]",scrollBarColor:"color",scrollBarWidth:"number",scrollBarMargin:"number",scrollBarHorizontalMargin:"number",scrollBarVerticalMargin:"number",scrollBarOpacity:"number",scrollBarVisible:"enum[rollOver, always]"});return b});
define("hH","require,jquery.mod,fd,lc,bY,jk,fC,R,je,fj,dk,jw".split(","),function(a){function b(a,b,c){return function(d){var f;f=b=="mouse"?this.Jt(d):this.$A(d);this.l5(f)?a.call(this,d):c=="release"?a.call(this,d):this.bka(f,d)}}var c=a("jquery.mod"),e=a("fd"),d=a("lc"),f=a("bY"),g=a("jk"),k=a("fC"),i=a("R"),n=a("je"),j=a("fj"),l=a("dk"),q=a("jw"),o=g.Vf("debug"),a=e.extend(q,function(){this.Xc("Button");q.call(this,3);this.set("autoRolledOver",p);this.set("autoPressed",p);this.set("cursor",i.he);
this.set("scaleMode",n.Me);this.YP=document.createElement("canvas");this.YP.width=1;this.YP.height=1;this.ZP=this.YP.getContext("2d");this.ZP.globalCompositeOperation="copy";this.lR=z;this.bind(d.Ib,this.Jla,this)});a.prototype.ya=function(){q.prototype.ya.call(this);this.f("buttonGroup");this.f("mode",l.Tc);this.f("pressed");this.f("iconURL");this.f("transparencyActive");this.h("rollOverOpacity",j.v,"opacity");this.h("rollOverIconURL",j.v,"iconURL");this.h("pressedOpacity",j.za,"opacity");this.h("pressedIconURL",
j.za,"iconURL");this.h("pressedRollOverOpacity",j.Za,"opacity");this.h("pressedRollOverIconURL",j.Za,"iconURL")};a.prototype.uR=b(q.prototype.uR,"touch","capture");a.prototype.S3=b(q.prototype.fka,"touch");a.prototype.U3=b(q.prototype.fka,"touch","release");a.prototype.$V=b(q.prototype.$V,"touch","capture");a.prototype.ZV=b(q.prototype.ZV,"touch");a.prototype.Kr=b(q.prototype.Kr,"touch","release");a.prototype.mT=b(q.prototype.mT,"mouse","capture");a.prototype.nT=function(a){var b=this.Jt(a);if(this.l5(b)||
this.lR){q.prototype.nT.call(this,a);this.set("cursor",i.he)}else{this.lR=p;if(b=this.q4(b)){c(b).trigger(this.H2(a));a.preventDefault();a.stopImmediatePropagation()}this.l4(b)=="pointer"?this.set("cursor",i.he):this.set("cursor",i.cd);this.lR=z}};a.prototype.Jla=function(){this.set("cursor",i.he)};a.prototype.EI=b(q.prototype.EI,"mouse","release");a.prototype.l5=function(a){if(!this.tb)return z;if(this.get("transparencyActive"))return p;var b=this.tb.offset(),c=a.Sca-b.left,d=this.tb.width(),a=a.Tca-
b.top,b=this.tb.height();if(c>=0&&a>=0&&c<d&&a<b){if(o)return p;c=c*this.Gx/d;d=a*this.Fx/b;this.ZP.drawImage(this.tb.get(0),c,d,1,1,0,0,1,1);if(this.ZP.getImageData(0,0,1,1).data[3]>0)return p}return z};a.prototype.bka=function(a,b){var d=this.q4(a);if(d){c(d).trigger(this.H2(b));b.preventDefault();b.stopImmediatePropagation()}};a.prototype.q4=function(a){var b=this.oo(),c=b.style.pointerEvents;b.style.pointerEvents="none";a=document.elementFromPoint(a.Sca,a.Tca);setTimeout(function(){b.style.pointerEvents=
c},0);return a};a.prototype.H2=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.l4=function(a){if(a){var b=a.style.cursor;b=="inherit"&&(b=this.l4(a.parentElement))}else b="default";return b};a.prototype.oA=function(){if(this.get("pressed")){this.set("pressed",z);this.trigger(new f(d.Dh))}else{this.set("pressed",
p);this.trigger(new f(d.rg))}};a.prototype.ga=function(){var a=z;if(this.n("backgroundOpacityy")||this.n("backgroundColor"))a=p;if(this.n("iconURL")){this.set("url",this.k("iconURL"));this.p("iconURL")}var b=z;if(this.n("mode")){if(this.k("mode")==l.Tc){this.unbind(d.T,this.oA,this,p);this.set("autoPressed",p)}else{this.bind(d.T,this.oA,this,p);this.set("autoPressed",z)}this.p("mode");b=p}if(b||this.n("pressed"))this.k("mode")==l.Eh?this.gy(this.k("pressed")==p):b&&this.gy(z);if(this.n("buttonGroup")){(b=
this.k("buttonGroup"))?k.register(this,b):k.uF(this);this.p("buttonGroup")}q.prototype.ga.call(this);if(a){a=this.Ab();if(a.wh()==0||a.pt.length==0){a.yj(0.001);a.Fda(["#000000"])}}};return a});
define("Z",["fd","hH","dT","lc"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});c.A("IconButton",a).B("UIComponent").L({buttonGroup:"string",iconURL:"string",mode:"enum[push, toggle]",horizontalAlign:"enum[left, center, right]",verticalAlign:"enum[bottom, middle, top]",rollOverIconURL:"string",rollOverOpacity:"number",pressed:"bool",pressedIconURL:"string",pressedOpacity:"number",pressedRollOverIconURL:"string",pressedRollOverOpacity:"number",transparencyActive:"bool"}).Ah(["iconURL","rollOverIconURL",
"pressedIconURL"]).Vb([e.rg,e.Dh]).Wf([e.T]);return a});define("kb",["fd","dT","gp"],function(a,b,c){a=a.extend(c,function(){c.call(this,z)});b.A("IconHotspotMapOverlay",a).B("HotspotMapOverlay");return a});
define("kI",["require","fd","lc","jw","dT"],function(a){var b=a("fd"),c=a("lc"),e=a("jw"),a=a("dT"),b=b.extend(e,function(){e.call(this)});a.A("Image",b).B("UIComponent").L({horizontalAlign:"enum[center, left, right]",scaleMode:"enum[none, fill, fit_inside, fit_outside, fit_to_width, fit_to_height]",url:"string",verticalAlign:"enum[bottom, middle, top]"}).Ah(["url"]).Wf([c.T]);return b});
define("gT",["fd","gM","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Label",a).B("UIComponent").L({fontFamily:"string",fontSize:"or[number, size]",fontColor:"color",fontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",fontStyle:"enum[italic, normal]",horizontalAlign:"enum[left, center, right]",verticalAlign:"enum[top, middle, bottom]",text:"string",textDecoration:"enum[underline, overline, line-through, none]",textShadowBlurRadius:"number",
textShadowColor:"color",textShadowHorizontalLength:"number",textShadowOpacity:"number",textShadowVerticalLength:"number"}).Mp(["fontSize"]);return a});define("bu",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("bleaching",0);this.set("bleachingDistance",0.4)});a.A("LensFlarePanoramaOverlay",b).B("PanoramaOverlay").L({yaw:"number",pitch:"number",bleaching:"number",bleachingDistance:"number"});return b});
define("kM",["require","fd","dT","gz"],function(a){var b=a("fd"),c=a("dT"),e=a("gz"),a=b.extend(e,function(){e.call(this)});c.A("LivePanorama",a).B("Panorama").L({frameDisplayTime:"number",frameTransitionTime:"number",initialFrameIndex:"number"});a.prototype.SL=function(){return this.get("initialFrameIndex",0)};return a});
define("ia",["require","dm","fd","u"],function(a){var b=a("dm"),c=a("fd"),e=a("u");return{yw:[],Tb:function(a,b,c,e){this.w1(a,b,c,e,z)},bta:function(a,b,c,e){this.w1(a,b,c,e,p)},w1:function(a,f,g,k,i){function n(){for(var b=[],e=0;e<f.length;e++)try{b.push(a.get(f[e]))}catch(i){b.push(m),c.sM("BindingsHandler._addBinding",i)}g.apply(this,b)}b.isArray(f)||(f=[f]);var n=i?c.An(n,this.ha):n.bind(this.ha),j=[];b.forEach(f,function(b){j.push(e.watch(a,b,n))},this);this.yw.push({aza:j,host:a,Dp:f,Nba:g});
k&&n()},ac:function(a,c,e){var k=b(this.yw).select(function(i){return i.Nba==e&&i.host==a&&b.isEqual(i.Dp,c)});b(k).forEach(function(a){b(a.aza).forEach(function(a){a.unwatch()})});this.yw=b.difference(this.yw,k)},NAa:function(){for(;0<this.yw.length;){var a=b.first(this.yw);this.ac(a.host,a.Dp,a.Nba)}}}});
define("co",["fd","cC"],function(a,b){var c=a.extend(b,function(a,c,f,g,k,i){b.call(this,b.E0);this.Md=a;this.W=c;this.ea=f;this.Dd=g;this.kR=k;this.ek=i.slice()});c.prototype.xn=function(){for(var a=[this.Md],b=0;b<this.ek.length;b++)a=a.concat(this.ek[b].xn());return a};c.prototype.sj=R("Md");c.prototype.$c=R("W");c.prototype.Nd=R("ea");return c});
define("jY","require,dm,fd,ia,dT,je,ds,eE,co".split(","),function(a){var b=a("dm"),c=a("fd");a("ia");var e=a("dT"),d=a("je"),f=a("ds"),g=a("eE"),k=a("co"),a=c.extend(f,function(){f.call(this);this.Do=this.GJ=m});e.A("Map",a).B("Media").L({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.Uwa=function(){this.Do=this.GJ=m};a.prototype.Zy=function(){return!(!this.get("image")||!g.Zy(this.get("image")))};a.prototype.lv=function(){return this.get("image")&&g.lv(this.get("image"))};a.prototype.Yl=function(){return this.get("image")&&g.Yl(this.get("image"))};a.prototype.Aba=
function(){if(this.GJ==m)this.GJ=this.Zy()?new k(this.lv().get("url"),this.get("width"),this.get("height"),this.get("scaleMode",d.As),this.get("flipImageHorizontally",z),[]):r;return this.GJ};a.prototype.Ng=function(){if(this.Do==m)if(this.get("image")){var a=Array.prototype.concat.apply([],b(this.get("overlays",[])).map(function(a){return a.Iua()}));this.Do=new k(this.Yl().get("url"),this.get("width"),this.get("height"),this.get("scaleMode",d.As),this.get("flipImageHorizontally",z),a)}else this.Do=
r;return this.Do};a.prototype.wp=function(){return[].concat(this.FH(this.Aba()),this.FH(this.Ng()))};a.prototype.FH=function(a){return a?a.xn():[]};return a});define("ip",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("MapOverlay",a).B("Object");return a});
define("jK","require,fd,dm,lc,bY,eL,dk,fj".split(","),function(a){var b=a("fd"),c=a("dm"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("dk"),k=a("fj"),a=b.extend(f,function(a,b,c){f.call(this);this.K2=a;this.woa=b;this.X1=c||g.Tc;this.$f=[];this.it=[];this.nq={};this.nq.mode=this.X1;this.X1==g.Eh&&(this.nq.pressed=z);this.K2.bind(e.D(b),this.n8,this);this.n8()});a.prototype.n8=function(){var a=this.K2.get(this.woa);a||(a=[]);c.isArray(a)||(a=[a]);this.Ipa(a)};a.prototype.Ipa=function(a){var b=c.difference(this.$f,
a);c(b).each(function(a){a.unbind(e.rg,this.d2,this,p);a.unbind(e.Dh,this.e2,this,p);a.unbind(e.T,this.W1,this,p);a.unbind(e.xb,this.Y1,this,p);a.unbind(e.cc,this.Z1,this,p);a.unbind(e.tc,this.g2,this,p);a.unbind(e.Ib,this.f2,this,p)},this);b=c.difference(a,this.$f);c(b).each(function(a){a.N(this.nq);a.bind(e.rg,this.d2,this,p);a.bind(e.Dh,this.e2,this,p);a.bind(e.T,this.W1,this,p);a.bind(e.xb,this.Y1,this,p);a.bind(e.cc,this.Z1,this,p);a.bind(e.tc,this.g2,this,p);a.bind(e.Ib,this.f2,this,p)},this);
this.$f=a;this.it=this.it.filter(function(a){return this.$f.indexOf(a)>=0}.bind(this))};a.prototype.d2=function(){this.trigger(new d(e.rg))};a.prototype.e2=function(){this.trigger(new d(e.Dh))};a.prototype.W1=function(){this.trigger(new d(e.T))};a.prototype.Y1=function(){this.trigger(new d(e.xb))};a.prototype.Z1=function(){this.trigger(new d(e.cc))};a.prototype.g2=function(a){this.it.push(a.source);this.mg()};a.prototype.f2=function(a){this.it=this.it.filter(function(b){return b!=a.source});this.mg()};
a.prototype.set=function(a,b){this.nq[a]=b;this.$f.forEach(function(a){a.N(this.nq)}.bind(this));this.mg()};a.prototype.mg=function(){this.$f.forEach(function(a){a.get("state")==k.za&&this.it.indexOf(a)>=0?a.set("state",k.Za):a.get("state")==k.Za&&this.it.indexOf(a)<0&&a.set("state",k.za)}.bind(this))};return a});
define("eQ","require,dm,fd,lc,bY,fj,R,b,d,kj,kw".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("fj"),g=a("R"),k=a("b"),i=a("d");a("kj");a("kw");var n=c.extend(k,function(){k.call(this);this.Xc("PlaybackBar");this.$h=this.Td=r;this.Ge=[];this.DJ=z;this.hU=this.qu=m;this.HV=z});n.kb={cursor:g.he,overflow:"visible",height:20,position:0,duration:100,steps:m,selectedStep:m,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:m,barBackgroundColorRatios:m,
barBorderColor:m,barBorderRadius:m,barBorderSize:m,barOpacity:m,liveDragging:m,playheadBackgroundColor:"#FFFFFF",playheadBackgroundColorDirection:m,playheadBackgroundColorRatios:m,playheadBorderColor:m,playheadBorderRadius:m,playheadBorderSize:m,playheadOpacity:m,playheadWidth:5,playheadHeight:30,playheadShadow:p,playheadShadowBlurRadius:3,playheadShadowColor:"#000000",playheadShadowHorizontalLength:0,playheadShadowOpacity:m,playheadShadowSpread:0,playheadShadowVerticalLength:3,stepBackgroundColor:"#FFFFFF",
stepBackgroundColorDirection:m,stepBackgroundColorRatios:m,stepBorderColor:m,stepBorderRadius:6,stepBorderSize:0,stepOpacity:1,stepWidth:12,stepHeight:12,stepShadow:p,stepShadowBlurRadius:6,stepShadowColor:"#000000",stepShadowHorizontalLength:0,stepShadowOpacity:m,stepShadowSpread:0,stepShadowVerticalLength:0,selectedStepBackgroundColor:"#3399FF",selectedStepBackgroundColorDirection:m,selectedStepBackgroundColorRatios:m,selectedStepBorderColor:"#ffffff",selectedStepBorderRadius:10,selectedStepBorderSize:2,
selectedStepOpacity:1,selectedStepWidth:20,selectedStepHeight:20,selectedStepShadow:p,selectedStepShadowBlurRadius:3,selectedStepShadowColor:"#000000",selectedStepShadowHorizontalLength:0,selectedStepShadowOpacity:m,selectedStepShadowSpread:0,selectedStepShadowVerticalLength:0};b.defaults(n.kb,k.kb);n.prototype.ya=function(){this.Rj(n.kb)};n.prototype.Ia=function(){k.prototype.Ia.call(this);(!this.Td||!this.$h)&&this.bind(e.yb,this.koa,this,p);if(this.Td==r){this.Td=new i;this.Td.N({left:"0",height:"100%",
cursor:g.he});this.ma(this.Td)}if(this.$h==r){this.$h=new i;this.$h.N({left:"0",cursor:g.he});this.$h.bind(e.yb,this.noa,this,p);this.$h.bind(e.xb,this.loa,this,p);this.Ua().bind(e.Lc,this.U7,this,p);this.bind(e.T,this.ioa,this,p);this.$h.bind(e.cc,this.moa,this,p);this.ma(this.$h)}var a=this.get("steps")||0;if(this.Ge.length!=a){for(;this.Ge.length>a;)this.hja(this.Ge.pop());for(;this.Ge.length<a;)this.Ge.push(this.Zia());this.fb(n.m1,n.TO,this.Ge,z,p);this.$$();this.EW();this.wj(this.$h,this.Oa().length-
1)}};n.prototype.Zia=function(){var a=new j;a.N({cursor:g.he});a.bind(e.T,this.O9,this,p);a.bind(e.yb,this.P9,this,p);this.ma(a);return a};n.prototype.hja=function(a){a.unbind(e.T,this.O9,this,p);a.unbind(e.yb,this.P9,this,p);this.removeChild(a)};n.prototype.ga=function(){var a=z;if(this.n("position")||this.n("duration")){this.p("position");this.p("duration");a=p}if(this.n("selectedStep")){this.p("selectedStep");this.$$()}if(this.n("steps")){this.p("steps");this.CE()}this.fb(n.LO,n.Uz,[this.Td],p,
p);this.fb(n.Zfa,n.i1,[this.$h],p,p);this.fb(n.m1,n.TO,this.Ge,p,p);k.prototype.ga.call(this);a&&this.ZK()};n.prototype.$$=function(){var a=this.get("selectedStep");this.Ge.forEach(function(b,c){b.lF(c===a)});this.$h.set("visible",a===m)};n.prototype.ZK=function(){var a=this.Ba(),b=this.$h.Ba(),c=this.$h.gb(),d=this.Iq(),f=this.XA(),e=f*a/d,a=Math.round((this.DJ?this.qu:f)*a/d-b*0.5),a=Math.max(0,Math.min(a,this.Gd()-b)),b=Math.round(this.Fd()*0.5-c*0.5);this.$h.N({left:a,top:b});this.Td.set("width",
Math.round(e))};n.prototype.noa=function(){this.ZK()};n.prototype.loa=function(a){this.DJ=p;this.hU=a.pageX;this.qu=this.k("position")};n.prototype.U7=function(a){if(this.DJ){var b=a.pageX-this.hU;this.hU=a.pageX;var a=this.Ba(),c=this.Iq();this.qu=Math.max(0,Math.min(c,this.qu+c*b/a));this.ZK();if(this.get("liveDragging")){this.set("position",this.qu);this.trigger(new d(e.aa))}}};n.prototype.moa=function(a){this.U7(a);this.DJ=z;if(!this.get("liveDragging")){this.set("position",this.qu);this.trigger(new d(e.aa))}this.qu=
m};n.prototype.ioa=function(a){if(!this.HV){var b=this.Ba();this.set("position",this.Iq()*a.x/b);this.trigger(new d(e.aa))}};n.prototype.P9=function(){this.EW()};n.prototype.koa=function(){this.EW();this.ZK()};n.prototype.EW=function(){for(var a=this.Ba(),b=this.gb(),c=this.ca,d=this.getParent().Ba()-(c+a),f=0,e=this.Ge.length;f<e;f++){var i=this.Ge[f],g=i.Ba();i.N({left:f==0&&c==0?0:f==e-1&&d==0?a-g:Math.round(a*f/(e-1)-g*0.5),top:Math.round(b*0.5-i.gb()*0.5)})}};n.prototype.O9=function(a){a=this.Ge.indexOf(a.source);
this.set("position",this.Iq()*a/(this.Ge.length-1));this.HV=p;this.trigger(new d(e.aa));setTimeout(function(){this.HV=z}.bind(this),0)};n.prototype.Iq=function(){var a=this.k("duration");return!a?1:a};n.prototype.XA=function(){return Math.max(0,Math.min(this.Iq(),this.k("position")))};n.Uz={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",
barOpacity:"opacity"};n.LO=b(n.Uz).keys();n.i1={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.Zfa=b(n.i1).keys();n.TO={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.m1=b(n.TO).keys();var j=
c.extend(i,function(){i.call(this)});j.prototype.lF=function(a){this.WC(a)};j.prototype.ya=function(){i.prototype.ya.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.G,"backgroundColor");this.h("selectedBackgroundColorDirection",f.G,"backgroundColorDirection");this.h("selectedBackgroundColorRatios",f.G,"backgroundColorRatios");this.h("selectedBorderColor",f.G,"borderColor");this.h("selectedBorderRadius",f.G,"borderRadius");this.h("selectedBorderSize",f.G,"borderSize");this.h("selectedOpacity",f.G,"opacity");this.h("selectedWidth",f.G,"width");this.h("selectedHeight",f.G,"height");this.h("selectedShadow",f.G,"shadow");this.h("selectedShadowBlurRadius",
f.G,"shadowBlurRadius");this.h("selectedShadowColor",f.G,"shadowColor");this.h("selectedShadowHorizontalLength",f.G,"shadowHorizontalLength");this.h("selectedShadowOpacity",f.G,"shadowOpacity");this.h("selectedShadowSpread",f.G,"shadowSpread");this.h("selectedShadowVerticalLength",f.G,"shadowVerticalLength")};j.prototype.ga=function(){i.prototype.ga.call(this)};return n});
define("cq",["dm","fd","b","d"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this);this.Xc("ProgressBar")});d.kb={percent:0,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:m,barBackgroundColorRatios:m,barBorderColor:m,barBorderRadius:m,barBorderSize:m,barOpacity:m};a.defaults(d.kb,c.kb);d.prototype.ya=function(){this.Rj(d.kb)};d.prototype.Ia=function(){c.prototype.Ia.call(this);this.Td==r&&(this.Td=new e,this.Td.N({left:"0",width:"0%",height:"100%"}),this.ma(this.Td))};
d.prototype.ga=function(){this.n("percent")&&(this.Td.set("width",Math.round(this.k("percent"))+"%"),this.p("percent"));this.fb(d.LO,d.Uz,[this.Td],p,p);c.prototype.ga.call(this)};d.Uz={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",barOpacity:"opacity"};d.LO=a(d.Uz).keys();return d});
define("kl",["require"],function(){var a=Math.PI/180,b=180/Math.PI;return{create:function(){return{x:0,y:0,z:0,w:0}},eba:function(b,e,d){var e=e*a,b=-b*a,f=d*a,d=Math.cos(b/2),b=Math.sin(b/2),g=Math.cos(f/2),f=Math.sin(f/2),k=Math.cos(e/2),e=Math.sin(e/2),i={};i.w=d*g*k-b*f*e;i.x=d*g*e+b*f*k;i.y=b*g*k+d*f*e;i.z=d*f*k-b*g*e;return i},LZ:function(a){var e=a.x*a.y+a.z*a.w,d={};if(0.499<e)d.ja=-2*Math.atan2(a.x,a.w),d.ld=-Math.PI/2,d.pitch=0;else if(-0.499>e)d.ja=2*Math.atan2(a.x,a.w),d.ld=Math.PI/2,
d.pitch=0;else{var f=a.x*a.x,g=a.z*a.z;d.ja=-Math.atan2(2*a.y*a.w-2*a.x*a.z,1-2*a.y*a.y-2*g);d.ld=-Math.asin(2*e);d.pitch=Math.atan2(2*a.x*a.w-2*a.y*a.z,1-2*f-2*g);d.pitch=Math.min(Math.PI/2,Math.max(-Math.PI/2,d.pitch))}d.ja*=b;d.pitch*=b;d.ld*=-b;return d},ja: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("ku",["require"],function(){var a={};a.degToRad=Math.PI/180;a.radToDeg=180/Math.PI;a.Vector2=function(a,c){this.x=a||0;this.y=c||0};a.Vector2.prototype={constructor:a.Vector2,set:function(a,c){this.x=a;this.y=c;return this},copy:function(a){this.x=a.x;this.y=a.y;return this}};a.Vector3=function(a,c,e){this.x=a||0;this.y=c||0;this.z=e||0};a.Vector3.prototype={constructor:a.Vector3,set:function(a,c,e){this.x=a;this.y=c;this.z=e;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this},
length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},normalize:function(){var a=this.length();0!==a?this.Pca(1/a):this.z=this.y=this.x=0;return this},Pca:function(a){this.x*=a;this.y*=a;this.z*=a},applyQuaternion:function(a){var c=this.x,e=this.y,d=this.z,f=a.x,g=a.y,k=a.z,a=a.w,i=a*c+g*d-k*e,n=a*e+k*c-f*d,j=a*d+f*e-g*c,c=-f*c-g*e-k*d;this.x=i*a+c*-f+n*-k-j*-g;this.y=n*a+c*-g+j*-f-i*-k;this.z=j*a+c*-k+i*-g-n*-f;return this},Tta:function(a){return this.x*a.x+this.y*a.y+this.z*
a.z},Pta:function(a,c){var e=a.x,d=a.y,f=a.z,g=c.x,k=c.y,i=c.z;this.x=d*i-f*k;this.y=f*g-e*i;this.z=e*k-d*g;return this}};a.Quaternion=function(a,c,e,d){this.x=a||0;this.y=c||0;this.z=e||0;this.w=d!==m?d:1};a.Quaternion.prototype={constructor:a.Quaternion,set:function(a,c,e,d){this.x=a;this.y=c;this.z=e;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;return this},Hda:function(a,c,e){var d=Math.cos(a/2),f=Math.cos(c/2),g=Math.cos(e/2),a=Math.sin(a/2),c=Math.sin(c/
2),e=Math.sin(e/2);this.x=a*f*g+d*c*e;this.y=d*c*g-a*f*e;this.z=d*f*e-a*c*g;this.w=d*f*g+a*c*e;return this},setFromAxisAngle:function(a,c){var e=c/2,d=Math.sin(e);this.x=a.x*d;this.y=a.y*d;this.z=a.z*d;this.w=Math.cos(e);return this},multiply:function(a){return this.Oca(this,a)},Oca:function(a,c){var e=a.x,d=a.y,f=a.z,g=a.w,k=c.x,i=c.y,n=c.z,j=c.w;this.x=e*j+g*k+d*n-f*i;this.y=d*j+g*i+f*k-e*n;this.z=f*j+g*n+e*i-d*k;this.w=g*j-e*k-d*i-f*n;return this},inverse:function(){this.x*=-1;this.y*=-1;this.z*=
-1;this.normalize();return this},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);0===a?(this.z=this.y=this.x=0,this.w=1):(a=1/a,this.x*=a,this.y*=a,this.z*=a,this.w*=a);return this},vya:function(a,c){if(0===c)return this;if(1===c)return this.copy(a);var e=this.x,d=this.y,f=this.z,g=this.w,k=g*a.w+e*a.x+d*a.y+f*a.z;0>k?(this.w=-a.w,this.x=-a.x,this.y=-a.y,this.z=-a.z,k=-k):this.copy(a);if(1<=k)return this.w=g,this.x=e,this.y=d,this.z=f,this;var i=Math.acos(k),
n=Math.sqrt(1-k*k);if(0.001>Math.abs(n))return this.w=0.5*(g+this.w),this.x=0.5*(e+this.x),this.y=0.5*(d+this.y),this.z=0.5*(f+this.z),this;k=Math.sin((1-c)*i)/n;i=Math.sin(c*i)/n;this.w=g*k+this.w*i;this.x=e*k+this.x*i;this.y=d*k+this.y*i;this.z=f*k+this.z*i;return this},Ida:function(){var b,c;return function(e,d){b===m&&(b=new a.Vector3);c=e.Tta(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.Pta(e,d);this.x=b.x;this.y=b.y;this.z=b.z;this.w=c;this.normalize();
return this}}()};return a});
define("ec",["require","lc","bY","eL","ku"],function(a){function b(){n||(n=p,o=new i.Vector3(0,0,1),t=new i.Quaternion,s=new i.Quaternion(-Math.sqrt(0.5),0,0,Math.sqrt(0.5)),u=new i.Quaternion,e(),window.addEventListener("orientationchange",e,z),window.addEventListener("deviceorientation",d,z),c())}function c(){if(v&&!(l===m||q===m)){v=z;var a=i.degToRad*q;u.Hda(i.degToRad*l.beta,i.degToRad*l.alpha,-(i.degToRad*l.gamma));u.multiply(s);u.multiply(t.setFromAxisAngle(o,-a));w||(x++,5<=x&&(w=p,j.trigger(new g(f.Db))));
j.trigger(new g(f.aa))}}function e(){q=window.orientation||0;v=p;c()}function d(a){l=a;v=p;c()}var f=a("lc"),g=a("bY"),k=a("eL"),i=a("ku"),n=z,j=new k,l,q,o,t,s,u,v,w=z,x=0;b.prototype.tn=function(){c();return u};b.prototype.bind=function(){j.bind.apply(j,arguments)};b.prototype.unbind=function(){j.unbind.apply(j,arguments)};b.prototype.stop=function(){window.removeEventListener("orientationchange",e,z);window.removeEventListener("deviceorientation",d,z)};return b});
define("gL","require,lc,bY,eL,r,ku".split(","),function(a){function b(a){this.Tva=a;this.AX=new d;this.DL=new d;this.SY=new d;this.ev=new n.Quaternion;this.RY=new n.Quaternion;this.yaa=new n.Quaternion;this.zca=z;this.GL=new n.Vector3;this.FY=new n.Vector3;this.cva=new n.Quaternion}function c(){this.Lca=z;this.Kca=0;this.eE=new n.Vector3;this.ZL=new n.Vector3;this.filter=new b(l);this.wwa=new e(q);this.bz=o.bz();this.uj=o.uj();o.OX();this.zY=o.Cva();this.IL=new n.Quaternion;o.uj()?this.IL.setFromAxisAngle(new n.Vector3(1,
0,0),Math.PI/2):this.IL.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);this.qY=new n.Quaternion;this.Bz=new n.Quaternion;this.lwa=new n.Quaternion;this.lwa.setFromAxisAngle(new n.Vector3(0,0,1),-window.orientation*Math.PI/180);this.Uda();o.Gva()&&this.IL.multiply(this.qY);this.mda=new n.Quaternion;this.bz=o.bz();this.uj=o.uj();this.Bva=o.OX()>=66;this.wv=this.wv.bind(this);this.PE=this.PE.bind(this);this.OE=this.OE.bind(this);screen&&screen.orientation&&screen.orientation.addEventListener?screen.orientation.addEventListener("change",
this.wv):window.addEventListener("orientationchange",this.wv);this.zY?window.addEventListener("deviceorientation",this.PE):window.addEventListener("devicemotion",this.OE)}function e(a){this.xwa=a;this.BM=new n.Quaternion;this.mz=r;this.Vaa=new n.Quaternion;this.RE=new n.Quaternion}function d(a,b){this.set(a,b)}var f=a("lc"),g=a("bY"),k=a("eL"),i=a("r"),n=a("ku"),j=new k,l=0.98,q=0.04;b.prototype.ata=function(a,b){this.AX.set(a,b)};b.prototype.eta=function(a,b){this.DL.set(a,b);o.Qva(b-this.SY.WM)&&
this.Vwa();this.SY.copy(this.DL)};b.prototype.Vwa=function(){if(this.zca){var a=this.dva(this.DL.sample,this.DL.WM-this.SY.WM);this.cva.multiply(a);this.ev.copy(this.RY);this.ev.multiply(a);a=new n.Quaternion;a.copy(this.ev);a.inverse();this.GL.set(0,0,-1);this.GL.applyQuaternion(a);this.GL.normalize();this.FY.copy(this.AX.sample);this.FY.normalize();a=new n.Quaternion;a.Ida(this.GL,this.FY);a.inverse();var b=new n.Quaternion;b.copy(this.ev);b.multiply(a);this.ev.vya(b,1-this.Tva);this.RY.copy(this.ev)}else{this.yaa=
this.$sa(this.AX.sample);this.RY.copy(this.yaa);this.zca=p}};b.prototype.tn=R("ev");b.prototype.$sa=function(a){var b=new n.Vector3;b.copy(a);b.normalize();a=new n.Quaternion;a.Ida(new n.Vector3(0,0,-1),b);a.inverse();return a};b.prototype.dva=function(a,b){var c=new n.Quaternion,d=new n.Vector3;d.copy(a);d.normalize();c.setFromAxisAngle(d,a.length()*b);return c};c.prototype.stop=function(){screen&&screen.orientation&&screen.orientation.addEventListener&&screen.orientation.removeEventListener("change",
this.wv);window.removeEventListener("orientationchange",this.wv);window.removeEventListener("deviceorientation",this.PE);window.removeEventListener("devicemotion",this.OE)};c.prototype.ds=S(r);c.prototype.tn=function(){var a=m;if(this.zY&&this.dH){this.Xaa=this.Xaa||function(){var a=(new n.Quaternion).setFromAxisAngle(new n.Vector3(0,0,-1),0),b=new n.Quaternion;this.eK=="landscape-secondary"?b.setFromAxisAngle(new n.Vector3(0,1,0),Math.PI/-2):b.setFromAxisAngle(new n.Vector3(0,1,0),Math.PI/2);return a.multiply(b)}();
this.Waa=this.Waa||function(){var a=new n.Quaternion;a.setFromAxisAngle(new n.Vector3(1,0,0),-Math.PI/2);return a}();var a=this.dH,b=new n.Quaternion;b.copy(a);b.multiply(this.Waa);b.multiply(this.mda);b.multiply(this.Bz);b.Oca(this.Xaa,b);if(this.bBa){b.x=0;b.z=0;b.normalize()}this.yM[0]=b.x;this.yM[1]=b.y;this.yM[2]=b.z;this.yM[3]=b.w;return this.yM}a=this.wwa.Sua(this.filter.tn(),this.ZL,this.mz);b=new n.Quaternion;b.copy(this.IL);b.multiply(this.mda);b.multiply(a);b.multiply(this.Bz);return b};
c.prototype.PE=function(a){this.dH=this.dH||new n.Quaternion;var b=a.alpha,c=a.Xza,a=a.lAa,b=(b||0)*Math.PI/180,c=(c||0)*Math.PI/180,a=(a||0)*Math.PI/180;this.dH.Hda(c,b,-a)};c.prototype.OE=function(a){var b=a.rotationRate;if(b){var c=a.accelerationIncludingGravity,a=a.timeStamp/1E3;this.bz&&(a=a/1E3);var d=a-this.mz;if(d<=o.G_||d>o.E_)this.mz=a;else{this.eE.set(-c.x,-c.y,-c.z);this.ZL.set(b.alpha,b.beta,b.gamma);(this.uj||this.bz||this.Bva)&&this.ZL.Pca(Math.PI/180);this.filter.ata(this.eE,a);this.filter.eta(this.ZL,
a);this.mz=a;if(!this.Lca){this.Kca++;if(this.Kca>=5){this.Lca=p;j.trigger(new g(f.Db))}}this.eK!=this.hba()&&this.wv();j.trigger(new g(f.aa))}}else{this.zY=p;window.addEventListener("deviceorientation",this.PE);window.removeEventListener("devicemotion",this.OE)}};c.prototype.bind=function(){j.bind.apply(j,arguments)};c.prototype.unbind=function(){j.unbind.apply(j,arguments)};c.prototype.wv=function(){this.Uda();j.trigger(new g(f.aa))};c.prototype.Uda=function(){this.Bz.set(0,0,0,1);this.eK=this.hba();
switch(this.eK){case "landscape-primary":this.Bz.setFromAxisAngle(new n.Vector3(0,0,1),-Math.PI/2);break;case "landscape-secondary":this.Bz.setFromAxisAngle(new n.Vector3(0,0,1),Math.PI/2)}this.qY.copy(this.Bz);this.qY.inverse()};c.prototype.hba=function(){var a=screen.orientation&&screen.orientation.type;if(!a)switch(window.orientation){case 0:a="portrait-primary";break;case 90:a="landscape-primary";break;case -90:a="landscape-secondary";break;case 180:a="portrait-secondary"}a=="landscape-primary"&&
(this.eE.z>4.9||this.eE.z<-4.9?a=this.eK||a:this.eE.x>0&&(a="landscape-secondary"));return a};e.prototype.Sua=function(a,b,c){if(!this.mz){this.BM.copy(a);this.mz=c;return a}c=new n.Vector3;c.copy(b);c.normalize();b=b.length();if(b<n.degToRad*20){this.RE.copy(a);this.BM.copy(a);return this.RE}this.Vaa.setFromAxisAngle(c,b*this.xwa);this.RE.copy(this.BM);this.RE.multiply(this.Vaa);this.BM.copy(a);return this.RE};d.prototype.set=function(a,b){this.sample=a;this.WM=b};d.prototype.copy=function(a){this.set(a.sample,
a.WM)};var o={G_:0.001,E_:1,Qva:function(a){return isNaN(a)||a<=o.G_||a>o.E_?z:p}};o.uj=function(){var a=/iPad|iPhone|iPod/.test(navigator.platform);return function(){return a}}();o.yAa=function(){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return function(){return a}}();o.bz=function(){var a=navigator.userAgent.indexOf("Firefox")!==-1&&navigator.userAgent.indexOf("Android")!==-1;return function(){return a}}();o.OX=function(){var a=navigator.userAgent.match(/.*Chrome\/([0-9]+)/),
b=a?parseInt(a[1],10):r;return function(){return b}}();o.Cva=function(){var a=z;if(o.OX()===65){var b=navigator.userAgent.match(/.*Chrome\/([0-9\.]*)/);if(b)var b=b[1].split("."),c=b[3],a=parseInt(b[2],10)===3325&&parseInt(c,10)<148}else"getVRDisplays"in navigator&&i.browser()==i.wi&&i.qE()&&i.Hc()==i.BF&&(a=p);return function(){return a}}();o.Gva=function(){return window.orientation==90||window.orientation==-90};return c});
define("fQ","require,fd,lc,bY,eL,kl,r,ec,gL,jk".split(","),function(a){function b(){function a(){q=p;j.trigger(new e(c.aa))}function b(){var e;t&&(d||!l)?e=u:l&&(e=f);if(o!=e){if(o){o.unbind(c.aa,a);o.stop()}if(o=e){o.bind(c.aa,a,this,p);a()}}}var d=g.Xd()==g.Hj||n.Vf("debug")&&n.wn("sensor")=="deviceorientation",f=new i,l=z;f.bind(c.Db,function(){l=p;b()},this,p);var u=new k,t=z;u.bind(c.Db,function(){t=p;b()},this,p)}a("fd");var c=a("lc"),e=a("bY"),d=a("eL"),f=a("kl"),g=a("r"),k=a("ec"),i=a("gL"),
n=a("jk"),j=new d,l={},q=z,o,t=[],s=z,u=z;l.XY=function(a){a&&t.push(a);if(l.disabled){if(g.Xd()==g.Hj&&window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(function(a){if(a==="granted"){u=p;c()}});DeviceMotionEvent.requestPermission().then(function(a){if(a==="granted"){s=p;c()}});var c=function(){if(l.disabled&&s&&u){l.disabled=z;for(b();t.length;)t.pop()()}};c()}}else for(;t.length;)t.pop()()};l.bind=function(a,b){j.bind(c.aa,a,b)};l.unbind=
function(a,b){j.unbind(c.aa,a,b)};l.kwa=function(){return q};l.tn=function(){q=z;if(o){var a=o.tn(),a=f.LZ(a);return{yaw:a.ja,pitch:a.pitch,roll:a.ld}}return{yaw:0,pitch:0,roll:0}};if(g.Xd()==g.GO||g.Xd()==g.efa){l.available=z;l.disabled=z}else if(g.Xd()==g.UZ&&g.browser()==g.wi&&window.location.protocol!="https:"&&window.location.hostname!="localhost"){l.available=p;l.disabled=p}else if(g.Xd()==g.Hj){l.available=p;l.disabled=p;if(!window.DeviceMotionEvent||!DeviceMotionEvent.requestPermission){var v=
function(){window.removeEventListener("deviceorientation",v,z);l.disabled=z;b()};window.addEventListener("deviceorientation",v,z)}else l.XY()}else{l.available=window.DeviceMotionEvent!=m;l.disabled=z}l.available&&!l.disabled&&b();return l});define("jC",["require"],function(){return{yza:"single",FRONT:"front",oa:"left",BACK:"back",Ka:"right",jb:"top",ib:"bottom"}});
define("gS",["require","jC"],function(a){var a=a("jC"),b={},c=Math.PI/180,e=new THREE.Matrix4;new THREE.Matrix4;var d=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];b.Jd=Math.pow(10,3);b.rN=0.5*b.Jd;b.zfa=b.Jd;b.x0=[a.FRONT,a.Ka,a.BACK,a.oa,a.jb,a.ib];b.Qaa=function(a,c){for(var d=b.Jd,e=b.rN,n=a*c,j=this.co(),l=[],q=0,o=6*n;q<o;q++)l.push(q);var q=[],t=n;q.push(this.pw(j,a,c,-e,+e,-e,+d,0,-d,0,l.slice(0,t)));o=t;t+=n;q.push(this.pw(j,
a,c,+e,+e,-e,0,+d,-d,0,l.slice(o,t)));o=t;t+=n;q.push(this.pw(j,a,c,+e,+e,+e,-d,0,-d,0,l.slice(o,t)));o=t;t+=n;q.push(this.pw(j,a,c,-e,+e,+e,0,-d,-d,0,l.slice(o,t)));o=t;t+=n;q.push(this.pw(j,a,c,-e,+e,+e,+d,0,0,-d,l.slice(o,t)));o=t;q.push(this.pw(j,a,c,-e,-e,-e,+d,0,0,+d,l.slice(o,t+n)));j.mergeVertices();j.computeFaceNormals();j.userData.type="cube";j.userData.gca=a;j.userData.tea=c;j.userData.swa=q;return j};b.Ly=function(){var a=this.co();this.D1(a,-0.5,0.5,0,1,0,0,0,-1,0,0);a.mergeVertices();
a.computeFaceNormals();a.userData.type="plane";return a};b.Paa=function(a,b,c,d,e,j,l,q,o,t,s,u){var v=this.co();v.vertices.push(new THREE.Vector3(a,b,c));v.vertices.push(new THREE.Vector3(d,e,j));v.vertices.push(new THREE.Vector3(l,q,o));v.vertices.push(new THREE.Vector3(t,s,u));v.faces.push(new THREE.Face3(0,2,1,r,r,0));v.faceVertexUvs[0].push([new THREE.Vector2(0,1),new THREE.Vector2(1,0),new THREE.Vector2(1,1)]);v.faces.push(new THREE.Face3(0,3,2,r,r,0));v.faceVertexUvs[0].push([new THREE.Vector2(0,
1),new THREE.Vector2(0,0),new THREE.Vector2(1,0)]);v.mergeVertices();v.computeFaceNormals();v.userData.type="quad";return v};b.Tda=function(a,b,c,d,e){var j=a.faceVertexUvs[0][0];j[0].x=b;j[0].y=c+e;j[1].x=b;j[1].y=c;j[2].x=b+d;j[2].y=c;j=a.faceVertexUvs[0][1];j[0].x=b;j[0].y=c+e;j[1].x=b+d;j[1].y=c;j[2].x=b+d;j[2].y=c+e;a.uvsNeedUpdate=p};b.sp=function(){return b.rN};b.aY=function(a,b){return 2*a*Math.tan(0.5*b*c)};b.bY=function(a,b){return 2*a*Math.tan(0.5*b*c)};b.kv=function(a){return Math.max(Math.min(3.539647*
a-6.669366*a*a+4.7454*a*a*a,b.rN),0.1)};b.co=function(){var a=new THREE.Geometry;a.userData={};return a};b.pw=function(a,b,c,d,e,j,l,q,o,t,s){for(var u={},v=0,w=0;w<c;w++){u[w]={};for(var x=0;x<b;x++)this.D1(a,d+l*x/b+0*w/c,e+0*x/b+o*w/c,j+q*x/b+t*w/c,l/b,0/b,q/b,0/c,o/c,t/c,s[v]),u[w][x]=a.faces.slice(a.faces.length-2,a.faces.length),v+=1}return u};b.qAa=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),i=b/a.z,n=
d[1];n.x=a.x*i;n.y=a.y*i;n.z=b;return c/Math.sqrt(n.x*n.x+n.y*n.y+n.z*n.z)};b.Jua=function(a,c,d){e.copy(c.matrixWorldInverse).multiply(d);switch(a.userData.type){case "cube":return b.nla(a,e,c.projectionMatrix);default:return b.ola(a)}};b.Fua=function(a,c,d){switch(a.userData.type){case "plane":return b.Vka(a,c,d);case "quad":return b.p4(a,1,c,d)||b.p4(a,0,c,d);default:return r}};b.D1=function(a,b,c,d,e,j,l,q,o,t,s){var u=a.vertices.length;a.vertices.push(new THREE.Vector3(b,c,d));a.vertices.push(new THREE.Vector3(b+
q,c+o,d+t));a.vertices.push(new THREE.Vector3(b+e+q,c+j+o,d+l+t));a.vertices.push(new THREE.Vector3(b+e,c+j,d+l));a.faces.push(new THREE.Face3(u,u+1,u+2,r,r,s));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,r,r,s));a.faceVertexUvs[0].push([new THREE.Vector2(0,1),new THREE.Vector2(1,0),new THREE.Vector2(1,1)])};b.Vka=function(a,b,c){var e=a.faces[0],n=a.faces[1],j=d[0],l=d[1],q=d[2];j.copy(a.vertices[e.a]).applyMatrix4(b);
l.copy(a.vertices[n.c]).applyMatrix4(b);q.copy(a.vertices[e.b]).applyMatrix4(b);var b=l.x-j.x,n=l.y-j.y,o=l.z-j.z,l=q.x-j.x,t=q.y-j.y,q=q.z-j.z,s=n*q-o*t,u=o*l-b*q,v=b*t-n*l,w=c.direction.x*s+c.direction.y*u+c.direction.z*v;if(0!=w&&(v=-(s*(c.origin.x-j.x)+u*(c.origin.y-j.y)+v*(c.origin.z-j.z))/w,!(0>=v)))return s=c.origin.x+c.direction.x*v-j.x,u=c.origin.y+c.direction.y*v-j.y,j=c.origin.z+c.direction.z*v-j.z,c=(b*s+n*u+o*j)/(b*b+n*n+o*o),j=(l*s+t*u+q*j)/(l*l+t*t+q*q),b=a.faceVertexUvs[0][0][0],n=
a.faceVertexUvs[0][1][2],l=a.faceVertexUvs[0][0][1],a=b.x+(n.x-b.x)*c+(l.x-b.x)*j,b=b.y+(n.y-b.y)*c+(l.y-b.y)*j,0>c||1<c||0>j||1<j?m:{mea:a,qea:b,materialIndex:e.materialIndex}};b.p4=function(a,b,c,e){var n=a.faces[b],j=d[0],l=d[1],q=d[2];j.copy(a.vertices[n.a]).applyMatrix4(c);l.copy(a.vertices[n.b]).applyMatrix4(c);q.copy(a.vertices[n.c]).applyMatrix4(c);var c=l.x-j.x,o=l.y-j.y,t=l.z-j.z,l=q.x-j.x,s=q.y-j.y,q=q.z-j.z,u=o*q-t*s,v=t*l-c*q,w=c*s-o*l,x=e.direction.x*u+e.direction.y*v+e.direction.z*
w;if(0!=x&&(w=-(u*(e.origin.x-j.x)+v*(e.origin.y-j.y)+w*(e.origin.z-j.z))/x,!(0>=w))){u=e.origin.x+e.direction.x*w-j.x;v=e.origin.y+e.direction.y*w-j.y;e=e.origin.z+e.direction.z*w-j.z;if(0!=(j=s*c-l*o))c=(v*c-u*o)/j,o=(v*l-u*s)/-j;else if(0!=(j=q*c-l*t))c=(v*c-u*o)/j,o=(v*l-u*s)/-j;else if(0!=(j=q*o-s*t))c=(e*o-v*t)/j,o=(e*s-v*q)/-j;else return;if(!(0>o||1<o||0>c||1<c||1<o+c))return l=a.faceVertexUvs[0][b][0],s=a.faceVertexUvs[0][b][1],a=a.faceVertexUvs[0][b][2],{mea:l.x+(s.x-l.x)*o+(a.x-l.x)*c,
qea:l.y+(s.y-l.y)*o+(a.y-l.y)*c,materialIndex:n.materialIndex}}};b.nla=function(a,c,d){var e=Array.prototype.concat.apply([],a.userData.swa.map(function(e){return b.D4(c,d,e,a.vertices,0,0,a.userData.gca,a.userData.tea).map(function(a){return a.materialIndex})}));return b.K4(e)};b.ola=function(a){a=a.faces.map(function(a){return a.materialIndex});return b.K4(a)};b.K4=function(a){var b={};a.forEach(function(a){b[a]=p});var a=[],c;for(c in b)a.push(c);return a};b.D4=function(a,c,d,e,n,j,l,q){var o=
[];if(b.nra(a,c,e[d[j][n][0].a],e[d[j+q-1][n][0].b],e[d[j+q-1][n+l-1][0].c],e[d[j][n+l-1][1].c]))if(1==l&&1==q)o.push(d[j][n][0]);else{j=1<q?[j,j+Math.ceil(0.5*q),j+q]:[j,j+q];n=1<l?[n,n+Math.ceil(0.5*l),n+l]:[n,n+l];for(l=1;l<j.length;l++)for(var q=j[l-1],t=j[l]-q,s=1;s<n.length;s++)var u=n[s-1],o=o.concat(b.D4(a,c,d,e,u,q,n[s]-u,t))}return o};b.nra=function(a,b,c,e,n,j){var l=[r,r,r,r,r];d[0].copy(c).applyMatrix4(a);d[1].copy(e).applyMatrix4(a);d[2].copy(n).applyMatrix4(a);d[3].copy(j).applyMatrix4(a);
c=0;e=4;for(a=0;4>a;a++){var n=d[(a+3)%4],j=d[a],q=d[(a+1)%4];if(0>=j.z)l[c++]=j;else{if(0>=n.z){var o=d[e++],t=n.z/(n.z-j.z);o.x=n.x+(j.x-n.x)*t;o.y=n.y+(j.y-n.y)*t;o.z=-1.0E-5;l[c++]=o}0>=q.z&&(o=d[e++],t=j.z/(j.z-q.z),o.x=j.x+(q.x-j.x)*t,o.y=j.y+(q.y-j.y)*t,o.z=-1.0E-5,l[c++]=o)}}if(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 p}return z};b.Raa=function(a,
d,e,i,n,j,l,q,o){for(var t=a*c,s=0.5*-t+0.5*Math.PI,u=d*c,v=0.5*(Math.PI-u)-e*c,w=0.5*b.zfa,x=64/Math.PI,y=Math.max(2,Math.ceil(t/i*x)),x=Math.max(2,Math.ceil(u/n*x)),F=i*y,A=n*x,M=this.co(),E=0,J=[],B=0;B<=A;B++){for(var G=[],H=v+B*u/A,I=0;I<=F;I++){var N=-(s+I*t/F);M.vertices.push(new THREE.Vector3(-w*Math.cos(N)*Math.sin(H),+w*Math.cos(H),+w*Math.sin(N)*Math.sin(H)));G.push(E++)}J.push(G)}for(s=t=0;s<n;s++){u=s*x;for(v=0;v<i;v++){w=v*y;for(B=0;B<x;B++){F=l+(1-B/x)*o;A=l+(1-(B+1)/x)*o;for(I=0;I<
y;I++){var E=j+I/y*q,G=j+(I+1)/y*q,H=J[u+B][w+I],N=J[u+B+1][w+I+1],O=J[u+B][w+I+1];M.faces.push(new THREE.Face3(H,J[u+B+1][w+I],N,r,r,t));M.faceVertexUvs[0].push([new THREE.Vector2(E,F),new THREE.Vector2(E,A),new THREE.Vector2(G,A)]);M.faces.push(new THREE.Face3(H,N,O,r,r,t));M.faceVertexUvs[0].push([new THREE.Vector2(E,F),new THREE.Vector2(G,A),new THREE.Vector2(G,F)])}}t++}}M.mergeVertices();M.computeFaceNormals();M.userData.type="sphere";M.userData.ad=a;M.userData.hm=d;M.userData.pitch=e;M.userData.gca=
i;M.userData.tea=n;return M};return b});
define("bI",["require"],function(){return{ys:"data:image/png;base64, ",Sea:"data:image/png;base64, ",
xfa:"data:image/png;base64, ",
Oz:"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==",
Cfa:"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",
oN:"data:image/png;base64, ",
Qs:"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",
tfa:115,pza:115,Kfa:"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==",
Mfa:115,Eza:117}});
define("jV","require,jquery.mod,fd,lc,bY,eL,r".split(","),function(a){var b=a("jquery.mod"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),a=a("r");if(a.Hc()!=a.Gz){var g=function(a){return a.requestFullscreen||a.msRequestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullscreen},k=function(){return document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen},i=document.createElement("div");if(a=!(g(i)||k())){var n;try{n=window.self===window.top}catch(j){n=
z}a=!n}if(a){var l=c.extend(f,function(a){f.call(this);this.I=a}),q=p;l.mZ=function(a){q=a=="out_of_frame"};l.prototype.available=function(){return q};l.prototype.uh=function(){this.toggle()};l.prototype.Wd=C();l.prototype.toggle=function(){q&&window.open(window.self.location.href,"_blank")};l.prototype.enabled=function(){return l.enabled()};l.enabled=S(z);l.Vl=S(r);l.Wd=C();return l}l=c.extend(f,function(a){f.call(this);this.I=a;this.Br=g(a);this.JP=k();this.V=this.zR();var c=this;b(document).bind("msfullscreenchange webkitfullscreenchange mozfullscreenchange fullscreenchange",
function(){c.NV()});b(window).bind("resize",function(){c.NV()})});l.mZ=C();l.prototype.available=function(){return!(!g(this.I||i)&&!k())};l.prototype.uh=function(){this.enabled()||this.toggle()};l.prototype.Wd=function(){this.enabled()&&this.toggle()};l.prototype.toggle=function(){this.enabled()?this.JP.call(document):this.Br.call(this.I);this.NV()};l.prototype.enabled=function(){return this.V&&this.zR()};l.prototype.zR=function(){return this.I===l.Vl()};l.prototype.NV=function(){var a=this.zR();
if(this.V!=a){this.V=a;this.trigger(new d(e.aa))}};l.enabled=function(){return!!l.Vl()};l.Vl=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement};l.Wd=function(){l.enabled()&&k().call(document)}}else{l=c.extend(f,function(a){f.call(this);this.I=a});l.prototype.available=S(p);l.prototype.uh=function(){this.enabled()||this.toggle()};l.prototype.Wd=function(){this.enabled()&&this.toggle()};l.prototype.toggle=function(){if(this.enabled()){o();
l.Gq=r}else{l.Gq&&l.Gq.Wd();o();var a=t();a.push("fullscreen");s(a);l.Gq=this}this.trigger(new d(e.aa))};l.prototype.enabled=function(){return this==l.Gq};l.enabled=function(){return!!l.Vl()};l.Vl=function(){return l.Gq&&l.Gq.I};l.Wd=function(){l.enabled()&&l.Gq.Wd()};l.mZ=C();l.Gq=r;var o=function(){for(var a=t(),b=[],c=0;c<a.length;c++)a[c]!="fullscreen"&&b.push(a[c]);s(b)},t=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]},s=function(a){window.location.hash="#"+
(a.length?a.join("&"):"")}}return l});
define("gI","require,jquery.mod,fd,lb,r,jk,ls,bI,jV,cI".split(","),function(a){function b(a,b){this.Tsa=a;this.via=b;this.LV=[];this.sg=r;this.aD=z}var c=a("jquery.mod"),e=a("fd"),d=a("lb"),f=a("r"),g=a("jk"),k=a("ls"),i=a("bI"),n=a("jV"),j=a("cI"),l="color:#000; font-family:Arial, Helvetica, sans-serif;",q="",o="border-color:#b2b2b2;",t=o,s="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="'+i.ys+'"/>',w='<img style="width:24vmin;" src="'+i.ys+'"/>',x='<img style="width:34vmin;" src="'+i.oN+'"/>',y='<img style="width:34vmin;" src="'+i.Sea+'"/>',F='<img style="width:24vmin;" src="'+i.xfa+'"/>';if(f.Wa()){s=s+" margin:0 1vmin; min-width:20vmin; padding:2.2vmin 4vmin; font-size:3.6vmin; font-weight:bold; min-width:30vmin;";l=l+" font-size:3.6vmin; line-height:4.3vmin;";q=q+" margin:5vmin 0;";o=o+"  margin:5vmin 0;";t=t+"  margin:3vmin 0;";u=u+" height:4vmin; margin:0 1vmin 0 0; width:4vmin;"}else s=
s+" font-size:19px; padding:17px 34px;";q=q+l;b.prototype.mQ=function(){if(!this.sg){this.sg=c("<div/>");this.sg.css({position:"fixed","z-index":k.$ea,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});this.sg.html(this.via);c(this.sg).find("button").on("click",function(a){this.Uma(c(a.currentTarget).attr("id"))}.bind(this))}};b.prototype.eV=function(a,b){var c={},d;for(d in b)c[d]=a.css(d);this.LV.push({$el:a,css:c});a.css(b)};b.prototype.dpa=
function(){for(;this.LV.length;){var a=this.LV.pop();a.$el.css(a.css)}};b.prototype.show=function(a,b,d){a||(a=C());b||(b=C());if(this.aD){var f=this.UG;this.UG=function(){f();a()};var e=this.HG;this.HG=function(){e();b()}}else{this.mQ();this.UG=a;this.HG=b;var i=this.yka();if(i===m){this.aD=p;var j=this,i=c(n.Vl()||document.body);if(d!==p)i.children().each(function(){j.eV(c(this),{visibility:"hidden"})});else{this.eV(i,{overflow:"hidden"});i.children().each(function(){j.eV(c(this),{position:"absolute",
"z-index":0})})}i.append(this.sg)}else{this.aD=z;i?this.UG():this.HG()}}};b.prototype.hide=function(){if(this.aD){this.aD=z;this.sg.detach();this.dpa()}};b.prototype.yka=function(){var a=j.getItem(this.k4());if(a=="true")return p;if(a=="false")return z};b.prototype.f9=function(a){j.setItem(this.k4(),a?"true":"false")};b.prototype.k4=function(){return this.Tsa+"DontDisplay:"+window.location.pathname};b.prototype.Uma=function(a){var b=c("#tdvvriw_dontdisplay").is(":checked");this.hide();if(a=="tdvvriw_continue"){this.UG();
b&&this.f9(p)}else if(a=="tdvvriw_cancel"){this.HG();b&&this.f9(z)}};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="'+q+'">'+d("use-cardboard-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">'+d("use-cardboard")+"</button></div>","</div>",'<hr style="'+o+'">',"<div>",'<div style="'+q+'">','<div style="margin-bottom:2vmin;">'+
d("samsung-internet-vr-app-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_cancel">'+d("launch-default-browser")+"</button></div>","</div>",y,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+q+'">','<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)}),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="'+q+'">'+d("use-cardboard-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">OK</button></div>',"</div>",'<hr style="'+o+'">',"<div>",'<div style="'+q+'">','<div style="margin-bottom:2vmin;">'+d("samsung-internet-vr-info")+"</div>","</div>",y,"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+q+'">','<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)}),M=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>',
y,'<div style="'+q+'">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="'+s+'" id="tdvvriw_cancel">OK</button></div>',"</div>\n</div></div>"].join("\n"))}),E=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="'+
q+'"></div>','<div style="text-align:center;"><button style="'+s+' 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)});E.prototype.mQ=function(){b.prototype.mQ.call(this);g.Lg("vrv")===p&&this.sg.css({background:"none"})};var J=e.extend(b,function(){var a;a=f.browser()==f.wf?window.location.protocol!="https:"?"<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="'+q+'">',a,"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">OK</button></div>',"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+q+'">','<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)}),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="'+q+'">'+d("use-cardboard-info")+'</div><div><button style="'+s+'" id="tdvvriw_continue">'+d("use-cardboard")+"</button></div>","</div>",'<hr style="'+o+'">',"<div>",y,'<div style="'+q+'">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="'+s+'" id="tdvvriw_cancel">Use Carmel web browser</button></div>',"</div>\n</div></div>"].join("\n");b.call(this,"CarmelInstallationPromptVRInfoWindow",
a)}),G=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="'+s+'" id="tdvvriw_cancel">'+d("use-default-cardboard")+"</button></div>","</div>",'<hr style="'+t+'">',"<div>",'<div style="'+l+' margin-bottom:2vmin;">'+d("cardboard-v2")+"</div>",'<div><button style="'+
s+'" id="tdvvriw_continue">'+d("use-cardboard-v2")+"</button></div>",x,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+q+'">','<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)}),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;">',
'<div style="'+q+'"></div>','<div style="text-align:center;"><button style="'+s+'" id="tdvvriw_continue">'+d("enter-vr")+"</button></div>","</div></div>"].join("\n");b.call(this,"EnterVRInfoWindow",a)}),I=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="'+q+'">Preparing VR...</div>',"</div></div>"].join("\n"))}),
N=e.extend(b,function(){var a=['<div style="position: absolute; top: 7vmin; right:5vmin; ">',w,'</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;">',F,'<div style="'+q+'">'+d("use-safari-for-vr")+"</div>",'<div style="text-align:center;"><button style="'+s+'" id="tdvvriw_continue">OK</button></div>',"</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+
q+'">','<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="'+i.ys+'"/>','</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="'+i.Oz+'"/>','<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)}),O={};O.yfa=new A;O.xza=new M;O.u_=new E;O.eza=new B;O.iza=new H;O.rza=new I;O.I0=new N;O.Oz=new e;O.z_=new J;O.Dea=new a;O.oN=new G;return O});define("cv",["require"],function(){return{ys:"Cardboard",Ofa:"WebVR",Pfa:"WebXR"}});
define("fH","require,iO,r,gi,jk,V".split(","),function(a){var b=a("iO"),c=a("r"),e=a("gi"),d=a("jk");a("V");var f={Rva:function(a){return this.IE(a)||this.Dca(a)?p:z},On:function(){var a=c.ywa();f.On=function(){return a};return a},Dca:function(a){return typeof a=="string"&&e.is(a,e.Ei)?p:z},xAa:function(a){return this.uY(a)||this.vY(a)?p:z},vY:function(a){return typeof a=="string"&&(e.is(a,e.Yea)||e.tv(a,e.Zea))?p:z},IE:function(a){return!!a&&!!a.tagName&&a.tagName=="VIDEO"},es:function(a){return typeof a==
"string"&&e.is(a,e.Gj)||this.IE(a)&&e.is(a.currentSrc,e.Gj)?p:z},yh:function(a){return typeof a=="string"&&e.is(a,e.Ei)||this.IE(a)&&e.is(a.currentSrc,e.Ei)?p:z},uY:function(a){return!!a&&!!a.tagName&&a.tagName=="IMG"},tca:function(a){return!!a&&!!a.tagName&&a.tagName=="CANVAS"},zba:function(a){return Math.pow(2,Math.round(Math.log(a)/Math.LN2))},Bca:function(a){return a!==0&&(a&a-1)===0},vca:function(){return c.browser()==c.xi},Jva:function(){return c.browser()==c.Up},uj:function(){return c.Xd()==
c.Hj},uea:function(a){if(k)return p;if(c.wX()&&c.YE()<15.1)if(c.YE()>=15){if(c.Zba())return p}else if(f.es(a))return p;if(f.Jva())return p;if(f.uj()){if(c.Yr()==c.Wv&&c.sv()>=15)return z;if(f.es(a)){if(!b.lca||c.sv()>=14&&c.sv()<14.6)return p}else if(c.sv()<12||a&&a.videoWidth&&a.videoHeight&&a.videoWidth*a.videoHeight<=262144)return p}return z},dca:function(){return f.vca()||f.uj()},cca:function(){return f.uj()&&b.lca&&c.sv()<11}},g=z;f.nca=function(){g=z};f.Ava=function(){return g};f.exa=function(){g=
p};var k=d.Vf("vic");f.uwa=function(){f.uj()&&(k=p)};f.zX=function(a,b){var c={alpha:p,depth:p,stencil:p,antialias:b||z,premultipliedAlpha:p,preserveDrawingBuffer:z,powerPreference:"default",failIfMajorPerformanceCaveat:z,xrCompatible:!f.vca()};return a.getContext("webgl",c)||a.getContext("experimental-webgl",c)};f.getPixelRatio=function(){if(c.Wa()){var a,b,d;try{a=window.top.innerWidth;b=window.top.innerHeight;d=p}catch(f){d=z}var e=window.devicePixelRatio||1;if(d){a=[Math.max(document.documentElement.clientWidth,
a||0),Math.max(document.documentElement.clientHeight,b||0)].sort(function(a,b){return b-a});e=[screen.width*e,screen.height*e].sort(function(a,b){return b-a});e=[e[0]/a[0],e[1]/a[1]].sort()[0]}if(e!==Infinity)return e}else if(c.Xd()==c.bfa&&c.browser()==c.wi)return 1;return window.devicePixelRatio};return f});
define("db","require,fd,jquery.mod,dm,lb,bI,lc,r,d,kj,kw".split(","),function(a){function b(){this.Gc=z;this.rD=r;this.ea=this.W=100;this.nS=this.Gf=m;this.oS=100;this.I=document.createElement("div");this.I.style.opacity=0;this.I.style.display="none";this.I.style.VAa="opacity 0.3s";this.I.addEventListener("transitionend",this.aW.bind(this));this.dd=document.createElement("div");this.Bda(p);this.dd.style.position="absolute";this.dd.style.left=0;this.dd.style.top=0;this.dd.style.right=0;this.dd.style.bottom=
0;this.I.appendChild(this.dd);this.tb=document.createElement("img");this.tb.style.cursor="pointer";this.tb.style.position="absolute";this.tb.style.left="50%";this.tb.style.top="50%";this.tb.style.transform="translate(-50%, -50%)";this.I.appendChild(this.tb);this.JO=d(this.I)}function c(a,b){this.reason=a;this.mp=b}var e=a("fd"),d=a("jquery.mod");a("dm");a("lb");var f=a("bI");EventName=a("lc");Device=a("r");UIComponent=a("d");FadeInEffect=a("kj");FadeOutEffect=a("kw");var g=e.extend(UIComponent,function(){UIComponent.call(this);
this.Xc("UserInteractionWindow");this.ab=r;this.Mm=[];var a=new FadeInEffect;a.set("duration",500);a.set("easing","cubic_in");var b=new FadeOutEffect;b.set("duration",500);b.set("easing","cubic_out");this.N({contentOpaque:p,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:z});this.bind(EventName.yb,this.QW,this,p);this.bind(EventName.T,this.Jsa,this,p)});g.prototype.QW=function(){this.ab&&this.ab.setSize(this.Gd(),this.Fd())};g.prototype.Jsa=function(){var a=this.Mm.slice();this.Mm=
[];this.$K();a.forEach(function(a){a.mp.call(a.context)})};g.prototype.Ia=function(){UIComponent.prototype.Ia.call(this);if(!this.ab){this.ab=new b;this.ab.setSize(this.Gd(),this.Fd());this.ab.Ze(p);this.Pa().append(this.ab.Cb().css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}));this.$K()}};g.prototype.Vk=function(){UIComponent.prototype.Vk.call(this);this.getParent().bind(EventName.yb,this.QW,this,p);g.rga(this)};g.prototype.gj=function(){this.getParent().unbind(EventName.yb,
this.QW,this,p);UIComponent.prototype.gj.call(this);g.Qoa(this)};g.prototype.Rwa=function(a){this.Br(i,a)};g.prototype.YY=function(a){this.Br(k,a)};g.prototype.Br=function(a,b){this.Mm.push(new c(a,b));this.Mm.sort(function(a,b){return n[a.reason]-n[b.reason]});this.$K()};g.prototype.wta=function(a){this.cancel(i,a)};g.prototype.uta=function(){this.cancel(k,m)};g.prototype.cancel=function(a,b){var c=this.gla(a,b);c>=0&&this.Xoa(c)};g.prototype.a2=function(){this.mG(p)};g.prototype.vG=function(){this.mG(z)};
g.prototype.gla=function(a,b){for(var c=0;c<this.Mm.length;c++){var d=this.Mm[c];if(d.reason==a&&d.mp==b)return c}return-1};g.prototype.$K=function(){if(this.ab){var a=this.pla();if(a){switch(a.reason){case k:this.ab.nZ(b.B_);break;case i:this.ab.nZ(b.eO)}this.set("visible",p)}else this.set("visible",z)}};g.prototype.Xoa=function(a){this.Mm.splice(a,1);a==this.Mm.length&&this.$K()};g.prototype.pla=function(){return this.Mm.length>0?this.Mm[0]:r};var k="vr",i="play",n={};n[k]=0;n[i]=1;b.prototype.Cb=
R("JO");b.prototype.setSize=function(a,b){if(this.W!==a||this.ea!==b){this.W=a;this.ea=b;this.aL()}};b.prototype.Bda=function(a){this.dd.style.hasOwnProperty("backdropFilter")?this.dd.style.backdropFilter=a?"blur(8px)":"none":this.dd.style.backgroundColor=a?"rgba(0, 0, 0, 0.6)":"none"};b.prototype.Ze=function(a){if(this.Gc!=a){this.Gc=a;if(this.rD){clearTimeout(this.rD);this.rD=r}if(this.Gc){this.I.style.display="block";this.I.style.opacity=0;this.rD=setTimeout(function(){this.rD=r;this.I.style.opacity=
1}.bind(this),30)}else this.I.style.opacity=0}};b.prototype.nZ=function(a){if(this.Gf!=a){this.Gf=a;this.hsa()}};b.prototype.aW=function(){if(!this.Gc)this.I.style.display="none"};b.prototype.hsa=function(){switch(this.Gf){case b.eO:this.nS=f.Qs;this.oS=f.tfa;break;case b.B_:this.nS=f.Kfa;this.oS=f.Mfa}this.tb.src=this.nS;this.aL()};b.prototype.aL=function(){if(Device.Wa()){this.tb.style.maxWidth=Math.round(this.W*0.5)+"px";this.tb.style.width="20vmin"}else{this.tb.style.maxWidth=Math.round(this.W*
0.33)+"px";this.tb.style.width=this.oS+"px"}};b.eO="play";b.B_="vr";g.e0=b;g.Vc=[];g.YT=[];g.rga=function(a){g.Vc.push(a);g.YT.forEach(function(b){g.e5(a,b)});g.YT=[]};g.Qoa=function(a){g.Vc.splice(g.Vc.indexOf(a),1)};g.ready=function(){return g.Vc.length>0};g.YY=function(a){g.Vc.length?g.Vc.forEach(function(b){g.e5(b,a)}):g.YT.push(a)};g.e5=function(a,b){a.YY(function(){g.Vc.forEach(function(b){b!=a&&b.uta()});b()})};return g});
define("kS",["require"],function(){var a={Fj:{}};a.Fj.NONE="none";a.Fj.oa="left";a.Fj.Ka="right";a.Xg=function(){this.y=this.x=0;this.height=this.width=1};a.J0=function(){this.eye=a.Fj.NONE;this.viewport=new a.Xg;this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.projectionMatrix=new THREE.Matrix4};a.Rea=function(){this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.views=[];this.OL=[]};a.dfa=function(){this.pE=r;this.zk=200;this.pj=100;this.KL=1};return a});
define("df",["require"],function(){return{KF:"gaze",dO:"gaze_click"}});
define("fx","require,fd,lc,fH,eL,db,kS,r,gI,jk,df".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fH"),d=a("eL"),f=a("db"),g=a("kS"),k=a("r"),i=a("gI"),n=a("jk"),j=a("df"),a=b.extend(d,function(){d.call(this);this.S8=j.KF;this.jk=[];this.wc=new g.Rea;this.fg=new g.J0;this.fg.eye=g.Fj.oa;this.ig=new g.J0;this.ig.eye=g.Fj.Ka;this.wc.views=[this.fg,this.ig];this.Pc=new g.dfa;this.bind(c.aa,this.eu,this,z)});a.prototype.am=C();a.prototype.uh=C();a.prototype.Wd=C();a.prototype.UL=R("Pc");a.prototype.rn=
R("wc");a.prototype.Ma=C();a.prototype.isPresenting=C();a.prototype.re=C();a.prototype.XL=R("S8");a.prototype.mv=C();a.prototype.By=function(a){this.jk.indexOf(a)<0&&this.jk.push(a)};a.prototype.FM=function(a){this.jk.splice(this.jk.indexOf(a),1);this.mv()==a&&this.Wd()};a.prototype.PM=function(a){var b=this.jk.indexOf(a);if(!(b<0||b==this.jk.length-1)){this.jk.splice(b,1);this.jk.splice(this.jk.length,0,a)}};a.prototype.$ka=function(){return this.jk.length>0?this.jk[this.jk.length-1]:r};a.prototype.WU=
function(){var a=this.$ka();if(a==r){a=document.createElement("canvas");a=e.zX(a);this.By(a)}return a};a.prototype.SJ=function(a){f.YY(a)};a.prototype.uV=function(a){if(k.Hc()==k.Vv){this.GU();i.Dea.show(a,function(){this.z1()}.bind(this))}else k.qE()&&k.Hc()==k.Hz?i.yfa.show(a):k.Hc()==k.zF?i.I0.show(a):k.Hc()==k.AF?i.I0.show():a()};a.prototype.XU=function(a){var b=function(b){this.S8=b;a()}.bind(this);!k.Wa()||k.se()?b(j.KF):n.wn("cardboard_version")=="1"?b(j.KF):n.wn("cardboard_version")=="2"?
b(j.dO):i.oN.show(function(){b(j.dO)}.bind(this),function(){b(j.KF)}.bind(this))};a.prototype.eu=function(){k.Wa()||(this.isPresenting()?i.u_.show(this.Wd.bind(this)):i.u_.hide())};a.prototype.z1=function(){this.GU();var a=this.P4();a.push("vr");this.J1(a)};a.prototype.GU=function(){this.J1(this.P4().filter(function(a){return a!="vr"}))};a.prototype.P4=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]};a.prototype.J1=function(a){window.location.hash="#"+(a.length?
a.join("&"):"")};return a});
define("p",["require","jquery.mod","jV"],function(a){function b(){j.get(0)==document.body&&g.height(window.innerHeight)}function c(a,b){var c={},d;for(d in b)c[d]=a.css(d);l.push({$el:a,css:c});a.css(b)}function e(a){this.I=a}var d=a("jquery.mod"),f=a("jV");e.prototype.uh=function(){this.enabled()||this.toggle()};e.prototype.Wd=function(){this.enabled()&&this.toggle()};e.prototype.toggle=function(){this.enabled()?e.cancel():e.qg(this.I)};e.prototype.enabled=function(){return e.enabled(this.I)};var g=
d("<div/>").css({position:"fixed",bottom:0,left:0,height:"100vh",width:"100vw"}),k=d("<div/>"),i=r,n=r,j=r,l=[],q=r;e.qg=function(a){if(a!==i){e.cancel();i=a;var l=f.Vl()||document.body;n=d(a);j=d(l);k.insertAfter(n);n.appendTo(g);j.children().each(function(){c(d(this),{visibility:"hidden"})});c(n,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});l==document.body?c(g,{position:"fixed",left:0,top:"",right:"",bottom:0,height:"100vh",width:"100vw",margin:0,padding:0}):c(g,{position:"absolute",
left:0,top:0,right:"",bottom:"",width:"100%",height:"100%",margin:0,padding:0});g.appendTo(j);b();q=setInterval(b,300)}};e.cancel=function(){if(i){g.detach();n.insertBefore(k);for(k.detach();l.length;){var a=l.pop();a.$el.css(a.css)}j=n=i=r;l=[];clearInterval(q)}};e.enabled=function(a){return i==a};return e});
define("iv","require,fd,lc,bY,eL,lb,bI".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("lb"),a=a("bI"),g=['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+a.ys+'"/>','</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"),k=g+['<img style="width:22vmin" src="'+a.Oz+'"/>','<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>",i=g+['<img style="width:13vmin; vertical-align:middle;" src="'+a.Cfa+'"/>','<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.Xh=this.Oj=this.Pj=this.vB=this.wB=this.TS=this.US=m;
this.YH=z;this.Dr=this.iU=this.SS=this.Ad=r;this.R3=[];this.vS=this.Fl=z;this.nb=this.nb.bind(this)});b.prototype.qg=function(){if(!this.Fl){this.Fl=p;this.lQ();window.addEventListener("resize",this.nb);document.body.appendChild(this.Ad);document.body.appendChild(this.Dr);this.dra=document.documentElement.style.overflow;this.cra=document.body.style.overflow;document.documentElement.style.overflow="auto";document.body.style.overflow="auto";this.iC()}};b.prototype.cancel=function(){if(this.Fl){this.Fl=
z;window.removeEventListener("resize",this.nb);document.body.style.overflow=this.cra;document.documentElement.style.overflow=this.dra;document.body.removeChild(this.Ad);document.body.removeChild(this.Dr);this.h9(z)}};b.prototype.enabled=R("YH");b.prototype.lQ=function(){if(!this.Ad){this.Ad=this.YG({position:"fixed",top:0,left:0,zIndex:9999998},p);this.Ad.id="tdvminuictr";this.iU=this.YG({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},p,k);this.Ad.appendChild(this.iU);this.SS=
this.YG({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},p,i);this.Ad.appendChild(this.SS);this.Dr=this.YG({position:"absolute",top:0,left:0,right:0,height:"999999999vmax",zIndex:9999999},z);this.Dr.id="tdvminuiscrl";this.Dr.addEventListener("touchend",this.nb)}};b.prototype.YG=function(a,b,c){var d=document.createElement("div");this.UC(d,a);c!==m&&this.Wpa(d,c);b&&this.R3.push(d);return d};b.prototype.nb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.GT.bind(this),
a)}.bind(this))};b.prototype.GT=function(){(this.Pj!=window.innerWidth||this.Oj!=window.innerHeight)&&this.iC()};b.prototype.iC=function(){this.Pj=window.innerWidth;this.Oj=window.innerHeight;this.Xh=this.Pj>this.Oj?"landscape":"portrait";var a;if(this.Xh=="landscape"){if(this.US&&this.TS&&this.nma(this.US,this.TS)&&(!this.wB&&!this.vB||this.oma(this.wB,this.vB))){this.wB=this.Pj;this.vB=this.Oj}if(this.jma()){this.wB=this.Pj;this.vB=this.Oj}this.US=this.Pj;this.TS=this.Oj;a=this.wB==this.Pj&&this.vB==
this.Oj}else a=z;this.R3.forEach(function(a){a.style.height=this.Oj+"px";a.style.width=this.Pj+"px"}.bind(this));var b=this.Fl&&this.Xh=="portrait",c=this.Fl&&this.Xh=="landscape"&&!a,d=this.Fl&&this.Xh=="landscape";this.UC(this.Ad,{display:b||c?"block":"none"});this.UC(this.iU,{display:b?"block":"none"});this.UC(this.SS,{display:c?"block":"none"});this.UC(this.Dr,{display:d?"block":"none",right:c?0:"99.9%"});this.h9(a)};b.prototype.h9=function(a){if(this.jK!=r){clearTimeout(this.jK);this.jK=r}if(this.YH!=
a)this.jK=setTimeout(function(){this.jK=r;(this.YH=a)?this.trigger(new e(c.Jk)):this.trigger(new e(c.Da));this.trigger(new e(c.aa))}.bind(this),a?1E3:0)};b.prototype.jma=function(){var a=window.innerWidth,b=window.innerHeight,c=Infinity;[[480,320],[960,640],[1136,640],[1334,750],[1920,1080],[2001,1125],[2048,1536],[2172,1125],[2208,1242],[2732,2048],[2436,1125]].forEach(function(d){c=Math.min(c,Math.abs(100-100*a*d[1]/(b*d[0])))});return c<=1?p:z};b.prototype.nma=function(a,b){return a*window.innerHeight>
b*window.innerWidth};b.prototype.oma=function(a,b){return a*window.innerHeight>=b*window.innerWidth};b.prototype.UC=function(a,b){for(var c in b)a.style[c]=b[c]};b.prototype.Wpa=function(a,b){a.innerHTML=b};return new b});
define("lh","require,gb,r,jR,fX,bC".split(","),function(a){var b=a("gb"),c=a("r"),e=a("jR");MediaType=a("fX");SharedPlayerOrchestrator=a("bC");if(c.browser()==c.wi){a=function(){this.U=new e;this.U.src="data:video/mp4;base64, ";this.U.loop=
p;this.U.xp=p;this.Ha=r};a.prototype.HM=S(p);a.prototype.re=function(){return MediaType.Ei};a.prototype.dY=function(){return b.Jfa};a.prototype.GX=function(a){this.Ha=a;this.Ha.play(r,this.U,0)};a.prototype.BY=function(){this.Ha=r};var d=z,f=new a;return{enable:function(){if(!d){d=p;SharedPlayerOrchestrator.oX(f)}},disable:function(){if(d){d=z;SharedPlayerOrchestrator.jz(f)}}}}return{enable:C(),disable:C()}});
define("hT",["require","jquery.mod","lb","bI"],function(a){function b(){this.sg=r;this.V=z;this.nb=this.nb.bind(this);this.Oj=this.Pj=this.Xh=m}var c=a("jquery.mod"),e=a("lb"),d=a("bI");b.prototype.co=function(){this.sg||(this.sg=c("<div/>"),this.sg.css({position:"fixed","z-index":1E6,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"}),this.sg.html(['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+
d.ys+'"/>','</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.Oz+'"/>','<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=p,this.co(),
c(a).append(this.sg),c(window).on("resize",this.nb),this.iC())};b.prototype.hide=function(){this.V&&(this.V=z,c(window).off("resize",this.nb),this.sg.detach())};b.prototype.nb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.GT.bind(this),a)}.bind(this))};b.prototype.GT=function(){(this.Pj!=window.innerWidth||this.Oj!=window.innerHeight)&&this.iC()};b.prototype.iC=function(){this.Pj=window.innerWidth;this.Oj=window.innerHeight;this.Xh=this.Pj>this.Oj?"landscape":"portrait";this.sg.toggle("landscape"!=
this.Xh)};return new b});
define("il","require,fd,lc,bY,gS,iO,r,fQ,gI,bV,cv,fx,d,V,jV,p,iv,lh,hT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("gS"),f=a("iO"),g=a("r"),k=a("fQ"),i=a("gI"),n=a("bV"),j=a("cv"),l=a("fx"),q=a("d"),o=a("V"),t=a("jV"),s=a("p"),u=a("iv"),v=a("lh"),w=a("hT"),x=b.extend(l,function(){l.call(this);this.Hg=this.Fe=this.sf=this.OC=this.Co=this.sh=this.gc=r;this.Ud=j.ys;this.Ma=this.Ma.bind(this)});x.prototype.am=function(a){if(this.kB()){var b=function(b){if(this.gc=b.length?b[0]:r){this.gc.depthNear=
0.1;this.gc.depthFar=2*d.Jd;this.sh="VRFrameData"in window?new VRFrameData:r;window.addEventListener("vrdisplaypresentchange",this.nU.bind(this),z);u.bind(c.Da,this.Wd.bind(this))}a(!!this.gc)}.bind(this),f=window.WebVRConfig||(window.WebVRConfig={});f.BUFFER_SCALE=x.Fy;f.ALWAYS_APPEND_POLYFILL_DISPLAY=p;f.LOCK_ORIENTATION=z;n.L0.load(function(){navigator.getVRDisplays().then(b)["catch"](function(){b([])})}.bind(this))}else a(z)};x.prototype.uh=function(){!this.isPresenting()&&!this.Fe&&this.Fu(function(){this.uV(function(){this.XU(function(){if(!this.isPresenting()&&
!this.Fe){this.Fe=this.WU();this.rV();this.gc.requestPresent([{source:this.Fe.canvas}]).then(function(){this.Hg=this.Fe;this.Fe=r;g.Hc()!=g.Fz&&w.show(t.Vl());this.Xx();this.ZD()}.bind(this))["catch"](function(){this.Fe=r;this.qD()}.bind(this))}}.bind(this))}.bind(this))}.bind(this))};x.prototype.Wd=function(){this.isPresenting()&&this.gc.exitPresent()};x.prototype.Ma=function(a){return this.gc.requestAnimationFrame(function(b){var c=this.Xx();c&&this.Xu();a(b);c&&this.gc.submitFrame()}.bind(this))};
x.prototype.isPresenting=function(){return!!this.gc&&this.gc.isPresenting};x.prototype.mv=R("Hg");x.prototype.re=R("Ud");x.prototype.nU=function(){if(this.isPresenting())o.QM(this.Ma,this.gc.cancelAnimationFrame.bind(this.gc));else{o.ZY();(this.Hg||this.Fe)&&this.qD()}this.trigger(new e(c.aa))};x.prototype.kB=function(){return k.available&&f.TZ&&g.Wa()&&g.Yr()!=g.Wv};x.prototype.Fu=function(a){if(k.disabled)i.z_.show(function(){k.XY(function(){this.Fu(a)}.bind(this))});else if(t.enabled()||!q.GE()){t.Wd();
this.SJ(function(){this.Fu(a)}.bind(this))}else a()};x.prototype.rV=function(){s.qg(this.Fe.canvas);g.Hc()==g.Gz?this.z1():v.enable();g.Hc()==g.Fz&&u.qg()};x.prototype.Xx=function(){this.gc.getFrameData(this.sh);if(!this.sh.pose||!this.sh.pose.orientation)return z;this.Co=this.gc.getEyeParameters("left");this.OC=this.gc.getEyeParameters("right");var a=this.gc.getLayers();this.sf=a&&a.length&&a[0]||r;return!this.sf?z:p};x.prototype.ZD=function(){this.Pc.pE=r;this.Pc.zk=this.Co.renderWidth*2;this.Pc.pj=
this.Co.renderHeight;this.Pc.KL=1};x.prototype.Xu=function(){var a=this.sh.pose;this.wc.orientation.fromArray(a&&a.orientation||y);this.wc.position.fromArray(a&&a.position||F);this.dX()};x.prototype.dX=function(){this.fg.position.fromArray(this.Co.offset);this.fg.orientation.fromArray(y);this.fg.projectionMatrix.fromArray(this.sh.leftProjectionMatrix);this.fg.viewport.x=Math.round(this.Pc.zk*this.sf.leftBounds[0]);this.fg.viewport.y=Math.round(this.Pc.pj*this.sf.leftBounds[1]);this.fg.viewport.width=
Math.round(this.Pc.zk*this.sf.leftBounds[2]);this.fg.viewport.height=Math.round(this.Pc.pj*this.sf.leftBounds[3]);this.ig.position.fromArray(this.OC.offset);this.ig.orientation.fromArray(y);this.ig.projectionMatrix.fromArray(this.sh.rightProjectionMatrix);this.ig.viewport.x=Math.round(this.Pc.zk*this.sf.rightBounds[0]);this.ig.viewport.y=Math.round(this.Pc.pj*this.sf.rightBounds[1]);this.ig.viewport.width=Math.round(this.Pc.zk*this.sf.rightBounds[2]);this.ig.viewport.height=Math.round(this.Pc.pj*
this.sf.rightBounds[3])};x.prototype.qD=function(){this.GU();this.Hg=this.Fe=r;u.cancel();s.cancel();v.disable();w.hide()};x.Fy=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var y=[0,0,0,1],F=[0,0,0];return x});
define("gO","require,fd,bY,lc,r,cv,fx,gS,d,V,p".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("lc"),d=a("r"),f=a("cv"),g=a("fx"),k=a("gS"),i=a("d"),n=a("V"),j=a("p"),a=b.extend(g,function(){g.call(this);this.Hg=this.Fe=this.sf=this.OC=this.Co=this.sh=this.gc=r;this.Ma=this.Ma.bind(this)});a.prototype.am=function(a){if(this.kB()){var b=function(b){if(this.gc=b.length?b[0]:r){this.gc.depthNear=0.1;this.gc.depthFar=2*k.Jd;this.sh="VRFrameData"in window?new VRFrameData:r;window.addEventListener("vrdisplaypresentchange",
this.nU.bind(this),z);window.addEventListener("vrdisplayactivate",this.W7.bind(this));window.addEventListener("vrdisplaydeactivate",this.Wd.bind(this))}a(!!this.gc)}.bind(this);navigator.getVRDisplays().then(b)["catch"](function(){b([])})}else a(z)};a.prototype.uh=function(a){!this.isPresenting()&&!this.Fe&&this.Fu(a,function(){this.uV(function(){this.XU(function(){!this.isPresenting()&&!this.Fe&&this.W7()}.bind(this))}.bind(this))}.bind(this))};a.prototype.Wd=function(){this.isPresenting()&&this.gc.exitPresent()};
a.prototype.Ma=function(a){return this.gc.requestAnimationFrame(function(b){var c=this.Xx();c&&this.Xu();a(b);c&&this.gc.submitFrame()}.bind(this))};a.prototype.isPresenting=function(){return!!this.gc&&this.gc.isPresenting};a.prototype.mv=R("Hg");a.prototype.re=function(){return f.Ofa};a.prototype.kB=function(){return"getVRDisplays"in navigator&&!window.WebVRConfig};a.prototype.nU=function(){if(this.isPresenting()){n.QM(this.Ma,this.gc.cancelAnimationFrame.bind(this.gc));this.Xx()&&this.Xu()}else{n.ZY();
(this.Hg||this.Fe)&&this.qD()}this.trigger(new c(e.aa))};a.prototype.Fu=function(a,b){a||i.GE()?b():this.SJ(function(){b()})};a.prototype.W7=function(){this.Fe=this.WU();this.rV();this.gc.requestPresent([{source:this.Fe.canvas,attributes:{foveationLevel:3}}]).then(function(){this.Hg=this.Fe;this.Fe=r;this.Xx()&&this.Xu()}.bind(this))["catch"](function(){this.Fe=r;this.qD()}.bind(this))};a.prototype.rV=function(){j.qg(this.Fe.canvas)};a.prototype.Xx=function(){this.gc.getFrameData(this.sh);if(!this.sh.pose||
!this.sh.pose.orientation)return z;this.Co=this.gc.getEyeParameters("left");this.OC=this.gc.getEyeParameters("right");var a=this.gc.getLayers();this.sf=a&&a.length&&a[0]||r;return!this.sf?z:p};a.prototype.Xu=function(){this.ZD();var a=this.sh.pose;this.wc.orientation.fromArray(a&&a.orientation||l);this.wc.position.fromArray(a&&a.position||q);this.dX()};a.prototype.ZD=function(){this.Pc.pE=r;this.Pc.zk=this.Co.renderWidth*2;this.Pc.pj=this.Co.renderHeight;this.Pc.KL=d.se()?2048/this.Pc.pj:1};a.prototype.dX=
function(){this.fg.position.fromArray(this.Co.offset);this.fg.orientation.fromArray(l);this.fg.projectionMatrix.fromArray(this.sh.leftProjectionMatrix);var a=this.sf.leftBounds&&this.sf.leftBounds.length==4?this.sf.leftBounds:o;this.fg.viewport.x=Math.round(this.Pc.zk*a[0]);this.fg.viewport.y=Math.round(this.Pc.pj*a[1]);this.fg.viewport.width=Math.round(this.Pc.zk*a[2]);this.fg.viewport.height=Math.round(this.Pc.pj*a[3]);this.ig.position.fromArray(this.OC.offset);this.ig.orientation.fromArray(l);
this.ig.projectionMatrix.fromArray(this.sh.rightProjectionMatrix);a=this.sf.rightBounds&&this.sf.rightBounds.length==4?this.sf.rightBounds:t;this.ig.viewport.x=Math.round(this.Pc.zk*a[0]);this.ig.viewport.y=Math.round(this.Pc.pj*a[1]);this.ig.viewport.width=Math.round(this.Pc.zk*a[2]);this.ig.viewport.height=Math.round(this.Pc.pj*a[3])};a.prototype.qD=function(){this.Hg=this.Fe=r;j.cancel()};var l=[0,0,0,1],q=[0,0,0],o=[0,0,0.5,1],t=[0.5,0,0.5,1];return a});
define("id","require,fd,bY,lc,r,jv,cv,fx,gS,d,V,p,iX,fu".split(","),function(a){function b(a){setTimeout(a,10)}var c=a("fd"),e=a("bY"),d=a("lc"),f=a("r"),g=a("jv"),k=a("cv"),i=a("fx"),n=a("gS"),j=a("d"),l=a("V"),q=a("p"),o=a("iX"),t=a("fu"),s=c.extend(i,function(){i.call(this);this.Yu=this.aE=this.ng=this.Hg=r;this.ey="stopped";this.Ma=this.Ma.bind(this);this.aV=this.aV.bind(this);this.bV=this.bV.bind(this);this.cV=this.cV.bind(this);this.Or=z;o.Az(function(){b(function(){this.Or=p}.bind(this))}.bind(this))});
s.prototype.am=function(a){if(this.kB())this.qra().then(function(b){b?a(p):a(z)})["catch"](function(){a(z)});else a(z)};s.prototype.uh=function(){this.ey=="stopped"&&this.Fu(function(){this.uV(function(){this.XU(function(){setTimeout(function(){this.Vqa()}.bind(this),200)}.bind(this))}.bind(this))}.bind(this))};s.prototype.Vqa=function(){if(this.ey=="stopped"){this.ey="starting";this.trigger(new e(d.aa));l.sZ(p);navigator.xr.requestSession("immersive-vr").then(function(a){this.ng=a;this.ng.addEventListener("end",
this.aV);this.ng.addEventListener("select",this.bV);this.ng.addEventListener("visibilitychange",this.cV);return this.ng.requestReferenceSpace("local")}.bind(this)).then(function(a){this.aE=a;this.Hg=this.WU();return this.Hg.makeXRCompatible()}.bind(this)).then(function(){f.Wa()&&q.qg(this.Hg.canvas);var a=XRWebGLLayer.getNativeFramebufferScaleFactor(this.ng),a=Math.max(a,1);f.wca()?a=a*1:f.se()?a=a*1.42222:f.Wa()&&(a=a*s.Fy);this.Yu=new XRWebGLLayer(this.ng,this.Hg,{antialias:z,framebufferScaleFactor:a});
this.ng.updateRenderState({baseLayer:this.Yu,depthNear:0.1,depthFar:2*n.Jd});this.ZD();this.ey="started";l.QM(this.Ma,this.ng.cancelAnimationFrame.bind(this.ng));l.sZ(z)}.bind(this))["catch"](function(){l.sZ(z);this.X8();this.trigger(new e(d.aa))}.bind(this))}};s.prototype.Wd=function(){this.isPresenting()&&this.ng.end()};s.prototype.Ma=function(a){return this.ng.requestAnimationFrame(function(b,c){this.fX=c;this.Xu();a(b)}.bind(this))};s.prototype.isPresenting=function(){return this.ey!="stopped"};
s.prototype.re=function(){return k.Pfa};s.prototype.mv=R("Hg");s.prototype.kB=function(){return"xr"in navigator};s.prototype.qra=function(){return"isSessionSupported"in navigator.xr?navigator.xr.isSessionSupported("immersive-vr"):"supportsSession"in navigator.xr?navigator.xr.supportsSession("immersive-vr"):Promise.reject()};s.prototype.Fu=function(a){f.Hc()==f.Hn?this.Or?a():j.GE()?b(a):this.SJ(function(){b(a)}):j.GE()?a():this.SJ(function(){a()})};s.prototype.aV=function(){l.ZY();this.X8();this.trigger(new e(d.aa))};
s.prototype.bV=function(){this.trigger(new e(d.Ci))};s.prototype.cV=function(){t.BZ(!this.ng||this.ng.Zya!="visible");g.Oea&&this.ng.Zya!="visible"&&this.Wd()};s.prototype.X8=function(){this.Yu=this.aE=this.ng=this.Hg=r;this.ey="stopped";q.cancel()};s.prototype.ZD=function(){this.Pc.pE=this.Yu.framebuffer;this.Pc.zk=this.Yu.framebufferWidth;this.Pc.pj=(f.Hc()==f.Hn?2:1)*this.Yu.framebufferHeight;this.Pc.KL=1};s.prototype.Xu=function(){var a=this.fX.getViewerPose(this.aE);if(a){var b=a&&a.transform.orientation||
u;this.wc.orientation.set(b.x,b.y,b.z,b.w);b=a&&a.transform.position||v;this.wc.position.set(b.x,b.y,b.z);for(var a=this.fX.getViewerPose(this.aE.getOffsetReferenceSpace(a.transform)),c=0;c<a.views.length;c++){var d=a.views[c],f;if(d.eye=="left")f=this.fg;else if(d.eye=="right")f=this.ig;else continue;b=d.transform.position;f.position.set(b.x,b.y,b.z);b=d.transform.orientation;f.orientation.set(b.x,b.y,b.z,b.w);f.projectionMatrix.fromArray(d.projectionMatrix);d=this.Yu.getViewport(d);f.viewport.x=
d.x;f.viewport.y=d.y;f.viewport.width=d.width;f.viewport.height=d.height}var e=[];this.ng.inputSources.forEach(function(a){if(a.targetRayMode=="tracked-pointer"&&a.gamepad){var b=a.gamepad;if(!b.pose)b.oY=this.fX.getPose(a.targetRaySpace,this.aE);if(!b.hand)b.wva=a.handedness;if(!b.id)b.xva=b.mapping+" "+a.handedness;e.push(b)}}.bind(this));this.wc.OL=e}};s.Fy=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var u={x:0,y:0,z:0,w:1},v={x:0,y:0,z:0};return s});
define("bi","require,fd,lc,eL,r,fQ,jk,il,df,cv,kS,gO,id,fu".split(","),function(a){function b(a,c){if(a.length){var d=new a[0];d.am(function(f){f?c(d):b(a.slice(1),c)})}else c(r)}var c=a("fd"),e=a("lc"),d=a("eL"),f=a("r"),g=a("fQ"),k=a("jk"),i=a("il"),n=a("df"),j=a("cv"),l=a("kS"),q=a("gO"),o=a("id"),t=a("fu"),s=z,u=[],v=new d;v.Fj=l.Fj;v.Dfa=n;v.Dza=j;v.available=S(p);v.rn=S(r);v.UL=S(r);v.isPresenting=S(z);v.uh=function(){s=p};v.Wd=function(){s=z};v.oAa=S(r);v.By=function(a){u.indexOf(a)<0&&u.push(a)};
v.FM=function(a){a=u.indexOf(a);a==-1||u.splice(a,1)};v.PM=C();v.cya=function(a){i.Fy=a;o.Fy=a};v.Pua=function(){return i.Fy};v.re=S(r);v.XL=S(r);v.log=function(){v.available()?v.re()?c.log("VR: "+v.re()):c.log("VR: not ready"):c.log("VR: not available");c.log("gyroscope: "+g.available)};var w;w=f.browser()==f.wi&&!f.Wa()?[o,q,i]:f.wca()?[o,q]:k.wn("vr_mode")=="cardboard"?[i]:[q,o,i];v.am=function(a){var c=setTimeout(function(){c=r;a()},250);b(w,function(b){var d=b;if(d){d.bind(e.aa,function(){v.trigger(e.aa)},
v,p);d.bind(e.Ci,function(){v.trigger(e.Ci)},v,p);v.available=S(p);v.UL=function(){return d.UL()};v.rn=function(){return d.rn()};v.isPresenting=function(){return d.isPresenting()};v.uh=function(){d.uh()};v.Wd=function(){d.Wd()};v.mv=function(){return d.mv()};v.By=function(a){d.By(a)};v.FM=function(a){d.FM(a)};v.PM=function(a){d.PM(a)};v.re=function(){return d.re()};v.XL=function(){return d.XL()};u.forEach(function(a){d.By(a)});f.Hc()==f.xs?function(){function a(){f++;c=setTimeout(b,f*1E3)}function b(){c=
r;if(f>5)window.location.reload();else if(!document.hidden&&!d.isPresenting()){d.uh(p);a()}}var c,f;document.addEventListener("visibilitychange",function(){if(!document.hidden){if(c){clearTimeout(c);c=r}f=0;a()}},z);if(c){clearTimeout(c);c=r}f=0;a()}():s&&d.uh()}else v.available=S(z);if(c){clearTimeout(c);c=r;a()}})};v.bind(e.aa,function(){t.MM(v.isPresenting())},window,p);window.addEventListener("vrdisplayblur",function(){t.BZ(p)},p);window.addEventListener("vrdisplayfocus",function(){t.BZ(z)},p);
return v});
define("da","require,lc,iE,eL,V,bi".split(","),function(a){function b(a){this.SG=a;this.xg=r;this.FP={};for(a=0;a<this.SG.buttons.length;a++)this.FP[this.SG.buttons[a]]=z;this.EP=0;this.tr=r;this.vu=[new THREE.Quaternion,new THREE.Quaternion];this.nh=this.vu[0];this.Gg=[new THREE.Vector3,new THREE.Vector3];this.ua=this.Gg[0];this.Ux=new THREE.Vector3;this.su=new THREE.Quaternion;this.r2=0}function c(a,b,c){this.rva=a;this.buttons=b;this.zwa=c}function e(){if(!(F||x==j.wd)){x=j.wd;var a,c=l.isPresenting()&&
l.rn();if(a=c&&c.OL&&c.OL.length?c.OL:navigator.getGamepads&&navigator.getGamepads()){for(c=0;c<u.length;c++)u[c].Jda(r);for(c=0;c<a.length;c++){var f=a[c];if(f&&(f.pose||f.oY)){var e=f.id||f.xva,g=w[e];if(!g){var k;a:{k=e;for(var n=0;n<q.length;n++){var s=q[n];if(k.indexOf(t[s].rva)==0){k=s;break a}}k=m}k&&u.push(g=w[e]=new b(t[k]))}g&&w[e].Jda(f)}}(a=v)&&!v.xY()&&(v=r);for(c=0;c<u.length;c++){g=u[c];if(g.xY()&&g.pressed()){v=g;break}}if(!v)for(c=0;c<u.length;c++){g=u[c];if(g.xY()){if(g.hand()==
o){v=g;break}v||(v=g)}}a!=v&&i.Ev(d)}}}function d(){s.trigger(k.aa)}function f(){e()}function g(){if(l.isPresenting()){if(y){clearInterval(y);y=r}e();y=setInterval(f,500)}else if(y){clearInterval(y);y=r}}var k=a("lc"),i=a("iE"),n=a("eL"),j=a("V"),l=a("bi"),q=["oculus go","oculus touch","xr-standard","gear vr","daydream","vive","vive focus","microsoft","unknown"],o="right",t={};t["oculus go"]=new c("Oculus Go",["trackpad","trigger"],"trigger");t["oculus touch"]=new c("Oculus Touch",["thumbstick","trigger",
"grip","abutton","bbutton","surface"],"trigger");t["xr-standard"]=new c("xr-standard",["trigger","grip","unknow_button_0","thumbstick","abutton","bbutton","unknow_button"],"trigger");t["gear vr"]=new c("Gear VR",["trackpad","trigger"],"trigger");t.daydream=new c("Daydream Controller",["trackpad","menu","system"],"trackpad");t.vive=new c("OpenVR",["trackpad","trigger","grip","menu","system"],"trigger");t["vive focus"]=new c("HTC Vive Focus",["trackpad","trigger","grip"],"trigger");t.microsoft=new c("Spatial Controller (Spatial Interaction Source)",
["thumbstick","trigger","grip","menu","thumbpad"],"trigger");t.unknown=new c("",[],m);b.prototype.Jda=function(a){if(this.xg=a){this.wla=this.xg.hand||this.xg.wva;if(this.xg.pose){this.tr=this.xg.pose;if(this.tr.orientation){this.nh=this.vu[0]==this.nh?this.vu[1]:this.vu[0];this.nh.fromArray(this.tr.orientation)}if(this.tr.position){this.ua=this.Gg[0]==this.ua?this.Gg[1]:this.Gg[0];this.ua.fromArray(this.tr.position)}else this.ua=r}else if(this.xg.oY){this.tr=this.xg.oY.transform;this.nh=this.vu[0]==
this.nh?this.vu[1]:this.vu[0];this.nh.copy(this.tr.orientation);this.ua=this.Gg[0]==this.ua?this.Gg[1]:this.Gg[0];this.ua.copy(this.tr.position)}for(var a=0,b=Math.min(this.xg.buttons.length,this.xg.buttons.length);a<b;a++)this.FP[this.SG.buttons[a]]=this.xg.buttons[a].pressed;for(a=this.EP=0;a<this.xg.buttons.length;a++)this.xg.buttons[a].pressed&&this.EP++;(a=!!this.Ux!=!!this.ua||this.ua&&this.Ux.x!=this.ua.x&&this.Ux.y!=this.ua.y&&this.Ux.z!=this.ua.z)&&(this.ua?this.Ux.copy(this.ua):this.Ux.set(0,
0,0,0));(b=!!this.su!=!!this.nh||this.nh&&(this.su.x!=this.nh.x||this.su.y!=this.nh.y||this.su.z!=this.nh.z||this.su.w!=this.nh.w))&&(this.nh?this.su.copy(this.nh):this.su.set(0,0,0));if(a||b)this.r2=j.wd}};b.prototype.pulse=function(a,b){var c=this.xg&&this.xg.hapticActuators;(c=c&&c.length&&c[0])&&c.pulse&&c.pulse(a,b)};b.prototype.xY=function(){return!!this.xg};b.prototype.Fva=function(){return j.wd-this.r2>500};b.prototype.hand=R("wla");b.prototype.quaternion=R("nh");b.prototype.position=R("ua");
b.prototype.pressed=function(a){a||(a=this.SG.zwa);return!a?this.EP>0:this.FP[a]};var s=new n;s.all=function(){e();return u};s.tM=function(){e();return v};s.oa="left";s.Ka=o;var u=[],v=r,w={},x=m,y=r,F=URL.Lg("disable-controller",z);l.bind(k.aa,g);g();return s});
define("cA",["require","fh","a"],function(a){function b(a,b){this.Pd=a||new c(0,0,0);this.pg=b||new c(1,0,0)}var c=a("fh"),e=a("a");b.prototype.clone=function(){return new b(this.Pd.clone(),this.pg.clone())};b.prototype.apply=function(a){a.Cy(this.Pd);a.Cy(this.pg)};b.prototype.Hba=function(){return e.$r(this.Pd,this.pg)};return b});
define("gj",["cA","fh"],function(a,b){function c(a,b,c){this.W=a||100;this.ea=b||100;this.ba=c||Math.PI;this.sU=m;this.tm=p}c.prototype.Jv=function(a){this.ba!=a&&(this.ba=a,this.tm=p)};c.prototype.tp=R("ba");c.prototype.mF=function(a){this.W!=a&&(this.W=a,this.tm=p)};c.prototype.$c=R("W");c.prototype.Lda=function(a){this.ea!=a&&(this.ea=a,this.tm=p)};c.prototype.Nd=R("ea");c.prototype.project=function(a){if(0!=a.z){this.X$();var b=1/a.z,c=this.sU*b;a.x=0.5*this.W-a.x*c;a.y=0.5*this.ea-a.y*c;a.z=
b}};c.prototype.unproject=function(c){this.X$();return new a(new b(0,0,0),new b(0.5*this.W-c.x,0.5*this.ea-c.y,this.sU))};c.prototype.X$=function(){this.tm&&(this.sU=0.5*this.W/Math.tan(0.5*this.ba),this.tm=z)};return c});
define("dP",["require","jquery.mod"],function(a){function b(){this.I=c("<div/>");this.I.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,"pointer-events":"none","background-color":"#ffffff"});this.I.hide()}var c=a("jquery.mod");b.prototype.Cb=R("I");b.prototype.trigger=function(){this.I.fadeIn(100).fadeOut(100)};return b});
define("li",["require"],function(){function a(){this.ld=this.pitch=this.ja=0;this.uf=this.ad=90;this.gE=this.xL=this.height=this.width=100;this.Pg=1;this.BE=this.Ob=z;this.si=0;this.NL=this.rL=this.xM=z;this.rv=this.TE=p;this.Ic=this.nE=this.mE=this.te=r;this.enabled=z;this.wd=0;this.nF=m}a.prototype.clone=function(){var b=new a;b.ja=this.ja;b.pitch=this.pitch;b.ld=this.ld;b.ad=this.ad;b.uf=this.uf;b.width=this.width;b.height=this.height;b.xL=this.xL;b.gE=this.gE;b.Pg=this.Pg;b.Ob=this.Ob;b.BE=this.BE;
b.si=this.si;b.xM=this.xM;b.NL=this.NL;b.rL=this.rL;b.TE=this.TE;b.rv=this.rv;b.te=this.te;b.mE=this.mE;b.nE=this.nE;b.Ic=this.Ic;b.enabled=this.enabled;b.wd=this.wd;b.nF=this.nF;return b};return a});
define("cQ","require,jquery.mod,dm,lc,jP,V,dH".split(","),function(a){function b(a){this.DZ=a;this.element=document.createElement("div");this.JZ=document.createElement("span");this.element.appendChild(this.JZ);this.JZ.innerHTML=a.text.split("<br>").join("\n").split("\n").map(e).join("<br>");this.zL=z}function c(a){this.F=a;this.ED=f.throttle(this.ED.bind(this),100);this.FD=f.throttle(this.FD.bind(this),100);this.I=document.createElement("div");this.I.style.position="absolute";this.I.style.left=0;
this.I.style.top=0;this.I.style.right=0;this.I.style.bottom=0;this.I.style.zIndex=1;this.I.style.cursor="inherit";this.I.style.display="none";this.JO=d(this.I);this.Zh=document.createElement("div");this.Zh.style.position="absolute";this.Zh.style.left=0;this.Zh.style.right=0;this.Zh.style.zIndex=1;this.Zh.style.cursor="inherit";this.I.appendChild(this.Zh);this.Hr=r;this.oy=[];this.mf=[];this.TT={};this.yy=k.ib;this.F.bind(g.D("subtitlesEnabled"),this.pW,this);c.f0.forEach(function(a){this.F.bind(g.D(a),
this.ED,this)}.bind(this));c.g0.forEach(function(a){this.F.bind(g.D(a),this.FD,this)}.bind(this));this.pW();this.ED();this.FD()}function e(a){j.innerHTML=a;return j.innerText}var d=a("jquery.mod"),f=a("dm"),g=a("lc"),k=a("jP"),i=a("V"),n=a("dH");c.prototype.clear=function(){this.zZ(r);if(this.F){this.F.unbind(g.D("subtitlesEnabled"),this.pW,this);c.f0.forEach(function(a){this.F.unbind(g.D(a),this.ED,this)}.bind(this));c.g0.forEach(function(a){this.F.unbind(g.D(a),this.FD,this)}.bind(this));this.F=
r}};c.prototype.Cb=R("JO");c.prototype.zZ=function(a){if(this.Hr!=a){this.Hr&&this.Hr.unbind(g.D("activeSubtitles"),this.tT,this,p);(this.Hr=a)&&this.Hr.bind(g.D("activeSubtitles"),this.tT,this,p);this.tT()}};c.prototype.tT=function(){this.uqa(this.Hr&&this.Hr.get("activeSubtitles")||[])};c.prototype.pW=function(){this.V=this.F.get("subtitlesEnabled");this.FW()};c.prototype.ED=function(){this.yy=this.VA("subtitlesVerticalAlign",[k.jb,k.rc,k.ib],k.ib);this.Zh.style["text-align"]=this.VA("subtitlesHorizontalAlign",
[k.oa,k.Ka,k.Kc],k.Kc);this.Zh.style.bottom=this.yy==k.ib?this.bh("subtitlesBottom",0):"";this.Zh.style.top=this.yy==k.jb?this.bh("subtitlesTop",0):this.yy==k.rc?"50%":"";this.Zh.style.transform=this.yy==k.rc?"translate(0, -50%)":"";this.FW()};c.prototype.FD=function(){var a={};a["background-color"]=this.SR("subtitlesBackgroundColor","subtitlesBackgroundOpacity");a.border=[this.bh("subtitlesBorderSize"),"solid",this.Ef("subtitlesBorderColor")].join(" ");a["box-shadow"]=this.Ef("subtitlesShadow",z)?
[this.bh("subtitlesShadowHorizontalLength"),this.bh("subtitlesShadowVerticalLength"),this.bh("subtitlesShadowBlurRadius"),this.SR("subtitlesShadowColor","subtitlesShadowOpacity","#000000",0)].join(" "):"";a.display="inline-block";a["font-family"]=n.Zr(this.Ef("subtitlesFontFamily"));a["font-size"]=this.bh("subtitlesFontSize");a.color=this.Ef("subtitlesFontColor");a["font-weight"]=this.VA("subtitlesFontWeight",["bold","bolder","lighter","100","200","300","400","500","600","700","800","900","normal"],
"normal");a["font-style"]=this.VA("subtitlesFontStyle",["italic","normal"],"normal");a["margin-bottom"]=this.bh("subtitlesGap");a.opacity=this.Ef("subtitlesOpacity");a["padding-top"]=this.bh("subtitlesPaddingTop");a["padding-bottom"]=this.bh("subtitlesPaddingBottom");a["padding-left"]=this.bh("subtitlesPaddingLeft");a["padding-right"]=this.bh("subtitlesPaddingRight");a.position="relative";a["text-align"]=this.VA("subtitlesHorizontalAlign",["left","right","center"],"center");a["text-decoration"]=this.Ef("subtitlesTextDecoration",
["underline","overline","line-through","none"],"none");a["text-shadow"]=[this.bh("subtitlesTextShadowHorizontalLength"),this.bh("subtitlesTextShadowVerticalLength"),this.bh("subtitlesTextShadowBlurRadius"),this.SR("subtitlesTextShadowColor","subtitlesTextShadowOpacity","#000000",0)].join(" ");this.TT=a;this.Wga()};c.prototype.uqa=function(a){this.oy=a;this.FW()};c.prototype.FW=function(){for(var a=this.V?this.oy:[],c=this.mf.length-1;c>=0;c--){var d=this.mf[c];if(a.indexOf(d.DZ)>=0)break;this.Zh.removeChild(d.element)}for(var f=
[],e=z;c>=0;c--){d=this.mf[c];if(!d.zL&&a.indexOf(d.DZ)<0){d.zL=p;d.element.style.visibility="hidden";e=p}f.splice(0,0,d)}e&&i.Ma(this.J2,this);this.mf=f;var g=this.mf.filter(function(a){return!a.zL}).map(function(a){return a.DZ});a.filter(function(a){return g.indexOf(a)<0}).forEach(function(a){a=new b(a);this.M1(a);this.yy==k.ib&&this.mf.length>0?this.Zh.insertBefore(a.element,this.mf[this.mf.length-1].element):this.Zh.appendChild(a.element);this.mf.push(a)}.bind(this));this.I.style.display=this.mf.length>
0?"block":"none"};c.prototype.J2=function(a){for(var b=z,a=Math.round(200*a/1E3),c=0;c<this.mf.length;c++){var d=this.mf[c];if(d.zL){b=p;if(a>=d.element.clientHeight){a=a-d.element.clientHeight;this.Zh.removeChild(d.element);this.mf.splice(c,1);c--}else{d.element.style.height=d.element.clientHeight-a+"px";break}}}b&&i.Ma(this.J2,this)};c.prototype.Wga=function(){this.mf.forEach(this.M1.bind(this))};c.prototype.M1=function(a){for(var b in this.TT)a.JZ.style[b]=this.TT[b]};c.prototype.Ef=function(a,
b){return this.F.get(a,b)};c.prototype.bh=function(a,b){var c=this.F.get(a,b);isNaN(c)||(c=Math.round(c)+"px");return c};c.prototype.VA=function(a,b,c){a=this.F.get(a);return b.indexOf(a)<0?c:a};c.prototype.SR=function(a,b,c,d){a=this.F.get(a,c);b=this.F.get(b,d);return"rgba("+parseInt("0x"+a.substr(1,2))+", "+parseInt("0x"+a.substr(3,2))+", "+parseInt("0x"+a.substr(5,2))+", "+b+")"};c.f0=["subtitlesHorizontalAlign","subtitlesVerticalAlign","subtitlesTop","subtitlesBottom"];c.g0=["subtitlesBackgroundColor",
"subtitlesBackgroundOpacity","subtitlesBorderColor","subtitlesBorderSize","subtitlesFontFamily","subtitlesFontColor","subtitlesFontSize","subtitlesFontStyle","subtitlesFontWeight","subtitlesGap","subtitlesOpacity","subtitlesPaddingTop","subtitlesPaddingBottom","subtitlesPaddingLeft","subtitlesPaddingRight","subtitlesShadow","subtitlesShadowBlurRadius","subtitlesShadowHorizontalLength","subtitlesShadowVerticalLength","subtitlesShadowColor","subtitlesTextDecoration","subtitlesTextShadowBlurRadius",
"subtitlesTextShadowColor","subtitlesTextShadowHorizontalLength","subtitlesTextShadowOpacity","subtitlesTextShadowVerticalLength"];var j=document.createElement("div");return c});
define("hs",["require","fd","cQ"],function(a){var b=a("fd"),c=a("cQ"),a=b.extend(c,function(a,b){c.call(this,a);this.Qb=b;this.Qb.bind(EventName.D("panorama"),this.BT,this);this.BT()});a.prototype.clear=function(){this.Qb&&(this.Qb.unbind(EventName.D("panorama"),this.BT,this),this.Qb=r);c.prototype.clear.call(this)};a.prototype.BT=function(){this.zZ(this.Qb.get("panorama"))};return a});
define("im",["require","r"],function(a){var b=a("r"),a={},c=180/Math.PI,e=Math.PI/180;a.Bk=function(a,b,c){return this.av(a,b,c)};a.Fn=function(a,b,c){return this.av(a,c,b)};a.av=function(a,b,g){return 2*Math.atan(g*Math.tan(0.5*a*e)/b)*c};a.pAa=function(a){return b.browser()==b.Dz?Math.max(a,20):a};return a});define("cS",["require"],function(){return{Gn:0,oa:1,Ka:2}});
define("hB",["require"],function(){THREE.CopyShader={uniforms:{tDiffuse:{value:r},opacity:{value:1}},vertexShader:"varying vec2 vUv;\nvoid main() {\n\tvUv = uv;\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform float opacity;\nuniform sampler2D tDiffuse;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texel = texture2D( tDiffuse, vUv );\n\tgl_FragColor = opacity * texel;\n}"};return THREE.CopyShader});
define("gJ",["require"],function(){THREE.Pass=function(){this.KY=this.enabled=p;this.Fp=this.clear=z};Object.assign(THREE.Pass.prototype,{setSize:C(),render:function(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}});return THREE.Pass});
define("hZ",["require","gJ"],function(a){a("gJ");THREE.Pass.FullScreenQuad=function(){function a(b){this.AI=new THREE.Mesh(e,b)}var c=new THREE.OrthographicCamera(-1,1,1,-1,0,1),e=new THREE.PlaneBufferGeometry(2,2);Object.defineProperty(a.prototype,"material",{get:function(){return this.AI.material},set:function(a){this.AI.material=a}});Object.assign(a.prototype,{dispose:function(){this.AI.geometry.dispose()},render:function(a){a.render(this.AI,c)}});return a}();return THREE.Pass.FullScreenQuad});
define("fI",["require","gJ","hZ"],function(a){a("gJ");a("hZ");THREE.ShaderPass=function(a,c){THREE.Pass.call(this);this.oF=c!==m?c:"tDiffuse";a instanceof THREE.ShaderMaterial?(this.uniforms=a.uniforms,this.material=a):a&&(this.uniforms=THREE.UniformsUtils.clone(a.uniforms),this.material=new THREE.ShaderMaterial({defines:Object.assign({},a.defines),uniforms:this.uniforms,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}));this.ML=new THREE.Pass.FullScreenQuad(this.material)};THREE.ShaderPass.prototype=
Object.assign(Object.create(THREE.Pass.prototype),{constructor:THREE.ShaderPass,render:function(a,c,e){this.uniforms[this.oF]&&(this.uniforms[this.oF].value=e.texture);this.ML.material=this.material;this.Fp?a.setRenderTarget(r):(a.setRenderTarget(c),this.clear&&a.clear(a.Uza,a.Vza,a.Wza));this.ML.render(a)}});return THREE.ShaderPass});
define("cM",["require","hB","fI"],function(a){a("hB");a("fI");THREE.EffectComposer=function(a,c){this.vf=a;if(c===m){var e={minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBAFormat,stencilBuffer:z},d=a.getSize(new THREE.Vector2);this.Al=a.getPixelRatio();this.W=d.width;this.ea=d.height;c=new THREE.WebGLRenderTarget(this.W*this.Al,this.ea*this.Al,e);c.texture.name="EffectComposer.rt1"}else this.Al=1,this.W=c.width,this.ea=c.height;this.oz=c;this.pz=c.clone();this.pz.texture.name=
"EffectComposer.rt2";this.wF=this.oz;this.VE=this.pz;this.Fp=p;this.hs=[];this.Hta=new THREE.ShaderPass(THREE.CopyShader);this.Eta=new THREE.Clock};Object.assign(THREE.EffectComposer.prototype,{swapBuffers:function(){var a=this.VE;this.VE=this.wF;this.wF=a},addPass:function(a){this.hs.push(a);a.setSize(this.W*this.Al,this.ea*this.Al)},insertPass:function(a,c){this.hs.splice(c,0,a)},Hva:function(a){for(a+=1;a<this.hs.length;a++)if(this.hs[a].enabled)return z;return p},render:function(a){a===m&&(a=
this.Eta.getDelta());var c=this.vf.getRenderTarget(),e=z,d,f,g=this.hs.length;for(f=0;f<g;f++)if(d=this.hs[f],d.enabled!==z){d.Fp=this.Fp&&this.Hva(f);d.render(this.vf,this.wF,this.VE,a,e);if(d.KY){if(e){var k=this.vf.getContext(),i=this.vf.state.buffers.stencil;i.setFunc(k.NOTEQUAL,1,4294967295);this.Hta.render(this.vf,this.wF,this.VE,a);i.setFunc(k.EQUAL,1,4294967295)}this.swapBuffers()}THREE.MaskPass!==m&&(d instanceof THREE.MaskPass?e=p:d instanceof THREE.ClearMaskPass&&(e=z))}this.vf.setRenderTarget(c)},
reset:function(a){a===m&&(a=this.vf.getSize(new THREE.Vector2),this.Al=this.vf.getPixelRatio(),this.W=a.width,this.ea=a.height,a=this.oz.clone(),a.setSize(this.W*this.Al,this.ea*this.Al));this.oz.dispose();this.pz.dispose();this.oz=a;this.pz=a.clone();this.wF=this.oz;this.VE=this.pz},setSize:function(a,c){this.W=a;this.ea=c;var e=this.W*this.Al,d=this.ea*this.Al;this.oz.setSize(e,d);this.pz.setSize(e,d);for(var f=0;f<this.hs.length;f++)this.hs[f].setSize(e,d)},setPixelRatio:function(a){this.Al=a;
this.setSize(this.W,this.ea)}});return THREE.EffectComposer});
define("w",["require"],function(){THREE.YZ={uniforms:{tDiffuse1:{value:r},tDiffuse2:{value:r},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.YZ});
define("iB",["require","gJ"],function(a){a("gJ");THREE.CustomRenderPass=function(a){THREE.Pass.call(this);this.Qwa=a;this.Ic=this.vj=r;this.clear=p;this.KY=this.clearDepth=z};THREE.CustomRenderPass.prototype=Object.assign(Object.create(THREE.Pass.prototype),{constructor:THREE.CustomRenderPass,render:function(a,c,e){c=a.autoClear;a.autoClear=z;this.Qwa(a,this.vj,this.Ic,this.Fp?r:e,this.clear);a.autoClear=c}});return THREE.CustomRenderPass});
define("iJ",["require","gJ","hB","hZ"],function(a){a("gJ");a("hB");a("hZ");THREE.SavePass=function(a){THREE.Pass.call(this);var c=THREE.CopyShader;this.oF="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:z}),this.renderTarget.texture.name="SavePass.rt");this.KY=z;this.ML=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.oF]&&(this.uniforms[this.oF].value=e.texture);a.setRenderTarget(this.renderTarget);this.clear&&a.clear();this.ML.render(a)}});return THREE.SavePass});
define("cz","require,cM,w,iB,hB,iJ,fI".split(","),function(a){function b(a,b){this.g=a;this.Yx=b;this.Dl=new THREE.CustomRenderPass(b);this.Dl.Fp=z;this.cK=new THREE.SavePass;this.cK.enabled=p;this.kq=new THREE.ShaderPass(THREE.YZ,"tDiffuse1");this.kq.uniforms.tDiffuse2.value=this.cK.renderTarget.texture;this.kq.uniforms.mixRatio.value=0.8;this.kq.Fp=p;this.kq.enabled=p;this.z7=new THREE.ShaderPass(THREE.CopyShader);this.z7.Fp=p;this.Li=new THREE.EffectComposer(a);this.Li.addPass(this.Dl);this.Li.addPass(this.kq);
this.Li.addPass(this.cK);this.Li.addPass(this.z7);this.sq=this.tq=m}a("cM");a("w");a("iB");a("hB");a("iJ");a("fI");var c=new THREE.Vector2;b.prototype.destroy=function(){this.Li=this.kq=this.cK=this.Dl=this.Yx=this.g=r};b.prototype.start=function(){this.kq.uniforms.mixRatio.value=0;this.pR=3};b.prototype.render=function(a,b){this.g.getSize(c);if(this.tq!==c.width||this.sq!==c.height){this.tq=c.width;this.sq=c.height;this.Li.setSize(this.tq,this.sq)}this.Dl.vj=a;this.Dl.Ic=b;if(this.pR>0){this.pR--;
if(this.pR===0)this.kq.uniforms.mixRatio.value=0.65}this.Li.render()};return b});
define("jn",["require"],function(){THREE.y_={uniforms:{tDiffuse:{value:r},resolution:{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:"varying vec2 vUv;\nvoid main() {\n\tvUv = uv;\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:'precision highp float;\n\nuniform sampler2D tDiffuse;\n\nuniform vec2 resolution;\n\nvarying vec2 vUv;\n\n// FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)\n\n//----------------------------------------------------------------------------------\n// File:        es3-keplerFXAAassetsshaders/FXAA_DefaultES.frag\n// SDK Version: v3.00\n// Email:       gameworks@nvidia.com\n// Site:        http://developer.nvidia.com/\n//\n// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions\n// are met:\n//  * Redistributions of source code must retain the above copyright\n//    notice, this list of conditions and the following disclaimer.\n//  * Redistributions in binary form must reproduce the above copyright\n//    notice, this list of conditions and the following disclaimer in the\n//    documentation and/or other materials provided with the distribution.\n//  * Neither the name of NVIDIA CORPORATION nor the names of its\n//    contributors may be used to endorse or promote products derived\n//    from this software without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS\'\' AND ANY\n// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY\n// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n//\n//----------------------------------------------------------------------------------\n\n#define FXAA_PC 1\n#define FXAA_GLSL_100 1\n#define FXAA_QUALITY_PRESET 12\n\n#define FXAA_GREEN_AS_LUMA 1\n\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_PC_CONSOLE\n    //\n    // The console algorithm for PC is included\n    // for developers targeting really low spec machines.\n    // Likely better to just run FXAA_PC, and use a really low preset.\n    //\n    #define FXAA_PC_CONSOLE 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GLSL_120\n    #define FXAA_GLSL_120 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GLSL_130\n    #define FXAA_GLSL_130 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_3\n    #define FXAA_HLSL_3 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_4\n    #define FXAA_HLSL_4 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_HLSL_5\n    #define FXAA_HLSL_5 0\n#endif\n/*==========================================================================*/\n#ifndef FXAA_GREEN_AS_LUMA\n    //\n    // For those using non-linear color,\n    // and either not able to get luma in alpha, or not wanting to,\n    // this enables FXAA to run using green as a proxy for luma.\n    // So with this enabled, no need to pack luma in alpha.\n    //\n    // This will turn off AA on anything which lacks some amount of green.\n    // Pure red and blue or combination of only R and B, will get no AA.\n    //\n    // Might want to lower the settings for both,\n    //    fxaaConsoleEdgeThresholdMin\n    //    fxaaQualityEdgeThresholdMin\n    // In order to insure AA does not get turned off on colors\n    // which contain a minor amount of green.\n    //\n    // 1 = On.\n    // 0 = Off.\n    //\n    #define FXAA_GREEN_AS_LUMA 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_EARLY_EXIT\n    //\n    // Controls algorithm\'s early exit path.\n    // On PS3 turning this ON adds 2 cycles to the shader.\n    // On 360 turning this OFF adds 10ths of a millisecond to the shader.\n    // Turning this off on console will result in a more blurry image.\n    // So this defaults to on.\n    //\n    // 1 = On.\n    // 0 = Off.\n    //\n    #define FXAA_EARLY_EXIT 1\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_DISCARD\n    //\n    // Only valid for PC OpenGL currently.\n    // Probably will not work when FXAA_GREEN_AS_LUMA = 1.\n    //\n    // 1 = Use discard on pixels which don\'t need AA.\n    //     For APIs which enable concurrent TEX+ROP from same surface.\n    // 0 = Return unchanged color on pixels which don\'t need AA.\n    //\n    #define FXAA_DISCARD 0\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_FAST_PIXEL_OFFSET\n    //\n    // Used for GLSL 120 only.\n    //\n    // 1 = GL API supports fast pixel offsets\n    // 0 = do not use fast pixel offsets\n    //\n    #ifdef GL_EXT_gpu_shader4\n        #define FXAA_FAST_PIXEL_OFFSET 1\n    #endif\n    #ifdef GL_NV_gpu_shader5\n        #define FXAA_FAST_PIXEL_OFFSET 1\n    #endif\n    #ifdef GL_ARB_gpu_shader5\n        #define FXAA_FAST_PIXEL_OFFSET 1\n    #endif\n    #ifndef FXAA_FAST_PIXEL_OFFSET\n        #define FXAA_FAST_PIXEL_OFFSET 0\n    #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#ifndef FXAA_GATHER4_ALPHA\n    //\n    // 1 = API supports gather4 on alpha channel.\n    // 0 = API does not support gather4 on alpha channel.\n    //\n    #if (FXAA_HLSL_5 == 1)\n        #define FXAA_GATHER4_ALPHA 1\n    #endif\n    #ifdef GL_ARB_gpu_shader5\n        #define FXAA_GATHER4_ALPHA 1\n    #endif\n    #ifdef GL_NV_gpu_shader5\n        #define FXAA_GATHER4_ALPHA 1\n    #endif\n    #ifndef FXAA_GATHER4_ALPHA\n        #define FXAA_GATHER4_ALPHA 0\n    #endif\n#endif\n\n\n/*============================================================================\n                        FXAA QUALITY - TUNING KNOBS\n------------------------------------------------------------------------------\nNOTE the other tuning knobs are now in the shader function inputs!\n============================================================================*/\n#ifndef FXAA_QUALITY_PRESET\n    //\n    // Choose the quality preset.\n    // This needs to be compiled into the shader as it effects code.\n    // Best option to include multiple presets is to\n    // in each shader define the preset, then include this file.\n    //\n    // OPTIONS\n    // -----------------------------------------------------------------------\n    // 10 to 15 - default medium dither (10=fastest, 15=highest quality)\n    // 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)\n    // 39       - no dither, very expensive\n    //\n    // NOTES\n    // -----------------------------------------------------------------------\n    // 12 = slightly faster then FXAA 3.9 and higher edge quality (default)\n    // 13 = about same speed as FXAA 3.9 and better than 12\n    // 23 = closest to FXAA 3.9 visually and performance wise\n    //  _ = the lowest digit is directly related to performance\n    // _  = the highest digit is directly related to style\n    //\n    #define FXAA_QUALITY_PRESET 12\n#endif\n\n\n/*============================================================================\n\n                           FXAA QUALITY - PRESETS\n\n============================================================================*/\n\n/*============================================================================\n                     FXAA QUALITY - MEDIUM DITHER PRESETS\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 10)\n    #define FXAA_QUALITY_PS 3\n    #define FXAA_QUALITY_P0 1.5\n    #define FXAA_QUALITY_P1 3.0\n    #define FXAA_QUALITY_P2 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 11)\n    #define FXAA_QUALITY_PS 4\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 3.0\n    #define FXAA_QUALITY_P3 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 12)\n    #define FXAA_QUALITY_PS 5\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 4.0\n    #define FXAA_QUALITY_P4 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 13)\n    #define FXAA_QUALITY_PS 6\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 4.0\n    #define FXAA_QUALITY_P5 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 14)\n    #define FXAA_QUALITY_PS 7\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 4.0\n    #define FXAA_QUALITY_P6 12.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 15)\n    #define FXAA_QUALITY_PS 8\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 4.0\n    #define FXAA_QUALITY_P7 12.0\n#endif\n\n/*============================================================================\n                     FXAA QUALITY - LOW DITHER PRESETS\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 20)\n    #define FXAA_QUALITY_PS 3\n    #define FXAA_QUALITY_P0 1.5\n    #define FXAA_QUALITY_P1 2.0\n    #define FXAA_QUALITY_P2 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 21)\n    #define FXAA_QUALITY_PS 4\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 22)\n    #define FXAA_QUALITY_PS 5\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 23)\n    #define FXAA_QUALITY_PS 6\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 24)\n    #define FXAA_QUALITY_PS 7\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 3.0\n    #define FXAA_QUALITY_P6 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 25)\n    #define FXAA_QUALITY_PS 8\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 4.0\n    #define FXAA_QUALITY_P7 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 26)\n    #define FXAA_QUALITY_PS 9\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 2.0\n    #define FXAA_QUALITY_P7 4.0\n    #define FXAA_QUALITY_P8 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 27)\n    #define FXAA_QUALITY_PS 10\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 2.0\n    #define FXAA_QUALITY_P7 2.0\n    #define FXAA_QUALITY_P8 4.0\n    #define FXAA_QUALITY_P9 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 28)\n    #define FXAA_QUALITY_PS 11\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 2.0\n    #define FXAA_QUALITY_P7 2.0\n    #define FXAA_QUALITY_P8 2.0\n    #define FXAA_QUALITY_P9 4.0\n    #define FXAA_QUALITY_P10 8.0\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_QUALITY_PRESET == 29)\n    #define FXAA_QUALITY_PS 12\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.5\n    #define FXAA_QUALITY_P2 2.0\n    #define FXAA_QUALITY_P3 2.0\n    #define FXAA_QUALITY_P4 2.0\n    #define FXAA_QUALITY_P5 2.0\n    #define FXAA_QUALITY_P6 2.0\n    #define FXAA_QUALITY_P7 2.0\n    #define FXAA_QUALITY_P8 2.0\n    #define FXAA_QUALITY_P9 2.0\n    #define FXAA_QUALITY_P10 4.0\n    #define FXAA_QUALITY_P11 8.0\n#endif\n\n/*============================================================================\n                     FXAA QUALITY - EXTREME QUALITY\n============================================================================*/\n#if (FXAA_QUALITY_PRESET == 39)\n    #define FXAA_QUALITY_PS 12\n    #define FXAA_QUALITY_P0 1.0\n    #define FXAA_QUALITY_P1 1.0\n    #define FXAA_QUALITY_P2 1.0\n    #define FXAA_QUALITY_P3 1.0\n    #define FXAA_QUALITY_P4 1.0\n    #define FXAA_QUALITY_P5 1.5\n    #define FXAA_QUALITY_P6 2.0\n    #define FXAA_QUALITY_P7 2.0\n    #define FXAA_QUALITY_P8 2.0\n    #define FXAA_QUALITY_P9 2.0\n    #define FXAA_QUALITY_P10 4.0\n    #define FXAA_QUALITY_P11 8.0\n#endif\n\n\n\n/*============================================================================\n\n                                API PORTING\n\n============================================================================*/\n#if (FXAA_GLSL_100 == 1) || (FXAA_GLSL_120 == 1) || (FXAA_GLSL_130 == 1)\n    #define FxaaBool bool\n    #define FxaaDiscard discard\n    #define FxaaFloat float\n    #define FxaaFloat2 vec2\n    #define FxaaFloat3 vec3\n    #define FxaaFloat4 vec4\n    #define FxaaHalf float\n    #define FxaaHalf2 vec2\n    #define FxaaHalf3 vec3\n    #define FxaaHalf4 vec4\n    #define FxaaInt2 ivec2\n    #define FxaaSat(x) clamp(x, 0.0, 1.0)\n    #define FxaaTex sampler2D\n#else\n    #define FxaaBool bool\n    #define FxaaDiscard clip(-1)\n    #define FxaaFloat float\n    #define FxaaFloat2 float2\n    #define FxaaFloat3 float3\n    #define FxaaFloat4 float4\n    #define FxaaHalf half\n    #define FxaaHalf2 half2\n    #define FxaaHalf3 half3\n    #define FxaaHalf4 half4\n    #define FxaaSat(x) saturate(x)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_100 == 1)\n  #define FxaaTexTop(t, p) texture2D(t, p, 0.0)\n  #define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), 0.0)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_120 == 1)\n    // Requires,\n    //  #version 120\n    // And at least,\n    //  #extension GL_EXT_gpu_shader4 : enable\n    //  (or set FXAA_FAST_PIXEL_OFFSET 1 to work like DX9)\n    #define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)\n    #if (FXAA_FAST_PIXEL_OFFSET == 1)\n        #define FxaaTexOff(t, p, o, r) texture2DLodOffset(t, p, 0.0, o)\n    #else\n        #define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)\n    #endif\n    #if (FXAA_GATHER4_ALPHA == 1)\n        // use #extension GL_ARB_gpu_shader5 : enable\n        #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n        #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n        #define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n        #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n    #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_GLSL_130 == 1)\n    // Requires "#version 130" or better\n    #define FxaaTexTop(t, p) textureLod(t, p, 0.0)\n    #define FxaaTexOff(t, p, o, r) textureLodOffset(t, p, 0.0, o)\n    #if (FXAA_GATHER4_ALPHA == 1)\n        // use #extension GL_ARB_gpu_shader5 : enable\n        #define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n        #define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n        #define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n        #define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n    #endif\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_3 == 1)\n    #define FxaaInt2 float2\n    #define FxaaTex sampler2D\n    #define FxaaTexTop(t, p) tex2Dlod(t, float4(p, 0.0, 0.0))\n    #define FxaaTexOff(t, p, o, r) tex2Dlod(t, float4(p + (o * r), 0, 0))\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_4 == 1)\n    #define FxaaInt2 int2\n    struct FxaaTex { SamplerState smpl; Texture2D tex; };\n    #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n    #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n#endif\n/*--------------------------------------------------------------------------*/\n#if (FXAA_HLSL_5 == 1)\n    #define FxaaInt2 int2\n    struct FxaaTex { SamplerState smpl; Texture2D tex; };\n    #define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n    #define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n    #define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)\n    #define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)\n    #define FxaaTexGreen4(t, p) t.tex.GatherGreen(t.smpl, p)\n    #define FxaaTexOffGreen4(t, p, o) t.tex.GatherGreen(t.smpl, p, o)\n#endif\n\n\n/*============================================================================\n                   GREEN AS LUMA OPTION SUPPORT FUNCTION\n============================================================================*/\n#if (FXAA_GREEN_AS_LUMA == 0)\n    FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.w; }\n#else\n    FxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }\n#endif\n\n\n\n\n/*============================================================================\n\n                             FXAA3 QUALITY - PC\n\n============================================================================*/\n#if (FXAA_PC == 1)\n/*--------------------------------------------------------------------------*/\nFxaaFloat4 FxaaPixelShader(\n    //\n    // Use noperspective interpolation here (turn off perspective interpolation).\n    // {xy} = center of pixel\n    FxaaFloat2 pos,\n    //\n    // Used only for FXAA Console, and not used on the 360 version.\n    // Use noperspective interpolation here (turn off perspective interpolation).\n    // {xy_} = upper left of pixel\n    // {_zw} = lower right of pixel\n    FxaaFloat4 fxaaConsolePosPos,\n    //\n    // Input color texture.\n    // {rgb_} = color in linear or perceptual color space\n    // if (FXAA_GREEN_AS_LUMA == 0)\n    //     {__a} = luma in perceptual color space (not linear)\n    FxaaTex tex,\n    //\n    // Only used on the optimized 360 version of FXAA Console.\n    // For everything but 360, just use the same input here as for "tex".\n    // For 360, same texture, just alias with a 2nd sampler.\n    // This sampler needs to have an exponent bias of -1.\n    FxaaTex fxaaConsole360TexExpBiasNegOne,\n    //\n    // Only used on the optimized 360 version of FXAA Console.\n    // For everything but 360, just use the same input here as for "tex".\n    // For 360, same texture, just alias with a 3nd sampler.\n    // This sampler needs to have an exponent bias of -2.\n    FxaaTex fxaaConsole360TexExpBiasNegTwo,\n    //\n    // Only used on FXAA Quality.\n    // This must be from a constant/uniform.\n    // {x_} = 1.0/screenWidthInPixels\n    // {_y} = 1.0/screenHeightInPixels\n    FxaaFloat2 fxaaQualityRcpFrame,\n    //\n    // Only used on FXAA Console.\n    // This must be from a constant/uniform.\n    // This effects sub-pixel AA quality and inversely sharpness.\n    //   Where N ranges between,\n    //     N = 0.50 (default)\n    //     N = 0.33 (sharper)\n    // {x__} = -N/screenWidthInPixels\n    // {_y_} = -N/screenHeightInPixels\n    // {_z_} =  N/screenWidthInPixels\n    // {__w} =  N/screenHeightInPixels\n    FxaaFloat4 fxaaConsoleRcpFrameOpt,\n    //\n    // Only used on FXAA Console.\n    // Not used on 360, but used on PS3 and PC.\n    // This must be from a constant/uniform.\n    // {x__} = -2.0/screenWidthInPixels\n    // {_y_} = -2.0/screenHeightInPixels\n    // {_z_} =  2.0/screenWidthInPixels\n    // {__w} =  2.0/screenHeightInPixels\n    FxaaFloat4 fxaaConsoleRcpFrameOpt2,\n    //\n    // Only used on FXAA Console.\n    // Only used on 360 in place of fxaaConsoleRcpFrameOpt2.\n    // This must be from a constant/uniform.\n    // {x__} =  8.0/screenWidthInPixels\n    // {_y_} =  8.0/screenHeightInPixels\n    // {_z_} = -4.0/screenWidthInPixels\n    // {__w} = -4.0/screenHeightInPixels\n    FxaaFloat4 fxaaConsole360RcpFrameOpt2,\n    //\n    // Only used on FXAA Quality.\n    // This used to be the FXAA_QUALITY_SUBPIX define.\n    // It is here now to allow easier tuning.\n    // Choose the amount of sub-pixel aliasing removal.\n    // This can effect sharpness.\n    //   1.00 - upper limit (softer)\n    //   0.75 - default amount of filtering\n    //   0.50 - lower limit (sharper, less sub-pixel aliasing removal)\n    //   0.25 - almost off\n    //   0.00 - completely off\n    FxaaFloat fxaaQualitySubpix,\n    //\n    // Only used on FXAA Quality.\n    // This used to be the FXAA_QUALITY_EDGE_THRESHOLD define.\n    // It is here now to allow easier tuning.\n    // The minimum amount of local contrast required to apply algorithm.\n    //   0.333 - too little (faster)\n    //   0.250 - low quality\n    //   0.166 - default\n    //   0.125 - high quality\n    //   0.063 - overkill (slower)\n    FxaaFloat fxaaQualityEdgeThreshold,\n    //\n    // Only used on FXAA Quality.\n    // This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define.\n    // It is here now to allow easier tuning.\n    // Trims the algorithm from processing darks.\n    //   0.0833 - upper limit (default, the start of visible unfiltered edges)\n    //   0.0625 - high quality (faster)\n    //   0.0312 - visible limit (slower)\n    // Special notes when using FXAA_GREEN_AS_LUMA,\n    //   Likely want to set this to zero.\n    //   As colors that are mostly not-green\n    //   will appear very dark in the green channel!\n    //   Tune by looking at mostly non-green content,\n    //   then start at zero and increase until aliasing is a problem.\n    FxaaFloat fxaaQualityEdgeThresholdMin,\n    //\n    // Only used on FXAA Console.\n    // This used to be the FXAA_CONSOLE_EDGE_SHARPNESS define.\n    // It is here now to allow easier tuning.\n    // This does not effect PS3, as this needs to be compiled in.\n    //   Use FXAA_CONSOLE_PS3_EDGE_SHARPNESS for PS3.\n    //   Due to the PS3 being ALU bound,\n    //   there are only three safe values here: 2 and 4 and 8.\n    //   These options use the shaders ability to a free *|/ by 2|4|8.\n    // For all other platforms can be a non-power of two.\n    //   8.0 is sharper (default!!!)\n    //   4.0 is softer\n    //   2.0 is really soft (good only for vector graphics inputs)\n    FxaaFloat fxaaConsoleEdgeSharpness,\n    //\n    // Only used on FXAA Console.\n    // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD define.\n    // It is here now to allow easier tuning.\n    // This does not effect PS3, as this needs to be compiled in.\n    //   Use FXAA_CONSOLE_PS3_EDGE_THRESHOLD for PS3.\n    //   Due to the PS3 being ALU bound,\n    //   there are only two safe values here: 1/4 and 1/8.\n    //   These options use the shaders ability to a free *|/ by 2|4|8.\n    // The console setting has a different mapping than the quality setting.\n    // Other platforms can use other values.\n    //   0.125 leaves less aliasing, but is softer (default!!!)\n    //   0.25 leaves more aliasing, and is sharper\n    FxaaFloat fxaaConsoleEdgeThreshold,\n    //\n    // Only used on FXAA Console.\n    // This used to be the FXAA_CONSOLE_EDGE_THRESHOLD_MIN define.\n    // It is here now to allow easier tuning.\n    // Trims the algorithm from processing darks.\n    // The console setting has a different mapping than the quality setting.\n    // This only applies when FXAA_EARLY_EXIT is 1.\n    // This does not apply to PS3,\n    // PS3 was simplified to avoid more shader instructions.\n    //   0.06 - faster but more aliasing in darks\n    //   0.05 - default\n    //   0.04 - slower and less aliasing in darks\n    // Special notes when using FXAA_GREEN_AS_LUMA,\n    //   Likely want to set this to zero.\n    //   As colors that are mostly not-green\n    //   will appear very dark in the green channel!\n    //   Tune by looking at mostly non-green content,\n    //   then start at zero and increase until aliasing is a problem.\n    FxaaFloat fxaaConsoleEdgeThresholdMin,\n    //\n    // Extra constants for 360 FXAA Console only.\n    // Use zeros or anything else for other platforms.\n    // These must be in physical constant registers and NOT immediates.\n    // Immediates will result in compiler un-optimizing.\n    // {xyzw} = float4(1.0, -1.0, 0.25, -0.25)\n    FxaaFloat4 fxaaConsole360ConstDir\n) {\n/*--------------------------------------------------------------------------*/\n    FxaaFloat2 posM;\n    posM.x = pos.x;\n    posM.y = pos.y;\n    #if (FXAA_GATHER4_ALPHA == 1)\n        #if (FXAA_DISCARD == 0)\n            FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n            #if (FXAA_GREEN_AS_LUMA == 0)\n                #define lumaM rgbyM.w\n            #else\n                #define lumaM rgbyM.y\n            #endif\n        #endif\n        #if (FXAA_GREEN_AS_LUMA == 0)\n            FxaaFloat4 luma4A = FxaaTexAlpha4(tex, posM);\n            FxaaFloat4 luma4B = FxaaTexOffAlpha4(tex, posM, FxaaInt2(-1, -1));\n        #else\n            FxaaFloat4 luma4A = FxaaTexGreen4(tex, posM);\n            FxaaFloat4 luma4B = FxaaTexOffGreen4(tex, posM, FxaaInt2(-1, -1));\n        #endif\n        #if (FXAA_DISCARD == 1)\n            #define lumaM luma4A.w\n        #endif\n        #define lumaE luma4A.z\n        #define lumaS luma4A.x\n        #define lumaSE luma4A.y\n        #define lumaNW luma4B.w\n        #define lumaN luma4B.z\n        #define lumaW luma4B.x\n    #else\n        FxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n        #if (FXAA_GREEN_AS_LUMA == 0)\n            #define lumaM rgbyM.w\n        #else\n            #define lumaM rgbyM.y\n        #endif\n        #if (FXAA_GLSL_100 == 1)\n          FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0, 1.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 0.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0,-1.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 0.0), fxaaQualityRcpFrame.xy));\n        #else\n          FxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));\n        #endif\n    #endif\n/*--------------------------------------------------------------------------*/\n    FxaaFloat maxSM = max(lumaS, lumaM);\n    FxaaFloat minSM = min(lumaS, lumaM);\n    FxaaFloat maxESM = max(lumaE, maxSM);\n    FxaaFloat minESM = min(lumaE, minSM);\n    FxaaFloat maxWN = max(lumaN, lumaW);\n    FxaaFloat minWN = min(lumaN, lumaW);\n    FxaaFloat rangeMax = max(maxWN, maxESM);\n    FxaaFloat rangeMin = min(minWN, minESM);\n    FxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;\n    FxaaFloat range = rangeMax - rangeMin;\n    FxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);\n    FxaaBool earlyExit = range < rangeMaxClamped;\n/*--------------------------------------------------------------------------*/\n    if(earlyExit)\n        #if (FXAA_DISCARD == 1)\n            FxaaDiscard;\n        #else\n            return rgbyM;\n        #endif\n/*--------------------------------------------------------------------------*/\n    #if (FXAA_GATHER4_ALPHA == 0)\n        #if (FXAA_GLSL_100 == 1)\n          FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0,-1.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 1.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0,-1.0), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 1.0), fxaaQualityRcpFrame.xy));\n        #else\n          FxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));\n          FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n        #endif\n    #else\n        FxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(1, -1), fxaaQualityRcpFrame.xy));\n        FxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n    #endif\n/*--------------------------------------------------------------------------*/\n    FxaaFloat lumaNS = lumaN + lumaS;\n    FxaaFloat lumaWE = lumaW + lumaE;\n    FxaaFloat subpixRcpRange = 1.0/range;\n    FxaaFloat subpixNSWE = lumaNS + lumaWE;\n    FxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;\n    FxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat lumaNESE = lumaNE + lumaSE;\n    FxaaFloat lumaNWNE = lumaNW + lumaNE;\n    FxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;\n    FxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat lumaNWSW = lumaNW + lumaSW;\n    FxaaFloat lumaSWSE = lumaSW + lumaSE;\n    FxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);\n    FxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);\n    FxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;\n    FxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;\n    FxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;\n    FxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;\n    FxaaFloat lengthSign = fxaaQualityRcpFrame.x;\n    FxaaBool horzSpan = edgeHorz >= edgeVert;\n    FxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;\n/*--------------------------------------------------------------------------*/\n    if(!horzSpan) lumaN = lumaW;\n    if(!horzSpan) lumaS = lumaE;\n    if(horzSpan) lengthSign = fxaaQualityRcpFrame.y;\n    FxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat gradientN = lumaN - lumaM;\n    FxaaFloat gradientS = lumaS - lumaM;\n    FxaaFloat lumaNN = lumaN + lumaM;\n    FxaaFloat lumaSS = lumaS + lumaM;\n    FxaaBool pairN = abs(gradientN) >= abs(gradientS);\n    FxaaFloat gradient = max(abs(gradientN), abs(gradientS));\n    if(pairN) lengthSign = -lengthSign;\n    FxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);\n/*--------------------------------------------------------------------------*/\n    FxaaFloat2 posB;\n    posB.x = posM.x;\n    posB.y = posM.y;\n    FxaaFloat2 offNP;\n    offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;\n    offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;\n    if(!horzSpan) posB.x += lengthSign * 0.5;\n    if( horzSpan) posB.y += lengthSign * 0.5;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat2 posN;\n    posN.x = posB.x - offNP.x * FXAA_QUALITY_P0;\n    posN.y = posB.y - offNP.y * FXAA_QUALITY_P0;\n    FxaaFloat2 posP;\n    posP.x = posB.x + offNP.x * FXAA_QUALITY_P0;\n    posP.y = posB.y + offNP.y * FXAA_QUALITY_P0;\n    FxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;\n    FxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));\n    FxaaFloat subpixE = subpixC * subpixC;\n    FxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));\n/*--------------------------------------------------------------------------*/\n    if(!pairN) lumaNN = lumaSS;\n    FxaaFloat gradientScaled = gradient * 1.0/4.0;\n    FxaaFloat lumaMM = lumaM - lumaNN * 0.5;\n    FxaaFloat subpixF = subpixD * subpixE;\n    FxaaBool lumaMLTZero = lumaMM < 0.0;\n/*--------------------------------------------------------------------------*/\n    lumaEndN -= lumaNN * 0.5;\n    lumaEndP -= lumaNN * 0.5;\n    FxaaBool doneN = abs(lumaEndN) >= gradientScaled;\n    FxaaBool doneP = abs(lumaEndP) >= gradientScaled;\n    if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;\n    if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;\n    FxaaBool doneNP = (!doneN) || (!doneP);\n    if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;\n    if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;\n/*--------------------------------------------------------------------------*/\n    if(doneNP) {\n        if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n        if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n        if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n        if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n        doneN = abs(lumaEndN) >= gradientScaled;\n        doneP = abs(lumaEndP) >= gradientScaled;\n        if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;\n        if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;\n        doneNP = (!doneN) || (!doneP);\n        if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;\n        if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;\n/*--------------------------------------------------------------------------*/\n        #if (FXAA_QUALITY_PS > 3)\n        if(doneNP) {\n            if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n            if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n            if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n            if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n            doneN = abs(lumaEndN) >= gradientScaled;\n            doneP = abs(lumaEndP) >= gradientScaled;\n            if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;\n            if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;\n            doneNP = (!doneN) || (!doneP);\n            if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;\n            if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;\n/*--------------------------------------------------------------------------*/\n            #if (FXAA_QUALITY_PS > 4)\n            if(doneNP) {\n                if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                doneN = abs(lumaEndN) >= gradientScaled;\n                doneP = abs(lumaEndP) >= gradientScaled;\n                if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;\n                if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;\n                doneNP = (!doneN) || (!doneP);\n                if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;\n                if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;\n/*--------------------------------------------------------------------------*/\n                #if (FXAA_QUALITY_PS > 5)\n                if(doneNP) {\n                    if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                    if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                    if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                    if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                    doneN = abs(lumaEndN) >= gradientScaled;\n                    doneP = abs(lumaEndP) >= gradientScaled;\n                    if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;\n                    if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;\n                    doneNP = (!doneN) || (!doneP);\n                    if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;\n                    if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;\n/*--------------------------------------------------------------------------*/\n                    #if (FXAA_QUALITY_PS > 6)\n                    if(doneNP) {\n                        if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                        if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                        if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                        if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                        doneN = abs(lumaEndN) >= gradientScaled;\n                        doneP = abs(lumaEndP) >= gradientScaled;\n                        if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;\n                        if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;\n                        doneNP = (!doneN) || (!doneP);\n                        if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;\n                        if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;\n/*--------------------------------------------------------------------------*/\n                        #if (FXAA_QUALITY_PS > 7)\n                        if(doneNP) {\n                            if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                            if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                            if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                            if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                            doneN = abs(lumaEndN) >= gradientScaled;\n                            doneP = abs(lumaEndP) >= gradientScaled;\n                            if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;\n                            if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;\n                            doneNP = (!doneN) || (!doneP);\n                            if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;\n                            if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;\n/*--------------------------------------------------------------------------*/\n    #if (FXAA_QUALITY_PS > 8)\n    if(doneNP) {\n        if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n        if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n        if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n        if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n        doneN = abs(lumaEndN) >= gradientScaled;\n        doneP = abs(lumaEndP) >= gradientScaled;\n        if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;\n        if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;\n        doneNP = (!doneN) || (!doneP);\n        if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;\n        if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;\n/*--------------------------------------------------------------------------*/\n        #if (FXAA_QUALITY_PS > 9)\n        if(doneNP) {\n            if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n            if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n            if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n            if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n            doneN = abs(lumaEndN) >= gradientScaled;\n            doneP = abs(lumaEndP) >= gradientScaled;\n            if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;\n            if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;\n            doneNP = (!doneN) || (!doneP);\n            if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;\n            if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;\n/*--------------------------------------------------------------------------*/\n            #if (FXAA_QUALITY_PS > 10)\n            if(doneNP) {\n                if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                doneN = abs(lumaEndN) >= gradientScaled;\n                doneP = abs(lumaEndP) >= gradientScaled;\n                if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;\n                if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;\n                doneNP = (!doneN) || (!doneP);\n                if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;\n                if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;\n/*--------------------------------------------------------------------------*/\n                #if (FXAA_QUALITY_PS > 11)\n                if(doneNP) {\n                    if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                    if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                    if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                    if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                    doneN = abs(lumaEndN) >= gradientScaled;\n                    doneP = abs(lumaEndP) >= gradientScaled;\n                    if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;\n                    if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;\n                    doneNP = (!doneN) || (!doneP);\n                    if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;\n                    if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;\n/*--------------------------------------------------------------------------*/\n                    #if (FXAA_QUALITY_PS > 12)\n                    if(doneNP) {\n                        if(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n                        if(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n                        if(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n                        if(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n                        doneN = abs(lumaEndN) >= gradientScaled;\n                        doneP = abs(lumaEndP) >= gradientScaled;\n                        if(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;\n                        if(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;\n                        doneNP = (!doneN) || (!doneP);\n                        if(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;\n                        if(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;\n/*--------------------------------------------------------------------------*/\n                    }\n                    #endif\n/*--------------------------------------------------------------------------*/\n                }\n                #endif\n/*--------------------------------------------------------------------------*/\n            }\n            #endif\n/*--------------------------------------------------------------------------*/\n        }\n        #endif\n/*--------------------------------------------------------------------------*/\n    }\n    #endif\n/*--------------------------------------------------------------------------*/\n                        }\n                        #endif\n/*--------------------------------------------------------------------------*/\n                    }\n                    #endif\n/*--------------------------------------------------------------------------*/\n                }\n                #endif\n/*--------------------------------------------------------------------------*/\n            }\n            #endif\n/*--------------------------------------------------------------------------*/\n        }\n        #endif\n/*--------------------------------------------------------------------------*/\n    }\n/*--------------------------------------------------------------------------*/\n    FxaaFloat dstN = posM.x - posN.x;\n    FxaaFloat dstP = posP.x - posM.x;\n    if(!horzSpan) dstN = posM.y - posN.y;\n    if(!horzSpan) dstP = posP.y - posM.y;\n/*--------------------------------------------------------------------------*/\n    FxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;\n    FxaaFloat spanLength = (dstP + dstN);\n    FxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;\n    FxaaFloat spanLengthRcp = 1.0/spanLength;\n/*--------------------------------------------------------------------------*/\n    FxaaBool directionN = dstN < dstP;\n    FxaaFloat dst = min(dstN, dstP);\n    FxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;\n    FxaaFloat subpixG = subpixF * subpixF;\n    FxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;\n    FxaaFloat subpixH = subpixG * fxaaQualitySubpix;\n/*--------------------------------------------------------------------------*/\n    FxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;\n    FxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);\n    if(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;\n    if( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;\n    #if (FXAA_DISCARD == 1)\n        return FxaaTexTop(tex, posM);\n    #else\n        return FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);\n    #endif\n}\n/*==========================================================================*/\n#endif\n\nvoid main() {\n  gl_FragColor = FxaaPixelShader(\n    vUv,\n    vec4(0.0),\n    tDiffuse,\n    tDiffuse,\n    tDiffuse,\n    resolution,\n    vec4(0.0),\n    vec4(0.0),\n    vec4(0.0),\n    0.75,\n    0.166,\n    0.0833,\n    0.0,\n    0.0,\n    0.0,\n    vec4(0.0)\n  );\n\n  // TODO avoid querying texture twice for same texel\n  gl_FragColor.a = texture2D(tDiffuse, vUv).a;\n}'};return THREE.y_});
define("hc",["require","cM","jn","iB","fI"],function(a){function b(a,b){this.g=a;this.Yx=b;this.Li=new THREE.EffectComposer(a);this.Dl=new THREE.CustomRenderPass(b);this.Dl.Fp=z;this.Li.addPass(this.Dl);this.zH=new THREE.ShaderPass(THREE.y_);this.Li.addPass(this.zH);this.sq=this.tq=m}a("cM");a("jn");a("iB");a("fI");var c=new THREE.Vector2;b.prototype.destroy=function(){this.Li=this.zH=this.Dl=this.Yx=this.g=r};b.prototype.render=function(a,b){this.g.getSize(c);if(this.tq!==c.width||this.sq!==c.height)this.tq=
c.width,this.sq=c.height,this.Li.setSize(this.tq,this.sq),this.zH.material.uniforms.resolution.value.x=1/this.tq,this.zH.material.uniforms.resolution.value.y=1/this.sq;this.Dl.vj=a;this.Dl.Ic=b;this.Li.render()};return b});
define("io",["require","cz","hc"],function(a){function b(a,f){this.g=a;this.Yx=f;this.DI=new c(a,f);this.tR=new e(a,f);this.mH=b.NONE}var c=a("cz"),e=a("hc");b.x_="fxaa";b.iO="motionBlur";b.NONE="none";b.prototype.destroy=function(){this.DI.destroy();this.DI=r;this.tR.destroy();this.Yx=this.g=this.tR=r};b.prototype.lZ=function(a){this.mH!=a&&(this.mH=a,this.mH==b.iO&&this.DI.start())};b.prototype.render=function(a,c){switch(this.mH){case b.x_:this.tR.render(a,c);break;case b.iO:this.DI.render(a,c);
break;default:this.Yx(this.g,a,c,r,z)}};return b});
define("bJ",["require","r"],function(a){function b(a){THREE.Object3D.call(this);this.Vd=document.createElement("div");this.Vd.style.position="absolute";this.Vd.style.pointerEvents="none";this.Vd.style.overflow="hidden";this.Vr=document.createElement("div");this.Vd.appendChild(this.Vr);this.Vr.style.transformStyle="preserve-3d";this.Vr.style.position="absolute";this.Vr.style.pointerEvents="none";this.element=a||document.createElement("div");this.Vr.appendChild(this.element);this.element.style.position=
"absolute";this.element.style.pointerEvents="none";this.wk=this.xk=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.UE=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.addEventListener("removed",function(){this.traverse(function(a){a.Vd instanceof Element&&a.Vd.parentNode!==r&&a.Vd.parentNode.removeChild(a.Vd)})})}function c(a){THREE.Object3D.call(this,a);this.wk=this.xk=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,
new THREE.Vector3,new THREE.Vector3];this.UE=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.Vd=document.createElement("div");this.Vd.style.position="absolute";this.Vd.style.pointerEvents="none";this.Vd.style.overflow="hidden";this.element=a||document.createElement("div");this.Vd.appendChild(this.element);this.element.style.position="absolute";this.element.style.pointerEvents="none"}function e(a){THREE.qN.call(this,a)}function d(a,b){for(var c=0;c<a.vertices.length;c++){var d=
a.UE[c];d.copy(a.vertices[c]);d.applyMatrix4(a.matrixWorld);d.applyMatrix4(b.matrixWorldInverse);var f=d.z;d.applyMatrix4(b.projectionMatrix);d.z=f}}function f(){for(var a=arguments[0],b=1;b<arguments.length;b++)a[b-1]=arguments[b]}function g(a,b){f(b,a[4]*a[8]-a[5]*a[7],a[2]*a[7]-a[1]*a[8],a[1]*a[5]-a[2]*a[4],a[5]*a[6]-a[3]*a[8],a[0]*a[8]-a[2]*a[6],a[2]*a[3]-a[0]*a[5],a[3]*a[7]-a[4]*a[6],a[1]*a[6]-a[0]*a[7],a[0]*a[4]-a[1]*a[3])}function k(a,b,c){for(var d=0;3!=d;++d)for(var f=0;3!=f;++f){for(var e=
0,i=0;3!=i;++i)e+=a[3*d+i]*b[3*i+f];c[3*d+f]=e}}function i(a,b,c,d,e,i,j,l,n){f(q,a,c,e,b,d,i,1,1,1);g(q,t);f(s,j,l,1);f(u,t[0]*s[0]+t[1]*s[1]+t[2]*s[2],t[3]*s[0]+t[4]*s[1]+t[5]*s[2],t[6]*s[0]+t[7]*s[1]+t[8]*s[2]);f(o,u[0],0,0,0,u[1],0,0,0,u[2]);k(q,o,n)}a("r");var n=Number.POSITIVE_INFINITY,j=Number.NEGATIVE_INFINITY;b.prototype=Object.create(THREE.Object3D.prototype);b.prototype.constructor=b;b.prototype.copy=function(a,b){THREE.Object3D.prototype.copy.call(this,a,b);this.element=a.element.cloneNode(p);
return this};b.prototype.pea=function(){this.vertices[0].set(0.5*-this.xk,0.5*+this.wk,0);this.vertices[1].set(0.5*+this.xk,0.5*+this.wk,0);this.vertices[2].set(0.5*+this.xk,0.5*-this.wk,0);this.vertices[3].set(0.5*-this.xk,0.5*-this.wk,0)};b.prototype.VY=function(a){this.matrixWorldNeedsUpdate&&this.updateMatrixWorld();d(this,a);var b=this.UE;this.sY=p;var b=b.filter(function(a){return 0>a.z}),c=0,f=0,e=0,i=0;b.forEach(function(b){-1>b.x?c-=1:1<b.x&&(c+=1);-1>b.y?f-=1:1<b.y&&(f+=1);e=Math.max(b.x*
a.aspect,b.y,e);i=Math.min(b.x*a.aspect,b.y,i)});this.pM=this.sY&&Math.abs(c)<b.length&&Math.abs(f)<b.length&&e<n&&i>j};b.prototype.rca=p;THREE.b_=b;c.prototype=Object.create(THREE.Object3D.prototype);c.prototype.constructor=c;c.prototype.copy=function(a,b){THREE.Object3D.prototype.copy.call(this,a,b);for(var c=0;4>c;c++)this.vertices[c].copy(a.vertices[c]);return this};c.prototype.VY=function(a){this.matrixWorldNeedsUpdate&&this.updateMatrixWorld();d(this,a);var b=this.UE;this.sY=0>b[0].z&&0>b[1].z&&
0>b[2].z&&0>b[3].z;var c=0,f=0,e=0,i=0;b.forEach(function(b){-1>b.x?c-=1:1<b.x&&(c+=1);-1>b.y?f-=1:1<b.y&&(f+=1);e=Math.max(b.x*a.aspect,b.y,e);i=Math.min(b.x*a.aspect,b.y,i)});this.pM=this.sY&&Math.abs(c)<b.length&&Math.abs(f)<b.length&&e<n&&i>j};c.prototype.sca=p;THREE.qN=c;e.prototype=Object.create(THREE.qN.prototype);e.prototype.constructor=e;e.prototype.pea=function(){this.vertices[0].set(0.5*-this.xk,0.5*+this.wk,0);this.vertices[1].set(0.5*+this.xk,0.5*+this.wk,0);this.vertices[2].set(0.5*
+this.xk,0.5*-this.wk,0);this.vertices[3].set(0.5*-this.xk,0.5*-this.wk,0)};THREE.Eea=e;var l=new THREE.Matrix4;THREE.c_=function(){var a;function b(n,o,s){if(n.rca||n.sca){n.onBeforeRender(d,o,s);var G=a.get(n)||{},H=z;if(n.pM){if(n.sca){var T=n.UE,K=n.xk,U=n.wk,V=l.elements,W=0.5*(1+T[0].x)*e,Y=0.5*(1-T[0].y)*j,Z=0.5*(1+T[1].x)*e,aa=0.5*(1-T[1].y)*j,X=0.5*(1+T[3].x)*e,ba=0.5*(1-T[3].y)*j,ca=0.5*(1+T[2].x)*e,T=0.5*(1-T[2].y)*j,da=y;i(0,0,K,0,0,U,K,U,v);i(W,Y,Z,aa,X,ba,ca,T,w);g(v,x);k(w,x,da);f(V,
y[0]/y[8],y[3]/y[8],0,y[6]/y[8],y[1]/y[8],y[4]/y[8],0,y[7]/y[8],0,0,1,0,y[2]/y[8],y[5]/y[8],0,1);K=l.elements;K="matrix3d("+c(K[0])+","+c(K[1])+","+c(K[2])+","+c(K[3])+","+c(K[4])+","+c(K[5])+","+c(K[6])+","+c(K[7])+","+c(K[8])+","+c(K[9])+","+c(K[10])+","+c(K[11])+","+c(K[12])+","+c(K[13])+","+c(K[14])+","+c(K[15])+")";G.EX!=K&&(G.EX=n.element.style.transform=K,H=p);if(G.width!==e||G.height!==j)n.Vd.style.width=(G.width=e)+"px",n.Vd.style.height=(G.height=j)+"px",H=p}else{K=n.matrixWorld.elements;
K="translate(-50%,-50%)"+("matrix3d("+c(K[0])+","+c(K[1])+","+c(K[2])+","+c(K[3])+","+c(-K[4])+","+c(-K[5])+","+c(-K[6])+","+c(-K[7])+","+c(K[8])+","+c(K[9])+","+c(K[10])+","+c(K[11])+","+c(K[12])+","+c(K[13])+","+c(K[14])+","+c(K[15])+")");G.ota!==q&&(n.Vd.style.perspective=(G.ota=q)+"px",H=p);if(G.width!==e||G.height!==j)n.Vr.style.width=n.Vd.style.width=(G.width=e)+"px",n.Vr.style.height=n.Vd.style.height=(G.height=j)+"px",H=p;G.pta!==u&&(G.pta=n.Vr.style.transform=u,H=p);G.EX!==K&&(G.EX=n.element.style.transform=
K,H=p)}n.Vd.style.left="0"}else n.Vd.style.left=e+"px";H&&a.set(n,G);n.Vd.style.display=n.visible?"":"none";n.Vd.parentNode!==t&&t.appendChild(n.Vd);n.onAfterRender(d,o,s)}G=0;for(H=n.children.length;G<H;G++)b(n.children[G],o,s)}function c(a){return 1.0E-10>a&&-1.0E-10<a?0:a}var d=this,e,j,n,o,q,u;a=new WeakMap;var t=document.createElement("div");t.style.overflow="hidden";this.domElement=t;this.getSize=function(){return{width:e,height:j}};this.render=function(a,d){q=d.projectionMatrix.elements[5]*
o;a.autoUpdate===p&&a.updateMatrixWorld();var f=d.matrixWorldInverse.elements;u="translateZ("+q+"px)"+("matrix3d("+c(f[0])+","+c(-f[1])+","+c(f[2])+","+c(f[3])+","+c(f[4])+","+c(-f[5])+","+c(f[6])+","+c(f[7])+","+c(f[8])+","+c(-f[9])+","+c(f[10])+","+c(f[11])+","+c(f[12])+","+c(-f[13])+","+c(f[14])+","+c(f[15])+")")+"translate("+n+"px,"+o+"px)";b(a,a,d)};this.setSize=function(a,b){e=a;j=b;n=e/2;o=j/2;t.style.width=e+"px";t.style.height=j+"px"}};var q=Array(9),o=Array(9),t=Array(9),s=Array(3),u=Array(3),
v=Array(9),w=Array(9),x=Array(9),y=Array(9);return THREE});define("ih",["require","gb"],function(a){function b(){this.status=b.TF;this.UY=this.Av=0;this.TY=[]}a("gb");b.LOADING="loading";b.S="loaded";b.TF="not loaded";return b});
define("ix","require,dm,fd,bY,lc,hW,ih".split(","),function(a){function b(){this.E3={};this.Oc=[];this.cr=[];this.fd={}}var c=a("dm"),e=a("fd");a("bY");var d=a("lc"),f=a("hW"),g=a("ih");b.prototype.IZ=function(a){for(var a=a.xn(),b=0,c=a.length;b<c;b++)if(this.UA(a[b]).status!=g.S)return z;return p};b.prototype.zn=function(a,b){this.Oc.push(a);this.sga(a,b)};b.prototype.ti=function(a,b){var d=c(this.Oc).indexOf(a);d<0&&h("Unloading item not loaded");this.Oc.splice(d,1);this.Roa(a,b)};b.prototype.qe=
function(a,b){return this.fd[a].qe(b)};b.prototype.sga=function(a,b){this.cr.push(a);for(var c=a.xn(),d=0,f=c.length;d<f;d++){var e=c[d],o=this.UA(e);o.Av++;o.TY.push(b);if(o.status==g.TF){o.status=g.LOADING;this.yma(e,Math.min.apply(Math,o.TY))}}this.R$()};b.prototype.Roa=function(a,b){this.cr=c(this.cr).without(a);for(var d=a.xn(),f=0,e=d.length;f<e;f++){var q=d[f],o=this.UA(q);o.Av--;var t=o.TY,s=t.indexOf(b);s>=0&&t.splice(s,1);if(o.Av==0&&o.status!=g.TF){o.status=g.TF;o.UY=0;this.Tra(q)}}};b.prototype.R$=
function(a){for(var a=(a==m?this.cr:this.w4(a)).slice(),b=0;b<a.length;b++){for(var d=a[b],f=d.xn(),e=0,q=0,o=f.length,t=0;t<f.length;t++){var s=this.UA(f[t]),e=e+s.UY;s.status==g.S&&q++}d.Nxa(e/o);if(q==o){d.oZ();this.cr=c(this.cr).without(d)}}};b.prototype.UA=function(a){var b=this.E3[a];b||(this.E3[a]=b=new g);return b};b.prototype.w4=function(a){for(var b=[],d=0;d<this.cr.length;d++){var f=this.cr[d];c(f.xn()).contains(a)&&b.push(f)}return b};b.prototype.yma=function(a,b){var c=new f(b);this.fd[a]=
c;c.bind(d.S,this.VB,this,p);c.bind(d.ie,this.WB,this,p);c.load(a)};b.prototype.Tra=function(a){var b=this.fd[a];delete this.fd[a];b.unbind(d.S,this.VB,this);b.unbind(d.ie,this.WB,this);b.cancel()};b.prototype.VB=function(a){var a=a.source.sj(),b=this.UA(a);b.UY=100;b.status=g.S;this.R$(a)};b.prototype.WB=function(a){for(var a=a.source.sj(),b=this.w4(a),c=0;c<b.length;c++){var d=b[c];this.ti(d);d.oxa()}e.log("Error loading: "+a)};b.Hd=new b;return b.Hd});
define("kq",["require","ix","fH","r"],function(a){var b=a("ix"),c=a("fH"),e=a("r"),d={lT:m,Qxa:P("lT"),KQ:m,lxa:P("KQ"),createTexture:function(){var a=new THREE.Texture;a.image=d.Ty();a.userData={};a.userData.jea={};return a},Cta:function(a){a.image!=this.Ty()&&(a.image=this.Ty(),a.needsUpdate=p)},ZM:function(a,b){b=this.kua(b);a.generateMipmaps=this.Kha(b);if(a.generateMipmaps)a.minFilter=THREE.LinearMipMapLinearFilter,a.anisotropy=Math.min(this.gka(b),e.Jba().Ica),!c.Bca(b.width)||!c.Bca(b.height)?
(a.Em||(a.Em=document.createElement("canvas"),a.Em.JK=p),a.image=a.Em,a.Em.ia=b,a.image.width=c.zba(b.width),a.image.height=c.zba(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.IE(b)&&c.uea(b)){a.hl||(a.hl=document.createElement("canvas"),a.Yla=a.hl.getContext("2d"),a.hl.JK=p);var k=b.videoWidth;c.uj()&&(k=Math.min(4096,k));var i=k*b.videoHeight/b.videoWidth;if(a.hl.width!=k||a.hl.height!=i)a.hl.width=k,a.hl.height=
i;b.readyState>=b.HAVE_CURRENT_DATA&&a.Yla.drawImage(b,0,0,k,i);a.image=a.hl}else a.image=b;a.Em&&a.image!=a.Em&&(d.EL(a.Em),delete a.Em);a.needsUpdate=p;if((k=d.fY(a))&&k.isShaderMaterial)k.needsUpdate=p;c.nca()},kua:function(a){a?c.vY(a)?a=b.qe(a,z):c.Dca(a)?a=this.Ty():c.IE(a)&&!(a.readyState>=a.HAVE_CURRENT_DATA&&0<a.videoWidth&&0<a.videoHeight)&&(a=this.Ty()):a=this.Ty();return a},Mta:function(a,b,d,e,n){var j=document.createElement("canvas");j.width=c.On();j.height=c.On();j.JK=p;var l=j.getContext("2d");
if(!l)return r;l.drawImage(a,b,d,e,n,0,0,c.On(),c.On());this.JL(j);return j},EL:function(a){c.tca(a)&&a.JK&&(delete a.JK,a.width=0,a.height=0)},dispose:function(a){a.hl&&a.hl!=a.image&&this.EL(a.hl);a.image&&this.EL(a.image);a.dispose()},$M:function(a,b,c){b?(a.c$=p,a.b$=c||1):(delete a.c$,delete a.b$)},gka:function(a){return a&&a.b$||1},iya:function(a,b){a.userData.jea.material=b},fY:function(a){return a.userData.jea.material},qta:function(a){return c.uY(a)},Taa:function(a){c.vY(a)&&(a=b.qe(a,z));
c.uY(a)&&this.JL(a)},JL:function(a){var b=document.createElement("canvas");b.width=1;b.height=1;var c=b.getContext("2d");d.JL=function(a){c.drawImage(a,0,0,1,1,0,0,1,1)};return d.JL(a)},HQ:r,Ty:function(){if(!this.HQ){var a=document.createElement("canvas");a.width=128;a.height=128;a.getContext("2d").clearRect(0,0,a.width,a.height);this.HQ=a}return this.HQ},Kha:function(a){if(c.Rva(a))return z;if(c.tca(a))return!!a.c$;if(e.Wa()){if(this.lT!==m)return this.lT}else if(this.KQ!==m)return this.KQ;return z}};
return d});
define("bT",["require","fH","kq"],function(a){function b(a){this.tF=(a=c.es(a))&&c.dca();this.DE=a&&c.cca();this.Tr=0;this.hn=m;this.iE=this.jE=0;this.premultipliedAlpha=z;this.LY={}}var c=a("fH"),e=a("kq"),d={YX:function(a){return a.map||a.uniforms&&a.uniforms.texture&&a.uniforms.texture.value},Xr:function(a,b){a||(a=e.createTexture());b||(b=new d.In);var c;c=b.Twa()?this.Jta(a,b):this.yX(a);for(var i in b.LY)c[i]=b.LY[i];return c},yX:function(a){var b=new THREE.MeshBasicMaterial;b.map=a;this.N1(b);
return b},Jta:function(a,b){var c={uniforms:{},transparent:p};c.uniforms.texture={type:"sampler2D",value:a};a.flipY=!b.tF;c.vertexShader=["varying vec2 vUV;\nvoid main() {","\tvUV = vec2( uv.x, "+(b.tF?"1.0 - uv.y":"uv.y")+");","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"].join("\n");if(b.DE||b.Tr||b.hn||b.premultipliedAlpha){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;"]);b.premultipliedAlpha&&(e=e.concat(["   if (color.a > 0.0)","       color.rgb /= color.a;"]));if(b.Tr){var j=a.image.width||a.image.videoWidth,l=a.image.height||a.image.videoHeight,q=0.5*Math.min(j,l)*b.Tr;c.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(q/j,q/l)};d=d.concat(["uniform vec2 blendingLimit;"]);e=e.concat("   float xCoef = 0.0;,   float yCoef = 0.0;,   if (vUV.x < blendingLimit.x) {,      xCoef = 1.0 - (vUV.x / blendingLimit.x);,      xCoef = xCoef * xCoef;,   } else if ((1.0 - vUV.x) < blendingLimit.x) {,      xCoef = 1.0 - ((1.0 - vUV.x) / blendingLimit.x);,      xCoef = xCoef * xCoef;,   },   if (vUV.y < blendingLimit.y) {,      yCoef = 1.0 - (vUV.y / blendingLimit.y);,      yCoef = yCoef * yCoef;,   } else if ((1.0 - vUV.y) < blendingLimit.y) {,      yCoef = 1.0 - ((1.0 - vUV.y) / blendingLimit.y);,      yCoef = yCoef * yCoef;,   },   alpha = alpha * (1.0 - sqrt(xCoef + yCoef));".split(","))}b.hn&&
(c.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(b.hn.substr(1,2),16)/255,parseInt(b.hn.substr(3,2),16)/255,parseInt(b.hn.substr(5,2),16)/255)},c.uniforms.chromaThreshold={type:"f",value:b.jE},c.uniforms.chromaSmoothing={type:"f",value:b.iE},d=d.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),e=e.concat("    float maskY = 0.2989 * chromaColor.r + 0.5866 * chromaColor.g + 0.1145 * chromaColor.b;{    float maskCr = 0.7132 * (chromaColor.r - maskY);{    float maskCb = 0.5647 * (chromaColor.b - maskY);{    float Y = 0.2989 * color.r + 0.5866 * color.g + 0.1145 * color.b;{    float Cr = 0.7132 * (color.r - Y);{    float Cb = 0.5647 * (color.b - Y);{    float chromaBlendValue = smoothstep(chromaThreshold, chromaThreshold + chromaSmoothing, distance(vec2(Cr, Cb), vec2(maskCr, maskCb)));{    alpha = alpha * chromaBlendValue;".split("{")));
e=e.concat(["\tgl_FragColor = vec4(color"+(b.DE?".bgr":".rgb")+", alpha);"]);a.format=THREE.RGBAFormat;c.fragmentShader=[].concat(d,["void main() {"],e,["}"]).join("\n")}else c.fragmentShader="uniform sampler2D texture;\nvarying vec2 vUV;\nvoid main() {\n\tgl_FragColor = texture2D(texture, vUV);\n}";c=new THREE.ShaderMaterial(c);this.N1(c);return c},dispose:function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){var b=d.YX(a);b&&e.dispose(b);a.dispose()})},N1:function(a){a.side=THREE.DoubleSide;
a.transparent=p;a.depthTest=z;a.needsUpdate=p;a.userData={};a.userData.Hca={};e.iya(d.YX(a),a)},qZ:function(a,b){a.userData.Hca.Dk=b},uba:function(a){return a.userData.Hca.Dk}};b.prototype.Twa=function(){return this.tF||this.DE||this.Tr||this.hn||this.premultipliedAlpha};b.prototype.isEqual=function(a){return this.tF===a.tF&&this.DE===a.DE&&this.Tr===a.Tr&&this.hn===a.hn&&this.jE===a.jE&&this.iE===a.iE&&this.premultipliedAlpha===a.premultipliedAlpha};d.In=b;return d});
define("dt",["require","gS","bT"],function(a){function b(a){return Array.isArray(a)?a:a?[a]:[]}var c=a("gS"),e=a("bT"),d={create:function(a,c){var d=new THREE.Mesh(a,c);d.overdraw=z;d.matrixAutoUpdate=z;d.userData.Bp={};d.userData.Bp.attributes={};b(c).forEach(function(a){e.qZ(a,d)});return d},Oaa:function(a){var b=new THREE.Group;d.forEach(a,function(a){b.add(a)});return b},Pxa:function(a,c){b(c).forEach(function(a){e.qZ(a,r)});e.dispose(a.material);a.material=c;b(c).forEach(function(b){e.qZ(b,a)})},
cs:function(a){return b(a.material)},Kua:function(a,b){if(a.layers.mask&b.layers.mask){var e=d.cs(a);return c.Jua(a.geometry,b,a.matrixWorld).map(function(a){return e[a]})}return[]},rxa:function(a,b){a.geometry=b},Gua:function(a,b){var k=[];d.Kg(a,function(a){var f=d.cs(a);b.forEach(function(b){var d=c.Fua(a.geometry,a.matrixWorld,b);if(d){var g=e.YX(f[d.materialIndex]),b=g.image;b==g.Em&&(b=g.Em.ia);g=Math.round(d.mea*b.width-0.5);g=0>g?0:g>b.width-1?b.width-1:g;d=Math.round((1-d.qea)*b.height-0.5);
d=0>d?0:d>b.height-1?b.height-1:d;k.push({x:g,y:d,source:b})}})});return k},RM:function(a,b){d.forEach(a,function(a){b?b.add(a):a.parent&&a.parent.remove(a)})},us:"panoramaId",Tv:"panoramaFrameId",hN:"panoramaOverlayId",gN:"levelIndex",setAttribute:function(a,b,c){d.Kg(a,function(a){a.userData.Bp.attributes[b]=c})},getAttribute:function(a,b){return a.userData.Bp.attributes[b]},aba:function(a,b,c){for(var d=[],e=0,j=a.length;e<j;e++){var l=a[e];l.userData.Bp.attributes[b]!==c&&d.push(l)}return d},
HL:function(a,b,c){for(var d=[],e=0,j=a.length;e<j;e++){var l=a[e];l.userData.Bp.attributes[b]===c&&d.push(l)}return d},Lba:function(a,b){for(var c={},d=0,e=a.length;d<e;d++){var j=a[d],l=j.userData.Bp.attributes[b];l!==m&&(c[l]||(c[l]=[])).push(j)}return c},PL:function(a){a=a.userData.Bp.alpha;return a===m?1:a},xd:function(a,b){d.Kg(a,function(a){a.userData.Bp.alpha=b;d.cs(a).forEach(function(a){a.opacity=b;"ShaderMaterial"==a.type&&a.uniforms&&a.uniforms.opacity&&(a.uniforms.opacity.value=b)})})},
Ul:function(a,b){d.Kg(a,function(a){a.matrix.copy(b);a.matrixWorldNeedsUpdate=p})},Iba:function(a){return a.renderOrder},UM:function(a,b){d.forEach(a,function(a){a.renderOrder=b})},dispose:function(a){d.Kg(a,function(a){a.geometry&&(a.geometry.dispose(),a.geometry=m);a.material&&(e.dispose(a.material),a.material=m)})},vh:function(a){var b=[];d.Kg(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)},Kg:function(a,
b){if(Array.isArray(a))for(var c=0,e=a.length;c<e;c++)d.Kg(a[c],b);else if(a&&a.children){c=0;for(e=a.children.length;c<e;c++)d.Kg(a.children[c],b)}a&&a.isObject3D&&a.isMesh&&b(a)}};return d});
define("M",["require","dt"],function(a){var b=a("dt");return{vh:function(a){var e=[];a.children&&a.children.forEach(function(a){b.Kg(a,function(a){a.userData&&a.userData.Bp&&e.push(a)})});return e},kZ:function(a,b){a.userData.wL=b},NX:function(a){return a.userData.wL||[]},as:function(a){return a.userData.wL&&0<a.userData.wL.length&&a.userData.wL[0]||r}}});
define("X","require,bi,r,cS,M,fH".split(","),function(a){var b=a("bi");a("r");var c=a("cS"),e=a("M"),d=a("fH"),f=180/Math.PI;return{ofa: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.kZ(c,[b]);a.setPixelRatio(d.getPixelRatio())};this.stop=C();this.fov=function(){return b.fov};this.PZ=C();this.Ic=function(){return b};this.render=function(c,d,e){a.setRenderTarget(d);e&&a.clear();a.render(c,b)}},Lfa:function(a,d){var i,n,j,l,q=new THREE.Vector2,
o=new THREE.PerspectiveCamera;o.layers.enable(c.oa);var t=new THREE.PerspectiveCamera;t.layers.enable(c.Ka);this.start=function(c){a.getSize(q);i=a.getPixelRatio();n=q.width;j=q.height;l=a.getContext().getParameter(a.getContext().FRAMEBUFFER_BINDING);var d=b.UL();d.pE&&a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,d.pE);a.setClearColor(0,1);a.setDrawingBufferSize(d.zk,d.pj,d.KL);e.kZ(c,[o,t])};this.stop=function(){a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,l);a.setClearColor(0,
0);a.setDrawingBufferSize(n,j,i)};this.setSize=function(a,b){n=a;j=b};this.fov=function(){return t.fov};this.Ic=function(){return t};this.PZ=function(){d.updateProjectionMatrix();d.updateMatrixWorld();b.rn().views.forEach(function(a){var c=a.eye==b.Fj.oa?o:a.eye==b.Fj.Ka?t:r;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,e){var f=c.autoUpdate;if(f){c.updateMatrixWorld();c.autoUpdate=z}if(d){a.setRenderTarget(d);d.scissorTest=p}else{a.setRenderTarget(r);a.setScissorTest(p)}(a.autoClear||e)&&a.clear();b.rn().views.forEach(function(e){var f=e.eye==b.Fj.oa?o:e.eye==b.Fj.Ka?t:r;if(f){if(d){d.viewport.set(e.viewport.x,e.viewport.y,e.viewport.width,e.viewport.height);d.scissor.set(e.viewport.x,e.viewport.y,e.viewport.width,e.viewport.height)}else{a.setViewport(e.viewport.x,e.viewport.y,e.viewport.width,
e.viewport.height);a.setScissor(e.viewport.x,e.viewport.y,e.viewport.width,e.viewport.height)}a.render(c,f)}});a.getSize(q);if(d){d.viewport.set(0,0,q.width,q.height);d.scissor.set(0,0,q.width,q.height);d.scissorTest=z;a.setRenderTarget(r)}else{a.setViewport(0,0,q.width,q.height);a.setScissorTest(z)}if(f)c.autoUpdate=p}},Efa:function(a,b){var f,n,j=1,l=new THREE.WebGLCubeRenderTarget(1024),q=new THREE.CubeCamera(0.1,1E4,l);q.layers.enable(c.Gn);q.layers.enable(c.oa);l=new THREE.ShaderMaterial;l.uniforms=
{tCube:{value:q.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=z;l.transparent=p;l.depthTest=z;l.needsUpdate=p;var o=new THREE.Mesh(new THREE.SphereBufferGeometry(5,64,64),l);o.overdraw=z;o.matrixAutoUpdate=z;o.renderOrder=1E3;var t=new THREE.Matrix4;this.Nv=function(a){j=a};this.setSize=function(b,c){if(f!=b||n!=c)a.setSize(f=b,n=c)};this.start=function(c){c.add(o);c.add(q);c.traverse(function(a){if(a.layers.test(q.layers)){a.userData.AY=a.layers.mask;a.layers.mask=q.layers.mask}});q.visible=p;o.visible=p;e.kZ(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.AY!==m){a.layers.mask=a.userData.AY;delete a.userData.AY}});q.visible=z;o.visible=z;b.remove(o);b.remove(q)};this.fov=function(){return b.fov};this.PZ=function(){if(j>0){o.matrix.copy(b.matrixWorld);o.matrix.multiply(t.makeTranslation(0,0,-j*5));o.matrixWorldNeedsUpdate=p}};this.Ic=function(){return b};var s=0;this.render=function(c,e,f){if(j>0){s++;if(!d.Ava()||s%10==0){d.exa();
o.visible=z;q.update(a,c);o.visible=p}}a.setRenderTarget(e);f&&a.clear();a.render(c,b)}}}});
define("dE","require,jquery.mod,im,kl,cS,io,bJ,X,gS,fH,bi".split(","),function(a){function b(){this.I=c("<div/>");this.I.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,cursor:"inherit"});this.sb=new THREE.PerspectiveCamera(90,16/9,0.1,2*i.Jd);this.sb.layers.enable(f.oa);this.aH=new THREE.PerspectiveCamera;this.mk=new THREE.Scene;this.f3=new THREE.Scene;this.g3=new THREE.Scene;window.Aza=THREE;this.mk.add(this.sb);this.fo=this.yq=this.g=r;this.Ut=0;this.Qo=this.bg=this.AV=this.YW=
r;this.qQ=z}var c=a("jquery.mod"),e=a("im"),d=a("kl"),f=a("cS"),g=a("io");a("bJ");var k=a("X"),i=a("gS"),n=a("fH"),j=a("bi");b.prototype.as=R("aH");b.prototype.mua=function(){return this.bg.fov(this.sb)};b.prototype.getPixelRatio=function(){return this.g.getPixelRatio()};b.prototype.Cb=R("I");b.prototype.pua=function(){return this.g?this.g.domElement.width:this.I.width()};b.prototype.oua=function(){return this.g?this.g.domElement.height:this.I.height()};b.prototype.og=function(){return this.g.domElement};
b.prototype.update=function(a){this.xsa(a);this.esa(a);this.Yra(a);this.usa(a)};b.prototype.render=function(){this.MJ()};b.prototype.xsa=function(a){if(a.enabled){this.Ut=(new Date).getTime();this.g||this.Aqa(a);j.PM(this.g.getContext())}if(this.qQ=a.enabled&&!a.Ob){this.yq.setSize(a.width,a.height);this.fo.setSize(a.width,a.height)}};b.prototype.Aqa=function(a){if(!this.g&&a.enabled){for(;l.length>=q;){l.sort(function(a,b){return a.Ut-b.Ut});l[0].Zha()}l.push(this);var b=this.Cb().get(0);this.yq=
new THREE.c_;this.yq.domElement.style.position="absolute";this.yq.domElement.style.zIndex=0;b.appendChild(this.yq.domElement);var c={precision:"mediump",alpha:p};if(l.length==1&&a.Ob){a=j.mv();c.context=a;c.canvas=a.canvas}else{c.canvas=document.createElement("canvas");c.context=n.zX(c.canvas,a.rL)}this.g=new THREE.WebGLRenderer(c);this.g.domElement.style.position="absolute";this.g.domElement.style.zIndex=1;this.g.domElement.style.pointerEvents="none";this.g.setClearColor(0,0);b.appendChild(this.g.domElement);
this.fo=new THREE.c_;this.fo.domElement.style.position="absolute";this.fo.domElement.style.zIndex=2;this.fo.domElement.style.pointerEvents="none";b.appendChild(this.fo.domElement);this.Qo=new g(this.g,function(a,b,c,d,e){this.bg.render(b,d,e)}.bind(this));this.AV=new k.ofa(this.g,this.sb);this.Q9=new k.Efa(this.g,this.sb);this.YW=new k.Lfa(this.g,this.sb);j.By(this.g.getContext())}};b.prototype.Zha=function(){if(this.g){l.splice(l.indexOf(this),1);this.bg=this.AV=this.YW=r;this.Qo.destroy();this.Qo=
r;j.FM(this.g.getContext());var a=this.Cb().get(0);a.removeChild(this.fo.domElement);this.fo=r;a.removeChild(this.g.domElement);this.g.dispose();this.g=r;a.removeChild(this.yq.domElement);this.yq=r}};b.prototype.Yra=function(a){this.sb.quaternion.copy(d.eba(a.ja,a.pitch,a.ld));this.sb.fov=e.Bk(a.ad,a.width,a.height);this.sb.aspect=a.width/a.height;this.sb.updateProjectionMatrix();this.sb.updateMatrixWorld();this.bg&&this.bg.PZ();this.bg&&this.aH.copy(this.bg.Ic());this.aH.updateProjectionMatrix();
this.aH.updateMatrixWorld();this.mk.autoUpdate===p&&this.mk.updateMatrixWorld()};b.prototype.esa=function(a){var b=a.Ob?this.YW:a.si>0?this.Q9:this.AV;if(this.bg!=b){this.bg&&this.bg.stop(this.mk);(this.bg=b)&&this.bg.start(this.mk)}if(this.bg){this.bg.setSize(a.width,a.height);this.bg==this.Q9&&this.bg.Nv(a.si)}};b.prototype.usa=function(a){this.Qo&&(a.xM?this.Qo.lZ(g.iO):a.NL&&!a.Ob?this.Qo.lZ(g.x_):this.Qo.lZ(g.NONE))};b.prototype.MJ=function(){this.Qo&&this.Qo.render(this.mk,this.sb);if(this.qQ){this.yq.render(this.f3,
this.sb);this.fo.render(this.g3,this.sb)}};var l=[],q=10;return b});
define("gQ",["require","fd","eL","fH"],function(a){var b=a("fd"),c=a("eL"),e=a("fH"),a=b.extend(c,function(){c.call(this);this.P=this.Sa=r;this.vc=[];this.XH=this.ip=z;this.RB=r;this.dh=[this];this.$m={};this.tm={};this.cB=z;this.wU={};this.xU={};this.Uk(["blendingActive"]);this.kga();this.set("alpha",1);this.set("translationX",0);this.set("translationY",0);this.set("translationZ",0);this.set("deltaYaw",0);this.set("deltaPitch",0);this.set("deltaRoll",0);this.set("flipHorizontally",z);this.set("index",
0)});a.prototype.kga=function(){var a="alpha,deltaYaw,deltaPitch,deltaRoll,translationX,translationY,translationZ".split(",");Array.isArray(a)||(a=[a]);a.forEach(function(a){this.wU[a]=p}.bind(this))};a.prototype.Uk=function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){this.xU[a]=p}.bind(this))};a.prototype.set=function(a,b){this.$m[a]!==b&&(this.xU[a]&&this.vc.forEach(function(c){c.set(a,b)}),this.Kga(a,b),this.fV(a))};a.prototype.get=function(a){return this.$m[a]};a.prototype.fV=function(a){this.tm[a]||
(this.tm[a]=p,this.cB||(this.cB=p,this.Ga()),this.wU[a]&&this.vc.forEach(function(b){b.fV(a)}))};a.prototype.aia=function(){this.cB&&(this.cB=z,this.tm={})};a.prototype.o=function(){if(this.cB)for(var a=0;a<arguments.length;a++)if(this.tm[arguments[a]])return p;return z};a.prototype.Kga=function(a,b){this.$m[a]=b};a.prototype.Oa=R("vc");a.prototype.Qg=function(a){for(var b=a||[],c=this.vc.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.vc=b,a.forEach(function(a){a.kK(r)}),e.forEach(function(a){a.remove();a.kK(this)}.bind(this)),this.Ga())};a.prototype.kK=function(a){this.P!=a&&(this.P&&this.gj(),(this.P=a)&&this.Vk(),this.mV(this.P&&this.P.Sa))};a.prototype.Vk=function(){for(var a in this.P.wU)this.fV(a);for(a in this.P.xU)this.set(a,this.P.get(a))};a.prototype.gj=C();a.prototype.mV=function(a){this.Sa!=a&&(a||this.Ya(),(this.Sa=a)&&this.Qa(),this.vc.forEach(function(a){a.mV(this.Sa)}.bind(this)))};
a.prototype.Qa=function(){this.Cga()};a.prototype.Ya=function(){this.Moa()};a.prototype.Cga=function(){this.dh.forEach(function(a){this.Sa.RB.add(a,this)}.bind(this))};a.prototype.Moa=function(){this.dh.forEach(function(a){this.Sa.RB.remove(a,this)}.bind(this))};a.prototype.uk=function(){this.P&&this.P.qX(this)};a.prototype.qX=function(a){var b=this.vc.indexOf(a);-1==b&&h("Child not found");b!=this.vc.length-1&&(this.vc.splice(b,1),this.vc.push(a),this.Ga())};a.prototype.aua=function(a){var b=this.vc.indexOf(a);
-1==b&&h("Child not found");this.vc.splice(b,1);a.kK(r);this.Ga()};a.prototype.appendChild=function(a){a.remove();this.vc.push(a);a.kK(this);this.Ga()};a.prototype.remove=function(){this.P&&this.P.aua(this)};a.prototype.Aj=C();a.prototype.Ga=function(){this.ip||(this.ip=p,this.P&&this.P.Ga(this))};a.prototype.hia=function(){this.ip=z};a.prototype.OU=function(){this.XH||(this.XH=p,this.P&&this.P.OU())};a.prototype.dia=function(){this.XH=z};a.prototype.J=function(){this.L$();this.o("translationX","translationY",
"translationZ")&&(this.set("composedTranslationX",this.get("translationX")+(this.P?this.P.get("composedTranslationX"):0)),this.set("composedTranslationY",this.get("translationY")+(this.P?this.P.get("composedTranslationY"):0)),this.set("composedTranslationZ",this.get("translationZ")+(this.P?this.P.get("composedTranslationZ"):0)));this.o("deltaYaw","deltaPitch","deltaRoll")&&(this.set("composedDeltaYaw",this.get("deltaYaw")+(this.P?this.P.get("composedDeltaYaw"):0)),this.set("composedDeltaPitch",this.get("deltaPitch")+
(this.P?this.P.get("composedDeltaPitch"):0)),this.set("composedDeltaRoll",this.get("deltaRoll")+(this.P?this.P.get("composedDeltaRoll"):0)),e.nca())};a.prototype.L$=function(){this.o("alpha")&&this.set("composedAlpha",this.get("alpha")*(this.P?this.P.get("composedAlpha"):1))};return a});
define("jQ","require,fd,lc,gb,eL,bT,kq".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gb"),d=a("eL"),f=a("bT"),g=a("kq"),k=b.extend(d,function(){d.call(this);this.Ud=m;this.rb=g.createTexture();this.m=k.Pz;this.zB=e.Jj});k.prototype.type=R("Ud");k.prototype.texture=R("rb");k.prototype.material=function(){return this.rb&&g.fY(this.rb)};k.prototype.Dk=function(){var a=this.rb&&g.fY(this.rb);return a&&f.uba(a)};k.prototype.Mxa=P("zB");k.prototype.load=function(){if(this.m==k.Pz){this.m=k.YF;this.yP()}};
k.prototype.vta=function(){if(this.Wva()){this.m==k.YF?this.FK():this.kD();this.m=k.Pz}};k.prototype.unload=function(){if(this.m!=k.Pz){this.m==k.YF?this.FK():this.m==k.xO?this.kD():this.Mr();this.m=k.Pz}};k.prototype.yP=C();k.prototype.FK=C();k.prototype.wP=C();k.prototype.kD=C();k.prototype.Mr=function(){g.Cta(this.texture)};k.prototype.Wva=function(){return this.m==k.YF||this.m==k.xO};k.prototype.CY=function(){return this.m==k.wO||this.m==k.s0};k.prototype.dispose=function(){g.dispose(this.rb);
this.rb=r};k.prototype.Bx=function(a){this.m=a?k.xO:k.s0;a?this.wP():this.trigger(c.ie)};k.prototype.a6=function(){this.m=k.wO;this.trigger(c.S)};k.Pz="initial";k.YF="loading";k.xO="adding";k.s0="error loading";k.wO="added";k.Hfa="custom";k.Ifa="image tile";k.Bza="image animation";k.Cza="video 360";return k});
define("dU","require,fd,lc,bR,ix,kq,jQ".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bR"),d=a("ix"),f=a("kq"),g=a("jQ"),a=b.extend(g,function(a){g.call(this);this.Ud=g.Hfa;this.Md=a;if(!this.Md)this.m=g.wO;this.pe=this.ee=r;this.hP=this.PD=m});a.prototype.ri=function(a){this.pe=a;f.ZM(this.rb,this.pe);this.pe&&this.PD!==m&&f.$M(this.pe,this.PD,this.hP)};a.prototype.$M=function(a,b){if(this.PD!==a){this.PD=a;this.hP=b;this.pe&&f.$M(this.pe,this.PD,this.hP)}};a.prototype.qe=function(){return d.qe(this.Md)};
a.prototype.update=function(){f.ZM(this.rb,this.pe)};a.prototype.yP=function(){this.Md?this.oQ():this.Bx(p)};a.prototype.FK=function(){this.ko()};a.prototype.wP=function(){this.a6()};a.prototype.Mr=function(){this.ko()};a.prototype.dispose=function(){this.ko();g.prototype.dispose.call(this)};a.prototype.Lf=function(){this.Bx(p)};a.prototype.er=function(){this.Bx(z)};a.prototype.oQ=function(){if(!this.ee){this.ee=new e;this.ee.AZ([this.Md]);this.ee.bind(c.S,this.Lf,this,p);this.ee.bind(c.ie,this.er,
this,p);d.zn(this.ee,this.zB)}};a.prototype.ko=function(){if(this.ee){this.ee.unbind(c.S,this.Lf,this,p);this.ee.unbind(c.ie,this.er,this,p);d.ti(this.ee,this.zB);this.ee=r}};return a});
define("jE","require,fd,lc,eL,dt,M".split(","),function(a){function b(a,b){return a.reduce(function(a,c){return a?p:!!(b.layers.mask&c.layers.mask)},z)}function c(a){a=f(a).loaded;return a===m?z:a}function e(a){a=f(a).kX;return a===m?p:a}function d(a){a=f(a).blending;return a===m?z:a}function f(a){return a.userData.ewa||(a.userData.ewa={})}var g=a("fd"),k=a("lc"),i=a("eL"),n=a("dt"),j=a("M"),a=g.extend(i,function(){i.call(this);this.m=m;this.iT=z});a.prototype.update=function(a){var b=a.Ob&&this.m&&
!this.m.Ob;this.m=a.clone();this.iT||(b?this.Dla():this.ksa())};a.prototype.ksa=function(){var a=z,f=j.NX(this.m.te),i=j.vh(this.m.te);n.HL(i,n.Tv,m).forEach(function(c){var d=b(f,c)&&n.PL(c)>0&&e(c);if(c.visible!=d){c.visible=d;a=p}});var i=n.aba(i,n.Tv,m),i=n.Lba(i,n.us),g;for(g in i){var s=i[g],u=f.map(S(z));s.sort(function(a,b){return n.Iba(b)-n.Iba(a)});var v=s.some(d);s.forEach(function(d){var i=b(f,d)&&n.PL(d)>0&&e(d)&&(!v||c(d));if(i){for(var i=p,j=v||c(d)&&n.PL(d)>0.999,g=0;g<f.length;g++)if(d.layers.mask&
f[g].layers.mask&&!u[g]){i=z;j&&(u[g]=p)}i=!i}if(d.visible!=i){d.visible=i;a=p}})}a&&this.trigger(k.aa)};a.prototype.Dla=function(){this.iT=p;j.vh(this.m.te).forEach(function(a){a.visible=z});setTimeout(function(){this.iT=z;this.update(this.m)}.bind(this),300);this.trigger(k.aa)};a.oZ=function(a,b){f(a).loaded=b};a.setActive=function(a,b){f(a).kX=b};a.Cda=function(a,b){n.Kg(a,function(a){f(a).blending=b})};return a});
define("hS","require,fd,lc,gb,eL,jE,bT,dt,M,r".split(","),function(a){function b(a){return(a=a.userData.Ik)&&!(!a.GY&&!a.EY)}function c(a){return a.userData.Ik||(a.userData.Ik={})}function e(a){return c(a).Qv}function d(a){return c(a).enabled||z}function f(a){return!e(a).CY()}var g=a("fd"),k=a("lc");a("gb");var i=a("eL"),n=a("jE"),j=a("bT"),l=a("dt"),q=a("M"),o=a("r"),t=g.extend(i,function(){i.call(this);this.ux=[];this.br=[];this.ow=[];this.m=m;this.Xm=r;this.Nr=this.Nr.bind(this)});t.prototype.update=
function(a){this.m=a.clone();this.Ura()?this.Nr():this.T$()};t.prototype.T$=function(){if(!this.Xm)this.Xm=setTimeout(this.Nr,1E3)};var s=Math.PI/180;t.prototype.Ura=function(){var a=this.m.si>0?1E3:this.m.gE/Math.tan(Math.min(this.m.uf*0.5,89.99)*s);o.Wa()||(a=a*1.5);var e=q.NX(this.m.te),f=q.vh(this.m.te).filter(b),i=f.filter(d),j={},j=l.aba(i,l.Tv,m),j=l.Lba(j,l.Tv);j.none=l.HL(i,l.Tv,m);var i=[],g;for(g in j)for(var k=j[g],u=0,J=k.length;u<J;u++){var B=k[u];(c(B).GY||t.QF)==t.Rk&&i.push(B)}for(var G=
0,H=e.length;G<H;G++){var I=e[G];for(g in j){for(var k=j[g],N=r,O=Number.NEGATIVE_INFINITY,D=r,Q=Number.POSITIVE_INFINITY,u=0,J=k.length;u<J;u++){B=k[u];if(B.layers.mask&I.layers.mask&&(c(B).GY||t.QF)==t.QF){var L=c(B).rwa*90;if(L<a&&L>O){N=B;O=L}else if(L>=a&&L<Q){D=B;Q=L}}}if(this.m.Ob&&D&&N)O>0.75*a?i.push(N):i.push(D);else{D&&i.indexOf(D)<0&&i.push(D);N&&i.indexOf(N)<0&&i.push(N)}}}a=[];for(e=0;e<i.length;e++){g=i[e];a.indexOf(g)<0&&a.push(g)}i=a;a:{a=this.ow;e=i;for(g=0;g<a.length;g++)if(e.indexOf(a[g])<
0){a=z;break a}for(g=0;g<e.length;g++)if(a.indexOf(e[g])<0){a=z;break a}a=p}a=!a;this.ow=i;u=0;for(J=f.length;u<J;u++){B=f[u];d(B)&&n.setActive(B,this.ow.indexOf(B)>=0)}return a};t.prototype.Nr=function(){this.Xm=r;for(var a=[],b=[],d=[],e=(new Date).getTime()-u,i=q.NX(this.m.te),j=q.vh(this.m.te),g=0,n=j.length;g<n;g++){var o=j[g],s=o.userData.Ik;if(s){var G=l.cs(o);if(s.enabled){var H=[];if(this.ow.indexOf(o)>=0){if(this.m.si>0||(c(o).EY||t.hO)==t.Ij)H=G;else for(var I=0,N=i.length;I<N;I++){var O=
l.Kua(o,i[I]);if(I==0)H=O;else for(var D=0,Q=O.length;D<Q;D++){var L=O[D];H.indexOf(L)<0&&H.push(L)}}D=0;for(Q=H.length;D<Q;D++){L=H[D];(L.userData.Ik||(L.userData.Ik={})).Eca=e}}this.pP(o,H);D=0;for(Q=s.bm.length;D<Q;D++)a.push(s.bm[D]);D=0;for(Q=s.Gp.length;D<Q;D++)b.push(s.Gp[D])}else{s.Gp||this.pP(o,[]);D=0;for(Q=s.Gp.length;D<Q;D++){L=s.Gp[D];s.bm.indexOf(L)<0&&b.push(L)}}D=0;for(Q=G.length;D<Q;D++)d.push(G[D])}}g=[];D=0;for(Q=this.br.length;D<Q;D++){L=this.br[D];d.indexOf(L)<0?L.userData.Ik.Qv.unload():
f(L)?this.jV(L,z):g.push(L)}this.br=g;D=Math.max(t.Jca(),Math.round(b.length*1.25))-a.length;if(this.br.length>D){this.br.sort(function(a,b){return c(a).Eca-c(b).Eca});g=this.br.splice(0,this.br.length-D);D=0;for(Q=g.length;D<Q;D++){L=g[D];L.userData.Ik.Qv.unload();this.jV(L,z)}}b=[];g=0;for(n=this.ow.length;g<n;g++){o=this.ow[g];s=o.userData.Ik;s.bm.length>0&&b.push(o)}d=Number.POSITIVE_INFINITY;g=0;for(n=b.length;g<n;g++){o=b[g];s=o.userData.Ik;D=s.Qd;D=D!==m?D:Number.POSITIVE_INFINITY;D<d&&(d=
D)}a=[];g=0;for(n=b.length;g<n;g++){o=b[g];s=o.userData.Ik;D=s.Qd;D=D!==m?D:Number.POSITIVE_INFINITY;if(D==d){O=s.bm;D=0;for(Q=O.length;D<Q;D++){L=O[D];a.push(L)}}}D=0;for(Q=this.ux.length;D<Q;D++){L=this.ux[D];if(a.indexOf(L)<0){L=L.userData.Ik.Qv;L.unbind(k.S,this.RV,this,p);L.unbind(k.ie,this.SV,this,p);L.vta()}}g=this.ux;this.ux=a;n=this.ux.slice();D=0;for(Q=n.length;D<Q;D++){L=n[D];if(g.indexOf(L)<0){L=L.userData.Ik.Qv;L.bind(k.S,this.RV,this,p);L.bind(k.ie,this.SV,this,p);L.load()}}};t.prototype.RV=
function(a){this.i$(a.source);this.trigger(k.S)};t.prototype.SV=function(a){this.i$(a.source)};t.prototype.i$=function(a){a.unbind(k.S,this.RV,this,p);a.unbind(k.ie,this.SV,this,p);var b=a.material(),d=this.ux,e=d.indexOf(b);e>=0&&d.splice(e,1);this.br.push(b);this.jV(b,p);a=a.Dk();c(a).bm.indexOf(b)>=0&&this.pP(a,c(a).Gp);this.T$()};t.prototype.pP=function(a,b){var d=c(a).Gp,d=d?d.length:m,e=c(a).bm,e=e?e.length:m;c(a).Gp=b;c(a).bm=b.filter(f);n.oZ(a,c(a).bm.length==0&&(c(a).EY||t.hO)==t.Ij);var i=
c(a).Gp,i=i?i.length:m,j=c(a).bm,j=j?j.length:m;if(e!==j||d!==i)a.dispatchEvent({type:k.sc,zh:i?100-100*j/i:100});e!==j&&j===0&&a.dispatchEvent({type:k.S})};t.prototype.jV=function(a,c){if(c!=a.visible){var d=j.uba(a),f=l.getAttribute(d,l.us),i=l.getAttribute(d,l.gN);if(f===m||i===m)a.visible=c;else{for(var g=q.vh(this.m.te).filter(b),f=l.HL(g,l.us,f),i=l.HL(f,l.gN,i),k=l.cs(d).indexOf(a),d=i.map(function(a){return l.cs(a)[k]}),i=c,f=0;f<d.length&&i;f++)i=i&&e(d[f]).CY();for(f=0;f<d.length;f++)d[f].visible=
i}}};t.Jca=function(){var a;if(o.Wa()){o.Xd();a=384}else a=1536;a=128;t.Jca=function(){return a};return a};t.md=function(a,b){l.Kg(a,function(a){c(a).enabled=b})};t.enabled=d;t.OM=function(a,b){l.Kg(a,function(a){c(a).rwa=b})};t.Ij="all";t.hO="in view";t.Cn=function(a,b){l.Kg(a,function(a){c(a).EY=b})};t.Rk="always";t.QF="on demand";t.Dn=function(a,b){l.Kg(a,function(a){c(a).GY=b})};t.uz=function(a,b){l.Kg(a,function(a){c(a).Qd=b})};t.ms=function(a,b){l.Kg(a,function(a){c(a).EAa=b;l.cs(a).forEach(function(a){e(a).Mxa(b)})})};
t.BAa=function(a){return 100-100*c(a).bm.length/c(a).Gp.length};t.AAa=function(a){return c(a).bm.length==0};t.vz=function(a,b){(c(a).Qv=b)&&(a.visible=b.CY())};t.Qv=e;var u=(new Date).getTime();return t});
define("ed","require,fd,gQ,dU,bT,dt,M,hS,jE".split(","),function(a){var b=a("fd"),c=a("gQ"),e=a("dU"),d=a("bT"),f=a("dt"),g=a("M"),k=a("hS"),i=a("jE"),a=b.extend(c,function(){c.call(this);this.set("tag","ComposedWebGLObject");this.set("webglScene",r);this.set("meshGroup",r);this.set("camera",r);this.set("textureSource",r);this.set("materialConfig",this.eT=new d.In);this.eo&&this.eo();this.st&&this.st();this.xq&&this.xq();this.Nj&&this.Nj()});a.prototype.Qa=function(){c.prototype.Qa.call(this);this.fk&&
this.fk();this.FB&&this.FB();this.Ox&&this.Ox()};a.prototype.Ya=function(){this.wx&&this.wx();this.Px&&this.Px();this.hk&&this.hk();f.dispose(this.get("meshGroup"));f.RM(this.get("meshGroup"),r);this.set("meshGroup",r);c.prototype.Ya.call(this)};a.prototype.J=function(a){this.Tf&&this.Tf(a);c.prototype.J.call(this,a);this.set("camera",g.as(a.te));this.set("webglScene",a.te);if(!this.get("meshGroup")){this.set("meshGroup",f.Oaa(this.Mi()));this.get("meshGroup").userData.nwa=this}this.o("webglScene",
"meshGroup")&&f.RM(this.get("meshGroup"),this.get("webglScene"));this.hi();this.vy&&this.vy(a);this.Esa();this.hp&&this.hp(a);this.Ql&&this.Ql(a);this.Ru();this.o("loadingActive","meshGroup")&&k.md(this.get("meshGroup"),this.get("loadingActive"));this.o("blendingActive","meshGroup")&&i.Cda(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.hi=function(){this.o("composedAlpha","meshGroup")&&this.hq()};a.prototype.hq=function(){f.xd(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.Esa=
function(){if(this.o("textureSource")||this.o("materialConfig")&&!this.eT.isEqual(this.get("materialConfig"))){var a=this.DH();if(a){f.Pxa(a,this.Kw());this.hq()}}};a.prototype.Ru=function(){if(this.o("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,c){f.UM(a,this.get("index")+b/c.length)}.bind(this))}};a.prototype.Kw=function(){var a=this.get("textureSource")||new e;this.eT=this.get("materialConfig");var b=d.Xr(a.texture(),this.eT);k.vz(b,a);return[b]};a.prototype.Y2=
function(){var a=new e,b=d.Xr(a.texture());k.vz(b,a);return[b]};a.prototype.po=function(a){return f.Gua(this.get("meshGroup"),a)};return a});
define("hD",["require","im","jP","je"],function(a){var b=a("im"),c=a("jP"),e=a("je"),d=180/Math.PI,f=Math.PI/180;return{SX:function(a,b,d,f,j,l,q){b||(b=a*f/d);j||(j=e.Ln);var o={};switch(j){case e.Ln:o.width=a;o.height=b;break;case e.NONE:o.width=d;o.height=f;break;case e.Me:o.width=Math.min(b*d/f,a);o.height=Math.min(a*f/d,b);break;case e.km:o.width=Math.max(b*d/f,a);o.height=Math.max(a*f/d,b);break;case e.Qk:o.width=a;o.height=a*f/d;break;case e.Wg:o.width=b*d/f,o.height=b}o.width>a?(o.Pp=a/o.width,
o.sF=l==c.oa?0:l==c.Ka?1-o.Pp:0.5*(1-o.Pp),o.width=a):(o.sF=0,o.Pp=1);o.height>b?(o.Qp=b/o.height,o.vF=q==c.jb?1-o.Qp:q==c.ib?0:0.5*(1-o.Qp),o.height=b):(o.vF=0,o.Qp=1);return o},$X:function(a,k,i,n,j,l,q,o){k||(k=b.Bk(a,i,n));j||(j=e.Ln);l||(l=4096/360);var t={};switch(j){case e.Ln:t.ad=a;t.hm=k;break;case e.NONE:t.ad=2*Math.atan2(0.5*i,45*l)*d;t.hm=b.Bk(t.ad,i,n);break;case e.Me:t.ad=Math.min(b.Fn(k,i,n),a);t.hm=Math.min(b.Bk(a,i,n),k);break;case e.km:t.ad=Math.max(b.Fn(k,i,n),a);t.hm=Math.max(b.Bk(a,
i,n),k);break;case e.Qk:t.ad=a;t.hm=b.Bk(a,i,n);break;case e.Wg:t.ad=b.Fn(k,i,n),t.hm=k}t.ad>a?(t.Pp=Math.tan(0.5*a*f)*i/Math.tan(0.5*t.ad*f)/i,t.sF=q==c.oa?0:q==c.Ka?1-t.Pp:0.5*(1-t.Pp),t.ad=a):(t.sF=0,t.Pp=1);t.hm>k?(t.Qp=Math.tan(0.5*k*f)*n/Math.tan(0.5*t.hm*f)/n,t.vF=o==c.jb?1-t.Qp:o==c.ib?0:0.5*(1-t.Qp),t.hm=k):(t.vF=0,t.Qp=1);return t}}});
define("kF","require,gb,gS,dt,hD,hS,im,kl,jP".split(","),function(a){var b=a("gb"),c=a("gS"),e=a("dt"),d=a("hD"),f=a("hS"),g=a("im"),k=a("kl"),i=a("jP"),n=new THREE.Matrix4,j=Math.PI/180;return{eo:function(){this.set("distance",m);this.set("rotationX",0);this.set("rotationY",0);this.set("rotationZ",0);this.set("yaw",0);this.set("pitch",0);this.set("roll",0);this.set("scale",1);this.set("contentWidth",100);this.set("contentHeight",100);this.set("hfov",m);this.set("vfov",r);this.set("scaleMode",r);
this.set("horizontalAlign",r);this.set("verticalAlign",r);this.set("attachToCamera",z);this.Ri=this.wq();this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.gk=new THREE.Matrix4;this.Oi=new THREE.Matrix4;this.jg=new THREE.Matrix4;this.rP=new THREE.Matrix4;this.P1=new THREE.Quaternion;this.R2=new THREE.Matrix4;this.nA=new THREE.Matrix4;this.yA=new THREE.Matrix4;this.mq=new THREE.Matrix4;this.ff=new THREE.Matrix4},hp:function(a){this.Ol(a);this.IW()},IW:function(){if(this.o("hfov","vfov","contentWidth",
"contentHeight","panoramaPixelsPerDegree","scaleMode","horizontalAlign","verticalAlign")){var a=d.$X(this.get("hfov"),this.get("vfov"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("panoramaPixelsPerDegree"),this.get("horizontalAlign"),this.get("verticalAlign"));c.Tda(this.Ri[1],a.sF,a.vF,a.Pp,a.Qp)}},DH:function(){var a=this.get("meshGroup");return a?e.vh(a)[1]:r},Mi:function(){return[0,1].map(function(a){var c=a==0?this.Y2():this.Kw(),a=e.create(this.Ri[a],c);
f.Cn(a,f.Ij);f.Dn(a,f.Rk);f.ms(a,b.gw);f.uz(a,1);return a}.bind(this))},wq:function(){return[c.Ly(),c.Ly()]},Ol:function(a){var b=z;if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){this.We.makeTranslation(-this.get("composedTranslationX")*0.5*c.Jd,this.get("composedTranslationY")*0.5*c.Jd,this.get("composedTranslationZ")*0.5*c.Jd);b=p}if(this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.ec.makeRotationY(-a.ja*j);this.ec.multiply(n.makeRotationX(-this.get("composedDeltaPitch")*
j));this.ec.multiply(n.makeRotationY(this.get("composedDeltaYaw")*j));this.ec.multiply(n.makeRotationY(a.ja*j));b=p}if(this.o("yaw","pitch")){this.gk.makeRotationY(-this.get("yaw")*j);this.gk.multiply(n.makeRotationX(this.get("pitch")*j));b=p}if(this.o("distance","flipHorizontally","scale","hfov","vfov","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign","composedTranslationX","composedTranslationY","composedTranslationZ")){var f=this.P.get("composedTranslationX")==0&&this.P.get("composedTranslationY")==
0&&this.P.get("composedTranslationZ")==0&&this.get("distance")!==m?c.kv(this.get("distance")):c.sp();this.Oi.makeTranslation(0,0,-f);var t=this.get("contentWidth"),s=this.get("contentHeight"),u=this.get("hfov"),v=this.get("vfov")||g.Bk(u,t,s),w=(this.get("flipHorizontally")?-1:1)*this.get("scale"),x=this.get("scale"),y=this.get("scaleMode"),F=this.get("panoramaPixelsPerDegree"),b=this.get("horizontalAlign")||i.Kc,A=this.get("verticalAlign")||i.rc,t=d.$X(u,v,t,s,y,F,b,A),u=w*c.aY(f,u),v=x*c.bY(f,v);
this.nA.makeScale(u,v,1);w=w*c.aY(f,t.ad);f=x*c.bY(f,t.hm);this.yA.makeScale(w,f,1);this.R2.makeTranslation(b==i.oa?-(u-w)*0.5:b==i.Ka?(u-w)*0.5:0,A==i.jb?(v-f)*0.5:A==i.ib?-(v-f)*0.5:0,0);b=p}if(this.o("rotationX","rotationY","rotationZ","roll")){this.jg.makeRotationZ(this.get("roll")*j);this.jg.multiply(n.makeRotationY(this.get("rotationY")*j));this.jg.multiply(n.makeRotationX(this.get("rotationX")*j));this.jg.multiply(n.makeRotationZ(this.get("rotationZ")*j));b=p}this.set("cameraYaw",a.ja);this.set("cameraPitch",
a.pitch);this.set("cameraRoll",a.ld);if(this.get("attachToCamera")&&this.o("cameraYaw","cameraPitch","cameraRoll")){this.P1.copy(k.eba(a.ja,a.pitch,a.ld));this.rP.makeRotationFromQuaternion(this.P1);b=p}else if(this.o("attachToCamera")){this.rP.identity();b=p}if(b||this.o("meshGroup")){this.ff.copy(this.We);this.ff.multiply(this.ec);this.ff.multiply(this.rP);this.ff.multiply(this.gk);this.ff.multiply(this.Oi);this.ff.multiply(this.jg);this.mq.copy(this.ff);this.mq.multiply(this.nA);this.ff.multiply(this.R2);
this.ff.multiply(this.yA);a=e.vh(this.get("meshGroup"));e.Ul(a[0],this.mq);e.Ul(a[1],this.ff)}}}});define("hf",["require","fd","ed","kF"],function(a){var b=a("fd"),c=a("ed"),a=a("kF");return b.extend(c,a,function(){c.call(this);this.set("tag","Plane")})});
define("cV","require,fd,lc,eL,kq,V".split(","),function(a){function b(){if(!n){n=p;k.Ma(c,r)}}function c(){for(n=z;i.length;){var a=i.shift();a.add();if(a.cwa())break}i.length&&b()}var e=a("fd"),d=a("lc"),f=a("eL"),g=a("kq"),k=a("V"),i=[],n=z,j=e.extend(f,function(a,b){f.call(this);this.texture=a;this.source=b});j.prototype.cwa=function(){return!this.source.s1&&g.qta(this.source)};j.prototype.Taa=function(){if(!this.source.s1){g.Taa(this.source);this.source.s1=p}};j.prototype.add=function(){g.ZM(this.texture,
this.source);this.trigger(d.S)};j.prototype.remove=function(){var a=i.indexOf(this);a>=0&&i.splice(a,1);g.ZM(this.texture,r)};return{add:function(a,c){var d=new j(a,c);i.push(d);b();return d}}});
define("jJ","require,fd,lc,bR,ix,cV,jQ".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bR"),d=a("ix"),f=a("cV");TextureSource=a("jQ");a=b.extend(TextureSource,function(a){TextureSource.call(this);this.Ud=TextureSource.Ifa;this.Md=a;this.pe=this.Vx=this.ee=r});a.prototype.qe=R("pe");a.prototype.yP=function(){this.oQ()};a.prototype.FK=function(){this.ko()};a.prototype.wP=function(){this.Xia()};a.prototype.kD=function(){this.ko();this.OQ()};a.prototype.Mr=function(){this.ko();this.OQ()};a.prototype.dispose=
function(){this.ko();this.OQ();TextureSource.prototype.dispose.call(this)};a.prototype.Lf=function(){this.pe=d.qe(this.Md);this.Bx(p)};a.prototype.er=function(){this.Bx(z)};a.prototype.b6=function(){this.a6()};a.prototype.oQ=function(){if(!this.ee){this.ee=new e;this.ee.AZ([this.Md]);this.ee.bind(c.S,this.Lf,this,p);this.ee.bind(c.ie,this.er,this,p);d.zn(this.ee,this.zB)}};a.prototype.ko=function(){if(this.ee){this.ee.unbind(c.S,this.Lf,this,p);this.ee.unbind(c.ie,this.er,this,p);d.ti(this.ee,this.zB);
this.ee=r}};a.prototype.Xia=function(){this.Vx=f.add(this.rb,this.pe);this.Vx.bind(c.S,this.b6,this,p)};a.prototype.OQ=function(){if(this.Vx){this.Vx.unbind(c.S,this.b6,this,p);this.Vx.remove();this.Vx=r}};return a});
define("gc",["require"],function(){function a(){this.Sq=b++;this.DB="_map_"+this.Sq+"_key";this.hI={};this.Re=[];this.length=0}var b=0;a.prototype.set=a.prototype.add=function(a,b){var d;0>this.Re.indexOf(a)&&this.Re.push(a);if("object"===typeof a&&a!==r){if(d=a[this.DB],!d){d=this.DB;for(var f=[],g=0;8>g;g++)f.push(Math.floor(16*Math.random()).toString(16));d=a[d]=f.join("")}}else d=a;this.hI[d]=b;this.length=this.Re.length};a.prototype.get=function(a){return this.hI["object"===typeof a&&a!==r?a[this.DB]:
a]};a.prototype.Sba=function(a){return 0<=this.Re.indexOf(a)};a.prototype.remove=function(a){var b=this.Re.indexOf(a);0>b||(this.Re.splice(b,1),"object"===typeof a&&a!==r?(b=a[this.DB],delete a[this.DB]):b=a,delete this.hI[b],this.length=this.Re.length)};a.prototype.forEach=function(a){this.Re.slice().forEach(function(b){a(b,this.get(b))}.bind(this))};a.prototype.dispose=function(){for(;this.Re.length;)this.remove(this.Re.pop());this.Re=this.hI=r};return a});
define("hL",["require","fd","eL","gc"],function(a){function b(){this.dv=[]}var c=a("fd"),e=a("eL"),d=a("gc"),a=c.extend(e,function(a){e.call(this);this.Zd=a;this.Vc=[];this.uo=new d;this.XD=[];this.aR=[];this.Ax=this.Ax.bind(this)});a.prototype.yd=function(a){this.Vc.forEach(function(a){a.removeEventListener?a.removeEventListener(this.Zd,this.Ax):a.unbind?a.unbind(this.Zd,this.Ax,this,p):h("invalid instance type")}.bind(this));this.Vc=a.slice();this.Vc.forEach(function(a){a.addEventListener?a.addEventListener(this.Zd,
this.Ax):a.bind?a.bind(this.Zd,this.Ax,this,p):h("invalid instance type");this.uo.Sba(a)||this.uo.set(a,new b)}.bind(this));this.nW()};a.prototype.dispose=function(){this.yd([]);this.Vc=r;this.uo.dispose();this.aR=this.XD=this.uo=r};a.prototype.vi=function(a){this.XD.push(a);this.nW();return this};a.prototype.Ek=function(a){this.aR.push(a);return this};a.prototype.ln=function(a){this.Vc.forEach(function(b){a(b,this.uo.get(b).dv)}.bind(this))};a.prototype.pi=function(a){a=this.uo.get(a).dv;return 0==
a.length?r:a[a.length-1]};a.prototype.Ax=function(a){var b=a.target||a.source;if(b=this.uo&&this.uo.get(b))b.dv.push(a),this.aR.forEach(function(b){b(a,this)}.bind(this)),this.nW()};a.prototype.nW=function(){if(0!=this.Vc.length){for(var a=0;a<this.Vc.length;a++)if(0==this.uo.get(this.Vc[a]).dv.length)return;this.XD.length&&(a=this.XD.slice(),this.XD=[],a.forEach(function(a){a(this)}.bind(this)))}};return a});
define("bF",["require","dT"],function(a){var b=a("dT"),c={get:function(a){return a.ega||(a.ega=this.Qja(a))},Qja:function(a){if(b.ob("CubicPanoramaFrame",a))return a.get("stereoCube")?c.Ss:a.get("cube")?c.Xp:c.yi;if(b.ob("SphericPanoramaFrame",a)){if(a.get("stereoSphere")){var d=a.get("hfov"),f=a.get("vfov"),g=a.get("stereoSphere").get("levels"),a=Math.max.apply(Math,g.map(function(a){return a.get("width")})),g=Math.max.apply(Math,g.map(function(a){return a.get("height")}));return 2==Math.round(g/
f/(a/d))?c.nm:c.Nn}return c.Mn}},Ss:"stereoCube_12_1",Xp:"monoCube_6_1",yi:"monoCube_1_1",Mn:"monoSphere_1_1",nm:"stereoSphere_1_2",Nn:"stereoSphere_2_1"};return c});
define("fm",["require"],function(){function a(a,e,d){this.Md=a;this.k$=e;this.zt=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.zt==b};a.prototype.isEqual=function(a){return this.Md==a.Md&&this.k$==a.k$&&this.zt==a.zt};return a});
define("cw",["require","iO","r","gi"],function(a){function b(a){return e.eea(a.get("width"),a.get("height"),a.get("framerate"))}function c(a,b){if(!b)return p;var c=a.get("url"),d=a.get("type")||"";switch(b){case g:return f.is(c,f.K0);case k:return f.is(c,f.Wea)||(f.is(c,f.kO)||f.is(c,f.I_))&&(0<=(d||"").toLowerCase().indexOf("hev1")||0<=(d||"").toLowerCase().indexOf("h265")||0<=(d||"").toLowerCase().indexOf("heic"))?p:z;case i:return f.is(c,f.kO);case n:return f.is(c,f.Gj);case j:return f.is(c,f.$_);
case l:return f.is(c,f.I_);default:return z}}var e=a("iO"),d=a("r"),f=a("gi"),g="webm",k="h265",i="mp4",n="hls",j="ogv",l="mov",q={bva:function(a){return q.select(a.get("levels"))},$ua:function(a){return q.select(a.get("levels"))},select:function(a){a||(a=[]);var a=a.slice(),f=[];e.hva&&f.push({type:n,En:z});e.pva&&f.push({type:k,En:p});e.kY&&f.push({type:g,En:p});e.iM&&f.push({type:i,En:p});e.qva&&f.push({type:l,En:p});e.jY&&f.push({type:j,En:p});f.push({type:i,En:p});f.push({type:g,En:p});f.push({type:i,
En:z});f.push({type:g,En:z});for(var q=1E3*(d.Wa()?800:5E3),u=0;u<f.length;u++){var v=a;f[u].En&&(v=v.filter(b));v=v.filter(function(a){if(c(a,f[u].type))return p});f[u].type!=n&&v.sort(function(a,b){return Math.abs(q-a.get("bitrate"))-Math.abs(q-b.get("bitrate"))});if(v.length)return v[0]}return r}};return q});
define("kK","require,fd,bY,eL,lc,fr,gb,dT,r,jk,kH,cP,fm,jR,fX,bC,cw".split(","),function(a){function b(a){n.browser()==n.xi&&(a=j.$u(a,"playbacksession="+(new Date).getTime()));return a}var c=a("fd"),e=a("bY"),d=a("eL"),f=a("lc"),g=a("fr"),k=a("gb"),i=a("dT"),n=a("r"),j=a("jk"),l=a("kH"),q=a("cP"),o=a("fm"),t=a("jR"),s=a("fX"),u=a("bC"),v=a("cw"),w=c.extend(d,function(a,b){d.call(this);this.pa=a;this.j=b;this.lb=w.Mg(this.j);this.U=r;this.ZC();this.j.bind(f.D("subtitlesURL"),this.sl,this,p);this.j.bind(f.D("gain"),
this.TB,this,p);this.lb.bind(f.D("subtitlesURL"),this.sl,this,p);this.lb.bind(f.D("url"),this.sl,this,p);this.m=g.K;this.Ne=this.Kb=0;this.rd=z;this.Sl=1;this.BB=z;this.u=this.Ha=r;this.Cw=z;this.JG=m;this.D2=z;this.qm=[]});w.prototype.Ua=R("pa");w.prototype.ic=function(a){if(this.m!=a&&!(a==g.yc&&this.m!=g.R)){this.D2&&a==g.R&&this.m==g.K&&this.PP();this.m=a;if(this.m==g.R){this.Ha&&this.Ha.play(this.pa,this.U,this.Ne);u.EM(this)}else{u.bca()?this.Ha&&this.Ha.stop():u.jz(this);this.m==g.K&&this.nV()}this.fW()}};
w.prototype.Ie=R("m");w.prototype.rj=R("Kb");w.prototype.Kp=function(a){this.Ne=a;if(this.Ha){this.Ha.qv()&&this.y3();this.Ha.play(this.pa,this.U,this.Ne)}};w.prototype.qj=R("Ne");w.prototype.Np=function(a){this.Sl=a;this.Ha&&this.Ha.Np(a)};w.prototype.Id=function(a){this.rd=a;this.Ha&&this.Ha.Id(a)};w.prototype.Kv=function(a){this.BB=a;this.Ha&&this.Ha.Kv(a)};w.prototype.fxa=function(){this.D2=p};w.prototype.My=function(a,b,c){this.Ha&&this.Ha.qv()?this.Ha.My(a,b,c):this.Cw?a.drawImage(this.u,0,
0,b,c):a.fillRect(0,0,b,c)};w.prototype.QL=function(){if(this.Ha&&this.Ha.qv()){var a=this.Ha.qj(),b=this.Ha.bb;if(this.Cw&&Math.abs(a-this.JG)<0.15)return new o(this.U.src,this.JG,this.u);this.PP();return new o(this.U.src,a,b)}return this.Cw?new o(this.U.src,this.Ne,this.u):new o(this.U.src,this.Ne,r)};w.prototype.HM=function(){return!this.rd&&this.j.get("hasAudio")};w.prototype.re=function(){return s.Ei};w.prototype.dY=function(){return k.Ei};w.prototype.GX=function(a){this.Ha=a;setTimeout(function(){this.Ha&&
this.Ha.bind(l.Dj,this.SB,this,p)}.bind(this),0);this.ZC();this.Ha.bind(l.Kd,this.gd,this,p);this.Ha.bind(l.Xf,this.Zi,this,p);this.Ha.bind(f.xf,this.Kf,this,p);this.Ha.Id(this.rd);this.Ha.Np(this.Sl);this.Ha.Kv(this.BB);this.Ha.play(this.pa,this.U,this.Ne)};w.prototype.BY=function(){this.Ha.qv()&&this.y3();this.Ne=this.Ha.qj();this.Ha.unbind(l.Dj,this.SB,this,p);this.Ha.unbind(l.Kd,this.gd,this,p);this.Ha.unbind(l.Xf,this.Zi,this,p);this.Ha.unbind(f.xf,this.Kf,this,p);if(this.m==g.K){this.Ha.stop();
this.Ha.Kp(0)}this.Ha=r};w.prototype.clear=function(){u.jz(this);this.PP();if(this.j){this.j.unbind(f.D("subtitlesURL"),this.sl,this,p);this.j.unbind(f.D("gain"),this.TB,this,p);this.j=r}if(this.lb){this.lb.unbind(f.D("subtitlesURL"),this.sl,this,p);this.lb.unbind(f.D("url"),this.sl,this,p);this.lb=r}};w.prototype.sl=function(){this.uu&&clearTimeout(this.uu);this.uu=setTimeout(function(){this.uu=r;if(this.Ha){this.U.Cj=this.j.get("subtitlesURL")||this.lb.get("subtitlesURL");this.U.src=b(this.lb.get("url"));
this.Ha.play(this.pa,this.U,this.Ne)}}.bind(this),10)};w.prototype.TB=function(){if(this.Ha){this.U.gain=this.j.get("gain");this.Ha.aF(this.U.gain)}};w.prototype.ZC=function(){this.U=new t;this.U.src=b(this.lb.get("url"));this.U.Cj=this.j.get("subtitlesURL")||this.lb.get("subtitlesURL");this.U.xp=this.j.get("hasAudio");this.U.gain=this.j.get("gain")};w.prototype.y3=function(){if(!this.u)this.u=document.createElement("canvas");this.u.width=this.Ha.$c();this.u.height=this.Ha.Nd();this.JG=this.Ha.qj();
var a=this.u.getContext("2d");a.clearRect(0,0,this.u.width,this.u.height);this.Cw=this.Ha.My(a,this.u.width,this.u.height)};w.prototype.PP=function(){if(this.Cw){this.JG=m;this.Cw=z;if(n.browser()!=n.xi){this.u.width=0;this.u.height=0;this.u=r}}};w.prototype.Zi=function(){this.Kb=this.Ha.rj();this.cW()};w.prototype.gd=function(){this.Kb!=this.Ha.rj()&&this.Zi();this.Ne=this.Ha.qj();this.zD()};w.prototype.Kf=function(){this.qm=this.Ha.rE().map(function(a){for(var b=r,c=0;c<this.qm.length&&!b;c++)this.qm[c].cue==
a&&(b=this.qm[c]);b||(b=new q(a));return b}.bind(this));this.trigger(new e(f.xf))};w.prototype.SB=function(){this.ic(g.K);this.dW()};w.prototype.nV=function(){this.Ne=0;this.zD()};w.prototype.zD=function(){this.trigger(new e(w.Kd))};w.prototype.cW=function(){this.trigger(new e(w.Xf))};w.prototype.dW=function(){this.trigger(new e(f.Da))};w.prototype.fW=function(){this.trigger(new e(f.zc))};w.Kd="time update";w.Xf="duration update";w.Mg=function(a){if(i.ob("Video360Resource",a))return v.$ua(a);if(i.ob("VideoResource",
a))return v.bva(a);h("invalid video resource object: "+a)};return w});
define("kd","require,dT,ja,cS,jC,bF,hD,iO,r,gi,je,hW,kK".split(","),function(a){function b(a,b,c){return a.split(b).join(c).split(encodeURI(b)).join(c)}function c(){var a=y.zp()&&URL.Lg("recent_ipad_use_max_res",z);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()||(y.se()?d=2048:y.zp()?d=1280:y.Wa()&&(d=1024));switch(a){case w.Xp:return[6*d,d];
case w.yi:return[d,d];case w.Ss:return[12*d,d]}switch(a){case w.nm:b=b*2;break;case w.Nn: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.Xp:if(y.se()||y.Wa())return[18432,1536];break;case w.nm:if(y.se())return[5352,5352];if(y.Wa())return[6086,6086];break;case w.Mn:if(y.se())return[7168,3584];if(y.Wa()&&y.zp())return[8192,4096]}return[m,m]}function g(a,b){var c=f(b);return a.filter(function(a){return t.ob("TiledImageResourceLevel",a)?p:c[0]!==m&&a.get("width")>
c[0]||c[1]!==m&&a.get("height")>c[1]?z:p})}function k(){return y.zp()?[s.u0]:y.wY()?[s.w0,s.BO]:y.se()?[s.BO]:y.Wa()?[s.v0]:[]}function i(a){a.sort(function(a,b){return a.get("width")-b.get("width")});return a}function n(a,b){function c(a){return Math.abs(a.get("width")*a.get("height")-b[0]*b[1])}a.sort(function(a,b){return c(a)-c(b)});return a.length&&a[0]||r}function j(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)<0});return a.length?a:c!==m?c:[]}function l(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)>=
0});return a.length?a:c!==m?c:[]}function q(a,b){switch(b){case w.Ss:return a.get("stereoCube").get("levels");case w.Xp:return a.get("cube").get("levels");case w.yi:return a.get("front").get("levels");case w.Mn:return a.get("sphere").get("levels");case w.nm:case w.Nn:return a.get("stereoSphere").get("levels")}}function o(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];b.indexOf(d)<0&&b.push(d)}return b}var t=a("dT"),s=a("ja"),u=a("cS"),v=a("jC"),w=a("bF"),x=a("hD");a("iO");var y=a("r");a("gi");var F=
a("je"),A=a("hW"),M=a("kK"),E={vba:function(a){a=a.get("frames");if(a.length==0)return 1;var b=a[0],a=w.get(b)==w.Mn&&b.yh()?[M.Mg(b.get("sphere"))]:(w.get(b)==w.nm||w.get(b)==w.Nn)&&b.yh()?[M.Mg(b.get("stereoSphere"))]:E.WX(b,z);return Math.max.apply(Math,a.map(function(a){return E.Oua(b,a)}))},Oua:function(a,b){var b=E.RX(a,b,v.FRONT),c=b.get("width"),d=a.Vy().get("hfov",360);switch(w.get(a)){case w.Ss:return c/1080;case w.Xp:return c/540;case w.yi:return c/90;case w.Mn:return c/d;case w.nm:return c/
d;case w.Nn:return c/(2*d)}},mY:function(a,b){var c=E.Ak(a,b);return c.length<=6&&c.every(function(a){return A.HZ(a)})},Ak:function(a,b,c){c||(c=z);if(t.ob("Panorama",a)){c=a.get("flipImageHorizontally",z);return o([].concat(Array.prototype.concat.apply([],a.get("frames").map(function(a){return E.Ak(a,b,c)})),Array.prototype.concat.apply([],a.get("overlays").map(function(a){return E.Ak(a,b,c)}))))}if(t.ob("PanoramaFrame",a)){var d=Array.prototype.concat.apply([],a.get("overlays").map(function(a){return E.Ak(a,
b,c)}));if(w.get(a)==w.Mn&&a.yh())return E.Ak(M.Mg(a.get("sphere")),b).concat(d);if((w.get(a)==w.nm||w.get(a)==w.Nn)&&a.yh())return E.Ak(M.Mg(a.get("stereoSphere")),b).concat(d);var e=E.WX(a,b)[0],c=a.get("flipImageHorizontally",z);if(w.get(a)==w.yi){var f=[v.FRONT,v.oa,v.BACK,v.Ka,v.jb,v.ib];return Array.prototype.concat.apply([],f.map(function(d){return(d=E.RX(a,e,d))?E.Ak(d,b,c):[]})).concat(d)}return E.Ak(e,b,c).concat(d)}if(t.ob("Video360ResourceLevel",a))return(d=a.get("posterURL"))?[d]:[];
if(t.ob("HotspotPanoramaOverlay",a))return a.get("projected")?Array.prototype.concat.apply([],a.get("items").map(function(a){return E.Ak(a,b,c)})):[];if(t.ob("FlatHotspotPanoramaOverlayImage",a)||t.ob("HotspotPanoramaOverlayImage",a)){d=a.get("image").get("levels");e=d[0];E.Ak(e,b,c);return Array.prototype.concat.apply([],d.map(function(a){return E.Ak(a,b,c)}))}if(t.ob("TiledImageResourceLevel",a)){var i=[],d=Math.round(a.get("width")/a.get("height")),j;if(d==1)j=w.yi;else if(d==12)j=w.oza;else if(d==
6)j=w.Xp;else return[];var g=d==12?[u.Ka,u.oa]:[u.Gn],f=[v.Ka,v.oa,v.jb,v.ib,v.FRONT,v.BACK],k=a.get("colCount",d)/d,n=a.get("rowCount",1);g.forEach(function(b){f.forEach(function(d){for(var e=0;e<n;e++)for(var f=0;f<k;f++)i.push(E.Fba(a,j,b,d,c,n,e,f))})});return i}return t.ob("ImageResourceLevel",a)?[a.get("url")]:[]},WX:function(a,b){var c=w.get(a),d=this.uka(a);if(d){if(b&&!this.i5(d)){c=this.E4(a);if(c!=d)return[c,d]}return[d]}d=l(q(a,c),s.CO);if(d.length>0)return i(d);d=this.Xka(a);if(b&&!this.i5(d)){c=
this.E4(a);if(c!=d)return[c,d]}return[d]},Mva:function(a){return a.get("tags").indexOf(s.CO)>=0},RX:function(a,b,c){if(w.get(a)!=w.yi)return b;var d;switch(c){case v.FRONT:d=a.get("front");break;case v.oa:d=a.get("left");break;case v.BACK:d=a.get("back");break;case v.Ka:d=a.get("right");break;case v.jb:d=a.get("top");break;case v.ib:d=a.get("bottom")}a=d&&d.get("levels")||[];if(a.length==0)return r;a=a.filter(function(a){return a.get("width")==b.get("width")&&a.get("height")==b.get("height")&&a.get("grayscale",
z)==b.get("grayscale",z)&&a.get("colCount",1)==b.get("colCount",1)&&a.get("rowCount",1)==b.get("rowCount",1)});return a[0]},Fba:function(a,c,d,e,f,i,j,g){var a=a.get("url"),k=0;a.indexOf("{eye}")>=0||a.indexOf(encodeURI("{eye}"))>=0?a=b(a,"{eye}",I[d]):k=k+6*(f?G:B)[d];a.indexOf("{face}")>=0||a.indexOf(encodeURI("{face}"))>=0?a=b(a,"{face}",H[e]):c!=w.yi&&(k=k+J[e]);a=b(a,"{row}",j);return a=b(a,"{column}",g+k*i)},Qua:function(a,b){return E.WA(E.It(a.get("image")),90,90,F.Me,b)},qua:function(a,b){return E.WA(E.It(a.get("image")),
a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},Dua:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},ava:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},lba:function(a,b){return E.WA(E.It(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},It:function(a){return a&&a.get("levels")||[]},WA:function(a,b,d,e,f){if(!a||!a.length)return r;for(var a=j(a,s.om,a),g=k(),o=0;o<g.length;o++)a=
l(a,g[o],a);g=1E4;c()||(y.se()?g=2048:y.zp()?g=1280:y.Wa()&&(g=1024));o=i(a)[a.length-1];b=x.$X(b,d,o.get("width"),o.get("height"),e,f);return n(a,[b.ad*g/90,b.hm*g/90])},yua:function(a){var b=E.It(a.get("image"));if(!b||!b.length)return r;for(var b=j(b,s.om,b),c=k(),d=0;d<c.length;d++)b=l(b,c[d],b);c=i(b)[b.length-1];a=x.SX(a.get("width"),a.get("height"),c.get("width"),c.get("height"),a.get("scaleMode"));return n(b,[a.width,a.height])},Tua:function(a){var b=E.It(a.get("image"));if(!b||!b.length)return r;
for(var b=j(b,s.om,b),d=k(),e=0;e<d.length;e++)b=l(b,d[e],b);d=1E4;c()||(y.se()?d=2048:y.zp()?d=1280:y.Wa()&&(d=1024));var f=e=20;if((a=a.get("vertices"))&&a.length==4){e=a[0].get("yaw");f=a[1].get("yaw");f<e&&(f=f+360);e=f-e;f=a[0].get("pitch");a=a[3].get("pitch");f=f-a}return n(b,[e*d/90,f*d/90])},E4:function(a){for(var b=w.get(a),a=q(a,b),a=g(a,b),a=l(a,s.om,a),b=k(),c=0;c<b.length;c++)a=l(a,b[c],a);return n(a,[0,0])},Xka:function(a){for(var b=w.get(a),a=q(a,b),a=g(a,b),a=j(a,s.om,a),c=k(),f=0;f<
c.length;f++)a=l(a,c[f],a);b=d(b,e(a));return n(a,b)},uka:function(a){var b=k();if(b.length==0)return r;for(var c=w.get(a),f=q(a,c),f=g(f,c),f=j(f,s.om,f),a=[],i=0;i<b.length&&a.length==0;i++)a=l(f,b[i]);if(a.length==0)return r;b=d(c,e(a));return n(a,b)},i5:function(a){return a.get("tags").indexOf(s.CO)>=0?z:y.Hc()==y.ws?p:A.HZ(a.get("url"))}},J=function(){var a={};a[v.Ka]=0;a[v.oa]=1;a[v.jb]=2;a[v.ib]=3;a[v.FRONT]=4;a[v.BACK]=5;return a}(),B=function(){var a={};a[u.Ka]=0;a[u.oa]=1;a[u.Gn]=0;return a}(),
G=function(){var a={};a[u.Ka]=1;a[u.oa]=0;a[u.Gn]=0;return a}(),H=function(){var a={};a[v.Ka]="r";a[v.oa]="l";a[v.jb]="u";a[v.ib]="d";a[v.FRONT]="f";a[v.BACK]="b";return a}(),I=function(){var a={};a[u.oa]="l";a[u.Ka]="r";a[u.Gn]="b";return a}();return E});
define("dB",["require"],function(){function a(a){this.pe=a;"CANVAS"==a.tagName?this.u=a:(this.u=document.createElement("canvas"),this.u.width=a.width,this.u.height=a.height);this.ha=this.u.getContext("2d");this.ha.globalCompositeOperation="copy";this.u!=a&&this.ha.drawImage(a,0,0,a.width,a.height)}function b(a,b,c){try{if(a instanceof CanvasRenderingContext2D)return a.getImageData(b,c,1,1).data;if(a.tagName&&"CANVAS"==a.tagName)return a.getContext("2d").getImageData(b,c,1,1).data;e.drawImage(a,b,
c,1,1,0,0,1,1);return e.getImageData(0,0,1,1).data}catch(d){return[0,0,0,0]}}a.prototype.transparent=function(b,c){return a.transparent(this.ha,b,c)};a.prototype.Op=function(b,c){return a.Op(this.ha,b,c)};a.prototype.info=function(b,c){return a.info(this.ha,b,c)};a.prototype.dispose=function(){this.u!=this.pe&&(this.u.width=this.u.height=0);this.pe=this.u=this.ha=r};a.transparent=function(b,c,d){return!a.Op(b,c,d)};a.Op=function(a,c,d){return a.tagName&&"VIDEO"==a.tagName?p:0<b(a,c,d)[3]};a.info=
function(a,c,e){a=b(a,c,e);c=a[3];return{Op: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("iL","require,fd,ia,lc,dT,hf,jJ,hL,kd,dB,iC".split(","),function(a){function b(a,b,d,e,f,i){for(a=(a-b)/i;d+180<e;)e=e-360;for(;d-180>e;)e=e+360;d=(d-e)/i;return d=a<-0.1||a>0.1?c(f,d,Math.abs(1/(1500*a))):c(f,d,0.08)}function c(a,b,c){a=(b-a)*(1-c);Math.abs(a)<1.0E-5&&(a=0);return b-a}var e=a("fd"),d=a("ia"),f=a("lc"),g=a("dT"),k=a("hf"),i=a("jJ"),n=a("hL"),j=a("kd"),l=a("dB"),q=a("iC"),a=e.extend(k,function(a){k.call(this);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this);this.Ud=
g.ob("CeilingCapPanoramaOverlay",this.j)?"ceiling":"tripod";this.set("tag","Cap");this.set("pitch",this.Ud=="tripod"?-90:90);this.Nf=z;this.tu=this.qU=this.FC=m;this.roa=this.Ud=="tripod"?1:-1;this.tg=this.mh=this.Be=r});a.prototype.Qa=function(){k.prototype.Qa.call(this);this.Be=(new n(f.S)).vi(this.ol.bind(this));this.mh=(new n(f.sc)).Ek(this.gu.bind(this));d.Tb(this.j,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Sd,p)};a.prototype.Ya=function(){this.tg&&this.tg.dispose();
this.tg=r;this.Be.dispose();this.mh.dispose();d.ac(this.j,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Sd);k.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("angle",this.j.get("angle"));this.set("distance",this.j.get("distance"));this.set("hfov",this.j.get("hfov"));var a=j.qua(this.j,this.get("panoramaPixelsPerDegree"));this.set("imageURL",a&&a.get("url"));this.set("imageWidth",a&&a.get("width"));this.set("imageHeight",a&&a.get("height"));this.set("inertia",this.j.get("inertia"));
this.set("rotate",this.j.get("rotate"))};a.prototype.Mi=function(){var a=k.prototype.Mi.call(this);this.Be.yd(a);this.mh.yd(a);return a};a.prototype.J=function(a){this.tW();this.wy(a);k.prototype.J.call(this,a)};a.prototype.tW=function(){if(this.o("imageURL")&&this.get("imageURL")){this.set("textureSource",new i(this.get("imageURL")));this.set("contentWidth",this.get("imageWidth"));this.set("contentHeight",this.get("imageHeight"))}};a.prototype.ol=function(){this.tg&&this.tg.dispose();this.tg=new l(this.get("textureSource").qe());
this.trigger(f.Db);this.trigger(f.S)};a.prototype.gu=function(a,b){var c=0;b.ln(function(a){(a=b.pi(a))&&(c=c+a.zh)});this.trigger(new q(f.sc,c/b.Vc.length))};a.prototype.wy=function(a){this.set("rendererYaw",a.ja);if(this.o("angle","inertia","rotate")||(this.get("rotate")||this.get("inertia"))&&this.o("rendererYaw")){var c=this.get("angle"),d=this.get("rotate"),e=this.get("inertia"),f=this.roa*a.ja;d&&(c=c+f);var i=0,j=c-f;if(this.FC!==m){if(e)if(d){i=b(f,this.tu,c,this.FC,this.qU,a.wd);c=this.FC+
i*a.wd}else{i=b(f,this.tu,j,this.a8,this.qU,a.wd);j=this.a8+i*a.wd;c=j+f}this.FC!=c&&this.Ga()}this.a8=j;this.FC=c;this.qU=i;this.tu=f;this.set("rotationZ",-c)}};a.prototype.Aj=function(a){if(a.Zd==f.Ai){var b=!a.th()&&this.Ml(a);if(b){a.Qr(this.j);this.j.get("useHandCursor")&&a.Rr(this.j);a.ki(this.get("distance"))}if(this.Nf!=b){this.Nf=b;this.j.trigger(this.Nf?f.tc:f.Ib);a.fs()&&this.j.trigger(this.Nf?f.Ch:f.zf)}}else if(a.Zd==f.zi&&!a.th()&&this.Ml(a)){this.j.sE(f.T,p).length>1&&a.Jp(this.j);
a.ki(this.get("distance"));this.j.trigger(f.T)}};a.prototype.Ml=function(a){return this.po(a.Cl).some(function(a){return this.tg&&this.tg.Op(a.x,a.y)}.bind(this))};return a});
define("hE",["require","fd","fr","gQ"],function(a){var b=a("fd"),c=a("fr"),e=a("gQ"),a=b.extend(e,function(){e.call(this);this.We=new THREE.Matrix4;this.iaa=z;this.Jf=new THREE.Matrix4;this.le=r;this.di=new THREE.Matrix4;this.LC=this.yC=0;this.dA=0.75;this.LA=0.5;this.Cm=4;this.jT=0;this.Dm=-2;this.kl=3;this.wI=0;this.Ct=7;this.XT=this.pr=1;this.LB=0.15;this.Dt=this.mu=0;this.ZH=this.EJ=c.K;this.DK=this.yK=1E3}),d=Math.PI/180,f=new THREE.Matrix4;a.prototype.Ji=C();a.prototype.Qa=function(){e.prototype.Qa.call(this);
this.trigger(EventName.Db);this.trigger(EventName.S)};a.prototype.Ya=function(){this.RP()};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.Ga()};a.prototype.UJ=function(){this.le&&(this.RP(),this.b3())};a.prototype.$G=C();a.prototype.b3=function(){this.bpa();this.le=new THREE.Group;for(var a=this.ZH==c.R,b=this.mu,d=this.Dt;0<d+b;){var e=Math.random()*(d+b)<=d;e?d--:b--;var f=this.$G();f.matrixAutoUpdate=z;f.overdraw=z;f.material.opacity=0;f.userData={cua:e,kz:new THREE.Matrix4,
Caa:new THREE.Matrix4,$Y:new THREE.Matrix4,y:m,yea:m,NY:a};this.le.add(f);a&&this.RU(f,this.Dm,this.kl);this.apa(f)}this.yC=a?this.le.children.length:0;this.$W.add(this.le);this.O1()};a.prototype.RP=function(){if(this.le){this.le.parent&&this.le.parent.remove(this.le);for(var a=0,b=this.le&&this.le.children.length;a<b;a++)this.le.children[a].material.dispose();this.le=r;this.LC=0}};a.prototype.bpa=function(){this.di=(new THREE.Matrix4).makeScale(this.pr,this.pr,this.pr)};a.prototype.RU=function(a,
b,c){b+=Math.random()*(c-b);if(a.userData.cua){var c=this.Ct,e=360*Math.random()*d;a.userData.kz.makeTranslation(c*Math.cos(e),b,c*Math.sin(e))}else c=2*Math.random()*Math.PI,e=this.jT+(this.Cm-this.jT)*Math.sqrt(Math.random()),a.userData.kz.makeTranslation(e*Math.cos(c),b,e*Math.sin(c));a.userData.kz.multiply(this.di);a.userData.y=b};a.prototype.apa=function(a){var b=this.LB+Math.random()*(this.Yt-this.LB),c;do c=Math.random()*this.wI;while(80<c&&100>c);var e=360*Math.random(),j=Math.sin(e*d)*Math.sin(c*
d)*b,l=-Math.cos(c*d)*b,b=Math.cos(e*d)*Math.sin(c*d)*b;a.userData.yea=l*this.pr;a.userData.Caa.makeTranslation(j,l,b);a.userData.$Y.makeRotationY(e*d);a.userData.$Y.multiply(f.makeRotationX(-c*d))};a.prototype.J=function(a){e.prototype.J.call(this,a);this.$W=a.te;this.$W!=(this.le&&this.le.parent)?(this.RP(),this.$W&&this.b3()):this.o("index")&&this.O1();this.psa(a)};a.prototype.psa=function(a){if(this.le){this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.iaa=0!=
this.get("composedTranslationX")||0!=this.get("composedTranslationY")||0!=this.get("composedTranslationZ"),this.We.makeTranslation(-this.get("composedTranslationX")*this.Cm,this.get("composedTranslationY")*this.Cm,this.get("composedTranslationZ")*this.Cm));var b=this.EJ==c.R,d=this.le.children,e=d.length,f=b?Math.round(e*a.wd/this.yK):0;if(0<this.yC+f){this.LC=b?0:Math.min(this.yC,this.LC+Math.round(e*a.wd/this.DK));a=this.get("composedAlpha");for(b=0;b<e;b++){var l=d[b];if(!l.userData.NY)if(0<f)f--,
l.userData.NY=p,this.yC++,this.RU(l,this.kl,this.kl+(this.kl-this.Dm));else continue;l.userData.kz.multiply(l.userData.Caa);l.userData.y+=l.userData.yea;if(l.userData.y<this.Dm||l.userData.y>this.kl){if(0<this.LC){this.LC--;l.userData.NY=z;this.yC--;l.material.opacity=0;continue}var q=l.userData.y<this.Dm?this.kl:this.Dm;this.RU(l,q,q)}q=a;l.userData.y<this.Dm+this.LA?q*=(l.userData.y-this.Dm)/this.LA:l.userData.y>this.kl-this.dA&&(q*=(this.kl-l.userData.y)/this.dA);l.material.opacity=q*this.XT;this.iaa?
(l.matrix.copy(this.We),l.matrix.multiply(l.userData.kz)):l.matrix.copy(l.userData.kz);l.matrix.multiply(l.userData.$Y);l.matrixWorldNeedsUpdate=p}this.Ga()}}};a.prototype.O1=function(){if(this.le)for(var a=this.get("index"),b=0;b<this.le.children.length;b++)this.le.children[b].renderOrder=a};return a});
define("kr",["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={Xwa:function(c,d,f){if(c&&0==c.indexOf("#")){var g=a(c),k=m,i=256;d.forEach(function(c){if(c&&0==c.indexOf("#")){var d=b(g,a(c));d<i&&(k=c,i=d)}});if(k&&i<=f)return k}return c},PX:function(c,d){return b(a(c),a(d))}};c.SE=a;return c});
define("gZ","require,fd,ia,fr,hE,kr,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("fr"),d=a("hE"),f=a("kr"),g=a("r"),a=b.extend(d,function(a){d.call(this);this.j=a;this.fh=this.fh.bind(this);this.gh=this.gh.bind(this);this.Ji()});a.prototype.Qa=function(){d.prototype.Qa.call(this);this.j.set("state",this.j.get("startState"));c.Tb(this.j,["color","intensity","speed","opacity","distance","maxDistance","farPlaneDistance","minSpeed","maxSpeed","particleCount","farPlaneParticleCount","particleScale"],
this.fh,p);c.Tb(this.j,["state"],this.gh,p)};a.prototype.Ya=function(){c.ac(this.j,["color","intensity","speed","opacity","distance","maxDistance","farPlaneDistance","minSpeed","maxSpeed","particleCount","farPlaneParticleCount","particleScale"],this.fh);c.ac(this.j,["state"],this.gh);this.j.set("state",e.K);d.prototype.Ya.call(this)};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.EJ=this.j.get("state");this.Ga()};a.prototype.Ji=function(){d.prototype.Ji.call(this);var a;
a=g.Wa()||g.browser()==g.vs?2500:g.se()?4E3:5E3;this.LB=this.Yt=this.j.get("speed",0.2)*0.2;this.Cm=this.j.get("distance",0.5)*14.5+0.5;this.XT=this.j.get("opacity",0.1)*1;this.pr=0.036;this.mu=this.j.get("intensity",0.1)*a;this.Pb=f.SE(this.j.get("color","#ffffff"));this.Dt=0;this.Ct=15;this.ZH=this.j.get("initialState");this.yK=this.j.get("startDuration");this.DK=this.j.get("stopDuration");this.dA=0.75;this.LA=0.5;this.Dm=-2;this.kl=4;this.wI=180;this.z3()};a.prototype.$G=function(){return new THREE.Sprite(this.CA())};
a.prototype.CA=function(){var a=new THREE.SpriteMaterial;a.map=this.DA();a.side=THREE.DoubleSide;a.transparent=p;a.depthTest=z;a.needsUpdate=p;return a};a.prototype.DA=function(){if(this.rb)return this.rb;var a=document.createElement("canvas");a.width=a.height=k;this.rb=new THREE.Texture;this.rb.image=a;this.rb.needsUpdate=p;this.z3();return this.rb};a.prototype.z3=function(){if(this.rb){var a=this.rb.image,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("+this.Pb[0]+", "+this.Pb[1]+", "+this.Pb[2]+", 1)");c.addColorStop(1,"rgba("+this.Pb[0]+", "+this.Pb[1]+", "+this.Pb[2]+", 0)");b.fillStyle=c;b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height);this.rb.needsUpdate=p}};var k=32;return a});
define("kZ","require,fd,gb,gS,dt,hD,hS,jP".split(","),function(a){a("fd");var b=a("gb"),c=a("gS"),e=a("dt"),d=a("hD"),f=a("hS"),g=a("jP"),k=new THREE.Matrix4,i=Math.PI/180;return{eo:function(){this.set("distance",m);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",r);this.set("horizontalAlign",
r);this.set("verticalAlign",r);this.Ri=this.wq();this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.gk=new THREE.Matrix4;this.Oi=new THREE.Matrix4;this.Bw=new THREE.Matrix4;this.cy=new THREE.Matrix4;this.V1=new THREE.Matrix4;this.jg=new THREE.Matrix4;this.V2=new THREE.Matrix4;this.nA=new THREE.Matrix4;this.yA=new THREE.Matrix4;this.mq=new THREE.Matrix4;this.ff=new THREE.Matrix4;this.Dw=new THREE.Matrix4;this.jt=new THREE.Vector3},hp:function(a){this.Ol(a);this.IW()},IW:function(){if(this.o("width",
"height","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign")){var a=d.SX(this.get("width"),this.get("height"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"));c.Tda(this.Ri[1],a.sF,a.vF,a.Pp,a.Qp)}},DH:function(){var a=this.get("meshGroup");return a?e.vh(a)[1]:r},Mi:function(){return[0,1].map(function(a){var c=a==0?this.Y2():this.Kw(),a=e.create(this.Ri[a],c);f.Cn(a,f.Ij);f.Dn(a,f.Rk);f.ms(a,b.gw);
f.uz(a,1);return a}.bind(this))},wq:function(){return[c.Ly(),c.Ly()]},Ol:function(a){var b=z;if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){this.We.makeTranslation(-this.get("composedTranslationX")*0.5*c.Jd,this.get("composedTranslationY")*0.5*c.Jd,this.get("composedTranslationZ")*0.5*c.Jd);b=p}if(this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.ec.makeRotationY(-a.ja*i);this.ec.multiply(k.makeRotationX(-this.get("composedDeltaPitch")*i));
this.ec.multiply(k.makeRotationY(this.get("composedDeltaYaw")*i));this.ec.multiply(k.makeRotationY(a.ja*i));b=p}if(this.o("yaw","pitch")){this.gk.makeRotationY(-this.get("yaw")*i);this.gk.multiply(k.makeRotationX(this.get("pitch")*i));b=p}this.o("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&this.set("z",this.get("composedTranslationX")==0&&this.get("composedTranslationY")==0&&this.get("composedTranslationZ")==0&&this.get("distance")!==m?c.kv(this.get("distance")):
c.sp());if(this.o("z")){this.Oi.makeTranslation(0,0,-this.get("z"));b=p}if(b){this.Dw.copy(this.We);this.Dw.multiply(this.ec);this.Dw.multiply(this.gk);this.Dw.multiply(this.Oi)}var f=z;this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.ld);this.set("rendererCameraFOV",a.uf);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);a.uf&&this.o("z","rendererCameraFOV")&&this.set("rendererHeightZ",Math.tan(a.uf*i*0.5)*this.get("z")*2);if(a.uf&&(b||
this.o("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR"))){if(a.Ob){this.Bw.copy(this.Dw);this.cy.identity()}else{f=a.Ic;this.Bw.copy(f.matrixWorld);this.jt.setFromMatrixPosition(f.matrixWorld);this.jt.applyMatrix4(this.Dw);this.jt.applyMatrix4(f.matrixWorldInverse);var q=-10,o=-10;if(this.jt.z<0){this.jt.applyMatrix4(f.projectionMatrix);q=this.jt.x*0.5;o=this.jt.y*0.5}var t=this.get("rendererHeightZ");this.cy.makeTranslation(q*
t*f.aspect,o*t,0)}f=p}if(this.o("roll")){this.jg.makeRotationZ(this.get("roll")*i);f=p}if(a.uf&&(b||this.o("rendererHeight","inVR","rendererHeightZ","width","height","contentWidth","contentHeight","scale","scaleMode","horizontalAlign","verticalAlign","flipHorizontally","offsetX","offsetY"))){var b=a.Ob?1024:a.height,f=this.get("scale")*this.get("rendererHeightZ")/b*(a.Ob?2:1),s=this.get("width"),t=this.get("height"),u=this.get("offsetX"),v=this.get("offsetY"),o=this.get("contentWidth"),w=this.get("contentHeight"),
q=(this.get("flipHorizontally")?-1:1)*f,x=this.get("scaleMode"),b=this.get("horizontalAlign")||g.Kc,a=this.get("verticalAlign")||g.rc,x=d.SX(s,t,o,w,x,b,a),w=q*s,o=f*t;this.nA.makeScale(w,o,1);s=q*(s*0.5-u);t=f*(v-t*0.5);this.V1.makeTranslation(s,t,0);q=q*x.width;f=f*x.height;this.yA.makeScale(q,f,1);b=b==g.oa?-(w-q)*0.5:b==g.Ka?(w-q)*0.5:0;a=a==g.jb?(o-f)*0.5:a==g.ib?-(o-f)*0.5:0;this.V2.makeTranslation(b+s,a+t,0);f=p}if(f){this.ff.copy(this.Bw);this.ff.multiply(this.Oi);this.ff.multiply(this.cy);
this.ff.multiply(this.jg);this.mq.copy(this.ff);this.mq.multiply(this.V1);this.mq.multiply(this.nA);this.ff.multiply(this.V2);this.ff.multiply(this.yA);a=e.vh(this.get("meshGroup"));e.Ul(a[0],this.mq);e.Ul(a[1],this.ff)}}}});
define("eH",["require","lc","fr"],function(a){function b(a,b){this.Wk=a;this.$d=b;this.Gc=z;this.iga();this.pga()}var c=a("lc"),e=a("fr");b.prototype.clear=function(){this.Hoa();this.Ooa();this.Wk.set("state",e.K);this.$d=this.Wk=r};b.prototype.Ze=function(a){this.Gc!=a&&(this.Gc=a,this.Mu())};b.prototype.z6=function(){this.$d.ic(this.Wk.get("state"))};b.prototype.y6=function(){this.Mu()};b.prototype.w6=function(){this.Wk.trigger(c.Rs)};b.prototype.v6=function(){this.Wk.trigger(c.Da)};b.prototype.x6=
function(){this.Wk.set("state",this.$d.Ie())};b.prototype.Mu=function(){this.Wk.get("autoplay")&&this.$d.ic(this.Gc?e.R:e.K)};b.prototype.iga=function(){this.Wk.bind(c.D("state"),this.z6,this,p);this.Wk.bind(c.D("autoplay"),this.y6,this,p)};b.prototype.Hoa=function(){this.Wk.unbind(c.D("state"),this.z6,this,p);this.Wk.unbind(c.D("autoplay"),this.y6,this,p)};b.prototype.pga=function(){this.$d.bind(c.Rs,this.w6,this,p);this.$d.bind(c.Da,this.v6,this,p);this.$d.bind(c.zc,this.x6,this,p)};b.prototype.Ooa=
function(){this.$d.unbind(c.Rs,this.w6,this,p);this.$d.unbind(c.Da,this.v6,this,p);this.$d.unbind(c.zc,this.x6,this,p)};return b});
define("U","require,fd,lc,fr,bY,eL,V".split(","),function(a){function b(a,b,c,d){this.lY=a;this.src=a.src;this.IM=b;this.kE=c;this.LL=d;this.gv=this.lY.width/this.kE;this.fv=this.lY.height/this.IM}var c=a("fd"),e=a("lc"),d=a("fr");a("bY");var f=a("eL"),g=a("V"),a=c.extend(f,function(a,c,i,g,n,s,u){f.call(this);this.Qe=new b(a,c,i,n);this.A8=s;this.ke=g;this.K3=u;this.OK=this.ke*this.Qe.LL;this.u=document.createElement("canvas");this.u.width=this.Qe.gv;this.u.height=this.Qe.fv;this.ha=this.u.getContext("2d");
this.ha.globalCompositeOperation="copy";this.m=d.K;this.PJ=this.um=0;this.rQ=m;this.jf=k.qg(this.Qe);this.jf.bind(e.aa,this.ah,this,p);this.ah()});a.prototype.ic=function(a){if(this.m!=a){if(a==d.yc){if(this.m!=d.R)return}else if(a==d.R){if(this.m==d.K){this.um=this.PJ=0;this.ah()}}else if(a==d.K&&(this.um!=0||this.PJ==0)){this.um=this.K3?0:this.OK-0.1;this.ah()}this.m=a;g.Ma(this.Dg,this);this.trigger(e.zc)}};a.prototype.Ie=R("m");a.prototype.Dg=function(a){if(this.m==d.R){this.um=Math.min(this.um+
a,this.jf.jf.length*this.ke);if(this.um>=this.OK){this.PJ++;if(this.A8&&this.PJ==this.A8){this.ic(d.K);this.um=this.K3?0:this.OK-0.1;this.trigger(e.Da)}else{this.um=this.um%this.OK;this.trigger(e.Rs)}}this.ah();this.m==d.R&&g.Ma(this.Dg,this)}};a.prototype.clear=function(){this.ic(d.K);this.u.width=this.u.height=0;this.u=r;k.Ewa(this.Qe);this.Qe=r};a.prototype.og=R("u");a.prototype.ah=function(){var a=Math.floor(this.um/this.ke);if(this.rQ!=a&&a<this.jf.jf.length){this.rQ=a;this.ha.drawImage(this.jf.get(this.rQ),
0,0);this.trigger(e.aa)}};b.prototype.isEqual=function(a){return this.src==a.src&&this.IM==a.IM&&(this.kE=a.kE)&&(this.gv=a.gv)&&(this.fv=a.fv)&&(this.LL=a.LL)};var k={Ag:[],$fa:2E3,qg:function(a){a=this.Ef(a);a.Av++;this.V9(a);return a.frames},Ewa:function(a){a=this.Ef(a);a.Av--;a.Av==0&&this.Jqa(a)},Ef:function(a){for(var b=0;b<this.Ag.length;b++)if(this.Ag[b].iua.isEqual(a))return this.Ag[b];b={};b.iua=a;b.frames=new i(a);b.Av=0;this.Ag.push(b);return b},Jqa:function(a){this.V9(a);a.CX=setTimeout(function(){k.gja(a)},
k.$fa)},V9:function(a){if(a.CX){clearTimeout(a.CX);a.CX=r}},gja:function(a){this.Ag.splice(this.Ag.indexOf(a),1);a.frames.clear()}},i=c.extend(f,function(a){f.call(this);this.Qe=a;this.jf=[];n.add(this)});i.prototype.clear=function(){n.remove(this);this.jf.forEach(function(a){a.width=0;a.height=0});this.jf=r};i.prototype.get=function(a){return this.jf[a]};i.prototype.bua=function(){var a=this.jf.length%this.Qe.kE,b=Math.floor(this.jf.length/this.Qe.kE)%this.Qe.IM,c=document.createElement("canvas");
c.width=this.Qe.gv;c.height=this.Qe.fv;var d=c.getContext("2d");d.globalCompositeOperation="copy";d.drawImage(this.Qe.lY,a*this.Qe.gv,b*this.Qe.fv,this.Qe.gv,this.Qe.fv,0,0,this.Qe.gv,this.Qe.fv);i.Tja(c);this.jf.push(c);this.trigger(e.aa)};i.Tja=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={Ag:[],WV:r,add:function(a){this.Ag.push(a);this.N8()},remove:function(a){this.Ag=this.Ag.filter(function(b){return b!=
a})},N8:function(){if(!this.WV)this.WV=setTimeout(function(){this.WV=r;this.jC()}.bind(this),40)},jC:function(){if(this.Ag.length!=0){for(var a=(new Date).getTime()+10;(new Date).getTime()<a;){var b=this.Ag.filter(function(a){return a.jf.length==0}),b=b.length>0?b[0]:this.Ag[0];b.bua();if(b.jf.length==b.Qe.LL){this.Ag.splice(this.Ag.indexOf(b),1);if(this.Ag.length==0)return}}this.N8()}}};return a});
define("fp","require,ia,lc,fr,gb,dT,bT,dt,eH,dU,hS,dB,U".split(","),function(a){var b=a("ia"),c=a("lc"),e=a("fr"),d=a("gb"),f=a("dT"),g=a("bT"),k=a("dt"),i=a("eH"),n=a("dU"),j=a("hS"),l=a("dB"),q=a("U");return{st:function(){this.set("visible",z);this.set("inView",z);this.set("blending",0);this.set("chromaColor",m);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("premultipliedAlpha",z);this.set("projected",z);this.set("image",r);this.set("level",r);this.set("levelURL",r);this.set("state",
r);this.set("visibleOnStop",p);this.QI=this.QI.bind(this);this.SI=this.SI.bind(this);this.tg=this.ia=this.qw=this.$d=r},vy:function(){this.tW();this.AD();this.wsa()},tW:function(){if(this.o("level")){var a=this.get("level");this.set("levelURL",a&&a.get("url"))}if(this.o("image","level","levelURL","projected")){this.B2();this.ia=this.get("image");this.lb=this.get("level");this.set("textureSource",new n(this.ia&&this.lb.get("url")));this.set("premultipliedAlpha",this.ia&&this.lb.get("premultipliedAlpha"));
this.Aga();if(this.ia){this.qga();this.tga()}else{this.trigger(c.Db);this.trigger(c.S)}}},AD:function(){if(this.o("blending","chromaColor","chromaThreshold","chromaSmoothing","premultipliedAlpha")){var a=new g.In;a.Tr=this.get("blending");a.hn=this.get("chromaColor");a.jE=this.get("chromaThreshold");a.iE=this.get("chromaSmoothing");a.premultipliedAlpha=this.get("premultipliedAlpha");this.set("materialConfig",a)}},wsa:function(){if(this.o("meshGroup","projected","visible")){var a=this.get("projected")&&
this.get("visible")?d.sO:d.gw;k.vh(this.get("meshGroup")).forEach(function(b){j.ms(b,a)}.bind(this))}},hi:function(){this.o("visible","composedAlpha","image","state","visibleOnStop")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0&&(this.get("visibleOnStop")||this.get("state")!=e.K));this.o("composedAlpha","meshGroup","inView")&&k.xd(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0);this.qw&&this.qw.Ze(this.get("inView"))},QI:function(){this.ia&&f.ob("AnimatedImageResource",
this.ia)?this.set("visibleOnStop",this.ia.get("visibleOnStop")):this.set("visibleOnStop",p)},SI:function(){this.set("levelURL",this.lb.get("url"))},wx:function(){this.B2()},B2:function(){if(this.qw){this.qw.clear();this.qw=r}if(this.$d){this.$d.unbind(c.aa,this.V4,this,p);this.$d.unbind(c.zc,this.W4,this,p);this.$d.clear();this.$d=r}if(this.tg){this.tg.dispose();this.tg=r}if(this.get("textureSource")){this.JU();this.set("textureSource",r)}if(this.ia){this.Poa();this.ia=r}if(this.lb){this.Soa();this.lb=
r}},qga:function(){b.Tb(this.ia,["visibleOnStop"],this.QI,p)},Poa:function(){b.ac(this.ia,["visibleOnStop"],this.QI,p)},tga:function(){b.Tb(this.lb,["url"],this.SI,p)},Soa:function(){b.ac(this.lb,["url"],this.SI,p)},iB:function(){this.JU();var a,b=this.get("image");if(f.ob("AnimatedImageResource",b)){this.$d=new q(this.get("textureSource").qe(),b.get("rowCount",1),b.get("colCount",1),b.get("frameDuration"),b.get("frameCount",b.get("rowCount",1)*b.get("colCount",1)),b.get("repeat"),b.get("finalFrame")==
"first");a=this.$d.og();this.$d.bind(c.zc,this.W4,this,p);this.$d.bind(c.aa,this.V4,this,p);this.qw=new i(b,this.$d);this.set("visibleOnStop",b.get("visibleOnStop"));this.set("state",this.$d.Ie())}else{a=this.get("textureSource").qe();this.tg=new l(a);this.set("visibleOnStop",p);this.set("state",r)}this.hi();this.set("contentWidth",a.width);this.set("contentHeight",a.height);this.get("textureSource").ri(a);this.trigger(c.Db);this.trigger(c.S)},X4:function(){this.JU();this.trigger(c.Db);this.trigger(c.S)},
W4:function(){this.set("state",this.$d.Ie())},V4:function(){this.get("textureSource").update();this.Ga()},Aga:function(){var a=this.get("textureSource");a.bind(c.S,this.iB,this,p);a.bind(c.ie,this.X4,this,p)},JU:function(){var a=this.get("textureSource");a.unbind(c.S,this.iB,this,p);a.unbind(c.ie,this.X4,this,p)},HR:function(a){return this.tg&&this.tg.pe==a.source?this.tg.info(a.x,a.y):l.info(a.source,a.x,a.y)}}});
define("la","require,ia,lc,dT,kr,gc".split(","),function(a){function b(a){a=a.get("mapColor");return a=="image"||a=="transparent"||a=="any"}function c(a){a=a.get("mapColor");return a!="image"&&a!="transparent"&&a!="any"}var e=a("ia"),d=a("lc"),f=a("dT"),g=a("kr"),k=new (a("gc"));return{xq:function(){this.set("beamEnabled",z);this.OI=this.OI.bind(this);this.lS=r;this.Bf=[];this.Qq=r},vxa:function(a){if(this.Qq!=a){this.DU();this.Qq=a;this.v1()}},Ql:function(a){this.Ar=a.ja;this.zr=a.pitch},DU:function(){this.Qq&&
e.ac(this.Qq,["areas"],this.OI,p)},v1:function(){this.Qq&&e.Tb(this.Qq,["areas"],this.OI,p)},Ox:function(){this.DU();this.v1()},Px:function(){this.b9([]);this.DU()},OI:function(){var a=this.Qq.get("areas",[]);this.lS=f.ob("HotspotPanoramaOverlayImage",this.j)||f.ob("FlatHotspotPanoramaOverlayImage",this.j)||f.ob("QuadHotspotPanoramaOverlayImage",this.j)?a.filter(b):a.filter(c);this.lS.forEach(function(a){k.set(a,0)})},Aj:function(a){if(a.Zd==d.Ai){var b=this.get("beamEnabled")&&this.get("alpha")>
0&&!a.th()?this.Y3(a):[];if(b.length>0){a.Qr(b);this.Ym(b)&&a.Rr(b);a.ki(this.get("distance"));var c=this.xa(b,a.uv());c&&a.tL(c,this.Ir(a.uv()))}this.b9(b,a.fs(),a.uv())}else if(a.Zd==d.zi){b=this.get("beamEnabled")&&this.get("alpha")>0&&!a.th()?this.Y3(a):[];if(b.length>0){var e=z;b.forEach(function(a){a.trigger(d.T);!e&&a.sE(d.T,p).length>1&&(e=p)});a.ki(this.get("distance"));e&&a.Jp(b)}}},Y3:function(a){var b=this.po(a.Cl);return b.length==0?[]:this.lS.filter(function(a){var c=a.get("mapColor");
return c=="any"?p:c=="image"?b.some(function(a){return this.HR(a).Op}.bind(this)):c=="transparent"?b.every(function(a){return!this.HR(a).Op}.bind(this)):c&&c[0]=="#"?b.some(function(a){return g.PX(this.HR(a).color,c)<10}.bind(this)):z}.bind(this))},b9:function(a,b,c){this.Bf.forEach(function(e){if(a.indexOf(e)<0){var f=k.get(e)-1;k.set(e,f);if(f==0){e.trigger(d.Ib,{xX:c});b&&e.trigger(d.zf)}}});var e=this.Bf;this.Bf=a;this.Bf.forEach(function(a){if(e.indexOf(a)<0){var f=(k.get(a)||0)+1;k.set(a,f);
if(f==1){a.trigger(d.tc,{xX:c});b&&a.trigger(d.Ch)}}})},xa:function(a,b){for(var c="",d=a.length-1;d>=0&&c=="";d--){var e=a[d];if(!b||e.get("displayTooltipInTouchScreens")&&this.Sa.F.get("displayTooltipInTouchScreens")!==z)c=e.get("toolTip","")}return c},Ir:function(a){if(a){var a=this.get("yaw")-this.Ar,b=this.get("pitch")-this.zr;return Math.sqrt(a*a+b*b)}return 0},Ym:function(a){for(var b=this.Qq.get("useHandCursor"),c=a.length-1;c>=0&&b===m;c--)b=a[c].get("useHandCursor");return!!b}}});
define("ko",["require","r","cb"],function(a){function b(){this.Gg=m;this.lx=this.pu=0;this.Z=p;this.RG=this.XV=this.rR=m;this.Gc=z}var c=a("r"),e=a("cb"),d=Math.PI/180,f=c.browser()==c.wf?[-0.5,0]:[0,0];b.prototype.qs=function(a){this.Gg!=a&&(this.Gg=a,this.Z=p)};b.prototype.ps=function(a){if(a<this.pu+f[0]||a>this.pu+f[1])this.pu=a,this.Z=p};b.prototype.get=function(a,b){b!==m||(b=p);this.Z&&(this.J(),this.Z=z);var c=this.rR.get(a)||0,d=(this.XV.get(a)||0)-c;b&&(180<d?d-=360:-180>d&&(d+=360));return c+
d*this.RG};b.prototype.ZX=function(){this.Z&&(this.J(),this.Z=z);for(var a=this.rR.get("vertices"),b=this.XV.get("vertices"),c=[],d=0;d<a.length;d++){var f=a[d].get("yaw")||0,l=(b[d].get("yaw")||0)-f;180<l?l-=360:-180>l&&(l+=360);var q=a[d].get("pitch")||0,o=(b[d].get("pitch")||0)-q;c.push(new e(f+l*this.RG,q+o*this.RG))}return c};b.prototype.wh=function(){return this.get("opacity",z)};b.prototype.nv=function(){var a=this.get("hfov")||this.get("vfov"),b=this.Gg[0].get("hfov")||this.Gg[0].get("vfov");
return Math.tan(0.5*a*d)/Math.tan(0.5*b*d)};b.prototype.J=function(){for(var a=this.lx,b,c=this.Gg.length-1,d,e;;){b=Math.min(a+1,c);d=this.I4(a);e=this.I4(b);if(d<=this.pu&&this.pu<=e)break;if(d>this.pu){if(0==a){b=a;break}a-=1}else{if(a==c){b=a;break}a+=1}}this.rR=this.Gg[a];this.XV=this.Gg[b];a=e-d;this.RG=0<a?(this.pu-d)/a:0};b.prototype.I4=function(a){return this.Gg[a].get("timestamp")};return b});
define("g",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("scaleMode",m);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,width,height,offsetX,offsetY,distance,playbackPositions".split(","),this.mc,p)},hk:function(){b.ac(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,width,height,offsetX,offsetY,distance,playbackPositions".split(","),
this.mc)},mc:function(){this.set("horizontalAlign",this.j.get("horizontalAlign"));this.set("verticalAlign",this.j.get("verticalAlign"));this.set("scale",this.j.get("scale"));this.set("scaleMode",this.j.get("scaleMode"));this.set("width",this.j.get("width"));this.set("height",this.j.get("height"));this.set("offsetX",this.j.get("offsetX",0.5*this.j.get("width")));this.set("offsetY",this.j.get("offsetY",0.5*this.j.get("height")));this.set("distance",this.j.get("distance"));this.set("playbackPositions",
this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions","currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("yaw",this.wa.get("yaw")),this.set("pitch",this.wa.get("pitch")),this.set("roll",this.wa.get("roll")),this.set("alpha",this.wa.wh()))}}});
define("hq","require,fd,ia,lc,dt,ed,kZ,fp,la,g,kd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("dt"),f=a("ed"),g=a("kZ"),k=a("fp"),i=a("la"),n=a("g"),j=a("kd"),l=0,a=b.extend(f,g,n,k,i,function(a){f.call(this);this.set("tag","FlatHotspotImage");this.set("id","flat_hs_image_"+l++);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this)});a.prototype.Qa=function(){f.prototype.Qa.call(this);c.Tb(this.j,["image.levels"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["image.levels"],
this.Sd);f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("image",this.j.get("image"));this.set("level",j.yua(this.j))};a.prototype.J=function(a){this.Nu();f.prototype.J.call(this,a);this.o("inView")&&this.j.trigger(this.get("inView")?e.nd:e.zd)};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.setAttribute(a,d.us,this.get("panoramaId"));d.setAttribute(a,d.hN,this.get("id"))}.bind(this))}};return a});
define("jh","require,fd,ia,lc,gQ,hL,r,kO,bq,iC".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("gQ"),f=a("hL");a("r");var g=a("kO"),k=a("bq"),i=a("iC"),a=b.extend(d,function(a){d.call(this);this.j=a;this.dh.push(this.j);this.$I=this.$I.bind(this);this.ZI=this.ZI.bind(this);this.aJ=this.aJ.bind(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Hotspot");this.set("over",z);this.set("centerOver",z);this.set("enabled",p);this.set("visible",z);this.set("alpha",
0);this.set("inVR",z);this.set("overlaysEnabled",p);this.set("enabledInVR",p);this.set("enabledInStandard",p);this.set("interactionEnabled",p);this.set("centerOverDisplay",z);this.set("rollOverDisplay",z);this.set("loadingActive",z);this.lP=this.mP=this.ik=this.nc=this.Cd=r;this.Bf=[];this.kP=[];this.ji=r});a.prototype.Qa=function(){this.Cd=(new f(e.S)).vi(this.cu.bind(this));this.nc=(new f(e.sc)).Ek(this.fu.bind(this));this.ik=(new f(e.Db)).vi(this.Xma.bind(this));this.mP=(new f(e.tc)).Ek(this.Qma.bind(this));
this.lP=(new f(e.Ib)).Ek(this.Pma.bind(this));d.prototype.Qa.call(this);c.Tb(this.j,["items","rollOverItems","maps","rollOverMaps"],this.$I,p);c.Tb(this.j,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.aJ,p);c.Tb(this.j,["areas"],this.ZI,p)};a.prototype.Ya=function(){this.ry([],this.Bf);this.kW([],this.kP);this.Cd.dispose();this.nc.dispose();this.ik.dispose();this.mP.dispose();
this.lP.dispose();c.ac(this.j,["items","rollOverItems","maps","rollOverMaps"],this.$I);c.ac(this.j,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.aJ);c.ac(this.j,["areas"],this.ZI);this.get("visible")&&this.j.trigger(e.zd);d.prototype.Ya.call(this)};a.prototype.$I=function(){this.set("items",this.Sa.vp(this.j.get("items",[])));this.set("rollOverItems",this.Sa.vp(this.j.get("rollOverItems",
[])));this.set("maps",this.Sa.vp(this.j.get("maps",[])));this.set("rollOverMaps",this.Sa.vp(this.j.get("rollOverMaps",[])));var a=[].concat(this.get("maps"),this.get("items"),this.get("rollOverMaps"),this.get("rollOverItems"));a.forEach(function(a){a.vxa(this.j)}.bind(this));this.get("items").forEach(function(a){a.set("projected",this.j.get("projected"))}.bind(this));this.Qg(a);this.Cd.yd(a);this.nc.yd(a);this.ik.yd(a)};a.prototype.aJ=function(){this.set("fadeInDuration",this.j.get("fadeInDuration"));
this.set("fadeOutDuration",this.j.get("fadeOutDuration"));this.set("enabled",this.j.get("enabled",p));this.set("enabledInVR",this.j.get("enabledInVR"));this.set("enabledInStandard",this.j.get("enabledInStandard",p));this.set("enabledInSurfaceSelection",this.j.get("enabledInSurfaceSelection",p));this.set("centerOverDisplay",this.j.get("centerOverDisplay"));this.set("rollOverDisplay",this.j.get("rollOverDisplay",z));this.set("interactionEnabled",this.j.get("interactionEnabled",p))};a.prototype.ZI=function(){var a=
this.j.get("areas");this.mP.yd(a);this.lP.yd(a)};a.prototype.J=function(a){this.hi(a);d.prototype.J.call(this,a);this.kp(a)};a.prototype.kp=function(a){this.set("inVR",a.Ob);this.set("surfaceSelection",a.nF);this.set("hotspotsEnabled",a.rv);if(this.o("items","rollOverItems","maps","rollOverMaps","over","centerOver","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","surfaceSelection","enabledInSurfaceSelection","enabled","interactionEnabled","rollOverDisplay","centerOverDisplay")||this.P&&
this.P.o("composedAlpha")){var b=a=z,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.P&&this.P.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")!==z&&this.get("rollOverDisplay")}this.get("rollOverItems").forEach(function(a){a.set("visible",b);a.set("beamEnabled",c&&b&&d)});var f=this.get("rollOverItems").length==0;this.get("items").forEach(function(a){a.set("visible",f||!b);a.set("beamEnabled",c&&(f||!b)&&d)});this.get("rollOverMaps").forEach(function(a){a.set("visible",z);a.set("beamEnabled",c&&b&&d)});var i=this.get("rollOverMaps").length==0;this.get("maps").forEach(function(a){a.set("visible",z);a.set("beamEnabled",
c&&(i||!b)&&d)});this.set("visible",a)}if(this.o("visible")){var a=this.get("alpha"),s=this.get("visible")?1:0,u=(this.get("visible")?this.get("fadeInDuration"):this.get("fadeOutDuration"))*Math.abs(a-s);this.ji=new g("linear",[new k("alpha",a,s)],Math.max(u,1));this.Ga();this.get("visible")?this.j.trigger(e.nd):this.j.trigger(e.zd)}};a.prototype.hi=function(a){if(this.ji){if(this.ji.Je())this.ji=r;else{this.ji.cb(a.wd);this.set("alpha",this.ji.wb("alpha"))}this.Ga()}};a.prototype.cu=function(){this.Rl();
this.trigger(e.S)};a.prototype.Xma=function(){this.Rl();this.trigger(e.Db)};a.prototype.fu=function(){this.Rl()};a.prototype.Rl=function(){var a=0;this.nc.ln(function(b){var c=0,d;this.Cd.pi(b)?c=100:(d=this.nc.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new i(e.sc,a/this.nc.Vc.length))};a.prototype.Qma=function(a){a.data.xX?this.kW([a.source],[]):this.ry([a.source],[])};a.prototype.Pma=function(a){a.data.xX?this.kW([],[a.source]):this.ry([],[a.source])};a.prototype.ry=function(a,b){this.H$(this.Bf,
a,b);this.set("over",this.Bf.length>0)};a.prototype.kW=function(a,b){this.H$(this.kP,a,b);this.set("centerOver",this.kP.length>0)};a.prototype.H$=function(a,b,c){b||(b=[]);c||(c=[]);c.forEach(function(b){b=a.indexOf(b);b>=0&&a.splice(b,1)});b.forEach(function(b){a.indexOf(b)<0&&a.push(b)})};return a});
define("cc",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("scaleMode",m);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.mc,p)},hk:function(){b.ac(this.j,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.mc)},mc:function(){this.set("horizontalAlign",this.j.get("horizontalAlign"));
this.set("verticalAlign",this.j.get("verticalAlign"));this.set("scaleMode",this.j.get("scaleMode"));this.set("distance",this.j.get("distance"));this.set("scale",this.j.get("scale"));this.set("playbackPositions",this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions","currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("yaw",this.wa.get("yaw")),this.set("pitch",this.wa.get("pitch")),this.set("roll",this.wa.get("roll")),this.set("rotationX",
this.wa.get("rotationX")),this.set("rotationY",this.wa.get("rotationY")),this.set("hfov",this.wa.get("hfov")),this.set("vfov",this.wa.get("vfov")),this.set("alpha",this.wa.wh()))}}});
define("hn","require,fd,ia,lc,dt,ed,kF,fp,la,cc,kd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("dt"),f=a("ed"),g=a("kF"),k=a("fp"),i=a("la"),n=a("cc"),j=a("kd"),l=0,a=b.extend(f,g,k,i,n,function(a){f.call(this);this.set("tag","HotspotImage");this.set("id","hs_image_"+l++);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this)});a.prototype.Qa=function(){f.prototype.Qa.call(this);c.Tb(this.j,["image.levels"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["image.levels"],this.Sd);
f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("image",this.j.get("image"));this.set("level",j.Dua(this.j,this.get("panoramaPixelsPerDegree")))};a.prototype.J=function(a){this.Nu();f.prototype.J.call(this,a);this.o("inView")&&this.j.trigger(this.get("inView")?e.nd:e.zd)};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.setAttribute(a,d.us,this.get("panoramaId"));d.setAttribute(a,d.hN,this.get("id"))}.bind(this))}};
return a});
define("fG",["require","fh","a"],function(a){function b(a,b,e){this.Pd=a||new c(0,0,0);this.pg=b||new c(1,0,0);this.gs=e||new c(0,1,0)}var c=a("fh"),e=a("a");b.prototype.clone=function(){return new b(this.Pd.clone(),this.pg.clone(),this.gs.clone())};b.prototype.apply=function(a){a.Cy(this.Pd);a.Cy(this.pg);a.Cy(this.gs)};b.prototype.intersection=function(a,b){var g=e.$r(a.Pd,a.pg),k=e.$r(this.Pd,a.Pd),i=e.$r(this.Pd,this.pg);i.CL(e.$r(this.Pd,this.gs));g=g.cv(i);if(!(0==g||b&&0>g))return k=-i.cv(k)/
g,new c(a.Pd.x+(a.pg.x-a.Pd.x)*k,a.Pd.y+(a.pg.y-a.Pd.y)*k,a.Pd.z+(a.pg.z-a.Pd.z)*k)};b.prototype.CM=function(a,b){var g=e.$r(this.Pd,this.pg),k=e.$r(this.Pd,this.gs),i=e.$r(this.Pd,a),n=g.XX(),j=k.XX();return b?new c(i.cv(g)/(n*n),i.cv(k)/(j*j),0):new c(i.cv(g)/n,i.cv(k)/j,0)};return b});
define("ea",[],function(){function a(a){a%=e;0>a&&(a+=e);return g[a*d|0]}function b(a){a%=e;0>a&&(a+=e);return f[a*d|0]}function c(){this.identity()}c.prototype.identity=function(){this.m11=1;this.m21=this.m13=this.m12=0;this.m22=1;this.m32=this.m31=this.m23=0;this.m33=1;this.bf=this.af=this.$e=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.$e=this.$e;a.af=this.af;
a.bf=this.bf;return a};c.prototype.concat=function(a){var b=this.m11,c=this.m12,d=this.m13,e=this.m21,f=this.m22,g=this.m23,k=this.m31,u=this.m32,v=this.m33,w=this.$e,x=this.af,y=this.bf;this.m11=b*a.m11+c*a.m21+d*a.m31;this.m12=b*a.m12+c*a.m22+d*a.m32;this.m13=b*a.m13+c*a.m23+d*a.m33;this.m21=e*a.m11+f*a.m21+g*a.m31;this.m22=e*a.m12+f*a.m22+g*a.m32;this.m23=e*a.m13+f*a.m23+g*a.m33;this.m31=k*a.m11+u*a.m21+v*a.m31;this.m32=k*a.m12+u*a.m22+v*a.m32;this.m33=k*a.m13+u*a.m23+v*a.m33;this.$e=w*a.m11+x*
a.m21+y*a.m31+a.$e;this.af=w*a.m12+x*a.m22+y*a.m32+a.af;this.bf=w*a.m13+x*a.m23+y*a.m33+a.bf};c.prototype.translate=function(a,b,c){this.$e+=a;this.af+=b;this.bf+=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.$e*=a;this.af*=b;this.bf*=c};c.prototype.Bn=function(c){var d=a(c),c=b(c),e=this.m12*d+this.m13*c,f=this.m22*c-this.m23*d,g=this.m22*d+this.m23*c,k=this.m32*c-this.m33*d,t=this.m32*d+this.m33*
c,s=this.af*c-this.bf*d,u=this.af*d+this.bf*c;this.m12=this.m12*c-this.m13*d;this.m13=e;this.m22=f;this.m23=g;this.m32=k;this.m33=t;this.af=s;this.bf=u};c.prototype.Hp=function(c){var d=a(c),c=b(c),e=-this.m11*d+this.m13*c,f=this.m21*c+this.m23*d,g=-this.m21*d+this.m23*c,k=this.m31*c+this.m33*d,t=-this.m31*d+this.m33*c,s=this.$e*c+this.bf*d,u=-this.$e*d+this.bf*c;this.m11=this.m11*c+this.m13*d;this.m13=e;this.m21=f;this.m23=g;this.m31=k;this.m33=t;this.$e=s;this.bf=u};c.prototype.Ip=function(c){var d=
a(c),c=b(c),e=this.m11*d+this.m12*c,f=this.m21*c-this.m22*d,g=this.m21*d+this.m22*c,k=this.m31*c-this.m32*d,t=this.m31*d+this.m32*c,s=this.$e*c-this.af*d,u=this.$e*d+this.af*c;this.m11=this.m11*c-this.m12*d;this.m12=e;this.m21=f;this.m22=g;this.m31=k;this.m32=t;this.$e=s;this.af=u};c.prototype.rotate=function(a,b,c){this.Bn(a);this.Hp(b);this.Ip(c)};c.prototype.oca=function(){var a=this.sua();if(0==a)return z;var b=this.clone();this.m11=(b.m22*b.m33-b.m23*b.m32)/a;this.m12=(b.m13*b.m32-b.m12*b.m33)/
a;this.m13=(b.m12*b.m23-b.m13*b.m22)/a;this.m21=(b.m23*b.m31-b.m21*b.m33)/a;this.m22=(b.m11*b.m33-b.m13*b.m31)/a;this.m23=(b.m13*b.m21-b.m11*b.m23)/a;this.m31=(b.m21*b.m32-b.m22*b.m31)/a;this.m32=(b.m12*b.m31-b.m11*b.m32)/a;this.m33=(b.m11*b.m22-b.m12*b.m21)/a;this.$e=-(b.$e*this.m11+b.af*this.m21+b.bf*this.m31);this.af=-(b.$e*this.m12+b.af*this.m22+b.bf*this.m32);this.bf=-(b.$e*this.m13+b.af*this.m23+b.bf*this.m33);return p};c.prototype.sua=function(){return this.m11*(this.m22*this.m33-this.m23*
this.m32)+this.m12*(this.m23*this.m31-this.m21*this.m33)+this.m13*(this.m21*this.m32-this.m22*this.m31)};c.prototype.Cy=function(a){var b=a.x*this.m12+a.y*this.m22+a.z*this.m32+this.af,c=a.x*this.m13+a.y*this.m23+a.z*this.m33+this.bf;a.x=a.x*this.m11+a.y*this.m21+a.z*this.m31+this.$e;a.y=b;a.z=c};for(var e=2*Math.PI,d=18E4/e,f=new Float32Array(180001),g=new Float32Array(180001),k=0;18E4>k;k++)f[k]=Math.cos(k/d),g[k]=Math.sin(k/d);f[18E4]=f[0];g[18E4]=g[0];return c});
define("cT","require,im,gj,cA,fh,fG,ea,je".split(","),function(a){var b=a("im"),c=a("gj"),e=a("cA"),d=a("fh"),f=a("fG"),g=a("ea"),k=a("je"),i=Math.PI/180,n=180/Math.PI,j=new g,l=new c,q=new f,o=new d;return{get:function(a,b,c,e,f,g,k,n){a=a*i;b=b*i;b=new d(Math.sin(-a)*Math.cos(b),Math.sin(b),Math.cos(-a)*Math.cos(b));j.identity();j.Hp(c*i);j.Ip(f*i);j.Bn(e*i);b.apply(j);if(b.z>0){l.mF(k);l.Lda(n);l.Jv(g*i);l.project(b);return b}return r},Yya:function(a,b,c){j.identity();j.Bn(-c.$b()*i);j.Ip(-c.Od()*
i);j.Hp(-c.Ub()*i);o.set(a,b,0);a=c.unproject(o).Hba();a.apply(j);return{ja:a.Ub()*n,pitch:a.$b()*n}},ZAa:function(a,c,d,e,f,g,l,n,A,M,E,J,B,G){G||(G=k.Ln);B||(B=b.Bk(J,M,E));J||(J=b.Fn(B,M,E));var H=M*0.5/Math.tan(J*0.5*i),I=H*Math.tan(J*0.5*i)*2,N=H*Math.tan(B*0.5*i)*2;q.Pd.set(+I*0.5,+N*0.5,0);q.pg.set(-I*0.5,+N*0.5,0);q.gs.set(+I*0.5,-N*0.5,0);j.identity();j.Ip(-A*i);j.Bn(-l*i);j.Hp(n*i);j.translate(0,0,H);j.Ip(-g*i);j.Bn(-f*i);j.Hp(-e*i);j.Hp(d.Ub()*i);j.Ip(d.Od()*i);j.Bn(d.$b()*i);q.apply(j);
o.set(a,c,0);f=q.intersection(d.unproject(o));e={x:m,y:m,xScaled:m,yScaled:m};if(f&&f.z>0){f=q.CM(f);e.xScaled=e.x=f.x/I;e.yScaled=e.y=f.y/N}if(G!=k.Ln){var O,D;switch(G){case k.Me:O=Math.min(b.Fn(B,M,E),J);D=Math.min(b.Bk(J,M,E),B);break;case k.km:O=Math.max(b.Fn(B,M,E),J);D=Math.max(b.Bk(J,M,E),B);break;case k.Qk:O=J;D=b.Bk(J,M,E);break;case k.Wg:O=b.Fn(B,M,E);D=B}if(O!=J||D!=B){I=H*Math.tan(O*0.5*i)*2;N=H*Math.tan(D*0.5*i)*2;q.Pd.set(+I*0.5,+N*0.5,0);q.pg.set(-I*0.5,+N*0.5,0);q.gs.set(+I*0.5,-N*
0.5,0);q.apply(j);o.set(a,c,0);if((f=q.intersection(d.unproject(o)))&&f.z>0){f=q.CM(f);e.xScaled=f.x/I;e.yScaled=f.y/N}}}return e},bAa:function(a,b,c,f,g,k,l){l=g*0.5/Math.tan(l*0.5*i);q.Pd.set(+g*0.5,+k*0.5,l);q.pg.set(-g*0.5,+k*0.5,l);q.gs.set(+g*0.5,-k*0.5,l);j.identity();j.Ip(-f*i);j.Bn(-c*i);j.Hp(-b*i);j.Hp(a.Ub()*i);j.Ip(a.Od()*i);j.Bn(a.$b()*i);q.apply(j);a=new e(new d(0,0,0),new d(0,0,1));if((a=q.intersection(a))&&a.z>0){a=q.CM(a);return{x:a.x/g,y:a.y/k}}return r}}});
define("y","require,fd,gQ,dt,M,hS,jE".split(","),function(a){var b=a("fd"),c=a("gQ"),e=a("dt"),d=a("M"),f=a("hS"),g=a("jE"),a=b.extend(c,function(){c.call(this);this.set("tag","WebGLObject");this.set("zOrder",0);this.set("webglScene",r);this.set("meshGroup",r);this.set("camera",r)});a.prototype.Mi=function(){return[]};a.prototype.Ya=function(){e.dispose(this.get("meshGroup"));e.RM(this.get("meshGroup"),r);this.set("meshGroup",r);c.prototype.Ya.call(this)};a.prototype.J=function(a){c.prototype.J.call(this,
a);this.set("camera",d.as(a.te));this.set("webglScene",a.te);if(!this.get("meshGroup")){this.set("meshGroup",e.Oaa(this.Mi()));this.get("meshGroup").userData.nwa=this}this.o("webglScene","meshGroup")&&e.RM(this.get("meshGroup"),this.get("webglScene"));this.hi();this.Ol(a);this.Ru();this.o("loadingActive","meshGroup")&&f.md(this.get("meshGroup"),this.get("loadingActive"));this.o("blendingActive","meshGroup")&&g.Cda(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.hi=function(){this.o("composedAlpha",
"meshGroup")&&this.hq()};a.prototype.hq=function(){e.xd(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.Ol=function(){h("Must be overridden in descendants.")};a.prototype.Ru=function(){if(this.o("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,c){e.UM(a,this.get("index")+b/c.length)}.bind(this))}};return a});
define("ej",["require","fd","gS","y","dt"],function(a){var b=a("fd"),c=a("gS"),e=a("y"),d=a("dt"),f=new THREE.Matrix4,g=Math.PI/180,a=b.extend(e,function(){e.call(this);this.set("tag","Frame");this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.di=new THREE.Matrix4;this.Jf=new THREE.Matrix4});a.prototype.J=function(a){e.prototype.J.call(this,a)};a.prototype.Ol=function(a){var b=z;this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.We.makeTranslation(0.5*-this.get("composedTranslationX")*
c.Jd,0.5*this.get("composedTranslationY")*c.Jd,0.5*this.get("composedTranslationZ")*c.Jd),b=p);this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.ec.makeRotationY(-a.ja*g),this.ec.multiply(f.makeRotationX(-this.get("composedDeltaPitch")*g)),this.ec.multiply(f.makeRotationY(this.get("composedDeltaYaw")*g)),this.ec.multiply(f.makeRotationY(a.ja*g)),b=p);this.o("flipHorizontally")&&(this.di.makeScale(this.get("flipHorizontally")?-1:1,1,1),b=p);if(b||this.o("meshGroup"))this.Jf.copy(this.We),
this.Jf.multiply(this.ec),this.Jf.multiply(this.di),d.Ul(this.get("meshGroup"),this.Jf)};return a});
define("lk",["require","fd","ix","kq","jJ"],function(a){var b=a("fd"),c=a("ix"),e=a("kq"),d=a("jJ"),a=b.extend(d,function(a,b,c,e,n){d.call(this,a.get("url"));this.ca=b;this.da=c;this.W=e;this.ea=n;this.pma=0!=this.ca||0!=this.da||this.W!=a.get("width")||this.ea!=a.get("height")});a.prototype.Lf=function(){this.pma?(this.$ia(),this.ko(),this.Bx(!!this.pe)):d.prototype.Lf.call(this)};a.prototype.kD=function(){d.prototype.kD.call(this);this.PQ()};a.prototype.Mr=function(){d.prototype.Mr.call(this);
this.PQ()};d.prototype.dispose=function(){d.prototype.dispose.call(this);this.PQ()};a.prototype.$ia=function(){var a=c.qe(this.Md);this.pe=e.Mta(a,this.ca,this.da,this.W,this.ea)};a.prototype.PQ=function(){this.pe&&(e.EL(this.pe),this.pe=r)};return a});
define("eN","require,dT,cS,jC,fH,dU,jJ,lk,gS,bT,dt,bF,kd,hS,r".split(","),function(a){var b=a("dT"),c=a("cS"),e=a("jC"),d=a("fH"),f=a("dU"),g=a("jJ"),k=a("lk"),i=a("gS"),n=a("bT"),j=a("dt"),l=a("bF"),q=a("kd"),o=a("hS"),t=a("r"),s={Ita:function(a,b){var c=l.get(a);switch(c){case l.Ss:case l.Xp:case l.yi:return this.Lia(c,a,b);case l.Mn:case l.nm:case l.Nn:return this.Nia(c,a,b)}},Ota:function(a,b){var c=new g(b.get("posterURL"));return this.e3(a,b,c)},Nta:function(a,b){var c=new f;return this.e3(a,
b,c)},e3:function(a,b,d){var e=a.get("hfov"),f=a.get("vfov"),g=a.get("pitch"),k=b.get("width"),b=b.get("url"),a=l.get(a),q=a==l.Nn?2:1,s=a==l.nm?2:1,a=q+s>2?[c.oa,c.Ka]:[c.Gn],t=Math.round(k/q),B=n.Xr(d.texture(),new n.In(b));o.vz(B,d);B.visible=p;return a.map(function(a,b){var c=i.Raa(e,f,g,1,1,b%q/q,(s-1-Math.floor(b/q))/s,1/q,1/s),c=j.create(c,[B]);c.layers.set(a);o.OM(c,t/e);return c}.bind(this))},Kta:function(a){var b=[e.Ka,e.oa,e.jb,e.ib,e.FRONT,e.BACK].map(function(){var b=new f;b.ri(s.lla(a));
var c=n.Xr(b.texture());o.vz(c,b);c.visible=p;return c}),d=i.Qaa(1,1),b=j.create(d,b);o.OM(b,256/90);b.layers.set(c.Gn);return b},vV:{},lla:function(a){if(!s.vV[a]){var b=document.createElement("canvas");b.width=b.height=256;var c=b.getContext("2d");c.fillStyle=a;c.fillRect(0,0,b.width,b.height);s.vV[a]=b}return s.vV[a]},Lia:function(a,f,g){var k=a==l.Ss?[c.Ka,c.oa]:[c.Gn],n=f.get("flipImageHorizontally");n&&(k=k.reverse());var s=a==l.yi?1:6*k.length,t=g.get("width")/s,M=g.get("height"),E,J;if(b.ob("TiledImageResourceLevel",
g)){E=g.get("colCount",s)/s;J=g.get("rowCount",1)}else if(this.D8(a,g)){E=Math.ceil(t/d.On());J=Math.ceil(M/d.On())}else J=E=1;var B=[e.Ka,e.oa,e.jb,e.ib,e.FRONT,e.BACK];return k.map(function(c,d){var e=Array(6);B.forEach(function(j,k){var o=q.RX(f,g,j);if(b.ob("TiledImageResourceLevel",g))e[i.x0.indexOf(j)]=this.Hia(o,a,c,j,n,E,J);else{var s=a==l.yi?0:Math.round((d*B.length+k)*t),x=E>1||J>1||a!=l.yi?t>256?1:0.5:0;e[i.x0.indexOf(j)]=this.a3(o,E,J,s,0,t,M,x)}}.bind(this));var k=Array.prototype.concat.apply([],
e),s=i.Qaa(E,J),k=j.create(s,k);k.layers.set(c);o.OM(k,t/90);return k}.bind(this))},Nia:function(a,b,e){var f=a==l.Mn?[c.Gn]:[c.oa,c.Ka];b.get("flipImageHorizontally")&&(f=f.reverse());var g=e.get("width"),k=e.get("height"),n=b.get("hfov"),q=b.get("vfov"),s=b.get("pitch"),t=Math.round(g/n/(k/q)),B=Math.round(g/t),G=Math.round(k/Math.round(k/q/(g/n))),H=(a=this.D8(a,e))?Math.ceil(B/d.On()):1,I=a?Math.ceil(G/d.On()):1;return f.map(function(a,b){var c=this.a3(e,H,I,b%t*B,Math.floor(b/t)*G,B,G),d=i.Raa(n,
q,s,H,I,0,0,1,1),c=j.create(d,c);c.layers.set(a);o.OM(c,B/n);return c}.bind(this))},D8:function(a,b){switch(a){case l.Ss:case l.Xp:case l.nm:case l.Nn:return p;case l.yi:return z;case l.Mn:return t.Jba().$va<Math.max(b.get("width"),b.get("height"))?p:d.uj()||t.Wa()?z:t.Hc()==t.ws?p:z}},a3:function(a,b,c,d,e,i,g,j){j||(j=0);for(var l=[],q=0;q<c;q++)for(var s=e+j+(g-2*j)*q/c,t=e+j+(g-2*j)*(q+1)/c,H=0;H<b;H++){var I=d+j+(i-2*j)*H/b,N=d+j+(i-2*j)*(H+1)/b,I=a?new k(a,I,s,N-I,t-s):new f,N=n.yX(I.texture());
o.vz(N,I);l.push(N)}return l},Hia:function(a,b,c,d,e,i,j){for(var k=[],l=0;l<j;l++)for(var s=0;s<i;s++){var t;t=a?new g(q.Fba(a,b,c,d,e,j,l,s)):new f;var G=n.yX(t.texture());o.vz(G,t);G.visible=z;k.push(G)}return k}};return s});
define("cB","require,fd,lc,ej,hL,eN,hS".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("ej"),d=a("hL"),f=a("eN"),g=a("hS"),a=b.extend(e,function(a){e.call(this);this.Pb=a;this.set("tag","SolidFrame");this.Be=r});a.prototype.Qa=function(){this.Be=(new d(c.S)).vi(this.Lf.bind(this));e.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Be.dispose();e.prototype.Ya.call(this)};a.prototype.Mi=function(){var a=[f.Kta(this.Pb)];g.Dn(a,g.Rk);g.Cn(a,g.Ij);this.Be.yd(a);return a};a.prototype.Lf=function(){this.trigger(c.Db);
this.trigger(c.S)};return a});
define("de",["require","gb","gS","dt","hS"],function(a){var b=a("gb"),c=a("gS"),e=a("dt"),d=a("hS"),f=Math.PI/180;return{eo:function(){this.set("distance",m);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.Ri=this.wq();this.BH=c.Ly();this.Oi=new THREE.Matrix4;this.Bw=new THREE.Matrix4;this.cy=new THREE.Matrix4;this.Z5=new THREE.Matrix4;this.jg=new THREE.Matrix4;this.di=new THREE.Matrix4;this.Jf=
new THREE.Matrix4},hp:function(a){this.Ol(a)},DH:function(){var a=this.get("meshGroup");return a?e.vh(a)[0]:r},Mi:function(){var a=e.create(this.BH,this.Kw());d.Cn(a,d.Ij);d.Dn(a,d.Rk);d.ms(a,b.gw);d.uz(a,1);return[a]},Mi:function(){return[0].map(function(a){var c=this.Kw(),a=e.create(this.Ri[a],c);d.Cn(a,d.Ij);d.Dn(a,d.Rk);d.ms(a,b.gw);d.uz(a,1);return a}.bind(this))},wq:function(){return[c.Ly()]},Ol:function(a){var b=z;this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll",
a.ld);this.set("rendererCameraFOV",a.uf);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.Ob);this.o("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&this.set("z",0==this.get("composedTranslationX")&&0==this.get("composedTranslationY")&&0==this.get("composedTranslationZ")&&this.get("distance")!==m?c.kv(this.get("distance")):c.sp());this.o("z")&&(this.Oi.makeTranslation(0,0,-this.get("z")),centerMatrixChanged=p);a.uf&&this.o("z",
"rendererCameraFOV")&&this.set("rendererHeightZ",2*Math.tan(0.5*a.uf*f)*this.get("z"));if(a.Ic&&this.o("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR","centerX","centerY")){this.Bw.copy(a.Ic.matrixWorld);var b=this.get("rendererHeightZ"),d=b*a.Ic.aspect,d=0.5*((this.get("centerX")-0.5*a.width)*d/a.width),b=0.5*((0.5*a.height-this.get("centerY"))*b/a.height);this.cy.makeTranslation(d,b,0);b=p}this.o("roll")&&(this.jg.makeRotationZ(this.get("roll")*
f),b=p);if(a.uf&&(centerMatrixChanged||this.o("rendererHeight","inVR","rendererHeightZ","width","height","flipHorizontally")))b=a.Ob?512/a.height:1,a=(this.get("flipHorizontally")?-1:1)*this.get("width")*b,b*=this.get("height"),this.di.makeScale(a,b,1),b=p;this.o("width","height","offsetX","offsetY")&&(a=0.5-this.get("offsetX")/this.get("width"),b=this.get("offsetY")/this.get("height")-0.5,this.Z5.makeTranslation(a,b,0),b=p);b&&(this.Jf.copy(this.Bw),this.Jf.multiply(this.Oi),this.Jf.multiply(this.cy),
this.Jf.multiply(this.jg),this.Jf.multiply(this.di),this.Jf.multiply(this.Z5),e.Ul(this.get("meshGroup"),this.Jf))}}});define("jy",["require","fd","ed","de"],function(a){var b=a("fd"),c=a("ed"),a=a("de");return b.extend(c,a,function(){c.call(this);this.set("tag","Sprite")})});
define("fi",["require","kr"],function(a){function b(a,c,f,g,k,i){this.pk=c;this.u=document.createElement("canvas");this.u.width=this.pk;this.u.height=this.pk;switch(a){case b.Jz:this.wja(f,g,k,i);break;case b.PF:this.xja(f,g,k,i)}}var c=a("kr");b.prototype.$c=R("pk");b.prototype.Nd=R("pk");b.prototype.og=R("u");b.prototype.wja=function(a,b,f,g){for(var k=0.5*this.pk,i=0.5*this.pk,n=0.5*this.pk,j=this.u.getContext("2d"),b=c.SE(b),l=j.createRadialGradient(k,i,0,k,i,n),q=0;q<f.length;q++)l.addColorStop(g[q],
"rgba("+b[0]+","+b[1]+","+b[2]+","+f[q]+")");j.fillStyle=l;j.globalAlpha=a;j.beginPath();j.arc(k,i,n,0,2*Math.PI,p);j.closePath();j.fill()};b.prototype.xja=function(a,b,f,g){var k=0.5*this.pk,i=0.5*this.pk,n=0.5*this.pk,j=this.u.getContext("2d");j.clearRect(0,0,this.pk,this.pk);for(var l=c.SE(b),q=j.createRadialGradient(k,i,0,k,i,n),b=0;b<f.length;b++)q.addColorStop(g[b],"rgba("+l[0]+","+l[1]+","+l[2]+","+f[b]+")");j.fillStyle=q;j.globalAlpha=a;j.beginPath();for(b=0;6>b;b++)f=45*Math.PI/180+2*Math.PI*
b/6,a=k+Math.cos(f)*n,f=i+Math.sin(f)*n,0==b?j.moveTo(a,f):j.lineTo(a,f);j.closePath();j.fill()};b.Jz="circle";b.PF="hexagon";return b});
define("kf","require,fd,ia,lc,cT,gQ,cB,jy,fi,dU".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("cT"),f=a("gQ"),g=a("cB"),k=a("jy"),i=a("fi"),n=a("dU"),a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this);this.set("tag","LensFlare");this.set("translationAlpha",0);this.nP=this.xia();this.vd=this.bja();this.Qg(this.nP.concat([this.vd]))});a.prototype.Qa=function(){f.prototype.Qa.call(this);this.trigger(e.Db);this.trigger(e.S);c.Tb(this.j,["yaw",
"pitch","bleaching","bleachingDistance"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["yaw","pitch","bleaching","bleachingDistance"],this.Sd,p);f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("yaw",this.j.get("yaw"));this.set("pitch",this.j.get("pitch"));this.set("bleaching",this.j.get("bleaching"));this.set("bleachingDistance",this.j.get("bleachingDistance"))};a.prototype.J=function(a){f.prototype.J.call(this,a);this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll",
a.ld);this.set("rendererCameraFOV",a.uf);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.Ob);if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){var b=this.get("composedTranslationX"),c=this.get("composedTranslationY"),e=this.get("composedTranslationZ");this.set("translationAlpha",Math.max(0,1-Math.sqrt(b*b+c*c+e*e)*10))}if(this.o("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","inVR",
"yaw","pitch","translationAlpha","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){var i=a.ja+this.get("composedDeltaYaw"),g=a.pitch+this.get("composedDeltaPitch"),k=a.ld+this.get("composedDeltaRoll"),b=this.get("translationAlpha"),e=c=0,n,x,y,F;if(!a.Ob)if(i=d.get(this.get("yaw"),this.get("pitch"),i,g,k,a.uf,a.width,a.height)){x=a.width*0.5;F=a.height*0.5;n=i.x;y=i.y;x=(x-n)*2;F=(F-y)*2;e=Math.sqrt(x*x+F*F);c=Math.sqrt(a.width*a.width,a.height*a.height);a=Math.min(a.width,a.height);c=
Math.max(0,Math.min(0.7,1-e/c))*b;i=this.get("bleaching");a=1-Math.max(0,Math.min(1,e/(a*this.get("bleachingDistance"))));e=i*a*b}for(a=0;a<this.nP.length;a++){b=this.nP[a];b.set("alpha",c);if(c>0){b.set("centerX",n+x*j[a].position);b.set("centerY",y+F*j[a].position)}}this.vd.set("alpha",e)}};a.prototype.xia=function(){return j.map(function(a){var b=(new i(a.form,a.Pv,a.opacity,a.color,a.ov,a.pv)).og(),c=new n;c.ri(b);b=new k;b.set("textureSource",c);b.set("width",a.size);b.set("height",a.size);b.set("offsetX",
a.size*0.5);b.set("offsetY",a.size*0.5);b.set("alpha",0);return b})};a.prototype.bja=function(){return new g("#ffffff")};var j=[{form:i.PF,position:0.1,size:52,Pv:128,opacity:0.8,color:"#FCFCFC",ov:[1,0.5],pv:[0,0.866]},{form:i.PF,position:0.2,size:52,Pv:128,opacity:0.6,color:"#C8FCC8",ov:[1,0.5],pv:[0,0.866]},{form:i.Jz,position:0.36,size:112,Pv:128,opacity:0.5,color:"#C8C8FC",ov:[1,0.9,0.6,0],pv:[0,0.2,0.4,1]},{form:i.Jz,position:0.47,size:32,Pv:128,opacity:0.3,color:"#96C8AF",ov:[1,1,0],pv:[0,
0.9,1]},{form:i.Jz,position:0.65,size:52,Pv:128,opacity:0.7,color:"#FCFCFC",ov:[0.7,0.7,0.2,0],pv:[0,0.1,0.4,1]},{form:i.PF,position:0.88,size:128,Pv:128,opacity:0.4,color:"#AF96C8",ov:[1,0.5],pv:[0,0.866]},{form:i.Jz,position:1,size:33,Pv:128,opacity:0.8,color:"#C89696",ov:[0.8,0.8,0.6,0],pv:[0,0.2,0.4,1]}];return a});
define("bz",["require","dH"],function(a){function b(a,b,k){d.style.fontFamily=e.Zr(b.fontFamily);d.style.fontSize=b.fontSize;d.style.fontWeight=b.fontWeight;d.style.fontStyle=b.fontStyle;d.innerHTML=a;document.body.appendChild(d);var i=new c(Math.ceil(d.clientWidth),Math.ceil(d.clientHeight));document.body.removeChild(d);k&&(k.font=b.fontSize+" "+e.Zr(b.fontFamily),a=k.measureText(a).width,i.height*=a/i.width,i.width=a);return i}function c(a,b){this.width=a;this.height=b}var e=a("dH"),d=document.createElement("div");
d.style.display="inline-block";d.style.margin=0;d.style.padding=0;d.style.whiteSpace="nowrap";b.t0=function(){this.fontFamily="Arial";this.fontSize="12px";this.fontWeight="400";this.fontStyle="normal"};b.zza=c;return b});
define("ka",["require","bz","dH"],function(a){function b(a,b){this.Na=a;this.H7=5;this.Oc=b.map(function(b){return new c(a,b)});this.px=this.qx=this.Fh=this.xe=0;this.vW();this.u=document.createElement("canvas");this.u.width=this.xe;this.u.height=this.Fh;this.ha=this.u.getContext("2d");this.Z=p;this.td=this.A7=-1}function c(a,b){this.vv=a;this.item=b;this.label=b.get("label");this.fontFamily=this.vv.get("fontFamily","Arial");this.fontSize="12px";this.backgroundColor=this.vv.get("backgroundColor",
"#000000");this.nda=this.vv.get("rollOverBackgroundColor",this.backgroundColor);this.Ywa=this.vv.get("selectedBackgroundColor",this.nda);this.cba=this.vv.get("fontColor","#000000");this.oda=this.vv.get("rollOverFontColor",b.cba);this.Zwa=this.vv.get("selectedFontColor",b.oda);this.gea=this.fea=this.hea=this.iea=this.height=this.width=this.left=this.top=0;this.status=z;this.pY=p}var e=a("bz"),d=a("dH");c.prototype.Vya=function(){var a=new e.t0;a.fontFamily=this.fontFamily;a.fontSize=this.fontSize;
a=e(this.label,a);this.iea=a.width;this.hea=a.height};c.prototype.hya=function(a){this.status!=a&&(this.status=a,this.pY=p)};c.prototype.Uta=function(a){if(this.pY){this.pY=z;var b,c;switch(this.status){case "normal":b=this.backgroundColor;c=this.cba;break;case "over":b=this.nda;c=this.oda;break;case "selected":b=this.Ywa,c=this.Zwa}a.clearRect(this.left,this.top,this.width,this.height);a.fillStyle=b;a.fillRect(this.left,this.top,this.width,this.height);a.fillStyle=c;a.font=this.fontSize+" '"+this.fontFamily+
"'";a.font=this.fontSize+(isNaN(this.fontSize)?"":"px")+" "+d.Zr(this.fontFamily);a.textBaseline="middle";a.textAlign="center";a.fillText(this.label,Math.round(this.fea),Math.round(this.gea));return p}return z};b.prototype.$c=R("xe");b.prototype.Nd=R("Fh");b.prototype.og=R("u");b.prototype.vW=function(){var a=0,b=0;this.Oc.forEach(function(c){c.Vya();a=Math.max(c.iea,a);b=Math.max(c.hea,b)});this.qx=a+2*this.H7;this.px=b+2*this.H7;var c=0,d=0,e=0;this.Oc.forEach(function(a){20<=e&&(e=0,d+=this.qx,
c=0);a.left=d;a.top=c;a.fea=d+0.5*this.qx;a.gea=c+0.5*this.px;a.width=this.qx;a.height=this.px;e+=1;c+=this.px}.bind(this));this.xe=Math.ceil(this.Oc.length/20)*this.qx;this.Fh=Math.min(20,this.Oc.length)*this.px};b.prototype.update=function(){for(var a=z,b=0;b<this.Oc.length;b++)this.Oc[b].hya(this.A7==b?"over":this.td==b?"selected":"normal"),a=this.Oc[b].Uta(this.ha)||a;return a};b.prototype.oba=function(a,b){var c=-1;0<=a&&a<this.xe&&0<=b&&b<this.Fh&&(c=20*Math.floor(a/this.qx)+Math.floor(b/this.px),
c>=this.Oc.length&&(c=-1));return c};b.prototype.rZ=P("A7");b.prototype.xZ=P("td");b.prototype.clear=function(){this.Oc=this.u=this.ha=this.Na=r};return b});
define("eB","require,fd,lc,hf,ka,dU,kO,bq".split(","),function(a){function b(a,b){var c=(b-a)*0.98;Math.abs(c)<1.0E-5&&(c=0);return b-c}var c=a("fd"),e=a("lc"),d=a("hf"),f=a("ka"),g=a("dU"),k=a("kO"),i=a("bq"),a=c.extend(d,function(a){d.call(this);this.Na=a;this.u=r;this.cp=this.lj=this.rU=this.So=m;this.p2=20;this.Yd=r;this.ub=this.Na.get("opacity",0.5);this.pC=this.Na.get("rollOverOpacity",this.ub);this.Cma=1;this.Ema=0.66;this.set("tag","MenuButton");this.set("visible",z);this.set("over",z);this.set("centerDistance",
m)});a.prototype.J=function(a){this.lg(a);this.DD(a);this.Tf(a);this.kp(a);d.prototype.J.call(this,a)};a.prototype.lg=function(){if(this.get("visible")){if(!this.u){this.get("textureSource")||this.set("textureSource",new g);this.u=new f(this.Na,[this.Na]);this.get("textureSource").ri(this.u.og());this.set("contentWidth",this.u.$c());this.set("contentHeight",this.u.Nd());this.set("hfov",2*Math.atan2(this.u.$c()*0.5,300)*j);this.set("distance",this.Na.get("distance"))}if(this.u.update()){this.get("textureSource").update();
this.Ga()}this.o("over")&&this.u.rZ(this.get("over")?0:-1)}};a.prototype.DD=function(a){if(this.o("visible"))this.Yd=new k("linear",[new i("displayCoef",this.get("visible")?0:1,this.get("visible")?1:0,m)],300);if(this.Yd)this.Yd.Je()?this.Yd=r:this.Yd.cb(a.wd)};a.prototype.Tf=function(a){if(this.get("visible")||this.Yd){this.lj=a.ja;this.cp=Math.min(90,Math.max(-90,this.p2+this.p2-a.pitch));if(this.o("visible")&&this.get("visible")){this.set("yaw",a.ja);this.set("pitch",a.pitch)}else{for(;this.lj+
180<this.So;)this.So=this.So-360;for(;this.lj-180>this.So;)this.So=this.So+360;var c=(this.lj-this.So)/a.wd,d=(this.cp-this.rU)/a.wd,e=Math.atan2(d,c),d=Math.sqrt(d*d+c*c),d=Math.min(d,10*n),c=Math.cos(e)*d,e=Math.sin(e)*d;this.set("yaw",b(this.get("yaw"),this.lj+c));this.set("pitch",b(this.get("pitch"),this.cp+e))}this.So=this.lj;this.rU=this.cp;e=this.get("yaw")-a.ja;a=this.get("pitch")-a.pitch;this.set("centerDistance",Math.sqrt(e*e+a*a))}};a.prototype.kp=function(){if(!this.get("visible")&&!this.Yd)this.set("alpha",
0);else if(this.o("over","centerDistance")||this.Yd){var a=this.get("over")?this.pC:this.ub,b=this.Ema,c=this.get("centerDistance")/this.get("hfov");if(c<1){b=b+(1-c)*(this.Cma-b);a=a+(1-c)*(this.pC-a)}if(this.Yd){a=a*this.Yd.wb("displayCoef");b=b*this.Yd.wb("displayCoef")}this.set("alpha",a);this.set("scale",b)}};a.prototype.Aj=function(a){if(a.Zd==e.Ai){var b=z;this.get("visible")&&!a.th()&&(b=this.po(a.Cl).length>0);if(b){a.Qr(this.Na);a.Rr(this.Na);a.ki(this.get("distance"))}if(this.get("over")!=
b){this.get("over")&&this.Na.trigger(e.Ib);this.set("over",b);this.get("over")&&this.Na.trigger(e.tc)}}else if(a.Zd==e.zi&&this.get("visible")&&!a.th()&&this.po(a.Cl).length>0){a.Jp(this.Na);this.Na.trigger(e.T);this.trigger(e.T)}};var n=Math.PI/180,j=180/Math.PI;return a});
define("hi","require,fd,lc,hf,ka,dU,kO,bq".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("ka"),f=a("dU"),g=a("kO"),k=a("bq"),a=b.extend(e,function(a,b){e.call(this);this.Na=a;this.JB=b;this.u=r;this.rU=this.So=m;this.Yd=r;this.ub=this.Na.get("opacity",0.5);this.pC=this.Na.get("rollOverOpacity",this.ub);this.set("textureSource",new f);this.u=new d(this.Na,b);this.set("tag","MenuPanel");this.get("textureSource").ri(this.u.og());this.set("contentWidth",this.u.$c());this.set("contentHeight",
this.u.Nd());this.set("hfov",2*Math.atan2(this.u.$c()*0.5,300)*i);this.set("distance",this.Na.get("distance"));this.set("overIndex",-1);this.set("selectedIndex",-1);this.n3=z});a.prototype.Qa=function(){e.prototype.Qa.call(this)};a.prototype.Ya=function(){e.prototype.Ya.call(this)};a.prototype.J=function(a){this.lg(a);this.DD(a);this.Tf(a);e.prototype.J.call(this,a)};a.prototype.lg=function(){this.o("selectedIndex")&&this.u.rZ(this.get("selectedIndex"));this.o("overIndex")&&this.u.rZ(this.get("overIndex"));
if(this.u.update()){this.get("textureSource").update();this.Ga()}};a.prototype.DD=function(a){if(!this.Yd&&!this.n3)this.Yd=new g("linear",[new k("alpha",0,1,m),new k("scale",0,1,m),new k("yaw",a.ja,this.get("yaw"),m),new k("pitch",a.pitch,this.get("pitch"),m)],300);if(this.Yd)if(this.Yd.Je()){this.n3=p;this.Yd=r}else this.Yd.cb(a.wd)};a.prototype.Tf=function(){if(this.Yd){var a=this.get("overIndex")<0?this.ub:this.pC;this.set("alpha",a*this.Yd.wb("alpha"));this.set("scale",this.Yd.wb("scale"));this.set("yaw",
this.Yd.wb("yaw"));this.set("pitch",this.Yd.wb("pitch"))}else if(this.o("overIndex")){a=this.get("overIndex")<0?this.ub:this.pC;this.set("alpha",a)}};a.prototype.Aj=function(a){if(a.Zd==c.Ai){var b=-1;if(!a.th()){var d=this.po(a.Cl).filter(function(a){return a.source==this.u.og()}.bind(this));d.length>0&&(b=this.u.oba(d[0].x,d[0].y))}if(b>=0){a.Qr(this.JB[b]);a.Rr(this.JB[b]);a.ki(this.get("distance"))}this.get("overIndex")>=0!=b>=0&&(b>0?this.trigger(c.tc):this.trigger(c.Ib));if(this.get("overIndex")!=
b){this.get("overIndex")>=0&&this.JB[this.get("overIndex")].trigger(c.Ib);this.set("overIndex",b);this.get("overIndex")>=0&&this.JB[this.get("overIndex")].trigger(c.tc)}}else if(a.Zd==c.zi&&!a.th()){d=this.po(a.Cl).filter(function(a){return a.source==this.u.og()}.bind(this));if(d.length>0){b=this.u.oba(d[0].x,d[0].y);if(b>=0){d=this.JB[b];this.set("selectedIndex",b);a.Jp(d);a.ki(this.get("distance"));d.trigger(c.T);this.trigger(c.T,{item:d})}}}};var i=180/Math.PI;return a});
define("iy",["require","fd","lc","gQ","hi"],function(a){var b=a("fd"),c=a("lc"),e=a("gQ"),d=a("hi"),a=b.extend(e,function(a){e.call(this);this.Na=a;this.nr=[];this.Hx=r;this.set("tag","MenuPanels");this.set("visible",z)});a.prototype.J=function(a){this.o("visible")&&this.get("visible")&&(this.set("yaw",a.ja),this.set("pitch",a.pitch),this.C1(this.Na));e.prototype.J.call(this,a)};a.prototype.C1=function(a){var a=new d(this.Na,a.get("children",[])),b=this.get("yaw");this.Oa().forEach(function(a){b+=
a.get("hfov")+g});a.set("yaw",b);a.set("pitch",this.get("pitch"));this.xga(a);this.appendChild(a)};a.prototype.y8=function(a){this.Oa().slice(a).forEach(function(a){this.Voa(a);a.remove()}.bind(this));this.nr=this.nr.filter(function(a){return 0<=this.Oa().indexOf(a)}.bind(this))};a.prototype.xga=function(a){a.bind(c.tc,this.M7,this,p);a.bind(c.Ib,this.L7,this,p);a.bind(c.T,this.K7,this,p)};a.prototype.Voa=function(a){a.unbind(c.tc,this.M7,this,p);a.unbind(c.Ib,this.L7,this,p);a.unbind(c.T,this.K7,
this,p)};a.prototype.M7=function(a){0>this.nr.indexOf(a.source)&&(this.nr.push(a.source),1==this.nr.length&&this.E2())};a.prototype.L7=function(a){a=this.nr.indexOf(a.source);0<=a&&(this.nr.splice(a,1),0==this.nr.length&&this.cqa())};a.prototype.K7=function(a){var b=a.source,a=a.data.item;a.get("children",[]).length?(this.y8(this.Oa().indexOf(b)+1),this.C1(a)):this.I2()};a.prototype.I2=function(){this.set("visible",z);this.y8(0);this.E2();this.trigger(c.zs)};a.prototype.E2=function(){this.Hx&&(clearTimeout(this.Hx),
this.Hx=r)};a.prototype.cqa=function(){this.Hx||(this.Hx=setTimeout(function(){this.Hx=r;this.I2()}.bind(this),f))};var f=3E3,g=1;return a});
define("eF","require,fd,lc,gQ,eB,iy".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gQ"),d=a("eB");MenuPanels=a("iy");a=b.extend(e,function(a){e.call(this);this.j=a;this.dh.push(this.j);this.set("tag","Menu");this.set("visible",z);this.uc=new d(this.j);this.uc.bind(c.T,this.qha,this,z);this.mf=new MenuPanels(this.j);this.mf.bind(c.zs,this.$na,this,z);this.Qg([this.uc,this.mf])});a.prototype.Qa=function(){e.prototype.Qa.call(this);this.trigger(c.Db);this.trigger(c.S)};a.prototype.J=function(a){this.set("visible",
a.Ob);if(this.o("visible")){this.uc.set("visible",this.get("visible"));this.mf.set("visible",z)}e.prototype.J.call(this,a)};a.prototype.qha=function(){this.uc.set("visible",z);this.mf.set("visible",p)};a.prototype.$na=function(){this.uc.set("visible",this.get("visible"))};return a});
define("kX","require,fd,lc,hf,dU,hL,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("dU");EventAggregator=a("hL");ProgressEvent=a("iC");a=b.extend(e,function(){e.call(this);this.set("tag","CustomPlane");this.set("source",r);this.set("sourceUpdated",z);this.nc=this.Be=r});a.prototype.Qa=function(){this.Be=(new EventAggregator(c.S)).vi(this.ol.bind(this));this.nc=(new EventAggregator(c.S)).Ek(this.No.bind(this));e.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Be.dispose();
this.nc.dispose();e.prototype.Ya.call(this)};a.prototype.J=function(a){if(this.o("source","sourceUpdated","useMipmapping","anisotropy")){var b=this.get("textureSource");b||this.set("textureSource",b=new d);this.o("source")&&b.ri(this.get("source"));this.o("sourceUpdated")&&(b.update(),this.set("sourceUpdated",z));this.o("useMipmapping")&&b.$M(this.get("useMipmapping"),this.get("anisotropy"))}e.prototype.J.call(this,a);if(this.o("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Be.yd(a);
this.nc.yd(a)}}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.No=function(a,b){var d=0;b.ln(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new ProgressEvent(c.sc,d/b.Vc.length))};return a});
define("hp",["require"],function(){function a(a){this.Pb=this.dB(a.get("surfaceReticleColor"));this.Pm=this.dB(a.get("surfaceReticleSelectionColor"));this.ub=a.get("surfaceReticleOpacity");this.T8=a.get("surfaceReticleSelectionOpacity");this.Fh=this.xe=128;this.Una=0.456;this.Vna=0.088;this.Ola=0.18;this.u=document.createElement("canvas");this.u.width=this.xe;this.u.height=this.Fh;this.ha=this.u.getContext("2d");this.ha.fillStyle="red";this.ha.sva=p;this.ha.fillRect(0,0,this.xe,this.Fh);this.Nf=this.MP=
z;this.sx=this.eJ=m;this.at=0}a.prototype.wR=function(a){return this.kk(this.Pm[0]*a+(1-a)*this.Pb[0],this.Pm[1]*a+(1-a)*this.Pb[1],this.Pm[2]*a+(1-a)*this.Pb[2],this.T8*a+(1-a)*this.ub)};a.prototype.dB=function(a){a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]};a.prototype.kk=function(a,c){return"rgba("+a.join(",")+", "+c+")"};a.prototype.Fa=function(a){this.ua!=a&&(this.ua=a,this.Z=p)};a.prototype.$c=R("xe");a.prototype.Nd=R("Fh");
a.prototype.og=R("u");a.prototype.update=function(){if(!this.Z)return z;this.Z=z;this.ha.clearRect(0,0,this.xe,this.Fh);var a=[this.Pm[0]*this.ua+(1-this.ua)*this.Pb[0],this.Pm[1]*this.ua+(1-this.ua)*this.Pb[1],this.Pm[2]*this.ua+(1-this.ua)*this.Pb[2]],c=this.T8*this.ua+(1-this.ua)*this.ub;this.ha.strokeStyle=this.kk(a,c);this.ha.fillStyle=this.kk(a,c*this.ua);this.ha.beginPath();this.ha.lineWidth=this.xe*this.Vna;this.ha.arc(0.5*this.xe,0.5*this.xe,this.xe*this.Una,0,2*Math.PI,z);this.ha.stroke();
this.ha.beginPath();this.ha.arc(0.5*this.xe,0.5*this.xe,this.xe*this.Ola,0,2*Math.PI,z);this.ha.fill();return p};return a});
define("ft","require,fd,ia,lc,gS,gQ,kX,hp,cA,fG".split(","),function(a){function b(a,b,c){this.zM=a;this.zM.bind(d.D("distanceToFloor"),this.J,this,z);this.Jg=b;this.Jg.bind(d.D("yaw"),this.J,this,z);this.Jg.bind(d.D("distance"),this.J,this,z);this.Jg.bind(d.D("enabled"),this.J,this,z);this.Jg.bind(d.D("enabledInSurfaceSelection"),this.J,this,z);this.ua=r;this.qi=new k;this.qi.set("hfov",20);this.qi.set("vfov",20);this.qi.set("pitch",-90);this.qi.set("useMipmapping",p);this.qi.set("anisotropy",16);
this.qi.set("source",c.og());this.qi.set("contentWidth",c.$c());this.qi.set("contentHeight",c.Nd());this.J()}var c=a("fd"),e=a("ia"),d=a("lc"),f=a("gS"),g=a("gQ"),k=a("kX"),i=a("hp"),n=a("cA"),j=a("fG"),a=c.extend(g,function(a){g.call(this);this.MI=this.MI.bind(this);this.Fm=this.Fm.bind(this);this.KI=this.KI.bind(this);this.set("tag","SurfaceSelector");this.set("reticleVisible",z);this.set("enabled",z);this.M=a;this.lG=[];this.RA=new j;this.Ee=new n;this.Fb=new k;this.Fb.set("useMipmapping",p);this.Fb.set("anisotropy",
16);this.Fb.set("hfov",20);this.Fb.set("vfov",20);this.Fb.set("pitch",-90);this.set("reticleCoef",1);this.Qg([this.Fb])});a.prototype.Qa=function(){this.Sia();g.prototype.Qa.call(this);e.Tb(this.M,["distanceToFloor"],this.MI,p);e.Tb(this.M,["adjacentPanoramas"],this.Fm,p);e.Tb(this.Sa.Qb,["adjacentPanoramaPositionsEnabled"],this.KI,p);this.trigger(d.Db);this.trigger(d.S)};a.prototype.Ya=function(){g.prototype.Ya.call(this);e.ac(this.M,["distanceToFloor"],this.MI);e.ac(this.M,["adjacentPanoramas"],
this.Fm);e.ac(this.Sa.Qb,["adjacentPanoramaPositionsEnabled"],this.KI);this.a9([])};a.prototype.MI=function(){var a=this.M.get("distanceToFloor");this.Fb.set("distance",a);var a=f.kv(a),b=f.aY(a,90),c=f.bY(a,90);this.RA.Pd.set(-b*0.5,-a,-c*0.5);this.RA.pg.set(b*0.5,-a,-c*0.5);this.RA.gs.set(-b*0.5,-a,c*0.5);this.G8=a/f.sp()};a.prototype.Fm=function(){this.a9(this.M.get("adjacentPanoramas",[]))};a.prototype.KI=function(){this.Fm()};a.prototype.a9=function(a){this.lG.forEach(function(a){a.clear()});
this.lG=a.map(function(a){return new b(this.M,a,this.mU)}.bind(this));a=[];this.Sa.Qb.get("adjacentPanoramaPositionsEnabled")&&(a=a.concat(this.lG.map(function(a){return a.qi})));a=a.concat([this.Fb]);this.Qg(a)};a.prototype.J=function(a){g.prototype.J.call(this,a);this.set("enabled",a.nF);this.KW(a);this.Nr(a)};a.prototype.KW=function(){if(this.o("enabled","reticleVisible","composedTranslationX","composedTranslationY","composedTranslationZ","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.Fb.set("alpha",
this.get("reticleVisible")?1:0);this.set("alpha",this.get("enabled")&&!this.get("composedTranslationX")&&!this.get("composedTranslationY")&&!this.get("composedTranslationZ")&&!this.get("composedDeltaYaw")&&!this.get("composedDeltaPitch")&&!this.get("composedDeltaRoll")?1:0);this.L$()}};a.prototype.Sia=function(){this.$x=new i(this.Sa.F);this.$x.Fa(this.get("reticleCoef"));this.Fb.set("source",this.$x.og());this.Fb.set("contentWidth",this.$x.$c());this.Fb.set("contentHeight",this.$x.Nd());this.mU=
new i(this.Sa.F);this.mU.Fa(0);this.mU.update(1)};a.prototype.Nr=function(a){this.o("reticleCoef")&&this.$x.Fa(this.get("reticleCoef"));this.Fb.set("sourceUpdated",this.$x.update(a.wd))};a.prototype.Aj=function(a){if(!this.get("enabled")||a.Cl.length==0||a.th()||a.mwa())this.set("reticleVisible",z);else{var b=a.Cl[0];this.Ee.Pd.set(b.origin.x,b.origin.y,b.origin.z);this.Ee.pg.set(b.origin.x+b.direction.x,b.origin.y+b.direction.y,b.origin.z+b.direction.z);if(b=this.RA.intersection(this.Ee,p)){var c=
this.RA.CM(b,p),e=2*(0.5-c.x),c=2*(0.5-c.y),f=l*Math.atan2(-e,c),i=-90+l*Math.atan2(Math.sqrt(e*e+c*c),1);if(i<-75||i>-1)this.set("reticleVisible",z);else{var j={x:e*this.G8,y:-c*this.G8};if(!a.fs()&&!a.xca())this.set("reticleVisible",z);else{this.set("reticleVisible",p);this.Fb.set("alpha",Math.min(1,(i- -75)/5));this.Fb.set("translationX",j.x);this.Fb.set("translationZ",j.y)}a.xca()&&a.fta([n]);var g=this.Sa.Qb.get("surfaceSelectionHorizontalAngle")*0.5,k=this.Sa.Qb.get("surfaceSelectionVerticalAngle")*
0.5,e=this.lG.map(function(a){var b=a.Cua(f),c=a.Zua(i),d=a.PX(j);return{Jg:a.Jg,eca:b,sea:c,Yaa:d}}).filter(function(a){return a.eca<g&&a.sea<k});if(e.length==0)this.set("reticleCoef",0);else{e.sort(function(a,b){return a.Yaa-b.Yaa});var n=e[0].Jg;this.set("reticleCoef",Math.max(0,Math.min(1,(1-e[0].eca/g)*(1-e[0].sea/k))));b=this.M.get("distanceToFloor")*Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z)/-b.y;a.ki(b);if(a.Zd==d.zi){a.Jp([n]);this.get("blendingActive")||n.trigger(d.Ci)}else{a.Qr([n]);a.fs()&&a.Rr([n]);
(n=this.Sa.F.get("displayTooltipInSurfaceSelection")&&n.get("panorama")&&n.get("panorama").get("label"))&&a.tL(n,0)}}}}else this.set("reticleVisible",z)}};b.prototype.clear=function(){this.zM.unbind(d.D("distanceToFloor"),this.J,this,z);this.zM=r;this.Jg.unbind(d.D("yaw"),this.J,this,z);this.Jg.unbind(d.D("distance"),this.J,this,z);this.Jg.unbind(d.D("enabled"),this.J,this,z);this.Jg.unbind(d.D("enabledInSurfaceSelection"),this.J,this,z);this.Jg=r};b.prototype.Cua=function(a){if(!this.ua)return Infinity;
a=Math.abs(this.ua.ja-a);return a>180?360-a:a};b.prototype.Zua=function(a){return!this.ua?Infinity:Math.abs(this.ua.pitch-a)};b.prototype.PX=function(a){if(!this.py)return Infinity;var b=a.x-this.py.x,a=a.y-this.py.y;return Math.sqrt(b*b+a*a)};b.prototype.J=function(){var a=this.Jg.get("yaw"),b=this.Jg.get("distance"),c=this.Jg.get("enabled")&&this.Jg.get("enabledInSurfaceSelection");if(a===m||b===m||!c){this.py=this.ua=r;this.qi.set("alpha",0)}else{var c=this.zM.get("distanceToFloor"),d=-90+Math.atan2(b,
c)*l;this.qi.set("alpha",d<-1?1:0);this.ua={ja:a,pitch:d};d=-Math.cos(a*q)*b/c;a=-Math.sin(a*q)*b/c;b=f.kv(c)/f.sp();this.py={x:a*b,y:d*b};this.qi.set("translationX",this.py.x);this.qi.set("translationZ",this.py.y);this.qi.set("distance",c)}};var l=180/Math.PI,q=Math.PI/180;return a});
define("O","require,fd,ia,lc,iC,gQ,ft,hL,kd,hd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("iC"),f=a("gQ"),g=a("ft"),k=a("hL"),i=a("kd"),n=a("hd"),j=0,a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.LI=this.LI.bind(this);this.Rd=this.Rd.bind(this);this.Fm=this.Fm.bind(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Panorama");this.set("loadingActive",z);this.set("blendingActive",p);this.set("currentTime",0);this.set("adjacentPanoramas",
[]);this.set("preloadEnabled",p);this.set("backgroundPreloadEnabled",p);this.set("surfaceSelectionEnabled",z);this.set("id","panorama_"+j++);this.set("ready",z);this.HJ=[];this.ik=this.nc=this.Cd=r;this.jf=new l;this.f8=new q;this.gra=new g(this.j);this.ek=new q;this.Qg([this.jf,this.f8,this.gra,this.ek])});a.prototype.Qa=function(){this.Cd=(new k(e.S)).vi(this.ol.bind(this));this.nc=(new k(e.sc)).Ek(this.gu.bind(this));this.ik=(new k(e.Db)).vi(this.ana.bind(this));f.prototype.Qa.call(this);c.Tb(this.j,
["currentTime"],this.LI,p);c.Tb(this.j,["frames","overlays","vrMenu","adjacentPanoramas"],this.Rd,p);c.Tb(this.j,["adjacentPanoramas"],this.Fm,p)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();this.ik.dispose();f.prototype.Ya.call(this);c.ac(this.j,["currentTime"],this.LI);c.ac(this.j,["frames","overlays","vrMenu","flipImageHorizontally"],this.Rd);c.ac(this.j,["adjacentPanoramas"],this.Fm);this.IV()};a.prototype.Rd=function(){function a(b,c,e){b=f.indexOf(b);return b<0?e:d[b].get(c,
e)}function b(c){return a(c,"projected",z)}var c=this.Sa.vp(this.j.get("frames"));c.forEach(function(a){a.set("panoramaId",this.get("id"));a.set("flipHorizontally",this.j.get("flipImageHorizontally"))}.bind(this));var d=this.j.get("overlays"),e=this.Sa.vp(d),f=e.slice(),j=e.filter(b).filter(function(b){return a(b,"enabled",p)});this.j.get("vrMenu")&&e.push(this.Sa.vp(this.j.get("vrMenu")));e.forEach(function(a){a.set("panoramaId",this.get("id"))}.bind(this));this.Cd.yd(c.concat(e));this.nc.yd(c.concat(e));
this.ik.yd(c.concat(j));this.f8.Qg(e.filter(b));this.jf.Qg(c);this.ek.Qg(e.filter(function(a){return!b(a)}));this.set("panoramaPixelsPerDegree",i.vba(this.j));this.Q$()};a.prototype.LI=function(){this.set("currentTime",this.j.get("currentTime",0))};a.prototype.Fm=function(){this.set("adjacentPanoramas",this.j.get("adjacentPanoramas",[]))};a.prototype.ol=function(){this.Rl();this.trigger(e.S)};a.prototype.ana=function(){this.Rl();this.set("ready",p);this.trigger(e.Db)};a.prototype.gu=function(){this.Rl()};
a.prototype.Rl=function(){var a=0;this.nc.ln(function(b){var c=0,d;this.Cd.pi(b)?c=100:(d=this.nc.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new d(e.sc,a/this.nc.Vc.length))};a.prototype.J=function(a){this.set("blendingActive",this.get("alpha")<1);this.set("backgroundPreloadEnabled",this.Sa.qb.get("backgroundPreloadEnabled")!==z);this.set("preloadEnabled",a.TE);this.o("adjacentPanoramas","loadingActive","preloadEnabled","backgroundPreloadEnabled")&&(this.get("loadingActive")&&this.get("backgroundPreloadEnabled")?
this.Qqa():this.IV());this.o("index")&&this.Q$();f.prototype.J.call(this,a)};a.prototype.mY=function(){return i.mY(this.j,this.get("preloadEnabled"))};a.prototype.Qqa=function(){this.IV();this.HJ=this.get("adjacentPanoramas").map(function(a){a=a.get("panorama");return[a,i.Ak(a,this.get("preloadEnabled"))]}.bind(this));this.HJ.forEach(function(a){n.Baa(a[0],a[1]);n.wM(a[0],1)})};a.prototype.IV=function(){this.HJ.forEach(function(a){n.wM(a[0],-1);n.Pwa(a[0],a[1])});this.HJ=[]};a.prototype.Q$=function(){var a=
this.get("index");this.jf.Oa().forEach(function(b,c,d){b.set("panoramaIndex",a);b.set("frameIndex",c);b.set("frameCount",d.length)})};var l=b.extend(f,function(){f.call(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("currentTime",0);this.set("tag","Group")});l.prototype.J=function(a){this.Oa().forEach(function(a,b,c){a.set("frontFrame",c[c.length-1])});f.prototype.J.call(this,a)};var q=b.extend(f,function(){f.call(this);this.Uk(["loadingActive",
"currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("currentTime",0);this.set("tag","Group")});return a});
define("bs",["require","fd","ej","dt"],function(a){var b=a("fd"),c=a("ej"),e=a("dt"),d=0,a=b.extend(c,function(){c.call(this);this.set("tag","PanoramaFrame");this.set("panoramaIndex",0);this.set("frameIndex",0);this.set("frameCount",1);this.set("id","frame_"+d++)});a.prototype.J=function(a){c.prototype.J.call(this,a);this.Nu()};a.prototype.Ru=function(){if(this.o("panoramaIndex","frameIndex","frameCount","meshGroup")){var a=this.get("meshGroup");if(a){var b=this.get("panoramaIndex"),c=this.get("frameIndex"),
d=this.get("frameCount"),n=a.children.length;a.children.forEach(function(a,f){e.UM(a,b+(f+c/d)/n)}.bind(this))}}};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b){e.setAttribute(a,e.us,this.get("panoramaId"));e.setAttribute(a,e.gN,b);e.setAttribute(a,e.Tv,this.get("id"))}.bind(this))}};return a});
define("kA","require,fd,ia,lc,gb,gQ,bs,hL,kd,eN,hS,iC".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("gb"),f=a("gQ"),g=a("bs"),k=a("hL"),i=a("kd"),n=a("eN"),j=a("hS"),l=a("iC"),a=b.extend(g,function(a){g.call(this);this.set("tag","ImagePanoramaFrame");this.V7=p;this.j=a;this.dh.push(this.j);this.mh=this.Be=this.ik=r;this.ZS=[];this.Rd=this.Rd.bind(this);this.Uk(["loadingActive","currentTime","panoramaId","panoramaPixelsPerDegree"]);this.Qg([this.ek=new q])});a.prototype.Qa=function(){this.ik=
new k(e.S);this.Be=new k(e.S);this.mh=new k(e.sc);g.prototype.Qa.call(this);c.Tb(this.j,["overlays"],this.Rd,p)};a.prototype.Ya=function(){this.ik.dispose();this.Be.dispose();this.mh.dispose();c.ac(this.j,["overlays"],this.Rd);g.prototype.Ya.call(this)};a.prototype.Rd=function(){this.ek.Qg(this.Sa.vp(this.j.get("overlays")));this.G$()};a.prototype.G$=function(){this.Be.yd([].concat(this.ZS,this.ek.Oa()));this.mh.yd([].concat(this.ZS,this.ek.Oa()))};a.prototype.Mi=function(){var a=[],b=[],c=[];i.WX(this.j,
this.V7).forEach(function(e,f){var g=n.Ita(this.j,e);if(i.Mva(e)){if(f==0){a=a.concat(g);b=b.concat(g)}j.Dn(g,f==0?j.Rk:j.QF);j.Cn(g,f==0?j.Ij:j.hO)}else{f==0&&(a=a.concat(g));b=b.concat(g);j.Dn(g,j.Rk);j.Cn(g,j.Ij)}j.ms(g,f==0?d.sO:d.Jj);j.uz(g,f);c=c.concat(g)}.bind(this));this.ik.yd(a);this.ZS=b;this.G$();this.Be.vi(this.ol.bind(this));this.ik.vi(this.xna.bind(this));this.mh.Ek(this.gu.bind(this));this.trigger(new l(e.sc,0));return c};a.prototype.xna=function(){this.trigger(e.Db)};a.prototype.ol=
function(){this.trigger(e.S)};a.prototype.J=function(a){this.V7=a.TE;this.nsa();g.prototype.J.call(this,a)};a.prototype.nsa=function(){var a=this.get("frontFrame");if(this.o("frontFrame")||a&&a.o("alpha"))this.ek.set("alpha",!a||a==this?1:1-a.get("alpha"))};a.prototype.gu=function(){var a=0;this.mh.ln(function(b){var c=0,d;this.Be.pi(b)?c=100:(d=this.mh.pi(b))&&(c=d.zh);a=a+c}.bind(this));this.trigger(new l(e.sc,a/this.mh.Vc.length))};var q=b.extend(f,function(){f.call(this);this.Uk(["loadingActive",
"panoramaId","panoramaPixelsPerDegree"]);this.set("loadingActive",z);this.set("tag","Group")});return a});
define("jp","require,dm,lc,bY,fr,kK".split(","),function(a){function b(a,b){this.Nb=a;this.C=b;this.gg=z;this.ag=[];this.Ni=this.Mw=m;this.Mc=[];this.zP();this.kQ();this.BK();this.ih()}function c(a,b,c){this.time=a;this.cue=b;this.action=c}var e=a("dm"),d=a("lc"),f=a("bY"),g=a("fr"),k=a("kK");b.prototype.clear=function(){this.uA();this.ag=[];this.iW();this.C=this.Nb=r};b.prototype.zP=function(){this.C.bind(k.Kd,this.gd,this,p);this.C.bind(d.zc,this.ih,this,p);this.C.bind(d.Da,this.mr,this,p)};b.prototype.iW=
function(){this.C.unbind(k.Kd,this.gd,this,p);this.C.unbind(d.zc,this.ih,this,p);this.C.unbind(d.Da,this.mr,this,p)};b.prototype.ih=function(){var a=this.C.Ie()!=g.K;if(this.gg!=a)(this.gg=a)?this.BK():this.uA()};b.prototype.mr=function(){this.Uu()};b.prototype.gd=function(){this.Uu()};b.prototype.BK=function(){this.Ni=this.Mw=0};b.prototype.Uu=function(){if(this.C&&this.gg){var a=this.Mc.slice(),b=this.C.qj(),c=b-this.Mw;if(c<0){this.Mc=[];this.Ni=0}c=c>=0&&c<2;this.Mw=b;var g;for(g=this.Ni;g<this.ag.length;g++)if(this.ag[g].time>
b)break;for(;this.Ni<g;this.Ni++){b=this.ag[this.Ni];if(b.action=="start"){this.Mc=e(this.Mc).union([b.cue]);c&&b.cue.trigger(new f(d.Jk))}else{this.Mc=e(this.Mc).difference([b.cue]);c&&b.cue.trigger(new f(d.Da))}}(a.length!=this.Mc.length||e(a).intersection(this.Mc).length!=this.Mc.length)&&this.wD()}};b.prototype.uA=function(){if(this.Mc.length>0){this.Mc=[];this.wD()}};b.prototype.wD=function(){this.Nb.trigger(new f(d.xf,{activeCues:this.Mc.slice()}))};b.prototype.kQ=function(){this.ag=[];var a=
this.Nb.get("cues",[]);e(a).each(function(a){this.ag.push(new c(a.get("startTime",0),a,"start"));this.ag.push(new c(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.ag.sort(function(a,b){return a.time==b.time?a.action==b.start?0:a.action=="start"?-1:1:a.time-b.time})};return b});
define("dR",["require","lc","fr","bY","kK"],function(a){function b(a,b,c){this.qb=a;this.Nb=b;this.C=c;this.C.Kp(this.vm=this.Nb.get("currentTime",0));this.C.Id(this.rd=this.qb.get("mute",z));this.C.ic(this.m=this.Nb.get("state",e.K));this.Kb=this.C.rj();this.yga();this.Dga();this.Tn()}var c=a("lc"),e=a("fr"),d=a("bY"),f=a("kK");b.prototype.clear=function(){this.Woa();this.$oa();this.Vo();this.C.ic(e.K);this.Nb.set("state",e.K);this.Nb.set("currentTime",0);this.Nb.set("duration",m)};b.prototype.v7=
function(){var a=this.Nb.get("state",e.K);this.m!=a&&this.C.ic(this.m=a)};b.prototype.u7=function(){var a=this.Nb.get("currentTime",0);this.vm!=a&&this.C.Kp(this.vm=a)};b.prototype.gC=function(){var a=this.qb.get("mute",0);this.rd!=a&&this.C.Id(this.rd=a)};b.prototype.mC=function(){this.Nb.set("currentTime",this.vm=this.C.qj())};b.prototype.kC=function(){this.Nb.set("duration",this.Kb=this.C.rj())};b.prototype.lC=function(){this.Nb.set("state",this.m=this.C.Ie())};b.prototype.nC=function(){this.Nb.trigger(new d(c.Da));
this.Nb.get("loop")&&(this.C.Kp(this.vm=0),this.C.ic(this.m=e.R))};b.prototype.yga=function(){this.qb.bind(c.D("mute"),this.gC,this,p)};b.prototype.Woa=function(){this.qb.unbind(c.D("mute"),this.gC,this,p)};b.prototype.Dga=function(){this.Nb.bind(c.D("state"),this.v7,this,p);this.Nb.bind(c.D("currentTime"),this.u7,this,p)};b.prototype.$oa=function(){this.Nb.unbind(c.D("state"),this.v7,this,p);this.Nb.unbind(c.D("currentTime"),this.u7,this,p)};b.prototype.Tn=function(){this.C.bind(f.Kd,this.mC,this,
p);this.C.bind(f.Xf,this.kC,this,p);this.C.bind(c.zc,this.lC,this,p);this.C.bind(c.Da,this.nC,this,p)};b.prototype.Vo=function(){this.C.unbind(f.Kd,this.mC,this,p);this.C.unbind(f.Xf,this.kC,this,p);this.C.unbind(c.zc,this.lC,this,p);this.C.unbind(c.Da,this.nC,this,p)};return b});
define("hM",["require","kK","lc"],function(a){function b(a,b){this.Nb=a;this.C=b;this.$O=[];this.zP();this.Kf()}a("kK");var c=a("lc");b.prototype.clear=function(){this.$ha();this.iW();this.C=this.Nb=r};b.prototype.zP=function(){this.C.bind(c.xf,this.Kf,this,p)};b.prototype.iW=function(){this.C.unbind(c.xf,this.Kf,this,p)};b.prototype.Kf=function(){this.Nb.set("activeSubtitles",this.$O=this.C.qm)};b.prototype.$ha=function(){this.Nb.get("activeSubtitles")==this.$O&&this.Nb.set("activeSubtitles",this.$O=
[])};return b});
define("cZ","require,fd,lc,gb,fr,bs,hL,eN,jp,dR,dt,hS,hM,kK,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("gb"),d=a("fr"),f=a("bs"),g=a("hL"),k=a("eN"),i=a("jp"),n=a("dR"),j=a("dt"),l=a("hS"),q=a("hM"),o=a("kK"),t=a("iC"),a=b.extend(f,function(a){f.call(this);this.j=a;this.dh.push(this.j);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoPanoramaFrame");this.set("frameEmpty",m);this.set("atStart",m);this.naa=this.j.get("stereoSphere")||this.j.get("sphere");
this.lb=o.Mg(this.naa);this.zy=[];this.ru=[];this.mh=this.Be=this.rf=this.C=r});a.prototype.Qa=function(){this.Be=(new g(c.S)).vi(this.ol.bind(this));this.mh=(new g(c.sc)).Ek(this.gu.bind(this));this.C=new o(this.Sa.qb,this.naa);this.dl=new i(this.j.Vy(),this.C);this.ta=new n(this.Sa.qb,this.j.Vy(),this.C);this.bp=new q(this.j.Vy(),this.C);this.Tn();f.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Be.dispose();this.mh.dispose();this.Vo();this.dl.clear();this.dl=r;this.ta.clear();this.ta=
r;this.bp.clear();this.bp=r;this.C.clear();this.rf=this.C=r;f.prototype.Ya.call(this)};a.prototype.Mi=function(){this.zy=k.Nta(this.j,this.lb);this.Nsa=l.Qv(j.cs(this.zy[0])[0]);this.zy.forEach(function(a){l.Dn(a,l.Rk);l.Cn(a,l.Ij)});if(this.lb.get("posterURL")){this.ru=k.Ota(this.j,this.lb);this.ru.forEach(function(a){l.Dn(a,l.Rk);l.Cn(a,l.Ij);l.ms(a,e.sO)})}else this.ru=[];var a=[].concat(this.zy,this.ru);this.Be.yd(a);this.mh.yd(a);this.trigger(new t(c.sc,0));return a};a.prototype.J=function(a){var b=
this.C.QL();this.set("frameEmpty",b.isEmpty());this.set("atStart",!(this.get("currentTime")>1));f.prototype.J.call(this,a);if(!this.rf||!this.rf.isEqual(b)){this.rf=b;this.Nsa.ri(this.rf.zt);this.Ga()}else this.C.Ie()==d.R&&this.Ga()};a.prototype.hi=function(){if(this.o("composedAlpha","meshGroup","frameEmpty","atStart"))if(this.ru.length&&this.get("frameEmpty")&&this.get("atStart")){this.ru.forEach(function(a){j.xd(a,this.get("composedAlpha"))}.bind(this));this.zy.forEach(function(a){j.xd(a,0)}.bind(this))}else{this.ru.forEach(function(a){j.xd(a,
0)}.bind(this));this.zy.forEach(function(a){j.xd(a,this.get("composedAlpha"))}.bind(this))}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.gu=function(a,b){var d=0;b.ln(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new t(c.sc,d/b.Vc.length))};a.prototype.ih=function(){this.Ga()};a.prototype.gd=function(){this.Ga()};a.prototype.Tn=function(){this.C.bind(o.Kd,this.gd,this,p);this.C.bind(c.zc,this.ih,this,p)};a.prototype.Vo=function(){this.C.unbind(o.Kd,this.gd,this,
p);this.C.unbind(c.zc,this.ih,this,p)};return a});
define("cJ","require,fd,lc,hf,jJ,hL,iC".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("hf"),d=a("jJ"),f=a("hL"),g=a("iC"),a=b.extend(e,function(){e.call(this);this.set("tag","ImagePlane");this.set("url",r);this.nc=this.Cd=r});a.prototype.Qa=function(){this.Cd=(new f(c.S)).vi(this.ol.bind(this));this.nc=(new f(c.sc)).Ek(this.No.bind(this));e.prototype.Qa.call(this)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();e.prototype.Ya.call(this)};a.prototype.J=function(a){if(this.o("url")){var b=
this.get("url");this.set("textureSource",b?new d(b):r)}e.prototype.J.call(this,a);if(this.o("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Cd.yd(a);this.nc.yd(a)}}};a.prototype.ol=function(){this.trigger(c.Db);this.trigger(c.S)};a.prototype.No=function(a,b){var d=0;b.ln(function(a){(a=b.pi(a))&&(d=d+a.zh)});this.trigger(new g(c.sc,d/b.Vc.length))};return a});
define("bo","require,fd,ia,lc,fr,fH,gQ,cB,kX,cJ,dR,ko,hL,kd,dB,im,J,iC,kO,bq,kK".split(","),function(a){function b(a,b){for(var c=a-b;c>180;)c=c-360;for(;c<-180;)c=c+360;return c+b}var c=a("fd"),e=a("ia"),d=a("lc"),f=a("fr");a("fH");var g=a("gQ"),k=a("cB"),i=a("kX"),n=a("cJ"),j=a("dR"),l=a("ko"),q=a("hL"),o=a("kd"),t=a("dB"),s=a("im"),u=a("J"),v=a("iC"),w=a("kO"),x=a("bq"),y=a("kK"),F=Math.PI/180,a=c.extend(g,function(a){g.call(this);this.j=a;this.dh.push(this.j);this.Rd=this.Rd.bind(this);this.Uk(["loadingActive",
"currentTime","panoramaPixelsPerDegree"]);this.set("tag","Popup");this.set("inVR",z);this.set("enabledInStandard",p);this.set("interactionEnabled",p);this.set("loadingActive",z);this.set("frameEmpty",p);this.set("state",f.K);this.set("itemVisible","none");this.set("visible",z);this.set("visiblePosition",0);this.set("alpha",0);this.set("over",z);this.set("gazeOver",z);this.set("video",r);this.set("image",r);this.dd=this.Ea=this.ia=this.nc=this.Cd=r;this.wa=new l;this.Vn=this.Yq=this.ji=this.rf=this.C=
r});a.prototype.Qa=function(){this.Cd=(new q(d.S)).vi(this.cu.bind(this));this.nc=(new q(d.sc)).Ek(this.fu.bind(this));g.prototype.Qa.call(this);this.yia();this.appendChild(this.dd);e.Tb(this.j,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image.levels.url","video","state","visible"],this.Rd,p)};a.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();e.ac(this.j,["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image.levels.url","video","state",
"visible"],this.Rd);this.xt();this.Dq();this.p3();g.prototype.Ya.call(this)};a.prototype.Rd=function(){var a=o.Qua(this.j,this.get("panoramaPixelsPerDegree"));this.set("imageURL",a&&a.get("url"));this.set("imageWidth",a&&a.get("width"));this.set("imageHeight",a&&a.get("height"));this.set("video",this.j.get("video"));this.set("state",this.j.get("state"));this.set("visible",this.j.get("visible"));this.set("popupDistance",this.j.get("popupDistance"));this.set("popupMaxWidth",this.j.get("popupMaxWidth"));
this.set("popupMaxHeight",this.j.get("popupMaxHeight"));this.set("playbackPositions",this.j.get("playbackPositions"))};a.prototype.J=function(a){this.Ar=a.ja;this.zr=a.pitch;this.lW(a);this.rsa();this.MD(a);this.kp(a);this.jsa(a);this.Wra(a);g.prototype.J.call(this,a)};a.prototype.rsa=function(){if(this.o("playbackPositions","currentTime")){this.wa.qs(this.get("playbackPositions"));this.wa.ps(this.get("currentTime"));this.set("sourceYaw",this.wa.get("yaw"));this.set("sourcePitch",this.wa.get("pitch"));
this.set("sourceRotationX",this.wa.get("rotationX"));this.set("sourceRotationY",this.wa.get("rotationY"));this.set("sourceRotationZ",this.wa.get("rotationZ"));this.set("sourceHFOV",this.wa.get("hfov"))}};a.prototype.lW=function(){if(this.o("video","imageURL")){var a=[this.dd];if(this.o("imageURL")){this.BA();this.ia&&a.push(this.ia)}if(this.o("video")){this.EA();this.Ea&&a.push(this.Ea)}this.Cd.yd(a);this.nc.yd(a);this.Qg(a)}};a.prototype.MD=function(){if(this.C){var a=this.C.QL();this.set("frameEmpty",
!!a&&a.isEmpty());if(!this.rf||a&&!this.rf.isEqual(a)){this.rf=a;this.Ea.set("source",this.rf.zt);this.Ea.set("sourceUpdated",p);this.Ga()}else this.C.Ie()==f.R&&this.Ga()}else this.set("frameEmpty",z)};a.prototype.kp=function(a){this.set("inVR",a.Ob);this.set("hotspotsEnabled",a.rv);this.set("rendererYaw",a.ja);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.ld);this.set("rendererWidth",a.xL);this.set("rendererHeight",a.gE);this.set("rendererHFOV",a.ad);if(this.o("visible")){var c=this.get("visiblePosition"),
e=this.get("visible")?1:0,i=Math.max(1,this.j.get(this.get("visible")?"showDuration":"hideDuration")*Math.abs(e-c)),j=this.j.get(this.get("visible")?"showEasing":"hideEasing");this.ji=new w(j,[new x("position",c,e)],i);this.get("visible")||this.C&&this.C.ic(f.K)}if(this.ji){if(this.ji.Je()){this.ji=r;if(this.get("visible")){this.j.trigger(d.hw);this.j.get("autoplay")&&this.C&&this.C.ic(f.R)}else this.j.trigger(d.Os)}else this.ji.cb(a.wd);if(this.ji){this.set("visiblePosition",this.ji.wb("position"));
this.Ga()}}c=z;if(c=a.Ob?this.o("visible"):this.o("rendererYaw","rendererPitch","rendererRoll","rendererWidth","rendererHeight","rendererHFOV","itemVisible","popupMaxWidth","popupMaxHeight","sourceHFOV")){this.set("targetImageScale",this.H4(this.ia,a));this.set("targetVideoScale",this.H4(this.Ea,a));this.set("targetYaw",b(this.get("rendererYaw"),this.get("sourceYaw")));this.set("targetPitch",this.get("rendererPitch"));this.set("targetRotationZ",b(a.Ob?0:this.get("rendererRoll"),this.get("sourceRotationZ")))}if(this.o("visiblePosition",
"targetScale","targetYaw","targetPitch","targetRoll","popupDistance","hfov")){var e=this.get("visiblePosition"),g=this.get("targetYaw")*e+this.get("sourceYaw")*(1-e),k=this.get("targetPitch")*e+this.get("sourcePitch")*(1-e),l=this.get("sourceRotationX")*(1-e),n=this.get("sourceRotationY")*(1-e),o=this.get("targetRotationZ")*e+this.get("sourceRotationZ")*(1-e),a=Math.min(1,2*e),q=this.get("popupDistance"),u=this.get("sourceHFOV"),c=this.get("targetImageScale")*e+(1-e),e=this.get("targetVideoScale")*
e+(1-e);this.set("alpha",a);this.ia&&this.ia.set("scale",c);this.Ea&&this.Ea.set("scale",e);[].concat(this.Ea?[this.Ea]:[],this.ia?[this.ia]:[]).forEach(function(a){a.set("yaw",g);a.set("pitch",k);a.set("rotationX",l);a.set("rotationY",n);a.set("rotationZ",o);a.set("distance",q);a.set("hfov",u)})}};a.prototype.jsa=function(a){if(this.o("frameEmpty","state","imageURL","video")){var b="none";this.Ea&&(!this.ia||!this.get("frameEmpty")&&this.get("state")!=f.K)?b="video":this.ia&&(b="image");this.set("itemVisible",
b)}if(this.o("itemVisible")){this.get("itemVisible")!="video"&&this.C&&this.C.ic(f.K);var b=this.ia?this.ia.get("alpha"):0,c=this.Ea?this.Ea.get("alpha"):0,d=this.get("itemVisible")=="image"?1:0,e=this.get("itemVisible")=="video"?1:0,i=this.get("itemVisible")=="video"?1:Math.max(Math.abs(d-b),Math.abs(e-c))*200;this.Yq=new w("linear",[new x("imageAlpha",b,d),new x("videoAlpha",c,e)],i)}if(this.Yq){this.Yq.Je()?this.Yq=r:this.Yq.cb(a.wd);if(this.Yq){this.ia&&this.ia.set("alpha",this.Yq.wb("imageAlpha"));
this.Ea&&this.Ea.set("alpha",this.Yq.wb("videoAlpha"));this.Ga()}}};a.prototype.Wra=function(a){if(this.o("gazeOver","inVR")){this.A2();this.get("inVR")&&this.j.get("lookAwayToHide")&&!this.get("gazeOver")&&this.Oqa()}if(a.Ob&&this.j.get("darkenBackground")&&this.j.get("lookAwayToHide")){if(this.o("visible")&&this.get("visible")){this.dd.set("alpha",0.8);this.Vn=r}if(this.o("gazeOver"))this.Vn=new w(this.get("gazeOver")?"linear":"quad_in",[new x("alpha",this.dd.get("alpha"),this.get("gazeOver")?0.8:
0)],this.get("gazeOver")?300:this.j.get("lookAwayToHideTime"))}else{this.Vn=r;this.dd.set("alpha",a.Ob&&this.j.get("darkenBackground")?0.8:0)}if(this.Vn){this.Vn.Je()?this.Vn=r:this.Vn.cb(a.wd);if(this.Vn){this.dd.set("alpha",this.Vn.wb("alpha"));this.Ga()}}};a.prototype.Oqa=function(){this.A2();this.rI=setTimeout(function(){this.rI=r;this.j.set("visible",z)}.bind(this),this.j.get("lookAwayToHideTime"))};a.prototype.A2=function(){if(this.rI){clearTimeout(this.rI);this.rI=r}};a.prototype.H4=function(a,
b){if(!a)return 1;var c=this.get("popupMaxWidth","100%"),d=u.Fk(c),e=a.get("contentWidth"),f=a.get("contentHeight"),i=this.get("popupMaxHeight","100%"),j=u.Fk(i),g;if(this.get("inVR")){var k=g=this.get("rendererWidth")*0.5,l=Math.min(b.uf,80),n=s.av(l,g,k),o=this.get("sourceHFOV");g=Math.min(Math.tan(n*(d!==m?d/100:c/g)*0.5*F)/Math.tan(o*0.5*F),Math.tan(l*(j!==m?j/100:i/k)*0.5*F)/Math.tan(s.av(o,e,f)*0.5*F))}else{g=this.get("rendererWidth");k=this.get("rendererHeight");n=Math.min((d!==m?g*d/100:c)/
e,(j!==m?k*j/100:i)/f);e=e*n;n=this.get("rendererHFOV");o=this.get("sourceHFOV");g=Math.tan(n*0.5*F)*e/g/Math.tan(o*0.5*F)}return g};a.prototype.BA=function(){this.xt();if(this.get("imageURL")){this.ia=new n;this.ia.set("url",this.get("imageURL"));this.ia.set("contentWidth",this.get("imageWidth"));this.ia.set("contentHeight",this.get("imageHeight"));this.ia.set("alpha",0)}};a.prototype.xt=function(){if(this.ia){this.ia.remove();this.ia=r}};a.prototype.EA=function(){this.Dq();if(this.get("video")){this.Ea=
new i;var a=y.Mg(this.get("video"));this.Ea.set("contentWidth",a.get("width"));this.Ea.set("contentHeight",a.get("height"));this.Ea.set("alpha",0);this.C=new y(this.Sa.qb,this.get("video"));this.ta=new j(this.Sa.qb,this.j,this.C);this.Tn()}};a.prototype.Dq=function(){if(this.Ea){this.Vo();this.ta.clear();this.ta=r;this.C.clear();this.rf=this.C=r;this.Ea.remove();this.Ea=r}};a.prototype.yia=function(){this.p3();this.dd=new k("#000000")};a.prototype.p3=function(){if(this.dd){this.dd.remove();this.dd=
r}};a.prototype.cu=function(){this.trigger(d.Db);this.trigger(d.S)};a.prototype.fu=function(a,b){var c=0;b.ln(function(a){var b=0,d;this.Cd.pi(a)?b=100:(d=this.nc.pi(a))&&(b=d.zh);c=c+b}.bind(this));this.trigger(new v(d.sc,c/b.Vc.length))};a.prototype.ih=function(){this.Ga()};a.prototype.gd=function(){this.Ga()};a.prototype.mr=function(){this.j.trigger(d.Da)};a.prototype.Tn=function(){this.C.bind(y.Kd,this.gd,this,p);this.C.bind(d.zc,this.ih,this,p);this.C.bind(d.Da,this.mr,this,p)};a.prototype.Vo=
function(){this.C.unbind(y.Kd,this.gd,this,p);this.C.unbind(d.zc,this.ih,this,p);this.C.unbind(d.Da,this.mr,this,p)};a.prototype.Aj=function(a){if(a.Zd==d.Ai){if(!a.th()&&this.get("visible")){a.Jp(this.j);this.set("over",this.Ml(a));this.set("gazeOver",this.ora(a))}else this.set("over",z);if(this.get("over")){a.Qr(this.j);a.fs()&&a.Rr(this.j);a.ki(this.get("popupDistance"))}if(this.o("over")){this.j.trigger(this.get("over")?d.tc:d.Ib);a.fs()&&this.j.trigger(this.get("over")?d.Ch:d.zf)}}else if(a.Zd==
d.zi&&!a.th()&&this.get("visible")){a.Jp(this.j);a.ki(this.get("popupDistance"));this.Ml(a)?a.Dva()||this.j.trigger(d.T):this.j.set("visible",z)}};a.prototype.Ml=function(a){return this.g$(a.Cl)};a.prototype.ora=function(a){a=a.TA;return!!a&&this.g$([a])};a.prototype.g$=function(a){if(this.get("visible"))for(var a=(this.get("itemVisible")=="video"?this.Ea:this.ia).po(a),b=0;b<a.length;b++){var c=a[b];if(t.Op(c.source,c.x,c.y))return p}return z};return a});
define("cm",["require","fd","gQ"],function(a){var b=a("fd"),c=a("gQ"),a=b.extend(c,function(){c.call(this);this.xq&&this.xq();this.Nj&&this.Nj()});a.prototype.Qa=function(){c.prototype.Qa.call(this);this.fk&&this.fk();this.Ox&&this.Ox()};a.prototype.Ya=function(){this.hk&&this.hk();this.Px&&this.Px();c.prototype.Ya.call(this)};a.prototype.J=function(a){this.Tf&&this.Tf(a);c.prototype.J.call(this,a);this.Ql&&this.Ql(a)};return a});
define("fs",["require","lc"],function(a){var b=a("lc");return{xq:function(){this.set("beamEnabled",z);this.Nf=z;this.zr=this.Ar=m},Ql:function(a){this.Ar=a.ja;this.zr=a.pitch},Aj:function(a){if(a.Zd==b.Ai){var e=!a.th()&&this.Ml(a);if(e){a.Qr(this.j);this.j.get("useHandCursor")&&a.Rr(this.j);a.ki(this.get("distance"));var d=this.xa(a.uv());d&&a.tL(d,this.Ir(a.uv()))}this.Nf!=e&&(this.Nf=e,this.j.trigger(this.Nf?b.tc:b.Ib),a.fs()&&this.j.trigger(this.Nf?b.Ch:b.zf))}else a.Zd==b.zi&&!a.th()&&this.Ml(a)&&
(1<this.j.sE(b.T,p).length&&a.Jp(this.j),a.ki(this.get("distance")),this.j.trigger(b.T))},Ml:function(a){return this.get("beamEnabled")&&0<this.RR().po(a.Cl).length?p:z},xa:function(a){return!a||this.j.get("displayTooltipInTouchScreens")&&this.Sa.F.get("displayTooltipInTouchScreens")!==z?this.j.get("toolTip",""):""},Ir:function(a){if(a){var a=this.get("yaw")-this.Ar,b=this.get("pitch")-this.zr;return Math.sqrt(a*a+b*b)}return 0}}});
define("bB","require,fd,ia,lc,cm,hL,kd,fs".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("cm"),f=a("hL"),g=a("kd"),a=a("fs"),b=b.extend(d,a,function(a){d.call(this);this.j=a;this.Ot=this.nR=this.iS=r;this.dh.push(this.j);this.Rd=this.Rd.bind(this);this.Uk(["loadingActive","panoramaPixelsPerDegree"]);this.set("tag","FrameHotspot");this.set("enabled",p);this.set("inVR",z);this.set("inScreenshot",z);this.set("overlaysEnabled",p);this.set("interactionEnabled",p);this.set("contentInteractive",
z);this.set("transparent",z);this.set("centerOverDisplay",z);this.set("loadingActive",z);this.set("visible",z);this.set("loaded",z);this.set("inView",z);this.set("frameHidden",p);this.wc=this.zm=this.nc=this.Cd=r});b.prototype.Qa=function(){this.Cd=(new f(e.S)).vi(this.cu.bind(this));this.nc=(new f(e.sc)).Ek(this.fu.bind(this));this.Aia();d.prototype.Qa.call(this);c.Tb(this.j,["url","enabled","image","fadeInDuration","fadeOutDuration","contentInteractive","interactionEnabled","transparent"],this.Rd,
p)};b.prototype.Ya=function(){this.Cd.dispose();this.nc.dispose();c.ac(this.j,["url","enabled","image","fadeInDuration","fadeOutDuration","contentInteractive","interactionEnabled","transparent"],this.Rd);this.q3();this.r3();d.prototype.Ya.call(this)};b.prototype.Rd=function(){this.set("url",this.j.get("url"));this.wc.set("url",this.get("url"));this.set("image",this.j.get("image"));this.ia.set("image",this.get("image"));this.ia.set("level",this.get("image")&&g.lba(this.j,this.get("panoramaPixelsPerDegree")));
this.set("enabled",this.j.get("enabled"));this.set("fadeInDuration",this.j.get("fadeInDuration"));this.set("fadeOutDuration",this.j.get("fadeOutDuration"));this.set("interactionEnabled",this.j.get("interactionEnabled"));this.set("contentInteractive",this.j.get("contentInteractive"));this.set("transparent",this.j.get("transparent"));this.Ga()};b.prototype.J=function(a){this.set("inVR",a.Ob);this.set("inScreenshot",a.BE);this.set("hotspotsEnabled",a.rv);d.prototype.J.call(this,a);this.kp(a)};b.prototype.Aia=
function(){this.BA();this.Jia();this.Iia();var a=[this.ia,this.zm,this.wc];this.Cd.yd(a);this.nc.yd(a);this.Qg(a)};b.prototype.kp=function(){if(this.o("blendingActive","url","inVR","hotspotsEnabled","enabled","interactionEnabled","contentInteractive","composedTranslationX","composedTranslationY","composedTranslationZ")){var a=!(this.get("composedTranslationX")!=0||this.get("composedTranslationY")!=0||this.get("composedTranslationZ")!=0)&&!this.get("blendingActive")&&this.get("hotspotsEnabled")&&this.get("enabled")&&
!this.get("inVR")&&!!this.get("url");this.set("visible",a);this.set("beamEnabled",a&&this.get("interactionEnabled"));this.wc.set("contentInteractive",a&&this.get("interactionEnabled")&&this.get("contentInteractive"))}this.set("frameHidden",!this.wc.get("geometryVisible"));if(this.o("visible","loaded","frameHidden","transparent","inScreenshot")){this.get("visible")||this.set("loaded",z);this.ia.set("alpha",this.get("visible")&&(this.get("frameHidden")||!this.get("loaded"))?1:0);this.ia.set("alpha",
1);this.zm.set("alpha",this.get("visible")&&!this.get("frameHidden")&&this.get("loaded")&&!this.get("transparent")&&!this.get("inScreenshot")?1:0);this.wc.set("alpha",this.get("visible")?1:0);this.wc.set("transparent",this.get("transparent"));this.set("inView",this.get("visible")&&(this.get("loaded")||this.get("image")));this.Ga()}this.o("inView")&&this.j.trigger(this.get("inView")?e.nd:e.zd)};b.prototype.BA=function(){this.xt();this.ia=new this.Ot;this.ia.set("image",this.get("image"));this.ia.set("level",
this.get("image")&&g.lba(this.j,this.get("panoramaPixelsPerDegree")));this.ia.set("visible",p);this.ia.set("alpha",0);this.set("imagePlane",this.ia)};b.prototype.xt=function(){if(this.ia){this.ia.remove();this.ia=r;this.set("imagePlane",r)}};b.prototype.Iia=function(){this.q3();this.wc=new this.nR;this.wc.bind(e.S,this.Q3,this,p);this.wc.set("url",this.get("url"));this.wc.set("visible",p);this.wc.set("alpha",1);this.set("framePlane",this.wc)};b.prototype.q3=function(){if(this.wc){this.wc.unbind(e.S,
this.Q3,this,p);this.wc.remove();this.wc=r;this.set("framePlane",r)}};b.prototype.Jia=function(){this.r3();this.zm=new this.iS;this.zm.set("visible",p);this.zm.set("alpha",1);this.set("holePlane",this.zm)};b.prototype.r3=function(){if(this.zm){this.zm.remove();this.zm=r;this.set("holePlane",r)}};b.prototype.RR=R("zm");b.prototype.Q3=function(){this.set("loaded",p);this.Ga()};b.prototype.cu=function(){this.trigger(e.Db);this.trigger(e.S)};b.prototype.fu=function(a,b){var c=0;b.ln(function(a){(a=b.pi(a))&&
(c=c+a.zh)});this.trigger(new ProgressEvent(e.sc,c/b.Vc.length))};return b});
define("es",["require","fd","gQ"],function(a){var b=a("fd"),c=a("gQ"),a=b.extend(c,function(){c.call(this);this.set("tag","ComposedCSSObject");this.set("transparent",z);this.set("cssScene",r);this.set("cssSceneOver",r);this.set("cssObject",this.hQ());this.eo&&this.eo();this.st&&this.st();this.xq&&this.xq();this.Nj&&this.Nj()});a.prototype.hQ=function(){var a=new THREE.b_;a.matrixAutoUpdate=z;return a};a.prototype.Qa=function(){c.prototype.Qa.call(this);this.fk&&this.fk();this.FB&&this.FB();this.Ox&&
this.Ox()};a.prototype.Ya=function(){this.wx&&this.wx();this.Px&&this.Px();this.hk&&this.hk();var a=this.get("cssObject");a&&a.parent&&a.parent.remove(a);this.set("cssScene",r);c.prototype.Ya.call(this)};a.prototype.J=function(a){this.Tf&&this.Tf(a);c.prototype.J.call(this,a);this.set("cssScene",a.mE);this.set("cssSceneOver",a.nE);if(this.o("transparent")){var b=this.get("cssObject");b&&b.parent&&b.parent.remove(b)}this.o("cssScene","cssSceneOver","transparent")&&(b=this.get("transparent")?a.nE:a.mE)&&
b.add(this.get("cssObject"));this.hi();this.vy&&this.vy(a);this.hp&&this.hp(a);this.Ru()};a.prototype.hi=function(){this.o("composedAlpha","meshGroup")&&this.hq()};a.prototype.hq=function(){this.get("cssObject").element.style.display=0<this.get("composedAlpha")?"block":"none"};a.prototype.Ru=function(){this.o("index")&&(this.get("cssObject").Vd.style.zIndex=this.get("index"))};return a});
define("do",["require","gS","a"],function(a){var b=a("gS"),c=a("a"),e=new THREE.Matrix4,d=Math.PI/180;return{eo:function(){this.set("vertices",m);this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.gk=new THREE.Matrix4;this.Oi=new THREE.Matrix4;this.nl=new THREE.Matrix4},hQ:function(){var a=new THREE.qN;a.matrixAutoUpdate=z;return a},hp:function(a){var g=z;if(this.o("vertices","contentWidth","contentHeight")){var k=this.get("vertices"),g=c.rp(k[0].get("yaw")*d,k[0].get("pitch")*d).normalize(),
i=c.rp(k[1].get("yaw")*d,k[1].get("pitch")*d).normalize(),n=c.rp(k[2].get("yaw")*d,k[2].get("pitch")*d).normalize(),k=c.rp(k[3].get("yaw")*d,k[3].get("pitch")*d).normalize(),j=this.get("cssObject");j.vertices[0].set(g.x,g.y,-g.z);j.vertices[1].set(i.x,i.y,-i.z);j.vertices[2].set(n.x,n.y,-n.z);j.vertices[3].set(k.x,k.y,-k.z);j.xk=this.get("contentWidth");j.wk=this.get("contentHeight");g=p}i=z;this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.We.makeTranslation(0.5*
-this.get("composedTranslationX")*b.Jd,0.5*this.get("composedTranslationY")*b.Jd,0.5*this.get("composedTranslationZ")*b.Jd),i=p);this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.ec.makeRotationY(-a.ja*d),this.ec.multiply(e.makeRotationX(-this.get("composedDeltaPitch")*d)),this.ec.multiply(e.makeRotationY(this.get("composedDeltaYaw")*d)),this.ec.multiply(e.makeRotationY(a.ja*d)),i=p);if(i||this.o("meshGroup"))this.nl.copy(this.We),this.nl.multiply(this.ec),this.get("cssObject").matrix.copy(this.nl),
this.get("cssObject").matrixWorldNeedsUpdate=p;this.set("cameraYaw",a.ja);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.ld);this.set("cameraHfov",a.ad);this.set("cameraWidth",a.width);this.set("cameraHeight",a.height);if(a.Ic&&(i||g||this.o("cameraYaw","cameraPitch","cameraRoll","cameraHfov","cameraWidth","cameraHeight")))this.get("cssObject").VY(a.Ic),this.set("geometryVisible",this.get("cssObject").pM),this.o("geometryVisible")&&this.OU()}}});
define("cK","require,gb,gS,dt,hS,a".split(","),function(a){var b=a("gb"),c=a("gS"),e=a("dt"),d=a("hS"),f=a("a"),g=new THREE.Matrix4,k=Math.PI/180;return{eo:function(){this.set("distance",m);this.set("vertices",m);this.Ri=r;this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.di=new THREE.Matrix4;this.Jf=new THREE.Matrix4},hp:function(a){this.Gsa(a);this.Ol(a)},DH:function(){var a=this.get("meshGroup");return a?e.vh(a)[0]:r},Mi:function(){this.Ri||(this.Ri=this.wq());return[0].map(function(a){var c=
this.Kw(),a=e.create(this.Ri[a],c);d.Cn(a,d.Ij);d.Dn(a,d.Rk);d.ms(a,b.gw);d.uz(a,1);return a}.bind(this))},Gsa:function(){if(this.o("vertices")){var a=this.get("meshGroup");if(a){this.Ri=this.wq();return e.vh(a).map(function(a,b){e.rxa(a,this.Ri[b])}.bind(this))}}},wq:function(){function a(b){return b==0||isNaN(b)||!isFinite(b)}var b=this.get("vertices")||[];if(b.length!=4)return[c.Paa(-1,1,1,1,1,1,1,-1,1,-1,-1,1)];var d=f.rp(b[0].get("yaw")*k,b[0].get("pitch")*k).normalize(),e=f.rp(b[1].get("yaw")*
k,b[1].get("pitch")*k).normalize(),g=f.rp(b[2].get("yaw")*k,b[2].get("pitch")*k).normalize(),b=f.rp(b[3].get("yaw")*k,b[3].get("pitch")*k).normalize(),o=d.clone().CL(g),t=b.clone().CL(e),s=o.clone().CL(t).normalize(),t=(d.y*2*s.x/d.x-2*s.y)/(-g.y+d.y*g.x/d.x);a(t)&&(t=(d.z*2*s.x/d.x-2*s.z)/(-g.z+d.z*g.x/d.x));a(t)&&(t=(d.z*2*s.y/d.y-2*s.z)/(-g.z+d.z*g.y/d.y));var u=(2*s.x-g.x*t)/d.x;a(u)&&(u=(2*s.y-g.y*t)/d.y);a(u)&&(u=(2*s.z-g.z*t)/d.z);o=(e.y*2*s.x/e.x-2*s.y)/(-b.y+e.y*b.x/e.x);a(o)&&(o=(e.z*2*
s.x/e.x-2*s.z)/(-b.z+e.z*b.x/e.x));a(o)&&(o=(e.z*2*s.y/e.y-2*s.z)/(-b.z+e.z*b.y/e.y));var v=(2*s.x-b.x*o)/e.x;a(v)&&(v=(2*s.y-b.y*o)/e.y);a(v)&&(v=(2*s.z-b.z*o)/e.z);d=d.iF(u);e=e.iF(v);g=g.iF(t);b=b.iF(o);return[c.Paa(d.x,d.y,-d.z,e.x,e.y,-e.z,g.x,g.y,-g.z,b.x,b.y,-b.z)]},Ol:function(a){var b=z;if(this.o("composedTranslationX","composedTranslationY","composedTranslationZ")){this.We.makeTranslation(-this.get("composedTranslationX")*0.5*c.Jd,this.get("composedTranslationY")*0.5*c.Jd,this.get("composedTranslationZ")*
0.5*c.Jd);b=p}if(this.o("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.ec.makeRotationY(-a.ja*k);this.ec.multiply(g.makeRotationX(-this.get("composedDeltaPitch")*k));this.ec.multiply(g.makeRotationY(this.get("composedDeltaYaw")*k));this.ec.multiply(g.makeRotationY(a.ja*k));b=p}if(this.o("distance","composedTranslationX","composedTranslationY","composedTranslationZ")){a=this.P.get("composedTranslationX")==0&&this.P.get("composedTranslationY")==0&&this.P.get("composedTranslationZ")==
0&&this.get("distance")!==m?c.kv(this.get("distance")):c.sp();this.di.makeScale(a,a,a);b=p}if(b||this.o("meshGroup")){this.Jf.copy(this.We);this.Jf.multiply(this.ec);this.Jf.multiply(this.di);a=e.vh(this.get("meshGroup"));e.Ul(a[0],this.Jf)}}}});
define("bQ",["require"],function(){return{st:function(){this.set("visible",z);this.set("inView",z);this.set("url",z);this.set("contentWidth",100);this.set("contentHeight",100);this.set("contentInteractive",z);this.mb=this.qc=r;this.hB=m;this.nL=this.nL.bind(this);this.oL=this.oL.bind(this);this.pL=this.pL.bind(this);this.Nt=this.Nt.bind(this);this.qS=this.qS.bind(this)},vy:function(){this.o("cssObject")&&(this.Kia(),this.get("cssObject").element.appendChild(this.qc));this.o("url")&&this.Xpa(this.get("url"));
this.o("contentWidth","contentHeight")&&(this.qc.style.width=this.get("contentWidth")+2+"px",this.qc.style.height=this.get("contentHeight")+2+"px");this.o("contentInteractive")&&(this.qc.style.pointerEvents=this.get("contentInteractive")?"auto":"none")},hi:function(){this.o("composedAlpha")&&(0<this.get("composedAlpha")?this.mb&&!this.mb.parentNode&&(this.P$(),this.qc.appendChild(this.mb)):this.mb&&this.mb.parentNode&&this.qc.removeChild(this.mb))},FB:function(){this.trigger(EventName.Db)},wx:function(){this.cia()},
oL:function(a){a.preventDefault();a.stopImmediatePropagation()},nL:function(){this.Sa.qb.Hv(r)},pL:function(a){a.preventDefault();a.stopImmediatePropagation()},Nt:function(){this.trigger(EventName.S)},qS:function(){this.OH=r;this.Nt()},Kia:function(){this.mb||(this.qc=document.createElement("div"),this.qc.style.position="absolute",this.qc.style.left=this.qc.style.top="-1px",this.get("cssObject").rca&&(this.qc.style.transform="translate(-50%, -50%)"),this.qc.style.overflow="hidden",this.qc.style["-webkit-overflow-scrolling"]=
"touch",this.qc.addEventListener("mouseenter",this.nL,p),this.qc.addEventListener("mousemove",this.oL,p),this.qc.addEventListener("mousewheel",this.pL,p),this.mb=document.createElement("iframe"),this.mb.setAttribute("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone"),this.mb.setAttribute("frameborder","0"),this.mb.setAttribute("scrolling","auto"),this.mb.style.width="100%",this.mb.style.height="100%",this.mb.addEventListener("load",this.Nt,p),0<this.get("composedAlpha")&&
this.qc.appendChild(this.mb))},cia:function(){this.mb&&(this.mb.src="",this.HU(),this.rq(),this.mb.parentNode&&this.mb.parentNode.removeChild(this.mb),this.mb=r);this.qc&&(this.qc.parentNode&&this.qc.parentNode.removeChild(this.qc),this.qc.removeEventListener("mouseenter",this.nL,p),this.qc.removeEventListener("mousemove",this.oL,p),this.qc.removeEventListener("mousewheel",this.pL,p),this.qc=r)},Xpa:function(a){this.hB!=a&&(this.hB=a,this.P$())},P$:function(){this.hB?(this.aqa(),this.uga(),this.mb.src=
this.hB):(this.rq(),this.HU(),this.hB.src="",this.Nt())},aqa:function(){this.rq();this.OH=setTimeout(this.qS,3E3)},rq:function(){this.OH&&(clearTimeout(this.OH),this.OH=r)},uga:function(){this.HU();this.mb.addEventListener("load",this.Nt,p)},HU:function(){this.mb.removeEventListener("load",this.Nt,p)}}});
define("hV",["require","dt"],function(a){var b=a("dt");return{st:function(){this.get("materialConfig").LY.blending=THREE.NoBlending},FB:function(){this.trigger(EventName.Db);this.trigger(EventName.S)},hi:function(){this.o("meshGroup","composedAlpha")&&b.xd(this.get("meshGroup"),0<this.get("composedAlpha")?0.001:0)}}});
define("ht",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,["playbackPositions","width","height"],this.mc,p)},hk:function(){b.ac(this.j,["playbackPositions","width","height"],this.mc)},mc:function(){this.set("playbackPositions",this.j.get("playbackPositions"));this.set("contentWidth",this.j.get("width"));this.set("contentHeight",this.j.get("height"))},Tf:function(){this.o("playbackPositions",
"currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("vertices",this.wa.ZX()));this.o("framePlane","holePlane","imagePlane","vertices")&&this.Oa().forEach(function(a){a.set("vertices",this.get("vertices"));a.set("contentWidth",this.get("contentWidth"));a.set("contentHeight",this.get("contentHeight"))}.bind(this))}}});
define("hj","require,fd,bB,es,ed,do,cK,bQ,fp,hV,ht".split(","),function(a){var b=a("fd"),c=a("bB"),e=a("es"),d=a("ed"),f=a("do"),g=a("cK"),k=a("bQ"),i=a("fp"),n=a("hV"),a=a("ht"),j=b.extend(d,g,i,function(){d.call(this);this.set("tag","QuadFrameHotspotImage")}),l=b.extend(e,f,k,function(){e.call(this);this.set("tag","QuadFrameHotspotFrame")}),q=b.extend(d,g,n,function(){d.call(this);this.set("tag","QuadFrameHotspotHole")});return b.extend(c,a,function(a){c.call(this,a);this.Ot=j;this.nR=l;this.iS=
q})});
define("it",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,["vertices","distance","playbackPositions"],this.mc,p)},hk:function(){b.ac(this.j,["vertices","distance","playbackPositions"],this.mc)},mc:function(){this.set("distance",this.j.get("distance"));this.set("vertices",this.j.get("vertices"));this.set("playbackPositions",this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions",
"currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("vertices",this.wa.ZX()),this.set("alpha",this.wa.wh()))}}});
define("gU","require,fd,ia,lc,dt,ed,cK,fp,la,it,kd".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("dt"),f=a("ed"),g=a("cK"),k=a("fp"),i=a("la"),n=a("it"),j=a("kd"),l=0,a=b.extend(f,g,n,k,i,function(a){f.call(this);this.set("tag","QuadHotspotImage");this.set("id","quad_hs_image_"+l++);this.j=a;this.dh.push(this.j);this.Sd=this.Sd.bind(this)});a.prototype.Qa=function(){f.prototype.Qa.call(this);c.Tb(this.j,["image.levels"],this.Sd,p)};a.prototype.Ya=function(){c.ac(this.j,["image.levels"],
this.Sd);f.prototype.Ya.call(this)};a.prototype.Sd=function(){this.set("image",this.j.get("image"));this.set("level",j.Tua(this.j))};a.prototype.J=function(a){this.Nu();f.prototype.J.call(this,a);this.o("inView")&&this.j.trigger(this.get("inView")?e.nd:e.zd)};a.prototype.Nu=function(){if(this.o("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.setAttribute(a,d.us,this.get("panoramaId"));d.setAttribute(a,d.hN,this.get("id"))}.bind(this))}};return a});
define("gP",["require","lc","fr"],function(a){function b(a,b){this.qb=a;this.Nb=b;this.Gc=z;this.kJ=p;this.uP=this.VT=z;this.bP();this.vT()}var c=a("lc"),e=a("fr");b.prototype.clear=function(){this.V6();this.FU()};b.prototype.Ze=function(a){this.Gc!=a&&(this.Gc=a,this.Mu())};b.prototype.Zxa=function(a){this.kJ!=a&&((this.kJ=a)&&this.V6(),this.Mu())};b.prototype.Mu=function(){if(!this.Gc||this.kJ)this.Nb.set("state",e.K);else if(this.Nb.get("autoplay")||this.uP)this.uP=z,this.Nb.set("state",e.R)};
b.prototype.vT=function(){if(!this.VT){var a=this.Nb.get("video").get("autoplayTime");a!==m&&this.Nb.get("video").get("autoplayTimeLimit")<(new Date).getTime()&&(a=m);this.Nb.set("currentTime",a);this.uP=a!==m}};b.prototype.V6=function(){this.VT||(this.VT=p,this.Nb.get("state")==e.R?(this.Nb.get("video").set("autoplayTimeLimit",(new Date).getTime()+d),this.Nb.get("video").set("autoplayTime",this.Nb.get("currentTime",0))):this.Nb.get("video").set("autoplayTime",m))};b.prototype.bP=function(){this.Nb.get("video").bind(c.D("autoplayTime"),
this.vT,this,p)};b.prototype.FU=function(){this.Nb.get("video").unbind(c.D("autoplayTime"),this.vT,this,p)};var d=1E3;return b});
define("dD",["require","lc","dB"],function(a){var b=a("lc"),c=a("dB");return{xq:function(){this.set("beamEnabled",z);this.Nf=z;this.zr=this.Ar=m},Ql:function(a){this.Ar=a.ja;this.zr=a.pitch},Aj:function(a){if(a.Zd==b.Ai){var c=!a.th()&&this.Ml(a);if(c){a.Qr(this.j);this.j.get("useHandCursor")&&a.Rr(this.j);a.ki(this.get("distance"));var f=this.xa(a.uv());f&&a.tL(f,this.Ir(a.uv()))}this.Nf!=c&&(this.Nf=c,this.j.trigger(this.Nf?b.tc:b.Ib),a.fs()&&this.j.trigger(this.Nf?b.Ch:b.zf))}else a.Zd==b.zi&&
!a.th()&&this.Ml(a)&&(1<this.j.sE(b.T,p).length&&a.Jp(this.j),a.ki(this.get("distance")),this.j.trigger(b.T))},Ml:function(a){if(this.get("beamEnabled"))for(var a=this.RR().po(a.Cl),b=0;b<a.length;b++){var f=a[b];if(c.Op(f.source,f.x,f.y))return p}return z},xa:function(a){return!a||this.j.get("displayTooltipInTouchScreens")&&this.Sa.F.get("displayTooltipInTouchScreens")!==z?this.j.get("toolTip",""):""},Ir:function(a){if(a){var a=this.get("yaw")-this.Ar,b=this.get("pitch")-this.zr;return Math.sqrt(a*
a+b*b)}return 0}}});
define("dQ","require,fd,ia,lc,fr,kK,cm,gP,hL,kd,dD,iC,kO,bq".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("fr"),f=a("kK"),g=a("cm"),k=a("gP"),i=a("hL"),n=a("kd"),j=a("dD"),l=a("iC"),q=a("kO"),o=a("bq"),a=b.extend(g,j,function(a){g.call(this);this.j=a;this.WW=this.Ot=r;this.dh.push(this.j);this.Rd=this.Rd.bind(this);this.Uk(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoHotspot");this.set("enabled",p);this.set("inVR",z);this.set("overlaysEnabled",p);
this.set("enabledInVR",p);this.set("enabledInStandard",p);this.set("interactionEnabled",p);this.set("centerOverDisplay",z);this.set("loadingActive",z);this.set("frameEmpty",p);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.Ea=this.ia=this.nc=this.Cd=r;this.XW=z;this.mo=[]});a.prototype.Qa=function(){this.Cd=(new i(e.S)).vi(this.cu.bind(this));this.nc=(new i(e.sc)).Ek(this.fu.bind(this));
this.tP=new k(this.Sa.qb,this.j);g.prototype.Qa.call(this);c.Tb(this.j,["blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode","image.levels","video.levels","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.Rd,p)};a.prototype.Ya=function(){this.tP.clear();this.Cd.dispose();this.nc.dispose();c.ac(this.j,["blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode",
"image.levels","video.levels","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.Rd);this.xt();this.Dq();g.prototype.Ya.call(this)};a.prototype.Rd=function(){this.set("image",this.j.get("image"));this.set("imageLevel",n.ava(this.j,this.get("panoramaPixelsPerDegree")));this.set("video",this.j.get("video"));this.set("videoLevel",f.Mg(this.get("video")));this.set("enabled",this.j.get("enabled"));this.set("enabledInStandard",
this.j.get("enabledInStandard"));this.set("enabledInVR",this.j.get("enabledInVR"));this.set("fadeInDuration",this.j.get("fadeInDuration"));this.set("fadeOutDuration",this.j.get("fadeOutDuration"));this.set("interactionEnabled",this.j.get("interactionEnabled"));this.set("state",this.j.get("state"));this.set("videoVisibleOnStop",this.j.get("videoVisibleOnStop"));this.set("blending",this.j.get("blending"));this.set("chromaColor",this.j.get("chromaColor"));this.set("chromaThreshold",this.j.get("chromaThreshold"));
this.set("chromaSmoothing",this.j.get("chromaSmoothing"))};a.prototype.J=function(a){this.set("inVR",a.Ob);this.set("hotspotsEnabled",a.rv);this.lW();this.AD();g.prototype.J.call(this,a);this.Mu(a);this.MD();this.kp(a)};a.prototype.lW=function(){if(this.o("video","videoLevel","image","imageLevel")){var a=[];if(this.o("image","imageLevel")){this.BA();this.ia&&a.push(this.ia)}if(this.o("video","videoLevel")){this.EA();this.Ea&&a.push(this.Ea)}this.Qg(a);this.Cd.yd(a);this.nc.yd(a)}};a.prototype.AD=
function(){this.o("video","videoLevel","image","imageLevel","blending","chromaColor","chromaThreshold","chromaSmoothing")&&this.Oa().forEach(function(a){a.set("blending",this.get("blending"));a.set("chromaColor",this.get("chromaColor"));a.set("chromaThreshold",this.get("chromaThreshold"));a.set("chromaSmoothing",this.get("chromaSmoothing"))}.bind(this))};a.prototype.Mu=function(){this.o("video","composedAlpha","enabledInVR","enabledInStandard","enabled","inVR")&&this.tP.Ze(this.get("composedAlpha")>
0&&this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard")));this.o("blendingActive")&&this.tP.Zxa(this.get("blendingActive"))};a.prototype.MD=function(){this.set("frameEmpty",!this.Ea||this.Ea.get("frameEmpty"))};a.prototype.kp=function(a){var b=this.get("itemVisible");if(this.o("frameEmpty","state","image","video","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","enabled","interactionEnabled")){var c=
"none";if(this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard"))){this.Ea&&(!this.ia||!this.get("frameEmpty")&&(this.get("state")!=d.K||this.XW&&this.get("videoVisibleOnStop")))?c="video":this.ia&&(c="image");if(this.get("state")!=d.K)this.XW=p}this.set("itemVisible",c);this.set("beamEnabled",c!="none"&&this.get("interactionEnabled"))}if(this.o("itemVisible")){var c=this.get("itemVisible")!="none",f=b!="none",
b=c==f?100:c?this.get("fadeInDuration"):this.get("fadeOutDuration");c!=f&&this.j.trigger(c?e.nd:e.zd);var f=this.ia?this.ia.get("alpha"):0,i=this.Ea?this.Ea.get("alpha"):0,c=[{Sv:i,image:f}];if(this.get("itemVisible")=="video"){c.push({Sv:1,image:f,time:b*(1-i)});c.push({Sv:1,image:0,time:50*(f-0)})}else if(this.get("itemVisible")=="image"){c.push({Sv:i,image:1,time:b*(1-f)});c.push({Sv:0,image:1,time:50*(i-0)})}else c.push({Sv:0,image:0,time:Math.max(i,f,1/b)*b});this.mo=[];for(b=1;b<c.length;b++)c[b].time>
0&&this.mo.push(new q("linear",[new o("imageAlpha",c[b-1].image,c[b].image),new o("videoAlpha",c[b-1].Sv,c[b].Sv)],c[b].time))}if(this.mo.length>0){this.mo[0].Je()?this.mo.shift():this.mo[0].cb(a.wd);if(this.mo.length>0){this.ia&&this.ia.set("alpha",this.mo[0].wb("imageAlpha"));this.Ea&&this.Ea.set("alpha",this.mo[0].wb("videoAlpha"));this.Ga()}}};a.prototype.BA=function(){this.xt();if(this.get("image")&&this.get("imageLevel")){this.ia=new this.Ot;this.ia.set("image",this.get("image"));this.ia.set("level",
this.get("imageLevel"));this.ia.set("visible",p);this.ia.set("alpha",0)}};a.prototype.xt=function(){if(this.ia){this.ia.remove();this.ia=r}};a.prototype.EA=function(){this.Dq();if(this.get("video")&&this.get("videoLevel")){this.Ea=new this.WW;this.Ea.set("scriptObject",this.j);this.Ea.set("video",this.get("video"));this.Ea.set("level",this.get("videoLevel"));this.Ea.set("visible",p);this.Ea.set("alpha",0)}};a.prototype.Dq=function(){if(this.Ea){this.Ea.remove();this.Ea=r}};a.prototype.cu=function(){this.trigger(e.Db);
this.trigger(e.S)};a.prototype.fu=function(a,b){var c=0;b.ln(function(a){(a=b.pi(a))&&(c=c+a.zh)});this.trigger(new l(e.sc,c/b.Vc.length))};a.prototype.RR=function(){return this.get("itemVisible")=="video"?this.Ea:this.ia};return a});
define("ff","require,lc,fr,bT,dt,fH,jp,dR,dU,hM,kK".split(","),function(a){var b=a("lc"),c=a("fr"),e=a("bT"),d=a("dt");a("fH");var f=a("jp"),g=a("dR"),k=a("dU"),i=a("hM"),n=a("kK");return{st:function(){this.set("visible",z);this.set("inView",z);this.set("frameEmpty",p);this.set("blending",0);this.set("chromaColor",m);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("scriptObject",r);this.set("video",r);this.set("level",r);this.set("loop",z);this.lb=this.Ea=r;this.XW=z;this.LK=
this.rf=this.bp=this.ta=this.dl=this.C=r},wx:function(){this.Dq()},vy:function(){this.Hsa();this.AD();this.MD()},Hsa:function(){if(this.o("scriptObject","video","level")){this.Dq();this.Ea=this.get("video");this.lb=this.get("level");this.j=this.get("scriptObject");this.EA()}},AD:function(){if(this.o("video","blending","chromaColor","chromaThreshold","chromaSmoothing")&&this.Ea){var a=new e.In(this.Ea.sj());a.Tr=this.get("blending");a.hn=this.get("chromaColor");a.jE=this.get("chromaThreshold");a.iE=
this.get("chromaSmoothing");this.set("materialConfig",a)}},hi:function(){this.o("visible","composedAlpha","image","state")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0);this.o("composedAlpha","meshGroup","inView")&&d.xd(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0)},MD:function(){var a=this.C&&this.C.QL(),b=!!a&&a.isEmpty();if(b&&!this.get("frameEmpty")&&this.C.Ie()==c.R&&this.j.get("loop")){a=this.rf;b=z}this.set("frameEmpty",b);if(!this.rf||a&&!this.rf.isEqual(a)){this.rf=
a;this.LK.ri(this.rf.zt);this.LK.update();this.Ga()}else this.C.Ie()==c.R&&this.Ga()},EA:function(){if(this.Ea&&this.lb&&this.j){this.set("textureSource",this.LK=new k);this.set("contentWidth",this.lb.get("width"));this.set("contentHeight",this.lb.get("height"));this.set("alpha",0);this.C=new n(this.Sa.qb,this.Ea);this.C.fxa();this.dl=new f(this.j,this.C);this.ta=new g(this.Sa.qb,this.j,this.C);this.bp=new i(this.Sa.Qb.get("panorama"),this.C);this.Tn();this.trigger(b.Db);this.trigger(b.S)}},Dq:function(){if(this.C){this.set("textureSource",
this.LK=r);this.Vo();this.ta.clear();this.ta=r;this.dl.clear();this.dl=r;this.bp.clear();this.bp=r;this.C.clear();this.rf=this.C=r;this.set("frameEmpty",p);this.lb=this.Ea=r}},Tn:function(){this.C.bind(n.Kd,this.gd,this,p);this.C.bind(b.zc,this.ih,this,p)},Vo:function(){this.C.unbind(n.Kd,this.gd,this,p);this.C.unbind(b.zc,this.ih,this,p)},ih:function(){this.Ga()},gd:function(){this.Ga()}}});
define("kN",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,["playbackPositions","distance"],this.mc,p)},hk:function(){b.ac(this.j,["playbackPositions","distance"],this.mc)},mc:function(){this.set("distance",this.j.get("distance"));this.set("playbackPositions",this.j.get("playbackPositions"))},Tf:function(){this.o("playbackPositions","currentTime")&&
(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("vertices",this.wa.ZX()),this.set("alpha",this.wa.wh()));this.o("video","image","vertices","distance")&&this.Oa().forEach(function(a){a.set("vertices",this.get("vertices"));a.set("distance",this.get("distance"))}.bind(this))}}});
define("hJ","require,fd,dQ,ed,cK,fp,ff,kN".split(","),function(a){var b=a("fd"),c=a("dQ"),e=a("ed"),d=a("cK"),f=a("fp"),g=a("ff"),a=a("kN"),k=b.extend(e,d,f,function(){e.call(this);this.set("tag","QuadVideoHotspotImage")}),i=b.extend(e,d,g,function(){e.call(this);this.set("tag","QuadVideoHotspotVideo")});return b.extend(c,a,function(a){c.call(this,a);this.Ot=k;this.WW=i})});
define("ij","require,fd,ia,fr,hE,kr,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("fr"),d=a("hE"),f=a("kr"),g=a("r"),a=b.extend(d,function(a){d.call(this);this.j=a;this.fh=this.fh.bind(this);this.gh=this.gh.bind(this);this.Ji()});a.prototype.Qa=function(){d.prototype.Qa.call(this);this.j.set("state",this.j.get("startState"));c.Tb(this.j,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.fh,p);c.Tb(this.j,["state"],this.gh,
p)};a.prototype.Ya=function(){c.ac(this.j,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.fh);c.ac(this.j,["state"],this.gh);this.j.set("state",e.K);d.prototype.Ya.call(this)};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.EJ=this.j.get("state");this.Ga()};a.prototype.Ji=function(){d.prototype.Ji.call(this);var a,b;if(g.se()){this.Ct=this.Cm=4;this.mu=2400;this.Dt=1200;a=1.5;b=1.6}else{this.Cm=
2;this.Ct=4;this.mu=4800;this.Dt=2400;b=a=1}var c=this.j.get("intensity",0.5);this.Pb=f.SE(this.j.get("color","#ffffff"));this.XT=this.j.get("opacity",0.25)*0.24+0.01;this.pr=(c*(0.37-0.17)+0.17)*a;a=(this.j.get("speed",0.5)*(0.09-0.02)+0.02)/this.pr*b;this.LB=a*0.9;this.Yt=a*1.1;this.mu=Math.round(this.j.get("particleCount",this.mu)*c);this.Dt=Math.round(this.j.get("farPlaneParticleCount",this.Dt)*c);this.wI=0;this.kl=2;this.Dm=-2;this.jT=0;this.dA=0.75;this.LA=0.5;this.ZH=this.j.get("initialState");
this.yK=this.j.get("startDuration");this.DK=this.j.get("stopDuration");this.Cm=this.j.get("maxDistance",this.Cm);this.Ct=this.j.get("farPlaneDistance",this.Ct);this.Zra()};a.prototype.$G=function(){var a=new THREE.MeshBasicMaterial;a.color=new THREE.Color(this.Pb[0]/255,this.Pb[1]/255,this.Pb[2]/255);a.side=THREE.DoubleSide;a.transparent=p;a.depthTest=z;a.needsUpdate=p;if(!this.BH)this.BH=new THREE.BoxGeometry(0.01,0.2,0.01);return new THREE.Mesh(this.BH,a)};a.prototype.Zra=function(){var a=this.le&&
this.le.children||[],b=new THREE.Color(this.Pb[0]/255,this.Pb[1]/255,this.Pb[2]/255);a.forEach(function(a){a.material.color=b;a.material.needsUpdate=p})};return a});
define("eT","require,fd,gc,lc,bY,gQ".split(","),function(a){var b=a("fd"),c=a("gc"),e=a("lc"),d=a("bY"),f=a("gQ"),g=b.extend(f,function(a,b,d,e){f.call(this);this.qb=a;this.F=b;this.Qb=d;this.g=e;this.RB=new c;this.mV(this);this.set("tag","Root")});g.prototype.Uf=function(a){return this.RB.get(a)};g.prototype.all=function(){for(var a=[],b=[this];b.length>0;){var c=b.pop();a.push(c);for(var d=c.vc.length-1;d>=0;d--)b.push(c.vc[d])}return a};g.prototype.update=function(a){var b=this.all(),c=b.length,
d;for(d=0;d<c;d++)b[d].hia();for(d=0;d<c;d++)b[d].set("index",d);for(d=0;d<c;d++)b[d].Sa&&b[d].J(a);for(d=0;d<c;d++)b[d].aia();if(this.XH){for(d=0;d<c;d++)b[d].dia();this.update(a)}};g.prototype.Ga=function(){this.ip||this.trigger(new d(e.aa));f.prototype.Ga.call(this)};g.prototype.vp=function(a){return Array.isArray(a)?a.map(this.vp.bind(this)):this.RB.get(a)||g.factory.create(a)};return g});
define("kh","require,fd,ia,fr,hE,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("fr"),d=a("hE"),f=a("r"),a=b.extend(d,function(a){d.call(this);this.j=a;this.fh=this.fh.bind(this);this.gh=this.gh.bind(this);this.Ji()});a.prototype.Qa=function(){d.prototype.Qa.call(this);this.j.set("state",this.j.get("startState"));c.Tb(this.j,["intensity","speed"],this.fh,p);c.Tb(this.j,["state"],this.gh,p)};a.prototype.Ya=function(){c.ac(this.j,["intensity","speed"],this.fh);c.ac(this.j,["state"],this.gh);
this.j.set("state",e.K);d.prototype.Ya.call(this)};a.prototype.fh=function(){this.Ji();this.UJ()};a.prototype.gh=function(){this.EJ=this.j.get("state");this.Ga()};a.prototype.Ji=function(){d.prototype.Ji.call(this);var a=this.j.get("intensity");speed=this.j.get("speed");var b,c,e,l,q,o;if(f.Wa()||f.browser()==f.vs){b=1E3;c=350;e=1800;l=400;o=0.8;q=1.2}else if(f.se()){b=1500;c=500;e=2500;l=500;o=0.8;q=1.2}else{b=3E3;c=1E3;e=5E3;l=1E3;o=0.6;q=1}this.ZH=this.j.get("initialState");this.yK=this.j.get("startDuration");
this.DK=this.j.get("stopDuration");this.dA=0.75;this.LA=0.5;this.Cm=4;this.Dm=-2;this.kl=3;this.wI=35;this.Ct=7;this.pr=(o+a*(q-o))/g;this.LB=this.Yt=0.15+speed*1.35;this.mu=c+a*(b-c);this.Dt=l+a*(e-l)};a.prototype.$G=function(){return new THREE.Sprite(this.CA())};a.prototype.CA=function(){var a=new THREE.SpriteMaterial;a.map=this.DA();a.side=THREE.DoubleSide;a.transparent=p;a.depthTest=z;a.needsUpdate=p;return a};a.prototype.DA=function(){if(this.rb)return this.rb;var a=document.createElement("canvas");
a.width=a.height=g;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.rb=new THREE.Texture;this.rb.image=a;this.rb.needsUpdate=p;return this.rb};var g=32;return a});
define("cn",["require","gS","r"],function(a){var b=a("gS"),c=a("r"),e=new THREE.Matrix4,d=Math.PI/180;return{eo:function(){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("hfov",m);this.set("vfov",r);this.We=new THREE.Matrix4;this.ec=new THREE.Matrix4;this.gk=new THREE.Matrix4;this.Oi=new THREE.Matrix4;this.jg=new THREE.Matrix4;this.di=new THREE.Matrix4;this.nl=new THREE.Matrix4},hQ:function(){var a=
c.Xd()==c.Hj||c.browser()==c.vs?new THREE.Eea:new THREE.b_;a.matrixAutoUpdate=z;return a},hp:function(a){if(this.o("contentWidth","contentHeight")){var c=this.get("cssObject");c.xk=this.get("contentWidth");c.wk=this.get("contentHeight");c.pea()}c=z;this.o("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.We.makeTranslation(0.5*-this.get("composedTranslationX")*b.Jd,0.5*this.get("composedTranslationY")*b.Jd,0.5*this.get("composedTranslationZ")*b.Jd),c=p);this.o("composedDeltaYaw",
"composedDeltaPitch","composedDeltaRoll")&&(this.ec.makeRotationY(-a.ja*d),this.ec.multiply(e.makeRotationX(-this.get("composedDeltaPitch")*d)),this.ec.multiply(e.makeRotationY(this.get("composedDeltaYaw")*d)),this.ec.multiply(e.makeRotationY(a.ja*d)),c=p);this.o("yaw","pitch")&&(this.gk.makeRotationY(-this.get("yaw")*d),this.gk.multiply(e.makeRotationX(this.get("pitch")*d)),c=p);if(this.o("flipHorizontally","hfov","vfov","composedTranslationX","composedTranslationY","composedTranslationZ")){var c=
this.get("contentWidth"),k=this.get("contentHeight"),i=this.get("hfov"),n=this.get("vfov");this.Oi.makeTranslation(0,0,-(c/(2*Math.tan(0.5*i*d))));var j=(this.get("flipHorizontally")?-1:1)*this.get("scale"),l=this.get("scale");n&&(l*=c*Math.tan(0.5*n*d)/(k*Math.tan(0.5*i*d)));this.di.makeScale(j,l,1);c=p}this.o("rotationX","rotationY","rotationZ","roll")&&(this.jg.makeRotationZ(this.get("roll")*d),this.jg.multiply(e.makeRotationY(this.get("rotationY")*d)),this.jg.multiply(e.makeRotationX(this.get("rotationX")*
d)),this.jg.multiply(e.makeRotationZ(this.get("rotationZ")*d)),c=p);if(c||this.o("meshGroup"))this.nl.copy(this.We),this.nl.multiply(this.ec),this.nl.multiply(this.gk),this.nl.multiply(this.Oi),this.nl.multiply(this.jg),this.nl.multiply(this.di),this.get("cssObject").matrix.copy(this.nl),this.get("cssObject").matrixWorldNeedsUpdate=p;this.set("cameraYaw",a.ja);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.ld);this.set("cameraHfov",a.ad);this.set("cameraWidth",a.width);this.set("cameraHeight",
a.height);if(a.Ic&&(c||this.o("cameraYaw","cameraPitch","cameraRoll","cameraHfov","cameraWidth","cameraHeight")))this.get("cssObject").VY(a.Ic),this.set("geometryVisible",this.get("cssObject").pM),this.o("geometryVisible")&&this.OU()}}});
define("fo",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,["playbackPositions","width","height"],this.mc,p)},hk:function(){b.ac(this.j,["playbackPositions","width","height"],this.mc)},mc:function(){this.set("playbackPositions",this.j.get("playbackPositions"));this.set("contentWidth",this.j.get("width"));this.set("contentHeight",this.j.get("height"))},Tf:function(){this.o("playbackPositions",
"currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("yaw",this.wa.get("yaw")),this.set("pitch",this.wa.get("pitch")),this.set("roll",this.wa.get("roll")),this.set("rotationX",this.wa.get("rotationX")),this.set("rotationY",this.wa.get("rotationY")),this.set("hfov",this.wa.get("hfov")),this.set("vfov",this.wa.get("vfov")));this.o("framePlane","holePlane","imagePlane","yaw","pitch","roll","rotationX","rotationY","hfov","vfov","contentWidth","contentHeight")&&
this.Oa().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("contentWidth",this.get("contentWidth"));a.set("contentHeight",this.get("contentHeight"))}.bind(this))}}});
define("jB","require,fd,bB,es,ed,cn,kF,bQ,fp,hV,fo".split(","),function(a){var b=a("fd"),c=a("bB"),e=a("es"),d=a("ed"),f=a("cn"),g=a("kF"),k=a("bQ"),i=a("fp"),n=a("hV"),a=a("fo"),j=b.extend(d,g,i,function(){d.call(this);this.set("tag","RectangleFrameHotspotImage")}),l=b.extend(e,f,k,function(){e.call(this);this.set("tag","RectangleFrameHotspotFrame")}),q=b.extend(d,g,n,function(){d.call(this);this.set("tag","RectangleFrameHotspotHole")});return b.extend(c,a,function(a){c.call(this,a);this.Ot=j;this.nR=
l;this.iS=q})});
define("kG",["require","ia","ko"],function(a){var b=a("ia"),c=a("ko");return{Nj:function(){this.set("playbackPositions",r);this.set("scaleMode",m);this.set("distance",m);this.mc=this.mc.bind(this);this.wa=new c},fk:function(){b.Tb(this.j,["playbackPositions","distance","scaleMode"],this.mc,p)},hk:function(){b.ac(this.j,["playbackPositions","distance","scaleMode"],this.mc)},mc:function(){this.set("scaleMode",this.j.get("scaleMode"));this.set("distance",this.j.get("distance"));this.set("playbackPositions",this.j.get("playbackPositions"))},
Tf:function(){this.o("playbackPositions","currentTime")&&(this.wa.qs(this.get("playbackPositions")),this.wa.ps(this.get("currentTime")),this.set("yaw",this.wa.get("yaw")),this.set("pitch",this.wa.get("pitch")),this.set("roll",this.wa.get("roll")),this.set("rotationX",this.wa.get("rotationX")),this.set("rotationY",this.wa.get("rotationY")),this.set("hfov",this.wa.get("hfov")),this.set("vfov",this.wa.get("vfov")),this.set("alpha",this.wa.wh()));this.o("video","image","yaw","pitch","roll","rotationX",
"rotationY","hfov","vfov","distance","scaleMode","image","video")&&this.Oa().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))}}});
define("lf","require,fd,dQ,ed,kF,fp,ff,kG".split(","),function(a){var b=a("fd"),c=a("dQ"),e=a("ed"),d=a("kF"),f=a("fp"),g=a("ff"),a=a("kG"),k=b.extend(e,d,f,function(){e.call(this);this.set("tag","RectangleVideoHotspotImage")}),i=b.extend(e,d,g,function(){e.call(this);this.set("tag","RectangleVideoHotspotVideo")});return b.extend(c,a,function(a){c.call(this,a);this.Ot=k;this.WW=i})});
define("dc","require,dT,gQ,iL,gZ,hq,jh,hn,kf,eF,O,kA,cZ,bo,hj,gU,hJ,ij,eT,kh,jB,lf,bF".split(","),function(a){function b(a,b){Array.isArray(b)||(b=[b]);for(var d=0;d<b.length;d++)if(c.ob(b[d],a))return p;return z}var c=a("dT"),e=a("gQ"),d=a("iL"),f=a("gZ"),g=a("hq"),k=a("jh"),i=a("hn"),n=a("kf"),j=a("eF"),l=a("O"),q=a("kA"),o=a("cZ"),t=a("bo"),s=a("hj"),u=a("gU"),v=a("hJ"),w=a("ij"),x=a("eT"),y=a("kh"),F=a("jB"),A=a("lf");a("bF");a={};x.factory=a;a.create=function(a){if(a instanceof e)return a;if(b(a,
["HDRPanorama","LivePanorama","Panorama","VideoPanorama"]))return new l(a);if(b(a,["CubicPanoramaFrame","SphericPanoramaFrame"]))return b(a,"SphericPanoramaFrame")&&a.yh()?new o(a):new q(a);if(b(a,["DustPanoramaOverlay"]))return new f(a);if(b(a,"HotspotPanoramaOverlay"))return new k(a);if(b(a,["HotspotPanoramaOverlayImage","HotspotPanoramaOverlayMap"]))return new i(a);if(b(a,"Menu"))return new j(a);if(b(a,["CeilingCapPanoramaOverlay","TripodCapPanoramaOverlay"]))return new d(a);if(b(a,["FlatHotspotPanoramaOverlayImage",
"FlatHotspotPanoramaOverlayMap"]))return new g(a);if(b(a,["LensFlarePanoramaOverlay"]))return new n(a);if(b(a,["RainPanoramaOverlay"]))return new w(a);if(b(a,["SnowPanoramaOverlay"]))return new y(a);if(b(a,["PopupPanoramaOverlay"]))return new t(a);if(b(a,["QuadFramePanoramaOverlay"]))return new s(a);if(b(a,["QuadHotspotPanoramaOverlayImage","QuadHotspotPanoramaOverlayMap"]))return new u(a);if(b(a,["QuadVideoPanoramaOverlay"]))return new v(a);if(b(a,["FramePanoramaOverlay"]))return new F(a);if(b(a,
["VideoPanoramaOverlay"]))return new A(a);h("Invalid script object")};return a});
define("kW",["require"],function(){var a={xba:function(b,c,e,d,f,g){return a.nua(b,2*(c/d)-1,2*-(e/f)+1,g)},nua: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},Bua: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},Aua: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.Pb=this.dB(a.get("vrPointerColor"));this.Pm=this.dB(a.get("vrPointerSelectionColor"));this.gp=this.kk([0,0,0],0);this.rK=this.kk([0,0,0],0.125);this.qja=this.kk(this.Pb,1);this.rja=this.kk(this.Pm,1);this.Wha=this.kk(this.Pm,1);this.Vha=this.kk(this.Pb,0.5);this.Tha=this.kk(this.Pb,1);this.Uha=this.kk(this.Pm,1);this.Fh=this.xe=64;this.gP=4E3;this.t3=0.1;this.Gh=0.16;this.nk=0.04;this.u2=this.MG=0.68-this.nk;this.LG=1-this.nk;this.u=document.createElement("canvas");
this.u.width=this.xe;this.u.height=this.Fh;this.ha=this.u.getContext("2d");this.Nf=this.MP=z;this.sx=this.eJ=m;this.at=0}a.prototype.dB=function(a){a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]};a.prototype.kk=function(a,c){return"rgba("+a.join(",")+", "+c+")"};a.prototype.Txa=function(a,c){this.Nf=a;this.eJ=c};a.prototype.KM=P("MP");a.prototype.$c=R("xe");a.prototype.Nd=R("Fh");a.prototype.og=R("u");a.prototype.update=function(a){return this.MP?
this.uja(a):this.Nf?this.zja():this.yja()};a.prototype.NG=function(){this.ha.clearRect(0,0,this.xe,this.Fh)};a.prototype.yja=function(){if("initial"==this.sx)return z;this.NG();this.x3(this.qja);this.sx="initial";return p};a.prototype.zja=function(){if(this.eJ===m){if("over"==this.sx)return z;this.NG();this.x3(this.rja)}else this.Yna(this.eJ);this.sx="over";return p};a.prototype.uja=function(a){for(this.at+=a;this.at>this.gP;)this.at-=this.gP;this.Qha(this.at/this.gP);this.sx="changing";return p};
a.prototype.x3=function(a){this.ah(this.t3+this.nk,0,this.gp,this.rK,0,2*Math.PI);this.ah(this.t3,0,this.gp,a,0,2*Math.PI)};a.prototype.Aja=function(a){this.ah(this.MG-0.5*(this.Gh+this.nk),this.Gh+this.nk,this.rK,this.gp,0,2*Math.PI);this.ah(this.MG-0.5*this.Gh,this.Gh,this.Vha,this.gp,0,2*Math.PI);this.ah(this.MG-0.5*this.Gh,this.Gh,this.Wha,this.gp,0.5*Math.PI,(0.5+2*a)*Math.PI)};a.prototype.vja=function(a,c){this.ah(this.u2-0.5*(this.Gh+this.nk),this.Gh+this.nk,this.rK,this.gp,0,2*Math.PI);this.ah(this.u2-
0.5*this.Gh,this.Gh,this.Tha,this.gp,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.nk/(2*this.LG*Math.PI),d=c+this.nk/(2*this.LG*Math.PI);Math.abs(d-e+2*Math.PI)<2*this.nk&&(e=0,d=c);this.ah(this.LG-0.5*(this.Gh+this.nk),this.Gh+this.nk,this.rK,this.gp,e,d);this.ah(this.LG-0.5*this.Gh,this.Gh,this.Uha,this.gp,a,c)};a.prototype.ah=function(a,c,e,d,f,g){var k=Math.round(0.5*this.xe),i=Math.round(0.5*this.Fh),n=Math.min(k,i),a=Math.round(a*n),j=this.ha;j.sva=
j.$Aa=p;j.lineWidth=c*n;j.strokeStyle=e;j.fillStyle=d;j.beginPath();j.arc(k,i,a,f,g,z);j.stroke();j.fill()};a.prototype.Qha=function(a){this.NG();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.vja(a,c)};a.prototype.Yna=function(a){this.NG();this.Aja(a)};return a});
define("jm","require,fd,dt,hf,eA,dU".split(","),function(a){var b=a("fd"),c=a("dt"),e=a("hf"),d=a("eA"),f=a("dU"),a=b.extend(e,function(){e.call(this);this.u=r;this.set("tag","Reticle");this.set("changing",z);this.set("over",z);this.set("overProgress",m);this.set("visible",p);this.set("attachToCamera",p)});a.prototype.J=function(a){this.lg(a);this.Tf(a);e.prototype.J.call(this,a)};a.prototype.lg=function(a){if(!this.u){this.set("textureSource",new f);this.u=new d(this.Sa.F);this.get("textureSource").ri(this.u.og());
this.set("contentWidth",this.u.$c());this.set("contentHeight",this.u.Nd());this.set("hfov",6);this.set("distance",this.Sa.F.get("vrPointerDistance"))}this.o("changing")&&this.u.KM(this.get("changing"));this.o("over","overProgress")&&this.u.Txa(this.get("over"),this.get("overProgress"));this.u.update(a.wd)&&this.get("textureSource").update();this.get("changing")&&this.Ga()};a.prototype.Tf=function(){this.uk()};a.prototype.hi=function(){this.o("composedAlpha","meshGroup","visible")&&this.hq()};a.prototype.hq=
function(){c.xd(this.get("meshGroup"),this.get("visible")?this.get("composedAlpha"):0)};return a});
define("Y","require,jquery.mod,dm,lc,r,ls,dH".split(","),function(a){function b(a){this.pa=a;this.o$=this.pa.Yj;this.pa.bind(d.Lc,this.$i,this);this.I=c("<span></span>");this.I.css({position:"absolute","z-index":g.z0,"text-align":"center",display:"none"});f.Wa()||this.I.css({"pointer-events":"none"});this.dd=c("<span></span>");this.dd.css({position:"absolute",left:0,top:0,right:0,bottom:0});this.I.append(this.dd);this.KK=c("<span></span>");this.KK.css({position:"relative"});this.I.append(this.KK);
this.kg=this.$H=this.Cf=r;this.J7=this.I7=m;this.Wq=z;this.p$=m}var c=a("jquery.mod"),e=a("dm"),d=a("lc"),f=a("r"),g=a("ls"),k=a("dH"),i={toolTip:m,toolTipBackgroundColor:"#F6F6F6",toolTipBackgroundOpacity:1,toolTipBorderColor:"#767676",toolTipBorderRadius:3,toolTipBorderSize:1,toolTipFontFamily:"Segoe UI",toolTipFontSize:12,toolTipFontColor:"#606060",toolTipFontWeight:"normal",toolTipFontStyle:"normal",toolTipHorizontalAlign:"center",toolTipOpacity:1,toolTipPaddingBottom:2,toolTipPaddingLeft:4,toolTipPaddingTop:2,
toolTipPaddingRight:4,toolTipShadowBlurRadius:3,toolTipShadowColor:"#333333",toolTipShadowHorizontalLength:3,toolTipShadowOpacity:1,toolTipShadowSpread:0,toolTipShadowVerticalLength:3,toolTipTextShadowBlurRadius:3,toolTipTextShadowColor:"#000000",toolTipTextShadowHorizontalLength:0,toolTipTextShadowOpacity:0,toolTipTextShadowVerticalLength:0,toolTipDisplayTime:600};b.prototype.Cb=R("I");b.prototype.Hv=function(a){if(!this.o$){for(;a&&a.get("toolTipDisabled");)a=a.getParent();this.hide();this.Cf&&
e(e(i).keys()).each(function(a){this.Cf.unbind(d.D(a),this.ET,this)},this);if(this.Cf=a){e(e(i).keys()).each(function(a){this.Cf.bind(d.D(a),this.ET,this)},this);this.ET()}}};b.prototype.tya=function(a,b){this.Cf=a;this.p$=b;this.dI()||(this.Wq?this.E9():this.jD())};b.prototype.C9=function(a,b,c,e,f){this.Wq&&this.Cf.trigger(d.DO);this.Vra(a);this.KK.html(this.mla(b));var b=this.I.outerWidth(),i=this.I.outerHeight();if(f){c=c-this.I.width()*0.5;e=e-this.I.height()*0.5}c=Math.max(Math.min(c,this.pa.Ba()-
b-3),3);e=Math.max(Math.min(e,this.pa.gb()-i-3),3);this.I.css("left",c+"px");this.I.css("top",e+"px");this.I.css("display","inline");this.Cf.trigger(d.y0);this.Wq=p;(f||a.get("checkToolTipOcclusion"))&&this.Hqa(a,c,e)};b.prototype.hide=function(){this.nt();this.T9();if(this.Wq){this.I.css("display","none");this.Cf.trigger(d.DO);this.Wq=z}};b.prototype.ET=function(){this.Cf.get("toolTip")?this.dI()||(this.Wq?this.D9():this.jD()):this.dI()?this.nt():this.Wq&&this.hide()};b.prototype.$i=function(a){this.I7=
a.pageX;this.J7=a.pageY};b.prototype.D9=function(){var a=this.I7,b=this.J7+25;this.C9(this.Cf,this.Cf.get("toolTip"),a,b,z)};b.prototype.E9=function(){var a=this.Cf.Cb().offset();this.C9(this.Cf,this.p$,a.left+this.Cf.Ba()*0.5,a.top+this.Cf.gb()*0.5,p)};b.prototype.dI=function(){return this.kg!=r};b.prototype.jD=function(){var a=this.Cf&&this.Cf.get("toolTipDisplayTime");if(a===m||a===r)a=i.toolTipDisplayTime;this.nt();this.kg=setTimeout(function(){this.kg=r;this.o$?this.E9():this.D9()}.bind(this),
a)};b.prototype.nt=function(){if(this.dI()){clearTimeout(this.kg);this.kg=r}};b.prototype.Hqa=function(a,b,c){this.T9();var d=function(){this.I.css("display",this.Wq&&!this.fma(a,b,c)?"inline":"none")}.bind(this);this.$H=setInterval(d,300);d()};b.prototype.T9=function(){if(this.$H){clearInterval(this.$H);this.$H=r}};b.prototype.Vra=function(a){function b(c){var d=a.get(c);return d===m?i[c]:d}var c={};c.opacity=b("toolTipOpacity");c.filter=c["-ms-filter"]="alpha(opacity="+Math.round(b("toolTipOpacity")*
100)+")";c.paddingTop=b("toolTipPaddingTop")+"px";c.paddingBottom=b("toolTipPaddingBottom")+"px";c.paddingLeft=b("toolTipPaddingLeft")+"px";c.paddingRight=b("toolTipPaddingRight")+"px";c["text-align"]=b("toolTipHorizontalAlign");this.I.css(c);c={};c.opacity=b("toolTipBackgroundOpacity");c.filter=c["-ms-filter"]="alpha(opacity="+Math.round(b("toolTipBackgroundOpacity")*100)+")";c["background-color"]=b("toolTipBackgroundColor");c.border=[b("toolTipBorderSize")+"px","solid",b("toolTipBorderColor")].join(" ");
var d=b("toolTipShadowColor");c["-moz-box-shadow"]=c["-webkit-box-shadow"]=c["box-shadow"]=[b("toolTipShadowHorizontalLength")+"px",b("toolTipShadowVerticalLength")+"px",b("toolTipShadowBlurRadius")+"px",b("toolTipShadowSpread")+"px","rgba("+parseInt("0x"+d.substr(1,2))+", "+parseInt("0x"+d.substr(3,2))+", "+parseInt("0x"+d.substr(5,2))+", "+b("toolTipShadowOpacity")+")"].join(" ");c["-moz-border-radius"]=c["-webkit-border-radius"]=c.borderRadius=b("toolTipBorderRadius")+"px";this.dd.css(c);c={};
c["font-family"]=k.Zr(b("toolTipFontFamily"));d=b("toolTipFontSize");e(d).isNumber()?d=d+"px":e(d).isString()||(d="");c["font-size"]=d;c["font-weight"]=b("toolTipFontWeight");c["font-style"]=b("toolTipFontStyle");c.color=b("toolTipFontColor");d=b("toolTipTextShadowColor");c["-moz-text-shadow"]=c["-webkit-text-shadow"]=c["text-shadow"]=[b("toolTipTextShadowHorizontalLength")+"px",b("toolTipTextShadowVerticalLength")+"px",b("toolTipTextShadowBlurRadius")+"px","rgba("+parseInt("0x"+d.substr(1,2))+", "+
parseInt("0x"+d.substr(3,2))+", "+parseInt("0x"+d.substr(5,2))+", "+b("toolTipTextShadowOpacity")+")"].join(" ");var f=b("toolTipTextShadowVerticalLength")==0&&b("toolTipTextShadowHorizontalLength")==0?135:Math.round(4*Math.atan2("toolTipTextShadowHorizontalLength",-b("toolTipTextShadowVerticalLength"))/Math.PI)*45;c.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a}(255*b("toolTipTextShadowOpacity"))+d.substr(1,6)+",direction="+
f+")";this.KK.css(c)};b.prototype.fma=function(a,b,c){for(var b=document.elementsFromPoint(b,c),a=a.Cb()[0],c=this.pa.Cb()[0],d=0;d<b.length;d++){var e=b[d];if(a==e||a.contains(e))break;if(!this.I[0].contains(e)&&c.contains(e)){var f=window.getComputedStyle(e);if(f.display!="none"&&f.visibility!="hidden"&&(e.tagName=="CANVAS"?1:this.nia(f.backgroundColor))*f.opacity>0.29)return p}}return z};b.prototype.nia=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.mla=function(a){for(var a=(a||"").split("\n"),b=0;b<a.length;b++)a[b]=this.Hja(a[b]);return a.map(function(a){return"<div>"+a+"</div>"})};b.prototype.Hja=function(a){b.n1.nodeValue=a;return b.j1.innerHTML};b.Iea=i;b.j1=document.createElement("pre");b.n1=document.createTextNode("");b.j1.appendChild(b.n1);b.Hza=600;return b});
define("ck",["require","Y","bz","dH"],function(a){function b(a,b){this.F=a;this.fi=b;this.yqa()}var c=a("Y"),e=a("bz"),d=a("dH");b.prototype.og=R("u");b.prototype.$c=function(){return this.u.width};b.prototype.Nd=function(){return this.u.height};b.prototype.yqa=function(){this.u=document.createElement("canvas");var a=this.u.getContext("2d"),b=this.fi.split("\n"),c=this.Ae("toolTipBackgroundColor"),i=this.Ae("toolTipBackgroundOpacity"),n=this.Ae("toolTipBorderRadius"),j=this.Ae("toolTipBorderColor"),
l=this.Ae("toolTipBorderSize");this.Ae("toolTipDisplayTime");var q=this.Ae("toolTipFontFamily"),o=this.Ae("toolTipFontSize"),t=this.Ae("toolTipFontColor"),s=this.Ae("toolTipFontWeight"),u=this.Ae("toolTipFontStyle"),v=this.Ae("toolTipPaddingBottom"),w=this.Ae("toolTipPaddingLeft"),x=this.Ae("toolTipPaddingTop"),y=this.Ae("toolTipPaddingRight"),F=this.Ae("toolTipOpacity"),A=this.Ae("toolTipTextShadowBlurRadius"),M=this.Ae("toolTipTextShadowColor"),E=this.Ae("toolTipTextShadowHorizontalLength"),J=this.Ae("toolTipTextShadowVerticalLength"),
B=this.Ae("toolTipTextShadowOpacity"),G=new e.t0;G.fontFamily=q;G.fontSize=o+(isNaN(o)?"":"px");G.fontWeight=s;G.fontStyle=u;var H=b.map(function(b){return e(b,G,a)}),I=0,N=0;H.forEach(function(a){I=Math.max(a.width,I);N+=a.height});var O=1<b.length?0.25*(N/b.length):0,N=N+(b.length-1)*O,y=l+w+I+y+l,v=l+x+N+v+l;this.u=document.createElement("canvas");a=this.u.getContext("2d");this.u.width=y;this.u.height=v;a.globalAlpha=F;a.strokeStyle=j;a.fillStyle="transparent"===c?"rgba(0,0,0,0)":this.B1(i,c);
a.lineWidth=l;a.beginPath();a.moveTo(n,0);a.lineTo(y-n,0);a.quadraticCurveTo(y,0,y,n);a.lineTo(y,v-n);a.quadraticCurveTo(y,v,y-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=t;a.font=s+" "+("normal"!=u?u+" ":"")+o+(isNaN(o)?"":"px")+" "+d.Zr(q);a.shadowColor=this.B1(B,M);a.shadowOffsetX=E;a.shadowOffsetY=J;a.shadowBlur=A;a.textBaseline="middle";a.textAlign="center";var D=l+w+0.5*I,Q=l+x;b.forEach(function(b,
c){a.fillText(b,Math.round(D),Math.round(Q+0.5*H[c].height));Q+=H[c].height+O})};b.prototype.Ae=function(a){var b=this.F.get(a);return b===m?c.Iea[a]:b};b.prototype.B1=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("kY","require,fd,gS,hf,ck,dU".split(","),function(a){var b=a("fd"),c=a("gS"),e=a("hf"),d=a("ck"),f=a("dU"),a=b.extend(e,function(){e.call(this);this.u=r;this.set("tag","ToolTip");this.set("text","");this.tk=new THREE.Vector3(0,0,-c.sp())});a.prototype.J=function(a){this.lg(a);e.prototype.J.call(this,a)};a.prototype.lg=function(a){if(!this.u||this.o("text")){this.get("textureSource")||this.set("textureSource",new f);this.u=new d(this.Sa.F,this.get("text"));this.get("textureSource").ri(this.u.og());
this.set("contentWidth",this.u.$c());this.set("contentHeight",this.u.Nd());this.set("hfov",2*Math.atan2(this.u.$c()*0.5,600)*g);this.set("distance",this.Sa.F.get("vrPointerDistance"));var b=this.get("matrix");if(b){this.tk.applyMatrix4(b);(this.tk.x!=0||this.tk.z!=0)&&this.set("yaw",g*Math.atan2(this.tk.x,-this.tk.z));(this.tk.y!=0||this.tk.z!=0)&&this.set("pitch",g*Math.atan2(this.tk.y,Math.sqrt(this.tk.z*this.tk.z+this.tk.x*this.tk.x))+k)}else{this.set("yaw",a.ja);this.set("pitch",a.pitch+i)}}};
var g=180/Math.PI,k=2,i=5;return a});define("kE",["require","kW","M"],function(a){function b(a,b){this.Ud=a;this.g=b;this.TA=r}var c=a("kW"),e=a("M");b.prototype.update=C();b.prototype.clear=C();b.prototype.re=R("Ud");b.prototype.ER=function(){var a=this.m.te&&e.as(this.m.te);return this.TA=a?c.Bua(a,this.TA):r};b.$F="gaze";b.FO="gaze_click";b.Rz="laser";b.Sz="mouse";b.Tz="touch";return b});
define("dY",["require","kE"],function(a){function b(a,b,c,e){this.ai=a;this.Cl=b;this.TA=c;this.Zd=e;this.o2=[];this.Yh=[];this.cL=[];this.fS=[];this.xa="";this.Ir=Number.MAX_VALUE}function c(a){return a===m?[]:Array.isArray(a)?a:[a]}var e=a("kE");b.prototype.fs=function(){return this.ai.re()==e.Sz};b.prototype.xca=function(){return this.ai.re()==e.Rz};b.prototype.uv=function(){return this.ai.re()==e.Tz};b.prototype.Dva=function(){return this.ai.re()==e.$F};b.prototype.Rr=function(a){this.cL=this.cL.concat(c(a))};
b.prototype.zz=function(){return 0<this.cL.length};b.prototype.fta=function(a){this.fS=this.fS.concat(c(a))};b.prototype.Qta=function(){return 0==this.cL.length&&0<this.fS.length};b.prototype.Qr=function(a){this.Yh=this.Yh.concat(c(a))};b.prototype.mwa=function(){return 0<this.Yh.length};b.prototype.ki=function(a){if(a&&(this.fH===m||this.fH>a))this.fH=a};b.prototype.tL=function(a,b){if(""==this.xa||this.Ir>b)this.xa=a,this.Ir=b};b.prototype.pF=R("xa");b.prototype.Jp=function(a){this.o2=c(a)};b.prototype.th=
function(){return 0<this.o2.length};return b});
define("cf","require,fd,lc,kW,M,jm,kY,dY,kE".split(","),function(a){var b=a("fd"),c=a("lc");a("kW");a("M");var e=a("jm"),d=a("kY"),f=a("dY"),g=a("kE"),a=b.extend(g,function(a){g.call(this,g.$F,a);this.Ee=this.m=r;this.Yh=[];this.NK=r;this.B7=m;this.Fb=new e;this.g.add(this.Fb);this.Ve="";this.xa=r;this.U8=this.g.F.get("vrPointerSelectionTime")});a.prototype.clear=function(){this.KV();this.g.remove(this.Fb);this.Fb=r;this.xa&&this.g.remove(this.xa);this.xa=r};a.prototype.update=function(a){this.m=
a;this.Fb.set("changing",a.yL);this.mg()};a.prototype.Fw=function(){this.Qf(this.Ff(c.zi));this.Fb.set("over",z)};a.prototype.mg=function(){var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF());var b;a:{b=this.Yh;for(var d=a.Yh,e=0;e<b.length;e++)if(d.indexOf(b[e])<0){b=z;break a}for(e=0;e<d.length;e++)if(b.indexOf(d[e])<0){b=z;break a}b=p}if(!b){this.KV();this.Fb.set("over",z);this.Yh=a.Yh;if(this.Yh.length){this.Fb.set("over",a.zz());this.Fb.set("overProgress",0);this.Uqa()}}};a.prototype.Il=function(a){if(this.Ve!=
a){this.Ve&&this.g.remove(this.xa);if(this.Ve=a){this.xa=new d(this.Ve);this.xa.set("text",this.Ve);this.g.add(this.xa)}}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){this.Ee=this.ER();return new f(this,this.Ee?[this.Ee]:[],this.Ee,a)};a.prototype.KV=function(){this.NK&&(clearInterval(this.NK),this.NK=r)};a.prototype.Uqa=function(){this.B7=(new Date).getTime();this.NK=setInterval(this.dna.bind(this),
100)};a.prototype.dna=function(){var a=(new Date).getTime()-this.B7;if(a>=this.U8){this.KV();this.Fw()}else this.Fb.set("overProgress",a/this.U8)};return a});
define("iA","require,fd,lc,jm,kY,dY,kE,bi".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("jm"),d=a("kY"),f=a("dY"),g=a("kE"),k=a("bi"),a=b.extend(g,function(a){g.call(this,g.FO,a);this.Ee=this.m=r;this.Fb=new e;this.g.add(this.Fb);this.Ve="";this.xa=r;this.PK=this.PK.bind(this);document.body.addEventListener("touchend",this.PK);k.bind(c.Ci,this.uaa,this,p)});a.prototype.clear=function(){document.body.removeEventListener("touchend",this.PK);k.unbind(c.Ci,this.uaa,this,p);this.g.remove(this.Fb);
this.Fb=r;this.xa&&this.g.remove(this.xa);this.xa=r};a.prototype.update=function(a){this.m=a;this.Fb.set("changing",a.yL);this.mg()};a.prototype.PK=function(){this.Fw()};a.prototype.uaa=function(){this.Fw()};a.prototype.Fw=function(){this.Qf(this.Ff(c.zi));this.Fb.set("over",z)};a.prototype.mg=function(){var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF());this.Fb.set("over",a.zz())};a.prototype.Il=function(a){if(this.Ve!=a){this.Ve&&this.g.remove(this.xa);if(this.Ve=a){this.xa=new d(this.Ve);this.xa.set("text",
this.Ve);this.g.add(this.xa)}}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){this.Ee=this.ER();return new f(this,this.Ee?[this.Ee]:[],this.Ee,a)};return a});
define("ie","require,fd,gS,bT,dt,dU,y,kr".split(","),function(a){var b=a("fd"),c=a("gS"),e=a("bT"),d=a("dt"),f=a("dU"),g=a("y"),k=a("kr"),i=new THREE.Matrix4,n=Math.PI/180,a=b.extend(g,function(){g.call(this);this.set("tag","Laser");this.set("matrix",r);this.set("over",z);this.set("pressed",z);this.set("intersectionDistance",0);this.set("visible",z);this.set("attachToCamera",z);this.set("dotVisible",p);this.zU=this.IC=this.Lm=this.yU=r;new THREE.Matrix4;this.AU=new THREE.Matrix4;this.AU.multiply(i.makeRotationX(-90*
n));this.AU.multiply(i.makeTranslation(0,j*0.5,0));this.kH=this.jH=this.iH=this.lo=this.TQ=r;new THREE.Matrix4;this.UQ=new THREE.Matrix4;this.zA=this.hH=this.SQ=r;new THREE.Matrix4;this.rt=[new THREE.Matrix4,new THREE.Matrix4,new THREE.Matrix4];this.rt[0].multiply(i.makeRotationX(-90*n));this.rt[0].multiply(i.makeTranslation(0,-q*0.5,0));this.rt[1].multiply(i.makeRotationX(-90*n));this.rt[1].multiply(i.makeTranslation(0,-q*0.5,-l*0.5));this.rt[2].multiply(i.makeRotationX(-90*n));this.rt[2].multiply(i.makeTranslation(0,
-q*0.5,-l))});a.prototype.J=function(a){g.prototype.J.call(this,a);this.KW();this.Nr()};a.prototype.KW=function(){if(this.o("visible"))this.get("meshGroup").visible=this.get("visible");this.o("dotVisible")&&d.xd([this.jH,this.hH],this.get("dotVisible")?1:0)};a.prototype.Nr=function(){if(this.o("over","pressed")){this.O$();this.Y$()}};var j=0.35,l=0.012,q=0.1;a.prototype.Mi=function(){this.hH=d.create(new THREE.SphereGeometry(2.3,32,32),this.Cia());this.jH=d.create(new THREE.SphereGeometry(2,32,32),
this.Dia());this.zU=d.create(new THREE.CylinderGeometry(0.003,0.003,j,8),this.Yia());this.Jw=[];this.Jw.push(d.create(new THREE.CylinderGeometry(l,l,q,32),this.jQ()));this.Jw.push(d.create(new THREE.BoxGeometry(2*l,q,l),this.jQ()));this.Jw.push(d.create(new THREE.CylinderGeometry(l,l,q,32),this.jQ()));return[this.hH,this.jH,this.zU].concat(this.Jw)};a.prototype.Cia=function(){if(this.SQ==r){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.ri(a);this.SQ=
e.Xr(c.texture(),new e.In);b.fillStyle="rgba(0, 0, 0, 0.75)";b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height)}return[this.SQ]};a.prototype.Dia=function(){if(this.TQ==r){this.lo=document.createElement("canvas");this.lo.width=this.lo.height=256;this.iH=this.lo.getContext("2d");this.kH=new f;this.kH.ri(this.lo);this.TQ=e.Xr(this.kH.texture(),new e.In);this.O$()}return[this.TQ]};a.prototype.O$=function(){this.iH.fillStyle=this.wR();this.iH.clearRect(0,0,this.lo.width,this.lo.height);
this.iH.fillRect(0,0,this.lo.width,this.lo.height);this.kH.update()};a.prototype.Yia=function(){if(this.yU==r){this.Lm=document.createElement("canvas");this.Lm.width=this.Lm.height=256;this.IC=this.Lm.getContext("2d");this.BU=new f;this.BU.ri(this.Lm);this.yU=e.Xr(this.BU.texture(),new e.In);this.Y$()}return[this.yU]};a.prototype.Y$=function(){var a=k.SE(this.wR()).join(", "),b=this.IC.createLinearGradient(0,0,0,this.Lm.height);b.addColorStop(0,"rgba("+a+", 0)");b.addColorStop(0.5,"rgba("+a+", 1)");
b.addColorStop(1,"rgba("+a+", 1)");this.IC.fillStyle=b;this.IC.clearRect(0,0,this.Lm.width,this.Lm.height);this.IC.fillRect(0,0,this.Lm.width,this.Lm.height);this.BU.update()};a.prototype.jQ=function(){if(this.zA==r){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),c=new f;c.ri(a);this.zA=e.Xr(c.texture(),new e.In);b.fillStyle="rgba(64, 64, 64, 1)";b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height)}return[this.zA,this.zA,this.zA]};a.prototype.Ol=
function(){var a=z,b=z,e=z;if(this.o("intersectionDistance")){var b=(b=this.get("intersectionDistance"))?c.kv(b):c.sp(),f=b/c.sp();this.UQ.makeTranslation(0,0,-b);this.UQ.multiply(i.makeScale(f,f,f));b=p}if(this.o("matrix"))e=b=a=p;if(b){i.identity();(b=this.get("matrix"))&&i.multiply(b);i.multiply(this.UQ);d.Ul(this.jH,i);d.Ul(this.hH,i)}if(a){i.identity();(b=this.get("matrix"))&&i.multiply(b);i.multiply(this.AU);d.Ul(this.zU,i)}if(e){b=this.get("matrix");for(a=0;a<this.Jw.length;a++){i.identity();
b&&i.multiply(b);i.multiply(this.rt[a]);d.Ul(this.Jw[a],i)}}};a.prototype.Ru=function(){if(this.o("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){d.UM(a,this.get("index"))}.bind(this))}};a.prototype.wR=function(){return this.get("pressed")?this.Sa.F.get("vrPointerSelectionColor"):this.get("over")?this.Sa.F.get("vrPointerOverColor"):this.Sa.F.get("vrPointerColor")};return a});
define("dq","require,fd,lc,kW,ie,jm,kY,dY,kE,da,bi,kl".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("kW"),d=a("ie"),f=a("jm"),g=a("kY"),k=a("dY"),i=a("kE"),n=a("da"),j=a("bi"),l=a("kl"),q=new THREE.Matrix4,o=Math.PI/180,a=b.extend(i,function(a){i.call(this,i.Rz,a);this.Ee=this.m=r;this.Yh=[];this.zg=new d;this.g.add(this.zg);this.Fb=new f;this.g.add(this.Fb);this.bi=z;this.Ve="";this.xa=r;this.Jh=new THREE.Matrix4});a.prototype.clear=function(){this.g.remove(this.zg);this.g.remove(this.Fb);
this.Fb=this.zg=r;this.xa&&this.g.remove(this.xa);this.xa=r};a.prototype.update=function(a){this.m=a;this.Fb.set("changing",a.yL);this.Fb.set("visible",a.yL);var b=n.tM();if(b&&!b.Fva()){var c=b.quaternion(),d=b.position(),e=j.rn().position,f=l.ja(j.rn().orientation);this.Jh.identity();if(d){this.Jh.multiply(q.makeRotationY((f-a.ja)*o));this.Jh.multiply(q.makeTranslation(-e.x,-e.y,-e.z));this.Jh.multiply(q.makeTranslation(d.x,d.y,d.z));this.Jh.multiply(q.makeRotationFromQuaternion(c))}else{this.Jh.multiply(q.makeRotationY(-a.ja*
o));b.hand()==n.oa?this.Jh.multiply(q.makeTranslation(-0.2,-0.4,0)):this.Jh.multiply(q.makeTranslation(0.2,-0.4,0));this.Jh.multiply(q.makeRotationY(f*o));this.Jh.multiply(q.makeRotationFromQuaternion(c));this.Jh.multiply(q.makeTranslation(0,0,-0.3))}this.zg.set("matrix",r);this.zg.set("matrix",this.Jh);this.zg.set("pressed",b.pressed());this.zg.set("visible",p)}else this.zg.set("visible",z);this.mg();a=!!b&&b.pressed();if(this.bi!=a){this.bi&&this.Fw();this.bi=a}this.zg.uk();this.Fb.uk()};a.prototype.Fw=
function(){var a=this.Ff(c.zi);this.Qf(a);this.zg.set("over",p);this.zg.set("dotVisible",p);this.zg.set("intersectionDistance",a.fH);(a=n.tM())&&a.pulse(0.6,50)};a.prototype.mg=function(){var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF());var b;a:{b=this.Yh;for(var d=a.Yh,e=0;e<b.length;e++)if(d.indexOf(b[e])<0){b=z;break a}for(e=0;e<d.length;e++)if(b.indexOf(d[e])<0){b=z;break a}b=p}if(!b&&(a.zz()||this.zg.get("over"))){this.Yh=a.Yh;(b=n.tM())&&b.pulse(0.6,5)}this.zg.set("over",a.zz());this.zg.set("intersectionDistance",
a.fH);this.zg.set("dotVisible",!a.Qta())};a.prototype.Il=function(a){if(this.Ve!=a){this.Ve&&this.g.remove(this.xa);if(this.Ve=a){this.xa=new g(this.Ve);this.xa.set("text",this.Ve);this.xa.set("matrix",r);this.xa.set("matrix",this.Jh);this.g.add(this.xa)}}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){this.Ee=e.Aua(this.Jh,this.Ee);return new k(this,[this.Ee],this.ER(),a)};return a});
define("ha","require,fd,lc,kW,M,dY,kE,R".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("kW"),d=a("M"),f=a("dY"),g=a("kE"),k=a("R"),a=b.extend(g,function(a){g.call(this,g.Sz,a);this.g.F.bind(c.Lc,this.Bg,this,p);this.g.F.bind(c.zf,this.L5,this,p);this.g.F.bind(c.Ib,this.fpa,this,p);this.g.F.bind(c.xb,this.lc,this,p);this.g.F.bind(c.cc,this.Cg,this,p);this.Ro=this.fj=this.Fc=this.Ec=m;this.Ee=this.m=r;this.Ym=z;this.xa=""});a.prototype.clear=function(){this.g.F.unbind(c.Lc,this.Bg,this,p);this.g.F.unbind(c.zf,
this.L5,this,p);this.g.F.unbind(c.xb,this.lc,this,p);this.g.F.unbind(c.cc,this.Cg,this,p);this.Ym&&(this.g.iz(k.he),this.Ym=z);this.Il("")};a.prototype.update=function(a){this.m=a;this.xW()};a.prototype.Bg=function(a){this.Ec=a.x;this.Fc=a.y;this.YK()};a.prototype.L5=function(){this.Fc=this.Ec=m;this.YK()};a.prototype.fpa=function(){this.Fc=this.Ec=m;this.YK()};a.prototype.lc=function(a){this.Ec=this.fj=a.x;this.Fc=this.Ro=a.y;this.Qf(this.Ff(c.j0))};a.prototype.Cg=function(a){this.Ec=a.x;this.Fc=
a.y;this.Qf(this.Ff(c.k0));this.JS(this.fj,this.Ro,this.Ec,this.Fc)&&this.Qf(this.Ff(c.zi))};a.prototype.xW=function(){if(!this.Pl)this.Pl=setTimeout(function(){this.Pl=r;this.mg()}.bind(this),300)};a.prototype.YK=function(){if(this.Pl){clearTimeout(this.Pl);this.Pl=r}this.mg()};a.prototype.mg=function(){var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF());if(this.Ym!=a.zz()){this.Ym&&this.g.iz(k.he);(this.Ym=a.zz())&&this.g.DM(k.he)}};a.prototype.Il=function(a){if(this.xa!=a){this.xa=a;this.g.F.set("toolTip",
this.xa)}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){return new f(this,this.KH(),r,a)};a.prototype.KH=function(){if(this.Ec!==m&&this.Fc!==m&&this.m.te){var a=d.as(this.m.te);if(a){this.Ee=e.xba(a,this.Ec,this.Fc,this.m.width,this.m.height,this.Ee);return[this.Ee]}}return[]};a.prototype.JS=function(a,b,c,d){a=c-a;b=d-b;return Math.sqrt(a*a+b*b)<=5};return a});
define("eY","require,fd,lc,kW,M,dY,kE".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("kW"),d=a("M"),f=a("dY"),g=a("kE"),a=b.extend(g,function(a){g.call(this,g.Tz,a);this.g.F.bind(c.xb,this.lc,this,p);this.g.F.bind(c.cc,this.Cg,this,p);this.Ro=this.fj=this.Fc=this.Ec=m;this.m=r;this.Oha=Array(k.length);this.poa=Array(i.length);this.xa="";this.mg=this.mg.bind(this)});a.prototype.clear=function(){this.g.F.unbind(c.xb,this.lc,this,p);this.g.F.unbind(c.cc,this.Cg,this,p);this.Il("")};a.prototype.update=
function(a){this.m=a;this.xW()};a.prototype.lc=function(a){this.Ec=this.fj=a.x;this.Fc=this.Ro=a.y;this.Qf(this.Ff(c.j0))};a.prototype.Cg=function(a){this.Ec=a.x;this.Fc=a.y;this.Qf(this.Ff(c.k0));this.JS(this.fj,this.Ro,this.Ec,this.Fc)&&this.Qf(this.Ff(c.zi))};a.prototype.xW=function(){if(!this.Pl)this.Pl=setTimeout(this.mg,300)};a.prototype.YK=function(){if(this.Pl){clearTimeout(this.Pl);this.Pl=r}this.mg()};a.prototype.mg=function(){this.Pl=r;var a=this.Ff(c.Ai);this.Qf(a);this.Il(a.pF())};a.prototype.Il=
function(a){if(this.xa!=a){this.xa=a;a=this.g.F;a.set("toolTip",this.xa);if(!a.get("toolTipDisabled")){var b=a.Ua().xa;this.xa?b.tya(a,this.xa):b.hide()}}};a.prototype.Qf=function(a){this.g.AE().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.Aj(a)}.bind(this))};a.prototype.Ff=function(a){var b;b=a==c.Ai?this.KH(this.m.width*0.5,this.m.height*0.5,k,this.Oha):this.KH(this.Ec,this.Fc,i,this.poa);return new f(this,b,r,a)};a.prototype.KH=function(a,b,c,f){var g=this.m.te&&
d.as(this.m.te);if(g){var i=this.m.width,k=this.m.height,u=Math.min(i,k)/100;c.forEach(function(c,d){f[d]=e.xba(g,a+c[0]*u,b+c[1]*u,i,k,f[d])});return f}return[]};a.prototype.JS=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 k=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]]})}(),i=function(){for(var a=[],b=0;b<5;b++)for(var c=-2+4*b/4,d=0;d<5;d++){var e=-2+4*d/4,f=Math.sqrt(e*e+c*c);f<=2&&a.push([e,c,f])}a.sort(function(a,b){return a[2]-b[2]});return a.map(function(a){return[a[0],a[1]]})}();return a});
define("fA","require,cf,iA,dq,ha,kE,eY".split(","),function(a){var b=a("cf"),c=a("iA"),e=a("dq"),d=a("ha"),f=a("kE"),g=a("eY");return{create:function(a,i){switch(a){case f.$F:return new b(i);case f.FO:return new c(i);case f.Rz:return new e(i);case f.Sz:return new d(i);case f.Tz:return new g(i)}}}});
define("lv",["require","R"],function(a){function b(a){this.Mb=a;this.Rf=[]}var c=a("R");b.prototype.push=function(a){this.Rf.push(a);this.J()};b.prototype.pop=function(a){for(var b=this.Rf.length-1;0<=b;b--)if(this.Rf[b]==a){this.Rf.splice(b,1);this.J();break}};b.prototype.clear=function(){0<this.Rf.length&&(this.Mb.set("cursor",c.cd),this.Rf=[])};b.prototype.J=function(){this.Mb.set("cursor",0<=this.Rf.indexOf(c.OF)?c.OF:0<=this.Rf.indexOf(c.he)?c.he:0<this.Rf.length?this.Rf[this.Rf.length-1]:c.cd)};
return b});
define("kx",["require","r"],function(a){function b(a){for(var a=atob(a.split(",")[1]),b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return new Blob([new Uint8Array(b)],{type:"image/jpeg"})}var c=a("r");return{Nya:function(a,d){d||(d="screenshot.jpg");var f;a:{try{f=a.toDataURL("image/jpeg");break a}catch(g){}f=m}if(!f)return z;var k=d,i=document.createElement("a");"string"===typeof i.download?(document.body.appendChild(i),i.download=k,i.href=f,i.click(),document.body.removeChild(i)):c.browser()==
c.Up?window.navigator.msSaveOrOpenBlob(b(f),k):window.location.replace(f);return p}}});
define("dN","require,fd,ia,lc,bY,d,R,r,da,gj,dP,li,hs,dE,dc,eT,fA,kE,lv,jE,hS,im,bi,V,kx".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("bY"),f=a("d"),g=a("R"),k=a("r"),i=a("da"),n=a("gj"),j=a("dP"),l=a("li"),q=a("hs"),o=a("dE"),t=a("dc"),s=a("eT"),u=a("fA"),v=a("kE"),w=a("lv"),x=a("jE"),y=a("hS"),F=a("im"),A=a("bi"),M=a("V"),E=a("kx"),J=Math.PI/180,B=b.extend(f,function(a,b,d){f.call(this);this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",g.$v);this.set("layout",
"absolute");this.qb=a;this.F=b;this.Qb=d;this.EQ=new w(b);this.ai=r;this.m=new l;this.Sa=new s(this.qb,this.F,this.Qb,this);this.Sa.bind(e.aa,this.Ma,this,p);this.hj=new o;this.m.te=this.hj.mk;this.m.mE=this.hj.f3;this.m.nE=this.hj.g3;this.m.Ic=this.hj.as();this.u5=(new Date).getTime();this.Pa().append(this.hj.Cb());this.M3=new j;this.Pa().append(this.M3.Cb());this.oy=new q(b,d);this.Pa().append(this.oy.Cb());this.h$=new y;this.h$.bind(e.S,this.Jna,this,p);this.Y5=new x;this.Y5.bind(e.aa,this.ona,
this,p);this.yH=new n(this.m.width,this.m.height,this.m.ad*J);this.bind(e.yb,this.nb,this,p);this.bind(e.nd,this.hh,this,p);this.bind(e.zd,this.eh,this,p);A.bind(e.aa,this.dk,this,p);i.bind(e.aa,this.cna,this,p);c.Tb(this.Qb,["fxaaEnabled","aaEnabled","hotspotsEnabled","preloadEnabled"],function(){this.m.rv=this.Qb.get("hotspotsEnabled");this.m.TE=this.Qb.get("preloadEnabled");this.m.NL=this.Qb.get("fxaaEnabled");this.m.rL=this.Qb.get("aaEnabled");this.Ma()}.bind(this),p);c.Tb(this.Qb,["surfaceSelectionEnabled"],
this.GW.bind(this));this.GW();this.dk();c.Tb(this.qb,["defaultVRPointer"],this.Ql.bind(this));this.Ql()});B.prototype.create=function(a){return t.create(a)};B.prototype.add=function(a){this.Sa.appendChild(a)};B.prototype.remove=function(a){(a=this.Sa.Uf(a))&&a.remove()};B.prototype.Uf=function(a){return this.Sa.Uf(a)};B.prototype.AE=function(){return this.Sa.all()};B.prototype.Qda=function(a){this.m.xM=a};B.prototype.DM=function(a){this.EQ.push(a)};B.prototype.iz=function(a){this.EQ.pop(a)};B.prototype.KM=
function(a){this.m.yL=a;this.Ma()};B.prototype.aZ=function(){k.browser()!=k.wf&&this.M3.trigger();this.m.BE=p;this.LU();var a=E.Nya(this.hj.og());this.m.BE=z;this.LU();return a};B.prototype.getPixelRatio=function(){return this.hj.getPixelRatio()};B.prototype.Ql=function(){var a;a=this.m.Ob?i.tM()&&this.qb.get("defaultVRPointer")=="laser"?v.Rz:A.XL()==A.Dfa.dO?v.FO:v.$F:k.Wa()?v.Tz:v.Sz;if(!(this.ai&&this.ai.re()==a)){this.ai&&this.ai.clear();this.ai=u.create(a,this);this.GW();this.ai.update(this.m)}};
B.prototype.GW=function(){this.m.nF=this.Qb.get("surfaceSelectionEnabled")&&[v.Sz,v.Rz,v.Tz].indexOf(this.ai&&this.ai.re())>=0};B.prototype.gj=function(){this.EQ.clear();f.prototype.gj.call(this)};B.prototype.nb=function(){var a=this.Ba(),c=this.gb();if(this.m.width!=a||this.m.height!=c)if(!a||!c)b.log("Invalid size values: "+a+" "+c);else{this.m.width=a;this.m.height=c;this.yH.mF(this.m.width);this.yH.Lda(this.m.height);this.Ma()}};B.prototype.hh=function(){this.m.enabled=p;this.Ma()};B.prototype.eh=
function(){this.m.enabled=z;this.Ma()};B.prototype.dk=function(){this.m.Ob=A.isPresenting();this.Ql();this.Ma()};B.prototype.cna=function(){this.Ql();this.Ma()};B.prototype.Jna=function(){this.Ma()};B.prototype.ona=function(){this.Ma()};B.prototype.Nv=function(a){if(this.m.si!=a){this.m.si=a;this.Ma()}};B.prototype.Fa=function(a,c,d,e){if(this.m.ja!=a||this.m.pitch!=c||this.m.ld!=d||this.m.ad!=e)if(isNaN(a)||isNaN(c)||isNaN(d)||!e)b.log("Invalid position values: "+a+" "+c+" "+d+" "+e);else{this.m.ja=
a;this.m.pitch=c;this.m.ld=d;this.m.ad=e;this.yH.Jv(this.m.ad*J);this.Ma()}};B.prototype.Ub=function(){return this.m.ja};B.prototype.$b=function(){return this.m.pitch};B.prototype.Od=function(){return this.m.ld};B.prototype.He=function(){return this.m.ad};B.prototype.KX=function(){return this.m.Ob?this.m.uf:F.Fn(this.m.uf,this.m.width,this.m.height)};B.prototype.LX=function(){return this.m.uf};B.prototype.unproject=function(a){return this.yH.unproject(a)};B.prototype.Ma=function(){M.Ma(this.Dg,this)};
B.prototype.Dg=function(){if(M.nY){var a=(new Date).getTime(),b=Math.max(1,Math.min(a-this.u5,33));this.u5=a;this.trigger(new d(B.YN,{frameTime:b}));if(this.m.enabled){this.m.wd=b;this.LU()}}else this.Ma()};B.prototype.LU=function(){this.hj.update(this.m);this.m.xL=this.hj.pua();this.m.gE=this.hj.oua();this.m.uf=this.hj.mua();this.m.Pg=this.hj.getPixelRatio();this.Sa.update(this.m);this.h$.update(this.m);this.Y5.update(this.m);this.ai.update(this.m);this.hj.render()};B.YN="render start";B.dea=S(p);
return B});define("dr",["require"],function(){function a(){}a.prototype.clear=C();a.fAa=function(b){return a.create(b,C())};a.create=function(b,c){c.prototype=Object.create(a.prototype);c.prototype.constructor=c;c.id=b;c.not="!"+b;return c};a.bv=function(b,c){var e=a.create(b,c);e.yY=p;return e};return a});
define("el",["require","dr"],function(a){var a=a("dr"),b={};b.Geometry=a.create("GeometryComponent",function(){this.geometry=r});b.Zp=a.create("MaterialComponent",function(){this.material=r});b.Mesh=a.create("MeshComponent",function(){this.Dk=r});b.lm=a.bv("MeshSystemStateComponent",function(){this.Dk=r});b.OrthographicCamera=a.create("OrthographicCameraComponent",C());b.fw=a.bv("OrthographicCameraSystemStateComponent",function(){this.Ic=r});b.Bi=a.create("ParentComponent",function(){this.FL=r});
b.Sk=a.bv("ParentSystemStateComponent",function(){this.Sc=this.parent=r});b.jw=a.create("TransformComponent",function(){this.rda=this.qda=this.pda=this.PY=this.ada=this.$ca=0;this.vda=this.uda=this.tda=1});b.Af=a.create("RendererComponent",function(){this.canvas=r;this.antialias=p;this.height=this.width=100;this.vL=this.bZ=this.vf=r});b.$p=a.bv("RendererSystemStateComponent",function(){this.height=this.width=m;this.Ic=this.vj=this.vf=r});b.Scene=a.create("SceneComponent",function(){this.vj=r});b.iw=
a.bv("SceneSystemStateComponent",function(){this.vj=r});b.Texture=a.create("TextureComponent",function(){this.texture=r});b.aq=a.create("VideoMaterialComponent",function(){this.Zaa=this.vea=this.Dp=r});b.bq=a.bv("VideoMaterialSystemStateComponent",function(){this.uM=r});b.Xg=a.create("ViewportComponent",function(){this.height=this.width=this.Bv=r});b.cq=a.create("ViewportPlaneGeometryComponent",function(){this.Dp=this.Bv=r});b.Pn=a.bv("ViewportPlaneGeometrySystemStateComponent",function(){this.geometry=
r;this.zIndex=this.sda=this.verticalAlign=this.fca=this.aea=this.bea=m});return b});
define("iZ",["require"],function(){function a(b,c){this.Rp=b;this.Eya=c||"Entity";this.id=this.Eya+"_"+a.dwa++;this.vk={};this.WE={};this.EZ=0}a.prototype.hc=function(a){return this.vk[a.id]};a.prototype.Zl=function(a){var c=this.vk[a.id];c&&this.Rp.yta(this,a);return c};a.prototype.Ye=function(a){if(a.id in this.vk)return this.vk[a.id];a.yY&&this.EZ++;var c=this.vk[a.id]=new a;this.Rp.dta(this,a);return c};a.prototype.cm=function(a){a.id in this.vk&&(a.yY&&this.EZ--,this.WE[a.id]=this.vk[a.id],delete this.vk[a.id],
this.Rp.ida(this,a,m))};a.prototype.Bta=function(){for(var a in this.WE)this.WE[a].clear(),delete this.WE[a]};a.prototype.Hwa=function(){for(var a in this.vk){var c=this.vk[a].constructor;c.yY||(this.WE[a]=this.vk[a],delete this.vk[a],this.Rp.ida(this,c,z))}};a.dwa=0;return a});define("bG",["require"],function(){function a(){this.id=a.rT++;this.entities=[]}a.rT=0;return a});
define("ii",["require"],function(){function a(b,c){this.id=a.rT++;this.name=c;this.entities=b.entities;this.Sr=b.entities.slice();this.li=[];this.GM=[]}a.prototype.zta=function(){!this.Sr.length||(this.Sr=[]);!this.li.length||(this.li=[]);!this.GM.length||(this.GM=[])};a.rT=0;return a});
define("bd",["require","bG","ii"],function(a){function b(){this.mva={};this.Hb={};this.zv={};this.Ny={};this.pp={};this.yv={};this.lE={};this.xv={}}function c(a){return"string"==typeof a?a:a.id}var e=a("bG"),d=a("ii");b.prototype.Ke=function(a){this.lE[a.id]={};this.lE[a.not]={}};b.prototype.Lta=function(a,b){var c=this.ela(a),e=new d(c,b);this.zv[c.id].push(e);return e};b.prototype.ela=function(a){var b=this.mva[this.fla(a)];if(b)return b;b=new e;this.Hb[b.id]=b;a=a.map(c);this.xv[b.id]={};for(var d=
0;d<a.length;d++){var i=a[d];this.xv[b.id][i]=p;this.lE[i][b.id]=p}this.yv[b.id]={};this.zv[b.id]=[];return b};b.prototype.fla=function(a){a=a.map(c);a.sort();return a.join("-")};b.prototype.iwa=function(a){this.Ny[a.id]={};this.pp[a.id]={}};b.prototype.jwa=function(a){delete this.Ny[a.id];delete this.pp[a.id]};b.prototype.fwa=function(a,b){var c=b.id,d=b.not,e=a.id;this.Ny[e][c]=p;for(var j in this.pp[e])if(d in this.xv[j]){delete this.yv[j][e];delete this.pp[e][j];var l=this.Hb[j].entities;l.splice(l.indexOf(a),
1);for(var l=this.zv[j],q=0,o=l.length;q<o;q++){var t=l[q];t.GM.push(a)}}for(j in this.lE[c])if(!(e in this.yv[j])){var d=p,s;for(s in this.xv[j])if(l="!"!=s[0],(l?s:s.slice(1))in this.Ny[e]!=l){d=z;break}if(d){this.yv[j][e]=p;this.pp[e][j]=p;this.Hb[j].entities.push(a);l=this.zv[j];q=0;for(o=l.length;q<o;q++)t=l[q],t.Sr.push(a)}}};b.prototype.hwa=function(a,b){var c=b.id,d="!"+c,e=a.id;delete this.Ny[e][c];for(var j in this.pp[e])if(c in this.xv[j]){delete this.yv[j][e];delete this.pp[e][j];var l=
this.Hb[j].entities;l.splice(l.indexOf(a),1);for(var l=this.zv[j],q=0,o=l.length;q<o;q++){var t=l[q];t.GM.push(a)}}for(j in this.lE[d])if(!(e in this.yv[j])){var c=p,s;for(s in this.xv[j])if(l="!"!=s[0],(l?s:s.slice(1))in this.Ny[e]!=l){c=z;break}if(c){this.yv[j][e]=p;this.pp[e][j]=p;this.Hb[j].entities.push(a);l=this.zv[j];q=0;for(o=l.length;q<o;q++)t=l[q],t.Sr.push(a)}}};b.prototype.gwa=function(a,b){var c=b.id,d=a.id,e;for(e in this.pp[d])if(c in this.xv[e])for(var j=this.zv[e],l=0,q=j.length;l<
q;l++){var o=j[l];0>o.li.indexOf(a)&&o.li.push(a)}};return b});
define("iu",["require","V","iZ","bd"],function(a){function b(a){this.qb=a;this.gR={};this.JA=[];this.pia={};this.nD=[];this.wu=new d;this.pH=[];this.sr=z}var c=a("V"),e=a("iZ"),d=a("bd");b.prototype.Ke=function(a){this.pia[a.id]=a;this.wu.Ke(a);return this};b.prototype.nz=function(a,b){var c=new a(this,b);c.order=this.nD.length;this.nD.push(c);for(var d in a.Hb)c[d]=this.wu.Lta(a.Hb[d],b+"."+d);this.nD.sort(function(a,b){return a.Qd-b.Qd||a.order-b.order});return this};b.prototype.Ky=function(a){a=
new e(this,a);this.gR[a.id]=a;this.wu.iwa(a);this.Dv();return a};b.prototype.BX=function(a){a.id in this.gR&&(delete this.gR[a.id],this.JA.push(a),a.Hwa(),this.Dv())};b.prototype.dta=function(a,b){this.wu.fwa(a,b);this.Dv()};b.prototype.ida=function(a,b,c){this.wu.hwa(a,b);c||this.pH.push(a);this.Dv()};b.prototype.yta=function(a,b){this.wu.gwa(a,b);this.Dv()};b.prototype.Dv=function(){this.sr||(this.sr=p,c.Ma(this.update,this))};b.prototype.update=function(){this.sr=z;var a=(new Date).getTime(),b=
this.v5?a-this.v5:0;this.v5=a;for(var c=0;c<this.nD.length;c++){var d=this.nD[c];d.execute(b,a);for(var e in d.constructor.Hb)d[e].zta()}for(c=0;c<this.pH.length;c++)this.pH[c].Bta();this.pH.length=0;for(c=this.JA.length-1;0<=c;c--)0==this.JA[c].EZ&&(this.wu.jwa(this.JA[c]),this.JA.splice(c,1))};return b});define("iK",["require"],function(){function a(a,c){this.Rp=a;this.name=c;this.Qd=0}a.prototype.execute=C();return a});
define("fW",["require","el"],function(a){var b=a("el"),a={wz:function(a){var c=a.Ye(b.lm);a.Ye(b.jw);var f=a.Zl(b.Mesh);c.Dk=f.Dk=new THREE.Mesh(a.hc(b.Geometry).geometry,a.hc(b.Zp).material)}},c=new THREE.Euler;a.update=function(a){var d=a.Zl(b.lm);d.Dk.geometry=a.hc(b.Geometry).geometry;d.Dk.material=a.hc(b.Zp).material;var a=a.hc(b.jw),d=d.Dk,f=z;if(d.position.x!=a.$ca||d.position.y!=a.ada||d.position.z!=a.PY)d.position.x=a.$ca,d.position.y=a.ada,d.position.z=a.PY,f=p;if(d.rotation.x!=a.pda||d.rotation.y!=
a.qda||d.rotation.z!=a.rda)c.x=a.pda,c.y=a.qda,c.z=a.rda,d.PAa(c),f=p;if(d.scale.x!=a.tda||d.scale.y!=a.uda||d.scale.z!=a.vda)d.scale.x=a.tda,d.scale.y=a.uda,d.scale.z=a.vda,f=p;f&&d.updateMatrix()};a.ss=function(a){a.hc(b.lm).Dk=r;a.cm(b.lm)};return a});
define("ee",["require","fd","iK","el","fW"],function(a){var b=a("fd"),c=a("iK"),e=a("el"),d=a("fW"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.ME.entities.length&&this.ME.entities.forEach(function(a){d.wz(a)});this.LE.li.length&&this.LE.li.forEach(function(a){d.update(a)});this.vM.entities.length&&this.vM.entities.forEach(function(a){d.ss(a)});this.awa.entities.length&&this.vM.entities.forEach(function(a){d.ss(a)});this.bwa.entities.length&&this.vM.entities.forEach(function(a){d.ss(a)})};
a.Hb={};a.Hb.ME=[e.Mesh,e.Geometry,e.Zp,e.lm.not];a.Hb.LE=[e.Mesh,e.Geometry,e.Zp,e.jw,e.lm];a.Hb.vM=[e.Mesh.not,e.lm];a.Hb.awa=[e.Geometry.not,e.lm];a.Hb.bwa=[e.Zp.not,e.lm];return a});
define("fV",["require","el"],function(a){function b(a){if(!a)return r;var b=a.hc(c.Scene);return b?b.vj:(b=a.hc(c.Mesh))?b.Dk:(a=a.hc(c.OrthographicCamera))?a.Ic:r}var c=a("el");return{wz:function(a){var d=a.Ye(c.Sk);d.parent=b(a.hc(c.Bi).FL);d.Sc=b(a);d.parent&&d.Sc&&d.parent.add(d.Sc)},update:function(a){var d=a.Zl(c.Sk),f=b(a.hc(c.Bi).FL),a=b(a);if(d.parent!=f||d.Sc!=a)d.parent&&d.Sc&&d.parent.remove(d.Sc),d.parent=f,d.Sc=a,d.parent&&d.Sc&&d.parent.add(d.Sc)},ss:function(a){var b=a.hc(c.Sk);b.parent&&
b.Sc&&b.parent.remove(b.Sc);b.parent=r;b.Sc=r;a.cm(c.Sk)}}});
define("jF",["require","fd","iK","el","fV"],function(a){var b=a("fd"),c=a("iK"),e=a("el"),d=a("fV"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.ME.entities.length&&this.ME.entities.forEach(function(a){d.wz(a)});this.QE.entities.length&&this.QE.entities.forEach(function(a){d.wz(a)});this.LE.li.length&&this.LE.li.forEach(function(a){d.update(a)});this.Uca.li.length&&this.Uca.li.forEach(function(a){d.update(a)});this.Laa.entities.length&&this.Laa.entities.forEach(function(a){d.ss(a)});
this.Maa.entities.length&&this.Maa.entities.forEach(function(a){d.ss(a)})};a.Hb={};a.Hb.ME=[e.Mesh,e.Bi,e.Sk.not];a.Hb.QE=[e.OrthographicCamera,e.Bi,e.Sk.not];a.Hb.LE=[e.Mesh,e.Bi,e.Sk];a.Hb.Uca=[e.OrthographicCamera,e.Bi,e.Sk];a.Hb.Laa=[e.OrthographicCamera.not,e.Mesh.not,e.Bi,e.Sk];a.Hb.Maa=[e.Bi.not,e.Sk];return a});define("eG",["require","fH"],function(a){return a("fH")});
define("iG",["require","fd","iK","el","eG"],function(a){var b=a("fd"),c=a("iK"),e=a("el");Util=a("eG");a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){for(var a=0,b=this.wda.entities.length;a<b;a++)this.nya(this.wda.entities[a]);a=0;for(b=this.QE.entities.length;a<b;a++)this.lya(this.QE.entities[a]);a=0;for(b=this.kda.entities.length;a<b;a++)this.mya(this.kda.entities[a]);a=0;for(b=this.Cv.entities.length;a<b;a++)this.Yta(this.Cv.entities[a]);a=0;for(b=this.xda.entities.length;a<
b;a++)this.Jya(this.xda.entities[a]);a=0;for(b=this.Vca.entities.length;a<b;a++)this.Hya(this.Vca.entities[a]);a=0;for(b=this.lda.entities.length;a<b;a++)this.Iya(this.lda.entities[a])};a.prototype.nya=function(a){var b=a.Zl(e.Scene);a.Ye(e.iw).vj=b.vj=new THREE.Scene};a.prototype.lya=function(a){var b=a.Zl(e.OrthographicCamera);a.Ye(e.fw).Ic=b.Ic=new THREE.OrthographicCamera};a.prototype.mya=function(a){var b=a.hc(e.Af),a=a.Ye(e.$p);a.vf=new THREE.WebGLRenderer({precision:"mediump",alpha:p,canvas:b.canvas,
context:Util.zX(b.canvas,b.antialias||z)});a.vf.setPixelRatio(Util.getPixelRatio());a.vf.autoClear=z;a.vf.setClearColor(0,0);a.width=b.width;a.height=b.height};a.prototype.Yta=function(a){var b=a.hc(e.Af),a=a.hc(e.$p),c=a.vf,k=b.vL&&b.vL.hc(e.OrthographicCamera).Ic,i=b.width,n=b.height;if(a.width!=i||a.height!=n||a.Ic!=k)a.width=i,a.height=n,a.Ic=k,c.setSize(i,n),k&&(k.left=-0.5*i,k.right=0.5*i,k.top=0.5*n,k.bottom=-0.5*n,k.updateProjectionMatrix());b=b.bZ&&b.bZ.hc(e.Scene).vj;a.vj!=b&&(a.vj=b);c.clear();
b&&k&&c.render(b,k)};a.prototype.Iya=function(a){var b=a.hc(e.$p);b.vf.dispose();b.vf=r;a.cm(e.$p)};a.prototype.Hya=function(a){var b=a.hc(e.fw);b.Ic.parent&&b.Ic.parent.remove(b.Ic);b.Ic=r;a.cm(e.fw)};a.prototype.Jya=function(a){a.hc(e.iw).vj=r;a.cm(e.iw)};a.Hb={};a.Hb.kda=[e.Af,e.$p.not];a.Hb.lda=[e.Af.not,e.$p];a.Hb.Cv=[e.Af,e.$p];a.Hb.wda=[e.Scene,e.iw.not];a.Hb.xda=[e.Scene.not,e.iw];a.Hb.QE=[e.OrthographicCamera,e.fw.not];a.Hb.Vca=[e.OrthographicCamera.not,e.fw];return a});
define("eS",["require","lc","fr","bY","kK"],function(a){function b(a,b,c,d){this.C=a;this.U=b;this.qH=c;this.Ga=d;this.qb=a.Ua();this.vm=this.U.get("currentTime");this.m=this.U.get("state");this.CJ=this.qb.get("mute");this.JI=this.U.get("mute");this.m=this.U.get("autoplay")?e.R:e.yc;this.bP();this.U.set("state",this.m);this.C.Id(this.CJ||this.JI);this.C.Kp(this.vm);this.C.ic(this.m)}var c=a("lc"),e=a("fr"),d=a("bY"),f=a("kK");b.prototype.dispose=function(){this.FU()};b.prototype.h7=function(){var a=
this.U.get("currentTime",0);this.vm!=a&&this.C.Kp(this.vm=a)};b.prototype.j7=function(){var a=this.U.get("state",e.K);this.m!=a&&this.C.ic(this.m=a)};b.prototype.i7=function(){var a=this.U.get("mute",z);this.JI!=a&&this.C.Id(this.CJ||(this.JI=a))};b.prototype.gC=function(){var a=this.qb.get("mute",z);this.CJ!=a&&this.C.Id((this.CJ=a)||this.JI)};b.prototype.mC=function(){this.U.set("currentTime",this.vm=this.C.qj())};b.prototype.kC=function(){this.U.set("duration",this.C.rj())};b.prototype.lC=function(){this.U.set("state",
this.m=this.C.Ie());this.Ga()};b.prototype.nC=function(){this.qH.trigger(new d(c.Da));this.U.get("loop")&&(this.C.Kp(this.vm=0),this.C.ic(this.m=e.R))};b.prototype.bP=function(){this.qb.bind(c.D("mute"),this.gC,this,p);this.C.bind(f.Kd,this.mC,this,p);this.C.bind(f.Xf,this.kC,this,p);this.C.bind(c.zc,this.lC,this,p);this.C.bind(c.Da,this.nC,this,p);this.U.bind(c.D("currentTime"),this.h7,this,p);this.U.bind(c.D("state"),this.j7,this,p);this.U.bind(c.D("mute"),this.i7,this,p)};b.prototype.FU=function(){this.qb.unbind(c.D("mute"),
this.gC,this,p);this.C.unbind(f.Kd,this.mC,this,p);this.C.unbind(f.Xf,this.kC,this,p);this.C.unbind(c.zc,this.lC,this,p);this.C.unbind(c.Da,this.nC,this,p);this.U.unbind(c.D("currentTime"),this.h7,this,p);this.U.unbind(c.D("state"),this.j7,this,p);this.U.unbind(c.D("mute"),this.i7,this,p);this.U.unbind(c.D("opacity"),this.DT,this,p)};return b});
define("s","require,lc,fr,gb,bR,ix,eG".split(","),function(a){function b(a,b,d,e,f){this.rb=a;this.C=b;this.U=d;this.lb=e;this.Ga=f;this.Sx=this.lb.get("posterURL");this.Osa=this.lb.get("url");this.wc=r;this.z5();this.lb.bind(c.D("posterURL"),this.f7,this,p);this.Ga();this.ha=this.u=r}var c=a("lc"),e=a("fr"),d=a("gb"),f=a("bR"),g=a("ix"),k=a("eG");b.prototype.update=function(){var a=this.C.QL();a.isEmpty()&&(a=r);if(a&&(!this.wc||this.wc&&!this.wc.isEqual(a))){this.wc=a;a=this.wc.zt;if(!this.u&&k.uea(this.Osa)){this.u=
document.createElement("canvas");this.ha=this.u.getContext("2d")}if(this.u&&k.yh(a)){this.ha.drawImage(a,0,0,this.u.width=a.videoWidth,this.u.height=a.videoHeight);a=this.u}this.rb.image=a;this.rb.needsUpdate=p}else if(!this.wc&&this.CC&&this.rb.image!=this.CC){this.rb.image=this.CC;this.rb.needsUpdate=p}(this.rb.needsUpdate||this.C.Ie()==e.R)&&this.Ga()};b.prototype.f7=function(){this.jqa(this.lb.get("posterURL"))};b.prototype.jqa=function(a){if(this.Sx!=a){this.F$();this.Sx=a;this.z5()}};b.prototype.z5=
function(){if(this.Sx){this.CC=r;this.Rx=new f;this.Rx.AZ([this.Sx]);this.Rx.bind(c.S,this.e7,this,p);g.zn(this.Rx,this.U.get("loadPriority",d.Jj))}};b.prototype.F$=function(){if(this.Sx){this.Rx.unbind(c.S,this.e7,this,p);g.ti(this.Rx,this.U.get("loadPriority",d.Jj));this.CC=this.Rx=r}};b.prototype.e7=function(){this.CC=g.qe(this.Sx);this.Ga()};b.prototype.dispose=function(){this.F$();this.lb.unbind(c.D("posterURL"),this.f7,this,p);this.ha=this.lb=r;this.u&&(this.u=this.u.width=this.u.height=0);
this.Ga=this.rf=this.C=this.rb=r};return b});
define("ig",["require","eG"],function(a){var b=a("eG");return{Gea:function(){this.blending=0;this.ez=m;this.Zda=this.kea=0},Nfa:function(){this.es=z;this.height=this.width=100},create:function(a,e,d){var f=a.es&&b.dca(),g=a.es&&b.cca(),k={uniforms:{},transparent:p};k.uniforms.texture={type:"sampler2D",value:d};k.uniforms.opacity={type:"float",value:1};d.flipY=!f;k.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(g||e.blending||e.ez){var f=[],i=[],f=f.concat(["uniform sampler2D texture;","uniform float opacity;","varying vec2 vUV;"]),i=i.concat(["   vec4 color = texture2D(texture, vUV);","   float alpha = color.a * opacity;"]);if(e.blending){var n=0.5*Math.min(a.width,a.height)*e.blending;k.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(n/a.width,n/a.height)};f=f.concat(["uniform vec2 blendingLimit;"]);i=i.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.ez&&
(k.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(e.ez.substr(1,2),16)/255,parseInt(e.ez.substr(3,2),16)/255,parseInt(e.ez.substr(5,2),16)/255)},k.uniforms.chromaThreshold={type:"f",value:e.kea},k.uniforms.chromaSmoothing={type:"f",value:e.Zda},f=f.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),i=i.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("{")));
i=i.concat(["\tgl_FragColor = vec4(color"+(g?".bgr":".rgb")+", alpha);"]);d.format=THREE.RGBAFormat;k.fragmentShader=[].concat(f,["void main() {"],i,["}"]).join("\n")}else k.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(k);a.transparent=p;a.depthWrite=p;a.side=THREE.DoubleSide;a.depthTest=p;a.needsUpdate=
p;return a}}});define("dG",["require"],function(){var a={},b=r;a.rua=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,lc,fr,eS,s,ig,dG,eG,el,jk,hM,kK".split(","),function(a){function b(a){this.Ww=a;a=a.hc(n.aq);this.qH=a.Zaa;this.U=a.Dp;this.paa=a.vea;this.lb=l.Mg(this.paa);this.qb=this.Ww.Rp.qb;this.DA();this.CA();this.cja();this.Ga=this.Ga.bind(this);this.oaa=new d(this.C,this.U,this.qH,this.Ga);this.QV=new f(this.rb,this.C,this.U,this.lb,this.Ga);this.U.bind(c.D("opacity"),this.DT,this,p);this.n9(this.ub=this.U.get("opacity",1));this.ip=z;this.Ga()}var c=a("lc"),e=a("fr"),d=a("eS"),f=a("s"),
g=a("ig"),k=a("dG"),i=a("eG"),n=a("el");a("jk");var j=a("hM"),l=a("kK");b.prototype.update=function(){if(this.ip){this.ip=z;this.QV.update()}};b.prototype.Ga=function(){if(!this.ip){this.ip=p;this.Ww.Rp.Dv()}};b.prototype.DA=function(){this.rb=new THREE.Texture;this.rb.image=k.rua();this.rb.generateMipmaps=z;this.rb.minFilter=THREE.LinearFilter;this.rb.magFilter=THREE.LinearFilter;this.rb.format=THREE.RGBFormat};b.prototype.oja=function(){this.rb.dispose();this.rb=r};b.prototype.cja=function(){this.C=
new l(this.Ww.Rp.qb,this.paa);this.bp=new j(this.U,this.C)};b.prototype.pja=function(){this.C.ic(e.K);this.C.clear();this.C=r;this.bp.clear();this.bp=r};b.prototype.CA=function(){var a=new g.Nfa;a.es=i.es(this.lb.get("url"));a.width=this.lb.get("width");a.height=this.lb.get("height");var b=new g.Gea;b.blending=this.U.get("blending",0);b.ez=this.U.get("chromaColor");b.kea=this.U.get("chromaThreshold",0);b.Zda=this.U.get("chromaSmoothing",0);this.Xt=g.create(a,b,this.rb);this.Ww.Ye(n.Zp).material=this.Xt};
b.prototype.nja=function(){this.Xt.dispose();this.Xt=r;this.Ww.cm(n.Zp)};b.prototype.dispose=function(){this.oaa.dispose();this.oaa=r;this.QV.dispose();this.QV=r;this.nja();this.oja();this.pja();this.qb=r;this.U.unbind(c.D("opacity"),this.DT,this,p);this.U.set("state",e.K);this.Ww=this.qH=this.U=r};b.prototype.DT=function(){var a=this.U.get("opacity");if(this.ub!=a){this.n9(this.ub=a);this.Ga()}};b.prototype.n9=function(a){this.Xt.opacity=a;if(this.Xt.isShaderMaterial&&this.Xt.uniforms.opacity)this.Xt.uniforms.opacity.value=
a};b.wz=function(a){a.Ye(n.bq).uM=new b(a)};b.ss=function(a){var b=a.hc(n.bq);b.uM.dispose();b.uM=r;a.cm(n.bq)};b.update=function(a){a.hc(n.bq).uM.update()};return b});
define("dy",["require","fd","iK","el","Q"],function(a){var b=a("fd"),c=a("iK"),e=a("el"),d=a("Q"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){this.Xva.entities.forEach(function(a){d.wz(a)});this.Yva.entities.forEach(function(a){d.ss(a)});this.materials.entities.forEach(function(a){d.update(a)})};a.Hb={};a.Hb.Xva=[e.aq,e.bq.not];a.Hb.materials=[e.aq,e.bq];a.Hb.Yva=[e.aq.not,e.bq];return a});
define("is",["require","fd","iK","el"],function(a){var b=a("fd"),c=a("iK"),e=a("el"),a=b.extend(c,function(){c.apply(this,arguments)});a.prototype.execute=function(){for(var a=0,b=this.QZ.Sr.length;a<b;a++)this.xqa(this.QZ.Sr[a]);a=0;for(b=this.Cv.li.length;a<b;a++)this.eaa(this.Cv.li[a]);a=0;for(b=this.Cv.Sr.length;a<b;a++)this.eaa(this.Cv.Sr[a])};a.prototype.xqa=function(a){var b=a.hc(e.Xg),c=b.Bv.hc(e.Af),k=c&&c.height||100;if(b.width!=(c&&c.width||100)||b.height!=k)b=a.Zl(e.Xg),b.width=c&&c.width||
100,b.height=c&&c.height||100};a.prototype.eaa=function(a){var b=a.hc(e.Af);this.QZ.entities.forEach(function(c){if(c.hc(e.Xg).Bv==a){var k=c.hc(e.Xg);if(k.width!=b.width||k.height!=b.height)k=c.Zl(e.Xg),k.width=b.width,k.height=b.height}})};a.Hb={};a.Hb.QZ=[e.Xg];a.Hb.Cv=[e.Af];return a});
define("dg",["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,g,k,i,n,j,l,q,o,t){var s=a.getAttribute("position").array,u=a.getAttribute("normal").array,v=
a.getAttribute("uv").array,w=a.getIndex().array;s[9]=s[0]=b;s[10]=s[1]=c;s[11]=s[2]=e;v[6]=v[0]=d;v[7]=v[1]=f;s[3]=s[0]+j;s[4]=s[1]+l;s[5]=s[2]+q;v[2]=v[0];v[3]=v[1]+o;s[12]=s[6]=s[3]+g;s[13]=s[7]=s[4]+k;s[14]=s[8]=s[5]+i;v[8]=v[4]=v[2]+n;v[9]=v[5]=v[3];s[15]=s[12]-j;s[16]=s[13]-l;s[17]=s[14]-q;v[10]=v[8];v[11]=v[9]-o;b=k*q-i*l;i=i*j-g*q;g=g*l-k*j;k=1/Math.sqrt(b*b+i*i+g*g);u[0]=u[3]=u[6]=u[9]=u[12]=u[15]=b*k;u[1]=u[4]=u[7]=u[10]=u[13]=u[16]=i*k;u[2]=u[5]=u[8]=u[11]=u[14]=u[17]=g*k;w[0]=0;w[1]=1;
w[2]=2;w[3]=3;w[4]=4;w[5]=5;a.getAttribute("position").needsUpdate=p;a.getAttribute("normal").needsUpdate=p;a.getAttribute("uv").needsUpdate=p;a.clearGroups();a.addGroup(0,6,t);a.computeBoundingBox();a.computeBoundingSphere();return a}}});
define("kP",["require","lc","iE"],function(a){function b(a,b,e){this.Si=a;this.U=b;this.WR=e;this.bK=this.bK.bind(this);this.tw=m;this.U.forEach(function(a){this.Si.bind(c.D(a),this.eu,this,p)}.bind(this));this.bK()}var c=a("lc"),e=a("iE");b.prototype.stop=function(){this.U.forEach(function(a){this.Si.unbind(c.D(a),this.eu,this,p)}.bind(this));this.tw&&(e.cancel(this.tw),this.tw=m)};b.prototype.eu=function(){this.tw||(this.tw=e.Ev(this.bK))};b.prototype.bK=function(){this.tw=m;var a=this.Si;this.WR.apply(window,
this.U.map(function(b){return a.get(b)}))};return b});
define("eh","require,fd,iK,el,dg,kP,jP,je".split(","),function(a){var b=a("fd"),c=a("iK"),e=a("el"),d=a("dg"),f=a("kP"),g=a("jP"),k=a("je"),i=b.extend(c,function(){c.apply(this,arguments)});i.prototype.execute=function(){for(var a=0,b=this.Xca.entities.length;a<b;a++)this.wqa(this.Xca.entities[a]);a=0;for(b=this.Wca.li.length;a<b;a++)this.qsa(this.Wca.li[a]);a=0;for(b=this.Yca.entities.length;a<b;a++)this.lra(this.Yca.entities[a])};i.prototype.wqa=function(a){var b=a.hc(e.cq),c=a.Ye(e.Xg);c.Bv=b.Bv;
var i=b.Bv.hc(e.Af);if(i){c.width=i.width;c.height=i.height}c=a.Ye(e.Pn);c.geometry=d.create();c.bda=new f(b.Dp,["width","height","horizontalAlign","verticalAlign","scaleMode","zIndex"],function(b,c,d,f,i,g){var j=a.Zl(e.Pn);j.bea=b;j.aea=c;j.fca=d;j.verticalAlign=f;j.sda=i;j.zIndex=g});a.Ye(e.Geometry).geometry=c.geometry};i.prototype.lra=function(a){var b=a.hc(e.Pn);b.geometry.dispose();b.geometry=r;b.bda.stop();b.bda=r;a.cm(e.Geometry);a.cm(e.Xg);a.cm(e.Pn)};i.prototype.qsa=function(a){var b=a.hc(e.Pn),
c=a.hc(e.Xg),f=c.width,o=c.height,t=b.bea,s=b.aea,u;switch(b.sda){case k.NONE:c=t;u=s;break;case k.Qk:c=f;u=s*f/t;break;case k.Wg:u=o;c=t*o/s;break;case k.km:if(t*o>s*f){u=o;c=t*o/s}else{c=f;u=s*f/t}break;default:if(t*o>s*f){c=f;u=s*f/t}else{u=o;c=t*o/s}}switch(b.fca){case g.oa:f=-f*0.5;break;case g.Ka:f=f*0.5-c;break;default:f=-c*0.5}switch(b.verticalAlign){case g.jb:o=o*0.5-u;break;case g.ib:o=-o*0.5;break;default:o=-u*0.5}t=b.zIndex-i.gfa;d.set(b.geometry,f,o,0,0,0,c,0,0,1,0,u,0,1,0);(a.Zl(e.jw)||
a.Ye(e.jw)).PY=t;a.Rp.Dv()};i.gfa=100;i.Hb={};i.Hb.Xca=[e.cq,e.Pn.not];i.Hb.Wca=[e.cq,e.Pn,e.Xg];i.Hb.Yca=[e.cq.not,e.Pn];return i});define("gA","require,ee,jF,iG,dy,is,eh".split(","),function(a){var b=a("ee"),c=a("jF"),e=a("iG"),d=a("dy"),f=a("is"),a=a("eh"),g={};g.Mesh=b;g.Bi=c;g.Af=e;g.aq=d;g.Xg=f;g.cq=a;return g});
define("eM","require,fd,d,iu,el,gA".split(","),function(a){var b=a("fd"),c=a("d"),e=a("iu"),d=a("el"),f=a("gA"),a=b.extend(c,function(a){c.call(this);this.YD=(new e(a)).Ke(d.Geometry).Ke(d.Zp).Ke(d.Mesh).Ke(d.lm).Ke(d.OrthographicCamera).Ke(d.fw).Ke(d.Bi).Ke(d.Sk).Ke(d.jw).Ke(d.Af).Ke(d.$p).Ke(d.Scene).Ke(d.iw).Ke(d.Texture).Ke(d.aq).Ke(d.bq).Ke(d.Xg).Ke(d.cq).Ke(d.Pn).nz(f.Xg,"Viewport").nz(f.Bi,"Parent").nz(f.aq,"VideoMaterial").nz(f.cq,"ViewportPlaneGeometry").nz(f.Mesh,"Mesh").nz(f.Af,"Renderer");
this.mk=this.YD.Ky("Scene");this.mk.Ye(d.Scene);this.sb=this.YD.Ky("Camera");this.sb.Ye(d.OrthographicCamera);this.sb.Ye(d.Bi).FL=this.mk;this.g=this.YD.Ky("Renderer");this.bind(EventName.yb,this.nb,this,p);this.bind(EventName.nd,this.hh,this,p);this.bind(EventName.zd,this.eh,this,p)});a.prototype.Ky=function(a){return this.YD.Ky(a)};a.prototype.BX=function(a){this.YD.BX(a)};a.prototype.as=R("sb");a.prototype.js=function(a){if(this.sb!=a){this.sb=a;if(a=this.g.Zl(d.Af))a.vL=this.sb}};a.prototype.nb=
function(){var a=this.g.Zl(d.Af);if(a){a.width=this.Gd();a.height=this.Fd()}};a.prototype.hh=function(){this.Bqa()};a.prototype.eh=function(){this.mra()};a.prototype.Bqa=function(){var a=this.g.hc(d.Af);if(!a){a=this.g.Ye(d.Af);a.canvas=document.createElement("canvas");this.Pa().nX(a.canvas);a.vL=this.sb;a.bZ=this.mk;a.antialias=p;a.width=this.Gd();a.height=this.Fd()}};a.prototype.mra=function(){var a=this.g.hc(d.Af);if(a){this.Pa().Kwa(a.canvas);this.g.cm(d.Af)}};return a});
define("ba",["require","fd","cQ"],function(a){var b=a("fd"),c=a("cQ"),a=b.extend(c,function(a,b){c.call(this,a);this.C=b;this.C.bind(EventName.D("video"),this.KT,this);this.KT()});a.prototype.clear=function(){this.C&&(this.C.unbind(EventName.D("video"),this.KT,this),this.C=r);c.prototype.clear.call(this)};a.prototype.KT=function(){this.zZ(this.C.get("video"))};return a});
define("dW","require,fd,lc,R,d,db,ba".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("R"),d=a("d"),f=a("db"),g=a("ba"),a=b.extend(d,function(a,b,n){d.call(this);this.qb=a;this.F=b;this.C=n;this.set("toolTipDisabled",p);this.set("cursor",e.$v);this.bind(c.yb,this.nb,this,p);this.oy=new g(b,n);this.Nx=new f.e0;this.Nx.nZ(f.e0.eO);this.Nx.Ze(this.AJ=z);[this.oy.Cb(),this.Nx.Cb()].forEach(function(a,b){this.Pa().append(a);a.css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",
"z-index":b})}.bind(this))});a.prototype.tZ=function(a,b){if(this.AJ!=a){this.AJ=a;this.Nx.Bda(b);this.Nx.Ze(a)}};a.prototype.nb=function(){this.sK=p;this.Nx.setSize(this.Ba(),this.gb())};return a});
define("ji","require,fd,R,c,kJ,el,eM,dW".split(","),function(a){var b=a("fd"),c=a("R"),e=a("c"),d=a("kJ"),f=a("el"),g=a("eM"),k=a("dW"),a=b.extend(d,function(a,b,f){d.call(this);this.qb=a;this.F=b;this.C=f;this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",c.$v);this.set("layout",e.fN);this.ab=this.bn=r;this.jL=[];this.VD=[];this.GD()});a.prototype.Ia=function(){d.prototype.Ia.call(this);if(this.bn==r){this.bn=new g(this.qb);this.bn.N({left:0,top:0,right:0,bottom:0});this.ma(this.bn);
this.jL.forEach(function(a){this.Z2(a)}.bind(this))}if(this.ab==r){this.ab=new k(this.qb,this.F,this.C);this.ab.N({left:0,top:0,right:0,bottom:0});this.ma(this.ab);this.GD()}};a.prototype.jta=function(a){this.jL.push(a);this.bn&&this.Z2(a)};a.prototype.Z2=function(a){var b=this.bn.Ky("Video");b.Ye(f.Bi).FL=this.bn.mk;b.Ye(f.Mesh).Dp=a;var c=b.Ye(f.cq);c.Dp=a;c.Bv=this.bn.g;c=b.Ye(f.aq);c.Dp=a;c.vea=a.get("video");c.Zaa=a;this.VD.push(b);this.GD()};a.prototype.jda=function(a){a=this.jL.indexOf(a);
if(!(a<0)){this.jL.splice(a,1);this.bn&&this.mja(this.VD[a])}};a.prototype.mja=function(a){var b=this.VD.indexOf(a);if(!(b<0)){this.VD.splice(b,1);this.bn.BX(a);this.GD()}};a.prototype.tZ=function(a){this.AJ=a;this.GD()};a.prototype.GD=function(){this.ab&&this.ab.tZ(this.AJ&&this.VD.length>0)};return a});
define("bl","require,dm,fd,lc,fr,bY,dT,jK,eQ,cq,dN,ji,dk,cj,fj,kJ".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("fr"),f=a("bY"),g=a("dT"),k=a("jK"),i=a("eQ"),n=a("cq"),j=a("dN"),l=a("ji"),q=a("dk"),o=a("cj"),t=a("fj"),s=a("kJ"),u=c.extend(s,function(){s.call(this);this.set("childrenInteractionEnabled",p);this.set("contentOpaque",p);this.set("creationPolicy",o.Ps);this.set("vrPointerColor","#ffffff");this.set("vrPointerOverColor","#007acc");this.set("vrPointerSelectionColor","#ff6600");
this.set("vrPointerDistance",2);this.set("vrPointerSelectionTime",1200);this.set("surfaceReticleColor","#ffffff");this.set("surfaceReticleSelectionColor","#ffffff");this.set("surfaceReticleOpacity",0.6);this.set("surfaceReticleSelectionOpacity",1);this.set("displayTooltipInSurfaceSelection",p);this.set("doubleClickAction","toggle_fullscreen");this.set("subtitlesEnabled",p);this.set("checkToolTipOcclusion",p);this.xm=this.Ac=this.rH=this.Te=r;this.eU=this.Km=z;this.Pf=d.K;this.Gi=this.Yg=r;this.Xj=
z;this.bind(u.i0,this.wna,this,p);this.bind(u.h0,this.vna,this,p);this.bind(e.xb,this.c7,this);this.bind(e.xb,this.c7,this);this.bind(e.tc,this.Pna,this);this.bind(e.Ib,this.Ona,this);this.bind(e.nd,this.dJ,this,p);this.bind(e.zd,this.Nna,this,p);this.sX=new k(this,"buttonPause",q.Eh);this.sX.bind(e.T,this.Dx,this);this.sX.set("state",t.cd);this.uX=new k(this,"buttonPlay",q.Eh);this.uX.bind(e.T,this.Ex,this);this.uX.set("state",t.cd);this.tX=new k(this,"buttonPlayPause",q.Eh);this.tX.bind(e.T,this.sna,
this);this.tX.set("state",t.cd);this.vX=new k(this,"buttonStop",q.Eh);this.vX.bind(e.T,this.ku,this);this.vX.set("state",t.za);this.mta=new k(this,"buttonRestart",q.Tc);this.mta.bind(e.T,this.ju,this);this.uL=new k(this,"buttonToggleSubtitles",q.Eh);this.uL.bind(e.rg,function(){this.set("subtitlesEnabled",p)},this,p);this.uL.bind(e.Dh,function(){this.set("subtitlesEnabled",z)},this,p);this.bind(e.D("subtitlesEnabled"),function(){this.uL.set("pressed",this.get("subtitlesEnabled"))},this);this.uL.set("pressed",
this.get("subtitlesEnabled"));this.bma=c.An(this.Isa,this);this.bind(e.RF,this.Mna,this,p)});g.A("ViewerArea",u).B("UIComponent").L({buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonToggleSubtitles:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",cardboardPointerColor:"color",cardboardPointerSelectionTime:"number",cardboardPointerSelectionColor:"color",cardboardPointerDistance:"number",externalPlaybackBar:"PlaybackBar",vrPointerColor:"color",vrPointerOverColor:"color",vrPointerSelectionTime:"number",vrPointerSelectionColor:"color",vrPointerDistance:"number",transitionMode:"enum[blending, fade_out_fade_in]",transitionDuration:"number",blendingTransitionDuration:"number",
disolveTransitionDuration:"number",displayTooltipInSurfaceSelection:"bool",displayTooltipInTouchScreens:"bool",doubleClickAction:"enum[toggle_fullscreen, none]",firstTransitionDuration:"number",translationTransitionDuration:"number",translationTransitionEnabled:"bool",progressBackgroundColor:"or[array[color], color]",progressBackgroundColorDirection:"enum[horizontal, vertical]",progressBackgroundColorRatios:"array[number]",progressBackgroundOpacity:"number",progressBarBackgroundColor:"or[array[color], color]",
progressBarBackgroundColorDirection:"enum[horizontal, vertical]",progressBarBackgroundColorRatios:"array[number]",progressBarBorderColor:"color",progressBarBorderRadius:"number",progressBarBorderSize:"number",progressBarOpacity:"number",progressBorderColor:"color",progressBorderRadius:"number",progressBorderSize:"number",progressBottom:"or[number, percent]",progressHeight:"or[number, percent]",progressLeft:"or[number, percent]",progressOpacity:"number",progressRight:"or[number, percent]",externalProgressBar:"ProgressBar",
playbackBarBackgroundColor:"or[array[color], color]",playbackBarBackgroundColorDirection:"enum[horizontal, vertical]",playbackBarBackgroundOpacity:"number",playbackBarBorderColor:"color",playbackBarBorderRadius:"number",playbackBarBorderSize:"number",playbackBarBottom:"or[number, percent]",playbackBarHeight:"or[number, percent]",playbackBarWidth:"or[number, percent]",playbackBarLeft:"or[number, percent]",playbackBarOpacity:"number",playbackBarRight:"or[number, percent]",playbackBarRollOverDisplay:"bool",
playbackBarLiveDragging:"bool",playbackBarProgressBackgroundColor:"or[array[color], color]",playbackBarProgressBackgroundColorDirection:"enum[horizontal, vertical]",playbackBarProgressBackgroundColorRatios:"array[number]",playbackBarProgressBorderColor:"color",playbackBarProgressBorderRadius:"number",playbackBarProgressBorderSize:"number",playbackBarProgressOpacity:"number",playbackBarHeadBackgroundColor:"or[array[color], color]",playbackBarHeadBackgroundColorDirection:"enum[horizontal, vertical]",
playbackBarHeadBackgroundColorRatios:"array[number]",playbackBarHeadBorderColor:"color",playbackBarHeadBorderRadius:"number",playbackBarHeadBorderSize:"number",playbackBarHeadOpacity:"number",playbackBarHeadWidth:"or[number, percent]",playbackBarHeadHeight:"or[number, percent]",playbackBarHeadShadow:"bool",playbackBarHeadShadowBlurRadius:"number",playbackBarHeadShadowColor:"color",playbackBarHeadShadowHorizontalLength:"number",playbackBarHeadShadowOpacity:"number",playbackBarHeadShadowSpread:"number",
playbackBarHeadShadowVerticalLength:"number",playbackState:"enum[stopped, playing, paused]",subtitlesBackgroundColor:"color",subtitlesBackgroundOpacity:"number",subtitlesBorderColor:"color",subtitlesBorderSize:"number",subtitlesBottom:"or[number, percent]",subtitlesEnabled:"bool",subtitlesFontFamily:"string",subtitlesFontColor:"color",subtitlesFontSize:"or[number, size]",subtitlesFontStyle:"enum[italic, normal]",subtitlesFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",
subtitlesGap:"number",subtitlesHorizontalAlign:"enum[left, center, right]",subtitlesOpacity:"number",subtitlesPaddingTop:"number",subtitlesPaddingBottom:"number",subtitlesPaddingLeft:"number",subtitlesPaddingRight:"number",subtitlesShadow:"bool",subtitlesShadowBlurRadius:"number",subtitlesShadowColor:"color",subtitlesShadowOpacity:"number",subtitlesShadowHorizontalLength:"number",subtitlesShadowVerticalLength:"number",subtitlesTextDecoration:"enum[underline, overline, line-through, none]",subtitlesTextShadowBlurRadius:"number",
subtitlesTextShadowColor:"color",subtitlesTextShadowHorizontalLength:"number",subtitlesTextShadowOpacity:"number",subtitlesTextShadowVerticalLength:"number",subtitlesTop:"or[number, percent]",subtitlesVerticalAlign:"enum[top, middle, bottom]",surfaceReticleColor:"color",surfaceReticleOpacity:"number",surfaceReticleSelectionColor:"color",surfaceReticleSelectionOpacity:"number"}).Rg({play:function(){this.Ex()},pause:function(){this.Dx()},stop:function(){this.ku()},restart:function(){this.ju()}});u.kb=
{progressBackgroundColor:m,progressBackgroundColorDirection:m,progressBackgroundColorRatios:m,progressBackgroundOpacity:m,progressBarBackgroundColor:m,progressBarBackgroundColorDirection:m,progressBarBackgroundColorRatios:m,progressBarBorderColor:m,progressBarBorderRadius:m,progressBarBorderSize:m,progressBarOpacity:m,progressBorderColor:m,progressBorderRadius:m,progressBorderSize:m,progressBottom:0,progressHeight:20,progressLeft:0,progressOpacity:m,progressPercent:0,progressRight:0,progressVisible:z,
externalPlaybackBar:m,externalProgressBar:m,playbackBarBackgroundColor:m,playbackBarBackgroundColorDirection:m,playbackBarBackgroundOpacity:m,playbackBarBorderColor:m,playbackBarBorderRadius:m,playbackBarBorderSize:m,playbackBarBottom:10,playbackBarHeight:m,playbackBarWidth:m,playbackBarLeft:m,playbackBarOpacity:m,playbackBarRight:m,playbackBarLiveDragging:m,playbackBarDuration:100,playbackBarPosition:0,playbackBarRollOverDisplay:z,plabackBarSteps:m,plabackBarSelectedStep:m,playbackBarVisible:z,playbackBarProgressBackgroundColor:m,
playbackBarProgressBackgroundColorDirection:m,playbackBarProgressBackgroundColorRatios:m,playbackBarProgressBorderColor:m,playbackBarProgressBorderRadius:m,playbackBarProgressBorderSize:m,playbackBarProgressOpacity:m,playbackBarHeadBackgroundColor:m,playbackBarHeadBackgroundColorDirection:m,playbackBarHeadBackgroundColorRatios:m,playbackBarHeadBorderColor:m,playbackBarHeadBorderRadius:m,playbackBarHeadBorderSize:m,playbackBarHeadOpacity:m,playbackBarHeadWidth:m,playbackBarHeadHeight:m,playbackBarHeadShadow:m,
playbackBarHeadShadowBlurRadius:m,playbackBarHeadShadowColor:m,playbackBarHeadShadowHorizontalLength:m,playbackBarHeadShadowOpacity:m,playbackBarHeadShadowSpread:m,playbackBarHeadShadowVerticalLength:m,playbackBarStepBackgroundColor:m,playbackBarStepBackgroundColorDirection:m,playbackBarStepBackgroundColorRatios:m,playbackBarStepBorderColor:m,playbackBarStepBorderRadius:m,playbackBarStepBorderSize:m,playbackBarStepOpacity:m,playbackBarStepWidth:m,playbackBarStepHeight:m,playbackBarStepShadow:m,playbackBarStepShadowBlurRadius:m,
playbackBarStepShadowColor:m,playbackBarStepShadowHorizontalLength:m,playbackBarStepShadowOpacity:m,playbackBarStepShadowSpread:m,playbackBarStepShadowVerticalLength:m,playbackBarStepSelectedBackgroundColor:m,playbackBarStepSelectedBackgroundColorDirection:m,playbackBarStepSelectedBackgroundColorRatios:m,playbackBarStepSelectedBorderColor:m,playbackBarStepSelectedBorderRadius:m,playbackBarStepSelectedBorderSize:m,playbackBarStepSelectedOpacity:m,playbackBarStepSelectedWidth:m,playbackBarStepSelectedHeight:m,
playbackBarStepSelectedShadow:m,playbackBarStepSelectedShadowBlurRadius:m,playbackBarStepSelectedShadowColor:m,playbackBarStepSelectedShadowHorizontalLength:m,playbackBarStepSelectedShadowOpacity:m,playbackBarStepSelectedShadowSpread:m,playbackBarStepSelectedShadowVerticalLength:m,subtitlesBackgroundColor:"#000000",subtitlesBackgroundOpacity:1,subtitlesBorderColor:m,subtitlesBorderSize:0,subtitlesBottom:"10%",subtitlesFontFamily:m,subtitlesFontColor:"#ffffff",subtitlesFontSize:"12px",subtitlesFontStyle:m,
subtitlesFontWeight:m,subtitlesGap:10,subtitlesHorizontalAlign:"center",subtitlesOpacity:1,subtitlesPaddingTop:5,subtitlesPaddingBottom:5,subtitlesPaddingLeft:5,subtitlesPaddingRight:5,subtitlesShadow:z,subtitlesShadowBlurRadius:m,subtitlesShadowHorizontalLength:0,subtitlesShadowVerticalLength:0,subtitlesShadowColor:"#000000",subtitlesShadowOpacity:0,subtitlesTextDecoration:m,subtitlesTextShadowBlurRadius:m,subtitlesTextShadowColor:"#000000",subtitlesTextShadowHorizontalLength:0,subtitlesTextShadowOpacity:0,
subtitlesTextShadowVerticalLength:0,subtitlesTop:m,subtitlesVerticalAlign:"bottom",transitionDuration:500,blendingTransitionDuration:m,disolveTransitionDuration:m,translationTransitionDuration:m,translationTransitionEnabled:p,toolTipEnabled:p};b.defaults(u.kb,s.kb);u.prototype.set=function(a,b){if(a=="playbackState"){b=this.Pf;if(this.get(a)!=b){this.eU=p;this.bma()}}switch(a){case "toolTipEnabled":this.set("toolTipDisabled",b===z);break;case "cardboardPointerDistance":this.set("vrPointerDistance",
b);break;case "cardboardPointerColor":this.set("vrPointerColor",b);break;case "cardboardPointerSelectionColor":this.set("vrPointerSelectionColor",b);break;case "cardboardPointerSelectionTime":this.set("vrPointerSelectionTime",b);break;case "playbackBarVisible":case "playbackBarRollOverDisplay":this.HD()}s.prototype.set.call(this,a,b)};u.prototype.ya=function(){this.Rj(u.kb)};u.prototype.Ia=function(){s.prototype.Ia.call(this);if(this.Te==r){this.Te=new n;this.ma(this.Te)}if(this.Ac==r){this.Ac=new i;
this.Ac.bind(e.aa,this.bU,this,p);this.ma(this.Ac);this.HD()}};u.prototype.Eua=R("Ac");u.prototype.ui=function(){s.prototype.ui.call(this);var a=this.Oa(),c=b(a).find(function(a){return a instanceof j}),d=b(a).find(function(a){return a instanceof l}),e=this.Te&&this.tE(this.Te)>=0?this.Te:r,f=this.Ac&&this.tE(this.Ac)>=0?this.Ac:r;b([{child:c,index:0},{child:d,index:c?1:0},{child:f,index:a.length-(e?2:1)},{child:e,index:a.length-1}]).each(function(a){var b=a.child,a=a.index;b&&this.tE(b)!=a&&this.wj(b,
a)},this)};u.prototype.ga=function(){if(this.n("externalProgressBar")){(this.rH=this.k("externalProgressBar"))?this.removeChild(this.Te):this.ma(this.Te);this.p("externalProgressBar");b(u.k1).each(function(a){this.Eu(a)},this)}this.fb(u.Vfa,u.$0,[this.Te],p,p);var a=[this.Te];this.rH&&a.push(this.rH);this.fb(u.k1,u.l1,a,p,p);if(this.n("externalPlaybackBar")){this.xm&&this.xm.unbind(e.aa,this.bU,this,p);(this.xm=this.k("externalPlaybackBar"))?this.removeChild(this.Ac):this.ma(this.Ac);this.HD();this.xm&&
this.xm.bind(e.aa,this.bU,this,p);this.p("externalPlaybackBar");b(u.g1).each(function(a){this.Eu(a)},this)}this.fb(u.Ufa,u.Z0,[this.Ac],p,p);a=[this.Ac];this.xm&&a.push(this.xm);this.fb(u.g1,u.h1,a,p,p);s.prototype.ga.call(this)};u.prototype.Isa=function(){if(this.eU){this.eU=z;this.sX.set("state",this.Pf==d.yc?t.za:t.cd);this.uX.set("state",this.Pf==d.R||this.Pf==d.yc?t.za:t.cd);this.tX.set("state",this.Pf==d.R?t.za:t.cd);this.vX.set("state",this.Pf==d.K?t.za:t.cd)}};u.prototype.Yb=function(a){this.Pf=
a;this.set("playbackState",a)};u.prototype.dJ=function(){u.hh(this)};u.prototype.Nna=function(){u.eh(this)};u.prototype.Dx=function(){this.Pf==d.yc?this.lh():this.xl()};u.prototype.Ex=function(){this.lh()};u.prototype.sna=function(){this.Pf==d.R?this.xl():this.lh()};u.prototype.ku=function(){this.qk()};u.prototype.ju=function(){this.qk();this.lh()};u.prototype.Mna=function(){if(!this.Yg||!this.Yg.Kaa())switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.Ua().dg;a&&a.available()&&
a.toggle()}};u.prototype.lh=function(){this.Gi&&this.Gi.play()};u.prototype.xl=function(){this.Gi&&this.Gi.pause()};u.prototype.qk=function(){this.Gi&&this.Gi.stop()};u.prototype.wna=function(a){this.Z8(a.data.player)};u.prototype.vna=function(a){this.Yg==a.data.player&&this.Z8(r)};u.prototype.c7=function(){u.fm(this)};u.prototype.Pna=function(){this.Xj=p;this.HD()};u.prototype.Ona=function(){this.Xj=z;this.HD()};u.prototype.HD=function(){this.Ac&&this.Ac.set("visible",this.get("playbackBarVisible")&&
(this.Xj||!this.get("playbackBarRollOverDisplay")||Device.XM()))};u.prototype.Z8=function(a){if(this.Yg!=a){this.set("playbackBarVisible",z);this.Yg&&this.Yg.fm(z);this.Gi&&this.Gi.unbind(e.D("state"),this.ZO,this);this.toa=this.Yg;(this.Yg=a)&&this.Yg.fm(!!this.ox);(this.Gi=this.Yg&&this.Yg.Jha?this.Yg:r)&&this.Gi.bind(e.D("state"),this.ZO,this,p);this.ZO()}};u.prototype.fm=function(a){this.ox=a;this.Yg&&this.Yg.fm(!!this.ox)};u.prototype.$ya=function(){return!this.toa};u.prototype.ZO=function(){this.Gi?
this.Yb(this.Gi.get("state")):this.Yb(d.K)};u.prototype.bU=function(){var a=(this.xm?this.xm:this.Ac).get("position");this.trigger(new f(u.WN,{position:a}))};u.$0={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.Vfa=b(u.$0).keys();u.l1={progressPercent:"percent",progressVisible:"visible"};u.k1=b(u.l1).keys();u.Z0={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.Ufa=b(u.Z0).keys();u.h1={playbackBarDuration:"duration",playbackBarPosition:"position",playbackBarSteps:"steps",playbackBarSelectedStep:"selectedStep",playbackBarVisible:"visible"};u.g1=b(u.h1).keys();u.tO="requestByPlayer";
u.i0="playerShow";u.h0="playerHide";u.WN="playbackBarPositionChange";u.Tt=r;u.fm=function(a){if(u.Tt!=a){u.Tt&&u.Tt.fm(z);u.Tt=a;u.Tt&&u.Tt.fm(p)}};u.Pr=[];u.hh=function(a){var b=u.Pr.indexOf(a);b<0&&u.Pr.splice(b,1);u.Pr.push(a);this.fm(a)};u.eh=function(a){var b=u.Pr.indexOf(a);b<0&&u.Pr.splice(b,1);u.Tt==a&&u.fm(u.Pr.length?u.Pr[u.Pr.length-1]:r)};return u});
define("ct","fd,iU,lc,bY,dT,bl".split(","),function(a,b,c,e,d,f){var g=a.extend(b,function(a){b.call(this);this.Jha=a;this.bD=this.dr=r});g.yf="mediaShow";g.Bh="mediaHide";g.prototype.fm=C();g.prototype.Kaa=S(z);g.prototype.pK=function(a){if(this.dr!=a){this.dr&&this.jW(this.dr);(this.dr=a)&&this.AP(this.dr)}};g.prototype.AP=function(a){a.bind(f.tO,this.raa,this);a.bind(f.WN,this.BJ,this)};g.prototype.jW=function(a){a.unbind(f.tO,this.raa,this);a.unbind(f.WN,this.BJ,this)};g.prototype.QJ=function(){this.dr.trigger(new e(f.tO,
{player:this}))};g.prototype.raa=function(a){a.data.player!=this&&this.lD()};g.prototype.BJ=C();g.prototype.lD=C();g.prototype.zI=function(a){this.trigger(new e(g.yf,{media:a}));this.bD=this.dr;this.bD.trigger(new e(f.i0,{player:this}))};g.prototype.yI=function(a){this.trigger(new e(g.Bh,{media:a}));if(this.bD){this.bD.trigger(new e(f.h0,{player:this}));this.bD=r}};return g});
define("di","fd,iU,lc,bY,dT,jK,ct,bl,fr,dk,fj".split(","),function(a,b,c,e,d,f,g,k,i,n,j){b=a.extend(g,function(){g.call(this,p);this.Km=z;this.my=p;this.m=i.K;this.DP=new f(this,"buttonPlayPause",n.Eh);this.DP.bind(c.rg,this.tna,this,p);this.DP.bind(c.Dh,this.una,this,p);this.b2=new f(this,"buttonPause",n.Tc);this.b2.bind(c.T,this.Dx,this,p);this.c2=new f(this,"buttonPlay",n.Tc);this.c2.bind(c.T,this.Ex,this,p);this.h2=new f(this,"buttonStop",n.Tc);this.h2.bind(c.T,this.ku,this,p);this.Bha=new f(this,
"buttonRestart",n.Tc);this.Bha.bind(c.T,this.ju,this,p);this.h5=a.An(this.ssa,this);this.h5()});b.prototype.set=function(a,b){a!="state"&&g.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){switch(a){case "state":return this.m}return g.prototype.get.call(this,a,b)};b.prototype.ssa=function(){if(this.my){this.my=z;this.b2.set("state",this.m==i.yc?j.za:j.cd);this.c2.set("state",this.m==i.R||this.m==i.yc?j.za:j.cd);this.DP.set("pressed",this.m==i.R);this.h2.set("state",this.m==i.K?j.za:j.cd)}};
b.prototype.fy=function(a){if(this.Km!=a)(this.Km=a)||this.Yb(i.K)};b.prototype.Yb=function(a){var b=this.m;this.m=a;g.prototype.set.call(this,"state",a);if(b!=this.m){this.my=p;this.h5();this.trigger(new e(c.zc,{oldState:b,state:this.m}))}};b.prototype.Dx=function(){this.Km&&(this.m==i.yc?this.lh():this.xl())};b.prototype.Ex=function(){this.Km&&this.lh()};b.prototype.tna=function(){this.Km&&this.lh()};b.prototype.una=function(){this.Km&&this.xl()};b.prototype.ku=function(){this.Km&&this.qk()};b.prototype.ju=
function(){if(this.Km){this.qk();this.lh()}};b.prototype.lh=C();b.prototype.xl=C();b.prototype.qk=C();return b});define("hz",[],function(){return{As:"constrained",Qea:"free_drag",kza:"free_drag_and_rotation",AO:"sync_with_field_of_view"}});
define("ib",["fd","hz","je"],function(a,b,c){function e(){this.Z=p;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Dd=c.Me;this.Yi=b.As;this.gT=this.kT=1;this.Qc=this.Rc=this.Hi=this.Ii=100;this.ij=e.Vs}e.prototype.Wba=function(){return this.ij!==e.Vs};e.prototype.Vba=function(){return this.ij&e.kw?p:z};e.prototype.Xba=function(){return this.ij&e.lw?p:z};e.prototype.Yba=function(){return this.ij&e.Ys?p:z};e.prototype.Uba=function(){return this.ij&e.Us?p:z};e.prototype.getX=function(){this.nj();return this.ca};
e.prototype.getY=function(){this.nj();return this.da};e.prototype.$l=function(){this.nj();return this.ra};e.prototype.Py=function(){this.nj();return this.Eb};e.prototype.ZE=function(a,b,c,e,i){this.Rc=a;this.Qc=b;this.Dd=c;this.kT=e;this.gT=i;this.da=this.ca=0.5;this.Eb=0;this.ra=e;this.Z=p};e.prototype.Fa=function(a,b,c,e){this.ca=a;this.da=b;this.Eb=c;this.ra=e;this.Z=p};e.prototype.gm=function(a){this.Yi=a;this.Z=p};e.prototype.setSize=function(a,b){this.Ii=a;this.Hi=b;this.Z=p};e.prototype.nj=
function(){if(this.Z){this.Z=z;var a=e.Vs;this.ra>this.gT?(this.ra=this.gT,a|=e.Wfa):this.ra<this.kT&&(this.ra=this.kT,a|=e.Xfa);var f,g,k,i;if(this.Yi==b.As){switch(this.Dd){case c.NONE:g=this.Rc;i=this.Qc;break;case c.Qk:g=this.Ii;i=this.Qc*this.Ii/this.Rc;break;case c.Wg:g=this.Rc*this.Hi/this.Qc;i=this.Hi;break;case c.km:this.Rc*this.Hi>this.Qc*this.Ii?(g=this.Rc*this.Hi/this.Qc,i=this.Hi):(g=this.Ii,i=this.Qc*this.Ii/this.Rc);break;default:case c.Me:this.Rc*this.Hi>this.Qc*this.Ii?(g=this.Ii,
i=this.Qc*this.Ii/this.Rc):(g=this.Rc*this.Hi/this.Qc,i=this.Hi)}g*=this.ra;i*=this.ra;f=Math.min(0.5*this.Ii/g,0.5);g=Math.max(1-0.5*this.Ii/g,0.5);k=Math.min(0.5*this.Hi/i,0.5);i=Math.max(1-0.5*this.Hi/i,0.5)}else f=0,g=1,k=0,i=1;this.ca<f?(this.ca=f,a|=e.kw):this.ca>g&&(this.ca=g,a|=e.lw);this.da<k?(this.da=k,a|=e.Ys):this.da>i&&(this.da=i,a|=e.Us);if((this.Yi==b.As||this.Yi==b.Qea)&&0!=this.Eb)this.Eb=0,a|=e.aga;this.ij=a}};e.Vs=0;e.kw=1;e.lw=2;e.Ys=4;e.Us=8;e.Xfa=16;e.Wfa=32;e.aga=64;return e});
define("eP",[],function(){function a(){this.NA=0.1;this.bH=this.tQ=this.wQ=this.vQ=this.DQ=this.sQ=this.BQ=this.AQ=this.dE=this.jX=this.$s=this.eP=this.bE=this.gX=this.$D=this.eX=0}a.prototype.LM=P("NA");a.prototype.Rda=function(a,c,e,d,f,g,k,i){this.eX=a;this.gX=c;this.eP=e;this.jX=d;this.$D+=f;this.bE+=g;this.$s+=k;this.dE+=i};a.prototype.kd=function(){return 0!=this.AQ||0!=this.BQ||0!=this.sQ||0!=this.DQ||0!=this.eX||0!=this.gX||0!=this.eP||0!=this.jX||0!=this.$D||0!=this.bE||0!=this.$s||0!=this.dE};
a.prototype.cb=function(a){a=1E3/a;this.vQ=this.lH(this.AQ/a,this.eX/a+this.$D,this.NA);this.wQ=this.lH(this.BQ/a,this.gX/a+this.bE,this.NA);this.tQ=this.lH(this.sQ/a,this.eP/a+this.$s,this.NA);this.bH=this.lH(this.DQ/a,this.jX/a+this.dE,this.NA);this.AQ=this.vQ*a;this.BQ=this.wQ*a;this.sQ=this.tQ*a;this.DQ=this.bH*a;this.dE=this.$s=this.bE=this.$D=0};a.prototype.lH=function(a,c,e){return 0==c?this.ze(a,c,e):c};a.prototype.ze=function(a,c,e){a=(c-a)*(1-e);0.01>Math.abs(a)&&(a=0);return c-a};return a});
define("eU",["fd","lc","bY","eL","je"],function(a,b,c,e){var d=a.extend(e,function(){e.call(this);this.Tw=7;this.GI=this.FS=z;this.II=m;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.iI=1;this.jU=p;this.kU=z;this.Zsa=p;this.iX=z;this.sa=r});d.prototype.$E=P("Tw");d.prototype.ic=function(a,b,c,d){this.Eb=a;this.ra=b;this.Rc=c;this.Qc=d};d.prototype.dya=function(a){this.jU=a;this.lK(this.jU&&!!this.sa)};d.prototype.Fv=function(a){this.sa!=a&&(this.lK(z),this.pV(z),this.mi(),this.sa=a,this.lK(this.jU&&
!!this.sa),this.pV(this.Zsa&&!!this.sa))};d.prototype.mi=function(){this.lK(z);this.pV(z);this.sa=r};d.prototype.lK=function(a){this.kU!=a&&((this.kU=a)?this.kha():this.Pra())};d.prototype.pV=function(a){this.iX!=a&&((this.iX=a)?this.lha():this.Qra())};d.prototype.kha=function(){this.sa.bind(b.xb,this.lc,this,p);this.sa.bind(b.Lc,this.Bg,this,p);this.sa.bind(b.cc,this.Cg,this,p)};d.prototype.Pra=function(){this.sa.unbind(b.xb,this.lc,this);this.sa.unbind(b.Lc,this.Bg,this);this.sa.unbind(b.cc,this.Cg,
this)};d.prototype.lha=function(){this.sa.bind(b.Yp,this.$t,this,p);this.sa.bind(b.Zv,this.Ht,this,p)};d.prototype.Qra=function(){this.sa.unbind(b.Yp,this.$t,this);this.sa.unbind(b.Zv,this.Ht,this)};d.prototype.lc=function(a){this.Pqa(a)};d.prototype.Bg=function(a){this.U$(a)};d.prototype.Cg=function(){this.eR()};d.prototype.$t=function(a){this.LW(a)};d.prototype.Ht=function(a){this.MW(a)};d.prototype.Pqa=function(a){this.FS=p;this.GI=z;this.II=a;this.U$(a)};d.prototype.U$=function(a){if(this.FS){var b=
a.pageX-this.II.pageX,e=a.pageY-this.II.pageY;this.GI||(Math.sqrt(b*b+e*e)>this.Tw?this.GI=p:b=e=0);this.GI&&(this.II=a);a=this.Eb*Math.PI/180;this.trigger(new c(d.Mk,{xDelta:-((b*Math.cos(a)+e*Math.sin(a))/this.Rc),yDelta:-((e*Math.cos(a)-b*Math.sin(a))/this.Qc)}))}};d.prototype.eR=function(){this.FS=z};d.prototype.MW=function(a){if(this.iI!=a.scale){this.eR();var b=this.iI;this.iI=a.scale;this.trigger(new c(d.Pk,{zoomDelta:this.ra*this.iI/b-this.ra}))}};d.prototype.LW=function(a){0!=a.op&&(this.eR(),
this.trigger(new c(d.Pk,{zoomDelta:0.1*this.ra*a.DX})))};d.Mk="position change";d.Pk="zoom change";d.wza="vieport navigation";d.vza="relative navigation";d.uza="relative exponential navigation";d.tza="dragging";return d});define("hm",[],function(){return{uO:"rotateClockwise",vO:"rotateCounterClockwise",Qn:"zoomIn",Rn:"zoomOut",je:"stop"}});
define("km","fd,bY,eL,je,eP,eU,hm,lc".split(","),function(a,b,c,e,d,f,g){var k=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.Am=this.JJ=this.V=z;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.Dd=e.As;this.$a=new d;this.va=new f;if(this.g.Yj){this.va.$E(k.UO);this.$a.LM(k.VO)}else{this.va.$E(0);this.$a.LM(1)}this.va.bind(f.Mk,this.lna,this,p);this.va.bind(f.Pk,this.hr,this,p)});k.prototype.clear=function(){this.va.unbind(f.Mk,this.IAa,this,p);this.va.unbind(f.Pk,this.hr,
this,p);this.va.mi();this.g=this.H=this.$a=this.va=r};k.prototype.Sg=function(a){switch(a){case g.uO:this.vb(0,0,+k.OO,0,0,0,0,0);break;case g.vO:this.vb(0,0,-k.OO,0,0,0,0,0);break;case g.Qn:this.vb(0,0,0,+k.Vz,0,0,0,0);break;case g.Rn:this.vb(0,0,0,-k.Vz,0,0,0,0);break;case g.je:this.vb(0,0,0,0,0,0,0,0)}};k.prototype.Fa=function(a,b,c,d,e,f){this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.Rc=e;this.Qc=f;this.va.ic(this.Eb,this.ra,this.Rc,this.Qc)};k.prototype.kd=function(){return this.V&&this.$a.kd()};
k.prototype.cb=function(a){this.$a.cb(a);this.H.Fa(this.ca+this.$a.vQ,this.da+this.$a.wQ,this.Eb+this.$a.tQ,this.ra+this.$a.bH);this.ca=this.H.getX();this.da=this.H.getY();this.Eb=this.H.Py();this.ra=this.H.$l()};k.prototype.dF=function(a){this.Am=a;this.va.dya(!this.Am)};k.prototype.md=function(a){(this.V=a)?this.va.Fv(this.g.getParent()):this.va.mi()};k.prototype.lna=function(a){this.vb(0,0,0,0,a.data.xDelta,a.data.yDelta,0,0)};k.prototype.hr=function(a){this.vb(0,0,0,0,0,0,0,a.data.zoomDelta)};
k.prototype.vb=function(a,b,c,d,e,f,g,k){this.$a.Rda(a,b,c,d,e,f,g,k);this.pf()};k.prototype.pf=function(){this.trigger(new b(k.cf))};k.cf="position change request";k.UO=7;k.VO=0.2;k.Vz=0.5;k.OO=30;return k});
define("jI","fd,bY,eL,kO,bq,eP,eU,hm,lc".split(","),function(a,b,c,e,d,f,g,k){var i=a.extend(c,function(a,b){c.call(this);this.g=a;this.H=b;this.V=z;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.Qc=this.Rc=100;this.O=r;this.bR=p;this.Bb=r;this.mJ=0;this.Um=this.ep=this.dp=m;this.$a=new f;this.va=new g;if(this.g.Yj){this.va.$E(i.UO);this.$a.LM(i.VO)}else{this.va.$E(0);this.$a.LM(1)}this.va.bind(g.Pk,this.hr,this,p)});i.prototype.Oxa=function(a,b){this.Rc=a;this.Qc=b;this.bL()};i.prototype.Lp=function(a){if(this.Bb!=
a){this.Bb=a;this.mJ=m;this.bL()}};i.prototype.zj=function(a,b){if(this.Bb==a){this.mJ=b;this.bL()}};i.prototype.bL=function(){var a,b,c;if(this.Bb&&this.mJ!=m){a=this.Bb.get("x",0)/this.Rc;b=this.Bb.get("y",0)/this.Qc;c=-(this.mJ+this.Bb.get("angle",0))}else c=b=a=m;if(this.Um!=c){this.Um=c;this.pf()}if(this.dp!=a||this.ep!=b){this.dp=a;this.ep=b;this.ama();this.pf()}};i.prototype.ama=function(){this.bR=p;this.pf()};i.prototype.DD=function(){if(this.bR||this.O&&this.O.Je()){this.bR=z;this.O=r;if(this.dp!=
m&&this.ep!=m&&this.Um!=m){for(var a=this.Um-this.Eb;a>180;)a=a-360;for(;a<-180;)a=a+360;if(this.ca!=this.dp||this.da!=this.ep)this.O=new e("quad_in_out",[new d("x",this.ca,this.dp,1),new d("y",this.da,this.ep,1),new d("angleDif",a,a,360)],500);else if(this.Um!=this.Eb)this.O=new e("quad_in_out",[new d("x",this.ca,this.ca,1),new d("y",this.da,this.da,1),new d("angleDif",a,0,360)],500)}}};i.prototype.clear=function(){this.va.unbind(g.Pk,this.hr,this,p);this.va.mi();this.g=this.H=this.O=this.$a=this.va=
r};i.prototype.Sg=function(a){switch(a){case k.Qn:this.vb(+i.Vz,0);break;case k.Rn:this.vb(-i.Vz,0);break;case k.je:this.vb(0,0)}};i.prototype.Fa=function(a,b,c,d,e,f){this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.va.ic(this.Eb,this.ra,e,f)};i.prototype.kd=function(){return this.V&&(this.O||this.$a.kd()||this.dp!=m&&this.ca!=this.dp||this.ep!=m&&this.da!=this.ep||this.Um!=m&&this.Eb!=this.Um)?p:z};i.prototype.cb=function(a){this.DD();if(this.O){this.O.cb(a);this.ca=this.O.wb("x");this.da=this.O.wb("y");
this.Eb=this.Um-this.O.wb("angleDif")}else{if(this.dp!=m)this.ca=this.dp;if(this.ep!=m)this.da=this.ep;if(this.Um!=m)this.Eb=this.Um}this.$a.cb(a);this.H.Fa(this.ca,this.da,this.Eb,this.ra+this.$a.bH);this.ca=this.H.getX();this.da=this.H.getY();this.Eb=this.H.Py();this.ra=this.H.$l()};i.prototype.md=function(a){if(this.V=a){this.va.Fv(this.g.getParent());this.bL()}else this.va.mi()};i.prototype.hr=function(a){this.vb(0,a.data.zoomDelta)};i.prototype.vb=function(a,b){this.$a.Rda(0,0,0,a,0,0,0,b);this.pf()};
i.prototype.pf=function(){this.trigger(new b(i.cf))};i.cf="position change request";i.UO=7;i.VO=0.2;i.Vz=0.5;i.OO=30;return i});
define("kB","fd,bY,eL,hz,je,ib,km,jI,lc".split(","),function(a,b,c,e,d,f,g,k,i){var n=a.extend(c,function(a){c.call(this);this.g=a;this.g.bind(i.yb,this.nb,this);this.Yi=e.As;this.Bb=r;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.ka=r;this.$J=this.ZJ=this.gn=this.dn=z;this.kj=p;this.V=z;this.H=new f;this.H.gm(this.Yi);this.Ra=new g(this.g,this.H);this.Ra.bind(g.cf,this.rl,this,p);this.Sf=new k(this.g,this.H);this.Sf.bind(k.cf,this.rl,this,p);this.LJ()});n.prototype.clear=function(){this.Ra.unbind(g.cf,
this.rl,this);this.Ra.clear();this.Ra=r;this.Sf.unbind(k.cf,this.rl,this);this.Sf.clear();this.ka=this.H=this.Sf=r;this.g.unbind(i.yb,this.nb,this);this.g=r};n.prototype.stop=function(){this.xc=this.ka=r;this.V=z;this.Ra.md(z);this.Sf.md(z);this.Xo(0,0,0,0)};n.prototype.start=function(a){var b=a.ka,c=b.get("width",100),e=b.get("height",100),f=b.get("scaleMode",d.Me),i=b.get("minimumZoomFactor",1),g=b.get("maximumZoomFactor",1),k=b.get("initialZoomFactor",1);this.ka=b;this.V=p;this.xc=a.getItem();
this.Xo(0,0,0,0);this.Sf.Oxa(c,e);this.H.ZE(c,e,f,i,g);this.H.Fa(0.5,0.5,0,k);this.g.eF(this.xc,this.H.getX(),this.H.getY(),this.H.Py(),this.H.$l());this.LJ()};n.prototype.Sg=function(a){this.Ra.Sg(a);this.Sf.Sg(a)};n.prototype.gm=function(a){if(this.Yi!=a){this.Yi=a;this.H.gm(a);this.LJ()}};n.prototype.Lp=function(a){if(this.Bb!=a){this.Bb=a;this.Sf.Lp(a);this.LJ()}};n.prototype.dF=function(a){this.Ra&&this.Ra.dF(a)};n.prototype.zj=function(a,b,c,d){this.Sf.zj(a,b,c,d)};n.prototype.Ep=function(a){if(this.V)if(this.Sf.kd()){this.Sf.cb(a);
this.ei(this.Sf.ca,this.Sf.da,this.Sf.Eb,this.Sf.ra);this.fa()}else if(this.Ra.kd()){this.Ra.cb(a);this.ei(this.Ra.ca,this.Ra.da,this.Ra.Eb,this.Ra.ra);this.fa()}else this.Xo(0,0,0,0)};n.prototype.Zb=function(){if(this.xc){var a=this.g.yE(this.xc),b=this.g.zE(this.xc),c=this.g.TL(this.xc),d=this.g.rba(this.xc),e=this.g.xE(this.xc),f=this.g.wE(this.xc),i=a-this.ca,g=b-this.da,k=c-this.Eb,n=d-this.ra;this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.Xo(i,g,k,n);this.Sf.Fa(a,b,c,d,e,f);this.Ra.Fa(a,b,c,d,
e,f)}};n.prototype.LJ=function(){if(this.Yi==e.AO&&this.Bb!=r&&this.Bb.get("map")==this.ka){this.Ra.md(z);this.Sf.md(p)}else{this.Ra.md(p);this.Sf.md(z)}};n.prototype.rl=function(){this.fa()};n.prototype.nb=function(){this.H.setSize(this.g.Ba(),this.g.gb());this.fa()};n.prototype.fa=function(){this.trigger(new b(n.Ja))};n.prototype.ei=function(a,b,c,d){this.g.eF(this.xc,a,b,c,d)};n.prototype.Xo=function(a,c,d,e){a=z;if(this.gn!=e<0){this.gn=!this.gn;a=p}if(this.dn!=e>0){this.dn=!this.dn;a=p}if(this.ZJ!=
this.$s>0){this.ZJ=!this.ZJ;a=p}if(this.$J!=this.$s<0){this.$J=!this.$J;a=p}if(this.kj!=(e==0)){this.kj=!this.kj;a=p}a&&this.trigger(new b(n.Ug,{rotatingClockwise:this.ZJ,rotatingCounterClockwise:this.$J,zoomingIn:this.dn,zoomingOut:this.gn,stopped:this.kj}))};n.Ja="request frame";n.Ug="movement change";return n});
define("iR","require,fd,bY,eL,je,ib".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("je"),f=a("ib"),g=b.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.H=new f;this.Se=[];this.Y=g.Lj;this.Sj=this.$g=this.Sj=this.Ih=r;this.qh=this.F.get("transitionDuration");this.gi=m});g.prototype.gm=function(a){this.H.gm(a)};g.prototype.oE=function(a){a.FE()&&this.TP();this.Se.push(a);this.WI()};g.prototype.hide=function(){this.TP();this.Se.push(r);this.WI()};g.prototype.clear=function(){this.Y=
g.Lj;this.TP();this.Joa();this.EU();this.g=r};g.prototype.Zb=function(a){if(this.Y!=g.Lj&&(this.Y==g.dq||this.Y==g.Zz)){this.gi=this.gi+a;a=Math.min(1,this.gi/this.qh);this.Y==g.dq?this.g.em(this.Sj,a):this.g.em(this.eH,1-a);this.gi<this.qh?this.fa():this.Y==g.dq?this.Eja():this.Gja()}};g.prototype.WI=function(){if(this.Y==g.Lj){for(;this.Se.length>0&&this.Hga(this.Se[0],this.$g);)this.Se.shift();this.Se.length>0&&this.jq()}};g.prototype.Hga=function(a,b){return a==b||!!a&&!!b&&a.isEqual(b)};g.prototype.jq=
function(){this.$g&&(!this.Se[0]||this.Se[0].FE())&&this.trigger(new c(g.Ds,{map:this.$g.ka}));if(this.F.get("transitionMode","blending")=="fade_out_fade_in"&&this.$g&&(!this.Se[0]||this.Se[0].FE()))this.jA();else{this.Sj=(this.Ih=this.Se.shift())&&this.Ih.getItem();this.Ih?this.xP():this.$g&&this.jA()}};g.prototype.xP=function(){this.lga();this.Ih.FE()&&this.upa();this.gi=0;this.Y=g.dq;this.fa()};g.prototype.Eja=function(){this.EU();this.$g=this.Ih;this.eH=this.Sj;this.Sj=this.Ih=r;this.Vw()};g.prototype.jA=
function(){this.gi=0;this.Y=g.Zz;this.fa()};g.prototype.Gja=function(){this.EU();this.$g=r;this.Vw()};g.prototype.Vw=function(){this.Y=g.Lj;this.$g&&this.$g.FE()&&this.trigger(new c(g.Es,{map:this.$g.ka}));this.Se.length==0?this.$g?this.trigger(new c(g.LN,{level:this.$g})):this.trigger(new c(g.yN)):this.jq()};g.prototype.upa=function(){var a=this.Ih.ka;this.Ih.Mg();this.H.ZE(a.get("width",100),a.get("height",100),a.get("scaleMode",d.Me),a.get("minimumZoomFactor",1),a.get("maximumZoomFactor",1));this.H.Fa(0.5,
0.5,0,a.get("initialZoomFactor",1));this.g.eF(this.Sj,this.H.getX(),this.H.getY(),this.H.Py(),this.H.$l())};g.prototype.fa=function(){this.trigger(new c(g.Ja))};g.prototype.TP=function(){for(;this.Se.length>0;){var a=this.Se.shift();a&&this.g.ti(a.getItem())}};g.prototype.lga=function(){if(this.Ih){this.g.lX(this.Sj);this.g.rX(this.Sj);this.g.em(this.Sj,0);this.trigger(new c(g.KN,{level:this.Ih}))}};g.prototype.EU=function(){if(this.$g){this.g.removeItem(this.eH);this.trigger(new c(g.FF,{level:this.$g}));
this.g.ti(this.eH);this.eH=this.$g=r}};g.prototype.Joa=function(){if(this.Ih){this.g.removeItem(this.Sj);this.trigger(new c(g.FF,{level:this.Ih}));this.g.ti(this.Sj);this.Sj=this.Ih=r}};g.Lj="stopped";g.dq="blending";g.Zz="disolving";g.Ja="request frame";g.KN="level added";g.FF="level removed";g.LN="level fully displayed";g.yN="all pending maps hidden";g.Es="map show";g.Ds="map hide";return g});
define("iq",[],function(){function a(a,c){this.ka=a;this.ia=a.get("image");this.Ud=c;this.DS=m}a.prototype.getItem=function(){switch(this.Ud){case a.WF:return this.ka.Aba();default:return this.ka.Ng()}};a.prototype.Mg=function(){switch(this.Ud){case a.WF:return this.ka.lv();default:return this.ka.Yl()}};a.prototype.FE=function(){return this.DS===m?0==this.getIndex():this.DS};a.prototype.zxa=P("DS");a.prototype.HE=function(){return this.Ud==a.C_};a.prototype.isEqual=function(a){return a&&this.ka==
a.map&&this.Ud==a.type};a.prototype.getIndex=function(){return this.Ud==a.WF||this.ka.Zy()?0:1};a.prototype.iba=function(){return this.ka.Zy()?2:1};a.WF="preload";a.C_="load";return a});
define("hx","require,fd,ia,lc,bY,eL,iq,r".split(","),function(a){var b=a("fd"),c=a("ia"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("iq"),k=a("r"),i=b.extend(f,function(a){f.call(this);this.g=a;this.Se=[];this.IA=this.Vt=this.ye=r;this.Pt=z;this.kI=r;this.UI=b.An(this.UI,this)});i.prototype.clear=function(){this.stop();this.g=r};i.prototype.Gca=function(a,b){if(this.kI!=a||b){this.stop();this.ka=a;this.ka.Uwa();c.bta(this.ka,"image.levels.url",this.UI);var d=[];a.Zy()&&k.Wa()&&d.push(new g(a,g.WF));d.push(new g(a,
g.C_));d=d.filter(function(a){return a.getItem().sj()});if(d.length){this.Se=this.Se.concat(d);this.WI()}}};i.prototype.UI=function(){this.reload()};i.prototype.reload=function(){this.Gca(this.ka,p)};i.prototype.stop=function(){c.ac(this.ka,"image.levels.url",this.UI);this.kI=this.ka=r;this.Se=[];this.U9();if(this.Pt){this.Pt=z;this.gW();this.g.ti(this.ye.getItem());this.ye=r;this.trigger(new d(i.GF))}};i.prototype.WI=function(){this.Pt||this.$S()};i.prototype.$S=function(){if(this.Se.length>0){this.ye=
this.Se.shift();if(!this.Pt){this.Pt=p;this.trigger(new d(i.EF,{level:this.ye,percent:0}))}this.fha();this.g.zn(this.ye.getItem());this.g.IZ(this.ye.getItem())&&this.yT()}else if(this.Pt){this.Pt=z;this.trigger(new d(i.GF))}};i.prototype.yT=function(){this.gW();this.Iqa();this.ye=r;this.$S()};i.prototype.Iqa=function(){this.U9();this.Vt=this.ye;var a=this;this.IA=setTimeout(function(){a.IA=r;a.Yma()},500)};i.prototype.Yma=function(){var a=this.Vt.ka;this.Vt.zxa(a!=this.kI);this.kI=a;this.trigger(new d(i.MN,
{level:this.Vt}));this.Vt=r};i.prototype.U9=function(){if(this.IA!=r){clearTimeout(this.IA);this.IA=r;this.g.ti(this.Vt.getItem());this.Vt=r}};i.prototype.o6=function(){this.gW();this.ye=r;this.$S()};i.prototype.p6=function(a){this.trigger(new d(i.EF,{level:this.ye,percent:a.zh}))};i.prototype.fha=function(){var a=this.ye.getItem();a.bind(e.S,this.yT,this);a.bind(e.ie,this.o6,this);a.bind(e.sc,this.p6,this)};i.prototype.gW=function(){var a=this.ye.getItem();a.unbind(e.S,this.yT,this);a.unbind(e.ie,
this.o6,this);a.unbind(e.sc,this.p6,this)};i.EF="level loading progress";i.MN="level loaded";i.GF="load stopped";return i});define("cg",["require"],function(){function a(a,c){this.x=a;this.y=c}a.prototype.rotate=function(a){var c=Math.cos(a),a=Math.sin(a),e=this.x*a+this.y*c;this.x=this.x*c-this.y*a;this.y=e;return this};a.prototype.translate=function(a,c){this.x+=a;this.y+=c;return this};a.prototype.scale=function(a,c){this.x*=a;this.y*=c;return this};return a});
define("jA",["require","je","jP"],function(a){function b(a,b,g){this.pe=a;this.J9=b;this.I9=g;this.Dd=c.Ln;this.Nh=e.Kc;this.ii=e.rc}var c=a("je"),e=a("jP");b.prototype.rs=P("Dd");b.prototype.sz=P("Nh");b.prototype.xz=P("ii");b.prototype.My=function(a,b,g){var k=this.J9,i=this.I9,n,j;switch(this.Dd){case c.NONE:j=n=1;break;case c.Me:n=j=Math.min(b/k,g/i);break;case c.km:n=j=Math.max(b/k,g/i);break;case c.Qk:n=j=b/k;break;case c.Wg:n=j=g/i;break;default:n=b/k,j=g/i}var l=b/n;n=Math.min(this.J9*n,b);
l=Math.min(l,k);switch(this.Nh){case e.oa:sX=tX=0;break;case e.Ka:tX=b-n;sX=k-l;break;default:tX=0.5*(b-n),sX=0.5*(k-l)}b=g/j;j=Math.min(this.I9*j,g);b=Math.min(b,i);switch(this.ii){case e.jb:i=g=0;break;case e.ib:g-=j;i-=b;break;default:g=0.5*(g-j),i=0.5*(i-b)}a.drawImage(this.pe,Math.round(sX),Math.round(i),Math.round(l+sX-Math.round(sX)),Math.round(b+i-Math.round(i)),Math.round(tX),Math.round(g),Math.round(n+tX-Math.round(tX)),Math.round(j+g-Math.round(g)))};return b});
define("jl","require,lc,gb,cg,hW,jA".split(","),function(a){function b(a,b,d,g){this.g=a;this.ka=b;this.Rc=this.ka.get("width");this.Qc=this.ka.get("height");this.xc=this.ka.Ng();this.R4=d;this.Wj=g;this.Lt=r;if(this.Wj){this.by=this.R4.by;this.W=this.Wj.get("width");this.ea=this.Wj.get("height");this.ca=this.Wj.get("x",0);this.da=this.Wj.get("y",0);this.au=this.Wj.get("offsetX",0);this.bu=this.Wj.get("offsetY",0);if(this.lb=this.Wj.Yl()){this.kf=new f(e.Jj);this.kf.load(this.lb.get("url"));this.kf.bind(c.S,
this.R6,this)}}else this.kf=r}var c=a("lc"),e=a("gb"),d=a("cg"),f=a("hW"),g=a("jA");b.prototype.clear=function(){this.Wj=this.R4=this.xc=this.ka=this.g=r;if(this.kf){this.kf.unbind(c.S,this.R6,this);this.kf.cancel();this.kf=r}this.Lt=r};b.prototype.tba=function(a,b){this.S4=m;if(this.Lt&&a!=m&&b!=m){var c=this.g.Ba()*0.5,e=this.g.gb()*0.5,f=this.g.TL(this.xc)*Math.PI/180,g=this.g.xE(this.xc),o=this.g.wE(this.xc),t=this.g.yE(this.xc),s=this.g.zE(this.xc),u=new d(a,b);u.translate(-c,-e);u.rotate(-f);
u.scale(1/g,1/o);u.translate(t,s);u.scale(this.Rc,this.Qc);u.translate(-this.ca,-this.da);if(!this.by){u.rotate(f);u.scale(g/this.Rc,o/this.Qc)}u.translate(this.au,this.bu);c=Math.round(u.x);u=Math.round(u.y);if(c>=0&&c<this.Lt.width&&u>=0&&u<this.Lt.height){u=(this.Lt.width*u+c)*4;c=this.Lt.data;this.S4=c[u+3]>0?"#"+this.GP(c[u+0])+this.GP(c[u+1])+this.GP(c[u+2]):"transparent"}}return this.S4};b.prototype.R6=function(){var a=new g(this.kf.qe(),this.lb.get("width"),this.lb.get("height"));a.rs(this.Wj.get("scaleMode"));
a.sz(this.Wj.get("horizontalAlign"));a.xz(this.Wj.get("verticalAlign"));var b=document.createElement("canvas");b.width=Math.round(this.W);b.height=Math.round(this.ea);var c=b.getContext("2d");a.My(c,b.width,b.height);this.Lt=c.getImageData(0,0,b.width,b.height);b.width=b.height=0};b.prototype.GP=function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a};return b});
define("in","require,dm,fd,lc,bY,eL,kr,jl,R,kO,bq".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("kr"),k=a("jl"),i=a("R"),n=a("kO"),j=a("bq"),l=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.ka=b;this.ab=c;this.X=this.ab.getItem();this.Gl=this.ab.Bba();this.Hl=this.ab.Dba();this.vo=this.Xj=m;this.F=this.g.getParent();this.F.bind(e.Lc,this.$i,this);this.F.bind(e.Ib,this.XB,this);this.F.bind(e.xb,this.gr,this);this.F.bind(e.cc,this.ZB,this);c.bind(e.D("selected"),
this.m7,this);c.bind(e.D("enabled"),this.$ma,this);this.sI=new k(this.g,this.ka,this.ab,this.ab.get("map",r));this.uI=new k(this.g,this.ka,this.ab,this.ab.get("rollOverMap",this.ab.get("map",r)));this.vI=new k(this.g,this.ka,this.ab,this.ab.get("selectedMap",this.ab.get("rollOverMap",this.ab.get("map",r))));this.PH=new k(this.g,this.ka,this.ab,this.ab.get("image",r));this.QH=new k(this.g,this.ka,this.ab,this.ab.get("rollOverImage",this.ab.get("image",r)));this.RH=new k(this.g,this.ka,this.ab,this.ab.get("selectedImage",
this.ab.get("rollOverImage",this.ab.get("image",r))));this.Fc=this.Ec=m;this.sy=r;this.Un=[];this.eA=[];this.ef={};this.G5=[];this.VR=z;this.Ym=this.ab.get("useHandCursor");this.O=r;this.ny=m;this.gK=this.XJ=this.eI=0;a=this.ab.get("areas",[]);for(b=0;b<a.length;b++){var c=a[b],d=c.get("mapColor");if(d){d=d.toLowerCase();if(this.ef[d]===m){this.ef[d]=[];this.G5.push(d)}this.ef[d].push(c)}}if(this.X){this.g.sL(this.ka.Ng(),this.X);this.g.em(this.X,this.eI)}if(this.Gl){this.g.sL(this.ka.Ng(),this.Gl);
this.g.em(this.Gl,this.XJ)}if(this.Hl){this.g.sL(this.ka.Ng(),this.Hl);this.g.em(this.Hl,this.gK)}this.YC("none");this.sW();this.i9(z);this.j9(this.ab.get("selected"))});l.prototype.clear=function(){this.F.unbind(e.Lc,this.$i,this);this.F.unbind(e.Ib,this.XB,this);this.F.unbind(e.xb,this.gr,this);this.F.unbind(e.cc,this.ZB,this);this.F=r;this.sI&&this.sI.clear();this.sI=r;this.uI&&this.uI.clear();this.uI=r;this.vI&&this.vI.clear();this.vI=r;this.PH&&this.PH.clear();this.PH=r;this.QH&&this.QH.clear();
this.QH=r;this.RH&&this.RH.clear();this.RH=r;this.Un=[];this.Xj=z;this.sW();this.eA=[];this.ef={};this.Y9();this.LD();this.ka=this.g=r;this.ab.unbind(e.D("selected"),this.m7,this);this.Hl=this.Gl=this.X=this.ab=r};l.prototype.match=function(a){return this.ab==a};l.prototype.Zb=function(a){this.mx(z);if(this.O){this.O.cb(a);this.eI=this.O.wb("itemAlpha");this.XJ=this.O.wb("rollOverItemAlpha");this.gK=this.O.wb("selectedItemAlpha");this.X&&this.g.em(this.X,this.eI);this.Gl&&this.g.em(this.Gl,this.XJ);
this.Hl&&this.g.em(this.Hl,this.gK);this.O.Je()?this.O=r:this.fa()}};l.prototype.gr=function(a){this.Ec=a.x-this.F.ni();this.Fc=a.y-this.F.qn();this.mx(p);this.eA=this.Un.slice()};l.prototype.$i=function(a){this.Ec=a.x-this.F.ni();this.Fc=a.y-this.F.qn();this.mx(p)};l.prototype.ZB=function(a){this.Ec=a.x-this.F.ni();this.Fc=a.y-this.F.qn();this.mx(p);a=b.intersection(this.eA,this.Un);this.eA=[];this.bW(a,"click")};l.prototype.XB=function(){this.Fc=this.Ec=m;this.mx(p);this.eA=this.Un.slice()};l.prototype.m7=
function(){this.j9(this.ab.get("selected"))};l.prototype.$ma=function(){this.mx(p);this.ge();this.fa()};l.prototype.mx=function(a){this.g5=p;a?this.ry():this.lma()||this.Wqa()};l.prototype.Wqa=function(){this.Y9();var a=this;this.sy=setTimeout(function(){a.sy=r;a.ry()},200)};l.prototype.lma=function(){return this.sy?p:z};l.prototype.Y9=function(){if(this.sy){clearTimeout(this.sy);this.sy=r}};l.prototype.ry=function(){if(this.g5){this.g5=z;var a=this.Un,c=this.hka();this.Un=c;if(!this.F.Yj){this.bW(b.difference(c,
a),"rollOver");this.i9(c.length>0);this.bW(b.difference(a,c),"rollOut");this.LD()}}};l.prototype.LD=function(){for(var a="",b=0;b<this.Un.length&&!a;b++){var c=this.Un[b];c.get("toolTip")&&(a=c.get("toolTip"))}if(this.xa!=a){this.xa&&this.g.vwa(this.xa);(this.xa=a)&&this.g.Cwa(this.xa)}};l.prototype.sW=function(){var a=this.Xj&&(this.Ym!==z||b(this.Un).any(function(a){return a.get("useHandCursor")===p}));if(this.VR!=a)(this.VR=a)?this.g.DM(i.he):this.g.iz(i.he)};l.prototype.hka=function(){if(this.ab.get("enabled")===
z)return[];var a=[],b=this.vo?this.vI:this.Xj?this.uI:this.sI;if(b)if(b=b.tba(this.Ec,this.Fc)){this.ef.any&&(a=a.concat(this.ef.any));b=="transparent"&&this.ef.transparent&&(a=a.concat(this.ef.transparent));if(b!="transparent"){a=this.ef[b]?a.concat(this.ef[b]):a.concat(this.ef[g.Xwa(b,this.G5,5)]||[]);this.ef.image&&(a=a.concat(this.ef.image))}}if(b=this.vo?this.RH:this.Xj?this.QH:this.PH)if(b=b.tba(this.Ec,this.Fc)){this.ef.any&&(a=a.concat(this.ef.any));b=="transparent"&&this.ef.transparent&&
(a=a.concat(this.ef.transparent));b!="transparent"&&this.ef.image&&(a=a.concat(this.ef.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.bW=function(a,b){if(a)for(var c=0;c<a.length;c++)a[c].trigger(new d(b))};l.prototype.i9=function(a){if(this.Xj!=a){this.Xj=a;this.trigger(new d(l.GN));this.ge();this.sW();this.fa()}};l.prototype.j9=function(a){if(this.vo!=a){this.vo=a;this.ge();this.fa()}};l.prototype.ge=function(){(this.Xj||this.ab.get("rollOverDisplay")!=
p)&&this.ab.get("enabled")!==z?this.vo?this.YC("selected"):this.Xj?this.YC("roll over"):this.YC("visible"):this.YC("none")};l.prototype.YC=function(a){if(this.ny!=a){this.ny=a;var c,d;if(b(["selected"]).contains(this.ny)&&this.Hl){d=1;a=c=0}else if(b(["selected","roll over"]).contains(this.ny)&&this.Gl){c=1;a=d=0}else if(b(["selected","roll over","visible"]).contains(this.ny)){a=1;d=c=0}else a=d=c=0;var e=this.eI,f=this.XJ,g=this.gK,i=this.ny=="none"?"quad_out":"quad_in",k=Math.max(200*Math.abs(a-
e),200*Math.abs(c-f),200*Math.abs(d-g));this.O=new n(i,[new j("itemAlpha",e,a),new j("rollOverItemAlpha",f,c),new j("selectedItemAlpha",g,d)],k)}};l.prototype.fa=function(){this.trigger(new d(l.Ja))};l.Ja="request frame";l.GN="is over update";return l});define("jO",["fd","hv"],function(a,b){var c=a.extend(b,function(a,c,f,g,k,i,n){b.call(this,b.C0,a,c);this.Sla=f;this.Tla=g;this.Wna=k;this.Xna=i;this.oc=n;this.OD=[]});c.prototype.nv=R("oc");return c});
define("en","fd,lc,bY,eL,cg,jO".split(","),function(a,b,c,e,d,f){var g=a.extend(e,function(a,c,d){e.call(this);this.g=a;this.F=this.g.getParent();this.F.bind(b.xb,this.gr,this,p);this.F.bind(b.Lc,this.$i,this,p);this.F.bind(b.zf,this.XB,this,p);this.ka=c;this.Rc=this.ka.get("width");this.Qc=this.ka.get("height");this.zoa=Math.sqrt(this.Rc*this.Rc+this.Qc*this.Qc)*this.ka.get("fieldOfViewOverlayRadiusScale",1);this.xc=this.ka.Ng();this.Bb=d;this.Jx=this.Bb.get("x",0);this.Kx=this.Bb.get("y",0);this.lJ=
this.Bb.get("angle",0);this.X=this.Qia();this.Am=z;this.$=0;this.ba=Math.PI*0.5;this.lc=z;this.Fc=this.Ec=m;this.g.sL(this.ka.Ng(),this.X)});g.prototype.Sda=function(a,b){this.$=a+this.lJ-90;this.ba=b;this.fa()};g.prototype.clear=function(){this.F.unbind(b.xb,this.gr,this);this.F.unbind(b.Lc,this.$i,this);this.F.unbind(b.zf,this.XB,this);this.F=r;this.g.Jwa(this.ka.Ng(),this.X);this.X=this.Bb=this.xc=this.ka=this.g=r};g.prototype.Zb=function(){this.g.Dxa(this.X,this.$,this.ba)};g.prototype.Qia=function(){return new f(this.Jx,
this.Kx,this.ka.get("fieldOfViewOverlayInsideColor","#FFFFFF"),this.ka.get("fieldOfViewOverlayInsideOpacity",0),this.ka.get("fieldOfViewOverlayOutsideColor","#000000"),this.ka.get("fieldOfViewOverlayOutsideOpacity",0),this.ka.get("fieldOfViewOverlayRadiusScale",1))};g.prototype.fa=function(){this.trigger(new c(g.Ja))};g.prototype.uW=function(){var a=z;if(this.Ec!=m&&this.Fc!=m){var b=this.g.Ba()*0.5,e=this.g.gb()*0.5,f=this.g.TL(this.xc)*Math.PI/180,l=this.g.xE(this.xc),q=this.g.wE(this.xc),o=this.g.yE(this.xc),
t=this.g.zE(this.xc),a=new d(this.Ec,this.Fc);a.translate(-b,-e);a.rotate(-f);a.scale(1/l,1/q);a.translate(o,t);a.scale(this.Rc,this.Qc);a.translate(-this.Jx,-this.Kx);a.rotate(-this.$*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.zoa&&Math.abs(b)<this.ba*0.5}if(this.Am!=a){this.Am=a;this.trigger(new c(g.jO,{inFOV:this.Am}))}};g.prototype.tva=R("Am");g.prototype.gr=function(a){this.Ec=a.x;this.Fc=a.y;this.lc=p;this.uW()};g.prototype.$i=function(a){if(!this.lc){this.Ec=
a.x;this.Fc=a.y;this.uW()}};g.prototype.XB=function(){this.Fc=this.Ec=m;this.lc=z;this.uW()};g.Ja="request frame";g.jO="mouse in fov change";return g});
define("kT","dm,fd,bY,eL,gp,in,en,R".split(","),function(a,b,c,e,d,f,g){var k=b.extend(e,function(a){e.call(this);this.g=a;this.EB=[];this.so=[];this.Qi=[];this.bj=this.Bb=r});k.prototype.clear=function(){for(var a=0;a<this.so.length;a++)this.so[a].clear();for(a=0;a<this.Qi.length;a++)this.Qi[a].clear();this.g=this.EB=this.Bb=this.Qi=this.so=r};k.prototype.oE=function(a){a.HE()&&this.vga(a.ka)};k.prototype.iY=function(a){a.HE()&&this.Toa(a.ka)};k.prototype.Lp=function(a){if(this.Bb!=a){this.Bb&&this.v8(this.Bb.get("map"));
this.Bb=a;this.bj=r;if(this.Bb){a=this.Bb.get("map");this.ES(a)&&this.y1(a)}}};k.prototype.zj=function(a,b,c,d){this.bj={yaw:b,pitch:c,hfov:d};for(c=0;c<this.Qi.length;c++){var e=this.Qi[c];if(e.Bb==a){e.Sda(b,d);break}}};k.prototype.vga=function(a){if(!this.ES(a)){this.EB.push(a);this.oga(a);this.y1(a)}};k.prototype.Toa=function(b){if(this.ES(b)){this.EB=a(this.EB).without(b);this.Noa(b);this.v8(b)}};k.prototype.ES=function(b){return a(this.EB).indexOf(b)>=0};k.prototype.Zb=function(a){for(var b=
0;b<this.so.length;b++)this.so[b].Zb(a);for(b=0;b<this.Qi.length;b++)this.Qi[b].Zb(a)};k.prototype.oga=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.Ja,this.fa,this,p);e.bind(f.GN,this.o5,this,p);this.so.push(e)}}};k.prototype.y1=function(a){if(this.Bb&&this.Bb.get("map")==a&&this.Bb.get("visible")!==z){a=new g(this.g,a,this.Bb);a.bind(g.Ja,this.fa,this,p);a.bind(g.jO,this.RI,this,p);this.Qi.push(a);this.bj&&a.Sda(this.bj.yaw,
this.bj.hfov)}this.RI()};k.prototype.Noa=function(a){for(var a=a.get("overlays",[]),b=0;b<a.length;b++)for(var c=a[b],d=0;d<this.so.length;d++){var e=this.so[d];if(e.match(c)){e.unbind(f.Ja,this.fa,this);e.unbind(f.GN,this.o5,this);e.clear();this.so.splice(d,1);break}}};k.prototype.v8=function(a){for(var b=0;b<this.Qi.length;b++){var c=this.Qi[b];if(c.ka==a){c.unbind(g.Ja,this.fa,this);c.unbind(g.jO,this.RI,this);c.clear();this.Qi.splice(b,1);break}}this.RI()};k.prototype.o5=C();k.prototype.fa=function(){this.trigger(new c(k.Ja))};
k.prototype.RI=function(){for(var a=z,b=0;b<this.Qi.length;b++)this.Qi[b].tva()&&(a=p);this.trigger(new c(k.FN,{inFOV:a}))};k.Ja="request frame";k.FN="in fov change";return k});
define("B","fd,lc,bY,eL,hz,cg".split(","),function(a,b,c,e,d,f){var g=a.extend(e,function(a){e.call(this);this.g=a;this.F=this.g.getParent();this.F.bind(b.Lc,this.$i,this,p);this.F.bind(b.xb,this.gr,this,p);this.F.bind(b.cc,this.ZB,this,p);this.ka=r;this.xc=this.Qc=this.Rc=m;this.Bb=r;this.lJ=this.Kx=this.Jx=m;this.Am=z;this.Fc=this.Ec=this.Yi=m;this.lc=z;this.$=0});g.prototype.clear=function(){this.F.unbind(b.Lc,this.$i,this);this.F.unbind(b.xb,this.gr,this);this.F.unbind(b.cc,this.ZB,this);this.g=
this.Bb=this.xc=this.ka=this.F=r};g.prototype.dF=function(a){this.Am=a;this.oW()};g.prototype.oE=function(a){a.HE()&&this.m9(a.ka)};g.prototype.iY=function(a){a.HE()&&this.ka==a.ka&&this.m9(r)};g.prototype.m9=function(a){if(this.ka!=a)if(this.ka=a){this.Rc=this.ka.get("width");this.Qc=this.ka.get("height");this.xc=this.ka.Ng()}else{this.Qc=this.Rc=m;this.xc=r}};g.prototype.Lp=function(a){if(this.Bb!=a)if(this.Bb=a){this.Jx=this.Bb.get("x",0);this.Kx=this.Bb.get("y",0);this.lJ=this.Bb.get("angle",
0)}else this.lJ=this.Kx=this.Jx=m};g.prototype.zj=function(a,b){if(this.Bb==a)this.$=b};g.prototype.gm=P("Yi");g.prototype.gr=function(a){this.Ec=a.x;this.Fc=a.y;this.lc=p;this.oW()};g.prototype.$i=function(a){this.Ec=a.x;this.Fc=a.y;if(this.YQ){a=this.y4();this.trigger(new c(g.Vg,{yawDelta:a-this.Eb}));this.Eb=a}};g.prototype.ZB=function(a){this.Ec=a.x;this.Fc=a.y;this.lc=z;this.oW()};g.prototype.oW=function(){var a=this.lc&&this.Bb&&this.ka&&(this.Yi==d.AO||this.Am);if(this.YQ!=a)if(this.YQ=a)this.Eb=
this.y4()};g.prototype.y4=function(){var a=this.g.Ba()*0.5,b=this.g.gb()*0.5,c=new f(this.Ec,this.Fc);c.translate(-a,-b);if(this.Yi==d.AO)return-Math.atan2(c.y,c.x)*180/Math.PI;var a=this.g.TL(this.xc)*Math.PI/180,b=this.g.xE(this.xc),e=this.g.wE(this.xc),g=this.g.yE(this.xc),q=this.g.zE(this.xc);c.rotate(-a);c.scale(1/b,1/e);c.translate(g,q);c.scale(this.Rc,this.Qc);c.translate(-this.Jx,-this.Kx);return Math.atan2(c.y,c.x)*180/Math.PI};g.Vg="request yaw change";return g});
define("jH",["fd","bY","eL","V"],function(a,b,c,e){var d=a.extend(c,function(a){c.call(this);this.V=p;this.Ft=z;this.g=a});d.prototype.clear=function(){this.V=z;this.g=r};d.prototype.Ma=function(){this.Ft||(this.Ft=p,e.Ma(this.Dg,this))};d.prototype.Dg=function(a){this.V&&(this.Ft=z,this.trigger(new b(d.Nk,{frameTime:a})),this.trigger(new b(d.Ok,{frameTime:a})),this.g.render())};d.Nk="frameStart";d.Ok="positionSet";return d});
define("jd","require,fd,lc,bY,eL,kB,iR,hx,kT,B,jH".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("kB"),g=a("iR"),k=a("hx"),i=a("kT"),n=a("B"),j=a("jH"),l=b.extend(d,function(a,b){d.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.qJ=r;this.de=new j(this.g);this.be=new k(this.g);this.Ca=new g(this.F,this.g);this.la=new f(this.g);this.wl=new i(this.g);this.Im=new n(this.g);this.F.bind(c.nd,this.dJ,this,p);this.de.bind(j.Nk,this.jr,this,p);this.de.bind(j.Ok,this.kr,
this,p);this.be.bind(k.GF,this.UB,this);this.be.bind(k.MN,this.J6,this);this.be.bind(k.EF,this.K6,this);this.Ca.bind(g.Ja,this.Wc,this,p);this.Ca.bind(g.KN,this.H6,this,p);this.Ca.bind(g.FF,this.L6,this,p);this.Ca.bind(g.LN,this.I6,this,p);this.Ca.bind(g.Ds,this.Jo,this,p);this.Ca.bind(g.Es,this.fr,this,p);this.Ca.bind(g.yN,this.c6,this,p);this.la.bind(f.Ja,this.Wc,this,p);this.la.bind(f.Ug,this.pl,this);this.wl.bind(i.Ja,this.Wc,this,p);this.wl.bind(i.FN,this.A6,this,p);this.Im.bind(n.Vg,this.hC,
this,p);this.C3=z});l.prototype.gm=function(a){this.la.gm(a);this.Ca.gm(a);this.Im.gm(a)};l.prototype.clear=function(){this.C3=p;this.be.clear();this.de.clear();this.la.clear();this.Ca.clear();this.wl.clear();this.Im.clear();this.F.unbind(c.nd,this.dJ,this);this.be.unbind(k.GF,this.UB,this);this.be.unbind(k.MN,this.J6,this);this.be.unbind(k.EF,this.K6,this);this.de.unbind(j.Nk,this.jr,this);this.de.unbind(j.Ok,this.kr,this);this.Ca.unbind(g.Ja,this.Wc,this);this.Ca.unbind(g.KN,this.H6,this);this.Ca.unbind(g.FF,
this.L6,this);this.Ca.unbind(g.LN,this.I6,this);this.Ca.unbind(g.Ds,this.Jo,this);this.Ca.unbind(g.Es,this.fr,this);this.Ca.unbind(g.yN,this.c6,this);this.la.unbind(f.Nea,this.Wc,this);this.la.unbind(f.Ug,this.pl,this);this.wl.unbind(i.Ja,this.Wc,this);this.wl.unbind(i.FN,this.A6,this);this.Im.unbind(n.Vg,this.hC,this);this.F=this.g=this.Im=this.wl=this.Ca=this.la=this.de=this.be=r};l.prototype.dJ=function(){if(this.qJ){this.Pda(this.qJ);this.qJ=r}};l.prototype.Pda=function(a){this.g.set("visible",
p);if(this.F.Xq)this.be.Gca(a);else{this.be.stop();this.la.stop();this.Ca.hide();this.qJ=a}};l.prototype.Gv=function(){this.be.stop();this.la.stop();this.Ca.hide()};l.prototype.Sg=function(a){this.la.Sg(a)};l.prototype.Lp=function(a){if(!this.C3){this.la.Lp(a);this.wl.Lp(a);this.Im.Lp(a)}};l.prototype.zj=function(a,b,c,d){this.la.zj(a,b,c,d);this.wl.zj(a,b,c,d);this.Im.zj(a,b,c,d)};l.prototype.K6=function(a){var b=a.data.level,a=(a.data.percent+100*b.getIndex())/b.iba();this.trigger(new e(l.jm,{percent:a}))};
l.prototype.J6=function(a){this.g.set("visible",p);a=a.data.level;this.la.stop();this.Ca.oE(a)};l.prototype.UB=function(){this.trigger(new e(l.Cs))};l.prototype.Wc=function(){this.de.Ma()};l.prototype.jr=function(a){this.la.Ep(a.data.frameTime)};l.prototype.kr=function(a){a=a.data.frameTime;this.Ca.Zb(a);this.la.Zb(a);this.wl.Zb(a)};l.prototype.H6=function(a){a=a.data.level;this.wl.oE(a);this.Im.oE(a)};l.prototype.L6=function(a){a=a.data.level;this.wl.iY(a);this.Im.iY(a)};l.prototype.I6=function(a){a=
a.data.level;a.HE()&&this.la.start(a)};l.prototype.c6=function(){this.g.set("visible",z)};l.prototype.A6=function(a){a=a.data.inFOV;this.la.dF(a);this.Im.dF(a)};l.prototype.fr=function(a){this.trigger(new e(l.Es,{map:a.data.map}))};l.prototype.Jo=function(a){this.trigger(new e(l.Ds,{map:a.data.map}))};l.prototype.pl=function(a){this.trigger(new e(l.Ug,a.data))};l.prototype.hC=function(a){this.trigger(new e(l.Vg,{yawDelta:a.data.yawDelta}))};l.Ug="movementChange";l.Cs="loadingEnd";l.jm="loadingProgress";
l.Es="mapShow";l.Ds="mapHide";l.Vg="requestYawChange";return l});
define("fK",["require","jquery.mod","r"],function(a){function b(a,b){this.X=a;this.P=b;this.xB=0;this.Om=this.Nm=0.5;this.fe=0;this.ub=1;this.fp=this.Bo=this.ea=this.W=0;this.oc=1;this.xS=this.AS=p;this.I=c("<canvas/>");this.u=this.I.get(0);this.ha=this.u.getContext("2d")}var c=a("jquery.mod"),a=a("r");b.prototype.getItem=R("X");b.prototype.Oy=function(a){return this.X==a?this:r};b.prototype.uk=function(){this.P&&this.P.qX(this)};b.prototype.xd=function(a){this.bqa(a)};b.prototype.k9=function(a){this.xB!=
a&&(this.xB=a,this.P&&this.P.nM())};b.prototype.bqa=function(a){this.ub!=a&&(this.ub=a,this.mM())};b.prototype.mK=function(a){this.fe!=a&&(this.fe=a,this.mM())};b.prototype.XC=function(a,b){if(this.W!=a||this.ea!=b)this.W=a,this.ea=b,this.jM()};b.prototype.ei=function(a,b){if(this.Bo!=a||this.fp!=b)this.Bo=a,this.fp=b,this.mM()};b.prototype.mM=function(){this.P&&this.P.kM()};b.prototype.Bc=function(){this.AS=p};b.prototype.ga=function(){this.AS&&(this.AS=z,this.qf())};b.prototype.qf=C();b.prototype.jM=
function(){this.xS=p;this.mM()};b.prototype.YM=function(){if(this.xS){this.xS=z;if(this.u.width!=this.W||this.u.height!=this.ea)this.u.width=Math.round(this.W),this.u.height=Math.round(this.ea);this.ha.clearRect(0,0,this.u.width,this.u.height);this.lg()}};b.prototype.lg=C();b.prototype.Vta=function(a){if(0<this.ub&&1<=this.W&&1<=this.ea){a.save();var b=Math.round(this.Bo),c=Math.round(this.fp),g=Math.round(this.W*this.Nm),k=Math.round(this.ea*this.Om);a.scale(this.oc,this.oc);a.translate(b+g,c+k);
a.rotate(this.fe*Math.PI/180);a.globalAlpha=this.ub;a.drawImage(this.u,-g,-k);a.restore()}};b.D_=window.devicePixelRatio||1;b.Pg=b.D_;b.ffa=a.Xd()==a.Hj?16E6:256E6;return b});
define("jG",["require","dm","fd","fK"],function(a){var b=a("dm"),c=a("fd"),e=a("fK"),a=c.extend(e,function(a,b){e.call(this,a,b);this.Jb=[];this.qL=r;this.lp=p});a.prototype.zaa=function(a){(a=this.iQ(a))||h("Container renderer can't create child renderer for an item");this.Jb.push(a);this.nM();this.kM()};a.prototype.iQ=C();a.prototype.gda=function(a){if(a=this.kn(a))this.Jb=b.without(this.Jb,a),this.nM(),this.kM()};a.prototype.Oy=function(a){for(var b=e.prototype.Oy.call(this,a),c=0;c<this.Jb.length&&
!b;c++)b=this.Jb[c].Oy(a);return b};a.prototype.kn=function(a){for(var b=r,c=0;c<this.Jb.length&&!b;c++)this.Jb[c].getItem()==a&&(b=this.Jb[c]);return b};a.prototype.qX=function(a){this.Jb=b.without(this.Jb,a);this.Jb.push(a);this.nM();this.kM()};a.prototype.nM=function(){this.lp=p;this.Bc()};a.prototype.kM=function(){this.jM()};a.prototype.ga=function(){e.prototype.ga.call(this);for(var a=0;a<this.Jb.length;a++)this.Jb[a].ga()};a.prototype.qf=function(){if(this.lp){this.lp=z;for(var a=[],b=0;b<this.Jb.length;b++){var c=
this.Jb[b];a.push({l:c.xB,z:b,r:c})}a.sort(function(a,b){return a.l==b.l?a.z-b.z:a.l-b.l});this.qL=[];for(b=0;b<a.length;b++)this.qL.push(a[b].r);this.jM()}e.prototype.qf.call(this)};a.prototype.YM=function(){for(var a=0;a<this.Jb.length;a++)this.Jb[a].YM();e.prototype.YM.call(this)};a.prototype.lg=function(){for(var a=0;a<this.qL.length;a++)this.qL[a].Vta(this.ha);e.prototype.lg.call(this)};return a});
define("H",["require","fd","fK"],function(a){var b=a("fd"),c=a("fK"),a=b.extend(c,function(a,b){c.call(this,a,b)});a.prototype.NM=C();return a});
define("jg",["require","fd","H"],function(a){var b=a("fd"),c=a("H"),a=b.extend(c,function(a,b){c.call(this,a,b);this.pJ=this.P.getItem().$c();this.oJ=this.P.getItem().Nd();this.oc=2;this.Sw=0;this.ba=0.5*Math.PI;this.yS=this.zS=p;this.Qh=1;this.aI=p;this.k9(1)});a.prototype.NM=function(a,b){this.Qh!=b&&(this.Qh=b,this.aI=p,this.Bc())};a.prototype.qxa=function(a,b){this.ba!=b&&(this.ba=b,this.zS=p,this.Bc());this.Sw!=a&&(this.Sw=a,this.yS=p,this.Bc())};a.prototype.qf=function(){this.zS&&(this.zS=z,
this.jM());if(this.aI||this.yS){this.yS=this.aI=z;this.oc=Math.max(1,Math.ceil(Math.sqrt(this.pJ*this.pJ+this.oJ*this.oJ))/4096);var a=this.Qh/this.oc,b=this.X.getX()*a,f=this.X.getY()*a,g=a*this.oJ,a=Math.max(b,a*this.pJ-b),g=Math.max(f,g-f),g=2*Math.ceil(Math.sqrt(a*a+g*g)),k=this.Sw*Math.PI/180,a=Math.cos(k),k=Math.sin(k),b=b-this.Nm*g-(0.5-this.Nm)*g*a+(0.5-this.Om)*g*k,f=f-this.Om*g-(0.5-this.Om)*g*a-(0.5-this.Nm)*g*k;this.aI=z;this.ei(b,f);this.XC(g,g);this.mK(this.Sw)}c.prototype.qf.call(this)};
a.prototype.lg=function(){var a=this.X.Tla,b=this.X.Xna;if(0<b||0<a){var f=this.Qh*this.pJ,g=this.Qh*this.oJ,f=Math.ceil(Math.sqrt(f*f+g*g))*this.X.nv()/this.oc,g=Math.round(0.5*this.W),k=Math.round(0.5*this.ea),i=this.ba*Math.PI/180,n=0.5*-i,i=n+i;0<b&&(this.ha.fillStyle=this.X.Wna,this.ha.globalAlpha=b,this.ha.rect(0,0,this.W,this.ea),this.ha.fill(),this.ha.globalCompositeOperation="destination-out",this.ha.fillStyle="#FFFFFF",this.ha.globalAlpha=1,this.ha.beginPath(),this.ha.moveTo(g,k),this.ha.arc(g,
k,f,n,i,z),this.ha.lineTo(g,k),this.ha.closePath(),this.ha.fill(),this.ha.globalCompositeOperation="source-over");0<a&&(this.ha.fillStyle=this.X.Sla,this.ha.globalAlpha=a,this.ha.beginPath(),this.ha.moveTo(g,k),this.ha.arc(g,k,f,n,i,z),this.ha.lineTo(g,k),this.ha.closePath(),this.ha.fill())}c.prototype.lg.call(this)};return a});
define("i","require,fd,fK,H,ix,jA".split(","),function(a){var b=a("fd"),c=a("fK"),e=a("H"),d=a("ix"),f=a("jA"),a=b.extend(e,function(a,b){e.call(this,a,b);this.k9(this.X.M8?0:2);this.tb=d.qe(this.X.sj());this.dK=new f(this.tb,this.tb.width,this.tb.height);this.dK.rs(this.X.Dd);this.dK.xz(this.X.ii);this.dK.sz(this.X.Nh);this.CB=0;this.Qh=1;this.dT=p});a.prototype.NM=function(a,b){if(this.CB!=a||this.Qh!=b){this.CB=a;this.Qh=b;this.dT=p;this.Bc()}};a.prototype.qf=function(){if(this.dT){this.dT=z;var a=
this.X.getX(),b=this.X.getY(),d=this.X.$c(),f=this.X.Nd(),j=this.X.au,l=this.X.bu;if(this.X.M8){this.mK(0);this.ei((a-j)*this.Qh,(b-l)*this.Qh);this.XC(d*this.Qh,f*this.Qh)}else{var d=d*c.Pg,f=f*c.Pg,j=j*c.Pg,l=l*c.Pg,q=Math.cos(-this.CB*Math.PI/180),o=Math.sin(-this.CB*Math.PI/180),a=a*this.Qh-this.Nm*d-(j-this.Nm*d)*q+(l-this.Om*f)*o,b=b*this.Qh-this.Om*f-(l-this.Om*f)*q-(j-this.Nm*d)*o;this.mK(-this.CB);this.ei(a,b);this.XC(d,f)}}e.prototype.qf.call(this)};a.prototype.lg=function(){this.dK.My(this.ha,
this.u.width,this.u.height);e.prototype.lg.call(this)};return a});
define("gn","require,fd,je,ix,cC,hv,jg,i,jG".split(","),function(a){var b=a("fd"),c=a("je"),e=a("ix"),d=a("cC"),f=a("hv"),g=a("jg"),k=a("i"),i=a("jG"),a=b.extend(i,function(a,b){i.call(this,a,b,a.ek);this.La=this.X.$c();this.Xa=this.X.Nd();this.Dd=this.X.Dd;this.sH=this.X.kR;this.dc=this.Xb=100;this.aQ=p;this.da=this.ca=0.5;this.Eb=0;this.ra=1;this.AC=p;this.sd=1;this.tb=e.qe(this.X.sj())});a.prototype.iQ=function(a){a.re()!=d.F0&&h("Invalid item type");switch(a.Zna){case f.C0:a=new g(a,this);break;
case f.D0:a=new k(a,this);break;default:a=r}a&&a.NM(this.Eb,this.sd*this.ra);return a};a.prototype.getX=R("ca");a.prototype.getY=R("da");a.prototype.Py=R("Eb");a.prototype.$l=R("ra");a.prototype.Ba=function(){return Math.round(this.La*this.ra*this.sd)};a.prototype.gb=function(){return Math.round(this.Xa*this.ra*this.sd)};a.prototype.Iv=function(a,b){if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.aQ=p;this.Bc()}};a.prototype.Fa=function(a,b,c,d){if(this.ca!=a||this.da!=b||this.Eb!=c||this.ra!=
d){this.ca=a;this.da=b;this.Eb=c;this.ra=d;this.AC=p;this.Bc()}};a.prototype.qf=function(){if(this.aQ){this.aQ=z;switch(this.Dd){case c.NONE:this.sd=1;break;case c.Qk:this.sd=this.Xb/this.La;break;case c.Wg:this.sd=this.dc/this.Xa;break;case c.km:this.sd=this.La*this.dc>this.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;default:this.sd=this.La*this.dc>this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}this.AC=p}if(this.AC){this.AC=z;var a=this.Ba(),b=this.gb(),d=Math.cos(this.Eb*Math.PI/180),e=Math.sin(this.Eb*
Math.PI/180);this.ei(this.Xb*0.5-this.Nm*a+(this.Nm-this.ca)*d*a-(this.Om-this.da)*e*b,this.dc*0.5-this.Om*b+(this.Om-this.da)*d*b+(this.Nm-this.ca)*e*a);this.mK(this.Eb);this.XC(a,b);for(a=0;a<this.Jb.length;a++)this.Jb[a].NM(this.Eb,this.sd*this.ra)}i.prototype.qf.call(this)};a.prototype.lg=function(){var a=Math.round(this.W),b=Math.round(this.ea);if(this.sH){this.ha.save();this.ha.translate(a,0);this.ha.scale(-1,1);this.ha.drawImage(this.tb,0,0,a,b);this.ha.restore()}else this.ha.drawImage(this.tb,
0,0,a,b);i.prototype.lg.call(this)};return a});
define("fn","require,dm,fd,cC,jG,gn".split(","),function(a){a("dm");var b=a("fd"),c=a("cC"),e=a("jG"),d=a("gn"),a=b.extend(e,function(){e.call(this,r,r);this.OP=p});a.prototype.Cb=R("I");a.prototype.render=function(){this.ga();this.YM()};a.prototype.Lua=function(){for(var a=1,b=0;b<this.Jb.length;b++){var c=this.Jb[b],c=c.Ba()*c.gb();a<c&&(a=c)}return a};a.prototype.iQ=function(a){a.re()!=c.E0&&h("Invalid item type");a=new d(a,this);a.Iv(this.W,this.ea);a.Fa(0.5,0.5,0,1);return a};a.prototype.setSize=
function(a,b){this.XC(a,b);this.OP=p;this.Bc()};a.prototype.qf=function(){if(this.OP){this.OP=z;for(var a=0;a<this.Jb.length;a++)this.Jb[a].Iv(this.W,this.ea)}e.prototype.qf.call(this)};return a});
define("hU","require,dm,fd,lc,gb,ix,fK,fn,bi,R,d".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("gb"),f=a("ix"),g=a("fK"),k=a("fn"),i=a("bi"),n=a("R"),j=a("d"),a=c.extend(j,function(){j.call(this);this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",n.$v);this.Cq=[];this.Ju=[];this.xa="";this.lf=new k;this.Pa().append(this.lf.Cb());this.bind(e.yb,this.nb,this,p);this.bind(e.nd,this.hh,this,p);this.bind(e.zd,this.eh,this,p);i.bind(e.aa,this.AW,this,p);this.zu=this.MU=
z});a.prototype.zn=function(a){f.zn(a,d.Jj)};a.prototype.IZ=function(a){return f.IZ(a)};a.prototype.ti=function(a){f.ti(a,d.Jj)};a.prototype.lX=function(a){this.lf.zaa(a)};a.prototype.removeItem=function(a){this.lf.gda(a)};a.prototype.sL=function(a,b){this.lf.kn(a).zaa(b);this.yW()};a.prototype.Jwa=function(a,b){var c=this.lf.kn(a);c&&c.gda(b)};a.prototype.rX=function(a){this.lf.Oy(a).uk()};a.prototype.em=function(a,b){this.lf.Oy(a).xd(b)};a.prototype.eF=function(a,b,c,d,e){this.lf.kn(a).Fa(b,c,d,
e);this.yW()};a.prototype.yW=function(){var a=this.lf.Lua();if(a){g.Pg=Math.min(g.D_,g.Pg*Math.sqrt(g.ffa/a));this.S$()}};a.prototype.Dxa=function(a,b,c){this.lf.Oy(a).qxa(b,c)};a.prototype.yE=function(a){return this.lf.kn(a).getX()};a.prototype.zE=function(a){return this.lf.kn(a).getY()};a.prototype.TL=function(a){return this.lf.kn(a).Py()};a.prototype.rba=function(a){return this.lf.kn(a).$l()};a.prototype.xE=function(a){return this.lf.kn(a).Ba()/g.Pg};a.prototype.wE=function(a){return this.lf.kn(a).gb()/
g.Pg};a.prototype.render=function(){this.zu&&this.lf.render()};a.prototype.DM=function(a){this.Cq.push(a);this.N$()};a.prototype.iz=function(a){a=b(this.Cq).lastIndexOf(a);a>=0&&this.Cq.splice(a,1);this.N$()};a.prototype.N$=function(){var a;a=this.Cq.length>0?this.Cq[this.Cq.length-1]:n.cd;this.getParent().set("cursor",a)};a.prototype.PG=function(){if(this.Cq.length>0){this.getParent().set("cursor",n.cd);this.Cq=[]}};a.prototype.Cwa=function(a){this.Ju.push(a);this.LD()};a.prototype.vwa=function(a){a=
b(this.Ju).lastIndexOf(a);a>=0&&this.Ju.splice(a,1);this.LD()};a.prototype.LD=function(){var a=this.Ju.length==0?"":this.Ju[this.Ju.length-1]||"";if(this.xa!=a){this.xa=a;this.getParent().set("toolTip",this.xa)}};a.prototype.fia=function(){this.xa&&this.getParent().set("toolTip","");this.xa="";this.Ju=[]};a.prototype.gj=function(){this.fia();this.PG();j.prototype.gj.call(this)};a.prototype.nb=function(){this.S$();this.yW()};a.prototype.S$=function(){this.lf.Cb().css({transform:g.Pg!=1?"scale("+(1/
g.Pg).toFixed(3)+")":"none","transform-origin":"0% 0%"});this.lf.setSize(this.Ba()*g.Pg,this.gb()*g.Pg);this.render()};a.prototype.hh=function(){this.MU=p;this.AW()};a.prototype.eh=function(){this.MU=z;this.AW()};a.prototype.AW=function(){var a=this.MU&&!i.isPresenting();if(this.zu!=a)(this.zu=a)&&this.render()};return a});
define("I","dm,fd,iU,bY,dT,jK,ct,di,jd,hm,hU,lc,dk,fj".split(","),function(a,b,c,e,d,f,g,k,i,n,j,l,q,o){var t=b.extend(g,function(){g.call(this,"map");this.HI=this.cT=this.rh=z;this.bj=this.Bb=this.q=this.g=r;this.nq={};for(var a in t.Sn)this.nq[a]=this.zia(a);this.qd=b.An(this.qf,this)});d.A("MapPlayer",t).B("Object").L({map:"Map",viewerArea:"ViewerArea",movementMode:"enum[constrained, free_drag, free_drag_and_rotation, sync_with_field_of_view]",buttonZoomIn:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonZoomOut:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateCounterClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]"}).Vb([l.SF]).Rg({stop:function(){this.vb(n.je)},rotateClockwise:function(){this.vb(n.uO)},rotateCounterClockwise:function(){this.vb(n.vO)},zoomIn:function(){this.vb(n.Qn)},zoomOut:function(){this.vb(n.Rn)}});t.prototype.set=function(a,
b){if(this.get(a)!=b){switch(a){case "map":this.cT=p;this.qd();break;case "viewerArea":this.rh=p;this.qd();break;case "panoramaMapLocation":this.WT=p;this.qd();break;case "movementMode":this.HI=p;this.qd()}g.prototype.set.call(this,a,b)}};t.prototype.zia=function(a){var b=t.Sn[a],a=new f(this,a,q.Tc);a.bind(l.xb,function(){this.vb(b.movement)},this);b.stopOnRelease&&a.bind(l.cc,function(){this.vb(n.je)},this);return a};t.prototype.hta=function(a){this.bj=r;this.set("map",a.get("map"));this.set("panoramaMapLocation",
a)};t.prototype.Nwa=function(a){if(this.get("panoramaMapLocation")==a){this.set("panoramaMapLocation",r);this.bj=r}};t.prototype.zj=function(a,b,c,d){this.q&&this.q.zj(a,b,c,d);this.bj={yaw:b,pitch:c,hfov:d}};t.prototype.qf=function(){if(this.rh){this.rh=z;this.vt();this.get("viewerArea")&&this.tt();this.pK(this.get("viewerArea"))}if(this.q){if(this.cT){this.cT=z;var a=this.get("map");if(a){this.QJ();this.q.Pda(a)}else this.q.Gv();this.WT=this.HI=p}if(this.WT){this.WT=z;a=this.get("panoramaMapLocation");
this.q.Lp(a);a&&this.bj&&this.q.zj(a,this.bj.yaw,this.bj.pitch,this.bj.hfov)}if(this.HI){this.HI=z;this.q.gm(this.get("movementMode"))}}};t.prototype.lD=function(){this.set("map",r)};t.prototype.tt=function(){var a=this.get("viewerArea");this.g=new j;this.g.N({left:0,top:0,bottom:0,right:0});a.ma(this.g);this.q=new i(a,this.g);this.q.bind(i.Ug,this.pl,this);this.q.bind(i.jm,this.Io,this);this.q.bind(i.Cs,this.Cx,this);this.q.bind(i.Es,this.fr,this);this.q.bind(i.Ds,this.Jo,this);this.q.bind(i.Vg,
this.hC,this,p)};t.prototype.vt=function(){if(this.g){this.q.unbind(i.Ug,this.pl,this);this.q.unbind(i.jm,this.Io,this);this.q.unbind(i.Cs,this.Cx,this);this.q.unbind(i.Es,this.fr,this);this.q.unbind(i.Ds,this.Jo,this);this.q.unbind(i.Vg,this.hC,this);this.q.clear();this.g.getParent().removeChild(this.g);this.g=r}};t.prototype.fr=function(a){this.zI(a.data.map)};t.prototype.Jo=function(a){this.yI(a.data.map)};t.prototype.pl=function(a){for(var b in t.Sn)this.nq[b].set("state",a.data[t.Sn[b].pressedOn]?
o.za:o.cd);this.trigger(new e(l.SF,a.data))};t.prototype.hC=function(a){this.trigger(new e(t.Vg,{yawDelta:a.data.yawDelta}))};t.prototype.Io=function(a){this.g.getParent().N({progressPercent:a.data.percent,progressVisible:p})};t.prototype.Cx=function(){this.g.getParent().set("progressVisible",z)};t.prototype.vb=function(a){this.q&&this.q.Sg(a)};t.Sn={buttonRotateClockwise:{movement:n.uO,pressedOn:"rotatingClockwise",stopOnRelease:p},buttonRotateCounterClockwise:{movement:n.vO,pressedOn:"rotatingCounterClockwise",
stopOnRelease:p},buttonZoomIn:{movement:n.Qn,pressedOn:"zoomingIn",stopOnRelease:p},buttonZoomOut:{movement:n.Rn,pressedOn:"zoomingOut",stopOnRelease:p}};t.Vg="requestYawChange";return t});
define("dj",["fd","iU","lc","bY","dT"],function(a,b,c,e,d){a=a.extend(b,function(){b.call(this);this.gg=z});d.A("PlayListItem",a).B("Object").L({media:"Media",label:"string"}).Vb([c.Di,c.Jk,c.je,c.Da]);a.prototype.start=function(){this.trigger(new e(c.Di))};a.prototype.stop=function(){this.rF()};a.prototype.rF=function(){this.trigger(new e(c.je))};a.prototype.Dy=function(){this.gg=p;this.trigger(new e(c.Jk))};a.prototype.end=function(){this.gg=z;this.trigger(new e(c.Da))};return a});
define("lw",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("MapPlayListItem",a).B("PlayListItem").L({media:"Map",player:"MapPlayer"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.yf,this.fr,this),a.set("map",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&a.get("map")==this.get("media")&&a.set("map",r);e.prototype.stop.call(this)};a.prototype.fr=function(){this.get("player").unbind(c.yf,
this.fr,this);this.get("player").bind(c.Bh,this.Jo,this);this.Dy();this.get("player").get("map")!=this.get("media")&&this.Jo()};a.prototype.Jo=function(){this.get("player").unbind(c.Bh,this.Jo,this);this.end()};return a});
define("gx",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("distance",2)});a.A("Menu",b).B("MenuItem").L({backgroundColor:"color",rollOverBackgroundColor:"color",selectedBackgroundColor:"color",opacity:"number",rollOverOpacity:"number",fontFamily:"string",fontColor:"color",rollOverFontColor:"color",selectedFontColor:"color",distance:"number"}).Vb([e.tc,e.Ib]).Wf([e.T]);return b});
define("m",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("MenuItem",b).B("Object").L({label:"string",children:"array[MenuItem]"}).Vb([e.tc,e.Ib]).Wf([e.T]);return b});
define("hY",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("MovementPhotoCamera",a).B("PhotoCamera").L({duration:"number",easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",initialPosition:"PhotoCameraPosition",targetPosition:"PhotoCameraPosition"});return a});
define("ga",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("Object",a).L({id:"identifier",data:"*"});return a});define("cd",[],function(){var a={Bs:"drag_acceleration",Jn:"drag_rotation"};a.H_=a.Bs;a.A0=a.Jn;return a});define("lo",["fd","bY"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.hz=this.Cz=this.Cp=this.Tp=0})});define("kk",["fd","bY"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.hY=this.ova=0})});
define("eb","require,fd,dm,lc,bY,eL,cd,lo,kk".split(","),function(a){function b(a,b){return a*b}function c(a){var b=a>0?1:-1;return b*(Math.pow(10,b*a)-1)/9}function e(a,b){return Math.min(Math.max(a/b,-1),1)}var d=a("fd");a("dm");var f=a("lc"),g=a("bY"),k=a("eL"),i=a("cd"),n=a("lo"),j=a("kk"),l=d.extend(k,function(){k.call(this);this.I5=this.J5=1800;this.Tw=7;this.Fma=this.zra=0;this.nB=z;this.ci=m;this.Zt=i.H_;this.q$=i.A0;this.Tw=0;this.aK=m;this.RD=z;this.xw=r;this.Kt=3;this.ba=90;this.XQ=this.Hu=
this.oc=1;this.Ac=this.sa=r;this.xC=z});l.prototype.js=function(a){this.J5=a.get("manualRotationSpeed");this.I5=a.get("manualRotationSpeed");this.Kt=a.get("manualZoomSpeed");this.XQ=a.get("draggingFactor")};l.prototype.ns=function(a){this.Zt=a;this.DW()};l.prototype.Ov=function(a){this.q$=a;this.DW()};l.prototype.Jv=function(a){this.ba=a;this.Hu=this.ba/90};l.prototype.Fv=function(a){this.mi();if(a){this.sa=a;if(this.Ac=a.Eua&&a.Ac){this.Ac.bind(f.xb,this.R7,this,p);this.Ac.bind(f.cc,this.S7,this,
p)}this.sa.bind(f.xb,this.lc,this,p);this.sa.bind(f.Lc,this.Bg,this,p);this.sa.bind(f.cc,this.Cg,this,p);this.sa.bind(f.Yp,this.$t,this,p);this.sa.Ua().get("settings").get(TDV.PlayerSettings.sfa)!==z&&this.sa.bind(f.Zv,this.Ht,this,p);this.sa.bind(f.MF,this.V3,this,p);this.sa.bind(f.LF,this.T3,this,p);this.DW()}};l.prototype.mi=function(){if(this.sa!=r){if(this.Ac){this.Ac.unbind(f.xb,this.R7,this);this.Ac.unbind(f.cc,this.S7,this);this.Ac=r}this.sa.unbind(f.xb,this.lc,this);this.sa.unbind(f.Lc,this.Bg,
this);this.sa.unbind(f.cc,this.Cg,this);this.sa.unbind(f.Yp,this.$t,this);this.sa.unbind(f.Zv,this.Ht,this);this.sa.unbind(f.MF,this.V3,this);this.sa.unbind(f.LF,this.T3,this);this.sa=r;this.oH()}};l.prototype.DW=function(){if(this.sa)if(this.sa.Yj){this.aK=this.q$;this.Tw=this.zra}else{this.aK=this.Zt;this.Tw=this.Fma}};l.prototype.R7=function(){this.xC=p};l.prototype.S7=function(){this.xC=z};l.prototype.lc=function(a){if(!this.xC){this.Tqa(a);this.FV()}};l.prototype.Bg=function(a){this.xC||this.wy(a)};
l.prototype.Cg=function(){if(!this.xC){this.fR();this.oH()}};l.prototype.$t=function(a){this.LW(a);this.FV(500)};l.prototype.V3=function(){this.FV()};l.prototype.Ht=function(a){this.MW(a)};l.prototype.T3=function(){this.oH()};l.prototype.Tqa=function(a){this.nB=p;this.ci=a;this.wy(a)};l.prototype.wy=function(a){if(this.nB)switch(this.aK){case i.Bs:this.Asa(a);break;case i.Jn:this.zsa(a)}};l.prototype.Asa=function(a){this.Z$(+b(c(e(Math.abs(a.x-this.ci.x)<3?0:a.x-this.ci.x,this.sa.Ba())),this.J5*this.Hu),
-b(c(e(Math.abs(a.y-this.ci.y)<3?0:a.y-this.ci.y,this.sa.gb())),this.I5*this.Hu))};l.prototype.zsa=function(a){this.BW(-b(e(a.x-this.ci.x,this.sa.Ba()),this.ba*this.XQ),+b(e(a.y-this.ci.y,this.sa.Ba()),this.ba*this.XQ));this.ci=a};l.prototype.fR=function(){if(this.nB){this.nB=z;switch(this.aK){case i.Bs:this.Z$(0,0)}}};l.prototype.Z$=function(a,b){var c=new n(l.Kn);c.Tp=a;c.Cp=b;this.trigger(c)};l.prototype.BW=function(a,b){var c=new n(l.Kn);c.Cz=a;c.hz=b;this.trigger(c)};l.prototype.MW=function(a){if(this.oc!=
a.scale){this.fR();var b=this.oc;this.oc=a.scale;a=new j(l.Pk);a.hY=this.ba*b/this.oc-this.ba;this.trigger(a)}};l.prototype.LW=function(a){if(a.op!=0){this.fR();var b=new j(l.Pk);b.hY=this.ba*-a.op*this.Kt/100;this.trigger(b)}};l.prototype.FV=function(a){var b=this.xw!=r;this.S9();if(a&&(b||!this.RD)){var c=this;this.xw=setTimeout(function(){c.xw=r;c.oH()},a)}if(!this.RD){this.RD=p;this.trigger(new g(l.ve))}};l.prototype.oH=function(){this.S9();if(this.RD){this.RD=z;this.trigger(new g(l.ue))}};l.prototype.S9=
function(){if(this.xw!=r){clearTimeout(this.xw);this.xw=r}};l.Kn="rotation change";l.Pk="zoom change";l.ve="user interaction start";l.ue="user interaction end";return l});
define("cL",["require","r"],function(a){function b(){this.Yqa=e.Wa()?0.066:0.1;this.Gma=0.5;this.Kqa=e.Wa()?0.066:0.1;this.Ysa=0.1;this.zK=this.EK=z;this.reset()}function c(a,b,c){a=(b-a)*(1-c);0.01>Math.abs(a)&&(a=0);return b-a}var e=a("r");b.prototype.reset=function(){this.h3=this.uQ=this.Nw=this.zq=this.GA=this.yQ=this.xQ=this.CQ=this.ix=this.Kt=this.WJ=this.YJ=this.zl=this.wC=this.cn=this.cE=0};b.prototype.uZ=function(a,b,c,e,i,n,j,l,q){return this.cE!=a||(this.wC=b)||this.YJ!=c||0!=e||0!=i||
this.zK!=j||this.R5!=l||this.EK!=q?(this.cE=a,this.wC=b,this.YJ=c,this.cn+=e,this.zl+=i,this.WJ+=n,this.zK=j,this.R5=l,this.EK=q,p):z};b.prototype.sya=function(a,b){return this.Kt!=a||0!=b?(this.Kt=a,this.ix+=b,p):z};b.prototype.kd=function(){return 0!=this.CQ||0!=this.xQ||0!=this.yQ||0!=this.GA||0!=this.cE||0!=this.wC||0!=this.YJ||0!=this.Kt||0!=this.cn||0!=this.zl||0!=this.ix};b.prototype.cb=function(a){var a=1E3/a,b=this.CQ/a,e=this.cE/a+this.cn;this.cn=0;var k=this.xQ/a,i=this.wC/a+this.zl;this.zl=
0;var n=this.yQ/a,j=this.YJ/a+this.WJ;this.WJ=0;var l=this.Kt+this.ix*a;this.ix=0;var q=0==e&&0==i&&0==j,o=0==b&&0==k&&0==n;this.zK&&o&&!q||this.EK&&q&&!o||this.R5&&!q&&!o?(q=q?this.Yqa:o?this.Kqa:this.Gma,this.zq=c(b,e,q),this.Nw=c(k,i,q),this.uQ=c(n,j,q)):(this.zq=e,this.Nw=i,this.uQ=j);b=0==this.GA;e=0==l;this.GA=this.zK&&b&&!e||this.EK&&e&&!b?c(this.GA,l,this.Ysa):l;this.CQ=this.zq*a;this.xQ=this.Nw*a;this.yQ=this.uQ*a;this.h3=this.GA/a};return b});
define("cs","jquery.mod,fd,d,eb,cL,V,lc".split(","),function(a,b,c,e,d,f,g){b=b.extend(c,function(){c.call(this);this.Xc("Renderer");this.u=a("<canvas></canvas>");this.u.css({position:"absolute",left:0,top:0});this.Pa().append(this.u);this.Tq=r;this.$=this.lx=this.jx=this.kx=0;this.gg=z;this.ooa=150;this.gB=0;this.Ui=r;this.bind(g.yb,this.nb,this,p);this.va=new e;this.va.OAa(720);this.va.$E(0);this.va.ns("drag_rotation");this.va.Jv(360);this.va.bind(e.Kn,this.Dna,this);this.$a=new d});b.prototype.yxa=
function(a,b,c){this.Tq=a;this.kx=b;this.jx=c;this.lx=Math.floor(this.Tq.length*this.$/360);this.QU();this.va.Fv(this);this.fa()};b.prototype.Ata=function(){this.Tq=r;this.Tm();this.QU();this.va.mi()};b.prototype.play=function(){this.gg=p;this.fa()};b.prototype.Dna=function(a){this.Tm();this.$a.uZ(a.Tp,a.Cp,0,a.Cz,a.hz,0,z,p);this.fa()};b.prototype.zT=function(){this.play()};b.prototype.Dg=function(a){if(this.Tq)if(this.$a.kd()){this.gg=z;this.$a.cb(a);this.F1(this.$a.zq);this.fa()}else if(this.gg){this.F1(this.ooa*
a/1E3);this.fa()}else this.nx()||this.hD()};b.prototype.Yda=function(a){for(this.$=a;this.$<0;)this.$=this.$+360;for(;this.$>=360;)this.$=this.$-360;this.isa()};b.prototype.isa=function(){if(this.Tq){var a=Math.floor(this.Tq.length*this.$/360);if(this.lx!=a){this.lx=a;this.r8()}}};b.prototype.F1=function(a){this.Yda(this.$+a)};b.prototype.nb=function(){this.QU()};b.prototype.QU=function(){var a=this.u.get(0);if(this.kx==0||this.jx==0){a.width=0;a.height=0}else{var b=this.Gd(),c=this.Fd();if(c*this.kx>
b*this.jx){a.width=b;a.height=this.jx*b/this.kx}else{a.height=c;a.width=this.kx*c/this.jx}this.u.css({left:Math.round((b-a.width)*0.5)+"px",top:Math.round((c-a.height)*0.5)+"px"});this.r8()}};b.prototype.r8=function(){if(this.Tq){var a=this.u.get(0),b=this.Tq[this.lx];a.getContext("2d").drawImage(b,0,0,this.kx,this.jx,0,0,a.width,a.height)}};b.prototype.nx=function(){return this.Ui?p:z};b.prototype.hD=function(){this.Tm();if(this.gB>0){var a=this;this.Ui=setTimeout(function(){a.Ui=r;a.zT()},this.gB)}};
b.prototype.Tm=function(){if(this.Ui){clearTimeout(this.Ui);this.Ui=r}};b.prototype.fa=function(){f.Ma(this.Dg,this)};return b});
define("jt","require,jquery.mod,dm,fd,lc,gb,bY,dT,eE,cq,cs,kJ,hW".split(","),function(a){a("jquery.mod");var b=a("dm"),c=a("fd"),e=a("lc"),d=a("gb"),f=a("bY"),g=a("dT");a("eE");ProgressBar=a("cq");Renderer=a("cs");Container=a("kJ");ImageLoader=a("hW");a=c.extend(Container,function(){Container.call(this);this.fd=this.Wi=this.Te=this.g=r;this.bind(e.nd,this.hh,this);this.bind(e.zd,this.eh,this)});g.A("Object3D",a).B("UIComponent").L({frames:"array[ImageResource]",yaw:"number"}).Vb([e.S]);a.prototype.Ia=
function(){Container.prototype.Ia.call(this);if(!this.g){this.g=new Renderer;this.g.N({left:0,top:0,right:0,bottom:0});this.ma(this.g)}if(!this.Te){this.Te=new ProgressBar;this.Te.N({left:0,bottom:0,right:0,height:20,visible:z});this.ma(this.Te)}};a.prototype.hh=function(){this.yB()};a.prototype.eh=function(){this.qk()};a.prototype.yB=function(){this.Te.set("percent",0);this.Te.set("visible",p);this.g.Yda(this.get("yaw"));var a=this.get("frames",[]);this.Wi=[];this.fd=[];for(var b=0;b<a.length;b++){this.Wi.push(Level.Yl(a[b]));
var c=new ImageLoader(d.Jj);c.bind(e.S,this.VB,this);c.bind(e.ie,this.WB,this);this.fd.push(c)}for(b=0;b<a.length;b++)this.fd[b].load(this.Wi[b].get("url"))};a.prototype.VB=function(){var a=b(this.fd).filter(function(a){return a.yp()});this.Te.set("percent",100*a.length/this.fd.length);a.length==this.fd.length&&this.Lf()};a.prototype.WB=C();a.prototype.Lf=function(){this.Te.set("visible",z);var a=this.Wi[0].get("width",this.fd[0].$c()),c=this.Wi[0].get("height",this.fd[0].Nd());this.g.yxa(b(this.fd).map(function(a){return a.qe()}),
a,c);this.trigger(new f(e.S))};a.prototype.qk=function(){if(this.fd){this.Te.set("visible",z);this.g.Ata();this.fd=b(this.fd).each(function(a){a.unbind(e.S,this.VB,this);a.unbind(e.ie,this.WB,this);a.cancel()});this.Wi=this.fd=r}};return a});
define("fg",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(a,b,f){c.call(this);a!==m&&this.set("yaw",a);b!==m&&this.set("pitch",b);f!==m&&this.set("hfov",f)});a.A("RotationalCameraPosition",b).B("Object").L({stereographicFactor:"number",yaw:"number",pitch:"number",hfov:"number"});return b});
define("ce",["require","fd","fg","dT"],function(a){var b=a("fd"),c=a("fg"),a=a("dT"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("PanoramaCameraPosition",b).B("RotationalCameraPosition");return b});
define("fB","require,fd,iU,dT,ce,fg".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("dT"),d=a("ce"),f=a("fg"),g=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",g).B("Object").L({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(g,function(){g.call(this);this.set("initialPosition",new d)});e.A("PanoramaCamera",a).B("RotationalCamera");return a});
define("jf",["require","fd","fg","dT"],function(a){var b=a("fd"),c=a("fg"),a=a("dT"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("RotationalCameraDisplayPosition",b).B("RotationalCameraPosition").L({stereographicFactor:"number"});return b});define("ik",["require","fd","jf","dT"],function(a){var b=a("fd"),c=a("jf"),a=a("dT"),b=b.extend(c,function(){c.apply(this,arguments)});a.A("PanoramaCameraDisplayPosition",b).B("RotationalCameraDisplayPosition");return b});
define("bf",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaCameraMovement",b).B("RotationalCameraMovement");return b});
define("ir","require,fd,iU,bY,dT,lc".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("bY"),d=a("dT"),f=a("lc"),a=b.extend(c,function(){c.call(this)});a.prototype.play=function(){this.trigger(new e(f.Qs))};a.prototype.pause=function(){this.trigger(new e(f.VF))};d.A("RotationalCameraSequence",a).B("Object").L({movements:"array[RotationalCameraMovement]",mandatory:"bool",movementIndex:"number",repeat:"number",restartMovementOnUserInteraction:"bool",restartMovementDelay:"number"}).Rg({pause:a.prototype.pause,
play:a.prototype.play}).Vb([f.Da,f.Rs]);return a});define("bw",["require","fd","dT","ir"],function(a){var b=a("fd"),c=a("dT"),e=a("ir"),a=b.extend(e,function(){e.call(this)});c.A("PanoramaCameraSequence",a).B("RotationalCameraSequence");return a});define("gw",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("PanoramaMapLocation",a).B("Object").L({map:"Map",x:"number",y:"number",angle:"number",visible:"bool"});return a});
define("lp",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaOverlay",b).B("Object");return b});
define("cx",["require","fr","fy","a"],function(a){function b(a){this.g=a;this.Yk=[];this.YR=z;this.na=this.$=0}var c=a("fr"),e=a("fy"),d=a("a");b.prototype.clear=function(){this.stop();this.Yk=this.g=r};b.prototype.end=function(a){var b=[],d=[],e=this.A4(a);this.Yk.forEach(function(a){0>e.indexOf(a)?b.push(a):d.push(a)});b.forEach(function(a){a.iv().ic(c.K)});this.Yk=d;this.YR=z};b.prototype.start=function(a){this.end(a);this.Yk=this.A4(a);this.YR=0<this.Yk.filter(function(a){return a instanceof e}).length;
this.I$();this.hK(c.R,p)};b.prototype.play=function(){this.hK(c.R)};b.prototype.pause=function(){this.hK(c.yc)};b.prototype.stop=function(){this.hK(c.K)};b.prototype.Zb=function(){this.$=this.g.Ub();this.na=this.g.$b();this.I$()};b.prototype.I$=function(){if(this.YR){var a=Math.PI/180,b=this.$*a,c=this.na*a,i=new d(Math.sin(b)*Math.cos(c),Math.sin(c),Math.cos(b)*Math.cos(c));this.Yk.forEach(function(n){if(n instanceof e){var j=n.get("yaw",b)*a,l=n.get("pitch",c)*a,q=n.get("maximumAngle",360)*a,j=
new d(Math.sin(j)*Math.cos(l),Math.sin(l),Math.cos(j)*Math.cos(l)),q=Math.min(1,Math.max(0,1-Math.acos(i.cv(j))/q));n.iv().Np(q)}}.bind(this))}};b.prototype.A4=function(a){return a?a.get("audios",[]):[]};b.prototype.hK=function(a,b){(b?this.Yk.slice().reverse():this.Yk).forEach(function(b){if(b.get("autoplay",z)){var b=b.iv(),d=b.Ie();a==c.R&&d!=c.R?b.ic(c.R):a==c.yc&&d==c.R?b.ic(c.yc):a==c.K&&d!=c.K&&b.ic(c.K)}})};return b});
define("gt","require,dm,lc,im,ea,a,kd".split(","),function(a){function b(a){this.g=a;this.Z=z;this.ij=b.Vs;this.mR=this.a5=z;this.Tg(r);this.g.bind(e.yb,this.nb,this,p);this.nb()}var c=a("dm"),e=a("lc"),d=a("im"),f=a("ea"),g=a("a"),k=a("kd");b.prototype.Wba=function(){return this.ij!==b.Vs};b.prototype.Vba=function(){return this.ij&b.kw?p:z};b.prototype.Xba=function(){return this.ij&b.lw?p:z};b.prototype.Yba=function(){return this.ij&b.Ys?p:z};b.prototype.Uba=function(){return this.ij&b.Us?p:z};b.prototype.MM=
P("a5");b.prototype.Ub=function(){this.nj();return this.$};b.prototype.$b=function(){this.nj();return this.na};b.prototype.Od=function(){this.nj();return this.Gb};b.prototype.tp=function(){this.nj();return this.ba};b.prototype.Tg=function(a){if(a){this.UT=a.get("hfov",360);this.nJ=a.get("vfov",180);this.sC=a.get("pitch",0);this.lu=a.get("partial",z);this.$R=a.aca();this.XR=a.Pba();this.eS=Math.min(a.get("hfovMax",170),170);this.eB=a.get("hfovMin");this.fT=k.vba(a)}else{this.UT=360;this.nJ=180;this.sC=
0;this.XR=this.$R=this.lu=z;this.eS=120;this.fT=this.eB=1}this.$=0;this.na=this.sC;this.Gb=0;this.Z=p};b.prototype.Fa=function(a,b,c,d,e){this.$=a;this.na=b;this.Gb=c;this.ba=d;this.mR=e;this.Z=p};b.prototype.nb=function(){var a=this.g.Ba(),b=this.g.gb();if(this.W!=a||this.ea!=b){this.W=a;this.ea=b;this.Z=p}};b.prototype.nj=function(){if(this.Z){this.Z=z;var a=this.$*j,e=this.na*j,k=this.ba*j,s,u,v,w=(this.mR?d.Fn(this.eS,this.W,this.ea):this.eS)*j,x;a:{x=this.eB;if(c(x).isString())if((x=x.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&
x.length>=2){x=parseFloat(x[1]);break a}x=m}x=x!==m?2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.fT*45*x/100):this.eB?(this.mR?d.Fn(this.eB,this.W,this.ea):this.eB)*j:2*Math.atan2(this.W*this.g.getPixelRatio()*0.5,this.fT*45);x=Math.min(w,x);if(this.a5){s=360;v=180;u=0}else if(this.$R||this.XR){s=this.XR?90:this.sC+this.nJ*0.5;var y=this.$R?-90:this.sC-this.nJ*0.5;v=s-y;u=(s+y)*0.5;s=this.UT}else{s=this.UT;u=this.sC;v=this.nJ}s=s*j;v=v*j;u=u*j;for(y=this.W/this.ea;a<-i;)a=a+2*i;for(;a>i;)a=
a-2*i;k=Math.max(Math.min(k,w),x);w=b.Vs;e>n?w=w|b.Ys:e<-n&&(w=w|b.Us);var e=Math.max(Math.min(e,i*0.5),-i*0.5),F=2*Math.atan(Math.tan(k*0.5)/y);if(F>=v){k=2*Math.atan(Math.tan(v*0.5)*y);e=u;w=w|b.Ys|b.Us}else{var A=Math.min(v*0.5+u,i*0.5);v=Math.max(-v*0.5+u,-i*0.5);u=!this.lu&&A>=i*0.495?i*0.5:A-F*0.5;v=!this.lu&&v<=-i*0.495?-i*0.5:v+F*0.5;if(e>u){e=u;w=w|b.Ys}else if(e<v){e=v;w=w|b.Us}}if(this.lu){v=Math.tan(k*0.5);y=v/y;y=new g(-v,e>0?y:-y,1);v=new f;v.Bn(-e);y.apply(v);y=y.Ub()*2;y<0&&(y=y+2*
i);v=s*0.5-y*0.5;F=-s*0.5+y*0.5;if(y>s){a=0;k=Math.max(x,k*s/y);w=w|b.kw|b.lw}else if(a>v){a=v;w=w|b.lw}else if(a<F){a=F;w=w|b.kw}}this.$=a*l;this.na=e*l;this.ba=k*l;this.ij=w}};var i=Math.PI,n=Math.PI*0.5,j=Math.PI/180,l=180/Math.PI;b.Vs=0;b.kw=1;b.lw=2;b.Ys=4;b.Us=8;return b});
define("S",["require","fd","lc","eL","lo"],function(a){function b(a,b){return a*b}var c=a("fd"),e=a("lc"),d=a("eL"),f=a("lo"),g=c.extend(d,function(){d.call(this);this.nB=z;this.ci=m;this.ba=90;this.jR=0.1;this.sb=this.sa=r});g.prototype.js=function(a){this.sb&&this.sb.unbind(e.D("hoverFactor"),this.qW,this);if(this.sb=a)this.sb.bind(e.D("hoverFactor"),this.qW,this),this.qW()};g.prototype.qW=function(){this.jR=this.sb.get("hoverFactor")};g.prototype.Jv=P("ba");g.prototype.Fv=function(a){this.mi();
a&&(this.sa=a,this.ci=m,this.sa.bind(e.Lc,this.Bg,this,p))};g.prototype.mi=function(){this.sa!=r&&(this.sa.unbind(e.Lc,this.Bg,this),this.sa=r)};g.prototype.Bg=function(a){this.wy(a)};g.prototype.wy=function(a){this.ci&&this.BW(+b(Math.min(Math.max((a.x-this.ci.x)/this.sa.Ba(),-1),1),this.ba*this.jR),-b(Math.min(Math.max((a.y-this.ci.y)/this.sa.Ba(),-1),1),this.ba*this.jR));this.ci=a};g.prototype.BW=function(a,b){if(!(0==a&&0==b)){var c=new f(g.Kn);c.Cz=a;c.hz=b;this.trigger(c)}};g.Kn="rotation change";
return g});
define("fw","require,dm,fd,bY,eL,cL,S".split(","),function(a){a("dm");var b=a("fd"),c=a("bY"),e=a("eL"),d=a("cL"),f=a("S"),g=b.extend(e,function(a,b,c){e.call(this);this.g=a;this.Qb=this.g.Qb;this.H=b;this.pb=c;this.ur=this.jG=this.V=z;this.$a=new d;this.kg=r;this.Gb=this.na=this.$=0;this.ba=90;this.va=new f;this.va.bind(f.Kn,this.YB,this,p)});g.prototype.clear=function(){this.va.unbind(f.Kn,this.YB,this,p);this.va.mi();this.va=r;this.nt();this.g=this.Qb=this.pb=this.H=this.$a=r};g.prototype.js=function(a){this.$a.reset();
this.va.js(a)};g.prototype.Fa=function(a,b,c,d){if(this.$!=a||this.na!=b||this.Gb!=c||this.ba!=d){this.$=a;this.na=b;this.Gb=c;this.ba=d;this.va.Jv(this.ba);this.dV(z);this.jD()}};g.prototype.kd=function(){return this.jG&&this.ur?p:z};g.prototype.cb=function(a){this.Or=z;this.$a.cb(a);this.ur=z;var a=this.$+this.$a.zq,b=this.na+this.$a.Nw;this.pb.dm(this.ba);this.H.Fa(a,b,this.Gb,this.pb.He(),this.pb.qp());this.$=this.H.Ub();this.na=this.H.$b();this.Gb=this.H.Od();this.ba=this.H.tp()};g.prototype.Xl=
R("$");g.prototype.Wl=R("na");g.prototype.bs=R("Gb");g.prototype.jv=R("ba");g.prototype.md=function(a){if(this.V!=a)if(this.V=a)this.jD();else{this.nt();this.dV(z)}};g.prototype.YB=function(a){this.vb(a.Tp,a.Cp,0,0,a.Cz,a.hz,0,0,z,z,p,p)};g.prototype.vb=function(a,b,c,d,e,f,g,t,s,u,v,w){var x=this.$a.uZ(a,b,c,e,f,g,u,v,w)||x;x&&this.pf()};g.prototype.pf=function(){this.ur=p;this.trigger(new c(g.cf))};g.prototype.jD=function(){this.nt();this.kg=setTimeout(this.jC.bind(this),30)};g.prototype.nt=function(){if(this.kg){clearTimeout(this.kg);
this.kg=r}};g.prototype.jC=function(){this.dV(this.V)};g.prototype.dV=function(a){if(this.jG!=a)if(this.jG=a){this.$a.reset();this.va.Fv(this.g.getParent());this.pf()}else this.va.mi()};g.cf="position change request";return g});
define("fL","fd,lc,bY,eL,r,fQ".split(","),function(a,b,c,e,d,f){a=a.extend(e,function(){e.call(this);this.laa=this.V=z;this.Gb=this.na=this.$=0;this.TJ=z;this.zl=this.cn=0});a.prototype.md=function(a){if(this.V!=a)if(this.V=a){f.bind(this.eu,this,p);var a=f.tn(),b=a.pitch;this.cn=this.$-a.yaw;this.zl=this.na-b;this.sk()}else f.unbind(this.eu,this,p)};a.prototype.Fa=function(a,b,c){if(this.$!=a){this.cn=this.Au(this.cn+(a-this.Au(this.$,a)),0);this.$=a}if(this.na!=b){this.zl=this.zl+(b-this.na);this.na=
b}this.Gb=c};a.prototype.Xl=R("$");a.prototype.Wl=R("na");a.prototype.bs=R("Gb");a.prototype.kd=function(){return f.kwa()};a.prototype.cb=function(a){var b=f.tn(),a=20*a/1E3,c=b.pitch+(this.laa?this.zl:0),d=b.roll;this.$=this.ze(this.$,this.Au(this.Au(b.yaw,this.$)+this.cn,this.$),a);this.na=this.ze(this.na,c,a);this.Gb=this.ze(this.Gb,d,a)};a.prototype.oya=P("laa");a.prototype.ze=function(a,b,c){a=(b-a)*(1-c);Math.abs(a)<0.01&&(a=0);return b-a};a.prototype.Au=function(a,b){for(;a+180<b;)a=a+360;
for(;a-180>b;)a=a-360;return a};a.prototype.eu=function(){this.V&&this.sk()};a.prototype.sk=function(){this.trigger(new c(b.aa))};return a});define("fT",["require"],function(){return{aG:38,DF:40,Ka:39,oa:37,eN:65,HO:90}});define("dp",[],function(){return{cw:"left",dw:"right",bw:"down",ew:"up",o0:"rotate10x",M0:"zoom2x",R:"playing",Qn:"zoomIn",Rn:"zoomOut",je:"stop"}});
define("ef","require,fd,fT,bY,eL,dp".split(","),function(a){var b=a("fd"),c=a("fT"),e=a("bY"),d=a("eL"),f=a("dp"),g=b.extend(d,function(a){d.call(this);this.g=a;this.V=z;this.Hf={};this.fD=r;this.$C=this.eD=z;this.gI=this.gI.bind(this);this.zo=this.zo.bind(this);this.Qb=this.g.Qb;document.addEventListener("keydown",this.gI);document.addEventListener("keyup",this.zo)});g.prototype.clear=function(){this.V=z;this.Qb=this.g=r;document.removeEventListener("keydown",this.gI);document.removeEventListener("keyup",
this.zo)};g.prototype.md=function(a){if(this.V!=a)(this.V=a)&&this.VK()};var k=[c.aG,c.DF,c.oa,c.Ka,c.eN,c.HO];g.prototype.gI=function(a){var b=a.which,c=z;if(!this.Hf[b]&&k.indexOf(b)>=0){if(!this.fD&&!this.eD)this.fD=setTimeout(this.Gna.bind(this),100);c=this.Hf[b]=p}if(this.$C!=a.shiftKey){this.$C=a.shiftKey;c=p}c&&this.VK()};g.prototype.Gna=function(){this.eD=p;this.VK()};g.prototype.zo=function(a){var b=a.which,c=z;if(b in this.Hf){delete this.Hf[b];c=z;for(b in this.Hf)this.Hf[b]&&(c=p);if(!c){this.fD&&
clearTimeout(this.fD);this.fD=r;this.eD=z}c=p}if(this.$C!=a.shiftKey){this.$C=a.shiftKey;c=p}c&&this.VK()};g.prototype.VK=function(){if(this.V){var a=this.Qb.get("arrowKeysAction");if(a!="none"){var a=a=="rotate",b=[];this.Hf[c.eN]?b.push(f.Qn):this.Hf[c.HO]&&b.push(f.Rn);this.eD&&(this.Hf[c.eN]||this.Hf[c.HO])&&b.push(f.M0);this.Hf[c.oa]?b.push(f.cw):this.Hf[c.Ka]&&b.push(f.dw);if(a||this.$C)this.Hf[c.aG]?b.push(f.ew):this.Hf[c.DF]&&b.push(f.bw);this.eD&&(this.Hf[c.oa]||this.Hf[c.Ka]||this.Hf[c.aG]||
this.Hf[c.DF])&&b.push(f.o0);b.length==0&&b.push(f.je);this.trigger(new e(g.NN,{Mca:b}))}}};g.NN="movementsChange";return g});
define("lj",["require"],function(){function a(){this.Zs=p;this.reset()}function b(a,b){var d=0.5*(b-a);0.01>Math.abs(d)&&(d=0);return b-d}a.prototype.reset=function(){this.Zs&&(this.Zs=z,this.HK=this.IK=this.cp=this.lj=this.Ow=this.Rw=this.Pw=this.Bq=m)};a.prototype.moveTo=function(a,b,d,f,g){this.lj=a;this.cp=b;this.IK=d;this.HK=f;this.tS=g;this.Zs=p};a.prototype.Fa=function(a,b,d,f){this.Bq=a;this.Pw=b;this.Rw=d;this.Ow=f};a.prototype.Xl=R("Bq");a.prototype.Wl=R("Pw");a.prototype.bs=R("Rw");a.prototype.jv=
R("Ow");a.prototype.kd=R("Zs");a.prototype.cb=function(){if(this.Zs)if(this.tS)this.Bq=this.lj,this.Pw=this.cp,this.Rw=this.IK,this.Ow=this.HK,this.Zs=z;else{for(var a=this.Bq,e=this.lj-180,d=this.lj+180;a<e;)a+=d-e;for(;a>d;)a-=d-e;this.Bq=a;this.Bq=b(this.Bq,this.lj);this.Pw=b(this.Pw,this.cp);this.Rw=b(this.Rw,this.IK);this.Ow=b(this.Ow,this.HK);this.Bq==this.lj&&this.Pw==this.cp&&this.Rw==this.IK&&this.Ow==this.HK&&(this.Zs=z)}};return a});
define("bU",["require","kl","jk","bi"],function(a){function b(){this.V=z;this.Gb=this.na=this.$=0;this.jI=m}var c=a("kl"),e=a("jk"),d=a("bi");b.prototype.md=function(a){this.V!=a&&(this.V=a,this.jI=m)};b.prototype.Fa=function(a,b,c){this.$=a;this.na=b;this.Gb=c};b.prototype.Xl=R("$");b.prototype.Wl=R("na");b.prototype.bs=R("Gb");b.prototype.kd=S(p);b.prototype.cb=function(){var a=c.LZ(d.rn().orientation);this.$+=this.jI===m?0:a.ja-this.jI;this.jI=a.ja;this.na=a.pitch;this.Gb=a.ld;this.na=g===m?a.pitch:
g;this.Gb=f===m?a.ld:f};var f=e.Vf("debug")?e.RL("force_vr_roll"):m,g=e.Vf("debug")?e.RL("force_vr_pitch"):m;return b});
define("f","require,dm,fd,lc,bY,eL,cd,fL,ef,cL,eb,lj,bU,dp,bi,R".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("cd"),k=a("fL"),i=a("ef"),n=a("cL"),j=a("eb"),l=a("lj"),q=a("bU"),o=a("dp"),t=a("bi"),s=a("R"),u=c.extend(f,function(a,b,c){f.call(this);this.g=a;this.Qb=this.g.Qb;this.H=b;this.pb=c;this.ur=this.Nq=this.aB=this.JJ=this.V=z;this.$a=new n;this.Jl=new l;this.Gb=this.na=this.$=0;this.ba=90;this.Hu=1;this.gf=m;this.sP=this.gA=5;this.Or=z;this.va=new j;this.va.bind(j.Kn,
this.YB,this,p);this.va.bind(j.Pk,this.hr,this,p);this.va.bind(j.ve,this.ul,this,p);this.va.bind(j.ue,this.tl,this,p);this.Lh=new k;this.Lh.bind(e.aa,this.u6,this);this.Mq=z;this.Vi=new i(this.g);this.Vi.bind(i.NN,this.G6,this,p);this.an=new q;t.bind(e.aa,this.dk,this,p);this.dk()});u.prototype.clear=function(){this.va.unbind(j.Kn,this.YB,this,p);this.va.unbind(j.Pk,this.hr,this,p);this.va.unbind(j.ve,this.ul,this,p);this.va.unbind(j.ue,this.tl,this,p);this.va.mi();this.va=r;this.Lh.unbind(e.aa,this.u6,
this);this.Lh=r;this.Vi.unbind(i.NN,this.G6,this,p);this.Vi.clear();this.Vi=r;t.unbind(e.aa,this.dk,this,p);this.pb=this.H=this.$a=r;this.PG();this.g=this.Qb=r};u.prototype.js=function(a){this.$a.reset();this.Jl.reset();this.va.js(a);this.gA=a.get("automaticRotationSpeed");this.sP=a.get("automaticZoomSpeed")};u.prototype.Sg=function(a){function c(d){return b(a).contains(d)}b.isArray(a)||(a=[a]);var d=0,e=0,f=0,g=z;if(!c(o.je)){c(o.cw)?d=-this.gA:c(o.dw)&&(d=+this.gA);c(o.bw)?e=-this.gA:c(o.ew)&&(e=
+this.gA);c(o.Qn)?f=-this.sP:c(o.Rn)&&(f=+this.sP);c(o.R)&&(g=p);c(o.M0)&&(f=f*2);if(c(o.o0)){d=d*10;e=e*10}d=d*this.Hu;e=e*this.Hu}this.vb(d,e,0,f,0,0,0,0,g,p,p,p)};u.prototype.Fa=function(a,b,c,d){this.$=a;this.na=b;this.Gb=c;this.ba=d;this.Hu=this.ba/90;this.Lh.Fa(this.$,this.na,this.Gb);this.an.Fa(this.$,this.na,this.Gb);this.va.Jv(this.ba);this.Jl.Fa(this.$,this.na,this.Gb,this.ba)};u.prototype.moveTo=function(a,b,c,d,e){this.Jl.moveTo(a,b,c,this.pb.dba(d),e);this.JJ=z;this.$a.reset();this.pf()};
u.prototype.vZ=function(a,b,c){this.vb(0,0,0,0,a,b,c,0,z,z,z)};u.prototype.kd=function(){return this.V&&(this.ur||this.aN())?p:z};u.prototype.Dta=function(){this.ur=this.Or=z};u.prototype.aN=function(){return this.V?this.Or?p:this.an.V?this.an.kd()||this.$a.kd():this.Lh.V?this.Mq?p:this.Lh.kd()||this.$a.kd():this.$a.kd()||this.Jl.kd():z};u.prototype.cb=function(a){this.Or=z;this.$a.cb(a);this.ur=z;var b,c,d;d=this.ba;if(this.an.V){this.an.cb(a);a=this.an.Xl()+this.$a.zq;b=this.an.Wl();c=this.an.bs()}else if(this.Jl.kd()){this.Jl.cb(a);
a=this.Jl.Xl();b=this.Jl.Wl();c=this.Jl.bs();d=this.Jl.jv()}else{if(this.Lh.V){this.Mq=z;this.Lh.cb(a);a=this.Lh.Xl()+this.$a.zq;b=this.Lh.Wl();this.aB&&(b=b+this.$a.Nw);c=this.Lh.bs()}else{a=this.$+this.$a.zq;b=this.na+this.$a.Nw;c=0}d=d+this.$a.h3}this.pb.dm(d);this.H.Fa(a,b,c,this.pb.He(),this.pb.qp());this.$=this.H.Ub();this.na=this.H.$b();this.Gb=this.H.Od();this.ba=this.H.tp();if(this.JJ&&this.H.Wba()){d=this.$a.cE;if(this.H.Vba()||this.H.Xba())d=-d;a=this.$a.wC;if(this.H.Yba()||this.H.Uba())a=
-a;this.vb(d,a,0,0,0,0,0,0,p,z,z,p)}};u.prototype.Xl=R("$");u.prototype.Wl=R("na");u.prototype.bs=R("Gb");u.prototype.jv=R("ba");u.prototype.md=function(a){if(this.V!=a){if(this.V=a){this.Gr(this.va.Zt==g.Jn?s.NF:m);this.va.Fv(this.g.getParent());this.pf()}else{this.PG();this.va.mi()}this.wW()}};u.prototype.bF=function(a){if(this.Nq!=a){this.Nq=a;this.wW();this.Mq=p}};u.prototype.ls=function(a){this.Vi.md(a)};u.prototype.wW=function(){this.Lh.md(this.V&&this.Nq&&!t.isPresenting());this.an.md(this.V&&
t.isPresenting())};u.prototype.u6=function(){this.pf()};u.prototype.cF=function(a){this.aB=a;this.Lh.oya(this.aB)};u.prototype.ns=function(a){this.va.ns(a);this.Gr(this.va.Zt==g.Jn?s.NF:m)};u.prototype.Ov=function(a){this.va.Ov(a)};u.prototype.dk=function(){this.wW();this.pf()};u.prototype.YB=function(a){var b=!this.an.V&&(!this.Lh.V||this.aB);if(this.va.Zt==g.Bs){var c=m;if(a.Tp!=0||a.Cp!=0){var d=Math.sqrt(a.Cp*a.Cp+a.Tp*a.Tp)>25,e=Math.atan2(a.Cp,a.Tp)*180/Math.PI;e>=-22.5&&e<22.5?c=d?s.K_:s.J_:
e>=22.5&&e<67.5?c=d?s.M_:s.T_:e>=67.5&&e<112.5?c=d?s.L_:s.S_:e>=112.5&&e<157.5?c=d?s.N_:s.U_:e>=157.5||e<-157.5?c=d?s.R_:s.Y_:e>=-157.5&&e<-112.5?c=d?s.Q_:s.X_:e>=-112.5&&e<-67.5?c=d?s.O_:s.V_:e>=-67.5&&e<-22.5&&(c=d?s.P_:s.W_)}this.Gr(c);this.vb(a.Tp,a.Cp,0,0,a.Cz,a.hz,0,0,z,z,z,b)}else this.vb(a.Tp,a.Cp,0,0,a.Cz,a.hz,0,0,z,z,b,b)};u.prototype.hr=function(a){this.vb(0,0,0,a.ova,0,0,0,a.hY,z,p,z,p)};u.prototype.vb=function(a,b,c,d,e,f,g,i,j,k,l,n){a=this.$a.uZ(a,b,c,e,f,g,k,l,n)||z;this.Qb.get("zoomEnabled")&&
(a=this.$a.sya(d,i)||a);if(a){this.Jl.reset();this.JJ=j;this.pf()}};u.prototype.pf=function(){this.ur=p;this.trigger(new d(u.cf))};u.prototype.ul=function(){this.Or=p;this.trigger(new d(u.ve));this.va.Zt==g.Jn&&this.Gr(s.OF)};u.prototype.tl=function(){this.trigger(new d(u.ue));this.va.Zt==g.Jn&&this.Gr(s.NF)};u.prototype.G6=function(a){this.Sg(a.data.Mca);a.data.Mca.indexOf(o.je)<0&&this.g.Ua().trigger(new d(e.HF,{$da:a}))};u.prototype.Gr=function(a){if(this.gf!=a&&this.V){this.gf&&this.g.iz(this.gf);
(this.gf=a)&&this.g.DM(this.gf)}};u.prototype.PG=function(){if(this.gf){this.g.iz(this.gf);this.gf=m}};u.cf="position change request";u.ve="user interaction start";u.ue="user interaction end";return u});
define("jM",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("TargetRotationalCameraMovement",b).B("RotationalCameraMovement").L({path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number"});return b});
define("G","require,fd,lc,fr,bY,eL,dT,fl,jM,kO,bq".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("bY"),f=a("eL"),g=a("dT");a("fl");a("jM");var k=a("kO"),i=a("bq"),n=b.extend(f,function(a,b,c){f.call(this);this.g=a;this.H=b;this.pb=c;this.Zx=this.ud=r;this.qr=this.rr=z;this.nu=m;this.yx=[];this.NU=0;this.O=r;this.na=this.$=0;this.ba=90});n.prototype.clear=function(){this.end();this.H=this.g=r};n.prototype.start=function(a){this.nqa(a);this.foa();this.qr=z;this.z2();this.rr=z;this.pf();
this.Ig()};n.prototype.end=function(){if(this.ud!=r){this.F2();this.rr=this.qr=z;this.O=r;this.Ig()}};n.prototype.pwa=function(){if(this.ud&&this.ud.get("restartMovementOnUserInteraction")){if(!this.rr){this.Z9();this.JV();this.O=r;this.rr=p;this.Ig()}}else this.pause()};n.prototype.twa=function(){if(this.rr){this.rr=z;this.q5()||this.Sqa()}};n.prototype.nqa=function(a){this.F2();this.ud=a;this.ud.bind(c.Qs,this.o7,this,p);this.ud.bind(c.VF,this.n7,this,p);this.ud.bind(c.D("movementIndex"),this.VI,
this,p);this.yx=this.ud.get("movements",[])};n.prototype.F2=function(){this.JV();if(this.ud!=r){this.ud.unbind(c.Qs,this.o7,this);this.ud.unbind(c.VF,this.n7,this);this.ud.unbind(c.D("movementIndex"),this.VI,this);this.ud.set("movementIndex",-1);this.ud=r;this.yx=[]}};n.prototype.Og=function(){return this.ud?this.qr?e.yc:e.R:e.K};n.prototype.Fa=function(a,b,c,d){this.$=a;this.na=b;this.ba=d};n.prototype.kd=function(){return this.ud&&this.O&&!this.qr&&!this.rr&&!this.q5()?p:z};n.prototype.cb=function(a){if(this.kd()){this.O.cb(a);
a=this.O.wb("hfov");if(this.pb.yca()){var b=this.O.kba("hfov");b.hv=this.pb.AL(b.hv);b.yz=this.pb.AL(b.yz);a=this.pb.AL(a)}this.H.Fa(this.O.wb("yaw"),this.O.wb("pitch"),0,a,this.pb.qp());this.$=this.H.Ub();this.na=this.H.$b();this.ba=this.H.tp();this.O.Je()&&this.mna()}};n.prototype.Xl=R("$");n.prototype.Wl=R("na");n.prototype.jv=R("ba");n.prototype.play=function(){if(this.qr){this.qr=z;this.VI();this.z2();this.pf();this.Ig()}};n.prototype.pause=function(){if(!this.qr){this.qr=p;this.Z9();this.Ig()}};
n.prototype.o7=function(){this.play()};n.prototype.n7=function(){this.pause()};n.prototype.foa=function(){this.NU=0;var a=this.ud.get("movementIndex",-1);a==-1&&(a=0);this.zJ(a)};n.prototype.hoa=function(){this.NU++;var a=this.ud.get("repeat",1);if(this.yx.length>0&&(a==0||this.NU<a))this.zJ(0);else{this.ud.trigger(new d(c.Da));this.end();this.Lra()}};n.prototype.goa=function(){this.zJ(this.ud.get("movementIndex",0)+1)};n.prototype.zJ=function(a){if(a<this.yx.length)this.ud.get("movementIndex")!=
a?this.ud.set("movementIndex",a):this.VI();else{this.ud.trigger(new d(c.Rs));this.hoa()}};n.prototype.VI=function(){var a=this.ud.get("movementIndex");this.O=a>=0?this.Eia(this.yx[a]):r};n.prototype.mna=function(){this.yx[this.ud.get("movementIndex")].trigger(new d(c.Da));this.goa()};n.prototype.q5=function(){return this.Zx!=r};n.prototype.Sqa=function(){this.JV();var a=this,b=this.ud.get("restartMovementDelay")||0;this.Zx=setTimeout(function(){a.Zx=r;a.Ana()},b);this.Ig()};n.prototype.JV=function(){if(this.Zx){clearTimeout(this.Zx);
this.Zx=r}};n.prototype.Ana=function(){this.zJ(this.ud.get("movementIndex"));this.pf();this.Ig()};n.prototype.Eia=function(a){var b,c,d,e=this.yu(this.$,-180,180),f=this.na,n=this.ba;if(g.ob("TargetRotationalCameraMovement",a)){b=a.get("targetYaw",e);c=a.get("targetPitch",f);if(d=a.get("targetHfov")){this.pb.Oda(d);d=this.pb.He()}else d=n;this.H.Fa(b,c,0,d,this.pb.qp());if(this.H.lu)b=this.H.Ub();else switch(this.Lja(a)){case "left":b=this.yu(b,e-360,e);break;case "right":b=this.yu(b,e,e+360);break;
case "longest":b=this.yu(b,e-180,e+180);b=b>=e?this.yu(b,e-360,e):this.yu(b,e,e+360);break;default:b=this.yu(b,e-180,e+180)}}else if(g.ob("DistanceRotationalCameraMovement",a)){b=e+a.get("yawDelta",0);this.H.lu&&(b=Math.min(Math.max(-180,b),180));c=f+a.get("pitchDelta",0);d=n+a.get("hfovDelta",0);this.H.Fa(b,c,0,d,this.pb.qp());this.H.lu&&(b=this.H.Ub())}c=this.H.$b();d=this.H.tp();return new k(a.get("easing"),[new i("yaw",e,b,a.get("yawSpeed")),new i("pitch",f,c,a.get("pitchSpeed")),new i("hfov",
n,d,a.get("hfovSpeed"))],a.get("duration"))};n.prototype.z2=function(){this.nu=m};n.prototype.Z9=function(){if(this.O){this.nu=m;var a=this.O&&this.O.kba("yaw");if(a)if(a.yz>a.hv)this.nu="right";else if(a.yz<a.hv)this.nu="left"}};n.prototype.Lja=function(a){a=a.get("path");if(a=="longest"&&this.nu)a=this.nu;this.nu=m;return a};n.prototype.yu=function(a,b,c){for(;a<b;)a=a+(c-b);for(;a>c;)a=a-(c-b);return a};n.prototype.pf=function(){this.trigger(new d(n.cf))};n.prototype.Lra=function(){this.trigger(new d(n.$N))};
n.prototype.Ig=function(){this.trigger(new d(n.bc))};n.cf="position change request";n.$N="sequence end";n.bc="playback state change";return n});
define("bg","require,dm,fd,lc,bY,eL,gt,fw,f,G,dp,bi,fr".split(","),function(a){a("dm");var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("gt"),g=a("fw"),k=a("f"),i=a("G"),n=a("dp"),j=a("bi"),l=a("fr"),q=b.extend(d,function(a,b){d.call(this);this.g=a;this.g.bind(c.yb,this.nb,this);j.bind(c.aa,this.dk,this,p);this.pb=b;this.SU=z;this.ba=this.Gb=this.na=this.$=m;this.gn=this.dn=this.NB=this.QB=this.PB=this.OB=z;this.kj=p;this.ix=this.zl=0;this.V=z;this.Ui=r;this.gB=5E3;this.jB=this.pS=r;this.ZU=[];this.Pf=
this.iq=l.K;this.H=new f(a);this.Ra=new k(this.g,this.H,this.pb);this.Ra.bind(k.cf,this.rl,this,p);this.Ra.bind(k.ve,this.ul,this,p);this.Ra.bind(k.ue,this.tl,this,p);this.Ti=new g(this.g,this.H,this.pb);this.Ti.bind(g.cf,this.rl,this,p);this.jd=new i(this.g,this.H,this.pb);this.jd.bind(i.cf,this.rl,this,p);this.jd.bind(i.$N,this.HT,this,p);this.jd.bind(i.bc,this.p7,this,p)});q.prototype.clear=function(){this.Tm();this.Ra.unbind(k.cf,this.rl,this);this.Ra.unbind(k.ve,this.ul,this,p);this.Ra.unbind(k.ue,
this.tl,this,p);this.Ra.clear();this.Ra=r;this.Ti.unbind(g.cf,this.rl,this,p);this.Ti.clear();this.Ti=r;this.jd.unbind(i.cf,this.rl,this);this.jd.unbind(i.$N,this.HT,this);this.jd.unbind(i.bc,this.p7,this);this.jd.clear();this.H=this.jd=r;this.g.unbind(c.yb,this.nb,this);j.unbind(c.aa,this.dk,this,p);this.g=r;if(this.sb){this.sb.unbind(c.D("sequences"),this.IT,this,p);this.sb=r}this.nK([])};q.prototype.end=function(){this.iq=l.K;this.Tm();this.Ra.md(z);this.Ti.md(z);this.jd.end();this.V=z;this.Xo(0,
0,0,0);this.jB=this.pS=r;if(this.sb){this.sb.unbind(c.D("sequences"),this.IT,this,p);this.sb=r}this.nK([]);this.Ou()};q.prototype.start=function(a,b){this.iq=l.R;this.V=p;this.Xo(0,0,0,0);this.VC(a);this.Jpa(b);this.q8();this.AK(this.jB);this.Ti.md(p);this.Ou()};q.prototype.Og=R("Pf");q.prototype.play=function(){this.iq=l.R;this.jd.Og()==l.yc?this.jd.play():this.jd.Og()==l.K&&(this.jB?this.AK(this.jB):this.nx()||this.hD());this.Ou()};q.prototype.resume=function(){if(this.iq==l.yc){this.Ra.Dta();this.play()}};
q.prototype.pause=function(){this.Ra.Sg(n.je);if(this.iq==l.R){this.iq=l.yc;if(this.jd.Og()==l.R){this.jd.pause();this.Ou()}else this.nx()&&this.Tm()}};q.prototype.stop=function(){this.iq=l.K;this.jd.Og()!=l.K&&this.jd.end();this.Ra.Sg(n.je);this.Ou();this.nx()&&this.Tm()};q.prototype.moveTo=function(a,b,c,d,e){this.Ra.moveTo(a,b,c,d,e)};q.prototype.nK=function(a){this.ZU.forEach(function(a){a.unbind(c.Qs,this.V8,this,p)}.bind(this));this.ZU=a;this.ZU.forEach(function(a){a.bind(c.Qs,this.V8,this,
p)}.bind(this))};q.prototype.dk=function(){this.H.MM(j.isPresenting())};q.prototype.Sg=function(a){this.Ra.Sg(a)};q.prototype.vZ=function(a,b,c){this.Ra.vZ(a,b,c)};q.prototype.bF=function(a){if(this.Nq!=a){this.Nq=a;this.Ra.bF(this.Nq);this.fa()}};q.prototype.cF=function(a){this.Ra.cF(a)};q.prototype.ns=function(a){this.Ra.ns(a)};q.prototype.Ov=function(a){this.Ra.Ov(a)};q.prototype.ls=function(a){this.Ra.ls(a)};q.prototype.Ep=function(a){if(this.V)if(this.Ra.kd()||j.isPresenting()||this.Nq&&(this.Ra.V||
!this.Ra.aB)){this.Ra.aN()&&this.jd.pwa();this.Ra.cb(a);this.ei(this.Ra.Xl(),this.Ra.Wl(),this.Ra.bs(),this.Ra.jv());this.fa()}else if(this.jd.rr){this.jd.twa();this.fa()}else if(this.jd.kd()){this.jd.cb(a);this.ei(this.jd.Xl(),this.jd.Wl(),0,this.jd.jv());this.fa()}else if(this.Ti.kd()){this.Ti.cb(a);this.ei(this.Ti.Xl(),this.Ti.Wl(),0,this.Ti.jv());this.fa()}else if(this.SU){this.SU=z;this.pb.dm(this.g.He());this.H.Fa(this.g.Ub(),this.g.$b(),this.g.Od(),this.pb.He(),this.pb.qp());this.ei(this.H.Ub(),
this.H.$b(),this.H.Od(),this.H.tp());this.fa()}else{this.Xo(0,0,0,0);this.iq==l.R&&this.jd.Og()!=l.R&&(this.nx()||this.hD())}};q.prototype.Zb=function(){this.tsa();this.q8()};q.prototype.tsa=function(){var a=this.g.Ub()-this.$||0,b=this.g.$b()-this.na||0,c=this.g.Od()-this.Gb||0;this.Xo(a,b,c,this.g.He()-this.ba||0)};q.prototype.q8=function(){this.$=this.g.Ub();this.na=this.g.$b();this.Gb=this.g.Od();this.ba=this.g.He();this.Ra.Fa(this.$,this.na,this.Gb,this.ba);this.jd.Fa(this.$,this.na,this.Gb,
this.ba);this.Ti.Fa(this.$,this.na,this.Gb,this.ba)};q.prototype.VC=function(a){this.H.Tg(a)};q.prototype.Jpa=function(a){this.sb=a;this.gB=a.get("timeToIdle",5E3);this.pS=a.get("idleSequence");this.jB=a.get("initialSequence");this.Ra.js(a);this.Ti.js(a);a.bind(c.D("sequences"),this.IT,this,p);this.nK(a.get("sequences",[]))};q.prototype.IT=function(){this.nK(this.sb.get("sequences",[]))};q.prototype.V8=function(a){this.AK(a.source)};q.prototype.rl=function(){this.Tm();this.fa()};q.prototype.ul=function(){this.trigger(new e(q.ve))};
q.prototype.tl=function(){this.trigger(new e(q.ue))};q.prototype.AK=function(a){if(a){this.Ra.md(!a.get("mandatory",z));this.jd.start(a)}else this.HT()};q.prototype.HT=function(){this.Ra.md(p);this.hD()};q.prototype.p7=function(){this.Ou()};q.prototype.nb=function(){this.SU=p;this.fa()};q.prototype.nx=function(){return this.Ui!=r};q.prototype.hD=function(){this.Tm();var a=this;this.Ui=setTimeout(function(){a.Ui=r;a.zT()},this.gB)};q.prototype.Tm=function(){if(this.Ui){clearTimeout(this.Ui);this.Ui=
r}};q.prototype.zT=function(){this.AK(this.pS)};q.prototype.fa=function(){this.trigger(new e(q.Ja))};q.prototype.ei=function(a,b,c,d){this.g.Fa(a,b,c,d)};q.prototype.Xo=function(a,b,c,d){var c=z,f=Math.abs(a)<0.001&&Math.abs(b)<0.001&&Math.abs(d)<0.001;if(f||this.Nq){c=this.kj!=p;this.gn=this.dn=this.NB=this.QB=this.PB=this.OB=z;this.kj=p}else{if(this.OB!=a<-0.001){this.OB=!this.OB;c=p}if(this.PB!=a>0.001){this.PB=!this.PB;c=p}if(this.NB!=b<-0.001){this.NB=!this.NB;c=p}if(this.QB!=b>0.001){this.QB=
!this.QB;c=p}if(this.dn!=d<-0.001){this.dn=!this.dn;c=p}if(this.gn!=d>0.001){this.gn=!this.gn;c=p}if(this.kj!=f){this.kj=!this.kj;c=p}}f||this.trigger(new e(q.Mk,{yaw:this.$,pitch:this.na,roll:this.Gb,hfov:this.ba}));if(c){(this.V||this.kj)&&this.trigger(new e(q.Ug,{movingLeft:this.OB,movingRight:this.PB,movingUp:this.QB,movingDown:this.NB,zoomingIn:this.dn,zoomingOut:this.gn,stopped:this.kj}));this.Ou()}};q.prototype.Ou=function(){var a;if(this.V){a=this.jd.Og();if(!this.kj)a=l.R}else a=l.K;if(this.Pf!=
a){this.Pf=a;this.trigger(new e(q.bc,{state:this.Pf}))}};q.Ja="request frame";q.Ug="movement change";q.Mk="position change";q.bc="playback state change";q.ve="user interaction start";q.ue="user interaction end";return q});
define("fk","require,lc,gt,r,fQ,jk,bi,kl".split(","),function(a){function b(a,d,e){this.g=a;this.pb=d;this.Lr=e;this.H=new c(a);e.Bj&&this.H.Tg(e.Bj);this.Wo=new c(a);this.rx=this.Ao=m;this.$=this.g.Ub();this.na=this.g.$b();this.Gb=this.g.Od();this.ba=this.Lr.Bj?this.g.He():b.e_;this.R9=0;this.M=r;this.y5=p}a("lc");var c=a("gt");a("r");var e=a("fQ"),d=a("jk"),f=a("bi"),g=a("kl");b.prototype.Tg=function(a){if(this.M!=a){this.or=p;this.M=a}};b.prototype.Mv=function(a,b){this.$=a;this.na=b};b.prototype.Jy=
function(a){this.pb.Oda(a);return this.pb.He()};b.prototype.dm=P("ba");b.prototype.gF=P("y5");b.prototype.Nv=P("R9");b.prototype.Ep=function(){if(this.pb.yca())this.ba=this.pb.AL(this.ba);if(this.Lr.Ob()){var a=f.rn().orientation,a=g.LZ(a);this.$=this.$+(this.Ao===m?0:a.ja-this.Ao);this.Ao=a.ja;this.na=a.pitch;this.Gb=a.ld;this.na=i===m?a.pitch:i;this.Gb=k===m?a.ld:k}else if(this.Lr.Mba()){var a=e.tn(),b=this.Au(a.yaw,this.$);this.$=this.$+(this.Ao===m?0:b-this.Ao);this.na=this.na+(this.rx===m?0:
a.pitch-this.rx);this.Gb=a.roll;this.Ao=a.yaw;this.rx=a.pitch}else{a=this.Au(this.g.Ub(),this.$);b=this.g.$b();this.$=this.$+(this.Ao===m?0:a-this.Ao);this.na=this.na+(this.rx===m?0:b-this.rx);this.Gb=this.g.Od()}this.or&&this.H.Tg(this.M);this.H.MM(f.isPresenting());this.H.Fa(this.$,this.na,this.Gb,this.ba,this.pb.qp());if(this.or){this.or=z;if(this.Lr&&this.Lr.Bj)if(a=this.g.Uf(this.Lr.Bj)){a.set("deltaYaw",this.g.Ub()-this.H.Ub());a.set("deltaPitch",this.g.$b()-this.H.$b());a.set("deltaRoll",this.g.Od()-
this.H.Od())}}this.$=this.H.Ub();this.na=this.H.$b();this.Gb=this.H.Od();if(!this.Lr.Ob()&&!this.Lr.Mba()){this.Ao=this.$;this.rx=this.na}this.ba=this.y5?this.H.tp():this.ba;this.g.Fa(this.$,this.na,this.Gb,this.ba);this.g.Nv(this.R9)};b.prototype.JM=function(a,b){this.Wo.Tg(a);this.Wo.Fa(0,0,0,b,this.pb.qp());return this.Wo.tp()};b.prototype.Wwa=function(a,b){this.Wo.Tg(a);this.Wo.Fa(b.ja,b.pitch,b.ld,b.ad,this.pb.qp());b.ja=this.Wo.Ub();b.pitch=this.Wo.$b();b.ld=this.Wo.Od();b.ad=this.Wo.tp()};
b.prototype.Au=function(a,b){for(;a+180<b;)a=a+360;for(;a-180>b;)a=a-360;return a};b.prototype.Uaa=function(){return b.e_};b.e_=TDV.m0.Hea;var k=d.Vf("debug")?d.RL("force_vr_roll"):m,i=d.Vf("debug")?d.RL("force_vr_pitch"):m;return b});
define("lt","require,dT,fg,jf,r,bi".split(","),function(a){function b(a,d,f,n){this.g=a;a=this.g.F;this.NZ=a.get("transitionMode","blending");var j=a.get("transitionDuration",500);if(this.Gla(d,f)){this.NZ=b.JF;j=1500}this.Eaa=a.get("blendingTransitionDuration",j);this.gua=a.get("firstTransitionDuration",j);this.Rta=a.get("disolveTransitionDuration",j);this.Oya=a.get("translationTransitionDuration",1E3);this.Pya=a.get("translationTransitionEnabled",p);this.Rca=a.get("originTransitionDuration",3E3);
this.dN=1E3;this.Bj=d;this.wya=!d||d.qca();this.bd=f;this.Gya=!f||f.pca();this.GZ=!f||f.qca();this.Fya=!!f&&this.KS(f);a=(this.FZ=n)&&n.get("initialPosition")||new c;this.oi=new c;this.oi.set("yaw",a.get("yaw",0));this.oi.set("pitch",a.get("pitch"));this.oi.set("hfov",a.get("hfov"));this.Ed=new e;this.Ed.set("yaw",this.oi.get("yaw"));this.Ed.set("pitch",this.oi.get("pitch"));this.Ed.set("hfov",this.oi.get("hfov"));this.Ed.set("stereographicFactor",0);this.yk=[];if(!d){this.yk=n&&n.get("displayMovements")||
[];for(a=this.yk.length-1;a>=0;a--){this.Ed.set("yaw",this.Ed.get("yaw",this.yk[a].get("targetYaw")));this.Ed.set("pitch",this.Ed.get("pitch",this.yk[a].get("targetPitch")));this.Ed.set("hfov",this.Ed.get("hfov",this.yk[a].get("targethfov")));this.Ed.set("stereographicFactor",this.Ed.get("stereographicFactor",this.yk[a].get("stereographicFactor")))}n=n&&n.get("displayOriginPosition")||this.oi;this.Ed.set("yaw",n.get("yaw"));this.Ed.set("pitch",n.get("pitch"));this.Ed.set("hfov",n.get("hfov"));this.Ed.set("stereographicFactor",
n.get("stereographicFactor"))}this.mode=(this.qF=this.NZ==b.im&&this.Pya&&this.Gya?this.qla(d,f):r)?b.B0:d?f?this.NZ=="blending"?b.im:b.JF:b.w_:b.v_;if(this.mode==b.im&&(!this.wya||!this.GZ))if(this.Ed.get("stereographicFactor",0)>0||this.yk.filter(function(a){return a.get("targetStereographicFactor",0)>0}).length>0)this.mode=b.JF}a("dT");var c=a("fg"),e=a("jf"),d=a("r"),f=a("bi");b.prototype.Mba=function(){return this.g.Qb.get("gyroscopeEnabled")};b.prototype.Ob=function(){return f.isPresenting()};
b.prototype.qla=function(a,b){if(!a||!b)return r;var c=(a.get("adjacentPanoramas")||[]).filter(function(a){return a.get("enabled")&&a.sta()&&a.get("panorama")==b});return c.length==0?r:c[0]};b.prototype.Gla=function(a,b){return this.Ob()&&d.Xd()==d.Hj&&(this.KS(a)||this.KS(b))};b.prototype.KS=function(a){return!!a&&a.yh()};b.JF="fade_out_fade_in";b.v_="fade_in";b.w_="fade_out";b.im="blending";b.B0="translation";return b});
define("l",["require"],function(){function a(a,c,e,d){this.q=a;this.hb=c;this.g=e;this.Q=d}a.prototype.tj=S(z);a.prototype.Gk=C();a.prototype.EE=S(z);return a});
define("iV",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.Uf(this.Q.bd);b.uk();b.set("alpha",0.01);this.O=new e("linear",[new d("alpha",0,1,m)],this.Q.Eaa)}this.O.cb(a);a=this.O.wb("alpha");b=this.g.Uf(this.Q.bd);b.set("alpha",a);this.O.Je()&&(this.Cc=p)}};return a});
define("jb",["require","fd","l"],function(a){var b=a("fd"),c=a("l"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(){this.Cc||(this.yr(),this.Cc=p)};a.prototype.yr=C();return a});
define("fP",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.Q.bd&&!this.g.Uf(this.Q.bd)&&(this.Ue=this.g.create(this.Q.bd),this.Ue.set("alpha",0),this.g.add(this.Ue))};return a});define("fR",["require","fd","jb","bp"],function(a){var b=a("fd"),c=a("jb"),e=a("bp"),a=b.extend(c,function(a,b,e,k){c.call(this,a,b,e,k)});a.prototype.yr=function(){this.Q.Fya&&e.qg(this.g.Ua())};return a});
define("dX",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l");Ease=a("kO");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",0,1,m)],this.g.F.$ya()?this.Q.gua:this.Q.Eaa)),this.O.cb(a),a=this.O.wb("alpha"),this.g.Uf(this.Q.bd).set("alpha",a),this.O.Je()))this.Cc=p};return a});
define("bt",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l");Ease=a("kO");EaseDimension=a("bq");a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=new Ease("linear",[new EaseDimension("alpha",1,0,m)],this.Q.Rta)),this.O.cb(a),a=this.O.wb("alpha"),this.g.Uf(this.Q.Bj).set("alpha",a),this.O.Je()))this.Cc=p};return a});
define("bM",["require","fd","l","kO","bq"],function(a){function b(a,b,c){for(;a<b;)a+=c-b;for(;a>c;)a-=c-b;return a}var c=a("fd"),e=a("l"),d=a("kO"),f=a("bq"),a=c.extend(e,function(a,b,c,d){e.call(this,a,b,c,d);this.O=r;this.Cc=z;this.FI=0});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc&&(this.O||(this.O=this.FI<this.Q.yk.length?this.Via(this.FI):this.Fia()),this.O.cb(a),this.hb.Mv(this.O.wb("yaw"),this.O.wb("pitch")),this.hb.dm(this.O.wb("hfov")),this.hb.Nv(this.O.wb("stereographicFactor")),
this.O.Je()))this.O=r,this.FI++,this.FI>this.Q.yk.length&&(this.hb.gF(p),this.Cc=p)};a.prototype.Fia=function(){var a=b(this.g.Ub(),-180,180),c=this.g.$b();this.g.Od();var e=this.g.He(),n=this.g.m.si,j=this.Q.oi.get("hfov"),j={ja:this.Q.oi.get("yaw"),pitch:this.Q.oi.get("pitch",c),ld:this.g.Od(),ad:j?this.hb.Jy(j):e,si:0};this.hb.Wwa(this.Q.bd,j);j.ja=b(j.ja,a-180,a+180);var l=0.5<Math.abs(e-j.ad),q=Math.abs(n-j.si),o=0.01<q,l=this.Q.Ob()?1:Math.max(l?this.Q.dN:1,o?this.Q.Rca*q:1);return new d(o?
"linear":"cubic_in_out",[new f("yaw",a,j.ja,m),new f("pitch",c,j.pitch,m),new f("hfov",e,j.ad,m),new f("stereographicFactor",n,j.si,m)],l)};a.prototype.Via=function(a){var c=this.Q.yk[a],e=b(this.g.Ub(),-180,180),n=this.g.$b();this.g.Od();var j=this.g.He(),l=this.g.m.si,q=c.get("targetStereographicFactor",l),o=c.get("targetHfov");if(o)o=this.hb.Jy(o);else{for(o=z;a<this.Q.yk.length&&!o;a++)o=this.Q.yk[a].get("targetHfov")!==m;o?o=j:(o=this.hb.Jy(this.Q.oi.get("hfov",this.hb.Uaa())),o=j+(o-j)*(l-q))}var a=
c.get("targetYaw",e),t=c.get("targetPitch",n);this.g.Od();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,t,c.get("pitchSpeed")),new f("hfov",j,o,c.get("hfovSpeed")),new f("stereographicFactor",l,q,c.get("stereographicFactorSpeed"))],c.get("duration"))};return a});
define("ey",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.$b(),c=this.g.He(),i=this.g.m.si,n=this.Q.Ed.get("stereographicFactor",0),j=Math.abs(i-n),l=0<n?this.Q.Ed.get("pitch",b):b,q=this.Q.Ed.get("hfov"),q=q?this.hb.Jy(q):c;0==n&&(q=Math.min(c,this.hb.JM(this.Q.bd,q)));this.hb.gF(z);j=this.Q.Ob()?1:
Math.max(0.5<Math.abs(c-q)?this.Q.dN:1,0.01<j?this.Q.Rca:1);this.O=new e("cubic_in_out",[new d("hfov",c,q,m),new d("pitch",b,l,m),new d("stereographicFactor",i,n,m)],j)}this.O.cb(a);this.hb.dm(this.O.wb("hfov"));this.hb.Nv(this.O.wb("stereographicFactor"));this.hb.Mv(this.g.Ub(),this.O.wb("pitch"));this.O.Je()&&(this.hb.Tg(this.Q.bd),this.hb.Mv(this.Q.Ed.get("yaw"),this.Q.Ed.get("pitch",this.g.$b())),this.Cc=p)}};return a});
define("dA",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.g.remove(this.g.Uf(this.Q.Bj))};return a});
define("o",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.hb.Tg(this.Q.bd);this.hb.Mv(this.Q.oi.get("yaw"),this.Q.oi.get("pitch",this.g.$b()));var a=this.Q.oi.get("hfov");a&&(a=this.hb.Jy(a),this.hb.dm(a))};return a});
define("fz",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.hb.Tg(this.Q.bd);this.hb.Nv(this.Q.GZ?this.Q.Ed.get("stereographicFactor",0):0);this.hb.Mv(this.Q.Ed.get("yaw"),this.Q.Ed.get("pitch",this.g.$b()));var a=this.Q.Ed.get("hfov");!a&&!this.Q.Bj&&(a=this.hb.Uaa());a&&(a=this.hb.Jy(a),this.hb.dm(a),this.hb.gF(!this.Q.GZ))};return a});
define("eO",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.yr=function(){this.hb.Tg(this.Q.bd);this.hb.dm(this.hb.JM(this.Q.bd,this.g.He()));this.hb.Mv(this.g.Ub()+this.Q.qF.jba(),this.g.$b())};a.prototype.EE=S(p);return a});
define("kU",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.He(),c=this.hb.JM(this.Q.bd,b),i=!this.Q.Ob()&&0.01<Math.abs(b-c)?this.Q.dN:1;this.O=new e("cubic_in_out",[new d("hfov",b,c,m)],i)}this.O.cb(a);this.hb.dm(this.O.wb("hfov"));this.O.Je()&&(this.hb.gF(p),this.Cc=p)}};return a});
define("eq",["require","fd","l","kO","bq"],function(a){var b=a("fd"),c=a("l"),e=a("kO"),d=a("bq"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.O=r;this.Cc=z});a.prototype.tj=R("Cc");a.prototype.Gk=function(a){if(!this.Cc){if(!this.O){var b=this.g.He(),c=Math.min(this.hb.JM(this.Q.bd,b),b),i=!this.Q.Ob()&&0.01<Math.abs(b-c)?this.Q.dN:1;this.O=new e("cubic_in_out",[new d("hfov",b,c,m)],i);this.hb.gF(z)}this.O.cb(a);this.hb.dm(this.O.wb("hfov"));this.O.Je()&&(this.hb.Tg(this.Q.bd),this.hb.Mv(this.g.Ub()+
this.Q.qF.jba(),this.g.$b()),this.Cc=p)}};a.prototype.EE=S(p);return a});
define("bj",["require","fd","l","r"],function(a){var b=a("fd"),c=a("l"),e=a("r"),a=b.extend(c,function(a,b,e,k){c.call(this,a,b,e,k);this.m="not initialized";this.ua=0});a.prototype.tj=function(){return"ended"==this.m};a.prototype.Gk=function(a){this.tj()||("not initialized"==this.m&&this.uS(),"initialized"==this.m&&(this.Kl.get("ready")||this.Kl.mY())&&this.Gqa(),"started"==this.m&&this.J(a),1<=this.ua&&this.OA())};a.prototype.uS=function(){this.T7=this.Q.Oya;this.lA=0.25;this.mha=0.75;this.Foa=
0.25;this.r$=this.rla();this.YO=0.5*this.T7;this.Rra=this.T7-2*this.YO;this.Yt=1/(this.YO+this.Rra);this.iG=this.Yt/this.YO;this.Zo=0;this.Kl=this.g.Uf(this.Q.bd);this.xV=this.g.Uf(this.Q.Bj);this.Xw=this.Q.qF.xua();this.m="initialized"};a.prototype.rla=function(){var a=this.Q.qF.get("distance");return a?Math.min(0.99,a/this.Q.Bj.get("distanceToFloor")):0.75};a.prototype.Gqa=function(){this.g.Qda(!this.Q.Ob()&&e.browser()!=e.xi);this.Kl.uk();this.m="started"};a.prototype.J=function(a){this.Kl.get("ready")||
this.ua<this.Foa?this.ua>=1-0.5*this.Zo*this.Zo/this.iG?this.Zo=Math.sqrt(2*(1-this.ua)*this.iG):this.Zo<this.Yt&&(this.Zo=Math.min(this.Zo+this.iG*a,this.Yt)):this.Zo=Math.max(this.Zo-this.iG*a,0);this.ua=Math.min(Math.max(0,this.ua+this.Zo*a),1);this.Kl.get("ready")||(this.lA=Math.max(this.lA,this.ua));this.lsa(this.ua,Math.max(0,Math.min(1,(this.ua-this.lA)/(this.mha-this.lA))))};a.prototype.OA=function(){this.Kl.set("alpha",1);this.g.Qda(z);this.m="ended"};a.prototype.lsa=function(a,b){var c=
(a-1)*this.r$;this.Kl.set("translationX",c*this.Xw.x);this.Kl.set("translationY",c*this.Xw.y);this.Kl.set("translationZ",c*this.Xw.z);this.Kl.get("ready");c=a*this.r$;this.xV.set("translationX",c*this.Xw.x);this.xV.set("translationY",c*this.Xw.y);this.xV.set("translationZ",c*this.Xw.z);this.Kl.set("alpha",Math.max(0.01,Math.min(0.99,b)))};a.prototype.EE=function(){return this.ua<this.lA};return a});
define("gN",["require","fd","jb"],function(a){var b=a("fd"),c=a("jb"),a=b.extend(c,function(a,b,f,g,k){c.call(this,a,b,f,g);this.Iha=k});a.prototype.yr=function(){this.Iha.call(this.q)};return a});define("eI",["require","fd","l"],function(a){var b=a("fd"),c=a("l"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g)});a.prototype.tj=function(){var a=this.g.Ua(),b=a&&a.xy,a=a&&a.xx;return!!b&&!b.get("visible")&&!!a&&!a.get("visible")};return a});
define("E",["require","fd","l"],function(a){var b=a("fd"),c=a("l"),a=b.extend(c,function(a,b,f,g){c.call(this,a,b,f,g);this.NJ=r});a.prototype.tj=function(){this.NJ||(this.NJ=this.Q.bd&&this.g.Uf(this.Q.bd));return this.NJ&&this.NJ.get("ready")};a.prototype.EE=S(p);return a});
define("ll","require,bY,eL,fk,lt,iV,fP,fR,dX,bt,bM,ey,dA,o,fz,eO,kU,eq,bj,gN,eI,E,fd".split(","),function(a){var b=a("bY"),c=a("eL"),e=a("fk"),d=a("lt"),f=a("iV"),g=a("fP"),k=a("fR"),i=a("dX"),n=a("bt"),j=a("bM"),l=a("ey"),q=a("dA"),o=a("o"),t=a("fz"),s=a("eO"),u=a("kU"),v=a("eq"),w=a("bj"),x=a("gN"),y=a("eI"),F=a("E"),A=a("fd").extend(c,function(a,b,d){c.call(this);this.F=a;this.g=b;this.pb=d;this.hb=r;this.o3=this.wm=this.vC=this.Oo=m;this.Q=r;this.Ge=[]});A.prototype.clear=function(){this.IU(this.wm);
this.Q&&this.IU(this.Q.bd);this.vC=this.Oo=m;this.H=this.pb=this.g=this.F=this.Q=r};A.prototype.start=function(a,b){if(!this.Q&&a==this.wm||this.Q&&a==this.Q.bd)this.vC=this.Oo=m;else{this.Oo=a;this.vC=b;this.Ge.length==0&&this.CK()}};A.prototype.hide=function(){this.Oo=r;!this.Q&&this.wm&&this.CK()};A.prototype.tua=function(){return this.Q&&this.Q.bd};A.prototype.CK=function(){this.Q=new d(this.g,this.wm,this.Oo,this.vC);this.hb=new e(this.g,this.pb,this.Q);this.vC=this.Oo=m;this.Wb(g);switch(this.Q.mode){case d.w_:this.Nc(this.yD);
this.Wb(n);this.Nc(this.xD);this.Wb(q);this.Nc(this.Lu);break;case d.v_:this.Nc(this.TK);this.Wb(F);this.Wb(k);this.Wb(t);this.Nc(this.qy);this.Wb(i);this.Wb(y);this.Wb(j);this.Nc(this.SK);break;case d.JF:this.Nc(this.TK);this.Nc(this.yD);this.Wb(n);this.Nc(this.xD);this.Wb(q);this.Nc(this.Lu);this.Wb(F);this.Wb(k);this.Wb(t);this.Nc(this.qy);this.Wb(i);this.Wb(y);this.Wb(j);this.Nc(this.SK);break;case d.B0:this.Nc(this.TK);this.Nc(this.yD);this.Nc(this.xD);if(this.Q.Ob()){this.Wb(s);this.Nc(this.qy);
this.Wb(w);this.Wb(q);this.Nc(this.Lu)}else{this.Wb(v);this.Nc(this.qy);this.Wb(w);this.Wb(q);this.Nc(this.Lu);this.Wb(u);this.Wb(k);this.Wb(y)}this.Nc(this.SK);break;case d.im:this.Nc(this.TK);this.Wb(F);if(this.Q.Ob()){this.Nc(this.yD);this.Nc(this.xD);this.Wb(o);this.Nc(this.qy);this.Wb(f);this.Wb(q);this.Nc(this.Lu)}else{this.Nc(this.yD);this.Nc(this.xD);this.Wb(l);this.Nc(this.qy);this.Wb(f);this.Wb(q);this.Nc(this.Lu);this.Wb(k);this.Wb(y);this.Wb(j)}this.Nc(this.SK)}this.fa()};A.prototype.aW=
function(){this.wm=this.Q.bd;this.o3=this.Q.FZ;this.Q=this.hb=r;this.Oo===m?this.wm?this.Ara(this.wm,this.o3):this.Bra():this.CK()};A.prototype.Ep=function(a){for(;this.Ge.length;){var b=this.Ge[0];if(this.Oo!==m&&this.Oo!==this.wm&&b.EE()){this.IU(this.Q.bd);this.Ge=[];this.CK();break}else{b.Gk(a);this.fa();this.hb.Ep(a);if(b.tj()){this.Ge.shift();this.Ge.length==0&&this.aW()}else break}}};A.prototype.Zb=C();A.prototype.Wb=function(a){this.Ge.push(new a(this,this.hb,this.g,this.Q))};A.prototype.Nc=
function(a){this.Ge.push(new x(this,this.hb,this.g,this.Q,a))};A.prototype.IU=function(a){if(a)if(a=this.g.Uf(a)){this.g.remove(a);this.Lu()}};A.prototype.TK=function(){this.trigger(new b(A.ZN,{panorama:this.Q.bd}))};A.prototype.Lu=function(){this.trigger(new b(A.QN,{panorama:this.Q?this.Q.Bj:this.wm,nextPanorama:this.Q?this.Q.bd:r}))};A.prototype.yD=function(){this.trigger(new b(A.Gs,{panorama:this.Q.Bj}))};A.prototype.xD=function(){this.trigger(new b(A.Fs,{panorama:this.Q.Bj,nextPanorama:this.Q.bd}))};
A.prototype.SK=function(){this.trigger(new b(A.Hs,{panorama:this.Q.bd,camera:this.Q.FZ}))};A.prototype.qy=function(){this.trigger(new b(A.Is,{panorama:this.Q.bd,camera:this.Q.FZ}))};A.prototype.Ara=function(a,c){this.trigger(new b(A.zN,{panorama:a,camera:c}))};A.prototype.Bra=function(){this.trigger(new b(A.AN))};A.prototype.fa=function(){this.trigger(new b(A.Ja))};A.Ja="request frame";A.ZN="request load";A.QN="panorama removed";A.zN="all pending panoramas displayed";A.AN="all pending panoramas hidden";
A.Fs="panorama end";A.Is="panorama start";A.Hs="panorama show";A.Gs="panorama hide";return A});
define("jj",["require","fd","bY","eL"],function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=b.extend(e,function(a){e.call(this);this.g=a});d.prototype.clear=function(){this.end();this.g=r};d.prototype.$y=function(a){for(var b=this.EH(a),c=a.SL(),d=0;d<b;d++)this.g.Uf(this.DR(a,d)).set("alpha",d==c?1:0)};d.prototype.getTime=S(0);d.prototype.start=C();d.prototype.end=C();d.prototype.play=C();d.prototype.pause=C();d.prototype.gz=C();d.prototype.qz=C();d.prototype.VM=C();d.prototype.stop=C();d.prototype.Lv=
C();d.prototype.ks=C();d.prototype.bN=C();d.prototype.Zb=C();d.prototype.Og=C();d.prototype.EH=function(a){return a.get("frames").length};d.prototype.DR=function(a,b){return a.get("frames")[b]};d.prototype.fa=function(){this.trigger(new c(d.Ja))};d.prototype.Nl=function(a,b,e,i,n,j){this.trigger(new c(d.Ej,{time:a,duration:b,transitionPosition:e,transitionLength:i,steps:n,selectedStep:j}))};d.prototype.Ig=function(){this.trigger(new c(d.bc,{state:this.Og()}))};d.Ja="request frame";d.Kea="frame display";
d.Lea="frame hide";d.Ej="time change";d.bc="playback state change";return d});
define("be","require,jquery.mod,dm,fd,lc,gb,bY,jj,fh,ea,jk,bi,hW".split(","),function(a){a("jquery.mod");var b=a("dm"),c=a("fd"),e=a("lc"),d=a("gb");a("bY");var f=a("jj"),g=a("fh"),k=a("ea");a("jk");var i=a("bi"),n=a("hW"),j=c.extend(f,function(a){f.call(this,a);this.wH=r;this.oR=this.Gt=0;this.M=this.Wt=r;this.SA=m;this.lU=z;this.ba=360;this.maa=180;this.na=0.5;this.bk=0.2;this.Eo=0.45;this.D5=5E3;this.H5=1;this.BI=[[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.Dma=[0.05,0.1,0.05,0.1,0.4,0.1,0.05,0.1,0.05]});j.prototype.$y=function(a){f.prototype.$y.call(this,a);this.VC(a)};j.prototype.start=function(a){this.VC(a);this.fa()};j.prototype.end=function(){this.VC(r)};j.prototype.VC=function(a){if(this.M!=a){if(this.M){this.Ora();this.M=r;this.Sra()}if(this.M=a){this.jha();this.ba=a.get("hfov",360);this.maa=a.get("vfov",180);this.na=a.get("pitch",0);this.pU=this.tu=m;this.xma(a);this.ua=0.5}}};j.prototype.bN=function(){this.lU=z};j.prototype.Lv=
function(a){this.ua=a/j.Yz;this.fa();this.lU=p};j.prototype.ks=function(a){this.Lv(a)};j.prototype.Nl=function(){var a=this.EH(this.M),b=this.ua*(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.Nl.call(this,this.ua*j.Yz,j.Yz,this.ua*j.Yz,j.Yz,a,d)};j.prototype.Zb=function(a){if(this.M){var b=this.g.Ub(),c=this.g.$b(),d=this.g.Od(),e=0;if(this.tu!==m&&this.pU!==m&&this.d8!==m)var f=b-this.tu,j=c-this.pU,n=d-this.d8,e=Math.sqrt(f*f+j*j+n*n)*1E3/a;this.tu=
b;this.pU=c;this.d8=d;for(var f=this.EH(this.M),x=this.ua*(f-1),j=Math.max(0,Math.min(f-2,Math.floor(x))),n=j+1,x=1-(x-j),y=1-x,F=[],A=0;A<f;A++)F.push(0);F[n]=y;F[j]=y<1?1:0;for(A=0;A<f;A++)this.g.Uf(this.DR(this.M,A)).set("alpha",F[A]);this.Nl();if(this.wH&&(e<=this.H5||i.isPresenting())&&!this.lU){var A=Math.PI/180,e=180/Math.PI,F=this.g.Ba(),M=this.g.gb(),E=new k;E.Ip(-d*A);E.Bn(-c*A);E.Hp(-b*A);b=[];for(A=0;A<this.BI.length;A++){d=this.g.unproject(new g(this.BI[A][0]*F,this.BI[A][1]*M,0)).Hba();
d.apply(E);c=d.Ub()*e;d=d.$b()*e;b.push(Math.round((90-d)*this.oR/180)*this.Gt+Math.round((c+180)*this.Gt/360))}c=[];for(A=0;A<f;A++){d=this.wH[A];for(F=e=0;F<this.BI.length;F++)e=e+this.Dma[F]*d[b[F]];c.push(e)}A=c[j];b=c[n];j=x*c[j]+y*c[n];a=Math.min(1/f,a/this.D5);f=this.ua;n=Math.max.apply(Math,c);x=Math.min.apply(Math,c);j<this.bk&&j<n?f=b>j?f+a:f-a:j>this.Eo&&j>x&&(f=A<j?f-a:f+a);f=Math.min(1,Math.max(0,f));if(this.ua!=f){this.ua=f;this.fa()}}}};j.prototype.xma=function(a){var c=b(a.get("frames",
[])).map(function(a){return a.get("thumbnailUrl")});this.Wt=b(c).map(function(a){var b=r;if(a){b=new n(d.Jj);b.bind(e.S,this.O6,this);b.bind(e.ie,this.P6,this)}return b},this);b(this.Wt).each(function(a,b){a&&a.load(c[b])})};j.prototype.Sra=function(){this.l3();this.wH=r};j.prototype.ina=function(){this.Gt=150;this.Wt.map(function(a){if(a)this.Gt=Math.min(a.$c()*360/this.ba,this.Gt)},this);this.oR=Math.round(this.Gt/2);this.wH=this.Wt.map(function(a){return this.Ria(a,this.Gt,this.oR,this.ba,this.maa,
this.na)},this);this.l3()};j.prototype.Ria=function(a,b,c,d,e,f){var g=document.createElement("canvas");g.width=b;g.height=c;var i=g.getContext("2d");i.fillStyle="#000000";i.fillRect(0,0,b,c);if(a){a=a.qe();d=Math.round(b*d/360);i.drawImage(a,(b-d)*0.5,Math.round(c*(90-(f+e*0.5))/180),d,Math.round(c*e/180))}b=[];g=i.getImageData(0,0,g.width,g.height);for(c=i=0;i<g.height;i++)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};j.prototype.l3=function(){b(this.Wt).each(function(a){if(a){a.unbind(e.S,
this.O6,this);a.unbind(e.ie,this.P6,this);a.cancel()}},this);this.Wt=r};j.prototype.O6=function(){b(this.Wt).filter(function(a){return a&&!a.yp()}).length==0&&this.ina()};j.prototype.P6=C();j.prototype.jha=function(){this.M.bind(e.D("minimumLuminance"),this.Ko,this);this.M.bind(e.D("maximumLuminance"),this.Ko,this);this.M.bind(e.D("luminanceChangeTime"),this.Ko,this);this.M.bind(e.D("maxLuminanceChangeSpeed"),this.Ko,this);this.Ko()};j.prototype.Ora=function(){this.M.unbind(e.D("minimumLuminance"),
this.Ko,this);this.M.unbind(e.D("maximumLuminance"),this.Ko,this);this.M.unbind(e.D("luminanceChangeTime"),this.Ko,this);this.M.unbind(e.D("maxLuminanceChangeSpeed"),this.Ko,this)};j.prototype.Ko=function(){this.bk=this.M.get("minimumLuminance");this.Eo=this.M.get("maximumLuminance");if(this.bk==m&&this.Eo==m){this.bk=0.2;this.Eo=0.45}else this.bk==m?this.bk=Math.min(0.2,this.Eo):this.bk==m?this.Eo=Math.max(0.45,this.bk):this.bk=Math.min(this.bk,this.Eo);this.Eo=Math.min(1,Math.max(0,this.Eo));this.bk=
Math.min(1,Math.max(0,this.bk));this.D5=Math.max(100,this.M.get("luminanceChangeTime",5E3));this.H5=this.M.get("maxLuminanceChangeSpeed",1);this.fa()};j.Yz=1E3;return j});
define("kg",["require","fd","u","fr","jj"],function(a){var b=a("fd"),c=a("u"),e=a("fr"),d=a("jj"),a=b.extend(d,function(a){d.call(this,a);this.uH=this.vH=r;this.wg=this.hf=5E3;this.Zc=m;this.Kb=this.hf;this.Tj=1;this.M=r;this.Qt=z});a.prototype.start=function(a){this.M=a;this.Qt=z;this.bI=p;this.vH=c.watch(this.M,"frameDisplayTime",this.rW,this);this.uH=c.watch(this.M,"frameTransitionTime",this.rW,this);this.Tj=this.EH(this.M);this.Zc=this.M.SL()*(this.hf+this.wg);this.rW(p);this.Nl();this.fa();this.Ig()};
a.prototype.rW=function(a){var b=Math.max(100,this.M.get("frameDisplayTime",5E3)),c=Math.max(100,this.M.get("frameTransitionTime",5E3));if(this.hf!=b||this.wg!=c||a){var a=this.dx(),d=this.wka();this.yR();this.hf=b;this.wg=c;1<this.Tj?(this.Zc=a*(this.hf+this.wg)+d*this.hf+d*this.wg,this.Kb=this.Tj*(this.hf+this.wg)):(this.Zc=d*this.hf,this.Kb=this.hf)}};a.prototype.dx=function(){return 1<this.Tj?Math.floor(this.Zc/(this.hf+this.wg)):0};a.prototype.xka=function(){return 1<this.Tj?(this.dx()+1)%this.Tj:
0};a.prototype.wka=function(){return 1<this.Tj?Math.max(0,Math.min(1,this.Zc-this.dx()*(this.hf+this.wg))):this.Zc/this.hf};a.prototype.yR=function(){return 1<this.Tj?Math.max(0,Math.min(1,(this.Zc-(this.dx()*(this.hf+this.wg)+this.hf))/this.wg)):0};a.prototype.Xqa=function(a){var b=Math.floor(a/this.wg);return b*(this.hf+this.wg)+this.hf+(a-b*this.wg)};a.prototype.j$=function(a){var b=Math.floor(a/(this.hf+this.wg)),a=Math.max(0,a-b*(this.hf+this.wg)-this.hf);return b*this.wg+a};a.prototype.play=
function(){this.Qt&&(this.Qt=z,this.bI&&this.fa(),this.Ig())};a.prototype.pause=function(){this.Qt=p;this.Ig()};a.prototype.gz=function(){this.pause()};a.prototype.qz=function(){this.play()};a.prototype.end=function(){this.bI=z;this.M=r;this.vH&&(this.vH.unwatch(),this.vH=r);this.uH&&(this.uH.unwatch(),this.uH=r);this.Ig()};a.prototype.Lv=function(a){this.Zc=a;this.fa()};a.prototype.ks=function(a){this.Zc=this.Xqa(a);this.fa();this.pause()};a.prototype.Zb=function(a){if(this.bI){this.Qt||(this.Zc+=
a);this.Zc%=this.Kb;for(var a=this.dx(),b=this.xka(),c=this.yR(),d=b>a?c:1,c=b>a?1:1-c,e=0;e<this.Tj;e++){var j;j=e==a?c:e==b?d:0;var l=this.g.Uf(this.DR(this.M,e));l.get("alpha")!=j&&(0<j&&1>j&&l.uk(),l.set("alpha",j))}this.Nl();this.Qt||this.fa()}};a.prototype.Og=function(){return this.bI?this.Qt?e.yc:e.R:e.K};a.prototype.Ig=function(){d.prototype.Ig.call(this,this.Og())};a.prototype.Nl=function(){var a=this.Zc,b=this.Kb,c=this.j$(this.Zc),e=this.j$(this.Kb),n=this.Tj+1,j=0===this.yR()?this.dx():
m;d.prototype.Nl.call(this,a,b,c,e,n,j)};return a});define("bv",["require","fd","jj"],function(a){var b=a("fd"),c=a("jj");return b.extend(c,function(a){c.call(this,a)})});
define("jr",["require","fd","lc","fr","jj"],function(a){var b=a("fd"),c=a("lc"),e=a("fr"),d=a("jj"),a=b.extend(d,function(a){d.call(this,a);this.rd=z});a.prototype.$y=C();a.prototype.start=function(a){this.end();this.M=a;this.M.set("mute",this.rd);this.M.get("autoplay")&&this.M.set("state",e.R);this.Tn()};a.prototype.getTime=function(){return this.M?this.M.get("currentTime"):0};a.prototype.Og=function(){return this.M?this.M.get("state"):e.K};a.prototype.play=function(){this.M&&this.M.set("state",
e.R)};a.prototype.pause=function(){this.M&&this.M.set("state",e.yc)};a.prototype.VM=function(){this.M&&this.M.set("state",e.yc)};a.prototype.stop=function(){this.M&&this.M.set("state",e.K)};a.prototype.end=function(){this.M&&(this.Vo(),this.M=r)};a.prototype.Lv=function(a){this.M&&this.M.set("state",e.R);this.M&&this.M.set("currentTime",a)};a.prototype.Id=function(a){this.rd=a;this.M&&this.M.set("mute",this.rd)};a.prototype.Tn=function(){this.M.bind(c.D("currentTime"),this.gd,this,p);this.M.bind(c.D("duration"),
this.Zi,this,p);this.M.bind(c.D("state"),this.ih,this,p);this.M.get("state")!=e.K&&this.Ig()};a.prototype.Vo=function(){this.M.unbind(c.D("currentTime"),this.gd,this,p);this.M.unbind(c.D("duration"),this.Zi,this,p);this.M.unbind(c.D("state"),this.ih,this,p)};a.prototype.ih=function(){this.Ig()};a.prototype.gd=function(){this.Nl()};a.prototype.Zi=function(){this.Nl()};a.prototype.Nl=function(){this.M&&d.prototype.Nl.call(this,this.M.get("currentTime"),this.M.get("duration"))};return a});
define("t","require,fd,fr,bY,eL,dT,jj,be,kg,bv,jr".split(","),function(a){var b=a("fd");a("fr");var c=a("bY"),e=a("eL"),d=a("dT"),f=a("jj"),g=a("be"),k=a("kg"),i=a("bv"),n=a("jr"),j=b.extend(e,function(a){e.call(this);this.g=a;this.YS=this.XG(k);this.bS=this.XG(g);this.iL=this.XG(n);this.BV=this.XG(i);this.kc=r});j.prototype.clear=function(){this.OG(this.YS);this.YS=r;this.OG(this.bS);this.bS=r;this.OG(this.iL);this.iL=r;this.OG(this.BV);this.g=this.kc=this.BV=r};j.prototype.XG=function(a){a=new a(this.g);
a.bind(f.Ja,this.Wc,this,p);a.bind(f.Ej,this.lr,this,p);a.bind(f.bc,this.oe,this,p);return a};j.prototype.OG=function(a){a.unbind(f.Ja,this.Wc,this);a.unbind(f.Ej,this.lr,this);a.unbind(f.bc,this.oe,this);a.clear()};j.prototype.IS=function(a,b){return d.ob(b,a)};j.prototype.g4=function(a){return this.IS(a,"HDRPanorama")?this.bS:this.IS(a,"LivePanorama")?this.YS:this.IS(a,"VideoPanorama")?this.iL:this.BV};j.prototype.$y=function(a){(this.kc=this.g4(a))&&this.kc.$y(a)};j.prototype.start=function(a){this.Wc();
(this.kc=this.g4(a))&&this.kc.start(a)};j.prototype.Og=function(){if(this.kc)return this.kc.Og()};j.prototype.getTime=function(){return this.kc?this.kc.getTime():0};j.prototype.play=function(){this.kc&&this.kc.play()};j.prototype.pause=function(){this.kc&&this.kc.pause()};j.prototype.gz=function(){this.kc&&this.kc.gz()};j.prototype.qz=function(){this.kc&&this.kc.qz()};j.prototype.VM=function(){this.kc&&this.kc.VM()};j.prototype.stop=function(){this.kc&&this.kc.stop();this.trigger(new c(j.Ej,{duration:0,
time:0,steps:m,selectedStep:m}))};j.prototype.end=function(){if(this.kc){this.kc.end();this.kc=r}};j.prototype.Lv=function(a){this.kc&&this.kc.Lv(a)};j.prototype.ks=function(a){this.kc&&this.kc.ks(a)};j.prototype.bN=function(){this.kc&&this.kc.bN()};j.prototype.Zb=function(a){this.kc&&this.kc.Zb(a)};j.prototype.Id=function(a){this.iL.Id(a)};j.prototype.Wc=function(){this.trigger(new c(j.Ja))};j.prototype.lr=function(a){this.trigger(new c(j.Ej,a.data))};j.prototype.oe=function(a){this.trigger(new c(j.bc,
a.data))};j.Ja="request frame";j.Kea="frame display";j.Lea="frame hide";j.Ej="time change";j.bc="playback state change";return j});
define("js",["require","fd","lc","eL","iC"],function(a){var b=a("fd"),c=a("lc"),e=a("eL"),d=a("iC"),a=b.extend(e,function(a){e.call(this);this.g=a;this.Ue=this.M=r});a.prototype.start=function(a){this.M=a;this.Ue=this.g.Uf(this.M);this.Ue.bind(c.S,this.Lf,this,p);this.Ue.bind(c.sc,this.No,this,p);this.Ue.get("ready")?this.trigger(c.Db,{panorama:this.M}):this.Ue.bind(c.Db,this.YI,this,p);this.Ue.set("loadingActive",p)};a.prototype.stop=function(){this.M=r;this.Ue&&(this.Ue.unbind(c.Db,this.YI,this),
this.Ue.unbind(c.S,this.Lf,this),this.Ue.unbind(c.sc,this.No,this),this.Ue.set("loadingActive",z),this.Ue=r,this.trigger(c.je))};a.prototype.clear=function(){this.stop()};a.prototype.YI=function(){this.Ue.unbind(c.Db,this.YI,this);this.trigger(c.Db,{panorama:this.M})};a.prototype.Lf=function(){this.Ue.unbind(c.Db,this.YI,this);this.Ue.unbind(c.S,this.Lf,this);this.Ue.unbind(c.sc,this.No,this);this.Ue=r;this.trigger(c.S,{panorama:this.M});this.M=r;this.trigger(c.je)};a.prototype.No=function(a){this.trigger(new d(c.sc,
a.zh))};return a});
define("hw","require,fd,lc,bY,eL,I".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("I"),g=b.extend(d,function(a){d.call(this);this.g=a;this.jl=this.M=this.If=r;this.na=this.$=0;this.ba=Math.PI*0.5});g.prototype.clear=function(){this.stop();this.w8();this.If=this.g=r};g.prototype.pZ=function(a){if(this.If!=a){this.w8();this.QG();this.If=a;this.A1();this.wga()}};g.prototype.wga=function(){this.If&&this.If.bind(c.D("map"),this.Q6,this,z)};g.prototype.w8=function(){this.If&&this.If.unbind(c.D("map"),
this.Q6,this,z)};g.prototype.stop=function(){this.QG();this.M=r};g.prototype.Zb=function(){this.$=this.g.Ub();this.na=this.g.$b();this.ba=this.g.He();this.If&&this.jl&&this.If.zj(this.jl,this.$,this.na,this.ba)};g.prototype.Q6=function(){if(this.M){this.QG();(this.jl=this.R8(this.M,this.If.get("map",r),z))&&this.F9()}};g.prototype.display=function(a){if(this.M!=a){this.QG();this.M=a;this.A1()}};g.prototype.hide=function(a){this.M==a&&this.stop()};g.prototype.QG=function(){if(this.jl){this.Cla();this.jl=
r}};g.prototype.A1=function(){if(this.If&&this.M)(this.jl=this.R8(this.M,this.If.get("map",r),p))&&this.F9()};g.prototype.R8=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]:r};g.prototype.F9=function(){this.If.hta(this.jl);this.If.bind(f.Vg,this.C8,this,p);this.If.zj(this.jl,this.$,this.na,this.ba)};g.prototype.Cla=function(){if(this.If){this.If.Nwa(this.jl);this.If.unbind(f.Vg,this.C8,this)}};g.prototype.C8=function(a){this.trigger(new e(g.Vg,
{yawDelta:a.data.yawDelta}))};g.Vg="request yaw change";return g});
define("er",["require","fd","bY","eL","dN"],function(a){var b=a("fd"),c=a("bY"),e=a("eL"),d=a("dN"),f=b.extend(e,function(a){e.call(this);this.g=a;this.g.bind(d.YN,this.k7,this,p)});f.prototype.clear=function(){this.g.unbind(d.YN,this.k7,this,p);this.g=r};f.prototype.Ma=function(){this.g.Ma()};f.prototype.k7=function(a){a=a.data.frameTime;this.trigger(new c(f.Nk,{frameTime:a}));this.trigger(new c(f.Ok,{frameTime:a}))};f.Nk="frameStart";f.Ok="positionSet";return f});
define("gs",["require","r","im"],function(a){function b(){this.ea=this.W=0;this.ba=90;this.Xh="landscape";this.MT=z;this.lB=c.Wa()}var c=a("r"),e=a("im");b.prototype.Oda=function(a){this.ba=this.dba(a)};b.prototype.dba=function(a){return this.lB&&"portrait"==this.Xh?e.av(a,this.ea,this.W):a};b.prototype.Hua=function(a){return this.lB&&"portrait"==this.Xh?e.Bk(a,this.W,this.ea):a};b.prototype.dm=function(a){return this.ba=this.lB&&this.MT?e.av(a,this.ea,this.W):a};b.prototype.yca=function(){return this.lB&&
this.MT};b.prototype.qp=function(){return this.lB&&"portrait"==this.Xh};b.prototype.He=R("ba");b.prototype.AL=function(a){return e.av(a,this.ea,this.W)};b.prototype.setSize=function(a,b){this.W=a;this.ea=b;var c=this.Tka();this.MT=this.Xh!=c;this.Xh=c};b.prototype.Tka=function(){return 0===this.W||0===this.ea?"landscape":this.W<this.ea?"portrait":"landscape"};return b});
define("kv",["require","fd","fT","bY","eL"],function(a){var b=a("fd"),c=a("fT"),e=a("bY"),d=a("eL"),f=b.extend(d,function(a){d.call(this);this.g=a;this.V=z;this.zo=this.zo.bind(this);this.Qb=this.g.Qb});f.prototype.clear=function(){this.Qb=this.g=r};f.prototype.md=function(a){this.V!=a&&(this.V&&document.removeEventListener("keyup",this.zo),(this.V=a)&&document.addEventListener("keyup",this.zo))};f.prototype.zo=function(a){"translate"==this.Qb.get("arrowKeysAction")&&(a.which==c.DF&&!a.shiftKey?this.trigger(new e(f.ON)):
a.which==c.aG&&!a.shiftKey&&this.trigger(new e(f.PN)))};f.PN="moveForward";f.ON="moveBackward";return f});
define("gC","require,dm,fd,lc,bY,eL,kv".split(","),function(a){a("dm");var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("kv"),a=b.extend(d,function(a){d.call(this);this.g=a;this.Vi=new f(a);this.Vi.bind(f.PN,this.F6,this,p);this.Vi.bind(f.ON,this.E6,this,p)});a.prototype.clear=function(){this.Vi.unbind(f.PN,this.F6,this,p);this.Vi.unbind(f.ON,this.E6,this,p);this.Vi.clear();this.Vi=r};a.prototype.ls=function(a){this.Vi.md(a)};a.prototype.Tg=P("M");a.prototype.end=function(){this.M=r};a.prototype.F6=
function(a){this.D$(a);(a=this.Q8(this.g.Ub(),this.u4()))&&a.trigger(c.Ci)};a.prototype.E6=function(a){this.D$(a);(a=this.Q8(this.g.Ub()-180,this.u4()))&&a.trigger(c.Ci)};a.prototype.D$=function(a){this.g.Ua().trigger(new e(c.HF,{$da:a}))};a.prototype.u4=function(){return this.g.Qb.get("keyboardTranslateSelectionAngle")};a.prototype.Q8=function(a,b){var c,d;if(!this.M)return r;c!==m||(c=-90);d!==m||(d=360);var e=a-b*0.5,f=a+b*0.5,g=Math.max(-90,c-d*0.5),t=Math.max(90,c+d*0.5);d=this.M.get("adjacentPanoramas",
[]).slice();d=d.filter(function(b){if(!b.get("enabled"))return z;b=this.XA(b);if(!b)return z;var c;c=b.ja;for(var d=a-180,i=a+180;c<d;)c=c+(i-d);for(;c>i;)c=c-(i-d);b=b.pitch;return e<=c&&c<=f&&g<=b&&b<=t}.bind(this));if(d.length==0)return r;d.sort(function(b,d){var e=this.XA(b),f=this.XA(d);return(a-e.ja)*(a-e.ja)+(c-e.pitch)*(c-e.pitch)-((a-f.ja)*(a-f.ja)+(c-f.pitch)*(c-f.pitch))}.bind(this));return d[0]};a.prototype.XA=function(a){var b=a.get("yaw"),a=a.get("distance");if(b===m||a===m)return r;
var c=this.M.get("distanceToFloor");return{ja:b,pitch:-90+Math.atan2(a,c)*g}};var g=180/Math.PI;return a});
define("iP","require,fd,lc,bY,eL,cx,bg,ll,t,js,hw,er,gs,gC,cT".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("cx"),g=a("bg"),k=a("ll"),i=a("t"),n=a("js"),j=a("hw"),l=a("er"),q=a("gs"),o=a("gC"),t=a("cT"),s=b.extend(d,function(a,b){d.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.pb=new q;this.de=new l(this.g);this.be=new n(this.g);this.Ta=new k(this.F,this.g,this.pb);this.la=new g(this.g,this.pb);this.Bd=new i(this.g);this.Fo=new j(this.g);this.jc=new f(this.g);
this.RK=new o(this.g);this.de.bind(l.Nk,this.jr,this,p);this.de.bind(l.Ok,this.kr,this,p);this.be.bind(c.Db,this.M6,this,p);this.be.bind(c.je,this.UB,this,p);this.be.bind(c.sc,this.Io,this,p);this.Ta.bind(k.Ja,this.Wc,this,p);this.Ta.bind(k.ZN,this.N6,this,p);this.Ta.bind(k.QN,this.W6,this,p);this.Ta.bind(k.zN,this.d6,this,p);this.Ta.bind(k.AN,this.e6,this,p);this.Ta.bind(k.Is,this.bC,this,p);this.Ta.bind(k.Gs,this.ir,this,p);this.Ta.bind(k.Hs,this.Lo,this,p);this.Ta.bind(k.Fs,this.aC,this,p);this.la.bind(g.Ja,
this.Wc,this,p);this.la.bind(g.Ug,this.pl,this);this.la.bind(g.Mk,this.d7,this);this.la.bind(g.bc,this.oe,this,p);this.la.bind(g.ve,this.ul,this,p);this.la.bind(g.ue,this.tl,this,p);this.Bd.bind(i.Ja,this.Wc,this,p);this.Bd.bind(i.Ej,this.lr,this,p);this.Bd.bind(i.bc,this.oe,this,p);this.Fo.bind(j.Vg,this.S6,this,p)});s.prototype.clear=function(){this.be.clear();this.de.clear();this.la.clear();this.Ta.clear();this.Bd.clear();this.Fo.clear();this.jc.clear();this.be.unbind(c.Db,this.M6,this);this.be.unbind(c.je,
this.UB,this);this.be.unbind(c.sc,this.Io,this);this.de.unbind(l.Nk,this.jr,this);this.de.unbind(l.Ok,this.kr,this);this.Ta.unbind(k.Ja,this.Wc,this);this.Ta.unbind(k.ZN,this.N6,this);this.Ta.unbind(k.QN,this.W6,this);this.Ta.unbind(k.zN,this.d6,this);this.Ta.unbind(k.AN,this.e6,this);this.Ta.unbind(k.Is,this.bC,this);this.Ta.unbind(k.Gs,this.ir,this);this.Ta.unbind(k.Hs,this.Lo,this);this.Ta.unbind(k.Fs,this.aC,this);this.la.unbind(g.Nea,this.Wc,this);this.la.unbind(g.Ug,this.pl,this);this.la.unbind(g.Mk,
this.d7,this);this.la.unbind(g.bc,this.oe,this,p);this.la.unbind(g.ve,this.ul,this);this.la.unbind(g.ue,this.tl,this);this.Bd.unbind(i.Ja,this.Wc,this);this.Bd.unbind(i.Ej,this.lr,this);this.Bd.unbind(i.bc,this.oe,this);this.Fo.unbind(j.Vg,this.S6,this);this.F=this.g=this.RK=this.jc=this.Fo=this.Bd=this.Ta=this.la=this.de=this.be=r};s.prototype.pZ=function(a){this.Fo.pZ(a)};s.prototype.Tg=function(a,b,c){this.g.set("visible",p);this.Bd.VM();a.set("currentTime",c);this.Ta.start(a,b)};s.prototype.Vy=
function(){return this.be.M||this.Ta.tua()||this.Ta.wm};s.prototype.Gv=function(){this.be.stop();this.Bd.end();this.la.end();this.Ta.hide();this.Fo.stop();this.jc.end();this.RK.end()};s.prototype.qz=function(){this.la.resume();this.Bd.qz()};s.prototype.gz=function(){this.la.pause();this.Bd.gz()};s.prototype.play=function(){this.la.play();this.jc.play();this.Bd.play()};s.prototype.pause=function(){this.la.pause();this.jc.pause();this.Bd.pause()};s.prototype.stop=function(){this.la.stop();this.jc.stop();
this.Bd.stop()};s.prototype.ls=function(a){this.la.ls(a);this.RK.ls(a)};s.prototype.getTime=function(){return this.Bd.getTime()};s.prototype.moveTo=function(a,b,c,d,e){this.la.moveTo(a,b,c,d,e)};s.prototype.Ub=function(){return this.g?this.g.Ub():m};s.prototype.$b=function(){return this.g?this.g.$b():m};s.prototype.Od=function(){return this.g?this.g.Od():m};s.prototype.He=function(){return this.g?this.pb.Hua(this.g.He()):m};s.prototype.KX=function(){return this.g?this.g.KX():m};s.prototype.LX=function(){return this.g?
this.g.LX():m};s.prototype.oe=function(){var a=this.Bd.Og()||this.la.Og();this.trigger(new e(s.bc,{state:a}))};s.prototype.Sg=function(a){this.la.Sg(a)};s.prototype.bF=function(a){this.la.bF(a)};s.prototype.ns=function(a){this.la.ns(a)};s.prototype.cF=function(a){this.la.cF(a)};s.prototype.Id=function(a){this.Bd.Id(a)};s.prototype.Ov=function(a){this.la.Ov(a)};s.prototype.Vua=function(a,b){var c=t.get(a,b,this.g.Ub(),this.g.$b(),this.g.Od(),this.g.He(),this.g.Ba(),this.g.gb());return c?{x:c.x,y:c.y}:
r};s.prototype.Mua=function(a,b){var c=t.Yya(a,b,this.g);return c?{yaw:c.ja,pitch:c.pitch}:r};s.prototype.aZ=function(){this.g.aZ()};s.prototype.N6=function(a){this.be.start(a.data.panorama)};s.prototype.Io=function(a){this.g.KM(p);this.trigger(new e(s.jm,{percent:a.zh}))};s.prototype.M6=function(a){this.Bd.end();this.RK.Tg(a.data.panorama)};s.prototype.UB=function(){this.g.KM(z);this.trigger(new e(s.Cs))};s.prototype.Wc=function(){this.de.Ma()};s.prototype.jr=function(a){a=a.data.frameTime;this.pb.setSize(this.g.Ba(),
this.g.gb());this.Ta.Ep(a);this.la.Ep(a)};s.prototype.kr=function(a){a=a.data.frameTime;this.Ta.Zb(a);this.la.Zb(a);this.Bd.Zb(a);this.Fo.Zb(a);this.jc.Zb(a)};s.prototype.bC=function(a){this.Fo.display(a.data.panorama);this.Bd.$y(a.data.panorama);this.trigger(new e(s.Is,{panorama:a.data.panorama}))};s.prototype.W6=function(a){this.Fo.hide(a.data.panorama)};s.prototype.d6=function(a){this.Bd.start(a.data.panorama);this.jc.start(a.data.panorama)};s.prototype.e6=function(){this.Bd.end();this.g.set("visible",
z)};s.prototype.aC=function(a){this.la.end();this.jc.end(a.data.nextPanorama);this.trigger(new e(s.Fs,{panorama:a.data.panorama}))};s.prototype.Lo=function(a){this.la.start(a.data.panorama,a.data.camera);this.trigger(new e(s.Hs,{panorama:a.data.panorama}))};s.prototype.ir=function(a){this.trigger(new e(s.Gs,{panorama:a.data.panorama}))};s.prototype.S6=function(a){this.la.vZ(a.data.yawDelta,0)};s.prototype.pl=function(a){this.trigger(new e(s.Ug,a.data))};s.prototype.d7=function(a){this.trigger(new e(s.Mk,
a.data))};s.prototype.ul=function(){this.Bd.bN();this.trigger(new e(s.ve))};s.prototype.tl=function(){this.trigger(new e(s.ue))};s.prototype.Gda=function(a){this.Bd.Lv(a)};s.prototype.ks=function(a){this.Bd.ks(a)};s.prototype.lr=function(a){this.trigger(new e(s.Ej,a.data))};s.jm="loadingProgress";s.Cs="loadingEnd";s.Ug="movementChange";s.Mk="positionChange";s.Is="panoramaStart";s.Fs="panoramaEnd";s.Hs="panoramaShow";s.Gs="panoramaHide";s.bc="playbackStateChange";s.ve="userInteractionStart";s.ue="userInteractionEnd";
s.Ej="timeChange";return s});
define("kQ","require,dm,jquery.mod,fd,iU,lc,bY,fr,cd,dT,jK,ct,di,fB,iP,dp,dN,fQ,gI,bi,dk,fj".split(","),function(a){a("dm");a("jquery.mod");var b=a("fd");a("iU");var c=a("lc"),e=a("bY"),d=a("fr"),f=a("cd"),g=a("dT"),k=a("jK"),i=a("ct"),n=a("di"),j=a("fB"),l=a("iP"),q=a("dp"),o=a("dN"),t=a("fQ"),s=a("gI"),u=a("bi"),v=a("dk"),w=a("fj"),x=b.extend(n,function(){n.call(this,"panorama");n.prototype.set.call(this,"zoomEnabled",p);n.prototype.set.call(this,"surfaceSelectionEnabled",z);n.prototype.set.call(this,
"surfaceSelectionHorizontalAngle",90);n.prototype.set.call(this,"surfaceSelectionVerticalAngle",180);n.prototype.set.call(this,"adjacentPanoramaPositionsEnabled",z);n.prototype.set.call(this,"fxaaEnabled",z);n.prototype.set.call(this,"aaEnabled",z);this.MV=this.mS=this.Mq=this.tI=this.IP=this.or=this.rh=this.jP=z;this.TR=p;this.wt=this.ox=this.VG=z;this.xH=this.qR=this.Zc=this.Kb=0;this.dU=this.fU=m;this.oT=p;this.Pf=d.K;this.q=this.g=r;this.Q5={};for(var a in x.Sn)this.Q5[a]=this.Uia(a);this.yG=
new k(this,"buttonToggleGyroscope",v.Eh);this.yG.bind(c.rg,function(){this.set("gyroscopeEnabled",p)},this);this.yG.bind(c.Dh,function(){this.set("gyroscopeEnabled",z)},this);this.yG.set("pressed",this.get("gyroscopeEnabled")&&t.available);this.pha=new k(this,"buttonCardboardView",v.Tc);this.pha.bind(c.T,function(){this.set("viewMode",x.fq)},this,p);this.Eha=new k(this,"buttonVRView",v.Tc);this.Eha.bind(c.T,function(){this.set("viewMode",x.fq)},this,p);u.bind(c.aa,function(){this.C$("viewMode");this.trigger(x.t_)},
this,p);this.zG=new k(this,"buttonToggleHotspots",v.Eh);this.zG.bind(c.rg,function(){this.set("hotspotsEnabled",p)},this);this.zG.bind(c.Dh,function(){this.set("hotspotsEnabled",z)},this);this.zG.set("pressed",this.get("hotspotsEnabled"));this.BG=new k(this,"buttonToggleSurfaceSelection",v.Eh);this.BG.bind(c.rg,function(){this.set("surfaceSelectionEnabled",p)},this);this.BG.bind(c.Dh,function(){this.set("surfaceSelectionEnabled",z)},this);this.BG.set("pressed",this.get("surfaceSelectionEnabled"));
this.Cha=new k(this,"buttonScreenshot",v.Tc);this.Cha.bind(c.T,this.L8,this,p);this.qd=b.An(this.qf,this);this.set("arrowKeysAction","rotate");this.set("doubleClickAction","inherit");this.set("hotspotsEnabled",p);this.set("preloadEnabled",p);this.set("keyboardTranslateSelectionAngle",90)});x.m_="cameraPositionChange";x.ve="userInteractionStart";x.ue="userInteractionEnd";x.jm="loadingProgress";x.r_="preloadMediaShow";x.t_="viewModeChange";g.A("PanoramaPlayer",x).B("Object").L({aaEnabled:"bool",actualHFOV:"number",
actualVFOV:"number",arrowKeysAction:"enum[rotate, translate, none]",buttonCardboardView:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveLeft:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveRight:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMoveUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayDown:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayLeft:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayRight:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlayUp:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleGyroscope:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleHotspots:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleSurfaceSelection:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonVRView:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonZoomIn:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonZoomOut:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonScreenshot:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",camera:"PanoramaCamera",currentTime:"number",displayPlaybackBar:"bool",doubleClickAction:"enum[toggle_fullscreen, translate, inherit]",fxaaEnabled:"bool",gyroscopeEnabled:"bool",gyroscopeVerticalDraggingEnabled:"bool",hdrPanoramaDisplayPlaybackBar:"bool",hdrPanoramaDisplayPlaybackBarSteps:"bool",hfov:"number",hotspotsEnabled:"bool",
keyboardTranslateSelectionAngle:"number",livePanoramaDisplayPlaybackBar:"bool",livePanoramaDisplayPlaybackBarSteps:"bool",mapPlayer:"MapPlayer",mode:"enum[fast, quality]",mouseControlMode:"enum[drag_acceleration, drag_rotation]",panorama:"Panorama",pitch:"number",preloadEnabled:"bool",roll:"number",startTime:"number",state:"enum[stopped, playing, paused]",adjacentPanoramaPositionsEnabled:"bool",surfaceSelectionHorizontalAngle:"number",surfaceSelectionVerticalAngle:"number",surfaceSelectionEnabled:"bool",
touchControlMode:"enum[drag_acceleration, drag_rotation]",video:"Video360",viewMode:"enum[standard, cardboard, vr]",videoPanoramaDisplayPlaybackBar:"bool",viewerArea:"ViewerArea",yaw:"number",zoomEnabled:"bool"}).Vb([c.SF,x.m_,x.jm,x.ve,x.ue,x.r_,x.t_,c.zc,i.yf,i.Bh]).Rg({moveLeft:function(){this.vb(q.cw)},moveRight:function(){this.vb(q.dw)},moveUp:function(){this.vb(q.ew)},moveDown:function(){this.vb(q.bw)},playLeft:function(){this.vb([q.cw,q.R])},playRight:function(){this.vb([q.dw,q.R])},playUp:function(){this.vb([q.ew,
q.R])},playDown:function(){this.vb([q.bw,q.R])},play:function(){this.lh()},pause:function(){this.xl()},stop:function(){this.ku()},seek:function(a){this.SC(a)},setFramePlaybackPosition:function(a){this.Upa(a)},setFrameTransitionPosition:function(a){this.Vpa(a)},restart:function(){this.ju()},zoomIn:function(){this.vb(q.Qn)},zoomOut:function(){this.vb(q.Rn)},resumeCamera:function(){this.epa()},pauseCamera:function(){this.coa()},moveTo:function(a,b,c,d){this.P5(a,b,c,d,z)},setPosition:function(a,b,c,
d){this.P5(a,b,c,d,p)},getScreenPosition:function(a,b){return this.hla(a,b)},getPanoramaPosition:function(a,b){return this.Uka(a,b)},saveScreenshot:function(){return this.L8()}});x.prototype.get=function(a,b){switch(a){case "currentTime":return this.q&&this.q.getTime()||0;case "viewMode":return u.isPresenting()?x.fq:x.WO;case "video":a="panorama";break;case "rendererPanorama":return this.q&&this.q.Vy()}if(!b)switch(a){case "mouseControlMode":b=f.H_;break;case "touchControlMode":b=f.A0}return n.prototype.get.call(this,
a,b)};x.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "application":this.jP=p;this.qd();break;case "startTime":this.or=p;this.qd();break;case "video":case "panorama":a="panorama";this.or=p;this.qd();break;case "camera":this.IP=p;this.qd();break;case "viewerArea":this.rh=p;this.qd();break;case "displayPlaybackBar":case "hdrPanoramaDisplayPlaybackBarSteps":case "livePanoramaDisplayPlaybackBarSteps":case "buttonPlay":case "buttonPlayPause":this.wt=p;this.qd();break;case "mapPlayer":this.tI=
p;this.qd();break;case "gyroscopeEnabled":this.Mq=p;this.qd();break;case "gyroscopeVerticalDraggingEnabled":this.TR=p;this.qd();break;case "viewMode":if(b=="vr")b=x.fq;b==x.fq&&!u.isPresenting()?u.uh():b!=x.fq&&u.isPresenting()&&u.Wd();b=u.isPresenting()?x.fq:x.WO;break;case "hotspotsEnabled":this.mS=p;this.qd();break;case "mouseControlMode":case "touchControlMode":this.VG=p;this.qd();break;case "surfaceSelectionEnabled":o.dea()||(b=z);this.MV=p;this.qd()}n.prototype.set.call(this,a,b)}};x.prototype.fm=
function(a){this.ox=a;this.q&&this.q.ls(this.ox)};x.prototype.Kaa=function(){return this.get("doubleClickAction")!="inherit"};x.prototype.AP=function(a){n.prototype.AP.call(this,a);a.bind(c.RF,this.qaa,this,p)};x.prototype.jW=function(a){n.prototype.jW.call(this,a);a.unbind(c.RF,this.qaa,this,p)};x.prototype.qaa=function(){switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.get("application").dg;a&&a.available()&&a.toggle()}};x.prototype.Uia=function(a){var b=x.Sn[a],a=new k(this,
a,v.Tc);a.bind(c.xb,function(){this.vb(b.movement)},this);b.stopOnRelease&&a.bind(c.cc,function(){this.vb(q.je)},this);return a};x.prototype.qf=function(){if(this.rh||this.jP){this.rh=this.jP=z;this.VG=this.Mq=this.tI=p;this.vt();this.get("viewerArea")&&this.get("application")&&this.tt();this.pK(this.get("viewerArea"))}var a=z;if(this.g){if(this.tI){this.tI=z;this.q.pZ(this.get("mapPlayer"))}if(this.VG){this.VG=z;this.q.ns(this.get("mouseControlMode"));this.q.Ov(this.get("touchControlMode"))}if(this.or||
this.IP){this.xH=this.qR=this.Kb=this.Zc=0;this.dU=this.fU=m;a=p;this.IP=this.or=z;if(this.get("panorama")){this.QJ();this.q.Tg(this.get("panorama"),this.get("camera",new j),this.get("startTime"))}else{this.q.Gv();this.oT=p;this.Pf=d.K;this.Yb(d.K)}}if(this.TR){this.TR=z;this.q.cF(this.get("gyroscopeVerticalDraggingEnabled",p))}if(this.Mq){this.Mq=z;var b=this.get("gyroscopeEnabled")&&t.available;if(b&&t.disabled){b=z;s.z_.show(function(){t.XY(function(){this.set("gyroscopeEnabled",p)}.bind(this))}.bind(this))}this.set("gyroscopeEnabled",
b);this.q.bF(b);this.yG.set("pressed",b)}if(this.mS){this.mS=z;this.zG.set("pressed",this.get("hotspotsEnabled"))}if(this.wt){this.wt=z;a=p}if(this.MV){this.MV=z;this.BG.set("pressed",this.get("surfaceSelectionEnabled"))}a&&this.KD()}};x.prototype.lD=function(){this.set("panorama",r)};x.prototype.tt=function(){var a=this.get("viewerArea"),b=this.get("application");this.g=new o(b,a,this);this.g.N({left:0,top:0,bottom:0,right:0});a.ma(this.g);this.q=new l(a,this.g);this.q.bind(l.Ug,this.pl,this);this.q.bind(l.Mk,
this.l6,this);this.q.bind(l.jm,this.Io,this);this.q.bind(l.Cs,this.Cx,this);this.q.bind(l.Hs,this.Lo,this,p);this.q.bind(l.Gs,this.ir,this,p);this.q.bind(l.Is,this.bC,this,p);this.q.bind(l.Fs,this.aC,this,p);this.q.bind(l.bc,this.oe,this);this.q.bind(l.ve,this.ul,this);this.q.bind(l.ue,this.tl,this);this.q.bind(l.Ej,this.lr,this);this.get("application").bind(c.D("mute"),this.$B,this);this.get("application").get("mute",z)&&this.q.Id(p);this.q&&this.q.ls(this.ox);u.bind(c.aa,this.dk,this,p);this.gQ();
this.fy(p)};x.prototype.vt=function(){if(this.g){this.q.unbind(l.Ug,this.pl,this);this.q.unbind(l.Mk,this.l6,this);this.q.unbind(l.jm,this.Io,this);this.q.unbind(l.Cs,this.Cx,this);this.q.unbind(l.Hs,this.Lo,this,p);this.q.unbind(l.Gs,this.ir,this,p);this.q.unbind(l.Is,this.bC,this,p);this.q.unbind(l.Fs,this.aC,this,p);this.q.unbind(l.bc,this.oe,this);this.q.unbind(l.ve,this.ul,this);this.q.unbind(l.ue,this.tl,this);this.q.unbind(l.Ej,this.lr,this);this.q.clear();this.q=r;this.get("application").unbind(c.D("mute"),
this.$B,this);this.g.getParent().removeChild(this.g);this.g=r;u.unbind(c.aa,this.dk,this,p);this.fy(z)}};x.prototype.$B=function(){this.g&&this.q.Id(this.get("application").get("mute",z))};x.prototype.oe=function(a){this.Pf=a.data.state;this.ge()};x.prototype.ge=function(){this.Yb(this.oT||u.isPresenting()?this.Pf:d.R)};x.prototype.ul=function(){this.trigger(new e(x.ve))};x.prototype.tl=function(){this.trigger(new e(x.ue))};x.prototype.bC=function(a){this.trigger(new e(x.r_,{panorama:a.data.panorama}))};
x.prototype.aC=C();x.prototype.Lo=function(a){this.gQ();this.zI(a.data.panorama)};x.prototype.ir=function(a){this.yI(a.data.panorama)};x.prototype.pl=function(a){for(var b in x.Sn)this.Q5[b].set("state",a.data[x.Sn[b].pressedOn]?w.za:w.cd);this.oT=a.data.stopped;this.ge();this.trigger(new e(c.SF,a.data))};x.prototype.l6=function(a){this.gQ();this.trigger(new e(x.m_,a.data))};x.prototype.gQ=function(){if(this.q){this.set("yaw",this.q.Ub());this.set("pitch",this.q.$b());this.set("roll",this.q.Od());
this.set("hfov",this.q.He());this.set("actualHFOV",this.q.KX());this.set("actualVFOV",this.q.LX())}};x.prototype.Io=function(a){this.g.getParent().N({progressPercent:a.data.percent,progressVisible:p});this.trigger(new e(x.jm,a.data))};x.prototype.Cx=function(){this.g.getParent().set("progressVisible",z)};x.prototype.dk=function(){this.set("viewMode",u.isPresenting()?x.fq:x.WO);this.ge()};x.prototype.P5=function(a,b,c,d,e){this.q&&this.q.moveTo(a,b,c,d,e)};x.prototype.vb=function(a){this.q&&this.q.Sg(a)};
x.prototype.lh=function(){this.q.play()};x.prototype.qk=function(){this.q.stop()};x.prototype.xl=function(){this.q.pause()};x.prototype.SC=function(a){this.q&&(this.j4()?this.q.ks(a):this.q.Gda(a))};x.prototype.Upa=function(a){this.q&&this.q.Gda(a)};x.prototype.Vpa=function(a){this.q&&this.q.ks(a)};x.prototype.coa=function(){this.q&&this.q.gz()};x.prototype.epa=function(){this.q&&this.q.qz()};x.prototype.hla=function(a,b){if(this.q)return this.q.Vua(a,b)};x.prototype.Uka=function(a,b){if(this.q)return this.q.Mua(a,
b)};x.prototype.L8=function(){this.q&&this.q.aZ()};x.prototype.BJ=function(a){this.SC(a.data.position)};x.prototype.lr=function(a){this.Zc=a.data.time;this.Kb=a.data.duration;this.qR=a.data.transitionPosition;this.xH=a.data.transitionLength;this.fU=a.data.steps;this.dU=a.data.selectedStep;this.KD()};x.prototype.KD=function(){var a=this.g.getParent(),b=z;if(this.vka()){var c=this.j4(),d=this.Wka();if(c){if(this.xH>0){a.N({playbackBarPosition:this.qR,playbackBarDuration:this.xH,playbackBarSteps:this.fU,
playbackBarSelectedStep:this.dU,playbackBarLiveDragging:d});b=p}}else if(this.Kb>0){a.N({playbackBarPosition:this.Zc,playbackBarDuration:this.Kb,playbackBarSteps:m,playbackBarSelectedStep:m,playbackBarLiveDragging:d});b=p}}a.set("playbackBarVisible",b)};x.prototype.vka=function(){var a=this.get("panorama");return a?g.ob("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",z)):g.ob("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",
z)):g.ob("VideoPanorama",a)?this.get("videoPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",p)):z:z};x.prototype.j4=function(){var a=this.get("panorama");return!a?z:g.ob("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBarSteps",p):g.ob("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBarSteps",p):z};x.prototype.Wka=function(){var a=this.get("panorama");return!a||g.ob("VideoPanorama",a)?z:p};x.fq="cardboard";x.WO="standard";x.Sn={buttonMoveLeft:{movement:q.cw,pressedOn:"movingLeft",
stopOnRelease:p},buttonMoveRight:{movement:q.dw,pressedOn:"movingRight",stopOnRelease:p},buttonMoveUp:{movement:q.ew,pressedOn:"movingUp",stopOnRelease:p},buttonMoveDown:{movement:q.bw,pressedOn:"movingDown",stopOnRelease:p},buttonPlayLeft:{movement:[q.cw,q.R],pressedOn:"movingLeft",stopOnRelease:z},buttonPlayRight:{movement:[q.dw,q.R],pressedOn:"movingRight",stopOnRelease:z},buttonPlayUp:{movement:[q.ew,q.R],pressedOn:"movingUp",stopOnRelease:z},buttonPlayDown:{movement:[q.bw,q.R],pressedOn:"movingDown",
stopOnRelease:z},buttonZoomIn:{movement:q.Qn,pressedOn:"zoomingIn",stopOnRelease:p},buttonZoomOut:{movement:q.Rn,pressedOn:"zoomingOut",stopOnRelease:p}};return x});
define("ca","fd,bY,dT,ct,kQ,dj".split(","),function(a,b,c,e,d,f){a=a.extend(f,function(){f.call(this)});c.A("PanoramaPlayListItem",a).B("PlayListItem").L({media:"Panorama",camera:"PanoramaCamera",player:"PanoramaPlayer"});a.prototype.start=function(){f.prototype.start.call(this);var a=this.get("player");if(a){a.bind(e.yf,this.Lo,this);a.set("panorama",this.get("media"));a.set("camera",this.get("camera"))}};a.prototype.stop=function(){var a=this.get("player");if(a){a.unbind(e.yf,this.Lo,this);a.get("panorama")==
this.get("media")&&a.set("panorama",r)}f.prototype.stop.call(this)};a.prototype.Lo=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.yf,this.Lo,this);this.get("player").bind(e.Bh,this.ir,this);this.Dy()}};a.prototype.ir=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(e.Bh,this.ir,this);this.end()}};return a});
define("iF",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PanoramaSnapshot",b).B("Object").L({position:"PanoramaCameraPosition",image:"ImageResource"});return b});define("jW",["fd","bR"],function(a,b){var c=a.extend(b,function(a,c,f,g){b.call(this);this.Md=a;this.W=c;this.ea=f;this.kR=g});c.prototype.xn=function(){return[this.Md]};c.prototype.sj=R("Md");c.prototype.$c=R("W");c.prototype.Nd=R("ea");return c});
define("eu","require,dm,fd,dT,ds,eE,jW".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("dT"),d=a("ds"),f=a("eE"),g=a("jW"),a=c.extend(d,function(){d.call(this);this.X=m});e.A("Photo",a).B("Media").L({audios:"array[PhotoAudio]",duration:"number",height:"number",image:"ImageResource",width:"number",flipImageHorizontally:"bool"});a.prototype.Ng=function(){if(this.X==m){var a=this.get("image");this.X=a?new g(f.Yl(a).get("url"),this.get("width"),this.get("height"),this.get("flipImageHorizontally",
z)):r}return this.X};a.prototype.wp=function(){var a=this.FH(this.Ng());b(this.get("audios",[])).each(function(b){a=a.concat(b.wp())},this);return a};a.prototype.FH=function(a){return a?a.xn():[]};return a});
define("hg",["dm","fd","lc","ds","dT"],function(a,b,c,e,d){b=b.extend(e,function(){e.call(this);this.set("loop",z)});d.A("PhotoAlbum",b).B("Media").L({audios:"array[PhotoAlbumAudio]",loop:"bool",playList:"PhotoPlayList"}).Vb([c.Da]);b.prototype.wp=function(){var b=[],c=this.get("playList");c&&a(c.get("items"),[]).each(function(a){(a=a.get("media"))&&(b=b.concat(a.wp()))});a(this.get("audios",[])).each(function(a){b=b.concat(a.wp())});return b};return b});
define("gm","require,fd,gb,dT,gK,z".split(","),function(a){var b=a("fd"),c=a("gb"),e=a("dT"),d=a("gK");a("z");a=b.extend(d,function(){d.call(this,c.qfa)});e.A("PhotoAlbumAudio",a).B("MediaAudio");return a});
define("cr",["require","fr"],function(a){function b(a,b){this.g=a;this.Yk=b;this.vw=[];this.rm=[];this.Sl=1}var c=a("fr");b.prototype.clear=function(){for(var a=0;a<this.vw.length;a++)this.vw[a].ic(c.K);this.Gga();this.rm=this.vw=r};b.prototype.stop=function(){for(var a=0;a<this.rm.length;a++)this.rm[a].ic(c.K)};b.prototype.play=function(){for(var a=0;a<this.rm.length;a++){var b=this.rm[a];b.Ie()!=c.R&&b.ic(c.R)}};b.prototype.pause=function(){for(var a=0;a<this.rm.length;a++){var b=this.rm[a];b.Ie()==
c.R&&b.ic(c.yc)}};b.prototype.start=function(){this.stop();for(var a=0;a<this.Yk.length;a++){var b=this.Yk[a],f=b.iv();f&&(this.vw.push(f),b.get("autoplay",z)&&this.rm.push(f))}for(a=0;a<this.rm.length;a++)this.rm[a].ic(c.R)};b.prototype.Zb=C();b.prototype.Gga=function(){for(var a=0;a<this.vw.length;a++)this.vw[a].Np(1)};return b});define("gl",["fd","cr"],function(a,b){return a.extend(b,function(a,e){b.call(this,a,e.get("audios",[]));this.yJ=e})});
define("fE",["fd","cr"],function(a,b){return a.extend(b,function(a,e){b.call(this,a,e.get("audios",[]));this.od=e})});
define("hb",["gl","fE"],function(a,b){function c(a){this.g=a;this.Yf=[];this.Of=[]}c.prototype.clear=function(){this.cea();this.Of=this.Yf=r};c.prototype.cea=function(){for(var a=0;a<this.Yf.length;a++)this.Yf[a].clear();for(a=0;a<this.Of.length;a++)this.Of[a].clear();this.Yf=[];this.Of=[]};c.prototype.pause=function(){for(var a=0;a<this.Yf.length;a++)this.Yf[a].pause();for(a=0;a<this.Of.length;a++)this.Of[a].pause()};c.prototype.play=function(){for(var a=0;a<this.Yf.length;a++)this.Yf[a].play();
for(a=0;a<this.Of.length;a++)this.Of[a].play()};c.prototype.stop=function(){for(var a=0;a<this.Yf.length;a++)this.Yf[a].stop();for(a=0;a<this.Of.length;a++)this.Of[a].clear();this.Of=[]};c.prototype.yya=function(b){b=new a(this.g,b);this.Of.push(b);b.start()};c.prototype.Bya=function(a){for(var b=0;b<this.Of.length;b++)if(this.Of[b].yJ==a){this.Of[b].clear();this.Of.splice(b,1);break}};c.prototype.CZ=function(a){a=new b(this.g,a);this.Yf.push(a);a.start()};c.prototype.zya=function(a){for(var b=0;b<
this.Yf.length;b++)if(this.Yf[b].od==a){this.Yf[b].clear();this.Yf.splice(b,1);break}};c.prototype.Zb=function(a){for(var b=0;b<this.Yf.length;b++)this.Yf[b].Zb(a);for(b=0;b<this.Of.length;b++)this.Of[b].Zb(a)};return c});
define("j",["fd","je"],function(a,b){function c(){this.Z=p;this.da=this.ca=0.5;this.ra=1;this.Dd=b.Me;this.Hi=this.Ii=100}c.prototype.getX=function(){this.nj();return this.ca};c.prototype.getY=function(){this.nj();return this.da};c.prototype.$l=function(){this.nj();return this.ra};c.prototype.ZE=function(a,b,c){this.Dd=c;this.da=this.ca=0.5;this.ra=1;this.Z=p};c.prototype.Fa=function(a,b,c){this.ca=a;this.da=b;this.ra=c;this.Z=p};c.prototype.setSize=function(a,b){this.Ii=a;this.Hi=b;this.Z=p};c.prototype.nj=
function(){if(this.Z){this.Z=z;1>this.ra&&(this.ra=1);var a=Math.min(0.5/this.ra,0.5),b=Math.max(1-0.5/this.ra,0.5);this.ca<a?this.ca=a:this.ca>b&&(this.ca=b);a=Math.min(0.5/this.ra,0.5);b=Math.max(1-0.5/this.ra,0.5);this.da<a?this.da=a:this.da>b&&(this.da=b)}};return c});
define("bn",[],function(){function a(a,c){this.g=a;this.H=c;this.da=this.ca=0.5;this.ra=1;this.TJ=z}a.prototype.start=function(){this.da=this.ca=0.5;this.ra=1;this.TJ=p};a.prototype.clear=function(){this.H=this.g=r};a.prototype.Fa=function(a,c,e){this.ca=a;this.da=c;this.ra=e};a.prototype.kd=R("TJ");a.prototype.cb=function(){this.TJ=z};return a});
define("fU",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(a,c,f){b.call(this);a!=m&&this.set("x",a);c!=m&&this.set("y",c);f!=m&&this.set("zoomFactor",f)});c.A("PhotoCameraPosition",a).B("Object").L({x:"number",y:"number",zoomFactor:"number"});return a});
define("h",["fd","bn","fU","kO","bq"],function(a,b,c,e,d){a=a.extend(b,function(a,c){b.call(this,a,c);this.O=r});a.prototype.start=function(a){var b=a.get("initialPosition",new c(0.5,0.5,1)),k=a.get("targetPosition",new c(0.5,0.5,1));this.O=new e(a.get("easing","linear"),[new d("x",b.get("x",0.5),k.get("x",0.5)),new d("y",b.get("y",0.5),k.get("y",0.5)),new d("zoom",b.get("zoomFactor",1),k.get("zoomFactor",1))],a.get("duration",1E3));this.cb(0)};a.prototype.clear=function(){this.O=r;b.prototype.clear.call(this)};
a.prototype.kd=function(){return this.O!=r};a.prototype.cb=function(a){this.O&&(this.O.cb(a),this.H.Fa(this.O.wb("x"),this.O.wb("y"),this.O.wb("zoom")),this.ca=this.H.getX(),this.da=this.H.getY(),this.ra=this.H.$l(),this.O.Je()&&(this.O=r))};return a});
define("ch","fd,bY,eL,dT,fr,je,j,bn,h,lc".split(","),function(a,b,c,e,d,f,g,k,i,n){var j=a.extend(c,function(a,b){c.call(this);this.g=a;this.pc=b;this.g.bind(n.yb,this.nb,this);this.m=d.K;this.ej=this.yJ=this.sb=this.X=r;this.H=new g});j.prototype.clear=function(){this.end();this.H=r;this.g.unbind(n.yb,this.nb,this);this.g=r};j.prototype.end=function(a){if(this.X==a||typeof a=="undefined"){this.m3();this.sb=this.yJ=this.sb=this.X=r}};j.prototype.start=function(a){if(this.X!=a){this.end(this.X);var b=
a.get("media"),c=a.get("camera"),d=b.get("width",100),e=b.get("height",100),i=c?c.get("scaleMode",f.Me):f.Me;this.X=a;this.sb=c;this.yJ=b;b.Ng();this.V=p;this.H.ZE(d,e,i);this.Wia(c);this.fa()}};j.prototype.stop=function(){if(this.m!=d.K){this.m=d.K;if(this.ej){this.ej.start(this.sb);this.fa()}}};j.prototype.play=function(){if(this.m==d.K||this.m==d.yc){this.m=d.R;this.fa()}};j.prototype.pause=function(){if(this.m==d.R)this.m=d.yc};j.prototype.Ep=function(a){if(this.ej&&this.ej.kd()){if(this.m==d.R){this.ej.cb(a);
this.fa()}this.ei(this.ej.ca,this.ej.da,this.ej.ra)}};j.prototype.Wia=function(a){this.m3();this.ej=e.ob("MovementPhotoCamera",a)?new i(this.g,this.H):new k(this.g,this.H);this.ej.start(a)};j.prototype.m3=function(){if(this.ej){this.ej.clear();this.ej=r}};j.prototype.nb=function(){this.H.setSize(this.g.Ba(),this.g.gb());this.fa()};j.prototype.fa=function(){this.trigger(new b(j.Ja))};j.prototype.ei=function(a,b,c){this.pc.Fa(this.X,a,b,c)};j.Ja="request frame";return j});
define("gg","require,dm,fd,bY,eL,lc,gb,je".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("bY"),d=a("eL"),f=a("lc");a("gb");var g=a("je"),k=c.extend(d,function(a,b){d.call(this);this.gD=[];this.F=a;this.g=b});k.prototype.lz=function(a){this.Kq(a).lz();return this};k.prototype.xd=function(a,b){this.Kq(a).xd(b);return this};k.prototype.xj=function(a,b){this.Kq(a).xj(b);return this};k.prototype.Fa=function(a,b,c,d){this.Kq(a).Fa(b,c,d);return this};k.prototype.uk=function(a){this.Kq(a).uk();return this};
k.prototype.stop=function(){this.A3(function(a){a.clear()});this.gD=[]};k.prototype.clear=function(){this.stop();this.g=this.F=this.gD=r};k.prototype.Zb=function(){this.A3(function(a){a.update()})};k.prototype.Kq=function(a){var b=this.Rja(a);if(!b){b=new i(a,this.g);b.bind(i.n0,this.sma,this);b.bind(i.l0,this.rma,this);this.gD.push(b)}return b};k.prototype.A3=function(a){b(this.gD).each(a,this)};k.prototype.Rja=function(a){return b(this.gD).find(function(b){return b.getItem()==a})};k.prototype.sma=
function(){this.fa()};k.prototype.rma=function(a){this.trigger(new e(k.UN,{item:a.source.getItem()}))};k.prototype.fa=function(){this.trigger(new e(k.Ja))};k.Ja="request frame";k.UN="photo preload end";var i=c.extend(d,function(a,b){d.call(this);this.X=a;this.g=b;var c=a.get("camera");this.Dd=c?c.get("scaleMode",g.Me):g.Me;this.oh=a.get("media").Ng();this.oh.bind(f.S,this.Lf,this);this.oh.bind(f.ie,this.er,this);this.Y=i.cA;this.da=this.ca=0.5;this.ra=1;this.Mj=0;this.zw=z;this.ne=0;this.Z=z});i.prototype.getItem=
R("X");i.prototype.lz=function(){this.Y==i.cA?this.FJ():this.A$()};i.prototype.xd=function(a){if(this.Mj!=a){this.Mj=a;this.ed()}};i.prototype.xj=function(a){if(this.ne!=a){this.ne=a;this.ed()}};i.prototype.Fa=function(a,b,c){if(this.ca!=a||this.da!=b||this.ra!=c){this.ca=a;this.da=b;this.ra=c;this.ed()}};i.prototype.uk=function(){if(!this.zw){this.zw=p;this.ed()}};i.prototype.clear=function(){this.Y==i.eG&&this.KC();(this.Y==i.$z||this.Y==i.bA||this.Y==i.aA)&&this.Mr();this.oh.unbind(f.S,this.Lf);
this.oh.unbind(f.ie,this.er);this.oh=r};i.prototype.update=function(){if(this.Z){this.Z=z;if(this.ne>-1&&this.ne<1&&this.Mj>0){this.Y==i.cA&&this.yB();this.Y==i.$z&&this.hga();if(this.Y==i.eG){if(this.zw){this.g.rX(this.oh);this.zw=z}this.g.em(this.oh,this.Mj);this.g.Ixa(this.oh,this.ne);this.g.eF(this.oh,this.ca,this.da,this.ra)}}else{this.Y==i.eG&&this.KC();(this.Y==i.$z||this.Y==i.aA)&&this.Mr()}}};i.prototype.ed=function(){if(!this.Z){this.Z=p;this.Ga()}};i.prototype.Ga=function(){this.trigger(new e(i.n0))};
i.prototype.FJ=function(){this.Y=i.bA;this.g.zn(this.oh)};i.prototype.yB=function(){this.Y=i.aA;this.g.zn(this.oh)};i.prototype.hga=function(){this.Y=i.eG;this.g.lX(this.oh);this.g.Lxa(this.oh,this.Dd)};i.prototype.KC=function(){this.Y=i.$z;this.g.removeItem(this.oh)};i.prototype.Mr=function(){this.Y=i.cA;this.g.ti(this.oh)};i.prototype.Lf=function(){if(this.Y==i.bA||this.Y==i.aA){var a=this.Y==i.bA;this.Y=i.$z;this.ed();a&&this.A$()}};i.prototype.er=function(){if(this.Y==i.bA||this.Y==i.aA)this.Y=
i.cA};i.prototype.A$=function(){this.trigger(new e(i.l0))};i.n0="requestUpdate";i.l0="preloadEnd";i.cA="unloaded";i.bA="preloading";i.aA="loading";i.$z="loaded";i.eG="added";return k});define("jZ",[],function(){return{im:"blending",mm:"scroll"}});
define("bH","dm,fd,bY,eL,lc,gg,jZ".split(","),function(a,b,c,e,d,f,g){function k(b,c,d){this.oj=b;this.item=c;this.lea=d;this.index=b&&c?a(b.get("playList").get("items")).indexOf(this.item):0;this.loaded=z}k.prototype.isEqual=function(a){return a&&a.oj==this.oj&&a.item==this.item};var i=b.extend(e,function(a,b,c){e.call(this);this.F=a;this.g=b;this.pc=c;this.pc.bind(f.UN,this.Q7,this);this.uD=g.im;this.Y=i.mw;this.Ld=new k(r,r,0);this.ho=this.kh=this.Pe=r;this.vD=m;this.Fr=0});i.prototype.kya=P("uD");
i.prototype.wZ=P("Fr");i.prototype.OZ=function(a,b,c){this.kh=r;a=new k(a,b,c);if(!a.isEqual(this.Y==i.mw?this.Ld:this.Pe)){this.kh=a;this.X6()}};i.prototype.clear=function(){(this.Y==i.hG||this.Y==i.fG)&&this.trigger(new c(i.Vp,{album:this.Pe.oj,item:this.Pe.item}));this.Y=i.mw;this.g=this.F=this.ho=this.Ld=this.Pe=this.kh=r;this.pc.unbind(f.UN,this.Q7,this);this.pc=r};i.prototype.Zb=function(a){if(this.Y!=i.mw){this.vD=this.vD+a;a=this.Pe.lea;a=this.vD>=a?1:this.vD/a;this.Y==i.fG?this.fsa(a):this.Y==
i.gG?this.gsa(a):this.uD==g.im?this.Xra(a):this.Csa(a);a<1?this.fa():this.Vw()}};i.prototype.fsa=function(a){this.pc.xd(this.Pe.item,a).xj(this.Pe.item,0)};i.prototype.gsa=function(a){this.pc.xd(this.Ld.item,1-a).xj(this.Ld.item,0)};i.prototype.Xra=function(a){this.pc.xd(this.Pe.item,Math.min(1,a*2)).xj(this.Pe.item,0);this.pc.xd(this.Ld.item,Math.min(1,(1-a)*2)).xj(this.Ld.item,0)};i.prototype.Csa=function(a){var b=this.Ld.oj!=this.Pe.oj||this.Ld.index<this.Pe.index;this.pc.xj(this.Pe.item,(b?1-
a:a-1)*(1+this.Fr)).xd(this.Pe.item,1);this.pc.xj(this.Ld.item,(b?-a:a)*(1+this.Fr)).xd(this.Ld.item,1)};i.prototype.X6=function(){this.kh&&this.Y==i.mw&&(this.kh.item&&!this.kh.loaded?this.pc.lz(this.kh.item):this.jq())};i.prototype.Q7=function(a){if(this.kh&&this.kh.item==a.data.item){this.kh.loaded=p;this.X6()}};i.prototype.jq=function(){if(this.ho&&this.ho!=this.kh.oj){this.trigger(new c(i.Kk,{album:this.ho}));this.ho=r}this.trigger(new c(i.aO));if(this.F.get("transitionMode")=="fade_out_fade_in"&&
this.kh.item!=r&&this.Ld.item!=r){this.Y=i.gG;this.Pe=new k(this.Ld.oj,r,this.Ld.lea)}else{this.Pe=this.kh;this.kh=r;if(this.Ld.item)if(this.Pe.item)this.Y=i.hG;else{if(this.Ld.item)this.Y=i.gG}else this.Y=i.fG}if(this.Y==i.hG||this.Y==i.fG){this.pc.uk(this.Pe.item);this.trigger(new c(i.Js,{album:this.Pe.oj,item:this.Pe.item}))}this.vD=0;this.fa()};i.prototype.Vw=function(){(this.Y==i.hG||this.Y==i.gG)&&this.trigger(new c(i.Vp,{album:this.Ld.oj,item:this.Ld.item}));this.Ld=this.Pe;if(this.ho!=this.Ld.oj){this.ho=
this.Ld.oj;this.trigger(new c(i.Lk,{album:this.ho}))}this.Y=i.mw;if(this.kh==r){this.Ld.item&&this.trigger(new c(i.Ks,{album:this.Ld.oj,item:this.Ld.item}));this.trigger(new c(i.bO,{album:this.Ld.oj,item:this.Ld.item}))}else this.jq()};i.prototype.fa=function(){this.trigger(new c(i.Ja))};i.mw="stopped";i.hG="blending";i.gG="fading_out";i.fG="fading_in";i.Ja="request frame";i.aO="transition begin";i.bO="transition end";i.Js="photo added";i.Vp="photo removed";i.Ks="photo displayed";i.Lk="photo album show";
i.Kk="photo album hide";return i});
define("eo","dm,fd,bY,eL,lc,dT,je,fU,j,bn,h,kO,bq".split(","),function(a,b,c,e,d,f,g,k,i,n,j,l,q){var o=b.extend(e,function(a,b,c){e.call(this);this.F=a;this.g=b;this.pc=c;this.lk=this.$j=this.X=this.od=this.sa=r;this.fj=m;this.xK=0;this.bi=z;this.ne=0;this.CI=this.lk?-1:0;this.xI=this.$j?1:0;this.O=r;this.qh=400;this.Fr=0;this.H=new i});o.prototype.clear=function(){this.pc=this.g=this.F=this.ho=r};o.prototype.mxa=function(b,c){this.od=b;this.X=c;var d=b&&b.get("playList")&&b.get("playList").get("items")||
[],e=a(d).indexOf(c);this.$j=e>0?d[e-1]:r;this.lk=e<d.length-1?d[e+1]:r;this.ne=0;this.CI=this.lk?-1:0;this.xI=this.$j?1:0;this.FJ()};o.prototype.enable=function(){if(this.sa=this.g.getParent()){this.sa.bind(d.xb,this.lc,this,p);this.sa.bind(d.Lc,this.Bg,this,p);this.sa.bind(d.cc,this.Cg,this,p);this.FJ()}};o.prototype.disable=function(){if(this.sa){this.sa.unbind(d.xb,this.lc,this);this.sa.unbind(d.Lc,this.Bg,this);this.sa.unbind(d.cc,this.Cg,this);this.sa=r}};o.prototype.jya=P("qh");o.prototype.wZ=
P("Fr");o.prototype.FJ=function(){if(this.sa){this.$j&&this.pc.lz(this.$j);this.lk&&this.pc.lz(this.lk)}};o.prototype.X5=function(){return(new Date).getTime()};o.prototype.lc=function(a){if(!this.bi){this.fj=a.x;this.xK=0;this.oU=this.X5();this.bi=p;this.O=r;this.trigger(new c(o.DN));if(this.$j){a=this.t4(this.$j);this.pc.Fa(this.$j,a.x,a.y,a.zoom)}if(this.lk){a=this.t4(this.lk);this.pc.Fa(this.lk,a.x,a.y,a.zoom)}}};o.prototype.Bg=function(a){if(this.bi){var b=a.x-this.fj,c=b/this.sa.Ba(),d=this.X5()-
this.oU;this.xK=b/d;this.oU=this.oU+d;this.fj=a.x;this.ne=Math.max(this.CI,Math.min(this.xI,this.ne+c));this.fa()}};o.prototype.Cg=function(){if(this.bi){this.bi=z;var a,b;if(this.xK>1){a="quad_out";b=this.xI}else if(this.xK<-1){a="quad_out";b=this.CI}else{a="quad_in_out";b=this.ne<-0.5?this.CI:this.ne>0.5?this.xI:0}this.O=new l(a,[new q("offset",this.ne,b,1E3/this.qh)],0);this.fa()}};o.prototype.Zb=function(a){if(this.bi||this.O){if(this.O){this.O.cb(a);this.ne=this.O.wb("offset");if(this.O.Je()){this.O=
r;this.Dja()}else this.fa()}this.X&&this.pc.xj(this.X,this.ne*(1+this.Fr)).xd(this.X,1);this.$j&&this.pc.xj(this.$j,(this.ne-1)*(1+this.Fr)).xd(this.$j,1);this.lk&&this.pc.xj(this.lk,(this.ne+1)*(1+this.Fr)).xd(this.lk,1)}};o.prototype.Dja=function(){this.trigger(new c(o.EN,{album:this.od,item:this.ne<0?this.lk:this.ne>0?this.$j:this.X}))};o.prototype.fa=function(){this.trigger(new c(o.Ja))};o.prototype.t4=function(a){var b=a&&a.get("camera"),c=a&&a.get("media"),a=c&&c.get("width",100)||100,c=c&&
c.get("height",100)||100,d=b?b.get("scaleMode",g.Me):g.Me,e={};if(f.ob("MovementPhotoCamera",b)){b=b.get("initialPosition",new k(0.5,0.5,1));e.x=b.get("x",0.5);e.y=b.get("y",0.5);e.zoom=b.get("zoomFactor",0.5)}else{e.x=0.5;e.y=0.5;e.zoom=1}this.H.ZE(a,c,d);this.H.setSize(this.g.Ba(),this.g.gb());this.H.Fa(e.x,e.y,e.zoom);e.x=this.H.getX();e.y=this.H.getY();e.zoom=this.H.$l();return e};o.Ja="request frame";o.DN="interaction begin";o.EN="interaction end";return o});
define("gX","fd,bY,eL,lc,gg,jZ,bH,eo".split(","),function(a,b,c,e,d,f,g,k){var i=a.extend(c,function(a,b,d){c.call(this);this.F=a;this.g=b;this.pc=d;this.uD=f.im;this.qh=1E3;this.Ta=new g(this.F,this.g,this.pc);this.Ta.bind(g.Ja,this.Wc,this,p);this.Ta.bind(g.aO,this.i6,this,p);this.Ta.bind(g.bO,this.j6,this,p);this.Ta.bind(g.Js,this.cC,this,p);this.Ta.bind(g.Vp,this.fC,this,p);this.Ta.bind(g.Ks,this.eC,this,p);this.Ta.bind(g.Kk,this.ql,this,p);this.Ta.bind(g.Lk,this.ck,this,p);this.Ph=new k(this.F,
this.g,this.pc);this.Ph.bind(k.Ja,this.Wc,this,p);this.Ph.bind(k.DN,this.E5,this,p);this.Ph.bind(k.EN,this.F5,this,p)});i.prototype.SM=function(a,b){this.uD=a;this.qh=b;this.Ta.kya(a);this.Ph.jya(b);this.Ta.wZ(0.05);this.Ph.wZ(0.05)};i.prototype.display=function(a,b){this.Ta.OZ(a,b,this.qh)};i.prototype.hide=function(){this.Ta.OZ(r,r,this.qh)};i.prototype.clear=function(){this.Ta.unbind(g.Ja,this.Wc,this);this.Ta.unbind(g.aO,this.i6,this);this.Ta.unbind(g.bO,this.j6,this);this.Ta.unbind(g.Js,this.cC,
this);this.Ta.unbind(g.Vp,this.fC,this);this.Ta.unbind(g.Ks,this.eC,this);this.Ta.unbind(g.Kk,this.ql,this);this.Ta.unbind(g.Lk,this.ck,this);this.Ta.clear();this.Ta=r;this.Ph.bind(k.Ja,this.Wc,this,p);this.Ph.bind(k.DN,this.E5,this,p);this.Ph.bind(k.EN,this.F5,this,p);this.Ph.clear();this.pc=this.g=this.F=this.Ph=r};i.prototype.Zb=function(a){this.Ta.Zb(a);this.Ph.Zb(a)};i.prototype.Wc=function(){this.fa()};i.prototype.cC=function(a){this.trigger(new b(i.Js,a.data))};i.prototype.fC=function(a){this.trigger(new b(i.Vp,
a.data))};i.prototype.eC=function(a){this.trigger(new b(i.Ks,a.data));this.Ph.mxa(a.data.album,a.data.item)};i.prototype.ql=function(a){this.trigger(new b(i.Kk,a.data))};i.prototype.ck=function(a){this.trigger(new b(i.Lk,a.data))};i.prototype.i6=function(){this.Ph.disable()};i.prototype.j6=function(a){this.uD==f.mm&&a.data.item&&this.Ph.enable();a.data.album||this.trigger(new b(i.BN))};i.prototype.E5=function(){this.trigger(new b(i.o_))};i.prototype.F5=function(a){this.Ta.OZ(a.data.album,a.data.item,
0);this.trigger(new b(i.p_,a.data))};i.prototype.fa=function(){this.trigger(new b(i.Ja))};i.Ja="request frame";i.Js="photo added";i.Vp="photo removed";i.Ks="photo displayed";i.Lk="photo album show";i.Kk="photo album hide";i.o_="manual interaction begin";i.p_="manual interaction end";i.BN="all pending photo albums hidden";return i});
define("gy","require,dm,fd,u,bY,eL,fr".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("u"),d=a("bY"),f=a("eL"),g=a("fr"),k=c.extend(f,function(){f.call(this);this.od=r;this.m=g.K;this.YU=r});k.prototype.clear=function(){this.FX()};k.prototype.CZ=function(a){this.FX();this.od=a;this.m=g.R;this.YU=e.watch(this.od,"playList.selectedIndex",this.Bu,this);this.od.get("playList").get("selectedIndex")==0?this.Bu():this.od.get("playList").set("selectedIndex",0)};k.prototype.FX=function(){if(this.od){this.m=
g.K;this.YU.unwatch();this.od=this.YU=r}};k.prototype.stop=function(){if(this.m!=g.K){this.m=g.K;this.od.get("playList").set("selectedIndex",0)}};k.prototype.play=function(){if(this.m==g.K){this.od.get("playList").set("selectedIndex",0);this.m=g.R;this.Bu()}else if(this.m==g.yc)this.m=g.R};k.prototype.pause=function(){if(this.m==g.R)this.m=g.yc};k.prototype.next=function(){var a=this.od.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b<c-1||this.od.get("loop"))&&a.set("selectedIndex",
(b+1)%c)};k.prototype.QY=function(){var a=this.od.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b>0||this.od.get("loop"))&&a.set("selectedIndex",(b-1+c)%c)};k.prototype.qM=function(a){this.mqa(a)};k.prototype.Sva=function(a){if(this.od){var c=b(this.od.get("playList").get("items")).last();if(a==c&&!this.od.get("loop")){this.m=g.K;this.trigger(new d(k.xN,{album:this.od}))}else this.next()}};k.prototype.Bu=function(){var a=this.jla();a>=0&&(this.m!=g.R&&a!=0?this.trigger(new d(k.XN)):
this.trigger(new d(k.IN,{album:this.od,item:this.od.get("playList").get("items")[a]})))};k.prototype.jla=function(){return this.od?this.od.get("playList").get("selectedIndex"):-1};k.prototype.mqa=function(a){if(this.od){var c=this.od.get("playList"),a=b(c.get("items")).indexOf(a);c.set("selectedIndex",a)}};k.XN="play request";k.IN="item request";k.xN="album end";return k});
define("cl","require,dm,fd,lc,bY,eL,fr,fu".split(","),function(a){a("dm");var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("fr"),g=a("fu"),k=b.extend(d,function(a){d.call(this);this.F=a;this.sD=this.X=r;this.xu=m;this.fI=z;this.m=f.K;g.bind(c.aa,this.y7,this,p)});k.prototype.qM=function(a){this.MQ();if(this.X=a){a=this.X.get("media").get("duration",0);this.xu=a==0?m:Math.max(0,a-this.F.get("transitionDuration"));this.fI=z;this.m==f.R&&this.cR()}};k.prototype.clear=function(){g.unbind(c.aa,this.y7,
this,p);this.qM(r)};k.prototype.stop=function(){if(this.m!=f.K){this.MQ();this.Yb(f.K)}};k.prototype.play=function(){if(this.m==f.K){this.Yb(f.R);if(this.X){this.fI=z;var a=this.X.get("media").get("duration",0);this.xu=a==0?m:a;this.cR()}}else if(this.m==f.yc){this.Yb(f.R);this.X&&this.cR()}};k.prototype.pause=function(){if(this.m==f.R){this.Yb(f.yc);this.O7()}};k.prototype.cR=function(){if(!this.fI){this.fI=p;this.trigger(new e(k.JN,{item:this.X}))}this.D3()};k.prototype.y7=function(){g.visible?
this.D3():g.visible||this.O7()};k.prototype.D3=function(){if(this.xu!==m){var a=this;this.MK=(new Date).getTime()+this.xu;this.sD=setTimeout(function(){a.sD=r;a.sra()},this.xu)}else this.MK=m};k.prototype.MQ=function(){if(this.sD){clearTimeout(this.sD);this.sD=r}};k.prototype.O7=function(){if(this.MK!==m){this.MQ();this.xu=Math.max(1,this.MK-(new Date).getTime());this.MK=m}};k.prototype.sra=function(){var a=this.X;this.X=r;this.xu=m;this.trigger(new e(k.HN,{item:a}))};k.prototype.Yb=function(a){if(this.m!=
a){this.m=a;this.trigger(new e(k.bc,{state:this.m}))}};k.bc="playback state change";k.JN="item start";k.HN="item end";return k});
define("kn",["fd","bY","eL","V","r"],function(a,b,c,e,d){var f=a.extend(c,function(a){c.call(this);this.V=p;this.Ft=z;this.g=a;this.Tj=d.browser()==d.vs&&d.Xd()==d.GO?3:1;this.ke=this.SA=0});f.prototype.clear=function(){this.V=z;this.g=r;this.ke=this.SA=0};f.prototype.Ma=function(){this.Ft||(this.Ft=p,e.Ma(this.Dg,this))};f.prototype.Dg=function(a){this.V&&(this.SA++,this.ke+=a,this.SA==this.Tj?(this.SA=0,this.Ft=z,a=this.ke,this.ke=0,this.trigger(new b(f.Nk,{frameTime:a})),this.trigger(new b(f.Ok,
{frameTime:a})),this.g.render()):e.Ma(this.Dg,this))};f.Nk="frameStart";f.Ok="positionSet";return f});
define("fc","fd,lc,bY,eL,hb,ch,gX,gy,cl,gg,kn".split(","),function(a,b,c,e,d,f,g,k,i,n,j){var l=a.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.nf=new k(this.g);this.ta=new i(this.F);this.pc=new n(this.F,this.g);this.Ca=new g(this.F,this.g,this.pc);this.la=new f(this.g,this.pc);this.de=new j(this.g);this.jc=new d(this.g);this.pc.bind(n.Ja,this.Wc,this,p);this.nf.bind(k.IN,this.C6,this,p);this.nf.bind(k.XN,this.b7,this,p);this.nf.bind(k.xN,this.dC,this,p);this.ta.bind(i.JN,
this.D6,this);this.ta.bind(i.HN,this.B6,this);this.ta.bind(i.bc,this.oe,this,p);this.Ca.bind(g.Ja,this.Wc,this,p);this.Ca.bind(g.Js,this.cC,this,p);this.Ca.bind(g.Vp,this.fC,this,p);this.Ca.bind(g.Ks,this.eC,this,p);this.Ca.bind(g.Kk,this.ql,this,p);this.Ca.bind(g.Lk,this.ck,this,p);this.Ca.bind(g.o_,this.jna,this,p);this.Ca.bind(g.p_,this.kna,this,p);this.Ca.bind(g.BN,this.f6,this,p);this.la.bind(f.Ja,this.Wc,this,p);this.de.bind(j.Nk,this.jr,this,p);this.de.bind(j.Ok,this.kr,this,p)});l.prototype.clear=
function(){this.nf.clear();this.ta.clear();this.Ca.clear();this.la.clear();this.de.clear();this.jc.clear();this.pc.clear();this.pc.unbind(n.Ja,this.Wc,this);this.nf.unbind(k.IN,this.C6,this);this.nf.unbind(k.xN,this.dC,this);this.nf.unbind(k.XN,this.b7,this);this.ta.unbind(i.JN,this.D6,this);this.ta.unbind(i.HN,this.B6,this);this.ta.unbind(i.bc,this.oe,this);this.Ca.unbind(g.Ja,this.Wc,this);this.Ca.unbind(g.Js,this.cC,this);this.Ca.unbind(g.Vp,this.fC,this);this.Ca.unbind(g.Ks,this.eC,this);this.Ca.unbind(g.Kk,
this.ql,this);this.Ca.unbind(g.Lk,this.ck,this);this.Ca.unbind(g.BN,this.f6,this);this.la.unbind(f.Ja,this.Wc,this);this.de.unbind(j.Nk,this.jr,this);this.de.unbind(j.Ok,this.kr,this);this.F=this.g=this.pc=this.jc=this.de=this.la=this.Ca=this.ta=this.nf=r};l.prototype.SM=function(a,b){this.Ca.SM(a,b)};l.prototype.$xa=function(a){this.g.set("visible",p);this.nf.CZ(a)};l.prototype.Gv=function(){this.nf.FX();this.ta.stop();this.Ca.hide();this.la.end();this.jc.cea()};l.prototype.next=function(){this.nf.next()};
l.prototype.QY=function(){this.nf.QY()};l.prototype.stop=function(){this.ta.stop();this.jc.stop();this.nf.stop();this.la.stop()};l.prototype.play=function(){this.ta.play();this.jc.play();this.nf.play();this.la.play()};l.prototype.pause=function(){this.ta.pause();this.jc.pause();this.nf.pause();this.la.pause()};l.prototype.jna=function(){this.ta.pause();this.jc.pause();this.nf.pause();this.la.pause()};l.prototype.kna=function(){this.ta.play();this.jc.play();this.nf.play();this.la.play()};l.prototype.C6=
function(a){this.Ca.display(a.data.album,a.data.item)};l.prototype.b7=function(){this.play()};l.prototype.Wc=function(){this.de.Ma()};l.prototype.jr=function(a){this.la.Ep(a.data.frameTime)};l.prototype.kr=function(a){a=a.data.frameTime;this.Ca.Zb(a);this.pc.Zb(a);this.jc.Zb(a)};l.prototype.cC=function(a){this.la.start(a.data.item)};l.prototype.fC=function(a){var b=a.data.album,a=a.data.item,d=a.get("media");this.la.end(a);this.jc.Bya(d);this.trigger(new c(l.TN,{photoAlbum:b,item:a}))};l.prototype.eC=
function(a){var b=a.data.album,a=a.data.item;a.get("media");this.nf.qM(a);this.ta.qM(a);this.trigger(new c(l.SN,{photoAlbum:b,item:a}))};l.prototype.D6=function(a){this.jc.yya(a.data.item.get("media"))};l.prototype.B6=function(a){this.nf.Sva(a.data.item)};l.prototype.dC=function(a){this.ta.stop();this.jc.stop();this.trigger(new c(l.RN,{photoAlbum:a.data.album}))};l.prototype.ck=function(a){a=a.data.album;this.jc.CZ(a);this.ta.play();this.la.play();this.trigger(new c(l.Lk,{photoAlbum:a}))};l.prototype.ql=
function(a){a=a.data.album;this.jc.zya(a);this.trigger(new c(l.Kk,{photoAlbum:a}))};l.prototype.f6=function(){this.g.set("visible",z)};l.prototype.oe=function(a){this.trigger(new c(l.bc,{state:a.data.state}))};l.Lk="photoAlbumShow";l.RN="photoAlbumEnd";l.Kk="photoAlbumHide";l.SN="photoBegin";l.TN="photoEnd";l.bc="playbackStateChange";return l});
define("fO","require,jquery.mod,dm,je,ix,iO,r".split(","),function(a){function b(a,b){this.X=a;this.P=b;this.La=a.$c();this.Xa=a.Nd();this.sH=a.kR;this.hX=this.xB=0;this.Mj=1;this.ne=0;this.Z=p;this.lQ();this.dc=this.Xb=100;this.da=this.ca=0.5;this.ra=1;this.AC=p;this.sd=1;this.B3={};this.Z4={};this.haa=g.browser()!=g.wf}var c=a("jquery.mod"),e=a("dm"),d=a("je"),f=a("ix");a("iO");var g=a("r");b.prototype.lQ=function(){this.bG=c("<div></div>");var a={position:"absolute",left:"0",top:"0",width:this.Xb+
"px",height:this.dc+"px",overflow:"hidden","-webkit-transform":"translateZ(0)"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.bG.css(a);this.KO=c(f.qe(this.X.sj()));a={display:"block",position:"absolute",left:"0",top:"0",width:this.La+"px",height:this.Xa+"px"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.KO.css(a);this.bG.append(this.KO)};b.prototype.Cb=
R("bG");b.prototype.getItem=R("X");b.prototype.getX=R("ca");b.prototype.getY=R("da");b.prototype.$l=R("ra");b.prototype.Ba=function(){return Math.round(this.La*this.ra*this.sd)};b.prototype.gb=function(){return Math.round(this.Xa*this.ra*this.sd)};b.prototype.xd=function(a){if(this.Mj!=a){this.Mj=a;this.Z=p}};b.prototype.PL=R("Mj");b.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.Z=p}};b.prototype.Iv=function(a,b){if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.Z=p}};b.prototype.Fa=function(a,
b,c){if(this.ca!=a||this.da!=b||this.ra!=c){this.ca=a;this.da=b;this.ra=c;this.Z=p}};b.prototype.xj=function(a){if(this.ne!=a){this.ne=a;this.Z=p}};b.prototype.nxa=function(a){if(this.hX!=a){this.hX=a;this.Z=p}};b.prototype.render=function(){if(this.Z){this.Z=z;switch(this.Dd){case d.NONE:this.sd=1;break;case d.Qk:this.sd=this.Xb/this.La;break;case d.Wg:this.sd=this.dc/this.Xa;break;case d.km:this.sd=this.La*this.dc>this.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;default:this.sd=this.La*this.dc>
this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}var a=this.ra*this.sd,b=this.Xb*0.5-this.ca*this.La*a,c=this.dc*0.5-this.da*this.Xa*a,f=this.Xb*this.ne,g=function(a,b){return Math.round(a*Math.pow(10,b))*Math.pow(10,-b)},q={};q.width=g(this.Xb,0)+"px";q.height=g(this.dc,0)+"px";q.transform=this.haa?"translate3d("+g(f,2)+"px, 0px, 0px)":"translate("+g(f,2)+"px, 0px)";q["-moz-transform"]=q["-webkit-transform"]=q["-ms-transform"]=q.transform;q["z-index"]=this.hX;if(this.Mj==0)q.display="none";else{q.display=
"block";if(this.Mj==1){q.filter=q["-ms-filter"]="";q.opacity=""}else{q.filter=q["-ms-filter"]="alpha(opacity="+Math.round(this.Mj*100)+")";q.opacity=this.Mj}}f=[];if(this.haa){f.push("translate3d("+g(b,2)+"px, "+g(c,2)+"px, 0px)");f.push("scale3d("+a+", "+a+", "+a+")");if(this.sH){f.push("translate3d("+this.La+"px, 0, 0)");f.push("scale3d(-1, 1, 1)")}}else{f.push("translate("+g(b,2)+"px, "+g(c,2)+"px)");f.push("scale("+a+", "+a+")");if(this.sH){f.push("translate("+this.La+"px, 0)");f.push("scale(-1, 1)")}}a=
{};a["-moz-transform"]=a["-webkit-transform"]=a["-ms-transform"]=a.transform=f.join(" ");if(!e.isEqual(this.B3,q)){this.B3=q;this.bG.css(q)}if(!e.isEqual(this.Z4,a)){this.Z4=a;this.KO.css(a)}}};return b});
define("gf","require,jquery.mod,dm,fd,lc,gb,ix,fO,R,d".split(","),function(a){var b=a("jquery.mod"),c=a("dm"),e=a("fd"),d=a("lc"),f=a("gb"),g=a("ix"),k=a("fO"),i=a("R"),n=a("d"),a=e.extend(n,function(){n.call(this);this.Xc("Renderer");this.set("toolTipDisabled",p);this.set("cursor",i.$v);this.bind(d.yb,this.nb,this,p);this.bind(d.nd,this.hh,this,p);this.bind(d.zd,this.eh,this,p);this.zu=z;this.Jb=[];this.sK=this.lp=z;this.$T=b("<div/>");this.$T.css({position:"absolute",left:0,top:0,right:0,bottom:0,
overflow:"hidden","-webkit-transform":"translateZ(0)"});this.Pa().append(this.$T)});a.prototype.zn=function(a){g.zn(a,f.Jj)};a.prototype.ti=function(a){g.ti(a,f.Jj)};a.prototype.lX=function(a){a=new k(a,this);a.Iv(this.Ba(),this.gb());a.Fa(0.5,0.5,0,1);this.$T.append(a.Cb());this.Jb.push(a);this.lp=p};a.prototype.removeItem=function(a){if(a=this.fl(a)){this.Jb=c.without(this.Jb,a);a.Cb().detach();this.lp=p}};a.prototype.rX=function(a){if(a=this.fl(a)){this.Jb=c.without(this.Jb,a);this.Jb.push(a);
this.lp=p}};a.prototype.Lxa=function(a,b){this.fl(a).rs(b)};a.prototype.em=function(a,b){this.fl(a).xd(b)};a.prototype.Ixa=function(a,b){this.fl(a).xj(b)};a.prototype.eF=function(a,b,c,d){this.fl(a).Fa(b,c,d)};a.prototype.yE=function(a){return this.fl(a).getX()};a.prototype.zE=function(a){return this.fl(a).getY()};a.prototype.rba=function(a){return this.fl(a).$l()};a.prototype.xE=function(a){return this.fl(a).Ba()};a.prototype.wE=function(a){return this.fl(a).gb()};a.prototype.render=function(){if(this.zu){this.ysa();
this.Fqa();for(var a=0;a<this.Jb.length;a++)this.Jb[a].render()}};a.prototype.ysa=function(){if(this.sK){this.sK=z;for(var a=this.Ba(),b=this.gb(),c=0;c<this.Jb.length;c++)this.Jb[c].Iv(a,b)}};a.prototype.Fqa=function(){if(this.lp){this.lp=z;for(var a=[],b=0;b<this.Jb.length;b++){var c=this.Jb[b],d={};d.rM=c.xB;d.index=b;d.vf=c;a.push(d)}a.sort(function(a,b){return a.rM==b.rM?a.index-b.index:a.rM-b.rM});for(b=0;b<a.length;b++)a[b].vf.nxa(b+1)}};a.prototype.fl=function(a){if(this.Lza==a)return this.Kza;
for(var b=r,c=0;c<this.Jb.length&&!b;c++)this.Jb[c].getItem()==a&&(b=this.Jb[c]);return b};a.prototype.nb=function(){this.sK=p;this.render()};a.prototype.hh=function(){this.zu=p;this.render()};a.prototype.eh=function(){this.zu=z};return a});
define("hI","require,fd,bY,dT,jK,ct,di,fc,jZ,gf,dk,lc".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("dT"),d=a("jK"),f=a("ct"),g=a("di"),k=a("fc"),i=a("jZ"),n=a("gf"),j=a("dk"),l=a("lc"),a=b.extend(g,function(){g.call(this,"photoAlbum");this.QK=this.ZT=this.rh=z;this.q=this.g=r;this.xha=new d(this,"buttonNext",j.Tc);this.xha.bind(l.T,this.U6,this);this.yha=new d(this,"buttonPrevious",j.Tc);this.yha.bind(l.T,this.g7,this);this.qd=b.An(this.qf,this)});e.A("PhotoAlbumPlayer",a).B("Object").L({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]]"}).Rg({next:function(){this.U6()},pause:function(){this.Dx()},play:function(){this.Ex()},previous:function(){this.g7()},stop:function(){this.ku()},restart:function(){this.ju()}}).Vb([f.yf,f.Bh,l.zc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "photoAlbum":this.ZT=
p;this.qd();break;case "viewerArea":this.rh=p;this.qd();break;case "touchTransition":case "mouseTransition":case "touchTransitionDuration":case "mouseTransitionDuration":case "transitionDuration":this.QK=p;this.qd()}g.prototype.set.call(this,a,b)}};a.prototype.qf=function(){if(this.rh){this.rh=z;this.QK=p;this.vt();this.get("viewerArea")&&this.tt();this.pK(this.get("viewerArea"))}if(this.g&&this.ZT){this.ZT=z;if(this.get("photoAlbum")){this.QJ();this.q.$xa(this.get("photoAlbum"))}else this.q.Gv()}if(this.QK){this.QK=
z;this.baa()}};a.prototype.lD=function(){this.set("photoAlbum",r)};a.prototype.tt=function(){var a=this.get("viewerArea");this.g=new n;this.g.N({left:0,top:0,bottom:0,right:0});a.ma(this.g);this.q=new k(a,this.g);this.baa();this.q.bind(k.Lk,this.ck,this);this.q.bind(k.Kk,this.ql,this);this.q.bind(k.RN,this.dC,this);this.q.bind(k.SN,this.Z6,this);this.q.bind(k.TN,this.a7,this);this.q.bind(k.bc,this.oe,this);this.fy(p)};a.prototype.vt=function(){if(this.g){this.q.unbind(k.Lk,this.ck,this);this.q.unbind(k.Kk,
this.ql,this);this.q.unbind(k.RN,this.dC,this);this.q.unbind(k.SN,this.Z6,this);this.q.unbind(k.TN,this.a7,this);this.q.unbind(k.bc,this.oe,this);this.q.clear();this.g.getParent().removeChild(this.g);this.g=r;this.fy(z)}};a.prototype.baa=function(){var a=this.get("viewerArea");a&&this.q&&(a.Yj?this.q.SM(this.get("touchTransition",i.im),this.get("touchTransitionDuration",a.get("transitionDuration",1E3))):this.q.SM(this.get("mouseTransition",i.im),this.get("mouseTransitionDuration",a.get("transitionDuration",
1E3))))};a.prototype.oe=function(a){this.Yb(a.data.state)};a.prototype.ck=function(a){this.zI(a.data.photoAlbum)};a.prototype.ql=function(a){this.yI(a.data.photoAlbum)};a.prototype.dC=function(a){a.data.photoAlbum.trigger(new c(l.Da))};a.prototype.Z6=function(a){a.data.item.Dy()};a.prototype.a7=function(a){a.data.item.end()};a.prototype.Io=function(a){this.g.getParent().N({progressPercent:a.data.percent,progressVisible:p})};a.prototype.Cx=function(){this.g.getParent().set("progressVisible",z)};a.prototype.U6=
function(){this.q&&this.get("photoAlbum")&&this.q.next()};a.prototype.g7=function(){this.q&&this.get("photoAlbum")&&this.q.QY()};a.prototype.lh=function(){this.q&&this.get("photoAlbum")&&this.q.play()};a.prototype.qk=function(){this.q&&this.get("photoAlbum")&&this.q.stop()};a.prototype.xl=function(){this.q&&this.get("photoAlbum")&&this.q.pause()};return a});
define("fa",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("PhotoAlbumPlayListItem",a).B("PlayListItem").L({media:"PhotoAlbum",player:"PhotoAlbumPlayer"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.yf,this.ck,this),a.set("photoAlbum",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&(a.unbind(c.yf,this.ck,this),a.get("photoAlbum")==this.get("media")&&a.set("photoAlbum",r));e.prototype.stop.call(this)};
a.prototype.rF=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].rF())}e.prototype.rF.call(this)};a.prototype.ck=function(){this.get("player").unbind(c.yf,this.ck,this);this.get("player").bind(c.Bh,this.ql,this);this.Dy()};a.prototype.ql=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Bh,this.ql,this),this.end())};return a});
define("iM","require,fd,gb,dT,gK,z".split(","),function(a){var b=a("fd"),c=a("gb"),e=a("dT"),d=a("gK");a("z");a=b.extend(d,function(){d.call(this,c.rfa)});e.A("PhotoAudio",a).B("MediaAudio");return a});define("ki",["fd","iU","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("PhotoCamera",a).B("Object").L({scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]"});return a});
define("dJ","require,dm,fd,iU,bY,dT,hd,lc".split(","),function(a){var b=a("dm"),c=a("fd"),e=a("iU"),d=a("bY"),f=a("dT"),g=a("hd"),k=a("lc"),a=c.extend(e,function(){this.td=-1;this.Oc=[];this.EC=this.ml=this.hg=m;e.call(this)});f.A("PlayList",a).B("Object").L({items:"array[PlayListItem]",selectedIndex:"number"}).Wf([k.pN]).Vb([k.aa]);a.prototype.set=function(a,b){a=="selectedIndex"?this.lqa(b):a=="items"?this.Zpa(b):e.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a=="selectedIndex"?
this.td:a=="items"?this.Oc:e.prototype.get.call(this,a,b)};a.prototype.Zpa=function(a){a=a||[];if(!b.isEqual(this.Oc,a)){var c=this.td;this.Oc=a;a=this.K8(this.td);this.trigger(new d(k.pN,{nextSelectedIndex:a}));this.td=a;this.s9(this.Kq(this.td));this.W$();this.trigger(new d(k.aa,{previousSelectedIndex:c}));e.prototype.set.call(this,"items",this.Oc);e.prototype.set.call(this,"selectedIndex",this.td)}};a.prototype.lqa=function(a){a=this.K8(a);if(this.td!=a){var b=this.td;this.trigger(new d(k.pN,{nextSelectedIndex:a}));
this.td=a;this.s9(this.Kq(this.td));this.W$();this.trigger(new d(k.aa,{previousSelectedIndex:b}));e.prototype.set.call(this,"selectedIndex",this.td)}};a.prototype.K8=function(a){return Math.max(-1,Math.min(this.Oc.length-1,a))};a.prototype.Kq=function(a){return a>=0?this.Oc[a]:r};a.prototype.s9=function(a){if((this.hg!=a||this.ml!==m)&&this.ml!==a)if(this.ml===m){this.ml=a;if(this.hg)if(this.ml&&this.hg.get("player")==this.ml.get("player")){this.hg.rF();this.iu()}else this.hg.stop();else this.iu()}else this.ml=
a};a.prototype.iu=function(){if(this.hg){this.hg.unbind(k.Jk,this.CT,this);this.hg.unbind(k.je,this.iu,this);this.hg.unbind(k.Da,this.iu,this)}if(this.ml){this.hg=this.ml;this.ml=m;this.hg.bind(k.Jk,this.CT,this);this.hg.bind(k.je,this.iu,this);this.hg.start()}else{this.ml=this.hg=m;this.set("selectedIndex",-1)}};a.prototype.CT=function(){this.hg.unbind(k.Jk,this.CT,this);this.hg.unbind(k.je,this.iu,this);this.hg.bind(k.Da,this.iu,this)};a.prototype.W$=function(){this.EC&&g.wM(this.EC.get("media"),
-1);(this.EC=this.Oc&&this.td>=0?this.Oc[(this.td+1)%this.Oc.length]:r)&&g.wM(this.EC.get("media"),1)};return a});define("hR",["fd","dT","dJ"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayList",a).B("PlayList").L({items:"array[PhotoPlayListItem]"});return a});define("if",["fd","dT","dj"],function(a,b,c){a=a.extend(c,function(){c.call(this)});b.A("PhotoPlayListItem",a).B("PlayListItem").L({media:"Photo",camera:"PhotoCamera"});return a});
define("eD",["require","dm","fd","eQ","dT"],function(a){a("dm");var b=a("fd"),c=a("eQ"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PlaybackBar",b).B("UIComponent").L({barBackgroundColor:"or[array[color], color]",barBackgroundColorDirection:"enum[horizontal, vertical]",barBackgroundColorRatios:"array[number]",barBorderColor:"color",barBorderRadius:"number",barBorderSize:"number",barOpacity:"number",playheadBackgroundColor:"or[array[color], color]",playheadBackgroundColorDirection:"enum[horizontal, vertical]",
playheadBackgroundColorRatios:"array[number]",playheadBorderColor:"color",playheadBorderRadius:"number",playheadBorderSize:"number",playheadOpacity:"number",playheadWidth:"or[number, percent]",playheadHeight:"or[number, percent]",playheadShadow:"bool",playheadShadowBlurRadius:"number",playheadShadowColor:"color",playheadShadowHorizontalLength:"number",playheadShadowOpacity:"number",playheadShadowSpread:"number",playheadShadowVerticalLength:"number",stepBackgroundColor:"or[array[color], color]",stepBackgroundColorDirection:"enum[horizontal, vertical]",
stepBackgroundColorRatios:"array[number]",stepBorderColor:"color",stepBorderRadius:"number",stepBorderSize:"number",stepOpacity:"number",stepWidth:"or[number, percent]",stepHeight:"or[number, percent]",stepShadow:"bool",stepShadowBlurRadius:"number",stepShadowColor:"color",stepShadowHorizontalLength:"number",stepShadowOpacity:"number",stepShadowSpread:"number",stepShadowVerticalLength:"number",selectedStepBackgroundColor:"or[array[color], color]",selectedStepBackgroundColorDirection:"enum[horizontal, vertical]",
selectedStepBackgroundColorRatios:"array[number]",selectedStepBorderColor:"color",selectedStepBorderRadius:"number",selectedStepBorderSize:"number",selectedStepOpacity:"number",selectedStepWidth:"or[number, percent]",selectedStepHeight:"or[number, percent]",selectedStepShadow:"bool",selectedStepShadowBlurRadius:"number",selectedStepShadowColor:"color",selectedStepShadowHorizontalLength:"number",selectedStepShadowOpacity:"number",selectedStepShadowSpread:"number",selectedStepShadowVerticalLength:"number",
position:"number",duration:"number",steps:"number",selectedStep:"number"});return b});
define("jU",["require"],function(){function a(a){try{for(var d=(c.JE<<12)+c.NE&65535,f="",g=0,k=a.length;g<k;)var i=b.indexOf(a.charAt(g++))<<12|b.indexOf(a.charAt(g++))<<6|b.indexOf(a.charAt(g++))<<0,i=i-d+65536&65535,f=f+String.fromCharCode(i);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={Sta:"true"};c.JE=parseInt("0")||
0;c.NE=parseInt("1460")||1;c.Aya="true";c.name=a("AXnAX4AYKAYdAYnAYoAYVAXUAYEAYgAYVAYtAYZAYm");c.wea=a("");return c});define("bh",[],function(){return{oa:"left",Ka:"right",jb:"top",ib:"bottom"}});
define("cH",["fd","dw","N","bh"],function(a,b){var c=a.extend(b,function(){b.call(this)});c.prototype.YA=S(0);c.prototype.ZA=S(0);c.prototype.ky=function(){b.prototype.ky.call(this);this.Eq(function(a){a.Ze(p)})};c.prototype.Yo=function(){b.prototype.Yo.call(this);this.Eq(function(a){a.jF(this.YA(a,this.ds()));a.kF(this.ZA(a,this.ds()))})};c.prototype.iy=function(){this.Eq(function(a){a.jF(this.YA(a,1));a.kF(this.ZA(a,1))});b.prototype.iy.call(this)};c.prototype.jy=function(){this.Eq(function(a){a.jF(this.YA(a,
0));a.kF(this.ZA(a,0))});b.prototype.jy.call(this)};return c});
define("dC",["fd","cH","bh"],function(a,b,c){a=a.extend(b,function(){b.call(this)});a.prototype.YA=function(a,b){switch(this.get("from")){case c.jb:case c.ib:return 0;case c.oa:var f=a.ca,g=a.Ba();return isNaN(g)||isNaN(f)?1E4:(-f-g)*(1-b);default:f=a.getParent();if(!f)return 0;g=f.Gd();f=a.ca;return isNaN(f)||isNaN(g)?1E4:(g-f)*(1-b)}};a.prototype.ZA=function(a,b){switch(this.get("from")){case c.jb:var f=a.da,g=a.gb();return isNaN(g)||isNaN(f)?1E4:(-f-g)*(1-b);case c.ib:f=a.getParent();if(!f)return 0;
g=f.Fd();f=a.da;return isNaN(f)||isNaN(g)?1E4:(g-f)*(1-b);default:return 0}};a.prototype.jy=function(){this.Eq(function(a){a.jF(0);a.kF(0);a.Ze(z)})};return a});
define("fM",["fd","cH","N","bh"],function(a,b,c,e){a=a.extend(b,function(){b.call(this)});a.prototype.YA=function(a,b){switch(this.get("to")){case e.jb:case e.ib:return 0;case e.oa:var c=a.ca,k=a.Ba();return isNaN(k)||isNaN(c)?1E4:(-c-k)*b;default:c=a.getParent();if(!c)return 0;k=c.Gd();c=a.ca;return isNaN(c)||isNaN(k)?1E4:(k-c)*b}};a.prototype.ZA=function(a,b){switch(this.get("to")){case e.jb:var c=a.da,k=a.gb();return isNaN(k)||isNaN(c)?1E4:(-c-k)*b;case e.ib:c=a.getParent();if(!c)return 0;k=c.Fd();
c=a.da;return isNaN(c)||isNaN(k)?1E4:(k-c)*b;default:return 0}};a.prototype.iy=function(){this.Eq(function(a){a.jF(0);a.kF(0);a.Ze(z)})};return a});
define("A","require,jquery.mod,fd,lc,lb,r,ew,jP,cj,c,kJ,dC,fM,hK".split(","),function(a){function b(a){try{return window.localStorage.getItem(a)}catch(b){}}var c=a("jquery.mod"),e=a("fd"),d=a("lc"),f=a("lb"),g=a("r"),k=a("ew"),i=a("jP"),n=a("cj"),j=a("c"),l=a("kJ"),q=a("dC"),o=a("fM"),t=a("hK"),a=e.extend(l,function(a){l.call(this);this.qb=a;this.Zf=this.dt=this.oq=this.fi=r;a=new q;a.set("duration",500);a.set("from","bottom");a=new o;a.set("duration",500);a.set("to","bottom");this.N({creationPolicy:n.Ps,
verticalAlign:i.rc,horizontalAlign:i.Kc,visible:z,showEffect:this.Qza,hideEffect:this.Rza});this.PV="";a=this.bla();if(a===p)setTimeout(function(){this.trigger(d.Xv)}.bind(this),0);else if(a===m){this.qb.bind(d.D("cookiesPolicy"),this.W2,this);setTimeout(function(){this.W2()}.bind(this),0)}});a.prototype.Ia=function(){l.prototype.Ia.call(this);this.N({backgroundColor:"#1a1a1a",width:"100%",left:0,bottom:0});if(this.fi==r){this.fi=new t;this.fi.N({content:this.PV,fontColor:"#ffffff",fontWeight:"400",
fontFamily:"Open Sans, Arial, sans-serif",width:"100%"});this.ma(this.fi)}if(this.oq==r){this.oq=new l;this.ma(this.oq);this.oq.N({creationPolicy:n.Ps,verticalAlign:i.rc,layout:j.we})}if(this.dt==r){this.dt=new k;this.dt.N({backgroundColor:"#2aabe2",fontColor:"#ffffff",fontFamily:"Open Sans, Arial, sans-serif",label:f("accept").toUpperCase(),verticalAlign:"middle"});this.oq.ma(this.dt);this.dt.bind(d.T,this.oha,this,p)}if(this.Aw==r){this.Aw=new k;this.Aw.N({backgroundColor:"#1a1a1a",fontColor:"#808080",
fontFamily:"Open Sans, Arial, sans-serif",label:f("reject").toUpperCase(),textDecoration:"underline",verticalAlign:"middle"});this.oq.ma(this.Aw);this.Aw.bind(d.T,this.Aha,this,p)}};a.prototype.Qm=function(){l.prototype.Qm.apply(this,arguments);var a=this.Ua();if(a){a.bind(d.yb,this.Vm,this,p);this.Vm()}};a.prototype.Vm=function(){var a=this.Ua();if(a){var b=g.Wa(),c=a.gb()>a.Ba(),d=Math.min(a.Ba(),a.gb())/100,a=function(a){return Math.round(a*d)};this.N({gap:b?a(4.63):20,paddingLeft:b?a(4.63):20,
paddingRight:b?a(4.63):20,paddingTop:b?a(4.63):14,paddingBottom:b?a(4.63):14,layout:b&&c?j.df:j.we});this.fi&&this.fi.N({fontSize:b?a(3.15):14,textAlign:b&&c?"center":"left"});this.oq&&this.oq.N({gap:b?0:13});this.dt&&this.dt.N({borderRadius:b?a(4.63):15,fontSize:b?a(3.15):14,height:b?a(9.26):30,paddingLeft:b?a(6):20,paddingRight:b?a(6):20});this.Aw&&this.Aw.N({borderRadius:b?a(4.63):15,fontSize:b?a(3.15):14,height:b?a(9.26):30,paddingLeft:b?a(6):20,paddingRight:b?a(6):20});this.Jc()}};a.prototype.W2=
function(){var a=e.toArray(this.qb.get("cookiesPolicy"));if(this.zC!=a){this.zC=a;this.kpa()}};a.prototype.kpa=function(){if(this.zC.length==0)this.lV(r);else{var a=this.zC[0];e.toArray(a.get("geographicArea")).length==0?this.lV(a):this.Bka(function(a){for(var b=r,c=0;c<this.zC.length&&!b;c++){var d=this.zC[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.lV(b)}.bind(this))}};a.prototype.lV=function(a){if(this.Qx!==a){this.Qx&&
this.Qx.unbind(d.D("url"),this.HW,this);if(this.Qx=a){this.Qx.bind(d.D("url"),this.HW,this);this.HW();this.set("visible",p)}else{this.trigger(d.Xv);this.set("visible",z)}}};a.prototype.HW=function(){var a=c(document.createElement("div")).html(f("cookies-notice"));a.find("a").css({color:"#2aabe2",cursor:"pointer","text-decoration":"underline"}).attr({href:this.Qx.get("url"),target:"_blank"});this.PV=a.html();this.fi&&this.fi.set("content",this.PV)};a.prototype.oha=function(){this.t9(p);this.set("visible",
z);this.trigger(d.Xv)};a.prototype.Aha=function(){this.t9(z);this.set("visible",z)};var s=["AT","BE","BG","CY","CZ","DE","DK","EE","EL","ES","FI","FR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"];a.prototype.Bka=function(a){this.ska(function(b){var c=[b];s.indexOf(b)&&c.push("EU");a(c)})};a.prototype.ska=function(a){var d=b("tdvp_country_code");if(d)a(d);else if(!this.J3){this.J3=p;c.get("https://geoloc.3dvista.com",function(b){this.J3=z;b=b.country.toUpperCase();try{window.localStorage.setItem("tdvp_country_code",
b)}catch(c){}a(b)}.bind(this))}};var u="tdvp_accept_cookies_"+window.location.origin+window.location.pathname;a.prototype.bla=function(){var a=b(u);if(a=="yes")return p;if(a=="no")return z};a.prototype.t9=function(a){try{window.localStorage.setItem(u,a?"yes":"no")}catch(b){}};return a});
define("jc",["require"],function(){function a(a){var b=a instanceof Request||a instanceof Response?a.url:a;b&&(b=b.split("#")[0]);b&&(b=b.split("?")[0]);return!b||-1!=b.indexOf("://")?Promise.resolve(b):("undefined"!==typeof window?Promise.resolve(window.location.href):clients.matchAll({type:"window"}).then(function(a){if(a.length)return a[0].url})).then(function(a){return(new URL(b,a)).toString()})}function b(a,b){return new Promise(function(c,e){(b===m?d():Promise.resolve(b)).then(function(b){(window.webkitRequestFileSystem||
window.requestFileSystem)(b?PERSISTENT:TEMPORARY,a,function(a){c(a)},function(a){console.log("Error getting file system access",a);e("error getting file system")})},function(a){console.log("error getting file system access",a);e("error getting file system")})})}function c(a,b){return a&&a.queryUsageAndQuota?new Promise(function(c,d){a.queryUsageAndQuota(function(e,f){console.log("UsedBytes:",e,"grantedBytes:",f,"freeBytesRequired:",b);var g=e+b;f>=g?c(g):a==navigator.webkitPersistentStorage||a==navigator.persistentStorage?
(console.log("requestQuota:",g),a.requestQuota(g,function(){console.log("Granted bytes:",g);c(g)},function(a){console.log("Not granted bytes:",g,a);d("not enough free space granted")})):(console.log("Not enough temporary free space."),d("not enough free space granted"))},function(a){console.log("Query quota error:",a);a&&a.message&&(a=a.message);d("not enough free space granted: "+a)})}):Promise.reject("unknown free space")}function e(){return(navigator.storage&&navigator.storage.persist?navigator.storage.persist():
Promise.resolve(z)).then(function(a){console.log("Persistence granted:",a);return a?navigator.webkitPersistentStorage||navigator.persistentStorage:navigator.webkitTemporaryStorage||navigator.temporaryStorage})}function d(){return navigator.storage&&navigator.storage.persisted?navigator.storage.persisted():Promise.resolve(z)}function f(){return!v?Promise.reject("files uninitialized, no space was requested"):Promise.resolve(v)}function g(a){a.length&&"/"==a[0]&&(a=a.substr(1));return a.split("/").filter(function(a){return""!=
a})}function k(a){return new Promise(function(b,c){a.remove(function(){b()},function(a){c("can't remove entry"+(a&&a.message?": "+a.message:"")+".")})})}function i(a){return n(a).then(function(a){return Promise.all(a.map(function(a){return a.isDirectory?i(a):k(a)}))}).then(function(){return k(a).then(function(){return Promise.resolve()},function(){return Promise.resolve()})})}function n(a){return new Promise(function(b,c){a.createReader().readEntries(function(a){b(a)},function(){c("can't list directory")})})}
function j(a,b,c){return new Promise(function(d,e){a.getDirectory(b,c,function(a){d(a)},function(){e("can't get directory entry: "+b)})})}function l(a,b){return new Promise(function(c,d){j(a,b,{create:z}).then(function(a){c(a)})["catch"](function(){j(a,b,{create:p}).then(function(a){c(a)})["catch"](function(a){console.log("Can't create directory entry: "+b,a);d("can't create directory entry: "+b)})})})}function q(a,b){return 0==b.length?a:l(a,b[0]).then(function(a){return q(a,b.slice(1))})}function o(a,
b){return 0==b.length?a:j(a,b[0]).then(function(a){return o(a,b.slice(1))})}function t(a,b,c){return new Promise(function(d,e){a.getFile(b,c,function(a){d(a)},function(){e("can't get file entry: "+b)})})}function s(a){return new Promise(function(b,c){a.createWriter(function(a){b(a)},function(){c("can't create File for writing: "+path)})})}function u(a){var b=a.lastIndexOf(".");switch((0>b?"":a.substr(b)).toLowerCase()){case ".bmp":return"image/bmp";case ".eot":return"application/vnd.ms-fontobject";
case ".gif":return"image/gif";case ".htm":case ".html":return"text/html";case ".jpeg":case ".jpg":return"image/jpeg";case ".js":return"text/javascript";case ".json":return"application/json";case ".m3u8":return"application/vnd.apple.mpegurl";case ".m4a":return"audio/mp4";case ".m4v":return"video/mp4";case ".mp3":return"audio/mpeg";case ".mp4":return"video/mp4";case ".ogg":return"audio/ogg";case ".ogv":return"video/ogg";case ".otf":return"font/otf";case ".png":return"image/png";case ".svg":return"image/svg+xml";
case ".tif":return"image/tiff";case ".tiff":return"image/tiff";case ".ts":return"video/vnd.dlna.mpeg-tts";case ".ttf":return"application/font-sfnt";case ".tts":return"video/vnd.dlna.mpeg-tts";case ".txt":return"text/plain";case ".webm":return"video/webm";case ".woff":return"font/x-woff";case ".woff2":return"font/woff2";case ".xml":return"text/xml";default:return"application/octet-stream"}}var v=r;return{AM:function(){return d()},toURL:function(b,c){return a(b).then(function(a){var a=new URL(a),b=
c?"persistent":"temporary",d=a.pathname.split("/").map(encodeURIComponent).join("/");return"filesystem:"+a.origin+"/"+b+d})},Swa:function(a){return e().then(function(b){return c(b,a)}).then(function(a){return b(a)}).then(function(a){v=a})},Lwa:function(a){var a=g(a),b=a[a.length-1],c=a.slice(0,-1);return f().then(function(a){return o(a.root,c)}).then(function(a){return t(a,b,{create:p})},function(){return Promise.resolve(r)}).then(function(a){return a&&k(a)})},hda:function(a,c){var d=g(a);return b(1024,
c).then(function(a){return o(a.root,d)}).then(function(a){return i(a)},function(){return Promise.resolve()})},xea:function(a,b,c){var d=g(a),e=d[d.length-1],i=d.slice(0,-1);return f().then(function(a){return q(a.root,i)}).then(function(a){return t(a,e,{create:z}).then(function(a){return Promise.resolve(a)},function(){return t(a,e,{create:p})})}).then(function(a){return s(a)}).then(function(d){d.seek(d.length);return new Promise(function(f,g){d.onwriteend=function(){f()};d.onerror=function(b){console.log("Error writing file:",
a,b);g("error writing file: "+a)};d.write(new Blob([b],{type:c||u(e)}))})})}}});
define("bW",["require","jc","jk","r"],function(a){function b(a,b){this.Br=a;this.KP=z;this.JC=r;this.No=b||C()}function c(a){return a.Rv>=f}var e=a("jc"),d=a("jk"),f=1048576,g=10485760,k=a("r").se()?3:5,a={File:function(a,b){this.url=a;this.Rv=b;this.XE=this.Gy=0}},i=a.Files=function(a,b,c,d){this.j2=this.cha=a;this.Jm=b.slice();this.I3=[];var e=0;this.Jm.sort(function(a,b){return a.Rv-b.Rv});this.Jm.forEach(function(a){e+=a.Rv});this.m$=e;this.yt=[];this.CG=m;this.ym=[];this.LP=z;this.Td=c||C();
this.OA=d||C()};i.prototype.jn=function(){return this.Xha().then(function(){return this.Yha()}.bind(this))};i.prototype.Xha=function(){return caches["delete"](this.j2)};i.prototype.Yha=function(){var a=(new d(this.cha)).pathname;return e.hda(a,z).then(function(){return e.hda(a,p)})};i.prototype.requestStorage=function(){return e.Swa(Math.round(1.1*this.m$+10485760)).then(function(){return e.AM()})};i.prototype.download=function(){this.LP=z;this.CG=0;this.jn().then(function(){this.MA()}.bind(this))["catch"](function(a){console.log("error cleaning storage",
a);e.AM().then(function(a){this.OA(z,a)}.bind(this))}.bind(this))};i.prototype.cancelDownload=function(){this.LP=p;this.ym.forEach(function(a){a.cancel()});this.jn()};i.prototype.MA=function(){if(!(this.LP||this.ym.length>=k))if(0<this.Jm.length){var a;if(1==k)a=0.5<Math.random()?this.Jm.shift():this.Jm.pop();else if(0==this.yt.filter(c).length)a=this.Jm.pop();else{if(c(this.Jm[0]))return;a=this.Jm.shift()}this.yt.push(a);var f=d.$u(a.url,"nc="+(new Date).getTime()),g=new b(f,function(b){a.Gy=b.Gy;
this.Rl()}.bind(this));this.ym.push(g);g.fetch().then(function(b){return this.$qa(a.url,b)}.bind(this)).then(function(){this.w3(a,g,p)}.bind(this))["catch"](function(b){console.log("download error",a.url,a.Rv,a.Gy,b);this.w3(a,g,z)}.bind(this));this.MA()}else if(0==this.ym.length){var i=5>=this.I3.length;e.AM().then(function(a){this.OA(i,a)}.bind(this))}};i.prototype.w3=function(a,b,d){d?(this.yt.splice(this.yt.indexOf(a),1),this.ym.splice(this.ym.indexOf(b),1),this.CG+=a.Rv,this.Rl(),this.MA()):
(a.Gy=0,a.XE+=1,this.Rl(),20<=a.XE?(console.log("Error downloading file: "+a.url+" after "+a.XE+" retries."),this.k5(a.url)?(this.I3.push(a),this.ym.splice(this.ym.indexOf(b),1),this.MA()):(this.cancelDownload(),e.AM().then(function(a){this.OA(z,a)}.bind(this)))):(console.log("Error downloading file: "+a.url+" attempt "+a.XE+" of 20. Will retry in 2000ms."),setTimeout(function(){this.yt.splice(this.yt.indexOf(a),1);this.ym.splice(this.ym.indexOf(b),1);c(a)?this.Jm.push(a):this.Jm.splice(0,0,a);this.MA()}.bind(this),
2E3)))};i.prototype.$qa=function(a,b){return this.bra(a,b).then(function(){if(!this.k5(a))return this.ara(a,b)}.bind(this))};i.prototype.ara=function(a,b){b=b.clone();return 200!=b.status?Promise.reject("response status: "+b.status):caches.open(this.j2).then(function(c){return c.put(a,b)})};i.prototype.bra=function(a,b){b=b.clone();if(200!=b.status)return Promise.reject("response status: "+b.status);var c=(new d(a)).pathname;return c.lastIndexOf("/")==c.length-1?Promise.resolve():new Promise(function(a,
d){function f(){F.read().then(function(b){var c=b.value,d=[];if(c){for(;c.length+y>=g;){var e=c.slice(0,g-y);n.push(e);d.push(i(n));n=[];y=0;c=c.slice(e.length,c.length)}0<c.length&&(n.push(c),y+=c.length)}var l=b.done;y&&l&&d.push(i(n));j(d).then(function(){l?a():f()})["catch"](k)})["catch"](k)}function i(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.xea(c,b).then(function(){j(a)})}function k(a){console.log("Error writing response to file system:",a);e.Lwa(c).then(function(){d("Error reading response body")})}var n=[],y=0,F=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(",");i.prototype.k5=function(a){var a=(new d(a)).pathname,b="."+a.split(".").pop().toLowerCase();return 0<=n.indexOf(b)&&
0>a.indexOf("loading/")};i.prototype.Rl=function(){var a=this.CG;this.yt.forEach(function(b){a+=b.Gy});this.Td(100*a/this.m$)};b.prototype.fetch=function(){return fetch(this.Br).then(function(a){if(this.KP)return a.body.getReader().cancel(),Promise.reject("cancel requested before server responded.");if(!a.ok)return Promise.resolve(a);var b=a.headers.get("content-length"),c=m,d=0;b!==r&&(c=parseInt(b,10));this.JC=a.body.getReader();var e=z,f=function(a){this.KP?a.close():e=p}.bind(this),g=function(a){return this.JC.read().then(function(b){var e=
b.value;e&&(d+=e.byteLength,a.enqueue(e));b.done&&(c=d,i(a));this.No({Rv:c,Gy:d})}.bind(this))["catch"](function(b){console.log("Error reading response",b);a.error(b)}.bind(this))}.bind(this),i=function(a){e&&(a.close(),e=z,this.JC=r)}.bind(this);return new Response(new ReadableStream({start:function(a){return f(a)},pull:function(a){return g(a)},cancel:function(){i()}}))}.bind(this))};b.prototype.cancel=function(){this.KP=p;this.JC&&this.JC.cancel()};a.jn=function(a){return(new i(a,[])).jn()};return a});
define("dL","require,fd,jquery.mod,lc,eL,r,bW,jc,jv,jk,iC,cI".split(","),function(a){function b(a){o=a}var c=a("fd"),e=a("jquery.mod"),d=a("lc"),f=a("eL"),g=a("r"),k=a("bW"),i=a("jc"),n=a("jv"),j=a("jk"),l=a("iC"),q=a("cI"),o=r;window.addEventListener("beforeinstallprompt",b);var t=c.extend(f,function(a){f.call(this);this.qb=a;this.m="initial";this.$U=this.qK=this.yg=r;this.CU=z;this.Et=r;this.fL=m;this.ut=o;this.nI=t.Fca();this.WS=j.Vf("vr");if(!this.ut&&!this.nI){window.removeEventListener("beforeinstallprompt",
b);window.addEventListener("beforeinstallprompt",this.Tma.bind(this))}this.nI||window.addEventListener("appinstalled",this.Ega.bind(this))});t.prototype.yZ=function(a){this.qK=a;this.Ki=j.ts(this.qK.get(TDV.PlayerSettings.BASE_DIR_URL)||j.getDirectory(this.qK.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL)));if(this.Ki[this.Ki.length-1]!="/")this.Ki=this.Ki+"/";this.yg=new s(this.Ki);this.fL=this.p8=a.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);this.Ela=j.parse(j.getDirectory(window.location.href)).pathname;
this.Nja=j.$u(j.ts("files.json",this.Ki),this.p8);a=TDV.Aa.YL();this.$U=j.$u(this.qK.get(TDV.PlayerSettings.SERVICE_WORKER_URL),"swv="+a.MAJOR+"."+a.MINOR);this.yg=new s(this.Ki);this.yg.bind(d.S,this.pra,this,p);this.yg.load()};t.prototype.az=function(){return this.yg.state==s.Kz};t.prototype.Haa=function(){return this.m=="can_install"&&!this.WS};t.prototype.Jaa=function(){return this.az()&&this.fL!=this.yg.version&&!this.WS};t.prototype.Gaa=function(){return this.yg.state!=s.g_&&!this.WS};t.prototype.mca=
function(){if(this.m=="can_install")if(this.ut){this.ut.userChoice.then(function(a){a.outcome!="accepted"&&this.Yb("unavailable")}.bind(this));this.ut.prompt().then(function(){this.ut=r}.bind(this))}else this.VQ()};t.prototype.cancel=function(){if(this.m=="downloading"){if(this.Et){this.Et.cancelDownload();this.Et=r}this.yg.jn();this.Yb("unavailable")}};t.prototype.jn=function(){k.jn(this.Ki);this.yg.jn()};t.prototype.pra=function(){this.qb.get("downloadEnabled")!==p?this.Yb("unavailable"):n.Jea!==
p?this.Yb("unavailable"):g.browser()!=g.wi||g.Hc()==g.ws||g.Hc()==g.Vv?this.Yb("unavailable"):this.$U?"serviceWorker"in navigator?this.az()&&!this.Jaa()?this.Yb("unavailable"):navigator.onLine?this.Goa():this.Yb("unavailable"):this.Yb("unavailable"):this.Yb("unavailable")};t.prototype.Yb=function(a){if(this.m!=a){this.m=a;a=["can_install","unavailable"].indexOf(this.m)>=0;if(this.CU!=a)(this.CU=a)&&this.trigger(d.Db)}};t.prototype.Goa=function(){this.Yb("registering_sw");navigator.serviceWorker.register(this.$U,
{scope:this.Ela}).then(function(){this.W8(p)}.bind(this))["catch"](function(){this.W8(z)}.bind(this))};t.prototype.W8=function(a){if(a)if(g.se())this.Yb("can_install");else if(this.nI&&this.yg.state==s.wN){this.Yb("can_install");this.VQ()}else if(this.ut)this.Yb("can_install");else{this.Yb("sw_registered");setTimeout(function(){this.m=="sw_registered"&&this.Yb("can_install")}.bind(this),3E3)}else this.Yb("unavailable")};t.prototype.Tma=function(a){this.ut=a;this.m=="sw_registered"&&this.Yb("can_install")};
t.prototype.Ega=function(){this.m=="sw_registered"&&this.Yb("can_install");this.VQ()};t.prototype.VQ=function(){this.Yb("downloading");this.trigger(d.Jk);this.B$(0);this.uma()};t.prototype.uma=function(){var a=j.$u(this.Nja,"nc="+(new Date).getTime());e.getJSON(a,function(a){if(this.m=="downloading"){var b=[],c;for(c in a){var d=a[c].tags;if(d){Array.isArray(d)||(d=[d]);for(var e=0;e<d.length;e++)b.indexOf(d[e])<0&&b.push(d[e])}}var f=[];b.indexOf("mobilevr2gen")>=0&&g.wY()?f.push("mobilevr2gen"):
b.indexOf("mobilevr")>=0&&g.se()?f.push("mobilevr"):b.indexOf("mobile")>=0&&g.Wa()?f.push("mobile"):b.indexOf("desktop")>=0&&!g.Wa()&&f.push("desktop");b=[];for(c in a){if(d=a[c].tags){var i=z;if(Array.isArray(d))for(var e=0,l=d.length;e<l&&!i;e++)i=f.indexOf(d[e])>=0;else i=f.indexOf(d)>=0;if(!i)continue}d=j.ts(c,this.Ki);b.push(new k.File(d,a[c].size))}var n=(new j(window.location.pathname,window.location.href)).toString();b.filter(function(a){return a.url==n}).length==0&&b.push(new k.File(n,1024));
this.Et=new k.Files(this.Ki,b,this.B$.bind(this),this.v3.bind(this));this.Et.requestStorage().then(function(a){this.yg.storage=a?s.Qz:s.zO;this.yg.state=s.wN;this.yg.version=this.fL;this.yg.save();this.Et.download()}.bind(this))["catch"](function(){this.v3(z,m)}.bind(this))}}.bind(this))};t.prototype.B$=function(a){this.trigger(new l(d.sc,a))};t.prototype.v3=function(a,b){this.Et=r;this.Yb("unavailable");if(a){this.yg.state=s.Kz;this.yg.save()}a?this.trigger(d.Da,{success:p}):b?this.trigger(d.Da,
{success:z,error:t.i_}):g.se()?this.trigger(d.Da,{success:z,error:t.h_}):this.nI?this.trigger(d.Da,{success:z,error:t.i_}):this.trigger(d.Da,{success:z,error:t.j_})};t.Fca=function(){return j.Lg("installed",z)};t.Bwa=function(a,b){var c=new t.fO(a);c.bind(d.S,function(){var d=z;c.state==t.fO.Kz&&(d=t.Fca()?p:!navigator.onLine);d?i.toURL(a,c.storage==t.fO.Qz).then(function(a){b(a)}):b(a)},this,p);c.load()};t.j_="launchFromHomeScreen";t.h_="addToBookmark";t.i_="errorDownloading";var s=c.extend(f,function(a){f.call(this);
this.Ki=a;this.QS="installation_state_"+a;this.boa=j.parse(this.Ki).pathname+"installation_state.json";this.state=this.storage=this.version=m;this.e9()});s.prototype.load=function(){if(this.vma()&&this.state==s.Kz)this.f$(this.storage==s.Qz).then(function(){this.trigger(d.S)}.bind(this))["catch"](function(){this.f$(this.storage!=s.Qz).then(function(){this.storage=this.storage==s.zO?s.Qz:s.zO;this.TU();this.trigger(d.S)}.bind(this))["catch"](function(){this.state=s.wN;this.TU();this.trigger(d.S)}.bind(this))}.bind(this));
else this.trigger(d.S)};s.prototype.save=function(){this.TU();this.state==s.Kz&&this.ipa()};s.prototype.vma=function(){var a=q.getItem(this.QS);if(!a)return z;this.dka(a);return p};s.prototype.TU=function(){q.setItem(this.QS,this.l$())};s.prototype.f$=function(a){return new Promise(function(b,c){i.toURL(this.Ki+"installation_state.json",a).then(function(a){e.ajax({type:"GET",url:a,success:function(){b()},error:function(){c()}})}.bind(this))}.bind(this))};s.prototype.ipa=function(){i.xea(this.boa,
this.l$(),"text/json")};s.prototype.l$=function(){var a={};a.version=this.version;a.storage=this.storage;a.state=this.state;return JSON.stringify(a)};s.prototype.dka=function(a){this.cka(JSON.parse(a))};s.prototype.cka=function(a){this.version=a.version;this.storage=a.storage;this.state=a.state};s.prototype.jn=function(){q.removeItem(this.QS);this.e9()};s.prototype.e9=function(){this.version="";this.storage=s.Bfa;this.state=s.g_};s.Bfa="unkonwn";s.zO="temporary";s.Qz="persistent";s.g_="not started";
s.wN="started";s.Kz="completed";t.fO=s;return t});
define("ic","require,fd,lc,lb,r,dL,ew,eC,jP,c,kJ,d,gM".split(","),function(a){function b(a){var b=new k;b.N({label:a,backgroundColor:"#0071BC",borderRadius:2,fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",fontSize:14,paddingLeft:14,paddingRight:14,height:31,verticalAlign:n.rc});return b}var c=a("fd"),e=a("lc"),d=a("lb"),f=a("r"),g=a("dL"),k=a("ew"),i=a("eC"),n=a("jP"),j=a("c"),l=a("kJ"),q=a("d"),o=a("gM"),a=c.extend(l,function(a,b){l.call(this);this.qb=a;this.ae=b;this.ae.bind(e.Db,
this.Xla,this,p);this.ae.bind(e.Jk,this.Ula,this,p);this.ae.bind(e.sc,this.Wla,this,p);this.ae.bind(e.Da,this.Vla,this,p);this.Y="hidden";this.WD=m;this.gU=z;this.Td=m;this.Zf=this.$n=this.et=this.ht=this.ft=this.wK=this.qa=r;this.Bga();this.N({backgroundColor:"#000000",gap:18,height:55,width:"100%",paddingLeft:28,paddingRight:28,verticalAlign:n.rc,layout:j.we});this.ge()});a.prototype.Xla=function(){if(this.ae.Haa()||this.ae.az()&&this.ae.Gaa()){this.Y="ready";this.gU&&this.L9()}else this.Y="hidden";
this.ge()};a.prototype.Ula=function(){this.Y="installing";this.ge()};a.prototype.Wla=function(a){this.Td=a.zh;this.ge()};a.prototype.Vla=function(a){this.Y=a.data.success?"installed":"failed";this.F3=a.data.error;this.ge()};a.prototype.$i=function(){this.Zqa()};a.prototype.XI=function(){if(!this.gU){this.gU=p;this.Y=="ready"&&this.L9()}};a.prototype.L9=function(){this.WD=setTimeout(function(){this.WD=r;this.Qna()}.bind(this),5E3);this.ge()};a.prototype.Zqa=function(){this.z8();this.WD&&clearTimeout(this.WD);
this.WD=r};a.prototype.Qna=function(){this.z8();if(this.Y=="ready"){this.Y="hidden";this.ge()}};a.prototype.Bga=function(){this.bind(e.Lc,this.$i,this);this.qb.bind(e.Lc,this.XI,this);this.qb.bind(e.xb,this.XI,this)};a.prototype.z8=function(){this.unbind(e.Lc,this.$i,this);this.qb.unbind(e.Lc,this.XI,this);this.qb.unbind(e.xb,this.XI,this)};a.prototype.Ia=function(){l.prototype.Ia.call(this);if(this.qa==r){this.qa=new o;this.qa.N({fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",
fontSize:14,text:d("download-tour")});this.ma(this.qa)}if(this.ft==r){this.ft=b(d("download"));this.ma(this.ft);this.ft.bind(e.T,this.tha,this,p)}if(this.ht==r){this.ht=b(d("refresh-downloaded"));this.ma(this.ht);this.ht.bind(e.T,this.zha,this,p)}if(this.et==r){this.et=b(d("delete-downloaded"));this.ma(this.et);this.et.bind(e.T,this.sha,this,p)}if(this.wK==r){this.wK=new q;this.wK.N({width:"100%"});this.ma(this.wK)}if(this.$n==r){this.$n=new i;this.$n.N({backgroundColor:"#ffffff",borderRadius:2,iconColor:"#000000",
iconLineWidth:1,iconWidth:17,iconHeight:17,height:31,width:31});this.ma(this.$n);this.$n.bind(e.T,this.rha,this,p)}if(this.Zf==r){this.Zf=b(d("cancel"));this.ma(this.Zf);this.Zf.bind(e.T,this.vG,this,p)}f.Wa()&&this.Vm();this.ge()};a.prototype.Vk=function(){l.prototype.Vk.call(this);f.Wa()&&this.getParent().bind(e.yb,this.Vm,this,p)};a.prototype.gj=function(){f.Wa()&&this.getParent().unbind(e.yb,this.Vm,this,p);l.prototype.gj.call(this)};a.prototype.Vm=function(){var a=this.getParent();if(a){var b=
Math.min(a.Ba(),a.gb())/100,c=function(a){return Math.round(a*b)};this.N({gap:c(3.9),height:c(11.9),paddingLeft:c(6),paddingRight:c(6)});this.qa&&this.qa.N({fontSize:c(3)});[this.ft,this.Zf,this.ht,this.et].forEach(function(a){a&&a.N({borderRadius:c(0.4),fontSize:c(3),paddingLeft:c(3),paddingRight:c(3),height:c(6.7)})});this.$n&&this.$n.N({borderRadius:c(0.4),iconLineWidth:c(0.22),iconWidth:c(3.7),iconHeight:c(3.7),height:c(6.7),width:c(6.7)})}};a.prototype.ge=function(){var a;switch(this.Y){case "ready":a=
this.ae.az()?d("downloaded"):d("download-tour");break;case "installing":a=d("downloading");this.Td!==m&&(a=a+("..."+this.Td.toFixed(1)+"%"));break;case "installed":a=d("downloaded");break;case "failed":a=this.F3==g.j_?f.Wa()?d("storage-not-provided-launch-from-homescreen"):d("storage-not-provided-launch-from-desktop"):this.F3==g.h_?d("storage-not-provided-bookmark"):d("download-failed")}this.qa&&this.qa.set("text",a);this.ft&&this.ft.set("visible",this.Y=="ready"&&!this.ae.az()&&this.ae.Haa());this.et&&
this.et.set("visible",this.Y=="ready"&&this.ae.az()&&this.ae.Gaa());this.ht&&this.ht.set("visible",this.Y=="ready"&&this.ae.Jaa());this.Zf&&this.Zf.set("visible",this.Y=="installing");this.$n&&this.$n.set("visible",this.Y!="installing");this.set("visible",this.Y!="hidden")};a.prototype.tha=function(){this.ae.mca()};a.prototype.zha=function(){this.ae.mca()};a.prototype.sha=function(){this.ae.jn();this.Y="hidden";this.ge()};a.prototype.vG=function(){this.ae.cancel();this.Y="hidden";this.ge()};a.prototype.rha=
function(){this.Y=="installing"&&this.ae.cancel();this.Y="hidden";this.ge()};return a});
define("dI","require,fd,dm,lc,lb,r,jP,c,kJ,kj,kw,ew,gM,gG".split(","),function(a){function b(a,b){this.text=a;this.mp=b}var c=a("fd"),e=a("dm"),d=a("lc"),f=a("lb"),g=a("r"),k=a("jP"),i=a("c"),n=a("kJ"),j=a("kj"),l=a("kw"),q=a("ew"),o=a("gM"),t=a("gG"),a=c.extend(n,function(){n.call(this);this.ll=[];this.Zf=this.gt=this.qa=this.Mt=this.dy=this.Tl=r;var a=new j;a.set("duration",500);a.set("easing","cubic_in");var b=new l;b.set("duration",500);b.set("easing","cubic_out");this.N({backgroundColor:"#000000",
backgroundOpacity:0.6,horizontalAlign:k.Kc,gap:5,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:z})});a.prototype.Ia=function(){n.prototype.Ia.call(this);if(this.Tl==r){this.Tl=new n;this.Tl.N({centerX:0,centerY:0,backgroundColor:"#ffffff",horizontalAlign:k.Kc,verticalAlign:k.rc,layout:i.df,shadow:p,shadowColor:"#000000",shadowHorizontalLength:0,shadowVerticalLength:0,shadowOpacity:0.2});this.ma(this.Tl)}if(this.qa==r){this.qa=new o;this.qa.N({fontColor:"#808080",fontWeight:"300",
fontFamily:"Tahoma, Geneva, sans-serif"});this.Tl.ma(this.qa)}if(this.Mt==r){this.Mt=new t;this.Mt.N({width:"80%"});this.Tl.ma(this.Mt)}if(this.dy==r){this.dy=new n;this.dy.N({backgroundColor:"#b3b3b3"});this.Tl.ma(this.dy)}if(this.$f==r){this.$f=new n;this.$f.N({horizontalAlign:k.Kc,verticalAlign:k.rc,layout:i.we});this.Tl.ma(this.$f)}if(this.gt==r){this.gt=new q;this.gt.N({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:k.Kc,verticalAlign:k.rc,
label:f("yes").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.gt.bind(d.T,this.a2,this,p);this.$f.ma(this.gt)}if(this.Zf==r){this.Zf=new q;this.Zf.N({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:k.Kc,verticalAlign:k.rc,label:f("no").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.Zf.bind(d.T,this.vG,this,p);this.$f.ma(this.Zf)}};a.prototype.Vk=function(){n.prototype.Vk.call(this);
this.getParent().bind(d.yb,this.Vm,this,p)};a.prototype.gj=function(){this.getParent().unbind(d.yb,this.Vm,this,p);n.prototype.gj.call(this)};a.prototype.Vm=function(){var a=this.getParent();if(a){var b=a.Ba(),a=a.gb();if(g.Wa())var c=Math.min(b,a),b=function(a){return Math.round(a*c/100)};else b=function(a){return Math.round(a*4)};this.Tl&&this.Tl.N({borderRadius:b(1),width:b(80),height:b(40),gap:b(4),shadowBlurRadius:b(1),shadowSpread:b(1)});this.dy&&this.dy.N({width:b(60),minHeight:2,height:b(0.25)});
this.$f&&this.$f.N({gap:b(5)});this.Zf&&this.Zf.N({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.25)});this.gt&&this.gt.N({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.5)});this.qa&&this.qa.N({fontSize:b(5)});this.XK()}};a.prototype.show=function(a,c){this.Vm();var d=this.x4(c);d>=0&&this.x8(d);this.xoa(new b(a,c));this.zw()};a.prototype.hide=function(a){a=this.x4(a);a>=0&&this.x8(a)};a.prototype.zw=function(){var a=this.getParent();a&&a.wj(this,a.Oa().length-1)};a.prototype.a2=
function(){this.mG(p)};a.prototype.vG=function(){this.mG(z)};a.prototype.x4=function(a){for(var b=0;b<this.ll.length;b++)if(this.ll[b].mp==a)return b;return-1};a.prototype.XK=function(){if(this.Tl){var a=this.J4();if(a){if(a.text.length<20){this.Mt.set("visible",z);this.qa.set("text",a.text);this.qa.set("visible",p)}else{this.qa.set("visible",z);this.Mt.set("html",this.Cka(a.text));this.Mt.set("visible",p)}this.Zf.set("visible",a.mp?p:z);this.set("visible",p)}else this.set("visible",z)}};a.prototype.Cka=
function(a){return"<div style=\"color:#808080; font-weight:300; font-family:'Tahoma', 'Geneva', sans-serif; font-size: "+this.qa.get("fontSize")+'px; text-align:center;" >'+a+"</div>"};a.prototype.mG=function(a){var b=this.J4();if(b){b=this.Qka(b.text);this.Uoa(b);e(b).each(function(b){b.mp&&b.mp.call(this,a)},this)}};a.prototype.xoa=function(a){this.ll.push(a);this.XK()};a.prototype.Qka=function(a){return e(this.ll).filter(function(b){return b.text==a})};a.prototype.Uoa=function(a){this.ll=e(this.ll).filter(function(b){return!e(a).contains(b)});
this.XK()};a.prototype.x8=function(a){this.ll.splice(a,1);a==this.ll.length&&this.XK()};a.prototype.J4=function(){return this.ll.length>0?this.ll[this.ll.length-1]:r};return a});
define("iQ","require,fd,lc,bY,eL,r,jV".split(","),function(a){function b(a){for(;a&&a!=document;){if(a.getAttribute("tdvclass")=="Button")return p;a=a.parentNode}return z}var c=a("fd"),e=a("lc"),d=a("bY"),f=a("eL"),g=a("r"),k=a("jV"),i=[],a=[99,111,110,116,101,120,116,109,101,110,117].map(function(a){return String.fromCharCode(a)}).join("");document.addEventListener(a,function(a){(!g.Wa()||!b(a.target))&&i.forEach(function(b){b(a)});a.preventDefault();a.stopImmediatePropagation()},p);var n=1,c=c.extend(f,
function(a,b){f.call(this);this.pa=a;this.Kka=b;this.xT=this.xT.bind(this);this.lc=this.lc.bind(this);this.PS=z;this.MS=this.MS.bind(this);this.NS=this.NS.bind(this);this.LS=this.LS.bind(this);this.OS=this.OS.bind(this);this.I=document.createElement("div");this.I.style.setProperty("border","1px solid #bbb","important");this.I.style.setProperty("border-radius","3px","important");this.I.style.setProperty("position","absolute","important");this.I.style.setProperty("z-index",n,"important");this.I.style.setProperty("display",
"none","important");this.I.style.setProperty("background-color","#e5e5e5","important");this.I.style.setProperty("display","none","important");this.I.style.setProperty("opacity",1,"important");this.I.style.setProperty("padding",0,"important");this.I.style.setProperty("margin",0,"important");this.I.style.setProperty("pointer-events","all","important");this.I.style.setProperty("text-align","left","important");this.I.style.setProperty("box-shadow","1px 1px 3px rgba(0, 0, 0, 0.2)","important");i.push(this.xT)});
c.prototype.xT=function(a){var b=this.Kka();if(b.length!=0){this.I.innerHTML="";this.PS=z;var c=0;b.forEach(function(a){var b=document.createElement("div");if(a){b.textContent=a;b.style.setProperty("cursor","pointer","important");b.style.setProperty("border-radius","3px","important");b.style.setProperty("padding","7px 20px","important");b.style.setProperty("white-space","nowrap","important");var d=c;c++;b.addEventListener("mouseenter",function(a){this.MS(a,d)}.bind(this));b.addEventListener("mouseleave",
function(a){this.NS(a,d)}.bind(this));b.addEventListener("mousedown",function(a){this.LS(a,d)}.bind(this));b.addEventListener("mouseup",function(a){this.OS(a,d)}.bind(this))}else{b.style.setProperty("margin","7px 5px","important");b.style.setProperty("border-top","1px solid #aaa","important");b.style.setProperty("border-bottom","1px solid #fff","important")}b.style.setProperty("font-family","Arial","important");b.style.setProperty("font-size","13px","important");b.style.setProperty("color","#000000",
"important");b.style.setProperty("opacity",1,"important");b.style.setProperty("display","block","important");b.style.setProperty("pointer-events","all","important");this.I.appendChild(b)}.bind(this));(k.Vl()||document.body).appendChild(this.I);this.I.style.setProperty("display","block","important");b=a.pageX;a=a.pageY;b+this.I.clientWidth>document.body.clientWidth-5&&(b=document.body.clientWidth-this.I.clientWidth-5);a+this.I.clientHeight>document.body.clientHeight-5&&(a=document.body.clientHeight-
this.I.clientHeight-5);this.I.style.setProperty("left",b+"px","important");this.I.style.setProperty("top",a+"px","important");this.pa.bind(e.xb,this.lc,this);document.addEventListener("mousedown",this.lc);this.Xsa=setInterval(this.Wsa.bind(this),200)}};c.prototype.Q4=function(){clearInterval(this.Xsa);this.I.parentNode.removeChild(this.I);document.removeEventListener("mousedown",this.lc);this.pa.unbind(e.xb,this.lc,this);this.I.style.setProperty("display","none","important")};c.prototype.Wsa=function(){this.I.contains(document.elementFromPoint(this.I.offsetLeft+
this.I.clientWidth*0.5,this.I.offsetTop+this.I.clientHeight*0.5))||this.I.style.setProperty("z-index",n=n*10,"important")};c.prototype.lc=function(){this.Q4()};c.prototype.LS=function(a){this.PS=p;a.preventDefault();a.stopImmediatePropagation()};c.prototype.OS=function(a,b){if(this.PS){this.Q4();a.preventDefault();a.stopImmediatePropagation();this.trigger(new d(e.Ci,{index:b}))}};c.prototype.MS=function(a){a.currentTarget.style.setProperty("color","#ffffff","important");a.currentTarget.style.setProperty("background-color",
"rgba(0, 0, 0, 0.7)","important")};c.prototype.NS=function(a){a.currentTarget.style.setProperty("color","#000000","important");a.currentTarget.style.setProperty("background-color","","important")};return c});
define("jo",["require","jk","R"],function(a){function b(a){this.pa=a;this.Sm={};this.Sm[e.ifa]="move";this.Sm[e.jfa]="ew-resize";this.Sm[e.lfa]="ns-resize";this.Sm[e.kfa]="nesw-resize";this.Sm[e.mfa]="nwse-resize";this.Sm[e.he]="pointer";this.Sm[e.$v]="inherit";this.Sm[e.cd]="default";this.Oe={};this.Oe[e.NF]="grab.cur";this.Oe[e.OF]="grabbing.cur";this.Oe[e.S_]="N.cur";this.Oe[e.T_]="NE.cur";this.Oe[e.J_]="E.cur";this.Oe[e.W_]="SE.cur";this.Oe[e.V_]="S.cur";this.Oe[e.X_]="SW.cur";this.Oe[e.Y_]="W.cur";
this.Oe[e.U_]="NW.cur";this.Oe[e.L_]="FN.cur";this.Oe[e.M_]="FNE.cur";this.Oe[e.K_]="FE.cur";this.Oe[e.P_]="FSE.cur";this.Oe[e.O_]="FS.cur";this.Oe[e.Q_]="FSW.cur";this.Oe[e.R_]="FW.cur";this.Oe[e.N_]="FNW.cur";this.i2={}}var c=a("jk"),e=a("R");b.prototype.gba=function(a){return this.mma(a)?this.G4(a):this.gma(a)?this.tka(a):this.G4(e.cd)};b.prototype.Fha=function(a){if(!(a in this.i2)){var b=new Image;b.src=this.i4(a);this.i2[a]=b}};b.prototype.mma=function(a){return a in this.Sm};b.prototype.G4=
function(a){return this.Sm[a]};b.prototype.gma=function(a){return this.Oe[a]};b.prototype.tka=function(a){this.Fha(a);return"url("+this.i4(a)+"), default"};b.prototype.i4=function(a){return c.ts(this.pa.get("settings").get(TDV.PlayerSettings.CURSORS_DIR_URL))+"/"+this.Oe[a]};return b});
define("bS",["dm"],function(a){function b(){this.To={};this.Bl=[];this.AA=0}b.prototype.push=function(b,e){if(this.To[e]==m)this.To[e]=[b],this.Bl.push(e),this.Bl.sort(function(a,b){return a-b}),this.AA++;else{var d=this.To[e];a(d).contains(b)||(d.push(b),this.AA++)}};b.prototype.iba=R("AA");b.prototype.isEmpty=function(){return 0==this.Bl.length};b.prototype.Zca=function(){if(!this.isEmpty()){var a=this.Bl[0],b=this.To[a].pop();0==this.To[a].length&&(delete this.To[a],this.Bl=this.Bl.slice(1));this.AA--;
return b}};b.prototype.OY=function(){if(!this.isEmpty()){var a=this.Bl[this.Bl.length-1],b=this.To[a].pop();0==this.To[a].length&&(delete this.To[a],this.Bl=this.Bl.slice(0,this.Bl.length-1));this.AA--;return b}};return b});
define("gF","require,dm,fd,fb,bS,V,iE".split(","),function(a){function b(){this.sr=z;this.P7=m;this.V=p;this.cJ=this.cJ.bind(this);this.KG=new e;this.IJ=new e;this.tK=new e;this.oI=new e;this.RQ=new e;d.Ma(this.Dg,this)}a("dm");a("fd");var c=a("fb"),e=a("bS"),d=a("V"),f=a("iE");b.prototype.clear=function(){this.V=z};b.prototype.CE=function(a){this.KG.push(a,this.ex(a));this.PC()};b.prototype.Bc=function(a){this.IJ.push(a,this.ex(a));this.PC()};b.prototype.Va=function(a){this.tK.push(a,this.ex(a));
this.PC()};b.prototype.Jc=function(a){this.oI.push(a,this.ex(a));this.PC()};b.prototype.xh=function(a){this.RQ.push(a,this.ex(a));this.PC()};b.prototype.J=function(){this.asa();this.Dsa();this.csa()};b.prototype.asa=function(){do{for(;!this.KG.isEmpty();)this.KG.OY().Ia();this.IJ.isEmpty()||this.IJ.OY().ga()}while(!this.IJ.isEmpty()||!this.KG.isEmpty())};b.prototype.Dsa=function(){for(;!this.tK.isEmpty()||!this.oI.isEmpty();){this.aL();this.vW()}};b.prototype.aL=function(){for(;!this.tK.isEmpty();){var a=
this.tK.OY();if(a.Uya()){var b=a.getParent();if(b){b.Va();b.Jc()}else a.Eda(0,0,a.vn(),a.un())}}};b.prototype.vW=function(){for(;!this.oI.isEmpty();)this.oI.Zca().ui()};b.prototype.csa=function(){for(;!this.RQ.isEmpty();)this.RQ.Zca().Le();c.Awa()};b.prototype.PC=function(){if(!this.sr){this.sr=p;this.P7=(new Date).getTime()+500;f.Ev(this.cJ)}};b.prototype.cJ=function(){this.sr=z;this.V&&this.J()};b.prototype.ex=function(a){return(a=a.getParent())?this.ex(a)+1:0};b.prototype.Dg=function(){this.sr&&
(new Date).getTime()>=this.P7&&this.cJ();d.Ma(this.Dg,this)};return b});
define("fe","jquery.mod,dm,fd,lc,kJ,iQ,jo,Y,gF,jV,r".split(","),function(a,b,c,e,d,f,g,k,i,n,j){c=c.extend(d,function(b){this.rw=new i;d.call(this);this.Qm(this);this.Xc("Application");this.Ad=a(b);this.Ad.css({overflow:"hidden","user-select":"none","-ms-user-select":"none","-moz-user-select":"none","-webkit-user-select":"none","-ms-touch-action":"none","touch-action":"none",visibility:"visible","-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)"});this.ap=a(document.createElement("div"));this.ap.css({position:"absolute",
left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",margin:0});this.Ad.append(this.ap);this.ap.append(this.Cb());this.a$=this.ap.get(0);this.dc=this.Xb=m;this.$la=10;this.Rha=500;this.MC=r;this.FQ=new g(this);this.xa=new k(this);this.I.append(this.xa.Cb());this.wia=new f(this,this.f4.bind(this));this.wia.bind(e.Ci,this.Xe(this.n6),this,p);this.N5=p;this.set("contentOpaque",p);this.qt=r;this.vA=[];this.Uw(["globalmousemove"]);this.dha();this.kL=this.lL=0;this.Ix=1;try{this.lL=window.top.innerWidth;
this.kL=window.top.innerHeight;this.aS=p}catch(c){this.aS=z}this.daa();this.dg=new n(b);this.dg.bind(e.aa,function(){this.sR(this.dg.enabled())},this)});c.prototype.start=function(){if(!this.M9){this.M9=p;this.trigger(e.Di)}};c.prototype.daa=function(){if(this.aS&&!n.enabled()){this.lL=window.top.innerWidth;this.kL=window.top.innerHeight}};c.prototype.clear=function(){this.Hv(r);this.X9();this.Fja();this.rw.clear();if(this.Ad){this.Cb().remove();this.ap.remove();this.Ad=r}this.FQ=r;this.dg.nea();
this.dg=r};c.prototype.Rxa=P("N5");c.prototype.sR=function(a){a?this.d9():this.bia()};c.prototype.Go=function(){this.HB=this.Sh=this.ap.width();this.GB=this.Rh=this.ap.height()};c.prototype.Hv=function(a){if(this.qt!=a){this.qt!=r&&this.qt.Gra();this.qt=a;for(var c=[];a!=r;){c=[a].concat(c);a=a.getParent()}for(var a=this.vA.length-1,d=p;a>=0&&d;a--)b(c).contains(this.vA[a])?d=z:this.vA.pop().Ira();for(a=0;a<c.length;a++)b(this.vA).contains(c[a])||c[a].Jra();this.vA=c;this.qt!=r&&this.qt.Fra();this.xa.Hv(this.qt)}};
c.prototype.tla=function(a){var b=this.$A(a);this.n5(a,b.x,b.y)?a.preventDefault():this.Hv(r)};c.prototype.M4=function(a){var b=this.Jt(a);this.n5(a,b.x,b.y)?a.preventDefault():this.Hv(r)};c.prototype.f4=function(){return[]};c.prototype.n6=C();c.prototype.n5=function(a,b,c){return this.hma(a.target)&&b>=0&&c>=0&&b<this.W&&c<this.ea};c.prototype.hma=function(a){if(!this.Ad)return z;for(var b=this.Ad.get(0);a;){if(a===b)return p;a=a.parentElement}return z};c.prototype.dha=function(){this.Uw(["globalresize"]);
this.NP=setInterval(b.bind(function(){this.s2()},this),this.Rha)};c.prototype.Fja=function(){this.KA(["globalresize"]);if(this.NP){clearInterval(this.NP);this.NP=r}};c.prototype.s2=function(){this.dg.enabled()?this.d9():this.daa();var a=this.a$.clientWidth,b=this.a$.clientHeight;if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.Rqa()}};c.prototype.d9=function(){var a;if(this.aS&&(j.Xd()==j.UZ&&j.browser()==j.wi||j.Xd()==j.Hj)){var b=n.Vl();a=b.clientWidth;var b=b.clientHeight,c=(a>b?a:b)/(this.lL>
this.kL?this.lL:this.kL),d=Math.round(a/c),e=Math.round(b/c);this.Ix=c;a={left:Math.round((a-d)*0.5)+"px",top:Math.round((b-e)*0.5)+"px",right:"auto",bottom:"auto",width:d+"px",height:e+"px",transform:"scale("+[c,c].join(", ")+")",position:"absolute"}}else{a={position:"absolute",left:0,top:0,right:"auto",bottom:"auto",width:document.body.clientWidth+"px",height:document.body.clientHeight+"px"};this.Ix=1}this.ap.css(a)};c.prototype.bia=function(){this.ap.css({position:"abolute",left:0,top:0,right:0,
bottom:0,width:"auto",height:"auto",transform:""});this.Ix=1};c.prototype.Rqa=function(){this.X9();var a=this;this.MC=setTimeout(function(){a.MC=r;a.Va()},this.$la)};c.prototype.X9=function(){if(this.MC){this.MC=r;clearTimeout(this.MC)}};c.prototype.sla=function(){this.s2()};c.prototype.BR=function(){return b(d.prototype.BR.call(this)).defaults({globaltouchmove:[{target:a(document),name:"touchmove",handler:this.Xe(this.tla)}],globalmousemove:[{target:a(document),name:"mousemove",handler:this.Xe(this.M4)},
{target:a(window),name:"mouseout",handler:this.Xe(this.M4)}],globalresize:[{target:a(window),name:"resize",handler:this.Xe(this.sla)}]})};return c});
define("eZ","require,jquery.mod,ls,bI,jV,lc,eL,lb,r".split(","),function(a){function b(){o=TDV.Aa.tn();var a=q||o;if(l!=a){l=a;j.trigger(g.aa)}a=!!q&&o!=q&&n.Wa();if(t!=a){if(!s){s=c("<div/>");s.css({position:"fixed","z-index":e.Pea,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});s.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.Oz+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+i("rotate-device")+"</div>","</div>\n</div>"].join("\n"));u=s.find("img")}t&&s.detach();(t=a)&&(f.enabled()?c(f.Vl()):c("body")).append(s)}t&&u.css("transform",l==j.vfa?"translate(-11%, 0) rotate(-90deg)":"none")}var c=a("jquery.mod"),e=a("ls"),d=a("bI"),f=a("jV"),g=a("lc"),k=a("eL"),i=a("lb"),n=a("r"),j=new k;j.lza=TDV.Aa.lO;j.vfa=TDV.Aa.mO;j.hF=
function(a){if(q!=a){q=a;b()}};j.sba=function(){return q};j.get=function(){return l};var l=m,q=m,o=m,t=z,s=r,u=r;window.addEventListener("resize",function(){b();setTimeout(b,500)},p);try{window.screen.orientation.addEventListener("change",b)}catch(v){window.addEventListener("orientationchange",b,z)}b();return j});
define("gB","require,fd,dm,lc,bY,cd,dT,jU,lb,jK,A,ic,dI,db,dN,kq,iO,r,fQ,dL,bV,hd,jk,bi,dk,fe,kJ,cu,jV,bp,eZ,iX,cI".split(","),function(a){var b=a("fd"),c=a("dm"),e=a("lc"),d=a("bY"),f=a("cd"),g=a("dT"),k=a("jU"),i=a("lb"),n=a("jK"),j=a("A"),l=a("ic"),q=a("dI");UserInteractionWindow=a("db");Renderer=a("dN");TextureUtil=a("kq");Capabilities=a("iO");Device=a("r");Gyroscope=a("fQ");Installer=a("dL");LibsLoader=a("bV");Preloader=a("hd");URL=a("jk");VR=a("bi");ButtonMode=a("dk");Application=a("fe");Container=
a("kJ");VerticalLayout=a("cu");Fullscreen=a("jV");AudioActivation=a("bp");Orientation=a("eZ");UserInitiatedAction=a("iX");Storage=a("cI");var o=b.extend(Application,function(a){Application.call(this,a);this.ae=new Installer(this);this.u3=new l(this,this.ae);this.sm=new Container;this.sm.N({visible:p,width:"100%",height:"100%"});this.xx=new q;this.xy=new UserInteractionWindow;this.WG=new j(this);a=new VerticalLayout;a.TM(0);this.fF(a);this.Ze(p);this.bind(e.D("settings"),this.Fna,this,p);this.fL=TDV.Aa.YL();
Orientation.bind(e.aa,this.qna,this,p);AudioActivation.Mya();this.wha=new n(this,"buttonMute",ButtonMode.Tc);this.wha.bind(e.T,this.T6,this,p);this.Dha=new n(this,"buttonUnmute",ButtonMode.Tc);this.Dha.bind(e.T,this.r7,this,p);this.AG=new n(this,"buttonToggleMute",ButtonMode.Eh);this.AG.bind(e.rg,this.T6,this,p);this.AG.bind(e.Dh,this.r7,this,p);this.bind(e.D("mute"),this.nna,this);this.AG.set("pressed",this.get("mute"));this.uha=new n(this,"buttonEnterFullscreen",ButtonMode.Tc);this.uha.bind(e.T,
this.s6,this,p);this.vha=new n(this,"buttonExitFullscreen",ButtonMode.Tc);this.vha.bind(e.T,this.t6,this,p);this.xG=new n(this,"buttonToggleFullscreen",ButtonMode.Eh);this.xG.bind(e.rg,this.s6,this,p);this.xG.bind(e.Dh,this.t6,this,p);this.xG.set("pressed",this.get("fullscreenEnabled"));this.bind(e.D("fullscreenEnabled"),this.bna,this,p);this.set("fullscreenEnabled",this.dg.enabled());this.set("mouseWheelEnabled",p);this.set("backgroundPreloadEnabled",p);this.set("defaultVRPointer","laser");this.set("downloadEnabled",
z);this.set("mediaActivationMode","window");this.set("fullscreenFallback","out_of_frame");this.set("defaultMenu",["fullscreen","mute","rotation"]);this.bind(e.Di,this.Ina,this,p);[e.xb,e.cc,e.Yp,e.MF,e.LF].forEach(function(a){this.bind(a,function(a){this.trigger(new d(e.HF,{$da:a}))},this,p)}.bind(this));VR.bind(e.aa,function(){VR.isPresenting()?Orientation.hF(m):Orientation.hF(Application.prototype.get.call(this,"lockedOrientation"))},this);this.dg.bind(e.aa,function(){var a=Orientation.sba();Orientation.hF(m);
Orientation.hF(a)},this)});o.q_="orientationChange";g.A("Player",o).Axa().B("Container").L({backgroundPreloadEnabled:"bool",buttonEnterFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonExitFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonMute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleFullscreen:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleMute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonUnmute:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",cardboardAvailable:"bool",cookiesPolicy:"or[array[CookiesPolicy], CookiesPolicy]",defaultVRPointer:"enum[gaze, laser]",definitions:"array[Object]",desktopMipmappingEnabled:"bool",downloadEnabled:"bool",fullscreenAvailable:"bool",fullscreenEnabled:"bool",fullscreenFallback:"enum[out_of_frame, none]",gyroscopeAvailable:"bool",hash:"string",isMobile:"bool",mediaActivationMode:"enum[window, button]",menu:"array[PlayerMenuItem]",
defaultMenu:"array[enum[fullscreen, mute, rotation]]",mobileMipmappingEnabled:"bool",mouseWheelEnabled:"bool",mute:"bool",lockedOrientation:"enum[portrait, landscape]",orientation:"enum[portrait, landscape]",surfaceSelectionAvailable:"bool",touchDevice:"bool",touchEnabled:"bool",vrAvailable:"bool",vrPolyfillScale:"number"}).Sxa().Rg({logCapabilities:function(){this.Bma()},activateAudio:function(a){this.fga(a)}}).Wf([e.Di,o.q_,e.HF]);o.prototype.sR=function(a){Application.prototype.sR.apply(this,arguments);
this.set("fullscreenEnabled",a)};o.prototype.ya=function(){Application.prototype.ya.call(this);this.f("mute",z);this.f("fullscreenEnabled",z)};o.prototype.Ia=function(){Application.prototype.Ia.call(this);this.u3.getParent()!=this&&this.ma(this.u3);if(this.sm.getParent()!=this){this.ma(this.sm);this.sm.ma(this.WG);this.sm.ma(this.xx);this.sm.ma(this.xy)}};o.prototype.hpa=function(a){var b=[];this.xx&&b.push(this.xx);this.xy&&b.push(this.xy);this.WG&&b.push(this.WG);for(var c=p,d=0;d<=b.length&&c;d++){c=
a.indexOf(b[d]);c=a.length-(b.length-d)==c}return c?a:a.filter(function(a){return b.indexOf(a)<0}).concat(b)};o.prototype.ga=function(){this.o8||(this.o8=c.difference(this.dla(),["visible","includeInLayout","state","left","right","top","bottom","centerX","centerY","width","height","minWidth","minHeight","maxWidth","maxHeight","actualWidth","actualHeight","paddingLeft","paddingTop","paddingRight","paddingBottom"]));this.fb(this.o8,{},[this.sm],p,p);Application.prototype.ga.call(this);this.Oza===p&&
this.Nza()};o.prototype.set=function(a,b){switch(a){case "children":this.sm.set(a,this.hpa(b));return;case "creationPolicy":this.sm.set(a,b);return;case "fullscreenAvailable":case "gyroscopeAvailable":case "cardboardAvailable":case "isMobile":case "orientation":case "surfaceSelectionAvailable":case "touchEnabled":case "touchDevice":case "vrAvailable":b=this.get(a);break;case "fullscreenEnabled":b=this.dg.available()&&b;break;case "fullscreenFallback":Fullscreen.mZ(b);break;case "lockedOrientation":Device.Hc()==
Device.xs&&(b=m);Orientation.hF(b);break;case "installAvailable":b=this.ae.ready();break;case "mouseWheelEnabled":this.Rxa(URL.Lg("mousewheelenabled",b));break;case "backgroundPreloadEnabled":this.tpa(b);break;case "vrPolyfillScale":VR.cya(b);break;case "desktopMipmappingEnabled":TextureUtil.lxa(b);break;case "mobileMipmappingEnabled":TextureUtil.Qxa(b)}Application.prototype.set.call(this,a,b)};o.prototype.get=function(a,b){switch(a){case "children":case "creationPolicy":return this.sm.get(a,b);case "touchEnabled":return this.Yj;
case "touchDevice":return Device.MZ();case "isMobile":return Device.Wa();case "orientation":return Orientation.get();case "lockedOrientation":return Orientation.sba();case "gyroscopeAvailable":return Gyroscope.available;case "cardboardAvailable":case "vrAvailable":return VR.available();case "fullscreenAvailable":return this.dg.available();case "vrPolyfillScale":return VR.Pua();case "installAvailable":return this.ae.ready();case "surfaceSelectionAvailable":return Renderer.dea();default:return Application.prototype.get.apply(this,
arguments)}};o.prototype.T6=function(){this.set("mute",p)};o.prototype.r7=function(){this.set("mute",z)};o.prototype.nna=function(){this.AG.set("pressed",this.get("mute"))};o.prototype.s6=function(){this.set("fullscreenEnabled",p)};o.prototype.t6=function(){this.set("fullscreenEnabled",z)};o.prototype.bna=function(){this.get("fullscreenEnabled")?this.dg.uh():this.dg.Wd();this.xG.set("pressed",this.get("fullscreenEnabled"));this.set("fullscreenEnabled",this.dg.enabled())};o.prototype.Fna=function(){var a=
this.get("settings");if(a){LibsLoader.am(a);Preloader.yZ(a);this.ae.yZ(a)}};o.prototype.tpa=function(a){Preloader.enabled(a)};o.prototype.f4=function(){if(URL.Vf("debug"))return[];var a=[];this.Iw=[];(this.get("menu")||[]).forEach(function(b){var c=b.get("label");a.push(b.get("label"));c&&this.Iw.push(function(){b.trigger("click")})}.bind(this));var b=this.get("defaultMenu",[]);if(b.indexOf("rotation")>=0){var c=this.mn("PanoramaPlayer");if(c.length){a.push(c[0].get("mouseControlMode")==f.Bs?i("change-to-drag-and-release"):
i("change-to-click-and-move"));this.Iw.push(this.vra.bind(this))}}if(b.indexOf("fullscreen")>=0&&this.dg.available()){a.push(this.dg.enabled()?i("exit-fullscreen"):i("enter-fullscreen"));this.Iw.push(this.tra.bind(this))}if(b.indexOf("mute")>=0){a.push(this.get("mute")?i("unmute"):i("mute"));this.Iw.push(this.ura.bind(this))}b=[].concat(k.name?[k.name]:[],k.Sta!="false"?k.JE?["v:"+k.JE+"."+k.NE]:["v:"+k.NE]:[]).join(" ");if(b!=""){a.length>0&&a.push("");a.push(b);this.Iw.push(this.Tna.bind(this))}return a};
o.prototype.n6=function(a){this.Iw[a.data.index]()};o.prototype.vra=function(){var a=this.mn("PanoramaPlayer"),b=a[0].get("mouseControlMode")==f.Bs?f.Jn:f.Bs;a.forEach(function(a){Storage.setItem(t,b);a.set("mouseControlMode",b)})};o.prototype.Ina=function(){Storage.getItem(t)==f.Jn&&this.mn("PanoramaPlayer").forEach(function(a){a.set("mouseControlMode",f.Jn)});URL.Vf("mute")&&this.set("mute",URL.Lg("mute",this.get("mute")));URL.Vf("vr")&&VR.uh()};o.prototype.tra=function(){this.dg.toggle()};o.prototype.ura=
function(){this.set("mute",!this.get("mute"))};o.prototype.Tna=function(){k.wea&&window.open(k.wea,"_blank")};o.prototype.qna=function(){this.trigger(o.q_)};o.prototype.Bma=function(){b.Xta(p);b.log("UA: "+navigator.userAgent);b.log("screen: ("+Math.max(window.screen.width,window.screen.height)+", "+Math.min(window.screen.width,window.screen.height)+") dpr: "+window.devicePixelRatio+" ("+Math.max(window.screen.width,window.screen.height)*window.devicePixelRatio+", "+Math.min(window.screen.width,window.screen.height)*
window.devicePixelRatio+")");Device.log();Capabilities.log();i.log();VR.log()};o.prototype.fga=function(a){if(AudioActivation.kX())UserInitiatedAction.Az(a);else{AudioActivation.RZ(a);AudioActivation.qg(this)}};var t="tdvp_"+window.location.pathname+"_rotation_mode";return o});define("bP",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("PlayerMenuItem",b).B("Object").L({label:"string"}).Wf([e.T]);return b});
define("K","require,fd,iU,lc,fr,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("fr"),f=a("dT"),g=a("hP"),a=b.extend(c,function(){c.call(this);this.set("visible",z);this.set("state",d.K);this.set("showDuration",1E3);this.set("hideDuration",1E3);this.set("darkenBackground",p);this.set("lookAwayToHide",p);this.set("lookAwayToHideTime",2E3);this.set("showEasing","linear");this.set("hideEasing","linear");this.bind(e.D("state"),function(){this.trigger(e.zc)},this,p);this.Lb=m});a.prototype.show=
function(){this.set("visible",p)};a.prototype.hide=function(){this.set("visible",z)};a.prototype.play=function(){this.set("state",d.R)};a.prototype.pause=function(){this.set("state",d.VF)};a.prototype.stop=function(){this.set("state",d.K)};f.A("PopupPanoramaOverlay",a).B("PanoramaOverlay").L({autoplay:"bool",darkenBackground:"bool",loop:"bool",yaw:"number",pitch:"number",hfov:"number",image:"ImageResource",video:"VideoResource",lookAwayToHide:"bool",lookAwayToHideTime:"number",popupDistance:"number",
popupMaxHeight:"or[number,percent]",popupMaxWidth:"or[number,percent]",rotationX:"number",rotationY:"number",rotationZ:"number",hideEasing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",hideDuration:"number",state:"enum[stopped, playing, paused]",showEasing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",
showDuration:"number",visible:"bool",playbackPositions:"array[PopupPanoramaOverlayPlaybackPosition]"}).Rg({hide:a.prototype.hide,pause:a.prototype.pause,play:a.prototype.play,show:a.prototype.show,stop:a.prototype.stop}).Vb([e.Da,e.hw,e.Os,e.zc]).Wf([e.T]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=g.Rua(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "rotationZ":case "yaw":case "playbackPositions":this.Lb=
m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});define("ld",["dm","fd","cq","dT"],function(a,b,c,e){a=b.extend(c,function(){c.call(this)});e.A("ProgressBar",a).B("UIComponent").L({barBackgroundColor:"or[array[color], color]",barBackgroundColorDirection:"enum[horizontal, vertical]",barBackgroundColorRatios:"array[number]",barBorderColor:"color",barBorderRadius:"number",barBorderSize:"number",barOpacity:"number",percent:"number"});return a});
define("cX","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("contentInteractive",z);this.set("transparent",z)});d.A("QuadFramePanoramaOverlay",a).B("PanoramaOverlay").L({displayTooltipInTouchScreens:"bool",contentInteractive:"bool",enabled:"bool",image:"ImageResource",interactionEnabled:"bool",height:"number",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",
transparent:"bool",toolTip:"string",url:"string",useHandCursor:"bool",vertices:"array[PanoramaPoint]",width:"number"}).Vb([e.zd,e.Ch,e.zf,e.tc,e.Ib,e.nd]).Wf([e.T]).Ah(["url"]);a.prototype.set=function(a,b){var d=z;switch(a){case "vertices":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=f.eY(this);return this.Lb}return c.prototype.get.call(this,
a,b)};return a});define("br",["require","fd","dT","ci"],function(a){var b=a("fd"),c=a("dT"),e=a("ci"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlay",a).B("HotspotPanoramaOverlay");return a});define("gH",["dT","q"],function(a,b){a.A("QuadHotspotPanoramaOverlayArea",b).B("HotspotPanoramaOverlayArea");return b});
define("cW","require,fd,iU,lc,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("dT"),f=a("hP"),a=b.extend(c,function(){c.call(this);this.set("opacity",1);this.Lb=m});d.A("QuadHotspotPanoramaOverlayImageBase",a).B("Object").L({distance:"number",image:"ImageResource",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",opacity:"number",vertices:"array[PanoramaPoint]"}).Vb([e.nd,e.zd]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=
f.eY(this);return this.Lb}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var d=z;switch(a){case "opacity":case "distance":case "vertices":case "playbackPositions":this.Lb=m;d=p}c.prototype.set.call(this,a,b);d&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};return a});
define("ei",["require","fd","dT","cW"],function(a){var b=a("fd"),c=a("dT"),e=a("cW"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlayImage",a).B("QuadHotspotPanoramaOverlayImageBase");return a});define("hQ",["require","fd","dT","cW"],function(a){var b=a("fd"),c=a("dT"),e=a("cW"),a=b.extend(e,function(){e.call(this)});c.A("QuadHotspotPanoramaOverlayMap",a).B("QuadHotspotPanoramaOverlayImageBase");return a});
define("dM","require,fd,iU,lc,fr,bY,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("fr"),f=a("bY"),g=a("dT"),k=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("state",d.K);this.set("enabledInCardboard",p);this.set("enabledInStandard",p);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});a.prototype.play=function(){this.set("state",d.R)};a.prototype.pause=
function(){this.set("state",d.yc)};a.prototype.stop=function(){this.set("state",d.K)};g.A("QuadVideoPanoramaOverlay",a).B("PanoramaOverlay").L({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",distance:"number",displayTooltipInTouchScreens:"bool",enabled:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",videoVisibleOnStop:"bool",
vertices:"array[PanoramaPoint]",image:"ImageResource",loop:"bool",opacity:"number",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",state:"enum[stopped, playing, paused]",toolTip:"string",useHandCursor:"bool",video:"VideoResource"}).Vb([e.Da,e.zd,e.Ch,e.zf,e.tc,e.Ib,e.nd,e.Di,e.xf,e.zc]).Wf([e.T]).Rg({pause:a.prototype.pause,play:a.prototype.play,stop:a.prototype.stop});a.prototype.set=function(a,b){var g=z;switch(a){case "state":var k=this.get("state")||d.K;k==d.K&&b==d.R&&this.trigger(e.Di);
k!=b&&this.trigger(new f(e.zc,{oldState:k,state:b}));break;case "enabledInCardboard":this.set("enabledInVR",b);break;case "distance":case "opacity":case "playbackPositions":case "vertices":this.Lb=m;g=p}c.prototype.set.call(this,a,b);g&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=k.eY(this);return this.Lb}return c.prototype.get.call(this,a,b)};return a});
define("jz",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("opacity",0.25);this.set("speed",0.5);this.set("intensity",0.5);this.set("color","#ffffff");this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("RainPanoramaOverlay",b).B("PanoramaOverlay").L({initialState:"enum[playing, stopped]",intensity:"number",speed:"number",opacity:"number",color:"color",
startDuration:"number",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"});b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b});
define("dZ",["require","fd","iU","dT","lc"],function(a){var b=a("fd"),c=a("iU"),e=a("dT"),a=a("lc"),b=b.extend(c,function(){c.call(this)});e.A("RotationalCameraMovement",b).B("Object").L({easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",duration:"number",hfovSpeed:"number",pitchSpeed:"number",yawSpeed:"number"}).Vb([a.Da]);return b});
define("bN",["fd","dC","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideInEffect",a).B("Effect").L({from:"enum[left, top, right, bottom]"});return a});define("gr",["fd","fM","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("SlideOutEffect",a).B("Effect").L({to:"enum[left, top, right, bottom]"});return a});
define("kz",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("initialState","playing");this.set("intensity",0.5);this.set("speed",0.25);this.set("state","playing");this.set("startDuration",2E4);this.set("stopDuration",2E4)});a.A("SnowPanoramaOverlay",b).B("PanoramaOverlay").L({initialState:"enum[playing, stopped]",intensity:"number",speed:"number",startDuration:"number",state:"enum[playing, stopped]",stopDuration:"number",startState:"enum[playing, stopped]"});
b.prototype.get=function(a,b){"startState"==a&&b===m&&(b=this.get("initialState"));return c.prototype.get.call(this,a,b)};return b});
define("jq",["require","fd","dT","iI"],function(a){var b=a("fd"),c=a("dT"),e=a("iI"),a=b.extend(e,function(){e.call(this)});c.A("SphericPanoramaFrame",a).B("PanoramaFrame").L({sphere:"or[ImageResource, Video360Resource]",stereoSphere:"or[ImageResource, Video360Resource]"});a.prototype.yh=function(){var a=this.get("sphere");return a&&c.ob("Video360Resource",a)?p:(a=this.get("stereoSphere"))&&c.ob("Video360Resource",a)?p:z};return a});
define("cy","dm,fd,u,kJ,jP,N,gM".split(","),function(a,b,c,e,d,f,g){var k=b.extend(e,function(a){e.call(this);this.Xc("Tab");this.QT=a;this.fi="";this.OV=z;this.t5=this.qa=r;this.TW=this.SW=z;this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p)});k.prototype.ya=function(){e.prototype.ya.call(this);this.f("horizontalAlign",d.Kc);this.f("verticalAlign",d.rc);this.f("fontFamily");this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");this.f("textDecoration");
this.f("textShadowBlurRadius");this.f("textShadowColor");this.f("textShadowHorizontalLength");this.f("textShadowOpacity");this.f("textShadowVerticalLength")};k.prototype.Xda=function(a){if(this.SW!=a){this.SW=a;this.TW=p;this.Bc()}};k.prototype.Ia=function(){e.prototype.Ia.call(this);if(this.qa==r){this.qa=new g;this.qa.set("horizontalAlign","center");this.ma(this.qa)}};k.prototype.Vk=function(){e.prototype.Vk.call(this);this.t5=c.watch(this.QT,"label",this.ena,this);this.v9(this.QT.get("label"))};
k.prototype.KU=function(){e.prototype.KU.call(this);this.t5.unwatch()};k.prototype.ena=function(){var a=this.QT.get("label");this.v9(a?a:"")};k.prototype.v9=function(a){if(this.fi!=a){this.fi=a;this.OV=p;this.Bc()}};k.prototype.ga=function(){if(this.OV){this.OV=z;this.qa.set("text",this.fi)}if(this.TW){this.TW=z;this.qa.set("direction",this.SW?f.df:f.we)}this.fb(k.d1,k.nw,[this.qa],p,p);e.prototype.ga.call(this)};k.d1=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration",
"textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];k.nw={};a(k.d1).each(function(a){k.nw[a]=a});return k});define("dS",[],function(){return{Nz:"normal",aw:"inverse",ZZ:"center"}});
define("cp","dm,fd,W,R,lc,kJ,jP,c,cy,dS,bh".split(","),function(a,b,c,e,d,f,g,k,i,n,j){b=b.extend(f,function(){f.call(this);this.Xc("TabPanel");this.td=-1;this.Bu=z;this.pD=[];this.GK=z;this.Hm=[];this.ST=z;this.oD=[];this.De=this.of=r;this.Du(z)});b.prototype.ya=function(){f.prototype.ya.call(this);this.f("pages",[]);this.f("selectedIndex",-1);this.f("tabsSize",25);this.f("tabsPosition",j.jb);this.f("tabsGap",0);this.f("tabsPadding",10);this.f("tabsAlign",n.Nz);this.f("tabsBackgroundOpacity",0.6);
this.f("tabsBackgroundColor",["#FFFFFF","#CCCCCC"]);this.f("tabsBackgroundColorRatios",[0,0.5]);this.f("tabsRollOverBackgroundOpacity",1);this.f("tabsRollOverBackgroundColor",["#FFFFFF","#CCCCCC"]);this.f("tabsRollOverBackgroundColorRatios",[0,0.5]);this.f("backgroundColor","#FFFFFF");this.f("selectedTabBackgroundOpacity",1);this.f("selectedTabBackgroundColor");this.f("selectedTabBackgroundColorRatios");this.f("borderRadius",6);this.f("pagePaddingLeft",4);this.f("pagePaddingTop",4);this.f("pagePaddingRight",
4);this.f("pagePaddingBottom",4);this.f("borderColor","#AAAAAA");this.f("borderSize",1);this.f("selectedTabFontSize");this.f("selectedTabFontColor");this.f("selectedTabFontWeight");this.f("selectedTabFontStyle");this.f("selectedTabTextDecoration");this.f("selectedTabTextShadowBlurRadius");this.f("selectedTabTextShadowColor");this.f("selectedTabTextShadowHorizontalLength");this.f("selectedTabTextShadowOpacity");this.f("selectedTabTextShadowVerticalLength");this.f("tabsFontFamily");this.f("tabsFontSize");
this.f("tabsFontColor");this.f("tabsFontWeight");this.f("tabsFontStyle");this.f("tabsTextDecoration");this.f("tabsTextShadowBlurRadius");this.f("tabsTextShadowColor");this.f("tabsTextShadowHorizontalLength");this.f("tabsTextShadowOpacity");this.f("tabsTextShadowVerticalLength");this.f("tabsRollOverFontSize");this.f("tabsRollOverFontColor");this.f("tabsRollOverFontWeight");this.f("tabsRollOverFontStyle");this.f("tabsRollOverTextDecoration");this.f("tabsRollOverTextShadowBlurRadius");this.f("tabsRollOverTextShadowColor");
this.f("tabsRollOverTextShadowHorizontalLength");this.f("tabsRollOverTextShadowOpacity");this.f("tabsRollOverTextShadowVerticalLength")};b.prototype.Ia=function(){f.prototype.Ia.call(this);if(this.De==r){this.De=new f;this.De.Du(z);this.ma(this.De)}if(this.of==r){this.of=new f;this.of.Du(z);this.ma(this.of)}};b.prototype.set=function(a,b){if(a=="pages")this.Yxa(b||[]);else if(a=="selectedIndex")this.xZ(b);else if(a=="layout")b=k.bza;f.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){return a==
"pages"?this.Hm:a=="selectedIndex"?this.td:f.prototype.get.call(this,a,b)};b.prototype.xZ=function(a){if(this.td!=a){this.td=a;this.td=Math.min(Math.max(this.td,-1),this.Hm.length);this.Bu=p;this.Bc();this.trigger(d.aa)}};b.prototype.Yxa=function(b){if(!a.isEqual(this.Hm,b)){this.Hm=b;this.ST=p;this.Bc()}};b.prototype.jra=function(b){this.pD=a(this.pD).union([b.source]);this.GK=p;this.Bc()};b.prototype.ira=function(b){this.pD=a(this.pD).difference([b.source]);this.GK=p;this.Bc()};b.prototype.hra=
function(b){this.xZ(a(this.oD).indexOf(b.source))};b.prototype.ga=function(){var b=z,q=z,o=z,t=z,s=z,u=this.k("tabsPosition"),v=this.k("tabsAlign");if(this.ST){this.oD=[];this.of.fda();this.De.fda();a(this.Hm).forEach(function(b){var c=new i(b);c.Du(p);c.bind(d.tc,a.bind(this.jra,this));c.bind(d.Ib,a.bind(this.ira,this));c.bind(d.xb,a.bind(this.hra,this));this.oD.push(c);this.of.ma(c);b.N({top:m,left:m,right:m,bottom:m,width:"100%",height:"100%"});this.De.ma(b)},this);this.td=Math.min(Math.max(this.td,
0),this.Hm.length-1);this.ST=z;q=b=s=p}if(this.n("tabsPosition")){this.p("tabsPosition");t=q=b=p}if(this.Bu){this.Bu=z;o=q=s=p}if(this.GK){this.GK=z;o=p}a(["tabsAlign","tabsGap","tabsSize"]).forEach(function(a){if(this.n(a)){this.p(a);b=p}},this);a(["borderRadius","borderTopRadius","borderBottomRadius","borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderSize","borderLeftSize","borderTopSize","borderRightSize",
"borderBottomSize","borderColor","borderLeftColor","borderTopColor","borderRightColor","borderBottomColor","shadow","shadowHorizontalLength","shadowVerticalLength","shadowBlurRadius","shadowSpread","shadowColor","backgroundOpacity","backgroundColor","backgroundColorRatios"]).forEach(function(a){if(this.n(a)){this.p(a);t=q=p}},this);a(["tabsBackgroundOpacity","tabsBackgroundColor","tabsBackgroundColorRatios","selectedTabBackgroundOpacity","selectedTabBackgroundColor","selectedTabBackgroundColorRatios",
"selectedTabFontSize","selectedTabFontColor","selectedTabFontWeight","selectedTabFontStyle","selectedTabTextDecoration","selectedTabTextShadowColor","selectedTabTextShadowHorizontalLength","selectedTabTextShadowVerticalLength","selectedTabTextShadowBlurRadius","selectedTabTextShadowOpacity","tabsFontFamily","tabsFontSize","tabsFontColor","tabsFontWeight","tabsFontStyle","tabsPadding","tabsTextDecoration","tabsRollOverFontSize","tabsRollOverFontColor","tabsTextShadowColor","tabsTextShadowHorizontalLength",
"tabsTextShadowVerticalLength","tabsTextShadowBlurRadius","tabsTextShadowOpacity","tabsRollOverFontWeight","tabsRollOverFontStyle","tabsRollOverTextDecoration","tabsRollOverTextShadowColor","tabsRollOverTextShadowHorizontalLength","tabsRollOverTextShadowVerticalLength","tabsRollOverTextShadowBlurRadius","tabsRollOverTextShadowOpacity"]).forEach(function(a){if(this.n(a)){this.p(a);q=p}},this);a(["pagePaddingLeft","pagePaddingTop","pagePaddingRight","pagePaddingBottom"]).forEach(function(a){if(this.n(a)){this.p(a);
t=p}},this);this.n("backgroundColorDirection")&&this.p("backgroundColorDirection");if(b){switch(u){case j.oa:this.of.N({left:0,right:m});break;case j.Ka:this.of.N({left:m,right:0});break;case j.jb:this.of.N({bottom:m,top:0});break;case j.ib:this.of.N({bottom:0,top:m})}switch(u){case j.oa:case j.Ka:this.of.N({layout:k.df,top:0,bottom:0,height:m,width:this.k("tabsSize")});switch(v){case n.aw:this.of.set("verticalAlign",g.ib);break;case n.ZZ:this.of.set("verticalAlign",g.rc);break;default:this.of.set("verticalAlign",
g.jb)}break;case j.jb:case j.ib:this.of.N({layout:k.we,left:0,right:0,height:this.k("tabsSize"),width:m});switch(v){case n.aw:this.of.set("horizontalAlign",g.Ka);break;case n.ZZ:this.of.set("horizontalAlign",g.Kc);break;default:this.of.set("horizontalAlign",g.oa)}}this.of.set("gap",this.k("tabsGap"))}if(q)for(var w=0;w<this.Hm.length;w++){var x=this.oD[w];if(u==j.ib||u==j.jb){x.N({layout:k.we,width:m,paddingLeft:this.k("tabsPadding"),paddingTop:0,paddingRight:this.k("tabsPadding"),paddingBottom:0,
height:"100%",backgroundColorDirection:c.EO});x.Xda(z)}else{x.N({layout:k.df,width:"100%",paddingLeft:0,paddingTop:this.k("tabsPadding"),paddingRight:0,paddingBottom:this.k("tabsPadding"),height:m,backgroundColorDirection:c.gO});x.Xda(p)}u==j.ib||u==j.Ka?x.set("borderTopLeftRadius",0):x.set("borderTopLeftRadius",this.k("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));u==j.ib||u==j.oa?x.set("borderTopRightRadius",0):x.set("borderTopRightRadius",this.k("borderTopRightRadius",
"borderTopRadius","borderRightRadius","borderRadius"));u==j.jb||u==j.Ka?x.set("borderBottomLeftRadius",0):x.set("borderBottomLeftRadius",this.k("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));u==j.jb||u==j.oa?x.set("borderBottomRightRadius",0):x.set("borderBottomRightRadius",this.k("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));u==j.Ka&&x.set("borderSize",this.k("borderRightSize","borderSize"));u==j.oa&&x.set("borderSize",this.k("borderLeftSize",
"borderSize"));u==j.jb&&x.set("borderSize",this.k("borderTopSize","borderSize"));u==j.ib&&x.set("borderSize",this.k("borderBottomSize","borderSize"));var y;switch(u){case j.oa:y=this.k("borderLeftColor","borderColor");break;case j.Ka:y=this.k("borderRightColor","borderColor");break;case j.ib:y=this.k("borderBottomColor","borderColor");break;default:case j.jb:y=this.k("borderTopColor","borderColor")}x.set("borderColor",y);x.N({fontFamily:this.k("tabsFontFamily"),shadow:this.k("shadow"),shadowHorizontalLength:this.k("shadowHorizontalLength"),
shadowVerticalLength:this.k("shadowVerticalLength"),shadowBlurRadius:this.k("shadowBlurRadius"),shadowSpread:this.k("shadowSpread"),shadowColor:this.k("shadowColor")})}if(q||o)for(w=0;w<this.Hm.length;w++){x=this.oD[w];o=w==this.td;y=a(this.pD).contains(x);if(o){y=this.k("selectedTabBackgroundColor","tabsBackgroundColor");if(a(y).isUndefined()){y=this.k("backgroundColor");y=a(y).isArray()&&y.length>0?u==j.oa||u==j.jb?y[0]:y[y.length-1]:y}x.N({backgroundOpacity:this.k("selectedTabBackgroundOpacity",
"tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:y,backgroundColorRatios:this.k("selectedTabBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.cd,fontSize:this.k("selectedTabFontSize","tabsFontSize"),fontColor:this.k("selectedTabFontColor","tabsFontColor"),fontWeight:this.k("selectedTabFontWeight","tabsFontWeight"),fontStyle:this.k("selectedTabFontStyle","tabsFontStyle"),textDecoration:this.k("selectedTabTextDecoration","tabsTextDecoration"),textShadowColor:this.k("selectedTabTextShadowColor",
"tabsTextShadowColor"),textShadowHorizontalLength:this.k("selectedTabTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("selectedTabTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("selectedTabTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.k("selectedTabTextShadowOpacity","tabsTextShadowOpacity")})}else y?x.N({backgroundOpacity:this.k("tabsRollOverBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"),
backgroundColor:this.k("tabsRollOverBackgroundColor","tabsBackgroundColor"),backgroundColorRatios:this.k("tabsRollOverBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:e.he,fontSize:this.k("tabsRollOverFontSize","tabsFontSize"),fontColor:this.k("tabsRollOverFontColor","tabsFontColor"),fontWeight:this.k("tabsRollOverFontWeight","tabsFontWeight"),fontStyle:this.k("tabsRollOverFontStyle","tabsFontStyle"),textDecoration:this.k("tabsRollOverTextDecoration","tabsTextDecoration"),textShadowColor:this.k("tabsRollOverTextShadowColor",
"tabsTextShadowColor"),textShadowHorizontalLength:this.k("tabsRollOverTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("tabsRollOverTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("tabsRollOverTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.k("tabsRollOverTextShadowOpacity","tabsTextShadowOpacity")}):x.N({backgroundOpacity:this.k("tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.k("tabsBackgroundColor"),
backgroundColorRatios:this.k("tabsBackgroundColorRatios"),fontSize:this.k("tabsFontSize"),fontColor:this.k("tabsFontColor"),fontWeight:this.k("tabsFontWeight"),fontStyle:this.k("tabsFontStyle"),textDecoration:this.k("tabsTextDecoration"),textShadowColor:this.k("tabsTextShadowColor"),textShadowHorizontalLength:this.k("tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.k("tabsTextShadowVerticalLength"),textShadowBlurRadius:this.k("tabsTextShadowBlurRadius"),textShadowOpacity:this.k("tabsTextShadowOpacity")});
x.N({borderLeftSize:u==j.Ka&&o?0:m,borderRightSize:u==j.oa&&o?0:m,borderBottomSize:u==j.jb&&o?0:m,borderTopSize:u==j.ib&&o?0:m})}if(t){w=this.k("tabsSize");switch(u){case j.oa:this.De.N({left:w-(this.k("borderLeftSize","borderSize")||0),right:0,top:0,bottom:0});break;case j.Ka:this.De.N({left:0,right:w-(this.k("borderRightSize","borderSize")||0),top:0,bottom:0});break;case j.jb:this.De.N({left:0,right:0,top:w-(this.k("borderTopSize","borderSize")||0),bottom:0});break;case j.ib:this.De.N({left:0,right:0,
top:0,bottom:w-(this.k("borderBottomSize","borderSize")||0)})}u==j.jb&&v==n.Nz||u==j.oa&&v==n.Nz?this.De.set("borderTopLeftRadius",0):this.De.set("borderTopLeftRadius",this.k("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));u==j.jb&&v==n.aw||u==j.Ka&&v==n.Nz?this.De.set("borderTopRightRadius",0):this.De.set("borderTopRightRadius",this.k("borderTopRightRadius","borderTopRadius","borderRightRadius","borderRadius"));u==j.ib&&v==n.Nz||u==j.oa&&v==n.aw?this.De.set("borderBottomLeftRadius",
0):this.De.set("borderBottomLeftRadius",this.k("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));u==j.ib&&v==n.aw||u==j.Ka&&v==n.aw?this.De.set("borderBottomRightRadius",0):this.De.set("borderBottomRightRadius",this.k("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));this.De.N({paddingLeft:this.k("pagePaddingLeft"),paddingTop:this.k("pagePaddingTop"),paddingRight:this.k("pagePaddingRight"),paddingBottom:this.k("pagePaddingBottom"),
borderLeftSize:this.k("borderLeftSize","borderSize"),borderTopSize:this.k("borderTopSize","borderSize"),borderRightSize:this.k("borderRightSize","borderSize"),borderBottomSize:this.k("borderBottomSize","borderSize"),borderLeftColor:this.k("borderLeftColor","borderColor"),borderTopColor:this.k("borderTopColor","borderColor"),borderRightColor:this.k("borderRightColor","borderColor"),borderBottomColor:this.k("borderBottomColor","borderColor"),shadow:this.k("shadow"),shadowHorizontalLength:this.k("shadowHorizontalLength"),
shadowVerticalLength:this.k("shadowVerticalLength"),shadowBlurRadius:this.k("shadowBlurRadius"),shadowSpread:this.k("shadowSpread"),shadowColor:this.k("shadowColor"),backgroundOpacity:this.k("backgroundOpacity"),backgroundColor:this.k("backgroundColor"),backgroundColorRatios:this.k("backgroundColorRatios")});u==j.jb||u==j.ib?this.De.set("backgroundColorDirection",c.EO):this.De.set("backgroundColorDirection",c.gO)}if(s)for(w=0;w<this.Hm.length;w++)this.Hm[w].set("visible",w==this.td);f.prototype.ga.call(this)};
return b});
define("kC",["dm","fd","lc","cp","dT"],function(a,b,c,e,d){a=b.extend(e,function(){e.call(this)});d.A("TabPanel",a).B("Container").L({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"}).Mp(["selectedTabFontSize","tabsFontSize","tabsRollOverFontSize"]).Vb([c.aa]);return a});define("ex",["fd","kJ"],function(a,b){var c=a.extend(b,function(){b.call(this);this.Xc("Page");this.set("label","")});c.prototype.ya=function(){b.prototype.ya.call(this);this.f("visible",m)};return c});
define("T",["fd","ex","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("TabPanelPage",a).B("Container").L({label:"string"});return a});define("eX",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("TargetPanoramaCameraMovement",b).B("TargetRotationalCameraMovement");return b});
define("cE",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("TargetRotationalCameraDisplayMovement",b).B("RotationalCameraMovement").L({stereographicFactorSpeed:"number",path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number",targetStereographicFactor:"number"});return b});
define("fZ",["require","fd","ja","dT"],function(a){var b=a("fd"),c=a("ja"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("TiledImageResourceLevel",b).B("ImageResourceLevel").L({rowCount:"number",colCount:"number"});return b});define("he",["require","fd","dT","gh"],function(a){var b=a("fd"),c=a("dT"),e=a("gh"),a=b.extend(e,function(){e.call(this)});c.A("TripodCapPanoramaOverlay",a).B("CapPanoramaOverlay");return a});
define("gk","require,fd,u,lc,jP,cj,R,c,bh,je,fj,kJ,jw,gM,dm".split(","),function(a){var b=a("fd"),c=a("u"),e=a("lc"),d=a("jP"),f=a("cj"),g=a("R"),k=a("c"),i=a("bh"),n=a("je"),j=a("fj"),l=a("kJ"),q=a("jw"),o=a("gM"),t=a("dm"),s=b.extend(l,function(){l.call(this);this.qa=this.Yc=r;this.kt=[];this.set("autoRolledOver",p);this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p);this.set("creationPolicy",f.Ps);this.set("cursor",g.he)});s.prototype.ya=function(){l.prototype.ya.call(this);this.f("overflow",
"hidden");this.f("item");this.f("thumbnailUrlFunction",this.IQ);this.f("sourceProperties");this.f("labelFunction",this.GQ);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",j.v,"backgroundOpacity");this.h("rollOverBackgroundColor",j.v,"backgroundColor");this.h("rollOverBackgroundColorRatios",j.v,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",j.v,"backgroundColorDirection");this.h("rollOverBorderRadius",j.v,"borderRadius");this.h("rollOverBorderTopRadius",j.v,"borderTopRadius");this.h("rollOverBorderBottomRadius",j.v,"borderBottomRadius");this.h("rollOverBorderLeftRadius",j.v,"borderLeftRadius");this.h("rollOverBorderRightRadius",
j.v,"borderRightRadius");this.h("rollOverBorderTopLeftRadius",j.v,"borderTopLeftRadius");this.h("rollOverBorderTopRightRadius",j.v,"borderTopRightRadius");this.h("rollOverBorderBottomLeftRadius",j.v,"borderBottomLeftRadius");this.h("rollOverBorderBottomRightRadius",j.v,"borderBottomRightRadius");this.h("rollOverBorderSize",j.v,"borderSize");this.h("rollOverBorderLeftSize",j.v,"borderLeftSize");this.h("rollOverBorderTopSize",j.v,"borderTopSize");this.h("rollOverBorderRightSize",j.v,"borderRightSize");
this.h("rollOverBorderBottomSize",j.v,"borderBottomSize");this.h("rollOverBorderColor",j.v,"borderColor");this.h("rollOverBorderLeftColor",j.v,"borderLeftColor");this.h("rollOverBorderTopColor",j.v,"borderTopColor");this.h("rollOverBorderRightColor",j.v,"borderRightColor");this.h("rollOverBorderBottomColor",j.v,"borderBottomColor");this.h("rollOverLabelFontColor",j.v,"labelFontColor");this.h("rollOverLabelFontSize",j.v,"labelFontSize");this.h("rollOverLabelFontStyle",j.v,"labelFontStyle");this.h("rollOverLabelFontWeight",
j.v,"labelFontWeight");this.h("rollOverLabelTextDecoration",j.v,"labelTextDecoration");this.h("rollOverLabelTextShadowColor",j.v,"labelTextShadowColor");this.h("rollOverLabelTextShadowHorizontalLength",j.v,"labelTextShadowHorizontalLength");this.h("rollOverLabelTextShadowVerticalLength",j.v,"labelTextShadowVerticalLength");this.h("rollOverLabelTextShadowBlurRadius",j.v,"labelTextShadowBlurRadius");this.h("rollOverLabelTextShadowOpacity",j.v,"labelTextShadowOpacity");this.h("rollOverOpacity",j.v,"opacity");
this.h("rollOverPaddingLeft",j.v,"paddingLeft");this.h("rollOverPaddingTop",j.v,"paddingTop");this.h("rollOverPaddingRight",j.v,"paddingRight");this.h("rollOverPaddingBottom",j.v,"paddingBottom");this.h("rollOverShadow",j.v,"shadow");this.h("rollOverThumbnailOpacity",j.v,"thumbnailOpacity");this.h("rollOverThumbnailBorderSize",j.v,"thumbnailBorderSize");this.h("rollOverThumbnailBorderColor",j.v,"thumbnailBorderColor");this.h("rollOverThumbnailShadow",j.v,"thumbnailShadow");this.h("rollOverThumbnailShadowHorizontalLength",
j.v,"thumbnailShadowHorizontalLength");this.h("rollOverThumbnailShadowVerticalLength",j.v,"thumbnailShadowVerticalLength");this.h("rollOverThumbnailShadowBlurRadius",j.v,"thumbnailShadowBlurRadius");this.h("rollOverThumbnailShadowSpread",j.v,"thumbnailShadowSpread");this.h("rollOverThumbnailShadowColor",j.v,"thumbnailShadowColor");this.h("rollOverThumbnailShadowOpacity",j.v,"thumbnailShadowOpacity");this.h("selectedBackgroundOpacity",j.G,"backgroundOpacity");this.h("selectedBackgroundColor",j.G,"backgroundColor");
this.h("selectedBackgroundColorRatios",j.G,"backgroundColorRatios");this.h("selectedBackgroundColorDirection",j.G,"backgroundColorDirection");this.h("selectedBorderRadius",j.G,"borderRadius");this.h("selectedBorderTopRadius",j.G,"borderTopRadius");this.h("selectedBorderBottomRadius",j.G,"borderBottomRadius");this.h("selectedBorderLeftRadius",j.G,"borderLeftRadius");this.h("selectedBorderRightRadius",j.G,"borderRightRadius");this.h("selectedBorderTopLeftRadius",j.G,"borderTopLeftRadius");this.h("selectedBorderTopRightRadius",
j.G,"borderTopRightRadius");this.h("selectedBorderBottomLeftRadius",j.G,"borderBottomLeftRadius");this.h("selectedBorderBottomRightRadius",j.G,"borderBottomRightRadius");this.h("selectedBorderSize",j.G,"borderSize");this.h("selectedBorderLeftSize",j.G,"borderLeftSize");this.h("selectedBorderTopSize",j.G,"borderTopSize");this.h("selectedBorderRightSize",j.G,"borderRightSize");this.h("selectedBorderBottomSize",j.G,"borderBottomSize");this.h("selectedBorderColor",j.G,"borderColor");this.h("selectedBorderLeftColor",
j.G,"borderLeftColor");this.h("selectedBorderTopColor",j.G,"borderTopColor");this.h("selectedBorderRightColor",j.G,"borderRightColor");this.h("selectedBorderBottomColor",j.G,"borderBottomColor");this.h("selectedLabelFontColor",j.G,"labelFontColor");this.h("selectedLabelFontSize",j.G,"labelFontSize");this.h("selectedLabelFontStyle",j.G,"labelFontStyle");this.h("selectedLabelFontWeight",j.G,"labelFontWeight");this.h("selectedLabelTextDecoration",j.G,"labelTextDecoration");this.h("selectedLabelTextShadowColor",
j.G,"labelTextShadowColor");this.h("selectedLabelTextShadowHorizontalLength",j.G,"labelTextShadowHorizontalLength");this.h("selectedLabelTextShadowVerticalLength",j.G,"labelTextShadowVerticalLength");this.h("selectedLabelTextShadowBlurRadius",j.G,"labelTextShadowBlurRadius");this.h("selectedLabelTextShadowOpacity",j.G,"labelTextShadowOpacity");this.h("selectedOpacity",j.G,"opacity");this.h("selectedPaddingLeft",j.G,"paddingLeft");this.h("selectedPaddingTop",j.G,"paddingTop");this.h("selectedPaddingRight",
j.G,"paddingRight");this.h("selectedPaddingBottom",j.G,"paddingBottom");this.h("selectedShadow",j.G,"shadow");this.h("selectedThumbnailOpacity",j.G,"thumbnailOpacity");this.h("selectedThumbnailBorderSize",j.G,"thumbnailBorderSize");this.h("selectedThumbnailBorderColor",j.G,"thumbnailBorderColor");this.h("selectedThumbnailShadow",j.G,"thumbnailShadow");this.h("selectedThumbnailShadowHorizontalLength",j.G,"thumbnailShadowHorizontalLength");this.h("selectedThumbnailShadowVerticalLength",j.G,"thumbnailShadowVerticalLength");
this.h("selectedThumbnailShadowBlurRadius",j.G,"thumbnailShadowBlurRadius");this.h("selectedThumbnailShadowSpread",j.G,"thumbnailShadowSpread");this.h("selectedThumbnailShadowColor",j.G,"thumbnailShadowColor");this.h("selectedThumbnailShadowOpacity",j.G,"thumbnailShadowOpacity")};s.prototype.lF=function(a){this.WC(a)};s.prototype.Ia=function(){l.prototype.Ia.call(this);if(!this.Yc){this.Yc=new q;this.ma(this.Yc);this.Yc.set("horizontalAlign",d.Kc);this.Yc.set("verticalAlign",d.rc);this.Yc.bind(e.S,
this.TV,this)}if(!this.qa){this.qa=new o;this.ma(this.qa)}};s.prototype.IQ=function(a){if(t(a).isString())return a;if(a&&a.KZ)return a.KZ};s.prototype.GQ=function(a){if(a&&a.label)return a.label};s.prototype.ga=function(){if(this.n("sourceProperties")||this.n("item")){for(;this.kt.length;)this.kt.pop().unwatch();var a=this.k("sourceProperties"),b=this.k("item");a&&b&&a.forEach(function(a){this.kt.push(c.watch(b,a,this.JT,this,p))}.bind(this))}if(this.n("sourceProperties")||this.n("item")||this.n("tooltipFunction")){b=
this.k("item");a=this.k("tooltipFunction")(b);this.set("toolTip",a)}if(this.n("sourceProperties")||this.n("item")||this.n("thumbnailUrlFunction")){b=this.k("item");(a=this.k("thumbnailUrlFunction")(b))?this.Yc.get("url")!=a&&this.Yc.N({url:a,visible:p,opacity:0.5}):this.Yc.N({url:m,visible:z});this.p("thumbnailUrlFunction")}if(this.n("sourceProperties")||this.n("item")||this.n("labelFunction")){b=this.k("item");a=this.k("labelFunction")(b);this.qa.N({text:a,visible:a?p:z});this.p("labelFunction")}this.p("item");
this.p("sourceProperties");if(this.n("labelPosition")||this.n("listLayout")||this.n("thumbnailWidth")||this.n("thumbnailHeight")){var d=this,a=function(a,b){var c=d.k(a);return c!==m?c:b};switch(this.k("labelPosition")){case i.oa:case i.Ka:this.set("layout",k.we);this.qa.set("width","100%");this.Yc.N({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.Wg)});break;default:this.set("layout",k.df);this.qa.set("width","100%");this.Yc.N({height:a("thumbnailHeight",
"100%"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",n.Wg)})}switch(this.k("labelPosition")){case i.oa:case i.jb:this.wj(this.qa,0);break;default:this.wj(this.qa,1)}this.p("labelPosition")}this.fb(s.PO,s.c1,[this],p,p);this.fb(s.RO,s.f1,[this.Yc],p,p);this.fb(s.QO,s.e1,[this.qa],p,p);l.prototype.ga.call(this)};s.prototype.JT=function(){this.Eu("item")};s.prototype.Cu=function(a){l.prototype.Cu.call(this,a)};s.prototype.TV=function(){this.Yc.set("opacity",1)};s.c1={labelGap:"gap"};
s.PO=t(s.c1).keys();s.e1={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"};
s.QO=t(s.e1).keys();s.f1={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"};
s.RO=t(s.f1).keys();return s});
define("bA","fd,bY,jP,lc,cj,c,fS,bh,kJ,gk,dm".split(","),function(a,b,c,e,d,f,g,k,i,n,j){var l=a.extend(i,function(){i.call(this);this.set("contentOpaque",p)});l.prototype.ya=function(){i.prototype.ya.call(this);this.f("layout",f.Wp);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",g.mm);this.f("itemHorizontalAlign",c.Kc);this.f("itemLabelFontFamily");this.f("itemLabelPosition",k.ib);this.f("itemLabelFunction");this.f("itemLabelMaxWidth");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",
c.Kc);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.rc);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.rB=function(a){this.sk=p;this.set("selectedIndex",this.IR(a.source))};l.prototype.IR=function(a){for(var b=this.Oa(),c=0;c<b.length;c++)if(b[c]==a)return c;return-1};l.prototype.ga=function(){this.n("layout")&&this.k("layout")!=f.Wp&&this.set("layout",f.Wp);var a=z;if(this.n("items")){var a=p,c=this.k("items")||
[],d=this.Oa();if(d.length<c.length){for(var g=d.length;g<c.length;g++){d=new n;d.bind(e.T,this.rB,this);this.fb(l.Wz,l.Ws,[d],z,z);this.fb(l.Xz,l.Xs,[d],z,z);this.ma(d)}d=this.Oa()}if(d.length>c.length){for(g=c.length;g<d.length;g++){var j=d[g];j.unbind(e.T,this.rB,this);this.removeChild(j)}d=this.Oa()}for(g=0;g<c.length;g++)d[g].set("item",c[g]);this.p("items")}if(this.n("selectedIndex")||a){c=this.Oa();a=Math.min(c.length-1,Math.max(-1,this.k("selectedIndex")));this.set("selectedIndex",a);for(g=
0;g<c.length;g++)c[g].lF(g==a);this.p("selectedIndex");if(this.sk){this.sk=z;this.trigger(new b(e.aa))}}this.fb(l.Wz,l.Ws,this.Oa(),p,z);this.fb(l.Xz,l.Xs,this.Oa(),p,p);i.prototype.ga.call(this)};l.Ws={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};l.Xs={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.Wz=j(l.Ws).keys();l.Xz=j(l.Xs).keys();return l});
define("hG","fd,lc,bA,dT,jK,dk,by,dm".split(","),function(a,b,c,e,d,f,g){a=a.extend(c,function(){c.call(this);this.Rb=r;this.set("itemMode","normal");this.gl=z;this.pA=new d(this,"buttonScrollDown",f.Tc);this.pA.bind(b.T,this.yda,this);this.qA=new d(this,"buttonScrollLeft",f.Tc);this.qA.bind(b.T,this.scrollLeft,this);this.rA=new d(this,"buttonScrollRight",f.Tc);this.rA.bind(b.T,this.zda,this);this.sA=new d(this,"buttonScrollUp",f.Tc);this.sA.bind(b.T,this.Ada,this);this.bind(b.aa,this.Kna,this)});
e.A("ThumbnailGrid",a).B("UIComponent").L({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]"}).Mp(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).Vb([b.aa]);a.prototype.ui=function(){c.prototype.ui.call(this);this.Pu()};a.prototype.jp=function(){c.prototype.jp.call(this);this.Pu()};a.prototype.Pu=function(){this.pA.set("visible",!this.gl||this.DG());this.sA.set("visible",!this.gl||this.GG());this.qA.set("visible",!this.gl||this.EG());this.rA.set("visible",!this.gl||this.FG())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.yo);this.set("itemThumbnailUrlFunction",this.tB);this.set("itemTooltipFunction",this.Rt);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.Rt);this.set("itemThumbnailUrlFunction",this.yo);this.set("itemTooltipFunction",this.yo);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.Rt);this.set("itemThumbnailUrlFunction",this.tB);
this.set("itemTooltipFunction",this.yo);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.Rb&&this.Rb.unbind("change",this.Mo,this);if(this.Rb=b){this.set("items",this.Rb.get("items"));this.set("selectedIndex",this.Rb.get("selectedIndex"));this.Rb.bind("change",this.Mo,this,p)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.gl=b;this.Pu()}else c.prototype.set.call(this,a,b)};a.prototype.get=function(a,
b){switch(a){case "playList":return this.Rb;default:return c.prototype.get.call(this,a,b)}};a.prototype.Mo=function(){this.set("items",this.Rb.get("items"));this.set("selectedIndex",this.Rb.get("selectedIndex"))};a.prototype.Kna=function(){this.Rb&&this.Rb.set("selectedIndex",this.get("selectedIndex"))};a.prototype.yo=C();a.prototype.Rt=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.tB=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&
(b=g.Aaa(b));return b};return a});
define("hX","require,fd,u,lc,jP,cj,R,c,bh,je,fj,kJ,jw,gM,dm".split(","),function(a){var b=a("fd"),c=a("u"),e=a("lc"),d=a("jP"),f=a("cj"),g=a("R"),k=a("c"),i=a("bh"),n=a("je"),j=a("fj"),l=a("kJ"),q=a("jw"),o=a("gM"),t=a("dm"),s=b.extend(l,function(){l.call(this);this.qa=this.Yc=r;this.kt=[];this.set("autoRolledOver",p);this.set("childrenInteractionEnabled",z);this.set("contentOpaque",p);this.set("creationPolicy",f.Ps);this.set("cursor",g.he)});s.prototype.ya=function(){l.prototype.ya.call(this);this.f("listLayout");
this.f("overflow","hidden");this.f("item");this.f("thumbnailUrlFunction",this.IQ);this.f("sourceProperties");this.f("labelFunction",this.GQ);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",j.v,"backgroundOpacity");this.h("rollOverBackgroundColor",j.v,"backgroundColor");this.h("rollOverBackgroundColorRatios",j.v,"backgroundColorRatios");this.h("rollOverBackgroundColorDirection",j.v,"backgroundColorDirection");this.h("rollOverBorderRadius",j.v,"borderRadius");this.h("rollOverBorderTopRadius",j.v,"borderTopRadius");this.h("rollOverBorderBottomRadius",j.v,"borderBottomRadius");this.h("rollOverBorderLeftRadius",j.v,"borderLeftRadius");this.h("rollOverBorderRightRadius",
j.v,"borderRightRadius");this.h("rollOverBorderTopLeftRadius",j.v,"borderTopLeftRadius");this.h("rollOverBorderTopRightRadius",j.v,"borderTopRightRadius");this.h("rollOverBorderBottomLeftRadius",j.v,"borderBottomLeftRadius");this.h("rollOverBorderBottomRightRadius",j.v,"borderBottomRightRadius");this.h("rollOverBorderSize",j.v,"borderSize");this.h("rollOverBorderLeftSize",j.v,"borderLeftSize");this.h("rollOverBorderTopSize",j.v,"borderTopSize");this.h("rollOverBorderRightSize",j.v,"borderRightSize");
this.h("rollOverBorderBottomSize",j.v,"borderBottomSize");this.h("rollOverBorderColor",j.v,"borderColor");this.h("rollOverBorderLeftColor",j.v,"borderLeftColor");this.h("rollOverBorderTopColor",j.v,"borderTopColor");this.h("rollOverBorderRightColor",j.v,"borderRightColor");this.h("rollOverBorderBottomColor",j.v,"borderBottomColor");this.h("rollOverLabelFontColor",j.v,"labelFontColor");this.h("rollOverLabelFontSize",j.v,"labelFontSize");this.h("rollOverLabelFontStyle",j.v,"labelFontStyle");this.h("rollOverLabelFontWeight",
j.v,"labelFontWeight");this.h("rollOverLabelTextDecoration",j.v,"labelTextDecoration");this.h("rollOverLabelTextShadowColor",j.v,"labelTextShadowColor");this.h("rollOverLabelTextShadowHorizontalLength",j.v,"labelTextShadowHorizontalLength");this.h("rollOverLabelTextShadowVerticalLength",j.v,"labelTextShadowVerticalLength");this.h("rollOverLabelTextShadowBlurRadius",j.v,"labelTextShadowBlurRadius");this.h("rollOverLabelTextShadowOpacity",j.v,"labelTextShadowOpacity");this.h("rollOverOpacity",j.v,"opacity");
this.h("rollOverPaddingLeft",j.v,"paddingLeft");this.h("rollOverPaddingTop",j.v,"paddingTop");this.h("rollOverPaddingRight",j.v,"paddingRight");this.h("rollOverPaddingBottom",j.v,"paddingBottom");this.h("rollOverShadow",j.v,"shadow");this.h("rollOverThumbnailOpacity",j.v,"thumbnailOpacity");this.h("rollOverThumbnailBorderSize",j.v,"thumbnailBorderSize");this.h("rollOverThumbnailBorderColor",j.v,"thumbnailBorderColor");this.h("rollOverThumbnailShadow",j.v,"thumbnailShadow");this.h("rollOverThumbnailShadowHorizontalLength",
j.v,"thumbnailShadowHorizontalLength");this.h("rollOverThumbnailShadowVerticalLength",j.v,"thumbnailShadowVerticalLength");this.h("rollOverThumbnailShadowBlurRadius",j.v,"thumbnailShadowBlurRadius");this.h("rollOverThumbnailShadowSpread",j.v,"thumbnailShadowSpread");this.h("rollOverThumbnailShadowColor",j.v,"thumbnailShadowColor");this.h("rollOverThumbnailShadowOpacity",j.v,"thumbnailShadowOpacity");this.h("selectedBackgroundOpacity",j.G,"backgroundOpacity");this.h("selectedBackgroundColor",j.G,"backgroundColor");
this.h("selectedBackgroundColorRatios",j.G,"backgroundColorRatios");this.h("selectedBackgroundColorDirection",j.G,"backgroundColorDirection");this.h("selectedBorderRadius",j.G,"borderRadius");this.h("selectedBorderTopRadius",j.G,"borderTopRadius");this.h("selectedBorderBottomRadius",j.G,"borderBottomRadius");this.h("selectedBorderLeftRadius",j.G,"borderLeftRadius");this.h("selectedBorderRightRadius",j.G,"borderRightRadius");this.h("selectedBorderTopLeftRadius",j.G,"borderTopLeftRadius");this.h("selectedBorderTopRightRadius",
j.G,"borderTopRightRadius");this.h("selectedBorderBottomLeftRadius",j.G,"borderBottomLeftRadius");this.h("selectedBorderBottomRightRadius",j.G,"borderBottomRightRadius");this.h("selectedBorderSize",j.G,"borderSize");this.h("selectedBorderLeftSize",j.G,"borderLeftSize");this.h("selectedBorderTopSize",j.G,"borderTopSize");this.h("selectedBorderRightSize",j.G,"borderRightSize");this.h("selectedBorderBottomSize",j.G,"borderBottomSize");this.h("selectedBorderColor",j.G,"borderColor");this.h("selectedBorderLeftColor",
j.G,"borderLeftColor");this.h("selectedBorderTopColor",j.G,"borderTopColor");this.h("selectedBorderRightColor",j.G,"borderRightColor");this.h("selectedBorderBottomColor",j.G,"borderBottomColor");this.h("selectedLabelFontColor",j.G,"labelFontColor");this.h("selectedLabelFontSize",j.G,"labelFontSize");this.h("selectedLabelFontStyle",j.G,"labelFontStyle");this.h("selectedLabelFontWeight",j.G,"labelFontWeight");this.h("selectedLabelTextDecoration",j.G,"labelTextDecoration");this.h("selectedLabelTextShadowColor",
j.G,"labelTextShadowColor");this.h("selectedLabelTextShadowHorizontalLength",j.G,"labelTextShadowHorizontalLength");this.h("selectedLabelTextShadowVerticalLength",j.G,"labelTextShadowVerticalLength");this.h("selectedLabelTextShadowBlurRadius",j.G,"labelTextShadowBlurRadius");this.h("selectedLabelTextShadowOpacity",j.G,"labelTextShadowOpacity");this.h("selectedOpacity",j.G,"opacity");this.h("selectedPaddingLeft",j.G,"paddingLeft");this.h("selectedPaddingTop",j.G,"paddingTop");this.h("selectedPaddingRight",
j.G,"paddingRight");this.h("selectedPaddingBottom",j.G,"paddingBottom");this.h("selectedShadow",j.G,"shadow");this.h("selectedThumbnailOpacity",j.G,"thumbnailOpacity");this.h("selectedThumbnailBorderSize",j.G,"thumbnailBorderSize");this.h("selectedThumbnailBorderColor",j.G,"thumbnailBorderColor");this.h("selectedThumbnailShadow",j.G,"thumbnailShadow");this.h("selectedThumbnailShadowHorizontalLength",j.G,"thumbnailShadowHorizontalLength");this.h("selectedThumbnailShadowVerticalLength",j.G,"thumbnailShadowVerticalLength");
this.h("selectedThumbnailShadowBlurRadius",j.G,"thumbnailShadowBlurRadius");this.h("selectedThumbnailShadowSpread",j.G,"thumbnailShadowSpread");this.h("selectedThumbnailShadowColor",j.G,"thumbnailShadowColor");this.h("selectedThumbnailShadowOpacity",j.G,"thumbnailShadowOpacity")};s.prototype.lF=function(a){this.WC(a)};s.prototype.Ia=function(){l.prototype.Ia.call(this);if(!this.Yc){this.Yc=new q;this.ma(this.Yc);this.Yc.set("horizontalAlign",d.Kc);this.Yc.set("verticalAlign",d.rc);this.Yc.bind(e.S,
this.TV,this)}if(!this.qa){this.qa=new o;this.ma(this.qa)}};s.prototype.IQ=function(a){if(t(a).isString())return a;if(a&&a.KZ)return a.KZ};s.prototype.GQ=function(a){if(a&&a.label)return a.label};s.prototype.ga=function(){if(this.n("sourceProperties")||this.n("item")){for(;this.kt.length;)this.kt.pop().unwatch();var a=this.k("sourceProperties"),b=this.k("item");a&&b&&a.forEach(function(a){this.kt.push(c.watch(b,a,this.JT,this,p))}.bind(this))}if(this.n("sourceProperties")||this.n("item")||this.n("tooltipFunction")){b=
this.k("item");a=this.k("tooltipFunction")(b);this.set("toolTip",a)}if(this.n("sourceProperties")||this.n("item")||this.n("thumbnailUrlFunction")){b=this.k("item");(a=this.k("thumbnailUrlFunction")(b))?this.Yc.get("url")!=a&&this.Yc.N({url:a,visible:p,opacity:0.5}):this.Yc.N({url:m,visible:z});this.p("thumbnailUrlFunction")}if(this.n("sourceProperties")||this.n("item")||this.n("labelFunction")){b=this.k("item");a=this.k("labelFunction")(b);this.qa.N({text:a,visible:a?p:z});this.p("labelFunction")}this.p("sourceProperties");
this.p("item");if(this.n("listLayout"))switch(this.k("listLayout")){case k.df:this.N({width:"100%",height:m});break;default:this.N({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.k(a);c===m&&(c=b);return c};switch(this.k("labelPosition")){case i.oa:case i.Ka:this.set("layout",k.we);this.qa.set("width","100%");switch(this.k("listLayout")){case k.df:this.Yc.N({height:a("thumbnailHeight"),
width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.Wg)});break;default:this.Yc.N({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",n.Wg)})}break;default:this.set("layout",k.df);this.qa.set("width",m);switch(this.k("listLayout")){case k.df:this.Yc.N({height:a("thumbnailHeight"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",n.Qk)});break;default:this.Yc.N({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",
n.Wg)})}}switch(this.k("labelPosition")){case i.oa:case i.jb:this.wj(this.qa,0);break;default:this.wj(this.qa,1)}this.p("labelPosition")}this.p("listLayout");this.fb(s.PO,s.nw,[this],p,p);this.fb(s.RO,s.nw,[this.Yc],p,p);this.fb(s.QO,s.nw,[this.qa],p,p);l.prototype.ga.call(this)};s.prototype.JT=function(){this.Eu("item")};s.prototype.Cu=function(a){l.prototype.Cu.call(this,a)};s.prototype.TV=function(){this.Yc.set("opacity",1)};s.PO=["labelGap"];s.RO=["thumbnailBorderColor","thumbnailBorderRadius",
"thumbnailBorderSize","thumbnailMaxWidth","thumbnailMaxHeight","thumbnailOpacity","thumbnailShadow","thumbnailShadowHorizontalLength","thumbnailShadowVerticalLength","thumbnailShadowBlurRadius","thumbnailShadowSpread","thumbnailShadowColor","thumbnailShadowOpacity"];s.QO=["labelFontFamily","labelFontColor","labelFontSize","labelFontStyle","labelFontWeight","labelHorizontalAlign","labelTextDecoration","labelTextShadowColor","labelTextShadowHorizontalLength","labelTextShadowVerticalLength","labelTextShadowBlurRadius",
"labelTextShadowOpacity"];s.nw={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 s});
define("D","require,fd,bY,jP,lc,c,fS,bh,kJ,hX,dm".split(","),function(a){var b=a("fd"),c=a("bY"),e=a("jP"),d=a("lc"),f=a("c"),g=a("fS"),k=a("bh"),i=a("kJ"),n=a("hX"),a=a("dm"),j=b.extend(i,function(){i.call(this);this.set("contentOpaque",p);this.bind(d.D("selectedIndex"),this.mpa,this);this.bind(d.yb,this.rra,this)});j.prototype.ya=function(){i.prototype.ya.call(this);this.f("layout",f.we);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",g.mm);this.f("itemHorizontalAlign",e.Kc);this.f("itemLabelFontFamily");
this.f("itemLabelPosition",k.ib);this.f("itemLabelFunction");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",e.Kc);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.rc);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")};j.prototype.rB=function(a){this.sk=p;this.set("selectedIndex",this.IR(a.source))};j.prototype.mpa=function(){this.P8()};j.prototype.rra=function(){this.P8()};j.prototype.P8=function(){var a=this.get("selectedIndex"),b=this.Oa();a>=0&&a<b.length&&this.scrollIntoView(b[a])};j.prototype.IR=function(a){for(var b=this.Oa(),
c=0;c<b.length;c++)if(b[c]==a)return c;return-1};j.prototype.ga=function(){if(this.n("layout")){var a=this.k("layout");a!=f.df&&a!=f.we&&this.set("layout",f.we)}var b=z;if(this.n("items")){var b=p,a=this.k("items")||[],e=this.Oa();if(e.length<a.length){for(var g=e.length;g<a.length;g++){e=new n;e.bind(d.T,this.rB,this);this.fb(j.Wz,j.Ws,[e],z,z);this.fb(j.Xz,j.Xs,[e],z,z);this.ma(e)}e=this.Oa()}if(e.length>a.length){for(g=a.length;g<e.length;g++){var k=e[g];k.unbind(d.T,this.rB,this);this.removeChild(k)}e=
this.Oa()}for(g=0;g<a.length;g++)e[g].set("item",a[g]);this.p("items")}if(this.n("selectedIndex")||b){a=this.Oa();b=Math.min(a.length-1,Math.max(-1,this.k("selectedIndex")));this.set("selectedIndex",b);for(g=0;g<a.length;g++)a[g].lF(g==b);this.p("selectedIndex");if(this.sk){this.sk=z;this.trigger(new c(d.aa))}}this.fb(j.Wz,j.Ws,this.Oa(),p,z);this.fb(j.Xz,j.Xs,this.Oa(),p,p);i.prototype.ga.call(this)};j.Ws={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",
shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};j.Xs={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"};j.Wz=a(j.Ws).keys();j.Xz=a(j.Xs).keys();return j});
define("fF","fd,lc,D,dT,jK,dk,by,dm".split(","),function(a,b,c,e,d,f,g){a=a.extend(c,function(){c.call(this);this.Rb=r;this.set("itemMode","normal");this.gl=z;this.pA=new d(this,"buttonScrollDown",f.Tc);this.pA.bind(b.T,this.yda,this);this.qA=new d(this,"buttonScrollLeft",f.Tc);this.qA.bind(b.T,this.scrollLeft,this);this.rA=new d(this,"buttonScrollRight",f.Tc);this.rA.bind(b.T,this.zda,this);this.sA=new d(this,"buttonScrollUp",f.Tc);this.sA.bind(b.T,this.Ada,this);this.bind(b.aa,this.Lna,this)});
e.A("ThumbnailList",a).B("UIComponent").L({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:"*"}).Mp(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).Vb([b.aa]);a.prototype.ui=function(){c.prototype.ui.call(this);this.Pu()};a.prototype.jp=function(){c.prototype.jp.call(this);this.Pu()};a.prototype.Pu=function(){this.pA.set("visible",!this.gl||this.DG());this.sA.set("visible",!this.gl||this.GG());this.qA.set("visible",!this.gl||this.EG());this.rA.set("visible",!this.gl||this.FG())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.yo);this.set("itemThumbnailUrlFunction",this.tB);this.set("itemTooltipFunction",this.Rt);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.Rt);this.set("itemThumbnailUrlFunction",this.yo);this.set("itemTooltipFunction",this.yo);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.Rt);this.set("itemThumbnailUrlFunction",this.tB);
this.set("itemTooltipFunction",this.yo);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.Rb&&this.Rb.unbind("change",this.Mo,this);if(this.Rb=b){this.set("items",this.Rb.get("items"));this.Rb.bind("change",this.Mo,this)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.gl=b;this.Pu()}else c.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){switch(a){case "playList":return this.Rb;default:return c.prototype.get.call(this,
a,b)}};a.prototype.Mo=function(){this.set("items",this.Rb.get("items"));this.set("selectedIndex",this.Rb.get("selectedIndex"))};a.prototype.Lna=function(){this.Rb&&this.Rb.set("selectedIndex",this.get("selectedIndex"))};a.prototype.yo=C();a.prototype.Rt=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.tB=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&(b=g.Aaa(b));return b};return a});
define("bE",["fd","lc","d","dT"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});e.A("UIComponent",a).B("Object").L({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]"}).Mp(["toolTipFontSize"]).Ah(["backgroundImageUrl"]).Vb([b.zd,b.INIT,b.T,b.Ch,b.zf,b.yb,b.tc,b.Ib,b.nd,b.y0,b.DO]);return a});define("et",["require","fd","iU","lc","dT"],function(a){var b=a("fd"),c=a("iU"),e=a("lc"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("VideoCue",b).B("Object").L({startTime:"number",endTime:"number"}).Vb([e.Jk,e.Da]);return b});
define("v","require,fd,lc,dT,jP,je,ds,et".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("dT"),d=a("jP"),f=a("je"),g=a("ds");a("et");a=b.extend(g,function(){g.call(this);this.X=m;this.set("autoplay",p);this.set("blending",0);this.set("mute",z);this.set("scaleMode",f.Me);this.set("horizontalAlign",d.Kc);this.set("verticalAlign",d.rc)});e.A("Video",a).B("Media").L({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"}).Vb([c.Da,c.xf]);a.prototype.wp=function(){this.get("video");return[]};return a});
define("fq",["require","fd","lc","dT","gz"],function(a){var b=a("fd"),c=a("lc"),e=a("dT"),d=a("gz"),a=b.extend(d,function(){d.call(this);this.set("autoplay",p)});e.A("VideoPanorama",a).B("Panorama").L({cues:"array[VideoCue]",loop:"bool",autoplay:"bool"}).Vb([c.Da,c.xf]);return a});
define("hh",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this);this.set("hasAudio",p)});a.A("Video360Resource",b).B("Video360ResourceLevel").L({gain:"number",hasAudio:"bool",levels:"array[Video360ResourceLevel]",subtitlesURL:"string"}).Ah(["subtitlesURL"]);b.prototype.get=function(a,b){if(b===m)switch(a){case "gain":b=1}switch(a){case "levels":b=[this];break;case "subtitlesURL":case "gain":for(var f=c.prototype.get.call(this,a),g=this.get("levels"),
k=0;g&&k<g.length&&f===m;k++){var i=g[k];i!=this&&(f=i.get(a))}return f!==m?f:b}return c.prototype.get.call(this,a,b)};return b});
define("cO","require,fd,dm,dT,jq,fq,hh".split(","),function(a){var b=a("fd"),c=a("dm"),e=a("dT"),d=a("jq"),f=a("fq"),g=a("hh"),a=b.extend(f,function(){f.call(this);this.ek=this.Ay=this.Ea=m});e.A("Video360",a).B("VideoPanorama").L({video:"or[Video360Resource, array[Video360Resource]]",videoStereo:"or[Video360Resource, array[Video360Resource]]"});a.prototype.set=function(a,b){a=="video"?this.aha(b):a=="videoStereo"?this.bha(b):f.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a==
"video"?this.Ea!==m?this.Ea:b:a=="videoStereo"?this.Ay!==m?this.Ay:b:f.prototype.get.call(this,a,b)};a.prototype.aha=function(a){if(this.Ea!=a){this.Ea=a;a=f.prototype.get.call(this,"frames")||[];if(this.Ea){a.length==0&&a.push(new d);a[0].set("sphere",this.W5(this.Ea))}f.prototype.set.call(this,"frames",a.slice())}};a.prototype.bha=function(a){if(this.Ay!=a){this.Ay=a;a=f.prototype.get.call(this,"frames")||[];if(this.Ay){a.length==0&&a.push(new d);a[0].set("stereoSphere",this.W5(this.Ay))}f.prototype.set.call(this,
"frames",a.slice())}};a.prototype.W5=function(a){if(c.isArray(a)){var b=[];c(a).each(function(a){b=b.concat(a.get("levels")||[a])});a=new g;a.set("levels",b)}return a};return a});define("bx",["require","fd","dT","kQ"],function(a){var b=a("fd"),c=a("dT"),e=a("kQ"),a=b.extend(e,function(){e.call(this)});c.A("Video360Player",a).B("PanoramaPlayer");return a});
define("hA",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("Video360PlayListItem",a).B("PlayListItem").L({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.yf,this.aj,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.yf,this.aj,this),a.get("video")==this.get("media")&&a.set("video",r));e.prototype.stop.call(this)};a.prototype.aj=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.yf,this.aj,this),this.get("player").bind(c.Bh,this.vl,this),this.Dy())};a.prototype.vl=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Bh,this.vl,this),this.end())};return a});
define("kV",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("Video360ResourceLevel",b).B("VideoResourceLevel");return b});
define("bL","require,fd,iU,lc,fr,bY,dT,hP".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("lc"),d=a("fr"),f=a("bY"),g=a("dT"),k=a("hP"),a=b.extend(c,function(){c.call(this);this.Lb=m;this.set("enabled",p);this.set("interactionEnabled",p);this.set("state",d.K);this.set("enabledInCardboard",p);this.set("enabledInStandard",p);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});a.prototype.play=function(){this.set("state",d.R)};a.prototype.pause=
function(){this.set("state",d.yc)};a.prototype.stop=function(){this.set("state",d.K)};g.A("VideoPanoramaOverlay",a).B("PanoramaOverlay").L({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",distance:"number",displayTooltipInTouchScreens:"bool",enabled:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",videoVisibleOnStop:"bool",
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]"}).Vb([e.Da,e.zd,e.Ch,e.zf,e.tc,e.Ib,e.nd,e.Di,e.xf,e.zc]).Wf([e.T]).Rg({pause:a.prototype.pause,play:a.prototype.play,
stop:a.prototype.stop});a.prototype.set=function(a,b){var g=z;switch(a){case "state":var k=this.get("state")||d.K;k==d.K&&b==d.R&&this.trigger(e.Di);k!=b&&this.trigger(new f(e.zc,{oldState:k,state:b}));break;case "enabledInCardboard":this.set("enabledInVR",b);break;case "distance":case "hfov":case "opacity":case "pitch":case "rotationX":case "rotationY":case "roll":case "vfov":case "yaw":case "playbackPositions":this.Lb=m;g=p}c.prototype.set.call(this,a,b);g&&a!="playbackPositions"&&this.trigger(e.D("playbackPositions"))};
a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Lb===m)this.Lb=k.cY(this);return this.Lb}return c.prototype.get.call(this,a,b)};return a});
define("cF","require,dm,fd,lc,bY,eL,fr".split(","),function(a){function b(a,b,c){this.time=a;this.cue=b;this.action=c}var c=a("dm"),e=a("fd"),d=a("lc"),f=a("bY"),g=a("eL"),k=a("fr"),a=e.extend(g,function(a){g.call(this);this.g=a;this.zb=r;this.gg=z;this.ag=[];this.Ni=m;this.Mc=[]});a.prototype.clear=function(){this.g=r;this.mt();this.ag=[];this.Mc=[]};a.prototype.start=function(a){this.end();this.gV(a);this.kQ();this.GV();this.Uu()};a.prototype.gV=function(a){this.mt();this.zb=a;this.zb.bind(d.D("currentTime"),
this.Uu,this,p);this.zb.bind(d.D("state"),this.GV,this,p);this.zb.bind(d.Da,this.UD,this,p)};a.prototype.mt=function(){if(this.zb){this.zb.unbind(d.D("currentTime"),this.Uu,this);this.zb.unbind(d.D("state"),this.GV,this);this.zb.unbind(d.Da,this.UD,this);this.zb=r}};a.prototype.end=function(){this.uA();this.mt();this.gg=z};a.prototype.GV=function(a){a=a!=k.K;if(this.gg!=a)(this.gg=a)?this.BK():this.uA()};a.prototype.UD=function(){this.Uu()};a.prototype.BK=function(){this.Ni=this.Mw=0};a.prototype.Uu=
function(){if(this.zb&&this.gg){var a=this.Mc.slice(),b=this.zb.get("currentTime",0),e=b-this.Mw;if(e<0){this.Mc=[];this.Ni=0}e=e>=0&&e<2;this.Mw=b;var g;for(g=this.Ni;g<this.ag.length;g++)if(this.ag[g].time>b)break;for(;this.Ni<g;this.Ni++){b=this.ag[this.Ni];if(b.action=="start"){this.Mc=c(this.Mc).union([b.cue]);e&&b.cue.trigger(new f(d.Jk))}else{this.Mc=c(this.Mc).difference([b.cue]);e&&b.cue.trigger(new f(d.Da))}}(a.length!=this.Mc.length||c(a).intersection(this.Mc).length!=this.Mc.length)&&
this.wD()}};a.prototype.uA=function(){if(this.Mc.length>0){this.Mc=[];this.wD()}};a.prototype.wD=function(){this.zb.trigger(new f(d.xf,{activeCues:this.Mc.slice()}))};a.prototype.kQ=function(){this.ag=[];var a=this.zb.get("cues",[]);c(a).each(function(a){this.ag.push(new b(a.get("startTime",0),a,"start"));this.ag.push(new b(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.ag.sort(function(a,b){return a.time==b.time?a.action==b.start?0:a.action=="start"?-1:1:a.time-b.time})};return a});
define("ks","require,fd,V,bY,eL,lc,je".split(","),function(a){var b=a("fd"),c=a("V"),e=a("bY"),d=a("eL");a("lc");a("je");var f=b.extend(d,function(a,b){d.call(this);this.F=a;this.g=b;this.ou=[];this.Y=f.Lj;this.Df=r;this.NQ=m;this.cg=r;this.gi=this.qh=m});f.prototype.display=function(a,b){this.UP();if(this.cg!=a||this.Y!=f.Lj){this.ou.push({video:a,startTime:b});this.Y6()}};f.prototype.hide=function(){this.UP();this.ou.push({video:r,startTime:m});this.Y6()};f.prototype.clear=function(){this.Y=f.Lj;
this.UP();this.Koa();this.t8();this.g=r};f.prototype.Gk=function(a){if(this.Y!=f.Lj&&(this.Y==f.dq||this.Y==f.Zz||this.Y==f.SO)){this.gi=this.gi+a;a=Math.min(1,this.gi/this.qh);if(this.Y==f.dq)this.Df.set("opacity",a);else if(this.Y==f.SO){this.Df.set("opacity",Math.min(1,a*2));this.cg.set("opacity",Math.min(1,(1-a)*2))}else this.cg.set("opacity",1-a);this.gi<this.qh?this.fa():this.Vw()}};f.prototype.Y6=function(){this.ou.length>0&&this.Y==f.Lj&&this.jq()};f.prototype.jq=function(){this.cg&&this.trigger(new e(f.Ls,
{video:this.cg}));if(this.F.get("transitionMode","blending")=="fade_out_fade_in"&&this.cg)this.jA();else{var a=this.ou.shift();this.Df=a.video;this.NQ=a.startTime;this.Df?this.Df.get("chromaColor")&&this.cg?this.eha():this.xP():this.cg&&this.jA()}};f.prototype.xP=function(){this.x1();this.gi=0;this.qh=this.F.get("transitionDuration");this.Y=f.dq;this.fa()};f.prototype.eha=function(){this.x1();this.gi=0;this.qh=this.F.get("transitionDuration")*2;this.Y=f.SO;this.fa()};f.prototype.jA=function(){this.Df=
r;this.gi=0;this.qh=this.F.get("transitionDuration");this.Y=f.Zz;this.fa()};f.prototype.Vw=function(){this.t8();this.cg=this.Df;this.Df=r;this.Y=f.Lj;this.cg?this.trigger(new e(f.Ms,{video:this.cg})):this.ou.length==0&&this.trigger(new e(f.k_));this.ou.length!=0&&this.jq()};f.prototype.fa=function(){c.Ma(this.Gk,this)};f.prototype.UP=function(){this.ou=[]};f.prototype.x1=function(){if(this.Df){this.Df.set("opacity",0);this.Df.set("zIndex",1);this.cg&&this.cg.set("zIndex",0);this.Df.set("currentTime",
this.NQ||0);this.g.jta(this.Df);this.trigger(new e(f.cO,{video:this.Df,startTime:this.NQ}))}};f.prototype.t8=function(){if(this.cg){this.g.jda(this.cg);this.trigger(new e(f.IF,{video:this.cg}));this.cg=r}};f.prototype.Koa=function(){if(this.Df){this.g.jda(this.Df);this.trigger(new e(f.IF,{video:this.Df}));this.Df=r}};f.Lj="stopped";f.dq="blending";f.SO="double blending";f.Zz="disolving";f.Ja="request frame";f.cO="video added";f.IF="video removed";f.Ms="video show";f.Ls="video hide";f.k_="all pending videos hidden";
return f});
define("gW","require,fd,lc,bY,eL,fr".split(","),function(a){var b=a("fd"),c=a("lc"),e=a("bY"),d=a("eL"),f=a("fr"),g=b.extend(d,function(){d.call(this);this.zb=r;this.rd=z;this.zQ=f.K});g.prototype.start=function(a){this.end();this.gV(a)};g.prototype.end=function(){this.stop();this.mt()};g.prototype.clear=function(){this.mt()};g.prototype.play=function(){this.zb&&this.zb.set("state",f.R)};g.prototype.pause=function(){this.zb&&this.zb.set("state",f.yc)};g.prototype.stop=function(){this.zb&&this.zb.set("state",
f.K)};g.prototype.Id=function(a){this.rd=a;this.zb&&this.zb.set("muted",this.rd)};g.prototype.setTime=function(a){this.zb&&this.zb.set("currentTime",a)};g.prototype.getTime=function(){if(this.zb)return this.zb.get("currentTime")};g.prototype.gV=function(a){this.mt();this.zb=a;this.zb.set("mute",this.rd);this.zb.bind(c.D("state"),this.my,this,p);this.zb.bind(c.D("currentTime"),this.Vu,this,p);this.zb.bind(c.Da,this.UD,this,p)};g.prototype.mt=function(){if(this.zb){this.zb.unbind(c.D("state"),this.my,
this);this.zb.unbind(c.D("currentTime"),this.Vu,this);this.zb.unbind(c.Da,this.UD,this);this.zb=r}};g.prototype.Vu=function(){this.trigger(new e(g.Ns,{video:this.zb,time:this.zb.get("currentTime"),duration:this.zb.get("duration")}))};g.prototype.UD=function(){this.trigger(new e(g.Mz,{video:this.zb}))};g.prototype.my=function(a){a=this.zb.get("state");if(this.zQ!=a){this.zQ=a;this.trigger(new e(g.bc,{state:this.zQ}))}};g.bc="playback state change";g.Mz="video end";g.Ns="video time change";return g});
define("kD","fd,fr,bY,eL,cF,ks,gW".split(","),function(a,b,c,e,d,f,g){var k=a.extend(e,function(a,b){e.call(this);this.F=a;this.g=b;this.g.set("visible",z);this.Ca=new f(this.F,this.g);this.ta=new g(this.g);this.dl=new d(this.g);this.Ca.bind(f.Ls,this.vl,this,p);this.Ca.bind(f.Ms,this.aj,this,p);this.Ca.bind(f.cO,this.s7,this,p);this.Ca.bind(f.IF,this.t7,this,p);this.Ca.bind(f.k_,this.Oma,this,p);this.ta.bind(g.bc,this.oe,this,p);this.ta.bind(g.Mz,this.mr,this,p);this.ta.bind(g.Ns,this.oC,this,p)});
k.prototype.clear=function(){this.Ca.clear();this.ta.clear();this.dl.clear();this.Ca.unbind(f.Ls,this.vl,this);this.Ca.unbind(f.Ms,this.aj,this);this.Ca.unbind(f.cO,this.s7,this);this.Ca.unbind(f.IF,this.t7,this);this.ta.unbind(g.bc,this.oe,this);this.ta.unbind(g.Mz,this.mr,this);this.ta.unbind(g.Ns,this.oC,this);this.F=this.g=this.dl=this.ta=this.Ca=r};k.prototype.rya=function(a,b){this.g.set("visible",p);this.Ca.display(a,b)};k.prototype.Gv=function(){this.Ca.hide();this.ta.end();this.dl.end()};
k.prototype.play=function(){this.ta.play()};k.prototype.stop=function(){this.ta.stop()};k.prototype.pause=function(){this.ta.pause()};k.prototype.Id=function(a){this.ta.Id(a)};k.prototype.setTime=function(a){this.ta.setTime(a)};k.prototype.getTime=function(){return this.ta.getTime()};k.prototype.s7=function(a){var b=a.data.video;this.ta.start(b,a.data.startTime);this.dl.start(b)};k.prototype.t7=C();k.prototype.aj=function(a){a=a.data.video;a.get("autoplay")&&a.get("state")!=b.R&&a.set("state",b.R);
this.trigger(new c(k.Ms,{video:a}))};k.prototype.vl=function(a){this.trigger(new c(k.Ls,{video:a.data.video}))};k.prototype.Oma=function(){this.g.set("visible",z)};k.prototype.mr=function(a){this.trigger(new c(k.Mz,{video:a.data.video}))};k.prototype.oC=function(a){this.trigger(new c(k.Ns,{video:a.data.video,time:a.data.time,duration:a.data.duration}))};k.prototype.oe=function(a){this.trigger(new c(k.bc,{state:a.data.state}))};k.Ms="videoShow";k.Ls="videoHide";k.Mz="videoEnd";k.Ns="videoTimeChange";
k.bc="playbackStateChange";return k});
define("iw","require,fd,lc,bY,dT,ct,di,fr,kD,ji".split(","),function(a){var b=a("fd"),c=a("lc");a("bY");var e=a("dT"),d=a("ct"),f=a("di"),g=a("fr"),k=a("kD"),i=a("ji"),a=b.extend(f,function(){f.call(this,"video");this.set("clickAction","none");this.set("displayPlayOverlay",z);this.wt=this.EV=this.Vu=this.rh=z;this.q=this.g=r;this.Kb=this.Zc=0;this.qd=b.An(this.qf,this)});e.A("VideoPlayer",a).B("Object").L({buttonPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonPlay:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonPlayPause:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",clickAction:"enum[play_pause, none]",displayPlayOverlay:"bool",displayPlaybackBar:"bool",currentTime:"number",state:"enum[stopped, playing, paused]",video:"Video",viewerArea:"ViewerArea"}).Rg({seek:function(a){this.SC(a)},play:function(){this.Ex()},pause:function(){this.Dx()},
stop:function(){this.ku()},restart:function(){this.ju()}}).Vb([d.yf,d.Bh,c.zc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "startTime":this.EV=p;this.qd();break;case "video":this.Vu=p;this.qd();break;case "viewerArea":this.rh=p;this.qd();break;case "displayPlaybackBar":this.wt=p;this.qd()}f.prototype.set.call(this,a,b)}};a.prototype.get=function(a,b){switch(a){case "currentTime":return this.q&&this.q.getTime()||0}return f.prototype.get.call(this,a,b)};a.prototype.qf=function(){if(this.rh){this.rh=
z;this.vt();this.get("viewerArea")&&this.tt();this.pK(this.get("viewerArea"));this.Vu=p}var a=z;if(this.g&&(this.Vu||this.EV)){var b=this.get("video"),c=this.get("startTime")||0;if(b&&!this.g.Ua()){this.qd();return}this.EV=this.Vu=z;this.Kb=this.Zc=0;a=p;if(b){this.QJ();this.q.rya(b,c)}else this.q.Gv()}if(this.wt){this.wt=z;a=p}a&&this.KD()};a.prototype.lD=function(){this.set("video",r)};a.prototype.tt=function(){var a=this.get("application"),b=this.get("viewerArea");this.g=new i(a,b,this);this.g.N({left:0,
top:0,bottom:0,right:0});b.ma(this.g);b.bind(c.T,this.w7,this,p);this.q=new k(b,this.g);this.q.bind(k.Ms,this.aj,this);this.q.bind(k.Ls,this.vl,this);this.q.bind(k.Ns,this.oC,this,p);this.q.bind(k.bc,this.oe,this);a.bind(c.D("mute"),this.$B,this);this.q.Id(a.get("mute",z));this.fy(p)};a.prototype.vt=function(){if(this.g){this.q.unbind(k.Ms,this.aj,this);this.q.unbind(k.Ls,this.vl,this);this.q.unbind(k.Ns,this.oC,this);this.q.unbind(k.bc,this.oe,this);this.q.clear();this.get("application").unbind(c.D("mute"),
this.$B,this);var a=this.g.getParent();a.removeChild(this.g);a.unbind(c.T,this.w7,this,p);this.g=r;this.fy(z)}};a.prototype.$B=function(){this.g&&this.q.Id(this.get("application").get("mute",z))};a.prototype.oe=function(a){a=a.data.state;this.g&&this.g.tZ(this.get("displayPlayOverlay")&&a!=g.R,this.Zc<0.5);this.Yb(a)};a.prototype.aj=function(a){var b=this.get("viewerArea");(this.Ac=b&&b.Ac)&&this.Ac.bind(c.T,this.x7,this,p);this.cU=z;this.zI(a.data.video)};a.prototype.vl=function(a){this.Ac&&this.Ac.unbind(c.T,
this.x7,this,p);this.Ac=r;this.yI(a.data.video)};a.prototype.oC=function(a){this.Zc=a.data.time;this.Kb=a.data.duration;this.KD()};a.prototype.w7=function(){if(this.cU)this.cU=z;else switch(this.get("clickAction")){case "play_pause":this.get("state")!=g.R?this.q.play():this.q.pause()}};a.prototype.x7=function(){this.cU=p};a.prototype.BJ=function(a){this.SC(a.data.position)};a.prototype.lh=function(){this.q.play()};a.prototype.qk=function(){this.q.stop()};a.prototype.xl=function(){this.q.pause()};
a.prototype.SC=function(a){this.q&&this.q.setTime(a)};a.prototype.KD=function(){if(this.g){var a=this.g.getParent();this.Kb>0&&this.get("displayPlaybackBar")?a.N({playbackBarPosition:this.Zc,playbackBarDuration:this.Kb,playbackBarVisible:p}):a.set("playbackBarVisible",z)}};return a});
define("e",["fd","dT","ct","dj"],function(a,b,c,e){a=a.extend(e,function(){e.call(this)});b.A("VideoPlayListItem",a).B("PlayListItem").L({media:"Video",player:"VideoPlayer",startTime:"number"});a.prototype.start=function(){e.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.yf,this.aj,this),a.set("video",this.get("media")),a.set("startTime",this.get("startTime")))};a.prototype.stop=function(){var a=this.get("player");a&&(a.unbind(c.yf,this.aj,this),a.get("video")==this.get("media")&&
a.set("video",r));e.prototype.stop.call(this)};a.prototype.aj=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.yf,this.aj,this),this.get("player").bind(c.Bh,this.vl,this),this.Dy())};a.prototype.vl=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.Bh,this.vl,this),this.end())};return a});
define("fJ",["require","fd","iU","dT"],function(a){var b=a("fd"),c=a("iU"),a=a("dT"),b=b.extend(c,function(){c.call(this)});a.A("VideoResourceLevel",b).B("Object").L({bitrate:"number",framerate:"number",height:"number",posterURL:"string",type:"string",url:"string",width:"number"}).Ah(["posterURL","url"]);return b});
define("dx","require,fd,iU,dT,iO,fJ".split(","),function(a){var b=a("fd"),c=a("iU"),e=a("dT"),d=a("iO"),f=a("fJ"),a=b.extend(c,function(){c.call(this);this.pT=new f;this.pT.set("type","video/mp4");this.sT=new f;this.sT.set("type","video/ogg");this.aX=new f;this.aX.set("type","video/webm");this.set("gain",1);this.set("hasAudio",p)});e.A("VideoResource",a).B("Object").L({gain:"number",hasAudio:"bool",height:"number",levels:"array[VideoResourceLevel]",mp4Url:"string",oggUrl:"string",subtitlesURL:"string",
webmUrl:"string",width:"number"}).Ah(["mp4Url","oggUrl","subtitlesURL","webmUrl"]);a.prototype.get=function(a,b){switch(a){case "levels":var b=[],d=this.get("mp4Url");if(d){this.pT.set("url",d);b.push(this.pT)}if(d=this.get("oggUrl")){this.sT.set("url",d);b.push(this.sT)}if(d=this.get("webmUrl")){this.aX.set("url",d);b.push(this.aX)}b.forEach(function(a){a.set("width",this.get("width"));a.set("height",this.get("height"))}.bind(this))}return c.prototype.get.call(this,a,b)};a.prototype.sj=function(){var a=
this.get("webmUrl"),b=this.get("oggUrl"),c=this.get("mp4Url");return c&&d.iM?c:a&&d.kY?a:b&&d.jY?b:c||a||b};return a});
define("cY","require,jquery.mod,fd,lc,r,jk,d,fb".split(","),function(a){var b=a("jquery.mod"),c=a("fd"),e=a("lc"),d=a("r"),f=a("jk"),g=a("d"),k=a("fb"),a=c.extend(g,function(){g.call(this);this.Xc("WebFrame");this.AB=this.At=this.mb=this.qc=r;this.AT=this.AT.bind(this);this.TI=this.TI.bind(this);this.bind(e.nd,this.Sna,this,p);this.bind(e.zd,this.Rna,this,p)});a.prototype.ya=function(){g.prototype.ya.call(this);this.f("url");this.f("backgroundColor","#ffffff");this.f("insetBorder",z);this.f("scrollEnabled",
p)};a.prototype.Sna=function(){this.Eu("url")};a.prototype.Rna=function(){this.Eu("url")};a.prototype.Ia=function(){g.prototype.Ia.call(this);if(!this.qc){this.qc=b("<div></div>");this.qc.css({position:"absolute",left:0,top:0,width:"100%",height:"100%"});this.Pa().append(this.qc)}if(!this.mb){this.mb=b("<iframe></iframe>");this.mb.css({position:"absolute",left:0,top:0});this.mb.attr("allowfullscreen","true");this.mb.attr("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone");
this.qc.append(this.mb)}if(!this.At){this.At=b("<div></div>");this.At.css({"text-shadow":"0 0 5px rgba(255,255,255,0.5)",display:"none",color:"#000000","font-weight":"300","font-family":"Tahoma, Geneva, sans-serif","font-size":d.Wa()?"5vmin":"20px",position:"absolute",top:"50%",left:"50%","text-align":"center",transform:"translate(-50%, -50%)",width:"90%"});this.qc.append(this.At)}};a.prototype.ga=function(){if(this.n("url")){var a=this.k("url");a&&this.Xq?this.g9(a):this.g9("");this.p("url")}if(this.n("insetBorder")){this.k("insetBorder")?
this.mb.attr("frameborder","1"):this.mb.attr("frameborder","0");this.p("insetBorder")}if(this.n("scrollEnabled")){if(this.k("scrollEnabled")){this.mb.attr("scrolling","auto");this.qc.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}else{this.mb.attr("scrolling","no");this.qc.css({overflow:"hidden","-webkit-overflow-scrolling":"auto"})}this.p("scrollEnabled")}g.prototype.ga.call(this)};a.prototype.Le=function(){this.mb&&k.css(this.mb.get(0),{width:this.W+"px",height:this.ea+"px"});g.prototype.Le.call(this)};
a.prototype.refresh=function(){if(this.k("url")&&this.Xq){this.hS();this.rq();this.hW();this.mb.attr("src","");setTimeout(function(){this.K9();this.U1();this.mb.attr("src",this.k("url"))}.bind(this),30)}};a.prototype.g9=function(a){if(this.mb.attr("src")!=a){this.hS();if(a){this.K9();this.U1()}else{this.rq();this.hW()}this.mb.attr("src",a)}};a.prototype.AT=function(){this.AB=r;this.ima()&&this.Cqa()};a.prototype.TI=function(){this.hS();this.rq();this.hW()};a.prototype.U1=function(){this.mb.on("load",
this.TI)};a.prototype.hW=function(){this.mb.off("load",this.TI)};a.prototype.rq=function(){if(this.AB){clearTimeout(this.AB);this.AB=r}};a.prototype.K9=function(){this.rq();this.AB=setTimeout(this.AT.bind(this),3E3)};a.prototype.ima=function(){if(window.location.protocol=="https:"){var a=this.mb.attr("src");if(f.parse(a).protocol!="https:")return p}return z};a.prototype.Cqa=function(){this.At.text("A secure web page served over HTTPS can not display insecure content served over HTTP.");this.At.show()};
a.prototype.hS=function(){this.At.hide()};return a});define("bO",["fd","cY","dT"],function(a,b,c){a=a.extend(b,function(){b.call(this)});c.A("WebFrame",a).B("UIComponent").L({url:"string",insetBorder:"bool",scrollEnabled:"bool"}).Ah(["url"]).Rg({refresh:function(){b.prototype.refresh.call(this)}});return a});define("eW",["dm","fd","kJ","c"],function(a,b,c,e){var d=b.extend(c,function(){c.call(this)});d.kb={layout:e.we};a.defaults(d.kb,c.kb);d.prototype.ya=function(){this.Rj(d.kb)};return d});
define("ju","dm,fd,lc,bY,jP,c,kJ,eW,fD,eC,d,kj,kw,gM".split(","),function(a,b,c,e,d,f,g,k,i,n,j,l,q,o){var t=b.extend(i,function(){i.call(this);this.Xc("Window");this.lq=this.Gw=this.tD=this.Mh=r;this.CP=new g;this.cx=r;this.dS=this.cS=0;this.z9=this.A9=z;this.bX=this.cX=m;for(var a in t.Iza)this.Eu(a);this.bind(c.yb,this.Usa,this);this.bind(c.Os,this.Ssa,this);this.bind(c.hw,this.Vsa,this);this.bind(c.T,this.Rsa,this);this.eL=0;this.vd=new g;this.vd.N({visible:z,includeInLayout:z,layout:"absolute",
height:"100%",width:"100%",backgroundOpacity:0,contentOpaque:z});this.vd.bind(c.yb,this.kaa,this);this.vd.bind(c.hw,this.Msa,this);this.vd.bind(c.Os,this.jaa,this);this.vd.bind(c.Os,this.jaa,this);this.vd.bind(c.T,this.Lsa,this);this.vd.ma(this)});t.prototype.set=function(a,b){switch(a){case "maxWidth":this.cX=b;this.WK();break;case "maxHeight":this.bX=b;this.WK();break;case "children":this.CP.set(a,b);break;case "shadow":this.A9=b;this.gaa();break;default:i.prototype.set.call(this,a,b)}};t.prototype.show=
function(b,c){this.WK(b);this.set("visible",z);this.vd.set("visible",z);this.$ga();c&&this.xta();var d=b.get("children");b.set("children",d.concat([this.vd]));var e=this;a.defer(function(){e.vd.set("visible",p)})};t.prototype.$ga=function(){var a=this.k("modal"),b=this.k("veilShowEffect"),c=this.k("veilHideEffect");a&&b?this.vd.set("showEffect",b):this.vd.set("showEffect",r);a&&c?this.vd.set("hideEffect",c):this.vd.set("hideEffect",r)};t.prototype.hide=function(){this.get("visible")&&this.trigger(c.WZ);
this.eL=0;this.oK(z);this.set("visible",z)};t.prototype.xta=function(){this.set("centerX",0);this.set("centerY",0)};t.prototype.get=function(a,b){return a=="children"?this.CP.get(a,b):i.prototype.get.call(this,a,b)};t.Y0={headerBackgroundOpacity:"backgroundOpacity",headerBackgroundColor:"backgroundColor",headerBackgroundColorRatios:"backgroundColorRatios",headerBackgroundColorDirection:"backgroundColorDirection",headerBorderSize:"borderSize",headerBorderLeftSize:"borderLeftSize",headerBorderTopSize:"borderTopSize",
headerBorderRightSize:"borderRightSize",headerBorderBottomSize:"borderBottomSize",headerBorderColor:"borderColor",headerBorderLeftColor:"borderLeftColor",headerBorderTopColor:"borderTopColor",headerBorderRightColor:"borderRightColor",headerBorderBottomColor:"borderBottomColor",headerHeight:"height",headerPaddingLeft:"paddingLeft",headerPaddingTop:"paddingTop",headerPaddingRight:"paddingRight",headerPaddingBottom:"paddingBottom",headerVerticalAlign:"verticalAlign"};t.X0=a(t.Y0).keys();t.NO={borderRadius:"borderTopRadius",
borderTopRadius:"borderTopRadius",borderLeftRadius:"borderTopLeftRadius",borderRightRadius:"borderTopRightRadius",borderTopLeftRadius:"borderTopLeftRadius",borderTopRightRadius:"borderTopRightRadius"};t.MO=["borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderTopRadius","borderRadius"];t.p1={title:"text",titleFontFamily:"fontFamily",titleFontSize:"fontSize",titleFontColor:"fontColor",titleFontWeight:"fontWeight",titleFontStyle:"fontStyle",titleHorizontalAlign:"horizontalAlign",
titlePaddingLeft:"paddingLeft",titlePaddingTop:"paddingTop",titlePaddingRight:"paddingRight",titlePaddingBottom:"paddingBottom",titleTextDecoration:"textDecoration",titleTextShadowColor:"textShadowColor",titleTextShadowHorizontalLength:"textShadowHorizontalLength",titleTextShadowVerticalLength:"textShadowVerticalLength",titleTextShadowBlurRadius:"textShadowBlurRadius",titleTextShadowOpacity:"textShadowOpacity"};t.o1=a(t.p1).keys();t.S0={closeButtonBackgroundColor:"backgroundColor",closeButtonBackgroundColorDirection:"backgroundColorDirection",
closeButtonBackgroundColorRatios:"backgroundColorRatios",closeButtonBackgroundOpacity:"backgroundOpacity",closeButtonBorderColor:"borderColor",closeButtonBorderRadius:"borderRadius",closeButtonBorderSize:"borderSize",closeButtonHeight:"height",closeButtonIconColor:"iconColor",closeButtonIconHeight:"iconHeight",closeButtonIconLineWidth:"iconLineWidth",closeButtonIconWidth:"iconWidth",closeButtonOpacity:"opacity",closeButtonWidth:"width",closeButtonPaddingBottom:"paddingBottom",closeButtonPaddingLeft:"paddingLeft",
closeButtonPaddingRight:"paddingRight",closeButtonPaddingTop:"paddingTop",closeButtonRollOverBackgroundColor:"rollOverBackgroundColor",closeButtonRollOverBackgroundColorDirection:"rollOverBackgroundColorDirection",closeButtonRollOverBackgroundColorRatios:"rollOverBackgroundColorRatios",closeButtonRollOverBackgroundOpacity:"rollOverBackgroundOpacity",closeButtonRollOverBorderColor:"rollOverBorderColor",closeButtonRollOverBorderSize:"rollOverBorderSize",closeButtonRollOverIconColor:"rollOverIconColor",
closeButtonRollOverIconLineWidth:"rollOverIconLineWidth",closeButtonRollOverOpacity:"rollOverOpacity",closeButtonPressedBackgroundColor:"pressedBackgroundColor",closeButtonPressedBackgroundColorDirection:"pressedBackgroundColorDirection",closeButtonPressedBackgroundColorRatios:"pressedBackgroundColorRatios",closeButtonPressedBackgroundOpacity:"pressedBackgroundOpacity",closeButtonPressedBorderColor:"pressedBorderColor",closeButtonPressedBorderSize:"pressedBorderSize",closeButtonPressedIconColor:"pressedIconColor",
closeButtonPressedIconLineWidth:"pressedIconLineWidth",closeButtonPressedOpacity:"pressedOpacity"};t.R0=a(t.S0).keys();t.U0={footerBackgroundOpacity:"backgroundOpacity",footerBackgroundColor:"backgroundColor",footerBackgroundColorRatios:"backgroundColorRatios",footerBackgroundColorDirection:"backgroundColorDirection",footerBorderSize:"borderSize",footerBorderLeftSize:"borderLeftSize",footerBorderTopSize:"borderTopSize",footerBorderRightSize:"borderRightSize",footerBorderBottomSize:"borderBottomSize",
footerBorderColor:"borderColor",footerBorderLeftColor:"borderLeftColor",footerBorderTopColor:"borderTopColor",footerBorderRightColor:"borderRightColor",footerBorderBottomColor:"borderBottomColor",footerHeight:"height"};t.T0=a(t.U0).keys();t.W0={borderRadius:"borderBottomRadius",borderBottomRadius:"borderBottomRadius",borderLeftRadius:"borderBottomLeftRadius",borderRightRadius:"borderBottomRightRadius",borderBottomLeftRadius:"borderBottomLeftRadius",borderBottomRightRadius:"borderBottomRightRadius"};
t.V0=["borderLeftRadius","borderRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomRadius","borderRadius"];t.O0={bodyBackgroundOpacity:"backgroundOpacity",bodyBackgroundColor:"backgroundColor",bodyBackgroundColorRatios:"backgroundColorRatios",bodyBackgroundColorDirection:"backgroundColorDirection",bodyBorderSize:"borderSize",bodyBorderLeftSize:"borderLeftSize",bodyBorderTopSize:"borderTopSize",bodyBorderRightSize:"borderRightSize",bodyBorderBottomSize:"borderBottomSize",
bodyBorderColor:"borderColor",bodyBorderLeftColor:"borderLeftColor",bodyBorderTopColor:"borderTopColor",bodyBorderRightColor:"borderRightColor",bodyBorderBottomColor:"borderBottomColor",bodyPaddingLeft:"paddingLeft",bodyPaddingTop:"paddingTop",bodyPaddingRight:"paddingRight",bodyPaddingBottom:"paddingBottom",overflow:"overflow",scrollBarColor:"scrollBarColor",scrollBarWidth:"scrollBarWidth",scrollBarMargin:"scrollBarMargin",scrollBarHorizontalMargin:"scrollBarHorizontalMargin",scrollBarVerticalMargin:"scrollBarVerticalMargin",
scrollBarOpacity:"scrollBarOpacity",gap:"gap"};t.N0=a(t.O0).keys();t.P0={layout:"layout",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign"};t.Qfa=a(t.P0).keys();t.r1={veilOpacity:"backgroundOpacity",veilColor:"backgroundColor",veilColorRatios:"backgroundColorRatios",veilColorDirection:"backgroundColorDirection"};t.q1=a(t.r1).keys();t.kb=function(){var b={modal:z,visible:z,centerX:0,centerY:0,veilShowEffect:m,veilHideEffect:m};a.defaults(b,g.kb);for(var c=[].concat(t.X0,t.o1,t.R0,t.N0,
t.T0,t.q1),d=0;d<c.length;d++)b[c[d]]=m;return b}();t.prototype.ya=function(){this.Rj(t.kb)};t.prototype.Ia=function(){i.prototype.Ia.call(this);if(this.Mh==r){this.Mh=new k;this.Mh.set("width","100%");this.Mh.bind(c.xb,this.Bla,this);this.ma(this.Mh)}if(this.tD==r){this.tD=new o;this.tD.set("width","100%");this.Mh.ma(this.tD)}if(this.Gw==r){this.Gw=new n;this.Gw.N({horizontalAlign:d.Kc,verticalAlign:d.rc});this.Gw.bind(c.T,this.lia,this);this.Mh.ma(this.Gw)}if(this.lq==r){this.lq=this.CP;this.lq.N({width:"100%",
height:"100%"});this.ma(this.lq)}if(this.cx==r){this.cx=new g;this.cx.set("width","100%");this.ma(this.cx)}};t.prototype.Lsa=function(){this.eL++;setTimeout(function(){this.eL>0&&this.hide()}.bind(this),100)};t.prototype.Rsa=function(){this.eL--};t.prototype.lia=function(){this.hide()};t.prototype.Bla=function(a){this.cS=a.pageX;this.dS=a.pageY;this.Ua().bind(c.Lc,this.waa,this,p);this.Ua().bind(c.cc,this.xaa,this,p)};t.prototype.waa=function(a){this.set("centerX",this.get("centerX")+(a.pageX-this.cS));
this.set("centerY",this.get("centerY")+(a.pageY-this.dS));this.cS=a.pageX;this.dS=a.pageY;this.faa()};t.prototype.xaa=function(){this.Ua().unbind(c.Lc,this.waa,this);this.Ua().unbind(c.cc,this.xaa,this)};t.prototype.kaa=function(){this.WK()};t.prototype.Msa=function(){this.set("visible",p)};t.prototype.jaa=function(){this.vd.unbind(c.yb,this.kaa,this);var a=this.vd.getParent();a&&a.removeChild(this.vd);this.trigger(new e(c.zs))};t.prototype.Usa=function(){this.faa()};t.prototype.Vsa=function(){this.oK(p)};
t.prototype.Ssa=function(){this.vd.set("visible",z)};t.prototype.oK=function(a){this.z9=a;this.gaa()};t.prototype.gaa=function(){i.prototype.set.call(this,"shadow",this.z9&&this.A9)};t.prototype.WK=function(a){a||(a=this.P);this.cX!==m?i.prototype.set.call(this,"maxWidth",this.cX):a?i.prototype.set.call(this,"maxWidth",a.Ba()):i.prototype.set.call(this,"maxWidth",m);this.bX!==m?i.prototype.set.call(this,"maxHeight",this.bX):a?i.prototype.set.call(this,"maxHeight",a.gb()):i.prototype.set.call(this,
"maxHeight",m)};t.prototype.faa=function(){var a=this.vd.Ba(),b=this.Ba(),c=this.get("centerX"),b=a*0.5+c-b*0.5,d=this.Mh.ni(),e=this.Mh.Ba(),f=Math.min(e,30),a=a-d-f,d=-(d+e-f);b<d?this.set("centerX",c+(d-b)):b>a&&this.set("centerX",c-(b-a));a=this.vd.gb();b=this.gb();c=this.get("centerY");b=a*0.5+c-b*0.5;d=this.Mh.qn();e=this.Mh.gb();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))};t.prototype.ga=function(){this.fb(t.X0,t.Y0,[this.Mh],p,p);this.fb(t.MO,
t.NO,[this.Mh],p,z);this.get("headerHeight")===0?this.fb(t.MO,t.NO,[this.lq],p,z):this.fb(t.MO,t.NO,[this.Mh],p,z);this.fb(t.o1,t.p1,[this.tD],p,p);this.fb(t.R0,t.S0,[this.Gw],p,p);this.fb(t.N0,t.O0,[this.lq],p,p);this.fb(t.Qfa,t.P0,[this.lq],p,z);this.fb(t.T0,t.U0,[this.cx],p,p);this.get("footerHeight")===0?this.fb(t.V0,t.W0,[this.lq],p,z):this.fb(t.V0,t.W0,[this.cx],p,z);if(this.k("modal")){this.fb(t.q1,t.r1,[this.vd],p,p);this.vd.set("contentOpaque",p)}else{this.vd.set("backgroundOpacity",0);this.vd.set("contentOpaque",
z)}this.N({layout:f.df,horizontalAlign:d.Kc,verticalAlign:d.rc});i.prototype.ga.call(this);this.Zj.TM(0)};return t});
define("dn",["dm","fd","ju","dT","lc"],function(a,b,c,e,d){a=b.extend(c,function(){c.call(this)});e.A("Window",a).B("Container").L({modal:"bool",headerBackgroundOpacity:"number",headerBackgroundColor:"or[array[color], color]",headerBackgroundColorRatios:"array[number]",headerBackgroundColorDirection:"enum[horizontal, vertical]",headerBorderSize:"number",headerBorderLeftSize:"number",headerBorderTopSize:"number",headerBorderRightSize:"number",headerBorderBottomSize:"number",headerBorderColor:"color",
headerBorderLeftColor:"color",headerBorderTopColor:"color",headerBorderRightColor:"color",headerBorderBottomColor:"color",headerHeight:"number",headerPaddingLeft:"number",headerPaddingTop:"number",headerPaddingRight:"number",headerPaddingBottom:"number",headerVerticalAlign:"enum[bottom, middle, top]",title:"string",titleFontFamily:"string",titleFontSize:"or[number, size]",titleFontColor:"color",titleFontWeight:"enum[bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900, normal]",titleFontStyle:"enum[italic, normal]",
titleHorizontalAlign:"enum[left, center, right]",titlePaddingLeft:"number",titlePaddingTop:"number",titlePaddingRight:"number",titlePaddingBottom:"number",titleTextDecoration:"enum[underline, overline, line-through, none]",titleTextShadowBlurRadius:"number",titleTextShadowColor:"color",titleTextShadowHorizontalLength:"number",titleTextShadowOpacity:"number",titleTextShadowVerticalLength:"number",closeButtonBackgroundColor:"or[array[color], color]",closeButtonBackgroundColorDirection:"enum[horizontal, vertical]",
closeButtonBackgroundColorRatios:"array[number]",closeButtonBackgroundOpacity:"number",closeButtonBorderColor:"color",closeButtonBorderRadius:"number",closeButtonBorderSize:"number",closeButtonHeight:"number",closeButtonIconColor:"color",closeButtonIconHeight:"number",closeButtonIconLineWidth:"number",closeButtonIconWidth:"number",closeButtonOpacity:"number",closeButtonWidth:"number",closeButtonPaddingBottom:"number",closeButtonPaddingLeft:"number",closeButtonPaddingRight:"number",closeButtonPaddingTop:"number",
closeButtonRollOverBackgroundColor:"or[array[color], color]",closeButtonRollOverBackgroundColorDirection:"enum[horizontal, vertical]",closeButtonRollOverBackgroundColorRatios:"array[number]",closeButtonRollOverBackgroundOpacity:"number",closeButtonRollOverBorderColor:"color",closeButtonRollOverBorderSize:"number",closeButtonRollOverIconColor:"color",closeButtonRollOverIconLineWidth:"number",closeButtonRollOverOpacity:"number",closeButtonPressedBackgroundColor:"or[array[color], color]",closeButtonPressedBackgroundColorDirection:"enum[horizontal, vertical]",
closeButtonPressedBackgroundColorRatios:"array[number]",closeButtonPressedBackgroundOpacity:"number",closeButtonPressedBorderColor:"color",closeButtonPressedBorderSize:"number",closeButtonPressedIconColor:"color",closeButtonPressedIconLineWidth:"number",closeButtonPressedOpacity:"number",footerBackgroundOpacity:"number",footerBackgroundColor:"or[array[color], color]",footerBackgroundColorRatios:"array[number]",footerBackgroundColorDirection:"enum[horizontal, vertical]",footerBorderSize:"number",footerBorderLeftSize:"number",
footerBorderTopSize:"number",footerBorderRightSize:"number",footerBorderBottomSize:"number",footerBorderColor:"color",footerBorderLeftColor:"color",footerBorderTopColor:"color",footerBorderRightColor:"color",footerBorderBottomColor:"color",footerHeight:"number",bodyBackgroundOpacity:"number",bodyBackgroundColor:"or[array[color], color]",bodyBackgroundColorRatios:"array[number]",bodyBackgroundColorDirection:"enum[horizontal, vertical]",bodyBorderSize:"number",bodyBorderLeftSize:"number",bodyBorderTopSize:"number",
bodyBorderRightSize:"number",bodyBorderBottomSize:"number",bodyBorderColor:"color",bodyBorderLeftColor:"color",bodyBorderTopColor:"color",bodyBorderRightColor:"color",bodyBorderBottomColor:"color",bodyPaddingLeft:"number",bodyPaddingTop:"number",bodyPaddingRight:"number",bodyPaddingBottom:"number",veilOpacity:"number",veilColor:"or[array[color], color]",veilColorRatios:"array[number]",veilColorDirection:"enum[horizontal, vertical]",veilHideEffect:"Effect",veilShowEffect:"Effect"}).Mp(["titleFontSize"]).Rg({show:a.prototype.show,
hide:a.prototype.hide}).Vb([d.WZ,d.zs]);return a});
define("jS","require,jquery.mod,dm,lc,gb,bY,eL,V,kO,bq,hW,je,r,fd".split(","),function(a){function b(a){this.source=a;this.width=this.source.get("width");this.height=this.source.get("height");this.url=this.source.get("url");this.Yy=this.source.get("grayscale");this.Ap=new l(f.Jj)}var c=a("jquery.mod"),e=a("dm"),d=a("lc"),f=a("gb"),g=a("bY"),k=a("eL"),i=a("V"),n=a("kO"),j=a("bq"),l=a("hW"),q=a("je"),o=a("r"),t=a("fd"),s=t.extend(k,function(){k.call(this);this.ye=r;this.Y4=[];this.Wi=[];this.Xa=this.La=
this.dc=this.Xb=100;this.sd=1;this.qq=this.pq=0.5;this.oc=1;this.ug=this.eg=r;this.tJ=z;this.pQ={};this.Lw={};this.Lw.low={};this.Lw.hight={};if(o.Ey()==o.Iz){this.Lw.low.transform="translateZ(0)";this.Lw.hight.transform=""}this.V=z;this.gf="inherit";this.I=c("<div/>").css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"});this.fB=r;this.ed=t.An(this.J,this)});s.prototype.Cb=R("I");s.prototype.rs=function(a){if(this.Dd!=a){this.Dd=a;this.qP(1);this.ed()}};s.prototype.jxa=function(a){if(this.gf!=
a){this.gf=a;this.ug&&this.ug.css("cursor",this.gf);this.eg&&this.eg.css("cursor",this.gf)}};s.prototype.wxa=function(a){if(this.Y4!=a){this.SP();this.ye=r;if(this.eg){this.eg.detach();this.eg=r}if(this.ug){this.ug.detach();this.ug=r}if(this.ze)this.ze=r;this.SP();this.tJ=z;e(this.Wi).each(function(a){a.Ap.cancel();a.Ap.unbind(d.S,this.w5,this)},this);a=(this.Y4=a)&&a.get("levels")||[];this.Wi=e(a).map(function(a){a=new b(a);a.Ap.bind(d.S,this.w5,this);return a},this);if(a=this.Oka()){this.La=a.width;
this.Xa=a.height}else this.Xa=this.La=100;this.qq=this.pq=0.5;this.qP(1);this.ed()}};s.prototype.Iv=function(a,b){if(this.Xb!=a||this.dc!=b){this.Xb=a;this.dc=b;this.ed()}};s.prototype.kxa=function(a,b){if(this.j3!=a||this.i3!=b){this.j3=a;this.i3=b;this.ed()}};s.prototype.md=function(a){if(this.V!=a){this.V=a;this.ed()}};s.prototype.move=function(a,b){var c=this.sd*this.oc;this.pq=this.pq+a/(this.La*c);this.qq=this.qq+b/(this.Xa*c);this.RJ()};s.prototype.nv=R("oc");s.prototype.setScale=function(a){this.qP(Math.max(1,
Math.min(1/this.sd,a)));this.ye&&this.ye.width<this.oc*this.sd*this.La&&this.ye.width<this.La?this.J():this.RJ()};s.prototype.Aca=function(a){if(!this.eg)return z;var b=this.eg.offset(),c=a.pageX-b.left,a=a.pageY-b.top;return c>=0&&a>=0&&c<this.eg.width()&&a<this.eg.height()};s.prototype.J=function(){if(this.V){this.Bsa();var a=this.Ska();if(a&&a.Ap.yp()){if(a!=this.ye){if(!this.ye){this.ed();this.tJ=p}this.lja(a);this.ye=a}this.l9(r)}else this.l9(a);this.RJ()}};s.prototype.Bsa=function(){var a;switch(this.Dd){case q.Qk:a=
this.Xb/this.La;break;case q.Wg:a=this.dc/this.Xa;break;case q.km:a=this.La*this.dc>this.Xa*this.Xb?this.dc/this.Xa:this.Xb/this.La;break;case q.Fea:a=Math.min(this.j3/this.La,this.i3/this.Xa);break;default:a=this.La*this.dc>this.Xa*this.Xb?this.Xb/this.La:this.dc/this.Xa}this.Xga(a)};s.prototype.w5=function(){this.ed()};s.prototype.lja=function(a){if(this.ug){this.hV(this.ug,1);this.eg&&this.eg.detach();this.eg=this.ug}this.ug=this.Mia(a);this.hV(this.ug,0);this.I.append(this.ug);this.ze=this.Gia();
this.pQ={}};s.prototype.Ska=function(){return this.ye?this.lka(this.oc*this.sd*this.La):this.kla()};s.prototype.l9=function(a){e(this.Wi).each(function(b){b==a?b.Ap.sj()!=b.url&&b.Ap.load(b.url):b.Ap.yp()||b.Ap.cancel()})};s.prototype.Oka=function(){return e(this.Wi).reduce(function(a,b){a||(a=b);if(b.width>a.width||b.width==a.width&&!b.Yy&&a.Yy)a=b;return a},r)};s.prototype.kla=function(){return e(this.Wi).reduce(function(a,b){a||(a=b);if(b.width<a.width||b.width==a.width&&b.Yy&&!a.Yy)a=b;return a},
r)};s.prototype.lka=function(a){return e(this.Wi).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.Yy&&b.Yy)b=c;return b},r)};s.prototype.Mia=function(a){a=c(a.Ap.qe(p));a.css({position:"absolute",cursor:this.gf,"pointer-events":"none"});return a};s.prototype.Gia=function(){return new n("linear",[new j("alpha",0,1)],200)};s.prototype.RJ=function(){i.Ma(function(a){this.MJ(a,"low")},this)};s.prototype.UX=function(){return this.La*this.oc*
this.sd};s.prototype.TX=function(){return this.Xa*this.oc*this.sd};s.prototype.mba=function(){var a=this.UX();return a>this.Xb?Math.max(this.Xb-a,Math.min(0,this.Xb*0.5-a*this.pq)):(this.Xb-a)*0.5};s.prototype.nba=function(){var a=this.TX();return a>this.dc?Math.max(this.dc-a,Math.min(0,this.dc*0.5-a*this.qq)):(this.dc-a)*0.5};s.prototype.MJ=function(a,b){var b=b||"low",c=this.UX(),e=this.mba(),f=this.TX(),i=this.nba();this.pq=(this.Xb*0.5-e)/c;this.qq=(this.dc*0.5-i)/f;var c={left:Math.round(e)+
"px",top:Math.round(i)+"px",width:Math.round(c)+"px",height:Math.round(f)+"px",display:"block"},j;for(j in this.Lw[b])c[j]=this.Lw[b][j];if(this.pQ!=c){this.eg&&this.eg.css(c);this.ug&&this.ug.css(c);this.pQ=c}this.SP();if(this.ze){this.ze.cb(a);this.hV(this.ug,this.ze.wb("alpha"));if(this.ze.Je()){this.ze=r;this.eg&&this.eg.detach();this.eg=this.ug;this.ug=r}this.RJ()}else b=="low"&&this.Mqa();if(!this.ze&&this.tJ){this.tJ=z;this.trigger(new g(d.S))}};s.prototype.hV=function(a,b){a.css({opacity:b,
filter:"alpha(opacity="+Math.round(b*100)+")","-ms-filter":"alpha(opacity="+Math.round(b*100)+")"})};s.prototype.SP=function(){if(this.fB!=r){clearTimeout(this.fB);this.fB=r}};s.prototype.Mqa=function(){var a=this;this.fB=setTimeout(function(){a.fB=r;a.MJ(50,"hight")},50)};s.prototype.qP=function(a){if(this.oc!=a){this.oc=a;this.Kra()}};s.prototype.Xga=function(a){if(this.sd!=a)this.sd=a};s.prototype.Kra=function(){this.trigger(new g(s.Lz,{scale:this.oc}))};s.Lz="scaleChange";return s});
define("hO","require,jquery.mod,lc,bY,jS,fd,d,J".split(","),function(a){a("jquery.mod");var b=a("lc"),c=a("bY"),e=a("jS"),d=a("fd"),f=a("d"),g=a("J"),k=d.extend(f,function(){f.call(this);this.Xc("ZoomImage");this.Ro=this.fj=m;this.bi=z;this.X7=m;this.c5=this.oc;this.SD=r;this.g=new e;this.g.bind(b.S,this.yna,this);this.g.bind(e.Lz,this.zna,this);this.Pa().append(this.g.Cb());this.bind(b.yb,this.nb,this,p);this.bind(b.nd,this.hh,this,p);this.bind(b.zd,this.eh,this,p);this.bind(b.xb,this.lc,this,p);
this.bind(b.Lc,this.Bg,this,p);this.bind(b.cc,this.Cg,this,p);this.bind(b.Yp,this.$t,this,p);this.bind(b.Zv,this.Ht,this,p)});k.prototype.set=function(a,b){switch(a){case "scale":this.g.setScale(b);b=this.g.nv();break;case "imageLeft":case "imageTop":case "imageWidth":case "imageHeight":return}f.prototype.set.call(this,a,b)};k.prototype.get=function(a,b){switch(a){case "scale":return this.g.nv();case "imageLeft":return this.g.mba();case "imageTop":return this.g.nba();case "imageWidth":return this.g.UX();
case "imageHeight":return this.g.TX()}return f.prototype.get.call(this,a,b)};k.prototype.ya=function(){f.prototype.ya.call(this);this.f("image");this.f("scaleMode");this.f("customHeight");this.f("customWidth");this.f("imageCursor");this.f("imageLeft");this.f("imageTop");this.f("imageWidth");this.f("imageHeight")};k.prototype.ga=function(){if(this.n("scaleMode")){this.g.rs(this.k("scaleMode"));this.p("scaleMode")}if(this.n("image")){this.g.wxa(this.k("image"));this.p("image");this.c5=this.oc}if(this.n("customHeight")||
this.n("customWidth")){this.p("customHeight");this.p("customWidth");this.nb()}if(this.n("imageCursor")){this.p("imageCursor");this.g.jxa(this.pa.FQ.gba(this.get("imageCursor")))}f.prototype.ga.call(this)};k.prototype.nb=function(){var a=this.Ba(),b=this.gb(),c=this.get("customWidth","100%"),d=g.Fk(c),c=d!==m?a*d/100:c,d=this.get("customHeight","100%"),e=g.Fk(d);this.g.kxa(c,e!==m?b*e/100:d);this.g.Iv(a,b)};k.prototype.hh=function(){this.g.md(p)};k.prototype.eh=function(){this.g.md(z)};k.prototype.lc=
function(a){this.fj=a.x;this.Ro=a.y;this.bi=p;this.X7=this.g.Aca(a)};k.prototype.Bg=function(a){if(this.bi){this.PW();this.g.move(-(a.x-this.fj),-(a.y-this.Ro));this.fj=a.x;this.Ro=a.y}};k.prototype.Cg=function(a){this.bi=z;!this.X7&&!this.g.Aca(a)&&this.trigger(new c(k.l_))};k.prototype.$t=function(a){this.PW();this.g.setScale((1+a.op/20)*this.g.nv())};k.prototype.Ht=function(a){this.PW();this.g.setScale(a.scale/this.c5)};k.prototype.yna=function(){this.trigger(new c(b.S))};k.prototype.zna=function(){f.prototype.set.call(this,
"scale",this.g.nv());this.trigger(new c(k.Lz))};k.prototype.PW=function(){if(this.SD){clearTimeout(this.SD);this.SD=r}else this.trigger(new c(k.ve));this.SD=setTimeout(function(){this.SD=r;this.trigger(new c(k.ue))}.bind(this),300)};k.l_="backgroundClick";k.Lz="scaleChange";k.ve="userInteractionStart";k.ue="userInteractionEnd";return k});
define("ky",["fd","lc","hO","dT"],function(a,b,c,e){a=a.extend(c,function(){c.call(this)});e.A("ZoomImage",a).B("UIComponent").L({scaleMode:"enum[fit_inside, fit_outside, fit_to_width, fit_to_height, custom]",customHeight:"or[number,percent]",customWidth:"or[number,percent]",image:"ImageResource",imageCursor:"enum[default, hand]",imageHeight:"number",imageLeft:"number",imageTop:"number",imageWidth:"number",scale:"number"}).Vb([c.l_,c.Lz,c.ve,c.ue,b.S]);return Image});
define("gR","gE,du,dK,kL,hl,ev,fY,gY,hF,iT,kR,fy,ge,fl,ep,cG,bm,kt,ho,jx,ek,n,gV,dd,gv,jL,hr,kc,gp,iY,fv,F,ci,q,iN,eJ,P,hK,bk,Z,kb,kI,dV,ja,gT,bu,kM,jY,ip,I,lw,ds,gK,gx,m,hY,ga,jt,gz,lu,fB,ik,bf,ce,bw,iI,gw,lp,eK,kQ,ca,cb,iF,eu,hg,gm,hI,fa,iM,ki,fU,hR,if,eD,gB,bP,dJ,dj,K,ld,cX,br,gH,ei,cW,hQ,dM,jz,jf,dZ,fg,ir,bN,gr,kz,jq,kC,T,eX,cE,jM,fZ,he,hG,fF,bE,v,cO,bx,hA,hh,kV,et,fq,bL,iw,e,dx,fJ,bl,bO,dn,ky".split(","),S(p));
define("eR","require,dm,jquery.mod,fd,dT,bD,gR,jk".split(","),function(a){function b(a,b){this.type=a;this.stack=b}function c(){}var e=a("dm"),d=a("jquery.mod"),f=a("fd"),g=a("dT"),k=a("bD");a("gR");a("jk");c.prototype.owa=function(a,b,c,d){this.hR=[];this.Cr=this.Wx(a);this.Vq=m;if(this.Cr.np.qba()){k.Xya(a);this.Vq=this.X3(this.Cr,i.Kj);this.Pia(this.Vq,this.Cr,b,c,d);this.Sga(this.Cr);this.Qga(this.Cr,this.Vq);this.Tga(this.Vq,this.Cr);this.iha(this.Vq,this.Cr)}else this.Tk("Invalid root class",
[]);return this.hR.length==0};c.prototype.Ua=function(){return this.Cr.Hd};c.prototype.Wx=function(a,b){b=b||[];return e(a).isArray()?this.Aoa(a,b):d.isPlainObject(a)&&a["class"]?this.Doa(a,b):d.isPlainObject(a)?this.Boa(a,b):e(a).isFunction()?this.Coa(a,b):this.Eoa(a,b)};c.prototype.Aoa=function(a,b){for(var c=[],d=0;d<a.length;d++){b.push("Item["+d+"]");c.push(this.Wx(a[d],b));b.pop()}return new n(b.slice(),c)};c.prototype.Doa=function(a,b){var c=a["class"],d=g.mn(a["class"]);if(d){var e,c={},f=
{},j;for(j in a){b.push(j);var k=a[j];switch(j){case "class":break;case "scripts":e=this.Wx(k,b);break;default:d.hasAttribute(j)?c[j]=this.Wx(k,b):d.Qba(j)||d.Rba(j)?f[j]=this.Wx(k,b):this.Tk(d.Ry()+" object doesn't have any attribute named "+j,b)}b.pop()}return new i(b.slice(),d,a.id,c,f,e)}this.Tk("Undefined class name: "+c,b.slice());return new q(b.slice(),r)};c.prototype.Boa=function(a,b){var c={},d;for(d in a){b.push(d);c[d]=this.Wx(a[d],b);b.pop()}return new j(b.slice(),c)};c.prototype.Coa=
function(a,b){return new l(b.slice(),a)};c.prototype.Eoa=function(a,b){return new q(b.slice(),a)};c.prototype.X3=function(a,b){for(var c=!b||a.type==b?[a]:[],d=0,e=a.Oa();d<e.length;d++)c=c.concat(this.X3(e[d],b));return c};c.prototype.Pia=function(a,b,c,d,e){b.Hd=b.np.Wr(r,d,e,[c]);b.Hd.set("application",b.Hd);for(c=0;c<a.length;c++){var f=a[c];if(f!=b)f.Hd=f.np.Wr(b.Hd,d,e)}};c.prototype.Sga=function(a){if(a.scripts)if(a.scripts.type==j.Kj)for(var b in a.scripts.value)this.Rga(a,b);else this.Tk("Invalid content.",
a.scripts.stack)};c.prototype.Rga=function(a,b){var c=a.Hd,d=a.scripts.value[b];e(c[b]).isUndefined()?d&&d.type==l.Kj?c[b]=function(){return d.yn().apply(c,arguments)}:this.Tk("Invalid content.",d.stack):this.Tk("Identifier: "+b+" is already in use",d.stack)};c.prototype.Qga=function(a,b){for(var c=a.Hd,d=0;d<b.length;d++){var f=b[d],g=f.id;if(g)e(c[g]).isUndefined()?c[g]=f.Hd:this.Tk("Identifier: "+g+" is arleady in use",f.stack)}};c.prototype.Tga=function(a,b){for(var c=0;c<a.length;c++){var d=
a[c],e=d.attributes,f;for(f in e)this.Pga(d,f,b)}};c.prototype.Pga=function(a,b,c){var d=a.np;if(d.hasAttribute(b)){var e=a.attributes[b].yn();try{e=d.MX(b)(e,c.Hd);a.Hd.set(b,e)}catch(f){this.Tk("Invalid value for property "+b+" of "+d.Ry()+" instance",a.stack)}}else this.Tk(d.Ry()+" object doesn't have any property named "+b,a.stack)};c.prototype.iha=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e;for(e in d.dv)this.hha(d,e,b)}};c.prototype.hha=function(a,b,c){var d=a.np,f=a.Hd,g=d.Qba(b),
i=d.Rba(b);if(g||i){var a=a.dv[b],j=a.yn();e(j).isFunction()?f.bind(b,j,c.Hd,i,j):typeof j=="string"?f.bind(b,function(){try{eval("var event = arguments[0];"+j)}catch(a){h(a)}},c.Hd,i,j):this.Tk("Invalid value.",a.stack)}else this.Tk(d.Ry()+" object doesn't have any event named "+b,a.stack)};c.prototype.Tk=function(a,b){this.hR.push("In "+b.join(" >> ")+": "+a)};b.prototype.Oa=function(){return[]};b.prototype.yn=C();var i=f.extend(b,function(a,c,d,e,f,g){b.call(this,i.Kj,a);this.np=c;this.id=d;this.attributes=
e;this.dv=f;this.scripts=g;this.Hd=r});i.prototype.Oa=function(){var a=this.np.yba(),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())};i.prototype.yn=R("Hd");i.Kj="instance";var n=f.extend(b,function(a,c){b.call(this,n.Kj,a);this.Ck=c});n.prototype.Oa=function(){return this.Ck.slice()};n.prototype.yn=function(){for(var a=[],b=0;b<this.Ck.length;b++)a.push(this.Ck[b].yn());return a};n.Kj="array";var j=
f.extend(b,function(a,c){b.call(this,j.Kj,a);this.value=c});j.prototype.Oa=function(){return e(this.value).values()};j.prototype.yn=function(){var a={},b;for(b in this.value)a[b]=this.value[b].yn();return a};j.Kj="dict";var l=f.extend(b,function(a,c){b.call(this,l.Kj,a);this.value=c});l.prototype.yn=R("value");l.Kj="function";var q=f.extend(b,function(a,c){b.call(this,q.Kj,a);this.value=c});q.prototype.yn=R("value");q.Kj="simple";return c});
define("jN","require,dm,lc,bY,dT,eR,r,dL,jk,bi,fH,jU,lb,jV,fd".split(","),function(a){function b(a,b){g.Wa()&&!g.se()&&o.Wd();var c=l.name,d=[];c&&d.push(c);l.JE>0?d.push("v:"+l.JE+"."+l.NE):d.push("v:"+l.NE);t.log(d.join(" "));this.Hk=b;if(i.Eva()||[g.Uv,g.Up].indexOf(g.browser())>=0){this.jh=new f;if(c=this.Hk.get(TDV.PlayerSettings.BASE_DIR_URL)){c=i.ts(c);c[c.length-1]!="/"&&(c=c+"/")}else c=i.getDirectory(this.Hk.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL));this.dda=this.Hk.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);
k.Bwa(c,function(b){this.Daa=b;this.aoa(a)}.bind(this))}else window.alert(q("web-server-required"))}var c=a("dm"),e=a("lc");a("bY");var d=a("dT"),f=a("eR"),g=a("r"),k=a("dL"),i=a("jk"),n=a("bi"),j=a("fH"),l=a("jU"),q=a("lb"),o=a("jV"),t=a("fd");b.prototype.aoa=function(a){a.trigger(new TDV.XF(e.wfa,{},[],m));c.defer(function(){if(!this.jh.owa(this.Hk.get(TDV.PlayerSettings.SCRIPT_DATA),this.Hk.get(TDV.PlayerSettings.CONTAINER),this.Daa,this.dda)){if(l.Aya!="false"){window.alert(this.C4());return}t.log(this.C4())}this.gha(a);
this.Lga(this.Hk);this.Vga();n.am(function(){this.Mra()}.bind(this))}.bind(this))};b.prototype.clear=function(){if(this.jh){this.jh.Vq.forEach(function(a){a.Hd.nea();a.np.uE().forEach(function(b){switch(b){case "VideoPlayer":a.Hd.stop();case "MapPlayer":case "PanoramaPlayer":case "PhotoAlbumPlayer":case "VideoPlayer":a.Hd.set("viewerArea",r);break;case "ZoomImage":a.Hd.set("image",r);break;case "Audio":a.Hd.stop();break;case "Effect":a.Hd.end();break;case "Media":a.Hd.Owa()}})});j.uwa();this.jh.Ua().clear();
s={};this.Hk=this.jh=r}};b.prototype.Wua=function(a){return this.jh.Ua()[a]};b.prototype.Cba=function(a){if(a in s)return s[a].slice();var b=[];this.jh&&this.jh.Vq.forEach(function(d){var e=d.np.uE();c(e).contains(a)&&b.push(d.Hd)});s[a]=b;return b.slice()};var s={};b.prototype.Wr=function(a){var b=d.mn(a);b||h("Invalid className: "+a);s={};return b.Wr(this.jh.Ua(),this.Daa,this.dda)};b.prototype.C4=function(){for(var a=this.jh.hR,b=["Errors parsing script file:"],c=0;c<a.length;c++)b.push(a[c]);
return b.join("\n")};b.prototype.gha=function(a){this.jh.Vq.forEach(function(b){var d=b.np,e=b.Hd,f=b.id,g=d.uE();c.union(d.QX(),d.VX()).forEach(function(b){e.bind(b,function(c){a.trigger(new TDV.XF(b,c,g,f))},this,p)})});var b=this.jh.Ua().WG;b.bind(e.Xv,function(){b.Rya(e.Xv);a.cookiesEnabled=a.Gta=p;a.trigger(new TDV.XF(e.Xv,{},[],m))},this,p)};b.prototype.Lga=function(a){this.jh.Ua().set("settings",a)};b.prototype.Vga=function(){var a=this.jh.Ua(),b=this;a.getByClassName=a.mn=function(){return b.Cba.apply(b,
arguments)};a.createInstance=a.Wr=function(){return b.Wr.apply(b,arguments)};a.isInstanceOfClass=a.ob=function(){return d.ob.apply(d,arguments)}};b.prototype.Mra=function(){this.jh.Ua().start()};b.Qya=function(a){a.trigger(new TDV.XF(e.cfa,{},[],m))};return b});define("main",["require","jquery.mod","jN"],function(a){var b=a("jquery.mod"),c=a("jN");b(document).ready(function(){TDV.Aa.aya(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})});

})();