(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 l=void 0,m=!0,q=null,B=!1;function I(){return function(){}}function R(a){return function(b){this[a]=b}}function S(a){return function(){return this[a]}}function T(a){return function(){return a}}
(function(){function a(a){this.qo=a;this.pr=q;this.Ic={}}function b(){this.im={};this.im[b.SCRIPT_URL]=[];this.im[b.THREE_JS_WEBGL_URL]="lib/ThreeWebGL.js";this.im[b.WEBVR_POLYFILL_URL]="lib/WebVRPolyfill.js";this.im[b.HLS_URL]="lib/Hls.js";this.im[b.vba]="lib/basis/";this.im[b.CURSORS_DIR_URL]="lib/cursors";this.im[b.SERVICE_WORKER_URL]="tdvplayersw.js";this.im[b.BACKGROUND_PRELOAD_ENABLED]=l}function d(){this.bL=[];this.nU=[];this.XHa=[];this.uP=q}function c(a){return"[object Array]"==Object.prototype.toString.call(a)}
function g(a){return 0<=i.search(a.toLowerCase())}var f=window.TDV=window.TDV||{},i=navigator.userAgent.toLowerCase();d.prototype.getVersion=d.prototype.Vra=function(){return{MAJOR:"0",MINOR:"1718"}};d.prototype.getClassByName=d.prototype.xVa=I();d.prototype.Zla=function(){if(this.uP)for(;0<this.bL.length;){var a=this.bL[0];this.bL=this.bL.slice(1);this.nU.push(a);this.hCa(a)}};d.prototype.qja=function(a){var b=document.createElement("a");b.href=a;return b.href};d.prototype.nEa=
function(){var a=document.currentScript;a||(a=document.getElementsByTagName("head")[0].getElementsByTagName("script"),a=a[a.length-1]);return this.qja(a.src)};d.prototype.hCa=function(a){var e=this,c=a.qo.get(b.SELECTED_SCRIPT_URL);setTimeout(function(){var b=document.createElement("script");b.type="text/javascript";b.src=c;document.getElementsByTagName("head")[0].appendChild(b);e.uP.MTa(a)},1)};d.prototype.defineScript=d.prototype.pVa=function(a){for(var e=[],c=this.nEa(),f=0;f<this.nU.length;f++){var g=
this.nU[f],i=this.qja(g.qo.get(b.SELECTED_SCRIPT_URL));i==c?(g.qo.set(b.SCRIPT_DATA,a),g.KSa(new this.uP(g,g.qo)),this.XHa.push(g)):e.push(i)}this.nU=e};d.prototype.create=d.prototype.create=function(a){var e=a.get(b.SCRIPT_URL),e=c(e)?this.PIa(e):"string"===typeof e?e:"script.js";a.set(b.SELECTED_SCRIPT_URL,e);a=new f.Nca(a);this.bL.push(a);this.Zla();return a};d.prototype.setPlayerClass=d.prototype.JSa=function(a){this.uP=a;this.Zla();this.trigger({name:"classesReady",source:this})};d.prototype.bind=
d.prototype.bind=function(a,b,e,c){this.Ic=this.Ic||{};this.Ic[a]=this.Ic[a]||[];this.Ic[a].push({handler:b,context:e,immediate:c||B})};d.prototype.unbind=d.prototype.unbind=function(a,b,e,c){this.Ic&&a in this.Ic&&(this.Ic[a]=this.Ic[a].filter(function(a){return a.handler!=b||a.context!=e||a.immediate!=c}))};d.prototype.trigger=function(a){this.Ic&&a.name in this.Ic&&(this.lw(a,m),setTimeout(function(){this.lw(a,B)}.bind(this),0))};d.prototype.lw=function(a,b){a.unbindCurrentHandler=I().bind(this);
for(var e=this.Ic[a.name],c=0;c<e.length;c++)if(e[c].immediate==b)try{e[c].handler.call(e[c].context||window,a)}catch(f){setTimeout(function(){h(f)},0)}};d.prototype.getOrientation=d.prototype.es=function(){var a=screen.orientation&&screen.orientation.type||window.orientation;return"portrait-primary"==a||"portrait-secondary"==a||0===a||180==a?f.kb.fZ:"landscape-primary"==a||"landscape-secondary"==a||90==a||-90==a?f.kb.eZ:window.innerWidth<window.innerHeight?f.kb.fZ:f.kb.eZ};d.prototype.PIa=function(a){if(0<
a.length){for(var b=0;b<a.length;b++){var e=a[b];if(c(e)){if(this.ooa(e[0]))return e[1]}else if("string"===typeof e)return e}return a[0][1]}return"script.js"};d.prototype.ooa=function(a){if("string"===typeof a){var b=a.match(/^\s*default\s*$/);if(b)return m;if(b=a.match(/^\s*os\s*=\s*(\w+)\s*$/))return this.le==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.oy==b[1].toLowerCase();if(b=a.match(/^\s*screen_size\s*(<|>|=|<=|>=)\s*(\d+)\s*x\s*(\d+)\s*$/)){var a=
parseInt(b[2]),e=parseInt(b[3]),f;switch(b[1]){case "<":f=function(a,b){return a<b};break;case ">":f=function(a,b){return a>b};break;case "=":f=function(a,b){return a==b};break;case "<=":f=function(a,b){return a<=b};break;case ">=":f=function(a,b){return a>=b}}return f(screen.width,a)&&f(screen.height,e)||this.N$&&f(screen.width,e)&&f(screen.height,a)}return B}if(c(a)){for(b=0;b<a.length;b++)if(!this.ooa(a[b]))return B;return m}return B};d.prototype.ORIENTATION_LANDSCAPE=d.prototype.eZ="landscape";
d.prototype.ORIENTATION_PORTRAIT=d.prototype.fZ="portrait";d.prototype.OS_IOS=d.prototype.hP="ios";d.prototype.OS_ANDROID=d.prototype.gZ="android";d.prototype.OS_WINDOWS=d.prototype.Dca="windows";d.prototype.OS_WINDOWS_PHONE=d.prototype.kZ="windows_phone";d.prototype.OS_MACOSX=d.prototype.hZ="osx";d.prototype.OS_LINUX=d.prototype.Cca="linux";d.prototype.OS_QNX=d.prototype.jZ="qnx";d.prototype.OS_OTHER=d.prototype.iZ="other";d.prototype.BROWSER_TYPE_WEBKIT=d.prototype.IH="webkit";d.prototype.BROWSER_TYPE_OPERA=
d.prototype.cY="opera";d.prototype.BROWSER_TYPE_MSIE=d.prototype.bY="msie";d.prototype.BROWSER_TYPE_MOZILLA=d.prototype.aY="mozilla";d.prototype.BROWSER_TYPE_OTHER=d.prototype.dY="other";d.prototype.BROWSER_SAFARI_IOS=d.prototype.Qh="safari_ios";d.prototype.BROWSER_OPERA=d.prototype.OO="opera";d.prototype.BROWSER_SAFARI=d.prototype.Rl="safari";d.prototype.BROWSER_CHROME=d.prototype.Dk="chrome";d.prototype.BROWSER_EDGE=d.prototype.UC="edge";d.prototype.BROWSER_MSIE=d.prototype.Fv="msie";d.prototype.BROWSER_ANDROID=
d.prototype.EH="android";d.prototype.BROWSER_MOZILLA=d.prototype.My="mozilla";d.prototype.BROWSER_OTHER=d.prototype.$X="other";d.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET=d.prototype.HH="samsunginternet";d.prototype.BROWSER_SUBTYPE_OCULUS_BROWSER=d.prototype.Ds="oculusbrowser";d.prototype.BROWSER_SUBTYPE_SAMSUNG_INTERNET_FOR_GEAR_VR=d.prototype.SO="samsunginternetgearvr";d.prototype.BROWSER_SUBTYPE_CHROME_IOS=d.prototype.PO="chromeios";d.prototype.BROWSER_SUBTYPE_SAFARI_IOS=d.prototype.FH="safari_ios";
d.prototype.BROWSER_SUBTYPE_CHROME_WEBVIEW=d.prototype.VC="chrome_webview";d.prototype.BROWSER_SUBTYPE_SAFARI_WEBVIEW=d.prototype.GH="safari_webview";d.prototype.BROWSER_SUBTYPE_TOUR_LAUNCHER=d.prototype.Ny="tour_launcher";d.prototype.BROWSER_SUBTYPE_CHROMIUM_EDGE=d.prototype.VC="chromium_edge";d.prototype.BROWSER_SUBTYPE_FIREFOX_REALITY=d.prototype.WC="firefox_reality";d.prototype.BROWSER_SUBTYPE_VR_APP=d.prototype.Oy="vrapp";d.prototype.BROWSER_SUBTYPE_FACEBOOK_IOS_WEBVIEW=d.prototype.QO="facebook_ios_webview";
d.prototype.BROWSER_SUBTYPE_OTHER=d.prototype.RO="other";d.prototype.BROWSER_VERSION_UNKNOWN=d.prototype.eY=-1;d.prototype.DEVICE_IPHONE=d.prototype.iY="iphone";d.prototype.DEVICE_IPAD=d.prototype.YC="ipad";d.prototype.DEVICE_IPOD=d.prototype.jY="ipod";d.prototype.DEVICE_OTHER=d.prototype.kY="other";d.prototype.os=d.prototype.le=g("iphone")||g("ipad")||g("ipod")?d.prototype.hP:g("qnx")?d.prototype.jZ:g("android")||g("oculusbrowser")&&g("linux")?d.prototype.gZ:g("windows phone")?d.prototype.kZ:g("windows")?
d.prototype.Dca:g("mac_powerpc")?d.prototype.hZ:g("macintosh")?1<navigator.maxTouchPoints?d.prototype.hP:d.prototype.hZ:g("linux")||g("x11")?d.prototype.Cca:d.prototype.iZ;d.prototype.browser=d.prototype.browser=g("ipad")||g("iphone")||g("ipod")||g("macintosh")&&1<navigator.maxTouchPoints?d.prototype.Qh:g("opera")?d.prototype.OO:g("edge")?d.prototype.UC:g("chrome")||g("crmo")?d.prototype.Dk:g("android")?d.prototype.EH:g("safari")?d.prototype.Rl:g("trident")||g("msie")?d.prototype.Fv:!g("compatible")&&
g("mozilla")?d.prototype.My:d.prototype.$X;d.prototype.browserType=d.prototype.DG=d.prototype.browser==d.prototype.Qh||d.prototype.browser==d.prototype.Dk||d.prototype.browser==d.prototype.EH||d.prototype.browser==d.prototype.Rl||g("webkit")?d.prototype.IH:d.prototype.browser==d.prototype.OO||g("opera")?d.prototype.cY:g("trident")||g("msie")?d.prototype.bY:!g("compatible")&&g("mozilla")?d.prototype.aY:d.prototype.dY;d.prototype.browserSubtype=d.prototype.Yd=window.location.hash&&0<=window.location.hash.indexOf("vrapp")?
d.prototype.Oy:g("oculusbrowser")?d.prototype.Ds:g("samsungbrowser")&&g("android")?g("mobile vr")?d.prototype.SO:d.prototype.HH:g("ipad")||g("iphone")||g("ipod")?g("crios")?d.prototype.PO:g("fban")||g("fbav")?d.prototype.QO:g("safari")&&g("version")&&!navigator.cWa?d.prototype.FH:d.prototype.GH:g("electron")?d.prototype.Ny:g("chrome")&&g("wv")?d.prototype.VC:g("edg/")?d.prototype.xba:!g("compatible")&&g("mozilla")&&g("mobile vr")?d.prototype.WC:d.prototype.RO;d.prototype.browserVersion=d.prototype.xqa=
function(){if(d.prototype.browser==d.prototype.Fv){var a=i.match(/MSIE ([0-9]{1,}[.0-9]{0,})/);if(a!=q)return parseFloat(a[1]);a=i.match(/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/);if(a!=q)return parseFloat(a[1])}return d.prototype.eY}();d.prototype.device=d.prototype.oy=g("ipad")||g("macintosh")&&1<navigator.maxTouchPoints?d.prototype.YC:g("iphone")?d.prototype.iY:g("ipod")?d.prototype.jY:d.prototype.kY;var e;a:{switch(d.prototype.le){case d.prototype.gZ:case d.prototype.hP:case d.prototype.kZ:case d.prototype.jZ:e=
m;break a}e=B}d.prototype.mobile=d.prototype.N$=e;f.PlayerAPI=f.kb=new d;b.prototype.append=b.prototype.append=function(a,e,f){a==b.SCRIPT_URL&&("undefined"==typeof f&&(f=e,e="default"),e=[e,f]);c(this.im[a])||(this.im[a]=[]);this.im[a].push(e)};b.prototype.set=b.prototype.set=function(a,b){this.im[a]=b};b.prototype.get=b.prototype.get=function(a){return this.im[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.BASIS_URL=
b.vba="BasisURL";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.rxa="PinchToZoomEnabled";f.PlayerSettings=f.PlayerSettings=b;f.PlayerEvent=f.kP=function(a,b,e,c){this.name=a;this.data=this.originalEvent=b;this.sourceClassName=e[e.length-1];this.sourceClassPath=e;this.sourceId=c};a.prototype.KSa=R("pr");a.prototype["delete"]=function(){this.pr&&(this.pr.clear(),this.pr=q)};a.prototype.getById=a.prototype.gC=function(a){return this.pr?this.pr.tPa(a):q};a.prototype.getByClassName=a.prototype.Fj=function(a){return this.pr?this.pr.Fj(a):[]};
a.prototype.createInstance=a.prototype.Zp=function(a){return this.pr.Zp(a)};a.prototype.disposeInstance=a.prototype.JG=function(a){return this.pr.JG(a)};a.prototype.bind=a.prototype.bind=function(a,b,e,c){var f=a.split(":"),a=f[0],f=1<f.length?f[1]:"*";this.Ic[a]=this.Ic[a]||{};this.Ic[a][f]=this.Ic[a][f]||[];this.Ic[a][f].push({handler:b,context:e,immediate:c});return this};a.prototype.unbind=a.prototype.unbind=function(a,b,e,c){var f=a.split(":"),a=f[0],f=1<f.length?f[1]:"*";if(a in this.Ic&&f in
this.Ic[a]){for(var g=[],i=this.Ic[a][f],d=0;d<i.length;d++){var u=i[d];(u.handler!=b||u.context!=e||u.immediate!=c)&&g.push(u)}this.Ic[a][f]=g}};a.prototype.bindOnObject=a.prototype.gVa=function(a,b,e,c,f){return this.bind(b+":"+this.f2(a),e,c,f)};a.prototype.unbindOnObject=a.prototype.jWa=function(a,b,e,c,f){return this.unbind(b+":"+this.f2(a),e,c,f)};a.prototype.bindOnObjectsOf=a.prototype.hVa=function(a,b,e,c,f){return this.bind(b+":"+this.T1(a),e,c,f)};a.prototype.unbindOnObjectsOf=a.prototype.kWa=
function(a,b,e,c,f){return this.unbind(b+":"+this.T1(a),e,c,f)};a.prototype.cookiesEnabled=a.prototype.dOa=B;a.DEFAULT_PANORAMA_HFOV=a.Bwa=d.prototype.N$?90:110;a.prototype.trigger=function(a){if(a.name in this.Ic){this.lw(a,m);var b=this;setTimeout(function(){b.lw(a,B)},0)}};a.prototype.lw=function(a,b){for(var e=this.BDa(a,b),c=0;c<e.length;c++)try{e[c].handler.call(e[c].context||window,a)}catch(f){setTimeout(function(){h(f)},0)}};a.prototype.BDa=function(a,b){var e=[];if(a.name in this.Ic){for(var c=
[],f=0;f<a.sourceClassPath.length;f++)c.push(this.T1(a.sourceClassPath[f]));a.sourceId&&c.push(this.f2(a.sourceId));c.push("*");for(var g=this.Ic[a.name],f=0;f<c.length;f++)for(var i=g[c[f]]||[],d=0;d<i.length;d++)!!i[d].immediate==!!b&&e.push(i[d])}return e};a.prototype.f2=function(a){return"instance("+a+")"};a.prototype.T1=function(a){return"className("+a+")"};f.Player=f.Nca=a})();define("jquery.mod",["jquery"],function(a){return a.noConflict(m)});
(function(){(function(){function a(a,b){return a.hAa?p(b).chain():b}function b(a){return"\\"+P[a]}function d(a){function b(e){return a[e]}var e="(?:"+p.keys(a).join("|")+")",c=RegExp(e),f=RegExp(e,"g");return function(a){return a=q==a?"":""+a,c.test(a)?a.replace(f,b):a}}function c(a,b,e,f){if(a===b)return 0!==a||1/a===1/b;if(q==a||q==b)return a===b;a instanceof p&&(a=a.RB);b instanceof p&&(b=b.RB);var g=G.call(a);if(g!==G.call(b))return B;switch(g){case "[object RegExp]":case "[object String]":return""+
a==""+b;case "[object Number]":return+a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return+a===+b}g="[object Array]"===g;if(!g){if("object"!=typeof a||"object"!=typeof b)return B;var j=a.constructor,i=b.constructor;if(j!==i&&(!p.isFunction(j)||!(j instanceof j&&p.isFunction(i)&&i instanceof i))&&"constructor"in a&&"constructor"in b)return B}e=e||[];f=f||[];for(j=e.length;j--;)if(e[j]===a)return f[j]===b;if(e.push(a),f.push(b),g){if(j=a.length,j!==b.length)return B;
for(;j--;)if(!c(a[j],b[j],e,f))return B}else{var o,g=p.keys(a);if(j=g.length,p.keys(b).length!==j)return B;for(;j--;)if(o=g[j],!p.has(b,o)||!c(a[o],b[o],e,f))return B}return e.pop(),f.pop(),m}function g(a,b,e,c,f){if(!(c instanceof b))return a.apply(e,f);b=o(a.prototype);a=a.apply(b,f);return p.bH(a)?a:b}function f(a,b,c,g){for(var j=[],i=0,g=g||0,o=C(a);o>g;g++){var d=a[g];if(e(d)&&(p.isArray(d)||p.isArguments(d))){b||(d=f(d,b,c));var k=0,n=d.length;for(j.length+=n;n>k;)j[i++]=d[k++]}else c||(j[i++]=
d)}return j}function i(a){return function(b,e,c){var f={};return e=n(e,c),p.each(b,function(c,g){var j=e(c,g,b);a(f,c,j)}),f}}function e(a){a=C(a);return"number"==typeof a&&0<=a&&J>=a}function j(a){return function(b){return q==b?l:b[a]}}function o(a){if(!p.bH(a))return{};if(N)return N(a);t.prototype=a;a=new t;return t.prototype=q,a}function k(a,b){return function(e){var c=arguments.length;if(2>c||q==e)return e;for(var f=1;c>f;f++)for(var g=arguments[f],j=a(g),i=j.length,o=0;i>o;o++){var d=j[o];b&&
e[d]!==l||(e[d]=g[d])}return e}}function n(a,b,e){return q==a?p.identity:p.isFunction(a)?r(a,b,e):p.bH(a)?p.H$(a):p.kua(a)}function r(a,b,e){if(b===l)return a;switch(q==e?3:e){case 1:return function(e){return a.call(b,e)};case 2:return function(e,c){return a.call(b,e,c)};case 3:return function(e,c,f){return a.call(b,e,c,f)};case 4:return function(e,c,f,g){return a.call(b,e,c,f,g)}}return function(){return a.apply(b,arguments)}}function p(a){return a instanceof p?a:this instanceof p?void(this.RB=a):
new p(a)}function t(){}function s(a){return function(b,c,f,g){var c=r(c,g,4),j=!e(b)&&p.keys(b),i=(j||b).length,o=0<a?0:i-1;3>arguments.length&&(f=b[j?j[o]:o],o+=a);for(var d=c,k=f;0<=o&&i>o;o+=a)var n=j?j[o]:o,k=d(k,b[n],n,b);return k}}function u(a){return function(b,e,c){for(var e=n(e,c),c=C(b),f=0<a?0:c-1;0<=f&&c>f;f+=a)if(e(b[f],f,b))return f;return-1}}function v(a,b,e){return function(c,f,g){var j=0,i=C(c);if("number"==typeof g)0<a?j=0<=g?g:Math.max(g+i,j):i=0<=g?Math.min(g+1,i):g+i+1;else if(e&&
g&&i)return g=e(c,f),c[g]===f?g:-1;if(f!==f)return g=b(M.call(c,j,i),p.isNaN),0<=g?g+j:-1;for(g=0<a?j:i-1;0<=g&&i>g;g+=a)if(c[g]===f)return g;return-1}}function w(a,b){var e=O.length,c=a.constructor,c=p.isFunction(c)&&c.prototype||E,f="constructor";for(p.has(a,f)&&!p.contains(b,f)&&b.push(f);e--;)f=O[e],f in a&&a[f]!==c[f]&&!p.contains(b,f)&&b.push(f)}var x=this,y=x.GZ,D=Array.prototype,E=Object.prototype,H=D.push,M=D.slice,G=E.toString,z=E.hasOwnProperty,L=Array.isArray,K=Object.keys,A=Function.prototype.bind,
N=Object.create;"undefined"!=typeof exports?("undefined"!=typeof module&&module.sOa&&(exports=module.sOa=p),exports.GZ=p):x.GZ=p;p.VERSION="1.8.3";p.NVa=function(a,b){return n(a,b,1/0)};var J=Math.pow(2,53)-1,C=j("length");p.each=p.forEach=function(a,b,c){var b=r(b,c),f;if(e(a)){c=0;for(f=a.length;f>c;c++)b(a[c],c,a)}else{var g=p.keys(a),c=0;for(f=g.length;f>c;c++)b(a[g[c]],g[c],a)}return a};p.map=p.lVa=function(a,b,c){for(var b=n(b,c),c=!e(a)&&p.keys(a),f=(c||a).length,g=Array(f),j=0;f>j;j++){var i=
c?c[j]:j;g[j]=b(a[i],i,a)}return g};p.reduce=p.uVa=p.GVa=s(1);p.reduceRight=p.vVa=s(-1);p.find=p.detect=function(a,b,c){var f;return f=e(a)?p.findIndex(a,b,c):p.yOa(a,b,c),f!==l&&-1!==f?a[f]:l};p.filter=p.select=function(a,b,e){var c=[];return b=n(b,e),p.each(a,function(a,e,f){b(a,e,f)&&c.push(a)}),c};p.reject=function(a,b,e){return p.filter(a,p.negate(n(b)),e)};p.every=p.all=function(a,b,c){for(var b=n(b,c),c=!e(a)&&p.keys(a),f=(c||a).length,g=0;f>g;g++){var j=c?c[g]:g;if(!b(a[j],j,a))return B}return m};
p.some=p.any=function(a,b,c){for(var b=n(b,c),c=!e(a)&&p.keys(a),f=(c||a).length,g=0;f>g;g++){var j=c?c[g]:g;if(b(a[j],j,a))return m}return B};p.contains=p.EVa=p.include=function(a,b,c,f){return e(a)||(a=p.values(a)),("number"!=typeof c||f)&&(c=0),0<=p.indexOf(a,b,c)};p.invoke=function(a,b){var e=M.call(arguments,2),c=p.isFunction(b);return p.map(a,function(a){var f=c?b:a[b];return q==f?f:f.apply(a,e)})};p.pluck=function(a,b){return p.map(a,p.kua(b))};p.nWa=function(a,b){return p.filter(a,p.H$(b))};
p.tVa=function(a,b){return p.find(a,p.H$(b))};p.max=function(a,b,c){var f,g=-1/0,j=-1/0;if(q==b&&q!=a)for(var a=e(a)?a:p.values(a),i=0,o=a.length;o>i;i++)c=a[i],c>g&&(g=c);else b=n(b,c),p.each(a,function(a,e,c){f=b(a,e,c);(f>j||f===-1/0&&g===-1/0)&&(g=a,j=f)});return g};p.min=function(a,b,c){var f,g=1/0,j=1/0;if(q==b&&q!=a)for(var a=e(a)?a:p.values(a),i=0,o=a.length;o>i;i++)c=a[i],g>c&&(g=c);else b=n(b,c),p.each(a,function(a,e,c){f=b(a,e,c);(j>f||1/0===f&&1/0===g)&&(g=a,j=f)});return g};p.oTa=function(a){for(var b=
e(a)?a:p.values(a),c=b.length,f=Array(c),g=0;c>g;g++)a=p.random(0,g),a!==g&&(f[g]=f[a]),f[a]=b[g];return f};p.sample=function(a,b,c){return q==b||c?(e(a)||(a=p.values(a)),a[p.random(a.length-1)]):p.oTa(a).slice(0,Math.max(0,b))};p.sortBy=function(a,b,e){return b=n(b,e),p.pluck(p.map(a,function(a,e,c){return{value:a,index:e,Oqa:b(a,e,c)}}).sort(function(a,b){var e=a.Oqa,c=b.Oqa;if(e!==c){if(e>c||e===l)return 1;if(c>e||c===l)return-1}return a.index-b.index}),"value")};p.groupBy=i(function(a,b,e){p.has(a,
e)?a[e].push(b):a[e]=[b]});p.FVa=i(function(a,b,e){a[e]=b});p.mVa=i(function(a,b,e){p.has(a,e)?a[e]++:a[e]=1});p.toArray=function(a){return a?p.isArray(a)?M.call(a):e(a)?p.map(a,p.identity):p.values(a):[]};p.size=function(a){return q==a?0:e(a)?a.length:p.keys(a).length};p.YVa=function(a,b,e){var b=n(b,e),c=[],f=[];return p.each(a,function(a,e,g){(b(a,e,g)?c:f).push(a)}),[c,f]};p.first=p.head=p.fWa=function(a,b,e){return q==a?l:q==b||e?a[0]:p.aQa(a,a.length-b)};p.aQa=function(a,b){return M.call(a,
0,Math.max(0,a.length-(q==b?1:b)))};p.last=function(a,b,e){return q==a?l:q==b||e?a[a.length-1]:p.rest(a,Math.max(0,a.length-b))};p.rest=p.eWa=p.rVa=function(a,b,e){return M.call(a,q==b||e?1:b)};p.compact=function(a){return p.filter(a,p.identity)};p.flatten=function(a,b){return f(a,b,B)};p.without=function(a){return p.difference(a,M.call(arguments,1))};p.uniq=p.unique=function(a,b,e,c){p.isBoolean(b)||(c=e,e=b,b=B);q!=e&&(e=n(e,c));for(var c=[],f=[],g=0,j=C(a);j>g;g++){var i=a[g],o=e?e(i,g,a):i;b?
(g&&f===o||c.push(i),f=o):e?p.contains(f,o)||(f.push(o),c.push(i)):p.contains(c,i)||c.push(i)}return c};p.union=function(){return p.uniq(f(arguments,m,m))};p.intersection=function(a){for(var b=[],e=arguments.length,c=0,f=C(a);f>c;c++){var g=a[c];if(!p.contains(b,g)){for(var j=1;e>j&&p.contains(arguments[j],g);j++);j===e&&b.push(g)}}return b};p.difference=function(a){var b=f(arguments,m,m,1);return p.filter(a,function(a){return!p.contains(b,a)})};p.zip=function(){return p.PTa(arguments)};p.PTa=function(a){for(var b=
a&&p.max(a,C).length||0,e=Array(b),c=0;b>c;c++)e[c]=p.pluck(a,c);return e};p.object=function(a,b){for(var e={},c=0,f=C(a);f>c;c++)b?e[a[c]]=b[c]:e[a[c][0]]=a[c][1];return e};p.findIndex=u(1);p.zOa=u(-1);p.sortedIndex=function(a,b,e,c){for(var e=n(e,c,1),b=e(b),c=0,f=C(a);f>c;){var g=Math.floor((c+f)/2);e(a[g])<b?c=g+1:f=g}return c};p.indexOf=v(1,p.findIndex,p.sortedIndex);p.lastIndexOf=v(-1,p.zOa);p.range=function(a,b,e){q==b&&(b=a||0,a=0);for(var e=e||1,b=Math.max(Math.ceil((b-a)/e),0),c=Array(b),
f=0;b>f;f++,a+=e)c[f]=a;return c};p.bind=function(a,b){function e(){return g(a,e,b,this,c.concat(M.call(arguments)))}if(A&&a.bind===A)return A.apply(a,M.call(arguments,1));p.isFunction(a)||h(new TypeError("Bind must be called on a function"));var c=M.call(arguments,2);return e};p.Q$=function(a){function b(){for(var c=0,f=e.length,j=Array(f),i=0;f>i;i++)j[i]=e[i]===p?arguments[c++]:e[i];for(;c<arguments.length;)j.push(arguments[c++]);return g(a,b,this,this,j)}var e=M.call(arguments,1);return b};p.bindAll=
function(a){var b,e,c=arguments.length;1>=c&&h(Error("bindAll must be passed function names"));for(b=1;c>b;b++)e=arguments[b],a[e]=p.bind(a[e],a);return a};p.memoize=function(a,b){function e(c){var f=e.MNa,g=""+(b?b.apply(this,arguments):c);return p.has(f,g)||(f[g]=a.apply(this,arguments)),f[g]}return e.MNa={},e};p.delay=function(a,b){var e=M.call(arguments,2);return setTimeout(function(){return a.apply(q,e)},b)};p.defer=p.Q$(p.delay,p,1);p.throttle=function(a,b,e){function c(){o=e.AQa===B?0:p.now();
i=q;j=a.apply(f,g);i||(f=g=q)}var f,g,j,i=q,o=0;e||(e={});return function(){var d=p.now();o||e.AQa!==B||(o=d);var k=b-(d-o);return f=this,g=arguments,0>=k||k>b?(i&&(clearTimeout(i),i=q),o=d,j=a.apply(f,g),i||(f=g=q)):i||e.gWa===B||(i=setTimeout(c,k)),j}};p.debounce=function(a,b,e){function c(){var d=p.now()-i;b>d&&0<=d?f=setTimeout(c,b-d):(f=q,e||(o=a.apply(j,g),f||(j=g=q)))}var f,g,j,i,o;return function(){j=this;g=arguments;i=p.now();var d=e&&!f;return f||(f=setTimeout(c,b)),d&&(o=a.apply(j,g),j=
g=q),o}};p.wrap=function(a,b){return p.Q$(b,a)};p.negate=function(a){return function(){return!a.apply(this,arguments)}};p.compose=function(){var a=arguments,b=a.length-1;return function(){for(var e=b,c=a[b].apply(this,arguments);e--;)c=a[e].call(this,c);return c}};p.after=function(a,b){return function(){return 1>--a?b.apply(this,arguments):l}};p.before=function(a,b){var e;return function(){return 0<--a&&(e=b.apply(this,arguments)),1>=a&&(b=q),e}};p.once=p.Q$(p.before,2);var F=!{toString:q}.propertyIsEnumerable("toString"),
O="valueOf,isPrototypeOf,toString,propertyIsEnumerable,hasOwnProperty,toLocaleString".split(",");p.keys=function(a){if(!p.bH(a))return[];if(K)return K(a);var b=[],e;for(e in a)p.has(a,e)&&b.push(e);return F&&w(a,b),b};p.i9=function(a){if(!p.bH(a))return[];var b=[],e;for(e in a)b.push(e);return F&&w(a,b),b};p.values=function(a){for(var b=p.keys(a),e=b.length,c=Array(e),f=0;e>f;f++)c[f]=a[b[f]];return c};p.QVa=function(a,b,e){for(var b=n(b,e),c=p.keys(a),f=c.length,g={},j=0;f>j;j++)e=c[j],g[e]=b(a[e],
e,a);return g};p.XVa=function(a){for(var b=p.keys(a),e=b.length,c=Array(e),f=0;e>f;f++)c[f]=[b[f],a[b[f]]];return c};p.invert=function(a){for(var b={},e=p.keys(a),c=0,f=e.length;f>c;c++)b[a[e[c]]]=e[c];return b};p.functions=p.TVa=function(a){var b=[],e;for(e in a)p.isFunction(a[e])&&b.push(e);return b.sort()};p.extend=k(p.i9);p.cra=p.assign=k(p.keys);p.yOa=function(a,b,e){for(var b=n(b,e),c,e=p.keys(a),f=0,g=e.length;g>f;f++)if(c=e[f],b(a[c],c,a))return c};p.$N=function(a,b,e){var c,g,j={},i=a;if(q==
i)return j;p.isFunction(b)?(g=p.i9(i),c=r(b,e)):(g=f(arguments,B,B,1),c=function(a,b,e){return b in e},i=Object(i));for(var o=0,d=g.length;d>o;o++){var k=g[o],n=i[k];c(n,k,i)&&(j[k]=n)}return j};p.VVa=function(a,b,e){if(p.isFunction(b))b=p.negate(b);else var c=p.map(f(arguments,B,B,1),String),b=function(a,b){return!p.contains(c,b)};return p.$N(a,b,e)};p.defaults=k(p.i9,m);p.create=function(a,b){var e=o(a);return b&&p.cra(e,b),e};p.clone=function(a){return p.bH(a)?p.isArray(a)?a.slice():p.extend({},
a):a};p.tap=function(a,b){return b(a),a};p.pQa=function(a,b){var e=p.keys(b),c=e.length;if(q==a)return!c;for(var f=Object(a),g=0;c>g;g++){var j=e[g];if(b[j]!==f[j]||!(j in f))return B}return m};p.isEqual=function(a,b){return c(a,b)};p.isEmpty=function(a){return q==a?m:e(a)&&(p.isArray(a)||p.isString(a)||p.isArguments(a))?0===a.length:0===p.keys(a).length};p.isElement=function(a){return!(!a||1!==a.nodeType)};p.isArray=L||function(a){return"[object Array]"===G.call(a)};p.bH=function(a){var b=typeof a;
return"function"===b||"object"===b&&!!a};p.each("Arguments,Function,String,Number,Date,RegExp,Error".split(","),function(a){p["is"+a]=function(b){return G.call(b)==="[object "+a+"]"}});p.isArguments(arguments)||(p.isArguments=function(a){return p.has(a,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(p.isFunction=function(a){return"function"==typeof a||B});p.HVa=function(a){return isFinite(a)&&!isNaN(parseFloat(a))};p.isNaN=function(a){return p.isNumber(a)&&a!==+a};p.isBoolean=function(a){return a===
m||a===B||"[object Boolean]"===G.call(a)};p.isNull=function(a){return q===a};p.isUndefined=function(a){return a===l};p.has=function(a,b){return q!=a&&z.call(a,b)};p.noConflict=function(){return x.GZ=y,this};p.identity=function(a){return a};p.constant=function(a){return function(){return a}};p.noop=I();p.kua=j;p.ZVa=function(a){return q==a?I():function(b){return a[b]}};p.H$=p.RVa=function(a){return a=p.cra({},a),function(b){return p.pQa(b,a)}};p.times=function(a,b,e){for(var c=Array(Math.max(0,a)),
b=r(b,e,1),e=0;a>e;e++)c[e]=b(e);return c};p.random=function(a,b){return q==b&&(b=a,a=0),a+Math.floor(Math.random()*(b-a+1))};p.now=Date.now||function(){return(new Date).getTime()};var L={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},U=p.invert(L);p.escape=d(L);p.unescape=d(U);p.result=function(a,b,e){b=q==a?l:a[b];return b===l&&(b=e),p.isFunction(b)?b.call(a):b};var Q=0;p.uniqueId=function(a){var b=++Q+"";return a?a+b:b};p.GTa={evaluate:/<%([\s\S]+?)%>/g,eQa:/<%=([\s\S]+?)%>/g,
escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,P={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g;p.template=function(a,e,c){function f(a){return i.call(this,a,p)}!e&&c&&(e=c);var e=p.defaults({},e,p.GTa),g=0,j="__p+='";a.replace(RegExp([(e.escape||V).source,(e.eQa||V).source,(e.evaluate||V).source].join("|")+"|$","g"),function(e,c,f,i,o){return j+=a.slice(g,o).replace(W,b),g=o+e.length,c?j+="'+\n((__t=("+c+"))==null?'':_.escape(__t))+\n'":f?j+="'+\n((__t=("+
f+"))==null?'':__t)+\n'":i&&(j+="';\n"+i+"\n__p+='"),e});j+="';\n";e.iwa||(j="with(obj||{}){\n"+j+"}\n");j="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+j+"return __p;\n";try{var i=new Function(e.iwa||"obj","_",j)}catch(o){h((o.source=j,o))}return f.source="function("+(e.iwa||"obj")+"){\n"+j+"}",f};p.chain=function(a){a=p(a);return a.hAa=m,a};p.mixin=function(b){p.each(p.functions(b),function(e){var c=p[e]=b[e];p.prototype[e]=function(){var b=[this.RB];
return H.apply(b,arguments),a(this,c.apply(p,b))}})};p.mixin(p);p.each("pop,push,reverse,shift,sort,splice,unshift".split(","),function(b){var e=D[b];p.prototype[b]=function(){var c=this.RB;return e.apply(c,arguments),"shift"!==b&&"splice"!==b||0!==c.length||delete c[0],a(this,c)}});p.each(["concat","join","slice"],function(b){var e=D[b];p.prototype[b]=function(){return a(this,e.apply(this.RB,arguments))}});p.prototype.value=S("RB");p.prototype.valueOf=p.prototype.toJSON=p.prototype.value;p.prototype.toString=
function(){return""+this.RB};"function"==typeof define&&define.cVa&&define("oj",[],function(){return p})}).call(this)}).call(window.TDV||(window.TDV={}));define("underscore-min",I());define("dY",["underscore-min"],function(){return window.TDV._.noConflict()});
define("nU",[],function(){return{u:function(a){return a+"_change"},me:"default",zb:"mouseDown",ad:"mouseMove",Wb:"mouseUp",vq:"mouseWheel",ca:"click",Tl:"doubleClick",bc:"rollOver",rb:"rollOut",Gk:"mouseEnter",Sh:"mouseLeave",Hk:"pointerOver",rUa:"pointerOut",mZ:"pointerDown",nZ:"pointerUp",Qj:"pointerClick",dD:"gestureStart",WY:"gestureChange",bD:"gestureEnd",Rwa:"gestureRotate",cD:"gestureScale",gc:"progress",Qy:"close",OPEN:"open",Ul:"select",sc:"resize",gY:"changing",qa:"change",Fc:"stateChange",
Rh:"cueChange",PH:"preloaded",U:"loaded",zc:"loadingError",Tj:"start",Lf:"stop",lz:"play",iP:"pause",hz:"frame",Oc:"ready",hn:"begin",Ga:"end",dUa:"cancel",yi:"press",Sj:"release",Ik:"repeatEnd",Go:"scroll",fP:"movementChange",cUa:"beforeShow",wba:"beforeHide",INIT:"init",hc:"show",nc:"hide",rD:"showEnd",fD:"hideEnd",$wa:"loadingScript",vxa:"processingScript",ZC:"enableCookies",swa:"applicationSet",dz:"userInteraction",AZ:"transitionEnd",Yca:"toolTipShow",yZ:"toolTipHide",rn:"positionSet",mP:"sizeSet"}});
define("cs",[],function(){return function(a,b){this.name=a;this.source=l;this.data=b}});
define("mP",[],function(){function a(){this.Xg=[];this.Qr=[]}a.prototype.jR=function(a){for(var d=0;d<this.Xg.length;d++)if(this.Xg[d]==a)return d;return-1};a.prototype.set=function(a,d){var c=this.jR(a);0<=c?this.Qr[c]=d:(this.Xg.push(a),this.Qr.push(d))};a.prototype.gsa=function(a){return 0<=this.jR(a)};a.prototype.get=function(a){a=this.jR(a);if(0<=a)return this.Qr[a]};a.prototype.keys=function(){return this.Xg.slice()};a.prototype.values=function(){return this.Qr.slice()};a.prototype.length=function(){return this.Xg.length};
a.prototype.clear=function(a){a=this.jR(a);0<=a&&(this.Xg.splice(a,1),this.Qr.splice(a,1))};a.prototype.each=function(a,d){for(var c=0;c<this.Xg.length;c++)a.call(d,this.Xg[c],this.Qr[c])};return a});
define("hO",["require","dY","nU"],function(a){function b(a){var b=j[a];if(b)return b;if("string"!=typeof a)return j[a]=function(){return a};var e=(b=o.exec(a))&&parseFloat(b[1]);switch(b&&b[4]&&b[4].toLowerCase()){case "vw":return j[a]=function(a){return a*e};case "vh":return j[a]=function(a,b){return b*e};case "vmin":return j[a]=function(a,b,c){return c*e};case "vmax":return j[a]=function(a,b,c,f){return f*e};default:return j[a]=function(){return a}}}function d(a){this.Sa=a;this.GG=this.GG.bind(this);
this.Sa.bind(f.sc,this.Vb,this,m);this.T6=new Map;this.ot=[];this.Vb()}function c(a,b,c,f){var j={};j.Zd=a;j.mTa=b;j.name=c;j.value=f;i.push(j);e||(e=setTimeout(function(){e=q;g()},100))}function g(){e&&(clearTimeout(e),e=q);var a=i;i=[];a.forEach(function(a){d.MV(a.Zd,a.mTa,a.name,a.value)})}a("dY");var f=a("nU");d.prototype.Vb=function(){this.YMa();this.T6.forEach(function(a){for(var b in a)this.GG(a[b])}.bind(this));this.ot.forEach(this.GG)};d.prototype.YMa=function(){var a=this.Sa.Ua(),b=this.Sa.Cb();
this.EV=0.01*a;this.yV=0.01*b;this.Upa=Math.min(this.EV,this.yV);this.Tpa=Math.max(this.EV,this.yV)};d.prototype.GG=function(a){a(this.EV,this.yV,this.Upa,this.Tpa)};d.prototype.yNa=function(a){this.ot.push(a)};d.prototype.jRa=function(a){a=this.ot.indexOf(a);0<=a&&this.ot.splice(a,1)};d.prototype.MV=function(a,e,c,f){function g(b,f,i,o){e.call(a,c,j(b,f,i,o))}var j=b(f);(f=this.T6.get(a))||this.T6.set(a,f={});f[c]=g;g(this.EV,this.yV,this.Upa,this.Tpa)};d.Zc=new Map;d.get=function(a){var b=d.Zc.get(a);
b||(b=new d(a),d.Zc.set(a,b));return b};d.MV=function(a,b,e,f){var j=a.get&&a.get("application")||a.wb&&a.wb();j?(g(),d.get(j).MV(a,b,e,f)):c(a,b,e,f)};var i=[],e=q,j={},o=/^\s*((\+|\-)?(\d*\.)?\d+)\s*(vmin|vmax|vw|vh|px|%)?\s*$/i;return d});
define("lB",[],function(){function a(a,b){var g=a.split(b),f=g[0];(g=g.slice(1).join(b))&&(g=b+g);return[f,g]}var b=window.URL||I();b.wm=document.createElement("a");b.Gsa=function(a){if(b.RW(a)){var c=window.location.protocol+"//"+window.location.hostname;window.location.port&&(c+=":"+window.location.port);return a.substring(0,c.length)!=c}return B};b.yv=function(a,c){if(b.uQa(a))a=window.location.protocol+a;else if(!b.RW(a)&&!b.sy(a)){if(c)if(0==a.indexOf("/")){var g=c.indexOf("//"),f="";0<=g&&(f=
c.substr(0,g+2),c=c.substr(g+2));g=c.indexOf("/");0<g&&(c=c.substr(0,g));a=f+c+a}else a=c+a;b.wm.href=a;a=b.wm.href}return a};b.kQa=function(){switch(window.location.protocol){case "http:":case "https:":return m;default:return B}};b.uQa=function(a){return 0===a.indexOf("//")};b.RW=function(a){if(!a)return B;var b=a.indexOf("://");return 3<=b&&5>=b?m:0==a.indexOf("filesystem:")};b.sy=function(a){return a&&0==a.indexOf("data:")};b.getDirectory=function(a){a=b.yv(a);a=a.split("?")[0];a=a.split("/");
1<a.length&&a.splice(a.length-1,1);return a.join("/")+"/"};b.Ui=function(a){b.oF||(b.oF=b.Fha());return b.oF[a]!==l};b.js=function(a){b.oF||(b.oF=b.Fha());return b.oF[a]};b.ky=function(b,c){if(!c)return b;var g=a(b,"#"),f=g[1],g=a(g[0],"?"),i=g[0],g=g[1];return 0<=g.indexOf(c)?b:i+(g+(g?"&":"?")+c)+f};b.parse=function(a){b.wm.href=a;a={};a.protocol=b.wm.protocol;a.hostname=b.wm.hostname;a.port=b.wm.port;a.pathname=b.wm.pathname;a.search=b.wm.search;a.hash=b.wm.hash;a.host=b.wm.host;var c=a.pathname?
a.pathname.lastIndexOf("."):-1;a.tOa=0<=c?a.pathname.substr(c).toLowerCase():"";return a};b.iVa=function(a){return a.protocol+"//"+a.hostname+a.pathname+a.search+a.hash};b.getExtension=function(a){var a=b.parse(a).pathname,c=a.lastIndexOf(".");return 0<=c?a.substr(c,a.length):""};b.Si=function(a,c){var g;a:switch((b.js(a)||"").toLowerCase()){case "false":case "0":case "no":case "n":g=B;break a;case "true":case "1":case "yes":case "y":g=m;break a;default:g=c}return g};b.zra=function(a,c){var g=parseInt(b.js(a));
return isNaN(g)?c:g};b.rW=function(a){a=parseFloat(b.js(a));return isNaN(a)?l:a};b.oF=q;b.Fha=function(){for(var a={},b=window.location.hash.substring(1).split("&").concat(window.location.search.substring(1).split("&")),g=0;g<b.length;g++){var f=b[g].split("=");a[decodeURIComponent(f[0])]=1<f.length?decodeURIComponent(f[1]):q}return a};return b});
define("kG",["require","dY","jquery.mod"],function(a){var b=a("dY"),d=a("jquery.mod"),c={YPa:function(a,b){function e(){}e.prototype=b.prototype;a.prototype=new e;a.prototype.constructor=a},VB:function(a,b){b.forEach(function(b){Object.getOwnPropertyNames(b).forEach(function(c){a.prototype[c]=b[c]})})},extend:function(){var a=arguments[0],b=arguments[arguments.length-1],e=Array.prototype.slice.call(arguments,1,arguments.length-1);c.YPa(b,a);c.VB(b,e);return b},deferred:function(a,c){return function(){var e=
arguments;b.defer(function(){a.apply(c,e)})}},hq:function(a,c){var e=B;return function(){e||(e=m,b.defer(function(){e=B;a.apply(c||window)}))}},memoize:function(a,b,e,c){a.RJ||(a.RJ=[],a.Y3=[]);for(var g=a.RJ,d=0,n=g.length;d<n;d++){var r=g[d];if(c.length==r.length){for(var p=m,t=0,s=c.length;t<s&&p;t++)p=r[t]==c[t];if(p)return a.Y3[d]}}e=e.apply(window,c);a.RJ.length==b&&(a.RJ.shift(),a.Y3.shift());a.RJ.push(c);a.Y3.push(e);return e},zE:[],fVa:function(a,b){var e=c.MBa();window[e]=function(){a.apply(b,
arguments)};c.zE.push({handler:a,context:b,callback:e});return e},yVa:function(a,b){for(var e=0;e<c.zE.length;e++){var g=c.zE[e];if(g.handler==a&&g.context==b)return g.callback}},iWa:function(a,b){for(var e=0;e<c.zE.length;e++){var g=c.zE[e];if(g.handler==a&&g.context==b)return g=g.callback,c.zE.splice(e,1),delete window[g],g}},MBa:function(){var a;do a="__callback_"+c.lua(8);while(window[a]);return a},lua:function(a){for(var b=[],e=0;e<a;e++)b.push(Math.floor(16*Math.random()).toString(16));return b.join("")},
rOa:function(a){c.RE=d("<div></div>");c.RE.css({overflow:"auto",position:"absolute",bottom:0,left:0,right:0,padding:"20px",fontFamily:"Verdana",backgroundColor:"#FFFFFF",color:"#000000","z-index":100});a?c.RE.css({top:0}):c.RE.css({width:"40%",right:"0",left:"auto",height:"50%",filter:"alpha(opacity=60)",opacity:0.6});d("body").append(c.RE);console.log=function(a){c.log(a)}}},g;c.log=function(a){if(a!=g){g=a;try{c.RE?d("<div></div>").text(a).prependTo(c.RE):console.log(a)}catch(b){}}};c.$Va=function(a){this.y1.push(a)};
c.y1=[];c.debug=function(a,b){try{b.apply(this,arguments)}catch(e){c.WW(a,e),h(e)}};c.WW=function(a,b){var e=[];e.push("Exception: "+a);b.message?(e.push(b.message),e.push(b.stack)):e.push(b);this.log(e.join("\n"));for(e=0;e<this.y1.length;e++)this.y1[e](b)};c.clone=function(a,b){var b=b||0,e=new a.constructor,g;for(g in a)if(a.hasOwnProperty(g)){var o=a[g];0<b&&o&&"object"===typeof o&&(o=c.clone(o,b-1));e[g]=o}return e};c.toArray=function(a){return a===l||a===q?[]:!Array.isArray(a)?[a]:a};"function"!=
typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(a,b){a==q&&h(new TypeError("Cannot convert undefined or null to object"));for(var e=Object(a),c=1;c<arguments.length;c++){var g=arguments[c];if(g!=q)for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(e[d]=g[d])}return e},writable:m,configurable:m});return c});
define("eQ","require,jquery.mod,dY,mP,hO,lB,kG".split(","),function(a){function b(a,b){this.OD=a;this.mQ=b;this.$K=q;this.b5={};this.V4=this.Cz=this.FD=l;this.Ala=[];this.LM=this.NB=l;this.zla=[];this.VL=this.BB=l;this.yla={};this.SJ=l;this.wla=[];this.xt=l;this.xla=[];this.Pt=l;this.zia=this.Bia=B}var d=a("jquery.mod"),c=a("dY"),g=a("mP"),f=a("hO"),i=a("lB"),e=a("kG");b.prototype.H=function(a){this.$K=a;this.lfa();this.ofa();this.V_();return this};b.prototype.iPa=function(){if(this.$K)return b.Fj(this.$K)};
b.prototype.PG=S("OD");b.prototype.zN=function(){return this.Rw()?this.Lt().zN().concat(this.OD):[this.OD]};b.prototype.Q=function(a){this.b5=a;this.lfa();return this};b.prototype.hasAttributes=function(){return this.M9().length>0};b.prototype.hasAttribute=function(a){return this.L9(a)?m:B};b.prototype.M9=function(){this.FD==l&&this.Jfa();return this.FD};b.prototype.ASa=function(){this.V4=["definitions"];return this};b.prototype.Jra=function(){if(this.V4)return this.V4;if(this.Rw())this.Lt().Jra();
else return[]};b.prototype.L9=function(a){this.Cz==l&&this.Jfa();return this.Cz[a]};b.prototype.vi=function(a){this.Ala=a;this.AAa();return this};b.prototype.PPa=function(){return this.Tra().length>0};b.prototype.Tra=function(){this.NB==l&&this.Qfa();return this.NB};b.prototype.wPa=function(){this.LM==l&&this.Qfa();return this.LM};b.prototype.vs=function(a){this.zla=a;this.xAa();return this};b.prototype.OPa=function(){return this.Rra().length>0};b.prototype.Rra=function(){this.BB==l&&this.Pfa();return this.BB};
b.prototype.uPa=function(){this.VL==l&&this.Pfa();return this.VL};b.prototype.fc=function(a){this.wla=a;this.V_();return this};b.prototype.FPa=function(){return this.R9().length>0};b.prototype.esa=function(a){this.xt==l&&this.WD();return this.xt.indexOf(a)!=-1};b.prototype.R9=function(){this.xt==l&&this.WD();return this.xt};b.prototype.hh=function(a){this.xla=a;this.V_();return this};b.prototype.JPa=function(){return this.W9().length>0};b.prototype.fsa=function(a){this.Pt==l&&this.WD();return this.Pt.indexOf(a)!=
-1};b.prototype.W9=function(){this.Pt==l&&this.WD();return this.Pt};b.prototype.GPa=function(a){this.SI==l&&this.WD();return this.SI.indexOf(a)!=-1};b.prototype.SOa=function(){this.SI==l&&this.WD();return this.SI};b.prototype.Mg=function(a){this.yla=a;this.ofa();return this};b.prototype.Gra=function(){this.SJ==l&&this.zBa();return this.SJ};b.prototype.gSa=function(){this.Bia=m;return this};b.prototype.Ara=function(){return this.Bia||this.Rw()&&this.Lt().Ara()};b.prototype.Zp=function(a,b,c,f){this.UHa(b,
c);var g=this.mQ,i;i=f&&f.length>0?new (e.extend(g,function(){g.apply(this,f)})):new g;i.set("application",a);i.set("baseDirectoy",b);i.set("queryStringParameters",c);i.set("class",this.PG());return i};b.prototype.UHa=function(a,b){if(!this.zia){this.zia=m;this.PBa(a,b);this.BCa()}};b.prototype.PBa=function(a,b){if(this.PPa()||this.OPa()){var e=this.mQ.prototype,c=this.wPa(),g=this.uPa(),d=e.set;e.set=function(e,k){if(c[e]){k&&!i.sy(k)&&!i.RW(k)&&(k=i.ky(i.yv(k,a),b));d.call(this,e,k)}else g[e]?f.MV(this,
d,e,k):d.call(this,e,k)}}};b.prototype.BCa=function(){var a=this.mQ.prototype,b=this;if(this.hasAttributes()){a.set=a.set;a.get=a.get}if(this.FPa()||this.JPa()){a.bind=a.bind;a.getBindings=a.NG;a.hasBindings=a.csa;a.trigger=a.trigger;a.unbind=a.unbind}a.getClassName=function(){return b.PG()};a.getClassPath=function(){return b.zN()};a.getAttributeNames=function(){return b.M9()};a.getEventNames=function(){return b.SOa()};a.hasEvent=function(a){return b.GPa(a)};var e=this.Gra(),c;for(c in e)a[c]=e[c]};
b.prototype.lfa=function(){this.Cz=this.FD=l};b.prototype.Jfa=function(){this.FD=[];this.Cz={};for(var a in this.b5){this.FD.push(a);this.Cz[a]=b.Z1(this.b5[a])}if(this.Rw())for(var e=this.Lt(),c=e.M9(),f=0;f<c.length;f++){a=c[f];if(!this.Cz[a]){this.FD.push(a);this.Cz[a]=e.L9(a)}}};b.prototype.AAa=function(){this.LM=l};b.prototype.Qfa=function(){this.NB=this.Ala.slice();if(this.Rw())this.NB=c(this.NB).union(this.Lt().Tra());this.LM={};for(var a=0;a<this.NB.length;a++)this.LM[this.NB[a]]=m};b.prototype.xAa=
function(){this.VL=l};b.prototype.Pfa=function(){this.BB=this.zla.slice();if(this.Rw())this.BB=c(this.BB).union(this.Lt().Rra());this.VL={};for(var a=0;a<this.BB.length;a++)this.VL[this.BB[a]]=m};b.prototype.V_=function(){this.SI=this.Pt=this.xt=l};b.prototype.WD=function(){this.xt=this.wla.slice();this.Pt=this.xla.slice();if(this.Rw()){this.xt=c(this.xt).union(this.Lt().R9());this.Pt=c(this.Pt).union(this.Lt().W9())}this.SI=c(this.xt).union(this.Pt)};b.prototype.ofa=function(){this.SJ=l};b.prototype.zBa=
function(){this.SJ=c(this.yla).clone();this.Rw()&&c(this.SJ).defaults(this.Lt().Gra())};b.prototype.Rw=function(){return this.$K?m:B};b.prototype.Lt=function(){return b.Fj(this.$K)};b.T_=new g;b.jfa=new g;b.$Ua={};b.F=function(a,e){var c=new b(a,e);b.T_.set(a,c);b.jfa.set(e,c);return c};b.getAll=function(){return b.T_.values()};b.Fj=function(a){return b.T_.get(a)};b.FOa=function(a){return b.jfa.get(a)};b.xa=function(a,e){var f=b.Fj(a);if(c(e).isNull())return m;if(e&&e.constructor)for(var g=b.FOa(e.constructor);g;){if(g==
f)return m;g=g.iPa()}return B};b.Z1=function(a){switch(a){case "string":case "code":return b.ZKa;case "number":return b.bGa;case "bool":return b.Eza;case "color":return b.GAa;case "percent":return b.DHa;case "size":return b.sKa;case "identifier":return b.UEa;case "array":return b.lea;case "canvas":return b.eAa;case "img":return b.XEa;case "dict":return b.FHa;case "*":return b.qCa;default:if(b.pFa(a))switch(b.lDa(a)){case "array":var e=b.Z1(b.Yga(a));return function(a,c){for(var a=b.lea(a,c),f=0;f<
a.length;f++)a[f]=e(a[f],c);return a};case "enum":var f=b.Zga(a);return b.mDa(f);case "or":var f=b.Zga(a),g=c(f).map(function(a){return b.Z1(a)});return function(a,b){for(var e=0;e<g.length;e++)try{return g[e](a,b)}catch(c){}h("Invalid value")};default:h("Invalid type validator definition: "+a)}else return b.lm(function(e){return b.xa(a,e)})}};b.pFa=function(a){return a.indexOf("[")>=0&&a.lastIndexOf("]")==a.length-1};b.lDa=function(a){return a.substring(0,a.indexOf("["))};b.Yga=function(a){return a.substring(a.indexOf("[")+
1,a.lastIndexOf("]"))};b.Zga=function(a){for(var a=b.Yga(a),e=[],f="",g=0,i=0;i<a.length;i++){var d=a.charAt(i),f=f+d;switch(d){case "[":g++;break;case "]":g--;break;case ",":if(g==0){e.push(f.substr(0,f.length-1));f=""}}}f!=""&&e.push(f);return c(e).map(function(a){return b.QLa(a)})};b.QLa=function(a){return a.replace(/^\s+|\s+$/g,"")};b.lm=function(a){return function(e,c){if(!a(e)){typeof e!="string"&&h("Invalid value");e=b.zCa(e,c);a(e)||h("Invalid value")}return e}};b.zCa=function(a,b){return function(){return eval(a)}.call(b)};
b.qCa=function(a){return a};b.bGa=b.lm(function(a){return Object.prototype.toString.call(a)=="[object Number]"});b.ZKa=b.lm(function(a){return typeof a=="string"||a===q});b.Eza=b.lm(function(a){return a===m||a===B});b.lea=b.lm(function(a){return Object.prototype.toString.call(a)=="[object Array]"});b.eAa=b.lm(function(a){return a&&a.tagName=="CANVAS"});b.XEa=b.lm(function(a){return a&&a.tagName=="IMG"});b.mDa=function(a){return b.lm(function(b){return a.indexOf(b)!=-1})};b.XQ=function(a,b){return c(a).isString()&&
b.test(a)};b.UEa=b.lm(function(a){return b.XQ(a,/^[a-z][a-z0-9_]*$/i)});b.DHa=b.lm(function(a){return b.XQ(a,/^\s*([+-]?\d+\.?\d*)%\s*$/i)});b.sKa=b.lm(function(a){return b.XQ(a,/^\s*([+-]?\d+\.?\d*)\s*((vw)|(vh)|(vmin)|(vmax)|(px))\s*$/i)});b.GAa=b.lm(function(a){return b.XQ(a,/^#[0-9a-f]{6}$/i)});b.FHa=b.lm(function(a){try{return d.isPlainObject(a)}catch(b){return B}});window.TDV.PlayerAPI.getClassByName=function(a){return b.Fj(a).mQ};return b});
define("ii",["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.n9=f;this.AW=1779033703;this.BW=3144134277;this.DW=1013904242;this.EW=2773480762;this.FW=1359893119;this.GW=2600822924;this.HW=528734635;this.IW=1541459225;this.dN=this.start=this.my=this.k$=0;this.I9=this.KW=B;this.first=m}var b="0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f".split(","),d=[-2147483648,8388608,32768,128],c=[24,16,8,0],g=[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.I9){for(var b,f=0,g,d=a.length,n=this.n9;f<d;){this.KW&&(this.KW=B,n[0]=this.dN,n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0);for(g=this.start;f<d&&64>g;++f)b=a.charCodeAt(f),128>b?n[g>>2]|=b<<c[g++&3]:(2048>b?n[g>>2]|=(192|b>>6)<<c[g++&3]:(55296>b||57344<=b?n[g>>
2]|=(224|b>>12)<<c[g++&3]:(b=65536+((b&1023)<<10|a.charCodeAt(++f)&1023),n[g>>2]|=(240|b>>18)<<c[g++&3],n[g>>2]|=(128|b>>12&63)<<c[g++&3]),n[g>>2]|=(128|b>>6&63)<<c[g++&3]),n[g>>2]|=(128|b&63)<<c[g++&3]);this.zQa=g;this.my+=g-this.start;64<=g?(this.dN=n[16],this.start=g-64,this.hash(),this.KW=m):this.start=g}4294967295<this.my&&(this.k$+=this.my/4294967296<<0,this.my%=4294967296);return this}};a.prototype.xOa=function(){if(!this.I9){this.I9=m;var a=this.n9,b=this.zQa;a[16]=this.dN;a[b>>2]|=d[b&3];
this.dN=a[16];56<=b&&(this.KW||this.hash(),a[0]=this.dN,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.k$<<3|this.my>>>29;a[15]=this.my<<3;this.hash()}};a.prototype.hash=function(){var a=this.AW,b=this.BW,c=this.DW,f=this.EW,d=this.FW,n=this.GW,r=this.HW,p=this.IW,t=this.n9,s,u,v,w,x,y,D;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;D=b&c;for(s=0;64>s;s+=
4)this.first?(y=704751109,v=t[0]-210244248,p=v-1521486534<<0,f=v+143694565<<0,this.first=B):(u=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),v=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7),y=a&b,w=y^a&c^D,x=d&n^~d&r,v=p+v+x+g[s]+t[s],u+=w,p=f+v<<0,f=v+u<<0),u=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),v=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),D=f&a,w=D^f&b^y,x=p&d^~p&n,v=r+v+x+g[s+1]+t[s+1],u+=w,r=c+v<<0,c=v+u<<0,u=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),v=(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|
r<<7),y=c&f,w=y^c&a^D,x=r&p^~r&d,v=n+v+x+g[s+2]+t[s+2],u+=w,n=b+v<<0,b=v+u<<0,u=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),v=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),D=b&c,w=D^b&f^y,x=n&r^~n&p,v=d+v+x+g[s+3]+t[s+3],u+=w,d=a+v<<0,a=v+u<<0;this.AW=this.AW+a<<0;this.BW=this.BW+b<<0;this.DW=this.DW+c<<0;this.EW=this.EW+f<<0;this.FW=this.FW+d<<0;this.GW=this.GW+n<<0;this.HW=this.HW+r<<0;this.IW=this.IW+p<<0};a.prototype.RPa=function(){this.xOa();var a=this.AW,e=this.BW,c=this.DW,f=this.EW,g=this.FW,
d=this.GW,r=this.HW,p=this.IW;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[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[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[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[g>>28&15]+b[g>>24&15]+b[g>>20&15]+b[g>>16&15]+b[g>>12&15]+b[g>>8&15]+b[g>>4&15]+b[g&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[r>>28&15]+b[r>>24&15]+b[r>>20&15]+b[r>>16&15]+b[r>>12&15]+b[r>>8&15]+b[r>>4&15]+b[r&15]+b[p>>28&15]+b[p>>24&15]+b[p>>20&15]+b[p>>16&15]+b[p>>12&15]+b[p>>8&15]+b[p>>4&15]+b[p&15]};return function(b){return(new a).update(b).RPa()}});
define("lN",["require","lB"],function(a){var a=a("lB"),b={};b.UO=a.Si("debug",B);b.Uwa=a.Ui("hqhls");b.uba=a.Si("audiocontext",m);b.CUa=a.Si("testhash",B);b.Mwa=a.Si("exitvronblur",B);b.Dwa=a.Si("download",m);b.Ixa=a.Si("updatewhilehidden",B);return b});
define("bS",["require","ii","lN"],function(a){function b(a){var c;c=Array.isArray(a)?"array":a===q?"null":typeof a;switch(c){case "array":return"["+a.map(b).join(",")+"]";case "object":return"{"+Object.keys(a).sort().map(function(c){return b(c)+":"+b(a[c])}).join(",")+"}";case "boolean":return a?"true":"false";case "number":return a.toFixed(3);case "string":return'"'+a.split('"').join('\\"')+'"';case "null":case "undefined":return c;case "function":return"<"+c+">"}return""}function d(a){return a.map(function(a){return String.fromCharCode(a)}).join("")}
var c=a("ii");a("lN");return{validate:function(a){var f=[104,97,115,104],i=a[d(f)];delete a[d(f)];a=d([116,100,118])+b(a);return c(a)==i}}});
define("kJ",[],function(){function a(){var a=f.length,b=f.splice(0,a);g+=a;for(var e=0;e<a;e++){var c=b[e];c&&c()}}var b=window.MutationObserver,d=window.Promise,c=0,g=0,f=[],i;setInterval(function(){0<f.length&&100<(new Date).getTime()-e&&a()},100);var e,j;d&&(j=new d(function(a){a()}));b&&(i=document.createTextNode(""),(new b(a)).observe(i,{characterData:m}));return{xy:function(g,k){if(k>0||!b&&!d)return~setTimeout(g,k||1);if(f.length==0){d?j.then(a):i.textContent=c;e=(new Date).getTime()}c++;f.push(g);
return c-1},cancel:function(a){if(a<0)clearTimeout(~a);else{var b=a-g;if(b>=0){f[b]||h("invalid async handle: "+a);f[b]=q}}}}});
define("fQ",["require","dY","kJ","cs","kG"],function(a){function b(){this.Ic={}}var d=a("dY"),c=a("kJ"),g=a("cs"),f=a("kG");b.prototype.bind=function(a,b,c,f,g){a===l&&h("Event name undefined");b===l&&h("Event handler undefined");a in this.Ic||(this.Ic[a]=[]);this.Ic[a].push({handler:b,handlerDef:g||b,context:c||this,immediate:f?m:B});return this};b.prototype.unbind=function(a,b,c){if(a in this.Ic){var c=c||this,f=d(this.Ic[a]).select(function(a){return a.handler!=b||a.context!=c});0<f.length?this.Ic[a]=
f:delete this.Ic[a]}return this};b.prototype.OTa=function(a){a in this.Ic&&delete this.Ic[a]};b.prototype.lba=function(){this.Ic={}};b.prototype.trigger=function(a,b){var c="string"==typeof a,f=c?a:a.name;f in this.Ic&&(c&&(a=new g(a,b)),a.source=this,this.lw(a,m),f in this.Ic&&this.QBa(a));return this};b.prototype.QBa=function(a){b.AQ.push({caller:this,event:a});b.P0||(b.P0=m,c.xy(b.Yfa))};b.AQ=[];b.P0=B;b.Yfa=function(){for(var a=(new Date).getTime()+1E3;b.AQ.length;){var e=b.AQ.shift();b.prototype.lw.call(e.caller,
e.event,B);if((new Date).getTime()>a)break}0<b.AQ.length?c.xy(b.Yfa,1):b.P0=B};b.prototype.csa=function(a){return a in this.Ic};b.prototype.NG=function(a,b){for(var c=[],f=this.Ic[a]||[],g=0;g<f.length;g++){var d=f[g];(b===l||d.immediate==b)&&c.push(d.handlerDef)}return c};b.prototype.lw=function(a,b){var c;a.unbindCurrentHandler=function(){c&&this.unbind(a.name,c.handler,c.context)}.bind(this);if(a.name in this.Ic)for(var g=this.Ic[a.name],d=0;d<g.length;d++)if(c=g[d],c.immediate==b)try{c.handler.call(c.context,
a)}catch(n){f.WW("Exception handling event "+a.name,n)}};return b});define("lh",["nU","kG","cs","fQ"],function(a,b,d,c){b=b.extend(c,function(){c.call(this);this.it={}});b.prototype.set=function(a,b){this.it[a]!=b&&(this.it[a]=b,this.Ooa(a))};b.prototype.Ooa=function(b){this.trigger(new d(a.u(b)))};b.prototype.copy=function(a){this.it={};for(var b in a.it)this.it[b]=a.it[b];return this};b.prototype.get=function(a,b){var c=this.it[a];return c!==l?c:b};return b});
define("gn",[],function(){function a(a,d,c){this.set("undefined"!=typeof a?a:0,"undefined"!=typeof d?d:0,"undefined"!=typeof c?c:0)}a.prototype.set=function(a,d,c){this.x=a;this.y=d;this.z=c;return this};a.prototype.clone=function(){return new a(this.x,this.y,this.z)};a.prototype.apply=function(a){a.BG(this)};a.prototype.project=function(a){a.project(this)};return a});
define("a",["kG","gn"],function(a,b){var d=a.extend(b,function(a,g,f){b.call(this,a,g,f)});d.prototype.clone=function(){return new d(this.x,this.y,this.z)};d.prototype.Uc=function(){return 0==this.x&&0==this.z?0:-Math.atan2(this.x,this.z)};d.prototype.Mc=function(){return 0==this.y&&0==this.z?0:Math.atan2(this.y,Math.sqrt(this.z*this.z+this.x*this.x))};d.prototype.Y9=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};d.prototype.rH=function(a){a/=this.Y9();this.x*=a;this.y*=a;
this.z*=a;return this};d.prototype.normalize=function(){return this.rH(1)};d.prototype.$B=function(a){return this.x*a.x+this.y*a.y+this.z*a.z};d.prototype.ZV=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};d.py=function(a,b){return new d(b.x-a.x,b.y-a.y,b.z-a.z)};d.pW=function(a,b,f,i,e,j){a=i-a;b=e-b;f=j-f;return Math.sqrt(a*a+b*b+f*f)};d.$r=function(a,b){return new d(Math.cos(b)*Math.sin(a),Math.sin(b),Math.cos(b)*Math.cos(a))};
return d});
define("ik","require,kG,lh,nU,eQ,a".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("a"),a=b.extend(d,function(){d.call(this);this.M8=this.zt=l;this.set("enabled",m);this.set("enabledInSurfaceSelection",m)});g.F("AdjacentPanorama",a).H("Object").Q({enabled:"bool",enabledInSurfaceSelection:"bool",yaw:"number",distance:"number",panorama:"Panorama",backwardYaw:"number"}).hh([c.Ul]);a.prototype.ura=function(){if(this.zt===l){for(this.zt=this.oha()-this.get("yaw");this.zt>180;)this.zt=
this.zt-360;for(;this.zt<-180;)this.zt=this.zt+360}return this.zt};a.prototype.ROa=function(){if(this.M8===l)this.M8=f.$r(this.oha()*Math.PI/180,0);return this.M8};a.prototype.PNa=function(){return this.get("yaw")!==l&&this.get("backwardYaw")!==l};a.prototype.oha=function(){return this.get("backwardYaw")-180};return a});
define("hB",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("color","#ffffff");this.set("intensity",1)});a.F("AmbientLight",b).H("Light").Q({color:"color",intensity:"number"});return b});
define("eT",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("enabled",m);this.set("disabled",B);this.set("disableWhileUserInteracting",B);this.set("enableWhileMoving",B);this.set("disableWhileMoving",B)});a.F("Model3DPostprocessing",b).Q({enabled:"bool",disabled:"bool",disableWhileMoving:"bool",disableWhileUserInteracting:"bool"}).H("Object");b.prototype.yO=function(a){this.Cj!==a&&(this.Cj=a,this.bpa())};b.prototype.tO=function(a){this.XE!==
a&&(this.XE=a,this.bpa())};b.prototype.bpa=function(){this.set("disabled",this.XE&&this.get("disableWhileMoving")||this.Cj&&this.get("disableWhileUserInteracting"))};return b});
define("mV",["require","kG","eQ","eT"],function(a){var b=a("kG"),d=a("eQ"),c=a("eT"),a=b.extend(c,function(){c.call(this);this.set("bias",0);this.set("intensity",1);this.set("scale",100);this.set("kernelRadius",25);this.set("minResolution",0);this.set("blurRadius",4);this.set("output","default")});d.F("AmbientOcclusionModel3DPostprocessing",a).H("Model3DPostprocessing").Q({bias:"number",intensity:"number",scale:"number",kernelRadius:"number",minResolution:"number",blurRadius:"number",output:"enum[default, ao]"});
return a});define("gE",[],function(){return{L:"stopped",S:"playing",Gb:"paused"}});define("eS",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("ImageResource",b).H("Object").Q({levels:"array[ImageResourceLevel]"});return b});
define("eg","require,kG,nU,gE,eS,eQ".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("eS"),a=a("eQ"),b=b.extend(g,function(){g.call(this);this.set("state",c.L);this.set("autoplay",m);this.set("repeat",0);this.set("visibleOnStop",m);this.set("finalFrame","last")});b.prototype.play=function(){this.set("state",c.S)};b.prototype.pause=function(){this.set("state",c.Gb)};b.prototype.stop=function(){this.set("state",c.L)};a.F("AnimatedImageResource",b).H("ImageResource").Q({autoplay:"bool",
finalFrame:"enum[first, last]",frameCount:"number",frameDuration:"number",rowCount:"number",colCount:"number",repeat:"number",state:"enum[stopped, playing, paused]",visibleOnStop:"bool"}).fc([d.Ga,d.Ik,d.Tj]).Mg({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")||c.L)==c.L&&b==c.S&&this.trigger(d.Tj)}g.prototype.set.call(this,a,b)};b.prototype.Gj=function(a,b,e){b||(b=1);e||(e=1);return g.prototype.Gj.call(this,
a,b*this.get("colCount",1),e*this.get("rowCount",1))};return b});define("dU",["require","kG","eQ","eT"],function(a){var b=a("kG"),d=a("eQ"),c=a("eT"),a=b.extend(c,function(){c.call(this);this.set("mode","ssaa");this.set("ssaaSampleLevel",2)});d.F("AntialiasModel3DPostprocessing",a).H("Model3DPostprocessing").Q({mode:"enum[ssaa,fxaa]",ssaaSampleLevel:"number"});return a});
define("hP",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(a){b.call(this);this.JF=a===l?m:a;this.PE=this.Hp=this.Gp=this.la=l;this.set("enabled",m);this.set("selected",B)});d.F("HotspotMapOverlay",a).H("MapOverlay").Q({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.la===l){var a=this.get("image");this.la=a?a.YV(this.JF):q}return this.la};a.prototype.Nra=function(){if(this.Gp===l){var a=this.get("rollOverImage");this.Gp=a?a.YV(this.JF):q}return this.Gp};a.prototype.Qra=function(){if(this.Hp===l){var a=this.get("selectedImage");this.Hp=a?a.YV(this.JF):q}return this.Hp};a.prototype.cPa=function(){if(this.PE===l){this.PE=[];var a=this.getItem();a&&this.PE.push(a);(a=this.Nra())&&this.PE.push(a);
(a=this.Qra())&&this.PE.push(a)}return this.PE};return a});define("eE",["kG","eQ","hP"],function(a,b,d){a=a.extend(d,function(){d.call(this,m)});b.F("AreaHotspotMapOverlay",a).H("HotspotMapOverlay");return a});
define("nt",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("gain",1);this.set("fadeOutTime",0)});a.F("AudioResource",b).H("Object").Q({fadeOutTime:"number",gain:"number",mp3Url:"string",oggUrl:"string"}).vi(["mp3Url","oggUrl"]);return b});define("cG",[],function(){return{jz:"inAdvance",Cba:"delayed"}});
define("bc",[],function(){return{iz:"grab",Ek:"grabbing",gxa:"move",sca:"move-n",tca:"move-ne",jca:"move-e",wca:"move-se",vca:"move-s",xca:"move-sw",yca:"move-w",uca:"move-nw",hxa:"move-ew",jxa:"move-ns",ixa:"move-nesw",kxa:"move-nwse",lca:"move-fast-n",mca:"move-fast-ne",kca:"move-fast-e",pca:"move-fast-se",oca:"move-fast-s",qca:"move-fast-sw",rca:"move-fast-w",nca:"move-fast-nw",yf:"hand",me:"default",Mv:"inherit"}});
define("gS",["require","nU"],function(a){function b(){this.Bi=[]}var d=a("nU");b.prototype.register=function(a){this.mya(a);this.Bi.push(a);a.get("pressed")&&this.cna(a)};b.prototype.KO=function(a){this.iIa(a)};b.prototype.mya=function(a){a.bind(d.yi,this.Lja,this,m)};b.prototype.iIa=function(a){a.unbind(d.yi,this.Lja,this)};b.prototype.Lja=function(a){this.cna(a.source)};b.prototype.cna=function(a){this.Bi.forEach(function(b){b.set("pressed",b==a)})};b.register=function(a,b){this.KO(a);var f=this.Yh(b);
a.UZ=f;f.register(a)};b.KO=function(a){a.UZ&&(a.UZ.KO(a),delete a.UZ)};b.Yh=function(a){return this.mia[a]||(this.mia[a]=new b)};b.mia={};return b});define("dV",[],function(){return{ne:"push",Uj:"toggle"}});define("hn",[],function(){return{tD:"visible",Yba:"hidden",Go:"scroll"}});define("gq",[],function(){return{me:l,P:"over",bb:"pressed",Rb:"pressedOver",W:"selected"}});define("mk",[],function(){return{Ja:"left",Xa:"right",ae:"center",ic:"top",ac:"bottom",zd:"middle"}});
define("fn",[],function(){return{bc:"rollOver",ALWAYS:"always"}});
define("dm",["require"],function(){var a={},b;a:{try{if("localStorage"in window&&(window.localStorage.setItem("test","test"),"test"==window.localStorage.getItem("test"))){b=m;break a}}catch(d){}b=B}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 c={};a.setItem=function(a,b){c[a]=b};a.getItem=
function(a){return c[a]};a.removeItem=function(a){delete c[a]};a.clear=function(){c={}}}return a});
define("t",["require","kG","lB","dm"],function(a){function b(){}function d(a){return!!(window.location.hash&&0<=window.location.hash.indexOf("device="+a))}var c=a("kG"),g=a("lB"),f=a("dm");b.aj=TDV.kb.hP;b.DH=TDV.kb.gZ;b.EZ=TDV.kb.Dca;b.IUa=TDV.kb.kZ;b.bxa=TDV.kb.hZ;b.Zwa=TDV.kb.Cca;b.uUa=TDV.kb.jZ;b.iZ=TDV.kb.iZ;b.IH=TDV.kb.IH;b.cY=TDV.kb.cY;b.bY=TDV.kb.bY;b.aY=TDV.kb.aY;b.dY=TDV.kb.dY;b.Qh=TDV.kb.Qh;b.OO=TDV.kb.OO;b.Rl=TDV.kb.Rl;b.Dk=TDV.kb.Dk;b.UC=TDV.kb.UC;b.Fv=TDV.kb.Fv;b.EH=TDV.kb.EH;b.My=TDV.kb.My;
b.$X=TDV.kb.$X;b.HH=TDV.kb.HH;b.Ds=TDV.kb.Ds;b.SO=TDV.kb.SO;b.FH=TDV.kb.FH;b.PO=TDV.kb.PO;b.VC=TDV.kb.VC;b.GH=TDV.kb.GH;b.Ny=TDV.kb.Ny;b.xba=TDV.kb.xba;b.WC=TDV.kb.WC;b.Oy=TDV.kb.Oy;b.QO=TDV.kb.QO;b.RO=TDV.kb.RO;b.eY=TDV.kb.eY;b.iY=TDV.kb.iY;b.YC=TDV.kb.YC;b.jY=TDV.kb.jY;b.kY=TDV.kb.kY;b.Kw=function(a){a="force_"+a;if(g.Ui("debug")&&g.Ui(a))return g.js(a)};b.SCa=b.Kw("os");b.le=function(){return b.SCa||TDV.kb.le};b.NCa=b.Kw("browser");b.browser=function(){return b.NCa||TDV.kb.browser};b.OCa=b.Kw("browser_type");
b.DG=function(){return b.OCa||TDV.kb.DG};b.Mga=b.Kw("browser_subtype");b.Yd=function(){return b.Mga?b.Mga:TDV.kb.Yd};b.PCa=b.Kw("browser_version");b.xqa=function(){return b.PCa||TDV.kb.xqa};b.RCa=b.Kw("device");b.oy=function(){return b.RCa||TDV.kb.oy};b.ob=function(){return TDV.kb.N$};b.CCa=function(){for(var a=navigator.userAgent.toLowerCase(),b=["SM-G960","SM-G965"],e=0;e<b.length;e++)if(0<=a.indexOf(b[e].toLowerCase()))return m;return B}();b.XCa=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(","),e=0;e<b.length;e++)if(0<=a.indexOf(b[e].toLowerCase()))return m;return B}();b.Nga=b.Kw("gearvrcompatible");b.uN=function(){return b.Nga!==l?"true"==b.Nga:b.XCa};b.kAa=b.browser()!=b.Dk||0>navigator.userAgent.indexOf("; wv")?B:m;b.QCa=!!b.Kw("chromewebview");b.Hqa=function(){return b.QCa||b.kAa};b.If=function(){return b.Yd()==b.Ds||b.Yd()==
b.SO||b.Yd()==b.Oy||b.Yd()==b.WC};b.A$=function(){return b.Rsa()||b.Lsa()||b.Usa()};b.sQa=function(){return d("picog2")};b.qQa=function(){return d("piconeo2")};b.Lsa=function(){return d("piconeo3")};b.Usa=function(){return d("vivefocus")};b.Rsa=function(){return d("oculusquest")?m:b.Yd()==b.Ds&&0<=navigator.userAgent.indexOf("Quest 2")};b.Qsa=function(){return b.Yd()==b.Ds&&0<=navigator.userAgent.indexOf("Quest")&&0>navigator.userAgent.indexOf("Quest 2")};b.jQa=function(){return b.Yd()==b.Ds&&0>navigator.userAgent.indexOf("Quest")};
b.x$=function(){return b.If()&&b.uN()};b.nL=l;b.$Qa=function(){b.nL===l&&(b.nL=parseInt(g.js("sts")),isNaN(b.nL)&&(b.nL=b.If()&&!b.CCa?512:b.ob()&&b.le()==b.aj?512:b.ob()?256:1024));return b.nL};var i;if(b.browser()==b.Rl||b.browser()==b.Qh)try{i=parseFloat(/Version\/([0-9]+\.[0-9]+)/i.exec(navigator.userAgent)[1])}catch(e){}b.MIa=i;b.hO=function(){return b.MIa};b.REa=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("_",""))||B}catch(e){}a||(a=b.hO());return a}();b.rC=function(){return b.REa};var j;if(b.le()==b.DH)try{j=parseFloat(/Android ([0-9]+\.?[0-9]*)/i.exec(navigator.userAgent)[1])}catch(o){}b.Mya=j;b.INa=function(){return b.Mya};b.Tha=function(){var a={Yra:"unknown",tta:1},b=document.createElement("canvas");if(b&&(b=b.getContext("webgl")||b.getContext("experimental-webgl"))){var e=b.getExtension("WEBGL_debug_renderer_info");e&&(a.Yra=b.getParameter(e.UNMASKED_RENDERER_WEBGL));
a.maxTextureSize=b.getParameter(b.MAX_TEXTURE_SIZE);if(e=b.getExtension("EXT_texture_filter_anisotropic")||b.getExtension("MOZ_EXT_texture_filter_anisotropic")||b.getExtension("WEBKIT_EXT_texture_filter_anisotropic"))a.tta=b.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}return a}();b.Xra=function(){return b.Tha};b.Oya=function(){var a=b.Tha.Yra.match(/Apple\s+(.+)\s+GPU/);return a?a[1].toUpperCase():"unknown"}();b.dVa=function(){return b.Oya};b.AFa=b.oy()==b.YC?m:B;b.hv=function(){return b.AFa};
b.x9=function(){return b.browser()==b.Rl&&14<=b.hO()};var k=!!f.getItem("tdvp_video_drift_2");b.nsa=function(){return k};b.WSa=function(){k=m;f.setItem("tdvp_video_drift_2",m)};b.HFa="ontouchstart"in window||"undefined"!==typeof window.PointerEvent&&"undefined"!==typeof navigator.maxTouchPoints&&0<navigator.maxTouchPoints?m:B;b.jba=function(){return b.HFa};b.Fn=g.Ui("touchenabled")?g.Si("touchenabled"):"ontouchstart"in window?b.le()==b.EZ?B:m:B;b.OX=function(){return b.Fn};b.summary=function(){return["browser: "+
b.browser(),"browserType: "+b.DG(),"browserSubtype: "+b.Yd(),"device: "+b.oy(),"isMobile: "+b.ob(),"gearVRCompatibleDevice: "+b.uN(),"chromeWebView: "+b.Hqa(),"touchDevice"+b.jba(),"touchEnabled"+b.OX()].join(", ")};b.log=function(){c.log("browser: "+b.browser());c.log("browserType: "+b.DG());c.log("browserSubtype: "+b.Yd());c.log("device: "+b.oy());c.log("isMobile: "+b.ob());c.log("gearVRCompatibleDevice: "+b.uN());c.log("chromeWebView: "+b.Hqa());c.log("touchDevice: "+b.jba());c.log("touchEnabled: "+
b.OX())};return b});
define("lm",["require","t"],function(a){function b(){for(;o.length;)o.shift()();document.body.removeEventListener("click",b,m);document.body.removeEventListener("touchstart",g,m);document.body.removeEventListener("touchmove",c,m);document.body.removeEventListener("touchend",d,m);e=B}function d(){j&&b()}function c(){j=B}function g(){j=m;i.le()==i.aj&&b()}function f(){document.body.addEventListener("click",b,m);document.body.addEventListener("touchstart",g,m);document.body.addEventListener("touchmove",c,
m);document.body.addEventListener("touchend",d,m)}var i=a("t"),e=B,j=B,o=[];return{VX:function(){b()},AH:function(a){o.push(a);e||(e=m,document.body?f():document.addEventListener("DOMContentLoaded",f))},dWa:function(a){a=o.indexOf(a);0<=a&&o.splice(a,1)}}});define("hy",[],function(){return{exa:7,NO:6,eca:5,qn:4,Sca:3,oD:2,lZ:1,nUa:0,fxa:3,hD:2,qxa:1,pxa:2,oxa:2,Vl:2,Hxa:3,Lxa:4}});define("bh",[],function(){return{ZY:"horizontal",zZ:"vertical"}});
define("op",[],function(){return{jda:"auto",ida:"auto",Rca:"1",Fca:"2",Eca:"auto",NO:"2",Aba:"3",zba:"auto",Qca:"3",Zca:"100",jda:"1",ida:"auto",Rca:"1",Fca:"2",Eca:"auto",NO:"2",Aba:"3",zba:"auto",Qca:"5",Zca:"100",gUa:"101",Nwa:999998,HUa:999999,Xwa:1E6}});
define("gg",[],function(){var a=1,b={};return{css:function(d,c){var g=d.__duqid;g===l&&(g=a.toString(),d.__duqid=g,a++);var g=b[g]||(b[g]={e:d,s:{}}),f;for(f in c)g.s[f]=c[f]},bRa:function(){for(var a in b){var c=b[a],g=c.e.style,c=c.s,f;for(f in c)g[f]=c[f]}b={}}}});
define("bL",["require"],function(){return{HPa:function(a){return!!a&&0<=a.indexOf("&tdvflipx")},dqa:function(a){a&&(0>a.indexOf("#")&&(a+="#"),a+="&tdvflipx");return a},BOa:function(a,b,d){var c=document.createElement("canvas");c.width=b;c.height=d;d=c.getContext("2d");d.translate(b,0);d.scale(-1,1);d.drawImage(a,0,0);a.src=c.toDataURL()}}});
define("hV",["require","t","lB","kJ","dm"],function(a){function b(a,b,c,f,g){this.url=a;this.Fe=b;this.time=c;this.tTa=f;this.QNa=g}var d=a("t"),c=a("lB"),g=a("kJ");a("dm");b.prototype.loaded=function(){f.I6(this.url);f.vL(this)};b.prototype.cancel=function(){f.vL(this)};var f={Kx:[],cr:[],gM:[],D8:q,Lia:{},add:function(a,e,c,f){a=new b(a,e,(new Date).getTime(),c,f);this.Kx.push(a);this.X();return a},ATa:function(a){this.gM.push(a);this.X()},zTa:function(a){var b=this.gM,a=b.indexOf(a);0<=a&&b.splice(a,
1);this.X()}};d.Yd()==d.Ny?(f.sba=T(m),f.I6=I()):!c.Ui("debug")||!c.Si("disable-cache")?(f.sba=function(a){return this.Lia[a]},f.I6=function(a){this.Lia[a]=m}):(f.sba=T(B),f.I6=I());f.X=function(){if(!this.D8)this.D8=g.xy(f.lMa)};f.lMa=function(){f.D8=q;for(var a=this.RIa(),b=0,c=this.cr.length;b<c;b++){var g=this.cr[b];a.indexOf(g)<0&&g.QNa()}var d=this.cr;this.cr=a;b=0;for(c=this.cr.length;b<c;b++){g=this.cr[b];d.indexOf(g)<0&&g.tTa()}}.bind(f);f.tKa=function(){this.Kx.sort(function(a,b){return a.Fe-
b.Fe||b.time-a.time});this.gM.sort(function(a,b){return a-b})};f.RIa=function(){this.tKa();var a=[];if(this.Kx.length)for(var b=this.gM.length?this.gM[0]:this.Kx[0].Fe,c=0;c<10&&c<this.Kx.length&&this.Kx[c].Fe<=b;c++)a.push(this.Kx[c]);return a};f.vL=function(a){var b=this.Kx,a=b.indexOf(a);a>=0&&b.splice(a,1);this.X()};return f});
define("jR","require,kG,cs,fQ,nU,hy,lB,bL,hV".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("fQ"),g=a("nU"),f=a("hy"),i=a("lB"),e=a("bL"),j=a("hV"),a=b.extend(c,function(a){c.call(this);this.rr=a||f.exa;this.ia=this.Z=this.Ob=this.kd=q;this.cx=B;this.IF=this.In=q;this.bU=0;this.Z2=[];this.zR=this.zR.bind(this);this.AR=this.AR.bind(this)});a.prototype.load=function(a){this.cancel();this.kd=a;this.bU=0;this.xma()};a.prototype.xma=function(){this.In=j.add(this.kd,this.rr,this.DKa.bind(this),this.cAa.bind(this))};
a.prototype.cancel=function(){if(this.In){this.In.cancel();this.In=q}this.kfa();this.kd=q};a.prototype.nQa=function(){return!!this.Ob&&!this.cx||this.IF};a.prototype.El=S("cx");a.prototype.jf=function(a){if(a){a=this.Ob.cloneNode(m);this.Z2.push(a);return a}return this.Ob};a.prototype.fd=S("Z");a.prototype.Td=S("ia");a.prototype.pi=S("kd");a.prototype.DKa=function(){this.Ob=this.sBa(this.kd)};a.prototype.cAa=function(){this.nQa()&&this.kfa()};a.prototype.kfa=function(){if(this.Ob){if(this.IF){clearTimeout(this.IF);
this.IF=q}for(this.cx=B;this.Z2.length;)this.iga(this.Z2.shift());this.iga(this.Ob);this.Ob=q}};a.prototype.rya=function(a){a.addEventListener("load",this.zR);a.addEventListener("error",this.AR)};a.prototype.pma=function(a){a.removeEventListener("load",this.zR);a.removeEventListener("error",this.AR)};a.prototype.zR=function(){(!this.Ob.width||!this.Ob.height)&&this.kd.indexOf(".svg")>-1&&this.ECa();this.In.loaded();this.In=q;this.pma(this.Ob);this.cx=m;this.Z=this.Ob.width;this.ia=this.Ob.height;
e.HPa(this.kd)&&e.BOa(this.Ob,this.Z,this.ia);this.trigger(new d(g.U))};a.prototype.AR=function(){this.cancel();if(this.bU<o){this.bU++;this.IF=setTimeout(function(){this.IF=q;this.xma()}.bind(this),Math.pow(2,this.bU)*1E3)}else this.trigger(new d(g.zc))};a.prototype.ECa=function(){var a=new XMLHttpRequest;a.open("GET",this.kd,B);a.send();var b=document.createElement("div");b.innerHTML=a.responseText;a=b.children[0];this.Ob.width=a.width.baseVal.value;this.Ob.height=a.height.baseVal.value};a.prototype.sBa=
function(a){var b=document.createElement("img");i.Gsa(a)?b.setAttribute("crossOrigin","Anonymous"):b.removeAttribute("crossOrigin");b.setAttribute("draggable","false");b.style.position="static";b.style.border="none";b.style.display="none";this.rya(b);b.src=a;return b};a.prototype.iga=function(a){this.pma(a);a.parentNode&&a.parentNode.removeChild(a);a.src=""};var o=5;a.LX=function(a){return j.sba(a)};return a});
define("ga","require,dY,jquery.mod,nU,hy,bh,op,gg,jR".split(","),function(a){function b(){this.Oo=this.Qo=this.Ro=this.Po=this.kt=this.jt=this.mt=this.lt=0;this.LP=this.NP=this.OP=this.MP="";this.eb=1;this.cc=l;this.Tz=[];this.d0=[];this.a0=i.zZ;this.cQ=B;this.wR=l;this.Bh=q;this.y2=this.U8=0;this.Xb=document.createElement("canvas");this.Xb.setAttribute("tdvlayer","background");this.ea=c(this.Xb);j.css(this.Xb,{position:"absolute",left:0,top:0,"z-index":e.NO,"user-select":"none","-ms-user-select":"none",
"-moz-user-select":"none","-webkit-user-select":"none"});this.fg=m}var d=a("dY"),c=a("jquery.mod"),g=a("nU"),f=a("hy"),i=a("bh"),e=a("op"),j=a("gg"),o=a("jR");b.prototype.setSize=function(a,b){if(this.U8!=a||this.y2!=b){this.U8=a||0;this.y2=b||0;this.fg=m}};b.prototype.Yua=function(a){if(this.bp!=a){this.bp=a;this.fg=m}};b.prototype.Lc=S("ea");b.prototype.AN=S("Xb");b.prototype.dSa=function(a){if(this.wR!=a){if(this.Bh){this.Bh.unbind(g.U,this.mJ,this);this.Bh.cancel();this.Bh=q}if(this.wR=a){this.Bh=
new o(f.Sca);this.Bh.bind(g.U,this.mJ,this);this.Bh.load(this.wR)}this.fg=m}};b.prototype.raa=function(a){if(this.lt!=a){this.lt=a;this.fg=m}};b.prototype.saa=function(a){if(this.mt!=a){this.mt=a;this.fg=m}};b.prototype.maa=function(a){if(this.jt!=a){this.jt=a;this.fg=m}};b.prototype.naa=function(a){if(this.kt!=a){this.kt=a;this.fg=m}};b.prototype.paa=function(a){if(this.Po!=a){this.Po=a;this.fg=m}};b.prototype.taa=function(a){if(this.Ro!=a){this.Ro=a;this.fg=m}};b.prototype.qaa=function(a){if(this.Qo!=
a){this.Qo=a;this.fg=m}};b.prototype.oaa=function(a){if(this.Oo!=a){this.Oo=a;this.fg=m}};b.prototype.GRa=function(a){if(this.MP!=a){this.MP=a;this.fg=m}};b.prototype.IRa=function(a){if(this.OP!=a){this.OP=a;this.fg=m}};b.prototype.HRa=function(a){if(this.NP!=a){this.NP=a;this.fg=m}};b.prototype.FRa=function(a){if(this.LP!=a){this.LP=a;this.fg=m}};b.prototype.Xi=function(a){if(this.eb!=a){this.eb=a;this.fg=m}};b.prototype.Ak=S("eb");b.prototype.pH=function(a){if(!d.isEqual(this.cc,a)){this.cc=a;d(a).isArray()||
(a=[a]);a=d(a).filter(function(a){return d(a).isString()});this.Oua(a)}};b.prototype.Oua=function(a){if(!d.isEqual(this.Tz,a)){this.Tz=a;this.fg=m}};b.prototype.MRa=function(a){if(this.QUa!=a){this.d0=a;this.fg=m}};b.prototype.LRa=function(a){if(this.a0!=a){this.a0=a;this.fg=m}};b.prototype.mJ=function(){this.fg=m;this.Pg()};b.prototype.Pg=function(){if(this.fg){this.X();this.fg=B}};b.prototype.X=function(){var a=Math.max(0,this.U8-(this.Po+this.Qo)),b=Math.max(0,this.y2-(this.Ro+this.Oo)),e=this.ea.get(0);
e.width=a;e.height=b;var e=e.getContext("2d"),c=this.Yza(),f=c.length>0,g=this.Bh&&this.Bh.El(),j=this.Po>0&&this.MP||this.Ro>0&&this.OP||this.Qo>0&&this.NP||this.Oo>0&&this.LP,j=f||g||j;if(f){var o;o=this.a0==i.ZY?e.createLinearGradient(0,0,a,0):e.createLinearGradient(0,0,0,b);d(c).forEach(function(a){o.addColorStop(a.ratio,a.color)});e.fillStyle=o;e.fillRect(0,0,a,b);this.cQ=m}else if(this.cQ){e.clearRect(0,0,a,b);this.cQ=B}if(g){e.drawImage(this.Bh.jf(),0,0,a,b);this.cQ=m}this.Xb.style.opacity=
this.eb;this.Xb.style.filter="alpha(opacity="+Math.round(this.eb*100)+")";this.Xb.style["-ms-filter"]="alpha(opacity="+Math.round(this.eb*100)+")";this.Xb.style.borderTopLeftRadius=this.lt+"px";this.Xb.style.borderTopRightRadius=this.mt+"px";this.Xb.style.borderBottomLeftRadius=this.jt+"px";this.Xb.style.borderBottomRightRadius=this.kt+"px";this.Xb.style.borderLeft=this.eR(this.Po,this.MP);this.Xb.style.borderTop=this.eR(this.Ro,this.OP);this.Xb.style.borderRight=this.eR(this.Qo,this.NP);this.Xb.style.borderBottom=
this.eR(this.Oo,this.LP);this.Xb.style.width=a+"px";this.Xb.style.height=b+"px";this.Xb.style.cursor="inherit";this.Xb.style.display=j?"block":"none";if(this.Xb.clientWidth===0&&a!==0){this.Xb.style.width=0;this.Xb.style.width=a+"px"}};b.prototype.eR=function(a,b){return a>0?b?a+"px solid "+b:a+"px solid transparent":"none"};b.prototype.Yza=function(){var a=[];if(this.Tz.length>0){for(var b=this.Tz.slice(),b=[].concat([b[0]],b,[b[b.length-1]]),e=this.Xza(),e=[].concat([0],e,[1]),c=0;c<b.length;c++){var f=
e[c];f>=0&&a.push({color:b[c],ratio:f})}for(c=0;c<a.length-1;)a[c].ratio==a[c+1].ratio&&a[c].color==a[c+1].color?a.splice(c,1):c++;for(c=1;c<a.length-1;)a[c-1].ratio==a[c+1].ratio?a.splice(c,1):c++}return a};b.prototype.Xza=function(){var a=this.Tz.length,b;for(b=this.d0.length>0?d(this.d0).map(function(a){return Math.min(1,Math.max(0,a))}):a==1?[0.5]:d(d.range(a)).map(function(b,e){return 1*e/(a-1)});b.length<a;)b.push(1);b.length>a&&b.splice(a,b.length-a);return b};return b});
define("ew",["jquery.mod","op","gg"],function(a,b,d){function c(){this.kT=this.mT=this.nT=this.lT=this.Oo=this.Qo=this.Ro=this.Po=0;this.XK=this.bp=m;this.Q8=this.S2=0;this.ka=m;this.FL=document.createElement("div");this.FL.setAttribute("tdvlayer","content");this.Pma=a(this.FL);d.css(this.FL,{position:"absolute"});this.vI=document.createElement("div");this.Efa=a(this.vI);d.css(this.vI,{position:"absolute"});this.Pma.append(this.Efa)}c.prototype.append=function(a){this.Efa.append(a)};c.prototype.OV=
function(a){this.vI.appendChild(a)};c.prototype.pua=function(a){this.vI.removeChild(a)};c.prototype.Lc=S("Pma");c.prototype.AN=S("FL");c.prototype.aSa=function(a){this.S2!=a&&(this.S2=a,this.ka=m)};c.prototype.jTa=function(a){this.Q8!=a&&(this.Q8=a,this.ka=m)};c.prototype.SG=function(){return this.lT+this.Po};c.prototype.WG=function(){return this.nT+this.Ro};c.prototype.VG=function(){return this.mT+this.Qo};c.prototype.OG=function(){return this.kT+this.Oo};c.prototype.sH=function(a){this.XK!=a&&(this.XK=
a,this.ka=m)};c.prototype.DSa=function(a){this.lT!=a&&(this.lT=a,this.ka=m)};c.prototype.FSa=function(a){this.nT!=a&&(this.nT=a,this.ka=m)};c.prototype.ESa=function(a){this.mT!=a&&(this.mT=a,this.ka=m)};c.prototype.CSa=function(a){this.kT!=a&&(this.kT=a,this.ka=m)};c.prototype.paa=function(a){this.Po!=a&&(this.Po=a,this.ka=m)};c.prototype.taa=function(a){this.Ro!=a&&(this.Ro=a,this.ka=m)};c.prototype.qaa=function(a){this.Qo!=a&&(this.Qo=a,this.ka=m)};c.prototype.oaa=function(a){this.Oo!=a&&(this.Oo=
a,this.ka=m)};c.prototype.Yua=function(a){this.bp!=a&&(this.bp=a,this.ka=m)};c.prototype.Pg=function(){this.ka&&(this.X(),this.ka=B)};c.prototype.X=function(){d.css(this.FL,{overflow:this.XK?"visible":"hidden","z-index":this.bp?b.Aba:b.zba,left:this.SG()+"px",top:this.WG()+"px",right:this.VG()+"px",bottom:this.OG()+"px",cursor:"inherit"});d.css(this.vI,{left:-this.S2+"px",top:-this.Q8+"px",right:this.XK?0:"initial",bottom:this.XK?0:"initial",cursor:"inherit"})};return c});
define("jt",["dY","jquery.mod","kG","op","gg"],function(a,b,d,c,g){function f(){this.ia=this.Z=this.Da=this.Ba=l;this.kt=this.jt=this.mt=this.lt=0;this.vb=B;this.R2=0;this.P8=4;this.E_=6;this.c7=0;this.cc="#000000";this.eb=1;this.Xb=document.createElement("div");this.Xb.setAttribute("tdvlayer","shadow");this.ea=b(this.Xb);g.css(this.Xb,{position:"absolute",left:0,top:0,right:0,bottom:"0"});this.ka=B}f.prototype.Lc=S("ea");f.prototype.AN=S("Xb");f.prototype.raa=function(a){this.lt!=a&&(this.lt=a,this.ka=
m)};f.prototype.saa=function(a){this.mt!=a&&(this.mt=a,this.ka=m)};f.prototype.maa=function(a){this.jt!=a&&(this.jt=a,this.ka=m)};f.prototype.naa=function(a){this.kt!=a&&(this.kt=a,this.ka=m)};f.prototype.Xi=function(a){this.eb!=a&&(this.eb=a,this.ka=m)};f.prototype.Ak=S("eb");f.prototype.Jf=function(a){this.vb!=a&&(this.vb=a,this.ka=m)};f.prototype.$Ra=function(a){this.R2!=a&&(this.R2=a,this.ka=m)};f.prototype.iTa=function(a){this.P8!=a&&(this.P8=a,this.ka=m)};f.prototype.ERa=function(a){this.E_!=
a&&(this.E_=a,this.ka=m)};f.prototype.YSa=function(a){this.c7!=a&&(this.c7=a,this.ka=m)};f.prototype.pH=function(a){this.cc!=a&&(this.cc=a,this.ka=m)};f.prototype.Pg=function(){this.ka&&(this.X(),this.ka=B)};f.prototype.X=function(){var a=this.R2+"px "+this.P8+"px "+this.E_+"px "+this.c7+"px "+this.cc;this.Xb.style.display=this.vb?"block":"none";this.Xb.style.boxShadow=a;this.Xb.style["-webkit-box-shadow"]=a;this.Xb.style["-moz-box-shadow"]=a;this.Xb.style.borderTopLeftRadius=this.lt+"px";this.Xb.style.borderTopRightRadius=
this.mt+"px";this.Xb.style.borderBottomLeftRadius=this.jt+"px";this.Xb.style.borderBottomRightRadius=this.kt+"px";this.Xb.style.filter="alpha(opacity="+Math.round(100*this.eb)+")";this.Xb.style["-ms-filter"]="alpha(opacity="+Math.round(100*this.eb)+")";this.Xb.style.opacity=this.eb;this.Xb.style.zIndex=c.Rca};return f});
define("mp","require,jquery.mod,dY,kG,lh,bc,nU,ga,ew,jt,op,cs,gg,t".split(","),function(a){var b=a("jquery.mod");a("dY");var d=a("kG"),c=a("lh"),g=a("bc"),f=a("nU"),i=a("ga"),e=a("ew"),j=a("jt"),o=a("op"),k=a("cs"),n=a("gg");a("t");var r=d.extend(c,function(){c.call(this);this.DE=r.DE++;this.k0=this.Vd=this.Z4=this.WK=this.V6=this.ea=this.Xb=q;this.Qoa=this.qia=B;this.aa=this.Sa=q;this.ia=this.Z=this.fu=this.eu=0;this.Vw=this.vb=B;this.gia=m;this.NJ=this.OJ=this.Yk=this.Zk=0;this.eb=1;this.uh=g.me;
this.set("inView",B);this.set("toolTip",l);this.xB(m);this.L6(m)});r.prototype.je=R("OD");r.prototype.toString=function(){return"["+this.ea.attr("tdvclass")+"::"+this.DE+"]"};r.prototype.log=function(a){d.log(a+" "+this.toString()+" "+(new Date).getTime().toString())};r.prototype.wb=S("Sa");r.prototype.Ar=function(a){(this.Sa=a)&&this.g3();this.jG();this.trigger(f.swa)};r.prototype.Lc=function(){this.ea=b(this.Yq());this.Lc=S("ea");return this.ea};r.prototype.Yq=function(){this.Xb=document.createElement("div");
this.Xb.setAttribute("id",this.DE);this.OD&&this.Xb.setAttribute("tdvclass",this.OD);n.css(this.Xb,{margin:0,padding:0,position:"absolute",overflow:"visible",display:"block"});this.Yq=S("Xb");return this.Xb};r.prototype.Qk=function(){this.V6=new j;this.Qk=S("V6");return this.V6};r.prototype.Hc=function(){this.Vd=new i;this.Hc=S("Vd");return this.Vd};r.prototype.wE=function(){this.WK=document.createElement("div");this.WK.setAttribute("tdvlayer","overShadow");n.css(this.WK,{position:"absolute",left:0,
top:0,cursor:"inherit"});this.wE=S("WK");return this.WK};r.prototype.l2=function(){this.Z4=b(this.wE());this.l2=S("Z4");return this.Z4};r.prototype.Ab=function(){this.k0=new e;this.Ab=S("k0");return this.k0};r.prototype.getParent=S("aa");r.prototype.Ua=S("Z");r.prototype.Cb=S("ia");r.prototype.EPa=function(){return this.Z!==l&&this.ia!==l};r.prototype.Se=function(){return this.Z-this.Ab().SG()-this.Ab().VG()};r.prototype.Re=function(){return this.ia-this.Ab().WG()-this.Ab().OG()};r.prototype.Bl=function(){return this.Ab().SG()};
r.prototype.bs=function(){return this.Ab().WG()};r.prototype.as=function(){return this.Ab().VG()};r.prototype.QG=function(){return this.Ab().OG()};r.prototype.Jf=function(a){if(this.vb!=a){this.vb=a;this.$d();if(this.aa){this.aa.Nb();this.aa.wd()}this.jG()}};r.prototype.jG=function(){var a=B;this.Sa&&this.vb&&this.Ak()>0&&(this==this.Sa?a=m:this.aa&&(a=this.aa.Vw));this.Vw!=a&&this.p_(a)};r.prototype.p_=function(a){this.Vw=a;this.set("inView",a);this.Vw?this.trigger(new k(f.hc)):this.trigger(new k(f.nc))};
r.prototype.GJa=function(a){if(this.gia!=a){this.gia=a;this.aa&&this.aa.wd()}};r.prototype.yJa=function(a){if(this.oE!=a){this.oE=a;this.Nb()}};r.prototype.xJa=function(a){if(this.nE!=a){this.nE=a;this.Nb()}};r.prototype.wJa=function(a){if(this.mE!=a){this.mE=a;this.Nb()}};r.prototype.vJa=function(a){if(this.lE!=a){this.lE=a;this.Nb()}};r.prototype.zJa=function(a){if(this.mm!=a){this.mm=a;if(this.mm!=l)this.Im=l;this.Nb()}};r.prototype.uJa=function(a){if(this.gA!=a){this.gA=a;if(this.gA!=l)this.Hm=
l;this.Nb()}};r.prototype.TJa=function(a){if(this.Im!=a){this.Im=a;if(this.Im!=l)this.mm=l;this.Nb()}};r.prototype.PJa=function(a){if(this.Hm!=a){this.Hm=a;if(this.Hm!=l)this.gA=l;this.Nb()}};r.prototype.IJa=function(a){if(this.Yt!=a){if(a!=l)this.zT=l;this.Yt=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.gKa=function(a){if(this.Np!=a){if(a!=l)this.BT=l;this.Np=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.VJa=function(a){if(this.BL!=a){if(a!=l)this.AT=l;this.BL=a;this.aa&&this.aa.wd();this.Nb()}};
r.prototype.nJa=function(a){if(this.lI!=a){if(a!=l)this.yT=l;this.lI=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.QJa=function(a){if(this.zT!=a){if(a!=l)this.Yt=l;this.zT=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.SJa=function(a){if(this.BT!=a){if(a!=l)this.Np=l;this.BT=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.RJa=function(a){if(this.AT!=a){if(a!=l)this.BL=l;this.AT=a;this.aa&&this.aa.wd();this.Nb()}};r.prototype.OJa=function(a){if(this.yT!=a){if(a!=l)this.lI=l;this.yT=a;this.aa&&this.aa.wd();
this.Nb()}};r.prototype.qJa=function(a){if(this.mw!=a){this.mw=a;this.aa&&this.aa.wd()}};r.prototype.rJa=function(a){if(this.nw!=a){this.nw=a;this.aa&&this.aa.wd()}};r.prototype.gs=function(){return isNaN(this.mm)?this.Zk:this.mm};r.prototype.fs=function(){return isNaN(this.gA)?this.Yk:this.gA};r.prototype.aEa=function(){return isNaN(this.ACa)?this.Uia:this.ACa};r.prototype.ds=function(){return isNaN(this.oE)?this.OJ:this.oE};r.prototype.ev=function(){return isNaN(this.nE)?this.NJ:this.nE};r.prototype.wW=
function(){return isNaN(this.mE)?1E4:this.mE};r.prototype.vW=function(){return isNaN(this.lE)?1E4:this.lE};r.prototype.tna=function(a){if(this.p2()!=a){this.Ab().DSa(a);this.Nb()}};r.prototype.p2=function(){return this.Ab().lT};r.prototype.vna=function(a){if(this.r2()!=a){this.Ab().FSa(a);this.Nb()}};r.prototype.r2=function(){return this.Ab().nT};r.prototype.una=function(a){if(this.q2()!=a){this.Ab().ESa(a);this.Nb()}};r.prototype.q2=function(){return this.Ab().mT};r.prototype.sna=function(a){if(this.n2()!=
a){this.Ab().CSa(a);this.Nb()}};r.prototype.n2=function(){return this.Ab().kT};r.prototype.uO=function(a){if(this.eu!=a){var b=this.eu==0!=(a==0);this.eu=a;this.Ck();b&&this.aa&&this.aa.wd()}};r.prototype.vO=function(a){if(this.fu!=a){var b=this.fu==0!=(a==0);this.fu=a;this.Ck();b&&this.aa&&this.aa.wd()}};r.prototype.LPa=function(){return this.eu!=0||this.fu!=0};r.prototype.Xi=function(a){if(this.eb!=a){this.eb=a;n.css(this.wE(),{filter:"alpha(opacity="+Math.round(this.eb*100)+") ",opacity:this.eb});
this.jG();this.Ck()}};r.prototype.Ak=S("eb");r.prototype.kJa=function(a){if(this.Hc().lt!=a){this.Qk().raa(a);this.Hc().raa(a)}};r.prototype.iDa=function(){return this.Hc().lt};r.prototype.lJa=function(a){if(this.Hc().mt!=a){this.Qk().saa(a);this.Hc().saa(a)}};r.prototype.jDa=function(){return this.Hc().mt};r.prototype.cJa=function(a){if(this.Hc().jt!=a){this.Qk().maa(a);this.Hc().maa(a)}};r.prototype.gDa=function(){return this.Hc().jt};r.prototype.dJa=function(a){if(this.Hc().kt!=a){this.Qk().naa(a);
this.Hc().naa(a)}};r.prototype.hDa=function(){return this.Hc().kt};r.prototype.gJa=function(a){if(this.Hc().Po!=a){this.Hc().paa(a);this.Ab().paa(a);this.Nb()}};r.prototype.cha=function(){return this.Hc().Po};r.prototype.mJa=function(a){if(this.Hc().Ro!=a){this.Hc().taa(a);this.Ab().taa(a);this.Nb()}};r.prototype.eha=function(){return this.Hc().Ro};r.prototype.iJa=function(a){if(this.Hc().Qo!=a){this.Hc().qaa(a);this.Ab().qaa(a);this.Nb()}};r.prototype.dha=function(){return this.Hc().Qo};r.prototype.eJa=
function(a){if(this.Hc().Oo!=a){this.Hc().oaa(a);this.Ab().oaa(a);this.Nb()}};r.prototype.bha=function(){return this.Hc().Oo};r.prototype.fJa=function(a){this.Hc().GRa(a)};r.prototype.jJa=function(a){this.Hc().IRa(a)};r.prototype.hJa=function(a){this.Hc().HRa(a)};r.prototype.bJa=function(a){this.Hc().FRa(a)};r.prototype.yU=function(a){this.Qk().Jf(a)};r.prototype.aKa=function(a){this.Qk().$Ra(a)};r.prototype.dKa=function(a){this.Qk().iTa(a)};r.prototype.ZJa=function(a){this.Qk().ERa(a)};r.prototype.cKa=
function(a){this.Qk().YSa(a)};r.prototype.bKa=function(a){this.Qk().Xi(a)};r.prototype.$Ja=function(a){this.Qk().pH(a)};r.prototype.YIa=function(a){this.cDa()!=a&&this.Hc().Xi(a)};r.prototype.cDa=function(){return this.Hc().Ak()};r.prototype.UIa=function(a){this.bDa()!=a&&this.Hc().pH(a)};r.prototype.bDa=function(){return this.Hc().cc};r.prototype.WIa=function(a){this.Hc().MRa(a)};r.prototype.VIa=function(a){this.Hc().LRa(a)};r.prototype.XIa=function(a){this.Hc().dSa(a)};r.prototype.Sx=function(a){if(this.uh!=
a){this.uh=a;this.Ck()}};r.prototype.xB=function(a){if(this.bp!=a){this.bp=a;n.css(this.wE(),{"z-index":this.bp?o.Fca:o.Eca});this.Ab().Yua(this.bp);this.Ck()}};r.prototype.L6=function(a){if(this.Fla!=a){this.Fla=a;n.css(this.Yq(),{"z-index":this.Fla?o.jda:o.ida});this.Ck()}};r.prototype.Ko=function(){this.jG();this.JN()};r.prototype.Lm=function(){this.jG()};r.prototype.g6=I();r.prototype.g3=function(){this.JN();this.$d();this.Nb();this.wd();this.Ck()};r.prototype.du=function(){this.NJ=this.OJ=this.Yk=
this.Zk=0;this.Uia=l};r.prototype.JN=function(){var a=this.wb();a&&a.CD.JN(this)};r.prototype.$d=function(){var a=this.wb();a&&a.CD.$d(this)};r.prototype.Nb=function(){var a=this.wb();a&&a.CD.Nb(this)};r.prototype.wd=function(){var a=this.wb();a&&a.CD.wd(this)};r.prototype.Ck=function(){var a=this.wb();a&&a.CD.Ck(this)};r.prototype.D2=function(){var a=isNaN(this.zT)&&isNaN(this.Yt),b=isNaN(this.AT)&&isNaN(this.BL);return isNaN(this.mm)&&isNaN(this.Im)&&(a||b)?m:B};r.prototype.Vha=function(){var a=
isNaN(this.BT)&&isNaN(this.Np),b=isNaN(this.yT)&&isNaN(this.lI);return isNaN(this.gA)&&isNaN(this.Hm)&&(a||b)?m:B};r.prototype.IMa=function(){this.du();var a=this.aEa();if(a){var b=this.D2(),e=this.Vha();if(b&&!e){b=this.Re();if(b!=0){this.Zk=b*a+this.Bl()+this.as();this.Yk=b+this.bs()+this.QG()}}else if(!b&&e){b=this.Se();if(b!=0){this.Yk=b/a+this.Bl()+this.as();this.Zk=b+this.Bl()+this.as()}}}if(!isNaN(this.oE)&&this.Zk<this.oE)this.Zk=this.oE;if(!isNaN(this.mE)&&this.Zk>this.mE)this.Zk=this.mE;
if(!isNaN(this.nE)&&this.Yk<this.nE)this.Yk=this.nE;if(!isNaN(this.lE)&&this.Yk>this.lE)this.Yk=this.lE};r.prototype.mb=function(){if(!this.Qoa){this.Qoa=m;var a=this.Yq(),b=this.wE();a.appendChild(this.Qk().AN());a.appendChild(b);b.appendChild(this.Hc().AN());b.appendChild(this.Ab().AN())}};r.prototype.TTa=function(){this.IMa();var a=this.gs(),b=this.fs(),e=this.ds(),c=this.ev();if(a!=this.hGa||b!=this.gGa||e!=this.dGa||c!=this.cGa||this.Im!=this.fGa||this.Hm!=this.eGa){this.hGa=a;this.gGa=b;this.dGa=
e;this.cGa=c;this.fGa=this.Im;this.eGa=this.Hm;return m}return B};r.prototype.Ma=function(){this.Ck()};r.prototype.Ol=I();r.prototype.Nua=function(a,b,e,c){if(this.Ba!=a||this.Da!=b||this.Z!=e||this.ia!=c){this.Ba=a;this.Da=b;this.Z=e;this.ia=c;this.Hc().setSize(this.Z,this.ia);this.wd();this.Ck();this.trigger(new k(f.sc))}};r.prototype.Pg=function(){var a=this.Yq(),b=this.wE();if(this.vb){b.style.width=this.Z+"px";b.style.height=this.ia+"px";a.style.left=this.Ba+this.eu+"px";a.style.top=this.Da+
this.fu+"px";a.style.width=this.Z+"px";a.style.height=this.ia+"px";a.style.visibility="inherit";a.style.overflow="visible";a.style.cursor=this.Sa&&this.Sa.L0.qra(this.uh);if(b.clientWidth===0&&this.Z!==0){a.style.width=0;a.style.width=this.Z+"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.Qk().Pg();this.Hc().Pg();this.Ab().Pg();if(!this.qia&&this.Sa){this.qia=m;this.Sa.Wna?this.h3():this.Sa.bind(f.Tj,this.h3,this,
m)}};r.prototype.h3=function(){this.trigger(f.INIT)};r.prototype.qPa=function(a){var a=a.Lc().offset(),b=this.Lc().offset(),e={};e.left=b.left-a.left;e.top=b.top-a.top;if(this.Sa){e.left=e.left/this.Sa.zx;e.top=e.top/this.Sa.zx}return e};r.DE=0;return r});
define("S","require,dY,kG,nU,cs,gq,mp".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("gq"),i=a("mp"),e=d.extend(i,function(){this.j={};this.yu=this.Oga=l;this.Ix={};this.Kga=m;this.Xna={};i.call(this);this.RBa();this.ab();this.je("UICustomizable");this.$d()});e.jc={visible:m,includeInLayout:m,state:l,left:l,right:l,top:l,bottom:l,centerX:l,centerY:l,width:l,height:l,minWidth:l,minHeight:l,maxWidth:l,maxHeight:l,actualWidth:l,actualHeight:l,paddingLeft:0,paddingTop:0,paddingRight:0,
paddingBottom:0,opacity:1,borderRadius:0,borderTopRadius:l,borderBottomRadius:l,borderLeftRadius:l,borderRightRadius:l,borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomLeftRadius:l,borderBottomRightRadius:l,borderSize:0,borderLeftSize:l,borderTopSize:l,borderRightSize:l,borderBottomSize:l,borderColor:l,borderLeftColor:l,borderTopColor:l,borderRightColor:l,borderBottomColor:l,shadow:B,shadowHorizontalLength:0,shadowVerticalLength:3,shadowBlurRadius:6,shadowSpread:0,shadowColor:"#000000",shadowOpacity:l,
backgroundOpacity:1,backgroundColor:l,backgroundColorRatios:l,backgroundColorDirection:l,backgroundImageUrl:l,hideEffect:l,showEffect:l};e.prototype.RBa=function(){this.Xna[f.Rb]=f.bb};e.prototype.ab=function(){this.zn(e.jc)};e.prototype.zn=function(a){for(var b in a){var e=a[b],c=e&&e.length;!c||typeof e=="string"?this.f(b,e):c==1?this.f(b,e[0]):c==2?this.m(b,e[0],e[1]):c==3&&this.m(b,e[0],e[1],e[2])}};e.prototype.f=function(a,b){this.j[a]={i:m,d:b}};e.prototype.gEa=function(){var a=[],b;for(b in this.j)a.push(b);
return a};e.prototype.m=function(a,b,e,c){this.Ix[b]||(this.Ix[b]={});this.f(a,c);this.Ix[b][e]=a};e.prototype.RF=function(a,b){if(b)this.Oga=a;else if(this.Oga!=l)return;if(this.yu!=a){var e=this.Ix[this.yu];if(e)for(var c in e)(this.j[c]||(this.j[c]={})).i=m;this.yu=a;if(e=this.Ix[this.yu])for(c in e)(this.j[c]||(this.j[c]={})).i=m;this.$d()}};e.prototype.$=function(a){if(b(a).isString())this.set(a,l);else{var e=a;for(a in e)this.set(a,e[a])}};e.prototype.set=function(a,e){var c=this.j[a];if(c){e==
l&&(e=c.d);if(!b.isEqual(this.get(a),e)){a=="state"&&this.RF(e,m);i.prototype.set.call(this,a,e);c.i=m;this.$d()}}else i.prototype.set.call(this,a,e)};e.prototype.get=function(a,b){switch(a){case "actualWidth":return this.Ua();case "actualHeight":return this.Cb();default:var e=i.prototype.get.call(this,a);if(e===l){var c=this.j[a];c&&(e=c.d);e===l&&(e=b)}return e}};e.prototype.kea=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.v(a[b]))return m;return B};e.prototype.v=function(a){if((this.j[a]||{}).i)return m;if(this.yu!==l){a=this.Ix[this.yu][a];return!!(this.j[a]||{}).i}};e.prototype.yB=function(a){(this.j[a]||(this.j[a]={})).i=m;this.$d()};e.prototype.I=function(a){(this.j[a]||
(this.j[a]={})).i=B;if(this.yu!=l)(a=this.Ix[this.yu][a])&&((this.j[a]||(this.j[a]={})).i=B)};e.prototype.p=function(){for(var a,b=0;b<arguments.length;b++){for(var e=arguments[b],c=this.yu;c;){if(a=this.Ix[c][e]){a=this.get(a);if(a!=l&&a!=q)return a}c=this.Xna[c]}a=this.get(e);if(a!=l&&a!=q)return a}};e.prototype.W6=function(a){a.source.unbind(c.Ga,this.W6,this);this.trigger(new g(c.rD))};e.prototype.O2=function(a){a.source.unbind(c.Ga,this.O2,this);this.trigger(new g(c.fD))};e.prototype.Ma=function(){if(this.Kga)this.Kga=
B;else if(this.v("visible")){var a=this.p("visible"),b=this.get(a?"hideEffect":"showEffect");if(b&&b.cH(this)){b.unbind(c.Ga,a?this.O2:this.W6,this);b.end()}if(b=this.get(a?"showEffect":"hideEffect")){if(!b.cH(this)){this.I("visible");b.bind(c.Ga,a?this.W6:this.O2,this);b.play(this)}}else this.trigger(new g(a?c.rD:c.fD))}if(this.v("visible")){this.Jf(this.p("visible"));this.I("visible")}if(this.v("includeInLayout")){this.GJa(this.p("includeInLayout"));this.I("includeInLayout")}if(this.v("left")){b=
this.p("left");a=e.oo(b);b=a===l?b:l;this.QJa(a);this.IJa(b);this.I("left")}if(this.v("top")){b=this.p("top");a=e.oo(b);b=a===l?b:l;this.SJa(a);this.gKa(b);this.I("top")}if(this.v("right")){b=this.p("right");a=e.oo(b);b=a===l?b:l;this.RJa(a);this.VJa(b);this.I("right")}if(this.v("bottom")){b=this.p("bottom");a=e.oo(b);b=a===l?b:l;this.OJa(a);this.nJa(b);this.I("bottom")}if(this.v("centerX")){this.qJa(this.p("centerX"));this.I("centerX")}if(this.v("centerY")){this.rJa(this.p("centerY"));this.I("centerY")}if(this.v("width")){b=
this.p("width");a=e.oo(b);b=a===l?b:l;this.TJa(a);this.zJa(b);this.I("width")}if(this.v("height")){b=this.p("height");a=e.oo(b);b=a===l?b:l;this.PJa(a);this.uJa(b);this.I("height")}if(this.v("minWidth")){b=this.p("minWidth");this.yJa(b);this.I("minWidth")}if(this.v("minHeight")){b=this.p("minHeight");this.xJa(b);this.I("minHeight")}if(this.v("maxWidth")){b=this.p("maxWidth");this.wJa(b);this.I("maxWidth")}if(this.v("maxHeight")){b=this.p("maxHeight");this.vJa(b);this.I("maxHeight")}if(this.v("paddingLeft")){this.tna(this.p("paddingLeft"));
this.I("paddingLeft")}if(this.v("paddingTop")){this.vna(this.p("paddingTop"));this.I("paddingTop")}if(this.v("paddingRight")){this.una(this.p("paddingRight"));this.I("paddingRight")}if(this.v("paddingBottom")){this.sna(this.p("paddingBottom"));this.I("paddingBottom")}a=B;if(this.v("borderRadius")){this.I("borderRadius");a=m}b=B;if(this.v("borderLeftRadius")){this.I("borderLeftRadius");b=m}var f=B;if(this.v("borderTopRadius")){this.I("borderTopRadius");f=m}var d=B;if(this.v("borderRightRadius")){this.I("borderRightRadius");
d=m}var r=B;if(this.v("borderBottomRadius")){this.I("borderBottomRadius");r=m}if(this.v("borderTopLeftRadius")||f||b||a){this.kJa(this.p("borderTopLeftRadius","borderLeftRadius","borderTopRadius","borderRadius"));this.I("borderTopLeftRadius")}if(this.v("borderTopRightRadius")||f||d||a){this.lJa(this.p("borderTopRightRadius","borderRightRadius","borderTopRadius","borderRadius"));this.I("borderTopRightRadius")}if(this.v("borderBottomLeftRadius")||r||b||a){this.cJa(this.p("borderBottomLeftRadius","borderLeftRadius",
"borderBottomRadius","borderRadius"));this.I("borderBottomLeftRadius")}if(this.v("borderBottomRightRadius")||r||d||a){this.dJa(this.p("borderBottomRightRadius","borderRightRadius","borderBottomRadius","borderRadius"));this.I("borderBottomRightRadius")}a=B;if(this.v("borderSize")){this.I("borderSize");a=m}if(this.v("borderLeftSize")||a){this.gJa(this.p("borderLeftSize","borderSize"));this.I("borderLeftSize")}if(this.v("borderTopSize")||a){this.mJa(this.p("borderTopSize","borderSize"));this.I("borderTopSize")}if(this.v("borderRightSize")||
a){this.iJa(this.p("borderRightSize","borderSize"));this.I("borderRightSize")}if(this.v("borderBottomSize")||a){this.eJa(this.p("borderBottomSize","borderSize"));this.I("borderBottomSize")}a=B;if(this.v("borderColor")){this.I("borderColor");a=m}if(this.v("borderLeftColor")||a){this.fJa(this.p("borderLeftColor","borderColor"));this.I("borderLeftColor")}if(this.v("borderTopColor")||a){this.jJa(this.p("borderTopColor","borderColor"));this.I("borderTopColor")}if(this.v("borderRightColor")||a){this.hJa(this.p("borderRightColor",
"borderColor"));this.I("borderRightColor")}if(this.v("borderBottomColor")||a){this.bJa(this.p("borderBottomColor","borderColor"));this.I("borderBottomColor")}if(this.v("shadow")){this.yU(this.p("shadow"));this.I("shadow")}if(this.v("shadowHorizontalLength")){this.aKa(this.p("shadowHorizontalLength"));this.I("shadowHorizontalLength")}if(this.v("shadowVerticalLength")){this.dKa(this.p("shadowVerticalLength"));this.I("shadowVerticalLength")}if(this.v("shadowBlurRadius")){this.ZJa(this.p("shadowBlurRadius"));
this.I("shadowBlurRadius")}if(this.v("shadowSpread")){this.cKa(this.p("shadowSpread"));this.I("shadowSpread")}if(this.v("shadowColor")){this.$Ja(this.p("shadowColor"));this.I("shadowColor")}a=B;if(this.v("opacity")){this.Xi(this.p("opacity"));this.I("opacity");a=m}if(this.v("shadowOpacity")||a){this.bKa(this.p("shadowOpacity","opacity"));this.I("shadowOpacity")}if(this.v("backgroundOpacity")){this.YIa(this.p("backgroundOpacity"));this.I("backgroundOpacity")}if(this.v("backgroundColor")){this.UIa(this.p("backgroundColor"));
this.I("backgroundColor")}if(this.v("backgroundColorRatios")){this.WIa(this.p("backgroundColorRatios"));this.I("backgroundColorRatios")}if(this.v("backgroundColorDirection")){this.VIa(this.p("backgroundColorDirection"));this.I("backgroundColorDirection")}if(this.v("backgroundImageUrl")){this.XIa(this.p("backgroundImageUrl"));this.I("backgroundImageUrl")}i.prototype.Ma.call(this)};e.oo=function(a){if(b(a).isString())if((a=a.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&a.length>=2)return parseFloat(a[1])};
return e});define("ja",["dY","kG","cs"],function(a,b,d){return b.extend(d,function(b,g,f,i,e,j,o,k){a.isNumber(g)||(g=1);a.isNumber(f)||(f=0);d.call(this,b);this.scale=g;this.rotation=f;this.x=i;this.y=e;this.pageX=j;this.pageY=o;this.touches=k||[]})});define("nY",["dY","kG","cs"],function(a,b,d){return b.extend(d,function(a,b,f,i,e,j,o,k){d.call(this,a);this.x=b;this.y=f;this.pageX=i;this.pageY=e;this.delta=j;this.aW=o;this.originalEvent=k})});
define("d","require,jquery.mod,dY,kG,nU,gq,lm,S,ja,nY,gg,t,lB".split(","),function(a){var b=a("jquery.mod"),d=a("dY"),c=a("kG"),g=a("nU"),f=a("gq"),i=a("lm"),e=a("S"),j=a("ja"),o=a("nY");a("gg");var k=a("t"),a=a("lB"),n=c.extend(e,function(){e.call(this);this.je("UIComponent");this.PQ=[];this.gja=0;this.gCa=500;this.pc=1;this.Fn=k.OX();this.rJ=this.St=this.LR=B;this.set("propagateClick",m)});n.jc={autoRolledOver:B,autoPressed:B,contentOpaque:m,cursor:l,inheritedCursor:l,inheritedInteractionEnabled:m,
interactionEnabled:m,rollOverOpacity:[f.P,"opacity"],rollOverShadow:[f.P,"shadow"],toolTipFollowMouse:B};d.defaults(n.jc,e.jc);n.prototype.ab=function(){this.zn(n.jc)};n.prototype.Cea=function(){this.zna(m)};n.prototype.Bea=function(){this.zna(B)};n.prototype.zea=function(){this.QF(m)};n.prototype.Aea=function(){this.QF(B)};n.prototype.NL=function(a){if(this.St!=a){this.St=a;this.$f()}};n.prototype.QF=function(a){if(this.rJ!=a){this.rJ=a;this.$f()}};n.prototype.zna=function(a){if(this.LR!=a){this.LR=
a;this.$f()}};n.prototype.$f=function(){this.St?this.RF(f.W):this.rJ&&this.LR?this.RF(f.Rb):this.rJ?this.RF(f.bb):this.LR?this.RF(f.P):this.RF(f.me)};n.prototype.trigger=function(){e.prototype.trigger.apply(this,arguments)};n.prototype.Hoa=function(a,b){this.trigger(new o(g.zb,a.x,a.y,a.pageX,a.pageY,l,l,b))};n.prototype.Ioa=function(a,b){this.trigger(new o(g.ad,a.x,a.y,a.pageX,a.pageY,l,l,b))};n.prototype.Joa=function(a,b){this.trigger(new o(g.Wb,a.x,a.y,a.pageX,a.pageY,l,l,b))};n.prototype.ILa=
function(a,b,e){this.trigger(new o(g.vq,a.x,a.y,a.pageX,a.pageY,b.delta,b.aW,e))};n.prototype.Eoa=function(a){this.trigger(new o(g.ca,a.x,a.y,a.pageX,a.pageY))};n.prototype.Foa=function(a){this.trigger(new o(g.Tl,a.x,a.y,a.pageX,a.pageY))};n.prototype.LLa=function(){this.trigger(new o(g.bc))};n.prototype.KLa=function(){this.trigger(new o(g.rb))};n.prototype.GLa=function(){this.trigger(new o(g.Gk))};n.prototype.HLa=function(){this.trigger(new o(g.Sh))};n.prototype.FLa=function(a,b,e){this.trigger(new j(g.dD,
a,b,e.x,e.y,e.pageX,e.pageY,e.touches))};n.prototype.BLa=function(a,b,e){this.trigger(new j(g.WY,a,b,e.x,e.y,e.pageX,e.pageY,e.touches))};n.prototype.CLa=function(a,b,e){this.trigger(new j(g.bD,a,b,e.x,e.y,e.pageX,e.pageY,e.touches))};n.prototype.DLa=function(a){this.trigger(new j(g.Rwa,l,a))};n.prototype.ELa=function(a){this.trigger(new j(g.cD,a))};n.prototype.D7=function(a){a.stopImmediatePropagation();this.hE(["touchend"]);this.via(a)?this.M5(a):this.gma(a,m)};n.prototype.gma=function(a,b){var e=
this.yE(a);b&&this.vLa(e);this.Hoa(e,a);this.aa&&this.aa.gma(a,b&&this.get("propagateClick"))};n.prototype.C7=function(a){a.preventDefault();a.stopImmediatePropagation();this.via(a)?this.K5(a):this.fma(a)};n.prototype.fma=function(a){var b=this.yE(a);this.uLa(b);this.Ioa(b,a);this.aa&&this.aa.fma(a)};n.prototype.iha=function(a,b){var e=a.pageX-b.pageX,c=a.pageY-b.pageY;return Math.sqrt(e*e+c*c)};n.prototype.$x=function(a,b){this.II(["touchend"]);b!==B&&a.preventDefault();a.stopImmediatePropagation();
if(this.xF)this.L5(a);else{this.ema(a,this.uia());this.kia()}this.xF=q;this.fI()};n.prototype.ema=function(a,b){this.Joa(this.yE(a),a);this.tLa(b);this.aa&&this.aa.ema(a)};n.prototype.vLa=function(a){this.bind(g.rb,this.xoa,this,m);this.GB=a};n.prototype.uLa=function(a){if(this.GB){var a=this.iha(this.GB,a),b;if(k.ob()){b=this.wb();b=Math.min(b.Ua(),b.Cb())*0.01;b=n.bya*b}else b=n.hya;a>b&&this.dV()}};n.prototype.tLa=function(a){if(this.GB){this.Eoa(this.GB);a&&this.Foa(this.GB);this.dV()}};n.prototype.dV=
function(){if(this.GB){this.unbind(g.rb,this.xoa,this);this.GB=l}};n.prototype.xoa=function(){this.dV()};n.prototype.R1=function(a){this.hE(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();this.M5(a)};n.prototype.M5=function(a){var b=this.e2(a);this.xF=b;this.FLa(b.scale,b.rotation,b.coordinates);this.aa&&this.aa.M5(a)};n.prototype.Rga=function(a){a.preventDefault();a.stopImmediatePropagation();this.K5(a)};n.prototype.K5=function(a){var b=this.e2(a,this.xF),e=b.rotation-
this.xF.rotation,c=b.scale/this.xF.scale;this.xF=b;this.pc=this.pc*c;for(this.nk=this.nk+e;this.nk>180;)this.nk=this.nk-360;for(;this.nk<-180;)this.nk=this.nk+360;this.BLa(this.pc,this.nk,b.coordinates);e!=0&&this.DLa(this.nk);c!=1&&this.ELa(this.pc);this.dV();this.aa&&this.aa.K5(a)};n.prototype.Tga=function(a){this.II(["gesturechange","gestureend"]);a.preventDefault();a.stopImmediatePropagation();this.L5(a)};n.prototype.L5=function(a){this.CLa(this.pc,this.nk,this.e2(a).coordinates);this.aa&&this.aa.L5(a)};
n.prototype.g4=function(a){this.hE(["mouseup"]);a.stopImmediatePropagation();this.ama(a,m);r&&this.TFa(a.ctrlKey)};n.prototype.ama=function(a,b){var e=this.pA(a);b&&this.EAa(e);this.Hoa(e,a);this.aa&&this.aa.ama(a,b&&this.get("propagateClick"))};n.prototype.h4=function(a){a.preventDefault();a.stopImmediatePropagation();this.wb().CC(this);this.bma(a)};n.prototype.bma=function(a){var b=this.pA(a);this.DAa(b);this.Ioa(b,a);this.aa&&this.aa.bma(a)};n.prototype.qS=function(a){this.II(["mouseup"]);a.preventDefault();
a.stopImmediatePropagation();this.cma(a,this.uia());this.kia()};n.prototype.cma=function(a,b){this.Joa(this.pA(a));this.CAa(b);this.aa&&this.aa.cma(a,b)};n.prototype.EAa=function(a){this.bind(g.rb,this.sfa,this,m);this.Sz=a};n.prototype.DAa=function(a){this.Sz&&this.iha(this.Sz,a)>n.Xxa&&this.$_()};n.prototype.CAa=function(a){if(this.Sz){this.Eoa(this.Sz);a&&this.Foa(this.Sz);this.$_()}};n.prototype.$_=function(){if(this.Sz){this.unbind(g.rb,this.sfa,this);this.Sz=l}};n.prototype.sfa=function(){this.$_()};
n.prototype.ija=function(a){if(this.Sa.hja){a.preventDefault();a.stopImmediatePropagation();this.dma(a)}};n.prototype.$ea=T(B);n.prototype.dma=function(a){var b=this.pA(a),e=this.RDa(a);this.aa&&!this.$ea(e.delta)&&this.aa.dma(a);this.ILa(b,e,a)};n.prototype.pA=function(a){return this.fR(a.pageX,a.pageY)};n.prototype.RDa=function(a){var a=window.event||a.originalEvent||a,b={};b.delta=Math.max(-1,Math.min(1,a.wheelDelta||-a.detail));b.aW=a.wheelDelta?a.wheelDelta*0.01:b.delta;return b};n.prototype.yE=
function(a){var b=this.b2(a),e;if(b===l){e=a.pageX!==l?this.fR(a.pageX,a.pageY):this.fR(a.originalEvent.pageX,a.originalEvent.pageY);e.touches=[e]}else if(b.length==0)e=this.WHa;else{e={x:0,y:0,pageX:0,pageY:0,uy:0,vy:0,touches:[]};Array.from(b).forEach(function(a){a||(a=b[0]);a=this.fR(a.pageX,a.pageY);e.x=e.x+a.x;e.y=e.y+a.y;e.pageX=e.pageX+a.pageX;e.pageY=e.pageY+a.pageY;e.uy=e.uy+a.uy;e.vy=e.vy+a.vy;e.touches.push(a)}.bind(this));e.x=e.x/b.length;e.y=e.y/b.length;e.pageX=e.pageX/b.length;e.pageY=
e.pageY/b.length;e.uy=e.uy/b.length;e.vy=e.vy/b.length}return this.WHa=e};n.prototype.via=function(a){if((a=this.b2(a))&&a.length>1)for(var b=0,e=0;e<a.length;e++)if(this.qFa(a[e].target)){b++;if(b>1)return m}return B};n.prototype.qFa=function(a){for(;a;){if(a==this.Xb)return m;a=a.parentNode}return B};n.prototype.b2=function(a){return a.originalEvent.touches||a.originalEvent.targetTouches||a.originalEvent.changedTouches};n.prototype.fR=function(a,b){var e=this.Lc().offset(),c=this.Sa?this.Sa.zx:
1,f={};f.x=(a-e.left)/c;f.y=(b-e.top)/c;f.pageX=a/c;f.pageY=b/c;f.uy=a;f.vy=b;return f};n.prototype.e2=function(a,b){var e=this.yE(a);if(a.originalEvent.scale!==l||a.originalEvent.rotation!==l)return{coordinates:e,scale:a.originalEvent.scale,rotation:a.originalEvent.rotation};if(b){var c=this.qha(a);return{coordinates:e,scale:b.scale*c/b.touchesDistance,rotation:0,touchesDistance:c}}return{coordinates:e,scale:1,rotation:0,touchesDistance:this.qha(a)}};n.prototype.qha=function(a){var b=this.b2(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};n.prototype.hE=function(a){this.PQ=d(this.PQ).union(a);for(var a=this.pha(a),b=0;b<a.length;b++){var e=a[b];e.target.bind(e.name,e.handler)}};n.prototype.kia=function(){this.gja=(new Date).getTime()};n.prototype.uia=function(){return(new Date).getTime()-this.gja<=this.gCa};n.prototype.II=function(a){this.PQ=d(this.PQ).difference(a);for(var a=this.pha(a),b=0;b<a.length;b++){var e=
a[b];e.target.unbind(e.name,e.handler)}};n.prototype.pha=function(a){this.Gga||(this.Gga=this.a2());for(var b=[],e=0;e<a.length;e++)b=b.concat(this.Gga[a[e]]);return b};n.prototype.a2=function(){var a=this.Lc(),e=b(document),c=b(window);return{touchstart:[{target:a,name:"touchstart",handler:this.eh(this.D7)}],touchmove:[{target:a,name:"touchmove",handler:this.eh(this.C7)}],touchend:[{target:a,name:"touchend",handler:this.eh(this.$x,m)},{target:e,name:"touchend",handler:this.eh(this.$x,m)},{target:a,
name:"touchcancel",handler:this.eh(this.$x,m)},{target:e,name:"touchcancel",handler:this.eh(this.$x,m)}],gesturestart:[{target:a,name:"gesturestart",handler:this.eh(this.R1)}],gesturechange:[{target:a,name:"gesturechange",handler:this.eh(this.Rga)}],gestureend:[{target:a,name:"gestureend",handler:this.eh(this.Tga)}],mousedown:[{target:a,name:"mousedown",handler:this.eh(this.g4)}],mousemove:[{target:a,name:"mousemove",handler:this.eh(this.h4)}],mouseup:[{target:a,name:"mouseup",handler:this.eh(this.qS,
m)},{target:c,name:"mouseup",handler:this.eh(this.qS,m)}],mousewheel:[{target:a,name:"mousewheel",handler:this.eh(this.ija)},{target:a,name:"DOMMouseScroll",handler:this.eh(this.ija)}]}};n.prototype.eh=function(a,b){var e=this;return function(){b&&i.VX();n.OM=n.OM+1;var c=a.apply(e,arguments);n.OM=n.OM-1;return c}};n.prototype.Ma=function(){if(this.v("autoRolledOver")){this.unbind(g.bc,this.Cea,this);this.unbind(g.rb,this.Bea,this);if(this.p("autoRolledOver")){this.bind(g.bc,this.Cea,this);this.bind(g.rb,
this.Bea,this)}this.I("autoRolledOver")}if(this.v("autoPressed")){this.unbind(g.zb,this.zea);this.unbind(g.Wb,this.Aea);if(this.p("autoPressed")){this.bind(g.zb,this.zea);this.bind(g.Wb,this.Aea)}this.I("autoPressed")}var a=B;if(this.v("contentOpaque")){a=m;this.I("contentOpaque")}if(this.v("inheritedInteractionEnabled")){a=m;this.I("inheritedInteractionEnabled")}if(this.v("interactionEnabled")){a=m;this.I("interactionEnabled")}if(this.v("backgroundOpacity")||this.v("backgroundColor"))a=m;e.prototype.Ma.call(this);
if(a){var b=this.Hc(),b=b.Ak()>0&&b.Tz.length>0,c=this.p("contentOpaque"),f=this.p("inheritedInteractionEnabled"),d=this.p("interactionEnabled");this.wB(f&&d&&(c||b))}if(a||this.v("cursor")||this.v("inheritedCursor")){this.I("cursor");this.I("inheritedCursor");this.BP?this.Sx(this.p("cursor")):this.Sx(this.p("inheritedCursor"))}};n.prototype.wB=function(a){if(this.BP!=a){(this.BP=a)?this.hE(n.Xda):this.II(n.Xda);this.fI()}};n.prototype.fI=function(){this.Yq().style["pointer-events"]=this.Iha()};n.prototype.Iha=
function(){return this.BP?"auto":"none"};n.prototype.TFa=function(a){if(a){for(var a=[],b=this;b;){a.push(b);b=b.getParent()}console.log(a.map(function(a){return a.it}))}else console.log(this.it)};n.MN=function(){return n.OM>0};n.Xda=function(){var a=[],a=a.concat(["touchstart","touchmove"]);k.le()!=k.aj&&(a=a.concat(["mousedown","mousemove","mousewheel"]));return a}();n.OM=0;n.LUa=1E3;n.hya=10;n.bya=5;n.Xxa=10;var r=a.Si("debug");return n});
define("c",[],function(){return{MO:"absolute",xg:"horizontal",Lv:"grid",mh:"vertical"}});define("ct",[],function(){return function(a){this.md=a;this.height=this.width=this.y=this.x=0}});define("dy",[],function(){return function(){this.minHeight=this.minWidth=this.height=this.width=0}});
define("ca",["mk","ct","dy"],function(a,b,d){function c(){this.wc=q;this.xl=a.ic;this.Tk=a.Ja;this.OB=this.Nt=0}c.prototype.Xua=function(a){this.Nt!=a&&(this.Nt=a,this.xe())};c.prototype.EX=function(a){this.OB!=a&&(this.OB=a,this.xe())};c.prototype.hva=function(a){this.wc=a;this.xe()};c.prototype.qH=function(a){this.Tk!=a&&(this.Tk=a,this.xe())};c.prototype.xH=function(a){this.xl!=a&&(this.xl=a,this.xe())};c.prototype.RN=function(){return new d};c.prototype.update=function(){var a=this.cBa();this.gG(a);
this.sJa(a)};c.prototype.gG=function(a){this.BM(a);this.AM(a)};c.prototype.kR=function(){for(var a=this.Rha(),b=[],c=0;c<a.length;c++){var e=a[c];e.get("includeInLayout")&&b.push(e)}return b};c.prototype.Rha=function(){for(var a=this.wc.Db(),b=[],c=0;c<a.length;c++){var e=a[c];e.get("visible")&&b.push(e)}return b};c.prototype.cBa=function(){for(var a=this.Rha(),c=[],d=0;d<a.length;d++)c.push(new b(a[d]));return c};c.prototype.sJa=function(a){for(var b=0;b<a.length;b++){var c=a[b];c.md.Nua(c.x,c.y,
c.width,c.height)}};c.prototype.xe=function(){this.wc&&(this.wc.Nb(),this.wc.wd())};return c});
define("dr",["kG","mk","ca","dy"],function(a,b,d,c){a=a.extend(d,function(){d.call(this)});a.prototype.RN=function(){for(var a=new c,b=this.kR(),d=0;d<b.length;d++){var e=b[d],j=e.Yt,o=e.BL,k=0;isNaN(j)||(k+=j);isNaN(o)||(k+=o);a.width=Math.max(k+e.gs(),a.width);a.minWidth=Math.max(k+e.ds(),a.minWidth);j=e.Np;o=e.lI;k=0;isNaN(j)||(k+=j);isNaN(o)||(k+=o);a.height=Math.max(k+e.fs(),a.height);a.minHeight=Math.max(k+e.ev(),a.minHeight)}b=this.wc.Bl()+this.wc.as();a.width+=b;a.minWidth+=b;b=this.wc.bs()+
this.wc.QG();a.height+=b;a.minHeight+=b;return a};a.prototype.gG=function(a){this.BM(a);this.AM(a)};a.prototype.gG=function(a){for(var b=this.wc.Se(),c=this.wc.Re(),e=0;e<a.length;e++){var d=a[e],o=d.md,k=o.Yt;if(isNaN(k)){var n=o.zT;isNaN(n)||(k=Math.round(0.01*n*b))}n=o.BL;if(isNaN(n)){var r=o.AT;isNaN(r)||(n=Math.round(0.01*r*b))}var r=o.mw,p=o.mm;if(isNaN(p)){var t=o.Im;isNaN(t)?!isNaN(k)&&!isNaN(n)&&(p=b-k-n):p=Math.round(0.01*t*b)}t=o.Np;if(isNaN(t)){var s=o.BT;isNaN(s)||(t=Math.round(0.01*
s*c))}s=o.lI;if(isNaN(s)){var u=o.yT;isNaN(u)||(s=Math.round(0.01*u*c))}var u=o.nw,v=o.gA;if(isNaN(v)){var w=o.Hm;isNaN(w)?!isNaN(t)&&!isNaN(s)&&(v=c-t-s):v=Math.round(0.01*w*c)}d.width=isNaN(p)?o.gs():Math.max(o.ds(),Math.min(o.wW(),p));d.height=isNaN(v)?o.fs():Math.max(o.ev(),Math.min(o.vW(),v));d.x=!isNaN(k)&&!isNaN(n)?Math.round(k+0.5*(b-n-k-d.width)):isNaN(k)?isNaN(n)?isNaN(r)?0:0.5*b+r-0.5*d.width:b-n-d.width:k;d.y=!isNaN(t)&&!isNaN(s)?Math.round(t+0.5*(c-s-t-d.height)):isNaN(t)?isNaN(s)?isNaN(u)?
0:0.5*c+u-0.5*d.height:c-s-d.height:t}};return a});
define("jH",["kG","mk","ca","dy"],function(a,b,d,c){a=a.extend(d,function(){d.call(this);this.tJ=this.uJ=this.vJ=this.GA=this.Tt=this.Ut=this.xJ=this.Yw=this.mm=l});a.prototype.VRa=function(a){this.mm!=a&&(this.mm=a,this.xe())};a.prototype.iSa=function(a){this.Ut!=a&&(this.Ut=a,this.Ut!=l&&(this.Yw=l),this.xe())};a.prototype.hSa=function(a){this.Tt!=a&&(this.Tt=a,this.Tt!=l&&(this.xJ=l),this.xe())};a.prototype.qSa=function(a){this.Yw!=a&&(this.Yw=a,this.Ut!=l&&(this.Ut=l),this.xe())};a.prototype.pSa=
function(a){this.xJ!=a&&(this.xJ=a,this.Tt!=l&&(this.Tt=l),this.xe())};a.prototype.nSa=function(a){this.GA!=a&&(this.GA=a,this.xe())};a.prototype.mSa=function(a){this.vJ!=a&&(this.vJ=a,this.xe())};a.prototype.lSa=function(a){this.uJ!=a&&(this.uJ=a,this.xe())};a.prototype.kSa=function(a){this.tJ!=a&&(this.tJ=a,this.xe())};a.prototype.RN=function(){for(var a=new c,b=this.kR(),d=0,e=0;e<b.length;e++)b[e].get("includeInLayout")&&d++;if(!isNaN(this.Yw)){isNaN(this.GA)||(a.minWidth=this.GA);for(e=0;e<b.length;e++){var j=
b[e].ds();isNaN(j)||(a.minWidth=Math.max(j,a.minWidth))}}if(isNaN(this.Ut))for(e=0;e<b.length;e++)j=b[e].gs(),isNaN(j)||(a.width=Math.max(j,a.width));else a.width=this.Ut;if(isNaN(this.Tt))for(e=0;e<b.length;e++)j=b[e].fs(),isNaN(j)||(a.height=Math.max(j,a.height));else a.height=this.Tt;isNaN(this.Yw)?isNaN(this.mm)?b=Math.ceil(Math.sqrt(d)):(b=this.mm-this.wc.Bl()-this.wc.as(),b=Math.max(1,Math.floor((b+this.Nt)/(a.width+this.Nt)))):b=Math.max(1,Math.floor(100/this.Yw));d=Math.ceil(d/b);a.width=
a.width*b+Math.max(0,b-1)*this.Nt+this.wc.Bl()+this.wc.as();a.minWidth=a.minWidth+this.wc.Bl()+this.wc.as();a.height=a.height*d+Math.max(0,d-1)*this.OB+this.wc.bs()+this.wc.QG();a.minHeight=0;return a};a.prototype.gG=function(a){for(var c,d,e=[],j=[],o=0;o<a.length;o++)d=a[o].md,d.get("includeInLayout")?e.push(a[o]):j.push(a[o]);var k=e.length,n=this.wc.Se(),r=this.Nt,p;if(isNaN(this.Ut))if(isNaN(this.Yw)){for(o=a=0;o<e.length;o++)d=e[o].md,a=Math.max(d.ds(),d.gs(),a);a=Math.min(n,a)}else{if(a=Math.max(1,
Math.floor(100/this.Yw)),a=(n-(a-1)*r)/a,o=B,!isNaN(this.uJ)&&this.uJ<a&&(a=this.uJ,o=m),!isNaN(this.GA)&&this.GA>a&&(a=this.GA,o=m),o)a=Math.max(1,Math.floor((n+r)/(a+r))),a=(n-(a-1)*r)/a}else a=this.Ut;a=Math.max(1,a);p=Math.max(1,Math.floor(0.001+(n+r)/(a+r)));var o=p*a,t=p*(a+r)-r,s=0;if(n>=t)switch(this.Tk){case b.Xa:s=n-t;break;case b.ae:s=Math.round(0.5*(n-t));break;default:s=0}for(var n=[],t=[],u=0;u<p;u++)d=Math.round(o/(p-u)),o-=d,t.push(s),s+=d+r,n.push(d);s=this.wc.Re();u=this.OB;if(isNaN(this.Tt))if(isNaN(this.xJ)){r=
1;for(o=0;o<e.length;o++)d=e[o].md,r=Math.max(d.ev(),d.fs(),r)}else{if(r=Math.max(1,100/this.xJ),r=(s-(r-1)*u)/r,o=B,!isNaN(this.tJ)&&this.tJ<r&&(r=this.tJ,o=m),!isNaN(this.vJ)&&this.vJ>r&&(r=this.vJ,o=m),o)r=Math.max(1,Math.floor((s+u)/(r+u))),r=(s-(r-1)*u)/r}else r=this.Tt;o=Math.max(1,Math.ceil(k/p));c=o*r;var k=o*(r+u)-u,v=0;if(s>=k)switch(this.xl){case b.ac:v=s-k;break;case b.zd:v=Math.round(0.5*(s-k))}k=[];s=[];for(d=0;d<o;d++){var w=Math.round(c/(o-d));c-=w;s.push(v);v+=w+u;k.push(w)}for(o=
0;o<e.length;o++)c=e[o],u=o%p,d=Math.floor(o/p),c.x=t[u],c.width=n[u],c.y=s[d],c.height=k[d];for(o=0;o<j.length;o++)c=j[o],c.x=0,c.width=Math.round(a),c.y=0,c.height=Math.round(r)};return a});
define("fB",["kG","mk","ca","dy"],function(a,b,d,c){a=a.extend(d,function(){d.call(this)});a.prototype.RN=function(){for(var a=new c,b=this.kR(),d=0;d<b.length;d++){var e=b[d];a.height=Math.max(e.fs(),a.height);a.minHeight=Math.max(e.ev(),a.minHeight);a.width+=e.gs();a.minWidth+=e.ds()}b=Math.max(0,b.length-1)*this.Nt+this.wc.Bl()+this.wc.as();a.width+=b;a.minWidth+=b;b=this.wc.bs()+this.wc.QG();a.height+=b;a.minHeight+=b;return a};a.prototype.gG=function(a){this.BM(a);this.AM(a)};a.prototype.BM=
function(a){for(var b=0,c=0;c<a.length;c++)a[c].md.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.Nt,e=this.wc.Se()-c,d=this.wc.Re(),b=e,o=0,k=[],c=0;c<a.length;c++){var n=a[c],r=n.md,p=r.Hm;n.height=isNaN(p)?r.fs():Math.max(r.ev(),Math.min(r.vW(),Math.round(0.01*d*p)));p=r.Im;isNaN(p)?(n.width=r.gs(),b-=n.width):r.get("includeInLayout")?(o+=p,k.push(n)):n.width=Math.max(r.ds(),Math.min(r.wW(),Math.round(0.01*e*p)))}c=Math.max(0,b-0.01*e*o);b-=c;do{a=B;e=Math.max(0,0<o?b/o:0);d=[];for(c=
o=0;c<k.length;c++){var n=k[c],r=n.md,p=Math.round(r.Im*e),t=r.ds(),s=r.wW();p<t?(n.width=t,b-=n.width,a=m):p>s?(n.width=s,b-=n.width,a=m):(o+=r.Im,d.push(n))}k=d}while(a);for(c=0;c<k.length;c++)n=k[c],r=n.md,e=Math.max(0,0<o?b/o:0),n.width=Math.round(r.Im*e),b-=n.width,o-=r.Im};a.prototype.AM=function(a){for(var c=this.Nt,d=this.wc.Se(),e=this.wc.Re(),j=0,o=0,k=0;k<a.length;k++){var n=a[k];n.md.get("includeInLayout")&&(j+=a[k].width,o++)}j+=c*(o-1);if(d>=j)switch(this.Tk){case b.Xa:d-=j;break;case b.ae:d=
Math.round(0.5*(d-j));break;default:d=0}else d=0;for(k=0;k<a.length;k++)if(n=a[k],n.md.get("includeInLayout")){if(e>=n.height)switch(this.xl){case b.ac:n.y=e-n.height;break;case b.zd:n.y=Math.round(0.5*(e-n.height));break;default:n.y=0}else n.y=0;n.x=d;d+=n.width+c}else n.x=0,n.y=0};return a});
define("cT",["kG","mk","ca","dy"],function(a,b,d,c){a=a.extend(d,function(){d.call(this)});a.prototype.RN=function(){for(var a=new c,b=this.kR(),d=0;d<b.length;d++){var e=b[d];a.width=Math.max(e.gs(),a.width);a.minWidth=Math.max(e.ds(),a.minWidth);a.height+=e.fs();a.minHeight+=e.ev()}b=Math.max(0,b.length-1)*this.OB+this.wc.bs()+this.wc.QG();a.height+=b;a.minHeight+=b;b=this.wc.Bl()+this.wc.as();a.width+=b;a.minWidth+=b;return a};a.prototype.gG=function(a){this.BM(a);this.AM(a)};a.prototype.BM=function(a){for(var b=
0,c=0;c<a.length;c++)a[c].md.get("includeInLayout")&&b++;for(var c=Math.max(0,b-1)*this.OB,e=this.wc.Se(),d=this.wc.Re()-c,b=d,o=0,k=[],c=0;c<a.length;c++){var n=a[c],r=n.md,p=r.Im;n.width=isNaN(p)?r.gs():Math.max(r.ds(),Math.min(r.wW(),Math.round(0.01*e*p)));p=r.Hm;isNaN(p)?(n.height=r.fs(),b-=n.height):r.get("includeInLayout")?(o+=p,k.push(n)):n.height=Math.max(r.ev(),Math.min(r.vW(),Math.round(0.01*d*p)))}c=Math.max(0,b-0.01*d*o);b-=c;do{a=B;e=Math.max(0,0<o?b/o:0);d=[];for(c=o=0;c<k.length;c++){var n=
k[c],r=n.md,p=Math.round(r.Hm*e),t=r.ev(),s=r.vW();p<t?(n.height=t,b-=n.height,a=m):p>s?(n.height=s,b-=n.height,a=m):(o+=r.Hm,d.push(n))}k=d}while(a);for(c=0;c<k.length;c++)n=k[c],r=n.md,e=Math.max(0,0<o?b/o:0),n.height=Math.round(r.Hm*e),b-=n.height,o-=r.Hm};a.prototype.AM=function(a){for(var c=this.OB,d=this.wc.Se(),e=this.wc.Re(),j=0,o=0,k=0;k<a.length;k++){var n=a[k];n.md.get("includeInLayout")&&(j+=n.height,n.width>d&&(d=n.width),o++)}j+=c*(o-1);if(e>=j)switch(this.xl){case b.ac:e-=j;break;case b.zd:e=
Math.round(0.5*(e-j));break;default:e=0}else e=0;for(k=0;k<a.length;k++)if(n=a[k],n.md.get("includeInLayout")){switch(this.Tk){case b.Xa:n.x=d-n.width;break;case b.ae:n.x=Math.round(0.5*(d-n.width));break;default:n.x=0}n.y=e;e+=n.height+c}else n.x=0,n.y=0};return a});
define("k","kG,dY,d,S,mk,cG,c,dr,jH,fB,cT".split(","),function(a,b,d,c,g,f,i,e,j,o,k){var n=a.extend(d,function(){d.call(this);this.je("BaseContainer");this.Gn=q;this.Bd=[];this.To=[];this.DI=f.Cba;this.set("contentOpaque",B)});n.jc={children:[[]],childrenInteractionEnabled:m,gap:0,horizontalAlign:g.Ja,itemHeight:l,itemMaxHeight:l,itemMaxWidth:l,itemMinHeight:l,itemMinWidth:l,itemWidth:l,layout:i.MO,verticalAlign:g.ic};b.defaults(n.jc,d.jc);n.prototype.ab=function(){this.zn(n.jc)};n.prototype.set=
function(a,b){a=="children"?this.gh(b):a=="creationPolicy"?this.NRa(b):d.prototype.set.call(this,a,b)};n.prototype.get=function(a,b){return a=="children"?this.Db():a=="creationPolicy"?this.DI:d.prototype.get.call(this,a,b)};n.prototype.NRa=function(a){if(this.DI!=a){this.DI=a;this.Y7()}};n.prototype.gh=function(a){for(var e=this.Db(),a=a||[],c=b(e).difference(a),f=0;f<c.length;f++)this.removeChild(c[f]);e=b(a).difference(e);for(f=0;f<e.length;f++)this.Oa(e[f]);for(f=0;f<a.length;f++)this.Zm(a[f],
f)};n.prototype.Db=S("Bd");n.prototype.Oa=function(a){a.getParent()&&a.getParent().removeChild(a);this.Bd.push(a);a.aa=this;this.sea(a);a.L6(this.bp);this.To.push(a);this.Y7();a.Ko()};n.prototype.removeChild=function(a){if(a.getParent()==this){a.Lm();a.aa=q;if(b(this.To).contains(a))this.To=b.without(this.To,a);else{a.Lc().detach();a.Ar(q);this.Nb();this.wd()}this.Bd=b.without(this.Bd,a);a.g6()}};n.prototype.mua=function(){b(this.Db()).forEach(function(a){this.removeChild(a)})};n.prototype.P9=function(a){return b(this.Bd).indexOf(a)};
n.prototype.Zm=function(a,e){var c=this.P9(a);c<0&&h("Can't set index. This is not a child of this container");var f=this.Bd.slice();f.splice(c,1);f.splice(e,0,a);if(!b.isEqual(this.Bd,f)){this.Bd=f;if(!b(this.To).contains(a)){c=this.P9(a);a.Lc().detach();for(var g=f=q,d=c-1;d>=0&&!f;d--)b(this.To).contains(this.Bd[d])||(f=this.Bd[d]);for(d=c+1;d<this.Bd.length&&!g&&!f;d++)b(this.To).contains(this.Bd[d])||(g=this.Bd[d]);f?a.Lc().insertAfter(f.Lc()):g?a.Lc().insertBefore(g.Lc()):this.Ab().OV(a.Yq());
this.wd()}}};n.prototype.wB=function(a){d.prototype.wB.call(this,a);this.Xoa()};n.prototype.Xoa=function(){b(this.Bd).forEach(function(a){this.sea(a)},this)};n.prototype.sea=function(a){a.set("inheritedInteractionEnabled",this.p("interactionEnabled")&&this.p("inheritedInteractionEnabled")&&this.p("childrenInteractionEnabled"))};n.prototype.fI=function(){d.prototype.fI.call(this);this.Bd.forEach(function(a){a.fI()})};n.prototype.xB=function(a){d.prototype.xB.call(this,a);b(this.Bd).forEach(function(a){a.L6(this.bp)},
this)};n.prototype.p_=function(a){d.prototype.p_.call(this,a);b(this.Db()).forEach(function(a){a.jG()});this.Y7()};n.prototype.Ar=function(a){d.prototype.Ar.call(this,a);b(this.Db()).forEach(function(e){b(this.To).contains(e)||e.Ar(a)},this)};n.prototype.Y7=function(){if((this.DI==f.Cba&&this.Vw||this.DI==f.jz)&&this.To.length>0){b(this.To).forEach(function(a){this.Ab().OV(a.Yq());a.Ar(this.wb())},this);this.To=[];this.Nb();this.wd()}};n.prototype.rO=function(a){if(this.Gn!=a){this.Gn&&this.Gn.hva(q);
(this.Gn=a)&&this.Gn.hva(this)}};n.prototype.Ma=function(){var a=B,b=this.p("layout");if(this.v("layout")){switch(b){case i.Lv:this.rO(new j);break;case i.xg:this.rO(new o);break;case i.mh:this.rO(new k);break;default:this.rO(new e)}this.I("layout");a=m}var f=this.Gn;if(this.v("horizontalAlign")||a){f.qH(this.p("horizontalAlign"));this.I("horizontalAlign")}if(this.v("verticalAlign")||a){f.xH(this.p("verticalAlign"));this.I("verticalAlign")}if(this.v("gap")||a){if(b==i.Lv){f.Xua(this.p("gap"));f.EX(this.p("gap"))}else b==
i.xg?f.Xua(this.p("gap")):b==i.mh&&f.EX(this.p("gap"));this.I("gap")}if(b==i.Lv){if(this.v("itemWidth")||a){var g=this.p("itemWidth"),n=c.oo(g);n!==l?f.qSa(n):f.iSa(g);this.I("itemWidth")}if(this.v("itemHeight")||a){g=this.p("itemHeight");n=c.oo(g);n!==l?f.pSa(n):f.hSa(g);this.I("itemHeight")}if(this.v("itemMinWidth")){f.nSa(this.p("itemMinWidth"));this.I("itemMinWidth")}if(this.v("itemMinHeight")){f.mSa(this.p("itemMinHeight"));this.I("itemMinHeight")}if(this.v("itemMaxWidth")){f.lSa(this.p("itemMaxWidth"));
this.I("itemMaxWidth")}if(this.v("itemMaxHeight")){f.kSa(this.p("itemMaxHeight"));this.I("itemMaxHeight")}}if(this.v("childrenInteractionEnabled")){this.I("childrenInteractionEnabled");this.Xoa()}this.Yb(["cursor"],{cursor:"inheritedCursor"},this.Bd,m,B);d.prototype.Ma.call(this);b==i.Lv&&f.VRa(this.mm)};n.prototype.Yb=function(a,b,e,c,f){for(var g=0;g<a.length;g++){var d=a[g];if(!c||this.v(d)){for(var j=0;j<e.length;j++)e[j].set(b[d]?b[d]:d,this.p(d));f&&this.I(d)}}};n.prototype.du=function(){if(this.Gn){var a=
this.Gn.RN();this.Zk=a.width;this.Yk=a.height;this.OJ=a.minWidth;this.NJ=a.minHeight}else d.prototype.du.call(this)};n.prototype.Ol=function(){this.Gn&&this.Gn.update(this);d.prototype.Ol.call(this)};return n});
define("nW",["jquery.mod","kG","op","gg"],function(a,b,d,c){function g(b,g){this.dE=b;this.cc="#000000";this.eb=0.5;this.Z=10;this.QM=this.fJ=5;this.Ze=g;this.pQ=this.d5=this.Pa=0;this.jea=this.vb=this.PP=B;this.ka=m;this.SD=document.createElement("div");this.SD.setAttribute("tdvlayer","scrollbar");this.uI=a(this.SD);c.css(this.SD,{position:"absolute","z-index":d.Qca});this.iI=document.createElement("div");this.x_=a(this.iI);c.css(this.iI,{position:"absolute",left:0,top:0});this.uI.append(this.x_)}
g.prototype.fd=function(){return this.uI.width()};g.prototype.Td=function(){return this.uI.height()};g.prototype.hb=function(a){this.Pa!=a&&(this.Pa=a,this.Ima(),this.ka=m)};g.prototype.Bk=S("Pa");g.prototype.setSize=function(a,b){this.d5=a;this.pQ=b;this.Ima();this.ka=m};g.prototype.Jf=function(a){this.vb!=a&&(this.vb=a,this.ka=m)};g.prototype.Mua=function(a){this.PP!=a&&(this.PP=a,this.ka=m)};g.prototype.pH=function(a){this.cc!=a&&(this.cc=a,this.ka=m)};g.prototype.Xi=function(a){this.eb!=a&&(this.eb=
a,this.ka=m)};g.prototype.zO=function(a){this.Z!=a&&(this.Z=a,this.ka=m)};g.prototype.Vua=function(a){this.fJ!=a&&(this.fJ=a,this.ka=m)};g.prototype.iva=function(a){this.QM!=a&&(this.QM=a,this.ka=m)};g.prototype.Pg=function(){this.ka&&(this.jea!=this.vb&&(this.vb?this.Ze.append(this.uI):this.uI.detach(),this.jea=this.vb),this.X(),this.ka=B)};g.prototype.X=function(){var a=Math.round(100*this.d5/this.pQ),b=Math.round(100*this.Pa/this.pQ);c.css(this.SD,{filter:"alpha(opacity="+Math.round(100*this.eb)+
")",opacity:this.eb,display:this.vb?"block":"none"});c.css(this.iI,{backgroundColor:this.cc,"border-radius":Math.floor(this.Z/2)+"px"});this.dE==g.xg?(c.css(this.SD,{left:this.fJ+"px",right:(this.PP?this.Z:0)+this.fJ+"px",height:this.Z+"px",bottom:this.QM+"px"}),c.css(this.iI,{left:b+"%",width:a+"%",height:this.Z+"px"})):(c.css(this.SD,{top:this.QM+"px",right:this.fJ+"px",width:this.Z+"px",bottom:(this.PP?this.Z:0)+this.QM+"px"}),c.css(this.iI,{top:b+"%",width:this.Z+"px",height:a+"%"}))};g.prototype.Ima=
function(){var a=this.pQ-this.d5;0>this.Pa?this.Pa=0:this.Pa>a&&(this.Pa=a)};g.xg="horizontal";g.mh="vertical";return g});define("jn",["kG","nW"],function(a,b){return a.extend(b,function(a){b.call(this,b.xg,a)})});define("eh",["kG","nW"],function(a,b){return a.extend(b,function(a){b.call(this,b.mh,a)})});
define("gI",["require","nU","cs","fQ"],function(a){function b(){var a;a=g?!f:!document[e];i.visible!=a&&(i.visible=a,i.trigger(new c(d.qa)))}var d=a("nU"),c=a("cs"),g=B,f=B,i=new (a("fQ"));i.visible=m;for(var e,j,a=["hidden","msHidden","webkitHidden"],o=["visibilitychange","msvisibilitychange","webkitvisibilitychange"],k=0;k<a.length;k++)"undefined"!==typeof document[a[k]]&&(e=a[k],j=o[k]);e===l||"undefined"===typeof document[e]?(e="hidden",document[e]=B,j=function(){document[e]=B;b()},a=function(){document[e]=
m;b()},document.addEventListener?(window.addEventListener("focus",j,m),window.addEventListener("blur",a,m)):(document.attachEvent("onfocusin",j),document.attachEvent("onfocusout",a))):(document.addEventListener(j,b,B),b());i.uX=function(a){(g=a)&&(f=B);b()};i.Xaa=function(a){f=a;b()};return i});
define("bg",["require","gI","lN"],function(a){function b(){}function d(a){c(a);k=0<o.length?e(d):l}function c(a){var e=o;o=[];b.r$=m;var c=0;t===l?t=a:c=Math.round((a-t)/r);var f=(c-p)*r;p=c;f=1<f?100>f?f:100:1;b.Qe=a;for(a=0;a<e.length;a++)c=e[a],c.callback.call(c.context,f);b.r$=B}var g=a("gI"),a=a("lN"),f=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,i=window.cancelAnimationFrame||
window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame,e=f,j=i,o=[],k=l,n=B,r=1E3/60,p=0,t;b.yb=function(a,b){for(var c=0;c<o.length;c++){var f=o[c];if(f.callback==a&&f.context==b)return}o.push({callback:a,context:b});!n&&k===l&&(k=e(d))};b.Jaa=function(a){n!=a&&((n=a)?k!==l&&(j(k),k=l):0<o.length&&(k=e(d)))};b.BX=function(a,b){a=a||f;b=b||i;e!=a&&(k!==l&&(j(k),k=a(d)),e=a,j=b)};b.gaa=function(){b.BX(q,q)};b.Qe=(new Date).getTime();
b.r$=B;a.Ixa&&setInterval(function(){g.visible||c(b.Qe+100)},100);return b});define("bC",[],function(){return function(a,b,d,c){this.name=a;this.from=b;this.Gy=d;this.CQa=c}});
define("nx",["require","bC"],function(a){function b(a){var b={K9:function(b,c,f,g){f=0>=f?0:f>=g?1:f/g;0.5>f?f=Math.pow(2*f,a):(f=1-Math.pow(1-(2*f-1),a),f+=1);return b+(c-b)*0.5*f}};b.M$=g(a);return b}function d(a){var b={K9:function(b,c,f,g){return b+(c-b)*(1-Math.pow(1-(0>=f?0:f>=g?1:f/g),a))}};b.M$=g(a);return b}function c(a){var b={K9:function(b,c,f,g){return b+(c-b)*Math.pow(0>=f?0:f>=g?1:f/g,a)}};b.M$=g(a);return b}function g(a){return function(b,c,f){b=Math.abs(c-b);return 1>b/f?0:1/(1-Math.pow((b-
f)/b,1/a))}}function f(a,f,g){this.Yj=q;switch(a){case "quad_in":this.Yj=c(2);break;case "quad_out":this.Yj=d(2);break;case "quad_in_out":this.Yj=b(2);break;case "cubic_in":this.Yj=c(3);break;case "cubic_out":this.Yj=d(3);break;case "cubic_in_out":this.Yj=b(3);break;case "quart_in":this.Yj=c(4);break;case "quart_out":this.Yj=d(4);break;case "quart_in_out":this.Yj=b(4);break;case "quint_in":this.Yj=c(5);break;case "quint_out":this.Yj=d(5);break;case "quint_in_out":this.Yj=b(5);break;default:this.Yj=
c(1)}this.At=f.slice();this.ud=0;this.cb=this.Jw(f,g);this.S0={};for(a=0;a<this.At.length;a++)this.S0[this.At[a].name]=f[a].from}var i=a("bC");f.prototype.S9=function(a){for(var b=0;b<this.At.length;b++)if(this.At[b].name==a)return this.At[b];return q};f.prototype.gb=function(a){return this.S0[a]};f.prototype.Te=function(){return this.ud>=this.cb};f.prototype.Ti=S("cb");f.prototype.Bk=function(){return this.ud/this.cb};f.prototype.getTime=S("ud");f.prototype.setTime=function(a){this.ud=Math.min(Math.max(0,
a),this.cb);for(a=0;a<this.At.length;a++){var b=this.At[a];this.S0[b.name]=this.Yj.K9(b.from,b.Gy,this.ud,this.cb)}};f.prototype.xb=function(a){this.setTime(this.ud+a)};f.prototype.Jw=function(a,b,c){for(var f=[],g=0;g<this.At.length;g++){var d=this.At[g],i=c?c:d.CQa;i!==l&&0<i&&f.push(this.Yj.M$(d.from,d.Gy,i/1E3))}if(0<f.length){a=f[0];for(g=1;g<f.length;g++)a=Math.max(a,f[g]);return 0<b?Math.max(b,a):a}return b!==l?Math.max(b,0.001):this.Jw(a,b,1E3)};f.Ti=function(a,b,c,g){return(new f(a,[new i("",
b,c,g)])).Ti()};return f});
define("nq","require,dY,kG,nU,cs,mk,hn,fn,k,jn,eh,bg,nx,bC".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("mk"),i=a("hn"),e=a("fn"),j=a("k"),o=a("jn"),k=a("eh"),n=a("bg"),r=a("nx"),p=a("bC"),t=d.extend(j,function(){j.call(this);this.je("Container");this.$c=this.Dd=this.Df=this.jg=this.Lb=this.tb=this.Gfa=this.Ffa=0;this.n3=this.s3=this.bl=this.al=B;this.zfa=0;this.h0=this.g0=l;this.j0=this.i0=0;this.Qx=q;this.a5=i.Yba;this.Qw=B;this.oR=q;this.Pr=B;this.uV=q});t.jc={overflow:i.tD,
scrollBarColor:"#000000",scrollBarWidth:10,scrollBarMargin:5,scrollBarHorizontalMargin:l,scrollBarVerticalMargin:l,scrollBarOpacity:0.5,scrollBarVisible:e.bc};b.defaults(t.jc,j.jc);t.prototype.Bn=function(){this.oR=new o(this.l2());this.oR.x_.bind("mousedown touchstart",b.bind(this.DEa,this));this.Bn=S("oR");return this.oR};t.prototype.Cn=function(){this.uV=new k(this.l2());this.uV.x_.bind("mousedown touchstart",b.bind(this.eNa,this));this.Cn=S("uV");return this.uV};t.prototype.scrollIntoView=function(a){var b=
a.Ba,e=a.Ua(),b=Math.min(b,Math.max(b+e-this.jg,this.Dd)),e=a.Da,a=a.Cb(),a=Math.min(e,Math.max(e+a-this.Df,this.$c));this.scrollTo(b,a)};t.prototype.scrollTo=function(a,b){var e=this.Dd;a>this.Dd?this.$P()&&(e=Math.min(a,this.tb-this.jg)):a<this.Dd&&this.ZP()&&(e=Math.max(a,0));var c=this.$c;b>this.$c?this.YP()&&(c=Math.min(b,this.Lb-this.Df)):b<this.$c&&this.aQ()&&(c=Math.max(b,0));this.cM(e,c)};t.prototype.Cua=function(){if(this.YP()){for(var a=Math.max(0,this.Lb-this.Df),b=Math.min(a,this.$c+
this.Df*0.5),e=a=Math.min(a,this.$c+this.Df),c=this.Db().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var g=f.Da;g+f.Cb()>this.$c+this.Df&&g>=b&&g<a&&g<e&&(e=g)}this.cM(this.Dd,e)}};t.prototype.YP=function(){return this.Yea()&&this.$c+this.Df<this.Lb};t.prototype.Eua=function(){if(this.aQ()){for(var a=Math.max(0,this.$c-this.Df),b=Math.max(0,this.$c-this.Df*0.5),e=a,c=this.Db().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var g=f.Da,f=g+f.Cb();g<this.$c&&f>=a+this.Df&&
f<b+this.Df&&f>e+this.Df&&(e=f-this.Df)}this.cM(this.Dd,e)}};t.prototype.aQ=function(){return this.Yea()&&this.$c>0};t.prototype.Dua=function(){if(this.$P()){for(var a=Math.max(0,this.tb-this.jg),b=Math.min(a,this.Dd+this.jg*0.5),e=a=Math.min(a,this.Dd+this.jg),c=this.Db().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var g=f.Ba;g+f.Ua()>this.Dd+this.jg&&g>=b&&g<a&&g<e&&(e=g)}this.cM(e,this.$c)}};t.prototype.$P=function(){return this.Xea()&&this.Dd+this.jg<this.tb};t.prototype.scrollLeft=
function(){if(this.ZP()){for(var a=Math.max(0,this.Dd-this.jg),b=Math.max(0,this.Dd-this.jg*0.5),e=a,c=this.Db().slice(),f=c.shift();c.length;f=c.shift())if(f.get("visible")){var g=f.Ba,f=g+f.Ua();g<this.Dd&&f>=a+this.jg&&f<b+this.jg&&f>e+this.jg&&(e=f-this.jg)}this.cM(e,this.$c)}};t.prototype.ZP=function(){return this.Xea()&&this.Dd>0};t.prototype.cM=function(a,b){this.al=this.Dd!=a;this.bl=this.$c!=b;this.Mr();this.Qx=new r("cubic_in_out",[new p("hScrollPosition",this.Dd,a),new p("vScrollPosition",
this.$c,b)],500);n.yb(this.g_,this)};t.prototype.Yea=function(){return this.Pr&&this.Df<this.Lb};t.prototype.Xea=function(){return this.Qw&&this.jg<this.tb};t.prototype.ab=function(){this.zn(t.jc)};t.prototype.OAa=function(){this.s3=m;this.Mr()};t.prototype.NAa=function(){this.s3=B;this.Mr()};t.prototype.DEa=function(){this.al=m};t.prototype.eNa=function(){this.bl=m};t.prototype.KAa=function(a){if(this.al||this.bl){this.wb().bind(c.ad,this.xfa,this);this.wb().bind(c.Wb,this.yfa,this);this.rw=a.pageX;
this.sw=a.pageY;this.Mr()}else this.Afa(a)};t.prototype.xfa=function(a){if(this.al){var b=(a.pageX-this.rw)*this.tb/this.Bn().fd();this.Dd=this.Dd+b}else if(this.bl){b=(a.pageY-this.sw)*this.Lb/this.Cn().Td();this.$c=this.$c+b}this.rw=a.pageX;this.sw=a.pageY;this.Uu()};t.prototype.yfa=function(){this.wb().unbind(c.ad,this.xfa,this);this.wb().unbind(c.Wb,this.yfa,this);this.bl=this.al=B;this.Mr()};t.prototype.$ea=function(a){return this.Pr&&(a>0&&this.$c>0||a<0&&this.$c<this.Lb-this.Df)?m:B};t.prototype.MAa=
function(a){if(this.Pr){this.$c=this.$c-a.delta*this.Df*0.1;this.Uu()}};t.prototype.Afa=function(a){if(this.Qw||this.Pr){this.wb().bind(c.ad,this.Bfa,this);this.wb().bind(c.Wb,this.Cfa,this);this.n3=m;this.rw=a.pageX;this.sw=a.pageY;this.Mr();this.YEa()}};t.prototype.Bfa=function(a){var b=a.pageX-this.rw,e=a.pageY-this.sw;if(!this.al&&!this.bl&&b*b+e*e>25){this.al=this.Qw;this.bl=this.Pr;this.Mr()}if(this.al||this.bl){this.Dd=this.Dd-b;this.$c=this.$c-e;this.rw=a.pageX;this.sw=a.pageY;this.Uu();this.gMa()}};
t.prototype.Cfa=function(){this.wb().unbind(c.ad,this.Bfa,this);this.wb().unbind(c.Wb,this.Cfa,this);this.n3=B;this.Mr();var a=Math.max(Math.abs(this.i0/0.001),Math.abs(this.j0/0.001));this.Qx=new r("linear",[new p("hScrollPosition",this.Dd,this.Dd-0.5*this.i0*a),new p("vScrollPosition",this.$c,this.$c-0.5*this.j0*a)],a);n.yb(this.g_,this)};t.prototype.YEa=function(){this.g0=this.rw;this.h0=this.sw};t.prototype.gMa=function(){var a=(new Date).getTime(),b=a-this.zfa;if(b>10){this.zfa=a;this.i0=(this.rw-
this.g0)/b;this.j0=(this.sw-this.h0)/b;this.g0=this.rw;this.h0=this.sw}};t.prototype.g_=function(a){if(this.Qx&&!this.Qx.Te()&&(this.al||this.bl)){this.Qx.xb(a);if(this.al){this.Dd=this.Qx.gb("hScrollPosition");if(this.Dd<0||this.Dd>this.tb-this.jg)this.al=B}if(this.bl){this.$c=this.Qx.gb("vScrollPosition");if(this.$c<0||this.$c>this.Lb-this.Df)this.bl=B}this.Uu();n.yb(this.g_,this)}else{this.bl=this.al=B;this.Qx=q;this.Mr()}};t.prototype.Uu=function(a){if(a){if(!this.Qw)switch(this.p("horizontalAlign")){case f.Xa:this.Dd=
this.tb-this.jg;break;case f.ae:this.Dd=(this.tb-this.jg)/2;break;default:this.Dd=0}if(!this.Pr)switch(this.p("verticalAlign")){case f.ac:this.$c=this.Lb-this.Df;break;case f.zd:this.$c=(this.Lb-this.Df)/2;break;default:this.$c=0}}this.Dd=Math.max(0,Math.min(this.tb-this.jg,this.Dd));this.$c=Math.max(0,Math.min(this.Lb-this.Df,this.$c));this.Bn().hb(this.Dd);this.Cn().hb(this.$c);this.Ab().aSa(this.Dd);this.Ab().jTa(this.$c);this.Ck();if(this.Tla!=this.Dd||this.Ula!=this.$c){this.Tla!==l&&this.Ula!==
l&&this.trigger(new g(c.Go));this.Tla=this.Dd;this.Ula=this.$c}};t.prototype.Mr=function(){var a;a=this.get("scrollBarVisible")==e.ALWAYS?m:this.Fn?this.al||this.bl||this.n3:this.al||this.bl||this.s3;this.Bn().Jf(this.Qw&&a);this.Cn().Jf(this.Pr&&a);this.Ck()};t.prototype.mb=function(){j.prototype.mb.call(this);if(!this.LAa){this.LAa=m;if(this.Fn)this.bind(c.zb,this.Afa,this);else{this.bind(c.zb,this.KAa,this);this.bind(c.bc,this.OAa,this);this.bind(c.rb,this.NAa,this);this.bind(c.vq,this.MAa,this)}}};
t.prototype.Ma=function(){if(this.v("overflow")){this.a5=this.p("overflow");this.I("overflow");this.wd()}if(this.v("scrollBarColor")){this.Bn().pH(this.p("scrollBarColor"));this.Cn().pH(this.p("scrollBarColor"));this.I("scrollBarColor")}if(this.v("scrollBarWidth")){this.Bn().zO(this.p("scrollBarWidth"));this.Cn().zO(this.p("scrollBarWidth"));this.I("scrollBarWidth")}if(this.v("scrollBarMargin")||this.v("scrollBarVerticalMargin")||this.v("scrollBarHorizontalMargin")){var a=this.p("scrollBarHorizontalMargin",
"scrollBarMargin"),b=this.p("scrollBarVerticalMargin","scrollBarMargin");this.Bn().Vua(a);this.Bn().iva(b);this.Cn().Vua(a);this.Cn().iva(b);this.I("scrollBarMargin");this.I("scrollBarVerticalMargin");this.I("scrollBarHorizontalMargin")}if(this.v("scrollBarOpacity")){this.Bn().Xi(this.p("scrollBarOpacity"));this.Cn().Xi(this.p("scrollBarOpacity"));this.I("scrollBarOpacity")}j.prototype.Ma.call(this)};t.prototype.Ol=function(){j.prototype.Ol.call(this);this.jMa();this.CMa();this.AMa();this.Mr();this.Ck()};
t.prototype.jMa=function(){for(var a=0,b=0,e=0,c=0,f=this.Db(),g=0;g<f.length;g++){var d=f[g];if(d.get("visible")){c=Math.min(c,d.Ba);e=Math.min(e,d.Da);a=Math.max(a,d.Ba+d.Ua());b=Math.max(b,d.Da+d.Cb())}}this.Ffa=c;this.Gfa=e;this.tb=a;this.Lb=b};t.prototype.CMa=function(){this.jg=Math.min(this.Se(),this.tb);this.Df=Math.min(this.Re(),this.Lb)};t.prototype.AMa=function(){var a=this.Bd.some(function(a){return a.LPa()}),b=this.Ffa<0||this.Gfa<0||this.tb>this.jg||this.Lb>this.Df;if(this.a5==i.Go){this.Qw=
this.jg<this.tb;var e=(this.Pr=this.Df<this.Lb)&&this.Qw;this.Bn().setSize(this.jg,this.tb);this.Bn().Mua(e);this.Cn().setSize(this.Df,this.Lb);this.Cn().Mua(e);this.Ab().sH(!b&&!a)}else{this.Pr=this.Qw=B;this.a5==i.tD?this.Ab().sH(m):this.Ab().sH(!b&&!a)}this.Uu(m)};t.prototype.Pg=function(){this.Cn().Pg();this.Bn().Pg();j.prototype.Pg.call(this)};return t});define("W",[],function(){return{mh:"vertical",xg:"horizontal"}});
define("ez",["require"],function(){return{$u: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("iu","require,jquery.mod,dY,kG,mk,W,d,gg,ez".split(","),function(a){function b(a){var b=a.Nm.width(),e=a.Nm.height();a.get("fontStyle")=="italic"&&(b=b+e*1/5);return Math.round(b)}var d=a("jquery.mod"),c=a("dY"),g=a("kG"),f=a("mk"),i=a("W"),e=a("d");a("gg");var j=a("ez"),a=g.extend(e,function(){e.call(this);this.je("Label");this.Nm=this.YL=q});a.jc={};a.prototype.ab=function(){e.prototype.ab.call(this);this.f("fontFamily");this.f("fontSize");this.f("fontColor");this.f("fontWeight");this.f("fontStyle");
this.f("horizontalAlign",f.Ja);this.f("verticalAlign",f.zd);this.f("direction",i.xg);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.mb=function(){e.prototype.mb.call(this);if(!this.Nm){this.YL=document.createElement("span");this.Nm=d(this.YL);this.b7({position:"absolute","text-align":"center",cursor:"inherit","white-space":"nowrap",
transform:"translate3d(0, 0, 0)"});var a=this.Ab();a.sH(B);a.append(this.Nm)}};a.prototype.du=function(){e.prototype.du.call(this);var a=this.Ab();this.Zk=b(this)+a.SG()+a.VG();this.Yk=this.Nm.height()+a.WG()+a.OG();o(this)};a.prototype.Ma=function(){var a,b={};if(this.v("direction")||this.v("text")){switch(this.p("direction")){case i.mh:b["line-height"]="100%";this.Nm.html(this.Nm.text(this.p("text")).text().split("").join("<br/>"));break;default:b["line-height"]="normal";this.Nm.text(this.p("text"));
this.Nm.html(this.Nm.html().split(" ").join("&nbsp;"))}this.I("direction");this.I("text");setTimeout(function(){this.Nb();this.wd()}.bind(this),0)}if(this.v("fontFamily")){a=this.p("fontFamily");c(a).isString()||(a="");b.fontFamily=j.$u(a);this.I("fontFamily");this.Nb();this.wd()}if(this.v("fontSize")){a=this.p("fontSize");c(a).isNumber()?a=a+"px":c(a).isString()||(a="");b.fontSize=a;this.I("fontSize");this.Nb();this.wd()}if(this.v("fontColor")){a=this.p("fontColor");c(a).isString()||(a="");b.color=
a;this.I("fontColor")}if(this.v("fontWeight")){a=this.p("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.I("fontWeight");this.Nb();this.wd()}if(this.v("fontStyle")){a=this.p("fontStyle");switch(a){case "italic":case "normal":break;default:a="normal"}b.fontStyle=a;this.I("fontStyle");this.Nb();this.wd()}if(this.v("textDecoration")){a=
this.p("textDecoration");switch(a){case "underline":case "overline":case "line-through":case "none":break;default:a="none"}b.textDecoration=a;this.I("textDecoration");this.Nb();this.wd()}if(this.v("horizontalAlign")){this.wd();this.I("horizontalAlign")}if(this.v("verticalAlign")){this.wd();this.I("verticalAlign")}a=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(c(a).any(function(a){return this.v(a)},this)){var f={};c(a).each(function(a){f[a]=
this.p(a);this.I(a)},this);b["-moz-text-shadow"]=b["-webkit-text-shadow"]=b["text-shadow"]=[f.textShadowHorizontalLength+"px",f.textShadowVerticalLength+"px",f.textShadowBlurRadius+"px","rgba("+parseInt("0x"+f.textShadowColor.substr(1,2))+", "+parseInt("0x"+f.textShadowColor.substr(3,2))+", "+parseInt("0x"+f.textShadowColor.substr(5,2))+", "+f.textShadowOpacity+")"].join(" ");a=f.textShadowVerticalLength==0&&this.p("textShadowHorizontalLength")==0?135:Math.round(4*Math.atan2(f.textShadowHorizontalLength,
-f.textShadowVerticalLength)/Math.PI)*45;b.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*f.textShadowOpacity).toString(16)).slice(-2)+f.textShadowColor.substr(1,6)+",direction="+a+")";this.Ab().sH((f.textShadowHorizontalLength>0||f.textShadowVerticalLength>0||f.textShadowBlurRadius>0)&&f.textShadowOpacity>0)}this.b7(b);e.prototype.Ma.call(this)};a.prototype.Ol=function(){var a={left:"auto",right:"auto",top:"auto",bottom:"auto"};switch(this.p("horizontalAlign")){case f.Ja:a.left=
"0";break;case f.Xa:this.Pg();a.left=this.Se()-b(this)+"px";break;case f.ae:this.Pg();a.left=Math.max(0,Math.round((this.Se()-b(this))*0.5))+"px"}switch(this.p("verticalAlign")){case f.ic:a.top="0";break;case f.ac:this.Pg();a.top=this.Re()-this.YL.clientHeight+"px";break;case f.zd:this.Pg();a.top=Math.max(0,Math.round((this.Re()-this.YL.clientHeight)*0.5))+"px"}this.b7(a)};a.prototype.b7=function(a){var b=this.YL.style,e;for(e in a)b[e]=a[e]};var o=function(){function a(){!g&&e()&&(g=setTimeout(function(){g=
q;var e=(new Date).getTime()-5E3,c;for(c in f){var d=f[c];d.timestamp<e&&delete f[c];var j=d.label;if(d.width!=b(j)||d.height!=j.Nm.height()){j.Nb();j.wd()}}a()},500))}function e(){for(var a in f)return m;return B}var c=1,f={},g=q;return function(e){e.mja||(e.mja=c++);f[e.mja]={label:e,timestamp:(new Date).getTime(),width:b(e),height:e.Nm.height()};a()}}();return a});
define("lf","require,kG,dY,cG,bc,nU,cs,gS,dV,hn,gq,nq,iu".split(","),function(a){var b=a("kG"),d=a("dY"),c=a("cG"),g=a("bc"),f=a("nU"),i=a("cs"),e=a("gS"),j=a("dV"),o=a("hn"),k=a("gq"),n=a("nq"),r=a("iu"),p=b.extend(n,function(){this.je("Button");n.call(this);this.$h=this.Ka=q;this.set("childrenInteractionEnabled",B);this.set("contentOpaque",m);this.set("creationPolicy",c.jz);this.set("overflow",o.Yba);this.set("autoRolledOver",m);this.set("autoPressed",m);this.set("cursor",g.yf)});p.prototype.ab=
function(){n.prototype.ab.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",j.ne);this.f("buttonGroup");this.f("paddingLeft",
5);this.f("paddingTop",5);this.f("paddingRight",5);this.f("paddingBottom",5);this.f("pressed");this.m("rollOverOpacity",k.P,"opacity");this.m("rollOverIconWidth",k.P,"iconWidth");this.m("rollOverIconHeight",k.P,"iconHeight");this.m("rollOverFontSize",k.P,"fontSize");this.m("rollOverFontColor",k.P,"fontColor");this.m("rollOverFontWeight",k.P,"fontWeight");this.m("rollOverFontStyle",k.P,"fontStyle");this.m("rollOverTextDecoration",k.P,"textDecoration");this.m("rollOverTextShadowBlurRadius",k.P,"textShadowBlurRadius");
this.m("rollOverTextShadowColor",k.P,"textShadowColor");this.m("rollOverTextShadowHorizontalLength",k.P,"textShadowHorizontalLength");this.m("rollOverTextShadowOpacity",k.P,"textShadowOpacity");this.m("rollOverTextShadowVerticalLength",k.P,"textShadowVerticalLength");this.m("rollOverBorderSize",k.P,"borderSize");this.m("rollOverBorderLeftSize",k.P,"borderLeftSize");this.m("rollOverBorderTopSize",k.P,"borderTopSize");this.m("rollOverBorderRightSize",k.P,"borderRightSize");this.m("rollOverBorderBottomSize",
k.P,"borderBottomSize");this.m("rollOverBorderColor",k.P,"borderColor");this.m("rollOverBorderLeftColor",k.P,"borderLeftColor");this.m("rollOverBorderTopColor",k.P,"borderTopColor");this.m("rollOverBorderRightColor",k.P,"borderRightColor");this.m("rollOverBorderBottomColor",k.P,"borderBottomColor");this.m("rollOverShadow",k.P,"shadow");this.m("rollOverShadowHorizontalLength",k.P,"shadowHorizontalLength");this.m("rollOverShadowVerticalLength",k.P,"shadowVerticalLength");this.m("rollOverShadowBlurRadius",
k.P,"shadowBlurRadius");this.m("rollOverShadowSpread",k.P,"shadowSpread");this.m("rollOverShadowOpacity",k.P,"shadowOpacity");this.m("rollOverShadowColor",k.P,"shadowColor");this.m("rollOverBackgroundOpacity",k.P,"backgroundOpacity");this.m("rollOverBackgroundColor",k.P,"backgroundColor");this.m("rollOverBackgroundColorRatios",k.P,"backgroundColorRatios");this.m("rollOverBackgroundColorDirection",k.P,"backgroundColorDirection");this.m("pressedLabel",k.bb,"label");this.m("pressedOpacity",k.bb,"opacity");
this.m("pressedIconWidth",k.bb,"iconWidth");this.m("pressedIconHeight",k.bb,"iconHeight");this.m("pressedFontSize",k.bb,"fontSize");this.m("pressedFontColor",k.bb,"fontColor");this.m("pressedFontWeight",k.bb,"fontWeight");this.m("pressedFontStyle",k.bb,"fontStyle");this.m("pressedTextDecoration",k.bb,"textDecoration");this.m("pressedTextShadowBlurRadius",k.bb,"textShadowBlurRadius");this.m("pressedTextShadowColor",k.bb,"textShadowColor");this.m("pressedTextShadowHorizontalLength",k.bb,"textShadowHorizontalLength");
this.m("pressedTextShadowOpacity",k.bb,"textShadowOpacity");this.m("pressedTextShadowVerticalLength",k.bb,"textShadowVerticalLength");this.m("pressedBorderSize",k.bb,"borderSize");this.m("pressedBorderLeftSize",k.bb,"borderLeftSize");this.m("pressedBorderTopSize",k.bb,"borderTopSize");this.m("pressedBorderRightSize",k.bb,"borderRightSize");this.m("pressedBorderBottomSize",k.bb,"borderBottomSize");this.m("pressedBorderColor",k.bb,"borderColor");this.m("pressedBorderLeftColor",k.bb,"borderLeftColor");
this.m("pressedBorderTopColor",k.bb,"borderTopColor");this.m("pressedBorderRightColor",k.bb,"borderRightColor");this.m("pressedBorderBottomColor",k.bb,"borderBottomColor");this.m("pressedShadow",k.bb,"shadow");this.m("pressedShadowHorizontalLength",k.bb,"shadowHorizontalLength");this.m("pressedShadowVerticalLength",k.bb,"shadowVerticalLength");this.m("pressedShadowBlurRadius",k.bb,"shadowBlurRadius");this.m("pressedShadowSpread",k.bb,"shadowSpread");this.m("pressedShadowOpacity",k.bb,"shadowOpacity");
this.m("pressedShadowColor",k.bb,"shadowColor");this.m("pressedBackgroundOpacity",k.bb,"backgroundOpacity");this.m("pressedBackgroundColor",k.bb,"backgroundColor");this.m("pressedBackgroundColorRatios",k.bb,"backgroundColorRatios");this.m("pressedBackgroundColorDirection",k.bb,"backgroundColorDirection");this.m("pressedLabel",k.Rb,"label");this.m("pressedRollOverOpacity",k.Rb,"opacity");this.m("pressedRollOverIconWidth",k.Rb,"iconWidth");this.m("pressedRollOverIconHeight",k.Rb,"iconHeight");this.m("pressedRollOverFontSize",
k.Rb,"fontSize");this.m("pressedRollOverFontColor",k.Rb,"fontColor");this.m("pressedRollOverFontWeight",k.Rb,"fontWeight");this.m("pressedRollOverFontStyle",k.Rb,"fontStyle");this.m("pressedRollOverTextDecoration",k.Rb,"textDecoration");this.m("pressedRollOverTextShadowBlurRadius",k.Rb,"textShadowBlurRadius");this.m("pressedRollOverTextShadowColor",k.Rb,"textShadowColor");this.m("pressedRollOverTextShadowHorizontalLength",k.Rb,"textShadowHorizontalLength");this.m("pressedRollOverTextShadowOpacity",
k.Rb,"textShadowOpacity");this.m("pressedRollOverTextShadowVerticalLength",k.Rb,"textShadowVerticalLength");this.m("pressedRollOverBorderSize",k.Rb,"borderSize");this.m("pressedRollOverBorderLeftSize",k.Rb,"borderLeftSize");this.m("pressedRollOverBorderTopSize",k.Rb,"borderTopSize");this.m("pressedRollOverBorderRightSize",k.Rb,"borderRightSize");this.m("pressedRollOverBorderBottomSize",k.Rb,"borderBottomSize");this.m("pressedRollOverBorderColor",k.Rb,"borderColor");this.m("pressedRollOverBorderLeftColor",
k.Rb,"borderLeftColor");this.m("pressedRollOverBorderTopColor",k.Rb,"borderTopColor");this.m("pressedRollOverBorderRightColor",k.Rb,"borderRightColor");this.m("pressedRollOverBorderBottomColor",k.Rb,"borderBottomColor");this.m("pressedRollOverShadow",k.Rb,"shadow");this.m("pressedRollOverShadowHorizontalLength",k.Rb,"shadowHorizontalLength");this.m("pressedRollOverShadowVerticalLength",k.Rb,"shadowVerticalLength");this.m("pressedRollOverShadowBlurRadius",k.Rb,"shadowBlurRadius");this.m("pressedRollOverShadowSpread",
k.Rb,"shadowSpread");this.m("pressedRollOverShadowOpacity",k.Rb,"shadowOpacity");this.m("pressedRollOverShadowColor",k.Rb,"shadowColor");this.m("pressedRollOverBackgroundOpacity",k.Rb,"backgroundOpacity");this.m("pressedRollOverBackgroundColor",k.Rb,"backgroundColor");this.m("pressedRollOverBackgroundColorRatios",k.Rb,"backgroundColorRatios");this.m("pressedRollOverBackgroundColorDirection",k.Rb,"backgroundColorDirection")};p.prototype.u0=I();p.prototype.mb=function(){n.prototype.mb.call(this);if(!this.$h){this.$h=
this.u0();this.Oa(this.$h)}if(!this.Ka){this.Ka=new r;this.Oa(this.Ka)}};p.prototype.nI=function(){if(this.get("pressed")){this.set("pressed",B);this.trigger(new i(f.Sj))}else{this.set("pressed",m);this.trigger(new i(f.yi))}};p.prototype.Ma=function(){var a=B;if(this.v("mode")){if(this.p("mode")==j.ne){this.unbind(f.ca,this.nI,this,m);this.set("autoPressed",m)}else{this.bind(f.ca,this.nI,this,m);this.set("autoPressed",B)}this.I("mode");a=m}if(a||this.v("pressed"))this.p("mode")==j.Uj?this.QF(this.p("pressed")==
m):a&&this.QF(B);if(this.v("label")){a=this.p("label");this.Ka.set("text",a);this.Ka.set("visible",a?m:B);this.I("label")}this.Yb(p.Dda,p.Eda,[this.Ka],m,m);if(this.v("iconBeforeLabel")){this.p("iconBeforeLabel")==B?this.Zm(this.Ka,0):this.Zm(this.$h,0);this.I("iconBeforeLabel")}if(this.v("iconWidth")){this.$h.set("width",this.p("iconWidth"));this.I("iconWidth")}if(this.v("iconHeight")){this.$h.set("height",this.p("iconHeight"));this.I("iconHeight")}if(this.v("buttonGroup")){(a=this.p("buttonGroup"))?
e.register(this,a):e.KO(this);this.I("buttonGroup")}this.Yb(["horizontalAlign","verticalAlign"],{},[this.$h],m,B);n.prototype.Ma.call(this)};p.Dda=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];p.Eda={};d(p.Dda).each(function(a){p.Eda[a]=a});return p});
define("jb",["require","kG","lf","eQ","nU"],function(a){var b=a("kG"),d=a("lf"),c=a("eQ"),a=a("nU"),b=b.extend(d,function(){d.call(this)});c.F("BaseButton",b).H("UIComponent").Q({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]"}).vs(["fontSize","rollOverFontSize","pressedFontSize","pressedRollOverFontSize"]).fc([a.yi,a.Sj]).hh([a.ca]);return b});
define("ei","kG,lh,nU,cs,bg,nx,bC".split(","),function(a,b,d,c,g,f,i){var e={},j=a.extend(b,function(){b.call(this);this.cb=l;this.Yn=[];this.o="stopped";this.set("easing","linear");this.set("duration",1E3);this.set("loop",B);this.set("animationDirection","normal")});j.prototype.play=function(a){a||(a=e);if(!this.cH(a))if(this.o=="stopped"||this.Yn.indexOf(a)<0){this.o="playing";this.Yn.push(a);this.qe=0;this.cb=Math.max(this.get("duration",1E3),1);this.Qf=new f(this.get("easing","linear"),[new i("pos",
0,1)],this.cb);this.Qf.setTime(this.qe);this.UF();this.Gu();this.mL()}else this.o="playing"};j.prototype.reverse=function(a){a||(a=e);if(!this.tQa(a))if(this.o=="stopped"||this.Yn.indexOf(a)<0){this.o="playingReverse";this.Yn.push(a);this.qe=this.cb=Math.max(this.get("duration",1E3),0);this.Qf=new f(this.get("easing","linear"),[new i("pos",0,1)],this.cb);this.Qf.setTime(this.qe);this.UF();this.Gu();this.mL()}else this.o="playingReverse"};j.prototype.stop=function(){if(this.o!="stopped"){this.o="stopped";
if(this.qe!==0){this.qe=0;this.Qf.setTime(this.qe);this.Gu();this.mL()}}};j.prototype.end=function(){if(this.o!="stopped"){this.qe=this.cb;this.Qf.setTime(this.qe);this.Gu();this.mL()}};j.prototype.cancel=function(){this.o="stopped";this.qe=0;this.Yn=[]};j.prototype.cH=function(a){return this.o=="playing"&&this.Yn.indexOf(a)>=0};j.prototype.tQa=function(a){return this.o=="playingReverse"&&this.Yn.indexOf(a)>=0};j.prototype.rj=function(a){if(this.o!="stopped"){this.qe=this.o=="playing"?Math.min(this.cb,
this.qe+a):Math.max(0,this.qe-a);this.Qf.setTime(this.qe);this.Gu();this.mL()}};j.prototype.Bk=function(){return this.Qf&&this.Qf.gb("pos")||0};j.prototype.Ew=function(a){if(this.Yn)for(var b=0;b<this.Yn.length;b++)a.call(this,this.Yn[b],b)};j.prototype.UF=function(){this.trigger(new c(this.o=="playingReverse"?j.Qba:j.Rba))};j.prototype.Gu=function(){this.trigger(new c(j.WO))};j.prototype.SF=function(){this.trigger(new c(j.Zi))};j.prototype.TF=function(){this.trigger(new c(j.rq))};j.prototype.mL=
function(){if(this.o=="playingReverse"&&this.qe<=0){this.qe=0;this.TF();this.Yn=[];if(this.o!="stopped"){this.o="stopped";this.get("loop")&&this.play()}}else if(this.o=="playing"&&this.qe>=this.cb){this.qe=this.cb;this.SF();this.Yn=[];if(this.o!="stopped"){this.o="stopped";this.get("animationDirection")=="alternate"?this.reverse():this.get("loop")&&this.play()}}else this.o!="stopped"&&g.yb(this.rj,this)};j.Rba="start";j.WO="frame";j.Zi="end";j.Qba="reverseStart";j.rq="reverseEnd";return j});
define("go",["require","nU","ei"],function(a){var b=a("nU"),d=a("ei");return{sCa:function(){this.$j=this.oe=q;this.bind(b.hc,this.yga,this,m);this.bind(b.nc,this.tga,this,m);this.bind(b.bc,this.vga,this,m);this.bind(b.rb,this.uga,this,m);this.bind(b.u("effect"),this.rga,this,m);this.bind(b.u("rollOverEffect"),this.wga,this,m);this.cA=B},RUa:function(){this.unbind(b.hc,this.yga,this,m);this.unbind(b.nc,this.tga,this,m);this.unbind(b.bc,this.vga,this,m);this.unbind(b.rb,this.uga,this,m);this.unbind(b.u("effect"),
this.rga,this,m);this.unbind(b.u("rollOverEffect"),this.wga,this,m)},yga:function(){this.oe&&this.oe.play()},tga:function(){this.oe&&this.oe.stop();this.$j&&this.$j.stop();this.cA=B},vga:function(){if(!this.cA&&(this.cA=m,this.$j))if(this.oe&&this.oe.get("loop")&&0<this.oe.Bk())this.oe.reverse();else if(!this.oe||0==this.oe.Bk()||1==this.oe.Bk())this.oe&&this.oe.stop(),this.$j.play()},uga:function(){this.cA&&(this.cA=B,this.$j&&(0<this.$j.Bk()?this.$j.reverse():this.oe&&this.oe.get("loop")&&this.oe.play()))},
sga:function(){this.n1()},n1:function(){this.cA&&this.$j&&(this.oe.stop(),this.$j.play())},xga:function(){this.cA||(this.$j.stop(),this.oe&&this.oe.get("loop")&&this.oe.play())},rga:function(){this.oe&&this.oe.unbind(d.Zi,this.sga,this,m);this.oe&&this.oe.unbind(d.rq,this.n1,this,m);(this.oe=this.get("effect"))&&this.oe.bind(d.Zi,this.sga,this,m);this.oe&&this.oe.bind(d.rq,this.n1,this,m)},wga:function(){this.$j&&this.$j.unbind(d.rq,this.xga,this,m);(this.$j=this.get("rollOverEffect"))&&this.$j.bind(d.rq,
this.xga,this,m)}}});
define("ic","require,kG,lh,nU,eQ,go".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),a=a("go"),f=b.extend(d,function(){d.call(this);this.sCa();this.Cj=this.XE=this.L2=this.K2=B;this.set("clickEnabled",m);this.set("enabled",m);this.set("hidden",B);this.set("hideBasedOnDistance",B);this.set("hideWhileUserInteracting",B);this.set("hideWhileMoving",B);this.set("opacity",1);this.set("preload",B);this.set("rollOverEnabled",m);this.set("transparentAreaActive",B);this.set("useHandCursor",m)});
b.VB(f,[a]);g.F("Model3DObject",f).H("Object").Q({clickEnabled:"bool",effect:"Effect",enabled:"bool",hidden:"bool",hideBasedOnDistance:"bool",hideWhileUserInteracting:"bool",hideWhileMoving:"bool",opacity:"number",preload:"bool",rollOverEffect:"Effect",rollOverEnabled:"bool",transparentAreaActive:"bool",useHandCursor:"bool"}).fc([c.nc,c.ca,c.zb,c.Wb,c.rb,c.bc,c.hc]);f.prototype.set=function(a,b){d.prototype.set.call(this,a,b);(a=="hideBasedOnDistance"||a=="hideWhileUserInteracting"||a=="hideWhileMoving")&&
this.CM()};f.prototype.Baa=function(a){if(this.L2!==a){this.L2=a;this.CM()}};f.prototype.yO=function(a){if(this.Cj!==a){this.Cj=a;this.CM()}};f.prototype.tO=function(a){if(this.XE!==a){this.XE=a;this.CM()}};f.prototype.Aaa=function(a){if(this.K2!==a){this.K2=a;this.CM()}};f.prototype.CM=function(){this.set("hidden",this.L2||this.K2||this.XE&&this.get("hideWhileMoving")||this.Cj&&this.get("hideWhileUserInteracting"))};return f});
define("fM",["require","kG","nU","eQ","ic"],function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("ic"),a=b.extend(g,function(){g.call(this);this.set("depth",1);this.set("depthTest",m);this.set("draggableArrowLength",50);this.set("draggableSphereRadius",5);this.set("draggableXControlsColor","#ff0000");this.set("draggableYControlsColor","#00ff00");this.set("draggableZControlsColor","#0000ff");this.set("height",1);this.set("lineColor","#ffffff");this.set("lineOpacity",1);this.set("lineWidth",1);this.set("faceColor",
"#ffffff");this.set("faceOpacity",0);this.set("positionDraggable",B);this.set("sizeDraggable",B);this.set("width",1)});c.F("BoxModel3DObject",a).H("ExternalModel3DObject").Q({depth:"number",depthTest:"bool",draggableSphereRadius:"number",draggableArrowLength:"number",draggableXControlsColor:"color",draggableYControlsColor:"color",draggableZControlsColor:"color",faceColor:"color",faceOpacity:"number",height:"number",lineColor:"color",lineOpacity:"number",lineWidth:"number",minDepth:"number",minHeight:"number",
minWidth:"number",positionDraggable:"bool",sizeDraggable:"bool",width:"number"}).fc([d.rn,d.mP]);return a});define("lv",[],function(){return{NONE:"none",Hs:"fill",Qg:"fit_inside",sq:"fit_outside",Bo:"fit_to_width",Pj:"fit_to_height",ywa:"custom"}});
define("lO","require,dY,jquery.mod,kG,nU,hy,t,mk,lv,d,gg,jR".split(","),function(a){function b(a){this.L_=a;this.bd=[];this.Mk=q}var d=a("dY"),c=a("jquery.mod"),g=a("kG"),f=a("nU"),i=a("hy"),e=a("t"),j=a("mk"),o=a("lv"),k=a("d"),n=a("gg"),r=a("jR");b.wm=document.createElement("a");b.prototype.IAa=function(a){b.wm.href=a;return b.wm.href};b.prototype.load=function(a,b,e){a=this.IAa(a);if(this.Mk&&!this.Mk.El()){this.Mk.cancel();this.bd=d(this.bd).without(this.Mk)}if(this.Mk=d(this.bd).find(function(b){return b.pi()==
a}))this.bd=d(this.bd).without(this.Mk);else{this.Mk=new r(i.Sca);this.Mk.load(a)}for(this.bd.splice(0,0,this.Mk);this.bd.length>this.L_;)this.bd.pop().cancel();if(b){var c=this.Mk,g=function(){b.call(e||window,c.jf(),c.fd(),c.Td())};this.Mk.El()?g():this.Mk.bind(f.U,g)}};b.prototype.clear=function(){this.bd.forEach(function(a){a.cancel()});this.Mk=q};a=g.extend(k,function(a){k.call(this);this.je("Image");this.L_=a||1;this.H8=B;this.Tk=j.Ja;this.qR=B;this.xl=j.ic;this.xV=B;this.ef=o.NONE;this.t6=
B;this.jF=this.kF=0;this.Y2=this.X4=B;this.Lb=this.tb=0;this.qt=B;this.ex=this.Uk=this.Ob=this.yR=this.xR=q;this.bind(f.sc,this.VEa,this);this.bind(f.hc,this.WEa,this)});a.prototype.k2=function(){this.ex=new b(this.L_);this.k2=S("ex");return this.ex};a.prototype.ab=function(){k.prototype.ab.call(this);this.f("horizontalAlign",j.Ja);this.f("verticalAlign",j.ic);this.f("scaleMode",o.NONE)};a.prototype.set=function(a,b){if(a=="url"&&this.get("url")!=b){this.H8=m;this.$d()}k.prototype.set.call(this,a,
b)};a.prototype.qH=function(a){if(this.Tk!=a){this.Tk=a;this.qR=m;this.$d()}};a.prototype.xH=function(a){if(this.xl!=a){this.xl=a;this.xV=m;this.$d()}};a.prototype.Ey=function(a){if(this.ef!=a){this.ef=a;this.t6=m;this.$d();this.Nb()}};a.prototype.VEa=function(){this.qt=m;this.$d()};a.prototype.WEa=function(){this.Cpa()};var p={position:"static",cursor:"inherit",display:"inline",verticalAlign:"top",visibility:"hidden","pointer-events":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"none",
"-webkit-user-select":"none","touch-callout":"none","-webkit-touch-callout":"none"};e.browser()==e.Dk&&e.ob()&&(p.transform="translate3d(0,0,0)");a.prototype.tea=function(a,b,e){this.kF=b?b:0;this.jF=e?e:0;if(this.Ob){this.Ob.remove();this.Ob=q}if(this.Uk=a){this.Ob=c(this.Uk);n.css(this.Uk,p);this.xR.append(this.Ob)}this.X4=this.Y2=m;this.$d();this.Nb();this.Ob&&this.trigger(f.U)};a.prototype.mb=function(){k.prototype.mb.call(this);if(!this.xR){this.yR=document.createElement("div");this.xR=c(this.yR);
n.css(this.yR,{position:"static",overflow:"hidden",cursor:"inherit"});this.Ab().append(this.xR)}};a.prototype.du=function(){this.Zk=this.kF+this.Bl()+this.as();this.Yk=this.jF+this.bs()+this.QG();this.Uia=this.kF==0&&this.jF==0?0:this.kF/this.jF;this.NJ=this.OJ=0};a.prototype.Ma=function(){if(this.v("scaleMode")){this.Ey(this.p("scaleMode"));this.I("scaleMode")}if(this.v("horizontalAlign")){this.qH(this.p("horizontalAlign"));this.I("horizontalAlign")}if(this.v("verticalAlign")){this.xH(this.p("verticalAlign"));
this.I("verticalAlign")}if(this.kea())this.qt=m;k.prototype.Ma.call(this);this.Cpa();if(this.EPa()){var a=B;if(this.t6||this.X4||this.qt){var b=this.Se(),e=this.Re(),c=this.kF,f=this.jF,g,d;if(c==0||f==0)d=g=0;else switch(this.ef){case o.NONE:g=c;d=f;break;case o.Hs:g=b;d=e;break;case o.Qg:if(c*e>f*b){g=b;d=f*b/c}else{g=c*e/f;d=e}break;case o.sq:if(c*e>f*b){g=c*e/f;d=e}else{g=b;d=f*b/c}break;case o.Bo:g=b;d=f*b/c;break;case o.Pj:g=c*e/f;d=e}if(this.tb!=g||this.Lb!=d){this.tb=g;this.Lb=d;a=m}this.X4=
this.t6=B}if(a||this.qt||this.Y2){this.xV=this.qR=m;this.Uk&&n.css(this.Uk,{width:this.tb+"px",height:this.Lb+"px",visibility:"inherit"});n.css(this.yR,{width:this.Se()+"px",height:this.Re()+"px","border-top-left-radius":this.mR(this.iDa(),this.eha(),this.cha())+"px","border-top-right-radius":this.mR(this.jDa(),this.eha(),this.dha())+"px","border-bottom-left-radius":this.mR(this.gDa(),this.bha(),this.cha())+"px","border-bottom-right-radius":this.mR(this.hDa(),this.bha(),this.dha())+"px"});this.Nb();
this.Y2=this.qt=B}if(this.qR&&this.Uk){switch(this.Tk){case j.Ja:n.css(this.Uk,{"margin-left":0,"margin-right":this.Se()-this.tb+"px"});break;case j.Xa:n.css(this.Uk,{"margin-left":this.Se()-this.tb+"px","margin-right":0});break;case j.ae:n.css(this.Uk,{"margin-left":Math.floor((this.Se()-this.tb)*0.5)+"px","margin-right":Math.ceil((this.Se()-this.tb)*0.5)+"px"})}this.qR=B}if(this.xV&&this.Uk){switch(this.xl){case j.ic:n.css(this.Uk,{"margin-top":0,"margin-bottom":this.Re()-this.Lb+"px"});break;case j.ac:n.css(this.Uk,
{"margin-top":this.Re()-this.Lb+"px","margin-bottom":0});break;case j.zd:n.css(this.Uk,{"margin-top":Math.floor((this.Re()-this.Lb)*0.5)+"px","margin-bottom":Math.ceil((this.Re()-this.Lb)*0.5)+"px"})}this.xV=B}}};a.prototype.Cpa=function(){if(this.H8){var a=this.get("url");if(a)this.k2().load(a,this.tea,this);else{this.k2().clear();this.tea(q,0,0)}this.H8=B}};a.prototype.mR=function(a,b,e){if(!a)return 0;var c=0;b&&(c=Math.max(c,b));e&&(c=Math.max(c,e));return Math.max(0,a-c)};return a});
define("fy",["kG","lv","gq","lf","lO"],function(a,b,d,c,g){a=a.extend(c,function(){c.call(this)});a.prototype.ab=function(){c.prototype.ab.call(this);this.f("iconURL");this.m("rollOverIconURL",d.P,"iconURL");this.m("pressedIconURL",d.bb,"iconURL");this.m("pressedRollOverIconURL",d.Rb,"iconURL")};a.prototype.u0=function(){var a=new g(3);a.set("scaleMode",b.Qg);return a};a.prototype.Ma=function(){if(this.v("iconURL")){var a=this.p("iconURL");this.$h.set("url",a);this.$h.set("visible",a?m:B);this.I("iconURL")}c.prototype.Ma.call(this)};
return a});define("fx",["kG","fy","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("Button",a).H("BaseButton").Q({iconURL:"string",rollOverIconURL:"string",pressedIconURL:"string",pressedRollOverIconURL:"string"}).vi(["iconURL","rollOverIconURL","pressedIconURL","pressedRollOverIconURL"]);return a});
define("hE",["require","kG","lh","nU","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("angle",0);this.set("rotate",B);this.set("inertia",B)});a.F("CapPanoramaOverlay",b).H("PanoramaOverlay").Q({angle:"number",distance:"number",hfov:"number",image:"ImageResource",inertia:"bool",rotate:"bool",useHandCursor:"bool"}).fc([c.bc,c.rb,c.Gk,c.Sh]).hh([c.ca]);return b});
define("ht",["kG","eQ","hE"],function(a,b,d){a=a.extend(d,function(){d.call(this)});b.F("CeilingCapPanoramaOverlay",a).H("CapPanoramaOverlay");return a});
define("cr","dY,jquery.mod,kG,nU,cs,d".split(","),function(a,b,d,c,g,f){a=d.extend(f,function(){f.call(this);this.je("Canvas");this.j1=m;this.J=q;this.bind(c.sc,this.fAa,this)});a.prototype.fAa=function(){this.OW()};a.prototype.OW=function(){this.j1=m;this.Ck()};a.prototype.mb=function(){f.prototype.mb.call(this);if(!this.J){this.J=b("<canvas/>");this.J.css({position:"absolute",left:0,top:0,cursor:"inherit"});this.Ab().append(this.J)}};a.prototype.Ma=function(){this.kea()&&this.OW();f.prototype.Ma.call(this)};
a.prototype.Pg=function(){if(this.j1){this.j1=B;var a=this.J.get(0);a.width=this.Se();a.height=this.Re();this.RTa()}f.prototype.Pg.call(this)};a.prototype.QOa=function(){return this.J.get(0).width};a.prototype.POa=function(){return this.J.get(0).height};a.prototype.OOa=function(){return this.J.get(0).getContext("2d")};a.prototype.RTa=function(){this.trigger(new g(c.qa))};return a});
define("jw",["kG","nU","gq","lf","cr"],function(a,b,d,c,g){a=a.extend(c,function(){c.call(this)});a.prototype.Ol=function(){c.prototype.Ol.call(this)};a.prototype.ab=function(){c.prototype.ab.call(this);this.f("iconColor");this.m("rollOverIconColor",d.P,"iconColor");this.m("pressedIconColor",d.bb,"iconColor");this.m("pressedRollOverIconColor",d.Rb,"iconColor")};a.prototype.u0=function(){var a=new g;a.bind(b.qa,this.dwa,this,m);return a};a.prototype.Ma=function(){this.v("iconColor")&&(this.$h.OW(),
this.I("iconColor"));c.prototype.Ma.call(this)};a.prototype.DDa=function(){return this.p("iconColor")};a.prototype.EDa=function(){return this.$h.OOa()};a.prototype.GDa=function(){return this.$h.QOa()};a.prototype.FDa=function(){return this.$h.POa()};a.prototype.dwa=I();return a});
define("fG",["kG","jw","mk","gq"],function(a,b,d,c){a=a.extend(b,function(){b.call(this);this.$({horizontalAlign:d.ae,verticalAlign:d.zd})});a.prototype.ab=function(){b.prototype.ab.call(this);this.f("iconLineWidth");this.m("rollOverIconLineWidth",c.P,"iconLineWidth");this.m("pressedIconLineWidth",c.bb,"iconLineWidth");this.m("pressedRollOverIconLineWidth",c.Rb,"iconLineWidth")};a.prototype.NDa=function(){return this.p("iconLineWidth")};a.prototype.Ma=function(){this.v("iconLineWidth")&&(this.$h.OW(),
this.I("iconLineWidth"));b.prototype.Ma.call(this)};a.prototype.dwa=function(){var a=this.EDa(),b=this.DDa(),c=this.GDa(),e=this.FDa(),d=this.NDa();a.clearRect(0,0,c,e);a.lineWidth=d||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("iI",["kG","fG","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("CloseButton",a).H("BaseButton").Q({iconColor:"color",iconLineWidth:"number",rollOverIconColor:"color",rollOverIconLineWidth:"number",pressedIconColor:"color",pressedIconLineWidth:"number",pressedRollOverIconColor:"color",pressedRollOverIconLineWidth:"number"});return a});
define("jy",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("CookiesPolicy",b).H("Object").Q({url:"string",geographicArea:"or[array[string], string]"}).vi(["url"]);return b});
define("lg","require,dY,kJ,kG,nq,eQ".split(","),function(a){a("dY");var b=a("kJ"),d=a("kG"),c=a("nq"),a=a("eQ"),d=d.extend(c,function(){c.call(this)});a.F("Container",d).H("UIComponent").Q({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]"}).Mg({scrollTo:function(a,b){c.prototype.scrollTo.call(this,a,b)},scrollIntoView:function(a){b.xy(function(){c.prototype.scrollIntoView.call(this,a)}.bind(this))}});return d});
define("kO",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),a=b.extend(d,function(){d.call(this);this.ba=q});c.F("PanoramaFrame",a).H("Object").Q({thumbnailUrl:"string",snapshots:"array[PanoramaSnapshot]",overlays:"array[PanoramaOverlay]"}).vi(["thumbnailUrl"]);a.prototype.get=function(a,b){switch(a){case "overlays":return this.m2();case "hfov":case "vfov":case "pitch":case "flipImageHorizontally":case "minFaceSize":if(this.ba)return this.ba.get(a,b)}return d.prototype.get.call(this,
a,b)};a.prototype.m2=function(){var a=d.prototype.get.call(this,"overlays");a||(a=[]);return this.Z6(a)};a.prototype.Z6=function(a){if(this.VF===l||this.WR!=a){var b=function(a){return c.xa("PopupPanoramaOverlay",a)},d=function(a){return c.xa("LensFlarePanoramaOverlay",a)};this.WR=a;this.VF=[].concat(a.filter(function(a){return!(b(a)||d(a))}),a.filter(d),a.filter(b))}return this.VF};a.prototype.JNa=R("ba");a.prototype.UG=S("ba");a.prototype.Jj=T(B);return a});
define("nC",["require","kG","eQ","kO"],function(a){var b=a("kG"),d=a("eQ"),c=a("kO"),a=b.extend(c,function(){c.call(this)});d.F("CubicPanoramaFrame",a).H("PanoramaFrame").Q({cube:"ImageResource",stereoCube:"ImageResource",front:"ImageResource",left:"ImageResource",back:"ImageResource",right:"ImageResource",top:"ImageResource",bottom:"ImageResource"});return a});
define("hR",["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":"Mik\u00e4li et ole varma, mit\u00e4 Cardboard-versiota k\u00e4yt\u00e4t, valitse oletusarvoinen hotspot-hallinta. T\u00e4m\u00e4n j\u00e4lkeen katsomalla hotspotia, toiminto k\u00e4ynnistyy.",
"download-tour":"Lataa t\u00e4m\u00e4 sis\u00e4lt\u00f6 offline-toistoa varten","change-to-drag-and-release":"Muuta ohjaustilaa vet\u00e4m\u00e4ll\u00e4 ja vapauttamalla",accept:"Hyv\u00e4ksy",download:"Lataa","storage-not-provided-bookmark":"Tallennus ep\u00e4onnistui. Kokeile lis\u00e4t\u00e4 t\u00e4m\u00e4 verkkosivu kirjanmerkkeihin ja suorita lataus uudelleen.","dont-display-again":"\u00c4l\u00e4 n\u00e4yt\u00e4 t\u00e4t\u00e4 ilmoitusta uudelleen","web-server-required":"T\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 ei voi toistaa paikalliselta asemalta. Lataa sis\u00e4lt\u00f6 internet-palvelimelle ja yrit\u00e4 uudelleen.\nVoit my\u00f6s vet\u00e4\u00e4 htm-tiedoston (tai koko kansion) TourViewer-sovelluskuvakkeen p\u00e4\u00e4lle.",
cancel:"Sulje","change-to-click-and-move":"Muuta ohjaustilaa klikkaamalla ja siirt\u00e4m\u00e4ll\u00e4",yes:"Kyll\u00e4","delete-downloaded":"Poista","use-safari-for-vr":"Suosittelemme Safari-selainta t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa.","exit-fullscreen":"Sulje koko n\u00e4yt\u00f6n n\u00e4kym\u00e4",no:"Ei","download-failed":"Lataus ep\u00e4onnistui","giroscope-disabled-http":"K\u00e4yt\u00e4t t\u00e4t\u00e4 verkkosivua http:n kautta, joten laitteesi liiketunnistimet sek\u00e4 VR-tila on poistettu k\u00e4yt\u00f6st\u00e4. Ota ne k\u00e4ytt\u00f6\u00f6n siirtym\u00e4ll\u00e4 sivulle https:n kautta.",
"cookies-notice":"T\u00e4m\u00e4 verkkosivu k\u00e4ytt\u00e4\u00e4 ev\u00e4steit\u00e4 k\u00e4ytt\u00f6tilastojen ker\u00e4\u00e4miseen. Lis\u00e4tietoja <a>ev\u00e4stek\u00e4yt\u00e4nn\u00f6st\u00e4</a>.","use-cardboard":"K\u00e4yt\u00e4 Cardboardia","launch-default-browser":"K\u00e4ynnist\u00e4 oletusselaimessa","rotate-device":"K\u00e4\u00e4nn\u00e4 laitettasi","exit-vr":"Poistu VR-tilasta",reject:"Hylk\u00e4\u00e4","disable-measure":"Lopeta mittaaminen",downloading:"Ladataan","cardboard-v2":"Mik\u00e4li sinulla on Cardboard v2 -virtuaalilasit, joissa on painike, voit katsoa hotspotia ja aktivoida sen painamalla painiketta.",
"enable-video-audio-prompt":"Otetaanko \u00e4\u00e4ni ja video k\u00e4ytt\u00f6\u00f6n?","storage-not-provided-launch-from-desktop":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 ty\u00f6p\u00f6yd\u00e4n kuvakkeesta aloittaaksesi lataamisen.",downloaded:"T\u00e4m\u00e4 sis\u00e4lt\u00f6 on ladattu offline-toistoa varten","samsung-internet-vr-app-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Sinun on lis\u00e4ksi m\u00e4\u00e4ritett\u00e4v\u00e4 Samsung Internet oletusselaimeksi.",
"samsung-internet-vr-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Aseta \u00e4lypuhelin virtuaalilaseihin aloittaaksesi.","enable-video-prompt":"Otetaanko video k\u00e4ytt\u00f6\u00f6n?","giroscope-disabled-safari-request-permission":["Laitteesi liiketunnistimen k\u00e4ytt\u00f6oikeus ja VR-tila on poistettu k\u00e4yt\u00f6st\u00e4 t\u00e4ll\u00e4 sivustolla.",
"N\u00e4hd\u00e4ksesi t\u00e4m\u00e4n verkkosivun oikein, valitse jatka ja hyv\u00e4ksy lupapyynt\u00f6 pyydett\u00e4ess\u00e4."],"storage-not-provided-launch-from-homescreen":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 kotin\u00e4yt\u00f6n kuvakkeesta aloittaaksesi lataamisen","enter-fullscreen":"Avaa koko n\u00e4yt\u00f6n n\u00e4kym\u00e4","use-cardboard-v2":"K\u00e4yt\u00e4 Cardboard v2:sta",unmute:"Ota \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n","enter-vr":"Siirry VR-tilaan","enable-measure":"Aloita mittaaminen",
"use-cardboard-info":"Voit k\u00e4ytt\u00e4\u00e4 mit\u00e4 tahansa yhteensopivia Google Cardboard -virtuaalilaseja katsellaksesi t\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 VR-tilassa.","refresh-downloaded":"P\u00e4ivit\u00e4","use-default-cardboard":"K\u00e4yt\u00e4 oletuksena","enable-audio-prompt":"Otetaanko \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n?"},"fr-fr":{mute:"D\u00e9sactiver l'audio","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.",
"download-tour":"Download Tour for offline playing","giroscope-disabled-safari-request-permission":["L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour ce site.","Pour voir correctement cette page Web, veuillez cliquer sur Continuer et accepter la demande d'autorisation si elle est affich\u00e9e."],accept:"Accepter",download:"Download",downloading:"Downloading","dont-display-again":"Ne plus afficher cette information","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",
cancel:"Cancel","change-to-click-and-move":"Changer le mode de contr\u00f4le pour cliquer et d\u00e9placer",yes:"oui","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Quitter le mode plein \u00e9cran",no:"non","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","download-failed":"Download failed","giroscope-disabled-http":"L'acc\u00e8s aux mouvements et \u00e0 l'orientation de votre appareil est d\u00e9sactiv\u00e9 pour cette page Web. Veuillez y acc\u00e9der via https.",
"cookies-notice":"Cette page Web utilise des cookies pour collecter des statistiques d'utilisation. Pour plus d'informations, veuillez consulter la <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:"\u0412\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0437\u0432\u0443\u043a","cardboard-v1":"\u042f\u043a\u0449\u043e \u0432\u0438 \u043d\u0435 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0456, \u044f\u043a\u0443 \u0432\u0435\u0440\u0441\u0456\u044e Cardboard \u0432\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u0435, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c. \u041f\u043e\u0442\u0456\u043c \u0432\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0435\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0442\u0430 \u043f\u043e\u0447\u0435\u043a\u0430\u0439\u0442\u0435, \u0434\u043e\u043a\u0438 \u0434\u0456\u044f \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f.",
"download-tour":"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0442\u0443\u0440 \u0434\u043b\u044f \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0432 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456","change-to-drag-and-release":"\u0417\u043c\u0456\u043d\u0456\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 \u041f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u0456 \u0432\u0456\u0434\u043f\u0443\u0441\u0442\u0456\u0442\u044c",
accept:"\u041f\u0440\u0438\u0439\u043c\u0456\u0442\u044c",cancel:"\u0412\u0456\u0434\u043c\u0456\u043d\u0438\u0442\u0438","storage-not-provided-bookmark":"\u041f\u043e\u0441\u0442\u0456\u0439\u043d\u0435 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u043d\u043d\u044f \u0437\u0430\u0431\u043e\u0440\u043e\u043d\u0435\u043d\u043e. \u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u043e\u0434\u0430\u0442\u0438 \u0446\u044e \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0442\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0457\u0457.",
"dont-display-again":"\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u0443\u0439\u0442\u0435 \u0446\u044e \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e \u0437\u043d\u043e\u0432\u0443","web-server-required":"\u0426\u0435\u0439 \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0438\u0439 \u0442\u0443\u0440 \u043d\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0439\u043e\u0433\u043e \u0432 \u0406\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0456 \u043f\u043e\u0432\u0442\u043e\u0440\u0456\u0442\u044c \u0441\u043f\u0440\u043e\u0431\u0443.\n\u042f\u043a\u0449\u043e \u0431\u0430\u0436\u0430\u0454\u0442\u0435, \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u0444\u0430\u0439\u043b htm (\u0430\u0431\u043e \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0443\u0440\u0443) \u043d\u0430 \u043f\u0456\u043a\u0442\u043e\u0433\u0440\u0430\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 TourViewer.",
download:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438","change-to-click-and-move":"\u0417\u043c\u0456\u043d\u0456\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 \u041a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u0456 \u043f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c",yes:"\u0442\u0430\u043a","delete-downloaded":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438","use-safari-for-vr":"\u041c\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0454\u043c\u043e Safari \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0442\u0443\u0440\u0443 \u0432 \u0440\u0435\u0436\u0438\u043c\u0456 VR",
"exit-fullscreen":"\u0412\u0438\u0439\u0442\u0438 \u0437 \u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0443",no:"\u043d\u0456","download-failed":"\u041d\u0435 \u0432\u0434\u0430\u043b\u043e\u0441\u044f \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438","giroscope-disabled-http":"\u0412\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0446\u0456\u0454\u0457 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 http, \u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0440\u0443\u0445\u0443 \u0442\u0430 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u0432\u0430\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e \u0442\u0430 \u0440\u0435\u0436\u0438\u043c VR \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e. \u0429\u043e\u0431 \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0457\u0445, \u043f\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044c \u0434\u043e \u043d\u0438\u0445 \u0447\u0435\u0440\u0435\u0437 https.",
"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":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Cardboard","launch-default-browser":"\u0417\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","rotate-device":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u043e\u0432\u0435\u0440\u043d\u0456\u0442\u044c \u0441\u0432\u0456\u0439 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439",
"exit-vr":"\u0412\u0438\u0439\u0434\u0456\u0442\u044c \u0456\u0437 VR","storage-not-provided-launch-from-desktop":"\u0429\u043e\u0431 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043e\u0433\u043b\u044f\u0434 \u0456\u0437 \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0440\u043e\u0431\u043e\u0447\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0456.","disable-measure":"\u041f\u0440\u0438\u043f\u0438\u043d\u0456\u0442\u044c \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u043d\u043d\u044f",
downloading:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f","cardboard-v2":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Cardboard v2, \u044f\u043a\u0430 \u043f\u043e\u0441\u0442\u0430\u0447\u0430\u0454\u0442\u044c\u0441\u044f \u0437 \u043a\u043d\u043e\u043f\u043a\u043e\u044e, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0442\u0430 \u043d\u0430\u0442\u0438\u0441\u043d\u0443\u0442\u0438 \u043a\u043d\u043e\u043f\u043a\u0443, \u0449\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0457\u0457.",
"enable-video-audio-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u0435\u043e \u0442\u0430 \u0430\u0443\u0434\u0456\u043e?",reject:"\u0412\u0456\u0434\u0445\u0438\u043b\u0438\u0442\u0438",downloaded:"\u0426\u0435\u0439 \u0442\u0443\u0440 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043e \u0434\u043b\u044f \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0432 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456.",
"samsung-internet-vr-app-info":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Gear VR, \u0441\u0443\u043c\u0456\u0441\u043d\u0430 \u0437 \u0446\u0438\u043c \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u0454\u043c, \u0456 \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0457 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR, \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0440\u043e\u0431\u0438\u0442\u0438 Samsung Internet \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c.",
"samsung-internet-vr-info":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Gear VR, \u0441\u0443\u043c\u0456\u0441\u043d\u0430 \u0437 \u0446\u0438\u043c \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u0454\u043c, \u0456 \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0457 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0456, \u0432\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0457 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR, \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0440\u0430\u0437 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043f\u0456\u0434\u2019\u0454\u0434\u043d\u0430\u0442\u0438 \u043c\u043e\u0431\u0456\u043b\u044c\u043d\u0438\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043e \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0438.",
"enable-video-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0440\u0443\u0445\u0443 \u0442\u0430 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u0432\u0430\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u0440\u0435\u0436\u0438\u043c VR \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0443.",
"\u0429\u043e\u0431 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u043d\u0443\u0442\u0438 \u0446\u044e \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u00ab\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438\u00bb \u0442\u0430 \u043f\u0440\u0438\u0439\u043c\u0456\u0442\u044c \u0437\u0430\u043f\u0438\u0442 \u043d\u0430 \u0434\u043e\u0437\u0432\u0456\u043b, \u044f\u043a\u0449\u043e \u0437\u2019\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0438\u0442."],
"storage-not-provided-launch-from-homescreen":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0442\u0443\u0440 \u0437\u0456 \u0437\u043d\u0430\u0447\u043a\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u0435\u043a\u0440\u0430\u043d\u0430, \u0449\u043e\u0431 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438.","enter-fullscreen":"\u041f\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044c \u0443 \u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c",
"use-cardboard-v2":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Cardboard v2",unmute:"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0437\u0432\u0443\u043a","enter-vr":"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u043c\u0456\u0441\u0442 VR","enable-measure":"\u041f\u043e\u0447\u043d\u0456\u0442\u044c \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u0442\u0438","use-cardboard-info":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0443 \u0441\u0443\u043c\u0456\u0441\u043d\u0443 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0443 Google Cardboard \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR.",
"refresh-downloaded":"\u041e\u043d\u043e\u0432\u0438\u0442\u0438","use-default-cardboard":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","enable-audio-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0430\u0443\u0434\u0456\u043e?"},"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("nS",["require","kG","hR","lB"],function(a){function b(a){return c[j][a]||c.en[a]||a}var d=a("kG"),c=a("hR"),g=a("lB"),f;for(f in c)c[f.substr(0,2)]=c[f];c.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>';
c["zh-hk"]=c["zh-mo"]=c["zh-tw"];c.no=c.nn;var i=function(){var a=window.navigator,b=["language","browserLanguage","systemLanguage","userLanguage"],e,c,f=[];(e=g.js("language"))&&f.push(e.toLowerCase());var d=a.languages;if(Array.isArray(d))for(e=0;e<d.length;e++)if((c=d[e])&&c.length)c=c.toLowerCase(),-1==f.indexOf(c)&&f.push(c);for(e=0;e<b.length;e++)if((c=a[b[e]])&&c.length)c=c.toLowerCase(),-1==f.indexOf(c)&&f.push(c);return f}(),e=Object.keys(c),j=function(){for(var a=0;a<i.length;a++){var b=
i[a];if(0<=e.indexOf(b))return b;b=b.substr(0,2);if(0<=e.indexOf(b))return b}return"en"}();b.log=function(){d.log("translation lang: "+j);d.log("browser lang: "+i.join(", "))};return b});
define("og",["require"],function(){var a={};a.src=a.UVa="data:video/mp4;base64,AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAAAC721kYXQhEAUgpBv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3pwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcCEQBSCkG//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADengAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAsJtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAALwABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAB7HRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAIAAAAAAAAALwAAAAAAAAAAAAAAAQEAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAAC8AAAAAAAEAAAAAAWRtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAKxEAAAIAFXEAAAAAAAtaGRscgAAAAAAAAAAc291bgAAAAAAAAAAAAAAAFNvdW5kSGFuZGxlcgAAAAEPbWluZgAAABBzbWhkAAAAAAAAAAAAAAAkZGluZgAAABxkcmVmAAAAAAAAAAEAAAAMdXJsIAAAAAEAAADTc3RibAAAAGdzdHNkAAAAAAAAAAEAAABXbXA0YQAAAAAAAAABAAAAAAAAAAAAAgAQAAAAAKxEAAAAAAAzZXNkcwAAAAADgICAIgACAASAgIAUQBUAAAAAAfQAAAHz+QWAgIACEhAGgICAAQIAAAAYc3R0cwAAAAAAAAABAAAAAgAABAAAAAAcc3RzYwAAAAAAAAABAAAAAQAAAAIAAAABAAAAHHN0c3oAAAAAAAAAAAAAAAIAAAFzAAABdAAAABRzdGNvAAAAAAAAAAEAAAAsAAAAYnVkdGEAAABabWV0YQAAAAAAAAAhaGRscgAAAAAAAAAAbWRpcmFwcGwAAAAAAAAAAAAAAAAtaWxzdAAAACWpdG9vAAAAHWRhdGEAAAABAAAAAExhdmY1Ni40MC4xMDE=";return a});
define("dR",["require","og","t"],function(a){function b(a){var b=document.createElement("video");b.setAttribute("webkit-playsinline","true");b.setAttribute("playsinline","true");b.src=i.src;var e=b.play();if(e){var c=B;e.then(function(){c=m;b.pause();a(B)})["catch"](function(){c||a(m)})}else b.pause(),a(B)}function d(a){var b=B,e=document.createElement("video");e.setAttribute("webkit-playsinline","true");e.setAttribute("playsinline","true");e.src="";(e=e.play())?e["catch"](function(a){b="NotAllowedError"!==
a.name}).then(function(){a(!b)}):a(m)}function c(a){n=a;o=m;g()}function g(){for(;k.length;)k.shift().call(window,n)}function f(){j||(j=m,e.browser()==e.Rl&&11<=e.hO()?c(m):e.browser()==e.Qh?b(c):d(function(a){a?b(c):c(B)}))}var i=a("og"),e=a("t"),j=B,o=B,k=[],n;return{test:function(a){!o&&!j&&f();k.push(a);o&&g()}}});
define("bB",["require","nS","lm","dR"],function(a){function b(a,b){this.UB=a;this.Yu=b;this.Dp=this.Dp.bind(this);this.Ep=B}function d(){this.Dp=this.Dp.bind(this);this.I8=this.I8.bind(this);this.o="not tested";this.Wda=[];this.et=[];this.vT=B;g.AH(this.I8)}var c=a("nS"),g=a("lm"),f=a("dR");d.prototype.JTa=function(){"not tested"==this.o&&(this.o="testing",f.test(function(a){this.o=a?"requires action":"allowed";this.nGa()}.bind(this)))};d.prototype.nGa=function(){"allowed"==this.o?this.Dp(m):this.vT&&
(this.vT=B,this.et.forEach(function(a){a.Wi()}))};d.prototype.rba=function(a){"allowed"==this.o?a.call(this,m):this.Wda.push(a)};d.prototype.Wi=function(a){this.tr(a)};d.prototype.cancel=function(a){this.Kz(a)};d.prototype.g9=function(){return"allowed"==this.o};d.prototype.QSa=function(){"allowed"==this.o&&(this.o="requires action")};d.prototype.I8=function(){setTimeout(this.dAa.bind(this),300);this.Iq(m)};d.prototype.dAa=function(){for(;this.et.length;)this.et.pop().cancel()};d.prototype.tr=function(a){"testing"==
this.o||"not tested"==this.o?(this.ZZ(a),this.vT=m):"requires action"==this.o&&this.ZZ(a).Wi()};d.prototype.Kz=function(a){"testing"==this.o||"not tested"==this.o?this.vT=B:"requires action"==this.o&&this.ZZ(a).cancel()};d.prototype.Dp=function(a){var b=this.et;this.et=[];b.forEach(function(b){a||b.UB.set("mute",m);b.cancel()});this.Iq(a)};d.prototype.Iq=function(a){this.o="allowed";this.Wda.forEach(function(b){b.call(window,a)})};d.prototype.ZZ=function(a){for(var e=q,c=0;c<this.et.length&&!e;c++)this.et[c].UB==
a&&(e=this.et[c]);e||(e=new b(a,this.Dp),this.et.push(e));return e};b.prototype.Wi=function(){this.Ep||(this.Ep=m,"button"==this.UB.get("mediaActivationMode")?this.UB.nG.tRa(this.Dp):this.UB.TE.show(c("enable-audio-prompt"),this.Dp))};b.prototype.cancel=function(){this.UB.nG.TNa(this.Dp);this.UB.TE.hide(this.Dp)};b.prototype.Dp=function(a){this.Yu(a!==B);this.Ep=B};return new d});
define("hA",["require","nU","lN","bB","gI"],function(a){var b=a("nU"),d=a("lN"),c=a("bB"),g=a("gI");if(!d.uba||"AudioContext"in window===B)return q;var f=new AudioContext;c.rba(function(){"running"!==f.state&&f.resume()});g.bind(b.qa,function(){g.visible&&"interrupted"==f.state&&f.resume()});return f});
define("dX","require,hA,nU,t,lB,lN,gI".split(","),function(a){function b(a){this.ji=this.ji.bind(this);this.jr=this.jr.bind(this);this.M=q;this.Le=B;this.Vp=this.dR=1;this.pR=m;this.Hw=this.HD=q;this.M=a;this.M.addEventListener("play",this.ji,m);this.M.addEventListener("playing",this.jr,m);this.Fna();this.LB()}var d=a("hA");a("nU");var c=a("t"),g=a("lB"),f=a("lN");a("gI");var i;b.prototype.clear=function(){if(this.M){this.fLa();this.M.removeEventListener("play",this.ji,m);this.M.removeEventListener("playing",
this.jr,m);this.M=q}};b.prototype.Fna=function(){if(f.uba&&c.browser()==c.Qh&&d&&!this.HD&&this.Nw()){if(!i){i=d.createDelay();i.delayTime.value=0.3;i.connect(d.destination)}this.HD=d.createMediaElementSource(this.M);this.Hw=d.createGain();this.HD.connect(this.Hw);this.Hw.connect(i)}};b.prototype.fLa=function(){if(this.HD){this.HD.disconnect();this.HD=q}if(this.Hw){this.Hw.disconnect();this.Hw=q}};b.prototype.ZRa=function(a){if(this.pR!=a){this.M.log("AudioController","set hasAudio: "+a);this.pR=
a;this.LB()}};b.prototype.nf=function(a){if(this.Le!=a){this.M.log("AudioController","set muted: "+a);this.Le=a;this.LB()}};b.prototype.wv=function(a){if(this.Vp!=a){this.M.log("AudioController","set volume: "+a);this.Vp=a;this.LB()}};b.prototype.mO=function(a){if(this.dR!=a){this.M.log("AudioController","set gain: "+a);this.dR=Math.max(0,Math.min(1,a));this.LB()}};b.prototype.ji=function(){this.LB()};b.prototype.jr=function(){this.LB()};b.prototype.LB=function(){this.M.log("AudioController","updateVolume paused: "+
this.M.paused+" outputVolume: "+(!this.pR||this.Le?0:this.Vp*this.dR));if(!this.M.paused){var a=!this.pR||this.Le?0:this.Vp*this.dR;a>0&&a<1&&this.Fna();if(this.Hw){this.Hw.gain.value=a;this.M.volume=1}else this.M.volume=a;this.M.muted=a==0}};b.prototype.Nw=function(){var a=this.M.currentSrc||this.M.children.length&&this.M.children[0].src||"";g.sy(a)&&(a=l);return a};return b});define("hs",["require"],function(){return{Vl:"video",twa:"audio"}});
define("mv","require,kG,nU,gE,hy,cs,fQ,t,lB,hV,gI".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("hy"),f=a("cs"),i=a("fQ"),e=a("t"),j=a("lB"),o=a("hV"),k=a("gI"),n=b.extend(i,function(a){i.call(this);this.M=a;this.RA=this.RA.bind(this);this.gu=this.gu.bind(this);this.cl=this.cl.bind(this);this.WA=this.WA.bind(this);this.sj=this.sj.bind(this);this.fl=this.fl.bind(this);this.ji=this.ji.bind(this);this.jr=this.jr.bind(this);this.HM=this.HM.bind(this);this.M.addEventListener("ended",this.cl,
m);this.M.addEventListener("pause",this.fl,B);this.M.addEventListener("stalled",this.fl,B);this.M.addEventListener("waiting",this.fl,B);this.M.addEventListener("canplay",this.RA,m);this.M.addEventListener("canplaythrough",this.gu,B);this.M.addEventListener("loadedmetadata",this.sj,m);this.M.addEventListener("play",this.ji,B);this.M.addEventListener("playing",this.jr,B);this.M.addEventListener("error",this.WA,B);this.e1=B;this.o=c.L;this.qF=this.Oh=q;k.bind(d.qa,this.kNa,this)});n.prototype.clear=
function(){if(this.M){this.M.removeEventListener("ended",this.cl,m);this.M.removeEventListener("pause",this.fl,B);this.M.removeEventListener("stalled",this.fl,B);this.M.removeEventListener("waiting",this.fl,B);this.M.removeEventListener("canplay",this.RA,m);this.M.removeEventListener("canplaythrough",this.gu,B);this.M.removeEventListener("loadedmetadata",this.sj,m);this.M.removeEventListener("play",this.ji,B);this.M.removeEventListener("error",this.WA,B);this.M=q}};n.prototype.play=function(){this.M.log("PlaybackController",
"play");this.qF=c.S;this.rL()};n.prototype.stop=function(){this.M.log("PlaybackController","stop");this.qF=c.L;this.rL()};n.prototype.og=function(){return this.Oh||this.o};n.prototype.pC=function(){return this.M.readyState==this.M.HAVE_NOTHING||this.M.readyState==this.M.HAVE_METADATA||this.M.currentTime===0?B:m};n.prototype.rL=function(){if(!this.Oh&&this.qF){this.Oh=this.qF;this.qF=q;this.Oh==c.S?this.g7():this.f7()}};n.prototype.kNa=function(){if(k.visible){this.M.log("PlaybackController","visibile changed to true, setting state to "+
this.o);this.Oh=this.o;this.Oh==c.S?this.g7():this.f7()}else if(!this.M.paused){this.M.log("PlaybackController","paused by visibile changed to false");var a=this.M.pause();a&&a["catch"](this.WA)}};n.prototype.Nw=function(){return this.M.currentSrc||this.M.children.length&&this.M.children[0].src||""};n.prototype.g7=function(){var a=this.Nw();this.qU(a&&!j.sy(a));this.IP=e.browser()==e.Qh;if(this.M.paused){this.M.log("PlaybackController","startPlaying calling play");this.M.muted=m;this.M.log("PlaybackController",
"this._media.play()");(a=this.M.play())&&a["catch"](this.WA)}else{this.M.log("PlaybackController","startPlaying already playing");this.ji()}};n.prototype.jr=function(){this.M.log("PlaybackController","onPlaying event received. Visible: "+k.visible)};n.prototype.ji=function(){if(this.Oh==c.S){this.M.log("PlaybackController","onPlay event received when waiting to play");this.Oh=q;this.o=c.S;this.trigger(new f(n.NY));this.rL()}else this.M.log("PlaybackController","onPlay event received. Visible: "+k.visible)};
n.prototype.f7=function(){this.qU(B);this.IP=B;if(this.M.paused){this.M.log("PlaybackController","startPausing already paused");this.fl()}else{this.M.log("PlaybackController","startPausing calling pause");var a=this.M.pause();a&&a["catch"](this.WA)}};n.prototype.fl=function(){if(this.Oh==c.L){this.M.log("PlaybackController","onPause event received when waiting to stop");this.Oh=q;this.o=c.L;this.rL()}else if(k.visible){this.M.log("PlaybackController","onPause event received without calling to pause");
(this.o==c.S&&!this.Oh||this.Oh==c.S)&&!this.M.hasAttribute("loop")&&!isNaN(this.M.duration)&&this.M.currentTime==this.M.duration&&this.M.duration>0&&this.cl();this.HM()}else this.M.log("PlaybackController","onPause event received when not visible")};n.prototype.RA=function(){this.M.log("PlaybackController","on can play");this.HM()};n.prototype.gu=function(){this.M.log("PlaybackController","can play through");this.HM();this.qU(B)};n.prototype.HM=function(){if(this.Ina()){if(this.IP&&this.M.currentTime==
0){this.M.log("PlaybackController","updatePlaying applying ios hack");this.IP=B;try{this.M.currentTime=0.3}catch(a){}}e.browser()!=e.UC&&this.Ema()}};n.prototype.Ina=function(){return this.o==c.S&&k.visible&&this.M.paused&&this.M.readyState>=3};n.prototype.Ema=function(a){if(!this.Fma)if(a){if(this.Ina()){this.M.log("PlaybackController","updatePlaying retrying play");this.Oh=c.S;this.g7()}}else this.Fma=setTimeout(function(){this.Fma=q;this.Ema(m)}.bind(this),500)};n.prototype.WA=function(){if(this.Oh==
c.S){this.M.log("PlaybackController","onError waiting to play");this.Oh=q;this.qF?this.rL():e.browser()==e.Qh?this.trigger(new f(n.sY)):this.Oh=c.S}};n.prototype.sj=function(){this.M.log("PlaybackController","on loaded metadata");!isNaN(this.M.duration)&&this.M.currentTime==this.M.duration&&this.M.duration>0&&this.cl()};n.prototype.cl=function(){this.M.log("PlaybackController","onEnded");this.IP=B;if(this.o==c.S&&!this.Oh||this.Oh==c.L){this.M.log("PlaybackController","onEnded finalizing video");
this.qU(B);this.Oh=c.L;this.f7();this.trigger(new f(n.Zi))}};n.prototype.qU=function(a){if(this.e1!=a){this.M.log("PlaybackController","downloading changed to: "+a);(this.e1=a)?o.ATa(g.eca):o.zTa(g.eca)}};n.sY="deactivated";n.Zi="end";n.NY="play";return n});
define("z",["require","kG","nU","cs","fQ"],function(a){var b=a("kG"),d=a("nU");a("cs");var c=a("fQ"),a=b.extend(c,function(a){c.call(this);this.sj=this.sj.bind(this);this.t4=this.t4.bind(this);this.hi=this.hi.bind(this);this.M=a;this.sk=q;this.ce=[];this.M.addEventListener("loadedmetadata",this.sj,m);this.M.textTracks.addEventListener("addtrack",this.t4,B)});a.prototype.set=function(a){a&&this.Hya(a)};a.prototype.clear=function(){this.CIa()};a.prototype.vN=function(){var a=this.sk&&this.sk.track.activeCues;
a&&(a=Array.prototype.slice.call(a,0));return a||[]};a.prototype.sj=function(){this.Apa()};a.prototype.t4=function(){this.Apa()};a.prototype.hi=function(){this.Zma(this.sk.track.activeCues)};a.prototype.Zma=function(a){a||(a=[]);0==this.ce.length&&0==a.length||(this.ce=Array.prototype.slice.call(a),this.trigger(d.Rh,this.ce))};a.prototype.Hya=function(a){this.M.log("TextTracksController","add text track src: "+a);this.sk=document.createElement("track");this.sk.kind="subtitles";this.sk.src=a;this.M.appendChild(this.sk)};
a.prototype.CIa=function(){this.sk&&(this.M.log("TextTracksController","remove text track"),this.sk.track.removeEventListener("cuechange",this.hi),this.sk.track.mode="disabled",this.sk.src="",this.M.removeChild(this.sk),this.sk=q,this.Zma([]))};a.prototype.Apa=function(){for(var a=0;a<this.M.textTracks.length;a++){var b=this.M.textTracks[a];b.removeEventListener("cuechange",this.hi);b.mode=this.sk&&b==this.sk.track?"hidden":"disabled";"hidden"==b.mode&&b.addEventListener("cuechange",this.hi)}};return a});
define("hG",["require","dY","lB"],function(a){var b=a("dY"),d=a("lB"),a={is:function(a,g){var f=d.parse(a).tOa;return b(g).contains(f)},sy:function(a,d){return a&&b(d).any(function(b){return 0===a.indexOf(b)})},dZ:[".mp4",".m4v",".m4p"],Twa:[".hevc"],ica:[".mov"],mda:[".webm"],Bca:[".ogv",".ogg"],lxa:[".mpg",".mpeg"],Ywa:[".jpg",".jpeg"],mn:[".m3u8"],zca:[".mpd"],txa:[".png"],rwa:[".apng"],Swa:[".gif"],wwa:[".bmp"],Rxa:[".webp"],uwa:[".avif"]};a.Vwa=[].concat(a.Ywa,a.txa,a.Rxa,a.Swa,a.uwa,a.rwa,a.wwa);
a.qwa=[].concat(a.mn,a.zca);a.Vl=[].concat(a.qwa,a.dZ,a.mda,a.Bca,a.lxa,a.mn,a.zca);a.Wwa=["data:image/"];return a});
define("el","require,kG,nU,cs,fQ,t,hG".split(","),function(a){var b=a("kG");a("nU");var d=a("cs"),c=a("fQ"),g=a("t"),f=a("hG"),i=b.extend(c,function(a){c.call(this);this.M=a;this.gu=this.gu.bind(this);this.fl=this.fl.bind(this);this.ji=this.ji.bind(this);this.sj=this.sj.bind(this);this.cl=this.cl.bind(this);this.dT=this.dT.bind(this);this.Ae=this.Ae.bind(this);this.J3=this.YE=this.EB=l;this.y7=0;this.M.addEventListener("ended",this.cl,m);this.M.addEventListener("pause",this.fl,B);this.M.addEventListener("canplaythrough",
this.gu,B);this.M.addEventListener("timeupdate",this.dT,B);this.M.addEventListener("play",this.ji,B);this.M.addEventListener("playing",this.jr,B)});i.prototype.clear=function(){if(this.M){this.M.removeEventListener("ended",this.cl,m);this.M.removeEventListener("pause",this.fl,B);this.M.removeEventListener("canplaythrough",this.gu,B);this.M.removeEventListener("timeupdate",this.dT,B);this.M.removeEventListener("play",this.ji,B);this.M.removeEventListener("playing",this.jr,B);this.M=q;this.EB&&clearInterval(this.EB)}};
i.prototype.setTime=function(a){this.y7=0;this.XR=l;this.M.log("TimeController","setTime: "+a);this.HP=g.x9()&&!f.is(this.Nw(),f.mn)?a||0:l;try{this.M.currentTime=a}catch(b){}if(g.browser()!=g.Fv&&g.browser()!=g.UC&&(g.Yd()!=g.HH||a!=0)){this.YE=a;this.$oa()}};i.prototype.getTime=function(){return this.YE||this.M.currentTime||0};i.prototype.Ti=function(){return this.M.duration||0};i.prototype.ji=function(){this.P6(m)};i.prototype.fl=function(){this.P6(B);this.XR=l};i.prototype.gu=function(){this.M.log("TimeController",
"on can play through");this.$oa()};i.prototype.cl=function(){this.HP=l;this.P6(B)};i.prototype.sj=function(){this.trigger(new d(i.wi))};i.prototype.$oa=function(){if(this.M.readyState>=this.M.HAVE_ENOUGH_DATA&&this.YE!==l){this.M.log("TimeController","updateCurrentTime when can play through set time to: "+this.YE);try{this.M.currentTime=this.YE}catch(a){}this.YE=l}};i.prototype.Ae=function(){this.trigger(new d(i.pf))};i.prototype.dT=function(){if(g.x9()&&!g.nsa()&&!this.M.paused&&this.M.readyState>=
this.M.HAVE_ENOUGH_DATA){var a=(new Date).getTime();this.XR||(this.XR=a);if(this.J3&&a-this.J3>500){this.y7++;this.y7/((a-this.XR)*0.001)>0.4&&g.WSa()}this.J3=a}if(this.HP!==l&&this.M.currentTime>this.HP){this.HP=l;try{this.M.currentTime=this.M.currentTime-0.01}catch(b){}}this.Ae()};i.prototype.P6=function(a){if(!!this.EB!=a)if(this.EB){clearInterval(this.EB);this.EB=q}else this.EB=setInterval(this.Ae,16)};i.prototype.Nw=function(){return this.M.currentSrc||this.M.children.length&&this.M.children[0].src||
""};i.pf="time update";i.wi="duration update";return i});
define("la","require,jquery.mod,kG,hA,t,lB".split(","),function(a){function b(){}a("jquery.mod");var d=a("kG"),c=a("hA"),g=a("t"),a=a("lB");b.GEa=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.SEa=function(){if(g.browser()==g.Qh){var a=g.rC();if(a>=10&&a<11||a>=11.3)return m}return B};b.HEa=function(){return g.browser()==
g.Rl||g.browser()==g.Qh?m:B};var f;b.Cqa=function(a){try{f||(f=document.createElement("audio"));return!!f.canPlayType(a).replace(/^no$/,"")}catch(b){}return B};var i;b.HG=function(a){try{if(!i){i=document.createElement("video");i.setAttribute("webkit-playsinline","true");i.setAttribute("playsinline","true")}return!!i.canPlayType(a).replace(/^no$/,"")}catch(b){}return B};b.ONa=function(){return g.browser()==g.Qh?g.rC()>=15||c?m:B:m};b.IEa=function(){try{if(document.createElement("canvas").getContext("webgl"))return m}catch(a){}try{if(document.createElement("canvas").getContext("experimental-webgl"))return m}catch(b){}return B};
b.Nva=function(a,b,c){if(g.le()==g.aj)if(!c||c>30){if(a<=3168&&b<=1584)return m}else{if(a<=4096&&b<=2048)return m}else if(g.Rsa())if(!c||c>30){if(a<=4096&&b<=4096||a<=5760&&b<=5760||a<=5760&&b<=2880||a<=8192&&b<=4096)return m}else{if(a<=5760&&b<=5760||a<=8192&&b<=4096)return m}else if(g.Qsa())if(!c||c>30){if(a<=2880&&b<=2880||a<=4096&&b<=2048)return m}else{if(a<=3840&&b<=3840||a<=4096&&b<=4096||a<=5760&&b<=2880||a<=2880&&b<=5760)return m}else if(g.ob()){if(a<=3840&&b<=2160)return m}else if(a<=4096&&
b<=2048)return m;return B};b.HTa=function(a,c){return b.Nva(a,c,30)};b.log=function(){d.log("webgl: "+b.tba);d.log("html5 audio: "+b.vsa);d.log("html5 video: "+b.ysa)};b.$Ka=function(){return["webgl:"+b.tba,"html5audio:"+b.vsa,"html5video:"+b.ysa].join(" ")};b.xsa=b.Cqa('audio/ogg; codecs="vorbis"');b.wsa=b.Cqa("audio/mpeg");b.vsa=b.xsa||b.wsa;b.n$=b.HG('video/ogg; codecs="theora"');b.CVa=b.HG('video/mp4; codecs="avc1.42E01E"');b.o$=b.HG('video/webm; codecs="vp8, vorbis"');b.TPa=b.HG('video/mp4; codecs="hev1"');
b.LW=b.HG("video/mp4");b.UPa=b.HG("video/quicktime");b.zsa=b.SEa();b.hsa=b.HEa();b.IPa=b.hsa||b.LW&&b.GEa();b.ysa=b.n$||b.LW||b.o$;b.tba=b.IEa();a.Ui("debug")&&a.Ui("capabilities")&&b.log();b.summary=b.$Ka();return b});
define("cp",["require","lB"],function(a){function b(){this.$R=this.M3=q;this.ot=[];this.cr=B;this.Zw=l}var d=a("lB");b.prototype.fq=function(a,b){this.M3=d.yv(a);this.$R=b;this.X()};b.prototype.load=function(a,b){var f={};f.call=a;f.context=b||window;this.ot.push(f);this.Zw||(this.Zw=this.yha());this.X()};b.prototype.El=function(){return this.Zw!==l};b.prototype.X=function(){0<this.ot.length&&(this.Zw!==l?this.WBa():this.M3&&this.FJ())};b.prototype.FJ=function(){if(!(this.cr||this.Zw!==l)){this.cr=
m;var a=document.createElement("script");a.type="text/javascript";a.src=this.M3;document.getElementsByTagName("head")[0].appendChild(a);this.Wpa()}};b.prototype.Wpa=function(){var a=this.yha();if(a===l){var b=this;setTimeout(function(){b.Wpa()},250)}else this.Zw=a,this.cr=B,this.X()};b.prototype.yha=function(){if(this.$R){for(var a=window,b=0;b<this.$R.length&&a!==l;b++)a=a[this.$R[b]];return a}};b.prototype.WBa=function(){for(;0<this.ot.length;){var a=this.ot.pop();a.call.call(a.context,this.Zw)}};
return{nda:new b,mn:new b,fq:function(a){this.mn.fq(a.get(TDV.PlayerSettings.HLS_URL),["Hls"]);this.nda.fq(a.get(TDV.PlayerSettings.WEBVR_POLYFILL_URL),["WebVRConfig","FORCE_ENABLE_VR"])}}});
define("eJ",["require"],function(){var a={Eta:"data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU2LjM2LjEwMAAAAAAAAAAAAAAA//OEAAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAAEAAABIADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dXV6urq6urq6urq6urq6urq6urq6urq6urq6v////////////////////////////////8AAAAATGF2YzU2LjQxAAAAAAAAAAAAAAAAJAAAAAAAAAAAASDs90hvAAAAAAAAAAAAAAAAAAAA//MUZAAAAAGkAAAAAAAAA0gAAAAATEFN//MUZAMAAAGkAAAAAAAAA0gAAAAARTMu//MUZAYAAAGkAAAAAAAAA0gAAAAAOTku//MUZAkAAAGkAAAAAAAAA0gAAAAANVVV"};a.src=
a.Eta;return a});
define("dv","require,kG,nU,cs,fQ,la,lB,lN,hG,cp,eJ".split(","),function(a){function b(a,b,c){this.src=a||"";this.cn=b||"";this.startTime=c||0}var d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("la"),e=a("lB"),j=a("lN"),o=a("hG"),k=a("cp"),n=a("eJ"),a=d.extend(f,function(a,b){f.call(this);this.M=a;this.Rm=b;this.S3=B;this.GU=[];this.Ke=this.Be=this.FI=q});a.prototype.set=function(a,c,e){this.M.log("SrcSetter","set: "+a+" subtitles: "+c+" startTime: "+e);a=new b(a,c,e);if(!this.Be||!this.Be.isEqual(a))if(!this.Be&&this.FI&&
this.FI.isEqual(a))this.P7();else{this.Be=a;this.OFa()}};a.prototype.clear=function(){if(this.Ke){this.Ke.destroy();this.Ke=q}this.FI=q;this.BIa();this.Rm.clear()};a.prototype.MPa=function(){return!!this.Be};a.prototype.OFa=function(){this.S3=m;if(this.Ama(this.Be.src)&&!k.mn.El()){this.M.log("SrcSetter","hls lib required");k.mn.load(this.Hia,this)}else this.Hia()};a.prototype.Hia=function(){if(this.S3){this.S3=B;this.kza()}};a.prototype.kza=function(){this.clear();this.tJa(!!this.Be.src&&e.Gsa(this.Be.src));
this.Ama(this.Be.src)?this.Zya():this.lza()};a.prototype.Zya=function(){var a=k.mn.Zw,b=(navigator.connection?Math.max(navigator.connection.downlink,2):2)*1048576,c=b*0.66;this.Ke=new a({debug:j.UO,startPosition:this.Be.startTime===0?-1:this.Be.startTime,levelLoadingTimeOut:6E4,startLevel:-1,maxMaxBufferLength:12,autoStartLoad:B,abrEwmaDefaultEstimate:b});this.Ke.loadSource(this.Be.src);this.Ke.attachMedia(this.M);var e=function(){this.Ke.off(a.Events.MANIFEST_PARSED,e);if(navigator.connection){var f=
this.Ke.levels.filter(function(a){return a.bitrate<=b});if(f.length){f.sort(function(a,b){return b.width-a.width});var d=this.Ke.levels.indexOf(f[0]);this.Ke.startLevel=d}f=this.Ke.levels.filter(function(a){return a.bitrate<=c});if(f.length){f.sort(function(a,b){return b.width-a.width});this.Ke.config.minAutoBitrate=f[0].bitrate-1}f=this.Ke.levels.filter(function(a){return i.HTa(a.width,a.height)});if(j.Uwa){f.sort(function(a,b){return b.width-a.width});d=this.Ke.levels.indexOf(f[0]);this.Ke.startLevel=
d}if(f.length&&f.length<this.Ke.levels.length){f.sort(function(a,b){return b.width-a.width});this.Ke.autoLevelCapping=this.Ke.levels.indexOf(f[0])}this.M.log("SrcSetter","bandwidth: "+b+" lowBandwidth: "+c);this.M.log("SrcSetter","levels: "+this.Ke.levels);this.M.log("SrcSetter","startLevel: "+this.Ke.levels[this.Ke.startLevel]);this.M.log("SrcSetter","minLevel: "+this.Ke.levels[this.Ke.minAutoLevel])}this.Ke.startLoad(this.Be.startTime===0?-1:this.Be.startTime);this.Be.startTime!=0&&this.Br(this.Be.startTime);
this.Be.cn&&this.Rm.set(this.Be.cn);this.FI=this.Be;this.Be=q;this.P7()}.bind(this);this.Ke.on(a.Events.MANIFEST_PARSED,e);this.Ke.on(a.Events.jUa,function(b,c){c.fatal&&c.type==a.ErrorTypes.oUa&&this.Ke.recoverMediaError()}.bind(this))};a.prototype.lza=function(){this.Be.src?this.hea(this.Be.src):this.hea(n.Eta,"audio/mpeg");this.Be.cn&&this.Rm.set(this.Be.cn);this.M.load();this.Be.startTime!=0&&this.Br(this.Be.startTime);this.FI=this.Be;this.Be=q;this.P7()};a.prototype.P7=function(){this.M.log("SrcSetter",
"src ready");this.trigger(new g(c.Oc))};a.prototype.Ama=function(a){return a&&o.is(a,o.mn)&&!i.hsa};a.prototype.tJa=function(a){a&&!this.M.hasAttribute("crossorigin")?this.M.setAttribute("crossorigin","anonymous"):!a&&this.M.hasAttribute("crossorigin")&&this.M.removeAttribute("crossorigin")};a.prototype.Br=function(a){try{this.M.currentTime=a}catch(b){}};a.prototype.hea=function(a,b){var c=document.createElement("source");b||(b=this.CEa(a));if(b)c.type=b;e.sy(a)||(a=e.ky(a,"swbypass=true"));c.src=
a;this.M.appendChild(c);this.GU.push(c)};a.prototype.BIa=function(){for(;this.GU&&this.GU.length;){var a=this.GU.shift();a.src="";this.M.removeChild(a)}};a.prototype.CEa=function(a){switch(e.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.cn==a.cn};return a});
define("nm","require,kG,nU,cs,fQ,t,lN,d,bB,lm,dX,hs,mv,z,el,dv".split(","),function(a){function b(a){setTimeout(a,0)}var d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("t"),e=a("lN"),j=a("d"),o=a("bB"),k=a("lm"),n=a("dX"),r=a("hs"),p=a("mv"),t=a("z"),s=a("el"),u=a("dv"),v=0,w=d.extend(f,function(a,b){f.call(this);this.ke=a;this.lNa=b;this.sj=this.sj.bind(this);this.Iq=this.Iq.bind(this);this.N4=this.N4.bind(this);this.vp=this.bE=q;this.wT=l;this.Ub=this.Sa=q;this.Wl="inactive";this.Zn=this.za=this.Ad=
this.Iu=this.Rm=q;this.Le=B;this.Gna(document.createElement(this.ke));b&&k.AH(this.Iq)});w.prototype.Gna=function(a){this.moa();this.Ub=a;for(this.Ub.parentNode&&this.Ub.parentNode.removeChild(this.Ub);this.Ub.children.length;)this.Ub.removeChild(this.Ub.children[0]);this.oKa();this.Ub.autoplay=B;this.Ub.autobuffer="autobuffer";this.Ub.lH=i.browser()==i.Qh?"metadata":"none";this.Ub.setAttribute("preload",i.browser()==i.Qh?"metadata":"none");this.Ub.setAttribute("webkit-playsinline","true");this.Ub.setAttribute("playsinline",
"true");this.Ub.addEventListener("loadedmetadata",this.sj,m);this.Rm=new t(this.Ub);this.Rm.bind(c.Rh,this.hi,this,m);this.Iu=new u(this.Ub,this.Rm);this.Iu.bind(c.Oc,this.jla,this,m);this.Ad=new n(this.Ub);this.za=new p(this.Ub);this.za.bind(p.sY,this.Rja,this,m);this.za.bind(p.Zi,this.cl,this,m);this.za.bind(p.NY,this.ji,this,m);this.Zn=new s(this.Ub);this.Zn.bind(s.pf,this.Ae,this,m);this.Zn.bind(s.wi,this.Am,this,m)};w.prototype.oKa=function(){if(e.UO){var a="["+this.ke+" "+v++ +"]";this.Ub.log=
function(b,c){console.log(a+"["+(new Date).toISOString().split("T")[1]+"] "+b+" "+c)}}else this.Ub.log=I()};w.prototype.moa=function(){if(this.Ub){this.Ub.removeEventListener("loadedmetadata",this.sj,m);if(this.Iu){this.Iu.unbind(c.Oc,this.jla,this,m);this.Iu.clear();this.Iu=q}if(this.Rm){this.Rm.unbind(c.Rh,this.hi,this,m);this.Rm.clear();this.Rm=q}if(this.Ad){this.Ad.clear();this.Ad=q}if(this.za){this.za.unbind(p.sY,this.Rja,this,m);this.za.unbind(p.Zi,this.cl,this,m);this.za.unbind(p.NY,this.ji,
this,m);this.za.clear();this.za=q}if(this.Zn){this.Zn.unbind(s.pf,this.Ae,this,m);this.Zn.unbind(s.wi,this.Am,this,m);this.Zn.clear();this.Zn=q}this.Ub=q}};w.prototype.clear=function(){this.moa()};w.prototype.KG=function(a,b,c){if(this.Jj()&&this.pC())try{a.drawImage(this.Ub,0,0,b,c);return m}catch(e){}a.fillRect(0,0,b,c);return B};w.prototype.play=function(a,b,c){this.Ub.log("HTMLMediaPlayer","play src: "+b.src+" subtitlesSrc: "+b.cn+" hasAudio: "+b.gv+" gain: "+b.gain);this.Sa=a;this.bE=q;this.vp=
b.clone();this.wT=c||0;this.Sya()};w.prototype.SW=function(){return this.Wl=="activated"};w.prototype.WX=S("lNa");w.prototype.stop=function(){this.Ub.log("HTMLMediaPlayer","stop");this.za.stop();this.vp=q};w.prototype.og=function(){return this.za.og()};w.prototype.pC=function(){return this.Iu.MPa()?B:this.za.pC()};w.prototype.nf=function(a){this.Ad.nf(a);this.Le=a;this.Sa&&this.Wl=="requested"&&(this.Le?o.cancel(this.Sa):o.Wi(this.Sa))};w.prototype.wv=function(a){this.Ad.wv(a)};w.prototype.mO=function(a){this.Ad.mO(a)};
w.prototype.setLoop=function(a){this.gza(a)};w.prototype.Cl=function(){return this.Zn.getTime()};w.prototype.EC=function(a){return this.Zn.setTime(a)};w.prototype.Ti=function(){return this.Zn.Ti()};w.prototype.Jj=function(){return this.ke==r.Vl};w.prototype.Ee=S("ke");w.prototype.fd=function(){return this.Ub&&this.Jj()&&this.Ub.videoWidth||0};w.prototype.Td=function(){return this.Ub&&this.Jj()&&this.Ub.videoHeight||0};w.prototype.vN=function(){return this.Rm.vN()};w.prototype.Sya=function(){this.Ub.log("HTMLMediaPlayer",
"assert can play");if(this.Wl=="activated"||!this.vp.gv){this.Ub.log("HTMLMediaPlayer","can play activationState: "+this.Wl+" pending media has audio: "+this.vp.gv);this.RA()}else if(this.Wl=="inactive"){this.Ub.log("HTMLMediaPlayer","needs activation");this.Sa&&this.ke==r.Vl&&this.FEa()?this.kya():this.Sa&&j.MN()?this.Iq():this.Sa&&this.Rya()}};w.prototype.FEa=function(){var a=this.Wga();return a&&(!a.currentSrc||a.paused)&&!a.muted?m:B};w.prototype.Wga=function(){return this.Sa.get("settings").get(TDV.PlayerSettings.ACTIVE_VIDEO_ELEMENT)};
w.prototype.kya=function(){this.Ub.log("HTMLMediaPlayer","activate with application parameter");this.Gna(this.Wga());this.Iq()};w.prototype.Rya=function(){this.Ub.log("HTMLMediaPlayer","ask for activation");this.Wl="requested";o.rba(this.Iq);this.Sa&&!this.Le&&o.Wi(this.Sa)};w.prototype.Iq=function(){if(this.Wl=="inactive"||this.Wl=="requested"){this.Ub.log("HTMLMediaPlayer","activate received when state: "+this.Wl+" and has media: "+!!this.bE);if(this.bE)b(function(){k.AH(this.Iq)}.bind(this));else{this.Wl=
"activating";this.Iu.set("","",0)}}};w.prototype.RA=function(){this.Ub.log("HTMLMediaPlayer","media can play. Has pending properties: "+!!this.vp);this.vp&&this.Iu.set(this.vp.src,this.vp.cn,this.wT)};w.prototype.jla=function(){this.Wl=="activating"?this.fHa():this.vp&&this.PGa()};w.prototype.fHa=function(){this.Ub.log("HTMLMediaPlayer","on src ready activating");this.za.play()};w.prototype.ji=function(){if(this.Wl=="activating"){this.Ub.log("HTMLMediaPlayer","on play activating");this.za.stop();
this.Wl="activated";this.RA()}};w.prototype.PGa=function(){this.Ub.log("HTMLMediaPlayer","on pending src ready");this.bE=this.vp;this.vp=q;this.$ya(this.bE.gv);this.Yya(this.bE.gain);this.Zn.setTime(this.wT);this.wT=l;this.za.play()};w.prototype.$ya=function(a){this.Ad.ZRa(a)};w.prototype.Yya=function(a){this.Ad.mO(a)};w.prototype.gza=function(a){a&&!this.Ub.hasAttribute("loop")?this.Ub.setAttribute("loop",""):!a&&this.Ub.hasAttribute("loop")&&this.Ub.removeAttribute("loop")};w.prototype.Rja=function(){this.Ub.log("HTMLMediaPlayer",
"on deactivated");o.QSa();k.AH(this.N4);this.Sa&&b(function(){o.Wi(this.Sa)}.bind(this))};w.prototype.N4=function(){this.Ub.log("HTMLMediaPlayer","on reactivated");this.za.play()};w.prototype.hi=function(){this.trigger(c.Rh,this.Rm.vN())};w.prototype.sj=function(){this.trigger(new g(w.Kwa))};w.prototype.Ae=function(){this.trigger(new g(w.pf))};w.prototype.Am=function(){this.trigger(new g(w.wi))};w.prototype.cl=function(){this.trigger(new g(w.Zi))};w.pf="time update";w.wi="duration update";w.Kwa="size update";
w.Zi="end";return w});define("dt",["require"],function(){return function(a){this.cue=a;this.text=a.text}});define("mm",["require"],function(){function a(){this.cn=this.src=l;this.gv=B;this.gain=1}a.prototype.clone=function(){var b=new a;b.src=this.src;b.cn=this.cn;b.gv=this.gv;b.gain=this.gain;return b};return a});
define("bQ","require,kG,dY,nU,gE,cs,fQ,la,t,lB,nm,hs".split(","),function(a){function b(a){this.hI=a;this.la=q;this.JA=(new Date).getTime()}var d=a("kG"),c=a("dY"),g=a("nU"),f=a("gE"),i=a("cs"),e=a("fQ"),j=a("la"),o=a("t"),k=a("lB"),n=a("nm"),r=a("hs");b.prototype.w$=function(){return this.la==q};b.prototype.SW=function(){return this.hI.SW()};b.prototype.WX=function(){return this.hI.WX()};b.prototype.item=S("la");b.prototype.DOa=function(){this.la.F$(this.hI);this.la=q};b.prototype.XTa=function(a){this.la=
a;this.la.F9(this.hI);this.JA=(new Date).getTime()};var p=d.extend(e,function(){e.call(this);this.Dr=[];for(var a=k.zra("avs",10),c=k.zra("avpas",j.ONa()?4:1),d=0;d<a;d++)this.Dr.push(new b(new n(r.Vl,d<c)));this.De=[];this.o=f.L});p.prototype.cH=function(){return this.Lha().length>0};p.prototype.lX=function(a){this.De=[a].concat(c(this.De).without(a));this.n5()};p.prototype.j9=function(a){this.De.push(a);this.n5()};p.prototype.jH=function(a){this.De=c(this.De).without(a);this.n5()};p.prototype.n5=
function(){var a=this.fEa();if(p.qsa())for(;this.Dr.length<a.length;)this.Dr.push(new b(new n(r.Vl,B)));this.Lha().forEach(function(b){a.indexOf(b.item())<0&&b.DOa()});this.mc(a.length>0?f.S:f.L);a.forEach(function(a){if(!this.HDa(a)){var c=this.wDa(a.pX());!c&&!a.pX()&&this.Dr.push(c=new b(new n(r.Vl,B)));c&&c.XTa(a)}}.bind(this));this.xDa().forEach(function(a){a.hI.stop()})};p.prototype.fEa=function(){return this.De.map(function(a,b){var c={};c.index=b;c.Fe=a.g$();c.item=a;return c}).sort(function(a,
b){return a.Fe-b.Fe||a.index-b.index}).map(function(a){return a.item})};p.prototype.mc=function(a){if(this.o!=a){this.o=a;this.trigger(new i(this.o==f.L?g.Lf:g.Tj))}};p.prototype.wDa=function(a){var b=this.Dr.filter(function(a){return a.w$()});if(b.length){if(a){a=b.filter(function(a){return a.SW()});a.length||(a=b.filter(function(a){return a.WX()}))}else{a=b.filter(function(a){return!a.WX()});a.length||(a=b.filter(function(a){return!a.SW()}))}a.length&&(b=a);if(o.browser()==o.Rl){b.sort(function(a,
b){return b.JA-a.JA});return b[Math.min(2,b.length-1)]}return b[0]}return q};p.prototype.xDa=function(){return this.Dr.filter(function(a){return a.w$()})};p.prototype.Lha=function(){return this.Dr.filter(function(a){return!a.w$()})};p.prototype.HDa=function(a){for(var b=0;b<this.Dr.length;b++)if(this.Dr[b].item()==a)return this.Dr[b];return q};p.i3=q;p.bind=function(){var a=p.Yh();a.bind.apply(a,arguments)};p.unbind=function(){var a=p.Yh();a.unbind.apply(a,arguments)};var t=[o.WC,o.Oy].indexOf(o.Yd())>=
0;p.qsa=function(){return t};p.cH=function(){return p.Yh().cH()};p.j9=function(a){p.Yh().j9(a)};p.lX=function(a){p.Yh().lX(a)};p.jH=function(a){p.Yh().jH(a)};p.st=function(){if(p.i3===q)p.i3=new p;return p.i3};p.Yh=p.st;p.st();return p});
define("D","require,kG,cs,fQ,nU,gE,nm,dt,mm,hs,bQ,bg,la".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("fQ"),g=a("nU"),f=a("gE"),i=a("nm"),e=a("dt"),j=a("mm"),o=a("hs"),k=a("bQ"),n=a("bg"),r=a("la"),p=b.extend(c,function(a,b,e){c.call(this);this.Sa=a;this.n=b;this.rr=e;this.j=q;this.RL();this.CS=this.CS.bind(this);this.n.bind(g.u("gain"),this.nK,this,m);this.n.bind(g.u("mp3Url"),this.np,this,m);this.n.bind(g.u("oggUrl"),this.np,this,m);this.o=f.L;this.Vk=B;this.xw=this.cb=0;this.Le=B;this.Vp=
1;this.UI=B;this.pE=1;this.ed=q;this.Jq=[]});p.prototype.wb=S("Sa");p.prototype.yd=function(a){if(this.o!=a&&!(a==f.Gb&&this.o!=f.S)){this.o=a;if(this.o==f.S){this.bAa();k.lX(this)}else this.BKa();this.Q7()}};p.prototype.BKa=function(){if(!this.UI){this.UI=m;this.Hga=this.n.get("fadeOutTime");this.Hga==0?this.foa():this.CS(0)}};p.prototype.CS=function(a){if(!this.ed||this.pE==0||!this.UI||this.oFa())this.foa();else{this.pE=Math.max(0,this.pE-a/this.Hga);this.JP();n.yb(this.CS)}};p.prototype.bAa=function(){this.UI=
B;this.pE=1;this.JP()};p.prototype.foa=function(){this.UI=B;this.pE=1;if(this.ed){k.jH(this);this.o==f.L&&this.O6()}};p.prototype.og=S("o");p.prototype.Ti=S("cb");p.prototype.EC=function(a){this.xw=a;this.ed&&this.ed.play(this.Sa,this.j,this.xw)};p.prototype.Cl=S("xw");p.prototype.wv=function(a){this.Vp=a;this.JP()};p.prototype.JP=function(){this.ed&&this.ed.wv(this.Vp*this.pE)};p.prototype.nf=function(a){this.Le=a;this.ed&&this.ed.nf(a)};p.prototype.setLoop=function(a){this.Vk=a;this.ed&&this.ed.setLoop(a)};
p.prototype.pX=function(){return!this.Le};p.prototype.Ee=function(){return o.twa};p.prototype.g$=S("rr");p.prototype.F9=function(a){this.ed=a;setTimeout(function(){this.ed&&this.ed.bind(i.Zi,this.mK,this,m)}.bind(this),0);this.RL();this.ed.bind(i.pf,this.Ae,this,m);this.ed.bind(i.wi,this.Am,this,m);this.ed.bind(g.Rh,this.hi,this,m);this.ed.nf(this.Le);this.JP();this.ed.setLoop(this.Vk);this.ed.play(this.Sa,this.j,this.xw)};p.prototype.F$=function(){this.xw=this.ed.Cl();this.ed.unbind(i.Zi,this.mK,
this,m);this.ed.unbind(i.pf,this.Ae,this,m);this.ed.unbind(i.wi,this.Am,this,m);this.ed.unbind(g.Rh,this.hi,this,m);this.ed=q};p.prototype.clear=function(){this.yd(f.L);if(this.n){this.n.unbind(g.u("gain"),this.nK,this,m);this.n.unbind(g.u("mp3Url"),this.np,this,m);this.n.unbind(g.u("oggUrl"),this.np,this,m);this.n=q}};p.prototype.np=function(){this.kB&&clearTimeout(this.kB);this.kB=setTimeout(function(){this.kB=q;if(this.ed){this.j.src=this.Nw(this.n);this.ed.play(this.Sa,this.j,this.xw)}}.bind(this),
10)};p.prototype.nK=function(){if(this.ed){var a=this.n.get("gain");if(this.j.gain!=a){this.j.gain=a;this.ed.mO(this.j.gain)}}};p.prototype.RL=function(){this.j=new j;this.j.src=this.Nw(this.n);this.j.gv=m;this.j.gain=this.n.get("gain")};p.prototype.Nw=function(a){var b=a.get("mp3Url");if(b&&r.wsa)return b;return(a=a.get("oggUrl"))&&r.xsa?a:b||a};p.prototype.Am=function(){this.cb=this.ed.Ti();this.L7()};p.prototype.Ae=function(){this.cb!=this.ed.Ti()&&this.Am();this.xw=this.ed.Cl();this.yM()};p.prototype.hi=
function(){this.Jq=this.ed.vN().map(function(a){for(var b=q,c=0;c<this.Jq.length&&!b;c++)this.Jq[c].cue==a&&(b=this.Jq[c]);b||(b=new e(a));return b}.bind(this));this.trigger(new d(g.Rh))};p.prototype.mK=function(){this.yd(f.L);this.M7()};p.prototype.oFa=function(){return this.ed&&this.ed.Cl()&&this.ed.Cl()==this.ed.Ti()};p.prototype.O6=function(){this.xw=0;this.yM()};p.prototype.yM=function(){this.trigger(new d(p.pf))};p.prototype.L7=function(){this.trigger(new d(p.wi))};p.prototype.M7=function(){this.trigger(new d(g.Ga))};
p.prototype.Q7=function(){this.trigger(new d(g.Fc))};p.pf="time update";p.wi="duration update";return p});
define("mC","require,kG,nU,hy,gE,lh,cs,eQ,D".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("hy"),g=a("gE"),f=a("lh"),i=a("cs"),e=a("eQ"),j=a("D"),a=b.extend(f,function(a){f.call(this);this.set("state",g.L);this.rr=a||c.Hxa;this.Lo=l});e.F("Audio",a).H("Object").Q({audio:"AudioResource",loop:"bool",state:"enum[stopped, playing, paused]"}).Mg({play:function(){this.tj()},pause:function(){this.Nn()},stop:function(){this.Om()}}).fc([d.Tj,d.Ga,d.Fc]);a.prototype.fC=function(){if(this.Lo==l){var a=
this.get("audio");if(a){this.Lo=new j(this.get("application"),a,this.rr);a=function(){this.Lo.setLoop(this.get("loop",B))};a.call(this);this.bind(d.u("loop"),a,this);a=function(){this.Lo.nf(this.get("application").get("mute",B))};a.call(this);this.get("application").bind(d.u("mute"),a,this,m);a=function(){this.set("state",this.Lo.og())};a.call(this);this.Lo.bind(d.Fc,a,this,m);this.Lo.bind(d.Ga,this.mGa,this,m)}else this.Lo=q}return this.Lo};a.prototype.set=function(a,b){if(a=="state"){var c=this.get("state")||
g.L,e=this.Lo&&this.Lo.og()||g.L;if(e!=c){c==g.L&&e==g.S&&this.trigger(d.Tj);this.trigger(new i(d.Fc,{oldState:c,state:e}))}}f.prototype.set.call(this,a,b)};a.prototype.hs=function(){return[]};a.prototype.mGa=function(){this.trigger(new i(d.Ga))};a.prototype.tj=function(){var a=this.fC();a&&a.yd(g.S)};a.prototype.Om=function(){var a=this.fC();a&&a.yd(g.L)};a.prototype.Nn=function(){var a=this.fC();a&&a.yd(g.Gb)};return a});
define("is",["kG","eQ","mC"],function(a,b,d){a=a.extend(d,function(a){d.call(this,a)});b.F("MediaAudio",a).H("Audio").Q({autoplay:"bool"});return a});define("or","require,kG,hy,eQ,is,D".split(","),function(a){var b=a("kG"),d=a("hy"),c=a("eQ"),g=a("is");a("D");a=b.extend(g,function(){g.call(this,d.oxa)});c.F("PanoramaAudio",a).H("MediaAudio");return a});
define("gN",["kG","or","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("DirectionalPanoramaAudio",a).H("PanoramaAudio").Q({yaw:"number",pitch:"number",maximumAngle:"number"});return a});
define("eY",["require","kG","lh","eQ","nU"],function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),a=a("nU"),b=b.extend(d,function(){d.call(this);this.set("position",0)});c.F("Model3DCameraMovement",b).H("Object").Q({distanceSpeed:"number",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]",fovSpeed:"number",pitchSpeed:"number",position:"number",xSpeed:"number",yawSpeed:"number",ySpeed:"number",
zSpeed:"number",fadeFromColor:"color",fadeFromDuration:"number",fadeToColor:"color",fadeToDuration:"number"}).fc([a.Ga,a.hz]);return b});define("hK",["require","kG","lh","eQ","eY"],function(a){var b=a("kG");a("lh");var d=a("eQ"),c=a("eY"),a=b.extend(c,function(){c.call(this)});d.F("DistanceModel3DCameraMovement",a).H("Model3DCameraMovement").Q({distanceDelta:"number",fovDelta:"number",pitchDelta:"number",xDelta:"number",yawDelta:"number",yDelta:"number",zDelta:"number"});return a});
define("G",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("DistancePanoramaCameraMovement",b).H("DistanceRotationalCameraMovement");return b});define("gt",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("DistanceRotationalCameraMovement",b).H("RotationalCameraMovement").Q({hfovDelta:"number",pitchDelta:"number",yawDelta:"number"});return b});
define("w","require,dY,nU,kG,cs,fQ".split(","),function(a){function b(a,b,e,d,g){this.qm=q;this.l4=a;this.$e=c.u(this.l4);this.z2=b;this.ja=e||window;this.a3=d;this.pja=g;this.o3=B}var d=a("dY"),c=a("nU"),g=a("kG");a("cs");a("fQ");b.prototype.unwatch=function(){this.m6(q)};b.prototype.m6=function(a){d(this.uha()).each(function(a){a&&a.unbind(this.$e,this.efa,this)},this);this.qm=a;d(this.uha()).each(function(a){a&&a.bind(this.$e,this.efa,this,this.a3)},this);this.Bma()};b.prototype.uha=function(){return this.qm?
d(this.qm).isArray()?this.qm:[this.qm]:[]};b.prototype.Bma=function(){this.pja&&this.pja.m6(this.CDa())};b.prototype.CDa=function(){return this.qm==q?q:d(this.qm).isArray()?d(this.qm).map(function(a){return a?a.get(this.l4):q},this):this.qm.get(this.l4)};b.prototype.efa=function(a){if(!this.o3){try{this.o3=m;this.Bma();this.z2.call(this.ja,a)}catch(b){g.WW("ChangeWatcher._changeHandler",b)}this.o3=B}};b.watch=function(a,c,e,g,o){d.isString(c)&&(c=c.split("."));typeof o=="undefined"&&(o=B);if(c.length>
0){c=new b(c[0],e,g,o,b.watch(q,c.slice(1),e,g,o));c.m6(a);return c}return q};return b});
define("ol",["jquery.mod","kG","nU","d"],function(a,b,d,c){var g=b.extend(c,function(){c.call(this);this.je("DropDownArrow");this.J=q;this.qt=m;this.bind(d.sc,this.pCa,this)});g.prototype.ab=function(){c.prototype.ab.call(this);this.f("color","#000000");this.f("direction",g.lY)};g.prototype.pCa=function(){this.qt=m;this.$d()};g.prototype.mb=function(){c.prototype.mb.call(this);this.J||(this.J=a("<canvas/>"),this.J.css({position:"absolute",left:0,top:0}),this.Ab().append(this.J))};g.prototype.Ma=function(){var a=
B;this.v("color")&&(a=m,this.I("color"));this.v("direction")&&(a=m,this.I("direction"));this.qt&&(a=m,this.qt=B);if(a){var a=this.Se(),b=this.Re(),e=this.p("color"),d=this.p("direction"),o=[0.5*a,0,a],d=d==g.lY?[b,0,0]:[0,b,b],k=this.J.get(0);k.width=a;k.height=b;k=k.getContext("2d");k.clearRect(0,0,a,b);k.beginPath();k.moveTo(o[0],d[0]);k.lineTo(o[1],d[1]);k.lineTo(o[2],d[2]);k.fillStyle=e;k.fill()}c.prototype.Ma.call(this)};g.lY="down";g.hUa="up";return g});
define("hh","kG,cs,mk,bc,nU,c,gq,nq,ol,iu".split(","),function(a,b,d,c,g,f,i,e,j,o){a=a.extend(e,function(){e.call(this);this.je("DropDownButton");this.aw=this.Ka=q;this.F3=m;this.set("autoRolledOver",m);this.set("autoPressed",m);this.set("childrenInteractionEnabled",B);this.set("contentOpaque",m);this.set("cursor",c.yf);this.bind(g.ca,this.k1,this)});a.prototype.ab=function(){e.prototype.ab.call(this);this.f("arrowColor","#000000");this.f("arrowBeforeLabel");this.f("arrowWidth",9);this.f("arrowHeight",
5);this.f("arrowGap",5);this.f("shadow",B);this.f("layout",f.xg);this.f("verticalAlign",d.zd);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.m("rollOverBorderColor",i.P,"borderColor");this.m("rollOverArrowColor",i.P,"arrowColor");this.m("rollOverBackgroundColor",i.P,"backgroundColor");this.m("rollOverBackgroundColorRatios",i.P,"backgroundColorRatios");this.m("rollOverShadow",i.P,"shadow");this.m("pressedBorderColor",i.bb,"borderColor");this.m("pressedArrowColor",
i.bb,"arrowColor");this.m("pressedBackgroundColor",i.bb,"backgroundColor");this.m("pressedBackgroundColorRatios",i.bb,"backgroundColorRatios");this.m("pressedShadow",i.bb,"shadow");this.m("pressedRollOverBorderColor",i.Rb,"borderColor");this.m("pressedRollOverArrowColor",i.Rb,"arrowColor");this.m("pressedRollOverBackgroundColor",i.Rb,"backgroundColor");this.m("pressedRollOverBackgroundColorRatios",i.Rb,"backgroundColorRatios");this.m("pressedRollOverShadow",i.Rb,"shadow");this.m("pressedBorderColor",
i.W,"borderColor");this.m("pressedArrowColor",i.W,"arrowColor");this.m("pressedBackgroundColor",i.W,"backgroundColor");this.m("pressedBackgroundColorRatios",i.W,"backgroundColorRatios");this.m("pressedShadow",i.W,"shadow")};a.prototype.set=function(a,b){if(a=="label"&&this.get("label")!=b){this.F3=m;this.$d()}e.prototype.set.call(this,a,b)};a.prototype.mb=function(){e.prototype.mb.call(this);if(!this.Ka){this.Ka=new o;this.Ka.set("width","100%");this.Oa(this.Ka)}if(!this.aw){this.aw=new j;this.aw.set("direction",
j.lY);this.Oa(this.aw)}};a.prototype.k1=function(){this.open();this.trigger(new b(g.OPEN))};a.prototype.open=function(){this.unbind(g.ca,this.k1,this);this.NL(m)};a.prototype.close=function(){this.bind(g.ca,this.k1,this);this.NL(B)};a.prototype.Ma=function(){if(this.F3){this.Ka.set("text",this.get("label"));this.F3=B}this.Yb(["horizontalAlign","fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius",
"textShadowOpacity"],{},[this.Ka],m,m);if(this.v("arrowGap")){this.set("gap",this.p("arrowGap"));this.I("arrowGap")}if(this.v("arrowColor")){this.aw.set("color",this.p("arrowColor"));this.I("arrowColor")}if(this.v("arrowBeforeLabel")){this.p("arrowBeforeLabel")==m?this.Zm(this.aw,0):this.Zm(this.Ka,0);this.I("arrowBeforeLabel")}if(this.v("arrowWidth")){this.aw.set("width",this.p("arrowWidth"));this.I("arrowWidth")}if(this.v("arrowHeight")){this.aw.set("height",this.p("arrowHeight"));this.I("arrowHeight")}e.prototype.Ma.call(this)};
return a});define("gV",["dY","kG","nq","c"],function(a,b,d,c){var g=b.extend(d,function(){d.call(this)});g.jc={layout:c.mh};a.defaults(g.jc,d.jc);g.prototype.ab=function(){this.zn(g.jc)};return g});
define("kN","require,kG,cs,mk,bc,hn,nU,nq,gV,iu".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("mk"),g=a("bc"),f=a("hn"),i=a("nU"),e=a("nq"),j=a("gV"),o=a("iu"),a=b.extend(e,function(){e.call(this);this.je("DropDownPopup");this.Od=q;this.RP=B;this.lb=q;this.BJ=[];this.Zx=m});a.prototype.open=function(a){this.Od=a;this.RP=m;this.wb().Zm(this,this.wb().Db().length-1);this.set("overIndex",-1);this.set("visible",m);this.bind(i.zb,this.Ed,this);this.wb().bind(i.Wb,this.$k,this);this.wb().bind(i.sc,
this.Vb,this)};a.prototype.close=function(){this.Od=q;this.RP=m;this.set("visible",B);this.lb.set("overflow",f.tD);this.lb.set("contentOpaque",m);this.unbind(i.zb,this.Ed,this);this.wb().unbind(i.Wb,this.$k,this);this.wb().bind(i.sc,this.Vb,this)};a.prototype.mb=function(){e.prototype.mb.call(this);if(!this.lb){this.lb=new j;this.lb.set("overflow",f.tD);this.lb.bind(i.sc,this.Vb,this);this.lb.bind(i.Go,this.Px,this);this.Oa(this.lb)}};a.prototype.Vb=function(){this.ppa()};a.prototype.Ed=function(){this.v6=
B};a.prototype.Px=function(){this.v6=m};a.prototype.$k=function(){this.get("overIndex")==-1&&(!this.v6||!this.Fn)&&this.trigger(new d(i.Qy));this.v6=B};a.prototype.BGa=function(a){this.set("overIndex",this.j2(a.source))};a.prototype.CGa=function(a){a=this.j2(a.source);this.get("overIndex")==a&&this.set("overIndex",-1)};a.prototype.AGa=function(a){a=this.j2(a.source);this.set("overIndex",a);this.set("selectedIndex",a);this.trigger(new d(i.Ul))};a.prototype.j2=function(a){for(var b=0;b<this.BJ.length;b++)if(this.BJ[b]==
a)return b;return-1};a.prototype.ab=function(){e.prototype.ab.call(this);this.f("visible",B);this.f("width","100%");this.f("height","100%");this.f("includeInLayout",B);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",
m);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.Ma=function(){var a=
B,b=B;if(this.v("items")){for(var a=this.p("items")||[],c=this.BJ.length;c<a.length;c++){var f=new o;f.$({width:"100%",paddingLeft:5,paddingRight:5,paddingBottom:2,paddingTop:2,cursor:g.yf});f.bind(i.Gk,this.BGa,this);f.bind(i.Sh,this.CGa,this);f.bind(i.ca,this.AGa,this);this.BJ.push(f)}f=this.lb.Db();for(c=a.length;c<f.length;c++)this.lb.removeChild(f[c]);for(c=f.length;c<a.length;c++)this.lb.Oa(this.BJ[c]);for(c=0;c<a.length;c++)f[c].set("text",a[c]);this.I("items");b=a=m}if(this.v("selectedIndex")){this.I("selectedIndex");
a=m}for(var d=["horizontalAlign","popUpBackgroundOpacity","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight","popUpPaddingTop","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],c=0;c<d.length;c++){f=d[c];if(this.v(f)){this.I(f);b=m}}if(b){d={fontFamily:this.p("fontFamily"),fontSize:this.p("fontSize"),fontWeight:this.p("fontWeight"),fontStyle:this.p("fontStyle"),
horizontalAlign:this.p("horizontalAlign"),textDecoration:this.p("textDecoration"),textShadowColor:this.p("textShadowColor"),textShadowHorizontalLength:this.p("textShadowHorizontalLength"),textShadowVerticalLength:this.p("textShadowVerticalLength"),textShadowBlurRadius:this.p("textShadowBlurRadius"),textShadowOpacity:this.p("textShadowOpacity"),paddingBottom:this.p("popUpPaddingBottom"),paddingLeft:this.p("popUpPaddingLeft"),paddingRight:this.p("popUpPaddingRight"),paddingTop:this.p("popUpPaddingTop"),
backgroundOpacity:this.p("popUpBackgroundOpacity")};f=this.lb.Db();for(c=0;c<f.length;c++)f[c].$(d)}d=["selectedIndex","overIndex","popUpBackgroundColor","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor"];for(c=0;c<d.length;c++){f=d[c];if(this.v(f)){this.I(f);a=m}}if(a)for(var a=this.p("popUpBackgroundColor"),d=this.p("rollOverPopUpBackgroundColor")||a,b=this.p("selectedPopUpBackgroundColor")||a,j=this.p("popUpFontColor"),
u=this.p("rollOverPopUpFontColor")||j,v=this.p("selectedPopUpFontColor")||j,w=this.p("selectedIndex"),x=this.p("overIndex"),f=this.lb.Db(),c=0;c<f.length;c++)c==w?f[c].$({fontColor:v,backgroundColor:b}):c==x?f[c].$({fontColor:u,backgroundColor:d}):f[c].$({fontColor:j,backgroundColor:a});if(this.RP||this.v("popUpGap")||this.v("buttonWidth")){this.Od&&this.lb.set("minWidth",this.Od.Ua());this.I("popUpGap");this.ppa();this.RP=B}this.Yb(["popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength",
"popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{popUpShadow:"shadow",popUpShadowBlurRadius:"shadowBlurRadius",popUpShadowColor:"shadowColor",popUpShadowHorizontalLength:"shadowHorizontalLength",popUpShadowOpacity:"shadowOpacity",popUpShadowSpread:"shadowSpread",popUpShadowVerticalLength:"shadowVerticalLength"},[this.lb],m,m);this.Woa();e.prototype.Ma.call(this)};a.prototype.ppa=function(){if(this.Od){var a=this.wb(),b=this.Od.qPa(a),e=this.Od.Ua(),d=this.Od.Cb(),g=this.p("popUpGap"),
j=this.lb.tb,o=this.lb.Lb,i=a.Cb()-(b.top+d+g)-5,w=b.top-5-g,x=this.p("horizontalAlign");if(o<=i){this.Zx=m;this.lb.set("top",b.top+d+g);this.lb.set("maxHeight",l);this.lb.set("overflow",f.tD)}else if(o<=w){this.Zx=B;this.lb.set("top",b.top-o-g);this.lb.set("maxHeight",l);this.lb.set("overflow",f.tD)}else{if(i>=w){this.Zx=m;this.lb.set("top",b.top+d+g);this.lb.set("maxHeight",i)}else{this.Zx=B;this.lb.set("top",b.top-w+g);this.lb.set("maxHeight",w)}this.lb.set("overflow",f.Go)}d=x==c.ae?b.left+Math.round((e-
j)*0.5):x==c.Xa?b.left+e-j:b.left;d<0?d=b.left:b.left+j>a.Ua()&&(d=b.left+e-j);this.lb.set("left",d);this.Woa()}};a.prototype.Woa=function(){var a=this.p("popUpBorderRadius");this.lb.$({borderTopRadius:this.Zx?0:a,borderBottomRadius:this.Zx?a:0});for(var b=this.lb.Db(),c=0;c<b.length;c++){var e=c==0,f=c==b.length-1;b[c].$({borderTopRadius:!this.Zx&&e?a:0,borderBottomRadius:this.Zx&&f?a:0})}};return a});
define("oe","require,kG,cs,nU,nq,hh,kN".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("nU"),g=a("nq"),f=a("hh"),i=a("kN"),a=b.extend(g,function(){g.call(this);this.je("DropDown");this.rJ=B;this.Od=this.vj=q;this.Nna=m;this.Pe=-1;this.$n=B});a.prototype.ab=function(){g.prototype.ab.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",m);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",B);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.mb=function(){g.prototype.mb.call(this);if(!this.Od){this.Od=new f;this.Od.bind(c.sc,this.rGa,this);this.Od.bind(c.OPEN,this.NGa,this);this.Od.bind(c.Qy,this.w4,this);this.Od.bind(c.nc,this.qGa,this);this.Od.set("width","100%");this.Od.set("height",
"100%");this.Oa(this.Od)}if(!this.vj){this.vj=new i;this.vj.bind(c.Qy,this.w4,this);this.vj.bind(c.Ul,this.cHa,this);this.wb().Oa(this.vj)}};a.prototype.rGa=function(){this.Nna=m;this.$d()};a.prototype.NGa=function(){this.Od.open();this.vj.set("selectedIndex",this.get("selectedIndex"));this.vj.open(this.Od)};a.prototype.w4=function(){this.Od.close();this.vj.close()};a.prototype.qGa=function(){this.Od.close();this.vj.close()};a.prototype.cHa=function(){this.set("selectedIndex",this.vj.get("selectedIndex"));
this.w4();this.$n=m};a.prototype.Ma=function(){var a=B;if(this.v("prompt")||this.v("label")){a=m;this.I("label");this.I("prompt")}if(this.v("selectedIndex")||this.v("items")){var a=m,b=this.p("selectedIndex"),f=this.p("items");b>=0&&b>=f.length&&(b=-1);this.set("selectedIndex",b);this.vj.set("items",this.p("items"));this.vj.set("selectedIndex",this.p("selectedIndex"));this.I("items");this.I("selectedIndex");if(this.$n){this.$n=B;this.trigger(new d(c.qa))}}if(a){a=this.p("label");if(!a){b=this.p("selectedIndex");
a=b<0?this.p("prompt"):this.p("items")[b]}this.Od.set("label",a)}if(this.Nna){this.vj.set("minWidth",this.Od.Ua());this.vj.set("buttonWidth",this.Od.Ua())}this.Yb(["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration","horizontalAlign","textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"],{},[this.Od,this.vj],m,m);this.Yb(["popUpBorderRadius","popUpGap","popUpPaddingBottom","popUpPaddingLeft","popUpPaddingRight",
"popUpPaddingTop","popUpBackgroundColor","popUpBackgroundOpacity","rollOverPopUpBackgroundColor","selectedPopUpBackgroundColor","popUpFontColor","rollOverPopUpFontColor","selectedPopUpFontColor","popUpShadow","popUpShadowBlurRadius","popUpShadowColor","popUpShadowHorizontalLength","popUpShadowOpacity","popUpShadowSpread","popUpShadowVerticalLength"],{},[this.vj],m,m);this.Yb(["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.Od],m,m);g.prototype.Ma.call(this)};return a});
define("fq","require,kG,w,nU,oe,eQ,dY".split(","),function(a){var b=a("kG"),d=a("w"),c=a("nU"),g=a("oe"),f=a("eQ"),i=a("dY"),a=b.extend(g,function(){g.call(this);this.dd=q;this.Cia=[];this.bind(c.qa,this.uGa,this)});f.F("DropDown",a).H("UIComponent").Q({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"}).vs(["fontSize"]).fc([c.qa]);a.prototype.set=function(a,b){if(a=="playList"){if(this.dd)for(this.dd.unbind("change",this.nu,this);this.Cia.length;)this.Cia.shift().unwatch();
if(this.dd=b){d.watch(this.dd,"items.label",this.kV,this);d.watch(this.dd,"items.media.label",this.kV,this);this.kV();this.dd.bind("change",this.nu,this);this.nu()}else this.kV()}g.prototype.set.call(this,a,b)};a.prototype.kV=function(){this.dd?this.set("items",i(this.dd.get("items")).map(function(a){return a.get("label")||a.get("media")&&a.get("media").get("label")})):this.set("items",[])};a.prototype.nu=function(){this.set("selectedIndex",this.dd.get("selectedIndex"))};a.prototype.uGa=function(){this.dd&&
this.dd.set("selectedIndex",this.get("selectedIndex"))};return a});
define("di",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.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.F("DustPanoramaOverlay",b).H("PanoramaOverlay").Q({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===l&&(b=this.get("initialState"));return d.prototype.get.call(this,a,b)};return b});
define("by",["require","kG","eQ","ei"],function(a){var b=a("kG"),d=a("eQ"),c=a("ei"),a=b.extend(c,function(){c.call(this)});d.F("Effect",a).H("Object").Q({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"}).hh([c.Zi,c.WO,c.rq,c.Qba,c.Rba]).Mg({cancel:function(){return c.prototype.cancel.apply(this,arguments)},getPosition:function(){return c.prototype.Bk.apply(this,
arguments)},play:function(){return c.prototype.play.apply(this,arguments)},reverse:function(){return c.prototype.reverse.apply(this,arguments)},stop:function(){return c.prototype.stop.apply(this,arguments)}});return a});define("jk",["require","kG","eQ","ic"],function(a){var b=a("kG"),d=a("eQ"),c=a("ic"),a=b.extend(c,function(){c.call(this)});d.F("ExternalModel3DObject",a).H("Model3DObject").Q({parentId:"string",x:"number",y:"number",z:"number"});return a});
define("bn",["kG","ei"],function(a,b){var d=a.extend(b,function(){b.call(this);this.c_=this.b_=q});d.prototype.UF=function(){b.prototype.UF.call(this);this.b_=[];this.c_=[];this.Ew(function(a){this.b_.push(this.get("alphaFrom",a.Ak()));this.c_.push(this.get("alphaTo",a.Ak()))});this.VT()};d.prototype.Gu=function(){b.prototype.Gu.call(this);this.VT()};d.prototype.VT=function(){this.Ew(function(a,b){var f=this.b_[b],f=f+(this.c_[b]-f)*this.Bk(),d=0<a.Ak()&&a.vb;!d&&0<f?(a.Xi(0),a.Jf(m),a.Xi(f)):0==
f?(a.Jf(B),a.Xi(1)):a.Xi(f)})};d.prototype.SF=function(){this.VT();b.prototype.SF.call(this)};d.prototype.TF=function(){this.VT();b.prototype.TF.call(this)};return d});define("mH",["kG","bn"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",0);this.set("alphaTo",1)})});define("mT",["kG","mH","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("FadeInEffect",a).H("Effect");return a});
define("mZ",["kG","bn"],function(a,b){return a.extend(b,function(){b.call(this);this.set("alphaFrom",1);this.set("alphaTo",0)})});define("je",["kG","mZ","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("FadeOutEffect",a).H("Effect");return a});
define("ba","require,kG,lh,nU,gE,eQ,kJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("gE"),f=a("eQ"),i=a("kJ"),a=b.extend(d,function(){d.call(this);this.set("far",100);this.set("near",0.01);this.set("keyboardEnabled",m);this.set("mouseEnabled",m);this.set("automaticNearFar",B);this.set("autoNearFarTolerance",0);this.set("initialFov",75);this.set("initialX",0);this.set("initialY",0);this.set("initialZ",0);this.set("initialYaw",0);this.set("initialPitch",0);this.set("rotationSpeed",
1);this.set("translationSpeed",1);this.set("sequences",[]);this.set("state",g.L);this.set("userInteracting",B);this.set("moving",B);["distance","fov","yaw","pitch","userInteracting","x","y","z"].forEach(function(a){this.bind(c.u(a),this.WGa,this,m)}.bind(this))});a.prototype.yTa=function(){this.ioa={x:this.get("x"),y:this.get("y"),z:this.get("z"),yaw:this.get("yaw"),pitch:this.get("pitch"),distance:this.get("distance"),fov:this.get("fov")}};a.prototype.eKa=function(a){for(var b in a)this.ioa[b]=a[b]};
a.prototype.WGa=function(){if(!this.Hla){this.Hla=m;i.xy(function(){this.Hla=B;this.JLa()}.bind(this))}};a.prototype.JLa=function(){this.trigger(c.rn)};a.sUa=100;f.F("Model3DCamera",a).H("Object").Q({keyboardEnabled:"bool",mouseEnabled:"bool",far:"number",near:"number",autoNearFar:"bool",autoNearFarTolerance:"number",initialFov:"number",minFov:"number",maxFov:"number",fov:"number",initialYaw:"number",minYaw:"number",maxYaw:"number",yaw:"number",initialPitch:"number",minPitch:"number",maxPitch:"number",
pitch:"number",initialX:"number",minX:"number",maxX:"number",x:"number",initialY:"number",minY:"number",maxY:"number",y:"number",initialZ:"number",minZ:"number",maxZ:"number",z:"number",distance:"number",rotationSpeed:"number",translationSpeed:"number",initialSequence:"Model3DCameraSequence",idleSequence:"Model3DCameraSequence",sequences:"array[Model3DCameraSequence]",state:"enum[playing, paused, stopped]",timeToIdle:"number"}).fc([c.rn]).Mg({setStoredPosition:function(a){this.eKa(a)},play:function(){this.set("state",
g.S)},pause:function(){this.set("state",g.Gb)},stop:function(){this.set("state",g.L)}});return a});define("kb",["require","kG","eQ","ba","kJ"],function(a){var b=a("kG"),d=a("eQ"),c=a("ba");a("kJ");a=b.extend(c,function(){c.call(this);this.set("distance",0);this.set("eyesHeight",m)});d.F("FirstPersonModel3DCamera",a).H("Model3DCamera").Q({});return a});
define("cF","require,kG,lh,nU,eQ,ei".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("ei"),a=b.extend(d,function(){d.call(this);this.set("enabled",m);this.set("interactionEnabled",m);this.set("enabledInCardboard",B);this.set("enabledInStandard",m);this.set("enabledInSurfaceSelection",m);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",
B);this.bind(c.hc,this.gk,this,m);this.bind(c.nc,this.ck,this,m);this.Uh=[];this.vb=B});g.F("HotspotPanoramaOverlay",a).H("PanoramaOverlay").Q({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.mIa();this.Uh=[]}d.prototype.set.call(this,a,b);switch(a){case "enabledInCardboard":this.set("enabledInVR",b);break;case "effect":case "rollOverEffect":case "areas":this.qya()}};a.prototype.qya=function(){this.get("effect")&&this.get("effect").bind(f.rq,this.Tja,this,m);this.get("rollOverEffect")&&this.get("rollOverEffect").bind(f.rq,this.ala,this,m);this.get("areas",[]).forEach(function(a){a.bind(c.bc,this.Ija,this,m);a.bind(c.rb,this.Hja,
this,m)}.bind(this))};a.prototype.mIa=function(){this.get("effect")&&this.get("effect").unbind(f.rq,this.Tja,this,m);this.get("rollOverEffect")&&this.get("rollOverEffect").unbind(f.rq,this.ala,this,m);this.get("areas",[]).forEach(function(a){a.unbind(c.bc,this.Ija,this,m);a.unbind(c.rb,this.Hja,this,m)}.bind(this))};a.prototype.Ija=function(a){if(this.Uh.indexOf(a.source)<0){this.Uh.push(a.source);this.Uh.length==1&&this.iF()}};a.prototype.Hja=function(a){a=this.Uh.indexOf(a.source);if(a>=0){this.Uh.splice(a,
1);this.Uh.length==0&&this.Dm()}};a.prototype.iF=function(){var a=this.get("effect"),b=this.get("rollOverEffect");b&&(a&&a.Bk()>0?a.reverse():b.play())};a.prototype.Dm=function(){var a=this.get("rollOverEffect");if(a){var b=this.get("effect");a.Bk()>0?a.reverse():b&&b.get("loop")&&b.play()}};a.prototype.Tja=function(){if(this.Uh.length>0){var a=this.get("rollOverEffect");if(a){this.get("effect").stop();a.play()}}};a.prototype.ala=function(){if(this.Uh.length==0){this.get("rollOverEffect").stop();
var a=this.get("effect");a&&a.get("loop")&&a.play()}};a.prototype.gk=function(){var a=this.get("effect");a&&a.play()};a.prototype.ck=function(){var a=this.get("effect");a&&a.stop();(a=this.get("rollOverEffect"))&&a.stop()};return a});define("lQ",["require","kG","eQ","cF"],function(a){var b=a("kG"),d=a("eQ"),c=a("cF"),a=b.extend(c,function(){c.call(this)});d.F("FlatHotspotPanoramaOverlay",a).H("HotspotPanoramaOverlay");return a});
define("s",["kG","lh","eQ","nU"],function(a,b,d,c){a=a.extend(b,function(){b.call(this);this.set("displayTooltipInTouchScreens",m)});d.F("HotspotPanoramaOverlayArea",a).H("Object").Q({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",displayTooltipInTouchScreens:"bool",useHandCursor:"bool"}).fc([c.bc,c.rb,c.Gk,c.Sh]).hh([c.ca,c.zb,c.Wb]);return a});define("fl",["eQ","s"],function(a,b){a.F("FlatHotspotPanoramaOverlayArea",b).H("HotspotPanoramaOverlayArea");return b});
define("bo",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b,f){d.call(this);a!==l&&this.set("vertices",a);this.set("opacity",b!==l?b:1);f!==l&&this.set("timestamp",f)});a.F("QuadPanoramaOverlayPlaybackPosition",b).H("Object").Q({opacity:"number",timestamp:"number",vertices:"array[PanoramaPoint]"});return b});
define("hX",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b,f,i,e){d.call(this);a!==l&&this.set("yaw",a);b!==l&&this.set("pitch",b);f!==l&&this.set("roll",f);this.set("opacity",i!==l?i:1);e!==l&&this.set("timestamp",e)});a.F("FlatPanoramaOverlayPlaybackPosition",b).H("Object").Q({opacity:"number",pitch:"number",roll:"number",timestamp:"number",yaw:"number"});return b});
define("fP",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b,f,i,e,j,o,k,n){d.call(this);a!==l&&this.set("yaw",a);b!==l&&this.set("pitch",b);f!==l&&this.set("rotationX",f);i!==l&&this.set("rotationY",i);e!==l&&this.set("roll",e);j!==l&&this.set("hfov",j);o!==l&&this.set("vfov",o);this.set("opacity",k!==l?k:1);n!==l&&this.set("timestamp",n)});a.F("PanoramaOverlayPlaybackPosition",b).H("Object").Q({opacity:"number",yaw:"number",pitch:"number",rotationX:"number",
rotationY:"number",roll:"number",hfov:"number",vfov:"number",timestamp:"number"});return b});define("cw",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b){d.call(this);this.set("yaw",a);this.set("pitch",b)});a.F("PanoramaPoint",b).H("Object").Q({pitch:"number",yaw:"number"});return b});
define("U",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b,f,i,e,j,o){d.call(this);a!==l&&this.set("yaw",a);b!==l&&this.set("pitch",b);f!==l&&this.set("rotationX",f);i!==l&&this.set("rotationY",i);e!==l&&this.set("rotationZ",e);j!==l&&this.set("hfov",j);o!==l&&this.set("timestamp",o)});a.F("PopupPanoramaOverlayPlaybackPosition",b).H("Object").Q({yaw:"number",pitch:"number",rotationX:"number",rotationY:"number",rotationZ:"number",hfov:"number",timestamp:"number"});
return b});
define("jJ","require,lh,bo,hX,fP,cw,U".split(","),function(a){var b=a("lh"),d=a("bo"),c=a("hX"),g=a("fP"),f=a("cw"),i=a("U");return{UOa:function(a){return this.lR(a,this.KCa)},f$:function(a){return this.lR(a,this.KHa)},nPa:function(a){return this.lR(a,this.RHa)},h$:function(a){return this.lR(a,this.$Ha)},KCa:function(a){return new c(b.prototype.get.call(a,"yaw",0),b.prototype.get.call(a,"pitch",0),b.prototype.get.call(a,"roll",0),b.prototype.get.call(a,"opacity",1),0)},$Ha:function(a){var c=b.prototype.get.call(a,
"vertices",[q,q,q,q]);return new d([c[0]||new f(0,0),c[1]||new f(0,0),c[2]||new f(0,0),c[3]||new f(0,0)],b.prototype.get.call(a,"opacity",1),0)},KHa:function(a){function c(f,d){return b.prototype.get.call(a,f,d)}return new g(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("roll",0),c("hfov",c("vfov")===l?45:l),c("vfov"),c("opacity",1),0)},RHa:function(a){function c(f,d){return b.prototype.get.call(a,f,d)}return new i(c("yaw",0),c("pitch",0),c("rotationX",0),c("rotationY",0),c("rotationZ",
0),c("hfov",45),0)},lR:function(a,c){var f=b.prototype.get.call(a,"playbackPositions")||[];return f.length>0?f.slice().sort(function(a,b){return a.get("timestamp")-b.get("timestamp")||f.indexOf(a)-f.indexOf(b)}):[c(a)]}}});
define("iE","require,kG,lh,nU,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("jJ"),a=b.extend(d,function(){d.call(this);this.set("opacity",1);this.set("scale",1);this.Xc=l});g.F("FlatHotspotPanoramaOverlayImageBase",a).H("Object").Q({distance:"number",height:"number",horizontalAlign:"enum[center, left, right]",image:"ImageResource",offsetX:"number",offsetY:"number",opacity:"number",pitch:"number",playbackPositions:"array[FlatPanoramaOverlayPlaybackPosition]",roll:"number",
scale:"number",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",verticalAlign:"enum[bottom, middle, top]",width:"number",yaw:"number"}).fc([c.hc,c.nc]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=f.UOa(this);return this.Xc}return d.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=B;switch(a){case "opacity":case "distance":case "pitch":case "roll":case "yaw":case "playbackPositions":this.Xc=l;f=m}d.prototype.set.call(this,
a,b);f&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};return a});define("o",["require","kG","eQ","iE"],function(a){var b=a("kG"),d=a("eQ"),c=a("iE"),a=b.extend(c,function(){c.call(this)});d.F("FlatHotspotPanoramaOverlayImage",a).H("FlatHotspotPanoramaOverlayImageBase");return a});
define("dN",["require","kG","eQ","iE"],function(a){var b=a("kG"),d=a("eQ"),c=a("iE"),a=b.extend(c,function(){c.call(this)});d.F("FlatHotspotPanoramaOverlayMap",a).H("FlatHotspotPanoramaOverlayImageBase");return a});
define("nJ",["require","kG","eQ","ba"],function(a){var b=a("kG"),d=a("eQ"),c=a("ba"),a=b.extend(c,function(){c.call(this);this.set("distance",0);this.set("keepHeight",m);this.set("doubleClickAction","zoom")});d.F("FlyOverModel3DCamera",a).H("Model3DCamera").Q({keepHeight:"bool",minHeight:"number",doubleClickAction:"enum[zoom, none]"});return a});
define("mg","require,kG,lh,nU,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("jJ"),a=b.extend(d,function(){d.call(this);this.Xc=l;this.set("enabled",m);this.set("interactionEnabled",m);this.set("contentInteractive",B);this.set("transparent",B)});g.F("FramePanoramaOverlay",a).H("PanoramaOverlay").Q({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"}).fc([c.nc,c.Gk,c.Sh,c.bc,c.rb,c.hc]).hh([c.ca]).vi(["url"]);a.prototype.set=function(a,b){var f=B;switch(a){case "hfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "vfov":case "yaw":case "playbackPositions":this.Xc=l;f=m}d.prototype.set.call(this,a,b);f&&a!=
"playbackPositions"&&this.trigger(c.u("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=f.f$(this);return this.Xc}return d.prototype.get.call(this,a,b)};return a});define("df",["dY","kG","nq","c"],function(a,b,d,c){var g=b.extend(d,function(){d.call(this)});g.jc={layout:c.Lv};a.defaults(g.jc,d.jc);g.prototype.ab=function(){this.zn(g.jc)};return g});
define("jj",["dY","kG","df","eQ"],function(a,b,d,c){a=b.extend(d,function(){d.call(this)});c.F("GridContainer",a).H("UIComponent").Q({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("iQ","require,dY,jquery.mod,cs,fQ,nU,hy,lB,jR,hV,kG".split(","),function(a){function b(){}function d(a){this.eRa=a;this.jo=[];this.Fe=0}var c=a("dY");a("jquery.mod");var g=a("cs"),f=a("fQ"),i=a("nU"),e=a("hy"),j=a("lB"),o=a("jR"),k=a("hV"),n=a("kG").extend(f,function(a){f.call(this);this.url=a;this.caa=this.Fe=0;this.status=n.sZ;this.Bv=q});n.prototype.O$=function(a){this.caa=this.caa+a};n.prototype.fH=function(a){this.Fe=this.Fe+a};n.prototype.start=function(){this.status=n.oP;o.LX(this.url)?
this.cx():this.In=k.add(this.url,e.NO,this.TIa.bind(this),this.Zea.bind(this))};n.prototype.TIa=function(){this.Bv=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");this.Bv.open("GET",this.url);this.Bv.onreadystatechange=function(){this.Bv.readyState>3&&this.cx()}.bind(this);this.Bv.send()};n.prototype.Zea=function(){if(this.Bv){this.Bv.abort();this.Bv=q}};n.prototype.stop=function(){if(this.status==n.oP){this.status=n.sZ;this.Zea();this.In&&this.In.cancel()}};n.prototype.cx=
function(){this.Bv=q;if(this.In){this.In.loaded();this.In=q}this.status=n.zxa;this.trigger(new g(i.U))};n.sZ="not loaded";n.oP="loading";n.zxa="loaded";d.prototype.FNa=function(a){a.forEach(function(a){if(this.jo.indexOf(a)<0){this.jo.push(a);a.fH(this.Fe);a.O$(1)}}.bind(this))};d.prototype.oRa=function(a){var b=this.jo;this.jo=[];b.forEach(function(b){if(a.indexOf(b)<0)this.jo.push(b);else{b.fH(-this.Fe);b.O$(-1)}}.bind(this))};d.prototype.gRa=function(){this.jo.forEach(function(a){a.fH(-this.Fe);
a.O$(-1)}.bind(this));this.jo=[];this.Fe=0};d.prototype.fH=function(a){this.Fe=this.Fe+a;this.jo.forEach(function(b){b.fH(a)})};b.Qd=[];b.mma=[];b.TCa=0;b.gqa=function(a,b){this.RT(a).FNa(b.map(function(a){return this.la(a)}.bind(this)));this.FU();this.X()};b.sRa=function(a,b){this.RT(a).oRa(b.map(function(a){return this.la(a)}.bind(this)));this.FU();this.X()};b.hRa=function(a){this.RT(a).gRa();this.FU();this.X()};b.aX=function(a,b){this.RT(a).fH(b);this.FU();this.X()};b.FU=function(){this.Qd.sort(function(a,
b){return b.Fe-a.Fe})};b.X=function(a){if(this.enabled()&&(a||!this.Nr))if(a){this.Nr&&clearTimeout(this.Nr);this.Nr=q;var a=this.JDa(),b=this.KDa();c(a).difference(b).forEach(function(a){a.stop()});c(b).difference(a).forEach(function(a){a.start()})}else this.Nr=setTimeout(function(){this.Nr=q;this.X(m)}.bind(this),1E3)};b.Nr=q;b.JDa=function(){return this.Qd.filter(function(a){return a.status==n.oP})};b.KDa=function(){for(var a=this.LDa(),b=[],c=0;c<this.Qd.length&&b.length<a;c++){var e=this.Qd[c];
e.caa>0&&(e.status==n.sZ||e.status==n.oP)&&b.push(e)}return b};b.LDa=function(){return this.TCa>0?0:5};b.RT=function(a){var b=c(this.mma).find(function(b){return b.eRa==a});if(!b){b=new d(a);this.mma.push(b)}return b};b.la=function(a){var b=c(this.Qd).find(function(b){return b.url==a});if(!b){b=new n(a);b.bind(i.U,this.X,this);this.Qd.push(b)}return b};b.enabled=function(a){if(a===l)return b.UBa||b.VBa?B:b.q1!==l?b.q1:b.N;b.N=a};b.N=m;b.Qaa=function(a){b.q1=a.get(TDV.PlayerSettings.BACKGROUND_PRELOAD_ENABLED)};
b.q1=l;b.VBa=j.Si("disable-background-preload",B);b.UBa=B;return b});define("ee",["kG","lh","eQ","iQ"],function(a,b,d,c){var g=a.extend(b,function(){b.call(this);this.s8=a.hq(this.s8,this)});d.F("Media",g).H("Object").Q({label:"string",thumbnailUrl:"string"}).vi(["thumbnailUrl"]);g.prototype.s8=function(){c.gqa(this,this.hs())};g.prototype.hs=function(){return[]};g.prototype.qRa=function(){c.hRa(this)};g.prototype.set=function(a,c){b.prototype.set.call(this,a,c);this.s8()};return g});
define("ie",["require","dY","kG","eQ","ee"],function(a){a("dY");var b=a("kG"),d=a("eQ"),c=a("ee"),a=b.extend(c,function(){c.call(this);this.WR=this.VF=l;this.set("pitch",0);this.set("distanceToFloor",1.7);this.set("mapLocations",[]);this.set("modelLocations",[]);this.set("minFaceSize",l)});d.F("Panorama",a).H("Media").Q({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]",modelLocations:"array[PanoramaModel3DLocation]",overlays:"array[PanoramaOverlay]",partial:"bool",pitch:"number",vfov:"number",vrMenu:"Menu"});a.prototype.get=function(a,b){switch(a){case "overlays":return this.m2();case "frames":return this.tha();case "partial":if(359.9>this.get("hfov"))return m}return c.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){switch(a){case "cardboardMenu":this.set("vrMenu",
b)}c.prototype.set.call(this,a,b)};a.prototype.m2=function(){var a=c.prototype.get.call(this,"overlays");a||(a=[]);return this.Z6(a)};a.prototype.Z6=function(a){if(this.VF===l||this.WR!=a){var b=function(a){return d.xa("PopupPanoramaOverlay",a)},c=function(a){return d.xa("LensFlarePanoramaOverlay",a)};this.WR=a;this.VF=[].concat(a.filter(function(a){return!(b(a)||c(a))}),a.filter(c),a.filter(b))}return this.VF};a.prototype.psa=function(){return 0<this.get("overlays").filter(function(a){return d.xa("TripodCapPanoramaOverlay",
a)}).length};a.prototype.dsa=function(){return 0<this.get("overlays").filter(function(a){return d.xa("CeilingCapPanoramaOverlay",a)}).length};a.prototype.Esa=function(){if(!this.v$())return B;var a=this.get("pitch",0),b=this.get("vfov",180);if(179.9<=b)return m;var c=this.dsa()?90:a+0.5*b,a=this.psa()?-90:a-0.5*b;return 179.9<=c-a?m:B};a.prototype.v$=function(){return 359.9<=this.get("hfov")&&!this.get("partial")};a.prototype.Jj=function(){var a=this.tha();return 0<a.length&&a[0].Jj()};a.prototype.sW=
T(0);a.prototype.tha=function(){var a=c.prototype.get.call(this,"frames",[]);a.forEach(function(a){a.JNa(this)}.bind(this));return a};return a});
define("mA",["require","kG","eQ","ie"],function(a){var b=a("kG"),d=a("eQ"),c=a("ie"),a=b.extend(c,function(){c.call(this)});d.F("HDRPanorama",a).H("Panorama").Q({minimumLuminance:"number",maximumLuminance:"number",luminanceChangeTime:"number",maxLuminanceChangeSpeed:"number"});a.prototype.sW=function(){var a=this.get("frames")||[];return Math.floor((a.length-1)/2)};return a});
define("ln",["kG","lh","eQ","nU"],function(a,b,d,c){a=a.extend(b,function(){b.call(this)});d.F("HotspotMapOverlayArea",a).H("Object").Q({mapColor:"or[color,enum[image,transparent,any]]",toolTip:"string",useHandCursor:"bool"}).fc([c.bc,c.rb]).hh([c.ca]);return a});
define("lr",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),c=b.extend(d,function(){d.call(this)});a.F("ImageResourceLevel",c).H("Object").Q({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]]"}).vi(["url"]);c.prototype.get=function(a,b){switch(a){case "tags":var i=d.prototype.get.call(this,
a);i||(i=[]);Array.isArray(i)||(i=[i]);0>i.indexOf(c.Fq)&&d.prototype.get.call(this,"grayscale")&&(i=i.concat([c.Fq]));return i}return d.prototype.get.call(this,a,b)};c.prototype.osa=function(a){return 0<=this.get("tags").indexOf(a)};c.Fq="preload";c.pP="mobile";c.Wca="ipadpro";c.qP="mobilevr";c.wZ="mobilevr2gen";c.xZ="ondemand";return c});
define("fI",["require","lr","t","lB"],function(a){var b=a("lr"),d=a("t"),c=a("lB");return{cq:function(a){return this.Gj(a,"load")},kC:function(a){return this.Gj(a,"preload")},YG:function(a){return this.cq(a)!=this.kC(a)},Gj:function(a,b){var c=a.get("levels")||[],e=this.aDa(c),e=this.dEa(b,e),c=this.GCa(c,b),d=this.Dha(c,e[0],e[1],this.bEa(b));d||(d=this.Dha(c,e[0],e[1],l));return d},GCa:function(a,c){"preload"==c?a=this.VI(a,b.Fq):"load"==c&&(a=this.FCa(a,b.Fq));d.hv()&&(a=this.VI(a,b.Wca));d.A$()&&
(a=this.VI(a,b.wZ));d.If()&&(a=this.VI(a,b.qP));d.ob()&&(a=this.VI(a,b.pP));return a},aDa: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")},dEa:function(a,b){if("preload"==a)return[0,0];var c=1E4;this.MCa()||(d.If()?c=2048:d.hv()?c=2048:d.ob()&&(c=1024));return 1>b?[c*b,c]:[c,c/b]},bEa:function(a){if("load"==a)return B},MCa:function(){return d.hv()&&c.Si("recent_ipad_use_max_res",B)},VI:function(a,b){var c=
a.filter(function(a){return a.osa(b)});0==c.length&&(c=a);return c},FCa:function(a,b){var c=a.filter(function(a){return!a.osa(b)});0==c.length&&(c=a);return c},Dha:function(a,b,c,e){function d(a){return Math.abs(a.get("width")*a.get("height")-b*c)}a=a.filter(function(a){return e!==l&&e!=a.get("grayscale",B)?B:m});if(0==a.length)return q;a.sort(function(a,b){return d(a)-d(b)});return a[0]}}});
define("J","require,kG,lh,eQ,fI,mk,lv".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),g=a("fI"),f=a("mk"),i=a("lv"),a=b.extend(d,function(){d.call(this);this.set("x",0);this.set("y",0);this.set("offsetX",0);this.set("offsetY",0);this.set("width",0);this.set("height",0);this.set("scaleMode",i.Hs);this.set("horizontalAlign",f.ae);this.set("verticalAlign",f.zd)});c.F("HotspotMapOverlayImageBase",a).H("Object").Q({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.cq=function(){return this.get("image")?g.cq(this.get("image")):q};a.prototype.kC=function(){return this.get("image")?g.kC(this.get("image")):q};return a});define("kH",["kG","cs"],function(a,b){return a.extend(b,function(a,c){b.call(this,a);this.Kg=c})});
define("ck",["require","kG","lh","nU","kH"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("kH"),a=b.extend(d,function(){d.call(this);this.MM=[];this.Ef=l;this.o="initial"});a.prototype.ks=S("MM");a.prototype.xO=function(a){this.MM!=a&&(this.MM=a,this.cx=this.Ef=l)};a.prototype.uSa=function(a){this.Ef!==a&&(this.o="loading",this.Ef=a,this.trigger(new g(c.gc,this.Ef)))};a.prototype.Daa=function(){"loaded"!==this.o&&(this.o="loaded",this.trigger(c.U))};a.prototype.TRa=function(){"loaded"!==this.o&&
(this.o="error",this.trigger(c.zc))};return a});define("de",["kG","ck"],function(a,b){var d=a.extend(b,function(a){b.call(this);this.ke=a;this.n=l});d.prototype.Ee=S("ke");d.prototype.NPa=function(a){return this.n!==l&&this.n===a.n};d.fda="map";d.gda="overlay";return d});define("jp",["kG","de"],function(a,b){var d=a.extend(b,function(a,d,f){b.call(this,b.gda);this.yHa=a;this.Ba=d;this.Da=f});d.prototype.getX=S("Ba");d.prototype.getY=S("Da");d.eda="image";d.dda="fov";return d});
define("ll",["kG","jp"],function(a,b){var d=a.extend(b,function(a,d,f,i,e,j,o,k,n,r,p,t){b.call(this,b.eda,f,i);this.n=a;this.kd=d;this.Lma=e;this.eu=j;this.fu=o;this.Z=k;this.ia=n;this.ef=r;this.Tk=p;this.xl=t;this.MM=[d]});d.prototype.pi=S("kd");d.prototype.fd=S("Z");d.prototype.Td=S("ia");return d});
define("gJ","require,kG,eQ,J,fI,ll".split(","),function(a){var b=a("kG"),d=a("eQ"),c=a("J"),g=a("fI"),f=a("ll"),a=b.extend(c,function(){c.call(this);this.au=l});d.F("HotspotMapOverlayImage",a).H("HotspotMapOverlayImageBase");a.prototype.getItem=function(){return this.Hj()};a.prototype.Hj=function(a){if(this.au===l)this.au=this.YV(a);return this.au};a.prototype.YV=function(a){var b=this.get("image");if(b){b=g.cq(b);return new f(this,b.get("url"),this.get("x"),this.get("y"),a,this.get("offsetX"),this.get("offsetY"),
this.get("width"),this.get("height"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"))}return q};return a});define("N",["require","kG","eQ","J"],function(a){var b=a("kG"),d=a("eQ"),c=a("J"),a=b.extend(c,function(){c.call(this)});d.F("HotspotMapOverlayMap",a).H("HotspotMapOverlayImageBase");return a});
define("fO","require,kG,lh,nU,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("jJ"),a=b.extend(d,function(){d.call(this);this.set("opacity",1);this.set("scale",1);this.Xc=l});g.F("HotspotPanoramaOverlayImageBase",a).H("Object").Q({yaw:"number",pitch:"number",roll:"number",rotationX:"number",rotationY:"number",hfov:"number",vfov:"number",distance:"number",horizontalAlign:"enum[center, left, right]",verticalAlign:"enum[bottom, middle, top]",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",
opacity:"number",scale:"number",image:"ImageResource",playbackPositions:"array[PanoramaOverlayPlaybackPosition]"}).fc([c.hc,c.nc]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=f.f$(this);return this.Xc}return d.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=B;switch(a){case "distance":case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "yaw":case "opacity":case "playbackPositions":this.Xc=l;f=m}d.prototype.set.call(this,
a,b);f&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};return a});define("kW",["require","kG","eQ","fO"],function(a){var b=a("kG"),d=a("eQ"),c=a("fO"),a=b.extend(c,function(){c.call(this)});d.F("HotspotPanoramaOverlayImage",a).H("HotspotPanoramaOverlayImageBase");return a});define("Y",["require","kG","eQ","fO"],function(a){var b=a("kG"),d=a("eQ"),c=a("fO"),a=b.extend(c,function(){c.call(this)});d.F("HotspotPanoramaOverlayMap",a).H("HotspotPanoramaOverlayImageBase");return a});
define("kI",[],function(){function a(a){for(var b={},a=a.split(","),c=0;c<a.length;c++)b[a[c]]=m;return b}var b=/^<([-A-Za-z0-9_]+\:?[-A-Za-z0-9_]*)((?:\s+[-A-Za-z0-9_]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,d=/^<\/([-A-Za-z0-9_]+\:?[-A-Za-z0-9_]*)[^>]*>/,c=/([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,g=a("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),f=a("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"),
i=a("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),e=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),j=a("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),o=a("script,style");return function(a,n){function r(a,b,d,o){b=b.toLowerCase();if(f[b])for(;u.last()&&i[u.last()];)p(0,u.last());e[b]&&
u.last()==b&&p(0,b);(o=g[b]||!!o)||u.push(b);if(n.start){var k=[];d.replace(c,function(a,b,c,e,f){a=c?c:e?e:f?f:j[b]?b:"";k.push({name:b,value:a,H9:a.replace(/(^|[^\\])"/g,'$1\\"')})});n.start&&n.start(b,k,o)}}function p(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 e=u.length-1;e>=c;e--)n.end&&n.end(u[e]);u.length=c}}var t,s,u=[],v=a;for(u.last=function(){return this[this.length-1]};a;){s=m;if(!u.last()||!o[u.last()]){if(0==a.indexOf("<\!--"))t=a.indexOf("--\>"),
0<=t&&(n.aOa&&n.aOa(a.substring(4,t)),a=a.substring(t+3),s=B);else if(0==a.indexOf("</")){if(t=a.match(d))a=a.substring(t[0].length),t[0].replace(d,p),s=B}else if(0==a.indexOf("<")&&(t=a.match(b)))a=a.substring(t[0].length),t[0].replace(b,r),s=B;s&&(t=a.indexOf("<"),s=0>t?a:a.substring(0,t),a=0>t?"":a.substring(t),n.gN&&n.gN(s))}else a=a.replace(RegExp("(.*?)</"+u.last()+"[^>]*>"),function(a,b){b=b.replace(/<\!--(.*?)--\>/g,"$1").replace(/<!\[CDATA\[(.*?)]]\>/g,"$1");n.gN&&n.gN(b);return""}),p(0,
u.last());a==v&&h("Parse Error: "+a);v=a}p()}});
define("fg","require,jquery.mod,dY,kG,nU,cs,fQ,t,kI".split(","),function(a){var b=a("jquery.mod");a("dY");var d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("t"),e=a("kI"),j=d.extend(f,function(a){f.call(this);this.Ze=b(a);this.EL=[];this.zw=q});j.prototype.dQa=function(a){a&&a.toLowerCase().indexOf("<script")>=0?i.DG()==i.IH?this.bFa(a):this.aFa(a):this.$Ea(a)};j.prototype.$Ea=function(a){this.Ze.empty();a&&this.Ze.append(a);this.Goa()};j.prototype.bFa=function(a){this.Ze.empty();var c=this.Ze,f=q,
d=[],g=q;new e(a,{start:function(a,e,d){if(a=="script"){for(var d=l,j=0;j<e.length&&d===l;j++){var o=e[j];if(o.name=="src")d=o.value}g={parent:c,previousSibling:f,src:d,content:""}}else{for(var i={},j=0;j<e.length;j++){o=e[j];i[o.name]=o.value}e=b("<"+a+"/>");e.attr(i);c.append(e);if(d)f=e;else{c=e;f=q}}},gN:function(a){g?g.content=g.content+a:c.append(a)},end:function(a){if(a=="script"){d.push(g);g=q}else{f=c;c=c.parent()}}});this.EL=d;this.bS()};j.prototype.aFa=function(a){function c(){g++;return f+
g}this.Ze.empty();var f="fragment_"+d.lua(6)+"_",g=0,j=c(),i=[j],s=l,u=[],v=q,w="";new e(a,{start:function(a,b,e){if(a=="script"){e=l;for(a=0;a<b.length&&e===l;a++){var f=b[a];if(f.name=="src")e=f.value}v={parentClsName:i[i.length-1],previousSiblingClsName:s,src:e,content:""}}else{w=w+("<"+a);for(var d=c(),g=B,a=0;a<b.length;a++){f=b[a];if(f.name=="class"){f.H9=f.H9+(" "+d);g=m}w=w+(" "+f.name+'="'+f.H9+'"')}g||(w=w+(' class="'+d+'"'));if(e){w=w+"/>";s=d}else{w=w+">";i.push(d);s=l}}},gN:function(a){v?
v.content=v.content+a:w=w+a},end:function(a){if(a=="script"){u.push(v);v=q}else{s=i[i.length-1];i.pop()}}});this.Ze.get(0).innerHTML=w;this.Ze.addClass(j);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):q}this.Ze.removeClass(j);this.EL=u;this.bS()};j.prototype.bS=function(){if(!this.zw)if(this.EL.length>0){this.zw=this.EL[0];this.EL.splice(0,1);var a=this.zw.src;if(a){var c=
this;j.LFa(a,function(){c.Mia()},function(){c.SFa()})}else{var e=this.zw.parent,a=this.zw.previousSibling,f;f=a?a.next():e.children(":first");a=document.write;document.write=f.length?function(a){f.before(a)}:function(a){e.append(a)};b.globalEval(this.zw.content);document.write=a;this.Mia()}}else this.Goa()};j.prototype.SFa=function(){this.zw=q;this.bS()};j.prototype.Mia=function(){this.zw=q;this.bS()};j.prototype.Goa=function(){this.trigger(new g(c.Ga))};j.Kia={};j.LFa=function(a,c,e){j.Kia[a]?c.call(window):
b.ajax({url:a,async:B,dataType:"script",error:e,success:function(){j.Kia[a]=m;c.call(window)}})};return j});
define("lX",["kG","nU","cs","fQ"],function(a,b,d,c){a=a.extend(c,function(a,b){c.call(this);this.kFa=a;this.N=b;this.Pi=q});a.prototype.bind=function(){var a=c.prototype.bind.apply(this,arguments);this.IM();return a};a.prototype.unbind=function(){var a=c.prototype.unbind.apply(this,arguments);this.IM();return a};a.prototype.start=function(){this.N=m;this.IM()};a.prototype.stop=function(){this.N=B;this.IM()};a.prototype.OK=function(){this.trigger(new d(b.me))};a.prototype.IM=function(){if(this.N&&
this.csa(b.me)){if(this.Pi==q){var a=this;this.Pi=setTimeout(function(){a.Pi=q;a.OK();a.IM()},this.kFa)}}else this.Pi!=q&&(clearTimeout(this.Pi),this.Pi=q)};return a});
define("kE","require,jquery.mod,dY,kG,nU,hO,mk,d,fg,ez,lX".split(","),function(a){var b=a("jquery.mod"),d=a("dY"),c=a("kG"),g=a("nU"),f=a("hO"),i=a("mk"),e=a("d"),j=a("fg"),o=a("ez"),a=a("lX"),k=c.extend(e,function(){e.call(this);this.je("HTML");this.Oz=k.tP;this.Wla=this.Xla=0;this.Ona=(new Date).getTime();this.FQ=this.fj=q;this.DD=this.DD.bind(this);this.j_=[]});k.prototype.ab=function(){e.prototype.ab.call(this);this.f("content");this.f("horizontalAlign",i.Ja);this.f("verticalAlign",i.zd);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)};k.prototype.Ar=function(a){this.Sa&&f.get(this.Sa).jRa(this.DD);e.prototype.Ar.call(this,a);if(this.Sa){f.get(this.Sa).yNa(this.DD);f.get(this.Sa).GG(this.DD)}};k.prototype.mb=function(){e.prototype.mb.call(this);
if(!this.FQ){this.fj=document.createElement("div");this.FQ=b(this.fj);this.Z0({position:"absolute",display:"inline",left:0,top:0,"box-sizing":"border-box"});var a=this.Ab();a.sH(B);a.append(this.FQ);this.$ha=new j(this.FQ);this.$ha.bind(g.Ga,this.PEa,this,m);this.bind(g.sc,this.aia,this)}};k.prototype.Ma=function(){var a={},b=B;this.v("visible")&&(b=m);if(this.v("content")){this.$ha.dQa(this.p("content"));this.I("content");b=m}if(this.v("fontFamily")){b=this.p("fontFamily");d(b).isString()||(b="");
a.fontFamily=o.$u(b);this.I("fontFamily");b=m}if(this.v("fontSize")){b=this.p("fontSize");d(b).isNumber()?b=b+"px":d(b).isString()||(b="");a.fontSize=b;this.I("fontSize");b=m}if(this.v("fontColor")){b=this.p("fontColor");d(b).isString()||(b="");a.color=b;this.I("fontColor");b=m}if(this.v("fontWeight")){b=this.p("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.I("fontWeight");b=m}if(this.v("fontStyle")){b=this.p("fontStyle");switch(b){case "italic":case "normal":break;default:b="normal"}a.fontStyle=b;this.I("fontStyle");b=m}if(this.v("textDecoration")){b=this.p("textDecoration");switch(b){case "underline":case "overline":case "line-through":case "none":break;default:b="none"}a.textDecoration=b;this.I("textDecoration");b=m}if(this.v("textAlign")){b=this.p("textAlign");switch(b){case "left":case "right":case "center":case "justify":break;
default:b=""}a["text-align"]=b;this.I("textAlign");b=m}var c=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(d(c).any(function(a){return this.v(a)},this)){var f={};d(c).each(function(a){f[a]=this.p(a);this.I(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(" ");c=f.textShadowVerticalLength==0&&this.p("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="+c+")"}d(["paddingTop","paddingRight",
"paddingBottom","paddingLeft"]).any(function(a){return this.v(a)},this)&&(b=m);this.Z0(a);b&&this.oja();e.prototype.Ma.call(this)};k.prototype.oja=function(){this.aia();this.Nb();this.p("visible")&&this.p("content")?this.HL(k.sda):this.HL(k.tP)};k.prototype.$x=function(a){for(var b=a.target;b&&b.tagName!="A"&&b.tagName!="BUTTON";)b=b.parentElement;e.prototype.$x.call(this,a,!b)};k.prototype.du=function(){e.prototype.du.call(this);var a=this.Ab();this.Zk=this.fj.clientWidth+a.SG()+a.VG();this.Yk=this.fj.clientHeight+
a.WG()+a.OG()};k.prototype.tna=function(a){if(this.p2()!=a){this.fj.style.paddingLeft=a+"px";this.Nb()}};k.prototype.p2=function(){return parseInt(this.fj.style.paddingLeft)||0};k.prototype.vna=function(a){if(this.r2()!=a){this.fj.style.paddingTop=a+"px";this.Nb()}};k.prototype.r2=function(){return parseInt(this.fj.style.paddingTop)||0};k.prototype.una=function(a){if(this.q2!=a){this.fj.style.paddingRight=a+"px";this.Nb()}};k.prototype.q2=function(){return parseInt(this.fj.style.paddingRight)||0};
k.prototype.sna=function(a){if(this.n2()!=a){this.fj.style.paddingBottom=a+"px";this.Nb()}};k.prototype.n2=function(){return parseInt(this.fj.style.paddingBottom)||0};k.prototype.PEa=function(){this.j_=Array.prototype.slice.call(this.fj.querySelectorAll("*[style]")).map(function(a){var b={};b.qOa=a;b.style=a.getAttribute("style");return b}).filter(function(a){return n.test(a.style)}).map(function(a){for(var b=a.style,c=[];;){var e=n.exec(b);if(e){c.push(function(a){return function(){return a}}(b.substr(0,
e.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,e){return Math.round(e*a)+"px"};case "vmax":return function(b,c,e){return Math.round(e*a)+"px"}}}(parseFloat(e[1]),e[3].toLowerCase()));b=b.substr(e.index+e[0].length)}else{c.push(function(a){return function(){return a}}(b));a.functions=c;return a}}});this.Sa&&f.get(this.Sa).GG(this.DD)};k.prototype.DD=function(a,
b,c,e){if(this.j_.length!=0){this.j_.forEach(function(f){var d=f.functions.map(function(f){return f(a,b,c,e)}).join("");f.qOa.setAttribute("style",d)});this.oja()}};k.prototype.aia=function(){var a={width:"auto",height:"auto"},b=this.Ab();if(!this.D2()){this.Zk!=this.Z&&this.Nb();var c=this.Z-(b.SG()+b.VG());c>0&&(a.width=c+"px")}if(!this.Vha()){this.Yk!=this.ia&&this.Nb();b=this.ia-(b.WG()+b.OG());b>0&&(a.height=b+"px")}this.Z0(a)};k.prototype.Nja=function(){var a=this.fj.clientWidth,b=this.fj.clientHeight;
if(this.Xla!=a||this.Wla!=b){this.Xla=a;this.Wla=b;this.Nb();this.HL(k.sda)}else{a=(new Date).getTime()-this.Ona;a>k.gya?this.HL(k.Wxa):a>k.fya&&this.HL(k.Vxa)}};k.prototype.IIa=function(){this.Ona=(new Date).getTime()};k.prototype.HL=function(a){this.Oz==k.fUa&&this.IIa();if(this.Oz!=a){this.Oz!=k.tP&&k.hfa[this.Oz].unbind(g.me,this.Nja,this);this.Oz=a;this.Oz!=k.tP&&k.hfa[this.Oz].bind(g.me,this.Nja,this,m)}};k.prototype.Z0=function(a){var b=this.fj.style,c;for(c in a)b[c]=a[c]};var n=/[^\d]((\d*\.)?\d+)\s*(vmin|vmax|vw|vh)/i;
k.tP="stopped";k.Wxa="slow";k.Vxa="normal";k.sda="fast";k.gya=3E4;k.fya=5E3;k.hfa={slow:new a(2E3,m),normal:new a(500,m),fast:new a(100,m)};return k});
define("jD",["kG","kE","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("HTML",a).H("UIComponent").Q({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"}).vs(["fontSize"]);return a});define("b",["dY","kG","nq","c"],function(a,b,d,c){var g=b.extend(d,function(){d.call(this)});g.jc={layout:c.MO};a.defaults(g.jc,d.jc);g.prototype.ab=function(){this.zn(g.jc)};return g});
define("in",["kG","hn","b","kE"],function(a,b,d,c){a=a.extend(d,function(){d.call(this);this.Tw=q;this.set("contentOpaque",m)});a.prototype.ab=function(){d.prototype.ab.call(this);this.f("overflow",b.Go);this.f("html")};a.prototype.mb=function(){d.prototype.mb.call(this);this.Tw==q&&(this.Tw=new c,this.Tw.$({left:0}),this.Oa(this.Tw))};a.prototype.Ma=function(){this.Tw.set("width",this.D2()?l:"100%");this.v("html")&&(this.Tw.set("content",this.p("html")),this.I("html"));this.Yb(["paddingLeft","paddingTop",
"paddingRight","paddingBottom"],{},[this.Tw],m,m);this.Yb(["cursor"],{},[this.Tw],m,B);d.prototype.Ma.call(this)};return a});
define("bw",["require","kG","in","eQ"],function(a){var b=a("kG"),d=a("in"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("HTMLText",b).H("UIComponent").Q({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("jA","require,jquery.mod,kG,nU,cs,lB,gS,bc,lv,gq,dV,lO".split(","),function(a){function b(a,b,c){return function(e){var f;f=b=="mouse"?this.pA(e):this.yE(e);this.tia(f)?a.call(this,e):c=="release"?a.call(this,e):this.UCa(f,e)}}var d=a("jquery.mod"),c=a("kG"),g=a("nU"),f=a("cs"),i=a("lB"),e=a("gS"),j=a("bc"),o=a("lv"),k=a("gq"),n=a("dV"),r=a("lO"),p=i.Ui("debug"),a=c.extend(r,function(){this.je("Button");r.call(this,3);this.set("autoRolledOver",m);this.set("autoPressed",m);this.set("cursor",
j.yf);this.set("scaleMode",o.Qg);this.b0=document.createElement("canvas");this.b0.width=1;this.b0.height=1;this.c0=this.b0.getContext("2d");this.c0.globalCompositeOperation="copy";this.I1=B;this.bind(g.rb,this.TEa,this)});a.prototype.ab=function(){r.prototype.ab.call(this);this.f("buttonGroup");this.f("mode",n.ne);this.f("pressed");this.f("iconURL");this.f("transparencyActive");this.m("rollOverOpacity",k.P,"opacity");this.m("rollOverIconURL",k.P,"iconURL");this.m("pressedOpacity",k.bb,"opacity");
this.m("pressedIconURL",k.bb,"iconURL");this.m("pressedRollOverOpacity",k.Rb,"opacity");this.m("pressedRollOverIconURL",k.Rb,"iconURL")};a.prototype.R1=b(r.prototype.R1,"touch","capture");a.prototype.Rga=b(r.prototype.YCa,"touch");a.prototype.Tga=b(r.prototype.YCa,"touch","release");a.prototype.D7=b(r.prototype.D7,"touch","capture");a.prototype.C7=b(r.prototype.C7,"touch");a.prototype.$x=b(r.prototype.$x,"touch","release");a.prototype.g4=b(r.prototype.g4,"mouse","capture");a.prototype.h4=function(a){var b=
this.pA(a);if(this.tia(b)||this.I1){r.prototype.h4.call(this,a);r.prototype.set.call(this,"cursor",this.Xfa)}else{this.I1=m;if(b=this.sha(b)){d(b).trigger(this.tfa(a));a.preventDefault();a.stopImmediatePropagation()}this.nha(b)=="pointer"?r.prototype.set.call(this,"cursor",j.yf):r.prototype.set.call(this,"cursor",j.me);this.I1=B}};a.prototype.TEa=function(){r.prototype.set.call(this,"cursor",this.Xfa)};a.prototype.qS=b(r.prototype.qS,"mouse","release");a.prototype.tia=function(a){if(!this.Ob)return B;
if(this.get("transparencyActive"))return m;var b=this.Sa?this.Sa.zx:1,c=this.Ob.offset(),e=(a.uy-c.left)/b,f=this.Ob.width(),a=(a.vy-c.top)/b,b=this.Ob.height();if(e>=0&&a>=0&&e<f&&a<b){if(p)return m;e=e*this.kF/f;f=a*this.jF/b;this.c0.drawImage(this.Ob.get(0),e,f,1,1,0,0,1,1);if(this.c0.getImageData(0,0,1,1).data[3]>0)return m}return B};a.prototype.UCa=function(a,b){var c=this.sha(a);if(c){d(c).trigger(this.tfa(b));b.preventDefault();b.stopImmediatePropagation()}};a.prototype.sha=function(a){this.Yq().style.pointerEvents=
"none";a=document.elementFromPoint(a.uy,a.vy);setTimeout(function(){this.Yq().style.pointerEvents=this.Iha()}.bind(this),0);return a};a.prototype.tfa=function(a){return d.extend(d.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.nha=function(a){if(a){var b=a.style.cursor;b=="inherit"&&(b=this.nha(a.parentElement))}else b="default";return b};
a.prototype.nI=function(){if(this.get("pressed")){this.set("pressed",B);this.trigger(new f(g.Sj))}else{this.set("pressed",m);this.trigger(new f(g.yi))}};a.prototype.set=function(a,b){if(a==="cursor")this.Xfa=b;return r.prototype.set.call(this,a,b)};a.prototype.Ma=function(){var a=B;if(this.v("backgroundOpacityy")||this.v("backgroundColor"))a=m;if(this.v("iconURL")){this.set("url",this.p("iconURL"));this.I("iconURL")}var b=B;if(this.v("mode")){if(this.p("mode")==n.ne){this.unbind(g.ca,this.nI,this,
m);this.set("autoPressed",m)}else{this.bind(g.ca,this.nI,this,m);this.set("autoPressed",B)}this.I("mode");b=m}if(b||this.v("pressed"))this.p("mode")==n.Uj?this.QF(this.p("pressed")==m):b&&this.QF(B);if(this.v("buttonGroup")){(b=this.p("buttonGroup"))?e.register(this,b):e.KO(this);this.I("buttonGroup")}r.prototype.Ma.call(this);if(a){a=this.Hc();if(a.Ak()==0||a.Tz.length==0){a.Xi(0.001);a.Oua(["#000000"])}}};return a});
define("bl",["kG","jA","eQ","nU"],function(a,b,d,c){a=a.extend(b,function(){b.call(this)});d.F("IconButton",a).H("UIComponent").Q({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"}).vi(["iconURL","rollOverIconURL",
"pressedIconURL"]).fc([c.yi,c.Sj]).hh([c.ca]);return a});define("mz",["kG","eQ","hP"],function(a,b,d){a=a.extend(d,function(){d.call(this,B)});b.F("IconHotspotMapOverlay",a).H("HotspotMapOverlay");return a});
define("nn",["require","kG","nU","lO","eQ"],function(a){var b=a("kG"),d=a("nU"),c=a("lO"),a=a("eQ"),b=b.extend(c,function(){c.call(this)});b.prototype.set=function(a,b){"visible"==a&&this.get("id");c.prototype.set.call(this,a,b)};a.F("Image",b).H("UIComponent").Q({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]"}).vi(["url"]).hh([d.ca]);return b});
define("kT",["require","kG","eQ","ic"],function(a){var b=a("kG"),d=a("eQ"),c=a("ic"),a=b.extend(c,function(){c.call(this)});d.F("InnerModel3DObject",a).H("Model3DObject").Q({objectId:"string"});return a});
define("iB",["kG","iu","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("Label",a).H("UIComponent").Q({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"}).vs(["fontSize"]);return a});define("bH",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("bleaching",0);this.set("bleachingDistance",0.4)});a.F("LensFlarePanoramaOverlay",b).H("PanoramaOverlay").Q({yaw:"number",pitch:"number",bleaching:"number",bleachingDistance:"number"});return b});
define("nu",["require","kG","eQ","ie"],function(a){var b=a("kG"),d=a("eQ"),c=a("ie"),a=b.extend(c,function(){c.call(this)});d.F("LivePanorama",a).H("Panorama").Q({frameDisplayTime:"number",frameTransitionTime:"number",initialFrameIndex:"number"});a.prototype.sW=function(){return this.get("initialFrameIndex",0)};return a});define("iR",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("Light",b).H("Object");return b});
define("jU",["require","dY","kG","w"],function(a){var b=a("dY"),d=a("kG"),c=a("w");return{D_:[],pa:function(a,b,c,e){this.Zda(a,b,c,e,B)},KV:function(a,b,c,e){this.Zda(a,b,c,e,m)},Zda:function(a,b,i,e,j){function o(){for(var c=[],e=0;e<b.length;e++)try{c.push(a.get(b[e]))}catch(j){c.push(l),d.WW("BindingsHandler._addBinding",j)}i.apply(this,c)}Array.isArray(b)||(b=[b]);var o=j?d.hq(o,this.ja):o.bind(this.ja),k=[];b.forEach(function(b){k.push(c.watch(a,b,o,this.ja,!j))},this);this.D_.push({aUa:k,host:a,
Fb:b,DPa:i});e&&o()},na:function(a,c,d){var e=[];this.D_.forEach(function(j){j.DPa==d&&j.host==a&&b.isEqual(j.Fb,c)?j.aUa.forEach(function(a){a.unwatch()}):e.push(j)});this.D_=e}}});
define("cN",["kG","de"],function(a,b){var d=a.extend(b,function(a,d,f,i,e,j,o){b.call(this,b.fda);this.n=a;this.kd=d;this.Z=f;this.ia=i;this.ef=e;this.F1=j;this.Mn=o.slice()});d.prototype.ks=function(){for(var a=[this.kd],b=0;b<this.Mn.length;b++)a=a.concat(this.Mn[b].ks());return a};d.prototype.pi=S("kd");d.prototype.fd=S("Z");d.prototype.Td=S("ia");return d});
define("mw","require,dY,kG,jU,eQ,lv,ee,fI,cN".split(","),function(a){var b=a("dY"),d=a("kG");a("jU");var c=a("eQ"),g=a("lv"),f=a("ee"),i=a("fI"),e=a("cN"),a=d.extend(f,function(){f.call(this);this.au=this.KT=l});c.F("Map",a).H("Media").Q({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.wRa=function(){this.au=this.KT=l};a.prototype.YG=function(){return!(!this.get("image")||!i.YG(this.get("image")))};a.prototype.kC=function(){return this.get("image")&&i.kC(this.get("image"))};a.prototype.cq=function(){return this.get("image")&&i.cq(this.get("image"))};a.prototype.Lra=
function(){if(this.KT==l)this.KT=this.YG()?new e(this,this.kC().get("url"),this.get("width"),this.get("height"),this.get("scaleMode",g.Ry),this.get("flipImageHorizontally",B),[]):q;return this.KT};a.prototype.Hj=function(){if(this.au==l)if(this.get("image")){var a=Array.prototype.concat.apply([],b(this.get("overlays",[])).map(function(a){return a.cPa()}));this.au=new e(this,this.cq().get("url"),this.get("width"),this.get("height"),this.get("scaleMode",g.Ry),this.get("flipImageHorizontally",B),a)}else this.au=
q;return this.au};a.prototype.hs=function(){return[].concat(this.iR(this.Lra()),this.iR(this.Hj()))};a.prototype.iR=function(a){return a?a.ks():[]};return a});define("kq",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("MapOverlay",a).H("Object");return a});
define("me","require,kG,dY,nU,cs,fQ,dV,gq".split(","),function(a){var b=a("kG"),d=a("dY"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("dV"),e=a("gq"),a=b.extend(f,function(a,b,e){f.call(this);this.wfa=a;this.YHa=b;this.Jea=e||i.ne;this.Bi=[];this.Jz=[];this.jw={};this.jw.mode=this.Jea;this.Jea==i.Uj&&(this.jw.pressed=B);this.wfa.bind(c.u(b),this.hma,this);this.hma()});a.prototype.hma=function(){var a=this.wfa.get(this.YHa);a||(a=[]);d.isArray(a)||(a=[a]);this.oJa(a)};a.prototype.oJa=function(a){var b=d.difference(this.Bi,
a);d(b).each(function(a){a.unbind(c.yi,this.Pea,this,m);a.unbind(c.Sj,this.Qea,this,m);a.unbind(c.ca,this.Iea,this,m);a.unbind(c.zb,this.Kea,this,m);a.unbind(c.Wb,this.Lea,this,m);a.unbind(c.bc,this.Sea,this,m);a.unbind(c.rb,this.Rea,this,m)},this);b=d.difference(a,this.Bi);d(b).each(function(a){a.$(this.jw);a.bind(c.yi,this.Pea,this,m);a.bind(c.Sj,this.Qea,this,m);a.bind(c.ca,this.Iea,this,m);a.bind(c.zb,this.Kea,this,m);a.bind(c.Wb,this.Lea,this,m);a.bind(c.bc,this.Sea,this,m);a.bind(c.rb,this.Rea,
this,m)},this);this.Bi=a;this.Jz=this.Jz.filter(function(a){return this.Bi.indexOf(a)>=0}.bind(this))};a.prototype.Pea=function(){this.trigger(new g(c.yi))};a.prototype.Qea=function(){this.trigger(new g(c.Sj))};a.prototype.Iea=function(){this.trigger(new g(c.ca))};a.prototype.Kea=function(){this.trigger(new g(c.zb))};a.prototype.Lea=function(){this.trigger(new g(c.Wb))};a.prototype.Sea=function(a){this.Jz.push(a.source);this.Qi()};a.prototype.Rea=function(a){this.Jz=this.Jz.filter(function(b){return b!=
a.source});this.Qi()};a.prototype.set=function(a,b){this.jw[a]=b;this.Bi.forEach(function(a){a.$(this.jw)}.bind(this));this.Qi()};a.prototype.Qi=function(){this.Bi.forEach(function(a){a.get("state")==e.bb&&this.Jz.indexOf(a)>=0?a.set("state",e.Rb):a.get("state")==e.Rb&&this.Jz.indexOf(a)<0&&a.set("state",e.bb)}.bind(this))};return a});
define("fV","require,dY,kG,nU,cs,gq,bc,b,d,mH,mZ".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("gq"),i=a("bc"),e=a("b"),j=a("d");a("mH");a("mZ");var o=d.extend(e,function(){e.call(this);this.je("PlaybackBar");this.kl=this.Ef=q;this.Gg=[];this.GT=B;this.u5=this.gB=l;this.k7=B});o.jc={cursor:i.yf,overflow:"visible",height:20,position:0,duration:100,steps:l,selectedStep:l,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:l,barBackgroundColorRatios:l,
barBorderColor:l,barBorderRadius:l,barBorderSize:l,barOpacity:l,liveDragging:l,playheadBackgroundColor:"#FFFFFF",playheadBackgroundColorDirection:l,playheadBackgroundColorRatios:l,playheadBorderColor:l,playheadBorderRadius:l,playheadBorderSize:l,playheadOpacity:l,playheadWidth:5,playheadHeight:30,playheadShadow:m,playheadShadowBlurRadius:3,playheadShadowColor:"#000000",playheadShadowHorizontalLength:0,playheadShadowOpacity:l,playheadShadowSpread:0,playheadShadowVerticalLength:3,stepBackgroundColor:"#FFFFFF",
stepBackgroundColorDirection:l,stepBackgroundColorRatios:l,stepBorderColor:l,stepBorderRadius:6,stepBorderSize:0,stepOpacity:1,stepWidth:12,stepHeight:12,stepShadow:m,stepShadowBlurRadius:6,stepShadowColor:"#000000",stepShadowHorizontalLength:0,stepShadowOpacity:l,stepShadowSpread:0,stepShadowVerticalLength:0,selectedStepBackgroundColor:"#3399FF",selectedStepBackgroundColorDirection:l,selectedStepBackgroundColorRatios:l,selectedStepBorderColor:"#ffffff",selectedStepBorderRadius:10,selectedStepBorderSize:2,
selectedStepOpacity:1,selectedStepWidth:20,selectedStepHeight:20,selectedStepShadow:m,selectedStepShadowBlurRadius:3,selectedStepShadowColor:"#000000",selectedStepShadowHorizontalLength:0,selectedStepShadowOpacity:l,selectedStepShadowSpread:0,selectedStepShadowVerticalLength:0};b.defaults(o.jc,e.jc);o.prototype.ab=function(){this.zn(o.jc)};o.prototype.mb=function(){e.prototype.mb.call(this);(!this.Ef||!this.kl)&&this.bind(c.sc,this.LHa,this,m);if(this.Ef==q){this.Ef=new j;this.Ef.$({left:"0",height:"100%",
cursor:i.yf});this.Oa(this.Ef)}if(this.kl==q){this.kl=new j;this.kl.$({left:"0",cursor:i.yf});this.kl.bind(c.sc,this.OHa,this,m);this.kl.bind(c.zb,this.MHa,this,m);this.wb().bind(c.ad,this.Ola,this,m);this.bind(c.ca,this.JHa,this,m);this.kl.bind(c.Wb,this.NHa,this,m);this.Oa(this.kl)}var a=this.get("steps")||0;if(this.Gg.length!=a){for(;this.Gg.length>a;)this.TBa(this.Gg.pop());for(;this.Gg.length<a;)this.Gg.push(this.JBa());this.Yb(o.Pda,o.QZ,this.Gg,B,m);this.xpa();this.x8();this.Zm(this.kl,this.Db().length-
1)}};o.prototype.JBa=function(){var a=new k;a.$({cursor:i.yf});a.bind(c.ca,this.Yna,this,m);a.bind(c.sc,this.Zna,this,m);this.Oa(a);return a};o.prototype.TBa=function(a){a.unbind(c.ca,this.Yna,this,m);a.unbind(c.sc,this.Zna,this,m);this.removeChild(a)};o.prototype.Ma=function(){var a=B;if(this.v("position")||this.v("duration")){this.I("position");this.I("duration");a=m}if(this.v("selectedStep")){this.I("selectedStep");this.xpa()}if(this.v("steps")){this.I("steps");this.JN()}this.Yb(o.JZ,o.WH,[this.Ef],
m,m);this.Yb(o.cya,o.Lda,[this.kl],m,m);this.Yb(o.Pda,o.QZ,this.Gg,m,m);e.prototype.Ma.call(this);a&&this.qV()};o.prototype.xpa=function(){var a=this.get("selectedStep");this.Gg.forEach(function(b,c){b.wO(c===a)});this.kl.set("visible",a===l)};o.prototype.qV=function(){var a=this.Ua();this.Cb();var b=this.kl.Ua(),c=this.kl.Cb(),e=this.Jw(),f=this.pm(),d=f*a/e,a=Math.round((this.GT?this.gB:f)*a/e-b*0.5),a=Math.max(0,Math.min(a,this.Se()-b)),b=Math.round(this.Re()*0.5-c*0.5);this.kl.$({left:a,top:b});
this.Ef.set("width",Math.round(d))};o.prototype.OHa=function(){this.qV()};o.prototype.MHa=function(a){this.GT=m;this.u5=a.pageX;this.gB=this.p("position")};o.prototype.Ola=function(a){if(this.GT){var b=a.pageX-this.u5;this.u5=a.pageX;var a=this.Ua(),e=this.Jw();this.gB=Math.max(0,Math.min(e,this.gB+e*b/a));this.qV();if(this.get("liveDragging")){this.set("position",this.gB);this.trigger(new g(c.qa))}}};o.prototype.NHa=function(a){this.Ola(a);this.GT=B;if(!this.get("liveDragging")){this.set("position",
this.gB);this.trigger(new g(c.qa))}this.gB=l};o.prototype.JHa=function(a){if(!this.k7){var b=this.Ua();this.set("position",this.Jw()*a.x/b);this.trigger(new g(c.qa))}};o.prototype.Zna=function(){this.x8()};o.prototype.LHa=function(){this.x8();this.qV()};o.prototype.x8=function(){for(var a=this.Ua(),b=this.Cb(),c=this.Ba,e=this.getParent().Ua()-(c+a),f=0,d=this.Gg.length;f<d;f++){var g=this.Gg[f],j=g.Ua(),o=g.Cb(),j=f==0&&c==0?0:f==d-1&&e==0?a-j:Math.round(a*f/(d-1)-j*0.5),o=Math.round(b*0.5-o*0.5);
g.$({left:j,top:o})}};o.prototype.Yna=function(a){a=this.Gg.indexOf(a.source);this.set("position",this.Jw()*a/(this.Gg.length-1));this.k7=m;this.trigger(new g(c.qa));setTimeout(function(){this.k7=B}.bind(this),0)};o.prototype.Jw=function(){var a=this.p("duration");return!a?1:a};o.prototype.pm=function(){return Math.max(0,Math.min(this.Jw(),this.p("position")))};o.WH={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",
barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",barOpacity:"opacity"};o.JZ=b(o.WH).keys();o.Lda={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"};o.cya=b(o.Lda).keys();o.QZ={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"};o.Pda=b(o.QZ).keys();var k=d.extend(j,function(){j.call(this)});k.prototype.wO=function(a){this.NL(a)};k.prototype.ab=function(){j.prototype.ab.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.m("selectedBackgroundColor",f.W,"backgroundColor");this.m("selectedBackgroundColorDirection",f.W,"backgroundColorDirection");this.m("selectedBackgroundColorRatios",f.W,"backgroundColorRatios");this.m("selectedBorderColor",f.W,"borderColor");this.m("selectedBorderRadius",f.W,"borderRadius");this.m("selectedBorderSize",f.W,"borderSize");this.m("selectedOpacity",f.W,"opacity");this.m("selectedWidth",f.W,"width");this.m("selectedHeight",
f.W,"height");this.m("selectedShadow",f.W,"shadow");this.m("selectedShadowBlurRadius",f.W,"shadowBlurRadius");this.m("selectedShadowColor",f.W,"shadowColor");this.m("selectedShadowHorizontalLength",f.W,"shadowHorizontalLength");this.m("selectedShadowOpacity",f.W,"shadowOpacity");this.m("selectedShadowSpread",f.W,"shadowSpread");this.m("selectedShadowVerticalLength",f.W,"shadowVerticalLength")};k.prototype.Ma=function(){j.prototype.Ma.call(this)};return o});
define("y",["dY","kG","b","d"],function(a,b,d,c){var g=b.extend(d,function(){d.call(this);this.je("ProgressBar")});g.jc={percent:0,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:l,barBackgroundColorRatios:l,barBorderColor:l,barBorderRadius:l,barBorderSize:l,barOpacity:l};a.defaults(g.jc,d.jc);g.prototype.ab=function(){this.zn(g.jc)};g.prototype.mb=function(){d.prototype.mb.call(this);this.Ef==q&&(this.Ef=new c,this.Ef.$({left:"0",width:"0%",height:"100%"}),this.Oa(this.Ef))};
g.prototype.Ma=function(){this.v("percent")&&(this.Ef.set("width",Math.round(this.p("percent"))+"%"),this.I("percent"));this.Yb(g.JZ,g.WH,[this.Ef],m,m);d.prototype.Ma.call(this)};g.WH={barBackgroundColor:"backgroundColor",barBackgroundColorDirection:"backgroundColorDirection",barBackgroundColorRatios:"backgroundColorRatios",barBorderColor:"borderColor",barBorderRadius:"borderRadius",barBorderSize:"borderSize",barOpacity:"opacity"};g.JZ=a(g.WH).keys();return g});
define("mL",["require"],function(){var a=Math.PI/180,b=180/Math.PI;return{create:function(){return{x:0,y:0,z:0,w:0}},nra:function(b,c,g){var c=c*a,b=-b*a,f=g*a,g=Math.cos(b/2),b=Math.sin(b/2),i=Math.cos(f/2),f=Math.sin(f/2),e=Math.cos(c/2),c=Math.sin(c/2),j={};j.w=g*i*e-b*f*c;j.x=g*i*c+b*f*e;j.y=b*i*e+g*f*c;j.z=g*f*e-b*i*c;return j},iba:function(a){var c=a.x*a.y+a.z*a.w,g={};if(0.499<c)g.Na=-2*Math.atan2(a.x,a.w),g.He=-Math.PI/2,g.pitch=0;else if(-0.499>c)g.Na=2*Math.atan2(a.x,a.w),g.He=Math.PI/2,
g.pitch=0;else{var f=a.x*a.x,i=a.z*a.z;g.Na=-Math.atan2(2*a.y*a.w-2*a.x*a.z,1-2*a.y*a.y-2*i);g.He=-Math.asin(2*c);g.pitch=Math.atan2(2*a.x*a.w-2*a.y*a.z,1-2*f-2*i);g.pitch=Math.min(Math.PI/2,Math.max(-Math.PI/2,g.pitch))}g.Na*=b;g.pitch*=b;g.He*=-b;return g},Na:function(a){var c=a.x*a.y+a.z*a.w;return 0.499<c?-2*Math.atan2(a.x,a.w)*b:-0.499>c?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("mW",["require"],function(){var a={};a.degToRad=Math.PI/180;a.radToDeg=180/Math.PI;a.Vector2=function(a,d){this.x=a||0;this.y=d||0};a.Vector2.prototype={constructor:a.Vector2,set:function(a,d){this.x=a;this.y=d;return this},copy:function(a){this.x=a.x;this.y=a.y;return this},subVectors:function(a,d){this.x=a.x-d.x;this.y=a.y-d.y;return this}};a.Vector3=function(a,d,c){this.x=a||0;this.y=d||0;this.z=c||0};a.Vector3.prototype={constructor:a.Vector3,set:function(a,d,c){this.x=a;this.y=d;this.z=
c;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.multiplyScalar(1/a):this.z=this.y=this.x=0;return this},multiplyScalar:function(a){this.x*=a;this.y*=a;this.z*=a},applyQuaternion:function(a){var d=this.x,c=this.y,g=this.z,f=a.x,i=a.y,e=a.z,a=a.w,j=a*d+i*g-e*c,o=a*c+e*d-f*g,k=a*g+f*c-i*d,d=-f*d-i*c-e*g;this.x=j*a+d*-f+o*-e-k*-i;this.y=o*a+d*
-i+k*-f-j*-e;this.z=k*a+d*-e+j*-i-o*-f;return this},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},crossVectors:function(a,d){var c=a.x,g=a.y,f=a.z,i=d.x,e=d.y,j=d.z;this.x=g*j-f*e;this.y=f*i-c*j;this.z=c*e-g*i;return this}};a.Quaternion=function(a,d,c,g){this.x=a||0;this.y=d||0;this.z=c||0;this.w=g!==l?g:1};a.Quaternion.prototype={constructor:a.Quaternion,set:function(a,d,c,g){this.x=a;this.y=d;this.z=c;this.w=g;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;
return this},Tua:function(a,d,c){var g=Math.cos(a/2),f=Math.cos(d/2),i=Math.cos(c/2),a=Math.sin(a/2),d=Math.sin(d/2),c=Math.sin(c/2);this.x=a*f*i+g*d*c;this.y=g*d*i-a*f*c;this.z=g*f*c-a*d*i;this.w=g*f*i+a*d*c;return this},setFromAxisAngle:function(a,d){var c=d/2,g=Math.sin(c);this.x=a.x*g;this.y=a.y*g;this.z=a.z*g;this.w=Math.cos(c);return this},multiply:function(a){return this.multiplyQuaternions(this,a)},multiplyQuaternions:function(a,d){var c=a.x,g=a.y,f=a.z,i=a.w,e=d.x,j=d.y,o=d.z,k=d.w;this.x=
c*k+i*e+g*o-f*j;this.y=g*k+i*j+f*e-c*o;this.z=f*k+i*o+c*j-g*e;this.w=i*k-c*e-g*j-f*o;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},slerp:function(a,d){if(0===d)return this;if(1===d)return this.copy(a);var c=this.x,g=this.y,f=this.z,i=this.w,e=i*a.w+c*a.x+g*
a.y+f*a.z;0>e?(this.w=-a.w,this.x=-a.x,this.y=-a.y,this.z=-a.z,e=-e):this.copy(a);if(1<=e)return this.w=i,this.x=c,this.y=g,this.z=f,this;var j=Math.acos(e),o=Math.sqrt(1-e*e);if(0.001>Math.abs(o))return this.w=0.5*(i+this.w),this.x=0.5*(c+this.x),this.y=0.5*(g+this.y),this.z=0.5*(f+this.z),this;e=Math.sin((1-d)*j)/o;j=Math.sin(d*j)/o;this.w=i*e+this.w*j;this.x=c*e+this.x*j;this.y=g*e+this.y*j;this.z=f*e+this.z*j;return this},setFromUnitVectors:function(){var b,d;return function(c,g){b===l&&(b=new a.Vector3);
d=c.dot(g)+1;1.0E-6>d?(d=0,Math.abs(c.x)>Math.abs(c.z)?b.set(-c.y,c.x,0):b.set(0,-c.z,c.y)):b.crossVectors(c,g);this.x=b.x;this.y=b.y;this.z=b.z;this.w=d;this.normalize();return this}}()};return a});
define("fc",["require","nU","cs","fQ","mW"],function(a){function b(){o||(o=m,p=new j.Vector3(0,0,1),t=new j.Quaternion,s=new j.Quaternion(-Math.sqrt(0.5),0,0,Math.sqrt(0.5)),u=new j.Quaternion,c(),window.addEventListener("orientationchange",c,B),window.addEventListener("deviceorientation",g,B),d())}function d(){if(v&&!(n===l||r===l)){v=B;var a=j.degToRad*r;u.Tua(j.degToRad*n.beta,j.degToRad*n.alpha,-(j.degToRad*n.gamma));u.multiply(s);u.multiply(t.setFromAxisAngle(p,-a));w||(x++,5<=x&&(w=m,k.trigger(new i(f.Oc))));
k.trigger(new i(f.qa))}}function c(){r=window.orientation||0;v=m;d()}function g(a){n=a;v=m;d()}var f=a("nU"),i=a("cs"),e=a("fQ"),j=a("mW"),o=B,k=new e,n,r,p,t,s,u,v,w=B,x=0;b.prototype.es=function(){d();return u};b.prototype.bind=function(){k.bind.apply(k,arguments)};b.prototype.unbind=function(){k.unbind.apply(k,arguments)};b.prototype.stop=function(){window.removeEventListener("orientationchange",c,B);window.removeEventListener("deviceorientation",g,B)};return b});
define("it","require,nU,cs,fQ,t,mW".split(","),function(a){function b(a){this.yQa=a;this.B9=new g;this.$V=new g;this.Z$=new g;this.cC=new o.Quaternion;this.Y$=new o.Quaternion;this.bqa=new o.Quaternion;this.Nsa=B;this.cW=new o.Vector3;this.K$=new o.Vector3;this.BPa=new o.Quaternion}function d(){this.Cta=B;this.Bta=0;this.bN=new o.Vector3;this.zW=new o.Vector3;this.filter=new b(n);this.YQa=new c(r);this.aH=p.aH();this.Xm=p.Xm();p.Q9();this.D$=p.hQa();this.eW=new o.Quaternion;p.Xm()?this.eW.setFromAxisAngle(new o.Vector3(1,
0,0),Math.PI/2):this.eW.setFromAxisAngle(new o.Vector3(1,0,0),-Math.PI/2);this.u$=new o.Quaternion;this.BH=new o.Quaternion;this.OQa=new o.Quaternion;this.OQa.setFromAxisAngle(new o.Vector3(0,0,1),-window.orientation*Math.PI/180);this.gva();p.mQa()&&this.eW.multiply(this.u$);this.vua=new o.Quaternion;this.aH=p.aH();this.Xm=p.Xm();this.gQa=p.Q9()>=66;this.wC=this.wC.bind(this);this.WN=this.WN.bind(this);this.VN=this.VN.bind(this);screen&&screen.orientation&&screen.orientation.addEventListener?screen.orientation.addEventListener("change",
this.wC):window.addEventListener("orientationchange",this.wC);this.D$?window.addEventListener("deviceorientation",this.WN):window.addEventListener("devicemotion",this.VN)}function c(a){this.ZQa=a;this.iX=new o.Quaternion;this.mH=q;this.Rqa=new o.Quaternion;this.YN=new o.Quaternion}function g(a,b){this.set(a,b)}var f=a("nU"),i=a("cs"),e=a("fQ"),j=a("t"),o=a("mW"),k=new e,n=0.98,r=0.04;b.prototype.xNa=function(a,b){this.B9.set(a,b)};b.prototype.CNa=function(a,b){this.$V.set(a,b);p.vQa(b-this.Z$.NX)&&
this.xRa();this.Z$.copy(this.$V)};b.prototype.xRa=function(){if(this.Nsa){var a=this.CPa(this.$V.sample,this.$V.NX-this.Z$.NX);this.BPa.multiply(a);this.cC.copy(this.Y$);this.cC.multiply(a);a=new o.Quaternion;a.copy(this.cC);a.inverse();this.cW.set(0,0,-1);this.cW.applyQuaternion(a);this.cW.normalize();this.K$.copy(this.B9.sample);this.K$.normalize();a=new o.Quaternion;a.setFromUnitVectors(this.cW,this.K$);a.inverse();var b=new o.Quaternion;b.copy(this.cC);b.multiply(a);this.cC.slerp(b,1-this.yQa);
this.Y$.copy(this.cC)}else{this.bqa=this.wNa(this.B9.sample);this.Y$.copy(this.bqa);this.Nsa=m}};b.prototype.es=S("cC");b.prototype.wNa=function(a){var b=new o.Vector3;b.copy(a);b.normalize();a=new o.Quaternion;a.setFromUnitVectors(new o.Vector3(0,0,-1),b);a.inverse();return a};b.prototype.CPa=function(a,b){var c=new o.Quaternion,e=new o.Vector3;e.copy(a);e.normalize();c.setFromAxisAngle(e,a.length()*b);return c};d.prototype.stop=function(){screen&&screen.orientation&&screen.orientation.addEventListener&&
screen.orientation.removeEventListener("change",this.wC);window.removeEventListener("orientationchange",this.wC);window.removeEventListener("deviceorientation",this.WN);window.removeEventListener("devicemotion",this.VN)};d.prototype.Bk=T(q);d.prototype.es=function(){var a=l;if(this.D$&&this.BQ){this.Tqa=this.Tqa||function(){var a=(new o.Quaternion).setFromAxisAngle(new o.Vector3(0,0,-1),0),b=new o.Quaternion;this.mU=="landscape-secondary"?b.setFromAxisAngle(new o.Vector3(0,1,0),Math.PI/-2):b.setFromAxisAngle(new o.Vector3(0,
1,0),Math.PI/2);return a.multiply(b)}();this.Sqa=this.Sqa||function(){var a=new o.Quaternion;a.setFromAxisAngle(new o.Vector3(1,0,0),-Math.PI/2);return a}();var a=this.BQ,b=new o.Quaternion;b.copy(a);b.multiply(this.Sqa);b.multiply(this.vua);b.multiply(this.BH);b.multiplyQuaternions(this.Tqa,b);if(this.oWa){b.x=0;b.z=0;b.normalize()}this.eX[0]=b.x;this.eX[1]=b.y;this.eX[2]=b.z;this.eX[3]=b.w;return this.eX}a=this.YQa.oPa(this.filter.es(),this.zW,this.mH);b=new o.Quaternion;b.copy(this.eW);b.multiply(this.vua);
b.multiply(a);b.multiply(this.BH);return b};d.prototype.WN=function(a){this.BQ=this.BQ||new o.Quaternion;var b=a.alpha,c=a.eVa,a=a.wVa,b=(b||0)*Math.PI/180,c=(c||0)*Math.PI/180,a=(a||0)*Math.PI/180;this.BQ.Tua(c,b,-a)};d.prototype.VN=function(a){var b=a.rotationRate;if(b){var c=a.accelerationIncludingGravity,a=a.timeStamp/1E3;this.aH&&(a=a/1E3);var e=a-this.mH;if(e<=p.gca||e>p.dca)this.mH=a;else{this.bN.set(-c.x,-c.y,-c.z);this.zW.set(b.alpha,b.beta,b.gamma);(this.Xm||this.aH||this.gQa)&&this.zW.multiplyScalar(Math.PI/
180);this.filter.xNa(this.bN,a);this.filter.CNa(this.zW,a);this.mH=a;if(!this.Cta){this.Bta++;if(this.Bta>=5){this.Cta=m;k.trigger(new i(f.Oc))}}this.mU!=this.rra()&&this.wC();k.trigger(new i(f.qa))}}else{this.D$=m;window.addEventListener("deviceorientation",this.WN);window.removeEventListener("devicemotion",this.VN)}};d.prototype.bind=function(){k.bind.apply(k,arguments)};d.prototype.unbind=function(){k.unbind.apply(k,arguments)};d.prototype.wC=function(){this.gva();k.trigger(new i(f.qa))};d.prototype.gva=
function(){this.BH.set(0,0,0,1);this.mU=this.rra();switch(this.mU){case "landscape-primary":this.BH.setFromAxisAngle(new o.Vector3(0,0,1),-Math.PI/2);break;case "landscape-secondary":this.BH.setFromAxisAngle(new o.Vector3(0,0,1),Math.PI/2)}this.u$.copy(this.BH);this.u$.inverse()};d.prototype.rra=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.bN.z>4.9||this.bN.z<-4.9?a=this.mU||a:this.bN.x>0&&(a="landscape-secondary"));return a};c.prototype.oPa=function(a,b,c){if(!this.mH){this.iX.copy(a);this.mH=c;return a}c=new o.Vector3;c.copy(b);c.normalize();b=b.length();if(b<o.degToRad*20){this.YN.copy(a);this.iX.copy(a);return this.YN}this.Rqa.setFromAxisAngle(c,b*this.ZQa);this.YN.copy(this.iX);this.YN.multiply(this.Rqa);this.iX.copy(a);return this.YN};g.prototype.set=function(a,b){this.sample=
a;this.NX=b};g.prototype.copy=function(a){this.set(a.sample,a.NX)};var p={gca:0.001,dca:1,vQa:function(a){return isNaN(a)||a<=p.gca||a>p.dca?B:m}};p.Xm=function(){var a=/iPad|iPhone|iPod/.test(navigator.platform);return function(){return a}}();p.LVa=function(){var a=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return function(){return a}}();p.aH=function(){var a=navigator.userAgent.indexOf("Firefox")!==-1&&navigator.userAgent.indexOf("Android")!==-1;return function(){return a}}();p.Q9=
function(){var a=navigator.userAgent.match(/.*Chrome\/([0-9]+)/),b=a?parseInt(a[1],10):q;return function(){return b}}();p.hQa=function(){var a=B;if(p.Q9()===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&&j.browser()==j.Dk&&j.uN()&&j.Yd()==j.RO&&(a=m);return function(){return a}}();p.mQa=function(){return window.orientation==90||window.orientation==-90};return d});
define("hl","require,kG,nU,cs,fQ,mL,t,fc,it,lB".split(","),function(a){function b(){function a(){r=m;k.trigger(new c(d.qa))}function b(){var c;t&&(f||!n)?c=s:n&&(c=g);if(p!=c){if(p){p.unbind(d.qa,a);p.stop()}if(p=c){p.bind(d.qa,a,this,m);a()}}}var f=i.le()==i.aj||o.Ui("debug")&&o.js("sensor")=="deviceorientation",g=new j,n=B;g.bind(d.Oc,function(){n=m;b()},this,m);var s=new e,t=B;s.bind(d.Oc,function(){t=m;b()},this,m)}a("kG");var d=a("nU"),c=a("cs"),g=a("fQ"),f=a("mL"),i=a("t"),e=a("fc"),j=a("it"),
o=a("lB"),k=new g,n={},r=B,p,t=[],s=B,u=B;n.eaa=function(a){a&&t.push(a);if(n.disabled){if(i.le()==i.aj&&window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(function(a){if(a==="granted"){u=m;c()}})["catch"](I());DeviceMotionEvent.requestPermission().then(function(a){if(a==="granted"){s=m;c()}})["catch"](I());var c=function(){if(n.disabled&&s&&u){n.disabled=B;for(b();t.length;)t.pop()()}};c()}}else for(;t.length;)t.pop()()};n.bind=function(a,
b){k.bind(d.qa,a,b)};n.unbind=function(a,b){k.unbind(d.qa,a,b)};n.NQa=function(){return r};n.es=function(){r=B;if(p){var a=p.es(),a=f.iba(a);return{yaw:a.Na,pitch:a.pitch,roll:a.He}}return{yaw:0,pitch:0,roll:0}};if(i.le()==i.EZ||i.le()==i.bxa){n.available=B;n.disabled=B}else if(i.le()==i.DH&&i.browser()==i.Dk&&window.location.protocol!="https:"&&window.location.hostname!="localhost"){n.available=m;n.disabled=m}else if(i.le()==i.aj){n.available=m;n.disabled=m;if(!window.DeviceMotionEvent||!DeviceMotionEvent.requestPermission){var v=
function(){window.removeEventListener("deviceorientation",v,B);n.disabled=B;b()};window.addEventListener("deviceorientation",v,B)}else n.eaa()}else{n.available=window.DeviceMotionEvent!=l;n.disabled=B}n.available&&!n.disabled&&b();return n});define("lW",["require"],function(){return{AUa:"single",FRONT:"front",Ja:"left",BACK:"back",Xa:"right",ic:"top",ac:"bottom"}});
define("iA",["require","lW"],function(a){var a=a("lW"),b={},d=Math.PI/180,c=new THREE.Matrix4;new THREE.Matrix4;var g=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];b.of=Math.pow(10,3);b.hY=0.5*b.of;b.yxa=b.of;b.Xca=[a.FRONT,a.Xa,a.BACK,a.Ja,a.ic,a.ac];b.Mqa=function(a,c){for(var e=b.of,d=b.hY,g=a*c,k=this.st(),n=[],r=0,p=6*g;r<p;r++)n.push(r);var r=[],t=g;r.push(this.BD(k,a,c,-d,+d,-d,+e,0,-e,0,n.slice(0,t)));p=t;t+=g;r.push(this.BD(k,
a,c,+d,+d,-d,0,+e,-e,0,n.slice(p,t)));p=t;t+=g;r.push(this.BD(k,a,c,+d,+d,+d,-e,0,-e,0,n.slice(p,t)));p=t;t+=g;r.push(this.BD(k,a,c,-d,+d,+d,0,-e,-e,0,n.slice(p,t)));p=t;t+=g;r.push(this.BD(k,a,c,-d,+d,+d,+e,0,0,-e,n.slice(p,t)));p=t;r.push(this.BD(k,a,c,-d,-d,-d,+e,0,0,+e,n.slice(p,t+g)));k.mergeVertices();k.computeFaceNormals();k.userData.type="cube";k.userData.usa=a;k.userData.kwa=c;k.userData.UQa=r;return b.pM(k)};b.IG=function(){var a=this.st();this.gea(a,-0.5,0.5,0,1,0,0,0,-1,0,0);a.mergeVertices();
a.computeFaceNormals();a.userData.type="plane";return b.pM(a)};b.Lqa=function(a,c,e,d,g,k,n,r,p,t,s,u){var v=this.st();v.vertices.push(new THREE.Vector3(a,c,e));v.vertices.push(new THREE.Vector3(d,g,k));v.vertices.push(new THREE.Vector3(n,r,p));v.vertices.push(new THREE.Vector3(t,s,u));v.faces.push(new THREE.Face3(0,2,1,q,q,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,q,q,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 b.pM(v)};b.fva=function(a,c,e,d,g){var a=b.B7(a),k=a.faceVertexUvs[0][0];k[0].x=c;k[0].y=e+g;k[1].x=c;k[1].y=e;k[2].x=c+d;k[2].y=e;k=a.faceVertexUvs[0][1];k[0].x=c;k[0].y=e+g;k[1].x=c+d;k[1].y=e;k[2].x=c+d;k[2].y=e+g;a.uvsNeedUpdate=m;return b.pM(a,m)};b.cv=function(){return b.hY};b.d$=function(a,b){return 2*a*Math.tan(0.5*b*d)};b.e$=function(a,b){return 2*a*Math.tan(0.5*b*d)};
b.jC=function(a){return Math.max(Math.min(3.539647*a-6.669366*a*a+4.7454*a*a*a,b.hY),0.1)};b.st=function(){var a=new THREE.Geometry;a.userData={};return a};b.pM=function(a,b){if(a.isBufferGeometry)return a;if(a.isGeometry){if(!a.userData.zqa||b){var c=a.toBufferGeometry();(c.userData={}).geometry=a;a.userData.zqa=c}return a.userData.zqa}return q};b.B7=function(a){return a.isGeometry?a:a.isBufferGeometry&&a.userData&&a.userData.geometry?a.userData.geometry:q};b.BD=function(a,b,c,d,g,k,n,r,p,t,s){for(var u=
{},v=0,w=0;w<c;w++){u[w]={};for(var x=0;x<b;x++)this.gea(a,d+n*x/b+0*w/c,g+0*x/b+p*w/c,k+r*x/b+t*w/c,n/b,0/b,r/b,0/c,p/c,t/c,s[v]),u[w][x]=a.faces.slice(a.faces.length-2,a.faces.length),v+=1}return u};b.BVa=function(a,b,e){b=0.5*b/Math.tan(0.5*e);c.copy(a);a=g[0];a.x=0;a.y=0;a.z=0;a.applyMatrix4(c);var e=Math.sqrt(a.x*a.x+a.y*a.y+a.z*a.z),d=b/a.z,o=g[1];o.x=a.x*d;o.y=a.y*d;o.z=b;return e/Math.sqrt(o.x*o.x+o.y*o.y+o.z*o.z)};b.dPa=function(a,d,e){a=b.B7(a);c.copy(d.matrixWorldInverse).multiply(e);switch(a.userData.type){case "cube":return b.sEa(a,
c,d.projectionMatrix);default:return b.tEa(a)}};b.$Oa=function(a,c,e){a=b.B7(a);switch(a.userData.type){case "plane":return b.YDa(a,c,e);case "quad":return b.rha(a,1,c,e)||b.rha(a,0,c,e);default:return q}};b.gea=function(a,b,c,d,g,k,n,r,p,t,s){var u=a.vertices.length;a.vertices.push(new THREE.Vector3(b,c,d));a.vertices.push(new THREE.Vector3(b+r,c+p,d+t));a.vertices.push(new THREE.Vector3(b+g+r,c+k+p,d+n+t));a.vertices.push(new THREE.Vector3(b+g,c+k,d+n));a.faces.push(new THREE.Face3(u,u+1,u+2,q,
q,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,q,q,s));a.faceVertexUvs[0].push([new THREE.Vector2(0,1),new THREE.Vector2(1,0),new THREE.Vector2(1,1)])};b.YDa=function(a,b,c){var d=a.faces[0],o=a.faces[1],k=g[0],n=g[1],r=g[2];k.copy(a.vertices[d.a]).applyMatrix4(b);n.copy(a.vertices[o.c]).applyMatrix4(b);r.copy(a.vertices[d.b]).applyMatrix4(b);var b=n.x-k.x,o=n.y-k.y,p=n.z-k.z,n=r.x-k.x,t=r.y-k.y,r=r.z-k.z,
s=o*r-p*t,u=p*n-b*r,v=b*t-o*n,w=c.direction.x*s+c.direction.y*u+c.direction.z*v;if(0!=w&&(v=-(s*(c.origin.x-k.x)+u*(c.origin.y-k.y)+v*(c.origin.z-k.z))/w,!(0>=v)))return s=c.origin.x+c.direction.x*v-k.x,u=c.origin.y+c.direction.y*v-k.y,k=c.origin.z+c.direction.z*v-k.z,c=(b*s+o*u+p*k)/(b*b+o*o+p*p),k=(n*s+t*u+r*k)/(n*n+t*t+r*r),b=a.faceVertexUvs[0][0][0],o=a.faceVertexUvs[0][1][2],n=a.faceVertexUvs[0][0][1],a=b.x+(o.x-b.x)*c+(n.x-b.x)*k,b=b.y+(o.y-b.y)*c+(n.y-b.y)*k,0>c||1<c||0>k||1<k?l:{awa:a,hwa:b,
materialIndex:d.materialIndex}};b.rha=function(a,b,c,d){var o=a.faces[b],k=g[0],n=g[1],r=g[2];k.copy(a.vertices[o.a]).applyMatrix4(c);n.copy(a.vertices[o.b]).applyMatrix4(c);r.copy(a.vertices[o.c]).applyMatrix4(c);var c=n.x-k.x,p=n.y-k.y,t=n.z-k.z,n=r.x-k.x,s=r.y-k.y,r=r.z-k.z,u=p*r-t*s,v=t*n-c*r,w=c*s-p*n,x=d.direction.x*u+d.direction.y*v+d.direction.z*w;if(0!=x&&(w=-(u*(d.origin.x-k.x)+v*(d.origin.y-k.y)+w*(d.origin.z-k.z))/x,!(0>=w))){u=d.origin.x+d.direction.x*w-k.x;v=d.origin.y+d.direction.y*
w-k.y;d=d.origin.z+d.direction.z*w-k.z;if(0!=(k=s*c-n*p))c=(v*c-u*p)/k,p=(v*n-u*s)/-k;else if(0!=(k=r*c-n*t))c=(v*c-u*p)/k,p=(v*n-u*s)/-k;else if(0!=(k=r*p-s*t))c=(d*p-v*t)/k,p=(d*s-v*r)/-k;else return;if(!(0>p||1<p||0>c||1<c||1<p+c))return n=a.faceVertexUvs[0][b][0],s=a.faceVertexUvs[0][b][1],a=a.faceVertexUvs[0][b][2],{awa:n.x+(s.x-n.x)*p+(a.x-n.x)*c,hwa:n.y+(s.y-n.y)*p+(a.y-n.y)*c,materialIndex:o.materialIndex}}};b.sEa=function(a,c,e){var d=Array.prototype.concat.apply([],a.userData.UQa.map(function(d){return b.Hha(c,
e,d,a.vertices,0,0,a.userData.usa,a.userData.kwa).map(function(a){return a.materialIndex})}));return b.Qha(d)};b.tEa=function(a){a=a.faces.map(function(a){return a.materialIndex});return b.Qha(a)};b.Qha=function(a){var b={};a.forEach(function(a){b[a]=m});var a=[],c;for(c in b)a.push(c);return a};b.Hha=function(a,c,e,d,g,k,n,r){var p=[];if(b.kLa(a,c,d[e[k][g][0].a],d[e[k+r-1][g][0].b],d[e[k+r-1][g+n-1][0].c],d[e[k][g+n-1][1].c]))if(1==n&&1==r)p.push(e[k][g][0]);else{k=1<r?[k,k+Math.ceil(0.5*r),k+r]:
[k,k+r];g=1<n?[g,g+Math.ceil(0.5*n),g+n]:[g,g+n];for(n=1;n<k.length;n++)for(var r=k[n-1],t=k[n]-r,s=1;s<g.length;s++)var u=g[s-1],p=p.concat(b.Hha(a,c,e,d,u,r,g[s]-u,t))}return p};b.kLa=function(a,b,c,d,o,k){var n=[q,q,q,q,q];g[0].copy(c).applyMatrix4(a);g[1].copy(d).applyMatrix4(a);g[2].copy(o).applyMatrix4(a);g[3].copy(k).applyMatrix4(a);c=0;d=4;for(a=0;4>a;a++){var o=g[(a+3)%4],k=g[a],r=g[(a+1)%4];if(0>=k.z)n[c++]=k;else{if(0>=o.z){var p=g[d++],t=o.z/(o.z-k.z);p.x=o.x+(k.x-o.x)*t;p.y=o.y+(k.y-
o.y)*t;p.z=-1.0E-5;n[c++]=p}0>=r.z&&(p=g[d++],t=k.z/(k.z-r.z),p.x=k.x+(r.x-k.x)*t,p.y=k.y+(r.y-k.y)*t,p.z=-1.0E-5,n[c++]=p)}}if(2<c){for(a=0;a<c;a++)n[a].applyMatrix4(b);a=0;for(b=c-2;a<b;a++)if(c=n[a],d=n[a+1],o=n[a+2],!(1<c.x&&1<d.x&&1<o.x||-1>c.x&&-1>d.x&&-1>o.x||1<c.y&&1<d.y&&1<o.y||-1>c.y&&-1>d.y&&-1>o.y))return m}return B};b.Nqa=function(a,c,e,g,o,k,n,r,p){for(var t=a*d,s=0.5*-t+0.5*Math.PI,u=c*d,v=0.5*(Math.PI-u)-e*d,w=0.5*b.yxa,x=64/Math.PI,y=Math.max(2,Math.ceil(t/g*x)),x=Math.max(2,Math.ceil(u/
o*x)),D=g*y,E=o*x,H=this.st(),M=0,G=[],z=0;z<=E;z++){for(var L=[],K=v+z*u/E,A=0;A<=D;A++){var N=-(s+A*t/D);H.vertices.push(new THREE.Vector3(-w*Math.cos(N)*Math.sin(K),+w*Math.cos(K),+w*Math.sin(N)*Math.sin(K)));L.push(M++)}G.push(L)}for(s=t=0;s<o;s++){u=s*x;for(v=0;v<g;v++){w=v*y;for(z=0;z<x;z++){D=n+(1-z/x)*p;E=n+(1-(z+1)/x)*p;for(A=0;A<y;A++){var M=k+A/y*r,L=k+(A+1)/y*r,K=G[u+z][w+A],N=G[u+z+1][w+A+1],J=G[u+z][w+A+1];H.faces.push(new THREE.Face3(K,G[u+z+1][w+A],N,q,q,t));H.faceVertexUvs[0].push([new THREE.Vector2(M,
D),new THREE.Vector2(M,E),new THREE.Vector2(L,E)]);H.faces.push(new THREE.Face3(K,N,J,q,q,t));H.faceVertexUvs[0].push([new THREE.Vector2(M,D),new THREE.Vector2(L,E),new THREE.Vector2(L,D)])}}t++}}H.mergeVertices();H.computeFaceNormals();H.userData.type="sphere";H.userData.ue=a;H.userData.nq=c;H.userData.pitch=e;H.userData.usa=g;H.userData.kwa=o;return b.pM(H)};return b});
define("bY",["require"],function(){return{Sl:"data:image/png;base64, ",Qwa:"data:image/png;base64, ",
wxa:"data:image/png;base64, ",
QH:"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==",
Dxa:"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",
fY:"data:image/png;base64, ",
lz:"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",
sxa:115,qUa:115,Mxa:"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==",
Oxa:115,GUa:117,Qxa:"data:image/png;base64, "}});
define("mt","require,jquery.mod,kG,nU,cs,fQ,t".split(","),function(a){var b=a("jquery.mod"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),a=a("t");if(a.Yd()!=a.GH){var i=function(a){return a.requestFullscreen||a.msRequestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullscreen},e=function(){return document.exitFullscreen||document.msExitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen},j=document.createElement("div");if(a=!(i(j)||e())){var o;try{o=window.self===window.top}catch(k){o=
B}a=!o}if(a){var n=d.extend(f,function(a){f.call(this);this.ea=a}),r=m;n.waa=function(a){r=a=="out_of_frame"};n.prototype.available=function(){return r};n.prototype.yk=function(){this.toggle()};n.prototype.Hf=I();n.prototype.toggle=function(){r&&window.open(window.self.location.href,"_blank")};n.prototype.enabled=function(){return n.enabled()};n.enabled=T(B);n.$p=T(q);n.Hf=I();return n}n=d.extend(f,function(a){f.call(this);this.ea=a;this.tr=i(a);this.Kz=e();this.N=this.X1();var c=this;b(document).bind("msfullscreenchange webkitfullscreenchange mozfullscreenchange fullscreenchange",
function(){c.s7()});b(window).bind("resize",function(){c.s7()})});n.waa=I();n.prototype.available=function(){return!(!i(this.ea||j)&&!e())};n.prototype.yk=function(){this.enabled()||this.toggle()};n.prototype.Hf=function(){this.enabled()&&this.toggle()};n.prototype.toggle=function(){this.enabled()?this.Kz.call(document):this.tr.call(this.ea);this.s7()};n.prototype.enabled=function(){return this.N&&this.X1()};n.prototype.X1=function(){return this.ea===n.$p()};n.prototype.s7=function(){var a=this.X1();
if(this.N!=a){this.N=a;this.trigger(new g(c.qa))}};n.enabled=function(){return!!n.$p()};n.$p=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement};n.Hf=function(){n.enabled()&&e().call(document)}}else{n=d.extend(f,function(a){f.call(this);this.ea=a});n.prototype.available=T(m);n.prototype.yk=function(){this.enabled()||this.toggle()};n.prototype.Hf=function(){this.enabled()&&this.toggle()};n.prototype.toggle=function(){if(this.enabled()){p();
n.Gw=q}else{n.Gw&&n.Gw.Hf();p();var a=t();a.push("fullscreen");s(a);n.Gw=this}this.trigger(new g(c.qa))};n.prototype.enabled=function(){return this==n.Gw};n.enabled=function(){return!!n.$p()};n.$p=function(){return n.Gw&&n.Gw.ea};n.Hf=function(){n.enabled()&&n.Gw.Hf()};n.waa=I();n.Gw=q;var p=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 n});
define("ip","require,jquery.mod,kG,nS,t,lB,op,bY,mt,dm".split(","),function(a){function b(a,b){this.oNa=a;this.PAa=b;this.o7=[];this.cj=q;this.TL=B}var d=a("jquery.mod"),c=a("kG"),g=a("nS"),f=a("t"),i=a("lB"),e=a("op"),j=a("bY"),o=a("mt"),k=a("dm"),n="color:#000; font-family:Arial, Helvetica, sans-serif;",r="",p="border-color:#b2b2b2;",t=p,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="'+j.Sl+'"/>',w='<img style="width:24vmin;" src="'+j.Sl+'"/>',x='<img style="width:34vmin;" src="'+j.fY+'"/>',y='<img style="width:34vmin;" src="'+j.Qwa+'"/>',D='<img style="width:24vmin;" src="'+j.wxa+'"/>';if(f.ob()){s=s+" margin:0 1vmin; min-width:20vmin; padding:2.2vmin 4vmin; font-size:3.6vmin; font-weight:bold; min-width:30vmin;";n=n+" font-size:3.6vmin; line-height:4.3vmin;";r=r+" margin:5vmin 0;";p=p+"  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;";r=r+n;b.prototype.t0=function(){if(!this.cj){this.cj=d("<div/>");this.cj.css({position:"fixed","z-index":e.Xwa,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"});this.cj.html(this.PAa);d(this.cj).find("button").on("click",function(a){this.pGa(d(a.currentTarget).attr("id"))}.bind(this))}};b.prototype.E6=function(a,b){var c={},e;for(e in b)c[e]=a.css(e);this.o7.push({$el:a,css:c});a.css(b)};b.prototype.JIa=
function(){for(;this.o7.length;){var a=this.o7.pop();a.$el.css(a.css)}};b.prototype.show=function(a,b,c){a||(a=I());b||(b=I());if(this.TL){var e=this.rQ;this.rQ=function(){e();a()};var f=this.bQ;this.bQ=function(){f();b()}}else{this.t0();this.rQ=a;this.bQ=b;var g=this.tDa();if(g===l){this.TL=m;var j=this,g=d(o.$p()||document.body);if(c!==m)g.children().each(function(){j.E6(d(this),{visibility:"hidden"})});else{this.E6(g,{overflow:"hidden"});g.children().each(function(){j.E6(d(this),{position:"absolute",
"z-index":0})})}g.append(this.cj)}else{this.TL=B;g?this.rQ():this.bQ()}}};b.prototype.hide=function(){if(this.TL){this.TL=B;this.cj.detach();this.JIa()}};b.prototype.tDa=function(){var a=k.getItem(this.lha());if(a=="true")return m;if(a=="false")return B};b.prototype.fna=function(a){k.setItem(this.lha(),a?"true":"false")};b.prototype.lha=function(){return this.oNa+"DontDisplay:"+window.location.pathname};b.prototype.pGa=function(a){var b=d("#tdvvriw_dontdisplay").is(":checked");this.hide();if(a=="tdvvriw_continue"){this.rQ();
b&&this.fna(m)}else if(a=="tdvvriw_cancel"){this.bQ();b&&this.fna(B)}};var a=c.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',v,'<div style="'+r+'">'+g("use-cardboard-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">'+g("use-cardboard")+"</button></div>","</div>",'<hr style="'+p+'">',"<div>",'<div style="'+r+'">',
'<div style="margin-bottom:2vmin;">'+g("samsung-internet-vr-app-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_cancel">'+g("launch-default-browser")+"</button></div>","</div>",y,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+g("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"ChromeAppInfoWindow",
a)}),E=c.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',v,'<div style="'+r+'">'+g("use-cardboard-info")+"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">OK</button></div>',"</div>",'<hr style="'+p+'">',"<div>",'<div style="'+r+'">','<div style="margin-bottom:2vmin;">'+g("samsung-internet-vr-info")+"</div>","</div>",y,"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+g("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"SamsungInternetInfoWindow",a)}),H=c.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="'+r+'">This content requires access to the WebVR API.<br>To enable WebVR open the "More" menu you\'ll find above this window and then click on the "Labs" item.</div>','<div><button style="'+s+'" id="tdvvriw_cancel">OK</button></div>',"</div>\n</div></div>"].join("\n"))}),M=c.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">','<div style="'+
r+'"></div>','<div style="text-align:center;"><button style="'+s+' box-shadow:0 0 4px rgba(0, 0, 0, 0.5);" id="tdvvriw_continue">'+g("exit-vr")+"</button></div>","</div></div>"].join("\n");b.call(this,"ExternalVRDisplayVRInfoWindow",a)});M.prototype.t0=function(){b.prototype.t0.call(this);i.Si("vrv")===m&&this.cj.css({background:"none"})};var G=c.extend(b,function(){var a;a=f.browser()==f.Qh?window.location.protocol!="https:"?"<div>"+g("giroscope-disabled-http")+"</div>":window.DeviceMotionEvent.requestPermission?
g("giroscope-disabled-safari-request-permission").map(function(a){return"<div>"+a+"</div>"}).join("\n"):g("giroscope-disabled-safari-toggle-on"):"<div>"+g("giroscope-disabled-http")+"</div>";a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>','<div style="'+r+'">',a,"</div>",'<div><button style="'+s+'" id="tdvvriw_continue">OK</button></div>',"</div>\n</div></div>",
'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+g("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"GiroscopeDisabledInfoWindow",a)}),z=c.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">\n<div>',
v,'<div style="'+r+'">'+g("use-cardboard-info")+'</div><div><button style="'+s+'" id="tdvvriw_continue">'+g("use-cardboard")+"</button></div>","</div>",'<hr style="'+p+'">',"<div>",y,'<div style="'+r+'">It looks like this device is compatible with Gear VR. If you have a Gear VR headset you can view this content using the Carmel Web Browser (by Oculus).</div>','<div><button style="'+s+'" id="tdvvriw_cancel">Use Carmel web browser</button></div>',"</div>\n</div></div>"].join("\n");b.call(this,"CarmelInstallationPromptVRInfoWindow",
a)}),L=c.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="'+n+' margin:2vmin 0;">'+g("cardboard-v1")+"</div>",'<div><button style="'+s+'" id="tdvvriw_cancel">'+g("use-default-cardboard")+"</button></div>","</div>",'<hr style="'+t+'">',"<div>",'<div style="'+n+' margin-bottom:2vmin;">'+g("cardboard-v2")+"</div>",'<div><button style="'+
s+'" id="tdvvriw_continue">'+g("use-cardboard-v2")+"</button></div>",x,"</div>\n</div></div>",'<div style="position:absolute; left:12vmin; right:12vmin; bottom:6vmin; '+r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+g("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"CardboardV2InfoWindow",a)}),K=c.extend(b,function(){var a=['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">',
'<div style="'+r+'"></div>','<div style="text-align:center;"><button style="'+s+'" id="tdvvriw_continue">'+g("enter-vr")+"</button></div>","</div></div>"].join("\n");b.call(this,"EnterVRInfoWindow",a)}),A=c.extend(b,function(){b.call(this,"PreparingVRInfoWindow",['<div style="box-sizing:border-box; margin:0; padding:0 12vmin; display:table; height:100%; width:100%;"><div style="vertical-align:middle; text-align:center; display:table-cell;">','<div style="'+r+'">Preparing VR...</div>',"</div></div>"].join("\n"))}),
N=c.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;">',D,'<div style="'+r+'">'+g("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; '+
r+'">','<input type="checkbox" id="tdvvriw_dontdisplay" name="tdvvriw_dontdisplay" value="true" style="'+u+'"><label for="tdvvriw_dontdisplay">'+g("dont-display-again")+"</label>","</div>"].join("\n");b.call(this,"UseSafariVRInfoWindow",a)}),c=c.extend(b,function(){var a=['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+j.Sl+'"/>','</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="'+j.QH+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+g("rotate-device")+"</div>","</div>\n</div>"].join("\n");b.call(this,"RotateVRInfoWindow",a)}),J={};J.xxa=new E;J.zUa=new H;J.Tba=new M;J.eUa=new z;J.iUa=new K;J.tUa=new A;J.kda=new N;J.QH=new c;J.Xba=new G;J.xwa=new a;J.fY=new L;return J});define("cV",["require"],function(){return{Sl:"Cardboard",Sxa:"WebVR",Txa:"WebXR"}});
define("gZ","require,la,t,hG,lB,bg".split(","),function(a){var b=a("la"),d=a("t"),c=a("hG"),g=a("lB");a("bg");var f={wQa:function(a){return this.ON(a)||this.Tsa(a)?m:B},Xs:function(){var a=d.$Qa();f.Xs=function(){return a};return a},Tsa:function(a){return typeof a=="string"&&c.is(a,c.Vl)?m:B},IVa:function(a){return this.y$(a)||this.z$(a)?m:B},z$:function(a){return typeof a=="string"&&(c.is(a,c.Vwa)||c.sy(a,c.Wwa))?m:B},ON:function(a){return!!a&&!!a.tagName&&a.tagName=="VIDEO"},ty:function(a){return typeof a==
"string"&&c.is(a,c.mn)||this.ON(a)&&c.is(a.currentSrc,c.mn)?m:B},Jj:function(a){return typeof a=="string"&&c.is(a,c.Vl)||this.ON(a)&&c.is(a.currentSrc,c.Vl)?m:B},y$:function(a){return!!a&&!!a.tagName&&a.tagName=="IMG"},Fsa:function(a){return!!a&&!!a.tagName&&a.tagName=="CANVAS"},Kra:function(a){return Math.pow(2,Math.round(Math.log(a)/Math.LN2))},Psa:function(a){return a!==0&&(a&a-1)===0},Isa:function(){return d.browser()==d.Rl},oQa:function(){return d.browser()==d.Fv},Xm:function(){return d.le()==
d.aj}},i=d.le()==d.DH&&!d.If()&&d.INa()<11;f.lwa=function(a){if(j)return m;if(d.x9()&&d.hO()<15.1)if(d.hO()>=15){if(d.nsa())return m}else if(f.ty(a))return m;if(f.oQa())return m;if(f.Xm()){if(d.oy()==d.YC&&d.rC()>=15)return B;if(f.ty(a)){if(!b.zsa||d.rC()>=14&&d.rC()<14.6)return m}else if(d.rC()<12||a&&a.videoWidth&&a.videoHeight&&a.videoWidth*a.videoHeight<=262144)return m}return i&&a&&a.currentTime<0.2?m:B};f.ssa=function(){return f.Isa()||f.Xm()};f.rsa=function(){return f.Xm()&&b.zsa&&d.rC()<11};
var e=B;f.Dsa=function(){e=B};f.fQa=function(){return e};f.JRa=function(){e=m};var j=g.Ui("vic");f.WQa=function(){f.Xm()&&(j=m)};f.Mra=function(a){return{alpha:m,depth:m,stencil:m,antialias:d.Qsa()||d.jQa()||d.x$()||d.Lsa()||d.qQa()||d.sQa()||d.Usa()?B:a||B,premultipliedAlpha:m,preserveDrawingBuffer:B,powerPreference:"default",failIfMajorPerformanceCaveat:B,xrCompatible:!f.Isa()}};f.A9=function(a,b){var c=f.Mra(b);return a.getContext("webgl",c)||a.getContext("experimental-webgl",c)};f.lOa=function(a,
b){var c=f.Mra(b);return a.getContext("webgl2",c)};f.getPixelRatio=function(){if(d.ob()){var a=0,b=0;try{a=window.top.innerWidth;b=window.top.innerHeight}catch(c){if(d.le()==d.DH&&window.devicePixelRatio>1)return window.devicePixelRatio}var e=window.devicePixelRatio||1,a=[Math.max(document.documentElement.clientWidth,a),Math.max(document.documentElement.clientHeight,b)].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(d.le()==d.Zwa&&d.browser()==d.Dk)return 1;return window.devicePixelRatio};return f});
define("dK","require,kG,jquery.mod,dY,nS,bY,nU,t,d,mH,mZ".split(","),function(a){function b(){this.vb=B;this.mM=q;this.ia=this.Z=100;this.V2=this.$h=l;this.W2=100;this.ea=document.createElement("div");this.ea.style.opacity=0;this.ea.style.display="none";this.ea.style.hWa="opacity 0.3s";this.ea.addEventListener("transitionend",this.I7.bind(this));this.Vd=document.createElement("div");this.Kua(m);this.Vd.style.position="absolute";this.Vd.style.left=0;this.Vd.style.top=0;this.Vd.style.right=0;this.Vd.style.bottom=
0;this.ea.appendChild(this.Vd);this.Ob=document.createElement("img");this.Ob.style.cursor="pointer";this.Ob.style.position="absolute";this.Ob.style.left="50%";this.Ob.style.top="50%";this.Ob.style.transform="translate(-50%, -50%)";this.ea.appendChild(this.Ob);this.HZ=g(this.ea)}function d(a,b){this.reason=a;this.Yu=b}var c=a("kG"),g=a("jquery.mod");a("dY");a("nS");var f=a("bY"),i=a("nU"),e=a("t"),j=a("d"),o=a("mH"),k=a("mZ"),n=c.extend(j,function(){j.call(this);this.je("UserInteractionWindow");this.Tb=
q;this.ur=[];var a=new o;a.set("duration",500);a.set("easing","cubic_in");var b=new k;b.set("duration",500);b.set("easing","cubic_out");this.$({contentOpaque:m,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:B});this.bind(i.sc,this.K8,this,m);this.bind(i.ca,this.dNa,this,m)});n.prototype.K8=function(){this.Tb&&this.Tb.setSize(this.Se(),this.Re())};n.prototype.dNa=function(){var a=this.ur.slice();this.ur=[];this.rV();a.forEach(function(a){a.Yu.call(a.context)})};n.prototype.mb=function(){j.prototype.mb.call(this);
if(!this.Tb){this.Tb=new b;this.Tb.setSize(this.Se(),this.Re());this.Tb.Jf(m);this.Ab().append(this.Tb.Lc().css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"}));this.rV()}};n.prototype.Ko=function(){j.prototype.Ko.call(this);this.getParent().bind(i.sc,this.K8,this,m);n.vya(this)};n.prototype.Lm=function(){this.getParent().unbind(i.sc,this.K8,this,m);j.prototype.Lm.call(this);n.qIa(this)};n.prototype.tRa=function(a){this.tr(p,a)};n.prototype.faa=function(a){this.tr(r,a)};n.prototype.tr=
function(a,b){this.ur.push(new d(a,b));this.ur.sort(function(a,b){return t[a.reason]-t[b.reason]});this.rV()};n.prototype.TNa=function(a){this.cancel(p,a)};n.prototype.RNa=function(){this.cancel(r,l)};n.prototype.cancel=function(a,b){var c=this.jEa(a,b);c>=0&&this.AIa(c)};n.prototype.Mea=function(){this.GP(m)};n.prototype.QP=function(){this.GP(B)};n.prototype.jEa=function(a,b){for(var c=0;c<this.ur.length;c++){var e=this.ur[c];if(e.reason==a&&e.Yu==b)return c}return-1};n.prototype.rV=function(){if(this.Tb){var a=
this.uEa();if(a){switch(a.reason){case r:this.Tb.Caa(b.Zba);break;case p:this.Tb.Caa(b.XY)}this.set("visible",m)}else this.set("visible",B)}};n.prototype.AIa=function(a){this.ur.splice(a,1);a==this.ur.length&&this.rV()};n.prototype.uEa=function(){return this.ur.length>0?this.ur[0]:q};var r="vr",p="play",t={};t[r]=0;t[p]=1;b.prototype.Lc=S("HZ");b.prototype.setSize=function(a,b){if(this.Z!==a||this.ia!==b){this.Z=a;this.ia=b;this.sV()}};b.prototype.Kua=function(a){this.Vd.style.backdropFilter=a?"blur(8px)":
"none"};b.prototype.Jf=function(a){if(this.vb!=a){this.vb=a;if(this.mM){clearTimeout(this.mM);this.mM=q}if(this.vb){this.ea.style.display="block";this.ea.style.opacity=0;this.mM=setTimeout(function(){this.mM=q;this.ea.style.opacity=1}.bind(this),30)}else this.ea.style.opacity=0}};b.prototype.Caa=function(a){if(this.$h!=a){this.$h=a;this.tMa()}};b.prototype.I7=function(){if(!this.vb)this.ea.style.display="none"};b.prototype.tMa=function(){switch(this.$h){case b.XY:this.V2=f.lz;this.W2=f.sxa;break;
case b.Zba:this.V2=f.Mxa;this.W2=f.Oxa}this.Ob.src=this.V2;this.sV()};b.prototype.sV=function(){if(e.ob()){this.Ob.style.maxWidth=Math.round(this.Z*0.5)+"px";this.Ob.style.width="20vmin"}else{this.Ob.style.maxWidth=Math.round(this.Z*0.33)+"px";this.Ob.style.width=this.W2+"px"}};b.XY="play";b.Zba="vr";n.Hca=b;n.Zc=[];n.j5=[];n.vya=function(a){n.Zc.push(a);n.j5.forEach(function(b){n.lia(a,b)});n.j5=[]};n.qIa=function(a){n.Zc.splice(n.Zc.indexOf(a),1)};n.ready=function(){return n.Zc.length>0};n.faa=
function(a){n.Zc.length?n.Zc.forEach(function(b){n.lia(b,a)}):n.j5.push(a)};n.lia=function(a,b){a.faa(function(){n.Zc.forEach(function(b){b!=a&&b.RNa()});b()})};return n});
define("nD",["require"],function(){var a={ln:{}};a.ln.NONE="none";a.ln.Ja="left";a.ln.Xa="right";a.Vj=function(){this.y=this.x=0;this.height=this.width=1};a.lda=function(){this.eye=a.ln.NONE;this.viewport=new a.Vj;this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.projectionMatrix=new THREE.Matrix4};a.Pwa=function(){this.position=new THREE.Vector3;this.orientation=new THREE.Quaternion;this.views=[];this.lW=[]};a.axa=function(){this.tN=q;this.ho=200;this.Vm=100;this.iW=1};return a});
define("dP",["require"],function(){return{cP:"gaze",VY:"gaze_click"}});
define("gL","require,kG,nU,gZ,fQ,dK,nD,t,ip,lB,dP".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gZ"),g=a("fQ"),f=a("dK"),i=a("nD"),e=a("t"),j=a("ip"),o=a("lB"),k=a("dP"),a=b.extend(g,function(){g.call(this);this.Tma=k.cP;this.Sn=[];this.rd=new i.Pwa;this.Hi=new i.lda;this.Hi.eye=i.ln.Ja;this.Mi=new i.lda;this.Mi.eye=i.ln.Xa;this.rd.views=[this.Hi,this.Mi];this.ee=new i.axa;this.bind(d.qa,this.SA,this,B)});a.prototype.fq=I();a.prototype.yk=I();a.prototype.Hf=I();a.prototype.uW=S("ee");a.prototype.cs=
S("rd");a.prototype.yb=I();a.prototype.isPresenting=I();a.prototype.Ee=I();a.prototype.yW=S("Tma");a.prototype.lC=I();a.prototype.yG=function(a){this.Sn.indexOf(a)<0&&this.Sn.push(a)};a.prototype.nX=function(a){this.Sn.splice(this.Sn.indexOf(a),1);this.lC()==a&&this.Hf()};a.prototype.zX=function(a){var b=this.Sn.indexOf(a);if(!(b<0||b==this.Sn.length-1)){this.Sn.splice(b,1);this.Sn.splice(this.Sn.length,0,a)}};a.prototype.cEa=function(){return this.Sn.length>0?this.Sn[this.Sn.length-1]:q};a.prototype.w6=
function(){var a=this.cEa();if(a==q){a=document.createElement("canvas");a=c.A9(a);this.yG(a)}return a};a.prototype.YT=function(a){f.faa(a)};a.prototype.X6=function(a){if(e.Yd()==e.VC){this.b6();j.xwa.show(a,function(){this.cea()}.bind(this))}else e.uN()&&e.Yd()==e.HH?j.xxa.show(a):e.Yd()==e.PO?j.kda.show(a):e.Yd()==e.QO?j.kda.show():a()};a.prototype.x6=function(a){var b=function(b){this.Tma=b;a()}.bind(this);!e.ob()||e.If()?b(k.cP):o.js("cardboard_version")=="1"?b(k.cP):o.js("cardboard_version")==
"2"?b(k.VY):j.fY.show(function(){b(k.VY)}.bind(this),function(){b(k.cP)}.bind(this))};a.prototype.SA=function(){e.ob()||(this.isPresenting()?j.Tba.show(this.Hf.bind(this)):j.Tba.hide())};a.prototype.cea=function(){this.b6();var a=this.Wha();a.push("vr");this.mea(a)};a.prototype.b6=function(){this.mea(this.Wha().filter(function(a){return a!="vr"}))};a.prototype.Wha=function(){var a=window.location.hash.substring(1);return a.length?a.split("&"):[]};a.prototype.mea=function(a){window.location.hash="#"+
(a.length?a.join("&"):"")};return a});
define("r",["require","jquery.mod","mt"],function(a){function b(){k.get(0)==document.body&&i.height(window.innerHeight)}function d(a,b){var c={},e;for(e in b)c[e]=a.css(e);n.push({$el:a,css:c});a.css(b)}function c(a){this.ea=a}var g=a("jquery.mod"),f=a("mt");c.prototype.yk=function(){this.enabled()||this.toggle()};c.prototype.Hf=function(){this.enabled()&&this.toggle()};c.prototype.toggle=function(){this.enabled()?c.cancel():c.Wi(this.ea)};c.prototype.enabled=function(){return c.enabled(this.ea)};
var i=g("<div/>").css({position:"fixed",bottom:0,left:0,height:"100vh",width:"100vw"}),e=g("<div/>"),j=q,o=q,k=q,n=[],r=q;c.Wi=function(a){if(a!==j){c.cancel();j=a;var n=f.$p()||document.body;o=g(a);k=g(n);e.insertAfter(o);o.appendTo(i);k.children().each(function(){d(g(this),{visibility:"hidden"})});d(o,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});n==document.body?d(i,{position:"fixed",left:0,top:"",right:"",bottom:0,height:"100vh",width:"100vw",margin:0,padding:0}):d(i,{position:"absolute",
left:0,top:0,right:"",bottom:"",width:"100%",height:"100%",margin:0,padding:0});i.appendTo(k);b();r=setInterval(b,300)}};c.cancel=function(){if(j){i.detach();o.insertBefore(e);for(e.detach();n.length;){var a=n.pop();a.$el.css(a.css)}k=o=j=q;n=[];clearInterval(r)}};c.enabled=function(a){return j==a};return c});
define("ky","require,kG,nU,cs,fQ,nS,bY".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("nS"),a=a("bY"),i=['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+a.Sl+'"/>','</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"),e=i+['<img style="width:22vmin" src="'+a.QH+'"/>','<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>",j=i+['<img style="width:13vmin; vertical-align:middle;" src="'+a.Dxa+'"/>','<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(g,function(){g.call(this);this.gl=this.xn=this.yn=this.CJ=this.DJ=this.H3=this.I3=l;
this.CR=B;this.Px=this.v5=this.G3=this.Ze=q;this.Qga=[];this.h3=this.Ep=B;this.Vb=this.Vb.bind(this)});b.prototype.Wi=function(){if(!this.Ep){this.Ep=m;this.s0();window.addEventListener("resize",this.Vb);document.body.appendChild(this.Ze);document.body.appendChild(this.Px);this.YKa=document.documentElement.style.overflow;this.XKa=document.body.style.overflow;document.documentElement.style.overflow="auto";document.body.style.overflow="auto";this.NK()}};b.prototype.cancel=function(){if(this.Ep){this.Ep=
B;window.removeEventListener("resize",this.Vb);document.body.style.overflow=this.XKa;document.documentElement.style.overflow=this.YKa;document.body.removeChild(this.Ze);document.body.removeChild(this.Px);this.jna(B)}};b.prototype.enabled=S("CR");b.prototype.s0=function(){if(!this.Ze){this.Ze=this.vQ({position:"fixed",top:0,left:0,zIndex:9999998},m);this.Ze.id="tdvminuictr";this.v5=this.vQ({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},m,e);this.Ze.appendChild(this.v5);this.G3=
this.vQ({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},m,j);this.Ze.appendChild(this.G3);this.Px=this.vQ({position:"absolute",top:0,left:0,right:0,height:"999999999vmax",zIndex:9999999},B);this.Px.id="tdvminuiscrl";this.Px.addEventListener("touchend",this.Vb)}};b.prototype.vQ=function(a,b,c){var e=document.createElement("div");this.IL(e,a);c!==l&&this.EJa(e,c);b&&this.Qga.push(e);return e};b.prototype.Vb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.O4.bind(this),
a)}.bind(this))};b.prototype.O4=function(){(this.yn!=window.innerWidth||this.xn!=window.innerHeight)&&this.NK()};b.prototype.NK=function(){this.yn=window.innerWidth;this.xn=window.innerHeight;this.gl=this.yn>this.xn?"landscape":"portrait";var a;if(this.gl=="landscape"){if(this.I3&&this.H3&&this.EFa(this.I3,this.H3)&&(!this.DJ&&!this.CJ||this.FFa(this.DJ,this.CJ))){this.DJ=this.yn;this.CJ=this.xn}if(this.yFa()){this.DJ=this.yn;this.CJ=this.xn}this.I3=this.yn;this.H3=this.xn;a=this.DJ==this.yn&&this.CJ==
this.xn}else a=B;this.Qga.forEach(function(a){a.style.height=this.xn+"px";a.style.width=this.yn+"px"}.bind(this));var b=this.Ep&&this.gl=="portrait",c=this.Ep&&this.gl=="landscape"&&!a,e=this.Ep&&this.gl=="landscape";this.IL(this.Ze,{display:b||c?"block":"none"});this.IL(this.v5,{display:b?"block":"none"});this.IL(this.G3,{display:c?"block":"none"});this.IL(this.Px,{display:e?"block":"none",right:c?0:"99.9%"});this.jna(a)};b.prototype.jna=function(a){if(this.rU!=q){clearTimeout(this.rU);this.rU=q}if(this.CR!=
a)this.rU=setTimeout(function(){this.rU=q;(this.CR=a)?this.trigger(new c(d.hn)):this.trigger(new c(d.Ga));this.trigger(new c(d.qa))}.bind(this),a?1E3:0)};b.prototype.yFa=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(e){c=Math.min(c,Math.abs(100-100*a*e[1]/(b*e[0])))});return c<=1?m:B};b.prototype.EFa=function(a,b){return a*window.innerHeight>
b*window.innerWidth};b.prototype.FFa=function(a,b){return a*window.innerHeight>=b*window.innerWidth};b.prototype.IL=function(a,b){for(var c in b)a.style[c]=b[c]};b.prototype.EJa=function(a,b){a.innerHTML=b};return new b});
define("nZ","require,hy,t,mm,hs,bQ".split(","),function(a){var b=a("hy"),d=a("t"),c=a("mm"),g=a("hs"),f=a("bQ");if(d.browser()==d.Dk){a=function(){this.j=new c;this.j.src="data:video/mp4;base64, ";this.j.loop=
m;this.j.gv=m;this.nb=q};a.prototype.pX=T(m);a.prototype.Ee=function(){return g.Vl};a.prototype.g$=function(){return b.Lxa};a.prototype.F9=function(a){this.nb=a;this.nb.play(q,this.j,0)};a.prototype.F$=function(){this.nb=q};var i=B,e=new a;return{enable:function(){if(!i){i=m;f.j9(e)}},disable:function(){if(i){i=B;f.jH(e)}}}}return{enable:I(),disable:I()}});
define("jO",["require","jquery.mod","nS","bY"],function(a){function b(){this.cj=q;this.N=B;this.Vb=this.Vb.bind(this);this.xn=this.yn=this.gl=l}var d=a("jquery.mod"),c=a("nS"),g=a("bY");b.prototype.st=function(){this.cj||(this.cj=d("<div/>"),this.cj.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.cj.html(['<div style="position: absolute; top: 5vmin; right:5vmin;">','<img style="width:24vmin" src="'+
g.Sl+'"/>','</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="'+g.QH+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+c("rotate-device")+"</div>","</div>\n</div>"].join("\n")))};b.prototype.show=function(a){this.N||(this.N=m,this.st(),
d(a).append(this.cj),d(window).on("resize",this.Vb),this.NK())};b.prototype.hide=function(){this.N&&(this.N=B,d(window).off("resize",this.Vb),this.cj.detach())};b.prototype.Vb=function(){[0,250,1E3,2E3].forEach(function(a){setTimeout(this.O4.bind(this),a)}.bind(this))};b.prototype.O4=function(){(this.yn!=window.innerWidth||this.xn!=window.innerHeight)&&this.NK()};b.prototype.NK=function(){this.yn=window.innerWidth;this.xn=window.innerHeight;this.gl=this.yn>this.xn?"landscape":"portrait";this.cj.toggle("landscape"!=
this.gl)};return new b});
define("ki","require,kG,nU,cs,iA,la,t,hl,ip,cp,cV,gL,d,bg,mt,r,ky,nZ,jO".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("iA"),f=a("la"),i=a("t"),e=a("hl"),j=a("ip"),o=a("cp"),k=a("cV"),n=a("gL"),r=a("d"),p=a("bg"),t=a("mt"),s=a("r"),u=a("ky"),v=a("nZ"),w=a("jO"),x=b.extend(n,function(){n.call(this);this.xj=this.Fg=this.Nh=this.CL=this.Zt=this.vk=this.vd=q;this.ke=k.Sl;this.yb=this.yb.bind(this)});x.prototype.fq=function(a){if(this.pJ()){var b=function(b){if(this.vd=b.length?b[0]:q){this.vd.depthNear=
0.1;this.vd.depthFar=2*g.of;this.vk="VRFrameData"in window?new VRFrameData:q;window.addEventListener("vrdisplaypresentchange",this.B5.bind(this),B);u.bind(d.Ga,this.Hf.bind(this))}a(!!this.vd)}.bind(this),c=window.WebVRConfig||(window.WebVRConfig={});c.BUFFER_SCALE=x.EG;c.ALWAYS_APPEND_POLYFILL_DISPLAY=m;c.LOCK_ORIENTATION=B;o.nda.load(function(){navigator.getVRDisplays().then(b)["catch"](function(){b([])})}.bind(this))}else a(B)};x.prototype.yk=function(){!this.isPresenting()&&!this.Fg&&this.zB(function(){this.X6(function(){this.x6(function(){if(!this.isPresenting()&&
!this.Fg){this.Fg=this.w6();this.U6();this.vd.requestPresent([{source:this.Fg.canvas}]).then(function(){this.xj=this.Fg;this.Fg=q;i.Yd()!=i.FH&&w.show(t.$p());this.CF();this.WM()}.bind(this))["catch"](function(){this.Fg=q;this.lM()}.bind(this))}}.bind(this))}.bind(this))}.bind(this))};x.prototype.Hf=function(){this.isPresenting()&&this.vd.exitPresent()};x.prototype.yb=function(a){return this.vd.requestAnimationFrame(function(b){var c=this.CF();c&&this.SB();a(b);c&&this.vd.submitFrame()}.bind(this))};
x.prototype.isPresenting=function(){return!!this.vd&&this.vd.isPresenting};x.prototype.lC=S("xj");x.prototype.Ee=S("ke");x.prototype.B5=function(){if(this.isPresenting())p.BX(this.yb,this.vd.cancelAnimationFrame.bind(this.vd));else{p.gaa();(this.xj||this.Fg)&&this.lM()}this.trigger(new c(d.qa))};x.prototype.pJ=function(){return e.available&&f.tba&&i.ob()&&i.oy()!=i.YC};x.prototype.zB=function(a){if(e.disabled)j.Xba.show(function(){e.eaa(function(){this.zB(a)}.bind(this))});else if(t.enabled()||!r.MN()){t.Hf();
this.YT(function(){this.zB(a)}.bind(this))}else a()};x.prototype.U6=function(){s.Wi(this.Fg.canvas);i.Yd()==i.GH?this.cea():v.enable();i.Yd()==i.FH&&u.Wi()};x.prototype.CF=function(){this.vd.getFrameData(this.vk);if(!this.vk.pose||!this.vk.pose.orientation)return B;this.Zt=this.vd.getEyeParameters("left");this.CL=this.vd.getEyeParameters("right");var a=this.vd.getLayers();this.Nh=a&&a.length&&a[0]||q;return!this.Nh?B:m};x.prototype.WM=function(){this.ee.tN=q;this.ee.ho=this.Zt.renderWidth*2;this.ee.Vm=
this.Zt.renderHeight;this.ee.iW=1};x.prototype.SB=function(){var a=this.vk.pose;this.rd.orientation.fromArray(a&&a.orientation||y);this.rd.position.fromArray(a&&a.position||D);this.Z8()};x.prototype.Z8=function(){this.Hi.position.fromArray(this.Zt.offset);this.Hi.orientation.fromArray(y);this.Hi.projectionMatrix.fromArray(this.vk.leftProjectionMatrix);this.Hi.viewport.x=Math.round(this.ee.ho*this.Nh.leftBounds[0]);this.Hi.viewport.y=Math.round(this.ee.Vm*this.Nh.leftBounds[1]);this.Hi.viewport.width=
Math.round(this.ee.ho*this.Nh.leftBounds[2]);this.Hi.viewport.height=Math.round(this.ee.Vm*this.Nh.leftBounds[3]);this.Mi.position.fromArray(this.CL.offset);this.Mi.orientation.fromArray(y);this.Mi.projectionMatrix.fromArray(this.vk.rightProjectionMatrix);this.Mi.viewport.x=Math.round(this.ee.ho*this.Nh.rightBounds[0]);this.Mi.viewport.y=Math.round(this.ee.Vm*this.Nh.rightBounds[1]);this.Mi.viewport.width=Math.round(this.ee.ho*this.Nh.rightBounds[2]);this.Mi.viewport.height=Math.round(this.ee.Vm*
this.Nh.rightBounds[3])};x.prototype.lM=function(){this.b6();this.xj=this.Fg=q;u.cancel();s.cancel();v.disable();w.hide()};x.EG=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var y=[0,0,0,1],D=[0,0,0];return x});
define("iw","require,kG,cs,nU,t,cV,gL,iA,d,bg,r".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("nU"),g=a("t"),f=a("cV"),i=a("gL"),e=a("iA"),j=a("d"),o=a("bg"),k=a("r"),a=b.extend(i,function(){i.call(this);this.xj=this.Fg=this.Nh=this.CL=this.Zt=this.vk=this.vd=q;this.yb=this.yb.bind(this)});a.prototype.fq=function(a){if(this.pJ()){var b=function(b){if(this.vd=b.length?b[0]:q){this.vd.depthNear=0.1;this.vd.depthFar=2*e.of;this.vk="VRFrameData"in window?new VRFrameData:q;window.addEventListener("vrdisplaypresentchange",
this.B5.bind(this),B);window.addEventListener("vrdisplayactivate",this.Rla.bind(this));window.addEventListener("vrdisplaydeactivate",this.Hf.bind(this))}a(!!this.vd)}.bind(this);navigator.getVRDisplays().then(b)["catch"](function(){b([])})}else a(B)};a.prototype.yk=function(a){!this.isPresenting()&&!this.Fg&&this.zB(a,function(){this.X6(function(){this.x6(function(){!this.isPresenting()&&!this.Fg&&this.Rla()}.bind(this))}.bind(this))}.bind(this))};a.prototype.Hf=function(){this.isPresenting()&&this.vd.exitPresent()};
a.prototype.yb=function(a){return this.vd.requestAnimationFrame(function(b){var c=this.CF();c&&this.SB();a(b);c&&this.vd.submitFrame()}.bind(this))};a.prototype.isPresenting=function(){return!!this.vd&&this.vd.isPresenting};a.prototype.lC=S("xj");a.prototype.Ee=function(){return f.Sxa};a.prototype.pJ=function(){return"getVRDisplays"in navigator&&!window.WebVRConfig};a.prototype.B5=function(){if(this.isPresenting()){o.BX(this.yb,this.vd.cancelAnimationFrame.bind(this.vd));this.CF()&&this.SB()}else{o.gaa();
(this.xj||this.Fg)&&this.lM()}this.trigger(new d(c.qa))};a.prototype.zB=function(a,b){a||j.MN()?b():this.YT(function(){b()})};a.prototype.Rla=function(){this.Fg=this.w6();this.U6();this.vd.requestPresent([{source:this.Fg.canvas,attributes:{foveationLevel:3}}]).then(function(){this.xj=this.Fg;this.Fg=q;this.CF()&&this.SB()}.bind(this))["catch"](function(){this.Fg=q;this.lM()}.bind(this))};a.prototype.U6=function(){k.Wi(this.Fg.canvas)};a.prototype.CF=function(){this.vd.getFrameData(this.vk);if(!this.vk.pose||
!this.vk.pose.orientation)return B;this.Zt=this.vd.getEyeParameters("left");this.CL=this.vd.getEyeParameters("right");var a=this.vd.getLayers();this.Nh=a&&a.length&&a[0]||q;return!this.Nh?B:m};a.prototype.SB=function(){this.WM();var a=this.vk.pose;this.rd.orientation.fromArray(a&&a.orientation||n);this.rd.position.fromArray(a&&a.position||r);this.Z8()};a.prototype.WM=function(){this.ee.tN=q;this.ee.ho=this.Zt.renderWidth*2;this.ee.Vm=this.Zt.renderHeight;this.ee.iW=g.If()?2048/this.ee.Vm:1};a.prototype.Z8=
function(){this.Hi.position.fromArray(this.Zt.offset);this.Hi.orientation.fromArray(n);this.Hi.projectionMatrix.fromArray(this.vk.leftProjectionMatrix);var a=this.Nh.leftBounds&&this.Nh.leftBounds.length==4?this.Nh.leftBounds:p;this.Hi.viewport.x=Math.round(this.ee.ho*a[0]);this.Hi.viewport.y=Math.round(this.ee.Vm*a[1]);this.Hi.viewport.width=Math.round(this.ee.ho*a[2]);this.Hi.viewport.height=Math.round(this.ee.Vm*a[3]);this.Mi.position.fromArray(this.CL.offset);this.Mi.orientation.fromArray(n);
this.Mi.projectionMatrix.fromArray(this.vk.rightProjectionMatrix);a=this.Nh.rightBounds&&this.Nh.rightBounds.length==4?this.Nh.rightBounds:t;this.Mi.viewport.x=Math.round(this.ee.ho*a[0]);this.Mi.viewport.y=Math.round(this.ee.Vm*a[1]);this.Mi.viewport.width=Math.round(this.ee.ho*a[2]);this.Mi.viewport.height=Math.round(this.ee.Vm*a[3])};a.prototype.lM=function(){this.xj=this.Fg=q;k.cancel()};var n=[0,0,0,1],r=[0,0,0],p=[0,0,0.5,1],t=[0.5,0,0.5,1];return a});
define("jX","require,kG,cs,nU,t,lN,cV,gL,iA,d,bg,r,lm,gI".split(","),function(a){function b(a){setTimeout(a,10)}var d=a("kG"),c=a("cs"),g=a("nU"),f=a("t"),i=a("lN"),e=a("cV"),j=a("gL"),o=a("iA"),k=a("d"),n=a("bg"),r=a("r"),p=a("lm"),t=a("gI"),s=d.extend(j,function(){j.call(this);this.TB=this.YM=this.Ri=this.xj=q;this.OF="stopped";this.yb=this.yb.bind(this);this.A6=this.A6.bind(this);this.B6=this.B6.bind(this);this.C6=this.C6.bind(this);this.gy=B;p.AH(function(){b(function(){this.gy=m}.bind(this))}.bind(this))});
s.prototype.fq=function(a){if(this.pJ())this.nLa().then(function(b){b?a(m):a(B)})["catch"](function(){a(B)});else a(B)};s.prototype.yk=function(){this.OF=="stopped"&&this.zB(function(){this.X6(function(){this.x6(function(){setTimeout(function(){this.PKa()}.bind(this),200)}.bind(this))}.bind(this))}.bind(this))};s.prototype.PKa=function(){if(this.OF=="stopped"){this.OF="starting";this.trigger(new c(g.qa));n.Jaa(m);navigator.xr.requestSession("immersive-vr").then(function(a){this.Ri=a;this.Ri.addEventListener("end",
this.A6);this.Ri.addEventListener("select",this.B6);this.Ri.addEventListener("visibilitychange",this.C6);return this.Ri.requestReferenceSpace("local")}.bind(this)).then(function(a){this.YM=a;this.xj=this.w6();return this.xj.makeXRCompatible()}.bind(this)).then(function(){f.ob()&&r.Wi(this.xj.canvas);var a=XRWebGLLayer.getNativeFramebufferScaleFactor(this.Ri),a=Math.max(a,1);f.x$()?a=a*1:f.If()?a=a*1.42222:f.ob()&&(a=a*s.EG);this.TB=new XRWebGLLayer(this.Ri,this.xj,{antialias:B,framebufferScaleFactor:a});
this.Ri.updateRenderState({baseLayer:this.TB,depthNear:0.1,depthFar:2*o.of});this.WM();this.OF="started";n.BX(this.yb,this.Ri.cancelAnimationFrame.bind(this.Ri));n.Jaa(B)}.bind(this))["catch"](function(){n.Jaa(B);this.Yma();this.trigger(new c(g.qa))}.bind(this))}};s.prototype.Hf=function(){this.isPresenting()&&this.Ri.end()};s.prototype.yb=function(a){return this.Ri.requestAnimationFrame(function(b,c){this.b9=c;this.SB();a(b)}.bind(this))};s.prototype.isPresenting=function(){return this.OF!="stopped"};
s.prototype.Ee=function(){return e.Txa};s.prototype.lC=S("xj");s.prototype.pJ=function(){return"xr"in navigator};s.prototype.nLa=function(){return"isSessionSupported"in navigator.xr?navigator.xr.isSessionSupported("immersive-vr"):"supportsSession"in navigator.xr?navigator.xr.supportsSession("immersive-vr"):Promise.reject()};s.prototype.zB=function(a){f.Yd()==f.Ds?this.gy?a():k.MN()?b(a):this.YT(function(){b(a)}):k.MN()?a():this.YT(function(){a()})};s.prototype.A6=function(){n.gaa();this.Yma();this.trigger(new c(g.qa))};
s.prototype.B6=function(){this.trigger(new c(g.Ul))};s.prototype.C6=function(){t.Xaa(!this.Ri||this.Ri.visibilityState!="visible");i.Mwa&&this.Ri.visibilityState!="visible"&&this.Hf()};s.prototype.Yma=function(){this.TB=this.YM=this.Ri=this.xj=q;this.OF="stopped";r.cancel()};s.prototype.WM=function(){this.ee.tN=this.TB.framebuffer;this.ee.ho=this.TB.framebufferWidth;this.ee.Vm=(f.Yd()==f.Ds?2:1)*this.TB.framebufferHeight;this.ee.iW=1};s.prototype.SB=function(){var a=this.b9.getViewerPose(this.YM);
if(a){var b=a&&a.transform.orientation||u;this.rd.orientation.set(b.x,b.y,b.z,b.w);b=a&&a.transform.position||v;this.rd.position.set(b.x,b.y,b.z);for(var a=this.b9.getViewerPose(this.YM.getOffsetReferenceSpace(a.transform)),c=0;c<a.views.length;c++){var e=a.views[c],f;if(e.eye=="left")f=this.Hi;else if(e.eye=="right")f=this.Mi;else continue;b=e.transform.position;f.position.set(b.x,b.y,b.z);b=e.transform.orientation;f.orientation.set(b.x,b.y,b.z,b.w);f.projectionMatrix.fromArray(e.projectionMatrix);
e=this.TB.getViewport(e);f.viewport.x=e.x;f.viewport.y=e.y;f.viewport.width=e.width;f.viewport.height=e.height}var d=[];this.Ri.inputSources.forEach(function(a){if(a.targetRayMode=="tracked-pointer"&&a.gamepad){var b=a.gamepad;if(!b.pose)b.s$=this.b9.getPose(a.targetRaySpace,this.YM);if(!b.hand)b.bQa=a.handedness;if(!b.id)b.cQa=b.mapping+" "+a.handedness;d.push(b)}}.bind(this));this.rd.lW=d}};s.EG=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("bu","require,kG,nU,fQ,t,hl,lB,ki,dP,cV,nD,iw,jX,gI".split(","),function(a){function b(a,c){if(a.length){var e=new a[0];e.fq(function(f){f?c(e):b(a.slice(1),c)})}else c(q)}var d=a("kG"),c=a("nU"),g=a("fQ"),f=a("t"),i=a("hl"),e=a("lB"),j=a("ki"),o=a("dP"),k=a("cV"),n=a("nD"),r=a("iw"),p=a("jX"),t=a("gI"),s=B,u=[],v=new g;v.ln=n.ln;v.Fxa=o;v.sD=k;v.available=T(m);v.cs=T(q);v.uW=T(q);v.isPresenting=T(B);v.yk=function(){s=m};v.Hf=function(){s=B};v.zVa=T(q);v.yG=function(a){u.indexOf(a)<0&&u.push(a)};
v.nX=function(a){a=u.indexOf(a);a==-1||u.splice(a,1)};v.zX=I();v.NSa=function(a){j.EG=a;p.EG=a};v.lPa=function(){return j.EG};v.Ee=T(q);v.yW=T(q);v.log=function(){v.available()?v.Ee()?d.log("VR: "+v.Ee()):d.log("VR: not ready"):d.log("VR: not available");d.log("gyroscope: "+i.available)};var w;w=f.browser()==f.Dk&&!f.ob()?[p,r,j]:f.x$()?[p,r]:e.js("vr_mode")=="cardboard"?[j]:[r,p,j];v.fq=function(a){var e=setTimeout(function(){e=q;a()},250);b(w,function(b){var d=b;if(d){d.bind(c.qa,function(){v.trigger(c.qa)},
v,m);d.bind(c.Ul,function(){v.trigger(c.Ul)},v,m);v.available=T(m);v.uW=function(){return d.uW()};v.cs=function(){return d.cs()};v.isPresenting=function(){return d.isPresenting()};v.yk=function(){d.yk()};v.Hf=function(){d.Hf()};v.lC=function(){return d.lC()};v.yG=function(a){d.yG(a)};v.nX=function(a){d.nX(a)};v.zX=function(a){d.zX(a)};v.Ee=function(){return d.Ee()};v.yW=function(){return d.yW()};u.forEach(function(a){d.yG(a)});f.Yd()==f.Oy?function(){function a(){e++;c=setTimeout(b,e*1E3)}function b(){c=
q;if(e>5)window.location.reload();else if(!document.hidden&&!d.isPresenting()){d.yk(m);a()}}var c,e;document.addEventListener("visibilitychange",function(){if(!document.hidden){if(c){clearTimeout(c);c=q}e=0;a()}},B);if(c){clearTimeout(c);c=q}e=0;a()}():s&&d.yk()}else v.available=T(B);if(e){clearTimeout(e);e=q;a()}})};v.bind(c.qa,function(){t.uX(v.isPresenting())},window,m);window.addEventListener("vrdisplayblur",function(){t.Xaa(m)},m);window.addEventListener("vrdisplayfocus",function(){t.Xaa(B)},
m);return v});
define("dH","require,nU,kJ,fQ,bg,bu".split(","),function(a){function b(a){this.oQ=a;this.ij=q;this.J_={};for(a=0;a<this.oQ.buttons.length;a++)this.J_[this.oQ.buttons[a]]=B;this.H_=0;this.Gx=q;this.lB=[new THREE.Quaternion,new THREE.Quaternion];this.kk=this.lB[0];this.Hh=[new THREE.Vector3,new THREE.Vector3];this.Pa=this.Hh[0];this.zF=new THREE.Vector3;this.iB=new THREE.Quaternion;this.ffa=0}function d(a,b,c){this.VPa=a;this.buttons=b;this.aRa=c}function c(){if(!(D||x==k.Qe)){x=k.Qe;var a,c=n.isPresenting()&&
n.cs();if(a=c&&c.lW&&c.lW.length?c.lW:navigator.getGamepads&&navigator.getGamepads()){for(c=0;c<u.length;c++)u[c].Uua(q);for(c=0;c<a.length;c++){var e=a[c];if(e&&(e.pose||e.s$)){var f=e.id||e.cQa,d=f+(e.hand?"-"+e.hand:""),o=w[d];if(!o){a:{for(var i=0;i<r.length;i++){var s=r[i];if(f.indexOf(t[s].VPa)==0){f=s;break a}}f=l}f&&u.push(o=w[d]=new b(t[f]))}o&&w[d].Uua(e)}}(a=v)&&!v.B$()&&(v=q);for(c=0;c<u.length;c++){o=u[c];if(o.B$()&&o.pressed()){v=o;break}}if(!v)for(c=0;c<u.length;c++){o=u[c];if(o.B$()){if(o.hand()==
p){v=o;break}v||(v=o)}}a!=v&&j.xy(g)}}}function g(){s.trigger(e.qa)}function f(){c()}function i(){if(n.isPresenting()){if(y){clearInterval(y);y=q}c();y=setInterval(f,500)}else if(y){clearInterval(y);y=q}}var e=a("nU"),j=a("kJ"),o=a("fQ"),k=a("bg"),n=a("bu"),r=["oculus go","oculus touch","xr-standard","gear vr","daydream","vive","vive focus","microsoft","unknown"],p="right",t={};t["oculus go"]=new d("Oculus Go",["trackpad","trigger"],"trigger");t["oculus touch"]=new d("Oculus Touch",["thumbstick",
"trigger","grip","abutton","bbutton","surface"],"trigger");t["xr-standard"]=new d("xr-standard",["trigger","grip","unknow_button_0","thumbstick","abutton","bbutton","unknow_button"],"trigger");t["gear vr"]=new d("Gear VR",["trackpad","trigger"],"trigger");t.daydream=new d("Daydream Controller",["trackpad","menu","system"],"trackpad");t.vive=new d("OpenVR",["trackpad","trigger","grip","menu","system"],"trigger");t["vive focus"]=new d("HTC Vive Focus",["trackpad","trigger","grip"],"trigger");t.microsoft=
new d("Spatial Controller (Spatial Interaction Source)",["thumbstick","trigger","grip","menu","thumbpad"],"trigger");t.unknown=new d("",[],l);b.prototype.Uua=function(a){if(this.ij=a){this.EEa=this.ij.hand||this.ij.bQa;if(this.ij.pose){this.Gx=this.ij.pose;if(this.Gx.orientation){this.kk=this.lB[0]==this.kk?this.lB[1]:this.lB[0];this.kk.fromArray(this.Gx.orientation)}if(this.Gx.position){this.Pa=this.Hh[0]==this.Pa?this.Hh[1]:this.Hh[0];this.Pa.fromArray(this.Gx.position)}else this.Pa=q}else if(this.ij.s$){this.Gx=
this.ij.s$.transform;this.kk=this.lB[0]==this.kk?this.lB[1]:this.lB[0];this.kk.copy(this.Gx.orientation);this.Pa=this.Hh[0]==this.Pa?this.Hh[1]:this.Hh[0];this.Pa.copy(this.Gx.position)}for(var a=0,b=Math.min(this.ij.buttons.length,this.ij.buttons.length);a<b;a++)this.J_[this.oQ.buttons[a]]=this.ij.buttons[a].pressed;for(a=this.H_=0;a<this.ij.buttons.length;a++)this.ij.buttons[a].pressed&&this.H_++;(a=!!this.zF!=!!this.Pa||this.Pa&&this.zF.x!=this.Pa.x&&this.zF.y!=this.Pa.y&&this.zF.z!=this.Pa.z)&&
(this.Pa?this.zF.copy(this.Pa):this.zF.set(0,0,0,0));(b=!!this.iB!=!!this.kk||this.kk&&(this.iB.x!=this.kk.x||this.iB.y!=this.kk.y||this.iB.z!=this.kk.z||this.iB.w!=this.kk.w))&&(this.kk?this.iB.copy(this.kk):this.iB.set(0,0,0));if(a||b)this.ffa=k.Qe}};b.prototype.pulse=function(a,b){var c=this.ij&&this.ij.hapticActuators;(c=c&&c.length&&c[0])&&c.pulse&&c.pulse(a,b)};b.prototype.B$=function(){return!!this.ij};b.prototype.lQa=function(){return k.Qe-this.ffa>500};b.prototype.hand=S("EEa");b.prototype.quaternion=
S("kk");b.prototype.position=S("Pa");b.prototype.pressed=function(a){a||(a=this.oQ.aRa);return!a?this.H_>0:this.J_[a]};var s=new o;s.all=function(){c();return u};s.XW=function(){c();return v};s.Ja="left";s.Xa=p;var u=[],v=q,w={},x=l,y=q,D=URL.Si("disable-controller",B);n.bind(e.qa,i);i();return s});
define("dc",["require","gn","a"],function(a){function b(a,b){this.vf=a||new d(0,0,0);this.Vi=b||new d(1,0,0)}var d=a("gn"),c=a("a");b.prototype.clone=function(){return new b(this.vf.clone(),this.Vi.clone())};b.prototype.apply=function(a){a.BG(this.vf);a.BG(this.Vi)};b.prototype.Ura=function(){return c.py(this.vf,this.Vi)};return b});
define("hH",["dc","gn"],function(a,b){function d(a,b,f){this.Z=a||100;this.ia=b||100;this.ya=f||Math.PI;this.J5=l;this.Pq=m}d.prototype.GC=function(a){this.ya!=a&&(this.ya=a,this.Pq=m)};d.prototype.dv=S("ya");d.prototype.zO=function(a){this.Z!=a&&(this.Z=a,this.Pq=m)};d.prototype.fd=S("Z");d.prototype.Wua=function(a){this.ia!=a&&(this.ia=a,this.Pq=m)};d.prototype.Td=S("ia");d.prototype.project=function(a){if(0!=a.z){this.upa();var b=1/a.z,f=this.J5*b;a.x=0.5*this.Z-a.x*f;a.y=0.5*this.ia-a.y*f;a.z=
b}};d.prototype.unproject=function(c){this.upa();return new a(new b(0,0,0),new b(0.5*this.Z-c.x,0.5*this.ia-c.y,this.J5))};d.prototype.upa=function(){this.Pq&&(this.J5=0.5*this.Z/Math.tan(0.5*this.ya),this.Pq=B)};return d});
define("eK",["require","jquery.mod"],function(a){function b(){this.ea=d("<div/>");this.ea.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,"pointer-events":"none","background-color":"#ffffff"});this.ea.hide()}var d=a("jquery.mod");b.prototype.Lc=S("ea");b.prototype.trigger=function(){this.ea.fadeIn(100).fadeOut(100)};return b});
define("oa",["require"],function(){function a(){this.He=this.pitch=this.Na=0;this.Ph=this.ue=90;this.eN=this.TV=this.height=this.width=100;this.Kj=1;this.sC=this.$b=B;this.Nl=0;this.kW=this.JV=this.bX=B;this.qC=this.eO=m;this.camera=this.mN=this.lN=this.ug=q;this.enabled=B;this.Qe=0;this.DO=l}a.prototype.clone=function(){var b=new a;b.Na=this.Na;b.pitch=this.pitch;b.He=this.He;b.ue=this.ue;b.Ph=this.Ph;b.width=this.width;b.height=this.height;b.TV=this.TV;b.eN=this.eN;b.Kj=this.Kj;b.$b=this.$b;b.sC=
this.sC;b.Nl=this.Nl;b.bX=this.bX;b.kW=this.kW;b.JV=this.JV;b.eO=this.eO;b.qC=this.qC;b.ug=this.ug;b.lN=this.lN;b.mN=this.mN;b.camera=this.camera;b.enabled=this.enabled;b.Qe=this.Qe;b.DO=this.DO;return b};return a});
define("du","require,jquery.mod,dY,nU,mk,bg,ez".split(","),function(a){function b(a){this.aba=a;this.element=document.createElement("div");this.gba=document.createElement("span");this.element.appendChild(this.gba);this.gba.innerHTML=a.text.split("<br>").join("\n").split("\n").map(c).join("<br>");this.WV=B}function d(a){this.K=a;this.DM=f.throttle(this.DM.bind(this),100);this.EM=f.throttle(this.EM.bind(this),100);this.ea=document.createElement("div");this.ea.style.position="absolute";this.ea.style.left=
0;this.ea.style.top=0;this.ea.style.right=0;this.ea.style.bottom=0;this.ea.style.zIndex=1;this.ea.style.cursor="inherit";this.ea.style.display="none";this.HZ=g(this.ea);this.il=document.createElement("div");this.il.style.position="absolute";this.il.style.left=0;this.il.style.right=0;this.il.style.zIndex=1;this.il.style.cursor="inherit";this.ea.appendChild(this.il);this.Xx=q;this.aG=[];this.Fh=[];this.f5={};this.pG=e.ac;this.K.bind(i.u("subtitlesEnabled"),this.hG,this);d.Ica.forEach(function(a){this.K.bind(i.u(a),
this.DM,this)}.bind(this));d.Jca.forEach(function(a){this.K.bind(i.u(a),this.EM,this)}.bind(this));this.hG();this.DM();this.EM()}function c(a){k.innerHTML=a;return k.innerText}var g=a("jquery.mod"),f=a("dY"),i=a("nU"),e=a("mk"),j=a("bg"),o=a("ez");d.prototype.clear=function(){this.Raa(q);if(this.K){this.K.unbind(i.u("subtitlesEnabled"),this.hG,this);d.Ica.forEach(function(a){this.K.unbind(i.u(a),this.DM,this)}.bind(this));d.Jca.forEach(function(a){this.K.unbind(i.u(a),this.EM,this)}.bind(this));this.K=
q}};d.prototype.Lc=S("HZ");d.prototype.Raa=function(a){if(this.Xx!=a){this.Xx&&this.Xx.unbind(i.u("activeSubtitles"),this.s4,this,m);(this.Xx=a)&&this.Xx.bind(i.u("activeSubtitles"),this.s4,this,m);this.s4()}};d.prototype.s4=function(){this.fKa(this.Xx&&this.Xx.get("activeSubtitles")||[])};d.prototype.hG=function(){this.N=this.K.get("subtitlesEnabled");this.y8()};d.prototype.DM=function(){this.pG=this.$I("subtitlesVerticalAlign",[e.ic,e.zd,e.ac],e.ac);this.il.style["text-align"]=this.$I("subtitlesHorizontalAlign",
[e.Ja,e.Xa,e.ae],e.ae);this.il.style.bottom=this.pG==e.ac?this.ak("subtitlesBottom",0):"";this.il.style.top=this.pG==e.ic?this.ak("subtitlesTop",0):this.pG==e.zd?"50%":"";this.il.style.transform=this.pG==e.zd?"translate(0, -50%)":"";this.y8()};d.prototype.EM=function(){var a={};a["background-color"]=this.w2("subtitlesBackgroundColor","subtitlesBackgroundOpacity");a.border=[this.ak("subtitlesBorderSize"),"solid",this.Yh("subtitlesBorderColor")].join(" ");a["box-shadow"]=this.Yh("subtitlesShadow",B)?
[this.ak("subtitlesShadowHorizontalLength"),this.ak("subtitlesShadowVerticalLength"),this.ak("subtitlesShadowBlurRadius"),this.w2("subtitlesShadowColor","subtitlesShadowOpacity","#000000",0)].join(" "):"";a.display="inline-block";a["font-family"]=o.$u(this.Yh("subtitlesFontFamily"));a["font-size"]=this.ak("subtitlesFontSize");a.color=this.Yh("subtitlesFontColor");a["font-weight"]=this.$I("subtitlesFontWeight",["bold","bolder","lighter","100","200","300","400","500","600","700","800","900","normal"],
"normal");a["font-style"]=this.$I("subtitlesFontStyle",["italic","normal"],"normal");a["margin-bottom"]=this.ak("subtitlesGap");a.opacity=this.Yh("subtitlesOpacity");a["padding-top"]=this.ak("subtitlesPaddingTop");a["padding-bottom"]=this.ak("subtitlesPaddingBottom");a["padding-left"]=this.ak("subtitlesPaddingLeft");a["padding-right"]=this.ak("subtitlesPaddingRight");a.position="relative";a["text-align"]=this.$I("subtitlesHorizontalAlign",["left","right","center"],"center");a["text-decoration"]=this.Yh("subtitlesTextDecoration",
["underline","overline","line-through","none"],"none");a["text-shadow"]=[this.ak("subtitlesTextShadowHorizontalLength"),this.ak("subtitlesTextShadowVerticalLength"),this.ak("subtitlesTextShadowBlurRadius"),this.w2("subtitlesTextShadowColor","subtitlesTextShadowOpacity","#000000",0)].join(" ");this.f5=a;this.iza()};d.prototype.fKa=function(a){this.aG=a;this.y8()};d.prototype.y8=function(){for(var a=this.N?this.aG:[],c=this.Fh.length-1;c>=0;c--){var f=this.Fh[c];if(a.indexOf(f.aba)>=0)break;this.il.removeChild(f.element)}for(var d=
[],g=B;c>=0;c--){f=this.Fh[c];if(!f.WV&&a.indexOf(f.aba)<0){f.WV=m;f.element.style.visibility="hidden";g=m}d.splice(0,0,f)}g&&j.yb(this.vfa,this);this.Fh=d;var o=this.Fh.filter(function(a){return!a.WV}).map(function(a){return a.aba});a.filter(function(a){return o.indexOf(a)<0}).forEach(function(a){a=new b(a);this.uea(a);this.pG==e.ac&&this.Fh.length>0?this.il.insertBefore(a.element,this.Fh[this.Fh.length-1].element):this.il.appendChild(a.element);this.Fh.push(a)}.bind(this));this.ea.style.display=
this.Fh.length>0?"block":"none"};d.prototype.vfa=function(a){for(var b=B,a=Math.round(200*a/1E3),c=0;c<this.Fh.length;c++){var e=this.Fh[c];if(e.WV){b=m;if(a>=e.element.clientHeight){a=a-e.element.clientHeight;this.il.removeChild(e.element);this.Fh.splice(c,1);c--}else{e.element.style.height=e.element.clientHeight-a+"px";break}}}b&&j.yb(this.vfa,this)};d.prototype.iza=function(){this.Fh.forEach(this.uea.bind(this))};d.prototype.uea=function(a){for(var b in this.f5)a.gba.style[b]=this.f5[b]};d.prototype.Yh=
function(a,b){return this.K.get(a,b)};d.prototype.ak=function(a,b){var c=this.K.get(a,b);isNaN(c)||(c=Math.round(c)+"px");return c};d.prototype.$I=function(a,b,c){a=this.K.get(a);return b.indexOf(a)<0?c:a};d.prototype.w2=function(a,b,c,e){a=this.K.get(a,c);b=this.K.get(b,e);return"rgba("+parseInt("0x"+a.substr(1,2))+", "+parseInt("0x"+a.substr(3,2))+", "+parseInt("0x"+a.substr(5,2))+", "+b+")"};d.Ica=["subtitlesHorizontalAlign","subtitlesVerticalAlign","subtitlesTop","subtitlesBottom"];d.Jca=["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 k=document.createElement("div");return d});
define("kP",["require","kG","nU","du"],function(a){var b=a("kG"),d=a("nU"),c=a("du"),a=b.extend(c,function(a,b){c.call(this,a);this.uc=b;this.uc.bind(d.u("panorama"),this.J4,this);this.J4()});a.prototype.clear=function(){this.uc&&(this.uc.unbind(d.u("panorama"),this.J4,this),this.uc=q);c.prototype.clear.call(this)};a.prototype.J4=function(){this.Raa(this.uc.get("panorama"))};return a});
define("kj",["require","t"],function(a){var b=a("t"),a={},d=180/Math.PI,c=Math.PI/180;a.Dl=function(a,b,c){return this.XB(a,b,c)};a.zs=function(a,b,c){return this.XB(a,c,b)};a.XB=function(a,b,i){return 2*Math.atan(i*Math.tan(0.5*a*c)/b)*d};a.AVa=function(a){return b.browser()==b.EH?Math.max(a,20):a};return a});define("dw",["require"],function(){return{Cs:0,Ja:1,Xa:2}});
define("db",["require"],function(){function a(a,b){this.h=a;this.DF=b;this.Xf=new THREE.CustomRenderPass(b);this.Xf.renderToScreen=B;this.jU=new THREE.SavePass;this.jU.enabled=m;this.gw=new THREE.ShaderPass(THREE.BlendShader,"tDiffuse1");this.gw.uniforms.tDiffuse2.value=this.jU.renderTarget.texture;this.gw.uniforms.mixRatio.value=0.8;this.gw.renderToScreen=m;this.gw.enabled=m;this.tla=new THREE.ShaderPass(THREE.CopyShader);this.tla.renderToScreen=m;this.dm=new THREE.EffectComposer(a);this.dm.addPass(this.Xf);
this.dm.addPass(this.gw);this.dm.addPass(this.jU);this.dm.addPass(this.tla);this.pw=this.qw=l}var b=new THREE.Vector2;a.prototype.destroy=function(){this.dm=this.gw=this.jU=this.Xf=this.DF=this.h=q};a.prototype.start=function(){this.gw.uniforms.mixRatio.value=0;this.M1=3};a.prototype.render=function(a,c){this.h.getSize(b);if(this.qw!==b.width||this.pw!==b.height)this.qw=b.width,this.pw=b.height,this.dm.setSize(this.qw,this.pw);this.Xf.scene=a;this.Xf.camera=c;0<this.M1&&(this.M1--,0===this.M1&&(this.gw.uniforms.mixRatio.value=
0.65));this.dm.render()};return a});
define("iP",["require"],function(){function a(a,b){this.h=a;this.DF=b;this.dm=new THREE.EffectComposer(a);this.Xf=new THREE.CustomRenderPass(b);this.Xf.renderToScreen=B;this.dm.addPass(this.Xf);this.cR=new THREE.ShaderPass(THREE.FXAAShader);this.dm.addPass(this.cR);this.pw=this.qw=l}var b=new THREE.Vector2;a.prototype.destroy=function(){this.dm=this.cR=this.Xf=this.DF=this.h=q};a.prototype.render=function(a,c){this.h.getSize(b);if(this.qw!==b.width||this.pw!==b.height)this.qw=b.width,this.pw=b.height,
this.dm.setSize(this.qw,this.pw),this.cR.material.uniforms.resolution.value.x=1/this.qw,this.cR.material.uniforms.resolution.value.y=1/this.pw;this.Xf.scene=a;this.Xf.camera=c;this.dm.render()};return a});
define("kp",["require","db","iP"],function(a){function b(a,f){this.h=a;this.DF=f;this.oS=new d(a,f);this.Q1=new c(a,f);this.NQ=b.NONE}var d=a("db"),c=a("iP");b.Wba="fxaa";b.bZ="motionBlur";b.NONE="none";b.prototype.destroy=function(){this.oS.destroy();this.oS=q;this.Q1.destroy();this.DF=this.h=this.Q1=q};b.prototype.vaa=function(a){this.NQ!=a&&(this.NQ=a,this.NQ==b.bZ&&this.oS.start())};b.prototype.render=function(a,c){switch(this.NQ){case b.Wba:this.Q1.render(a,c);break;case b.bZ:this.oS.render(a,
c);break;default:this.DF(this.h,a,c,q,B)}};return b});define("kc",["require","hy"],function(a){function b(){this.status=b.gP;this.aaa=this.BC=0;this.$$=[]}a("hy");b.LOADING="loading";b.U="loaded";b.gP="not loaded";return b});
define("kC","require,dY,kG,cs,nU,jR,kc".split(","),function(a){function b(){this.Ega={};this.Qd=[];this.gx=[];this.bd={}}var d=a("dY"),c=a("kG");a("cs");var g=a("nU"),f=a("jR"),i=a("kc");b.prototype.MX=function(a){for(var a=a.ks(),b=0,c=a.length;b<c;b++)if(this.ZI(a[b]).status!=i.U)return B;return m};b.prototype.ko=function(a,b){this.Qd.push(a);this.wya(a,b)};b.prototype.Mj=function(a,b){var c=d(this.Qd).indexOf(a);c<0&&h("Unloading item not loaded");this.Qd.splice(c,1);this.rIa(a,b)};b.prototype.jf=
function(a,b){return this.bd[a].jf(b)};b.prototype.wya=function(a,b){this.gx.push(a);for(var c=a.ks(),f=0,d=c.length;f<d;f++){var g=c[f],p=this.ZI(g);p.BC++;p.$$.push(b);if(p.status==i.gP){p.status=i.LOADING;this.QFa(g,Math.min.apply(Math,p.$$))}}this.ipa()};b.prototype.rIa=function(a,b){this.gx=d(this.gx).without(a);for(var c=a.ks(),f=0,g=c.length;f<g;f++){var r=c[f],p=this.ZI(r);p.BC--;var t=p.$$,s=t.indexOf(b);s>=0&&t.splice(s,1);if(p.BC==0&&p.status!=i.gP){p.status=i.gP;p.aaa=0;this.YLa(r)}}};
b.prototype.ipa=function(a){for(var a=(a==l?this.gx:this.Aha(a)).slice(),b=0;b<a.length;b++){for(var c=a[b],f=c.ks(),g=0,r=0,p=f.length,t=0;t<f.length;t++){var s=this.ZI(f[t]),g=g+s.aaa;s.status==i.U&&r++}c.uSa(g/p);if(r==p){c.Daa();this.gx=d(this.gx).without(c)}}};b.prototype.ZI=function(a){var b=this.Ega[a];b||(this.Ega[a]=b=new i);return b};b.prototype.Aha=function(a){for(var b=[],c=0;c<this.gx.length;c++){var f=this.gx[c];d(f.ks()).contains(a)&&b.push(f)}return b};b.prototype.QFa=function(a,b){var c=
new f(b);this.bd[a]=c;c.bind(g.U,this.wK,this,m);c.bind(g.zc,this.xK,this,m);c.load(a)};b.prototype.YLa=function(a){var b=this.bd[a];delete this.bd[a];b.unbind(g.U,this.wK,this);b.unbind(g.zc,this.xK,this);b.cancel()};b.prototype.wK=function(a){var a=a.source.pi(),b=this.ZI(a);b.aaa=100;b.status=i.U;this.ipa(a)};b.prototype.xK=function(a){for(var a=a.source.pi(),b=this.Aha(a),f=0;f<b.length;f++){var d=b[f];this.Mj(d);d.TRa()}c.log("Error loading: "+a)};b.Zd=new b;return b.Zd});
define("mQ",["require","kC","gZ","t"],function(a){var b=a("kC"),d=a("gZ"),c=a("t"),g={c4:l,xSa:R("c4"),R0:l,QRa:R("R0"),createTexture:function(){var a=new THREE.Texture;a.image=g.RG();a.userData={};a.userData.Sva={};return a},ZNa:function(a){a.image!=this.RG()&&(a.image=this.RG(),a.needsUpdate=m)},TX:function(a,b){b=this.EOa(b);a.generateMipmaps=this.aAa(b);if(a.generateMipmaps)a.minFilter=THREE.LinearMipMapLinearFilter,a.anisotropy=Math.min(this.ZCa(b),c.Xra().tta),!d.Psa(b.width)||!d.Psa(b.height)?
(a.fr||(a.fr=document.createElement("canvas"),a.fr.YU=m),a.image=a.fr,a.fr.Fa=b,a.image.width=d.Kra(b.width),a.image.height=d.Kra(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,d.ON(b)&&d.lwa(b)){a.ap||(a.ap=document.createElement("canvas"),a.iFa=a.ap.getContext("2d"),a.ap.YU=m);var e=b.videoWidth;d.Xm()&&(e=Math.min(4096,e));var j=e*b.videoHeight/b.videoWidth;if(a.ap.width!=e||a.ap.height!=j)a.ap.width=e,a.ap.height=
j;b.readyState>=b.HAVE_CURRENT_DATA&&a.iFa.drawImage(b,0,0,e,j);a.image=a.ap}else a.image=b;a.fr&&a.image!=a.fr&&(g.bW(a.fr),delete a.fr);a.needsUpdate=m;if((e=g.i$(a))&&e.isShaderMaterial)e.needsUpdate=m;d.Dsa()},EOa:function(a){a?d.z$(a)?a=b.jf(a,B):d.Tsa(a)?a=this.RG():d.ON(a)&&!(a.readyState>=a.HAVE_CURRENT_DATA&&0<a.videoWidth&&0<a.videoHeight)&&(a=this.RG()):a=this.RG();return a},iOa:function(a,b,c,g,o){var k=document.createElement("canvas");k.width=d.Xs();k.height=d.Xs();k.YU=m;var n=k.getContext("2d");
if(!n)return q;n.drawImage(a,b,c,g,o,0,0,d.Xs(),d.Xs());this.hW(k);return k},bW:function(a){d.Fsa(a)&&a.YU&&(delete a.YU,a.width=0,a.height=0)},dispose:function(a){a.ap&&a.ap!=a.image&&this.bW(a.ap);a.image&&this.bW(a.image);a.dispose()},UX:function(a,b,c){b?(a.loa=m,a.koa=c||1):(delete a.loa,delete a.koa)},ZCa:function(a){return a&&a.koa||1},$Sa:function(a,b){a.userData.Sva.material=b},i$:function(a){return a.userData.Sva.material},NNa:function(a){return d.y$(a)},Pqa:function(a){d.z$(a)&&(a=b.jf(a,
B));d.y$(a)&&this.hW(a)},hW:function(a){var b=document.createElement("canvas");b.width=1;b.height=1;var c=b.getContext("2d");g.hW=function(a){c.drawImage(a,0,0,1,1,0,0,1,1)};return g.hW(a)},N0:q,RG:function(){if(!this.N0){var a=document.createElement("canvas");a.width=128;a.height=128;a.uFa=m;a.getContext("2d").clearRect(0,0,a.width,a.height);this.N0=a}return this.N0},aAa:function(a){if(d.wQa(a))return B;if(d.Fsa(a))return!!a.loa;if(c.ob()){if(this.c4!==l)return this.c4}else if(this.R0!==l)return this.R0;
return B}};return g});
define("cn",["require","gZ","mQ"],function(a){function b(a){this.JO=(a=d.ty(a))&&d.ssa();this.KN=a&&d.rsa();this.ly=0;this.Vr=l;this.hN=this.iN=0;this.premultipliedAlpha=B;this.side=l;this.params={}}var d=a("gZ"),c=a("mQ"),g={Z9:function(a){return a.map||a.uniforms&&a.uniforms.texture&&a.uniforms.texture.value},ny:function(a,b){a||(a=c.createTexture());b||(b=new g.kn);var e;e=b.vRa()?this.fOa(a,b):this.z9(a);b.side&&(e.side=b.side);for(var d in b.params)e[d]=b.params[d];return e},z9:function(a){var b=
new THREE.MeshBasicMaterial;b.map=a;this.Bz(b);return b},fOa:function(a,b){var c={uniforms:{},transparent:m};c.uniforms.texture={type:"sampler2D",value:a};a.flipY=!b.JO;c.vertexShader=["varying vec2 vUV;\nvoid main() {","\tvUV = vec2( uv.x, "+(b.JO?"1.0 - uv.y":"uv.y")+");","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"].join("\n");if(b.KN||b.ly||b.Vr||b.premultipliedAlpha){var d=[],g=[],d=d.concat(["uniform sampler2D texture;","uniform float opacity;","varying vec2 vUV;"]);
c.uniforms.opacity={type:"float",value:1};g=g.concat(["   vec4 color = texture2D(texture, vUV);","   float alpha = color.a * opacity;"]);b.premultipliedAlpha&&(g=g.concat(["   if (color.a > 0.0)","       color.rgb /= color.a;"]));if(b.ly){var k=a.image.width||a.image.videoWidth,n=a.image.height||a.image.videoHeight,r=0.5*Math.min(k,n)*b.ly;c.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(r/k,r/n)};d=d.concat(["uniform vec2 blendingLimit;"]);g=g.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.Vr&&
(c.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(b.Vr.substr(1,2),16)/255,parseInt(b.Vr.substr(3,2),16)/255,parseInt(b.Vr.substr(5,2),16)/255)},c.uniforms.chromaThreshold={type:"f",value:b.iN},c.uniforms.chromaSmoothing={type:"f",value:b.hN},d=d.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),g=g.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("{")));
g=g.concat(["\tgl_FragColor = vec4(color"+(b.KN?".bgr":".rgb")+", alpha);"]);a.format=THREE.RGBAFormat;c.fragmentShader=[].concat(d,["void main() {"],g,["}"]).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.Bz(c);return c},dispose:function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){var b=g.Z9(a);b&&c.dispose(b);a.dispose()})},Bz:function(a){a.side=THREE.FrontSide;
a.transparent=m;a.depthTest=B;a.needsUpdate=m;a.userData={};a.userData.ota={};c.$Sa(g.Z9(a),a)},Faa:function(a,b){a.userData.ota.lo=b},Era:function(a){return a.userData.ota.lo}};b.prototype.vRa=function(){return this.JO||this.KN||this.ly||this.Vr||this.premultipliedAlpha};b.prototype.isEqual=function(a){return this.JO===a.JO&&this.KN===a.KN&&this.ly===a.ly&&this.Vr===a.Vr&&this.iN===a.iN&&this.hN===a.hN&&this.premultipliedAlpha===a.premultipliedAlpha&&this.side===a.side};g.kn=b;return g});
define("ef",["require","iA","cn"],function(a){function b(a){return Array.isArray(a)?a:a?[a]:[]}var d=a("iA"),c=a("cn"),g={create:function(a,d){var e=new THREE.Mesh(a,d);e.overdraw=B;e.matrixAutoUpdate=B;e.userData.jv={};e.userData.jv.attributes={};b(d).forEach(function(a){c.Faa(a,e)});return e},Kqa:function(a){var b=new THREE.Group;g.forEach(a,function(a){b.add(a)});return b},wSa:function(a,d){b(d).forEach(function(a){c.Faa(a,q)});c.dispose(a.material);a.material=d;b(d).forEach(function(b){c.Faa(b,
a)})},ry:function(a){return b(a.material)},ePa:function(a,b){if(a.layers.mask&b.layers.mask){var c=g.ry(a);return d.dPa(a.geometry,b,a.matrixWorld).map(function(a){return c[a]})}return[]},zaa:function(a,b){a.geometry=b},aPa:function(a,b){var e=[];g.Ej(a,function(a){var f=g.ry(a);b.forEach(function(b){var g=d.$Oa(a.geometry,a.matrixWorld,b);if(g){var i=c.Z9(f[g.materialIndex]),b=i.image;b==i.fr&&(b=i.fr.Fa);i=Math.round(g.awa*b.width-0.5);i=0>i?0:i>b.width-1?b.width-1:i;g=Math.round((1-g.hwa)*b.height-
0.5);g=0>g?0:g>b.height-1?b.height-1:g;e.push({x:i,y:g,source:b})}})});return e},uH:function(a,b){g.forEach(a,function(a){b?b.add(a):a.parent&&a.parent.remove(a)})},Jy:"panoramaId",RC:"panoramaFrameId",ZX:"panoramaOverlayId",YX:"levelIndex",setAttribute:function(a,b,c){g.Ej(a,function(a){a.userData.jv.attributes[b]=c})},getAttribute:function(a,b){return a.userData.jv.attributes[b]},dra:function(a,b,c){for(var d=[],g=0,k=a.length;g<k;g++){var n=a[g];n.userData.jv.attributes[b]!==c&&d.push(n)}return d},
dW:function(a,b,c){for(var d=[],g=0,k=a.length;g<k;g++){var n=a[g];n.userData.jv.attributes[b]===c&&d.push(n)}return d},Zra:function(a,b){for(var c={},d=0,g=a.length;d<g;d++){var k=a[d],n=k.userData.jv.attributes[b];n!==l&&(c[n]||(c[n]=[])).push(k)}return c},nW:function(a){a=a.userData.jv.alpha;return a===l?1:a},Ve:function(a,b){g.Ej(a,function(a){a.userData.jv.alpha=b;g.ry(a).forEach(function(a){a.opacity=b;"ShaderMaterial"==a.type&&a.uniforms&&a.uniforms.opacity&&(a.uniforms.opacity.value=b)})})},
Yp:function(a,b){g.Ej(a,function(a){a.matrix.copy(b);a.matrixWorldNeedsUpdate=m})},Wra:function(a){return a.renderOrder},FX:function(a,b){g.forEach(a,function(a){a.renderOrder=b})},dispose:function(a){g.Ej(a,function(a){a.geometry&&(a.geometry.dispose(),a.geometry=l);a.material&&(c.dispose(a.material),a.material=l)})},zk:function(a){var b=[];g.Ej(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)},Ej:function(a,
b){if(Array.isArray(a))for(var c=0,d=a.length;c<d;c++)g.Ej(a[c],b);else if(a&&a.children){c=0;for(d=a.children.length;c<d;c++)g.Ej(a.children[c],b)}a&&a.isObject3D&&a.isMesh&&b(a)}};return g});
define("V",["require","ef"],function(a){var b=a("ef");return{zk:function(a){var c=[];a.children&&a.children.forEach(function(a){b.Ej(a,function(a){a.userData&&a.userData.jv&&c.push(a)})});return c},uaa:function(a,b){a.userData.cameras=b},O9:function(a){return a.userData.cameras||[]},hC:function(a){return a.userData.cameras&&0<a.userData.cameras.length&&a.userData.cameras[0]||q}}});
define("bi","require,bu,t,dw,V,gZ".split(","),function(a){var b=a("bu");a("t");var d=a("dw"),c=a("V"),g=a("gZ"),f=180/Math.PI;return{mxa:function(a,b){var d,f;this.setSize=function(b,c){if(d!=b||f!=c){d=b;f=c;a.setSize(b,c)}};this.fd=function(){return d};this.Td=function(){return f};this.start=function(k){c.uaa(k,[b]);d&&f&&a.setSize(d,f);a.setPixelRatio(g.getPixelRatio())};this.stop=I();this.fov=function(){return b.fov};this.mba=I();this.camera=function(){return b};this.render=function(c,d,f){a.setRenderTarget(d);
f&&a.clear();a.render(c,b)}},Nxa:function(a,e){var g,o,k,n,r=new THREE.Vector2,p=new THREE.PerspectiveCamera;p.layers.enable(d.Ja);var t=new THREE.PerspectiveCamera;t.layers.enable(d.Xa);this.start=function(e){a.getSize(r);g=a.getPixelRatio();o=r.width;k=r.height;n=a.getContext().getParameter(a.getContext().FRAMEBUFFER_BINDING);var d=b.uW();d.tN&&a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,d.tN);a.setClearColor(0,1);a.setDrawingBufferSize(d.ho,d.Vm,d.iW);c.uaa(e,[p,t])};this.stop=function(){a.getContext().bindFramebuffer(a.getContext().FRAMEBUFFER,
n);a.setClearColor(0,0);a.setDrawingBufferSize(o,k,g)};this.setSize=function(a,b){o=a;k=b};this.fd=function(){return o};this.Td=function(){return k};this.fov=function(){return t.fov};this.camera=function(){return t};this.mba=function(){e.updateProjectionMatrix();e.updateMatrixWorld();b.cs().views.forEach(function(a){var c=a.eye==b.ln.Ja?p:a.eye==b.ln.Xa?t:q;if(c){e.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,e,d){var f=c.J$;if(f){c.updateMatrixWorld();c.J$=B}if(e){a.setRenderTarget(e);e.scissorTest=m}else{a.setRenderTarget(q);a.setScissorTest(m)}(a.autoClear||d)&&a.clear();b.cs().views.forEach(function(d){var f=d.eye==b.ln.Ja?p:d.eye==b.ln.Xa?t:q;if(f){if(e){e.viewport.set(d.viewport.x,d.viewport.y,d.viewport.width,d.viewport.height);e.scissor.set(d.viewport.x,d.viewport.y,d.viewport.width,d.viewport.height)}else{a.setViewport(d.viewport.x,
d.viewport.y,d.viewport.width,d.viewport.height);a.setScissor(d.viewport.x,d.viewport.y,d.viewport.width,d.viewport.height)}a.render(c,f)}});a.getSize(r);if(e){e.viewport.set(0,0,r.width,r.height);e.scissor.set(0,0,r.width,r.height);e.scissorTest=B;a.setRenderTarget(q)}else{a.setViewport(0,0,r.width,r.height);a.setScissorTest(B)}if(f)c.J$=m}},Gxa:function(a,b){var f,o,k=1,n=new THREE.WebGLCubeRenderTarget(1024),r=new THREE.CubeCamera(0.1,1E4,n);r.layers.enable(d.Cs);r.layers.enable(d.Ja);n=new THREE.ShaderMaterial;
n.uniforms={tCube:{value:r.renderTarget.texture},tFlip:{value:1},opacity:{value:1}};n.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";n.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";
n.side=THREE.BackSide;n.depthWrite=B;n.transparent=m;n.depthTest=B;n.needsUpdate=m;var p=new THREE.Mesh(new THREE.SphereGeometry(5,64,64),n);p.overdraw=B;p.matrixAutoUpdate=B;p.renderOrder=1E3;var t=new THREE.Matrix4;this.JC=function(a){k=a};this.setSize=function(b,c){if(f!=b||o!=c)a.setSize(f=b,o=c)};this.fd=function(){return f};this.Td=function(){return o};this.start=function(d){d.add(p);d.add(r);d.traverse(function(a){if(a.layers.test(r.layers)){a.userData.E$=a.layers.mask;a.layers.mask=r.layers.mask}});
r.visible=m;p.visible=m;c.uaa(d,[b]);a.setClearColor(16777215,1);a.setPixelRatio(g.getPixelRatio());f&&o&&a.setSize(f,o)};this.stop=function(b){a.setClearColor(0,0);b.traverse(function(a){if(a.userData.E$!==l){a.layers.mask=a.userData.E$;delete a.userData.E$}});r.visible=B;p.visible=B;b.remove(p);b.remove(r)};this.fov=function(){return b.fov};this.mba=function(){if(k>0){p.matrix.copy(b.matrixWorld);p.matrix.multiply(t.makeTranslation(0,0,-k*5));p.matrixWorldNeedsUpdate=m}};this.camera=function(){return b};
var s=0;this.render=function(c,d,f){if(k>0){s++;if(!g.fQa()||s%10==0){g.JRa();p.visible=B;r.update(a,c);p.visible=m}}a.setRenderTarget(d);f&&a.clear();a.render(c,b)}}}});
define("eu","require,jquery.mod,lN,kj,mL,dw,kp,bi,iA,gZ,bu".split(","),function(a){function b(){this.ea=d("<div/>");this.ea.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,cursor:"inherit"});this.oa=new THREE.PerspectiveCamera(90,16/9,0.1,2*o.of);this.oa.layers.enable(i.Ja);this.yQ=new THREE.PerspectiveCamera;this.Aa=new THREE.Scene;this.Sfa=new THREE.Scene;this.Tfa=new THREE.Scene;window.DUa=THREE;this.Aa.add(this.oa);this.vt=this.ww=this.h=q;this.JA=0;this.tu=this.Nf=this.d7=
this.T8=q;this.nja=this.x0=B}var d=a("jquery.mod"),c=a("lN"),g=a("kj"),f=a("mL"),i=a("dw"),e=a("kp"),j=a("bi"),o=a("iA"),k=a("gZ"),n=a("bu");b.prototype.io=S("Aa");b.prototype.hC=S("yQ");b.prototype.GOa=function(){return this.Nf.fov(this.oa)};b.prototype.getPixelRatio=function(){return this.h.getPixelRatio()};b.prototype.Lc=S("ea");b.prototype.JOa=function(){return this.h?this.h.domElement.width:this.ea.width()};b.prototype.IOa=function(){return this.h?this.h.domElement.height:this.ea.height()};b.prototype.mg=
function(){return this.h.domElement};b.prototype.update=function(a){this.KMa(a);this.nMa(a);this.tk(a);this.HMa(a)};var r=[new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,0,-1),new THREE.Vector3(0,0,1),new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0)],p=[new THREE.Vector3(-1,0,0),new THREE.Vector3(1,0,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,-1,0),new THREE.Vector3(0,0,1),new THREE.Vector3(0,0,-1)],r=[new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,
0,-1),new THREE.Vector3(0,0,1),new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0)],p=[new THREE.Vector3(1,0,0),new THREE.Vector3(-1,0,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,-1,0),new THREE.Vector3(0,0,1),new THREE.Vector3(0,0,-1)];b.prototype.fN=function(a){var b=this.Nf,c=this.Nf.fd(),e=this.Nf.Td();b.stop();this.h.setPixelRatio(1);this.h.setSize(a,a);var d=new THREE.PerspectiveCamera(90,1,this.oa.near,this.oa.far);d.layers=this.oa.layers;d.visible=m;this.Aa.add(d);for(var f=[],g=0;g<6;g++){var j=
document.createElement("canvas");j.width=j.height=a;var o=j.getContext("2d");d.up.copy(r[g]);d.lookAt(p[g]);d.updateProjectionMatrix();d.updateMatrixWorld();this.h.clear();this.h.render(this.Aa,d);o.save();o.scale(-1,1);o.drawImage(this.h.domElement,0,0,-a,a);o.restore();f.push(j)}this.Aa.remove(d);this.Nf=b;this.Nf.start(this.Aa);this.Nf.setSize(c,e);this.xL();return f};b.prototype.render=function(){this.xL()};b.prototype.KMa=function(a){if(a.enabled){this.JA=(new Date).getTime();this.h||this.pKa(a);
if(a.$b&&n.Ee()==n.sD.Sl)this.nja=m;n.zX(this.h.getContext())}if(this.x0=a.enabled&&!a.$b){this.ww.setSize(a.width,a.height);this.vt.setSize(a.width,a.height)}};b.prototype.pKa=function(a){if(!this.h&&a.enabled){for(;t.length>=s;){t.sort(function(a,b){return a.JA-b.JA});t[0].rAa()}t.push(this);var b=this.Lc().get(0);this.ww=new THREE.CSS3DRenderer;this.ww.domElement.style.position="absolute";this.ww.domElement.style.zIndex=0;b.appendChild(this.ww.domElement);var d={precision:"mediump",alpha:m};if(t.length==
1&&a.$b){a=n.lC();d.context=a;d.canvas=a.canvas}else{d.canvas=document.createElement("canvas");d.context=k.A9(d.canvas,a.JV)}this.h=new THREE.WebGLRenderer(d);this.h.debug.checkShaderErrors=c.UO;this.h.domElement.style.position="absolute";this.h.domElement.style.zIndex=1;this.h.domElement.style.pointerEvents="none";this.h.setClearColor(0,0);b.appendChild(this.h.domElement);this.vt=new THREE.CSS3DRenderer;this.vt.domElement.style.position="absolute";this.vt.domElement.style.zIndex=2;this.vt.domElement.style.pointerEvents=
"none";b.appendChild(this.vt.domElement);this.tu=new e(this.h,function(a,b,c,e,d){this.nja&&this.h.resetState();this.Nf.render(b,e,d)}.bind(this));this.d7=new j.mxa(this.h,this.oa);this.$na=new j.Gxa(this.h,this.oa);this.T8=new j.Nxa(this.h,this.oa);n.yG(this.h.getContext())}};b.prototype.rAa=function(){if(this.h){t.splice(t.indexOf(this),1);this.Nf=this.d7=this.T8=q;this.tu.destroy();this.tu=q;n.nX(this.h.getContext());var a=this.Lc().get(0);a.removeChild(this.vt.domElement);this.vt=q;a.removeChild(this.h.domElement);
this.h.dispose();this.h=q;a.removeChild(this.ww.domElement);this.ww=q}};b.prototype.tk=function(a){this.oa.quaternion.copy(f.nra(a.Na,a.pitch,a.He));this.oa.fov=g.Dl(a.ue,a.width,a.height);this.oa.aspect=a.width/a.height;this.oa.updateProjectionMatrix();this.oa.updateMatrixWorld();this.Nf&&this.Nf.mba();this.Nf&&this.yQ.copy(this.Nf.camera());this.yQ.updateProjectionMatrix();this.yQ.updateMatrixWorld();this.Aa.J$===m&&this.Aa.updateMatrixWorld()};b.prototype.nMa=function(a){var b=a.$b?this.T8:a.Nl>
0?this.$na:this.d7;if(this.Nf!=b){this.Nf&&this.Nf.stop(this.Aa);(this.Nf=b)&&this.Nf.start(this.Aa)}if(this.Nf){this.Nf.setSize(a.width,a.height);this.Nf==this.$na&&this.Nf.JC(a.Nl)}};b.prototype.HMa=function(a){this.tu&&(a.bX?this.tu.vaa(e.bZ):a.kW&&!a.$b?this.tu.vaa(e.Wba):this.tu.vaa(e.NONE))};b.prototype.xL=function(){this.tu&&this.tu.render(this.Aa,this.oa);if(this.x0){this.ww.render(this.Sfa,this.oa);this.vt.render(this.Tfa,this.oa)}};var t=[],s=10;return b});
define("iy",["require","kG","fQ","gZ"],function(a){var b=a("kG"),d=a("fQ"),c=a("gZ"),a=b.extend(d,function(){d.call(this);this.aa=this.ta=q;this.Bd=[];this.BR=this.Gf=B;this.hK=q;this.bk=[this];this.Qr={};this.Pq={};this.gJ=B;this.O5={};this.P5={};this.Jo(["blendingActive","globalBlendingActive"]);this.nya();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",
B);this.set("index",0)});a.prototype.nya=function(){var a="alpha,deltaYaw,deltaPitch,deltaRoll,translationX,translationY,translationZ".split(",");Array.isArray(a)||(a=[a]);a.forEach(function(a){this.O5[a]=m}.bind(this))};a.prototype.Jo=function(a){Array.isArray(a)||(a=[a]);a.forEach(function(a){this.P5[a]=m}.bind(this))};a.prototype.set=function(a,b){this.Qr[a]!==b&&(this.P5[a]&&this.Bd.forEach(function(c){c.set(a,b)}),this.Tya(a,b),this.GL(a))};a.prototype.get=function(a){return this.Qr[a]};a.prototype.GL=
function(a){this.Pq[a]||(this.Pq[a]=m,this.gJ||(this.gJ=m,this.wa()),this.O5[a]&&this.Bd.forEach(function(b){b.GL(a)}))};a.prototype.tAa=function(){this.gJ&&(this.gJ=B,this.Pq={})};a.prototype.D=function(){if(this.gJ)for(var a=0;a<arguments.length;a++)if(this.Pq[arguments[a]])return m;return B};a.prototype.Tya=function(a,b){this.Qr[a]=b};a.prototype.Db=S("Bd");a.prototype.gh=function(a){for(var b=a||[],c=this.Bd.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.Bd=b,a.forEach(function(a){a.tU(q)}),e.forEach(function(a){a.remove();a.tU(this)}.bind(this)),this.wa())};a.prototype.tU=function(a){this.aa!=a&&(this.aa&&this.Lm(),(this.aa=a)&&this.Ko(),this.N6(this.aa&&this.aa.ta))};a.prototype.Ko=function(){for(var a in this.aa.O5)this.GL(a);for(a in this.aa.P5)this.set(a,this.aa.get(a))};a.prototype.Lm=I();a.prototype.N6=function(a){this.ta!=a&&(a||this.Jb(),(this.ta=a)&&this.Eb(),this.Bd.forEach(function(a){a.N6(this.ta)}.bind(this)))};
a.prototype.Eb=function(){this.Kya()};a.prototype.Jb=function(){this.oIa()};a.prototype.Kya=function(){this.bk.forEach(function(a){this.ta.hK.add(a,this)}.bind(this))};a.prototype.oIa=function(){this.bk.forEach(function(a){this.ta.hK.remove(a,this)}.bind(this))};a.prototype.xk=function(){this.aa&&this.aa.r9(this)};a.prototype.r9=function(a){var b=this.Bd.indexOf(a);-1==b&&h("Child not found");b!=this.Bd.length-1&&(this.Bd.splice(b,1),this.Bd.push(a),this.wa())};a.prototype.uOa=function(a){var b=this.Bd.indexOf(a);
-1==b&&h("Child not found");this.Bd.splice(b,1);a.tU(q);this.wa()};a.prototype.appendChild=function(a){a.remove();this.Bd.push(a);a.tU(this);this.wa()};a.prototype.remove=function(){this.aa&&this.aa.uOa(this)};a.prototype.bn=I();a.prototype.wa=function(){this.Gf||(this.Gf=m,this.aa&&this.aa.wa(this))};a.prototype.BAa=function(){this.Gf=B};a.prototype.k6=function(){this.BR||(this.BR=m,this.aa&&this.aa.k6())};a.prototype.wAa=function(){this.BR=B};a.prototype.X=function(){this.Yoa();this.D("translationX",
"translationY","translationZ")&&(this.set("composedTranslationX",this.get("translationX")+(this.aa?this.aa.get("composedTranslationX"):0)),this.set("composedTranslationY",this.get("translationY")+(this.aa?this.aa.get("composedTranslationY"):0)),this.set("composedTranslationZ",this.get("translationZ")+(this.aa?this.aa.get("composedTranslationZ"):0)));this.D("deltaYaw","deltaPitch","deltaRoll")&&(this.set("composedDeltaYaw",this.get("deltaYaw")+(this.aa?this.aa.get("composedDeltaYaw"):0)),this.set("composedDeltaPitch",
this.get("deltaPitch")+(this.aa?this.aa.get("composedDeltaPitch"):0)),this.set("composedDeltaRoll",this.get("deltaRoll")+(this.aa?this.aa.get("composedDeltaRoll"):0)),c.Dsa())};a.prototype.Yoa=function(){this.D("alpha")&&this.set("composedAlpha",this.get("alpha")*(this.aa?this.aa.get("composedAlpha"):1))};return a});
define("cP","require,kG,nU,hy,fQ,cn,mQ".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("hy"),g=a("fQ"),f=a("cn"),i=a("mQ"),e=b.extend(g,function(){g.call(this);this.ke=l;this.jb=i.createTexture();this.o=e.RH;this.GJ=c.qn});e.prototype.type=S("ke");e.prototype.texture=S("jb");e.prototype.material=function(){return this.jb&&i.i$(this.jb)};e.prototype.lo=function(){var a=this.jb&&i.i$(this.jb);return a&&f.Era(a)};e.prototype.tSa=R("GJ");e.prototype.load=function(){if(this.o==e.RH){this.o=e.nP;this.A_()}};
e.prototype.SNa=function(){if(this.BQa()){this.o==e.nP?this.SU():this.eM();this.o=e.RH}};e.prototype.unload=function(){if(this.o!=e.RH){this.o==e.nP?this.SU():this.o==e.rZ?this.eM():this.dy();this.o=e.RH}};e.prototype.A_=I();e.prototype.SU=I();e.prototype.y_=I();e.prototype.eM=I();e.prototype.dy=function(){i.ZNa(this.texture)};e.prototype.BQa=function(){return this.o==e.nP||this.o==e.rZ};e.prototype.G$=function(){return this.o==e.qZ||this.o==e.Tca};e.prototype.dispose=function(){i.dispose(this.jb);
this.jb=q};e.prototype.dF=function(a){this.o=a?e.rZ:e.Tca;a?this.y_():this.trigger(d.zc)};e.prototype.vja=function(){this.o=e.qZ;this.trigger(d.U)};e.RH="initial";e.nP="loading";e.rZ="adding";e.Tca="error loading";e.qZ="added";e.Jxa="custom";e.Kxa="image tile";e.EUa="image animation";e.FUa="video 360";return e});
define("eR","require,kG,nU,ck,kC,mQ,cP".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("ck"),g=a("kC"),f=a("mQ"),i=a("cP"),a=b.extend(i,function(a){i.call(this);this.ke=i.Jxa;this.kd=a;if(!this.kd)this.o=i.qZ;this.kg=this.jd=q;this.i_=this.NM=l});a.prototype.Ll=function(a){this.kg=a;f.TX(this.jb,this.kg);this.kg&&this.NM!==l&&f.UX(this.kg,this.NM,this.i_)};a.prototype.UX=function(a,b){if(this.NM!==a){this.NM=a;this.i_=b;this.kg&&f.UX(this.kg,this.NM,this.i_)}};a.prototype.jf=function(){return g.jf(this.kd)};
a.prototype.update=function(){f.TX(this.jb,this.kg)};a.prototype.A_=function(){this.kd?this.BI():this.dF(m)};a.prototype.SU=function(){this.Xo()};a.prototype.y_=function(){this.vja()};a.prototype.dy=function(){this.Xo()};a.prototype.dispose=function(){this.Xo();i.prototype.dispose.call(this)};a.prototype.cd=function(){this.dF(m)};a.prototype.sf=function(){this.dF(B)};a.prototype.BI=function(){if(!this.jd){this.jd=new c;this.jd.xO([this.kd]);this.jd.bind(d.U,this.cd,this,m);this.jd.bind(d.zc,this.sf,
this,m);g.ko(this.jd,this.GJ)}};a.prototype.Xo=function(){if(this.jd){this.jd.unbind(d.U,this.cd,this,m);this.jd.unbind(d.zc,this.sf,this,m);g.Mj(this.jd,this.GJ);this.jd=q}};return a});
define("lY","require,kG,nU,fQ,ef,V".split(","),function(a){function b(a,b){return a.reduce(function(a,c){return a?m:!!(b.layers.mask&c.layers.mask)},B)}function d(a){a=f(a).loaded;return a===l?B:a}function c(a){a=f(a).g9;return a===l?m:a}function g(a){a=f(a).blending;return a===l?B:a}function f(a){return a.userData.HQa||(a.userData.HQa={})}var i=a("kG"),e=a("nU"),j=a("fQ"),o=a("ef"),k=a("V"),a=i.extend(j,function(){j.call(this);this.o=l;this.Z3=B});a.prototype.update=function(a){var b=a.$b&&this.o&&
!this.o.$b;this.o=a.clone();this.Z3||(b?this.MEa():this.yMa())};a.prototype.yMa=function(){var a=B,f=k.O9(this.o.ug),j=k.zk(this.o.ug);o.dW(j,o.RC,l).forEach(function(e){var d=b(f,e)&&o.nW(e)>0&&c(e);if(e.visible!=d){e.visible=d;a=m}});var j=o.dra(j,o.RC,l),j=o.Zra(j,o.Jy),i;for(i in j){var s=j[i],u=f.map(T(B));s.sort(function(a,b){return o.Wra(b)-o.Wra(a)});var v=s.some(g);s.forEach(function(e){var g=b(f,e)&&o.nW(e)>0&&c(e)&&(!v||d(e));if(g){for(var g=m,j=v||d(e)&&o.nW(e)>0.999,i=0;i<f.length;i++)if(e.layers.mask&
f[i].layers.mask&&!u[i]){g=B;j&&(u[i]=m)}g=!g}if(e.visible!=g){e.visible=g;a=m}})}a&&this.trigger(e.qa)};a.prototype.MEa=function(){this.Z3=m;k.zk(this.o.ug).forEach(function(a){a.visible=B});setTimeout(function(){this.Z3=B;this.update(this.o)}.bind(this),300);this.trigger(e.qa)};a.Daa=function(a,b){f(a).loaded=b};a.setActive=function(a,b){f(a).g9=b};a.Lua=function(a,b){o.Ej(a,function(a){f(a).blending=b})};return a});
define("jM","require,kG,nU,hy,fQ,lY,cn,ef,V,t".split(","),function(a){function b(a){return(a=a.userData.ro)&&!(!a.L$&&!a.I$)}function d(a){return a.userData.ro||(a.userData.ro={})}function c(a){return d(a).NC}function g(a){return d(a).enabled||B}function f(a){return!c(a).G$()}var i=a("kG"),e=a("nU");a("hy");var j=a("fQ"),o=a("lY"),k=a("cn"),n=a("ef"),r=a("V"),p=a("t"),t=i.extend(j,function(){j.call(this);this.QE=[];this.dx=[];this.AD=[];this.o=l;this.Nr=q;this.fy=this.fy.bind(this)});t.prototype.update=
function(a){this.o=a.clone();this.ZLa()?this.fy():this.kpa()};t.prototype.kpa=function(){if(!this.Nr)this.Nr=setTimeout(this.fy,1E3)};var s=Math.PI/180;t.prototype.ZLa=function(){var a=this.o.Nl>0?1E3:this.o.eN/Math.tan(Math.min(this.o.Ph*0.5,89.99)*s);p.ob()||(a=a*1.5);var c=r.O9(this.o.ug),e=r.zk(this.o.ug).filter(b),f=e.filter(g),j={},j=n.dra(f,n.RC,l),j=n.Zra(j,n.RC);j.none=n.dW(f,n.RC,l);var f=[],i;for(i in j)for(var k=j[i],u=0,G=k.length;u<G;u++){var z=k[u];(d(z).L$||t.eP)==t.Co&&f.push(z)}for(var L=
0,K=c.length;L<K;L++){var A=c[L];for(i in j){for(var k=j[i],N=q,J=Number.NEGATIVE_INFINITY,C=q,F=Number.POSITIVE_INFINITY,u=0,G=k.length;u<G;u++){z=k[u];if(z.layers.mask&A.layers.mask&&(d(z).L$||t.eP)==t.eP){var O=d(z).TQa*90;if(O<a&&O>J){N=z;J=O}else if(O>=a&&O<F){C=z;F=O}}}if(this.o.$b&&C&&N)J>0.75*a?f.push(N):f.push(C);else{C&&f.indexOf(C)<0&&f.push(C);N&&f.indexOf(N)<0&&f.push(N)}}}a=[];for(c=0;c<f.length;c++){i=f[c];a.indexOf(i)<0&&a.push(i)}f=a;a:{a=this.AD;c=f;for(i=0;i<a.length;i++)if(c.indexOf(a[i])<
0){a=B;break a}for(i=0;i<c.length;i++)if(a.indexOf(c[i])<0){a=B;break a}a=m}a=!a;this.AD=f;u=0;for(G=e.length;u<G;u++){z=e[u];g(z)&&o.setActive(z,this.AD.indexOf(z)>=0)}return a};t.prototype.fy=function(){this.Nr=q;for(var a=[],b=[],c=[],g=(new Date).getTime()-u,j=r.O9(this.o.ug),o=r.zk(this.o.ug),i=0,k=o.length;i<k;i++){var p=o[i],s=p.userData.ro;if(s){var L=n.ry(p);if(s.enabled){var K=[];if(this.AD.indexOf(p)>=0){if(this.o.Nl>0||(d(p).I$||t.$Y)==t.pn)K=L;else for(var A=0,N=j.length;A<N;A++){var J=
n.ePa(p,j[A]);if(A==0)K=J;else for(var C=0,F=J.length;C<F;C++){var O=J[C];K.indexOf(O)<0&&K.push(O)}}C=0;for(F=K.length;C<F;C++){O=K[C];(O.userData.ro||(O.userData.ro={})).Wsa=g}}this.q_(p,K);C=0;for(F=s.iq.length;C<F;C++)a.push(s.iq[C]);C=0;for(F=s.pv.length;C<F;C++)b.push(s.pv[C])}else{s.pv||this.q_(p,[]);C=0;for(F=s.pv.length;C<F;C++){O=s.pv[C];s.iq.indexOf(O)<0&&b.push(O)}}C=0;for(F=L.length;C<F;C++)c.push(L[C])}}i=[];C=0;for(F=this.dx.length;C<F;C++){O=this.dx[C];c.indexOf(O)<0?O.userData.ro.NC.unload():
f(O)?this.J6(O,B):i.push(O)}this.dx=i;C=Math.max(t.uta(),Math.round(b.length*1.25))-a.length;if(this.dx.length>C){this.dx.sort(function(a,b){return d(a).Wsa-d(b).Wsa});i=this.dx.splice(0,this.dx.length-C);C=0;for(F=i.length;C<F;C++){O=i[C];O.userData.ro.NC.unload();this.J6(O,B)}}b=[];i=0;for(k=this.AD.length;i<k;i++){p=this.AD[i];s=p.userData.ro;s.iq.length>0&&b.push(p)}c=Number.POSITIVE_INFINITY;i=0;for(k=b.length;i<k;i++){p=b[i];s=p.userData.ro;C=s.Fe;C=C!==l?C:Number.POSITIVE_INFINITY;C<c&&(c=
C)}a=[];i=0;for(k=b.length;i<k;i++){p=b[i];s=p.userData.ro;C=s.Fe;C=C!==l?C:Number.POSITIVE_INFINITY;if(C==c){J=s.iq;C=0;for(F=J.length;C<F;C++){O=J[C];a.push(O)}}}C=0;for(F=this.QE.length;C<F;C++){O=this.QE[C];if(a.indexOf(O)<0){O=O.userData.ro.NC;O.unbind(e.U,this.v7,this,m);O.unbind(e.zc,this.w7,this,m);O.SNa()}}i=this.QE;this.QE=a;k=this.QE.slice();C=0;for(F=k.length;C<F;C++){O=k[C];if(i.indexOf(O)<0){O=O.userData.ro.NC;O.bind(e.U,this.v7,this,m);O.bind(e.zc,this.w7,this,m);O.load()}}};t.prototype.v7=
function(a){this.soa(a.source);this.trigger(e.U)};t.prototype.w7=function(a){this.soa(a.source)};t.prototype.soa=function(a){a.unbind(e.U,this.v7,this,m);a.unbind(e.zc,this.w7,this,m);var b=a.material(),c=this.QE,f=c.indexOf(b);f>=0&&c.splice(f,1);this.dx.push(b);this.J6(b,m);a=a.lo();d(a).iq.indexOf(b)>=0&&this.q_(a,d(a).pv);this.kpa()};t.prototype.q_=function(a,b){var c=d(a).pv,c=c?c.length:l,g=d(a).iq,g=g?g.length:l;d(a).pv=b;d(a).iq=b.filter(f);o.Daa(a,d(a).iq.length==0&&(d(a).I$||t.$Y)==t.pn);
var j=d(a).pv,j=j?j.length:l,i=d(a).iq,i=i?i.length:l;if(g!==i||c!==j)a.dispatchEvent({type:e.gc,Kg:j?100-100*i/j:100});g!==i&&i===0&&a.dispatchEvent({type:e.U})};t.prototype.J6=function(a,e){if(e!=a.visible){var d=k.Era(a),f=n.getAttribute(d,n.Jy),g=n.getAttribute(d,n.YX);if(f===l||g===l)a.visible=e;else{for(var j=r.zk(this.o.ug).filter(b),f=n.dW(j,n.Jy,f),g=n.dW(f,n.YX,g),o=n.ry(d).indexOf(a),d=g.map(function(a){return n.ry(a)[o]}),g=e,f=0;f<d.length&&g;f++)g=g&&c(d[f]).G$();for(f=0;f<d.length;f++)d[f].visible=
g}}};t.uta=function(){var a;a=p.ob()?128:384;t.uta=function(){return a};return a};t.xd=function(a,b){n.Ej(a,function(a){d(a).enabled=b})};t.enabled=g;t.xX=function(a,b){n.Ej(a,function(a){d(a).TQa=b})};t.pn="all";t.$Y="in view";t.ss=function(a,b){n.Ej(a,function(a){d(a).I$=b})};t.Co="always";t.eP="on demand";t.ts=function(a,b){n.Ej(a,function(a){d(a).L$=b})};t.tH=function(a,b){n.Ej(a,function(a){d(a).Fe=b})};t.Ay=function(a,b){n.Ej(a,function(a){d(a).SVa=b;n.ry(a).forEach(function(a){c(a).tSa(b)})})};
t.PVa=function(a){return 100-100*d(a).iq.length/d(a).pv.length};t.OVa=function(a){return d(a).iq.length==0};t.vH=function(a,b){(d(a).NC=b)&&(a.visible=b.G$())};t.NC=c;var u=(new Date).getTime();return t});
define("fd","require,kG,iy,eR,cn,ef,V,jM,lY".split(","),function(a){var b=a("kG"),d=a("iy"),c=a("eR"),g=a("cn"),f=a("ef"),i=a("V"),e=a("jM"),j=a("lY"),a=b.extend(d,function(){d.call(this);this.set("tag","ComposedWebGLObject");this.set("webglScene",q);this.set("meshGroup",q);this.set("camera",q);this.set("textureSource",q);this.set("materialConfig",this.Pb=new g.kn);this.tt&&this.tt();this.Xz&&this.Xz();this.vw&&this.vw();this.wn&&this.wn()});a.prototype.Eb=function(){d.prototype.Eb.call(this);this.On&&
this.On();this.LJ&&this.LJ();this.sF&&this.sF()};a.prototype.Jb=function(){this.SE&&this.SE();this.tF&&this.tF();this.Qn&&this.Qn();f.dispose(this.get("meshGroup"));f.uH(this.get("meshGroup"),q);this.set("meshGroup",q);d.prototype.Jb.call(this)};a.prototype.X=function(a){this.tf&&this.tf(a);d.prototype.X.call(this,a);this.set("camera",i.hC(a.ug));this.set("webglScene",a.ug);if(!this.get("meshGroup")){this.set("meshGroup",f.Kqa(this.em()));this.get("meshGroup").userData.QQa=this}this.D("webglScene",
"meshGroup")&&f.uH(this.get("meshGroup"),this.get("webglScene"));this.vl();this.Aj&&this.Aj(a);this.XMa();this.Tu&&this.Tu(a);this.Sp&&this.Sp(a);this.MB();this.D("loadingActive","meshGroup")&&e.xd(this.get("meshGroup"),this.get("loadingActive"));this.D("blendingActive","meshGroup")&&j.Lua(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.vl=function(){this.D("composedAlpha","meshGroup")&&this.bw()};a.prototype.bw=function(){f.Ve(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.XMa=
function(){if(this.D("textureSource")||this.D("materialConfig")&&!this.Pb.isEqual(this.get("materialConfig"))){var a=this.sE();if(a){f.wSa(a,this.VD());this.bw()}}};a.prototype.MB=function(){if(this.D("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,c){f.FX(a,this.get("index")+b/c.length)}.bind(this))}};a.prototype.VD=function(){var a=this.get("textureSource")||new c;this.Pb=this.get("materialConfig");var b=g.ny(a.texture(),this.Pb);e.vH(b,a);return[b]};a.prototype.Kfa=
function(){var a=new c,b=g.ny(a.texture());e.vH(b,a);return[b]};a.prototype.Jt=function(a){return f.aPa(this.get("meshGroup"),a)};return a});
define("iU",["require","kj","mk","lv"],function(a){var b=a("kj"),d=a("mk"),c=a("lv"),g=180/Math.PI,f=Math.PI/180;return{qW:function(a,b,f,g,k,n,r){b||(b=a*g/f);k||(k=c.Hs);var p={};switch(k){case c.Hs:p.width=a;p.height=b;break;case c.NONE:p.width=f;p.height=g;break;case c.Qg:p.width=Math.min(b*f/g,a);p.height=Math.min(a*g/f,b);break;case c.sq:p.width=Math.max(b*f/g,a);p.height=Math.max(a*g/f,b);break;case c.Bo:p.width=a;p.height=a*g/f;break;case c.Pj:p.width=b*f/g,p.height=b}p.width>a?(p.zv=a/p.width,
p.IO=n==d.Ja?0:n==d.Xa?1-p.zv:0.5*(1-p.zv),p.width=a):(p.IO=0,p.zv=1);p.height>b?(p.Av=b/p.height,p.LO=r==d.ic?1-p.Av:r==d.ac?0:0.5*(1-p.Av),p.height=b):(p.LO=0,p.Av=1);return p},c$:function(a,e,j,o,k,n,r,p){e||(e=b.Dl(a,j,o));k||(k=c.Hs);n||(n=4096/360);var t={};switch(k){case c.Hs:t.ue=a;t.nq=e;break;case c.NONE:t.ue=2*Math.atan2(0.5*j,45*n)*g;t.nq=b.Dl(t.ue,j,o);break;case c.Qg:t.ue=Math.min(b.zs(e,j,o),a);t.nq=Math.min(b.Dl(a,j,o),e);break;case c.sq:t.ue=Math.max(b.zs(e,j,o),a);t.nq=Math.max(b.Dl(a,
j,o),e);break;case c.Bo:t.ue=a;t.nq=b.Dl(a,j,o);break;case c.Pj:t.ue=b.zs(e,j,o),t.nq=e}t.ue>a?(t.zv=Math.tan(0.5*a*f)*j/Math.tan(0.5*t.ue*f)/j,t.IO=r==d.Ja?0:r==d.Xa?1-t.zv:0.5*(1-t.zv),t.ue=a):(t.IO=0,t.zv=1);t.nq>e?(t.Av=Math.tan(0.5*e*f)*o/Math.tan(0.5*t.nq*f)/o,t.LO=p==d.ic?1-t.Av:p==d.ac?0:0.5*(1-t.Av),t.nq=e):(t.LO=0,t.Av=1);return t}}});
define("nj","require,hy,iA,ef,iU,jM,kj,mL,mk".split(","),function(a){var b=a("hy"),d=a("iA"),c=a("ef"),g=a("iU"),f=a("jM"),i=a("kj"),e=a("mL"),j=a("mk"),o=new THREE.Matrix4,k=Math.PI/180;return{tt:function(){this.set("distance",l);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",l);this.set("vfov",q);this.set("scaleMode",q);
this.set("horizontalAlign",q);this.set("verticalAlign",q);this.set("attachToCamera",B);this.zh=this.uw();this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.Pn=new THREE.Matrix4;this.jm=new THREE.Matrix4;this.Ni=new THREE.Matrix4;this.u_=new THREE.Matrix4;this.yea=new THREE.Quaternion;this.Dfa=new THREE.Matrix4;this.mI=new THREE.Matrix4;this.wI=new THREE.Matrix4;this.iw=new THREE.Matrix4;this.rh=new THREE.Matrix4},Tu:function(a){this.Qp(a);this.C8()},C8:function(){if(this.D("hfov","vfov","contentWidth",
"contentHeight","panoramaPixelsPerDegree","scaleMode","horizontalAlign","verticalAlign")){var a=g.c$(this.get("hfov"),this.get("vfov"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("panoramaPixelsPerDegree"),this.get("horizontalAlign"),this.get("verticalAlign")),a=d.fva(this.zh[1],a.IO,a.LO,a.zv,a.Av);if(this.zh[1]!=a){this.zh[1]=a;(a=this.sE())&&c.zaa(a,this.zh[1])}}},sE:function(){var a=this.get("meshGroup");return a?c.zk(a)[1]:q},em:function(){return[0,1].map(function(a){var e=
a==0?this.Kfa():this.VD(),a=c.create(this.zh[a],e);f.ss(a,f.pn);f.ts(a,f.Co);f.Ay(a,b.oD);f.tH(a,1);return a}.bind(this))},uw:function(){return[d.IG(),d.IG()]},Qp:function(a){var b=B;if(this.D("composedTranslationX","composedTranslationY","composedTranslationZ")){this.dh.makeTranslation(-this.get("composedTranslationX")*0.5*d.of,this.get("composedTranslationY")*0.5*d.of,this.get("composedTranslationZ")*0.5*d.of);b=m}if(this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.qd.makeRotationY(-a.Na*
k);this.qd.multiply(o.makeRotationX(-this.get("composedDeltaPitch")*k));this.qd.multiply(o.makeRotationY(this.get("composedDeltaYaw")*k));this.qd.multiply(o.makeRotationY(a.Na*k));b=m}if(this.D("yaw","pitch")){this.Pn.makeRotationY(-this.get("yaw")*k);this.Pn.multiply(o.makeRotationX(this.get("pitch")*k));b=m}if(this.D("distance","flipHorizontally","scale","hfov","vfov","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign","composedTranslationX","composedTranslationY","composedTranslationZ")){var f=
this.aa.get("composedTranslationX")==0&&this.aa.get("composedTranslationY")==0&&this.aa.get("composedTranslationZ")==0&&this.get("distance")!==l?d.jC(this.get("distance")):d.cv();this.jm.makeTranslation(0,0,-f);var t=this.get("contentWidth"),s=this.get("contentHeight"),u=this.get("hfov"),v=this.get("vfov")||i.Dl(u,t,s),w=(this.get("flipHorizontally")?-1:1)*this.get("scale"),x=this.get("scale"),y=this.get("scaleMode"),D=this.get("panoramaPixelsPerDegree"),b=this.get("horizontalAlign")||j.ae,E=this.get("verticalAlign")||
j.zd,t=g.c$(u,v,t,s,y,D,b,E),u=w*d.d$(f,u),v=x*d.e$(f,v);this.mI.makeScale(u,v,1);w=w*d.d$(f,t.ue);f=x*d.e$(f,t.nq);this.wI.makeScale(w,f,1);this.Dfa.makeTranslation(b==j.Ja?-(u-w)*0.5:b==j.Xa?(u-w)*0.5:0,E==j.ic?(v-f)*0.5:E==j.ac?-(v-f)*0.5:0,0);b=m}if(this.D("rotationX","rotationY","rotationZ","roll")){this.Ni.makeRotationZ(this.get("roll")*k);this.Ni.multiply(o.makeRotationY(this.get("rotationY")*k));this.Ni.multiply(o.makeRotationX(this.get("rotationX")*k));this.Ni.multiply(o.makeRotationZ(this.get("rotationZ")*
k));b=m}this.set("cameraYaw",a.Na);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.He);if(this.get("attachToCamera")&&this.D("cameraYaw","cameraPitch","cameraRoll")){this.yea.copy(e.nra(a.Na,a.pitch,a.He));this.u_.makeRotationFromQuaternion(this.yea);b=m}else if(this.D("attachToCamera")){this.u_.identity();b=m}if(b||this.D("meshGroup")){this.rh.copy(this.dh);this.rh.multiply(this.qd);this.rh.multiply(this.u_);this.rh.multiply(this.Pn);this.rh.multiply(this.jm);this.rh.multiply(this.Ni);this.iw.copy(this.rh);
this.iw.multiply(this.mI);this.rh.multiply(this.Dfa);this.rh.multiply(this.wI);a=c.zk(this.get("meshGroup"));c.Yp(a[0],this.iw);c.Yp(a[1],this.rh)}}}});define("iS",["require","kG","fd","nj"],function(a){var b=a("kG"),d=a("fd"),a=a("nj");return b.extend(d,a,function(){d.call(this);this.set("tag","Plane")})});
define("dz","require,kG,nU,fQ,mQ,bg".split(","),function(a){function b(){if(!o){o=m;e.yb(d,q)}}function d(){for(o=B;j.length;){var a=j.shift();a.add();if(a.FQa())break}j.length&&b()}var c=a("kG"),g=a("nU"),f=a("fQ"),i=a("mQ"),e=a("bg"),j=[],o=B,k=c.extend(f,function(a,b){f.call(this);this.texture=a;this.source=b});k.prototype.FQa=function(){return!this.source.Vda&&i.NNa(this.source)};k.prototype.Pqa=function(){if(!this.source.Vda){i.Pqa(this.source);this.source.Vda=m}};k.prototype.add=function(){i.TX(this.texture,
this.source);this.trigger(g.U)};k.prototype.remove=function(){var a=j.indexOf(this);a>=0&&j.splice(a,1);i.TX(this.texture,q)};return{add:function(a,c){var e=new k(a,c);j.push(e);b();return e}}});
define("md","require,kG,nU,ck,kC,dz,cP".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("ck"),g=a("kC"),f=a("dz"),i=a("cP"),a=b.extend(i,function(a){i.call(this);this.ke=i.Kxa;this.kd=a;this.kg=this.AF=this.jd=q});a.prototype.jf=S("kg");a.prototype.A_=function(){this.BI()};a.prototype.SU=function(){this.Xo()};a.prototype.y_=function(){this.EBa()};a.prototype.eM=function(){this.Xo();this.W0()};a.prototype.dy=function(){this.Xo();this.W0()};a.prototype.dispose=function(){this.Xo();this.W0();i.prototype.dispose.call(this)};
a.prototype.cd=function(){this.kg=g.jf(this.kd);this.dF(m)};a.prototype.sf=function(){this.dF(B)};a.prototype.wja=function(){this.vja()};a.prototype.BI=function(){if(!this.jd){this.jd=new c;this.jd.xO([this.kd]);this.jd.bind(d.U,this.cd,this,m);this.jd.bind(d.zc,this.sf,this,m);g.ko(this.jd,this.GJ)}};a.prototype.Xo=function(){if(this.jd){this.jd.unbind(d.U,this.cd,this,m);this.jd.unbind(d.zc,this.sf,this,m);g.Mj(this.jd,this.GJ);this.jd=q}};a.prototype.EBa=function(){this.AF=f.add(this.jb,this.kg);
this.AF.bind(d.U,this.wja,this,m)};a.prototype.W0=function(){if(this.AF){this.AF.unbind(d.U,this.wja,this,m);this.AF.remove();this.AF=q}};return a});
define("hz",["require"],function(){function a(){this.DE=b++;this.JJ="_map_"+this.DE+"_key";this.QR={};this.Xg=[];this.length=0}var b=0;a.prototype.set=a.prototype.add=function(a,b){var g;0>this.Xg.indexOf(a)&&this.Xg.push(a);if("object"===typeof a&&a!==q){if(g=a[this.JJ],!g){g=this.JJ;for(var f=[],i=0;8>i;i++)f.push(Math.floor(16*Math.random()).toString(16));g=a[g]=f.join("")}}else g=a;this.QR[g]=b;this.length=this.Xg.length};a.prototype.get=function(a){return this.QR["object"===typeof a&&a!==q?a[this.JJ]:
a]};a.prototype.gsa=function(a){return 0<=this.Xg.indexOf(a)};a.prototype.remove=function(a){var b=this.Xg.indexOf(a);0>b||(this.Xg.splice(b,1),"object"===typeof a&&a!==q?(b=a[this.JJ],delete a[this.JJ]):b=a,delete this.QR[b],this.length=this.Xg.length)};a.prototype.forEach=function(a){this.Xg.slice().forEach(function(b){a(b,this.get(b))}.bind(this))};a.prototype.dispose=function(){for(;this.Xg.length;)this.remove(this.Xg.pop());this.Xg=this.QR=q};return a});
define("jF",["require","kG","fQ","hz"],function(a){function b(){this.bC=[]}var d=a("kG"),c=a("fQ"),g=a("hz"),a=d.extend(c,function(a){c.call(this);this.$e=a;this.Zc=[];this.Qt=new g;this.UM=[];this.l1=[];this.$E=this.$E.bind(this)});a.prototype.We=function(a){this.Zc.forEach(function(a){a.removeEventListener?a.removeEventListener(this.$e,this.$E):a.unbind?a.unbind(this.$e,this.$E,this,m):h("invalid instance type")}.bind(this));this.Zc=a.slice();this.Zc.forEach(function(a){a.addEventListener?a.addEventListener(this.$e,
this.$E):a.bind?a.bind(this.$e,this.$E,this,m):h("invalid instance type");this.Qt.gsa(a)||this.Qt.set(a,new b)}.bind(this));this.Z7()};a.prototype.dispose=function(){this.We([]);this.Zc=q;this.Qt.dispose();this.l1=this.UM=this.Qt=q};a.prototype.Pl=function(a){this.UM.push(a);this.Z7();return this};a.prototype.mo=function(a){this.l1.push(a);return this};a.prototype.Zr=function(a){this.Zc.forEach(function(b){a(b,this.Qt.get(b).bC)}.bind(this))};a.prototype.Fl=function(a){a=this.Qt.get(a).bC;return 0==
a.length?q:a[a.length-1]};a.prototype.$E=function(a){var b=a.target||a.source;if(b=this.Qt&&this.Qt.get(b))b.bC.push(a),this.l1.forEach(function(b){b(a,this)}.bind(this)),this.Z7()};a.prototype.Z7=function(){if(0!=this.Zc.length){for(var a=0;a<this.Zc.length;a++)if(0==this.Qt.get(this.Zc[a]).bC.length)return;this.UM.length&&(a=this.UM.slice(),this.UM=[],a.forEach(function(a){a(this)}.bind(this)))}};return a});
define("bV",["require","eQ"],function(a){var b=a("eQ"),d={get:function(a){return a.iya||(a.iya=this.HCa(a))},HCa:function(a){if(b.xa("CubicPanoramaFrame",a))return a.get("stereoCube")?d.Uv:a.get("cube")?d.Ns:d.Fk;if(b.xa("SphericPanoramaFrame",a)){if(a.get("stereoSphere")){var g=a.get("hfov"),f=a.get("vfov"),i=a.get("stereoSphere").get("levels"),a=Math.max.apply(Math,i.map(function(a){return a.get("width")})),i=Math.max.apply(Math,i.map(function(a){return a.get("height")}));return 2==Math.round(i/
f/(a/g))?d.Ho:d.Cq}return d.uq}},Uv:"stereoCube_12_1",Ns:"monoCube_6_1",Fk:"monoCube_1_1",uq:"monoSphere_1_1",Ho:"stereoSphere_1_2",Cq:"stereoSphere_2_1"};return d});
define("gx",["require"],function(){function a(a,c,g){this.kd=a;this.uoa=c;this.bA=g||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.bA==b};a.prototype.isEqual=function(a,b){return this.kd==a.kd&&Math.abs(this.uoa-a.uoa)<(b||0)&&this.bA==a.bA};return a});
define("cW",["require","la","t","hG"],function(a){function b(a){return g.Nva(a.get("width"),a.get("height"),a.get("framerate"))}function d(a,b){if(!b)return m;var d=a.get("url"),f=a.get("type")||"";switch(b){case e:return i.is(d,i.mda)||c(f,"webm");case j:return i.is(d,i.Twa)||(i.is(d,i.dZ)||i.is(d,i.ica)||!d)&&(c(f,"hev1")||c(f,"h265")||c(f,"heic"))?m:B;case o:return i.is(d,i.dZ)||c(f,"mp4");case k:return i.is(d,i.mn)||c(f,"x-mpegurl");case n:return i.is(d,i.Bca)||c(f,"ogg");case r:return i.is(d,
i.ica)||c(f,"quicktime");default:return B}}function c(a,b){return 0<=(a||"").toLowerCase().indexOf(b)}var g=a("la"),f=a("t"),i=a("hG"),e="webm",j="h265",o="mp4",k="hls",n="ogv",r="mov",p={APa:function(a){return p.select(a.get("levels"))},yPa:function(a){return p.select(a.get("levels"))},select:function(a){a||(a=[]);var a=a.slice(),c=[];g.IPa&&c.push({type:k,ys:B});g.TPa&&c.push({type:j,ys:m});g.o$&&c.push({type:e,ys:m});g.LW&&c.push({type:o,ys:m});g.UPa&&c.push({type:r,ys:m});g.n$&&c.push({type:n,
ys:m});c.push({type:o,ys:m});c.push({type:e,ys:m});c.push({type:o,ys:B});c.push({type:e,ys:B});for(var i=1E3*(f.ob()?800:5E3),p=0;p<c.length;p++){var w=a;c[p].ys&&(w=w.filter(b));w=w.filter(function(a){if(d(a,c[p].type))return m});c[p].type!=k&&w.sort(function(a,b){return Math.abs(i-a.get("bitrate"))-Math.abs(i-b.get("bitrate"))});if(w.length)return w[0]}return q}};return p});
define("nr","require,kG,cs,fQ,nU,gE,hy,eQ,t,lB,nm,dt,gx,mm,hs,bQ,cW".split(","),function(a){function b(a){o.browser()==o.Rl&&(a=k.ky(a,"playbacksession="+(new Date).getTime()));return a}var d=a("kG"),c=a("cs"),g=a("fQ"),f=a("nU"),i=a("gE"),e=a("hy"),j=a("eQ"),o=a("t"),k=a("lB"),n=a("nm"),r=a("dt"),p=a("gx"),t=a("mm"),s=a("hs"),u=a("bQ"),v=a("cW"),w=d.extend(g,function(a,b){g.call(this);this.Sa=a;this.n=b;this.ib=w.Gj(this.n);this.j=q;this.RL();this.n.bind(f.u("subtitlesURL"),this.np,this,m);this.n.bind(f.u("gain"),
this.nK,this,m);this.ib.bind(f.u("subtitlesURL"),this.np,this,m);this.ib.bind(f.u("url"),this.np,this,m);this.o=i.L;this.Af=this.cb=0;this.Le=B;this.Vp=1;this.Vk=B;this.J=this.nb=q;this.MD=B;this.dQ=l;this.pfa=B;this.Jq=[]});w.prototype.wb=S("Sa");w.prototype.yd=function(a){if(this.o!=a&&!(a==i.Gb&&this.o!=i.S)){this.pfa&&a==i.S&&this.o==i.L&&this.U_();this.o=a;if(this.o==i.S){this.nb&&this.nb.play(this.Sa,this.j,this.Af);u.lX(this)}else{u.qsa()?this.nb&&this.nb.stop():u.jH(this);this.o==i.L&&this.O6()}this.Q7()}};
w.prototype.og=S("o");w.prototype.Ti=S("cb");w.prototype.EC=function(a){this.Af=a;if(this.nb){this.nb.pC()&&this.KQ();this.nb.play(this.Sa,this.j,this.Af)}};w.prototype.Cl=S("Af");w.prototype.wv=function(a){this.Vp=a;this.nb&&this.nb.wv(a)};w.prototype.nf=function(a){this.Le=a;this.nb&&this.nb.nf(a)};w.prototype.setLoop=function(a){this.Vk=a;this.nb&&this.nb.setLoop(a)};w.prototype.KRa=function(){this.pfa=m};w.prototype.KG=function(a,b,c){this.nb&&this.nb.pC()?this.nb.KG(a,b,c):this.MD?a.drawImage(this.J,
0,0,b,c):a.fillRect(0,0,b,c)};w.prototype.oW=function(){if(this.nb&&this.nb.pC()){var a=this.nb.Cl(),b=this.nb.Ub;if(this.IR())return new p(this.j.src,this.dQ,this.J);this.U_();return new p(this.j.src,a,b)}return this.MD?new p(this.j.src,this.Af,this.J):new p(this.j.src,this.Af,q)};w.prototype.pX=function(){return!this.Le&&this.n.get("hasAudio")};w.prototype.Ee=function(){return s.Vl};w.prototype.g$=function(){return e.Vl};w.prototype.F9=function(a){this.nb=a;setTimeout(function(){this.nb&&this.nb.bind(n.Zi,
this.mK,this,m)}.bind(this),0);this.RL();this.nb.bind(n.pf,this.Ae,this,m);this.nb.bind(n.wi,this.Am,this,m);this.nb.bind(f.Rh,this.hi,this,m);this.nb.nf(this.Le);this.nb.wv(this.Vp);this.nb.setLoop(this.Vk);this.nb.play(this.Sa,this.j,this.Af)};w.prototype.F$=function(){this.nb.pC()&&this.KQ();this.Af=this.nb.Cl();this.nb.unbind(n.Zi,this.mK,this,m);this.nb.unbind(n.pf,this.Ae,this,m);this.nb.unbind(n.wi,this.Am,this,m);this.nb.unbind(f.Rh,this.hi,this,m);if(this.o==i.L){this.nb.stop();this.nb.EC(0)}this.nb=
q};w.prototype.clear=function(){u.jH(this);this.U_();if(this.n){this.n.unbind(f.u("subtitlesURL"),this.np,this,m);this.n.unbind(f.u("gain"),this.nK,this,m);this.n=q}if(this.ib){this.ib.unbind(f.u("subtitlesURL"),this.np,this,m);this.ib.unbind(f.u("url"),this.np,this,m);this.ib=q}};w.prototype.np=function(){this.kB&&clearTimeout(this.kB);this.kB=setTimeout(function(){this.kB=q;if(this.nb){this.j.cn=this.n.get("subtitlesURL")||this.ib.get("subtitlesURL");this.j.src=b(this.ib.get("url"));this.nb.play(this.Sa,
this.j,this.Af)}}.bind(this),10)};w.prototype.nK=function(){if(this.nb){this.j.gain=this.n.get("gain");this.nb.mO(this.j.gain)}};w.prototype.RL=function(){this.j=new t;this.j.src=b(this.ib.get("url"));this.j.cn=this.n.get("subtitlesURL")||this.ib.get("subtitlesURL");this.j.gv=this.n.get("hasAudio");this.j.gain=this.n.get("gain")};w.prototype.KQ=function(){if(!this.J)this.J=document.createElement("canvas");if(!this.IR()){this.J.width=this.nb.fd();this.J.height=this.nb.Td();this.dQ=this.nb.Cl();var a=
this.J.getContext("2d");a.clearRect(0,0,this.J.width,this.J.height);this.MD=this.nb.KG(a,this.J.width,this.J.height)}};w.prototype.IR=function(){var a=this.nb.Cl();this.cb&&(a=Math.min(a,this.cb));return this.MD&&Math.abs(a-this.dQ)<=0.15};w.prototype.U_=function(){if(this.MD){this.dQ=l;this.MD=B;if(o.browser()!=o.Rl){this.J.width=0;this.J.height=0;this.J=q}}};w.prototype.Am=function(){this.cb=this.nb.Ti();this.L7()};w.prototype.Ae=function(){this.cb!=this.nb.Ti()&&this.Am();this.Af=this.nb.Cl();
o.le()==o.aj&&this.Af>0&&this.Af>this.cb-0.15&&!this.IR()&&!this.Vk?this.KQ():o.browser()==o.Dk&&this.Af>0&&this.Af>this.cb-0.05&&!this.IR()&&this.Vk&&this.KQ();this.yM()};w.prototype.hi=function(){this.Jq=this.nb.vN().map(function(a){for(var b=q,c=0;c<this.Jq.length&&!b;c++)this.Jq[c].cue==a&&(b=this.Jq[c]);b||(b=new r(a));return b}.bind(this));this.trigger(new c(f.Rh))};w.prototype.mK=function(){this.yd(i.L);this.M7()};w.prototype.O6=function(){this.Af=0;this.yM()};w.prototype.yM=function(){this.trigger(new c(w.pf))};
w.prototype.L7=function(){this.trigger(new c(w.wi))};w.prototype.M7=function(){this.trigger(new c(f.Ga))};w.prototype.Q7=function(){this.trigger(new c(f.Fc))};w.pf="time update";w.wi="duration update";w.Gj=function(a){if(j.xa("Video360Resource",a))return v.yPa(a);if(j.xa("VideoResource",a))return v.APa(a);h("invalid video resource object: "+a)};return w});
define("mB","require,eQ,lr,dw,lW,bV,iU,la,t,hG,lv,jR,nr".split(","),function(a){function b(a,b,c){return a.split(b).join(c).split(encodeURI(b)).join(c)}function d(){var a=E.hv()&&URL.Si("recent_ipad_use_max_res",B);d=function(){return a};return a}function c(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 g(a,b){var c=1E4;d()||(E.If()?c=2048:E.hv()?c=1280:E.ob()&&(c=1024));switch(a){case y.Ns:return[6*c,c];
case y.Fk:return[c,c];case y.Uv:return[12*c,c]}switch(a){case y.Ho:b=b*2;break;case y.Cq:b=b*0.5}return b>2?[c*4,c*4/b]:[c*2*b,c*2]}function f(a){if(d())return[l,l];switch(a){case y.Ns:if(E.If()||E.ob())return[18432,1536];break;case y.Ho:if(E.If())return[5352,5352];if(E.ob())return[6086,6086];break;case y.uq:if(E.If())return[7168,3584];if(E.ob()&&E.hv())return[8192,4096]}return[l,l]}function i(a,b){var c=f(b);return a.filter(function(a){return u.xa("TiledImageResourceLevel",a)?m:c[0]!==l&&a.get("width")>
c[0]||c[1]!==l&&a.get("height")>c[1]?B:m})}function e(){return E.hv()?[v.Wca]:E.A$()?E.Yd()==E.Oy||E.Yd()==E.WC?[v.qP,v.wZ]:[v.wZ,v.qP]:E.If()?[v.qP]:E.ob()?[v.pP]:[]}function j(a){a.sort(function(a,b){return a.get("width")-b.get("width")});return a}function o(a,b){function c(a){return Math.abs(a.get("width")*a.get("height")-b[0]*b[1])}a.sort(function(a,b){return c(a)-c(b)});return a.length&&a[0]||q}function k(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)<0});return a.length?a:c!==
l?c:[]}function n(a,b,c){a=a.filter(function(a){return a.get("tags").indexOf(b)>=0});return a.length?a:c!==l?c:[]}function r(a,b,c){switch(c){case y.Uv:case y.Ns:case y.Fk:return a;case y.uq:case y.Cq:return a*b.get("hfov",180)/90;case y.Ho:return a*b.get("hfov",180)*2/90}}function p(a,b){switch(b){case y.Uv:return a.get("stereoCube").get("levels");case y.Ns:return a.get("cube").get("levels");case y.Fk:return a.get("front").get("levels");case y.uq:return a.get("sphere").get("levels");case y.Ho:case y.Cq:return a.get("stereoSphere").get("levels")}}
function t(a,b){var c=p(a,b),e=a.get("minFaceSize");if(e){var d=r(e,a,b),e=c.filter(function(a){return a.get("height")>=d});e.length>0&&(c=e)}return c}function s(a){for(var b=[],c=0;c<a.length;c++){var e=a[c];b.indexOf(e)<0&&b.push(e)}return b}var u=a("eQ"),v=a("lr"),w=a("dw"),x=a("lW"),y=a("bV"),D=a("iU");a("la");var E=a("t");a("hG");var H=a("lv"),M=a("jR"),G=a("nr"),z={Fra:function(a){a=a.get("frames");if(a.length==0)return 1;var b=a[0];if(y.get(b)==y.uq&&b.Jj())a=(a=G.Gj(b.get("sphere")))?[a]:
[];else if((y.get(b)==y.Ho||y.get(b)==y.Cq)&&b.Jj())a=(a=G.Gj(b.get("stereoSphere")))?[a]:[];else a=z.X9(b,B);return Math.max.apply(Math,a.map(function(a){return z.kPa(b,a)}).concat([1]))},kPa:function(a,b){var b=z.T9(a,b,x.FRONT),c=b.get("width"),e=a.UG().get("hfov",360);switch(y.get(a)){case y.Uv:return c/1080;case y.Ns:return c/540;case y.Fk:return c/90;case y.uq:return c/e;case y.Ho:return c/e;case y.Cq:return c/(2*e)}},q$:function(a,b){var c=z.Wm(a,b);return c.length<=6&&c.every(function(a){return M.LX(a)})},
W$:function(a,b){return z.Wm(a,b).every(function(a){return M.LX(a)})},Wm:function(a,b,c){if(!a)return[];c||(c=B);if(u.xa("Panorama",a)){c=a.get("flipImageHorizontally",B);return s([].concat(Array.prototype.concat.apply([],a.get("frames").map(function(a){return z.Wm(a,b,c)})),Array.prototype.concat.apply([],a.get("overlays").map(function(a){return z.Wm(a,b,c)}))))}if(u.xa("PanoramaFrame",a)){var e=Array.prototype.concat.apply([],a.get("overlays").map(function(a){return z.Wm(a,b,c)}));if(y.get(a)==
y.uq&&a.Jj())return z.Wm(G.Gj(a.get("sphere")),b).concat(e);if((y.get(a)==y.Ho||y.get(a)==y.Cq)&&a.Jj())return z.Wm(G.Gj(a.get("stereoSphere")),b).concat(e);var d=z.X9(a,b)[0],c=a.get("flipImageHorizontally",B);if(y.get(a)==y.Fk){var f=[x.FRONT,x.Ja,x.BACK,x.Xa,x.ic,x.ac];return Array.prototype.concat.apply([],f.map(function(e){return(e=z.T9(a,d,e))?z.Wm(e,b,c):[]})).concat(e)}return z.Wm(d,b,c).concat(e)}if(u.xa("Video360ResourceLevel",a))return(e=a.get("posterURL"))?[e]:[];if(u.xa("HotspotPanoramaOverlay",
a))return a.get("projected")?Array.prototype.concat.apply([],a.get("items").map(function(a){return z.Wm(a,b,c)})):[];if(u.xa("FlatHotspotPanoramaOverlayImage",a)||u.xa("HotspotPanoramaOverlayImage",a)){e=a.get("image").get("levels");d=e[0];z.Wm(d,b,c);return Array.prototype.concat.apply([],e.map(function(a){return z.Wm(a,b,c)}))}if(u.xa("TiledImageResourceLevel",a)){var g=[],e=Math.round(a.get("width")/a.get("height")),j;if(e==1)j=y.Fk;else if(e==12)j=y.pUa;else if(e==6)j=y.Ns;else return[];var o=
e==12?[w.Xa,w.Ja]:[w.Cs],f=[x.Xa,x.Ja,x.ic,x.ac,x.FRONT,x.BACK],i=a.get("colCount",e)/e,k=a.get("rowCount",1);o.forEach(function(b){f.forEach(function(e){for(var d=0;d<k;d++)for(var f=0;f<i;f++)g.push(z.Sra(a,j,b,e,c,k,d,f))})});return g}return u.xa("ImageResourceLevel",a)?[a.get("url")]:[]},X9:function(a,b){var c=y.get(a),e=this.pDa(a);if(e){if(b&&!this.pia(e)){c=this.Jha(a);if(c!=e)return[c,e]}return[e]}e=n(t(a,c),v.xZ);if(e.length>0)return j(e);e=this.$Da(a);if(b&&!this.pia(e)){c=this.Jha(a);if(c!=
e)return[c,e]}return[e]},rQa:function(a){return a.get("tags").indexOf(v.xZ)>=0},T9:function(a,b,c){if(y.get(a)!=y.Fk)return b;var e;switch(c){case x.FRONT:e=a.get("front");break;case x.Ja:e=a.get("left");break;case x.BACK:e=a.get("back");break;case x.Xa:e=a.get("right");break;case x.ic:e=a.get("top");break;case x.ac:e=a.get("bottom")}a=e&&e.get("levels")||[];if(a.length==0)return q;a=a.filter(function(a){return a.get("width")==b.get("width")&&a.get("height")==b.get("height")&&a.get("grayscale",B)==
b.get("grayscale",B)&&a.get("colCount",1)==b.get("colCount",1)&&a.get("rowCount",1)==b.get("rowCount",1)});return a[0]},Sra:function(a,c,e,d,f,g,j,o){var a=a.get("url"),i=0;a.indexOf("{eye}")>=0||a.indexOf(encodeURI("{eye}"))>=0?a=b(a,"{eye}",J[e]):i=i+6*(f?A:K)[e];a.indexOf("{face}")>=0||a.indexOf(encodeURI("{face}"))>=0?a=b(a,"{face}",N[d]):c!=y.Fk&&(i=i+L[d]);a=b(a,"{row}",j);return a=b(a,"{column}",o+i*g)},mPa:function(a,b){return z.bJ(z.nA(a.get("image")),90,90,H.Qg,b)},KOa:function(a,b){return z.bJ(z.nA(a.get("image")),
a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},YOa:function(a,b){return z.bJ(z.nA(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},zPa:function(a,b){return z.bJ(z.nA(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},vra:function(a,b){return z.bJ(z.nA(a.get("image")),a.get("hfov"),a.get("vfov"),a.get("scaleMode"),b)},nA:function(a){return a&&a.get("levels")||[]},bJ:function(a,b,c,f,g){if(!a||!a.length)return q;for(var a=k(a,v.Fq,a),i=e(),p=0;p<i.length;p++)a=
n(a,i[p],a);i=1E4;d()||(E.If()?i=2048:E.hv()?i=1280:E.ob()&&(i=1024));p=j(a)[a.length-1];b=D.c$(b,c,p.get("width"),p.get("height"),f,g);return o(a,[b.ue*i/90,b.nq*i/90])},TOa:function(a){var b=z.nA(a.get("image"));if(!b||!b.length)return q;for(var b=k(b,v.Fq,b),c=e(),d=0;d<c.length;d++)b=n(b,c[d],b);c=j(b)[b.length-1];a=D.qW(a.get("width"),a.get("height"),c.get("width"),c.get("height"),a.get("scaleMode"));return o(b,[a.width,a.height])},pPa:function(a){var b=z.nA(a.get("image"));if(!b||!b.length)return q;
for(var b=k(b,v.Fq,b),c=e(),f=0;f<c.length;f++)b=n(b,c[f],b);c=1E4;d()||(E.If()?c=2048:E.hv()?c=1280:E.ob()&&(c=1024));var g=f=20;if((a=a.get("vertices"))&&a.length==4){f=a[0].get("yaw");g=a[1].get("yaw");g<f&&(g=g+360);f=g-f;g=a[0].get("pitch");a=a[3].get("pitch");g=g-a}return o(b,[f*c/90,g*c/90])},Jha:function(a){for(var b=y.get(a),a=t(a,b),a=i(a,b),a=n(a,v.Fq,a),b=e(),c=0;c<b.length;c++)a=n(a,b[c],a);return o(a,[0,0])},$Da:function(a){for(var b=y.get(a),a=t(a,b),a=i(a,b),a=k(a,v.Fq,a),d=e(),f=
0;f<d.length;f++)a=n(a,d[f],a);b=g(b,c(a));return o(a,b)},pDa:function(a){var b=e();if(b.length==0)return q;for(var d=y.get(a),f=t(a,d),f=i(f,d),f=k(f,v.Fq,f),a=[],j=0;j<b.length&&a.length==0;j++)a=n(f,b[j]);if(a.length==0)return q;b=g(d,c(a));return o(a,b)},pia:function(a){return a.get("tags").indexOf(v.xZ)>=0?B:E.Yd()==E.Ny?m:M.LX(a.get("url"))}},L=function(){var a={};a[x.Xa]=0;a[x.Ja]=1;a[x.ic]=2;a[x.ac]=3;a[x.FRONT]=4;a[x.BACK]=5;return a}(),K=function(){var a={};a[w.Xa]=0;a[w.Ja]=1;a[w.Cs]=0;
return a}(),A=function(){var a={};a[w.Xa]=1;a[w.Ja]=0;a[w.Cs]=0;return a}(),N=function(){var a={};a[x.Xa]="r";a[x.Ja]="l";a[x.ic]="u";a[x.ac]="d";a[x.FRONT]="f";a[x.BACK]="b";return a}(),J=function(){var a={};a[w.Ja]="l";a[w.Xa]="r";a[w.Cs]="b";return a}();return z});
define("ep",["require","t"],function(a){function b(a){this.kg=a;"CANVAS"==a.tagName?(this.J=a,this.pc=1):(this.J=document.createElement("canvas"),this.pc=g.le()==g.aj?0.5:1,this.J.width=Math.round(a.width*this.pc),this.J.height=Math.round(a.height*this.pc));this.ja=this.J.getContext("2d");this.ja.globalCompositeOperation="copy";this.J!=a&&this.ja.drawImage(a,0,0,a.width,a.height,0,0,this.J.width,this.J.height)}function d(a,b,c){0>a?a=c==THREE.RepeatWrapping?b+a%b:c==THREE.MirroredRepeatWrapping?0==
Math.floor(Math.abs(a/b))%2?Math.abs(a%b):b-1+a%b:0:a>=b&&(a=c==THREE.RepeatWrapping?a%b:c==THREE.MirroredRepeatWrapping?1==Math.floor(a/b)%2?b-1-a%b:a%b:b-1);return a}function c(a,b,c){try{if(a instanceof CanvasRenderingContext2D)return a.getImageData(b,c,1,1).data;if(a.tagName&&"CANVAS"==a.tagName)return a.uFa?[0,0,0,0]:a.getContext("2d").getImageData(b,c,1,1).data;f.drawImage(a,b,c,1,1,0,0,1,1);return f.getImageData(0,0,1,1).data}catch(d){return[0,0,0,0]}}var g=a("t");b.prototype.transparent=function(a,
c){return b.transparent(this.ja,Math.round(a*this.pc),Math.round(c*this.pc))};b.prototype.xv=function(a,c){return b.xv(this.ja,Math.round(a*this.pc),Math.round(c*this.pc))};b.prototype.info=function(a,c){return b.info(this.ja,Math.round(a*this.pc),Math.round(c*this.pc))};b.prototype.dispose=function(){this.J!=this.kg&&(this.J.width=this.J.height=0);this.kg=this.J=this.ja=q};b.KTa=function(a,c,f){if(!a.image||!a.image.width||!a.image.height)return m;c=d(Math.round(c*a.image.width),a.image.width,a.wrapS);
f=d(Math.round((1-f)*a.image.height),a.image.height,a.wrapT);return!b.transparent(a.image,c,f)};b.transparent=function(a,c,d){return!b.xv(a,c,d)};b.xv=function(a,b,d){return!a.tagName||a.tagName&&"VIDEO"==a.tagName?m:0<c(a,b,d)[3]};b.info=function(a,b,d){a=c(a,b,d);b=a[3];return{xv:0<b,opacity:b,color:"#"+i[a[0]]+i[a[1]]+i[a[2]]}};a=document.createElement("canvas");a.width=a.height=1;var f=a.getContext("2d");f.globalCompositeOperation="copy";var i=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 b});
define("kU","require,kG,jU,nU,eQ,iS,md,jF,mB,ep,kH".split(","),function(a){function b(a,b,c,e,f,g){for(a=(a-b)/g;c+180<e;)e=e-360;for(;c-180>e;)e=e+360;c=(c-e)/g;return c=a<-0.1||a>0.1?d(f,c,Math.abs(1/(1500*a))):d(f,c,0.08)}function d(a,b,c){a=(b-a)*(1-c);Math.abs(a)<1.0E-5&&(a=0);return b-a}var c=a("kG"),g=a("jU"),f=a("nU"),i=a("eQ"),e=a("iS"),j=a("md"),o=a("jF"),k=a("mB"),n=a("ep"),r=a("kH"),a=c.extend(e,function(a){e.call(this);this.n=a;this.bk.push(this.n);this.Cf=this.Cf.bind(this);this.ke=
i.xa("CeilingCapPanoramaOverlay",this.n)?"ceiling":"tripod";this.set("tag","Cap");this.set("pitch",this.ke=="tripod"?-90:90);this.Sd=B;this.jB=this.H5=this.qr=l;this.SHa=this.ke=="tripod"?1:-1;this.dj=this.jk=this.Cg=q});a.prototype.Eb=function(){e.prototype.Eb.call(this);this.Cg=(new o(f.U)).Pl(this.hp.bind(this));this.jk=(new o(f.gc)).mo(this.VA.bind(this));g.pa(this.n,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Cf,m)};a.prototype.Jb=function(){this.dj&&this.dj.dispose();
this.dj=q;this.Cg.dispose();this.jk.dispose();g.na(this.n,["angle","distance","hfov","image.levels.url","inertia","rotate"],this.Cf);e.prototype.Jb.call(this)};a.prototype.Cf=function(){this.set("angle",this.n.get("angle"));this.set("distance",this.n.get("distance"));this.set("hfov",this.n.get("hfov"));var a=k.KOa(this.n,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.n.get("inertia"));
this.set("rotate",this.n.get("rotate"))};a.prototype.em=function(){var a=e.prototype.em.call(this);this.Cg.We(a);this.jk.We(a);return a};a.prototype.X=function(a){this.e8();this.kG(a);e.prototype.X.call(this,a)};a.prototype.e8=function(){if(this.D("imageURL")&&this.get("imageURL")){this.set("textureSource",new j(this.get("imageURL")));this.set("contentWidth",this.get("imageWidth"));this.set("contentHeight",this.get("imageHeight"))}};a.prototype.hp=function(){this.dj&&this.dj.dispose();this.dj=new n(this.get("textureSource").jf());
this.trigger(f.Oc);this.trigger(f.U)};a.prototype.VA=function(a,b){var c=0;b.Zr(function(a){(a=b.Fl(a))&&(c=c+a.Kg)});this.trigger(new r(f.gc,c/b.Zc.length))};a.prototype.kG=function(a){this.set("rendererYaw",a.Na);if(this.D("angle","inertia","rotate")||(this.get("rotate")||this.get("inertia"))&&this.D("rendererYaw")){var c=this.get("angle"),e=this.get("rotate"),d=this.get("inertia"),f=this.SHa*a.Na;e&&(c=c+f);var g=0,j=c-f;if(this.qr!==l){if(d)if(e){g=b(f,this.jB,c,this.qr,this.H5,a.Qe);c=this.qr+
g*a.Qe}else{g=b(f,this.jB,j,this.Vla,this.H5,a.Qe);j=this.Vla+g*a.Qe;c=j+f}this.qr!=c&&this.wa()}this.Vla=j;this.qr=c;this.H5=g;this.jB=f;this.set("rotationZ",-c)}};a.prototype.bn=function(a){if(a.$e==f.Hk){var b=!a.zl()&&this.Mp(a);if(b){a.iy(this.n);this.n.get("useHandCursor")&&a.jy(this.n);a.wk(this.get("distance"))}if(this.Sd!=b){this.Sd=b;this.n.trigger(this.Sd?f.bc:f.rb);a.ms()&&this.n.trigger(this.Sd?f.Gk:f.Sh)}}else if(a.$e==f.Qj&&!a.zl()&&this.Mp(a)){this.n.NG(f.ca,m).length>1&&a.rs(this.n);
a.wk(this.get("distance"));this.n.trigger(f.ca)}};a.prototype.Mp=function(a){return this.Jt(a.Ap).some(function(a){return this.dj&&this.dj.xv(a.x,a.y)}.bind(this))};return a});
define("jx","require,kG,nU,gE,iy,bu".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("iy"),f=a("bu"),a=b.extend(g,function(){g.call(this);this.dh=new THREE.Matrix4;this.Ipa=B;this.fi=new THREE.Matrix4;this.Sf=q;this.pl=new THREE.Matrix4;this.wL=this.gL=0;this.eI=0.75;this.JI=0.5;this.dr=4;this.a4=0;this.er=-2;this.ep=3;this.hS=0;this.hA=7;this.aL=this.Cx=1;this.TJ=0.15;this.iA=this.dB=0;this.DR=this.HT=c.L;this.QU=this.KU=1E3}),i=Math.PI/180,e=new THREE.Matrix4;a.prototype.$l=I();a.prototype.Eb=
function(){g.prototype.Eb.call(this);this.trigger(d.Oc);this.trigger(d.U)};a.prototype.Jb=function(){this.W_()};a.prototype.ek=function(){this.$l();this.yL()};a.prototype.fk=function(){this.wa()};a.prototype.yL=function(){if(this.Sf){this.W_();this.Nfa()}};a.prototype.wQ=I();a.prototype.Nfa=function(){this.HIa();this.Sf=new THREE.Group;for(var a=this.DR==c.S,b=this.dB,e=this.iA;e+b>0;){var d=Math.random()*(e+b)<=e;d?e--:b--;var f=this.wQ();f.matrixAutoUpdate=B;f.overdraw=B;f.material.opacity=0;f.userData=
{wOa:d,kH:new THREE.Matrix4,hqa:new THREE.Matrix4,haa:new THREE.Matrix4,y:l,pwa:l,T$:a};this.Sf.add(f);a&&this.o6(f,this.er,this.ep);this.FIa(f)}this.gL=a?this.Sf.children.length:0;this.V8.add(this.Sf);this.xea()};a.prototype.W_=function(){if(this.Sf){this.Sf.parent&&this.Sf.parent.remove(this.Sf);for(var a=0,b=this.Sf&&this.Sf.children.length;a<b;a++)this.Sf.children[a].material.dispose();this.Sf=q;this.wL=0}};a.prototype.HIa=function(){this.pl=(new THREE.Matrix4).makeScale(this.Cx,this.Cx,this.Cx)};
a.prototype.o6=function(a,b,c){b=b+Math.random()*(c-b);if(a.userData.wOa){var c=this.hA,e=360*Math.random()*i;a.userData.kH.makeTranslation(c*Math.cos(e),b,c*Math.sin(e))}else{c=Math.random()*2*Math.PI;e=this.a4+(this.dr-this.a4)*Math.sqrt(Math.random());a.userData.kH.makeTranslation(e*Math.cos(c),b,e*Math.sin(c))}a.userData.kH.multiply(this.pl);a.userData.y=b};a.prototype.FIa=function(a){var b=this.TJ+Math.random()*(this.NA-this.TJ),c;do c=Math.random()*this.hS;while(c>80&&c<100);var d=Math.random()*
360,f=Math.sin(d*i)*Math.sin(c*i)*b,g=-Math.cos(c*i)*b,b=Math.cos(d*i)*Math.sin(c*i)*b;a.userData.pwa=g*this.Cx;a.userData.hqa.makeTranslation(f,g,b);a.userData.haa.makeRotationY(d*i);a.userData.haa.multiply(e.makeRotationX(-c*i))};a.prototype.X=function(a){g.prototype.X.call(this,a);this.fMa(a);this.V8=a.ug;if(this.V8!=(this.Sf&&this.Sf.parent)){this.W_();this.V8&&this.Nfa()}else this.D("index")&&this.xea();this.DMa(a)};a.prototype.fMa=function(a){a=a.$b&&f.Ee()==f.sD.Sl;if(a!=this.eia)(this.eia=
a)&&setTimeout(function(){this.Sf&&this.yL()}.bind(this),0)};a.prototype.DMa=function(a){if(this.Sf){if(this.D("composedTranslationX","composedTranslationY","composedTranslationZ")){this.Ipa=this.get("composedTranslationX")!=0||this.get("composedTranslationY")!=0||this.get("composedTranslationZ")!=0;this.dh.makeTranslation(-this.get("composedTranslationX")*this.dr,this.get("composedTranslationY")*this.dr,this.get("composedTranslationZ")*this.dr)}var b=this.HT==c.S,e=this.Sf.children,d=e.length,f=
b?Math.round(d*a.Qe/this.KU):0;if(this.gL+f>0){this.wL=b?0:Math.min(this.gL,this.wL+Math.round(d*a.Qe/this.QU));a=this.get("composedAlpha");for(b=0;b<d;b++){var g=e[b];if(!g.userData.T$)if(f>0){f--;g.userData.T$=m;this.gL++;this.o6(g,this.ep,this.ep+(this.ep-this.er))}else continue;g.userData.kH.multiply(g.userData.hqa);g.userData.y=g.userData.y+g.userData.pwa;if(g.userData.y<this.er||g.userData.y>this.ep){if(this.wL>0){this.wL--;g.userData.T$=B;this.gL--;g.material.opacity=0;continue}var i=g.userData.y<
this.er?this.ep:this.er;this.o6(g,i,i)}i=a;g.userData.y<this.er+this.JI?i=i*((g.userData.y-this.er)/this.JI):g.userData.y>this.ep-this.eI&&(i=i*((this.ep-g.userData.y)/this.eI));g.material.opacity=i*this.aL;if(this.Ipa){g.matrix.copy(this.dh);g.matrix.multiply(g.userData.kH)}else g.matrix.copy(g.userData.kH);g.matrix.multiply(g.userData.haa);g.matrixWorldNeedsUpdate=m}this.wa()}}};a.prototype.xea=function(){if(this.Sf)for(var a=this.get("index"),b=0;b<this.Sf.children.length;b++)this.Sf.children[b].renderOrder=
a};return a});
define("mR",["require"],function(){function a(a){return a&&0==a.indexOf("#")}function b(a){return[parseInt(a.substr(1,2),16),parseInt(a.substr(3,2),16),parseInt(a.substr(5,2),16)]}function d(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={zRa:function(c,f,i){if(a(c)){var e=b(c),j=l,o=256;f.forEach(function(c){if(a(c)){var f=d(e,b(c));f<o&&(j=c,o=f)}});if(j&&o<=i)return j}return c},pW:function(a,c){return d(b(a),b(c))}};c.ZN=b;c.OC=function(a){a=b(a);return a[0]<<
16|a[1]<<8|a[2]<<0};c.KVa=a;return c});
define("iJ","require,kG,jU,gE,jx,mR,t".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("gE"),g=a("jx"),f=a("mR"),i=a("t"),a=b.extend(g,function(a){g.call(this);this.n=a;this.ek=this.ek.bind(this);this.fk=this.fk.bind(this);this.$l()});a.prototype.Eb=function(){g.prototype.Eb.call(this);this.n.set("state",this.n.get("startState"));d.pa(this.n,["color","intensity","speed","opacity","distance","maxDistance","farPlaneDistance","minSpeed","maxSpeed","particleCount","farPlaneParticleCount","particleScale"],
this.ek,m);d.pa(this.n,["state"],this.fk,m)};a.prototype.Jb=function(){d.na(this.n,["color","intensity","speed","opacity","distance","maxDistance","farPlaneDistance","minSpeed","maxSpeed","particleCount","farPlaneParticleCount","particleScale"],this.ek);d.na(this.n,["state"],this.fk);this.n.set("state",c.L);g.prototype.Jb.call(this)};a.prototype.ek=function(){this.$l();this.yL()};a.prototype.fk=function(){this.HT=this.n.get("state");this.wa()};a.prototype.$l=function(){g.prototype.$l.call(this);var a;
a=i.ob()||i.browser()==i.My?2500:i.If()?4E3:5E3;this.TJ=this.NA=this.n.get("speed",0.2)*0.2;this.dr=this.n.get("distance",0.5)*14.5+0.5;this.aL=this.n.get("opacity",0.1)*1;this.Cx=0.036;this.dB=this.n.get("intensity",0.1)*a;this.cc=f.ZN(this.n.get("color","#ffffff"));this.iA=0;this.hA=15;this.DR=this.n.get("initialState");this.KU=this.n.get("startDuration");this.QU=this.n.get("stopDuration");this.eI=0.75;this.JI=0.5;this.er=-2;this.ep=4;this.hS=180;this.pga()};a.prototype.wQ=function(){return new THREE.Sprite(this.Wz())};
a.prototype.Wz=function(){var a=new THREE.SpriteMaterial;a.map=this.Qq();a.side=THREE.FrontSide;a.transparent=m;a.depthTest=B;a.needsUpdate=m;return a};a.prototype.Qq=function(){if(this.jb)return this.jb;var a=document.createElement("canvas");a.width=a.height=e;this.jb=new THREE.Texture;this.jb.image=a;this.jb.needsUpdate=m;this.pga();return this.jb};a.prototype.pga=function(){if(this.jb){var a=this.jb.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.cc[0]+", "+this.cc[1]+", "+this.cc[2]+", 1)");c.addColorStop(1,"rgba("+this.cc[0]+", "+this.cc[1]+", "+this.cc[2]+", 0)");b.fillStyle=c;b.clearRect(0,0,a.width,a.height);b.fillRect(0,0,a.width,a.height);this.jb.needsUpdate=m}};var e=32;return a});
define("nQ","require,kG,hy,iA,ef,iU,jM,mk".split(","),function(a){a("kG");var b=a("hy"),d=a("iA"),c=a("ef"),g=a("iU"),f=a("jM"),i=a("mk"),e=new THREE.Matrix4,j=Math.PI/180;return{tt:function(){this.set("distance",l);this.set("width",100);this.set("height",100);this.set("offsetX",l);this.set("offsetY",l);this.set("yaw",0);this.set("pitch",0);this.set("roll",0);this.set("rotationZ",0);this.set("contentWidth",100);this.set("contentHeight",100);this.set("scale",1);this.set("scaleMode",q);this.set("horizontalAlign",
q);this.set("verticalAlign",q);this.zh=this.uw();this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.Pn=new THREE.Matrix4;this.jm=new THREE.Matrix4;this.LD=new THREE.Matrix4;this.MF=new THREE.Matrix4;this.Gea=new THREE.Matrix4;this.Ni=new THREE.Matrix4;this.Hfa=new THREE.Matrix4;this.mI=new THREE.Matrix4;this.wI=new THREE.Matrix4;this.iw=new THREE.Matrix4;this.rh=new THREE.Matrix4;this.ND=new THREE.Matrix4;this.Mz=new THREE.Vector3},Tu:function(a){this.Qp(a);this.C8()},C8:function(){if(this.D("width",
"height","contentWidth","contentHeight","scaleMode","horizontalAlign","verticalAlign")){var a=g.qW(this.get("width"),this.get("height"),this.get("contentWidth"),this.get("contentHeight"),this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign")),a=d.fva(this.zh[1],a.IO,a.LO,a.zv,a.Av);if(this.zh[1]!=a){this.zh[1]=a;(a=this.sE())&&c.zaa(a,this.zh[1])}}},sE:function(){var a=this.get("meshGroup");return a?c.zk(a)[1]:q},em:function(){return[0,1].map(function(a){var e=a==0?this.Kfa():
this.VD(),a=c.create(this.zh[a],e);f.ss(a,f.pn);f.ts(a,f.Co);f.Ay(a,b.oD);f.tH(a,1);return a}.bind(this))},uw:function(){return[d.IG(),d.IG()]},Qp:function(a){var b=B;if(this.D("composedTranslationX","composedTranslationY","composedTranslationZ")){this.dh.makeTranslation(-this.get("composedTranslationX")*0.5*d.of,this.get("composedTranslationY")*0.5*d.of,this.get("composedTranslationZ")*0.5*d.of);b=m}if(this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.qd.makeRotationY(-a.Na*
j);this.qd.multiply(e.makeRotationX(-this.get("composedDeltaPitch")*j));this.qd.multiply(e.makeRotationY(this.get("composedDeltaYaw")*j));this.qd.multiply(e.makeRotationY(a.Na*j));b=m}if(this.D("yaw","pitch")){this.Pn.makeRotationY(-this.get("yaw")*j);this.Pn.multiply(e.makeRotationX(this.get("pitch")*j));b=m}this.D("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&this.set("z",this.get("composedTranslationX")==0&&this.get("composedTranslationY")==0&&this.get("composedTranslationZ")==
0&&this.get("distance")!==l?d.jC(this.get("distance")):d.cv());if(this.D("z")){this.jm.makeTranslation(0,0,-this.get("z"));b=m}if(b){this.ND.copy(this.dh);this.ND.multiply(this.qd);this.ND.multiply(this.Pn);this.ND.multiply(this.jm)}var f=B;this.set("rendererYaw",a.Na);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.He);this.set("rendererCameraFOV",a.Ph);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);a.Ph&&this.D("z","rendererCameraFOV")&&this.set("rendererHeightZ",
Math.tan(a.Ph*j*0.5)*this.get("z")*2);if(a.Ph&&(b||this.D("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR"))){if(a.$b){this.LD.copy(this.ND);this.MF.identity()}else{f=a.camera;this.LD.copy(f.matrixWorld);this.Mz.setFromMatrixPosition(f.matrixWorld);this.Mz.applyMatrix4(this.ND);this.Mz.applyMatrix4(f.matrixWorldInverse);var r=-10,p=-10;if(this.Mz.z<0){this.Mz.applyMatrix4(f.projectionMatrix);r=this.Mz.x*0.5;p=this.Mz.y*0.5}var t=
this.get("rendererHeightZ");this.MF.makeTranslation(r*t*f.aspect,p*t,0)}f=m}if(this.D("roll")){this.Ni.makeRotationZ(this.get("roll")*j);f=m}if(a.Ph&&(b||this.D("rendererHeight","inVR","rendererHeightZ","width","height","contentWidth","contentHeight","scale","scaleMode","horizontalAlign","verticalAlign","flipHorizontally","offsetX","offsetY"))){var b=a.$b?1024:a.height,f=this.get("scale")*this.get("rendererHeightZ")/b*(a.$b?2:1),s=this.get("width"),t=this.get("height"),u=this.get("offsetX"),v=this.get("offsetY"),
p=this.get("contentWidth"),w=this.get("contentHeight"),r=(this.get("flipHorizontally")?-1:1)*f,x=this.get("scaleMode"),b=this.get("horizontalAlign")||i.ae,a=this.get("verticalAlign")||i.zd,x=g.qW(s,t,p,w,x,b,a),w=r*s,p=f*t;this.mI.makeScale(w,p,1);s=r*(s*0.5-u);t=f*(v-t*0.5);this.Gea.makeTranslation(s,t,0);r=r*x.width;f=f*x.height;this.wI.makeScale(r,f,1);b=b==i.Ja?-(w-r)*0.5:b==i.Xa?(w-r)*0.5:0;a=a==i.ic?(p-f)*0.5:a==i.ac?-(p-f)*0.5:0;this.Hfa.makeTranslation(b+s,a+t,0);f=m}if(f){this.rh.copy(this.LD);
this.rh.multiply(this.jm);this.rh.multiply(this.MF);this.rh.multiply(this.Ni);this.iw.copy(this.rh);this.iw.multiply(this.Gea);this.iw.multiply(this.mI);this.rh.multiply(this.Hfa);this.rh.multiply(this.wI);a=c.zk(this.get("meshGroup"));c.Yp(a[0],this.iw);c.Yp(a[1],this.rh)}}}});
define("fL",["require","nU","gE"],function(a){function b(a,b){this.od=a;this.dc=b;this.vb=B;this.YZ();this.a_();this.XA()}var d=a("nU"),c=a("gE");b.prototype.clear=function(){this.W5();this.c6();this.od.set("state",c.L);this.dc=this.od=q};b.prototype.Jf=function(a){this.vb!=a&&(this.vb=a,this.Lr())};b.prototype.XA=function(){this.dc.yd(this.od.get("state"))};b.prototype.sK=function(){this.Lr()};b.prototype.uK=function(){this.dc.yaa(this.od.get("frameDuration"))};b.prototype.tK=function(){this.dc.Rua("first"==
this.od.get("finalFrame"))};b.prototype.qK=function(){this.od.trigger(d.Ik)};b.prototype.pK=function(){this.od.trigger(d.Ga)};b.prototype.rK=function(){this.od.set("state",this.dc.og())};b.prototype.Lr=function(){this.od.get("autoplay")&&this.dc.yd(this.vb?c.S:c.L)};b.prototype.YZ=function(){this.od.bind(d.u("state"),this.XA,this,m);this.od.bind(d.u("autoplay"),this.sK,this,m);this.od.bind(d.u("frameDuration"),this.uK,this,m);this.od.bind(d.u("finalFrame"),this.tK,this,m)};b.prototype.W5=function(){this.od.unbind(d.u("state"),
this.XA,this,m);this.od.unbind(d.u("autoplay"),this.sK,this,m);this.od.unbind(d.u("frameDuration"),this.uK,this,m);this.od.unbind(d.u("finalFrame"),this.tK,this,m)};b.prototype.a_=function(){this.dc.bind(d.Ik,this.qK,this,m);this.dc.bind(d.Ga,this.pK,this,m);this.dc.bind(d.Fc,this.rK,this,m)};b.prototype.c6=function(){this.dc.unbind(d.Ik,this.qK,this,m);this.dc.unbind(d.Ga,this.pK,this,m);this.dc.unbind(d.Fc,this.rK,this,m)};return b});
define("bf","require,kG,nU,gE,cs,fQ,bg".split(","),function(a){function b(a,b,c,e){this.p$=a;this.src=a.src;this.qX=b;this.jN=c;this.jW=e;this.eC=this.p$.width/this.jN;this.dC=this.p$.height/this.qX}var d=a("kG"),c=a("nU"),g=a("gE");a("cs");var f=a("fQ"),i=a("bg"),a=d.extend(f,function(a,d,j,o,i,s,u){f.call(this);this.om=i;this.Wg=new b(a,d,j,i);this.wma=s;this.yaa(o);this.D1=u;this.J=document.createElement("canvas");this.J.width=this.Wg.eC;this.J.height=this.Wg.dC;this.ja=this.J.getContext("2d");
this.ja.globalCompositeOperation="copy";this.o=g.L;this.WT=this.gm=0;this.y0=l;this.yh=e.Wi(this.Wg);this.yh.bind(c.qa,this.gj,this,m);this.gj()});a.prototype.yaa=function(a){if(this.qe!==a){var b=this.qM;this.qe=a;this.qM=this.qe*this.Wg.jW;this.E1=this.qM-this.qe*0.1;if(b!==l)this.gm=this.gm/b*this.qM}};a.prototype.Rua=function(a){if(this.D1!==a){this.D1=a;this.gj()}};a.prototype.yd=function(a){if(this.o!=a){if(a==g.Gb){if(this.o!=g.S)return}else if(a==g.S){if(this.o==g.L){this.gm=this.WT=0;this.gj()}}else if(a==
g.L&&(this.gm!=0||this.WT==0)){this.gm=this.E1;this.gj()}this.o=a;i.yb(this.rj,this);this.trigger(c.Fc)}};a.prototype.og=S("o");a.prototype.rj=function(a){if(this.o==g.S){this.gm=Math.min(this.gm+a,this.yh.yh.length*this.qe);if(this.gm>=this.qM){this.WT++;if(this.wma&&this.WT==this.wma){this.yd(g.L);this.gm=this.E1;this.trigger(c.Ga)}else{this.gm=this.gm%this.qM;this.trigger(c.Ik)}}this.gj();this.o==g.S&&i.yb(this.rj,this)}};a.prototype.clear=function(){this.yd(g.L);this.J.width=this.J.height=0;this.J=
q;e.fRa(this.Wg);this.Wg=q};a.prototype.mg=S("J");a.prototype.gj=function(){var a=this.D1&&this.gm>=this.E1?0:Math.floor(this.gm/this.qe);if(this.y0!=a&&a<this.yh.yh.length){this.y0=a;this.ja.drawImage(this.yh.get(this.y0),0,0);this.trigger(c.qa)}};b.prototype.isEqual=function(a){return this.src==a.src&&this.qX==a.qX&&(this.jN=a.jN)&&(this.eC=a.eC)&&(this.dC=a.dC)&&(this.jW=a.jW)};var e={mj:[],dya:2E3,Wi:function(a){a=this.Yh(a);a.BC++;this.eoa(a);return a.frames},fRa:function(a){a=this.Yh(a);a.BC--;
a.BC==0&&this.yKa(a)},Yh:function(a){for(var b=0;b<this.mj.length;b++)if(this.mj[b].COa.isEqual(a))return this.mj[b];b={};b.COa=a;b.frames=new j(a);b.BC=0;this.mj.push(b);return b},yKa:function(a){this.eoa(a);a.C9=setTimeout(function(){e.SBa(a)},e.dya)},eoa:function(a){if(a.C9){clearTimeout(a.C9);a.C9=q}},SBa:function(a){this.mj.splice(this.mj.indexOf(a),1);a.frames.clear()}},j=d.extend(f,function(a){f.call(this);this.Wg=a;this.yh=[];o.add(this)});j.prototype.clear=function(){o.remove(this);this.yh.forEach(function(a){a.width=
0;a.height=0});this.yh=q};j.prototype.get=function(a){return this.yh[a]};j.prototype.vOa=function(){var a=this.yh.length%this.Wg.jN,b=Math.floor(this.yh.length/this.Wg.jN)%this.Wg.qX,e=document.createElement("canvas");e.width=this.Wg.eC;e.height=this.Wg.dC;var d=e.getContext("2d");d.globalCompositeOperation="copy";d.drawImage(this.Wg.p$,a*this.Wg.eC,b*this.Wg.dC,this.Wg.eC,this.Wg.dC,0,0,this.Wg.eC,this.Wg.dC);j.LCa(e);this.yh.push(e);this.trigger(c.qa)};j.LCa=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 o={mj:[],z7:q,add:function(a){this.mj.push(a);this.Oma()},remove:function(a){this.mj=this.mj.filter(function(b){return b!=a})},Oma:function(){if(!this.z7)this.z7=setTimeout(function(){this.z7=q;this.OK()}.bind(this),40)},OK:function(){if(this.mj.length!=0){for(var a=(new Date).getTime()+10;(new Date).getTime()<a;){var b=this.mj.filter(function(a){return a.yh.length==0}),b=b.length>0?b[0]:this.mj[0];
b.vOa();if(b.yh.length==b.Wg.jW){this.mj.splice(this.mj.indexOf(b),1);if(this.mj.length==0)return}}this.Oma()}}};return a});
define("gA","require,jU,nU,gE,hy,eQ,cn,ef,fL,eR,jM,ep,bf".split(","),function(a){var b=a("jU"),d=a("nU"),c=a("gE"),g=a("hy"),f=a("eQ"),i=a("cn"),e=a("ef"),j=a("fL"),o=a("eR"),k=a("jM"),n=a("ep"),r=a("bf");return{Xz:function(){this.set("visible",B);this.set("inView",B);this.set("blending",0);this.set("chromaColor",l);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("premultipliedAlpha",B);this.set("projected",B);this.set("image",q);this.set("level",q);this.set("levelURL",q);this.set("state",
q);this.set("visibleOnStop",m);this.set("side",l);this.FS=this.FS.bind(this);this.IS=this.IS.bind(this);this.dj=this.Fa=this.vn=this.dc=q},Aj:function(){this.e8();this.zM();this.JMa()},e8:function(){if(this.D("level")){var a=this.get("level");this.set("levelURL",a&&a.get("url"))}if(this.D("image","level","levelURL","projected")){this.nfa();this.Fa=this.get("image");this.ib=this.get("level");this.set("textureSource",new o(this.Fa&&this.ib.get("url")));this.set("premultipliedAlpha",this.Fa&&this.ib.get("premultipliedAlpha"));
this.Iya();if(this.Fa){this.uya();this.xya()}else{this.trigger(d.Oc);this.trigger(d.U)}}},zM:function(){if(this.D("blending","chromaColor","chromaThreshold","chromaSmoothing","premultipliedAlpha","side")){var a=new i.kn;a.ly=this.get("blending");a.Vr=this.get("chromaColor");a.iN=this.get("chromaThreshold");a.hN=this.get("chromaSmoothing");a.premultipliedAlpha=this.get("premultipliedAlpha");a.side=this.get("side");this.set("materialConfig",a)}},JMa:function(){if(this.D("meshGroup","projected","visible")){var a=
this.get("projected")&&this.get("visible")?g.lZ:g.oD;e.zk(this.get("meshGroup")).forEach(function(b){k.Ay(b,a)}.bind(this))}},vl:function(){this.D("visible","composedAlpha","image","state","visibleOnStop")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0&&(this.get("visibleOnStop")||this.get("state")!=c.L));this.D("composedAlpha","meshGroup","inView")&&e.Ve(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0);this.vn&&this.vn.Jf(this.get("inView"))},FS:function(){this.Fa&&
f.xa("AnimatedImageResource",this.Fa)?this.set("visibleOnStop",this.Fa.get("visibleOnStop")):this.set("visibleOnStop",m)},IS:function(){this.set("levelURL",this.ib.get("url"))},SE:function(){this.nfa()},nfa:function(){if(this.vn){this.vn.clear();this.vn=q}if(this.dc){this.dc.unbind(d.qa,this.lJ,this,m);this.dc.unbind(d.Fc,this.bia,this,m);this.dc.clear();this.dc=q}if(this.dj){this.dj.dispose();this.dj=q}if(this.get("textureSource")){this.f6();this.set("textureSource",q)}if(this.Fa){this.pIa();this.Fa=
q}if(this.ib){this.sIa();this.ib=q}},uya:function(){b.pa(this.Fa,["visibleOnStop"],this.FS,m)},pIa:function(){b.na(this.Fa,["visibleOnStop"],this.FS,m)},xya:function(){b.pa(this.ib,["url"],this.IS,m)},sIa:function(){b.na(this.ib,["url"],this.IS,m)},mJ:function(){this.f6();var a,b=this.get("image");if(f.xa("AnimatedImageResource",b)){this.dc=new r(this.get("textureSource").jf(),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.dc.mg();this.dc.bind(d.Fc,this.bia,this,m);this.dc.bind(d.qa,this.lJ,this,m);this.vn=new j(b,this.dc);this.set("visibleOnStop",b.get("visibleOnStop"));this.set("state",this.dc.og())}else{a=this.get("textureSource").jf();this.dj=new n(a);this.set("visibleOnStop",m);this.set("state",q)}this.vl();this.set("contentWidth",a.width);this.set("contentHeight",a.height);this.get("textureSource").Ll(a);this.trigger(d.Oc);this.trigger(d.U)},cia:function(){this.f6();
this.trigger(d.Oc);this.trigger(d.U)},bia:function(){this.set("state",this.dc.og())},lJ:function(){this.get("textureSource").update();this.wa()},Iya:function(){var a=this.get("textureSource");a.bind(d.U,this.mJ,this,m);a.bind(d.zc,this.cia,this,m)},f6:function(){var a=this.get("textureSource");a.unbind(d.U,this.mJ,this,m);a.unbind(d.zc,this.cia,this,m)},g2:function(a){return this.dj&&this.dj.kg==a.source?this.dj.info(a.x,a.y):n.info(a.source,a.x,a.y)}}});
define("nR","require,jU,nU,eQ,mR,hz".split(","),function(a){function b(a){a=a.get("mapColor");return a=="image"||a=="transparent"||a=="any"}function d(a){a=a.get("mapColor");return a!="image"&&a!="transparent"&&a!="any"}var c=a("jU"),g=a("nU"),f=a("eQ"),i=a("mR"),e=new (a("hz"));return{vw:function(){this.set("beamEnabled",B);this.ES=this.ES.bind(this);this.T2=q;this.Uh=[];this.Lq=[];this.Sw=q},bSa:function(a){if(this.Sw!=a){this.X5();this.Sw=a;this.Yda()}},Sp:function(a){this.Mx=a.Na;this.Lx=a.pitch},
X5:function(){this.Sw&&c.na(this.Sw,["areas"],this.ES,m)},Yda:function(){this.Sw&&c.pa(this.Sw,["areas"],this.ES,m)},sF:function(){this.X5();this.Yda()},tF:function(){this.bna([]);this.X5()},ES:function(){var a=this.Sw.get("areas",[]);this.T2=f.xa("HotspotPanoramaOverlayImage",this.n)||f.xa("FlatHotspotPanoramaOverlayImage",this.n)||f.xa("QuadHotspotPanoramaOverlayImage",this.n)?a.filter(b):a.filter(d);this.T2.forEach(function(a){e.set(a,0)})},bn:function(a){if(a.$e==g.Hk){var b=this.S1(a);if(b.length>
0){a.iy(b);this.Or(b)&&a.jy(b);a.wk(this.get("distance"));var c=this.$a(b,a.uC());c&&a.NV(c,this.Yx(a.uC()))}this.bna(b,a.ms(),a.uC())}else if(a.$e==g.Qj){b=this.S1(a);if(b.length>0){var e=B;b.forEach(function(a){a.trigger(g.ca);!e&&a.NG(g.ca,m).length>1&&(e=m)});a.wk(this.get("distance"));e&&a.rs(b)}}else if(a.$e==g.mZ){b=this.S1(a);if(b.length>0){e=B;b.forEach(function(b){var c={};a.ms()&&(c=a.uj.Hra());b.trigger(g.zb,c);!e&&b.NG(g.zb,m).length>1&&(e=m)});this.Lq=b;a.wk(this.get("distance"));e&&
a.rs(b)}}else if(a.$e==g.nZ&&this.Lq.length){this.Lq.forEach(function(b){var c={};a.ms()&&(c=a.uj.Hra());b.trigger(g.Wb,c)});this.Lq=[]}},S1:function(a){if(!this.get("beamEnabled")||this.get("alpha")==0||a.zl())return[];var b=this.Jt(a.Ap);return b.length==0?[]:this.T2.filter(function(a){var c=a.get("mapColor");return c=="any"?m:c=="image"?b.some(function(a){return this.g2(a).xv}.bind(this)):c=="transparent"?b.every(function(a){return!this.g2(a).xv}.bind(this)):c&&c[0]=="#"?b.some(function(a){return i.pW(this.g2(a).color,
c)<10}.bind(this)):B}.bind(this))},bna:function(a,b,c){this.Uh.forEach(function(d){if(a.indexOf(d)<0){var f=e.get(d)-1;e.set(d,f);if(f==0){d.trigger(g.rb,{center:c});b&&d.trigger(g.Sh)}}});var d=this.Uh;this.Uh=a;this.Uh.forEach(function(a){if(d.indexOf(a)<0){var f=(e.get(a)||0)+1;e.set(a,f);if(f==1){a.trigger(g.bc,{center:c});b&&a.trigger(g.Gk)}}})},$a:function(a,b){for(var c="",e=a.length-1;e>=0&&c=="";e--){var d=a[e];if(!b||d.get("displayTooltipInTouchScreens")&&this.ta.K.get("displayTooltipInTouchScreens")!==
B)c=d.get("toolTip","")}return c},Yx:function(a){if(a){var a=this.get("yaw")-this.Mx,b=this.get("pitch")-this.Lx;return Math.sqrt(a*a+b*b)}return 0},Or:function(a){for(var b=this.Sw.get("useHandCursor"),c=a.length-1;c>=0&&b===l;c--)b=a[c].get("useHandCursor");return!!b}}});
define("mO",["require","t","cw"],function(a){function b(){this.Hh=l;this.GE=this.fB=0;this.ka=m;this.nQ=this.A7=this.O1=l;this.vb=B}var d=a("t"),c=a("cw"),g=Math.PI/180,f=d.browser()==d.Qh?[-0.5,0]:[0,0];b.prototype.Dy=function(a){this.Hh!=a&&(this.Hh=a,this.ka=m)};b.prototype.Cy=function(a){if(a<this.fB+f[0]||a>this.fB+f[1])this.fB=a,this.ka=m};b.prototype.get=function(a,b){b!==l||(b=m);this.ka&&(this.X(),this.ka=B);var c=this.O1.get(a)||0,d=(this.A7.get(a)||0)-c;b&&(180<d?d-=360:-180>d&&(d+=360));
return c+d*this.nQ};b.prototype.b$=function(){this.ka&&(this.X(),this.ka=B);for(var a=this.O1.get("vertices"),b=this.A7.get("vertices"),d=[],f=0;f<a.length;f++){var g=a[f].get("yaw")||0,n=(b[f].get("yaw")||0)-g;180<n?n-=360:-180>n&&(n+=360);var r=a[f].get("pitch")||0,p=(b[f].get("pitch")||0)-r;d.push(new c(g+n*this.nQ,r+p*this.nQ))}return d};b.prototype.Ak=function(){return this.get("opacity",B)};b.prototype.mC=function(){var a=this.get("hfov")||this.get("vfov"),b=this.Hh[0].get("hfov")||this.Hh[0].get("vfov");
return Math.tan(0.5*a*g)/Math.tan(0.5*b*g)};b.prototype.X=function(){for(var a=this.GE,b,c=this.Hh.length-1,d,f;;){b=Math.min(a+1,c);d=this.Oha(a);f=this.Oha(b);if(d<=this.fB&&this.fB<=f)break;if(d>this.fB){if(0==a){b=a;break}a-=1}else{if(a==c){b=a;break}a+=1}}this.O1=this.Hh[a];this.A7=this.Hh[b];a=f-d;this.nQ=0<a?(this.fB-d)/a:0};b.prototype.Oha=function(a){return this.Hh[a].get("timestamp")};return b});
define("g",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.set("scaleMode",l);this.set("distance",l);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,"horizontalAlign,verticalAlign,scale,scaleMode,width,height,offsetX,offsetY,distance,playbackPositions".split(","),this.Fd,m)},Qn:function(){b.na(this.n,"horizontalAlign,verticalAlign,scale,scaleMode,width,height,offsetX,offsetY,distance,playbackPositions".split(","),
this.Fd)},Fd:function(){this.set("horizontalAlign",this.n.get("horizontalAlign"));this.set("verticalAlign",this.n.get("verticalAlign"));this.set("scale",this.n.get("scale"));this.set("scaleMode",this.n.get("scaleMode"));this.set("width",this.n.get("width"));this.set("height",this.n.get("height"));this.set("offsetX",this.n.get("offsetX",0.5*this.n.get("width")));this.set("offsetY",this.n.get("offsetY",0.5*this.n.get("height")));this.set("distance",this.n.get("distance"));this.set("playbackPositions",
this.n.get("playbackPositions"))},tf:function(){this.D("playbackPositions","currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("yaw",this.Za.get("yaw")),this.set("pitch",this.Za.get("pitch")),this.set("roll",this.Za.get("roll")),this.set("alpha",this.Za.Ak()))}}});
define("jh","require,kG,jU,nU,ef,fd,nQ,gA,nR,g,mB".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("ef"),f=a("fd"),i=a("nQ"),e=a("gA"),j=a("nR"),o=a("g"),k=a("mB"),n=0,a=b.extend(f,i,o,e,j,function(a){f.call(this);this.set("tag","FlatHotspotImage");this.set("id","flat_hs_image_"+n++);this.n=a;this.bk.push(this.n);this.Cf=this.Cf.bind(this)});a.prototype.Eb=function(){f.prototype.Eb.call(this);d.pa(this.n,["image.levels"],this.Cf,m)};a.prototype.Jb=function(){d.na(this.n,["image.levels"],
this.Cf);f.prototype.Jb.call(this)};a.prototype.Cf=function(){this.set("image",this.n.get("image"));this.set("level",k.TOa(this.n))};a.prototype.X=function(a){this.IB();f.prototype.X.call(this,a);this.D("inView")&&this.n.trigger(this.get("inView")?c.hc:c.nc)};a.prototype.IB=function(){if(this.D("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){g.setAttribute(a,g.Jy,this.get("panoramaId"));g.setAttribute(a,g.ZX,this.get("id"))}.bind(this))}};return a});
define("ly","require,kG,jU,nU,iy,jF,t,nx,bC,kH".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("iy"),f=a("jF");a("t");var i=a("nx"),e=a("bC"),j=a("kH"),a=b.extend(g,function(a){g.call(this);this.n=a;this.bk.push(this.n);this.ZS=this.ZS.bind(this);this.YS=this.YS.bind(this);this.$S=this.$S.bind(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Hotspot");this.set("over",B);this.set("centerOver",B);this.set("enabled",m);this.set("visible",B);this.set("alpha",
0);this.set("inVR",B);this.set("overlaysEnabled",m);this.set("enabledInVR",m);this.set("enabledInStandard",m);this.set("interactionEnabled",m);this.set("centerOverDisplay",B);this.set("rollOverDisplay",B);this.set("loadingActive",B);this.m_=this.n_=this.Rn=this.Hd=this.bf=q;this.Uh=[];this.l_=[];this.yl=q});a.prototype.Eb=function(){this.bf=(new f(c.U)).Pl(this.QA.bind(this));this.Hd=(new f(c.gc)).mo(this.UA.bind(this));this.Rn=(new f(c.Oc)).Pl(this.sGa.bind(this));this.n_=(new f(c.bc)).mo(this.lGa.bind(this));
this.m_=(new f(c.rb)).mo(this.kGa.bind(this));g.prototype.Eb.call(this);d.pa(this.n,["items","rollOverItems","maps","rollOverMaps"],this.ZS,m);d.pa(this.n,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.$S,m);d.pa(this.n,["areas"],this.YS,m)};a.prototype.Jb=function(){this.eG([],this.Uh);this.W7([],this.l_);this.bf.dispose();this.Hd.dispose();this.Rn.dispose();this.n_.dispose();
this.m_.dispose();d.na(this.n,["items","rollOverItems","maps","rollOverMaps"],this.ZS);d.na(this.n,["fadeInDuration","fadeOutDuration","enabledInVR","enabledInStandard","enabledInSurfaceSelection","enabled","interactionEnabled","centerOverDisplay","rollOverDisplay"],this.$S);d.na(this.n,["areas"],this.YS);this.get("visible")&&this.n.trigger(c.nc);g.prototype.Jb.call(this)};a.prototype.ZS=function(){this.set("items",this.ta.fv(this.n.get("items",[])));this.set("rollOverItems",this.ta.fv(this.n.get("rollOverItems",
[])));this.set("maps",this.ta.fv(this.n.get("maps",[])));this.set("rollOverMaps",this.ta.fv(this.n.get("rollOverMaps",[])));var a=[].concat(this.get("maps"),this.get("items"),this.get("rollOverMaps"),this.get("rollOverItems"));a.forEach(function(a){a.bSa(this.n)}.bind(this));this.get("items").forEach(function(a){a.set("projected",this.n.get("projected"))}.bind(this));this.gh(a);this.bf.We(a);this.Hd.We(a);this.Rn.We(a)};a.prototype.$S=function(){this.set("fadeInDuration",this.n.get("fadeInDuration"));
this.set("fadeOutDuration",this.n.get("fadeOutDuration"));this.set("enabled",this.n.get("enabled",m));this.set("enabledInVR",this.n.get("enabledInVR"));this.set("enabledInStandard",this.n.get("enabledInStandard",m));this.set("enabledInSurfaceSelection",this.n.get("enabledInSurfaceSelection",m));this.set("centerOverDisplay",this.n.get("centerOverDisplay"));this.set("rollOverDisplay",this.n.get("rollOverDisplay",B));this.set("interactionEnabled",this.n.get("interactionEnabled",m))};a.prototype.YS=function(){var a=
this.n.get("areas");this.n_.We(a);this.m_.We(a)};a.prototype.X=function(a){this.vl(a);g.prototype.X.call(this,a);this.Jd(a)};a.prototype.Jd=function(a){this.set("inVR",a.$b);this.set("surfaceSelection",a.DO);this.set("hotspotsEnabled",a.qC);if(this.D("items","rollOverItems","maps","rollOverMaps","over","centerOver","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","surfaceSelection","enabledInSurfaceSelection","enabled","interactionEnabled","rollOverDisplay","centerOverDisplay")||this.aa&&
this.aa.D("composedAlpha")){var b=a=B,d=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.aa&&this.aa.get("composedAlpha")>0,f=this.get("interactionEnabled");if(d){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")!==B&&this.get("rollOverDisplay")}this.get("rollOverItems").forEach(function(a){a.set("visible",b);a.set("beamEnabled",d&&b&&f)});var g=this.get("rollOverItems").length==0;this.get("items").forEach(function(a){a.set("visible",g||!b);a.set("beamEnabled",d&&(g||!b)&&f)});this.get("rollOverMaps").forEach(function(a){a.set("visible",B);a.set("beamEnabled",d&&b&&f)});var j=this.get("rollOverMaps").length==0;this.get("maps").forEach(function(a){a.set("visible",B);a.set("beamEnabled",
d&&(j||!b)&&f)});this.set("visible",a)}if(this.D("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.yl=new i("linear",[new e("alpha",a,s)],Math.max(u,1));this.wa();this.get("visible")?this.n.trigger(c.hc):this.n.trigger(c.nc)}};a.prototype.vl=function(a){if(this.yl){if(this.yl.Te())this.yl=q;else{this.yl.xb(a.Qe);this.set("alpha",this.yl.gb("alpha"))}this.wa()}};a.prototype.QA=function(){this.Bj();
this.trigger(c.U)};a.prototype.sGa=function(){this.Bj();this.trigger(c.Oc)};a.prototype.UA=function(){this.Bj()};a.prototype.Bj=function(){var a=0;this.Hd.Zr(function(b){var c=0,e;this.bf.Fl(b)?c=100:(e=this.Hd.Fl(b))&&(c=e.Kg);a=a+c}.bind(this));this.trigger(new j(c.gc,a/this.Hd.Zc.length))};a.prototype.lGa=function(a){a.data.center?this.W7([a.source],[]):this.eG([a.source],[])};a.prototype.kGa=function(a){a.data.center?this.W7([],[a.source]):this.eG([],[a.source])};a.prototype.eG=function(a,b){this.Uoa(this.Uh,
a,b);this.set("over",this.Uh.length>0)};a.prototype.W7=function(a,b){this.Uoa(this.l_,a,b);this.set("centerOver",this.l_.length>0)};a.prototype.Uoa=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("cx",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.set("scaleMode",l);this.set("distance",l);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.Fd,m)},Qn:function(){b.na(this.n,"horizontalAlign,verticalAlign,scale,scaleMode,distance,playbackPositions".split(","),this.Fd)},Fd:function(){this.set("horizontalAlign",this.n.get("horizontalAlign"));
this.set("verticalAlign",this.n.get("verticalAlign"));this.set("scaleMode",this.n.get("scaleMode"));this.set("distance",this.n.get("distance"));this.set("scale",this.n.get("scale"));this.set("playbackPositions",this.n.get("playbackPositions"))},tf:function(){this.D("playbackPositions","currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("yaw",this.Za.get("yaw")),this.set("pitch",this.Za.get("pitch")),this.set("roll",this.Za.get("roll")),this.set("rotationX",
this.Za.get("rotationX")),this.set("rotationY",this.Za.get("rotationY")),this.set("hfov",this.Za.get("hfov")),this.set("vfov",this.Za.get("vfov")),this.set("alpha",this.Za.Ak()))}}});
define("jd","require,kG,jU,nU,ef,fd,nj,gA,nR,cx,mB".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("ef"),f=a("fd"),i=a("nj"),e=a("gA"),j=a("nR"),o=a("cx"),k=a("mB"),n=0,a=b.extend(f,i,e,j,o,function(a){f.call(this);this.set("tag","HotspotImage");this.set("id","hs_image_"+n++);this.set("side",THREE.DoubleSide);this.n=a;this.bk.push(this.n);this.Cf=this.Cf.bind(this)});a.prototype.Eb=function(){f.prototype.Eb.call(this);d.pa(this.n,["image.levels"],this.Cf,m)};a.prototype.Jb=function(){d.na(this.n,
["image.levels"],this.Cf);f.prototype.Jb.call(this)};a.prototype.Cf=function(){this.set("image",this.n.get("image"));this.set("level",k.YOa(this.n,this.get("panoramaPixelsPerDegree")))};a.prototype.X=function(a){this.IB();f.prototype.X.call(this,a);this.D("inView")&&this.n.trigger(this.get("inView")?c.hc:c.nc)};a.prototype.IB=function(){if(this.D("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){g.setAttribute(a,g.Jy,this.get("panoramaId"));g.setAttribute(a,
g.ZX,this.get("id"))}.bind(this))}};return a});
define("gY",["require","gn","a"],function(a){function b(a,b,c){this.vf=a||new d(0,0,0);this.Vi=b||new d(1,0,0);this.wy=c||new d(0,1,0)}var d=a("gn"),c=a("a");b.prototype.clone=function(){return new b(this.vf.clone(),this.Vi.clone(),this.wy.clone())};b.prototype.apply=function(a){a.BG(this.vf);a.BG(this.Vi);a.BG(this.wy)};b.prototype.intersection=function(a,b){var i=c.py(a.vf,a.Vi),e=c.py(this.vf,a.vf),j=c.py(this.vf,this.Vi);j.ZV(c.py(this.vf,this.wy));i=i.$B(j);if(!(0==i||b&&0>i))return e=-j.$B(e)/
i,new d(a.vf.x+(a.Vi.x-a.vf.x)*e,a.vf.y+(a.Vi.y-a.vf.y)*e,a.vf.z+(a.Vi.z-a.vf.z)*e)};b.prototype.jX=function(a,b){var i=c.py(this.vf,this.Vi),e=c.py(this.vf,this.wy),j=c.py(this.vf,a),o=i.Y9(),k=e.Y9();return b?new d(j.$B(i)/(o*o),j.$B(e)/(k*k),0):new d(j.$B(i)/o,j.$B(e)/k,0)};return b});
define("fa",[],function(){function a(a){a%=c;0>a&&(a+=c);return i[a*g|0]}function b(a){a%=c;0>a&&(a+=c);return f[a*g|0]}function d(){this.identity()}d.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.kh=this.jh=this.ih=0};d.prototype.clone=function(){var a=new d;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.ih=this.ih;a.jh=this.jh;
a.kh=this.kh;return a};d.prototype.concat=function(a){var b=this.m11,c=this.m12,e=this.m13,d=this.m21,f=this.m22,g=this.m23,i=this.m31,u=this.m32,v=this.m33,w=this.ih,x=this.jh,y=this.kh;this.m11=b*a.m11+c*a.m21+e*a.m31;this.m12=b*a.m12+c*a.m22+e*a.m32;this.m13=b*a.m13+c*a.m23+e*a.m33;this.m21=d*a.m11+f*a.m21+g*a.m31;this.m22=d*a.m12+f*a.m22+g*a.m32;this.m23=d*a.m13+f*a.m23+g*a.m33;this.m31=i*a.m11+u*a.m21+v*a.m31;this.m32=i*a.m12+u*a.m22+v*a.m32;this.m33=i*a.m13+u*a.m23+v*a.m33;this.ih=w*a.m11+x*
a.m21+y*a.m31+a.ih;this.jh=w*a.m12+x*a.m22+y*a.m32+a.jh;this.kh=w*a.m13+x*a.m23+y*a.m33+a.kh};d.prototype.translate=function(a,b,c){this.ih+=a;this.jh+=b;this.kh+=c};d.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.ih*=a;this.jh*=b;this.kh*=c};d.prototype.rotateX=function(c){var e=a(c),c=b(c),d=this.m12*e+this.m13*c,f=this.m22*c-this.m23*e,g=this.m22*e+this.m23*c,i=this.m32*c-this.m33*e,t=this.m32*e+
this.m33*c,s=this.jh*c-this.kh*e,u=this.jh*e+this.kh*c;this.m12=this.m12*c-this.m13*e;this.m13=d;this.m22=f;this.m23=g;this.m32=i;this.m33=t;this.jh=s;this.kh=u};d.prototype.rotateY=function(c){var e=a(c),c=b(c),d=-this.m11*e+this.m13*c,f=this.m21*c+this.m23*e,g=-this.m21*e+this.m23*c,i=this.m31*c+this.m33*e,t=-this.m31*e+this.m33*c,s=this.ih*c+this.kh*e,u=-this.ih*e+this.kh*c;this.m11=this.m11*c+this.m13*e;this.m13=d;this.m21=f;this.m23=g;this.m31=i;this.m33=t;this.ih=s;this.kh=u};d.prototype.rotateZ=
function(c){var e=a(c),c=b(c),d=this.m11*e+this.m12*c,f=this.m21*c-this.m22*e,g=this.m21*e+this.m22*c,i=this.m31*c-this.m32*e,t=this.m31*e+this.m32*c,s=this.ih*c-this.jh*e,u=this.ih*e+this.jh*c;this.m11=this.m11*c-this.m12*e;this.m12=d;this.m21=f;this.m22=g;this.m31=i;this.m32=t;this.ih=s;this.jh=u};d.prototype.rotate=function(a,b,c){this.rotateX(a);this.rotateY(b);this.rotateZ(c)};d.prototype.invert=function(){var a=this.LOa();if(0==a)return B;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.ih=-(b.ih*this.m11+b.jh*this.m21+b.kh*this.m31);this.jh=-(b.ih*this.m12+b.jh*this.m22+b.kh*this.m32);this.kh=-(b.ih*this.m13+b.jh*this.m23+b.kh*this.m33);return m};d.prototype.LOa=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)};d.prototype.BG=function(a){var b=a.x*this.m12+a.y*this.m22+a.z*this.m32+this.jh,c=a.x*this.m13+a.y*this.m23+a.z*this.m33+this.kh;a.x=a.x*this.m11+a.y*this.m21+a.z*this.m31+this.ih;a.y=b;a.z=c};for(var c=2*Math.PI,g=18E4/c,f=new Float32Array(180001),i=new Float32Array(180001),e=0;18E4>e;e++)f[e]=Math.cos(e/g),i[e]=Math.sin(e/g);f[18E4]=f[0];i[18E4]=i[0];return d});
define("dx","require,kj,hH,dc,gn,gY,fa,lv".split(","),function(a){var b=a("kj"),d=a("hH"),c=a("dc"),g=a("gn"),f=a("gY"),i=a("fa"),e=a("lv"),j=Math.PI/180,o=180/Math.PI,k=new i,n=new d,r=new f,p=new g;return{get:function(a,b,c,e,d,f,i,o){a=a*j;b=b*j;b=new g(Math.sin(-a)*Math.cos(b),Math.sin(b),Math.cos(-a)*Math.cos(b));k.identity();k.rotateY(c*j);k.rotateZ(d*j);k.rotateX(e*j);b.apply(k);if(b.z>0){n.zO(i);n.Wua(o);n.GC(f*j);n.project(b);return b}return q},YTa:function(a,b,c){k.identity();k.rotateX(-c.Mc()*
j);k.rotateZ(-c.uf()*j);k.rotateY(-c.Uc()*j);p.set(a,b,0);a=c.unproject(p).Ura();a.apply(k);return{Na:a.Uc()*o,pitch:a.Mc()*o}},lWa:function(a,c,d,f,g,i,o,n,E,H,M,G,z,L){L||(L=e.Hs);z||(z=b.Dl(G,H,M));G||(G=b.zs(z,H,M));var K=H*0.5/Math.tan(G*0.5*j),A=K*Math.tan(G*0.5*j)*2,N=K*Math.tan(z*0.5*j)*2;r.vf.set(+A*0.5,+N*0.5,0);r.Vi.set(-A*0.5,+N*0.5,0);r.wy.set(+A*0.5,-N*0.5,0);k.identity();k.rotateZ(-E*j);k.rotateX(-o*j);k.rotateY(n*j);k.translate(0,0,K);k.rotateZ(-i*j);k.rotateX(-g*j);k.rotateY(-f*j);
k.rotateY(d.Uc()*j);k.rotateZ(d.uf()*j);k.rotateX(d.Mc()*j);r.apply(k);p.set(a,c,0);g=r.intersection(d.unproject(p));f={x:l,y:l,xScaled:l,yScaled:l};if(g&&g.z>0){g=r.jX(g);f.xScaled=f.x=g.x/A;f.yScaled=f.y=g.y/N}if(L!=e.Hs){var J,C;switch(L){case e.Qg:J=Math.min(b.zs(z,H,M),G);C=Math.min(b.Dl(G,H,M),z);break;case e.sq:J=Math.max(b.zs(z,H,M),G);C=Math.max(b.Dl(G,H,M),z);break;case e.Bo:J=G;C=b.Dl(G,H,M);break;case e.Pj:J=b.zs(z,H,M);C=z}if(J!=G||C!=z){A=K*Math.tan(J*0.5*j)*2;N=K*Math.tan(C*0.5*j)*
2;r.vf.set(+A*0.5,+N*0.5,0);r.Vi.set(-A*0.5,+N*0.5,0);r.wy.set(+A*0.5,-N*0.5,0);r.apply(k);p.set(a,c,0);if((g=r.intersection(d.unproject(p)))&&g.z>0){g=r.jX(g);f.xScaled=g.x/A;f.yScaled=g.y/N}}}return f},jVa:function(a,b,e,d,f,i,o){o=f*0.5/Math.tan(o*0.5*j);r.vf.set(+f*0.5,+i*0.5,o);r.Vi.set(-f*0.5,+i*0.5,o);r.wy.set(+f*0.5,-i*0.5,o);k.identity();k.rotateZ(-d*j);k.rotateX(-e*j);k.rotateY(-b*j);k.rotateY(a.Uc()*j);k.rotateZ(a.uf()*j);k.rotateX(a.Mc()*j);r.apply(k);a=new c(new g(0,0,0),new g(0,0,1));
if((a=r.intersection(a))&&a.z>0){a=r.jX(a);return{x:a.x/f,y:a.y/i}}return q}}});
define("A","require,kG,iy,ef,V,jM,lY".split(","),function(a){var b=a("kG"),d=a("iy"),c=a("ef"),g=a("V"),f=a("jM"),i=a("lY"),a=b.extend(d,function(){d.call(this);this.set("tag","WebGLObject");this.set("zOrder",0);this.set("webglScene",q);this.set("meshGroup",q);this.set("camera",q)});a.prototype.em=function(){return[]};a.prototype.Jb=function(){c.dispose(this.get("meshGroup"));c.uH(this.get("meshGroup"),q);this.set("meshGroup",q);d.prototype.Jb.call(this)};a.prototype.X=function(a){d.prototype.X.call(this,
a);this.set("camera",g.hC(a.ug));this.set("webglScene",a.ug);if(!this.get("meshGroup")){this.set("meshGroup",c.Kqa(this.em()));this.get("meshGroup").userData.QQa=this}this.D("webglScene","meshGroup")&&c.uH(this.get("meshGroup"),this.get("webglScene"));this.vl();this.Qp(a);this.MB();this.D("loadingActive","meshGroup")&&f.xd(this.get("meshGroup"),this.get("loadingActive"));this.D("blendingActive","meshGroup")&&i.Lua(this.get("meshGroup"),this.get("blendingActive"))};a.prototype.vl=function(){this.D("composedAlpha",
"meshGroup")&&this.bw()};a.prototype.bw=function(){c.Ve(this.get("meshGroup"),this.get("composedAlpha"))};a.prototype.Qp=function(){h("Must be overridden in descendants.")};a.prototype.MB=function(){if(this.D("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b,e){c.FX(a,this.get("index")+b/e.length)}.bind(this))}};return a});
define("fk",["require","kG","iA","A","ef"],function(a){var b=a("kG"),d=a("iA"),c=a("A"),g=a("ef"),f=new THREE.Matrix4,i=Math.PI/180,a=b.extend(c,function(){c.call(this);this.set("tag","Frame");this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.pl=new THREE.Matrix4;this.fi=new THREE.Matrix4});a.prototype.X=function(a){c.prototype.X.call(this,a)};a.prototype.Qp=function(a){var b=B;this.D("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.dh.makeTranslation(0.5*-this.get("composedTranslationX")*
d.of,0.5*this.get("composedTranslationY")*d.of,0.5*this.get("composedTranslationZ")*d.of),b=m);this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.qd.makeRotationY(-a.Na*i),this.qd.multiply(f.makeRotationX(-this.get("composedDeltaPitch")*i)),this.qd.multiply(f.makeRotationY(this.get("composedDeltaYaw")*i)),this.qd.multiply(f.makeRotationY(a.Na*i)),b=m);this.D("flipHorizontally")&&(this.pl.makeScale(this.get("flipHorizontally")?-1:1,1,1),b=m);if(b||this.D("meshGroup"))this.fi.copy(this.dh),
this.fi.multiply(this.qd),this.fi.multiply(this.pl),g.Yp(this.get("meshGroup"),this.fi)};return a});
define("oc",["require","kG","kC","mQ","md"],function(a){var b=a("kG"),d=a("kC"),c=a("mQ"),g=a("md"),a=b.extend(g,function(a,b,c,d,o){g.call(this,a.get("url"));this.Ba=b;this.Da=c;this.Z=d;this.ia=o;this.GFa=0!=this.Ba||0!=this.Da||this.Z!=a.get("width")||this.ia!=a.get("height")});a.prototype.cd=function(){this.GFa?(this.LBa(),this.Xo(),this.dF(!!this.kg)):g.prototype.cd.call(this)};a.prototype.eM=function(){g.prototype.eM.call(this);this.Y0()};a.prototype.dy=function(){g.prototype.dy.call(this);
this.Y0()};g.prototype.dispose=function(){g.prototype.dispose.call(this);this.Y0()};a.prototype.LBa=function(){var a=d.jf(this.kd);this.kg=c.iOa(a,this.Ba,this.Da,this.Z,this.ia)};a.prototype.Y0=function(){this.kg&&(c.bW(this.kg),this.kg=q)};return a});
define("fS","require,eQ,dw,lW,gZ,eR,md,oc,iA,cn,ef,bV,mB,jM,t".split(","),function(a){var b=a("eQ"),d=a("dw"),c=a("lW"),g=a("gZ"),f=a("eR"),i=a("md"),e=a("oc"),j=a("iA"),o=a("cn"),k=a("ef"),n=a("bV"),r=a("mB"),p=a("jM"),t=a("t"),s={eOa:function(a,b){var c=n.get(a);switch(c){case n.Uv:case n.Ns:case n.Fk:return this.pBa(c,a,b);case n.uq:case n.Ho:case n.Cq:return this.rBa(c,a,b)}},kOa:function(a,b){var c=new i(b.get("posterURL"));return this.Rfa(a,b,c)},jOa:function(a,b){var c=new f;return this.Rfa(a,
b,c)},Rfa:function(a,b,c){var e=a.get("hfov"),f=a.get("vfov"),g=a.get("pitch"),i=b.get("width"),b=b.get("url"),a=n.get(a),r=a==n.Cq?2:1,s=a==n.Ho?2:1,a=r+s>2?[d.Ja,d.Xa]:[d.Cs],t=Math.round(i/r),z=o.ny(c.texture(),new o.kn(b));p.vH(z,c);z.visible=m;return a.map(function(a,b){var c=j.Nqa(e,f,g,1,1,b%r/r,(s-1-Math.floor(b/r))/s,1/r,1/s),c=k.create(c,[z]);c.layers.set(a);p.xX(c,t/e);return c}.bind(this))},gOa:function(a){var b=[c.Xa,c.Ja,c.ic,c.ac,c.FRONT,c.BACK].map(function(){var b=new f;b.Ll(s.qEa(a));
var c=o.ny(b.texture());p.vH(c,b);c.visible=m;return c}),e=j.Mqa(1,1),b=k.create(e,b);p.xX(b,256/90);b.layers.set(d.Cs);return b},Y6:{},qEa:function(a){if(!s.Y6[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.Y6[a]=b}return s.Y6[a]},pBa:function(a,e,f){var i=a==n.Uv?[d.Xa,d.Ja]:[d.Cs],o=e.get("flipImageHorizontally");o&&(i=i.reverse());var s=a==n.Fk?1:6*i.length,t=f.get("width")/s,H=f.get("height"),M,G;if(b.xa("TiledImageResourceLevel",
f)){M=f.get("colCount",s)/s;G=f.get("rowCount",1)}else if(this.zma(a,f)){M=Math.ceil(t/g.Xs());G=Math.ceil(H/g.Xs())}else G=M=1;var z=[c.Xa,c.Ja,c.ic,c.ac,c.FRONT,c.BACK];return i.map(function(c,d){var g=Array(6);z.forEach(function(i,k){var p=r.T9(e,f,i);if(b.xa("TiledImageResourceLevel",f))g[j.Xca.indexOf(i)]=this.kBa(p,a,c,i,o,M,G);else{var s=a==n.Fk?0:Math.round((d*z.length+k)*t),x=M>1||G>1||a!=n.Fk?t>256?1:0.5:0;g[j.Xca.indexOf(i)]=this.Mfa(p,M,G,s,0,t,H,x)}}.bind(this));var i=Array.prototype.concat.apply([],
g),s=j.Mqa(M,G),i=k.create(s,i);i.layers.set(c);p.xX(i,t/90);return i}.bind(this))},rBa:function(a,b,c){var e=a==n.uq?[d.Cs]:[d.Ja,d.Xa];b.get("flipImageHorizontally")&&(e=e.reverse());var f=c.get("width"),i=c.get("height"),o=b.get("hfov"),r=b.get("vfov"),s=b.get("pitch"),t=Math.round(f/o/(i/r)),b=Math.round(i/r/(f/o)),z=Math.round(f/t),L=Math.round(i/b),K=(a=this.zma(a,c))?Math.ceil(z/g.Xs()):1,A=a?Math.ceil(L/g.Xs()):1;return e.map(function(a,b){var e=this.Mfa(c,K,A,b%t*z,Math.floor(b/t)*L,z,L),
d=j.Nqa(o,r,s,K,A,0,0,1,1),e=k.create(d,e);e.layers.set(a);p.xX(e,z/o);return e}.bind(this))},zma:function(a,b){switch(a){case n.Uv:case n.Ns:case n.Ho:case n.Cq:return m;case n.Fk:return B;case n.uq:return t.Xra().maxTextureSize<Math.max(b.get("width"),b.get("height"))?m:g.Xm()||t.ob()?B:t.Yd()==t.Ny?m:B}},Mfa:function(a,b,c,d,g,i,j,k){k||(k=0);for(var n=[],r=0;r<c;r++)for(var s=g+k+(j-2*k)*r/c,t=g+k+(j-2*k)*(r+1)/c,K=0;K<b;K++){var A=d+k+(i-2*k)*K/b,N=d+k+(i-2*k)*(K+1)/b,A=a?new e(a,A,s,N-A,t-s):
new f,N=o.z9(A.texture());p.vH(N,A);n.push(N)}return n},kBa:function(a,b,c,e,d,g,j){for(var k=[],n=0;n<j;n++)for(var s=0;s<g;s++){var t;t=a?new i(r.Sra(a,b,c,e,d,j,n,s)):new f;var L=o.z9(t.texture());p.vH(L,t);L.visible=B;k.push(L)}return k}};return s});
define("dd","require,kG,nU,fk,jF,fS,jM".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("fk"),g=a("jF"),f=a("fS"),i=a("jM"),a=b.extend(c,function(a){c.call(this);this.cc=a;this.set("tag","SolidFrame");this.Cg=q});a.prototype.Eb=function(){this.Cg=(new g(d.U)).Pl(this.cd.bind(this));c.prototype.Eb.call(this)};a.prototype.Jb=function(){this.Cg.dispose();c.prototype.Jb.call(this)};a.prototype.em=function(){var a=[f.gOa(this.cc)];i.ts(a,i.Co);i.ss(a,i.pn);this.Cg.We(a);return a};a.prototype.cd=function(){this.trigger(d.Oc);
this.trigger(d.U)};return a});
define("dO",["require","hy","iA","ef","jM"],function(a){var b=a("hy"),d=a("iA"),c=a("ef"),g=a("jM"),f=Math.PI/180;return{tt:function(){this.set("distance",l);this.set("width",100);this.set("height",100);this.set("offsetX",l);this.set("offsetY",l);this.set("centerX",0);this.set("centerY",0);this.set("roll",0);this.zh=this.uw();this.Iw=d.IG();this.jm=new THREE.Matrix4;this.LD=new THREE.Matrix4;this.MF=new THREE.Matrix4;this.uja=new THREE.Matrix4;this.Ni=new THREE.Matrix4;this.pl=new THREE.Matrix4;this.fi=
new THREE.Matrix4},Tu:function(a){this.Qp(a)},sE:function(){var a=this.get("meshGroup");return a?c.zk(a)[0]:q},em:function(){var a=c.create(this.Iw,this.VD());g.ss(a,g.pn);g.ts(a,g.Co);g.Ay(a,b.oD);g.tH(a,1);return[a]},em:function(){return[0].map(function(a){var e=this.VD(),a=c.create(this.zh[a],e);g.ss(a,g.pn);g.ts(a,g.Co);g.Ay(a,b.oD);g.tH(a,1);return a}.bind(this))},uw:function(){return[d.IG()]},Qp:function(a){var b=B,g=B;this.set("rendererYaw",a.Na);this.set("rendererPitch",a.pitch);this.set("rendererRoll",
a.He);this.set("rendererCameraFOV",a.Ph);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.$b);this.D("distance","composedTranslationX","composedTranslationY","composedTranslationZ")&&this.set("z",0==this.get("composedTranslationX")&&0==this.get("composedTranslationY")&&0==this.get("composedTranslationZ")&&this.get("distance")!==l?d.jC(this.get("distance")):d.cv());this.D("z")&&(this.jm.makeTranslation(0,0,-this.get("z")),g=m);a.Ph&&this.D("z","rendererCameraFOV")&&
this.set("rendererHeightZ",2*Math.tan(0.5*a.Ph*f)*this.get("z"));if(a.camera&&this.D("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","rendererHeightZ","inVR","centerX","centerY")){this.LD.copy(a.camera.matrixWorld);var b=this.get("rendererHeightZ"),o=b*a.camera.aspect,o=0.5*((this.get("centerX")-0.5*a.width)*o/a.width),b=0.5*((0.5*a.height-this.get("centerY"))*b/a.height);this.MF.makeTranslation(o,b,0);b=m}this.D("roll")&&(this.Ni.makeRotationZ(this.get("roll")*
f),b=m);if(a.Ph&&(g||this.D("rendererHeight","inVR","rendererHeightZ","width","height","flipHorizontally")))g=a.$b?512/a.height:1,a=(this.get("flipHorizontally")?-1:1)*this.get("width")*g,g*=this.get("height"),this.pl.makeScale(a,g,1),b=m;this.D("width","height","offsetX","offsetY")&&(a=0.5-this.get("offsetX")/this.get("width"),g=this.get("offsetY")/this.get("height")-0.5,this.uja.makeTranslation(a,g,0),b=m);b&&(this.fi.copy(this.LD),this.fi.multiply(this.jm),this.fi.multiply(this.MF),this.fi.multiply(this.Ni),
this.fi.multiply(this.pl),this.fi.multiply(this.uja),c.Yp(this.get("meshGroup"),this.fi))}}});define("lR",["require","kG","fd","dO"],function(a){var b=a("kG"),d=a("fd"),a=a("dO");return b.extend(d,a,function(){d.call(this);this.set("tag","Sprite")})});
define("gp",["require","mR"],function(a){function b(a,d,f,i,e,j){this.Xn=d;this.J=document.createElement("canvas");this.J.width=this.Xn;this.J.height=this.Xn;switch(a){case b.JH:this.kCa(f,i,e,j);break;case b.dP:this.lCa(f,i,e,j)}}var d=a("mR");b.prototype.fd=S("Xn");b.prototype.Td=S("Xn");b.prototype.mg=S("J");b.prototype.kCa=function(a,b,f,i){for(var e=0.5*this.Xn,j=0.5*this.Xn,o=0.5*this.Xn,k=this.J.getContext("2d"),b=d.ZN(b),n=k.createRadialGradient(e,j,0,e,j,o),r=0;r<f.length;r++)n.addColorStop(i[r],
"rgba("+b[0]+","+b[1]+","+b[2]+","+f[r]+")");k.fillStyle=n;k.globalAlpha=a;k.beginPath();k.arc(e,j,o,0,2*Math.PI,m);k.closePath();k.fill()};b.prototype.lCa=function(a,b,f,i){var e=0.5*this.Xn,j=0.5*this.Xn,o=0.5*this.Xn,k=this.J.getContext("2d");k.clearRect(0,0,this.Xn,this.Xn);for(var n=d.ZN(b),r=k.createRadialGradient(e,j,0,e,j,o),b=0;b<f.length;b++)r.addColorStop(i[b],"rgba("+n[0]+","+n[1]+","+n[2]+","+f[b]+")");k.fillStyle=r;k.globalAlpha=a;k.beginPath();for(b=0;6>b;b++)f=45*Math.PI/180+2*Math.PI*
b/6,a=e+Math.cos(f)*o,f=j+Math.sin(f)*o,0==b?k.moveTo(a,f):k.lineTo(a,f);k.closePath();k.fill()};b.JH="circle";b.dP="hexagon";return b});
define("mD","require,kG,jU,nU,dx,iy,dd,lR,gp,eR".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("dx"),f=a("iy"),i=a("dd"),e=a("lR"),j=a("gp"),o=a("eR"),a=b.extend(f,function(a){f.call(this);this.n=a;this.bk.push(this.n);this.Cf=this.Cf.bind(this);this.set("tag","LensFlare");this.set("translationAlpha",0);this.o_=this.SAa();this.gf=this.NBa();this.gh(this.o_.concat([this.gf]))});a.prototype.Eb=function(){f.prototype.Eb.call(this);this.trigger(c.Oc);this.trigger(c.U);d.pa(this.n,["yaw",
"pitch","bleaching","bleachingDistance"],this.Cf,m)};a.prototype.Jb=function(){d.na(this.n,["yaw","pitch","bleaching","bleachingDistance"],this.Cf,m);f.prototype.Jb.call(this)};a.prototype.Cf=function(){this.set("yaw",this.n.get("yaw"));this.set("pitch",this.n.get("pitch"));this.set("bleaching",this.n.get("bleaching"));this.set("bleachingDistance",this.n.get("bleachingDistance"))};a.prototype.X=function(a){f.prototype.X.call(this,a);this.set("rendererYaw",a.Na);this.set("rendererPitch",a.pitch);this.set("rendererRoll",
a.He);this.set("rendererCameraFOV",a.Ph);this.set("rendererWidth",a.width);this.set("rendererHeight",a.height);this.set("inVR",a.$b);if(this.D("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.D("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth","rendererHeight","inVR",
"yaw","pitch","translationAlpha","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){var d=a.Na+this.get("composedDeltaYaw"),i=a.pitch+this.get("composedDeltaPitch"),j=a.He+this.get("composedDeltaRoll"),b=this.get("translationAlpha"),e=c=0,o,x,y,D;if(!a.$b)if(d=g.get(this.get("yaw"),this.get("pitch"),d,i,j,a.Ph,a.width,a.height)){x=a.width*0.5;D=a.height*0.5;o=d.x;y=d.y;x=(x-o)*2;D=(D-y)*2;e=Math.sqrt(x*x+D*D);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;d=this.get("bleaching");a=1-Math.max(0,Math.min(1,e/(a*this.get("bleachingDistance"))));e=d*a*b}for(a=0;a<this.o_.length;a++){b=this.o_[a];b.set("alpha",c);if(c>0){b.set("centerX",o+x*k[a].position);b.set("centerY",y+D*k[a].position)}}this.gf.set("alpha",e)}};a.prototype.SAa=function(){return k.map(function(a){var b=(new j(a.form,a.MC,a.opacity,a.color,a.nC,a.oC)).mg(),c=new o;c.Ll(b);b=new e;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.NBa=function(){return new i("#ffffff")};var k=[{form:j.dP,position:0.1,size:52,MC:128,opacity:0.8,color:"#FCFCFC",nC:[1,0.5],oC:[0,0.866]},{form:j.dP,position:0.2,size:52,MC:128,opacity:0.6,color:"#C8FCC8",nC:[1,0.5],oC:[0,0.866]},{form:j.JH,position:0.36,size:112,MC:128,opacity:0.5,color:"#C8C8FC",nC:[1,0.9,0.6,0],oC:[0,0.2,0.4,1]},{form:j.JH,position:0.47,size:32,MC:128,opacity:0.3,color:"#96C8AF",nC:[1,1,0],oC:[0,
0.9,1]},{form:j.JH,position:0.65,size:52,MC:128,opacity:0.7,color:"#FCFCFC",nC:[0.7,0.7,0.2,0],oC:[0,0.1,0.4,1]},{form:j.dP,position:0.88,size:128,MC:128,opacity:0.4,color:"#AF96C8",nC:[1,0.5],oC:[0,0.866]},{form:j.JH,position:1,size:33,MC:128,opacity:0.8,color:"#C89696",nC:[0.8,0.8,0.6,0],oC:[0,0.2,0.4,1]}];return a});
define("bN",["require","ez"],function(a){function b(a,b,e){g.style.fontFamily=c.$u(b.fontFamily);g.style.fontSize=b.fontSize;g.style.fontWeight=b.fontWeight;g.style.fontStyle=b.fontStyle;g.innerHTML=a;document.body.appendChild(g);var j=new d(Math.ceil(g.clientWidth),Math.ceil(g.clientHeight));document.body.removeChild(g);e&&(e.font=b.fontSize+" "+c.$u(b.fontFamily),a=e.measureText(a).width,j.height*=a/j.width,j.width=a);return j}function d(a,b){this.width=a;this.height=b}var c=a("ez"),g=document.createElement("div");
g.style.display="inline-block";g.style.margin=0;g.style.padding=0;g.style.whiteSpace="nowrap";b.vZ=function(){this.fontFamily="Arial";this.fontSize="12px";this.fontWeight="400";this.fontStyle="normal"};b.BUa=d;return b});
define("my",["require","bN","ez"],function(a){function b(a,b){this.lb=a;this.Bla=5;this.Qd=b.map(function(b){return new d(a,b)});this.LE=this.ME=this.qh=this.Ye=0;this.i8();this.J=document.createElement("canvas");this.J.width=this.Ye;this.J.height=this.qh;this.ja=this.J.getContext("2d");this.ka=m;this.Pe=this.ula=-1}function d(a,b){this.vC=a;this.item=b;this.label=b.get("label");this.fontFamily=this.vC.get("fontFamily","Arial");this.fontSize="12px";this.backgroundColor=this.vC.get("backgroundColor",
"#000000");this.wua=this.vC.get("rollOverBackgroundColor",this.backgroundColor);this.ARa=this.vC.get("selectedBackgroundColor",this.wua);this.lra=this.vC.get("fontColor","#000000");this.xua=this.vC.get("rollOverFontColor",b.lra);this.BRa=this.vC.get("selectedFontColor",b.xua);this.Pva=this.Ova=this.Qva=this.Rva=this.height=this.width=this.left=this.top=0;this.status=B;this.t$=m}var c=a("bN"),g=a("ez");d.prototype.WTa=function(){var a=new c.vZ;a.fontFamily=this.fontFamily;a.fontSize=this.fontSize;
a=c(this.label,a);this.Rva=a.width;this.Qva=a.height};d.prototype.ZSa=function(a){this.status!=a&&(this.status=a,this.t$=m)};d.prototype.oOa=function(a){if(this.t$){this.t$=B;var b,c;switch(this.status){case "normal":b=this.backgroundColor;c=this.lra;break;case "over":b=this.wua;c=this.xua;break;case "selected":b=this.ARa,c=this.BRa}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")+" "+g.$u(this.fontFamily);a.textBaseline="middle";a.textAlign="center";a.fillText(this.label,Math.round(this.Ova),Math.round(this.Pva));return m}return B};b.prototype.fd=S("Ye");b.prototype.Td=S("qh");b.prototype.mg=S("J");b.prototype.i8=function(){var a=0,b=0;this.Qd.forEach(function(c){c.WTa();a=Math.max(c.Rva,a);b=Math.max(c.Qva,b)});this.ME=a+2*this.Bla;this.LE=b+2*this.Bla;var c=0,d=0,g=0;this.MJ=20;if(20<this.Qd.length){var k=Math.ceil(this.Qd.length/
20);this.MJ=Math.ceil(this.Qd.length/k)}this.Qd.forEach(function(a){g>=this.MJ&&(g=0,d+=this.ME,c=0);a.left=d;a.top=c;a.Ova=d+0.5*this.ME;a.Pva=c+0.5*this.LE;a.width=this.ME;a.height=this.LE;g+=1;c+=this.LE}.bind(this));this.Ye=Math.ceil(this.Qd.length/this.MJ)*this.ME;this.qh=Math.min(this.MJ,this.Qd.length)*this.LE};b.prototype.update=function(){for(var a=B,b=0;b<this.Qd.length;b++)this.Qd[b].ZSa(this.ula==b?"over":this.Pe==b?"selected":"normal"),a=this.Qd[b].oOa(this.ja)||a;return a};b.prototype.yra=
function(a,b){var c=-1;0<=a&&a<this.Ye&&0<=b&&b<this.qh&&(c=Math.floor(a/this.ME)*this.MJ+Math.floor(b/this.LE),c>=this.Qd.length&&(c=-1));return c};b.prototype.Iaa=R("ula");b.prototype.Paa=R("Pe");b.prototype.clear=function(){this.Qd=this.J=this.ja=this.lb=q};return b});
define("fE","require,kG,jU,nU,iS,my,eR,nx,bC,bu".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 d=a("kG"),c=a("jU"),g=a("nU"),f=a("iS"),i=a("my"),e=a("eR"),j=a("nx"),o=a("bC");VR=a("bu");a=d.extend(f,function(a){f.call(this);this.lb=a;this.ip=this.ip.bind(this);this.su=this.J=q;this.Lu=this.Qm=this.I5=this.wu=l;this.cfa=20;this.Of=q;this.eb=this.lb.get("opacity",0.5);this.VK=this.lb.get("rollOverOpacity",this.eb);this.VFa=1;this.XFa=0.66;this.set("tag",
"MenuButton");this.set("visible",B);this.set("over",B);this.set("centerDistance",l)});a.prototype.Eb=function(){f.prototype.Eb.call(this);c.pa(this.lb,["label"],this.ip,m)};a.prototype.Jb=function(){c.na(this.lb,["label"],this.ip);f.prototype.Jb.call(this)};a.prototype.ip=function(){this.J=q};a.prototype.X=function(a){this.Su(a);this.Zf(a);this.HB(a);this.tf(a);this.Jd(a);f.prototype.X.call(this,a)};a.prototype.Su=function(a){if(a.$b&&!this.su&&VR.Ee()==VR.sD.Sl)this.gh([this.su=new f])};a.prototype.Zf=
function(){if(this.get("visible")){if(!this.J){this.get("textureSource")||this.set("textureSource",new e);this.J=new i(this.lb,[this.lb]);this.get("textureSource").Ll(this.J.mg());this.set("contentWidth",this.J.fd());this.set("contentHeight",this.J.Td());this.set("hfov",2*Math.atan2(this.J.fd()*0.5,300)*n);this.set("distance",this.lb.get("distance"))}if(this.J.update()){this.get("textureSource").update();this.wa()}this.D("over")&&this.J.Iaa(this.get("over")?0:-1)}};a.prototype.HB=function(a){if(this.D("visible"))this.Of=
new j("linear",[new o("displayCoef",this.get("visible")?0:1,this.get("visible")?1:0,l)],300);if(this.Of)this.Of.Te()?this.Of=q:this.Of.xb(a.Qe)};a.prototype.tf=function(a){if(this.get("visible")||this.Of){this.Qm=a.Na;this.Lu=Math.min(90,Math.max(-90,this.cfa+this.cfa-a.pitch));if(this.D("visible")&&this.get("visible")){this.set("yaw",a.Na);this.set("pitch",a.pitch)}else{for(;this.Qm+180<this.wu;)this.wu=this.wu-360;for(;this.Qm-180>this.wu;)this.wu=this.wu+360;var c=(this.Qm-this.wu)/a.Qe,e=(this.Lu-
this.I5)/a.Qe,d=Math.atan2(e,c),e=Math.sqrt(e*e+c*c),e=Math.min(e,10*k),c=Math.cos(d)*e,d=Math.sin(d)*e;this.set("yaw",b(this.get("yaw"),this.Qm+c));this.set("pitch",b(this.get("pitch"),this.Lu+d))}this.wu=this.Qm;this.I5=this.Lu;d=this.get("yaw")-a.Na;a=this.get("pitch")-a.pitch;this.set("centerDistance",Math.sqrt(d*d+a*a))}};a.prototype.Jd=function(){if(!this.get("visible")&&!this.Of)this.set("alpha",0);else if(this.D("over","centerDistance")||this.Of){var a=this.get("over")?this.VK:this.eb,b=this.XFa,
c=this.get("centerDistance")/this.get("hfov");if(c<1){b=b+(1-c)*(this.VFa-b);a=a+(1-c)*(this.VK-a)}if(this.Of){a=a*this.Of.gb("displayCoef");b=b*this.Of.gb("displayCoef")}this.set("alpha",a);this.set("scale",b)}};a.prototype.bn=function(a){if(a.$e==g.Hk){var b=B;this.get("visible")&&!a.zl()&&(b=this.Jt(a.Ap).length>0);if(b){a.iy(this.lb);a.jy(this.lb);a.wk(this.get("distance"))}if(this.get("over")!=b){this.get("over")&&this.lb.trigger(g.rb);this.set("over",b);this.get("over")&&this.lb.trigger(g.bc)}}else if(a.$e==
g.Qj&&this.get("visible")&&!a.zl()&&this.Jt(a.Ap).length>0){a.rs(this.lb);this.lb.trigger(g.ca);this.trigger(g.ca)}};var k=Math.PI/180,n=180/Math.PI;return a});
define("iX","require,kG,jU,nU,iS,my,eR,nx,bC,bu".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("iS"),f=a("my"),i=a("eR"),e=a("nx"),j=a("bC"),o=a("bu"),a=b.extend(g,function(a,b){g.call(this);this.lb=a;this.ix=b;this.ip=this.ip.bind(this);this.J=q;this.I5=this.wu=l;this.Of=q;this.eb=this.lb.get("opacity",0.5);this.VK=this.lb.get("rollOverOpacity",this.eb);this.set("textureSource",new i);this.set("tag","MenuPanel");this.set("overIndex",-1);this.set("selectedIndex",-1);this.bga=B});a.prototype.Eb=
function(){g.prototype.Eb.call(this);d.pa(this.lb,["label"],this.ip,m);this.ix.forEach(function(a){d.pa(a,["label"],this.ip,m)}.bind(this))};a.prototype.Jb=function(){d.na(this.lb,["label"],this.ip,m);this.ix.forEach(function(a){d.na(a,["label"],this.ip,m)}.bind(this));g.prototype.Jb.call(this)};a.prototype.ip=function(){this.J=q};a.prototype.X=function(a){this.Su(a);this.Zf(a);this.HB(a);this.tf(a);g.prototype.X.call(this,a)};a.prototype.aBa=function(){if(!this.J){this.J=new f(this.lb,this.ix);this.get("textureSource").Ll(this.J.mg());
this.set("contentWidth",this.J.fd());this.set("contentHeight",this.J.Td());this.set("hfov",2*Math.atan2(this.J.fd()*0.5,300)*k);this.set("distance",this.lb.get("distance"))}};a.prototype.Zf=function(){this.J||this.aBa();this.D("selectedIndex")&&this.J.Iaa(this.get("selectedIndex"));this.D("overIndex")&&this.J.Iaa(this.get("overIndex"));if(this.J.update()){this.get("textureSource").update();this.wa()}};a.prototype.Su=function(a){if(a.$b&&!this.su&&o.Ee()==o.sD.Sl)this.gh([this.su=new g])};a.prototype.HB=
function(a){if(!this.Of&&!this.bga)this.Of=new e("linear",[new j("alpha",0,1,l),new j("scale",0,1,l),new j("yaw",a.Na,this.get("yaw"),l),new j("pitch",a.pitch,this.get("pitch"),l)],300);if(this.Of)if(this.Of.Te()){this.bga=m;this.Of=q}else this.Of.xb(a.Qe)};a.prototype.tf=function(){if(this.Of){var a=this.get("overIndex")<0?this.eb:this.VK;this.set("alpha",a*this.Of.gb("alpha"));this.set("scale",this.Of.gb("scale"));this.set("yaw",this.Of.gb("yaw"));this.set("pitch",this.Of.gb("pitch"))}else if(this.D("overIndex")){a=
this.get("overIndex")<0?this.eb:this.VK;this.set("alpha",a)}};a.prototype.bn=function(a){if(a.$e==c.Hk){var b=-1;if(!a.zl()){var e=this.Jt(a.Ap).filter(function(a){return a.source==this.J.mg()}.bind(this));e.length>0&&(b=this.J.yra(e[0].x,e[0].y))}if(b>=0){a.iy(this.ix[b]);a.jy(this.ix[b]);a.wk(this.get("distance"))}this.get("overIndex")>=0!=b>=0&&(b>0?this.trigger(c.bc):this.trigger(c.rb));if(this.get("overIndex")!=b){this.get("overIndex")>=0&&this.ix[this.get("overIndex")].trigger(c.rb);this.set("overIndex",
b);this.get("overIndex")>=0&&this.ix[this.get("overIndex")].trigger(c.bc)}}else if(a.$e==c.Qj&&!a.zl()){e=this.Jt(a.Ap).filter(function(a){return a.source==this.J.mg()}.bind(this));if(e.length>0){b=this.J.yra(e[0].x,e[0].y);if(b>=0){e=this.ix[b];this.set("selectedIndex",b);a.rs(e);a.wk(this.get("distance"));e.trigger(c.ca);this.trigger(c.ca,{item:e})}}}};var k=180/Math.PI;return a});
define("kD",["require","kG","nU","iy","iX"],function(a){var b=a("kG"),d=a("nU"),c=a("iy"),g=a("iX"),a=b.extend(c,function(a){c.call(this);this.lb=a;this.Ax=[];this.lF=q;this.set("tag","MenuPanels");this.set("visible",B)});a.prototype.X=function(a){this.D("visible")&&this.get("visible")&&(this.set("yaw",a.Na),this.set("pitch",a.pitch),this.fea(this.lb));c.prototype.X.call(this,a)};a.prototype.fea=function(a){var a=new g(this.lb,a.get("children",[])),b=this.get("yaw");this.Db().forEach(function(a){b+=
a.get("hfov")+i});a.set("yaw",b);a.set("pitch",this.get("pitch"));this.Eya(a);this.appendChild(a)};a.prototype.uma=function(a){this.Db().slice(a).forEach(function(a){this.xIa(a);a.remove()}.bind(this));this.Ax=this.Ax.filter(function(a){return 0<=this.Db().indexOf(a)}.bind(this))};a.prototype.Eya=function(a){a.bind(d.bc,this.Ela,this,m);a.bind(d.rb,this.Dla,this,m);a.bind(d.ca,this.Cla,this,m)};a.prototype.xIa=function(a){a.unbind(d.bc,this.Ela,this,m);a.unbind(d.rb,this.Dla,this,m);a.unbind(d.ca,
this.Cla,this,m)};a.prototype.Ela=function(a){0>this.Ax.indexOf(a.source)&&(this.Ax.push(a.source),1==this.Ax.length&&this.qfa())};a.prototype.Dla=function(a){a=this.Ax.indexOf(a.source);0<=a&&(this.Ax.splice(a,1),0==this.Ax.length&&this.MJa())};a.prototype.Cla=function(a){var b=a.source,a=a.data.item;a.get("children",[]).length?(this.uma(this.Db().indexOf(b)+1),this.fea(a)):this.ufa()};a.prototype.ufa=function(){this.set("visible",B);this.uma(0);this.qfa();this.trigger(d.Qy)};a.prototype.qfa=function(){this.lF&&
(clearTimeout(this.lF),this.lF=q)};a.prototype.MJa=function(){this.lF||(this.lF=setTimeout(function(){this.lF=q;this.ufa()}.bind(this),f))};var f=3E3,i=1;return a});
define("fJ","require,kG,nU,iy,fE,kD".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("iy"),g=a("fE"),f=a("kD"),a=b.extend(c,function(a){c.call(this);this.n=a;this.bk.push(this.n);this.set("tag","Menu");this.set("visible",B);this.Od=new g(this.n);this.Od.bind(d.ca,this.Hza,this,B);this.Fh=new f(this.n);this.Fh.bind(d.Qy,this.zHa,this,B);this.gh([this.Od,this.Fh])});a.prototype.Eb=function(){c.prototype.Eb.call(this);this.trigger(d.Oc);this.trigger(d.U)};a.prototype.X=function(a){this.set("visible",
a.$b);if(this.D("visible")){this.Od.set("visible",this.get("visible"));this.Fh.set("visible",B)}c.prototype.X.call(this,a)};a.prototype.Hza=function(){this.Od.set("visible",B);this.Fh.set("visible",m)};a.prototype.zHa=function(){this.Od.set("visible",this.get("visible"))};return a});
define("nM","require,kG,nU,iS,eR,jF,kH".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("iS"),g=a("eR"),f=a("jF"),i=a("kH"),a=b.extend(c,function(){c.call(this);this.set("tag","CustomPlane");this.set("source",q);this.set("sourceUpdated",B);this.Hd=this.Cg=q});a.prototype.Eb=function(){this.Cg=(new f(d.U)).Pl(this.hp.bind(this));this.Hd=(new f(d.U)).mo(this.ou.bind(this));c.prototype.Eb.call(this)};a.prototype.Jb=function(){this.Cg.dispose();this.Hd.dispose();c.prototype.Jb.call(this)};a.prototype.X=
function(a){if(this.D("source","sourceUpdated","useMipmapping","anisotropy")){var b=this.get("textureSource");b||this.set("textureSource",b=new g);this.D("source")&&b.Ll(this.get("source"));this.D("sourceUpdated")&&(b.update(),this.set("sourceUpdated",B));this.D("useMipmapping")&&b.UX(this.get("useMipmapping"),this.get("anisotropy"))}c.prototype.X.call(this,a);if(this.D("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.Cg.We(a);this.Hd.We(a)}}};a.prototype.hp=function(){this.trigger(d.Oc);
this.trigger(d.U)};a.prototype.ou=function(a,b){var c=0;b.Zr(function(a){(a=b.Fl(a))&&(c=c+a.Kg)});this.trigger(new i(d.gc,c/b.Zc.length))};return a});
define("jf",["require"],function(){function a(a){this.cc=this.$q(a.get("surfaceReticleColor"));this.yr=this.$q(a.get("surfaceReticleSelectionColor"));this.eb=a.get("surfaceReticleOpacity");this.Uma=a.get("surfaceReticleSelectionOpacity");this.qh=this.Ye=128;this.tHa=0.456;this.uHa=0.088;this.ZEa=0.18;this.J=document.createElement("canvas");this.J.width=this.Ye;this.J.height=this.qh;this.ja=this.J.getContext("2d");this.ja.fillStyle="red";this.ja.WPa=m;this.ja.fillRect(0,0,this.Ye,this.qh);this.Sd=
this.Q_=B;this.OE=this.jT=l;this.zz=0}a.prototype.V1=function(a){return this.mk(this.yr[0]*a+(1-a)*this.cc[0],this.yr[1]*a+(1-a)*this.cc[1],this.yr[2]*a+(1-a)*this.cc[2],this.Uma*a+(1-a)*this.eb)};a.prototype.$q=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.mk=function(a,d){return"rgba("+a.join(",")+", "+d+")"};a.prototype.hb=function(a){this.Pa!=a&&(this.Pa=a,this.ka=m)};a.prototype.fd=S("Ye");a.prototype.Td=
S("qh");a.prototype.mg=S("J");a.prototype.update=function(){if(!this.ka)return B;this.ka=B;this.ja.clearRect(0,0,this.Ye,this.qh);var a=[this.yr[0]*this.Pa+(1-this.Pa)*this.cc[0],this.yr[1]*this.Pa+(1-this.Pa)*this.cc[1],this.yr[2]*this.Pa+(1-this.Pa)*this.cc[2]],d=this.Uma*this.Pa+(1-this.Pa)*this.eb;this.ja.strokeStyle=this.mk(a,d);this.ja.fillStyle=this.mk(a,d*this.Pa);this.ja.beginPath();this.ja.lineWidth=this.Ye*this.uHa;this.ja.arc(0.5*this.Ye,0.5*this.Ye,this.Ye*this.tHa,0,2*Math.PI,B);this.ja.stroke();
this.ja.beginPath();this.ja.arc(0.5*this.Ye,0.5*this.Ye,this.Ye*this.ZEa,0,2*Math.PI,B);this.ja.fill();return m};return a});
define("gH","require,kG,jU,nU,iA,iy,nM,jf,dc,gY".split(","),function(a){function b(a,b,c){this.fX=a;this.fX.bind(g.u("distanceToFloor"),this.X,this,B);this.Dj=b;this.Dj.bind(g.u("yaw"),this.X,this,B);this.Dj.bind(g.u("distance"),this.X,this,B);this.Dj.bind(g.u("enabled"),this.X,this,B);this.Dj.bind(g.u("enabledInSurfaceSelection"),this.X,this,B);this.Pa=q;this.Kl=new e;this.Kl.set("hfov",20);this.Kl.set("vfov",20);this.Kl.set("pitch",-90);this.Kl.set("useMipmapping",m);this.Kl.set("anisotropy",16);
this.Kl.set("source",c.mg());this.Kl.set("contentWidth",c.fd());this.Kl.set("contentHeight",c.Td());this.X()}var d=a("kG"),c=a("jU"),g=a("nU"),f=a("iA"),i=a("iy"),e=a("nM"),j=a("jf"),o=a("dc"),k=a("gY"),a=d.extend(i,function(a){i.call(this);this.BS=this.BS.bind(this);this.hr=this.hr.bind(this);this.xS=this.xS.bind(this);this.set("tag","SurfaceSelector");this.set("reticleVisible",B);this.set("enabled",B);this.ba=a;this.DP=[];this.WI=new k;this.Eg=new o;this.Qc=new e;this.Qc.set("useMipmapping",m);
this.Qc.set("anisotropy",16);this.Qc.set("hfov",20);this.Qc.set("vfov",20);this.Qc.set("pitch",-90);this.set("reticleCoef",1);this.gh([this.Qc])});a.prototype.Eb=function(){this.yBa();i.prototype.Eb.call(this);c.pa(this.ba,["distanceToFloor"],this.BS,m);c.pa(this.ba,["adjacentPanoramas"],this.hr,m);c.pa(this.ta.uc,["adjacentPanoramaPositionsEnabled"],this.xS,m);this.trigger(g.Oc);this.trigger(g.U)};a.prototype.Jb=function(){i.prototype.Jb.call(this);c.na(this.ba,["distanceToFloor"],this.BS);c.na(this.ba,
["adjacentPanoramas"],this.hr);c.na(this.ta.uc,["adjacentPanoramaPositionsEnabled"],this.xS);this.ana([])};a.prototype.BS=function(){var a=this.ba.get("distanceToFloor");this.Qc.set("distance",a);var a=f.jC(a),b=f.d$(a,90),c=f.e$(a,90);this.WI.vf.set(-b*0.5,-a,-c*0.5);this.WI.Vi.set(b*0.5,-a,-c*0.5);this.WI.wy.set(-b*0.5,-a,c*0.5);this.Dma=a/f.cv()};a.prototype.hr=function(){this.ana(this.ba.get("adjacentPanoramas",[]))};a.prototype.xS=function(){this.hr()};a.prototype.ana=function(a){this.DP.forEach(function(a){a.clear()});
this.DP=a.map(function(a){return new b(this.ba,a,this.z5)}.bind(this));a=[];this.ta.uc.get("adjacentPanoramaPositionsEnabled")&&(a=a.concat(this.DP.map(function(a){return a.Kl})));a=a.concat([this.Qc]);this.gh(a)};a.prototype.X=function(a){i.prototype.X.call(this,a);this.set("enabled",a.DO);this.E8(a);this.fy(a)};a.prototype.E8=function(){if(this.D("enabled","reticleVisible","composedTranslationX","composedTranslationY","composedTranslationZ","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.Qc.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.Yoa()}};a.prototype.yBa=function(){this.HF=new j(this.ta.K);this.HF.hb(this.get("reticleCoef"));this.Qc.set("source",this.HF.mg());this.Qc.set("contentWidth",this.HF.fd());this.Qc.set("contentHeight",this.HF.Td());this.z5=
new j(this.ta.K);this.z5.hb(0);this.z5.update(1)};a.prototype.fy=function(a){this.D("reticleCoef")&&this.HF.hb(this.get("reticleCoef"));this.Qc.set("sourceUpdated",this.HF.update(a.Qe))};a.prototype.bn=function(a){if(!this.get("enabled")||a.Ap.length==0||a.zl()||a.PQa())this.set("reticleVisible",B);else{var b=a.Ap[0];this.Eg.vf.set(b.origin.x,b.origin.y,b.origin.z);this.Eg.Vi.set(b.origin.x+b.direction.x,b.origin.y+b.direction.y,b.origin.z+b.direction.z);if(b=this.WI.intersection(this.Eg,m)){var c=
this.WI.jX(b,m),e=2*(0.5-c.x),c=2*(0.5-c.y),d=n*Math.atan2(-e,c),f=-90+n*Math.atan2(Math.sqrt(e*e+c*c),1);if(f<-75||f>-1)this.set("reticleVisible",B);else{var i={x:e*this.Dma,y:-c*this.Dma};if(!a.ms()&&!a.Ksa())this.set("reticleVisible",B);else if(a.$e==g.Hk){this.set("reticleVisible",m);this.Qc.set("alpha",Math.min(1,(f- -75)/5));this.Qc.set("translationX",i.x);this.Qc.set("translationZ",i.y)}var j=this.ta.uc.get("surfaceSelectionHorizontalAngle")*0.5,o=this.ta.uc.get("surfaceSelectionVerticalAngle")*
0.5,c=this.DP.map(function(a){var b=a.XOa(d),c=a.xPa(f),e=a.pW(i);return{Dj:a.Dj,IN:b,jwa:c,distance:e}}).filter(function(a){return a.IN<j&&a.jwa<o});if(c.length==0)this.set("reticleCoef",0);else{c.sort(function(a,b){return a.distance-b.distance});e=c[0].Dj;this.set("reticleCoef",Math.max(0,Math.min(1,(1-c[0].IN/j)*(1-c[0].jwa/o))));b=this.ba.get("distanceToFloor")*Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z)/-b.y;a.Ksa()&&a.DNa([e]);a.wk(b);if(a.$e==g.Qj){a.rs([e]);this.get("blendingActive")||e.trigger(g.Ul)}else{a.iy([e]);
a.ms()&&a.jy([e]);(b=this.ta.K.get("displayTooltipInSurfaceSelection")&&e.get("panorama")&&e.get("panorama").get("label"))&&a.NV(b,0)}}}}else this.set("reticleVisible",B)}};b.prototype.clear=function(){this.fX.unbind(g.u("distanceToFloor"),this.X,this,B);this.fX=q;this.Dj.unbind(g.u("yaw"),this.X,this,B);this.Dj.unbind(g.u("distance"),this.X,this,B);this.Dj.unbind(g.u("enabled"),this.X,this,B);this.Dj.unbind(g.u("enabledInSurfaceSelection"),this.X,this,B);this.Dj=q};b.prototype.XOa=function(a){if(!this.Pa)return Infinity;
a=Math.abs(this.Pa.Na-a);return a>180?360-a:a};b.prototype.xPa=function(a){return!this.Pa?Infinity:Math.abs(this.Pa.pitch-a)};b.prototype.pW=function(a){if(!this.bG)return Infinity;var b=a.x-this.bG.x,a=a.y-this.bG.y;return Math.sqrt(b*b+a*a)};b.prototype.X=function(){var a=this.Dj.get("yaw"),b=this.Dj.get("distance"),c=this.Dj.get("enabled")&&this.Dj.get("enabledInSurfaceSelection");if(a===l||b===l||!c){this.bG=this.Pa=q;this.Kl.set("alpha",0)}else{var c=this.fX.get("distanceToFloor"),e=-90+Math.atan2(b,
c)*n;this.Kl.set("alpha",e<-1?1:0);this.Pa={Na:a,pitch:e};e=-Math.cos(a*r)*b/c;a=-Math.sin(a*r)*b/c;b=f.jC(c)/f.cv();this.bG={x:a*b,y:e*b};this.Kl.set("translationX",this.bG.x);this.Kl.set("translationZ",this.bG.y);this.Kl.set("distance",c)}};var n=180/Math.PI,r=Math.PI/180;return a});
define("X","require,kG,jU,nU,kH,iy,iS,gH,jF,mB,iQ,bu".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("kH"),f=a("iy"),i=a("iS"),e=a("gH"),j=a("jF"),o=a("mB"),k=a("iQ"),n=a("bu"),r=0,a=b.extend(f,function(a){f.call(this);this.n=a;this.bk.push(this.n);this.TA=this.TA.bind(this);this.Bf=this.Bf.bind(this);this.hr=this.hr.bind(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Panorama");this.set("loadingActive",B);this.set("blendingActive",m);this.set("currentTime",
0);this.set("adjacentPanoramas",[]);this.set("preloadEnabled",m);this.set("backgroundPreloadEnabled",m);this.set("surfaceSelectionEnabled",B);this.set("id","panorama_"+r++);this.set("ready",B);this.LT=[];this.Rn=this.Hd=this.bf=q;this.yh=new p;this.$la=new t;this.aLa=new e(this.n);this.Mn=new t;this.gh([this.yh,this.$la,this.aLa,this.Mn])});a.prototype.Eb=function(){this.bf=(new j(c.U)).Pl(this.hp.bind(this));this.Hd=(new j(c.gc)).mo(this.VA.bind(this));this.Rn=(new j(c.Oc)).Pl(this.vGa.bind(this));
f.prototype.Eb.call(this);this.get("blendingActive")&&this.ta.set("globalBlendingActive",this.ta.get("globalBlendingActive")+1);d.pa(this.n,["currentTime"],this.TA,m);d.pa(this.n,["frames","overlays","vrMenu","adjacentPanoramas"],this.Bf,m);d.pa(this.n,["adjacentPanoramas"],this.hr,m)};a.prototype.Jb=function(){this.bf.dispose();this.Hd.dispose();this.Rn.dispose();this.get("blendingActive")&&this.ta.set("globalBlendingActive",this.ta.get("globalBlendingActive")-1);f.prototype.Jb.call(this);d.na(this.n,
["currentTime"],this.TA);d.na(this.n,["frames","overlays","vrMenu","flipImageHorizontally"],this.Bf);d.na(this.n,["adjacentPanoramas"],this.hr);this.l7()};a.prototype.Bf=function(){function a(b,c,d){b=f.indexOf(b);return b<0?d:e[b].get(c,d)}function b(c){return a(c,"projected",B)}var c=this.ta.fv(this.n.get("frames"));c.forEach(function(a){a.set("panoramaId",this.get("id"));a.set("flipHorizontally",this.n.get("flipImageHorizontally"))}.bind(this));var e=this.n.get("overlays"),d=this.ta.fv(e),f=d.slice(),
g=d.filter(b).filter(function(b){return a(b,"enabled",m)});this.n.get("vrMenu")&&d.push(this.ta.fv(this.n.get("vrMenu")));d.forEach(function(a){a.set("panoramaId",this.get("id"))}.bind(this));this.bf.We(c.concat(d));this.Hd.We(c.concat(d));this.Rn.We(c.concat(g));this.$la.gh(d.filter(b));this.yh.gh(c);this.Mn.gh(d.filter(function(a){return!b(a)}));this.set("panoramaPixelsPerDegree",o.Fra(this.n));this.epa()};a.prototype.TA=function(){this.set("currentTime",this.n.get("currentTime",0))};a.prototype.hr=
function(){this.set("adjacentPanoramas",this.n.get("adjacentPanoramas",[]))};a.prototype.hp=function(){this.Bj();this.trigger(c.U)};a.prototype.vGa=function(){this.Bj();this.set("ready",m);this.trigger(c.Oc)};a.prototype.VA=function(){this.Bj()};a.prototype.Bj=function(){var a=0;this.Hd.Zr(function(b){var c=0,e;this.bf.Fl(b)?c=100:(e=this.Hd.Fl(b))&&(c=e.Kg);a=a+c}.bind(this));this.trigger(new g(c.gc,a/this.Hd.Zc.length))};a.prototype.X=function(a){if(a.$b&&!this.su&&n.Ee()==n.sD.Sl)this.gh([this.su=
new i].concat(this.Db()));var b=this.get("blendingActive");this.set("blendingActive",this.get("alpha")<1);b!=this.get("blendingActive")&&this.ta.set("globalBlendingActive",this.ta.get("globalBlendingActive")+(this.get("blendingActive")?1:-1));this.set("backgroundPreloadEnabled",this.ta.Zb.get("backgroundPreloadEnabled")!==B);this.set("preloadEnabled",a.eO);this.D("adjacentPanoramas","loadingActive","preloadEnabled","backgroundPreloadEnabled")&&(this.get("loadingActive")&&this.get("backgroundPreloadEnabled")?
this.HKa():this.l7());this.D("index")&&this.epa();f.prototype.X.call(this,a)};a.prototype.q$=function(){return o.q$(this.n,this.get("preloadEnabled"))};a.prototype.W$=function(){return o.W$(this.n,this.get("preloadEnabled"))};a.prototype.HKa=function(){this.l7();this.LT=this.get("adjacentPanoramas").map(function(a){a=a.get("panorama");return[a,o.Wm(a,this.get("preloadEnabled"))]}.bind(this));this.LT.forEach(function(a){k.gqa(a[0],a[1]);k.aX(a[0],1)})};a.prototype.l7=function(){this.LT.forEach(function(a){k.aX(a[0],
-1);k.sRa(a[0],a[1])});this.LT=[]};a.prototype.epa=function(){var a=this.get("index");this.yh.Db().forEach(function(b,c,e){b.set("panoramaIndex",a);b.set("frameIndex",c);b.set("frameCount",e.length)})};var p=b.extend(f,function(){f.call(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",B);this.set("currentTime",0);this.set("tag","Group")});p.prototype.X=function(a){this.Db().forEach(function(a,b,c){a.set("frontFrame",c[c.length-1])});f.prototype.X.call(this,
a)};var t=b.extend(f,function(){f.call(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",B);this.set("currentTime",0);this.set("tag","Group")});return a});
define("bE",["require","kG","fk","ef"],function(a){var b=a("kG"),d=a("fk"),c=a("ef"),g=0,a=b.extend(d,function(){d.call(this);this.set("tag","PanoramaFrame");this.set("panoramaIndex",0);this.set("frameIndex",0);this.set("frameCount",1);this.set("id","frame_"+g++)});a.prototype.X=function(a){d.prototype.X.call(this,a);this.IB()};a.prototype.MB=function(){if(this.D("panoramaIndex","frameIndex","frameCount","meshGroup")){var a=this.get("meshGroup");if(a){var b=this.get("panoramaIndex"),e=this.get("frameIndex"),
d=this.get("frameCount"),g=a.children.length;a.children.forEach(function(a,f){c.FX(a,b+(f+e/d)/g)}.bind(this))}}};a.prototype.IB=function(){if(this.D("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a,b){c.setAttribute(a,c.Jy,this.get("panoramaId"));c.setAttribute(a,c.YX,b);c.setAttribute(a,c.RC,this.get("id"))}.bind(this))}};return a});
define("ne","require,kG,jU,nU,hy,iy,bE,jF,mB,fS,jM,kH".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("hy"),f=a("iy"),i=a("bE"),e=a("jF"),j=a("mB"),o=a("fS"),k=a("jM"),n=a("kH"),a=b.extend(i,function(a){i.call(this);this.set("tag","ImagePanoramaFrame");this.Qla=m;this.n=a;this.bk.push(this.n);this.jk=this.Cg=this.Rn=q;this.Q3=[];this.Bf=this.Bf.bind(this);this.Jo(["loadingActive","currentTime","panoramaId","panoramaPixelsPerDegree"]);this.gh([this.Mn=new r])});a.prototype.Eb=function(){this.Rn=
new e(c.U);this.Cg=new e(c.U);this.jk=new e(c.gc);i.prototype.Eb.call(this);d.pa(this.n,["overlays"],this.Bf,m)};a.prototype.Jb=function(){this.Rn.dispose();this.Cg.dispose();this.jk.dispose();d.na(this.n,["overlays"],this.Bf);i.prototype.Jb.call(this)};a.prototype.Bf=function(){this.Mn.gh(this.ta.fv(this.n.get("overlays")));this.Soa()};a.prototype.Soa=function(){this.Cg.We([].concat(this.Q3,this.Mn.Db()));this.jk.We([].concat(this.Q3,this.Mn.Db()))};a.prototype.em=function(){var a=[],b=[],e=[];j.X9(this.n,
this.Qla).forEach(function(c,d){var f=o.eOa(this.n,c);if(j.rQa(c)){if(d==0){a=a.concat(f);b=b.concat(f)}k.ts(f,d==0?k.Co:k.eP);k.ss(f,d==0?k.pn:k.$Y)}else{d==0&&(a=a.concat(f));b=b.concat(f);k.ts(f,k.Co);k.ss(f,k.pn)}k.Ay(f,d==0?g.lZ:g.qn);k.tH(f,d);e=e.concat(f)}.bind(this));this.Rn.We(a);this.Q3=b;this.Soa();this.Cg.Pl(this.hp.bind(this));this.Rn.Pl(this.XGa.bind(this));this.jk.mo(this.VA.bind(this));this.trigger(new n(c.gc,0));return e};a.prototype.XGa=function(){this.trigger(c.Oc)};a.prototype.hp=
function(){this.trigger(c.U)};a.prototype.X=function(a){this.Qla=a.eO;this.BMa();i.prototype.X.call(this,a)};a.prototype.BMa=function(){var a=this.get("frontFrame");if(this.D("frontFrame")||a&&a.D("alpha"))this.Mn.set("alpha",!a||a==this?1:1-a.get("alpha"))};a.prototype.VA=function(){var a=0;this.jk.Zr(function(b){var c=0,e;this.Cg.Fl(b)?c=100:(e=this.jk.Fl(b))&&(c=e.Kg);a=a+c}.bind(this));this.trigger(new n(c.gc,a/this.jk.Zc.length))};var r=b.extend(f,function(){f.call(this);this.Jo(["loadingActive",
"panoramaId","panoramaPixelsPerDegree"]);this.set("loadingActive",B);this.set("tag","Group")});return a});
define("lH","require,dY,nU,cs,gE,nr".split(","),function(a){function b(a,b){this.Dc=a;this.T=b;this.ll=B;this.Ci=[];this.fm=this.YD=l;this.ce=[];this.B_();this.r0();this.OU();this.cf()}function d(a,b,c){this.time=a;this.cue=b;this.action=c}var c=a("dY"),g=a("nU"),f=a("cs"),i=a("gE"),e=a("nr");b.prototype.clear=function(){this.sI();this.Ci=[];this.U7();this.T=this.Dc=q};b.prototype.B_=function(){this.T.bind(e.pf,this.Ae,this,m);this.T.bind(g.Fc,this.cf,this,m);this.T.bind(g.Ga,this.xx,this,m)};b.prototype.U7=
function(){this.T.unbind(e.pf,this.Ae,this,m);this.T.unbind(g.Fc,this.cf,this,m);this.T.unbind(g.Ga,this.xx,this,m)};b.prototype.cf=function(){var a=this.T.og()!=i.L;if(this.ll!=a)(this.ll=a)?this.OU():this.sI()};b.prototype.xx=function(){this.PB()};b.prototype.Ae=function(){this.PB()};b.prototype.OU=function(){this.fm=this.YD=0};b.prototype.PB=function(){if(this.T&&this.ll){var a=this.ce.slice(),b=this.T.Cl(),e=b-this.YD;if(e<0){this.ce=[];this.fm=0}e=e>=0&&e<2;this.YD=b;var d;for(d=this.fm;d<this.Ci.length;d++)if(this.Ci[d].time>
b)break;for(;this.fm<d;this.fm++){b=this.Ci[this.fm];if(b.action=="start"){this.ce=c(this.ce).union([b.cue]);e&&b.cue.trigger(new f(g.hn))}else{this.ce=c(this.ce).difference([b.cue]);e&&b.cue.trigger(new f(g.Ga))}}(a.length!=this.ce.length||c(a).intersection(this.ce).length!=this.ce.length)&&this.xM()}};b.prototype.sI=function(){if(this.ce.length>0){this.ce=[];this.xM()}};b.prototype.xM=function(){this.Dc.trigger(new f(g.Rh,{activeCues:this.ce.slice()}))};b.prototype.r0=function(){this.Ci=[];var a=
this.Dc.get("cues",[]);c(a).each(function(a){this.Ci.push(new d(a.get("startTime",0),a,"start"));this.Ci.push(new d(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.Ci.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("eM",["require","nU","gE","cs","nr"],function(a){function b(a,b,d){this.Zb=a;this.Dc=b;this.T=d;this.T.EC(this.Af=this.Dc.get("currentTime",0));this.T.nf(this.Le=this.Zb.get("mute",B));this.T.yd(this.o=this.Dc.get("state",c.L));this.T.setLoop(this.Vk=this.Dc.get("loop"));this.cb=this.T.Ti();this.Fya();this.Lya();this.ct()}var d=a("nU"),c=a("gE"),g=a("cs"),f=a("nr");b.prototype.clear=function(){this.yIa();this.DIa();this.zu();this.T.yd(c.L);this.Dc.set("state",c.L);this.Dc.set("currentTime",
0);this.Dc.set("duration",l)};b.prototype.pla=function(){var a=this.Dc.get("state",c.L);this.o!=a&&this.T.yd(this.o=a)};b.prototype.nla=function(){var a=this.Dc.get("currentTime",0);this.Af!=a&&this.T.EC(this.Af=a)};b.prototype.JK=function(){var a=this.Zb.get("mute",0);this.Le!=a&&this.T.nf(this.Le=a)};b.prototype.ola=function(){var a=this.Dc.get("loop");this.Vk!=a&&this.T.setLoop(this.Vk=a)};b.prototype.SK=function(){this.Dc.set("currentTime",this.Af=this.T.Cl())};b.prototype.QK=function(){this.Dc.set("duration",
this.cb=this.T.Ti())};b.prototype.RK=function(){this.Dc.set("state",this.o=this.T.og())};b.prototype.TK=function(){this.Dc.trigger(new g(d.Ga))};b.prototype.Fya=function(){this.Zb.bind(d.u("mute"),this.JK,this,m)};b.prototype.yIa=function(){this.Zb.unbind(d.u("mute"),this.JK,this,m)};b.prototype.Lya=function(){this.Dc.bind(d.u("state"),this.pla,this,m);this.Dc.bind(d.u("currentTime"),this.nla,this,m);this.Dc.bind(d.u("loop"),this.ola,this,m)};b.prototype.DIa=function(){this.Dc.unbind(d.u("state"),
this.pla,this,m);this.Dc.unbind(d.u("currentTime"),this.nla,this,m);this.Dc.unbind(d.u("loop"),this.ola,this,m)};b.prototype.ct=function(){this.T.bind(f.pf,this.SK,this,m);this.T.bind(f.wi,this.QK,this,m);this.T.bind(d.Fc,this.RK,this,m);this.T.bind(d.Ga,this.TK,this,m)};b.prototype.zu=function(){this.T.unbind(f.pf,this.SK,this,m);this.T.unbind(f.wi,this.QK,this,m);this.T.unbind(d.Fc,this.RK,this,m);this.T.unbind(d.Ga,this.TK,this,m)};return b});
define("jG",["require","nr","nU"],function(a){function b(a,b){this.Dc=a;this.T=b;this.XZ=[];this.B_();this.hi()}a("nr");var d=a("nU");b.prototype.clear=function(){this.sAa();this.U7();this.T=this.Dc=q};b.prototype.B_=function(){this.T.bind(d.Rh,this.hi,this,m)};b.prototype.U7=function(){this.T.unbind(d.Rh,this.hi,this,m)};b.prototype.hi=function(){this.Dc.set("activeSubtitles",this.XZ=this.T.Jq)};b.prototype.sAa=function(){this.Dc.get("activeSubtitles")==this.XZ&&this.Dc.set("activeSubtitles",this.XZ=
[])};return b});
define("dE","require,kG,nU,hy,gE,bE,jF,fS,lH,eM,ef,jM,jG,nr,kH".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("hy"),g=a("gE"),f=a("bE"),i=a("jF"),e=a("fS"),j=a("lH"),o=a("eM"),k=a("ef"),n=a("jM"),r=a("jG"),p=a("nr"),t=a("kH"),a=b.extend(f,function(a){f.call(this);this.n=a;this.bk.push(this.n);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoPanoramaFrame");this.set("frameEmpty",l);this.set("atStart",l);this.Ppa=this.n.get("stereoSphere")||this.n.get("sphere");
this.ib=p.Gj(this.Ppa);this.qG=[];this.hB=[];this.jk=this.Cg=this.Lh=this.T=q});a.prototype.Eb=function(){this.Cg=(new i(d.U)).Pl(this.hp.bind(this));this.jk=(new i(d.gc)).mo(this.VA.bind(this));this.T=new p(this.ta.Zb,this.Ppa);this.Uo=new j(this.n.UG(),this.T);this.za=new o(this.ta.Zb,this.n.UG(),this.T);this.Ku=new r(this.n.UG(),this.T);this.ct();f.prototype.Eb.call(this)};a.prototype.Jb=function(){this.Cg.dispose();this.jk.dispose();this.zu();this.Uo.clear();this.Uo=q;this.za.clear();this.za=
q;this.Ku.clear();this.Ku=q;this.T.clear();this.Lh=this.T=q;f.prototype.Jb.call(this)};a.prototype.em=function(){this.qG=e.jOa(this.n,this.ib);this.iNa=n.NC(k.ry(this.qG[0])[0]);this.qG.forEach(function(a){n.ts(a,n.Co);n.ss(a,n.pn)});if(this.ib.get("posterURL")){this.hB=e.kOa(this.n,this.ib);this.hB.forEach(function(a){n.ts(a,n.Co);n.ss(a,n.pn);n.Ay(a,c.lZ)})}else this.hB=[];var a=[].concat(this.qG,this.hB);this.Cg.We(a);this.jk.We(a);this.trigger(new t(d.gc,0));return a};a.prototype.X=function(a){var b=
this.T.oW();this.set("frameEmpty",b.isEmpty());this.set("atStart",!(this.get("currentTime")>1));f.prototype.X.call(this,a);if(!this.Lh||!this.Lh.isEqual(b)){this.Lh=b;this.iNa.Ll(this.Lh.bA);this.wa()}else this.T.og()==g.S&&this.wa()};a.prototype.vl=function(){if(this.D("composedAlpha","meshGroup","frameEmpty","atStart"))if(this.hB.length&&this.get("frameEmpty")&&this.get("atStart")){this.hB.forEach(function(a){k.Ve(a,this.get("composedAlpha"))}.bind(this));this.qG.forEach(function(a){k.Ve(a,0)}.bind(this))}else{this.hB.forEach(function(a){k.Ve(a,
0)}.bind(this));this.qG.forEach(function(a){k.Ve(a,this.get("composedAlpha"))}.bind(this))}};a.prototype.hp=function(){this.trigger(d.Oc);this.trigger(d.U)};a.prototype.VA=function(a,b){var c=0;b.Zr(function(a){(a=b.Fl(a))&&(c=c+a.Kg)});this.trigger(new t(d.gc,c/b.Zc.length))};a.prototype.cf=function(){this.wa()};a.prototype.Ae=function(){this.wa()};a.prototype.ct=function(){this.T.bind(p.pf,this.Ae,this,m);this.T.bind(d.Fc,this.cf,this,m)};a.prototype.zu=function(){this.T.unbind(p.pf,this.Ae,this,
m);this.T.unbind(d.Fc,this.cf,this,m)};return a});
define("dn","require,kG,nU,iS,md,jF,kH".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("iS"),g=a("md"),f=a("jF"),i=a("kH"),a=b.extend(c,function(){c.call(this);this.set("tag","ImagePlane");this.set("url",q);this.Hd=this.bf=q});a.prototype.Eb=function(){this.bf=(new f(d.U)).Pl(this.hp.bind(this));this.Hd=(new f(d.gc)).mo(this.ou.bind(this));c.prototype.Eb.call(this)};a.prototype.Jb=function(){this.bf.dispose();this.Hd.dispose();c.prototype.Jb.call(this)};a.prototype.X=function(a){if(this.D("url")){var b=
this.get("url");this.set("textureSource",b?new g(b):q)}c.prototype.X.call(this,a);if(this.D("meshGroup")){a=(a=this.get("meshGroup"))&&a.children||[];if(a.length){this.bf.We(a);this.Hd.We(a)}}};a.prototype.hp=function(){this.trigger(d.Oc);this.trigger(d.U)};a.prototype.ou=function(a,b){var c=0;b.Zr(function(a){(a=b.Fl(a))&&(c=c+a.Kg)});this.trigger(new i(d.gc,c/b.Zc.length))};return a});
define("bA","require,kG,jU,nU,gE,gZ,iy,dd,nM,dn,eM,mO,jF,mB,ep,kj,S,kH,nx,bC,nr".split(","),function(a){function b(a){setTimeout(a,0)}function d(a,b){for(var c=a-b;c>180;)c=c-360;for(;c<-180;)c=c+360;return c+b}var c=a("kG"),g=a("jU"),f=a("nU"),i=a("gE");a("gZ");var e=a("iy"),j=a("dd"),o=a("nM"),k=a("dn"),n=a("eM"),r=a("mO"),p=a("jF"),t=a("mB"),s=a("ep"),u=a("kj"),v=a("S"),w=a("kH"),x=a("nx"),y=a("bC"),D=a("nr"),E=Math.PI/180,a=c.extend(e,function(a){e.call(this);this.n=a;this.bk.push(this.n);this.Bf=
this.Bf.bind(this);this.aT=this.aT.bind(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Popup");this.set("inVR",B);this.set("enabledInStandard",m);this.set("interactionEnabled",m);this.set("loadingActive",B);this.set("frameEmpty",m);this.set("state",i.L);this.set("itemVisible","none");this.set("visible",B);this.set("visiblePosition",0);this.set("alpha",0);this.set("over",B);this.set("gazeOver",B);this.set("video",q);this.set("image",q);this.Vd=this.fb=this.Fa=
this.Hd=this.bf=q;this.Za=new r;this.gt=this.Xw=this.yl=this.Lh=this.T=q});a.prototype.Eb=function(){this.bf=(new p(f.U)).Pl(this.QA.bind(this));this.Hd=(new p(f.gc)).mo(this.UA.bind(this));e.prototype.Eb.call(this);this.TAa();this.appendChild(this.Vd);g.pa(this.n,H,this.Bf,m);g.KV(this.n,M,this.aT,m)};var H=["playbackPositions","popupDistance","popupMaxHeight","popupMaxWidth","image.levels.url","video","state"],M=["visible"];a.prototype.Jb=function(){this.bf.dispose();this.Hd.dispose();g.na(this.n,
H,this.Bf);g.na(this.n,M,this.aT);this.Zz();this.Cw();this.Bt();e.prototype.Jb.call(this)};a.prototype.Bf=function(){var a=t.mPa(this.n,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.n.get("video"));this.set("state",this.n.get("state"));this.set("popupDistance",this.n.get("popupDistance"));this.set("popupMaxWidth",this.n.get("popupMaxWidth"));this.set("popupMaxHeight",
this.n.get("popupMaxHeight"));this.set("playbackPositions",this.n.get("playbackPositions"))};a.prototype.aT=function(){this.set("visible",this.n.get("visible"))};a.prototype.X=function(a){this.Mx=a.Na;this.Lx=a.pitch;this.Su(a);this.EMa();this.KM(a);this.Jd(a);this.vMa(a);this.dMa(a);e.prototype.X.call(this,a)};a.prototype.EMa=function(){if(this.D("playbackPositions","currentTime")){this.Za.Dy(this.get("playbackPositions"));this.Za.Cy(this.get("currentTime"));this.set("sourceYaw",this.Za.get("yaw"));
this.set("sourcePitch",this.Za.get("pitch"));this.set("sourceRotationX",this.Za.get("rotationX"));this.set("sourceRotationY",this.Za.get("rotationY"));this.set("sourceRotationZ",this.Za.get("rotationZ"));this.set("sourceHFOV",this.Za.get("hfov"))}};a.prototype.Su=function(){if(this.D("video","imageURL")){var a=[this.Vd];if(this.D("imageURL")){this.AI();this.Fa&&a.push(this.Fa);this.GL("itemVisible")}if(this.D("video")){this.CI();this.fb&&a.push(this.fb);this.GL("itemVisible")}this.bf.We(a);this.Hd.We(a);
this.gh(a)}};a.prototype.KM=function(){if(this.T){var a=this.T.oW();this.set("frameEmpty",!!a&&a.isEmpty());if(!this.Lh||a&&!this.Lh.isEqual(a)){this.Lh=a;this.fb.set("source",this.Lh.bA);this.fb.set("sourceUpdated",m);this.wa()}else this.T.og()==i.S&&this.wa()}else this.set("frameEmpty",B)};a.prototype.Jd=function(a){this.set("inVR",a.$b);this.set("hotspotsEnabled",a.qC);this.set("rendererYaw",a.Na);this.set("rendererPitch",a.pitch);this.set("rendererRoll",a.He);this.set("rendererWidth",a.TV);this.set("rendererHeight",
a.eN);this.set("rendererHFOV",a.ue);if(this.D("visible")){var c=this.get("visiblePosition"),e=this.get("visible")?1:0,g=Math.max(1,this.n.get(this.get("visible")?"showDuration":"hideDuration")*Math.abs(e-c)),j=this.n.get(this.get("visible")?"showEasing":"hideEasing");if(c!=e)this.yl=new x(j,[new y("position",c,e)],g);this.get("visible")||this.T&&this.T.yd(i.L)}if(this.yl){if(this.yl.Te()){this.yl=q;if(this.get("visible")){this.n.trigger(f.rD);this.n.get("autoplay")&&this.T&&this.T.yd(i.S)}else b(function(){this.n&&
this.n.trigger(f.fD)}.bind(this))}else this.yl.xb(a.Qe);if(this.yl){this.set("visiblePosition",this.yl.gb("position"));this.wa()}}c=B;if(c=a.$b?this.D("visible","itemVisible"):this.D("rendererYaw","rendererPitch","rendererRoll","rendererWidth","rendererHeight","rendererHFOV","itemVisible","popupMaxWidth","popupMaxHeight","sourceHFOV")){this.set("targetImageScale",this.Nha(this.Fa,a));this.set("targetVideoScale",this.Nha(this.fb,a));this.set("targetYaw",d(this.get("rendererYaw"),this.get("sourceYaw")));
this.set("targetPitch",this.get("rendererPitch"));this.set("targetRotationZ",d(a.$b?0:this.get("rendererRoll"),this.get("sourceRotationZ")))}if(c||this.D("visiblePosition","targetScale","targetYaw","targetPitch","targetRoll","popupDistance","hfov")){var e=this.get("visiblePosition"),o=this.get("targetYaw")*e+this.get("sourceYaw")*(1-e),k=this.get("targetPitch")*e+this.get("sourcePitch")*(1-e),n=this.get("sourceRotationX")*(1-e),r=this.get("sourceRotationY")*(1-e),p=this.get("targetRotationZ")*e+this.get("sourceRotationZ")*
(1-e),a=Math.min(1,2*e),s=this.get("popupDistance"),t=this.get("sourceHFOV"),c=this.get("targetImageScale")*e+(1-e),e=this.get("targetVideoScale")*e+(1-e);this.set("alpha",a);this.Fa&&this.Fa.set("scale",c);this.fb&&this.fb.set("scale",e);[].concat(this.fb?[this.fb]:[],this.Fa?[this.Fa]:[]).forEach(function(a){a.set("yaw",o);a.set("pitch",k);a.set("rotationX",n);a.set("rotationY",r);a.set("rotationZ",p);a.set("distance",s);a.set("hfov",t)})}};a.prototype.vMa=function(a){if(this.D("frameEmpty","state",
"imageURL","video")){var b="none";this.fb&&(!this.Fa||!this.get("frameEmpty")&&this.get("state")!=i.L)?b="video":this.Fa&&(b="image");this.set("itemVisible",b)}if(this.D("itemVisible")){this.get("itemVisible")!="video"&&this.T&&this.T.yd(i.L);var b=this.Fa?this.Fa.get("alpha"):0,c=this.fb?this.fb.get("alpha"):0,e=this.get("itemVisible")=="image"?1:0,d=this.get("itemVisible")=="video"?1:0,f=this.get("itemVisible")=="video"?1:Math.max(Math.abs(e-b),Math.abs(d-c))*200;this.Xw=new x("linear",[new y("imageAlpha",
b,e),new y("videoAlpha",c,d)],f)}if(this.Xw){this.Xw.Te()?this.Xw=q:this.Xw.xb(a.Qe);if(this.Xw){this.Fa&&this.Fa.set("alpha",this.Xw.gb("imageAlpha"));this.fb&&this.fb.set("alpha",this.Xw.gb("videoAlpha"));this.wa()}}};a.prototype.dMa=function(a){if(this.D("gazeOver","inVR")){this.mfa();this.get("inVR")&&this.n.get("lookAwayToHide")&&!this.get("gazeOver")&&this.EKa()}if(a.$b&&this.n.get("darkenBackground")&&this.n.get("lookAwayToHide")){if(this.D("visible")&&this.get("visible")){this.Vd.set("alpha",
0.8);this.gt=q}if(this.D("gazeOver"))this.gt=new x(this.get("gazeOver")?"linear":"quad_in",[new y("alpha",this.Vd.get("alpha"),this.get("gazeOver")?0.8:0)],this.get("gazeOver")?300:this.n.get("lookAwayToHideTime"))}else{this.gt=q;this.Vd.set("alpha",a.$b&&this.n.get("darkenBackground")?0.8:0)}if(this.gt){this.gt.Te()?this.gt=q:this.gt.xb(a.Qe);if(this.gt){this.Vd.set("alpha",this.gt.gb("alpha"));this.wa()}}};a.prototype.EKa=function(){this.mfa();this.cS=setTimeout(function(){this.cS=q;this.n.set("visible",
B)}.bind(this),this.n.get("lookAwayToHideTime"))};a.prototype.mfa=function(){if(this.cS){clearTimeout(this.cS);this.cS=q}};a.prototype.Nha=function(a,b){if(!a)return 1;var c=this.get("popupMaxWidth","100%"),e=v.oo(c),d=a.get("contentWidth"),f=a.get("contentHeight"),g=this.get("popupMaxHeight","100%"),i=v.oo(g),j;if(this.get("inVR")){var o=j=this.get("rendererWidth")*0.5,k=Math.min(b.Ph,80),n=u.XB(k,j,o),r=this.get("sourceHFOV");j=Math.min(Math.tan(n*(e!==l?e/100:c/j)*0.5*E)/Math.tan(r*0.5*E),Math.tan(k*
(i!==l?i/100:g/o)*0.5*E)/Math.tan(u.XB(r,d,f)*0.5*E))}else{j=this.get("rendererWidth");o=this.get("rendererHeight");n=Math.min((e!==l?j*e/100:c)/d,(i!==l?o*i/100:g)/f);d=d*n;n=this.get("rendererHFOV");r=this.get("sourceHFOV");j=Math.tan(n*0.5*E)*d/j/Math.tan(r*0.5*E)}return j};a.prototype.AI=function(){this.Zz();if(this.get("imageURL")){this.Fa=new k;this.Fa.set("url",this.get("imageURL"));this.Fa.set("contentWidth",this.get("imageWidth"));this.Fa.set("contentHeight",this.get("imageHeight"));this.Fa.set("alpha",
0)}};a.prototype.Zz=function(){if(this.Fa){this.Fa.remove();this.Fa=q}};a.prototype.CI=function(){this.Cw();if(this.get("video")){this.fb=new o;var a=D.Gj(this.get("video"));this.fb.set("contentWidth",a.get("width"));this.fb.set("contentHeight",a.get("height"));this.fb.set("alpha",0);this.T=new D(this.ta.Zb,this.get("video"));this.za=new n(this.ta.Zb,this.n,this.T);this.ct()}};a.prototype.Cw=function(){if(this.fb){this.zu();this.za.clear();this.za=q;this.T.clear();this.Lh=this.T=q;this.fb.remove();
this.fb=q}};a.prototype.TAa=function(){this.Bt();this.Vd=new j("#000000")};a.prototype.Bt=function(){if(this.Vd){this.Vd.remove();this.Vd=q}};a.prototype.QA=function(){this.trigger(f.Oc);this.trigger(f.U)};a.prototype.UA=function(a,b){var c=0;b.Zr(function(a){var b=0,e;this.bf.Fl(a)?b=100:(e=this.Hd.Fl(a))&&(b=e.Kg);c=c+b}.bind(this));this.trigger(new w(f.gc,c/b.Zc.length))};a.prototype.cf=function(){this.wa()};a.prototype.Ae=function(){this.wa()};a.prototype.xx=function(){this.n.trigger(f.Ga)};a.prototype.ct=
function(){this.T.bind(D.pf,this.Ae,this,m);this.T.bind(f.Fc,this.cf,this,m);this.T.bind(f.Ga,this.xx,this,m)};a.prototype.zu=function(){this.T.unbind(D.pf,this.Ae,this,m);this.T.unbind(f.Fc,this.cf,this,m);this.T.unbind(f.Ga,this.xx,this,m)};a.prototype.bn=function(a){if(a.$e==f.Hk){if(!a.zl()&&this.get("visible")){a.rs(this.n);this.set("over",this.Mp(a));this.set("gazeOver",this.lLa(a))}else this.set("over",B);if(this.get("over")){a.iy(this.n);a.ms()&&a.jy(this.n);a.wk(this.get("popupDistance"))}if(this.D("over")){this.n.trigger(this.get("over")?
f.bc:f.rb);a.ms()&&this.n.trigger(this.get("over")?f.Gk:f.Sh)}}else if(a.$e==f.Qj&&!a.zl()&&this.get("visible")){a.rs(this.n);a.wk(this.get("popupDistance"));this.Mp(a)?a.iQa()||this.n.trigger(f.ca):this.n.set("visible",B)}};a.prototype.Mp=function(a){return this.qoa(a.Ap)};a.prototype.lLa=function(a){a=a.YI;return!!a&&this.qoa([a])};a.prototype.qoa=function(a){if(this.get("visible"))for(var a=(this.get("itemVisible")=="video"?this.fb:this.Fa).Jt(a),b=0;b<a.length;b++){var c=a[b];if(s.xv(c.source,
c.x,c.y))return m}return B};return a});define("cL",["require","kG","iy"],function(a){var b=a("kG"),d=a("iy"),a=b.extend(d,function(){d.call(this);this.vw&&this.vw();this.wn&&this.wn()});a.prototype.Eb=function(){d.prototype.Eb.call(this);this.On&&this.On();this.sF&&this.sF()};a.prototype.Jb=function(){this.Qn&&this.Qn();this.tF&&this.tF();d.prototype.Jb.call(this)};a.prototype.X=function(a){this.tf&&this.tf(a);d.prototype.X.call(this,a);this.Sp&&this.Sp(a)};return a});
define("gF",["require","nU"],function(a){var b=a("nU");return{vw:function(){this.set("beamEnabled",B);this.Sd=B;this.Lx=this.Mx=l},Sp:function(a){this.Mx=a.Na;this.Lx=a.pitch},bn:function(a){if(a.$e==b.Hk){var c=!a.zl()&&this.Mp(a);if(c){a.iy(this.n);this.n.get("useHandCursor")&&a.jy(this.n);a.wk(this.get("distance"));var g=this.$a(a.uC());g&&a.NV(g,this.Yx(a.uC()))}this.Sd!=c&&(this.Sd=c,this.n.trigger(this.Sd?b.bc:b.rb),a.ms()&&this.n.trigger(this.Sd?b.Gk:b.Sh))}else a.$e==b.Qj&&!a.zl()&&this.Mp(a)&&
(1<this.n.NG(b.ca,m).length&&a.rs(this.n),a.wk(this.get("distance")),this.n.trigger(b.ca))},Mp:function(a){return this.get("beamEnabled")&&0<this.s2().Jt(a.Ap).length?m:B},$a:function(a){return!a||this.n.get("displayTooltipInTouchScreens")&&this.ta.K.get("displayTooltipInTouchScreens")!==B?this.n.get("toolTip",""):""},Yx:function(a){if(a){var a=this.get("yaw")-this.Mx,b=this.get("pitch")-this.Lx;return Math.sqrt(a*a+b*b)}return 0}}});
define("bP","require,kG,jU,nU,cL,jF,mB,gF".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("cL"),f=a("jF"),i=a("mB"),a=a("gF"),b=b.extend(g,a,function(a){g.call(this);this.n=a;this.wA=this.K1=this.Q2=q;this.bk.push(this.n);this.Bf=this.Bf.bind(this);this.Jo(["loadingActive","panoramaPixelsPerDegree"]);this.set("tag","FrameHotspot");this.set("enabled",m);this.set("inVR",B);this.set("inScreenshot",B);this.set("overlaysEnabled",m);this.set("interactionEnabled",m);this.set("contentInteractive",
B);this.set("transparent",B);this.set("centerOverDisplay",B);this.set("loadingActive",B);this.set("visible",B);this.set("loaded",B);this.set("inView",B);this.set("frameHidden",m);this.rd=this.ar=this.Hd=this.bf=q});b.prototype.Eb=function(){this.bf=(new f(c.U)).Pl(this.QA.bind(this));this.Hd=(new f(c.gc)).mo(this.UA.bind(this));this.bBa();g.prototype.Eb.call(this);d.pa(this.n,["url","enabled","image","fadeInDuration","fadeOutDuration","contentInteractive","interactionEnabled","transparent"],this.Bf,
m)};b.prototype.Jb=function(){this.bf.dispose();this.Hd.dispose();d.na(this.n,["url","enabled","image","fadeInDuration","fadeOutDuration","contentInteractive","interactionEnabled","transparent"],this.Bf);this.fga();this.hga();g.prototype.Jb.call(this)};b.prototype.Bf=function(){this.set("url",this.n.get("url"));this.rd.set("url",this.get("url"));this.set("image",this.n.get("image"));this.Fa.set("image",this.get("image"));this.Fa.set("level",this.get("image")&&i.vra(this.n,this.get("panoramaPixelsPerDegree")));
this.set("enabled",this.n.get("enabled"));this.set("fadeInDuration",this.n.get("fadeInDuration"));this.set("fadeOutDuration",this.n.get("fadeOutDuration"));this.set("interactionEnabled",this.n.get("interactionEnabled"));this.set("contentInteractive",this.n.get("contentInteractive"));this.set("transparent",this.n.get("transparent"));this.wa()};b.prototype.X=function(a){this.set("loaded",!!this.rd&&this.rd.get("frameLoaded"));this.set("inVR",a.$b);this.set("inScreenshot",a.sC);this.set("hotspotsEnabled",
a.qC);g.prototype.X.call(this,a);this.Jd(a)};b.prototype.bBa=function(){this.AI();this.nBa();this.mBa();var a=[this.Fa,this.ar,this.rd];this.bf.We(a);this.Hd.We(a);this.gh(a)};b.prototype.Jd=function(){this.set("globalBlendingActiveCopy",this.get("globalBlendingActive"));if(this.D("globalBlendingActive","globalBlendingActiveCopy","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("globalBlendingActive")==0&&this.get("hotspotsEnabled")&&this.get("enabled")&&!this.get("inVR")&&!!this.get("url");this.set("visible",a);this.set("beamEnabled",a&&this.get("interactionEnabled"));this.rd.set("contentInteractive",a&&this.get("interactionEnabled")&&this.get("contentInteractive"))}this.set("frameHidden",!this.rd.get("geometryVisible"));if(this.D("visible","loaded","frameHidden","transparent","inScreenshot")){this.get("visible")||
this.set("loaded",B);this.Fa.set("alpha",this.get("visible")&&(this.get("frameHidden")||!this.get("loaded"))?1:0);this.Fa.set("alpha",1);this.ar.set("alpha",this.get("visible")&&!this.get("frameHidden")&&this.get("loaded")&&!this.get("transparent")&&!this.get("inScreenshot")?1:0);this.rd.set("alpha",this.get("visible")?1:0);this.rd.set("transparent",this.get("transparent"));this.set("inView",this.get("visible")&&(this.get("loaded")||this.get("image")));this.wa()}this.D("inView")&&this.n.trigger(this.get("inView")?
c.hc:c.nc)};b.prototype.AI=function(){this.Zz();this.Fa=new this.wA;this.Fa.set("image",this.get("image"));this.Fa.set("level",this.get("image")&&i.vra(this.n,this.get("panoramaPixelsPerDegree")));this.Fa.set("visible",m);this.Fa.set("alpha",0);this.set("imagePlane",this.Fa)};b.prototype.Zz=function(){if(this.Fa){this.Fa.remove();this.Fa=q;this.set("imagePlane",q)}};b.prototype.mBa=function(){this.fga();this.rd=new this.K1;this.rd.bind(c.U,this.Pga,this,m);this.rd.set("url",this.get("url"));this.rd.set("visible",
m);this.rd.set("alpha",1);this.set("framePlane",this.rd)};b.prototype.fga=function(){if(this.rd){this.rd.unbind(c.U,this.Pga,this,m);this.rd.remove();this.rd=q;this.set("framePlane",q)}};b.prototype.nBa=function(){this.hga();this.ar=new this.Q2;this.ar.set("visible",m);this.ar.set("alpha",1);this.set("holePlane",this.ar)};b.prototype.hga=function(){if(this.ar){this.ar.remove();this.ar=q;this.set("holePlane",q)}};b.prototype.s2=S("ar");b.prototype.Pga=function(){this.wa()};b.prototype.QA=function(){this.trigger(c.Oc);
this.trigger(c.U)};b.prototype.UA=function(a,b){var d=0;b.Zr(function(a){(a=b.Fl(a))&&(d=d+a.Kg)});this.trigger(new ProgressEvent(c.gc,d/b.Zc.length))};return b});
define("fu",["require","kG","iy"],function(a){var b=a("kG"),d=a("iy"),a=b.extend(d,function(){d.call(this);this.set("tag","ComposedCSSObject");this.set("transparent",B);this.set("cssScene",q);this.set("cssSceneOver",q);this.set("cssObject",this.o0());this.tt&&this.tt();this.Xz&&this.Xz();this.vw&&this.vw();this.wn&&this.wn()});a.prototype.o0=function(){var a=new THREE.CSS3DObject;a.matrixAutoUpdate=B;return a};a.prototype.Eb=function(){d.prototype.Eb.call(this);this.On&&this.On();this.LJ&&this.LJ();
this.sF&&this.sF()};a.prototype.Jb=function(){this.SE&&this.SE();this.tF&&this.tF();this.Qn&&this.Qn();var a=this.get("cssObject");a&&a.parent&&a.parent.remove(a);this.set("cssScene",q);d.prototype.Jb.call(this)};a.prototype.X=function(a){this.tf&&this.tf(a);d.prototype.X.call(this,a);this.set("cssScene",a.lN);this.set("cssSceneOver",a.mN);if(this.D("transparent")){var b=this.get("cssObject");b&&b.parent&&b.parent.remove(b)}this.D("cssScene","cssSceneOver","transparent")&&(b=this.get("transparent")?
a.mN:a.lN)&&b.add(this.get("cssObject"));this.vl();this.Aj&&this.Aj(a);this.Tu&&this.Tu(a);this.MB()};a.prototype.vl=function(){this.D("composedAlpha","meshGroup")&&this.bw()};a.prototype.bw=function(){this.get("cssObject").element.style.display=0<this.get("composedAlpha")?"block":"none"};a.prototype.MB=function(){this.D("index")&&(this.get("cssObject").containerElement.style.zIndex=this.get("index"))};return a});
define("ea",["require","iA","a"],function(a){var b=a("iA"),d=a("a"),c=new THREE.Matrix4,g=Math.PI/180;return{tt:function(){this.set("vertices",l);this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.Pn=new THREE.Matrix4;this.jm=new THREE.Matrix4;this.gp=new THREE.Matrix4},o0:function(){var a=new THREE.CSS3DQuad;a.matrixAutoUpdate=B;return a},Tu:function(a){var i=B;if(this.D("vertices","contentWidth","contentHeight")){var e=this.get("vertices"),i=d.$r(e[0].get("yaw")*g,e[0].get("pitch")*g).normalize(),
j=d.$r(e[1].get("yaw")*g,e[1].get("pitch")*g).normalize(),o=d.$r(e[2].get("yaw")*g,e[2].get("pitch")*g).normalize(),e=d.$r(e[3].get("yaw")*g,e[3].get("pitch")*g).normalize(),k=this.get("cssObject");k.vertices[0].set(i.x,i.y,-i.z);k.vertices[1].set(j.x,j.y,-j.z);k.vertices[2].set(o.x,o.y,-o.z);k.vertices[3].set(e.x,e.y,-e.z);k.contentWidth=this.get("contentWidth");k.contentHeight=this.get("contentHeight");i=m}j=B;this.D("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.dh.makeTranslation(0.5*
-this.get("composedTranslationX")*b.of,0.5*this.get("composedTranslationY")*b.of,0.5*this.get("composedTranslationZ")*b.of),j=m);this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.qd.makeRotationY(-a.Na*g),this.qd.multiply(c.makeRotationX(-this.get("composedDeltaPitch")*g)),this.qd.multiply(c.makeRotationY(this.get("composedDeltaYaw")*g)),this.qd.multiply(c.makeRotationY(a.Na*g)),j=m);if(j||this.D("meshGroup"))this.gp.copy(this.dh),this.gp.multiply(this.qd),this.get("cssObject").matrix.copy(this.gp),
this.get("cssObject").matrixWorldNeedsUpdate=m;this.set("cameraYaw",a.Na);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.He);this.set("cameraHfov",a.ue);this.set("cameraWidth",a.width);this.set("cameraHeight",a.height);if(a.camera&&(j||i||this.D("cameraYaw","cameraPitch","cameraRoll","cameraHfov","cameraWidth","cameraHeight")))this.get("cssObject").projectVertices(a.camera),this.set("geometryVisible",this.get("cssObject").isVisible),this.D("geometryVisible")&&this.k6()}}});
define("dp","require,hy,iA,ef,jM,a".split(","),function(a){var b=a("hy"),d=a("iA"),c=a("ef"),g=a("jM"),f=a("a"),i=new THREE.Matrix4,e=Math.PI/180;return{tt:function(){this.set("distance",l);this.set("vertices",l);this.zh=q;this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.pl=new THREE.Matrix4;this.fi=new THREE.Matrix4},Tu:function(a){this.ZMa(a);this.Qp(a)},sE:function(){var a=this.get("meshGroup");return a?c.zk(a)[0]:q},em:function(){this.zh||(this.zh=this.uw());return[0].map(function(a){var e=
this.VD(),a=c.create(this.zh[a],e);g.ss(a,g.pn);g.ts(a,g.Co);g.Ay(a,b.oD);g.tH(a,1);return a}.bind(this))},ZMa:function(){if(this.D("vertices")){var a=this.get("meshGroup");if(a){this.zh=this.uw();return c.zk(a).map(function(a,b){c.zaa(a,this.zh[b])}.bind(this))}}},uw:function(){function a(b){return b==0||isNaN(b)||!isFinite(b)}var b=this.get("vertices")||[];if(b.length!=4)return[d.Lqa(-1,1,1,1,1,1,1,-1,1,-1,-1,1)];var c=f.$r(b[0].get("yaw")*e,b[0].get("pitch")*e).normalize(),g=f.$r(b[1].get("yaw")*
e,b[1].get("pitch")*e).normalize(),i=f.$r(b[2].get("yaw")*e,b[2].get("pitch")*e).normalize(),b=f.$r(b[3].get("yaw")*e,b[3].get("pitch")*e).normalize(),p=c.clone().ZV(i),t=b.clone().ZV(g),s=p.clone().ZV(t).normalize(),t=(c.y*2*s.x/c.x-2*s.y)/(-i.y+c.y*i.x/c.x);a(t)&&(t=(c.z*2*s.x/c.x-2*s.z)/(-i.z+c.z*i.x/c.x));a(t)&&(t=(c.z*2*s.y/c.y-2*s.z)/(-i.z+c.z*i.y/c.y));var u=(2*s.x-i.x*t)/c.x;a(u)&&(u=(2*s.y-i.y*t)/c.y);a(u)&&(u=(2*s.z-i.z*t)/c.z);p=(g.y*2*s.x/g.x-2*s.y)/(-b.y+g.y*b.x/g.x);a(p)&&(p=(g.z*2*
s.x/g.x-2*s.z)/(-b.z+g.z*b.x/g.x));a(p)&&(p=(g.z*2*s.y/g.y-2*s.z)/(-b.z+g.z*b.y/g.y));var v=(2*s.x-b.x*p)/g.x;a(v)&&(v=(2*s.y-b.y*p)/g.y);a(v)&&(v=(2*s.z-b.z*p)/g.z);c=c.rH(u);g=g.rH(v);i=i.rH(t);b=b.rH(p);return[d.Lqa(c.x,c.y,-c.z,g.x,g.y,-g.z,i.x,i.y,-i.z,b.x,b.y,-b.z)]},Qp:function(a){var b=B;if(this.D("composedTranslationX","composedTranslationY","composedTranslationZ")){this.dh.makeTranslation(-this.get("composedTranslationX")*0.5*d.of,this.get("composedTranslationY")*0.5*d.of,this.get("composedTranslationZ")*
0.5*d.of);b=m}if(this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){this.qd.makeRotationY(-a.Na*e);this.qd.multiply(i.makeRotationX(-this.get("composedDeltaPitch")*e));this.qd.multiply(i.makeRotationY(this.get("composedDeltaYaw")*e));this.qd.multiply(i.makeRotationY(a.Na*e));b=m}if(this.D("distance","composedTranslationX","composedTranslationY","composedTranslationZ")){a=this.aa.get("composedTranslationX")==0&&this.aa.get("composedTranslationY")==0&&this.aa.get("composedTranslationZ")==
0&&this.get("distance")!==l?d.jC(this.get("distance")):d.cv();this.pl.makeScale(a,a,a);b=m}if(b||this.D("meshGroup")){this.fi.copy(this.dh);this.fi.multiply(this.qd);this.fi.multiply(this.pl);a=c.zk(this.get("meshGroup"));c.Yp(a[0],this.fi)}}}});
define("cj",["require","nU"],function(a){var b=a("nU");return{Xz:function(){this.set("visible",B);this.set("inView",B);this.set("url",B);this.set("contentWidth",100);this.set("contentHeight",100);this.set("contentInteractive",B);this.set("frameLoaded",m);this.kc=this.Kd=q;this.rR=l;this.FV=this.FV.bind(this);this.GV=this.GV.bind(this);this.HV=this.HV.bind(this);this.vA=this.vA.bind(this);this.X2=this.X2.bind(this)},Aj:function(){this.D("cssObject")&&(this.oBa(),this.get("cssObject").element.appendChild(this.Kd));
this.D("url")&&this.FJa(this.get("url"));this.D("contentWidth","contentHeight")&&(this.Kd.style.width=this.get("contentWidth")+2+"px",this.Kd.style.height=this.get("contentHeight")+2+"px");this.D("contentInteractive")&&(this.Kd.style.pointerEvents=this.get("contentInteractive")?"auto":"none")},vl:function(){this.D("composedAlpha")&&(0<this.get("composedAlpha")?this.kc&&!this.kc.parentNode&&(this.dpa(),this.Kd.appendChild(this.kc)):this.kc&&this.kc.parentNode&&this.Kd.removeChild(this.kc))},LJ:function(){this.trigger(b.Oc);
this.get("frameLoaded")&&this.trigger(b.U)},SE:function(){this.vAa()},GV:function(a){a.preventDefault();a.stopImmediatePropagation()},FV:function(){this.ta.Zb.CC(q)},HV:function(a){a.preventDefault();a.stopImmediatePropagation()},vA:function(){this.set("frameLoaded",m);this.trigger(b.U)},X2:function(){this.sR=q;this.vA()},oBa:function(){this.kc||(this.Kd=document.createElement("div"),this.Kd.style.position="absolute",this.Kd.style.left=this.Kd.style.top="-1px",this.get("cssObject").isCSS3DObject&&
(this.Kd.style.transform="translate(-50%, -50%)"),this.Kd.style.overflow="hidden",this.Kd.style["-webkit-overflow-scrolling"]="touch",this.Kd.addEventListener("mouseenter",this.FV,m),this.Kd.addEventListener("mousemove",this.GV,m),this.Kd.addEventListener("mousewheel",this.HV,m),this.kc=document.createElement("iframe"),this.kc.setAttribute("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone; display-capture; xr-spatial-tracking"),this.kc.setAttribute("frameborder",
"0"),this.kc.setAttribute("scrolling","auto"),this.kc.style.width="100%",this.kc.style.height="100%",this.kc.addEventListener("load",this.vA,m),0<this.get("composedAlpha")&&this.Kd.appendChild(this.kc))},vAa:function(){this.kc&&(this.kc.src="",this.d6(),this.ow(),this.kc.parentNode&&this.kc.parentNode.removeChild(this.kc),this.kc=q);this.Kd&&(this.Kd.parentNode&&this.Kd.parentNode.removeChild(this.Kd),this.Kd.removeEventListener("mouseenter",this.FV,m),this.Kd.removeEventListener("mousemove",this.GV,
m),this.Kd.removeEventListener("mousewheel",this.HV,m),this.Kd=q)},FJa:function(a){this.rR!==a&&(this.rR=a,this.set("frameLoaded",B),this.dpa())},dpa:function(){this.rR?(this.JJa(),this.Aya(),this.kc.src=this.rR):(this.ow(),this.d6(),this.kc.src="",this.vA())},JJa:function(){this.ow();this.sR=setTimeout(this.X2,3E3)},ow:function(){this.sR&&(clearTimeout(this.sR),this.sR=q)},Aya:function(){this.d6();this.kc.addEventListener("load",this.vA,m)},d6:function(){this.kc.removeEventListener("load",this.vA,
m)}}});define("jQ",["require","ef","nU"],function(a){var b=a("ef"),d=a("nU");return{Xz:function(){this.get("materialConfig").params.blending=THREE.NoBlending},LJ:function(){this.trigger(d.Oc);this.trigger(d.U)},vl:function(){this.D("meshGroup","composedAlpha")&&b.Ve(this.get("meshGroup"),0<this.get("composedAlpha")?0.001:0)}}});
define("jl",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,["playbackPositions","width","height"],this.Fd,m)},Qn:function(){b.na(this.n,["playbackPositions","width","height"],this.Fd)},Fd:function(){this.set("playbackPositions",this.n.get("playbackPositions"));this.set("contentWidth",this.n.get("width"));this.set("contentHeight",this.n.get("height"))},tf:function(){this.D("playbackPositions",
"currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("vertices",this.Za.b$()));this.D("framePlane","holePlane","imagePlane","vertices")&&this.Db().forEach(function(a){a.set("vertices",this.get("vertices"));a.set("contentWidth",this.get("contentWidth"));a.set("contentHeight",this.get("contentHeight"))}.bind(this))}}});
define("iY","require,kG,bP,fu,fd,ea,dp,cj,gA,jQ,jl".split(","),function(a){var b=a("kG"),d=a("bP"),c=a("fu"),g=a("fd"),f=a("ea"),i=a("dp"),e=a("cj"),j=a("gA"),o=a("jQ"),a=a("jl"),k=b.extend(g,i,j,function(){g.call(this);this.set("tag","QuadFrameHotspotImage")}),n=b.extend(c,f,e,function(){c.call(this);this.set("tag","QuadFrameHotspotFrame")}),r=b.extend(g,i,o,function(){g.call(this);this.set("tag","QuadFrameHotspotHole")});return b.extend(d,a,function(a){d.call(this,a);this.wA=k;this.K1=n;this.Q2=
r})});
define("kw",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.set("distance",l);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,["vertices","distance","playbackPositions"],this.Fd,m)},Qn:function(){b.na(this.n,["vertices","distance","playbackPositions"],this.Fd)},Fd:function(){this.set("distance",this.n.get("distance"));this.set("vertices",this.n.get("vertices"));this.set("playbackPositions",this.n.get("playbackPositions"))},tf:function(){this.D("playbackPositions",
"currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("vertices",this.Za.b$()),this.set("alpha",this.Za.Ak()))}}});
define("iC","require,kG,jU,nU,ef,fd,dp,gA,nR,kw,mB".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("ef"),f=a("fd"),i=a("dp"),e=a("gA"),j=a("nR"),o=a("kw"),k=a("mB"),n=0,a=b.extend(f,i,o,e,j,function(a){f.call(this);this.set("tag","QuadHotspotImage");this.set("id","quad_hs_image_"+n++);this.set("side",THREE.DoubleSide);this.n=a;this.bk.push(this.n);this.Cf=this.Cf.bind(this)});a.prototype.Eb=function(){f.prototype.Eb.call(this);d.pa(this.n,["image.levels"],this.Cf,m)};a.prototype.Jb=
function(){d.na(this.n,["image.levels"],this.Cf);f.prototype.Jb.call(this)};a.prototype.Cf=function(){this.set("image",this.n.get("image"));this.set("level",k.pPa(this.n))};a.prototype.X=function(a){this.IB();f.prototype.X.call(this,a);this.D("inView")&&this.n.trigger(this.get("inView")?c.hc:c.nc)};a.prototype.IB=function(){if(this.D("meshGroup","panoramaId","id")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){g.setAttribute(a,g.Jy,this.get("panoramaId"));g.setAttribute(a,g.ZX,this.get("id"))}.bind(this))}};
return a});
define("ix",["require","nU","gE"],function(a){function b(a,b){this.Zb=a;this.Dc=b;this.vb=B;this.oT=m;this.w_=this.h5=B;this.$Z();this.u4()}var d=a("nU"),c=a("gE");b.prototype.clear=function(){this.Dka();this.Z5()};b.prototype.Jf=function(a){this.vb!=a&&(this.vb=a,this.Lr())};b.prototype.HSa=function(a){this.oT!=a&&((this.oT=a)&&this.Dka(),this.Lr())};b.prototype.Lr=function(){if(!this.vb||this.oT)this.Dc.set("state",c.L);else if(this.Dc.get("autoplay")||this.w_)this.w_=B,this.Dc.set("state",c.S)};
b.prototype.u4=function(){if(!this.h5){var a=this.Dc.get("video").get("autoplayTime");a!==l&&this.Dc.get("video").get("autoplayTimeLimit")<(new Date).getTime()&&(a=l);this.Dc.set("currentTime",a);this.w_=a!==l}};b.prototype.Dka=function(){this.h5||(this.h5=m,this.Dc.get("state")==c.S?(this.Dc.get("video").set("autoplayTimeLimit",(new Date).getTime()+g),this.Dc.get("video").set("autoplayTime",this.Dc.get("currentTime",0))):this.Dc.get("video").set("autoplayTime",l))};b.prototype.$Z=function(){this.Dc.get("video").bind(d.u("autoplayTime"),
this.u4,this,m)};b.prototype.Z5=function(){this.Dc.get("video").unbind(d.u("autoplayTime"),this.u4,this,m)};var g=1E3;return b});
define("es",["require","nU","ep"],function(a){var b=a("nU"),d=a("ep");return{vw:function(){this.set("beamEnabled",B);this.Sd=B;this.Lx=this.Mx=l},Sp:function(a){this.Mx=a.Na;this.Lx=a.pitch},bn:function(a){if(a.$e==b.Hk){var d=!a.zl()&&this.Mp(a)&&!this.get("blendingActive");if(d){a.iy(this.n);this.n.get("useHandCursor")&&a.jy(this.n);a.wk(this.get("distance"));var f=this.$a(a.uC());f&&a.NV(f,this.Yx(a.uC()))}this.Sd!=d&&(this.Sd=d,this.n.trigger(this.Sd?b.bc:b.rb),a.ms()&&this.n.trigger(this.Sd?
b.Gk:b.Sh))}else a.$e==b.Qj&&!a.zl()&&this.Mp(a)&&(1<this.n.NG(b.ca,m).length&&a.rs(this.n),a.wk(this.get("distance")),this.n.trigger(b.ca))},Mp:function(a){if(this.get("beamEnabled"))for(var a=this.s2().Jt(a.Ap),b=0;b<a.length;b++){var f=a[b];if(d.xv(f.source,f.x,f.y))return m}return B},$a:function(a){return!a||this.n.get("displayTooltipInTouchScreens")&&this.ta.K.get("displayTooltipInTouchScreens")!==B?this.n.get("toolTip",""):""},Yx:function(a){if(a){var a=this.get("yaw")-this.Mx,b=this.get("pitch")-
this.Lx;return Math.sqrt(a*a+b*b)}return 0}}});
define("eL","require,kG,jU,nU,gE,nr,cL,ix,jF,mB,es,kH,nx,bC".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("gE"),f=a("nr"),i=a("cL"),e=a("ix"),j=a("jF"),o=a("mB"),k=a("es"),n=a("kH"),r=a("nx"),p=a("bC"),a=b.extend(i,k,function(a){i.call(this);this.n=a;this.R8=this.wA=q;this.bk.push(this.n);this.Bf=this.Bf.bind(this);this.Jo(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","VideoHotspot");this.set("enabled",m);this.set("inVR",B);this.set("overlaysEnabled",m);
this.set("enabledInVR",m);this.set("enabledInStandard",m);this.set("interactionEnabled",m);this.set("centerOverDisplay",B);this.set("loadingActive",B);this.set("frameEmpty",m);this.set("state",g.L);this.set("itemVisible","none");this.set("blending",0);this.set("chromaColor",l);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.fb=this.Fa=this.Hd=this.bf=q;this.S8=B;this.Tq=[]});a.prototype.Eb=function(){this.bf=(new j(c.U)).Pl(this.QA.bind(this));this.Hd=(new j(c.gc)).mo(this.UA.bind(this));
this.Kk=new e(this.ta.Zb,this.n);i.prototype.Eb.call(this);d.pa(this.n,["blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode","image.levels","video.levels","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.Bf,m)};a.prototype.Jb=function(){this.Kk.clear();this.bf.dispose();this.Hd.dispose();d.na(this.n,["blending","chromaColor","chromaThreshold","chromaSmoothing","distance","scaleMode",
"image.levels","video.levels","enabled","enabledInStandard","enabledInVR","fadeInDuration","fadeOutDuration","interactionEnabled","state","videoVisibleOnStop"],this.Bf);this.Zz();this.Cw();i.prototype.Jb.call(this)};a.prototype.Bf=function(){this.set("image",this.n.get("image"));this.set("imageLevel",o.zPa(this.n,this.get("panoramaPixelsPerDegree")));this.set("video",this.n.get("video"));this.set("videoLevel",f.Gj(this.get("video")));this.set("enabled",this.n.get("enabled"));this.set("enabledInStandard",
this.n.get("enabledInStandard"));this.set("enabledInVR",this.n.get("enabledInVR"));this.set("fadeInDuration",this.n.get("fadeInDuration"));this.set("fadeOutDuration",this.n.get("fadeOutDuration"));this.set("interactionEnabled",this.n.get("interactionEnabled"));this.set("state",this.n.get("state"));this.set("videoVisibleOnStop",this.n.get("videoVisibleOnStop"));this.set("blending",this.n.get("blending"));this.set("chromaColor",this.n.get("chromaColor"));this.set("chromaThreshold",this.n.get("chromaThreshold"));
this.set("chromaSmoothing",this.n.get("chromaSmoothing"))};a.prototype.X=function(a){this.set("inVR",a.$b);this.set("hotspotsEnabled",a.qC);this.Su();this.zM();i.prototype.X.call(this,a);this.Lr(a);this.KM(a);this.Jd(a)};a.prototype.Su=function(){if(this.D("video","videoLevel","image","imageLevel")){var a=[];if(this.D("image","imageLevel")){this.AI();this.Fa&&a.push(this.Fa)}if(this.D("video","videoLevel")){this.CI();this.fb&&a.push(this.fb)}this.gh(a);this.bf.We(a);this.Hd.We(a)}};a.prototype.zM=
function(){this.D("video","videoLevel","image","imageLevel","blending","chromaColor","chromaThreshold","chromaSmoothing")&&this.Db().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.Lr=function(){this.D("video","composedAlpha","enabledInVR","enabledInStandard","enabled","inVR")&&this.Kk.Jf(this.get("composedAlpha")>
0&&this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard")));this.D("blendingActive")&&this.Kk.HSa(this.get("blendingActive"))};a.prototype.KM=function(){this.set("frameEmpty",!this.fb||this.fb.get("frameEmpty"))};a.prototype.Jd=function(a){var b=this.get("itemVisible");if(this.D("frameEmpty","state","image","video","inVR","hotspotsEnabled","enabledInVR","enabledInStandard","enabled","interactionEnabled")){var e=
"none";if(this.get("hotspotsEnabled")&&this.get("enabled")&&(!this.get("inVR")||this.get("enabledInVR"))&&(this.get("inVR")||this.get("enabledInStandard"))){this.fb&&(!this.Fa||!this.get("frameEmpty")&&(this.get("state")!=g.L||this.S8&&this.get("videoVisibleOnStop")))?e="video":this.Fa&&(e="image");if(this.get("state")!=g.L)this.S8=m}this.set("itemVisible",e);this.set("beamEnabled",e!="none"&&this.get("interactionEnabled"))}if(this.D("itemVisible")){var e=this.get("itemVisible")!="none",d=b!="none";
if(e&&d&&!this.get("chromaColor")&&this.Tq.length==0){this.Fa&&this.Fa.set("alpha",this.get("itemVisible")=="image"?1:0);this.fb&&this.fb.set("alpha",this.get("itemVisible")=="video"?1:0)}else{b=e==d?100:e?this.get("fadeInDuration"):this.get("fadeOutDuration");e!=d&&this.n.trigger(e?c.hc:c.nc);var d=this.Fa?this.Fa.get("alpha"):0,f=this.fb?this.fb.get("alpha"):0,e=[{QC:f,image:d}];if(this.get("itemVisible")=="video"){e.push({QC:1,image:d,time:b*(1-f)});e.push({QC:1,image:0,time:50*(d-0)})}else if(this.get("itemVisible")==
"image"){e.push({QC:f,image:1,time:b*(1-d)});e.push({QC:0,image:1,time:50*(f-0)})}else e.push({QC:0,image:0,time:Math.max(f,d,1/b)*b});this.Tq=[];for(b=1;b<e.length;b++)e[b].time>0&&this.Tq.push(new r("linear",[new p("imageAlpha",e[b-1].image,e[b].image),new p("videoAlpha",e[b-1].QC,e[b].QC)],e[b].time))}}if(this.Tq.length>0){this.Tq[0].Te()?this.Tq.shift():this.Tq[0].xb(a.Qe);if(this.Tq.length>0){this.Fa&&this.Fa.set("alpha",this.Tq[0].gb("imageAlpha"));this.fb&&this.fb.set("alpha",this.Tq[0].gb("videoAlpha"));
this.wa()}}};a.prototype.AI=function(){this.Zz();if(this.get("image")&&this.get("imageLevel")){this.Fa=new this.wA;this.Fa.set("image",this.get("image"));this.Fa.set("level",this.get("imageLevel"));this.Fa.set("visible",m);this.Fa.set("alpha",0);this.Fa.set("side",THREE.DoubleSide)}};a.prototype.Zz=function(){if(this.Fa){this.Fa.remove();this.Fa=q}};a.prototype.CI=function(){this.Cw();if(this.get("video")&&this.get("videoLevel")){this.fb=new this.R8;this.fb.set("scriptObject",this.n);this.fb.set("video",
this.get("video"));this.fb.set("level",this.get("videoLevel"));this.fb.set("visible",m);this.fb.set("alpha",0);this.fb.set("side",THREE.DoubleSide)}};a.prototype.Cw=function(){if(this.fb){this.fb.remove();this.fb=q}};a.prototype.QA=function(){this.trigger(c.Oc);this.trigger(c.U)};a.prototype.UA=function(a,b){var e=0;b.Zr(function(a){(a=b.Fl(a))&&(e=e+a.Kg)});this.trigger(new n(c.gc,e/b.Zc.length))};a.prototype.s2=function(){return this.get("itemVisible")=="video"?this.fb:this.Fa};return a});
define("gl","require,nU,gE,cn,ef,gZ,lH,eM,eR,jG,nr".split(","),function(a){var b=a("nU"),d=a("gE"),c=a("cn"),g=a("ef");a("gZ");var f=a("lH"),i=a("eM"),e=a("eR"),j=a("jG"),o=a("nr");return{Xz:function(){this.set("visible",B);this.set("inView",B);this.set("frameEmpty",m);this.set("blending",0);this.set("chromaColor",l);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("scriptObject",q);this.set("video",q);this.set("level",q);this.set("loop",B);this.set("side",l);this.ib=this.fb=q;
this.S8=B;this.aV=this.Lh=this.Ku=this.za=this.Uo=this.T=q},SE:function(){this.Cw()},Aj:function(a){this.$Ma();this.zM();this.KM(a)},$Ma:function(){if(this.D("scriptObject","video","level")){this.Cw();this.fb=this.get("video");this.ib=this.get("level");this.n=this.get("scriptObject");this.CI()}},zM:function(){if(this.D("video","blending","chromaColor","chromaThreshold","chromaSmoothing","side")&&this.fb){var a=new c.kn(this.fb.pi());a.ly=this.get("blending");a.Vr=this.get("chromaColor");a.iN=this.get("chromaThreshold");
a.hN=this.get("chromaSmoothing");a.side=this.get("side");this.set("materialConfig",a)}},vl:function(){this.D("visible","composedAlpha","image","state")&&this.set("inView",this.get("visible")&&this.get("composedAlpha")>0);this.D("composedAlpha","meshGroup","inView")&&g.Ve(this.get("meshGroup"),this.get("inView")?this.get("composedAlpha"):0)},KM:function(){var a=this.T&&this.T.oW(),b=!!a&&a.isEmpty();if(b&&!this.get("frameEmpty")&&this.T.og()==d.S&&this.n.get("loop")){a=this.Lh;b=B}this.set("frameEmpty",
b);if(!this.Lh||a&&!this.Lh.isEqual(a)){this.Lh=a;this.aV.Ll(this.Lh.bA);this.aV.update();this.wa()}else this.T.og()==d.S&&this.wa()},CI:function(){if(this.fb&&this.ib&&this.n){this.set("textureSource",this.aV=new e);this.set("contentWidth",this.ib.get("width"));this.set("contentHeight",this.ib.get("height"));this.set("alpha",0);this.T=new o(this.ta.Zb,this.fb);this.T.KRa();this.Uo=new f(this.n,this.T);this.za=new i(this.ta.Zb,this.n,this.T);this.Ku=new j(this.ta.uc.get("panorama"),this.T);this.ct();
this.trigger(b.Oc);this.trigger(b.U)}},Cw:function(){if(this.T){this.set("textureSource",this.aV=q);this.zu();this.za.clear();this.za=q;this.Uo.clear();this.Uo=q;this.Ku.clear();this.Ku=q;this.T.clear();this.Lh=this.T=q;this.set("frameEmpty",m);this.ib=this.fb=q}},ct:function(){this.T.bind(o.pf,this.Ae,this,m);this.T.bind(b.Fc,this.cf,this,m)},zu:function(){this.T.unbind(o.pf,this.Ae,this,m);this.T.unbind(b.Fc,this.cf,this,m)},cf:function(){this.wa()},Ae:function(){this.wa()}}});
define("nw",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.set("distance",l);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,["playbackPositions","distance"],this.Fd,m)},Qn:function(){b.na(this.n,["playbackPositions","distance"],this.Fd)},Fd:function(){this.set("distance",this.n.get("distance"));this.set("playbackPositions",this.n.get("playbackPositions"))},tf:function(){this.D("playbackPositions","currentTime")&&
(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("vertices",this.Za.b$()),this.set("alpha",this.Za.Ak()));this.D("video","image","vertices","distance")&&this.Db().forEach(function(a){a.set("vertices",this.get("vertices"));a.set("distance",this.get("distance"))}.bind(this))}}});
define("jC","require,kG,eL,fd,dp,gA,gl,nw".split(","),function(a){var b=a("kG"),d=a("eL"),c=a("fd"),g=a("dp"),f=a("gA"),i=a("gl"),a=a("nw"),e=b.extend(c,g,f,function(){c.call(this);this.set("tag","QuadVideoHotspotImage")}),j=b.extend(c,g,i,function(){c.call(this);this.set("tag","QuadVideoHotspotVideo")});return b.extend(d,a,function(a){d.call(this,a);this.wA=e;this.R8=j})});
define("ke","require,kG,jU,gE,jx,mR,t".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("gE"),g=a("jx"),f=a("mR"),i=a("t"),a=b.extend(g,function(a){g.call(this);this.n=a;this.ek=this.ek.bind(this);this.fk=this.fk.bind(this);this.$l()});a.prototype.Eb=function(){g.prototype.Eb.call(this);this.n.set("state",this.n.get("startState"));d.pa(this.n,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.ek,m);d.pa(this.n,["state"],this.fk,
m)};a.prototype.Jb=function(){d.na(this.n,["color","speed","intensity","size","opacity","maxDistance","farPlaneDistance","particleCount","farPlaneParticleCount"],this.ek);d.na(this.n,["state"],this.fk);this.n.set("state",c.L);g.prototype.Jb.call(this)};a.prototype.ek=function(){this.$l();this.yL()};a.prototype.fk=function(){this.HT=this.n.get("state");this.wa()};a.prototype.$l=function(){g.prototype.$l.call(this);var a,b;if(i.If()){this.hA=this.dr=4;this.dB=2400;this.iA=1200;a=1.5;b=1.6}else{this.dr=
2;this.hA=4;this.dB=4800;this.iA=2400;b=a=1}var c=this.n.get("intensity",0.5);this.cc=f.ZN(this.n.get("color","#ffffff"));this.aL=this.n.get("opacity",0.25)*0.24+0.01;this.aL=this.aL*2;this.Cx=(c*(0.37-0.17)+0.17)*a;a=(this.n.get("speed",0.5)*(0.09-0.02)+0.02)/this.Cx*b;this.TJ=a*0.9;this.NA=a*1.1;this.dB=Math.round(this.n.get("particleCount",this.dB)*c);this.iA=Math.round(this.n.get("farPlaneParticleCount",this.iA)*c);this.hS=0;this.ep=2;this.er=-2;this.a4=0;this.eI=0.75;this.JI=0.5;this.DR=this.n.get("initialState");
this.KU=this.n.get("startDuration");this.QU=this.n.get("stopDuration");this.dr=this.n.get("maxDistance",this.dr);this.hA=this.n.get("farPlaneDistance",this.hA);this.ey()};a.prototype.wQ=function(){var a=new THREE.MeshBasicMaterial;a.color=new THREE.Color(this.cc[0]/255,this.cc[1]/255,this.cc[2]/255);a.side=THREE.FrontSide;a.transparent=m;a.depthTest=B;a.needsUpdate=m;if(!this.Iw)this.Iw=new THREE.BoxGeometry(0.01,0.2,0.01);return new THREE.Mesh(this.Iw,a)};a.prototype.ey=function(){var a=this.Sf&&
this.Sf.children||[],b=new THREE.Color(this.cc[0]/255,this.cc[1]/255,this.cc[2]/255);a.forEach(function(a){a.material.color=b;a.material.needsUpdate=m})};return a});
define("fY","require,kG,hz,nU,cs,iy".split(","),function(a){var b=a("kG"),d=a("hz"),c=a("nU"),g=a("cs"),f=a("iy"),i=b.extend(f,function(a,b,c,g){f.call(this);this.Zb=a;this.K=b;this.uc=c;this.h=g;this.hK=new d;this.N6(this);this.set("tag","Root");this.set("globalBlendingActive",0)});i.prototype.kf=function(a){return this.hK.get(a)};i.prototype.all=function(){for(var a=[],b=[this];b.length>0;){var c=b.pop();a.push(c);for(var d=c.Bd.length-1;d>=0;d--)b.push(c.Bd[d])}return a};i.prototype.update=function(a){var b=
this.all(),c=b.length,d;for(d=0;d<c;d++)b[d].BAa();for(d=0;d<c;d++)b[d].set("index",d);for(d=0;d<c;d++)b[d].ta&&b[d].X(a);for(d=0;d<c;d++)b[d].tAa();if(this.BR){for(d=0;d<c;d++)b[d].wAa();this.update(a)}};i.prototype.wa=function(){this.Gf||this.trigger(new g(c.qa));f.prototype.wa.call(this)};i.prototype.fv=function(a){return Array.isArray(a)?a.map(this.fv.bind(this)):this.hK.get(a)||i.factory.create(a)};return i});
define("mF","require,kG,jU,gE,jx,t".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("gE"),g=a("jx"),f=a("t"),a=b.extend(g,function(a){g.call(this);this.n=a;this.ek=this.ek.bind(this);this.fk=this.fk.bind(this);this.$l()});a.prototype.Eb=function(){g.prototype.Eb.call(this);this.n.set("state",this.n.get("startState"));d.pa(this.n,["intensity","speed"],this.ek,m);d.pa(this.n,["state"],this.fk,m)};a.prototype.Jb=function(){d.na(this.n,["intensity","speed"],this.ek);d.na(this.n,["state"],this.fk);
this.n.set("state",c.L);g.prototype.Jb.call(this)};a.prototype.ek=function(){this.$l();this.yL()};a.prototype.fk=function(){this.HT=this.n.get("state");this.wa()};a.prototype.$l=function(){g.prototype.$l.call(this);var a=this.n.get("intensity"),b=this.n.get("speed"),c,d,n,r,p,t;if(f.ob()||f.browser()==f.My){c=1E3;d=350;n=1800;r=400;t=0.8;p=1.2}else if(f.If()){c=1500;d=500;n=2500;r=500;t=0.8;p=1.2}else{c=3E3;d=1E3;n=5E3;r=1E3;t=0.6;p=1}this.DR=this.n.get("initialState");this.KU=this.n.get("startDuration");
this.QU=this.n.get("stopDuration");this.eI=0.75;this.JI=0.5;this.dr=4;this.er=-2;this.ep=3;this.hS=35;this.hA=7;this.Cx=(t+a*(p-t))/i;this.TJ=this.NA=0.15+b*1.35;this.dB=d+a*(c-d);this.iA=r+a*(n-r)};a.prototype.wQ=function(){return new THREE.Sprite(this.Wz())};a.prototype.Wz=function(){var a=new THREE.SpriteMaterial;a.map=this.Qq();a.side=THREE.FrontSide;a.transparent=m;a.depthTest=B;a.needsUpdate=m;return a};a.prototype.Qq=function(){if(this.jb)return this.jb;var a=document.createElement("canvas");
a.width=a.height=i;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.jb=new THREE.Texture;this.jb.image=a;this.jb.needsUpdate=m;return this.jb};var i=32;return a});
define("cM",["require","iA","t"],function(a){var b=a("iA"),d=a("t"),c=new THREE.Matrix4,g=Math.PI/180;return{tt: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",l);this.set("vfov",q);this.dh=new THREE.Matrix4;this.qd=new THREE.Matrix4;this.Pn=new THREE.Matrix4;this.jm=new THREE.Matrix4;this.Ni=new THREE.Matrix4;this.pl=new THREE.Matrix4;this.gp=new THREE.Matrix4},o0:function(){var a=
d.le()==d.aj||d.browser()==d.My?new THREE.CSS3DRectangle:new THREE.CSS3DObject;a.matrixAutoUpdate=B;return a},Tu:function(a){if(this.D("contentWidth","contentHeight")){var d=this.get("cssObject");d.contentWidth=this.get("contentWidth");d.contentHeight=this.get("contentHeight");d.updateVertices()}d=B;this.D("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.dh.makeTranslation(0.5*-this.get("composedTranslationX")*b.of,0.5*this.get("composedTranslationY")*b.of,0.5*this.get("composedTranslationZ")*
b.of),d=m);this.D("composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&&(this.qd.makeRotationY(-a.Na*g),this.qd.multiply(c.makeRotationX(-this.get("composedDeltaPitch")*g)),this.qd.multiply(c.makeRotationY(this.get("composedDeltaYaw")*g)),this.qd.multiply(c.makeRotationY(a.Na*g)),d=m);this.D("yaw","pitch")&&(this.Pn.makeRotationY(-this.get("yaw")*g),this.Pn.multiply(c.makeRotationX(this.get("pitch")*g)),d=m);if(this.D("flipHorizontally","hfov","vfov","composedTranslationX","composedTranslationY",
"composedTranslationZ")){var d=this.get("contentWidth"),e=this.get("contentHeight"),j=this.get("hfov"),o=this.get("vfov");this.jm.makeTranslation(0,0,-(d/(2*Math.tan(0.5*j*g))));var k=(this.get("flipHorizontally")?-1:1)*this.get("scale"),n=this.get("scale");o&&(n*=d*Math.tan(0.5*o*g)/(e*Math.tan(0.5*j*g)));this.pl.makeScale(k,n,1);d=m}this.D("rotationX","rotationY","rotationZ","roll")&&(this.Ni.makeRotationZ(this.get("roll")*g),this.Ni.multiply(c.makeRotationY(this.get("rotationY")*g)),this.Ni.multiply(c.makeRotationX(this.get("rotationX")*
g)),this.Ni.multiply(c.makeRotationZ(this.get("rotationZ")*g)),d=m);if(d||this.D("meshGroup"))this.gp.copy(this.dh),this.gp.multiply(this.qd),this.gp.multiply(this.Pn),this.gp.multiply(this.jm),this.gp.multiply(this.Ni),this.gp.multiply(this.pl),this.get("cssObject").matrix.copy(this.gp),this.get("cssObject").matrixWorldNeedsUpdate=m;this.set("cameraYaw",a.Na);this.set("cameraPitch",a.pitch);this.set("cameraRoll",a.He);this.set("cameraHfov",a.ue);this.set("cameraWidth",a.width);this.set("cameraHeight",
a.height);if(a.camera&&(d||this.D("cameraYaw","cameraPitch","cameraRoll","cameraHfov","cameraWidth","cameraHeight")))this.get("cssObject").projectVertices(a.camera),this.set("geometryVisible",this.get("cssObject").isVisible),this.D("geometryVisible")&&this.k6()}}});
define("gz",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,["playbackPositions","width","height"],this.Fd,m)},Qn:function(){b.na(this.n,["playbackPositions","width","height"],this.Fd)},Fd:function(){this.set("playbackPositions",this.n.get("playbackPositions"));this.set("contentWidth",this.n.get("width"));this.set("contentHeight",this.n.get("height"))},tf:function(){this.D("playbackPositions",
"currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("yaw",this.Za.get("yaw")),this.set("pitch",this.Za.get("pitch")),this.set("roll",this.Za.get("roll")),this.set("rotationX",this.Za.get("rotationX")),this.set("rotationY",this.Za.get("rotationY")),this.set("hfov",this.Za.get("hfov")),this.set("vfov",this.Za.get("vfov")));this.D("framePlane","holePlane","imagePlane","yaw","pitch","roll","rotationX","rotationY","hfov","vfov","contentWidth","contentHeight")&&
this.Db().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("lU","require,kG,bP,fu,fd,cM,nj,cj,gA,jQ,gz".split(","),function(a){var b=a("kG"),d=a("bP"),c=a("fu"),g=a("fd"),f=a("cM"),i=a("nj"),e=a("cj"),j=a("gA"),o=a("jQ"),a=a("gz"),k=b.extend(g,i,j,function(){g.call(this);this.set("tag","RectangleFrameHotspotImage")}),n=b.extend(c,f,e,function(){c.call(this);this.set("tag","RectangleFrameHotspotFrame")}),r=b.extend(g,i,o,function(){g.call(this);this.set("tag","RectangleFrameHotspotHole")});return b.extend(d,a,function(a){d.call(this,a);this.wA=k;this.K1=
n;this.Q2=r})});
define("nl",["require","jU","mO"],function(a){var b=a("jU"),d=a("mO");return{wn:function(){this.set("playbackPositions",q);this.set("scaleMode",l);this.set("distance",l);this.Fd=this.Fd.bind(this);this.Za=new d},On:function(){b.pa(this.n,["playbackPositions","distance","scaleMode"],this.Fd,m)},Qn:function(){b.na(this.n,["playbackPositions","distance","scaleMode"],this.Fd)},Fd:function(){this.set("scaleMode",this.n.get("scaleMode"));this.set("distance",this.n.get("distance"));this.set("playbackPositions",this.n.get("playbackPositions"))},
tf:function(){this.D("playbackPositions","currentTime")&&(this.Za.Dy(this.get("playbackPositions")),this.Za.Cy(this.get("currentTime")),this.set("yaw",this.Za.get("yaw")),this.set("pitch",this.Za.get("pitch")),this.set("roll",this.Za.get("roll")),this.set("rotationX",this.Za.get("rotationX")),this.set("rotationY",this.Za.get("rotationY")),this.set("hfov",this.Za.get("hfov")),this.set("vfov",this.Za.get("vfov")),this.set("alpha",this.Za.Ak()));this.D("video","image","yaw","pitch","roll","rotationX",
"rotationY","hfov","vfov","distance","scaleMode","image","video")&&this.Db().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("nX","require,kG,eL,fd,nj,gA,gl,nl".split(","),function(a){var b=a("kG"),d=a("eL"),c=a("fd"),g=a("nj"),f=a("gA"),i=a("gl"),a=a("nl"),e=b.extend(c,g,f,function(){c.call(this);this.set("tag","RectangleVideoHotspotImage")}),j=b.extend(c,g,i,function(){c.call(this);this.set("tag","RectangleVideoHotspotVideo")});return b.extend(d,a,function(a){d.call(this,a);this.wA=e;this.R8=j})});
define("dL","require,eQ,iy,kU,iJ,jh,ly,jd,mD,fJ,X,ne,dE,bA,iY,iC,jC,ke,fY,mF,lU,nX,bV".split(","),function(a){function b(a,b){Array.isArray(b)||(b=[b]);for(var c=0;c<b.length;c++)if(d.xa(b[c],a))return m;return B}var d=a("eQ"),c=a("iy"),g=a("kU"),f=a("iJ"),i=a("jh"),e=a("ly"),j=a("jd"),o=a("mD"),k=a("fJ"),n=a("X"),r=a("ne"),p=a("dE"),t=a("bA"),s=a("iY"),u=a("iC"),v=a("jC"),w=a("ke"),x=a("fY"),y=a("mF"),D=a("lU"),E=a("nX");a("bV");a={};x.factory=a;a.create=function(a){if(a instanceof c)return a;if(b(a,
["HDRPanorama","LivePanorama","Panorama","VideoPanorama"]))return new n(a);if(b(a,["CubicPanoramaFrame","SphericPanoramaFrame"]))return b(a,"SphericPanoramaFrame")&&a.Jj()?new p(a):new r(a);if(b(a,["DustPanoramaOverlay"]))return new f(a);if(b(a,"HotspotPanoramaOverlay"))return new e(a);if(b(a,["HotspotPanoramaOverlayImage","HotspotPanoramaOverlayMap"]))return new j(a);if(b(a,"Menu"))return new k(a);if(b(a,["CeilingCapPanoramaOverlay","TripodCapPanoramaOverlay"]))return new g(a);if(b(a,["FlatHotspotPanoramaOverlayImage",
"FlatHotspotPanoramaOverlayMap"]))return new i(a);if(b(a,["LensFlarePanoramaOverlay"]))return new o(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 D(a);if(b(a,
["VideoPanoramaOverlay"]))return new E(a);h("Invalid script object")};return a});
define("nL",["require"],function(){var a={Ira:function(b,d,c,g,f,i){return a.HOa(b,2*(d/g)-1,2*-(c/f)+1,i)},HOa:function(a,d,c,g){g||(g=new THREE.Ray);g.origin.setFromMatrixPosition(a.matrixWorld);g.direction.set(d,c,0.5).unproject(a).sub(g.origin).normalize();return g},WOa:function(a,d){d||(d=new THREE.Ray);d.origin.set(0,0,0);d.direction.set(0,0,-1).applyQuaternion(a.quaternion);return d},VOa:function(a,d){d||(d=new THREE.Ray);d.origin.set(0,0,0).applyMatrix4(a);d.direction.set(0,0,-1).applyMatrix4(a).sub(d.origin).normalize();
return d}};return a});
define("fC",["require"],function(){function a(a){this.cc=this.$q(a.get("vrPointerColor"));this.yr=this.$q(a.get("vrPointerSelectionColor"));this.Ou=this.mk([0,0,0],0);this.CU=this.mk([0,0,0],0.125);this.eCa=this.mk(this.cc,1);this.fCa=this.mk(this.yr,1);this.oAa=this.mk(this.yr,1);this.nAa=this.mk(this.cc,0.5);this.lAa=this.mk(this.cc,1);this.mAa=this.mk(this.yr,1);this.qh=this.Ye=64;this.h_=4E3;this.kga=0.1;this.Lk=0.16;this.Vn=0.04;this.ifa=this.gQ=0.68-this.Vn;this.fQ=1-this.Vn;this.J=document.createElement("canvas");
this.J.width=this.Ye;this.J.height=this.qh;this.ja=this.J.getContext("2d");this.Sd=this.Q_=B;this.OE=this.jT=l;this.zz=0}a.prototype.$q=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.mk=function(a,d){return"rgba("+a.join(",")+", "+d+")"};a.prototype.BSa=function(a,d){this.Sd=a;this.jT=d};a.prototype.sX=R("Q_");a.prototype.fd=S("Ye");a.prototype.Td=S("qh");a.prototype.mg=S("J");a.prototype.update=function(a){return this.Q_?
this.iCa(a):this.Sd?this.nCa():this.mCa()};a.prototype.PD=function(){this.ja.clearRect(0,0,this.Ye,this.qh)};a.prototype.mCa=function(){if("initial"==this.OE)return B;this.PD();this.oga(this.eCa);this.OE="initial";return m};a.prototype.nCa=function(){if(this.jT===l){if("over"==this.OE)return B;this.PD();this.oga(this.fCa)}else this.xHa(this.jT);this.OE="over";return m};a.prototype.iCa=function(a){for(this.zz+=a;this.zz>this.h_;)this.zz-=this.h_;this.iAa(this.zz/this.h_);this.OE="changing";return m};
a.prototype.oga=function(a){this.gj(this.kga+this.Vn,0,this.Ou,this.CU,0,2*Math.PI);this.gj(this.kga,0,this.Ou,a,0,2*Math.PI)};a.prototype.oCa=function(a){this.gj(this.gQ-0.5*(this.Lk+this.Vn),this.Lk+this.Vn,this.CU,this.Ou,0,2*Math.PI);this.gj(this.gQ-0.5*this.Lk,this.Lk,this.nAa,this.Ou,0,2*Math.PI);this.gj(this.gQ-0.5*this.Lk,this.Lk,this.oAa,this.Ou,0.5*Math.PI,(0.5+2*a)*Math.PI)};a.prototype.jCa=function(a,d){this.gj(this.ifa-0.5*(this.Lk+this.Vn),this.Lk+this.Vn,this.CU,this.Ou,0,2*Math.PI);
this.gj(this.ifa-0.5*this.Lk,this.Lk,this.lAa,this.Ou,0,2*Math.PI);a=(0.5+2*a)*Math.PI;for(d=(0.5+2*d)*Math.PI;d<a;)d+=2*Math.PI;var c=a-this.Vn/(2*this.fQ*Math.PI),g=d+this.Vn/(2*this.fQ*Math.PI);Math.abs(g-c+2*Math.PI)<2*this.Vn&&(c=0,g=d);this.gj(this.fQ-0.5*(this.Lk+this.Vn),this.Lk+this.Vn,this.CU,this.Ou,c,g);this.gj(this.fQ-0.5*this.Lk,this.Lk,this.mAa,this.Ou,a,d)};a.prototype.gj=function(a,d,c,g,f,i){var e=Math.round(0.5*this.Ye),j=Math.round(0.5*this.qh),o=Math.min(e,j),a=Math.round(a*o),
k=this.ja;k.WPa=k.mWa=m;k.lineWidth=d*o;k.strokeStyle=c;k.fillStyle=g;k.beginPath();k.arc(e,j,a,f,i,B);k.stroke();k.fill()};a.prototype.iAa=function(a){this.PD();var d;0.25>a?(d=a/0.25,a=0.5*d):0.5>a?(d=(a-0.25)/0.25,a=0.5+d,d=1+0.5*d):0.75>a?(d=(a-0.5)/0.25,a=0.5+0.5*d,d=0.5+d):(a=d=(a-0.75)/0.25,d=0.5+0.5*d);this.jCa(a,d)};a.prototype.xHa=function(a){this.PD();this.oCa(a)};return a});
define("lE","require,kG,ef,iS,fC,eR,bu".split(","),function(a){var b=a("kG"),d=a("ef"),c=a("iS"),g=a("fC"),f=a("eR"),i=a("bu"),a=b.extend(c,function(){c.call(this);this.J=q;this.set("tag","Reticle");this.set("changing",B);this.set("over",B);this.set("overProgress",l);this.set("visible",m);this.set("attachToCamera",m);this.su=q});a.prototype.X=function(a){this.Su(a);this.Zf(a);this.tf(a);c.prototype.X.call(this,a)};a.prototype.Su=function(a){if(a.$b&&!this.su&&i.Ee()==i.sD.Sl)this.gh([this.su=new c])};
a.prototype.Zf=function(a){if(!this.J){this.set("textureSource",new f);this.J=new g(this.ta.K);this.get("textureSource").Ll(this.J.mg());this.set("contentWidth",this.J.fd());this.set("contentHeight",this.J.Td());this.set("hfov",6);this.set("distance",this.ta.K.get("vrPointerDistance"))}this.D("changing")&&this.J.sX(this.get("changing"));this.D("over","overProgress")&&this.J.BSa(this.get("over"),this.get("overProgress"));this.J.update(a.Qe)&&this.get("textureSource").update();this.get("changing")&&
this.wa()};a.prototype.tf=function(){this.xk()};a.prototype.vl=function(){this.D("composedAlpha","meshGroup","visible")&&this.bw()};a.prototype.bw=function(){d.Ve(this.get("meshGroup"),this.get("visible")?this.get("composedAlpha"):0)};return a});
define("bk","require,jquery.mod,dY,nU,t,op,ez".split(","),function(a){function b(a){this.Sa=a;this.yoa=this.Sa.Fn;this.Sa.bind(g.ad,this.Wf,this);this.ea=d("<span></span>");this.ea.css({"pointer-events":"none",position:"absolute","z-index":f.Zca,"text-align":"center",display:"none"});this.Vd=d("<span></span>");this.Vd.css({position:"absolute",left:0,top:0,right:0,bottom:0});this.ea.append(this.Vd);this.$U=d("<span></span>");this.$U.css({position:"relative"});this.ea.append(this.$U);this.Pi=this.GR=
this.th=q;this.qu=this.pu=l;this.Rt=B;this.zoa=l}var d=a("jquery.mod"),c=a("dY"),g=a("nU");a("t");var f=a("op"),i=a("ez"),e={toolTip:l,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.Lc=S("ea");b.prototype.CC=function(a){if(!this.yoa){for(;a&&a.get("toolTipDisabled");)a=a.getParent();this.hide();this.th&&
c(c(e).keys()).each(function(a){this.th.unbind(g.u(a),this.M4,this)},this);if(this.th=a){c(c(e).keys()).each(function(a){this.th.bind(g.u(a),this.M4,this)},this);this.M4()}}};b.prototype.nTa=function(a,b){this.th=a;this.zoa=b;this.MR()||(this.Rt?this.Lna():this.dM())};b.prototype.Jna=function(a,b,c){this.Rt&&this.th.trigger(g.yZ);this.aMa(a);this.$U.html(this.rEa(b));this.dfa=c;this.tf();this.th.trigger(g.Yca);this.Rt=m;this.ea.css("display","inline");(c||a.get("checkToolTipOcclusion"))&&this.wKa(a)};
b.prototype.tf=function(){var a=this.pm(),b=a.x,a=a.y,c=this.ea.outerWidth(),e=this.ea.outerHeight();if(this.dfa){b=b-this.ea.width()*0.5;a=a-this.ea.height()*0.5}b=Math.max(Math.min(b,this.Sa.Ua()-c-3),3);a=Math.max(Math.min(a,this.Sa.Cb()-e-3),3);this.ea.css("left",b+"px");this.ea.css("top",a+"px")};b.prototype.pm=function(){var a={};if(this.dfa){var b=this.th.Lc().offset();a.x=b.left+this.th.Ua()*0.5;a.y=b.top+this.th.Cb()*0.5}else{a.x=this.pu;a.y=this.qu+25}return a};b.prototype.hide=function(){this.Rz();
this.coa();if(this.Rt){this.ea.css("display","none");this.th.trigger(g.yZ);this.Rt=B}};b.prototype.M4=function(){this.th.get("toolTip")?this.MR()||(this.Rt?this.Kna():this.dM()):this.MR()?this.Rz():this.Rt&&this.hide()};b.prototype.Wf=function(a){this.pu=a.pageX;this.qu=a.pageY;this.Rt&&this.th.get("toolTipFollowMouse")&&this.tf()};b.prototype.Kna=function(){this.Jna(this.th,this.th.get("toolTip"),B)};b.prototype.Lna=function(){this.Jna(this.th,this.zoa,m)};b.prototype.MR=function(){return this.Pi!=
q};b.prototype.dM=function(){var a=this.th&&this.th.get("toolTipDisplayTime");if(a===l||a===q)a=e.toolTipDisplayTime;this.Rz();this.Pi=setTimeout(function(){this.Pi=q;this.yoa?this.Lna():this.Kna()}.bind(this),a)};b.prototype.Rz=function(){if(this.MR()){clearTimeout(this.Pi);this.Pi=q}};b.prototype.wKa=function(a){var b=this.pm();this.coa();var c=function(){this.ea.css("display",this.Rt&&!this.rFa(a,b.x,b.y)?"inline":"none")}.bind(this);this.GR=setInterval(c,300);c()};b.prototype.coa=function(){if(this.GR){clearInterval(this.GR);
this.GR=q}};b.prototype.aMa=function(a){function b(c){var d=a.get(c);return d===l?e[c]:d}var d={};d.opacity=b("toolTipOpacity");d.filter=d["-ms-filter"]="alpha(opacity="+Math.round(b("toolTipOpacity")*100)+")";d.paddingTop=b("toolTipPaddingTop")+"px";d.paddingBottom=b("toolTipPaddingBottom")+"px";d.paddingLeft=b("toolTipPaddingLeft")+"px";d.paddingRight=b("toolTipPaddingRight")+"px";d["text-align"]=b("toolTipHorizontalAlign");this.ea.css(d);d={};d.opacity=b("toolTipBackgroundOpacity");d.filter=d["-ms-filter"]=
"alpha(opacity="+Math.round(b("toolTipBackgroundOpacity")*100)+")";d["background-color"]=b("toolTipBackgroundColor");d.border=[b("toolTipBorderSize")+"px","solid",b("toolTipBorderColor")].join(" ");var f=b("toolTipShadowColor");d["-moz-box-shadow"]=d["-webkit-box-shadow"]=d["box-shadow"]=[b("toolTipShadowHorizontalLength")+"px",b("toolTipShadowVerticalLength")+"px",b("toolTipShadowBlurRadius")+"px",b("toolTipShadowSpread")+"px","rgba("+parseInt("0x"+f.substr(1,2))+", "+parseInt("0x"+f.substr(3,2))+
", "+parseInt("0x"+f.substr(5,2))+", "+b("toolTipShadowOpacity")+")"].join(" ");d["-moz-border-radius"]=d["-webkit-border-radius"]=d.borderRadius=b("toolTipBorderRadius")+"px";this.Vd.css(d);d={};d["font-family"]=i.$u(b("toolTipFontFamily"));f=b("toolTipFontSize");c(f).isNumber()?f=f+"px":c(f).isString()||(f="");d["font-size"]=f;d["font-weight"]=b("toolTipFontWeight");d["font-style"]=b("toolTipFontStyle");d.color=b("toolTipFontColor");f=b("toolTipTextShadowColor");d["-moz-text-shadow"]=d["-webkit-text-shadow"]=
d["text-shadow"]=[b("toolTipTextShadowHorizontalLength")+"px",b("toolTipTextShadowVerticalLength")+"px",b("toolTipTextShadowBlurRadius")+"px","rgba("+parseInt("0x"+f.substr(1,2))+", "+parseInt("0x"+f.substr(3,2))+", "+parseInt("0x"+f.substr(5,2))+", "+b("toolTipTextShadowOpacity")+")"].join(" ");var g=b("toolTipTextShadowVerticalLength")==0&&b("toolTipTextShadowHorizontalLength")==0?135:Math.round(4*Math.atan2("toolTipTextShadowHorizontalLength",-b("toolTipTextShadowVerticalLength"))/Math.PI)*45;
d.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a}(255*b("toolTipTextShadowOpacity"))+f.substr(1,6)+",direction="+g+")";this.$U.css(d)};b.prototype.rFa=function(a,b,c){for(var b=document.elementsFromPoint(b,c),a=a.Lc()[0],c=this.Sa.Lc()[0],e=0;e<b.length;e++){var d=b[e];if(a==d||a.contains(d))break;if(!this.ea[0].contains(d)&&c.contains(d)){var f=window.getComputedStyle(d);if(f.display!="none"&&f.visibility!="hidden"&&(d.tagName==
"CANVAS"?1:this.HAa(f.backgroundColor))*f.opacity>0.29)return m}}return B};b.prototype.HAa=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.rEa=function(a){for(var a=(a||"").split("\n"),b=0;b<a.length;b++)a[b]=this.yCa(a[b]);return a.map(function(a){return"<div>"+a+"</div>"})};b.prototype.yCa=function(a){b.Qda.nodeValue=a;return b.Mda.innerHTML};b.Cwa=e;b.Mda=document.createElement("pre");
b.Qda=document.createTextNode("");b.Mda.appendChild(b.Qda);b.JUa=600;return b});
define("cI",["require","bk","bN","ez"],function(a){function b(a,b){this.K=a;this.ul=b;this.mKa()}var d=a("bk"),c=a("bN"),g=a("ez");b.prototype.mg=S("J");b.prototype.fd=function(){return this.J.width};b.prototype.Td=function(){return this.J.height};b.prototype.mKa=function(){this.J=document.createElement("canvas");var a=this.ul.split("\n"),b=this.Bg("toolTipBackgroundColor"),e=this.Bg("toolTipBackgroundOpacity"),d=this.Bg("toolTipBorderRadius"),o=this.Bg("toolTipBorderColor"),k=this.Bg("toolTipBorderSize");
this.Bg("toolTipDisplayTime");var n=this.Bg("toolTipFontFamily"),r=this.Bg("toolTipFontSize"),p=this.Bg("toolTipFontColor"),t=this.Bg("toolTipFontWeight"),s=this.Bg("toolTipFontStyle"),u=this.Bg("toolTipPaddingBottom"),v=this.Bg("toolTipPaddingLeft"),w=this.Bg("toolTipPaddingTop"),x=this.Bg("toolTipPaddingRight"),y=this.Bg("toolTipOpacity"),D=this.Bg("toolTipTextShadowBlurRadius"),E=this.Bg("toolTipTextShadowColor"),H=this.Bg("toolTipTextShadowHorizontalLength"),M=this.Bg("toolTipTextShadowVerticalLength"),
G=this.Bg("toolTipTextShadowOpacity"),z=new c.vZ;z.fontFamily=n;z.fontSize=r+(isNaN(r)?"":"px");z.fontWeight=t;z.fontStyle=s;var L=a.map(function(a){return c(a,z,J)}),K=0,A=0;L.forEach(function(a){K=Math.max(a.width,K);A+=a.height});var N=1<a.length?0.25*(A/a.length):0,A=A+(a.length-1)*N,x=k+v+K+x+k,u=k+w+A+u+k;this.J=document.createElement("canvas");var J=this.J.getContext("2d");this.J.width=x;this.J.height=u;J.globalAlpha=y;J.strokeStyle=o;J.fillStyle="transparent"===b?"rgba(0,0,0,0)":this.eea(e,
b);J.lineWidth=k;J.beginPath();J.moveTo(d,0);J.lineTo(x-d,0);J.quadraticCurveTo(x,0,x,d);J.lineTo(x,u-d);J.quadraticCurveTo(x,u,x-d,u);J.lineTo(d,u);J.quadraticCurveTo(0,u,0,u-d);J.lineTo(0,d);J.quadraticCurveTo(0,0,d,0);J.closePath();J.fill();0<k&&J.stroke();J.fillStyle=p;J.font=t+" "+("normal"!=s?s+" ":"")+r+(isNaN(r)?"":"px")+" "+g.$u(n);J.shadowColor=this.eea(G,E);J.shadowOffsetX=H;J.shadowOffsetY=M;J.shadowBlur=D;J.textBaseline="middle";J.textAlign="center";var C=k+v+0.5*K,F=k+w;a.forEach(function(a,
b){J.fillText(a,Math.round(C),Math.round(F+0.5*L[b].height));F+=L[b].height+N})};b.prototype.Bg=function(a){var b=this.K.get(a);return b===l?d.Cwa[a]:b};b.prototype.eea=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("nO","require,kG,iA,iS,cI,eR".split(","),function(a){var b=a("kG"),d=a("iA"),c=a("iS"),g=a("cI"),f=a("eR"),a=b.extend(c,function(){c.call(this);this.J=q;this.set("tag","ToolTip");this.set("text","");this.bo=new THREE.Vector3(0,0,-d.cv())});a.prototype.X=function(a){this.Zf(a);c.prototype.X.call(this,a)};a.prototype.Zf=function(a){if(!this.J||this.D("text")){this.get("textureSource")||this.set("textureSource",new f);this.J=new g(this.ta.K,this.get("text"));this.get("textureSource").Ll(this.J.mg());
this.set("contentWidth",this.J.fd());this.set("contentHeight",this.J.Td());this.set("hfov",2*Math.atan2(this.J.fd()*0.5,600)*i);this.set("distance",this.ta.K.get("vrPointerDistance"));var b=this.get("matrix");if(b){this.bo.applyMatrix4(b);(this.bo.x!=0||this.bo.z!=0)&&this.set("yaw",i*Math.atan2(this.bo.x,-this.bo.z));(this.bo.y!=0||this.bo.z!=0)&&this.set("pitch",i*Math.atan2(this.bo.y,Math.sqrt(this.bo.z*this.bo.z+this.bo.x*this.bo.x))+e)}else{this.set("yaw",a.Na);this.set("pitch",a.pitch+j)}}};
var i=180/Math.PI,e=2,j=5;return a});define("ni",["require","nL","V"],function(a){function b(a,b){this.ke=a;this.h=b;this.YI=q}var d=a("nL"),c=a("V");b.prototype.update=I();b.prototype.clear=I();b.prototype.Ee=S("ke");b.prototype.d2=function(){var a=this.o.ug&&c.hC(this.o.ug);return this.YI=a?d.WOa(a,this.YI):q};b.rP="gaze";b.DZ="gaze_click";b.TH="laser";b.UH="mouse";b.VH="touch";return b});
define("eW",["require","ni"],function(a){function b(a,b,c,e){this.uj=a;this.Ap=b;this.YI=c;this.$e=e;this.bfa=[];this.hl=[];this.tV=[];this.N2=[];this.$a="";this.Yx=Number.MAX_VALUE}function d(a){return a===l?[]:Array.isArray(a)?a:[a]}var c=a("ni");b.prototype.ms=function(){return this.uj.Ee()==c.UH};b.prototype.Ksa=function(){return this.uj.Ee()==c.TH};b.prototype.uC=function(){return this.uj.Ee()==c.VH};b.prototype.iQa=function(){return this.uj.Ee()==c.rP};b.prototype.jy=function(a){this.tV=this.tV.concat(d(a))};
b.prototype.dn=function(){return 0<this.tV.length};b.prototype.DNa=function(a){this.N2=this.N2.concat(d(a))};b.prototype.mOa=function(){return 0==this.tV.length&&0<this.N2.length};b.prototype.iy=function(a){this.hl=this.hl.concat(d(a))};b.prototype.PQa=function(){return 0<this.hl.length};b.prototype.wk=function(a){if(a&&(this.EQ===l||this.EQ>a))this.EQ=a};b.prototype.NV=function(a,b){if(""==this.$a||this.Yx>b)this.$a=a,this.Yx=b};b.prototype.FO=S("$a");b.prototype.rs=function(a){this.bfa=d(a)};b.prototype.zl=
function(){return 0<this.bfa.length};return b});
define("cB","require,kG,nU,nL,V,lE,nO,eW,ni".split(","),function(a){var b=a("kG"),d=a("nU");a("nL");a("V");var c=a("lE"),g=a("nO"),f=a("eW"),i=a("ni"),a=b.extend(i,function(a){i.call(this,i.rP,a);this.Eg=this.o=q;this.hl=[];this.cV=q;this.vla=l;this.Qc=new c;this.h.add(this.Qc);this.bh="";this.$a=q;this.Vma=this.h.K.get("vrPointerSelectionTime")});a.prototype.clear=function(){this.n7();this.h.remove(this.Qc);this.Qc=q;this.$a&&this.h.remove(this.$a);this.$a=q};a.prototype.update=function(a){this.o=
a;this.Qc.set("changing",a.VV);this.Qi()};a.prototype.QD=function(){this.ni(this.Zh(d.Qj));this.Qc.set("over",B);this.O7()};a.prototype.O7=function(){this.h.wb().trigger(d.dz,{BO:d.Qj})};a.prototype.Qi=function(){var a=this.Zh(d.Hk);this.ni(a);this.Ip(a.FO());var b;a:{b=this.hl;for(var c=a.hl,f=0;f<b.length;f++)if(c.indexOf(b[f])<0){b=B;break a}for(f=0;f<c.length;f++)if(b.indexOf(c[f])<0){b=B;break a}b=m}if(!b){this.n7();this.Qc.set("over",B);this.hl=a.hl;if(this.hl.length){this.Qc.set("over",a.dn());
this.Qc.set("overProgress",0);this.OKa()}}};a.prototype.Ip=function(a){if(this.bh!=a){this.bh&&this.h.remove(this.$a);if(this.bh=a){this.$a=new g(this.bh);this.$a.set("text",this.bh);this.h.add(this.$a)}}};a.prototype.ni=function(a){this.h.GN().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.bn(a)}.bind(this))};a.prototype.Zh=function(a){this.Eg=this.d2();return new f(this,this.Eg?[this.Eg]:[],this.Eg,a)};a.prototype.n7=function(){this.cV&&(clearInterval(this.cV),this.cV=
q)};a.prototype.OKa=function(){this.vla=(new Date).getTime();this.cV=setInterval(this.yGa.bind(this),100)};a.prototype.yGa=function(){var a=(new Date).getTime()-this.vla;if(a>=this.Vma){this.n7();this.QD()}else this.Qc.set("overProgress",a/this.Vma)};return a});
define("kF","require,kG,nU,lE,nO,eW,ni,bu".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("lE"),g=a("nO"),f=a("eW"),i=a("ni"),e=a("bu"),a=b.extend(i,function(a){i.call(this,i.DZ,a);this.Eg=this.o=q;this.Qc=new c;this.h.add(this.Qc);this.bh="";this.$a=q;this.eV=this.eV.bind(this);document.body.addEventListener("touchend",this.eV);e.bind(d.Ul,this.Vpa,this,m)});a.prototype.clear=function(){document.body.removeEventListener("touchend",this.eV);e.unbind(d.Ul,this.Vpa,this,m);this.h.remove(this.Qc);
this.Qc=q;this.$a&&this.h.remove(this.$a);this.$a=q};a.prototype.update=function(a){this.o=a;this.Qc.set("changing",a.VV);this.Qi()};a.prototype.eV=function(){this.QD()};a.prototype.Vpa=function(){this.QD()};a.prototype.QD=function(){this.ni(this.Zh(d.Qj));this.Qc.set("over",B)};a.prototype.Qi=function(){var a=this.Zh(d.Hk);this.ni(a);this.Ip(a.FO());this.Qc.set("over",a.dn())};a.prototype.Ip=function(a){if(this.bh!=a){this.bh&&this.h.remove(this.$a);if(this.bh=a){this.$a=new g(this.bh);this.$a.set("text",
this.bh);this.h.add(this.$a)}}};a.prototype.ni=function(a){this.h.GN().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.bn(a)}.bind(this))};a.prototype.Zh=function(a){this.Eg=this.d2();return new f(this,this.Eg?[this.Eg]:[],this.Eg,a)};return a});
define("jY","require,kG,iA,cn,ef,eR,A,mR".split(","),function(a){var b=a("kG"),d=a("iA"),c=a("cn"),g=a("ef"),f=a("eR"),i=a("A"),e=a("mR"),j=new THREE.Matrix4,o=Math.PI/180,a=b.extend(i,function(){i.call(this);this.set("tag","Laser");this.set("matrix",q);this.set("over",B);this.set("pressed",B);this.set("intersectionDistance",0);this.set("visible",B);this.set("attachToCamera",B);this.set("dotVisible",m);this.R5=this.sL=this.sr=this.Q5=q;new THREE.Matrix4;this.S5=new THREE.Matrix4;this.S5.multiply(j.makeRotationX(-90*
o));this.S5.multiply(j.makeTranslation(0,k*0.5,0));this.JQ=this.IQ=this.HQ=this.Ct=this.b1=q;new THREE.Matrix4;this.c1=new THREE.Matrix4;this.yI=this.GQ=this.a1=q;new THREE.Matrix4;this.Vz=[new THREE.Matrix4,new THREE.Matrix4,new THREE.Matrix4];this.Vz[0].multiply(j.makeRotationX(-90*o));this.Vz[0].multiply(j.makeTranslation(0,-r*0.5,0));this.Vz[1].multiply(j.makeRotationX(-90*o));this.Vz[1].multiply(j.makeTranslation(0,-r*0.5,-n*0.5));this.Vz[2].multiply(j.makeRotationX(-90*o));this.Vz[2].multiply(j.makeTranslation(0,
-r*0.5,-n))});a.prototype.X=function(a){i.prototype.X.call(this,a);this.E8();this.fy()};a.prototype.E8=function(){if(this.D("visible"))this.get("meshGroup").visible=this.get("visible");this.D("dotVisible")&&g.Ve([this.IQ,this.GQ],this.get("dotVisible")?1:0)};a.prototype.fy=function(){if(this.D("over","pressed")){this.cpa();this.vpa()}};var k=0.35,n=0.012,r=0.1;a.prototype.em=function(){this.GQ=g.create(new THREE.SphereGeometry(2.3,32,32),this.eBa());this.IQ=g.create(new THREE.SphereGeometry(2,32,
32),this.fBa());this.R5=g.create(new THREE.CylinderGeometry(0.003,0.003,k,8),this.FBa());this.UD=[];this.UD.push(g.create(new THREE.CylinderGeometry(n,n,r,32),this.q0()));this.UD.push(g.create(new THREE.BoxGeometry(2*n,r,n),this.q0()));this.UD.push(g.create(new THREE.CylinderGeometry(n,n,r,32),this.q0()));return[this.GQ,this.IQ,this.R5].concat(this.UD)};a.prototype.eBa=function(){if(this.a1==q){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),e=new f;e.Ll(a);this.a1=
c.ny(e.texture(),new c.kn);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.a1};a.prototype.fBa=function(){if(this.b1==q){this.Ct=document.createElement("canvas");this.Ct.width=this.Ct.height=256;this.HQ=this.Ct.getContext("2d");this.JQ=new f;this.JQ.Ll(this.Ct);this.b1=c.ny(this.JQ.texture(),new c.kn);this.cpa()}return this.b1};a.prototype.cpa=function(){this.HQ.fillStyle=this.V1();this.HQ.clearRect(0,0,this.Ct.width,this.Ct.height);
this.HQ.fillRect(0,0,this.Ct.width,this.Ct.height);this.JQ.update()};a.prototype.FBa=function(){if(this.Q5==q){this.sr=document.createElement("canvas");this.sr.width=this.sr.height=256;this.sL=this.sr.getContext("2d");this.T5=new f;this.T5.Ll(this.sr);this.Q5=c.ny(this.T5.texture(),new c.kn);this.vpa()}return[this.Q5]};a.prototype.vpa=function(){var a=e.ZN(this.V1()).join(", "),b=this.sL.createLinearGradient(0,0,0,this.sr.height);b.addColorStop(0,"rgba("+a+", 0)");b.addColorStop(0.5,"rgba("+a+", 1)");
b.addColorStop(1,"rgba("+a+", 1)");this.sL.fillStyle=b;this.sL.clearRect(0,0,this.sr.width,this.sr.height);this.sL.fillRect(0,0,this.sr.width,this.sr.height);this.T5.update()};a.prototype.q0=function(){if(this.yI==q){var a=document.createElement("canvas");a.width=a.height=256;var b=a.getContext("2d"),e=new f;e.Ll(a);this.yI=c.ny(e.texture(),new c.kn);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.yI,this.yI,this.yI]};a.prototype.Qp=
function(){var a=B,b=B,c=B;if(this.D("intersectionDistance")){var b=(b=this.get("intersectionDistance"))?d.jC(b):d.cv(),e=b/d.cv();this.c1.makeTranslation(0,0,-b);this.c1.multiply(j.makeScale(e,e,e));b=m}if(this.D("matrix"))c=b=a=m;if(b){j.identity();(b=this.get("matrix"))&&j.multiply(b);j.multiply(this.c1);g.Yp(this.IQ,j);g.Yp(this.GQ,j)}if(a){j.identity();(b=this.get("matrix"))&&j.multiply(b);j.multiply(this.S5);g.Yp(this.R5,j)}if(c){b=this.get("matrix");for(a=0;a<this.UD.length;a++){j.identity();
b&&j.multiply(b);j.multiply(this.Vz[a]);g.Yp(this.UD[a],j)}}};a.prototype.MB=function(){if(this.D("index","meshGroup")){var a=this.get("meshGroup");a&&a.children.forEach(function(a){g.FX(a,this.get("index"))}.bind(this))}};a.prototype.V1=function(){return this.get("pressed")?this.ta.K.get("vrPointerSelectionColor"):this.get("over")?this.ta.K.get("vrPointerOverColor"):this.ta.K.get("vrPointerColor")};return a});
define("ec","require,kG,nU,nL,jY,lE,nO,eW,ni,dH,bu,mL".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("nL"),g=a("jY"),f=a("lE"),i=a("nO"),e=a("eW"),j=a("ni"),o=a("dH"),k=a("bu"),n=a("mL"),r=new THREE.Matrix4,p=Math.PI/180,a=b.extend(j,function(a){j.call(this,j.TH,a);this.Eg=this.o=q;this.hl=[];this.lj=new g;this.h.add(this.lj);this.Qc=new f;this.h.add(this.Qc);this.yj=B;this.bh="";this.$a=q;this.Ok=new THREE.Matrix4});a.prototype.clear=function(){this.h.remove(this.lj);this.h.remove(this.Qc);
this.Qc=this.lj=q;this.$a&&this.h.remove(this.$a);this.$a=q};a.prototype.update=function(a){this.o=a;this.Qc.set("changing",a.VV);this.Qc.set("visible",a.VV);var b=o.XW();if(b&&!b.lQa()){var c=b.quaternion(),e=b.position(),d=k.cs().position,f=n.Na(k.cs().orientation);this.Ok.identity();if(e){this.Ok.multiply(r.makeRotationY((f-a.Na)*p));this.Ok.multiply(r.makeTranslation(-d.x,-d.y,-d.z));this.Ok.multiply(r.makeTranslation(e.x,e.y,e.z));this.Ok.multiply(r.makeRotationFromQuaternion(c))}else{this.Ok.multiply(r.makeRotationY(-a.Na*
p));b.hand()==o.Ja?this.Ok.multiply(r.makeTranslation(-0.2,-0.4,0)):this.Ok.multiply(r.makeTranslation(0.2,-0.4,0));this.Ok.multiply(r.makeRotationY(f*p));this.Ok.multiply(r.makeRotationFromQuaternion(c));this.Ok.multiply(r.makeTranslation(0,0,-0.3))}this.lj.set("matrix",q);this.lj.set("matrix",this.Ok);this.lj.set("pressed",b.pressed());this.lj.set("visible",m)}else this.lj.set("visible",B);this.Qi();a=!!b&&b.pressed();if(this.yj!=a){this.yj&&this.QD();this.yj=a}this.lj.xk();this.Qc.xk()};a.prototype.QD=
function(){var a=this.Zh(d.Qj);this.ni(a);this.lj.set("over",m);this.lj.set("dotVisible",m);this.lj.set("intersectionDistance",a.EQ);(a=o.XW())&&a.pulse(0.6,50);this.O7()};a.prototype.O7=function(){this.h.wb().trigger(d.dz,{BO:d.Qj})};a.prototype.Qi=function(){var a=this.Zh(d.Hk);this.ni(a);this.Ip(a.FO());var b;a:{b=this.hl;for(var c=a.hl,e=0;e<b.length;e++)if(c.indexOf(b[e])<0){b=B;break a}for(e=0;e<c.length;e++)if(b.indexOf(c[e])<0){b=B;break a}b=m}if(!b&&(a.dn()||this.lj.get("over"))){this.hl=
a.hl;(b=o.XW())&&b.pulse(0.6,5)}this.lj.set("over",a.dn());this.lj.set("intersectionDistance",a.EQ);this.lj.set("dotVisible",!a.mOa())};a.prototype.Ip=function(a){if(this.bh!=a){this.bh&&this.h.remove(this.$a);if(this.bh=a){this.$a=new i(this.bh);this.$a.set("text",this.bh);this.$a.set("matrix",q);this.$a.set("matrix",this.Ok);this.h.add(this.$a)}}};a.prototype.ni=function(a){this.h.GN().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.bn(a)}.bind(this))};a.prototype.Zh=
function(a){this.Eg=c.VOa(this.Ok,this.Eg);return new e(this,[this.Eg],this.d2(),a)};return a});
define("iM","require,kG,nU,nL,V,eW,ni,bc".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("nL"),g=a("V"),f=a("eW"),i=a("ni"),e=a("bc"),a=b.extend(i,function(a){i.call(this,i.UH,a);this.h.K.bind(d.ad,this.oj,this,m);this.h.K.bind(d.Sh,this.Wia,this,m);this.h.K.bind(d.rb,this.LIa,this,m);this.h.K.bind(d.zb,this.Ed,this,m);this.h.K.bind(d.Wb,this.pj,this,m);this.qu=this.pu=this.vu=this.Km=this.Bc=this.Ac=l;this.Eg=this.o=q;this.Or=B;this.$a=""});a.prototype.clear=function(){this.h.K.unbind(d.ad,this.oj,
this,m);this.h.K.unbind(d.Sh,this.Wia,this,m);this.h.K.unbind(d.zb,this.Ed,this,m);this.h.K.unbind(d.Wb,this.pj,this,m);this.Or&&(this.h.iH(e.yf),this.Or=B);this.Ip("")};a.prototype.update=function(a){this.o=a;this.p8()};a.prototype.Hra=function(){return{x:this.Ac,y:this.Bc,pageX:this.pu,pageY:this.qu}};a.prototype.oj=function(a){this.Ac=a.x;this.Bc=a.y;this.pu=a.pageX;this.qu=a.pageY;this.pV()};a.prototype.Wia=function(){this.qu=this.pu=this.Bc=this.Ac=l;this.pV()};a.prototype.LIa=function(){this.qu=
this.pu=this.Bc=this.Ac=l;this.pV()};a.prototype.Ed=function(a){this.Ac=this.Km=a.x;this.Bc=this.vu=a.y;this.pu=a.pageX;this.qu=a.pageY;this.ni(this.Zh(d.mZ))};a.prototype.pj=function(a){this.Ac=a.x;this.Bc=a.y;this.pu=a.pageX;this.qu=a.pageY;this.ni(this.Zh(d.nZ));this.u3(this.Km,this.vu,this.Ac,this.Bc)&&this.ni(this.Zh(d.Qj))};a.prototype.p8=function(){if(!this.Rp)this.Rp=setTimeout(function(){this.Rp=q;this.Qi()}.bind(this),300)};a.prototype.pV=function(){if(this.Rp){clearTimeout(this.Rp);this.Rp=
q}this.Qi()};a.prototype.Qi=function(){var a=this.Zh(d.Hk);this.ni(a);this.Ip(a.FO());if(this.Or!=a.dn()){this.Or&&this.h.iH(e.yf);(this.Or=a.dn())&&this.h.kX(e.yf)}};a.prototype.Ip=function(a){if(this.$a!=a){this.$a=a;this.h.K.set("toolTip",this.$a)}};a.prototype.ni=function(a){this.h.GN().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.bn(a)}.bind(this))};a.prototype.Zh=function(a){return new f(this,this.nR(),q,a)};a.prototype.nR=function(){if(this.Ac!==l&&this.Bc!==
l&&this.o.ug){var a=g.hC(this.o.ug);if(a){this.Eg=c.Ira(a,this.Ac,this.Bc,this.o.width,this.o.height,this.Eg);return[this.Eg]}}return[]};a.prototype.u3=function(a,b,c,e){a=c-a;b=e-b;return Math.sqrt(a*a+b*b)<=5};return a});
define("gd","require,kG,nU,nL,V,eW,ni".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("nL"),g=a("V"),f=a("eW"),i=a("ni"),a=b.extend(i,function(a){i.call(this,i.VH,a);this.h.K.bind(d.zb,this.Ed,this,m);this.h.K.bind(d.Wb,this.pj,this,m);this.vu=this.Km=this.Bc=this.Ac=l;this.o=q;this.gAa=Array(e.length);this.QHa=Array(j.length);this.$a="";this.Qi=this.Qi.bind(this)});a.prototype.clear=function(){this.h.K.unbind(d.zb,this.Ed,this,m);this.h.K.unbind(d.Wb,this.pj,this,m);this.Ip("")};a.prototype.update=
function(a){this.o=a;this.p8()};a.prototype.Ed=function(a){this.Ac=this.Km=a.x;this.Bc=this.vu=a.y;this.ni(this.Zh(d.mZ))};a.prototype.pj=function(a){this.Ac=a.x;this.Bc=a.y;this.ni(this.Zh(d.nZ));this.u3(this.Km,this.vu,this.Ac,this.Bc)&&this.ni(this.Zh(d.Qj))};a.prototype.p8=function(){if(!this.Rp)this.Rp=setTimeout(this.Qi,300)};a.prototype.pV=function(){if(this.Rp){clearTimeout(this.Rp);this.Rp=q}this.Qi()};a.prototype.Qi=function(){this.Rp=q;var a=this.Zh(d.Hk);this.ni(a);this.Ip(a.FO())};a.prototype.Ip=
function(a){if(this.$a!=a){this.$a=a;a=this.h.K;a.set("toolTip",this.$a);if(!a.get("toolTipDisabled")){var b=a.wb().$a;this.$a?b.nTa(a,this.$a):b.hide()}}};a.prototype.ni=function(a){this.h.GN().sort(function(a,b){return b.get("index")-a.get("index")}).forEach(function(b){b.bn(a)}.bind(this))};a.prototype.Zh=function(a){var b;b=a==d.Hk?this.nR(this.o.width*0.5,this.o.height*0.5,e,this.gAa):this.nR(this.Ac,this.Bc,j,this.QHa);return new f(this,b,q,a)};a.prototype.nR=function(a,b,e,d){var f=this.o.ug&&
g.hC(this.o.ug);if(f){var i=this.o.width,j=this.o.height,u=Math.min(i,j)/100;e.forEach(function(e,g){d[g]=c.Ira(f,a+e[0]*u,b+e[1]*u,i,j,d[g])});return d}return[]};a.prototype.u3=function(a,b,c,e){a=c-a;b=e-b;b=Math.sqrt(a*a+b*b);e=4*Math.round(1*Math.min(window.screen.width,window.screen.height)/100);return b<=e};var e=function(){for(var a=[],b=-5;b<=5;b++)for(var c=-5;c<=5;c++){var e=Math.sqrt(c*c+b*b);e<5&&a.push([c,b,e])}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]]})}(),j=function(){for(var a=[],b=0;b<5;b++)for(var c=-2+4*b/4,e=0;e<5;e++){var d=-2+4*e/4,f=Math.sqrt(d*d+c*c);f<=2&&a.push([d,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("gP","require,cB,kF,ec,iM,ni,gd".split(","),function(a){var b=a("cB"),d=a("kF"),c=a("ec"),g=a("iM"),f=a("ni"),i=a("gd");return{create:function(a,j){switch(a){case f.rP:return new b(j);case f.DZ:return new d(j);case f.TH:return new c(j);case f.UH:return new g(j);case f.VH:return new i(j)}}}});
define("os",["require","bc"],function(a){function b(a){this.wc=a;this.De=[]}var d=a("bc");b.prototype.push=function(a){this.De.push(a);this.X()};b.prototype.pop=function(a){for(var b=this.De.length-1;0<=b;b--)if(this.De[b]==a){this.De.splice(b,1);this.X();break}};b.prototype.clear=function(){0<this.De.length&&(this.wc.set("cursor",d.me),this.De=[])};b.prototype.X=function(){this.wc.set("cursor",0<=this.De.indexOf(d.Ek)?d.Ek:0<=this.De.indexOf(d.yf)?d.yf:0<this.De.length?this.De[this.De.length-1]:
d.me)};return b});
define("na",["require","t"],function(a){function b(a){for(var a=atob(a.split(",")[1]),b=[],d=0;d<a.length;d++)b.push(a.charCodeAt(d));return new Blob([new Uint8Array(b)],{type:"image/jpeg"})}var d=a("t");return{LTa:function(a,g){g||(g="screenshot.jpg");var f;a:{try{f=a.toDataURL("image/jpeg");break a}catch(i){}f=l}if(!f)return B;var e=g,j=document.createElement("a");"string"===typeof j.download?(document.body.appendChild(j),j.download=e,j.href=f,j.click(),document.body.removeChild(j)):d.browser()==
d.Fv?window.navigator.msSaveOrOpenBlob(b(f),e):window.location.replace(f);return m}}});
define("eI","require,kG,jU,nU,cs,d,bc,t,dH,hH,eK,oa,kP,eu,dL,fY,gP,ni,os,lY,jM,kj,bu,bg,na".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("cs"),f=a("d"),i=a("bc"),e=a("t"),j=a("dH"),o=a("hH"),k=a("eK"),n=a("oa"),r=a("kP"),p=a("eu"),t=a("dL"),s=a("fY"),u=a("gP"),v=a("ni"),w=a("os"),x=a("lY"),y=a("jM"),D=a("kj"),E=a("bu"),H=a("bg"),M=a("na"),G=Math.PI/180,z=b.extend(f,function(a,b,e){f.call(this);this.je("Renderer");this.set("toolTipDisabled",m);this.set("cursor",i.Mv);this.set("layout",
"absolute");this.Zb=a;this.K=b;this.uc=e;this.hm=new w(b);this.uj=q;this.o=new n;this.ta=new s(this.Zb,this.K,this.uc,this);this.ta.bind(c.qa,this.yb,this,m);this.nl=new p;this.o.ug=this.nl.io();this.o.lN=this.nl.Sfa;this.o.mN=this.nl.Tfa;this.o.camera=this.nl.hC();this.Fia=(new Date).getTime();this.Ab().append(this.nl.Lc());this.Lga=new k;this.Ab().append(this.Lga.Lc());this.aG=new r(b,e);this.Ab().append(this.aG.Lc());this.roa=new y;this.roa.bind(c.U,this.hHa,this,m);this.tja=new x;this.tja.bind(c.qa,
this.MGa,this,m);this.bR=new o(this.o.width,this.o.height,this.o.ue*G);this.bind(c.sc,this.Vb,this,m);this.bind(c.hc,this.gk,this,m);this.bind(c.nc,this.ck,this,m);E.bind(c.qa,this.Ln,this,m);j.bind(c.qa,this.xGa,this,m);d.pa(this.uc,["fxaaEnabled","aaEnabled","hotspotsEnabled","preloadEnabled"],function(){this.o.qC=this.uc.get("hotspotsEnabled");this.o.eO=this.uc.get("preloadEnabled");this.o.kW=this.uc.get("fxaaEnabled");this.o.JV=this.uc.get("aaEnabled");this.yb()}.bind(this),m);d.pa(this.uc,["surfaceSelectionEnabled"],
this.z8.bind(this));this.z8();this.Ln();d.pa(this.Zb,["defaultVRPointer"],this.Sp.bind(this));this.Sp()});z.prototype.create=function(a){return t.create(a)};z.prototype.add=function(a){this.ta.appendChild(a)};z.prototype.remove=function(a){(a=this.ta.kf(a))&&a.remove()};z.prototype.kf=function(a){return this.ta.kf(a)};z.prototype.GN=function(){return this.ta.all()};z.prototype.cva=function(a){this.o.bX=a};z.prototype.kX=function(a){this.hm.push(a)};z.prototype.iH=function(a){this.hm.pop(a)};z.prototype.sX=
function(a){this.o.VV=a;this.yb()};z.prototype.iaa=function(){e.browser()!=e.Qh&&this.Lga.trigger();this.o.sC=m;this.UT();var a=M.LTa(this.nl.mg());this.o.sC=B;this.UT();return a};z.prototype.fN=function(a){this.o.sC=m;this.UT();a=this.nl.fN(a);this.o.sC=B;return a};z.prototype.getPixelRatio=function(){return this.nl.getPixelRatio()};z.prototype.Sp=function(){var a;a=this.o.$b?j.XW()&&this.Zb.get("defaultVRPointer")=="laser"?v.TH:E.yW()==E.Fxa.VY?v.DZ:v.rP:e.ob()?v.VH:v.UH;if(!(this.uj&&this.uj.Ee()==
a)){this.uj&&this.uj.clear();this.uj=u.create(a,this);this.z8();this.uj.update(this.o)}};z.prototype.z8=function(){this.o.DO=this.uc.get("surfaceSelectionEnabled")&&[v.UH,v.TH,v.VH].indexOf(this.uj&&this.uj.Ee())>=0};z.prototype.Lm=function(){this.hm.clear();f.prototype.Lm.call(this)};z.prototype.Vb=function(){var a=this.Ua(),c=this.Cb();if(this.o.width!=a||this.o.height!=c)if(!a||!c)b.log("Invalid size values: "+a+" "+c);else{this.o.width=a;this.o.height=c;this.bR.zO(this.o.width);this.bR.Wua(this.o.height);
this.yb()}};z.prototype.gk=function(){this.o.enabled=m;this.yb()};z.prototype.ck=function(){this.o.enabled=B};z.prototype.Ln=function(){this.o.$b=E.isPresenting();this.Sp();this.yb()};z.prototype.xGa=function(){this.Sp();this.yb()};z.prototype.hHa=function(){this.yb()};z.prototype.MGa=function(){this.yb()};z.prototype.AX=function(a){if(this.j6!=a)(this.j6=a)||this.yb()};z.prototype.JC=function(a){if(this.o.Nl!=a){this.o.Nl=a;this.yb()}};z.prototype.hb=function(a,c,e,d){if(this.o.Na!=a||this.o.pitch!=
c||this.o.He!=e||this.o.ue!=d)if(isNaN(a)||isNaN(c)||isNaN(e)||!d)b.log("Invalid position values: "+a+" "+c+" "+e+" "+d);else{this.o.Na=a;this.o.pitch=c;this.o.He=e;this.o.ue=d;this.bR.GC(this.o.ue*G);this.yb()}};z.prototype.Uc=function(){return this.o.Na};z.prototype.Mc=function(){return this.o.pitch};z.prototype.uf=function(){return this.o.He};z.prototype.ng=function(){return this.o.ue};z.prototype.wN=function(){return this.o.$b?this.o.Ph:D.zs(this.o.Ph,this.o.width,this.o.height)};z.prototype.xN=
function(){return this.o.Ph};z.prototype.unproject=function(a){return this.bR.unproject(a)};z.prototype.yb=function(){H.yb(this.rj,this)};z.prototype.rj=function(){if(H.r$){var a=(new Date).getTime(),b=Math.max(1,Math.min(a-this.Fia,33));this.Fia=a;this.trigger(new g(z.QY,{frameTime:b}));if(this.o.enabled){this.o.Qe=b;this.UT()}}else this.yb()};z.prototype.UT=function(){this.nl.update(this.o);this.o.TV=this.nl.JOa();this.o.eN=this.nl.IOa();this.o.Ph=this.nl.GOa();this.o.Kj=this.nl.getPixelRatio();
this.ta.update(this.o);this.roa.update(this.o);this.tja.update(this.o);this.uj.update(this.o);this.j6||this.nl.render()};z.QY="render start";z.Dva=T(m);return z});define("ed",["require"],function(){function a(){}a.prototype.clear=I();a.oVa=function(b){return a.create(b,I())};a.create=function(b,d){d.prototype=Object.create(a.prototype);d.prototype.constructor=d;d.id=b;d.not="!"+b;return d};a.Ec=function(b,d){var c=a.create(b,d);c.C$=m;return c};return a});
define("fm",["require","ed"],function(a){var a=a("ed"),b={};b.SC=a.create("AmbientOcclusionEffect",function(){this.bias=0;this.intensity=1;this.scale=100;this.Vsa=25;this.xta=0;this.o9=4;this.output=q});b.Dv=a.create("AnimationComponent",function(){this.Fb=q});b.Bs=a.Ec("AnimationSystemStateComponent",function(){this.manager=q});b.Ky=a.create("AntialiasEffect",function(){this.Ava=this.ora=B;this.CO=2});b.Ql=a.create("AreaComponent",function(){this.entities=[];this.La=this.renderOrder=q});b.Ev=a.Ec("AreaSystemStateComponent",
function(){this.entities=[]});b.Ly=a.Ec("AreaPointSystemStateComponent",function(){this.PV=[]});b.Py=a.create("BeaconComponent",I());b.Gv=a.Ec("BeaconSytemStateComponent",function(){this.position=q});b.oq=a.create("BeaconTrackerComponent",function(){this.La=q});b.Es=a.Ec("BeaconTrackerSytemStateComponent",function(){this.position=q});b.Yi=a.create("CanvasMaterialComponent",function(){this.GX=this.source=q;this.opacity=1;this.hidden=this.isSprite=B;this.depthTest=m});b.Hv=a.Ec("CanvasMaterialSystemStateComponent",
function(){this.manager=q});b.TO=a.create("ColorEffect",function(){this.color="#000000";this.opacity=0.5});b.VO=a.create("DataComponent",I());b.so=a.create("DraggableComponent",function(){this.min=this.direction=this.La=q});b.Iv=a.Ec("DraggableSystemStateComponent",function(){this.D9=q});b.Jv=a.create("DraggingComponent",I());b.$C=a.create("FirstPersonControlsComponent",function(){this.Xp=q;this.ns=m;this.Fb=q;this.enabled=m});b.Is=a.Ec("FirstPersonControlsSystemStateComponent",function(){this.manager=
q});b.Js=a.create("FloorTransformComponent",function(){this.distance=0;this.IN=B;this.z=this.y=this.x=0});b.tq=a.Ec("FloorTransformSystemStateComponent",function(){this.manager=q});b.aD=a.create("FlyOverControlsComponent",function(){this.Xp=q;this.ns=m;this.Fb=q;this.enabled=m});b.Ks=a.Ec("FlyOverControlsSystemStateComponent",function(){this.manager=q});b.Geometry=a.create("GeometryComponent",function(){this.geometry=q});b.Group=a.create("GroupComponent",function(){this.group=q});b.eD=a.Ec("GroupSystemStateComponent",
function(){this.group=q});b.Ls=a.create("ImageMaterialComponent",function(){this.eH=this.La=this.Asa=this.Fb=q;this.Fe=l;this.isSprite=B});b.Nv=a.Ec("ImageMaterialSystemStateComponent",function(){this.manager=q});b.NH=a.create("MotionBlurEffect",function(){this.yua=7;this.intensity=1});b.Light=a.create("LightComponent",function(){this.Md=this.target=this.Fb=q});b.Ms=a.Ec("LightSystemStateComponent",I());b.Line=a.create("LineComponent",function(){this.renderOrder=0});b.Pv=a.Ec("LineSystemStateComponent",
I());b.bj=a.create("LineMaterialComponent",function(){this.color="#ffffff";this.width=this.opacity=1;this.depthTest=m});b.Ov=a.Ec("LineMaterialSystemStateComponent",function(){this.manager=q});b.Qv=a.create("LineToTransformComponent",function(){this.Qb=q});b.Rv=a.Ec("LineToTransformSystemStateComponent",I());b.Material=a.create("MaterialComponent",function(){this.material=q});b.wq=a.create("MaterialTransformComponent",function(){this.opacity=this.envMapIntensity=1;this.La=q});b.Sv=a.Ec("MaterialTransformSystemStateComponent",
function(){this.manager=q});b.Os=a.create("MaterialVariantComponent",function(){this.name=q});b.Do=a.Ec("MaterialVariantSystemStateComponent",function(){this.manager=q});b.Mesh=a.create("MeshComponent",function(){this.lo=q;this.renderOrder=0});b.xq=a.Ec("MeshSystemStateComponent",function(){this.lo=q});b.yg=a.create("ModelComponent",function(){this.j$=this.La=this.eH=this.iua=this.yta=this.Fb=q});b.Ps=a.Ec("ModelComponentSystemState",function(){this.manager=q});b.Qs=a.Ec("NotSelectableComponent",
function(){this.Yva=this.Xva=m});b.kz=a.Ec("NotSelectableSystemStateComponent",I());b.Object3D=a.create("Object3DComponent",function(){this.Yc=q});b.mD=a.create("Object3DIdComponent",function(){this.container=this.id=q});b.Rs=a.Ec("Object3DIdComponentSystemState",function(){this.manager=q});b.nD=a.create("OrbitControlsComponent",function(){this.Xp=q;this.ns=m;this.Fb=q;this.enabled=m});b.Ss=a.Ec("OrbitControlsSystemStateComponent",function(){this.manager=q});b.OrthographicCamera=a.create("OrthographicCameraComponent",
function(){this.height=this.width=100});b.Tv=a.Ec("OrthographicCameraSystemStateComponent",function(){this.camera=q;this.height=this.width=l});b.Hb=a.create("ParentComponent",function(){this.Qb=q;this.attach=B;this.id=q});b.yq=a.Ec("ParentSystemStateComponent",function(){this.md=this.parent=q;this.id=l;this.attach=B});b.PerspectiveCamera=a.create("PerspectiveCameraComponent",function(){this.height=this.width=100;this.fov=75;this.near=0.01;this.far=100;this.oqa=B;this.pqa=0});b.zq=a.Ec("PerspectiveCameraSystemStateComponent",
function(){this.q9=this.boundingBox=this.scene=this.camera=q;this.R$=B;this.far=this.near=this.fov=this.height=this.width=l});b.Eo=a.create("PixelScaleTransformComponent",function(){this.scale=this.si=this.Lg=this.sg=1;this.SN=this.QN=l});b.mz=a.Ec("PixelScaleTransformSystemStateComponent",I());b.Plane=a.create("PlaneComponent",function(){this.renderOrder=q});b.Ts=a.Ec("PlaneSystemStateComponent",function(){this.manager=q});b.Fo=a.create("PointerComponent",function(){this.Xp=q;this.enabled=m;this.Fb=
q});b.Rj=a.create("PointerOverTransformComponent",function(){this.Qb=q;this.rotate=m;this.La=q});b.Aq=a.Ec("PointerOverTransformSystemStateComponent",function(){this.manager=q});b.Us=a.Ec("PointerDraggingSystemStateComponent",function(){this.manager=q});b.Vs=a.Ec("PointerSelectionSystemStateComponent",function(){this.manager=q});b.Th=a.create("RendererComponent",function(){this.canvas=q;this.antialias=m;this.shadowMap=B;this.renderer=q;this.iO=[]});b.Bq=a.Ec("RendererSystemStateComponent",function(){this.manager=
q});b.Scene=a.create("SceneComponent",function(){this.opacity=1;this.locked=B;this.enabled=m;this.outputEncoding=this.G9=this.bra=this.qqa=this.k9=this.backgroundColor=this.co=this.scene=q});b.Dq=a.Ec("SceneSystemStateComponent",function(){this.manager=this.scene=q});b.Ud=a.create("SelectableComponent",function(){this.La=q;this.HO=B;this.Zu=m;this.dn=this.qv=B});b.nz=a.Ec("SelectableSystemStateComponent",I());b.Vc=a.create("SolidMaterialComponent",function(){this.color="#ffffff";this.opacity=1;this.depthTest=
m;this.doubleSided=B});b.Ws=a.Ec("SolidMaterialSystemStateComponent",function(){this.manager=q});b.Sphere=a.create("Sphere",function(){this.radius=1;this.widthSegments=32;this.heightSegments=16;this.renderOrder=0});b.oz=a.Ec("SphereSystemStateComponent",I());b.Sprite=a.create("SpriteComponent",function(){this.AG=this.zG=0.5;this.width=this.height=100;this.scale=1;this.renderOrder=0});b.Eq=a.Ec("SpriteSystemStateComponent",function(){this.manager=q});b.va=a.create("TransformComponent",function(){this.mf=
this.Ie=this.lf=this.cg=this.ve=this.Ue=0;this.rg="XYZ";this.si=this.Lg=this.sg=this.scale=1;this.pN=this.Kf=this.tg=this.Og=0;this.La=q});b.zf=a.Ec("TransformSystemStateComponent",function(){this.mf=this.Ie=this.lf=this.cg=this.ve=this.Ue=0;this.rg="XYZ";this.si=this.Lg=this.sg=this.scale=1;this.Kf=this.tg=this.Og=0});b.pz=a.Ec("TransformEasingSystemStateComponent",I());b.Vv=a.create("VideoMaterialComponent",function(){this.La=this.mwa=this.Fb=q});b.Wv=a.Ec("VideoMaterialSystemStateComponent",function(){this.manager=
q});b.Vj=a.create("ViewportComponent",function(){this.height=this.width=this.co=q});b.Xv=a.create("ViewportPlaneGeometryComponent",function(){this.Fb=this.co=q});b.Ys=a.Ec("ViewportPlaneGeometrySystemStateComponent",function(){this.geometry=q;this.zIndex=this.zua=this.verticalAlign=this.tsa=this.mva=this.pva=l});b.uD=a.create("VignetteEffect",function(){this.Uta=1;this.Bsa=0.5;this.color="#000000";this.opacity=0.5});return b});
define("lp",["require"],function(){function a(b,d){this.R=b;this.CTa=d||"Entity";this.id=this.CTa+"_"+a.GQa++;this.eo={};this.fO={};this.bba=0}a.prototype.getComponent=function(a){return this.eo[a.id]};a.prototype.G=function(a,d){var c=this.eo[a.id];c?this.R.VNa(this,a):d&&(c=this.C(a));return c};a.prototype.C=function(a){if(a.id in this.eo)return this.eo[a.id];a.C$&&this.bba++;var d=this.eo[a.id]=new a;this.R.BNa(this,a);return d};a.prototype.ga=function(a){a.id in this.eo&&(a.C$&&this.bba--,this.fO[a.id]=
this.eo[a.id],delete this.eo[a.id],this.R.rua(this,a,l))};a.prototype.YNa=function(){for(var a in this.fO)this.fO[a].clear(),delete this.fO[a]};a.prototype.iRa=function(){for(var a in this.eo){var d=this.eo[a].constructor;d.C$||(this.fO[a]=this.eo[a],delete this.eo[a],this.R.rua(this,d,B))}};a.GQa=0;return a});define("bW",["require"],function(){function a(){this.id=a.m4++;this.entities=[]}a.m4=0;return a});
define("kd",["require"],function(){function a(b,d){this.id=a.m4++;this.name=d;this.entities=b.entities;this.ag=b.entities.slice();this.Ra=[];this.Ym=[]}a.prototype.WNa=function(){!this.ag.length||(this.ag=[]);!this.Ra.length||(this.Ra=[]);!this.Ym.length||(this.Ym=[])};a.m4=0;return a});
define("bp",["require","bW","kd"],function(a){function b(){this.QPa={};this.A={};this.AC={};this.LG={};this.av={};this.zC={};this.kN={};this.yC={}}function d(a){return"string"==typeof a?a:a.id}function c(a,b){0>a.indexOf(b)&&a.push(b)}function g(a,b){var c=a.indexOf(b);0<=c&&a.splice(c,1)}var f=a("bW"),i=a("kd");b.prototype.ma=function(a){this.kN[a.id]={};this.kN[a.not]={}};b.prototype.hOa=function(a,b){var c=this.hEa(a),d=new i(c,b);this.AC[c.id].push(d);return d};b.prototype.hEa=function(a){var b=
this.QPa[this.iEa(a)];if(b)return b;b=new f;this.A[b.id]=b;a=a.map(d);this.yC[b.id]={};for(var c=0;c<a.length;c++){var g=a[c];this.yC[b.id][g]=m;this.kN[g][b.id]=m}this.zC[b.id]={};this.AC[b.id]=[];return b};b.prototype.iEa=function(a){a=a.map(d);a.sort();return a.join("-")};b.prototype.LQa=function(a){this.LG[a.id]={};this.av[a.id]={}};b.prototype.MQa=function(a){delete this.LG[a.id];delete this.av[a.id]};b.prototype.IQa=function(a,b){var d=b.id,f=b.not,i=a.id;this.LG[i][d]=m;for(var r in this.av[i])if(f in
this.yC[r]){delete this.zC[r][i];delete this.av[i][r];g(this.A[r].entities,a);for(var p=this.AC[r],t=0,s=p.length;t<s;t++){var u=p[t];c(u.Ym,a);g(u.ag,a);g(u.Ra,a)}}for(r in this.kN[d])if(!(i in this.zC[r])){var f=m,v;for(v in this.yC[r])if(p="!"!=v[0],(p?v:v.slice(1))in this.LG[i]!=p){f=B;break}if(f){this.zC[r][i]=m;this.av[i][r]=m;c(this.A[r].entities,a);p=this.AC[r];t=0;for(s=p.length;t<s;t++)u=p[t],c(u.ag,a),g(u.Ym,a),g(u.Ra,a)}}};b.prototype.KQa=function(a,b){var d=b.id,f="!"+d,i=a.id;delete this.LG[i][d];
for(var r in this.av[i])if(d in this.yC[r]){delete this.zC[r][i];delete this.av[i][r];g(this.A[r].entities,a);for(var p=this.AC[r],t=0,s=p.length;t<s;t++){var u=p[t];c(u.Ym,a);g(u.ag,a);g(u.Ra,a)}}for(r in this.kN[f])if(!(i in this.zC[r])){var d=m,v;for(v in this.yC[r])if(p="!"!=v[0],(p?v:v.slice(1))in this.LG[i]!=p){d=B;break}if(d){this.zC[r][i]=m;this.av[i][r]=m;this.A[r].entities.push(a);p=this.AC[r];t=0;for(s=p.length;t<s;t++)u=p[t],c(u.ag,a),g(u.Ym,a),g(u.Ra,a)}}};b.prototype.JQa=function(a,
b){var d=b.id,f=a.id,g;for(g in this.av[f])if(d in this.yC[g])for(var i=this.AC[g],p=0,t=i.length;p<t;p++)c(i[p].Ra,a)};return b});
define("kx",["require","bg","lp","bp"],function(a){function b(a){this.Zb=a;this.N=m;this.Vg={};this.HI=[];this.JAa={};this.hM=[];this.mB=new g;this.RQ=[];this.Ex=B}var d=a("bg"),c=a("lp"),g=a("bp");b.prototype.ma=function(a){this.JAa[a.id]=a;this.mB.ma(a);return this};b.prototype.Nd=function(a,b){var c=new a(this,b);c.order=this.hM.length;this.hM.push(c);for(var d in a.A)c[d]=this.mB.hOa(a.A[d],b+"."+d);this.hM.sort(function(a,b){return a.Fe-b.Fe||a.order-b.order});return this};b.prototype.Ld=function(a){a=
new c(this,a);this.Vg[a.id]=a;this.mB.LQa(a);this.pb();return a};b.prototype.bg=function(a){a.id in this.Vg&&(delete this.Vg[a.id],this.HI.push(a),a.iRa(),this.pb())};b.prototype.BNa=function(a,b){this.mB.IQa(a,b);this.pb()};b.prototype.rua=function(a,b,c){this.mB.KQa(a,b);c||this.RQ.push(a);this.pb()};b.prototype.VNa=function(a,b){this.mB.JQa(a,b);this.pb()};b.prototype.xd=function(a){this.N=a;this.pb()};b.prototype.pb=function(){this.N&&!this.Ex&&(this.Ex=m,d.yb(this.update,this))};b.prototype.update=
function(a){this.Ex=B;for(var b=(new Date).getTime(),c=0;c<this.hM.length;c++){var d=this.hM[c];d.execute(a,b);for(var g in d.constructor.A)d[g].WNa()}for(c=0;c<this.RQ.length;c++)this.RQ[c].YNa();this.RQ.length=0;for(c=this.HI.length-1;0<=c;c--)0==this.HI[c].bba&&(this.mB.MQa(this.HI[c]),this.HI.splice(c,1))};return b});define("kR",["require"],function(){function a(a,d){this.R=a;this.name=d;this.Fe=0}a.prototype.execute=I();return a});
define("be","require,kG,lh,gE,nU,eQ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("gE"),g=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("animationDirection","normal");this.set("autoplay",B);this.set("loop",B);this.set("state","stopped");this.set("finalFrame","last");this.bind(g.u("state"),function(){this.trigger(g.Fc)},this,m)});a.F("Model3DAnimation",b).H("Object").Q({index:"number",name:"string",animationDirection:"enum[normal, alternate]",autoplay:"bool",currentDirection:"enum[forward, backward]",
currentTime:"number",duration:"number",finalFrame:"enum[first, last]",loop:"bool",state:"enum[stopped, playing, paused]"}).Mg({pause:function(){this.get("state")==c.S&&this.set("state",c.Gb)},play:function(){this.set("currentDirection","forward");this.set("state",c.S)},reverse:function(){this.set("currentDirection","backward");this.set("state",c.S)},stop:function(){this.set("state",c.L)}}).hh([g.Ga,g.Ik,g.Fc]);return b});
define("bZ",["require","nU","gE"],function(a){function b(a,b,c,e,d){this.j=a;this.Wc=b;this.Mf=c;this.Xj=e;this.wa=d;this.zU()}var d=a("nU"),c=a("gE");b.prototype.yN=S("Xj");b.prototype.frame=function(a){this.o==c.S&&(this.Br(this.oh.time+a/1E3),this.wa())};b.prototype.dispose=function(){this.ZU();this.$v=this.yz=this.oh=this.wa=this.Xj=this.Mf=this.Wc=this.j=q};b.prototype.zU=function(){this.oh=new THREE.AnimationMixer(this.Wc);this.cb=0;this.ub=B;this.yz=[];this.$v=[];for(var a=0;a<this.Mf.length;a++){var b=
this.Mf[a],i="alternate"==b.get("animationDirection"),e=this.cb;this.cb+=this.Xj[a].duration*(i?2:1);this.$v.push({start:e,end:this.cb});e=this.oh.clipAction(this.Xj[a]);i?e.setLoop(THREE.LoopPingPong,2):e.setLoop(THREE.LoopOnce,1);this.yz.push(e);b.set("state",c.L);b.set("currentTime",0);b.set("duration",this.Xj[a].duration)}this.o=c.L;this.Jk=l;this.j.bind(d.u("state"),this.cf,this,m);this.j.bind(d.u("currentTime"),this.TA,this,m);this.j.bind(d.u("animationDirection"),this.Sja,this,m);this.j.set("duration",
this.cb);this.Br(0);this.j.get("autoplay")&&this.j.set("state",c.S)};b.prototype.ZU=function(){this.j.unbind(d.u("state"),this.cf,this,m);this.j.unbind(d.u("currentTime"),this.TA,this,m);this.j.unbind(d.u("animationDirection"),this.Sja,this,m);this.j.set("state",c.L);for(var a=0;a<this.Mf.length;a++)this.yz[a].stop(),this.oh.uncacheClip(this.Xj[a]),this.Mf[a].set("state",c.L),this.Mf[a].set("currentTime",0);this.j.set("duration",l);this.j.set("currentTime",l)};b.prototype.Sja=function(){this.ZU();
this.zU()};b.prototype.cf=function(){var a=this.j.get("state");this.o!=a&&(this.o==c.L?a==c.Gb?this.j.set("state",c.L):a==c.S&&(this.o=c.S,this.ub=B,this.Br(0),this.wa()):this.o==c.S?a==c.L?(this.o=c.L,this.ub&&"last"==this.j.get("finalFrame")?this.Br(this.cb):this.Br(0)):a==c.Gb&&(this.o=c.Gb):this.o==c.Gb&&(a==c.S?(this.o=c.S,this.wa()):a==c.L&&(this.o=c.L,this.Br(0))),this.Jk!==l&&this.Mf[this.Jk].set("state",this.o),this.j.set("state",this.o))};b.prototype.TA=function(){var a=this.j.get("currentTime");
this.oh.time!=a&&(this.o!=c.L&&this.Br(a),this.j.set("currentTime",this.oh.time))};b.prototype.Br=function(a){if(this.oh.time!=a||this.Jk===l)if(a>this.cb)this.j.get("loop")?this.j.set("currentTime",a%this.cb):(this.ub=m,this.j.trigger(d.Ga),this.j.set("state",c.L));else{for(var b=this.Jk||0;a>this.$v[b].end;)b++;for(;a<this.$v[b].start;)b--;if(this.Jk!==b){for(var i=this.Jk||0;i<b;i++){var e=this.Mf[i],j=this.yz[i],o=this.$v[i];"last"==e.get("finalFrame")&&"normal"==e.get("animationDirection")?(j.reset(),
j.startAt(o.start),e.set("currentTime",e.get("duration")),j.clampWhenFinished=m,j.play()):(e.set("currentTime",0),j.stop(),j.clampWhenFinished=B);e.set("state",c.L)}e=this.Mf[b];j=this.yz[b];o=this.$v[b];j.reset();j.startAt(o.start);j.clampWhenFinished="last"==e.get("finalFrame")&&"normal"==e.get("animationDirection");j.play();for(i=this.Jk||0;i>b;i--)e=this.Mf[i],j=this.yz[i],e.set("currentTime",0),j.stop();this.Jk=b}else j=this.yz[this.Jk],a<this.oh.time&&(j.reset(),j.startAt(this.$v[this.Jk].start)),
j.paused=B;this.oh.update(a-this.oh.time);e=this.Mf[this.Jk];e.set("state",this.o);a=this.oh.time-this.$v[this.Jk].start;e=e.get("duration");b=a>e;this.Mf[this.Jk].set("currentTime",b?2*e-a:a);this.Mf[this.Jk].set("currentDirection",b?"backward":"forward");this.j.set("currentTime",this.oh.time);this.wa()}};return b});
define("nK",["require","nU","gE"],function(a){function b(a,b,c,e,d){this.j=a;this.Wc=b;this.Mf=c;this.Xj=e;this.wa=d;this.F4=this.F4.bind(this);this.B4=this.B4.bind(this);this.zU()}var d=a("nU"),c=a("gE");b.prototype.dispose=function(){this.ZU();this.wa=this.Xj=this.Mf=this.Wc=this.j=q};b.prototype.yN=S("Xj");b.prototype.frame=function(a){0<this.dt.length&&(this.oh.update(a/1E3),this.dt.forEach(function(a){this.qea(a)}.bind(this)),this.wa())};b.prototype.zU=function(){this.oh=new THREE.AnimationMixer(this.Wc);
this.oh.addEventListener("loop",this.F4);this.oh.addEventListener("finished",this.B4);this.Kq=new Map;this.EP=new Map;this.dt=[];for(var a=0;a<this.Mf.length;a++){var b=this.Mf[a],c=this.Xj[a];this.EP.set(b,c);var e=this.oh.clipAction(c);this.Kq.set(b,e);b.set("duration",c.duration);b.set("currentTime",b.get("currentTime")||0);b.set("currentDirection","forward");b.bind(d.u("state"),this.Gja,this,m);b.bind(d.u("animationDirection"),this.Dja,this,m);b.bind(d.u("currentTime"),this.Cja,this,m);b.bind(d.u("currentDirection"),
this.Bja,this,m);b.bind(d.u("loop"),this.Fja,this,m);b.bind(d.u("finalFrame"),this.Eja,this,m);this.dG(b)}this.wa()};b.prototype.ZU=function(){for(var a=0;a<this.Mf.length;a++){var b=this.Mf[a];b.unbind(d.u("state"),this.Gja,this,m);b.unbind(d.u("animationDirection"),this.Dja,this,m);b.unbind(d.u("currentTime"),this.Cja,this,m);b.unbind(d.u("currentDirection"),this.Bja,this,m);b.unbind(d.u("loop"),this.Fja,this,m);b.unbind(d.u("finalFrame"),this.Eja,this,m);this.Kq.get(b).stop();this.Kq["delete"](b);
this.oh.uncacheClip(this.EP.get(b));this.EP["delete"](b);this.Mf[a].set("state",c.L);this.Mf[a].set("currentTime",0)}this.oh=this.EP=this.Kq=q};b.prototype.F4=function(a){this.Kq.forEach(function(b,c){a.action==b&&c.get("loop")&&c.trigger(d.Ik)})};b.prototype.B4=function(a){this.Kq.forEach(function(b,i){a.action==b&&(this.qea(i),i.set("state",c.L),"alternate"==i.get("animationDirection")&&i.set("currentDirection","forward"==i.get("currentDirection")?"backward":"forward"),i.trigger(d.Ga))}.bind(this))};
b.prototype.Dja=function(a){this.dG(a.source)};b.prototype.Fja=function(a){this.dG(a.source)};b.prototype.Eja=function(a){this.dG(a.source)};b.prototype.Bja=function(a){var b=a.source,c=this.Kq.get(b),e=c.time,d=b.get("duration");!b.get("loop")&&0!=e&&e!=d&&c.reset();this.dG(a.source)};b.prototype.Cja=function(a){this.dG(a.source)};b.prototype.qea=function(a){this.oea=m;var b=this.Kq.get(a),c="alternate"==a.get("animationDirection"),c=0<b._loopCount&&1==b._loopCount%2&&c;a.set("currentDirection",
c?"backward":"forward");var b=b.time,e=a.get("duration");c?a.set("currentTime",e-b):a.set("currentTime",b);this.oea=B};b.prototype.dG=function(a){if(!this.oea){var b=this.Kq.get(a),c="alternate"==a.get("animationDirection"),e="backward"==a.get("currentDirection")&&c,d=a.get("loop"),o="last"==a.get("finalFrame"),k=a.get("currentTime"),a=a.get("duration");d?(b.loop=c?THREE.LoopPingPong:THREE.LoopRepeat,b.repetitions=Infinity,b.clampWhenFinished=B):e?(b.loop=THREE.LoopPingPong,b.repetitions=2,b.clampWhenFinished=
B):(b.loop=THREE.LoopOnce,b.repetitions=1,b.clampWhenFinished=o||c);b.time=c&&-1==b._loopCount?e?a+a-k:k:c&&1==b._loopCount%2?a-k:k;this.wa()}};b.prototype.Gja=function(a){this.$La(a.source)};b.prototype.$La=function(a){var b=this.Kq.get(a),d=a.get("state"),e;e=0<=this.dt.indexOf(a)?c.S:b.paused&&b.enabled&&b.time<a.get("duration")?c.Gb:c.L;e!=d&&(e==c.S?d==c.Gb?(this.dt.splice(this.dt.indexOf(a),1),b.paused=m):d==c.L&&(this.dt.splice(this.dt.indexOf(a),1),!b.paused&&b.enabled&&b.stop()):e==c.Gb?
d==c.S?(this.dt.push(a),b.paused=B):d==c.L&&b.stop():e==c.L&&(d==c.S?(this.dt.push(a),b.paused&&b.enabled&&"alternate"==a.get("animationDirection")&&"backward"==a.get("currentDirection")?b.paused=B:(b.reset(),b.play(),b.fadeIn(0.1))):d==c.Gb&&(d=c.L)),a.set("state",d),this.wa())};return b});
define("cf",["require","fm"],function(a){function b(a){if(a&&a.userData){var b=a.userData.background,c=a.userData.encoding,e=a.userData.pra;b&&b.isColor?a.background=c==THREE.sRGBEncoding&&e?b.clone().convertSRGBToLinear():b:(b&&b.isTexture&&(b.encoding=c==THREE.sRGBEncoding?THREE.sRGBEncoding:THREE.LinearEncoding),a.background=b)}}var d=a("fm"),c={ec:function(a){return!a?q:a.isObject3D?a:(a=a.getComponent(d.Object3D))?a.Yc:q},getWorldPosition:function(a,b){var e=c.ec(a);if(!e)return q;b=b||new THREE.Vector3;
b.setFromMatrixPosition(e.matrixWorld);return b},wX:function(a,b){var c=a.getComponent(d.Object3D).Yc;c.matrixAutoUpdate=B;c.matrixWorldNeedsUpdate=B;c.matrix.identity();c.matrix.multiply(matrix4.makeTranslation(b.Og,b.tg,b.Kf));c.matrix.multiply(matrix4.makeRotationFromEuler(euler.set(b.lf*e,b.Ie*e,b.mf*e,b.rg)));c.matrix.multiply(matrix4.makeTranslation(b.Ue,b.ve,b.cg));c.matrix.multiply(matrix4.makeScale(b.scale*b.sg,b.scale*b.Lg,b.scale*b.si));c.updateMatrixWorld(m)},yN:function(a){return!a?q:
(a=a.getComponent(d.yg))?a.j$.animations:q},N9:function(a){return a.getComponent(d.OrthographicCamera)||a.getComponent(d.PerspectiveCamera)},io:function(a){return c.a$(c.ec(a))},a$:function(a){for(;a&&!a.isScene;)a=a.parent;return a},SSa:function(a,b){a.userData.camera=b},VSa:function(a,b,c){a.userData.width=b;a.userData.height=c},TSa:function(a,c){a.userData.encoding!==c&&(a.userData.encoding=c,b(a))},USa:function(a,c){a.userData.pra!==c&&(a.userData.pra=c,b(a))},HN:function(a){return a.userData.camera},
Pra:function(a){return a.userData.width},xW:function(a){return a.userData.height},Ora:function(a){return a.userData.encoding},CX:function(a,c){a.userData.background!==c&&(a.userData.background=c,b(a))},zNa:function(a,b){var e=a.userData.Zaa||(a.userData.Zaa=[]);0<=e.indexOf(b)||(e.push(b),a.add(b),c.nba(a))},nua:function(a,b){var c=a.userData.Zaa;if(c){var e=c.indexOf(b);0>e||(c.splice(e,1),a.remove(b))}},nba:function(a){var b=a.userData.Zaa;if(b){var c=0.99*-a.far;b.forEach(function(a){a.position.z=
c})}},ANa:function(a,b){var e=a.userData.Yaa||(a.userData.Yaa=[]);0<=e.indexOf(b)||(e.push(b),a.add(b),c.bwa(a))},kRa:function(a,b){var c=a.userData.Yaa;if(c){var e=c.indexOf(b);0>e||(c.splice(e,1),a.remove(b))}},bwa:function(a){var b=a.userData.Yaa;if(b){var c=0.99*a.far;b.forEach(function(a){a.scale.x=a.scale.y=a.scale.z=c})}}},g=new THREE.Vector3,f=new THREE.Quaternion,i=new THREE.Vector3,e=Math.PI/180;c.TG=function(a){var b=(a=c.ec(a))&&c.a$(a),d=b&&c.HN(b);if(d)return a.matrixWorld.decompose(g,
f,i),g.applyMatrix4(d.matrixWorldInverse),i.setFromMatrixScale(a.parent.matrixWorld),2*Math.abs(g.z)*Math.tan(d.fov*e/2)/(c.xW(b)*Math.max(i.x,i.y,i.z))};c.gC=function(a,b){if(a.userData.id===b)return a;var e=q;if(a.children)for(var d=0;d<a.children.length&&!e;d++)e=c.gC(a.children[d],b);if(!e&&a.skeleton)for(d=0;d<a.skeleton.bones.length&&!e;d++)e=c.gC(a.skeleton.bones[d],b);return e};return c});
define("da","require,jU,gE,fm,be,bZ,nK,cf".split(","),function(a){function b(a){this.k=a;this.Xj=this.Wc=q;this.FP={};this.LQ=new Map;this.gr=this.Kk=this.j=q;this.Gf=B;this.iK=this.iK.bind(this);this.update()}function d(a,b){if(a==b||(a==q||a.length==0)&&(b==q||b.length==0))return m;if(a==q||b==q||a.length!=b.length)return B;for(var c=0;c<a.length;c++)if(a[c]!=b[c])return B;return m}var c=a("jU"),g=a("gE"),f=a("fm"),i=a("be"),e=a("bZ"),j=a("nK"),o=a("cf");b.prototype.update=function(){var a=this.k.getComponent(f.Dv);
this.rl(a&&a.Fb)};b.prototype.frame=function(a,b){this.lG();if(this.Gf){this.Gf=B;this.Kk&&this.Kk.frame(a,b);this.gr&&this.gr.frame(a,b)}};b.prototype.dispose=function(){this.rl(q)};b.prototype.rl=function(a){if(this.j!=a){if(this.j){c.na(this.j,["animations.autoplay"],this.iK);this.GIa()}(this.j=a)&&c.KV(this.j,["animations.autoplay"],this.iK);this.iK()}};b.prototype.iK=function(){this.Zoa()};b.prototype.lG=function(){if(!this.Wc){var a=o.ec(this.k),b=o.yN(this.k);if(this.Wc!=a||this.Xj!=b){this.Wc=
a;this.Xj=b;this.FP={};this.Xj.forEach(function(a){a.name&&(this.FP[a.name]=a)}.bind(this));this.Zoa()}}};b.prototype.Zoa=function(){var a=this.j&&this.j.get("animations")||[],b=this.Xj||[],c=b.slice(),f=[],g=[],o=[],u=[];a.length&&b.length&&a.forEach(function(a){var e=a.get("index"),d=a.get("name"),i;e!==l&&e<b.length?i=b[e]:d!==l&&d in this.FP&&(i=this.FP[d]);if(c.indexOf(i)>=0){c.splice(c.indexOf(i),1);if(a.get("autoplay")){f.push(i);g.push(a)}else{o.push(i);u.push(a)}}}.bind(this));if(this.j&&
g.length==0&&c.length>0){g=c.map(function(a){if(this.LQ.has(a))return this.LQ.get(a);var b=new i;this.LQ.set(a,b);return b}.bind(this));f=c}if(!d(this.Kk&&this.Kk.Mf||[],g)||!d(this.Kk&&this.Kk.yN()||[],f)){if(this.Kk){this.Kk.dispose();this.Kk=q}if(g.length>0)this.Kk=new e(this.j,this.Wc,g,f,this.wa.bind(this))}if(!d(this.gr&&this.gr.Mf||[],u)||!d(this.gr&&this.gr.yN()||[],o)){if(this.gr){this.gr.dispose();this.gr=q}if(u.length>0)this.gr=new j(this.j,this.Wc,u,o,this.wa.bind(this))}};b.prototype.GIa=
function(){(this.j&&this.j.get("animations")||[]).forEach(function(a){a.set("state",g.L);a.set("currentTime",0)});this.LQ.clear()};b.prototype.wa=function(){if(!this.Gf){this.Gf=m;this.k.R.pb()}};b.xc=function(a){a.C(f.Bs).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(f.Bs);b.manager.dispose();b.manager=q;a.ga(f.Bs)};b.update=function(a){a.getComponent(f.Bs).manager.update()};b.frame=function(a,b,c){a.getComponent(f.Bs).manager.frame(b,c)};return b});
define("mr",["require","kG","kR","fm","da"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("da"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(a,b){this.iqa.entities.length&&this.iqa.entities.slice().forEach(g.xc);this.animations.Ra.length&&this.animations.Ra.slice().forEach(function(c){g.update(c,a,b)});this.animations.entities.length&&this.animations.entities.slice().forEach(function(c){g.frame(c,a,b)});this.jqa.entities.length&&this.jqa.entities.slice().forEach(g.Kb)};
a.A={};a.A.iqa=[c.Dv,c.Bs.not];a.A.jqa=[c.Dv.not,c.Bs];a.A.animations=[c.Dv,c.Bs];return a});
define("eO",["require"],function(){function a(a,g,i){var i=i||2,o=g&&g.length,k=o?g[0]*i:a.length,n=b(a,0,k,i,m),s=[];if(!n||n.next===n.prev)return s;var t,u,v,K;if(o){K=n;var A=i,n=[],N,J,C,o=0;for(N=g.length;o<N;o++){J=g[o]*A;C=o<N-1?g[o+1]*A:a.length;J=b(a,J,C,A,B);J===J.next&&(J.Bva=m);var F=C=J;do{if(C.x<F.x||C.x===F.x&&C.y<F.y)F=C;C=C.next}while(C!==J);n.push(F)}n.sort(f);for(o=0;o<n.length;o++){g=n[o];b:{A=K;N=g.x;J=g.y;C=-Infinity;F=l;do{if(J<=A.y&&J>=A.next.y&&A.next.y!==A.y){var O=A.x+(J-
A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(O<=N&&O>C&&(C=O,F=A.x<A.next.x?A:A.next,O===N)){A=F;break b}}A=A.next}while(A!==K);if(F){var O=F,U=F.x,Q=F.y,V=Infinity,P=l,A=F;do{if(N>=A.x&&A.x>=U&&N!==A.x&&e(J<Q?N:C,J,U,Q,J<Q?C:N,J,A.x,A.y))if(P=Math.abs(J-A.y)/(N-A.x),r(A,g)&&(P<V||P===V&&(A.x>F.x||A.x===F.x&&0>j(F.prev,F,A.prev)&&0>j(A.next,F,F.next))))F=A,V=P;A=A.next}while(A!==O);A=F}else A=q}A&&(K=p(A,g),d(K,K.next),K=d(A,A.next))}n=K}if(a.length>80*i){t=v=a[0];u=o=a[1];for(A=i;A<k;A+=i)K=a[A],g=a[A+
1],K<t&&(t=K),g<u&&(u=g),K>v&&(v=K),g>o&&(o=g);v=Math.max(v-t,o-u);v=0!==v?32767/v:0}c(n,s,i,t,u,v,0);return s}function b(a,b,c,e,d){var f;if(d===0<v(a,b,c,e))for(d=b;d<c;d+=e)f=t(d,a[d],a[d+1],f);else for(d=c-e;d>=b;d-=e)f=t(d,a[d],a[d+1],f);f&&o(f,f.next)&&(s(f),f=f.next);return f}function d(a,b){if(!a)return a;b||(b=a);var c=a,e;do if(e=B,!c.Bva&&(o(c,c.next)||0===j(c.prev,c,c.next))){s(c);c=b=c.prev;if(c===c.next)break;e=m}else c=c.next;while(e||c!==b);return b}function c(a,b,f,n,t,u,v){if(a){if(!v&&
u){var G=a,z=G;do 0===z.z&&(z.z=i(z.x,z.y,n,t,u)),z.jq=z.prev,z=z.Jl=z.next;while(z!==G);z.jq.Jl=q;z.jq=q;var G=z,L,K,A,N,J,C,F=1;do{z=G;A=G=q;for(N=0;z;){N++;K=z;for(L=J=0;L<F&&!(J++,K=K.Jl,!K);L++);for(C=F;0<J||0<C&&K;)0!==J&&(0===C||!K||z.z<=K.z)?(L=z,z=z.Jl,J--):(L=K,K=K.Jl,C--),A?A.Jl=L:G=L,L.jq=A,A=L;z=K}A.Jl=q;F*=2}while(1<N)}for(G=a;a.prev!==a.next;){z=a.prev;K=a.next;if(u)A=g(a,n,t,u);else a:{A=a.prev;var O=a.next;if(0<=j(A,a,O))A=B;else{N=A.x;J=a.x;F=O.x;L=A.y;C=a.y;for(var U=O.y,Q=N<J?
N<F?N:F:J<F?J:F,V=L<C?L<U?L:U:C<U?C:U,P=N>J?N>F?N:F:J>F?J:F,W=L>C?L>U?L:U:C>U?C:U,O=O.next;O!==A;){if(O.x>=Q&&O.x<=P&&O.y>=V&&O.y<=W&&e(N,L,J,C,F,U,O.x,O.y)&&0<=j(O.prev,O,O.next)){A=B;break a}O=O.next}A=m}}if(A)b.push(z.pg/f|0),b.push(a.pg/f|0),b.push(K.pg/f|0),s(a),G=a=K.next;else if(a=K,a===G){if(v)if(1===v){a=d(a);v=b;G=f;z=a;do K=z.prev,A=z.next.next,!o(K,A)&&k(K,z,z.next,A)&&r(K,A)&&r(A,K)&&(v.push(K.pg/G|0),v.push(z.pg/G|0),v.push(A.pg/G|0),s(z),s(z.next),z=a=A),z=z.next;while(z!==a);a=d(z);
c(a,b,f,n,t,u,2)}else{if(2===v)a:{v=a;do{for(G=v.next.next;G!==v.prev;){if(z=v.pg!==G.pg){z=v;K=G;A=l;if(A=z.next.pg!==K.pg)if(A=l,A=z.prev.pg!==K.pg){A=A=l;b:{A=z;do{if(A.pg!==z.pg&&A.next.pg!==z.pg&&A.pg!==K.pg&&A.next.pg!==K.pg&&k(A,A.next,z,K)){A=m;break b}A=A.next}while(A!==z);A=B}if(A=!A){A=l;if(A=r(z,K))if(A=l,A=r(K,z)){A=z;N=B;J=(z.x+K.x)/2;F=(z.y+K.y)/2;do A.y>F!==A.next.y>F&&A.next.y!==A.y&&J<(A.next.x-A.x)*(F-A.y)/(A.next.y-A.y)+A.x&&(N=!N),A=A.next;while(A!==z);A=N&&(j(z.prev,z,K.prev)||
j(z,K.prev,K))}A=A||o(z,K)&&0<j(z.prev,z,z.next)&&0<j(K.prev,K,K.next)}}z=A}if(z){a=p(v,G);v=d(v,v.next);a=d(a,a.next);c(v,b,f,n,t,u,0);c(a,b,f,n,t,u,0);break a}G=G.next}v=v.next}while(v!==a)}}else c(d(a),b,f,n,t,u,1);break}}}}function g(a,b,c,d){var f=a.prev,g=a.next;if(0<=j(f,a,g))return B;for(var o=f.x,k=a.x,n=g.x,r=f.y,p=a.y,s=g.y,t=o<k?o<n?o:n:k<n?k:n,u=r<p?r<s?r:s:p<s?p:s,v=o>k?o>n?o:n:k>n?k:n,F=r>p?r>s?r:s:p>s?p:s,O=i(t,u,b,c,d),b=i(v,F,b,c,d),c=a.jq,a=a.Jl;c&&c.z>=O&&a&&a.z<=b;){if(c.x>=t&&
c.x<=v&&c.y>=u&&c.y<=F&&c!==f&&c!==g&&e(o,r,k,p,n,s,c.x,c.y)&&0<=j(c.prev,c,c.next))return B;c=c.jq;if(a.x>=t&&a.x<=v&&a.y>=u&&a.y<=F&&a!==f&&a!==g&&e(o,r,k,p,n,s,a.x,a.y)&&0<=j(a.prev,a,a.next))return B;a=a.Jl}for(;c&&c.z>=O;){if(c.x>=t&&c.x<=v&&c.y>=u&&c.y<=F&&c!==f&&c!==g&&e(o,r,k,p,n,s,c.x,c.y)&&0<=j(c.prev,c,c.next))return B;c=c.jq}for(;a&&a.z<=b;){if(a.x>=t&&a.x<=v&&a.y>=u&&a.y<=F&&a!==f&&a!==g&&e(o,r,k,p,n,s,a.x,a.y)&&0<=j(a.prev,a,a.next))return B;a=a.Jl}return m}function f(a,b){return a.x-
b.x}function i(a,b,c,e,d){a=(a-c)*d|0;b=(b-e)*d|0;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 e(a,b,c,e,d,f,g,i){return(d-g)*(b-i)>=(a-g)*(f-i)&&(a-g)*(e-i)>=(c-g)*(b-i)&&(c-g)*(f-i)>=(d-g)*(e-i)}function j(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function o(a,b){return a.x===b.x&&a.y===b.y}function k(a,b,c,e){var d=0<j(a,b,c)?1:0>j(a,b,c)?-1:0,f=
0<j(a,b,e)?1:0>j(a,b,e)?-1:0,g=0<j(c,e,a)?1:0>j(c,e,a)?-1:0,i=0<j(c,e,b)?1:0>j(c,e,b)?-1:0;return d!==f&&g!==i||0===d&&n(a,c,b)||0===f&&n(a,e,b)||0===g&&n(c,a,e)||0===i&&n(c,b,e)?m:B}function n(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 r(a,b){return 0>j(a.prev,a,a.next)?0<=j(a,b,a.next)&&0<=j(a,a.prev,b):0>j(a,b,a.prev)||0>j(a,a.next,b)}function p(a,b){var c=new u(a.pg,a.x,a.y),e=new u(b.pg,b.x,b.y),d=a.next,f=b.prev;a.next=
b;b.prev=a;c.next=d;d.prev=c;e.next=c;c.prev=e;f.next=e;e.prev=f;return e}function t(a,b,c,e){a=new u(a,b,c);e?(a.next=e.next,a.prev=e,e.next.prev=a,e.next=a):(a.prev=a,a.next=a);return a}function s(a){a.next.prev=a.prev;a.prev.next=a.next;a.jq&&(a.jq.Jl=a.Jl);a.Jl&&(a.Jl.jq=a.jq)}function u(a,b,c){this.pg=a;this.x=b;this.y=c;this.next=this.prev=q;this.z=0;this.Jl=this.jq=q;this.Bva=B}function v(a,b,c,e){for(var d=0,f=c-e;b<c;b+=e)d+=(a[f]-a[b])*(a[b+1]+a[f+1]),f=b;return d}a.qVa=function(a,b,c,e){var d=
b&&b.length,f=Math.abs(v(a,0,d?b[0]*c:a.length,c));if(d)for(var d=0,g=b.length;d<g;d++)f-=Math.abs(v(a,b[d]*c,d<g-1?b[d+1]*c:a.length,c));for(d=b=0;d<e.length;d+=3)var g=e[d]*c,i=e[d+1]*c,o=e[d+2]*c,b=b+Math.abs((a[g]-a[o])*(a[i+1]-a[g+1])-(a[g]-a[i])*(a[o+1]-a[g+1]));return 0===f&&0===b?0:Math.abs((b-f)/f)};return a});
define("m","require,kG,nU,eO,kR,fm,cf".split(","),function(a){function b(a){for(var b=[],c=0;c<a;c++)b.push(0);return b}var d=a("kG"),c=a("nU"),g=a("eO"),f=a("kR"),i=a("fm"),e=a("cf"),a=d.extend(f,function(){f.apply(this,arguments);this.Xe=this.Xe.bind(this);this.wf=this.wf.bind(this);this.nd=this.nd.bind(this);this.QX=this.QX.bind(this)});a.prototype.execute=function(){this.lqa.entities.length&&this.lqa.entities.slice().forEach(this.Xe);this.kqa.Ra.length&&this.QTa(this.kqa.Ra.slice());this.areas.Ra.length&&
this.areas.Ra.slice().forEach(this.wf);this.mqa.entities.length&&this.mqa.entities.slice().forEach(this.nd);this.nqa.entities.length&&this.nqa.entities.slice().forEach(this.nd)};a.prototype.Xe=function(a){a.C(i.Ev);this.wf(a)};a.prototype.wf=function(a){this.STa(a);this.ewa(a)};a.prototype.QTa=function(a){var b=[];a.forEach(function(a){a.getComponent(i.Ly).PV.forEach(function(a){b.indexOf(a)===-1&&b.push(a)})});b.forEach(this.QX)};a.prototype.STa=function(a){this.UTa(a);this.QX(a)};a.prototype.UTa=
function(a){var b=a.getComponent(i.Ql),c=b&&b.entities||[],e=(b=a.getComponent(i.Ev))&&b.entities||[];e.forEach(function(a){if(c.indexOf(a)===-1){var b=a.getComponent(i.Ly).PV.filter(function(a){return a!==a});b.length==0?a.ga(i.Ly):a.G(i.Ly).PV=b}});c.forEach(function(b){e.indexOf(b)===-1&&b.G(i.Ly,m).PV.push(a)})};var j=new THREE.Matrix4,o=[];a.prototype.QX=function(a){for(var b=a.getComponent(i.Ql),b=b&&b.entities||[];o.length<b.length;)o.push(new THREE.Vector3);var c=b.map(function(a,b){return a.getComponent(i.Object3D).Yc.getWorldPosition(o[b])}),
c=c.filter(function(a,b){return a.distanceTo(c[(b+1)%c.length])>1.0E-4}),b=this.vPa(c);if(b.length===0){this.gga(a);this.Doa(a,l)}else{this.DJa(a,b.length*3);this.VTa(a,o,b);j.copy(a.getComponent(i.Object3D).Yc.matrixWorld).invert();o.forEach(function(a){a.applyMatrix4(j)});for(var a=a.getComponent(i.Geometry),e=a.geometry.attributes.position.array,d=0,f=0;d<b.length;){var g=o[b[d++]];e[f++]=g.x;e[f++]=g.y;e[f++]=g.z;g=o[b[d++]];e[f++]=g.x;e[f++]=g.y;e[f++]=g.z;g=o[b[d++]];e[f++]=g.x;e[f++]=g.y;e[f++]=
g.z}a.geometry.attributes.position.needsUpdate=m}};var k=new THREE.Plane,n=new THREE.Vector3,r=new THREE.Vector3,p=new THREE.Vector3,t=new THREE.Line3,s=new THREE.Vector3,u=new THREE.Vector3,v=new THREE.Vector3,w=new THREE.Vector3,x=new THREE.Vector3,y=5*Math.PI/180;a.prototype.vPa=function(a){if(a.length<3)return[];var b,c,e;b=a[0];for(var d=Number.NEGATIVE_INFINITY,f=1;f<a.length;++f){var i=b.distanceToSquared(a[f]);if(!(i<=d)){d=i;c=a[f]}}if(d<=0)return[];t.set(b,c);d=Number.NEGATIVE_INFINITY;
for(f=0;f<a.length;++f){i=t.closestPointToPoint(a[f],m,s).distanceToSquared(a[f]);if(!(i<=d)){d=i;e=a[f]}}if(d<=0)return[];k.setFromCoplanarPoints(b,c,e);for(f=0;f<a.length;++f){d=a[f];if(!(d===b||d===c||d===e)){u.copy(b).sub(d).normalize();v.copy(c).sub(d).normalize();w.copy(e).sub(d).normalize();var d=u.dot(v),i=u.dot(w),o=v.dot(w);d<i&&d<o?x.copy(u).cross(v):i<o?x.copy(u).cross(w):x.copy(v).cross(w);x.normalize();d=Math.abs(Math.acos(x.dot(k.normal)));d>Math.PI*0.5&&(d=Math.PI-d);if(d>y)return[]}}r.copy(a[1]).sub(a[0]).normalize();
p.copy(k.normal).cross(r).normalize();b=[];for(f=0;f<a.length;++f){k.projectPoint(a[f],n);b.push(n.dot(r),n.dot(p))}return g(b,q,2)};var D=new THREE.Vector3,E=new THREE.Vector3,H=new THREE.Vector3,M=new THREE.Vector3,G=new THREE.Vector3,z=new THREE.Vector3,L=new THREE.Vector3;a.prototype.VTa=function(a,b,c){var d=0;D.set(0,0,0);for(var f=0;f<c.length;){H.copy(b[c[f++]]);M.copy(b[c[f++]]);G.copy(b[c[f++]]);E.copy(H).add(M).add(G).divideScalar(3);var g=L.subVectors(G,H).cross(z.subVectors(M,H)).length()*
0.5;E.multiplyScalar(g);D.add(E);d=d+g}D.divideScalar(d);b=a.G(i.va,m);b.Ue=D.x;b.ve=D.y;b.cg=D.z;e.wX(a,b);this.Doa(a,d)};a.prototype.Doa=function(a,b){var e=a.G(i.Ql);(e=e&&e.La)&&e.trigger(c.qa,{area:b})};a.prototype.ewa=function(a){var b=a.getComponent(i.Object3D);if(b=b&&b.Yc){var c=a.getComponent(i.Material).material;if(c&&b.material!=c){b.material=c;b.needsUpdate=m}b.renderOrder=a.getComponent(i.Ql).renderOrder}};a.prototype.gga=function(a){var b=a.getComponent(i.Geometry);if(b){b.geometry&&
b.geometry.dispose();a.ga(i.Geometry);a.getComponent(i.Object3D).Yc.geometry=q}if(b=a.getComponent(i.Object3D)){b.Yc&&b.Yc.parent&&b.Yc.parent.remove(b.Yc);a.ga(i.Object3D)}};a.prototype.DJa=function(a,b){var c=a.getComponent(i.Geometry);if(!c||!c.geometry||c.geometry.attributes.position.array.length!==b*3){c=a.G(i.Geometry,m);c.geometry&&c.geometry.dispose();c.geometry=this.YAa(b);var e=a.getComponent(i.Object3D);if(!e){e=a.C(i.Object3D);e.Yc=new THREE.Mesh;this.ewa(a)}e.Yc.geometry=c.geometry}};
a.prototype.YAa=function(a){var c=new THREE.BufferGeometry;c.setAttribute("position",new THREE.Float32BufferAttribute(b(a*3),3));return c};a.prototype.nd=function(a){this.gga(a);a.ga(i.Ev);a.ga(i.Object3D)};a.A={};a.A.lqa=[i.Material,i.Ql,i.Ev.not];a.A.kqa=[i.Object3D,i.va,i.Ly];a.A.areas=[i.Ql,i.Material,i.Ev];a.A.mqa=[i.Ql.not,i.Ev];a.A.nqa=[i.Material.not,i.Ev];return a});
define("ml","require,kG,nU,kR,fm,cf".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("kR"),g=a("fm"),f=a("cf"),a=b.extend(c,function(){c.apply(this,arguments);this.Taa=this.Taa.bind(this);this.KX=this.KX.bind(this);this.Saa=this.Saa.bind(this);this.JX=this.JX.bind(this);this.RV=new Map;this.Jta=new Map;this.QV=new Map;this.Kta=new Map});a.prototype.execute=function(){this.rqa.entities.length&&this.rqa.entities.slice().forEach(this.Taa);this.sqa.entities.length&&this.sqa.entities.slice().forEach(this.KX);
this.tqa.entities.length&&this.tqa.entities.slice().forEach(this.KX);this.uqa.entities.length&&this.uqa.entities.slice().forEach(this.Saa);this.vqa.entities.length&&this.vqa.entities.slice().forEach(this.JX);this.wqa.entities.length&&this.wqa.entities.slice().forEach(this.JX);this.frame()};a.A={};a.A.rqa=[g.Object3D,g.oq,g.Es.not];a.A.KNa=[g.Object3D,g.oq,g.Es];a.A.sqa=[g.Object3D.not,g.Es];a.A.tqa=[g.oq.not,g.Es];a.A.uqa=[g.Object3D,g.Py,g.Gv.not];a.A.vqa=[g.Object3D.not,g.Gv];a.A.wqa=[g.Py.not,
g.Gv];a.prototype.frame=function(){this.KNa.entities.length!=0&&this.QV.forEach(function(a,b){var c=this.RV.get(b)||[];c.forEach(function(a){var b=a.getComponent(g.Object3D).Yc;a.getComponent(g.Gv).position.set(0,0,0).applyMatrix4(b.matrixWorld)});a.forEach(function(a){var b=a.getComponent(g.Object3D).Yc;a.getComponent(g.Es).position.set(0,0,0).applyMatrix4(b.matrixWorld)});a.forEach(function(a){var b=a.getComponent(g.Es).position,a=a.getComponent(g.oq).La,e=c.map(function(a){return{entity:a,distance:b.distanceTo(a.getComponent(g.Gv).position)}});
e.sort(function(a,b){return a.distance-b.distance});a.trigger(d.qa,{beacons:e})})}.bind(this))};a.prototype.Taa=function(a){a.C(g.Es).position=new THREE.Vector3;var b=f.ec(a);this.Kta.set(a,b);(b=this.QV.get(a.R))||this.QV.set(a.R,b=[]);b.indexOf(a)<0&&b.push(a)};a.prototype.KX=function(a){var b=this.QV.get(a.R),c=b.indexOf(a);c>=0&&b.splice(c,1);this.Kta["delete"](a);a.ga(g.Es)};a.prototype.Saa=function(a){a.C(g.Gv).position=new THREE.Vector3;var b=f.ec(a);this.Jta.set(a,b);(b=this.RV.get(a.R))||
this.RV.set(a.R,b=[]);b.indexOf(a)<0&&b.push(a)};a.prototype.JX=function(a){var b=this.RV.get(a.R),c=b.indexOf(a);c>=0&&b.splice(c,1);this.Jta["delete"](a);a.ga(g.Gv)};return a});
define("hw","require,kG,kR,fm,kj,cf".split(","),function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("kj"),f=a("cf"),a=b.extend(d,function(){d.apply(this,arguments);this.Uaa=this.Uaa.bind(this);this.Vaa=this.Vaa.bind(this);this.RX=this.RX.bind(this);this.SX=this.SX.bind(this);this.dba=this.dba.bind(this);this.eba=this.eba.bind(this)});a.prototype.execute=function(){this.Sta.entities.length&&this.Sta.entities.slice().forEach(this.Uaa);this.Vta.entities.length&&this.Vta.entities.slice().forEach(this.Vaa);
this.xC.Ra.length&&this.xC.Ra.slice().forEach(this.RX);this.ps.Ra.length&&this.ps.Ra.slice().forEach(this.SX);this.Tta.entities.length&&this.Tta.entities.slice().forEach(this.dba);this.Wta.entities.length&&this.Wta.entities.slice().forEach(this.eba)};a.prototype.Uaa=function(a){var b=a.G(c.OrthographicCamera),e=a.C(c.Tv);a.C(c.Object3D).Yc=e.camera=b.camera=new THREE.OrthographicCamera;this.RX(a)};a.prototype.Vaa=function(a){var b=a.G(c.PerspectiveCamera),e=a.C(c.zq);a.C(c.Object3D).Yc=e.camera=b.camera=
new THREE.PerspectiveCamera;this.SX(a)};a.prototype.RX=function(a){var b=a.getComponent(c.OrthographicCamera),a=a.getComponent(c.Tv);a.width=b.width;a.height=b.height;a=a.camera;a.left=b.width*-0.5;a.right=b.width*0.5;a.top=b.height*0.5;a.bottom=b.height*-0.5;a.updateProjectionMatrix()};a.prototype.SX=function(a){var b=a.getComponent(c.PerspectiveCamera),a=a.getComponent(c.zq);a.width=b.width;a.height=b.height;a.fov=b.fov;a.near=b.near;a.far=b.far;a=a.camera;a.aspect=b.width/b.height;a.fov=b.width>
b.height?g.Dl(b.fov,b.width,b.height):b.fov;a.near=b.near;a.far=b.far;f.nba(a);a.updateProjectionMatrix()};a.prototype.dba=function(a){var b=a.getComponent(c.Tv);b.camera.parent&&b.camera.parent.remove(b.camera);b.camera=q;a.ga(c.Tv);a.ga(c.Object3D)};a.prototype.eba=function(a){var b=a.getComponent(c.zq);b.camera.parent&&b.camera.parent.remove(b.camera);b.camera=q;a.ga(c.zq);a.ga(c.Object3D)};a.A={};a.A.Sta=[c.OrthographicCamera,c.Tv.not];a.A.Tta=[c.OrthographicCamera.not,c.Tv];a.A.Vta=[c.PerspectiveCamera,
c.zq.not];a.A.Wta=[c.PerspectiveCamera.not,c.zq];a.A.xC=[c.OrthographicCamera,c.Tv];a.A.ps=[c.PerspectiveCamera,c.zq];a.TC=b.extend(d,function(){d.apply(this,arguments);this.S$=this.S$.bind(this)});a.TC.prototype.execute=function(){this.ps.entities.length&&this.ps.entities.slice().forEach(this.S$)};a.TC.prototype.S$=function(a){var b=a.getComponent(c.PerspectiveCamera);if(b.oqa){var d=a.getComponent(c.zq),g=d.scene||f.io(a),o=d.camera;if(g&&o){var j=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;
if(d.boundingBox)d.R$=m;else{d.boundingBox=this.e0(g);d.R$=B}for(var g=d.boundingBox,g=[[g.min.x,g.max.x],[g.min.y,g.max.y],[g.min.z,g.max.z]],w=0;w<2;w++)for(var x=0;x<2;x++)for(var y=0;y<2;y++){k.set(g[0][w],g[1][x],g[2][y]).applyMatrix4(o.matrixWorldInverse);-k.z>v&&(v=-k.z);-k.z<j&&(j=-k.z)}g=Math.max(b.pqa||0,0);w=(j+v)*0.5;j=j+(j-w)*g;v=v+(v-w)*g;v=v==Infinity||isNaN(v)?2E3:v;j=j>0?j:v>20?0.1:0.01;if(Math.abs(b.near-j)>e||Math.abs(b.far-v)>e){o.far=d.far=b.far=v;o.near=d.near=b.near=j;f.nba(o);
f.bwa(o);o.updateProjectionMatrix()}if(!d.q9)d.q9=setTimeout(function(){d.boundingBox=q;d.q9=q;d.R$&&a.R&&a.R.pb()},i)}}};a.TC.prototype.e0=function(a){j.makeEmpty();a.traverse(function(a){if(a.geometry&&!a.isSprite){a.updateWorldMatrix(B,B);var b=a.geometry;b.boundingBox===q&&b.computeBoundingBox();o.copy(b.boundingBox);o.applyMatrix4(a.matrixWorld);j.union(o)}});return j};var i=500,e=1.0E-4,j=new THREE.Box3,o=new THREE.Box3,k=new THREE.Vector3;a.TC.A={};a.TC.A.ps=[c.PerspectiveCamera,c.zq];return a});
define("bm",["require"],function(){return{Gq:38,pq:40,Xa:39,Ja:37,As:65,FZ:90,vD:87,qD:83,XC:68,pD:81,E:69,Ewa:27}});
define("ku",["require"],function(){return{OUa:I(),PUa:I(),JR:function(){return this.ff&&this.ff.Ssa()||this.j&&!this.j.get("keyboardEnabled")?m:B},Ww:function(){return this.ff&&this.ff.Ssa()||this.j&&!this.j.get("mouseEnabled")?m:B},dka:function(){!this.$k&&!this.It&&this.Kpa()},cka:function(){!this.$k&&!this.It&&this.Jpa()},RS:function(){this.ria()||this.Kpa()},QS:function(){this.ria()||this.Jpa()},Kpa:function(){this.ff&&this.ff.Hy();this.j&&this.j.set("userInteracting",m)},Jpa:function(){this.ff&&
this.ff.pba();this.j&&this.j.set("userInteracting",B)}}});
define("nk",["require"],function(){function a(a){this.j=a;this.$w=m}function b(a,b,d){if(b!==l)if(180<a)a=180;else{for(;-180>=a;)a+=360;a<b&&(a=b)}if(d!==l)if(-180>a)a=-180;else{for(;180<a;)a-=360;a>d&&(a=d)}return a}function d(a,b,d){isNaN(a)&&h("invalid value");b!==l&&a<b&&(a=b);d!==l&&a>d&&(a=d);return a}a.prototype.sSa=function(){this.$w=B};a.prototype.xaa=function(a){this.j.set("fov",this.$w?d(a,this.j.get("minFov",0.1),this.j.get("maxFov",180)):a)};a.prototype.Ml=function(a){this.j.set("yaw",
this.$w?b(a,this.j.get("minYaw"),this.j.get("maxYaw")):a)};a.prototype.us=function(a){this.j.set("pitch",this.$w?d(a,this.j.get("minPitch",-90),this.j.get("maxPitch",90)):a)};a.prototype.setX=function(a){this.j.set("x",this.$w?d(a,this.j.get("minX"),this.j.get("maxX")):a)};a.prototype.setY=function(a){this.j.set("y",this.$w?d(a,this.j.get("minY"),this.j.get("maxY")):a)};a.prototype.setZ=function(a){this.j.set("z",this.$w?d(a,this.j.get("minZ"),this.j.get("maxZ")):a)};a.prototype.FC=function(a){this.j.set("distance",
this.$w?d(a,this.j.get("minDistance"),this.j.get("maxDistance")):a)};a.prototype.ti=function(a){this.j.set("easing",a)};return a});
define("dG","require,nU,gE,eQ,fm,nk,nx,bC".split(","),function(a){function b(a,b,e){this.k=a;this.j=b;this.Ia=e;this.sa=new i(this.j);this.sa.sSa();this.qB=0;this.hk=this.xm=l;this.Gm=B;this.sU(0);this.C1=this.UQ=this.B1=this.TQ=this.o=l;this.mc(c.L);this.Ia.bind(d.u("state"),this.cf,this,m);this.Ia.bind(d.u("movementIndex"),this.ZA,this,m)}var d=a("nU"),c=a("gE"),g=a("eQ"),f=a("fm"),i=a("nk"),e=a("nx"),j=a("bC");b.prototype.Hy=function(){if(!this.Ia.get("mandatory")){this.lQ();if(this.Ia.get("restartMovementOnUserInteraction")){if(this.o==
c.S){this.fM();this.mc(c.Gb,m)}}else this.o==c.S&&this.mc(c.L)}};b.prototype.pba=function(){this.o==c.Gb&&this.Gm&&this.Ia.get("restartMovementOnUserInteraction")&&this.h7()};b.prototype.frame=function(a){if(this.o==c.S){this.O.xb(a);this.pMa();this.sa.setX(this.O.gb("x"));this.sa.setY(this.O.gb("y"));this.sa.setZ(this.O.gb("z"));this.sa.Ml(this.O.gb("yaw"));this.sa.us(this.O.gb("pitch"));this.sa.FC(this.O.gb("distance"));this.sa.xaa(this.O.gb("fov"));this.sa.ti(0);a=this.Ia.get("movements")[this.xm];
a.set("position",this.O.Bk());a.trigger(d.hz);if(this.O.Te()){a.trigger(d.Ga);this.sU((this.xm+1)%this.Ia.get("movements").length,m);if(this.xm==0){this.qB++;this.Ia.trigger(d.Ik);if(this.qB==this.Ia.get("repeat")){this.qma();this.mc(c.L);this.Ia.trigger(d.Ga)}}}}};b.prototype.pMa=function(){var a=this.TQ!==l&&this.B1!==l,b=this.UQ!==l&&this.C1!==l;if(a||b){var c=this.k.getComponent(f.Hb).Qb;if(c){var d=this.O.getTime(),e=this.O.Ti(),c=c.G(f.TO,m),a=a&&d<this.TQ?1-d/this.TQ:0,b=b&&e-d<this.UQ?1-(e-
d)/this.UQ:0;if(b>0||a>0)if(b>a){c.color=this.C1;c.opacity=b}else{c.color=this.B1;c.opacity=a}else{c.color="#000000";c.opacity=0}}}};b.prototype.qma=function(){var a=this.k.getComponent(f.Hb);(a=a&&a.Qb)&&a.ga(f.TO)};b.prototype.dispose=function(){this.lQ();this.Ia.unbind(d.u("state"),this.cf,this,m);this.Ia.unbind(d.u("movementIndex"),this.ZA,this,m);this.mc(c.L)};b.prototype.cf=function(){var a=this.Ia.get("state");this.o!=a&&(a==c.Gb&&this.o==c.L?this.Ia.set("state",c.L):this.mc(a))};b.prototype.mc=
function(a,b){if(this.o!=a){this.o=a;if(this.o==c.S){this.lQ();this.Gm=B;this.tw();this.jQ()}else if(this.o==c.Gb){this.Gm=!!b;this.fM()}else if(this.o==c.L){this.Gm=B;this.lQ();this.qB=0;var d=this.O.getTime(),e=this.O.Ti();d>0&&d<e&&this.qma();this.sU(0)}}this.Ia.set("state",this.o)};b.prototype.ZA=function(){this.sU(this.Ia.get("movementIndex"))};b.prototype.sU=function(a,b){if(this.xm!==a||b){this.xm=a;this.tw();this.Ia.set("movementIndex",this.xm);this.Ia.get("movements")[this.xm].set("position",
0)}};b.prototype.h7=function(){this.$T=setTimeout(function(){this.$T=q;this.mc(c.S)}.bind(this),this.Ia.get("restartMovementDelay"))};b.prototype.lQ=function(){if(this.$T){clearTimeout(this.$T);this.$T=q}};b.prototype.tw=function(a){var a=this.Ia.get("movements")[this.xm],b=this.j.get("x",this.j.get("initialX",0)),c=this.j.get("y",this.j.get("initialY",0)),d=this.j.get("z",this.j.get("initialZ",0)),f=this.lk(this.j.get("yaw",this.j.get("initialYaw",0)),-180,180),i=this.j.get("pitch",this.j.get("initialPitch",
0)),s=this.j.get("distance",0),u=this.j.get("fov",this.j.get("initialFov")),v,w,x,y,D,E,H;if(g.xa("TargetModel3DCameraMovement",a)){v=a.get("targetX",b);w=a.get("targetY",c);x=a.get("targetZ",d);y=a.get("targetYaw",f);D=a.get("targetPitch",i);H=a.get("targetFov",u);E=a.get("targetDistance",s);switch(this.z1(a)){case "left":y=this.lk(y,f-360,f);break;case "right":y=this.lk(y,f,f+360);break;case "longest":y=this.lk(y,f-180,f+180);y=y==f?f+360:y>=f?this.lk(y,f-360,f):this.lk(y,f,f+360);break;default:y=
this.lk(y,f-180,f+180)}}else if(g.xa("DistanceModel3DCameraMovement",a)){v=b+a.get("xDelta",0);w=c+a.get("yDelta",0);x=d+a.get("zDelta",0);y=f+a.get("yawDelta",0);D=i+a.get("pitchDelta",0);H=u+a.get("fovDelta",0);E=s+a.get("distanceDelta",0)}this.O=new e(a.get("easing"),[new j("x",b,v,a.get("xSpeed")),new j("y",c,w,a.get("ySpeed")),new j("z",d,x,a.get("zSpeed")),new j("yaw",f,y,a.get("yawSpeed")),new j("pitch",i,D,a.get("pitchSpeed")),new j("fov",u,H,a.get("fovSpeed")),new j("distance",s,E,a.get("distanceSpeed"))],
a.get("duration"));this.TQ=a.get("fadeFromDuration");this.B1=a.get("fadeFromColor");this.UQ=a.get("fadeToDuration");this.C1=a.get("fadeToColor")};b.prototype.jQ=function(){this.hk=l};b.prototype.fM=function(){if(this.O){this.hk=l;var a=this.O&&this.O.S9("yaw");if(a)if(a.Gy>a.from)this.hk="right";else if(a.Gy<a.from)this.hk="left"}};b.prototype.z1=function(a){a=a.get("yawPath");if(a=="longest"&&this.hk)a=this.hk;this.hk=l;return a};b.prototype.lk=function(a,b,c){for(;a<b;)a=a+(c-b);for(;a>c;)a=a-(c-
b);return a};return b});
define("np","require,jU,nU,gE,dG,cf".split(","),function(a){function b(a,b){this.k=a;this.j=b;this.ux=this.ux.bind(this);this.cf=this.cf.bind(this);this.Ah=this.jj=q;this.zr=[];this.dg=q;this.Cj=B;this.rt=new Map;d.pa(this.j,["initialSequence","idleSequence","sequences.movements"],this.ux,m);d.pa(this.j,["state"],this.cf,m);this.Cp=B}var d=a("jU"),c=a("nU"),g=a("gE"),f=a("dG"),i=a("cf");b.prototype.Ssa=function(){return!!this.dg&&this.dg.get("mandatory")};b.prototype.Hy=function(){this.Cj=m;this.qk();
this.dg&&this.rt.get(this.dg).Hy()};b.prototype.pba=function(){this.Cj=B;this.dg&&this.rt.get(this.dg).pba();this.Ah&&(!this.dg||this.dg==this.Ah)&&this.Jp()};b.prototype.Jp=function(){if(!this.Cj&&!this.uA&&this.Ah&&!this.dg&&this.j.get("timeToIdle"))this.uA=setTimeout(function(){this.uA=q;this.oK()}.bind(this),this.j.get("timeToIdle"))};b.prototype.qk=function(){if(this.uA){clearTimeout(this.uA);this.uA=q}};b.prototype.oK=function(){this.Ah&&this.Ah.set("state",g.S)};b.prototype.frame=function(a){if(!this.Cp){var b=
i.io(this.k),c=0;b&&b.traverse(function(a){(a.isMesh||a.isSprite)&&c++});if(c>0){this.Cp=m;this.hF()}else return}this.dg&&this.rt.get(this.dg).frame(a);(a=this.dg&&this.dg.get("state")==g.S)&&this.k.R.pb();return a};b.prototype.hF=function(){this.jj?this.jj.set("state",g.S):this.Jp()};b.prototype.dispose=function(){d.na(this.j,["initialSequence","idleSequence","sequences.movements"],this.ux);d.na(this.j,["state"],this.cf);this.qk();this.Ah&&this.eE(this.Ah);this.jj&&this.eE(this.jj);this.zr.forEach(this.eE.bind(this));
this.zr=q};b.prototype.cf=function(){if(this.dg)this.dg.set("state",this.j.get("state"));else if(this.j.get("state")==g.S){this.Jp();this.uA||this.j.set("state",g.L)}else this.qk()};b.prototype.ux=function(){var a=this.r6(this.j.get("initialSequence"));if(this.jj!=a){this.jj&&this.eE(this.jj);(this.jj=a)&&this.v0(this.jj)}a=this.r6(this.j.get("idleSequence"));if(this.Ah!=a){this.Ah&&this.eE(this.Ah);(this.Ah=a)&&this.v0(this.Ah)}var b=(this.j.get("sequences")||[]).filter(this.r6.bind(this));this.zr.forEach(function(a){b.indexOf(a)<
0&&this.eE(a)}.bind(this));var c=this.zr;this.zr=b;this.zr.forEach(function(a){c.indexOf(a)<0&&this.v0(a)}.bind(this));!this.dg&&this.Ah&&!this.uA&&this.Jp()};b.prototype.r6=function(a){var b=a&&a.get("movements");return!b||b.length==0?q:a};b.prototype.fla=function(a){var a=a.source,b=a.get("state");if(b==g.S){this.qk();b=this.dg;this.dg=a;b&&b!=this.dg&&b.set("state",g.L);this.j.set("state",g.S);this.k.R.pb()}else if(b==g.Gb)a==this.dg&&this.j.set("state",g.Gb);else if(b==g.L&&a==this.dg){this.j.set("state",
g.L);this.dg=q;a!=this.Ah&&this.Jp()}};b.prototype.v0=function(a){if(this.rt.has(a))this.rt.get(a);else{a.set("state",g.L);a.bind(c.u("state"),this.fla,this,m);var b=new f(this.k,this.j,a);this.rt.set(a,b)}};b.prototype.eE=function(a){if(this.rt.has(a)){a.set("state",g.L);a.unbind(c.u("state"),this.fla,this,m);this.rt.get(a).dispose();this.rt["delete"](a)}};return b});
define("of",["require"],function(){return{C3:function(a){this.RR=this.RR.bind(this);this.SR=this.SR.bind(this);this.xI=this.Oi=B;this.sd={};for(var b=0;b<a.length;b++)this.sd[a[b]]=B;this.zJ=0;this.N=B;this.AJ(m)},D3:function(){this.AJ(B)},AJ:function(a){if(this.N!=a&&(this.N&&(document.removeEventListener("keyup",this.SR),document.removeEventListener("keydown",this.RR)),this.N=a))document.addEventListener("keyup",this.SR),document.addEventListener("keydown",this.RR)},ria:function(){return 0<this.zJ},
SR:function(a){if(!this.JR||!this.JR()){var b=B;this.Oi!=a.shiftKey&&(this.Oi=a.shiftKey,b=m);this.xI!=a.ctrlKey&&(this.xI=a.ctrlKey,b=m);this.sd[a.which]===m&&(this.sd[a.which]=B,b=m,this.aF&&this.aF(a.which),this.zJ--,0==this.zJ&&this.cka&&this.cka());b&&this.bF&&this.bF()}},RR:function(a){if(!this.JR||!this.JR()){var b=B;this.Oi!=a.shiftKey&&(this.Oi=a.shiftKey,b=m);this.xI!=a.ctrlKey&&(this.xI=a.ctrlKey,b=m);this.sd[a.which]===B&&(b=this.sd[a.which]=m,this.zGa&&this.zGa(a.which),this.zJ++,1==
this.zJ&&this.dka&&this.dka());b&&this.bF&&this.bF()}},WUa:S("Oi"),SUa:S("xI")}});
define("x",["require","nU","bc"],function(a){function b(a){this.wc=a;this.Zc=[]}function d(){this.hm=q;this.De=[]}function c(a,b){var c=b.x-a.x,d=b.y-a.y;return Math.sqrt(c*c+d*d)}var g=a("nU"),f=a("bc"),i=180/Math.PI;d.prototype.qs=function(a){this.hm&&(this.hm.nRa(this),this.hm=q);a&&(this.hm=b.get(a),this.hm.ENa(this))};d.prototype.dispose=function(){this.qs(q);this.De=q};d.prototype.push=function(a){this.De.push(a);this.hm&&this.hm.update()};d.prototype.pop=function(a){for(var b=this.De.length-
1;0<=b;b--)if(this.De[b]==a){this.De.splice(b,1);this.hm&&this.hm.update();break}};d.prototype.has=function(a){return 0<=this.De.indexOf(a)};d.prototype.top=function(){if(this.De.length)return this.De[this.De.length-1]};b.prototype.ENa=function(a){this.Zc.push(a);this.update()};b.prototype.nRa=function(a){this.Zc.splice(this.Zc.indexOf(a),1);this.update();0==this.Zc.length&&b.clear(this.wc)};b.prototype.update=function(){this.wc.set("cursor",this.Uha(f.Ek)?f.Ek:this.Uha(f.yf)?f.yf:this.Np()||f.me)};
b.prototype.Uha=function(a){for(var b=this.Zc.length-1;0<=b;b--)if(this.Zc[b].has(a))return m;return B};b.prototype.Np=function(){for(var a,b=this.Zc.length-1;0<=b&&a===l;b--)a=this.Zc[b].top();return a};b.Ha=new Map;b.get=function(a){var c=b.Ha.get(a);c||b.Ha.set(a,c=new b(a));return c};b.clear=function(a){b.Ha["delete"](a)};return{WJ:function(){this.yF=this.ie=q;this.ER=new d},XJ:function(){this.PF(q);this.ER.dispose()},bja:function(a){this.$F(a);if(!this.Ww||!this.Ww())this.$k||(this.$k=m,this.It||
this.RS&&this.RS()),this.pS=!a.originalEvent||!a.originalEvent.buttons||0===(a.originalEvent.buttons&2),this.yF=a,this.Bm&&this.Bm(a.x,a.y),this.PS&&this.PS(a.x,a.y)},VUa:S("$k"),TUa:S("It"),UUa:S("pS"),cja:function(a){this.$F(a);this.Wf&&this.Wf(a.x,a.y);if(this.$k){var b=a.x-this.yF.x,c=a.y-this.yF.y;this.yF=a;this.fF&&this.fF(b,c,a.x,a.y)}},dja:function(a){this.$F(a);if(this.$k){var b=a.x-this.yF.x,c=a.y-this.yF.y;(0!=b||0!=c)&&this.fF&&this.fF(b,c,a.x,a.y);this.pS=this.$k=B;this.ir&&this.ir(a.x,
a.y);this.YA&&this.YA();this.It||this.QS&&this.QS()}},Xia:function(a){this.$F(a);this.yK&&this.yK(a.x,a.y)},Yia:function(a){this.$F(a);this.OS&&this.OS(a.x,a.y)},eja:function(a){this.$F(a);if(!this.Ww||!this.Ww())a=a.aW/10,this.SS&&this.SS(a)},aja:function(a){this.Ww&&this.Ww()||2>a.touches.length||(this.It||(this.It=m,this.ZFa(a.touches),this.$k||this.RS&&this.RS()),this.Xja&&this.Xja())},Zia:function(a){this.Ww&&this.Ww()||2>a.touches.length||!this.It||(this.fja(a.touches),this.Wja&&this.Wja(this.xLa,
this.yLa,this.G7),this.C4&&this.C4(this.e3,this.f3,this.sM,this.tM,1,this.G7,this.nJ,this.F7,this.d3,this.E7))},$ia:function(){this.It&&(this.It=B,this.DS&&this.DS());this.$k||this.QS&&this.QS()},ZFa:function(a){this.d3=this.f3=this.e3=this.nJ=this.G7=this.tM=this.sM=this.F7=this.E7=l;this.rM=a;this.fja(a)},fja:function(a){c(a[0],this.rM[0])+c(a[1],this.rM[1])>c(a[0],this.rM[1])+c(a[1],this.rM[0])&&(a=[a[1],a[0]]);var b=Math.atan2(-(a[1].y-a[0].y),a[1].x-a[0].x)*i,d=c(a[0],a[1]),f=(a[0].x+a[1].x)/
2,g=(a[0].y+a[1].y)/2;this.G7=this.nJ!==l?d/this.nJ:1;this.E7=b;this.F7=d;this.xLa=this.sM!==l?f-this.sM:0;this.yLa=this.tM!==l?g-this.tM:0;this.sM=f;this.tM=g;this.e3!==l||(this.e3=this.sM);this.f3!==l||(this.f3=this.tM);this.d3!==l||(this.d3=this.E7);this.nJ!==l||(this.nJ=this.F7);this.rM=a},aJ:function(){return this.ie?this.ie.Ua():100},oA:function(){return this.ie?this.ie.Cb():100},Kt:function(){return this.ie?Math.max(this.ie.Ua(),this.ie.Cb()):100},PF:function(a){if(this.ie!=a&&(this.ie&&(this.ie.unbind(g.zb,
this.bja,this,m),this.ie.unbind(g.ad,this.cja,this,m),this.ie.unbind(g.Wb,this.dja,this,m),this.ie.unbind(g.ca,this.Xia,this,m),this.ie.unbind(g.Tl,this.Yia,this,m),this.ie.unbind(g.vq,this.eja,this,m),this.ie.unbind(g.WY,this.Zia,this,m),this.ie.unbind(g.dD,this.aja,this,m),this.ie.unbind(g.bD,this.$ia,this,m)),this.ie=a,this.ER.qs(this.ie),this.ie))this.ie.bind(g.zb,this.bja,this,m),this.ie.bind(g.ad,this.cja,this,m),this.ie.bind(g.Wb,this.dja,this,m),this.ie.bind(g.ca,this.Xia,this,m),this.ie.bind(g.Tl,
this.Yia,this,m),this.ie.bind(g.vq,this.eja,this,m),this.ie.bind(g.WY,this.Zia,this,m),this.ie.bind(g.dD,this.aja,this,m),this.ie.bind(g.bD,this.$ia,this,m)},$J:function(a){a.x=-1+2*a.x/this.aJ();a.y=1-2*a.y/this.oA();return a},$F:function(a){this.Ac=a.x;this.Bc=a.y;this.YJ=a.pageX;this.ZJ=a.pageY},Jx:function(a){this.ER.push(a)},kL:function(a){this.ER.pop(a)}}});
define("cv",["require","cf"],function(a){var b=a("cf");return{o4:function(a){this.Xd={};this.Xd.Qb=a;this.Xd.Fy=q;this.Xd.propertyName=q;this.Xd.matrixWorld=new THREE.Matrix4;this.Xd.cX=B;this.Xd.timeout=q},p4:function(){this.r4(B);this.Xd.timeout&&clearTimeout(this.Xd.timeout)},n4:function(a,b){if(this.Xd.Fy!=a||this.Xd.propertyName!=b)this.Xd.Fy&&this.Xd.Fy.set(this.Xd.propertyName,B),this.Xd.Fy=a,this.Xd.propertyName=b,this.Xd.Fy&&this.Xd.Fy.set(this.Xd.propertyName,this.Xd.cX)},o8:function(){var a=
b.ec(this.k),c=!!a&&!a.matrixWorld.equals(this.Xd.matrixWorld);c&&this.Xd.matrixWorld.copy(a.matrixWorld);this.r4(c);this.Xd.timeout&&(clearTimeout(this.Xd.timeout),this.Xd.timeout=q);c&&(this.Xd.timeout=setTimeout(function(){this.Xd.timeout=q;this.r4(B)}.bind(this),100))},r4:function(a){this.Xd.cX!=a&&(this.Xd.cX=a,this.Xd.Fy&&this.Xd.Fy.set(this.Xd.propertyName,this.Xd.cX))}}});
define("dF","require,kG,nU,bm,kj,cf,fm,ku,nk,np,of,x,cv,bc".split(","),function(a){function b(a){this.k=a;this.C3(t);this.WJ();this.o4(a);this.ZF=0.025;this.qj=0.25;this.Xha=1;this.hg=this.Uf=this.gg=this.ci=this.bi=0;this.yj=[];this.sa=this.ff=q;this.Jx(p.iz);this.update()}var d=a("kG"),c=a("nU"),g=a("bm");a("kj");var f=a("cf"),i=a("fm"),e=a("ku"),j=a("nk"),o=a("np"),k=a("of"),n=a("x"),r=a("cv"),p=a("bc");d.VB(b,[e,k,n,r]);b.prototype.update=function(){var a=this.k.getComponent(i.$C);this.rl(a&&
a.Fb);this.n4(a&&a.Fb,"moving");var b=H.indexOf(this.k.R)==-1&&a.enabled;this.PF(a&&(b?a.Xp:q));this.AJ(!!a&&b&&a.ns);b||this.YA();if(!b||!a.ns)this.ci=this.bi=this.gg=this.Uf=this.hg=0};b.prototype.frame=function(a){if(this.ci||this.bi||this.gg||this.Uf||this.hg){var b=a/1E3;this.aK(this.gg*a/1E3,this.Uf*b,this.hg*b,this.ci*b,this.bi*b)}this.o8()};b.prototype.bF=function(){var a=!(!this.gg&&!this.Uf&&!this.hg);this.ci=this.bi=this.hg=this.Uf=this.gg=0;var b=this.sd[g.As]?1:this.sd[g.XC]?-1:0,c=this.sd[g.vD]?
1:this.sd[g.qD]?-1:0,d=this.sd[g.pD]?1:this.sd[g.E]?-1:0,e=this.sd[g.Gq]?1:this.sd[g.pq]?-1:0,f=this.sd[g.Ja]?1:this.sd[g.Xa]?-1:0;if(b||c||d||e||f){var i=this.Oi?0.2:1;if(b)this.gg=-b*i*this.j.get("translationSpeed");if(d)this.Uf=-d*i*this.j.get("translationSpeed");if(c)this.hg=-c*i*this.j.get("translationSpeed");if(f)this.ci=-f*i*100*this.j.get("rotationSpeed");if(e)this.bi=e*i*100*this.j.get("rotationSpeed");this.k.R.pb();b=!(!this.gg&&!this.Uf&&!this.hg);!a&&b&&this.sMa()}};b.prototype.PS=function(){this.Xh=
m;this.Jx(p.Ek)};b.prototype.fF=function(a,b){if(this.Xh){var c=(a*a+b*b)/2500,c=c>1?1/Math.sqrt(c):1,b=b*c,c=-(a*c)*360/this.aJ()*this.j.get("rotationSpeed"),d=b*180/this.oA()*this.j.get("rotationSpeed");this.sa.Ml(this.j.get("yaw")+c);this.sa.us(this.j.get("pitch")+d);this.sa.ti(this.qj);this.k.R.pb()}};b.prototype.YA=function(){this.Xh=B;this.kL(p.Ek);this.k.R.pb()};b.prototype.SS=I();b.prototype.C4=I();b.prototype.DS=I();b.prototype.OS=I();b.prototype.rl=function(a){if(this.j!=a){if(this.j){if(this.ff){this.ff.dispose();
this.ff=q}this.sa=q;s.forEach(function(a){this.j.unbind(c.u(a),this.Sm,this,B)}.bind(this));u.forEach(function(a){this.j.unbind(c.u(a),this.tk,this,B)}.bind(this));this.j.set("userInteracting",B)}if(this.j=a){this.sa=new j(this.j);this.oJ();s.forEach(function(a){this.j.bind(c.u(a),this.Sm,this,B)}.bind(this));u.forEach(function(a){this.j.bind(c.u(a),this.tk,this,B)}.bind(this));this.Sm();this.tk();this.ff=new o(this.k,this.j);this.j.set("userInteracting",B)}}};b.prototype.oJ=function(){if(this.j){this.j.set("fov",
this.j.get("initialFov"));this.j.set("x",this.j.get("initialX"));this.j.set("y",this.j.get("initialY"));this.j.set("z",this.j.get("initialZ"));this.j.set("yaw",this.j.get("initialYaw"));this.j.set("pitch",this.j.get("initialPitch"))}};b.prototype.Sm=function(){if(this.k&&this.j){var a=this.k.G(i.va,m);a.Og=this.j.get("x");a.tg=this.j.get("y");a.Kf=this.j.get("z");a.Ie=-this.j.get("yaw");a.lf=this.j.get("pitch");a.mf=0;a.rg="YXZ";a.Ue=0;a.ve=0;a.cg=this.j.get("distance");a.pN=this.j.get("easing");
(this.j.get("minHeight")!==l||this.j.get("keepHeight"))&&this.A8()}};b.prototype.tk=function(){if(this.k&&this.j)this.k.G(i.PerspectiveCamera,m).fov=this.j.get("fov")};b.prototype.aK=function(a,b,c,d,e){var f=this.k.getComponent(i.va);if(f){w.makeRotationFromEuler(D.set(0,f.Ie*v,0,f.rg));x.set(a,b,c).applyMatrix4(w).multiplyScalar(this.Xha);this.sa.setX(this.j.get("x")+x.x);this.sa.setY(this.j.get("y")+x.y);this.sa.setZ(this.j.get("z")+x.z);this.sa.Ml(this.j.get("yaw")+d);this.sa.us(this.j.get("pitch")+
e);this.sa.ti(this.qj)}};b.prototype.sMa=function(){var a=this.hR();if(a>0)this.Xha=a};b.prototype.hR=function(){if(this.j){this.pm(x);return this.u2(x.x,x.y,x.z)}};b.prototype.u2=function(a,b,c){var d=this.HE(x.set(a,b,c),y.set(0,-1,0));if(d.length>0)return d[0].distance;d=this.HE(x.set(a,b+1E3,c),y.set(0,-1,0));if(d.length>0)return d[d.length-1].distance-1E3};b.prototype.HE=function(a,b){E.ray.origin.copy(a);E.ray.direction.copy(b);return E.intersectObjects(this.Mw(),B)};b.prototype.FR=function(a,
b){E.setFromCamera(a,b);return E.intersectObjects(this.Mw(),B)};b.prototype.Mw=function(){var a=this.k&&f.io(this.k);if(!a)return[];var b=[];a.traverse(function(a){!a.isSprite&&!a.isLine&&b.push(a)});return b};b.prototype.pm=function(a){a.set(0,0,0);if(this.j){a.applyMatrix4(w.makeTranslation(0,0,this.j.get("distance")));a.applyMatrix4(w.makeRotationFromEuler(D.set(this.j.get("pitch")*v,-this.j.get("yaw")*v,0*v,"YXZ")));a.applyMatrix4(w.makeTranslation(this.j.get("x"),this.j.get("y"),this.j.get("z")))}};
var t=[g.Gq,g.pq,g.Ja,g.Xa,g.As,g.qD,g.XC,g.vD,g.pD,g.E],s=["minYaw","maxYaw","yaw","minPitch","maxPitch","pitch","minX","maxX","x","minY","maxY","y","minZ","maxZ","z","distance","easingSpeed"],u=["minFov","maxFov","fov"],v=Math.PI/180,w=new THREE.Matrix4,x=new THREE.Vector3(0,0,0),y=new THREE.Vector3(0,0,0),D=new THREE.Euler,E=new THREE.Raycaster;b.prototype.dispose=function(){this.rl(q);this.D3();this.XJ();this.p4()};b.xc=function(a){a.C(i.Is).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(i.Is);
b.manager.dispose();b.manager=q;a.ga(i.Is)};b.update=function(a){a.getComponent(i.Is).manager.update()};b.frame=function(a,b,c){a.getComponent(i.Is).manager.frame(b,c)};var H=[];b.kO=function(a){H=[];a.forEach(function(a){H.indexOf(a.R)<0&&H.push(a.R)})};return b});
define("bU","require,kG,nU,bm,kj,cf,fm,ku,nk,np,of,x,cv,bc,nx,bC".split(","),function(a){function b(a){this.k=a;this.C3(K);this.WJ();this.o4(a);this.Jc=w;this.xp=this.wh=q;this.ZF=0.025;this.qj=0.25;this.Jh=l;this.DB=1;this.hg=this.Uf=this.gg=this.ci=this.bi=0;this.yj=[];this.AA=this.BA=this.CA=this.yA=this.xA=this.Dw=this.Ei=this.Et=this.Ft=this.Ht=this.Gt=this.Dt=l;this.b3=1E3;this.hJ=l;this.BE=0;this.sa=this.ff=q;this.Jx(s.iz);this.update()}function d(a,b){var c=b-a;c>180?c=c-360:c<-180&&(c=c+
360);return c}function c(){return(new Date).getTime()}var g=a("kG"),f=a("nU"),i=a("bm");a("kj");var e=a("cf"),j=a("fm"),o=a("ku"),k=a("nk"),n=a("np"),r=a("of"),p=a("x"),t=a("cv"),s=a("bc"),u=a("nx"),v=a("bC");g.VB(b,[o,r,p,t]);b.prototype.update=function(){var a=this.k.getComponent(j.aD);this.rl(a&&a.Fb);this.n4(a&&a.Fb,"moving");var b=Y.indexOf(this.k.R)==-1&&a.enabled;this.PF(a&&(b?a.Xp:q));this.AJ(!!a&&b&&a.ns);b||this.YA();if(!b||!a.ns)this.ci=this.bi=this.gg=this.Uf=this.hg=0};b.prototype.frame=
function(a,b){this.ff&&this.ff.frame(a,b)&&this.Fp();if(this.Sq){this.Sq.xb(a);this.sa.setX(this.Sq.gb("x"));this.sa.setY(this.Sq.gb("y"));this.sa.setZ(this.Sq.gb("z"));this.sa.FC(this.Sq.gb("distance"));this.sa.ti(0);if(this.Sq.Te())this.Sq=q}if(this.eg){this.eg=Math.max(0,this.eg-a/this.b3);this.sa.setX(this.j.get("x")+this.AA*this.eg);this.sa.setY(this.j.get("y")+this.BA*this.eg);this.sa.setZ(this.j.get("z")+this.CA*this.eg);this.sa.Ml(this.j.get("yaw")+this.yA*this.eg);this.sa.us(this.j.get("pitch")+
this.xA*this.eg);this.sa.ti(0);this.k.R.pb();this.eg==0&&this.tL()}if(this.ci||this.bi||this.gg||this.Uf||this.hg){var c=a/1E3;this.aK(this.gg*c,this.Uf*c,this.hg*c,this.ci*c,this.bi*c)}if(this.Jc==w&&this.rk!==l&&!this.Uf&&this.j.get("keepHeight")&&this.hJ!==l&&Math.abs(this.rk-this.j.get("y"))>O){this.BE=Math.max(this.BE-a,0);var c=this.j.get("y"),d=this.rk-c,e=Math.min(a*this.hJ,Math.abs(d));this.sa.setY(c+e*(d>0?1:-1));this.k.R.pb()}if(this.Jc==w&&this.xp&&!this.eg&&!this.Sq){this.Qz();this.k.R.pb()}this.o8()};
b.prototype.bF=function(){this.g8()};b.prototype.g8=function(){var a=this.hg!=0||this.Uf!=0||this.gg!=0;this.ci=this.bi=this.hg=this.Uf=this.gg=0;var b=this.sd[i.As]?1:this.sd[i.XC]?-1:0,c=this.sd[i.vD]?1:this.sd[i.qD]?-1:0,d=this.sd[i.pD]?1:this.sd[i.E]?-1:0,e=this.sd[i.Gq]?1:this.sd[i.pq]?-1:0,f=this.sd[i.Ja]?1:this.sd[i.Xa]?-1:0;if(e||f||b||c||d){var g=this.Oi?0.2:1;if(b)this.gg=-b*g*this.j.get("translationSpeed");if(d)this.Uf=-d*g*this.j.get("translationSpeed");if(c)this.hg=-c*g*this.j.get("translationSpeed");
if(f)this.ci=-f*g*100*this.j.get("rotationSpeed");if(e)this.bi=e*g*100*this.j.get("rotationSpeed");this.Qz();this.k.R.pb();this.V5();this.xCa();b=this.hg!=0||this.Uf!=0||this.gg!=0;!a&&b&&this.tL()}};b.prototype.PS=function(){this.Xh=m;if(!(this.Jc==MODE_ROTATING_YAW_GESTURE||this.Jc==MODE_ROTATION_PITCH_GESTURE||c()<this.Uga+500)){this.Jx(s.Ek);this.Jc=w}};b.prototype.fF=function(a,b,d,e){if(this.Xh&&!(this.Jc==MODE_ROTATING_YAW_GESTURE||this.Jc==MODE_ROTATION_PITCH_GESTURE||c()<this.Uga+500)){var f=
(a*a+b*b)/2500,f=f>1?1/Math.sqrt(f):1,a=a*f,b=b*f,f=this.QDa();if(this.Jc!=f){this.Jc=f;this.Jc==x?this.zKa(d,e):this.Jc==y?this.Una():this.Jc==D?this.LKa():this.Jc==MODE_ROTATING_AROUND_CAMERA&&this.JKa()}else this.Jc!=w&&(this.Jc==x?this.mMa(a,b,d,e):this.Jc==y?this.NMa(a,b):this.Jc==D?this.PMa(a,b):this.Jc==MODE_ROTATING_AROUND_CAMERA&&this.MMa(a,b))}};b.prototype.YA=function(){this.kL(s.Ek);this.Xh=B;if(this.Jc!=w){this.Jc=w;this.wh=q;this.Sna();this.V5();this.hia();this.k.R.pb()}};b.prototype.SS=
function(a){if(this.Jc!=E){this.Jc=E;this.GKa()}else this.zMa(a);this.i4&&clearTimeout(this.i4);this.i4=setTimeout(function(){this.i4=q;if(this.Jc==E){this.Jc=w;this.Fp()}}.bind(this),1E3)};b.prototype.C4=function(a,b,c,e,f,g,i,j,o,k){if(this.Jc!=MODE_ROTATING_YAW_GESTURE&&this.Jc!=MODE_ROTATION_PITCH_GESTURE){a=Math.abs(g-f)>0.05;c=d(o,k)>5;b=Math.abs(e-b)>0.02*this.oA();o=Math.min(Math.abs(o),180-Math.abs(o),Math.abs(k),180-Math.abs(k))<10;i=i/this.Kt()<0.2;if((a||b)&&(o||i)){this.Jc=MODE_ROTATION_PITCH_GESTURE;
this.KKa()}else if((c||a)&&(!o||!i)){this.Jc=MODE_ROTATING_YAW_GESTURE;this.MKa()}}else this.Jc==MODE_ROTATING_YAW_GESTURE?this.QMa(f,g,o,k):this.Jc==MODE_ROTATION_PITCH_GESTURE&&this.OMa(b,e,f,g)};b.prototype.DS=function(){this.wh=q;this.Jc==MODE_ROTATING_YAW_GESTURE&&this.Sna();this.Jc=w;this.Uga=c();this.V5();this.hia();this.k.R.pb()};b.prototype.OS=function(a,b){if(this.j.get("doubleClickAction")=="zoom"){var c=e.io(this.k),d=e.ec(this.k);if(d&&c){P.set(a,b);this.$J(P);c=this.FR(P,d);if(c.length!=
0){this.Fp();this.Qz();c=c[0].point;H.setFromMatrixPosition(d.matrixWorld);this.Sq=new u("quad_in_out",[new v("x",H.x,(c.x+H.x)*0.5),new v("y",H.y,(c.y+H.y)*0.5),new v("z",H.z,(c.z+H.z)*0.5),new v("distance",0,0)],500)}}}};b.prototype.QDa=function(){return this.pS?this.Oi?y:x:this.$k?this.Oi?MODE_ROTATING_AROUND_CAMERA:D:w};b.prototype.zKa=function(a,b){this.FF();this.Qz();this.Vya(a,b);this.j.get("keepHeight")&&this.TU();this.k.R.pb()};b.prototype.mMa=function(a,b,c,d){var f=e.ec(this.k);H.setFromMatrixPosition(f.matrixWorld);
if(this.wh){M.set(c,d,0);this.$J(M);M.unproject(f);if(Math.atan2(this.wh.y-H.y,Math.sqrt((this.wh.z-H.z)*(this.wh.z-H.z)+(this.wh.x-H.x)*(this.wh.x-H.x)))*F>-2){z.copy(this.wh).applyMatrix4(f.matrixWorldInverse);L.copy(M).applyMatrix4(f.matrixWorldInverse);a=z.z/L.z;G.copy(L).multiplyScalar(a).applyMatrix4(f.matrixWorld).sub(this.wh);G.y!=0&&this.Fp()}else{a=(this.wh.y-H.y)/(M.y-H.y);G.copy(M).sub(H).multiplyScalar(a).add(H).sub(this.wh)}G.multiplyScalar(-1)}else{U.makeRotationFromEuler(W.set(0,-this.j.get("yaw")*
C,0,"YXZ"));Q.set(-a*this.j.get("translationSpeed")/this.Kt(),0,-b*this.j.get("translationSpeed")/this.Kt()).applyMatrix4(U);G.copy(Q).multiplyScalar(this.DB*10)}this.sa.setX(H.x+G.x);this.sa.setY(H.y+G.y);this.sa.setZ(H.z+G.z);this.iG(G.x,G.y,G.z,0,0);this.sa.ti(this.qj)};b.prototype.Una=function(){this.FF();this.wh=q;this.s_();this.Fp();this.k.R.pb()};b.prototype.NMa=function(a,b){var c;c||(c=1);var d=a*360/this.aJ()*this.j.get("rotationSpeed"),e=-b*180/this.oA()*this.j.get("rotationSpeed");this.sa.Ml(this.j.get("yaw")+
d);this.sa.us(this.j.get("pitch")+e);this.sa.FC(this.m5/c);this.iG(0,0,0,d,e);this.sa.ti(this.qj);this.k.R.pb()};b.prototype.LKa=function(){this.Una()};b.prototype.PMa=function(a,b){var c=e.ec(this.k),d=this.j.get("distance")||this.Jh||1,c=b*d*2*Math.tan(c.fov*C/2)/this.oA();c!=0&&this.Fp();this.sa.setY(this.j.get("y")+c);d=a*360/this.aJ()*this.j.get("rotationSpeed");this.sa.Ml(this.j.get("yaw")+d);this.iG(0,c,0,d,0);this.sa.ti(this.qj)};b.prototype.JKa=function(){this.FF();this.Qz();this.Fp();this.k.R.pb()};
b.prototype.MMa=function(a,b){var c=-a*360/this.aJ()*this.j.get("rotationSpeed"),d=b*180/this.oA()*this.j.get("rotationSpeed");this.sa.Ml(this.j.get("yaw")+c);this.sa.us(this.j.get("pitch")+d);this.iG(0,0,0,c,d);this.sa.ti(this.qj);this.k.R.pb()};b.prototype.GKa=function(){this.Fp();this.FF();this.wh=q;this.Qz();this.j.get("keepHeight")&&this.TU();this.k.R.pb()};b.prototype.zMa=function(a){this.CJa(Q);Q.multiplyScalar(-a*this.j.get("translationSpeed")*(this.DB||1));this.Jh&&this.vea(this.Jh+Q.y);
this.sa.setX(this.j.get("x")+Q.x);this.sa.setY(this.j.get("y")+Q.y);this.sa.setZ(this.j.get("z")+Q.z);this.sa.ti(this.ZF)};b.prototype.MKa=function(){this.FF();this.wh=q;this.s_();this.Fp();this.k.R.pb();this.qr=l};b.prototype.QMa=function(a,b,c,e){this.qr!==l||(this.qr=c);c=d(this.qr,e);this.qr=e;this.sa.Ml(this.j.get("yaw")+c);this.sa.FC(this.m5*a/b);this.iG(0,0,0,c,0);this.sa.ti(this.qj);this.k.R.pb()};b.prototype.KKa=function(){this.FF();this.wh=q;this.s_();this.Fp();this.k.R.pb();this.MT=l};
b.prototype.OMa=function(a,b,c,d){this.MT!==l||(this.MT=a);a=-(b-this.MT)*180/this.oA();this.MT=b;this.sa.us(this.j.get("pitch")+a);this.sa.FC(this.m5*c/d);this.iG(0,0,0,0,a);this.sa.ti(this.qj);this.k.R.pb()};b.prototype.Vya=function(a,b){var c=e.io(this.k),d=e.ec(this.k);this.wh=q;if(d&&c){P.set(a,b);this.$J(P);c=this.FR(P,d);if(c.length)this.wh=c[0].point}};b.prototype.s_=function(){this.xp=q;var a=e.io(this.k),b=e.ec(this.k);if(b&&a){P.set(0,0);a=this.FR(P,b);if(a.length)this.xp=a[0].point;if(!this.xp)this.xp=
(new THREE.Vector3).setFromMatrixPosition(b.matrixWorld);this.j.set("distance",H.setFromMatrixPosition(b.matrixWorld).distanceTo(this.xp));this.m5=this.j.get("distance");this.j.set("x",this.xp.x);this.j.set("y",this.xp.y);this.j.set("z",this.xp.z);this.j.set("easing",0)}};b.prototype.Qz=function(){if(this.xp){this.xp=q;var a=e.ec(this.k);H.setFromMatrixPosition(a.matrixWorld);this.j.set("distance",0);this.j.set("x",H.x);this.j.set("y",H.y);this.j.set("z",H.z);this.j.set("easing",0)}};var w="none",
x="dragging",y="rotating",D="rotating yaw dragging y",E="moving front";MODE_ROTATING_AROUND_CAMERA="rotating around camera";MODE_ROTATING_YAW_GESTURE="rotating yaw gesture";MODE_ROTATION_PITCH_GESTURE="rotating pitch gesture";var H=new THREE.Vector3,M=new THREE.Vector3,G=new THREE.Vector3,z=new THREE.Vector3,L=new THREE.Vector3;b.prototype.rl=function(a){if(this.j!=a){if(this.j){if(this.ff){this.ff.dispose();this.ff=q}this.sa=q;A.forEach(function(a){this.j.unbind(f.u(a),this.lpa,this,B)}.bind(this));
N.forEach(function(a){this.j.unbind(f.u(a),this.Sm,this,B)}.bind(this));J.forEach(function(a){this.j.unbind(f.u(a),this.tk,this,B)}.bind(this));this.j.set("userInteracting",B)}if(this.j=a){this.sa=new k(this.j);this.oJ();A.forEach(function(a){this.j.bind(f.u(a),this.lpa,this,B)}.bind(this));N.forEach(function(a){this.j.bind(f.u(a),this.Sm,this,B)}.bind(this));J.forEach(function(a){this.j.bind(f.u(a),this.tk,this,B)}.bind(this));this.Sm();this.tk();this.ff=new n(this.k,this.j);this.j.set("userInteracting",
B)}}};b.prototype.oJ=function(){if(this.j){this.j.set("fov",this.j.get("initialFov"));this.j.set("x",this.j.get("initialX"));this.j.set("y",this.j.get("initialY"));this.j.set("z",this.j.get("initialZ"));this.j.set("yaw",this.j.get("initialYaw"));this.j.set("pitch",this.j.get("initialPitch"))}};b.prototype.Sm=function(){if(this.k&&this.j){var a=this.k.G(j.va,m);a.Og=this.j.get("x");var b=this.j.get("y")-a.tg;if(Math.abs(b)>O){a.tg=this.j.get("y");this.Jc==w&&!this.gg&&!this.Uf&&!this.hg&&!this.ci&&
!this.bi&&!this.Sq&&!this.eg&&this.Fp()}a.Kf=this.j.get("z");a.Ie=-this.j.get("yaw");a.lf=this.j.get("pitch");a.mf=0;a.rg="YXZ";a.Ue=0;a.ve=0;a.cg=this.j.get("distance");a.pN=this.j.get("easing");(this.j.get("minHeight")!==l||this.j.get("keepHeight"))&&this.A8()}};b.prototype.tk=function(){if(this.k&&this.j)this.k.G(j.PerspectiveCamera,m).fov=this.j.get("fov")};b.prototype.aK=function(a,b,c,d,e){var f=this.k.getComponent(j.va);if(f){U.makeRotationFromEuler(W.set(0,f.Ie*C,0,f.rg));Q.set(a,b,c).applyMatrix4(U).multiplyScalar(this.DB);
if(this.Jh!==l){this.Jh=this.Jh+Q.y;this.tL()}this.sa.setX(this.j.get("x")+Q.x);this.sa.setY(this.j.get("y")+Q.y);this.sa.setZ(this.j.get("z")+Q.z);this.sa.Ml(this.j.get("yaw")+d);this.sa.us(this.j.get("pitch")+e);this.sa.ti(this.qj)}};b.prototype.CJa=function(a){var b=this.k.getComponent(j.va);if(b){U.makeRotationFromEuler(W.set(b.lf*C,b.Ie*C,b.mf*C,b.rg));a.set(0,0,1).applyMatrix4(U)}};b.prototype.FF=function(){this.Dw=c();this.Ei=1;this.Et=this.Ft=this.Ht=this.Gt=this.Dt=0;this.eg=this.AA=this.BA=
this.CA=this.yA=this.xA=l};b.prototype.iG=function(a,b,d,e,f){var g=c();this.Ei=g-this.Dw;this.Dw=g;this.Et=a;this.Ft=b;this.Ht=d;this.Gt=e;this.Dt=f};b.prototype.Sna=function(){if(this.Ei){this.AA=this.Et/this.Ei;this.BA=this.Ft/this.Ei;this.CA=this.Ht/this.Ei;this.yA=this.Gt/this.Ei;this.xA=this.Dt/this.Ei;this.eg=1}};b.prototype.lpa=function(){if(this.j.get("minHeight")!==l){this.Jh===l&&this.TU();if(this.Jh!==l&&this.Jh<this.j.get("minHeight"))this.Jh=this.j.get("minHeight");this.A8()}};b.prototype.Fp=
function(){this.Jh=this.rk=l;if(this.uL){clearTimeout(this.uL);this.uL=q}};b.prototype.hia=function(){this.BE=2E3;this.hJ=l;this.k.R.pb()};b.prototype.xCa=function(){this.BE=0;this.hJ=Infinity;this.k.R.pb()};b.prototype.V5=function(){if(!(this.wh||this.Jh!==l)&&!this.uL)this.uL=setTimeout(function(){this.uL=q;this.TU()}.bind(this),0)};b.prototype.TU=function(){var a=this.hR();a!==l?this.vea(a):this.tL()};b.prototype.vea=function(a){var b=this.j.get("minHeight")||a;this.Jh=Math.max(a,b);this.tL();
this.rk=this.j.get("y")+this.Jh-a};b.prototype.tL=function(){if(this.Jh)this.DB=Math.min(10,Math.max(this.Jh||0,0.1));else{this.pm(Q);this.yDa(V);var a=this.HE(Q,V);this.DB=a.length?Q.distanceTo(a[0].point):Q.y-(this.j.get("minY")||0)}this.DB=Math.max(Math.abs(this.DB||0),0.1)};b.prototype.A8=function(){if(!(this.zpa||this.Jh===l))this.zpa=setTimeout(function(){this.zpa=q;var a=this.hR();if(a!==l&&this.Jh!==l){a=this.Jh-a;this.hJ=this.BE==0?Infinity:Math.abs(a/this.BE);this.rk=this.j.get("y")+a;a!==
0&&this.k.R.pb()}}.bind(this),0)};b.prototype.hR=function(){if(this.j){this.pm(Q);return this.u2(Q.x,Q.y,Q.z)}};b.prototype.u2=function(a,b,c){var d=this.HE(Q.set(a,b,c),V.set(0,-1,0));if(d.length>0)return d[0].distance;d=this.HE(Q.set(a,b+1E3,c),V.set(0,-1,0));if(d.length>0)return d[d.length-1].distance-1E3};b.prototype.HE=function(a,b){X.ray.origin.copy(a);X.ray.direction.copy(b);return X.intersectObjects(this.Mw(),B)};b.prototype.FR=function(a,b){X.setFromCamera(a,b);return X.intersectObjects(this.Mw(),
B)};b.prototype.Mw=function(){var a=this.k&&e.io(this.k);if(!a)return[];var b=[];a.traverse(function(a){!a.isSprite&&!a.isLine&&b.push(a)});return b};b.prototype.pm=function(a){a.set(0,0,0);if(this.j){a.applyMatrix4(U.makeTranslation(0,0,this.j.get("distance")));a.applyMatrix4(U.makeRotationFromEuler(W.set(this.j.get("pitch")*C,-this.j.get("yaw")*C,0*C,"YXZ")));a.applyMatrix4(U.makeTranslation(this.j.get("x"),this.j.get("y"),this.j.get("z")))}};b.prototype.yDa=function(a){if(this.j){U.makeRotationFromEuler(W.set(this.j.get("pitch")*
C,-this.j.get("yaw")*C,0,"YXZ"));a.set(0,0,-1).applyMatrix4(U)}else a.set(0,0,-1)};var K=[i.Gq,i.pq,i.Ja,i.Xa,i.As,i.qD,i.XC,i.vD,i.pD,i.E],A=["minHeight"],N=["minYaw","maxYaw","yaw","minPitch","maxPitch","pitch","minX","maxX","x","minY","maxY","y","minZ","maxZ","z","distance","easingSpeed"],J=["minFov","maxFov","fov"],C=Math.PI/180,F=180/Math.PI,O=1.0E-6,U=new THREE.Matrix4,Q=new THREE.Vector3(0,0,0),V=new THREE.Vector3(0,0,0),P=new THREE.Vector2(0,0),W=new THREE.Euler,X=new THREE.Raycaster;b.prototype.dispose=
function(){this.Qz();this.rl(q);this.D3();this.XJ();this.p4()};b.xc=function(a){a.C(j.Ks).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(j.Ks);b.manager.dispose();b.manager=q;a.ga(j.Ks)};b.update=function(a){a.getComponent(j.Ks).manager.update()};b.frame=function(a,b,c){a.getComponent(j.Ks).manager.frame(b,c)};var Y=[];b.kO=function(a){Y=[];a.forEach(function(a){Y.indexOf(a.R)<0&&Y.push(a.R)})};return b});
define("ns","require,kG,nU,bm,fm,ku,nk,np,of,x,cv,bc".split(","),function(a){function b(a){this.k=a;this.C3(v);this.WJ();this.o4(a);this.nk=new THREE.Matrix4;this.ZF=0.05;this.qj=0.25;this.gg=this.Uf=this.hg=this.ci=this.bi=0;this.AA=this.BA=this.CA=this.yA=this.xA=this.Dw=this.Ei=this.Et=this.Ft=this.Ht=this.Gt=this.Dt=l;this.b3=1E3;this.Hma=720;this.Boa=4;this.Dia=720;this.E3=2;this.sa=this.ff=q;this.Jx(r.iz);this.update()}var d=a("kG"),c=a("nU"),g=a("bm"),f=a("fm"),i=a("ku"),e=a("nk"),j=a("np"),
o=a("of"),k=a("x"),n=a("cv"),r=a("bc");d.VB(b,[i,o,k,n]);b.prototype.update=function(){var a=this.k.getComponent(f.nD);this.rl(a&&a.Fb);this.n4(a&&a.Fb,"moving");var b=y.indexOf(this.k.R)==-1&&a.enabled;this.PF(a&&(b?a.Xp:q));this.AJ(!!a&&b&&a.ns);b||this.YA();if(!b||!a.ns)this.ci=this.bi=this.gg=this.Uf=this.hg=0};b.prototype.frame=function(a,b){this.ff&&this.ff.frame(a,b);if(this.eg){this.eg=Math.max(0,this.eg-a/this.b3);this.sa.setX(this.j.get("x")+this.AA*this.eg);this.sa.setY(this.j.get("y")+
this.BA*this.eg);this.sa.setZ(this.j.get("z")+this.CA*this.eg);this.sa.Ml(this.j.get("yaw")+this.yA*this.eg);this.sa.us(this.j.get("pitch")+this.xA*this.eg);this.k.R.pb()}if(this.ci||this.bi||this.gg||this.Uf||this.hg){var c=a/1E3;this.aK(this.gg*c,this.Uf*c,this.hg*c,this.ci*c,this.bi*c)}this.o8()};b.prototype.bF=function(){this.g8()};b.prototype.g8=function(){this.ci=this.bi=this.hg=this.Uf=this.gg=0;var a=this.sd[g.As]?1:this.sd[g.XC]?-1:0,b=this.sd[g.vD]?1:this.sd[g.qD]?-1:0,c=this.sd[g.pD]?1:
this.sd[g.E]?-1:0,d=this.sd[g.Gq]?1:this.sd[g.pq]?-1:0,e=this.sd[g.Ja]?1:this.sd[g.Xa]?-1:0;if(a||b||c||d||e){var f=this.Oi?0.2:1;if(a)this.gg=-a*f*this.E3*this.j.get("translationSpeed");if(c)this.Uf=-c*f*this.E3*this.j.get("translationSpeed");if(b)this.hg=-b*f*this.E3*this.j.get("translationSpeed");if(e)this.ci=e*f*this.Dia*this.j.get("rotationSpeed");if(d)this.bi=-d*f*this.Dia*this.j.get("rotationSpeed");this.k.R.pb()}};b.prototype.PS=function(){this.Jx(r.Ek);this.Xh=m;this.Dw=(new Date).getTime();
this.Ei=1;this.Et=this.Ft=this.Ht=this.Gt=this.Dt=0;this.eg=this.AA=this.BA=this.CA=this.yA=this.xA=l;this.k.R.pb()};b.prototype.fF=function(a,b){if(this.Xh){var c=(a*a+b*b)/2500,c=c>1?1/Math.sqrt(c):1,a=a*c,b=b*c,c=(new Date).getTime();this.Ei=c-this.Dw;this.Dw=c;this.Et=this.Ft=this.Ht=this.Gt=this.Dt=0;c=this.pS;this.Oi&&(c=!c);if(c){this.Gt=+a*this.j.get("rotationSpeed")*this.Hma/this.Kt();this.Dt=-b*this.j.get("rotationSpeed")*this.Hma/this.Kt();this.Gma(this.Gt,this.Dt)}else{this.mha(a*this.Boa/
this.Kt(),b*this.Boa/this.Kt(),t);this.Et=t.x;this.Ft=t.y;this.Ht=t.z;this.J7(this.Et,this.Ft,this.Ht)}this.sa.ti(this.qj)}};b.prototype.mha=function(a,b,c){var d=this.k.getComponent(f.va);c.set(-a*this.j.get("translationSpeed"),+b*this.j.get("translationSpeed"),0*this.j.get("translationSpeed"));c.applyMatrix4(u.makeRotationFromEuler(s.set(d.lf*p,d.Ie*p,d.mf*p,d.rg)));c.multiplyScalar(this.j.get("distance"))};b.prototype.YA=function(){this.kL(r.Ek);if(this.Xh){this.Xh=B;if(this.Ei){this.AA=this.Et/
this.Ei;this.BA=this.Ft/this.Ei;this.CA=this.Ht/this.Ei;this.yA=this.Gt/this.Ei;this.xA=this.Dt/this.Ei;this.eg=1;this.sa.ti(this.qj)}this.Dw=l}};b.prototype.SS=function(a){this.sa.FC(this.j.get("distance")-a*this.j.get("distance")*this.j.get("translationSpeed"));this.sa.ti(this.ZF)};b.prototype.Xja=function(){this.iia=this.j.get("distance");this.Xh=B};b.prototype.Wja=function(a,b,c){this.mha(a/this.Kt(),b/this.Kt(),t);this.J7(t.x,t.y,t.z);this.sa.FC(this.iia/c);this.sa.ti(this.qj)};b.prototype.DS=
function(){this.iia=this.j.get("distance")};b.prototype.aK=function(a,b,c,d,e){var g=this.k.getComponent(f.va);if(g){u.makeRotationFromEuler(s.set(0,g.Ie*p,0,g.rg));t.set(a,b,c).applyMatrix4(u).multiplyScalar(this.j.get("distance"));this.J7(t.x,t.y,t.z);this.Gma(d,e);this.sa.ti(this.qj)}};b.prototype.J7=function(a,b,c){this.sa.setX(this.j.get("x")+a);this.sa.setY(this.j.get("y")+b);this.sa.setZ(this.j.get("z")+c)};b.prototype.Gma=function(a,b){this.sa.Ml(this.j.get("yaw")+a);this.sa.us(this.j.get("pitch")+
b)};b.prototype.rl=function(a){if(this.j!=a){if(this.j){if(this.ff){this.ff.dispose();this.ff=q}this.sa=q;w.forEach(function(a){this.j.unbind(c.u(a),this.Sm,this,B)}.bind(this));x.forEach(function(a){this.j.unbind(c.u(a),this.tk,this,B)}.bind(this));this.j.set("userInteracting",B)}if(this.j=a){this.j.set("userInteracting",B);this.sa=new e(this.j);this.oJ();w.forEach(function(a){this.j.bind(c.u(a),this.Sm,this,B)}.bind(this));x.forEach(function(a){this.j.bind(c.u(a),this.tk,this,B)}.bind(this));this.Sm();
this.tk();this.ff=new j(this.k,this.j)}}};b.prototype.oJ=function(){if(this.j){this.j.set("fov",this.j.get("initialFov"));this.j.set("x",this.j.get("initialX"));this.j.set("y",this.j.get("initialY"));this.j.set("z",this.j.get("initialZ"));this.j.set("yaw",this.j.get("initialYaw"));this.j.set("pitch",this.j.get("initialPitch"));this.j.set("distance",this.j.get("initialDistance"));this.j.set("easing",this.qj)}};b.prototype.Sm=function(){if(this.k&&this.j){var a=this.k.G(f.va,m);a.Og=this.j.get("x");
a.tg=this.j.get("y");a.Kf=this.j.get("z");a.Ie=-this.j.get("yaw");a.lf=this.j.get("pitch");a.mf=0;a.rg="YXZ";a.Ue=0;a.ve=0;a.cg=this.j.get("distance");a.pN=this.j.get("easing")}};b.prototype.tk=function(){if(this.k&&this.j)this.k.G(f.PerspectiveCamera,m).fov=this.j.get("fov")};var p=Math.PI/180,t=new THREE.Vector3(0,1,0),s=new THREE.Euler,u=new THREE.Matrix4,v=[g.Gq,g.pq,g.Ja,g.Xa,g.As,g.qD,g.XC,g.vD,g.pD,g.E],w=["easing","minYaw","maxYaw","yaw","minPitch","maxPitch","pitch","minDistance","maxDistance",
"distance","minX","maxX","x","minY","maxY","y","minZ","maxZ","z"],x=["minFov","maxFov","fov"];b.prototype.dispose=function(){this.rl(q);this.D3();this.XJ();this.p4()};b.xc=function(a){a.C(f.Ss).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(f.Ss);b.manager.dispose();b.manager=q;a.ga(f.Ss)};b.update=function(a){a.getComponent(f.Ss).manager.update()};b.frame=function(a,b,c){a.getComponent(f.Ss).manager.frame(b,c)};var y=[];b.kO=function(a){y=[];a.forEach(function(a){y.indexOf(a.R)<0&&y.push(a.R)})};
return b});
define("ji","require,kG,kR,fm,dF,bU,ns".split(","),function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("dF"),f=a("bU"),i=a("ns"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(a,b){this.jra.entities.length&&this.jra.entities.slice().forEach(f.xc);this.sN.Ra.length&&this.sN.Ra.slice().forEach(f.update);this.sN.entities.length&&this.sN.entities.slice().forEach(function(c){f.frame(c,a,b)});this.kra.entities.length&&this.kra.entities.slice().forEach(f.Kb);this.era.entities.length&&this.era.entities.slice().forEach(g.xc);
this.rN.Ra.length&&this.rN.Ra.slice().forEach(g.update);this.rN.entities.length&&this.rN.entities.slice().forEach(function(c){g.frame(c,a,b)});this.fra.entities.length&&this.fra.entities.slice().forEach(g.Kb);this.Pta.entities.length&&this.Pta.entities.slice().forEach(i.xc);this.XN.Ra.length&&this.XN.Ra.slice().forEach(i.update);this.XN.entities.length&&this.XN.entities.slice().forEach(function(c){i.frame(c,a,b)});this.Qta.entities.length&&this.Qta.entities.slice().forEach(i.Kb);if(this.oN.ag.length||
this.oN.Ym.length){g.kO(this.oN.entities);this.rN.entities.slice().forEach(g.update);f.kO(this.oN.entities);this.sN.entities.slice().forEach(f.update);i.kO(this.oN.entities);this.XN.entities.slice().forEach(i.update)}};a.A={};a.A.oN=[c.Jv];a.A.era=[c.$C,c.Is.not];a.A.rN=[c.$C,c.Is];a.A.fra=[c.$C.not,c.Is];a.A.jra=[c.aD,c.Ks.not];a.A.sN=[c.aD,c.Ks];a.A.kra=[c.aD.not,c.Ks];a.A.Pta=[c.nD,c.Ss.not];a.A.XN=[c.nD,c.Ss];a.A.Qta=[c.nD.not,c.Ss];return a});
define("im",["require","fm"],function(a){function b(a){this.k=a;this.Qna=this.da=q;this.ia=this.Z=l;this.update()}var d=a("fm");b.prototype.update=function(){var a=this.k.getComponent(d.Yi),b=a.source&&a.source.width||0,f=a.source&&a.source.height||0;if(this.da&&(!!this.da.MVa!=a.isSprite||this.Z!=b||this.ia!=f))this.da.map.dispose(),this.da.dispose(),this.da=q;this.Z=b;this.ia=f;this.da||(a.isSprite?(this.da=new THREE.SpriteMaterial,this.da.sizeAttenuation=B):this.da=new THREE.MeshBasicMaterial,
this.da.map=new THREE.Texture,this.da.transparent=m,this.k.C(d.Material).material=this.da);this.da.map.image!=a.source&&(this.da.map.image=a.source,this.da.map.needsUpdate=m);this.Qna!=a.GX&&(this.Qna=a.GX,this.da.map.needsUpdate=m);this.da.opacity=a.opacity||0;this.da.depthTest=!!a.depthTest;this.da.visible=0<this.da.opacity&&!a.hidden;this.da.needsUpdate=m;this.k.R.pb()};b.prototype.dispose=function(){this.da&&(this.da.map.dispose(),this.da.map=q,this.da.dispose(),this.da=q,this.k.ga(d.Material));
this.k=q};b.xc=function(a){a.C(d.Hv).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.Hv);b.manager.dispose();b.manager=q;a.ga(d.Hv)};b.update=function(a){a.getComponent(d.Hv).manager.update()};return b});
define("hQ",["require","kG","kR","fm","im"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("im"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Gl.entities.length&&this.Gl.entities.slice().forEach(g.xc);this.materials.Ra.length&&this.materials.Ra.slice().forEach(g.update);this.Hl.entities.length&&this.Hl.entities.slice().forEach(g.Kb)};a.A={};a.A.Gl=[c.Yi,c.Hv.not];a.A.materials=[c.Yi,c.Hv];a.A.Hl=[c.Yi.not,c.Hv];return a});
define("km","require,kG,bc,fm,cf,x".split(","),function(a){function b(a){this.ml=a;this.WJ();this.g1=B;this.update();this.Bc=this.Ac=l}var d=a("kG"),c=a("bc"),g=a("fm"),f=a("cf"),a=a("x");d.VB(b,[a]);b.prototype.update=function(){var a=this.ml.getComponent(g.Fo);this.PF(a&&(a.enabled?a.Xp:q))};b.prototype.frame=function(){this.tf()};b.prototype.Wf=function(a,b){this.Ac=a;this.Bc=b;var c=v.get(this.ml.R);c&&c.length!=0&&this.ml.R.pb()};b.prototype.tf=function(){if(!(this.Ac===l||this.Bc===l)){var a=
v.get(this.ml.R),b=a&&a.length||0;this.gna(b>0);if(b!=0)if((b=f.ec(this.ml))&&b.isCamera){i.setFromMatrixPosition(b.matrixWorld);e.set(this.Ac,this.Bc,0);this.$J(e);e.unproject(b);e.sub(i);for(b=0;b<a.length;b++){var c=a[b],d=c.getComponent(g.so),s=c.getComponent(g.Iv),M=w.get(c);if(M&&d&&s){if(!s.Xqa)s.Xqa=(new THREE.Vector3).setFromMatrixPosition(M.matrixWorld);j.copy(s.Xqa);o.copy(d.direction);this.TDa(j,o,i,e,k);if(!s.D9)s.D9=(new THREE.Vector3).copy(k).sub(j);k.sub(s.D9);d.min&&n.copy(k).sub(d.min).dot(d.direction)<
0&&k.copy(d.min);k.applyMatrix4(r.copy(M.parent.matrixWorld).invert());c=c.G(g.va);p.multiply(r.makeTranslation(c.Og,c.tg,c.Kf).invert());p.multiply(r.makeRotationFromEuler(t.set(c.lf*u,c.Ie*u,c.mf*u,c.rg)).invert());k.applyMatrix4(r);c.Ue=k.x;c.ve=k.y;c.cg=k.z}}}}};b.prototype.gna=function(a){if(this.g1!=a)(this.g1=a)?this.Jx(c.Ek):this.kL(c.Ek)};b.prototype.TDa=function(a,b,c,d,e){s.copy(a).sub(c);var c=b.dot(d),f=d.dot(d),g=b.dot(b),d=s.dot(d),i=s.dot(b);e.copy(a);a=c*c-f*g;a!=0&&e.addScaledVector(b,
(f*i-d*c)/a)};var i=new THREE.Vector3,e=new THREE.Vector3,j=new THREE.Vector3,o=new THREE.Vector3,k=new THREE.Vector3,n=new THREE.Vector3,r=new THREE.Matrix4,p=new THREE.Matrix4,t=new THREE.Euler,s=new THREE.Vector3,u=Math.PI/180;b.prototype.dispose=function(){this.gna(B);this.XJ();this.k=q};b.Waa=function(a){a.C(g.Us).manager=new b(a)};b.fba=function(a){var b=a.getComponent(g.Us);b.manager.dispose();b.manager=q;a.ga(g.Us)};b.oba=function(a){a.getComponent(g.Us).manager.update()};b.frame=function(a){a.getComponent(g.Us).manager.frame()};
var v=new Map,w=new Map;b.eTa=function(a){a.C(g.Iv);a.C(g.Jv);b.cwa(a)};b.cwa=function(a){var b=f.ec(a);w.set(a,b);var c=v.get(a.R);c||v.set(a.R,c=[]);if(b){b=c;b.indexOf(a)<0&&b.push(a)}};b.Kva=function(a){var b=v.get(a.R),c=b.indexOf(a);c>=0&&b.splice(c,1);w["delete"](a);a.ga(g.Iv);a.ga(g.Jv)};return b});
define("ko",["require","kG","kR","fm","km"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("km"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.cO.entities.length&&this.cO.entities.slice().forEach(g.Waa);this.mv.Ra.length&&this.mv.Ra.slice().forEach(g.oba);this.mv.entities.length&&this.mv.entities.slice().forEach(g.frame);this.dO.entities.length&&this.dO.entities.slice().forEach(g.fba);this.Wqa.entities.length&&this.Wqa.entities.slice().forEach(g.eTa);this.Vqa.entities.length&&
this.Vqa.entities.slice().forEach(g.cwa);this.Yqa.entities.length&&this.Yqa.entities.slice().forEach(g.Kva);this.Zqa.entities.length&&this.Zqa.entities.slice().forEach(g.Kva)};a.A={};a.A.cO=[c.Fo,c.Us.not];a.A.mv=[c.Fo,c.Us];a.A.dO=[c.Fo.not,c.Us];a.A.Wqa=[c.Object3D,c.so,c.Iv.not];a.A.Vqa=[c.Object3D,c.so,c.Iv];a.A.Yqa=[c.Object3D.not,c.Iv];a.A.Zqa=[c.so.not,c.Iv];return a});
define("kg",["require","fm","cf"],function(a){function b(a){this.k=a;this.A5=B}var d=a("fm"),c=a("cf");b.prototype.update=function(){this.A5=B};b.prototype.frame=function(){this.tf()};b.prototype.tf=function(){if(!this.A5&&(this.Aa=this.Aa||c.io(this.k))){var a=c.ec(this.k),b=a&&a.parent;if(b&&b.matrixWorld){var t=[];this.Aa.traverse(function(b){!b.isSprite&&!b.isLine&&b!=a&&t.push(b)});var s=this.k.G(d.Js);k.set(s.x,s.y,s.z).applyMatrix4(b.matrixWorld);o.ray.origin.set(k.x,k.y,k.z);o.ray.direction.set(0,
-1,0);var u=o.intersectObjects(t,B);if(0!=u.length){var v=u[0];i.copy(b.matrixWorld).invert();u=this.k.G(d.va,m);e.setFromMatrixPosition(b.matrixWorld);g.copy(v.object.matrixWorld);j.setFromMatrixPosition(g);f.copy(g).invert();!s.IN&&v.face&&v.face.normal?to.copy(v.face.normal).applyMatrix4(g).sub(j).add(e):to.copy(e).add(up);to.applyMatrix4(i).normalize();quaternion.setFromUnitVectors(from,to);euler.setFromQuaternion(quaternion,u.rg);u.lf=euler.x*TO_DEG;u.Ie=euler.y*TO_DEG;u.mf=euler.z*TO_DEG;k.copy(v.point).applyMatrix4(i);
u.Og=k.x;u.tg=k.y;u.Kf=k.z;n.setFromMatrixScale(i);b=Math.max(n.x,n.y,n.z);u.Ue=0;u.ve=0;u.cg=b*s.distance;this.A5=m}}}};b.prototype.dispose=I();var g=new THREE.Matrix4,f=new THREE.Matrix4,i=new THREE.Matrix4,e=new THREE.Vector3,j=new THREE.Vector3,o=new THREE.Raycaster,k=new THREE.Vector3,n=new THREE.Vector3;new THREE.Matrix4;matrix4b=new THREE.Matrix4;from=new THREE.Vector3(0,0,1);to=new THREE.Vector3;up=new THREE.Vector3(0,1,0);euler=new THREE.Euler;quaternion=new THREE.Quaternion;TO_RAD=Math.PI/
180;TO_DEG=180/Math.PI;b.xc=function(a){a.C(d.tq).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.tq);b.manager.dispose();b.manager=q;a.ga(d.tq)};b.frame=function(a){a.getComponent(d.tq).manager.frame()};b.update=function(a){a.getComponent(d.tq).manager.update()};return b});
define("ho",["require","kG","kR","fm","kg"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("kg"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.gra.entities.length&&this.gra.entities.slice().forEach(g.xc);this.gW.Ra.length&&this.gW.entities.slice().forEach(g.update);this.gW.entities.length&&this.gW.entities.slice().forEach(g.frame);this.hra.entities.length&&this.hra.entities.slice().forEach(g.Kb);this.ira.entities.length&&this.ira.entities.slice().forEach(g.Kb)};
a.A={};a.A.gra=[c.Object3D,c.Js,c.tq.not];a.A.gW=[c.Object3D,c.Js,c.tq];a.A.hra=[c.Object3D.not,c.tq];a.A.ira=[c.Js.not,c.tq];return a});define("fj",["require","fm"],function(a){var b=a("fm");return{xc:function(a){var c=a.C(b.eD),g=a.C(b.Object3D);a.C(b.va);a=a.G(b.Group);g.Yc=c.group=a.group=new THREE.Group},Kb:function(a){a.getComponent(b.eD).group=q;a.ga(b.eD);a.ga(b.Object3D)}}});
define("kL",["require","kG","kR","fm","fj"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("fj"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.$ra.entities.length&&this.$ra.entities.slice().forEach(g.xc);this.asa.entities.length&&this.asa.entities.slice().forEach(g.Kb)};a.A={};a.A.$ra=[c.Group,c.eD.not];a.A.asa=[c.Group.not,c.eD];return a});
define("nP",["require","nU","gE"],function(a){function b(a,b){this.od=a;this.dc=b;this.vb=B;this.YZ();this.a_();this.XA()}var d=a("nU"),c=a("gE");b.prototype.clear=function(){this.W5();this.c6();this.od.set("state",c.L);this.dc=this.od=q};b.prototype.Jf=function(a){this.vb!=a&&(this.vb=a,this.Lr())};b.prototype.XA=function(){this.dc.yd(this.od.get("state"))};b.prototype.sK=function(){this.Lr()};b.prototype.uK=function(){this.dc.yaa(this.od.get("frameDuration"))};b.prototype.tK=function(){this.dc.Rua("first"==
this.od.get("finalFrame"))};b.prototype.qK=function(){this.od.trigger(d.Ik)};b.prototype.pK=function(){this.od.trigger(d.Ga)};b.prototype.rK=function(){this.od.set("state",this.dc.og())};b.prototype.Lr=function(){this.od.get("autoplay")&&this.dc.yd(this.vb?c.S:c.L)};b.prototype.YZ=function(){this.od.bind(d.u("state"),this.XA,this,m);this.od.bind(d.u("autoplay"),this.sK,this,m);this.od.bind(d.u("frameDuration"),this.uK,this,m);this.od.bind(d.u("finalFrame"),this.tK,this,m)};b.prototype.W5=function(){this.od.unbind(d.u("state"),
this.XA,this,m);this.od.unbind(d.u("autoplay"),this.sK,this,m);this.od.unbind(d.u("frameDuration"),this.uK,this,m);this.od.unbind(d.u("finalFrame"),this.tK,this,m)};b.prototype.a_=function(){this.dc.bind(d.Ik,this.qK,this,m);this.dc.bind(d.Ga,this.pK,this,m);this.dc.bind(d.Fc,this.rK,this,m)};b.prototype.c6=function(){this.dc.unbind(d.Ik,this.qK,this,m);this.dc.unbind(d.Ga,this.pK,this,m);this.dc.unbind(d.Fc,this.rK,this,m)};return b});
define("et",["require","nU","eQ","bf","nP"],function(a){function b(a,b,e,j){this.de=a;this.Ob=b;this.jb=e;this.wa=j.bind(this);c.xa("AnimatedImageResource",this.de)?(this.dc=new g(this.Ob,this.de.get("rowCount",1),this.de.get("colCount",1),this.de.get("frameDuration"),this.de.get("frameCount",this.de.get("rowCount",1)*this.de.get("colCount",1)),this.de.get("repeat"),"first"==this.de.get("finalFrame")),this.jb.image=this.dc.mg(),this.dc.bind(d.qa,this.lJ,this,m),this.vn=new AnimationPlaybackController(this.de,
this.dc)):this.jb.image=this.Ob;this.jb.needsUpdate=m;this.wa()}var d=a("nU"),c=a("eQ"),g=a("bf");AnimationPlaybackController=a("nP");b.prototype.Jf=function(a){this.vn&&this.vn.Jf(a)};b.prototype.dispose=function(){this.vn&&(this.vn.clear(),this.vn=q);this.dc&&(this.dc.unbind(d.qa,this.lJ,this,m),this.dc.clear(),this.dc=q);this.jb=this.Ob=this.de=q};b.prototype.lJ=function(){this.jb.needsUpdate=m;this.wa()};return b});
define("ex",["require"],function(){var a={},b=q;a.tra=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("jr","require,jU,nU,cs,eQ,ck,kC,et,ex,fm,nx,bC,iU".split(","),function(a){function b(a){this.k=a;this.uB=this.uB.bind(this);this.wa=this.wa.bind(this);this.Aj=this.Aj.bind(this);a=a.getComponent(k.Ls);this.di=a.eH;this.Wd=a.La;this.j=a.Fb;this.de=a.Asa;this.CFa=a.isSprite;this.Gf=B;this.km=this.ib=q;this.Uq=0;this.Q0=this.eb=this.iE=this.N=l;d.pa(this.j,t,this.uB,B);d.pa(this.de,s,this.uB,B);d.pa(this.j,u,this.Aj,B);this.uB()}var d=a("jU"),c=a("nU"),g=a("cs"),f=a("eQ"),i=a("ck"),e=a("kC"),
j=a("et"),o=a("ex"),k=a("fm"),n=a("nx"),r=a("bC"),p=a("iU"),t=["height","scaleMode","width"],s=["levels.url","levels.width","levels.height"],u=["depthTest","enabled","encoding","hidden","opacity"];b.prototype.frame=function(a){if(this.km){this.km.xb(a);this.Uq=this.km.gb("alpha");this.n8();if(this.km.Te())this.km=q;this.k.R.pb()}if(this.Gf)this.Gf=B};b.prototype.uB=function(){var a=this.de&&this.de.get("levels")||[],a=a.filter(function(a){return!!a.get("url")}),b=1,c=1;if(f.xa("AnimatedImageResource",
this.de)){b=this.de.get("rowCount");c=this.de.get("colCount")}var d=q;if(a.length>0){a.sort(function(a,b){return b.get("width")-a.get("width")});var d=this.j.get("width"),e=this.j.get("height"),g=this.j.get("scaleMode","fill"),i=a[0].get("width")/c,j=a[0].get("height")/b,o=p.qW(d,e,i,j,g),d=a.reduce(function(a,d){return!a||a.get("width")>d.get("width")&&d.get("width")/c>=o.width&&d.get("height")/b>=o.height?d:a})}this.JL(d)};b.prototype.JL=function(a){if(this.ib!=a){if(this.ib){this.bCa();this.V0();
this.X0();this.Xo();this.Gf=B}if(this.ib=a){this.Qq();this.Wz();this.BI();this.Gf=B;this.wa()}}};b.prototype.BI=function(){if(!this.jd){this.jd=new i;this.jd.xO([this.ib.get("url")]);this.jd.bind(c.U,this.cd,this,m);this.jd.bind(c.gc,this.mka,this,m);this.jd.bind(c.zc,this.sf,this,m);this.rr=this.k.getComponent(k.Ls).Fe;e.ko(this.jd,this.rr)}};b.prototype.Xo=function(){if(this.jd){this.jd.unbind(c.U,this.cd,this,m);this.jd.unbind(c.gc,this.mka,this,m);this.jd.unbind(c.zc,this.sf,this,m);e.Mj(this.jd,
this.rr);this.jd=q}};b.prototype.cd=function(){this.KBa();this.N7(new g(c.U))};b.prototype.mka=function(a){this.N7(new g(c.gc,{percent:a.Kg}))};b.prototype.sf=function(){this.N7(new g(c.zc))};b.prototype.N7=function(a){this.di&&this.di.trigger(a)};b.prototype.wa=function(){if(!this.Gf){this.Gf=m;this.k.R.pb()}};b.prototype.Qq=function(){this.jb=new THREE.Texture;this.jb.image=o.tra();this.jb.generateMipmaps=m;this.jb.minFilter=THREE.LinearMipMapLinearFilter};b.prototype.X0=function(){if(this.jb){this.jb.dispose();
this.jb=q}};b.prototype.Wz=function(){if(this.CFa){this.da=new THREE.SpriteMaterial({map:this.jb});this.da.sizeAttenuation=B;this.da.transparent=m;this.da.visible=0;this.da.opacity=0;this.da.needsUpdate=m;this.k.C(k.Material).material=this.da}this.Aj(m)};b.prototype.Aj=function(a){var b=this.j.get("enabled")&&!this.j.get("hidden")&&!!this.Jr,d=this.N!==b;if(d||a){this.N=b;var b=this.Uq,e=this.N?1:0;this.km=b!==e?new n("linear",[new r("alpha",b,e,l)],Math.abs(b-e)*200):q;this.n8()}b=this.j.get("encoding");
if(this.iE!==b||a){this.iE=b;this.WMa()}b=this.j.get("depthTest");if(this.Q0!==b||a){this.Q0=b;this.xMa()}b=this.j.get("opacity");if(this.eb!==b||a){this.eb=b;this.n8()}d&&this.Wd&&this.Wd.trigger(this.N?c.hc:c.nc)};b.prototype.WMa=function(){if(this.da&&(this.da.map||this.da.emissiveMap)){var a=this.iE=="srgb"?THREE.sRGBEncoding:THREE.LinearEncoding;if(this.da.map)this.da.map.encoding=a;if(this.da.emissiveMap)this.da.emissiveMap.encoding=a;this.da.needsUpdate=m}this.wa()};b.prototype.xMa=function(){if(this.da)this.da.depthTest=
this.Q0;this.wa()};b.prototype.n8=function(){if(this.da){this.da.opacity=this.eb*this.Uq;this.da.visible=this.da.opacity>0;if(this.da.isShaderMaterial&&this.da.uniforms.opacity)this.da.uniforms.opacity.value=this.eb*this.Uq}this.Jr&&this.Jr.Jf(this.eb>0);this.wa()};b.prototype.V0=function(){if(this.da){this.da.dispose();this.da=q;this.k.ga(k.Material)}};b.prototype.KBa=function(){this.Jr=new j(this.de,e.jf(this.ib.get("url")),this.jb,this.wa);this.Aj(m)};b.prototype.bCa=function(){if(this.Jr){this.Jr.dispose();
this.Jr=q}};b.prototype.dispose=function(){this.JL(q);d.na(this.j,t,this.uB);d.na(this.de,s,this.uB);d.na(this.j,u,this.Aj);this.k=this.di=this.de=this.j=q};b.xc=function(a){a.C(k.Nv).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(k.Nv);b.manager.dispose();b.manager=q;a.ga(k.Nv)};b.frame=function(a,b){a.getComponent(k.Nv).manager.frame(b)};return b});
define("lP",["require","kG","kR","fm","jr"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("jr"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(a,b){this.Gl.entities.length&&this.Gl.entities.slice().forEach(g.xc);this.Hl.entities.length&&this.Hl.entities.slice().forEach(g.Kb);this.materials.entities.length&&this.materials.entities.slice().forEach(function(c){g.frame(c,a,b)})};a.A={};a.A.Gl=[c.Ls,c.Nv.not];a.A.materials=[c.Ls,c.Nv];a.A.Hl=[c.Ls.not,c.Nv];return a});
define("I",["require","mR","fm"],function(a){function b(a){this.k=a;this.da=q;this.update()}var d=a("mR"),c=a("fm");b.prototype.update=function(){this.da||(this.da=new THREE.LineBasicMaterial,this.da.transparent=m,this.k.C(c.Material).material=this.da);var a=this.k.getComponent(c.bj);this.da.color=new THREE.Color(d.OC(a.color||"#ffffff"));this.da.lineWidth=a.width||1;this.da.opacity=a.opacity||0;this.da.depthTest=!!a.depthTest;this.da.visible=0<this.da.opacity;this.da.needsUpdate=m};b.prototype.dispose=
function(){this.da&&(this.da.dispose(),this.da=q,this.k.ga(c.Material));this.k=q};b.xc=function(a){a.C(c.Ov).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(c.Ov);b.manager.dispose();b.manager=q;a.ga(c.Ov)};b.update=function(a){a.getComponent(c.Ov).manager.update()};return b});
define("iq",["require","kG","kR","fm","I"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("I"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Gl.entities.length&&this.Gl.entities.slice().forEach(g.xc);this.materials.Ra.length&&this.materials.Ra.slice().forEach(g.update);this.Hl.entities.length&&this.Hl.entities.slice().forEach(g.Kb)};a.A={};a.A.Gl=[c.bj,c.Ov.not];a.A.materials=[c.bj,c.Ov];a.A.Hl=[c.bj.not,c.Ov];return a});
define("E","require,nU,fm,cf,eQ,mR,a".split(","),function(a){function b(a){this.k=a;this.Gf=B;this.j=this.k.getComponent(c.Light).Fb;n.forEach(function(a){this.j.bind(d.u(a),this.BU,this,B)}.bind(this));this.BU()}var d=a("nU"),c=a("fm"),g=a("cf"),f=a("eQ"),i=a("mR"),e=a("a");b.prototype.update=function(){this.BU()};var j=Math.PI/180;b.prototype.BU=function(){var a=this.k.G(c.Light),b;if(f.xa("AmbientLight",a.Fb)){if(!a.Md||!a.Md.isAmbientLight)this.k.G(c.Object3D,m).Yc=a.Md=new THREE.AmbientLight;
b=a.target}else if(f.xa("OrbitLight",a.Fb)){if(!a.Md||!a.Md.isDirectionalLight)this.k.G(c.Object3D,m).Yc=a.Md=new THREE.DirectionalLight;b=e.$r(a.Fb.get("yaw")*j,a.Fb.get("pitch")*j).rH(10);a.Md.position.set(b.x,b.y,b.z);if(a.Fb.get("mode","fixed_to_target")=="fixed_to_target"){a.Md.target=g.ec(a.target);b=a.target}else{a.Md.target=new THREE.Object3D;b=a.target.getComponent(c.Hb).Qb.getComponent(c.Scene).co}a.Md.castShadow=a.Fb.get("intensity")>0&&a.Fb.get("castShadow");var d=a.Md.castShadow?a.Fb.get("shadowMapSize"):
16;if(d!=a.Md.shadow.mapSize.width){a.Md.shadow.dispose();a.Md.shadow=a.Md.shadow.clone();a.Md.shadow.mapSize.width=a.Md.shadow.mapSize.height=d}a.Md.shadow.radius=a.Fb.get("shadowRadius");a.Md.shadow.bias=a.Fb.get("shadowBias");this.ypa()}a.Md.color=new THREE.Color(i.OC(a.Fb.get("color")));a.Md.intensity=a.Fb.get("intensity");a.Md.visible=a.Md.intensity>0;a=this.k.getComponent(c.Hb);if(!a||a.Qb!=b){a=this.k.G(c.Hb,m);a.Qb=b}};var o=new THREE.Box3,k=new THREE.Vector3;b.prototype.frame=function(){this.ypa()};
b.prototype.ypa=function(){var a=this.k&&this.k.getComponent(c.Light);if(a&&a.Md&&a.Md.castShadow){var b=g.ec(a.target),d=a.Md.shadow.camera,e=this.e0(b,o),b=Number.POSITIVE_INFINITY,f=Number.NEGATIVE_INFINITY,i=Number.NEGATIVE_INFINITY;near=bottom=Number.POSITIVE_INFINITY;far=Number.NEGATIVE_INFINITY;for(var j=0;j<2;j++)for(var n=0;n<2;n++)for(var y=0;y<2;y++){k.set(j==0?e.min.x:e.max.x,n==0?e.min.y:e.max.y,y==0?e.min.z:e.max.z).applyMatrix4(d.matrixWorldInverse);if(k.x<b)b=k.x;if(k.x>f)f=k.x;if(k.y>
i)i=k.y;if(k.y<bottom)bottom=k.y;-k.z>far&&(far=-k.z);-k.z<near&&(near=-k.z)}a=a.Fb.get("shadowTolerance")||0;e=(near+far)*0.5;near=near+(near-e)*a;far=far+(far-e)*a;e=(b+f)*0.5;b=b+(b-e)*a;f=f+(f-e)*a;e=(i+bottom)*0.5;i=i+(i-e)*a;bottom=bottom+(bottom-e)*a;if(d.left!=b||d.right!=f||d.top!=i||d.bottom!=bottom||d.near!=near||d.far!=far){a=this.k.G(c.Light);a.Md.shadow.camera.left=b;a.Md.shadow.camera.top=i;a.Md.shadow.camera.right=f;a.Md.shadow.camera.bottom=bottom;a.Md.shadow.camera.near=near;a.Md.shadow.camera.far=
far;a.Md.shadow.camera.updateProjectionMatrix();a.Md.shadow.needsUpdate=m}}};b.prototype.e0=function(a,b){b.makeEmpty();var c=new THREE.Box3;a.traverse(function(a){if(a.geometry&&!a.isSprite){a.updateWorldMatrix(B,B);var d=a.geometry;d.boundingBox===q&&d.computeBoundingBox();c.copy(d.boundingBox);c.applyMatrix4(a.matrixWorld);b.union(c)}});return b};b.prototype.dispose=function(){if(this.j){n.forEach(function(a){this.j.unbind(d.u(a),this.BU,this,B)}.bind(this));this.j=q}if(this.k){this.k.ga(c.Hb);
this.k.ga(c.Object3D);this.k=q}};var n=["castShadow","color","intensity","mode","pitch","yaw","shadowBias","shadowRadius","shadowMapSize","shadowTolerance"];b.xc=function(a){a.C(c.Ms).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(c.Ms);b.manager.dispose();b.manager=q;a.ga(c.Ms)};b.update=function(a){a.getComponent(c.Ms).manager.update()};b.frame=function(a){a.getComponent(c.Ms).manager.frame()};return b});
define("cD",["require","kG","kR","fm","E"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("E"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Ysa.entities.length&&this.Ysa.entities.slice().forEach(g.xc);this.VW.Ra.length&&this.VW.Ra.slice().forEach(g.update);this.VW.entities.length&&this.VW.entities.slice().forEach(g.frame);this.Zsa.entities.length&&this.Zsa.entities.slice().forEach(g.Kb)};a.A={};a.A.Ysa=[c.Light,c.Ms.not];a.A.VW=[c.Light,c.Ms];a.A.Zsa=[c.Light.not,
c.Ms];return a});
define("nE",["require","kG","kR","fm"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),a=b.extend(d,function(){d.apply(this,arguments);this.Xe=this.Xe.bind(this);this.wf=this.wf.bind(this);this.nd=this.nd.bind(this)});a.prototype.execute=function(){this.fta.entities.length&&this.fta.entities.slice().forEach(this.Xe);this.eta.Ra.length&&this.eta.Ra.slice().forEach(this.wf);this.gta.entities.length&&this.gta.entities.slice().forEach(this.nd);this.hta.entities.length&&this.hta.entities.slice().forEach(this.nd);this.ita.entities.length&&
this.ita.entities.slice().forEach(this.nd)};a.prototype.Xe=function(a){a.C(c.Object3D).Yc=new THREE.LineSegments;a.C(c.Pv);a.C(c.va);if(!a.getComponent(c.Geometry)){var b=(new THREE.BufferGeometry).setFromPoints([new THREE.Vector3(0,0,0),new THREE.Vector3(0,0,1)]);b.userData.Hsa=m;a.C(c.Geometry).geometry=b}this.wf(a)};a.prototype.wf=function(a){var b=a.getComponent(c.Material).material,d=a.getComponent(c.Object3D).Yc;d.material!=b&&(d.material=b,d.needsUpdate=m);b=a.getComponent(c.Geometry).geometry;
d.geometry!=b&&(d.geometry&&b.userData.Hsa&&d.geometry.dispose(),d.geometry=b,d.needsUpdate=m);a=a.getComponent(c.Line).renderOrder||0;d.renderOrder!=a&&(d.renderOrder=a,d.needsUpdate=m)};a.prototype.nd=function(a){a.ga(c.Pv);a.ga(c.Geometry);var b=a.getComponent(c.Object3D);b&&(b=b.Yc,b.geometry&&b.geometry.userData.Hsa&&b.geometry.dispose(),b.geometry=q,b.material=q,a.ga(c.Object3D))};a.A={};a.A.fta=[c.Line,c.Material,c.Pv.not];a.A.eta=[c.Line,c.Geometry,c.Material,c.Pv];a.A.gta=[c.Line.not,c.Pv];
a.A.hta=[c.Material.not,c.Pv];a.A.ita=[c.Geometry.not,c.Pv];return a});
define("fw",["require","kG","kR","fm","cf"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("cf"),a=b.extend(d,function(){d.apply(this,arguments);this.Xe=this.Xe.bind(this);this.nd=this.nd.bind(this);this.aC=this.aC.bind(this)});a.prototype.execute=function(){this.ata.entities.length&&this.ata.entities.slice().forEach(this.Xe);this.$sa.entities.length&&this.$sa.entities.slice().forEach(this.aC);this.bta.entities.length&&this.bta.entities.slice().forEach(this.nd);this.cta.entities.length&&this.cta.entities.slice().forEach(this.nd);
this.dta.entities.length&&this.dta.entities.slice().forEach(this.nd)};a.prototype.Xe=function(a){a.C(c.Rv)};a.prototype.nd=function(a){a.ga(c.Rv)};var f=new THREE.Matrix4,i=new THREE.Quaternion,e=new THREE.Vector3;zVector=new THREE.Vector3(0,0,1);euler=new THREE.Euler;TO_DEG=180/Math.PI;a.prototype.aC=function(a){var b=a.getComponent(c.va);if(b){var d=a.getComponent(c.Qv),d=g.ec(d.Qb),n=g.ec(a);if(n&&n.parent&&d&&d.parent&&(f.copy(n.parent.matrixWorld).invert(),e.setFromMatrixPosition(d.matrixWorld).applyMatrix4(f),
d=e.length(),i.setFromUnitVectors(zVector,e.normalize()),euler.setFromQuaternion(i,b.rg),euler.x*=TO_DEG,euler.y*=TO_DEG,euler.z*=TO_DEG,b.scale!=d||b.lf!=euler.x||b.Ie!=euler.y||b.mf!=euler.z))b=a.G(c.va),b.scale=d,b.lf=euler.x,b.Ie=euler.y,b.mf=euler.z,g.wX(a,b),a.R.pb()}};a.A={};a.A.ata=[c.Object3D,c.Qv,c.Rv.not];a.A.$sa=[c.Object3D,c.Qv,c.Rv,c.va];a.A.bta=[c.Object3D.not,c.Rv];a.A.cta=[c.Qv.not,c.Rv];a.A.dta=[c.va.not,c.Rv];return a});
define("bF","require,kG,nU,kR,fm,cf".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("kR"),g=a("fm"),f=a("cf"),a=b.extend(c,function(){c.apply(this,arguments);this.Xe=this.Xe.bind(this);this.nd=this.nd.bind(this);this.wf=this.wf.bind(this)});a.prototype.execute=function(){this.lta.entities.length&&this.lta.entities.slice().forEach(this.Xe);this.kta.Ra.length&&this.kta.Ra.slice().forEach(this.wf);this.mta.entities.length&&this.mta.entities.slice().forEach(this.nd);this.nta.entities.length&&this.nta.entities.slice().forEach(this.nd)};
a.prototype.Xe=function(a){a.C(g.Sv);this.wf(a)};a.prototype.wf=function(a){var b=a.getComponent(g.wq),a=f.ec(a);this.mza(a,b);this.N5(a);this.Jd(a,b)};a.prototype.nd=function(a){a.ga(g.Sv);var b=f.ec(a);if(b){this.zAa(b);this.N5(b);a.ga(g.Sv)}};a.prototype.mza=function(a,b){a.userData.Ota=b.opacity;a.userData.envMapIntensity=b.envMapIntensity};a.prototype.zAa=function(a){a.userData.Ota=l;a.userData.envMapIntensity=l};a.prototype.N5=function(a){var b=this.fha(a),c=this.kDa(a);if(a.material)if(b===
l&&c===l)this.aU(a);else{var d=a.userData.kv||a.material;if(d.opacity!==l){var f=d.opacity*(b===l?1:b);if(a.material.opacity!==f){this.Dga(a);a.material.opacity=f;a.material.transparent=f<1?m:d.transparent;a.material.visible=f>0;a.material.needsUpdate=m}}if(d.envMapIntensity!==l){d=d.envMapIntensity*(c===l?1:c);if(a.material.envMapIntensity!==d){this.Dga(a);a.material.envMapIntensity=d;a.material.needsUpdate=m}}}a.children&&a.children.forEach(function(a){a.userData.$Pa=b;a.userData.ZPa=c;this.N5(a)}.bind(this))};
a.prototype.Dga=function(a){if(a.userData.kv===l){a.userData.kv=a.material;a.material=a.material.clone()}};a.prototype.aU=function(a){if(a.userData.kv!==l){a.material=a.userData.kv;delete a.userData.kv}};a.prototype.fha=function(a){var b=a.userData.Ota,a=a.userData.$Pa;if(!(a===l&&b===l)){b=(a!==l?a:1)*(b!==l?b:1);return b===1?l:b}};a.prototype.kDa=function(a){var b=a.userData.envMapIntensity,a=a.userData.ZPa;if(!(a===l&&b===l)){b=(a!==l?a:1)*(b!==l?b:1);return b===1?l:b}};a.prototype.Jd=function(a,
b){var c=this.fha(a);if(c!==l){c=c>0;if(a.userData.ZTa!==c){a.userData.ZTa=c;b.La&&b.La.trigger(c?d.hc:d.nc)}}};a.A={};a.A.lta=[g.wq,g.Object3D,g.Sv.not];a.A.kta=[g.wq,g.Object3D,g.Sv];a.A.mta=[g.wq.not,g.Sv];a.A.nta=[g.Object3D.not,g.Sv];return a});
define("nN",["require","nU","fm","cf"],function(a){function b(a){this.k=a;this.Lpa=this.Zq=this.Wc=q;this.oG=-1}a("nU");var d=a("fm");a("cf");b.prototype.frame=function(){if(!this.Zq&&(this.Zq=this.k.getComponent(d.yg).j$)){var a=this.Zq.userData&&this.Zq.userData.gltfExtensions&&this.Zq.userData.gltfExtensions.KHR_materials_variants;this.Lpa=a&&a.variants||[];this.update()}};b.prototype.update=function(){var a=this.k.getComponent(d.Os).name,b=this.Lpa.findIndex(function(b){return b.name==a}),f=this.Zq.scene;
this.Wc!=f?(this.Wc&&this.Cma(this.Wc),this.Wc=f,this.oG=b,this.Wc&&this.Ena(this.Wc,this.oG)):this.oG!=b&&(this.oG=b,this.Wc&&this.Ena(this.Wc,this.oG));this.k.R.pb()};b.prototype.Cma=function(a){this.wea(a,-1)};b.prototype.Ena=function(a,b){this.RFa(a,b,function(){this.Wc==a&&this.oG==b&&this.wea(a,b)}.bind(this))};b.prototype.RFa=function(a,b,d){var i=[];a.traverse(function(a){var c=a.isMesh&&a.userData.gltfExtensions&&a.userData.gltfExtensions.KHR_materials_variants;if(c=c&&c.mappings)a.userData.kv||
(a.userData.kv=a.material),a.userData.Iy||(a.userData.Iy={}),(c=c.find(function(a){return a.variants.indexOf(b)!=-1}))&&i.push(this.Zq.parser.getDependency("material",c.material).then(function(c){a.userData.Iy[b]||(a.userData.Iy[b]=c)}))}.bind(this));Promise.all(i).then(function(){d(a,b)})};b.prototype.wea=function(a,b){a.traverse(function(a){if(a.userData.Iy){var c=a.userData.Iy[b];c?(a.material=c,this.Zq.parser.assignFinalMaterial(a)):a.material=a.userData.kv}}.bind(this));this.k.R.pb()};b.prototype.dispose=
function(){this.Wc&&(this.Cma(this.Wc),this.Wc=q)};b.xc=function(a){a.C(d.Do).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.Do);b.manager.dispose();b.manager=q;a.ga(d.Do)};b.update=function(a){a.getComponent(d.Do).manager.update()};b.frame=function(a){a.getComponent(d.Do).manager.frame()};return b});
define("hd",["require","kG","kR","fm","nN"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("nN"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.pta.entities.length&&this.pta.entities.slice().forEach(g.xc);this.YW.entities.length&&this.YW.entities.slice().forEach(g.frame);this.YW.Ra.length&&this.YW.Ra.slice().forEach(g.update);this.qta.entities.length&&this.qta.entities.slice().forEach(g.Kb);this.rta.entities.length&&this.rta.entities.slice().forEach(g.Kb);
this.sta.entities.length&&this.sta.entities.slice().forEach(g.Kb)};a.A={};a.A.pta=[c.Os,c.yg,c.Object3D,c.Do.not];a.A.YW=[c.Os,c.yg,c.Object3D,c.Do];a.A.qta=[c.Os.not,c.Do];a.A.rta=[c.Object3D.not,c.Do];a.A.sta=[c.yg.not,c.Do];return a});
define("hr",["require","fm"],function(a){var b=a("fm");return{xc:function(a){var c=a.C(b.xq);a.C(b.va);var g=a.G(b.Mesh);a.C(b.Object3D).Yc=c.lo=g.lo=new THREE.Mesh(a.getComponent(b.Geometry).geometry,a.getComponent(b.Material).material);g.lo.renderOrder=g.renderOrder},update:function(a){var c=a.G(b.xq);c.lo.geometry=a.getComponent(b.Geometry).geometry;c.lo.material=a.getComponent(b.Material).material;c.lo.renderOrder=a.getComponent(b.Mesh).renderOrder},Kb:function(a){a.getComponent(b.xq).lo=q;a.ga(b.xq);
a.ga(b.Object3D)}}});
define("fe",["require","kG","kR","fm","hr"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("hr"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.wta.entities.length&&this.wta.entities.slice().forEach(g.xc);this.vta.Ra.length&&this.vta.Ra.slice().forEach(g.update);this.ZW.entities.length&&this.ZW.entities.slice().forEach(g.Kb);this.DQa.entities.length&&this.ZW.entities.slice().forEach(g.Kb);this.EQa.entities.length&&this.ZW.entities.slice().forEach(g.Kb)};a.A=
{};a.A.wta=[c.Mesh,c.Geometry,c.Material,c.xq.not];a.A.vta=[c.Mesh,c.Geometry,c.Material,c.xq];a.A.ZW=[c.Mesh.not,c.xq];a.A.DQa=[c.Geometry.not,c.xq];a.A.EQa=[c.Material.not,c.xq];return a});
define("om",["require","kG","nU","fQ"],function(a){function b(a){this.Jqa=a;this.Kg=0;this.J9=B}var d=a("kG"),c=a("nU"),g=a("fQ"),a=d.extend(g,function(a){g.call(this);this.tm=new Map;this.kE=a||this});a.prototype.URa=function(a){if(this.kE=a)this.Bj(),this.k8()};a.prototype.Iqa=function(){this.tm.forEach(function(a,b){this.TT(b)}.bind(this));this.tm=new Map};a.prototype.El=function(){var a=0;this.tm.forEach(function(b){b.J9&&a++});return a==this.tm.size};a.prototype.dispose=function(){this.Iqa();
this.kE=this.tm=q};a.prototype.cN=function(a,c){if(!this.tm.has(a))return this.tm.set(a,new b(c||1)),this.zya(a),a};a.prototype.mX=function(a){this.tm.has(a)&&(this.tm["delete"](a),this.TT(a))};a.prototype.ZB=function(a){return this.cN(new g,a)};a.prototype.cd=function(a){var a=a.source,b=this.tm.get(a);b&&(this.TT(a),b.Kg=100,b.J9=m,this.Bj(),this.k8())};a.prototype.ii=function(a){this.tm.get(a.source).Kg=a.data.percent;this.Bj()};a.prototype.sf=function(a){a=a.source;this.TT(a);a=this.tm.get(a);
a.J9=m;a.Kg=100;this.kE.trigger(c.zc);this.Bj();this.k8()};a.prototype.Bj=function(){var a=0,b=0;this.tm.forEach(function(c){b+=c.Jqa;a+=c.Kg*c.Jqa});this.kE.trigger(c.gc,{percent:a/b})};a.prototype.k8=function(){this.El()&&this.kE.trigger(c.U)};a.prototype.zya=function(a){a.bind(c.U,this.cd,this,m);a.bind(c.gc,this.ii,this,m);a.bind(c.zc,this.sf,this,m)};a.prototype.TT=function(a){a.unbind(c.U,this.cd,this,m);a.unbind(c.gc,this.ii,this,m);a.unbind(c.zc,this.sf,this,m)};return a});
define("jc",["require","nU","mR","fm","cf"],function(a){function b(a){this.k=a;this.j=this.k.getComponent(g.yg).Fb;this.pe=q;this.WQ=l;i.forEach(function(a){this.j.bind(d.u(a),this.ze,this,m)}.bind(this));this.update()}var d=a("nU"),c=a("mR"),g=a("fm"),f=a("cf"),i=["floorColor","floorHeight","floorOpacity","floorRadius"];b.prototype.update=function(){var a=this.j.get("floorColor");if(this.WQ!=a&&(!a&&this.pe&&(this.ega(this.pe),this.pe=q),this.WQ=a))this.pe||(this.pe=this.lBa()),this.KJa(this.pe,
this.WQ);a=this.j.get("floorOpacity");this.pe&&this.pe.material.opacity!=a&&(this.pe.material.opacity=a);a=this.j.get("floorHeight");this.pe&&this.pe.position.y!=a&&(this.pe.position.y=a);a=this.j.get("floorRadius");this.pe&&this.pe.scale.x!=a&&(this.pe.scale.x=this.pe.scale.y=this.pe.scale.z=a)};b.prototype.frame=function(){if(this.pe&&!this.pe.parent){for(var a=f.ec(this.k);a&&!a.isScene;)a=a.parent;a&&a.add(this.pe)}};b.prototype.dispose=function(){i.forEach(function(a){this.j.unbind(d.u(a),this.ze,
this,m)}.bind(this));this.pe&&(this.ega(this.pe),this.pe=q)};b.prototype.ze=function(){this.k.R.pb();this.update()};b.prototype.lBa=function(){var a=new THREE.BoxGeometry(1E3,0.001,1E3),a=new THREE.CircleGeometry(1,128),a=new THREE.Mesh(a);a.receiveShadow=m;a.position.y=0;a.rotation.x=0.5*-Math.PI;a.needsUpdate=m;return a};b.prototype.KJa=function(a,b){var d=a.material;if(d&&(!d.isShadowMaterial&&"transparent"==b||!d.JVa&&"transparent"!=b))d.dispose(),d=q;"transparent"==b?d||(d=new THREE.ShadowMaterial):
(d||(d=new THREE.MeshStandardMaterial,d.defines.USE_UV="",d.onBeforeCompile=function(a){var b=a.fragmentShader.lastIndexOf("}");a.fragmentShader=a.fragmentShader.substring(0,b)+"float uvCenterCoef = 2.0 * length(vUv - 0.5);\nfloat uvAlphaCoef = 1.0 - smoothstep(0.97, 1.0, uvCenterCoef);\ngl_FragColor.a = uvAlphaCoef * gl_FragColor.a;\n"+a.fragmentShader.substring(b,a.fragmentShader.length)},d.roughness=1,d.metalness=0,d.envMapIntensity=0,d.transparent=m),d.color=new THREE.Color(c.OC(b)));d.needsUpdate=
m;a.material=d};b.prototype.ega=function(a){a.parent&&a.parent.remove(a);a.material&&a.material.dispose();a.material=q;a.geometry&&a.geometry.dispose();a.geometry=q};return b});
define("lG",["require","nU","fm"],function(a){function b(a){this.k=a;this.Wu=a.R;this.j=this.k.getComponent(c.yg).Fb;this.j.bind(d.u("lights"),this.j8,this,B);this.ta=q;this.$t=[];this.N3=new Map;this.update()}var d=a("nU"),c=a("fm");b.prototype.update=function(){var a=this.k.getComponent(c.Object3D),a=a&&a.Yc;this.ta!=a&&(this.ta=a,this.j8())};b.prototype.j8=function(){this.nna(this.ta?this.j.get("lights",[]).length?this.j.get("lights"):[]:[])};b.prototype.dispose=function(){this.ta=q;this.j.unbind(d.u("lights"),
this.j8,this,B);this.nna([])};b.prototype.nna=function(a){this.$t!=a&&(this.$t.forEach(function(b){0>a.indexOf(b)&&this.tIa(b)}.bind(this)),a.forEach(function(a){0>this.$t.indexOf(a)&&this.yya(a)}.bind(this)),this.$t=a)};b.prototype.yya=function(a){var b=this.Wu.Ld("Light"),d=b.C(c.Light);d.Fb=a;d.target=this.k;this.N3.set(a,b)};b.prototype.tIa=function(a){var b=this.N3.get(a);this.N3["delete"](a);this.Wu.bg(b)};return b});
define("lD",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("tags",[])});a.F("Model3DResourceLevel",b).H("Object").Q({tags:"or[array[enum[mobile]], enum[mobile]]",url:"string"}).vi(["url"]);b.pP="mobile";b.prototype.get=function(a,b){switch(a){case "levels":b=[this];break;case "url":for(var f=d.prototype.get.call(this,a),i=this.get("levels"),e=0;i&&e<i.length&&f===l;e++){var j=i[e];j!=this&&(f=j.get(a))}return f!==l?f:b}return d.prototype.get.call(this,
a,b)};return b});
define("ms",["require"],function(){function a(a){this.V=a}var b=new THREE.Raycaster,d=new THREE.Vector3,c=new THREE.Vector3(0,-1,0),g=new THREE.Vector3(0,1,0);a.prototype.ITa=function(a,c){b.ray.origin.copy(a);d.copy(c).sub(a);var e=d.length();d.normalize();b.ray.direction.copy(d);return 0<b.intersectObjects(this.Mw(),B).filter(function(a){if(a.distance>=0.98*e||!a.object.visible)return B;a=Array.isArray(a.object.material)&&a.face?a.object.material[a.face.materialIndex]:a.object.material;return!a||
a.visible}).length};a.prototype.NOa=function(a){b.ray.origin.copy(a);b.ray.direction.copy(c);var a=this.Mw(),d=b.intersectObjects(a,B);if(0<d.length)return d[0].distance;b.ray.direction.copy(g);d=b.intersectObjects(a,B);if(0<d.length)return-d[0].distance};a.prototype.Mw=function(){var a=[];this.V.traverse(function(b){!b.isSprite&&!b.isLine&&a.push(b)});return a};return a});
define("bb",["require","cf"],function(a){function b(a){this.V=a}var d=a("cf");b.prototype.fPa=function(a){return(a=this.ec(a))&&a.matrixWorld};b.prototype.ec=function(a){return!a?this.V:d.gC(this.V,a)};return b});
define("dC",["require","kG","nU","fQ","hV"],function(a){var b=a("kG"),d=a("nU"),c=a("fQ"),g=a("hV"),a=b.extend(c,function(a,b){c.call(this);this.kd=a;this.rr=b;this.tr=new Request(a);this.Hea=this.Bp=q;this.bM=this.bM.bind(this);this.Kz=this.Kz.bind(this)});a.prototype.start=function(){this.KA||(this.Lz=B,this.KA=g.add(this.kd,this.rr,this.bM,this.Kz))};a.prototype.bM=function(){fetch(this.tr).then(function(a){if(this.Lz)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")||a.headers.get("x-content-length"),c=l,g=0;b!==q&&(c=parseInt(b,10));this.Bp=a.body.getReader();var o=B,k=function(a){this.Lz?a.close():o=m}.bind(this),n=function(a){return this.Bp.read().then(function(b){var f=b.value;f&&(g+=f.byteLength,a.enqueue(f));b.done&&(c=g,r(a));this.trigger(d.gc,{totalBytes:c,bytesLoaded:g,percent:g<c?100*g/c:100})}.bind(this))["catch"](function(b){console.log("Error reading response",b);a.error(b)}.bind(this))}.bind(this),
r=function(a){o&&(a.close(),o=B,this.Bp=q)}.bind(this);return new Response(new ReadableStream({start:function(a){return k(a)},pull:function(a){return n(a)},cancel:function(){r()}}))}.bind(this)).then(function(a){return a.arrayBuffer()}.bind(this)).then(function(a){this.Hea=a;this.KA&&(this.KA.loaded(),this.KA=q);this.trigger(d.U)}.bind(this))["catch"](function(){this.cancel();this.trigger(d.zc)}.bind(this))};a.prototype.cancel=function(){this.KA&&(this.KA.cancel(),this.KA=q)};a.prototype.Kz=function(){this.Lz=
m;this.Bp&&this.Bp.cancel()};a.prototype.getData=S("Hea");return a});
define("eq","require,nU,hy,lD,ms,bb,fm,dC,t,lB".split(","),function(a){function b(a,b,c,e){this.k=a;this.Rf=b;this.K4=this.K4.bind(this);this.L4=this.L4.bind(this);a=this.k.getComponent(j.yg);this.j=a.Fb;this.wj=e;this.re=c;this.Wd=this.wj.ZB(1);this.re.cN(this.Wd,1);this.ta=this.Zq=q;this.kd=this.yEa(a.yta);this.AE=new THREE.GLTFLoader;this.AE.setKTX2Loader(d());this.AE.setMeshoptDecoder(THREE.MeshoptDecoder);this.Yo=new o(this.kd,g.hD);this.sya();this.Yo.start()}function d(){if(r)return r;r=new THREE.KTX2Loader;
r.setTranscoderPath(THREE.vwa);var a=new THREE.WebGLRenderer;r.detectSupport(a);a.forceContextLoss();a.dispose();return r}var c=a("nU"),g=a("hy"),f=a("lD"),i=a("ms"),e=a("bb"),j=a("fm"),o=a("dC"),k=a("t"),n=a("lB"),r;b.prototype.yEa=function(a){var b,c=a.get("levels");if(!b&&k.ob())b=(b=c.find(function(a){return a.get("tags").indexOf(f.pP)>-1}))&&b.get("url");b||c.length&&(b=c[0].get("url"));b||(b=a.get("url"));return b};b.prototype.update=I();b.prototype.cd=function(){this.AE.parse(this.Yo.getData(),
n.getDirectory(this.kd),this.K4,this.L4)};b.prototype.ii=function(a){this.Wd.trigger(c.gc,a.data)};b.prototype.sf=function(){this.Wd.trigger(c.zc)};b.prototype.L4=function(){this.Wd.trigger(c.zc)};b.prototype.K4=function(a){if(this.AE){a.scene.traverse(function(a){if(a.isMesh){a.material.depthWrite=!a.material.transparent;if(a.geometry&&!a.isSkinnedMesh){a.geometry.computeBoundsTree();a.geometry.userData.p9=m}}});this.ta=a.scene;this.aza(this.ta);this.Rf.C(j.Object3D).Yc=this.ta;this.k.G(j.yg,m).j$=
a;this.oya();this.j.set("geometryQuery",new i(this.ta));this.j.set("objectQuery",new e(this.ta));this.hV()}};b.prototype.oya=function(){var a=this.k.getComponent(j.yg);this.k.C(j.Dv).Fb=a.Fb};b.prototype.hV=function(){this.j.set("isLoaded",m);this.Wd.trigger(c.U)};b.prototype.aza=function(a){if(a.userData.id===l)a.userData.id="root";for(var b=[a];b.length;){var c=b.shift(),a=[];c.children&&(a=a.concat(c.children));c.isSkinnedMesh&&(a=a.concat(c.skeleton.bones));a.forEach(function(a,d){if(a.userData.id===
l)a.userData.id=c.userData.id+"/"+d;b.push(a)})}};b.prototype.sya=function(){this.Yo.bind(c.U,this.cd,this,m);this.Yo.bind(c.gc,this.ii,this,m);this.Yo.bind(c.zc,this.sf,this,m)};b.prototype.nIa=function(){this.Yo.unbind(c.U,this.cd,this,m);this.Yo.unbind(c.gc,this.ii,this,m);this.Yo.unbind(c.zc,this.sf,this,m)};b.prototype.dispose=function(){if(this.Yo){this.nIa();this.Yo.cancel();this.Yo=q}if(this.AE)this.AE=q;if(this.ta){this.ta.traverse(function(a){function b(a){a&&c.indexOf(a)<0&&c.push(a)}var c=
[];b(a.material);b(a.userData.kv);if(a.userData.Iy)for(var d in a.userData.Iy)b(a.userData.Iy[d]);c.forEach(function(a){a.dispose();a.map&&a.map.dispose();a.lightMap&&a.lightMap.dispose();a.aoMap&&a.aoMap.dispose();a.emissiveMap&&a.emissiveMap.dispose();a.bumpMap&&a.bumpMap.dispose();a.normalMap&&a.normalMap.dispose();a.displacementMap&&a.displacementMap.dispose();a.roughnessMap&&a.roughnessMap.dispose();a.metalnessMap&&a.metalnessMap.dispose();a.alphaMap&&a.alphaMap.dispose()});a.geometry&&a.geometry.userData.p9&&
a.geometry.disposeBoundsTree();a.geometry&&a.geometry.dispose()});this.ta=q;this.Rf.ga(j.Object3D)}if(this.Wd){this.re.mX(this.Wd);this.wj.mX(this.Wd);this.re=this.Wd=q}if(this.j){this.j.set("geometryQuery",q);this.j.set("objectQuery",q);this.j.set("isLoaded",B);this.j=q}};return b});
define("js","require,jU,lh,nU,fQ,fm,cf".split(","),function(a){function b(a,b,c){this.ra=a;this.fE=b;this.q=c;this.Me=this.Me.bind(this);this.el=this.el.bind(this);this.Ff=1;this.N=B;this.nea=new Map;this.Vg=[];this.Sg=this.ra.R.Ld("DraggingPositionContainer");this.Sg.C(f.Group);this.Sg.C(f.va);this.Vg.push(this.Sg);this.vc=q;this.Az=[this.Zpa=this.m0("x"),this.$pa=this.m0("y"),this.aqa=this.m0("z")];this.Az.forEach(function(a){this.Tx(a,function(a){a.opacity=0.5;a.depthTest=B});a.C(f.Hb).Qb=this.Sg}.bind(this));
d.pa(this.q,p,this.Me,m);d.pa(this.q,t,this.el,m)}var d=a("jU");a("lh");var c=a("nU"),g=a("fQ"),f=a("fm"),i=a("cf");b.prototype.dispose=function(){d.na(this.q,p,this.Me);d.na(this.q,t,this.el);var a=this.ra.R;this.Vg.forEach(function(b){a.bg(b)});this.q=this.ra=this.Az=this.k=this.Vg=q};b.prototype.frame=function(){if(this.N){this.LL(i.TG(this.Sg)||1);if(this.vc){var a=this.fE.getComponent(f.va);this.q.set("x",a.Ue);this.q.set("y",a.ve);this.q.set("z",a.cg)}else this.hMa()}};var e=new THREE.Vector3,
j=new THREE.Vector3,o=new THREE.Euler,k=new THREE.Quaternion,n=new THREE.Matrix4,r=180/Math.PI;b.prototype.m0=function(a){var b=this.ra.R.Ld("DraggingArrow");this.Vg.push(b);b.C(f.Group);var c=b.G(f.va,m);if(a==="x")c.mf=-90;else if(a=="z")b.G(f.va,m).lf=90;a=this.ra.R.Ld("DraggingArrowCylinder");this.Vg.push(a);a.C(f.Mesh).renderOrder=1;a.C(f.Geometry).geometry=new THREE.CylinderGeometry(0.05,0.05,0.85,16,1,m);a.C(f.Vc);a.C(f.Hb).Qb=b;a.G(f.va,m).ve=-0.075;c=this.ra.R.Ld("DraggingArrowCone");this.Vg.push(c);
c.C(f.Mesh).renderOrder=1;c.C(f.Geometry).geometry=new THREE.ConeGeometry(0.05,0.15,16,1,m);c.C(f.Vc);c.C(f.Hb).Qb=b;c.G(f.va,m).ve=0.425;this.nea.set(b,[a,c]);return b};b.prototype.LL=function(a){if(this.Ff!=a){this.Ff=a;this.Me()}};b.prototype.Me=function(){var a=this.q.get("draggableArrowLength")*this.Ff;this.Tx(this.Zpa,function(a){a.color=this.q.get("draggableXControlsColor")}.bind(this));var b=this.Zpa.G(f.va,m);b.scale=a;b.Og=a/2;this.Tx(this.$pa,function(a){a.color=this.q.get("draggableYControlsColor")}.bind(this));
b=this.$pa.G(f.va,m);b.scale=a;b.tg=a/2;this.Tx(this.aqa,function(a){a.color=this.q.get("draggableZControlsColor")}.bind(this));b=this.aqa.G(f.va,m);b.scale=a;b.Kf=a/2};b.prototype.hMa=function(){var a=i.ec(this.fE);if(a){n.copy(a.matrixWorld).invert().decompose(e,k,j);a=this.Sg.getComponent(f.va);o.setFromQuaternion(k,a.rg);o.x=o.x*r;o.y=o.y*r;o.z=o.z*r;if(a.lf!=o.x||a.Ie!=o.y||a.mf!=o.z){a=this.Sg.G(f.va);a.lf=o.x;a.Ie=o.y;a.mf=o.z}}};b.prototype.el=function(){var a=this.q.get("positionDraggable");
if(this.N!=a)if(this.N=a){this.Sg.C(f.Hb).Qb=this.fE;this.Az.forEach(function(a){a=a.C(f.Ud);a.qv=m;a.Zu=m;a.La=new g;a.La.bind(c.bc,this.iF,this,m);a.La.bind(c.rb,this.Dm,this,m);a.La.bind(c.zb,this.Bm,this,m);a.La.bind(c.Wb,this.ir,this,m)}.bind(this))}else{this.Sg.ga(f.Hb);this.Az.forEach(function(a){a.ga(f.Ud)})}};b.prototype.iF=function(a){(a=this.Pk(a))&&a!=this.vc&&this.Tx(a,function(a){a.opacity=1})};b.prototype.Dm=function(a){(a=this.Pk(a))&&a!=this.vc&&this.Tx(a,function(a){a.opacity=0.5})};
b.prototype.Bm=function(a){this.Vx(this.Pk(a))};b.prototype.ir=function(a){a=this.Pk(a);if(a==this.vc){this.Vx(q);this.Az.indexOf(a)!=-1&&this.q.trigger(c.rn)}};b.prototype.Tx=function(a,b){this.nea.get(a).forEach(function(a){b(a.G(f.Vc))}.bind(this))};b.prototype.Pk=function(a){a=this.Az.map(function(a){return a.getComponent(f.Ud).La}).indexOf(a.source);return a==-1?q:this.Az[a]};b.prototype.Vx=function(a){if(this.vc){this.Tx(this.vc,function(a){a.opacity=0.5});this.fE.ga(f.so)}if(this.vc=a){this.Tx(this.vc,
function(a){a.opacity=1});var a=i.getWorldPosition(this.fE),b=i.getWorldPosition(this.vc);this.fE.C(f.so).direction=b.sub(a)}};var p=["draggableArrowLength","draggableXControlsColor","draggableYControlsColor","draggableZControlsColor"],t=["positionDraggable"];return b});
define("l","require,jU,nU,fQ,fm,cf".split(","),function(a){function b(a,b,c){this.ra=a;this.k=b;this.q=c;this.dk=this.dk.bind(this);this.Me=this.Me.bind(this);this.el=this.el.bind(this);this.vc=q;this.N=B;this.PT=[1,1,1,1,1,1];this.Vg=[];this.Pf=[this.tG=this.So(),this.sG=this.So(),this.vG=this.So(),this.uG=this.So(),this.xG=this.So(),this.wG=this.So()];this.Pf.forEach(function(a){a=a.G(f.Vc);a.opacity=0.5;a.depthTest=B}.bind(this));d.pa(this.q,k,this.Me,m);d.pa(this.q,n,this.dk,m);d.pa(this.q,r,
this.el,m)}var d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),i=a("cf");b.prototype.frame=function(){if(this.N){this.NJa(this.Pf.map(function(a){return i.TG(a)||1}));if(this.vc){var a=i.ec(this.k),b=i.ec(this.uE(this.vc));if(a&&b){j.copy(a.matrixWorld).invert();e.setFromMatrixPosition(b.matrixWorld).applyMatrix4(j);var a=this.q.get("x"),b=this.q.get("y"),c=this.q.get("z"),d=this.q.get("width"),f=this.q.get("height"),g=this.q.get("depth"),o=0,k=0,n=0,r=0,H=0,M=0;switch(this.vc){case this.tG:r=e.x-d*0.5;o=
r*0.5;break;case this.sG:r=-e.x-d*0.5;o=-r*0.5;break;case this.vG:H=e.y-f*0.5;k=H*0.5;break;case this.uG:H=-e.y-f*0.5;k=-H*0.5;break;case this.xG:M=e.z-g*0.5;n=M*0.5;break;case this.wG:M=-e.z-g*0.5;n=-M*0.5}this.q.set("x",a+o);this.q.set("width",d+r);this.q.set("y",b+k);this.q.set("height",f+H);this.q.set("z",c+n);this.q.set("depth",g+M)}}}};var e=new THREE.Vector3,j=new THREE.Matrix4;b.prototype.So=function(){var a=this.ra.R.Ld("DraggingSphere");this.Vg.push(a);a.C(f.Mesh).renderOrder=2;a.C(f.Geometry).geometry=
new THREE.SphereGeometry;a.C(f.Vc);return a};b.prototype.Me=function(){this.tG.G(f.Vc).color=this.q.get("draggableXControlsColor");this.sG.G(f.Vc).color=this.q.get("draggableXControlsColor");this.vG.G(f.Vc).color=this.q.get("draggableYControlsColor");this.uG.G(f.Vc).color=this.q.get("draggableYControlsColor");this.xG.G(f.Vc).color=this.q.get("draggableZControlsColor");this.wG.G(f.Vc).color=this.q.get("draggableZControlsColor");var a=this.q.get("draggableSphereRadius");this.Pf.forEach(function(b,c){b.G(f.va,
m).scale=a*this.PT[c]}.bind(this))};b.prototype.dk=function(){this.tG.G(f.va,m).Ue=this.q.get("width")/2;this.sG.G(f.va,m).Ue=-this.q.get("width")/2;this.vG.G(f.va,m).ve=this.q.get("height")/2;this.uG.G(f.va,m).ve=-this.q.get("height")/2;this.xG.G(f.va,m).cg=this.q.get("depth")/2;this.wG.G(f.va,m).cg=-this.q.get("depth")/2};b.prototype.el=function(){var a=this.q.get("sizeDraggable");if(this.N!=a){this.N=a;this.Pf.forEach(function(b){if(a){b.C(f.Hb).Qb=this.k;this.Pf.forEach(function(a){a=a.C(f.Ud);
a.qv=m;a.Zu=m;a.La=new g;a.La.bind(c.bc,this.ZE,this,m);a.La.bind(c.rb,this.A4,this,m);a.La.bind(c.zb,this.y4,this,m);a.La.bind(c.Wb,this.z4,this,m)}.bind(this))}else{b.ga(f.Hb);this.Pf.forEach(function(a){a.ga(f.Ud)}.bind(this))}}.bind(this))}};b.prototype.NJa=function(a){for(var b=B,c=0;c<this.PT.length&&!b;c++)b=this.PT[c]!=a[c];if(b){this.PT=a;this.Me()}};b.prototype.ZE=function(a){if((a=this.Pk(a))&&a!=this.vc)a.G(f.Vc).opacity=1};b.prototype.A4=function(a){if((a=this.Pk(a))&&a!=this.vc)a.G(f.Vc).opacity=
0.5};b.prototype.Pk=function(a){a=this.Pf.map(function(a){return a.getComponent(f.Ud).La}).indexOf(a.source);return a==-1?q:this.Pf[a]};b.prototype.y4=function(a){this.Vx(this.Pk(a))};b.prototype.z4=function(a){a=this.Pk(a);if(a==this.vc){this.Vx(q);this.dk();(a=this.Pf.indexOf(a)!=-1)&&this.q.trigger(c.rn);a&&this.q.trigger(c.mP)}};b.prototype.Vx=function(a){if(this.vc){this.vc.G(f.Vc).opacity=0.5;this.uE(this.vc).ga(f.so)}if(this.vc=a){this.vc.G(f.Vc).opacity=1;a=this.uE(this.vc).C(f.so);a.direction=
this.uDa(this.vc);a.min=this.vDa(this.vc)}};b.prototype.uDa=function(a){var b=i.getWorldPosition(this.k);return i.getWorldPosition(a).sub(b)};b.prototype.uE=function(a){return this.Pf.indexOf(a)!=-1?a:q};b.prototype.vDa=function(a){var b=this.VDa(a);if(b){var b=i.getWorldPosition(b),c=i.getWorldPosition(a).sub(b),d;switch(a){case this.tG:case this.sG:d=this.q.get("minWidth");break;case this.vG:case this.uG:d=this.q.get("minHeight");break;case this.xG:case this.wG:d=this.q.get("minDepth")}return b.add(c.setLength(d||
o))}};b.prototype.VDa=function(a){switch(a){case this.tG:return this.sG;case this.sG:return this.tG;case this.vG:return this.uG;case this.uG:return this.vG;case this.xG:return this.wG;case this.wG:return this.xG}return q};b.prototype.dispose=function(){d.na(this.q,k,this.Me);d.na(this.q,n,this.dk);d.na(this.q,r,this.el);var a=this.ra.R;this.Vg.forEach(function(b){a.bg(b)});this.q=this.ra=this.Pf=this.k=this.Vg=q};var o=1.0E-6,k=["draggableSphereRadius","draggableXControlsColor","draggableYControlsColor",
"draggableZControlsColor"],n=["depth","height","x","y","z","width"],r=["sizeDraggable"];return b});
define("cl","require,jU,lh,nU,fm,js,l".split(","),function(a){function b(a,b,n){this.ra=a;this.q=n;this.dk=this.dk.bind(this);this.Me=this.Me.bind(this);this.k=this.WAa();a=this.k.C(g.Hb);a.Qb=this.ra;a.id=this.q.get("parentId");this.Oq=this.n0();this.Oq.C(g.Hb).Qb=this.k;this.TI=this.jBa();this.TI.C(g.Hb).Qb=this.k;this.Vg=[this.k,this.Oq,this.TI];this.aA=new f(this.ra,this.k,this.q);this.i1=new i(this.ra,this.k,this.q);a=this.k.C(g.Ud);a.Zu=m;a.qv=m;a.La=this.q;d.pa(this.q,e,this.Me,m);d.pa(this.q,
j,this.dk,m);this.q.trigger(c.hc)}var d=a("jU");a("lh");var c=a("nU"),g=a("fm"),f=a("js"),i=a("l");b.prototype.frame=function(){this.aA.frame();this.i1.frame()};b.prototype.WAa=function(){var a=this.ra.R.Ld("Box");a.C(g.Group);return a};b.prototype.n0=function(){var a=this.ra.R.Ld("BoxBorder");a.C(g.Line);a.C(g.Geometry).geometry=this.XAa();a.C(g.bj);return a};b.prototype.jBa=function(){var a=this.ra.R.Ld("BoxFace");a.C(g.Mesh);a.C(g.Geometry).geometry=new THREE.BoxGeometry(1,1,1);a.C(g.Vc);return a};
b.prototype.XAa=function(){var a=[new THREE.Vector3(-0.5,-0.5,0.5),new THREE.Vector3(0.5,-0.5,0.5),new THREE.Vector3(0.5,-0.5,0.5),new THREE.Vector3(0.5,0.5,0.5),new THREE.Vector3(0.5,0.5,0.5),new THREE.Vector3(-0.5,0.5,0.5),new THREE.Vector3(-0.5,0.5,0.5),new THREE.Vector3(-0.5,-0.5,0.5),new THREE.Vector3(-0.5,-0.5,-0.5),new THREE.Vector3(0.5,-0.5,-0.5),new THREE.Vector3(0.5,-0.5,-0.5),new THREE.Vector3(0.5,0.5,-0.5),new THREE.Vector3(0.5,0.5,-0.5),new THREE.Vector3(-0.5,0.5,-0.5),new THREE.Vector3(-0.5,
0.5,-0.5),new THREE.Vector3(-0.5,-0.5,-0.5),new THREE.Vector3(-0.5,-0.5,0.5),new THREE.Vector3(-0.5,-0.5,-0.5),new THREE.Vector3(0.5,-0.5,0.5),new THREE.Vector3(0.5,-0.5,-0.5),new THREE.Vector3(-0.5,0.5,0.5),new THREE.Vector3(-0.5,0.5,-0.5),new THREE.Vector3(0.5,0.5,0.5),new THREE.Vector3(0.5,0.5,-0.5)];return(new THREE.BufferGeometry).setFromPoints(a)};b.prototype.Me=function(){var a=this.Oq.G(g.bj);a.color=this.q.get("lineColor");a.opacity=this.q.get("lineOpacity");a.width=this.q.get("lineWidth");
a.depthTest=this.q.get("depthTest");a=this.TI.G(g.Vc);a.color=this.q.get("faceColor");a.opacity=this.q.get("faceOpacity");a.depthTest=this.q.get("depthTest");a=this.k.G(g.Ud,m);a.dn=this.q.get("useHandCursor");a.HO=this.q.get("transparentAreaActive")};b.prototype.dk=function(){var a=this.k.G(g.va,m);a.Ue=this.q.get("x");a.ve=this.q.get("y");a.cg=this.q.get("z");var a=this.Oq.G(g.va,m),b=this.TI.G(g.va,m);b.sg=a.sg=this.q.get("width");b.Lg=a.Lg=this.q.get("height");b.si=a.si=this.q.get("depth")};b.prototype.dispose=
function(){this.i1.dispose();this.i1=q;this.aA.dispose();this.aA=q;d.na(this.q,e,this.Me);d.na(this.q,j,this.dk);var a=this.ra.R;this.Vg.forEach(function(b){a.bg(b)});this.ra=this.TI=this.Oq=this.k=this.Vg=q;this.q.trigger(c.nc);this.q=q};var e=["transparentAreaActive","useHandCursor"],j=["depth","height","x","y","z","width"];return b});
define("Z",["require"],function(){var a={kn:function(){this.sTa=this.ova=this.rTa=this.sva=this.rva=this.qva=0;this.AO=B;this.ws=new THREE.CubeTexture;this.FTa=this.Gva=this.ETa=this.Jva=this.Iva=this.Hva=0;this.EO=B;this.xs=new THREE.CubeTexture;this.rg="XYZ";this.position=1},nVa:function(){return new a.kn},create:function(a){var b=new THREE.ShaderMaterial;b.uniforms={sCube:{value:a.ws},sPos:{value:new THREE.Vector3},sRot:{value:new THREE.Matrix4},sEnabled:{value:B},tCube:{value:a.xs},tPos:{value:new THREE.Vector3},
tRot:{value:new THREE.Matrix4},tEnabled:{value:B},blendingCoef:{value:0}};b.fragmentShader="uniform samplerCube sCube;\nuniform vec3 sPos;\nuniform mat4 sRot;\nuniform bool sEnabled;\nuniform samplerCube tCube;\nuniform vec3 tPos;\nuniform mat4 tRot;\nuniform bool tEnabled;\nuniform float blendingCoef;\nvarying vec3 vWorldPosition;\nvoid main() {\n    vec4 sFragColor;\n    vec4 tFragColor;\n    if (sEnabled) \n    {\n        vec4 sCubePosition4 = sRot * vec4((vWorldPosition - sPos), 1);\n        vec3 sCubePosition = sCubePosition4.xyz / sCubePosition4.w;\n\t    sFragColor = textureCube(sCube, sCubePosition);\n    }\n    if (tEnabled)\n    {\n        vec4 tCubePosition4 = tRot * vec4((vWorldPosition - tPos), 1);\n        vec3 tCubePosition = tCubePosition4.xyz / tCubePosition4.w;\n\t    tFragColor = textureCube(tCube, tCubePosition);\n    }\n    if (sEnabled && tEnabled)\n    {\n        gl_FragColor = mix(sFragColor, tFragColor, blendingCoef);     \n    }\n    else if (sEnabled)\n    {        \n        gl_FragColor = vec4(sFragColor.rgb, sFragColor.a * (1.0 - blendingCoef));\n    }\n    else if (tEnabled)\n    {\n        gl_FragColor = vec4(tFragColor.rgb, tFragColor.a * blendingCoef);\n    }\n    #include <encodings_fragment>\n}";
b.vertexShader="varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;\n   gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}";b.side=THREE.DoubleSide;b.depthWrite=m;b.transparent=m;b.needsUpdate=m;this.update(b,a);return b},update:function(a,g){a.uniforms.sCube.value=g.ws;a.uniforms.sPos.value.set(g.qva,g.rva,g.sva);a.uniforms.sRot.value.makeRotationFromEuler(b.set(g.rTa*d,g.ova*d,g.sTa*d,g.rg));a.uniforms.sEnabled.value=
g.AO;a.uniforms.tCube.value=g.xs;a.uniforms.tPos.value.set(g.Hva,g.Iva,g.Jva);a.uniforms.tRot.value.makeRotationFromEuler(b.set(g.ETa*d,g.Gva*d,g.FTa*d,g.rg));a.uniforms.tEnabled.value=g.EO;a.uniforms.blendingCoef.value=g.position;a.needsUpdate=m;return a}},b=new THREE.Euler,d=Math.PI/180;return a});
define("lj",["require","jU","Z","fm","cf"],function(a){function b(a,b,c){this.ra=a;this.Rf=b;this.q=c;this.ku=this.ku.bind(this);this.k=this.ra.R.Ld("ProjectedMaterial");this.Wc=this.da=this.Pb=q}var d=a("jU"),c=a("Z"),g=a("fm"),f=a("cf");b.prototype.frame=function(){!this.Wc&&f.ec(this.Rf)&&this.lKa()};b.prototype.lKa=function(){this.Pb=new c.kn;this.da=c.create(this.Pb);this.da.polygonOffset=m;this.da.polygonOffsetUnits=1;this.da.polygonOffsetFactor=-10;this.da.needsUpdate=m;this.Wc=this.ABa();
this.k.C(g.Object3D).Yc=this.Wc;var a=this.k.C(g.Hb);a.Qb=this.ra;a.id=this.q.get("parentId");a.attach=m;d.pa(this.q,e,this.ku,m)};b.prototype.ABa=function(){var a=f.ec(this.Rf),b=new Map;a.traverse(function(a){if(a.material&&a.userData){var c={};a.material&&(c.material=a.material,a.material=this.da);a.userData&&(c.userData=a.userData,a.userData={});b.set(a,c)}}.bind(this));a=a.clone();b.forEach(function(a,b){a.material&&(b.material=a.material);a.userData&&(b.userData=a.userData)});var c=f.io(this.Rf),
d=c&&f.HN(c);this.WL=new THREE.Mesh(new THREE.BoxGeometry(2,2,2),this.da);this.iE=c&&f.Ora(c);f.ANa(d,this.WL);return a};b.prototype.ku=function(){this.Pb.texture||(this.Pb.texture=new THREE.CubeTexture);this.Pb.texture.image!=this.q.get("faces")&&(this.Pb.texture.image=this.q.get("faces"),this.Pb.texture.encoding=THREE.sRGBEncoding,this.Pb.texture.needsUpdate=m);this.q.get("sourceFaces")?(this.Pb.ws.image!=this.q.get("sourceFaces")&&(this.Pb.ws&&this.Pb.ws.dispose(),this.Pb.ws=new THREE.CubeTexture,
this.Pb.ws.image=this.q.get("sourceFaces"),this.Pb.ws.encoding=this.iE,this.Pb.ws.needsUpdate=m),this.Pb.qva=this.q.get("sourceX"),this.Pb.rva=this.q.get("sourceY"),this.Pb.sva=this.q.get("sourceZ"),this.Pb.ova=this.q.get("sourceYaw"),this.Pb.AO=m):this.Pb.AO=B;this.q.get("targetFaces")?(this.Pb.xs.image!=this.q.get("targetFaces")&&(this.Pb.xs&&this.Pb.xs.dispose(),this.Pb.xs=new THREE.CubeTexture,this.Pb.xs.image=this.q.get("targetFaces"),this.Pb.xs.encoding=this.iE,this.Pb.xs.needsUpdate=m),this.Pb.Hva=
this.q.get("targetX"),this.Pb.Iva=this.q.get("targetY"),this.Pb.Jva=this.q.get("targetZ"),this.Pb.Gva=this.q.get("targetYaw"),this.Pb.EO=m):this.Pb.EO=B;this.Pb.position=this.q.get("position");this.Pb.AO&&this.Pb.EO||this.Pb.AO&&0>=this.Pb.position||this.Pb.EO&&1<=this.Pb.position?f.ec(this.Rf).visible=B:f.ec(this.Rf).visible=m;c.update(this.da,this.Pb);this.k.R.pb()};var i=new THREE.MeshBasicMaterial;b.prototype.dispose=function(){f.ec(this.Rf).visible=m;this.Wc&&this.Wc.traverse(function(a){a.material==
this.da&&(a.material=i)}.bind(this));this.WL&&(f.kRa(this.WL.parent,this.WL),this.WL=q);this.da&&(this.Pb.ws.dispose(),this.Pb.xs.dispose(),this.Pb.texture.dispose(),this.Pb=q,this.da.dispose(),this.da=q);d.na(this.q,e,this.ku);this.k&&this.k.R.bg(this.k);this.q=this.k=this.ra=q};var e="sourceX,sourceY,sourceZ,sourceYaw,sourceFaces,targetX,targetY,targetZ,targetYaw,targetFaces,position".split(",");return b});
define("cA","require,jU,nU,fQ,fm,cf".split(","),function(a){function b(a,b,c){this.ra=a;this.k=b;this.q=c;this.gF=this.gF.bind(this);this.Me=this.Me.bind(this);this.el=this.el.bind(this);this.vc=q;this.N=B;this.Ff=1;this.Sg=this.ra.R.Ld("DraggingSize2DContainer");this.Sg.C(f.Group);this.Sg.C(f.va);this.Pf=[this.T3=this.So(),this.L3=this.So(),this.q6=this.So(),this.U5=this.So()];this.Pf.forEach(function(a){a.C(f.va);a=a.G(f.Vc);a.color="#ffffff";a.opacity=0.5;a.depthTest=B}.bind(this));this.Oq=this.n0();
this.Vg=[this.Sg,this.Oq].concat(this.Pf);[this.Oq].concat(this.Pf).forEach(function(a){a.C(f.Hb).Qb=this.Sg}.bind(this));d.pa(this.q,u,this.gF,m);d.pa(this.q,s,this.Me,m);d.pa(this.q,v,this.el,m)}var d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),i=a("cf"),e=new THREE.Matrix4,j=new THREE.Vector3,o=new THREE.Vector3;new THREE.Quaternion;new THREE.Vector3;var k=new THREE.Quaternion,n=new THREE.Vector3,r=new THREE.Vector3,p=new THREE.Euler,t=180/Math.PI;b.prototype.frame=function(){if(this.N){var a=i.ec(this.Sg),
b=a&&i.a$(a),c=b&&i.HN(b);if(c){if(this.vc){var d=i.Pra(b),b=i.xW(b);i.getWorldPosition(this.k,r).project(c);r.x=(r.x+1)*d*0.5;r.y=(1-r.y)*b*0.5;i.getWorldPosition(this.vc,n).project(c);n.x=(n.x+1)*d*0.5;n.y=(1-n.y)*b*0.5;var d=this.q.get("anchorX"),b=this.q.get("anchorY"),g,s,u=r.x-n.x,v=n.y-r.y,z=-u,L=-v;if(this.L3===this.vc&&(d>0||b<1))u>v?g=u/d:s=v/(1-b);else if(this.U5===this.vc&&(d<1||b<1))z>v?g=z/(1-d):s=v/(1-b);else if(this.T3===this.vc&&(d>0||b>0))u>L?g=u/d:s=L/b;else if(this.q6===this.vc&&
(d<1||b>0))z>L?g=z/(1-d):s=L/b;s!==l&&g===l?g=s*this.pea:g!==l&&s===l&&(s=g/this.pea);if(g!==l&&s!==l){this.q.set("width",this.Z=g);this.q.set("height",this.ia=s)}}g=this.Sg.getComponent(f.va);e.copy(a.parent.matrixWorld).invert().multiply(c.matrixWorld).decompose(j,k,o);p.setFromQuaternion(k,g.rg);p.x=p.x*t;p.y=p.y*t;p.z=p.z*t;if(g.lf!=p.x||g.Ie!=p.y||g.mf!=p.z){g=this.Sg.G(f.va);g.lf=p.x;g.Ie=p.y;g.mf=p.z}this.LL(i.TG(this.Sg)||1)}}};b.prototype.cMa=function(a,b){this.X7!=q&&clearTimeout(this.X7);
this.X7=setTimeout(function(){this.X7=q;if(this.Z!==a||this.ia!==b){this.Z=a;this.ia=b;this.pea=this.Z/this.ia}}.bind(this),100)};b.prototype.So=function(){var a=this.ra.R.Ld("DraggingSphere");a.C(f.Mesh).renderOrder=2;a.C(f.Geometry).geometry=new THREE.SphereGeometry;a.C(f.Vc);return a};b.prototype.n0=function(){var a=this.ra.R.Ld("BoxBorder");a.C(f.Line);a.C(f.Geometry).geometry=this.IBa();var b=a.C(f.bj);b.color="#0000ff";b.depthTest=B;b.width=1;return a};b.prototype.IBa=function(){var a=[new THREE.Vector3(-0.5,
-0.5,0),new THREE.Vector3(0.5,-0.5,0),new THREE.Vector3(0.5,-0.5,0),new THREE.Vector3(0.5,0.5,0),new THREE.Vector3(0.5,0.5,0),new THREE.Vector3(-0.5,0.5,0),new THREE.Vector3(-0.5,0.5,0),new THREE.Vector3(-0.5,-0.5,0)];return(new THREE.BufferGeometry).setFromPoints(a)};b.prototype.Me=function(){var a=this.Oq.G(f.bj);a.color=this.q.get("draggableLineColor");a.opacity=this.q.get("draggableLineOpacity");a.width=this.q.get("draggableLineWidth");this.Pf.forEach(function(a){a.G(f.Vc).color=this.q.get("draggableSphereColor");
a.G(f.va).scale=this.q.get("draggableSphereRadius")*this.Ff}.bind(this))};b.prototype.LL=function(a){if(this.Ff!=a){this.Ff=a;this.gF();this.Me()}};b.prototype.gF=function(){var a=this.q.get("anchorX"),b=this.q.get("anchorY"),c=this.q.get("width"),d=this.q.get("height");transformComponent=this.T3.G(f.va,m);transformComponent.Ue=-a*c*this.Ff;transformComponent.ve=b*d*this.Ff;transformComponent=this.q6.G(f.va,m);transformComponent.Ue=(1-a)*c*this.Ff;transformComponent.ve=b*d*this.Ff;transformComponent=
this.L3.G(f.va,m);transformComponent.Ue=-a*c*this.Ff;transformComponent.ve=(b-1)*d*this.Ff;transformComponent=this.U5.G(f.va,m);transformComponent.Ue=(1-a)*c*this.Ff;transformComponent.ve=(b-1)*d*this.Ff;transformComponent=this.Oq.G(f.va,m);transformComponent.Ue=(0.5-a)*c*this.Ff;transformComponent.ve=(b-0.5)*d*this.Ff;transformComponent.sg=c*this.Ff;transformComponent.Lg=d*this.Ff;this.cMa(c,d)};b.prototype.el=function(){var a=this.q.get("sizeDraggable");if(this.N!=a)if(this.N=a){this.Sg.C(f.Hb).Qb=
this.k;this.Pf.forEach(function(a){a=a.C(f.Ud);a.qv=m;a.Zu=m;a.La=new g;a.La.bind(c.bc,this.ZE,this,m);a.La.bind(c.rb,this.A4,this,m);a.La.bind(c.zb,this.y4,this,m);a.La.bind(c.Wb,this.z4,this,m)}.bind(this))}else{this.Sg.ga(f.Hb);this.Pf.forEach(function(a){a.ga(f.Ud)}.bind(this))}};b.prototype.ZE=function(a){if((a=this.Pk(a))&&a!=this.vc)a.G(f.Vc).opacity=1};b.prototype.A4=function(a){if((a=this.Pk(a))&&a!=this.vc)a.G(f.Vc).opacity=0.5};b.prototype.y4=function(a){this.Vx(this.Pk(a))};b.prototype.z4=
function(a){if((a=this.Pk(a))&&a==this.vc){this.Vx(q);this.gF();(a=this.Pf.indexOf(a)!=-1)&&this.q.trigger(c.rn);a&&this.q.trigger(c.mP)}};b.prototype.Pk=function(a){a=this.Pf.map(function(a){return a.getComponent(f.Ud).La}).indexOf(a.source);if(a==-1)return q;a=this.Pf[a];return!this.vFa(a)?q:a};b.prototype.vFa=function(a){var b=this.q.get("anchorX"),c=this.q.get("anchorY");return this.L3===a&&(b>0||c>0)||this.U5===a&&(b<1||c>0)||this.T3===a&&(b>0||c<1)||this.q6===a&&(b<1||c<1)?m:B};b.prototype.Vx=
function(a){if(this.vc){this.vc.G(f.Vc).opacity=0.5;this.uE(this.vc).ga(f.so)}if(this.vc=a){this.vc.G(f.Vc).opacity=1;var b=this.uE(this.vc).C(f.so),c=i.getWorldPosition(this.k),a=i.getWorldPosition(a),a=(new THREE.Vector3).copy(a).sub(c),d=Math.min(a.length(),this.Ff*10),c=(new THREE.Vector3).copy(c).add(j.copy(a).setLength(d));b.direction=a;b.min=c}};b.prototype.uE=function(a){return this.Pf.indexOf(a)!=-1?a:q};b.prototype.dispose=function(){d.na(this.q,u,this.gF);d.na(this.q,s,this.Me);d.na(this.q,
v,this.el);var a=this.ra.R;this.Vg.forEach(function(b){a.bg(b)});this.q=this.ra=this.Pf=this.k=this.Vg=q};var s=["draggableLineColor","draggableLineOpacity","draggableLineWidth","draggableSphereColor","draggableSphereRadius"],u=["anchorX","anchorY","height","x","y","z","width"],v=["sizeDraggable"];return b});
define("hF","require,jU,hy,fm,js,cA,cf".split(","),function(a){function b(a,b,e,j,o){this.ra=a;this.re=e;this.wj=j;this.q=o;this.dk=this.dk.bind(this);this.CK=this.CK.bind(this);this.Me=this.Me.bind(this);this.TS=this.TS.bind(this);this.di=this.re.ZB(1);this.q.get("preload")&&this.wj.cN(loadingEventDispatcher);this.k=this.ra.R.Ld("SpriteContainer");this.k.C(g.Group);a=this.k.C(g.Hb);a.Qb=this.ra;a.id=this.q.get("parentId");this.wM=this.ra.R.Ld("TranslationSpriteContainer");this.wM.C(g.Group);this.wM.C(g.Hb).Qb=
this.k;this.Er=this.ra.R.Ld("Sprite");this.Er.C(g.Hb).Qb=this.wM;a=this.Er.C(g.Ls);a.Fb=this.q;a.Asa=this.q.get("image");a.La=this.q;a.eH=this.di;a.isSprite=m;a.Fe=this.q.get("preload")?c.hD:c.fxa;this.Er.C(g.Sprite).renderOrder=2;this.Er.C(g.Ud).La=this.q;this.Er.C(g.Py);this.Er.C(g.VO).object=this.q;this.O3=B;this.Ff=1;this.bx=this.k.R.Ld("TranslationLine");this.bx.C(g.Line).renderOrder=1;this.bx.C(g.bj);this.aA=new f(this.ra,this.k,this.q);this.h1=new i(this.ra,this.wM,this.q);d.pa(this.q,p,this.dk,
m);d.pa(this.q,s,this.CK,m);d.pa(this.q,u,this.Me,m);d.pa(this.q,t,this.TS,m)}var d=a("jU"),c=a("hy"),g=a("fm"),f=a("js"),i=a("cA"),e=a("cf");b.prototype.frame=function(){this.aA.frame();this.h1.frame();this.LL(e.TG(this.k)||1)};b.prototype.dk=function(){if(this.k.C(g.Hb).id!=this.q.get("parentId"))this.k.G(g.Hb).id=this.q.get("parentId");var a=this.k.G(g.va,m);a.Ue=this.q.get("x");a.ve=this.q.get("y");a.cg=this.q.get("z")};b.prototype.LL=function(a){if(this.Ff!=a){this.Ff=a;this.CK()}};b.prototype.CK=
function(){var a=this.wM.G(g.va,m),b=this.q.get("translationLength");k.set(this.q.get("translationX"),this.q.get("translationY"),this.q.get("translationZ"));b!==l&&k.setLength(b*this.Ff);a.Og=k.x;a.tg=k.y;a.Kf=k.z;b=this.bx.G(g.va,m);k.set(a.Og,a.tg,a.Kf);b.scale=k.length();j.setFromUnitVectors(n,k.normalize());o.setFromQuaternion(j,b.rg);o.x=o.x*r;o.y=o.y*r;o.z=o.z*r;b.lf=o.x;b.Ie=o.y;b.mf=o.z;this.hpa()};var j=new THREE.Quaternion,o=new THREE.Euler,k=new THREE.Vector3,n=new THREE.Vector3(0,0,1),
r=180/Math.PI;b.prototype.Me=function(){var a=this.Er.G(g.Ud,m);a.dn=this.q.get("useHandCursor");a.HO=this.q.get("transparentAreaActive");a.Zu=this.q.get("clickEnabled");a.qv=this.q.get("rollOverEnabled");a=this.bx.G(g.bj);a.color=this.q.get("translationLineColor");a.depthTest=this.q.get("depthTest");a.opacity=this.q.get("translationLineOpacity");a.width=this.q.get("translationLineWidth");this.hpa()};b.prototype.TS=function(){var a=this.Er.G(g.Sprite,m);a.zG=this.q.get("anchorX");a.AG=this.q.get("anchorY");
a.width=this.q.get("width");a.height=this.q.get("height");a.scale=this.q.get("scale")};b.prototype.hpa=function(){var a=this.q.get("translationLineVisible")&&this.q.get("translationLineOpacity")>0&&(this.q.get("translationX")!=0||this.q.get("translationY")!=0||this.q.get("translationZ")!=0);if(this.O3!=a)(this.O3=a)?this.bx.C(g.Hb).Qb=this.k:this.bx.ga(g.Hb)};b.prototype.dispose=function(){this.aA.dispose();this.aA=q;this.h1.dispose();this.h1=q;d.na(this.q,p,this.dk);d.na(this.q,s,this.CK);d.na(this.q,
u,this.Me);d.na(this.q,t,this.TS);this.re.mX(this.di);this.wj.mX(this.THa);this.THa=this.re=q;var a=this.ra.R;this.ra=q;a.bg(this.Er);this.Er=q;a.bg(this.bx);this.bx=q;a.bg(this.k);this.q=this.k=q};var p=["parentId","x","y","z"],t=["anchorX","anchorY","width","height","scale"],s=["translationX","translationY","translationZ","translationLength"],u=["clickEnabled","depthTest","rollOverEnabled","transparentAreaActive","translationLineColor","translationLineOpacity","translationLineVisible","translationLineWidth",
"useHandCursor"];return b});define("fD",["require","eQ","cl","lj","hF"],function(a){var b=a("eQ"),d=a("cl"),c=a("lj"),g=a("hF");return{create:function(a,i,e,j,o){return b.xa("SpriteModel3DObject",o)?new g(a,i,e,j,o):b.xa("BoxModel3DObject",o)?new d(a,i,o):b.xa("ProjectedMaterialModel3DObject",o)?new c(a,i,o):q}}});
define("kl",["require","jU","fm","fD"],function(a){function b(a,b,e,g){this.k=a;this.Rf=b;this.re=e;this.wj=g;this.$A=this.$A.bind(this);this.Wu=a.R;this.j=this.k.getComponent(c.yg).Fb;this.ta=(a=this.k.getComponent(c.Object3D))&&a.Yc;this.Vf=[];this.wS=new Map;d.pa(this.j,["objects.enabled"],this.$A,m)}var d=a("jU"),c=a("fm"),g=a("fD");b.prototype.update=function(){var a=this.k.getComponent(c.Object3D),a=a&&a.Yc;if(this.ta!==a){var b=this.ta;this.ta=a;this.oV(!!b)}};b.prototype.frame=function(){this.wS.forEach(function(a){a&&
a.frame&&a.frame()})};b.prototype.dispose=function(){this.ta=q;d.na(this.j,["objects.enabled"],this.$A);this.KL([])};b.prototype.$A=function(){this.oV()};b.prototype.oV=function(a){this.KL(this.j.get("objects").filter(function(a){return a.get("enabled")}),a)};b.prototype.KL=function(a,b){if(this.Vf!=a||b)this.Vf.forEach(function(c){(b||0>a.indexOf(c))&&this.wIa(c)}.bind(this)),a.forEach(function(a){(b||0>this.Vf.indexOf(a))&&this.Dya(a)}.bind(this)),this.Vf=a};b.prototype.Dya=function(a){this.wS.set(a,
g.create(this.k,this.Rf,this.re,this.wj,a))};b.prototype.wIa=function(a){var b=this.wS.get(a);b&&b.dispose();this.wS["delete"](a)};return b});
define("jE",["require","nU","fm"],function(a){function b(a,b){this.k=a;this.Rf=b;this.nj=this.ta=this.j=q;this.hT=new Map;this.rl(this.k.getComponent(c.yg).Fb);this.update()}var d=a("nU"),c=a("fm");b.prototype.update=function(){var a=this.Rf.getComponent(c.Object3D),a=a&&a.Yc;this.ta!=a&&(this.ta=a,this.Bz())};b.prototype.rl=function(a){this.j&&g.forEach(function(a){this.j.unbind(d.u(a),this.Bz,this,B)}.bind(this));if(this.j=a)g.forEach(function(a){this.j.bind(d.u(a),this.Bz,this,B)}.bind(this)),
this.Bz()};b.prototype.Bz=function(){this.rna(this.j.get("model"));if(this.ta){var a=this.j.get("castShadow"),b=this.j.get("receiveShadow"),c=this.j.get("bakedTextures");this.ta.traverse(function(d){if(d.isMesh&&(c?this.QAa(d):this.aU(d),a!==l&&(d.castShadow=a),b!==l))d.receiveShadow=b}.bind(this));this.k.R.pb()}};b.prototype.QAa=function(a){a.material&&!a.material.isMeshBasicMaterial&&!this.hT.get(a)&&(this.hT.set(a,a.material),a.material=(new THREE.MeshBasicMaterial).copy(a.material))};b.prototype.aU=
function(a){var b=a.material,c=this.hT.get(a);b&&c&&(this.hT["delete"](a),a.material=c)};b.prototype.rna=function(a){if(this.nj!=a&&(this.nj&&f.forEach(function(a){this.nj.unbind(d.u(a),this.r_,this,B)}.bind(this)),this.nj=a))f.forEach(function(a){this.nj.bind(d.u(a),this.r_,this,B)}.bind(this)),this.r_()};b.prototype.r_=function(){var a=this.Rf.G(c.va,m);a.Ue=this.nj.get("positionX");a.ve=this.nj.get("positionY");a.cg=this.nj.get("positionZ");a.lf=this.nj.get("rotationX");a.Ie=this.nj.get("rotationY");
a.mf=this.nj.get("rotationZ");a.scale=this.nj.get("scale");a.Og=this.nj.get("translationX");a.tg=this.nj.get("translationY");a.Kf=this.nj.get("translationZ")};b.prototype.dispose=function(){this.ta.traverse(function(a){a.isMesh&&this.aU(a)}.bind(this));this.ta=q;this.rna(q);this.rl(q)};var g=["bakedTextures","castShadow","model","receiveShadow"],f="positionX,positionY,positionZ,rotationX,rotationY,rotationZ,scale,translationX,translationY,translationZ".split(",");return b});
define("bM","require,nU,cs,om,fm,jc,lG,eq,kl,jE".split(","),function(a){function b(a){this.k=a;this.k.C(f.Group);this.Rf=this.k.R.Ld("GLTF");this.Rf.C(f.Hb).Qb=this.k;a=this.k.getComponent(f.yg);this.wj=new g(a.iua);this.re=new g(a.eH);this.Wd=a.La;this.ex=new j(this.k,this.Rf,this.re,this.wj);this.Vf=new o(this.k,this.Rf,this.re,this.wj);this.$t=new e(this.k);this.pe=new i(this.k);this.j=new k(this.k,this.Rf)}var d=a("nU"),c=a("cs"),g=a("om"),f=a("fm"),i=a("jc"),e=a("lG"),j=a("eq"),o=a("kl"),k=a("jE");
b.prototype.update=function(){this.ex.update();this.Vf.update();this.j.update();this.$t.update();this.pe.update()};b.prototype.frame=function(){this.Vf.frame();this.pe.frame();this.Wd.trigger(new c(d.hz))};b.prototype.dispose=function(){if(this.pe){this.pe.dispose();this.pe=q}if(this.ex){this.ex.dispose();this.ex=q}if(this.Vf){this.Vf.dispose();this.Vf=q}if(this.$t){this.$t.dispose();this.$t=q}if(this.j){this.j.dispose();this.j=q}if(this.re){this.re.dispose();this.re=q}if(this.Rf){this.Rf.R.bg(this.Rf);
this.Rf=q}this.Wd=q};b.xc=function(a){a.C(f.Ps).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(f.Ps);b.manager.dispose();b.manager=q;a.ga(f.Ps)};b.update=function(a){a.getComponent(f.Ps).manager.update()};b.frame=function(a){a.getComponent(f.Ps).manager.frame()};return b});
define("kn",["require","kG","kR","fm","bM"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("bM"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.zta.entities.length&&this.zta.entities.slice().forEach(g.xc);this.$W.Ra.length&&this.$W.Ra.slice().forEach(g.update);this.$W.entities.length&&this.$W.entities.slice().forEach(g.frame);this.Ata.entities.length&&this.Ata.entities.slice().forEach(g.Kb)};a.A={};a.A.zta=[c.yg,c.Ps.not];a.A.$W=[c.yg,c.Ps];a.A.Ata=[c.yg.not,
c.Ps];return a});
define("cc",["require","fm","cf"],function(a){function b(a){this.k=a;this.Wc=q}var d=a("fm"),c=a("cf");b.prototype.frame=function(){if(!this.Wc){var a=this.k.getComponent(d.mD),b=c.ec(a.container);if(this.Wc=b&&a.id&&c.gC(b,a.id)||q)this.k.C(d.Object3D).Yc=this.Wc,this.k.R.pb()}};b.prototype.update=function(){this.Wc&&(this.k.ga(d.Object3D),this.Wc=q)};b.prototype.dispose=function(){this.Wc&&(this.k.ga(d.Object3D),this.Wc=q)};b.xc=function(a){a.C(d.Rs).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.Rs);
b.manager.dispose();b.manager=q;a.ga(d.Rs)};b.frame=function(a){a.getComponent(d.Rs).manager.frame()};b.update=function(a){a.getComponent(d.Rs).manager.update()};return b});
define("gG",["require","kG","kR","fm","cc"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("cc"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Lta.entities.length&&this.Lta.entities.slice().forEach(g.xc);this.dX.Ra.length&&this.dX.Ra.slice().forEach(g.update);this.dX.entities.length&&this.dX.entities.slice().forEach(g.frame);this.Mta.entities.length&&this.Mta.entities.slice().forEach(g.Kb)};a.A={};a.A.Lta=[c.mD,c.Rs.not];a.A.dX=[c.mD,c.Rs];a.A.Mta=[c.mD.not,
c.Rs];return a});
define("nd",["require","fm"],function(a){function b(a){this.k=a;this.Iw=new THREE.PlaneGeometry;this.jS=this.k.C(d.Object3D).Yc=new THREE.Mesh(this.Iw);this.update()}var d=a("fm");b.prototype.update=function(){var a=this.k.getComponent(d.Material).material;a&&this.jS.material!=a&&(this.jS.material=a,this.jS.needsUpdate=m);this.jS.renderOrder=this.k.getComponent(d.Plane).renderOrder};b.prototype.dispose=function(){this.Iw.dispose();this.Iw=q};b.xc=function(a){a.C(d.Ts).manager=new b(a)};b.Kb=function(a){var b=
a.getComponent(d.Ts);b.manager.dispose();b.manager=q;a.ga(d.Ts);a.ga(d.Object3D)};b.update=function(a){a.getComponent(d.Ts).manager.update()};return b});
define("gB",["require","kG","kR","fm","nd"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("nd"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.bO.entities.length&&this.bO.entities.slice().forEach(g.xc);this.aO.Ra.length&&this.aO.Ra.slice().forEach(g.update);this.bua.entities.length&&this.bua.entities.slice().forEach(g.Kb);this.cua.entities.length&&this.cua.entities.slice().forEach(g.Kb)};a.A={};a.A.bO=[c.Material,c.Plane,c.Ts.not];a.A.aO=[c.Plane,c.Material,
c.Ts];a.A.bua=[c.Plane.not,c.Ts];a.A.cua=[c.Material.not,c.Ts];return a});
define("hq",["require","fm","cf"],function(a){var b=a("fm"),d=a("cf");return{xc:function(a){var g=a.getComponent(b.Hb),f=d.ec(g.Qb);if(f){var i=a.C(b.yq);i.parent=f;g.id&&(f=f&&d.gC(f,g.id));i.id=g.id;i.md=d.ec(a);i.attach=g.attach;f&&i.md&&(i.attach?f.attach(i.md):f.add(i.md))}},update:function(a){var g=a.getComponent(b.Hb),f=a.getComponent(b.yq),i=d.ec(g.Qb),e=d.ec(a);if(f.parent!=i||f.md!=e||g.id!=f.id||g.attach!=f.attach||e&&i&&!e.parent)f=a.G(b.yq),f.md&&f.md.parent&&(g.Qb.G(b.Object3D),f.md.parent.remove(f.md)),
f.parent=i,g.id&&(i=i&&d.gC(i,g.id)),f.id=g.id,f.md=e,f.attach=g.attach,i&&f.md&&(f.attach?i.attach(f.md):i.add(f.md))},Kb:function(a){var d=a.getComponent(b.yq);d.md&&d.md.parent&&d.md.parent.remove(d.md);d.parent=q;d.md=q;d.id=l;a.ga(b.yq)}}});
define("lZ",["require","kG","kR","fm","hq"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("hq"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.UN.entities.length&&this.UN.entities.slice().forEach(g.xc);this.gq.entities.length&&this.gq.entities.slice().forEach(g.update);this.gq.Ra.length&&this.gq.Ra.slice().forEach(g.update);this.gq.ag.length&&this.gq.ag.slice().forEach(g.update);this.Fqa.entities.length&&this.Fqa.entities.slice().forEach(g.Kb);this.Gqa.entities.length&&
this.Gqa.entities.slice().forEach(g.Kb)};a.A={};a.A.UN=[c.Object3D,c.Hb,c.yq.not];a.A.gq=[c.Object3D,c.Hb,c.yq];a.A.Fqa=[c.Object3D.not,c.Hb,c.yq];a.A.Gqa=[c.Hb.not,c.yq];return a});
define("cX",["require","kG","kR","fm","cf"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("cf"),a=b.extend(d,function(){d.apply(this,arguments);this.Xe=this.Xe.bind(this);this.nd=this.nd.bind(this);this.aC=this.aC.bind(this)});a.prototype.execute=function(){this.Yta.entities.length&&this.Yta.entities.slice().forEach(this.Xe);this.Xta.entities.length&&this.Xta.entities.slice().forEach(this.aC);this.Zta.entities.length&&this.Zta.entities.slice().forEach(this.nd);this.$ta.entities.length&&this.$ta.entities.slice().forEach(this.nd)};
a.prototype.Xe=function(a){a.C(c.mz)};a.prototype.nd=function(a){a.ga(c.mz)};var f=new THREE.Matrix4,i=new THREE.Vector3;a.prototype.aC=function(a){var b=a.getComponent(c.Eo),d=a.getComponent(c.va);if(d){var k=a.getComponent(c.Object3D).Yc;if(k&&k.parent){var n=1.0E-7;a.getComponent(c.zf)&&(n=g.TG(a)||n);f.copy(k.parent.matrixWorld).invert();i.setFromMatrixScale(f);k=Math.max(i.x,i.y,i.z);k*=b.scale;b.QN!==l&&(k=Math.min(b.QN*n,k));b.SN!==l&&(k=Math.max(b.SN*n,k));if(d.scale!=k||d.sg!=b.sg||d.Lg!=
b.Lg||d.si!=b.si)d=a.G(c.va),d.scale=k,d.sg=b.sg,d.Lg=b.Lg,d.si=b.si}}};a.A={};a.A.Yta=[c.Object3D,c.Eo,c.mz.not];a.A.Xta=[c.Object3D,c.Eo,c.mz];a.A.Zta=[c.Object3D.not,c.mz];a.A.$ta=[c.Eo.not,c.mz];return a});
define("dI",["require","nU","fm","cf"],function(a){function b(a){this.k=a;this.yx=q;this.fK=new THREE.Vector3;this.Pa=new THREE.Vector3;this.c3=this.Sd=this.H7=B;this.update()}var d=a("nU"),c=a("fm"),g=a("cf");b.prototype.update=function(){this.Y4=this.k.getComponent(c.Rj).Qb};b.prototype.frame=function(){this.qpa();this.Sm()};b.prototype.qpa=function(){var a=this.Y4&&this.Y4.getComponent(c.Ud),a=a&&a.La;if(this.yx!=a&&(this.yx&&(this.yx.unbind(d.ad,this.Wf,this,m),this.yx.unbind(d.rb,this.Dm,this,
m)),this.yx=a))this.yx.bind(d.ad,this.Wf,this,m),this.yx.bind(d.rb,this.Dm,this,m)};b.prototype.Wf=function(a){if("mesh"!=a.data.type)this.Dm();else{var b=this.Sd;this.Sd=m;var k=g.ec(this.k);if((k=k&&k.parent)&&k.matrixWorld){var n=this.k.getComponent(c.Rj);n&&(i.setFromMatrixPosition(k.matrixWorld),e.copy(k.matrixWorld).invert(),j.fromArray(a.data.objectMatrixWorld),f.setFromMatrixPosition(j),o.copy(j).invert(),n.rotate?a.data.normal?this.fK.copy(a.data.normal).applyMatrix4(j).sub(f).add(i):this.fK.copy(a.data.cameraPosition):
this.fK.copy(r),this.fK.applyMatrix4(e).normalize(),this.Pa.copy(a.data.position).applyMatrix4(e),this.H7=m,this.k.R.pb(),b||(a=this.k.getComponent(c.Rj).La)&&a.trigger(d.bc))}}};var f=new THREE.Vector3,i=new THREE.Vector3,e=new THREE.Matrix4,j=new THREE.Matrix4,o=new THREE.Matrix4;b.prototype.Dm=function(){if(this.Sd){this.Sd=B;this.k.R.pb();var a=this.k.getComponent(c.Rj).La;a&&a.trigger(d.rb)}};b.prototype.Sm=function(){if(this.H7||this.Sd){this.H7=B;var a=this.k.G(c.va,m);a.Ue=0;a.ve=0;a.cg=0;
k.setFromUnitVectors(n,this.fK);p.setFromQuaternion(k,a.rg);a.lf=p.x*t;a.Ie=p.y*t;a.mf=p.z*t;a.Og=this.Pa.x;a.tg=this.Pa.y;a.Kf=this.Pa.z;a.pN=this.c3?0.4:0;this.c3||(g.wX(this.k,a),this.c3=m)}};var k=new THREE.Quaternion,n=new THREE.Vector3(0,0,1),r=new THREE.Vector3(0,1,0),p=new THREE.Euler,t=180/Math.PI;b.prototype.dispose=function(){this.Y4=q;this.qpa()};b.xc=function(a){a.C(c.Aq).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(c.Aq);b.manager.dispose();b.manager=q;a.ga(c.Aq)};b.frame=
function(a){a.getComponent(c.Aq).manager.frame()};b.update=function(a){a.getComponent(c.Aq).manager.update()};return b});
define("hW",["require","kG","kR","fm","dI"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("dI"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.dua.entities.length&&this.dua.entities.slice().forEach(g.xc);this.hX.Ra.length&&this.hX.entities.slice().forEach(g.update);this.hX.entities.length&&this.hX.entities.slice().forEach(g.frame);this.eua.entities.length&&this.eua.entities.slice().forEach(g.Kb);this.fua.entities.length&&this.fua.entities.slice().forEach(g.Kb)};
a.A={};a.A.dua=[c.Object3D,c.Rj,c.Aq.not];a.A.hX=[c.Object3D,c.Rj,c.Aq];a.A.eua=[c.Object3D.not,c.Aq];a.A.fua=[c.Rj.not,c.Aq];return a});define("fK",["require","gZ"],function(a){return a("gZ")});
define("eB",["require","fm","nx","bC"],function(a){function b(a){this.k=a;this.enabled=B;this.km=q;this.Uq=0;this.passes=[];this.qi=this.ri=B;this.we=q;this.ia=this.Z=100}var d=a("fm"),c=a("nx"),g=a("bC");b.prototype.dispose=function(){this.we&&(this.we.saoRenderTarget.dispose(),this.we.blurIntermediateRenderTarget.dispose(),this.we.beautyRenderTarget.dispose(),this.we.normalRenderTarget.dispose(),this.we.depthRenderTarget.dispose(),this.we.depthMaterial.dispose(),this.we.normalMaterial.dispose(),
this.we.saoMaterial.dispose(),this.we.vBlurMaterial.dispose(),this.we.hBlurMaterial.dispose(),this.we.materialCopy.dispose(),this.we.depthCopy.dispose(),this.we=q)};b.prototype.update=function(a,b,e,j,o){var k=this.k.getComponent(d.SC),n=!!k;if(this.ri=this.enabled!=n)(this.enabled=n)?(!this.we&&a&&b&&(this.we=new THREE.SAOPass(a,b,B,m)),this.km=new c("linear",[new g("alpha",0,1,l)],500),this.Uq=0,this.passes=[this.we],this.qi=m):(this.passes=[],this.qi=B);if(this.enabled&&(this.km&&(this.km.xb(o),
this.Uq=this.km.gb("alpha"),1==this.Uq&&(this.km=q),this.k.R.pb()),k.output!==q&&(this.we.params.output=k.output),this.we.params.saoBias=k.bias/k.scale,this.we.params.saoIntensity=this.Uq*k.intensity,this.we.params.saoScale=k.scale,this.we.params.saoKernelRadius=k.Vsa,this.we.params.saoMinResolution=k.xta/1E3,this.we.params.saoBlur=0<k.o9,this.we.params.saoBlurRadius=k.o9,this.we.params.saoBlurStdDev=8,this.we.params.saoBlurDepthCutoff=0.01,this.Z!=e||this.ia!=j))this.we.setSize(this.Z=e,this.ia=
j)};return b});
define("p",["require","fm"],function(a){function b(a){this.k=a;this.enabled=B;this.passes=[];this.qi=this.ri=B;this.Hq=q}var d=a("fm");b.prototype.dispose=function(){this.Hq&&(this.Hq.material.dispose(),this.Hq=q)};b.prototype.update=function(a,b,f,i){a=this.k.getComponent(d.Ky);a=!!a&&a.ora;if(this.ri=this.enabled!=a)(this.enabled=a)?(this.Hq||(this.Hq=new THREE.ShaderPass(THREE.FXAAShader),this.Hq.needsSwap=m),this.passes=[this.Hq],this.qi=m):(this.passes=[],this.qi=B);if(this.enabled&&(this.Z!=
f||this.ia!=i))this.Z=f,this.ia=i,this.Hq.material.uniforms.resolution.value.x=1/this.Z,this.Hq.material.uniforms.resolution.value.y=1/this.ia,this.Hq.setSize(f,i)};return b});
define("nI",["require","mR","fm"],function(a){function b(a){this.k=a;this.enabled=B;this.passes=[];this.qi=this.ri=B;this.pt=q;this.eb=this.cc=l}var d=a("mR"),c=a("fm");b.prototype.dispose=function(){this.pt&&(this.pt.material.dispose(),this.pt=q)};b.prototype.update=function(){var a=this.k.getComponent(c.TO),b=!!a;if(this.ri=this.enabled!=b)(this.enabled=b)?(this.pt||(this.pt=new THREE.ShaderPass(g),this.pt.needsSwap=m),this.passes=[this.pt],this.qi=m):(this.passes=[],this.qi=B);if(this.enabled&&
(this.eb!==a.opacity&&(this.eb=a.opacity,this.pt.uniforms.opacity.value=this.eb),this.cc!==a.color))this.cc=a.color,this.pt.uniforms.color.value=new THREE.Color(d.OC(this.cc))};var g={uniforms:{tDiffuse:{value:q},opacity:{value:0.5},color:{value:new THREE.Color(0)}},vertexShader:"varying vec2 vUv;\nvoid main() {\n    vUv = uv;\n    gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform float opacity;\nuniform vec3 color;\nuniform sampler2D tDiffuse;\nvarying vec2 vUv;\nvoid main() {\n    vec4 texel = texture2D(tDiffuse, vUv);\n    float composedAlpha = opacity + texel.a * (1.0 - opacity);\n    if (composedAlpha > 0.0)\n    {\n        vec3 rgb = (color * opacity + texel.rgb * texel.a * (1.0 - opacity)) / composedAlpha;\n        gl_FragColor = vec4(rgb, composedAlpha);\n    }\n    else\n    {\n        gl_FragColor = texel;\n    }\n}"};
return b});
define("fF",["require","fm"],function(a){function b(a){this.k=a;this.enabled=B;this.km=q;this.Uq=0;this.passes=[];this.qi=this.ri=B;this.Ii=q;this.E5=new THREE.Matrix4;this.G5=new THREE.Matrix4;this.D5=new THREE.Vector3}var d=a("fm");b.prototype.dispose=function(){this.Ii&&(this.Ii.dispose(),this.Ii=q)};b.prototype.update=function(a,b){var f=this.k.getComponent(d.NH),i=!!f;if(this.ri=this.enabled!=i)(this.enabled=i)?(!this.Ii&&a&&b&&(this.Ii=new THREE.MotionBlurPass,this.Ii.needsSwap=m,this.E5.copy(b.matrixWorldInverse),
this.G5.copy(b.projectionMatrix),this.D5.copy(b.position)),this.passes=[this.Ii],this.qi=m):(this.passes=[],this.qi=B);this.enabled&&(this.Ii.uniforms.inverseProjectionMatrix.value.copy(b.projectionMatrix).invert(),this.Ii.uniforms.near.value=b.near,this.Ii.uniforms.far.value=b.far,this.Ii.uniforms.depthLimit.value=0.99,this.Ii.uniforms.clipToWorldMatrix.value.copy(b.matrixWorld).multiply(this.Ii.uniforms.inverseProjectionMatrix.value),this.Ii.uniforms.previousWorldToClipMatrix.value.copy(this.G5).multiply(this.E5),
this.Ii.uniforms.cameraMove.value.copy(b.position).sub(this.D5),this.Ii.uniforms.velocityFactor.value=f.intensity,this.Ii.uniforms.samples.value=f.yua);this.E5.copy(b.matrixWorldInverse);this.G5.copy(b.projectionMatrix);this.D5.copy(b.position)};return b});
define("ev",["require","mR","fm"],function(a){function b(a){this.k=a;this.enabled=m;this.passes=[];this.P$=this.qi=this.ri=B;this.JU=l;this.sh=this.Xf=this.pk=q}a("mR");var d=a("fm");b.prototype.dispose=function(){this.pk&&(this.pk.dispose(),this.pk=q);this.Xf&&(this.Xf=q);this.sh&&(this.sh.material.dispose(),this.sh=q)};b.prototype.update=function(a,b,f,i,e,j){e=this.k.getComponent(d.Ky);j=!!e&&e.Ava&&j;if(this.ri=this.JU!==j)(this.JU=j)?(this.pk||(this.pk=new THREE.SSAARenderPass(a,b),this.pk.sampleLevel=
e.CO,this.pk.needsSwap=m,this.pk.clear=m,this.pk.clearColor=0,this.pk.clearAlpha=0),this.sh||(this.sh=new THREE.ShaderPass(THREE.CopyShader),this.sh.needsSwap=m),this.passes=[this.pk,this.sh],this.P$=this.qi=m):(this.Xf||(this.Xf=new THREE.RenderPass,this.Xf.clear=m,this.Xf.clearColor=0,this.Xf.clearAlpha=0),this.passes=[this.Xf],this.P$=this.qi=B);this.JU?(this.pk.scene=a,this.pk.camera=b,this.pk.sampleLevel=e.CO,this.sh.uniforms.opacity.value=Math.pow(2,Math.round(5<e.CO?5:e.CO)),this.pk.setSize(f,
i)):(this.Xf.scene=a,this.Xf.camera=b,this.Xf.setSize(f,i))};return b});
define("mJ",["require","mR","fm"],function(a){function b(a){this.k=a;this.enabled=B;this.passes=[];this.qi=this.ri=B;this.Up=q;this.cc=l}var d=a("mR"),c=a("fm");b.prototype.dispose=function(){this.Up&&(this.Up.material.dispose(),this.Up=q)};b.prototype.update=function(){var a=this.k.getComponent(c.uD),b=!!a;if(this.ri=this.enabled!=b)(this.enabled=b)?(this.Up||(this.Up=new THREE.ShaderPass(g),this.Up.needsSwap=m),this.passes=[this.Up],this.qi=m):(this.passes=[],this.qi=B);this.enabled&&(this.Up.uniforms.innerRadius.value=
a.Bsa,this.Up.uniforms.outerRadius.value=a.Uta,this.Up.uniforms.opacity.value=a.opacity,this.cc!==a.color&&(this.cc=a.color,this.Up.uniforms.color.value=new THREE.Color(d.OC(this.cc))))};var g={uniforms:{tDiffuse:{value:q},innerRadius:{value:0.5},outerRadius:{value:0.5},opacity:{value:0.5},color:{value:new THREE.Color(0)}},vertexShader:"varying vec2 vUv;\nvoid main() {\n    vUv = uv;\n    gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform float innerRadius;\nuniform float outerRadius;\nuniform float opacity;\nuniform vec3 color;\nuniform sampler2D tDiffuse;\nvarying vec2 vUv;\nvoid main() {\n    vec4 texel = texture2D(tDiffuse, vUv);\n    vec2 uv = vUv - vec2(0.5, 0.5);\n    float radius = sqrt(dot(uv, uv)) * 1.4142135623730951;\n    float coef = clamp((radius - innerRadius) / (outerRadius - innerRadius), 0.0, 1.0);\n    float alpha = opacity * coef;\n    float composedAlpha = alpha + texel.a * (1.0 - alpha);\n    if (composedAlpha > 0.0)\n    {\n        vec3 rgb = (color * alpha + texel.rgb * texel.a * (1.0 - alpha)) / composedAlpha;\n        gl_FragColor = vec4(rgb, composedAlpha);\n    }\n    else\n    {\n        gl_FragColor = texel;\n    }\n}"};
return b});
define("gu","require,eB,p,nI,fF,ev,mJ,cf".split(","),function(a){function b(a){this.Sc=a;this.Aa=this.oa=this.rf=q;this.ia=this.Z=l;this.sh=this.Xq=this.h=this.EF=q;this.OQ=[new i(a),new d(a),new f(a),new e(a),new c(a),new g(a)];this.vS=B}var d=a("eB"),c=a("p"),g=a("nI"),f=a("fF"),i=a("ev"),e=a("mJ"),j=a("cf");b.prototype.dispose=function(){if(this.h)this.h.domElement.style.backgroundColor=l;for(;this.OQ.length;)this.OQ.pop().dispose();this.dga();if(this.Xq){this.Xq.material.dispose();this.Xq=q}if(this.sh){this.sh.material.dispose();
this.sh=q}};b.prototype.setSize=function(a,b){if(this.Z!=a||this.ia!=b){this.Z=a;this.ia=b;this.rf&&this.rf.setSize(this.Z,this.ia);this.h&&this.h.setSize(this.Z,this.ia)}};b.prototype.uH=R("Aa");b.prototype.sv=R("oa");b.prototype.setRenderTarget=function(a){if(this.EF!=a){this.EF=a;if(this.rf){this.rf.reset(a||l);this.rf.renderToScreen=!a}}};b.prototype.PSa=function(a){if(this.h!=a){this.h=a;this.h.setSize(this.Z,this.ia);this.dga()}};b.prototype.render=function(a){this.nKa();this.oMa(a);this.h.domElement.style.backgroundColor=
this.vS?"#000000":l;this.rf.render()};b.prototype.nKa=function(){if(!this.rf){this.rf=new THREE.EffectComposer(this.h,this.EF||l);this.rf.renderToScreen=!this.EF;this.rf.setSize(this.Z,this.ia)}};b.prototype.oMa=function(a){var b=B,c=B;this.vS=B;this.OQ.forEach(function(d){d.update(this.Aa,this.oa,this.Z,this.ia,a,this.rf.renderToScreen);b||(b=d.ri);c||(c=d.qi);this.vS||(this.vS=d.P$)}.bind(this));c=c&&this.h.outputEncoding==THREE.sRGBEncoding&&this.rf.renderToScreen;j.USa(this.Aa,c);if(c&&!this.Xq){this.Xq=
new THREE.ShaderPass(THREE.GammaCorrectionShader);b=this.Xq.needsSwap=m}else if(this.Xq)this.Xq.enabled=c;if(!this.rf.renderToScreen&&!this.sh){this.sh=new THREE.ShaderPass(THREE.CopyShader);b=this.sh.needsSwap=m}else if(this.sh)this.sh.enabled=!this.rf.renderToScreen;if(b){var d=[];this.OQ.forEach(function(a){d=d.concat(a.passes)});this.Xq&&d.push(this.Xq);for(this.sh&&d.push(this.sh);this.rf.passes.length>0;)this.rf.removePass(this.rf.passes[this.rf.passes.length-1]);d.forEach(function(a){this.rf.addPass(a)}.bind(this))}};
b.prototype.dga=function(){if(this.rf){this.rf.renderTarget1!=this.EF&&this.rf.renderTarget1.dispose();this.rf.renderTarget2!=this.EF&&this.rf.renderTarget2.dispose();this.rf=q}};return b});
define("cU",["require","t","fm","cf","gu"],function(a){function b(a){this.jaa=a;this.opacity=0;this.height=this.width=l;this.renderTarget=q;this.Aa=l;this.Nma=B;this.Mma=m;this.oa=l;this.oB=B;this.iT=l;this.lc=new f(a);this.update()}var d=a("t"),c=a("fm"),g=a("cf"),f=a("gu");b.prototype.update=function(){var a=this.jaa.getComponent(c.Scene);this.opacity=a&&a.opacity||0;this.Nma=a?a.locked:B;this.Mma=a?a.enabled:m;var b=a&&a.scene;this.Aa!=b&&(this.Aa=b,this.oB=m,this.lc.uH(this.Aa));var d=(b=(b=a&&
a.co)&&(b.getComponent(c.OrthographicCamera)||b.getComponent(c.PerspectiveCamera)))&&b.width,f=b&&b.height;if(this.width!=d||this.height!=f)this.width=d,this.height=f,this.oB=m,this.lc.setSize(this.width,this.height);a=a&&"srgb"==a.outputEncoding?THREE.sRGBEncoding:THREE.LinearEncoding;this.iT!=a&&(this.iT=a,this.oB=m,g.TSa(this.Aa,a));a=b&&b.camera;this.oa!=a&&(this.oa=a,this.oB=m,this.lc.sv(this.oa));this.Aa&&(g.SSa(this.Aa,this.oa),g.VSa(this.Aa,this.width,this.height));return this};b.prototype.render=
function(a,b,c){if((b||this.oB||!this.Nma)&&this.Mma){window.stats&&window.stats.begin();if(b)a.setRenderTarget(q),this.oB=m;else{if(!this.renderTarget){var f;f=a.capabilities.isWebGL2?d.ob()?2:8:0;this.renderTarget=new THREE.WebGLRenderTarget(window.innerWidth,window.innerHeight,{minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBAFormat,type:THREE.HalfFloatType,samples:f});this.renderTarget.depthTexture=new THREE.DepthTexture;this.renderTarget.depthTexture.format=THREE.DepthFormat;
this.renderTarget.depthTexture.type=THREE.UnsignedShortType}a.setRenderTarget(this.renderTarget);this.renderTarget.texture.encoding=this.iT;this.oB=B}a.outputEncoding=this.iT;this.lc.setRenderTarget(b?q:this.renderTarget);this.lc.PSa(a);this.lc.render(c);window.stats&&window.stats.end()}};b.prototype.isVisible=function(){return this.Aa&&this.oa&&0<this.opacity};b.prototype.dispose=function(){this.oa=this.Aa=this.jaa=q;this.lc&&(this.lc.dispose(),this.lc=q);this.renderTarget&&(this.renderTarget.dispose(),
this.renderTarget=q)};return b});
define("fr",["require","lN","fm","fK","cU"],function(a){function b(a){this.k=a;this.Cu=[];this.jKa();this.hKa()}var d=a("lN"),c=a("fm"),g=a("fK"),f=a("cU");b.prototype.frame=function(a){var b=this.k.getComponent(c.Th),d=b.iO.map(this.lEa.bind(this));this.Cu.filter(function(a){return 0>d.indexOf(a)}).forEach(function(a){a.dispose()});this.Cu=d;var f=this.Cu.filter(function(a){return a.isVisible()});if(0<f.length){this.h.shadowMap.enabled=b.shadowMap;var g=1==f.length&&1<=f[0].opacity;f.forEach(function(b){b.render(this.h,
g,a)}.bind(this));g||this.EIa(f.slice(0,2))}};b.prototype.lEa=function(a){for(var b=0;b<this.Cu.length;b++)if(this.Cu[b].jaa==a)return this.Cu[b].update();return new f(a)};b.prototype.EIa=function(a){this.cm.material.uniforms.t1.value=a[0].renderTarget.texture;this.cm.material.uniforms.o1.value=a[0].opacity;1<a.length?(this.cm.material.uniforms.useT2.value=1,this.cm.material.uniforms.t2.value=a[1].renderTarget.texture,this.cm.material.uniforms.o2.value=a[1].opacity):this.cm.material.uniforms.useT2.value=
0;this.h.setSize(a[0].width,a[0].height);this.h.setRenderTarget(q);this.h.setClearColor(0,0);this.h.clear();this.h.render(this.KP,this.Fea)};b.prototype.dispose=function(){for(;this.Cu.length;)this.Cu.shift().dispose();this.Cu=q;this.gLa();this.iLa()};b.prototype.jKa=function(){var a=this.k.G(c.Th),b;(b=g.lOa(a.canvas,a.antialias||B))||(b=g.A9(a.canvas,a.antialias||B));a.renderer=this.h=new THREE.WebGLRenderer({alpha:m,canvas:a.canvas,context:b});this.h.setPixelRatio(g.getPixelRatio());this.h.autoClear=
B;this.h.debug.checkShaderErrors=d.UO;this.h.shadowMap.type=THREE.PCFShadowMap};b.prototype.iLa=function(){this.h.forceContextLoss();this.h.dispose();this.h=q};b.prototype.hKa=function(){this.KP=new THREE.Scene;this.Fea=new THREE.OrthographicCamera(window.innerWidth/-2,window.innerWidth/2,window.innerHeight/2,window.innerHeight/-2,-10,10);this.cm=new THREE.Mesh(new THREE.PlaneGeometry(window.innerWidth,window.innerHeight),this.VAa());this.KP.add(this.cm)};b.prototype.gLa=function(){this.KP.remove(this.cm);
this.cm.geometry.dispose();this.cm.geometry=q;this.cm.material.dispose();this.KP=this.Fea=this.cm=this.cm.material=q};b.prototype.VAa=function(){var a=new THREE.ShaderMaterial({uniforms:{t1:{value:q},t2:{value:q},o1:{value:1},o2:{value:1},useT2:{value:1}},vertexShader:"varying vec2 vUv;\nvoid main() {\nvUv = vec2( uv.x, uv.y );\ngl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D t1;\nuniform sampler2D t2;\nuniform float o1;\nuniform float o2;\nuniform int useT2;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texel1 = texture2D(t1, vUv);\n   texel1.a = texel1.a * o1;\n   if (useT2 == 1) {\n\t  vec4 texel2 = texture2D(t2, vUv);\n     texel2.a = texel2.a * o2;\n     gl_FragColor = mix(texel1, texel2, texel2.a);\n   } else {\n     gl_FragColor = texel1;\n   }\n  #include <encodings_fragment>\n}"});
a.transparent=m;return a};b.xc=function(a){a.C(c.Bq).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(c.Bq);b.manager.dispose();b.manager=q;a.ga(c.Bq)};b.update=function(a){a.getComponent(c.Bq).manager.update()};b.frame=function(a,b,d){a.getComponent(c.Bq).manager.frame(b,d)};return b});
define("kM",["require","kG","kR","fm","fr"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("fr"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(a,b){this.tua.entities.length&&this.tua.entities.slice().forEach(g.xc);this.oX.entities.length&&this.oX.entities.slice().forEach(function(c){g.frame(c,a,b)});this.uua.entities.length&&this.uua.entities.slice().forEach(g.Kb)};a.A={};a.A.tua=[c.Th,c.Bq.not];a.A.uua=[c.Th.not,c.Bq];a.A.oX=[c.Th,c.Bq];return a});
define("jo","require,kG,nU,fQ,de,cf,hy,kC".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("fQ"),g=a("de"),f=a("cf"),i=a("hy"),e=a("kC"),a=b.extend(c,function(a,b){c.call(this);this.kd=a;this.Aa=b;this.la=new g;this.la.xO([this.kd]);this.la.bind(d.U,this.cd,this,B);this.la.bind(d.zc,this.sf,this,B);this.Tc=q;this.eb=0;e.ko(this.la,i.hD)});a.prototype.Xi=function(a){if(this.eb!==a){this.eb=a;if(this.Tc){this.Tc.material.opacity=this.eb;this.Tc.material.visible=this.eb>0;this.Tc.material.needsUpdate=
m}}};a.prototype.El=function(){return!!this.Tc};a.prototype.cd=function(){this.HBa();this.trigger(d.U)};a.prototype.sf=function(){this.trigger(d.zc)};a.prototype.HBa=function(){var a=new THREE.Texture;a.image=e.jf(this.kd);a.generateMipmaps=m;a.minFilter=THREE.LinearMipMapLinearFilter;a.needsUpdate=m;a=new THREE.SpriteMaterial({map:a});a.sizeAttenuation=B;a.transparent=m;a.visible=this.eb>0;a.opacity=this.eb;this.Tc=new THREE.Sprite(a);this.Tc.renderOrder=-1E3};a.prototype.update=function(){if(this.Tc){var a=
f.HN(this.Aa);if(this.Tc.parent!=a){this.Tc.parent&&f.nua(this.Tc.parent,this.Tc);a&&f.zNa(a,this.Tc)}if(a){var b=f.xW(this.Aa),c=this.Tc.material.map.image.width,d=this.Tc.material.map.image.height,a=b/(2*Math.tan(a.fov*j/2)),b=Math.max(b/a,f.Pra(this.Aa)/(a*c/d));if(this.Tc.scale.y!=b){this.Tc.scale.y=b;this.Tc.scale.x=b*c/d}}c=f.Ora(this.Aa);if(this.Tc.material.map.encoding!=c){this.Tc.material.map.encoding=c;this.Tc.material.needsUpdate=m}}};a.prototype.dispose=function(){if(this.Tc){this.Tc.parent&&
f.nua(this.Tc.parent,this.Tc);this.Tc.material.map.dispose();this.Tc.material.dispose();this.Tc=q}this.la&&e.Mj(this.la,i.hD)};var j=Math.PI/180;return a});
define("iV","require,nU,fm,jo,nx,bC".split(","),function(a){function b(a,b){this.k=a;this.di=b;this.ht=l;this.gi=this.am=this.O=this.Aa=q;this.update()}var d=a("nU"),c=a("fm"),g=a("jo"),f=a("nx"),i=a("bC");b.prototype.frame=function(a){this.O&&this.HB(a);this.am&&this.am.update();this.gi&&this.gi.update()};b.prototype.update=function(){var a=this.k.getComponent(c.Scene);this.Aa=a.scene;if(!this.Aa){if(!a.scene)return;this.Aa=a.scene}a=a.k9||q;if(!(this.ht===a||this.O)){this.KI(this.gi);this.gi=q;
if(this.ht=a)this.gi=this.UAa(this.ht);else{this.tw();this.di.trigger(d.U)}}};b.prototype.HB=function(a){this.O.xb(a);this.am&&this.am.Xi(Math.min(1,Math.max(0,this.O.gb("alpha"))));this.gi&&this.gi.Xi(Math.min(1,Math.max(0,this.O.gb("nextAlpha"))));if(this.O.Te()){this.O=q;if(this.am){this.KI(this.am);this.am=q}this.am=this.gi;this.gi=q;this.update()}this.k.R.pb()};b.prototype.Q4=function(){this.gi.unbind(d.U,this.Q4,this,m);this.gi.unbind(d.zc,this.R4,this,m);this.tw();this.di.trigger(d.U)};b.prototype.R4=
function(){this.KI(this.gi);this.gi=q;this.tw();this.di.trigger(d.U)};b.prototype.tw=function(){if(this.gi&&this.am)this.O=new f("linear",[new i("nextAlpha",0,2,l),new i("alpha",2,0,l)],600);else if(this.gi)this.O=new f("linear",[new i("nextAlpha",0,1,l)],300);else if(this.am)this.O=new f("linear",[new i("alpha",1,0,l)],300);this.k.R.pb()};b.prototype.UAa=function(a){a=new g(a,this.Aa);this.sza(a);a.Xi(0);return a};b.prototype.KI=function(a){if(a){this.RLa(a);a.dispose()}};b.prototype.sza=function(a){a.bind(d.U,
this.Q4,this,m);a.bind(d.zc,this.R4,this,m)};b.prototype.RLa=function(a){a.unbind(d.U,this.Q4,this,m);a.unbind(d.zc,this.R4,this,m)};b.prototype.dispose=function(){if(this.am){this.KI(this.am);this.am=q}if(this.gi){this.KI(this.gi);this.gi=q}};return b});
define("kQ","require,nU,hy,mR,om,fm,cf,jR".split(","),function(a){function b(a,b){this.k=a;this.lU=this.LF=this.KF=this.ew=this.Dz=this.ht=this.eA=l;this.oa=this.h=this.Aa=q;this.di=b;this.re=new f(this.di);this.bd=[new j(c.hD),new j(c.hD)];this.bd.forEach(function(a){a.bind(d.U,this.cd,this,m);a.bind(d.zc,this.sf,this,m)}.bind(this));this.Bna([]);this.update()}var d=a("nU"),c=a("hy"),g=a("mR"),f=a("om"),i=a("fm"),e=a("cf"),j=a("jR");b.prototype.frame=function(){if(!this.h&&this.Aa)if(this.h=b.rPa(this.Aa)){this.X();
this.l8()}};b.prototype.update=function(){var a=this.k.getComponent(i.Scene),b=B,c=B,d=a.bra||q;if(this.eA!==d){this.eA=d;c=m}d=a.k9||q;if(this.ht!==d){this.ht=d;c=m}d=a.qqa||q;if(this.Dz!==d){this.Dz=d;c=m}if(c){this.Dpa();this.l8();b=m}if(this.ew!==a.backgroundColor){this.ew=a.backgroundColor;b=m}if(this.Aa!==a.scene){this.Aa=a.scene;b=m}b&&this.X()};b.prototype.Dpa=function(){this.Bna(this.zEa())};b.prototype.zEa=function(){var a=[];this.eA&&a.indexOf(this.eA)==-1&&a.push(this.eA);!this.ht&&this.Dz&&
a.indexOf(this.Dz)==-1&&a.push(this.Dz);if(this.Aa&&this.Aa.background&&this.Aa.background.image&&this.Aa.background.image.src){var b=this.Aa.background.image.src;a.indexOf(b)==-1&&a.push(b)}return a};b.prototype.Bna=function(a){var b=[],c=[];this.bd.forEach(function(d){var e=d.pi();if(a.indexOf(e)<0){d.cancel();b.push(d)}else c.push(e)});a.forEach(function(a){c.indexOf(a)<0&&b.shift().load(a)})};b.prototype.l8=function(){var a=0;this.re.Iqa();this.bd.forEach(function(b){if(b.pi()&&!b.El()){this.re.cN(b);
a++}}.bind(this));a==0&&this.di&&this.di.trigger(d.U)};b.prototype.dispose=function(){this.bd.forEach(function(a){a.cancel();a.unbind(d.U,this.cd,this,m);a.unbind(d.zc,this.sf,this,m)}.bind(this));if(this.k){this.DQ();this.Bt();this.k=q}};b.prototype.cd=function(){this.X();this.l8()};b.prototype.X=function(){if(this.Aa&&this.h){if(this.eA){var a=this.zha(this.eA);a?this.Wya(a):this.DQ()}else this.DQ();if(this.ht)this.Bt();else if(this.Dz)(a=this.zha(this.Dz))?this.rea(a,l):this.Bt();else this.ew?
this.rea(l,this.ew):this.Bt();this.Dpa();this.k.R.pb()}};b.prototype.zha=function(a){for(var b=0;b<this.bd.length;b++)if(this.bd[b].El()&&this.bd[b].pi()==a)return this.bd[b];return q};b.prototype.Qq=function(a,b){return Math.round(a.fd()/a.Td())<6?this.iBa(a,b):this.dBa(a,b)};b.prototype.iBa=function(a,b){var c=new THREE.Texture;c.image=a.jf();c.mapping=THREE.EquirectangularReflectionMapping;c.needsUpdate=m;if(b){var d=new THREE.PMREMGenerator(this.h),c=d.fromEquirectangular(c).texture;d.dispose()}return c};
b.prototype.rea=function(a,b){if(this.Aa){if(a){var c=a&&a.pi()||l;if(c==this.LF)return;this.Bt();e.CX(this.Aa,this.Qq(a,B));this.LF=c;this.KF=l}if(b&&b!=this.KF){this.Bt();e.CX(this.Aa,b=="transparent"?q:new THREE.Color(g.OC(b)));this.KF=b;this.LF=l}}};b.prototype.Bt=function(){if(this.Aa&&(this.KF||this.LF)){if(this.LF){this.Aa.background.dispose();e.CX(this.Aa,q);this.LF=l}if(this.KF){e.CX(this.Aa,q);this.KF=l}}};b.prototype.Wya=function(a){if(this.Aa){var b=a&&a.pi()||l;if(b!=this.lU){this.DQ();
this.Aa.environment=this.Qq(a,m);this.lU=b}}};b.prototype.DQ=function(){if(this.Aa&&this.lU){this.Aa.environment.dispose();this.Aa.environment=q;this.lU=l}};b.prototype.dBa=function(a,b){for(var c=Array(6),d=a.fd()/6,e=a.Td(),f=0;f<6;f++){var g=document.createElement("canvas");g.width=d;g.height=e;g.getContext("2d").drawImage(a.jf(),f*d,0,d,e,0,0,d,e);c[f]=g}d=new THREE.CubeTexture;d.images=[c[1],c[3],c[4],c[5],c[0],c[2]];d.needsUpdate=m;if(b){c=new THREE.PMREMGenerator(this.h);d=c.fromCubemap(d).texture;
c.dispose()}return d};b.prototype.sf=function(){this.k.getComponent(i.Scene).scene.environment=q;this.k.R.pb()};b.i6=[];b.Laa=function(a){b.i6=a||[]};b.rPa=function(a){for(var c=0;c<b.i6.length;c++){var d=b.i6[c].getComponent(i.Th);if(d.iO.filter(function(b){return b.getComponent(i.Scene).scene==a}).length>0)return d.renderer}return q};return b});
define("hj",["require","fm","om","iV","kQ"],function(a){function b(a){this.k=a;this.di=q;var b=this.k.G(d.Scene),j=this.k.G(d.Dq);this.k.C(d.Object3D).Yc=j.scene=b.scene=new THREE.Scene;this.re=new c;this.RI=new f(a,this.re.ZB());this.Vd=new g(a,this.re.ZB())}var d=a("fm"),c=a("om"),g=a("iV"),f=a("kQ");b.prototype.frame=function(a){this.RI.frame(a);this.Vd.frame(a)};b.prototype.update=function(){this.RI.update();this.Vd.update();this.wMa()};b.prototype.wMa=function(){var a=this.k.getComponent(d.Scene);
this.di!=a.G9&&(this.di=a.G9,this.re.URa(this.di))};b.prototype.dispose=function(){this.re&&(this.re.dispose(),this.re=q);this.Vd&&(this.Vd.dispose(),this.Vd=q);this.RI&&(this.RI.dispose(),this.RI=q);this.k&&(this.k=q)};b.xc=function(a){a.C(d.Dq).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.Dq);b.manager.dispose();b.manager=q;a.ga(d.Dq);a.ga(d.Object3D)};b.frame=function(a,b){a.getComponent(d.Dq).manager.frame(b)};b.update=function(a){a.getComponent(d.Dq).manager.update()};b.Laa=function(a){f.Laa(a)};
return b});
define("lq",["require","kG","kR","fm","hj"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("hj"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(a){this.Aua.entities.length&&this.Aua.entities.slice().forEach(g.xc);this.scenes.Ra.length&&this.scenes.Ra.slice().forEach(g.update);this.scenes.entities.length&&this.scenes.entities.slice().forEach(function(b){g.frame(b,a)});g.Laa(this.oX.entities.slice());this.Bua.entities.length&&this.Bua.entities.slice().forEach(g.Kb)};a.A=
{};a.A.Aua=[c.Scene,c.Dq.not];a.A.scenes=[c.Scene,c.Dq];a.A.Bua=[c.Scene.not,c.Dq];a.A.oX=[c.Th,c.Bq];return a});
define("ny","require,kG,nU,ep,fm,cf,x,bc".split(","),function(a){function b(a){this.ml=a;this.WJ();this.QI=[];this.Ox=q;this.qA=this.u6=B;this.Kla={};this.Kla.$N=this.EHa.bind(this);this.update()}function d(a,b,c,d){this.Qb=a;this.Yc=b;this.point=c;this.normal=d}function c(a){return{x:a.x,y:a.y,z:a.z}}function g(a,b){a.indexOf(b)<0&&a.push(b)}function f(a,b){var c=a.indexOf(b);c>=0&&a.splice(c,1)}var i=a("kG"),e=a("nU"),j=a("ep"),o=a("fm"),k=a("cf"),n=a("x"),r=a("bc");i.VB(b,[n]);b.prototype.update=
function(){var a=this.ml.getComponent(o.Fo);this.PF(a&&(a.enabled?a.Xp:q));a&&a.Fb&&a.Fb.set("picker",a.Xp?this.Kla:q)};b.prototype.frame=function(){this.Du(s)};b.prototype.Wf=function(){this.$k&&D.indexOf(this.ml.R)==-1?this.Du(s):this.Du(t)};b.prototype.Du=function(a){if(!(this.Ox&&a>=this.u6)){this.Ox&&clearTimeout(this.Ox);this.u6=a;this.Ox=setTimeout(function(){this.Ox=q;this.aHa()}.bind(this),this.u6)}};b.prototype.aHa=function(){var a=this.kEa();this.hna(a.map(function(a){return a.Qb}));a.forEach(function(a){this.iV(e.ad,
a)}.bind(this))};b.prototype.yK=function(){var a=this.U1();a&&this.iV(e.ca,a)};b.prototype.OS=function(){var a=this.U1();a&&this.iV(e.Tl,a)};b.prototype.Bm=function(){var a=this.U1();if(a){this.v1=a.Qb;this.x1=a.Qb.getComponent(o.Ud).La;this.iV(e.zb,a)}};b.prototype.ir=function(){var a;if(this.v1)a=(a=this.v1.getComponent(o.Ud))&&a.La;if(!a&&this.x1)a=this.x1;this.x1=this.v1=q;a&&a.trigger(e.Wb,this.$ga())};b.prototype.EHa=function(a,b,c){var d=this.Ac,e=this.Bc,f=this.YJ,g=this.ZJ;this.Ac=b;this.Bc=
c;this.ZJ=this.YJ=l;var a=this.Y1(a,[],1),i;a.length>0&&(i=this.Kha(a[0]));this.Ac=d;this.Bc=e;this.YJ=f;this.ZJ=g;return i};b.prototype.kEa=function(){var a=H.get(this.ml.R);if(!a||a.length==0)return[];var b=G.get(this.ml.R);return this.Y1(a,b)};b.prototype.U1=function(){var a=E.get(this.ml.R);if(!a||a.length==0)return q;var b=M.get(this.ml.R),a=this.Y1(a,b,1);return a.length>0?a[0]:q};b.prototype.hna=function(a){this.QI.forEach(function(b){a.indexOf(b)<0&&this.Koa(b,e.rb)}.bind(this));var b=this.QI;
this.QI=a;this.QI.forEach(function(a){b.indexOf(a)<0&&this.Koa(a,e.bc)}.bind(this));var c=a.find(function(a){return(a=a.getComponent(o.Ud))&&a.dn});if(this.qA!=c)(this.qA=c)?this.Jx(r.yf):this.kL(r.yf)};b.prototype.Y1=function(a,b,c){c===l&&(c=Infinity);var e=[],f=[];a&&a.forEach(function(a){var b=k.ec(a);if(b){e.push(a);f.push(b)}});var g=[],i=[];b&&b.forEach(function(a){var b=k.ec(a);if(b){g.push(a);i.push(b)}});for(var a=this.jFa(f,this.Ac,this.Bc),b=[],n=[],r=0;r<a.length&&n.length<c;r++){for(var p=
a[r],s=p.point,t=p.object,u=p.face&&p.face.normal,v=[],w=t,x=B;w&&!x;){if(x=i.indexOf(w)!=-1)break;for(var y=0;y<f.length;y++)w==f[y]&&v.push(y);w=w.parent}if(!(x||v.length==0))for(w=0;w<v.length;w++){y=v[w];y=e[y];if(!(b.indexOf(y)>=0))if(x=y.getComponent(o.Ud)){var D=Array.isArray(t.material)&&p.face?t.material[p.face.materialIndex]:t.material;if(!D||D.visible)if(x.HO||!D||!D.map||j.KTa(D.map,p.uv.x,p.uv.y)){t.isSkinnedMesh&&(t=this.JCa(t.skeleton.bones,s));b.push(y);n.push(new d(y,t,s,u))}}}}return n};
b.prototype.jFa=function(a,b,c){var d=k.ec(this.ml);if(!d||!d.isCamera)return[];v.set(b,c);this.$J(v);w.setFromCamera(v,d);var e=[];a.forEach(function(a){a.traverse(function(a){if(!a.isSkinnedMesh&&a.geometry&&!a.geometry.userData.p9){a.geometry.computeBoundsTree();a.geometry.userData.p9=m}if(a.isSkinnedMesh&&!a.userData.m9){a.userData.m9=a.geometry.boundingBox;a.geometry.boundingBox=x;a.userData.yqa=a.geometry.boundingSphere;a.geometry.boundingSphere=y;e.push(a)}})});w.firstHitOnly=m;a=w.intersectObjects(a,
m);e.forEach(function(a){a.geometry.boundingBox=a.userData.m9;delete a.userData.m9;a.geometry.boundingSphere=a.userData.yqa;delete a.userData.yqa});a=a.filter(function(a){return a.object.isLine?B:m});a.sort(function(a,b){var c=-a.object.renderOrder,d=-b.object.renderOrder;if(c==d){c=a.object.material&&!a.object.material.depthTest?0:1;d=b.object.material&&!b.object.material.depthTest?0:1}if(c==d){c=a.distance;d=b.distance}return c-d});return a};b.prototype.iV=function(a,b){var c=this.Kha(b);b.Qb.getComponent(o.Ud).La.trigger(a,
c)};b.prototype.$ga=function(){var a={};a.x=this.Ac;a.y=this.Bc;if(this.YJ!==l&&this.ZJ!==l){a.pageX=this.YJ;a.pageY=this.ZJ}return a};b.prototype.Kha=function(a){var b=this.$ga(),d=a.Yc,e=a.point,a=a.normal;b.position=c(e);b.cameraPosition=c(u.setFromMatrixPosition(k.ec(this.ml).matrixWorld));for(var f=d,g=b;;){g.object=f.userData.id;g.name=f.name;g.type=f.isMesh?"mesh":f.isBone?"bone":"other";g.localPosition=c(f.worldToLocal(u.copy(e)));g.localScale=f.worldToLocal(u.set(1,1,1).normalize()).length();
g.objectMatrixWorld=d.matrixWorld.toArray();a&&(g.normal=c(p(d,a,f,u)));if(!f.parent||!f.parent.userData.id)break;f=f.parent;g=g.parent={}}return b};var p=function(){var a=new THREE.Vector3;matrix4=new THREE.Matrix4;return function(b,c,d,e){e.copy(c);if(b==d)return e;e.applyMatrix4(b.matrixWorld);e.sub(a.setFromMatrixPosition(b.matrixWorld));e.add(a.setFromMatrixPosition(d.matrixWorld));e.applyMatrix4(matrix4.copy(d.matrixWorld).invert()).normalize();return e}}();b.prototype.Koa=function(a,b){var c=
a.getComponent(o.Ud);(c=c&&c.La)&&c.trigger(b)};b.prototype.JCa=function(a,b){for(var c=q,d=Infinity,e=a.slice();e.length;){var f=e.shift(),g=b.distanceTo(f.getWorldPosition(u));if(g<d){c=f;d=g}e.unshift.apply(e,f.children)}return c};b.prototype.dispose=function(){if(this.Ox){clearTimeout(this.Ox);this.Ox=q}this.hna([]);this.XJ();this.QI=q};var t=16,s=400,u=new THREE.Vector3(0,1,0),v=new THREE.Vector2(0,1),w=new THREE.Raycaster,x=new THREE.Box3;x.min.x=x.min.y=x.min.z=-Infinity;x.max.x=x.max.y=x.max.z=
Infinity;var y=new THREE.Sphere;y.center.x=y.center.y=y.center.z=0;y.radius=Infinity;b.Waa=function(a){a.C(o.Vs).manager=new b(a)};b.fba=function(a){var b=a.getComponent(o.Vs);b.manager.dispose();b.manager=q;a.ga(o.Vs)};b.frame=function(a){a.getComponent(o.Vs).manager.frame()};b.oba=function(a){a.getComponent(o.Vs).manager.update()};b.gTa=function(a){a.C(o.nz);b.gwa(a)};b.gwa=function(a){var b=k.ec(a),c=a.getComponent(o.Ud),d=E.get(a.R);d||E.set(a.R,d=[]);b&&c.Zu?g(d,a):f(d,a);(d=H.get(a.R))||H.set(a.R,
d=[]);b&&c.qv?g(d,a):f(d,a)};b.Mva=function(a){f(E.get(a.R),a);f(H.get(a.R),a);a.ga(o.nz)};b.fTa=function(a){a.C(o.kz);b.fwa(a)};b.fwa=function(a){var b=k.ec(a),c=a.getComponent(o.Qs),d=M.get(a.R);d||M.set(a.R,d=[]);b&&c.Xva?g(d,a):f(d,a);(d=G.get(a.R))||G.set(a.R,d=[]);b&&c.Yva?g(d,a):f(d,a)};b.Lva=function(a){f(G.get(a.R),a);f(M.get(a.R),a);a.ga(o.kz)};var D=[];b.MSa=function(a){D=[];a.forEach(function(a){D.indexOf(a.R)<0&&D.push(a.R)})};var E=new Map,H=new Map,M=new Map,G=new Map;return b});
define("mI",["require","kG","kR","fm","ny"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("ny"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.cO.entities.length&&this.cO.entities.slice().forEach(g.Waa);this.mv.Ra.length&&this.mv.Ra.slice().forEach(g.oba);this.mv.entities.length&&this.mv.entities.slice().forEach(g.frame);this.dO.entities.length&&this.dO.entities.slice().forEach(g.fba);this.Gua.entities.length&&this.Gua.entities.slice().forEach(g.gTa);this.Fua.entities.length&&
this.Fua.entities.slice().forEach(g.gwa);this.Hua.entities.length&&this.Hua.entities.slice().forEach(g.Mva);this.Iua.entities.length&&this.Iua.entities.slice().forEach(g.Mva);this.Gta.entities.length&&this.Gta.entities.slice().forEach(g.fTa);this.Fta.entities.length&&this.Fta.entities.slice().forEach(g.fwa);this.Hta.entities.length&&this.Hta.entities.slice().forEach(g.Lva);this.Ita.entities.length&&this.Ita.entities.slice().forEach(g.Lva);(this.U$.ag.length||this.U$.Ym.length)&&g.MSa(this.U$.entities)};
a.A={};a.A.U$=[c.Rj];a.A.cO=[c.Fo,c.Vs.not];a.A.mv=[c.Fo,c.Vs];a.A.dO=[c.Fo.not,c.Vs];a.A.Gua=[c.Object3D,c.Ud,c.nz.not];a.A.Fua=[c.Object3D,c.Ud,c.nz];a.A.Hua=[c.Object3D.not,c.nz];a.A.Iua=[c.Ud.not,c.nz];a.A.Gta=[c.Object3D,c.Qs,c.kz.not];a.A.Fta=[c.Object3D,c.Qs,c.kz];a.A.Hta=[c.Object3D.not,c.kz];a.A.Ita=[c.Qs.not,c.kz];return a});
define("iN",["require","mR","fm"],function(a){function b(a){this.k=a;this.da=q;this.update()}var d=a("mR"),c=a("fm");b.prototype.update=function(){this.da||(this.da=new THREE.MeshBasicMaterial,this.da.transparent=m,this.k.C(c.Material).material=this.da);var a=this.k.getComponent(c.Vc);this.da.color=new THREE.Color(d.OC(a.color||"#ffffff"));this.da.opacity=a.opacity||0;this.da.depthTest=!!a.depthTest;this.da.side=a.doubleSided?THREE.DoubleSide:THREE.FrontSide;this.da.visible=0<this.da.opacity;this.da.needsUpdate=
m};b.prototype.dispose=function(){this.da&&(this.da.dispose(),this.da=q,this.k.ga(c.Material));this.k=q};b.xc=function(a){a.C(c.Ws).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(c.Ws);b.manager.dispose();b.manager=q;a.ga(c.Ws)};b.update=function(a){a.getComponent(c.Ws).manager.update()};return b});
define("hT",["require","kG","kR","fm","iN"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("iN"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Gl.entities.length&&this.Gl.entities.slice().forEach(g.xc);this.materials.Ra.length&&this.materials.Ra.slice().forEach(g.update);this.Hl.entities.length&&this.Hl.entities.slice().forEach(g.Kb)};a.A={};a.A.Gl=[c.Vc,c.Ws.not];a.A.materials=[c.Vc,c.Ws];a.A.Hl=[c.Vc.not,c.Ws];return a});
define("ks",["require","kG","kR","fm"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),a=b.extend(d,function(){d.apply(this,arguments);this.Xe=this.Xe.bind(this);this.wf=this.wf.bind(this);this.nd=this.nd.bind(this)});a.prototype.execute=function(){this.uva.entities.length&&this.uva.entities.slice().forEach(this.Xe);this.tva.Ra.length&&this.tva.Ra.slice().forEach(this.wf);this.vva.entities.length&&this.vva.entities.slice().forEach(this.nd);this.wva.entities.length&&this.wva.entities.slice().forEach(this.nd)};
a.prototype.Xe=function(a){a.C(c.Object3D).Yc=new THREE.Mesh(new THREE.SphereGeometry);a.C(c.oz);this.wf(a)};a.prototype.wf=function(a){var b=a.getComponent(c.Material).material,d=a.getComponent(c.Object3D).Yc;d.material!=b&&(d.material=b,d.needsUpdate=m);a=a.getComponent(c.Sphere);b=d.geometry;if(b.radius!=a.radius||b.widthSegments!=a.widthSegments||b.heightSegments!=a.heightSegments)b.dispose(),b=new THREE.SphereGeometry(a.radius,a.widthSegments,a.heightSegments),d.geometry=b,d.needsUpdate=m;a=
a.renderOrder||0;d.renderOrder!=a&&(d.renderOrder=a,d.needsUpdate=m)};a.prototype.nd=function(a){var b=a.getComponent(c.Object3D);if((b=b&&b.Yc)&&b.geometry)b.geometry.dispose(),b.geometry=q;b&&b.material&&(b.material=q);a.ga(c.oz);a.ga(c.Object3D)};a.A={};a.A.uva=[c.Sphere,c.Material,c.oz.not];a.A.tva=[c.Sphere,c.Material,c.oz];a.A.vva=[c.Sphere.not,c.oz];a.A.wva=[c.Material.not,c.oz];return a});
define("lk",["require","jU","fm","cf"],function(a){function b(a){this.k=a;this.Aa=q;this.N_=90;this.O_=100;this.Z=this.ia=l;this.pc=1;this.Tc=this.k.G(d.Sprite).bWa=this.k.G(d.Object3D,m).Yc=new THREE.Sprite;this.Tc.material.opacity=0;this.Aj();this.update();this.frame()}a("jU");var d=a("fm"),c=a("cf");b.prototype.update=function(){var a=this.k.getComponent(d.Sprite);this.ia=a.height;this.Z=a.width;this.Tc.center.x=a.zG;this.Tc.center.y=1-a.AG;this.pc=a.scale;this.wl();this.Tc.needsUpdate=m};b.prototype.frame=
function(){this.Aa||(this.Aa=c.io(this.k));this.tk();this.Aj();this.wl()};b.prototype.tk=function(){if(this.Aa){var a=c.HN(this.Aa);if(a&&a.isPerspectiveCamera){var b=c.xW(this.Aa);if(this.N_!=a.fov||this.O_!=b)this.N_=a.fov,this.O_=b,this.wl(),this.Tc.needsUpdate=m}}};b.prototype.Aj=function(){var a=this.Aa?this.k.getComponent(d.Material).material:q;a&&this.Tc.material!=a&&(this.Tc.material=a,this.Tc.needsUpdate=m);this.Tc.renderOrder=this.k.getComponent(d.Sprite).renderOrder};b.prototype.wl=function(){var a=
this.ia/(this.O_/(2*Math.tan(this.N_*f/2))),b=this.pc;this.Tc.parent&&(this.Tc.parent.getWorldScale(g),b/=Math.max(g.x,g.y,g.z));var a=a*b,b=a*this.Z/this.ia,c=this.k.getComponent(d.va)||this.k.C(d.va);if(c.sg!=b||c.Lg!=a||1!=c.si)c=this.k.G(d.va,m),c.sg=b,c.Lg=a,c.si=1};var g=new THREE.Vector3,f=Math.PI/180;b.prototype.dispose=I();b.xc=function(a){a.C(d.Eq).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(d.Eq);b.manager.dispose();b.manager=q;a.ga(d.Eq);a.ga(d.Object3D)};b.update=function(a){a.getComponent(d.Eq).manager.update()};
b.frame=function(a){a.getComponent(d.Eq).manager.frame()};return b});
define("eo",["require","kG","kR","fm","lk"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("lk"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.xva.entities.length&&this.xva.entities.slice().forEach(g.xc);this.HX.Ra.length&&this.HX.entities.slice().forEach(g.update);this.HX.entities.length&&this.HX.entities.slice().forEach(g.frame);this.yva.entities.length&&this.yva.entities.slice().forEach(g.Kb);this.zva.entities.length&&this.zva.entities.slice().forEach(g.Kb)};
a.A={};a.A.xva=[c.Material,c.Sprite,c.Eq.not];a.A.HX=[c.Sprite,c.Material,c.Eq];a.A.yva=[c.Sprite.not,c.Eq];a.A.zva=[c.Material.not,c.Eq];return a});
define("jN","require,kG,nU,cs,kR,fm,cf".split(","),function(a){function b(a,b,c){for(;a<b-180;)a=a+360;for(;a>b+180;)a=a-360;return d(a,b,c)}function d(a,b,c){if(!c)return b;a=(b-a)*(1-c);Math.abs(a)<1.0E-5&&(a=0);return b-a}var c=a("kG"),g=a("nU"),f=a("cs"),i=a("kR"),e=a("fm"),j=a("cf"),a=c.extend(i,function(){i.apply(this,arguments);this.Xe=this.Xe.bind(this);this.wf=this.wf.bind(this);this.nd=this.nd.bind(this)});a.prototype.execute=function(a,b){this.UN.entities.length&&this.UN.entities.slice().forEach(this.Xe);
this.gq.ag.length&&this.gq.ag.slice().forEach(function(c){this.wf(c,a,b)}.bind(this));this.gq.Ra.length&&this.gq.Ra.slice().forEach(function(c){this.wf(c,a,b)}.bind(this));this.Nta.entities.length&&this.Nta.entities.slice().forEach(function(c){this.wf(c,a,b)}.bind(this));this.$qa.entities.length&&this.$qa.entities.slice().forEach(this.nd);this.ara.entities.length&&this.ara.entities.slice().forEach(this.nd)};a.prototype.Xe=function(a){var b=a.getComponent(e.va),c=a.C(e.zf);c.Ue=b.Ue;c.ve=b.ve;c.cg=
b.cg;c.lf=b.lf;c.Ie=b.Ie;c.mf=b.mf;c.rg=b.rg;c.scale=b.scale;c.sg=b.sg;c.Lg=b.Lg;c.si=b.si;c.Og=b.Og;c.tg=b.tg;c.Kf=b.Kf;this.updateMatrixWorld(a)};a.prototype.wf=function(a){var c=a.getComponent(e.va),f=a.getComponent(e.zf),g=c.pN||0;g?a.getComponent(e.pz)||a.C(e.pz):a.ga(e.pz);var i=q;if(c.Ue!==f.Ue){i||(i=a.G(e.zf));i.Ue=d(i.Ue,c.Ue,g)}if(c.ve!==f.ve){i||(i=a.G(e.zf));i.ve=d(i.ve,c.ve,g)}if(c.cg!==f.cg){i||(i=a.G(e.zf));i.cg=d(i.cg,c.cg,g)}if(c.lf!==f.lf){i||(i=a.G(e.zf));i.lf=b(i.lf,c.lf,g)}if(c.Ie!==
f.Ie){i||(i=a.G(e.zf));i.Ie=b(i.Ie,c.Ie,g)}if(c.mf!==f.mf){i||(i=a.G(e.zf));i.mf=b(i.mf,c.mf,g)}if(c.scale!==f.scale){i||(i=a.G(e.zf));i.scale=c.scale}if(c.sg!==f.sg){i||(i=a.G(e.zf));i.sg=c.sg}if(c.Lg!==f.Lg){i||(i=a.G(e.zf));i.Lg=c.Lg}if(c.si!==f.si){i||(i=a.G(e.zf));i.si=c.si}if(c.Og!==f.Og){i||(i=a.G(e.zf));i.Og=d(i.Og,c.Og,g)}if(c.tg!==f.tg){i||(i=a.G(e.zf));i.tg=d(i.tg,c.tg,g)}if(c.Kf!==f.Kf){i||(i=a.G(e.zf));i.Kf=d(i.Kf,c.Kf,g)}i?this.updateMatrixWorld(a):a.ga(e.pz)};var o=new THREE.Vector3;
a.prototype.updateMatrixWorld=function(a){j.wX(a,a.getComponent(e.zf));var b=a.getComponent(e.va).La;if(b){j.getWorldPosition(a,o);a={position:{}};a.position.x=o.x;a.position.y=o.y;a.position.z=o.z;b.trigger(new f(g.rn,a))}};a.prototype.nd=function(a){a.ga(e.zf);a.ga(e.pz)};a.A={};a.A.gq=[e.Object3D,e.va,e.zf];a.A.UN=[e.Object3D,e.va,e.zf.not];a.A.Nta=[e.Object3D,e.va,e.zf,e.pz];a.A.$qa=[e.Object3D.not,e.va,e.zf];a.A.ara=[e.va.not,e.zf];return a});
define("fX",["require","nU","gE","cs","nr"],function(a){function b(a,b,d,f){this.T=a;this.j=b;this.Wd=d;this.wa=f;this.Zb=a.wb();this.Af=this.j.get("currentTime");this.o=this.j.get("state");this.Vk=this.j.get("loop");this.FT=this.Zb.get("mute");this.uS=this.j.get("mute");this.o=this.j.get("autoplay")?c.S:c.Gb;this.$Z();this.j.set("state",this.o);this.T.nf(this.FT||this.uS);this.T.setLoop(this.Vk);this.T.EC(this.Af);this.T.yd(this.o)}var d=a("nU"),c=a("gE"),g=a("cs"),f=a("nr");b.prototype.dispose=
function(){this.Z5()};b.prototype.Vka=function(){var a=this.j.get("currentTime",0);this.Af!=a&&this.T.EC(this.Af=a)};b.prototype.Zka=function(){var a=this.j.get("state",c.L);this.o!=a&&this.T.yd(this.o=a)};b.prototype.Xka=function(){var a=this.j.get("mute",B);this.uS!=a&&this.T.nf(this.FT||(this.uS=a))};b.prototype.Wka=function(){var a=this.j.get("loop",B);this.Vk!=a&&this.T.setLoop(this.Vk=a)};b.prototype.JK=function(){var a=this.Zb.get("mute",B);this.FT!=a&&this.T.nf((this.FT=a)||this.uS)};b.prototype.SK=
function(){this.j.set("currentTime",this.Af=this.T.Cl())};b.prototype.QK=function(){this.j.set("duration",this.T.Ti())};b.prototype.RK=function(){this.j.set("state",this.o=this.T.og());this.wa()};b.prototype.TK=function(){this.Wd.trigger(new g(d.Ga))};b.prototype.$Z=function(){this.Zb.bind(d.u("mute"),this.JK,this,m);this.T.bind(f.pf,this.SK,this,m);this.T.bind(f.wi,this.QK,this,m);this.T.bind(d.Fc,this.RK,this,m);this.T.bind(d.Ga,this.TK,this,m);this.j.bind(d.u("currentTime"),this.Vka,this,m);this.j.bind(d.u("state"),
this.Zka,this,m);this.j.bind(d.u("mute"),this.Xka,this,m);this.j.bind(d.u("loop"),this.Wka,this,m)};b.prototype.Z5=function(){this.Zb.unbind(d.u("mute"),this.JK,this,m);this.T.unbind(f.pf,this.SK,this,m);this.T.unbind(f.wi,this.QK,this,m);this.T.unbind(d.Fc,this.RK,this,m);this.T.unbind(d.Ga,this.TK,this,m);this.j.unbind(d.u("currentTime"),this.Vka,this,m);this.j.unbind(d.u("state"),this.Zka,this,m);this.j.unbind(d.u("mute"),this.Xka,this,m);this.j.unbind(d.u("loop"),this.Wka,this,m)};return b});
define("u","require,nU,gE,hy,ck,kC,fK".split(","),function(a){function b(a,b,c,e,f){this.jb=a;this.T=b;this.j=c;this.ib=e;this.wa=f;this.wF=this.ib.get("posterURL");this.jNa=this.ib.get("url");this.Z=this.ib.get("width");this.ia=this.ib.get("height");this.rd=q;this.Jia();this.ib.bind(d.u("posterURL"),this.Tka,this,m);this.wa();this.ja=this.J=q}var d=a("nU"),c=a("gE"),g=a("hy"),f=a("ck"),i=a("kC"),e=a("fK");b.prototype.update=function(){var a=this.T.oW();a.isEmpty()&&(a=q);if(a&&(!this.rd||this.rd&&
!this.rd.isEqual(a))){this.rd=a;a=this.rd.bA;if((a.width!=this.Z||a.height!=this.ia)&&e.Jj(a)){a.width=this.Z;a.height=this.ia}if(!this.J&&e.lwa(this.jNa)){this.J=document.createElement("canvas");this.J.width=this.Z;this.J.height=this.ia;this.ja=this.J.getContext("2d")}if(this.J&&e.Jj(a)){this.ja.drawImage(a,0,0,this.J.width,this.J.height);a=this.J}this.jb.image=a;this.jb.needsUpdate=m}else if(!this.rd&&this.uu&&this.jb.image!=this.uu){this.jb.image=this.uu;this.jb.needsUpdate=m}(this.jb.needsUpdate||
this.T.og()==c.S)&&this.wa()};b.prototype.Tka=function(){this.UJa(this.ib.get("posterURL"))};b.prototype.UJa=function(a){if(this.wF!=a){this.Roa();this.wF=a;this.Jia()}};b.prototype.Jia=function(){if(this.wF){this.uu=q;this.vF=new f;this.vF.xO([this.wF]);this.vF.bind(d.U,this.Ska,this,m);i.ko(this.vF,this.j.get("loadPriority",g.qn))}};b.prototype.Roa=function(){if(this.wF){this.vF.unbind(d.U,this.Ska,this,m);i.Mj(this.vF,this.j.get("loadPriority",g.qn));this.uu=this.vF=q}};b.prototype.Ska=function(){this.uu=
i.jf(this.wF);if(this.uu.width!=this.Z||this.uu.height!=this.ia){var a=document.createElement("canvas"),b=a.getContext("2d");a.width=this.Z;a.height=this.ia;b.drawImage(this.uu,0,0,this.Z,this.ia);this.uu=a}this.wa()};b.prototype.dispose=function(){this.Roa();this.ib.unbind(d.u("posterURL"),this.Tka,this,m);this.ja=this.ib=q;this.J&&(this.J=this.J.width=this.J.height=0);this.wa=this.Lh=this.T=this.jb=q};return b});
define("ka",["require","fK"],function(a){var b=a("fK");return{Awa:function(){this.blending=0;this.dH=l;this.lva=this.Tva=0},Pxa:function(){this.ty=B;this.height=this.width=100},create:function(a,c,g){var f=a.ty&&b.ssa(),i=a.ty&&b.rsa(),e={uniforms:{},transparent:m};e.uniforms.text1={type:"sampler2D",value:g};e.uniforms.opacity={type:"float",value:1};g.flipY=!f;e.vertexShader=["varying vec2 vUV;\nvoid main() {","\tvUV = vec2( uv.x, "+(f?"1.0 - uv.y":"uv.y")+");","\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}"].join("\n");
if(i||c.blending||c.dH){var f=[],j=[],f=f.concat(["uniform sampler2D text1;","uniform float opacity;","varying vec2 vUV;"]),j=j.concat(["   vec4 color = texture2D(text1, vUV);","   float alpha = color.a * opacity;"]);if(c.blending){var o=0.5*Math.min(a.width,a.height)*c.blending;e.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(o/a.width,o/a.height)};f=f.concat(["uniform vec2 blendingLimit;"]);j=j.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(","))}c.dH&&
(e.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(c.dH.substr(1,2),16)/255,parseInt(c.dH.substr(3,2),16)/255,parseInt(c.dH.substr(5,2),16)/255)},e.uniforms.chromaThreshold={type:"f",value:c.Tva},e.uniforms.chromaSmoothing={type:"f",value:c.lva},f=f.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),j=j.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("{")));
j=j.concat(["\tgl_FragColor = vec4(color"+(i?".bgr":".rgb")+", alpha);"]);g.format=THREE.RGBAFormat;e.fragmentShader=[].concat(f,["void main() {"],j,["}"]).join("\n")}else e.fragmentShader="uniform sampler2D text1;\nuniform float opacity;\nvarying vec2 vUV;\nvoid main() {\n   vec4 color = texture2D(text1, vUV);\n   float alpha = color.a * opacity;\n\tgl_FragColor = vec4(color.rgb, alpha);\n}";a=new THREE.ShaderMaterial(e);a.transparent=m;a.depthWrite=m;a.side=THREE.FrontSide;a.depthTest=m;a.needsUpdate=
m;return a}}});
define("gC","require,jU,nU,gE,fX,u,ka,ex,fK,fm,lB,jG,nr".split(","),function(a){function b(a){this.k=a;this.HS=this.HS.bind(this);a=a.getComponent(k.Vv);this.Wd=a.La;this.j=a.Fb;this.AV=a.mwa;this.Zb=this.k.R.Zb;this.Gf=B;this.ib=q;d.pa(this.AV,["levels.url","levels.width","levels.height"],this.HS,m)}var d=a("jU"),c=a("nU"),g=a("gE"),f=a("fX"),i=a("u"),e=a("ka"),j=a("ex"),o=a("fK"),k=a("fm");a("lB");var n=a("jG"),r=a("nr");b.prototype.update=function(){if(this.Gf){this.Gf=B;this.Jr.update()}};b.prototype.HS=
function(){this.JL(r.Gj(this.AV))};b.prototype.JL=function(a){a=a&&a.get("url")?a:q;if(this.ib!=a){if(this.ib){this.Qpa.dispose();this.Qpa=q;this.Jr.dispose();this.Jr=q;this.V0();this.X0();this.dCa();this.j.unbind(c.u("opacity"),this.Yka,this,m);this.Gf=B}if(this.ib=a){this.Qq();this.Wz();this.OBa();this.wa=this.wa.bind(this);this.Qpa=new f(this.T,this.j,this.Wd,this.wa);this.Jr=new i(this.jb,this.T,this.j,this.ib,this.wa);this.j.bind(c.u("opacity"),this.Yka,this,m);this.qna(this.eb=this.j.get("opacity",
1));this.Gf=B;this.wa()}}};b.prototype.wa=function(){if(!this.Gf){this.Gf=m;this.k.R.pb()}};b.prototype.Qq=function(){this.jb=new THREE.Texture;this.jb.image=j.tra();this.jb.generateMipmaps=B;this.jb.minFilter=THREE.LinearFilter;this.jb.magFilter=THREE.LinearFilter;this.jb.format=THREE.RGBAFormat};b.prototype.X0=function(){this.jb.dispose();this.jb=q};b.prototype.OBa=function(){this.T=new r(this.k.R.Zb,this.AV);this.Ku=new n(this.j,this.T)};b.prototype.dCa=function(){this.T.yd(g.L);this.T.clear();
this.T=q;this.Ku.clear();this.Ku=q};b.prototype.Wz=function(){var a=new e.Pxa;a.ty=o.ty(this.ib.get("url"));a.width=this.ib.get("width");a.height=this.ib.get("height");var b=new e.Awa;b.blending=this.j.get("blending",0);b.dH=this.j.get("chromaColor");b.Tva=this.j.get("chromaThreshold",0);b.lva=this.j.get("chromaSmoothing",0);this.da=e.create(a,b,this.jb);this.k.C(k.Material).material=this.da};b.prototype.V0=function(){this.da.dispose();this.da=q;this.k.ga(k.Material)};b.prototype.dispose=function(){this.JL(q);
this.j.set("state",g.L);this.k=this.Wd=this.j=this.Zb=q;d.na(this.AV,["levels.url","levels.width","levels.height"],this.HS)};b.prototype.Yka=function(){var a=this.j.get("opacity");if(this.eb!=a){this.qna(this.eb=a);this.wa()}};b.prototype.qna=function(a){this.da.opacity=a;if(this.da.isShaderMaterial&&this.da.uniforms.opacity)this.da.uniforms.opacity.value=a};b.xc=function(a){a.C(k.Wv).manager=new b(a)};b.Kb=function(a){var b=a.getComponent(k.Wv);b.manager.dispose();b.manager=q;a.ga(k.Wv)};b.update=
function(a){a.getComponent(k.Wv).manager.update()};return b});
define("ek",["require","kG","kR","fm","gC"],function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("gC"),a=b.extend(d,function(){d.apply(this,arguments)});a.prototype.execute=function(){this.Gl.entities.length&&this.Gl.entities.slice().forEach(g.xc);this.Hl.entities.length&&this.Hl.entities.slice().forEach(g.Kb);this.materials.entities.length&&this.materials.entities.slice().forEach(g.update)};a.A={};a.A.Gl=[c.Vv,c.Wv.not];a.A.materials=[c.Vv,c.Wv];a.A.Hl=[c.Vv.not,c.Wv];return a});
define("kt",["require","kG","kR","cf","fm"],function(a){var b=a("kG"),d=a("kR"),c=a("cf"),g=a("fm"),a=b.extend(d,function(){d.apply(this,arguments);this.R6=this.R6.bind(this);this.mG=this.mG.bind(this)});a.prototype.execute=function(){this.qba.ag.length&&this.qba.ag.slice().forEach(this.R6);this.xC.Ra.length&&this.xC.Ra.slice().forEach(this.mG);this.ps.Ra.length&&this.ps.Ra.slice().forEach(this.mG);this.xC.ag.length&&this.xC.ag.slice().forEach(this.mG);this.ps.ag.length&&this.ps.ag.slice().forEach(this.mG)};
a.prototype.R6=function(a){var b=a.getComponent(g.Vj),d=c.N9(b.co),j=d&&d.width||100,d=d&&d.height||100;if(b.width!=j||b.height!=d)b=a.G(g.Vj),b.width=j,b.height=d};a.prototype.mG=function(a){var b=c.N9(a);this.qba.entities.forEach(function(c){if(c.getComponent(g.Vj).co==a){var d=c.getComponent(g.Vj);if(d.width!=b.width||d.height!=b.height)d=c.G(g.Vj),d.width=b.width,d.height=b.height}})};a.A={};a.A.qba=[g.Vj];a.A.xC=[g.OrthographicCamera];a.A.ps=[g.PerspectiveCamera];return a});
define("dQ",["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,d,c,g,f,i,e,j,o,k,n,r,p,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]=d;s[11]=s[2]=c;v[6]=v[0]=g;v[7]=v[1]=f;s[3]=s[0]+k;s[4]=s[1]+n;s[5]=s[2]+r;v[2]=v[0];v[3]=v[1]+p;s[12]=s[6]=s[3]+i;s[13]=s[7]=s[4]+e;s[14]=s[8]=s[5]+j;v[8]=v[4]=v[2]+o;v[9]=v[5]=v[3];s[15]=s[12]-k;s[16]=s[13]-n;s[17]=s[14]-r;v[10]=v[8];v[11]=v[9]-p;b=e*r-j*n;j=j*k-i*r;i=i*n-e*k;e=1/Math.sqrt(b*b+j*j+i*i);u[0]=u[3]=u[6]=u[9]=u[12]=u[15]=b*e;u[1]=u[4]=u[7]=u[10]=u[13]=u[16]=j*e;u[2]=u[5]=u[8]=u[11]=u[14]=u[17]=i*e;w[0]=0;w[1]=2;
w[2]=1;w[3]=3;w[4]=5;w[5]=4;a.getAttribute("position").needsUpdate=m;a.getAttribute("normal").needsUpdate=m;a.getAttribute("uv").needsUpdate=m;a.clearGroups();a.addGroup(0,6,t);a.computeBoundingBox();a.computeBoundingSphere();return a}}});
define("nz",["require","nU","kJ"],function(a){function b(a,b,c){this.qm=a;this.j=b;this.z2=c;this.iU=this.iU.bind(this);this.ED=l;this.j.forEach(function(a){this.qm.bind(d.u(a),this.SA,this,m)}.bind(this));this.iU()}var d=a("nU"),c=a("kJ");b.prototype.stop=function(){this.j.forEach(function(a){this.qm.unbind(d.u(a),this.SA,this,m)}.bind(this));this.ED&&(c.cancel(this.ED),this.ED=l)};b.prototype.SA=function(){this.ED||(this.ED=c.xy(this.iU))};b.prototype.iU=function(){this.ED=l;var a=this.qm;this.z2.apply(window,
this.j.map(function(b){return a.get(b)}))};return b});
define("fh","require,kG,kR,fm,dQ,nz,cf,mk,lv".split(","),function(a){var b=a("kG"),d=a("kR"),c=a("fm"),g=a("dQ"),f=a("nz"),i=a("cf"),e=a("mk"),j=a("lv"),o=b.extend(d,function(){d.apply(this,arguments);this.Q6=this.Q6.bind(this);this.r8=this.r8.bind(this);this.r7=this.r7.bind(this)});o.prototype.execute=function(){this.bO.entities.length&&this.bO.entities.slice().forEach(this.Q6);this.aO.Ra.length&&this.aO.Ra.slice().forEach(this.r8);this.aua.entities.length&&this.aua.entities.slice().forEach(this.r7)};
o.prototype.Q6=function(a){var b=a.getComponent(c.Xv),d=a.C(c.Vj);d.co=b.co;var e=i.N9(b.co);if(e){d.width=e.width;d.height=e.height}d=a.C(c.Ys);d.geometry=g.create();d.jua=new f(b.Fb,["width","height","horizontalAlign","verticalAlign","scaleMode","zIndex"],function(b,d,e,f,g,i){var j=a.G(c.Ys);j.pva=b;j.mva=d;j.tsa=e;j.verticalAlign=f;j.zua=g;j.zIndex=i});a.C(c.Geometry).geometry=d.geometry};o.prototype.r7=function(a){var b=a.getComponent(c.Ys);b.geometry.dispose();b.geometry=q;b.jua.stop();b.jua=
q;a.ga(c.Geometry);a.ga(c.Vj);a.ga(c.Ys)};o.prototype.r8=function(a){var b=a.getComponent(c.Ys),d=a.getComponent(c.Vj),f=d.width,i=d.height,s=b.pva,u=b.mva,v;switch(b.zua){case j.NONE:d=s;v=u;break;case j.Bo:d=f;v=u*f/s;break;case j.Pj:v=i;d=s*i/u;break;case j.sq:if(s*i>u*f){v=i;d=s*i/u}else{d=f;v=u*f/s}break;default:if(s*i>u*f){d=f;v=u*f/s}else{v=i;d=s*i/u}}switch(b.tsa){case e.Ja:f=-f*0.5;break;case e.Xa:f=f*0.5-d;break;default:f=-d*0.5}switch(b.verticalAlign){case e.ic:i=i*0.5-v;break;case e.ac:i=
-i*0.5;break;default:i=-v*0.5}s=b.zIndex-o.dxa;g.set(b.geometry,f,i,0,0,0,d,0,0,1,0,v,0,1,0);a.G(c.va,m).cg=s;a.R.pb()};o.dxa=100;o.A={};o.A.bO=[c.Xv,c.Ys.not];o.A.aO=[c.Xv,c.Ys,c.Vj];o.A.aua=[c.Xv.not,c.Ys];return o});
define("if","require,mr,m,ml,hw,ji,hQ,ko,ho,kL,lP,iq,cD,nE,fw,bF,hd,fe,kn,gG,gB,lZ,cX,hW,kM,lq,mI,hT,ks,eo,jN,ek,kt,fh".split(","),function(a){var b=a("mr"),d=a("m"),c=a("ml"),g=a("hw"),f=a("ji"),i=a("hQ"),e=a("ko"),j=a("ho"),o=a("kL"),k=a("lP"),n=a("iq"),r=a("cD"),p=a("nE"),t=a("fw"),s=a("bF"),u=a("hd"),v=a("fe"),w=a("kn"),x=a("gG"),y=a("gB");ParentSystem=a("lZ");PixelScaleTransformSystem=a("cX");PointerOverTransformSystem=a("hW");RendererSystem=a("kM");SceneSystem=a("lq");SelectionSystem=a("mI");
SolidMaterialSystem=a("hT");SphereSystem=a("ks");SpriteSystem=a("eo");TransformSystem=a("jN");VideoMaterialSystem=a("ek");ViewportSystem=a("kt");ViewportPlaneGeometrySystem=a("fh");a={};a.Dv=b;a.Ql=d;a.Py=c;a.Camera=g;a.zwa=f;a.Yi=i;a.Jv=e;a.Js=j;a.Group=o;a.Ls=k;a.bj=n;a.Light=r;a.Line=p;a.Qv=t;a.wq=s;a.Os=u;a.Mesh=v;a.yg=w;a.nxa=x;a.Hb=ParentSystem;a.Plane=y;a.Eo=PixelScaleTransformSystem;a.Rj=PointerOverTransformSystem;a.Th=RendererSystem;a.Scene=SceneSystem;a.Exa=SelectionSystem;a.Vc=SolidMaterialSystem;
a.Sphere=SphereSystem;a.Sprite=SpriteSystem;a.va=TransformSystem;a.Vv=VideoMaterialSystem;a.Vj=ViewportSystem;a.Xv=ViewportPlaneGeometrySystem;return a});
define("fR","require,kG,nU,d,bY,kx,fm,if".split(","),function(a){function b(a){return a.map(function(a){return String.fromCharCode(a)}).join("")}var d=a("kG"),c=a("nU"),g=a("d"),f=a("bY"),i=a("kx"),e=a("fm"),j=a("if"),a=d.extend(g,function(a,b){g.call(this);this.Zb=a;this.rNa=b;this.Wu=(new i(a)).ma(e.SC).ma(e.Dv).ma(e.Bs).ma(e.Ky).ma(e.Ql).ma(e.Ev).ma(e.Ly).ma(e.Py).ma(e.Gv).ma(e.oq).ma(e.Es).ma(e.Yi).ma(e.Hv).ma(e.TO).ma(e.so).ma(e.Iv).ma(e.Jv).ma(e.$C).ma(e.Is).ma(e.aD).ma(e.Ks).ma(e.Js).ma(e.tq).ma(e.Geometry).ma(e.Group).ma(e.eD).ma(e.Ls).ma(e.Nv).ma(e.Light).ma(e.Ms).ma(e.Line).ma(e.bj).ma(e.Ov).ma(e.Qv).ma(e.Rv).ma(e.Pv).ma(e.Material).ma(e.wq).ma(e.Sv).ma(e.Os).ma(e.Do).ma(e.Mesh).ma(e.xq).ma(e.yg).ma(e.Ps).ma(e.Qs).ma(e.kz).ma(e.Object3D).ma(e.mD).ma(e.Rs).ma(e.nD).ma(e.Ss).ma(e.OrthographicCamera).ma(e.Tv).ma(e.PerspectiveCamera).ma(e.zq).ma(e.Hb).ma(e.yq).ma(e.Eo).ma(e.mz).ma(e.Plane).ma(e.Ts).ma(e.Fo).ma(e.Us).ma(e.Rj).ma(e.Aq).ma(e.Vs).ma(e.Vc).ma(e.Ws).ma(e.va).ma(e.pz).ma(e.zf).ma(e.Th).ma(e.Bq).ma(e.Scene).ma(e.Dq).ma(e.Ud).ma(e.nz).ma(e.Sphere).ma(e.oz).ma(e.Sprite).ma(e.Eq).ma(e.Vc).ma(e.Ws).ma(e.Vv).ma(e.Wv).ma(e.Vj).ma(e.Xv).ma(e.Ys).ma(e.uD).Nd(j.Camera,"Camera").Nd(j.Vj,
"Viewport").Nd(j.Ls,"ImageMaterial").Nd(j.Yi,"CanvasMaterial").Nd(j.bj,"LineMaterial").Nd(j.Vc,"SolidMaterial").Nd(j.Vv,"VideoMaterial").Nd(j.wq,"MaterialTransform").Nd(j.Os,"MaterialVariant").Nd(j.Xv,"ViewportPlaneGeometry").Nd(j.Group,"Group").Nd(j.Line,"Line").Nd(j.Mesh,"Mesh").Nd(j.Plane,"Plane").Nd(j.Sphere,"Sphere").Nd(j.Sprite,"Sprite").Nd(j.yg,"Model").Nd(j.Light,"Light").Nd(j.Scene,"Scene").Nd(j.Hb,"Parent").Nd(j.nxa,"ObjectId").Nd(j.Dv,"Animation").Nd(j.Js,"FloorTransform").Nd(j.zwa,"CameraControls").Nd(j.Jv,
"Dragging").Nd(j.Exa,"Selection").Nd(j.Rj,"PointerOverTransform").Nd(j.Eo,"PixelScaleTransform").Nd(j.va,"Transform").Nd(j.Ql,"Area").Nd(j.Qv,"LineToTransform").Nd(j.Camera.TC,"CameraAutoNearFar").Nd(j.Py,"Beacon").Nd(j.Th,"Renderer");this.h=this.Wu.Ld("Renderer");this.sB=[];this.AB=B;this.bind(c.hc,this.gk,this,m);this.bind(c.nc,this.ck,this,m)});a.prototype.Ld=function(a){return this.Wu.Ld(a)};a.prototype.bg=function(a){this.Wu.bg(a)};a.prototype.fqa=function(a){if(!(this.sB.indexOf(a)>=0)){this.sB.push(a);
if(a=this.h.G(e.Th))a.iO=this.sB.slice()}};a.prototype.rRa=function(a){a=this.sB.indexOf(a);if(!(a<0)){this.sB.splice(a,1);if(a=this.h.G(e.Th))a.iO=this.sB.slice()}};a.prototype.XSa=function(){if(this.AB!=m){this.AB=m;var a=this.h.G(e.Th);if(a)a.shadowMap=this.AB}};a.prototype.xd=function(a){this.Wu.xd(a)};a.prototype.y9=function(){this.Wu.update();return this.h.getComponent(e.Th).canvas.toDataURL("image/png")};a.prototype.gk=function(){this.qKa()};a.prototype.ck=function(){this.jLa()};a.prototype.qKa=
function(){var a=this.h.getComponent(e.Th);if(!a){a=this.h.C(e.Th);a.canvas=document.createElement("canvas");this.Ab().OV(a.canvas);a.iO=this.sB.slice();a.antialias=m;a.shadowMap=this.AB;if(this.Zb.get(o)&&this.rNa){this.VM=document.createElement("div");for(var b in k)this.VM.style[b]=k[b];this.Ab().OV(this.VM)}}};a.prototype.jLa=function(){var a=this.h.getComponent(e.Th);if(a){this.Ab().pua(a.canvas);this.VM&&this.Ab().pua(this.VM);this.VM=q;this.h.ga(e.Th)}};var o=b([119,97,116,101,114,109,97,114,
107]),k={};k[b([104,101,105,103,104,116])]=b([49,48,48,37]);k[b([119,105,100,116,104])]=b([49,48,48,37]);k[b([112,111,115,105,116,105,111,110])]=b([97,98,115,111,108,117,116,101]);k[b([116,111,112])]=0;k[b([108,101,102,116])]=0;k[b([98,97,99,107,103,114,111,117,110,100,73,109,97,103,101])]=b([117,114,108,40,34])+f.Qxa+b([34,41]);k[b([98,97,99,107,103,114,111,117,110,100,80,111,115,105,116,105,111,110])]=b([99,101,110,116,101,114]);k[b([98,97,99,107,103,114,111,117,110,100,83,105,122,101])]=b([99,
111,110,116,97,105,110]);k[b([112,111,105,110,116,101,114,69,118,101,110,116,115])]=b([110,111,110,101]);k[b([98,97,99,107,103,114,111,117,110,100,82,101,112,101,97,116])]=b([110,111,45,114,101,112,101,97,116]);k[b([111,112,97,99,105,116,121])]=0.5;return a});
define("ij",["require","kG","nU","gE","du"],function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("du"),a=b.extend(g,function(a,b){g.call(this,a);this.T=b;this.T.bind(d.u("video"),this.PK,this);this.T.bind(d.Fc,this.PK,this);this.PK()});a.prototype.clear=function(){this.T&&(this.T.unbind(d.u("video"),this.PK,this),this.T.unbind(d.Fc,this.PK,this),this.T=q);g.prototype.clear.call(this)};a.prototype.PK=function(){this.Raa(this.T.get("state")!=c.L?this.T.get("video"):q)};return a});
define("eU","require,kG,nU,bc,d,dK,ij".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("bc"),g=a("d"),f=a("dK"),i=a("ij"),a=b.extend(g,function(a,b,o){g.call(this);this.Zb=a;this.K=b;this.T=o;this.set("toolTipDisabled",m);this.set("cursor",c.Mv);this.bind(d.sc,this.Vb,this,m);this.aG=new i(b,o);this.rF=new f.Hca;this.rF.Caa(f.Hca.XY);this.rF.Jf(this.ET=B);[this.aG.Lc(),this.rF.Lc()].forEach(function(a,b){this.Ab().append(a);a.css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden",
"z-index":b})}.bind(this))});a.prototype.Kaa=function(a,b){if(this.ET!=a){this.ET=a;this.rF.Kua(b);this.rF.Jf(a)}};a.prototype.Vb=function(){this.DU=m;var a=this.Ua(),b=this.Cb();this.rF.setSize(a,b)};return a});
define("lz","require,kG,nU,bc,c,nq,fm,fR,eU".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("bc"),g=a("c"),f=a("nq"),i=a("fm"),e=a("fR"),j=a("eU"),a=b.extend(f,function(a,b,e){f.call(this);this.Zb=a;this.K=b;this.T=e;this.je("Renderer");this.set("toolTipDisabled",m);this.set("cursor",c.Mv);this.set("layout",g.MO);this.Tb=this.Aa=this.be=q;this.BV=[];this.SM=[];this.bind(d.sc,this.Vb,this,m);this.FM()});a.prototype.mb=function(){f.prototype.mb.call(this);if(this.be==q){this.be=new e(this.Zb,B);
this.be.$({left:0,top:0,right:0,bottom:0});this.Oa(this.be);this.GBa();this.$Aa();this.BV.forEach(function(a){this.Lfa(a)}.bind(this))}if(this.Tb==q){this.Tb=new j(this.Zb,this.K,this.T);this.Tb.$({left:0,top:0,right:0,bottom:0});this.Oa(this.Tb);this.FM()}};a.prototype.HNa=function(a){this.BV.push(a);this.be&&this.Lfa(a)};a.prototype.GBa=function(){this.Aa=this.be.Ld("Scene");this.Aa.C(i.Scene).backgroundColor="transparent";this.be.fqa(this.Aa)};a.prototype.$Aa=function(){this.oa=this.be.Ld("Camera");
var a=this.oa.C(i.OrthographicCamera);a.width=this.Se();a.height=this.Re();this.oa.C(i.Hb).Qb=this.Aa;this.Aa.G(i.Scene).co=this.oa};a.prototype.Vb=function(){if(this.oa){var a=this.oa.G(i.OrthographicCamera);a.width=this.Se();a.height=this.Re()}};a.prototype.Lfa=function(a){var b=this.be.Ld("Video");b.C(i.Hb).Qb=this.Aa;b.C(i.Mesh).Fb=a;var c=b.C(i.Xv);c.Fb=a;c.co=this.oa;c=b.C(i.Vv);c.Fb=a;c.mwa=a.get("video");c.La=a;this.SM.push(b);this.FM()};a.prototype.sua=function(a){a=this.BV.indexOf(a);if(!(a<
0)){this.BV.splice(a,1);this.be&&this.ZBa(this.SM[a])}};a.prototype.ZBa=function(a){var b=this.SM.indexOf(a);if(!(b<0)){this.SM.splice(b,1);this.be.bg(a);this.FM()}};a.prototype.Kaa=function(a){this.ET=a;this.FM()};a.prototype.FM=function(){this.Tb&&this.Tb.Kaa(this.ET&&this.SM.length>0)};return a});
define("bx","require,dY,kG,nU,gE,cs,eQ,me,fV,y,eI,lz,t,dV,cG,gq,nq".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("gE"),f=a("cs"),i=a("eQ"),e=a("me"),j=a("fV"),o=a("y");a("eI");a("lz");var k=a("t"),n=a("dV"),r=a("cG"),p=a("gq"),t=a("nq"),s=d.extend(t,function(){t.call(this);this.set("childrenInteractionEnabled",m);this.set("contentOpaque",m);this.set("creationPolicy",r.jz);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",m);this.set("doubleClickAction","toggle_fullscreen");this.set("subtitlesEnabled",m);this.set("checkToolTipOcclusion",m);this.set("isKeyboardTarget",B);this.Vq=this.Gd=this.SQ=this.Ih=q;this.r5=this.or=
B;this.li=g.L;this.Xl=this.Wj=q;this.En=B;this.l6=[];this.bind(s.Lca,this.VGa,this,m);this.bind(s.Kca,this.UGa,this,m);this.bind(c.zb,this.Lka,this);this.bind(c.zb,this.Lka,this);this.bind(c.bc,this.oHa,this);this.bind(c.rb,this.nHa,this);this.bind(c.hc,this.gT,this,m);this.bind(c.nc,this.lHa,this,m);this.t9=new e(this,"buttonPause",n.Uj);this.t9.bind(c.ca,this.aB,this);this.t9.set("state",p.me);this.v9=new e(this,"buttonPlay",n.Uj);this.v9.bind(c.ca,this.bB,this);this.v9.set("state",p.me);this.u9=
new e(this,"buttonPlayPause",n.Uj);this.u9.bind(c.ca,this.RGa,this);this.u9.set("state",p.me);this.w9=new e(this,"buttonStop",n.Uj);this.w9.bind(c.ca,this.vx,this);this.w9.set("state",p.bb);this.LNa=new e(this,"buttonRestart",n.ne);this.LNa.bind(c.ca,this.sx,this);this.SV=new e(this,"buttonToggleSubtitles",n.Uj);this.SV.bind(c.yi,function(){this.set("subtitlesEnabled",m)},this,m);this.SV.bind(c.Sj,function(){this.set("subtitlesEnabled",B)},this,m);this.bind(c.u("subtitlesEnabled"),function(){this.SV.set("pressed",
this.get("subtitlesEnabled"))},this);this.SV.set("pressed",this.get("subtitlesEnabled"));this.nFa=d.hq(this.aNa,this);this.bind(c.Tl,this.kHa,this,m);this.bind(s.lP,this.mHa,this,m)});i.F("ViewerArea",s).H("UIComponent").Q({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",translationTransitionSpeed:"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"}).Mg({play:function(){this.bB()},pause:function(){this.aB()},stop:function(){this.vx()},restart:function(){this.sx()}});s.jc=
{progressBackgroundColor:l,progressBackgroundColorDirection:l,progressBackgroundColorRatios:l,progressBackgroundOpacity:l,progressBarBackgroundColor:l,progressBarBackgroundColorDirection:l,progressBarBackgroundColorRatios:l,progressBarBorderColor:l,progressBarBorderRadius:l,progressBarBorderSize:l,progressBarOpacity:l,progressBorderColor:l,progressBorderRadius:l,progressBorderSize:l,progressBottom:0,progressHeight:20,progressLeft:0,progressOpacity:l,progressPercent:0,progressRight:0,progressVisible:B,
externalPlaybackBar:l,externalProgressBar:l,playbackBarBackgroundColor:l,playbackBarBackgroundColorDirection:l,playbackBarBackgroundOpacity:l,playbackBarBorderColor:l,playbackBarBorderRadius:l,playbackBarBorderSize:l,playbackBarBottom:10,playbackBarHeight:l,playbackBarWidth:l,playbackBarLeft:l,playbackBarOpacity:l,playbackBarRight:l,playbackBarLiveDragging:l,playbackBarDuration:100,playbackBarPosition:0,playbackBarRollOverDisplay:B,plabackBarSteps:l,plabackBarSelectedStep:l,playbackBarVisible:B,playbackBarProgressBackgroundColor:l,
playbackBarProgressBackgroundColorDirection:l,playbackBarProgressBackgroundColorRatios:l,playbackBarProgressBorderColor:l,playbackBarProgressBorderRadius:l,playbackBarProgressBorderSize:l,playbackBarProgressOpacity:l,playbackBarHeadBackgroundColor:l,playbackBarHeadBackgroundColorDirection:l,playbackBarHeadBackgroundColorRatios:l,playbackBarHeadBorderColor:l,playbackBarHeadBorderRadius:l,playbackBarHeadBorderSize:l,playbackBarHeadOpacity:l,playbackBarHeadWidth:l,playbackBarHeadHeight:l,playbackBarHeadShadow:l,
playbackBarHeadShadowBlurRadius:l,playbackBarHeadShadowColor:l,playbackBarHeadShadowHorizontalLength:l,playbackBarHeadShadowOpacity:l,playbackBarHeadShadowSpread:l,playbackBarHeadShadowVerticalLength:l,playbackBarStepBackgroundColor:l,playbackBarStepBackgroundColorDirection:l,playbackBarStepBackgroundColorRatios:l,playbackBarStepBorderColor:l,playbackBarStepBorderRadius:l,playbackBarStepBorderSize:l,playbackBarStepOpacity:l,playbackBarStepWidth:l,playbackBarStepHeight:l,playbackBarStepShadow:l,playbackBarStepShadowBlurRadius:l,
playbackBarStepShadowColor:l,playbackBarStepShadowHorizontalLength:l,playbackBarStepShadowOpacity:l,playbackBarStepShadowSpread:l,playbackBarStepShadowVerticalLength:l,playbackBarStepSelectedBackgroundColor:l,playbackBarStepSelectedBackgroundColorDirection:l,playbackBarStepSelectedBackgroundColorRatios:l,playbackBarStepSelectedBorderColor:l,playbackBarStepSelectedBorderRadius:l,playbackBarStepSelectedBorderSize:l,playbackBarStepSelectedOpacity:l,playbackBarStepSelectedWidth:l,playbackBarStepSelectedHeight:l,
playbackBarStepSelectedShadow:l,playbackBarStepSelectedShadowBlurRadius:l,playbackBarStepSelectedShadowColor:l,playbackBarStepSelectedShadowHorizontalLength:l,playbackBarStepSelectedShadowOpacity:l,playbackBarStepSelectedShadowSpread:l,playbackBarStepSelectedShadowVerticalLength:l,subtitlesBackgroundColor:"#000000",subtitlesBackgroundOpacity:1,subtitlesBorderColor:l,subtitlesBorderSize:0,subtitlesBottom:"10%",subtitlesFontFamily:l,subtitlesFontColor:"#ffffff",subtitlesFontSize:"12px",subtitlesFontStyle:l,
subtitlesFontWeight:l,subtitlesGap:10,subtitlesHorizontalAlign:"center",subtitlesOpacity:1,subtitlesPaddingTop:5,subtitlesPaddingBottom:5,subtitlesPaddingLeft:5,subtitlesPaddingRight:5,subtitlesShadow:B,subtitlesShadowBlurRadius:l,subtitlesShadowHorizontalLength:0,subtitlesShadowVerticalLength:0,subtitlesShadowColor:"#000000",subtitlesShadowOpacity:0,subtitlesTextDecoration:l,subtitlesTextShadowBlurRadius:l,subtitlesTextShadowColor:"#000000",subtitlesTextShadowHorizontalLength:0,subtitlesTextShadowOpacity:0,
subtitlesTextShadowVerticalLength:0,subtitlesTop:l,subtitlesVerticalAlign:"bottom",transitionDuration:500,blendingTransitionDuration:l,disolveTransitionDuration:l,translationTransitionDuration:l,translationTransitionEnabled:m,toolTipEnabled:m};b.defaults(s.jc,t.jc);s.prototype.set=function(a,b){if(a=="playbackState"){b=this.li;if(this.get(a)!=b){this.r5=m;this.nFa()}}switch(a){case "toolTipEnabled":this.set("toolTipDisabled",b===B);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.GM()}t.prototype.set.call(this,a,b)};s.prototype.ab=function(){this.zn(s.jc)};s.prototype.mb=function(){t.prototype.mb.call(this);if(this.Ih==q){this.Ih=new o;this.Oa(this.Ih)}if(this.Gd==q){this.Gd=new j;
this.Gd.bind(c.qa,this.o5,this,m);this.Oa(this.Gd);this.GM()}};s.prototype.ZOa=S("Gd");s.prototype.Ol=function(){t.prototype.Ol.call(this);for(var a=[],b=this.l6.length-1;b>=0;b--)a.push(this.l6[b].h);this.Gd&&a.push(this.Gd);this.Ih&&a.push(this.Ih);var c=this.Db(),a=a.filter(function(a){return c.indexOf(a)>=0}),c=c.filter(function(b){return a.indexOf(b)==-1}).concat(a);c.forEach(function(a,b){a&&this.P9(a)!=b&&this.Zm(a,b)}.bind(this))};s.prototype.Ma=function(){if(this.v("externalProgressBar")){(this.SQ=
this.p("externalProgressBar"))?this.removeChild(this.Ih):this.Oa(this.Ih);this.I("externalProgressBar");b(s.Nda).each(function(a){this.yB(a)},this)}this.Yb(s.Zxa,s.Cda,[this.Ih],m,m);var a=[this.Ih];this.SQ&&a.push(this.SQ);this.Yb(s.Nda,s.Oda,a,m,m);if(this.v("externalPlaybackBar")){this.Vq&&this.Vq.unbind(c.qa,this.o5,this,m);(this.Vq=this.p("externalPlaybackBar"))?this.removeChild(this.Gd):this.Oa(this.Gd);this.GM();this.Vq&&this.Vq.bind(c.qa,this.o5,this,m);this.I("externalPlaybackBar");b(s.Jda).each(function(a){this.yB(a)},
this)}this.Yb(s.Yxa,s.Bda,[this.Gd],m,m);a=[this.Gd];this.Vq&&a.push(this.Vq);this.Yb(s.Jda,s.Kda,a,m,m);t.prototype.Ma.call(this)};s.prototype.aNa=function(){if(this.r5){this.r5=B;this.t9.set("state",this.li==g.Gb?p.bb:p.me);this.v9.set("state",this.li==g.S||this.li==g.Gb?p.bb:p.me);this.u9.set("state",this.li==g.S?p.bb:p.me);this.w9.set("state",this.li==g.L?p.bb:p.me)}};s.prototype.mc=function(a){this.li=a;this.set("playbackState",a)};s.prototype.gT=function(){s.gk(this)};s.prototype.lHa=function(){s.ck(this)};
s.prototype.aB=function(){this.li==g.Gb?this.tj():this.Nn()};s.prototype.bB=function(){this.tj()};s.prototype.RGa=function(){this.li==g.S?this.Nn():this.tj()};s.prototype.vx=function(){this.Om()};s.prototype.sx=function(){this.Om();this.tj()};s.prototype.kHa=function(){if(!this.Wj||!this.Wj.Eqa())switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.wb().Fi;a&&a.available()&&a.toggle()}};s.prototype.mHa=function(a){this.l6=a.data.players;this.wd()};s.prototype.tj=function(){this.Xl&&
this.Xl.play()};s.prototype.Nn=function(){this.Xl&&this.Xl.pause()};s.prototype.Om=function(){this.Xl&&this.Xl.stop()};s.prototype.VGa=function(a){this.$ma(a.data.player)};s.prototype.UGa=function(a){this.Wj==a.data.player&&this.$ma(q)};s.prototype.Lka=function(){s.lq(this)};s.prototype.oHa=function(){this.En=m;this.GM()};s.prototype.nHa=function(){this.En=B;this.GM()};s.prototype.GM=function(){this.Gd&&this.Gd.set("visible",this.get("playbackBarVisible")&&(this.En||!this.get("playbackBarRollOverDisplay")||
k.OX()))};s.prototype.$ma=function(a){if(this.Wj!=a){this.set("playbackBarVisible",B);this.Wj&&this.Wj.lq(B);this.Xl&&this.Xl.unbind(c.u("state"),this.WZ,this);this.VHa=this.Wj;(this.Wj=a)&&this.Wj.lq(!!this.KE);(this.Xl=this.Wj&&this.Wj.$za?this.Wj:q)&&this.Xl.bind(c.u("state"),this.WZ,this,m);this.WZ()}};s.prototype.lq=function(a){this.KE=a;this.set("isKeyboardTarget",a);this.Wj&&this.Wj.lq(!!this.KE)};s.prototype.$Ta=function(){return!this.VHa};s.prototype.WZ=function(){this.Xl?this.mc(this.Xl.get("state")):
this.mc(g.L)};s.prototype.o5=function(){var a=(this.Vq?this.Vq:this.Gd).get("position");this.trigger(new f(s.OY,{position:a}))};s.Cda={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"};s.Zxa=b(s.Cda).keys();s.Oda={progressPercent:"percent",progressVisible:"visible"};s.Nda=b(s.Oda).keys();s.Bda={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"};s.Yxa=b(s.Bda).keys();s.Kda={playbackBarDuration:"duration",playbackBarPosition:"position",playbackBarSteps:"steps",playbackBarSelectedStep:"selectedStep",playbackBarVisible:"visible"};s.Jda=b(s.Kda).keys();s.lP=
"requestByPlayer";s.Lca="playerShow";s.Kca="playerHide";s.OY="playbackBarPositionChange";s.HA=q;s.lq=function(a){if(s.HA!=a){s.HA&&s.HA.lq(B);s.HA=a;s.HA&&s.HA.lq(m)}};s.hy=[];s.gk=function(a){var b=s.hy.indexOf(a);b<0&&s.hy.splice(b,1);s.hy.push(a);this.lq(a)};s.ck=function(a){var b=s.hy.indexOf(a);b<0&&s.hy.splice(b,1);s.HA==a&&s.lq(s.hy.length?s.hy[s.hy.length-1]:q)};return s});
define("cS","kG,lh,nU,cs,eQ,bx".split(","),function(a,b,d,c,g,f){var i=a.extend(b,function(a){b.call(this);this.$za=a;this.UL=this.hx=q});i.xf="mediaShow";i.xi="mediaHide";i.prototype.lq=I();i.prototype.Eqa=T(B);i.prototype.QL=function(a){if(this.hx!=a){this.hx&&this.V7(this.hx);(this.hx=a)&&this.C_(this.hx)}};i.prototype.C_=function(a){a.bind(f.lP,this.Spa,this,m);a.bind(f.OY,this.fL,this)};i.prototype.V7=function(a){a.unbind(f.lP,this.Spa,this);a.unbind(f.OY,this.fL,this)};i.prototype.nH=function(a){this.hx.trigger(new c(f.lP,
{players:a||[this]}))};i.prototype.Spa=function(a){a.data.players.indexOf(this)<0&&this.YF()};i.prototype.fL=I();i.prototype.YF=I();i.prototype.QJ=function(a){this.trigger(new c(i.xf,{media:a}));this.UL=this.hx;this.UL.trigger(new c(f.Lca,{player:this}))};i.prototype.PJ=function(a){this.trigger(new c(i.xi,{media:a}));if(this.UL){this.UL.trigger(new c(f.Kca,{player:this}));this.UL=q}};return i});
define("dT","kG,lh,nU,cs,eQ,me,cS,bx,gE,dV,gq".split(","),function(a,b,d,c,g,f,i,e,j,o,k){b=a.extend(i,function(){i.call(this,m);this.or=B;this.WF=m;this.o=j.L;this.G_=new f(this,"buttonPlayPause",o.Uj);this.G_.bind(d.yi,this.SGa,this,m);this.G_.bind(d.Sj,this.TGa,this,m);this.Nea=new f(this,"buttonPause",o.ne);this.Nea.bind(d.ca,this.aB,this,m);this.Oea=new f(this,"buttonPlay",o.ne);this.Oea.bind(d.ca,this.bB,this,m);this.Tea=new f(this,"buttonStop",o.ne);this.Tea.bind(d.ca,this.vx,this,m);this.Sza=
new f(this,"buttonRestart",o.ne);this.Sza.bind(d.ca,this.sx,this,m);this.oia=a.hq(this.FMa,this);this.oia()});b.prototype.set=function(a,b){a!="state"&&i.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){switch(a){case "state":return this.o}return i.prototype.get.call(this,a,b)};b.prototype.FMa=function(){if(this.WF){this.WF=B;this.Nea.set("state",this.o==j.Gb?k.bb:k.me);this.Oea.set("state",this.o==j.S||this.o==j.Gb?k.bb:k.me);this.G_.set("pressed",this.o==j.S);this.Tea.set("state",this.o==
j.L?k.bb:k.me)}};b.prototype.Ux=function(a){if(this.or!=a)(this.or=a)||this.mc(j.L)};b.prototype.mc=function(a){var b=this.o;this.o=a;i.prototype.set.call(this,"state",a);if(b!=this.o){this.WF=m;this.oia();this.trigger(new c(d.Fc,{oldState:b,state:this.o}))}};b.prototype.aB=function(){this.or&&(this.o==j.Gb?this.tj():this.Nn())};b.prototype.bB=function(){this.or&&this.tj()};b.prototype.SGa=function(){this.or&&this.tj()};b.prototype.TGa=function(){this.or&&this.Nn()};b.prototype.vx=function(){this.or&&
this.Om()};b.prototype.sx=function(){if(this.or){this.Om();this.tj()}};b.prototype.tj=I();b.prototype.Nn=I();b.prototype.Om=I();return b});define("ju",[],function(){return{Ry:"constrained",Owa:"free_drag",lUa:"free_drag_and_rotation",uZ:"sync_with_field_of_view"}});
define("jV",["kG","ju","lv"],function(a,b,d){function c(){this.ka=m;this.Da=this.Ba=0.5;this.Pc=0;this.Va=1;this.ef=d.Qg;this.ym=b.Ry;this.X3=this.b4=1;this.ge=this.he=this.Yl=this.Zl=100;this.Mm=c.rz}c.prototype.ksa=function(){return this.Mm!==c.rz};c.prototype.jsa=function(){return this.Mm&c.wD?m:B};c.prototype.lsa=function(){return this.Mm&c.xD?m:B};c.prototype.msa=function(){return this.Mm&c.vz?m:B};c.prototype.isa=function(){return this.Mm&c.qz?m:B};c.prototype.getX=function(){this.Tm();return this.Ba};
c.prototype.getY=function(){this.Tm();return this.Da};c.prototype.dq=function(){this.Tm();return this.Va};c.prototype.MG=function(){this.Tm();return this.Pc};c.prototype.jO=function(a,b,c,d,j){this.he=a;this.ge=b;this.ef=c;this.b4=d;this.X3=j;this.Da=this.Ba=0.5;this.Pc=0;this.Va=d;this.ka=m};c.prototype.hb=function(a,b,c,d){this.Ba=a;this.Da=b;this.Pc=c;this.Va=d;this.ka=m};c.prototype.mq=function(a){this.ym=a;this.ka=m};c.prototype.setSize=function(a,b){this.Zl=a;this.Yl=b;this.ka=m};c.prototype.Tm=
function(){if(this.ka){this.ka=B;var a=c.rz;this.Va>this.X3?(this.Va=this.X3,a|=c.$xa):this.Va<this.b4&&(this.Va=this.b4,a|=c.aya);var f,i,e,j;if(this.ym==b.Ry){switch(this.ef){case d.NONE:i=this.he;j=this.ge;break;case d.Bo:i=this.Zl;j=this.ge*this.Zl/this.he;break;case d.Pj:i=this.he*this.Yl/this.ge;j=this.Yl;break;case d.sq:this.he*this.Yl>this.ge*this.Zl?(i=this.he*this.Yl/this.ge,j=this.Yl):(i=this.Zl,j=this.ge*this.Zl/this.he);break;default:case d.Qg:this.he*this.Yl>this.ge*this.Zl?(i=this.Zl,
j=this.ge*this.Zl/this.he):(i=this.he*this.Yl/this.ge,j=this.Yl)}i*=this.Va;j*=this.Va;f=Math.min(0.5*this.Zl/i,0.5);i=Math.max(1-0.5*this.Zl/i,0.5);e=Math.min(0.5*this.Yl/j,0.5);j=Math.max(1-0.5*this.Yl/j,0.5)}else f=0,i=1,e=0,j=1;this.Ba<f?(this.Ba=f,a|=c.wD):this.Ba>i&&(this.Ba=i,a|=c.xD);this.Da<e?(this.Da=e,a|=c.vz):this.Da>j&&(this.Da=j,a|=c.qz);if((this.ym==b.Ry||this.ym==b.Owa)&&0!=this.Pc)this.Pc=0,a|=c.eya;this.Mm=a}};c.rz=0;c.wD=1;c.xD=2;c.vz=4;c.qz=8;c.aya=16;c.$xa=32;c.eya=64;return c});
define("fU",[],function(){function a(){this.MI=0.1;this.zQ=this.A0=this.D0=this.C0=this.K0=this.z0=this.I0=this.H0=this.aN=this.f9=this.xz=this.f_=this.ZM=this.c9=this.XM=this.a9=0}a.prototype.tX=R("MI");a.prototype.dva=function(a,d,c,g,f,i,e,j){this.a9=a;this.c9=d;this.f_=c;this.f9=g;this.XM+=f;this.ZM+=i;this.xz+=e;this.aN+=j};a.prototype.Ge=function(){return 0!=this.H0||0!=this.I0||0!=this.z0||0!=this.K0||0!=this.a9||0!=this.c9||0!=this.f_||0!=this.f9||0!=this.XM||0!=this.ZM||0!=this.xz||0!=this.aN};
a.prototype.xb=function(a){a=1E3/a;this.C0=this.MQ(this.H0/a,this.a9/a+this.XM,this.MI);this.D0=this.MQ(this.I0/a,this.c9/a+this.ZM,this.MI);this.A0=this.MQ(this.z0/a,this.f_/a+this.xz,this.MI);this.zQ=this.MQ(this.K0/a,this.f9/a+this.aN,this.MI);this.H0=this.C0*a;this.I0=this.D0*a;this.z0=this.A0*a;this.K0=this.zQ*a;this.aN=this.xz=this.ZM=this.XM=0};a.prototype.MQ=function(a,d,c){return 0==d?this.Qf(a,d,c):d};a.prototype.Qf=function(a,d,c){a=(d-a)*(1-c);0.01>Math.abs(a)&&(a=0);return d-a};return a});
define("fZ",["kG","nU","cs","fQ","lv"],function(a,b,d,c){var g=a.extend(c,function(){c.call(this);this.gE=7;this.rS=this.r3=B;this.tS=l;this.Pc=0;this.Va=1;this.ge=this.he=100;this.TR=1;this.w5=m;this.x5=B;this.vNa=m;this.e9=B;this.Wa=q});g.prototype.lO=R("gE");g.prototype.yd=function(a,b,c,d){this.Pc=a;this.Va=b;this.he=c;this.ge=d};g.prototype.OSa=function(a){this.w5=a;this.vU(this.w5&&!!this.Wa)};g.prototype.qs=function(a){this.Wa!=a&&(this.vU(B),this.S6(B),this.Al(),this.Wa=a,this.vU(this.w5&&
!!this.Wa),this.S6(this.vNa&&!!this.Wa))};g.prototype.Al=function(){this.vU(B);this.S6(B);this.Wa=q};g.prototype.vU=function(a){this.x5!=a&&((this.x5=a)?this.zza():this.TLa())};g.prototype.S6=function(a){this.e9!=a&&((this.e9=a)?this.Aza():this.ULa())};g.prototype.zza=function(){this.Wa.bind(b.zb,this.Ed,this,m);this.Wa.bind(b.ad,this.oj,this,m);this.Wa.bind(b.Wb,this.pj,this,m)};g.prototype.TLa=function(){this.Wa.unbind(b.zb,this.Ed,this);this.Wa.unbind(b.ad,this.oj,this);this.Wa.unbind(b.Wb,this.pj,
this)};g.prototype.Aza=function(){this.Wa.bind(b.vq,this.PA,this,m);this.Wa.bind(b.cD,this.mA,this,m)};g.prototype.ULa=function(){this.Wa.unbind(b.vq,this.PA,this);this.Wa.unbind(b.cD,this.mA,this)};g.prototype.Ed=function(a){this.FKa(a)};g.prototype.oj=function(a){this.npa(a)};g.prototype.pj=function(){this.s1()};g.prototype.PA=function(a){this.F8(a)};g.prototype.mA=function(a){this.G8(a)};g.prototype.FKa=function(a){this.r3=m;this.rS=B;this.tS=a;this.npa(a)};g.prototype.npa=function(a){if(this.r3){var b=
a.pageX-this.tS.pageX,c=a.pageY-this.tS.pageY;this.rS||(Math.sqrt(b*b+c*c)>this.gE?this.rS=m:b=c=0);this.rS&&(this.tS=a);a=this.Pc*Math.PI/180;this.trigger(new d(g.wo,{xDelta:-((b*Math.cos(a)+c*Math.sin(a))/this.he),yDelta:-((c*Math.cos(a)-b*Math.sin(a))/this.ge)}))}};g.prototype.s1=function(){this.r3=B};g.prototype.G8=function(a){if(this.TR!=a.scale){this.s1();var b=this.TR;this.TR=a.scale;this.trigger(new d(g.Ao,{zoomDelta:this.Va*this.TR/b-this.Va}))}};g.prototype.F8=function(a){0!=a.delta&&(this.s1(),
this.trigger(new d(g.Ao,{zoomDelta:0.1*this.Va*a.aW})))};g.wo="position change";g.Ao="zoom change";g.yUa="vieport navigation";g.xUa="relative navigation";g.wUa="relative exponential navigation";g.vUa="dragging";return g});define("kv",[],function(){return{oZ:"rotateClockwise",pZ:"rotateCounterClockwise",Zs:"zoomIn",$s:"zoomOut",Lf:"stop"}});
define("mM","kG,cs,fQ,lv,fU,fZ,kv,nU".split(","),function(a,b,d,c,g,f,i){var e=a.extend(d,function(a,b){d.call(this);this.h=a;this.Y=b;this.br=this.QT=this.N=B;this.Da=this.Ba=0.5;this.Pc=0;this.Va=1;this.ge=this.he=100;this.ef=c.Ry;this.Sb=new g;this.Ya=new f;if(this.h.Fn){this.Ya.lO(e.RZ);this.Sb.tX(e.SZ)}else{this.Ya.lO(0);this.Sb.tX(1)}this.Ya.bind(f.wo,this.JGa,this,m);this.Ya.bind(f.Ao,this.ox,this,m)});e.prototype.clear=function(){this.Ya.unbind(f.wo,this.WVa,this,m);this.Ya.unbind(f.Ao,this.ox,
this,m);this.Ya.Al();this.h=this.Y=this.Sb=this.Ya=q};e.prototype.Lj=function(a){switch(a){case i.oZ:this.Cc(0,0,+e.MZ,0,0,0,0,0);break;case i.pZ:this.Cc(0,0,-e.MZ,0,0,0,0,0);break;case i.Zs:this.Cc(0,0,0,+e.XH,0,0,0,0);break;case i.$s:this.Cc(0,0,0,-e.XH,0,0,0,0);break;case i.Lf:this.Cc(0,0,0,0,0,0,0,0)}};e.prototype.hb=function(a,b,c,d,e,f){this.Ba=a;this.Da=b;this.Pc=c;this.Va=d;this.he=e;this.ge=f;this.Ya.yd(this.Pc,this.Va,this.he,this.ge)};e.prototype.Ge=function(){return this.N&&this.Sb.Ge()};
e.prototype.xb=function(a){this.Sb.xb(a);this.Y.hb(this.Ba+this.Sb.C0,this.Da+this.Sb.D0,this.Pc+this.Sb.A0,this.Va+this.Sb.zQ);this.Ba=this.Y.getX();this.Da=this.Y.getY();this.Pc=this.Y.MG();this.Va=this.Y.dq()};e.prototype.pO=function(a){this.br=a;this.Ya.OSa(!this.br)};e.prototype.xd=function(a){(this.N=a)?this.Ya.qs(this.h.getParent()):this.Ya.Al()};e.prototype.JGa=function(a){this.Cc(0,0,0,0,a.data.xDelta,a.data.yDelta,0,0)};e.prototype.ox=function(a){this.Cc(0,0,0,0,0,0,0,a.data.zoomDelta)};
e.prototype.Cc=function(a,b,c,d,e,f,g,i){this.Sb.dva(a,b,c,d,e,f,g,i);this.Kh()};e.prototype.Kh=function(){this.trigger(new b(e.lh))};e.lh="position change request";e.RZ=7;e.SZ=0.2;e.XH=0.5;e.MZ=30;return e});
define("mc","kG,cs,fQ,nx,bC,fU,fZ,kv,nU".split(","),function(a,b,d,c,g,f,i,e){var j=a.extend(d,function(a,b){d.call(this);this.h=a;this.Y=b;this.N=B;this.Da=this.Ba=0.5;this.Pc=0;this.Va=1;this.ge=this.he=100;this.O=q;this.m1=m;this.Kc=q;this.qT=0;this.Ir=this.rk=this.Mu=l;this.Sb=new f;this.Ya=new i;if(this.h.Fn){this.Ya.lO(j.RZ);this.Sb.tX(j.SZ)}else{this.Ya.lO(0);this.Sb.tX(1)}this.Ya.bind(i.Ao,this.ox,this,m)});j.prototype.vSa=function(a,b){this.he=a;this.ge=b;this.lG()};j.prototype.tv=function(a){if(this.Kc!=
a){this.Kc=a;this.qT=l;this.lG()}};j.prototype.an=function(a,b){if(this.Kc==a){this.qT=b;this.lG()}};j.prototype.lG=function(){var a,b,c;if(this.Kc&&this.qT!=l){a=this.Kc.get("x",0)/this.he;b=this.Kc.get("y",0)/this.ge;c=-(this.qT+this.Kc.get("angle",0))}else c=b=a=l;if(this.Ir!=c){this.Ir=c;this.Kh()}if(this.Mu!=a||this.rk!=b){this.Mu=a;this.rk=b;this.mFa();this.Kh()}};j.prototype.mFa=function(){this.m1=m;this.Kh()};j.prototype.HB=function(){if(this.m1||this.O&&this.O.Te()){this.m1=B;this.O=q;if(this.Mu!=
l&&this.rk!=l&&this.Ir!=l){for(var a=this.Ir-this.Pc;a>180;)a=a-360;for(;a<-180;)a=a+360;if(this.Ba!=this.Mu||this.Da!=this.rk)this.O=new c("quad_in_out",[new g("x",this.Ba,this.Mu,1),new g("y",this.Da,this.rk,1),new g("angleDif",a,a,360)],500);else if(this.Ir!=this.Pc)this.O=new c("quad_in_out",[new g("x",this.Ba,this.Ba,1),new g("y",this.Da,this.Da,1),new g("angleDif",a,0,360)],500)}}};j.prototype.clear=function(){this.Ya.unbind(i.Ao,this.ox,this,m);this.Ya.Al();this.h=this.Y=this.O=this.Sb=this.Ya=
q};j.prototype.Lj=function(a){switch(a){case e.Zs:this.Cc(+j.XH,0);break;case e.$s:this.Cc(-j.XH,0);break;case e.Lf:this.Cc(0,0)}};j.prototype.hb=function(a,b,c,d,e,f){this.Ba=a;this.Da=b;this.Pc=c;this.Va=d;this.Ya.yd(this.Pc,this.Va,e,f)};j.prototype.Ge=function(){return this.N&&(this.O||this.Sb.Ge()||this.Mu!=l&&this.Ba!=this.Mu||this.rk!=l&&this.Da!=this.rk||this.Ir!=l&&this.Pc!=this.Ir)?m:B};j.prototype.xb=function(a){this.HB();if(this.O){this.O.xb(a);this.Ba=this.O.gb("x");this.Da=this.O.gb("y");
this.Pc=this.Ir-this.O.gb("angleDif")}else{if(this.Mu!=l)this.Ba=this.Mu;if(this.rk!=l)this.Da=this.rk;if(this.Ir!=l)this.Pc=this.Ir}this.Sb.xb(a);this.Y.hb(this.Ba,this.Da,this.Pc,this.Va+this.Sb.zQ);this.Ba=this.Y.getX();this.Da=this.Y.getY();this.Pc=this.Y.MG();this.Va=this.Y.dq()};j.prototype.xd=function(a){if(this.N=a){this.Ya.qs(this.h.getParent());this.lG()}else this.Ya.Al()};j.prototype.ox=function(a){this.Cc(0,a.data.zoomDelta)};j.prototype.Cc=function(a,b){this.Sb.dva(0,0,0,a,0,0,0,b);this.Kh()};
j.prototype.Kh=function(){this.trigger(new b(j.lh))};j.lh="position change request";j.RZ=7;j.SZ=0.2;j.XH=0.5;j.MZ=30;return j});
define("nf","kG,cs,fQ,ju,lv,jV,mM,mc,nU".split(","),function(a,b,d,c,g,f,i,e,j){var o=a.extend(d,function(a){d.call(this);this.h=a;this.h.bind(j.sc,this.Vb,this);this.ym=c.Ry;this.Kc=q;this.Da=this.Ba=0.5;this.Pc=0;this.Va=1;this.Ha=q;this.gU=this.fU=this.Ur=this.Tr=B;this.Pm=m;this.N=B;this.Y=new f;this.Y.mq(this.ym);this.Mb=new i(this.h,this.Y);this.Mb.bind(i.lh,this.mp,this,m);this.oi=new e(this.h,this.Y);this.oi.bind(e.lh,this.mp,this,m);this.ST()});o.prototype.clear=function(){this.Mb.unbind(i.lh,
this.mp,this);this.Mb.clear();this.Mb=q;this.oi.unbind(e.lh,this.mp,this);this.oi.clear();this.Ha=this.Y=this.oi=q;this.h.unbind(j.sc,this.Vb,this);this.h=q};o.prototype.stop=function(){this.Rd=this.Ha=q;this.N=B;this.Mb.xd(B);this.oi.xd(B);this.Eu(0,0,0,0)};o.prototype.start=function(a){var b=a.Ha,c=b.get("width",100),d=b.get("height",100),e=b.get("scaleMode",g.Qg),f=b.get("minimumZoomFactor",1),i=b.get("maximumZoomFactor",1),j=b.get("initialZoomFactor",1);this.Ha=b;this.N=m;this.Rd=a.getItem();
this.Eu(0,0,0,0);this.oi.vSa(c,d);this.Y.jO(c,d,e,f,i);this.Y.hb(0.5,0.5,0,j);this.h.qO(this.Rd,this.Y.getX(),this.Y.getY(),this.Y.MG(),this.Y.dq());this.ST()};o.prototype.Lj=function(a){this.Mb.Lj(a);this.oi.Lj(a)};o.prototype.mq=function(a){if(this.ym!=a){this.ym=a;this.Y.mq(a);this.ST()}};o.prototype.tv=function(a){if(this.Kc!=a){this.Kc=a;this.oi.tv(a);this.ST()}};o.prototype.pO=function(a){this.Mb&&this.Mb.pO(a)};o.prototype.an=function(a,b,c,d){this.oi.an(a,b,c,d)};o.prototype.ov=function(a){if(this.N)if(this.oi.Ge()){this.oi.xb(a);
this.ql(this.oi.Ba,this.oi.Da,this.oi.Pc,this.oi.Va);this.Ca()}else if(this.Mb.Ge()){this.Mb.xb(a);this.ql(this.Mb.Ba,this.Mb.Da,this.Mb.Pc,this.Mb.Va);this.Ca()}else this.Eu(0,0,0,0)};o.prototype.ld=function(){if(this.Rd){var a=this.h.DN(this.Rd),b=this.h.EN(this.Rd),c=this.h.tW(this.Rd),d=this.h.Bra(this.Rd),e=this.h.CN(this.Rd),f=this.h.BN(this.Rd),g=a-this.Ba,i=b-this.Da,j=c-this.Pc,o=d-this.Va;this.Ba=a;this.Da=b;this.Pc=c;this.Va=d;this.Eu(g,i,j,o);this.oi.hb(a,b,c,d,e,f);this.Mb.hb(a,b,c,d,
e,f)}};o.prototype.ST=function(){if(this.ym==c.uZ&&this.Kc!=q&&this.Kc.get("map")==this.Ha){this.Mb.xd(B);this.oi.xd(m)}else{this.Mb.xd(m);this.oi.xd(B)}};o.prototype.mp=function(){this.Ca()};o.prototype.Vb=function(){this.Y.setSize(this.h.Ua(),this.h.Cb());this.Ca()};o.prototype.Ca=function(){this.trigger(new b(o.qb))};o.prototype.ql=function(a,b,c,d){this.h.qO(this.Rd,a,b,c,d)};o.prototype.Eu=function(a,c,d,e){a=B;if(this.Ur!=e<0){this.Ur=!this.Ur;a=m}if(this.Tr!=e>0){this.Tr=!this.Tr;a=m}if(this.fU!=
this.xz>0){this.fU=!this.fU;a=m}if(this.gU!=this.xz<0){this.gU=!this.gU;a=m}if(this.Pm!=(e==0)){this.Pm=!this.Pm;a=m}a&&this.trigger(new b(o.Nj,{rotatingClockwise:this.fU,rotatingCounterClockwise:this.gU,zoomingIn:this.Tr,zoomingOut:this.Ur,stopped:this.Pm}))};o.qb="request frame";o.Nj="movement change";return o});
define("le","require,kG,cs,fQ,lv,jV".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("fQ"),g=a("lv"),f=a("jV"),i=b.extend(c,function(a,b){c.call(this);this.K=a;this.h=b;this.Y=new f;this.Yg=[];this.fa=i.nh;this.An=this.Zj=this.An=this.Nk=q;this.Hg=this.K.get("transitionDuration");this.lg=l});i.prototype.mq=function(a){this.Y.mq(a)};i.prototype.nN=function(a){a.LN()&&this.Y_();this.Yg.push(a);this.VS()};i.prototype.hide=function(){this.Y_();this.Yg.push(q);this.VS()};i.prototype.clear=function(){this.fa=
i.nh;this.Y_();this.jIa();this.Y5();this.h=q};i.prototype.ld=function(a){if(this.fa!=i.nh&&(this.fa==i.tn||this.fa==i.Yv)){this.lg=this.lg+a;a=Math.min(1,this.lg/this.Hg);this.fa==i.tn?this.h.kq(this.An,a):this.h.kq(this.CQ,1-a);this.lg<this.Hg?this.Ca():this.fa==i.tn?this.uCa():this.wCa()}};i.prototype.VS=function(){if(this.fa==i.nh){for(;this.Yg.length>0&&this.Qya(this.Yg[0],this.Zj);)this.Yg.shift();this.Yg.length>0&&this.No()}};i.prototype.Qya=function(a,b){return a==b||!!a&&!!b&&a.isEqual(b)};
i.prototype.No=function(){this.Zj&&(!this.Yg[0]||this.Yg[0].LN())&&this.trigger(new d(i.Uy,{map:this.Zj.Ha}));if(this.K.get("transitionMode","blending")=="fade_out_fade_in"&&this.Zj&&(!this.Yg[0]||this.Yg[0].LN()))this.fw();else{this.An=(this.Nk=this.Yg.shift())&&this.Nk.getItem();this.Nk?this.jI():this.Zj&&this.fw()}};i.prototype.jI=function(){this.pya();this.Nk.LN()&&this.aJa();this.lg=0;this.fa=i.tn;this.Ca()};i.prototype.uCa=function(){this.Y5();this.Zj=this.Nk;this.CQ=this.An;this.An=this.Nk=
q;this.Fw()};i.prototype.fw=function(){this.lg=0;this.fa=i.Yv;this.Ca()};i.prototype.wCa=function(){this.Y5();this.Zj=q;this.Fw()};i.prototype.Fw=function(){this.fa=i.nh;this.Zj&&this.Zj.LN()&&this.trigger(new d(i.Vy,{map:this.Zj.Ha}));this.Yg.length==0?this.Zj?this.trigger(new d(i.BY,{level:this.Zj})):this.trigger(new d(i.oY)):this.No()};i.prototype.aJa=function(){var a=this.Nk.Ha;this.Nk.Gj();this.Y.jO(a.get("width",100),a.get("height",100),a.get("scaleMode",g.Qg),a.get("minimumZoomFactor",1),a.get("maximumZoomFactor",
1));this.Y.hb(0.5,0.5,0,a.get("initialZoomFactor",1));this.h.qO(this.An,this.Y.getX(),this.Y.getY(),this.Y.MG(),this.Y.dq())};i.prototype.Ca=function(){this.trigger(new d(i.qb))};i.prototype.Y_=function(){for(;this.Yg.length>0;){var a=this.Yg.shift();a&&this.h.Mj(a.getItem())}};i.prototype.pya=function(){if(this.Nk){this.h.h9(this.An);this.h.s9(this.An);this.h.kq(this.An,0);this.trigger(new d(i.AY,{level:this.Nk}))}};i.prototype.Y5=function(){if(this.Zj){this.h.removeItem(this.CQ);this.trigger(new d(i.YO,
{level:this.Zj}));this.h.Mj(this.CQ);this.CQ=this.Zj=q}};i.prototype.jIa=function(){if(this.Nk){this.h.removeItem(this.An);this.trigger(new d(i.YO,{level:this.Nk}));this.h.Mj(this.An);this.An=this.Nk=q}};i.nh="stopped";i.tn="blending";i.Yv="disolving";i.qb="request frame";i.AY="level added";i.YO="level removed";i.BY="level fully displayed";i.oY="all pending maps hidden";i.Vy="map show";i.Uy="map hide";return i});
define("kr",[],function(){function a(a,d){this.Ha=a;this.Fa=a.get("image");this.ke=d;this.p3=l}a.prototype.getItem=function(){switch(this.ke){case a.jP:return this.Ha.Lra();default:return this.Ha.Hj()}};a.prototype.Gj=function(){switch(this.ke){case a.jP:return this.Ha.kC();default:return this.Ha.cq()}};a.prototype.LN=function(){return this.p3===l?0==this.getIndex():this.p3};a.prototype.fSa=R("p3");a.prototype.NN=function(){return this.ke==a.bca};a.prototype.isEqual=function(a){return a&&this.Ha==
a.map&&this.ke==a.type};a.prototype.getIndex=function(){return this.ke==a.jP||this.Ha.YG()?0:1};a.prototype.sra=function(){return this.Ha.YG()?2:1};a.jP="preload";a.bca="load";return a});
define("ir","require,kG,jU,nU,cs,fQ,kr,t".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("kr"),e=a("t"),j=b.extend(f,function(a){f.call(this);this.h=a;this.Yg=[];this.GI=this.LA=this.zg=q;this.DA=B;this.VR=q;this.LS=b.hq(this.LS,this)});j.prototype.clear=function(){this.stop();this.h=q};j.prototype.jta=function(a,b){if(this.VR!=a||b){this.stop();this.Ha=a;this.Ha.wRa();d.KV(this.Ha,"image.levels.url",this.LS);var c=[];a.YG()&&e.ob()&&c.push(new i(a,i.jP));c.push(new i(a,
i.bca));c=c.filter(function(a){return a.getItem().pi()});if(c.length){this.Yg=this.Yg.concat(c);this.VS()}}};j.prototype.LS=function(){this.reload()};j.prototype.reload=function(){this.jta(this.Ha,m)};j.prototype.stop=function(){d.na(this.Ha,"image.levels.url",this.LS);this.VR=this.Ha=q;this.Yg=[];this.doa();if(this.DA){this.DA=B;this.R7();this.h.Mj(this.zg.getItem());this.zg=q;this.trigger(new g(j.ZO))}};j.prototype.VS=function(){this.DA||this.R3()};j.prototype.R3=function(){if(this.Yg.length>0){this.zg=
this.Yg.shift();if(!this.DA){this.DA=m;this.trigger(new g(j.XO,{level:this.zg,percent:0}))}this.tza();this.h.ko(this.zg.getItem());this.h.MX(this.zg.getItem())&&this.x4()}else if(this.DA){this.DA=B;this.trigger(new g(j.ZO))}};j.prototype.x4=function(){this.R7();this.xKa();this.zg=q;this.R3()};j.prototype.xKa=function(){this.doa();this.LA=this.zg;var a=this;this.GI=setTimeout(function(){a.GI=q;a.tGa()},500)};j.prototype.tGa=function(){var a=this.LA.Ha;this.LA.fSa(a!=this.VR);this.VR=a;this.trigger(new g(j.CY,
{level:this.LA}));this.LA=q};j.prototype.doa=function(){if(this.GI!=q){clearTimeout(this.GI);this.GI=q;this.h.Mj(this.LA.getItem());this.LA=q}};j.prototype.Pja=function(){this.R7();this.zg=q;this.R3()};j.prototype.Qja=function(a){this.trigger(new g(j.XO,{level:this.zg,percent:a.Kg}))};j.prototype.tza=function(){var a=this.zg.getItem();a.bind(c.U,this.x4,this);a.bind(c.zc,this.Pja,this);a.bind(c.gc,this.Qja,this)};j.prototype.R7=function(){var a=this.zg.getItem();a.unbind(c.U,this.x4,this);a.unbind(c.zc,
this.Pja,this);a.unbind(c.gc,this.Qja,this)};j.XO="level loading progress";j.CY="level loaded";j.ZO="load stopped";return j});define("cC",["require"],function(){function a(a,d){this.x=a;this.y=d}a.prototype.rotate=function(a){var d=Math.cos(a),a=Math.sin(a),c=this.x*a+this.y*d;this.x=this.x*d-this.y*a;this.y=c;return this};a.prototype.translate=function(a,d){this.x+=a;this.y+=d;return this};a.prototype.scale=function(a,d){this.x*=a;this.y*=d;return this};return a});
define("lT",["require","lv","mk"],function(a){function b(a,b,i){this.kg=a;this.Rna=b;this.Pna=i;this.ef=d.Hs;this.Tk=c.ae;this.xl=c.zd}var d=a("lv"),c=a("mk");b.prototype.Ey=R("ef");b.prototype.qH=R("Tk");b.prototype.xH=R("xl");b.prototype.KG=function(a,b,i){var e=this.Rna,j=this.Pna,o,k;switch(this.ef){case d.NONE:k=o=1;break;case d.Qg:o=k=Math.min(b/e,i/j);break;case d.sq:o=k=Math.max(b/e,i/j);break;case d.Bo:o=k=b/e;break;case d.Pj:o=k=i/j;break;default:o=b/e,k=i/j}var n=b/o;o=Math.min(this.Rna*
o,b);n=Math.min(n,e);switch(this.Tk){case c.Ja:e=b=0;break;case c.Xa:b-=o;e-=n;break;default:b=0.5*(b-o),e=0.5*(e-n)}var r=i/k;k=Math.min(this.Pna*k,i);r=Math.min(r,j);switch(this.xl){case c.ic:j=i=0;break;case c.ac:i-=k;j-=r;break;default:i=0.5*(i-k),j=0.5*(j-r)}a.drawImage(this.kg,Math.round(e),Math.round(j),Math.round(n+e-Math.round(e)),Math.round(r+j-Math.round(j)),Math.round(b),Math.round(i),Math.round(o+b-Math.round(b)),Math.round(k+i-Math.round(i)))};return b});
define("lC","require,nU,hy,cC,jR,lT".split(","),function(a){function b(a,b,g,i){this.h=a;this.Ha=b;this.he=this.Ha.get("width");this.ge=this.Ha.get("height");this.Rd=this.Ha.Hj();this.Yha=g;this.Dn=i;this.sA=q;if(this.Dn){this.JF=this.Yha.JF;this.Z=this.Dn.get("width");this.ia=this.Dn.get("height");this.Ba=this.Dn.get("x",0);this.Da=this.Dn.get("y",0);this.eu=this.Dn.get("offsetX",0);this.fu=this.Dn.get("offsetY",0);if(this.ib=this.Dn.cq()){this.Bh=new f(c.qn);this.Bh.load(this.ib.get("url"));this.Bh.bind(d.U,
this.ska,this)}}else this.Bh=q}var d=a("nU"),c=a("hy"),g=a("cC"),f=a("jR"),i=a("lT");b.prototype.clear=function(){this.Dn=this.Yha=this.Rd=this.Ha=this.h=q;if(this.Bh){this.Bh.unbind(d.U,this.ska,this);this.Bh.cancel();this.Bh=q}this.sA=q};b.prototype.Dra=function(a,b){this.Zha=l;if(this.sA&&a!=l&&b!=l){var c=this.h.Ua()*0.5,d=this.h.Cb()*0.5,f=this.h.tW(this.Rd)*Math.PI/180,i=this.h.CN(this.Rd),p=this.h.BN(this.Rd),t=this.h.DN(this.Rd),s=this.h.EN(this.Rd),u=new g(a,b);u.translate(-c,-d);u.rotate(-f);
u.scale(1/i,1/p);u.translate(t,s);u.scale(this.he,this.ge);u.translate(-this.Ba,-this.Da);if(!this.JF){u.rotate(f);u.scale(i/this.he,p/this.ge)}u.translate(this.eu,this.fu);c=Math.round(u.x);u=Math.round(u.y);if(c>=0&&c<this.sA.width&&u>=0&&u<this.sA.height){u=(this.sA.width*u+c)*4;c=this.sA.data;this.Zha=c[u+3]>0?"#"+this.K_(c[u+0])+this.K_(c[u+1])+this.K_(c[u+2]):"transparent"}}return this.Zha};b.prototype.ska=function(){var a=new i(this.Bh.jf(),this.ib.get("width"),this.ib.get("height"));a.Ey(this.Dn.get("scaleMode"));
a.qH(this.Dn.get("horizontalAlign"));a.xH(this.Dn.get("verticalAlign"));var b=document.createElement("canvas");b.width=Math.round(this.Z);b.height=Math.round(this.ia);var c=b.getContext("2d");a.KG(c,b.width,b.height);this.sA=c.getImageData(0,0,b.width,b.height);b.width=b.height=0};b.prototype.K_=function(a){for(a=a.toString(16);a.length<2;)a="0"+a;return a};return b});
define("dS","require,dY,kG,nU,cs,fQ,mR,lC,bc,nx,bC".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("mR"),e=a("lC"),j=a("bc"),o=a("nx"),k=a("bC"),n=d.extend(f,function(a,b,d){f.call(this);this.h=a;this.Ha=b;this.Tb=d;this.la=this.Tb.getItem();this.Gp=this.Tb.Nra();this.Hp=this.Tb.Qra();this.St=this.En=l;this.K=this.h.getParent();this.K.bind(c.ad,this.Wf,this);this.K.bind(c.rb,this.zK,this);this.K.bind(c.zb,this.Bm,this);this.K.bind(c.Wb,this.ir,this);d.bind(c.u("selected"),
this.bla,this);d.bind(c.u("enabled"),this.jp,this);this.dS=new e(this.h,this.Ha,this.Tb,this.Tb.get("map",q));this.fS=new e(this.h,this.Ha,this.Tb,this.Tb.get("rollOverMap",this.Tb.get("map",q)));this.gS=new e(this.h,this.Ha,this.Tb,this.Tb.get("selectedMap",this.Tb.get("rollOverMap",this.Tb.get("map",q))));this.tR=new e(this.h,this.Ha,this.Tb,this.Tb.get("image",q));this.uR=new e(this.h,this.Ha,this.Tb,this.Tb.get("rollOverImage",this.Tb.get("image",q)));this.vR=new e(this.h,this.Ha,this.Tb,this.Tb.get("selectedImage",
this.Tb.get("rollOverImage",this.Tb.get("image",q))));this.Bc=this.Ac=l;this.fG=q;this.ft=[];this.Lq=[];this.ph={};this.Qia=[];this.qA=B;this.Or=this.Tb.get("useHandCursor");this.O=q;this.XF=l;this.oU=this.dU=this.NR=0;a=this.Tb.get("areas",[]);for(b=0;b<a.length;b++){var d=a[b],g=d.get("mapColor");if(g){g=g.toLowerCase();if(this.ph[g]===l){this.ph[g]=[];this.Qia.push(g)}this.ph[g].push(d)}}if(this.la){this.h.LV(this.Ha.Hj(),this.la);this.h.kq(this.la,this.NR)}if(this.Gp){this.h.LV(this.Ha.Hj(),this.Gp);
this.h.kq(this.Gp,this.dU)}if(this.Hp){this.h.LV(this.Ha.Hj(),this.Hp);this.h.kq(this.Hp,this.oU)}this.PL("none");this.d8();this.kna(B);this.lna(this.Tb.get("selected"))});n.prototype.clear=function(){this.K.unbind(c.ad,this.Wf,this);this.K.unbind(c.rb,this.zK,this);this.K.unbind(c.zb,this.Bm,this);this.K.unbind(c.Wb,this.ir,this);this.K=q;this.dS&&this.dS.clear();this.dS=q;this.fS&&this.fS.clear();this.fS=q;this.gS&&this.gS.clear();this.gS=q;this.tR&&this.tR.clear();this.tR=q;this.uR&&this.uR.clear();
this.uR=q;this.vR&&this.vR.clear();this.vR=q;this.ft=[];this.En=B;this.d8();this.Lq=[];this.ph={};this.hoa();this.JM();this.Ha=this.h=q;this.Tb.unbind(c.u("selected"),this.bla,this);this.Hp=this.Gp=this.la=this.Tb=q};n.prototype.match=function(a){return this.Tb==a};n.prototype.ld=function(a){this.IE(B);if(this.O){this.O.xb(a);this.NR=this.O.gb("itemAlpha");this.dU=this.O.gb("rollOverItemAlpha");this.oU=this.O.gb("selectedItemAlpha");this.la&&this.h.kq(this.la,this.NR);this.Gp&&this.h.kq(this.Gp,this.dU);
this.Hp&&this.h.kq(this.Hp,this.oU);this.O.Te()?this.O=q:this.Ca()}};n.prototype.Bm=function(a){this.Ac=a.x-this.K.Bl();this.Bc=a.y-this.K.bs();this.IE(m);this.Lq=this.ft.slice()};n.prototype.Wf=function(a){this.Ac=a.x-this.K.Bl();this.Bc=a.y-this.K.bs();this.IE(m)};n.prototype.ir=function(a){this.Ac=a.x-this.K.Bl();this.Bc=a.y-this.K.bs();this.IE(m);a=b.intersection(this.Lq,this.ft);this.Lq=[];this.K7(a,"click")};n.prototype.zK=function(){this.Bc=this.Ac=l;this.IE(m);this.Lq=this.ft.slice()};n.prototype.bla=
function(){this.lna(this.Tb.get("selected"))};n.prototype.jp=function(){this.IE(m);this.$f();this.Ca()};n.prototype.IE=function(a){this.nia=m;a?this.eG():this.BFa()||this.RKa()};n.prototype.RKa=function(){this.hoa();var a=this;this.fG=setTimeout(function(){a.fG=q;a.eG()},200)};n.prototype.BFa=function(){return this.fG?m:B};n.prototype.hoa=function(){if(this.fG){clearTimeout(this.fG);this.fG=q}};n.prototype.eG=function(){if(this.nia){this.nia=B;var a=this.ft,c=this.$Ca();this.ft=c;if(!this.K.Fn){this.K7(b.difference(c,
a),"rollOver");this.kna(c.length>0);this.K7(b.difference(a,c),"rollOut");this.JM()}}};n.prototype.JM=function(){for(var a="",b=0;b<this.ft.length&&!a;b++){var c=this.ft[b];c.get("toolTip")&&(a=c.get("toolTip"))}if(this.$a!=a){this.$a&&this.h.XQa(this.$a);(this.$a=a)&&this.h.dRa(this.$a)}};n.prototype.d8=function(){var a=this.En&&(this.Or!==B||b(this.ft).any(function(a){return a.get("useHandCursor")===m}));if(this.qA!=a)(this.qA=a)?this.h.kX(j.yf):this.h.iH(j.yf)};n.prototype.$Ca=function(){if(this.Tb.get("enabled")===
B)return[];var a=[],b=this.St?this.gS:this.En?this.fS:this.dS;if(b)if(b=b.Dra(this.Ac,this.Bc)){this.ph.any&&(a=a.concat(this.ph.any));b=="transparent"&&this.ph.transparent&&(a=a.concat(this.ph.transparent));if(b!="transparent"){a=this.ph[b]?a.concat(this.ph[b]):a.concat(this.ph[i.zRa(b,this.Qia,5)]||[]);this.ph.image&&(a=a.concat(this.ph.image))}}if(b=this.St?this.vR:this.En?this.uR:this.tR)if(b=b.Dra(this.Ac,this.Bc)){this.ph.any&&(a=a.concat(this.ph.any));b=="transparent"&&this.ph.transparent&&
(a=a.concat(this.ph.transparent));b!="transparent"&&this.ph.image&&(a=a.concat(this.ph.image))}for(var b=[],c=0;c<a.length;c++){var d=a[c];b.indexOf(d)<0&&b.push(d)}return b};n.prototype.K7=function(a,b){if(a)for(var c=0;c<a.length;c++)a[c].trigger(new g(b))};n.prototype.kna=function(a){if(this.En!=a){this.En=a;this.trigger(new g(n.wY));this.$f();this.d8();this.Ca()}};n.prototype.lna=function(a){if(this.St!=a){this.St=a;this.$f();this.Ca()}};n.prototype.$f=function(){(this.En||this.Tb.get("rollOverDisplay")!=
m)&&this.Tb.get("enabled")!==B?this.St?this.PL("selected"):this.En?this.PL("roll over"):this.PL("visible"):this.PL("none")};n.prototype.PL=function(a){if(this.XF!=a){this.XF=a;var c,d;if(b(["selected"]).contains(this.XF)&&this.Hp){d=1;a=c=0}else if(b(["selected","roll over"]).contains(this.XF)&&this.Gp){c=1;a=d=0}else if(b(["selected","roll over","visible"]).contains(this.XF)){a=1;d=c=0}else a=d=c=0;var e=this.NR,f=this.dU,g=this.oU,i=this.XF=="none"?"quad_out":"quad_in",j=Math.max(200*Math.abs(a-
e),200*Math.abs(c-f),200*Math.abs(d-g));this.O=new o(i,[new k("itemAlpha",e,a),new k("rollOverItemAlpha",f,c),new k("selectedItemAlpha",g,d)],j)}};n.prototype.Ca=function(){this.trigger(new g(n.qb))};n.qb="request frame";n.wY="is over update";return n});define("mj",["kG","jp"],function(a,b){var d=a.extend(b,function(a,d,f,i,e,j,o){b.call(this,b.dda,a,d);this.cFa=f;this.dFa=i;this.vHa=e;this.wHa=j;this.pc=o;this.MM=[]});d.prototype.mC=S("pc");return d});
define("fo","kG,nU,cs,fQ,cC,mj".split(","),function(a,b,d,c,g,f){var i=a.extend(c,function(a,d,f){c.call(this);this.h=a;this.K=this.h.getParent();this.K.bind(b.zb,this.Bm,this,m);this.K.bind(b.ad,this.Wf,this,m);this.K.bind(b.Sh,this.zK,this,m);this.Ha=d;this.he=this.Ha.get("width");this.ge=this.Ha.get("height");this.aIa=Math.sqrt(this.he*this.he+this.ge*this.ge)*this.Ha.get("fieldOfViewOverlayRadiusScale",1);this.Rd=this.Ha.Hj();this.Kc=f;this.mF=this.Kc.get("x",0);this.nF=this.Kc.get("y",0);this.pT=
this.Kc.get("angle",0);this.la=this.uBa();this.br=B;this.ua=0;this.ya=Math.PI*0.5;this.Ed=B;this.Bc=this.Ac=l;this.h.LV(this.Ha.Hj(),this.la)});i.prototype.eva=function(a,b){this.ua=a+this.pT-90;this.ya=b;this.Ca()};i.prototype.clear=function(){this.K.unbind(b.zb,this.Bm,this);this.K.unbind(b.ad,this.Wf,this);this.K.unbind(b.Sh,this.zK,this);this.K=q;this.h.lRa(this.Ha.Hj(),this.la);this.la=this.Kc=this.Rd=this.Ha=this.h=q};i.prototype.ld=function(){this.h.jSa(this.la,this.ua,this.ya)};i.prototype.uBa=
function(){return new f(this.mF,this.nF,this.Ha.get("fieldOfViewOverlayInsideColor","#FFFFFF"),this.Ha.get("fieldOfViewOverlayInsideOpacity",0),this.Ha.get("fieldOfViewOverlayOutsideColor","#000000"),this.Ha.get("fieldOfViewOverlayOutsideOpacity",0),this.Ha.get("fieldOfViewOverlayRadiusScale",1))};i.prototype.Ca=function(){this.trigger(new d(i.qb))};i.prototype.f8=function(){var a=B;if(this.Ac!=l&&this.Bc!=l){var b=this.h.Ua()*0.5,c=this.h.Cb()*0.5,f=this.h.tW(this.Rd)*Math.PI/180,n=this.h.CN(this.Rd),
r=this.h.BN(this.Rd),p=this.h.DN(this.Rd),t=this.h.EN(this.Rd),a=new g(this.Ac,this.Bc);a.translate(-b,-c);a.rotate(-f);a.scale(1/n,1/r);a.translate(p,t);a.scale(this.he,this.ge);a.translate(-this.mF,-this.nF);a.rotate(-this.ua*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.aIa&&Math.abs(b)<this.ya*0.5}if(this.br!=a){this.br=a;this.trigger(new d(i.cZ,{inFOV:this.br}))}};i.prototype.XPa=S("br");i.prototype.Bm=function(a){this.Ac=a.x;this.Bc=
a.y;this.Ed=m;this.f8()};i.prototype.Wf=function(a){if(!this.Ed){this.Ac=a.x;this.Bc=a.y;this.f8()}};i.prototype.zK=function(){this.Bc=this.Ac=l;this.Ed=B;this.f8()};i.qb="request frame";i.cZ="mouse in fov change";return i});
define("nF","require,dY,kG,cs,fQ,hP,dS,fo".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("cs"),g=a("fQ"),f=a("hP"),i=a("dS"),e=a("fo"),j=d.extend(g,function(a){g.call(this);this.h=a;this.KJ=[];this.Ot=[];this.nm=[];this.Fm=this.Kc=q});j.prototype.clear=function(){for(var a=0;a<this.Ot.length;a++)this.Ot[a].clear();for(a=0;a<this.nm.length;a++)this.nm[a].clear();this.h=this.KJ=this.Kc=this.nm=this.Ot=q};j.prototype.nN=function(a){a.NN()&&this.Bya(a.Ha)};j.prototype.m$=function(a){a.NN()&&this.uIa(a.Ha)};
j.prototype.tv=function(a){if(this.Kc!=a){this.Kc&&this.a6(this.Kc.get("map"));this.Kc=a;this.Fm=q;if(this.Kc){a=this.Kc.get("map");this.q3(a)&&this.bea(a)}}};j.prototype.an=function(a,b,c,d){this.Fm={yaw:b,pitch:c,hfov:d};for(c=0;c<this.nm.length;c++){var e=this.nm[c];if(e.Kc==a){e.eva(b,d);break}}};j.prototype.Bya=function(a){if(this.q3(a)){this.rma(a);this.a6(a)}this.KJ.push(a);this.tya(a);this.bea(a)};j.prototype.uIa=function(a){var b=this.KJ.indexOf(a);b>=0&&this.KJ.splice(b,1);if(!this.q3(a)){this.rma(a);
this.a6(a)}};j.prototype.q3=function(a){return b(this.KJ).indexOf(a)>=0};j.prototype.ld=function(a){for(var b=0;b<this.Ot.length;b++)this.Ot[b].ld(a);for(b=0;b<this.nm.length;b++)this.nm[b].ld(a)};j.prototype.tya=function(a){for(var b=a.get("overlays",[]),c=0;c<b.length;c++){var d=b[c];if(d instanceof f){d=new i(this.h,a,d);d.bind(i.qb,this.Ca,this,m);d.bind(i.wY,this.xia,this,m);this.Ot.push(d)}}};j.prototype.bea=function(a){if(this.Kc&&this.Kc.get("map")==a&&this.Kc.get("visible")!==B){a=new e(this.h,
a,this.Kc);a.bind(e.qb,this.Ca,this,m);a.bind(e.cZ,this.GS,this,m);this.nm.push(a);this.Fm&&a.eva(this.Fm.yaw,this.Fm.hfov)}this.GS()};j.prototype.rma=function(a){for(var a=a.get("overlays",[]),b=0;b<a.length;b++)for(var c=a[b],d=0;d<this.Ot.length;d++){var e=this.Ot[d];if(e.match(c)){e.unbind(i.qb,this.Ca,this);e.unbind(i.wY,this.xia,this);e.clear();this.Ot.splice(d,1);break}}};j.prototype.a6=function(a){for(var b=0;b<this.nm.length;b++){var c=this.nm[b];if(c.Ha==a){c.unbind(e.qb,this.Ca,this);c.unbind(e.cZ,
this.GS,this);c.clear();this.nm.splice(b,1);break}}this.GS()};j.prototype.xia=I();j.prototype.Ca=function(){this.trigger(new c(j.qb))};j.prototype.GS=function(){for(var a=B,b=0;b<this.nm.length;b++)this.nm[b].XPa()&&(a=m);this.trigger(new c(j.vY,{inFOV:a}))};j.qb="request frame";j.vY="in fov change";return j});
define("H","kG,nU,cs,fQ,ju,cC".split(","),function(a,b,d,c,g,f){var i=a.extend(c,function(a){c.call(this);this.h=a;this.K=this.h.getParent();this.K.bind(b.ad,this.Wf,this,m);this.K.bind(b.zb,this.Bm,this,m);this.K.bind(b.Wb,this.ir,this,m);this.Ha=q;this.Rd=this.ge=this.he=l;this.Kc=q;this.pT=this.nF=this.mF=l;this.br=B;this.Bc=this.Ac=this.ym=l;this.Ed=B;this.ua=0});i.prototype.clear=function(){this.K.unbind(b.ad,this.Wf,this);this.K.unbind(b.zb,this.Bm,this);this.K.unbind(b.Wb,this.ir,this);this.h=
this.Kc=this.Rd=this.Ha=this.K=q};i.prototype.pO=function(a){this.br=a;this.a8()};i.prototype.nN=function(a){a.NN()&&this.pna(a.Ha)};i.prototype.m$=function(a){a.NN()&&this.Ha==a.Ha&&this.pna(q)};i.prototype.pna=function(a){if(this.Ha!=a)if(this.Ha=a){this.he=this.Ha.get("width");this.ge=this.Ha.get("height");this.Rd=this.Ha.Hj()}else{this.ge=this.he=l;this.Rd=q}};i.prototype.tv=function(a){if(this.Kc!=a)if(this.Kc=a){this.mF=this.Kc.get("x",0);this.nF=this.Kc.get("y",0);this.pT=this.Kc.get("angle",
0)}else this.pT=this.nF=this.mF=l};i.prototype.an=function(a,b){if(this.Kc==a)this.ua=b};i.prototype.mq=R("ym");i.prototype.Bm=function(a){this.Ac=a.x;this.Bc=a.y;this.Ed=m;this.a8()};i.prototype.Wf=function(a){this.Ac=a.x;this.Bc=a.y;if(this.Xh){a=this.Cha();this.trigger(new d(i.Oj,{yawDelta:a-this.Pc}));this.Pc=a}};i.prototype.ir=function(a){this.Ac=a.x;this.Bc=a.y;this.Ed=B;this.a8()};i.prototype.a8=function(){var a=this.Ed&&this.Kc&&this.Ha&&(this.ym==g.uZ||this.br);if(this.Xh!=a)if(this.Xh=a)this.Pc=
this.Cha()};i.prototype.Cha=function(){var a=this.h.Ua()*0.5,b=this.h.Cb()*0.5,c=new f(this.Ac,this.Bc);c.translate(-a,-b);if(this.ym==g.uZ)return-Math.atan2(c.y,c.x)*180/Math.PI;var a=this.h.tW(this.Rd)*Math.PI/180,b=this.h.CN(this.Rd),d=this.h.BN(this.Rd),i=this.h.DN(this.Rd),r=this.h.EN(this.Rd);c.rotate(-a);c.scale(1/b,1/d);c.translate(i,r);c.scale(this.he,this.ge);c.translate(-this.mF,-this.nF);return Math.atan2(c.y,c.x)*180/Math.PI};i.Oj="request yaw change";return i});
define("mb",["kG","cs","fQ","bg"],function(a,b,d,c){var g=a.extend(d,function(a){d.call(this);this.N=m;this.kA=B;this.h=a});g.prototype.clear=function(){this.N=B;this.h=q};g.prototype.yb=function(){this.kA||(this.kA=m,c.yb(this.rj,this))};g.prototype.rj=function(a){this.N&&(this.kA=B,this.trigger(new b(g.xo,{frameTime:a})),this.trigger(new b(g.yo,{frameTime:a})),this.h.render())};g.xo="frameStart";g.yo="positionSet";return g});
define("lu","require,kG,nU,cs,fQ,nf,le,ir,nF,H,mb".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("nf"),i=a("le"),e=a("ir"),j=a("nF"),o=a("H"),k=a("mb"),n=b.extend(g,function(a,b){g.call(this);this.K=a;this.h=b;this.h.set("visible",B);this.uT=q;this.Yf=new k(this.h);this.fe=new e(this.h);this.Ea=new i(this.K,this.h);this.Qa=new f(this.h);this.sp=new j(this.h);this.mr=new o(this.h);this.K.bind(d.hc,this.gT,this,m);this.Yf.bind(k.xo,this.qx,this,m);this.Yf.bind(k.yo,this.rx,
this,m);this.fe.bind(e.ZO,this.vK,this);this.fe.bind(e.CY,this.jka,this);this.fe.bind(e.XO,this.kka,this);this.Ea.bind(i.qb,this.se,this,m);this.Ea.bind(i.AY,this.hka,this,m);this.Ea.bind(i.YO,this.lka,this,m);this.Ea.bind(i.BY,this.ika,this,m);this.Ea.bind(i.Uy,this.hu,this,m);this.Ea.bind(i.Vy,this.lx,this,m);this.Ea.bind(i.oY,this.xja,this,m);this.Qa.bind(f.qb,this.se,this,m);this.Qa.bind(f.Nj,this.kp,this);this.sp.bind(j.qb,this.se,this,m);this.sp.bind(j.vY,this.Zja,this,m);this.mr.bind(o.Oj,
this.MK,this,m);this.Bga=B});n.prototype.mq=function(a){this.Qa.mq(a);this.Ea.mq(a);this.mr.mq(a)};n.prototype.clear=function(){this.Bga=m;this.fe.clear();this.Yf.clear();this.Qa.clear();this.Ea.clear();this.sp.clear();this.mr.clear();this.K.unbind(d.hc,this.gT,this);this.fe.unbind(e.ZO,this.vK,this);this.fe.unbind(e.CY,this.jka,this);this.fe.unbind(e.XO,this.kka,this);this.Yf.unbind(k.xo,this.qx,this);this.Yf.unbind(k.yo,this.rx,this);this.Ea.unbind(i.qb,this.se,this);this.Ea.unbind(i.AY,this.hka,
this);this.Ea.unbind(i.YO,this.lka,this);this.Ea.unbind(i.BY,this.ika,this);this.Ea.unbind(i.Uy,this.hu,this);this.Ea.unbind(i.Vy,this.lx,this);this.Ea.unbind(i.oY,this.xja,this);this.Qa.unbind(f.Lwa,this.se,this);this.Qa.unbind(f.Nj,this.kp,this);this.sp.unbind(j.qb,this.se,this);this.sp.unbind(j.vY,this.Zja,this);this.mr.unbind(o.Oj,this.MK,this);this.K=this.h=this.mr=this.sp=this.Ea=this.Qa=this.Yf=this.fe=q};n.prototype.gT=function(){if(this.uT){this.ava(this.uT);this.uT=q}};n.prototype.ava=function(a){this.h.set("visible",
m);if(this.K.Vw)this.fe.jta(a);else{this.fe.stop();this.Qa.stop();this.Ea.hide();this.uT=a}};n.prototype.rv=function(){this.fe.stop();this.Qa.stop();this.Ea.hide()};n.prototype.Lj=function(a){this.Qa.Lj(a)};n.prototype.tv=function(a){if(!this.Bga){this.Qa.tv(a);this.sp.tv(a);this.mr.tv(a)}};n.prototype.an=function(a,b,c,d){this.Qa.an(a,b,c,d);this.sp.an(a,b,c,d);this.mr.an(a,b,c,d)};n.prototype.kka=function(a){var b=a.data.level,a=(a.data.percent+100*b.getIndex())/b.sra();this.trigger(new c(n.qq,
{percent:a}))};n.prototype.jka=function(a){this.h.set("visible",m);a=a.data.level;this.Qa.stop();this.Ea.nN(a)};n.prototype.vK=function(){this.trigger(new c(n.Ty))};n.prototype.se=function(){this.Yf.yb()};n.prototype.qx=function(a){this.Qa.ov(a.data.frameTime)};n.prototype.rx=function(a){a=a.data.frameTime;this.Ea.ld(a);this.Qa.ld(a);this.sp.ld(a)};n.prototype.hka=function(a){a=a.data.level;this.sp.nN(a);this.mr.nN(a)};n.prototype.lka=function(a){a=a.data.level;this.sp.m$(a);this.mr.m$(a)};n.prototype.ika=
function(a){a=a.data.level;a.NN()&&this.Qa.start(a)};n.prototype.xja=function(){this.h.set("visible",B)};n.prototype.Zja=function(a){a=a.data.inFOV;this.Qa.pO(a);this.mr.pO(a)};n.prototype.lx=function(a){this.trigger(new c(n.Vy,{map:a.data.map}))};n.prototype.hu=function(a){this.trigger(new c(n.Uy,{map:a.data.map}))};n.prototype.kp=function(a){this.trigger(new c(n.Nj,a.data))};n.prototype.MK=function(a){this.trigger(new c(n.Oj,{yawDelta:a.data.yawDelta}))};n.Nj="movementChange";n.Ty="loadingEnd";
n.qq="loadingProgress";n.Vy="mapShow";n.Uy="mapHide";n.Oj="requestYawChange";return n});
define("hc",["require","jquery.mod","t"],function(a){function b(a,b){this.la=a;this.aa=b;this.EJ=0;this.wr=this.vr=0.5;this.nk=0;this.eb=1;this.Np=this.Yt=this.ia=this.Z=0;this.pc=1;this.j3=this.m3=m;this.ea=d("<canvas/>");this.J=this.ea.get(0);this.ja=this.J.getContext("2d")}var d=a("jquery.mod"),a=a("t");b.prototype.getItem=S("la");b.prototype.qN=function(a){return this.la==a?this:q};b.prototype.fW=function(a){return this.la==a?[this]:[]};b.prototype.xk=function(){this.aa&&this.aa.r9(this)};b.prototype.Ve=
function(a){this.LJa(a)};b.prototype.mna=function(a){this.EJ!=a&&(this.EJ=a,this.aa&&this.aa.QW())};b.prototype.LJa=function(a){this.eb!=a&&(this.eb=a,this.PW())};b.prototype.wU=function(a){this.nk!=a&&(this.nk=a,this.PW())};b.prototype.OL=function(a,b){if(this.Z!=a||this.ia!=b)this.Z=a,this.ia=b,this.MW()};b.prototype.ql=function(a,b){if(this.Yt!=a||this.Np!=b)this.Yt=a,this.Np=b,this.PW()};b.prototype.PW=function(){this.aa&&this.aa.NW()};b.prototype.$d=function(){this.m3=m};b.prototype.Ma=function(){this.m3&&
(this.m3=B,this.Ig())};b.prototype.Ig=I();b.prototype.MW=function(){this.j3=m;this.PW()};b.prototype.PX=function(){if(this.j3){this.j3=B;if(this.J.width!=this.Z||this.J.height!=this.ia)this.J.width=Math.round(this.Z),this.J.height=Math.round(this.ia);this.ja.clearRect(0,0,this.J.width,this.J.height);this.Zf()}};b.prototype.Zf=I();b.prototype.pOa=function(a){if(0<this.eb&&1<=this.Z&&1<=this.ia){a.save();var b=Math.round(this.Yt),d=Math.round(this.Np),i=Math.round(this.Z*this.vr),e=Math.round(this.ia*
this.wr);a.scale(this.pc,this.pc);a.translate(b+i,d+e);a.rotate(this.nk*Math.PI/180);a.globalAlpha=this.eb;a.drawImage(this.J,-i,-e);a.restore()}};b.cca=window.devicePixelRatio||1;b.Kj=b.cca;b.cxa=a.le()==a.aj?16E6:256E6;return b});
define("ma",["require","dY","kG","hc"],function(a){var b=a("dY"),d=a("kG"),c=a("hc"),a=d.extend(c,function(a,b){c.call(this,a,b);this.oc=[];this.IV=q;this.Xu=m});a.prototype.cqa=function(a){(a=this.p0(a))||h("Container renderer can't create child renderer for an item");this.oc.push(a);this.QW();this.NW()};a.prototype.p0=I();a.prototype.oua=function(a){if(a=this.Yr(a))this.oc=b.without(this.oc,a),this.QW(),this.NW()};a.prototype.qN=function(a){for(var b=c.prototype.qN.call(this,a),d=0;d<this.oc.length&&
!b;d++)b=this.oc[d].qN(a);return b};a.prototype.fW=function(a){for(var b=c.prototype.fW.call(this,a),d=0;d<this.oc.length;d++)b=b.concat(this.oc[d].fW(a));return b};a.prototype.Yr=function(a){for(var b=q,c=0;c<this.oc.length&&!b;c++)this.oc[c].getItem()==a&&(b=this.oc[c]);for(c=0;c<this.oc.length&&!b;c++)this.oc[c].getItem().NPa(a)&&(b=this.oc[c]);return b};a.prototype.r9=function(a){this.oc=b.without(this.oc,a);this.oc.push(a);this.QW();this.NW()};a.prototype.QW=function(){this.Xu=m;this.$d()};a.prototype.NW=
function(){this.MW()};a.prototype.Ma=function(){c.prototype.Ma.call(this);for(var a=0;a<this.oc.length;a++)this.oc[a].Ma()};a.prototype.Ig=function(){if(this.Xu){this.Xu=B;for(var a=[],b=0;b<this.oc.length;b++){var d=this.oc[b];a.push({l:d.EJ,z:b,r:d})}a.sort(function(a,b){return a.l==b.l?a.z-b.z:a.l-b.l});this.IV=[];for(b=0;b<a.length;b++)this.IV.push(a[b].r);this.MW()}c.prototype.Ig.call(this)};a.prototype.PX=function(){for(var a=0;a<this.oc.length;a++)this.oc[a].PX();c.prototype.PX.call(this)};
a.prototype.Zf=function(){for(var a=0;a<this.IV.length;a++)this.IV[a].pOa(this.ja);c.prototype.Zf.call(this)};return a});define("Q",["require","kG","hc"],function(a){var b=a("kG"),d=a("hc"),a=b.extend(d,function(a,b){d.call(this,a,b)});a.prototype.vX=I();return a});
define("lx",["require","kG","Q"],function(a){var b=a("kG"),d=a("Q"),a=b.extend(d,function(a,b){d.call(this,a,b);this.tT=this.aa.getItem().fd();this.sT=this.aa.getItem().Td();this.pc=2;this.dE=0;this.ya=0.5*Math.PI;this.k3=this.l3=m;this.Xk=1;this.HR=m;this.mna(1)});a.prototype.vX=function(a,b){this.Xk!=b&&(this.Xk=b,this.HR=m,this.$d())};a.prototype.xaa=function(a,b){this.ya!=b&&(this.ya=b,this.l3=m,this.$d());this.dE!=a&&(this.dE=a,this.k3=m,this.$d())};a.prototype.Ig=function(){this.l3&&(this.l3=
B,this.MW());if(this.HR||this.k3){this.k3=this.HR=B;var a=Math.ceil(Math.sqrt(this.tT*this.tT+this.sT*this.sT));this.pc=Math.max(1,a/4096);var b=this.Xk/this.pc,f=this.la.getX()*b,a=this.la.getY()*b,i=b*this.sT,b=Math.max(f,b*this.tT-f),i=Math.max(a,i-a),i=2*Math.ceil(Math.sqrt(b*b+i*i)),e=this.dE*Math.PI/180,b=Math.cos(e),e=Math.sin(e),f=f-this.vr*i-(0.5-this.vr)*i*b+(0.5-this.wr)*i*e,a=a-this.wr*i-(0.5-this.wr)*i*b-(0.5-this.vr)*i*e;this.HR=B;this.ql(f,a);this.OL(i,i);this.wU(this.dE)}d.prototype.Ig.call(this)};
a.prototype.Zf=function(){var a=this.la.dFa,b=this.la.wHa;if(0<b||0<a){var f=this.Xk*this.tT,i=this.Xk*this.sT,f=Math.ceil(Math.sqrt(f*f+i*i))*this.la.mC()/this.pc,i=Math.round(0.5*this.Z),e=Math.round(0.5*this.ia),j=this.ya*Math.PI/180,o=0.5*-j,j=o+j;0<b&&(this.ja.fillStyle=this.la.vHa,this.ja.globalAlpha=b,this.ja.rect(0,0,this.Z,this.ia),this.ja.fill(),this.ja.globalCompositeOperation="destination-out",this.ja.fillStyle="#FFFFFF",this.ja.globalAlpha=1,this.ja.beginPath(),this.ja.moveTo(i,e),this.ja.arc(i,
e,f,o,j,B),this.ja.lineTo(i,e),this.ja.closePath(),this.ja.fill(),this.ja.globalCompositeOperation="source-over");0<a&&(this.ja.fillStyle=this.la.cFa,this.ja.globalAlpha=a,this.ja.beginPath(),this.ja.moveTo(i,e),this.ja.arc(i,e,f,o,j,B),this.ja.lineTo(i,e),this.ja.closePath(),this.ja.fill())}d.prototype.Zf.call(this)};return a});
define("i","require,kG,hc,Q,kC,lT".split(","),function(a){var b=a("kG"),d=a("hc"),c=a("Q"),g=a("kC"),f=a("lT"),a=b.extend(c,function(a,b){c.call(this,a,b);this.mna(this.la.Lma?0:2);this.Ob=g.jf(this.la.pi());this.kU=new f(this.Ob,this.Ob.width,this.Ob.height);this.kU.Ey(this.la.ef);this.kU.xH(this.la.xl);this.kU.qH(this.la.Tk);this.IJ=0;this.Xk=1;this.V3=m});a.prototype.vX=function(a,b){if(this.IJ!=a||this.Xk!=b){this.IJ=a;this.Xk=b;this.V3=m;this.$d()}};a.prototype.Ig=function(){if(this.V3){this.V3=
B;var a=this.la.getX(),b=this.la.getY(),f=this.la.fd(),g=this.la.Td(),k=this.la.eu,n=this.la.fu;if(this.la.Lma){this.wU(0);this.ql((a-k)*this.Xk,(b-n)*this.Xk);this.OL(f*this.Xk,g*this.Xk)}else{var f=f*d.Kj,g=g*d.Kj,k=k*d.Kj,n=n*d.Kj,r=Math.cos(-this.IJ*Math.PI/180),p=Math.sin(-this.IJ*Math.PI/180),a=a*this.Xk-this.vr*f-(k-this.vr*f)*r+(n-this.wr*g)*p,b=b*this.Xk-this.wr*g-(n-this.wr*g)*r-(k-this.vr*f)*p;this.wU(-this.IJ);this.ql(a,b);this.OL(f,g)}}c.prototype.Ig.call(this)};a.prototype.Zf=function(){this.kU.KG(this.ja,
this.J.width,this.J.height);c.prototype.Zf.call(this)};return a});
define("hM","require,kG,lv,kC,de,jp,lx,i,ma".split(","),function(a){var b=a("kG"),d=a("lv"),c=a("kC"),g=a("de"),f=a("jp"),i=a("lx"),e=a("i"),j=a("ma"),a=b.extend(j,function(a,b){j.call(this,a,b,a.Mn);this.tb=this.la.fd();this.Lb=this.la.Td();this.ef=this.la.ef;this.VQ=this.la.F1;this.pd=this.gd=100;this.f0=m;this.Da=this.Ba=0.5;this.Pc=0;this.Va=1;this.lL=m;this.Oe=1;this.Ob=c.jf(this.la.pi())});a.prototype.p0=function(a){a.Ee()!=g.gda&&h("Invalid item type");switch(a.yHa){case f.dda:a=new i(a,this);
break;case f.eda:a=new e(a,this);break;default:a=q}a&&a.vX(this.Pc,this.Oe*this.Va);return a};a.prototype.getX=S("Ba");a.prototype.getY=S("Da");a.prototype.MG=S("Pc");a.prototype.dq=S("Va");a.prototype.Ua=function(){return Math.round(this.tb*this.Va*this.Oe)};a.prototype.Cb=function(){return Math.round(this.Lb*this.Va*this.Oe)};a.prototype.DC=function(a,b){if(this.gd!=a||this.pd!=b){this.gd=a;this.pd=b;this.f0=m;this.$d()}};a.prototype.hb=function(a,b,c,d){if(this.Ba!=a||this.Da!=b||this.Pc!=c||this.Va!=
d){this.Ba=a;this.Da=b;this.Pc=c;this.Va=d;this.lL=m;this.$d()}};a.prototype.Ig=function(){if(this.f0){this.f0=B;switch(this.ef){case d.NONE:this.Oe=1;break;case d.Bo:this.Oe=this.gd/this.tb;break;case d.Pj:this.Oe=this.pd/this.Lb;break;case d.sq:this.Oe=this.tb*this.pd>this.Lb*this.gd?this.pd/this.Lb:this.gd/this.tb;break;default:this.Oe=this.tb*this.pd>this.Lb*this.gd?this.gd/this.tb:this.pd/this.Lb}this.lL=m}if(this.lL){this.lL=B;var a=this.Ua(),b=this.Cb(),c=Math.cos(this.Pc*Math.PI/180),e=Math.sin(this.Pc*
Math.PI/180);this.ql(this.gd*0.5-this.vr*a+(this.vr-this.Ba)*c*a-(this.wr-this.Da)*e*b,this.pd*0.5-this.wr*b+(this.wr-this.Da)*c*b+(this.vr-this.Ba)*e*a);this.wU(this.Pc);this.OL(a,b);for(a=0;a<this.oc.length;a++)this.oc[a].vX(this.Pc,this.Oe*this.Va)}j.prototype.Ig.call(this)};a.prototype.Zf=function(){var a=Math.round(this.Z),b=Math.round(this.ia);if(this.VQ){this.ja.save();this.ja.translate(a,0);this.ja.scale(-1,1);this.ja.drawImage(this.Ob,0,0,a,b);this.ja.restore()}else this.ja.drawImage(this.Ob,
0,0,a,b);j.prototype.Zf.call(this)};return a});
define("gy","require,dY,kG,de,ma,hM".split(","),function(a){a("dY");var b=a("kG"),d=a("de"),c=a("ma"),g=a("hM"),a=b.extend(c,function(){c.call(this,q,q);this.S_=m});a.prototype.Lc=S("ea");a.prototype.render=function(){this.Ma();this.PX()};a.prototype.gPa=function(){for(var a=1,b=0;b<this.oc.length;b++){var c=this.oc[b],c=c.Ua()*c.Cb();a<c&&(a=c)}return a};a.prototype.p0=function(a){a.Ee()!=d.fda&&h("Invalid item type");a=new g(a,this);a.DC(this.Z,this.ia);a.hb(0.5,0.5,0,1);return a};a.prototype.setSize=
function(a,b){this.OL(a,b);this.S_=m;this.$d()};a.prototype.Ig=function(){if(this.S_){this.S_=B;for(var a=0;a<this.oc.length;a++)this.oc[a].DC(this.Z,this.ia)}c.prototype.Ig.call(this)};return a});
define("jP","require,dY,kG,nU,hy,kC,hc,gy,bu,bc,d".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("hy"),f=a("kC"),i=a("hc"),e=a("gy"),j=a("bu"),o=a("bc"),k=a("d"),a=d.extend(k,function(){k.call(this);this.je("Renderer");this.set("toolTipDisabled",m);this.set("cursor",o.Mv);this.Bw=[];this.FB=[];this.$a="";this.Dh=new e;this.Ab().append(this.Dh.Lc());this.bind(c.sc,this.Vb,this,m);this.bind(c.hc,this.gk,this,m);this.bind(c.nc,this.ck,this,m);j.bind(c.qa,this.t8,this,m);this.pB=this.h6=
B});a.prototype.ko=function(a){f.ko(a,g.qn)};a.prototype.MX=function(a){return f.MX(a)};a.prototype.Mj=function(a){f.Mj(a,g.qn)};a.prototype.h9=function(a){this.Dh.cqa(a)};a.prototype.removeItem=function(a){this.Dh.oua(a)};a.prototype.LV=function(a,b){this.Dh.Yr(a).cqa(b);this.q8()};a.prototype.lRa=function(a,b){var c=this.Dh.Yr(a);c&&c.oua(b)};a.prototype.s9=function(a){this.Dh.qN(a).xk()};a.prototype.kq=function(a,b){this.Dh.fW(a).forEach(function(a){a.Ve(b)})};a.prototype.qO=function(a,b,c,d,e){this.Dh.Yr(a).hb(b,
c,d,e);this.q8()};a.prototype.q8=function(){var a=this.Dh.gPa();if(a){i.Kj=Math.min(i.cca,i.Kj*Math.sqrt(i.cxa/a));this.jpa()}};a.prototype.jSa=function(a,b,c){this.Dh.qN(a).xaa(b,c)};a.prototype.DN=function(a){return this.Dh.Yr(a).getX()};a.prototype.EN=function(a){return this.Dh.Yr(a).getY()};a.prototype.tW=function(a){return this.Dh.Yr(a).MG()};a.prototype.Bra=function(a){return this.Dh.Yr(a).dq()};a.prototype.CN=function(a){return this.Dh.Yr(a).Ua()/i.Kj};a.prototype.BN=function(a){return this.Dh.Yr(a).Cb()/
i.Kj};a.prototype.render=function(){this.pB&&this.Dh.render()};a.prototype.kX=function(a){this.Bw.push(a);this.apa()};a.prototype.iH=function(a){a=b(this.Bw).lastIndexOf(a);a>=0&&this.Bw.splice(a,1);this.apa()};a.prototype.apa=function(){var a;a=this.Bw.length>0?this.Bw[this.Bw.length-1]:o.me;this.getParent().set("cursor",a)};a.prototype.iQ=function(){if(this.Bw.length>0){this.getParent().set("cursor",o.me);this.Bw=[]}};a.prototype.dRa=function(a){this.FB.push(a);this.JM()};a.prototype.XQa=function(a){a=
b(this.FB).lastIndexOf(a);a>=0&&this.FB.splice(a,1);this.JM()};a.prototype.JM=function(){var a=this.FB.length==0?"":this.FB[this.FB.length-1]||"";if(this.$a!=a){this.$a=a;this.getParent().set("toolTip",this.$a)}};a.prototype.yAa=function(){this.$a&&this.getParent().set("toolTip","");this.$a="";this.FB=[]};a.prototype.Lm=function(){this.yAa();this.iQ();k.prototype.Lm.call(this)};a.prototype.Vb=function(){this.jpa();this.q8()};a.prototype.jpa=function(){this.Dh.Lc().css({transform:i.Kj!=1?"scale("+
(1/i.Kj).toFixed(3)+")":"none","transform-origin":"0% 0%"});this.Dh.setSize(this.Ua()*i.Kj,this.Cb()*i.Kj);this.render()};a.prototype.gk=function(){this.h6=m;this.t8()};a.prototype.ck=function(){this.h6=B;this.t8()};a.prototype.t8=function(){var a=this.h6&&!j.isPresenting();if(this.pB!=a)(this.pB=a)&&this.render()};return a});
define("R","dY,kG,lh,cs,eQ,me,cS,dT,lu,kv,jP,nU,dV,gq".split(","),function(a,b,d,c,g,f,i,e,j,o,k,n,r,p){var t=b.extend(i,function(){i.call(this,"map");this.sS=this.U3=this.Mh=B;this.Fm=this.Kc=this.B=this.h=q;this.jw={};for(var a in t.bt)this.jw[a]=this.ZAa(a);this.Pd=b.hq(this.Ig,this)});g.F("MapPlayer",t).H("Object").Q({map:"Map",viewerArea:"ViewerArea",movementMode:"enum[constrained, free_drag, free_drag_and_rotation, sync_with_field_of_view]",buttonZoomIn:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
buttonZoomOut:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonRotateCounterClockwise:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]"}).fc([n.fP]).Mg({stop:function(){this.Cc(o.Lf)},rotateClockwise:function(){this.Cc(o.oZ)},rotateCounterClockwise:function(){this.Cc(o.pZ)},zoomIn:function(){this.Cc(o.Zs)},zoomOut:function(){this.Cc(o.$s)}});t.prototype.set=function(a,
b){if(this.get(a)!=b){switch(a){case "map":this.U3=m;this.Pd();break;case "viewerArea":this.Mh=m;this.Pd();break;case "panoramaMapLocation":this.i5=m;this.Pd();break;case "movementMode":this.sS=m;this.Pd()}i.prototype.set.call(this,a,b)}};t.prototype.ZAa=function(a){var b=t.bt[a],a=new f(this,a,r.ne);a.bind(n.zb,function(){this.Cc(b.movement)},this);b.stopOnRelease&&a.bind(n.Wb,function(){this.Cc(o.Lf)},this);return a};t.prototype.GNa=function(a){this.Fm=q;this.set("map",a.get("map"));this.set("panoramaMapLocation",
a)};t.prototype.pRa=function(a){if(this.get("panoramaMapLocation")==a){this.set("panoramaMapLocation",q);this.Fm=q}};t.prototype.an=function(a,b,c,d){this.B&&this.B.an(a,b,c,d);this.Fm={yaw:b,pitch:c,hfov:d}};t.prototype.Ig=function(){if(this.Mh){this.Mh=B;this.yt();this.get("viewerArea")&&this.ut();this.QL(this.get("viewerArea"))}if(this.B){if(this.U3){this.U3=B;var a=this.get("map");if(a){this.nH();this.B.ava(a)}else this.B.rv();this.i5=this.sS=m}if(this.i5){this.i5=B;a=this.get("panoramaMapLocation");
this.B.tv(a);a&&this.Fm&&this.B.an(a,this.Fm.yaw,this.Fm.pitch,this.Fm.hfov)}if(this.sS){this.sS=B;this.B.mq(this.get("movementMode"))}}};t.prototype.YF=function(){this.set("map",q)};t.prototype.ut=function(){var a=this.get("viewerArea");this.h=new k;this.h.$({left:0,top:0,bottom:0,right:0});a.Oa(this.h);this.B=new j(a,this.h);this.B.bind(j.Nj,this.kp,this);this.B.bind(j.qq,this.ii,this);this.B.bind(j.Ty,this.eF,this);this.B.bind(j.Vy,this.lx,this);this.B.bind(j.Uy,this.hu,this);this.B.bind(j.Oj,
this.MK,this,m)};t.prototype.yt=function(){if(this.h){this.B.unbind(j.Nj,this.kp,this);this.B.unbind(j.qq,this.ii,this);this.B.unbind(j.Ty,this.eF,this);this.B.unbind(j.Vy,this.lx,this);this.B.unbind(j.Uy,this.hu,this);this.B.unbind(j.Oj,this.MK,this);this.B.clear();this.h.getParent().removeChild(this.h);this.h=q}};t.prototype.lx=function(a){this.QJ(a.data.map)};t.prototype.hu=function(a){this.PJ(a.data.map)};t.prototype.kp=function(a){for(var b in t.bt)this.jw[b].set("state",a.data[t.bt[b].pressedOn]?
p.bb:p.me);this.trigger(new c(n.fP,a.data))};t.prototype.MK=function(a){this.trigger(new c(t.Oj,{yawDelta:a.data.yawDelta}))};t.prototype.ii=function(a){this.h.getParent().$({progressPercent:a.data.percent,progressVisible:m})};t.prototype.eF=function(){this.h.getParent().set("progressVisible",B)};t.prototype.Cc=function(a){this.B&&this.B.Lj(a)};t.bt={buttonRotateClockwise:{movement:o.oZ,pressedOn:"rotatingClockwise",stopOnRelease:m},buttonRotateCounterClockwise:{movement:o.pZ,pressedOn:"rotatingCounterClockwise",
stopOnRelease:m},buttonZoomIn:{movement:o.Zs,pressedOn:"zoomingIn",stopOnRelease:m},buttonZoomOut:{movement:o.$s,pressedOn:"zoomingOut",stopOnRelease:m}};t.Oj="requestYawChange";return t});
define("hN",["kG","lh","nU","cs","eQ"],function(a,b,d,c,g){a=a.extend(b,function(){b.call(this);this.o="stopped"});g.F("PlayListItem",a).H("Object").Q({media:"Media",label:"string",state:"enum[stopped, starting, playing, stopping]"}).fc([d.Tj,d.hn,d.Lf,d.Ga]);a.prototype.get=function(a,c){return"state"==a?this.o:b.prototype.get.call(this,a,c)};a.prototype.start=function(){this.NTa()};a.prototype.NTa=function(){"stopped"==this.o&&(this.o="starting",this.trigger(new c(d.Tj)))};a.prototype.WB=function(){this.Zva()};
a.prototype.Zva=function(){"starting"==this.o&&(this.o="playing",this.trigger(new c(d.hn)))};a.prototype.stop=function(){this.zH()};a.prototype.zH=function(){"playing"==this.o&&(this.o="stopping",this.trigger(new c(d.Lf)))};a.prototype.end=function(){this.$va()};a.prototype.$va=function(){"stopping"==this.o&&(this.o="stopped",this.trigger(new c(d.Ga)))};return a});
define("ou",["kG","eQ","cS","hN"],function(a,b,d,c){a=a.extend(c,function(){c.call(this)});b.F("MapPlayListItem",a).H("PlayListItem").Q({media:"Map",player:"MapPlayer"});a.prototype.start=function(){c.prototype.start.call(this);var a=this.get("player");a&&(a.bind(d.xf,this.lx,this),a.set("map",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&a.get("map")==this.get("media")&&a.set("map",q);c.prototype.stop.call(this)};a.prototype.lx=function(){this.get("player").unbind(d.xf,
this.lx,this);this.get("player").bind(d.xi,this.hu,this);this.WB();this.get("player").get("map")!=this.get("media")&&this.hu()};a.prototype.hu=function(){this.get("player").unbind(d.xi,this.hu,this);this.stop();this.end()};return a});
define("fH",["require","kG","nU","eQ","jk"],function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("jk"),f=b.extend(g,function(){g.call(this);this.set("area",0);this.set("areaColor","#ffffff");this.set("areaOpacity",0);this.set("depthTest",B);this.set("displayAreaLabel",B);this.set("displayDistanceLabel",m);this.set("displayPartialDistanceLabel",m);this.set("distance",0);this.set("labelBackgroundColor","#000000");this.set("labelFontColor","#ffffff");this.set("labelOpacity",1);this.set("labelFontSize",
12);this.set("lineColor","#ffffff");this.set("pointColor","#ffffff");this.set("lineOpacity",1);this.set("lineWidth",1);this.set("points",[]);this.set("type","single");this.set("units","metric");this.bind(d.u("mode"),function(){this.trigger(f.Iwa)},this,m);this.bind(d.u("distance"),function(){this.trigger(f.Fwa)},this,m)});c.F("MeasureModel3DObject",f).H("ExternalModel3DObject").Q({area:"number",areaColor:"color",areaLabelBackgroundColor:"color",areaLabelFontColor:"color",areaLabelFontFamily:"string",
areaLabelOpacity:"number",areaLabelFontSize:"or[number, size]",areaOpacity:"number",depthTest:"bool",displayAreaLabel:"bool",displayDistanceLabel:"bool",displayPartialDistanceLabel:"bool",distance:"number",distanceLabelBackgroundColor:"color",distanceLabelFontColor:"color",distanceLabelFontFamily:"string",distanceLabelOpacity:"number",distanceLabelFontSize:"or[number, size]",labelBackgroundColor:"color",labelFontColor:"color",labelFontFamily:"string",labelOpacity:"number",labelFontSize:"or[number, size]",
lineColor:"color",lineOpacity:"number",lineWidth:"number",partialDistanceLabelBackgroundColor:"color",partialDistanceLabelFontColor:"color",partialDistanceLabelFontFamily:"string",partialDistanceLabelOpacity:"number",partialDistanceLabelFontSize:"or[number, size]",points:"array[MeasureModel3DObjectPoint]",pointColor:"color",pointDragColor:"color",pointOverColor:"color",pointMaxRadius:"number",pointMinRadius:"number",pointRadius:"number",mode:"enum[create, edit, view]",type:"enum[single, multiple]",
units:"enum[metric, imperial]"}).vs(["labelFontSize"]).fc([f.Iwa="modeChange",f.Fwa="distanceChange"]);return f});define("B",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("MeasureModel3DObjectPoint",b).H("Object").Q({x:"number",y:"number",z:"number"});return b});
define("dW",["require","kG","eQ","ba"],function(a){var b=a("kG"),d=a("eQ"),c=a("ba"),a=b.extend(c,function(){c.call(this);this.set("initialDistance",1)});d.F("OrbitModel3DCamera",a).H("Model3DCamera").Q({initialDistance:"number",minDistance:"number",maxDistance:"number"});return a});
define("bR","require,kG,nU,gE,eQ,ee,dW".split(","),function(a){function b(a,b){Array.isArray(b)?a.fromArray(b):a.copy(b)}function d(a,b){return Array.isArray(b)?a.toArray(data):{x:a.x,y:a.y,z:a.z}}var c=a("kG"),g=a("nU"),f=a("gE"),i=a("eQ"),e=a("ee"),j=a("dW"),a=c.extend(e,function(){e.call(this);this.set("autoplay",B);this.set("bakedTextures",B);this.set("camera",new j);this.set("encoding","srgb");this.set("finalFrame","last");this.set("floorOpacity",1);this.set("floorHeight",0);this.set("floorRadius",
10);this.set("isLoaded",B);this.set("maxNearestObjectsVisible",0);this.set("surfaceReticleRadius",1);this.set("surfaceSelectionEnabled",B);this.set("surfaceSelectionCoef",3);this.set("environmentIntensity",1);this.set("objects",[]);this.set("postprocessing",[]);this.set("state",f.L);this.set("geometryQuery",l);this.set("objectQuery",l)});i.F("Model3D",a).H("Media").Q({animations:"array[Model3DAnimation]",autoplay:"bool",backgroundColor:"or[color, enum[transparent]]",backgroundImageURL:"string",backgroundPanoramaURL:"string",
bakedTextures:"bool",camera:"Model3DCamera",castShadow:"bool",currentTime:"number",duration:"number",encoding:"enum[linear, srgb]",environmentIntensity:"number",environmentURL:"string",finalFrame:"enum[first, last]",floorOpacity:"number",floorColor:"or[color, enum[transparent]]",floorHeight:"number",floorRadius:"number",lights:"array[Light]",isLoaded:"bool",loop:"bool",model:"Model3DResource",postprocessing:"array[Model3DPostprocessing]",objects:"array[Model3DObject]",receiveShadow:"bool",maxNearestObjectsVisible:"number",
state:"enum[playing, paused, stopped]",surfaceSelectionEnabled:"bool",surfaceReticleMaxRadius:"number",surfaceReticleMinRadius:"number",surfaceReticleRadius:"number",surfaceSelectionCoef:"number",variant:"string",worldUnitToMeters:"number"}).vi(["backgroundImageURL","backgroundPanoramaURL","environmentURL"]).Mg({pause:function(){this.get("state")==f.S&&this.set("state",f.Gb)},play:function(){this.set("state",f.S)},stop:function(){this.set("state",f.L)},worldPositionToLocal:function(a,c){b(o,a);var e=
n;Array.isArray(c)?e.fromArray(c):e.copy(c);n.invert();o.applyMatrix4(n);return d(o,a)},getMatrixWorld:function(a){var b=this.get("objectQuery");return b&&b.fPa(a)},worldDirectionToLocal:function(a,c){b(o,a);var e=r;Array.isArray(c)?e.fromArray(c):e.copy(c);n.sVa(r);n.invert();o.applyMatrix4(n);return d(o,a)},testIntersection:function(a,c){var d=this.get("geometryQuery");if(d){b(o,a);b(k,c);return d.ITa(o,k)}},getDistanceToFloor:function(a){var c=this.get("geometryQuery");if(c){b(o,a);return c.NOa(o)}},
pick:function(a,b){var c=this.get("picker");return!c?l:c.$N(a,b)}}).fc([g.ca,g.Tl]);var o=new THREE.Vector3,k=new THREE.Vector3,n=new THREE.Matrix4,r=new THREE.Matrix4;a.prototype.hs=function(){return[]};return a});
define("gv","require,kG,lh,gE,cs,eQ,nU".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("gE");a("cs");var g=a("eQ"),f=a("nU"),a=b.extend(d,function(){d.call(this);this.set("mandatory",B);this.set("repeat",1);this.set("restartMovementOnUserInteraction",B);this.set("state",c.L);this.bind(f.u("state"),function(){this.trigger(f.Fc)},this,m)});a.prototype.play=function(){this.set("state",c.S)};a.prototype.pause=function(){this.get("state")==c.S&&this.set("state",c.Gb)};a.prototype.stop=function(){this.set("state",
c.L)};g.F("Model3DCameraSequence",a).H("Object").Q({movements:"array[Model3DCameraMovement]",mandatory:"bool",movementIndex:"number",repeat:"number",restartMovementOnUserInteraction:"bool",restartMovementDelay:"number"}).Mg({pause:a.prototype.pause,play:a.prototype.play,stop:a.prototype.stop}).fc([f.Ga,f.Ik,f.Fc]);return a});
define("ey",["require","kG","bg","cs","fQ"],function(a){var b=a("kG"),d=a("bg"),c=a("cs"),g=a("fQ"),f=b.extend(g,function(a,b){g.call(this);this.K=a;this.h=b;this.tp=q;this.fa=f.nh;this.Ag=this.vh=q;this.lg=this.Hg=l});f.prototype.display=function(a){this.tp=q;if(this.Ag!=a||this.fa!=f.nh)this.tp=a,this.Fka()};f.prototype.hide=function(){this.tp="none";this.Fka()};f.prototype.clear=function(){this.fa=f.nh;this.tp=q;this.kIa();this.nma();this.h=q};f.prototype.fh=function(a){if(this.fa!=f.nh&&(this.fa==
f.tn||this.fa==f.Yv||this.fa==f.uz))this.lg+=a,a=Math.min(1,this.lg/this.Hg),this.fa==f.tn?this.vh.set("opacity",a):this.fa==f.uz?(this.vh.set("opacity",Math.min(1,2*a)),this.Ag.set("opacity",Math.min(1,2*(1-a)))):this.Ag.set("opacity",1-a),this.lg<this.Hg?this.Ca():this.Fw()};f.prototype.FN=function(){return this.Ag&&this.h.FN(this.Ag)||l};f.prototype.Fka=function(){this.tp&&this.fa==f.nh&&this.No()};f.prototype.No=function(){this.Ag&&this.trigger(new c(f.Wy,{model:this.Ag}));"fade_out_fade_in"==
this.K.get("transitionMode","blending")&&this.Ag?this.fw():(this.vh="none"==this.tp?q:this.tp,this.tp=q,this.vh?this.Ag?this.z_():this.jI():this.Ag&&this.fw())};f.prototype.jI=function(){this.$da();this.h.Haa(this.vh,B);this.lg=0;this.Hg=this.K.get("transitionDuration");this.fa=f.tn;this.Ca()};f.prototype.z_=function(){this.$da();this.h.Haa(this.vh,B);this.h.Haa(this.Ag,m);this.lg=0;this.Hg=2*this.K.get("transitionDuration");this.fa=f.uz;this.Ca()};f.prototype.fw=function(){this.vh=q;this.lg=0;this.Hg=
this.K.get("transitionDuration");this.fa=f.Yv;this.Ca()};f.prototype.Fw=function(){this.tp!=this.Ag&&this.nma();this.Ag=this.vh;this.vh=q;this.fa=f.nh;this.Ag?this.trigger(new c(f.Xy,{model:this.Ag})):this.tp||this.trigger(new c(f.Hba));this.tp&&this.No()};f.prototype.Ca=function(){d.yb(this.fh,this)};f.prototype.$da=function(){this.vh&&(this.vh.set("opacity",0.01),this.vh.set("zIndex",1),this.Ag&&this.Ag.set("zIndex",0),this.vh.set("currentTime",0),this.h.eqa(this.vh),this.trigger(new c(f.DY,{model:this.vh})))};
f.prototype.nma=function(){this.Ag&&(this.h.daa(this.Ag),this.trigger(new c(f.$O,{model:this.Ag})),this.Ag=q)};f.prototype.kIa=function(){this.vh&&(this.h.daa(this.vh),this.trigger(new c(f.$O,{model:this.vh})),this.vh=q)};f.nh="stopped";f.tn="blending";f.uz="double blending";f.Yv="disolving";f.qb="request frame";f.DY="model added";f.$O="model removed";f.Xy="model show";f.Wy="model hide";f.Hba="all pending models hidden";return f});
define("cH",["require","kG","fQ","nU"],function(a){var b=a("kG"),d=a("fQ"),c=a("nU"),a=b.extend(d,function(a,b){d.call(this);this.K=a;this.h=b;this.Ch=q});a.prototype.clear=function(){this.stop();this.h=q};a.prototype.load=function(a){a!=this.Ch&&(this.stop(),this.h.KPa(a)?(this.Moa(a),this.hV(a)):(this.Ch=a,this.Ch.set("opacity",0),this.xza(),this.h.eqa(this.Ch)))};a.prototype.stop=function(){this.Ch&&(this.T7(),this.h.daa(this.Ch),this.Ch=q)};a.prototype.LK=function(){this.Moa(this.Ch)};a.prototype.cd=
function(){this.T7();var a=this.Ch;this.Ch=q;this.K.set("progressVisible",B);this.hV(a)};a.prototype.sf=function(){this.T7();this.Ch=q;this.K.set("progressVisible",B)};a.prototype.ii=function(a){this.K.$({progressPercent:a.data.percent,progressVisible:m})};a.prototype.xza=function(){this.Ch.bind(c.PH,this.LK,this,m);this.Ch.bind(c.U,this.cd,this,m);this.Ch.bind(c.gc,this.ii,this,m);this.Ch.bind(c.zc,this.sf,this,m)};a.prototype.T7=function(){this.Ch.unbind(c.PH,this.LK,this,m);this.Ch.unbind(c.U,
this.cd,this,m);this.Ch.unbind(c.gc,this.ii,this,m);this.Ch.unbind(c.zc,this.sf,this,m)};a.prototype.Moa=function(a){this.trigger(c.PH,{model:a})};a.prototype.hV=function(a){this.trigger(c.U,{model:a})};a.Jwa=c.PH;a.Lba=c.U;return a});
define("jg","require,kG,nU,cs,fQ,gE".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("gE"),i=b.extend(g,function(){g.call(this);this.V=q;this.o=f.L});i.prototype.start=function(a){this.V=a;this.V.bind(d.u("camera"),this.v4,this,m);this.V.bind(d.u("state"),this.S4,this,m);this.V.bind(d.u("currentTime"),this.cT,this,m);this.V.bind(d.u("duration"),this.cT,this,m);this.S4();this.v4()};i.prototype.end=function(){this.stop();if(this.oa){this.oa.unbind(d.u("state"),this.lK,this,m);
this.oa=q}if(this.V){this.V.unbind(d.u("camera"),this.v4,this,m);this.V.unbind(d.u("state"),this.S4,this,m);this.V.unbind(d.u("currentTime"),this.cT,this,m);this.V.unbind(d.u("duration"),this.cT,this,m);this.V=q}};i.prototype.clear=function(){this.end()};i.prototype.play=function(){this.V&&this.V.set("state",f.S)};i.prototype.pause=function(){this.V&&this.V.set("state",f.Gb)};i.prototype.stop=function(){this.V&&this.V.set("state",f.L)};i.prototype.setTime=function(a){this.V&&this.V.set("currentTime",
a)};i.prototype.getTime=function(){return this.V&&this.V.get("currentTime")||l};i.prototype.S4=function(){var a=this.V.get("state");if(this.o!=a){this.o=a;this.oa&&this.oa.set("state",a);this.trigger(new c(i.rc,{state:this.o}))}};i.prototype.cT=function(){this.trigger(new c(i.$i,{model:this.V,time:this.V.get("currentTime"),duration:this.V.get("duration")}));this.lK()};i.prototype.v4=function(){this.oa&&this.oa.unbind(d.u("state"),this.lK,this,m);(this.oa=this.V.get("camera"))&&this.oa.bind(d.u("state"),
this.lK,this,m);this.lK()};i.prototype.lK=function(){this.V.get("duration")===0&&this.V.set("state",this.oa?this.oa.get("state"):f.L)};i.rc="playback state change";i.$i="time change";return i});
define("dM","require,kG,gE,cs,fQ,ey,cH,jg".split(","),function(a){var b=a("kG"),d=a("gE"),c=a("cs"),g=a("fQ"),f=a("ey"),i=a("cH"),e=a("jg"),j=b.extend(g,function(a,b){g.call(this);this.K=a;this.h=b;this.h.set("visible",B);this.fe=new i(this.K,this.h);this.Ea=new f(this.K,this.h);this.za=new e(this.h);this.fe.bind(i.Jwa,this.IGa,this,m);this.fe.bind(i.Lba,this.ju,this,m);this.Ea.bind(f.Wy,this.mx,this,m);this.Ea.bind(f.Xy,this.dl,this,m);this.Ea.bind(f.DY,this.uka,this,m);this.Ea.bind(f.$O,this.xka,
this,m);this.Ea.bind(f.Hba,this.iGa,this,m);this.za.bind(e.rc,this.ye,this,m);this.za.bind(e.$i,this.op,this,m)});j.prototype.clear=function(){this.fe.clear();this.Ea.clear();this.za.clear();this.fe.unbind(i.Lba,this.ju,this);this.Ea.unbind(f.Wy,this.mx,this);this.Ea.unbind(f.Xy,this.dl,this);this.Ea.unbind(f.DY,this.uka,this);this.Ea.unbind(f.$O,this.xka,this);this.za.unbind(e.rc,this.ye,this);this.za.unbind(e.$i,this.op,this);this.K=this.h=this.za=this.Ea=this.fe=q};j.prototype.ySa=function(a){this.h.set("visible",
m);this.fe.load(a)};j.prototype.rv=function(){this.Ea.hide();this.za.end()};j.prototype.play=function(){this.za.play()};j.prototype.stop=function(){this.za.stop()};j.prototype.pause=function(){this.za.pause()};j.prototype.setTime=function(a){this.za.setTime(a)};j.prototype.getTime=function(){return this.za.getTime()};j.prototype.FN=function(){return this.Ea.FN()};j.prototype.IGa=function(a){this.Ea.display(a.data.model)};j.prototype.ju=I();j.prototype.uka=function(a){this.za.start(a.data.model)};
j.prototype.xka=I();j.prototype.dl=function(a){a=a.data.model;a.get("autoplay")&&a.get("state")!=d.S&&a.set("state",d.S);this.trigger(new c(j.Xy,{model:a}))};j.prototype.mx=function(a){this.trigger(new c(j.Wy,{model:a.data.model}))};j.prototype.iGa=function(){this.h.set("visible",B)};j.prototype.op=function(a){this.trigger(new c(j.EY,a.data))};j.prototype.ye=function(a){this.trigger(new c(j.rc,{state:a.data.state}))};j.Xy="modelShow";j.Wy="modelHide";j.kUa="modelEnd";j.EY="videoTimeChange";j.rc="playbackStateChange";
return j});
define("mX",["require","jU"],function(a){function b(){this.jK=this.jK.bind(this);this.OT=this.q=q;this.Aga=[];this.NI=new Map;this.hua=this.Ym=this.ag=this.filter=q}var d=a("jU");b.prototype.kva=function(a,b){this.dispose();this.q=a;this.OT=b;d.pa(this.q,[this.OT],this.jK,m)};b.prototype.jK=function(a){a=a||[];this.filter&&(a=a.filter(this.filter));var b=this.Aga,d=this.Aga=a;b.forEach(function(a,b){var c=d.indexOf(a);if(-1==c){var g=this.NI.get(a);this.NI["delete"](a);this.Ym&&this.Ym(a,g)}else c!=
b&&(g=this.NI.get(a),this.hua&&(c=this.hua(a,c,g,b),c!=g&&this.NI.set(a,c)))}.bind(this));d.forEach(function(a,c){if(-1==b.indexOf(a)&&this.ag){var d=this.ag(a,c);this.NI.set(a,d)}}.bind(this))};b.prototype.dispose=function(){this.q&&(d.na(this.q,[this.OT],this.jK),this.jK([]),this.OT=this.q=q)};return b});
define("mi",["require","jU","fm"],function(a){function b(a,b,c,k){this.q=a;this.V=b;this.ra=c;this.h=k;this.ku=this.ku.bind(this);this.bT=this.bT.bind(this);this.MS=this.MS.bind(this);this.k=this.ra.R.Ld("InnerObject");d.pa(this.q,g,this.ku,m);d.pa(this.q,f,this.bT,m);d.pa(this.q,i,this.MS,m)}var d=a("jU"),c=a("fm");b.prototype.bT=function(){var a=this.k.G(c.Ud,m);a.dn=this.q.get("useHandCursor");a.HO=this.q.get("transparentAreaActive");a.La=this.q;a.Zu=this.q.get("clickEnabled");a.qv=this.q.get("rollOverEnabled")};
b.prototype.MS=function(){var a=this.k.G(c.wq,m);a.opacity=this.q.get("enabled")&&!this.q.get("hidden")?this.q.get("opacity"):0;a.La=this.q};b.prototype.ku=function(){var a=this.k.G(c.mD,m);a.id=this.q.get("objectId");a.container=this.ra};b.prototype.dispose=function(){this.ra.R.bg(this.k);this.k=q;d.na(this.q,g,this.ku);d.na(this.q,f,this.bT);d.na(this.q,i,this.MS)};var g=["objectId"],f=["clickEnabled","rollOverEnabled","transparentAreaActive","useHandCursor"],i=["hidden","enabled","opacity"];return b});
define("O",["require","jU","fm"],function(a){function b(a,b){this.lc=a;this.Sc=b;this.N=B;this.ze=this.ze.bind(this);d.pa(this.lc,g,this.ze,m)}var d=a("jU"),c=a("fm");b.prototype.ze=function(){var a=this.lc.get("enabled")&&!this.lc.get("disabled");this.N!=a&&(this.N&&this.Sc.ga(c.SC),(this.N=a)&&this.Sc.C(c.SC));this.N&&(a=this.Sc.G(c.SC),a.bias=this.lc.get("bias"),a.intensity=this.lc.get("intensity"),a.scale=this.lc.get("scale"),a.Vsa=this.lc.get("kernelRadius"),a.xta=this.lc.get("minResolution"),
a.o9=this.lc.get("blurRadius"),a.output="ao"==this.lc.get("output")?THREE.SAOPass.OUTPUT.SAO:THREE.SAOPass.OUTPUT.Default)};b.prototype.dispose=function(){this.Sc.ga(c.SC);this.Sc=q;d.na(this.lc,g,this.ze,m)};var g="disabled,enabled,bias,intensity,scale,kernelRadius,minResolution,blurRadius,output".split(",");return b});
define("ch",["require","jU","fm"],function(a){function b(a,b){this.lc=a;this.Sc=b;this.N=B;this.ze=this.ze.bind(this);d.pa(this.lc,g,this.ze,m)}var d=a("jU"),c=a("fm");b.prototype.ze=function(){var a=this.lc.get("enabled")&&!this.lc.get("disabled");this.N!=a&&(this.N&&this.Sc.ga(c.Ky),(this.N=a)&&this.Sc.C(c.Ky));this.N&&(a=this.Sc.G(c.Ky),a.ora="fxaa"==this.lc.get("mode"),a.Ava="ssaa"==this.lc.get("mode"),a.CO=this.lc.get("ssaaSampleLevel"))};b.prototype.dispose=function(){this.Sc.ga(c.Ky);this.Sc=
q;d.na(this.lc,g,this.ze,m)};var g=["disabled","enabled","mode","ssaaSampleLevel"];return b});
define("eA",["require","jU","nU","eQ","fm"],function(a){function b(a,b,d){this.h=a;this.V=b;this.Vh=d;this.K=this.h.K;this.oa=q;this.ze=this.ze.bind(this);this.h.bind(c.sc,this.Vb,this,m);this.V.bind(c.u("camera"),this.yS,this,m);this.K.bind(c.u("isKeyboardTarget"),this.D4,this,m);this.yS();this.D4();this.Vb()}var d=a("jU"),c=a("nU"),g=a("eQ"),f=a("fm");b.prototype.xd=function(a){for(var b in e){var c=this.Vh.G(e[b]);c&&(c.enabled=a)}};b.prototype.dispose=function(){this.oa&&(d.na(this.oa,i,this.ze,
m),this.oa=q);this.V.unbind(c.u("camera"),this.yS,this,m);this.V=q;this.K.unbind(c.u("isKeyboardTarget"),this.D4,this,m);this.K=q;this.h.unbind(c.sc,this.Vb,this,m);this.Vh=this.h=q};b.prototype.yS=function(){var a,b;for(b in e){var c=e[b];this.V.get("camera")&&g.xa(b,this.V.get("camera"))?a=this.Vh.G(c,m):this.Vh.ga(c)}a&&(a.Fb=this.V.get("camera"),a.Xp=this.h.getParent(),a.ns=this.K.get("isKeyboardTarget"))};b.prototype.D4=function(){var a=this.V.get("camera"),b,c;for(c in e){var f=e[c];a&&g.xa(c,
a)&&(b=this.Vh.G(f,m))}b&&(b.ns=this.K.get("isKeyboardTarget"));this.oa!=a&&(this.oa&&d.na(this.oa,i,this.ze,m),(this.oa=a)&&d.pa(this.oa,i,this.ze,m))};b.prototype.ze=function(){var a=this.Vh.G(f.PerspectiveCamera,m);a.oqa=this.oa.get("autoNearFar");a.pqa=this.oa.get("autoNearFarTolerance");a.near=this.oa.get("near");a.far=this.oa.get("far")};b.prototype.Vb=function(){var a=this.Vh.G(f.PerspectiveCamera,m);a.width=this.h.Se();a.height=this.h.Re()};var i=["autoNearFar","autoNearFarTolerance","near",
"far"],e={OrbitModel3DCamera:f.nD,FirstPersonModel3DCamera:f.$C,FlyOverModel3DCamera:f.aD};return b});
define("ha",["require","jU","fm"],function(a){function b(a,b){this.lc=a;this.Sc=b;this.N=B;this.ze=this.ze.bind(this);d.pa(this.lc,g,this.ze,m)}var d=a("jU"),c=a("fm");b.prototype.ze=function(){var a=this.lc.get("enabled")&&!this.lc.get("disabled");this.N!=a&&(this.N&&this.Sc.ga(c.NH),(this.N=a)&&this.Sc.C(c.NH));this.N&&(a=this.Sc.G(c.NH),a.yua=this.lc.get("samples"),a.intensity=this.lc.get("intensity"))};b.prototype.dispose=function(){this.Sc.ga(c.NH);this.Sc=q;d.na(this.lc,g,this.ze,m)};var g=
["disabled","enabled","samples","intensity"];return b});
define("ot",["require","jU","fm"],function(a){function b(a,b){this.lc=a;this.Sc=b;this.ze=this.ze.bind(this);d.pa(this.lc,g,this.ze,m)}var d=a("jU"),c=a("fm");b.prototype.ze=function(){var a=this.lc.get("enabled")&&!this.lc.get("disabled");this.N!=a&&(this.N&&this.Sc.ga(c.uD),(this.N=a)&&this.Sc.C(c.uD));this.N&&(a=this.Sc.G(c.uD),a.Bsa=this.lc.get("innerRadius"),a.Uta=this.lc.get("outerRadius"),a.color=this.lc.get("color"),a.opacity=this.lc.get("opacity"))};b.prototype.dispose=function(){this.Sc.ga(c.uD);
this.Sc=q;d.na(this.lc,g,this.ze,m)};var g="enabled,disabled,opacity,color,innerRadius,outerRadius".split(",");return b});
define("eN","require,kG,jU,nU,fQ,fm".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),a=b.extend(g,function(a,b){g.call(this);this.hd=a;this.ra=b;this.df=this.df.bind(this);this.k=q;this.uk=0;this.vb=B;this.iL=[];this.hd.bind(c.u("areaOpacity"),this.Cka,this);this.hG()});a.prototype.yX=function(a){this.iL.forEach(function(a){a.unbind(c.hc,this.Jd,this,m);a.unbind(c.nc,this.Jd,this,m)}.bind(this));this.iL=a;this.iL.forEach(function(a){a.bind(c.hc,this.Jd,this,m);a.bind(c.nc,
this.Jd,this,m)}.bind(this));this.Toa();this.Jd()};a.prototype.dispose=function(){this.hd.unbind(c.u("areaOpacity"),this.Cka,this);this.Nu()};a.prototype.isVisible=S("vb");a.prototype.Cka=function(){this.hG();this.ao()};a.prototype.hG=function(){this.hd.get("areaOpacity")>0?this.Wx():this.Nu()};a.prototype.Wx=function(){if(!this.k){this.k=this.ra.R.Ld("MeasureArea");var a=new g;a.bind(c.qa,this.kx,this,m);this.k.C(f.Ql).La=a;this.k.C(f.Vc);this.k.C(f.Hb).Qb=this.ra;d.pa(this.hd,i,this.df,m);this.Toa()}};
a.prototype.Nu=function(){if(this.k){this.k.getComponent(f.Ql).La.unbind(c.qa,this.kx,this,m);d.na(this.hd,i,this.df);this.k.R.bg(this.k);this.k=q}};a.prototype.Cr=function(a){if(this.vb!=a)if(this.vb=a){this.Un(1);this.trigger(c.hc)}else{this.Un(0);this.trigger(c.nc)}};a.prototype.Jd=function(){this.Cr(this.iL.every(function(a){return a.isVisible()}))};a.prototype.kx=function(a){this.hd.set("area",a.data.area)};a.prototype.df=function(){if(this.k){var a=this.k.G(f.Vc);a.color=this.hd.get("areaColor");
a.depthTest=this.hd.get("depthTest");a.doubleSided=m;this.ao()}};a.prototype.Un=function(a){if(this.uk!=a){this.uk=a;this.ao()}};a.prototype.ao=function(){if(this.k)this.k.G(f.Vc).opacity=this.hd.get("areaOpacity")*Math.max(1.0E-4,this.uk)};a.prototype.Toa=function(){if(this.k)this.k.G(f.Ql).entities=this.iL.map(function(a){return a.k})};var i=["areaColor","areaOpacity","depthTest"];return a});
define("C",["require","bN","ez"],function(a){function b(){this.G1=this.$q("#ffffff");this.ew=this.$q("#000000");this.qh=this.Ye=0;this.J=document.createElement("canvas");this.ja=this.J.getContext("2d");this.ja.DVa="high";this.Gr=new c.vZ;this.H1=this.qE=l;this.d_=this.e_=0.5;this.Tp=l;this.cG=b.aZ;this.Ru=l;this.wH(0)}function d(a){return 100<a?a.toFixed(0):10<a?a.toFixed(1):a.toFixed(2)}var c=a("bN"),g=a("ez");b.$ba="imperial area";b.aca="imperial length";b.fca="metric area";b.aZ="metric length";
b.prototype.dispose=function(){this.J.width=this.J.height=0;this.J=q};b.prototype.WRa=function(a){this.G1!=a&&(this.G1=a,this.ka=m)};b.prototype.DRa=function(a){this.ew!=a&&(this.ew=a,this.ka=m)};b.prototype.XRa=function(a){this.H1!=a&&(this.H1=a,this.ka=m)};b.prototype.YRa=function(a){this.qE!=a&&(this.qE=a,this.ka=m)};b.prototype.kaa=function(){0.5!=this.Gr.zG&&(this.d_=0.5,this.ka=m)};b.prototype.laa=function(a){this.Gr.AG!=a&&(this.e_=a,this.ka=m)};b.prototype.wH=function(a){this.Tp!=a&&(this.Tp=
a,this.h8())};b.prototype.cTa=function(a){this.cG!=a&&(this.cG=a,this.h8())};b.prototype.dTa=function(a){this.Ru!=a&&(this.Ru=a,this.h8())};b.prototype.h8=function(){if(this.Ru===l)this.Ka=d(this.Tp);else if(this.cG==b.aZ){var a=this.Tp*this.Ru;this.Ka=1<=a?d(a)+"m":d(100*a)+"cm"}else this.cG==b.fca?(a=this.Tp*this.Ru*this.Ru,this.Ka=0.1<=a?d(a)+"m\u00b2":d(1E4*a)+"cm\u00b2"):this.cG==b.aca?(a=1.0936*this.Tp*this.Ru,this.Ka=1760<a?d(a/1760)+"mi":100<=a?d(a)+"yd":1<=3*a?d(3*a)+"ft":d(36*a)+"in"):this.cG==
b.$ba&&(a=1.0936*1.0936*this.Tp*this.Ru*this.Ru,this.Ka=1<=a?d(a)+"yd\u00b2":1<=9*a?d(9*a)+"ft\u00b2":d(1296*a)+"in\u00b2");this.ka=m};b.prototype.$q=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)]};b.prototype.mk=function(a,b){return"rgba("+a.join(",")+", "+b+")"};b.prototype.fd=S("Ye");b.prototype.Td=S("qh");b.prototype.mg=S("J");b.prototype.update=function(){if(!this.ka)return B;this.ka=B;this.Gr.fontFamily=this.H1||
"Arial";this.Gr.fontSize=this.qE?"string"==typeof this.qE?this.qE:this.qE+"px":"30px";var a=c(this.Ka,this.Gr),b=this.$q(this.G1),d=this.$q(this.ew),j=a.width,a=a.height,o=0.5*a,k=0.3*a,n=o+j+0.5*a,r=k+a+0.2*a,p=0.5*r,t=this.J,s=this.J,u;u=Math.max(n,r);u=Math.max(128,Math.pow(2,Math.ceil(Math.log(u)/Math.LN2)));t.width=s.height=this.Ye=this.qh=u;t=this.Ye*this.d_-n*this.d_;s=this.qh*this.e_-r*this.e_;this.PD();this.ja.save();this.ja.translate(t,s);this.ja.fillStyle=this.mk(d,1);this.ja.beginPath();
this.ja.moveTo(0,p);this.ja.quadraticCurveTo(0,0,p,0);this.ja.lineTo(n-p,0);this.ja.quadraticCurveTo(n,0,n,p);this.ja.quadraticCurveTo(n,r,n-p,r);this.ja.lineTo(p,r);this.ja.quadraticCurveTo(0,r,0,r-p);this.ja.closePath();this.ja.fill();this.ja.fillStyle=this.mk(b,1);this.ja.font=this.Gr.fontSize+" '"+this.Gr.fontFamily+"'";this.ja.font=this.Gr.fontSize+(isNaN(this.Gr.fontSize)?"":"px")+" "+g.$u(this.Gr.fontFamily);this.ja.textBaseline="middle";this.ja.textAlign="center";this.ja.fillText(this.Ka,
Math.round(o+0.5*j),Math.round(k+0.5*a));this.ja.restore();return m};b.prototype.PD=function(){this.ja.clearRect(0,0,this.Ye,this.qh)};return b});
define("em","require,kG,jU,nU,fQ,fm,C,ei".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),i=a("C"),e=a("ei"),a=b.extend(g,function(a,b,d){g.call(this);this.f4=a;this.hd=b;this.ra=d;this.df=this.df.bind(this);this.Wn=this.k=q;this.uk=0;this.vb=B;this.UU=this.Rg=this.Fx=this.ax=q;this.Tp=l;this.Eh=new i;this.f4.bind(c.u("worldUnitToMeters"),this.U4,this,m);this.hd.bind(c.u("units"),this.G4,this,m);this.Wx()});a.prototype.$ua=function(a){this.uU(a,q,q)};a.prototype.LSa=function(a){this.uU(q,
a,q)};a.prototype.CRa=function(a){this.uU(q,q,a)};a.prototype.uU=function(a,b,d){if(!(this.Fx==b&&this.ax==a&&this.Rg==d)){[this.ax,this.Fx,this.Rg].forEach(function(a){a&&a.unbind(c.hc,this.Jd,this,m);a&&a.unbind(c.nc,this.Jd,this,m)}.bind(this));this.Nu();this.ax=a;this.Fx=b;this.Rg=d;this.Wx();this.df();this.Zf(m);[this.ax,this.Fx,this.Rg].forEach(function(a){a&&a.bind(c.hc,this.Jd,this,m);a&&a.bind(c.nc,this.Jd,this,m)}.bind(this));if(this.ax){this.k.G(f.Hb).Qb=this.ax.k;this.k.G(f.va).Kf=0.5;
a=this.k.G(f.Sprite);a.zG=0.5;a.AG=0.5;this.Eh.kaa();this.Eh.laa(0.5)}else if(this.Fx){this.k.G(f.Hb).Qb=this.Fx.k;this.k.G(f.va).Kf=0;a=this.k.G(f.Sprite);a.zG=0.5;a.AG=1.1;this.Eh.kaa();this.Eh.laa(1)}else if(this.Rg){this.k.G(f.Hb).Qb=this.Rg.k;this.k.G(f.va).Kf=0;a=this.k.G(f.Sprite);a.zG=0.5;a.AG=0.5;this.Eh.kaa();this.Eh.laa(0.5)}else this.k.G(f.Hb).Qb=q;this.Jd();this.G4();this.U4()}};a.Cxa="partialDistance";a.Uca="distance";a.Bxa="area";a.prototype.setStyle=function(a){if(this.UU!=a){this.UU=
a;this.df()}};a.prototype.wH=function(a){if(!(a===l||this.Tp===a)){this.Tp=a;this.Eh.wH(a);this.Zf();this.Jd()}};a.prototype.dispose=function(){this.f4.unbind(c.u("worldUnitToMeters"),this.U4,this,m);this.hd.unbind(c.u("units"),this.G4,this,m);this.uU(q,q);this.Eh.dispose();this.Eh=q;this.Nu()};a.prototype.U4=function(){this.Eh.dTa(this.f4.get("worldUnitToMeters"));this.Zf()};a.prototype.G4=function(){var a=!!this.Rg;this.Eh.cTa(this.hd.get("units")=="imperial"?a?i.$ba:i.aca:a?i.fca:i.aZ);this.Zf()};
a.prototype.Wx=function(){if(!this.k){this.k=this.ra.R.Ld("MeasureLabel");this.k.C(f.Sprite).renderOrder=2;this.k.C(f.Qs);var a=this.k.C(f.Yi);a.source=this.Eh.mg();a.isSprite=m;d.pa(this.hd,j,this.df,m);this.k.C(f.va);this.k.C(f.Hb)}};a.prototype.Nu=function(){if(this.k){d.na(this.hd,j,this.df);this.k.R.bg(this.k);this.k=q}};a.prototype.isVisible=S("vb");a.prototype.Cr=function(a){if(this.vb!=a)if(this.vb=a){this.iKa();this.trigger(c.hc)}else{this.hLa();this.Un(0);this.trigger(c.nc)}};a.prototype.Jd=
function(){this.Cr(this.Tp>0&&(this.ax&&this.ax.isVisible()||this.Fx&&this.Fx.isVisible()||this.Rg&&this.Rg.isVisible()))};a.prototype.iKa=function(){if(!this.Wn){this.Wn=new e;this.Wn.set("duration",300);this.Wn.bind(e.WO,this.hla,this,m);this.Wn.bind(e.Zi,this.gla,this,m);this.Wn.play()}};a.prototype.hLa=function(){if(this.Wn){this.Wn.unbind(e.WO,this.hla,this,m);this.Wn.unbind(e.Zi,this.gla,this,m);this.Wn.stop();this.Wn=q}};a.prototype.hla=function(){this.Un(2*this.Wn.Bk()-1)};a.prototype.gla=
function(){this.Un(1)};a.prototype.df=function(){this.k.G(f.Yi).depthTest=this.xE("depthTest");this.Eh.WRa(this.xE("labelFontColor"));this.Eh.DRa(this.xE("labelBackgroundColor"));this.Eh.XRa(this.xE("labelFontFamily"));this.Eh.YRa(this.xE("labelFontSize"));this.ao();this.Zf()};a.prototype.xE=function(a){var b;this.UU&&(b=this.hd.get(this.UU+a[0].toUpperCase()+a.substr(1)));b===l&&(b=this.hd.get(a));return b};a.prototype.Zf=function(a){if(this.Eh.update()||a){var a=this.k.G(f.Yi),b=this.k.G(f.Sprite);
a.GX=(new Date).getTime();b.width=this.Eh.fd();b.height=this.Eh.Td()}};a.prototype.Un=function(a){if(this.uk!=a){this.uk=a;this.ao()}};a.prototype.ao=function(){this.k.G(f.Yi).opacity=this.xE("labelOpacity")*Math.max(1.0E-4,this.uk)};var j=["depthTest","areaLabelBackgroundColor","areaLabelFontColor","areaLabelFontFamily","areaLabelOpacity","areaLabelFontSize","distanceLabelBackgroundColor","distanceLabelFontColor","distanceLabelFontFamily","distanceLabelOpacity","distanceLabelFontSize","labelBackgroundColor",
"labelFontColor","labelFontFamily","labelOpacity","labelFontSize","partialDistanceLabelBackgroundColor","partialDistanceLabelFontColor","partialDistanceLabelFontFamily","partialDistanceLabelOpacity","partialDistanceLabelFontSize"];return a});
define("gi","require,kG,jU,nU,fQ,fm".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),a=b.extend(g,function(a,b){g.call(this);this.hd=a;this.ra=b;this.tl=this.sl=q;this.df=this.df.bind(this);this.k=q;this.uk=0;this.vb=B;this.Wx()});a.prototype.yX=function(a,b){if(this.sl!=a||this.tl!=b){this.sl&&this.sl.unbind(c.hc,this.Jd,this,m);this.sl&&this.sl.unbind(c.nc,this.Jd,this,m);this.tl&&this.tl.unbind(c.hc,this.Jd,this,m);this.tl&&this.tl.unbind(c.nc,this.Jd,this,m);this.sl=
a;this.tl=b;this.sl&&this.sl.bind(c.hc,this.Jd,this,m);this.sl&&this.sl.bind(c.nc,this.Jd,this,m);this.tl&&this.tl.bind(c.hc,this.Jd,this,m);this.tl&&this.tl.bind(c.nc,this.Jd,this,m);this.k.G(f.Hb,m).Qb=this.sl&&this.sl.k;this.k.G(f.Qv,m).Qb=this.tl&&this.tl.k;this.Jd()}};a.prototype.dispose=function(){this.yX(q,q);this.Nu()};a.prototype.Wx=function(){if(!this.k){this.k=this.ra.R.Ld("MeasureLine");this.k.C(f.Line);this.k.C(f.bj);this.k.C(f.va);d.pa(this.hd,i,this.df,m)}};a.prototype.Nu=function(){if(this.k){d.na(this.hd,
i,this.df);this.k.R.bg(this.k);this.k=q}};a.prototype.isVisible=S("vb");a.prototype.Cr=function(a){if(this.vb!=a)if(this.vb=a){this.Un(1);this.trigger(c.hc)}else{this.Un(0);this.trigger(c.nc)}};a.prototype.Jd=function(){this.Cr(this.sl&&this.sl.isVisible()&&this.tl&&this.tl.isVisible())};a.prototype.df=function(){var a=this.k.G(f.bj);a.color=this.hd.get("lineColor");a.depthTest=this.hd.get("depthTest");a.width=this.hd.get("lineWidth");a.depthTest=this.hd.get("depthTest");this.ao()};a.prototype.Un=
function(a){if(this.uk!=a){this.uk=a;this.ao()}};a.prototype.ao=function(){this.k.G(f.bj).opacity=this.hd.get("lineOpacity")*Math.max(1.0E-4,this.uk)};var i=["depthTest","lineColor","lineOpacity","lineWidth"];return a});
define("lo","require,kG,jU,nU,fQ,fm".split(","),function(a){var b=a("kG"),d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm"),a=b.extend(g,function(a,b,f){g.call(this);this.hd=a;this.ra=b;this.yp=f;this.US=this.US.bind(this);this.df=this.df.bind(this);this.Cm=this.Cm.bind(this);this.k=q;this.Xh=this.DL=this.Sd=this.dw=B;this.uk=0;this.vb=B;this.Wx();d.pa(this.hd,i,this.US,m);d.pa(this.hd,j,this.df,m);d.KV(this.yp,e,this.Cm,m);this.bind(c.rn,this.Rka,this,m);this.bind(c.bc,this.iF,this,m);this.bind(c.rb,this.Dm,
this,m);this.Cm();this.JW()&&this.Cr(m)});a.prototype.dispose=function(){d.na(this.hd,i,this.US);d.na(this.hd,j,this.df);d.na(this.yp,e,this.Cm);this.unbind(c.rn,this.Rka,this,m);this.unbind(c.bc,this.iF,this,m);this.unbind(c.rb,this.Dm,this,m);this.Nu()};a.prototype.Jua=function(a){if(this.dw!==a){if(this.dw=a){a=this.k.C(f.Rj);a.Qb=this.ra;a.rotate=B;a.La=new g;this.Cr(m);a.La.bind(c.bc,this.ZE,this,m)}else{(a=this.k.getComponent(f.Rj))&&a.La.unbind(c.bc,this.ZE,this,m);this.k.ga(f.Rj);a=this.k.getComponent(f.va);
this.Pua(a.Og,a.tg,a.Kf)}this.ey();this.w8()}};a.prototype.Qua=function(a){a===l&&(a=B);if(this.Xh!==a)(this.Xh=a)?this.k.C(f.Jv):this.k.ga(f.Jv)};a.prototype.RSa=function(a){if(this.DL!==a){this.DL=a;this.w8();this.Sd=B;this.ey()}};a.prototype.Pua=function(a,b,c){this.yp.set("x",a);this.yp.set("y",b);this.yp.set("z",c);this.Cr(this.JW())};a.prototype.Wx=function(){this.k=this.ra.R.Ld("MeasurePoint");this.k.C(f.Sphere);this.k.C(f.Vc);this.k.C(f.Ud).La=this;this.k.C(f.Qs);this.k.C(f.va).La=this;this.k.C(f.Eo);
this.k.C(f.Hb).Qb=this.ra;this.w8();this.ao();this.ey()};a.prototype.Nu=function(){this.k.R.bg(this.k);this.k=q};a.prototype.isVisible=S("vb");a.prototype.Cr=function(a){if(this.vb!=a)if(this.vb=a){this.Un(1);this.trigger(c.hc)}else{this.Un(0);this.trigger(c.nc)}};a.prototype.w8=function(){var a=this.k.G(f.Ud);a.dn=this.DL;a.qv=this.DL;a.Zu=!this.dw;a=this.k.G(f.Qs,m);a.Yva=!this.DL||this.dw;a.Xva=this.dw};a.prototype.ZE=function(){this.Cr(m)};a.prototype.iF=function(){this.Sd=m;this.ey()};a.prototype.Dm=
function(){this.Sd=B;this.ey()};a.prototype.US=function(){this.k.G(f.Hb).id=this.hd.get("parentId")};a.prototype.df=function(){if(this.k){var a=this.k.G(f.Eo);a.sg=a.Lg=a.si=1;a.QN=this.hd.get("pointMaxRadius");a.SN=this.hd.get("pointMinRadius");a.scale=this.hd.get("pointRadius")||1;this.k.G(f.Vc).depthTest=this.hd.get("depthTest");this.ey()}};a.prototype.ey=function(){if(this.k){var a=this.dw?"pointDragColor":this.Sd?"pointOverColor":"pointColor";this.k.G(f.Vc).color=this.hd.get(a)}};a.prototype.Un=
function(a){if(this.uk!=a){this.uk=a;this.ao()}};a.prototype.ao=function(){this.k.G(f.Vc).opacity=Math.max(1.0E-4,this.uk)};a.prototype.Rka=function(a){this.x=a.data.position.x;this.y=a.data.position.y;this.z=a.data.position.z};a.prototype.Cm=function(){if(this.JW()&&this.k){var a=this.k.G(f.va,m);a.Og=this.yp.get("x");a.tg=this.yp.get("y");a.Kf=this.yp.get("z")}};a.prototype.JW=function(){var a=this.yp.get("x"),b=this.yp.get("y"),c=this.yp.get("z");return a!==l&&b!==l||c!==l};a.prototype.distanceTo=
function(a){var b=this.x-a.x,c=this.y-a.y,a=this.z-a.z;return Math.sqrt(b*b+c*c+a*a)};var i=["parentId"],e=["x","y","z"],j=["depthTest","mode","pointDragColor","pointColor","pointOverColor","pointMaxRadius","pointMinRadius","pointRadius"];return a});
define("lV","require,jU,nU,bm,eN,em,gi,lo,t,fm".split(","),function(a){function b(a,b,c,e){this.q=a;this.V=b;this.ra=c;this.h=e;this.K=this.h.K;this.jp=this.jp.bind(this);this.XS=this.XS.bind(this);this.NS=this.NS.bind(this);this.eT=this.eT.bind(this);this.cF=this.cF.bind(this);this.kx=this.kx.bind(this);this.aF=this.aF.bind(this);this.mi=new Map;this.hL=new Map;this.cp=[];this.IA=[];this.pF=new Map;this.Zg=[];this.Ji=q;this.ke=this.Jc=l;this.N=B;d.pa(this.q,["enabled"],this.jp,m)}var d=a("jU"),c=
a("nU"),g=a("bm"),f=a("eN"),i=a("em"),e=a("gi"),j=a("lo"),o=a("t");a("fm");b.prototype.dispose=function(){this.Vo();d.na(this.q,["enabled"],this.jp,m);this.ke=this.Jc=this.Ji=this.Zg=this.IA=this.cp=this.hL=this.mi=q};b.prototype.jp=function(){this.q.get("enabled")?this.dA():this.Vo()};b.prototype.dA=function(){if(!this.N){this.N=m;this.RAa();this.Ofa(this.q);document.addEventListener("keyup",this.aF);d.pa(this.q,k,this.XS,m);d.pa(this.q,r,this.eT,m);d.pa(this.q,n,this.NS,m);d.pa(this.q,p,this.cF,
m);d.pa(this.q,t,this.kx,m);this.V.bind(c.ca,this.vka,this,m);this.V.bind(c.Tl,this.wka,this,m)}};b.prototype.Vo=function(){if(this.N){this.N=B;this.xna([]);this.jga(this.q);this.YBa();document.removeEventListener("keyup",this.aF);d.na(this.q,k,this.XS);d.na(this.q,r,this.eT,m);d.na(this.q,n,this.NS,m);d.na(this.q,p,this.cF,m);d.na(this.q,t,this.kx,m);this.V.unbind(c.ca,this.vka,this,m);this.V.unbind(c.Tl,this.wka,this,m)}};b.prototype.XS=function(){this.xna(this.q.get("points"))};b.prototype.NS=
function(){var a=this.q.get("mode");if(a!=this.Jc){switch(this.Jc){case "create":this.Zg.length<1||this.Ji&&this.Zg.length<2?a="create":this.zIa(this.Ji);break;case "edit":a=="create"?this.q.get("type")==="single"&&this.Zg.length>0?a="edit":this.CP():this.Fu(q);break;case "view":a==="create"&&(this.q.get("type")==="single"&&this.Zg.length>0?a="view":this.CP());break;default:a=="create"&&(this.q.get("type")==="single"&&this.Zg.length>0&&this.B2(this.Mt(-1))?a="edit":this.Fu(this.Mt(-1),B))}this.Jc=
a;this.q.set("mode",this.Jc);this.rpa()}};b.prototype.eT=function(){var a=this.q.get("type");if(a!==this.ke){this.ke=a;this.ke==="single"&&this.Zg.length>1&&this.q.set("points",this.ZUa.slice(0,1))}};b.prototype.cF=function(){this.fpa();this.jV()};b.prototype.kx=function(){var a=this.i2(this.Rg);a&&a.wH(this.q.get("area"))};b.prototype.aF=function(a){a.which==g.Ewa&&this.K.get("isKeyboardTarget")&&(this.q.get("mode")=="create"?this.q.set("mode","edit"):this.Jc=="edit"&&this.Fu(q))};b.prototype.CP=
function(){this.Gya();this.Fu(this.Mt(-1),B)};b.prototype.Gya=function(){var a=this.K.get("application").Zp("MeasureModel3DObjectPoint");if(!o.ob()){var b=this.Mt(-1);if(b&&this.B2(b)){a.set("x",b.get("x"));a.set("y",b.get("y"));a.set("z",b.get("z"))}}this.q.set("points",this.Zg.concat([a]))};b.prototype.Mt=function(a){var b=[this.q].concat(this.Zg);return a<0&&b.length-a>0?b[b.length+a]:a>=0&&a<b.length?b[a]:q};b.prototype.zIa=function(a){this.q.set("points",this.Zg.filter(function(b){return b!=
a}))};b.prototype.B2=function(a){return!!a&&this.mi.get(a).JW()};b.prototype.vka=function(a){if(this.q.get("mode")=="create"){if(this.Ji){var b=this.Ji;this.Fu(q);this.Xya(b,a)}this.ke=="single"&&this.Zg.length>0?this.q.set("mode","edit"):this.CP()}else this.q.get("mode")=="edit"&&this.Fu(q)};b.prototype.wka=function(){this.q.get("mode")=="create"&&o.ob()&&this.q.set("mode","edit")};b.prototype.Nka=function(){this.q.get("mode")=="create"&&this.q.set("mode","edit")};b.prototype.Mka=function(a){if(this.q.get("mode")==
"create"){var b=this.Mt(-2),a=this.hL.get(a.source);if(b==a)this.q.set("mode","edit");else{b=this.Ji;this.Fu(q);b.set("x",a.get("x"));b.set("y",a.get("y"));b.set("z",a.get("z"));a==this.Mt(0)?this.q.set("mode","edit"):this.CP()}}};b.prototype.Oka=function(a){this.q.get("mode")=="edit"&&this.Fu(this.hL.get(a.source),m)};b.prototype.Pka=function(){this.q.get("mode")=="edit"&&this.Fu(q)};b.prototype.Qka=function(){this.jV()};b.prototype.jV=function(){for(var a=[],b=this.Mt(0),c=this.v2(),d=0;d<c.length;d++){var e=
c[d],b=this.mi.get(b),f=this.mi.get(e),f=b.distanceTo(f);(b=this.i2(this.cp[d]))&&b.wH(f);a.push(f);b=e}a=a.reduce(function(a,b){return a+b},0);(b=this.i2(this.mi.get(c[c.length-1])))&&b.wH(a);this.q.set("distance",isNaN(a)?l:a)};b.prototype.Xya=function(a,b){var c=b&&b.data.position;if(c){c=this.V.worldPositionToLocal(c,this.V.getMatrixWorld());this.mi.get(a).Pua(c.x,c.y,c.z)}};b.prototype.Fu=function(a,b){b||(b=B);if(this.Ji!==a){if(this.Ji){var c=this.mi.get(this.Ji);c.Qua(B);c.Jua(B)}if(this.Ji=
a){c=this.mi.get(this.Ji);c.Qua(b);c.Jua(b||!o.ob())}this.gpa();this.rpa()}};b.prototype.xna=function(a){if(this.Zg!=a){this.Zg.forEach(function(b){a.indexOf(b)==-1&&this.jga(b)}.bind(this));this.Zg=a;if(this.Ji&&this.Zg.indexOf(this.Ji))this.Ji=q;this.Zg.forEach(function(a){this.Ofa(a)}.bind(this));this.gpa();this.fpa();this.bMa();this.jV()}};b.prototype.v2=function(){return this.Zg.filter(function(a){return this.B2(a)||this.mi.get(a).dw}.bind(this))};b.prototype.gpa=function(){for(;this.Zg.length<
this.cp.length;)this.aCa();for(;this.Zg.length>this.cp.length;)this.wBa();for(var a=m,b=0;b<this.Zg.length;b++){var c=this.Mt(b),d=this.Mt(b+1);c==this.Ji&&(a=B);var e=a?d:c;this.cp[b].yX(this.mi.get(a?c:d),this.mi.get(e))}};b.prototype.fpa=function(){this.WLa();var a=this.v2(),b=a.length==1;this.q.get("displayPartialDistanceLabel")&&!b&&this.cp.forEach(function(a){var b=this.aS(a);b.$ua(a);b.setStyle(i.Cxa)}.bind(this));if(this.q.get("displayDistanceLabel"))if(b){a=this.aS(this.cp[0]);a.$ua(this.cp[0]);
a.setStyle(i.Uca)}else if(a.length>1){b=this.mi.get(a[a.length-1]);a=this.aS(b);a.LSa(b);a.setStyle(i.Uca)}if(this.q.get("displayAreaLabel")&&this.Rg){a=this.aS(this.Rg);a.CRa(this.Rg);a.setStyle(i.Bxa)}this.cCa();this.jV();this.kx()};b.prototype.rpa=function(){var a=!this.Ji&&this.Jc!="view";this.mi.forEach(function(b){b.RSa(a)})};b.prototype.bMa=function(){this.Rg&&this.Rg.yX([this.q].concat(this.v2()).map(function(a){return this.mi.get(a)}.bind(this)))};b.prototype.Ofa=function(a){var b=this.mi.get(a);
if(!b){b=new j(this.q,this.ra,a);this.mi.set(a,b);this.hL.set(b,a);b.bind(c.Tl,this.Nka,this,m);b.bind(c.ca,this.Mka,this,m);b.bind(c.zb,this.Oka,this,m);b.bind(c.Wb,this.Pka,this,m);b.bind(c.rn,this.Qka,this,B)}};b.prototype.jga=function(a){var b=this.mi.get(a);if(b){b.unbind(c.rn,this.Qka,this,B);b.unbind(c.Tl,this.Nka,this,m);b.unbind(c.ca,this.Mka,this,m);b.unbind(c.zb,this.Oka,this,m);b.unbind(c.Wb,this.Pka,this,m);b.dispose();this.mi["delete"](a);this.hL["delete"](b)}};b.prototype.wBa=function(){this.cp.push(new e(this.q,
this.ra))};b.prototype.aCa=function(){this.cp.length!=0&&this.cp.pop().dispose()};b.prototype.vBa=function(){var a=new i(this.V,this.q,this.ra);this.IA.push(a);return a};b.prototype.WLa=function(){this.pF.clear()};b.prototype.aS=function(a){var b;b=this.IA.length>this.pF.size?this.IA[this.pF.size]:this.vBa();this.pF.set(a,b);return b};b.prototype.i2=function(a){return this.pF.get(a)};b.prototype.cCa=function(){for(;this.IA.length>this.pF.size;)this.$Ba()};b.prototype.$Ba=function(){this.IA.length!=
0&&this.IA.pop().dispose()};b.prototype.RAa=function(){if(!this.Rg)this.Rg=new f(this.q,this.ra)};b.prototype.YBa=function(){if(this.Rg){this.Rg.dispose();this.Rg=q}};var k=["points"],n=["mode"],r=["type"],p=["displayAreaLabel","displayDistanceLabel","displayPartialDistanceLabel"],t=["area"];return b});
define("nv",["require","jU","nU","fQ","fm"],function(a){function b(a,b,c){this.V=a;this.ra=b;this.Vh=c;this.N=B;this.nx=this.nx.bind(this);d.pa(this.V,i,this.nx,m)}var d=a("jU"),c=a("nU"),g=a("fQ"),f=a("fm");b.prototype.nx=function(){var a=!!this.V.get("maxNearestObjectsVisible");this.N!=a&&(this.N&&this.Vo(),(this.N=a)&&this.dA())};b.prototype.dA=function(){var a=this.Vh.C(f.oq);a.La=new g;a.La.bind(c.qa,this.kK,this,m);this.ra.R.pb()};b.prototype.Vo=function(){this.Vh.getComponent(f.oq).La.unbind(c.qa,
this.kK,this,m);this.Vh.ga(f.oq);this.V.get("objects").forEach(function(a){a.get("hideBasedOnDistance")&&a.Baa(B)})};b.prototype.kK=function(a){var b=0,c=this.V.get("maxNearestObjectsVisible");a.data.beacons.forEach(function(a){if(a=this.dDa(a))a.get("hideBasedOnDistance")?(a.Baa(b>=c),b++):a.Baa(B)}.bind(this))};b.prototype.dDa=function(a){a=(a=a.entity.getComponent(f.VO))&&a.object;if(!a.get||a.get("hideBasedOnDistance")===l)a=q;return a};b.prototype.dispose=function(){d.na(this.V,i,this.nx,m);
this.N&&(this.N=B,this.Vo())};var i=["maxNearestObjectsVisible"];return b});
define("iK",["require","nU","eQ"],function(a){function b(a,b){this.VJ=a.VJ;this.V=b;this.Vf=[];this.VJ.bind(d.u("spritesEnabled"),this.ila,this,m);this.V.bind(d.u("objects"),this.$A,this,m);this.X()}var d=a("nU"),c=a("eQ");b.prototype.dispose=function(){this.VJ.unbind(d.u("spritesEnabled"),this.ila,this,m);this.V.unbind(d.u("objects"),this.$A,this,m);this.Vf.forEach(function(a){a.Aaa(B)});this.Vf=q};b.prototype.ila=function(){this.X()};b.prototype.$A=function(){this.X()};b.prototype.X=function(){var a=
[];this.VJ.get("spritesEnabled")===B&&a.push("SpriteModel3DObject");var b=this.V.get("objects");this.Vf.forEach(function(a){-1==b.indexOf(a)&&a.Aaa(B)});this.Vf=b;this.Vf.forEach(function(b){var d=a.some(function(a){return c.xa(a,b)});b.Aaa(d)})};return b});define("gQ",["require","jf"],function(a){return a("jf")});
define("hg","require,jU,nU,gQ,t,fm".split(","),function(a){function b(a,b,e,i){this.q=a;this.V=b;this.ra=e;this.h=i;this.K=this.h.K;this.jp=this.jp.bind(this);this.iu=this.iu.bind(this);this.Cm=this.Cm.bind(this);this.df=this.df.bind(this);this.d4=this.ra.getComponent(f.yg).eH;this.d4.bind(c.U,this.ju,this,B);this.e4=this.Via=B;this.Hr=new g(this.K);this.Hr.hb(0);this.Hr.update();this.k=q;d.pa(this.q,["enabled"],this.jp,m)}var d=a("jU"),c=a("nU"),g=a("gQ");a("t");var f=a("fm");b.prototype.jp=function(){this.q.get("enabled")?
this.dA():this.Vo()};b.prototype.dA=function(){if(!this.k){this.k=this.ra.R.Ld("Reticle");var a=this.k.C(f.Hb);a.Qb=this.ra;a.id=this.q.get("parentId");this.k.C(f.Plane).renderOrder=2;this.k.C(f.Yi).source=this.Hr.mg();this.k.C(f.Py);a=this.k.C(f.VO);a.BTa=this.q;a.object=this.q;d.pa(this.V,j,this.iu,m);d.pa(this.q,i,this.Cm,m);d.pa(this.q,e,this.df,m)}};b.prototype.Vo=function(){if(this.k){this.ra.R.bg(this.k);this.k=q;d.na(this.V,j,this.iu,m);d.na(this.q,i,this.Cm);d.na(this.q,e,this.df)}};b.prototype.iu=
function(){var a=this.k.G(f.Eo,m);a.sg=a.Lg=2;a.scale=this.V.get("surfaceReticleRadius");a.QN=this.V.get("surfaceReticleMaxRadius");a.SN=this.V.get("surfaceReticleMinRadius");this.mpa()};b.prototype.Cm=function(){var a=this.k.G(f.Js,m);a.x=this.q.get("x");a.y=this.q.get("y");a.z=this.q.get("z");a.distance=this.q.get("distance");a.IN=this.q.get("horizontal")};b.prototype.df=function(){var a=this.k.G(f.Ud,m);a.dn=this.q.get("useHandCursor");a.HO=this.q.get("transparentAreaActive");a.La=this.q;a=this.k.G(f.Yi);
a.opacity=this.q.get("opacity");a.hidden=this.q.get("hidden");a.depthTest=this.q.get("depthTest")};b.prototype.ju=function(){this.Via=m;this.mpa()};b.prototype.mpa=function(){var a=this.Via&&this.V.get("opacity")>0.5;if(this.e4!=a)(this.e4=a)&&this.k&&this.k.G(f.Js)};b.prototype.dispose=function(){this.Vo();d.na(this.q,["enabled"],this.jp,m);this.d4.unbind(c.U,this.ju,this,B);this.d4=q};var i=["distance","horizontal","x","y","z"],e=["depthTest","hidden","opacity","transparentAreaActive","useHandCursor"],
j=["opacity","surfaceReticleRadius","surfaceReticleMaxRadius","surfaceReticleMinRadius","surfaceSelectionEnabled"];return b});
define("ia","require,jU,nU,fQ,gQ,t,fm".split(","),function(a){function b(a,b,d){this.V=a;this.ra=b;this.h=d;this.K=this.h.K;this.iu=this.iu.bind(this);this.Sd=l;this.V.bind(c.u("surfaceSelectionEnabled"),this.r1,this,m);this.r1()}var d=a("jU"),c=a("nU"),g=a("fQ"),f=a("gQ"),i=a("t"),e=a("fm");b.prototype.r1=function(){var a=this.V.get("surfaceSelectionEnabled")&&!i.ob();!!this.k!=a&&(a?this.dA():this.Vo())};b.prototype.dA=function(){if(!this.k){this.k=this.ra.R.Ld("PointerReticle");this.k.C(e.Plane).renderOrder=
2;this.k.C(e.Rj).Qb=this.ra;this.k.C(e.Qs);this.k.C(e.Hb).Qb=this.ra;var a=this.k.C(e.oq);a.La=new g;a.La.bind(c.qa,this.kK,this,m);d.pa(this.V,j,this.iu,m);this.Hr=new f(this.K);this.Hr.hb(0);this.Hr.update();a=this.k.C(e.Yi);a.source=this.Hr.mg();a.depthTest=B;a=this.ra.G(e.Ud);a.La.bind(c.ca,this.yK,this,m);a.La.bind(c.ad,this.Wf,this,m);a.La.bind(c.rb,this.Dm,this,m);this.Wd=q;this.K6(B)}};b.prototype.Vo=function(){if(this.k){if(this.Wd){this.Wd.trigger(c.rb);this.Wd=q}var a=this.ra.G(e.Ud);a.La.unbind(c.ca,
this.yK,this,m);a.La.unbind(c.ad,this.Wf,this,m);a.La.unbind(c.rb,this.Dm,this,m);this.k.getComponent(e.oq).La.unbind(c.qa,this.kK,this,m);this.ra.R.bg(this.k);this.Hr=this.k=q;d.na(this.V,j,this.iu)}};b.prototype.iu=function(){var a=this.k.G(e.Eo,m);a.sg=a.Lg=2;a.scale=this.V.get("surfaceReticleRadius");a.QN=this.V.get("surfaceReticleMaxRadius");a.SN=this.V.get("surfaceReticleMinRadius")};b.prototype.kK=function(a){var a=this.SDa(a),b=this.eDa(a);b==0&&(a=q);this.$Ia(a);this.pJa(b)};b.prototype.yK=
function(){this.Wd&&this.Wd.trigger(c.ca)};b.prototype.Wf=function(){this.K6(m)};b.prototype.Dm=function(){this.K6(B)};b.prototype.K6=function(a){if(this.Sd!==a){this.Sd=a;this.k.G(e.Yi).opacity=this.Sd?1:0}};b.prototype.$Ia=function(a){a=this.aha(a);if(this.Wd!=a){this.Wd&&this.Wd.trigger(c.rb);(this.Wd=a)&&this.Wd.trigger(c.bc)}};b.prototype.SDa=function(a){a=a.data.beacons;if(!a)return q;for(var b=0;b<a.length;b++)if(this.aha(a[b]))return a[b];return q};b.prototype.eDa=function(a){if(!a)return 0;
var b=this.k.getComponent(e.va);return!b?0:Math.max(0,1-a.distance/(this.V.get("surfaceSelectionCoef")*b.scale*b.sg))};b.prototype.aha=function(a){return(a=(a=a&&a.entity)&&a.getComponent(e.VO))&&a.BTa||q};b.prototype.pJa=function(a){this.Hr.hb(a);if(this.Hr.update())this.k.G(e.Yi).GX=(new Date).getTime()};b.prototype.dispose=function(){this.Vo();this.V.unbind(c.u("surfaceSelectionEnabled"),this.r1,this,m)};var j=["surfaceReticleRadius","surfaceReticleMaxRadius","surfaceReticleMinRadius"];return b});
define("fv",["require","jU"],function(a){function b(a){this.V=a;this.Vf=this.oa=q;this.nx=this.nx.bind(this);this.zS=this.zS.bind(this);d.pa(this.V,c,this.nx,m)}var d=a("jU");b.prototype.dispose=function(){this.KL([])};b.prototype.nx=function(){this.F6(this.V.get("camera"));this.KL([].concat(this.V.get("objects"),this.V.get("postprocessing")))};b.prototype.F6=function(a){this.oa!=a&&(this.oa&&d.na(this.oa,g,this.zS),(this.oa=a)&&d.pa(this.oa,g,this.zS,m))};b.prototype.zS=function(){this.opa()};b.prototype.KL=
function(a){this.Vf!=a&&(a||(a=[]),this.Vf&&this.Vf.forEach(function(b){-1==a.indexOf(b)&&(b.yO&&b.yO(B),b.tO&&b.tO(B))}.bind(this)),this.Vf=a,this.opa())};b.prototype.opa=function(){if(this.Vf&&this.oa){var a=this.oa.get("userInteracting"),b=this.oa.get("moving");this.Vf.forEach(function(c){c.yO&&c.yO(a);c.tO&&c.tO(b)}.bind(this))}};var c=["camera","objects","postprocessing"],g=["userInteracting","moving"];return b});
define("iZ","require,lh,nU,eQ,om,fm,cf,mX,mi,O,ch,eA,ha,ot,lV,nv,iK,hg,ia,fv".split(","),function(a){function b(a,b,e){this.h=a;this.be=b;this.V=e;this.K=this.h.K;this.wj=new f;this.wj.bind(c.U,this.LK,this,m);this.re=new f(this.V);this.Sc=this.be.Ld("Scene");a=this.Sc.C(i.Scene);a.G9=this.re.cN(this.wj.ZB(0.1));this.ra=this.be.Ld("Model");b=this.ra.C(i.yg);b.La=this.V;b.iua=this.wj.ZB();b.eH=this.re.ZB();b.yta=this.V.get("model");b.Fb=this.V;b=this.ra.C(i.Ud);b.La=this.V;b.Zu=m;b.qv=m;this.ra.C(i.Hb).Qb=
this.Sc;a.co=this.Vh=this.be.Ld("PerspectiveCamera");this.Vh.C(i.Hb).Qb=this.Sc;this.Wea=new CameraAdapter(this.h,this.V,this.Vh);a=this.Vh.C(i.Fo);a.Xp=this.h.getParent();a.Fb=new d;a.Fb.bind(c.u("picker"),this.QGa,this,m);j.forEach(function(a){this.V.bind(c.u(a),this.H4,this,m)}.bind(this));this.V.bind(c.u("variant"),this.T4,this,m);this.gK=new ArrayAdapter;this.gK.filter=function(a){return g.xa("SurfaceReticleModel3DObject",a)||g.xa("InnerModel3DObject",a)||g.xa("MeasureModel3DObject",a)?m:B};
this.gK.ag=function(a){return g.xa("SurfaceReticleModel3DObject",a)?new SurfaceReticleAdapter(a,this.V,this.ra,this.h):g.xa("InnerModel3DObject",a)?new InnerObjectAdapter(a,this.V,this.ra,this.h):g.xa("MeasureModel3DObject",a)?new MeasureAdapter(a,this.V,this.ra,this.h):q}.bind(this);this.gK.Ym=function(a,b){b.dispose()}.bind(this);this.gK.kva(this.V,"objects");this.IT=new ArrayAdapter;this.IT.filter=function(a){return g.xa("AmbientOcclusionModel3DPostprocessing",a)||g.xa("AntialiasModel3DPostprocessing",
a)||g.xa("MotionBlurModel3DPostprocessing",a)||g.xa("VignetteModel3DPostprocessing",a)};this.IT.ag=function(a){return g.xa("AmbientOcclusionModel3DPostprocessing",a)?new AmbientOcclusionPostprocessingAdapter(a,this.Sc):g.xa("AntialiasModel3DPostprocessing",a)?new AntialiasPostprocessingAdapter(a,this.Sc):g.xa("MotionBlurModel3DPostprocessing",a)?new MotionBlurPostprocessingAdapter(a,this.Sc):g.xa("VignetteModel3DPostprocessing",a)?new VignettePostprocessingAdapter(a,this.Sc):q}.bind(this);this.IT.Ym=
function(a,b){b.dispose()}.bind(this);this.IT.kva(this.V,"postprocessing");this.be.fqa(this.Sc);this.aGa=new NearestObjectsVisibleAdapter(this.V,this.ra,this.Vh);this.cNa=new UserInteractionObjectsVisibleAdapter(this.V);this.vKa=new SpritesEnabledAdapter(this.h,this.V);this.bLa=new SurfaceSelectorPointerAdapter(this.V,this.ra,this.h);this.H4();this.T4()}var d=a("lh"),c=a("nU"),g=a("eQ"),f=a("om"),i=a("fm"),e=a("cf");ArrayAdapter=a("mX");InnerObjectAdapter=a("mi");AmbientOcclusionPostprocessingAdapter=
a("O");AntialiasPostprocessingAdapter=a("ch");CameraAdapter=a("eA");MotionBlurPostprocessingAdapter=a("ha");VignettePostprocessingAdapter=a("ot");MeasureAdapter=a("lV");NearestObjectsVisibleAdapter=a("nv");SpritesEnabledAdapter=a("iK");SurfaceReticleAdapter=a("hg");SurfaceSelectorPointerAdapter=a("ia");UserInteractionObjectsVisibleAdapter=a("fv");b.prototype.HC=function(a){this.Sc.G(i.Scene).locked=a};b.prototype.xd=function(a){this.Sc.G(i.Scene).enabled=a;this.Vh.G(i.Fo).enabled=a;this.Wea.xd(a)};
b.prototype.dispose=function(){j.forEach(function(a){this.V.unbind(c.u(a),this.H4,this,m)}.bind(this));this.V.unbind(c.u("camera"),this.yS,this,m);this.V.unbind(c.u("variant"),this.T4,this,m);this.V.set("picker",l);this.Wea.dispose();this.gK.dispose();this.bLa.dispose();this.aGa.dispose();this.vKa.dispose();this.cNa.dispose();this.re.dispose();this.wj.unbind(c.U,this.LK,this,m);this.wj.dispose();this.be.rRa(this.Sc);this.be.bg(this.Sc);this.be.bg(this.ra);this.be.bg(this.Vh)};b.prototype.jPa=function(){return this.ra?
e.TG(this.ra):l};b.prototype.QGa=function(a){var b=a.source.get("picker"),c;if(b){c={};c.$N=function(a,c){return b.$N([this.ra],a,c)}.bind(this)}this.V.set("picker",c)};b.prototype.T4=function(){var a=this.V.get("variant");a?this.ra.G(i.Os,m).name=a:this.ra.ga(i.Os)};b.prototype.H4=function(){var a=this.Sc.G(i.Scene);a.opacity=this.V.get("opacity");a.bra=this.V.get("environmentURL");a.k9=this.V.get("backgroundImageURL");a.qqa=this.V.get("backgroundPanoramaURL");a.backgroundColor=this.V.get("backgroundColor");
a.outputEncoding=this.V.get("encoding");a=this.V.get("environmentIntensity");a!=1?this.Sc.G(i.wq,m).envMapIntensity=a:this.Sc.ga(i.wq)};b.prototype.LK=function(){this.V.trigger(c.PH)};var j=["environmentURL","backgroundImageURL","backgroundPanoramaURL","backgroundColor","opacity","encoding","environmentIntensity"];return b});
define("kA","require,kG,bc,c,nq,fR,iZ".split(","),function(a){var b=a("kG"),d=a("bc"),c=a("c"),g=a("nq"),f=a("fR"),i=a("iZ"),a=b.extend(g,function(a,b,f){g.call(this);this.Zb=a;this.K=b;this.VJ=f;this.je("Renderer");this.set("toolTipDisabled",m);this.set("cursor",d.Mv);this.set("layout",c.MO);this.be=q;this.VE=[];this.UE=new Map});a.prototype.mb=function(){g.prototype.mb.call(this);if(this.be==q){this.be=new f(this.Zb,m);this.be.$({left:0,top:0,right:0,bottom:0,cursor:d.Mv,toolTipDisabled:m});this.be.XSa();
this.Oa(this.be);this.VE.forEach(this.Cna.bind(this))}};a.prototype.KPa=function(a){return this.VE.indexOf(a)>=0};a.prototype.eqa=function(a){if(!(this.VE.indexOf(a)>=0)){this.VE.push(a);this.be&&this.Cna(a)}};a.prototype.daa=function(a){var b=this.VE.indexOf(a);if(!(b<0)){this.VE.splice(b,1);this.be&&this.noa(a)}};a.prototype.Haa=function(a,b){var c=this.UE.get(a);c&&c.HC(b)};a.prototype.bva=function(a,b){var c=this.UE.get(a);c&&c.xd(b)};a.prototype.FN=function(a){return(a=this.UE.get(a))?a.jPa():
l};a.prototype.y9=function(){return this.be&&this.be.y9()};a.prototype.Cna=function(a){this.noa(a);this.UE.set(a,new i(this,this.be,a))};a.prototype.noa=function(a){var b=this.UE.get(a);if(b){this.UE["delete"](a);b.dispose()}};return a});
define("iL","require,kG,nU,eQ,me,cS,dT,dM,kA,dV".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("me"),f=a("cS"),i=a("dT"),e=a("dM"),j=a("kA"),o=a("dV"),a=b.extend(i,function(){i.call(this,"model");this.Wo=this.nS=this.Mh=B;this.B=this.h=q;this.cb=this.ud=0;this.Pd=b.hq(this.Ig,this);this.set("spritesEnabled",m);this.I_=new g(this,"buttonToggleSprites",o.Uj);this.I_.bind(d.yi,function(){this.set("spritesEnabled",m)},this);this.I_.bind(d.Sj,function(){this.set("spritesEnabled",B)},this);
this.I_.set("pressed",this.get("spritesEnabled"))});c.F("Model3DPlayer",a).H("Object").Q({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]]",buttonRestart:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonStop:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",buttonToggleSprites:"or[array[or[BaseButton, IconButton]], or[BaseButton, IconButton]]",
displayPlaybackBar:"bool",currentTime:"number",spritesEnabled:"bool",state:"enum[stopped, playing, paused]",model:"Model",viewerArea:"ViewerArea"}).Mg({play:function(){this.bB()},pause:function(){this.aB()},stop:function(){this.vx()},restart:function(){this.sx()},getModelPixelScale:function(){return this.PDa()},captureToDataURL:function(){return this.h&&this.h.y9()}}).fc([f.xf,f.xi,d.Fc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "model":this.nS=m;this.set("requesterPlayer",
q);this.Pd();break;case "viewerArea":this.Mh=m;this.Pd();break;case "displayPlaybackBar":this.Wo=m;this.Pd()}i.prototype.set.call(this,a,b)}};a.prototype.get=function(a,b){switch(a){case "currentTime":return this.B&&this.B.getTime()||0}return i.prototype.get.call(this,a,b)};a.prototype.Ig=function(){if(this.Mh){this.Mh=B;this.yt();this.get("viewerArea")&&this.ut();this.QL(this.get("viewerArea"));this.nS=m}var a=B;if(this.h&&(this.nS||this.NU)){var b=this.get("model");if(b&&!this.h.wb()){this.Pd();
return}this.nS=B;this.cb=this.ud=0;a=m;if(b){this.nH(this.get("requesterPlayer")?[this.get("requesterPlayer"),this]:[this]);this.B.ySa(b)}else this.B.rv()}if(this.Wo){this.Wo=B;a=m}a&&this.Vu()};a.prototype.YF=function(){this.set("model",q)};a.prototype.ut=function(){var a=this.get("application"),b=this.get("viewerArea");this.h=new j(a,b,this);this.h.$({left:0,top:0,bottom:0,right:0});b.Oa(this.h);this.B=new e(b,this.h);this.B.bind(e.Xy,this.dl,this);this.B.bind(e.Wy,this.mx,this);this.B.bind(e.EY,
this.zka,this,m);this.B.bind(e.rc,this.ye,this);this.Ux(m)};a.prototype.yt=function(){if(this.h){this.B.unbind(e.Xy,this.dl,this);this.B.unbind(e.Wy,this.mx,this);this.B.unbind(e.EY,this.zka,this,m);this.B.unbind(e.rc,this.ye,this);this.B.clear();this.h.getParent().removeChild(this.h);this.h=q;this.Ux(B)}};a.prototype.ye=function(a){this.mc(a.data.state)};a.prototype.dl=function(a){var b=this.get("viewerArea");this.Gd=b&&b.Gd;this.QJ(a.data.model);this.Vu()};a.prototype.mx=function(a){this.Gd=q;this.PJ(a.data.model)};
a.prototype.zka=function(a){this.ud=a.data.time;this.cb=a.data.duration;this.Vu()};a.prototype.fL=function(a){this.tB(a.data.position)};a.prototype.tj=function(){this.B&&this.B.play()};a.prototype.Om=function(){this.B&&this.B.stop()};a.prototype.Nn=function(){this.B&&this.B.pause()};a.prototype.tB=function(a){this.B&&this.B.setTime(a)};a.prototype.PDa=function(){return this.B&&this.B.FN()};a.prototype.Vu=function(){if(this.h){var a=this.h.getParent();this.cb>0&&this.get("displayPlaybackBar")?a.$({playbackBarPosition:this.ud,
playbackBarDuration:this.cb,playbackBarVisible:m}):a.set("playbackBarVisible",B)}};return a});
define("ok",["require","kG","eQ","cS","hN"],function(a){var b=a("kG"),d=a("eQ"),c=a("cS"),g=a("hN"),a=b.extend(g,function(){g.call(this)});d.F("Model3DPlayListItem",a).H("PlayListItem").Q({media:"Model3D",player:"Model3DPlayer"});a.prototype.start=function(){g.prototype.start.call(this);var a=this.get("player");a&&(a.bind(c.xf,this.dl,this),a.get("model")==this.get("media")&&this.get("media").get("isLoaded")?this.dl():a.set("model",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");
a&&(a.unbind(c.xf,this.dl,this),a.get("model")==this.get("media")&&a.set("model",q));g.prototype.stop.call(this)};a.prototype.dl=function(a){if(!a||a.data.media==this.get("media"))this.get("player").unbind(c.xf,this.dl,this),this.get("player").bind(c.xi,this.mx,this),this.WB()};a.prototype.mx=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(c.xi,this.mx,this),this.stop(),this.end())};return a});
define("jm",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("positionX",0);this.set("positionY",0);this.set("positionZ",0);this.set("rotationX",0);this.set("rotationY",0);this.set("rotationZ",0);this.set("scale",1);this.set("translationX",0);this.set("translationY",0);this.set("translationZ",0);this.set("levels",[])});a.F("Model3DResource",b).H("Model3DResourceLevel").Q({levels:"array[Model3DResourceLevel]",positionX:"number",
positionY:"number",positionZ:"number",rotationX:"number",rotationY:"number",rotationZ:"number",scale:"number",translationX:"number",translationY:"number",translationZ:"number",url:"string"}).vi(["url"]);b.prototype.get=function(a,b){switch(a){case "levels":b=[this];break;case "url":for(var f=d.prototype.get.call(this,a),i=this.get("levels"),e=0;i&&e<i.length&&f===l;e++){var j=i[e];j!=this&&(f=j.get(a))}return f!==l?f:b}return d.prototype.get.call(this,a,b)};return b});
define("hZ",["require","kG","lh","nU","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("distance",2)});a.F("Menu",b).H("MenuItem").Q({backgroundColor:"color",rollOverBackgroundColor:"color",selectedBackgroundColor:"color",opacity:"number",rollOverOpacity:"number",fontFamily:"string",fontColor:"color",rollOverFontColor:"color",selectedFontColor:"color",distance:"number"}).fc([c.bc,c.rb]).hh([c.ca]);return b});
define("n",["require","kG","lh","nU","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("MenuItem",b).H("Object").Q({label:"string",children:"array[MenuItem]"}).fc([c.bc,c.rb]).hh([c.ca]);return b});
define("dB",["require","kG","eQ","eT"],function(a){var b=a("kG"),d=a("eQ"),c=a("eT"),a=b.extend(c,function(){c.call(this);this.set("samples",20);this.set("intensity",1)});d.F("MotionBlurModel3DPostprocessing",a).H("Model3DPostprocessing").Q({samples:"number",intensity:"number"});return a});
define("jT",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("MovementPhotoCamera",a).H("PhotoCamera").Q({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("hx",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("Object",a).Q({id:"identifier",data:"*"});return a});define("cy",[],function(){var a={Sy:"drag_acceleration",Fs:"drag_rotation"};a.hca=a.Sy;a.$ca=a.Fs;return a});define("oh",["kG","cs"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.hH=this.CH=this.lv=this.Cv=0})});define("mK",["kG","cs"],function(a,b){return a.extend(b,function(a){b.call(this,a);this.l$=this.SPa=0})});
define("fb","require,kG,dY,nU,cs,fQ,cy,oh,mK".split(","),function(a){function b(a,b){return a*b}function d(a){var b=a>0?1:-1;return b*(Math.pow(10,b*a)-1)/9}function c(a,b){return Math.min(Math.max(a/b,-1),1)}var g=a("kG");a("dY");var f=a("nU"),i=a("cs"),e=a("fQ"),j=a("cy"),o=a("oh"),k=a("mK"),n=g.extend(e,function(){e.call(this);this.Sia=this.Tia=1800;this.gE=7;this.YFa=this.wLa=0;this.sJ=B;this.ol=l;this.OA=j.hca;this.Aoa=j.$ca;this.gE=0;this.hU=l;this.Cj=B;this.ID=q;this.rA=3;this.ya=90;this.f1=
this.CB=this.pc=1;this.Gd=this.Wa=q;this.eL=B});n.prototype.sv=function(a){this.Tia=a.get("manualRotationSpeed");this.Sia=a.get("manualRotationSpeed");this.rA=a.get("manualZoomSpeed");this.f1=a.get("draggingFactor")};n.prototype.By=function(a){this.OA=a;this.v8()};n.prototype.KC=function(a){this.Aoa=a;this.v8()};n.prototype.GC=function(a){this.ya=a;this.CB=this.ya/90};n.prototype.qs=function(a){this.Al();if(a){this.Wa=a;if(this.Gd=a.ZOa&&a.Gd){this.Gd.bind(f.zb,this.Lla,this,m);this.Gd.bind(f.Wb,
this.Mla,this,m)}this.Wa.bind(f.zb,this.Ed,this,m);this.Wa.bind(f.ad,this.oj,this,m);this.Wa.bind(f.Wb,this.pj,this,m);this.Wa.bind(f.vq,this.PA,this,m);this.Wa.wb().get("settings").get(TDV.PlayerSettings.rxa)!==B&&this.Wa.bind(f.cD,this.mA,this,m);this.Wa.bind(f.dD,this.Vga,this,m);this.Wa.bind(f.bD,this.Sga,this,m);this.v8()}};n.prototype.Al=function(){if(this.Wa!=q){if(this.Gd){this.Gd.unbind(f.zb,this.Lla,this);this.Gd.unbind(f.Wb,this.Mla,this);this.Gd=q}this.Wa.unbind(f.zb,this.Ed,this);this.Wa.unbind(f.ad,
this.oj,this);this.Wa.unbind(f.Wb,this.pj,this);this.Wa.unbind(f.vq,this.PA,this);this.Wa.unbind(f.cD,this.mA,this);this.Wa.unbind(f.dD,this.Vga,this);this.Wa.unbind(f.bD,this.Sga,this);this.Wa=q;this.QQ()}};n.prototype.v8=function(){if(this.Wa)if(this.Wa.Fn){this.hU=this.Aoa;this.gE=this.wLa}else{this.hU=this.OA;this.gE=this.YFa}};n.prototype.Lla=function(){this.eL=m};n.prototype.Mla=function(){this.eL=B};n.prototype.Ed=function(a){if(!this.eL){this.NKa(a);this.i7()}};n.prototype.oj=function(a){this.eL||
this.kG(a)};n.prototype.pj=function(){if(!this.eL){this.u1();this.QQ()}};n.prototype.PA=function(a){this.F8(a);this.i7(500)};n.prototype.Vga=function(){this.i7()};n.prototype.mA=function(a){this.G8(a)};n.prototype.Sga=function(){this.QQ()};n.prototype.NKa=function(a){this.sJ=m;this.ol=a;this.kG(a)};n.prototype.kG=function(a){if(this.sJ)switch(this.hU){case j.Sy:this.SMa(a);break;case j.Fs:this.RMa(a)}};n.prototype.SMa=function(a){this.wpa(+b(d(c(Math.abs(a.x-this.ol.x)<3?0:a.x-this.ol.x,this.Wa.Ua())),
this.Tia*this.CB),-b(d(c(Math.abs(a.y-this.ol.y)<3?0:a.y-this.ol.y,this.Wa.Cb())),this.Sia*this.CB))};n.prototype.RMa=function(a){this.u8(-b(c(a.x-this.ol.x,this.Wa.Ua()),this.ya*this.f1),+b(c(a.y-this.ol.y,this.Wa.Ua()),this.ya*this.f1));this.ol=a};n.prototype.u1=function(){if(this.sJ){this.sJ=B;switch(this.hU){case j.Sy:this.wpa(0,0)}}};n.prototype.wpa=function(a,b){var c=new o(n.Gs);c.Cv=a;c.lv=b;this.trigger(c)};n.prototype.u8=function(a,b){var c=new o(n.Gs);c.CH=a;c.hH=b;this.trigger(c)};n.prototype.G8=
function(a){if(this.pc!=a.scale){this.u1();var b=this.pc;this.pc=a.scale;a=new k(n.Ao);a.l$=this.ya*b/this.pc-this.ya;this.trigger(a)}};n.prototype.F8=function(a){if(a.delta!=0){this.u1();var b=new k(n.Ao);b.l$=this.ya*-a.delta*this.rA/100;this.trigger(b)}};n.prototype.i7=function(a){var b=this.ID!=q;this.boa();if(a&&(b||!this.Cj)){var c=this;this.ID=setTimeout(function(){c.ID=q;c.QQ()},a)}if(!this.Cj){this.Cj=m;this.trigger(new i(n.wg))}};n.prototype.QQ=function(){this.boa();if(this.Cj){this.Cj=
B;this.trigger(new i(n.vg))}};n.prototype.boa=function(){if(this.ID!=q){clearTimeout(this.ID);this.ID=q}};n.Gs="rotation change";n.Ao="zoom change";n.wg="user interaction start";n.vg="user interaction end";return n});
define("dq",["require","t"],function(a){function b(){this.ZF=c.ob()?0.066:0.1;this.$Fa=0.5;this.AKa=c.ob()?0.066:0.1;this.uNa=0.1;this.LU=this.RU=B;this.reset()}function d(a,b,c){a=(b-a)*(1-c);0.01>Math.abs(a)&&(a=0);return b-a}var c=a("t");b.prototype.reset=function(){this.Ufa=this.B0=this.ZD=this.yw=this.EI=this.F0=this.E0=this.J0=this.CE=this.rA=this.cU=this.eU=this.wp=this.dL=this.Sr=this.$M=0};b.prototype.Maa=function(a,b,c,d,j,o,k,n,r){return this.$M!=a||(this.dL=b)||this.eU!=c||0!=d||0!=j||
this.LU!=k||this.lja!=n||this.RU!=r?(this.$M=a,this.dL=b,this.eU=c,this.Sr+=d,this.wp+=j,this.cU+=o,this.LU=k,this.lja=n,this.RU=r,m):B};b.prototype.lTa=function(a,b){return this.rA!=a||0!=b?(this.rA=a,this.CE+=b,m):B};b.prototype.Ge=function(){return 0!=this.J0||0!=this.E0||0!=this.F0||0!=this.EI||0!=this.$M||0!=this.dL||0!=this.eU||0!=this.rA||0!=this.Sr||0!=this.wp||0!=this.CE};b.prototype.xb=function(a){var a=1E3/a,b=this.J0/a,c=this.$M/a+this.Sr;this.Sr=0;var e=this.E0/a,j=this.dL/a+this.wp;
this.wp=0;var o=this.F0/a,k=this.eU/a+this.cU;this.cU=0;var n=this.rA+this.CE*a;this.CE=0;var r=0==c&&0==j&&0==k,p=0==b&&0==e&&0==o;this.LU&&p&&!r||this.RU&&r&&!p||this.lja&&!r&&!p?(r=r?this.ZF:p?this.AKa:this.$Fa,this.yw=d(b,c,r),this.ZD=d(e,j,r),this.B0=d(o,k,r)):(this.yw=c,this.ZD=j,this.B0=k);b=0==this.EI;c=0==n;this.EI=this.LU&&b&&!c||this.RU&&c&&!b?d(this.EI,n,this.uNa):n;this.J0=this.yw*a;this.E0=this.ZD*a;this.F0=this.B0*a;this.Ufa=this.EI/a};return b});
define("cR","jquery.mod,kG,d,fb,dq,bg,nU".split(","),function(a,b,d,c,g,f,i){b=b.extend(d,function(){d.call(this);this.je("Renderer");this.J=a("<canvas></canvas>");this.J.css({position:"absolute",left:0,top:0});this.Ab().append(this.J);this.Uw=q;this.ua=this.GE=this.EE=this.FE=0;this.ll=B;this.PHa=150;this.kJ=0;this.sm=q;this.bind(i.sc,this.Vb,this,m);this.Ya=new c;this.Ya.aWa(720);this.Ya.lO(0);this.Ya.By("drag_rotation");this.Ya.GC(360);this.Ya.bind(c.Gs,this.bHa,this);this.Sb=new g});b.prototype.eSa=
function(a,b,c){this.Uw=a;this.FE=b;this.EE=c;this.GE=Math.floor(this.Uw.length*this.ua/360);this.n6();this.Ya.qs(this);this.Ca()};b.prototype.XNa=function(){this.Uw=q;this.qk();this.n6();this.Ya.Al()};b.prototype.play=function(){this.ll=m;this.Ca()};b.prototype.bHa=function(a){this.qk();this.Sb.Maa(a.Cv,a.lv,0,a.CH,a.hH,0,B,m);this.Ca()};b.prototype.oK=function(){this.play()};b.prototype.rj=function(a){if(this.Uw)if(this.Sb.Ge()){this.ll=B;this.Sb.xb(a);this.iea(this.Sb.yw);this.Ca()}else if(this.ll){this.iea(this.PHa*
a/1E3);this.Ca()}else this.JE()||this.Jp()};b.prototype.Ml=function(a){for(this.ua=a;this.ua<0;)this.ua=this.ua+360;for(;this.ua>=360;)this.ua=this.ua-360;this.uMa()};b.prototype.uMa=function(){if(this.Uw){var a=Math.floor(this.Uw.length*this.ua/360);if(this.GE!=a){this.GE=a;this.lma()}}};b.prototype.iea=function(a){this.Ml(this.ua+a)};b.prototype.Vb=function(){this.n6()};b.prototype.n6=function(){var a=this.J.get(0);if(this.FE==0||this.EE==0){a.width=0;a.height=0}else{var b=this.Se(),c=this.Re();
if(c*this.FE>b*this.EE){a.width=b;a.height=this.EE*b/this.FE}else{a.height=c;a.width=this.FE*c/this.EE}this.J.css({left:Math.round((b-a.width)*0.5)+"px",top:Math.round((c-a.height)*0.5)+"px"});this.lma()}};b.prototype.lma=function(){if(this.Uw){var a=this.J.get(0),b=this.Uw[this.GE];a.getContext("2d").drawImage(b,0,0,this.FE,this.EE,0,0,a.width,a.height)}};b.prototype.JE=function(){return this.sm?m:B};b.prototype.Jp=function(){this.qk();if(this.kJ>0){var a=this;this.sm=setTimeout(function(){a.sm=
q;a.oK()},this.kJ)}};b.prototype.qk=function(){if(this.sm){clearTimeout(this.sm);this.sm=q}};b.prototype.Ca=function(){f.yb(this.rj,this)};return b});
define("lL","require,jquery.mod,dY,kG,nU,hy,cs,eQ,fI,y,cR,nq,jR".split(","),function(a){a("jquery.mod");var b=a("dY"),d=a("kG"),c=a("nU"),g=a("hy"),f=a("cs"),i=a("eQ"),e=a("fI"),j=a("y"),o=a("cR"),k=a("nq"),n=a("jR"),a=d.extend(k,function(){k.call(this);this.bd=this.vm=this.Ih=this.h=q;this.bind(c.hc,this.gk,this);this.bind(c.nc,this.ck,this)});i.F("Object3D",a).H("UIComponent").Q({frames:"array[ImageResource]",yaw:"number"}).fc([c.U]);a.prototype.mb=function(){k.prototype.mb.call(this);if(!this.h){this.h=
new o;this.h.$({left:0,top:0,right:0,bottom:0});this.Oa(this.h)}if(!this.Ih){this.Ih=new j;this.Ih.$({left:0,bottom:0,right:0,height:20,visible:B});this.Oa(this.Ih)}};a.prototype.gk=function(){this.FJ()};a.prototype.ck=function(){this.Om()};a.prototype.FJ=function(){this.Ih.set("percent",0);this.Ih.set("visible",m);this.h.Ml(this.get("yaw"));var a=this.get("frames",[]);this.vm=[];this.bd=[];for(var b=0;b<a.length;b++){this.vm.push(e.cq(a[b]));var d=new n(g.qn);d.bind(c.U,this.wK,this);d.bind(c.zc,
this.xK,this);this.bd.push(d)}for(b=0;b<a.length;b++)this.bd[b].load(this.vm[b].get("url"))};a.prototype.wK=function(){var a=b(this.bd).filter(function(a){return a.El()});this.Ih.set("percent",100*a.length/this.bd.length);a.length==this.bd.length&&this.cd()};a.prototype.xK=I();a.prototype.cd=function(){this.Ih.set("visible",B);var a=this.vm[0].get("width",this.bd[0].fd()),d=this.vm[0].get("height",this.bd[0].Td());this.h.eSa(b(this.bd).map(function(a){return a.jf()}),a,d);this.trigger(new f(c.U))};
a.prototype.Om=function(){if(this.bd){this.Ih.set("visible",B);this.h.XNa();this.bd=b(this.bd).each(function(a){a.unbind(c.U,this.wK,this);a.unbind(c.zc,this.xK,this);a.cancel()});this.vm=this.bd=q}};return a});
define("ib",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("castShadow",B);this.set("color","#ffffff");this.set("intensity",1);this.set("mode","fixed_to_target");this.set("pitch",0);this.set("yaw",0);this.set("shadowBias",0);this.set("shadowMapSize",4096);this.set("shadowRadius",8);this.set("shadowTolerance",0.5)});a.F("OrbitLight",b).H("Light").Q({castShadow:"bool",color:"color",shadowBias:"number",shadowMapSize:"number",shadowRadius:"number",
shadowTolerance:"number",mode:"enum[fixed_to_camera, fixed_to_target]",intensity:"number",pitch:"number",yaw:"number"});return b});define("gm",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(a,b,f){d.call(this);a!==l&&this.set("yaw",a);b!==l&&this.set("pitch",b);f!==l&&this.set("hfov",f)});a.F("RotationalCameraPosition",b).H("Object").Q({stereographicFactor:"number",yaw:"number",pitch:"number",hfov:"number"});return b});
define("cz",["require","kG","gm","eQ"],function(a){var b=a("kG"),d=a("gm"),a=a("eQ"),b=b.extend(d,function(){d.apply(this,arguments)});a.F("PanoramaCameraPosition",b).H("RotationalCameraPosition");return b});
define("gR","require,kG,lh,eQ,cz,gm".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),g=a("cz"),f=a("gm"),i=b.extend(d,function(){d.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);this.set("automaticZoomFactor",1);this.set("keepInitialPositionOnTranslation",B);this.set("enterPointingToHorizon",B)});c.F("RotationalCamera",
i).H("Object").Q({displayOriginPosition:"RotationalCameraDisplayPosition",displayMovements:"array[TargetRotationalCameraDisplayMovement]",draggingFactor:"number",hoverFactor:"number",keepInitialPositionOnTranslation:"bool",enterPointingToHorizon:"bool",initialPosition:"RotationalCameraPosition",initialSequence:"RotationalCameraSequence",idleSequence:"RotationalCameraSequence",sequences:"array[RotationalCameraSequence]",timeToIdle:"number",manualRotationSpeed:"number",manualZoomSpeed:"number",automaticRotationSpeed:"number",
automaticZoomSpeed:"number"});a=b.extend(i,function(){i.call(this);this.set("initialPosition",new g)});c.F("PanoramaCamera",a).H("RotationalCamera");return a});define("lw",["require","kG","gm","eQ"],function(a){var b=a("kG"),d=a("gm"),a=a("eQ"),b=b.extend(d,function(){d.apply(this,arguments)});a.F("RotationalCameraDisplayPosition",b).H("RotationalCameraPosition").Q({stereographicFactor:"number"});return b});
define("kh",["require","kG","lw","eQ"],function(a){var b=a("kG"),d=a("lw"),a=a("eQ"),b=b.extend(d,function(){d.apply(this,arguments)});a.F("PanoramaCameraDisplayPosition",b).H("RotationalCameraDisplayPosition");return b});define("br",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("PanoramaCameraMovement",b).H("RotationalCameraMovement");return b});
define("eF","require,kG,lh,cs,eQ,nU".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("cs"),g=a("eQ"),f=a("nU"),a=b.extend(d,function(){d.call(this)});a.prototype.play=function(){this.trigger(new c(f.lz))};a.prototype.pause=function(){this.trigger(new c(f.iP))};g.F("RotationalCameraSequence",a).H("Object").Q({movements:"array[RotationalCameraMovement]",mandatory:"bool",movementIndex:"number",repeat:"number",restartMovementOnUserInteraction:"bool",restartMovementDelay:"number"}).Mg({pause:a.prototype.pause,
play:a.prototype.play}).fc([f.Ga,f.Ik]);return a});define("bJ",["require","kG","eQ","eF"],function(a){var b=a("kG"),d=a("eQ"),c=a("eF"),a=b.extend(c,function(){c.call(this)});d.F("PanoramaCameraSequence",a).H("RotationalCameraSequence");return a});define("hY",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("PanoramaMapLocation",a).H("Object").Q({map:"Map",x:"number",y:"number",angle:"number",visible:"bool"});return a});
define("bj",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("forceModelLoading",B)});a.F("PanoramaModel3DLocation",b).H("Object").Q({model:"Model3D",forceModelLoading:"bool",x:"number",y:"number",z:"number",yaw:"number",pitch:"number"});return b});define("oi",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("PanoramaOverlay",b).H("Object");return b});
define("cY",["require","gE","gN","a"],function(a){function b(a){this.h=a;this.Mo=[];this.C2=B;this.Ta=this.ua=0}var d=a("gE"),c=a("gN"),g=a("a");b.prototype.clear=function(){this.stop();this.Mo=this.h=q};b.prototype.end=function(a){var b=[],c=[],g=this.Eha(a);this.Mo.forEach(function(a){0>g.indexOf(a)?b.push(a):c.push(a)});b.forEach(function(a){a.fC().yd(d.L)});this.Mo=c;this.C2=B};b.prototype.start=function(a){this.end(a);this.Mo=this.Eha(a);this.C2=0<this.Mo.filter(function(a){return a instanceof
c}).length;this.Voa();this.pU(d.S,m)};b.prototype.play=function(){this.pU(d.S)};b.prototype.pause=function(){this.pU(d.Gb)};b.prototype.stop=function(){this.pU(d.L)};b.prototype.ld=function(){this.ua=this.h.Uc();this.Ta=this.h.Mc();this.Voa()};b.prototype.Voa=function(){if(this.C2){var a=Math.PI/180,b=this.ua*a,d=this.Ta*a,j=new g(Math.sin(b)*Math.cos(d),Math.sin(d),Math.cos(b)*Math.cos(d));this.Mo.forEach(function(o){if(o instanceof c){var k=o.get("yaw",b)*a,n=o.get("pitch",d)*a,r=o.get("maximumAngle",
360)*a,k=new g(Math.sin(k)*Math.cos(n),Math.sin(n),Math.cos(k)*Math.cos(n)),r=Math.min(1,Math.max(0,1-Math.acos(j.$B(k))/r));o.fC().wv(r)}}.bind(this))}};b.prototype.Eha=function(a){return a?a.get("audios",[]):[]};b.prototype.pU=function(a,b){(b?this.Mo.slice().reverse():this.Mo).forEach(function(b){if(b.get("autoplay",B)){var b=b.fC(),c=b.og();a==d.S&&c!=d.S?b.yd(d.S):a==d.Gb&&c==d.S?b.yd(d.Gb):a==d.L&&c!=d.L&&b.yd(d.L)}})};return b});
define("hU","require,dY,nU,kj,fa,a,mB".split(","),function(a){function b(a){this.h=a;this.ka=B;this.Mm=b.rz;this.J1=this.fia=B;this.ui(q);this.h.bind(c.sc,this.Vb,this,m);this.Vb()}var d=a("dY"),c=a("nU"),g=a("kj"),f=a("fa"),i=a("a"),e=a("mB");b.prototype.ksa=function(){return this.Mm!==b.rz};b.prototype.jsa=function(){return this.Mm&b.wD?m:B};b.prototype.lsa=function(){return this.Mm&b.xD?m:B};b.prototype.msa=function(){return this.Mm&b.vz?m:B};b.prototype.isa=function(){return this.Mm&b.qz?m:B};
b.prototype.uX=R("fia");b.prototype.Uc=function(){this.Tm();return this.ua};b.prototype.Mc=function(){this.Tm();return this.Ta};b.prototype.uf=function(){this.Tm();return this.Rc};b.prototype.dv=function(){this.Tm();return this.ya};b.prototype.ui=function(a){if(a){this.g5=a.get("hfov",360);this.rT=a.get("vfov",180);this.ZK=a.get("pitch",0);this.cB=a.get("partial",B);this.E2=a.psa();this.A2=a.dsa();this.J2=Math.min(a.get("hfovMax",170),170);this.iJ=a.get("hfovMin");this.W3=e.Fra(a)}else{this.g5=360;
this.rT=180;this.ZK=0;this.A2=this.E2=this.cB=B;this.J2=120;this.W3=this.iJ=1}this.ua=0;this.Ta=this.ZK;this.Rc=0;this.ka=m};b.prototype.hb=function(a,b,c,d,e){this.ua=a;this.Ta=b;this.Rc=c;this.ya=d;this.J1=e;this.ka=m};b.prototype.Vb=function(){var a=this.h.Ua(),b=this.h.Cb();if(this.Z!=a||this.ia!=b){this.Z=a;this.ia=b;this.ka=m}};b.prototype.Tm=function(){if(this.ka){this.ka=B;var a=this.ua*k,c=this.Ta*k,e=this.ya*k,s,u,v,w=(this.J1?g.zs(this.J2,this.Z,this.ia):this.J2)*k,x;a:{x=this.iJ;if(d(x).isString())if((x=
x.match(/^\s*([+-]?\d+\.?\d*)\s*%\s*$/))&&x.length>=2){x=parseFloat(x[1]);break a}x=l}x=x!==l?2*Math.atan2(this.Z*this.h.getPixelRatio()*0.5,this.W3*45*x/100):this.iJ?(this.J1?g.zs(this.iJ,this.Z,this.ia):this.iJ)*k:2*Math.atan2(this.Z*this.h.getPixelRatio()*0.5,this.W3*45);x=Math.min(w,x);if(this.fia){s=360;v=180;u=0}else if(this.E2||this.A2){s=this.A2?90:this.ZK+this.rT*0.5;var y=this.E2?-90:this.ZK-this.rT*0.5;v=s-y;u=(s+y)*0.5;s=this.g5}else{s=this.g5;u=this.ZK;v=this.rT}s=s*k;v=v*k;u=u*k;for(y=
this.Z/this.ia;a<-j;)a=a+2*j;for(;a>j;)a=a-2*j;e=Math.max(Math.min(e,w),x);w=b.rz;c>o?w=w|b.vz:c<-o&&(w=w|b.qz);var c=Math.max(Math.min(c,j*0.5),-j*0.5),D=2*Math.atan(Math.tan(e*0.5)/y);if(D>=v){e=2*Math.atan(Math.tan(v*0.5)*y);c=u;w=w|b.vz|b.qz}else{var E=Math.min(v*0.5+u,j*0.5);v=Math.max(-v*0.5+u,-j*0.5);u=!this.cB&&E>=j*0.495?j*0.5:E-D*0.5;v=!this.cB&&v<=-j*0.495?-j*0.5:v+D*0.5;if(c>u){c=u;w=w|b.vz}else if(c<v){c=v;w=w|b.qz}}if(this.cB){v=Math.tan(e*0.5);y=v/y;y=new i(-v,c>0?y:-y,1);v=new f;v.rotateX(-c);
y.apply(v);y=y.Uc()*2;y<0&&(y=y+2*j);v=s*0.5-y*0.5;D=-s*0.5+y*0.5;if(y>s){a=0;e=Math.max(x,e*s/y);w=w|b.wD|b.xD}else if(a>v){a=v;w=w|b.xD}else if(a<D){a=D;w=w|b.wD}}this.ua=a*n;this.Ta=c*n;this.ya=e*n;this.Mm=w}};var j=Math.PI,o=Math.PI*0.5,k=Math.PI/180,n=180/Math.PI;b.rz=0;b.wD=1;b.xD=2;b.vz=4;b.qz=8;return b});
define("bd",["require","kG","nU","fQ","oh"],function(a){function b(a,b){return a*b}function d(a,b){return Math.min(Math.max(a/b,-1),1)}var c=a("kG"),g=a("nU"),f=a("fQ"),i=a("oh"),e=c.extend(f,function(){f.call(this);this.sJ=B;this.ol=l;this.ya=90;this.A1=0.1;this.oa=this.Wa=q});e.prototype.sv=function(a){this.oa&&this.oa.unbind(g.u("hoverFactor"),this.b8,this);if(this.oa=a)this.oa.bind(g.u("hoverFactor"),this.b8,this),this.b8()};e.prototype.b8=function(){this.A1=this.oa.get("hoverFactor")};e.prototype.GC=
R("ya");e.prototype.qs=function(a){this.Al();a&&(this.Wa=a,this.ol=l,this.Wa.bind(g.ad,this.oj,this,m))};e.prototype.Al=function(){this.Wa!=q&&(this.Wa.unbind(g.ad,this.oj,this),this.Wa=q)};e.prototype.oj=function(a){this.kG(a)};e.prototype.kG=function(a){this.ol&&this.u8(+b(d(a.x-this.ol.x,this.Wa.Ua()),this.ya*this.A1),-b(d(a.y-this.ol.y,this.Wa.Ua()),this.ya*this.A1));this.ol=a};e.prototype.u8=function(a,b){if(!(0==a&&0==b)){var c=new i(e.Gs);c.CH=a;c.hH=b;this.trigger(c)}};e.Gs="rotation change";
return e});
define("gK","require,dY,kG,cs,fQ,dq,bd".split(","),function(a){a("dY");var b=a("kG"),d=a("cs"),c=a("fQ"),g=a("dq"),f=a("bd"),i=b.extend(c,function(a,b,d){c.call(this);this.h=a;this.uc=this.h.uc;this.Y=b;this.tc=d;this.Hx=this.AP=this.N=B;this.Sb=new g;this.Pi=q;this.Rc=this.Ta=this.ua=0;this.ya=90;this.Ya=new f;this.Ya.bind(f.Gs,this.AK,this,m)});i.prototype.clear=function(){this.Ya.unbind(f.Gs,this.AK,this,m);this.Ya.Al();this.Ya=q;this.Rz();this.h=this.uc=this.tc=this.Y=this.Sb=q};i.prototype.sv=function(a){this.Sb.reset();
this.Ya.sv(a)};i.prototype.hb=function(a,b,c,d){if(this.ua!=a||this.Ta!=b||this.Rc!=c||this.ya!=d){this.ua=a;this.Ta=b;this.Rc=c;this.ya=d;this.Ya.GC(this.ya);this.D6(B);this.dM()}};i.prototype.Ge=function(){return this.AP&&this.Hx?m:B};i.prototype.xb=function(a){this.gy=B;this.Sb.xb(a);this.Hx=B;var a=this.ua+this.Sb.yw,b=this.Ta+this.Sb.ZD;this.tc.po(this.ya);this.Y.hb(a,b,this.Rc,this.tc.ng(),this.tc.bv());this.ua=this.Y.Uc();this.Ta=this.Y.Mc();this.Rc=this.Y.uf();this.ya=this.Y.dv()};i.prototype.bq=
S("ua");i.prototype.aq=S("Ta");i.prototype.qy=S("Rc");i.prototype.iC=S("ya");i.prototype.xd=function(a){if(this.N!=a)if(this.N=a)this.dM();else{this.Rz();this.D6(B)}};i.prototype.AK=function(a){this.Cc(a.Cv,a.lv,0,0,a.CH,a.hH,0,0,B,B,m,m)};i.prototype.Cc=function(a,b,c,d,f,g,i,t,s,u,v,w){var x=this.Sb.Maa(a,b,c,f,g,i,u,v,w)||x;x&&this.Kh()};i.prototype.Kh=function(){this.Hx=m;this.trigger(new d(i.lh))};i.prototype.dM=function(){this.Rz();this.Pi=setTimeout(this.OK.bind(this),30)};i.prototype.Rz=function(){if(this.Pi){clearTimeout(this.Pi);
this.Pi=q}};i.prototype.OK=function(){this.D6(this.N)};i.prototype.D6=function(a){if(this.AP!=a)if(this.AP=a){this.Sb.reset();this.Ya.qs(this.h.getParent());this.Kh()}else this.Ya.Al()};i.lh="position change request";return i});
define("he","kG,nU,cs,fQ,t,hl".split(","),function(a,b,d,c,g,f){a=a.extend(c,function(){c.call(this);this.Npa=this.N=B;this.Rc=this.Ta=this.ua=0;this.ZT=B;this.wp=this.Sr=0});a.prototype.xd=function(a){if(this.N!=a)if(this.N=a){f.bind(this.SA,this,m);var a=f.es(),b=a.pitch;this.Sr=this.ua-a.yaw;this.wp=this.Ta-b;this.$n()}else f.unbind(this.SA,this,m)};a.prototype.hb=function(a,b,c){if(this.ua!=a){this.Sr=this.rB(this.Sr+(a-this.rB(this.ua,a)),0);this.ua=a}if(this.Ta!=b){this.wp=this.wp+(b-this.Ta);
this.Ta=b}this.Rc=c};a.prototype.bq=S("ua");a.prototype.aq=S("Ta");a.prototype.qy=S("Rc");a.prototype.Ge=function(){return f.NQa()};a.prototype.xb=function(a){var b=f.es(),a=20*a/1E3,c=b.pitch+(this.Npa?this.wp:0),d=b.roll;this.ua=this.Qf(this.ua,this.rB(this.rB(b.yaw,this.ua)+this.Sr,this.ua),a);this.Ta=this.Qf(this.Ta,c,a);this.Rc=this.Qf(this.Rc,d,a)};a.prototype.hTa=R("Npa");a.prototype.Qf=function(a,b,c){a=(b-a)*(1-c);Math.abs(a)<0.01&&(a=0);return b-a};a.prototype.rB=function(a,b){for(;a+180<
b;)a=a+360;for(;a-180>b;)a=a-360;return a};a.prototype.SA=function(){this.N&&this.$n()};a.prototype.$n=function(){this.trigger(new d(b.qa))};return a});define("eb",[],function(){return{jD:"left",kD:"right",iD:"down",lD:"up",Pca:"rotate10x",oda:"zoom2x",S:"playing",Zs:"zoomIn",$s:"zoomOut",Lf:"stop"}});
define("ff","require,kG,bm,cs,fQ,eb".split(","),function(a){var b=a("kG"),d=a("bm"),c=a("cs"),g=a("fQ"),f=a("eb"),i=b.extend(g,function(a){g.call(this);this.h=a;this.N=B;this.ai={};this.$L=q;this.Oi=this.ZL=B;this.PR=this.PR.bind(this);this.Wt=this.Wt.bind(this);this.uc=this.h.uc;document.addEventListener("keydown",this.PR);document.addEventListener("keyup",this.Wt)});i.prototype.clear=function(){this.N=B;this.uc=this.h=q;document.removeEventListener("keydown",this.PR);document.removeEventListener("keyup",
this.Wt)};i.prototype.xd=function(a){if(this.N!=a)(this.N=a)&&this.lV()};var e=[d.Gq,d.pq,d.Ja,d.Xa,d.As,d.FZ];i.prototype.PR=function(a){var b=a.which,c=B;if(!this.ai[b]&&e.indexOf(b)>=0){if(!this.$L&&!this.ZL)this.$L=setTimeout(this.eHa.bind(this),100);c=this.ai[b]=m}if(this.Oi!=a.shiftKey){this.Oi=a.shiftKey;c=m}c&&this.lV()};i.prototype.eHa=function(){this.ZL=m;this.lV()};i.prototype.Wt=function(a){var b=a.which,c=B;if(b in this.ai){delete this.ai[b];c=B;for(b in this.ai)this.ai[b]&&(c=m);if(!c){this.$L&&
clearTimeout(this.$L);this.$L=q;this.ZL=B}c=m}if(this.Oi!=a.shiftKey){this.Oi=a.shiftKey;c=m}c&&this.lV()};i.prototype.lV=function(){if(this.N){var a=this.uc.get("arrowKeysAction");if(a!="none"){var a=a=="rotate",b=[];this.ai[d.As]?b.push(f.Zs):this.ai[d.FZ]&&b.push(f.$s);this.ZL&&(this.ai[d.As]||this.ai[d.FZ])&&b.push(f.oda);this.ai[d.Ja]?b.push(f.jD):this.ai[d.Xa]&&b.push(f.kD);if(a||this.Oi)this.ai[d.Gq]?b.push(f.lD):this.ai[d.pq]&&b.push(f.iD);this.ZL&&(this.ai[d.Ja]||this.ai[d.Xa]||this.ai[d.Gq]||
this.ai[d.pq])&&b.push(f.Pca);b.length==0&&b.push(f.Lf);this.trigger(new c(i.FY,{Dta:b}))}}};i.FY="movementsChange";return i});
define("ob",["require"],function(){function a(){this.wz=m;this.reset()}function b(a,b){var g=0.5*(b-a);0.01>Math.abs(g)&&(g=0);return b-g}a.prototype.reset=function(){this.wz&&(this.wz=B,this.WU=this.XU=this.Lu=this.Qm=this.$D=this.cE=this.aE=this.Aw=l)};a.prototype.moveTo=function(a,b,g,f,i){this.Qm=a;this.Lu=b;this.XU=g;this.WU=f;this.a3=i;this.wz=m};a.prototype.hb=function(a,b,g,f){this.Aw=a;this.aE=b;this.cE=g;this.$D=f};a.prototype.bq=S("Aw");a.prototype.aq=S("aE");a.prototype.qy=S("cE");a.prototype.iC=
S("$D");a.prototype.Ge=S("wz");a.prototype.xb=function(){if(this.wz)if(this.a3)this.Aw=this.Qm,this.aE=this.Lu,this.cE=this.XU,this.$D=this.WU,this.wz=B;else{for(var a=this.Aw,c=this.Qm-180,g=this.Qm+180;a<c;)a+=g-c;for(;a>g;)a-=g-c;this.Aw=a;this.Aw=b(this.Aw,this.Qm);this.aE=b(this.aE,this.Lu);this.cE=b(this.cE,this.XU);this.$D=b(this.$D,this.WU);this.Aw==this.Qm&&this.aE==this.Lu&&this.cE==this.XU&&this.$D==this.WU&&(this.wz=B)}};return a});
define("co",["require","mL","lB","bu"],function(a){function b(){this.N=B;this.Rc=this.Ta=this.ua=0;this.UR=l}var d=a("mL"),c=a("lB"),g=a("bu");b.prototype.xd=function(a){this.N!=a&&(this.N=a,this.UR=l)};b.prototype.hb=function(a,b,c){this.ua=a;this.Ta=b;this.Rc=c};b.prototype.bq=S("ua");b.prototype.aq=S("Ta");b.prototype.qy=S("Rc");b.prototype.Ge=T(m);b.prototype.xb=function(){var a=d.iba(g.cs().orientation);this.ua+=this.UR===l?0:a.Na-this.UR;this.UR=a.Na;this.Ta=a.pitch;this.Rc=a.He;this.Ta=i===
l?a.pitch:i;this.Rc=f===l?a.He:f};var f=c.Ui("debug")?c.rW("force_vr_roll"):l,i=c.Ui("debug")?c.rW("force_vr_pitch"):l;return b});
define("f","require,dY,kG,nU,cs,fQ,cy,he,ff,dq,fb,ob,co,eb,bu,bc".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("nU"),g=a("cs"),f=a("fQ"),i=a("cy"),e=a("he"),j=a("ff"),o=a("dq"),k=a("fb"),n=a("ob"),r=a("co"),p=a("eb"),t=a("bu"),s=a("bc"),u=d.extend(f,function(a,b,d){f.call(this);this.h=a;this.uc=this.h.uc;this.Y=b;this.tc=d;this.Hx=this.Pw=this.eJ=this.QT=this.N=B;this.Sb=new o;this.Kp=new n;this.Rc=this.Ta=this.ua=0;this.ya=90;this.CB=1;this.uh=l;this.v_=this.gI=5;this.gy=B;this.Ya=new k;this.Ya.bind(k.Gs,
this.AK,this,m);this.Ya.bind(k.Ao,this.ox,this,m);this.Ya.bind(k.wg,this.qp,this,m);this.Ya.bind(k.vg,this.pp,this,m);this.Rk=new e;this.Rk.bind(c.qa,this.Yja,this);this.Ow=B;this.um=new j(this.h);this.um.bind(j.FY,this.gka,this,m);this.Rr=new r;t.bind(c.qa,this.Ln,this,m);this.Ln()});u.prototype.clear=function(){this.Ya.unbind(k.Gs,this.AK,this,m);this.Ya.unbind(k.Ao,this.ox,this,m);this.Ya.unbind(k.wg,this.qp,this,m);this.Ya.unbind(k.vg,this.pp,this,m);this.Ya.Al();this.Ya=q;this.Rk.unbind(c.qa,
this.Yja,this);this.Rk=q;this.um.unbind(j.FY,this.gka,this,m);this.um.clear();this.um=q;t.unbind(c.qa,this.Ln,this,m);this.tc=this.Y=this.Sb=q;this.iQ();this.h=this.uc=q};u.prototype.sv=function(a){this.Sb.reset();this.Kp.reset();this.Ya.sv(a);this.gI=a.get("automaticRotationSpeed");this.v_=a.get("automaticZoomSpeed")};u.prototype.Lj=function(a){function c(d){return b(a).contains(d)}b.isArray(a)||(a=[a]);var d=0,e=0,f=0,g=B;if(!c(p.Lf)){c(p.jD)?d=-this.gI:c(p.kD)&&(d=+this.gI);c(p.iD)?e=-this.gI:
c(p.lD)&&(e=+this.gI);c(p.Zs)?f=-this.v_:c(p.$s)&&(f=+this.v_);c(p.S)&&(g=m);c(p.oda)&&(f=f*2);if(c(p.Pca)){d=d*10;e=e*10}d=d*this.CB;e=e*this.CB}this.Cc(d,e,0,f,0,0,0,0,g,m,m,m)};u.prototype.hb=function(a,b,c,d){this.ua=a;this.Ta=b;this.Rc=c;this.ya=d;this.CB=this.ya/90;this.Rk.hb(this.ua,this.Ta,this.Rc);this.Rr.hb(this.ua,this.Ta,this.Rc);this.Ya.GC(this.ya);this.Kp.hb(this.ua,this.Ta,this.Rc,this.ya)};u.prototype.moveTo=function(a,b,c,d,e){this.Kp.moveTo(a,b,c,this.tc.mra(d),e);this.QT=B;this.Sb.reset();
this.Kh()};u.prototype.Naa=function(a,b,c){this.Cc(0,0,0,0,a,b,c,0,B,B,B)};u.prototype.Ge=function(){return this.N&&(this.Hx||this.VX())?m:B};u.prototype.$Na=function(){this.Hx=this.gy=B};u.prototype.VX=function(){return this.N?this.gy?m:this.Rr.N?this.Rr.Ge()||this.Sb.Ge():this.Rk.N?this.Ow?m:this.Rk.Ge()||this.Sb.Ge():this.Sb.Ge()||this.Kp.Ge():B};u.prototype.xb=function(a){this.gy=B;this.Sb.xb(a);this.Hx=B;var b,c,d;d=this.ya;if(this.Rr.N){this.Rr.xb(a);a=this.Rr.bq()+this.Sb.yw;b=this.Rr.aq();
c=this.Rr.qy()}else if(this.Kp.Ge()){this.Kp.xb(a);a=this.Kp.bq();b=this.Kp.aq();c=this.Kp.qy();d=this.Kp.iC()}else{if(this.Rk.N){this.Ow=B;this.Rk.xb(a);a=this.Rk.bq()+this.Sb.yw;b=this.Rk.aq();this.eJ&&(b=b+this.Sb.ZD);c=this.Rk.qy()}else{a=this.ua+this.Sb.yw;b=this.Ta+this.Sb.ZD;c=0}d=d+this.Sb.Ufa}this.tc.po(d);this.Y.hb(a,b,c,this.tc.ng(),this.tc.bv());this.ua=this.Y.Uc();this.Ta=this.Y.Mc();this.Rc=this.Y.uf();this.ya=this.Y.dv();if(this.QT&&this.Y.ksa()){d=this.Sb.$M;if(this.Y.jsa()||this.Y.lsa())d=
-d;a=this.Sb.dL;if(this.Y.msa()||this.Y.isa())a=-a;this.Cc(d,a,0,0,0,0,0,0,m,B,B,m)}};u.prototype.bq=S("ua");u.prototype.aq=S("Ta");u.prototype.qy=S("Rc");u.prototype.iC=S("ya");u.prototype.xd=function(a){if(this.N!=a){if(this.N=a){this.Sx(this.Ya.OA==i.Fs?s.iz:l);this.Ya.qs(this.h.getParent());this.Kh()}else{this.iQ();this.Ya.Al()}this.m8()}};u.prototype.nO=function(a){if(this.Pw!=a){this.Pw=a;this.m8();this.Ow=m}};u.prototype.zy=function(a){this.um.xd(a)};u.prototype.m8=function(){this.Rk.xd(this.N&&
this.Pw&&!t.isPresenting());this.Rr.xd(this.N&&t.isPresenting())};u.prototype.Yja=function(){this.Kh()};u.prototype.oO=function(a){this.eJ=a;this.Rk.hTa(this.eJ)};u.prototype.By=function(a){this.Ya.By(a);this.Sx(this.Ya.OA==i.Fs?s.iz:l)};u.prototype.KC=function(a){this.Ya.KC(a)};u.prototype.Ln=function(){this.m8();this.Kh()};u.prototype.AK=function(a){var b=!this.Rr.N&&(!this.Rk.N||this.eJ);if(this.Ya.OA==i.Sy){var c=l;if(a.Cv!=0||a.lv!=0){var d=Math.sqrt(a.lv*a.lv+a.Cv*a.Cv)>25,e=Math.atan2(a.lv,
a.Cv)*180/Math.PI;e>=-22.5&&e<22.5?c=d?s.kca:s.jca:e>=22.5&&e<67.5?c=d?s.mca:s.tca:e>=67.5&&e<112.5?c=d?s.lca:s.sca:e>=112.5&&e<157.5?c=d?s.nca:s.uca:e>=157.5||e<-157.5?c=d?s.rca:s.yca:e>=-157.5&&e<-112.5?c=d?s.qca:s.xca:e>=-112.5&&e<-67.5?c=d?s.oca:s.vca:e>=-67.5&&e<-22.5&&(c=d?s.pca:s.wca)}this.Sx(c);this.Cc(a.Cv,a.lv,0,0,a.CH,a.hH,0,0,B,B,B,b)}else this.Cc(a.Cv,a.lv,0,0,a.CH,a.hH,0,0,B,B,b,b)};u.prototype.ox=function(a){this.Cc(0,0,0,a.SPa,0,0,0,a.l$,B,m,B,m)};u.prototype.Cc=function(a,b,c,d,e,
f,g,i,j,k,n,o){var p=B;this.uc.get("rotationEnabled")&&(p=this.Sb.Maa(a,b,c,e,f,g,k,n,o)||p);this.uc.get("zoomEnabled")&&(p=this.Sb.lTa(d,i)||p);if(p){this.Kp.reset();this.QT=j;this.Kh()}};u.prototype.Kh=function(){this.Hx=m;this.trigger(new g(u.lh))};u.prototype.qp=function(){this.gy=m;this.trigger(new g(u.wg));this.Ya.OA==i.Fs&&this.Sx(s.Ek)};u.prototype.pp=function(){this.trigger(new g(u.vg));this.Ya.OA==i.Fs&&this.Sx(s.iz)};u.prototype.gka=function(a){this.Lj(a.data.Dta);a.data.Dta.indexOf(p.Lf)<
0&&this.h.wb().trigger(new g(c.dz,{BO:a}))};u.prototype.Sx=function(a){if(this.uh!=a&&this.N){this.uh&&this.h.iH(this.uh);(this.uh=a)&&this.h.kX(this.uh)}};u.prototype.iQ=function(){if(this.uh){this.h.iH(this.uh);this.uh=l}};u.lh="position change request";u.wg="user interaction start";u.vg="user interaction end";return u});
define("mh",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("TargetRotationalCameraMovement",b).H("RotationalCameraMovement").Q({path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number"});return b});
define("P","require,kG,nU,gE,cs,fQ,eQ,gt,mh,nx,bC".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("cs"),f=a("fQ"),i=a("eQ");a("gt");a("mh");var e=a("nx"),j=a("bC"),o=b.extend(f,function(a,b,c){f.call(this);this.h=a;this.Y=b;this.tc=c;this.GF=this.Ia=q;this.Dx=this.Gm=B;this.hk=l;this.WE=[];this.qB=0;this.O=q;this.Ta=this.ua=0;this.ya=90});o.prototype.clear=function(){this.end();this.Y=this.h=q};o.prototype.start=function(a){this.YJa(a);this.GHa();this.Dx=B;this.jQ();this.Gm=B;this.Kh();
this.zj()};o.prototype.end=function(){if(this.Ia!=q){this.rfa();this.Gm=this.Dx=B;this.O=q;this.zj()}};o.prototype.SQa=function(){if(this.Ia&&this.Ia.get("restartMovementOnUserInteraction")){if(!this.Gm){this.fM();this.m7();this.O=q;this.Gm=m;this.zj()}}else{this.O=q;this.pause()}};o.prototype.VQa=function(){if(this.Gm){this.Gm=B;this.Aia()||this.h7()}};o.prototype.YJa=function(a){this.rfa();this.Ia=a;this.Ia.bind(d.lz,this.dla,this,m);this.Ia.bind(d.iP,this.cla,this,m);this.Ia.bind(d.u("movementIndex"),
this.ZA,this,m);this.WE=this.Ia.get("movements",[])};o.prototype.rfa=function(){this.m7();if(this.Ia!=q){this.Ia.unbind(d.lz,this.dla,this);this.Ia.unbind(d.iP,this.cla,this);this.Ia.unbind(d.u("movementIndex"),this.ZA,this);this.Ia.set("movementIndex",-1);this.Ia=q;this.WE=[]}};o.prototype.Ij=function(){return this.Ia?this.Dx?c.Gb:c.S:c.L};o.prototype.hb=function(a,b,c,d){this.ua=a;this.Ta=b;this.ya=d};o.prototype.Ge=function(){return this.Ia&&this.O&&!this.Dx&&!this.Gm&&!this.Aia()?m:B};o.prototype.xb=
function(a){if(this.Ge()){this.O.xb(a);a=this.O.gb("hfov");if(this.tc.Msa()){var b=this.O.S9("hfov");b.from=this.tc.XV(b.from);b.Gy=this.tc.XV(b.Gy);a=this.tc.XV(a)}this.Y.hb(this.O.gb("yaw"),this.O.gb("pitch"),0,a,this.tc.bv());this.ua=this.Y.Uc();this.Ta=this.Y.Mc();this.ya=this.Y.dv();this.O.Te()&&this.KGa()}};o.prototype.bq=S("ua");o.prototype.aq=S("Ta");o.prototype.iC=S("ya");o.prototype.play=function(){if(this.Dx){this.Dx=B;this.O||this.ZA();this.jQ();this.Kh();this.zj()}};o.prototype.pause=
function(){if(!this.Dx){this.Dx=m;this.fM();this.zj()}};o.prototype.dla=function(){this.play()};o.prototype.cla=function(){this.pause()};o.prototype.GHa=function(){this.qB=0;var a=this.Ia.get("movementIndex",-1);a==-1&&(a=0);this.DT(a)};o.prototype.IHa=function(){this.qB++;var a=this.Ia.get("repeat",1);if(this.WE.length>0&&(a==0||this.qB<a))this.DT(0);else{this.Ia.trigger(new g(d.Ga));this.end();this.NLa()}};o.prototype.HHa=function(){this.DT(this.Ia.get("movementIndex",0)+1)};o.prototype.DT=function(a){if(a<
this.WE.length)this.Ia.get("movementIndex")!=a?this.Ia.set("movementIndex",a):this.ZA();else{this.Ia.trigger(new g(d.Ik));this.IHa()}};o.prototype.ZA=function(){var a=this.Ia.get("movementIndex");this.O=a>=0?this.tw(this.WE[a]):q};o.prototype.KGa=function(){this.WE[this.Ia.get("movementIndex")].trigger(new g(d.Ga));this.HHa()};o.prototype.Aia=function(){return this.GF!=q};o.prototype.h7=function(){this.m7();var a=this,b=this.Ia.get("restartMovementDelay")||0;this.GF=setTimeout(function(){a.GF=q;a.$Ga()},
b);this.zj()};o.prototype.m7=function(){if(this.GF){clearTimeout(this.GF);this.GF=q}};o.prototype.$Ga=function(){this.DT(this.Ia.get("movementIndex"));this.Kh();this.zj()};o.prototype.tw=function(a){var b,c,d,f=this.lk(this.ua,-180,180),g=this.Ta,o=this.ya;if(i.xa("TargetRotationalCameraMovement",a)){b=a.get("targetYaw",f);c=a.get("targetPitch",g);if(d=a.get("targetHfov")){this.tc.Zua(d);d=this.tc.ng()}else d=o;this.Y.hb(b,c,0,d,this.tc.bv());if(this.Y.cB)b=this.Y.Uc();else switch(this.z1(a)){case "left":b=
this.lk(b,f-360,f);break;case "right":b=this.lk(b,f,f+360);break;case "longest":b=this.lk(b,f-180,f+180);b=b>=f?this.lk(b,f-360,f):this.lk(b,f,f+360);break;default:b=this.lk(b,f-180,f+180)}}else if(i.xa("DistanceRotationalCameraMovement",a)){b=f+a.get("yawDelta",0);this.Y.cB&&(b=Math.min(Math.max(-180,b),180));c=g+a.get("pitchDelta",0);d=o+a.get("hfovDelta",0);this.Y.hb(b,c,0,d,this.tc.bv());this.Y.cB&&(b=this.Y.Uc())}c=this.Y.Mc();d=this.Y.dv();return new e(a.get("easing"),[new j("yaw",f,b,a.get("yawSpeed")),
new j("pitch",g,c,a.get("pitchSpeed")),new j("hfov",o,d,a.get("hfovSpeed"))],a.get("duration"))};o.prototype.jQ=function(){this.hk=l};o.prototype.fM=function(){if(this.O){this.hk=l;var a=this.O&&this.O.S9("yaw");if(a)if(a.Gy>a.from)this.hk="right";else if(a.Gy<a.from)this.hk="left"}};o.prototype.z1=function(a){a=a.get("path");if(a=="longest"&&this.hk)a=this.hk;this.hk=l;return a};o.prototype.lk=function(a,b,c){for(;a<b;)a=a+(c-b);for(;a>c;)a=a-(c-b);return a};o.prototype.Kh=function(){this.trigger(new g(o.lh))};
o.prototype.NLa=function(){this.trigger(new g(o.SY))};o.prototype.zj=function(){this.trigger(new g(o.rc))};o.lh="position change request";o.SY="sequence end";o.rc="playback state change";return o});
define("bs","require,dY,kG,nU,cs,fQ,hU,gK,f,P,eb,bu,gE".split(","),function(a){a("dY");var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("hU"),i=a("gK"),e=a("f"),j=a("P"),o=a("eb"),k=a("bu"),n=a("gE"),r=b.extend(g,function(a,b){g.call(this);this.h=a;this.h.bind(d.sc,this.Vb,this);k.bind(d.qa,this.Ln,this,m);this.tc=b;this.p6=B;this.ya=this.Rc=this.Ta=this.ua=l;this.Ur=this.Tr=this.bK=this.eK=this.dK=this.cK=B;this.Pm=m;this.CE=this.wp=0;this.N=B;this.sm=q;this.kJ=5E3;this.jj=this.Ah=q;this.zr=[];this.li=
this.cw=n.L;this.Y=new f(a);this.Mb=new e(this.h,this.Y,this.tc);this.Mb.bind(e.lh,this.mp,this,m);this.Mb.bind(e.wg,this.qp,this,m);this.Mb.bind(e.vg,this.pp,this,m);this.rm=new i(this.h,this.Y,this.tc);this.rm.bind(i.lh,this.mp,this,m);this.Ce=new j(this.h,this.Y,this.tc);this.Ce.bind(j.lh,this.mp,this,m);this.Ce.bind(j.SY,this.tx,this,m);this.Ce.bind(j.rc,this.ela,this,m)});r.prototype.clear=function(){this.qk();this.Mb.unbind(e.lh,this.mp,this);this.Mb.unbind(e.wg,this.qp,this,m);this.Mb.unbind(e.vg,
this.pp,this,m);this.Mb.clear();this.Mb=q;this.rm.unbind(i.lh,this.mp,this,m);this.rm.clear();this.rm=q;this.Ce.unbind(j.lh,this.mp,this);this.Ce.unbind(j.SY,this.tx,this);this.Ce.unbind(j.rc,this.ela,this);this.Ce.clear();this.Y=this.Ce=q;this.h.unbind(d.sc,this.Vb,this);k.unbind(d.qa,this.Ln,this,m);this.h=q;if(this.oa){this.oa.unbind(d.u("sequences"),this.ux,this,m);this.oa=q}this.xU([])};r.prototype.end=function(){this.cw=n.L;this.qk();this.Mb.xd(B);this.rm.xd(B);this.Ce.end();this.N=B;this.Eu(0,
0,0,0);this.jj=this.Ah=q;if(this.oa){this.oa.unbind(d.u("sequences"),this.ux,this,m);this.oa=q}this.xU([]);this.JB()};r.prototype.start=function(a,b){this.cw=n.S;this.N=m;this.Eu(0,0,0,0);this.ML(a);this.F6(b);this.kma();this.MU(this.jj);this.rm.xd(m);this.JB()};r.prototype.Ij=S("li");r.prototype.play=function(a){this.cw=n.S;this.Ce.Ij()==n.Gb?this.Ce.play():this.Ce.Ij()==n.L&&(!a&&this.jj?this.MU(this.jj):this.JE()||this.Jp());this.JB()};r.prototype.resume=function(){if(this.cw==n.Gb){this.Mb.$Na();
this.play(m)}};r.prototype.pause=function(){this.Mb.Lj(o.Lf);if(this.cw==n.S){this.cw=n.Gb;if(this.Ce.Ij()==n.S){this.Ce.pause();this.JB()}else this.JE()&&this.qk()}};r.prototype.stop=function(){this.cw=n.L;this.Ce.Ij()!=n.L&&this.Ce.end();this.Mb.Lj(o.Lf);this.JB();this.JE()&&this.qk()};r.prototype.moveTo=function(a,b,c,d,e){this.Mb.moveTo(a,b,c,d,e)};r.prototype.xU=function(a){this.zr.forEach(function(a){a.unbind(d.lz,this.Wma,this,m)}.bind(this));this.zr=a;this.zr.forEach(function(a){a.bind(d.lz,
this.Wma,this,m)}.bind(this))};r.prototype.Ln=function(){this.Y.uX(k.isPresenting())};r.prototype.Lj=function(a){this.Mb.Lj(a)};r.prototype.Naa=function(a,b,c){this.Mb.Naa(a,b,c)};r.prototype.nO=function(a){if(this.Pw!=a){this.Pw=a;this.Mb.nO(this.Pw);this.Ca()}};r.prototype.oO=function(a){this.Mb.oO(a)};r.prototype.By=function(a){this.Mb.By(a)};r.prototype.KC=function(a){this.Mb.KC(a)};r.prototype.zy=function(a){this.Mb.zy(a)};r.prototype.ov=function(a){if(this.N)if(this.Mb.Ge()||k.isPresenting()||
this.Pw&&(this.Mb.N||!this.Mb.eJ)){this.Mb.VX()&&this.Ce.SQa();this.Mb.xb(a);this.ql(this.Mb.bq(),this.Mb.aq(),this.Mb.qy(),this.Mb.iC());this.Ca()}else if(this.Ce.Gm){this.Ce.VQa();this.Ca()}else if(this.Ce.Ge()){this.Ce.xb(a);this.ql(this.Ce.bq(),this.Ce.aq(),0,this.Ce.iC());this.Ca()}else if(this.rm.Ge()){this.rm.xb(a);this.ql(this.rm.bq(),this.rm.aq(),0,this.rm.iC());this.Ca()}else if(this.p6){this.p6=B;this.tc.po(this.h.ng());this.Y.hb(this.h.Uc(),this.h.Mc(),this.h.uf(),this.tc.ng(),this.tc.bv());
this.ql(this.Y.Uc(),this.Y.Mc(),this.Y.uf(),this.Y.dv());this.Ca()}else{this.Eu(0,0,0,0);this.cw==n.S&&this.Ce.Ij()!=n.S&&(this.JE()||this.Jp())}};r.prototype.ld=function(){this.GMa();this.kma()};r.prototype.GMa=function(){var a=this.h.Uc()-this.ua||0,b=this.h.Mc()-this.Ta||0,c=this.h.uf()-this.Rc||0;this.Eu(a,b,c,this.h.ng()-this.ya||0)};r.prototype.kma=function(){this.ua=this.h.Uc();this.Ta=this.h.Mc();this.Rc=this.h.uf();this.ya=this.h.ng();this.Mb.hb(this.ua,this.Ta,this.Rc,this.ya);this.Ce.hb(this.ua,
this.Ta,this.Rc,this.ya);this.rm.hb(this.ua,this.Ta,this.Rc,this.ya)};r.prototype.ML=function(a){this.Y.ui(a)};r.prototype.F6=function(a){this.oa=a;this.kJ=a.get("timeToIdle",5E3);this.Ah=a.get("idleSequence");this.jj=a.get("initialSequence");this.Mb.sv(a);this.rm.sv(a);a.bind(d.u("sequences"),this.ux,this,m);this.xU(a.get("sequences",[]))};r.prototype.ux=function(){this.xU(this.oa.get("sequences",[]))};r.prototype.Wma=function(a){this.MU(a.source)};r.prototype.mp=function(){this.qk();this.Ca()};
r.prototype.qp=function(){this.trigger(new c(r.wg))};r.prototype.pp=function(){this.trigger(new c(r.vg))};r.prototype.MU=function(a){if(a){this.Mb.xd(!a.get("mandatory",B));this.Ce.start(a)}else this.tx()};r.prototype.tx=function(){this.Mb.xd(m);this.Jp()};r.prototype.ela=function(){this.JB()};r.prototype.Vb=function(){this.p6=m;this.Ca()};r.prototype.JE=function(){return this.sm!=q};r.prototype.Jp=function(){this.qk();var a=this;this.sm=setTimeout(function(){a.sm=q;a.oK()},this.kJ)};r.prototype.qk=
function(){if(this.sm){clearTimeout(this.sm);this.sm=q}};r.prototype.oK=function(){this.MU(this.Ah)};r.prototype.Ca=function(){this.trigger(new c(r.qb))};r.prototype.ql=function(a,b,c,d){this.h.hb(a,b,c,d)};r.prototype.Eu=function(a,b,d,e){var d=B,f=Math.abs(a)<0.001&&Math.abs(b)<0.001&&Math.abs(e)<0.001;if(f||this.Pw){d=this.Pm!=m;this.Ur=this.Tr=this.bK=this.eK=this.dK=this.cK=B;this.Pm=m}else{if(this.cK!=a<-0.001){this.cK=!this.cK;d=m}if(this.dK!=a>0.001){this.dK=!this.dK;d=m}if(this.bK!=b<-0.001){this.bK=
!this.bK;d=m}if(this.eK!=b>0.001){this.eK=!this.eK;d=m}if(this.Tr!=e<-0.001){this.Tr=!this.Tr;d=m}if(this.Ur!=e>0.001){this.Ur=!this.Ur;d=m}if(this.Pm!=f){this.Pm=!this.Pm;d=m}}f||this.trigger(new c(r.wo,{yaw:this.ua,pitch:this.Ta,roll:this.Rc,hfov:this.ya}));if(d){(this.N||this.Pm)&&this.trigger(new c(r.Nj,{movingLeft:this.cK,movingRight:this.dK,movingUp:this.eK,movingDown:this.bK,zoomingIn:this.Tr,zoomingOut:this.Ur,stopped:this.Pm}));this.JB()}};r.prototype.JB=function(){var a;if(this.N){a=this.Ce.Ij();
if(!this.Pm)a=n.S}else a=n.L;if(this.li!=a){this.li=a;this.trigger(new c(r.rc,{state:this.li}))}};r.qb="request frame";r.Nj="movement change";r.wo="position change";r.rc="playback state change";r.wg="user interaction start";r.vg="user interaction end";return r});
define("gs","require,nU,hU,t,hl,lB,bu,mL".split(","),function(a){function b(a,c,e){this.h=a;this.tc=c;this.ay=e;this.Y=new d(a);e.Ng&&this.Y.ui(e.Ng);this.Bu=new d(a);this.NE=this.Xt=l;this.ua=this.h.Uc();this.Ta=this.h.Mc();this.Rc=this.h.uf();this.ya=this.ay.Ng?this.h.ng():b.Bba;this.aoa=0;this.ba=q;this.Iia=m}a("nU");var d=a("hU");a("t");var c=a("hl"),g=a("lB"),f=a("bu"),i=a("mL");b.prototype.ui=function(a){if(this.ba!=a){this.Bx=m;this.ba=a}};b.prototype.vv=function(a,b){this.ua=a;this.Ta=b};
b.prototype.YB=function(a){this.tc.Zua(a);return this.tc.ng()};b.prototype.po=R("ya");b.prototype.sO=R("Iia");b.prototype.JC=R("aoa");b.prototype.ov=function(){if(this.tc.Msa())this.ya=this.tc.XV(this.ya);if(this.ay.$b()){var a=f.cs().orientation,a=i.iba(a);this.ua=this.ua+(this.Xt===l?0:a.Na-this.Xt);this.Xt=a.Na;this.Ta=a.pitch;this.Rc=a.He;this.Ta=j===l?a.pitch:j;this.Rc=e===l?a.He:e}else if(this.ay.bsa()){var a=c.es(),b=this.rB(a.yaw,this.ua);this.ua=this.ua+(this.Xt===l?0:b-this.Xt);this.Ta=
this.Ta+(this.NE===l?0:a.pitch-this.NE);this.Rc=a.roll;this.Xt=a.yaw;this.NE=a.pitch}else{a=this.rB(this.h.Uc(),this.ua);b=this.h.Mc();this.ua=this.ua+(this.Xt===l?0:a-this.Xt);this.Ta=this.Ta+(this.NE===l?0:b-this.NE);this.Rc=this.h.uf()}this.Bx&&this.Y.ui(this.ba);this.Y.uX(f.isPresenting());this.Y.hb(this.ua,this.Ta,this.Rc,this.ya,this.tc.bv());if(this.Bx){this.Bx=B;if(this.ay&&this.ay.Ng)if(a=this.h.kf(this.ay.Ng)){a.set("deltaYaw",this.h.Uc()-this.Y.Uc());a.set("deltaPitch",this.h.Mc()-this.Y.Mc());
a.set("deltaRoll",this.h.uf()-this.Y.uf())}}this.ua=this.Y.Uc();this.Ta=this.Y.Mc();this.Rc=this.Y.uf();if(!this.ay.$b()&&!this.ay.bsa()){this.Xt=this.ua;this.NE=this.Ta}this.ya=this.Iia?this.Y.dv():this.ya;this.h.hb(this.ua,this.Ta,this.Rc,this.ya);this.h.JC(this.aoa)};b.prototype.rX=function(a,b){this.Bu.ui(a);this.Bu.hb(0,0,0,b,this.tc.bv());return this.Bu.dv()};b.prototype.yRa=function(a,b){this.Bu.ui(a);this.Bu.hb(b.Na,b.pitch,b.He,b.ue,this.tc.bv());b.Na=this.Bu.Uc();b.pitch=this.Bu.Mc();b.He=
this.Bu.uf();b.ue=this.Bu.dv()};b.prototype.rB=function(a,b){for(;a+180<b;)a=a+360;for(;a-180>b;)a=a-360;return a};b.prototype.Qqa=function(){return b.Bba};b.Bba=TDV.Nca.Bwa;var e=g.Ui("debug")?g.rW("force_vr_roll"):l,j=g.Ui("debug")?g.rW("force_vr_pitch"):l;return b});
define("oq",["require","gm","lw","t","bu"],function(a){function b(a,e,f,o,k){this.h=a;this.Il=e;a=this.h.K;this.GO=a.get("transitionMode","blending");e=a.get("transitionDuration",500);this.QEa(f,o)&&(this.GO=b.bP,e=1500);this.CG=a.get("blendingTransitionDuration",e);this.AOa=a.get("firstTransitionDuration",e);this.Uqa=a.get("disolveTransitionDuration",e);this.Vva=a.get("translationTransitionDuration",1E3);a.get("translationTransitionSpeed");this.Wva=a.get("translationTransitionEnabled",m);this.Rta=
a.get("originTransitionDuration",3E3);this.XX=1E3;this.Ng=f;this.pTa=!f||f.v$();this.qTa=!f||f.Esa();this.yc=o;this.Eva=!o||o.v$();this.cba=!o||o.Esa();this.DTa=!!o&&this.v3(o);e=(this.LC=k)&&k.get("initialPosition")||new d;this.qg=new d;this.qg.set("yaw",e.get("yaw",0));this.qg.set("pitch",e.get("pitch"));this.qg.set("hfov",e.get("hfov"));this.hf=new c;this.hf.set("yaw",this.qg.get("yaw"));this.hf.set("pitch",this.qg.get("pitch"));this.hf.set("hfov",this.qg.get("hfov"));this.hf.set("stereographicFactor",
0);this.fo=[];if(!f){this.fo=k&&k.get("displayMovements")||[];for(e=this.fo.length-1;0<=e;e--)this.hf.set("yaw",this.hf.get("yaw",this.fo[e].get("targetYaw"))),this.hf.set("pitch",this.hf.get("pitch",this.fo[e].get("targetPitch"))),this.hf.set("hfov",this.hf.get("hfov",this.fo[e].get("targethfov"))),this.hf.set("stereographicFactor",this.hf.get("stereographicFactor",this.fo[e].get("stereographicFactor")));k=k&&k.get("displayOriginPosition")||this.qg;this.hf.set("yaw",k.get("yaw"));this.hf.set("pitch",
k.get("pitch"));this.hf.set("hfov",k.get("hfov"));this.hf.set("stereographicFactor",k.get("stereographicFactor"))}this.yH=this.GO==b.jn&&this.Wva&&this.Eva&&this.vEa(f,o)||q;var n=this.GO==b.jn&&this.yc&&this.Eva&&this.Il&&this.yc.get("modelLocations")||[],k=this.GO==b.jn&&this.Ng&&this.pTa&&this.Il&&this.Ng.get("modelLocations")||[],r=[];k.forEach(function(a){n.forEach(function(b){a.get("model")==b.get("model")&&r.push([a,b])})});var p=this.Il&&this.Il.get("model");this.qc=this.Nc=q;1<r.length&&
this.Il&&(e=r.find(function(a){return a[0].get("model")==p}))&&(r=[e]);if((e=r.length?r[0]:q)&&(p&&e[0].get("model")==p||e[0].get("forceModelLoading")||e[1].get("forceModelLoading")))this.Nc=e[0],this.qc=e[1];else if(this.Nc=k.find(function(a){return a.get("model")==p}),!this.Nc&&!this.qc&&(this.qc=n.find(function(a){return a.get("model")==p})),!this.Nc&&!this.qc&&(this.Nc=k.find(function(a){return a.get("forceModelLoading")})),!this.Nc&&!this.qc)this.qc=n.find(function(a){return a.get("forceModelLoading")});
if((this.qc||this.Nc)&&a.get("translationTransitionSpeed")&&(this.qc||this.Nc).get("model").get("worldUnitToMeters"))this.Vva=a.get("translationTransitionSpeed")/(this.qc||this.Nc).get("model").get("worldUnitToMeters");this.nv=q;this.nva=g.le()==g.aj?512:1536;this.Fva=g.le()==g.aj?512:1024;a=this.$b();this.mode=!a&&this.Nc&&this.qc&&this.yH?b.CZ:!a&&this.Nc&&this.qc&&this.Wva?b.bda:this.yH?b.ada:!a&&!this.Ng&&this.qc?b.BZ:!a&&!this.yc&&this.Nc?b.cda:f?o?"blending"==this.GO?b.jn:b.bP:b.Vba:b.Uba;if(this.mode==
b.jn&&(!this.qTa||!this.cba))if(0<this.hf.get("stereographicFactor",0)||0<this.fo.filter(function(a){return a.get("targetStereographicFactor",0)>0}).length)this.mode=b.bP;this.gn=q}var d=a("gm"),c=a("lw"),g=a("t"),f=a("bu");b.prototype.bsa=function(){return this.h.uc.get("gyroscopeEnabled")};b.prototype.$b=function(){return f.isPresenting()};b.prototype.vEa=function(a,b){if(!a||!b)return q;var c=(a.get("adjacentPanoramas")||[]).filter(function(a){return a.get("enabled")&&a.PNa()&&a.get("panorama")==
b});return 0==c.length?q:c[0]};b.prototype.QEa=function(a,b){return this.$b()&&g.le()==g.aj&&(this.v3(a)||this.v3(b))};b.prototype.v3=function(a){return!!a&&a.Jj()};b.bP="fade_out_fade_in";b.Uba="fade_in";b.Vba="fade_out";b.jn="blending";b.ada="translation";b.BZ="translation_from_model";b.CZ="translation_through_model";b.bda="translation_to_from_model";b.cda="translation_to_model";return b});
define("eC",["require"],function(){function a(a,d,c,g){this.B=a;this.Ib=d;this.h=c;this.t=g}a.prototype.Jg=T(B);a.prototype.fh=I();a.prototype.tC=T(B);return a});
define("li",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b=this.h.kf(this.t.yc);b.xk();b.set("alpha",0.01);this.O=new c("linear",[new g("alpha",0,1,l)],this.t.CG)}this.O.xb(a);a=this.O.gb("alpha");b=this.h.kf(this.t.yc);b.set("alpha",a);this.O.Te()&&(this.ub=m)}};return a});
define("gM",["require","kG","eQ","ic"],function(a){var b=a("kG"),d=a("eQ"),c=a("ic"),a=b.extend(c,function(){c.call(this)});d.F("ProjectedMaterialModel3DObject",a).H("ExternalModel3DObject").Q({sourceFaces:"or[array[canvas], array[img]]",sourceX:"number",sourceY:"number",sourceYaw:"number",sourceZ:"number",targetFaces:"or[array[canvas], array[img]]",targetX:"number",targetY:"number",targetYaw:"number",targetZ:"number"});return a});
define("ls",["require","kG","eC"],function(a){var b=a("kG"),d=a("eC"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i);this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(){this.ub||(this.Ki(),this.ub=m)};a.prototype.Ki=I();return a});
define("cJ",["require","kG","gM","ls"],function(a){var b=a("kG"),d=a("gM"),c=a("ls"),g=b.extend(c,function(a,b,d,g,o){c.call(this,a,b,d,g);this.Hh=o||3});g.prototype.Ki=function(){var a=this.t.Nc,b=this.t.qc,c=this.t.nv=new d;this.Hh&1&&(c.set("sourceX",a.get("x")),c.set("sourceY",a.get("y")),c.set("sourceZ",a.get("z")),c.set("sourceYaw",a.get("yaw")),c.set("sourceFaces",this.afa(this.t.Ng,this.t.nva)));this.Hh&2&&(c.set("targetX",b.get("x")),c.set("targetY",b.get("y")),c.set("targetZ",b.get("z")),
c.set("targetYaw",b.get("yaw")),c.set("targetFaces",this.afa(this.t.yc,this.t.Fva)));a=(a||b).get("model");a.set("objects",a.get("objects").concat([this.t.nv]))};g.prototype.afa=function(a,b){var c=this.h.kf(a),d=c.get("alpha");c.set("alpha",1);var g=this.h.fN(b);c.set("alpha",d);return g};g.Vca=b.extend(g,function(a,b,c,d){g.call(this,a,b,c,d,1)});g.hda=b.extend(g,function(a,b,c,d){g.call(this,a,b,c,d,2)});return g});
define("kZ",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.t.Il.h.bva(this.t.qc.get("model"),B)};return a});define("kf",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.t.Il.h.bva(this.t.Nc.get("model"),m)};return a});
define("hk",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.t.yc&&!this.h.kf(this.t.yc)&&(this.$g=this.h.create(this.t.yc),this.$g.set("alpha",0),this.h.add(this.$g))};return a});
define("on",["require","kG","nU","cS","eC"],function(a){var b=a("kG"),d=a("nU"),c=a("cS"),g=a("eC"),a=b.extend(g,function(a,b,e,j){g.call(this,a,b,e,j);this.V=(this.t.Nc||this.t.qc).get("model");this.Cp=B;this.V?(this.jx=this.t.Il,this.jx.get("model")!=this.V||!this.V.get("isLoaded")?(this.jx.set("model",this.V),this.V.bind(d.U,this.ju,this,m),this.jx.set("requesterPlayer",this.h.uc),this.jx.bind(c.xf,this.dl,this,m)):(this.ju(),this.dl(),this.Cp=m)):this.Cp=m});a.prototype.Jg=S("Cp");a.prototype.tC=
T(m);a.prototype.ju=function(){this.V.unbind(d.U,this.ju,this)};a.prototype.dl=function(){this.jx.unbind(c.xf,this.dl,this,m);this.Cp=m};return a});define("hm",["require","kG","ls","bB"],function(a){var b=a("kG"),d=a("ls"),c=a("bB"),a=b.extend(d,function(a,b,c,e){d.call(this,a,b,c,e)});a.prototype.Ki=function(){this.t.DTa&&c.Wi(this.h.wb())};return a});
define("eV",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b;b=this.t.qc&&this.t.qc.get("targetFaces")?0.01*this.t.CG:this.t.qc?0.5*this.t.CG:this.h.K.$Ta()&&!this.t.Ng?this.t.AOa:this.t.CG;this.O=new c("linear",[new g("alpha",0.001,1,l)],b)}this.O.xb(a);a=this.O.gb("alpha");this.h.kf(this.t.yc).set("alpha",
a);this.O&&this.O.Te()&&(this.ub=m)}};return a});
define("kY","require,kG,eC,dd,nx,bC".split(","),function(a){var b=a("kG"),d=a("eC"),c=a("dd"),g=a("nx"),f=a("bC"),a=b.extend(d,function(a,b,c,f){d.call(this,a,b,c,f);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.t.gn){this.t.gn=new c("#000000");this.t.gn.set("alpha",1);this.h.add(this.t.gn)}if(!this.O){this.t.gn.xk();var b=this.t.CG*2;this.O=new g("linear",[new f("alpha",2,0,l)],b);this.t.gn.xk()}this.O.xb(a);this.t.gn.set("alpha",Math.min(0.99,this.O.gb("alpha")));
this.h.kf(this.t.yc).set("alpha",1);if(this.O&&this.O.Te())this.ub=m}};return a});
define("bG",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b;b=this.t.Nc?0.01*this.t.CG:this.t.Uqa;this.O=new c("linear",[new g("alpha",1,0,l)],b)}this.O.xb(a);a=this.O.gb("alpha");this.h.kf(this.t.Ng).set("alpha",a);this.O.Te()&&(this.ub=m)}};return a});
define("mU","require,kG,eC,dd,nx,bC".split(","),function(a){var b=a("kG"),d=a("eC"),c=a("dd"),g=a("nx"),f=a("bC"),a=b.extend(d,function(a,b,c,f){d.call(this,a,b,c,f);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.t.gn){this.t.gn=new c("#000000");this.t.gn.set("alpha",0);this.h.add(this.t.gn)}if(!this.O){this.t.gn.xk();var b=this.t.Uqa*2;this.O=new g("linear",[new f("alpha",0,2,l)],b)}this.O.xb(a);a=Math.min(1,this.O.gb("alpha"));this.t.gn.set("alpha",
a);a==1&&this.h.kf(this.t.Ng).set("alpha",0);if(this.O.Te())this.ub=m}};return a});
define("cd",["require","kG","eC","nx","bC"],function(a){function b(a,b,c){for(;a<b;)a+=c-b;for(;a>c;)a-=c-b;return a}var d=a("kG"),c=a("eC"),g=a("nx"),f=a("bC"),a=d.extend(c,function(a,b,d,f){c.call(this,a,b,d,f);this.O=q;this.ub=B;this.xm=0});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub&&(this.O||(this.O=this.xm<this.t.fo.length?this.CBa(this.xm):this.gBa()),this.O.xb(a),this.Ib.vv(this.O.gb("yaw"),this.O.gb("pitch")),this.Ib.po(this.O.gb("hfov")),this.Ib.JC(this.O.gb("stereographicFactor")),
this.O.Te()))this.O=q,this.xm++,this.xm>this.t.fo.length&&(this.Ib.sO(m),this.ub=m)};a.prototype.gBa=function(){var a=b(this.h.Uc(),-180,180),c=this.h.Mc();this.h.uf();var d=this.h.ng(),o=this.h.o.Nl,k=this.t.qg.get("hfov"),k={Na:this.t.qg.get("yaw"),pitch:this.t.qg.get("pitch",c),He:this.h.uf(),ue:k?this.Ib.YB(k):d,Nl:0};this.Ib.yRa(this.t.yc,k);k.Na=b(k.Na,a-180,a+180);var n=0.5<Math.abs(d-k.ue),r=Math.abs(o-k.Nl),p=0.01<r,n=this.t.$b()?1:Math.max(n?this.t.XX:1,p?this.t.Rta*r:1);return new g(p?
"linear":"cubic_in_out",[new f("yaw",a,k.Na,l),new f("pitch",c,k.pitch,l),new f("hfov",d,k.ue,l),new f("stereographicFactor",o,k.Nl,l)],n)};a.prototype.CBa=function(a){var c=this.t.fo[a],d=b(this.h.Uc(),-180,180),o=this.h.Mc();this.h.uf();var k=this.h.ng(),n=this.h.o.Nl,r=c.get("targetStereographicFactor",n),p=c.get("targetHfov");if(p)p=this.Ib.YB(p);else{for(p=B;a<this.t.fo.length&&!p;a++)p=this.t.fo[a].get("targetHfov")!==l;p?p=k:(p=this.Ib.YB(this.t.qg.get("hfov",this.Ib.Qqa())),p=k+(p-k)*(n-r))}var a=
c.get("targetYaw",d),t=c.get("targetPitch",o);this.h.uf();switch(c.get("path")){case "left":a=b(a,d-360,d);break;case "right":a=b(a,d,d+360);break;case "longest":a=b(a,-360,360);a=a>=d?b(a,d,d+360):b(a,d-360,d);break;default:a=b(a,d-180,d+180)}return new g(c.get("easing"),[new f("yaw",d,a,c.get("yawSpeed")),new f("pitch",o,t,c.get("pitchSpeed")),new f("hfov",k,p,c.get("hfovSpeed")),new f("stereographicFactor",n,r,c.get("stereographicFactorSpeed"))],c.get("duration"))};return a});
define("fA",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b=this.h.Mc(),d=this.h.ng(),j=this.h.o.Nl,o=this.t.hf.get("stereographicFactor",0),k=Math.abs(j-o),n=0<o?this.t.hf.get("pitch",b):b,r=this.t.hf.get("hfov"),r=r?this.Ib.YB(r):d;0==o&&(r=Math.min(d,this.Ib.rX(this.t.yc,r)));this.Ib.sO(B);k=this.t.$b()?
1:Math.max(0.5<Math.abs(d-r)?this.t.XX:1,0.01<k?this.t.Rta:1);this.O=new c("cubic_in_out",[new g("hfov",d,r,l),new g("pitch",b,n,l),new g("stereographicFactor",j,o,l)],k)}this.O.xb(a);this.Ib.po(this.O.gb("hfov"));this.Ib.JC(this.O.gb("stereographicFactor"));this.Ib.vv(this.h.Uc(),this.O.gb("pitch"));this.O.Te()&&(this.Ib.ui(this.t.yc),this.Ib.vv(this.t.hf.get("yaw"),this.t.hf.get("pitch",this.h.Mc())),this.ub=m)}};return a});
define("gU",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.h.remove(this.h.kf(this.t.Ng))};return a});define("gr",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){var a=(this.t.Nc||this.t.qc).get("model");a.set("objects",a.get("objects").filter(function(a){return a!=this.t.nv}.bind(this)));this.t.nv=q};return a});
define("q",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.Ib.ui(this.t.yc);this.Ib.vv(this.t.qg.get("yaw"),this.t.qg.get("pitch",this.h.Mc()));var a=this.t.qg.get("hfov");a&&(a=this.Ib.YB(a),this.Ib.po(a))};return a});
define("dj",["require","kG","kj","ls"],function(a){var b=a("kG");a("kj");var d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.Ib.ui(this.t.yc);var a,b;this.t.LC.get("keepInitialPositionOnTranslation")?(a=this.t.qg.get("yaw"),b=this.t.qg.get("pitch")):(b=this.t.qc.get("model").get("camera"),a=b.get("yaw")-this.t.qc.get("yaw"),b=this.t.LC.get("enterPointingToHorizon")?0:b.get("pitch"));this.Ib.vv(a,b);if(a=this.t.qg.get("hfov"))a=this.Ib.YB(a),this.Ib.po(a)};
return a});define("oo",["require","kG","kj","ls"],function(a){var b=a("kG");a("kj");var d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.Ib.ui(this.t.yc);var a,b;this.t.LC.get("keepInitialPositionOnTranslation")?(a=this.t.qg.get("yaw"),b=this.t.qg.get("pitch")):(b=this.t.qc.get("model").get("camera"),a=b.get("yaw")-this.t.qc.get("yaw"),b=b.get("pitch"));this.Ib.vv(a,b)};return a});
define("kk",["require","kG","nU","eC"],function(a){var b=a("kG"),d=a("nU"),c=a("eC"),a=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e);this.V=q;this.ub=B});a.prototype.GGa=function(){this.ub=m};a.prototype.Jg=S("ub");a.prototype.fh=function(){if(!this.V&&(this.V=this.t.Nc.get("model"),this.t.Il.get("model")==this.V)){var a=this.V.get("camera");a.set("easing",0);a.set("x",this.t.Nc.get("x"));a.set("y",this.t.Nc.get("y"));a.set("z",this.t.Nc.get("z"));a.set("yaw",this.h.Uc()+this.t.Nc.get("yaw"));
a.set("pitch",this.h.Mc());a.set("fov",this.h.Ua()>this.h.Cb()?this.h.wN():this.h.xN());this.V.bind(d.hz,this.GGa,this,m)}};return a});define("hv",["require","kG","ls","oq"],function(a){var b=a("kG"),d=a("ls"),c=a("oq"),a=b.extend(d,function(a,b,c,e){d.call(this,a,b,c,e)});a.prototype.Ki=function(){this.t.yc&&(this.t.mode==c.BZ||this.t.mode==c.CZ?this.t.yc.set("minFaceSize",1024):this.t.yc.set("minFaceSize",l))};return a});
define("gO",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.Ib.ui(this.t.yc);this.Ib.JC(this.t.cba?this.t.hf.get("stereographicFactor",0):0);this.Ib.vv(this.t.hf.get("yaw"),this.t.hf.get("pitch",this.h.Mc()));var a=this.t.hf.get("hfov");!a&&!this.t.Ng&&(a=this.Ib.Qqa());a&&(a=this.Ib.YB(a),this.Ib.po(a),this.Ib.sO(!this.t.cba))};return a});
define("fT",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.Ib.ui(this.t.yc);this.Ib.po(this.Ib.rX(this.t.yc,this.h.ng()));this.Ib.vv(this.h.Uc()+this.t.yH.ura(),this.h.Mc())};a.prototype.tC=T(m);return a});
define("nG",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b=this.h.ng(),d=this.Ib.rX(this.t.yc,b),j=!this.t.$b()&&0.01<Math.abs(b-d)?this.t.XX:1;this.O=new c("cubic_in_out",[new g("hfov",b,d,l)],j)}this.O.xb(a);this.Ib.po(this.O.gb("hfov"));this.O.Te()&&(this.Ib.sO(m),this.ub=m)}};return a});
define("fs",["require","kG","eC","nx","bC"],function(a){var b=a("kG"),d=a("eC"),c=a("nx"),g=a("bC"),a=b.extend(d,function(a,b,c,g){d.call(this,a,b,c,g);this.O=q;this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(a){if(!this.ub){if(!this.O){var b=this.h.ng(),d=Math.min(this.Ib.rX(this.t.yc,b),b),j=!this.t.$b()&&0.01<Math.abs(b-d)?this.t.XX:1;this.O=new c("cubic_in_out",[new g("hfov",b,d,l)],j);this.Ib.sO(B)}this.O.xb(a);this.Ib.po(this.O.gb("hfov"));this.O.Te()&&(this.Ib.ui(this.t.yc),this.Ib.vv(this.h.Uc()+
this.t.yH.ura(),this.h.Mc()),this.ub=m)}};a.prototype.tC=T(m);return a});define("dJ",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){this.t.Nc&&this.t.Il.get("model")==this.t.Nc.get("model")&&this.h.uc.nH([this.t.Il])};return a});
define("iG",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Ki=function(){var a=[this.h.uc];this.t.qc&&a.push(this.t.Il);this.h.uc.nH(a)};return a});
define("bv",["require","kG","eC","t"],function(a){var b=a("kG"),d=a("eC"),c=a("t"),a=b.extend(d,function(a,b,c,e){d.call(this,a,b,c,e);this.o="not initialized";this.Pa=0});a.prototype.Jg=function(){return"ended"==this.o};a.prototype.fh=function(a){this.Jg()||("not initialized"==this.o&&this.g3(),"initialized"==this.o&&(this.Lp.get("ready")||this.Lp.q$())&&this.bM(),"started"==this.o&&this.X(a),1<=this.Pa&&this.OI())};a.prototype.g3=function(){this.Nla=this.t.Vva;this.kI=0.25;this.Bza=0.75;this.gIa=
0.25;this.Coa=this.wEa();this.VZ=0.5*this.Nla;this.VLa=this.Nla-2*this.VZ;this.NA=1/(this.VZ+this.VLa);this.zP=this.NA/this.VZ;this.Hu=0;this.Lp=this.h.kf(this.t.yc);this.a7=this.h.kf(this.t.Ng);this.jE=this.t.yH.ROa();this.o="initialized"};a.prototype.wEa=function(){var a=this.t.yH.get("distance");return a?Math.min(0.99,a/this.t.Ng.get("distanceToFloor")):0.75};a.prototype.bM=function(){this.h.cva(!this.t.$b()&&c.browser()!=c.Rl);this.Lp.xk();this.o="started"};a.prototype.X=function(a){this.Lp.get("ready")||
this.Pa<this.gIa?this.Pa>=1-0.5*this.Hu*this.Hu/this.zP?this.Hu=Math.sqrt(2*(1-this.Pa)*this.zP):this.Hu<this.NA&&(this.Hu=Math.min(this.Hu+this.zP*a,this.NA)):this.Hu=Math.max(this.Hu-this.zP*a,0);this.Pa=Math.min(Math.max(0,this.Pa+this.Hu*a),1);this.Lp.get("ready")||(this.kI=Math.max(this.kI,this.Pa));this.oV(this.Pa,Math.max(0,Math.min(1,(this.Pa-this.kI)/(this.Bza-this.kI))))};a.prototype.OI=function(){this.Lp.set("alpha",1);this.h.cva(B);this.o="ended"};a.prototype.oV=function(a,b){var c=(a-
1)*this.Coa;this.Lp.set("translationX",c*this.jE.x);this.Lp.set("translationY",c*this.jE.y);this.Lp.set("translationZ",c*this.jE.z);this.Lp.get("ready");c=a*this.Coa;this.a7.set("translationX",c*this.jE.x);this.a7.set("translationY",c*this.jE.y);this.a7.set("translationZ",c*this.jE.z);this.Lp.set("alpha",Math.max(0.01,Math.min(0.99,b)))};a.prototype.tC=function(){return this.Pa<this.kI};return a});
define("eZ",["require","kG","lh","eQ","eY"],function(a){var b=a("kG");a("lh");var d=a("eQ"),c=a("eY"),a=b.extend(c,function(){c.call(this);this.set("yawPath","shortest")});d.F("TargetModel3DCameraMovement",a).H("Model3DCameraMovement").Q({yawPath:"enum[left, right, shortest, longest]",targetDistance:"number",targetFov:"number",targetPitch:"number",targetX:"number",targetYaw:"number",targetY:"number",targetZ:"number"});return a});
define("gj","require,kG,nU,gv,eZ,eC".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gv"),g=a("eZ"),f=a("eC"),a=b.extend(f,function(a,b,c,d){f.call(this,a,b,c,d);this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(){var a=this.t.Nc.get("model");if(this.t.Il.get("model")!=a)this.tx();else if(!this.Ia){var a=a.get("camera"),b=a.ioa;this.td=new g;this.td.set("targetX",b.x);this.td.set("targetY",b.y);this.td.set("targetZ",b.z);this.td.set("targetYaw",b.yaw);this.td.set("targetPitch",b.pitch);
this.td.set("targetFov",b.fov);this.td.set("targetDistance",b.distance);this.td.set("duration",1E3);this.td.set("easing","quad_in_out");this.td.bind(d.hz,this.I4,this,m);this.Ia=new c;this.Ia.set("movements",[this.td]);this.Ia.set("mandatory",m);this.Ia.bind(d.Ga,this.tx,this,m);a.set("sequences",a.get("sequences").concat([this.Ia]));this.Ia.play();this.SL();this.q7=(new THREE.Vector3).set(b.x,b.y,b.z);this.XL=(new THREE.Vector3).set(this.t.Nc.get("x"),this.t.Nc.get("y"),this.t.Nc.get("z"))}};var i=
new THREE.Vector3;a.prototype.I4=function(){var a=this.t.Nc.get("model").get("camera"),a=i.set(a.get("x"),a.get("y"),a.get("z")).distanceTo(this.XL)/this.XL.distanceTo(this.q7),b=Math.max(0.01,Math.min(0.99,(a-0)/0.33));this.h.AX(a>0&&a<1);this.t.nv.set("position",b)};a.prototype.tx=function(){var a=this.t.Nc.get("model").get("camera");a.set("sequences",a.get("sequences").filter(function(a){return a!=this.Ia}.bind(this)));this.ub=m;this.AL()};a.prototype.SL=function(){var a=this.t.Nc.get("model");
this.pL=a.get("postprocessing");this.qL=a.get("surfaceSelectionEnabled");a.set("postprocessing",B);a.set("surfaceSelectionEnabled",B)};a.prototype.AL=function(){var a=this.t.Nc.get("model"),b=this.pL,c=this.qL;setTimeout(function(){a.set("postprocessing",b);a.set("surfaceSelectionEnabled",c)},30)};return a});
define("hL","require,kG,nU,eQ,gv,eZ,gM,eC".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("gv"),f=a("eZ"),i=a("gM"),e=a("eC"),a=b.extend(e,function(a,b,c,d){e.call(this,a,b,c,d);this.ub=B;this.Cza=0;this.Dza=1;this.YK=[];this.UJ=[];this.YK.push(this.Dna.bind(this))});a.prototype.Jg=S("ub");a.prototype.fh=function(){if(this.t.Il.get("model")!=this.t.qc.get("model"))this.yka();else{var a=this.YK;for(this.YK=[];a.length>0;)a.shift()()}};a.prototype.HGa=function(){var a=this.UJ;for(this.UJ=
[];a.length>0;)a.shift()()};a.prototype.QKa=function(){this.kKa();this.SL();this.UJ.push(this.NEa.bind(this));this.UJ.push(this.tpa.bind(this))};a.prototype.kKa=function(){var a=this.t.qc.get("model").get("camera");a.set("easing",0);a.set("x",this.t.Nc.get("x"));a.set("y",this.t.Nc.get("y"));a.set("z",this.t.Nc.get("z"));a.set("yaw",this.h.Uc()+this.t.Nc.get("yaw"));a.set("pitch",this.h.Mc());a.set("fov",this.h.Ua()>this.h.Cb()?this.h.wN():this.h.xN());this.td=new f;this.td.set("targetX",this.t.qc.get("x"));
this.td.set("targetY",this.t.qc.get("y"));this.td.set("targetZ",this.t.qc.get("z"));if(this.t.LC.get("keepInitialPositionOnTranslation")){var b=this.t.qg.get("yaw")+this.t.qc.get("yaw"),c=this.t.qg.get("pitch"),e=this.t.qg.get("hfov");this.td.set("targetYaw",b);c!==l&&this.td.set("targetPitch",c);e!==l&&this.td.set("targetFov",e)}this.td.set("duration",1500);this.td.set("easing","cubic_in_out");this.td.bind(d.hz,this.HGa,this,m);this.Ia=new g;this.Ia.set("movements",[this.td]);this.Ia.set("mandatory",
m);this.Ia.bind(d.Ga,this.yka,this,m);a.set("sequences",a.get("sequences").concat([this.Ia]));this.Ia.play()};a.prototype.Dna=function(){if(this.h.kf(this.t.yc).get("ready")){var a=this.t.Nc,b=this.t.qc,d=a.get("model"),e=d.get("objects").find(function(a){return c.xa("ProjectedMaterialModel3DObject",a)}),f=!e;e||(e=new i);this.t.nv=e;e.set("sourceX",a.get("x"));e.set("sourceY",a.get("y"));e.set("sourceZ",a.get("z"));e.set("sourceYaw",a.get("yaw"));e.set("targetX",b.get("x"));e.set("targetY",b.get("y"));
e.set("targetZ",b.get("z"));e.set("targetYaw",b.get("yaw"));a=this.h.kf(this.t.Ng);b=this.h.kf(this.t.yc);a.set("alpha",1);b.set("alpha",0.01);e.set("sourceFaces",this.h.fN(this.t.nva,e.get("sourceFaces")));a.set("alpha",0.01);b.set("alpha",1);e.set("targetFaces",this.h.fN(this.t.Fva,e.get("targetFaces")));a.set("alpha",1);b.set("alpha",0.01);e.set("position",0);f&&d.set("objects",d.get("objects").concat([this.t.nv]));this.QKa()}else this.YK.push(this.Dna.bind(this))};a.prototype.NEa=function(){this.h.kf(this.t.Ng).set("alpha",
0);this.aga()};a.prototype.aga=function(){(this.Pla=this.Pla===l?10:this.Pla-1)?this.YK.push(this.aga.bind(this)):this.h.AX(m)};a.prototype.tCa=function(){this.h.AX(B)};var j=new THREE.Vector3,o=new THREE.Vector3,k=new THREE.Vector3;a.prototype.xEa=function(){var a=this.t.Nc;j.set(a.get("x"),a.get("y"),a.get("z"));var b=this.t.qc;o.set(b.get("x"),b.get("y"),b.get("z"));a=a.get("model").get("camera");k.set(a.get("x"),a.get("y"),a.get("z"));return k.distanceTo(j)/o.distanceTo(j)};a.prototype.tpa=function(){var a=
this.xEa(),a=Math.max(0,Math.min(1,(a-this.Cza)/this.Dza));this.t.nv.set("position",a);a<1&&this.UJ.push(this.tpa.bind(this))};a.prototype.yka=function(){var a=this.t.Nc.get("model").get("camera");a.set("sequences",a.get("sequences").filter(function(a){return a!=this.Ia}.bind(this)));this.tCa();this.AL();this.ub=m};a.prototype.SL=function(){var a=this.t.Nc.get("model");this.pL=a.get("postprocessing");this.qL=a.get("surfaceSelectionEnabled");a.set("postprocessing",B);a.set("surfaceSelectionEnabled",
B)};a.prototype.AL=function(){var a=this.t.Nc.get("model"),b=this.pL,c=this.qL;setTimeout(function(){a.set("postprocessing",b);a.set("surfaceSelectionEnabled",c)},30)};return a});
define("kB","require,kG,nU,gv,eZ,eC,kj".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("gv"),g=a("eZ"),f=a("eC"),i=a("kj"),a=b.extend(f,function(a,b,c,d){f.call(this,a,b,c,d);this.ub=B});a.prototype.Jg=S("ub");a.prototype.fh=function(){if(!this.Ia){var a=this.t.qc.get("model").get("camera");a.yTa();var b=Math.abs(a.get("pitch")-this.h.Mc()),e=b>30;this.td=new g;this.td.set("targetX",this.t.qc.get("x"));this.td.set("targetY",this.t.qc.get("y"));this.td.set("targetZ",this.t.qc.get("z"));this.td.set("targetDistance",
0);this.td.set("targetFov",this.KEa(this.h.ng()));this.td.set("targetYaw",this.h.Uc()+this.t.qc.get("yaw"));e?this.td.set("targetPitch",a.get("pitch")):this.td.set("targetPitch",this.h.Mc());this.td.set("duration",1500);this.td.set("easing","cubic_in_out");this.td.bind(d.hz,this.I4,this,m);var f=[this.td];if(e){e=new g;e.set("targetPitch",this.h.Mc());e.set("duration",b/90*1E3);e.set("easing","quad_in_out");f.push(e)}this.Ia=new c;this.Ia.set("movements",f);this.Ia.set("mandatory",m);this.Ia.bind(d.Ga,
this.tx,this,m);a.set("sequences",a.get("sequences").concat([this.Ia]));this.Ia.play();this.SL();this.XL=(new THREE.Vector3).set(a.get("x"),a.get("y"),a.get("z"));this.q7=(new THREE.Vector3).set(this.t.qc.get("x"),this.t.qc.get("y"),this.t.qc.get("z"))}};a.prototype.KEa=function(a){return this.h.Ua()<this.h.Cb()?i.Dl(a,this.h.Ua(),this.h.Cb()):a};var e=new THREE.Vector3;a.prototype.I4=function(){var a=this.t.qc.get("model").get("camera"),a=e.set(a.get("x"),a.get("y"),a.get("z")).distanceTo(this.XL)/
this.XL.distanceTo(this.q7),b=Math.max(0.01,Math.min(0.99,(a-0.66)/(1-0.66)));this.h.AX(a>0&&a<1);this.t.nv.set("position",b)};a.prototype.tx=function(){var a=this.t.qc.get("model").get("camera");a.set("sequences",a.get("sequences").filter(function(a){return a!=this.Ia}.bind(this)));this.ub=m;this.AL()};a.prototype.SL=function(){var a=this.t.qc.get("model");this.pL=a.get("postprocessing");this.qL=a.get("surfaceSelectionEnabled");a.set("postprocessing",B);a.set("surfaceSelectionEnabled",B)};a.prototype.AL=
function(){var a=this.t.qc.get("model"),b=this.pL,c=this.qL;setTimeout(function(){a.set("postprocessing",b);a.set("surfaceSelectionEnabled",c)},30)};return a});define("iv",["require","kG","ls"],function(a){var b=a("kG"),d=a("ls"),a=b.extend(d,function(a,b,f,i,e){d.call(this,a,b,f,i);this.Zza=e});a.prototype.Ki=function(){this.Zza.call(this.B)};return a});
define("fN",["require","kG","eC"],function(a){var b=a("kG"),d=a("eC"),a=b.extend(d,function(a,b,f,i){d.call(this,a,b,f,i)});a.prototype.Jg=function(){var a=this.h.wb(),b=a&&a.nG,a=a&&a.TE;return!!b&&!b.get("visible")&&!!a&&!a.get("visible")};return a});
define("M",["require","kG","eC"],function(a){var b=a("kG"),d=a("eC"),c=b.extend(d,function(a,b,c,e){d.call(this,a,b,c,e);this.Au=q});c.prototype.Jg=function(){this.Au||(this.Au=this.t.yc&&this.h.kf(this.t.yc));return this.Au&&this.Au.get("ready")};c.prototype.tC=T(m);c.Aca=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e)});c.Aca.prototype.tC=T(B);c.Gca=b.extend(c,function(a,b,d,e){c.call(this,a,b,d,e)});c.Gca.prototype.Jg=function(){this.Au||(this.Au=this.t.yc&&this.h.kf(this.t.yc));return this.Au&&
(this.Au.get("ready")||this.Au.W$())};return c});
define("mY",["require","kG","bm","cs","fQ"],function(a){var b=a("kG"),d=a("bm"),c=a("cs"),g=a("fQ"),f=b.extend(g,function(a){g.call(this);this.h=a;this.N=B;this.Wt=this.Wt.bind(this);this.uc=this.h.uc});f.prototype.clear=function(){this.uc=this.h=q};f.prototype.xd=function(a){this.N!=a&&(this.N&&document.removeEventListener("keyup",this.Wt),(this.N=a)&&document.addEventListener("keyup",this.Wt))};f.prototype.Wt=function(a){"translate"==this.uc.get("arrowKeysAction")&&(a.which==d.pq&&!a.shiftKey?this.trigger(new c(f.GY)):
a.which==d.Gq&&!a.shiftKey&&this.trigger(new c(f.HY)))};f.HY="moveForward";f.GY="moveBackward";return f});
define("od","require,cs,fQ,gs,oq,li,cJ,kZ,kf,hk,on,hm,eV,kY,bG,mU,cd,fA,gU,gr,q,dj,oo,kk,hv,gO,fT,nG,fs,dJ,iG,kk,bv,gj,hL,kB,iv,fN,M,mY,kG".split(","),function(a){var b=a("cs"),d=a("fQ"),c=a("gs"),g=a("oq"),f=a("li"),i=a("cJ"),e=a("kZ"),j=a("kf"),o=a("hk"),k=a("on"),n=a("hm"),r=a("eV"),p=a("kY"),t=a("bG"),s=a("mU"),u=a("cd"),v=a("fA"),w=a("gU"),x=a("gr"),y=a("q"),D=a("dj"),E=a("oo"),H=a("kk"),M=a("hv"),G=a("gO"),z=a("fT"),L=a("nG"),K=a("fs"),A=a("dJ"),N=a("iG"),H=a("kk"),J=a("bv"),C=a("gj"),F=a("hL"),
O=a("kB"),U=a("iv"),Q=a("fN"),V=a("M");a("mY");var P=a("kG").extend(d,function(a,b,c){d.call(this);this.K=a;this.h=b;this.tc=c;this.Ib=this.jx=q;this.cga=this.Rq=this.cL=this.ru=l;this.t=q;this.Gg=[]});P.prototype.Gaa=R("jx");P.prototype.clear=function(){this.e6(this.Rq);this.t&&this.e6(this.t.yc);this.cL=this.ru=l;this.Y=this.tc=this.h=this.K=this.t=q};P.prototype.start=function(a,b){if(!this.t&&a==this.Rq||this.t&&a==this.t.yc)this.cL=this.ru=l;else{this.ru=a;this.cL=b;this.Gg.length==0&&this.PU()}};
P.prototype.hide=function(){this.ru=q;!this.t&&this.Rq&&this.PU()};P.prototype.MOa=function(){return this.t&&this.t.yc};P.prototype.PU=function(){this.t=new g(this.h,this.jx,this.Rq,this.ru,this.cL);this.Ib=new c(this.h,this.tc,this.t);this.cL=this.ru=l;this.ha(M);this.ha(o);switch(this.t.mode){case g.Vba:this.sb(this.Qu);this.ha(t);this.sb(this.Pu);this.ha(w);this.sb(this.Op);break;case g.Uba:this.ha(N);this.sb(this.cy);this.ha(V);this.ha(n);this.ha(G);this.sb(this.Kr);this.ha(r);this.ha(Q);this.ha(u);
this.sb(this.by);break;case g.bP:if(this.t.$b()){this.ha(N);this.sb(this.cy);this.sb(this.Qu);this.ha(s);this.sb(this.Pu);this.ha(w);this.sb(this.Op);this.ha(V);this.ha(y);this.sb(this.Kr);this.sb(this.by);this.ha(p)}else{this.ha(N);this.sb(this.cy);this.sb(this.Qu);this.ha(t);this.sb(this.Pu);this.ha(w);this.sb(this.Op);this.ha(V);this.ha(n);this.ha(G);this.sb(this.Kr);this.ha(r);this.ha(Q);this.ha(u);this.sb(this.by)}break;case g.ada:this.ha(N);this.sb(this.cy);this.sb(this.Qu);this.sb(this.Pu);
if(this.t.$b()){this.ha(z);this.sb(this.Kr);this.ha(J);this.ha(w);this.sb(this.Op)}else{this.ha(K);this.sb(this.Kr);this.ha(J);this.ha(w);this.sb(this.Op);this.ha(L);this.ha(n);this.ha(Q)}this.sb(this.by);break;case g.jn:this.ha(N);this.sb(this.cy);this.ha(V);if(this.t.$b()){this.sb(this.Qu);this.sb(this.Pu);this.ha(y);this.sb(this.Kr);this.ha(f);this.ha(w);this.sb(this.Op)}else{this.sb(this.Qu);this.sb(this.Pu);this.ha(v);this.sb(this.Kr);this.ha(f);this.ha(w);this.sb(this.Op);this.ha(n);this.ha(Q);
this.ha(u)}this.sb(this.by);break;case g.BZ:this.ha(N);this.sb(this.cy);this.ha(k);this.ha(V);this.ha(i.hda);this.ha(D);this.ha(O);this.sb(this.Kr);this.ha(r);this.ha(x);this.ha(e);this.ha(n);this.ha(Q);this.sb(this.by);break;case g.cda:this.ha(k);this.ha(i.Vca);this.ha(j);this.ha(H);this.sb(this.Qu);this.ha(t);this.sb(this.Pu);this.ha(w);this.sb(this.Op);this.ha(C);this.ha(x);this.ha(A);break;case g.CZ:this.sb(this.cy);this.ha(k);this.ha(j);this.sb(this.Qu);this.sb(this.Pu);this.ha(V.Gca);this.ha(F);
this.ha(w);this.sb(this.Op);this.ha(V.Aca);this.ha(E);this.sb(this.Kr);this.ha(r);this.ha(x);this.ha(e);this.ha(n);this.ha(Q);this.sb(this.by);break;case g.bda:this.sb(this.cy);this.ha(k);this.ha(i.Vca);this.ha(j);this.ha(H);this.ha(V);this.sb(this.Qu);this.ha(t);this.sb(this.Pu);this.ha(w);this.sb(this.Op);this.ha(C);this.ha(x);this.ha(i.hda);this.ha(D);this.ha(O);this.sb(this.Kr);this.ha(r);this.ha(x);this.ha(e);this.sb(this.by)}this.sb(this.PLa);this.Ca()};P.prototype.I7=function(){this.Rq=this.t.yc;
this.cga=this.t.LC;this.t=this.Ib=q;this.ru===l?this.Rq?this.zLa(this.Rq,this.cga):this.ALa():this.PU()};window.bOa=m;window.cOa=m;document.addEventListener("keydown",function(a){if(a.which==67)window.bOa=window.cOa=m});P.prototype.ov=function(a){for(;this.Gg.length;){var b=this.Gg[0];if(this.ru!==l&&this.ru!==this.Rq&&b.tC()){this.e6(this.t.yc);this.Gg=[];this.PU();break}else{b.fh(a);this.Ca();this.Ib.ov(a);if(b.Jg()){this.Gg.shift();this.Gg.length==0&&this.I7()}else break}}};document.addEventListener("keydown",
function(){(new Date).getTime()});document.addEventListener("keyup",function(){(new Date).getTime()});P.prototype.ld=I();P.prototype.ha=function(a){this.Gg.push(new a(this,this.Ib,this.h,this.t))};P.prototype.sb=function(a){this.Gg.push(new U(this,this.Ib,this.h,this.t,a))};P.prototype.e6=function(a){if(a)if(a=this.h.kf(a)){this.h.remove(a);this.Op()}};P.prototype.cy=function(){this.trigger(new b(P.RY,{panorama:this.t.yc}))};P.prototype.Op=function(){this.trigger(new b(P.IY,{panorama:this.t?this.t.Ng:
this.Rq,nextPanorama:this.t?this.t.yc:q}))};P.prototype.Qu=function(){this.trigger(new b(P.Zy,{panorama:this.t.Ng}))};P.prototype.Pu=function(){this.trigger(new b(P.Yy,{panorama:this.t.Ng,nextPanorama:this.t.yc}))};P.prototype.by=function(){this.trigger(new b(P.$y,{panorama:this.t.yc,camera:this.t.LC}))};P.prototype.PLa=function(){this.trigger(new b(P.zo))};P.prototype.Kr=function(){this.trigger(new b(P.az,{panorama:this.t.yc,camera:this.t.LC}))};P.prototype.zLa=function(a,c){this.trigger(new b(P.pY,
{panorama:a,camera:c}))};P.prototype.ALa=function(){this.trigger(new b(P.qY))};P.prototype.Ca=function(){this.trigger(new b(P.qb))};P.qb="request frame";P.RY="request load";P.IY="panorama removed";P.pY="all pending panoramas displayed";P.qY="all pending panoramas hidden";P.Yy="panorama end";P.az="panorama start";P.$y="panorama show";P.Zy="panorama hide";P.zo="transition end";return P});
define("lA",["require","kG","cs","fQ"],function(a){var b=a("kG"),d=a("cs"),c=a("fQ"),g=b.extend(c,function(a){c.call(this);this.h=a});g.prototype.clear=function(){this.end();this.h=q};g.prototype.ZG=function(a){for(var b=this.gR(a),c=a.sW(),d=0;d<b;d++)this.h.kf(this.c2(a,d)).set("alpha",d==c?1:0)};g.prototype.getTime=T(0);g.prototype.start=I();g.prototype.end=I();g.prototype.play=I();g.prototype.pause=I();g.prototype.gH=I();g.prototype.oH=I();g.prototype.IX=I();g.prototype.stop=I();g.prototype.IC=
I();g.prototype.yy=I();g.prototype.Hy=I();g.prototype.ld=I();g.prototype.Ij=I();g.prototype.gR=function(a){return a.get("frames").length};g.prototype.c2=function(a,b){return a.get("frames")[b]};g.prototype.Ca=function(){this.trigger(new d(g.qb))};g.prototype.Pp=function(a,b,c,j,o,k){this.trigger(new d(g.$i,{time:a,duration:b,transitionPosition:c,transitionLength:j,steps:o,selectedStep:k}))};g.prototype.zj=function(){this.trigger(new d(g.rc,{state:this.Ij()}))};g.qb="request frame";g.Gwa="frame display";
g.Hwa="frame hide";g.$i="time change";g.rc="playback state change";return g});
define("bq","require,jquery.mod,dY,kG,nU,hy,cs,lA,gn,fa,lB,bu,jR".split(","),function(a){a("jquery.mod");var b=a("dY"),d=a("kG"),c=a("nU"),g=a("hy");a("cs");var f=a("lA"),i=a("gn"),e=a("fa");a("lB");var j=a("bu"),o=a("jR"),k=d.extend(f,function(a){f.call(this,a);this.$Q=q;this.L1=this.lA=0;this.ba=this.MA=q;this.XI=l;this.y5=B;this.ya=360;this.Opa=180;this.Ta=0.5;this.Jn=0.2;this.bu=0.45;this.Nia=5E3;this.Ria=1;this.kS=[[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.WFa=[0.05,0.1,0.05,0.1,0.4,0.1,0.05,0.1,0.05]});k.prototype.ZG=function(a){f.prototype.ZG.call(this,a);this.ML(a)};k.prototype.start=function(a){this.ML(a);this.Ca()};k.prototype.end=function(){this.ML(q)};k.prototype.ML=function(a){if(this.ba!=a){if(this.ba){this.SLa();this.ba=q;this.XLa()}if(this.ba=a){this.yza();this.ya=a.get("hfov",360);this.Opa=a.get("vfov",180);this.Ta=a.get("pitch",0);this.F5=this.jB=l;this.PFa(a);this.Pa=0.5}}};k.prototype.Hy=function(){this.y5=
B};k.prototype.IC=function(a){this.Pa=a/k.$H;this.Ca();this.y5=m};k.prototype.yy=function(a){this.IC(a)};k.prototype.Pp=function(){var a=this.gR(this.ba),b=this.Pa*(a-1),c=Math.max(0,Math.min(a-2,Math.floor(b))),d=l;b-c<0.01?d=c:b-c>0.99&&(d=c+1);f.prototype.Pp.call(this,this.Pa*k.$H,k.$H,this.Pa*k.$H,k.$H,a,d)};k.prototype.ld=function(a){if(this.ba){var b=this.h.Uc(),c=this.h.Mc(),d=this.h.uf(),f=0;if(this.jB!==l&&this.F5!==l&&this.Yla!==l)var g=b-this.jB,k=c-this.F5,o=d-this.Yla,f=Math.sqrt(g*g+
k*k+o*o)*1E3/a;this.jB=b;this.F5=c;this.Yla=d;for(var g=this.gR(this.ba),x=this.Pa*(g-1),k=Math.max(0,Math.min(g-2,Math.floor(x))),o=k+1,x=1-(x-k),y=1-x,D=[],E=0;E<g;E++)D.push(0);D[o]=y;D[k]=y<1?1:0;for(E=0;E<g;E++)this.h.kf(this.c2(this.ba,E)).set("alpha",D[E]);this.Pp();if(this.$Q&&(f<=this.Ria||j.isPresenting())&&!this.y5){var E=Math.PI/180,f=180/Math.PI,D=this.h.Ua(),H=this.h.Cb(),M=new e;M.rotateZ(-d*E);M.rotateX(-c*E);M.rotateY(-b*E);b=[];for(E=0;E<this.kS.length;E++){d=this.h.unproject(new i(this.kS[E][0]*
D,this.kS[E][1]*H,0)).Ura();d.apply(M);c=d.Uc()*f;d=d.Mc()*f;c=Math.round((c+180)*this.lA/360);d=Math.round((90-d)*this.L1/180);b.push(d*this.lA+c)}c=[];for(E=0;E<g;E++){d=this.$Q[E];for(D=f=0;D<this.kS.length;D++)f=f+this.WFa[D]*d[b[D]];c.push(f)}E=c[k];b=c[o];k=x*c[k]+y*c[o];a=Math.min(1/g,a/this.Nia);g=this.Pa;o=Math.max.apply(Math,c);x=Math.min.apply(Math,c);k<this.Jn&&k<o?g=b>k?g+a:g-a:k>this.bu&&k>x&&(g=E<k?g-a:g+a);g=Math.min(1,Math.max(0,g));if(this.Pa!=g){this.Pa=g;this.Ca()}}}};k.prototype.PFa=
function(a){var d=b(a.get("frames",[])).map(function(a){return a.get("thumbnailUrl")});this.MA=b(d).map(function(a){var b=q;if(a){b=new o(g.qn);b.bind(c.U,this.pka,this);b.bind(c.zc,this.qka,this)}return b},this);b(this.MA).each(function(a,b){a&&a.load(d[b])})};k.prototype.XLa=function(){this.Zfa();this.$Q=q};k.prototype.DGa=function(){this.lA=150;this.MA.map(function(a){if(a)this.lA=Math.min(a.fd()*360/this.ya,this.lA)},this);this.L1=Math.round(this.lA/2);this.$Q=this.MA.map(function(a){return this.xBa(a,
this.lA,this.L1,this.ya,this.Opa,this.Ta)},this);this.Zfa()};k.prototype.xBa=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){var a=a.jf(),d=Math.round(b*d/360),j=Math.round(c*e/180),b=(b-d)*0.5,c=Math.round(c*(90-(f+e*0.5))/180);i.drawImage(a,b,c,d,j)}c=[];g=i.getImageData(0,0,g.width,g.height);for(e=i=0;i<g.height;i++)for(f=0;f<g.width;f++,e=e+4)c.push((0.299*g.data[e]+0.587*g.data[e+1]+0.114*
g.data[e+2])/255);return c};k.prototype.Zfa=function(){b(this.MA).each(function(a){if(a){a.unbind(c.U,this.pka,this);a.unbind(c.zc,this.qka,this);a.cancel()}},this);this.MA=q};k.prototype.pka=function(){b(this.MA).filter(function(a){return a&&!a.El()}).length==0&&this.DGa()};k.prototype.qka=I();k.prototype.yza=function(){this.ba.bind(c.u("minimumLuminance"),this.lu,this);this.ba.bind(c.u("maximumLuminance"),this.lu,this);this.ba.bind(c.u("luminanceChangeTime"),this.lu,this);this.ba.bind(c.u("maxLuminanceChangeSpeed"),
this.lu,this);this.lu()};k.prototype.SLa=function(){this.ba.unbind(c.u("minimumLuminance"),this.lu,this);this.ba.unbind(c.u("maximumLuminance"),this.lu,this);this.ba.unbind(c.u("luminanceChangeTime"),this.lu,this);this.ba.unbind(c.u("maxLuminanceChangeSpeed"),this.lu,this)};k.prototype.lu=function(){this.Jn=this.ba.get("minimumLuminance");this.bu=this.ba.get("maximumLuminance");if(this.Jn==l&&this.bu==l){this.Jn=0.2;this.bu=0.45}else this.Jn==l?this.Jn=Math.min(0.2,this.bu):this.Jn==l?this.bu=Math.max(0.45,
this.Jn):this.Jn=Math.min(this.Jn,this.bu);this.bu=Math.min(1,Math.max(0,this.bu));this.Jn=Math.min(1,Math.max(0,this.Jn));this.Nia=Math.max(100,this.ba.get("luminanceChangeTime",5E3));this.Ria=this.ba.get("maxLuminanceChangeSpeed",1);this.Ca()};k.$H=1E3;return k});
define("mE",["require","kG","w","gE","lA"],function(a){var b=a("kG"),d=a("w"),c=a("gE"),g=a("lA"),a=b.extend(g,function(a){g.call(this,a);this.YQ=this.ZQ=q;this.hj=this.xh=5E3;this.ud=l;this.cb=this.xh;this.om=1;this.ba=q;this.EA=B});a.prototype.start=function(a){this.ba=a;this.EA=B;this.KR=m;this.ZQ=d.watch(this.ba,"frameDisplayTime",this.c8,this);this.YQ=d.watch(this.ba,"frameTransitionTime",this.c8,this);this.om=this.gR(this.ba);this.ud=this.ba.sW()*(this.xh+this.hj);this.c8(m);this.Pp();this.Ca();
this.zj()};a.prototype.c8=function(a){var b=Math.max(100,this.ba.get("frameDisplayTime",5E3)),c=Math.max(100,this.ba.get("frameTransitionTime",5E3));if(this.xh!=b||this.hj!=c||a){var a=this.tE(),d=this.rDa();this.W1();this.xh=b;this.hj=c;1<this.om?(this.ud=a*(this.xh+this.hj)+d*this.xh+d*this.hj,this.cb=this.om*(this.xh+this.hj)):(this.ud=d*this.xh,this.cb=this.xh)}};a.prototype.tE=function(){return 1<this.om?Math.floor(this.ud/(this.xh+this.hj)):0};a.prototype.sDa=function(){return 1<this.om?(this.tE()+
1)%this.om:0};a.prototype.rDa=function(){return 1<this.om?Math.max(0,Math.min(1,this.ud-this.tE()*(this.xh+this.hj))):this.ud/this.xh};a.prototype.W1=function(){return 1<this.om?Math.max(0,Math.min(1,(this.ud-(this.tE()*(this.xh+this.hj)+this.xh))/this.hj)):0};a.prototype.SKa=function(a){var b=Math.floor(a/this.hj);return b*(this.xh+this.hj)+this.xh+(a-b*this.hj)};a.prototype.toa=function(a){var b=Math.floor(a/(this.xh+this.hj)),a=Math.max(0,a-b*(this.xh+this.hj)-this.xh);return b*this.hj+a};a.prototype.play=
function(){this.EA&&(this.EA=B,this.KR&&this.Ca(),this.zj())};a.prototype.pause=function(){this.EA=m;this.zj()};a.prototype.gH=function(){this.pause()};a.prototype.oH=function(){this.play()};a.prototype.end=function(){this.KR=B;this.ba=q;this.ZQ&&(this.ZQ.unwatch(),this.ZQ=q);this.YQ&&(this.YQ.unwatch(),this.YQ=q);this.zj()};a.prototype.IC=function(a){this.ud=a;this.Ca()};a.prototype.yy=function(a){this.ud=this.SKa(a);this.Ca();this.pause()};a.prototype.ld=function(a){if(this.KR){this.EA||(this.ud+=
a);this.ud%=this.cb;for(var a=this.tE(),b=this.sDa(),c=this.W1(),d=b>a?c:1,c=b>a?1:1-c,g=0;g<this.om;g++){var k;k=g==a?c:g==b?d:0;var n=this.h.kf(this.c2(this.ba,g));n.get("alpha")!=k&&(0<k&&1>k&&n.xk(),n.set("alpha",k))}this.Pp();this.EA||this.Ca()}};a.prototype.Ij=function(){return this.KR?this.EA?c.Gb:c.S:c.L};a.prototype.zj=function(){g.prototype.zj.call(this,this.Ij())};a.prototype.Pp=function(){var a=this.ud,b=this.cb,c=this.toa(this.ud),d=this.toa(this.cb),o=this.om+1,k=0===this.W1()?this.tE():
l;g.prototype.Pp.call(this,a,b,c,d,o,k)};return a});define("bI",["require","kG","lA"],function(a){var b=a("kG"),d=a("lA");return b.extend(d,function(a){d.call(this,a)})});
define("lJ",["require","kG","nU","gE","lA"],function(a){var b=a("kG"),d=a("nU"),c=a("gE"),g=a("lA"),a=b.extend(g,function(a){g.call(this,a);this.Le=B});a.prototype.ZG=I();a.prototype.start=function(a){this.end();this.ba=a;this.ba.set("mute",this.Le);this.ba.get("autoplay")&&this.ba.set("state",c.S);this.ct()};a.prototype.getTime=function(){return this.ba?this.ba.get("currentTime"):0};a.prototype.Ij=function(){return this.ba?this.ba.get("state"):c.L};a.prototype.play=function(){this.ba&&this.ba.set("state",
c.S)};a.prototype.pause=function(){this.ba&&this.ba.set("state",c.Gb)};a.prototype.IX=function(){this.ba&&this.ba.set("state",c.Gb)};a.prototype.stop=function(){this.ba&&this.ba.set("state",c.L)};a.prototype.end=function(){this.ba&&(this.zu(),this.ba=q)};a.prototype.IC=function(a){this.ba&&this.ba.set("state",c.S);this.ba&&this.ba.set("currentTime",a)};a.prototype.nf=function(a){this.Le=a;this.ba&&this.ba.set("mute",this.Le)};a.prototype.ct=function(){this.ba.bind(d.u("currentTime"),this.Ae,this,
m);this.ba.bind(d.u("duration"),this.Am,this,m);this.ba.bind(d.u("state"),this.cf,this,m);this.ba.get("state")!=c.L&&this.zj()};a.prototype.zu=function(){this.ba.unbind(d.u("currentTime"),this.Ae,this,m);this.ba.unbind(d.u("duration"),this.Am,this,m);this.ba.unbind(d.u("state"),this.cf,this,m)};a.prototype.cf=function(){this.zj()};a.prototype.Ae=function(){this.Pp()};a.prototype.Am=function(){this.Pp()};a.prototype.Pp=function(){this.ba&&g.prototype.Pp.call(this,this.ba.get("currentTime"),this.ba.get("duration"))};
return a});
define("v","require,kG,gE,cs,fQ,eQ,lA,bq,mE,bI,lJ".split(","),function(a){var b=a("kG");a("gE");var d=a("cs"),c=a("fQ"),g=a("eQ"),f=a("lA"),i=a("bq"),e=a("mE"),j=a("bI"),o=a("lJ"),k=b.extend(c,function(a){c.call(this);this.h=a;this.P3=this.uQ(e);this.G2=this.uQ(i);this.zV=this.uQ(o);this.e7=this.uQ(j);this.Cd=q});k.prototype.clear=function(){this.hQ(this.P3);this.P3=q;this.hQ(this.G2);this.G2=q;this.hQ(this.zV);this.zV=q;this.hQ(this.e7);this.h=this.Cd=this.e7=q};k.prototype.uQ=function(a){a=new a(this.h);
a.bind(f.qb,this.se,this,m);a.bind(f.$i,this.op,this,m);a.bind(f.rc,this.ye,this,m);return a};k.prototype.hQ=function(a){a.unbind(f.qb,this.se,this);a.unbind(f.$i,this.op,this);a.unbind(f.rc,this.ye,this);a.clear()};k.prototype.t3=function(a,b){return g.xa(b,a)};k.prototype.hha=function(a){return this.t3(a,"HDRPanorama")?this.G2:this.t3(a,"LivePanorama")?this.P3:this.t3(a,"VideoPanorama")?this.zV:this.e7};k.prototype.ZG=function(a){(this.Cd=this.hha(a))&&this.Cd.ZG(a)};k.prototype.start=function(a){this.se();
(this.Cd=this.hha(a))&&this.Cd.start(a)};k.prototype.Ij=function(){if(this.Cd)return this.Cd.Ij()};k.prototype.getTime=function(){return this.Cd?this.Cd.getTime():0};k.prototype.play=function(){this.Cd&&this.Cd.play()};k.prototype.pause=function(){this.Cd&&this.Cd.pause()};k.prototype.gH=function(){this.Cd&&this.Cd.gH()};k.prototype.oH=function(){this.Cd&&this.Cd.oH()};k.prototype.IX=function(){this.Cd&&this.Cd.IX()};k.prototype.stop=function(){this.Cd&&this.Cd.stop();this.trigger(new d(k.$i,{duration:0,
time:0,steps:l,selectedStep:l}))};k.prototype.end=function(){if(this.Cd){this.Cd.end();this.Cd=q}};k.prototype.IC=function(a){this.Cd&&this.Cd.IC(a)};k.prototype.yy=function(a){this.Cd&&this.Cd.yy(a)};k.prototype.Hy=function(){this.Cd&&this.Cd.Hy()};k.prototype.ld=function(a){this.Cd&&this.Cd.ld(a)};k.prototype.nf=function(a){this.zV.nf(a)};k.prototype.se=function(){this.trigger(new d(k.qb))};k.prototype.op=function(a){this.trigger(new d(k.$i,a.data))};k.prototype.ye=function(a){this.trigger(new d(k.rc,
a.data))};k.qb="request frame";k.Gwa="frame display";k.Hwa="frame hide";k.$i="time change";k.rc="playback state change";return k});
define("lK",["require","kG","nU","fQ","kH"],function(a){var b=a("kG"),d=a("nU"),c=a("fQ"),g=a("kH"),a=b.extend(c,function(a){c.call(this);this.h=a;this.$g=this.ba=q});a.prototype.start=function(a){this.ba=a;this.$g=this.h.kf(this.ba);this.$g.bind(d.U,this.cd,this,m);this.$g.bind(d.gc,this.ou,this,m);this.$g.get("ready")?this.trigger(d.Oc,{panorama:this.ba}):this.$g.bind(d.Oc,this.hF,this,m);this.$g.set("loadingActive",m)};a.prototype.stop=function(){this.ba=q;this.$g&&(this.$g.unbind(d.Oc,this.hF,
this),this.$g.unbind(d.U,this.cd,this),this.$g.unbind(d.gc,this.ou,this),this.$g.set("loadingActive",B),this.$g=q,this.trigger(d.Lf))};a.prototype.clear=function(){this.stop()};a.prototype.hF=function(){this.$g.unbind(d.Oc,this.hF,this);this.trigger(d.Oc,{panorama:this.ba})};a.prototype.cd=function(){this.$g.unbind(d.Oc,this.hF,this);this.$g.unbind(d.U,this.cd,this);this.$g.unbind(d.gc,this.ou,this);this.$g=q;this.trigger(d.U,{panorama:this.ba});this.ba=q;this.trigger(d.Lf)};a.prototype.ou=function(a){this.trigger(new g(d.gc,
a.Kg))};return a});
define("jq","require,kG,nU,cs,fQ,R".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("R"),i=b.extend(g,function(a){g.call(this);this.h=a;this.dp=this.ba=this.ei=q;this.Ta=this.ua=0;this.ya=Math.PI*0.5});i.prototype.clear=function(){this.stop();this.sma();this.ei=this.h=q};i.prototype.Eaa=function(a){if(this.ei!=a){this.sma();this.kQ();this.ei=a;this.dea();this.Cya()}};i.prototype.Cya=function(){this.ei&&this.ei.bind(d.u("map"),this.rka,this,B)};i.prototype.sma=function(){this.ei&&
this.ei.unbind(d.u("map"),this.rka,this,B)};i.prototype.stop=function(){this.kQ();this.ba=q};i.prototype.ld=function(){this.ua=this.h.Uc();this.Ta=this.h.Mc();this.ya=this.h.ng();this.ei&&this.dp&&this.ei.an(this.dp,this.ua,this.Ta,this.ya)};i.prototype.rka=function(){if(this.ba){this.kQ();(this.dp=this.Sma(this.ba,this.ei.get("map",q),B))&&this.Mna()}};i.prototype.display=function(a){if(this.ba!=a){this.kQ();this.ba=a;this.dea()}};i.prototype.hide=function(a){this.ba==a&&this.stop()};i.prototype.kQ=
function(){if(this.dp){this.LEa();this.dp=q}};i.prototype.dea=function(){if(this.ei&&this.ba)(this.dp=this.Sma(this.ba,this.ei.get("map",q),m))&&this.Mna()};i.prototype.Sma=function(a,b,c){for(var a=a.get("mapLocations",[]),d=0;d<a.length;d++){var g=a[d];if(g.get("map")==b)return g}return c&&a.length>0?a[0]:q};i.prototype.Mna=function(){this.ei.GNa(this.dp);this.ei.bind(f.Oj,this.yma,this,m);this.ei.an(this.dp,this.ua,this.Ta,this.ya)};i.prototype.LEa=function(){if(this.ei){this.ei.pRa(this.dp);this.ei.unbind(f.Oj,
this.yma,this)}};i.prototype.yma=function(a){this.trigger(new c(i.Oj,{yawDelta:a.data.yawDelta}))};i.Oj="request yaw change";return i});
define("ft",["require","kG","cs","fQ","eI"],function(a){var b=a("kG"),d=a("cs"),c=a("fQ"),g=a("eI"),f=b.extend(c,function(a){c.call(this);this.h=a;this.h.bind(g.QY,this.$ka,this,m)});f.prototype.clear=function(){this.h.unbind(g.QY,this.$ka,this,m);this.h=q};f.prototype.yb=function(){this.h.yb()};f.prototype.$ka=function(a){a=a.data.frameTime;this.trigger(new d(f.xo,{frameTime:a}));this.trigger(new d(f.yo,{frameTime:a}))};f.xo="frameStart";f.yo="positionSet";return f});
define("dl",["require","t","kj"],function(a){function b(){this.ia=this.Z=0;this.ya=90;this.gl="landscape";this.W4=B;this.qJ=d.ob()}var d=a("t"),c=a("kj");b.prototype.Zua=function(a){this.ya=this.mra(a)};b.prototype.mra=function(a){return this.qJ&&"portrait"==this.gl?c.XB(a,this.ia,this.Z):a};b.prototype.bPa=function(a){return this.qJ&&"portrait"==this.gl?c.Dl(a,this.Z,this.ia):a};b.prototype.po=function(a){return this.ya=this.qJ&&this.W4?c.XB(a,this.ia,this.Z):a};b.prototype.Msa=function(){return this.qJ&&
this.W4};b.prototype.bv=function(){return this.qJ&&"portrait"==this.gl};b.prototype.ng=S("ya");b.prototype.XV=function(a){return c.XB(a,this.ia,this.Z)};b.prototype.setSize=function(a,b){this.Z=a;this.ia=b;var c=this.WDa();this.W4=this.gl!=c;this.gl=c};b.prototype.WDa=function(){return 0===this.Z||0===this.ia?"landscape":this.Z<this.ia?"portrait":"landscape"};return b});
define("ih","require,dY,kG,nU,cs,fQ,mY".split(","),function(a){a("dY");var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("mY"),a=b.extend(g,function(a){g.call(this);this.h=a;this.um=new f(a);this.um.bind(f.HY,this.fka,this,m);this.um.bind(f.GY,this.eka,this,m)});a.prototype.clear=function(){this.um.unbind(f.HY,this.fka,this,m);this.um.unbind(f.GY,this.eka,this,m);this.um.clear();this.um=q};a.prototype.zy=function(a){this.um.xd(a)};a.prototype.ui=R("ba");a.prototype.end=function(){this.ba=q};a.prototype.fka=
function(a){this.Poa(a);(a=this.Rma(this.h.Uc(),this.xha()))&&a.trigger(d.Ul)};a.prototype.eka=function(a){this.Poa(a);(a=this.Rma(this.h.Uc()-180,this.xha()))&&a.trigger(d.Ul)};a.prototype.Poa=function(a){this.h.wb().trigger(new c(d.dz,{BO:a}))};a.prototype.xha=function(){return this.h.uc.get("keyboardTranslateSelectionAngle")};a.prototype.Rma=function(a,b){var c,d;if(!this.ba)return q;c!==l||(c=-90);d!==l||(d=360);var f=a-b*0.5,g=a+b*0.5,i=Math.max(-90,c-d*0.5),t=Math.max(90,c+d*0.5);d=this.ba.get("adjacentPanoramas",
[]).slice();d=d.filter(function(b){if(!b.get("enabled"))return B;b=this.pm(b);if(!b)return B;var c;c=b.Na;for(var d=a-180,j=a+180;c<d;)c=c+(j-d);for(;c>j;)c=c-(j-d);b=b.pitch;return f<=c&&c<=g&&i<=b&&b<=t}.bind(this));if(d.length==0)return q;d.sort(function(b,d){var f=this.pm(b),g=this.pm(d);return(a-f.Na)*(a-f.Na)+(c-f.pitch)*(c-f.pitch)-((a-g.Na)*(a-g.Na)+(c-g.pitch)*(c-g.pitch))}.bind(this));return d[0]};a.prototype.pm=function(a){var b=a.get("yaw"),a=a.get("distance");if(b===l||a===l)return q;
var c=this.ba.get("distanceToFloor");return{Na:b,pitch:-90+Math.atan2(a,c)*i}};var i=180/Math.PI;return a});
define("lc","require,kG,nU,cs,fQ,cY,bs,od,v,lK,jq,ft,dl,ih,dx".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("cY"),i=a("bs"),e=a("od"),j=a("v"),o=a("lK"),k=a("jq"),n=a("ft"),r=a("dl"),p=a("ih"),t=a("dx"),s=b.extend(g,function(a,b){g.call(this);this.K=a;this.h=b;this.h.set("visible",B);this.tc=new r;this.Yf=new n(this.h);this.fe=new o(this.h);this.Bb=new e(this.K,this.h,this.tc);this.Qa=new i(this.h,this.tc);this.af=new j(this.h);this.cu=new k(this.h);this.Ad=new f(this.h);
this.gV=new p(this.h);this.Yf.bind(n.xo,this.qx,this,m);this.Yf.bind(n.yo,this.rx,this,m);this.fe.bind(d.Oc,this.nka,this,m);this.fe.bind(d.Lf,this.vK,this,m);this.fe.bind(d.gc,this.ii,this,m);this.Bb.bind(e.qb,this.se,this,m);this.Bb.bind(e.RY,this.oka,this,m);this.Bb.bind(e.IY,this.Eka,this,m);this.Bb.bind(e.pY,this.yja,this,m);this.Bb.bind(e.qY,this.zja,this,m);this.Bb.bind(e.az,this.EK,this,m);this.Bb.bind(e.Zy,this.px,this,m);this.Bb.bind(e.$y,this.mu,this,m);this.Bb.bind(e.Yy,this.DK,this,m);
this.Bb.bind(e.zo,this.wx,this,m);this.Qa.bind(i.qb,this.se,this,m);this.Qa.bind(i.Nj,this.kp,this);this.Qa.bind(i.wo,this.Cm,this);this.Qa.bind(i.rc,this.ye,this,m);this.Qa.bind(i.wg,this.qp,this,m);this.Qa.bind(i.vg,this.pp,this,m);this.af.bind(j.qb,this.se,this,m);this.af.bind(j.$i,this.op,this,m);this.af.bind(j.rc,this.ye,this,m);this.cu.bind(k.Oj,this.tka,this,m)});s.prototype.clear=function(){this.fe.clear();this.Yf.clear();this.Qa.clear();this.Bb.clear();this.af.clear();this.cu.clear();this.Ad.clear();
this.fe.unbind(d.Oc,this.nka,this);this.fe.unbind(d.Lf,this.vK,this);this.fe.unbind(d.gc,this.ii,this);this.Yf.unbind(n.xo,this.qx,this);this.Yf.unbind(n.yo,this.rx,this);this.Bb.unbind(e.qb,this.se,this);this.Bb.unbind(e.RY,this.oka,this);this.Bb.unbind(e.IY,this.Eka,this);this.Bb.unbind(e.pY,this.yja,this);this.Bb.unbind(e.qY,this.zja,this);this.Bb.unbind(e.az,this.EK,this);this.Bb.unbind(e.Zy,this.px,this);this.Bb.unbind(e.$y,this.mu,this);this.Bb.unbind(e.Yy,this.DK,this);this.Bb.unbind(e.zo,
this.wx,this);this.Qa.unbind(i.Lwa,this.se,this);this.Qa.unbind(i.Nj,this.kp,this);this.Qa.unbind(i.wo,this.Cm,this);this.Qa.unbind(i.rc,this.ye,this,m);this.Qa.unbind(i.wg,this.qp,this);this.Qa.unbind(i.vg,this.pp,this);this.af.unbind(j.qb,this.se,this);this.af.unbind(j.$i,this.op,this);this.af.unbind(j.rc,this.ye,this);this.cu.unbind(k.Oj,this.tka,this);this.K=this.h=this.gV=this.Ad=this.cu=this.af=this.Bb=this.Qa=this.Yf=this.fe=q};s.prototype.Eaa=function(a){this.cu.Eaa(a)};s.prototype.Gaa=function(a){this.Bb.Gaa(a)};
s.prototype.ui=function(a,b,c){this.h.set("visible",m);this.af.IX();a.set("currentTime",c);this.Bb.start(a,b)};s.prototype.UG=function(){return this.fe.ba||this.Bb.MOa()||this.Bb.Rq};s.prototype.rv=function(){this.fe.stop();this.af.end();this.Qa.end();this.Bb.hide();this.cu.stop();this.Ad.end();this.gV.end()};s.prototype.oH=function(){this.Qa.resume();this.af.oH()};s.prototype.gH=function(){this.Qa.pause();this.af.gH()};s.prototype.play=function(){this.Qa.play();this.Ad.play();this.af.play()};s.prototype.pause=
function(){this.Qa.pause();this.Ad.pause();this.af.pause()};s.prototype.stop=function(){this.Qa.stop();this.Ad.stop();this.af.stop()};s.prototype.zy=function(a){this.Qa.zy(a);this.gV.zy(a)};s.prototype.getTime=function(){return this.af.getTime()};s.prototype.moveTo=function(a,b,c,d,e){this.Qa.moveTo(a,b,c,d,e)};s.prototype.Uc=function(){return this.h?this.h.Uc():l};s.prototype.Mc=function(){return this.h?this.h.Mc():l};s.prototype.uf=function(){return this.h?this.h.uf():l};s.prototype.ng=function(){return this.h?
this.tc.bPa(this.h.ng()):l};s.prototype.wN=function(){return this.h?this.h.wN():l};s.prototype.xN=function(){return this.h?this.h.xN():l};s.prototype.ye=function(){var a=this.af.Ij()||this.Qa.Ij();this.trigger(new c(s.rc,{state:a}))};s.prototype.Lj=function(a){this.Qa.Lj(a)};s.prototype.nO=function(a){this.Qa.nO(a)};s.prototype.By=function(a){this.Qa.By(a)};s.prototype.oO=function(a){this.Qa.oO(a)};s.prototype.nf=function(a){this.af.nf(a)};s.prototype.KC=function(a){this.Qa.KC(a)};s.prototype.sPa=
function(a,b){var c=t.get(a,b,this.h.Uc(),this.h.Mc(),this.h.uf(),this.h.ng(),this.h.Ua(),this.h.Cb());return c?{x:c.x,y:c.y}:q};s.prototype.hPa=function(a,b){var c=t.YTa(a,b,this.h);return c?{yaw:c.Na,pitch:c.pitch}:q};s.prototype.iaa=function(){this.h.iaa()};s.prototype.oka=function(a){this.fe.start(a.data.panorama)};s.prototype.ii=function(a){this.h.sX(m);this.trigger(new c(s.qq,{percent:a.Kg}))};s.prototype.nka=function(a){this.af.end();this.gV.ui(a.data.panorama)};s.prototype.vK=function(){this.h.sX(B);
this.trigger(new c(s.Ty))};s.prototype.se=function(){this.Yf.yb()};s.prototype.qx=function(a){a=a.data.frameTime;this.tc.setSize(this.h.Ua(),this.h.Cb());this.Bb.ov(a);this.Qa.ov(a)};s.prototype.rx=function(a){a=a.data.frameTime;this.Bb.ld(a);this.Qa.ld(a);this.af.ld(a);this.cu.ld(a);this.Ad.ld(a)};s.prototype.EK=function(a){this.cu.display(a.data.panorama);this.af.ZG(a.data.panorama);this.trigger(new c(s.az,{panorama:a.data.panorama}))};s.prototype.Eka=function(a){this.cu.hide(a.data.panorama)};
s.prototype.yja=function(a){this.af.start(a.data.panorama);this.Ad.start(a.data.panorama)};s.prototype.zja=function(){this.af.end();this.h.set("visible",B)};s.prototype.DK=function(a){this.Qa.end();this.Ad.end(a.data.nextPanorama);this.trigger(new c(s.Yy,{panorama:a.data.panorama}))};s.prototype.mu=function(a){this.Qa.start(a.data.panorama,a.data.camera);this.trigger(new c(s.$y,{panorama:a.data.panorama}))};s.prototype.px=function(a){this.trigger(new c(s.Zy,{panorama:a.data.panorama}))};s.prototype.tka=
function(a){this.Qa.Naa(a.data.yawDelta,0)};s.prototype.kp=function(a){this.trigger(new c(s.Nj,a.data))};s.prototype.Cm=function(a){this.trigger(new c(s.wo,a.data))};s.prototype.wx=function(a){this.trigger(new c(s.zo,a.data))};s.prototype.qp=function(){this.af.Hy();this.trigger(new c(s.wg))};s.prototype.pp=function(){this.trigger(new c(s.vg))};s.prototype.Sua=function(a){this.af.IC(a)};s.prototype.yy=function(a){this.af.yy(a)};s.prototype.op=function(a){this.trigger(new c(s.$i,a.data))};s.qq="loadingProgress";
s.Ty="loadingEnd";s.Nj="movementChange";s.wo="positionChange";s.az="panoramaStart";s.Yy="panoramaEnd";s.$y="panoramaShow";s.Zy="panoramaHide";s.rc="playbackStateChange";s.wg="userInteractionStart";s.vg="userInteractionEnd";s.$i="timeChange";s.zo="transitionEnd";return s});
define("nA","require,dY,jquery.mod,kG,lh,nU,cs,gE,cy,eQ,me,cS,dT,gR,lc,eb,eI,hl,ip,bu,dV,gq".split(","),function(a){a("dY");a("jquery.mod");var b=a("kG");a("lh");var d=a("nU"),c=a("cs"),g=a("gE"),f=a("cy"),i=a("eQ"),e=a("me"),j=a("cS"),o=a("dT"),k=a("gR"),n=a("lc"),r=a("eb"),p=a("eI"),t=a("hl"),s=a("ip"),u=a("bu"),v=a("dV"),w=a("gq"),x=b.extend(o,function(){o.call(this,"panorama");o.prototype.set.call(this,"rotationEnabled",m);o.prototype.set.call(this,"zoomEnabled",m);o.prototype.set.call(this,"surfaceSelectionEnabled",
B);o.prototype.set.call(this,"surfaceSelectionHorizontalAngle",90);o.prototype.set.call(this,"surfaceSelectionVerticalAngle",180);o.prototype.set.call(this,"adjacentPanoramaPositionsEnabled",B);o.prototype.set.call(this,"fxaaEnabled",B);o.prototype.set.call(this,"aaEnabled",B);this.p7=this.U2=this.Ow=this.mS=this.eS=this.M_=this.Bx=this.Mh=this.k_=B;this.x2=m;this.Wo=this.KE=this.sQ=B;this.aR=this.N1=this.ud=this.cb=0;this.q5=this.s5=l;this.j4=m;this.li=g.L;this.B=this.h=q;this.kja={};for(var a in x.bt)this.kja[a]=
this.BBa(a);this.TP=new e(this,"buttonToggleGyroscope",v.Uj);this.TP.bind(d.yi,function(){this.set("gyroscopeEnabled",m)},this);this.TP.bind(d.Sj,function(){this.set("gyroscopeEnabled",B)},this);this.TP.set("pressed",this.get("gyroscopeEnabled")&&t.available);this.Gza=new e(this,"buttonCardboardView",v.ne);this.Gza.bind(d.ca,function(){this.set("viewMode",x.Zv)},this,m);this.Vza=new e(this,"buttonVRView",v.ne);this.Vza.bind(d.ca,function(){this.set("viewMode",x.Zv)},this,m);u.bind(d.qa,function(){this.Ooa("viewMode");
this.trigger(x.Sba)},this,m);this.UP=new e(this,"buttonToggleHotspots",v.Uj);this.UP.bind(d.yi,function(){this.set("hotspotsEnabled",m)},this);this.UP.bind(d.Sj,function(){this.set("hotspotsEnabled",B)},this);this.UP.set("pressed",this.get("hotspotsEnabled"));this.WP=new e(this,"buttonToggleSurfaceSelection",v.Uj);this.WP.bind(d.yi,function(){this.set("surfaceSelectionEnabled",m)},this);this.WP.bind(d.Sj,function(){this.set("surfaceSelectionEnabled",B)},this);this.WP.set("pressed",this.get("surfaceSelectionEnabled"));
this.Tza=new e(this,"buttonScreenshot",v.ne);this.Tza.bind(d.ca,this.Kma,this,m);this.Pd=b.hq(this.Ig,this);this.set("arrowKeysAction","rotate");this.set("doubleClickAction","inherit");this.set("hotspotsEnabled",m);this.set("preloadEnabled",m);this.set("keyboardTranslateSelectionAngle",90)});x.Kba="cameraPositionChange";x.wg="userInteractionStart";x.vg="userInteractionEnd";x.qq="loadingProgress";x.Pba="preloadMediaShow";x.Sba="viewModeChange";i.F("PanoramaPlayer",x).H("Object").Q({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]",model3DPlayer:"Model3DPlayer",mouseControlMode:"enum[drag_acceleration, drag_rotation]",panorama:"Panorama",pitch:"number",preloadEnabled:"bool",roll:"number",startTime:"number",state:"enum[stopped, playing, paused]",adjacentPanoramaPositionsEnabled:"bool",
surfaceSelectionHorizontalAngle:"number",surfaceSelectionVerticalAngle:"number",surfaceSelectionEnabled:"bool",touchControlMode:"enum[drag_acceleration, drag_rotation]",video:"Video360",viewMode:"enum[standard, cardboard, vr]",videoPanoramaDisplayPlaybackBar:"bool",viewerArea:"ViewerArea",yaw:"number",zoomEnabled:"bool"}).fc([d.fP,x.Kba,x.qq,x.wg,x.vg,x.Pba,x.Sba,d.Fc,j.xf,j.xi]).Mg({moveLeft:function(){this.Cc(r.jD)},moveRight:function(){this.Cc(r.kD)},moveUp:function(){this.Cc(r.lD)},moveDown:function(){this.Cc(r.iD)},
playLeft:function(){this.Cc([r.jD,r.S])},playRight:function(){this.Cc([r.kD,r.S])},playUp:function(){this.Cc([r.lD,r.S])},playDown:function(){this.Cc([r.iD,r.S])},play:function(){this.tj()},pause:function(){this.Nn()},stop:function(){this.vx()},seek:function(a){this.tB(a)},setFramePlaybackPosition:function(a){this.AJa(a)},setFrameTransitionPosition:function(a){this.BJa(a)},restart:function(){this.sx()},zoomIn:function(){this.Cc(r.Zs)},zoomOut:function(){this.Cc(r.$s)},resumeCamera:function(){this.KIa()},
pauseCamera:function(){this.CHa()},moveTo:function(a,b,c,d){this.jja(a,b,c,d,B)},setPosition:function(a,b,c,d){this.jja(a,b,c,d,m)},getScreenPosition:function(a,b){return this.mEa(a,b)},getPanoramaPosition:function(a,b){return this.XDa(a,b)},saveScreenshot:function(){return this.Kma()}});x.prototype.get=function(a,b){switch(a){case "currentTime":return this.B&&this.B.getTime()||0;case "viewMode":return u.isPresenting()?x.Zv:x.TZ;case "video":a="panorama";break;case "rendererPanorama":return this.B&&
this.B.UG()}if(!b)switch(a){case "mouseControlMode":b=f.hca;break;case "touchControlMode":b=f.$ca}return o.prototype.get.call(this,a,b)};x.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "application":this.k_=m;this.Pd();break;case "startTime":this.Bx=m;this.Pd();break;case "video":case "panorama":a="panorama";this.Bx=m;this.Pd();break;case "camera":this.M_=m;this.Pd();break;case "viewerArea":this.Mh=m;this.Pd();break;case "displayPlaybackBar":case "hdrPanoramaDisplayPlaybackBarSteps":case "livePanoramaDisplayPlaybackBarSteps":case "buttonPlay":case "buttonPlayPause":this.Wo=
m;this.Pd();break;case "mapPlayer":this.eS=m;this.Pd();break;case "model3DPlayer":this.mS=m;this.Pd();break;case "gyroscopeEnabled":this.Ow=m;this.Pd();break;case "gyroscopeVerticalDraggingEnabled":this.x2=m;this.Pd();break;case "viewMode":if(b=="vr")b=x.Zv;b==x.Zv&&!u.isPresenting()?u.yk():b!=x.Zv&&u.isPresenting()&&u.Hf();b=u.isPresenting()?x.Zv:x.TZ;break;case "hotspotsEnabled":this.U2=m;this.Pd();break;case "mouseControlMode":case "touchControlMode":this.sQ=m;this.Pd();break;case "surfaceSelectionEnabled":p.Dva()||
(b=B);this.p7=m;this.Pd()}o.prototype.set.call(this,a,b)}};x.prototype.lq=function(a){this.KE=a;this.B&&this.B.zy(this.KE)};x.prototype.Eqa=function(){return this.get("doubleClickAction")!="inherit"};x.prototype.C_=function(a){o.prototype.C_.call(this,a);a.bind(d.Tl,this.Rpa,this,m)};x.prototype.V7=function(a){o.prototype.V7.call(this,a);a.unbind(d.Tl,this.Rpa,this,m)};x.prototype.Rpa=function(){switch(this.get("doubleClickAction")){case "toggle_fullscreen":var a=this.get("application").Fi;a&&a.available()&&
a.toggle()}};x.prototype.BBa=function(a){var b=x.bt[a],a=new e(this,a,v.ne);a.bind(d.zb,function(){this.Cc(b.movement)},this);b.stopOnRelease&&a.bind(d.Wb,function(){this.Cc(r.Lf)},this);return a};x.prototype.Ig=function(){if(this.Mh||this.k_){this.Mh=this.k_=B;this.sQ=this.Ow=this.mS=this.eS=m;this.yt();this.get("viewerArea")&&this.get("application")&&this.ut();this.QL(this.get("viewerArea"))}var a=B;if(this.h){if(this.eS){this.eS=B;this.B.Eaa(this.get("mapPlayer"))}if(this.mS){this.mS=B;this.B.Gaa(this.get("model3DPlayer"))}if(this.sQ){this.sQ=
B;this.B.By(this.get("mouseControlMode"));this.B.KC(this.get("touchControlMode"))}if(this.Bx||this.M_){this.aR=this.N1=this.cb=this.ud=0;this.q5=this.s5=l;a=m;this.M_=this.Bx=B;if(this.get("panorama"))this.B.ui(this.get("panorama"),this.get("camera",new k),this.get("startTime"));else{this.B.rv();this.j4=m;this.li=g.L;this.mc(g.L)}}if(this.x2){this.x2=B;this.B.oO(this.get("gyroscopeVerticalDraggingEnabled",m))}if(this.Ow){this.Ow=B;var b=this.get("gyroscopeEnabled")&&t.available;if(b&&t.disabled){b=
B;s.Xba.show(function(){t.eaa(function(){this.set("gyroscopeEnabled",m)}.bind(this))}.bind(this))}this.set("gyroscopeEnabled",b);this.B.nO(b);this.TP.set("pressed",b)}if(this.U2){this.U2=B;this.UP.set("pressed",this.get("hotspotsEnabled"))}if(this.Wo){this.Wo=B;a=m}if(this.p7){this.p7=B;this.WP.set("pressed",this.get("surfaceSelectionEnabled"))}a&&this.Vu()}};x.prototype.YF=function(){this.set("panorama",q)};x.prototype.ut=function(){var a=this.get("viewerArea"),b=this.get("application");this.h=new p(b,
a,this);this.h.$({left:0,top:0,bottom:0,right:0});a.Oa(this.h);this.B=new n(a,this.h);this.B.bind(n.Nj,this.kp,this);this.B.bind(n.wo,this.Mja,this);this.B.bind(n.qq,this.ii,this);this.B.bind(n.Ty,this.eF,this);this.B.bind(n.$y,this.mu,this,m);this.B.bind(n.Zy,this.px,this,m);this.B.bind(n.az,this.EK,this,m);this.B.bind(n.Yy,this.DK,this,m);this.B.bind(n.rc,this.ye,this);this.B.bind(n.wg,this.qp,this);this.B.bind(n.vg,this.pp,this);this.B.bind(n.$i,this.op,this);this.B.bind(n.zo,this.wx,this,m);this.get("application").bind(d.u("mute"),
this.BK,this);this.get("application").get("mute",B)&&this.B.nf(m);this.B&&this.B.zy(this.KE);u.bind(d.qa,this.Ln,this,m);this.l0();this.Ux(m)};x.prototype.yt=function(){if(this.h){this.B.unbind(n.Nj,this.kp,this);this.B.unbind(n.wo,this.Mja,this);this.B.unbind(n.qq,this.ii,this);this.B.unbind(n.Ty,this.eF,this);this.B.unbind(n.$y,this.mu,this,m);this.B.unbind(n.Zy,this.px,this,m);this.B.unbind(n.az,this.EK,this,m);this.B.unbind(n.Yy,this.DK,this,m);this.B.unbind(n.rc,this.ye,this);this.B.unbind(n.wg,
this.qp,this);this.B.unbind(n.vg,this.pp,this);this.B.unbind(n.$i,this.op,this);this.B.unbind(n.zo,this.wx,this);this.B.clear();this.B=q;this.get("application").unbind(d.u("mute"),this.BK,this);this.h.getParent().removeChild(this.h);this.h=q;u.unbind(d.qa,this.Ln,this,m);this.Ux(B)}};x.prototype.BK=function(){this.h&&this.B.nf(this.get("application").get("mute",B))};x.prototype.ye=function(a){this.li=a.data.state;this.$f()};x.prototype.$f=function(){this.mc(this.j4||u.isPresenting()?this.li:g.S)};
x.prototype.qp=function(){this.trigger(new c(x.wg))};x.prototype.pp=function(){this.trigger(new c(x.vg))};x.prototype.EK=function(a){this.trigger(new c(x.Pba,{panorama:a.data.panorama}))};x.prototype.DK=I();x.prototype.mu=function(a){this.l0();this.QJ(a.data.panorama)};x.prototype.px=function(a){this.PJ(a.data.panorama)};x.prototype.kp=function(a){for(var b in x.bt)this.kja[b].set("state",a.data[x.bt[b].pressedOn]?w.bb:w.me);this.j4=a.data.stopped;this.$f();this.trigger(new c(d.fP,a.data))};x.prototype.Mja=
function(a){this.l0();this.trigger(new c(x.Kba,a.data))};x.prototype.l0=function(){if(this.B){this.set("yaw",this.B.Uc());this.set("pitch",this.B.Mc());this.set("roll",this.B.uf());this.set("hfov",this.B.ng());this.set("actualHFOV",this.B.wN());this.set("actualVFOV",this.B.xN())}};x.prototype.ii=function(a){this.h.getParent().$({progressPercent:a.data.percent,progressVisible:m});this.trigger(new c(x.qq,a.data))};x.prototype.eF=function(){this.h.getParent().set("progressVisible",B)};x.prototype.wx=
function(){this.trigger(d.AZ)};x.prototype.Ln=function(){this.set("viewMode",u.isPresenting()?x.Zv:x.TZ);this.$f()};x.prototype.jja=function(a,b,c,d,e){this.B&&this.B.moveTo(a,b,c,d,e)};x.prototype.Cc=function(a){this.B&&this.B.Lj(a)};x.prototype.tj=function(){this.B.play()};x.prototype.Om=function(){this.B.stop()};x.prototype.Nn=function(){this.B.pause()};x.prototype.tB=function(a){this.B&&(this.kha()?this.B.yy(a):this.B.Sua(a))};x.prototype.AJa=function(a){this.B&&this.B.Sua(a)};x.prototype.BJa=
function(a){this.B&&this.B.yy(a)};x.prototype.CHa=function(){this.B&&this.B.gH()};x.prototype.KIa=function(){this.B&&this.B.oH()};x.prototype.mEa=function(a,b){if(this.B)return this.B.sPa(a,b)};x.prototype.XDa=function(a,b){if(this.B)return this.B.hPa(a,b)};x.prototype.Kma=function(){this.B&&this.B.iaa()};x.prototype.fL=function(a){this.tB(a.data.position)};x.prototype.op=function(a){this.ud=a.data.time;this.cb=a.data.duration;this.N1=a.data.transitionPosition;this.aR=a.data.transitionLength;this.s5=
a.data.steps;this.q5=a.data.selectedStep;this.Vu()};x.prototype.Vu=function(){var a=this.h.getParent(),b=B;if(this.qDa()){var c=this.kha(),d=this.ZDa();if(c){if(this.aR>0){a.$({playbackBarPosition:this.N1,playbackBarDuration:this.aR,playbackBarSteps:this.s5,playbackBarSelectedStep:this.q5,playbackBarLiveDragging:d});b=m}}else if(this.cb>0){a.$({playbackBarPosition:this.ud,playbackBarDuration:this.cb,playbackBarSteps:l,playbackBarSelectedStep:l,playbackBarLiveDragging:d});b=m}}a.set("playbackBarVisible",
b)};x.prototype.qDa=function(){var a=this.get("panorama");return a?i.xa("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",B)):i.xa("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",B)):i.xa("VideoPanorama",a)?this.get("videoPanoramaDisplayPlaybackBar",this.get("displayPlaybackBar",m)):B:B};x.prototype.kha=function(){var a=this.get("panorama");return!a?B:i.xa("HDRPanorama",a)?this.get("hdrPanoramaDisplayPlaybackBarSteps",
m):i.xa("LivePanorama",a)?this.get("livePanoramaDisplayPlaybackBarSteps",m):B};x.prototype.ZDa=function(){var a=this.get("panorama");return!a||i.xa("VideoPanorama",a)?B:m};x.Zv="cardboard";x.TZ="standard";x.bt={buttonMoveLeft:{movement:r.jD,pressedOn:"movingLeft",stopOnRelease:m},buttonMoveRight:{movement:r.kD,pressedOn:"movingRight",stopOnRelease:m},buttonMoveUp:{movement:r.lD,pressedOn:"movingUp",stopOnRelease:m},buttonMoveDown:{movement:r.iD,pressedOn:"movingDown",stopOnRelease:m},buttonPlayLeft:{movement:[r.jD,
r.S],pressedOn:"movingLeft",stopOnRelease:B},buttonPlayRight:{movement:[r.kD,r.S],pressedOn:"movingRight",stopOnRelease:B},buttonPlayUp:{movement:[r.lD,r.S],pressedOn:"movingUp",stopOnRelease:B},buttonPlayDown:{movement:[r.iD,r.S],pressedOn:"movingDown",stopOnRelease:B},buttonZoomIn:{movement:r.Zs,pressedOn:"zoomingIn",stopOnRelease:m},buttonZoomOut:{movement:r.$s,pressedOn:"zoomingOut",stopOnRelease:m}};return x});
define("cu","kG,cs,eQ,cS,nA,hN".split(","),function(a,b,d,c,g,f){a=a.extend(f,function(){f.call(this)});d.F("PanoramaPlayListItem",a).H("PlayListItem").Q({media:"Panorama",camera:"PanoramaCamera",player:"PanoramaPlayer"});a.prototype.start=function(){f.prototype.start.call(this);var a=this.get("player");if(a){a.bind(c.xf,this.mu,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(c.xf,this.mu,this);a.get("panorama")==
this.get("media")&&a.set("panorama",q)}f.prototype.stop.call(this)};a.prototype.mu=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(c.xf,this.mu,this);this.get("player").bind(c.xi,this.px,this);this.WB()}};a.prototype.px=function(a){if(a.data.media==this.get("media")){this.get("player").unbind(c.xi,this.px,this);this.stop();this.end()}};return a});
define("kK",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("PanoramaSnapshot",b).H("Object").Q({position:"PanoramaCameraPosition",image:"ImageResource"});return b});define("mu",["kG","ck"],function(a,b){var d=a.extend(b,function(a,d,f,i){b.call(this);this.kd=a;this.Z=d;this.ia=f;this.F1=i});d.prototype.ks=function(){return[this.kd]};d.prototype.pi=S("kd");d.prototype.fd=S("Z");d.prototype.Td=S("ia");return d});
define("nT","require,dY,kG,eQ,ee,fI,mu".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("eQ"),g=a("ee"),f=a("fI"),i=a("mu"),a=d.extend(g,function(){g.call(this);this.la=l});c.F("Photo",a).H("Media").Q({audios:"array[PhotoAudio]",duration:"number",height:"number",image:"ImageResource",width:"number",flipImageHorizontally:"bool"});a.prototype.Hj=function(){if(this.la==l){var a=this.get("image");this.la=a?new i(f.cq(a).get("url"),this.get("width"),this.get("height"),this.get("flipImageHorizontally",
B)):q}return this.la};a.prototype.hs=function(){var a=this.iR(this.Hj());b(this.get("audios",[])).each(function(b){a=a.concat(b.hs())},this);return a};a.prototype.iR=function(a){return a?a.ks():[]};return a});
define("iT",["dY","kG","nU","ee","eQ"],function(a,b,d,c,g){b=b.extend(c,function(){c.call(this);this.set("loop",B)});g.F("PhotoAlbum",b).H("Media").Q({audios:"array[PhotoAlbumAudio]",loop:"bool",playList:"PhotoPlayList"}).fc([d.Ga]);b.prototype.hs=function(){var b=[],c=this.get("playList");c&&a(c.get("items"),[]).each(function(a){(a=a.get("media"))&&(b=b.concat(a.hs()))});a(this.get("audios",[])).each(function(a){b=b.concat(a.hs())});return b};return b});
define("gh","require,kG,hy,eQ,is,D".split(","),function(a){var b=a("kG"),d=a("hy"),c=a("eQ"),g=a("is");a("D");a=b.extend(g,function(){g.call(this,d.pxa)});c.F("PhotoAlbumAudio",a).H("MediaAudio");return a});
define("cQ",["require","gE"],function(a){function b(a,b){this.h=a;this.Mo=b;this.GD=[];this.Mq=[];this.Vp=1}var d=a("gE");b.prototype.clear=function(){for(var a=0;a<this.GD.length;a++)this.GD[a].yd(d.L);this.Pya();this.Mq=this.GD=q};b.prototype.stop=function(){for(var a=0;a<this.Mq.length;a++)this.Mq[a].yd(d.L)};b.prototype.play=function(){for(var a=0;a<this.Mq.length;a++){var b=this.Mq[a];b.og()!=d.S&&b.yd(d.S)}};b.prototype.pause=function(){for(var a=0;a<this.Mq.length;a++){var b=this.Mq[a];b.og()==
d.S&&b.yd(d.Gb)}};b.prototype.start=function(){this.stop();for(var a=0;a<this.Mo.length;a++){var b=this.Mo[a],f=b.fC();f&&(this.GD.push(f),b.get("autoplay",B)&&this.Mq.push(f))}for(a=0;a<this.Mq.length;a++)this.Mq[a].yd(d.S)};b.prototype.ld=I();b.prototype.Pya=function(){for(var a=0;a<this.GD.length;a++)this.GD[a].wv(1)};return b});define("hJ",["kG","cQ"],function(a,b){return a.extend(b,function(a,c){b.call(this,a,c.get("audios",[]));this.CT=c})});
define("gW",["kG","cQ"],function(a,b){return a.extend(b,function(a,c){b.call(this,a,c.get("audios",[]));this.Je=c})});
define("iD",["hJ","gW"],function(a,b){function d(a){this.h=a;this.zi=[];this.ki=[]}d.prototype.clear=function(){this.Cva();this.ki=this.zi=q};d.prototype.Cva=function(){for(var a=0;a<this.zi.length;a++)this.zi[a].clear();for(a=0;a<this.ki.length;a++)this.ki[a].clear();this.zi=[];this.ki=[]};d.prototype.pause=function(){for(var a=0;a<this.zi.length;a++)this.zi[a].pause();for(a=0;a<this.ki.length;a++)this.ki[a].pause()};d.prototype.play=function(){for(var a=0;a<this.zi.length;a++)this.zi[a].play();
for(a=0;a<this.ki.length;a++)this.ki[a].play()};d.prototype.stop=function(){for(var a=0;a<this.zi.length;a++)this.zi[a].stop();for(a=0;a<this.ki.length;a++)this.ki[a].clear();this.ki=[]};d.prototype.uTa=function(b){b=new a(this.h,b);this.ki.push(b);b.start()};d.prototype.xTa=function(a){for(var b=0;b<this.ki.length;b++)if(this.ki[b].CT==a){this.ki[b].clear();this.ki.splice(b,1);break}};d.prototype.$aa=function(a){a=new b(this.h,a);this.zi.push(a);a.start()};d.prototype.vTa=function(a){for(var b=0;b<
this.zi.length;b++)if(this.zi[b].Je==a){this.zi[b].clear();this.zi.splice(b,1);break}};d.prototype.ld=function(a){for(var b=0;b<this.zi.length;b++)this.zi[b].ld(a);for(b=0;b<this.ki.length;b++)this.ki[b].ld(a)};return d});
define("j",["kG","lv"],function(a,b){function d(){this.ka=m;this.Da=this.Ba=0.5;this.Va=1;this.ef=b.Qg;this.Yl=this.Zl=100}d.prototype.getX=function(){this.Tm();return this.Ba};d.prototype.getY=function(){this.Tm();return this.Da};d.prototype.dq=function(){this.Tm();return this.Va};d.prototype.jO=function(a,b,d){this.ef=d;this.Da=this.Ba=0.5;this.Va=1;this.ka=m};d.prototype.hb=function(a,b,d){this.Ba=a;this.Da=b;this.Va=d;this.ka=m};d.prototype.setSize=function(a,b){this.Zl=a;this.Yl=b;this.ka=m};
d.prototype.Tm=function(){if(this.ka){this.ka=B;1>this.Va&&(this.Va=1);var a=Math.min(0.5/this.Va,0.5),b=Math.max(1-0.5/this.Va,0.5);this.Ba<a?this.Ba=a:this.Ba>b&&(this.Ba=b);a=Math.min(0.5/this.Va,0.5);b=Math.max(1-0.5/this.Va,0.5);this.Da<a?this.Da=a:this.Da>b&&(this.Da=b)}};return d});
define("bz",[],function(){function a(a,d){this.h=a;this.Y=d;this.Da=this.Ba=0.5;this.Va=1;this.ZT=B}a.prototype.start=function(){this.Da=this.Ba=0.5;this.Va=1;this.ZT=m};a.prototype.clear=function(){this.Y=this.h=q};a.prototype.hb=function(a,d,c){this.Ba=a;this.Da=d;this.Va=c};a.prototype.Ge=S("ZT");a.prototype.xb=function(){this.ZT=B};return a});
define("hp",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(a,d,f){b.call(this);a!=l&&this.set("x",a);d!=l&&this.set("y",d);f!=l&&this.set("zoomFactor",f)});d.F("PhotoCameraPosition",a).H("Object").Q({x:"number",y:"number",zoomFactor:"number"});return a});
define("h",["kG","bz","hp","nx","bC"],function(a,b,d,c,g){a=a.extend(b,function(a,c){b.call(this,a,c);this.O=q});a.prototype.start=function(a){var b=a.get("initialPosition",new d(0.5,0.5,1)),e=a.get("targetPosition",new d(0.5,0.5,1));this.O=new c(a.get("easing","linear"),[new g("x",b.get("x",0.5),e.get("x",0.5)),new g("y",b.get("y",0.5),e.get("y",0.5)),new g("zoom",b.get("zoomFactor",1),e.get("zoomFactor",1))],a.get("duration",1E3));this.xb(0)};a.prototype.clear=function(){this.O=q;b.prototype.clear.call(this)};
a.prototype.Ge=function(){return this.O!=q};a.prototype.xb=function(a){this.O&&(this.O.xb(a),this.Y.hb(this.O.gb("x"),this.O.gb("y"),this.O.gb("zoom")),this.Ba=this.Y.getX(),this.Da=this.Y.getY(),this.Va=this.Y.dq(),this.O.Te()&&(this.O=q))};return a});
define("cE","kG,cs,fQ,eQ,gE,lv,j,bz,h,nU".split(","),function(a,b,d,c,g,f,i,e,j,o){var k=a.extend(d,function(a,b){d.call(this);this.h=a;this.Id=b;this.h.bind(o.sc,this.Vb,this);this.o=g.L;this.Jm=this.CT=this.oa=this.la=q;this.Y=new i});k.prototype.clear=function(){this.end();this.Y=q;this.h.unbind(o.sc,this.Vb,this);this.h=q};k.prototype.end=function(a){if(this.la==a||typeof a=="undefined"){this.$fa();this.oa=this.CT=this.oa=this.la=q}};k.prototype.start=function(a){if(this.la!=a){this.end(this.la);
var b=a.get("media"),c=a.get("camera"),d=b.get("width",100),e=b.get("height",100),g=c?c.get("scaleMode",f.Qg):f.Qg;this.la=a;this.oa=c;this.CT=b;b.Hj();this.N=m;this.Y.jO(d,e,g);this.DBa(c);this.Ca()}};k.prototype.stop=function(){if(this.o!=g.L){this.o=g.L;if(this.Jm){this.Jm.start(this.oa);this.Ca()}}};k.prototype.play=function(){if(this.o==g.L||this.o==g.Gb){this.o=g.S;this.Ca()}};k.prototype.pause=function(){if(this.o==g.S)this.o=g.Gb};k.prototype.ov=function(a){if(this.Jm&&this.Jm.Ge()){if(this.o==
g.S){this.Jm.xb(a);this.Ca()}this.ql(this.Jm.Ba,this.Jm.Da,this.Jm.Va)}};k.prototype.DBa=function(a){this.$fa();this.Jm=c.xa("MovementPhotoCamera",a)?new j(this.h,this.Y):new e(this.h,this.Y);this.Jm.start(a)};k.prototype.$fa=function(){if(this.Jm){this.Jm.clear();this.Jm=q}};k.prototype.Vb=function(){this.Y.setSize(this.h.Ua(),this.h.Cb());this.Ca()};k.prototype.Ca=function(){this.trigger(new b(k.qb))};k.prototype.ql=function(a,b,c){this.Id.hb(this.la,a,b,c)};k.qb="request frame";return k});
define("hD","require,dY,kG,cs,fQ,nU,hy,lv".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("cs"),g=a("fQ"),f=a("nU");a("hy");var i=a("lv"),e=d.extend(g,function(a,b){g.call(this);this.aM=[];this.K=a;this.h=b});e.prototype.lH=function(a){this.Lw(a).lH();return this};e.prototype.Ve=function(a,b){this.Lw(a).Ve(b);return this};e.prototype.$m=function(a,b){this.Lw(a).$m(b);return this};e.prototype.hb=function(a,b,c,d){this.Lw(a).hb(b,c,d);return this};e.prototype.xk=function(a){this.Lw(a).xk();return this};
e.prototype.stop=function(){this.qga(function(a){a.clear()});this.aM=[]};e.prototype.clear=function(){this.stop();this.h=this.K=this.aM=q};e.prototype.ld=function(){this.qga(function(a){a.update()})};e.prototype.Lw=function(a){var b=this.ICa(a);if(!b){b=new j(a,this.h);b.bind(j.Oca,this.KFa,this);b.bind(j.Mca,this.JFa,this);this.aM.push(b)}return b};e.prototype.qga=function(a){b(this.aM).each(a,this)};e.prototype.ICa=function(a){return b(this.aM).find(function(b){return b.getItem()==a})};e.prototype.KFa=
function(){this.Ca()};e.prototype.JFa=function(a){this.trigger(new c(e.MY,{item:a.source.getItem()}))};e.prototype.Ca=function(){this.trigger(new c(e.qb))};e.qb="request frame";e.MY="photo preload end";var j=d.extend(g,function(a,b){g.call(this);this.la=a;this.h=b;var c=a.get("camera");this.ef=c?c.get("scaleMode",i.Qg):i.Qg;this.Li=a.get("media").Hj();this.Li.bind(f.U,this.cd,this);this.Li.bind(f.zc,this.sf,this);this.fa=j.dI;this.Da=this.Ba=0.5;this.Va=1;this.un=0;this.JD=B;this.ig=0;this.ka=B});
j.prototype.getItem=S("la");j.prototype.lH=function(){this.fa==j.dI?this.JT():this.Loa()};j.prototype.Ve=function(a){if(this.un!=a){this.un=a;this.xe()}};j.prototype.$m=function(a){if(this.ig!=a){this.ig=a;this.xe()}};j.prototype.hb=function(a,b,c){if(this.Ba!=a||this.Da!=b||this.Va!=c){this.Ba=a;this.Da=b;this.Va=c;this.xe()}};j.prototype.xk=function(){if(!this.JD){this.JD=m;this.xe()}};j.prototype.clear=function(){this.fa==j.vP&&this.vL();(this.fa==j.aI||this.fa==j.cI||this.fa==j.bI)&&this.dy();
this.Li.unbind(f.U,this.cd);this.Li.unbind(f.zc,this.sf);this.Li=q};j.prototype.update=function(){if(this.ka){this.ka=B;if(this.ig>-1&&this.ig<1&&this.un>0){this.fa==j.dI&&this.FJ();this.fa==j.aI&&this.lya();if(this.fa==j.vP){if(this.JD){this.h.s9(this.Li);this.JD=B}this.h.kq(this.Li,this.un);this.h.oSa(this.Li,this.ig);this.h.qO(this.Li,this.Ba,this.Da,this.Va)}}else{this.fa==j.vP&&this.vL();(this.fa==j.aI||this.fa==j.bI)&&this.dy()}}};j.prototype.xe=function(){if(!this.ka){this.ka=m;this.wa()}};
j.prototype.wa=function(){this.trigger(new c(j.Oca))};j.prototype.JT=function(){this.fa=j.cI;this.h.ko(this.Li);this.h.Jsa(this.Li)&&this.cd()};j.prototype.FJ=function(){this.fa=j.bI;this.h.ko(this.Li);this.h.Jsa(this.Li)&&this.cd()};j.prototype.lya=function(){this.fa=j.vP;this.h.h9(this.Li);this.h.rSa(this.Li,this.ef)};j.prototype.vL=function(){this.fa=j.aI;this.h.removeItem(this.Li)};j.prototype.dy=function(){this.fa=j.dI;this.h.Mj(this.Li)};j.prototype.cd=function(){if(this.fa==j.cI||this.fa==
j.bI){var a=this.fa==j.cI;this.fa=j.aI;this.xe();a&&this.Loa()}};j.prototype.sf=function(){if(this.fa==j.cI||this.fa==j.bI)this.fa=j.dI};j.prototype.Loa=function(){this.trigger(new c(j.Mca))};j.Oca="requestUpdate";j.Mca="preloadEnd";j.dI="unloaded";j.cI="preloading";j.bI="loading";j.aI="loaded";j.vP="added";return e});define("mx",[],function(){return{jn:"blending",Go:"scroll"}});
define("bX","dY,kG,cs,fQ,nU,hD,mx".split(","),function(a,b,d,c,g,f,i){function e(b,c,d){this.Um=b;this.item=c;this.Uva=d;this.index=b&&c?a(b.get("playList").get("items")).indexOf(this.item):0;this.loaded=B}e.prototype.isEqual=function(a){return a&&a.Um==this.Um&&a.item==this.item};var j=b.extend(c,function(a,b,d){c.call(this);this.K=a;this.h=b;this.Id=d;this.Id.bind(f.MY,this.Jla,this);this.uM=i.jn;this.fa=j.yD;this.qf=new e(q,q,0);this.wt=this.ik=this.Ug=q;this.vM=l;this.Rx=0});j.prototype.bTa=R("uM");
j.prototype.Oaa=R("Rx");j.prototype.kba=function(a,b,c){this.ik=q;a=new e(a,b,c);if(!a.isEqual(this.fa==j.yD?this.qf:this.Ug)){this.ik=a;this.Gka()}};j.prototype.clear=function(){(this.fa==j.yP||this.fa==j.wP)&&this.trigger(new d(j.Kv,{album:this.Ug.Um,item:this.Ug.item}));this.fa=j.yD;this.h=this.K=this.wt=this.qf=this.Ug=this.ik=q;this.Id.unbind(f.MY,this.Jla,this);this.Id=q};j.prototype.ld=function(a){if(this.fa!=j.yD){this.vM=this.vM+a;a=this.Ug.Uva;a=this.vM>=a?1:this.vM/a;this.fa==j.wP?this.qMa(a):
this.fa==j.xP?this.rMa(a):this.uM==i.jn?this.eMa(a):this.UMa(a);a<1?this.Ca():this.Fw()}};j.prototype.qMa=function(a){this.Id.Ve(this.Ug.item,a).$m(this.Ug.item,0)};j.prototype.rMa=function(a){this.Id.Ve(this.qf.item,1-a).$m(this.qf.item,0)};j.prototype.eMa=function(a){this.Id.Ve(this.Ug.item,Math.min(1,a*2)).$m(this.Ug.item,0);this.Id.Ve(this.qf.item,Math.min(1,(1-a)*2)).$m(this.qf.item,0)};j.prototype.UMa=function(a){var b=this.qf.Um!=this.Ug.Um||this.qf.index<this.Ug.index;this.Id.$m(this.Ug.item,
(b?1-a:a-1)*(1+this.Rx)).Ve(this.Ug.item,1);this.Id.$m(this.qf.item,(b?-a:a)*(1+this.Rx)).Ve(this.qf.item,1)};j.prototype.Gka=function(){this.ik&&this.fa==j.yD&&(this.ik.item&&!this.ik.loaded?this.Id.lH(this.ik.item):this.No())};j.prototype.Jla=function(a){if(this.ik&&this.ik.item==a.data.item){this.ik.loaded=m;this.Gka()}};j.prototype.No=function(){if(this.wt&&this.wt!=this.ik.Um){this.trigger(new d(j.uo,{album:this.wt}));this.wt=q}this.trigger(new d(j.TY));if(this.K.get("transitionMode")=="fade_out_fade_in"&&
this.ik.item!=q&&this.qf.item!=q){this.fa=j.xP;this.Ug=new e(this.qf.Um,q,this.qf.Uva)}else{this.Ug=this.ik;this.ik=q;if(this.qf.item)if(this.Ug.item)this.fa=j.yP;else{if(this.qf.item)this.fa=j.xP}else this.fa=j.wP}if(this.fa==j.yP||this.fa==j.wP){this.Id.xk(this.Ug.item);this.trigger(new d(j.bz,{album:this.Ug.Um,item:this.Ug.item}))}this.vM=0;this.Ca()};j.prototype.Fw=function(){(this.fa==j.yP||this.fa==j.xP)&&this.trigger(new d(j.Kv,{album:this.qf.Um,item:this.qf.item}));this.qf=this.Ug;if(this.wt!=
this.qf.Um){this.wt=this.qf.Um;this.trigger(new d(j.vo,{album:this.wt}))}this.fa=j.yD;if(this.ik==q){this.qf.item&&this.trigger(new d(j.cz,{album:this.qf.Um,item:this.qf.item}));this.trigger(new d(j.zo,{album:this.qf.Um,item:this.qf.item}))}else this.No()};j.prototype.Ca=function(){this.trigger(new d(j.qb))};j.yD="stopped";j.yP="blending";j.xP="fading_out";j.wP="fading_in";j.qb="request frame";j.TY="transition begin";j.zo="transition end";j.bz="photo added";j.Kv="photo removed";j.cz="photo displayed";
j.vo="photo album show";j.uo="photo album hide";return j});
define("fp","dY,kG,cs,fQ,nU,eQ,lv,hp,j,bz,h,nx,bC".split(","),function(a,b,d,c,g,f,i,e,j,o,k,n,r){var p=b.extend(c,function(a,b,d){c.call(this);this.K=a;this.h=b;this.Id=d;this.Tn=this.Hn=this.la=this.Je=this.Wa=q;this.Km=l;this.IU=0;this.yj=B;this.ig=0;this.lS=this.Tn?-1:0;this.iS=this.Hn?1:0;this.O=q;this.Hg=400;this.Rx=0;this.Y=new j});p.prototype.clear=function(){this.Id=this.h=this.K=this.wt=q};p.prototype.RRa=function(b,c){this.Je=b;this.la=c;var d=b&&b.get("playList")&&b.get("playList").get("items")||
[],e=a(d).indexOf(c);this.Hn=e>0?d[e-1]:q;this.Tn=e<d.length-1?d[e+1]:q;this.ig=0;this.lS=this.Tn?-1:0;this.iS=this.Hn?1:0;this.JT()};p.prototype.enable=function(){if(this.Wa=this.h.getParent()){this.Wa.bind(g.zb,this.Ed,this,m);this.Wa.bind(g.ad,this.oj,this,m);this.Wa.bind(g.Wb,this.pj,this,m);this.JT()}};p.prototype.disable=function(){if(this.Wa){this.Wa.unbind(g.zb,this.Ed,this);this.Wa.unbind(g.ad,this.oj,this);this.Wa.unbind(g.Wb,this.pj,this);this.Wa=q}};p.prototype.aTa=R("Hg");p.prototype.Oaa=
R("Rx");p.prototype.JT=function(){if(this.Wa){this.Hn&&this.Id.lH(this.Hn);this.Tn&&this.Id.lH(this.Tn)}};p.prototype.sja=function(){return(new Date).getTime()};p.prototype.Ed=function(a){if(!this.yj){this.Km=a.x;this.IU=0;this.C5=this.sja();this.yj=m;this.O=q;this.trigger(new d(p.tY));if(this.Hn){a=this.vha(this.Hn);this.Id.hb(this.Hn,a.x,a.y,a.zoom)}if(this.Tn){a=this.vha(this.Tn);this.Id.hb(this.Tn,a.x,a.y,a.zoom)}}};p.prototype.oj=function(a){if(this.yj){var b=a.x-this.Km,c=b/this.Wa.Ua(),d=this.sja()-
this.C5;this.IU=b/d;this.C5=this.C5+d;this.Km=a.x;this.ig=Math.max(this.lS,Math.min(this.iS,this.ig+c));this.Ca()}};p.prototype.pj=function(){if(this.yj){this.yj=B;var a,b;if(this.IU>1){a="quad_out";b=this.iS}else if(this.IU<-1){a="quad_out";b=this.lS}else{a="quad_in_out";b=this.ig<-0.5?this.lS:this.ig>0.5?this.iS:0}this.O=new n(a,[new r("offset",this.ig,b,1E3/this.Hg)],0);this.Ca()}};p.prototype.ld=function(a){if(this.yj||this.O){if(this.O){this.O.xb(a);this.ig=this.O.gb("offset");if(this.O.Te()){this.O=
q;this.rCa()}else this.Ca()}this.la&&this.Id.$m(this.la,this.ig*(1+this.Rx)).Ve(this.la,1);this.Hn&&this.Id.$m(this.Hn,(this.ig-1)*(1+this.Rx)).Ve(this.Hn,1);this.Tn&&this.Id.$m(this.Tn,(this.ig+1)*(1+this.Rx)).Ve(this.Tn,1)}};p.prototype.rCa=function(){this.trigger(new d(p.uY,{album:this.Je,item:this.ig<0?this.Tn:this.ig>0?this.Hn:this.la}))};p.prototype.Ca=function(){this.trigger(new d(p.qb))};p.prototype.vha=function(a){var b=a&&a.get("camera"),c=a&&a.get("media"),a=c&&c.get("width",100)||100,
c=c&&c.get("height",100)||100,d=b?b.get("scaleMode",i.Qg):i.Qg,g={};if(f.xa("MovementPhotoCamera",b)){b=b.get("initialPosition",new e(0.5,0.5,1));g.x=b.get("x",0.5);g.y=b.get("y",0.5);g.zoom=b.get("zoomFactor",0.5)}else{g.x=0.5;g.y=0.5;g.zoom=1}this.Y.jO(a,c,d);this.Y.setSize(this.h.Ua(),this.h.Cb());this.Y.hb(g.x,g.y,g.zoom);g.x=this.Y.getX();g.y=this.Y.getY();g.zoom=this.Y.dq();return g};p.qb="request frame";p.tY="interaction begin";p.uY="interaction end";return p});
define("iH","kG,cs,fQ,nU,hD,mx,bX,fp".split(","),function(a,b,d,c,g,f,i,e){var j=a.extend(d,function(a,b,c){d.call(this);this.K=a;this.h=b;this.Id=c;this.uM=f.jn;this.Hg=1E3;this.Bb=new i(this.K,this.h,this.Id);this.Bb.bind(i.qb,this.se,this,m);this.Bb.bind(i.TY,this.Jja,this,m);this.Bb.bind(i.zo,this.Kja,this,m);this.Bb.bind(i.bz,this.FK,this,m);this.Bb.bind(i.Kv,this.IK,this,m);this.Bb.bind(i.cz,this.HK,this,m);this.Bb.bind(i.uo,this.lp,this,m);this.Bb.bind(i.vo,this.Kn,this,m);this.Wk=new e(this.K,
this.h,this.Id);this.Wk.bind(e.qb,this.se,this,m);this.Wk.bind(e.tY,this.Oia,this,m);this.Wk.bind(e.uY,this.Pia,this,m)});j.prototype.DX=function(a,b){this.uM=a;this.Hg=b;this.Bb.bTa(a);this.Wk.aTa(b);this.Bb.Oaa(0.05);this.Wk.Oaa(0.05)};j.prototype.display=function(a,b){this.Bb.kba(a,b,this.Hg)};j.prototype.hide=function(){this.Bb.kba(q,q,this.Hg)};j.prototype.clear=function(){this.Bb.unbind(i.qb,this.se,this);this.Bb.unbind(i.TY,this.Jja,this);this.Bb.unbind(i.zo,this.Kja,this);this.Bb.unbind(i.bz,
this.FK,this);this.Bb.unbind(i.Kv,this.IK,this);this.Bb.unbind(i.cz,this.HK,this);this.Bb.unbind(i.uo,this.lp,this);this.Bb.unbind(i.vo,this.Kn,this);this.Bb.clear();this.Bb=q;this.Wk.bind(e.qb,this.se,this,m);this.Wk.bind(e.tY,this.Oia,this,m);this.Wk.bind(e.uY,this.Pia,this,m);this.Wk.clear();this.Id=this.h=this.K=this.Wk=q};j.prototype.ld=function(a){this.Bb.ld(a);this.Wk.ld(a)};j.prototype.se=function(){this.Ca()};j.prototype.FK=function(a){this.trigger(new b(j.bz,a.data))};j.prototype.IK=function(a){this.trigger(new b(j.Kv,
a.data))};j.prototype.HK=function(a){this.trigger(new b(j.cz,a.data));this.Wk.RRa(a.data.album,a.data.item)};j.prototype.lp=function(a){this.trigger(new b(j.uo,a.data))};j.prototype.Kn=function(a){this.trigger(new b(j.vo,a.data))};j.prototype.Jja=function(){this.Wk.disable()};j.prototype.Kja=function(a){this.uM==f.Go&&a.data.item&&this.Wk.enable();a.data.album||this.trigger(new b(j.rY))};j.prototype.Oia=function(){this.trigger(new b(j.Mba))};j.prototype.Pia=function(a){this.Bb.kba(a.data.album,a.data.item,
0);this.trigger(new b(j.Nba,a.data))};j.prototype.Ca=function(){this.trigger(new b(j.qb))};j.qb="request frame";j.bz="photo added";j.Kv="photo removed";j.cz="photo displayed";j.vo="photo album show";j.uo="photo album hide";j.Mba="manual interaction begin";j.Nba="manual interaction end";j.rY="all pending photo albums hidden";return j});
define("id","require,dY,kG,w,cs,fQ,gE".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("w"),g=a("cs"),f=a("fQ"),i=a("gE"),e=d.extend(f,function(){f.call(this);this.Je=q;this.o=i.L;this.y6=q});e.prototype.clear=function(){this.E9()};e.prototype.$aa=function(a){this.E9();this.Je=a;this.o=i.S;this.y6=c.watch(this.Je,"playList.selectedIndex",this.vB,this);this.Je.get("playList").get("selectedIndex")==0?this.vB():this.Je.get("playList").set("selectedIndex",0)};e.prototype.E9=function(){if(this.Je){this.o=
i.L;this.y6.unwatch();this.Je=this.y6=q}};e.prototype.stop=function(){if(this.o!=i.L){this.o=i.L;this.Je.get("playList").set("selectedIndex",0)}};e.prototype.play=function(){if(this.o==i.L){this.Je.get("playList").set("selectedIndex",0);this.o=i.S;this.vB()}else if(this.o==i.Gb)this.o=i.S};e.prototype.pause=function(){if(this.o==i.S)this.o=i.Gb};e.prototype.next=function(){var a=this.Je.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b<c-1||this.Je.get("loop"))&&a.set("selectedIndex",
(b+1)%c)};e.prototype.X$=function(){var a=this.Je.get("playList"),b=a.get("selectedIndex"),c=a.get("items").length;(b>0||this.Je.get("loop"))&&a.set("selectedIndex",(b-1+c)%c)};e.prototype.TW=function(a){this.XJa(a)};e.prototype.xQa=function(a){if(this.Je){var c=b(this.Je.get("playList").get("items")).last();if(a==c&&!this.Je.get("loop")){this.o=i.L;this.trigger(new g(e.nY,{album:this.Je}))}else this.next()}};e.prototype.vB=function(){var a=this.oEa();a>=0&&(this.o!=i.S&&a!=0?this.trigger(new g(e.PY)):
this.trigger(new g(e.yY,{album:this.Je,item:this.Je.get("playList").get("items")[a]})))};e.prototype.oEa=function(){return this.Je?this.Je.get("playList").get("selectedIndex"):-1};e.prototype.XJa=function(a){if(this.Je){var c=this.Je.get("playList"),a=b(c.get("items")).indexOf(a);c.set("selectedIndex",a)}};e.PY="play request";e.yY="item request";e.nY="album end";return e});
define("cK","require,dY,kG,nU,cs,fQ,gE,gI".split(","),function(a){a("dY");var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("gE"),i=a("gI"),e=b.extend(g,function(a){g.call(this);this.K=a;this.nM=this.la=q;this.nB=l;this.OR=B;this.o=f.L;i.bind(d.qa,this.sla,this,m)});e.prototype.TW=function(a){this.T0();if(this.la=a){a=this.la.get("media").get("duration",0);this.nB=a==0?l:Math.max(0,a-this.K.get("transitionDuration"));this.OR=B;this.o==f.S&&this.p1()}};e.prototype.clear=function(){i.unbind(d.qa,this.sla,
this,m);this.TW(q)};e.prototype.stop=function(){if(this.o!=f.L){this.T0();this.mc(f.L)}};e.prototype.play=function(){if(this.o==f.L){this.mc(f.S);if(this.la){this.OR=B;var a=this.la.get("media").get("duration",0);this.nB=a==0?l:a;this.p1()}}else if(this.o==f.Gb){this.mc(f.S);this.la&&this.p1()}};e.prototype.pause=function(){if(this.o==f.S){this.mc(f.Gb);this.Gla()}};e.prototype.p1=function(){if(!this.OR){this.OR=m;this.trigger(new c(e.zY,{item:this.la}))}this.Cga()};e.prototype.sla=function(){i.visible?
this.Cga():i.visible||this.Gla()};e.prototype.Cga=function(){if(this.nB!==l){var a=this;this.bV=(new Date).getTime()+this.nB;this.nM=setTimeout(function(){a.nM=q;a.pLa()},this.nB)}else this.bV=l};e.prototype.T0=function(){if(this.nM){clearTimeout(this.nM);this.nM=q}};e.prototype.Gla=function(){if(this.bV!==l){this.T0();this.nB=Math.max(1,this.bV-(new Date).getTime());this.bV=l}};e.prototype.pLa=function(){var a=this.la;this.la=q;this.nB=l;this.trigger(new c(e.xY,{item:a}))};e.prototype.mc=function(a){if(this.o!=
a){this.o=a;this.trigger(new c(e.rc,{state:this.o}))}};e.rc="playback state change";e.zY="item start";e.xY="item end";return e});
define("mN",["kG","cs","fQ","bg","t"],function(a,b,d,c,g){var f=a.extend(d,function(a){d.call(this);this.N=m;this.kA=B;this.h=a;this.om=g.browser()==g.My&&g.le()==g.EZ?3:1;this.qe=this.XI=0});f.prototype.clear=function(){this.N=B;this.h=q;this.qe=this.XI=0};f.prototype.yb=function(){this.kA||(this.kA=m,c.yb(this.rj,this))};f.prototype.rj=function(a){this.N&&(this.XI++,this.qe+=a,this.XI==this.om?(this.XI=0,this.kA=B,a=this.qe,this.qe=0,this.trigger(new b(f.xo,{frameTime:a})),this.trigger(new b(f.yo,
{frameTime:a})),this.h.render()):c.yb(this.rj,this))};f.xo="frameStart";f.yo="positionSet";return f});
define("gT","kG,nU,cs,fQ,iD,cE,iH,id,cK,hD,mN".split(","),function(a,b,d,c,g,f,i,e,j,o,k){var n=a.extend(c,function(a,b){c.call(this);this.K=a;this.h=b;this.h.set("visible",B);this.Gh=new e(this.h);this.za=new j(this.K);this.Id=new o(this.K,this.h);this.Ea=new i(this.K,this.h,this.Id);this.Qa=new f(this.h,this.Id);this.Yf=new k(this.h);this.Ad=new g(this.h);this.Id.bind(o.qb,this.se,this,m);this.Gh.bind(e.yY,this.aka,this,m);this.Gh.bind(e.PY,this.Kka,this,m);this.Gh.bind(e.nY,this.GK,this,m);this.za.bind(j.zY,
this.bka,this);this.za.bind(j.xY,this.$ja,this);this.za.bind(j.rc,this.ye,this,m);this.Ea.bind(i.qb,this.se,this,m);this.Ea.bind(i.bz,this.FK,this,m);this.Ea.bind(i.Kv,this.IK,this,m);this.Ea.bind(i.cz,this.HK,this,m);this.Ea.bind(i.uo,this.lp,this,m);this.Ea.bind(i.vo,this.Kn,this,m);this.Ea.bind(i.Mba,this.EGa,this,m);this.Ea.bind(i.Nba,this.FGa,this,m);this.Ea.bind(i.rY,this.Aja,this,m);this.Qa.bind(f.qb,this.se,this,m);this.Yf.bind(k.xo,this.qx,this,m);this.Yf.bind(k.yo,this.rx,this,m)});n.prototype.clear=
function(){this.Gh.clear();this.za.clear();this.Ea.clear();this.Qa.clear();this.Yf.clear();this.Ad.clear();this.Id.clear();this.Id.unbind(o.qb,this.se,this);this.Gh.unbind(e.yY,this.aka,this);this.Gh.unbind(e.nY,this.GK,this);this.Gh.unbind(e.PY,this.Kka,this);this.za.unbind(j.zY,this.bka,this);this.za.unbind(j.xY,this.$ja,this);this.za.unbind(j.rc,this.ye,this);this.Ea.unbind(i.qb,this.se,this);this.Ea.unbind(i.bz,this.FK,this);this.Ea.unbind(i.Kv,this.IK,this);this.Ea.unbind(i.cz,this.HK,this);
this.Ea.unbind(i.uo,this.lp,this);this.Ea.unbind(i.vo,this.Kn,this);this.Ea.unbind(i.rY,this.Aja,this);this.Qa.unbind(f.qb,this.se,this);this.Yf.unbind(k.xo,this.qx,this);this.Yf.unbind(k.yo,this.rx,this);this.K=this.h=this.Id=this.Ad=this.Yf=this.Qa=this.Ea=this.za=this.Gh=q};n.prototype.DX=function(a,b){this.Ea.DX(a,b)};n.prototype.ISa=function(a){this.h.set("visible",m);this.Gh.$aa(a)};n.prototype.rv=function(){this.Gh.E9();this.za.stop();this.Ea.hide();this.Qa.end();this.Ad.Cva()};n.prototype.next=
function(){this.Gh.next()};n.prototype.X$=function(){this.Gh.X$()};n.prototype.stop=function(){this.za.stop();this.Ad.stop();this.Gh.stop();this.Qa.stop()};n.prototype.play=function(){this.za.play();this.Ad.play();this.Gh.play();this.Qa.play()};n.prototype.pause=function(){this.za.pause();this.Ad.pause();this.Gh.pause();this.Qa.pause()};n.prototype.EGa=function(){this.za.pause();this.Ad.pause();this.Gh.pause();this.Qa.pause()};n.prototype.FGa=function(){this.za.play();this.Ad.play();this.Gh.play();
this.Qa.play()};n.prototype.aka=function(a){this.Ea.display(a.data.album,a.data.item)};n.prototype.Kka=function(){this.play()};n.prototype.se=function(){this.Yf.yb()};n.prototype.qx=function(a){this.Qa.ov(a.data.frameTime)};n.prototype.rx=function(a){a=a.data.frameTime;this.Ea.ld(a);this.Id.ld(a);this.Ad.ld(a)};n.prototype.FK=function(a){this.Qa.start(a.data.item)};n.prototype.IK=function(a){var b=a.data.album,a=a.data.item,c=a.get("media");this.Qa.end(a);this.Ad.xTa(c);this.trigger(new d(n.LY,{photoAlbum:b,
item:a}))};n.prototype.HK=function(a){var b=a.data.album,a=a.data.item;a.get("media");this.Gh.TW(a);this.za.TW(a);this.trigger(new d(n.KY,{photoAlbum:b,item:a}))};n.prototype.bka=function(a){this.Ad.uTa(a.data.item.get("media"))};n.prototype.$ja=function(a){this.Gh.xQa(a.data.item)};n.prototype.GK=function(a){this.za.stop();this.Ad.stop();this.trigger(new d(n.JY,{photoAlbum:a.data.album}))};n.prototype.Kn=function(a){a=a.data.album;this.Ad.$aa(a);this.za.play();this.Qa.play();this.trigger(new d(n.vo,
{photoAlbum:a}))};n.prototype.lp=function(a){a=a.data.album;this.Ad.vTa(a);this.trigger(new d(n.uo,{photoAlbum:a}))};n.prototype.Aja=function(){this.h.set("visible",B)};n.prototype.ye=function(a){this.trigger(new d(n.rc,{state:a.data.state}))};n.vo="photoAlbumShow";n.JY="photoAlbumEnd";n.uo="photoAlbumHide";n.KY="photoBegin";n.LY="photoEnd";n.rc="playbackStateChange";return n});
define("hi","require,jquery.mod,dY,lv,kC,la,t".split(","),function(a){function b(a,b){this.la=a;this.aa=b;this.tb=a.fd();this.Lb=a.Td();this.VQ=a.F1;this.d9=this.EJ=0;this.un=1;this.ig=0;this.ka=m;this.s0();this.pd=this.gd=100;this.Da=this.Ba=0.5;this.Va=1;this.lL=m;this.Oe=1;this.zga={};this.dia={};this.Hpa=i.browser()!=i.Qh}var d=a("jquery.mod"),c=a("dY"),g=a("lv"),f=a("kC");a("la");var i=a("t");b.prototype.s0=function(){this.sP=d("<div></div>");var a={position:"absolute",left:"0",top:"0",width:this.gd+
"px",height:this.pd+"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.sP.css(a);this.IZ=d(f.jf(this.la.pi(),m));a={display:"block",position:"absolute",left:"0",top:"0",width:this.tb+"px",height:this.Lb+"px"};a["-moz-transform-origin"]=a["-webkit-transform-origin"]=a["transform-origin"]="0 0 0";a["-ms-transform-origin"]="0 0";this.IZ.css(a);this.sP.append(this.IZ)};
b.prototype.Lc=S("sP");b.prototype.getItem=S("la");b.prototype.getX=S("Ba");b.prototype.getY=S("Da");b.prototype.dq=S("Va");b.prototype.Ua=function(){return Math.round(this.tb*this.Va*this.Oe)};b.prototype.Cb=function(){return Math.round(this.Lb*this.Va*this.Oe)};b.prototype.Ve=function(a){if(this.un!=a){this.un=a;this.ka=m}};b.prototype.nW=S("un");b.prototype.Ey=function(a){if(this.ef!=a){this.ef=a;this.ka=m}};b.prototype.DC=function(a,b){if(this.gd!=a||this.pd!=b){this.gd=a;this.pd=b;this.ka=m}};
b.prototype.hb=function(a,b,c){if(this.Ba!=a||this.Da!=b||this.Va!=c){this.Ba=a;this.Da=b;this.Va=c;this.ka=m}};b.prototype.$m=function(a){if(this.ig!=a){this.ig=a;this.ka=m}};b.prototype.SRa=function(a){if(this.d9!=a){this.d9=a;this.ka=m}};b.prototype.render=function(){if(this.ka){this.ka=B;switch(this.ef){case g.NONE:this.Oe=1;break;case g.Bo:this.Oe=this.gd/this.tb;break;case g.Pj:this.Oe=this.pd/this.Lb;break;case g.sq:this.Oe=this.tb*this.pd>this.Lb*this.gd?this.pd/this.Lb:this.gd/this.tb;break;
default:this.Oe=this.tb*this.pd>this.Lb*this.gd?this.gd/this.tb:this.pd/this.Lb}var a=this.Va*this.Oe,b=this.gd*0.5-this.Ba*this.tb*a,d=this.pd*0.5-this.Da*this.Lb*a,f=this.gd*this.ig,i=function(a,b){return Math.round(a*Math.pow(10,b))*Math.pow(10,-b)},r={};r.width=i(this.gd,0)+"px";r.height=i(this.pd,0)+"px";r.transform=this.Hpa?"translate3d("+i(f,2)+"px, 0px, 0px)":"translate("+i(f,2)+"px, 0px)";r["-moz-transform"]=r["-webkit-transform"]=r["-ms-transform"]=r.transform;r["z-index"]=this.d9;if(this.un==
0)r.display="none";else{r.display="block";if(this.un==1){r.filter=r["-ms-filter"]="";r.opacity=""}else{r.filter=r["-ms-filter"]="alpha(opacity="+Math.round(this.un*100)+")";r.opacity=this.un}}f=[];if(this.Hpa){f.push("translate3d("+i(b,2)+"px, "+i(d,2)+"px, 0px)");f.push("scale3d("+a+", "+a+", "+a+")");if(this.VQ){f.push("translate3d("+this.tb+"px, 0, 0)");f.push("scale3d(-1, 1, 1)")}}else{f.push("translate("+i(b,2)+"px, "+i(d,2)+"px)");f.push("scale("+a+", "+a+")");if(this.VQ){f.push("translate("+
this.tb+"px, 0)");f.push("scale(-1, 1)")}}a={};a["-moz-transform"]=a["-webkit-transform"]=a["-ms-transform"]=a.transform=f.join(" ");if(!c.isEqual(this.zga,r)){this.zga=r;this.sP.css(r)}if(!c.isEqual(this.dia,a)){this.dia=a;this.IZ.css(a)}}};return b});
define("hC","require,jquery.mod,dY,kG,nU,hy,kC,hi,bc,d".split(","),function(a){var b=a("jquery.mod"),d=a("dY"),c=a("kG"),g=a("nU"),f=a("hy"),i=a("kC"),e=a("hi"),j=a("bc"),o=a("d"),a=c.extend(o,function(){o.call(this);this.je("Renderer");this.set("toolTipDisabled",m);this.set("cursor",j.Mv);this.bind(g.sc,this.Vb,this,m);this.bind(g.hc,this.gk,this,m);this.bind(g.nc,this.ck,this,m);this.pB=B;this.oc=[];this.DU=this.Xu=B;this.l5=b("<div/>");this.l5.css({position:"absolute",left:0,top:0,right:0,bottom:0,
overflow:"hidden","-webkit-transform":"translateZ(0)"});this.Ab().append(this.l5)});a.prototype.ko=function(a){i.ko(a,f.qn)};a.prototype.Mj=function(a){i.Mj(a,f.qn)};a.prototype.Jsa=function(a){return i.MX(a)};a.prototype.h9=function(a){a=new e(a,this);a.DC(this.Ua(),this.Cb());a.hb(0.5,0.5,0,1);this.l5.append(a.Lc());this.oc.push(a);this.Xu=m};a.prototype.removeItem=function(a){if(a=this.Zo(a)){this.oc=d.without(this.oc,a);a.Lc().detach();this.Xu=m}};a.prototype.s9=function(a){if(a=this.Zo(a)){this.oc=
d.without(this.oc,a);this.oc.push(a);this.Xu=m}};a.prototype.rSa=function(a,b){this.Zo(a).Ey(b)};a.prototype.kq=function(a,b){this.Zo(a).Ve(b)};a.prototype.oSa=function(a,b){this.Zo(a).$m(b)};a.prototype.qO=function(a,b,c,d){this.Zo(a).hb(b,c,d)};a.prototype.DN=function(a){return this.Zo(a).getX()};a.prototype.EN=function(a){return this.Zo(a).getY()};a.prototype.Bra=function(a){return this.Zo(a).dq()};a.prototype.CN=function(a){return this.Zo(a).Ua()};a.prototype.BN=function(a){return this.Zo(a).Cb()};
a.prototype.render=function(){if(this.pB){this.LMa();this.uKa();for(var a=0;a<this.oc.length;a++)this.oc[a].render()}};a.prototype.LMa=function(){if(this.DU){this.DU=B;for(var a=this.Ua(),b=this.Cb(),c=0;c<this.oc.length;c++)this.oc[c].DC(a,b)}};a.prototype.uKa=function(){if(this.Xu){this.Xu=B;for(var a=[],b=0;b<this.oc.length;b++){var c=this.oc[b],d={};d.UW=c.EJ;d.index=b;d.renderer=c;a.push(d)}a.sort(function(a,b){return a.UW==b.UW?a.index-b.index:a.UW-b.UW});for(b=0;b<a.length;b++)a[b].renderer.SRa(b+
1)}};a.prototype.Zo=function(a){if(this.NUa==a)return this.MUa;for(var b=q,c=0;c<this.oc.length&&!b;c++)this.oc[c].getItem()==a&&(b=this.oc[c]);return b};a.prototype.Vb=function(){this.DU=m;this.render()};a.prototype.gk=function(){this.pB=m;this.render()};a.prototype.ck=function(){this.pB=B};return a});
define("jB","require,kG,cs,eQ,me,cS,dT,gT,mx,hC,dV,nU".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("eQ"),g=a("me"),f=a("cS"),i=a("dT"),e=a("gT"),j=a("mx"),o=a("hC"),k=a("dV"),n=a("nU"),a=b.extend(i,function(){i.call(this,"photoAlbum");this.fV=this.k5=this.Mh=B;this.B=this.h=q;this.Oza=new g(this,"buttonNext",k.ne);this.Oza.bind(n.ca,this.Bka,this);this.Pza=new g(this,"buttonPrevious",k.ne);this.Pza.bind(n.ca,this.Uka,this);this.Pd=b.hq(this.Ig,this)});c.F("PhotoAlbumPlayer",a).H("Object").Q({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]]"}).Mg({next:function(){this.Bka()},pause:function(){this.aB()},play:function(){this.bB()},previous:function(){this.Uka()},stop:function(){this.vx()},restart:function(){this.sx()}}).fc([f.xf,f.xi,n.Fc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "photoAlbum":this.k5=
m;this.Pd();break;case "viewerArea":this.Mh=m;this.Pd();break;case "touchTransition":case "mouseTransition":case "touchTransitionDuration":case "mouseTransitionDuration":case "transitionDuration":this.fV=m;this.Pd()}i.prototype.set.call(this,a,b)}};a.prototype.Ig=function(){if(this.Mh){this.Mh=B;this.fV=m;this.yt();this.get("viewerArea")&&this.ut();this.QL(this.get("viewerArea"))}if(this.h&&this.k5){this.k5=B;if(this.get("photoAlbum")){this.nH();this.B.ISa(this.get("photoAlbum"))}else this.B.rv()}if(this.fV){this.fV=
B;this.Bpa()}};a.prototype.YF=function(){this.set("photoAlbum",q)};a.prototype.ut=function(){var a=this.get("viewerArea");this.h=new o;this.h.$({left:0,top:0,bottom:0,right:0});a.Oa(this.h);this.B=new e(a,this.h);this.Bpa();this.B.bind(e.vo,this.Kn,this);this.B.bind(e.uo,this.lp,this);this.B.bind(e.JY,this.GK,this);this.B.bind(e.KY,this.Ika,this);this.B.bind(e.LY,this.Jka,this);this.B.bind(e.rc,this.ye,this);this.Ux(m)};a.prototype.yt=function(){if(this.h){this.B.unbind(e.vo,this.Kn,this);this.B.unbind(e.uo,
this.lp,this);this.B.unbind(e.JY,this.GK,this);this.B.unbind(e.KY,this.Ika,this);this.B.unbind(e.LY,this.Jka,this);this.B.unbind(e.rc,this.ye,this);this.B.clear();this.h.getParent().removeChild(this.h);this.h=q;this.Ux(B)}};a.prototype.Bpa=function(){var a=this.get("viewerArea");a&&this.B&&(a.Fn?this.B.DX(this.get("touchTransition",j.jn),this.get("touchTransitionDuration",a.get("transitionDuration",1E3))):this.B.DX(this.get("mouseTransition",j.jn),this.get("mouseTransitionDuration",a.get("transitionDuration",
1E3))))};a.prototype.ye=function(a){this.mc(a.data.state)};a.prototype.Kn=function(a){this.QJ(a.data.photoAlbum)};a.prototype.lp=function(a){this.PJ(a.data.photoAlbum)};a.prototype.GK=function(a){a.data.photoAlbum.trigger(new d(n.Ga))};a.prototype.Ika=function(a){a.data.item.WB()};a.prototype.Jka=function(a){a.data.item.end()};a.prototype.ii=function(a){this.h.getParent().$({progressPercent:a.data.percent,progressVisible:m})};a.prototype.eF=function(){this.h.getParent().set("progressVisible",B)};
a.prototype.Bka=function(){this.B&&this.get("photoAlbum")&&this.B.next()};a.prototype.Uka=function(){this.B&&this.get("photoAlbum")&&this.B.X$()};a.prototype.tj=function(){this.B&&this.get("photoAlbum")&&this.B.play()};a.prototype.Om=function(){this.B&&this.get("photoAlbum")&&this.B.stop()};a.prototype.Nn=function(){this.B&&this.get("photoAlbum")&&this.B.pause()};return a});
define("gf",["kG","eQ","cS","hN"],function(a,b,d,c){a=a.extend(c,function(){c.call(this)});b.F("PhotoAlbumPlayListItem",a).H("PlayListItem").Q({media:"PhotoAlbum",player:"PhotoAlbumPlayer"});a.prototype.start=function(){c.prototype.start.call(this);var a=this.get("player");a&&(a.bind(d.xf,this.Kn,this),a.set("photoAlbum",this.get("media")))};a.prototype.stop=function(){var a=this.get("player");a&&(a.unbind(d.xf,this.Kn,this),a.get("photoAlbum")==this.get("media")&&a.set("photoAlbum",q));c.prototype.stop.call(this)};
a.prototype.zH=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].zH())}c.prototype.zH.call(this)};a.prototype.Kn=function(){this.get("player").unbind(d.xf,this.Kn,this);this.get("player").bind(d.xi,this.lp,this);this.WB()};a.prototype.lp=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(d.xi,this.lp,this),this.stop(),this.end())};return a});
define("kV","require,kG,hy,eQ,is,D".split(","),function(a){var b=a("kG"),d=a("hy"),c=a("eQ"),g=a("is");a("D");a=b.extend(g,function(){g.call(this,d.qxa)});c.F("PhotoAudio",a).H("MediaAudio");return a});define("mG",["kG","lh","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("PhotoCamera",a).H("Object").Q({scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]"});return a});
define("eD","require,dY,kG,lh,cs,eQ,iQ,nU".split(","),function(a){var b=a("dY"),d=a("kG"),c=a("lh"),g=a("cs"),f=a("eQ"),i=a("iQ"),e=a("nU"),a=d.extend(c,function(){this.Pe=-1;this.Qd=[];this.oL=this.zm=this.Ne=l;c.call(this)});f.F("PlayList",a).H("Object").Q({items:"array[PlayListItem]",selectedIndex:"number"}).hh([e.gY]).fc([e.qa]);a.prototype.set=function(a,b){a=="selectedIndex"?this.WJa(b):a=="items"?this.HJa(b):c.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a=="selectedIndex"?
this.Pe:a=="items"?this.Qd:c.prototype.get.call(this,a,b)};a.prototype.dispose=function(){if(this.Ne){this.Ne.unbind(e.hn,this.KK,this);this.Ne.unbind(e.Lf,this.kr,this);this.Ne.unbind(e.Ga,this.kr,this);this.Ne=q}};a.prototype.HJa=function(a){a=a||[];if(!b.isEqual(this.Qd,a)){var d=this.Pe;this.Qd=a;a=this.Jma(this.Pe);this.trigger(new g(e.gY,{nextSelectedIndex:a}));this.Pe=a;this.wna(this.Lw(this.Pe));this.spa();this.trigger(new g(e.qa,{previousSelectedIndex:d}));c.prototype.set.call(this,"items",
this.Qd);c.prototype.set.call(this,"selectedIndex",this.Pe)}};a.prototype.WJa=function(a){a=this.Jma(a);if(this.Pe!=a){var b=this.Pe;this.trigger(new g(e.gY,{nextSelectedIndex:a}));this.Pe=a;this.wna(this.Lw(this.Pe));this.spa();this.trigger(new g(e.qa,{previousSelectedIndex:b}));c.prototype.set.call(this,"selectedIndex",this.Pe)}};a.prototype.Jma=function(a){return Math.max(-1,Math.min(this.Qd.length-1,a))};a.prototype.Lw=function(a){return a>=0?this.Qd[a]:q};a.prototype.wna=function(a){if((this.Ne!=
a||this.zm!==l)&&this.zm!==a)if(this.zm===l){this.zm=a;if(this.Ne)if(this.zm&&this.Ne.get("player")==this.zm.get("player")){this.Ne.zH();this.kr()}else if(this.xFa(this.Ne,this.zm)){a=this.Ne;a.zH();this.kr();a.$va()}else this.Ne.stop();else this.kr()}else this.zm=a};a.prototype.xFa=function(a,b){return this.yia(b,a)};a.prototype.zFa=function(a,b){return this.yia(a,b)};a.prototype.yia=function(a,b){return b&&f.xa("Model3DPlayListItem",b)&&b.get("media").get("isLoaded")&&a&&f.xa("PanoramaPlayListItem",
a)&&a.get("player")&&a.get("player").get("model3DPlayer")==b.get("player")&&a.get("media").get("modelLocations",[]).find(function(a){return a.get("model")==b.get("media")})};a.prototype.kr=function(){if(this.Ne){this.Ne.unbind(e.hn,this.KK,this);this.Ne.unbind(e.Lf,this.kr,this);this.Ne.unbind(e.Ga,this.kr,this)}if(this.zm){this.zFa(this.Ne,this.zm)&&this.Ne.get("player").bind(e.AZ,this.wx,this,m);this.Ne=this.zm;this.zm=l;this.Ne.bind(e.hn,this.KK,this);this.Ne.bind(e.Lf,this.kr,this);this.Ne.start()}else{this.zm=
this.Ne=l;this.set("selectedIndex",-1)}};a.prototype.wx=function(a){a.source.unbind(e.AZ,this.wx,this);this.KK();this.Ne.Zva()};a.prototype.KK=function(){this.Ne.unbind(e.hn,this.KK,this);this.Ne.unbind(e.Lf,this.kr,this);this.Ne.bind(e.Ga,this.kr,this)};a.prototype.spa=function(){this.oL&&i.aX(this.oL.get("media"),-1);(this.oL=this.Qd&&this.Pe>=0?this.Qd[(this.Pe+1)%this.Qd.length]:q)&&i.aX(this.oL.get("media"),1)};return a});
define("jL",["kG","eQ","eD"],function(a,b,d){a=a.extend(d,function(){d.call(this)});b.F("PhotoPlayList",a).H("PlayList").Q({items:"array[PhotoPlayListItem]"});return a});define("jZ",["kG","eQ","hN"],function(a,b,d){a=a.extend(d,function(){d.call(this)});b.F("PhotoPlayListItem",a).H("PlayListItem").Q({media:"Photo",camera:"PhotoCamera"});return a});
define("en",["require","dY","kG","fV","eQ"],function(a){a("dY");var b=a("kG"),d=a("fV"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("PlaybackBar",b).H("UIComponent").Q({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("mq",["require"],function(){function a(a){try{for(var g=(d.PN<<12)+d.TN&65535,f="",i=0,e=a.length;i<e;)var j=b.indexOf(a.charAt(i++))<<12|b.indexOf(a.charAt(i++))<<6|b.indexOf(a.charAt(i++))<<0,j=j-g+65536&65535,f=f+String.fromCharCode(j);return f}catch(o){if("{%"==a.substr(0,2))return""}}var b="";[[65,26],[97,26],[48,10]].forEach(function(a){for(var d=0;d<a[1];d++)b+=String.fromCharCode(a[0]+d)});var b=b+"+/",d={nOa:"true"};d.PN=parseInt("0")||
0;d.TN=parseInt("1718")||1;d.wTa="true";d.name=a("AbpAb6AcMAcfAcpAcqAcXAbWAcGAciAcXAcvAcbAco");d.nwa=a("");return d});define("bt",[],function(){return{Ja:"left",Xa:"right",ic:"top",ac:"bottom"}});
define("dk",["kG","ei","W","bt"],function(a,b){var d=a.extend(b,function(){b.call(this)});d.prototype.cJ=T(0);d.prototype.dJ=T(0);d.prototype.UF=function(){b.prototype.UF.call(this);this.Ew(function(a){a.Jf(m)})};d.prototype.Gu=function(){b.prototype.Gu.call(this);this.Ew(function(a){a.uO(this.cJ(a,this.Bk()));a.vO(this.dJ(a,this.Bk()))})};d.prototype.SF=function(){this.Ew(function(a){a.uO(this.cJ(a,1));a.vO(this.dJ(a,1))});b.prototype.SF.call(this)};d.prototype.TF=function(){this.Ew(function(a){a.uO(this.cJ(a,
0));a.vO(this.dJ(a,0))});b.prototype.TF.call(this)};return d});
define("er",["kG","dk","bt"],function(a,b,d){a=a.extend(b,function(){b.call(this)});a.prototype.cJ=function(a,b){switch(this.get("from")){case d.ic:case d.ac:return 0;case d.Ja:var f=a.Ba,i=a.Ua();return isNaN(i)||isNaN(f)?1E4:(-f-i)*(1-b);default:f=a.getParent();if(!f)return 0;i=f.Se();f=a.Ba;return isNaN(f)||isNaN(i)?1E4:(i-f)*(1-b)}};a.prototype.dJ=function(a,b){switch(this.get("from")){case d.ic:var f=a.Da,i=a.Cb();return isNaN(i)||isNaN(f)?1E4:(-f-i)*(1-b);case d.ac:f=a.getParent();if(!f)return 0;
i=f.Re();f=a.Da;return isNaN(f)||isNaN(i)?1E4:(i-f)*(1-b);default:return 0}};a.prototype.TF=function(){this.Ew(function(a){a.uO(0);a.vO(0);a.Jf(B)})};return a});
define("hf",["kG","dk","W","bt"],function(a,b,d,c){a=a.extend(b,function(){b.call(this)});a.prototype.cJ=function(a,b){switch(this.get("to")){case c.ic:case c.ac:return 0;case c.Ja:var d=a.Ba,e=a.Ua();return isNaN(e)||isNaN(d)?1E4:(-d-e)*b;default:d=a.getParent();if(!d)return 0;e=d.Se();d=a.Ba;return isNaN(d)||isNaN(e)?1E4:(e-d)*b}};a.prototype.dJ=function(a,b){switch(this.get("to")){case c.ic:var d=a.Da,e=a.Cb();return isNaN(e)||isNaN(d)?1E4:(-d-e)*b;case c.ac:d=a.getParent();if(!d)return 0;e=d.Re();
d=a.Da;return isNaN(d)||isNaN(e)?1E4:(e-d)*b;default:return 0}};a.prototype.SF=function(){this.Ew(function(a){a.uO(0);a.vO(0);a.Jf(B)})};return a});
define("F","require,jquery.mod,kG,nU,nS,t,fy,mk,cG,c,nq,er,hf,jD".split(","),function(a){function b(a){try{return window.localStorage.getItem(a)}catch(b){}}var d=a("jquery.mod"),c=a("kG"),g=a("nU"),f=a("nS"),i=a("t"),e=a("fy"),j=a("mk"),o=a("cG"),k=a("c"),n=a("nq"),r=a("er"),p=a("hf"),t=a("jD"),a=c.extend(n,function(a){n.call(this);this.Zb=a;this.Ai=this.Ez=this.kw=this.ul=q;a=new r;a.set("duration",500);a.set("from","bottom");a=new p;a.set("duration",500);a.set("to","bottom");this.$({creationPolicy:o.jz,
verticalAlign:j.zd,horizontalAlign:j.ae,visible:B,showEffect:this.aVa,hideEffect:this.bVa});this.u7="";a=this.eEa();if(a===m)setTimeout(function(){this.trigger(g.ZC)}.bind(this),0);else if(a===l){this.Zb.bind(g.u("cookiesPolicy"),this.Ifa,this);setTimeout(function(){this.Ifa()}.bind(this),0)}});a.prototype.mb=function(){n.prototype.mb.call(this);this.$({backgroundColor:"#1a1a1a",width:"100%",left:0,bottom:0});if(this.ul==q){this.ul=new t;this.ul.$({content:this.u7,fontColor:"#ffffff",fontWeight:"400",
fontFamily:"Open Sans, Arial, sans-serif",width:"100%"});this.Oa(this.ul)}if(this.kw==q){this.kw=new n;this.Oa(this.kw);this.kw.$({creationPolicy:o.jz,verticalAlign:j.zd,layout:k.xg})}if(this.Ez==q){this.Ez=new e;this.Ez.$({backgroundColor:"#2aabe2",fontColor:"#ffffff",fontFamily:"Open Sans, Arial, sans-serif",label:f("accept").toUpperCase(),verticalAlign:"middle"});this.kw.Oa(this.Ez);this.Ez.bind(g.ca,this.Fza,this,m)}if(this.KD==q){this.KD=new e;this.KD.$({backgroundColor:"#1a1a1a",fontColor:"#808080",
fontFamily:"Open Sans, Arial, sans-serif",label:f("reject").toUpperCase(),textDecoration:"underline",verticalAlign:"middle"});this.kw.Oa(this.KD);this.KD.bind(g.ca,this.Rza,this,m)}};a.prototype.Ar=function(){n.prototype.Ar.apply(this,arguments);var a=this.wb();if(a){a.bind(g.sc,this.wl,this,m);this.wl()}};a.prototype.wl=function(){var a=this.wb();if(a){var b=i.ob(),c=a.Cb()>a.Ua(),d=Math.min(a.Ua(),a.Cb())/100,a=function(a){return Math.round(a*d)};this.$({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?k.mh:k.xg});this.ul&&this.ul.$({fontSize:b?a(3.15):14,textAlign:b&&c?"center":"left"});this.kw&&this.kw.$({gap:b?0:13});this.Ez&&this.Ez.$({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.KD&&this.KD.$({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.wd()}};a.prototype.Ifa=
function(){var a=c.toArray(this.Zb.get("cookiesPolicy"));if(this.jL!=a){this.jL=a;this.QIa()}};a.prototype.QIa=function(){if(this.jL.length==0)this.M6(q);else{var a=this.jL[0];c.toArray(a.get("geographicArea")).length==0?this.M6(a):this.zDa(function(a){for(var b=q,d=0;d<this.jL.length&&!b;d++){var e=this.jL[d],f=c.toArray(e.get("geographicArea"));if(f.length==0)b=e;else for(var g=0;g<f.length&&!b;g++)a.indexOf(f[g])>=0&&(b=e)}this.M6(b)}.bind(this))}};a.prototype.M6=function(a){if(this.uF!==a){this.uF&&
this.uF.unbind(g.u("url"),this.B8,this);if(this.uF=a){this.uF.bind(g.u("url"),this.B8,this);this.B8();this.set("visible",m)}else{this.trigger(g.ZC);this.set("visible",B)}}};a.prototype.B8=function(){var a=d(document.createElement("div")).html(f("cookies-notice"));a.find("a").css({color:"#2aabe2",cursor:"pointer","text-decoration":"underline"}).attr({href:this.uF.get("url"),target:"_blank"});this.u7=a.html();this.ul&&this.ul.set("content",this.u7)};a.prototype.Fza=function(){this.yna(m);this.set("visible",
B);this.trigger(g.ZC)};a.prototype.Rza=function(){this.yna(B);this.set("visible",B)};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.zDa=function(a){this.nDa(function(b){var c=[b];s.indexOf(b)&&c.push("EU");a(c)})};a.prototype.nDa=function(a){var c=b("tdvp_country_code");if(c)a(c);else if(!this.Jga){this.Jga=m;d.get("https://geoloc.3dvista.com",function(b){this.Jga=B;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.eEa=function(){var a=b(u);if(a=="yes")return m;if(a=="no")return B};a.prototype.yna=function(a){try{window.localStorage.setItem(u,a?"yes":"no")}catch(b){}};return a});
define("lt",["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):self.kVa.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,d){(b===l?g():Promise.resolve(b)).then(function(b){(window.webkitRequestFileSystem||
window.requestFileSystem)(b?window.PERSISTENT:window.TEMPORARY,a,function(a){c(a)},function(a){console.log("Error getting file system access",a);d("error getting file system")})},function(a){console.log("error getting file system access",a);d("error getting file system")})})}function d(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 c(){return(navigator.storage&&navigator.storage.persist?
navigator.storage.persist():Promise.resolve(B)).then(function(a){console.log("Persistence granted:",a);return a?navigator.webkitPersistentStorage||navigator.persistentStorage:navigator.webkitTemporaryStorage||navigator.temporaryStorage})}function g(){return navigator.storage&&navigator.storage.persisted?navigator.storage.persisted():Promise.resolve(B)}function f(){return!v?Promise.reject("files uninitialized, no space was requested"):Promise.resolve(v)}function i(a){a.length&&"/"==a[0]&&(a=a.substr(1));
return a.split("/").filter(function(a){return""!=a})}function e(a){return new Promise(function(b,c){a.remove(function(){b()},function(a){c("can't remove entry"+(a&&a.message?": "+a.message:"")+".")})})}function j(a){return o(a).then(function(a){return Promise.all(a.map(function(a){return a.isDirectory?j(a):e(a)}))}).then(function(){return e(a).then(function(){return Promise.resolve()},function(){return Promise.resolve()})})}function o(a){return new Promise(function(b,c){a.createReader().readEntries(function(a){b(a)},
function(){c("can't list directory")})})}function k(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 n(a,b){return new Promise(function(c,d){k(a,b,{create:B}).then(function(a){c(a)})["catch"](function(){k(a,b,{create:m}).then(function(a){c(a)})["catch"](function(a){console.log("Can't create directory entry: "+b,a);d("can't create directory entry: "+b)})})})}function r(a,b){return 0==b.length?a:n(a,b[0]).then(function(a){return r(a,
b.slice(1))})}function p(a,b){return 0==b.length?a:k(a,b[0]).then(function(a){return p(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")})})}function u(a){var b=a.lastIndexOf(".");switch((0>b?"":a.substr(b)).toLowerCase()){case ".bmp":return"image/bmp";case ".eot":return"application/vnd.ms-fontobject";
case ".gif":return"image/gif";case ".htm":case ".html":return"text/html";case ".jpeg":case ".jpg":return"image/jpeg";case ".js":return"text/javascript";case ".json":return"application/json";case ".m3u8":return"application/vnd.apple.mpegurl";case ".m4a":return"audio/mp4";case ".m4v":return"video/mp4";case ".mp3":return"audio/mpeg";case ".mp4":return"video/mp4";case ".ogg":return"audio/ogg";case ".ogv":return"video/ogg";case ".otf":return"font/otf";case ".png":return"image/png";case ".svg":return"image/svg+xml";
case ".tif":return"image/tiff";case ".tiff":return"image/tiff";case ".ts":return"video/vnd.dlna.mpeg-tts";case ".ttf":return"application/font-sfnt";case ".tts":return"video/vnd.dlna.mpeg-tts";case ".txt":return"text/plain";case ".webm":return"video/webm";case ".woff":return"font/x-woff";case ".woff2":return"font/woff2";case ".xml":return"text/xml";default:return"application/octet-stream"}}var v=q;return{gX:function(){return g()},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})},uRa:function(a){return c().then(function(b){return d(b,a)}).then(function(a){return b(a)}).then(function(a){v=a})},mRa:function(a){var a=i(a),b=a[a.length-1],c=a.slice(0,-1);return f().then(function(a){return p(a.root,c)}).then(function(a){return t(a,b,{create:m})},function(){return Promise.resolve(q)}).then(function(a){return a&&e(a)})},qua:function(a,c){var d=i(a);return b(1024,
c).then(function(a){return p(a.root,d)}).then(function(a){return j(a)},function(){return Promise.resolve()})},owa:function(a,b,c){var d=i(a),e=d[d.length-1],g=d.slice(0,-1);return f().then(function(a){return r(a.root,g)}).then(function(a){return t(a,e,{create:B}).then(function(a){return Promise.resolve(a)},function(){return t(a,e,{create:m})})}).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("cq",["require","lt","lB","t"],function(a){function b(a,b){this.tr=a;this.Lz=B;this.Bp=q;this.ou=b||I()}function d(a){return a.PC>=f}var c=a("lt"),g=a("lB"),f=1048576,i=10485760,e=a("t").If()?3:5,a={File:function(a,b){this.url=a;this.PC=b;this.gO=this.FG=0}},j=a.Files=function(a,b,c,d){this.Vea=this.qza=a;this.nr=b.slice();this.Iga=[];var e=0;this.nr.sort(function(a,b){return a.PC-b.PC});this.nr.forEach(function(a){e+=a.PC});this.woa=e;this.$z=[];this.XP=l;this.Wq=[];this.P_=B;this.Ef=c||I();
this.OI=d||I()};j.prototype.Xr=function(){return this.pAa().then(function(){return this.qAa()}.bind(this))};j.prototype.pAa=function(){return self.caches["delete"](this.Vea)};j.prototype.qAa=function(){var a=(new g(this.qza)).pathname;return c.qua(a,B).then(function(){return c.qua(a,m)})};j.prototype.requestStorage=function(){return c.uRa(Math.round(1.1*this.woa+10485760)).then(function(){return c.gX()})};j.prototype.download=function(){this.P_=B;this.XP=0;this.Xr().then(function(){this.LI()}.bind(this))["catch"](function(a){console.log("error cleaning storage",
a);c.gX().then(function(a){this.OI(B,a)}.bind(this))}.bind(this))};j.prototype.cancelDownload=function(){this.P_=m;this.Wq.forEach(function(a){a.cancel()});this.Xr()};j.prototype.LI=function(){if(!(this.P_||this.Wq.length>=e))if(0<this.nr.length){var a;if(1==e)a=0.5<Math.random()?this.nr.shift():this.nr.pop();else if(0==this.$z.filter(d).length)a=this.nr.pop();else{if(d(this.nr[0]))return;a=this.nr.shift()}this.$z.push(a);var f=g.ky(a.url,"nc="+(new Date).getTime()),i=new b(f,function(b){a.FG=b.FG;
this.Bj()}.bind(this));this.Wq.push(i);i.fetch().then(function(b){return this.UKa(a.url,b)}.bind(this)).then(function(){this.nga(a,i,m)}.bind(this))["catch"](function(b){console.log("download error",a.url,a.PC,a.FG,b);this.nga(a,i,B)}.bind(this));this.LI()}else if(0==this.Wq.length){var j=5>=this.Iga.length;c.gX().then(function(a){this.OI(j,a)}.bind(this))}};j.prototype.nga=function(a,b,e){e?(this.$z.splice(this.$z.indexOf(a),1),this.Wq.splice(this.Wq.indexOf(b),1),this.XP+=a.PC,this.Bj(),this.LI()):
(a.FG=0,a.gO+=1,this.Bj(),20<=a.gO?(console.log("Error downloading file: "+a.url+" after "+a.gO+" retries."),this.sia(a.url)?(this.Iga.push(a),this.Wq.splice(this.Wq.indexOf(b),1),this.LI()):(this.cancelDownload(),c.gX().then(function(a){this.OI(B,a)}.bind(this)))):(console.log("Error downloading file: "+a.url+" attempt "+a.gO+" of 20. Will retry in 2000ms."),setTimeout(function(){this.$z.splice(this.$z.indexOf(a),1);this.Wq.splice(this.Wq.indexOf(b),1);d(a)?this.nr.push(a):this.nr.splice(0,0,a);
this.LI()}.bind(this),2E3)))};j.prototype.UKa=function(a,b){return this.WKa(a,b).then(function(){if(this.bNa(a))return this.VKa(a,b)}.bind(this))};j.prototype.VKa=function(a,b){b=b.clone();return 200!=b.status?Promise.reject("response status: "+b.status):self.caches.open(this.Vea).then(function(c){return c.put(a,b)})};j.prototype.WKa=function(a,b){b=b.clone();if(200!=b.status)return Promise.reject("response status: "+b.status);var d=(new g(a)).pathname;return d.lastIndexOf("/")==d.length-1?Promise.resolve():
new Promise(function(a,e){function f(){D.read().then(function(b){var c=b.value,d=[];if(c){for(;c.length+y>=i;){var e=c.slice(0,i-y);o.push(e);d.push(g(o));o=[];y=0;c=c.slice(e.length,c.length)}0<c.length&&(o.push(c),y+=c.length)}var n=b.done;y&&n&&d.push(g(o));j(d).then(function(){n?a():f()})["catch"](k)})["catch"](k)}function g(a){if(0==a.length)return new Uint8Array(0);var b=0;a.forEach(function(a){b+=a.length});for(var c=new Uint8Array(b),d=0,e=0;e<a.length;d+=a[e].length,e++)c.set(a[e],d);return c}
function j(a){if(0==a.length)return Promise.resolve();var b=a.shift();return c.owa(d,b).then(function(){j(a)})}function k(a){console.log("Error writing response to file system:",a);c.mRa(d).then(function(){e("Error reading response body")})}var o=[],y=0,D=b.body.getReader();f()})};var o=".bmp,.gif,.jpeg,.jpg,.m3u8,.m4a,.m4v,.mp3,.mp4,.ogg,.ogv,.otf,.png,.svg,.tif,.tiff,.ts,.tts,.webm,.woff,.woff2".split(",");j.prototype.sia=function(a){var a=(new g(a)).pathname,b="."+a.split(".").pop().toLowerCase();
return 0<=o.indexOf(b)&&0>a.indexOf("loading/")};j.prototype.bNa=function(a){var b=(new g(a)).pathname;return 0<=b.indexOf("files/")||0<=b.indexOf("pdfjs/")?m:this.sia(a)?B:m};j.prototype.Bj=function(){var a=this.XP;this.$z.forEach(function(b){a+=b.FG});this.Ef(100*a/this.woa)};b.prototype.fetch=function(){return fetch(this.tr).then(function(a){if(this.Lz)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=l,d=0;b!==q&&(c=parseInt(b,10));this.Bp=a.body.getReader();var e=B,f=function(a){this.Lz?a.close():e=m}.bind(this),g=function(a){return this.Bp.read().then(function(b){var e=b.value;e&&(d+=e.byteLength,a.enqueue(e));b.done&&(c=d,i(a));this.ou({PC:c,FG: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=B,this.Bp=q)}.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.Lz=m;this.Bp&&this.Bp.cancel()};a.Xr=function(a){return(new j(a,[])).Xr()};return a});
define("eG","require,kG,jquery.mod,nU,fQ,t,cq,lt,lN,lB,kH,dm".split(","),function(a){function b(a){p=a}var d=a("kG"),c=a("jquery.mod"),g=a("nU"),f=a("fQ"),i=a("t"),e=a("cq"),j=a("lt"),o=a("lN"),k=a("lB"),n=a("kH"),r=a("dm"),p=q;window.addEventListener("beforeinstallprompt",b);var t=d.extend(f,function(a){f.call(this);this.Zb=a;this.o="initial";this.z6=this.AU=this.kj=q;this.Cp=B;this.jA=q;this.wV=l;this.Yz=p;this.YR=t.Xsa();this.K3=k.Ui("vr");if(!this.Yz&&!this.YR){window.removeEventListener("beforeinstallprompt",
b);window.addEventListener("beforeinstallprompt",this.oGa.bind(this))}this.YR||window.addEventListener("appinstalled",this.Nya.bind(this))});t.prototype.Qaa=function(a){this.AU=a;this.bm=k.yv(this.AU.get(TDV.PlayerSettings.BASE_DIR_URL)||k.getDirectory(this.AU.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL)));if(this.bm[this.bm.length-1]!="/")this.bm=this.bm+"/";this.kj=new s(this.bm);this.wV=this.jma=a.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);this.OEa=k.parse(k.getDirectory(window.location.href)).pathname;
this.DCa=k.ky(k.yv("files.json",this.bm),this.jma);a=TDV.kb.Vra();this.z6=k.ky(this.AU.get(TDV.PlayerSettings.SERVICE_WORKER_URL),"swv="+a.MAJOR+"."+a.MINOR);this.kj=new s(this.bm);this.kj.bind(g.U,this.mLa,this,m);this.kj.load()};t.prototype.$G=function(){return this.kj.state==s.KH};t.prototype.Bqa=function(){return this.o=="can_install"&&!this.K3};t.prototype.Dqa=function(){return this.$G()&&this.wV!=this.kj.version&&!this.K3};t.prototype.Aqa=function(){return this.kj.state!=s.Dba&&!this.K3};t.prototype.Csa=
function(){if(this.o=="can_install")if(this.Yz){this.Yz.userChoice.then(function(a){a.outcome!="accepted"&&this.mc("unavailable")}.bind(this));this.Yz.prompt().then(function(){this.Yz=q}.bind(this))}else this.d1()};t.prototype.cancel=function(){if(this.o=="downloading"){if(this.jA){this.jA.cancelDownload();this.jA=q}this.kj.Xr();this.mc("unavailable")}};t.prototype.Xr=function(){e.Xr(this.bm);this.kj.Xr()};t.prototype.mLa=function(){this.Zb.get("downloadEnabled")!==m?this.mc("unavailable"):o.Dwa!==
m?this.mc("unavailable"):i.browser()!=i.Dk||i.Yd()==i.Ny||i.Yd()==i.VC?this.mc("unavailable"):this.z6?"serviceWorker"in navigator?this.$G()&&!this.Dqa()?this.mc("unavailable"):navigator.onLine?this.hIa():this.mc("unavailable"):this.mc("unavailable"):this.mc("unavailable")};t.prototype.mc=function(a){if(this.o!=a){this.o=a;a=["can_install","unavailable"].indexOf(this.o)>=0;if(this.Cp!=a)(this.Cp=a)&&this.trigger(g.Oc)}};t.prototype.hIa=function(){this.mc("registering_sw");navigator.serviceWorker.register(this.z6,
{scope:this.OEa}).then(function(){this.Xma(m)}.bind(this))["catch"](function(){this.Xma(B)}.bind(this))};t.prototype.Xma=function(a){if(a)if(i.If())this.mc("can_install");else if(this.YR&&this.kj.state==s.mY){this.mc("can_install");this.d1()}else if(this.Yz)this.mc("can_install");else{this.mc("sw_registered");setTimeout(function(){this.o=="sw_registered"&&this.mc("can_install")}.bind(this),3E3)}else this.mc("unavailable")};t.prototype.oGa=function(a){this.Yz=a;this.o=="sw_registered"&&this.mc("can_install")};
t.prototype.Nya=function(){this.o=="sw_registered"&&this.mc("can_install");this.d1()};t.prototype.d1=function(){this.mc("downloading");this.trigger(g.hn);this.Noa(0);this.MFa()};t.prototype.MFa=function(){var a=k.ky(this.DCa,"nc="+(new Date).getTime());c.getJSON(a,function(a){if(this.o=="downloading"){var b=[],c;for(c in a){var d=a[c].tags;if(d){Array.isArray(d)||(d=[d]);for(var f=0;f<d.length;f++)b.indexOf(d[f])<0&&b.push(d[f])}}var g=[];b.indexOf("mobilevr2gen")>=0&&i.A$()?g.push("mobilevr2gen"):
b.indexOf("mobilevr")>=0&&i.If()?g.push("mobilevr"):b.indexOf("mobile")>=0&&i.ob()?g.push("mobile"):b.indexOf("desktop")>=0&&!i.ob()&&g.push("desktop");b=[];for(c in a){if(d=a[c].tags){var j=B;if(Array.isArray(d))for(var f=0,n=d.length;f<n&&!j;f++)j=g.indexOf(d[f])>=0;else j=g.indexOf(d)>=0;if(!j)continue}d=k.yv(c,this.bm);b.push(new e.File(d,a[c].size))}var o=(new k(window.location.pathname,window.location.href)).toString();b.filter(function(a){return a.url==o}).length==0&&b.push(new e.File(o,1024));
this.jA=new e.Files(this.bm,b,this.Noa.bind(this),this.mga.bind(this));this.jA.requestStorage().then(function(a){this.kj.storage=a?s.SH:s.tZ;this.kj.state=s.mY;this.kj.version=this.wV;this.kj.save();this.jA.download()}.bind(this))["catch"](function(){this.mga(B,l)}.bind(this))}}.bind(this))};t.prototype.Noa=function(a){this.trigger(new n(g.gc,a))};t.prototype.mga=function(a,b){this.jA=q;this.mc("unavailable");if(a){this.kj.state=s.KH;this.kj.save()}a?this.trigger(g.Ga,{success:m}):b?this.trigger(g.Ga,
{success:B,error:t.Fba}):i.If()?this.trigger(g.Ga,{success:B,error:t.Eba}):this.YR?this.trigger(g.Ga,{success:B,error:t.Fba}):this.trigger(g.Ga,{success:B,error:t.Gba})};t.Xsa=function(){return k.Si("installed",B)};t.cRa=function(a,b){var c=new t.YY(a);c.bind(g.U,function(){var d=B;c.state==t.YY.KH&&(d=t.Xsa()?m:!navigator.onLine);d?j.toURL(a,c.storage==t.YY.SH).then(function(a){b(a)}):b(a)},this,m);c.load()};t.Gba="launchFromHomeScreen";t.Eba="addToBookmark";t.Fba="errorDownloading";var s=d.extend(f,
function(a){f.call(this);this.bm=a;this.B3="installation_state_"+a;this.BHa=k.parse(this.bm).pathname+"installation_state.json";this.state=this.storage=this.version=l;this.ena()});s.prototype.load=function(){if(this.NFa()&&this.state==s.KH)this.poa(this.storage==s.SH).then(function(){this.trigger(g.U)}.bind(this))["catch"](function(){this.poa(this.storage!=s.SH).then(function(){this.storage=this.storage==s.tZ?s.SH:s.tZ;this.s6();this.trigger(g.U)}.bind(this))["catch"](function(){this.state=s.mY;this.s6();
this.trigger(g.U)}.bind(this))}.bind(this));else this.trigger(g.U)};s.prototype.save=function(){this.s6();this.state==s.KH&&this.OIa()};s.prototype.NFa=function(){var a=r.getItem(this.B3);if(!a)return B;this.WCa(a);return m};s.prototype.s6=function(){r.setItem(this.B3,this.voa())};s.prototype.poa=function(a){return new Promise(function(b,d){j.toURL(this.bm+"installation_state.json",a).then(function(a){c.ajax({type:"GET",url:a,success:function(){b()},error:function(){d()}})}.bind(this))}.bind(this))};
s.prototype.OIa=function(){j.owa(this.BHa,this.voa(),"text/json")};s.prototype.voa=function(){var a={};a.version=this.version;a.storage=this.storage;a.state=this.state;return JSON.stringify(a)};s.prototype.WCa=function(a){this.VCa(JSON.parse(a))};s.prototype.VCa=function(a){this.version=a.version;this.storage=a.storage;this.state=a.state};s.prototype.Xr=function(){r.removeItem(this.B3);this.ena()};s.prototype.ena=function(){this.version="";this.storage=s.Axa;this.state=s.Dba};s.Axa="unkonwn";s.tZ=
"temporary";s.SH="persistent";s.Dba="not started";s.mY="started";s.KH="completed";t.YY=s;return t});
define("jW","require,kG,nU,nS,t,eG,fy,fG,mk,c,nq,d,iu".split(","),function(a){function b(a){var b=new e;b.$({label:a,backgroundColor:"#0071BC",borderRadius:2,fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",fontSize:14,paddingLeft:14,paddingRight:14,height:31,verticalAlign:o.zd});return b}var d=a("kG"),c=a("nU"),g=a("nS"),f=a("t"),i=a("eG"),e=a("fy"),j=a("fG"),o=a("mk"),k=a("c"),n=a("nq"),r=a("d"),p=a("iu"),a=d.extend(n,function(a,b){n.call(this);this.Zb=a;this.Tf=b;this.Tf.bind(c.Oc,
this.hFa,this,m);this.Tf.bind(c.hn,this.eFa,this,m);this.Tf.bind(c.gc,this.gFa,this,m);this.Tf.bind(c.Ga,this.fFa,this,m);this.fa="hidden";this.TM=l;this.t5=B;this.Ef=l;this.Ai=this.nt=this.Fz=this.Iz=this.Gz=this.HU=this.Ka=q;this.Jya();this.$({backgroundColor:"#000000",gap:18,height:55,width:"100%",paddingLeft:28,paddingRight:28,verticalAlign:o.zd,layout:k.xg});this.$f()});a.prototype.hFa=function(){if(this.Tf.Bqa()||this.Tf.$G()&&this.Tf.Aqa()){this.fa="ready";this.t5&&this.Vna()}else this.fa=
"hidden";this.$f()};a.prototype.eFa=function(){this.fa="installing";this.$f()};a.prototype.gFa=function(a){this.Ef=a.Kg;this.$f()};a.prototype.fFa=function(a){this.fa=a.data.success?"installed":"failed";this.Fga=a.data.error;this.$f()};a.prototype.Wf=function(){this.TKa()};a.prototype.WS=function(){if(!this.t5){this.t5=m;this.fa=="ready"&&this.Vna()}};a.prototype.Vna=function(){this.TM=setTimeout(function(){this.TM=q;this.pHa()}.bind(this),5E3);this.$f()};a.prototype.TKa=function(){this.vma();this.TM&&
clearTimeout(this.TM);this.TM=q};a.prototype.pHa=function(){this.vma();if(this.fa=="ready"){this.fa="hidden";this.$f()}};a.prototype.Jya=function(){this.bind(c.ad,this.Wf,this);this.Zb.bind(c.ad,this.WS,this);this.Zb.bind(c.zb,this.WS,this)};a.prototype.vma=function(){this.unbind(c.ad,this.Wf,this);this.Zb.unbind(c.ad,this.WS,this);this.Zb.unbind(c.zb,this.WS,this)};a.prototype.mb=function(){n.prototype.mb.call(this);if(this.Ka==q){this.Ka=new p;this.Ka.$({fontColor:"#ffffff",fontWeight:"400",fontFamily:"Arial, sans-serif",
fontSize:14,text:g("download-tour")});this.Oa(this.Ka)}if(this.Gz==q){this.Gz=b(g("download"));this.Oa(this.Gz);this.Gz.bind(c.ca,this.Kza,this,m)}if(this.Iz==q){this.Iz=b(g("refresh-downloaded"));this.Oa(this.Iz);this.Iz.bind(c.ca,this.Qza,this,m)}if(this.Fz==q){this.Fz=b(g("delete-downloaded"));this.Oa(this.Fz);this.Fz.bind(c.ca,this.Jza,this,m)}if(this.HU==q){this.HU=new r;this.HU.$({width:"100%"});this.Oa(this.HU)}if(this.nt==q){this.nt=new j;this.nt.$({backgroundColor:"#ffffff",borderRadius:2,
iconColor:"#000000",iconLineWidth:1,iconWidth:17,iconHeight:17,height:31,width:31});this.Oa(this.nt);this.nt.bind(c.ca,this.Iza,this,m)}if(this.Ai==q){this.Ai=b(g("cancel"));this.Oa(this.Ai);this.Ai.bind(c.ca,this.QP,this,m)}f.ob()&&this.wl();this.$f()};a.prototype.Ko=function(){n.prototype.Ko.call(this);f.ob()&&this.getParent().bind(c.sc,this.wl,this,m)};a.prototype.Lm=function(){f.ob()&&this.getParent().unbind(c.sc,this.wl,this,m);n.prototype.Lm.call(this)};a.prototype.wl=function(){var a=this.getParent();
if(a){var b=Math.min(a.Ua(),a.Cb())/100,c=function(a){return Math.round(a*b)};this.$({gap:c(3.9),height:c(11.9),paddingLeft:c(6),paddingRight:c(6)});this.Ka&&this.Ka.$({fontSize:c(3)});[this.Gz,this.Ai,this.Iz,this.Fz].forEach(function(a){a&&a.$({borderRadius:c(0.4),fontSize:c(3),paddingLeft:c(3),paddingRight:c(3),height:c(6.7)})});this.nt&&this.nt.$({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.$f=function(){var a;switch(this.fa){case "ready":a=
this.Tf.$G()?g("downloaded"):g("download-tour");break;case "installing":a=g("downloading");this.Ef!==l&&(a=a+("..."+this.Ef.toFixed(1)+"%"));break;case "installed":a=g("downloaded");break;case "failed":a=this.Fga==i.Gba?f.ob()?g("storage-not-provided-launch-from-homescreen"):g("storage-not-provided-launch-from-desktop"):this.Fga==i.Eba?g("storage-not-provided-bookmark"):g("download-failed")}this.Ka&&this.Ka.set("text",a);this.Gz&&this.Gz.set("visible",this.fa=="ready"&&!this.Tf.$G()&&this.Tf.Bqa());
this.Fz&&this.Fz.set("visible",this.fa=="ready"&&this.Tf.$G()&&this.Tf.Aqa());this.Iz&&this.Iz.set("visible",this.fa=="ready"&&this.Tf.Dqa());this.Ai&&this.Ai.set("visible",this.fa=="installing");this.nt&&this.nt.set("visible",this.fa!="installing");this.set("visible",this.fa!="hidden")};a.prototype.Kza=function(){this.Tf.Csa()};a.prototype.Qza=function(){this.Tf.Csa()};a.prototype.Jza=function(){this.Tf.Xr();this.fa="hidden";this.$f()};a.prototype.QP=function(){this.Tf.cancel();this.fa="hidden";
this.$f()};a.prototype.Iza=function(){this.fa=="installing"&&this.Tf.cancel();this.fa="hidden";this.$f()};return a});
define("kX","require,kG,dY,nU,nS,t,mk,c,nq,mH,mZ,fy,iu,in".split(","),function(a){function b(a,b){this.text=a;this.Yu=b}var d=a("kG"),c=a("dY"),g=a("nU"),f=a("nS"),i=a("t"),e=a("mk"),j=a("c"),o=a("nq"),k=a("mH"),n=a("mZ"),r=a("fy"),p=a("iu"),t=a("in"),a=d.extend(o,function(){o.call(this);this.fp=[];this.Ai=this.Hz=this.Ka=this.tA=this.NF=this.Wp=q;var a=new k;a.set("duration",500);a.set("easing","cubic_in");var b=new n;b.set("duration",500);b.set("easing","cubic_out");this.$({backgroundColor:"#000000",
backgroundOpacity:0.6,horizontalAlign:e.ae,gap:5,left:0,top:0,right:0,bottom:0,hideEffect:b,showEffect:a,visible:B})});a.prototype.mb=function(){o.prototype.mb.call(this);if(this.Wp==q){this.Wp=new o;this.Wp.$({centerX:0,centerY:0,backgroundColor:"#ffffff",horizontalAlign:e.ae,verticalAlign:e.zd,layout:j.mh,shadow:m,shadowColor:"#000000",shadowHorizontalLength:0,shadowVerticalLength:0,shadowOpacity:0.2});this.Oa(this.Wp)}if(this.Ka==q){this.Ka=new p;this.Ka.$({fontColor:"#808080",fontWeight:"300",
fontFamily:"Tahoma, Geneva, sans-serif"});this.Wp.Oa(this.Ka)}if(this.tA==q){this.tA=new t;this.tA.$({width:"80%"});this.Wp.Oa(this.tA)}if(this.NF==q){this.NF=new o;this.NF.$({backgroundColor:"#b3b3b3"});this.Wp.Oa(this.NF)}if(this.Bi==q){this.Bi=new o;this.Bi.$({horizontalAlign:e.ae,verticalAlign:e.zd,layout:j.xg});this.Wp.Oa(this.Bi)}if(this.Hz==q){this.Hz=new r;this.Hz.$({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:e.ae,verticalAlign:e.zd,
label:f("yes").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.Hz.bind(g.ca,this.Mea,this,m);this.Bi.Oa(this.Hz)}if(this.Ai==q){this.Ai=new r;this.Ai.$({backgroundColor:"#606060",fontColor:"#FFFFFF",fontFamily:"Tahoma, Geneva, sans-serif",horizontalAlign:e.ae,verticalAlign:e.zd,label:f("no").toUpperCase(),pressedBorderColor:"#808080",rollOverBorderColor:"#808080"});this.Ai.bind(g.ca,this.QP,this,m);this.Bi.Oa(this.Ai)}};a.prototype.Ko=function(){o.prototype.Ko.call(this);
this.getParent().bind(g.sc,this.wl,this,m)};a.prototype.Lm=function(){this.getParent().unbind(g.sc,this.wl,this,m);o.prototype.Lm.call(this)};a.prototype.wl=function(){var a=this.getParent();if(a){var b=a.Ua(),a=a.Cb();if(i.ob())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.Wp&&this.Wp.$({borderRadius:b(1),width:b(80),height:b(40),gap:b(4),shadowBlurRadius:b(1),shadowSpread:b(1)});this.NF&&this.NF.$({width:b(60),minHeight:2,height:b(0.25)});
this.Bi&&this.Bi.$({gap:b(5)});this.Ai&&this.Ai.$({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.25)});this.Hz&&this.Hz.$({borderRadius:b(1),width:b(20),height:b(10),fontSize:b(4.5)});this.Ka&&this.Ka.$({fontSize:b(5)});this.nV()}};a.prototype.show=function(a,c){this.wl();var d=this.Bha(c);d>=0&&this.tma(d);this.ZHa(new b(a,c));this.JD()};a.prototype.hide=function(a){a=this.Bha(a);a>=0&&this.tma(a)};a.prototype.JD=function(){var a=this.getParent();a&&a.Zm(this,a.Db().length-1)};a.prototype.Mea=
function(){this.GP(m)};a.prototype.QP=function(){this.GP(B)};a.prototype.Bha=function(a){for(var b=0;b<this.fp.length;b++)if(this.fp[b].Yu==a)return b;return-1};a.prototype.nV=function(){if(this.Wp){var a=this.Pha();if(a){if(a.text.length<20){this.tA.set("visible",B);this.Ka.set("text",a.text);this.Ka.set("visible",m)}else{this.Ka.set("visible",B);this.tA.set("html",this.ADa(a.text));this.tA.set("visible",m)}this.Ai.set("visible",a.Yu?m:B);this.set("visible",m)}else this.set("visible",B)}};a.prototype.ADa=
function(a){return"<div style=\"color:#808080; font-weight:300; font-family:'Tahoma', 'Geneva', sans-serif; font-size: "+this.Ka.get("fontSize")+'px; text-align:center;" >'+a+"</div>"};a.prototype.GP=function(a){var b=this.Pha();if(b){b=this.ODa(b.text);this.vIa(b);c(b).each(function(b){b.Yu&&b.Yu.call(this,a)},this)}};a.prototype.ZHa=function(a){this.fp.push(a);this.nV()};a.prototype.ODa=function(a){return c(this.fp).filter(function(b){return b.text==a})};a.prototype.vIa=function(a){this.fp=c(this.fp).filter(function(b){return!c(a).contains(b)});
this.nV()};a.prototype.tma=function(a){this.fp.splice(a,1);a==this.fp.length&&this.nV()};a.prototype.Pha=function(){return this.fp.length>0?this.fp[this.fp.length-1]:q};return a});
define("ld","require,kG,nU,cs,fQ,t,mt".split(","),function(a){function b(a){return a.map(function(a){return String.fromCharCode(a)}).join("")}function d(a){for(;a&&a!=document;){if(a.getAttribute(t)=="Button")return m;a=a.parentNode}return B}var c=a("kG"),g=a("nU"),f=a("cs"),i=a("fQ"),e=a("t"),j=a("mt"),o=[],a=b([99,111,110,116,101,120,116,109,101,110,117]),k=b([109,111,117,115,101,100,111,119,110]),n=b([109,111,117,115,101,117,112]),r=b([109,111,117,115,101,108,101,97,118,101]),p=b([109,111,117,
115,101,101,110,116,101,114]),t=b([116,100,118,99,108,97,115,115]);document.addEventListener(a,function(a){if(!e.ob()||!d(a.target)){(s===l||u===l||v===l||w===l||Math.abs(v-s)+Math.abs(w-u)<10)&&o.forEach(function(b){b(a)});s=u=v=w=l}a.preventDefault();a.stopImmediatePropagation()},m);var s,u,v,w;document.addEventListener("mousedown",function(a){v=s=a.screenX;w=u=a.screenY},m);document.addEventListener("mousemove",function(a){v=a.screenX;w=a.screenY},m);var x=1,c=c.extend(i,function(a,b){i.call(this);
this.Sa=a;this.IDa=b;this.AS=this.AS.bind(this);this.Ed=this.Ed.bind(this);this.A3=B;this.x3=this.x3.bind(this);this.y3=this.y3.bind(this);this.w3=this.w3.bind(this);this.z3=this.z3.bind(this);this.ea=document.createElement("div");this.ea.style.setProperty("z-index",x,L[z]);for(var c in L[y])this.ea.style.setProperty(c,L[y][c],L[z]);o.push(this.AS)});c.prototype.clear=function(){this.IFa()&&this.M2();this.ea=q;o.splice(o.indexOf(this.AS),1)};c.prototype.AS=function(a){var b=this.IDa();if(b.length!=
0){this.ea.replaceChildren();this.A3=B;var c=0;b.forEach(function(a){var b=document.createElement("div");if(a){b.textContent=a;for(var d in L[E])b.style.setProperty(d,L[E][d],L[z]);var e=c;c++;b.addEventListener(p,function(a){this.x3(a,e)}.bind(this));b.addEventListener(r,function(a){this.y3(a,e)}.bind(this));b.addEventListener(k,function(a){this.w3(a,e)}.bind(this));b.addEventListener(n,function(a){this.z3(a,e)}.bind(this))}else for(d in L[H])b.style.setProperty(d,L[H][d],L[z]);for(d in L[D])b.style.setProperty(d,
L[D][d],L[z]);this.ea.appendChild(b)}.bind(this));(j.$p()||document.body).appendChild(this.ea);this.ea.style.setProperty("display","block",L[z]);b=a.pageX;a=a.pageY;b+this.ea.clientWidth>document.body.clientWidth-5&&(b=document.body.clientWidth-this.ea.clientWidth-5);a+this.ea.clientHeight>document.body.clientHeight-5&&(a=document.body.clientHeight-this.ea.clientHeight-5);this.ea.style.setProperty("left",b+"px",L[z]);this.ea.style.setProperty("top",a+"px",L[z]);this.Sa.bind(g.zb,this.Ed,this);document.addEventListener("mousedown",
this.Ed);this.tNa=setInterval(this.sNa.bind(this),200)}};c.prototype.IFa=function(){return!!this.ea&&!!this.ea.parentNode};c.prototype.M2=function(){clearInterval(this.tNa);this.ea.parentNode.removeChild(this.ea);document.removeEventListener("mousedown",this.Ed);this.Sa.unbind(g.zb,this.Ed,this);this.ea.style.setProperty("display","none",L[z])};c.prototype.sNa=function(){this.ea.contains(document.elementFromPoint(this.ea.offsetLeft+this.ea.clientWidth*0.5,this.ea.offsetTop+this.ea.clientHeight*0.5))||
this.ea.style.setProperty("z-index",x=x*10,L[z])};c.prototype.Ed=function(){this.M2()};c.prototype.w3=function(a){this.A3=m;a.preventDefault();a.stopImmediatePropagation()};c.prototype.z3=function(a,b){if(this.A3){this.M2();a.preventDefault();a.stopImmediatePropagation();this.trigger(new f(g.Ul,{index:b}))}};c.prototype.x3=function(a){for(var b in L[M])a.currentTarget.style.setProperty(b,L[M][b],L[z])};c.prototype.y3=function(a){for(var b in L[G])a.currentTarget.style.setProperty(b,L[G][b],L[z])};
var y="0",D="1",E="2",H="3",M="4",G="5",z="6",L=function(a){return JSON.parse(a.map(function(a){return String.fromCharCode(a)}).join(""))}([123,34,48,34,58,123,34,98,111,114,100,101,114,34,58,34,49,112,120,32,115,111,108,105,100,32,35,98,98,98,34,44,34,98,111,114,100,101,114,45,114,97,100,105,117,115,34,58,34,51,112,120,34,44,34,112,111,115,105,116,105,111,110,34,58,34,97,98,115,111,108,117,116,101,34,44,34,100,105,115,112,108,97,121,34,58,34,110,111,110,101,34,44,34,98,97,99,107,103,114,111,117,
110,100,45,99,111,108,111,114,34,58,34,35,101,53,101,53,101,53,34,44,34,111,112,97,99,105,116,121,34,58,49,44,34,112,97,100,100,105,110,103,34,58,48,44,34,109,97,114,103,105,110,34,58,48,44,34,112,111,105,110,116,101,114,45,101,118,101,110,116,115,34,58,34,97,108,108,34,44,34,116,101,120,116,45,97,108,105,103,110,34,58,34,108,101,102,116,34,44,34,98,111,120,45,115,104,97,100,111,119,34,58,34,49,112,120,32,49,112,120,32,51,112,120,32,114,103,98,97,40,48,44,32,48,44,32,48,44,32,48,46,50,41,34,125,44,
34,49,34,58,123,34,102,111,110,116,45,102,97,109,105,108,121,34,58,34,65,114,105,97,108,34,44,34,102,111,110,116,45,115,105,122,101,34,58,34,49,51,112,120,34,44,34,99,111,108,111,114,34,58,34,35,48,48,48,48,48,48,34,44,34,111,112,97,99,105,116,121,34,58,49,44,34,100,105,115,112,108,97,121,34,58,34,98,108,111,99,107,34,44,34,112,111,105,110,116,101,114,45,101,118,101,110,116,115,34,58,34,97,108,108,34,125,44,34,50,34,58,123,34,99,117,114,115,111,114,34,58,34,112,111,105,110,116,101,114,34,44,34,98,
111,114,100,101,114,45,114,97,100,105,117,115,34,58,34,51,112,120,34,44,34,112,97,100,100,105,110,103,34,58,34,55,112,120,32,50,48,112,120,34,44,34,119,104,105,116,101,45,115,112,97,99,101,34,58,34,110,111,119,114,97,112,34,125,44,34,51,34,58,123,34,109,97,114,103,105,110,34,58,34,55,112,120,32,53,112,120,34,44,34,98,111,114,100,101,114,45,116,111,112,34,58,34,49,112,120,32,115,111,108,105,100,32,35,97,97,97,34,44,34,98,111,114,100,101,114,45,98,111,116,116,111,109,34,58,34,49,112,120,32,115,111,
108,105,100,32,35,102,102,102,34,125,44,34,52,34,58,123,34,99,111,108,111,114,34,58,34,35,102,102,102,102,102,102,34,44,34,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,34,58,34,114,103,98,97,40,48,44,32,48,44,32,48,44,32,48,46,55,41,34,125,44,34,53,34,58,123,34,99,111,108,111,114,34,58,34,35,48,48,48,48,48,48,34,44,34,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,34,58,34,34,125,44,34,54,34,58,34,105,109,112,111,114,116,97,110,116,34,125]);return c});
define("lF",["require","lB","bc"],function(a){function b(a){this.Sa=a;this.Fr={};this.Fr[c.gxa]="move";this.Fr[c.hxa]="ew-resize";this.Fr[c.jxa]="ns-resize";this.Fr[c.ixa]="nesw-resize";this.Fr[c.kxa]="nwse-resize";this.Fr[c.yf]="pointer";this.Fr[c.Mv]="inherit";this.Fr[c.me]="default";this.Tg={};this.Tg[c.iz]="grab.cur";this.Tg[c.Ek]="grabbing.cur";this.Tg[c.sca]="N.cur";this.Tg[c.tca]="NE.cur";this.Tg[c.jca]="E.cur";this.Tg[c.wca]="SE.cur";this.Tg[c.vca]="S.cur";this.Tg[c.xca]="SW.cur";this.Tg[c.yca]=
"W.cur";this.Tg[c.uca]="NW.cur";this.Tg[c.lca]="FN.cur";this.Tg[c.mca]="FNE.cur";this.Tg[c.kca]="FE.cur";this.Tg[c.pca]="FSE.cur";this.Tg[c.oca]="FS.cur";this.Tg[c.qca]="FSW.cur";this.Tg[c.rca]="FW.cur";this.Tg[c.nca]="FNW.cur";this.Uea={}}var d=a("lB"),c=a("bc");b.prototype.qra=function(a){return this.DFa(a)?this.Mha(a):this.sFa(a)?this.oDa(a):this.Mha(c.me)};b.prototype.Wza=function(a){if(!(a in this.Uea)){var b=new Image;b.src=this.jha(a);this.Uea[a]=b}};b.prototype.DFa=function(a){return a in
this.Fr};b.prototype.Mha=function(a){return this.Fr[a]};b.prototype.sFa=function(a){return this.Tg[a]};b.prototype.oDa=function(a){this.Wza(a);return"url("+this.jha(a)+"), default"};b.prototype.jha=function(a){return d.yv(this.Sa.get("settings").get(TDV.PlayerSettings.CURSORS_DIR_URL))+"/"+this.Tg[a]};return b});
define("cm",["dY"],function(a){function b(){this.xu={};this.zp=[];this.zI=0}b.prototype.push=function(b,c){if(this.xu[c]==l)this.xu[c]=[b],this.zp.push(c),this.zp.sort(function(a,b){return a-b}),this.zI++;else{var g=this.xu[c];a(g).contains(b)||(g.push(b),this.zI++)}};b.prototype.sra=S("zI");b.prototype.isEmpty=function(){return 0==this.zp.length};b.prototype.gua=function(){if(!this.isEmpty()){var a=this.zp[0],b=this.xu[a].pop();0==this.xu[a].length&&(delete this.xu[a],this.zp=this.zp.slice(1));this.zI--;
return b}};b.prototype.V$=function(){if(!this.isEmpty()){var a=this.zp[this.zp.length-1],b=this.xu[a].pop();0==this.xu[a].length&&(delete this.xu[a],this.zp=this.zp.slice(0,this.zp.length-1));this.zI--;return b}};return b});
define("il","require,dY,kG,gg,cm,bg,kJ".split(","),function(a){function b(){this.Ex=B;this.Ila=l;this.N=m;this.fT=this.fT.bind(this);this.eQ=new c;this.NT=new c;this.EU=new c;this.ZR=new c;this.$0=new c;g.yb(this.rj,this)}a("dY");a("kG");var d=a("gg"),c=a("cm"),g=a("bg"),f=a("kJ");b.prototype.clear=function(){this.N=B};b.prototype.JN=function(a){this.eQ.push(a,this.vE(a));this.Du()};b.prototype.$d=function(a){this.NT.push(a,this.vE(a));this.Du()};b.prototype.Nb=function(a){this.EU.push(a,this.vE(a));
this.Du()};b.prototype.wd=function(a){this.ZR.push(a,this.vE(a));this.Du()};b.prototype.Ck=function(a){this.$0.push(a,this.vE(a));this.Du()};b.prototype.X=function(){this.iMa();this.VMa();this.kMa()};b.prototype.iMa=function(){do{for(;!this.eQ.isEmpty();)this.eQ.V$().mb();this.NT.isEmpty()||this.NT.V$().Ma()}while(!this.NT.isEmpty()||!this.eQ.isEmpty())};b.prototype.VMa=function(){for(;!this.EU.isEmpty()||!this.ZR.isEmpty();){this.sV();this.i8()}};b.prototype.sV=function(){for(;!this.EU.isEmpty();){var a=
this.EU.V$();if(a.TTa()){var b=a.getParent();if(b){b.Nb();b.wd()}else a.Nua(0,0,a.gs(),a.fs())}}};b.prototype.i8=function(){for(;!this.ZR.isEmpty();)this.ZR.gua().Ol()};b.prototype.kMa=function(){for(;!this.$0.isEmpty();)this.$0.gua().Pg();d.bRa()};b.prototype.Du=function(){if(!this.Ex){this.Ex=m;this.Ila=(new Date).getTime()+500;f.xy(this.fT)}};b.prototype.fT=function(){this.Ex=B;this.N&&this.X()};b.prototype.vE=function(a){return(a=a.getParent())?this.vE(a)+1:0};b.prototype.rj=function(){this.Ex&&
(new Date).getTime()>=this.Ila&&this.fT();g.yb(this.rj,this)};return b});
define("gk","jquery.mod,dY,kG,nU,nq,ld,lF,bk,il,mt,t".split(","),function(a,b,d,c,g,f,i,e,j,o,k){d=d.extend(g,function(b,d){this.CD=new j;g.call(this);this.Ar(this);this.je("Application");this.Ze=a(b);this.L8=d;this.Ze.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.Ju=a(document.createElement("div"));
this.Ju.css({position:"absolute",left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",margin:0});this.Ze.append(this.Ju);this.Ju.append(this.Lc());this.joa=this.Ju.get(0);this.pd=this.gd=l;this.lFa=10;this.jAa=500;this.zL=q;this.L0=new i(this);this.$a=new e(this);this.ea.append(this.$a.Lc());this.qQ=new f(this,this.gha.bind(this));this.qQ.bind(c.Ul,this.eh(this.Oja),this,m);this.hja=m;this.set("contentOpaque",m);this.Uz=q;this.tI=[];this.hE(["globalmousemove"]);this.rza();this.CV=this.DV=0;this.zx=
1;try{this.DV=window.top.innerWidth;this.CV=window.top.innerHeight;this.F2=m}catch(k){this.F2=B}this.Epa();this.Fi=new o(b);this.Fi.bind(c.qa,function(){this.P1(this.Fi.enabled())},this)});d.prototype.start=function(){if(!this.Wna){this.Wna=m;this.trigger(c.Tj)}};d.prototype.Epa=function(){if(this.F2&&!o.enabled()){this.DV=window.top.innerWidth;this.CV=window.top.innerHeight}};d.prototype.clear=function(){this.CC(q);this.goa();this.vCa();this.CD.clear();if(this.Ze){this.Lc().remove();this.Ju.remove();
this.Ze=q}this.L0=q;this.Fi.lba();this.Fi=q;if(this.qQ){this.qQ.clear();this.qQ=q}};d.prototype.zSa=R("hja");d.prototype.P1=function(a){a?this.dna():this.uAa()};d.prototype.du=function(){this.OJ=this.Zk=this.Ju.width();this.NJ=this.Yk=this.Ju.height()};d.prototype.CC=function(a){if(this.Uz!=a){this.Uz!=q&&this.Uz.HLa();this.Uz=a;for(var c=[];a!=q;){c=[a].concat(c);a=a.getParent()}for(var a=this.tI.length-1,d=m;a>=0&&d;a--)b(c).contains(this.tI[a])?d=B:this.tI.pop().KLa();for(a=0;a<c.length;a++)b(this.tI).contains(c[a])||
c[a].LLa();this.tI=c;this.Uz!=q&&this.Uz.GLa();this.$a.CC(this.Uz)}};d.prototype.BEa=function(a){var b=this.yE(a);this.wia(a,b.x,b.y)?a.preventDefault():this.CC(q)};d.prototype.Sha=function(a){var b=this.pA(a);this.wia(a,b.x,b.y)?a.preventDefault():this.CC(q)};d.prototype.gha=function(){return[]};d.prototype.Oja=I();d.prototype.wia=function(a,b,c){return this.tFa(a.target)&&b>=0&&c>=0&&b<this.Z&&c<this.ia};d.prototype.tFa=function(a){if(!this.Ze)return B;for(var b=this.Ze.get(0);a;){if(a===b)return m;
a=a.parentElement}return B};d.prototype.rza=function(){this.hE(["globalresize"]);this.R_=setInterval(b.bind(function(){this.gfa()},this),this.jAa)};d.prototype.vCa=function(){this.II(["globalresize"]);if(this.R_){clearInterval(this.R_);this.R_=q}};d.prototype.gfa=function(){this.Fi.enabled()?this.dna():this.Epa();var a=this.joa.clientWidth,b=this.joa.clientHeight;if(this.gd!=a||this.pd!=b){this.gd=a;this.pd=b;this.IKa()}};d.prototype.dna=function(){var a;if(this.F2&&(k.le()==k.DH&&k.browser()==k.Dk||
k.le()==k.aj)){var b=o.$p();a=b.clientWidth;var b=b.clientHeight,c=(a>b?a:b)/(this.DV>this.CV?this.DV:this.CV),d=Math.round(a/c),e=Math.round(b/c);this.zx=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.zx=1}this.Ju.css(a)};
d.prototype.uAa=function(){this.Ju.css({position:"abolute",left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",transform:""});this.zx=1};d.prototype.IKa=function(){this.goa();var a=this;this.zL=setTimeout(function(){a.zL=q;a.Nb()},this.lFa)};d.prototype.goa=function(){if(this.zL){this.zL=q;clearTimeout(this.zL)}};d.prototype.AEa=function(){this.gfa()};d.prototype.a2=function(){return b(g.prototype.a2.call(this)).defaults({globaltouchmove:[{target:a(document),name:"touchmove",handler:this.eh(this.BEa)}],
globalmousemove:[{target:a(document),name:"mousemove",handler:this.eh(this.Sha)},{target:a(window),name:"mouseout",handler:this.eh(this.Sha)}],globalresize:[{target:a(window),name:"resize",handler:this.eh(this.AEa)}]})};return d});
define("ge","require,jquery.mod,op,bY,mt,nU,fQ,nS,t".split(","),function(a){function b(){p=TDV.kb.es();var a=r||p;if(n!=a){n=a;k.trigger(i.qa)}a=!!r&&p!=r&&o.ob();if(t!=a){if(!s){s=d("<div/>");s.css({position:"fixed","z-index":c.Nwa,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="'+g.QH+'"/>','<div style="color:#000; font-family:Arial, Helvetica, sans-serif; font-size:3.6vmin; line-height:4.3vmin; margin:5vmin 0; text-align:center;">'+j("rotate-device")+"</div>","</div>\n</div>"].join("\n"));u=s.find("img")}t&&s.detach();(t=a)&&(f.enabled()?d(f.$p()):d("body")).append(s)}t&&u.css("transform",n==k.uxa?"translate(-11%, 0) rotate(-90deg)":"none")}var d=a("jquery.mod"),c=a("op"),g=a("bY"),f=a("mt"),i=a("nU"),e=a("fQ"),j=a("nS"),o=a("t"),k=new e;
k.mUa=TDV.kb.eZ;k.uxa=TDV.kb.fZ;k.HC=function(a){if(r!=a){r=a;b()}};k.Cra=function(){return r};k.get=function(){return n};var n=l,r=l,p=l,t=B,s=q,u=q;window.addEventListener("resize",function(){b();setTimeout(b,500)},m);try{window.screen.orientation.addEventListener("change",b)}catch(v){window.addEventListener("orientationchange",b,B)}b();return k});
define("ig","require,kG,dY,nU,cs,cy,eQ,mq,nS,me,F,jW,kX,dK,eI,mQ,la,t,hl,eG,cp,iQ,lB,bu,dV,gk,nq,cT,mt,bB,ge,lm,dm".split(","),function(a){var b=a("kG"),d=a("dY"),c=a("nU"),g=a("cs"),f=a("cy"),i=a("eQ"),e=a("mq"),j=a("nS"),o=a("me"),k=a("F"),n=a("jW"),r=a("kX"),p=a("dK"),t=a("eI"),s=a("mQ"),u=a("la"),v=a("t"),w=a("hl"),x=a("eG"),y=a("cp"),D=a("iQ"),E=a("lB"),H=a("bu"),M=a("dV"),G=a("gk"),z=a("nq"),L=a("cT"),K=a("mt"),A=a("bB"),N=a("ge"),J=a("lm"),C=a("dm"),F=b.extend(G,function(){G.apply(this,arguments);
this.Tf=new x(this);this.lga=new n(this,this.Tf);this.Nq=new z;this.Nq.$({backgroundOpacity:0,visible:m,width:"100%",height:"100%"});this.TE=new r;this.nG=new p;this.tQ=new k(this);var a=new L;a.EX(0);this.rO(a);this.Jf(m);this.bind(c.u("settings"),this.dHa,this,m);this.wV=TDV.kb.Vra();N.bind(c.qa,this.OGa,this,m);A.JTa();this.Nza=new o(this,"buttonMute",M.ne);this.Nza.bind(c.ca,this.Aka,this,m);this.Uza=new o(this,"buttonUnmute",M.ne);this.Uza.bind(c.ca,this.kla,this,m);this.VP=new o(this,"buttonToggleMute",
M.Uj);this.VP.bind(c.yi,this.Aka,this,m);this.VP.bind(c.Sj,this.kla,this,m);this.bind(c.u("mute"),this.LGa,this);this.VP.set("pressed",this.get("mute"));this.Lza=new o(this,"buttonEnterFullscreen",M.ne);this.Lza.bind(c.ca,this.Uja,this,m);this.Mza=new o(this,"buttonExitFullscreen",M.ne);this.Mza.bind(c.ca,this.Vja,this,m);this.SP=new o(this,"buttonToggleFullscreen",M.Uj);this.SP.bind(c.yi,this.Uja,this,m);this.SP.bind(c.Sj,this.Vja,this,m);this.SP.set("pressed",this.get("fullscreenEnabled"));this.bind(c.u("fullscreenEnabled"),
this.wGa,this,m);this.set("fullscreenEnabled",this.Fi.enabled());this.set("mouseWheelEnabled",m);this.set("backgroundPreloadEnabled",m);this.set("defaultVRPointer","laser");this.set("downloadEnabled",B);this.set("mediaActivationMode","window");this.set("fullscreenFallback","out_of_frame");this.set("defaultMenu",["fullscreen","mute","rotation"]);this.set("watermark",m);this.bind(c.Tj,this.gHa,this,m);[c.zb,c.Wb,c.vq,c.dD,c.bD].forEach(function(a){this.bind(a,function(a){this.trigger(new g(c.dz,{BO:a}))},
this,m)}.bind(this));["keydown","keyup"].forEach(function(a){document.addEventListener(a,function(a){this.trigger(new g(c.dz,{BO:a}))}.bind(this))}.bind(this));H.bind(c.qa,function(){H.isPresenting()?N.HC(l):N.HC(G.prototype.get.call(this,"lockedOrientation"))},this);this.Fi.bind(c.qa,function(){var a=N.Cra();N.HC(l);N.HC(a)},this)});F.Oba="orientationChange";i.F("Player",F).gSa().H("Container").Q({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",watermark:"bool"}).ASa().Mg({logCapabilities:function(){this.UFa()},activateAudio:function(a){this.jya(a)}}).hh([c.Tj,F.Oba,c.dz]);F.prototype.P1=function(a){G.prototype.P1.apply(this,arguments);this.set("fullscreenEnabled",a)};F.prototype.ab=function(){G.prototype.ab.call(this);this.f("mute",B);this.f("fullscreenEnabled",B)};F.prototype.mb=function(){G.prototype.mb.call(this);
this.lga.getParent()!=this&&this.Oa(this.lga);if(this.Nq.getParent()!=this){this.Oa(this.Nq);this.Nq.Oa(this.tQ);this.Nq.Oa(this.TE);this.Nq.Oa(this.nG)}};F.prototype.NIa=function(a){var b=[];this.TE&&b.push(this.TE);this.nG&&b.push(this.nG);this.tQ&&b.push(this.tQ);for(var c=m,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)};F.prototype.Ma=function(){this.ima||(this.ima=d.difference(this.gEa(),["backgroundOpacity",
"visible","includeInLayout","state","left","right","top","bottom","centerX","centerY","width","height","minWidth","minHeight","maxWidth","maxHeight","actualWidth","actualHeight","paddingLeft","paddingTop","paddingRight","paddingBottom"]));this.Yb(this.ima,{},[this.Nq],m,m);G.prototype.Ma.call(this);this.YUa===m&&this.XUa()};F.prototype.set=function(a,b){switch(a){case "children":this.Nq.set(a,this.NIa(b));return;case "creationPolicy":this.Nq.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.Fi.available()&&b;break;case "fullscreenFallback":K.waa(b);break;case "lockedOrientation":v.If()&&(b=l);N.HC(b);break;case "installAvailable":b=this.Tf.ready();break;case "mouseWheelEnabled":this.zSa(E.Si("mousewheelenabled",b));break;case "backgroundPreloadEnabled":this.ZIa(b);break;case "vrPolyfillScale":H.NSa(b);break;case "desktopMipmappingEnabled":s.QRa(b);break;case "mobileMipmappingEnabled":s.xSa(b)}G.prototype.set.call(this,a,b)};F.prototype.get=
function(a,b){switch(a){case "children":case "creationPolicy":return this.Nq.get(a,b);case "touchEnabled":return this.Fn;case "touchDevice":return v.jba();case "isMobile":return v.ob();case "orientation":return N.get();case "lockedOrientation":return N.Cra();case "gyroscopeAvailable":return w.available;case "cardboardAvailable":case "vrAvailable":return H.available();case "fullscreenAvailable":return this.Fi.available();case "vrPolyfillScale":return H.lPa();case "installAvailable":return this.Tf.ready();
case "surfaceSelectionAvailable":return t.Dva();case "pageScale":return this.zx;case U:return this.L8?G.prototype.get.apply(this,arguments):m;default:return G.prototype.get.apply(this,arguments)}};F.prototype.Aka=function(){this.set("mute",m)};F.prototype.kla=function(){this.set("mute",B)};F.prototype.LGa=function(){this.VP.set("pressed",this.get("mute"))};F.prototype.Uja=function(){this.set("fullscreenEnabled",m)};F.prototype.Vja=function(){this.set("fullscreenEnabled",B)};F.prototype.wGa=function(){this.get("fullscreenEnabled")?
this.Fi.yk():this.Fi.Hf();this.SP.set("pressed",this.get("fullscreenEnabled"));this.set("fullscreenEnabled",this.Fi.enabled())};F.prototype.dHa=function(){var a=this.get("settings");if(a){y.fq(a);D.Qaa(a);THREE.vwa=a.get(TDV.PlayerSettings.vba);this.Tf.Qaa(a)}};F.prototype.ZIa=function(a){D.enabled(a)};F.prototype.gha=function(){var a=[];this.TD=[];(this.get("menu")||[]).forEach(function(b){var c=b.get("label");a.push(b.get("label"));c&&this.TD.push(function(){b.trigger("click")})}.bind(this));var b=
this.get("defaultMenu",[]);if(b.indexOf("rotation")>=0){var c=this.Fj("PanoramaPlayer");if(c.length){a.push(c[0].get("mouseControlMode")==f.Sy?j("change-to-drag-and-release"):j("change-to-click-and-move"));this.TD.push(this.sLa.bind(this))}}if(b.indexOf("fullscreen")>=0&&this.Fi.available()){a.push(this.Fi.enabled()?j("exit-fullscreen"):j("enter-fullscreen"));this.TD.push(this.qLa.bind(this))}if(b.indexOf("mute")>=0){a.push(this.get("mute")?j("unmute"):j("mute"));this.TD.push(this.rLa.bind(this))}b=
[].concat(e.name?[e.name]:[],e.nOa!="false"?e.PN?["v:"+e.PN+"."+e.TN]:["v:"+e.TN]:[]).join(" ");if(b!=""){a.length>0&&a.push("");a.push(b);this.TD.push(this.sHa.bind(this))}return a};F.prototype.Oja=function(a){this.TD[a.data.index]()};F.prototype.sLa=function(){var a=this.Fj("PanoramaPlayer"),b=a[0].get("mouseControlMode")==f.Sy?f.Fs:f.Sy;a.forEach(function(a){C.setItem(O,b);a.set("mouseControlMode",b)})};F.prototype.gHa=function(){C.getItem(O)==f.Fs&&this.Fj("PanoramaPlayer").forEach(function(a){a.set("mouseControlMode",
f.Fs)});E.Ui("mute")&&this.set("mute",E.Si("mute",this.get("mute")));E.Ui("vr")&&H.yk()};F.prototype.qLa=function(){this.Fi.toggle()};F.prototype.rLa=function(){this.set("mute",!this.get("mute"))};F.prototype.sHa=function(){e.nwa&&window.open(e.nwa,"_blank")};F.prototype.OGa=function(){this.trigger(F.Oba)};F.prototype.UFa=function(){b.rOa(m);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+")");v.log();u.log();j.log();H.log()};F.prototype.jya=function(a){if(A.g9())J.AH(a);else{A.rba(a);A.Wi(this)}};var O="tdvp_"+window.location.pathname+"_rotation_mode",U=[119,97,116,101,114,109,97,114,107].map(function(a){return String.fromCharCode(a)}).join("");return F});
define("ci",["require","kG","lh","nU","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("PlayerMenuItem",b).H("Object").Q({label:"string"}).hh([c.ca]);return b});
define("T","require,kG,lh,nU,gE,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("gE"),f=a("eQ"),i=a("jJ"),a=b.extend(d,function(){d.call(this);this.set("visible",B);this.set("state",g.L);this.set("showDuration",1E3);this.set("hideDuration",1E3);this.set("darkenBackground",m);this.set("lookAwayToHide",m);this.set("lookAwayToHideTime",2E3);this.set("showEasing","linear");this.set("hideEasing","linear");this.bind(c.u("state"),function(){this.trigger(c.Fc)},this,m);this.Xc=l});a.prototype.show=
function(){this.set("visible",m)};a.prototype.hide=function(){this.set("visible",B)};a.prototype.play=function(){this.set("state",g.S)};a.prototype.pause=function(){this.set("state",g.iP)};a.prototype.stop=function(){this.set("state",g.L)};f.F("PopupPanoramaOverlay",a).H("PanoramaOverlay").Q({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]"}).Mg({hide:a.prototype.hide,pause:a.prototype.pause,play:a.prototype.play,show:a.prototype.show,stop:a.prototype.stop}).fc([c.Ga,c.rD,c.fD,c.Fc]).hh([c.ca]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=i.nPa(this);return this.Xc}return d.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=B;switch(a){case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "rotationZ":case "yaw":case "playbackPositions":this.Xc=
l;f=m}d.prototype.set.call(this,a,b);f&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};return a});define("nV",["dY","kG","y","eQ"],function(a,b,d,c){a=b.extend(d,function(){d.call(this)});c.F("ProgressBar",a).H("UIComponent").Q({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("gb","require,kG,lh,nU,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("jJ"),a=b.extend(d,function(){d.call(this);this.Xc=l;this.set("enabled",m);this.set("interactionEnabled",m);this.set("contentInteractive",B);this.set("transparent",B)});g.F("QuadFramePanoramaOverlay",a).H("PanoramaOverlay").Q({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"}).fc([c.nc,c.Gk,c.Sh,c.bc,c.rb,c.hc]).hh([c.ca]).vi(["url"]);a.prototype.set=function(a,b){var f=B;switch(a){case "vertices":case "playbackPositions":this.Xc=l;f=m}d.prototype.set.call(this,a,b);f&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=f.h$(this);return this.Xc}return d.prototype.get.call(this,
a,b)};return a});define("bD",["require","kG","eQ","cF"],function(a){var b=a("kG"),d=a("eQ"),c=a("cF"),a=b.extend(c,function(){c.call(this)});d.F("QuadHotspotPanoramaOverlay",a).H("HotspotPanoramaOverlay");return a});define("io",["eQ","s"],function(a,b){a.F("QuadHotspotPanoramaOverlayArea",b).H("HotspotPanoramaOverlayArea");return b});
define("dA","require,kG,lh,nU,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("eQ"),f=a("jJ"),a=b.extend(d,function(){d.call(this);this.set("opacity",1);this.Xc=l});g.F("QuadHotspotPanoramaOverlayImageBase",a).H("Object").Q({distance:"number",image:"ImageResource",playbackPositions:"array[QuadPanoramaOverlayPlaybackPosition]",opacity:"number",vertices:"array[PanoramaPoint]"}).fc([c.hc,c.nc]);a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=
f.h$(this);return this.Xc}return d.prototype.get.call(this,a,b)};a.prototype.set=function(a,b){var f=B;switch(a){case "opacity":case "distance":case "vertices":case "playbackPositions":this.Xc=l;f=m}d.prototype.set.call(this,a,b);f&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};return a});
define("fi",["require","kG","eQ","dA"],function(a){var b=a("kG"),d=a("eQ"),c=a("dA"),a=b.extend(c,function(){c.call(this)});d.F("QuadHotspotPanoramaOverlayImage",a).H("QuadHotspotPanoramaOverlayImageBase");return a});define("jK",["require","kG","eQ","dA"],function(a){var b=a("kG"),d=a("eQ"),c=a("dA"),a=b.extend(c,function(){c.call(this)});d.F("QuadHotspotPanoramaOverlayMap",a).H("QuadHotspotPanoramaOverlayImageBase");return a});
define("eH","require,kG,lh,nU,gE,cs,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("gE"),f=a("cs"),i=a("eQ"),e=a("jJ"),a=b.extend(d,function(){d.call(this);this.Xc=l;this.set("enabled",m);this.set("interactionEnabled",m);this.set("state",g.L);this.set("enabledInCardboard",m);this.set("enabledInStandard",m);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});a.prototype.play=function(){this.set("state",g.S)};a.prototype.pause=
function(){this.set("state",g.Gb)};a.prototype.stop=function(){this.set("state",g.L)};i.F("QuadVideoPanoramaOverlay",a).H("PanoramaOverlay").Q({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"}).fc([c.Ga,c.nc,c.Gk,c.Sh,c.bc,c.rb,c.hc,c.Tj,c.Rh,c.Fc]).hh([c.ca]).Mg({pause:a.prototype.pause,play:a.prototype.play,stop:a.prototype.stop});a.prototype.set=function(a,b){var e=B;switch(a){case "state":var i=this.get("state")||g.L;i==g.L&&b==g.S&&this.trigger(c.Tj);
i!=b&&this.trigger(new f(c.Fc,{oldState:i,state:b}));break;case "enabledInCardboard":this.set("enabledInVR",b);break;case "distance":case "opacity":case "playbackPositions":case "vertices":this.Xc=l;e=m}d.prototype.set.call(this,a,b);e&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=e.h$(this);return this.Xc}return d.prototype.get.call(this,a,b)};return a});
define("lS",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.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.F("RainPanoramaOverlay",b).H("PanoramaOverlay").Q({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===l&&(b=this.get("initialState"));return d.prototype.get.call(this,a,b)};return b});
define("eX",["require","kG","lh","eQ","nU"],function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),a=a("nU"),b=b.extend(d,function(){d.call(this)});c.F("RotationalCameraMovement",b).H("Object").Q({easing:"enum[linear, quad_in, quad_out, quad_in_out, cubic_in, cubic_out, cubic_in_out, quart_in, quart_out, quart_in_out, quint_in, quint_out, quint_in_out]",duration:"number",hfovSpeed:"number",pitchSpeed:"number",yawSpeed:"number"}).fc([a.Ga]);return b});
define("ce",["kG","er","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("SlideInEffect",a).H("Effect").Q({from:"enum[left, top, right, bottom]"});return a});define("hS",["kG","hf","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("SlideOutEffect",a).H("Effect").Q({to:"enum[left, top, right, bottom]"});return a});
define("nc",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.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.F("SnowPanoramaOverlay",b).H("PanoramaOverlay").Q({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===l&&(b=this.get("initialState"));return d.prototype.get.call(this,a,b)};return b});
define("lI",["require","kG","eQ","kO"],function(a){var b=a("kG"),d=a("eQ"),c=a("kO"),a=b.extend(c,function(){c.call(this)});d.F("SphericPanoramaFrame",a).H("PanoramaFrame").Q({sphere:"or[ImageResource, Video360Resource]",stereoSphere:"or[ImageResource, Video360Resource]"});a.prototype.Jj=function(){var a=this.get("sphere");return a&&d.xa("Video360Resource",a)?m:(a=this.get("stereoSphere"))&&d.xa("Video360Resource",a)?m:B};return a});
define("nB",["require","kG","nU","eQ","ic"],function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("ic"),a=b.extend(g,function(){g.call(this);this.set("anchorX",0.5);this.set("anchorY",0.5);this.set("depthTest",m);this.set("draggableArrowLength",50);this.set("draggableLineColor","#ffffff");this.set("draggableLineOpacity",1);this.set("draggableLineWidth",1);this.set("draggableSphereColor","#ffffff");this.set("draggableSphereRadius",5);this.set("draggableXControlsColor","#ff0000");this.set("draggableYControlsColor",
"#00ff00");this.set("draggableZControlsColor","#0000ff");this.set("encoding","srgb");this.set("positionDraggable",B);this.set("sizeDraggable",B);this.set("scale",1);this.set("translationLineColor","#ffffff");this.set("translationLineOpacity",1);this.set("translationLineWidth",1);this.set("translationLineVisible",B);this.set("translationX",0);this.set("translationY",0);this.set("translationZ",0)});c.F("SpriteModel3DObject",a).H("ExternalModel3DObject").Q({anchorX:"number",anchorY:"number",depthTest:"bool",
draggableArrowLength:"number",draggableLineColor:"color",draggableLineOpacity:"number",draggableLineWidth:"number",draggableSphereColor:"color",draggableSphereRadius:"number",draggableXControlsColor:"color",draggableYControlsColor:"color",draggableZControlsColor:"color",encoding:"enum[linear, srgb]",height:"number",image:"ImageResource",positionDraggable:"bool",sizeDraggable:"bool",scale:"number",translationLineColor:"color",translationLineOpacity:"number",translationLineVisible:"bool",translationLineWidth:"number",
translationLength:"number",translationX:"number",translationY:"number",translationZ:"number",width:"number"}).fc([d.rn,d.mP]);return a});define("kS",["require","kG","eQ","ic"],function(a){var b=a("kG"),d=a("eQ"),c=a("ic"),a=b.extend(c,function(){c.call(this);this.set("depthTest",m);this.set("distance",0);this.set("horizontal",B);this.set("transparentAreaActive",m)});d.F("SurfaceReticleModel3DObject",a).H("ExternalModel3DObject").Q({depthTest:"bool",distance:"number",horizontal:"bool"});return a});
define("cZ","dY,kG,w,nq,mk,W,iu".split(","),function(a,b,d,c,g,f,i){var e=b.extend(c,function(a){c.call(this);this.je("Tab");this.c5=a;this.ul="";this.t7=B;this.Eia=this.Ka=q;this.O8=this.N8=B;this.set("childrenInteractionEnabled",B);this.set("contentOpaque",m)});e.prototype.ab=function(){c.prototype.ab.call(this);this.f("horizontalAlign",g.ae);this.f("verticalAlign",g.zd);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")};e.prototype.jva=function(a){if(this.N8!=a){this.N8=a;this.O8=m;this.$d()}};e.prototype.mb=function(){c.prototype.mb.call(this);if(this.Ka==q){this.Ka=new i;this.Ka.set("horizontalAlign","center");this.Oa(this.Ka)}};e.prototype.Ko=function(){c.prototype.Ko.call(this);this.Eia=d.watch(this.c5,"label",this.cF,this);this.Ana(this.c5.get("label"))};
e.prototype.g6=function(){c.prototype.g6.call(this);this.Eia.unwatch()};e.prototype.cF=function(){var a=this.c5.get("label");this.Ana(a?a:"")};e.prototype.Ana=function(a){if(this.ul!=a){this.ul=a;this.t7=m;this.$d()}};e.prototype.Ma=function(){if(this.t7){this.t7=B;this.Ka.set("text",this.ul)}if(this.O8){this.O8=B;this.Ka.set("direction",this.N8?f.mh:f.xg)}this.Yb(e.Gda,e.zD,[this.Ka],m,m);c.prototype.Ma.call(this)};e.Gda=["fontFamily","fontSize","fontColor","fontWeight","fontStyle","textDecoration",
"textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];e.zD={};a(e.Gda).each(function(a){e.zD[a]=a});return e});define("eP",[],function(){return{OH:"normal",gD:"inverse",yba:"center"}});
define("cO","dY,kG,bh,bc,nU,nq,mk,c,hn,cZ,eP,bt".split(","),function(a,b,d,c,g,f,i,e,j,o,k,n){b=b.extend(f,function(){f.call(this);this.je("TabPanel");this.Pe=-1;this.vB=B;this.jM=[];this.VU=B;this.lr=[];this.e5=B;this.iM=[];this.Dg=this.ah=q;this.xB(B)});b.prototype.ab=function(){f.prototype.ab.call(this);this.f("pages",[]);this.f("selectedIndex",-1);this.f("tabsSize",25);this.f("tabsPosition",n.ic);this.f("tabsGap",0);this.f("tabsPadding",10);this.f("tabsAlign",k.OH);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.mb=function(){f.prototype.mb.call(this);if(this.Dg==q){this.Dg=new f;this.Dg.xB(B);this.Oa(this.Dg)}if(this.ah==q){this.ah=new f;this.ah.xB(B);this.Oa(this.ah)}};b.prototype.set=function(a,b){if(a=="pages")this.GSa(b||[]);else if(a=="selectedIndex")this.Paa(b);else if(a=="layout")b=e.bUa;f.prototype.set.call(this,a,b)};b.prototype.get=function(a,b){return a==
"pages"?this.lr:a=="selectedIndex"?this.Pe:f.prototype.get.call(this,a,b)};b.prototype.Paa=function(a){if(this.Pe!=a){this.Pe=a;this.Pe=Math.min(Math.max(this.Pe,-1),this.lr.length);this.vB=m;this.$d();this.trigger(g.qa)}};b.prototype.GSa=function(b){if(!a.isEqual(this.lr,b)){this.lr=b;this.e5=m;this.$d()}};b.prototype.eLa=function(b){this.jM=a(this.jM).union([b.source]);this.VU=m;this.$d()};b.prototype.dLa=function(b){this.jM=a(this.jM).difference([b.source]);this.VU=m;this.$d()};b.prototype.cLa=
function(b){this.Paa(a(this.iM).indexOf(b.source))};b.prototype.Ma=function(){var b=B,p=B,t=B,s=B,u=B,v=this.p("tabsPosition"),w=this.p("tabsAlign");if(this.e5){this.iM=[];this.ah.mua();this.Dg.mua();a(this.lr).forEach(function(b){var c=new o(b);c.xB(m);c.bind(g.bc,a.bind(this.eLa,this));c.bind(g.rb,a.bind(this.dLa,this));c.bind(g.zb,a.bind(this.cLa,this));this.iM.push(c);this.ah.Oa(c);b.$({top:l,left:l,right:l,bottom:l,width:"100%",height:"100%"});this.Dg.Oa(b)},this);this.Pe=Math.min(Math.max(this.Pe,
0),this.lr.length-1);this.e5=B;p=b=u=m}if(this.v("tabsPosition")){this.I("tabsPosition");s=p=b=m}if(this.vB){this.vB=B;t=p=u=m}if(this.VU){this.VU=B;t=m}this.v("overflow")&&this.ah.$({contentOpaque:this.p("overflow")==j.Go,overflow:this.p("overflow")});a(["tabsAlign","tabsGap","tabsSize"]).forEach(function(a){if(this.v(a)){this.I(a);b=m}},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.v(a)){this.I(a);s=p=m}},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.v(a)){this.I(a);p=m}},this);a(["pagePaddingLeft",
"pagePaddingTop","pagePaddingRight","pagePaddingBottom"]).forEach(function(a){if(this.v(a)){this.I(a);s=m}},this);this.v("backgroundColorDirection")&&this.I("backgroundColorDirection");if(b){switch(v){case n.Ja:this.ah.$({left:0,right:l});break;case n.Xa:this.ah.$({left:l,right:0});break;case n.ic:this.ah.$({bottom:l,top:0});break;case n.ac:this.ah.$({bottom:0,top:l})}switch(v){case n.Ja:case n.Xa:this.ah.$({layout:e.mh,top:0,bottom:0,height:l,width:this.p("tabsSize")});switch(w){case k.gD:this.ah.set("verticalAlign",
i.ac);break;case k.yba:this.ah.set("verticalAlign",i.zd);break;default:this.ah.set("verticalAlign",i.ic)}break;case n.ic:case n.ac:this.ah.$({layout:e.xg,left:0,right:0,height:this.p("tabsSize"),width:l});switch(w){case k.gD:this.ah.set("horizontalAlign",i.Xa);break;case k.yba:this.ah.set("horizontalAlign",i.ae);break;default:this.ah.set("horizontalAlign",i.Ja)}}this.ah.set("gap",this.p("tabsGap"))}if(p)for(var x=0;x<this.lr.length;x++){var y=this.iM[x];if(v==n.ac||v==n.ic){y.$({layout:e.xg,width:l,
paddingLeft:this.p("tabsPadding"),paddingTop:0,paddingRight:this.p("tabsPadding"),paddingBottom:0,height:"100%",backgroundColorDirection:d.zZ});y.jva(B)}else{y.$({layout:e.mh,width:"100%",paddingLeft:0,paddingTop:this.p("tabsPadding"),paddingRight:0,paddingBottom:this.p("tabsPadding"),height:l,backgroundColorDirection:d.ZY});y.jva(m)}v==n.ac||v==n.Xa?y.set("borderTopLeftRadius",0):y.set("borderTopLeftRadius",this.p("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));v==n.ac||
v==n.Ja?y.set("borderTopRightRadius",0):y.set("borderTopRightRadius",this.p("borderTopRightRadius","borderTopRadius","borderRightRadius","borderRadius"));v==n.ic||v==n.Xa?y.set("borderBottomLeftRadius",0):y.set("borderBottomLeftRadius",this.p("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));v==n.ic||v==n.Ja?y.set("borderBottomRightRadius",0):y.set("borderBottomRightRadius",this.p("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));v==
n.Xa&&y.set("borderSize",this.p("borderRightSize","borderSize"));v==n.Ja&&y.set("borderSize",this.p("borderLeftSize","borderSize"));v==n.ic&&y.set("borderSize",this.p("borderTopSize","borderSize"));v==n.ac&&y.set("borderSize",this.p("borderBottomSize","borderSize"));var D;switch(v){case n.Ja:D=this.p("borderLeftColor","borderColor");break;case n.Xa:D=this.p("borderRightColor","borderColor");break;case n.ac:D=this.p("borderBottomColor","borderColor");break;default:case n.ic:D=this.p("borderTopColor",
"borderColor")}y.set("borderColor",D);y.$({fontFamily:this.p("tabsFontFamily"),shadow:this.p("shadow"),shadowHorizontalLength:this.p("shadowHorizontalLength"),shadowVerticalLength:this.p("shadowVerticalLength"),shadowBlurRadius:this.p("shadowBlurRadius"),shadowSpread:this.p("shadowSpread"),shadowColor:this.p("shadowColor")})}if(p||t)for(x=0;x<this.lr.length;x++){y=this.iM[x];t=x==this.Pe;D=a(this.jM).contains(y);if(t){D=this.p("selectedTabBackgroundColor","tabsBackgroundColor");if(a(D).isUndefined()){D=
this.p("backgroundColor");D=a(D).isArray()&&D.length>0?v==n.Ja||v==n.ic?D[0]:D[D.length-1]:D}y.$({backgroundOpacity:this.p("selectedTabBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:D,backgroundColorRatios:this.p("selectedTabBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:c.me,fontSize:this.p("selectedTabFontSize","tabsFontSize"),fontColor:this.p("selectedTabFontColor","tabsFontColor"),fontWeight:this.p("selectedTabFontWeight","tabsFontWeight"),fontStyle:this.p("selectedTabFontStyle",
"tabsFontStyle"),textDecoration:this.p("selectedTabTextDecoration","tabsTextDecoration"),textShadowColor:this.p("selectedTabTextShadowColor","tabsTextShadowColor"),textShadowHorizontalLength:this.p("selectedTabTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.p("selectedTabTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.p("selectedTabTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.p("selectedTabTextShadowOpacity",
"tabsTextShadowOpacity")})}else D?y.$({backgroundOpacity:this.p("tabsRollOverBackgroundOpacity","tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.p("tabsRollOverBackgroundColor","tabsBackgroundColor"),backgroundColorRatios:this.p("tabsRollOverBackgroundColorRatios","tabsBackgroundColorRatios"),cursor:c.yf,fontSize:this.p("tabsRollOverFontSize","tabsFontSize"),fontColor:this.p("tabsRollOverFontColor","tabsFontColor"),fontWeight:this.p("tabsRollOverFontWeight","tabsFontWeight"),fontStyle:this.p("tabsRollOverFontStyle",
"tabsFontStyle"),textDecoration:this.p("tabsRollOverTextDecoration","tabsTextDecoration"),textShadowColor:this.p("tabsRollOverTextShadowColor","tabsTextShadowColor"),textShadowHorizontalLength:this.p("tabsRollOverTextShadowHorizontalLength","tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.p("tabsRollOverTextShadowVerticalLength","tabsTextShadowVerticalLength"),textShadowBlurRadius:this.p("tabsRollOverTextShadowBlurRadius","tabsTextShadowBlurRadius"),textShadowOpacity:this.p("tabsRollOverTextShadowOpacity",
"tabsTextShadowOpacity")}):y.$({backgroundOpacity:this.p("tabsBackgroundOpacity","backgroundOpacity"),backgroundColor:this.p("tabsBackgroundColor"),backgroundColorRatios:this.p("tabsBackgroundColorRatios"),fontSize:this.p("tabsFontSize"),fontColor:this.p("tabsFontColor"),fontWeight:this.p("tabsFontWeight"),fontStyle:this.p("tabsFontStyle"),textDecoration:this.p("tabsTextDecoration"),textShadowColor:this.p("tabsTextShadowColor"),textShadowHorizontalLength:this.p("tabsTextShadowHorizontalLength"),textShadowVerticalLength:this.p("tabsTextShadowVerticalLength"),
textShadowBlurRadius:this.p("tabsTextShadowBlurRadius"),textShadowOpacity:this.p("tabsTextShadowOpacity")});y.$({borderLeftSize:v==n.Xa&&t?0:l,borderRightSize:v==n.Ja&&t?0:l,borderBottomSize:v==n.ic&&t?0:l,borderTopSize:v==n.ac&&t?0:l})}if(s){x=this.p("tabsSize");switch(v){case n.Ja:this.Dg.$({left:x-(this.p("borderLeftSize","borderSize")||0),right:0,top:0,bottom:0});break;case n.Xa:this.Dg.$({left:0,right:x-(this.p("borderRightSize","borderSize")||0),top:0,bottom:0});break;case n.ic:this.Dg.$({left:0,
right:0,top:x-(this.p("borderTopSize","borderSize")||0),bottom:0});break;case n.ac:this.Dg.$({left:0,right:0,top:0,bottom:x-(this.p("borderBottomSize","borderSize")||0)})}v==n.ic&&w==k.OH||v==n.Ja&&w==k.OH?this.Dg.set("borderTopLeftRadius",0):this.Dg.set("borderTopLeftRadius",this.p("borderTopLeftRadius","borderTopRadius","borderLeftRadius","borderRadius"));v==n.ic&&w==k.gD||v==n.Xa&&w==k.OH?this.Dg.set("borderTopRightRadius",0):this.Dg.set("borderTopRightRadius",this.p("borderTopRightRadius","borderTopRadius",
"borderRightRadius","borderRadius"));v==n.ac&&w==k.OH||v==n.Ja&&w==k.gD?this.Dg.set("borderBottomLeftRadius",0):this.Dg.set("borderBottomLeftRadius",this.p("borderBottomLeftRadius","borderBottomRadius","borderLeftRadius","borderRadius"));v==n.ac&&w==k.gD||v==n.Xa&&w==k.gD?this.Dg.set("borderBottomRightRadius",0):this.Dg.set("borderBottomRightRadius",this.p("borderBottomRightRadius","borderBottomRadius","borderRightRadius","borderRadius"));this.Dg.$({paddingLeft:this.p("pagePaddingLeft"),paddingTop:this.p("pagePaddingTop"),
paddingRight:this.p("pagePaddingRight"),paddingBottom:this.p("pagePaddingBottom"),borderLeftSize:this.p("borderLeftSize","borderSize"),borderTopSize:this.p("borderTopSize","borderSize"),borderRightSize:this.p("borderRightSize","borderSize"),borderBottomSize:this.p("borderBottomSize","borderSize"),borderLeftColor:this.p("borderLeftColor","borderColor"),borderTopColor:this.p("borderTopColor","borderColor"),borderRightColor:this.p("borderRightColor","borderColor"),borderBottomColor:this.p("borderBottomColor",
"borderColor"),shadow:this.p("shadow"),shadowHorizontalLength:this.p("shadowHorizontalLength"),shadowVerticalLength:this.p("shadowVerticalLength"),shadowBlurRadius:this.p("shadowBlurRadius"),shadowSpread:this.p("shadowSpread"),shadowColor:this.p("shadowColor"),backgroundOpacity:this.p("backgroundOpacity"),backgroundColor:this.p("backgroundColor"),backgroundColorRatios:this.p("backgroundColorRatios")});v==n.ic||v==n.ac?this.Dg.set("backgroundColorDirection",d.zZ):this.Dg.set("backgroundColorDirection",
d.ZY)}if(u)for(x=0;x<this.lr.length;x++)this.lr[x].set("visible",x==this.Pe);f.prototype.Ma.call(this)};return b});
define("ng",["dY","kG","nU","cO","eQ"],function(a,b,d,c,g){a=b.extend(c,function(){c.call(this)});g.F("TabPanel",a).H("Container").Q({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"}).vs(["selectedTabFontSize","tabsFontSize","tabsRollOverFontSize"]).fc([d.qa]);return a});define("fz",["kG","nq"],function(a,b){var d=a.extend(b,function(){b.call(this);this.je("Page");this.set("label","")});d.prototype.ab=function(){b.prototype.ab.call(this);this.f("visible",l)};return d});
define("gw",["kG","fz","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("TabPanelPage",a).H("Container").Q({label:"string"});return a});define("gc",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("TargetPanoramaCameraMovement",b).H("TargetRotationalCameraMovement");return b});
define("dg",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("TargetRotationalCameraDisplayMovement",b).H("RotationalCameraMovement").Q({stereographicFactorSpeed:"number",path:"enum[left, right, shortest, longest]",targetYaw:"number",targetPitch:"number",targetHfov:"number",targetStereographicFactor:"number"});return b});
define("hu",["require","kG","lr","eQ"],function(a){var b=a("kG"),d=a("lr"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("TiledImageResourceLevel",b).H("ImageResourceLevel").Q({rowCount:"number",colCount:"number"});return b});define("mf",["require","kG","eQ","hE"],function(a){var b=a("kG"),d=a("eQ"),c=a("hE"),a=b.extend(c,function(){c.call(this)});d.F("TripodCapPanoramaOverlay",a).H("CapPanoramaOverlay");return a});
define("hI","require,kG,w,nU,mk,cG,bc,c,bt,lv,gq,nq,lO,iu,dY".split(","),function(a){var b=a("kG"),d=a("w"),c=a("nU"),g=a("mk"),f=a("cG"),i=a("bc"),e=a("c"),j=a("bt"),o=a("lv"),k=a("gq"),n=a("nq"),r=a("lO"),p=a("iu"),t=a("dY"),s=b.extend(n,function(){n.call(this);this.Ka=this.te=q;this.Nz=[];this.set("autoRolledOver",m);this.set("childrenInteractionEnabled",B);this.set("contentOpaque",m);this.set("creationPolicy",f.jz);this.set("cursor",i.yf)});s.prototype.ab=function(){n.prototype.ab.call(this);
this.f("overflow","hidden");this.f("item");this.f("thumbnailUrlFunction",this.O0);this.f("sourceProperties");this.f("labelFunction",this.M0);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.m("rollOverBackgroundOpacity",k.P,"backgroundOpacity");this.m("rollOverBackgroundColor",k.P,"backgroundColor");this.m("rollOverBackgroundColorRatios",k.P,"backgroundColorRatios");this.m("rollOverBackgroundColorDirection",k.P,"backgroundColorDirection");this.m("rollOverBorderRadius",k.P,"borderRadius");this.m("rollOverBorderTopRadius",k.P,"borderTopRadius");this.m("rollOverBorderBottomRadius",k.P,"borderBottomRadius");this.m("rollOverBorderLeftRadius",k.P,"borderLeftRadius");
this.m("rollOverBorderRightRadius",k.P,"borderRightRadius");this.m("rollOverBorderTopLeftRadius",k.P,"borderTopLeftRadius");this.m("rollOverBorderTopRightRadius",k.P,"borderTopRightRadius");this.m("rollOverBorderBottomLeftRadius",k.P,"borderBottomLeftRadius");this.m("rollOverBorderBottomRightRadius",k.P,"borderBottomRightRadius");this.m("rollOverBorderSize",k.P,"borderSize");this.m("rollOverBorderLeftSize",k.P,"borderLeftSize");this.m("rollOverBorderTopSize",k.P,"borderTopSize");this.m("rollOverBorderRightSize",
k.P,"borderRightSize");this.m("rollOverBorderBottomSize",k.P,"borderBottomSize");this.m("rollOverBorderColor",k.P,"borderColor");this.m("rollOverBorderLeftColor",k.P,"borderLeftColor");this.m("rollOverBorderTopColor",k.P,"borderTopColor");this.m("rollOverBorderRightColor",k.P,"borderRightColor");this.m("rollOverBorderBottomColor",k.P,"borderBottomColor");this.m("rollOverLabelFontColor",k.P,"labelFontColor");this.m("rollOverLabelFontSize",k.P,"labelFontSize");this.m("rollOverLabelFontStyle",k.P,"labelFontStyle");
this.m("rollOverLabelFontWeight",k.P,"labelFontWeight");this.m("rollOverLabelTextDecoration",k.P,"labelTextDecoration");this.m("rollOverLabelTextShadowColor",k.P,"labelTextShadowColor");this.m("rollOverLabelTextShadowHorizontalLength",k.P,"labelTextShadowHorizontalLength");this.m("rollOverLabelTextShadowVerticalLength",k.P,"labelTextShadowVerticalLength");this.m("rollOverLabelTextShadowBlurRadius",k.P,"labelTextShadowBlurRadius");this.m("rollOverLabelTextShadowOpacity",k.P,"labelTextShadowOpacity");
this.m("rollOverOpacity",k.P,"opacity");this.m("rollOverPaddingLeft",k.P,"paddingLeft");this.m("rollOverPaddingTop",k.P,"paddingTop");this.m("rollOverPaddingRight",k.P,"paddingRight");this.m("rollOverPaddingBottom",k.P,"paddingBottom");this.m("rollOverShadow",k.P,"shadow");this.m("rollOverThumbnailOpacity",k.P,"thumbnailOpacity");this.m("rollOverThumbnailBorderSize",k.P,"thumbnailBorderSize");this.m("rollOverThumbnailBorderColor",k.P,"thumbnailBorderColor");this.m("rollOverThumbnailShadow",k.P,"thumbnailShadow");
this.m("rollOverThumbnailShadowHorizontalLength",k.P,"thumbnailShadowHorizontalLength");this.m("rollOverThumbnailShadowVerticalLength",k.P,"thumbnailShadowVerticalLength");this.m("rollOverThumbnailShadowBlurRadius",k.P,"thumbnailShadowBlurRadius");this.m("rollOverThumbnailShadowSpread",k.P,"thumbnailShadowSpread");this.m("rollOverThumbnailShadowColor",k.P,"thumbnailShadowColor");this.m("rollOverThumbnailShadowOpacity",k.P,"thumbnailShadowOpacity");this.m("selectedBackgroundOpacity",k.W,"backgroundOpacity");
this.m("selectedBackgroundColor",k.W,"backgroundColor");this.m("selectedBackgroundColorRatios",k.W,"backgroundColorRatios");this.m("selectedBackgroundColorDirection",k.W,"backgroundColorDirection");this.m("selectedBorderRadius",k.W,"borderRadius");this.m("selectedBorderTopRadius",k.W,"borderTopRadius");this.m("selectedBorderBottomRadius",k.W,"borderBottomRadius");this.m("selectedBorderLeftRadius",k.W,"borderLeftRadius");this.m("selectedBorderRightRadius",k.W,"borderRightRadius");this.m("selectedBorderTopLeftRadius",
k.W,"borderTopLeftRadius");this.m("selectedBorderTopRightRadius",k.W,"borderTopRightRadius");this.m("selectedBorderBottomLeftRadius",k.W,"borderBottomLeftRadius");this.m("selectedBorderBottomRightRadius",k.W,"borderBottomRightRadius");this.m("selectedBorderSize",k.W,"borderSize");this.m("selectedBorderLeftSize",k.W,"borderLeftSize");this.m("selectedBorderTopSize",k.W,"borderTopSize");this.m("selectedBorderRightSize",k.W,"borderRightSize");this.m("selectedBorderBottomSize",k.W,"borderBottomSize");
this.m("selectedBorderColor",k.W,"borderColor");this.m("selectedBorderLeftColor",k.W,"borderLeftColor");this.m("selectedBorderTopColor",k.W,"borderTopColor");this.m("selectedBorderRightColor",k.W,"borderRightColor");this.m("selectedBorderBottomColor",k.W,"borderBottomColor");this.m("selectedLabelFontColor",k.W,"labelFontColor");this.m("selectedLabelFontSize",k.W,"labelFontSize");this.m("selectedLabelFontStyle",k.W,"labelFontStyle");this.m("selectedLabelFontWeight",k.W,"labelFontWeight");this.m("selectedLabelTextDecoration",
k.W,"labelTextDecoration");this.m("selectedLabelTextShadowColor",k.W,"labelTextShadowColor");this.m("selectedLabelTextShadowHorizontalLength",k.W,"labelTextShadowHorizontalLength");this.m("selectedLabelTextShadowVerticalLength",k.W,"labelTextShadowVerticalLength");this.m("selectedLabelTextShadowBlurRadius",k.W,"labelTextShadowBlurRadius");this.m("selectedLabelTextShadowOpacity",k.W,"labelTextShadowOpacity");this.m("selectedOpacity",k.W,"opacity");this.m("selectedPaddingLeft",k.W,"paddingLeft");this.m("selectedPaddingTop",
k.W,"paddingTop");this.m("selectedPaddingRight",k.W,"paddingRight");this.m("selectedPaddingBottom",k.W,"paddingBottom");this.m("selectedShadow",k.W,"shadow");this.m("selectedThumbnailOpacity",k.W,"thumbnailOpacity");this.m("selectedThumbnailBorderSize",k.W,"thumbnailBorderSize");this.m("selectedThumbnailBorderColor",k.W,"thumbnailBorderColor");this.m("selectedThumbnailShadow",k.W,"thumbnailShadow");this.m("selectedThumbnailShadowHorizontalLength",k.W,"thumbnailShadowHorizontalLength");this.m("selectedThumbnailShadowVerticalLength",
k.W,"thumbnailShadowVerticalLength");this.m("selectedThumbnailShadowBlurRadius",k.W,"thumbnailShadowBlurRadius");this.m("selectedThumbnailShadowSpread",k.W,"thumbnailShadowSpread");this.m("selectedThumbnailShadowColor",k.W,"thumbnailShadowColor");this.m("selectedThumbnailShadowOpacity",k.W,"thumbnailShadowOpacity")};s.prototype.wO=function(a){this.NL(a)};s.prototype.mb=function(){n.prototype.mb.call(this);if(!this.te){this.te=new r;this.Oa(this.te);this.te.set("horizontalAlign",g.ae);this.te.set("verticalAlign",
g.zd);this.te.bind(c.U,this.x7,this)}if(!this.Ka){this.Ka=new p;this.Oa(this.Ka)}};s.prototype.O0=function(a){if(t(a).isString())return a;if(a&&a.hba)return a.hba};s.prototype.M0=function(a){if(a&&a.label)return a.label};s.prototype.Ma=function(){if(this.v("sourceProperties")||this.v("item")){for(;this.Nz.length;)this.Nz.pop().unwatch();var a=this.p("sourceProperties"),b=this.p("item");a&&b&&a.forEach(function(a){this.Nz.push(d.watch(b,a,this.P4,this,m))}.bind(this))}if(this.v("sourceProperties")||
this.v("item")||this.v("tooltipFunction")){b=this.p("item");a=this.p("tooltipFunction")(b);this.set("toolTip",a)}if(this.v("sourceProperties")||this.v("item")||this.v("thumbnailUrlFunction")){b=this.p("item");(a=this.p("thumbnailUrlFunction")(b))?this.te.get("url")!=a&&this.te.$({url:a,visible:m,opacity:0.5}):this.te.$({url:l,visible:B});this.I("thumbnailUrlFunction")}if(this.v("sourceProperties")||this.v("item")||this.v("labelFunction")){b=this.p("item");a=this.p("labelFunction")(b);this.Ka.$({text:a,
visible:a?m:B});this.I("labelFunction")}this.I("item");this.I("sourceProperties");if(this.v("labelPosition")||this.v("listLayout")||this.v("thumbnailWidth")||this.v("thumbnailHeight")){var c=this,a=function(a,b){var d=c.p(a);return d!==l?d:b};switch(this.p("labelPosition")){case j.Ja:case j.Xa:this.set("layout",e.xg);this.Ka.set("width","100%");this.te.$({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",o.Pj)});break;default:this.set("layout",e.mh);this.Ka.set("width",
"100%");this.te.$({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",o.Pj)})}switch(this.p("labelPosition")){case j.Ja:case j.ic:this.Zm(this.Ka,0);break;default:this.Zm(this.Ka,1)}this.I("labelPosition")}this.Yb(s.NZ,s.Fda,[this],m,m);this.Yb(s.PZ,s.Ida,[this.te],m,m);this.Yb(s.OZ,s.Hda,[this.Ka],m,m);n.prototype.Ma.call(this)};s.prototype.P4=function(){this.yB("item")};s.prototype.wB=function(a){n.prototype.wB.call(this,a)};s.prototype.x7=function(){this.te.set("opacity",
1)};s.Fda={labelGap:"gap"};s.NZ=t(s.Fda).keys();s.Hda={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.OZ=t(s.Hda).keys();s.Ida={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.PZ=t(s.Ida).keys();return s});
define("bO","kG,cs,mk,nU,cG,c,hn,bt,nq,hI,dY".split(","),function(a,b,d,c,g,f,i,e,j,o,k){var n=a.extend(j,function(){j.call(this);this.set("contentOpaque",m)});n.prototype.ab=function(){j.prototype.ab.call(this);this.f("layout",f.Lv);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",i.Go);this.f("itemHorizontalAlign",d.ae);this.f("itemLabelFontFamily");this.f("itemLabelPosition",e.ac);this.f("itemLabelFunction");this.f("itemLabelMaxWidth");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",
d.ae);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",d.zd);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")};n.prototype.wJ=function(a){this.$n=m;this.set("selectedIndex",this.h2(a.source))};n.prototype.h2=function(a){for(var b=this.Db(),c=0;c<b.length;c++)if(b[c]==a)return c;return-1};n.prototype.Ma=function(){this.v("layout")&&this.p("layout")!=f.Lv&&this.set("layout",f.Lv);var a=B;if(this.v("items")){var a=m,d=this.p("items")||
[],e=this.Db();if(e.length<d.length){for(var g=e.length;g<d.length;g++){e=new o;e.bind(c.ca,this.wJ,this);this.Yb(n.YH,n.sz,[e],B,B);this.Yb(n.ZH,n.tz,[e],B,B);this.Oa(e)}e=this.Db()}if(e.length>d.length){for(g=d.length;g<e.length;g++){var i=e[g];i.unbind(c.ca,this.wJ,this);this.removeChild(i)}e=this.Db()}for(g=0;g<d.length;g++)e[g].set("item",d[g]);this.I("items")}if(this.v("selectedIndex")||a){d=this.Db();a=Math.min(d.length-1,Math.max(-1,this.p("selectedIndex")));this.set("selectedIndex",a);for(g=
0;g<d.length;g++)d[g].wO(g==a);this.I("selectedIndex");if(this.$n){this.$n=B;this.trigger(new b(c.qa))}}this.Yb(n.YH,n.sz,this.Db(),m,B);this.Yb(n.ZH,n.tz,this.Db(),m,m);j.prototype.Ma.call(this)};n.sz={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};n.tz={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"};n.YH=k(n.sz).keys();n.ZH=k(n.tz).keys();return n});
define("jz","kG,nU,bO,eQ,me,dV,bL,dY".split(","),function(a,b,d,c,g,f,i){a=a.extend(d,function(){d.call(this);this.dd=q;this.set("itemMode","normal");this.$o=B;this.oI=new g(this,"buttonScrollDown",f.ne);this.oI.bind(b.ca,this.Cua,this);this.pI=new g(this,"buttonScrollLeft",f.ne);this.pI.bind(b.ca,this.scrollLeft,this);this.qI=new g(this,"buttonScrollRight",f.ne);this.qI.bind(b.ca,this.Dua,this);this.rI=new g(this,"buttonScrollUp",f.ne);this.rI.bind(b.ca,this.Eua,this);this.bind(b.qa,this.iHa,this)});
c.F("ThumbnailGrid",a).H("UIComponent").Q({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]"}).vs(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).fc([b.qa]);a.prototype.Ol=function(){d.prototype.Ol.call(this);this.KB()};a.prototype.Uu=function(){d.prototype.Uu.call(this);this.KB()};a.prototype.KB=function(){this.oI.set("visible",!this.$o||this.YP());this.rI.set("visible",!this.$o||this.aQ());this.pI.set("visible",!this.$o||this.ZP());this.qI.set("visible",!this.$o||this.$P())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.Vt);this.set("itemThumbnailUrlFunction",this.yJ);this.set("itemTooltipFunction",this.FA);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.FA);this.set("itemThumbnailUrlFunction",this.Vt);this.set("itemTooltipFunction",this.Vt);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.FA);this.set("itemThumbnailUrlFunction",this.yJ);
this.set("itemTooltipFunction",this.Vt);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.dd&&this.dd.unbind("change",this.nu,this);if(this.dd=b){this.set("items",this.dd.get("items"));this.set("selectedIndex",this.dd.get("selectedIndex"));this.dd.bind("change",this.nu,this,m)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.$o=b;this.KB()}else d.prototype.set.call(this,a,b)};a.prototype.get=function(a,
b){switch(a){case "playList":return this.dd;default:return d.prototype.get.call(this,a,b)}};a.prototype.nu=function(){this.set("items",this.dd.get("items"));this.set("selectedIndex",this.dd.get("selectedIndex"))};a.prototype.iHa=function(){this.dd&&this.dd.set("selectedIndex",this.get("selectedIndex"))};a.prototype.Vt=I();a.prototype.FA=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.yJ=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&
(b=i.dqa(b));return b};return a});
define("jS","require,kG,w,nU,mk,cG,bc,c,bt,lv,gq,nq,lO,iu,dY".split(","),function(a){var b=a("kG"),d=a("w"),c=a("nU"),g=a("mk"),f=a("cG"),i=a("bc"),e=a("c"),j=a("bt"),o=a("lv"),k=a("gq"),n=a("nq"),r=a("lO"),p=a("iu"),t=a("dY"),s=b.extend(n,function(){n.call(this);this.Ka=this.te=q;this.Nz=[];this.set("autoRolledOver",m);this.set("childrenInteractionEnabled",B);this.set("contentOpaque",m);this.set("creationPolicy",f.jz);this.set("cursor",i.yf)});s.prototype.ab=function(){n.prototype.ab.call(this);this.f("listLayout");
this.f("overflow","hidden");this.f("item");this.f("thumbnailUrlFunction",this.O0);this.f("sourceProperties");this.f("labelFunction",this.M0);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.m("rollOverBackgroundOpacity",k.P,"backgroundOpacity");this.m("rollOverBackgroundColor",k.P,"backgroundColor");this.m("rollOverBackgroundColorRatios",k.P,"backgroundColorRatios");this.m("rollOverBackgroundColorDirection",k.P,"backgroundColorDirection");this.m("rollOverBorderRadius",k.P,"borderRadius");this.m("rollOverBorderTopRadius",k.P,"borderTopRadius");this.m("rollOverBorderBottomRadius",k.P,"borderBottomRadius");this.m("rollOverBorderLeftRadius",k.P,"borderLeftRadius");this.m("rollOverBorderRightRadius",
k.P,"borderRightRadius");this.m("rollOverBorderTopLeftRadius",k.P,"borderTopLeftRadius");this.m("rollOverBorderTopRightRadius",k.P,"borderTopRightRadius");this.m("rollOverBorderBottomLeftRadius",k.P,"borderBottomLeftRadius");this.m("rollOverBorderBottomRightRadius",k.P,"borderBottomRightRadius");this.m("rollOverBorderSize",k.P,"borderSize");this.m("rollOverBorderLeftSize",k.P,"borderLeftSize");this.m("rollOverBorderTopSize",k.P,"borderTopSize");this.m("rollOverBorderRightSize",k.P,"borderRightSize");
this.m("rollOverBorderBottomSize",k.P,"borderBottomSize");this.m("rollOverBorderColor",k.P,"borderColor");this.m("rollOverBorderLeftColor",k.P,"borderLeftColor");this.m("rollOverBorderTopColor",k.P,"borderTopColor");this.m("rollOverBorderRightColor",k.P,"borderRightColor");this.m("rollOverBorderBottomColor",k.P,"borderBottomColor");this.m("rollOverLabelFontColor",k.P,"labelFontColor");this.m("rollOverLabelFontSize",k.P,"labelFontSize");this.m("rollOverLabelFontStyle",k.P,"labelFontStyle");this.m("rollOverLabelFontWeight",
k.P,"labelFontWeight");this.m("rollOverLabelTextDecoration",k.P,"labelTextDecoration");this.m("rollOverLabelTextShadowColor",k.P,"labelTextShadowColor");this.m("rollOverLabelTextShadowHorizontalLength",k.P,"labelTextShadowHorizontalLength");this.m("rollOverLabelTextShadowVerticalLength",k.P,"labelTextShadowVerticalLength");this.m("rollOverLabelTextShadowBlurRadius",k.P,"labelTextShadowBlurRadius");this.m("rollOverLabelTextShadowOpacity",k.P,"labelTextShadowOpacity");this.m("rollOverOpacity",k.P,"opacity");
this.m("rollOverPaddingLeft",k.P,"paddingLeft");this.m("rollOverPaddingTop",k.P,"paddingTop");this.m("rollOverPaddingRight",k.P,"paddingRight");this.m("rollOverPaddingBottom",k.P,"paddingBottom");this.m("rollOverShadow",k.P,"shadow");this.m("rollOverThumbnailOpacity",k.P,"thumbnailOpacity");this.m("rollOverThumbnailBorderSize",k.P,"thumbnailBorderSize");this.m("rollOverThumbnailBorderColor",k.P,"thumbnailBorderColor");this.m("rollOverThumbnailShadow",k.P,"thumbnailShadow");this.m("rollOverThumbnailShadowHorizontalLength",
k.P,"thumbnailShadowHorizontalLength");this.m("rollOverThumbnailShadowVerticalLength",k.P,"thumbnailShadowVerticalLength");this.m("rollOverThumbnailShadowBlurRadius",k.P,"thumbnailShadowBlurRadius");this.m("rollOverThumbnailShadowSpread",k.P,"thumbnailShadowSpread");this.m("rollOverThumbnailShadowColor",k.P,"thumbnailShadowColor");this.m("rollOverThumbnailShadowOpacity",k.P,"thumbnailShadowOpacity");this.m("selectedBackgroundOpacity",k.W,"backgroundOpacity");this.m("selectedBackgroundColor",k.W,"backgroundColor");
this.m("selectedBackgroundColorRatios",k.W,"backgroundColorRatios");this.m("selectedBackgroundColorDirection",k.W,"backgroundColorDirection");this.m("selectedBorderRadius",k.W,"borderRadius");this.m("selectedBorderTopRadius",k.W,"borderTopRadius");this.m("selectedBorderBottomRadius",k.W,"borderBottomRadius");this.m("selectedBorderLeftRadius",k.W,"borderLeftRadius");this.m("selectedBorderRightRadius",k.W,"borderRightRadius");this.m("selectedBorderTopLeftRadius",k.W,"borderTopLeftRadius");this.m("selectedBorderTopRightRadius",
k.W,"borderTopRightRadius");this.m("selectedBorderBottomLeftRadius",k.W,"borderBottomLeftRadius");this.m("selectedBorderBottomRightRadius",k.W,"borderBottomRightRadius");this.m("selectedBorderSize",k.W,"borderSize");this.m("selectedBorderLeftSize",k.W,"borderLeftSize");this.m("selectedBorderTopSize",k.W,"borderTopSize");this.m("selectedBorderRightSize",k.W,"borderRightSize");this.m("selectedBorderBottomSize",k.W,"borderBottomSize");this.m("selectedBorderColor",k.W,"borderColor");this.m("selectedBorderLeftColor",
k.W,"borderLeftColor");this.m("selectedBorderTopColor",k.W,"borderTopColor");this.m("selectedBorderRightColor",k.W,"borderRightColor");this.m("selectedBorderBottomColor",k.W,"borderBottomColor");this.m("selectedLabelFontColor",k.W,"labelFontColor");this.m("selectedLabelFontSize",k.W,"labelFontSize");this.m("selectedLabelFontStyle",k.W,"labelFontStyle");this.m("selectedLabelFontWeight",k.W,"labelFontWeight");this.m("selectedLabelTextDecoration",k.W,"labelTextDecoration");this.m("selectedLabelTextShadowColor",
k.W,"labelTextShadowColor");this.m("selectedLabelTextShadowHorizontalLength",k.W,"labelTextShadowHorizontalLength");this.m("selectedLabelTextShadowVerticalLength",k.W,"labelTextShadowVerticalLength");this.m("selectedLabelTextShadowBlurRadius",k.W,"labelTextShadowBlurRadius");this.m("selectedLabelTextShadowOpacity",k.W,"labelTextShadowOpacity");this.m("selectedOpacity",k.W,"opacity");this.m("selectedPaddingLeft",k.W,"paddingLeft");this.m("selectedPaddingTop",k.W,"paddingTop");this.m("selectedPaddingRight",
k.W,"paddingRight");this.m("selectedPaddingBottom",k.W,"paddingBottom");this.m("selectedShadow",k.W,"shadow");this.m("selectedThumbnailOpacity",k.W,"thumbnailOpacity");this.m("selectedThumbnailBorderSize",k.W,"thumbnailBorderSize");this.m("selectedThumbnailBorderColor",k.W,"thumbnailBorderColor");this.m("selectedThumbnailShadow",k.W,"thumbnailShadow");this.m("selectedThumbnailShadowHorizontalLength",k.W,"thumbnailShadowHorizontalLength");this.m("selectedThumbnailShadowVerticalLength",k.W,"thumbnailShadowVerticalLength");
this.m("selectedThumbnailShadowBlurRadius",k.W,"thumbnailShadowBlurRadius");this.m("selectedThumbnailShadowSpread",k.W,"thumbnailShadowSpread");this.m("selectedThumbnailShadowColor",k.W,"thumbnailShadowColor");this.m("selectedThumbnailShadowOpacity",k.W,"thumbnailShadowOpacity")};s.prototype.wO=function(a){this.NL(a)};s.prototype.mb=function(){n.prototype.mb.call(this);if(!this.te){this.te=new r;this.Oa(this.te);this.te.set("horizontalAlign",g.ae);this.te.set("verticalAlign",g.zd);this.te.bind(c.U,
this.x7,this)}if(!this.Ka){this.Ka=new p;this.Oa(this.Ka)}};s.prototype.O0=function(a){if(t(a).isString())return a;if(a&&a.hba)return a.hba};s.prototype.M0=function(a){if(a&&a.label)return a.label};s.prototype.Ma=function(){if(this.v("sourceProperties")||this.v("item")){for(;this.Nz.length;)this.Nz.pop().unwatch();var a=this.p("sourceProperties"),b=this.p("item");a&&b&&a.forEach(function(a){this.Nz.push(d.watch(b,a,this.P4,this,m))}.bind(this))}if(this.v("sourceProperties")||this.v("item")||this.v("tooltipFunction")){b=
this.p("item");a=this.p("tooltipFunction")(b);this.set("toolTip",a)}if(this.v("sourceProperties")||this.v("item")||this.v("thumbnailUrlFunction")){b=this.p("item");(a=this.p("thumbnailUrlFunction")(b))?this.te.get("url")!=a&&this.te.$({url:a,visible:m,opacity:0.5}):this.te.$({url:l,visible:B});this.I("thumbnailUrlFunction")}if(this.v("sourceProperties")||this.v("item")||this.v("labelFunction")){b=this.p("item");a=this.p("labelFunction")(b);this.Ka.$({text:a,visible:a?m:B});this.I("labelFunction")}this.I("sourceProperties");
this.I("item");if(this.v("listLayout"))switch(this.p("listLayout")){case e.mh:this.$({width:"100%",height:l});break;default:this.$({height:"100%",width:l})}if(this.v("labelPosition")||this.v("listLayout")||this.v("thumbnailWidth")||this.v("thumbnailHeight")){var c=this,a=function(a,b){var d=c.p(a);d===l&&(d=b);return d};switch(this.p("labelPosition")){case j.Ja:case j.Xa:this.set("layout",e.xg);this.Ka.set("width","100%");switch(this.p("listLayout")){case e.mh:this.te.$({height:a("thumbnailHeight"),
width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",o.Pj)});break;default:this.te.$({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",o.Pj)})}break;default:this.set("layout",e.mh);this.Ka.set("width",l);switch(this.p("listLayout")){case e.mh:this.te.$({height:a("thumbnailHeight"),width:a("thumbnailWidth","100%"),scaleMode:a("thumbnailScaleMode",o.Bo)});break;default:this.te.$({height:a("thumbnailHeight","100%"),width:a("thumbnailWidth"),scaleMode:a("thumbnailScaleMode",
o.Pj)})}}switch(this.p("labelPosition")){case j.Ja:case j.ic:this.Zm(this.Ka,0);break;default:this.Zm(this.Ka,1)}this.I("labelPosition")}this.I("listLayout");this.Yb(s.NZ,s.zD,[this],m,m);this.Yb(s.PZ,s.zD,[this.te],m,m);this.Yb(s.OZ,s.zD,[this.Ka],m,m);n.prototype.Ma.call(this)};s.prototype.P4=function(){this.yB("item")};s.prototype.wB=function(a){n.prototype.wB.call(this,a)};s.prototype.x7=function(){this.te.set("opacity",1)};s.NZ=["labelGap"];s.PZ=["thumbnailBorderColor","thumbnailBorderRadius",
"thumbnailBorderSize","thumbnailMaxWidth","thumbnailMaxHeight","thumbnailOpacity","thumbnailShadow","thumbnailShadowHorizontalLength","thumbnailShadowVerticalLength","thumbnailShadowBlurRadius","thumbnailShadowSpread","thumbnailShadowColor","thumbnailShadowOpacity"];s.OZ=["labelFontFamily","labelFontColor","labelFontSize","labelFontStyle","labelFontWeight","labelHorizontalAlign","labelTextDecoration","labelTextShadowColor","labelTextShadowHorizontalLength","labelTextShadowVerticalLength","labelTextShadowBlurRadius",
"labelTextShadowOpacity"];s.zD={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("L","require,kG,cs,mk,nU,c,hn,bt,nq,jS,dY".split(","),function(a){var b=a("kG"),d=a("cs"),c=a("mk"),g=a("nU"),f=a("c"),i=a("hn"),e=a("bt"),j=a("nq"),o=a("jS"),a=a("dY"),k=b.extend(j,function(){j.call(this);this.set("contentOpaque",m);this.bind(g.u("selectedIndex"),this.SIa,this);this.bind(g.sc,this.oLa,this)});k.prototype.ab=function(){j.prototype.ab.call(this);this.f("layout",f.xg);this.f("selectedIndex",-1);this.f("items",[]);this.f("overflow",i.Go);this.f("itemHorizontalAlign",c.ae);this.f("itemLabelFontFamily");
this.f("itemLabelPosition",e.ac);this.f("itemLabelFunction");this.f("itemLabelGap");this.f("itemLabelHorizontalAlign",c.ae);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",c.zd);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")};k.prototype.wJ=function(a){this.$n=m;this.set("selectedIndex",this.h2(a.source))};k.prototype.SIa=function(){this.Qma()};k.prototype.oLa=function(){this.Qma()};k.prototype.Qma=function(){var a=this.get("selectedIndex"),b=this.Db();a>=0&&a<b.length&&this.scrollIntoView(b[a])};k.prototype.h2=function(a){for(var b=this.Db(),
c=0;c<b.length;c++)if(b[c]==a)return c;return-1};k.prototype.Ma=function(){if(this.v("layout")){var a=this.p("layout");a!=f.mh&&a!=f.xg&&this.set("layout",f.xg)}var b=B;if(this.v("items")){var b=m,a=this.p("items")||[],c=this.Db();if(c.length<a.length){for(var e=c.length;e<a.length;e++){c=new o;c.bind(g.ca,this.wJ,this);this.Yb(k.YH,k.sz,[c],B,B);this.Yb(k.ZH,k.tz,[c],B,B);this.Oa(c)}c=this.Db()}if(c.length>a.length){for(e=a.length;e<c.length;e++){var i=c[e];i.unbind(g.ca,this.wJ,this);this.removeChild(i)}c=
this.Db()}for(e=0;e<a.length;e++)c[e].set("item",a[e]);this.I("items")}if(this.v("selectedIndex")||b){a=this.Db();b=Math.min(a.length-1,Math.max(-1,this.p("selectedIndex")));this.set("selectedIndex",b);for(e=0;e<a.length;e++)a[e].wO(e==b);this.I("selectedIndex");if(this.$n){this.$n=B;this.trigger(new d(g.qa))}}this.Yb(k.YH,k.sz,this.Db(),m,B);this.Yb(k.ZH,k.tz,this.Db(),m,m);j.prototype.Ma.call(this)};k.sz={layout:"listLayout",shadowHorizontalLength:"shadowHorizontalLength",shadowVerticalLength:"shadowVerticalLength",
shadowBlurRadius:"shadowBlurRadius",shadowSpread:"shadowSpread",shadowOpacity:"shadowOpacity",shadowColor:"shadowColor"};k.tz={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"};k.YH=a(k.sz).keys();k.ZH=a(k.tz).keys();return k});
define("gX","kG,nU,L,eQ,me,dV,bL,dY".split(","),function(a,b,d,c,g,f,i){a=a.extend(d,function(){d.call(this);this.dd=q;this.set("itemMode","normal");this.$o=B;this.oI=new g(this,"buttonScrollDown",f.ne);this.oI.bind(b.ca,this.Cua,this);this.pI=new g(this,"buttonScrollLeft",f.ne);this.pI.bind(b.ca,this.scrollLeft,this);this.qI=new g(this,"buttonScrollRight",f.ne);this.qI.bind(b.ca,this.Dua,this);this.rI=new g(this,"buttonScrollUp",f.ne);this.rI.bind(b.ca,this.Eua,this);this.bind(b.qa,this.jHa,this)});
c.F("ThumbnailList",a).H("UIComponent").Q({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:"*"}).vs(["itemLabelFontSize",
"rollOverItemLabelFontSize","selectedItemLabelFontSize"]).fc([b.qa]);a.prototype.Ol=function(){d.prototype.Ol.call(this);this.KB()};a.prototype.Uu=function(){d.prototype.Uu.call(this);this.KB()};a.prototype.KB=function(){this.oI.set("visible",!this.$o||this.YP());this.rI.set("visible",!this.$o||this.aQ());this.pI.set("visible",!this.$o||this.ZP());this.qI.set("visible",!this.$o||this.$P())};a.prototype.set=function(a,b){if(a=="itemMode")switch(b){case "thumbnail-only":this.set("itemLabelFunction",
this.Vt);this.set("itemThumbnailUrlFunction",this.yJ);this.set("itemTooltipFunction",this.FA);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"]);break;case "label-only":this.set("itemLabelFunction",this.FA);this.set("itemThumbnailUrlFunction",this.Vt);this.set("itemTooltipFunction",this.Vt);this.set("itemSourceProperties",["label","media.label"]);break;default:this.set("itemLabelFunction",this.FA);this.set("itemThumbnailUrlFunction",this.yJ);
this.set("itemTooltipFunction",this.Vt);this.set("itemSourceProperties",["label","media.label","media.thumbnailUrl","media.flipImageHorizontally"])}else if(a=="playList"){this.dd&&this.dd.unbind("change",this.nu,this);if(this.dd=b){this.set("items",this.dd.get("items"));this.dd.bind("change",this.nu,this)}else this.set("items",[])}else if(a=="hideScrollButtons"){this.$o=b;this.KB()}else d.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){switch(a){case "playList":return this.dd;default:return d.prototype.get.call(this,
a,b)}};a.prototype.nu=function(){this.set("items",this.dd.get("items"));this.set("selectedIndex",this.dd.get("selectedIndex"))};a.prototype.jHa=function(){this.dd&&this.dd.set("selectedIndex",this.get("selectedIndex"))};a.prototype.Vt=I();a.prototype.FA=function(a){return a.get("label")||a.get("media").get("label")};a.prototype.yJ=function(a){var a=a.get("media"),b=a.get("thumbnailUrl");a.get("flipImageHorizontally")&&(b=i.dqa(b));return b};return a});
define("bT",["kG","nU","d","eQ"],function(a,b,d,c){a=a.extend(d,function(){d.call(this)});c.F("UIComponent",a).H("Object").Q({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",toolTipFollowMouse:"bool",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]"}).vs(["toolTipFontSize"]).vi(["backgroundImageUrl"]).hh([b.nc,b.hc]).fc([b.INIT,b.zb,b.Wb,b.ca,b.Tl,b.Gk,b.Sh,b.sc,b.bc,b.rb,b.Yca,b.yZ]);return a});define("no",["require","kG","lh","nU","eQ"],function(a){var b=a("kG"),d=a("lh"),c=a("nU"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("VideoCue",b).H("Object").Q({startTime:"number",endTime:"number"}).fc([c.hn,c.Ga]);return b});
define("iO","require,kG,nU,eQ,mk,lv,ee,no".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("mk"),f=a("lv"),i=a("ee");a("no");a=b.extend(i,function(){i.call(this);this.la=l;this.set("autoplay",m);this.set("blending",0);this.set("mute",B);this.set("scaleMode",f.Qg);this.set("horizontalAlign",g.ae);this.set("verticalAlign",g.zd)});c.F("Video",a).H("Media").Q({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",currentTime:"number",
duration:"number",state:"enum[playing, paused, stopped]",height:"number",horizontalAlign:"enum[center, left, right]",mute:"bool",loop:"bool",scaleMode:"enum[none, fit_inside, fit_outside, fit_to_width, fit_to_height]",verticalAlign:"enum[bottom, middle, top]",video:"VideoResource",width:"number"}).fc([d.Ga,d.Rh]);a.prototype.hs=function(){this.get("video");return[]};return a});
define("gD",["require","kG","nU","eQ","ie"],function(a){var b=a("kG"),d=a("nU"),c=a("eQ"),g=a("ie"),a=b.extend(g,function(){g.call(this);this.set("autoplay",m)});c.F("VideoPanorama",a).H("Panorama").Q({cues:"array[VideoCue]",loop:"bool",autoplay:"bool"}).fc([d.Ga,d.Rh]);return a});
define("iW",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this);this.set("hasAudio",m)});a.F("Video360Resource",b).H("Video360ResourceLevel").Q({gain:"number",hasAudio:"bool",levels:"array[Video360ResourceLevel]",subtitlesURL:"string"}).vi(["subtitlesURL"]);b.prototype.get=function(a,b){if(b===l)switch(a){case "gain":b=1}switch(a){case "levels":b=[this];break;case "subtitlesURL":case "gain":for(var f=d.prototype.get.call(this,a),i=this.get("levels"),
e=0;i&&e<i.length&&f===l;e++){var j=i[e];j!=this&&(f=j.get(a))}return f!==l?f:b}return d.prototype.get.call(this,a,b)};return b});
define("ds","require,kG,dY,eQ,lI,gD,iW".split(","),function(a){var b=a("kG"),d=a("dY"),c=a("eQ"),g=a("lI"),f=a("gD"),i=a("iW"),a=b.extend(f,function(){f.call(this);this.Mn=this.rG=this.fb=l});c.F("Video360",a).H("VideoPanorama").Q({video:"or[Video360Resource, array[Video360Resource]]",videoStereo:"or[Video360Resource, array[Video360Resource]]"});a.prototype.set=function(a,b){a=="video"?this.oza(b):a=="videoStereo"?this.pza(b):f.prototype.set.call(this,a,b)};a.prototype.get=function(a,b){return a==
"video"?this.fb!==l?this.fb:b:a=="videoStereo"?this.rG!==l?this.rG:b:f.prototype.get.call(this,a,b)};a.prototype.oza=function(a){if(this.fb!=a){this.fb=a;a=f.prototype.get.call(this,"frames")||[];if(this.fb){a.length==0&&a.push(new g);a[0].set("sphere",this.rja(this.fb))}f.prototype.set.call(this,"frames",a.slice())}};a.prototype.pza=function(a){if(this.rG!=a){this.rG=a;a=f.prototype.get.call(this,"frames")||[];if(this.rG){a.length==0&&a.push(new g);a[0].set("stereoSphere",this.rja(this.rG))}f.prototype.set.call(this,
"frames",a.slice())}};a.prototype.rja=function(a){if(d.isArray(a)){var b=[];d(a).each(function(a){b=b.concat(a.get("levels")||[a])});a=new i;a.set("levels",b)}return a};return a});define("bK",["require","kG","eQ","nA"],function(a){var b=a("kG"),d=a("eQ"),c=a("nA"),a=b.extend(c,function(){c.call(this)});d.F("Video360Player",a).H("PanoramaPlayer");return a});
define("jv",["kG","eQ","cS","hN"],function(a,b,d,c){a=a.extend(c,function(){c.call(this)});b.F("Video360PlayListItem",a).H("PlayListItem").Q({media:"Video360",camera:"RotationalCamera",player:"PanoramaPlayer",startTime:"number"});a.prototype.start=function(){c.prototype.start.call(this);var a=this.get("player");a&&(a.bind(d.xf,this.Em,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(d.xf,this.Em,this),a.get("video")==this.get("media")&&a.set("video",q));c.prototype.stop.call(this)};a.prototype.Em=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(d.xf,this.Em,this),this.get("player").bind(d.xi,this.rp,this),this.WB())};a.prototype.rp=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(d.xi,this.rp,this),this.stop(),this.end())};return a});
define("nH",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("Video360ResourceLevel",b).H("VideoResourceLevel");return b});
define("cb","require,kG,lh,nU,gE,cs,eQ,jJ".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("nU"),g=a("gE"),f=a("cs"),i=a("eQ"),e=a("jJ"),a=b.extend(d,function(){d.call(this);this.Xc=l;this.set("enabled",m);this.set("interactionEnabled",m);this.set("state",g.L);this.set("enabledInCardboard",m);this.set("enabledInStandard",m);this.set("blending",0);this.set("opacity",1);this.set("fadeInDuration",200);this.set("fadeOutDuration",200)});a.prototype.play=function(){this.set("state",g.S)};a.prototype.pause=
function(){this.set("state",g.Gb)};a.prototype.stop=function(){this.set("state",g.L)};i.F("VideoPanoramaOverlay",a).H("PanoramaOverlay").Q({autoplay:"bool",blending:"number",chromaColor:"color",chromaThreshold:"number",chromaSmoothing:"number",cues:"array[VideoCue]",distance:"number",displayTooltipInTouchScreens:"bool",enabled:"bool",enabledInCardboard:"bool",enabledInVR:"bool",enabledInStandard:"bool",fadeInDuration:"number",fadeOutDuration:"number",interactionEnabled:"bool",videoVisibleOnStop:"bool",
hfov:"number",vfov:"number",scaleMode:"enum[fill, fit_inside, fit_outside, fit_to_width, fit_to_height, none]",image:"ImageResource",loop:"bool",opacity:"number",pitch:"number",rotationX:"number",rotationY:"number",roll:"number",state:"enum[stopped, playing, paused]",toolTip:"string",useHandCursor:"bool",video:"VideoResource",yaw:"number",playbackPositions:"array[PanoramaOverlayPlaybackPosition]"}).fc([c.Ga,c.nc,c.Gk,c.Sh,c.bc,c.rb,c.hc,c.Tj,c.Rh,c.Fc]).hh([c.ca]).Mg({pause:a.prototype.pause,play:a.prototype.play,
stop:a.prototype.stop});a.prototype.set=function(a,b){var e=B;switch(a){case "state":var i=this.get("state")||g.L;i==g.L&&b==g.S&&this.trigger(c.Tj);i!=b&&this.trigger(new f(c.Fc,{oldState:i,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.Xc=l;e=m}d.prototype.set.call(this,a,b);e&&a!="playbackPositions"&&this.trigger(c.u("playbackPositions"))};
a.prototype.get=function(a,b){switch(a){case "playbackPositions":if(this.Xc===l)this.Xc=e.f$(this);return this.Xc}return d.prototype.get.call(this,a,b)};return a});
define("dh","require,dY,kG,nU,cs,fQ,gE".split(","),function(a){function b(a,b,c){this.time=a;this.cue=b;this.action=c}var d=a("dY"),c=a("kG"),g=a("nU"),f=a("cs"),i=a("fQ"),e=a("gE"),a=c.extend(i,function(a){i.call(this);this.h=a;this.Gc=q;this.ll=B;this.Ci=[];this.fm=l;this.ce=[]});a.prototype.clear=function(){this.h=q;this.Pz();this.Ci=[];this.ce=[]};a.prototype.start=function(a){this.end();this.G6(a);this.r0();this.j7();this.PB()};a.prototype.G6=function(a){this.Pz();this.Gc=a;this.Gc.bind(g.u("currentTime"),
this.PB,this,m);this.Gc.bind(g.u("state"),this.j7,this,m);this.Gc.bind(g.Ga,this.RM,this,m)};a.prototype.Pz=function(){if(this.Gc){this.Gc.unbind(g.u("currentTime"),this.PB,this);this.Gc.unbind(g.u("state"),this.j7,this);this.Gc.unbind(g.Ga,this.RM,this);this.Gc=q}};a.prototype.end=function(){this.sI();this.Pz();this.ll=B};a.prototype.j7=function(a){a=a!=e.L;if(this.ll!=a)(this.ll=a)?this.OU():this.sI()};a.prototype.RM=function(){this.PB()};a.prototype.OU=function(){this.fm=this.YD=0};a.prototype.PB=
function(){if(this.Gc&&this.ll){var a=this.ce.slice(),b=this.Gc.get("currentTime",0),c=b-this.YD;if(c<0){this.ce=[];this.fm=0}c=c>=0&&c<2;this.YD=b;var e;for(e=this.fm;e<this.Ci.length;e++)if(this.Ci[e].time>b)break;for(;this.fm<e;this.fm++){b=this.Ci[this.fm];if(b.action=="start"){this.ce=d(this.ce).union([b.cue]);c&&b.cue.trigger(new f(g.hn))}else{this.ce=d(this.ce).difference([b.cue]);c&&b.cue.trigger(new f(g.Ga))}}(a.length!=this.ce.length||d(a).intersection(this.ce).length!=this.ce.length)&&
this.xM()}};a.prototype.sI=function(){if(this.ce.length>0){this.ce=[];this.xM()}};a.prototype.xM=function(){this.Gc.trigger(new f(g.Rh,{activeCues:this.ce.slice()}))};a.prototype.r0=function(){this.Ci=[];var a=this.Gc.get("cues",[]);d(a).each(function(a){this.Ci.push(new b(a.get("startTime",0),a,"start"));this.Ci.push(new b(a.get("endTime",Number.POSITIVE_INFINITY),a,"end"))},this);this.Ci.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("mS","require,kG,bg,cs,fQ,nU,lv".split(","),function(a){var b=a("kG"),d=a("bg"),c=a("cs"),g=a("fQ");a("nU");a("lv");var f=b.extend(g,function(a,b){g.call(this);this.K=a;this.h=b;this.eB=[];this.fa=f.nh;this.Wh=q;this.U0=l;this.Di=q;this.lg=this.Hg=l});f.prototype.display=function(a,b){this.Z_();if(this.Di!=a||this.fa!=f.nh){this.eB.push({video:a,startTime:b});this.Hka()}};f.prototype.hide=function(){this.Z_();this.eB.push({video:q,startTime:l});this.Hka()};f.prototype.clear=function(){this.fa=
f.nh;this.Z_();this.lIa();this.oma();this.h=q};f.prototype.fh=function(a){if(this.fa!=f.nh&&(this.fa==f.tn||this.fa==f.Yv||this.fa==f.uz)){this.lg=this.lg+a;a=Math.min(1,this.lg/this.Hg);if(this.fa==f.tn)this.Wh.set("opacity",a);else if(this.fa==f.uz){this.Wh.set("opacity",Math.min(1,a*2));this.Di.set("opacity",Math.min(1,(1-a)*2))}else this.Di.set("opacity",1-a);this.lg<this.Hg?this.Ca():this.Fw()}};f.prototype.Hka=function(){this.eB.length>0&&this.fa==f.nh&&this.No()};f.prototype.No=function(){this.Di&&
this.trigger(new c(f.ez,{video:this.Di}));if(this.K.get("transitionMode","blending")=="fade_out_fade_in"&&this.Di)this.fw();else{var a=this.eB.shift();this.Wh=a.video;this.U0=a.startTime;this.Wh?this.Wh.get("chromaColor")&&this.Di?this.z_():this.jI():this.Di&&this.fw()}};f.prototype.jI=function(){this.aea();this.lg=0;this.Hg=this.K.get("transitionDuration");this.fa=f.tn;this.Ca()};f.prototype.z_=function(){this.aea();this.lg=0;this.Hg=this.K.get("transitionDuration")*2;this.fa=f.uz;this.Ca()};f.prototype.fw=
function(){this.Wh=q;this.lg=0;this.Hg=this.K.get("transitionDuration");this.fa=f.Yv;this.Ca()};f.prototype.Fw=function(){this.oma();this.Di=this.Wh;this.Wh=q;this.fa=f.nh;this.Di?this.trigger(new c(f.fz,{video:this.Di})):this.eB.length==0&&this.trigger(new c(f.Iba));this.eB.length!=0&&this.No()};f.prototype.Ca=function(){d.yb(this.fh,this)};f.prototype.Z_=function(){this.eB=[]};f.prototype.aea=function(){if(this.Wh){this.Wh.set("opacity",0);this.Wh.set("zIndex",1);this.Di&&this.Di.set("zIndex",0);
this.Wh.set("currentTime",this.U0||0);this.h.HNa(this.Wh);this.trigger(new c(f.UY,{video:this.Wh,startTime:this.U0}))}};f.prototype.oma=function(){if(this.Di){this.h.sua(this.Di);this.trigger(new c(f.aP,{video:this.Di}));this.Di=q}};f.prototype.lIa=function(){if(this.Wh){this.h.sua(this.Wh);this.trigger(new c(f.aP,{video:this.Wh}));this.Wh=q}};f.nh="stopped";f.tn="blending";f.uz="double blending";f.Yv="disolving";f.qb="request frame";f.UY="video added";f.aP="video removed";f.fz="video show";f.ez=
"video hide";f.Iba="all pending videos hidden";return f});
define("iF","require,kG,nU,cs,fQ,gE".split(","),function(a){var b=a("kG"),d=a("nU"),c=a("cs"),g=a("fQ"),f=a("gE"),i=b.extend(g,function(){g.call(this);this.Gc=q;this.Le=B;this.G0=f.L});i.prototype.start=function(a){this.end();this.G6(a)};i.prototype.end=function(){this.stop();this.Pz()};i.prototype.clear=function(){this.Pz()};i.prototype.play=function(){this.Gc&&this.Gc.set("state",f.S)};i.prototype.pause=function(){this.Gc&&this.Gc.set("state",f.Gb)};i.prototype.stop=function(){this.Gc&&this.Gc.set("state",
f.L)};i.prototype.nf=function(a){this.Le=a;this.Gc&&this.Gc.set("mute",this.Le)};i.prototype.setTime=function(a){this.Gc&&this.Gc.set("currentTime",a)};i.prototype.getTime=function(){if(this.Gc)return this.Gc.get("currentTime")};i.prototype.G6=function(a){this.Pz();this.Gc=a;this.Gc.set("mute",this.Le);this.Gc.bind(d.u("state"),this.WF,this,m);this.Gc.bind(d.u("currentTime"),this.QB,this,m);this.Gc.bind(d.Ga,this.RM,this,m)};i.prototype.Pz=function(){if(this.Gc){this.Gc.unbind(d.u("state"),this.WF,
this);this.Gc.unbind(d.u("currentTime"),this.QB,this);this.Gc.unbind(d.Ga,this.RM,this);this.Gc=q}};i.prototype.QB=function(){this.trigger(new c(i.gz,{video:this.Gc,time:this.Gc.get("currentTime"),duration:this.Gc.get("duration")}))};i.prototype.RM=function(){this.trigger(new c(i.MH,{video:this.Gc}))};i.prototype.WF=function(){var a=this.Gc.get("state");if(this.G0!=a){this.G0=a;this.trigger(new c(i.rc,{state:this.G0}))}};i.rc="playback state change";i.MH="video end";i.gz="video time change";return i});
define("nh","kG,gE,cs,fQ,dh,mS,iF".split(","),function(a,b,d,c,g,f,i){var e=a.extend(c,function(a,b){c.call(this);this.K=a;this.h=b;this.h.set("visible",B);this.Ea=new f(this.K,this.h);this.za=new i(this.h);this.Uo=new g(this.h);this.Ea.bind(f.ez,this.rp,this,m);this.Ea.bind(f.fz,this.Em,this,m);this.Ea.bind(f.UY,this.lla,this,m);this.Ea.bind(f.aP,this.mla,this,m);this.Ea.bind(f.Iba,this.jGa,this,m);this.za.bind(i.rc,this.ye,this,m);this.za.bind(i.MH,this.xx,this,m);this.za.bind(i.gz,this.UK,this,
m)});e.prototype.clear=function(){this.Ea.clear();this.za.clear();this.Uo.clear();this.Ea.unbind(f.ez,this.rp,this);this.Ea.unbind(f.fz,this.Em,this);this.Ea.unbind(f.UY,this.lla,this);this.Ea.unbind(f.aP,this.mla,this);this.za.unbind(i.rc,this.ye,this);this.za.unbind(i.MH,this.xx,this);this.za.unbind(i.gz,this.UK,this);this.K=this.h=this.Uo=this.za=this.Ea=q};e.prototype.kTa=function(a,b){this.h.set("visible",m);this.Ea.display(a,b)};e.prototype.rv=function(){this.Ea.hide();this.za.end();this.Uo.end()};
e.prototype.play=function(){this.za.play()};e.prototype.stop=function(){this.za.stop()};e.prototype.pause=function(){this.za.pause()};e.prototype.nf=function(a){this.za.nf(a)};e.prototype.setTime=function(a){this.za.setTime(a)};e.prototype.getTime=function(){return this.za.getTime()};e.prototype.lla=function(a){var b=a.data.video;this.za.start(b,a.data.startTime);this.Uo.start(b)};e.prototype.mla=I();e.prototype.Em=function(a){a=a.data.video;a.get("autoplay")&&a.get("state")!=b.S&&a.get("state")!=
b.Gb&&a.set("state",b.S);this.trigger(new d(e.fz,{video:a}))};e.prototype.rp=function(a){this.trigger(new d(e.ez,{video:a.data.video}))};e.prototype.jGa=function(){this.h.set("visible",B)};e.prototype.xx=function(a){this.trigger(new d(e.MH,{video:a.data.video}))};e.prototype.UK=function(a){this.trigger(new d(e.gz,{video:a.data.video,time:a.data.time,duration:a.data.duration}))};e.prototype.ye=function(a){this.trigger(new d(e.rc,{state:a.data.state}))};e.fz="videoShow";e.ez="videoHide";e.MH="videoEnd";
e.gz="videoTimeChange";e.rc="playbackStateChange";return e});
define("kz","require,kG,nU,cs,eQ,cS,dT,gE,nh,lz".split(","),function(a){var b=a("kG"),d=a("nU");a("cs");var c=a("eQ"),g=a("cS"),f=a("dT"),i=a("gE"),e=a("nh"),j=a("lz"),a=b.extend(f,function(){f.call(this,"video");this.set("clickAction","none");this.set("displayPlayOverlay",B);this.Wo=this.NU=this.QB=this.Mh=B;this.B=this.h=q;this.cb=this.ud=0;this.Pd=b.hq(this.Ig,this)});c.F("VideoPlayer",a).H("Object").Q({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"}).Mg({seek:function(a){this.tB(a)},play:function(){this.bB()},pause:function(){this.aB()},
stop:function(){this.vx()},restart:function(){this.sx()}}).fc([g.xf,g.xi,d.Fc]);a.prototype.set=function(a,b){if(this.get(a)!=b){switch(a){case "startTime":this.NU=m;this.Pd();break;case "video":this.QB=m;this.Pd();break;case "viewerArea":this.Mh=m;this.Pd();break;case "displayPlaybackBar":this.Wo=m;this.Pd()}f.prototype.set.call(this,a,b)}};a.prototype.get=function(a,b){switch(a){case "currentTime":return this.B&&this.B.getTime()||0}return f.prototype.get.call(this,a,b)};a.prototype.Ig=function(){if(this.Mh){this.Mh=
B;this.yt();this.get("viewerArea")&&this.ut();this.QL(this.get("viewerArea"));this.QB=m}var a=B;if(this.h&&(this.QB||this.NU)){var b=this.get("video"),c=this.get("startTime")||0;if(b&&!this.h.wb()){this.Pd();return}this.NU=this.QB=B;this.cb=this.ud=0;a=m;if(b){this.nH();this.B.kTa(b,c)}else this.B.rv()}if(this.Wo){this.Wo=B;a=m}a&&this.Vu()};a.prototype.YF=function(){this.set("video",q)};a.prototype.ut=function(){var a=this.get("application"),b=this.get("viewerArea");this.h=new j(a,b,this);this.h.$({left:0,
top:0,bottom:0,right:0});b.Oa(this.h);b.bind(d.ca,this.qla,this,m);this.B=new e(b,this.h);this.B.bind(e.fz,this.Em,this);this.B.bind(e.ez,this.rp,this);this.B.bind(e.gz,this.UK,this,m);this.B.bind(e.rc,this.ye,this);a.bind(d.u("mute"),this.BK,this);this.B.nf(a.get("mute",B));this.Ux(m)};a.prototype.yt=function(){if(this.h){this.B.unbind(e.fz,this.Em,this);this.B.unbind(e.ez,this.rp,this);this.B.unbind(e.gz,this.UK,this);this.B.unbind(e.rc,this.ye,this);this.B.clear();this.get("application").unbind(d.u("mute"),
this.BK,this);var a=this.h.getParent();a.removeChild(this.h);a.unbind(d.ca,this.qla,this,m);this.h=q;this.Ux(B)}};a.prototype.BK=function(){this.h&&this.B.nf(this.get("application").get("mute",B))};a.prototype.ye=function(a){a=a.data.state;this.h&&this.h.Kaa(this.get("displayPlayOverlay")&&a!=i.S,this.ud<0.5);this.mc(a)};a.prototype.Em=function(a){var b=this.get("viewerArea");(this.Gd=b&&b.Gd)&&this.Gd.bind(d.ca,this.rla,this,m);this.p5=B;this.QJ(a.data.video)};a.prototype.rp=function(a){this.Gd&&
this.Gd.unbind(d.ca,this.rla,this,m);this.Gd=q;this.PJ(a.data.video)};a.prototype.UK=function(a){this.ud=a.data.time;this.cb=a.data.duration;this.Vu()};a.prototype.qla=function(){if(this.p5)this.p5=B;else switch(this.get("clickAction")){case "play_pause":this.get("state")!=i.S?this.B.play():this.B.pause()}};a.prototype.rla=function(){this.p5=m};a.prototype.fL=function(a){this.tB(a.data.position)};a.prototype.tj=function(){this.B.play()};a.prototype.Om=function(){this.B.stop()};a.prototype.Nn=function(){this.B.pause()};
a.prototype.tB=function(a){this.B&&this.B.setTime(a)};a.prototype.Vu=function(){if(this.h){var a=this.h.getParent();this.cb>0&&this.get("displayPlaybackBar")?a.$({playbackBarPosition:this.ud,playbackBarDuration:this.cb,playbackBarVisible:m}):a.set("playbackBarVisible",B)}};return a});
define("e",["kG","eQ","cS","hN"],function(a,b,d,c){a=a.extend(c,function(){c.call(this)});b.F("VideoPlayListItem",a).H("PlayListItem").Q({media:"Video",player:"VideoPlayer",startTime:"number"});a.prototype.start=function(){c.prototype.start.call(this);var a=this.get("player");a&&(a.bind(d.xf,this.Em,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(d.xf,this.Em,this),a.get("video")==this.get("media")&&
a.set("video",q));c.prototype.stop.call(this)};a.prototype.Em=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(d.xf,this.Em,this),this.get("player").bind(d.xi,this.rp,this),this.WB())};a.prototype.rp=function(a){a.data.media==this.get("media")&&(this.get("player").unbind(d.xi,this.rp,this),this.stop(),this.end())};return a});
define("hb",["require","kG","lh","eQ"],function(a){var b=a("kG"),d=a("lh"),a=a("eQ"),b=b.extend(d,function(){d.call(this)});a.F("VideoResourceLevel",b).H("Object").Q({bitrate:"number",framerate:"number",height:"number",posterURL:"string",type:"string",url:"string",width:"number"}).vi(["posterURL","url"]);return b});
define("ej","require,kG,lh,eQ,la,hb".split(","),function(a){var b=a("kG"),d=a("lh"),c=a("eQ"),g=a("la"),f=a("hb"),a=b.extend(d,function(){d.call(this);this.k4=new f;this.k4.set("type","video/mp4");this.q4=new f;this.q4.set("type","video/ogg");this.W8=new f;this.W8.set("type","video/webm");this.set("gain",1);this.set("hasAudio",m)});c.F("VideoResource",a).H("Object").Q({gain:"number",hasAudio:"bool",height:"number",levels:"array[VideoResourceLevel]",mp4Url:"string",oggUrl:"string",subtitlesURL:"string",
webmUrl:"string",width:"number"}).vi(["mp4Url","oggUrl","subtitlesURL","webmUrl"]);a.prototype.get=function(a,b){switch(a){case "levels":var b=[],c=this.get("mp4Url");if(c){this.k4.set("url",c);b.push(this.k4)}if(c=this.get("oggUrl")){this.q4.set("url",c);b.push(this.q4)}if(c=this.get("webmUrl")){this.W8.set("url",c);b.push(this.W8)}b.forEach(function(a){a.set("width",this.get("width"));a.set("height",this.get("height"))}.bind(this))}return d.prototype.get.call(this,a,b)};a.prototype.pi=function(){var a=
this.get("webmUrl"),b=this.get("oggUrl"),c=this.get("mp4Url");return c&&g.LW?c:a&&g.o$?a:b&&g.n$?b:c||a||b};return a});
define("do",["require","kG","lh","eQ","eT"],function(a){var b=a("kG");a("lh");var d=a("eQ"),c=a("eT"),a=b.extend(c,function(){c.call(this);this.set("outerRadius",1);this.set("innerRadius",0.7);this.set("opacity",0.3);this.set("color","#000000")});d.F("VignetteModel3DPostprocessing",a).H("Model3DPostprocessing").Q({innerRadius:"number",outerRadius:"number",opacity:"number",color:"color"});return a});
define("dD","require,jquery.mod,kG,nU,t,lB,d,gg".split(","),function(a){var b=a("jquery.mod"),d=a("kG"),c=a("nU"),g=a("t"),f=a("lB"),i=a("d"),e=a("gg"),a=d.extend(i,function(){i.call(this);this.je("WebFrame");this.HJ=this.fA=this.kc=this.Kd=q;this.E4=this.E4.bind(this);this.KS=this.KS.bind(this);this.bind(c.hc,this.rHa,this,m);this.bind(c.nc,this.qHa,this,m)});a.prototype.ab=function(){i.prototype.ab.call(this);this.f("url");this.f("backgroundColor","#ffffff");this.f("insetBorder",B);this.f("scrollEnabled",
m);this.f("unloadWhenHidden",m)};a.prototype.rHa=function(){this.yB("url")};a.prototype.qHa=function(){this.yB("url")};a.prototype.mb=function(){i.prototype.mb.call(this);if(!this.Kd){this.Kd=b("<div></div>");this.Kd.css({position:"absolute",left:0,top:0,width:"100%",height:"100%"});this.Ab().append(this.Kd)}if(!this.kc){this.kc=b("<iframe></iframe>");this.kc.css({position:"absolute",left:0,top:0});this.kc.attr("allowfullscreen","true");this.kc.attr("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone; display-capture; xr-spatial-tracking");
this.Kd.append(this.kc)}if(!this.fA){this.fA=b("<div></div>");this.fA.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":g.ob()?"5vmin":"20px",position:"absolute",top:"50%",left:"50%","text-align":"center",transform:"translate(-50%, -50%)",width:"90%"});this.Kd.append(this.fA)}};a.prototype.Ma=function(){if(this.v("url")){var a=this.p("url");a&&this.Vw?this.ina(a):(!a||this.get("unloadWhenHidden"))&&
this.ina("");this.I("url")}if(this.v("insetBorder")){this.p("insetBorder")?this.kc.attr("frameborder","1"):this.kc.attr("frameborder","0");this.I("insetBorder")}if(this.v("scrollEnabled")){if(this.p("scrollEnabled")){this.kc.attr("scrolling","auto");this.Kd.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})}else{this.kc.attr("scrolling","no");this.Kd.css({overflow:"hidden","-webkit-overflow-scrolling":"auto"})}this.I("scrollEnabled")}i.prototype.Ma.call(this)};a.prototype.Pg=function(){this.kc&&
e.css(this.kc.get(0),{width:this.Z+"px",height:this.ia+"px"});i.prototype.Pg.call(this)};a.prototype.refresh=function(){if(this.p("url")&&this.Vw){this.P2();this.ow();this.S7();this.kc.attr("src","");setTimeout(function(){this.Tna();this.Eea();this.kc.attr("src",this.p("url"))}.bind(this),30)}};a.prototype.ina=function(a){if(this.kc.attr("src")!=a){this.P2();if(a){this.Tna();this.Eea()}else{this.ow();this.S7()}this.kc.attr("src",a)}};a.prototype.E4=function(){this.HJ=q;this.wFa()&&this.rKa()};a.prototype.KS=
function(){this.P2();this.ow();this.S7()};a.prototype.Eea=function(){this.kc.on("load",this.KS)};a.prototype.S7=function(){this.kc.off("load",this.KS)};a.prototype.ow=function(){if(this.HJ){clearTimeout(this.HJ);this.HJ=q}};a.prototype.Tna=function(){this.ow();this.HJ=setTimeout(this.E4.bind(this),3E3)};a.prototype.wFa=function(){if(window.location.protocol=="https:"){var a=this.kc.attr("src");if(f.parse(a).protocol!="https:")return m}return B};a.prototype.rKa=function(){this.fA.text("A secure web page served over HTTPS can not display insecure content served over HTTP.");
this.fA.show()};a.prototype.P2=function(){this.fA.hide()};return a});define("cg",["kG","dD","eQ"],function(a,b,d){a=a.extend(b,function(){b.call(this)});d.F("WebFrame",a).H("UIComponent").Q({url:"string",insetBorder:"bool",scrollEnabled:"bool",unloadWhenHidden:"bool"}).vi(["url"]).Mg({refresh:function(){b.prototype.refresh.call(this)}});return a});
define("lb",["dY","kG","nq","c"],function(a,b,d,c){var g=b.extend(d,function(){d.call(this)});g.jc={layout:c.xg};a.defaults(g.jc,d.jc);g.prototype.ab=function(){this.zn(g.jc)};return g});
define("lM","dY,kG,nU,cs,mk,c,nq,lb,gV,fG,d,mH,mZ,iu".split(","),function(a,b,d,c,g,f,i,e,j,o,k,n,r,p){var t=b.extend(j,function(){j.call(this);this.je("Window");this.hw=this.RD=this.oM=this.Sk=q;this.F_=new i;this.rE=q;this.I2=this.H2=0;this.AB=this.Hna=B;this.X8=this.Y8=l;for(var a in t.KUa)this.yB(a);this.bind(d.sc,this.pNa,this);this.bind(d.fD,this.nNa,this);this.bind(d.rD,this.qNa,this);this.bind(d.ca,this.mNa,this);this.vV=0;this.gf=new i;this.gf.$({visible:B,includeInLayout:B,layout:"absolute",
height:"100%",width:"100%",backgroundOpacity:0,contentOpaque:B});this.gf.bind(d.sc,this.Mpa,this);this.gf.bind(d.rD,this.hNa,this);this.gf.bind(d.fD,this.gNa,this);this.gf.bind(d.ca,this.fNa,this);this.gf.Oa(this)});t.prototype.set=function(a,b){switch(a){case "maxWidth":this.Y8=b;this.mV();break;case "maxHeight":this.X8=b;this.mV();break;case "children":this.F_.set(a,b);break;case "shadow":this.Hna=b;this.Gpa();break;default:j.prototype.set.call(this,a,b)}};t.prototype.show=function(b,c){this.mV(b);
this.set("visible",B);this.gf.set("visible",B);this.nza();c&&this.UNa();var d=b.get("children");b.set("children",d.concat([this.gf]));var e=this;a.defer(function(){e.gf.set("visible",m)})};t.prototype.nza=function(){var a=this.p("modal"),b=this.p("veilShowEffect"),c=this.p("veilHideEffect");a&&b?this.gf.set("showEffect",b):this.gf.set("showEffect",q);a&&c?this.gf.set("hideEffect",c):this.gf.set("hideEffect",q)};t.prototype.hide=function(){this.get("visible")&&this.trigger(d.wba);this.vV=0;this.yU(B);
this.set("visible",B)};t.prototype.UNa=function(){this.set("centerX",0);this.set("centerY",0)};t.prototype.get=function(a,b){return a=="children"?this.F_.get(a,b):j.prototype.get.call(this,a,b)};t.Ada={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.zda=a(t.Ada).keys();t.LZ={borderRadius:"borderTopRadius",borderTopRadius:"borderTopRadius",
borderLeftRadius:"borderTopLeftRadius",borderRightRadius:"borderTopRightRadius",borderTopLeftRadius:"borderTopLeftRadius",borderTopRightRadius:"borderTopRightRadius"};t.KZ=["borderLeftRadius","borderRightRadius","borderTopLeftRadius","borderTopRightRadius","borderTopRadius","borderRadius"];t.Sda={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.Rda=a(t.Sda).keys();t.uda={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.tda=a(t.uda).keys();t.wda={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.vda=a(t.wda).keys();t.yda={borderRadius:"borderBottomRadius",borderBottomRadius:"borderBottomRadius",borderLeftRadius:"borderBottomLeftRadius",borderRightRadius:"borderBottomRightRadius",borderBottomLeftRadius:"borderBottomLeftRadius",borderBottomRightRadius:"borderBottomRightRadius"};
t.xda=["borderLeftRadius","borderRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomRadius","borderRadius"];t.qda={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.pda=a(t.qda).keys();t.rda={layout:"layout",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign"};t.Uxa=a(t.rda).keys();t.Uda={veilOpacity:"backgroundOpacity",veilColor:"backgroundColor",veilColorRatios:"backgroundColorRatios",veilColorDirection:"backgroundColorDirection"};t.Tda=a(t.Uda).keys();t.jc=function(){var b={modal:B,visible:B,centerX:0,centerY:0,veilShowEffect:l,veilHideEffect:l};a.defaults(b,i.jc);for(var c=[].concat(t.zda,t.Rda,
t.tda,t.pda,t.vda,t.Tda),d=0;d<c.length;d++)b[c[d]]=l;return b}();t.prototype.ab=function(){this.zn(t.jc)};t.prototype.mb=function(){j.prototype.mb.call(this);if(this.Sk==q){this.Sk=new e;this.Sk.set("width","100%");this.Sk.bind(d.zb,this.JEa,this);this.Oa(this.Sk)}if(this.oM==q){this.oM=new p;this.oM.set("width","100%");this.Sk.Oa(this.oM)}if(this.RD==q){this.RD=new o;this.RD.$({horizontalAlign:g.ae,verticalAlign:g.zd});this.RD.bind(d.ca,this.FAa,this);this.Sk.Oa(this.RD)}if(this.hw==q){this.hw=
this.F_;this.hw.$({width:"100%",height:"100%"});this.Oa(this.hw)}if(this.rE==q){this.rE=new i;this.rE.set("width","100%");this.Oa(this.rE)}};t.prototype.fNa=function(){this.vV++;setTimeout(function(){this.vV>0&&this.hide()}.bind(this),100)};t.prototype.mNa=function(){this.vV--};t.prototype.FAa=function(){this.hide()};t.prototype.JEa=function(a){this.H2=a.pageX;this.I2=a.pageY;this.wb().bind(d.ad,this.Xpa,this,m);this.wb().bind(d.Wb,this.Ypa,this,m)};t.prototype.Xpa=function(a){this.set("centerX",
this.get("centerX")+(a.pageX-this.H2));this.set("centerY",this.get("centerY")+(a.pageY-this.I2));this.H2=a.pageX;this.I2=a.pageY;this.Fpa()};t.prototype.Ypa=function(){this.wb().unbind(d.ad,this.Xpa,this);this.wb().unbind(d.Wb,this.Ypa,this)};t.prototype.Mpa=function(){this.mV()};t.prototype.hNa=function(){this.set("visible",m)};t.prototype.gNa=function(){this.gf.unbind(d.sc,this.Mpa,this);var a=this.gf.getParent();a&&a.removeChild(this.gf);this.trigger(new c(d.Qy))};t.prototype.pNa=function(){this.Fpa()};
t.prototype.qNa=function(){this.yU(m)};t.prototype.nNa=function(){this.gf.set("visible",B)};t.prototype.yU=function(a){this.AB=a;this.Gpa()};t.prototype.Gpa=function(){j.prototype.set.call(this,"shadow",this.AB&&this.Hna)};t.prototype.mV=function(a){a||(a=this.aa);this.Y8!==l?j.prototype.set.call(this,"maxWidth",this.Y8):a?j.prototype.set.call(this,"maxWidth",a.Ua()):j.prototype.set.call(this,"maxWidth",l);this.X8!==l?j.prototype.set.call(this,"maxHeight",this.X8):a?j.prototype.set.call(this,"maxHeight",
a.Cb()):j.prototype.set.call(this,"maxHeight",l)};t.prototype.Fpa=function(){var a=this.gf.Ua(),b=this.Ua(),c=this.get("centerX"),b=a*0.5+c-b*0.5,d=this.Sk.Bl(),e=this.Sk.Ua(),f=Math.min(e,30),a=a-d-f,d=-(d+e-f);b<d?this.set("centerX",c+(d-b)):b>a&&this.set("centerX",c-(b-a));a=this.gf.Cb();b=this.Cb();c=this.get("centerY");b=a*0.5+c-b*0.5;d=this.Sk.bs();e=this.Sk.Cb();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.Ma=function(){this.Yb(t.zda,
t.Ada,[this.Sk],m,m);this.Yb(t.KZ,t.LZ,[this.Sk],m,B);this.get("headerHeight")===0?this.Yb(t.KZ,t.LZ,[this.hw],m,B):this.Yb(t.KZ,t.LZ,[this.Sk],m,B);this.Yb(t.Rda,t.Sda,[this.oM],m,m);this.Yb(t.tda,t.uda,[this.RD],m,m);this.Yb(t.pda,t.qda,[this.hw],m,m);this.Yb(t.Uxa,t.rda,[this.hw],m,B);this.Yb(t.vda,t.wda,[this.rE],m,m);this.get("footerHeight")===0?this.Yb(t.xda,t.yda,[this.hw],m,B):this.Yb(t.xda,t.yda,[this.rE],m,B);if(this.p("modal")){this.Yb(t.Tda,t.Uda,[this.gf],m,m);this.gf.set("contentOpaque",
m)}else{this.gf.set("backgroundOpacity",0);this.gf.set("contentOpaque",B)}this.$({layout:f.mh,horizontalAlign:g.ae,verticalAlign:g.zd});j.prototype.Ma.call(this);this.Gn.EX(0)};return t});
define("dZ",["dY","kG","lM","eQ","nU"],function(a,b,d,c,g){a=b.extend(d,function(){d.call(this)});c.F("Window",a).H("Container").Q({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"}).vs(["titleFontSize"]).Mg({show:a.prototype.show,
hide:a.prototype.hide}).fc([g.wba,g.Qy]);return a});
define("mo","require,jquery.mod,dY,jU,nU,hy,cs,fQ,bg,nx,bC,jR,lv,t,kG".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.XG=this.source.get("grayscale");this.iv=new r(i.qn)}var d=a("jquery.mod"),c=a("dY"),g=a("jU"),f=a("nU"),i=a("hy"),e=a("cs"),j=a("fQ"),o=a("bg"),k=a("nx"),n=a("bC"),r=a("jR"),p=a("lv"),t=a("t"),s=a("kG"),u=s.extend(j,function(){j.call(this);this.JS=this.JS.bind(this);this.zg=
q;this.de=[];this.vm=[];this.Lb=this.tb=this.pd=this.gd=100;this.Oe=1;this.nw=this.mw=0.5;this.pc=1;this.ej=this.Gi=q;this.xT=B;this.w0={};this.XD={};this.XD.low={};this.XD.hight={};if(t.DG()==t.IH){this.XD.low.transform="translateZ(0)";this.XD.hight.transform=""}this.N=B;this.uh="inherit";this.ea=d("<div/>").css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"});this.jJ=q;this.xe=s.hq(this.X,this)});u.prototype.Lc=S("ea");u.prototype.Ey=function(a){if(this.ef!=a){this.ef=a;this.t_(1);
this.xe()}};u.prototype.ORa=function(a){if(this.uh!=a){this.uh=a;this.ej&&this.ej.css("cursor",this.uh);this.Gi&&this.Gi.css("cursor",this.uh)}};u.prototype.cSa=function(a){if(this.de!=a){this.de&&g.na(this.de,["levels.url"],this.JS,m);(this.de=a)&&g.pa(this.de,["levels.url"],this.JS,m)}};u.prototype.JS=function(){this.X_();this.zg=q;if(this.Gi){this.Gi.detach();this.Gi=q}if(this.ej){this.ej.detach();this.ej=q}if(this.Qf)this.Qf=q;this.X_();this.xT=B;c(this.vm).each(function(a){a.iv.cancel();a.iv.unbind(f.U,
this.Gia,this)},this);var a=(this.de&&this.de.get("levels")||[]).filter(function(a){return a.get("url")});this.vm=c(a).map(function(a){a=new b(a);a.iv.bind(f.U,this.Gia,this);return a},this);if(a=this.MDa()){this.tb=a.width;this.Lb=a.height}else this.Lb=this.tb=100;this.nw=this.mw=0.5;this.t_(1);this.xe()};u.prototype.DC=function(a,b){if(this.gd!=a||this.pd!=b){this.gd=a;this.pd=b;this.xe()}};u.prototype.PRa=function(a,b){if(this.Wfa!=a||this.Vfa!=b){this.Wfa=a;this.Vfa=b;this.xe()}};u.prototype.xd=
function(a){if(this.N!=a){this.N=a;this.xe()}};u.prototype.move=function(a,b){var c=this.Oe*this.pc;this.mw=this.mw+a/(this.tb*c);this.nw=this.nw+b/(this.Lb*c);this.XT()};u.prototype.mC=S("pc");u.prototype.setScale=function(a){this.t_(Math.max(1,Math.min(1/this.Oe,a)));this.zg&&this.zg.width<this.pc*this.Oe*this.tb&&this.zg.width<this.tb?this.X():this.XT()};u.prototype.Osa=function(a){if(!this.Gi)return B;var b=this.Gi.offset(),c=a.pageX-b.left,a=a.pageY-b.top;return c>=0&&a>=0&&c<this.Gi.width()&&
a<this.Gi.height()};u.prototype.X=function(){if(this.N){this.TMa();var a=this.UDa();if(a&&a.iv.El()){if(a!=this.zg){if(!this.zg){this.xe();this.xT=m}this.XBa(a);this.zg=a}this.ona(q)}else this.ona(a);this.XT()}};u.prototype.TMa=function(){var a;switch(this.ef){case p.Bo:a=this.gd/this.tb;break;case p.Pj:a=this.pd/this.Lb;break;case p.sq:a=this.tb*this.pd>this.Lb*this.gd?this.pd/this.Lb:this.gd/this.tb;break;case p.ywa:a=Math.min(this.Wfa/this.tb,this.Vfa/this.Lb);break;default:a=this.tb*this.pd>this.Lb*
this.gd?this.gd/this.tb:this.pd/this.Lb}this.jza(a)};u.prototype.Gia=function(){this.xe()};u.prototype.XBa=function(a){if(this.ej){this.H6(this.ej,1);this.Gi&&this.Gi.detach();this.Gi=this.ej}this.ej=this.qBa(a);this.H6(this.ej,0);this.ea.append(this.ej);this.Qf=this.hBa();this.w0={}};u.prototype.UDa=function(){return this.zg?this.fDa(this.pc*this.Oe*this.tb):this.pEa()};u.prototype.ona=function(a){c(this.vm).each(function(b){b==a?b.iv.pi()!=b.url&&b.iv.load(b.url):b.iv.El()||b.iv.cancel()})};u.prototype.MDa=
function(){return c(this.vm).reduce(function(a,b){a||(a=b);if(b.width>a.width||b.width==a.width&&!b.XG&&a.XG)a=b;return a},q)};u.prototype.pEa=function(){return c(this.vm).reduce(function(a,b){a||(a=b);if(b.width<a.width||b.width==a.width&&b.XG&&!a.XG)a=b;return a},q)};u.prototype.fDa=function(a){return c(this.vm).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.XG&&b.XG)b=c;return b},q)};u.prototype.qBa=function(a){a=d(a.iv.jf(m));
a.css({position:"absolute",cursor:this.uh,"pointer-events":"none"});return a};u.prototype.hBa=function(){return new k("linear",[new n("alpha",0,1)],200)};u.prototype.XT=function(){o.yb(function(a){this.xL(a,"low")},this)};u.prototype.V9=function(){return this.tb*this.pc*this.Oe};u.prototype.U9=function(){return this.Lb*this.pc*this.Oe};u.prototype.wra=function(){var a=this.V9();return a>this.gd?Math.max(this.gd-a,Math.min(0,this.gd*0.5-a*this.mw)):(this.gd-a)*0.5};u.prototype.xra=function(){var a=
this.U9();return a>this.pd?Math.max(this.pd-a,Math.min(0,this.pd*0.5-a*this.nw)):(this.pd-a)*0.5};u.prototype.xL=function(a,b){var b=b||"low",c=this.V9(),d=this.wra(),g=this.U9(),i=this.xra();this.mw=(this.gd*0.5-d)/c;this.nw=(this.pd*0.5-i)/g;var c={left:Math.round(d)+"px",top:Math.round(i)+"px",width:Math.round(c)+"px",height:Math.round(g)+"px",display:"block"},j;for(j in this.XD[b])c[j]=this.XD[b][j];if(this.w0!=c){this.Gi&&this.Gi.css(c);this.ej&&this.ej.css(c);this.w0=c}this.X_();if(this.Qf){this.Qf.xb(a);
this.H6(this.ej,this.Qf.gb("alpha"));if(this.Qf.Te()){this.Qf=q;this.Gi&&this.Gi.detach();this.Gi=this.ej;this.ej=q}this.XT()}else b=="low"&&this.CKa();if(!this.Qf&&this.xT){this.xT=B;this.trigger(new e(f.U))}};u.prototype.H6=function(a,b){a.css({opacity:b,filter:"alpha(opacity="+Math.round(b*100)+")","-ms-filter":"alpha(opacity="+Math.round(b*100)+")"})};u.prototype.X_=function(){if(this.jJ!=q){clearTimeout(this.jJ);this.jJ=q}};u.prototype.CKa=function(){var a=this;this.jJ=setTimeout(function(){a.jJ=
q;a.xL(50,"hight")},50)};u.prototype.t_=function(a){if(this.pc!=a){this.pc=a;this.MLa()}};u.prototype.jza=function(a){if(this.Oe!=a)this.Oe=a};u.prototype.MLa=function(){this.trigger(new e(u.LH,{scale:this.pc}))};u.LH="scaleChange";return u});
define("jI","require,jquery.mod,nU,cs,mo,kG,d,S".split(","),function(a){a("jquery.mod");var b=a("nU"),d=a("cs"),c=a("mo"),g=a("kG"),f=a("d"),i=a("S"),e=g.extend(f,function(){f.call(this);this.je("ZoomImage");this.vu=this.Km=l;this.yj=B;this.Sla=l;this.jia=this.pc;this.PM=q;this.h=new c;this.h.bind(b.U,this.YGa,this);this.h.bind(c.LH,this.ZGa,this);this.Ab().append(this.h.Lc());this.bind(b.sc,this.Vb,this,m);this.bind(b.hc,this.gk,this,m);this.bind(b.nc,this.ck,this,m);this.bind(b.zb,this.Ed,this,
m);this.bind(b.ad,this.oj,this,m);this.bind(b.Wb,this.pj,this,m);this.bind(b.vq,this.PA,this,m);this.bind(b.cD,this.mA,this,m)});e.prototype.set=function(a,b){switch(a){case "scale":this.h.setScale(b);b=this.h.mC();break;case "imageLeft":case "imageTop":case "imageWidth":case "imageHeight":return}f.prototype.set.call(this,a,b)};e.prototype.get=function(a,b){switch(a){case "scale":return this.h.mC();case "imageLeft":return this.h.wra();case "imageTop":return this.h.xra();case "imageWidth":return this.h.V9();
case "imageHeight":return this.h.U9()}return f.prototype.get.call(this,a,b)};e.prototype.ab=function(){f.prototype.ab.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")};e.prototype.Ma=function(){if(this.v("scaleMode")){this.h.Ey(this.p("scaleMode"));this.I("scaleMode")}if(this.v("image")){this.h.cSa(this.p("image"));this.I("image");this.jia=this.pc}if(this.v("customHeight")||
this.v("customWidth")){this.I("customHeight");this.I("customWidth");this.Vb()}if(this.v("imageCursor")){this.I("imageCursor");this.h.ORa(this.Sa.L0.qra(this.get("imageCursor")))}f.prototype.Ma.call(this)};e.prototype.Vb=function(){var a=this.Ua(),b=this.Cb(),c=this.get("customWidth","100%"),d=i.oo(c),c=d!==l?a*d/100:c,d=this.get("customHeight","100%"),e=i.oo(d);this.h.PRa(c,e!==l?b*e/100:d);this.h.DC(a,b)};e.prototype.gk=function(){this.h.xd(m)};e.prototype.ck=function(){this.h.xd(B)};e.prototype.Ed=
function(a){this.Km=a.x;this.vu=a.y;this.yj=m;this.Sla=this.h.Osa(a)};e.prototype.oj=function(a){if(this.yj){this.J8();this.h.move(-(a.x-this.Km),-(a.y-this.vu));this.Km=a.x;this.vu=a.y}};e.prototype.pj=function(a){this.yj=B;!this.Sla&&!this.h.Osa(a)&&this.trigger(new d(e.Jba))};e.prototype.PA=function(a){this.J8();this.h.setScale((1+a.delta/20)*this.h.mC())};e.prototype.mA=function(a){this.J8();this.h.setScale(a.scale/this.jia)};e.prototype.YGa=function(){this.trigger(new d(b.U))};e.prototype.ZGa=
function(){f.prototype.set.call(this,"scale",this.h.mC());this.trigger(new d(e.LH))};e.prototype.J8=function(){if(this.PM){clearTimeout(this.PM);this.PM=q}else this.trigger(new d(e.wg));this.PM=setTimeout(function(){this.PM=q;this.trigger(new d(e.vg))}.bind(this),300)};e.Jba="backgroundClick";e.LH="scaleChange";e.wg="userInteractionStart";e.vg="userInteractionEnd";return e});
define("nb",["kG","nU","jI","eQ"],function(a,b,d,c){a=a.extend(d,function(){d.call(this)});c.F("ZoomImage",a).H("UIComponent").Q({scaleMode:"enum[fit_inside, fit_outside, fit_to_width, fit_to_height, custom]",customHeight:"or[number,percent]",customWidth:"or[number,percent]",image:"ImageResource",imageCursor:"enum[default, hand]",imageHeight:"number",imageLeft:"number",imageTop:"number",imageWidth:"number",scale:"number"}).fc([d.Jba,d.LH,d.wg,d.vg,b.U]);return Image});
define("iz","ik,hB,mV,eg,dU,eE,nt,jb,fM,fx,ht,iI,jy,lg,nC,gN,hK,G,gt,fq,di,by,jk,mT,je,kb,lQ,fl,o,iE,dN,hX,nJ,mg,jj,mA,hP,ln,gJ,N,cF,s,kW,fO,Y,jD,bw,bl,mz,nn,eS,lr,kT,iB,bH,nu,iR,mw,kq,R,ou,fH,B,ee,is,bR,be,ba,eY,gv,ic,iL,ok,eT,jm,lD,hZ,n,dB,jT,hx,lL,ib,dW,ie,or,gR,kh,br,cz,bJ,kO,hY,bj,oi,fP,nA,cu,cw,kK,nT,iT,gh,jB,gf,kV,mG,hp,jL,jZ,en,ig,ci,eD,hN,T,nV,gM,gb,bD,io,fi,dA,jK,eH,lS,lw,eX,gm,eF,ce,hS,nc,lI,nB,kS,ng,gw,eZ,gc,dg,mh,hu,mf,jz,gX,bT,iO,ds,bK,jv,iW,nH,no,gD,cb,kz,e,ej,hb,do,bx,cg,dZ,nb".split(","),T(m));
define("fW","require,dY,jquery.mod,kG,eQ,bS,iz,lB".split(","),function(a){function b(a,b){this.type=a;this.stack=b}function d(){}var c=a("dY"),g=a("jquery.mod"),f=a("kG"),i=a("eQ"),e=a("bS");a("iz");a("lB");d.prototype.RQa=function(a,b,c,d){this.w1=[];this.Nx=this.BF(a);this.zA=l;if(this.Nx.Wr.Ara()){this.L8=e.validate(a);this.zA=this.Xga(this.Nx,j.sn);this.tBa(this.zA,this.Nx,b,c,d);this.eza(this.Nx);this.cza(this.Nx,this.zA);this.fza(this.zA,this.Nx);this.wza(this.zA,this.Nx)}else this.Io("Invalid root class",
[]);return this.w1.length==0};d.prototype.wb=function(){return this.Nx.Zd};d.prototype.BF=function(a,b){b=b||[];return c(a).isArray()?this.bIa(a,b):g.isPlainObject(a)&&a["class"]?this.eIa(a,b):g.isPlainObject(a)?this.cIa(a,b):c(a).isFunction()?this.dIa(a,b):this.fIa(a,b)};d.prototype.bIa=function(a,b){for(var c=[],d=0;d<a.length;d++){b.push("Item["+d+"]");c.push(this.BF(a[d],b));b.pop()}return new o(b.slice(),c)};d.prototype.eIa=function(a,b){var c=a["class"],d=i.Fj(a["class"]);if(d){var e,c={},f=
{},g;for(g in a){b.push(g);var k=a[g];switch(g){case "class":break;case "scripts":e=this.BF(k,b);break;default:d.hasAttribute(g)?c[g]=this.BF(k,b):d.esa(g)||d.fsa(g)?f[g]=this.BF(k,b):this.Io(d.PG()+" object doesn't have any attribute named "+g,b)}b.pop()}return new j(b.slice(),d,a.id,c,f,e)}this.Io("Undefined class name: "+c,b.slice());return new r(b.slice(),q)};d.prototype.cIa=function(a,b){var c={},d;for(d in a){b.push(d);c[d]=this.BF(a[d],b);b.pop()}return new k(b.slice(),c)};d.prototype.dIa=
function(a,b){return new n(b.slice(),a)};d.prototype.fIa=function(a,b){return new r(b.slice(),a)};d.prototype.Xga=function(a,b){for(var c=!b||a.type==b?[a]:[],d=0,e=a.Db();d<e.length;d++)c=c.concat(this.Xga(e[d],b));return c};d.prototype.tBa=function(a,b,c,d,e){b.Zd=b.Wr.Zp(q,d,e,[c,this.L8]);b.Zd.set("application",b.Zd);for(c=0;c<a.length;c++){var f=a[c];if(f!=b)f.Zd=f.Wr.Zp(b.Zd,d,e)}};d.prototype.eza=function(a){if(a.scripts)if(a.scripts.type==k.sn)for(var b in a.scripts.value)this.dza(a,b);else this.Io("Invalid content.",
a.scripts.stack)};d.prototype.dza=function(a,b){var d=a.Zd,e=a.scripts.value[b];c(d[b]).isUndefined()?e&&e.type==n.sn?d[b]=function(){return e.ls().apply(d,arguments)}:this.Io("Invalid content.",e.stack):this.Io("Identifier: "+b+" is already in use",e.stack)};d.prototype.cza=function(a,b){for(var d=a.Zd,e=0;e<b.length;e++){var f=b[e],g=f.id;if(g)c(d[g]).isUndefined()?d[g]=f.Zd:this.Io("Identifier: "+g+" is arleady in use",f.stack)}};d.prototype.fza=function(a,b){for(var c=0;c<a.length;c++){var d=
a[c],e=d.attributes,f;for(f in e)this.bza(d,f,b)}};d.prototype.bza=function(a,b,c){var d=a.Wr;if(d.hasAttribute(b)){var e=a.attributes[b].ls();try{e=d.L9(b)(e,c.Zd);a.Zd.set(b,e)}catch(f){this.Io("Invalid value for property "+b+" of "+d.PG()+" instance",a.stack)}}else this.Io(d.PG()+" object doesn't have any property named "+b,a.stack)};d.prototype.wza=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e;for(e in d.bC)this.vza(d,e,b)}};d.prototype.vza=function(a,b,d){var e=a.Wr,f=a.Zd,g=e.esa(b),
i=e.fsa(b);if(g||i){var a=a.bC[b],j=a.ls();c(j).isFunction()?f.bind(b,j,d.Zd,i,j):typeof j=="string"?f.bind(b,function(){try{eval("var event = arguments[0];"+j)}catch(a){h(a)}},d.Zd,i,j):this.Io("Invalid value.",a.stack)}else this.Io(e.PG()+" object doesn't have any event named "+b,a.stack)};d.prototype.Io=function(a,b){this.w1.push("In "+b.join(" >> ")+": "+a)};b.prototype.Db=function(){return[]};b.prototype.ls=I();var j=f.extend(b,function(a,c,d,e,f,g){b.call(this,j.sn,a);this.Wr=c;this.id=d;this.attributes=
e;this.bC=f;this.scripts=g;this.Zd=q});j.prototype.Db=function(){var a=this.Wr.Jra(),b=[],d=c(this.attributes).clone();if(a)for(var e=0;e<a.length;e++){var f=a[e];if(d[f]!=l){b.push(d[f]);delete d[f]}}return b=b.concat(c(d).values())};j.prototype.ls=S("Zd");j.sn="instance";var o=f.extend(b,function(a,c){b.call(this,o.sn,a);this.jo=c});o.prototype.Db=function(){return this.jo.slice()};o.prototype.ls=function(){for(var a=[],b=0;b<this.jo.length;b++)a.push(this.jo[b].ls());return a};o.sn="array";var k=
f.extend(b,function(a,c){b.call(this,k.sn,a);this.value=c});k.prototype.Db=function(){return c(this.value).values()};k.prototype.ls=function(){var a={},b;for(b in this.value)a[b]=this.value[b].ls();return a};k.sn="dict";var n=f.extend(b,function(a,c){b.call(this,n.sn,a);this.value=c});n.prototype.ls=S("value");n.sn="function";var r=f.extend(b,function(a,c){b.call(this,r.sn,a);this.value=c});r.prototype.ls=S("value");r.sn="simple";return d});
define("K","require,dY,nU,cs,eQ,fW,t,eG,lB,bu,gZ,mq,nS,mt,kG".split(","),function(a){function b(a,b){this.kM=a;this.Fj=this.Fj.bind(this);this.Zp=this.Zp.bind(this);this.JG=this.JG.bind(this);this.xa=this.xa.bind(this);this.mW=this.mW.bind(this);i.ob()&&!i.If()&&p.Hf();this.xQ=[];var c=n.name,d=[];c&&d.push(c);n.PN>0?d.push("v:"+n.PN+"."+n.TN):d.push("v:"+n.TN);t.log(d.join(" "));this.qo=b;if(j.kQa()||[i.UC,i.Fv].indexOf(i.browser())>=0){this.jl=new f;if(c=this.qo.get(TDV.PlayerSettings.BASE_DIR_URL)){c=
j.yv(c);c[c.length-1]!="/"&&(c=c+"/")}else c=j.getDirectory(this.qo.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL));this.baa=this.qo.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);e.cRa(c,function(a){this.l9=a;this.AHa()}.bind(this))}else window.alert(r("web-server-required"))}var d=a("dY"),c=a("nU");a("cs");var g=a("eQ"),f=a("fW"),i=a("t"),e=a("eG"),j=a("lB"),o=a("bu"),k=a("gZ"),n=a("mq"),r=a("nS"),p=a("mt"),t=a("kG");b.prototype.AHa=function(){this.kM.trigger(new TDV.kP(c.vxa,{},[],l));d.defer(function(){if(!this.jl.RQa(this.qo.get(TDV.PlayerSettings.SCRIPT_DATA),
this.qo.get(TDV.PlayerSettings.CONTAINER),this.l9,this.baa)){if(n.wTa!="false"){window.alert(this.Gha());return}t.log(this.Gha())}this.uza();this.Uya(this.qo);this.hza();o.fq(function(){this.OLa()}.bind(this))}.bind(this))};b.prototype.clear=function(){if(this.jl){this.wha().forEach(function(a){a.Zd.lba();a.Wr.zN().forEach(function(b){switch(b){case "VideoPlayer":a.Zd.stop();case "MapPlayer":case "Model3DPlayer":case "PanoramaPlayer":case "PhotoAlbumPlayer":case "VideoPlayer":a.Zd.set("viewerArea",
q);break;case "ZoomImage":a.Zd.set("image",q);break;case "Audio":a.Zd.stop();break;case "Effect":a.Zd.end();break;case "Media":a.Zd.qRa()}})});k.WQa();this.jl.wb().clear();s={};this.qo=this.jl=q}};b.prototype.tPa=function(a){return this.jl.wb()[a]};b.prototype.Fj=function(a){if(a in s)return s[a].slice();var b=[];this.wha().forEach(function(c){var e=c.Wr.zN();d(e).contains(a)&&b.push(c.Zd)});s[a]=b;return b.slice()};b.prototype.wha=function(){return!this.jl?[]:this.jl.zA.concat(this.xQ)};var s={};
b.prototype.Zp=function(a){var b=g.Fj(a);b||h("Invalid className: "+a);s={};var a=this.jl.wb(),c={};c.Wr=b;c.Zd=b.Zp(a,this.l9,this.baa);this.xQ.push(c);this.Dea(b,c.Zd,l);return c.Zd};b.prototype.JG=function(a){var b=this.xQ.findIndex(function(b){return b.Zd==a});if(!(b<0)){s={};this.xQ.splice(b,1);a.lba();a.dispose&&a.dispose()}};b.prototype.Gha=function(){for(var a=this.jl.w1,b=["Errors parsing script file:"],c=0;c<a.length;c++)b.push(a[c]);return b.join("\n")};b.prototype.uza=function(){this.jl.zA.forEach(function(a){this.Dea(a.Wr,
a.Zd,a.id)}.bind(this));var a=this.jl.wb().tQ;a.bind(c.ZC,function(){a.OTa(c.ZC);this.kM.cookiesEnabled=this.kM.dOa=m;this.kM.trigger(new TDV.kP(c.ZC,{},[],l))},this,m)};b.prototype.Dea=function(a,b,c){var e=a.zN();d.union(a.R9(),a.W9()).forEach(function(a){b.bind(a,function(b){this.kM.trigger(new TDV.kP(a,b,e,c))}.bind(this),this,m)}.bind(this))};b.prototype.Uya=function(a){this.jl.wb().set("settings",a)};b.prototype.xa=function(){return g.xa.apply(g,arguments)};b.prototype.mW=function(a){a&&!j.sy(a)&&
!j.RW(a)&&(a=j.ky(j.yv(a,this.l9),this.baa));return a};b.prototype.hza=function(){var a=this.jl.wb();a.getByClassName=a.Fj=this.Fj;a.createInstance=a.Zp=this.Zp;a.disposeInstance=a.JG=this.JG;a.isInstanceOfClass=a.xa=this.xa;a.getAbsoluteURL=a.mW=this.mW};b.prototype.OLa=function(){this.jl.wb().start()};b.MTa=function(a){a.trigger(new TDV.kP(c.$wa,{},[],l))};return b});define("main",["require","jquery.mod","K"],function(a){var b=a("jquery.mod"),d=a("K");b(document).ready(function(){TDV.kb.JSa(d)})});
(function(t,e){e(t.THREE=t.THREE||{})})(this,function(t){"use strict";const e="142",i=100,n=300,r=301,s=302,a=303,o=304,l=306,c=1e3,h=1001,u=1002,d=1003,p=1004,m=1005,f=1006,g=1007,v=1008,x=1009,y=1012,_=1014,M=1015,b=1016,w=1020,S=1023,T=1026,A=1027,E=33776,C=33777,L=33778,R=33779,P=35840,I=35841,D=35842,N=35843,O=37492,z=37496,F=37808,B=37809,U=37810,k=37811,G=37812,V=37813,H=37814,W=37815,j=37816,q=37817,X=37818,Y=37819,Z=37820,J=37821,K=36492,Q=2300,$=2301,tt=2302,et=2400,it=2401,nt=2402,rt=2500,st=2501,at=3e3,ot=3001,lt="srgb",ct="srgb-linear",ht=7680,ut=35044,dt="300 es",pt=1035;class mt{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const i=this._listeners;void 0===i[t]&&(i[t]=[]),-1===i[t].indexOf(e)&&i[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const i=this._listeners;return void 0!==i[t]&&-1!==i[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const i=this._listeners[t];if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners[t.type];if(void 0!==e){t.target=this;const i=e.slice(0);for(let e=0,n=i.length;e<n;e++)i[e].call(this,t);t.target=null}}}const ft=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let gt=1234567;const vt=Math.PI/180,xt=180/Math.PI;function yt(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return(ft[255&t]+ft[t>>8&255]+ft[t>>16&255]+ft[t>>24&255]+"-"+ft[255&e]+ft[e>>8&255]+"-"+ft[e>>16&15|64]+ft[e>>24&255]+"-"+ft[63&i|128]+ft[i>>8&255]+"-"+ft[i>>16&255]+ft[i>>24&255]+ft[255&n]+ft[n>>8&255]+ft[n>>16&255]+ft[n>>24&255]).toLowerCase()}function _t(t,e,i){return Math.max(e,Math.min(i,t))}function Mt(t,e){return(t%e+e)%e}function bt(t,e,i){return(1-i)*t+i*e}function wt(t){return 0==(t&t-1)&&0!==t}function St(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Tt(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}var At=Object.freeze({__proto__:null,DEG2RAD:vt,RAD2DEG:xt,generateUUID:yt,clamp:_t,euclideanModulo:Mt,mapLinear:function(t,e,i,n,r){return n+(t-e)*(r-n)/(i-e)},inverseLerp:function(t,e,i){return t!==e?(i-t)/(e-t):0},lerp:bt,damp:function(t,e,i,n){return bt(t,e,1-Math.exp(-i*n))},pingpong:function(t,e=1){return e-Math.abs(Mt(t,2*e)-e)},smoothstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*(3-2*t)},smootherstep:function(t,e,i){return t<=e?0:t>=i?1:(t=(t-e)/(i-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(gt=t);let e=gt+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*vt},radToDeg:function(t){return t*xt},isPowerOfTwo:wt,ceilPowerOfTwo:St,floorPowerOfTwo:Tt,setQuaternionFromProperEuler:function(t,e,i,n,r){const s=Math.cos,a=Math.sin,o=s(i/2),l=a(i/2),c=s((e+n)/2),h=a((e+n)/2),u=s((e-n)/2),d=a((e-n)/2),p=s((n-e)/2),m=a((n-e)/2);switch(r){case"XYX":t.set(o*h,l*u,l*d,o*c);break;case"YZY":t.set(l*d,o*h,l*u,o*c);break;case"ZXZ":t.set(l*u,l*d,o*h,o*c);break;case"XZX":t.set(o*h,l*m,l*p,o*c);break;case"YXY":t.set(l*p,o*h,l*m,o*c);break;case"ZYZ":t.set(l*m,l*p,o*h,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r);}},normalize:function(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.");}},denormalize:function(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.");}}});class Et{constructor(t=0,e=0){Et.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,i=this.y,n=t.elements;return this.x=n[0]*e+n[3]*i+n[6],this.y=n[1]*e+n[4]*i+n[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y;return e*e+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const i=Math.cos(e),n=Math.sin(e),r=this.x-t.x,s=this.y-t.y;return this.x=r*i-s*n+t.x,this.y=r*n+s*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ct{constructor(){Ct.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,i,n,r,s,a,o,l){const c=this.elements;return c[0]=t,c[1]=n,c[2]=a,c[3]=e,c[4]=r,c[5]=o,c[6]=i,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],this}extractBasis(t,e,i){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,s=i[0],a=i[3],o=i[6],l=i[1],c=i[4],h=i[7],u=i[2],d=i[5],p=i[8],m=n[0],f=n[3],g=n[6],v=n[1],x=n[4],y=n[7],_=n[2],M=n[5],b=n[8];return r[0]=s*m+a*v+o*_,r[3]=s*f+a*x+o*M,r[6]=s*g+a*y+o*b,r[1]=l*m+c*v+h*_,r[4]=l*f+c*x+h*M,r[7]=l*g+c*y+h*b,r[2]=u*m+d*v+p*_,r[5]=u*f+d*x+p*M,r[8]=u*g+d*y+p*b,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-i*r*c+i*a*o+n*r*l-n*s*o}invert(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+i*u+n*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return t[0]=h*m,t[1]=(n*l-c*i)*m,t[2]=(a*i-n*s)*m,t[3]=u*m,t[4]=(c*e-n*o)*m,t[5]=(n*r-a*e)*m,t[6]=d*m,t[7]=(i*o-l*e)*m,t[8]=(s*e-i*r)*m,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,i,n,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(i*o,i*l,-i*(o*s+l*a)+s+t,-n*l,n*o,-n*(-l*s+o*a)+a+e,0,0,1),this}scale(t,e){const i=this.elements;return i[0]*=t,i[3]*=t,i[6]*=t,i[1]*=e,i[4]*=e,i[7]*=e,this}rotate(t){const e=Math.cos(t),i=Math.sin(t),n=this.elements,r=n[0],s=n[3],a=n[6],o=n[1],l=n[4],c=n[7];return n[0]=e*r+i*o,n[3]=e*s+i*l,n[6]=e*a+i*c,n[1]=-i*r+e*o,n[4]=-i*s+e*l,n[7]=-i*a+e*c,this}translate(t,e){const i=this.elements;return i[0]+=t*i[2],i[3]+=t*i[5],i[6]+=t*i[8],i[1]+=e*i[2],i[4]+=e*i[5],i[7]+=e*i[8],this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<9;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e=0){for(let i=0;i<9;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}}function Lt(t){for(let e=t.length-1;e>=0;--e)if(t[e]>65535)return!0;return!1}const Rt={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function Pt(t,e){return new Rt[t](e)}function It(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Dt(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Nt(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}const Ot={[lt]:{[ct]:Dt},[ct]:{[lt]:Nt}},zt={legacyMode:!0,get workingColorSpace(){return ct},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,i){if(this.legacyMode||e===i||!e||!i)return t;if(Ot[e]&&void 0!==Ot[e][i]){const n=Ot[e][i];return t.r=n(t.r),t.g=n(t.g),t.b=n(t.b),t}throw new Error("Unsupported color space conversion.")},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}},Ft={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},Bt={r:0,g:0,b:0},Ut={h:0,s:0,l:0},kt={h:0,s:0,l:0};function Gt(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}function Vt(t,e){return e.r=t.r,e.g=t.g,e.b=t.b,e}class Ht{constructor(t,e,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===e&&void 0===i?this.set(t):this.setRGB(t,e,i)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e="srgb"){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,zt.toWorkingColorSpace(this,e),this}setRGB(t,e,i,n="srgb-linear"){return this.r=t,this.g=e,this.b=i,zt.toWorkingColorSpace(this,n),this}setHSL(t,e,i,n="srgb-linear"){if(t=Mt(t,1),e=_t(e,0,1),i=_t(i,0,1),0===e)this.r=this.g=this.b=i;else{const n=i<=.5?i*(1+e):i+e-i*e,r=2*i-n;this.r=Gt(r,n,t+1/3),this.g=Gt(r,n,t),this.b=Gt(r,n,t-1/3)}return zt.toWorkingColorSpace(this,n),this}setStyle(t,e="srgb"){function i(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const r=n[1],s=n[2];switch(r){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,zt.toWorkingColorSpace(this,e),i(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,zt.toWorkingColorSpace(this,e),i(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(s)){const n=parseFloat(t[1])/360,r=parseInt(t[2],10)/100,s=parseInt(t[3],10)/100;return i(t[4]),this.setHSL(n,r,s,e)}}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],i=t.length;if(3===i)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,zt.toWorkingColorSpace(this,e),this;if(6===i)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,zt.toWorkingColorSpace(this,e),this}return t&&t.length>0?this.setColorName(t,e):this}setColorName(t,e="srgb"){const i=Ft[t.toLowerCase()];return void 0!==i?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Dt(t.r),this.g=Dt(t.g),this.b=Dt(t.b),this}copyLinearToSRGB(t){return this.r=Nt(t.r),this.g=Nt(t.g),this.b=Nt(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t="srgb"){return zt.fromWorkingColorSpace(Vt(this,Bt),t),_t(255*Bt.r,0,255)<<16^_t(255*Bt.g,0,255)<<8^_t(255*Bt.b,0,255)<<0}getHexString(t="srgb"){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e="srgb-linear"){zt.fromWorkingColorSpace(Vt(this,Bt),e);const i=Bt.r,n=Bt.g,r=Bt.b,s=Math.max(i,n,r),a=Math.min(i,n,r);let o,l;const c=(a+s)/2;if(a===s)o=0,l=0;else{const t=s-a;switch(l=c<=.5?t/(s+a):t/(2-s-a),s){case i:o=(n-r)/t+(n<r?6:0);break;case n:o=(r-i)/t+2;break;case r:o=(i-n)/t+4;}o/=6}return t.h=o,t.s=l,t.l=c,t}getRGB(t,e="srgb-linear"){return zt.fromWorkingColorSpace(Vt(this,Bt),e),t.r=Bt.r,t.g=Bt.g,t.b=Bt.b,t}getStyle(t="srgb"){return zt.fromWorkingColorSpace(Vt(this,Bt),t),t!==lt?`color(${t} ${Bt.r} ${Bt.g} ${Bt.b})`:`rgb(${255*Bt.r|0},${255*Bt.g|0},${255*Bt.b|0})`}offsetHSL(t,e,i){return this.getHSL(Ut),Ut.h+=t,Ut.s+=e,Ut.l+=i,this.setHSL(Ut.h,Ut.s,Ut.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}lerpHSL(t,e){this.getHSL(Ut),t.getHSL(kt);const i=bt(Ut.h,kt.h,e),n=bt(Ut.s,kt.s,e),r=bt(Ut.l,kt.l,e);return this.setHSL(i,n,r),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}let Wt;Ht.NAMES=Ft;class jt{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===Wt&&(Wt=It("canvas")),Wt.width=t.width,Wt.height=t.height;const i=Wt.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),e=Wt}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=It("canvas");e.width=t.width,e.height=t.height;const i=e.getContext("2d");i.drawImage(t,0,0,t.width,t.height);const n=i.getImageData(0,0,t.width,t.height),r=n.data;for(let t=0;t<r.length;t++)r[t]=255*Dt(r[t]/255);return i.putImageData(n,0,0),e}if(t.data){const e=t.data.slice(0);for(let t=0;t<e.length;t++)e instanceof Uint8Array||e instanceof Uint8ClampedArray?e[t]=Math.floor(255*Dt(e[t]/255)):e[t]=Dt(e[t]);return{data:e,width:t.width,height:t.height}}return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}}class qt{constructor(t=null){this.isSource=!0,this.uuid=yt(),this.data=t,this.version=0}set needsUpdate(t){!0===t&&this.version++}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.images[this.uuid])return t.images[this.uuid];const i={uuid:this.uuid,url:""},n=this.data;if(null!==n){let t;if(Array.isArray(n)){t=[];for(let e=0,i=n.length;e<i;e++)n[e].isDataTexture?t.push(Xt(n[e].image)):t.push(Xt(n[e]))}else t=Xt(n);i.url=t}return e||(t.images[this.uuid]=i),i}}function Xt(t){return"undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap?jt.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Yt=0;class Zt extends mt{constructor(t=Zt.DEFAULT_IMAGE,e=Zt.DEFAULT_MAPPING,i=1001,n=1001,r=1006,s=1008,a=1023,o=1009,l=1,c=3e3){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Yt++}),this.uuid=yt(),this.name="",this.source=new qt(t),this.mipmaps=[],this.mapping=e,this.wrapS=i,this.wrapT=n,this.magFilter=r,this.minFilter=s,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=o,this.offset=new Et(0,0),this.repeat=new Et(1,1),this.center=new Et(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Ct,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.needsPMREMUpdate=!1}get image(){return this.source.data}set image(t){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){const e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const i={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,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};return"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),e||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==n)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case c:t.x=t.x-Math.floor(t.x);break;case h:t.x=t.x<0?0:1;break;case u:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);}if(t.y<0||t.y>1)switch(this.wrapT){case c:t.y=t.y-Math.floor(t.y);break;case h:t.y=t.y<0?0:1;break;case u:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}}Zt.DEFAULT_IMAGE=null,Zt.DEFAULT_MAPPING=n;class Jt{constructor(t=0,e=0,i=0,n=1){Jt.prototype.isVector4=!0,this.x=t,this.y=e,this.z=i,this.w=n}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,i,n){return this.x=t,this.y=e,this.z=i,this.w=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=this.w,s=t.elements;return this.x=s[0]*e+s[4]*i+s[8]*n+s[12]*r,this.y=s[1]*e+s[5]*i+s[9]*n+s[13]*r,this.z=s[2]*e+s[6]*i+s[10]*n+s[14]*r,this.w=s[3]*e+s[7]*i+s[11]*n+s[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,i,n,r;const s=.01,a=.1,o=t.elements,l=o[0],c=o[4],h=o[8],u=o[1],d=o[5],p=o[9],m=o[2],f=o[6],g=o[10];if(Math.abs(c-u)<s&&Math.abs(h-m)<s&&Math.abs(p-f)<s){if(Math.abs(c+u)<a&&Math.abs(h+m)<a&&Math.abs(p+f)<a&&Math.abs(l+d+g-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,o=(d+1)/2,v=(g+1)/2,x=(c+u)/4,y=(h+m)/4,_=(p+f)/4;return t>o&&t>v?t<s?(i=0,n=.707106781,r=.707106781):(i=Math.sqrt(t),n=x/i,r=y/i):o>v?o<s?(i=.707106781,n=0,r=.707106781):(n=Math.sqrt(o),i=x/n,r=_/n):v<s?(i=.707106781,n=.707106781,r=0):(r=Math.sqrt(v),i=y/r,n=_/r),this.set(i,n,r,e),this}let v=Math.sqrt((f-p)*(f-p)+(h-m)*(h-m)+(u-c)*(u-c));return Math.abs(v)<.001&&(v=1),this.x=(f-p)/v,this.y=(h-m)/v,this.z=(u-c)/v,this.w=Math.acos((l+d+g-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this.w=t.w+(e.w-t.w)*i,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Kt extends mt{constructor(t,e,i={}){super(),this.isWebGLRenderTarget=!0,this.width=t,this.height=e,this.depth=1,this.scissor=new Jt(0,0,t,e),this.scissorTest=!1,this.viewport=new Jt(0,0,t,e);const n={width:t,height:e,depth:1};this.texture=new Zt(n,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.encoding),this.texture.isRenderTargetTexture=!0,this.texture.flipY=!1,this.texture.generateMipmaps=void 0!==i.generateMipmaps&&i.generateMipmaps,this.texture.internalFormat=void 0!==i.internalFormat?i.internalFormat:null,this.texture.minFilter=void 0!==i.minFilter?i.minFilter:f,this.depthBuffer=void 0===i.depthBuffer||i.depthBuffer,this.stencilBuffer=void 0!==i.stencilBuffer&&i.stencilBuffer,this.depthTexture=void 0!==i.depthTexture?i.depthTexture:null,this.samples=void 0!==i.samples?i.samples:0}setSize(t,e,i=1){this.width===t&&this.height===e&&this.depth===i||(this.width=t,this.height=e,this.depth=i,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=i,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return new this.constructor().copy(this)}copy(t){this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.texture.isRenderTargetTexture=!0;const e=Object.assign({},t.texture.image);return this.texture.source=new qt(e),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,null!==t.depthTexture&&(this.depthTexture=t.depthTexture.clone()),this.samples=t.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class Qt extends Zt{constructor(t=null,e=1,i=1,n=1){super(null),this.isDataArrayTexture=!0,this.image={data:t,width:e,height:i,depth:n},this.magFilter=d,this.minFilter=d,this.wrapR=h,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class $t extends Zt{constructor(t=null,e=1,i=1,n=1){super(null),this.isData3DTexture=!0,this.image={data:t,width:e,height:i,depth:n},this.magFilter=d,this.minFilter=d,this.wrapR=h,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class te{constructor(t=0,e=0,i=0,n=1){this.isQuaternion=!0,this._x=t,this._y=e,this._z=i,this._w=n}static slerp(t,e,i,n){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),i.slerpQuaternions(t,e,n)}static slerpFlat(t,e,i,n,r,s,a){let o=i[n+0],l=i[n+1],c=i[n+2],h=i[n+3];const u=r[s+0],d=r[s+1],p=r[s+2],m=r[s+3];if(0===a)return t[e+0]=o,t[e+1]=l,t[e+2]=c,void(t[e+3]=h);if(1===a)return t[e+0]=u,t[e+1]=d,t[e+2]=p,void(t[e+3]=m);if(h!==m||o!==u||l!==d||c!==p){let t=1-a;const e=o*u+l*d+c*p+h*m,i=e>=0?1:-1,n=1-e*e;if(n>Number.EPSILON){const r=Math.sqrt(n),s=Math.atan2(r,e*i);t=Math.sin(t*s)/r,a=Math.sin(a*s)/r}const r=a*i;if(o=o*t+u*r,l=l*t+d*r,c=c*t+p*r,h=h*t+m*r,t===1-a){const t=1/Math.sqrt(o*o+l*l+c*c+h*h);o*=t,l*=t,c*=t,h*=t}}t[e]=o,t[e+1]=l,t[e+2]=c,t[e+3]=h}static multiplyQuaternionsFlat(t,e,i,n,r,s){const a=i[n],o=i[n+1],l=i[n+2],c=i[n+3],h=r[s],u=r[s+1],d=r[s+2],p=r[s+3];return t[e]=a*p+c*h+o*d-l*u,t[e+1]=o*p+c*u+l*h-a*d,t[e+2]=l*p+c*d+a*u-o*h,t[e+3]=c*p-a*h-o*u-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,i,n){return this._x=t,this._y=e,this._z=i,this._w=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const i=t._x,n=t._y,r=t._z,s=t._order,a=Math.cos,o=Math.sin,l=a(i/2),c=a(n/2),h=a(r/2),u=o(i/2),d=o(n/2),p=o(r/2);switch(s){case"XYZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"YXZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"ZXY":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"ZYX":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"YZX":this._x=u*c*h+l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h-u*d*p;break;case"XZY":this._x=u*c*h-l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h+u*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s);}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const i=e/2,n=Math.sin(i);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,i=e[0],n=e[4],r=e[8],s=e[1],a=e[5],o=e[9],l=e[2],c=e[6],h=e[10],u=i+a+h;if(u>0){const t=.5/Math.sqrt(u+1);this._w=.25/t,this._x=(c-o)*t,this._y=(r-l)*t,this._z=(s-n)*t}else if(i>a&&i>h){const t=2*Math.sqrt(1+i-a-h);this._w=(c-o)/t,this._x=.25*t,this._y=(n+s)/t,this._z=(r+l)/t}else if(a>h){const t=2*Math.sqrt(1+a-i-h);this._w=(r-l)/t,this._x=(n+s)/t,this._y=.25*t,this._z=(o+c)/t}else{const t=2*Math.sqrt(1+h-i-a);this._w=(s-n)/t,this._x=(r+l)/t,this._y=(o+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let i=t.dot(e)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(_t(this.dot(t),-1,1)))}rotateTowards(t,e){const i=this.angleTo(t);if(0===i)return this;const n=Math.min(1,e/i);return this.slerp(t,n),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const i=t._x,n=t._y,r=t._z,s=t._w,a=e._x,o=e._y,l=e._z,c=e._w;return this._x=i*c+s*a+n*l-r*o,this._y=n*c+s*o+r*a-i*l,this._z=r*c+s*l+i*o-n*a,this._w=s*c-i*a-n*o-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const i=this._x,n=this._y,r=this._z,s=this._w;let a=s*t._w+i*t._x+n*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=i,this._y=n,this._z=r,this;const o=1-a*a;if(o<=Number.EPSILON){const t=1-e;return this._w=t*s+e*this._w,this._x=t*i+e*this._x,this._y=t*n+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),h=Math.sin((1-e)*c)/l,u=Math.sin(e*c)/l;return this._w=s*h+this._w*u,this._x=i*h+this._x*u,this._y=n*h+this._y*u,this._z=r*h+this._z*u,this._onChangeCallback(),this}slerpQuaternions(t,e,i){return this.copy(t).slerp(e,i)}random(){const t=Math.random(),e=Math.sqrt(1-t),i=Math.sqrt(t),n=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(n),i*Math.sin(r),i*Math.cos(r),e*Math.sin(n))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ee{constructor(t=0,e=0,i=0){ee.prototype.isVector3=!0,this.x=t,this.y=e,this.z=i}set(t,e,i){return void 0===i&&(i=this.z),this.x=t,this.y=e,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(ne.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(ne.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[3]*i+r[6]*n,this.y=r[1]*e+r[4]*i+r[7]*n,this.z=r[2]*e+r[5]*i+r[8]*n,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,i=this.y,n=this.z,r=t.elements,s=1/(r[3]*e+r[7]*i+r[11]*n+r[15]);return this.x=(r[0]*e+r[4]*i+r[8]*n+r[12])*s,this.y=(r[1]*e+r[5]*i+r[9]*n+r[13])*s,this.z=(r[2]*e+r[6]*i+r[10]*n+r[14])*s,this}applyQuaternion(t){const e=this.x,i=this.y,n=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*n-a*i,c=o*i+a*e-r*n,h=o*n+r*i-s*e,u=-r*e-s*i-a*n;return this.x=l*o+u*-r+c*-a-h*-s,this.y=c*o+u*-s+h*-r-l*-a,this.z=h*o+u*-a+l*-s-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,i=this.y,n=this.z,r=t.elements;return this.x=r[0]*e+r[4]*i+r[8]*n,this.y=r[1]*e+r[5]*i+r[9]*n,this.z=r[2]*e+r[6]*i+r[10]*n,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(t,Math.min(e,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,i){return this.x=t.x+(e.x-t.x)*i,this.y=t.y+(e.y-t.y)*i,this.z=t.z+(e.z-t.z)*i,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const i=t.x,n=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=n*o-r*a,this.y=r*s-i*o,this.z=i*a-n*s,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const i=t.dot(this)/e;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return ie.copy(this).projectOnVector(t),this.sub(ie)}reflect(t){return this.sub(ie.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const i=this.dot(t)/e;return Math.acos(_t(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,i=this.y-t.y,n=this.z-t.z;return e*e+i*i+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,i){const n=Math.sin(e)*t;return this.x=n*Math.sin(i),this.y=Math.cos(e)*t,this.z=n*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,i){return this.x=t*Math.sin(e),this.y=i,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),n=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=i,this.z=n,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,i){return void 0!==i&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,i=Math.sqrt(1-t**2);return this.x=i*Math.cos(e),this.y=i*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const ie=new ee,ne=new te;class re{constructor(t=new ee(1/0,1/0,1/0),e=new ee(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,i=1/0,n=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.length;o<l;o+=3){const l=t[o],c=t[o+1],h=t[o+2];l<e&&(e=l),c<i&&(i=c),h<n&&(n=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,i,n),this.max.set(r,s,a),this}setFromBufferAttribute(t){let e=1/0,i=1/0,n=1/0,r=-1/0,s=-1/0,a=-1/0;for(let o=0,l=t.count;o<l;o++){const l=t.getX(o),c=t.getY(o),h=t.getZ(o);l<e&&(e=l),c<i&&(i=c),h<n&&(n=h),l>r&&(r=l),c>s&&(s=c),h>a&&(a=h)}return this.min.set(e,i,n),this.max.set(r,s,a),this}setFromPoints(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const i=ae.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}setFromObject(t,e=!1){return this.makeEmpty(),this.expandByObject(t,e)}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t,e=!1){t.updateWorldMatrix(!1,!1);const i=t.geometry;if(void 0!==i)if(e&&null!=i.attributes&&void 0!==i.attributes.position){const e=i.attributes.position;for(let i=0,n=e.count;i<n;i++)ae.fromBufferAttribute(e,i).applyMatrix4(t.matrixWorld),this.expandByPoint(ae)}else null===i.boundingBox&&i.computeBoundingBox(),oe.copy(i.boundingBox),oe.applyMatrix4(t.matrixWorld),this.union(oe);const n=t.children;for(let t=0,i=n.length;t<i;t++)this.expandByObject(n[t],e);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,ae),ae.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,i;return t.normal.x>0?(e=t.normal.x*this.min.x,i=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,i=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,i+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,i+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,i+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,i+=t.normal.z*this.min.z),e<=-t.constant&&i>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(me),fe.subVectors(this.max,me),le.subVectors(t.a,me),ce.subVectors(t.b,me),he.subVectors(t.c,me),ue.subVectors(ce,le),de.subVectors(he,ce),pe.subVectors(le,he);let e=[0,-ue.z,ue.y,0,-de.z,de.y,0,-pe.z,pe.y,ue.z,0,-ue.x,de.z,0,-de.x,pe.z,0,-pe.x,-ue.y,ue.x,0,-de.y,de.x,0,-pe.y,pe.x,0];return!!xe(e,le,ce,he,fe)&&(e=[1,0,0,0,1,0,0,0,1],!!xe(e,le,ce,he,fe)&&(ge.crossVectors(ue,de),e=[ge.x,ge.y,ge.z],xe(e,le,ce,he,fe)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return ae.copy(t).clamp(this.min,this.max).sub(t).length()}getBoundingSphere(t){return this.getCenter(t.center),t.radius=.5*this.getSize(ae).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(se[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),se[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),se[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),se[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),se[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),se[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),se[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),se[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(se)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const se=[new ee,new ee,new ee,new ee,new ee,new ee,new ee,new ee],ae=new ee,oe=new re,le=new ee,ce=new ee,he=new ee,ue=new ee,de=new ee,pe=new ee,me=new ee,fe=new ee,ge=new ee,ve=new ee;function xe(t,e,i,n,r){for(let s=0,a=t.length-3;s<=a;s+=3){ve.fromArray(t,s);const a=r.x*Math.abs(ve.x)+r.y*Math.abs(ve.y)+r.z*Math.abs(ve.z),o=e.dot(ve),l=i.dot(ve),c=n.dot(ve);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const ye=new re,_e=new ee,Me=new ee,be=new ee;class we{constructor(t=new ee,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const i=this.center;void 0!==e?i.copy(e):ye.setFromPoints(t).getCenter(i);let n=0;for(let e=0,r=t.length;e<r;e++)n=Math.max(n,i.distanceToSquared(t[e]));return this.radius=Math.sqrt(n),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const i=this.center.distanceToSquared(t);return e.copy(t),i>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){be.subVectors(t,this.center);const e=be.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),i=.5*(t-this.radius);this.center.add(be.multiplyScalar(i/t)),this.radius+=i}return this}union(t){return!0===this.center.equals(t.center)?Me.set(0,0,1).multiplyScalar(t.radius):Me.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(_e.copy(t.center).add(Me)),this.expandByPoint(_e.copy(t.center).sub(Me)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Se=new ee,Te=new ee,Ae=new ee,Ee=new ee,Ce=new ee,Le=new ee,Re=new ee;class Pe{constructor(t=new ee,e=new ee(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Se)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(i).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Se.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Se.copy(this.direction).multiplyScalar(e).add(this.origin),Se.distanceToSquared(t))}distanceSqToSegment(t,e,i,n){Te.copy(t).add(e).multiplyScalar(.5),Ae.copy(e).sub(t).normalize(),Ee.copy(this.origin).sub(Te);const r=.5*t.distanceTo(e),s=-this.direction.dot(Ae),a=Ee.dot(this.direction),o=-Ee.dot(Ae),l=Ee.lengthSq(),c=Math.abs(1-s*s);let h,u,d,p;if(c>0){if(h=s*o-a,u=s*a-o,p=r*c,h>=0){if(u>=-p){if(u<=p){const t=1/c;h*=t,u*=t,d=h*(h+s*u+2*a)+u*(s*h+u+2*o)+l}else u=r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;}else u=-r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;}else u<=-p?(h=Math.max(0,-(-s*r+a)),u=h>0?-r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l):u<=p?(h=0,u=Math.min(Math.max(-r,-o),r),d=u*(u+2*o)+l):(h=Math.max(0,-(s*r+a)),u=h>0?r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l);}else u=s>0?-r:r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;return i&&i.copy(this.direction).multiplyScalar(h).add(this.origin),n&&n.copy(Ae).multiplyScalar(u).add(Te),d}intersectSphere(t,e){Se.subVectors(t.center,this.origin);const i=Se.dot(this.direction),n=Se.dot(Se)-i*i,r=t.radius*t.radius;if(n>r)return null;const s=Math.sqrt(r-n),a=i-s,o=i+s;return a<0&&o<0?null:a<0?this.at(o,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}intersectPlane(t,e){const i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let i,n,r,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,u=this.origin;return l>=0?(i=(t.min.x-u.x)*l,n=(t.max.x-u.x)*l):(i=(t.max.x-u.x)*l,n=(t.min.x-u.x)*l),c>=0?(r=(t.min.y-u.y)*c,s=(t.max.y-u.y)*c):(r=(t.max.y-u.y)*c,s=(t.min.y-u.y)*c),i>s||r>n?null:((r>i||i!=i)&&(i=r),(s<n||n!=n)&&(n=s),h>=0?(a=(t.min.z-u.z)*h,o=(t.max.z-u.z)*h):(a=(t.max.z-u.z)*h,o=(t.min.z-u.z)*h),i>o||a>n?null:((a>i||i!=i)&&(i=a),(o<n||n!=n)&&(n=o),n<0?null:this.at(i>=0?i:n,e)))}intersectsBox(t){return null!==this.intersectBox(t,Se)}intersectTriangle(t,e,i,n,r){Ce.subVectors(e,t),Le.subVectors(i,t),Re.crossVectors(Ce,Le);let s,a=this.direction.dot(Re);if(a>0){if(n)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Ee.subVectors(this.origin,t);const o=s*this.direction.dot(Le.crossVectors(Ee,Le));if(o<0)return null;const l=s*this.direction.dot(Ce.cross(Ee));if(l<0)return null;if(o+l>a)return null;const c=-s*Ee.dot(Re);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ie{constructor(){Ie.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,i,n,r,s,a,o,l,c,h,u,d,p,m,f){const g=this.elements;return g[0]=t,g[4]=e,g[8]=i,g[12]=n,g[1]=r,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=h,g[14]=u,g[3]=d,g[7]=p,g[11]=m,g[15]=f,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ie().fromArray(this.elements)}copy(t){const e=this.elements,i=t.elements;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this}copyPosition(t){const e=this.elements,i=t.elements;return e[12]=i[12],e[13]=i[13],e[14]=i[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,i){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,e,i){return this.set(t.x,e.x,i.x,0,t.y,e.y,i.y,0,t.z,e.z,i.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,i=t.elements,n=1/De.setFromMatrixColumn(t,0).length(),r=1/De.setFromMatrixColumn(t,1).length(),s=1/De.setFromMatrixColumn(t,2).length();return e[0]=i[0]*n,e[1]=i[1]*n,e[2]=i[2]*n,e[3]=0,e[4]=i[4]*r,e[5]=i[5]*r,e[6]=i[6]*r,e[7]=0,e[8]=i[8]*s,e[9]=i[9]*s,e[10]=i[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,i=t.x,n=t.y,r=t.z,s=Math.cos(i),a=Math.sin(i),o=Math.cos(n),l=Math.sin(n),c=Math.cos(r),h=Math.sin(r);if("XYZ"===t.order){const t=s*c,i=s*h,n=a*c,r=a*h;e[0]=o*c,e[4]=-o*h,e[8]=l,e[1]=i+n*l,e[5]=t-r*l,e[9]=-a*o,e[2]=r-t*l,e[6]=n+i*l,e[10]=s*o}else if("YXZ"===t.order){const t=o*c,i=o*h,n=l*c,r=l*h;e[0]=t+r*a,e[4]=n*a-i,e[8]=s*l,e[1]=s*h,e[5]=s*c,e[9]=-a,e[2]=i*a-n,e[6]=r+t*a,e[10]=s*o}else if("ZXY"===t.order){const t=o*c,i=o*h,n=l*c,r=l*h;e[0]=t-r*a,e[4]=-s*h,e[8]=n+i*a,e[1]=i+n*a,e[5]=s*c,e[9]=r-t*a,e[2]=-s*l,e[6]=a,e[10]=s*o}else if("ZYX"===t.order){const t=s*c,i=s*h,n=a*c,r=a*h;e[0]=o*c,e[4]=n*l-i,e[8]=t*l+r,e[1]=o*h,e[5]=r*l+t,e[9]=i*l-n,e[2]=-l,e[6]=a*o,e[10]=s*o}else if("YZX"===t.order){const t=s*o,i=s*l,n=a*o,r=a*l;e[0]=o*c,e[4]=r-t*h,e[8]=n*h+i,e[1]=h,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=i*h+n,e[10]=t-r*h}else if("XZY"===t.order){const t=s*o,i=s*l,n=a*o,r=a*l;e[0]=o*c,e[4]=-h,e[8]=l*c,e[1]=t*h+r,e[5]=s*c,e[9]=i*h-n,e[2]=n*h-i,e[6]=a*c,e[10]=r*h+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Oe,t,ze)}lookAt(t,e,i){const n=this.elements;return Ue.subVectors(t,e),0===Ue.lengthSq()&&(Ue.z=1),Ue.normalize(),Fe.crossVectors(i,Ue),0===Fe.lengthSq()&&(1===Math.abs(i.z)?Ue.x+=1e-4:Ue.z+=1e-4,Ue.normalize(),Fe.crossVectors(i,Ue)),Fe.normalize(),Be.crossVectors(Ue,Fe),n[0]=Fe.x,n[4]=Be.x,n[8]=Ue.x,n[1]=Fe.y,n[5]=Be.y,n[9]=Ue.y,n[2]=Fe.z,n[6]=Be.z,n[10]=Ue.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const i=t.elements,n=e.elements,r=this.elements,s=i[0],a=i[4],o=i[8],l=i[12],c=i[1],h=i[5],u=i[9],d=i[13],p=i[2],m=i[6],f=i[10],g=i[14],v=i[3],x=i[7],y=i[11],_=i[15],M=n[0],b=n[4],w=n[8],S=n[12],T=n[1],A=n[5],E=n[9],C=n[13],L=n[2],R=n[6],P=n[10],I=n[14],D=n[3],N=n[7],O=n[11],z=n[15];return r[0]=s*M+a*T+o*L+l*D,r[4]=s*b+a*A+o*R+l*N,r[8]=s*w+a*E+o*P+l*O,r[12]=s*S+a*C+o*I+l*z,r[1]=c*M+h*T+u*L+d*D,r[5]=c*b+h*A+u*R+d*N,r[9]=c*w+h*E+u*P+d*O,r[13]=c*S+h*C+u*I+d*z,r[2]=p*M+m*T+f*L+g*D,r[6]=p*b+m*A+f*R+g*N,r[10]=p*w+m*E+f*P+g*O,r[14]=p*S+m*C+f*I+g*z,r[3]=v*M+x*T+y*L+_*D,r[7]=v*b+x*A+y*R+_*N,r[11]=v*w+x*E+y*P+_*O,r[15]=v*S+x*C+y*I+_*z,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],i=t[4],n=t[8],r=t[12],s=t[1],a=t[5],o=t[9],l=t[13],c=t[2],h=t[6],u=t[10],d=t[14];return t[3]*(+r*o*h-n*l*h-r*a*u+i*l*u+n*a*d-i*o*d)+t[7]*(+e*o*d-e*l*u+r*s*u-n*s*d+n*l*c-r*o*c)+t[11]*(+e*l*h-e*a*d-r*s*h+i*s*d+r*a*c-i*l*c)+t[15]*(-n*a*c-e*o*h+e*a*u+n*s*h-i*s*u+i*o*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,i){const n=this.elements;return t.isVector3?(n[12]=t.x,n[13]=t.y,n[14]=t.z):(n[12]=t,n[13]=e,n[14]=i),this}invert(){const t=this.elements,e=t[0],i=t[1],n=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11],p=t[12],m=t[13],f=t[14],g=t[15],v=h*f*l-m*u*l+m*o*d-a*f*d-h*o*g+a*u*g,x=p*u*l-c*f*l-p*o*d+s*f*d+c*o*g-s*u*g,y=c*m*l-p*h*l+p*a*d-s*m*d-c*a*g+s*h*g,_=p*h*o-c*m*o-p*a*u+s*m*u+c*a*f-s*h*f,M=e*v+i*x+n*y+r*_;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/M;return t[0]=v*b,t[1]=(m*u*r-h*f*r-m*n*d+i*f*d+h*n*g-i*u*g)*b,t[2]=(a*f*r-m*o*r+m*n*l-i*f*l-a*n*g+i*o*g)*b,t[3]=(h*o*r-a*u*r-h*n*l+i*u*l+a*n*d-i*o*d)*b,t[4]=x*b,t[5]=(c*f*r-p*u*r+p*n*d-e*f*d-c*n*g+e*u*g)*b,t[6]=(p*o*r-s*f*r-p*n*l+e*f*l+s*n*g-e*o*g)*b,t[7]=(s*u*r-c*o*r+c*n*l-e*u*l-s*n*d+e*o*d)*b,t[8]=y*b,t[9]=(p*h*r-c*m*r-p*i*d+e*m*d+c*i*g-e*h*g)*b,t[10]=(s*m*r-p*a*r+p*i*l-e*m*l-s*i*g+e*a*g)*b,t[11]=(c*a*r-s*h*r-c*i*l+e*h*l+s*i*d-e*a*d)*b,t[12]=_*b,t[13]=(c*m*n-p*h*n+p*i*u-e*m*u-c*i*f+e*h*f)*b,t[14]=(p*a*n-s*m*n-p*i*o+e*m*o+s*i*f-e*a*f)*b,t[15]=(s*h*n-c*a*n+c*i*o-e*h*o-s*i*u+e*a*u)*b,this}scale(t){const e=this.elements,i=t.x,n=t.y,r=t.z;return e[0]*=i,e[4]*=n,e[8]*=r,e[1]*=i,e[5]*=n,e[9]*=r,e[2]*=i,e[6]*=n,e[10]*=r,e[3]*=i,e[7]*=n,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],n=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,n))}makeTranslation(t,e,i){return this.set(1,0,0,t,0,1,0,e,0,0,1,i,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,e,-i,0,0,i,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,0,i,0,0,1,0,0,-i,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),i=Math.sin(t);return this.set(e,-i,0,0,i,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const i=Math.cos(e),n=Math.sin(e),r=1-i,s=t.x,a=t.y,o=t.z,l=r*s,c=r*a;return this.set(l*s+i,l*a-n*o,l*o+n*a,0,l*a+n*o,c*a+i,c*o-n*s,0,l*o-n*a,c*o+n*s,r*o*o+i,0,0,0,0,1),this}makeScale(t,e,i){return this.set(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,e,i,n,r,s){return this.set(1,i,r,0,t,1,s,0,e,n,1,0,0,0,0,1),this}compose(t,e,i){const n=this.elements,r=e._x,s=e._y,a=e._z,o=e._w,l=r+r,c=s+s,h=a+a,u=r*l,d=r*c,p=r*h,m=s*c,f=s*h,g=a*h,v=o*l,x=o*c,y=o*h,_=i.x,M=i.y,b=i.z;return n[0]=(1-(m+g))*_,n[1]=(d+y)*_,n[2]=(p-x)*_,n[3]=0,n[4]=(d-y)*M,n[5]=(1-(u+g))*M,n[6]=(f+v)*M,n[7]=0,n[8]=(p+x)*b,n[9]=(f-v)*b,n[10]=(1-(u+m))*b,n[11]=0,n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=1,this}decompose(t,e,i){const n=this.elements;let r=De.set(n[0],n[1],n[2]).length();const s=De.set(n[4],n[5],n[6]).length(),a=De.set(n[8],n[9],n[10]).length();this.determinant()<0&&(r=-r),t.x=n[12],t.y=n[13],t.z=n[14],Ne.copy(this);const o=1/r,l=1/s,c=1/a;return Ne.elements[0]*=o,Ne.elements[1]*=o,Ne.elements[2]*=o,Ne.elements[4]*=l,Ne.elements[5]*=l,Ne.elements[6]*=l,Ne.elements[8]*=c,Ne.elements[9]*=c,Ne.elements[10]*=c,e.setFromRotationMatrix(Ne),i.x=r,i.y=s,i.z=a,this}makePerspective(t,e,i,n,r,s){void 0===s&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,o=2*r/(e-t),l=2*r/(i-n),c=(e+t)/(e-t),h=(i+n)/(i-n),u=-(s+r)/(s-r),d=-2*s*r/(s-r);return a[0]=o,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=h,a[13]=0,a[2]=0,a[6]=0,a[10]=u,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,i,n,r,s){const a=this.elements,o=1/(e-t),l=1/(i-n),c=1/(s-r),h=(e+t)*o,u=(i+n)*l,d=(s+r)*c;return a[0]=2*o,a[4]=0,a[8]=0,a[12]=-h,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-u,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,i=t.elements;for(let t=0;t<16;t++)if(e[t]!==i[t])return!1;return!0}fromArray(t,e=0){for(let i=0;i<16;i++)this.elements[i]=t[i+e];return this}toArray(t=[],e=0){const i=this.elements;return t[e]=i[0],t[e+1]=i[1],t[e+2]=i[2],t[e+3]=i[3],t[e+4]=i[4],t[e+5]=i[5],t[e+6]=i[6],t[e+7]=i[7],t[e+8]=i[8],t[e+9]=i[9],t[e+10]=i[10],t[e+11]=i[11],t[e+12]=i[12],t[e+13]=i[13],t[e+14]=i[14],t[e+15]=i[15],t}}const De=new ee,Ne=new Ie,Oe=new ee(0,0,0),ze=new ee(1,1,1),Fe=new ee,Be=new ee,Ue=new ee,ke=new Ie,Ge=new te;class Ve{constructor(t=0,e=0,i=0,n=Ve.DefaultOrder){this.isEuler=!0,this._x=t,this._y=e,this._z=i,this._order=n}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,i,n=this._order){return this._x=t,this._y=e,this._z=i,this._order=n,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,i=!0){const n=t.elements,r=n[0],s=n[4],a=n[8],o=n[1],l=n[5],c=n[9],h=n[2],u=n[6],d=n[10];switch(e){case"XYZ":this._y=Math.asin(_t(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,r)):(this._x=Math.atan2(u,l),this._z=0);break;case"YXZ":this._x=Math.asin(-_t(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(_t(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-_t(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(u,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(_t(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-_t(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(u,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e);}return this._order=e,!0===i&&this._onChangeCallback(),this}setFromQuaternion(t,e,i){return ke.makeRotationFromQuaternion(t),this.setFromRotationMatrix(ke,e,i)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return Ge.setFromEuler(this),this.setFromQuaternion(Ge,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}toVector3(){console.error("THREE.Euler: .toVector3() has been removed. Use Vector3.setFromEuler() instead")}}Ve.DefaultOrder="XYZ",Ve.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class He{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!=(this.mask&t.mask)}isEnabled(t){return 0!=(this.mask&(1<<t|0))}}let We=0;const je=new ee,qe=new te,Xe=new Ie,Ye=new ee,Ze=new ee,Je=new ee,Ke=new te,Qe=new ee(1,0,0),$e=new ee(0,1,0),ti=new ee(0,0,1),ei={type:"added"},ii={type:"removed"};class ni extends mt{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:We++}),this.uuid=yt(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=ni.DefaultUp.clone();const t=new ee,e=new Ve,i=new te,n=new ee(1,1,1);e._onChange(function(){i.setFromEuler(e,!1)}),i._onChange(function(){e.setFromQuaternion(i,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:n},modelViewMatrix:{value:new Ie},normalMatrix:{value:new Ct}}),this.matrix=new Ie,this.matrixWorld=new Ie,this.matrixAutoUpdate=ni.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new He,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return qe.setFromAxisAngle(t,e),this.quaternion.multiply(qe),this}rotateOnWorldAxis(t,e){return qe.setFromAxisAngle(t,e),this.quaternion.premultiply(qe),this}rotateX(t){return this.rotateOnAxis(Qe,t)}rotateY(t){return this.rotateOnAxis($e,t)}rotateZ(t){return this.rotateOnAxis(ti,t)}translateOnAxis(t,e){return je.copy(t).applyQuaternion(this.quaternion),this.position.add(je.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(Qe,t)}translateY(t){return this.translateOnAxis($e,t)}translateZ(t){return this.translateOnAxis(ti,t)}localToWorld(t){return t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return t.applyMatrix4(Xe.copy(this.matrixWorld).invert())}lookAt(t,e,i){t.isVector3?Ye.copy(t):Ye.set(t,e,i);const n=this.parent;this.updateWorldMatrix(!0,!1),Ze.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Xe.lookAt(Ze,Ye,this.up):Xe.lookAt(Ye,Ze,this.up),this.quaternion.setFromRotationMatrix(Xe),n&&(Xe.extractRotation(n.matrixWorld),qe.setFromRotationMatrix(Xe),this.quaternion.premultiply(qe.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(ei)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(ii)),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(ii)}return this.children.length=0,this}attach(t){return this.updateWorldMatrix(!0,!1),Xe.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),Xe.multiply(t.parent.matrixWorld)),t.applyMatrix4(Xe),this.add(t),t.updateWorldMatrix(!1,!0),this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let i=0,n=this.children.length;i<n;i++){const n=this.children[i].getObjectByProperty(t,e);if(void 0!==n)return n}}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ze,t,Je),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ze,Ke,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].traverseVisible(t)}traverseAncestors(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let i=0,n=e.length;i<n;i++)e[i].updateMatrixWorld(t)}updateWorldMatrix(t,e){const i=this.parent;if(!0===t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,i=t.length;e<i;e++)t[e].updateWorldMatrix(!1,!0)}}toJSON(t){const e=void 0===t||"string"==typeof t,i={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const n={};function r(e,i){return void 0===e[i.uuid]&&(e[i.uuid]=i.toJSON(t)),i.uuid}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),!0===this.castShadow&&(n.castShadow=!0),!0===this.receiveShadow&&(n.receiveShadow=!0),!1===this.visible&&(n.visible=!1),!1===this.frustumCulled&&(n.frustumCulled=!1),0!==this.renderOrder&&(n.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),n.layers=this.layers.mask,n.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(n.matrixAutoUpdate=!1),this.isInstancedMesh&&(n.type="InstancedMesh",n.count=this.count,n.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(n.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?n.background=this.background.toJSON():this.background.isTexture&&(n.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&(n.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){n.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const i=e.shapes;if(Array.isArray(i))for(let e=0,n=i.length;e<n;e++){const n=i[e];r(t.shapes,n)}else r(t.shapes,i)}}if(this.isSkinnedMesh&&(n.bindMode=this.bindMode,n.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),n.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let i=0,n=this.material.length;i<n;i++)e.push(r(t.materials,this.material[i]));n.material=e}else n.material=r(t.materials,this.material);if(this.children.length>0){n.children=[];for(let e=0;e<this.children.length;e++)n.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){n.animations=[];for(let e=0;e<this.animations.length;e++){const i=this.animations[e];n.animations.push(r(t.animations,i))}}if(e){const e=s(t.geometries),n=s(t.materials),r=s(t.textures),a=s(t.images),o=s(t.shapes),l=s(t.skeletons),c=s(t.animations),h=s(t.nodes);e.length>0&&(i.geometries=e),n.length>0&&(i.materials=n),r.length>0&&(i.textures=r),a.length>0&&(i.images=a),o.length>0&&(i.shapes=o),l.length>0&&(i.skeletons=l),c.length>0&&(i.animations=c),h.length>0&&(i.nodes=h)}return i.object=n,i;function s(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e<t.children.length;e++){const i=t.children[e];this.add(i.clone())}return this}}ni.DefaultUp=new ee(0,1,0),ni.DefaultMatrixAutoUpdate=!0;const ri=new ee,si=new ee,ai=new ee,oi=new ee,li=new ee,ci=new ee,hi=new ee,ui=new ee,di=new ee,pi=new ee;class mi{constructor(t=new ee,e=new ee,i=new ee){this.a=t,this.b=e,this.c=i}static getNormal(t,e,i,n){n.subVectors(i,e),ri.subVectors(t,e),n.cross(ri);const r=n.lengthSq();return r>0?n.multiplyScalar(1/Math.sqrt(r)):n.set(0,0,0)}static getBarycoord(t,e,i,n,r){ri.subVectors(n,e),si.subVectors(i,e),ai.subVectors(t,e);const s=ri.dot(ri),a=ri.dot(si),o=ri.dot(ai),l=si.dot(si),c=si.dot(ai),h=s*l-a*a;if(0===h)return r.set(-2,-1,-1);const u=1/h,d=(l*o-a*c)*u,p=(s*c-a*o)*u;return r.set(1-d-p,p,d)}static containsPoint(t,e,i,n){return this.getBarycoord(t,e,i,n,oi),oi.x>=0&&oi.y>=0&&oi.x+oi.y<=1}static getUV(t,e,i,n,r,s,a,o){return this.getBarycoord(t,e,i,n,oi),o.set(0,0),o.addScaledVector(r,oi.x),o.addScaledVector(s,oi.y),o.addScaledVector(a,oi.z),o}static isFrontFacing(t,e,i,n){return ri.subVectors(i,e),si.subVectors(t,e),ri.cross(si).dot(n)<0}set(t,e,i){return this.a.copy(t),this.b.copy(e),this.c.copy(i),this}setFromPointsAndIndices(t,e,i,n){return this.a.copy(t[e]),this.b.copy(t[i]),this.c.copy(t[n]),this}setFromAttributeAndIndices(t,e,i,n){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,i),this.c.fromBufferAttribute(t,n),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return ri.subVectors(this.c,this.b),si.subVectors(this.a,this.b),.5*ri.cross(si).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return mi.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return mi.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,i,n,r){return mi.getUV(t,this.a,this.b,this.c,e,i,n,r)}containsPoint(t){return mi.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return mi.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const i=this.a,n=this.b,r=this.c;let s,a;li.subVectors(n,i),ci.subVectors(r,i),ui.subVectors(t,i);const o=li.dot(ui),l=ci.dot(ui);if(o<=0&&l<=0)return e.copy(i);di.subVectors(t,n);const c=li.dot(di),h=ci.dot(di);if(c>=0&&h<=c)return e.copy(n);const u=o*h-c*l;if(u<=0&&o>=0&&c<=0)return s=o/(o-c),e.copy(i).addScaledVector(li,s);pi.subVectors(t,r);const d=li.dot(pi),p=ci.dot(pi);if(p>=0&&d<=p)return e.copy(r);const m=d*l-o*p;if(m<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(i).addScaledVector(ci,a);const f=c*p-d*h;if(f<=0&&h-c>=0&&d-p>=0)return hi.subVectors(r,n),a=(h-c)/(h-c+(d-p)),e.copy(n).addScaledVector(hi,a);const g=1/(f+m+u);return s=m*g,a=u*g,e.copy(i).addScaledVector(li,s).addScaledVector(ci,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let fi=0;class gi extends mt{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:fi++}),this.uuid=yt(),this.name="",this.type="Material",this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=i,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=ht,this.stencilZFail=ht,this.stencilZPass=ht,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const i=t[e];if(void 0===i){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=1===i;continue}const n=this[e];void 0!==n?n&&n.isColor?n.set(i):n&&n.isVector3&&i&&i.isVector3?n.copy(i):this[e]=i:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const i={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function n(t){const e=[];for(const i in t){const n=t[i];delete n.metadata,e.push(n)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(i.blending=this.blending),0!==this.side&&(i.side=this.side),this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=this.transparent),i.depthFunc=this.depthFunc,i.depthTest=this.depthTest,i.depthWrite=this.depthWrite,i.colorWrite=this.colorWrite,i.stencilWrite=this.stencilWrite,i.stencilWriteMask=this.stencilWriteMask,i.stencilFunc=this.stencilFunc,i.stencilRef=this.stencilRef,i.stencilFuncMask=this.stencilFuncMask,i.stencilFail=this.stencilFail,i.stencilZFail=this.stencilZFail,i.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(i.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(i.wireframe=this.wireframe),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=this.flatShading),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),e){const e=n(t.textures),r=n(t.images);e.length>0&&(i.textures=e),r.length>0&&(i.images=r)}return i}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let i=null;if(null!==e){const t=e.length;i=new Array(t);for(let n=0;n!==t;++n)i[n]=e[n].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}class vi extends gi{constructor(t){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ht(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}const xi=new ee,yi=new Et;class _i{constructor(t,e,i){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===i,this.usage=ut,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this}copyAt(t,e,i){t*=this.itemSize,i*=e.itemSize;for(let n=0,r=this.itemSize;n<r;n++)this.array[t+n]=e.array[i+n];return this}copyArray(t){return this.array.set(t),this}copyColorsArray(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",n),r=new Ht),e[i++]=r.r,e[i++]=r.g,e[i++]=r.b}return this}copyVector2sArray(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",n),r=new Et),e[i++]=r.x,e[i++]=r.y}return this}copyVector3sArray(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",n),r=new ee),e[i++]=r.x,e[i++]=r.y,e[i++]=r.z}return this}copyVector4sArray(t){const e=this.array;let i=0;for(let n=0,r=t.length;n<r;n++){let r=t[n];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",n),r=new Jt),e[i++]=r.x,e[i++]=r.y,e[i++]=r.z,e[i++]=r.w}return this}applyMatrix3(t){if(2===this.itemSize)for(let e=0,i=this.count;e<i;e++)yi.fromBufferAttribute(this,e),yi.applyMatrix3(t),this.setXY(e,yi.x,yi.y);else if(3===this.itemSize)for(let e=0,i=this.count;e<i;e++)xi.fromBufferAttribute(this,e),xi.applyMatrix3(t),this.setXYZ(e,xi.x,xi.y,xi.z);return this}applyMatrix4(t){for(let e=0,i=this.count;e<i;e++)xi.fromBufferAttribute(this,e),xi.applyMatrix4(t),this.setXYZ(e,xi.x,xi.y,xi.z);return this}applyNormalMatrix(t){for(let e=0,i=this.count;e<i;e++)xi.fromBufferAttribute(this,e),xi.applyNormalMatrix(t),this.setXYZ(e,xi.x,xi.y,xi.z);return this}transformDirection(t){for(let e=0,i=this.count;e<i;e++)xi.fromBufferAttribute(this,e),xi.transformDirection(t),this.setXYZ(e,xi.x,xi.y,xi.z);return this}set(t,e=0){return this.array.set(t,e),this}getX(t){return this.array[t*this.itemSize]}setX(t,e){return this.array[t*this.itemSize]=e,this}getY(t){return this.array[t*this.itemSize+1]}setY(t,e){return this.array[t*this.itemSize+1]=e,this}getZ(t){return this.array[t*this.itemSize+2]}setZ(t,e){return this.array[t*this.itemSize+2]=e,this}getW(t){return this.array[t*this.itemSize+3]}setW(t,e){return this.array[t*this.itemSize+3]=e,this}setXY(t,e,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this}setXYZ(t,e,i,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this}setXYZW(t,e,i,n,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=n,this.array[t+3]=r,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==ut&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}class Mi extends _i{constructor(t,e,i){super(new Uint16Array(t),e,i)}}class bi extends _i{constructor(t,e,i){super(new Uint32Array(t),e,i)}}class wi extends _i{constructor(t,e,i){super(new Float32Array(t),e,i)}}let Si=0;const Ti=new Ie,Ai=new ni,Ei=new ee,Ci=new re,Li=new re,Ri=new ee;class Pi extends mt{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Si++}),this.uuid=yt(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(Lt(t)?bi:Mi)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return void 0!==this.attributes[t]}addGroup(t,e,i=0){this.groups.push({start:t,count:e,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const i=this.attributes.normal;if(void 0!==i){const e=new Ct().getNormalMatrix(t);i.applyNormalMatrix(e),i.needsUpdate=!0}const n=this.attributes.tangent;return void 0!==n&&(n.transformDirection(t),n.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(t){return Ti.makeRotationFromQuaternion(t),this.applyMatrix4(Ti),this}rotateX(t){return Ti.makeRotationX(t),this.applyMatrix4(Ti),this}rotateY(t){return Ti.makeRotationY(t),this.applyMatrix4(Ti),this}rotateZ(t){return Ti.makeRotationZ(t),this.applyMatrix4(Ti),this}translate(t,e,i){return Ti.makeTranslation(t,e,i),this.applyMatrix4(Ti),this}scale(t,e,i){return Ti.makeScale(t,e,i),this.applyMatrix4(Ti),this}lookAt(t){return Ai.lookAt(t),Ai.updateMatrix(),this.applyMatrix4(Ai.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Ei).negate(),this.translate(Ei.x,Ei.y,Ei.z),this}setFromPoints(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i];e.push(n.x,n.y,n.z||0)}return this.setAttribute("position",new wi(e,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new re);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set \"mesh.frustumCulled\" to \"false\".",this),void this.boundingBox.set(new ee(-1/0,-1/0,-1/0),new ee(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let t=0,i=e.length;t<i;t++){const i=e[t];Ci.setFromBufferAttribute(i),this.morphTargetsRelative?(Ri.addVectors(this.boundingBox.min,Ci.min),this.boundingBox.expandByPoint(Ri),Ri.addVectors(this.boundingBox.max,Ci.max),this.boundingBox.expandByPoint(Ri)):(this.boundingBox.expandByPoint(Ci.min),this.boundingBox.expandByPoint(Ci.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(){null===this.boundingSphere&&(this.boundingSphere=new we);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set \"mesh.frustumCulled\" to \"false\".",this),void this.boundingSphere.set(new ee,1/0);if(t){const i=this.boundingSphere.center;if(Ci.setFromBufferAttribute(t),e)for(let t=0,i=e.length;t<i;t++){const i=e[t];Li.setFromBufferAttribute(i),this.morphTargetsRelative?(Ri.addVectors(Ci.min,Li.min),Ci.expandByPoint(Ri),Ri.addVectors(Ci.max,Li.max),Ci.expandByPoint(Ri)):(Ci.expandByPoint(Li.min),Ci.expandByPoint(Li.max))}Ci.getCenter(i);let n=0;for(let e=0,r=t.count;e<r;e++)Ri.fromBufferAttribute(t,e),n=Math.max(n,i.distanceToSquared(Ri));if(e)for(let r=0,s=e.length;r<s;r++){const s=e[r],a=this.morphTargetsRelative;for(let e=0,r=s.count;e<r;e++)Ri.fromBufferAttribute(s,e),a&&(Ei.fromBufferAttribute(t,e),Ri.add(Ei)),n=Math.max(n,i.distanceToSquared(Ri))}this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error("THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.",this)}}computeTangents(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const i=t.array,n=e.position.array,r=e.normal.array,s=e.uv.array,a=n.length/3;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new _i(new Float32Array(4*a),4));const o=this.getAttribute("tangent").array,l=[],c=[];for(let t=0;t<a;t++)l[t]=new ee,c[t]=new ee;const h=new ee,u=new ee,d=new ee,p=new Et,m=new Et,f=new Et,g=new ee,v=new ee;function x(t,e,i){h.fromArray(n,3*t),u.fromArray(n,3*e),d.fromArray(n,3*i),p.fromArray(s,2*t),m.fromArray(s,2*e),f.fromArray(s,2*i),u.sub(h),d.sub(h),m.sub(p),f.sub(p);const r=1/(m.x*f.y-f.x*m.y);isFinite(r)&&(g.copy(u).multiplyScalar(f.y).addScaledVector(d,-m.y).multiplyScalar(r),v.copy(d).multiplyScalar(m.x).addScaledVector(u,-f.x).multiplyScalar(r),l[t].add(g),l[e].add(g),l[i].add(g),c[t].add(v),c[e].add(v),c[i].add(v))}let y=this.groups;0===y.length&&(y=[{start:0,count:i.length}]);for(let t=0,e=y.length;t<e;++t){const e=y[t],n=e.start;for(let t=n,r=n+e.count;t<r;t+=3)x(i[t+0],i[t+1],i[t+2])}const _=new ee,M=new ee,b=new ee,w=new ee;function S(t){b.fromArray(r,3*t),w.copy(b);const e=l[t];_.copy(e),_.sub(b.multiplyScalar(b.dot(e))).normalize(),M.crossVectors(w,e);const i=M.dot(c[t])<0?-1:1;o[4*t]=_.x,o[4*t+1]=_.y,o[4*t+2]=_.z,o[4*t+3]=i}for(let t=0,e=y.length;t<e;++t){const e=y[t],n=e.start;for(let t=n,r=n+e.count;t<r;t+=3)S(i[t+0]),S(i[t+1]),S(i[t+2])}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let i=this.getAttribute("normal");if(void 0===i)i=new _i(new Float32Array(3*e.count),3),this.setAttribute("normal",i);else for(let t=0,e=i.count;t<e;t++)i.setXYZ(t,0,0,0);const n=new ee,r=new ee,s=new ee,a=new ee,o=new ee,l=new ee,c=new ee,h=new ee;if(t)for(let u=0,d=t.count;u<d;u+=3){const d=t.getX(u+0),p=t.getX(u+1),m=t.getX(u+2);n.fromBufferAttribute(e,d),r.fromBufferAttribute(e,p),s.fromBufferAttribute(e,m),c.subVectors(s,r),h.subVectors(n,r),c.cross(h),a.fromBufferAttribute(i,d),o.fromBufferAttribute(i,p),l.fromBufferAttribute(i,m),a.add(c),o.add(c),l.add(c),i.setXYZ(d,a.x,a.y,a.z),i.setXYZ(p,o.x,o.y,o.z),i.setXYZ(m,l.x,l.y,l.z)}else for(let t=0,a=e.count;t<a;t+=3)n.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),s.fromBufferAttribute(e,t+2),c.subVectors(s,r),h.subVectors(n,r),c.cross(h),i.setXYZ(t+0,c.x,c.y,c.z),i.setXYZ(t+1,c.x,c.y,c.z),i.setXYZ(t+2,c.x,c.y,c.z);this.normalizeNormals(),i.needsUpdate=!0}}merge(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const i=this.attributes;for(const n in i){if(void 0===t.attributes[n])continue;const r=i[n].array,s=t.attributes[n],a=s.array,o=s.itemSize*e,l=Math.min(a.length,r.length-o);for(let t=0,e=o;t<l;t++,e++)r[e]=a[t]}return this}normalizeNormals(){const t=this.attributes.normal;for(let e=0,i=t.count;e<i;e++)Ri.fromBufferAttribute(t,e),Ri.normalize(),t.setXYZ(e,Ri.x,Ri.y,Ri.z)}toNonIndexed(){function t(t,e){const i=t.array,n=t.itemSize,r=t.normalized,s=new i.constructor(e.length*n);let a=0,o=0;for(let r=0,l=e.length;r<l;r++){a=t.isInterleavedBufferAttribute?e[r]*t.data.stride+t.offset:e[r]*n;for(let t=0;t<n;t++)s[o++]=i[a++]}return new _i(s,n,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new Pi,i=this.index.array,n=this.attributes;for(const r in n){const s=t(n[r],i);e.setAttribute(r,s)}const r=this.morphAttributes;for(const n in r){const s=[],a=r[n];for(let e=0,n=a.length;e<n;e++){const n=t(a[e],i);s.push(n)}e.morphAttributes[n]=s}e.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let t=0,i=s.length;t<i;t++){const i=s[t];e.addGroup(i.start,i.count,i.materialIndex)}return e}toJSON(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const i=this.attributes;for(const e in i){const n=i[e];t.data.attributes[e]=n.toJSON(t.data)}const n={};let r=!1;for(const e in this.morphAttributes){const i=this.morphAttributes[e],s=[];for(let e=0,n=i.length;e<n;e++){const n=i[e];s.push(n.toJSON(t.data))}s.length>0&&(n[e]=s,r=!0)}r&&(t.data.morphAttributes=n,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const i=t.index;null!==i&&this.setIndex(i.clone(e));const n=t.attributes;for(const t in n){const i=n[t];this.setAttribute(t,i.clone(e))}const r=t.morphAttributes;for(const t in r){const i=[],n=r[t];for(let t=0,r=n.length;t<r;t++)i.push(n[t].clone(e));this.morphAttributes[t]=i}this.morphTargetsRelative=t.morphTargetsRelative;const s=t.groups;for(let t=0,e=s.length;t<e;t++){const e=s[t];this.addGroup(e.start,e.count,e.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const o=t.boundingSphere;return null!==o&&(this.boundingSphere=o.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,void 0!==t.parameters&&(this.parameters=Object.assign({},t.parameters)),this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ii=new Ie,Di=new Pe,Ni=new we,Oi=new ee,zi=new ee,Fi=new ee,Bi=new ee,Ui=new ee,ki=new ee,Gi=new ee,Vi=new ee,Hi=new ee,Wi=new Et,ji=new Et,qi=new Et,Xi=new ee,Yi=new ee;class Zi extends ni{constructor(t=new Pi,e=new vi){super(),this.isMesh=!0,this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=i.length;t<e;t++){const e=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[e]=t}}}}raycast(t,e){const i=this.geometry,n=this.material,r=this.matrixWorld;if(void 0===n)return;if(null===i.boundingSphere&&i.computeBoundingSphere(),Ni.copy(i.boundingSphere),Ni.applyMatrix4(r),!1===t.ray.intersectsSphere(Ni))return;if(Ii.copy(r).invert(),Di.copy(t.ray).applyMatrix4(Ii),null!==i.boundingBox&&!1===Di.intersectsBox(i.boundingBox))return;let s;const a=i.index,o=i.attributes.position,l=i.morphAttributes.position,c=i.morphTargetsRelative,h=i.attributes.uv,u=i.attributes.uv2,d=i.groups,p=i.drawRange;if(null!==a){if(Array.isArray(n))for(let i=0,r=d.length;i<r;i++){const r=d[i],m=n[r.materialIndex];for(let i=Math.max(r.start,p.start),n=Math.min(a.count,Math.min(r.start+r.count,p.start+p.count));i<n;i+=3){const n=a.getX(i),d=a.getX(i+1),p=a.getX(i+2);s=Ji(this,m,t,Di,o,l,c,h,u,n,d,p),s&&(s.faceIndex=Math.floor(i/3),s.face.materialIndex=r.materialIndex,e.push(s))}}else{for(let i=Math.max(0,p.start),r=Math.min(a.count,p.start+p.count);i<r;i+=3){const r=a.getX(i),d=a.getX(i+1),p=a.getX(i+2);s=Ji(this,n,t,Di,o,l,c,h,u,r,d,p),s&&(s.faceIndex=Math.floor(i/3),e.push(s))}}}else if(void 0!==o)if(Array.isArray(n))for(let i=0,r=d.length;i<r;i++){const r=d[i],a=n[r.materialIndex];for(let i=Math.max(r.start,p.start),n=Math.min(o.count,Math.min(r.start+r.count,p.start+p.count));i<n;i+=3){s=Ji(this,a,t,Di,o,l,c,h,u,i,i+1,i+2),s&&(s.faceIndex=Math.floor(i/3),s.face.materialIndex=r.materialIndex,e.push(s))}}else{for(let i=Math.max(0,p.start),r=Math.min(o.count,p.start+p.count);i<r;i+=3){s=Ji(this,n,t,Di,o,l,c,h,u,i,i+1,i+2),s&&(s.faceIndex=Math.floor(i/3),e.push(s))}}}}function Ji(t,e,i,n,r,s,a,o,l,c,h,u){Oi.fromBufferAttribute(r,c),zi.fromBufferAttribute(r,h),Fi.fromBufferAttribute(r,u);const d=t.morphTargetInfluences;if(s&&d){Gi.set(0,0,0),Vi.set(0,0,0),Hi.set(0,0,0);for(let t=0,e=s.length;t<e;t++){const e=d[t],i=s[t];0!==e&&(Bi.fromBufferAttribute(i,c),Ui.fromBufferAttribute(i,h),ki.fromBufferAttribute(i,u),a?(Gi.addScaledVector(Bi,e),Vi.addScaledVector(Ui,e),Hi.addScaledVector(ki,e)):(Gi.addScaledVector(Bi.sub(Oi),e),Vi.addScaledVector(Ui.sub(zi),e),Hi.addScaledVector(ki.sub(Fi),e)))}Oi.add(Gi),zi.add(Vi),Fi.add(Hi)}t.isSkinnedMesh&&(t.boneTransform(c,Oi),t.boneTransform(h,zi),t.boneTransform(u,Fi));const p=function(t,e,i,n,r,s,a,o){let l;if(l=1===e.side?n.intersectTriangle(a,s,r,!0,o):n.intersectTriangle(r,s,a,2!==e.side,o),null===l)return null;Yi.copy(o),Yi.applyMatrix4(t.matrixWorld);const c=i.ray.origin.distanceTo(Yi);return c<i.near||c>i.far?null:{distance:c,point:Yi.clone(),object:t}}(t,e,i,n,Oi,zi,Fi,Xi);if(p){o&&(Wi.fromBufferAttribute(o,c),ji.fromBufferAttribute(o,h),qi.fromBufferAttribute(o,u),p.uv=mi.getUV(Xi,Oi,zi,Fi,Wi,ji,qi,new Et)),l&&(Wi.fromBufferAttribute(l,c),ji.fromBufferAttribute(l,h),qi.fromBufferAttribute(l,u),p.uv2=mi.getUV(Xi,Oi,zi,Fi,Wi,ji,qi,new Et));const t={a:c,b:h,c:u,normal:new ee,materialIndex:0};mi.getNormal(Oi,zi,Fi,t.normal),p.face=t}return p}class Ki extends Pi{constructor(t=1,e=1,i=1,n=1,r=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:i,widthSegments:n,heightSegments:r,depthSegments:s};const a=this;n=Math.floor(n),r=Math.floor(r),s=Math.floor(s);const o=[],l=[],c=[],h=[];let u=0,d=0;function p(t,e,i,n,r,s,p,m,f,g,v){const x=s/f,y=p/g,_=s/2,M=p/2,b=m/2,w=f+1,S=g+1;let T=0,A=0;const E=new ee;for(let s=0;s<S;s++){const a=s*y-M;for(let o=0;o<w;o++){const u=o*x-_;E[t]=u*n,E[e]=a*r,E[i]=b,l.push(E.x,E.y,E.z),E[t]=0,E[e]=0,E[i]=m>0?1:-1,c.push(E.x,E.y,E.z),h.push(o/f),h.push(1-s/g),T+=1}}for(let t=0;t<g;t++)for(let e=0;e<f;e++){const i=u+e+w*t,n=u+e+w*(t+1),r=u+(e+1)+w*(t+1),s=u+(e+1)+w*t;o.push(i,n,s),o.push(n,r,s),A+=6}a.addGroup(d,A,v),d+=A,u+=T}p("z","y","x",-1,-1,i,e,t,s,r,0),p("z","y","x",1,-1,i,e,-t,s,r,1),p("x","z","y",1,1,t,i,e,n,s,2),p("x","z","y",1,-1,t,i,-e,n,s,3),p("x","y","z",1,-1,t,e,i,n,r,4),p("x","y","z",-1,-1,t,e,-i,n,r,5),this.setIndex(o),this.setAttribute("position",new wi(l,3)),this.setAttribute("normal",new wi(c,3)),this.setAttribute("uv",new wi(h,2))}static fromJSON(t){return new Ki(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}function Qi(t){const e={};for(const i in t){e[i]={};for(const n in t[i]){const r=t[i][n];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?e[i][n]=r.clone():Array.isArray(r)?e[i][n]=r.slice():e[i][n]=r}}return e}function $i(t){const e={};for(let i=0;i<t.length;i++){const n=Qi(t[i]);for(const t in n)e[t]=n[t]}return e}const tn={clone:Qi,merge:$i};class en extends gi{constructor(t){super(),this.isShaderMaterial=!0,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.fog=!1,this.lights=!1,this.clipping=!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,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}copy(t){return super.copy(t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Qi(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.fog=t.fog,this.lights=t.lights,this.clipping=t.clipping,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this}toJSON(t){const e=super.toJSON(t);e.glslVersion=this.glslVersion,e.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?e.uniforms[i]={type:"t",value:n.toJSON(t).uuid}:n&&n.isColor?e.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?e.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?e.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?e.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?e.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?e.uniforms[i]={type:"m4",value:n.toArray()}:e.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const i={};for(const t in this.extensions)!0===this.extensions[t]&&(i[t]=!0);return Object.keys(i).length>0&&(e.extensions=i),e}}class nn extends ni{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ie,this.projectionMatrix=new Ie,this.projectionMatrixInverse=new Ie}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class rn extends nn{constructor(t=50,e=1,i=.1,n=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=i,this.far=n,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*xt*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*vt*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*xt*Math.atan(Math.tan(.5*vt*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,i,n,r,s){this.aspect=t/e,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=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*vt*this.fov)/this.zoom,i=2*e,n=this.aspect*i,r=-.5*n;const s=this.view;if(null!==this.view&&this.view.enabled){const t=s.fullWidth,a=s.fullHeight;r+=s.offsetX*n/t,e-=s.offsetY*i/a,n*=s.width/t,i*=s.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+n,e,e-i,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const sn=90;class an extends ni{constructor(t,e,i){if(super(),this.type="CubeCamera",!0!==i.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=i;const n=new rn(sn,1,t,e);n.layers=this.layers,n.up.set(0,-1,0),n.lookAt(new ee(1,0,0)),this.add(n);const r=new rn(sn,1,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new ee(-1,0,0)),this.add(r);const s=new rn(sn,1,t,e);s.layers=this.layers,s.up.set(0,0,1),s.lookAt(new ee(0,1,0)),this.add(s);const a=new rn(sn,1,t,e);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new ee(0,-1,0)),this.add(a);const o=new rn(sn,1,t,e);o.layers=this.layers,o.up.set(0,-1,0),o.lookAt(new ee(0,0,1)),this.add(o);const l=new rn(sn,1,t,e);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new ee(0,0,-1)),this.add(l)}update(t,e){null===this.parent&&this.updateMatrixWorld();const i=this.renderTarget,[n,r,s,a,o,l]=this.children,c=t.getRenderTarget(),h=t.toneMapping,u=t.xr.enabled;t.toneMapping=0,t.xr.enabled=!1;const d=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,t.setRenderTarget(i,0),t.render(e,n),t.setRenderTarget(i,1),t.render(e,r),t.setRenderTarget(i,2),t.render(e,s),t.setRenderTarget(i,3),t.render(e,a),t.setRenderTarget(i,4),t.render(e,o),i.texture.generateMipmaps=d,t.setRenderTarget(i,5),t.render(e,l),t.setRenderTarget(c),t.toneMapping=h,t.xr.enabled=u,i.texture.needsPMREMUpdate=!0}}class on extends Zt{constructor(t,e,i,n,s,a,o,l,c,h){super(t=void 0!==t?t:[],e=void 0!==e?e:r,i,n,s,a,o,l,c,h),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class ln extends Kt{constructor(t,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const i={width:t,height:t,depth:1},n=[i,i,i,i,i,i];this.texture=new on(n,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:f}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},n=new Ki(5,5,5),r=new en({name:"CubemapFromEquirect",uniforms:Qi(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:1,blending:0});r.uniforms.tEquirect.value=e;const s=new Zi(n,r),a=e.minFilter;e.minFilter===v&&(e.minFilter=f);return new an(1,10,this).update(t,s),e.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(t,e,i,n){const r=t.getRenderTarget();for(let r=0;r<6;r++)t.setRenderTarget(this,r),t.clear(e,i,n);t.setRenderTarget(r)}}const cn=new ee,hn=new ee,un=new Ct;class dn{constructor(t=new ee(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,i,n){return this.normal.set(t,e,i),this.constant=n,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,i){const n=cn.subVectors(i,e).cross(hn.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){const i=t.delta(cn),n=this.normal.dot(i);if(0===n)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/n;return r<0||r>1?null:e.copy(i).multiplyScalar(r).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),i=this.distanceToPoint(t.end);return e<0&&i>0||i<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const i=e||un.getNormalMatrix(t),n=this.coplanarPoint(cn).applyMatrix4(t),r=this.normal.applyMatrix3(i).normalize();return this.constant=-n.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const pn=new we,mn=new ee;class fn{constructor(t=new dn,e=new dn,i=new dn,n=new dn,r=new dn,s=new dn){this.planes=[t,e,i,n,r,s]}set(t,e,i,n,r,s){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(i),a[3].copy(n),a[4].copy(r),a[5].copy(s),this}copy(t){const e=this.planes;for(let i=0;i<6;i++)e[i].copy(t.planes[i]);return this}setFromProjectionMatrix(t){const e=this.planes,i=t.elements,n=i[0],r=i[1],s=i[2],a=i[3],o=i[4],l=i[5],c=i[6],h=i[7],u=i[8],d=i[9],p=i[10],m=i[11],f=i[12],g=i[13],v=i[14],x=i[15];return e[0].setComponents(a-n,h-o,m-u,x-f).normalize(),e[1].setComponents(a+n,h+o,m+u,x+f).normalize(),e[2].setComponents(a+r,h+l,m+d,x+g).normalize(),e[3].setComponents(a-r,h-l,m-d,x-g).normalize(),e[4].setComponents(a-s,h-c,m-p,x-v).normalize(),e[5].setComponents(a+s,h+c,m+p,x+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),pn.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(pn)}intersectsSprite(t){return pn.center.set(0,0,0),pn.radius=.7071067811865476,pn.applyMatrix4(t.matrixWorld),this.intersectsSphere(pn)}intersectsSphere(t){const e=this.planes,i=t.center,n=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(i)<n)return!1}return!0}intersectsBox(t){const e=this.planes;for(let i=0;i<6;i++){const n=e[i];if(mn.x=n.normal.x>0?t.max.x:t.min.x,mn.y=n.normal.y>0?t.max.y:t.min.y,mn.z=n.normal.z>0?t.max.z:t.min.z,n.distanceToPoint(mn)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let i=0;i<6;i++)if(e[i].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function gn(){let t=null,e=!1,i=null,n=null;function r(e,s){i(e,s),n=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==i&&(n=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(t){i=t},setContext:function(e){t=e}}}function vn(t,e){const i=e.isWebGL2,n=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),n.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const i=n.get(e);i&&(t.deleteBuffer(i.buffer),n.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=n.get(e);return void((!t||t.version<e.version)&&n.set(e,{buffer:e.buffer,type:e.type,bytesPerElement:e.elementSize,version:e.version}))}e.isInterleavedBufferAttribute&&(e=e.data);const s=n.get(e);void 0===s?n.set(e,function(e,n){const r=e.array,s=e.usage,a=t.createBuffer();let o;if(t.bindBuffer(n,a),t.bufferData(n,r,s),e.onUploadCallback(),r instanceof Float32Array)o=5126;else if(r instanceof Uint16Array){if(e.isFloat16BufferAttribute){if(!i)throw new Error("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.");o=5131}else o=5123;}else if(r instanceof Int16Array)o=5122;else if(r instanceof Uint32Array)o=5125;else if(r instanceof Int32Array)o=5124;else if(r instanceof Int8Array)o=5120;else if(r instanceof Uint8Array)o=5121;else{if(!(r instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+r);o=5121}return{buffer:a,type:o,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version}}(e,r)):s.version<e.version&&(!function(e,n,r){const s=n.array,a=n.updateRange;t.bindBuffer(r,e),-1===a.count?t.bufferSubData(r,0,s):(i?t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s,a.offset,a.count):t.bufferSubData(r,a.offset*s.BYTES_PER_ELEMENT,s.subarray(a.offset,a.offset+a.count)),a.count=-1)}(s.buffer,e,r),s.version=e.version)}}}class xn extends Pi{constructor(t=1,e=1,i=1,n=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:i,heightSegments:n};const r=t/2,s=e/2,a=Math.floor(i),o=Math.floor(n),l=a+1,c=o+1,h=t/a,u=e/o,d=[],p=[],m=[],f=[];for(let t=0;t<c;t++){const e=t*u-s;for(let i=0;i<l;i++){const n=i*h-r;p.push(n,-e,0),m.push(0,0,1),f.push(i/a),f.push(1-t/o)}}for(let t=0;t<o;t++)for(let e=0;e<a;e++){const i=e+l*t,n=e+l*(t+1),r=e+1+l*(t+1),s=e+1+l*t;d.push(i,n,s),d.push(n,r,s)}this.setIndex(d),this.setAttribute("position",new wi(p,3)),this.setAttribute("normal",new wi(m,3)),this.setAttribute("uv",new wi(f,2))}static fromJSON(t){return new xn(t.width,t.height,t.widthSegments,t.heightSegments)}}const yn={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 USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\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.roughness );\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:"vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n\t\tfloat x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n\t\tfloat x2 = x * x;\n\t\tfloat x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n\t\treturn ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_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_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\n#ifdef USE_IRIDESCENCE\nvec3 BRDF_GGX_Iridescence( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float iridescence, const in vec3 iridescenceFresnel, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = mix(F_Schlick( f0, f90, dotVH ), iridescenceFresnel, iridescence);\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\n#endif\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}\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_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",iridescence_fragment:"#ifdef USE_IRIDESCENCE\nconst mat3 XYZ_TO_REC709 = mat3(\n\t\t3.2404542, -0.9692660,\t0.0556434,\n\t -1.5371385,\t1.8760108, -0.2040259,\n\t -0.4985314,\t0.0415560,\t1.0572252\n);\nvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t vec3 sqrtF0 = sqrt( fresnel0 );\n\t return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n}\nvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n}\nfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n}\nvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t float phase = 2.0 * PI * OPD * 1.0e-9;\n\t vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( -pow2( phase ) * var );\n\t xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[0] ) * exp( -4.5282e+09 * pow2( phase ) );\n\t xyz /= 1.0685e-7;\n\t vec3 srgb = XYZ_TO_REC709 * xyz;\n\t return srgb;\n}\nvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t vec3 I;\n\t float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t float cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t if ( cosTheta2Sq < 0.0 ) {\n\t\t\t return vec3( 1.0 );\n\t }\n\t float cosTheta2 = sqrt( cosTheta2Sq );\n\t float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t float R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t float R21 = R12;\n\t float T121 = 1.0 - R12;\n\t float phi12 = 0.0;\n\t if ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t float phi21 = PI - phi12;\n\t vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t vec3 phi23 = vec3( 0.0 );\n\t if ( baseIOR[0] < iridescenceIOR ) phi23[0] = PI;\n\t if ( baseIOR[1] < iridescenceIOR ) phi23[1] = PI;\n\t if ( baseIOR[2] < iridescenceIOR ) phi23[2] = PI;\n\t float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t vec3 phi = vec3( phi21 ) + phi23;\n\t vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t vec3 r123 = sqrt( R123 );\n\t vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t vec3 C0 = R12 + Rs;\n\t I = C0;\n\t vec3 Cm = Rs - T121;\n\t for ( int m = 1; m <= 2; ++m ) {\n\t\t\t Cm *= r123;\n\t\t\t vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\t I += Cm * Sm;\n\t }\n\t return max( I, vec3( 0.0 ) );\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, float faceDirection ) {\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 ) * faceDirection;\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:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.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; }\nvec3 pow2( const in vec3 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 max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\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 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 USE_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}\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\treturn 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\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\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\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:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\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}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\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#else\n\t\tvec4 envColor = vec4( 0.0 );\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\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\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\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\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\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 vFogDepth;\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 vec3( texture2D( gradientMap, coord ).r );\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\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\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.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\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\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = 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\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = 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\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = 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.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\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 vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\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 getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.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 getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.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 getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.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 vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\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\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\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_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;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\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\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, 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_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.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\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_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\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\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\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.roughness;\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(\t\t0, 1,\t\t0 ),\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#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\treflectedLight.directSpecular += irradiance * BRDF_GGX_Iridescence( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness );\n\t#else\n\t\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_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_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 USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += 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 USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\nfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\nif ( material.iridescenceThickness == 0.0 ) {\n\tmaterial.iridescence = 0.0;\n} else {\n\tmaterial.iridescence = saturate( material.iridescence );\n}\nif ( material.iridescence > 0.0 ) {\n\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n}\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\tgetPointLightInfo( 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\tgetSpotLightInfo( 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\tgetDirectionalLightInfo( 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.normal );\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.normal );\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 = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\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 sampledDiffuseColor = texture2D( map, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\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\tdiffuseColor *= texture2D( map, uv );\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",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#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 * faceDirection;\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 * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\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 * faceDirection;\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, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#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",normal_pars_vertex:"#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",normal_vertex:"#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",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, float faceDirection ) {\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\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_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, faceDirection );\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",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",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 shadowNormalBias;\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 shadowNormalBias;\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 shadowNormalBias;\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\ttexture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t\tf.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\ttexture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t\tf.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 shadowNormalBias;\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 shadowNormalBias;\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 shadowNormalBias;\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 ].shadowNormalBias, 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 ].shadowNormalBias, 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 ].shadowNormalBias, 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\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\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\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(\t1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,\t1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,\t1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef texture2DLodEXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",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 ) || defined ( USE_TRANSMISSION )\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_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}",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tgl_FragColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tgl_FragColor = vec4( mix( pow( gl_FragColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), gl_FragColor.rgb * 0.0773993808, vec3( lessThanEqual( gl_FragColor.rgb, vec3( 0.04045 ) ) ) ), gl_FragColor.w );\n\t#endif\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}",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}",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}",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 <alphatest_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}",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}",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 <alphatest_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}",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}",equirect_frag:"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\t#include <tonemapping_fragment>\n\t#include <encodings_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 <morphcolor_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}",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\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_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 <morphcolor_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\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 <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_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 <alphatest_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\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\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\t#include <output_fragment>\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 <morphcolor_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}",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 <alphatest_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_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_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\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#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_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 <morphcolor_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 <normal_vertex>\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}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\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 <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_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#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\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}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_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\t#include <normal_vertex>\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}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_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\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\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 <normal_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 <morphcolor_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 <normal_vertex>\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}",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 <alphatest_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 <normal_pars_fragment>\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\t#include <output_fragment>\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#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\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 <normal_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 <morphcolor_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 <normal_vertex>\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#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\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 <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <iridescence_fragment>\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 <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_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 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <output_fragment>\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#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 <normal_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 <morphcolor_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 <normal_vertex>\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}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\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 <alphatest_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 <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_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\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 <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 + totalEmissiveRadiance;\n\t#include <output_fragment>\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}",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 <morphcolor_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}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_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\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\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 <worldpos_vertex>\n\t#include <shadowmap_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}",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}",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 <alphatest_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\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}"},_n={common:{diffuse:{value:new Ht(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new Ct},uv2Transform:{value:new Ct},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},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 Et(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:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ht(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ht(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Ct}},sprite:{diffuse:{value:new Ht(16777215)},opacity:{value:1},center:{value:new Et(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new Ct}}},Mn={basic:{uniforms:$i([_n.common,_n.specularmap,_n.envmap,_n.aomap,_n.lightmap,_n.fog]),vertexShader:yn.meshbasic_vert,fragmentShader:yn.meshbasic_frag},lambert:{uniforms:$i([_n.common,_n.specularmap,_n.envmap,_n.aomap,_n.lightmap,_n.emissivemap,_n.fog,_n.lights,{emissive:{value:new Ht(0)}}]),vertexShader:yn.meshlambert_vert,fragmentShader:yn.meshlambert_frag},phong:{uniforms:$i([_n.common,_n.specularmap,_n.envmap,_n.aomap,_n.lightmap,_n.emissivemap,_n.bumpmap,_n.normalmap,_n.displacementmap,_n.fog,_n.lights,{emissive:{value:new Ht(0)},specular:{value:new Ht(1118481)},shininess:{value:30}}]),vertexShader:yn.meshphong_vert,fragmentShader:yn.meshphong_frag},standard:{uniforms:$i([_n.common,_n.envmap,_n.aomap,_n.lightmap,_n.emissivemap,_n.bumpmap,_n.normalmap,_n.displacementmap,_n.roughnessmap,_n.metalnessmap,_n.fog,_n.lights,{emissive:{value:new Ht(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:yn.meshphysical_vert,fragmentShader:yn.meshphysical_frag},toon:{uniforms:$i([_n.common,_n.aomap,_n.lightmap,_n.emissivemap,_n.bumpmap,_n.normalmap,_n.displacementmap,_n.gradientmap,_n.fog,_n.lights,{emissive:{value:new Ht(0)}}]),vertexShader:yn.meshtoon_vert,fragmentShader:yn.meshtoon_frag},matcap:{uniforms:$i([_n.common,_n.bumpmap,_n.normalmap,_n.displacementmap,_n.fog,{matcap:{value:null}}]),vertexShader:yn.meshmatcap_vert,fragmentShader:yn.meshmatcap_frag},points:{uniforms:$i([_n.points,_n.fog]),vertexShader:yn.points_vert,fragmentShader:yn.points_frag},dashed:{uniforms:$i([_n.common,_n.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:yn.linedashed_vert,fragmentShader:yn.linedashed_frag},depth:{uniforms:$i([_n.common,_n.displacementmap]),vertexShader:yn.depth_vert,fragmentShader:yn.depth_frag},normal:{uniforms:$i([_n.common,_n.bumpmap,_n.normalmap,_n.displacementmap,{opacity:{value:1}}]),vertexShader:yn.meshnormal_vert,fragmentShader:yn.meshnormal_frag},sprite:{uniforms:$i([_n.sprite,_n.fog]),vertexShader:yn.sprite_vert,fragmentShader:yn.sprite_frag},background:{uniforms:{uvTransform:{value:new Ct},t2D:{value:null}},vertexShader:yn.background_vert,fragmentShader:yn.background_frag},cube:{uniforms:$i([_n.envmap,{opacity:{value:1}}]),vertexShader:yn.cube_vert,fragmentShader:yn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:yn.equirect_vert,fragmentShader:yn.equirect_frag},distanceRGBA:{uniforms:$i([_n.common,_n.displacementmap,{referencePosition:{value:new ee},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:yn.distanceRGBA_vert,fragmentShader:yn.distanceRGBA_frag},shadow:{uniforms:$i([_n.lights,_n.fog,{color:{value:new Ht(0)},opacity:{value:1}}]),vertexShader:yn.shadow_vert,fragmentShader:yn.shadow_frag}};function bn(t,e,i,n,r,s){const a=new Ht(0);let o,c,h=!0===r?0:1,u=null,d=0,p=null;function m(t,e){i.buffers.color.setClear(t.r,t.g,t.b,e,s)}return{getClearColor:function(){return a},setClearColor:function(t,e=1){a.set(t),h=e,m(a,h)},getClearAlpha:function(){return h},setClearAlpha:function(t){h=t,m(a,h)},render:function(i,r){let s=!1,f=!0===r.isScene?r.background:null;f&&f.isTexture&&(f=e.get(f));const g=t.xr,v=g.getSession&&g.getSession();v&&"additive"===v.environmentBlendMode&&(f=null),null===f?m(a,h):f&&f.isColor&&(m(f,1),s=!0),(t.autoClear||s)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),f&&(f.isCubeTexture||f.mapping===l)?(void 0===c&&(c=new Zi(new Ki(1,1,1),new en({name:"BackgroundCubeMaterial",uniforms:Qi(Mn.cube.uniforms),vertexShader:Mn.cube.vertexShader,fragmentShader:Mn.cube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(t,e,i){this.matrixWorld.copyPosition(i.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),n.update(c)),c.material.uniforms.envMap.value=f,c.material.uniforms.flipEnvMap.value=f.isCubeTexture&&!1===f.isRenderTargetTexture?-1:1,u===f&&d===f.version&&p===t.toneMapping||(c.material.needsUpdate=!0,u=f,d=f.version,p=t.toneMapping),c.layers.enableAll(),i.unshift(c,c.geometry,c.material,0,0,null)):f&&f.isTexture&&(void 0===o&&(o=new Zi(new xn(2,2),new en({name:"BackgroundMaterial",uniforms:Qi(Mn.background.uniforms),vertexShader:Mn.background.vertexShader,fragmentShader:Mn.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1})),o.geometry.deleteAttribute("normal"),Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.t2D.value}}),n.update(o)),o.material.uniforms.t2D.value=f,!0===f.matrixAutoUpdate&&f.updateMatrix(),o.material.uniforms.uvTransform.value.copy(f.matrix),u===f&&d===f.version&&p===t.toneMapping||(o.material.needsUpdate=!0,u=f,d=f.version,p=t.toneMapping),o.layers.enableAll(),i.unshift(o,o.geometry,o.material,0,0,null))}}}function wn(t,e,i,n){const r=t.getParameter(34921),s=n.isWebGL2?null:e.get("OES_vertex_array_object"),a=n.isWebGL2||null!==s,o={},l=p(null);let c=l,h=!1;function u(e){return n.isWebGL2?t.bindVertexArray(e):s.bindVertexArrayOES(e)}function d(e){return n.isWebGL2?t.deleteVertexArray(e):s.deleteVertexArrayOES(e)}function p(t){const e=[],i=[],n=[];for(let t=0;t<r;t++)e[t]=0,i[t]=0,n[t]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:i,attributeDivisors:n,object:t,attributes:{},index:null}}function m(){const t=c.newAttributes;for(let e=0,i=t.length;e<i;e++)t[e]=0}function f(t){g(t,0)}function g(i,r){const s=c.newAttributes,a=c.enabledAttributes,o=c.attributeDivisors;if(s[i]=1,0===a[i]&&(t.enableVertexAttribArray(i),a[i]=1),o[i]!==r){(n.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[n.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](i,r),o[i]=r}}function v(){const e=c.newAttributes,i=c.enabledAttributes;for(let n=0,r=i.length;n<r;n++)i[n]!==e[n]&&(t.disableVertexAttribArray(n),i[n]=0)}function x(e,i,r,s,a,o){!0!==n.isWebGL2||5124!==r&&5125!==r?t.vertexAttribPointer(e,i,r,s,a,o):t.vertexAttribIPointer(e,i,r,a,o)}function y(){_(),h=!0,c!==l&&(c=l,u(c.object))}function _(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:function(r,l,d,y,_){let M=!1;if(a){const e=function(e,i,r){const a=!0===r.wireframe;let l=o[e.id];void 0===l&&(l={},o[e.id]=l);let c=l[i.id];void 0===c&&(c={},l[i.id]=c);let h=c[a];void 0===h&&(h=p(n.isWebGL2?t.createVertexArray():s.createVertexArrayOES()),c[a]=h);return h}(y,d,l);c!==e&&(c=e,u(c.object)),M=function(t,e,i,n){const r=c.attributes,s=e.attributes;let a=0;const o=i.getAttributes();for(const e in o){if(o[e].location>=0){const i=r[e];let n=s[e];if(void 0===n&&("instanceMatrix"===e&&t.instanceMatrix&&(n=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(n=t.instanceColor)),void 0===i)return!0;if(i.attribute!==n)return!0;if(n&&i.data!==n.data)return!0;a++}}return c.attributesNum!==a||c.index!==n}(r,y,d,_),M&&function(t,e,i,n){const r={},s=e.attributes;let a=0;const o=i.getAttributes();for(const e in o){if(o[e].location>=0){let i=s[e];void 0===i&&("instanceMatrix"===e&&t.instanceMatrix&&(i=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(i=t.instanceColor));const n={};n.attribute=i,i&&i.data&&(n.data=i.data),r[e]=n,a++}}c.attributes=r,c.attributesNum=a,c.index=n}(r,y,d,_)}else{const t=!0===l.wireframe;c.geometry===y.id&&c.program===d.id&&c.wireframe===t||(c.geometry=y.id,c.program=d.id,c.wireframe=t,M=!0)}null!==_&&i.update(_,34963),(M||h)&&(h=!1,function(r,s,a,o){if(!1===n.isWebGL2&&(r.isInstancedMesh||o.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;m();const l=o.attributes,c=a.getAttributes(),h=s.defaultAttributeValues;for(const e in c){const n=c[e];if(n.location>=0){let s=l[e];if(void 0===s&&("instanceMatrix"===e&&r.instanceMatrix&&(s=r.instanceMatrix),"instanceColor"===e&&r.instanceColor&&(s=r.instanceColor)),void 0!==s){const e=s.normalized,a=s.itemSize,l=i.get(s);if(void 0===l)continue;const c=l.buffer,h=l.type,u=l.bytesPerElement;if(s.isInterleavedBufferAttribute){const i=s.data,l=i.stride,d=s.offset;if(i.isInstancedInterleavedBuffer){for(let t=0;t<n.locationSize;t++)g(n.location+t,i.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=i.meshPerAttribute*i.count)}else for(let t=0;t<n.locationSize;t++)f(n.location+t);t.bindBuffer(34962,c);for(let t=0;t<n.locationSize;t++)x(n.location+t,a/n.locationSize,h,e,l*u,(d+a/n.locationSize*t)*u)}else{if(s.isInstancedBufferAttribute){for(let t=0;t<n.locationSize;t++)g(n.location+t,s.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===o._maxInstanceCount&&(o._maxInstanceCount=s.meshPerAttribute*s.count)}else for(let t=0;t<n.locationSize;t++)f(n.location+t);t.bindBuffer(34962,c);for(let t=0;t<n.locationSize;t++)x(n.location+t,a/n.locationSize,h,e,a*u,a/n.locationSize*t*u)}}else if(void 0!==h){const i=h[e];if(void 0!==i)switch(i.length){case 2:t.vertexAttrib2fv(n.location,i);break;case 3:t.vertexAttrib3fv(n.location,i);break;case 4:t.vertexAttrib4fv(n.location,i);break;default:t.vertexAttrib1fv(n.location,i);}}}}v()}(r,l,d,y),null!==_&&t.bindBuffer(34963,i.get(_).buffer))},reset:y,resetDefaultState:_,dispose:function(){y();for(const t in o){const e=o[t];for(const t in e){const i=e[t];for(const t in i)d(i[t].object),delete i[t];delete e[t]}delete o[t]}},releaseStatesOfGeometry:function(t){if(void 0===o[t.id])return;const e=o[t.id];for(const t in e){const i=e[t];for(const t in i)d(i[t].object),delete i[t];delete e[t]}delete o[t.id]},releaseStatesOfProgram:function(t){for(const e in o){const i=o[e];if(void 0===i[t.id])continue;const n=i[t.id];for(const t in n)d(n[t].object),delete n[t];delete i[t.id]}},initAttributes:m,enableAttribute:f,disableUnusedAttributes:v}}function Sn(t,e,i,n){const r=n.isWebGL2;let s;this.setMode=function(t){s=t},this.render=function(e,n){t.drawArrays(s,e,n),i.update(n,s,1)},this.renderInstances=function(n,a,o){if(0===o)return;let l,c;if(r)l=t,c="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](s,n,a,o),i.update(a,s,o)}}function Tn(t,e,i){let n;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!=typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let a=void 0!==i.precision?i.precision:"highp";const o=r(a);o!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",o,"instead."),a=o);const l=s||e.has("WEBGL_draw_buffers"),c=!0===i.logarithmicDepthBuffer,h=t.getParameter(34930),u=t.getParameter(35660),d=t.getParameter(3379),p=t.getParameter(34076),m=t.getParameter(34921),f=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),x=u>0,y=s||e.has("OES_texture_float");return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==n)return n;if(!0===e.has("EXT_texture_filter_anisotropic")){const i=e.get("EXT_texture_filter_anisotropic");n=t.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else n=0;return n},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:u,maxTextureSize:d,maxCubemapSize:p,maxAttributes:m,maxVertexUniforms:f,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:x,floatFragmentTextures:y,floatVertexTextures:x&&y,maxSamples:s?t.getParameter(36183):0}}function An(t){const e=this;let i=null,n=0,r=!1,s=!1;const a=new dn,o=new Ct,l={value:null,needsUpdate:!1};function c(){l.value!==i&&(l.value=i,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function h(t,i,n,r){const s=null!==t?t.length:0;let c=null;if(0!==s){if(c=l.value,!0!==r||null===c){const e=n+4*s,r=i.matrixWorldInverse;o.getNormalMatrix(r),(null===c||c.length<e)&&(c=new Float32Array(e));for(let e=0,i=n;e!==s;++e,i+=4)a.copy(t[e]).applyMatrix4(r,o),a.normal.toArray(c,i),c[i+3]=a.constant}l.value=c,l.needsUpdate=!0}return e.numPlanes=s,e.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,s){const a=0!==t.length||e||0!==n||r;return r=e,i=h(t,s,0),n=t.length,a},this.beginShadows=function(){s=!0,h(null)},this.endShadows=function(){s=!1,c()},this.setState=function(e,a,o){const u=e.clippingPlanes,d=e.clipIntersection,p=e.clipShadows,m=t.get(e);if(!r||null===u||0===u.length||s&&!p)s?h(null):c();else{const t=s?0:n,e=4*t;let r=m.clippingState||null;l.value=r,r=h(u,a,e,o);for(let t=0;t!==e;++t)r[t]=i[t];m.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function En(t){let e=new WeakMap;function i(t,e){return e===a?t.mapping=r:e===o&&(t.mapping=s),t}function n(t){const i=t.target;i.removeEventListener("dispose",n);const r=e.get(i);void 0!==r&&(e.delete(i),r.dispose())}return{get:function(r){if(r&&r.isTexture&&!1===r.isRenderTargetTexture){const s=r.mapping;if(s===a||s===o){if(e.has(r)){return i(e.get(r).texture,r.mapping)}{const s=r.image;if(s&&s.height>0){const a=new ln(s.height/2);return a.fromEquirectangularTexture(t,r),e.set(r,a),r.addEventListener("dispose",n),i(a.texture,r.mapping)}return null}}}return r},dispose:function(){e=new WeakMap}}}Mn.physical={uniforms:$i([Mn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new Et(1,1)},clearcoatNormalMap:{value:null},iridescence:{value:0},iridescenceMap:{value:null},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},sheen:{value:0},sheenColor:{value:new Ht(0)},sheenColorMap:{value:null},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new Et},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Ht(0)},specularIntensity:{value:1},specularIntensityMap:{value:null},specularColor:{value:new Ht(1,1,1)},specularColorMap:{value:null}}]),vertexShader:yn.meshphysical_vert,fragmentShader:yn.meshphysical_frag};class Cn extends nn{constructor(t=-1,e=1,i=1,n=-1,r=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=i,this.bottom=n,this.near=r,this.far=s,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,i,n,r,s){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=t,this.view.fullHeight=e,this.view.offsetX=i,this.view.offsetY=n,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,n=(this.top+this.bottom)/2;let r=i-t,s=i+t,a=n+e,o=n-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,s=r+t*this.view.width,a-=e*this.view.offsetY,o=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,s,a,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}const Ln=[.125,.215,.35,.446,.526,.582],Rn=20,Pn=new Cn,In=new Ht;let Dn=null;const Nn=(1+Math.sqrt(5))/2,On=1/Nn,zn=[new ee(1,1,1),new ee(-1,1,1),new ee(1,1,-1),new ee(-1,1,-1),new ee(0,Nn,On),new ee(0,Nn,-On),new ee(On,0,Nn),new ee(-On,0,Nn),new ee(Nn,On,0),new ee(-Nn,On,0)];class Fn{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,i=.1,n=100){Dn=this._renderer.getRenderTarget(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(t,i,n,r),e>0&&this._blur(r,0,0,e),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=Gn(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=kn(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let t=0;t<this._lodPlanes.length;t++)this._lodPlanes[t].dispose()}_cleanup(t){this._renderer.setRenderTarget(Dn),t.scissorTest=!1,Un(t,0,0,t.width,t.height)}_fromTexture(t,e){t.mapping===r||t.mapping===s?this._setSize(0===t.image.length?16:t.image[0].width||t.image[0].image.width):this._setSize(t.image.width/4),Dn=this._renderer.getRenderTarget();const i=e||this._allocateTargets();return this._textureToCubeUV(t,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const t=3*Math.max(this._cubeSize,112),e=4*this._cubeSize,i={magFilter:f,minFilter:f,generateMipmaps:!1,type:b,format:S,encoding:at,depthBuffer:!1},n=Bn(t,e,i);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=Bn(t,e,i);const{_lodMax:n}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(t){const e=[],i=[],n=[];let r=t;const s=t-4+1+Ln.length;for(let a=0;a<s;a++){const s=Math.pow(2,r);i.push(s);let o=1/s;a>t-4?o=Ln[a-t+4-1]:0===a&&(o=0),n.push(o);const l=1/(s-2),c=-l,h=1+l,u=[c,c,h,c,h,h,c,c,h,h,c,h],d=6,p=6,m=3,f=2,g=1,v=new Float32Array(m*p*d),x=new Float32Array(f*p*d),y=new Float32Array(g*p*d);for(let t=0;t<d;t++){const e=t%3*2/3-1,i=t>2?0:-1,n=[e,i,0,e+2/3,i,0,e+2/3,i+1,0,e,i,0,e+2/3,i+1,0,e,i+1,0];v.set(n,m*p*t),x.set(u,f*p*t);const r=[t,t,t,t,t,t];y.set(r,g*p*t)}const _=new Pi;_.setAttribute("position",new _i(v,m)),_.setAttribute("uv",new _i(x,f)),_.setAttribute("faceIndex",new _i(y,g)),e.push(_),r>4&&r--}return{lodPlanes:e,sizeLods:i,sigmas:n}}(n)),this._blurMaterial=function(t,e,i){const n=new Float32Array(Rn),r=new ee(0,1,0);return new en({name:"SphericalGaussianBlur",defines:{n:Rn,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/i,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Vn(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}(n,t,e)}return n}_compileMaterial(t){const e=new Zi(this._lodPlanes[0],t);this._renderer.compile(e,Pn)}_sceneToCubeUV(t,e,i,n){const r=new rn(90,1,e,i),s=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,c=o.toneMapping;o.getClearColor(In),o.toneMapping=0,o.autoClear=!1;const h=new vi({name:"PMREM.Background",side:1,depthWrite:!1,depthTest:!1}),u=new Zi(new Ki(),h);let d=!1;const p=t.background;p?p.isColor&&(h.color.copy(p),t.background=null,d=!0):(h.color.copy(In),d=!0);for(let e=0;e<6;e++){const i=e%3;0===i?(r.up.set(0,s[e],0),r.lookAt(a[e],0,0)):1===i?(r.up.set(0,0,s[e]),r.lookAt(0,a[e],0)):(r.up.set(0,s[e],0),r.lookAt(0,0,a[e]));const l=this._cubeSize;Un(n,i*l,e>2?l:0,l,l),o.setRenderTarget(n),d&&o.render(u,r),o.render(t,r)}u.geometry.dispose(),u.material.dispose(),o.toneMapping=c,o.autoClear=l,t.background=p}_textureToCubeUV(t,e){const i=this._renderer,n=t.mapping===r||t.mapping===s;n?(null===this._cubemapMaterial&&(this._cubemapMaterial=Gn()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=kn());const a=n?this._cubemapMaterial:this._equirectMaterial,o=new Zi(this._lodPlanes[0],a);a.uniforms.envMap.value=t;const l=this._cubeSize;Un(e,0,0,3*l,2*l),i.setRenderTarget(e),i.render(o,Pn)}_applyPMREM(t){const e=this._renderer,i=e.autoClear;e.autoClear=!1;for(let e=1;e<this._lodPlanes.length;e++){const i=Math.sqrt(this._sigmas[e]*this._sigmas[e]-this._sigmas[e-1]*this._sigmas[e-1]),n=zn[(e-1)%zn.length];this._blur(t,e-1,e,i,n)}e.autoClear=i}_blur(t,e,i,n,r){const s=this._pingPongRenderTarget;this._halfBlur(t,s,e,i,n,"latitudinal",r),this._halfBlur(s,t,i,i,n,"longitudinal",r)}_halfBlur(t,e,i,n,r,s,a){const o=this._renderer,l=this._blurMaterial;"latitudinal"!==s&&"longitudinal"!==s&&console.error("blur direction must be either latitudinal or longitudinal!");const c=new Zi(this._lodPlanes[n],l),h=l.uniforms,u=this._sizeLods[i]-1,d=isFinite(r)?Math.PI/(2*u):2*Math.PI/39,p=r/d,m=isFinite(r)?1+Math.floor(3*p):Rn;m>Rn&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${m} samples when the maximum is set to 20`);const f=[];let g=0;for(let t=0;t<Rn;++t){const e=t/p,i=Math.exp(-e*e/2);f.push(i),0===t?g+=i:t<m&&(g+=2*i)}for(let t=0;t<f.length;t++)f[t]=f[t]/g;h.envMap.value=t.texture,h.samples.value=m,h.weights.value=f,h.latitudinal.value="latitudinal"===s,a&&(h.poleAxis.value=a);const{_lodMax:v}=this;h.dTheta.value=d,h.mipInt.value=v-i;const x=this._sizeLods[n];Un(e,3*x*(n>v-4?n-v+4:0),4*(this._cubeSize-x),3*x,2*x),o.setRenderTarget(e),o.render(c,Pn)}}function Bn(t,e,i){const n=new Kt(t,e,i);return n.texture.mapping=l,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function Un(t,e,i,n,r){t.viewport.set(e,i,n,r),t.scissor.set(e,i,n,r)}function kn(){return new en({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Vn(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Gn(){return new en({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Vn(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function Vn(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function Hn(t){let e=new WeakMap,i=null;function n(t){const i=t.target;i.removeEventListener("dispose",n);const r=e.get(i);void 0!==r&&(e.delete(i),r.dispose())}return{get:function(l){if(l&&l.isTexture){const c=l.mapping,h=c===a||c===o,u=c===r||c===s;if(h||u){if(l.isRenderTargetTexture&&!0===l.needsPMREMUpdate){l.needsPMREMUpdate=!1;let n=e.get(l);return null===i&&(i=new Fn(t)),n=h?i.fromEquirectangular(l,n):i.fromCubemap(l,n),e.set(l,n),n.texture}if(e.has(l))return e.get(l).texture;{const r=l.image;if(h&&r&&r.height>0||u&&r&&function(t){let e=0;const i=6;for(let n=0;n<i;n++)void 0!==t[n]&&e++;return e===i}(r)){null===i&&(i=new Fn(t));const r=h?i.fromEquirectangular(l):i.fromCubemap(l);return e.set(l,r),l.addEventListener("dispose",n),r.texture}return null}}}return l},dispose:function(){e=new WeakMap,null!==i&&(i.dispose(),i=null)}}}function Wn(t){const e={};function i(i){if(void 0!==e[i])return e[i];let n;switch(i){case"WEBGL_depth_texture":n=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":n=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":n=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":n=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:n=t.getExtension(i);}return e[i]=n,n}return{has:function(t){return null!==i(t)},init:function(t){t.isWebGL2?i("EXT_color_buffer_float"):(i("WEBGL_depth_texture"),i("OES_texture_float"),i("OES_texture_half_float"),i("OES_texture_half_float_linear"),i("OES_standard_derivatives"),i("OES_element_index_uint"),i("OES_vertex_array_object"),i("ANGLE_instanced_arrays")),i("OES_texture_float_linear"),i("EXT_color_buffer_half_float"),i("WEBGL_multisampled_render_to_texture")},get:function(t){const e=i(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function jn(t,e,i,n){const r={},s=new WeakMap;function a(t){const o=t.target;null!==o.index&&e.remove(o.index);for(const t in o.attributes)e.remove(o.attributes[t]);o.removeEventListener("dispose",a),delete r[o.id];const l=s.get(o);l&&(e.remove(l),s.delete(o)),n.releaseStatesOfGeometry(o),!0===o.isInstancedBufferGeometry&&delete o._maxInstanceCount,i.memory.geometries--}function o(t){const i=[],n=t.index,r=t.attributes.position;let a=0;if(null!==n){const t=n.array;a=n.version;for(let e=0,n=t.length;e<n;e+=3){const n=t[e+0],r=t[e+1],s=t[e+2];i.push(n,r,r,s,s,n)}}else{const t=r.array;a=r.version;for(let e=0,n=t.length/3-1;e<n;e+=3){const t=e+0,n=e+1,r=e+2;i.push(t,n,n,r,r,t)}}const o=new(Lt(i)?bi:Mi)(i,1);o.version=a;const l=s.get(t);l&&e.remove(l),s.set(t,o)}return{get:function(t,e){return!0===r[e.id]||(e.addEventListener("dispose",a),r[e.id]=!0,i.memory.geometries++),e},update:function(t){const i=t.attributes;for(const t in i)e.update(i[t],34962);const n=t.morphAttributes;for(const t in n){const i=n[t];for(let t=0,n=i.length;t<n;t++)e.update(i[t],34962)}},getWireframeAttribute:function(t){const e=s.get(t);if(e){const i=t.index;null!==i&&e.version<i.version&&o(t)}else o(t);return s.get(t)}}}function qn(t,e,i,n){const r=n.isWebGL2;let s,a,o;this.setMode=function(t){s=t},this.setIndex=function(t){a=t.type,o=t.bytesPerElement},this.render=function(e,n){t.drawElements(s,n,a,e*o),i.update(n,s,1)},this.renderInstances=function(n,l,c){if(0===c)return;let h,u;if(r)h=t,u="drawElementsInstanced";else if(h=e.get("ANGLE_instanced_arrays"),u="drawElementsInstancedANGLE",null===h)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");h[u](s,l,a,n*o,c),i.update(l,s,c)}}function Xn(t){const e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,i,n){switch(e.calls++,i){case 4:e.triangles+=n*(t/3);break;case 1:e.lines+=n*(t/2);break;case 3:e.lines+=n*(t-1);break;case 2:e.lines+=n*t;break;case 0:e.points+=n*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",i);}}}}function Yn(t,e){return t[0]-e[0]}function Zn(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Jn(t,e){let i=1;const n=e.isInterleavedBufferAttribute?e.data.array:e.array;n instanceof Int8Array?i=127:n instanceof Uint8Array?i=255:n instanceof Uint16Array?i=65535:n instanceof Int16Array?i=32767:n instanceof Int32Array?i=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",n),t.divideScalar(i)}function Kn(t,e,i){const n={},r=new Float32Array(8),s=new WeakMap,a=new Jt,o=[];for(let t=0;t<8;t++)o[t]=[t,0];return{update:function(l,c,h,u){const d=l.morphTargetInfluences;if(!0===e.isWebGL2){const p=c.morphAttributes.position||c.morphAttributes.normal||c.morphAttributes.color,m=void 0!==p?p.length:0;let f=s.get(c);if(void 0===f||f.count!==m){void 0!==f&&f.texture.dispose();const x=void 0!==c.morphAttributes.position,y=void 0!==c.morphAttributes.normal,_=void 0!==c.morphAttributes.color,b=c.morphAttributes.position||[],w=c.morphAttributes.normal||[],S=c.morphAttributes.color||[];let T=0;!0===x&&(T=1),!0===y&&(T=2),!0===_&&(T=3);let A=c.attributes.position.count*T,E=1;A>e.maxTextureSize&&(E=Math.ceil(A/e.maxTextureSize),A=e.maxTextureSize);const C=new Float32Array(A*E*4*m),L=new Qt(C,A,E,m);L.type=M,L.needsUpdate=!0;const R=4*T;for(let I=0;I<m;I++){const D=b[I],N=w[I],O=S[I],z=A*E*4*I;for(let F=0;F<D.count;F++){const B=F*R;!0===x&&(a.fromBufferAttribute(D,F),!0===D.normalized&&Jn(a,D),C[z+B+0]=a.x,C[z+B+1]=a.y,C[z+B+2]=a.z,C[z+B+3]=0),!0===y&&(a.fromBufferAttribute(N,F),!0===N.normalized&&Jn(a,N),C[z+B+4]=a.x,C[z+B+5]=a.y,C[z+B+6]=a.z,C[z+B+7]=0),!0===_&&(a.fromBufferAttribute(O,F),!0===O.normalized&&Jn(a,O),C[z+B+8]=a.x,C[z+B+9]=a.y,C[z+B+10]=a.z,C[z+B+11]=4===O.itemSize?a.w:1)}}function P(){L.dispose(),s.delete(c),c.removeEventListener("dispose",P)}f={count:m,texture:L,size:new Et(A,E)},s.set(c,f),c.addEventListener("dispose",P)}let g=0;for(let U=0;U<d.length;U++)g+=d[U];const v=c.morphTargetsRelative?1:1-g;u.getUniforms().setValue(t,"morphTargetBaseInfluence",v),u.getUniforms().setValue(t,"morphTargetInfluences",d),u.getUniforms().setValue(t,"morphTargetsTexture",f.texture,i),u.getUniforms().setValue(t,"morphTargetsTextureSize",f.size)}else{const k=void 0===d?0:d.length;let G=n[c.id];if(void 0===G||G.length!==k){G=[];for(let q=0;q<k;q++)G[q]=[q,0];n[c.id]=G}for(let X=0;X<k;X++){const Y=G[X];Y[0]=X,Y[1]=d[X]}G.sort(Zn);for(let Z=0;Z<8;Z++)Z<k&&G[Z][1]?(o[Z][0]=G[Z][0],o[Z][1]=G[Z][1]):(o[Z][0]=Number.MAX_SAFE_INTEGER,o[Z][1]=0);o.sort(Yn);const V=c.morphAttributes.position,H=c.morphAttributes.normal;let W=0;for(let J=0;J<8;J++){const K=o[J],Q=K[0],$=K[1];Q!==Number.MAX_SAFE_INTEGER&&$?(V&&c.getAttribute("morphTarget"+J)!==V[Q]&&c.setAttribute("morphTarget"+J,V[Q]),H&&c.getAttribute("morphNormal"+J)!==H[Q]&&c.setAttribute("morphNormal"+J,H[Q]),r[J]=$,W+=$):(V&&!0===c.hasAttribute("morphTarget"+J)&&c.deleteAttribute("morphTarget"+J),H&&!0===c.hasAttribute("morphNormal"+J)&&c.deleteAttribute("morphNormal"+J),r[J]=0)}const j=c.morphTargetsRelative?1:1-W;u.getUniforms().setValue(t,"morphTargetBaseInfluence",j),u.getUniforms().setValue(t,"morphTargetInfluences",r)}}}}function Qn(t,e,i,n){let r=new WeakMap;function s(t){const e=t.target;e.removeEventListener("dispose",s),i.remove(e.instanceMatrix),null!==e.instanceColor&&i.remove(e.instanceColor)}return{update:function(t){const a=n.render.frame,o=t.geometry,l=e.get(t,o);return r.get(l)!==a&&(e.update(l),r.set(l,a)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",s)&&t.addEventListener("dispose",s),i.update(t.instanceMatrix,34962),null!==t.instanceColor&&i.update(t.instanceColor,34962)),l},dispose:function(){r=new WeakMap}}}const $n=new Zt,tr=new Qt,er=new $t,ir=new on,nr=[],rr=[],sr=new Float32Array(16),ar=new Float32Array(9),or=new Float32Array(4);function lr(t,e,i){const n=t[0];if(n<=0||n>0)return t;const r=e*i;let s=nr[r];if(void 0===s&&(s=new Float32Array(r),nr[r]=s),0!==e){n.toArray(s,0);for(let n=1,r=0;n!==e;++n)r+=i,t[n].toArray(s,r)}return s}function cr(t,e){if(t.length!==e.length)return!1;for(let i=0,n=t.length;i<n;i++)if(t[i]!==e[i])return!1;return!0}function hr(t,e){for(let i=0,n=e.length;i<n;i++)t[i]=e[i]}function ur(t,e){let i=rr[e];void 0===i&&(i=new Int32Array(e),rr[e]=i);for(let n=0;n!==e;++n)i[n]=t.allocateTextureUnit();return i}function dr(t,e){const i=this.cache;i[0]!==e&&(t.uniform1f(this.addr,e),i[0]=e)}function pr(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),i[0]=e.x,i[1]=e.y);else{if(cr(i,e))return;t.uniform2fv(this.addr,e),hr(i,e)}}function mr(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y&&i[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),i[0]=e.x,i[1]=e.y,i[2]=e.z);else if(void 0!==e.r)i[0]===e.r&&i[1]===e.g&&i[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),i[0]=e.r,i[1]=e.g,i[2]=e.b);else{if(cr(i,e))return;t.uniform3fv(this.addr,e),hr(i,e)}}function fr(t,e){const i=this.cache;if(void 0!==e.x)i[0]===e.x&&i[1]===e.y&&i[2]===e.z&&i[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),i[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=e.w);else{if(cr(i,e))return;t.uniform4fv(this.addr,e),hr(i,e)}}function gr(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(cr(i,e))return;t.uniformMatrix2fv(this.addr,!1,e),hr(i,e)}else{if(cr(i,n))return;or.set(n),t.uniformMatrix2fv(this.addr,!1,or),hr(i,n)}}function vr(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(cr(i,e))return;t.uniformMatrix3fv(this.addr,!1,e),hr(i,e)}else{if(cr(i,n))return;ar.set(n),t.uniformMatrix3fv(this.addr,!1,ar),hr(i,n)}}function xr(t,e){const i=this.cache,n=e.elements;if(void 0===n){if(cr(i,e))return;t.uniformMatrix4fv(this.addr,!1,e),hr(i,e)}else{if(cr(i,n))return;sr.set(n),t.uniformMatrix4fv(this.addr,!1,sr),hr(i,n)}}function yr(t,e){const i=this.cache;i[0]!==e&&(t.uniform1i(this.addr,e),i[0]=e)}function _r(t,e){const i=this.cache;cr(i,e)||(t.uniform2iv(this.addr,e),hr(i,e))}function Mr(t,e){const i=this.cache;cr(i,e)||(t.uniform3iv(this.addr,e),hr(i,e))}function br(t,e){const i=this.cache;cr(i,e)||(t.uniform4iv(this.addr,e),hr(i,e))}function wr(t,e){const i=this.cache;i[0]!==e&&(t.uniform1ui(this.addr,e),i[0]=e)}function Sr(t,e){const i=this.cache;cr(i,e)||(t.uniform2uiv(this.addr,e),hr(i,e))}function Tr(t,e){const i=this.cache;cr(i,e)||(t.uniform3uiv(this.addr,e),hr(i,e))}function Ar(t,e){const i=this.cache;cr(i,e)||(t.uniform4uiv(this.addr,e),hr(i,e))}function Er(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTexture2D(e||$n,r)}function Cr(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTexture3D(e||er,r)}function Lr(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTextureCube(e||ir,r)}function Rr(t,e,i){const n=this.cache,r=i.allocateTextureUnit();n[0]!==r&&(t.uniform1i(this.addr,r),n[0]=r),i.setTexture2DArray(e||tr,r)}function Pr(t,e){t.uniform1fv(this.addr,e)}function Ir(t,e){const i=lr(e,this.size,2);t.uniform2fv(this.addr,i)}function Dr(t,e){const i=lr(e,this.size,3);t.uniform3fv(this.addr,i)}function Nr(t,e){const i=lr(e,this.size,4);t.uniform4fv(this.addr,i)}function Or(t,e){const i=lr(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,i)}function zr(t,e){const i=lr(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,i)}function Fr(t,e){const i=lr(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,i)}function Br(t,e){t.uniform1iv(this.addr,e)}function Ur(t,e){t.uniform2iv(this.addr,e)}function kr(t,e){t.uniform3iv(this.addr,e)}function Gr(t,e){t.uniform4iv(this.addr,e)}function Vr(t,e){t.uniform1uiv(this.addr,e)}function Hr(t,e){t.uniform2uiv(this.addr,e)}function Wr(t,e){t.uniform3uiv(this.addr,e)}function jr(t,e){t.uniform4uiv(this.addr,e)}function qr(t,e,i){const n=e.length,r=ur(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.setTexture2D(e[t]||$n,r[t])}function Xr(t,e,i){const n=e.length,r=ur(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.setTexture3D(e[t]||er,r[t])}function Yr(t,e,i){const n=e.length,r=ur(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.setTextureCube(e[t]||ir,r[t])}function Zr(t,e,i){const n=e.length,r=ur(i,n);t.uniform1iv(this.addr,r);for(let t=0;t!==n;++t)i.setTexture2DArray(e[t]||tr,r[t])}class Jr{constructor(t,e,i){this.id=t,this.addr=i,this.cache=[],this.setValue=function(t){switch(t){case 5126:return dr;case 35664:return pr;case 35665:return mr;case 35666:return fr;case 35674:return gr;case 35675:return vr;case 35676:return xr;case 5124:case 35670:return yr;case 35667:case 35671:return _r;case 35668:case 35672:return Mr;case 35669:case 35673:return br;case 5125:return wr;case 36294:return Sr;case 36295:return Tr;case 36296:return Ar;case 35678:case 36198:case 36298:case 36306:case 35682:return Er;case 35679:case 36299:case 36307:return Cr;case 35680:case 36300:case 36308:case 36293:return Lr;case 36289:case 36303:case 36311:case 36292:return Rr;}}(e.type)}}class Kr{constructor(t,e,i){this.id=t,this.addr=i,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return Pr;case 35664:return Ir;case 35665:return Dr;case 35666:return Nr;case 35674:return Or;case 35675:return zr;case 35676:return Fr;case 5124:case 35670:return Br;case 35667:case 35671:return Ur;case 35668:case 35672:return kr;case 35669:case 35673:return Gr;case 5125:return Vr;case 36294:return Hr;case 36295:return Wr;case 36296:return jr;case 35678:case 36198:case 36298:case 36306:case 35682:return qr;case 35679:case 36299:case 36307:return Xr;case 35680:case 36300:case 36308:case 36293:return Yr;case 36289:case 36303:case 36311:case 36292:return Zr;}}(e.type)}}class Qr{constructor(t){this.id=t,this.seq=[],this.map={}}setValue(t,e,i){const n=this.seq;for(let r=0,s=n.length;r!==s;++r){const s=n[r];s.setValue(t,e[s.id],i)}}}const $r=/(\w+)(\])?(\[|\.)?/g;function ts(t,e){t.seq.push(e),t.map[e.id]=e}function es(t,e,i){const n=t.name,r=n.length;for($r.lastIndex=0;;){const s=$r.exec(n),a=$r.lastIndex;let o=s[1];const l="]"===s[2],c=s[3];if(l&&(o|=0),void 0===c||"["===c&&a+2===r){ts(i,void 0===c?new Jr(o,t,e):new Kr(o,t,e));break}{let t=i.map[o];void 0===t&&(t=new Qr(o),ts(i,t)),i=t}}}class is{constructor(t,e){this.seq=[],this.map={};const i=t.getProgramParameter(e,35718);for(let n=0;n<i;++n){const i=t.getActiveUniform(e,n);es(i,t.getUniformLocation(e,i.name),this)}}setValue(t,e,i,n){const r=this.map[e];void 0!==r&&r.setValue(t,i,n)}setOptional(t,e,i){const n=e[i];void 0!==n&&this.setValue(t,i,n)}static upload(t,e,i,n){for(let r=0,s=e.length;r!==s;++r){const s=e[r],a=i[s.id];!1!==a.needsUpdate&&s.setValue(t,a.value,n)}}static seqWithValue(t,e){const i=[];for(let n=0,r=t.length;n!==r;++n){const r=t[n];r.id in e&&i.push(r)}return i}}function ns(t,e,i){const n=t.createShader(e);return t.shaderSource(n,i),t.compileShader(n),n}let rs=0;function ss(t,e,i){const n=t.getShaderParameter(e,35713),r=t.getShaderInfoLog(e).trim();if(n&&""===r)return"";const s=/ERROR: 0:(\d+)/.exec(r);if(s){const n=parseInt(s[1]);return i.toUpperCase()+"\n\n"+r+"\n\n"+function(t,e){const i=t.split("\n"),n=[],r=Math.max(e-6,0),s=Math.min(e+6,i.length);for(let t=r;t<s;t++){const r=t+1;n.push(`${r===e?">":" "} ${r}: ${i[t]}`)}return n.join("\n")}(t.getShaderSource(e),n)}return r}function as(t,e){const i=function(t){switch(t){case at:return["Linear","( value )"];case ot:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"];}}(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+i[0]+i[1]+"; }"}function os(t,e){let i;switch(e){case 1:i="Linear";break;case 2:i="Reinhard";break;case 3:i="OptimizedCineon";break;case 4:i="ACESFilmic";break;case 5:i="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),i="Linear";}return"vec3 "+t+"( vec3 color ) { return "+i+"ToneMapping( color ); }"}function ls(t){return""!==t}function cs(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function hs(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const us=/^[ \t]*#include +<([\w\d./]+)>/gm;function ds(t){return t.replace(us,ps)}function ps(t,e){const i=yn[e];if(void 0===i)throw new Error("Can not resolve #include <"+e+">");return ds(i)}const ms=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,fs=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function gs(t){return t.replace(fs,xs).replace(ms,vs)}function vs(t,e,i,n){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),xs(t,e,i,n)}function xs(t,e,i,n){let r="";for(let t=parseInt(e);t<parseInt(i);t++)r+=n.replace(/\[\s*i\s*\]/g,"[ "+t+" ]").replace(/UNROLLED_LOOP_INDEX/g,t);return r}function ys(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function _s(t,e,i,n){const a=t.getContext(),o=i.defines;let c=i.vertexShader,h=i.fragmentShader;const u=function(t){let e="SHADOWMAP_TYPE_BASIC";return 1===t.shadowMapType?e="SHADOWMAP_TYPE_PCF":2===t.shadowMapType?e="SHADOWMAP_TYPE_PCF_SOFT":3===t.shadowMapType&&(e="SHADOWMAP_TYPE_VSM"),e}(i),d=function(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case r:case s:e="ENVMAP_TYPE_CUBE";break;case l:e="ENVMAP_TYPE_CUBE_UV";}return e}(i),p=function(t){let e="ENVMAP_MODE_REFLECTION";t.envMap&&t.envMapMode===s&&(e="ENVMAP_MODE_REFRACTION");return e}(i),m=function(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case 0:e="ENVMAP_BLENDING_MULTIPLY";break;case 1:e="ENVMAP_BLENDING_MIX";break;case 2:e="ENVMAP_BLENDING_ADD";}return e}(i),f=function(t){const e=t.envMapCubeUVHeight;if(null===e)return null;const i=Math.log2(e)-2,n=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,i),112)),texelHeight:n,maxMip:i}}(i),g=i.isWebGL2?"":function(t){return[t.extensionDerivatives||t.envMapCubeUVHeight||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""].filter(ls).join("\n")}(i),v=function(t){const e=[];for(const i in t){const n=t[i];!1!==n&&e.push("#define "+i+" "+n)}return e.join("\n")}(o),x=a.createProgram();let y,_,M=i.glslVersion?"#version "+i.glslVersion+"\n":"";i.isRawShaderMaterial?(y=[v].filter(ls).join("\n"),y.length>0&&(y+="\n"),_=[g,v].filter(ls).join("\n"),_.length>0&&(_+="\n")):(y=[ys(i),"#define SHADER_NAME "+i.shaderName,v,i.instancing?"#define USE_INSTANCING":"",i.instancingColor?"#define USE_INSTANCING_COLOR":"",i.supportsVertexTextures?"#define VERTEX_TEXTURES":"",i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+p:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMap&&i.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",i.normalMap&&i.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",i.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",i.displacementMap&&i.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",i.specularColorMap?"#define USE_SPECULARCOLORMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.transmission?"#define USE_TRANSMISSION":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.thicknessMap?"#define USE_THICKNESSMAP":"",i.sheenColorMap?"#define USE_SHEENCOLORMAP":"",i.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",i.vertexTangents?"#define USE_TANGENT":"",i.vertexColors?"#define USE_COLOR":"",i.vertexAlphas?"#define USE_COLOR_ALPHA":"",i.vertexUvs?"#define USE_UV":"",i.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.morphColors&&i.isWebGL2?"#define USE_MORPHCOLORS":"",i.morphTargetsCount>0&&i.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",i.morphTargetsCount>0&&i.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+i.morphTextureStride:"",i.morphTargetsCount>0&&i.isWebGL2?"#define MORPHTARGETS_COUNT "+i.morphTargetsCount:"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&i.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","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\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(ls).join("\n"),_=[g,ys(i),"#define SHADER_NAME "+i.shaderName,v,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp2?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.matcap?"#define USE_MATCAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+d:"",i.envMap?"#define "+p:"",i.envMap?"#define "+m:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.normalMap&&i.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",i.normalMap&&i.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",i.clearcoat?"#define USE_CLEARCOAT":"",i.clearcoatMap?"#define USE_CLEARCOATMAP":"",i.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",i.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",i.iridescence?"#define USE_IRIDESCENCE":"",i.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",i.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",i.specularColorMap?"#define USE_SPECULARCOLORMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.alphaTest?"#define USE_ALPHATEST":"",i.sheen?"#define USE_SHEEN":"",i.sheenColorMap?"#define USE_SHEENCOLORMAP":"",i.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",i.transmission?"#define USE_TRANSMISSION":"",i.transmissionMap?"#define USE_TRANSMISSIONMAP":"",i.thicknessMap?"#define USE_THICKNESSMAP":"",i.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",i.vertexTangents?"#define USE_TANGENT":"",i.vertexColors||i.instancingColor?"#define USE_COLOR":"",i.vertexAlphas?"#define USE_COLOR_ALPHA":"",i.vertexUvs?"#define USE_UV":"",i.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",i.gradientMap?"#define USE_GRADIENTMAP":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"",i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+u:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&i.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",0!==i.toneMapping?"#define TONE_MAPPING":"",0!==i.toneMapping?yn.tonemapping_pars_fragment:"",0!==i.toneMapping?os("toneMapping",i.toneMapping):"",i.dithering?"#define DITHERING":"",i.opaque?"#define OPAQUE":"",yn.encodings_pars_fragment,as("linearToOutputTexel",i.outputEncoding),i.useDepthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(ls).join("\n")),c=ds(c),c=cs(c,i),c=hs(c,i),h=ds(h),h=cs(h,i),h=hs(h,i),c=gs(c),h=gs(h),i.isWebGL2&&!0!==i.isRawShaderMaterial&&(M="#version 300 es\n",y=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+y,_=["#define varying in",i.glslVersion===dt?"":"layout(location = 0) out highp vec4 pc_fragColor;",i.glslVersion===dt?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+_);const b=M+_+h,w=ns(a,35633,M+y+c),S=ns(a,35632,b);if(a.attachShader(x,w),a.attachShader(x,S),void 0!==i.index0AttributeName?a.bindAttribLocation(x,0,i.index0AttributeName):!0===i.morphTargets&&a.bindAttribLocation(x,0,"position"),a.linkProgram(x),t.debug.checkShaderErrors){const t=a.getProgramInfoLog(x).trim(),e=a.getShaderInfoLog(w).trim(),i=a.getShaderInfoLog(S).trim();let n=!0,r=!0;if(!1===a.getProgramParameter(x,35714)){n=!1;const e=ss(a,w,"vertex"),i=ss(a,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+a.getError()+" - VALIDATE_STATUS "+a.getProgramParameter(x,35715)+"\n\nProgram Info Log: "+t+"\n"+e+"\n"+i)}else""!==t?console.warn("THREE.WebGLProgram: Program Info Log:",t):""!==e&&""!==i||(r=!1);r&&(this.diagnostics={runnable:n,programLog:t,vertexShader:{log:e,prefix:y},fragmentShader:{log:i,prefix:_}})}let T,A;return a.deleteShader(w),a.deleteShader(S),this.getUniforms=function(){return void 0===T&&(T=new is(a,x)),T},this.getAttributes=function(){return void 0===A&&(A=function(t,e){const i={},n=t.getProgramParameter(e,35721);for(let r=0;r<n;r++){const n=t.getActiveAttrib(e,r),s=n.name;let a=1;35674===n.type&&(a=2),35675===n.type&&(a=3),35676===n.type&&(a=4),i[s]={type:n.type,location:t.getAttribLocation(e,s),locationSize:a}}return i}(a,x)),A},this.destroy=function(){n.releaseStatesOfProgram(this),a.deleteProgram(x),this.program=void 0},this.name=i.shaderName,this.id=rs++,this.cacheKey=e,this.usedTimes=1,this.program=x,this.vertexShader=w,this.fragmentShader=S,this}let Ms=0;class bs{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const e=t.vertexShader,i=t.fragmentShader,n=this._getShaderStage(e),r=this._getShaderStage(i),s=this._getShaderCacheForMaterial(t);return!1===s.has(n)&&(s.add(n),n.usedTimes++),!1===s.has(r)&&(s.add(r),r.usedTimes++),this}remove(t){const e=this.materialCache.get(t);for(const t of e)t.usedTimes--,0===t.usedTimes&&this.shaderCache.delete(t.code);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const e=this.materialCache;return!1===e.has(t)&&e.set(t,new Set),e.get(t)}_getShaderStage(t){const e=this.shaderCache;if(!1===e.has(t)){const i=new ws(t);e.set(t,i)}return e.get(t)}}class ws{constructor(t){this.id=Ms++,this.code=t,this.usedTimes=0}}function Ss(t,e,i,n,r,s,a){const o=new He,c=new bs,h=[],u=r.isWebGL2,d=r.logarithmicDepthBuffer,p=r.vertexTextures;let m=r.precision;const f={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"};return{getParameters:function(s,o,h,g,v){const x=g.fog,y=v.geometry,_=s.isMeshStandardMaterial?g.environment:null,M=(s.isMeshStandardMaterial?i:e).get(s.envMap||_),b=M&&M.mapping===l?M.image.height:null,w=f[s.type];null!==s.precision&&(m=r.getMaxPrecision(s.precision),m!==s.precision&&console.warn("THREE.WebGLProgram.getParameters:",s.precision,"not supported, using",m,"instead."));const S=y.morphAttributes.position||y.morphAttributes.normal||y.morphAttributes.color,T=void 0!==S?S.length:0;let A,E,C,L,R=0;if(void 0!==y.morphAttributes.position&&(R=1),void 0!==y.morphAttributes.normal&&(R=2),void 0!==y.morphAttributes.color&&(R=3),w){const t=Mn[w];A=t.vertexShader,E=t.fragmentShader}else A=s.vertexShader,E=s.fragmentShader,c.update(s),C=c.getVertexShaderID(s),L=c.getFragmentShaderID(s);const P=t.getRenderTarget(),I=s.alphaTest>0,D=s.clearcoat>0,N=s.iridescence>0;return{isWebGL2:u,shaderID:w,shaderName:s.type,vertexShader:A,fragmentShader:E,defines:s.defines,customVertexShaderID:C,customFragmentShaderID:L,isRawShaderMaterial:!0===s.isRawShaderMaterial,glslVersion:s.glslVersion,precision:m,instancing:!0===v.isInstancedMesh,instancingColor:!0===v.isInstancedMesh&&null!==v.instanceColor,supportsVertexTextures:p,outputEncoding:null===P?t.outputEncoding:!0===P.isXRRenderTarget?P.texture.encoding:at,map:!!s.map,matcap:!!s.matcap,envMap:!!M,envMapMode:M&&M.mapping,envMapCubeUVHeight:b,lightMap:!!s.lightMap,aoMap:!!s.aoMap,emissiveMap:!!s.emissiveMap,bumpMap:!!s.bumpMap,normalMap:!!s.normalMap,objectSpaceNormalMap:1===s.normalMapType,tangentSpaceNormalMap:0===s.normalMapType,decodeVideoTexture:!!s.map&&!0===s.map.isVideoTexture&&s.map.encoding===ot,clearcoat:D,clearcoatMap:D&&!!s.clearcoatMap,clearcoatRoughnessMap:D&&!!s.clearcoatRoughnessMap,clearcoatNormalMap:D&&!!s.clearcoatNormalMap,iridescence:N,iridescenceMap:N&&!!s.iridescenceMap,iridescenceThicknessMap:N&&!!s.iridescenceThicknessMap,displacementMap:!!s.displacementMap,roughnessMap:!!s.roughnessMap,metalnessMap:!!s.metalnessMap,specularMap:!!s.specularMap,specularIntensityMap:!!s.specularIntensityMap,specularColorMap:!!s.specularColorMap,opaque:!1===s.transparent&&1===s.blending,alphaMap:!!s.alphaMap,alphaTest:I,gradientMap:!!s.gradientMap,sheen:s.sheen>0,sheenColorMap:!!s.sheenColorMap,sheenRoughnessMap:!!s.sheenRoughnessMap,transmission:s.transmission>0,transmissionMap:!!s.transmissionMap,thicknessMap:!!s.thicknessMap,combine:s.combine,vertexTangents:!!s.normalMap&&!!y.attributes.tangent,vertexColors:s.vertexColors,vertexAlphas:!0===s.vertexColors&&!!y.attributes.color&&4===y.attributes.color.itemSize,vertexUvs:!!(s.map||s.bumpMap||s.normalMap||s.specularMap||s.alphaMap||s.emissiveMap||s.roughnessMap||s.metalnessMap||s.clearcoatMap||s.clearcoatRoughnessMap||s.clearcoatNormalMap||s.iridescenceMap||s.iridescenceThicknessMap||s.displacementMap||s.transmissionMap||s.thicknessMap||s.specularIntensityMap||s.specularColorMap||s.sheenColorMap||s.sheenRoughnessMap),uvsVertexOnly:!(s.map||s.bumpMap||s.normalMap||s.specularMap||s.alphaMap||s.emissiveMap||s.roughnessMap||s.metalnessMap||s.clearcoatNormalMap||s.iridescenceMap||s.iridescenceThicknessMap||s.transmission>0||s.transmissionMap||s.thicknessMap||s.specularIntensityMap||s.specularColorMap||s.sheen>0||s.sheenColorMap||s.sheenRoughnessMap||!s.displacementMap),fog:!!x,useFog:!0===s.fog,fogExp2:x&&x.isFogExp2,flatShading:!!s.flatShading,sizeAttenuation:s.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===v.isSkinnedMesh,morphTargets:void 0!==y.morphAttributes.position,morphNormals:void 0!==y.morphAttributes.normal,morphColors:void 0!==y.morphAttributes.color,morphTargetsCount:T,morphTextureStride:R,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:s.dithering,shadowMapEnabled:t.shadowMap.enabled&&h.length>0,shadowMapType:t.shadowMap.type,toneMapping:s.toneMapped?t.toneMapping:0,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:s.premultipliedAlpha,doubleSided:2===s.side,flipSided:1===s.side,useDepthPacking:!!s.depthPacking,depthPacking:s.depthPacking||0,index0AttributeName:s.index0AttributeName,extensionDerivatives:s.extensions&&s.extensions.derivatives,extensionFragDepth:s.extensions&&s.extensions.fragDepth,extensionDrawBuffers:s.extensions&&s.extensions.drawBuffers,extensionShaderTextureLOD:s.extensions&&s.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||n.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||n.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||n.has("EXT_shader_texture_lod"),customProgramCacheKey:s.customProgramCacheKey()}},getProgramCacheKey:function(e){const i=[];if(e.shaderID?i.push(e.shaderID):(i.push(e.customVertexShaderID),i.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)i.push(t),i.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.envMapMode),t.push(e.envMapCubeUVHeight),t.push(e.combine),t.push(e.vertexUvs),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.morphTargetsCount),t.push(e.morphAttributeCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.depthPacking)}(i,e),function(t,e){o.disableAll(),e.isWebGL2&&o.enable(0);e.supportsVertexTextures&&o.enable(1);e.instancing&&o.enable(2);e.instancingColor&&o.enable(3);e.map&&o.enable(4);e.matcap&&o.enable(5);e.envMap&&o.enable(6);e.lightMap&&o.enable(7);e.aoMap&&o.enable(8);e.emissiveMap&&o.enable(9);e.bumpMap&&o.enable(10);e.normalMap&&o.enable(11);e.objectSpaceNormalMap&&o.enable(12);e.tangentSpaceNormalMap&&o.enable(13);e.clearcoat&&o.enable(14);e.clearcoatMap&&o.enable(15);e.clearcoatRoughnessMap&&o.enable(16);e.clearcoatNormalMap&&o.enable(17);e.iridescence&&o.enable(18);e.iridescenceMap&&o.enable(19);e.iridescenceThicknessMap&&o.enable(20);e.displacementMap&&o.enable(21);e.specularMap&&o.enable(22);e.roughnessMap&&o.enable(23);e.metalnessMap&&o.enable(24);e.gradientMap&&o.enable(25);e.alphaMap&&o.enable(26);e.alphaTest&&o.enable(27);e.vertexColors&&o.enable(28);e.vertexAlphas&&o.enable(29);e.vertexUvs&&o.enable(30);e.vertexTangents&&o.enable(31);e.uvsVertexOnly&&o.enable(32);e.fog&&o.enable(33);t.push(o.mask),o.disableAll(),e.useFog&&o.enable(0);e.flatShading&&o.enable(1);e.logarithmicDepthBuffer&&o.enable(2);e.skinning&&o.enable(3);e.morphTargets&&o.enable(4);e.morphNormals&&o.enable(5);e.morphColors&&o.enable(6);e.premultipliedAlpha&&o.enable(7);e.shadowMapEnabled&&o.enable(8);e.physicallyCorrectLights&&o.enable(9);e.doubleSided&&o.enable(10);e.flipSided&&o.enable(11);e.useDepthPacking&&o.enable(12);e.dithering&&o.enable(13);e.specularIntensityMap&&o.enable(14);e.specularColorMap&&o.enable(15);e.transmission&&o.enable(16);e.transmissionMap&&o.enable(17);e.thicknessMap&&o.enable(18);e.sheen&&o.enable(19);e.sheenColorMap&&o.enable(20);e.sheenRoughnessMap&&o.enable(21);e.decodeVideoTexture&&o.enable(22);e.opaque&&o.enable(23);t.push(o.mask)}(i,e),i.push(t.outputEncoding)),i.push(e.customProgramCacheKey),i.join()},getUniforms:function(t){const e=f[t.type];let i;if(e){const t=Mn[e];i=tn.clone(t.uniforms)}else i=t.uniforms;return i},acquireProgram:function(e,i){let n;for(let t=0,e=h.length;t<e;t++){const e=h[t];if(e.cacheKey===i){n=e,++n.usedTimes;break}}return void 0===n&&(n=new _s(t,i,e,s),h.push(n)),n},releaseProgram:function(t){if(0==--t.usedTimes){const e=h.indexOf(t);h[e]=h[h.length-1],h.pop(),t.destroy()}},releaseShaderCache:function(t){c.remove(t)},programs:h,dispose:function(){c.dispose()}}}function Ts(){let t=new WeakMap;return{get:function(e){let i=t.get(e);return void 0===i&&(i={},t.set(e,i)),i},remove:function(e){t.delete(e)},update:function(e,i,n){t.get(e)[i]=n},dispose:function(){t=new WeakMap}}}function As(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function Es(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Cs(){const t=[];let e=0;const i=[],n=[],r=[];function s(i,n,r,s,a,o){let l=t[e];return void 0===l?(l={id:i.id,object:i,geometry:n,material:r,groupOrder:s,renderOrder:i.renderOrder,z:a,group:o},t[e]=l):(l.id=i.id,l.object=i,l.geometry=n,l.material=r,l.groupOrder=s,l.renderOrder=i.renderOrder,l.z=a,l.group=o),e++,l}return{opaque:i,transmissive:n,transparent:r,init:function(){e=0,i.length=0,n.length=0,r.length=0},push:function(t,e,a,o,l,c){const h=s(t,e,a,o,l,c);a.transmission>0?n.push(h):!0===a.transparent?r.push(h):i.push(h)},unshift:function(t,e,a,o,l,c){const h=s(t,e,a,o,l,c);a.transmission>0?n.unshift(h):!0===a.transparent?r.unshift(h):i.unshift(h)},finish:function(){for(let i=e,n=t.length;i<n;i++){const e=t[i];if(null===e.id)break;e.id=null,e.object=null,e.geometry=null,e.material=null,e.group=null}},sort:function(t,e){i.length>1&&i.sort(t||As),n.length>1&&n.sort(e||Es),r.length>1&&r.sort(e||Es)}}}function Ls(){let t=new WeakMap;return{get:function(e,i){let n;return!1===t.has(e)?(n=new Cs,t.set(e,[n])):i>=t.get(e).length?(n=new Cs,t.get(e).push(n)):n=t.get(e)[i],n},dispose:function(){t=new WeakMap}}}function Rs(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let i;switch(e.type){case"DirectionalLight":i={direction:new ee,color:new Ht};break;case"SpotLight":i={position:new ee,direction:new ee,color:new Ht,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":i={position:new ee,color:new Ht,distance:0,decay:0};break;case"HemisphereLight":i={direction:new ee,skyColor:new Ht,groundColor:new Ht};break;case"RectAreaLight":i={color:new Ht,position:new ee,halfWidth:new ee,halfHeight:new ee};}return t[e.id]=i,i}}}let Ps=0;function Is(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function Ds(t,e){const i=new Rs,n=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let i;switch(e.type){case"DirectionalLight":case"SpotLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Et};break;case"PointLight":i={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Et,shadowCameraNear:1,shadowCameraFar:1e3};}return t[e.id]=i,i}}}(),r={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:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let t=0;t<9;t++)r.probe.push(new ee);const s=new ee,a=new Ie,o=new Ie;return{setup:function(s,a){let o=0,l=0,c=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let h=0,u=0,d=0,p=0,m=0,f=0,g=0,v=0;s.sort(Is);const x=!0!==a?Math.PI:1;for(let t=0,e=s.length;t<e;t++){const e=s[t],a=e.color,y=e.intensity,_=e.distance,M=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)o+=a.r*y*x,l+=a.g*y*x,c+=a.b*y*x;else if(e.isLightProbe)for(let t=0;t<9;t++)r.probe[t].addScaledVector(e.sh.coefficients[t],y);else if(e.isDirectionalLight){const t=i.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*x),e.castShadow){const t=e.shadow,i=n.get(e);i.shadowBias=t.bias,i.shadowNormalBias=t.normalBias,i.shadowRadius=t.radius,i.shadowMapSize=t.mapSize,r.directionalShadow[h]=i,r.directionalShadowMap[h]=M,r.directionalShadowMatrix[h]=e.shadow.matrix,f++}r.directional[h]=t,h++}else if(e.isSpotLight){const t=i.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(a).multiplyScalar(y*x),t.distance=_,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,i=n.get(e);i.shadowBias=t.bias,i.shadowNormalBias=t.normalBias,i.shadowRadius=t.radius,i.shadowMapSize=t.mapSize,r.spotShadow[d]=i,r.spotShadowMap[d]=M,r.spotShadowMatrix[d]=e.shadow.matrix,v++}r.spot[d]=t,d++}else if(e.isRectAreaLight){const t=i.get(e);t.color.copy(a).multiplyScalar(y),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),r.rectArea[p]=t,p++}else if(e.isPointLight){const t=i.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*x),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,i=n.get(e);i.shadowBias=t.bias,i.shadowNormalBias=t.normalBias,i.shadowRadius=t.radius,i.shadowMapSize=t.mapSize,i.shadowCameraNear=t.camera.near,i.shadowCameraFar=t.camera.far,r.pointShadow[u]=i,r.pointShadowMap[u]=M,r.pointShadowMatrix[u]=e.shadow.matrix,g++}r.point[u]=t,u++}else if(e.isHemisphereLight){const t=i.get(e);t.skyColor.copy(e.color).multiplyScalar(y*x),t.groundColor.copy(e.groundColor).multiplyScalar(y*x),r.hemi[m]=t,m++}}p>0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=_n.LTC_FLOAT_1,r.rectAreaLTC2=_n.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=_n.LTC_HALF_1,r.rectAreaLTC2=_n.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=o,r.ambient[1]=l,r.ambient[2]=c;const y=r.hash;y.directionalLength===h&&y.pointLength===u&&y.spotLength===d&&y.rectAreaLength===p&&y.hemiLength===m&&y.numDirectionalShadows===f&&y.numPointShadows===g&&y.numSpotShadows===v||(r.directional.length=h,r.spot.length=d,r.rectArea.length=p,r.point.length=u,r.hemi.length=m,r.directionalShadow.length=f,r.directionalShadowMap.length=f,r.pointShadow.length=g,r.pointShadowMap.length=g,r.spotShadow.length=v,r.spotShadowMap.length=v,r.directionalShadowMatrix.length=f,r.pointShadowMatrix.length=g,r.spotShadowMatrix.length=v,y.directionalLength=h,y.pointLength=u,y.spotLength=d,y.rectAreaLength=p,y.hemiLength=m,y.numDirectionalShadows=f,y.numPointShadows=g,y.numSpotShadows=v,r.version=Ps++)},setupView:function(t,e){let i=0,n=0,l=0,c=0,h=0;const u=e.matrixWorldInverse;for(let e=0,d=t.length;e<d;e++){const d=t[e];if(d.isDirectionalLight){const t=r.directional[i];t.direction.setFromMatrixPosition(d.matrixWorld),s.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),i++}else if(d.isSpotLight){const t=r.spot[l];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(u),t.direction.setFromMatrixPosition(d.matrixWorld),s.setFromMatrixPosition(d.target.matrixWorld),t.direction.sub(s),t.direction.transformDirection(u),l++}else if(d.isRectAreaLight){const t=r.rectArea[c];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(u),o.identity(),a.copy(d.matrixWorld),a.premultiply(u),o.extractRotation(a),t.halfWidth.set(.5*d.width,0,0),t.halfHeight.set(0,.5*d.height,0),t.halfWidth.applyMatrix4(o),t.halfHeight.applyMatrix4(o),c++}else if(d.isPointLight){const t=r.point[n];t.position.setFromMatrixPosition(d.matrixWorld),t.position.applyMatrix4(u),n++}else if(d.isHemisphereLight){const t=r.hemi[h];t.direction.setFromMatrixPosition(d.matrixWorld),t.direction.transformDirection(u),h++}}},state:r}}function Ns(t,e){const i=new Ds(t,e),n=[],r=[];return{init:function(){n.length=0,r.length=0},state:{lightsArray:n,shadowsArray:r,lights:i},setupLights:function(t){i.setup(n,t)},setupLightsView:function(t){i.setupView(n,t)},pushLight:function(t){n.push(t)},pushShadow:function(t){r.push(t)}}}function Os(t,e){let i=new WeakMap;return{get:function(n,r=0){let s;return!1===i.has(n)?(s=new Ns(t,e),i.set(n,[s])):r>=i.get(n).length?(s=new Ns(t,e),i.get(n).push(s)):s=i.get(n)[r],s},dispose:function(){i=new WeakMap}}}class zs extends gi{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class Fs extends gi{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.referencePosition=new ee,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}function Bs(t,e,i){let n=new fn;const r=new Et,s=new Et,a=new Jt,o=new zs({depthPacking:3201}),l=new Fs,c={},h=i.maxTextureSize,u={0:1,1:0,2:2},p=new en({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Et},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\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),m=p.clone();m.defines.HORIZONTAL_PASS=1;const f=new Pi;f.setAttribute("position",new _i(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const g=new Zi(f,p),v=this;function x(i,n){const s=e.update(g);p.defines.VSM_SAMPLES!==i.blurSamples&&(p.defines.VSM_SAMPLES=i.blurSamples,m.defines.VSM_SAMPLES=i.blurSamples,p.needsUpdate=!0,m.needsUpdate=!0),null===i.mapPass&&(i.mapPass=new Kt(r.x,r.y)),p.uniforms.shadow_pass.value=i.map.texture,p.uniforms.resolution.value=i.mapSize,p.uniforms.radius.value=i.radius,t.setRenderTarget(i.mapPass),t.clear(),t.renderBufferDirect(n,null,s,p,g,null),m.uniforms.shadow_pass.value=i.mapPass.texture,m.uniforms.resolution.value=i.mapSize,m.uniforms.radius.value=i.radius,t.setRenderTarget(i.map),t.clear(),t.renderBufferDirect(n,null,s,m,g,null)}function y(e,i,n,r,s,a){let h=null;const d=!0===n.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(h=void 0!==d?d:!0===n.isPointLight?l:o,t.localClippingEnabled&&!0===i.clipShadows&&Array.isArray(i.clippingPlanes)&&0!==i.clippingPlanes.length||i.displacementMap&&0!==i.displacementScale||i.alphaMap&&i.alphaTest>0){const t=h.uuid,e=i.uuid;let n=c[t];void 0===n&&(n={},c[t]=n);let r=n[e];void 0===r&&(r=h.clone(),n[e]=r),h=r}return h.visible=i.visible,h.wireframe=i.wireframe,h.side=3===a?null!==i.shadowSide?i.shadowSide:i.side:null!==i.shadowSide?i.shadowSide:u[i.side],h.alphaMap=i.alphaMap,h.alphaTest=i.alphaTest,h.clipShadows=i.clipShadows,h.clippingPlanes=i.clippingPlanes,h.clipIntersection=i.clipIntersection,h.displacementMap=i.displacementMap,h.displacementScale=i.displacementScale,h.displacementBias=i.displacementBias,h.wireframeLinewidth=i.wireframeLinewidth,h.linewidth=i.linewidth,!0===n.isPointLight&&!0===h.isMeshDistanceMaterial&&(h.referencePosition.setFromMatrixPosition(n.matrixWorld),h.nearDistance=r,h.farDistance=s),h}function _(i,r,s,a,o){if(!1===i.visible)return;if(i.layers.test(r.layers)&&(i.isMesh||i.isLine||i.isPoints)&&(i.castShadow||i.receiveShadow&&3===o)&&(!i.frustumCulled||n.intersectsObject(i))){i.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse,i.matrixWorld);const n=e.update(i),r=i.material;if(Array.isArray(r)){const e=n.groups;for(let l=0,c=e.length;l<c;l++){const c=e[l],h=r[c.materialIndex];if(h&&h.visible){const e=y(i,h,a,s.near,s.far,o);t.renderBufferDirect(s,null,n,e,i,c)}}}else if(r.visible){const e=y(i,r,a,s.near,s.far,o);t.renderBufferDirect(s,null,n,e,i,null)}}const l=i.children;for(let t=0,e=l.length;t<e;t++)_(l[t],r,s,a,o)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1,this.render=function(e,i,o){if(!1===v.enabled)return;if(!1===v.autoUpdate&&!1===v.needsUpdate)return;if(0===e.length)return;const l=t.getRenderTarget(),c=t.getActiveCubeFace(),u=t.getActiveMipmapLevel(),p=t.state;p.setBlending(0),p.buffers.color.setClear(1,1,1,1),p.buffers.depth.setTest(!0),p.setScissorTest(!1);for(let l=0,c=e.length;l<c;l++){const c=e[l],u=c.shadow;if(void 0===u){console.warn("THREE.WebGLShadowMap:",c,"has no shadow.");continue}if(!1===u.autoUpdate&&!1===u.needsUpdate)continue;r.copy(u.mapSize);const m=u.getFrameExtents();if(r.multiply(m),s.copy(u.mapSize),(r.x>h||r.y>h)&&(r.x>h&&(s.x=Math.floor(h/m.x),r.x=s.x*m.x,u.mapSize.x=s.x),r.y>h&&(s.y=Math.floor(h/m.y),r.y=s.y*m.y,u.mapSize.y=s.y)),null===u.map){const t=3!==this.type?{minFilter:d,magFilter:d}:{};u.map=new Kt(r.x,r.y,t),u.map.texture.name=c.name+".shadowMap",u.camera.updateProjectionMatrix()}t.setRenderTarget(u.map),t.clear();const f=u.getViewportCount();for(let t=0;t<f;t++){const e=u.getViewport(t);a.set(s.x*e.x,s.y*e.y,s.x*e.z,s.y*e.w),p.viewport(a),u.updateMatrices(c,t),n=u.getFrustum(),_(i,o,u.camera,c,this.type)}!0!==u.isPointLightShadow&&3===this.type&&x(u,o),u.needsUpdate=!1}v.needsUpdate=!1,t.setRenderTarget(l,c,u)}}function Us(t,e,n){const r=n.isWebGL2;const s=new function(){let e=!1;const i=new Jt;let n=null;const r=new Jt(0,0,0,0);return{setMask:function(i){n===i||e||(t.colorMask(i,i,i,i),n=i)},setLocked:function(t){e=t},setClear:function(e,n,s,a,o){!0===o&&(e*=a,n*=a,s*=a),i.set(e,n,s,a),!1===r.equals(i)&&(t.clearColor(e,n,s,a),r.copy(i))},reset:function(){e=!1,n=null,r.set(-1,0,0,0)}}},a=new function(){let e=!1,i=null,n=null,r=null;return{setTest:function(t){t?U(2929):k(2929)},setMask:function(n){i===n||e||(t.depthMask(n),i=n)},setFunc:function(e){if(n!==e){if(e)switch(e){case 0:t.depthFunc(512);break;case 1:t.depthFunc(519);break;case 2:t.depthFunc(513);break;case 3:default:t.depthFunc(515);break;case 4:t.depthFunc(514);break;case 5:t.depthFunc(518);break;case 6:t.depthFunc(516);break;case 7:t.depthFunc(517);}else t.depthFunc(515);n=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,i=null,n=null,r=null}}},o=new function(){let e=!1,i=null,n=null,r=null,s=null,a=null,o=null,l=null,c=null;return{setTest:function(t){e||(t?U(2960):k(2960))},setMask:function(n){i===n||e||(t.stencilMask(n),i=n)},setFunc:function(e,i,a){n===e&&r===i&&s===a||(t.stencilFunc(e,i,a),n=e,r=i,s=a)},setOp:function(e,i,n){a===e&&o===i&&l===n||(t.stencilOp(e,i,n),a=e,o=i,l=n)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,i=null,n=null,r=null,s=null,a=null,o=null,l=null,c=null}}};let l={},c={},h=new WeakMap,u=[],d=null,p=!1,m=null,f=null,g=null,v=null,x=null,y=null,_=null,M=!1,b=null,w=null,S=null,T=null,A=null;const E=t.getParameter(35661);let C=!1,L=0;const R=t.getParameter(7938);-1!==R.indexOf("WebGL")?(L=parseFloat(/^WebGL (\d)/.exec(R)[1]),C=L>=1):-1!==R.indexOf("OpenGL ES")&&(L=parseFloat(/^OpenGL ES (\d)/.exec(R)[1]),C=L>=2);let P=null,I={};const D=t.getParameter(3088),N=t.getParameter(2978),O=new Jt().fromArray(D),z=new Jt().fromArray(N);function F(e,i,n){const r=new Uint8Array(4),s=t.createTexture();t.bindTexture(e,s),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;e<n;e++)t.texImage2D(i+e,0,6408,1,1,0,6408,5121,r);return s}const B={};function U(e){!0!==l[e]&&(t.enable(e),l[e]=!0)}function k(e){!1!==l[e]&&(t.disable(e),l[e]=!1)}B[3553]=F(3553,3553,1),B[34067]=F(34067,34069,6),s.setClear(0,0,0,1),a.setClear(1),o.setClear(0),U(2929),a.setFunc(3),W(!1),j(1),U(2884),H(0);const G={[i]:32774,101:32778,102:32779};if(r)G[103]=32775,G[104]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(G[103]=t.MIN_EXT,G[104]=t.MAX_EXT)}const V={200:0,201:1,202:768,204:770,210:776,208:774,206:772,203:769,205:771,209:775,207:773};function H(e,n,r,s,a,o,l,c){if(0!==e){if(!1===p&&(U(3042),p=!0),5===e)a=a||n,o=o||r,l=l||s,n===f&&a===x||(t.blendEquationSeparate(G[n],G[a]),f=n,x=a),r===g&&s===v&&o===y&&l===_||(t.blendFuncSeparate(V[r],V[s],V[o],V[l]),g=r,v=s,y=o,_=l),m=e,M=null;else if(e!==m||c!==M){if(f===i&&x===i||(t.blendEquation(32774),f=i,x=i),c)switch(e){case 1:t.blendFuncSeparate(1,771,1,771);break;case 2:t.blendFunc(1,1);break;case 3:t.blendFuncSeparate(0,769,0,1);break;case 4:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e);}else switch(e){case 1:t.blendFuncSeparate(770,771,1,771);break;case 2:t.blendFunc(770,1);break;case 3:t.blendFuncSeparate(0,769,0,1);break;case 4:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e);}g=null,v=null,y=null,_=null,m=e,M=c}}else!0===p&&(k(3042),p=!1)}function W(e){b!==e&&(e?t.frontFace(2304):t.frontFace(2305),b=e)}function j(e){0!==e?(U(2884),e!==w&&(1===e?t.cullFace(1029):2===e?t.cullFace(1028):t.cullFace(1032))):k(2884),w=e}function q(e,i,n){e?(U(32823),T===i&&A===n||(t.polygonOffset(i,n),T=i,A=n)):k(32823)}function X(e){void 0===e&&(e=33984+E-1),P!==e&&(t.activeTexture(e),P=e)}return{buffers:{color:s,depth:a,stencil:o},enable:U,disable:k,bindFramebuffer:function(e,i){return c[e]!==i&&(t.bindFramebuffer(e,i),c[e]=i,r&&(36009===e&&(c[36160]=i),36160===e&&(c[36009]=i)),!0)},drawBuffers:function(i,r){let s=u,a=!1;if(i){if(s=h.get(r),void 0===s&&(s=[],h.set(r,s)),i.isWebGLMultipleRenderTargets){const t=i.texture;if(s.length!==t.length||36064!==s[0]){for(let e=0,i=t.length;e<i;e++)s[e]=36064+e;s.length=t.length,a=!0}}else 36064!==s[0]&&(s[0]=36064,a=!0);}else 1029!==s[0]&&(s[0]=1029,a=!0);a&&(n.isWebGL2?t.drawBuffers(s):e.get("WEBGL_draw_buffers").drawBuffersWEBGL(s))},useProgram:function(e){return d!==e&&(t.useProgram(e),d=e,!0)},setBlending:H,setMaterial:function(t,e){2===t.side?k(2884):U(2884);let i=1===t.side;e&&(i=!i),W(i),1===t.blending&&!1===t.transparent?H(0):H(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),a.setFunc(t.depthFunc),a.setTest(t.depthTest),a.setMask(t.depthWrite),s.setMask(t.colorWrite);const n=t.stencilWrite;o.setTest(n),n&&(o.setMask(t.stencilWriteMask),o.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),o.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),q(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?U(32926):k(32926)},setFlipSided:W,setCullFace:j,setLineWidth:function(e){e!==S&&(C&&t.lineWidth(e),S=e)},setPolygonOffset:q,setScissorTest:function(t){t?U(3089):k(3089)},activeTexture:X,bindTexture:function(e,i){null===P&&X();let n=I[P];void 0===n&&(n={type:void 0,texture:void 0},I[P]=n),n.type===e&&n.texture===i||(t.bindTexture(e,i||B[e]),n.type=e,n.texture=i)},unbindTexture:function(){const e=I[P];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage2D:function(){try{t.texStorage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texStorage3D:function(){try{t.texStorage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage2D:function(){try{t.texSubImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texSubImage3D:function(){try{t.texSubImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},compressedTexSubImage2D:function(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===O.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),O.copy(e))},viewport:function(e){!1===z.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),z.copy(e))},reset:function(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===r&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),l={},P=null,I={},c={},h=new WeakMap,u=[],d=null,p=!1,m=null,f=null,g=null,v=null,x=null,y=null,_=null,M=!1,b=null,w=null,S=null,T=null,A=null,O.set(0,0,t.canvas.width,t.canvas.height),z.set(0,0,t.canvas.width,t.canvas.height),s.reset(),a.reset(),o.reset()}}}function ks(t,e,i,n,r,s,a){const o=r.isWebGL2,l=r.maxTextures,E=r.maxCubemapSize,C=r.maxTextureSize,L=r.maxSamples,R=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,P=/OculusBrowser/g.test(navigator.userAgent),I=new WeakMap;let D;const N=new WeakMap;let O=!1;try{O="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(t){}function z(t,e){return O?new OffscreenCanvas(t,e):It("canvas")}function F(t,e,i,n){let r=1;if((t.width>n||t.height>n)&&(r=n/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const n=e?Tt:Math.floor,s=n(r*t.width),a=n(r*t.height);void 0===D&&(D=z(s,a));const o=i?z(s,a):D;o.width=s,o.height=a;return o.getContext("2d").drawImage(t,0,0,s,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+s+"x"+a+")."),o}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function B(t){return wt(t.width)&&wt(t.height)}function U(t,e){return t.generateMipmaps&&e&&t.minFilter!==d&&t.minFilter!==f}function k(e){t.generateMipmap(e)}function G(i,n,r,s,a=!1){if(!1===o)return n;if(null!==i){if(void 0!==t[i])return t[i];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+i+"'")}let l=n;return 6403===n&&(5126===r&&(l=33326),5131===r&&(l=33325),5121===r&&(l=33321)),33319===n&&(5126===r&&(l=33328),5131===r&&(l=33327),5121===r&&(l=33323)),6408===n&&(5126===r&&(l=34836),5131===r&&(l=34842),5121===r&&(l=s===ot&&!1===a?35907:32856),32819===r&&(l=32854),32820===r&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||e.get("EXT_color_buffer_float"),l}function V(t,e,i){return!0===U(t,i)||t.isFramebufferTexture&&t.minFilter!==d&&t.minFilter!==f?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function H(t){return t===d||t===p||t===m?9728:9729}function W(t){const e=t.target;e.removeEventListener("dispose",W),function(t){const e=n.get(t);if(void 0===e.__webglInit)return;const i=t.source,r=N.get(i);if(r){const n=r[e.__cacheKey];n.usedTimes--,0===n.usedTimes&&q(t),0===Object.keys(r).length&&N.delete(i)}n.remove(t)}(e),e.isVideoTexture&&I.delete(e)}function j(e){const i=e.target;i.removeEventListener("dispose",j),function(e){const i=e.texture,r=n.get(e),s=n.get(i);void 0!==s.__webglTexture&&(t.deleteTexture(s.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(r.__webglFramebuffer[e]),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[e]);else{if(t.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer)for(let e=0;e<r.__webglColorRenderbuffer.length;e++)r.__webglColorRenderbuffer[e]&&t.deleteRenderbuffer(r.__webglColorRenderbuffer[e]);r.__webglDepthRenderbuffer&&t.deleteRenderbuffer(r.__webglDepthRenderbuffer)}if(e.isWebGLMultipleRenderTargets)for(let e=0,r=i.length;e<r;e++){const r=n.get(i[e]);r.__webglTexture&&(t.deleteTexture(r.__webglTexture),a.memory.textures--),n.remove(i[e])}n.remove(i),n.remove(e)}(i)}function q(e){const i=n.get(e);t.deleteTexture(i.__webglTexture);const r=e.source;delete N.get(r)[i.__cacheKey],a.memory.textures--}let X=0;function Y(t,e){const r=n.get(t);if(t.isVideoTexture&&function(t){const e=a.render.frame;I.get(t)!==e&&(I.set(t,e),t.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&r.__version!==t.version){const i=t.image;if(null===i)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==i.complete)return void $(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}i.activeTexture(33984+e),i.bindTexture(3553,r.__webglTexture)}const Z={[c]:10497,[h]:33071,[u]:33648},J={[d]:9728,[p]:9984,[m]:9986,[f]:9729,[g]:9985,[v]:9987};function K(i,s,a){if(a?(t.texParameteri(i,10242,Z[s.wrapS]),t.texParameteri(i,10243,Z[s.wrapT]),32879!==i&&35866!==i||t.texParameteri(i,32882,Z[s.wrapR]),t.texParameteri(i,10240,J[s.magFilter]),t.texParameteri(i,10241,J[s.minFilter])):(t.texParameteri(i,10242,33071),t.texParameteri(i,10243,33071),32879!==i&&35866!==i||t.texParameteri(i,32882,33071),s.wrapS===h&&s.wrapT===h||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(i,10240,H(s.magFilter)),t.texParameteri(i,10241,H(s.minFilter)),s.minFilter!==d&&s.minFilter!==f&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(s.type===M&&!1===e.has("OES_texture_float_linear"))return;if(!1===o&&s.type===b&&!1===e.has("OES_texture_half_float_linear"))return;(s.anisotropy>1||n.get(s).__currentAnisotropy)&&(t.texParameterf(i,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,r.getMaxAnisotropy())),n.get(s).__currentAnisotropy=s.anisotropy)}}function Q(e,i){let n=!1;void 0===e.__webglInit&&(e.__webglInit=!0,i.addEventListener("dispose",W));const r=i.source;let s=N.get(r);void 0===s&&(s={},N.set(r,s));const o=function(t){const e=[];return e.push(t.wrapS),e.push(t.wrapT),e.push(t.magFilter),e.push(t.minFilter),e.push(t.anisotropy),e.push(t.internalFormat),e.push(t.format),e.push(t.type),e.push(t.generateMipmaps),e.push(t.premultiplyAlpha),e.push(t.flipY),e.push(t.unpackAlignment),e.push(t.encoding),e.join()}(i);if(o!==e.__cacheKey){void 0===s[o]&&(s[o]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,n=!0),s[o].usedTimes++;const r=s[e.__cacheKey];void 0!==r&&(s[e.__cacheKey].usedTimes--,0===r.usedTimes&&q(i)),e.__cacheKey=o,e.__webglTexture=s[o].texture}return n}function $(e,n,r){let a=3553;n.isDataArrayTexture&&(a=35866),n.isData3DTexture&&(a=32879);const l=Q(e,n),c=n.source;if(i.activeTexture(33984+r),i.bindTexture(a,e.__webglTexture),c.version!==c.__currentVersion||!0===l){t.pixelStorei(37440,n.flipY),t.pixelStorei(37441,n.premultiplyAlpha),t.pixelStorei(3317,n.unpackAlignment),t.pixelStorei(37443,0);const e=function(t){return!o&&(t.wrapS!==h||t.wrapT!==h||t.minFilter!==d&&t.minFilter!==f)}(n)&&!1===B(n.image);let r=F(n.image,e,!1,C);r=st(n,r);const u=B(r)||o,p=s.convert(n.format,n.encoding);let m,g=s.convert(n.type),v=G(n.internalFormat,p,g,n.encoding,n.isVideoTexture);K(a,n,u);const x=n.mipmaps,b=o&&!0!==n.isVideoTexture,E=void 0===c.__currentVersion||!0===l,L=V(n,r,u);if(n.isDepthTexture)v=6402,o?v=n.type===M?36012:n.type===_?33190:n.type===w?35056:33189:n.type===M&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),n.format===T&&6402===v&&n.type!==y&&n.type!==_&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),n.type=_,g=s.convert(n.type)),n.format===A&&6402===v&&(v=34041,n.type!==w&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),n.type=w,g=s.convert(n.type))),E&&(b?i.texStorage2D(3553,1,v,r.width,r.height):i.texImage2D(3553,0,v,r.width,r.height,0,p,g,null));else if(n.isDataTexture){if(x.length>0&&u){b&&E&&i.texStorage2D(3553,L,v,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)m=x[t],b?i.texSubImage2D(3553,t,0,0,m.width,m.height,p,g,m.data):i.texImage2D(3553,t,v,m.width,m.height,0,p,g,m.data);n.generateMipmaps=!1}else b?(E&&i.texStorage2D(3553,L,v,r.width,r.height),i.texSubImage2D(3553,0,0,0,r.width,r.height,p,g,r.data)):i.texImage2D(3553,0,v,r.width,r.height,0,p,g,r.data);}else if(n.isCompressedTexture){b&&E&&i.texStorage2D(3553,L,v,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)m=x[t],n.format!==S?null!==p?b?i.compressedTexSubImage2D(3553,t,0,0,m.width,m.height,p,m.data):i.compressedTexImage2D(3553,t,v,m.width,m.height,0,m.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):b?i.texSubImage2D(3553,t,0,0,m.width,m.height,p,g,m.data):i.texImage2D(3553,t,v,m.width,m.height,0,p,g,m.data)}else if(n.isDataArrayTexture)b?(E&&i.texStorage3D(35866,L,v,r.width,r.height,r.depth),i.texSubImage3D(35866,0,0,0,0,r.width,r.height,r.depth,p,g,r.data)):i.texImage3D(35866,0,v,r.width,r.height,r.depth,0,p,g,r.data);else if(n.isData3DTexture)b?(E&&i.texStorage3D(32879,L,v,r.width,r.height,r.depth),i.texSubImage3D(32879,0,0,0,0,r.width,r.height,r.depth,p,g,r.data)):i.texImage3D(32879,0,v,r.width,r.height,r.depth,0,p,g,r.data);else if(n.isFramebufferTexture){if(E)if(b)i.texStorage2D(3553,L,v,r.width,r.height);else{let t=r.width,e=r.height;for(let n=0;n<L;n++)i.texImage2D(3553,n,v,t,e,0,p,g,null),t>>=1,e>>=1}}else if(x.length>0&&u){b&&E&&i.texStorage2D(3553,L,v,x[0].width,x[0].height);for(let t=0,e=x.length;t<e;t++)m=x[t],b?i.texSubImage2D(3553,t,0,0,p,g,m):i.texImage2D(3553,t,v,p,g,m);n.generateMipmaps=!1}else b?(E&&i.texStorage2D(3553,L,v,r.width,r.height),i.texSubImage2D(3553,0,0,0,p,g,r)):i.texImage2D(3553,0,v,p,g,r);U(n,u)&&k(a),c.__currentVersion=c.version,n.onUpdate&&n.onUpdate(n)}e.__version=n.version}function tt(e,r,a,o,l){const c=s.convert(a.format,a.encoding),h=s.convert(a.type),u=G(a.internalFormat,c,h,a.encoding);n.get(r).__hasExternalTextures||(32879===l||35866===l?i.texImage3D(l,0,u,r.width,r.height,r.depth,0,c,h,null):i.texImage2D(l,0,u,r.width,r.height,0,c,h,null)),i.bindFramebuffer(36160,e),rt(r)?R.framebufferTexture2DMultisampleEXT(36160,o,l,n.get(a).__webglTexture,0,nt(r)):t.framebufferTexture2D(36160,o,l,n.get(a).__webglTexture,0),i.bindFramebuffer(36160,null)}function et(e,i,n){if(t.bindRenderbuffer(36161,e),i.depthBuffer&&!i.stencilBuffer){let r=33189;if(n||rt(i)){const e=i.depthTexture;e&&e.isDepthTexture&&(e.type===M?r=36012:e.type===_&&(r=33190));const n=nt(i);rt(i)?R.renderbufferStorageMultisampleEXT(36161,n,r,i.width,i.height):t.renderbufferStorageMultisample(36161,n,r,i.width,i.height)}else t.renderbufferStorage(36161,r,i.width,i.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(i.depthBuffer&&i.stencilBuffer){const r=nt(i);n&&!1===rt(i)?t.renderbufferStorageMultisample(36161,r,35056,i.width,i.height):rt(i)?R.renderbufferStorageMultisampleEXT(36161,r,35056,i.width,i.height):t.renderbufferStorage(36161,34041,i.width,i.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===i.isWebGLMultipleRenderTargets?i.texture:[i.texture];for(let r=0;r<e.length;r++){const a=e[r],o=s.convert(a.format,a.encoding),l=s.convert(a.type),c=G(a.internalFormat,o,l,a.encoding),h=nt(i);n&&!1===rt(i)?t.renderbufferStorageMultisample(36161,h,c,i.width,i.height):rt(i)?R.renderbufferStorageMultisampleEXT(36161,h,c,i.width,i.height):t.renderbufferStorage(36161,c,i.width,i.height)}}t.bindRenderbuffer(36161,null)}function it(e){const r=n.get(e),s=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture&&!r.__autoAllocateDepthBuffer){if(s)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,r){if(r&&r.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(i.bindFramebuffer(36160,e),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");n.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),Y(r.depthTexture,0);const s=n.get(r.depthTexture).__webglTexture,a=nt(r);if(r.depthTexture.format===T)rt(r)?R.framebufferTexture2DMultisampleEXT(36160,36096,3553,s,0,a):t.framebufferTexture2D(36160,36096,3553,s,0);else{if(r.depthTexture.format!==A)throw new Error("Unknown depthTexture format");rt(r)?R.framebufferTexture2DMultisampleEXT(36160,33306,3553,s,0,a):t.framebufferTexture2D(36160,33306,3553,s,0)}}(r.__webglFramebuffer,e)}else if(s){r.__webglDepthbuffer=[];for(let n=0;n<6;n++)i.bindFramebuffer(36160,r.__webglFramebuffer[n]),r.__webglDepthbuffer[n]=t.createRenderbuffer(),et(r.__webglDepthbuffer[n],e,!1)}else i.bindFramebuffer(36160,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),et(r.__webglDepthbuffer,e,!1);i.bindFramebuffer(36160,null)}function nt(t){return Math.min(L,t.samples)}function rt(t){const i=n.get(t);return o&&t.samples>0&&!0===e.has("WEBGL_multisampled_render_to_texture")&&!1!==i.__useRenderToTexture}function st(t,i){const n=t.encoding,r=t.format,s=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===pt||n!==at&&(n===ot?!1===o?!0===e.has("EXT_sRGB")&&r===S?(t.format=pt,t.minFilter=f,t.generateMipmaps=!1):i=jt.sRGBToLinear(i):r===S&&s===x||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",n)),i}this.allocateTextureUnit=function(){const t=X;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),X+=1,t},this.resetTextureUnits=function(){X=0},this.setTexture2D=Y,this.setTexture2DArray=function(t,e){const r=n.get(t);t.version>0&&r.__version!==t.version?$(r,t,e):(i.activeTexture(33984+e),i.bindTexture(35866,r.__webglTexture))},this.setTexture3D=function(t,e){const r=n.get(t);t.version>0&&r.__version!==t.version?$(r,t,e):(i.activeTexture(33984+e),i.bindTexture(32879,r.__webglTexture))},this.setTextureCube=function(e,r){const a=n.get(e);e.version>0&&a.__version!==e.version?function(e,n,r){if(6!==n.image.length)return;const a=Q(e,n),l=n.source;if(i.activeTexture(33984+r),i.bindTexture(34067,e.__webglTexture),l.version!==l.__currentVersion||!0===a){t.pixelStorei(37440,n.flipY),t.pixelStorei(37441,n.premultiplyAlpha),t.pixelStorei(3317,n.unpackAlignment),t.pixelStorei(37443,0);const e=n.isCompressedTexture||n.image[0].isCompressedTexture,r=n.image[0]&&n.image[0].isDataTexture,c=[];for(let t=0;t<6;t++)c[t]=e||r?r?n.image[t].image:n.image[t]:F(n.image[t],!1,!0,E),c[t]=st(n,c[t]);const h=c[0],u=B(h)||o,d=s.convert(n.format,n.encoding),p=s.convert(n.type),m=G(n.internalFormat,d,p,n.encoding),f=o&&!0!==n.isVideoTexture,g=void 0===l.__currentVersion||!0===a;let v,x=V(n,h,u);if(K(34067,n,u),e){f&&g&&i.texStorage2D(34067,x,m,h.width,h.height);for(let t=0;t<6;t++){v=c[t].mipmaps;for(let e=0;e<v.length;e++){const r=v[e];n.format!==S?null!==d?f?i.compressedTexSubImage2D(34069+t,e,0,0,r.width,r.height,d,r.data):i.compressedTexImage2D(34069+t,e,m,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):f?i.texSubImage2D(34069+t,e,0,0,r.width,r.height,d,p,r.data):i.texImage2D(34069+t,e,m,r.width,r.height,0,d,p,r.data)}}}else{v=n.mipmaps,f&&g&&(v.length>0&&x++,i.texStorage2D(34067,x,m,c[0].width,c[0].height));for(let t=0;t<6;t++)if(r){f?i.texSubImage2D(34069+t,0,0,0,c[t].width,c[t].height,d,p,c[t].data):i.texImage2D(34069+t,0,m,c[t].width,c[t].height,0,d,p,c[t].data);for(let e=0;e<v.length;e++){const n=v[e].image[t].image;f?i.texSubImage2D(34069+t,e+1,0,0,n.width,n.height,d,p,n.data):i.texImage2D(34069+t,e+1,m,n.width,n.height,0,d,p,n.data)}}else{f?i.texSubImage2D(34069+t,0,0,0,d,p,c[t]):i.texImage2D(34069+t,0,m,d,p,c[t]);for(let e=0;e<v.length;e++){const n=v[e];f?i.texSubImage2D(34069+t,e+1,0,0,d,p,n.image[t]):i.texImage2D(34069+t,e+1,m,d,p,n.image[t])}}}U(n,u)&&k(34067),l.__currentVersion=l.version,n.onUpdate&&n.onUpdate(n)}e.__version=n.version}(a,e,r):(i.activeTexture(33984+r),i.bindTexture(34067,a.__webglTexture))},this.rebindTextures=function(t,e,i){const r=n.get(t);void 0!==e&&tt(r.__webglFramebuffer,t,t.texture,36064,3553),void 0!==i&&it(t)},this.setupRenderTarget=function(e){const l=e.texture,c=n.get(e),h=n.get(l);e.addEventListener("dispose",j),!0!==e.isWebGLMultipleRenderTargets&&(void 0===h.__webglTexture&&(h.__webglTexture=t.createTexture()),h.__version=l.version,a.memory.textures++);const u=!0===e.isWebGLCubeRenderTarget,d=!0===e.isWebGLMultipleRenderTargets,p=B(e)||o;if(u){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else{if(c.__webglFramebuffer=t.createFramebuffer(),d)if(r.drawBuffers){const i=e.texture;for(let e=0,r=i.length;e<r;e++){const r=n.get(i[e]);void 0===r.__webglTexture&&(r.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");if(o&&e.samples>0&&!1===rt(e)){const n=d?l:[l];c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=[],i.bindFramebuffer(36160,c.__webglMultisampledFramebuffer);for(let i=0;i<n.length;i++){const r=n[i];c.__webglColorRenderbuffer[i]=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer[i]);const a=s.convert(r.format,r.encoding),o=s.convert(r.type),l=G(r.internalFormat,a,o,r.encoding),h=nt(e);t.renderbufferStorageMultisample(36161,h,l,e.width,e.height),t.framebufferRenderbuffer(36160,36064+i,36161,c.__webglColorRenderbuffer[i])}t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),et(c.__webglDepthRenderbuffer,e,!0)),i.bindFramebuffer(36160,null)}}if(u){i.bindTexture(34067,h.__webglTexture),K(34067,l,p);for(let t=0;t<6;t++)tt(c.__webglFramebuffer[t],e,l,36064,34069+t);U(l,p)&&k(34067),i.unbindTexture()}else if(d){const t=e.texture;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=n.get(s);i.bindTexture(3553,a.__webglTexture),K(3553,s,p),tt(c.__webglFramebuffer,e,s,36064+r,3553),U(s,p)&&k(3553)}i.unbindTexture()}else{let t=3553;(e.isWebGL3DRenderTarget||e.isWebGLArrayRenderTarget)&&(o?t=e.isWebGL3DRenderTarget?32879:35866:console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")),i.bindTexture(t,h.__webglTexture),K(t,l,p),tt(c.__webglFramebuffer,e,l,36064,t),U(l,p)&&k(t),i.unbindTexture()}e.depthBuffer&&it(e)},this.updateRenderTargetMipmap=function(t){const e=B(t)||o,r=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let s=0,a=r.length;s<a;s++){const a=r[s];if(U(a,e)){const e=t.isWebGLCubeRenderTarget?34067:3553,r=n.get(a).__webglTexture;i.bindTexture(e,r),k(e),i.unbindTexture()}}},this.updateMultisampleRenderTarget=function(e){if(o&&e.samples>0&&!1===rt(e)){const r=e.isWebGLMultipleRenderTargets?e.texture:[e.texture],s=e.width,a=e.height;let o=16384;const l=[],c=e.stencilBuffer?33306:36096,h=n.get(e),u=!0===e.isWebGLMultipleRenderTargets;if(u)for(let e=0;e<r.length;e++)i.bindFramebuffer(36160,h.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064+e,36161,null),i.bindFramebuffer(36160,h.__webglFramebuffer),t.framebufferTexture2D(36009,36064+e,3553,null,0);i.bindFramebuffer(36008,h.__webglMultisampledFramebuffer),i.bindFramebuffer(36009,h.__webglFramebuffer);for(let i=0;i<r.length;i++){l.push(36064+i),e.depthBuffer&&l.push(c);const d=void 0!==h.__ignoreDepthValues&&h.__ignoreDepthValues;if(!1===d&&(e.depthBuffer&&(o|=256),e.stencilBuffer&&(o|=1024)),u&&t.framebufferRenderbuffer(36008,36064,36161,h.__webglColorRenderbuffer[i]),!0===d&&(t.invalidateFramebuffer(36008,[c]),t.invalidateFramebuffer(36009,[c])),u){const e=n.get(r[i]).__webglTexture;t.framebufferTexture2D(36009,36064,3553,e,0)}t.blitFramebuffer(0,0,s,a,0,0,s,a,o,9728),P&&t.invalidateFramebuffer(36008,l)}if(i.bindFramebuffer(36008,null),i.bindFramebuffer(36009,null),u)for(let e=0;e<r.length;e++){i.bindFramebuffer(36160,h.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064+e,36161,h.__webglColorRenderbuffer[e]);const s=n.get(r[e]).__webglTexture;i.bindFramebuffer(36160,h.__webglFramebuffer),t.framebufferTexture2D(36009,36064+e,3553,s,0)}i.bindFramebuffer(36009,h.__webglMultisampledFramebuffer)}},this.setupDepthRenderbuffer=it,this.setupFrameBufferTexture=tt,this.useMultisampledRTT=rt}function Gs(t,e,i){const n=i.isWebGL2;return{convert:function(i,r=null){let s;if(i===x)return 5121;if(1017===i)return 32819;if(1018===i)return 32820;if(1010===i)return 5120;if(1011===i)return 5122;if(i===y)return 5123;if(1013===i)return 5124;if(i===_)return 5125;if(i===M)return 5126;if(i===b)return n?5131:(s=e.get("OES_texture_half_float"),null!==s?s.HALF_FLOAT_OES:null);if(1021===i)return 6406;if(i===S)return 6408;if(1024===i)return 6409;if(1025===i)return 6410;if(i===T)return 6402;if(i===A)return 34041;if(1028===i)return 6403;if(1022===i)return console.warn("THREE.WebGLRenderer: THREE.RGBFormat has been removed. Use THREE.RGBAFormat instead. https://github.com/mrdoob/three.js/pull/23228"),6408;if(i===pt)return s=e.get("EXT_sRGB"),null!==s?s.SRGB_ALPHA_EXT:null;if(1029===i)return 36244;if(1030===i)return 33319;if(1031===i)return 33320;if(1033===i)return 36249;if(i===E||i===C||i===L||i===R)if(r===ot){if(s=e.get("WEBGL_compressed_texture_s3tc_srgb"),null===s)return null;if(i===E)return s.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===C)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===L)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===R)return s.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(s=e.get("WEBGL_compressed_texture_s3tc"),null===s)return null;if(i===E)return s.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===C)return s.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===L)return s.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===R)return s.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(i===P||i===I||i===D||i===N){if(s=e.get("WEBGL_compressed_texture_pvrtc"),null===s)return null;if(i===P)return s.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===I)return s.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===D)return s.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===N)return s.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(36196===i)return s=e.get("WEBGL_compressed_texture_etc1"),null!==s?s.COMPRESSED_RGB_ETC1_WEBGL:null;if(i===O||i===z){if(s=e.get("WEBGL_compressed_texture_etc"),null===s)return null;if(i===O)return r===ot?s.COMPRESSED_SRGB8_ETC2:s.COMPRESSED_RGB8_ETC2;if(i===z)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:s.COMPRESSED_RGBA8_ETC2_EAC}if(i===F||i===B||i===U||i===k||i===G||i===V||i===H||i===W||i===j||i===q||i===X||i===Y||i===Z||i===J){if(s=e.get("WEBGL_compressed_texture_astc"),null===s)return null;if(i===F)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:s.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===B)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:s.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===U)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:s.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===k)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:s.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===G)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:s.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===V)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:s.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===H)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:s.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===W)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:s.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===j)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:s.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===q)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:s.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===X)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:s.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===Y)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:s.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===Z)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:s.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===J)return r===ot?s.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:s.COMPRESSED_RGBA_ASTC_12x12_KHR}if(i===K){if(s=e.get("EXT_texture_compression_bptc"),null===s)return null;if(i===K)return r===ot?s.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:s.COMPRESSED_RGBA_BPTC_UNORM_EXT}return i===w?n?34042:(s=e.get("WEBGL_depth_texture"),null!==s?s.UNSIGNED_INT_24_8_WEBGL:null):void 0!==t[i]?t[i]:null}}}class Vs extends rn{constructor(t=[]){super(),this.isArrayCamera=!0,this.cameras=t}}class Hs extends ni{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Ws={type:"move"};class js{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Hs,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Hs,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ee,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ee),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Hs,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ee,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ee),this._grip}dispatchEvent(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(t,e,i){let n=null,r=null,s=null;const a=this._targetRay,o=this._grip,l=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState){if(l&&t.hand){s=!0;for(const n of t.hand.values()){const t=e.getJointPose(n,i);if(void 0===l.joints[n.jointName]){const t=new Hs;t.matrixAutoUpdate=!1,t.visible=!1,l.joints[n.jointName]=t,l.add(t)}const r=l.joints[n.jointName];null!==t&&(r.matrix.fromArray(t.transform.matrix),r.matrix.decompose(r.position,r.rotation,r.scale),r.jointRadius=t.radius),r.visible=null!==t}const n=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],a=n.position.distanceTo(r.position),o=.02,c=.005;l.inputState.pinching&&a>o+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==o&&t.gripSpace&&(r=e.getPose(t.gripSpace,i),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1));null!==a&&(n=e.getPose(t.targetRaySpace,i),null===n&&null!==r&&(n=r),null!==n&&(a.matrix.fromArray(n.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),n.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(n.linearVelocity)):a.hasLinearVelocity=!1,n.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(n.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Ws)))}return null!==a&&(a.visible=null!==n),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==s),this}}class qs extends Zt{constructor(t,e,i,n,r,s,a,o,l,c){if((c=void 0!==c?c:T)!==T&&c!==A)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===i&&c===T&&(i=_),void 0===i&&c===A&&(i=w),super(null,n,r,s,a,o,c,i,l),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=void 0!==a?a:d,this.minFilter=void 0!==o?o:d,this.flipY=!1,this.generateMipmaps=!1}}class Xs extends mt{constructor(t,e){super();const i=this;let n=null,r=1,s=null,a="local-floor",o=null,l=null,c=null,h=null,u=null,d=null;const p=e.getContextAttributes();let m=null,f=null;const g=[],v=[],y=new rn;y.layers.enable(1),y.viewport=new Jt;const M=new rn;M.layers.enable(2),M.viewport=new Jt;const b=[y,M],E=new Vs;E.layers.enable(1),E.layers.enable(2);let C=null,L=null;function R(t){const e=v.indexOf(t.inputSource);if(-1===e)return;const i=g[e];void 0!==i&&i.dispatchEvent({type:t.type,data:t.inputSource})}function P(){n.removeEventListener("select",R),n.removeEventListener("selectstart",R),n.removeEventListener("selectend",R),n.removeEventListener("squeeze",R),n.removeEventListener("squeezestart",R),n.removeEventListener("squeezeend",R),n.removeEventListener("end",P),n.removeEventListener("inputsourceschange",I);for(let t=0;t<g.length;t++){const e=v[t];null!==e&&(v[t]=null,g[t].disconnect(e))}C=null,L=null,t.setRenderTarget(m),u=null,h=null,c=null,n=null,f=null,F.stop(),i.isPresenting=!1,i.dispatchEvent({type:"sessionend"})}function I(t){for(let e=0;e<t.removed.length;e++){const i=t.removed[e],n=v.indexOf(i);n>=0&&(v[n]=null,g[n].dispatchEvent({type:"disconnected",data:i}))}for(let e=0;e<t.added.length;e++){const i=t.added[e];let n=v.indexOf(i);if(-1===n){for(let t=0;t<g.length;t++){if(t>=v.length){v.push(i),n=t;break}if(null===v[t]){v[t]=i,n=t;break}}if(-1===n)break}const r=g[n];r&&r.dispatchEvent({type:"connected",data:i})}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=g[t];return void 0===e&&(e=new js,g[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=g[t];return void 0===e&&(e=new js,g[t]=e),e.getGripSpace()},this.getHand=function(t){let e=g[t];return void 0===e&&(e=new js,g[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===i.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o||s},this.setReferenceSpace=function(t){o=t},this.getBaseLayer=function(){return null!==h?h:u},this.getBinding=function(){return c},this.getFrame=function(){return d},this.getSession=function(){return n},this.setSession=async function(l){if(n=l,null!==n){if(m=t.getRenderTarget(),n.addEventListener("select",R),n.addEventListener("selectstart",R),n.addEventListener("selectend",R),n.addEventListener("squeeze",R),n.addEventListener("squeezestart",R),n.addEventListener("squeezeend",R),n.addEventListener("end",P),n.addEventListener("inputsourceschange",I),!0!==p.xrCompatible&&(await e.makeXRCompatible()),void 0===n.renderState.layers||!1===t.capabilities.isWebGL2){const i={antialias:void 0!==n.renderState.layers||p.antialias,alpha:p.alpha,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:r};u=new XRWebGLLayer(n,e,i),n.updateRenderState({baseLayer:u}),f=new Kt(u.framebufferWidth,u.framebufferHeight,{format:S,type:x,encoding:t.outputEncoding})}else{let i=null,s=null,a=null;p.depth&&(a=p.stencil?35056:33190,i=p.stencil?A:T,s=p.stencil?w:_);const o={colorFormat:32856,depthFormat:a,scaleFactor:r};c=new XRWebGLBinding(n,e),h=c.createProjectionLayer(o),n.updateRenderState({layers:[h]}),f=new Kt(h.textureWidth,h.textureHeight,{format:S,type:x,depthTexture:new qs(h.textureWidth,h.textureHeight,s,void 0,void 0,void 0,void 0,void 0,void 0,i),stencilBuffer:p.stencil,encoding:t.outputEncoding,samples:p.antialias?4:0});t.properties.get(f).__ignoreDepthValues=h.ignoreDepthValues}f.isXRRenderTarget=!0,this.setFoveation(1),o=null,s=await n.requestReferenceSpace(a),F.setContext(n),F.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}};const D=new ee,N=new ee;function O(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===n)return;E.near=M.near=y.near=t.near,E.far=M.far=y.far=t.far,C===E.near&&L===E.far||(n.updateRenderState({depthNear:E.near,depthFar:E.far}),C=E.near,L=E.far);const e=t.parent,i=E.cameras;O(E,e);for(let t=0;t<i.length;t++)O(i[t],e);E.matrixWorld.decompose(E.position,E.quaternion,E.scale),t.position.copy(E.position),t.quaternion.copy(E.quaternion),t.scale.copy(E.scale),t.matrix.copy(E.matrix),t.matrixWorld.copy(E.matrixWorld);const r=t.children;for(let t=0,e=r.length;t<e;t++)r[t].updateMatrixWorld(!0);2===i.length?function(t,e,i){D.setFromMatrixPosition(e.matrixWorld),N.setFromMatrixPosition(i.matrixWorld);const n=D.distanceTo(N),r=e.projectionMatrix.elements,s=i.projectionMatrix.elements,a=r[14]/(r[10]-1),o=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],h=(r[8]-1)/r[0],u=(s[8]+1)/s[0],d=a*h,p=a*u,m=n/(-h+u),f=m*-h;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(f),t.translateZ(m),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const g=a+m,v=o+m,x=d-f,y=p+(n-f),_=l*o/v*g,M=c*o/v*g;t.projectionMatrix.makePerspective(x,y,_,M,g,v)}(E,y,M):E.projectionMatrix.copy(y.projectionMatrix)},this.getCamera=function(){return E},this.getFoveation=function(){return null!==h?h.fixedFoveation:null!==u?u.fixedFoveation:void 0},this.setFoveation=function(t){null!==h&&(h.fixedFoveation=t),null!==u&&void 0!==u.fixedFoveation&&(u.fixedFoveation=t)};let z=null;const F=new gn;F.setAnimationLoop(function(e,i){if(l=i.getViewerPose(o||s),d=i,null!==l){const e=l.views;null!==u&&(t.setRenderTargetFramebuffer(f,u.framebuffer),t.setRenderTarget(f));let i=!1;e.length!==E.cameras.length&&(E.cameras.length=0,i=!0);for(let n=0;n<e.length;n++){const r=e[n];let s=null;if(null!==u)s=u.getViewport(r);else{const e=c.getViewSubImage(h,r);s=e.viewport,0===n&&(t.setRenderTargetTextures(f,e.colorTexture,h.ignoreDepthValues?void 0:e.depthStencilTexture),t.setRenderTarget(f))}let a=b[n];void 0===a&&(a=new rn,a.layers.enable(n),a.viewport=new Jt,b[n]=a),a.matrix.fromArray(r.transform.matrix),a.projectionMatrix.fromArray(r.projectionMatrix),a.viewport.set(s.x,s.y,s.width,s.height),0===n&&E.matrix.copy(a.matrix),!0===i&&E.cameras.push(a)}}for(let t=0;t<g.length;t++){const e=v[t],n=g[t];null!==e&&void 0!==n&&n.update(e,i,o||s)}z&&z(e,i),d=null}),this.setAnimationLoop=function(t){z=t},this.dispose=function(){}}}function Ys(t,e){function i(i,n){i.opacity.value=n.opacity,n.color&&i.diffuse.value.copy(n.color),n.emissive&&i.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(i.map.value=n.map),n.alphaMap&&(i.alphaMap.value=n.alphaMap),n.bumpMap&&(i.bumpMap.value=n.bumpMap,i.bumpScale.value=n.bumpScale,1===n.side&&(i.bumpScale.value*=-1)),n.displacementMap&&(i.displacementMap.value=n.displacementMap,i.displacementScale.value=n.displacementScale,i.displacementBias.value=n.displacementBias),n.emissiveMap&&(i.emissiveMap.value=n.emissiveMap),n.normalMap&&(i.normalMap.value=n.normalMap,i.normalScale.value.copy(n.normalScale),1===n.side&&i.normalScale.value.negate()),n.specularMap&&(i.specularMap.value=n.specularMap),n.alphaTest>0&&(i.alphaTest.value=n.alphaTest);const r=e.get(n).envMap;if(r&&(i.envMap.value=r,i.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,i.reflectivity.value=n.reflectivity,i.ior.value=n.ior,i.refractionRatio.value=n.refractionRatio),n.lightMap){i.lightMap.value=n.lightMap;const e=!0!==t.physicallyCorrectLights?Math.PI:1;i.lightMapIntensity.value=n.lightMapIntensity*e}let s,a;n.aoMap&&(i.aoMap.value=n.aoMap,i.aoMapIntensity.value=n.aoMapIntensity),n.map?s=n.map:n.specularMap?s=n.specularMap:n.displacementMap?s=n.displacementMap:n.normalMap?s=n.normalMap:n.bumpMap?s=n.bumpMap:n.roughnessMap?s=n.roughnessMap:n.metalnessMap?s=n.metalnessMap:n.alphaMap?s=n.alphaMap:n.emissiveMap?s=n.emissiveMap:n.clearcoatMap?s=n.clearcoatMap:n.clearcoatNormalMap?s=n.clearcoatNormalMap:n.clearcoatRoughnessMap?s=n.clearcoatRoughnessMap:n.iridescenceMap?s=n.iridescenceMap:n.iridescenceThicknessMap?s=n.iridescenceThicknessMap:n.specularIntensityMap?s=n.specularIntensityMap:n.specularColorMap?s=n.specularColorMap:n.transmissionMap?s=n.transmissionMap:n.thicknessMap?s=n.thicknessMap:n.sheenColorMap?s=n.sheenColorMap:n.sheenRoughnessMap&&(s=n.sheenRoughnessMap),void 0!==s&&(s.isWebGLRenderTarget&&(s=s.texture),!0===s.matrixAutoUpdate&&s.updateMatrix(),i.uvTransform.value.copy(s.matrix)),n.aoMap?a=n.aoMap:n.lightMap&&(a=n.lightMap),void 0!==a&&(a.isWebGLRenderTarget&&(a=a.texture),!0===a.matrixAutoUpdate&&a.updateMatrix(),i.uv2Transform.value.copy(a.matrix))}return{refreshFogUniforms:function(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)},refreshMaterialUniforms:function(t,n,r,s,a){n.isMeshBasicMaterial||n.isMeshLambertMaterial?i(t,n):n.isMeshToonMaterial?(i(t,n),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(t,n)):n.isMeshPhongMaterial?(i(t,n),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4)}(t,n)):n.isMeshStandardMaterial?(i(t,n),function(t,i){t.roughness.value=i.roughness,t.metalness.value=i.metalness,i.roughnessMap&&(t.roughnessMap.value=i.roughnessMap);i.metalnessMap&&(t.metalnessMap.value=i.metalnessMap);e.get(i).envMap&&(t.envMapIntensity.value=i.envMapIntensity)}(t,n),n.isMeshPhysicalMaterial&&function(t,e,i){t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,1===e.side&&t.clearcoatNormalScale.value.negate()));e.iridescence>0&&(t.iridescence.value=e.iridescence,t.iridescenceIOR.value=e.iridescenceIOR,t.iridescenceThicknessMinimum.value=e.iridescenceThicknessRange[0],t.iridescenceThicknessMaximum.value=e.iridescenceThicknessRange[1],e.iridescenceMap&&(t.iridescenceMap.value=e.iridescenceMap),e.iridescenceThicknessMap&&(t.iridescenceThicknessMap.value=e.iridescenceThicknessMap));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=i.texture,t.transmissionSamplerSize.value.set(i.width,i.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap);e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap)}(t,n,a)):n.isMeshMatcapMaterial?(i(t,n),function(t,e){e.matcap&&(t.matcap.value=e.matcap)}(t,n)):n.isMeshDepthMaterial?i(t,n):n.isMeshDistanceMaterial?(i(t,n),function(t,e){t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(t,n)):n.isMeshNormalMaterial?i(t,n):n.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}(t,n),n.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,n)):n.isPointsMaterial?function(t,e,i,n){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*i,t.scale.value=.5*n,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest);let r;e.map?r=e.map:e.alphaMap&&(r=e.alphaMap);void 0!==r&&(!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix))}(t,n,r,s):n.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map);e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest);let i;e.map?i=e.map:e.alphaMap&&(i=e.alphaMap);void 0!==i&&(!0===i.matrixAutoUpdate&&i.updateMatrix(),t.uvTransform.value.copy(i.matrix))}(t,n):n.isShadowMaterial?(t.color.value.copy(n.color),t.opacity.value=n.opacity):n.isShaderMaterial&&(n.uniformsNeedUpdate=!1)}}}function Zs(t={}){this.isWebGLRenderer=!0;const e=void 0!==t.canvas?t.canvas:function(){const t=It("canvas");return t.style.display="block",t}(),i=void 0!==t.context?t.context:null,n=void 0===t.depth||t.depth,r=void 0===t.stencil||t.stencil,s=void 0!==t.antialias&&t.antialias,a=void 0===t.premultipliedAlpha||t.premultipliedAlpha,o=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,l=void 0!==t.powerPreference?t.powerPreference:"default",c=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let h;h=null!==i?i.getContextAttributes().alpha:void 0!==t.alpha&&t.alpha;let u=null,d=null;const p=[],m=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=at,this.physicallyCorrectLights=!1,this.toneMapping=0,this.toneMappingExposure=1,Object.defineProperties(this,{gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}});const f=this;let g=!1,y=0,_=0,w=null,T=-1,A=null;const E=new Jt,C=new Jt;let L=null,R=e.width,P=e.height,I=1,D=null,N=null;const O=new Jt(0,0,R,P),z=new Jt(0,0,R,P);let F=!1;const B=new fn;let U=!1,k=!1,G=null;const V=new Ie,H=new Et,W=new ee,j={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function q(){return null===w?I:1}let X,Y,Z,J,K,Q,$,tt,et,it,nt,rt,st,ot,lt,ct,ht,ut,dt,pt,mt,ft,gt,vt=i;function xt(t,i){for(let n=0;n<t.length;n++){const r=t[n],s=e.getContext(r,i);if(null!==s)return s}return null}try{const t={alpha:!0,depth:n,stencil:r,antialias:s,premultipliedAlpha:a,preserveDrawingBuffer:o,powerPreference:l,failIfMajorPerformanceCaveat:c};if("setAttribute"in e&&e.setAttribute("data-engine","three.js r142"),e.addEventListener("webglcontextlost",Mt,!1),e.addEventListener("webglcontextrestored",bt,!1),e.addEventListener("webglcontextcreationerror",wt,!1),null===vt){const e=["webgl2","webgl","experimental-webgl"];if(!0===f.isWebGL1Renderer&&e.shift(),vt=xt(e,t),null===vt)throw xt(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===vt.getShaderPrecisionFormat&&(vt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function yt(){X=new Wn(vt),Y=new Tn(vt,X,t),X.init(Y),ft=new Gs(vt,X,Y),Z=new Us(vt,X,Y),J=new Xn,K=new Ts,Q=new ks(vt,X,Z,K,Y,ft,J),$=new En(f),tt=new Hn(f),et=new vn(vt,Y),gt=new wn(vt,X,et,Y),it=new jn(vt,et,J,gt),nt=new Qn(vt,it,et,J),dt=new Kn(vt,Y,Q),ct=new An(K),rt=new Ss(f,$,tt,X,Y,gt,ct),st=new Ys(f,K),ot=new Ls,lt=new Os(X,Y),ut=new bn(f,$,Z,nt,h,a),ht=new Bs(f,nt,Y),pt=new Sn(vt,X,J,Y),mt=new qn(vt,X,J,Y),J.programs=rt.programs,f.capabilities=Y,f.extensions=X,f.properties=K,f.renderLists=ot,f.shadowMap=ht,f.state=Z,f.info=J}yt();const _t=new Xs(f,vt);function Mt(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),g=!0}function bt(){console.log("THREE.WebGLRenderer: Context Restored."),g=!1;const t=J.autoReset,e=ht.enabled,i=ht.autoUpdate,n=ht.needsUpdate,r=ht.type;yt(),J.autoReset=t,ht.enabled=e,ht.autoUpdate=i,ht.needsUpdate=n,ht.type=r}function wt(t){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",t.statusMessage)}function St(t){const e=t.target;e.removeEventListener("dispose",St),function(t){(function(t){const e=K.get(t).programs;void 0!==e&&(e.forEach(function(t){rt.releaseProgram(t)}),t.isShaderMaterial&&rt.releaseShaderCache(t))})(t),K.remove(t)}(e)}this.xr=_t,this.getContext=function(){return vt},this.getContextAttributes=function(){return vt.getContextAttributes()},this.forceContextLoss=function(){const t=X.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=X.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return I},this.setPixelRatio=function(t){void 0!==t&&(I=t,this.setSize(R,P,!1))},this.getSize=function(t){return t.set(R,P)},this.setSize=function(t,i,n){_t.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(R=t,P=i,e.width=Math.floor(t*I),e.height=Math.floor(i*I),!1!==n&&(e.style.width=t+"px",e.style.height=i+"px"),this.setViewport(0,0,t,i))},this.getDrawingBufferSize=function(t){return t.set(R*I,P*I).floor()},this.setDrawingBufferSize=function(t,i,n){R=t,P=i,I=n,e.width=Math.floor(t*n),e.height=Math.floor(i*n),this.setViewport(0,0,t,i)},this.getCurrentViewport=function(t){return t.copy(E)},this.getViewport=function(t){return t.copy(O)},this.setViewport=function(t,e,i,n){t.isVector4?O.set(t.x,t.y,t.z,t.w):O.set(t,e,i,n),Z.viewport(E.copy(O).multiplyScalar(I).floor())},this.getScissor=function(t){return t.copy(z)},this.setScissor=function(t,e,i,n){t.isVector4?z.set(t.x,t.y,t.z,t.w):z.set(t,e,i,n),Z.scissor(C.copy(z).multiplyScalar(I).floor())},this.getScissorTest=function(){return F},this.setScissorTest=function(t){Z.setScissorTest(F=t)},this.setOpaqueSort=function(t){D=t},this.setTransparentSort=function(t){N=t},this.getClearColor=function(t){return t.copy(ut.getClearColor())},this.setClearColor=function(){ut.setClearColor.apply(ut,arguments)},this.getClearAlpha=function(){return ut.getClearAlpha()},this.setClearAlpha=function(){ut.setClearAlpha.apply(ut,arguments)},this.clear=function(t=!0,e=!0,i=!0){let n=0;t&&(n|=16384),e&&(n|=256),i&&(n|=1024),vt.clear(n)},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(){e.removeEventListener("webglcontextlost",Mt,!1),e.removeEventListener("webglcontextrestored",bt,!1),e.removeEventListener("webglcontextcreationerror",wt,!1),ot.dispose(),lt.dispose(),K.dispose(),$.dispose(),tt.dispose(),nt.dispose(),gt.dispose(),rt.dispose(),_t.dispose(),_t.removeEventListener("sessionstart",Ct),_t.removeEventListener("sessionend",Lt),G&&(G.dispose(),G=null),Rt.stop()},this.renderBufferDirect=function(t,e,i,n,r,s){null===e&&(e=j);const a=r.isMesh&&r.matrixWorld.determinant()<0,o=function(t,e,i,n,r){!0!==e.isScene&&(e=j);Q.resetTextureUnits();const s=e.fog,a=n.isMeshStandardMaterial?e.environment:null,o=null===w?f.outputEncoding:!0===w.isXRRenderTarget?w.texture.encoding:at,l=(n.isMeshStandardMaterial?tt:$).get(n.envMap||a),c=!0===n.vertexColors&&!!i.attributes.color&&4===i.attributes.color.itemSize,h=!!n.normalMap&&!!i.attributes.tangent,u=!!i.morphAttributes.position,p=!!i.morphAttributes.normal,m=!!i.morphAttributes.color,g=n.toneMapped?f.toneMapping:0,v=i.morphAttributes.position||i.morphAttributes.normal||i.morphAttributes.color,x=void 0!==v?v.length:0,y=K.get(n),_=d.state.lights;if(!0===U&&(!0===k||t!==A)){const e=t===A&&n.id===T;ct.setState(n,t,e)}let M=!1;n.version===y.__version?y.needsLights&&y.lightsStateVersion!==_.state.version||y.outputEncoding!==o||r.isInstancedMesh&&!1===y.instancing?M=!0:r.isInstancedMesh||!0!==y.instancing?r.isSkinnedMesh&&!1===y.skinning?M=!0:r.isSkinnedMesh||!0!==y.skinning?y.envMap!==l||!0===n.fog&&y.fog!==s?M=!0:void 0===y.numClippingPlanes||y.numClippingPlanes===ct.numPlanes&&y.numIntersection===ct.numIntersection?(y.vertexAlphas!==c||y.vertexTangents!==h||y.morphTargets!==u||y.morphNormals!==p||y.morphColors!==m||y.toneMapping!==g||!0===Y.isWebGL2&&y.morphTargetsCount!==x)&&(M=!0):M=!0:M=!0:M=!0:(M=!0,y.__version=n.version);let b=y.currentProgram;!0===M&&(b=zt(n,e,r));let S=!1,E=!1,C=!1;const L=b.getUniforms(),R=y.uniforms;Z.useProgram(b.program)&&(S=!0,E=!0,C=!0);n.id!==T&&(T=n.id,E=!0);if(S||A!==t){if(L.setValue(vt,"projectionMatrix",t.projectionMatrix),Y.logarithmicDepthBuffer&&L.setValue(vt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),A!==t&&(A=t,E=!0,C=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshStandardMaterial||n.envMap){const e=L.map.cameraPosition;void 0!==e&&e.setValue(vt,W.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial)&&L.setValue(vt,"isOrthographic",!0===t.isOrthographicCamera),(n.isMeshPhongMaterial||n.isMeshToonMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.isShadowMaterial||r.isSkinnedMesh)&&L.setValue(vt,"viewMatrix",t.matrixWorldInverse)}if(r.isSkinnedMesh){L.setOptional(vt,r,"bindMatrix"),L.setOptional(vt,r,"bindMatrixInverse");const t=r.skeleton;t&&(Y.floatVertexTextures?(null===t.boneTexture&&t.computeBoneTexture(),L.setValue(vt,"boneTexture",t.boneTexture,Q),L.setValue(vt,"boneTextureSize",t.boneTextureSize)):console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."))}const D=i.morphAttributes;(void 0!==D.position||void 0!==D.normal||void 0!==D.color&&!0===Y.isWebGL2)&&dt.update(r,i,n,b);(E||y.receiveShadow!==r.receiveShadow)&&(y.receiveShadow=r.receiveShadow,L.setValue(vt,"receiveShadow",r.receiveShadow));E&&(L.setValue(vt,"toneMappingExposure",f.toneMappingExposure),y.needsLights&&(O=C,(N=R).ambientLightColor.needsUpdate=O,N.lightProbe.needsUpdate=O,N.directionalLights.needsUpdate=O,N.directionalLightShadows.needsUpdate=O,N.pointLights.needsUpdate=O,N.pointLightShadows.needsUpdate=O,N.spotLights.needsUpdate=O,N.spotLightShadows.needsUpdate=O,N.rectAreaLights.needsUpdate=O,N.hemisphereLights.needsUpdate=O),s&&!0===n.fog&&st.refreshFogUniforms(R,s),st.refreshMaterialUniforms(R,n,I,P,G),is.upload(vt,y.uniformsList,R,Q));var N,O;n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(is.upload(vt,y.uniformsList,R,Q),n.uniformsNeedUpdate=!1);n.isSpriteMaterial&&L.setValue(vt,"center",r.center);return L.setValue(vt,"modelViewMatrix",r.modelViewMatrix),L.setValue(vt,"normalMatrix",r.normalMatrix),L.setValue(vt,"modelMatrix",r.matrixWorld),b}(t,e,i,n,r);Z.setMaterial(n,a);let l=i.index;const c=i.attributes.position;if(null===l){if(void 0===c||0===c.count)return}else if(0===l.count)return;let h,u=1;!0===n.wireframe&&(l=it.getWireframeAttribute(i),u=2),gt.setup(r,n,o,i,l);let p=pt;null!==l&&(h=et.get(l),p=mt,p.setIndex(h));const m=null!==l?l.count:c.count,g=i.drawRange.start*u,v=i.drawRange.count*u,x=null!==s?s.start*u:0,y=null!==s?s.count*u:1/0,_=Math.max(g,x),M=Math.min(m,g+v,x+y)-1,b=Math.max(0,M-_+1);if(0!==b){if(r.isMesh)!0===n.wireframe?(Z.setLineWidth(n.wireframeLinewidth*q()),p.setMode(1)):p.setMode(4);else if(r.isLine){let t=n.linewidth;void 0===t&&(t=1),Z.setLineWidth(t*q()),r.isLineSegments?p.setMode(1):r.isLineLoop?p.setMode(2):p.setMode(3)}else r.isPoints?p.setMode(0):r.isSprite&&p.setMode(4);if(r.isInstancedMesh)p.renderInstances(_,b,r.count);else if(i.isInstancedBufferGeometry){const t=Math.min(i.instanceCount,i._maxInstanceCount);p.renderInstances(_,b,t)}else p.render(_,b)}},this.compile=function(t,e){d=lt.get(t),d.init(),m.push(d),t.traverseVisible(function(t){t.isLight&&t.layers.test(e.layers)&&(d.pushLight(t),t.castShadow&&d.pushShadow(t))}),d.setupLights(f.physicallyCorrectLights),t.traverse(function(e){const i=e.material;if(i)if(Array.isArray(i))for(let n=0;n<i.length;n++){zt(i[n],t,e)}else zt(i,t,e)}),m.pop(),d=null};let At=null;function Ct(){Rt.stop()}function Lt(){Rt.start()}const Rt=new gn;function Pt(t,e,i,n){if(!1===t.visible)return;if(t.layers.test(e.layers))if(t.isGroup)i=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)d.pushLight(t),t.castShadow&&d.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||B.intersectsSprite(t)){n&&W.setFromMatrixPosition(t.matrixWorld).applyMatrix4(V);const e=nt.update(t),r=t.material;r.visible&&u.push(t,e,r,i,W.z,null)}}else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==J.render.frame&&(t.skeleton.update(),t.skeleton.frame=J.render.frame),!t.frustumCulled||B.intersectsObject(t))){n&&W.setFromMatrixPosition(t.matrixWorld).applyMatrix4(V);const e=nt.update(t),r=t.material;if(Array.isArray(r)){const n=e.groups;for(let s=0,a=n.length;s<a;s++){const a=n[s],o=r[a.materialIndex];o&&o.visible&&u.push(t,e,o,i,W.z,a)}}else r.visible&&u.push(t,e,r,i,W.z,null)}const r=t.children;for(let t=0,s=r.length;t<s;t++)Pt(r[t],e,i,n)}function Dt(t,e,i,n){const r=t.opaque,a=t.transmissive,o=t.transparent;d.setupLightsView(i),a.length>0&&function(t,e,i){const n=Y.isWebGL2;null===G&&(G=new Kt(1,1,{generateMipmaps:!0,type:X.has("EXT_color_buffer_half_float")?b:x,minFilter:v,samples:n&&!0===s?4:0}));f.getDrawingBufferSize(H),n?G.setSize(H.x,H.y):G.setSize(Tt(H.x),Tt(H.y));const r=f.getRenderTarget();f.setRenderTarget(G),f.clear();const a=f.toneMapping;f.toneMapping=0,Nt(t,e,i),f.toneMapping=a,Q.updateMultisampleRenderTarget(G),Q.updateRenderTargetMipmap(G),f.setRenderTarget(r)}(r,e,i),n&&Z.viewport(E.copy(n)),r.length>0&&Nt(r,e,i),a.length>0&&Nt(a,e,i),o.length>0&&Nt(o,e,i),Z.buffers.depth.setTest(!0),Z.buffers.depth.setMask(!0),Z.buffers.color.setMask(!0),Z.setPolygonOffset(!1)}function Nt(t,e,i){const n=!0===e.isScene?e.overrideMaterial:null;for(let r=0,s=t.length;r<s;r++){const s=t[r],a=s.object,o=s.geometry,l=null===n?s.material:n,c=s.group;a.layers.test(i.layers)&&Ot(a,e,i,o,l,c)}}function Ot(t,e,i,n,r,s){t.onBeforeRender(f,e,i,n,r,s),t.modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),r.onBeforeRender(f,e,i,n,t,s),!0===r.transparent&&2===r.side?(r.side=1,r.needsUpdate=!0,f.renderBufferDirect(i,e,n,r,t,s),r.side=0,r.needsUpdate=!0,f.renderBufferDirect(i,e,n,r,t,s),r.side=2):f.renderBufferDirect(i,e,n,r,t,s),t.onAfterRender(f,e,i,n,r,s)}function zt(t,e,i){!0!==e.isScene&&(e=j);const n=K.get(t),r=d.state.lights,s=d.state.shadowsArray,a=r.state.version,o=rt.getParameters(t,r.state,s,e,i),l=rt.getProgramCacheKey(o);let c=n.programs;n.environment=t.isMeshStandardMaterial?e.environment:null,n.fog=e.fog,n.envMap=(t.isMeshStandardMaterial?tt:$).get(t.envMap||n.environment),void 0===c&&(t.addEventListener("dispose",St),c=new Map,n.programs=c);let h=c.get(l);if(void 0!==h){if(n.currentProgram===h&&n.lightsStateVersion===a)return Ft(t,o),h}else o.uniforms=rt.getUniforms(t),t.onBuild(i,o,f),t.onBeforeCompile(o,f),h=rt.acquireProgram(o,l),c.set(l,h),n.uniforms=o.uniforms;const u=n.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(u.clippingPlanes=ct.uniform),Ft(t,o),n.needsLights=function(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}(t),n.lightsStateVersion=a,n.needsLights&&(u.ambientLightColor.value=r.state.ambient,u.lightProbe.value=r.state.probe,u.directionalLights.value=r.state.directional,u.directionalLightShadows.value=r.state.directionalShadow,u.spotLights.value=r.state.spot,u.spotLightShadows.value=r.state.spotShadow,u.rectAreaLights.value=r.state.rectArea,u.ltc_1.value=r.state.rectAreaLTC1,u.ltc_2.value=r.state.rectAreaLTC2,u.pointLights.value=r.state.point,u.pointLightShadows.value=r.state.pointShadow,u.hemisphereLights.value=r.state.hemi,u.directionalShadowMap.value=r.state.directionalShadowMap,u.directionalShadowMatrix.value=r.state.directionalShadowMatrix,u.spotShadowMap.value=r.state.spotShadowMap,u.spotShadowMatrix.value=r.state.spotShadowMatrix,u.pointShadowMap.value=r.state.pointShadowMap,u.pointShadowMatrix.value=r.state.pointShadowMatrix);const p=h.getUniforms(),m=is.seqWithValue(p.seq,u);return n.currentProgram=h,n.uniformsList=m,h}function Ft(t,e){const i=K.get(t);i.outputEncoding=e.outputEncoding,i.instancing=e.instancing,i.skinning=e.skinning,i.morphTargets=e.morphTargets,i.morphNormals=e.morphNormals,i.morphColors=e.morphColors,i.morphTargetsCount=e.morphTargetsCount,i.numClippingPlanes=e.numClippingPlanes,i.numIntersection=e.numClipIntersection,i.vertexAlphas=e.vertexAlphas,i.vertexTangents=e.vertexTangents,i.toneMapping=e.toneMapping}Rt.setAnimationLoop(function(t){At&&At(t)}),"undefined"!=typeof self&&Rt.setContext(self),this.setAnimationLoop=function(t){At=t,_t.setAnimationLoop(t),null===t?Rt.stop():Rt.start()},_t.addEventListener("sessionstart",Ct),_t.addEventListener("sessionend",Lt),this.render=function(t,e){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===g)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===_t.enabled&&!0===_t.isPresenting&&(!0===_t.cameraAutoUpdate&&_t.updateCamera(e),e=_t.getCamera()),!0===t.isScene&&t.onBeforeRender(f,t,e,w),d=lt.get(t,m.length),d.init(),m.push(d),V.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),B.setFromProjectionMatrix(V),k=this.localClippingEnabled,U=ct.init(this.clippingPlanes,k,e),u=ot.get(t,p.length),u.init(),p.push(u),Pt(t,e,0,f.sortObjects),u.finish(),!0===f.sortObjects&&u.sort(D,N),!0===U&&ct.beginShadows();const i=d.state.shadowsArray;if(ht.render(i,t,e),!0===U&&ct.endShadows(),!0===this.info.autoReset&&this.info.reset(),ut.render(u,t),d.setupLights(f.physicallyCorrectLights),e.isArrayCamera){const i=e.cameras;for(let e=0,n=i.length;e<n;e++){const n=i[e];Dt(u,t,n,n.viewport)}}else Dt(u,t,e);null!==w&&(Q.updateMultisampleRenderTarget(w),Q.updateRenderTargetMipmap(w)),!0===t.isScene&&t.onAfterRender(f,t,e),gt.resetDefaultState(),T=-1,A=null,m.pop(),d=m.length>0?m[m.length-1]:null,p.pop(),u=p.length>0?p[p.length-1]:null},this.getActiveCubeFace=function(){return y},this.getActiveMipmapLevel=function(){return _},this.getRenderTarget=function(){return w},this.setRenderTargetTextures=function(t,e,i){K.get(t.texture).__webglTexture=e,K.get(t.depthTexture).__webglTexture=i;const n=K.get(t);n.__hasExternalTextures=!0,n.__hasExternalTextures&&(n.__autoAllocateDepthBuffer=void 0===i,n.__autoAllocateDepthBuffer||!0===X.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),n.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(t,e){const i=K.get(t);i.__webglFramebuffer=e,i.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,i=0){w=t,y=e,_=i;let n=!0;if(t){const e=K.get(t);void 0!==e.__useDefaultFramebuffer?(Z.bindFramebuffer(36160,null),n=!1):void 0===e.__webglFramebuffer?Q.setupRenderTarget(t):e.__hasExternalTextures&&Q.rebindTextures(t,K.get(t.texture).__webglTexture,K.get(t.depthTexture).__webglTexture)}let r=null,s=!1,a=!1;if(t){const i=t.texture;(i.isData3DTexture||i.isDataArrayTexture)&&(a=!0);const n=K.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=n[e],s=!0):r=Y.isWebGL2&&t.samples>0&&!1===Q.useMultisampledRTT(t)?K.get(t).__webglMultisampledFramebuffer:n,E.copy(t.viewport),C.copy(t.scissor),L=t.scissorTest}else E.copy(O).multiplyScalar(I).floor(),C.copy(z).multiplyScalar(I).floor(),L=F;if(Z.bindFramebuffer(36160,r)&&Y.drawBuffers&&n&&Z.drawBuffers(t,r),Z.viewport(E),Z.scissor(C),Z.setScissorTest(L),s){const n=K.get(t.texture);vt.framebufferTexture2D(36160,36064,34069+e,n.__webglTexture,i)}else if(a){const n=K.get(t.texture),r=e||0;vt.framebufferTextureLayer(36160,36064,n.__webglTexture,i||0,r)}T=-1},this.readRenderTargetPixels=function(t,e,i,n,r,s,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=K.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(o=o[a]),o){Z.bindFramebuffer(36160,o);try{const a=t.texture,o=a.format,l=a.type;if(o!==S&&ft.convert(o)!==vt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===b&&(X.has("EXT_color_buffer_half_float")||Y.isWebGL2&&X.has("EXT_color_buffer_float"));if(!(l===x||ft.convert(l)===vt.getParameter(35738)||l===M&&(Y.isWebGL2||X.has("OES_texture_float")||X.has("WEBGL_color_buffer_float"))||c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");e>=0&&e<=t.width-n&&i>=0&&i<=t.height-r&&vt.readPixels(e,i,n,r,ft.convert(o),ft.convert(l),s)}finally{const t=null!==w?K.get(w).__webglFramebuffer:null;Z.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,i=0){const n=Math.pow(2,-i),r=Math.floor(e.image.width*n),s=Math.floor(e.image.height*n);Q.setTexture2D(e,0),vt.copyTexSubImage2D(3553,i,0,0,t.x,t.y,r,s),Z.unbindTexture()},this.copyTextureToTexture=function(t,e,i,n=0){const r=e.image.width,s=e.image.height,a=ft.convert(i.format),o=ft.convert(i.type);Q.setTexture2D(i,0),vt.pixelStorei(37440,i.flipY),vt.pixelStorei(37441,i.premultiplyAlpha),vt.pixelStorei(3317,i.unpackAlignment),e.isDataTexture?vt.texSubImage2D(3553,n,t.x,t.y,r,s,a,o,e.image.data):e.isCompressedTexture?vt.compressedTexSubImage2D(3553,n,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):vt.texSubImage2D(3553,n,t.x,t.y,a,o,e.image),0===n&&i.generateMipmaps&&vt.generateMipmap(3553),Z.unbindTexture()},this.copyTextureToTexture3D=function(t,e,i,n,r=0){if(f.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const s=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,o=t.max.z-t.min.z+1,l=ft.convert(n.format),c=ft.convert(n.type);let h;if(n.isData3DTexture)Q.setTexture3D(n,0),h=32879;else{if(!n.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");Q.setTexture2DArray(n,0),h=35866}vt.pixelStorei(37440,n.flipY),vt.pixelStorei(37441,n.premultiplyAlpha),vt.pixelStorei(3317,n.unpackAlignment);const u=vt.getParameter(3314),d=vt.getParameter(32878),p=vt.getParameter(3316),m=vt.getParameter(3315),g=vt.getParameter(32877),v=i.isCompressedTexture?i.mipmaps[0]:i.image;vt.pixelStorei(3314,v.width),vt.pixelStorei(32878,v.height),vt.pixelStorei(3316,t.min.x),vt.pixelStorei(3315,t.min.y),vt.pixelStorei(32877,t.min.z),i.isDataTexture||i.isData3DTexture?vt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,v.data):i.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),vt.compressedTexSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,v.data)):vt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,v),vt.pixelStorei(3314,u),vt.pixelStorei(32878,d),vt.pixelStorei(3316,p),vt.pixelStorei(3315,m),vt.pixelStorei(32877,g),0===r&&n.generateMipmaps&&vt.generateMipmap(h),Z.unbindTexture()},this.initTexture=function(t){t.isCubeTexture?Q.setTextureCube(t,0):t.isData3DTexture?Q.setTexture3D(t,0):t.isDataArrayTexture?Q.setTexture2DArray(t,0):Q.setTexture2D(t,0),Z.unbindTexture()},this.resetState=function(){y=0,_=0,w=null,Z.reset(),gt.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}class Js extends Zs{}Js.prototype.isWebGL1Renderer=!0;class Ks{constructor(t,e=25e-5){this.isFogExp2=!0,this.name="",this.color=new Ht(t),this.density=e}clone(){return new Ks(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class Qs{constructor(t,e=1,i=1e3){this.isFog=!0,this.name="",this.color=new Ht(t),this.near=e,this.far=i}clone(){return new Qs(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class $s extends ni{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}class ta{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=ut,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=yt()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,i){t*=this.stride,i*=e.stride;for(let n=0,r=this.stride;n<r;n++)this.array[t+n]=e.array[i+n];return this}set(t,e=0){return this.array.set(t,e),this}clone(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=yt()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),i=new this.constructor(e,this.stride);return i.setUsage(this.usage),i}onUpload(t){return this.onUploadCallback=t,this}toJSON(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=yt()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const ea=new ee;class ia{constructor(t,e,i,n=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=t,this.itemSize=e,this.offset=i,this.normalized=!0===n}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(t){this.data.needsUpdate=t}applyMatrix4(t){for(let e=0,i=this.data.count;e<i;e++)ea.fromBufferAttribute(this,e),ea.applyMatrix4(t),this.setXYZ(e,ea.x,ea.y,ea.z);return this}applyNormalMatrix(t){for(let e=0,i=this.count;e<i;e++)ea.fromBufferAttribute(this,e),ea.applyNormalMatrix(t),this.setXYZ(e,ea.x,ea.y,ea.z);return this}transformDirection(t){for(let e=0,i=this.count;e<i;e++)ea.fromBufferAttribute(this,e),ea.transformDirection(t),this.setXYZ(e,ea.x,ea.y,ea.z);return this}setX(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this}setY(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this}setZ(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this}setW(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this}getX(t){return this.data.array[t*this.data.stride+this.offset]}getY(t){return this.data.array[t*this.data.stride+this.offset+1]}getZ(t){return this.data.array[t*this.data.stride+this.offset+2]}getW(t){return this.data.array[t*this.data.stride+this.offset+3]}setXY(t,e,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this}setXYZ(t,e,i,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this}setXYZW(t,e,i,n,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=i,this.data.array[t+2]=n,this.data.array[t+3]=r,this}clone(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interleaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const i=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[i+e])}return new _i(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new ia(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interleaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const i=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[i+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}class na extends gi{constructor(t){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new Ht(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this.fog=t.fog,this}}let ra;const sa=new ee,aa=new ee,oa=new ee,la=new Et,ca=new Et,ha=new Ie,ua=new ee,da=new ee,pa=new ee,ma=new Et,fa=new Et,ga=new Et;class va extends ni{constructor(t){if(super(),this.isSprite=!0,this.type="Sprite",void 0===ra){ra=new Pi;const t=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),e=new ta(t,5);ra.setIndex([0,1,2,0,2,3]),ra.setAttribute("position",new ia(e,3,0,!1)),ra.setAttribute("uv",new ia(e,2,3,!1))}this.geometry=ra,this.material=void 0!==t?t:new na,this.center=new Et(.5,.5)}raycast(t,e){null===t.camera&&console.error("THREE.Sprite: \"Raycaster.camera\" needs to be set in order to raycast against sprites."),aa.setFromMatrixScale(this.matrixWorld),ha.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),oa.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&aa.multiplyScalar(-oa.z);const i=this.material.rotation;let n,r;0!==i&&(r=Math.cos(i),n=Math.sin(i));const s=this.center;xa(ua.set(-.5,-.5,0),oa,s,aa,n,r),xa(da.set(.5,-.5,0),oa,s,aa,n,r),xa(pa.set(.5,.5,0),oa,s,aa,n,r),ma.set(0,0),fa.set(1,0),ga.set(1,1);let a=t.ray.intersectTriangle(ua,da,pa,!1,sa);if(null===a&&(xa(da.set(-.5,.5,0),oa,s,aa,n,r),fa.set(0,1),a=t.ray.intersectTriangle(ua,pa,da,!1,sa),null===a))return;const o=t.ray.origin.distanceTo(sa);o<t.near||o>t.far||e.push({distance:o,point:sa.clone(),uv:mi.getUV(sa,ua,da,pa,ma,fa,ga,new Et),face:null,object:this})}copy(t,e){return super.copy(t,e),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function xa(t,e,i,n,r,s){la.subVectors(t,i).addScalar(.5).multiply(n),void 0!==r?(ca.x=s*la.x-r*la.y,ca.y=r*la.x+s*la.y):ca.copy(la),t.copy(e),t.x+=ca.x,t.y+=ca.y,t.applyMatrix4(ha)}const ya=new ee,_a=new ee;class Ma extends ni{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(t){super.copy(t,!1);const e=t.levels;for(let t=0,i=e.length;t<i;t++){const i=e[t];this.addLevel(i.object.clone(),i.distance)}return this.autoUpdate=t.autoUpdate,this}addLevel(t,e=0){e=Math.abs(e);const i=this.levels;let n;for(n=0;n<i.length&&!(e<i[n].distance);n++);return i.splice(n,0,{distance:e,object:t}),this.add(t),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(t){const e=this.levels;if(e.length>0){let i,n;for(i=1,n=e.length;i<n&&!(t<e[i].distance);i++);return e[i-1].object}return null}raycast(t,e){if(this.levels.length>0){ya.setFromMatrixPosition(this.matrixWorld);const i=t.ray.origin.distanceTo(ya);this.getObjectForDistance(i).raycast(t,e)}}update(t){const e=this.levels;if(e.length>1){ya.setFromMatrixPosition(t.matrixWorld),_a.setFromMatrixPosition(this.matrixWorld);const i=ya.distanceTo(_a)/t.zoom;let n,r;for(e[0].object.visible=!0,n=1,r=e.length;n<r&&i>=e[n].distance;n++)e[n-1].object.visible=!1,e[n].object.visible=!0;for(this._currentLevel=n-1;n<r;n++)e[n].object.visible=!1}}toJSON(t){const e=super.toJSON(t);!1===this.autoUpdate&&(e.object.autoUpdate=!1),e.object.levels=[];const i=this.levels;for(let t=0,n=i.length;t<n;t++){const n=i[t];e.object.levels.push({object:n.object.uuid,distance:n.distance})}return e}}const ba=new ee,wa=new Jt,Sa=new Jt,Ta=new ee,Aa=new Ie;class Ea extends Zi{constructor(t,e){super(t,e),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Ie,this.bindMatrixInverse=new Ie}copy(t,e){return super.copy(t,e),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this}bind(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const t=new Jt,e=this.geometry.attributes.skinWeight;for(let i=0,n=e.count;i<n;i++){t.fromBufferAttribute(e,i);const n=1/t.manhattanLength();n!==1/0?t.multiplyScalar(n):t.set(1,0,0,0),e.setXYZW(i,t.x,t.y,t.z,t.w)}}updateMatrixWorld(t){super.updateMatrixWorld(t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(t,e){const i=this.skeleton,n=this.geometry;wa.fromBufferAttribute(n.attributes.skinIndex,t),Sa.fromBufferAttribute(n.attributes.skinWeight,t),ba.copy(e).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let t=0;t<4;t++){const n=Sa.getComponent(t);if(0!==n){const r=wa.getComponent(t);Aa.multiplyMatrices(i.bones[r].matrixWorld,i.boneInverses[r]),e.addScaledVector(Ta.copy(ba).applyMatrix4(Aa),n)}}return e.applyMatrix4(this.bindMatrixInverse)}}class Ca extends ni{constructor(){super(),this.isBone=!0,this.type="Bone"}}class La extends Zt{constructor(t=null,e=1,i=1,n,r,s,a,o,l=1003,c=1003,h,u){super(null,s,a,o,l,c,n,r,h,u),this.isDataTexture=!0,this.image={data:t,width:e,height:i},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const Ra=new Ie,Pa=new Ie;class Ia{constructor(t=[],e=[]){this.uuid=yt(),this.bones=t.slice(0),this.boneInverses=e,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const t=this.bones,e=this.boneInverses;if(this.boneMatrices=new Float32Array(16*t.length),0===e.length)this.calculateInverses();else if(t.length!==e.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new Ie)}}calculateInverses(){this.boneInverses.length=0;for(let t=0,e=this.bones.length;t<e;t++){const e=new Ie;this.bones[t]&&e.copy(this.bones[t].matrixWorld).invert(),this.boneInverses.push(e)}}pose(){for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&e.matrixWorld.copy(this.boneInverses[t]).invert()}for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&(e.parent&&e.parent.isBone?(e.matrix.copy(e.parent.matrixWorld).invert(),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))}}update(){const t=this.bones,e=this.boneInverses,i=this.boneMatrices,n=this.boneTexture;for(let n=0,r=t.length;n<r;n++){const r=t[n]?t[n].matrixWorld:Pa;Ra.multiplyMatrices(r,e[n]),Ra.toArray(i,16*n)}null!==n&&(n.needsUpdate=!0)}clone(){return new Ia(this.bones,this.boneInverses)}computeBoneTexture(){let t=Math.sqrt(4*this.bones.length);t=St(t),t=Math.max(t,4);const e=new Float32Array(t*t*4);e.set(this.boneMatrices);const i=new La(e,t,t,S,M);return i.needsUpdate=!0,this.boneMatrices=e,this.boneTexture=i,this.boneTextureSize=t,this}getBoneByName(t){for(let e=0,i=this.bones.length;e<i;e++){const i=this.bones[e];if(i.name===t)return i}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(t,e){this.uuid=t.uuid;for(let i=0,n=t.bones.length;i<n;i++){const n=t.bones[i];let r=e[n];void 0===r&&(console.warn("THREE.Skeleton: No bone found with UUID:",n),r=new Ca),this.bones.push(r),this.boneInverses.push(new Ie().fromArray(t.boneInverses[i]))}return this.init(),this}toJSON(){const t={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};t.uuid=this.uuid;const e=this.bones,i=this.boneInverses;for(let n=0,r=e.length;n<r;n++){const r=e[n];t.bones.push(r.uuid);const s=i[n];t.boneInverses.push(s.toArray())}return t}}class Da extends _i{constructor(t,e,i,n=1){"number"==typeof i&&(n=i,i=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(t,e,i),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=n}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}toJSON(){const t=super.toJSON();return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}const Na=new Ie,Oa=new Ie,za=[],Fa=new Zi;class Ba extends Zi{constructor(t,e,i){super(t,e),this.isInstancedMesh=!0,this.instanceMatrix=new Da(new Float32Array(16*i),16),this.instanceColor=null,this.count=i,this.frustumCulled=!1}copy(t,e){return super.copy(t,e),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this}getColorAt(t,e){e.fromArray(this.instanceColor.array,3*t)}getMatrixAt(t,e){e.fromArray(this.instanceMatrix.array,16*t)}raycast(t,e){const i=this.matrixWorld,n=this.count;if(Fa.geometry=this.geometry,Fa.material=this.material,void 0!==Fa.material)for(let r=0;r<n;r++){this.getMatrixAt(r,Na),Oa.multiplyMatrices(i,Na),Fa.matrixWorld=Oa,Fa.raycast(t,za);for(let t=0,i=za.length;t<i;t++){const i=za[t];i.instanceId=r,i.object=this,e.push(i)}za.length=0}}setColorAt(t,e){null===this.instanceColor&&(this.instanceColor=new Da(new Float32Array(3*this.instanceMatrix.count),3)),e.toArray(this.instanceColor.array,3*t)}setMatrixAt(t,e){e.toArray(this.instanceMatrix.array,16*t)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}class Ua extends gi{constructor(t){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Ht(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}const ka=new ee,Ga=new ee,Va=new Ie,Ha=new Pe,Wa=new we;class ja extends ni{constructor(t=new Pi,e=new Ua){super(),this.isLine=!0,this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),this.material=t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(null===t.index){const e=t.attributes.position,i=[0];for(let t=1,n=e.count;t<n;t++)ka.fromBufferAttribute(e,t-1),Ga.fromBufferAttribute(e,t),i[t]=i[t-1],i[t]+=ka.distanceTo(Ga);t.setAttribute("lineDistance",new wi(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(t,e){const i=this.geometry,n=this.matrixWorld,r=t.params.Line.threshold,s=i.drawRange;if(null===i.boundingSphere&&i.computeBoundingSphere(),Wa.copy(i.boundingSphere),Wa.applyMatrix4(n),Wa.radius+=r,!1===t.ray.intersectsSphere(Wa))return;Va.copy(n).invert(),Ha.copy(t.ray).applyMatrix4(Va);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,l=new ee,c=new ee,h=new ee,u=new ee,d=this.isLineSegments?2:1,p=i.index,m=i.attributes.position;if(null!==p){for(let i=Math.max(0,s.start),n=Math.min(p.count,s.start+s.count)-1;i<n;i+=d){const n=p.getX(i),r=p.getX(i+1);l.fromBufferAttribute(m,n),c.fromBufferAttribute(m,r);if(Ha.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const s=t.ray.origin.distanceTo(u);s<t.near||s>t.far||e.push({distance:s,point:h.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}else{for(let i=Math.max(0,s.start),n=Math.min(m.count,s.start+s.count)-1;i<n;i+=d){l.fromBufferAttribute(m,i),c.fromBufferAttribute(m,i+1);if(Ha.distanceSqToSegment(l,c,u,h)>o)continue;u.applyMatrix4(this.matrixWorld);const n=t.ray.origin.distanceTo(u);n<t.near||n>t.far||e.push({distance:n,point:h.clone().applyMatrix4(this.matrixWorld),index:i,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=i.length;t<e;t++){const e=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[e]=t}}}}}const qa=new ee,Xa=new ee;class Ya extends ja{constructor(t,e){super(t,e),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(null===t.index){const e=t.attributes.position,i=[];for(let t=0,n=e.count;t<n;t+=2)qa.fromBufferAttribute(e,t),Xa.fromBufferAttribute(e,t+1),i[t]=0===t?0:i[t-1],i[t+1]=i[t]+qa.distanceTo(Xa);t.setAttribute("lineDistance",new wi(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class Za extends ja{constructor(t,e){super(t,e),this.isLineLoop=!0,this.type="LineLoop"}}class Ja extends gi{constructor(t){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Ht(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.fog=t.fog,this}}const Ka=new Ie,Qa=new Pe,$a=new we,to=new ee;class eo extends ni{constructor(t=new Pi,e=new Ja){super(),this.isPoints=!0,this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t,e){return super.copy(t,e),this.material=t.material,this.geometry=t.geometry,this}raycast(t,e){const i=this.geometry,n=this.matrixWorld,r=t.params.Points.threshold,s=i.drawRange;if(null===i.boundingSphere&&i.computeBoundingSphere(),$a.copy(i.boundingSphere),$a.applyMatrix4(n),$a.radius+=r,!1===t.ray.intersectsSphere($a))return;Ka.copy(n).invert(),Qa.copy(t.ray).applyMatrix4(Ka);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,l=i.index,c=i.attributes.position;if(null!==l){for(let i=Math.max(0,s.start),r=Math.min(l.count,s.start+s.count);i<r;i++){const r=l.getX(i);to.fromBufferAttribute(c,r),io(to,r,o,n,t,e,this)}}else{for(let i=Math.max(0,s.start),r=Math.min(c.count,s.start+s.count);i<r;i++)to.fromBufferAttribute(c,i),io(to,i,o,n,t,e,this)}}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=i.length;t<e;t++){const e=i[t].name||String(t);this.morphTargetInfluences.push(0),this.morphTargetDictionary[e]=t}}}}}function io(t,e,i,n,r,s,a){const o=Qa.distanceSqToPoint(t);if(o<i){const i=new ee;Qa.closestPointToPoint(t,i),i.applyMatrix4(n);const l=r.ray.origin.distanceTo(i);if(l<r.near||l>r.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:i,index:e,face:null,object:a})}}class no extends Zt{constructor(t,e,i,n,r,s,a,o,l,c,h,u){super(null,s,a,o,l,c,n,r,h,u),this.isCompressedTexture=!0,this.image={width:e,height:i},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}class ro{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const i=this.getUtoTmapping(t);return this.getPoint(i,e)}getPoints(t=5){const e=[];for(let i=0;i<=t;i++)e.push(this.getPoint(i/t));return e}getSpacedPoints(t=5){const e=[];for(let i=0;i<=t;i++)e.push(this.getPointAt(i/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let i,n=this.getPoint(0),r=0;e.push(0);for(let s=1;s<=t;s++)i=this.getPoint(s/t),r+=i.distanceTo(n),e.push(r),n=i;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const i=this.getLengths();let n=0;const r=i.length;let s;s=e||t*i[r-1];let a,o=0,l=r-1;for(;o<=l;)if(n=Math.floor(o+(l-o)/2),a=i[n]-s,a<0)o=n+1;else{if(!(a>0)){l=n;break}l=n-1}if(n=l,i[n]===s)return n/(r-1);const c=i[n];return(n+(s-c)/(i[n+1]-c))/(r-1)}getTangent(t,e){const i=1e-4;let n=t-i,r=t+i;n<0&&(n=0),r>1&&(r=1);const s=this.getPoint(n),a=this.getPoint(r),o=e||(s.isVector2?new Et:new ee);return o.copy(a).sub(s).normalize(),o}getTangentAt(t,e){const i=this.getUtoTmapping(t);return this.getTangent(i,e)}computeFrenetFrames(t,e){const i=new ee,n=[],r=[],s=[],a=new ee,o=new Ie;for(let e=0;e<=t;e++){const i=e/t;n[e]=this.getTangentAt(i,new ee)}r[0]=new ee,s[0]=new ee;let l=Number.MAX_VALUE;const c=Math.abs(n[0].x),h=Math.abs(n[0].y),u=Math.abs(n[0].z);c<=l&&(l=c,i.set(1,0,0)),h<=l&&(l=h,i.set(0,1,0)),u<=l&&i.set(0,0,1),a.crossVectors(n[0],i).normalize(),r[0].crossVectors(n[0],a),s[0].crossVectors(n[0],r[0]);for(let e=1;e<=t;e++){if(r[e]=r[e-1].clone(),s[e]=s[e-1].clone(),a.crossVectors(n[e-1],n[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(_t(n[e-1].dot(n[e]),-1,1));r[e].applyMatrix4(o.makeRotationAxis(a,t))}s[e].crossVectors(n[e],r[e])}if(!0===e){let e=Math.acos(_t(r[0].dot(r[t]),-1,1));e/=t,n[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let i=1;i<=t;i++)r[i].applyMatrix4(o.makeRotationAxis(n[i],e*i)),s[i].crossVectors(n[i],r[i])}return{tangents:n,normals:r,binormals:s}}clone(){return new this.constructor().copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class so extends ro{constructor(t=0,e=0,i=1,n=1,r=0,s=2*Math.PI,a=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=i,this.yRadius=n,this.aStartAngle=r,this.aEndAngle=s,this.aClockwise=a,this.aRotation=o}getPoint(t,e){const i=e||new Et,n=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const s=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=n;for(;r>n;)r-=n;r<Number.EPSILON&&(r=s?0:n),!0!==this.aClockwise||s||(r===n?r=-n:r-=n);const a=this.aStartAngle+t*r;let o=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),i=o-this.aX,n=l-this.aY;o=i*t-n*e+this.aX,l=i*e+n*t+this.aY}return i.set(o,l)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}class ao extends so{constructor(t,e,i,n,r,s){super(t,e,i,i,n,r,s),this.isArcCurve=!0,this.type="ArcCurve"}}function oo(){let t=0,e=0,i=0,n=0;function r(r,s,a,o){t=r,e=a,i=-3*r+3*s-2*a-o,n=2*r-2*s+a+o}return{initCatmullRom:function(t,e,i,n,s){r(e,i,s*(i-t),s*(n-e))},initNonuniformCatmullRom:function(t,e,i,n,s,a,o){let l=(e-t)/s-(i-t)/(s+a)+(i-e)/a,c=(i-e)/a-(n-e)/(a+o)+(n-i)/o;l*=a,c*=a,r(e,i,l,c)},calc:function(r){const s=r*r;return t+e*r+i*s+n*(s*r)}}}const lo=new ee,co=new oo,ho=new oo,uo=new oo;class po extends ro{constructor(t=[],e=!1,i="centripetal",n=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=i,this.tension=n}getPoint(t,e=new ee){const i=e,n=this.points,r=n.length,s=(r-(this.closed?0:1))*t;let a,o,l=Math.floor(s),c=s-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=n[(l-1)%r]:(lo.subVectors(n[0],n[1]).add(n[0]),a=lo);const h=n[l%r],u=n[(l+1)%r];if(this.closed||l+2<r?o=n[(l+2)%r]:(lo.subVectors(n[r-1],n[r-2]).add(n[r-1]),o=lo),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(h),t),i=Math.pow(h.distanceToSquared(u),t),n=Math.pow(u.distanceToSquared(o),t);i<1e-4&&(i=1),e<1e-4&&(e=i),n<1e-4&&(n=i),co.initNonuniformCatmullRom(a.x,h.x,u.x,o.x,e,i,n),ho.initNonuniformCatmullRom(a.y,h.y,u.y,o.y,e,i,n),uo.initNonuniformCatmullRom(a.z,h.z,u.z,o.z,e,i,n)}else"catmullrom"===this.curveType&&(co.initCatmullRom(a.x,h.x,u.x,o.x,this.tension),ho.initCatmullRom(a.y,h.y,u.y,o.y,this.tension),uo.initCatmullRom(a.z,h.z,u.z,o.z,this.tension));return i.set(co.calc(c),ho.calc(c),uo.calc(c)),i}copy(t){super.copy(t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(i.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,i=this.points.length;e<i;e++){const i=this.points[e];t.points.push(i.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(new ee().fromArray(i))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function mo(t,e,i,n,r){const s=.5*(n-e),a=.5*(r-i),o=t*t;return(2*i-2*n+s+a)*(t*o)+(-3*i+3*n-2*s-a)*o+s*t+i}function fo(t,e,i,n){return function(t,e){const i=1-t;return i*i*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,i)+function(t,e){return t*t*e}(t,n)}function go(t,e,i,n,r){return function(t,e){const i=1-t;return i*i*i*e}(t,e)+function(t,e){const i=1-t;return 3*i*i*t*e}(t,i)+function(t,e){return 3*(1-t)*t*t*e}(t,n)+function(t,e){return t*t*t*e}(t,r)}class vo extends ro{constructor(t=new Et,e=new Et,i=new Et,n=new Et){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=i,this.v3=n}getPoint(t,e=new Et){const i=e,n=this.v0,r=this.v1,s=this.v2,a=this.v3;return i.set(go(t,n.x,r.x,s.x,a.x),go(t,n.y,r.y,s.y,a.y)),i}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}class xo extends ro{constructor(t=new ee,e=new ee,i=new ee,n=new ee){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=i,this.v3=n}getPoint(t,e=new ee){const i=e,n=this.v0,r=this.v1,s=this.v2,a=this.v3;return i.set(go(t,n.x,r.x,s.x,a.x),go(t,n.y,r.y,s.y,a.y),go(t,n.z,r.z,s.z,a.z)),i}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}class yo extends ro{constructor(t=new Et,e=new Et){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new Et){const i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const i=e||new Et;return i.copy(this.v2).sub(this.v1).normalize(),i}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class _o extends ro{constructor(t=new ee,e=new ee){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=t,this.v2=e}getPoint(t,e=new ee){const i=e;return 1===t?i.copy(this.v2):(i.copy(this.v2).sub(this.v1),i.multiplyScalar(t).add(this.v1)),i}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class Mo extends ro{constructor(t=new Et,e=new Et,i=new Et){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=i}getPoint(t,e=new Et){const i=e,n=this.v0,r=this.v1,s=this.v2;return i.set(fo(t,n.x,r.x,s.x),fo(t,n.y,r.y,s.y)),i}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class bo extends ro{constructor(t=new ee,e=new ee,i=new ee){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=i}getPoint(t,e=new ee){const i=e,n=this.v0,r=this.v1,s=this.v2;return i.set(fo(t,n.x,r.x,s.x),fo(t,n.y,r.y,s.y),fo(t,n.z,r.z,s.z)),i}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class wo extends ro{constructor(t=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=t}getPoint(t,e=new Et){const i=e,n=this.points,r=(n.length-1)*t,s=Math.floor(r),a=r-s,o=n[0===s?s:s-1],l=n[s],c=n[s>n.length-2?n.length-1:s+1],h=n[s>n.length-3?n.length-1:s+2];return i.set(mo(a,o.x,l.x,c.x,h.x),mo(a,o.y,l.y,c.y,h.y)),i}copy(t){super.copy(t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(i.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,i=this.points.length;e<i;e++){const i=this.points[e];t.points.push(i.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,i=t.points.length;e<i;e++){const i=t.points[e];this.points.push(new Et().fromArray(i))}return this}}var So=Object.freeze({__proto__:null,ArcCurve:ao,CatmullRomCurve3:po,CubicBezierCurve:vo,CubicBezierCurve3:xo,EllipseCurve:so,LineCurve:yo,LineCurve3:_o,QuadraticBezierCurve:Mo,QuadraticBezierCurve3:bo,SplineCurve:wo});class To extends ro{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new yo(e,t))}getPoint(t,e){const i=t*this.getLength(),n=this.getCurveLengths();let r=0;for(;r<n.length;){if(n[r]>=i){const t=n[r]-i,s=this.curves[r],a=s.getLength(),o=0===a?0:1-t/a;return s.getPointAt(o,e)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let i=0,n=this.curves.length;i<n;i++)e+=this.curves[i].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let i=0;i<=t;i++)e.push(this.getPoint(i/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let i;for(let n=0,r=this.curves;n<r.length;n++){const s=r[n],a=s.isEllipseCurve?2*t:s.isLineCurve||s.isLineCurve3?1:s.isSplineCurve?t*s.points.length:t,o=s.getPoints(a);for(let t=0;t<o.length;t++){const n=o[t];i&&i.equals(n)||(e.push(n),i=n)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,i=t.curves.length;e<i;e++){const i=t.curves[e];this.curves.push(i.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,i=this.curves.length;e<i;e++){const i=this.curves[e];t.curves.push(i.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,i=t.curves.length;e<i;e++){const i=t.curves[e];this.curves.push(new So[i.type]().fromJSON(i))}return this}}class Ao extends To{constructor(t){super(),this.type="Path",this.currentPoint=new Et,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,i=t.length;e<i;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const i=new yo(this.currentPoint.clone(),new Et(t,e));return this.curves.push(i),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,i,n){const r=new Mo(this.currentPoint.clone(),new Et(t,e),new Et(i,n));return this.curves.push(r),this.currentPoint.set(i,n),this}bezierCurveTo(t,e,i,n,r,s){const a=new vo(this.currentPoint.clone(),new Et(t,e),new Et(i,n),new Et(r,s));return this.curves.push(a),this.currentPoint.set(r,s),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),i=new wo(e);return this.curves.push(i),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,i,n,r,s){const a=this.currentPoint.x,o=this.currentPoint.y;return this.absarc(t+a,e+o,i,n,r,s),this}absarc(t,e,i,n,r,s){return this.absellipse(t,e,i,i,n,r,s),this}ellipse(t,e,i,n,r,s,a,o){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(t+l,e+c,i,n,r,s,a,o),this}absellipse(t,e,i,n,r,s,a,o){const l=new so(t,e,i,n,r,s,a,o);if(this.curves.length>0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class Eo extends Pi{constructor(t=[new Et(0,.5),new Et(.5,0),new Et(0,-.5)],e=12,i=0,n=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:i,phiLength:n},e=Math.floor(e),n=_t(n,0,2*Math.PI);const r=[],s=[],a=[],o=[],l=[],c=1/e,h=new ee,u=new Et,d=new ee,p=new ee,m=new ee;let f=0,g=0;for(let e=0;e<=t.length-1;e++)switch(e){case 0:f=t[e+1].x-t[e].x,g=t[e+1].y-t[e].y,d.x=1*g,d.y=-f,d.z=0*g,m.copy(d),d.normalize(),o.push(d.x,d.y,d.z);break;case t.length-1:o.push(m.x,m.y,m.z);break;default:f=t[e+1].x-t[e].x,g=t[e+1].y-t[e].y,d.x=1*g,d.y=-f,d.z=0*g,p.copy(d),d.x+=m.x,d.y+=m.y,d.z+=m.z,d.normalize(),o.push(d.x,d.y,d.z),m.copy(p);}for(let r=0;r<=e;r++){const d=i+r*c*n,p=Math.sin(d),m=Math.cos(d);for(let i=0;i<=t.length-1;i++){h.x=t[i].x*p,h.y=t[i].y,h.z=t[i].x*m,s.push(h.x,h.y,h.z),u.x=r/e,u.y=i/(t.length-1),a.push(u.x,u.y);const n=o[3*i+0]*p,c=o[3*i+1],d=o[3*i+0]*m;l.push(n,c,d)}}for(let i=0;i<e;i++)for(let e=0;e<t.length-1;e++){const n=e+i*t.length,s=n,a=n+t.length,o=n+t.length+1,l=n+1;r.push(s,a,l),r.push(o,l,a)}this.setIndex(r),this.setAttribute("position",new wi(s,3)),this.setAttribute("uv",new wi(a,2)),this.setAttribute("normal",new wi(l,3))}static fromJSON(t){return new Eo(t.points,t.segments,t.phiStart,t.phiLength)}}class Co extends Eo{constructor(t=1,e=1,i=4,n=8){const r=new Ao;r.absarc(0,-e/2,t,1.5*Math.PI,0),r.absarc(0,e/2,t,0,.5*Math.PI),super(r.getPoints(i),n),this.type="CapsuleGeometry",this.parameters={radius:t,height:e,capSegments:i,radialSegments:n}}static fromJSON(t){return new Co(t.radius,t.length,t.capSegments,t.radialSegments)}}class Lo extends Pi{constructor(t=1,e=8,i=0,n=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:i,thetaLength:n},e=Math.max(3,e);const r=[],s=[],a=[],o=[],l=new ee,c=new Et;s.push(0,0,0),a.push(0,0,1),o.push(.5,.5);for(let r=0,h=3;r<=e;r++,h+=3){const u=i+r/e*n;l.x=t*Math.cos(u),l.y=t*Math.sin(u),s.push(l.x,l.y,l.z),a.push(0,0,1),c.x=(s[h]/t+1)/2,c.y=(s[h+1]/t+1)/2,o.push(c.x,c.y)}for(let t=1;t<=e;t++)r.push(t,t+1,0);this.setIndex(r),this.setAttribute("position",new wi(s,3)),this.setAttribute("normal",new wi(a,3)),this.setAttribute("uv",new wi(o,2))}static fromJSON(t){return new Lo(t.radius,t.segments,t.thetaStart,t.thetaLength)}}class Ro extends Pi{constructor(t=1,e=1,i=1,n=8,r=1,s=!1,a=0,o=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:i,radialSegments:n,heightSegments:r,openEnded:s,thetaStart:a,thetaLength:o};const l=this;n=Math.floor(n),r=Math.floor(r);const c=[],h=[],u=[],d=[];let p=0;const m=[],f=i/2;let g=0;function v(i){const r=p,s=new Et,m=new ee;let v=0;const x=!0===i?t:e,y=!0===i?1:-1;for(let t=1;t<=n;t++)h.push(0,f*y,0),u.push(0,y,0),d.push(.5,.5),p++;const _=p;for(let t=0;t<=n;t++){const e=t/n*o+a,i=Math.cos(e),r=Math.sin(e);m.x=x*r,m.y=f*y,m.z=x*i,h.push(m.x,m.y,m.z),u.push(0,y,0),s.x=.5*i+.5,s.y=.5*r*y+.5,d.push(s.x,s.y),p++}for(let t=0;t<n;t++){const e=r+t,n=_+t;!0===i?c.push(n,n+1,e):c.push(n+1,n,e),v+=3}l.addGroup(g,v,!0===i?1:2),g+=v}!function(){const s=new ee,v=new ee;let x=0;const y=(e-t)/i;for(let l=0;l<=r;l++){const c=[],g=l/r,x=g*(e-t)+t;for(let t=0;t<=n;t++){const e=t/n,r=e*o+a,l=Math.sin(r),m=Math.cos(r);v.x=x*l,v.y=-g*i+f,v.z=x*m,h.push(v.x,v.y,v.z),s.set(l,y,m).normalize(),u.push(s.x,s.y,s.z),d.push(e,1-g),c.push(p++)}m.push(c)}for(let t=0;t<n;t++)for(let e=0;e<r;e++){const i=m[e][t],n=m[e+1][t],r=m[e+1][t+1],s=m[e][t+1];c.push(i,n,s),c.push(n,r,s),x+=6}l.addGroup(g,x,0),g+=x}(),!1===s&&(t>0&&v(!0),e>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new wi(h,3)),this.setAttribute("normal",new wi(u,3)),this.setAttribute("uv",new wi(d,2))}static fromJSON(t){return new Ro(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Po extends Ro{constructor(t=1,e=1,i=8,n=1,r=!1,s=0,a=2*Math.PI){super(0,t,e,i,n,r,s,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:i,heightSegments:n,openEnded:r,thetaStart:s,thetaLength:a}}static fromJSON(t){return new Po(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Io extends Pi{constructor(t=[],e=[],i=1,n=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:i,detail:n};const r=[],s=[];function a(t,e,i,n){const r=n+1,s=[];for(let n=0;n<=r;n++){s[n]=[];const a=t.clone().lerp(i,n/r),o=e.clone().lerp(i,n/r),l=r-n;for(let t=0;t<=l;t++)s[n][t]=0===t&&n===r?a:a.clone().lerp(o,t/l)}for(let t=0;t<r;t++)for(let e=0;e<2*(r-t)-1;e++){const i=Math.floor(e/2);e%2==0?(o(s[t][i+1]),o(s[t+1][i]),o(s[t][i])):(o(s[t][i+1]),o(s[t+1][i+1]),o(s[t+1][i]))}}function o(t){r.push(t.x,t.y,t.z)}function l(e,i){const n=3*e;i.x=t[n+0],i.y=t[n+1],i.z=t[n+2]}function c(t,e,i,n){n<0&&1===t.x&&(s[e]=t.x-1),0===i.x&&0===i.z&&(s[e]=n/2/Math.PI+.5)}function h(t){return Math.atan2(t.z,-t.x)}!function(t){const i=new ee,n=new ee,r=new ee;for(let s=0;s<e.length;s+=3)l(e[s+0],i),l(e[s+1],n),l(e[s+2],r),a(i,n,r,t)}(n),function(t){const e=new ee;for(let i=0;i<r.length;i+=3)e.x=r[i+0],e.y=r[i+1],e.z=r[i+2],e.normalize().multiplyScalar(t),r[i+0]=e.x,r[i+1]=e.y,r[i+2]=e.z}(i),function(){const t=new ee;for(let i=0;i<r.length;i+=3){t.x=r[i+0],t.y=r[i+1],t.z=r[i+2];const n=h(t)/2/Math.PI+.5,a=(e=t,Math.atan2(-e.y,Math.sqrt(e.x*e.x+e.z*e.z))/Math.PI+.5);s.push(n,1-a)}var e;(function(){const t=new ee,e=new ee,i=new ee,n=new ee,a=new Et,o=new Et,l=new Et;for(let u=0,d=0;u<r.length;u+=9,d+=6){t.set(r[u+0],r[u+1],r[u+2]),e.set(r[u+3],r[u+4],r[u+5]),i.set(r[u+6],r[u+7],r[u+8]),a.set(s[d+0],s[d+1]),o.set(s[d+2],s[d+3]),l.set(s[d+4],s[d+5]),n.copy(t).add(e).add(i).divideScalar(3);const p=h(n);c(a,d+0,t,p),c(o,d+2,e,p),c(l,d+4,i,p)}})(),function(){for(let t=0;t<s.length;t+=6){const e=s[t+0],i=s[t+2],n=s[t+4],r=Math.max(e,i,n),a=Math.min(e,i,n);r>.9&&a<.1&&(e<.2&&(s[t+0]+=1),i<.2&&(s[t+2]+=1),n<.2&&(s[t+4]+=1))}}()}(),this.setAttribute("position",new wi(r,3)),this.setAttribute("normal",new wi(r.slice(),3)),this.setAttribute("uv",new wi(s,2)),0===n?this.computeVertexNormals():this.normalizeNormals()}static fromJSON(t){return new Io(t.vertices,t.indices,t.radius,t.details)}}class Do extends Io{constructor(t=1,e=0){const i=(1+Math.sqrt(5))/2,n=1/i;super([-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,-n,-i,0,-n,i,0,n,-i,0,n,i,-n,-i,0,-n,i,0,n,-i,0,n,i,0,-i,0,-n,i,0,-n,-i,0,n,i,0,n],[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],t,e),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new Do(t.radius,t.detail)}}const No=new ee,Oo=new ee,zo=new ee,Fo=new mi;class Bo extends Pi{constructor(t=null,e=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:t,thresholdAngle:e},null!==t){const i=4,n=Math.pow(10,i),r=Math.cos(vt*e),s=t.getIndex(),a=t.getAttribute("position"),o=s?s.count:a.count,l=[0,0,0],c=["a","b","c"],h=new Array(3),u={},d=[];for(let t=0;t<o;t+=3){s?(l[0]=s.getX(t),l[1]=s.getX(t+1),l[2]=s.getX(t+2)):(l[0]=t,l[1]=t+1,l[2]=t+2);const{a:e,b:i,c:o}=Fo;if(e.fromBufferAttribute(a,l[0]),i.fromBufferAttribute(a,l[1]),o.fromBufferAttribute(a,l[2]),Fo.getNormal(zo),h[0]=`${Math.round(e.x*n)},${Math.round(e.y*n)},${Math.round(e.z*n)}`,h[1]=`${Math.round(i.x*n)},${Math.round(i.y*n)},${Math.round(i.z*n)}`,h[2]=`${Math.round(o.x*n)},${Math.round(o.y*n)},${Math.round(o.z*n)}`,h[0]!==h[1]&&h[1]!==h[2]&&h[2]!==h[0])for(let t=0;t<3;t++){const e=(t+1)%3,i=h[t],n=h[e],s=Fo[c[t]],a=Fo[c[e]],o=`${i}_${n}`,p=`${n}_${i}`;p in u&&u[p]?(zo.dot(u[p].normal)<=r&&(d.push(s.x,s.y,s.z),d.push(a.x,a.y,a.z)),u[p]=null):o in u||(u[o]={index0:l[t],index1:l[e],normal:zo.clone()})}}for(const t in u)if(u[t]){const{index0:e,index1:i}=u[t];No.fromBufferAttribute(a,e),Oo.fromBufferAttribute(a,i),d.push(No.x,No.y,No.z),d.push(Oo.x,Oo.y,Oo.z)}this.setAttribute("position",new wi(d,3))}}}class Uo extends Ao{constructor(t){super(t),this.uuid=yt(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let i=0,n=this.holes.length;i<n;i++)e[i]=this.holes[i].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,i=t.holes.length;e<i;e++){const i=t.holes[e];this.holes.push(i.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,i=this.holes.length;e<i;e++){const i=this.holes[e];t.holes.push(i.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,i=t.holes.length;e<i;e++){const i=t.holes[e];this.holes.push(new Ao().fromJSON(i))}return this}}const ko=function(t,e,i=2){const n=e&&e.length,r=n?e[0]*i:t.length;let s=Go(t,0,r,i,!0);const a=[];if(!s||s.next===s.prev)return a;let o,l,c,h,u,d,p;if(n&&(s=function(t,e,i,n){const r=[];let s,a,o,l,c;for(s=0,a=e.length;s<a;s++)o=e[s]*n,l=s<a-1?e[s+1]*n:t.length,c=Go(t,o,l,n,!1),c===c.next&&(c.steiner=!0),r.push(Qo(c));for(r.sort(Yo),s=0;s<r.length;s++)Zo(r[s],i),i=Vo(i,i.next);return i}(t,e,s,i)),t.length>80*i){o=c=t[0],l=h=t[1];for(let e=i;e<r;e+=i)u=t[e],d=t[e+1],u<o&&(o=u),d<l&&(l=d),u>c&&(c=u),d>h&&(h=d);p=Math.max(c-o,h-l),p=0!==p?1/p:0}return Ho(s,a,i,o,l,p),a};function Go(t,e,i,n,r){let s,a;if(r===function(t,e,i,n){let r=0;for(let s=e,a=i-n;s<i;s+=n)r+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return r}(t,e,i,n)>0)for(s=e;s<i;s+=n)a=ll(s,t[s],t[s+1],a);else for(s=i-n;s>=e;s-=n)a=ll(s,t[s],t[s+1],a);return a&&il(a,a.next)&&(cl(a),a=a.next),a}function Vo(t,e){if(!t)return t;e||(e=t);let i,n=t;do{if(i=!1,n.steiner||!il(n,n.next)&&0!==el(n.prev,n,n.next))n=n.next;else{if(cl(n),n=e=n.prev,n===n.next)break;i=!0}}while(i||n!==e);return e}function Ho(t,e,i,n,r,s,a){if(!t)return;!a&&s&&function(t,e,i,n){let r=t;do{null===r.z&&(r.z=Ko(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){let e,i,n,r,s,a,o,l,c=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,o=0,e=0;e<c&&(o++,n=n.nextZ,n);e++);for(l=c;o>0||l>0&&n;)0!==o&&(0===l||!n||i.z<=n.z)?(r=i,i=i.nextZ,o--):(r=n,n=n.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=n}s.nextZ=null,c*=2}while(a>1)}(r)}(t,n,r,s);let o,l,c=t;for(;t.prev!==t.next;)if(o=t.prev,l=t.next,s?jo(t,n,r,s):Wo(t))e.push(o.i/i),e.push(t.i/i),e.push(l.i/i),cl(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?Ho(t=qo(Vo(t),e,i),e,i,n,r,s,2):2===a&&Xo(t,e,i,n,r,s):Ho(Vo(t),e,i,n,r,s,1);break}}function Wo(t){const e=t.prev,i=t,n=t.next;if(el(e,i,n)>=0)return!1;let r=t.next.next;for(;r!==t.prev;){if($o(e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y)&&el(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function jo(t,e,i,n){const r=t.prev,s=t,a=t.next;if(el(r,s,a)>=0)return!1;const o=r.x<s.x?r.x<a.x?r.x:a.x:s.x<a.x?s.x:a.x,l=r.y<s.y?r.y<a.y?r.y:a.y:s.y<a.y?s.y:a.y,c=r.x>s.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,h=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,u=Ko(o,l,e,i,n),d=Ko(c,h,e,i,n);let p=t.prevZ,m=t.nextZ;for(;p&&p.z>=u&&m&&m.z<=d;){if(p!==t.prev&&p!==t.next&&$o(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&el(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,m!==t.prev&&m!==t.next&&$o(r.x,r.y,s.x,s.y,a.x,a.y,m.x,m.y)&&el(m.prev,m,m.next)>=0)return!1;m=m.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&$o(r.x,r.y,s.x,s.y,a.x,a.y,p.x,p.y)&&el(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;m&&m.z<=d;){if(m!==t.prev&&m!==t.next&&$o(r.x,r.y,s.x,s.y,a.x,a.y,m.x,m.y)&&el(m.prev,m,m.next)>=0)return!1;m=m.nextZ}return!0}function qo(t,e,i){let n=t;do{const r=n.prev,s=n.next.next;!il(r,s)&&nl(r,n,n.next,s)&&al(r,s)&&al(s,r)&&(e.push(r.i/i),e.push(n.i/i),e.push(s.i/i),cl(n),cl(n.next),n=t=s),n=n.next}while(n!==t);return Vo(n)}function Xo(t,e,i,n,r,s){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&tl(a,t)){let o=ol(a,t);return a=Vo(a,a.next),o=Vo(o,o.next),Ho(a,e,i,n,r,s),void Ho(o,e,i,n,r,s)}t=t.next}a=a.next}while(a!==t)}function Yo(t,e){return t.x-e.x}function Zo(t,e){if(e=function(t,e){let i=e;const n=t.x,r=t.y;let s,a=-1/0;do{if(r<=i.y&&r>=i.next.y&&i.next.y!==i.y){const t=i.x+(r-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(t<=n&&t>a){if(a=t,t===n){if(r===i.y)return i;if(r===i.next.y)return i.next}s=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!s)return null;if(n===a)return s;const o=s,l=s.x,c=s.y;let h,u=1/0;i=s;do{n>=i.x&&i.x>=l&&n!==i.x&&$o(r<c?n:a,r,l,c,r<c?a:n,r,i.x,i.y)&&(h=Math.abs(r-i.y)/(n-i.x),al(i,t)&&(h<u||h===u&&(i.x>s.x||i.x===s.x&&Jo(s,i)))&&(s=i,u=h)),i=i.next}while(i!==o);return s}(t,e),e){const i=ol(e,t);Vo(e,e.next),Vo(i,i.next)}}function Jo(t,e){return el(t.prev,t,e.prev)<0&&el(e.next,t,t.next)<0}function Ko(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Qo(t){let e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i}function $o(t,e,i,n,r,s,a,o){return(r-a)*(e-o)-(t-a)*(s-o)>=0&&(t-a)*(n-o)-(i-a)*(e-o)>=0&&(i-a)*(s-o)-(r-a)*(n-o)>=0}function tl(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&nl(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(al(t,e)&&al(e,t)&&function(t,e){let i=t,n=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&r<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}(t,e)&&(el(t.prev,t,e.prev)||el(t,e.prev,e))||il(t,e)&&el(t.prev,t,t.next)>0&&el(e.prev,e,e.next)>0)}function el(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function il(t,e){return t.x===e.x&&t.y===e.y}function nl(t,e,i,n){const r=sl(el(t,e,i)),s=sl(el(t,e,n)),a=sl(el(i,n,t)),o=sl(el(i,n,e));return r!==s&&a!==o||!(0!==r||!rl(t,i,e))||!(0!==s||!rl(t,n,e))||!(0!==a||!rl(i,t,n))||!(0!==o||!rl(i,e,n))}function rl(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function sl(t){return t>0?1:t<0?-1:0}function al(t,e){return el(t.prev,t,t.next)<0?el(t,e,t.next)>=0&&el(t,t.prev,e)>=0:el(t,e,t.prev)<0||el(t,t.next,e)<0}function ol(t,e){const i=new hl(t.i,t.x,t.y),n=new hl(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function ll(t,e,i,n){const r=new hl(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function cl(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function hl(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}class ul{static area(t){const e=t.length;let i=0;for(let n=e-1,r=0;r<e;n=r++)i+=t[n].x*t[r].y-t[r].x*t[n].y;return .5*i}static isClockWise(t){return ul.area(t)<0}static triangulateShape(t,e){const i=[],n=[],r=[];dl(t),pl(i,t);let s=t.length;e.forEach(dl);for(let t=0;t<e.length;t++)n.push(s),s+=e[t].length,pl(i,e[t]);const a=ko(i,n);for(let t=0;t<a.length;t+=3)r.push(a.slice(t,t+3));return r}}function dl(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function pl(t,e){for(let i=0;i<e.length;i++)t.push(e[i].x),t.push(e[i].y)}class ml extends Pi{constructor(t=new Uo([new Et(.5,.5),new Et(-.5,.5),new Et(-.5,-.5),new Et(.5,-.5)]),e={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const i=this,n=[],r=[];for(let e=0,i=t.length;e<i;e++){s(t[e])}function s(t){const s=[],a=void 0!==e.curveSegments?e.curveSegments:12,o=void 0!==e.steps?e.steps:1;let l=void 0!==e.depth?e.depth:1,c=void 0===e.bevelEnabled||e.bevelEnabled,h=void 0!==e.bevelThickness?e.bevelThickness:.2,u=void 0!==e.bevelSize?e.bevelSize:h-.1,d=void 0!==e.bevelOffset?e.bevelOffset:0,p=void 0!==e.bevelSegments?e.bevelSegments:3;const m=e.extrudePath,f=void 0!==e.UVGenerator?e.UVGenerator:fl;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=e.amount);let g,v,x,y,_,M=!1;m&&(g=m.getSpacedPoints(o),M=!0,c=!1,v=m.computeFrenetFrames(o,!1),x=new ee,y=new ee,_=new ee),c||(p=0,h=0,u=0,d=0);const b=t.extractPoints(a);let w=b.shape;const S=b.holes;if(!ul.isClockWise(w)){w=w.reverse();for(let t=0,e=S.length;t<e;t++){const e=S[t];ul.isClockWise(e)&&(S[t]=e.reverse())}}const T=ul.triangulateShape(w,S),A=w;for(let t=0,e=S.length;t<e;t++){const e=S[t];w=w.concat(e)}function E(t,e,i){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(i).add(t)}const C=w.length,L=T.length;function R(t,e,i){let n,r,s;const a=t.x-e.x,o=t.y-e.y,l=i.x-t.x,c=i.y-t.y,h=a*a+o*o,u=a*c-o*l;if(Math.abs(u)>Number.EPSILON){const u=Math.sqrt(h),d=Math.sqrt(l*l+c*c),p=e.x-o/u,m=e.y+a/u,f=((i.x-c/d-p)*c-(i.y+l/d-m)*l)/(a*c-o*l);n=p+a*f-t.x,r=m+o*f-t.y;const g=n*n+r*r;if(g<=2)return new Et(n,r);s=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(o)===Math.sign(c)&&(t=!0),t?(n=-o,r=a,s=Math.sqrt(h)):(n=a,r=o,s=Math.sqrt(h/2))}return new Et(n/s,r/s)}const P=[];for(let t=0,e=A.length,i=e-1,n=t+1;t<e;t++,i++,n++)i===e&&(i=0),n===e&&(n=0),P[t]=R(A[t],A[i],A[n]);const I=[];let D,N=P.concat();for(let t=0,e=S.length;t<e;t++){const e=S[t];D=[];for(let t=0,i=e.length,n=i-1,r=t+1;t<i;t++,n++,r++)n===i&&(n=0),r===i&&(r=0),D[t]=R(e[t],e[n],e[r]);I.push(D),N=N.concat(D)}for(let t=0;t<p;t++){const e=t/p,i=h*Math.cos(e*Math.PI/2),n=u*Math.sin(e*Math.PI/2)+d;for(let t=0,e=A.length;t<e;t++){const e=E(A[t],P[t],n);F(e.x,e.y,-i)}for(let t=0,e=S.length;t<e;t++){const e=S[t];D=I[t];for(let t=0,r=e.length;t<r;t++){const r=E(e[t],D[t],n);F(r.x,r.y,-i)}}}const O=u+d;for(let t=0;t<C;t++){const e=c?E(w[t],N[t],O):w[t];M?(y.copy(v.normals[0]).multiplyScalar(e.x),x.copy(v.binormals[0]).multiplyScalar(e.y),_.copy(g[0]).add(y).add(x),F(_.x,_.y,_.z)):F(e.x,e.y,0)}for(let t=1;t<=o;t++)for(let e=0;e<C;e++){const i=c?E(w[e],N[e],O):w[e];M?(y.copy(v.normals[t]).multiplyScalar(i.x),x.copy(v.binormals[t]).multiplyScalar(i.y),_.copy(g[t]).add(y).add(x),F(_.x,_.y,_.z)):F(i.x,i.y,l/o*t)}for(let t=p-1;t>=0;t--){const e=t/p,i=h*Math.cos(e*Math.PI/2),n=u*Math.sin(e*Math.PI/2)+d;for(let t=0,e=A.length;t<e;t++){const e=E(A[t],P[t],n);F(e.x,e.y,l+i)}for(let t=0,e=S.length;t<e;t++){const e=S[t];D=I[t];for(let t=0,r=e.length;t<r;t++){const r=E(e[t],D[t],n);M?F(r.x,r.y+g[o-1].y,g[o-1].x+i):F(r.x,r.y,l+i)}}}function z(t,e){let i=t.length;for(;--i>=0;){const n=i;let r=i-1;r<0&&(r=t.length-1);for(let t=0,i=o+2*p;t<i;t++){const i=C*t,s=C*(t+1);U(e+n+i,e+r+i,e+r+s,e+n+s)}}}function F(t,e,i){s.push(t),s.push(e),s.push(i)}function B(t,e,r){k(t),k(e),k(r);const s=n.length/3,a=f.generateTopUV(i,n,s-3,s-2,s-1);G(a[0]),G(a[1]),G(a[2])}function U(t,e,r,s){k(t),k(e),k(s),k(e),k(r),k(s);const a=n.length/3,o=f.generateSideWallUV(i,n,a-6,a-3,a-2,a-1);G(o[0]),G(o[1]),G(o[3]),G(o[1]),G(o[2]),G(o[3])}function k(t){n.push(s[3*t+0]),n.push(s[3*t+1]),n.push(s[3*t+2])}function G(t){r.push(t.x),r.push(t.y)}!function(){const t=n.length/3;if(c){let t=0,e=C*t;for(let t=0;t<L;t++){const i=T[t];B(i[2]+e,i[1]+e,i[0]+e)}t=o+2*p,e=C*t;for(let t=0;t<L;t++){const i=T[t];B(i[0]+e,i[1]+e,i[2]+e)}}else{for(let t=0;t<L;t++){const e=T[t];B(e[2],e[1],e[0])}for(let t=0;t<L;t++){const e=T[t];B(e[0]+C*o,e[1]+C*o,e[2]+C*o)}}i.addGroup(t,n.length/3-t,0)}(),function(){const t=n.length/3;let e=0;z(A,e),e+=A.length;for(let t=0,i=S.length;t<i;t++){const i=S[t];z(i,e),e+=i.length}i.addGroup(t,n.length/3-t,1)}()}this.setAttribute("position",new wi(n,3)),this.setAttribute("uv",new wi(r,2)),this.computeVertexNormals()}toJSON(){const t=super.toJSON();return function(t,e,i){if(i.shapes=[],Array.isArray(t))for(let e=0,n=t.length;e<n;e++){const n=t[e];i.shapes.push(n.uuid)}else i.shapes.push(t.uuid);i.options=Object.assign({},e),void 0!==e.extrudePath&&(i.options.extrudePath=e.extrudePath.toJSON());return i}(this.parameters.shapes,this.parameters.options,t)}static fromJSON(t,e){const i=[];for(let n=0,r=t.shapes.length;n<r;n++){const r=e[t.shapes[n]];i.push(r)}const n=t.options.extrudePath;return void 0!==n&&(t.options.extrudePath=new So[n.type]().fromJSON(n)),new ml(i,t.options)}}const fl={generateTopUV:function(t,e,i,n,r){const s=e[3*i],a=e[3*i+1],o=e[3*n],l=e[3*n+1],c=e[3*r],h=e[3*r+1];return[new Et(s,a),new Et(o,l),new Et(c,h)]},generateSideWallUV:function(t,e,i,n,r,s){const a=e[3*i],o=e[3*i+1],l=e[3*i+2],c=e[3*n],h=e[3*n+1],u=e[3*n+2],d=e[3*r],p=e[3*r+1],m=e[3*r+2],f=e[3*s],g=e[3*s+1],v=e[3*s+2];return Math.abs(o-h)<Math.abs(a-c)?[new Et(a,1-l),new Et(c,1-u),new Et(d,1-m),new Et(f,1-v)]:[new Et(o,1-l),new Et(h,1-u),new Et(p,1-m),new Et(g,1-v)]}};class gl extends Io{constructor(t=1,e=0){const i=(1+Math.sqrt(5))/2;super([-1,i,0,1,i,0,-1,-i,0,1,-i,0,0,-1,i,0,1,i,0,-1,-i,0,1,-i,i,0,-1,i,0,1,-i,0,-1,-i,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],t,e),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new gl(t.radius,t.detail)}}class vl extends Io{constructor(t=1,e=0){super([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],t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new vl(t.radius,t.detail)}}class xl extends Pi{constructor(t=.5,e=1,i=8,n=1,r=0,s=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:i,phiSegments:n,thetaStart:r,thetaLength:s},i=Math.max(3,i);const a=[],o=[],l=[],c=[];let h=t;const u=(e-t)/(n=Math.max(1,n)),d=new ee,p=new Et;for(let t=0;t<=n;t++){for(let t=0;t<=i;t++){const n=r+t/i*s;d.x=h*Math.cos(n),d.y=h*Math.sin(n),o.push(d.x,d.y,d.z),l.push(0,0,1),p.x=(d.x/e+1)/2,p.y=(d.y/e+1)/2,c.push(p.x,p.y)}h+=u}for(let t=0;t<n;t++){const e=t*(i+1);for(let t=0;t<i;t++){const n=t+e,r=n,s=n+i+1,o=n+i+2,l=n+1;a.push(r,s,l),a.push(s,o,l)}}this.setIndex(a),this.setAttribute("position",new wi(o,3)),this.setAttribute("normal",new wi(l,3)),this.setAttribute("uv",new wi(c,2))}static fromJSON(t){return new xl(t.innerRadius,t.outerRadius,t.thetaSegments,t.phiSegments,t.thetaStart,t.thetaLength)}}class yl extends Pi{constructor(t=new Uo([new Et(0,.5),new Et(-.5,-.5),new Et(.5,-.5)]),e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const i=[],n=[],r=[],s=[];let a=0,o=0;if(!1===Array.isArray(t))l(t);else for(let e=0;e<t.length;e++)l(t[e]),this.addGroup(a,o,e),a+=o,o=0;function l(t){const a=n.length/3,l=t.extractPoints(e);let c=l.shape;const h=l.holes;!1===ul.isClockWise(c)&&(c=c.reverse());for(let t=0,e=h.length;t<e;t++){const e=h[t];!0===ul.isClockWise(e)&&(h[t]=e.reverse())}const u=ul.triangulateShape(c,h);for(let t=0,e=h.length;t<e;t++){const e=h[t];c=c.concat(e)}for(let t=0,e=c.length;t<e;t++){const e=c[t];n.push(e.x,e.y,0),r.push(0,0,1),s.push(e.x,e.y)}for(let t=0,e=u.length;t<e;t++){const e=u[t],n=e[0]+a,r=e[1]+a,s=e[2]+a;i.push(n,r,s),o+=3}}this.setIndex(i),this.setAttribute("position",new wi(n,3)),this.setAttribute("normal",new wi(r,3)),this.setAttribute("uv",new wi(s,2))}toJSON(){const t=super.toJSON();return function(t,e){if(e.shapes=[],Array.isArray(t))for(let i=0,n=t.length;i<n;i++){const n=t[i];e.shapes.push(n.uuid)}else e.shapes.push(t.uuid);return e}(this.parameters.shapes,t)}static fromJSON(t,e){const i=[];for(let n=0,r=t.shapes.length;n<r;n++){const r=e[t.shapes[n]];i.push(r)}return new yl(i,t.curveSegments)}}class _l extends Pi{constructor(t=1,e=32,i=16,n=0,r=2*Math.PI,s=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:i,phiStart:n,phiLength:r,thetaStart:s,thetaLength:a},e=Math.max(3,Math.floor(e)),i=Math.max(2,Math.floor(i));const o=Math.min(s+a,Math.PI);let l=0;const c=[],h=new ee,u=new ee,d=[],p=[],m=[],f=[];for(let d=0;d<=i;d++){const g=[],v=d/i;let x=0;0==d&&0==s?x=.5/e:d==i&&o==Math.PI&&(x=-.5/e);for(let i=0;i<=e;i++){const o=i/e;h.x=-t*Math.cos(n+o*r)*Math.sin(s+v*a),h.y=t*Math.cos(s+v*a),h.z=t*Math.sin(n+o*r)*Math.sin(s+v*a),p.push(h.x,h.y,h.z),u.copy(h).normalize(),m.push(u.x,u.y,u.z),f.push(o+x,1-v),g.push(l++)}c.push(g)}for(let t=0;t<i;t++)for(let n=0;n<e;n++){const e=c[t][n+1],r=c[t][n],a=c[t+1][n],l=c[t+1][n+1];(0!==t||s>0)&&d.push(e,r,l),(t!==i-1||o<Math.PI)&&d.push(r,a,l)}this.setIndex(d),this.setAttribute("position",new wi(p,3)),this.setAttribute("normal",new wi(m,3)),this.setAttribute("uv",new wi(f,2))}static fromJSON(t){return new _l(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}class Ml extends Io{constructor(t=1,e=0){super([1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new Ml(t.radius,t.detail)}}class bl extends Pi{constructor(t=1,e=.4,i=8,n=6,r=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:i,tubularSegments:n,arc:r},i=Math.floor(i),n=Math.floor(n);const s=[],a=[],o=[],l=[],c=new ee,h=new ee,u=new ee;for(let s=0;s<=i;s++)for(let d=0;d<=n;d++){const p=d/n*r,m=s/i*Math.PI*2;h.x=(t+e*Math.cos(m))*Math.cos(p),h.y=(t+e*Math.cos(m))*Math.sin(p),h.z=e*Math.sin(m),a.push(h.x,h.y,h.z),c.x=t*Math.cos(p),c.y=t*Math.sin(p),u.subVectors(h,c).normalize(),o.push(u.x,u.y,u.z),l.push(d/n),l.push(s/i)}for(let t=1;t<=i;t++)for(let e=1;e<=n;e++){const i=(n+1)*t+e-1,r=(n+1)*(t-1)+e-1,a=(n+1)*(t-1)+e,o=(n+1)*t+e;s.push(i,r,o),s.push(r,a,o)}this.setIndex(s),this.setAttribute("position",new wi(a,3)),this.setAttribute("normal",new wi(o,3)),this.setAttribute("uv",new wi(l,2))}static fromJSON(t){return new bl(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}}class wl extends Pi{constructor(t=1,e=.4,i=64,n=8,r=2,s=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:i,radialSegments:n,p:r,q:s},i=Math.floor(i),n=Math.floor(n);const a=[],o=[],l=[],c=[],h=new ee,u=new ee,d=new ee,p=new ee,m=new ee,f=new ee,g=new ee;for(let a=0;a<=i;++a){const x=a/i*r*Math.PI*2;v(x,r,s,t,d),v(x+.01,r,s,t,p),f.subVectors(p,d),g.addVectors(p,d),m.crossVectors(f,g),g.crossVectors(m,f),m.normalize(),g.normalize();for(let t=0;t<=n;++t){const r=t/n*Math.PI*2,s=-e*Math.cos(r),p=e*Math.sin(r);h.x=d.x+(s*g.x+p*m.x),h.y=d.y+(s*g.y+p*m.y),h.z=d.z+(s*g.z+p*m.z),o.push(h.x,h.y,h.z),u.subVectors(h,d).normalize(),l.push(u.x,u.y,u.z),c.push(a/i),c.push(t/n)}}for(let t=1;t<=i;t++)for(let e=1;e<=n;e++){const i=(n+1)*(t-1)+(e-1),r=(n+1)*t+(e-1),s=(n+1)*t+e,o=(n+1)*(t-1)+e;a.push(i,r,o),a.push(r,s,o)}function v(t,e,i,n,r){const s=Math.cos(t),a=Math.sin(t),o=i/e*t,l=Math.cos(o);r.x=n*(2+l)*.5*s,r.y=n*(2+l)*a*.5,r.z=n*Math.sin(o)*.5}this.setIndex(a),this.setAttribute("position",new wi(o,3)),this.setAttribute("normal",new wi(l,3)),this.setAttribute("uv",new wi(c,2))}static fromJSON(t){return new wl(t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q)}}class Sl extends Pi{constructor(t=new bo(new ee(-1,-1,0),new ee(-1,1,0),new ee(1,1,0)),e=64,i=1,n=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:i,radialSegments:n,closed:r};const s=t.computeFrenetFrames(e,r);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const a=new ee,o=new ee,l=new Et;let c=new ee;const h=[],u=[],d=[],p=[];function m(r){c=t.getPointAt(r/e,c);const l=s.normals[r],d=s.binormals[r];for(let t=0;t<=n;t++){const e=t/n*Math.PI*2,r=Math.sin(e),s=-Math.cos(e);o.x=s*l.x+r*d.x,o.y=s*l.y+r*d.y,o.z=s*l.z+r*d.z,o.normalize(),u.push(o.x,o.y,o.z),a.x=c.x+i*o.x,a.y=c.y+i*o.y,a.z=c.z+i*o.z,h.push(a.x,a.y,a.z)}}!function(){for(let t=0;t<e;t++)m(t);m(!1===r?e:0),function(){for(let t=0;t<=e;t++)for(let i=0;i<=n;i++)l.x=t/e,l.y=i/n,d.push(l.x,l.y)}(),function(){for(let t=1;t<=e;t++)for(let e=1;e<=n;e++){const i=(n+1)*(t-1)+(e-1),r=(n+1)*t+(e-1),s=(n+1)*t+e,a=(n+1)*(t-1)+e;p.push(i,r,a),p.push(r,s,a)}}()}(),this.setIndex(p),this.setAttribute("position",new wi(h,3)),this.setAttribute("normal",new wi(u,3)),this.setAttribute("uv",new wi(d,2))}toJSON(){const t=super.toJSON();return t.path=this.parameters.path.toJSON(),t}static fromJSON(t){return new Sl(new So[t.path.type]().fromJSON(t.path),t.tubularSegments,t.radius,t.radialSegments,t.closed)}}class Tl extends Pi{constructor(t=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:t},null!==t){const e=[],i=new Set,n=new ee,r=new ee;if(null!==t.index){const s=t.attributes.position,a=t.index;let o=t.groups;0===o.length&&(o=[{start:0,count:a.count,materialIndex:0}]);for(let t=0,l=o.length;t<l;++t){const l=o[t],c=l.start;for(let t=c,o=c+l.count;t<o;t+=3)for(let o=0;o<3;o++){const l=a.getX(t+o),c=a.getX(t+(o+1)%3);n.fromBufferAttribute(s,l),r.fromBufferAttribute(s,c),!0===Al(n,r,i)&&(e.push(n.x,n.y,n.z),e.push(r.x,r.y,r.z))}}}else{const s=t.attributes.position;for(let t=0,a=s.count/3;t<a;t++)for(let a=0;a<3;a++){const o=3*t+a,l=3*t+(a+1)%3;n.fromBufferAttribute(s,o),r.fromBufferAttribute(s,l),!0===Al(n,r,i)&&(e.push(n.x,n.y,n.z),e.push(r.x,r.y,r.z))}}this.setAttribute("position",new wi(e,3))}}}function Al(t,e,i){const n=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`,r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`;return!0!==i.has(n)&&!0!==i.has(r)&&(i.add(n),i.add(r),!0)}var El=Object.freeze({__proto__:null,BoxGeometry:Ki,BoxBufferGeometry:Ki,CapsuleGeometry:Co,CapsuleBufferGeometry:Co,CircleGeometry:Lo,CircleBufferGeometry:Lo,ConeGeometry:Po,ConeBufferGeometry:Po,CylinderGeometry:Ro,CylinderBufferGeometry:Ro,DodecahedronGeometry:Do,DodecahedronBufferGeometry:Do,EdgesGeometry:Bo,ExtrudeGeometry:ml,ExtrudeBufferGeometry:ml,IcosahedronGeometry:gl,IcosahedronBufferGeometry:gl,LatheGeometry:Eo,LatheBufferGeometry:Eo,OctahedronGeometry:vl,OctahedronBufferGeometry:vl,PlaneGeometry:xn,PlaneBufferGeometry:xn,PolyhedronGeometry:Io,PolyhedronBufferGeometry:Io,RingGeometry:xl,RingBufferGeometry:xl,ShapeGeometry:yl,ShapeBufferGeometry:yl,SphereGeometry:_l,SphereBufferGeometry:_l,TetrahedronGeometry:Ml,TetrahedronBufferGeometry:Ml,TorusGeometry:bl,TorusBufferGeometry:bl,TorusKnotGeometry:wl,TorusKnotBufferGeometry:wl,TubeGeometry:Sl,TubeBufferGeometry:Sl,WireframeGeometry:Tl});class Cl extends gi{constructor(t){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new Ht(0),this.transparent=!0,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.fog=t.fog,this}}class Ll extends en{constructor(t){super(t),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class Rl extends gi{constructor(t){super(),this.isMeshStandardMaterial=!0,this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Ht(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ht(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Et(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class Pl extends Rl{constructor(t){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new Et(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return _t(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Ht(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new Ht(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Ht(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._iridescence=0,this._transmission=0,this.setValues(t)}get sheen(){return this._sheen}set sheen(t){this._sheen>0!=t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}class Il extends gi{constructor(t){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Ht(16777215),this.specular=new Ht(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ht(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Et(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class Dl extends gi{constructor(t){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Ht(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ht(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Et(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}class Nl extends gi{constructor(t){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Et(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.flatShading=t.flatShading,this}}class Ol extends gi{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Ht(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ht(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}class zl extends gi{constructor(t){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Ht(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new Et(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.flatShading=t.flatShading,this.fog=t.fog,this}}class Fl extends Ua{constructor(t){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}const Bl={arraySlice:function(t,e,i){return Bl.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==i?i:t.length)):t.slice(e,i)},convertArray:function(t,e,i){return!t||!i&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){const e=t.length,i=new Array(e);for(let t=0;t!==e;++t)i[t]=t;return i.sort(function(e,i){return t[e]-t[i]}),i},sortedArray:function(t,e,i){const n=t.length,r=new t.constructor(n);for(let s=0,a=0;a!==n;++s){const n=i[s]*e;for(let i=0;i!==e;++i)r[a++]=t[n+i]}return r},flattenJSON:function(t,e,i,n){let r=1,s=t[0];for(;void 0!==s&&void 0===s[n];)s=t[r++];if(void 0===s)return;let a=s[n];if(void 0!==a)if(Array.isArray(a))do{a=s[n],void 0!==a&&(e.push(s.time),i.push.apply(i,a)),s=t[r++]}while(void 0!==s);else if(void 0!==a.toArray)do{a=s[n],void 0!==a&&(e.push(s.time),a.toArray(i,i.length)),s=t[r++]}while(void 0!==s);else do{a=s[n],void 0!==a&&(e.push(s.time),i.push(a)),s=t[r++]}while(void 0!==s)},subclip:function(t,e,i,n,r=30){const s=t.clone();s.name=e;const a=[];for(let t=0;t<s.tracks.length;++t){const e=s.tracks[t],o=e.getValueSize(),l=[],c=[];for(let t=0;t<e.times.length;++t){const s=e.times[t]*r;if(!(s<i||s>=n)){l.push(e.times[t]);for(let i=0;i<o;++i)c.push(e.values[t*o+i])}}0!==l.length&&(e.times=Bl.convertArray(l,e.times.constructor),e.values=Bl.convertArray(c,e.values.constructor),a.push(e))}s.tracks=a;let o=1/0;for(let t=0;t<s.tracks.length;++t)o>s.tracks[t].times[0]&&(o=s.tracks[t].times[0]);for(let t=0;t<s.tracks.length;++t)s.tracks[t].shift(-1*o);return s.resetDuration(),s},makeClipAdditive:function(t,e=0,i=t,n=30){n<=0&&(n=30);const r=i.tracks.length,s=e/n;for(let e=0;e<r;++e){const n=i.tracks[e],r=n.ValueTypeName;if("bool"===r||"string"===r)continue;const a=t.tracks.find(function(t){return t.name===n.name&&t.ValueTypeName===r});if(void 0===a)continue;let o=0;const l=n.getValueSize();n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(o=l/3);let c=0;const h=a.getValueSize();a.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=h/3);const u=n.times.length-1;let d;if(s<=n.times[0]){const t=o,e=l-o;d=Bl.arraySlice(n.values,t,e)}else if(s>=n.times[u]){const t=u*l+o,e=t+l-o;d=Bl.arraySlice(n.values,t,e)}else{const t=n.createInterpolant(),e=o,i=l-o;t.evaluate(s),d=Bl.arraySlice(t.resultBuffer,e,i)}if("quaternion"===r){new te().fromArray(d).normalize().conjugate().toArray(d)}const p=a.times.length;for(let t=0;t<p;++t){const e=t*h+c;if("quaternion"===r)te.multiplyQuaternionsFlat(a.values,e,d,0,a.values,e);else{const t=h-2*c;for(let i=0;i<t;++i)a.values[e+i]-=d[i]}}}return t.blendMode=st,t}};class Ul{constructor(t,e,i,n){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==n?n:new e.constructor(i),this.sampleValues=e,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let i=this._cachedIndex,n=e[i],r=e[i-1];t:{e:{let s;i:{n:if(!(t<n)){for(let s=i+2;;){if(void 0===n){if(t<r)break n;return i=e.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===s)break;if(r=n,n=e[++i],t<n)break e}s=e.length;break i}if(t>=r)break t;{const a=e[1];t<a&&(i=2,r=a);for(let s=i-2;;){if(void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(i===s)break;if(n=r,r=e[--i-1],t>=r)break e}s=i,i=0}}for(;i<s;){const n=i+s>>>1;t<e[n]?s=n:i=n+1}if(n=e[i],r=e[i-1],void 0===r)return this._cachedIndex=0,this.copySampleValue_(0);if(void 0===n)return i=e.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,r,n)}return this.interpolate_(i,r,t,n)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){const e=this.resultBuffer,i=this.sampleValues,n=this.valueSize,r=t*n;for(let t=0;t!==n;++t)e[t]=i[r+t];return e}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class kl extends Ul{constructor(t,e,i,n){super(t,e,i,n),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:et,endingEnd:et}}intervalChanged_(t,e,i){const n=this.parameterPositions;let r=t-2,s=t+1,a=n[r],o=n[s];if(void 0===a)switch(this.getSettings_().endingStart){case it:r=t,a=2*e-i;break;case nt:r=n.length-2,a=e+n[r]-n[r+1];break;default:r=t,a=i;}if(void 0===o)switch(this.getSettings_().endingEnd){case it:s=t,o=2*i-e;break;case nt:s=1,o=i+n[1]-n[0];break;default:s=t-1,o=e;}const l=.5*(i-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(o-i),this._offsetPrev=r*c,this._offsetNext=s*c}interpolate_(t,e,i,n){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=this._offsetPrev,h=this._offsetNext,u=this._weightPrev,d=this._weightNext,p=(i-e)/(n-e),m=p*p,f=m*p,g=-u*f+2*u*m-u*p,v=(1+u)*f+(-1.5-2*u)*m+(-.5+u)*p+1,x=(-1-d)*f+(1.5+d)*m+.5*p,y=d*f-d*m;for(let t=0;t!==a;++t)r[t]=g*s[c+t]+v*s[l+t]+x*s[o+t]+y*s[h+t];return r}}class Gl extends Ul{constructor(t,e,i,n){super(t,e,i,n)}interpolate_(t,e,i,n){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=t*a,l=o-a,c=(i-e)/(n-e),h=1-c;for(let t=0;t!==a;++t)r[t]=s[l+t]*h+s[o+t]*c;return r}}class Vl extends Ul{constructor(t,e,i,n){super(t,e,i,n)}interpolate_(t){return this.copySampleValue_(t-1)}}class Hl{constructor(t,e,i,n){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Bl.convertArray(e,this.TimeBufferType),this.values=Bl.convertArray(i,this.ValueBufferType),this.setInterpolation(n||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let i;if(e.toJSON!==this.toJSON)i=e.toJSON(t);else{i={name:t.name,times:Bl.convertArray(t.times,Array),values:Bl.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(i.interpolation=e)}return i.type=t.ValueTypeName,i}InterpolantFactoryMethodDiscrete(t){return new Vl(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new Gl(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new kl(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case Q:e=this.InterpolantFactoryMethodDiscrete;break;case $:e=this.InterpolantFactoryMethodLinear;break;case tt:e=this.InterpolantFactoryMethodSmooth;}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Q;case this.InterpolantFactoryMethodLinear:return $;case this.InterpolantFactoryMethodSmooth:return tt;}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let i=0,n=e.length;i!==n;++i)e[i]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let i=0,n=e.length;i!==n;++i)e[i]*=t}return this}trim(t,e){const i=this.times,n=i.length;let r=0,s=n-1;for(;r!==n&&i[r]<t;)++r;for(;-1!==s&&i[s]>e;)--s;if(++s,0!==r||s!==n){r>=s&&(s=Math.max(s,1),r=s-1);const t=this.getValueSize();this.times=Bl.arraySlice(i,r,s),this.values=Bl.arraySlice(this.values,r*t,s*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const i=this.times,n=this.values,r=i.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let s=null;for(let e=0;e!==r;e++){const n=i[e];if("number"==typeof n&&isNaN(n)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,n),t=!1;break}if(null!==s&&s>n){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,n,s),t=!1;break}s=n}if(void 0!==n&&Bl.isTypedArray(n))for(let e=0,i=n.length;e!==i;++e){const i=n[e];if(isNaN(i)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,i),t=!1;break}}return t}optimize(){const t=Bl.arraySlice(this.times),e=Bl.arraySlice(this.values),i=this.getValueSize(),n=this.getInterpolation()===tt,r=t.length-1;let s=1;for(let a=1;a<r;++a){let r=!1;const o=t[a];if(o!==t[a+1]&&(1!==a||o!==t[0]))if(n)r=!0;else{const t=a*i,n=t-i,s=t+i;for(let a=0;a!==i;++a){const i=e[t+a];if(i!==e[n+a]||i!==e[s+a]){r=!0;break}}}if(r){if(a!==s){t[s]=t[a];const n=a*i,r=s*i;for(let t=0;t!==i;++t)e[r+t]=e[n+t]}++s}}if(r>0){t[s]=t[r];for(let t=r*i,n=s*i,a=0;a!==i;++a)e[n+a]=e[t+a];++s}return s!==t.length?(this.times=Bl.arraySlice(t,0,s),this.values=Bl.arraySlice(e,0,s*i)):(this.times=t,this.values=e),this}clone(){const t=Bl.arraySlice(this.times,0),e=Bl.arraySlice(this.values,0),i=new(0,this.constructor)(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}Hl.prototype.TimeBufferType=Float32Array,Hl.prototype.ValueBufferType=Float32Array,Hl.prototype.DefaultInterpolation=$;class Wl extends Hl{}Wl.prototype.ValueTypeName="bool",Wl.prototype.ValueBufferType=Array,Wl.prototype.DefaultInterpolation=Q,Wl.prototype.InterpolantFactoryMethodLinear=void 0,Wl.prototype.InterpolantFactoryMethodSmooth=void 0;class jl extends Hl{}jl.prototype.ValueTypeName="color";class ql extends Hl{}ql.prototype.ValueTypeName="number";class Xl extends Ul{constructor(t,e,i,n){super(t,e,i,n)}interpolate_(t,e,i,n){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=(i-e)/(n-e);let l=t*a;for(let t=l+a;l!==t;l+=4)te.slerpFlat(r,0,s,l-a,s,l,o);return r}}class Yl extends Hl{InterpolantFactoryMethodLinear(t){return new Xl(this.times,this.values,this.getValueSize(),t)}}Yl.prototype.ValueTypeName="quaternion",Yl.prototype.DefaultInterpolation=$,Yl.prototype.InterpolantFactoryMethodSmooth=void 0;class Zl extends Hl{}Zl.prototype.ValueTypeName="string",Zl.prototype.ValueBufferType=Array,Zl.prototype.DefaultInterpolation=Q,Zl.prototype.InterpolantFactoryMethodLinear=void 0,Zl.prototype.InterpolantFactoryMethodSmooth=void 0;class Jl extends Hl{}Jl.prototype.ValueTypeName="vector";class Kl{constructor(t,e=-1,i,n=2500){this.name=t,this.tracks=i,this.duration=e,this.blendMode=n,this.uuid=yt(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],i=t.tracks,n=1/(t.fps||1);for(let t=0,r=i.length;t!==r;++t)e.push(Ql(i[t]).scale(n));const r=new this(t.name,t.duration,e,t.blendMode);return r.uuid=t.uuid,r}static toJSON(t){const e=[],i=t.tracks,n={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,n=i.length;t!==n;++t)e.push(Hl.toJSON(i[t]));return n}static CreateFromMorphTargetSequence(t,e,i,n){const r=e.length,s=[];for(let t=0;t<r;t++){let a=[],o=[];a.push((t+r-1)%r,t,(t+1)%r),o.push(0,1,0);const l=Bl.getKeyframeOrder(a);a=Bl.sortedArray(a,1,l),o=Bl.sortedArray(o,1,l),n||0!==a[0]||(a.push(r),o.push(o[0])),s.push(new ql(".morphTargetInfluences["+e[t].name+"]",a,o).scale(1/i))}return new this(t,-1,s)}static findByName(t,e){let i=t;if(!Array.isArray(t)){const e=t;i=e.geometry&&e.geometry.animations||e.animations}for(let t=0;t<i.length;t++)if(i[t].name===e)return i[t];return null}static CreateClipsFromMorphTargetSequences(t,e,i){const n={},r=/^([\w-]*?)([\d]+)$/;for(let e=0,i=t.length;e<i;e++){const i=t[e],s=i.name.match(r);if(s&&s.length>1){const t=s[1];let e=n[t];e||(n[t]=e=[]),e.push(i)}}const s=[];for(const t in n)s.push(this.CreateFromMorphTargetSequence(t,n[t],e,i));return s}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const i=function(t,e,i,n,r){if(0!==i.length){const s=[],a=[];Bl.flattenJSON(i,s,a,n),0!==s.length&&r.push(new t(e,s,a))}},n=[],r=t.name||"default",s=t.fps||30,a=t.blendMode;let o=t.length||-1;const l=t.hierarchy||[];for(let t=0;t<l.length;t++){const r=l[t].keys;if(r&&0!==r.length)if(r[0].morphTargets){const t={};let e;for(e=0;e<r.length;e++)if(r[e].morphTargets)for(let i=0;i<r[e].morphTargets.length;i++)t[r[e].morphTargets[i]]=-1;for(const i in t){const t=[],s=[];for(let n=0;n!==r[e].morphTargets.length;++n){const n=r[e];t.push(n.time),s.push(n.morphTarget===i?1:0)}n.push(new ql(".morphTargetInfluence["+i+"]",t,s))}o=t.length*s}else{const s=".bones["+e[t].name+"]";i(Jl,s+".position",r,"pos",n),i(Yl,s+".quaternion",r,"rot",n),i(Jl,s+".scale",r,"scl",n)}}if(0===n.length)return null;return new this(r,o,n,a)}resetDuration(){let t=0;for(let e=0,i=this.tracks.length;e!==i;++e){const i=this.tracks[e];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Ql(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return ql;case"vector":case"vector2":case"vector3":case"vector4":return Jl;case"color":return jl;case"quaternion":return Yl;case"bool":case"boolean":return Wl;case"string":return Zl;}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){const e=[],i=[];Bl.flattenJSON(t.keys,e,i,"value"),t.times=e,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const $l={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class tc{constructor(t,e,i){const n=this;let r,s=!1,a=0,o=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=i,this.itemStart=function(t){o++,!1===s&&void 0!==n.onStart&&n.onStart(t,a,o),s=!0},this.itemEnd=function(t){a++,void 0!==n.onProgress&&n.onProgress(t,a,o),a===o&&(s=!1,void 0!==n.onLoad&&n.onLoad())},this.itemError=function(t){void 0!==n.onError&&n.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,i=l.length;e<i;e+=2){const i=l[e],n=l[e+1];if(i.global&&(i.lastIndex=0),i.test(t))return n}return null}}}const ec=new tc;class ic{constructor(t){this.manager=void 0!==t?t:ec,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const i=this;return new Promise(function(n,r){i.load(t,n,e,r)})}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const nc={};class rc extends ic{constructor(t){super(t)}load(t,e,i,n){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=$l.get(t);if(void 0!==r)return this.manager.itemStart(t),setTimeout(()=>{e&&e(r),this.manager.itemEnd(t)},0),r;if(void 0!==nc[t])return void nc[t].push({onLoad:e,onProgress:i,onError:n});nc[t]=[],nc[t].push({onLoad:e,onProgress:i,onError:n});const s=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,o=this.responseType;fetch(s).then(e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===e.body||void 0===e.body.getReader)return e;const i=nc[t],n=e.body.getReader(),r=e.headers.get("Content-Length"),s=r?parseInt(r):0,a=0!==s;let o=0;const l=new ReadableStream({start(t){!function e(){n.read().then(({done:n,value:r})=>{if(n)t.close();else{o+=r.byteLength;const n=new ProgressEvent("progress",{lengthComputable:a,loaded:o,total:s});for(let t=0,e=i.length;t<e;t++){const e=i[t];e.onProgress&&e.onProgress(n)}t.enqueue(r),e()}})}()}});return new Response(l)}throw Error(`fetch for "${e.url}" responded with ${e.status}: ${e.statusText}`)}).then(t=>{switch(o){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then(t=>new DOMParser().parseFromString(t,a));case"json":return t.json();default:if(void 0===a)return t.text();{const e=/charset="?([^;"\s]*)"?/i.exec(a),i=e&&e[1]?e[1].toLowerCase():void 0,n=new TextDecoder(i);return t.arrayBuffer().then(t=>n.decode(t))}}}).then(e=>{$l.add(t,e);const i=nc[t];delete nc[t];for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onLoad&&n.onLoad(e)}}).catch(e=>{const i=nc[t];if(void 0===i)throw this.manager.itemError(t),e;delete nc[t];for(let t=0,n=i.length;t<n;t++){const n=i[t];n.onError&&n.onError(e)}this.manager.itemError(t)}).finally(()=>{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class sc extends ic{constructor(t){super(t)}load(t,e,i,n){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=$l.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout(function(){e&&e(s),r.manager.itemEnd(t)},0),s;const a=It("img");function o(){c(),$l.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){c(),n&&n(e),r.manager.itemError(t),r.manager.itemEnd(t)}function c(){a.removeEventListener("load",o,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",o,!1),a.addEventListener("error",l,!1),"data:"!==t.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}class ac extends ni{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Ht(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}class oc extends ac{constructor(t,e,i){super(t,i),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(ni.DefaultUp),this.updateMatrix(),this.groundColor=new Ht(e)}copy(t,e){return super.copy(t,e),this.groundColor.copy(t.groundColor),this}}const lc=new Ie,cc=new ee,hc=new ee;class uc{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new Et(512,512),this.map=null,this.mapPass=null,this.matrix=new Ie,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new fn,this._frameExtents=new Et(1,1),this._viewportCount=1,this._viewports=[new Jt(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,i=this.matrix;cc.setFromMatrixPosition(t.matrixWorld),e.position.copy(cc),hc.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(hc),e.updateMatrixWorld(),lc.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(lc),i.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),i.multiply(e.projectionMatrix),i.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class dc extends uc{constructor(){super(new rn(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,i=2*xt*t.angle*this.focus,n=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;i===e.fov&&n===e.aspect&&r===e.far||(e.fov=i,e.aspect=n,e.far=r,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class pc extends ac{constructor(t,e,i=0,n=Math.PI/3,r=0,s=1){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(ni.DefaultUp),this.updateMatrix(),this.target=new ni,this.distance=i,this.angle=n,this.penumbra=r,this.decay=s,this.shadow=new dc}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const mc=new Ie,fc=new ee,gc=new ee;class vc extends uc{constructor(){super(new rn(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new Et(4,2),this._viewportCount=6,this._viewports=[new Jt(2,1,1,1),new Jt(0,1,1,1),new Jt(3,1,1,1),new Jt(1,1,1,1),new Jt(3,0,1,1),new Jt(1,0,1,1)],this._cubeDirections=[new ee(1,0,0),new ee(-1,0,0),new ee(0,0,1),new ee(0,0,-1),new ee(0,1,0),new ee(0,-1,0)],this._cubeUps=[new ee(0,1,0),new ee(0,1,0),new ee(0,1,0),new ee(0,1,0),new ee(0,0,1),new ee(0,0,-1)]}updateMatrices(t,e=0){const i=this.camera,n=this.matrix,r=t.distance||i.far;r!==i.far&&(i.far=r,i.updateProjectionMatrix()),fc.setFromMatrixPosition(t.matrixWorld),i.position.copy(fc),gc.copy(i.position),gc.add(this._cubeDirections[e]),i.up.copy(this._cubeUps[e]),i.lookAt(gc),i.updateMatrixWorld(),n.makeTranslation(-fc.x,-fc.y,-fc.z),mc.multiplyMatrices(i.projectionMatrix,i.matrixWorldInverse),this._frustum.setFromProjectionMatrix(mc)}}class xc extends ac{constructor(t,e,i=0,n=1){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=i,this.decay=n,this.shadow=new vc}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class yc extends uc{constructor(){super(new Cn(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class _c extends ac{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(ni.DefaultUp),this.updateMatrix(),this.target=new ni,this.shadow=new yc}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class Mc extends ac{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class bc extends ac{constructor(t,e,i=10,n=10){super(t,e),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=i,this.height=n}get power(){return this.intensity*this.width*this.height*Math.PI}set power(t){this.intensity=t/(this.width*this.height*Math.PI)}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}class wc{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new ee)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const i=t.x,n=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.282095),e.addScaledVector(s[1],.488603*n),e.addScaledVector(s[2],.488603*r),e.addScaledVector(s[3],.488603*i),e.addScaledVector(s[4],i*n*1.092548),e.addScaledVector(s[5],n*r*1.092548),e.addScaledVector(s[6],.315392*(3*r*r-1)),e.addScaledVector(s[7],i*r*1.092548),e.addScaledVector(s[8],.546274*(i*i-n*n)),e}getIrradianceAt(t,e){const i=t.x,n=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.886227),e.addScaledVector(s[1],1.023328*n),e.addScaledVector(s[2],1.023328*r),e.addScaledVector(s[3],1.023328*i),e.addScaledVector(s[4],.858086*i*n),e.addScaledVector(s[5],.858086*n*r),e.addScaledVector(s[6],.743125*r*r-.247708),e.addScaledVector(s[7],.858086*i*r),e.addScaledVector(s[8],.429043*(i*i-n*n)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let i=0;i<9;i++)this.coefficients[i].addScaledVector(t.coefficients[i],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let i=0;i<9;i++)this.coefficients[i].lerp(t.coefficients[i],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(t,e=0){const i=this.coefficients;for(let n=0;n<9;n++)i[n].fromArray(t,e+3*n);return this}toArray(t=[],e=0){const i=this.coefficients;for(let n=0;n<9;n++)i[n].toArray(t,e+3*n);return t}static getBasisAt(t,e){const i=t.x,n=t.y,r=t.z;e[0]=.282095,e[1]=.488603*n,e[2]=.488603*r,e[3]=.488603*i,e[4]=1.092548*i*n,e[5]=1.092548*n*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*i*r,e[8]=.546274*(i*i-n*n)}}class Sc extends ac{constructor(t=new wc,e=1){super(void 0,e),this.isLightProbe=!0,this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}class Tc extends ic{constructor(t){super(t),this.textures={}}load(t,e,i,n){const r=this,s=new rc(r.manager);s.setPath(r.path),s.setRequestHeader(r.requestHeader),s.setWithCredentials(r.withCredentials),s.load(t,function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}},i,n)}parse(t){const e=this.textures;function i(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const n=Tc.createMaterialFromType(t.type);if(void 0!==t.uuid&&(n.uuid=t.uuid),void 0!==t.name&&(n.name=t.name),void 0!==t.color&&void 0!==n.color&&n.color.setHex(t.color),void 0!==t.roughness&&(n.roughness=t.roughness),void 0!==t.metalness&&(n.metalness=t.metalness),void 0!==t.sheen&&(n.sheen=t.sheen),void 0!==t.sheenColor&&(n.sheenColor=new Ht().setHex(t.sheenColor)),void 0!==t.sheenRoughness&&(n.sheenRoughness=t.sheenRoughness),void 0!==t.emissive&&void 0!==n.emissive&&n.emissive.setHex(t.emissive),void 0!==t.specular&&void 0!==n.specular&&n.specular.setHex(t.specular),void 0!==t.specularIntensity&&(n.specularIntensity=t.specularIntensity),void 0!==t.specularColor&&void 0!==n.specularColor&&n.specularColor.setHex(t.specularColor),void 0!==t.shininess&&(n.shininess=t.shininess),void 0!==t.clearcoat&&(n.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(n.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.iridescence&&(n.iridescence=t.iridescence),void 0!==t.iridescenceIOR&&(n.iridescenceIOR=t.iridescenceIOR),void 0!==t.iridescenceThicknessRange&&(n.iridescenceThicknessRange=t.iridescenceThicknessRange),void 0!==t.transmission&&(n.transmission=t.transmission),void 0!==t.thickness&&(n.thickness=t.thickness),void 0!==t.attenuationDistance&&(n.attenuationDistance=t.attenuationDistance),void 0!==t.attenuationColor&&void 0!==n.attenuationColor&&n.attenuationColor.setHex(t.attenuationColor),void 0!==t.fog&&(n.fog=t.fog),void 0!==t.flatShading&&(n.flatShading=t.flatShading),void 0!==t.blending&&(n.blending=t.blending),void 0!==t.combine&&(n.combine=t.combine),void 0!==t.side&&(n.side=t.side),void 0!==t.shadowSide&&(n.shadowSide=t.shadowSide),void 0!==t.opacity&&(n.opacity=t.opacity),void 0!==t.transparent&&(n.transparent=t.transparent),void 0!==t.alphaTest&&(n.alphaTest=t.alphaTest),void 0!==t.depthTest&&(n.depthTest=t.depthTest),void 0!==t.depthWrite&&(n.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(n.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(n.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(n.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(n.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(n.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(n.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(n.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(n.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(n.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(n.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(n.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(n.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(n.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(n.rotation=t.rotation),1!==t.linewidth&&(n.linewidth=t.linewidth),void 0!==t.dashSize&&(n.dashSize=t.dashSize),void 0!==t.gapSize&&(n.gapSize=t.gapSize),void 0!==t.scale&&(n.scale=t.scale),void 0!==t.polygonOffset&&(n.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(n.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(n.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.dithering&&(n.dithering=t.dithering),void 0!==t.alphaToCoverage&&(n.alphaToCoverage=t.alphaToCoverage),void 0!==t.premultipliedAlpha&&(n.premultipliedAlpha=t.premultipliedAlpha),void 0!==t.visible&&(n.visible=t.visible),void 0!==t.toneMapped&&(n.toneMapped=t.toneMapped),void 0!==t.userData&&(n.userData=t.userData),void 0!==t.vertexColors&&("number"==typeof t.vertexColors?n.vertexColors=t.vertexColors>0:n.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const e in t.uniforms){const r=t.uniforms[e];switch(n.uniforms[e]={},r.type){case"t":n.uniforms[e].value=i(r.value);break;case"c":n.uniforms[e].value=new Ht().setHex(r.value);break;case"v2":n.uniforms[e].value=new Et().fromArray(r.value);break;case"v3":n.uniforms[e].value=new ee().fromArray(r.value);break;case"v4":n.uniforms[e].value=new Jt().fromArray(r.value);break;case"m3":n.uniforms[e].value=new Ct().fromArray(r.value);break;case"m4":n.uniforms[e].value=new Ie().fromArray(r.value);break;default:n.uniforms[e].value=r.value;}}if(void 0!==t.defines&&(n.defines=t.defines),void 0!==t.vertexShader&&(n.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(n.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(const e in t.extensions)n.extensions[e]=t.extensions[e];if(void 0!==t.shading&&(n.flatShading=1===t.shading),void 0!==t.size&&(n.size=t.size),void 0!==t.sizeAttenuation&&(n.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(n.map=i(t.map)),void 0!==t.matcap&&(n.matcap=i(t.matcap)),void 0!==t.alphaMap&&(n.alphaMap=i(t.alphaMap)),void 0!==t.bumpMap&&(n.bumpMap=i(t.bumpMap)),void 0!==t.bumpScale&&(n.bumpScale=t.bumpScale),void 0!==t.normalMap&&(n.normalMap=i(t.normalMap)),void 0!==t.normalMapType&&(n.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),n.normalScale=new Et().fromArray(e)}return void 0!==t.displacementMap&&(n.displacementMap=i(t.displacementMap)),void 0!==t.displacementScale&&(n.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(n.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(n.roughnessMap=i(t.roughnessMap)),void 0!==t.metalnessMap&&(n.metalnessMap=i(t.metalnessMap)),void 0!==t.emissiveMap&&(n.emissiveMap=i(t.emissiveMap)),void 0!==t.emissiveIntensity&&(n.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(n.specularMap=i(t.specularMap)),void 0!==t.specularIntensityMap&&(n.specularIntensityMap=i(t.specularIntensityMap)),void 0!==t.specularColorMap&&(n.specularColorMap=i(t.specularColorMap)),void 0!==t.envMap&&(n.envMap=i(t.envMap)),void 0!==t.envMapIntensity&&(n.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(n.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(n.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(n.lightMap=i(t.lightMap)),void 0!==t.lightMapIntensity&&(n.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(n.aoMap=i(t.aoMap)),void 0!==t.aoMapIntensity&&(n.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(n.gradientMap=i(t.gradientMap)),void 0!==t.clearcoatMap&&(n.clearcoatMap=i(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(n.clearcoatRoughnessMap=i(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(n.clearcoatNormalMap=i(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(n.clearcoatNormalScale=new Et().fromArray(t.clearcoatNormalScale)),void 0!==t.iridescenceMap&&(n.iridescenceMap=i(t.iridescenceMap)),void 0!==t.iridescenceThicknessMap&&(n.iridescenceThicknessMap=i(t.iridescenceThicknessMap)),void 0!==t.transmissionMap&&(n.transmissionMap=i(t.transmissionMap)),void 0!==t.thicknessMap&&(n.thicknessMap=i(t.thicknessMap)),void 0!==t.sheenColorMap&&(n.sheenColorMap=i(t.sheenColorMap)),void 0!==t.sheenRoughnessMap&&(n.sheenRoughnessMap=i(t.sheenRoughnessMap)),n}setTextures(t){return this.textures=t,this}static createMaterialFromType(t){return new{ShadowMaterial:Cl,SpriteMaterial:na,RawShaderMaterial:Ll,ShaderMaterial:en,PointsMaterial:Ja,MeshPhysicalMaterial:Pl,MeshStandardMaterial:Rl,MeshPhongMaterial:Il,MeshToonMaterial:Dl,MeshNormalMaterial:Nl,MeshLambertMaterial:Ol,MeshDepthMaterial:zs,MeshDistanceMaterial:Fs,MeshBasicMaterial:vi,MeshMatcapMaterial:zl,LineDashedMaterial:Fl,LineBasicMaterial:Ua,Material:gi}[t]}}class Ac{static decodeText(t){if("undefined"!=typeof TextDecoder)return new TextDecoder().decode(t);let e="";for(let i=0,n=t.length;i<n;i++)e+=String.fromCharCode(t[i]);try{return decodeURIComponent(escape(e))}catch(t){return e}}static extractUrlBase(t){const e=t.lastIndexOf("/");return-1===e?"./":t.slice(0,e+1)}static resolveURL(t,e){return"string"!=typeof t||""===t?"":(/^https?:\/\//i.test(e)&&/^\//.test(t)&&(e=e.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(t)||/^data:.*,.*$/i.test(t)||/^blob:.*$/i.test(t)?t:e+t)}}class Ec extends Pi{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(t){return super.copy(t),this.instanceCount=t.instanceCount,this}clone(){return new this.constructor().copy(this)}toJSON(){const t=super.toJSON(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}class Cc extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=new rc(r.manager);s.setPath(r.path),s.setRequestHeader(r.requestHeader),s.setWithCredentials(r.withCredentials),s.load(t,function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}},i,n)}parse(t){const e={},i={};function n(t,n){if(void 0!==e[n])return e[n];const r=t.interleavedBuffers[n],s=function(t,e){if(void 0!==i[e])return i[e];const n=t.arrayBuffers[e],r=new Uint32Array(n).buffer;return i[e]=r,r}(t,r.buffer),a=Pt(r.type,s),o=new ta(a,r.stride);return o.uuid=r.uuid,e[n]=o,o}const r=t.isInstancedBufferGeometry?new Ec:new Pi,s=t.data.index;if(void 0!==s){const t=Pt(s.type,s.array);r.setIndex(new _i(t,1))}const a=t.data.attributes;for(const e in a){const i=a[e];let s;if(i.isInterleavedBufferAttribute){const e=n(t.data,i.data);s=new ia(e,i.itemSize,i.offset,i.normalized)}else{const t=Pt(i.type,i.array);s=new(i.isInstancedBufferAttribute?Da:_i)(t,i.itemSize,i.normalized)}void 0!==i.name&&(s.name=i.name),void 0!==i.usage&&s.setUsage(i.usage),void 0!==i.updateRange&&(s.updateRange.offset=i.updateRange.offset,s.updateRange.count=i.updateRange.count),r.setAttribute(e,s)}const o=t.data.morphAttributes;if(o)for(const e in o){const i=o[e],s=[];for(let e=0,r=i.length;e<r;e++){const r=i[e];let a;if(r.isInterleavedBufferAttribute){const e=n(t.data,r.data);a=new ia(e,r.itemSize,r.offset,r.normalized)}else{const t=Pt(r.type,r.array);a=new _i(t,r.itemSize,r.normalized)}void 0!==r.name&&(a.name=r.name),s.push(a)}r.morphAttributes[e]=s}t.data.morphTargetsRelative&&(r.morphTargetsRelative=!0);const l=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==l)for(let t=0,e=l.length;t!==e;++t){const e=l[t];r.addGroup(e.start,e.count,e.materialIndex)}const c=t.data.boundingSphere;if(void 0!==c){const t=new ee;void 0!==c.center&&t.fromArray(c.center),r.boundingSphere=new we(t,c.radius)}return t.name&&(r.name=t.name),t.userData&&(r.userData=t.userData),r}}const Lc={UVMapping:n,CubeReflectionMapping:r,CubeRefractionMapping:s,EquirectangularReflectionMapping:a,EquirectangularRefractionMapping:o,CubeUVReflectionMapping:l},Rc={RepeatWrapping:c,ClampToEdgeWrapping:h,MirroredRepeatWrapping:u},Pc={NearestFilter:d,NearestMipmapNearestFilter:p,NearestMipmapLinearFilter:m,LinearFilter:f,LinearMipmapNearestFilter:g,LinearMipmapLinearFilter:v};let Ic;const Dc={getContext:function(){return void 0===Ic&&(Ic=new(window.AudioContext||window.webkitAudioContext)),Ic},setContext:function(t){Ic=t}};const Nc=new Ie,Oc=new Ie,zc=new Ie;class Fc{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Bc(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Bc();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Bc(){return("undefined"==typeof performance?Date:performance).now()}const Uc=new ee,kc=new te,Gc=new ee,Vc=new ee;class Hc extends ni{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}const Wc=new ee,jc=new te,qc=new ee,Xc=new ee;class Yc{constructor(t,e,i){let n,r,s;switch(this.binding=t,this.valueSize=i,e){case"quaternion":n=this._slerp,r=this._slerpAdditive,s=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*i),this._workIndex=5;break;case"string":case"bool":n=this._select,r=this._select,s=this._setAdditiveIdentityOther,this.buffer=new Array(5*i);break;default:n=this._lerp,r=this._lerpAdditive,s=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*i);}this._mixBufferRegion=n,this._mixBufferRegionAdditive=r,this._setIdentity=s,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const i=this.buffer,n=this.valueSize,r=t*n+n;let s=this.cumulativeWeight;if(0===s){for(let t=0;t!==n;++t)i[r+t]=i[t];s=e}else{s+=e;const t=e/s;this._mixBufferRegion(i,r,0,t,n)}this.cumulativeWeight=s}accumulateAdditive(t){const e=this.buffer,i=this.valueSize,n=i*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,n,0,t,i),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,i=this.buffer,n=t*e+e,r=this.cumulativeWeight,s=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const t=e*this._origIndex;this._mixBufferRegion(i,n,t,1-r,e)}s>0&&this._mixBufferRegionAdditive(i,n,this._addIndex*e,1,e);for(let t=e,r=e+e;t!==r;++t)if(i[t]!==i[t+e]){a.setValue(i,n);break}}saveOriginalState(){const t=this.binding,e=this.buffer,i=this.valueSize,n=i*this._origIndex;t.getValue(e,n);for(let t=i,r=n;t!==r;++t)e[t]=e[n+t%i];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let i=t;i<e;i++)this.buffer[i]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let i=0;i<this.valueSize;i++)this.buffer[e+i]=this.buffer[t+i]}_select(t,e,i,n,r){if(n>=.5)for(let n=0;n!==r;++n)t[e+n]=t[i+n]}_slerp(t,e,i,n){te.slerpFlat(t,e,t,e,t,i,n)}_slerpAdditive(t,e,i,n,r){const s=this._workIndex*r;te.multiplyQuaternionsFlat(t,s,t,e,t,i),te.slerpFlat(t,e,t,e,t,s,n)}_lerp(t,e,i,n,r){const s=1-n;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*s+t[i+a]*n}}_lerpAdditive(t,e,i,n,r){for(let s=0;s!==r;++s){const r=e+s;t[r]=t[r]+t[i+s]*n}}}const Zc="\\[\\]\\.:\\/",Jc=new RegExp("[\\[\\]\\.:\\/]","g"),Kc="[^\\[\\]\\.:\\/]",Qc="[^"+Zc.replace("\\.","")+"]",$c=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",Kc)+/(WCOD+)?/.source.replace("WCOD",Qc)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Kc)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Kc)+"$"),th=["material","materials","bones"];class eh{constructor(t,e,i){this.path=e,this.parsedPath=i||eh.parseTrackName(e),this.node=eh.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,i){return t&&t.isAnimationObjectGroup?new eh.Composite(t,e,i):new eh(t,e,i)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(Jc,"")}static parseTrackName(t){const e=$c.exec(t);if(null===e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const i={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},n=i.nodeName&&i.nodeName.lastIndexOf(".");if(void 0!==n&&-1!==n){const t=i.nodeName.substring(n+1);-1!==th.indexOf(t)&&(i.nodeName=i.nodeName.substring(0,n),i.objectName=t)}if(null===i.propertyName||0===i.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i}static findNode(t,e){if(void 0===e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const i=t.skeleton.getBoneByName(e);if(void 0!==i)return i}if(t.children){const i=function(t){for(let n=0;n<t.length;n++){const r=t[n];if(r.name===e||r.uuid===e)return r;const s=i(r.children);if(s)return s}return null},n=i(t.children);if(n)return n}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,e){t[e]=this.targetObject[this.propertyName]}_getValue_array(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)t[e++]=i[n]}_getValue_arrayElement(t,e){t[e]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,e){this.resolvedProperty.toArray(t,e)}_setValue_direct(t,e){this.targetObject[this.propertyName]=t[e]}_setValue_direct_setNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++]}_setValue_array_setNeedsUpdate(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,e){const i=this.resolvedProperty;for(let n=0,r=i.length;n!==r;++n)i[n]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,e){this.resolvedProperty[this.propertyIndex]=t[e]}_setValue_arrayElement_setNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,e){this.resolvedProperty.fromArray(t,e)}_setValue_fromArray_setNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,e){this.bind(),this.getValue(t,e)}_setValue_unbound(t,e){this.bind(),this.setValue(t,e)}bind(){let t=this.node;const e=this.parsedPath,i=e.objectName,n=e.propertyName;let r=e.propertyIndex;if(t||(t=eh.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(i){let n=e.objectIndex;switch(i){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===n){n=e;break}break;default:if(void 0===t[i])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[i];}if(void 0!==n){if(void 0===t[n])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[n]}}const s=t[n];if(void 0===s){const i=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+i+"."+n+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let o=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===n){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}o=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(o=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(o=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=n;this.getValue=this.GetterByBindingType[o],this.setValue=this.SetterByBindingTypeAndVersioning[o][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}eh.Composite=class{constructor(t,e,i){const n=i||eh.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,n)}getValue(t,e){this.bind();const i=this._targetGroup.nCachedObjects_,n=this._bindings[i];void 0!==n&&n.getValue(t,e)}setValue(t,e){const i=this._bindings;for(let n=this._targetGroup.nCachedObjects_,r=i.length;n!==r;++n)i[n].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,i=t.length;e!==i;++e)t[e].unbind()}},eh.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},eh.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},eh.prototype.GetterByBindingType=[eh.prototype._getValue_direct,eh.prototype._getValue_array,eh.prototype._getValue_arrayElement,eh.prototype._getValue_toArray],eh.prototype.SetterByBindingTypeAndVersioning=[[eh.prototype._setValue_direct,eh.prototype._setValue_direct_setNeedsUpdate,eh.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[eh.prototype._setValue_array,eh.prototype._setValue_array_setNeedsUpdate,eh.prototype._setValue_array_setMatrixWorldNeedsUpdate],[eh.prototype._setValue_arrayElement,eh.prototype._setValue_arrayElement_setNeedsUpdate,eh.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[eh.prototype._setValue_fromArray,eh.prototype._setValue_fromArray_setNeedsUpdate,eh.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class ih{constructor(t,e,i=null,n=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=i,this.blendMode=n;const r=e.tracks,s=r.length,a=new Array(s),o={endingStart:et,endingEnd:et};for(let t=0;t!==s;++t){const e=r[t].createInterpolant(null);a[t]=e,e.settings=o}this._interpolantSettings=o,this._interpolants=a,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=2201,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){const i=this._clip.duration,n=t._clip.duration,r=n/i,s=i/n;t.warp(1,r,e),this.warp(s,1,e)}return this}crossFadeTo(t,e,i){return t.crossFadeFrom(this,e,i)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,i){const n=this._mixer,r=n.time,s=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=n._lendControlInterpolant(),this._timeScaleInterpolant=a);const o=a.parameterPositions,l=a.sampleValues;return o[0]=r,o[1]=r+i,l[0]=t/s,l[1]=e/s,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,i,n){if(!this.enabled)return void this._updateWeight(t);const r=this._startTime;if(null!==r){const n=(t-r)*i;if(n<0||0===i)return;this._startTime=null,e=i*n}e*=this._updateTimeScale(t);const s=this._updateTime(e),a=this._updateWeight(t);if(a>0){const t=this._interpolants,e=this._propertyBindings;if(this.blendMode===st)for(let i=0,n=t.length;i!==n;++i)t[i].evaluate(s),e[i].accumulateAdditive(a);else for(let i=0,r=t.length;i!==r;++i)t[i].evaluate(s),e[i].accumulate(n,a)}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const i=this._weightInterpolant;if(null!==i){const n=i.evaluate(t)[0];e*=n,t>i.parameterPositions[1]&&(this.stopFading(),0===n&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const i=this._timeScaleInterpolant;if(null!==i){e*=i.evaluate(t)[0],t>i.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,i=this.loop;let n=this.time+t,r=this._loopCount;const s=2202===i;if(0===t)return-1===r?n:s&&1==(1&r)?e-n:n;if(2200===i){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(n>=e)n=e;else{if(!(n<0)){this.time=n;break t}n=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,s)):this._setEndings(0===this.repetitions,!0,s)),n>=e||n<0){const i=Math.floor(n/e);n-=e*i,r+=Math.abs(i);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,n=t>0?e:0,this.time=n,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,s)}else this._setEndings(!1,!1,s);this._loopCount=r,this.time=n,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:i})}}else this.time=n;if(s&&1==(1&r))return e-n}return n}_setEndings(t,e,i){const n=this._interpolantSettings;i?(n.endingStart=it,n.endingEnd=it):(n.endingStart=t?this.zeroSlopeAtStart?it:et:nt,n.endingEnd=e?this.zeroSlopeAtEnd?it:et:nt)}_scheduleFading(t,e,i){const n=this._mixer,r=n.time;let s=this._weightInterpolant;null===s&&(s=n._lendControlInterpolant(),this._weightInterpolant=s);const a=s.parameterPositions,o=s.sampleValues;return a[0]=r,o[0]=e,a[1]=r+t,o[1]=i,this}}const nh=new Float32Array(1);class rh{constructor(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new rh(void 0===this.value.clone?this.value:this.value.clone())}}function sh(t,e){return t.distance-e.distance}function ah(t,e,i,n){if(t.layers.test(e.layers)&&t.raycast(e,i),!0===n){const n=t.children;for(let t=0,r=n.length;t<r;t++)ah(n[t],e,i,!0)}}const oh=new Et;const lh=new ee,ch=new ee;const hh=new ee;const uh=new ee,dh=new Ie,ph=new Ie;function mh(t){const e=[];!0===t.isBone&&e.push(t);for(let i=0;i<t.children.length;i++)e.push.apply(e,mh(t.children[i]));return e}const fh=new ee,gh=new Ht,vh=new Ht;const xh=new ee,yh=new ee,_h=new ee;const Mh=new ee,bh=new nn;function wh(t,e,i,n,r,s,a){Mh.set(r,s,a).unproject(n);const o=e[t];if(void 0!==o){const t=i.getAttribute("position");for(let e=0,i=o.length;e<i;e++)t.setXYZ(o[e],Mh.x,Mh.y,Mh.z)}}const Sh=new re;const Th=new ee;let Ah,Eh;const{floatView:Ch,uint32View:Lh,baseTable:Rh,shiftTable:Ph,mantissaTable:Ih,exponentTable:Dh,offsetTable:Nh}=Oh();function Oh(){const t=new ArrayBuffer(4),e=new Float32Array(t),i=new Uint32Array(t),n=new Uint32Array(512),r=new Uint32Array(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(n[t]=0,n[256|t]=32768,r[t]=24,r[256|t]=24):e<-14?(n[t]=1024>>-e-14,n[256|t]=1024>>-e-14|32768,r[t]=-e-1,r[256|t]=-e-1):e<=15?(n[t]=e+15<<10,n[256|t]=e+15<<10|32768,r[t]=13,r[256|t]=13):e<128?(n[t]=31744,n[256|t]=64512,r[t]=24,r[256|t]=24):(n[t]=31744,n[256|t]=64512,r[t]=13,r[256|t]=13)}const s=new Uint32Array(2048),a=new Uint32Array(64),o=new Uint32Array(64);for(let t=1;t<1024;++t){let e=t<<13,i=0;for(;0==(8388608&e);)e<<=1,i-=8388608;e&=-8388609,i+=947912704,s[t]=e|i}for(let t=1024;t<2048;++t)s[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)a[t]=t<<23;a[31]=1199570944,a[32]=2147483648;for(let t=33;t<63;++t)a[t]=2147483648+(t-32<<23);a[63]=3347054592;for(let t=1;t<64;++t)32!==t&&(o[t]=1024);return{floatView:e,uint32View:i,baseTable:n,shiftTable:r,mantissaTable:s,exponentTable:a,offsetTable:o}}var zh=Object.freeze({__proto__:null,toHalfFloat:function(t){Math.abs(t)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),t=_t(t,-65504,65504),Ch[0]=t;const e=Lh[0],i=e>>23&511;return Rh[i]+((8388607&e)>>Ph[i])},fromHalfFloat:function(t){const e=t>>10;return Lh[0]=Ih[Nh[e]+(1023&t)]+Dh[e],Ch[0]}});"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:e}})),"undefined"!=typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=e),t.ACESFilmicToneMapping=4,t.AddEquation=i,t.AddOperation=2,t.AdditiveAnimationBlendMode=st,t.AdditiveBlending=2,t.AlphaFormat=1021,t.AlwaysDepth=1,t.AlwaysStencilFunc=519,t.AmbientLight=Mc,t.AmbientLightProbe=class extends Sc{constructor(t,e=1){super(void 0,e),this.isAmbientLightProbe=!0;const i=new Ht().set(t);this.sh.coefficients[0].set(i.r,i.g,i.b).multiplyScalar(2*Math.sqrt(Math.PI))}},t.AnimationClip=Kl,t.AnimationLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=new rc(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,function(i){try{e(r.parse(JSON.parse(i)))}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}},i,n)}parse(t){const e=[];for(let i=0;i<t.length;i++){const n=Kl.parse(t[i]);e.push(n)}return e}},t.AnimationMixer=class extends mt{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const i=t._localRoot||this._root,n=t._clip.tracks,r=n.length,s=t._propertyBindings,a=t._interpolants,o=i.uuid,l=this._bindingsByRootAndName;let c=l[o];void 0===c&&(c={},l[o]=c);for(let t=0;t!==r;++t){const r=n[t],l=r.name;let h=c[l];if(void 0!==h)++h.referenceCount,s[t]=h;else{if(h=s[t],void 0!==h){null===h._cacheIndex&&(++h.referenceCount,this._addInactiveBinding(h,o,l));continue}const n=e&&e._propertyBindings[t].binding.parsedPath;h=new Yc(eh.create(i,l,n),r.ValueTypeName,r.getValueSize()),++h.referenceCount,this._addInactiveBinding(h,o,l),s[t]=h}a[t].resultBuffer=h.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,i=t._clip.uuid,n=this._actionsByClip[i];this._bindAction(t,n&&n.knownActions[0]),this._addInactiveAction(t,i,e)}const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==i.useCount++&&(this._lendBinding(i),i.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,i){const n=this._actions,r=this._actionsByClip;let s=r[e];if(void 0===s)s={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=s;else{const e=s.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=n.length,n.push(t),s.actionByRoot[i]=t}_removeInactiveAction(t){const e=this._actions,i=e[e.length-1],n=t._cacheIndex;i._cacheIndex=n,e[n]=i,e.pop(),t._cacheIndex=null;const r=t._clip.uuid,s=this._actionsByClip,a=s[r],o=a.knownActions,l=o[o.length-1],c=t._byClipCacheIndex;l._byClipCacheIndex=c,o[c]=l,o.pop(),t._byClipCacheIndex=null;delete a.actionByRoot[(t._localRoot||this._root).uuid],0===o.length&&delete s[r],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let t=0,i=e.length;t!==i;++t){const i=e[t];0==--i.referenceCount&&this._removeInactiveBinding(i)}}_lendAction(t){const e=this._actions,i=t._cacheIndex,n=this._nActiveActions++,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r}_takeBackAction(t){const e=this._actions,i=t._cacheIndex,n=--this._nActiveActions,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r}_addInactiveBinding(t,e,i){const n=this._bindingsByRootAndName,r=this._bindings;let s=n[e];void 0===s&&(s={},n[e]=s),s[i]=t,t._cacheIndex=r.length,r.push(t)}_removeInactiveBinding(t){const e=this._bindings,i=t.binding,n=i.rootNode.uuid,r=i.path,s=this._bindingsByRootAndName,a=s[n],o=e[e.length-1],l=t._cacheIndex;o._cacheIndex=l,e[l]=o,e.pop(),delete a[r],0===Object.keys(a).length&&delete s[n]}_lendBinding(t){const e=this._bindings,i=t._cacheIndex,n=this._nActiveBindings++,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r}_takeBackBinding(t){const e=this._bindings,i=t._cacheIndex,n=--this._nActiveBindings,r=e[n];t._cacheIndex=n,e[n]=t,r._cacheIndex=i,e[i]=r}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let i=t[e];return void 0===i&&(i=new Gl(new Float32Array(2),new Float32Array(2),1,nh),i.__cacheIndex=e,t[e]=i),i}_takeBackControlInterpolant(t){const e=this._controlInterpolants,i=t.__cacheIndex,n=--this._nActiveControlInterpolants,r=e[n];t.__cacheIndex=n,e[n]=t,r.__cacheIndex=i,e[i]=r}clipAction(t,e,i){const n=e||this._root,r=n.uuid;let s="string"==typeof t?Kl.findByName(n,t):t;const a=null!==s?s.uuid:t,o=this._actionsByClip[a];let l=null;if(void 0===i&&(i=null!==s?s.blendMode:rt),void 0!==o){const t=o.actionByRoot[r];if(void 0!==t&&t.blendMode===i)return t;l=o.knownActions[0],null===s&&(s=l._clip)}if(null===s)return null;const c=new ih(this,s,e,i);return this._bindAction(c,l),this._addInactiveAction(c,a,r),c}existingAction(t,e){const i=e||this._root,n=i.uuid,r="string"==typeof t?Kl.findByName(i,t):t,s=r?r.uuid:t,a=this._actionsByClip[s];return void 0!==a&&a.actionByRoot[n]||null}stopAllAction(){const t=this._actions;for(let e=this._nActiveActions-1;e>=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,i=this._nActiveActions,n=this.time+=t,r=Math.sign(t),s=this._accuIndex^=1;for(let a=0;a!==i;++a){e[a]._update(n,t,r,s)}const a=this._bindings,o=this._nActiveBindings;for(let t=0;t!==o;++t)a[t].apply(s);return this}setTime(t){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,i=t.uuid,n=this._actionsByClip,r=n[i];if(void 0!==r){const t=r.knownActions;for(let i=0,n=t.length;i!==n;++i){const n=t[i];this._deactivateAction(n);const r=n._cacheIndex,s=e[e.length-1];n._cacheIndex=null,n._byClipCacheIndex=null,s._cacheIndex=r,e[r]=s,e.pop(),this._removeInactiveBindingsForAction(n)}delete n[i]}}uncacheRoot(t){const e=t.uuid,i=this._actionsByClip;for(const t in i){const n=i[t].actionByRoot[e];void 0!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}const n=this._bindingsByRootAndName[e];if(void 0!==n)for(const t in n){const e=n[t];e.restoreOriginalState(),this._removeInactiveBinding(e)}}uncacheAction(t,e){const i=this.existingAction(t,e);null!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}},t.AnimationObjectGroup=class{constructor(){this.isAnimationObjectGroup=!0,this.uuid=yt(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const t={};this._indicesByUUID=t;for(let e=0,i=arguments.length;e!==i;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const e=this;this.stats={objects:{get total(){return e._objects.length},get inUse(){return this.total-e.nCachedObjects_}},get bindingsPerObject(){return e._bindings.length}}}add(){const t=this._objects,e=this._indicesByUUID,i=this._paths,n=this._parsedPaths,r=this._bindings,s=r.length;let a,o=t.length,l=this.nCachedObjects_;for(let c=0,h=arguments.length;c!==h;++c){const h=arguments[c],u=h.uuid;let d=e[u];if(void 0===d){d=o++,e[u]=d,t.push(h);for(let t=0,e=s;t!==e;++t)r[t].push(new eh(h,i[t],n[t]))}else if(d<l){a=t[d];const o=--l,c=t[o];e[c.uuid]=d,t[d]=c,e[u]=o,t[o]=h;for(let t=0,e=s;t!==e;++t){const e=r[t],s=e[o];let a=e[d];e[d]=s,void 0===a&&(a=new eh(h,i[t],n[t])),e[o]=a}}else t[d]!==a&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=l}remove(){const t=this._objects,e=this._indicesByUUID,i=this._bindings,n=i.length;let r=this.nCachedObjects_;for(let s=0,a=arguments.length;s!==a;++s){const a=arguments[s],o=a.uuid,l=e[o];if(void 0!==l&&l>=r){const s=r++,c=t[s];e[c.uuid]=l,t[l]=c,e[o]=s,t[s]=a;for(let t=0,e=n;t!==e;++t){const e=i[t],n=e[s],r=e[l];e[l]=n,e[s]=r}}}this.nCachedObjects_=r}uncache(){const t=this._objects,e=this._indicesByUUID,i=this._bindings,n=i.length;let r=this.nCachedObjects_,s=t.length;for(let a=0,o=arguments.length;a!==o;++a){const o=arguments[a].uuid,l=e[o];if(void 0!==l)if(delete e[o],l<r){const a=--r,o=t[a],c=--s,h=t[c];e[o.uuid]=l,t[l]=o,e[h.uuid]=a,t[a]=h,t.pop();for(let t=0,e=n;t!==e;++t){const e=i[t],n=e[a],r=e[c];e[l]=n,e[a]=r,e.pop()}}else{const r=--s,a=t[r];r>0&&(e[a.uuid]=l),t[l]=a,t.pop();for(let t=0,e=n;t!==e;++t){const e=i[t];e[l]=e[r],e.pop()}}}this.nCachedObjects_=r}subscribe_(t,e){const i=this._bindingsIndicesByPath;let n=i[t];const r=this._bindings;if(void 0!==n)return r[n];const s=this._paths,a=this._parsedPaths,o=this._objects,l=o.length,c=this.nCachedObjects_,h=new Array(l);n=r.length,i[t]=n,s.push(t),a.push(e),r.push(h);for(let i=c,n=o.length;i!==n;++i){const n=o[i];h[i]=new eh(n,t,e)}return h}unsubscribe_(t){const e=this._bindingsIndicesByPath,i=e[t];if(void 0!==i){const n=this._paths,r=this._parsedPaths,s=this._bindings,a=s.length-1,o=s[a];e[t[a]]=i,s[i]=o,s.pop(),r[i]=r[a],r.pop(),n[i]=n[a],n.pop()}}},t.AnimationUtils=Bl,t.ArcCurve=ao,t.ArrayCamera=Vs,t.ArrowHelper=class extends ni{constructor(t=new ee(0,0,1),e=new ee(0,0,0),i=1,n=16776960,r=.2*i,s=.2*r){super(),this.type="ArrowHelper",void 0===Ah&&(Ah=new Pi,Ah.setAttribute("position",new wi([0,0,0,0,1,0],3)),Eh=new Ro(0,.5,1,5,1),Eh.translate(0,-.5,0)),this.position.copy(e),this.line=new ja(Ah,new Ua({color:n,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Zi(Eh,new vi({color:n,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(i,r,s)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{Th.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(Th,e)}}setLength(t,e=.2*t,i=.2*e){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(i,e,i),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}},t.Audio=Hc,t.AudioAnalyser=class{constructor(t,e=2048){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let t=0;const e=this.getFrequencyData();for(let i=0;i<e.length;i++)t+=e[i];return t/e.length}},t.AudioContext=Dc,t.AudioListener=class extends ni{constructor(){super(),this.type="AudioListener",this.context=Dc.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new Fc}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}updateMatrixWorld(t){super.updateMatrixWorld(t);const e=this.context.listener,i=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Uc,kc,Gc),Vc.set(0,0,-1).applyQuaternion(kc),e.positionX){const t=this.context.currentTime+this.timeDelta;e.positionX.linearRampToValueAtTime(Uc.x,t),e.positionY.linearRampToValueAtTime(Uc.y,t),e.positionZ.linearRampToValueAtTime(Uc.z,t),e.forwardX.linearRampToValueAtTime(Vc.x,t),e.forwardY.linearRampToValueAtTime(Vc.y,t),e.forwardZ.linearRampToValueAtTime(Vc.z,t),e.upX.linearRampToValueAtTime(i.x,t),e.upY.linearRampToValueAtTime(i.y,t),e.upZ.linearRampToValueAtTime(i.z,t)}else e.setPosition(Uc.x,Uc.y,Uc.z),e.setOrientation(Vc.x,Vc.y,Vc.z,i.x,i.y,i.z)}},t.AudioLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=new rc(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(t,function(i){try{const t=i.slice(0);Dc.getContext().decodeAudioData(t,function(t){e(t)})}catch(e){n?n(e):console.error(e),r.manager.itemError(t)}},i,n)}},t.AxesHelper=class extends Ya{constructor(t=1){const e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t],i=new Pi;i.setAttribute("position",new wi(e,3)),i.setAttribute("color",new wi([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));super(i,new Ua({vertexColors:!0,toneMapped:!1})),this.type="AxesHelper"}setColors(t,e,i){const n=new Ht,r=this.geometry.attributes.color.array;return n.set(t),n.toArray(r,0),n.toArray(r,3),n.set(e),n.toArray(r,6),n.toArray(r,9),n.set(i),n.toArray(r,12),n.toArray(r,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}},t.BackSide=1,t.BasicDepthPacking=3200,t.BasicShadowMap=0,t.Bone=Ca,t.BooleanKeyframeTrack=Wl,t.Box2=class{constructor(t=new Et(1/0,1/0),e=new Et(-1/0,-1/0)){this.isBox2=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,i=t.length;e<i;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const i=oh.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(i),this.max.copy(t).add(i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return oh.copy(t).clamp(this.min,this.max).sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},t.Box3=re,t.Box3Helper=class extends Ya{constructor(t,e=16776960){const i=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]),n=new Pi;n.setIndex(new _i(i,1)),n.setAttribute("position",new wi([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)),super(n,new Ua({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}},t.BoxBufferGeometry=Ki,t.BoxGeometry=Ki,t.BoxHelper=class extends Ya{constructor(t,e=16776960){const i=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]),n=new Float32Array(24),r=new Pi;r.setIndex(new _i(i,1)),r.setAttribute("position",new _i(n,3)),super(r,new Ua({color:e,toneMapped:!1})),this.object=t,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&Sh.setFromObject(this.object),Sh.isEmpty())return;const e=Sh.min,i=Sh.max,n=this.geometry.attributes.position,r=n.array;r[0]=i.x,r[1]=i.y,r[2]=i.z,r[3]=e.x,r[4]=i.y,r[5]=i.z,r[6]=e.x,r[7]=e.y,r[8]=i.z,r[9]=i.x,r[10]=e.y,r[11]=i.z,r[12]=i.x,r[13]=i.y,r[14]=e.z,r[15]=e.x,r[16]=i.y,r[17]=e.z,r[18]=e.x,r[19]=e.y,r[20]=e.z,r[21]=i.x,r[22]=e.y,r[23]=e.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(t){return this.object=t,this.update(),this}copy(t,e){return super.copy(t,e),this.object=t.object,this}},t.BufferAttribute=_i,t.BufferGeometry=Pi,t.BufferGeometryLoader=Cc,t.ByteType=1010,t.Cache=$l,t.Camera=nn,t.CameraHelper=class extends Ya{constructor(t){const e=new Pi,i=new Ua({color:16777215,vertexColors:!0,toneMapped:!1}),n=[],r=[],s={};function a(t,e){o(t),o(e)}function o(t){n.push(0,0,0),r.push(0,0,0),void 0===s[t]&&(s[t]=[]),s[t].push(n.length/3-1)}a("n1","n2"),a("n2","n4"),a("n4","n3"),a("n3","n1"),a("f1","f2"),a("f2","f4"),a("f4","f3"),a("f3","f1"),a("n1","f1"),a("n2","f2"),a("n3","f3"),a("n4","f4"),a("p","n1"),a("p","n2"),a("p","n3"),a("p","n4"),a("u1","u2"),a("u2","u3"),a("u3","u1"),a("c","t"),a("p","c"),a("cn1","cn2"),a("cn3","cn4"),a("cf1","cf2"),a("cf3","cf4"),e.setAttribute("position",new wi(n,3)),e.setAttribute("color",new wi(r,3)),super(e,i),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=s,this.update();const l=new Ht(16755200),c=new Ht(16711680),h=new Ht(43775),u=new Ht(16777215),d=new Ht(3355443);this.setColors(l,c,h,u,d)}setColors(t,e,i,n,r){const s=this.geometry.getAttribute("color");s.setXYZ(0,t.r,t.g,t.b),s.setXYZ(1,t.r,t.g,t.b),s.setXYZ(2,t.r,t.g,t.b),s.setXYZ(3,t.r,t.g,t.b),s.setXYZ(4,t.r,t.g,t.b),s.setXYZ(5,t.r,t.g,t.b),s.setXYZ(6,t.r,t.g,t.b),s.setXYZ(7,t.r,t.g,t.b),s.setXYZ(8,t.r,t.g,t.b),s.setXYZ(9,t.r,t.g,t.b),s.setXYZ(10,t.r,t.g,t.b),s.setXYZ(11,t.r,t.g,t.b),s.setXYZ(12,t.r,t.g,t.b),s.setXYZ(13,t.r,t.g,t.b),s.setXYZ(14,t.r,t.g,t.b),s.setXYZ(15,t.r,t.g,t.b),s.setXYZ(16,t.r,t.g,t.b),s.setXYZ(17,t.r,t.g,t.b),s.setXYZ(18,t.r,t.g,t.b),s.setXYZ(19,t.r,t.g,t.b),s.setXYZ(20,t.r,t.g,t.b),s.setXYZ(21,t.r,t.g,t.b),s.setXYZ(22,t.r,t.g,t.b),s.setXYZ(23,t.r,t.g,t.b),s.setXYZ(24,e.r,e.g,e.b),s.setXYZ(25,e.r,e.g,e.b),s.setXYZ(26,e.r,e.g,e.b),s.setXYZ(27,e.r,e.g,e.b),s.setXYZ(28,e.r,e.g,e.b),s.setXYZ(29,e.r,e.g,e.b),s.setXYZ(30,e.r,e.g,e.b),s.setXYZ(31,e.r,e.g,e.b),s.setXYZ(32,i.r,i.g,i.b),s.setXYZ(33,i.r,i.g,i.b),s.setXYZ(34,i.r,i.g,i.b),s.setXYZ(35,i.r,i.g,i.b),s.setXYZ(36,i.r,i.g,i.b),s.setXYZ(37,i.r,i.g,i.b),s.setXYZ(38,n.r,n.g,n.b),s.setXYZ(39,n.r,n.g,n.b),s.setXYZ(40,r.r,r.g,r.b),s.setXYZ(41,r.r,r.g,r.b),s.setXYZ(42,r.r,r.g,r.b),s.setXYZ(43,r.r,r.g,r.b),s.setXYZ(44,r.r,r.g,r.b),s.setXYZ(45,r.r,r.g,r.b),s.setXYZ(46,r.r,r.g,r.b),s.setXYZ(47,r.r,r.g,r.b),s.setXYZ(48,r.r,r.g,r.b),s.setXYZ(49,r.r,r.g,r.b),s.needsUpdate=!0}update(){const t=this.geometry,e=this.pointMap;bh.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),wh("c",e,t,bh,0,0,-1),wh("t",e,t,bh,0,0,1),wh("n1",e,t,bh,-1,-1,-1),wh("n2",e,t,bh,1,-1,-1),wh("n3",e,t,bh,-1,1,-1),wh("n4",e,t,bh,1,1,-1),wh("f1",e,t,bh,-1,-1,1),wh("f2",e,t,bh,1,-1,1),wh("f3",e,t,bh,-1,1,1),wh("f4",e,t,bh,1,1,1),wh("u1",e,t,bh,.7,1.1,-1),wh("u2",e,t,bh,-.7,1.1,-1),wh("u3",e,t,bh,0,2,-1),wh("cf1",e,t,bh,-1,0,1),wh("cf2",e,t,bh,1,0,1),wh("cf3",e,t,bh,0,-1,1),wh("cf4",e,t,bh,0,1,1),wh("cn1",e,t,bh,-1,0,-1),wh("cn2",e,t,bh,1,0,-1),wh("cn3",e,t,bh,0,-1,-1),wh("cn4",e,t,bh,0,1,-1),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}},t.CanvasTexture=class extends Zt{constructor(t,e,i,n,r,s,a,o,l){super(t,e,i,n,r,s,a,o,l),this.isCanvasTexture=!0,this.needsUpdate=!0}},t.CapsuleBufferGeometry=Co,t.CapsuleGeometry=Co,t.CatmullRomCurve3=po,t.CineonToneMapping=3,t.CircleBufferGeometry=Lo,t.CircleGeometry=Lo,t.ClampToEdgeWrapping=h,t.Clock=Fc,t.Color=Ht,t.ColorKeyframeTrack=jl,t.ColorManagement=zt,t.CompressedTexture=no,t.CompressedTextureLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=[],a=new no,o=new rc(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(r.withCredentials);let l=0;function c(c){o.load(t[c],function(t){const i=r.parse(t,!0);s[c]={width:i.width,height:i.height,format:i.format,mipmaps:i.mipmaps},l+=1,6===l&&(1===i.mipmapCount&&(a.minFilter=f),a.image=s,a.format=i.format,a.needsUpdate=!0,e&&e(a))},i,n)}if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)c(e);else o.load(t,function(t){const i=r.parse(t,!0);if(i.isCubemap){const t=i.mipmaps.length/i.mipmapCount;for(let e=0;e<t;e++){s[e]={mipmaps:[]};for(let t=0;t<i.mipmapCount;t++)s[e].mipmaps.push(i.mipmaps[e*i.mipmapCount+t]),s[e].format=i.format,s[e].width=i.width,s[e].height=i.height}a.image=s}else a.image.width=i.width,a.image.height=i.height,a.mipmaps=i.mipmaps;1===i.mipmapCount&&(a.minFilter=f),a.format=i.format,a.needsUpdate=!0,e&&e(a)},i,n);return a}},t.ConeBufferGeometry=Po,t.ConeGeometry=Po,t.CubeCamera=an,t.CubeReflectionMapping=r,t.CubeRefractionMapping=s,t.CubeTexture=on,t.CubeTextureLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=new on,s=new sc(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path);let a=0;function o(i){s.load(t[i],function(t){r.images[i]=t,a++,6===a&&(r.needsUpdate=!0,e&&e(r))},void 0,n)}for(let e=0;e<t.length;++e)o(e);return r}},t.CubeUVReflectionMapping=l,t.CubicBezierCurve=vo,t.CubicBezierCurve3=xo,t.CubicInterpolant=kl,t.CullFaceBack=1,t.CullFaceFront=2,t.CullFaceFrontBack=3,t.CullFaceNone=0,t.Curve=ro,t.CurvePath=To,t.CustomBlending=5,t.CustomToneMapping=5,t.CylinderBufferGeometry=Ro,t.CylinderGeometry=Ro,t.Cylindrical=class{constructor(t=1,e=0,i=0){return this.radius=t,this.theta=e,this.y=i,this}set(t,e,i){return this.radius=t,this.theta=e,this.y=i,this}copy(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,i){return this.radius=Math.sqrt(t*t+i*i),this.theta=Math.atan2(t,i),this.y=e,this}clone(){return new this.constructor().copy(this)}},t.Data3DTexture=$t,t.DataArrayTexture=Qt,t.DataTexture=La,t.DataTexture2DArray=class extends Qt{constructor(t,e,i,n){console.warn("THREE.DataTexture2DArray has been renamed to DataArrayTexture."),super(t,e,i,n)}},t.DataTexture3D=class extends $t{constructor(t,e,i,n){console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."),super(t,e,i,n)}},t.DataTextureLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=new La,a=new rc(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(r.withCredentials),a.load(t,function(t){const i=r.parse(t);i&&(void 0!==i.image?s.image=i.image:void 0!==i.data&&(s.image.width=i.width,s.image.height=i.height,s.image.data=i.data),s.wrapS=void 0!==i.wrapS?i.wrapS:h,s.wrapT=void 0!==i.wrapT?i.wrapT:h,s.magFilter=void 0!==i.magFilter?i.magFilter:f,s.minFilter=void 0!==i.minFilter?i.minFilter:f,s.anisotropy=void 0!==i.anisotropy?i.anisotropy:1,void 0!==i.encoding&&(s.encoding=i.encoding),void 0!==i.flipY&&(s.flipY=i.flipY),void 0!==i.format&&(s.format=i.format),void 0!==i.type&&(s.type=i.type),void 0!==i.mipmaps&&(s.mipmaps=i.mipmaps,s.minFilter=v),1===i.mipmapCount&&(s.minFilter=f),void 0!==i.generateMipmaps&&(s.generateMipmaps=i.generateMipmaps),s.needsUpdate=!0,e&&e(s,i))},i,n),s}},t.DataUtils=zh,t.DecrementStencilOp=7683,t.DecrementWrapStencilOp=34056,t.DefaultLoadingManager=ec,t.DepthFormat=T,t.DepthStencilFormat=A,t.DepthTexture=qs,t.DirectionalLight=_c,t.DirectionalLightHelper=class extends ni{constructor(t,e,i){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i,void 0===e&&(e=1);let n=new Pi;n.setAttribute("position",new wi([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));const r=new Ua({fog:!1,toneMapped:!1});this.lightPlane=new ja(n,r),this.add(this.lightPlane),n=new Pi,n.setAttribute("position",new wi([0,0,0,0,0,1],3)),this.targetLine=new ja(n,r),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){xh.setFromMatrixPosition(this.light.matrixWorld),yh.setFromMatrixPosition(this.light.target.matrixWorld),_h.subVectors(yh,xh),this.lightPlane.lookAt(yh),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(yh),this.targetLine.scale.z=_h.length()}},t.DiscreteInterpolant=Vl,t.DodecahedronBufferGeometry=Do,t.DodecahedronGeometry=Do,t.DoubleSide=2,t.DstAlphaFactor=206,t.DstColorFactor=208,t.DynamicCopyUsage=35050,t.DynamicDrawUsage=35048,t.DynamicReadUsage=35049,t.EdgesGeometry=Bo,t.EllipseCurve=so,t.EqualDepth=4,t.EqualStencilFunc=514,t.EquirectangularReflectionMapping=a,t.EquirectangularRefractionMapping=o,t.Euler=Ve,t.EventDispatcher=mt,t.ExtrudeBufferGeometry=ml,t.ExtrudeGeometry=ml,t.FileLoader=rc,t.FlatShading=1,t.Float16BufferAttribute=class extends _i{constructor(t,e,i){super(new Uint16Array(t),e,i),this.isFloat16BufferAttribute=!0}},t.Float32BufferAttribute=wi,t.Float64BufferAttribute=class extends _i{constructor(t,e,i){super(new Float64Array(t),e,i)}},t.FloatType=M,t.Fog=Qs,t.FogExp2=Ks,t.Font=function(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")},t.FontLoader=function(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")},t.FramebufferTexture=class extends Zt{constructor(t,e,i){super({width:t,height:e}),this.isFramebufferTexture=!0,this.format=i,this.magFilter=d,this.minFilter=d,this.generateMipmaps=!1,this.needsUpdate=!0}},t.FrontSide=0,t.Frustum=fn,t.GLBufferAttribute=class{constructor(t,e,i,n,r){this.isGLBufferAttribute=!0,this.buffer=t,this.type=e,this.itemSize=i,this.elementSize=n,this.count=r,this.version=0}set needsUpdate(t){!0===t&&this.version++}setBuffer(t){return this.buffer=t,this}setType(t,e){return this.type=t,this.elementSize=e,this}setItemSize(t){return this.itemSize=t,this}setCount(t){return this.count=t,this}},t.GLSL1="100",t.GLSL3=dt,t.GreaterDepth=6,t.GreaterEqualDepth=5,t.GreaterEqualStencilFunc=518,t.GreaterStencilFunc=516,t.GridHelper=class extends Ya{constructor(t=10,e=10,i=4473924,n=8947848){i=new Ht(i),n=new Ht(n);const r=e/2,s=t/e,a=t/2,o=[],l=[];for(let t=0,c=0,h=-a;t<=e;t++,h+=s){o.push(-a,0,h,a,0,h),o.push(h,0,-a,h,0,a);const e=t===r?i:n;e.toArray(l,c),c+=3,e.toArray(l,c),c+=3,e.toArray(l,c),c+=3,e.toArray(l,c),c+=3}const c=new Pi;c.setAttribute("position",new wi(o,3)),c.setAttribute("color",new wi(l,3));super(c,new Ua({vertexColors:!0,toneMapped:!1})),this.type="GridHelper"}},t.Group=Hs,t.HalfFloatType=b,t.HemisphereLight=oc,t.HemisphereLightHelper=class extends ni{constructor(t,e,i){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=i;const n=new vl(e);n.rotateY(.5*Math.PI),this.material=new vi({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const r=n.getAttribute("position"),s=new Float32Array(3*r.count);n.setAttribute("color",new _i(s,3)),this.add(new Zi(n,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const t=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const e=t.geometry.getAttribute("color");gh.copy(this.light.color),vh.copy(this.light.groundColor);for(let t=0,i=e.count;t<i;t++){const n=t<i/2?gh:vh;e.setXYZ(t,n.r,n.g,n.b)}e.needsUpdate=!0}t.lookAt(fh.setFromMatrixPosition(this.light.matrixWorld).negate())}},t.HemisphereLightProbe=class extends Sc{constructor(t,e,i=1){super(void 0,i),this.isHemisphereLightProbe=!0;const n=new Ht().set(t),r=new Ht().set(e),s=new ee(n.r,n.g,n.b),a=new ee(r.r,r.g,r.b),o=Math.sqrt(Math.PI),l=o*Math.sqrt(.75);this.sh.coefficients[0].copy(s).add(a).multiplyScalar(o),this.sh.coefficients[1].copy(s).sub(a).multiplyScalar(l)}},t.IcosahedronBufferGeometry=gl,t.IcosahedronGeometry=gl,t.ImageBitmapLoader=class extends ic{constructor(t){super(t),this.isImageBitmapLoader=!0,"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(t){return this.options=t,this}load(t,e,i,n){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=$l.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout(function(){e&&e(s),r.manager.itemEnd(t)},0),s;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader,fetch(t,a).then(function(t){return t.blob()}).then(function(t){return createImageBitmap(t,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(i){$l.add(t,i),e&&e(i),r.manager.itemEnd(t)}).catch(function(e){n&&n(e),r.manager.itemError(t),r.manager.itemEnd(t)}),r.manager.itemStart(t)}},t.ImageLoader=sc,t.ImageUtils=jt,t.ImmediateRenderObject=function(){console.error("THREE.ImmediateRenderObject has been removed.")},t.IncrementStencilOp=7682,t.IncrementWrapStencilOp=34055,t.InstancedBufferAttribute=Da,t.InstancedBufferGeometry=Ec,t.InstancedInterleavedBuffer=class extends ta{constructor(t,e,i=1){super(t,e),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=i}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}clone(t){const e=super.clone(t);return e.meshPerAttribute=this.meshPerAttribute,e}toJSON(t){const e=super.toJSON(t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}},t.InstancedMesh=Ba,t.Int16BufferAttribute=class extends _i{constructor(t,e,i){super(new Int16Array(t),e,i)}},t.Int32BufferAttribute=class extends _i{constructor(t,e,i){super(new Int32Array(t),e,i)}},t.Int8BufferAttribute=class extends _i{constructor(t,e,i){super(new Int8Array(t),e,i)}},t.IntType=1013,t.InterleavedBuffer=ta,t.InterleavedBufferAttribute=ia,t.Interpolant=Ul,t.InterpolateDiscrete=Q,t.InterpolateLinear=$,t.InterpolateSmooth=tt,t.InvertStencilOp=5386,t.KeepStencilOp=ht,t.KeyframeTrack=Hl,t.LOD=Ma,t.LatheBufferGeometry=Eo,t.LatheGeometry=Eo,t.Layers=He,t.LessDepth=2,t.LessEqualDepth=3,t.LessEqualStencilFunc=515,t.LessStencilFunc=513,t.Light=ac,t.LightProbe=Sc,t.Line=ja,t.Line3=class{constructor(t=new ee,e=new ee){this.start=t,this.end=e}set(t,e){return this.start.copy(t),this.end.copy(e),this}copy(t){return this.start.copy(t.start),this.end.copy(t.end),this}getCenter(t){return t.addVectors(this.start,this.end).multiplyScalar(.5)}delta(t){return t.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,e){return this.delta(e).multiplyScalar(t).add(this.start)}closestPointToPointParameter(t,e){lh.subVectors(t,this.start),ch.subVectors(this.end,this.start);const i=ch.dot(ch);let n=ch.dot(lh)/i;return e&&(n=_t(n,0,1)),n}closestPointToPoint(t,e,i){const n=this.closestPointToPointParameter(t,e);return this.delta(i).multiplyScalar(n).add(this.start)}applyMatrix4(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this}equals(t){return t.start.equals(this.start)&&t.end.equals(this.end)}clone(){return new this.constructor().copy(this)}},t.LineBasicMaterial=Ua,t.LineCurve=yo,t.LineCurve3=_o,t.LineDashedMaterial=Fl,t.LineLoop=Za,t.LineSegments=Ya,t.LinearEncoding=at,t.LinearFilter=f,t.LinearInterpolant=Gl,t.LinearMipMapLinearFilter=1008,t.LinearMipMapNearestFilter=1007,t.LinearMipmapLinearFilter=v,t.LinearMipmapNearestFilter=g,t.LinearSRGBColorSpace=ct,t.LinearToneMapping=1,t.Loader=ic,t.LoaderUtils=Ac,t.LoadingManager=tc,t.LoopOnce=2200,t.LoopPingPong=2202,t.LoopRepeat=2201,t.LuminanceAlphaFormat=1025,t.LuminanceFormat=1024,t.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},t.Material=gi,t.MaterialLoader=Tc,t.MathUtils=At,t.Matrix3=Ct,t.Matrix4=Ie,t.MaxEquation=104,t.Mesh=Zi,t.MeshBasicMaterial=vi,t.MeshDepthMaterial=zs,t.MeshDistanceMaterial=Fs,t.MeshLambertMaterial=Ol,t.MeshMatcapMaterial=zl,t.MeshNormalMaterial=Nl,t.MeshPhongMaterial=Il,t.MeshPhysicalMaterial=Pl,t.MeshStandardMaterial=Rl,t.MeshToonMaterial=Dl,t.MinEquation=103,t.MirroredRepeatWrapping=u,t.MixOperation=1,t.MultiplyBlending=4,t.MultiplyOperation=0,t.NearestFilter=d,t.NearestMipMapLinearFilter=1005,t.NearestMipMapNearestFilter=1004,t.NearestMipmapLinearFilter=m,t.NearestMipmapNearestFilter=p,t.NeverDepth=0,t.NeverStencilFunc=512,t.NoBlending=0,t.NoColorSpace="",t.NoToneMapping=0,t.NormalAnimationBlendMode=rt,t.NormalBlending=1,t.NotEqualDepth=7,t.NotEqualStencilFunc=517,t.NumberKeyframeTrack=ql,t.Object3D=ni,t.ObjectLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=this,s=""===this.path?Ac.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||s;const a=new rc(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(t,function(i){let s=null;try{s=JSON.parse(i)}catch(e){return void 0!==n&&n(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}const a=s.metadata;void 0!==a&&void 0!==a.type&&"geometry"!==a.type.toLowerCase()?r.parse(s,e):console.error("THREE.ObjectLoader: Can't load "+t)},i,n)}async loadAsync(t,e){const i=""===this.path?Ac.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||i;const n=new rc(this.manager);n.setPath(this.path),n.setRequestHeader(this.requestHeader),n.setWithCredentials(this.withCredentials);const r=await n.loadAsync(t,e),s=JSON.parse(r),a=s.metadata;if(void 0===a||void 0===a.type||"geometry"===a.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+t);return await this.parseAsync(s)}parse(t,e){const i=this.parseAnimations(t.animations),n=this.parseShapes(t.shapes),r=this.parseGeometries(t.geometries,n),s=this.parseImages(t.images,function(){void 0!==e&&e(l)}),a=this.parseTextures(t.textures,s),o=this.parseMaterials(t.materials,a),l=this.parseObject(t.object,r,o,a,i),c=this.parseSkeletons(t.skeletons,l);if(this.bindSkeletons(l,c),void 0!==e){let t=!1;for(const e in s)if(s[e].data instanceof HTMLImageElement){t=!0;break}!1===t&&e(l)}return l}async parseAsync(t){const e=this.parseAnimations(t.animations),i=this.parseShapes(t.shapes),n=this.parseGeometries(t.geometries,i),r=await this.parseImagesAsync(t.images),s=this.parseTextures(t.textures,r),a=this.parseMaterials(t.materials,s),o=this.parseObject(t.object,n,a,s,e),l=this.parseSkeletons(t.skeletons,o);return this.bindSkeletons(o,l),o}parseShapes(t){const e={};if(void 0!==t)for(let i=0,n=t.length;i<n;i++){const n=new Uo().fromJSON(t[i]);e[n.uuid]=n}return e}parseSkeletons(t,e){const i={},n={};if(e.traverse(function(t){t.isBone&&(n[t.uuid]=t)}),void 0!==t)for(let e=0,r=t.length;e<r;e++){const r=new Ia().fromJSON(t[e],n);i[r.uuid]=r}return i}parseGeometries(t,e){const i={};if(void 0!==t){const n=new Cc;for(let r=0,s=t.length;r<s;r++){let s;const a=t[r];switch(a.type){case"BufferGeometry":case"InstancedBufferGeometry":s=n.parse(a);break;case"Geometry":console.error("THREE.ObjectLoader: The legacy Geometry type is no longer supported.");break;default:a.type in El?s=El[a.type].fromJSON(a,e):console.warn(`THREE.ObjectLoader: Unsupported geometry type "${a.type}"`);}s.uuid=a.uuid,void 0!==a.name&&(s.name=a.name),!0===s.isBufferGeometry&&void 0!==a.userData&&(s.userData=a.userData),i[a.uuid]=s}}return i}parseMaterials(t,e){const i={},n={};if(void 0!==t){const r=new Tc;r.setTextures(e);for(let e=0,s=t.length;e<s;e++){const s=t[e];if("MultiMaterial"===s.type){const t=[];for(let e=0;e<s.materials.length;e++){const n=s.materials[e];void 0===i[n.uuid]&&(i[n.uuid]=r.parse(n)),t.push(i[n.uuid])}n[s.uuid]=t}else void 0===i[s.uuid]&&(i[s.uuid]=r.parse(s)),n[s.uuid]=i[s.uuid]}}return n}parseAnimations(t){const e={};if(void 0!==t)for(let i=0;i<t.length;i++){const n=t[i],r=Kl.parse(n);e[r.uuid]=r}return e}parseImages(t,e){const i=this,n={};let r;function s(t){if("string"==typeof t){const e=t;return function(t){return i.manager.itemStart(t),r.load(t,function(){i.manager.itemEnd(t)},void 0,function(){i.manager.itemError(t),i.manager.itemEnd(t)})}(/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:i.resourcePath+e)}return t.data?{data:Pt(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){const i=new tc(e);r=new sc(i),r.setCrossOrigin(this.crossOrigin);for(let e=0,i=t.length;e<i;e++){const i=t[e],r=i.url;if(Array.isArray(r)){const t=[];for(let e=0,i=r.length;e<i;e++){const i=s(r[e]);null!==i&&(i instanceof HTMLImageElement?t.push(i):t.push(new La(i.data,i.width,i.height)))}n[i.uuid]=new qt(t)}else{const t=s(i.url);n[i.uuid]=new qt(t)}}}return n}async parseImagesAsync(t){const e=this,i={};let n;async function r(t){if("string"==typeof t){const i=t,r=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(i)?i:e.resourcePath+i;return await n.loadAsync(r)}return t.data?{data:Pt(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){n=new sc(this.manager),n.setCrossOrigin(this.crossOrigin);for(let e=0,n=t.length;e<n;e++){const n=t[e],s=n.url;if(Array.isArray(s)){const t=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=await r(i);null!==n&&(n instanceof HTMLImageElement?t.push(n):t.push(new La(n.data,n.width,n.height)))}i[n.uuid]=new qt(t)}else{const t=await r(n.url);i[n.uuid]=new qt(t)}}}return i}parseTextures(t,e){function i(t,e){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}const n={};if(void 0!==t)for(let r=0,s=t.length;r<s;r++){const s=t[r];void 0===s.image&&console.warn("THREE.ObjectLoader: No \"image\" specified for",s.uuid),void 0===e[s.image]&&console.warn("THREE.ObjectLoader: Undefined image",s.image);const a=e[s.image],o=a.data;let l;Array.isArray(o)?(l=new on,6===o.length&&(l.needsUpdate=!0)):(l=o&&o.data?new La:new Zt,o&&(l.needsUpdate=!0)),l.source=a,l.uuid=s.uuid,void 0!==s.name&&(l.name=s.name),void 0!==s.mapping&&(l.mapping=i(s.mapping,Lc)),void 0!==s.offset&&l.offset.fromArray(s.offset),void 0!==s.repeat&&l.repeat.fromArray(s.repeat),void 0!==s.center&&l.center.fromArray(s.center),void 0!==s.rotation&&(l.rotation=s.rotation),void 0!==s.wrap&&(l.wrapS=i(s.wrap[0],Rc),l.wrapT=i(s.wrap[1],Rc)),void 0!==s.format&&(l.format=s.format),void 0!==s.type&&(l.type=s.type),void 0!==s.encoding&&(l.encoding=s.encoding),void 0!==s.minFilter&&(l.minFilter=i(s.minFilter,Pc)),void 0!==s.magFilter&&(l.magFilter=i(s.magFilter,Pc)),void 0!==s.anisotropy&&(l.anisotropy=s.anisotropy),void 0!==s.flipY&&(l.flipY=s.flipY),void 0!==s.premultiplyAlpha&&(l.premultiplyAlpha=s.premultiplyAlpha),void 0!==s.unpackAlignment&&(l.unpackAlignment=s.unpackAlignment),void 0!==s.userData&&(l.userData=s.userData),n[s.uuid]=l}return n}parseObject(t,e,i,n,r){let s,a,o;function l(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function c(t){if(void 0!==t){if(Array.isArray(t)){const e=[];for(let n=0,r=t.length;n<r;n++){const r=t[n];void 0===i[r]&&console.warn("THREE.ObjectLoader: Undefined material",r),e.push(i[r])}return e}return void 0===i[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),i[t]}}function h(t){return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined texture",t),n[t]}switch(t.type){case"Scene":s=new $s,void 0!==t.background&&(Number.isInteger(t.background)?s.background=new Ht(t.background):s.background=h(t.background)),void 0!==t.environment&&(s.environment=h(t.environment)),void 0!==t.fog&&("Fog"===t.fog.type?s.fog=new Qs(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(s.fog=new Ks(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":s=new rn(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(s.focus=t.focus),void 0!==t.zoom&&(s.zoom=t.zoom),void 0!==t.filmGauge&&(s.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(s.filmOffset=t.filmOffset),void 0!==t.view&&(s.view=Object.assign({},t.view));break;case"OrthographicCamera":s=new Cn(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(s.zoom=t.zoom),void 0!==t.view&&(s.view=Object.assign({},t.view));break;case"AmbientLight":s=new Mc(t.color,t.intensity);break;case"DirectionalLight":s=new _c(t.color,t.intensity);break;case"PointLight":s=new xc(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":s=new bc(t.color,t.intensity,t.width,t.height);break;case"SpotLight":s=new pc(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":s=new oc(t.color,t.groundColor,t.intensity);break;case"LightProbe":s=new Sc().fromJSON(t);break;case"SkinnedMesh":a=l(t.geometry),o=c(t.material),s=new Ea(a,o),void 0!==t.bindMode&&(s.bindMode=t.bindMode),void 0!==t.bindMatrix&&s.bindMatrix.fromArray(t.bindMatrix),void 0!==t.skeleton&&(s.skeleton=t.skeleton);break;case"Mesh":a=l(t.geometry),o=c(t.material),s=new Zi(a,o);break;case"InstancedMesh":a=l(t.geometry),o=c(t.material);const e=t.count,i=t.instanceMatrix,n=t.instanceColor;s=new Ba(a,o,e),s.instanceMatrix=new Da(new Float32Array(i.array),16),void 0!==n&&(s.instanceColor=new Da(new Float32Array(n.array),n.itemSize));break;case"LOD":s=new Ma;break;case"Line":s=new ja(l(t.geometry),c(t.material));break;case"LineLoop":s=new Za(l(t.geometry),c(t.material));break;case"LineSegments":s=new Ya(l(t.geometry),c(t.material));break;case"PointCloud":case"Points":s=new eo(l(t.geometry),c(t.material));break;case"Sprite":s=new va(c(t.material));break;case"Group":s=new Hs;break;case"Bone":s=new Ca;break;default:s=new ni;}if(s.uuid=t.uuid,void 0!==t.name&&(s.name=t.name),void 0!==t.matrix?(s.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(s.matrixAutoUpdate=t.matrixAutoUpdate),s.matrixAutoUpdate&&s.matrix.decompose(s.position,s.quaternion,s.scale)):(void 0!==t.position&&s.position.fromArray(t.position),void 0!==t.rotation&&s.rotation.fromArray(t.rotation),void 0!==t.quaternion&&s.quaternion.fromArray(t.quaternion),void 0!==t.scale&&s.scale.fromArray(t.scale)),void 0!==t.castShadow&&(s.castShadow=t.castShadow),void 0!==t.receiveShadow&&(s.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(s.shadow.bias=t.shadow.bias),void 0!==t.shadow.normalBias&&(s.shadow.normalBias=t.shadow.normalBias),void 0!==t.shadow.radius&&(s.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&s.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(s.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(s.visible=t.visible),void 0!==t.frustumCulled&&(s.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(s.renderOrder=t.renderOrder),void 0!==t.userData&&(s.userData=t.userData),void 0!==t.layers&&(s.layers.mask=t.layers),void 0!==t.children){const a=t.children;for(let t=0;t<a.length;t++)s.add(this.parseObject(a[t],e,i,n,r))}if(void 0!==t.animations){const e=t.animations;for(let t=0;t<e.length;t++){const i=e[t];s.animations.push(r[i])}}if("LOD"===t.type){void 0!==t.autoUpdate&&(s.autoUpdate=t.autoUpdate);const e=t.levels;for(let t=0;t<e.length;t++){const i=e[t],n=s.getObjectByProperty("uuid",i.object);void 0!==n&&s.addLevel(n,i.distance)}}return s}bindSkeletons(t,e){0!==Object.keys(e).length&&t.traverse(function(t){if(!0===t.isSkinnedMesh&&void 0!==t.skeleton){const i=e[t.skeleton];void 0===i?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",t.skeleton):t.bind(i,t.bindMatrix)}})}setTexturePath(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}},t.ObjectSpaceNormalMap=1,t.OctahedronBufferGeometry=vl,t.OctahedronGeometry=vl,t.OneFactor=201,t.OneMinusDstAlphaFactor=207,t.OneMinusDstColorFactor=209,t.OneMinusSrcAlphaFactor=205,t.OneMinusSrcColorFactor=203,t.OrthographicCamera=Cn,t.PCFShadowMap=1,t.PCFSoftShadowMap=2,t.PMREMGenerator=Fn,t.ParametricGeometry=class extends Pi{constructor(){console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),super()}},t.Path=Ao,t.PerspectiveCamera=rn,t.Plane=dn,t.PlaneBufferGeometry=xn,t.PlaneGeometry=xn,t.PlaneHelper=class extends ja{constructor(t,e=1,i=16776960){const n=i,r=new Pi;r.setAttribute("position",new wi([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)),r.computeBoundingSphere(),super(r,new Ua({color:n,toneMapped:!1})),this.type="PlaneHelper",this.plane=t,this.size=e;const s=new Pi;s.setAttribute("position",new wi([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),s.computeBoundingSphere(),this.add(new Zi(s,new vi({color:n,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(t){let e=-this.plane.constant;Math.abs(e)<1e-8&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=e<0?1:0,this.lookAt(this.plane.normal),super.updateMatrixWorld(t)}},t.PointLight=xc,t.PointLightHelper=class extends Zi{constructor(t,e,i){super(new _l(e,4,2),new vi({wireframe:!0,fog:!1,toneMapped:!1})),this.light=t,this.light.updateMatrixWorld(),this.color=i,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}},t.Points=eo,t.PointsMaterial=Ja,t.PolarGridHelper=class extends Ya{constructor(t=10,e=16,i=8,n=64,r=4473924,s=8947848){r=new Ht(r),s=new Ht(s);const a=[],o=[];for(let i=0;i<=e;i++){const n=i/e*(2*Math.PI),l=Math.sin(n)*t,c=Math.cos(n)*t;a.push(0,0,0),a.push(l,0,c);const h=1&i?r:s;o.push(h.r,h.g,h.b),o.push(h.r,h.g,h.b)}for(let e=0;e<=i;e++){const l=1&e?r:s,c=t-t/i*e;for(let t=0;t<n;t++){let e=t/n*(2*Math.PI),i=Math.sin(e)*c,r=Math.cos(e)*c;a.push(i,0,r),o.push(l.r,l.g,l.b),e=(t+1)/n*(2*Math.PI),i=Math.sin(e)*c,r=Math.cos(e)*c,a.push(i,0,r),o.push(l.r,l.g,l.b)}}const l=new Pi;l.setAttribute("position",new wi(a,3)),l.setAttribute("color",new wi(o,3));super(l,new Ua({vertexColors:!0,toneMapped:!1})),this.type="PolarGridHelper"}},t.PolyhedronBufferGeometry=Io,t.PolyhedronGeometry=Io,t.PositionalAudio=class extends Hc{constructor(t){super(t),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}disconnect(){super.disconnect(),this.panner.disconnect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(t){return this.panner.refDistance=t,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(t){return this.panner.rolloffFactor=t,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(t){return this.panner.distanceModel=t,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(t){return this.panner.maxDistance=t,this}setDirectionalCone(t,e,i){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=i,this}updateMatrixWorld(t){if(super.updateMatrixWorld(t),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(Wc,jc,qc),Xc.set(0,0,1).applyQuaternion(jc);const e=this.panner;if(e.positionX){const t=this.context.currentTime+this.listener.timeDelta;e.positionX.linearRampToValueAtTime(Wc.x,t),e.positionY.linearRampToValueAtTime(Wc.y,t),e.positionZ.linearRampToValueAtTime(Wc.z,t),e.orientationX.linearRampToValueAtTime(Xc.x,t),e.orientationY.linearRampToValueAtTime(Xc.y,t),e.orientationZ.linearRampToValueAtTime(Xc.z,t)}else e.setPosition(Wc.x,Wc.y,Wc.z),e.setOrientation(Xc.x,Xc.y,Xc.z)}},t.PropertyBinding=eh,t.PropertyMixer=Yc,t.QuadraticBezierCurve=Mo,t.QuadraticBezierCurve3=bo,t.Quaternion=te,t.QuaternionKeyframeTrack=Yl,t.QuaternionLinearInterpolant=Xl,t.REVISION=e,t.RGBADepthPacking=3201,t.RGBAFormat=S,t.RGBAIntegerFormat=1033,t.RGBA_ASTC_10x10_Format=Y,t.RGBA_ASTC_10x5_Format=j,t.RGBA_ASTC_10x6_Format=q,t.RGBA_ASTC_10x8_Format=X,t.RGBA_ASTC_12x10_Format=Z,t.RGBA_ASTC_12x12_Format=J,t.RGBA_ASTC_4x4_Format=F,t.RGBA_ASTC_5x4_Format=B,t.RGBA_ASTC_5x5_Format=U,t.RGBA_ASTC_6x5_Format=k,t.RGBA_ASTC_6x6_Format=G,t.RGBA_ASTC_8x5_Format=V,t.RGBA_ASTC_8x6_Format=H,t.RGBA_ASTC_8x8_Format=W,t.RGBA_BPTC_Format=K,t.RGBA_ETC2_EAC_Format=z,t.RGBA_PVRTC_2BPPV1_Format=N,t.RGBA_PVRTC_4BPPV1_Format=D,t.RGBA_S3TC_DXT1_Format=C,t.RGBA_S3TC_DXT3_Format=L,t.RGBA_S3TC_DXT5_Format=R,t.RGBFormat=1022,t.RGB_ETC1_Format=36196,t.RGB_ETC2_Format=O,t.RGB_PVRTC_2BPPV1_Format=I,t.RGB_PVRTC_4BPPV1_Format=P,t.RGB_S3TC_DXT1_Format=E,t.RGFormat=1030,t.RGIntegerFormat=1031,t.RawShaderMaterial=Ll,t.Ray=Pe,t.Raycaster=class{constructor(t,e,i=0,n=1/0){this.ray=new Pe(t,e),this.near=i,this.far=n,this.camera=null,this.layers=new He,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}intersectObject(t,e=!0,i=[]){return ah(t,this,i,e),i.sort(sh),i}intersectObjects(t,e=!0,i=[]){for(let n=0,r=t.length;n<r;n++)ah(t[n],this,i,e);return i.sort(sh),i}},t.RectAreaLight=bc,t.RedFormat=1028,t.RedIntegerFormat=1029,t.ReinhardToneMapping=2,t.RepeatWrapping=c,t.ReplaceStencilOp=7681,t.ReverseSubtractEquation=102,t.RingBufferGeometry=xl,t.RingGeometry=xl,t.SRGBColorSpace=lt,t.Scene=$s,t.ShaderChunk=yn,t.ShaderLib=Mn,t.ShaderMaterial=en,t.ShadowMaterial=Cl,t.Shape=Uo,t.ShapeBufferGeometry=yl,t.ShapeGeometry=yl,t.ShapePath=class{constructor(){this.type="ShapePath",this.color=new Ht,this.subPaths=[],this.currentPath=null}moveTo(t,e){return this.currentPath=new Ao,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this}lineTo(t,e){return this.currentPath.lineTo(t,e),this}quadraticCurveTo(t,e,i,n){return this.currentPath.quadraticCurveTo(t,e,i,n),this}bezierCurveTo(t,e,i,n,r,s){return this.currentPath.bezierCurveTo(t,e,i,n,r,s),this}splineThru(t){return this.currentPath.splineThru(t),this}toShapes(t,e){function i(t){const e=[];for(let i=0,n=t.length;i<n;i++){const n=t[i],r=new Uo;r.curves=n.curves,e.push(r)}return e}function n(t,e){const i=e.length;let n=!1;for(let r=i-1,s=0;s<i;r=s++){let i=e[r],a=e[s],o=a.x-i.x,l=a.y-i.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(i=e[s],o=-o,a=e[r],l=-l),t.y<i.y||t.y>a.y)continue;if(t.y===i.y){if(t.x===i.x)return!0}else{const e=l*(t.x-i.x)-o*(t.y-i.y);if(0===e)return!0;if(e<0)continue;n=!n}}else{if(t.y!==i.y)continue;if(a.x<=t.x&&t.x<=i.x||i.x<=t.x&&t.x<=a.x)return!0}}return n}const r=ul.isClockWise,s=this.subPaths;if(0===s.length)return[];if(!0===e)return i(s);let a,o,l;const c=[];if(1===s.length)return o=s[0],l=new Uo,l.curves=o.curves,c.push(l),c;let h=!r(s[0].getPoints());h=t?!h:h;const u=[],d=[];let p,m,f=[],g=0;d[g]=void 0,f[g]=[];for(let e=0,i=s.length;e<i;e++)o=s[e],p=o.getPoints(),a=r(p),a=t?!a:a,a?(!h&&d[g]&&g++,d[g]={s:new Uo,p:p},d[g].s.curves=o.curves,h&&g++,f[g]=[]):f[g].push({h:o,p:p[0]});if(!d[0])return i(s);if(d.length>1){let t=!1,e=0;for(let t=0,e=d.length;t<e;t++)u[t]=[];for(let i=0,r=d.length;i<r;i++){const r=f[i];for(let s=0;s<r.length;s++){const a=r[s];let o=!0;for(let r=0;r<d.length;r++)n(a.p,d[r].p)&&(i!==r&&e++,o?(o=!1,u[r].push(a)):t=!0);o&&u[i].push(a)}}e>0&&!1===t&&(f=u)}for(let t=0,e=d.length;t<e;t++){l=d[t].s,c.push(l),m=f[t];for(let t=0,e=m.length;t<e;t++)l.holes.push(m[t].h)}return c}},t.ShapeUtils=ul,t.ShortType=1011,t.Skeleton=Ia,t.SkeletonHelper=class extends Ya{constructor(t){const e=mh(t),i=new Pi,n=[],r=[],s=new Ht(0,0,1),a=new Ht(0,1,0);for(let t=0;t<e.length;t++){const i=e[t];i.parent&&i.parent.isBone&&(n.push(0,0,0),n.push(0,0,0),r.push(s.r,s.g,s.b),r.push(a.r,a.g,a.b))}i.setAttribute("position",new wi(n,3)),i.setAttribute("color",new wi(r,3));super(i,new Ua({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0})),this.isSkeletonHelper=!0,this.type="SkeletonHelper",this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,i=this.geometry,n=i.getAttribute("position");ph.copy(this.root.matrixWorld).invert();for(let t=0,i=0;t<e.length;t++){const r=e[t];r.parent&&r.parent.isBone&&(dh.multiplyMatrices(ph,r.matrixWorld),uh.setFromMatrixPosition(dh),n.setXYZ(i,uh.x,uh.y,uh.z),dh.multiplyMatrices(ph,r.parent.matrixWorld),uh.setFromMatrixPosition(dh),n.setXYZ(i+1,uh.x,uh.y,uh.z),i+=2)}i.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}},t.SkinnedMesh=Ea,t.SmoothShading=2,t.Source=qt,t.Sphere=we,t.SphereBufferGeometry=_l,t.SphereGeometry=_l,t.Spherical=class{constructor(t=1,e=0,i=0){return this.radius=t,this.phi=e,this.theta=i,this}set(t,e,i){return this.radius=t,this.phi=e,this.theta=i,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,i){return this.radius=Math.sqrt(t*t+e*e+i*i),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,i),this.phi=Math.acos(_t(e/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}},t.SphericalHarmonics3=wc,t.SplineCurve=wo,t.SpotLight=pc,t.SpotLightHelper=class extends ni{constructor(t,e){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;const i=new Pi,n=[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(let t=0,e=1,i=32;t<i;t++,e++){const r=t/i*Math.PI*2,s=e/i*Math.PI*2;n.push(Math.cos(r),Math.sin(r),1,Math.cos(s),Math.sin(s),1)}i.setAttribute("position",new wi(n,3));const r=new Ua({fog:!1,toneMapped:!1});this.cone=new Ya(i,r),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateMatrixWorld();const t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),hh.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(hh),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}},t.Sprite=va,t.SpriteMaterial=na,t.SrcAlphaFactor=204,t.SrcAlphaSaturateFactor=210,t.SrcColorFactor=202,t.StaticCopyUsage=35046,t.StaticDrawUsage=ut,t.StaticReadUsage=35045,t.StereoCamera=class{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new rn,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new rn,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}}update(t){const e=this._cache;if(e.focus!==t.focus||e.fov!==t.fov||e.aspect!==t.aspect*this.aspect||e.near!==t.near||e.far!==t.far||e.zoom!==t.zoom||e.eyeSep!==this.eyeSep){e.focus=t.focus,e.fov=t.fov,e.aspect=t.aspect*this.aspect,e.near=t.near,e.far=t.far,e.zoom=t.zoom,e.eyeSep=this.eyeSep,zc.copy(t.projectionMatrix);const i=e.eyeSep/2,n=i*e.near/e.focus,r=e.near*Math.tan(vt*e.fov*.5)/e.zoom;let s,a;Oc.elements[12]=-i,Nc.elements[12]=i,s=-r*e.aspect+n,a=r*e.aspect+n,zc.elements[0]=2*e.near/(a-s),zc.elements[8]=(a+s)/(a-s),this.cameraL.projectionMatrix.copy(zc),s=-r*e.aspect-n,a=r*e.aspect-n,zc.elements[0]=2*e.near/(a-s),zc.elements[8]=(a+s)/(a-s),this.cameraR.projectionMatrix.copy(zc)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Oc),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Nc)}},t.StreamCopyUsage=35042,t.StreamDrawUsage=35040,t.StreamReadUsage=35041,t.StringKeyframeTrack=Zl,t.SubtractEquation=101,t.SubtractiveBlending=3,t.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},t.TangentSpaceNormalMap=0,t.TetrahedronBufferGeometry=Ml,t.TetrahedronGeometry=Ml,t.TextGeometry=class extends Pi{constructor(){console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),super()}},t.Texture=Zt,t.TextureLoader=class extends ic{constructor(t){super(t)}load(t,e,i,n){const r=new Zt,s=new sc(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(t,function(t){r.image=t,r.needsUpdate=!0,void 0!==e&&e(r)},i,n),r}},t.TorusBufferGeometry=bl,t.TorusGeometry=bl,t.TorusKnotBufferGeometry=wl,t.TorusKnotGeometry=wl,t.Triangle=mi,t.TriangleFanDrawMode=2,t.TriangleStripDrawMode=1,t.TrianglesDrawMode=0,t.TubeBufferGeometry=Sl,t.TubeGeometry=Sl,t.UVMapping=n,t.Uint16BufferAttribute=Mi,t.Uint32BufferAttribute=bi,t.Uint8BufferAttribute=class extends _i{constructor(t,e,i){super(new Uint8Array(t),e,i)}},t.Uint8ClampedBufferAttribute=class extends _i{constructor(t,e,i){super(new Uint8ClampedArray(t),e,i)}},t.Uniform=rh,t.UniformsLib=_n,t.UniformsUtils=tn,t.UnsignedByteType=x,t.UnsignedInt248Type=w,t.UnsignedIntType=_,t.UnsignedShort4444Type=1017,t.UnsignedShort5551Type=1018,t.UnsignedShortType=y,t.VSMShadowMap=3,t.Vector2=Et,t.Vector3=ee,t.Vector4=Jt,t.VectorKeyframeTrack=Jl,t.VideoTexture=class extends Zt{constructor(t,e,i,n,r,s,a,o,l){super(t,e,i,n,r,s,a,o,l),this.isVideoTexture=!0,this.minFilter=void 0!==s?s:f,this.magFilter=void 0!==r?r:f,this.generateMipmaps=!1;const c=this;"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback(function e(){c.needsUpdate=!0,t.requestVideoFrameCallback(e)})}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image;!1==="requestVideoFrameCallback"in t&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}},t.WebGL1Renderer=Js,t.WebGL3DRenderTarget=class extends Kt{constructor(t,e,i){super(t,e),this.isWebGL3DRenderTarget=!0,this.depth=i,this.texture=new $t(null,t,e,i),this.texture.isRenderTargetTexture=!0}},t.WebGLArrayRenderTarget=class extends Kt{constructor(t,e,i){super(t,e),this.isWebGLArrayRenderTarget=!0,this.depth=i,this.texture=new Qt(null,t,e,i),this.texture.isRenderTargetTexture=!0}},t.WebGLCubeRenderTarget=ln,t.WebGLMultipleRenderTargets=class extends Kt{constructor(t,e,i,n={}){super(t,e,n),this.isWebGLMultipleRenderTargets=!0;const r=this.texture;this.texture=[];for(let t=0;t<i;t++)this.texture[t]=r.clone(),this.texture[t].isRenderTargetTexture=!0}setSize(t,e,i=1){if(this.width!==t||this.height!==e||this.depth!==i){this.width=t,this.height=e,this.depth=i;for(let n=0,r=this.texture.length;n<r;n++)this.texture[n].image.width=t,this.texture[n].image.height=e,this.texture[n].image.depth=i;this.dispose()}return this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e),this}copy(t){this.dispose(),this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,null!==t.depthTexture&&(this.depthTexture=t.depthTexture.clone()),this.texture.length=0;for(let e=0,i=t.texture.length;e<i;e++)this.texture[e]=t.texture[e].clone(),this.texture[e].isRenderTargetTexture=!0;return this}},t.WebGLMultisampleRenderTarget=class extends Kt{constructor(t,e,i){console.error("THREE.WebGLMultisampleRenderTarget has been removed. Use a normal render target and set the \"samples\" property to greater 0 to enable multisampling."),super(t,e,i),this.samples=4}},t.WebGLRenderTarget=Kt,t.WebGLRenderer=Zs,t.WebGLUtils=Gs,t.WireframeGeometry=Tl,t.WrapAroundEnding=nt,t.ZeroCurvatureEnding=et,t.ZeroFactor=200,t.ZeroSlopeEnding=it,t.ZeroStencilOp=0,t._SRGBAFormat=pt,t.sRGBEncoding=ot,Object.defineProperty(t,"__esModule",{value:!0})});(function(t,e){e(t.MeshBVHLib=t.MeshBVHLib||{},t.THREE=t.THREE||{})})(this,function(exports,three){const CENTER=0;const AVERAGE=1;const SAH=2;const NOT_INTERSECTED=0;const INTERSECTED=1;const CONTAINED=2;const TRIANGLE_INTERSECT_COST=1.25;const TRAVERSAL_COST=1;const BYTES_PER_NODE=6*4+4+4;const IS_LEAFNODE_FLAG=65535;const FLOAT32_EPSILON=Math.pow(2,-24);class MeshBVHNode{constructor(){}}function arrayToBox(nodeIndex32,array,target){target.min.x=array[nodeIndex32];target.min.y=array[nodeIndex32+1];target.min.z=array[nodeIndex32+2];target.max.x=array[nodeIndex32+3];target.max.y=array[nodeIndex32+4];target.max.z=array[nodeIndex32+5];return target}function getLongestEdgeIndex(bounds){let splitDimIdx=-1;let splitDist=-Infinity;for(let i=0;i<3;i++){const dist=bounds[i+3]-bounds[i];if(dist>splitDist){splitDist=dist;splitDimIdx=i}}return splitDimIdx}function copyBounds(source,target){target.set(source)}function unionBounds(a,b,target){let aVal,bVal;for(let d=0;d<3;d++){const d3=d+3;aVal=a[d];bVal=b[d];target[d]=aVal<bVal?aVal:bVal;aVal=a[d3];bVal=b[d3];target[d3]=aVal>bVal?aVal:bVal}}function expandByTriangleBounds(startIndex,triangleBounds,bounds){for(let d=0;d<3;d++){const tCenter=triangleBounds[startIndex+2*d];const tHalf=triangleBounds[startIndex+2*d+1];const tMin=tCenter-tHalf;const tMax=tCenter+tHalf;if(tMin<bounds[d]){bounds[d]=tMin}if(tMax>bounds[d+3]){bounds[d+3]=tMax}}}function computeSurfaceArea(bounds){const d0=bounds[3]-bounds[0];const d1=bounds[4]-bounds[1];const d2=bounds[5]-bounds[2];return 2*(d0*d1+d1*d2+d2*d0)}function ensureIndex(geo,options){if(!geo.index){const vertexCount=geo.attributes.position.count;const BufferConstructor=options.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;let index;if(vertexCount>65535){index=new Uint32Array(new BufferConstructor(4*vertexCount))}else{index=new Uint16Array(new BufferConstructor(2*vertexCount))}geo.setIndex(new three.BufferAttribute(index,1));for(let i=0;i<vertexCount;i++){index[i]=i}}}function getRootIndexRanges(geo){if(!geo.groups||!geo.groups.length){return[{offset:0,count:geo.index.count/3}]}const ranges=[];const rangeBoundaries=new Set;for(const group of geo.groups){rangeBoundaries.add(group.start);rangeBoundaries.add(group.start+group.count)}const sortedBoundaries=Array.from(rangeBoundaries.values()).sort((a,b)=>a-b);for(let i=0;i<sortedBoundaries.length-1;i++){const start=sortedBoundaries[i],end=sortedBoundaries[i+1];ranges.push({offset:start/3,count:(end-start)/3})}return ranges}function getBounds(triangleBounds,offset,count,target,centroidTarget=null){let minx=Infinity;let miny=Infinity;let minz=Infinity;let maxx=-Infinity;let maxy=-Infinity;let maxz=-Infinity;let cminx=Infinity;let cminy=Infinity;let cminz=Infinity;let cmaxx=-Infinity;let cmaxy=-Infinity;let cmaxz=-Infinity;const includeCentroid=centroidTarget!==null;for(let i=offset*6,end=(offset+count)*6;i<end;i+=6){const cx=triangleBounds[i+0];const hx=triangleBounds[i+1];const lx=cx-hx;const rx=cx+hx;if(lx<minx)minx=lx;if(rx>maxx)maxx=rx;if(includeCentroid&&cx<cminx)cminx=cx;if(includeCentroid&&cx>cmaxx)cmaxx=cx;const cy=triangleBounds[i+2];const hy=triangleBounds[i+3];const ly=cy-hy;const ry=cy+hy;if(ly<miny)miny=ly;if(ry>maxy)maxy=ry;if(includeCentroid&&cy<cminy)cminy=cy;if(includeCentroid&&cy>cmaxy)cmaxy=cy;const cz=triangleBounds[i+4];const hz=triangleBounds[i+5];const lz=cz-hz;const rz=cz+hz;if(lz<minz)minz=lz;if(rz>maxz)maxz=rz;if(includeCentroid&&cz<cminz)cminz=cz;if(includeCentroid&&cz>cmaxz)cmaxz=cz}target[0]=minx;target[1]=miny;target[2]=minz;target[3]=maxx;target[4]=maxy;target[5]=maxz;if(includeCentroid){centroidTarget[0]=cminx;centroidTarget[1]=cminy;centroidTarget[2]=cminz;centroidTarget[3]=cmaxx;centroidTarget[4]=cmaxy;centroidTarget[5]=cmaxz}}function getCentroidBounds(triangleBounds,offset,count,centroidTarget){let cminx=Infinity;let cminy=Infinity;let cminz=Infinity;let cmaxx=-Infinity;let cmaxy=-Infinity;let cmaxz=-Infinity;for(let i=offset*6,end=(offset+count)*6;i<end;i+=6){const cx=triangleBounds[i+0];if(cx<cminx)cminx=cx;if(cx>cmaxx)cmaxx=cx;const cy=triangleBounds[i+2];if(cy<cminy)cminy=cy;if(cy>cmaxy)cmaxy=cy;const cz=triangleBounds[i+4];if(cz<cminz)cminz=cz;if(cz>cmaxz)cmaxz=cz}centroidTarget[0]=cminx;centroidTarget[1]=cminy;centroidTarget[2]=cminz;centroidTarget[3]=cmaxx;centroidTarget[4]=cmaxy;centroidTarget[5]=cmaxz}function partition(index,triangleBounds,offset,count,split){let left=offset;let right=offset+count-1;const pos=split.pos;const axisOffset=split.axis*2;while(true){while(left<=right&&triangleBounds[left*6+axisOffset]<pos){left++}while(left<=right&&triangleBounds[right*6+axisOffset]>=pos){right--}if(left<right){for(let i=0;i<3;i++){let t0=index[left*3+i];index[left*3+i]=index[right*3+i];index[right*3+i]=t0;let t1=triangleBounds[left*6+i*2+0];triangleBounds[left*6+i*2+0]=triangleBounds[right*6+i*2+0];triangleBounds[right*6+i*2+0]=t1;let t2=triangleBounds[left*6+i*2+1];triangleBounds[left*6+i*2+1]=triangleBounds[right*6+i*2+1];triangleBounds[right*6+i*2+1]=t2}left++;right--}else{return left}}}const BIN_COUNT=32;const binsSort=(a,b)=>a.candidate-b.candidate;const sahBins=new Array(BIN_COUNT).fill().map(()=>{return{count:0,bounds:new Float32Array(6),rightCacheBounds:new Float32Array(6),leftCacheBounds:new Float32Array(6),candidate:0}});const leftBounds=new Float32Array(6);function getOptimalSplit(nodeBoundingData,centroidBoundingData,triangleBounds,offset,count,strategy){let axis=-1;let pos=0;if(strategy===CENTER){axis=getLongestEdgeIndex(centroidBoundingData);if(axis!==-1){pos=(centroidBoundingData[axis]+centroidBoundingData[axis+3])/2}}else if(strategy===AVERAGE){axis=getLongestEdgeIndex(nodeBoundingData);if(axis!==-1){pos=getAverage(triangleBounds,offset,count,axis)}}else if(strategy===SAH){const rootSurfaceArea=computeSurfaceArea(nodeBoundingData);let bestCost=TRIANGLE_INTERSECT_COST*count;const cStart=offset*6;const cEnd=(offset+count)*6;for(let a=0;a<3;a++){const axisLeft=centroidBoundingData[a];const axisRight=centroidBoundingData[a+3];const axisLength=axisRight-axisLeft;const binWidth=axisLength/BIN_COUNT;if(count<BIN_COUNT/4){const truncatedBins=[...sahBins];truncatedBins.length=count;let b=0;for(let c=cStart;c<cEnd;c+=6,b++){const bin=truncatedBins[b];bin.candidate=triangleBounds[c+2*a];bin.count=0;const{bounds,leftCacheBounds,rightCacheBounds}=bin;for(let d=0;d<3;d++){rightCacheBounds[d]=Infinity;rightCacheBounds[d+3]=-Infinity;leftCacheBounds[d]=Infinity;leftCacheBounds[d+3]=-Infinity;bounds[d]=Infinity;bounds[d+3]=-Infinity}expandByTriangleBounds(c,triangleBounds,bounds)}truncatedBins.sort(binsSort);let splitCount=count;for(let bi=0;bi<splitCount;bi++){const bin=truncatedBins[bi];while(bi+1<splitCount&&truncatedBins[bi+1].candidate===bin.candidate){truncatedBins.splice(bi+1,1);splitCount--}}for(let c=cStart;c<cEnd;c+=6){const center=triangleBounds[c+2*a];for(let bi=0;bi<splitCount;bi++){const bin=truncatedBins[bi];if(center>=bin.candidate){expandByTriangleBounds(c,triangleBounds,bin.rightCacheBounds)}else{expandByTriangleBounds(c,triangleBounds,bin.leftCacheBounds);bin.count++}}}for(let bi=0;bi<splitCount;bi++){const bin=truncatedBins[bi];const leftCount=bin.count;const rightCount=count-bin.count;const leftBounds=bin.leftCacheBounds;const rightBounds=bin.rightCacheBounds;let leftProb=0;if(leftCount!==0){leftProb=computeSurfaceArea(leftBounds)/rootSurfaceArea}let rightProb=0;if(rightCount!==0){rightProb=computeSurfaceArea(rightBounds)/rootSurfaceArea}const cost=TRAVERSAL_COST+TRIANGLE_INTERSECT_COST*(leftProb*leftCount+rightProb*rightCount);if(cost<bestCost){axis=a;bestCost=cost;pos=bin.candidate}}}else{for(let i=0;i<BIN_COUNT;i++){const bin=sahBins[i];bin.count=0;bin.candidate=axisLeft+binWidth+i*binWidth;const bounds=bin.bounds;for(let d=0;d<3;d++){bounds[d]=Infinity;bounds[d+3]=-Infinity}}for(let c=cStart;c<cEnd;c+=6){const triCenter=triangleBounds[c+2*a];const relativeCenter=triCenter-axisLeft;let binIndex=~~(relativeCenter/binWidth);if(binIndex>=BIN_COUNT)binIndex=BIN_COUNT-1;const bin=sahBins[binIndex];bin.count++;expandByTriangleBounds(c,triangleBounds,bin.bounds)}const lastBin=sahBins[BIN_COUNT-1];copyBounds(lastBin.bounds,lastBin.rightCacheBounds);for(let i=BIN_COUNT-2;i>=0;i--){const bin=sahBins[i];const nextBin=sahBins[i+1];unionBounds(bin.bounds,nextBin.rightCacheBounds,bin.rightCacheBounds)}let leftCount=0;for(let i=0;i<BIN_COUNT-1;i++){const bin=sahBins[i];const binCount=bin.count;const bounds=bin.bounds;const nextBin=sahBins[i+1];const rightBounds=nextBin.rightCacheBounds;if(binCount!==0){if(leftCount===0){copyBounds(bounds,leftBounds)}else{unionBounds(bounds,leftBounds,leftBounds)}}leftCount+=binCount;let leftProb=0;let rightProb=0;if(leftCount!==0){leftProb=computeSurfaceArea(leftBounds)/rootSurfaceArea}const rightCount=count-leftCount;if(rightCount!==0){rightProb=computeSurfaceArea(rightBounds)/rootSurfaceArea}const cost=TRAVERSAL_COST+TRIANGLE_INTERSECT_COST*(leftProb*leftCount+rightProb*rightCount);if(cost<bestCost){axis=a;bestCost=cost;pos=bin.candidate}}}}}else{console.warn(`MeshBVH: Invalid build strategy value ${strategy} used.`)}return{axis,pos}}function getAverage(triangleBounds,offset,count,axis){let avg=0;for(let i=offset,end=offset+count;i<end;i++){avg+=triangleBounds[i*6+axis*2]}return avg/count}function computeTriangleBounds(geo,fullBounds){const posAttr=geo.attributes.position;const posArr=posAttr.array;const index=geo.index.array;const triCount=index.length/3;const triangleBounds=new Float32Array(triCount*6);const bufferOffset=posAttr.offset||0;let stride=3;if(posAttr.isInterleavedBufferAttribute){stride=posAttr.data.stride}for(let tri=0;tri<triCount;tri++){const tri3=tri*3;const tri6=tri*6;const ai=index[tri3+0]*stride+bufferOffset;const bi=index[tri3+1]*stride+bufferOffset;const ci=index[tri3+2]*stride+bufferOffset;for(let el=0;el<3;el++){const a=posArr[ai+el];const b=posArr[bi+el];const c=posArr[ci+el];let min=a;if(b<min)min=b;if(c<min)min=c;let max=a;if(b>max)max=b;if(c>max)max=c;const halfExtents=(max-min)/2;const el2=el*2;triangleBounds[tri6+el2+0]=min+halfExtents;triangleBounds[tri6+el2+1]=halfExtents+(Math.abs(min)+halfExtents)*FLOAT32_EPSILON;if(min<fullBounds[el])fullBounds[el]=min;if(max>fullBounds[el+3])fullBounds[el+3]=max}}return triangleBounds}function buildTree(geo,options){function triggerProgress(trianglesProcessed){if(onProgress){onProgress(trianglesProcessed/totalTriangles)}}function splitNode(node,offset,count,centroidBoundingData=null,depth=0){if(!reachedMaxDepth&&depth>=maxDepth){reachedMaxDepth=true;if(verbose){console.warn(`MeshBVH: Max depth of ${maxDepth} reached when generating BVH. Consider increasing maxDepth.`);console.warn(geo)}}if(count<=maxLeafTris||depth>=maxDepth){triggerProgress(offset);node.offset=offset;node.count=count;return node}const split=getOptimalSplit(node.boundingData,centroidBoundingData,triangleBounds,offset,count,strategy);if(split.axis===-1){triggerProgress(offset);node.offset=offset;node.count=count;return node}const splitOffset=partition(indexArray,triangleBounds,offset,count,split);if(splitOffset===offset||splitOffset===offset+count){triggerProgress(offset);node.offset=offset;node.count=count}else{node.splitAxis=split.axis;const left=new MeshBVHNode;const lstart=offset;const lcount=splitOffset-offset;node.left=left;left.boundingData=new Float32Array(6);getBounds(triangleBounds,lstart,lcount,left.boundingData,cacheCentroidBoundingData);splitNode(left,lstart,lcount,cacheCentroidBoundingData,depth+1);const right=new MeshBVHNode;const rstart=splitOffset;const rcount=count-lcount;node.right=right;right.boundingData=new Float32Array(6);getBounds(triangleBounds,rstart,rcount,right.boundingData,cacheCentroidBoundingData);splitNode(right,rstart,rcount,cacheCentroidBoundingData,depth+1)}return node}ensureIndex(geo,options);const fullBounds=new Float32Array(6);const cacheCentroidBoundingData=new Float32Array(6);const triangleBounds=computeTriangleBounds(geo,fullBounds);const indexArray=geo.index.array;const maxDepth=options.maxDepth;const verbose=options.verbose;const maxLeafTris=options.maxLeafTris;const strategy=options.strategy;const onProgress=options.onProgress;const totalTriangles=geo.index.count/3;let reachedMaxDepth=false;const roots=[];const ranges=getRootIndexRanges(geo);if(ranges.length===1){const range=ranges[0];const root=new MeshBVHNode;root.boundingData=fullBounds;getCentroidBounds(triangleBounds,range.offset,range.count,cacheCentroidBoundingData);splitNode(root,range.offset,range.count,cacheCentroidBoundingData);roots.push(root)}else{for(let range of ranges){const root=new MeshBVHNode;root.boundingData=new Float32Array(6);getBounds(triangleBounds,range.offset,range.count,root.boundingData,cacheCentroidBoundingData);splitNode(root,range.offset,range.count,cacheCentroidBoundingData);roots.push(root)}}return roots}function buildPackedTree(geo,options){const roots=buildTree(geo,options);let float32Array;let uint32Array;let uint16Array;const packedRoots=[];const BufferConstructor=options.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;for(let i=0;i<roots.length;i++){const root=roots[i];let nodeCount=countNodes(root);const buffer=new BufferConstructor(BYTES_PER_NODE*nodeCount);float32Array=new Float32Array(buffer);uint32Array=new Uint32Array(buffer);uint16Array=new Uint16Array(buffer);populateBuffer(0,root);packedRoots.push(buffer)}return packedRoots;function countNodes(node){if(node.count){return 1}else{return 1+countNodes(node.left)+countNodes(node.right)}}function populateBuffer(byteOffset,node){const stride4Offset=byteOffset/4;const stride2Offset=byteOffset/2;const isLeaf=!!node.count;const boundingData=node.boundingData;for(let i=0;i<6;i++){float32Array[stride4Offset+i]=boundingData[i]}if(isLeaf){const offset=node.offset;const count=node.count;uint32Array[stride4Offset+6]=offset;uint16Array[stride2Offset+14]=count;uint16Array[stride2Offset+15]=IS_LEAFNODE_FLAG;return byteOffset+BYTES_PER_NODE}else{const left=node.left;const right=node.right;const splitAxis=node.splitAxis;let nextUnusedPointer;nextUnusedPointer=populateBuffer(byteOffset+BYTES_PER_NODE,left);if(nextUnusedPointer/4>Math.pow(2,32)){throw new Error("MeshBVH: Cannot store child pointer greater than 32 bits.")}uint32Array[stride4Offset+6]=nextUnusedPointer/4;nextUnusedPointer=populateBuffer(nextUnusedPointer,right);uint32Array[stride4Offset+7]=splitAxis;return nextUnusedPointer}}}class SeparatingAxisBounds{constructor(){this.min=Infinity;this.max=-Infinity}setFromPointsField(points,field){let min=Infinity;let max=-Infinity;for(let i=0,l=points.length;i<l;i++){const p=points[i];const val=p[field];min=val<min?val:min;max=val>max?val:max}this.min=min;this.max=max}setFromPoints(axis,points){let min=Infinity;let max=-Infinity;for(let i=0,l=points.length;i<l;i++){const p=points[i];const val=axis.dot(p);min=val<min?val:min;max=val>max?val:max}this.min=min;this.max=max}isSeparated(other){return this.min>other.max||other.min>this.max}}SeparatingAxisBounds.prototype.setFromBox=function(){const p=new three.Vector3;return function setFromBox(axis,box){const boxMin=box.min;const boxMax=box.max;let min=Infinity;let max=-Infinity;for(let x=0;x<=1;x++){for(let y=0;y<=1;y++){for(let z=0;z<=1;z++){p.x=boxMin.x*x+boxMax.x*(1-x);p.y=boxMin.y*y+boxMax.y*(1-y);p.z=boxMin.z*z+boxMax.z*(1-z);const val=axis.dot(p);min=Math.min(val,min);max=Math.max(val,max)}}}this.min=min;this.max=max}}();const areIntersecting=function(){const cacheSatBounds=new SeparatingAxisBounds;return function areIntersecting(shape1,shape2){const points1=shape1.points;const satAxes1=shape1.satAxes;const satBounds1=shape1.satBounds;const points2=shape2.points;const satAxes2=shape2.satAxes;const satBounds2=shape2.satBounds;for(let i=0;i<3;i++){const sb=satBounds1[i];const sa=satAxes1[i];cacheSatBounds.setFromPoints(sa,points2);if(sb.isSeparated(cacheSatBounds))return false}for(let i=0;i<3;i++){const sb=satBounds2[i];const sa=satAxes2[i];cacheSatBounds.setFromPoints(sa,points1);if(sb.isSeparated(cacheSatBounds))return false}}}();const closestPointLineToLine=function(){const dir1=new three.Vector3;const dir2=new three.Vector3;const v02=new three.Vector3;return function closestPointLineToLine(l1,l2,result){const v0=l1.start;const v10=dir1;const v2=l2.start;const v32=dir2;v02.subVectors(v0,v2);dir1.subVectors(l1.end,l2.start);dir2.subVectors(l2.end,l2.start);const d0232=v02.dot(v32);const d3210=v32.dot(v10);const d3232=v32.dot(v32);const d0210=v02.dot(v10);const d1010=v10.dot(v10);const denom=d1010*d3232-d3210*d3210;let d,d2;if(denom!==0){d=(d0232*d3210-d0210*d3232)/denom}else{d=0}d2=(d0232+d*d3210)/d3232;result.x=d;result.y=d2}}();const closestPointsSegmentToSegment=function(){const paramResult=new three.Vector2;const temp1=new three.Vector3;const temp2=new three.Vector3;return function closestPointsSegmentToSegment(l1,l2,target1,target2){closestPointLineToLine(l1,l2,paramResult);let d=paramResult.x;let d2=paramResult.y;if(d>=0&&d<=1&&d2>=0&&d2<=1){l1.at(d,target1);l2.at(d2,target2);return}else if(d>=0&&d<=1){if(d2<0){l2.at(0,target2)}else{l2.at(1,target2)}l1.closestPointToPoint(target2,true,target1);return}else if(d2>=0&&d2<=1){if(d<0){l1.at(0,target1)}else{l1.at(1,target1)}l2.closestPointToPoint(target1,true,target2);return}else{let p;if(d<0){p=l1.start}else{p=l1.end}let p2;if(d2<0){p2=l2.start}else{p2=l2.end}const closestPoint=temp1;const closestPoint2=temp2;l1.closestPointToPoint(p2,true,temp1);l2.closestPointToPoint(p,true,temp2);if(closestPoint.distanceToSquared(p2)<=closestPoint2.distanceToSquared(p)){target1.copy(closestPoint);target2.copy(p2);return}else{target1.copy(p);target2.copy(closestPoint2);return}}}}();const sphereIntersectTriangle=function(){const closestPointTemp=new three.Vector3;const projectedPointTemp=new three.Vector3;const planeTemp=new three.Plane;const lineTemp=new three.Line3;return function sphereIntersectTriangle(sphere,triangle){const{radius,center}=sphere;const{a,b,c}=triangle;lineTemp.start=a;lineTemp.end=b;const closestPoint1=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint1.distanceTo(center)<=radius)return true;lineTemp.start=a;lineTemp.end=c;const closestPoint2=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint2.distanceTo(center)<=radius)return true;lineTemp.start=b;lineTemp.end=c;const closestPoint3=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint3.distanceTo(center)<=radius)return true;const plane=triangle.getPlane(planeTemp);const dp=Math.abs(plane.distanceToPoint(center));if(dp<=radius){const pp=plane.projectPoint(center,projectedPointTemp);const cp=triangle.containsPoint(pp);if(cp)return true}return false}}();class SeparatingAxisTriangle extends three.Triangle{constructor(...args){super(...args);this.isSeparatingAxisTriangle=true;this.satAxes=new Array(4).fill().map(()=>new three.Vector3);this.satBounds=new Array(4).fill().map(()=>new SeparatingAxisBounds);this.points=[this.a,this.b,this.c];this.sphere=new three.Sphere;this.plane=new three.Plane;this.needsUpdate=false}intersectsSphere(sphere){return sphereIntersectTriangle(sphere,this)}update(){const a=this.a;const b=this.b;const c=this.c;const points=this.points;const satAxes=this.satAxes;const satBounds=this.satBounds;const axis0=satAxes[0];const sab0=satBounds[0];this.getNormal(axis0);sab0.setFromPoints(axis0,points);const axis1=satAxes[1];const sab1=satBounds[1];axis1.subVectors(a,b);sab1.setFromPoints(axis1,points);const axis2=satAxes[2];const sab2=satBounds[2];axis2.subVectors(b,c);sab2.setFromPoints(axis2,points);const axis3=satAxes[3];const sab3=satBounds[3];axis3.subVectors(c,a);sab3.setFromPoints(axis3,points);this.sphere.setFromPoints(this.points);this.plane.setFromNormalAndCoplanarPoint(axis0,a);this.needsUpdate=false}}SeparatingAxisTriangle.prototype.closestPointToSegment=function(){const point1=new three.Vector3;const point2=new three.Vector3;const edge=new three.Line3;return function distanceToSegment(segment,target1=null,target2=null){const{start,end}=segment;const points=this.points;let distSq;let closestDistanceSq=Infinity;for(let i=0;i<3;i++){const nexti=(i+1)%3;edge.start.copy(points[i]);edge.end.copy(points[nexti]);closestPointsSegmentToSegment(edge,segment,point1,point2);distSq=point1.distanceToSquared(point2);if(distSq<closestDistanceSq){closestDistanceSq=distSq;if(target1)target1.copy(point1);if(target2)target2.copy(point2)}}this.closestPointToPoint(start,point1);distSq=start.distanceToSquared(point1);if(distSq<closestDistanceSq){closestDistanceSq=distSq;if(target1)target1.copy(point1);if(target2)target2.copy(start)}this.closestPointToPoint(end,point1);distSq=end.distanceToSquared(point1);if(distSq<closestDistanceSq){closestDistanceSq=distSq;if(target1)target1.copy(point1);if(target2)target2.copy(end)}return Math.sqrt(closestDistanceSq)}}();SeparatingAxisTriangle.prototype.intersectsTriangle=function(){const saTri2=new SeparatingAxisTriangle;const arr1=new Array(3);const arr2=new Array(3);const cachedSatBounds=new SeparatingAxisBounds;const cachedSatBounds2=new SeparatingAxisBounds;const cachedAxis=new three.Vector3;const dir1=new three.Vector3;const dir2=new three.Vector3;const tempDir=new three.Vector3;const edge=new three.Line3;const edge1=new three.Line3;const edge2=new three.Line3;return function intersectsTriangle(other,target=null){if(this.needsUpdate){this.update()}if(!other.isSeparatingAxisTriangle){saTri2.copy(other);saTri2.update();other=saTri2}else if(other.needsUpdate){other.update()}const satBounds1=this.satBounds;const satAxes1=this.satAxes;arr2[0]=other.a;arr2[1]=other.b;arr2[2]=other.c;for(let i=0;i<4;i++){const sb=satBounds1[i];const sa=satAxes1[i];cachedSatBounds.setFromPoints(sa,arr2);if(sb.isSeparated(cachedSatBounds))return false}const satBounds2=other.satBounds;const satAxes2=other.satAxes;arr1[0]=this.a;arr1[1]=this.b;arr1[2]=this.c;for(let i=0;i<4;i++){const sb=satBounds2[i];const sa=satAxes2[i];cachedSatBounds.setFromPoints(sa,arr1);if(sb.isSeparated(cachedSatBounds))return false}for(let i=0;i<4;i++){const sa1=satAxes1[i];for(let i2=0;i2<4;i2++){const sa2=satAxes2[i2];cachedAxis.crossVectors(sa1,sa2);cachedSatBounds.setFromPoints(cachedAxis,arr1);cachedSatBounds2.setFromPoints(cachedAxis,arr2);if(cachedSatBounds.isSeparated(cachedSatBounds2))return false}}if(target){const plane1=this.plane;const plane2=other.plane;if(Math.abs(plane1.normal.dot(plane2.normal))>1-1e-10){console.warn("SeparatingAxisTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0.");target.start.set(0,0,0);target.end.set(0,0,0)}else{const points1=this.points;let found1=false;for(let i=0;i<3;i++){const p1=points1[i];const p2=points1[(i+1)%3];edge.start.copy(p1);edge.end.copy(p2);if(plane2.intersectLine(edge,found1?edge1.start:edge1.end)){if(found1){break}found1=true}}const points2=other.points;let found2=false;for(let i=0;i<3;i++){const p1=points2[i];const p2=points2[(i+1)%3];edge.start.copy(p1);edge.end.copy(p2);if(plane1.intersectLine(edge,found2?edge2.start:edge2.end)){if(found2){break}found2=true}}edge1.delta(dir1);edge2.delta(dir2);if(dir1.dot(dir2)<0){let tmp=edge2.start;edge2.start=edge2.end;edge2.end=tmp}tempDir.subVectors(edge1.start,edge2.start);if(tempDir.dot(dir1)>0){target.start.copy(edge1.start)}else{target.start.copy(edge2.start)}tempDir.subVectors(edge1.end,edge2.end);if(tempDir.dot(dir1)<0){target.end.copy(edge1.end)}else{target.end.copy(edge2.end)}}}return true}}();SeparatingAxisTriangle.prototype.distanceToPoint=function(){const target=new three.Vector3;return function distanceToPoint(point){this.closestPointToPoint(point,target);return point.distanceTo(target)}}();SeparatingAxisTriangle.prototype.distanceToTriangle=function(){const point=new three.Vector3;const point2=new three.Vector3;const cornerFields=["a","b","c"];const line1=new three.Line3;const line2=new three.Line3;return function distanceToTriangle(other,target1=null,target2=null){const lineTarget=target1||target2?line1:null;if(this.intersectsTriangle(other,lineTarget)){if(target1||target2){if(target1)lineTarget.getCenter(target1);if(target2)lineTarget.getCenter(target2)}return 0}let closestDistanceSq=Infinity;for(let i=0;i<3;i++){let dist;const field=cornerFields[i];const otherVec=other[field];this.closestPointToPoint(otherVec,point);dist=otherVec.distanceToSquared(point);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(point);if(target2)target2.copy(otherVec)}const thisVec=this[field];other.closestPointToPoint(thisVec,point);dist=thisVec.distanceToSquared(point);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(thisVec);if(target2)target2.copy(point)}}for(let i=0;i<3;i++){const f11=cornerFields[i];const f12=cornerFields[(i+1)%3];line1.set(this[f11],this[f12]);for(let i2=0;i2<3;i2++){const f21=cornerFields[i2];const f22=cornerFields[(i2+1)%3];line2.set(other[f21],other[f22]);closestPointsSegmentToSegment(line1,line2,point,point2);const dist=point.distanceToSquared(point2);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(point);if(target2)target2.copy(point2)}}}return Math.sqrt(closestDistanceSq)}}();class OrientedBox extends three.Box3{constructor(...args){super(...args);this.isOrientedBox=true;this.matrix=new three.Matrix4;this.invMatrix=new three.Matrix4;this.points=new Array(8).fill().map(()=>new three.Vector3);this.satAxes=new Array(3).fill().map(()=>new three.Vector3);this.satBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds);this.alignedSatBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds);this.needsUpdate=false}set(min,max,matrix){super.set(min,max);this.matrix=matrix;this.needsUpdate=true}copy(other){super.copy(other);this.matrix.copy(other.matrix);this.needsUpdate=true}}OrientedBox.prototype.update=function(){return function update(){const matrix=this.matrix;const min=this.min;const max=this.max;const points=this.points;for(let x=0;x<=1;x++){for(let y=0;y<=1;y++){for(let z=0;z<=1;z++){const i=(1<<0)*x|(1<<1)*y|(1<<2)*z;const v=points[i];v.x=x?max.x:min.x;v.y=y?max.y:min.y;v.z=z?max.z:min.z;v.applyMatrix4(matrix)}}}const satBounds=this.satBounds;const satAxes=this.satAxes;const minVec=points[0];for(let i=0;i<3;i++){const axis=satAxes[i];const sb=satBounds[i];const index=1<<i;const pi=points[index];axis.subVectors(minVec,pi);sb.setFromPoints(axis,points)}const alignedSatBounds=this.alignedSatBounds;alignedSatBounds[0].setFromPointsField(points,"x");alignedSatBounds[1].setFromPointsField(points,"y");alignedSatBounds[2].setFromPointsField(points,"z");this.invMatrix.copy(this.matrix).invert();this.needsUpdate=false}}();OrientedBox.prototype.intersectsBox=function(){const aabbBounds=new SeparatingAxisBounds;return function intersectsBox(box){if(this.needsUpdate){this.update()}const min=box.min;const max=box.max;const satBounds=this.satBounds;const satAxes=this.satAxes;const alignedSatBounds=this.alignedSatBounds;aabbBounds.min=min.x;aabbBounds.max=max.x;if(alignedSatBounds[0].isSeparated(aabbBounds))return false;aabbBounds.min=min.y;aabbBounds.max=max.y;if(alignedSatBounds[1].isSeparated(aabbBounds))return false;aabbBounds.min=min.z;aabbBounds.max=max.z;if(alignedSatBounds[2].isSeparated(aabbBounds))return false;for(let i=0;i<3;i++){const axis=satAxes[i];const sb=satBounds[i];aabbBounds.setFromBox(axis,box);if(sb.isSeparated(aabbBounds))return false}return true}}();OrientedBox.prototype.intersectsTriangle=function(){const saTri=new SeparatingAxisTriangle;const pointsArr=new Array(3);const cachedSatBounds=new SeparatingAxisBounds;const cachedSatBounds2=new SeparatingAxisBounds;const cachedAxis=new three.Vector3;return function intersectsTriangle(triangle){if(this.needsUpdate){this.update()}if(!triangle.isSeparatingAxisTriangle){saTri.copy(triangle);saTri.update();triangle=saTri}else if(triangle.needsUpdate){triangle.update()}const satBounds=this.satBounds;const satAxes=this.satAxes;pointsArr[0]=triangle.a;pointsArr[1]=triangle.b;pointsArr[2]=triangle.c;for(let i=0;i<3;i++){const sb=satBounds[i];const sa=satAxes[i];cachedSatBounds.setFromPoints(sa,pointsArr);if(sb.isSeparated(cachedSatBounds))return false}const triSatBounds=triangle.satBounds;const triSatAxes=triangle.satAxes;const points=this.points;for(let i=0;i<3;i++){const sb=triSatBounds[i];const sa=triSatAxes[i];cachedSatBounds.setFromPoints(sa,points);if(sb.isSeparated(cachedSatBounds))return false}for(let i=0;i<3;i++){const sa1=satAxes[i];for(let i2=0;i2<4;i2++){const sa2=triSatAxes[i2];cachedAxis.crossVectors(sa1,sa2);cachedSatBounds.setFromPoints(cachedAxis,pointsArr);cachedSatBounds2.setFromPoints(cachedAxis,points);if(cachedSatBounds.isSeparated(cachedSatBounds2))return false}}return true}}();OrientedBox.prototype.closestPointToPoint=function(){return function closestPointToPoint(point,target1){if(this.needsUpdate){this.update()}target1.copy(point).applyMatrix4(this.invMatrix).clamp(this.min,this.max).applyMatrix4(this.matrix);return target1}}();OrientedBox.prototype.distanceToPoint=function(){const target=new three.Vector3;return function distanceToPoint(point){this.closestPointToPoint(point,target);return point.distanceTo(target)}}();OrientedBox.prototype.distanceToBox=function(){const xyzFields=["x","y","z"];const segments1=new Array(12).fill().map(()=>new three.Line3);const segments2=new Array(12).fill().map(()=>new three.Line3);const point1=new three.Vector3;const point2=new three.Vector3;return function distanceToBox(box,threshold=0,target1=null,target2=null){if(this.needsUpdate){this.update()}if(this.intersectsBox(box)){if(target1||target2){box.getCenter(point2);this.closestPointToPoint(point2,point1);box.closestPointToPoint(point1,point2);if(target1)target1.copy(point1);if(target2)target2.copy(point2)}return 0}const threshold2=threshold*threshold;const min=box.min;const max=box.max;const points=this.points;let closestDistanceSq=Infinity;for(let i=0;i<8;i++){const p=points[i];point2.copy(p).clamp(min,max);const dist=p.distanceToSquared(point2);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(p);if(target2)target2.copy(point2);if(dist<threshold2)return Math.sqrt(dist)}}let count=0;for(let i=0;i<3;i++){for(let i1=0;i1<=1;i1++){for(let i2=0;i2<=1;i2++){const nextIndex=(i+1)%3;const nextIndex2=(i+2)%3;const index=i1<<nextIndex|i2<<nextIndex2;const index2=1<<i|i1<<nextIndex|i2<<nextIndex2;const p1=points[index];const p2=points[index2];const line1=segments1[count];line1.set(p1,p2);const f1=xyzFields[i];const f2=xyzFields[nextIndex];const f3=xyzFields[nextIndex2];const line2=segments2[count];const start=line2.start;const end=line2.end;start[f1]=min[f1];start[f2]=i1?min[f2]:max[f2];start[f3]=i2?min[f3]:max[f2];end[f1]=max[f1];end[f2]=i1?min[f2]:max[f2];end[f3]=i2?min[f3]:max[f2];count++}}}for(let x=0;x<=1;x++){for(let y=0;y<=1;y++){for(let z=0;z<=1;z++){point2.x=x?max.x:min.x;point2.y=y?max.y:min.y;point2.z=z?max.z:min.z;this.closestPointToPoint(point2,point1);const dist=point2.distanceToSquared(point1);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(point1);if(target2)target2.copy(point2);if(dist<threshold2)return Math.sqrt(dist)}}}}for(let i=0;i<12;i++){const l1=segments1[i];for(let i2=0;i2<12;i2++){const l2=segments2[i2];closestPointsSegmentToSegment(l1,l2,point1,point2);const dist=point1.distanceToSquared(point2);if(dist<closestDistanceSq){closestDistanceSq=dist;if(target1)target1.copy(point1);if(target2)target2.copy(point2);if(dist<threshold2)return Math.sqrt(dist)}}}return Math.sqrt(closestDistanceSq)}}();const vA=new three.Vector3;const vB=new three.Vector3;const vC=new three.Vector3;const uvA=new three.Vector2;const uvB=new three.Vector2;const uvC=new three.Vector2;const intersectionPoint=new three.Vector3;function checkIntersection(ray,pA,pB,pC,point,side){let intersect;if(side===three.BackSide){intersect=ray.intersectTriangle(pC,pB,pA,true,point)}else{intersect=ray.intersectTriangle(pA,pB,pC,side!==three.DoubleSide,point)}if(intersect===null)return null;const distance=ray.origin.distanceTo(point);return{distance:distance,point:point.clone()}}function checkBufferGeometryIntersection(ray,position,uv,a,b,c,side){vA.fromBufferAttribute(position,a);vB.fromBufferAttribute(position,b);vC.fromBufferAttribute(position,c);const intersection=checkIntersection(ray,vA,vB,vC,intersectionPoint,side);if(intersection){if(uv){uvA.fromBufferAttribute(uv,a);uvB.fromBufferAttribute(uv,b);uvC.fromBufferAttribute(uv,c);intersection.uv=three.Triangle.getUV(intersectionPoint,vA,vB,vC,uvA,uvB,uvC,new three.Vector2)}const face={a:a,b:b,c:c,normal:new three.Vector3,materialIndex:0};three.Triangle.getNormal(vA,vB,vC,face.normal);intersection.face=face;intersection.faceIndex=a}return intersection}function intersectTri(geo,side,ray,tri,intersections){const triOffset=tri*3;const a=geo.index.getX(triOffset);const b=geo.index.getX(triOffset+1);const c=geo.index.getX(triOffset+2);const intersection=checkBufferGeometryIntersection(ray,geo.attributes.position,geo.attributes.uv,a,b,c,side);if(intersection){intersection.faceIndex=tri;if(intersections)intersections.push(intersection);return intersection}return null}function intersectTris(geo,side,ray,offset,count,intersections){for(let i=offset,end=offset+count;i<end;i++){intersectTri(geo,side,ray,i,intersections)}}function intersectClosestTri(geo,side,ray,offset,count){let dist=Infinity;let res=null;for(let i=offset,end=offset+count;i<end;i++){const intersection=intersectTri(geo,side,ray,i);if(intersection&&intersection.distance<dist){res=intersection;dist=intersection.distance}}return res}function convertRaycastIntersect(hit,object,raycaster){if(hit===null){return null}hit.point.applyMatrix4(object.matrixWorld);hit.distance=hit.point.distanceTo(raycaster.ray.origin);hit.object=object;if(hit.distance<raycaster.near||hit.distance>raycaster.far){return null}else{return hit}}function setTriangle(tri,i,index,pos){const ta=tri.a;const tb=tri.b;const tc=tri.c;let i0=i;let i1=i+1;let i2=i+2;if(index){i0=index.getX(i);i1=index.getX(i+1);i2=index.getX(i+2)}ta.x=pos.getX(i0);ta.y=pos.getY(i0);ta.z=pos.getZ(i0);tb.x=pos.getX(i1);tb.y=pos.getY(i1);tb.z=pos.getZ(i1);tc.x=pos.getX(i2);tc.y=pos.getY(i2);tc.z=pos.getZ(i2)}function iterateOverTriangles(offset,count,geometry,intersectsTriangleFunc,contained,depth,triangle){const index=geometry.index;const pos=geometry.attributes.position;for(let i=offset,l=count+offset;i<l;i++){setTriangle(triangle,i*3,index,pos);triangle.needsUpdate=true;if(intersectsTriangleFunc(triangle,i,contained,depth)){return true}}return false}const tempV1=new three.Vector3;const tempV2=new three.Vector3;const tempV3=new three.Vector3;const tempUV1=new three.Vector2;const tempUV2=new three.Vector2;const tempUV3=new three.Vector2;function getTriangleHitPointInfo(point,geometry,triangleIndex,target){const indices=geometry.getIndex().array;const positions=geometry.getAttribute("position");const uvs=geometry.getAttribute("uv");const a=indices[triangleIndex*3];const b=indices[triangleIndex*3+1];const c=indices[triangleIndex*3+2];tempV1.fromBufferAttribute(positions,a);tempV2.fromBufferAttribute(positions,b);tempV3.fromBufferAttribute(positions,c);let materialIndex=0;const groups=geometry.groups;const firstVertexIndex=triangleIndex*3;for(let i=0,l=groups.length;i<l;i++){const group=groups[i];const{start,count}=group;if(firstVertexIndex>=start&&firstVertexIndex<start+count){materialIndex=group.materialIndex;break}}let uv=null;if(uvs){tempUV1.fromBufferAttribute(uvs,a);tempUV2.fromBufferAttribute(uvs,b);tempUV3.fromBufferAttribute(uvs,c);if(target&&target.uv)uv=target.uv;else uv=new three.Vector2;three.Triangle.getUV(point,tempV1,tempV2,tempV3,tempUV1,tempUV2,tempUV3,uv)}if(target){if(!target.face)target.face={};target.face.a=a;target.face.b=b;target.face.c=c;target.face.materialIndex=materialIndex;if(!target.face.normal)target.face.normal=new three.Vector3;three.Triangle.getNormal(tempV1,tempV2,tempV3,target.face.normal);if(!target.uv)target.uv=new three.Vector2;target.uv.copy(uv);return target}else{return{face:{a:a,b:b,c:c,materialIndex:materialIndex,normal:three.Triangle.getNormal(tempV1,tempV2,tempV3,new three.Vector3)},uv:uv}}}class PrimitivePool{constructor(getNewPrimitive){this._getNewPrimitive=getNewPrimitive;this._primitives=[]}getPrimitive(){const primitives=this._primitives;if(primitives.length===0){return this._getNewPrimitive()}else{return primitives.pop()}}releasePrimitive(primitive){this._primitives.push(primitive)}}function IS_LEAF(n16,uint16Array){return uint16Array[n16+15]===65535}function OFFSET(n32,uint32Array){return uint32Array[n32+6]}function COUNT(n16,uint16Array){return uint16Array[n16+14]}function LEFT_NODE(n32){return n32+8}function RIGHT_NODE(n32,uint32Array){return uint32Array[n32+6]}function SPLIT_AXIS(n32,uint32Array){return uint32Array[n32+7]}function BOUNDING_DATA_INDEX(n32){return n32}const boundingBox$1=new three.Box3;const boxIntersection=new three.Vector3;const xyzFields=["x","y","z"];function raycast(nodeIndex32,geometry,side,ray,intersects){let nodeIndex16=nodeIndex32*2,float32Array=_float32Array,uint16Array=_uint16Array,uint32Array=_uint32Array;const isLeaf=IS_LEAF(nodeIndex16,uint16Array);if(isLeaf){const offset=OFFSET(nodeIndex32,uint32Array);const count=COUNT(nodeIndex16,uint16Array);intersectTris(geometry,side,ray,offset,count,intersects)}else{const leftIndex=LEFT_NODE(nodeIndex32);if(intersectRay(leftIndex,float32Array,ray,boxIntersection)){raycast(leftIndex,geometry,side,ray,intersects)}const rightIndex=RIGHT_NODE(nodeIndex32,uint32Array);if(intersectRay(rightIndex,float32Array,ray,boxIntersection)){raycast(rightIndex,geometry,side,ray,intersects)}}}function raycastFirst(nodeIndex32,geometry,side,ray){let nodeIndex16=nodeIndex32*2,float32Array=_float32Array,uint16Array=_uint16Array,uint32Array=_uint32Array;const isLeaf=IS_LEAF(nodeIndex16,uint16Array);if(isLeaf){const offset=OFFSET(nodeIndex32,uint32Array);const count=COUNT(nodeIndex16,uint16Array);return intersectClosestTri(geometry,side,ray,offset,count)}else{const splitAxis=SPLIT_AXIS(nodeIndex32,uint32Array);const xyzAxis=xyzFields[splitAxis];const rayDir=ray.direction[xyzAxis];const leftToRight=rayDir>=0;let c1,c2;if(leftToRight){c1=LEFT_NODE(nodeIndex32);c2=RIGHT_NODE(nodeIndex32,uint32Array)}else{c1=RIGHT_NODE(nodeIndex32,uint32Array);c2=LEFT_NODE(nodeIndex32)}const c1Intersection=intersectRay(c1,float32Array,ray,boxIntersection);const c1Result=c1Intersection?raycastFirst(c1,geometry,side,ray):null;if(c1Result){const point=c1Result.point[xyzAxis];const isOutside=leftToRight?point<=float32Array[c2+splitAxis]:point>=float32Array[c2+splitAxis+3];if(isOutside){return c1Result}}const c2Intersection=intersectRay(c2,float32Array,ray,boxIntersection);const c2Result=c2Intersection?raycastFirst(c2,geometry,side,ray):null;if(c1Result&&c2Result){return c1Result.distance<=c2Result.distance?c1Result:c2Result}else{return c1Result||c2Result||null}}}const shapecast=function(){let _box1,_box2;const boxStack=[];const boxPool=new PrimitivePool(()=>new three.Box3);return function shapecast(...args){_box1=boxPool.getPrimitive();_box2=boxPool.getPrimitive();boxStack.push(_box1,_box2);const result=shapecastTraverse(...args);boxPool.releasePrimitive(_box1);boxPool.releasePrimitive(_box2);boxStack.pop();boxStack.pop();const length=boxStack.length;if(length>0){_box2=boxStack[length-1];_box1=boxStack[length-2]}return result};function shapecastTraverse(nodeIndex32,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc=null,nodeIndexByteOffset=0,depth=0){function getLeftOffset(nodeIndex32){let nodeIndex16=nodeIndex32*2,uint16Array=_uint16Array,uint32Array=_uint32Array;while(!IS_LEAF(nodeIndex16,uint16Array)){nodeIndex32=LEFT_NODE(nodeIndex32);nodeIndex16=nodeIndex32*2}return OFFSET(nodeIndex32,uint32Array)}function getRightEndOffset(nodeIndex32){let nodeIndex16=nodeIndex32*2,uint16Array=_uint16Array,uint32Array=_uint32Array;while(!IS_LEAF(nodeIndex16,uint16Array)){nodeIndex32=RIGHT_NODE(nodeIndex32,uint32Array);nodeIndex16=nodeIndex32*2}return OFFSET(nodeIndex32,uint32Array)+COUNT(nodeIndex16,uint16Array)}let nodeIndex16=nodeIndex32*2,float32Array=_float32Array,uint16Array=_uint16Array,uint32Array=_uint32Array;const isLeaf=IS_LEAF(nodeIndex16,uint16Array);if(isLeaf){const offset=OFFSET(nodeIndex32,uint32Array);const count=COUNT(nodeIndex16,uint16Array);arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,_box1);return intersectsRangeFunc(offset,count,false,depth,nodeIndexByteOffset+nodeIndex32,_box1)}else{const left=LEFT_NODE(nodeIndex32);const right=RIGHT_NODE(nodeIndex32,uint32Array);let c1=left;let c2=right;let score1,score2;let box1,box2;if(nodeScoreFunc){box1=_box1;box2=_box2;arrayToBox(BOUNDING_DATA_INDEX(c1),float32Array,box1);arrayToBox(BOUNDING_DATA_INDEX(c2),float32Array,box2);score1=nodeScoreFunc(box1);score2=nodeScoreFunc(box2);if(score2<score1){c1=right;c2=left;const temp=score1;score1=score2;score2=temp;box1=box2}}if(!box1){box1=_box1;arrayToBox(BOUNDING_DATA_INDEX(c1),float32Array,box1)}const isC1Leaf=IS_LEAF(c1*2,uint16Array);const c1Intersection=intersectsBoundsFunc(box1,isC1Leaf,score1,depth+1,nodeIndexByteOffset+c1);let c1StopTraversal;if(c1Intersection===CONTAINED){const offset=getLeftOffset(c1);const end=getRightEndOffset(c1);const count=end-offset;c1StopTraversal=intersectsRangeFunc(offset,count,true,depth+1,nodeIndexByteOffset+c1,box1)}else{c1StopTraversal=c1Intersection&&shapecastTraverse(c1,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc,nodeIndexByteOffset,depth+1)}if(c1StopTraversal)return true;box2=_box2;arrayToBox(BOUNDING_DATA_INDEX(c2),float32Array,box2);const isC2Leaf=IS_LEAF(c2*2,uint16Array);const c2Intersection=intersectsBoundsFunc(box2,isC2Leaf,score2,depth+1,nodeIndexByteOffset+c2);let c2StopTraversal;if(c2Intersection===CONTAINED){const offset=getLeftOffset(c2);const end=getRightEndOffset(c2);const count=end-offset;c2StopTraversal=intersectsRangeFunc(offset,count,true,depth+1,nodeIndexByteOffset+c2,box2)}else{c2StopTraversal=c2Intersection&&shapecastTraverse(c2,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc,nodeIndexByteOffset,depth+1)}if(c2StopTraversal)return true;return false}}}();const intersectsGeometry=function(){const triangle=new SeparatingAxisTriangle;const triangle2=new SeparatingAxisTriangle;const invertedMat=new three.Matrix4;const obb=new OrientedBox;const obb2=new OrientedBox;return function intersectsGeometry(nodeIndex32,geometry,otherGeometry,geometryToBvh,cachedObb=null){let nodeIndex16=nodeIndex32*2,float32Array=_float32Array,uint16Array=_uint16Array,uint32Array=_uint32Array;if(cachedObb===null){if(!otherGeometry.boundingBox){otherGeometry.computeBoundingBox()}obb.set(otherGeometry.boundingBox.min,otherGeometry.boundingBox.max,geometryToBvh);cachedObb=obb}const isLeaf=IS_LEAF(nodeIndex16,uint16Array);if(isLeaf){const thisGeometry=geometry;const thisIndex=thisGeometry.index;const thisPos=thisGeometry.attributes.position;const index=otherGeometry.index;const pos=otherGeometry.attributes.position;const offset=OFFSET(nodeIndex32,uint32Array);const count=COUNT(nodeIndex16,uint16Array);invertedMat.copy(geometryToBvh).invert();if(otherGeometry.boundsTree){arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,obb2);obb2.matrix.copy(invertedMat);obb2.needsUpdate=true;const res=otherGeometry.boundsTree.shapecast({intersectsBounds:box=>obb2.intersectsBox(box),intersectsTriangle:tri=>{tri.a.applyMatrix4(geometryToBvh);tri.b.applyMatrix4(geometryToBvh);tri.c.applyMatrix4(geometryToBvh);tri.needsUpdate=true;for(let i=offset*3,l=(count+offset)*3;i<l;i+=3){setTriangle(triangle2,i,thisIndex,thisPos);triangle2.needsUpdate=true;if(tri.intersectsTriangle(triangle2)){return true}}return false}});return res}else{for(let i=offset*3,l=count+offset*3;i<l;i+=3){setTriangle(triangle,i,thisIndex,thisPos);triangle.a.applyMatrix4(invertedMat);triangle.b.applyMatrix4(invertedMat);triangle.c.applyMatrix4(invertedMat);triangle.needsUpdate=true;for(let i2=0,l2=index.count;i2<l2;i2+=3){setTriangle(triangle2,i2,index,pos);triangle2.needsUpdate=true;if(triangle.intersectsTriangle(triangle2)){return true}}}}}else{const left=nodeIndex32+8;const right=uint32Array[nodeIndex32+6];arrayToBox(BOUNDING_DATA_INDEX(left),float32Array,boundingBox$1);const leftIntersection=cachedObb.intersectsBox(boundingBox$1)&&intersectsGeometry(left,geometry,otherGeometry,geometryToBvh,cachedObb);if(leftIntersection)return true;arrayToBox(BOUNDING_DATA_INDEX(right),float32Array,boundingBox$1);const rightIntersection=cachedObb.intersectsBox(boundingBox$1)&&intersectsGeometry(right,geometry,otherGeometry,geometryToBvh,cachedObb);if(rightIntersection)return true;return false}}}();function intersectRay(nodeIndex32,array,ray,target){arrayToBox(nodeIndex32,array,boundingBox$1);return ray.intersectBox(boundingBox$1,target)}const bufferStack=[];let _prevBuffer;let _float32Array;let _uint16Array;let _uint32Array;function setBuffer(buffer){if(_prevBuffer){bufferStack.push(_prevBuffer)}_prevBuffer=buffer;_float32Array=new Float32Array(buffer);_uint16Array=new Uint16Array(buffer);_uint32Array=new Uint32Array(buffer)}function clearBuffer(){_prevBuffer=null;_float32Array=null;_uint16Array=null;_uint32Array=null;if(bufferStack.length){setBuffer(bufferStack.pop())}}const SKIP_GENERATION=Symbol("skip tree generation");const aabb=new three.Box3;const aabb2=new three.Box3;const tempMatrix=new three.Matrix4;const obb=new OrientedBox;const obb2=new OrientedBox;const temp=new three.Vector3;const temp1=new three.Vector3;const temp2=new three.Vector3;const temp3=new three.Vector3;const temp4=new three.Vector3;const tempBox=new three.Box3;const trianglePool=new PrimitivePool(()=>new SeparatingAxisTriangle);class MeshBVH{static serialize(bvh,options={}){if(options.isBufferGeometry){console.warn("MeshBVH.serialize: The arguments for the function have changed. See documentation for new signature.");return MeshBVH.serialize(arguments[0],{cloneBuffers:arguments[2]===undefined?true:arguments[2]})}options={cloneBuffers:true,...options};const geometry=bvh.geometry;const rootData=bvh._roots;const indexAttribute=geometry.getIndex();let result;if(options.cloneBuffers){result={roots:rootData.map(root=>root.slice()),index:indexAttribute.array.slice()}}else{result={roots:rootData,index:indexAttribute.array}}return result}static deserialize(data,geometry,options={}){if(typeof options==="boolean"){console.warn("MeshBVH.deserialize: The arguments for the function have changed. See documentation for new signature.");return MeshBVH.deserialize(arguments[0],arguments[1],{setIndex:arguments[2]===undefined?true:arguments[2]})}options={setIndex:true,...options};const{index,roots}=data;const bvh=new MeshBVH(geometry,{...options,[SKIP_GENERATION]:true});bvh._roots=roots;if(options.setIndex){const indexAttribute=geometry.getIndex();if(indexAttribute===null){const newIndex=new three.BufferAttribute(data.index,1,false);geometry.setIndex(newIndex)}else if(indexAttribute.array!==index){indexAttribute.array.set(index);indexAttribute.needsUpdate=true}}return bvh}constructor(geometry,options={}){if(!geometry.isBufferGeometry){throw new Error("MeshBVH: Only BufferGeometries are supported.")}else if(geometry.index&&geometry.index.isInterleavedBufferAttribute){throw new Error("MeshBVH: InterleavedBufferAttribute is not supported for the index attribute.")}options=Object.assign({strategy:CENTER,maxDepth:40,maxLeafTris:10,verbose:true,useSharedArrayBuffer:false,setBoundingBox:true,onProgress:null,[SKIP_GENERATION]:false},options);if(options.useSharedArrayBuffer&&typeof SharedArrayBuffer==="undefined"){throw new Error("MeshBVH: SharedArrayBuffer is not available.")}this._roots=null;if(!options[SKIP_GENERATION]){this._roots=buildPackedTree(geometry,options);if(!geometry.boundingBox&&options.setBoundingBox){geometry.boundingBox=this.getBoundingBox(new three.Box3)}}this.geometry=geometry}refit(nodeIndices=null){if(nodeIndices&&Array.isArray(nodeIndices)){nodeIndices=new Set(nodeIndices)}const geometry=this.geometry;const indexArr=geometry.index.array;const posAttr=geometry.attributes.position;const posArr=posAttr.array;const bufferOffset=posAttr.offset||0;let stride=3;if(posAttr.isInterleavedBufferAttribute){stride=posAttr.data.stride}let buffer,uint32Array,uint16Array,float32Array;let byteOffset=0;const roots=this._roots;for(let i=0,l=roots.length;i<l;i++){buffer=roots[i];uint32Array=new Uint32Array(buffer);uint16Array=new Uint16Array(buffer);float32Array=new Float32Array(buffer);_traverse(0,byteOffset);byteOffset+=buffer.byteLength}function _traverse(node32Index,byteOffset,force=false){const node16Index=node32Index*2;const isLeaf=uint16Array[node16Index+15]===IS_LEAFNODE_FLAG;if(isLeaf){const offset=uint32Array[node32Index+6];const count=uint16Array[node16Index+14];let minx=Infinity;let miny=Infinity;let minz=Infinity;let maxx=-Infinity;let maxy=-Infinity;let maxz=-Infinity;for(let i=3*offset,l=3*(offset+count);i<l;i++){const index=indexArr[i]*stride+bufferOffset;const x=posArr[index+0];const y=posArr[index+1];const z=posArr[index+2];if(x<minx)minx=x;if(x>maxx)maxx=x;if(y<miny)miny=y;if(y>maxy)maxy=y;if(z<minz)minz=z;if(z>maxz)maxz=z}if(float32Array[node32Index+0]!==minx||float32Array[node32Index+1]!==miny||float32Array[node32Index+2]!==minz||float32Array[node32Index+3]!==maxx||float32Array[node32Index+4]!==maxy||float32Array[node32Index+5]!==maxz){float32Array[node32Index+0]=minx;float32Array[node32Index+1]=miny;float32Array[node32Index+2]=minz;float32Array[node32Index+3]=maxx;float32Array[node32Index+4]=maxy;float32Array[node32Index+5]=maxz;return true}else{return false}}else{const left=node32Index+8;const right=uint32Array[node32Index+6];const offsetLeft=left+byteOffset;const offsetRight=right+byteOffset;let forceChildren=force;let includesLeft=false;let includesRight=false;if(nodeIndices){if(!forceChildren){includesLeft=nodeIndices.has(offsetLeft);includesRight=nodeIndices.has(offsetRight);forceChildren=!includesLeft&&!includesRight}}else{includesLeft=true;includesRight=true}const traverseLeft=forceChildren||includesLeft;const traverseRight=forceChildren||includesRight;let leftChange=false;if(traverseLeft){leftChange=_traverse(left,byteOffset,forceChildren)}let rightChange=false;if(traverseRight){rightChange=_traverse(right,byteOffset,forceChildren)}const didChange=leftChange||rightChange;if(didChange){for(let i=0;i<3;i++){const lefti=left+i;const righti=right+i;const minLeftValue=float32Array[lefti];const maxLeftValue=float32Array[lefti+3];const minRightValue=float32Array[righti];const maxRightValue=float32Array[righti+3];float32Array[node32Index+i]=minLeftValue<minRightValue?minLeftValue:minRightValue;float32Array[node32Index+i+3]=maxLeftValue>maxRightValue?maxLeftValue:maxRightValue}}return didChange}}}traverse(callback,rootIndex=0){const buffer=this._roots[rootIndex];const uint32Array=new Uint32Array(buffer);const uint16Array=new Uint16Array(buffer);_traverse(0);function _traverse(node32Index,depth=0){const node16Index=node32Index*2;const isLeaf=uint16Array[node16Index+15]===IS_LEAFNODE_FLAG;if(isLeaf){const offset=uint32Array[node32Index+6];const count=uint16Array[node16Index+14];callback(depth,isLeaf,new Float32Array(buffer,node32Index*4,6),offset,count)}else{const left=node32Index+BYTES_PER_NODE/4;const right=uint32Array[node32Index+6];const splitAxis=uint32Array[node32Index+7];const stopTraversal=callback(depth,isLeaf,new Float32Array(buffer,node32Index*4,6),splitAxis);if(!stopTraversal){_traverse(left,depth+1);_traverse(right,depth+1)}}}}raycast(ray,materialOrSide=three.FrontSide){const roots=this._roots;const geometry=this.geometry;const intersects=[];const isMaterial=materialOrSide.isMaterial;const isArrayMaterial=Array.isArray(materialOrSide);const groups=geometry.groups;const side=isMaterial?materialOrSide.side:materialOrSide;for(let i=0,l=roots.length;i<l;i++){const materialSide=isArrayMaterial?materialOrSide[groups[i].materialIndex].side:side;const startCount=intersects.length;setBuffer(roots[i]);raycast(0,geometry,materialSide,ray,intersects);clearBuffer();if(isArrayMaterial){const materialIndex=groups[i].materialIndex;for(let j=startCount,jl=intersects.length;j<jl;j++){intersects[j].face.materialIndex=materialIndex}}}return intersects}raycastFirst(ray,materialOrSide=three.FrontSide){const roots=this._roots;const geometry=this.geometry;const isMaterial=materialOrSide.isMaterial;const isArrayMaterial=Array.isArray(materialOrSide);let closestResult=null;const groups=geometry.groups;const side=isMaterial?materialOrSide.side:materialOrSide;for(let i=0,l=roots.length;i<l;i++){const materialSide=isArrayMaterial?materialOrSide[groups[i].materialIndex].side:side;setBuffer(roots[i]);const result=raycastFirst(0,geometry,materialSide,ray);clearBuffer();if(result!=null&&(closestResult==null||result.distance<closestResult.distance)){closestResult=result;if(isArrayMaterial){result.face.materialIndex=groups[i].materialIndex}}}return closestResult}intersectsGeometry(otherGeometry,geomToMesh){const geometry=this.geometry;let result=false;for(const root of this._roots){setBuffer(root);result=intersectsGeometry(0,geometry,otherGeometry,geomToMesh);clearBuffer();if(result){break}}return result}shapecast(callbacks,_intersectsTriangleFunc,_orderNodesFunc){const geometry=this.geometry;if(callbacks instanceof Function){if(_intersectsTriangleFunc){const originalTriangleFunc=_intersectsTriangleFunc;_intersectsTriangleFunc=(tri,index,contained,depth)=>{const i3=index*3;return originalTriangleFunc(tri,i3,i3+1,i3+2,contained,depth)}}callbacks={boundsTraverseOrder:_orderNodesFunc,intersectsBounds:callbacks,intersectsTriangle:_intersectsTriangleFunc,intersectsRange:null};console.warn("MeshBVH: Shapecast function signature has changed and now takes an object of callbacks as a second argument. See docs for new signature.")}const triangle=trianglePool.getPrimitive();let{boundsTraverseOrder,intersectsBounds,intersectsRange,intersectsTriangle}=callbacks;if(intersectsRange&&intersectsTriangle){const originalIntersectsRange=intersectsRange;intersectsRange=(offset,count,contained,depth,nodeIndex)=>{if(!originalIntersectsRange(offset,count,contained,depth,nodeIndex)){return iterateOverTriangles(offset,count,geometry,intersectsTriangle,contained,depth,triangle)}return true}}else if(!intersectsRange){if(intersectsTriangle){intersectsRange=(offset,count,contained,depth)=>{return iterateOverTriangles(offset,count,geometry,intersectsTriangle,contained,depth,triangle)}}else{intersectsRange=(offset,count,contained)=>{return contained}}}let result=false;let byteOffset=0;for(const root of this._roots){setBuffer(root);result=shapecast(0,geometry,intersectsBounds,intersectsRange,boundsTraverseOrder,byteOffset);clearBuffer();if(result){break}byteOffset+=root.byteLength}trianglePool.releasePrimitive(triangle);return result}bvhcast(otherBvh,matrixToLocal,callbacks){let{intersectsRanges,intersectsTriangles}=callbacks;const indexAttr=this.geometry.index;const positionAttr=this.geometry.attributes.position;const otherIndexAttr=otherBvh.geometry.index;const otherPositionAttr=otherBvh.geometry.attributes.position;tempMatrix.copy(matrixToLocal).invert();const triangle=trianglePool.getPrimitive();const triangle2=trianglePool.getPrimitive();if(intersectsTriangles){function iterateOverDoubleTriangles(offset1,count1,offset2,count2,depth1,index1,depth2,index2){for(let i2=offset2,l2=offset2+count2;i2<l2;i2++){setTriangle(triangle2,i2*3,otherIndexAttr,otherPositionAttr);triangle2.a.applyMatrix4(matrixToLocal);triangle2.b.applyMatrix4(matrixToLocal);triangle2.c.applyMatrix4(matrixToLocal);triangle2.needsUpdate=true;for(let i1=offset1,l1=offset1+count1;i1<l1;i1++){setTriangle(triangle,i1*3,indexAttr,positionAttr);triangle.needsUpdate=true;if(intersectsTriangles(triangle,triangle2,i1,i2,depth1,index1,depth2,index2)){return true}}}return false}if(intersectsRanges){const originalIntersectsRanges=intersectsRanges;intersectsRanges=function(offset1,count1,offset2,count2,depth1,index1,depth2,index2){if(!originalIntersectsRanges(offset1,count1,offset2,count2,depth1,index1,depth2,index2)){return iterateOverDoubleTriangles(offset1,count1,offset2,count2,depth1,index1,depth2,index2)}return true}}else{intersectsRanges=iterateOverDoubleTriangles}}this.getBoundingBox(aabb2);aabb2.applyMatrix4(matrixToLocal);const result=this.shapecast({intersectsBounds:box=>aabb2.intersectsBox(box),intersectsRange:(offset1,count1,contained,depth1,nodeIndex1,box)=>{aabb.copy(box);aabb.applyMatrix4(tempMatrix);return otherBvh.shapecast({intersectsBounds:box=>aabb.intersectsBox(box),intersectsRange:(offset2,count2,contained,depth2,nodeIndex2)=>{return intersectsRanges(offset1,count1,offset2,count2,depth1,nodeIndex1,depth2,nodeIndex2)}})}});trianglePool.releasePrimitive(triangle);trianglePool.releasePrimitive(triangle2);return result}intersectsBox(box,boxToMesh){obb.set(box.min,box.max,boxToMesh);obb.needsUpdate=true;return this.shapecast({intersectsBounds:box=>obb.intersectsBox(box),intersectsTriangle:tri=>obb.intersectsTriangle(tri)})}intersectsSphere(sphere){return this.shapecast({intersectsBounds:box=>sphere.intersectsBox(box),intersectsTriangle:tri=>tri.intersectsSphere(sphere)})}closestPointToGeometry(otherGeometry,geometryToBvh,target1={},target2={},minThreshold=0,maxThreshold=Infinity){if(!otherGeometry.boundingBox){otherGeometry.computeBoundingBox()}obb.set(otherGeometry.boundingBox.min,otherGeometry.boundingBox.max,geometryToBvh);obb.needsUpdate=true;const geometry=this.geometry;const pos=geometry.attributes.position;const index=geometry.index;const otherPos=otherGeometry.attributes.position;const otherIndex=otherGeometry.index;const triangle=trianglePool.getPrimitive();const triangle2=trianglePool.getPrimitive();let tempTarget1=temp1;let tempTargetDest1=temp2;let tempTarget2=null;let tempTargetDest2=null;if(target2){tempTarget2=temp3;tempTargetDest2=temp4}let closestDistance=Infinity;let closestDistanceTriIndex=null;let closestDistanceOtherTriIndex=null;tempMatrix.copy(geometryToBvh).invert();obb2.matrix.copy(tempMatrix);this.shapecast({boundsTraverseOrder:box=>{return obb.distanceToBox(box,Math.min(closestDistance,maxThreshold))},intersectsBounds:(box,isLeaf,score)=>{if(score<closestDistance&&score<maxThreshold){if(isLeaf){obb2.min.copy(box.min);obb2.max.copy(box.max);obb2.needsUpdate=true}return true}return false},intersectsRange:(offset,count)=>{if(otherGeometry.boundsTree){return otherGeometry.boundsTree.shapecast({boundsTraverseOrder:box=>{return obb2.distanceToBox(box,Math.min(closestDistance,maxThreshold))},intersectsBounds:(box,isLeaf,score)=>{return score<closestDistance&&score<maxThreshold},intersectsRange:(otherOffset,otherCount)=>{for(let i2=otherOffset*3,l2=(otherOffset+otherCount)*3;i2<l2;i2+=3){setTriangle(triangle2,i2,otherIndex,otherPos);triangle2.a.applyMatrix4(geometryToBvh);triangle2.b.applyMatrix4(geometryToBvh);triangle2.c.applyMatrix4(geometryToBvh);triangle2.needsUpdate=true;for(let i=offset*3,l=(offset+count)*3;i<l;i+=3){setTriangle(triangle,i,index,pos);triangle.needsUpdate=true;const dist=triangle.distanceToTriangle(triangle2,tempTarget1,tempTarget2);if(dist<closestDistance){tempTargetDest1.copy(tempTarget1);if(tempTargetDest2){tempTargetDest2.copy(tempTarget2)}closestDistance=dist;closestDistanceTriIndex=i/3;closestDistanceOtherTriIndex=i2/3}if(dist<minThreshold){return true}}}}})}else{const triCount=otherIndex?otherIndex.count:otherPos.count;for(let i2=0,l2=triCount;i2<l2;i2+=3){setTriangle(triangle2,i2,otherIndex,otherPos);triangle2.a.applyMatrix4(geometryToBvh);triangle2.b.applyMatrix4(geometryToBvh);triangle2.c.applyMatrix4(geometryToBvh);triangle2.needsUpdate=true;for(let i=offset*3,l=(offset+count)*3;i<l;i+=3){setTriangle(triangle,i,index,pos);triangle.needsUpdate=true;const dist=triangle.distanceToTriangle(triangle2,tempTarget1,tempTarget2);if(dist<closestDistance){tempTargetDest1.copy(tempTarget1);if(tempTargetDest2){tempTargetDest2.copy(tempTarget2)}closestDistance=dist;closestDistanceTriIndex=i/3;closestDistanceOtherTriIndex=i2/3}if(dist<minThreshold){return true}}}}}});trianglePool.releasePrimitive(triangle);trianglePool.releasePrimitive(triangle2);if(closestDistance===Infinity)return null;if(!target1.point)target1.point=tempTargetDest1.clone();else target1.point.copy(tempTargetDest1);target1.distance=closestDistance,target1.faceIndex=closestDistanceTriIndex;if(target2){if(!target2.point)target2.point=tempTargetDest2.clone();else target2.point.copy(tempTargetDest2);target2.point.applyMatrix4(tempMatrix);tempTargetDest1.applyMatrix4(tempMatrix);target2.distance=tempTargetDest1.sub(target2.point).length();target2.faceIndex=closestDistanceOtherTriIndex}return target1}closestPointToPoint(point,target={},minThreshold=0,maxThreshold=Infinity){const minThresholdSq=minThreshold*minThreshold;const maxThresholdSq=maxThreshold*maxThreshold;let closestDistanceSq=Infinity;let closestDistanceTriIndex=null;this.shapecast({boundsTraverseOrder:box=>{temp.copy(point).clamp(box.min,box.max);return temp.distanceToSquared(point)},intersectsBounds:(box,isLeaf,score)=>{return score<closestDistanceSq&&score<maxThresholdSq},intersectsTriangle:(tri,triIndex)=>{tri.closestPointToPoint(point,temp);const distSq=point.distanceToSquared(temp);if(distSq<closestDistanceSq){temp1.copy(temp);closestDistanceSq=distSq;closestDistanceTriIndex=triIndex}if(distSq<minThresholdSq){return true}else{return false}}});if(closestDistanceSq===Infinity)return null;const closestDistance=Math.sqrt(closestDistanceSq);if(!target.point)target.point=temp1.clone();else target.point.copy(temp1);target.distance=closestDistance,target.faceIndex=closestDistanceTriIndex;return target}getBoundingBox(target){target.makeEmpty();const roots=this._roots;roots.forEach(buffer=>{arrayToBox(0,new Float32Array(buffer),tempBox);target.union(tempBox)});return target}}const originalRaycast=MeshBVH.prototype.raycast;MeshBVH.prototype.raycast=function(...args){if(args[0].isMesh){console.warn("MeshBVH: The function signature and results frame for \"raycast\" has changed. See docs for new signature.");const[mesh,raycaster,ray,intersects]=args;const results=originalRaycast.call(this,ray,mesh.material);results.forEach(hit=>{hit=convertRaycastIntersect(hit,mesh,raycaster);if(hit){intersects.push(hit)}});return intersects}else{return originalRaycast.apply(this,args)}};const originalRaycastFirst=MeshBVH.prototype.raycastFirst;MeshBVH.prototype.raycastFirst=function(...args){if(args[0].isMesh){console.warn("MeshBVH: The function signature and results frame for \"raycastFirst\" has changed. See docs for new signature.");const[mesh,raycaster,ray]=args;return convertRaycastIntersect(originalRaycastFirst.call(this,ray,mesh.material),mesh,raycaster)}else{return originalRaycastFirst.apply(this,args)}};const originalClosestPointToPoint=MeshBVH.prototype.closestPointToPoint;MeshBVH.prototype.closestPointToPoint=function(...args){if(args[0].isMesh){console.warn("MeshBVH: The function signature and results frame for \"closestPointToPoint\" has changed. See docs for new signature.");args.unshift();const target=args[1];const result={};args[1]=result;originalClosestPointToPoint.apply(this,args);if(target){target.copy(result.point)}return result.distance}else{return originalClosestPointToPoint.apply(this,args)}};const originalClosestPointToGeometry=MeshBVH.prototype.closestPointToGeometry;MeshBVH.prototype.closestPointToGeometry=function(...args){const target1=args[2];const target2=args[3];if(target1&&target1.isVector3||target2&&target2.isVector3){console.warn("MeshBVH: The function signature and results frame for \"closestPointToGeometry\" has changed. See docs for new signature.");const result1={};const result2={};const geometryToBvh=args[1];args[2]=result1;args[3]=result2;originalClosestPointToGeometry.apply(this,args);if(target1){target1.copy(result1.point)}if(target2){target2.copy(result2.point).applyMatrix4(geometryToBvh)}return result1.distance}else{return originalClosestPointToGeometry.apply(this,args)}};const originalRefit=MeshBVH.prototype.refit;MeshBVH.prototype.refit=function(...args){const nodeIndices=args[0];const terminationIndices=args[1];if(terminationIndices&&(terminationIndices instanceof Set||Array.isArray(terminationIndices))){console.warn("MeshBVH: The function signature for \"refit\" has changed. See docs for new signature.");const newNodeIndices=new Set;terminationIndices.forEach(v=>newNodeIndices.add(v));if(nodeIndices){nodeIndices.forEach(v=>newNodeIndices.add(v))}originalRefit.call(this,newNodeIndices)}else{originalRefit.apply(this,args)}};["intersectsGeometry","shapecast","intersectsBox","intersectsSphere"].forEach(name=>{const originalFunc=MeshBVH.prototype[name];MeshBVH.prototype[name]=function(...args){if(args[0]===null||args[0].isMesh){args.shift();console.warn(`MeshBVH: The function signature for "${name}" has changed and no longer takes Mesh. See docs for new signature.`)}return originalFunc.apply(this,args)}});const boundingBox=new three.Box3;class MeshBVHRootVisualizer extends three.Object3D{get isMesh(){return!this.displayEdges}get isLineSegments(){return this.displayEdges}get isLine(){return this.displayEdges}constructor(mesh,material,depth=10,group=0){super();this.material=material;this.geometry=new three.BufferGeometry;this.name="MeshBVHRootVisualizer";this.depth=depth;this.displayParents=false;this.mesh=mesh;this.displayEdges=true;this._group=group}raycast(){}update(){const geometry=this.geometry;const boundsTree=this.mesh.geometry.boundsTree;const group=this._group;geometry.dispose();this.visible=false;if(boundsTree){const targetDepth=this.depth-1;const displayParents=this.displayParents;let boundsCount=0;boundsTree.traverse((depth,isLeaf)=>{if(depth===targetDepth||isLeaf){boundsCount++;return true}else if(displayParents){boundsCount++}},group);let posIndex=0;const positionArray=new Float32Array(8*3*boundsCount);boundsTree.traverse((depth,isLeaf,boundingData)=>{const terminate=depth===targetDepth||isLeaf;if(terminate||displayParents){arrayToBox(0,boundingData,boundingBox);const{min,max}=boundingBox;for(let x=-1;x<=1;x+=2){const xVal=x<0?min.x:max.x;for(let y=-1;y<=1;y+=2){const yVal=y<0?min.y:max.y;for(let z=-1;z<=1;z+=2){const zVal=z<0?min.z:max.z;positionArray[posIndex+0]=xVal;positionArray[posIndex+1]=yVal;positionArray[posIndex+2]=zVal;posIndex+=3}}}return terminate}},group);let indexArray;let indices;if(this.displayEdges){indices=new Uint8Array([0,4,1,5,2,6,3,7,0,2,1,3,4,6,5,7,0,1,2,3,4,5,6,7])}else{indices=new Uint8Array([0,1,2,2,1,3,4,6,5,6,7,5,1,4,5,0,4,1,2,3,6,3,7,6,0,2,4,2,6,4,1,5,3,3,5,7])}if(positionArray.length>65535){indexArray=new Uint32Array(indices.length*boundsCount)}else{indexArray=new Uint16Array(indices.length*boundsCount)}const indexLength=indices.length;for(let i=0;i<boundsCount;i++){const posOffset=i*8;const indexOffset=i*indexLength;for(let j=0;j<indexLength;j++){indexArray[indexOffset+j]=posOffset+indices[j]}}geometry.setIndex(new three.BufferAttribute(indexArray,1,false));geometry.setAttribute("position",new three.BufferAttribute(positionArray,3,false));this.visible=true}}}class MeshBVHVisualizer extends three.Group{get color(){return this.edgeMaterial.color}get opacity(){return this.edgeMaterial.opacity}set opacity(v){this.edgeMaterial.opacity=v;this.meshMaterial.opacity=v}constructor(mesh,depth=10){super();this.name="MeshBVHVisualizer";this.depth=depth;this.mesh=mesh;this.displayParents=false;this.displayEdges=true;this._roots=[];const edgeMaterial=new three.LineBasicMaterial({color:65416,transparent:true,opacity:0.3,depthWrite:false});const meshMaterial=new three.MeshBasicMaterial({color:65416,transparent:true,opacity:0.3,depthWrite:false});meshMaterial.color=edgeMaterial.color;this.edgeMaterial=edgeMaterial;this.meshMaterial=meshMaterial;this.update()}update(){const bvh=this.mesh.geometry.boundsTree;const totalRoots=bvh?bvh._roots.length:0;while(this._roots.length>totalRoots){this._roots.pop()}for(let i=0;i<totalRoots;i++){if(i>=this._roots.length){const root=new MeshBVHRootVisualizer(this.mesh,this.edgeMaterial,this.depth,i);this.add(root);this._roots.push(root)}const root=this._roots[i];root.depth=this.depth;root.mesh=this.mesh;root.displayParents=this.displayParents;root.displayEdges=this.displayEdges;root.material=this.displayEdges?this.edgeMaterial:this.meshMaterial;root.update()}}updateMatrixWorld(...args){this.position.copy(this.mesh.position);this.rotation.copy(this.mesh.rotation);this.scale.copy(this.mesh.scale);super.updateMatrixWorld(...args)}copy(source){this.depth=source.depth;this.mesh=source.mesh}clone(){return new MeshBVHVisualizer(this.mesh,this.depth)}dispose(){this.edgeMaterial.dispose();this.meshMaterial.dispose();const children=this.children;for(let i=0,l=children.length;i<l;i++){children[i].geometry.dispose()}}}const _box1=new three.Box3;const _box2=new three.Box3;const _vec=new three.Vector3;function getPrimitiveSize(el){switch(typeof el){case"number":return 8;case"string":return el.length*2;case"boolean":return 4;default:return 0;}}function isTypedArray(arr){const regex=/(Uint|Int|Float)(8|16|32)Array/;return regex.test(arr.constructor.name)}function getRootExtremes(bvh,group){const result={nodeCount:0,leafNodeCount:0,depth:{min:Infinity,max:-Infinity},tris:{min:Infinity,max:-Infinity},splits:[0,0,0],surfaceAreaScore:0};bvh.traverse((depth,isLeaf,boundingData,offsetOrSplit,count)=>{const l0=boundingData[0+3]-boundingData[0];const l1=boundingData[1+3]-boundingData[1];const l2=boundingData[2+3]-boundingData[2];const surfaceArea=2*(l0*l1+l1*l2+l2*l0);result.nodeCount++;if(isLeaf){result.leafNodeCount++;result.depth.min=Math.min(depth,result.depth.min);result.depth.max=Math.max(depth,result.depth.max);result.tris.min=Math.min(count,result.tris.min);result.tris.max=Math.max(count,result.tris.max);result.surfaceAreaScore+=surfaceArea*TRIANGLE_INTERSECT_COST*count}else{result.splits[offsetOrSplit]++;result.surfaceAreaScore+=surfaceArea*TRAVERSAL_COST}},group);if(result.tris.min===Infinity){result.tris.min=0;result.tris.max=0}if(result.depth.min===Infinity){result.depth.min=0;result.depth.max=0}return result}function getBVHExtremes(bvh){return bvh._roots.map((root,i)=>getRootExtremes(bvh,i))}function estimateMemoryInBytes(obj){const traversed=new Set;const stack=[obj];let bytes=0;while(stack.length){const curr=stack.pop();if(traversed.has(curr)){continue}traversed.add(curr);for(let key in curr){if(!curr.hasOwnProperty(key)){continue}bytes+=getPrimitiveSize(key);const value=curr[key];if(value&&(typeof value==="object"||typeof value==="function")){if(isTypedArray(value)){bytes+=value.byteLength}else if(value instanceof ArrayBuffer){bytes+=value.byteLength}else{stack.push(value)}}else{bytes+=getPrimitiveSize(value)}}}return bytes}function validateBounds(bvh){const geometry=bvh.geometry;const depthStack=[];const index=geometry.index;const position=geometry.getAttribute("position");let passes=true;bvh.traverse((depth,isLeaf,boundingData,offset,count)=>{const info={depth,isLeaf,boundingData,offset,count};depthStack[depth]=info;arrayToBox(0,boundingData,_box1);const parent=depthStack[depth-1];if(isLeaf){for(let i=offset*3,l=(offset+count)*3;i<l;i+=3){const i0=index.getX(i);const i1=index.getX(i+1);const i2=index.getX(i+2);let isContained;_vec.fromBufferAttribute(position,i0);isContained=_box1.containsPoint(_vec);_vec.fromBufferAttribute(position,i1);isContained=isContained&&_box1.containsPoint(_vec);_vec.fromBufferAttribute(position,i2);isContained=isContained&&_box1.containsPoint(_vec);console.assert(isContained,"Leaf bounds does not fully contain triangle.");passes=passes&&isContained}}if(parent){arrayToBox(0,boundingData,_box2);const isContained=_box2.containsBox(_box1);console.assert(isContained,"Parent bounds does not fully contain child.");passes=passes&&isContained}});return passes}function getJSONStructure(bvh){const depthStack=[];bvh.traverse((depth,isLeaf,boundingData,offset,count)=>{const info={bounds:arrayToBox(0,boundingData,new three.Box3)};if(isLeaf){info.count=count;info.offset=offset}else{info.left=null;info.right=null}depthStack[depth]=info;const parent=depthStack[depth-1];if(parent){if(parent.left===null){parent.left=info}else{parent.right=info}}});return depthStack[0]}const ray=new three.Ray;const tmpInverseMatrix=new three.Matrix4;const origMeshRaycastFunc=three.Mesh.prototype.raycast;function acceleratedRaycast(raycaster,intersects){if(this.geometry.boundsTree){if(this.material===undefined)return;tmpInverseMatrix.copy(this.matrixWorld).invert();ray.copy(raycaster.ray).applyMatrix4(tmpInverseMatrix);const bvh=this.geometry.boundsTree;if(raycaster.firstHitOnly===true){const hit=convertRaycastIntersect(bvh.raycastFirst(ray,this.material),this,raycaster);if(hit){intersects.push(hit)}}else{const hits=bvh.raycast(ray,this.material);for(let i=0,l=hits.length;i<l;i++){const hit=convertRaycastIntersect(hits[i],this,raycaster);if(hit){intersects.push(hit)}}}}else{origMeshRaycastFunc.call(this,raycaster,intersects)}}function computeBoundsTree(options){this.boundsTree=new MeshBVH(this,options);return this.boundsTree}function disposeBoundsTree(){this.boundsTree=null}function countToStringFormat(count){switch(count){case 1:return"R";case 2:return"RG";case 3:return"RGBA";case 4:return"RGBA";}throw new Error}function countToFormat(count){switch(count){case 1:return three.RedFormat;case 2:return three.RGFormat;case 3:return three.RGBAFormat;case 4:return three.RGBAFormat;}}function countToIntFormat(count){switch(count){case 1:return three.RedIntegerFormat;case 2:return three.RGIntegerFormat;case 3:return three.RGBAIntegerFormat;case 4:return three.RGBAIntegerFormat;}}class VertexAttributeTexture extends three.DataTexture{constructor(){super();this.minFilter=three.NearestFilter;this.magFilter=three.NearestFilter;this.generateMipmaps=false;this.overrideItemSize=null;this._forcedType=null}updateFrom(attr){const overrideItemSize=this.overrideItemSize;const originalItemSize=attr.itemSize;const originalCount=attr.count;if(overrideItemSize!==null){if(originalItemSize*originalCount%overrideItemSize!==0){throw new Error("VertexAttributeTexture: overrideItemSize must divide evenly into buffer length.")}attr.itemSize=overrideItemSize;attr.count=originalCount*originalItemSize/overrideItemSize}const itemSize=attr.itemSize;const count=attr.count;const normalized=attr.normalized;const originalBufferCons=attr.array.constructor;const byteCount=originalBufferCons.BYTES_PER_ELEMENT;let targetType=this._forcedType;let finalStride=itemSize;if(targetType===null){switch(originalBufferCons){case Float32Array:targetType=three.FloatType;break;case Uint8Array:case Uint16Array:case Uint32Array:targetType=three.UnsignedIntType;break;case Int8Array:case Int16Array:case Int32Array:targetType=three.IntType;break;}}let type,format,normalizeValue,targetBufferCons;let internalFormat=countToStringFormat(itemSize);switch(targetType){case three.FloatType:normalizeValue=1;format=countToFormat(itemSize);if(normalized&&byteCount===1){targetBufferCons=originalBufferCons;internalFormat+="8";if(originalBufferCons===Uint8Array){type=three.UnsignedByteType}else{type=three.ByteType;internalFormat+="_SNORM"}}else{targetBufferCons=Float32Array;internalFormat+="32F";type=three.FloatType}break;case three.IntType:internalFormat+=byteCount*8+"I";normalizeValue=normalized?Math.pow(2,originalBufferCons.BYTES_PER_ELEMENT*8-1):1;format=countToIntFormat(itemSize);if(byteCount===1){targetBufferCons=Int8Array;type=three.ByteType}else if(byteCount===2){targetBufferCons=Int16Array;type=three.ShortType}else{targetBufferCons=Int32Array;type=three.IntType}break;case three.UnsignedIntType:internalFormat+=byteCount*8+"UI";normalizeValue=normalized?Math.pow(2,originalBufferCons.BYTES_PER_ELEMENT*8-1):1;format=countToIntFormat(itemSize);if(byteCount===1){targetBufferCons=Uint8Array;type=three.UnsignedByteType}else if(byteCount===2){targetBufferCons=Uint16Array;type=three.UnsignedShortType}else{targetBufferCons=Uint32Array;type=three.UnsignedIntType}break;}if(finalStride===3&&(format===three.RGBAFormat||format===three.RGBAIntegerFormat)){finalStride=4}const dimension=Math.ceil(Math.sqrt(count));const length=finalStride*dimension*dimension;const dataArray=new targetBufferCons(length);for(let i=0;i<count;i++){const ii=finalStride*i;dataArray[ii]=attr.getX(i)/normalizeValue;if(itemSize>=2){dataArray[ii+1]=attr.getY(i)/normalizeValue}if(itemSize>=3){dataArray[ii+2]=attr.getZ(i)/normalizeValue;if(finalStride===4){dataArray[ii+3]=1}}if(itemSize>=4){dataArray[ii+3]=attr.getW(i)/normalizeValue}}this.internalFormat=internalFormat;this.format=format;this.type=type;this.image.width=dimension;this.image.height=dimension;this.image.data=dataArray;this.needsUpdate=true;attr.itemSize=originalItemSize;attr.count=originalCount}}class UIntVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.UnsignedIntType}}class IntVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.IntType}}class FloatVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.FloatType}}function bvhToTextures(bvh,boundsTexture,contentsTexture){const roots=bvh._roots;if(roots.length!==1){throw new Error("MeshBVHUniformStruct: Multi-root BVHs not supported.")}const root=roots[0];const uint16Array=new Uint16Array(root);const uint32Array=new Uint32Array(root);const float32Array=new Float32Array(root);const nodeCount=root.byteLength/BYTES_PER_NODE;const boundsDimension=2*Math.ceil(Math.sqrt(nodeCount/2));const boundsArray=new Float32Array(4*boundsDimension*boundsDimension);const contentsDimension=Math.ceil(Math.sqrt(nodeCount));const contentsArray=new Uint32Array(2*contentsDimension*contentsDimension);for(let i=0;i<nodeCount;i++){const nodeIndex32=i*BYTES_PER_NODE/4;const nodeIndex16=nodeIndex32*2;const boundsIndex=BOUNDING_DATA_INDEX(nodeIndex32);for(let b=0;b<3;b++){boundsArray[8*i+0+b]=float32Array[boundsIndex+0+b];boundsArray[8*i+4+b]=float32Array[boundsIndex+3+b]}if(IS_LEAF(nodeIndex16,uint16Array)){const count=COUNT(nodeIndex16,uint16Array);const offset=OFFSET(nodeIndex32,uint32Array);const mergedLeafCount=4294901760|count;contentsArray[i*2+0]=mergedLeafCount;contentsArray[i*2+1]=offset}else{const rightIndex=4*RIGHT_NODE(nodeIndex32,uint32Array)/BYTES_PER_NODE;const splitAxis=SPLIT_AXIS(nodeIndex32,uint32Array);contentsArray[i*2+0]=splitAxis;contentsArray[i*2+1]=rightIndex}}boundsTexture.image.data=boundsArray;boundsTexture.image.width=boundsDimension;boundsTexture.image.height=boundsDimension;boundsTexture.format=three.RGBAFormat;boundsTexture.type=three.FloatType;boundsTexture.internalFormat="RGBA32F";boundsTexture.minFilter=three.NearestFilter;boundsTexture.magFilter=three.NearestFilter;boundsTexture.generateMipmaps=false;boundsTexture.needsUpdate=true;contentsTexture.image.data=contentsArray;contentsTexture.image.width=contentsDimension;contentsTexture.image.height=contentsDimension;contentsTexture.format=three.RGIntegerFormat;contentsTexture.type=three.UnsignedIntType;contentsTexture.internalFormat="RG32UI";contentsTexture.minFilter=three.NearestFilter;contentsTexture.magFilter=three.NearestFilter;contentsTexture.generateMipmaps=false;contentsTexture.needsUpdate=true}class MeshBVHUniformStruct{constructor(){this.autoDispose=true;this.index=new UIntVertexAttributeTexture;this.position=new FloatVertexAttributeTexture;this.bvhBounds=new three.DataTexture;this.bvhContents=new three.DataTexture;this.index.overrideItemSize=3}updateFrom(bvh){const{geometry}=bvh;bvhToTextures(bvh,this.bvhBounds,this.bvhContents);this.index.updateFrom(geometry.index);this.position.updateFrom(geometry.attributes.position)}dispose(){const{index,position,bvhBounds,bvhContents}=this;if(index)index.dispose();if(position)position.dispose();if(bvhBounds)bvhBounds.dispose();if(bvhContents)bvhContents.dispose()}}const shaderStructs=`
#ifndef TRI_INTERSECT_EPSILON
#define TRI_INTERSECT_EPSILON 1e-5
#endif

#ifndef INFINITY
#define INFINITY 1e20
#endif

struct BVH {

	usampler2D index;
	sampler2D position;

	sampler2D bvhBounds;
	usampler2D bvhContents;

};

// Note that a struct cannot be used for the hit record including faceIndices, faceNormal, barycoord,
// side, and dist because on some mobile GPUS (such as Adreno) numbers are afforded less precision specifically
// when in a struct leading to inaccurate hit results. See KhronosGroup/WebGL#3351 for more details.
`;const shaderIntersectFunction=`

uvec4 uTexelFetch1D( usampler2D tex, uint index ) {

	uint width = uint( textureSize( tex, 0 ).x );
	uvec2 uv;
	uv.x = index % width;
	uv.y = index / width;

	return texelFetch( tex, ivec2( uv ), 0 );

}

ivec4 iTexelFetch1D( isampler2D tex, uint index ) {

	uint width = uint( textureSize( tex, 0 ).x );
	uvec2 uv;
	uv.x = index % width;
	uv.y = index / width;

	return texelFetch( tex, ivec2( uv ), 0 );

}

vec4 texelFetch1D( sampler2D tex, uint index ) {

	uint width = uint( textureSize( tex, 0 ).x );
	uvec2 uv;
	uv.x = index % width;
	uv.y = index / width;

	return texelFetch( tex, ivec2( uv ), 0 );

}

vec4 textureSampleBarycoord( sampler2D tex, vec3 barycoord, uvec3 faceIndices ) {

	return
		barycoord.x * texelFetch1D( tex, faceIndices.x ) +
		barycoord.y * texelFetch1D( tex, faceIndices.y ) +
		barycoord.z * texelFetch1D( tex, faceIndices.z );

}

void ndcToCameraRay(
	vec2 coord, mat4 cameraWorld, mat4 invProjectionMatrix,
	out vec3 rayOrigin, out vec3 rayDirection
) {

	// get camera look direction and near plane for camera clipping
	vec4 lookDirection = cameraWorld * vec4( 0.0, 0.0, - 1.0, 0.0 );
	vec4 nearVector = invProjectionMatrix * vec4( 0.0, 0.0, - 1.0, 1.0 );
	float near = abs( nearVector.z / nearVector.w );

	// get the camera direction and position from camera matrices
	vec4 origin = cameraWorld * vec4( 0.0, 0.0, 0.0, 1.0 );
	vec4 direction = invProjectionMatrix * vec4( coord, 0.5, 1.0 );
	direction /= direction.w;
	direction = cameraWorld * direction - origin;

	// slide the origin along the ray until it sits at the near clip plane position
	origin.xyz += direction.xyz * near / dot( direction, lookDirection );

	rayOrigin = origin.xyz;
	rayDirection = direction.xyz;

}

float intersectsBounds( vec3 rayOrigin, vec3 rayDirection, vec3 boundsMin, vec3 boundsMax ) {

	// https://www.reddit.com/r/opengl/comments/8ntzz5/fast_glsl_ray_box_intersection/
	// https://tavianator.com/2011/ray_box.html
	vec3 invDir = 1.0 / rayDirection;

	// find intersection distances for each plane
	vec3 tMinPlane = invDir * ( boundsMin - rayOrigin );
	vec3 tMaxPlane = invDir * ( boundsMax - rayOrigin );

	// get the min and max distances from each intersection
	vec3 tMinHit = min( tMaxPlane, tMinPlane );
	vec3 tMaxHit = max( tMaxPlane, tMinPlane );

	// get the furthest hit distance
	vec2 t = max( tMinHit.xx, tMinHit.yz );
	float t0 = max( t.x, t.y );

	// get the minimum hit distance
	t = min( tMaxHit.xx, tMaxHit.yz );
	float t1 = min( t.x, t.y );

	// set distance to 0.0 if the ray starts inside the box
	float dist = max( t0, 0.0 );

	return t1 >= dist ? dist : INFINITY;

}

bool intersectsTriangle(
	vec3 rayOrigin, vec3 rayDirection, vec3 a, vec3 b, vec3 c,
	out vec3 barycoord, out vec3 norm, out float dist, out float side
) {

	// https://stackoverflow.com/questions/42740765/intersection-between-line-and-triangle-in-3d
	vec3 edge1 = b - a;
	vec3 edge2 = c - a;
	norm = cross( edge1, edge2 );

	float det = - dot( rayDirection, norm );
	float invdet = 1.0 / det;

	vec3 AO = rayOrigin - a;
	vec3 DAO = cross( AO, rayDirection );

	vec4 uvt;
	uvt.x = dot( edge2, DAO ) * invdet;
	uvt.y = - dot( edge1, DAO ) * invdet;
	uvt.z = dot( AO, norm ) * invdet;
	uvt.w = 1.0 - uvt.x - uvt.y;

	// set the hit information
	barycoord = uvt.wxy; // arranged in A, B, C order
	dist = uvt.z;
	side = sign( det );
	norm = side * normalize( norm );

	// add an epsilon to avoid misses between triangles
	uvt += vec4( TRI_INTERSECT_EPSILON );

	return all( greaterThanEqual( uvt, vec4( 0.0 ) ) );

}

bool intersectTriangles(
	BVH bvh, vec3 rayOrigin, vec3 rayDirection, uint offset, uint count,
	inout float minDistance,

	// output variables
	out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord,
	out float side, out float dist
) {

	bool found = false;
	vec3 localBarycoord, localNormal;
	float localDist, localSide;
	for ( uint i = offset, l = offset + count; i < l; i ++ ) {

		uvec3 indices = uTexelFetch1D( bvh.index, i ).xyz;
		vec3 a = texelFetch1D( bvh.position, indices.x ).rgb;
		vec3 b = texelFetch1D( bvh.position, indices.y ).rgb;
		vec3 c = texelFetch1D( bvh.position, indices.z ).rgb;

		if (
			intersectsTriangle( rayOrigin, rayDirection, a, b, c, localBarycoord, localNormal, localDist, localSide )
			&& localDist < minDistance
		) {

			found = true;
			minDistance = localDist;

			faceIndices = uvec4( indices.xyz, i );
			faceNormal = localNormal;

			side = localSide;
			barycoord = localBarycoord;
			dist = localDist;

		}

	}

	return found;

}

float intersectsBVHNodeBounds( vec3 rayOrigin, vec3 rayDirection, BVH bvh, uint currNodeIndex ) {

	vec3 boundsMin = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 0u ).xyz;
	vec3 boundsMax = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 1u ).xyz;
	return intersectsBounds( rayOrigin, rayDirection, boundsMin, boundsMax );

}

bool bvhIntersectFirstHit(
	BVH bvh, vec3 rayOrigin, vec3 rayDirection,

	// output variables
	out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord,
	out float side, out float dist
) {

	// stack needs to be twice as long as the deepest tree we expect because
	// we push both the left and right child onto the stack every traversal
	int ptr = 0;
	uint stack[ 60 ];
	stack[ 0 ] = 0u;

	float triangleDistance = 1e20;
	bool found = false;
	while ( ptr > - 1 && ptr < 60 ) {

		uint currNodeIndex = stack[ ptr ];
		ptr --;

		// check if we intersect the current bounds
		float boundsHitDistance = intersectsBVHNodeBounds( rayOrigin, rayDirection, bvh, currNodeIndex );
		if ( boundsHitDistance == INFINITY || boundsHitDistance > triangleDistance ) {

			continue;

		}

		uvec2 boundsInfo = uTexelFetch1D( bvh.bvhContents, currNodeIndex ).xy;
		bool isLeaf = bool( boundsInfo.x & 0xffff0000u );

		if ( isLeaf ) {

			uint count = boundsInfo.x & 0x0000ffffu;
			uint offset = boundsInfo.y;

			found = intersectTriangles(
				bvh, rayOrigin, rayDirection, offset, count, triangleDistance,
				faceIndices, faceNormal, barycoord, side, dist
			) || found;

		} else {

			uint leftIndex = currNodeIndex + 1u;
			uint splitAxis = boundsInfo.x & 0x0000ffffu;
			uint rightIndex = boundsInfo.y;

			bool leftToRight = rayDirection[ splitAxis ] >= 0.0;
			uint c1 = leftToRight ? leftIndex : rightIndex;
			uint c2 = leftToRight ? rightIndex : leftIndex;

			// set c2 in the stack so we traverse it later. We need to keep track of a pointer in
			// the stack while we traverse. The second pointer added is the one that will be
			// traversed first
			ptr ++;
			stack[ ptr ] = c2;

			ptr ++;
			stack[ ptr ] = c1;

		}

	}

	return found;

}

`;exports.AVERAGE=AVERAGE;exports.CENTER=CENTER;exports.CONTAINED=CONTAINED;exports.FloatVertexAttributeTexture=FloatVertexAttributeTexture;exports.INTERSECTED=INTERSECTED;exports.IntVertexAttributeTexture=IntVertexAttributeTexture;exports.MeshBVH=MeshBVH;exports.MeshBVHUniformStruct=MeshBVHUniformStruct;exports.MeshBVHVisualizer=MeshBVHVisualizer;exports.NOT_INTERSECTED=NOT_INTERSECTED;exports.SAH=SAH;exports.UIntVertexAttributeTexture=UIntVertexAttributeTexture;exports.VertexAttributeTexture=VertexAttributeTexture;exports.acceleratedRaycast=acceleratedRaycast;exports.computeBoundsTree=computeBoundsTree;exports.disposeBoundsTree=disposeBoundsTree;exports.estimateMemoryInBytes=estimateMemoryInBytes;exports.getBVHExtremes=getBVHExtremes;exports.getJSONStructure=getJSONStructure;exports.getTriangleHitPointInfo=getTriangleHitPointInfo;exports.shaderIntersectFunction=shaderIntersectFunction;exports.shaderStructs=shaderStructs;exports.validateBounds=validateBounds;Object.defineProperty(exports,"__esModule",{value:true});three.BufferGeometry.prototype.computeBoundsTree=computeBoundsTree;three.BufferGeometry.prototype.disposeBoundsTree=disposeBoundsTree;three.Mesh.prototype.raycast=acceleratedRaycast});THREE.MeshoptDecoder=function(){"use strict";var wasm_base="b9H79Tebbbe8Fv9Gbb9Gvuuuuueu9Giuuub9Geueu9Giuuueuikqbeeedddillviebeoweuec:q;iekr;leDo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbeY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVbdE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbiL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtblK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949Wbol79IV9Rbrq:P8Yqdbk;3sezu8Jjjjjbcj;eb9Rgv8Kjjjjbc9:hodnadcefal0mbcuhoaiRbbc:Ge9hmbavaialfgrad9Radz1jjjbhwcj;abad9UhoaicefhldnadTmbaoc;WFbGgocjdaocjd6EhDcbhqinaqae9pmeaDaeaq9RaqaDfae6Egkcsfgocl4cifcd4hxdndndndnaoc9WGgmTmbcbhPcehsawcjdfhzalhHinaraH9Rax6midnaraHaxfgl9RcK6mbczhoinawcj;cbfaogifgoc9WfhOdndndndndnaHaic9WfgAco4fRbbaAci4coG4ciGPlbedibkaO9cb83ibaOcwf9cb83ibxikaOalRblalRbbgAco4gCaCciSgCE86bbaocGfalclfaCfgORbbaAcl4ciGgCaCciSgCE86bbaocVfaOaCfgORbbaAcd4ciGgCaCciSgCE86bbaoc7faOaCfgORbbaAciGgAaAciSgAE86bbaoctfaOaAfgARbbalRbegOco4gCaCciSgCE86bbaoc91faAaCfgARbbaOcl4ciGgCaCciSgCE86bbaoc4faAaCfgARbbaOcd4ciGgCaCciSgCE86bbaoc93faAaCfgARbbaOciGgOaOciSgOE86bbaoc94faAaOfgARbbalRbdgOco4gCaCciSgCE86bbaoc95faAaCfgARbbaOcl4ciGgCaCciSgCE86bbaoc96faAaCfgARbbaOcd4ciGgCaCciSgCE86bbaoc97faAaCfgARbbaOciGgOaOciSgOE86bbaoc98faAaOfgORbbalRbiglco4gAaAciSgAE86bbaoc99faOaAfgORbbalcl4ciGgAaAciSgAE86bbaoc9:faOaAfgORbbalcd4ciGgAaAciSgAE86bbaocufaOaAfgoRbbalciGglalciSglE86bbaoalfhlxdkaOalRbwalRbbgAcl4gCaCcsSgCE86bbaocGfalcwfaCfgORbbaAcsGgAaAcsSgAE86bbaocVfaOaAfgORbbalRbegAcl4gCaCcsSgCE86bbaoc7faOaCfgORbbaAcsGgAaAcsSgAE86bbaoctfaOaAfgORbbalRbdgAcl4gCaCcsSgCE86bbaoc91faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc4faOaAfgORbbalRbigAcl4gCaCcsSgCE86bbaoc93faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc94faOaAfgORbbalRblgAcl4gCaCcsSgCE86bbaoc95faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc96faOaAfgORbbalRbvgAcl4gCaCcsSgCE86bbaoc97faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc98faOaAfgORbbalRbogAcl4gCaCcsSgCE86bbaoc99faOaCfgORbbaAcsGgAaAcsSgAE86bbaoc9:faOaAfgORbbalRbrglcl4gAaAcsSgAE86bbaocufaOaAfgoRbbalcsGglalcsSglE86bbaoalfhlxekaOal8Pbb83bbaOcwfalcwf8Pbb83bbalczfhlkdnaiam9pmbaiczfhoaral9RcL0mekkaiam6mialTmidnakTmbawaPfRbbhOcbhoazhiinaiawcj;cbfaofRbbgAce4cbaAceG9R7aOfgO86bbaiadfhiaocefgoak9hmbkkazcefhzaPcefgPad6hsalhHaPad9hmexvkkcbhlasceGmdxikalaxad2fhCdnakTmbcbhHcehsawcjdfhminaral9Rax6mialTmdalaxfhlawaHfRbbhOcbhoamhiinaiawcj;cbfaofRbbgAce4cbaAceG9R7aOfgO86bbaiadfhiaocefgoak9hmbkamcefhmaHcefgHad6hsaHad9hmbkaChlxikcbhocehsinaral9Rax6mdalTmealaxfhlaocefgoad6hsadao9hmbkaChlxdkcbhlasceGTmekc9:hoxikabaqad2fawcjdfakad2z1jjjb8Aawawcjdfakcufad2fadz1jjjb8Aakaqfhqalmbkc9:hoxekcbc99aral9Radcaadca0ESEhokavcj;ebf8Kjjjjbaok;yzeHu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnaeci9UgrcHfal0mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecjez:jjjjb8AavcUf9cu83ibavc8Wf9cu83ibavcyf9cu83ibavcaf9cu83ibavcKf9cu83ibavczf9cu83ibav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhodnaeTmbcmcsaDceSEhkcbhxcbhmcbhDcbhicbhlindnaoaq9nmbc9:hoxikdndnawRbbgrc;Ve0mbavc;abfalarcl4cu7fcsGcitfgPydlhsaPydbhzdnarcsGgPak9pmbavaiarcu7fcsGcdtfydbaxaPEhraPThPdndnadcd9hmbabaDcetfgHaz87ebaHcdfas87ebaHclfar87ebxekabaDcdtfgHazBdbaHclfasBdbaHcwfarBdbkaxaPfhxavc;abfalcitfgHarBdbaHasBdlavaicdtfarBdbavc;abfalcefcsGglcitfgHazBdbaHarBdlaiaPfhialcefhlxdkdndnaPcsSmbamaPfaPc987fcefhmxekaocefhrao8SbbgPcFeGhHdndnaPcu9mmbarhoxekaocvfhoaHcFbGhHcrhPdninar8SbbgOcFbGaPtaHVhHaOcu9kmearcefhraPcrfgPc8J9hmbxdkkarcefhokaHce4cbaHceG9R7amfhmkdndnadcd9hmbabaDcetfgraz87ebarcdfas87ebarclfam87ebxekabaDcdtfgrazBdbarclfasBdbarcwfamBdbkavc;abfalcitfgramBdbarasBdlavaicdtfamBdbavc;abfalcefcsGglcitfgrazBdbaramBdlaicefhialcefhlxekdnarcpe0mbaxcefgOavaiaqarcsGfRbbgPcl49RcsGcdtfydbaPcz6gHEhravaiaP9RcsGcdtfydbaOaHfgsaPcsGgOEhPaOThOdndnadcd9hmbabaDcetfgzax87ebazcdfar87ebazclfaP87ebxekabaDcdtfgzaxBdbazclfarBdbazcwfaPBdbkavaicdtfaxBdbavc;abfalcitfgzarBdbazaxBdlavaicefgicsGcdtfarBdbavc;abfalcefcsGcitfgzaPBdbazarBdlavaiaHfcsGgicdtfaPBdbavc;abfalcdfcsGglcitfgraxBdbaraPBdlalcefhlaiaOfhiasaOfhxxekaxcbaoRbbgzEgAarc;:eSgrfhsazcsGhCazcl4hXdndnazcs0mbascefhOxekashOavaiaX9RcsGcdtfydbhskdndnaCmbaOcefhxxekaOhxavaiaz9RcsGcdtfydbhOkdndnarTmbaocefhrxekaocdfhrao8SbegHcFeGhPdnaHcu9kmbaocofhAaPcFbGhPcrhodninar8SbbgHcFbGaotaPVhPaHcu9kmearcefhraocrfgoc8J9hmbkaAhrxekarcefhrkaPce4cbaPceG9R7amfgmhAkdndnaXcsSmbarhPxekarcefhPar8SbbgocFeGhHdnaocu9kmbarcvfhsaHcFbGhHcrhodninaP8SbbgrcFbGaotaHVhHarcu9kmeaPcefhPaocrfgoc8J9hmbkashPxekaPcefhPkaHce4cbaHceG9R7amfgmhskdndnaCcsSmbaPhoxekaPcefhoaP8SbbgrcFeGhHdnarcu9kmbaPcvfhOaHcFbGhHcrhrdninao8SbbgPcFbGartaHVhHaPcu9kmeaocefhoarcrfgrc8J9hmbkaOhoxekaocefhokaHce4cbaHceG9R7amfgmhOkdndnadcd9hmbabaDcetfgraA87ebarcdfas87ebarclfaO87ebxekabaDcdtfgraABdbarclfasBdbarcwfaOBdbkavc;abfalcitfgrasBdbaraABdlavaicdtfaABdbavc;abfalcefcsGcitfgraOBdbarasBdlavaicefgicsGcdtfasBdbavc;abfalcdfcsGcitfgraABdbaraOBdlavaiazcz6aXcsSVfgicsGcdtfaOBdbaiaCTaCcsSVfhialcifhlkawcefhwalcsGhlaicsGhiaDcifgDae6mbkkcbc99aoaqSEhokavc;aef8Kjjjjbaok:llevu8Jjjjjbcz9Rhvc9:hodnaecvfal0mbcuhoaiRbbc;:eGc;qe9hmbav9cb83iwaicefhraialfc98fhwdnaeTmbdnadcdSmbcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcdtfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfglBdbaoalBdbaDcefgDae9hmbxdkkcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcetfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfgl87ebaoalBdbaDcefgDae9hmbkkcbc99arawSEhokaok:Lvoeue99dud99eud99dndnadcl9hmbaeTmeindndnabcdfgd8Sbb:Yab8Sbbgi:Ygl:l:tabcefgv8Sbbgo:Ygr:l:tgwJbb;:9cawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai86bbdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad86bbdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad86bbabclfhbaecufgembxdkkaeTmbindndnabclfgd8Ueb:Yab8Uebgi:Ygl:l:tabcdfgv8Uebgo:Ygr:l:tgwJb;:FSawawNJbbbbawawJbbbb9GgDEgq:mgkaqaicb9iEalMgwawNakaqaocb9iEarMgqaqNMM:r:vglNJbbbZJbbb:;aDEMgr:lJbbb9p9DTmbar:Ohixekcjjjj94hikadai87ebdndnaqalNJbbbZJbbb:;aqJbbbb9GEMgq:lJbbb9p9DTmbaq:Ohdxekcjjjj94hdkavad87ebdndnawalNJbbbZJbbb:;awJbbbb9GEMgw:lJbbb9p9DTmbaw:Ohdxekcjjjj94hdkabad87ebabcwfhbaecufgembkkk;siliui99iue99dnaeTmbcbhiabhlindndnJ;Zl81Zalcof8UebgvciV:Y:vgoal8Ueb:YNgrJb;:FSNJbbbZJbbb:;arJbbbb9GEMgw:lJbbb9p9DTmbaw:OhDxekcjjjj94hDkalclf8Uebhqalcdf8UebhkabavcefciGaiVcetfaD87ebdndnaoak:YNgwJb;:FSNJbbbZJbbb:;awJbbbb9GEMgx:lJbbb9p9DTmbax:Ohkxekcjjjj94hkkabavcdfciGaiVcetfak87ebdndnaoaq:YNgoJb;:FSNJbbbZJbbb:;aoJbbbb9GEMgx:lJbbb9p9DTmbax:Ohqxekcjjjj94hqkabavcufciGaiVcetfaq87ebdndnJbbjZararN:tawawN:taoaoN:tgrJbbbbarJbbbb9GE:rJb;:FSNJbbbZMgr:lJbbb9p9DTmbar:Ohqxekcjjjj94hqkabavciGaiVcetfaq87ebalcwfhlaiclfhiaecufgembkkk9mbdnadcd4ae2geTmbinababydbgdcwtcw91:Yadce91cjjj;8ifcjjj98G::NUdbabclfhbaecufgembkkk9teiucbcbydj1jjbgeabcifc98GfgbBdj1jjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaik;LeeeudndnaeabVciGTmbabhixekdndnadcz9pmbabhixekabhiinaiaeydbBdbaiclfaeclfydbBdbaicwfaecwfydbBdbaicxfaecxfydbBdbaiczfhiaeczfheadc9Wfgdcs0mbkkadcl6mbinaiaeydbBdbaeclfheaiclfhiadc98fgdci0mbkkdnadTmbinaiaeRbb86bbaicefhiaecefheadcufgdmbkkabk;aeedudndnabciGTmbabhixekaecFeGc:b:c:ew2hldndnadcz9pmbabhixekabhiinaialBdbaicxfalBdbaicwfalBdbaiclfalBdbaiczfhiadc9Wfgdcs0mbkkadcl6mbinaialBdbaiclfhiadc98fgdci0mbkkdnadTmbinaiae86bbaicefhiadcufgdmbkkabkkkebcjwklz9Kbb";var wasm_simd="b9H79TebbbeKl9Gbb9Gvuuuuueu9Giuuub9Geueuikqbbebeedddilve9Weeeviebeoweuec:q;Aekr;leDo9TW9T9VV95dbH9F9F939H79T9F9J9H229F9Jt9VV7bb8A9TW79O9V9Wt9F9KW9J9V9KW9wWVtW949c919M9MWVbdY9TW79O9V9Wt9F9KW9J9V9KW69U9KW949c919M9MWVblE9TW79O9V9Wt9F9KW9J9V9KW69U9KW949tWG91W9U9JWbvL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9p9JtboK9TW79O9V9Wt9F9KW9J9V9KWS9P2tWV9r919HtbrL9TW79O9V9Wt9F9KW9J9V9KWS9P2tWVT949Wbwl79IV9RbDq;t9tqlbzik9:evu8Jjjjjbcz9Rhbcbheincbhdcbhiinabcwfadfaicjuaead4ceGglE86bbaialfhiadcefgdcw9hmbkaec:q:yjjbfai86bbaecitc:q1jjbfab8Piw83ibaecefgecjd9hmbkk;h8JlHud97euo978Jjjjjbcj;kb9Rgv8Kjjjjbc9:hodnadcefal0mbcuhoaiRbbc:Ge9hmbavaialfgrad9Rad;8qbbcj;abad9UhoaicefhldnadTmbaoc;WFbGgocjdaocjd6EhwcbhDinaDae9pmeawaeaD9RaDawfae6Egqcsfgoc9WGgkci2hxakcethmaocl4cifcd4hPabaDad2fhscbhzdnincehHalhOcbhAdninaraO9RaP6miavcj;cbfaAak2fhCaOaPfhlcbhidnakc;ab6mbaral9Rc;Gb6mbcbhoinaCaofhidndndndndnaOaoco4fRbbgXciGPlbedibkaipxbbbbbbbbbbbbbbbbpklbxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklbalczfhlkdndndndndnaXcd4ciGPlbedibkaipxbbbbbbbbbbbbbbbbpklzxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklzalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklzalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklzalczfhlkdndndndndnaXcl4ciGPlbedibkaipxbbbbbbbbbbbbbbbbpklaxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklaalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklaalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaialpbbbpklaalczfhlkdndndndndnaXco4Plbedibkaipxbbbbbbbbbbbbbbbbpkl8WxikaialpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibaXc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spkl8WalclfaYpQbfaXc:q:yjjbfRbbfhlxdkaialpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibaXc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgXcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spkl8WalcwfaYpQbfaXc:q:yjjbfRbbfhlxekaialpbbbpkl8Walczfhlkaoc;abfhiaocjefak0meaihoaral9Rc;Fb0mbkkdndnaiak9pmbaici4hoinaral9RcK6mdaCaifhXdndndndndnaOaico4fRbbaocoG4ciGPlbedibkaXpxbbbbbbbbbbbbbbbbpklbxikaXalpbblalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLgQcdp:meaQpmbzeHdOiAlCvXoQrLpxiiiiiiiiiiiiiiiip9ogLpxiiiiiiiiiiiiiiiip8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalclfaYpQbfaKc:q:yjjbfRbbfhlxdkaXalpbbwalpbbbgQclp:meaQpmbzeHdOiAlCvXoQrLpxssssssssssssssssp9ogLpxssssssssssssssssp8JgQp5b9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibaKc:q:yjjbfpbbbgYaYpmbbbbbbbbbbbbbbbbaQp5e9cjF;8;4;W;G;ab9:9cU1:NgKcitc:q1jjbfpbibp9UpmbedilvorzHOACXQLpPaLaQp9spklbalcwfaYpQbfaKc:q:yjjbfRbbfhlxekaXalpbbbpklbalczfhlkaocdfhoaiczfgiak6mbkkalTmbaAci6hHalhOaAcefgohAaoclSmdxekkcbhlaHceGmdkdnakTmbavcjdfazfhiavazfpbdbhYcbhXinaiavcj;cbfaXfgopblbgLcep9TaLpxeeeeeeeeeeeeeeeegQp9op9Hp9rgLaoakfpblbg8Acep9Ta8AaQp9op9Hp9rg8ApmbzeHdOiAlCvXoQrLgEaoamfpblbg3cep9Ta3aQp9op9Hp9rg3aoaxfpblbg5cep9Ta5aQp9op9Hp9rg5pmbzeHdOiAlCvXoQrLg8EpmbezHdiOAlvCXorQLgQaQpmbedibedibedibediaYp9UgYp9AdbbaiadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaEa8EpmwDKYqk8AExm35Ps8E8FgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaLa8ApmwKDYq8AkEx3m5P8Es8FgLa3a5pmwKDYq8AkEx3m5P8Es8Fg8ApmbezHdiOAlvCXorQLgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfgoaYaLa8ApmwDKYqk8AExm35Ps8E8FgQaQpmbedibedibedibedip9UgYp9AdbbaoadfgoaYaQaQpmlvorlvorlvorlvorp9UgYp9AdbbaoadfgoaYaQaQpmwDqkwDqkwDqkwDqkp9UgYp9AdbbaoadfgoaYaQaQpmxmPsxmPsxmPsxmPsp9UgYp9AdbbaoadfhiaXczfgXak6mbkkazclfgzad6mbkasavcjdfaqad2;8qbbavavcjdfaqcufad2fad;8qbbaqaDfhDc9:hoalmexikkc9:hoxekcbc99aral9Radcaadca0ESEhokavcj;kbf8Kjjjjbaokwbz:bjjjbk;uzeHu8Jjjjjbc;ae9Rgv8Kjjjjbc9:hodnaeci9UgrcHfal0mbcuhoaiRbbgwc;WeGc;Ge9hmbawcsGgDce0mbavc;abfcFecje;8kbavcUf9cu83ibavc8Wf9cu83ibavcyf9cu83ibavcaf9cu83ibavcKf9cu83ibavczf9cu83ibav9cu83iwav9cu83ibaialfc9WfhqaicefgwarfhodnaeTmbcmcsaDceSEhkcbhxcbhmcbhDcbhicbhlindnaoaq9nmbc9:hoxikdndnawRbbgrc;Ve0mbavc;abfalarcl4cu7fcsGcitfgPydlhsaPydbhzdnarcsGgPak9pmbavaiarcu7fcsGcdtfydbaxaPEhraPThPdndnadcd9hmbabaDcetfgHaz87ebaHcdfas87ebaHclfar87ebxekabaDcdtfgHazBdbaHclfasBdbaHcwfarBdbkaxaPfhxavc;abfalcitfgHarBdbaHasBdlavaicdtfarBdbavc;abfalcefcsGglcitfgHazBdbaHarBdlaiaPfhialcefhlxdkdndnaPcsSmbamaPfaPc987fcefhmxekaocefhrao8SbbgPcFeGhHdndnaPcu9mmbarhoxekaocvfhoaHcFbGhHcrhPdninar8SbbgOcFbGaPtaHVhHaOcu9kmearcefhraPcrfgPc8J9hmbxdkkarcefhokaHce4cbaHceG9R7amfhmkdndnadcd9hmbabaDcetfgraz87ebarcdfas87ebarclfam87ebxekabaDcdtfgrazBdbarclfasBdbarcwfamBdbkavc;abfalcitfgramBdbarasBdlavaicdtfamBdbavc;abfalcefcsGglcitfgrazBdbaramBdlaicefhialcefhlxekdnarcpe0mbaxcefgOavaiaqarcsGfRbbgPcl49RcsGcdtfydbaPcz6gHEhravaiaP9RcsGcdtfydbaOaHfgsaPcsGgOEhPaOThOdndnadcd9hmbabaDcetfgzax87ebazcdfar87ebazclfaP87ebxekabaDcdtfgzaxBdbazclfarBdbazcwfaPBdbkavaicdtfaxBdbavc;abfalcitfgzarBdbazaxBdlavaicefgicsGcdtfarBdbavc;abfalcefcsGcitfgzaPBdbazarBdlavaiaHfcsGgicdtfaPBdbavc;abfalcdfcsGglcitfgraxBdbaraPBdlalcefhlaiaOfhiasaOfhxxekaxcbaoRbbgzEgAarc;:eSgrfhsazcsGhCazcl4hXdndnazcs0mbascefhOxekashOavaiaX9RcsGcdtfydbhskdndnaCmbaOcefhxxekaOhxavaiaz9RcsGcdtfydbhOkdndnarTmbaocefhrxekaocdfhrao8SbegHcFeGhPdnaHcu9kmbaocofhAaPcFbGhPcrhodninar8SbbgHcFbGaotaPVhPaHcu9kmearcefhraocrfgoc8J9hmbkaAhrxekarcefhrkaPce4cbaPceG9R7amfgmhAkdndnaXcsSmbarhPxekarcefhPar8SbbgocFeGhHdnaocu9kmbarcvfhsaHcFbGhHcrhodninaP8SbbgrcFbGaotaHVhHarcu9kmeaPcefhPaocrfgoc8J9hmbkashPxekaPcefhPkaHce4cbaHceG9R7amfgmhskdndnaCcsSmbaPhoxekaPcefhoaP8SbbgrcFeGhHdnarcu9kmbaPcvfhOaHcFbGhHcrhrdninao8SbbgPcFbGartaHVhHaPcu9kmeaocefhoarcrfgrc8J9hmbkaOhoxekaocefhokaHce4cbaHceG9R7amfgmhOkdndnadcd9hmbabaDcetfgraA87ebarcdfas87ebarclfaO87ebxekabaDcdtfgraABdbarclfasBdbarcwfaOBdbkavc;abfalcitfgrasBdbaraABdlavaicdtfaABdbavc;abfalcefcsGcitfgraOBdbarasBdlavaicefgicsGcdtfasBdbavc;abfalcdfcsGcitfgraABdbaraOBdlavaiazcz6aXcsSVfgicsGcdtfaOBdbaiaCTaCcsSVfhialcifhlkawcefhwalcsGhlaicsGhiaDcifgDae6mbkkcbc99aoaqSEhokavc;aef8Kjjjjbaok:llevu8Jjjjjbcz9Rhvc9:hodnaecvfal0mbcuhoaiRbbc;:eGc;qe9hmbav9cb83iwaicefhraialfc98fhwdnaeTmbdnadcdSmbcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcdtfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfglBdbaoalBdbaDcefgDae9hmbxdkkcbhDindnaraw6mbc9:skarcefhoar8SbbglcFeGhidndnalcu9mmbaohrxekarcvfhraicFbGhicrhldninao8SbbgdcFbGaltaiVhiadcu9kmeaocefhoalcrfglc8J9hmbxdkkaocefhrkabaDcetfaicd4cbaice4ceG9R7avcwfaiceGcdtVgoydbfgl87ebaoalBdbaDcefgDae9hmbkkcbc99arawSEhokaok:EPliuo97eue978Jjjjjbca9Rhidndnadcl9hmbdnaec98GglTmbcbhvabhdinadadpbbbgocKp:RecKp:Sep;6egraocwp:RecKp:Sep;6earp;Geaoczp:RecKp:Sep;6egwp;Gep;Kep;LegDpxbbbbbbbbbbbbbbbbp:2egqarpxbbbjbbbjbbbjbbbjgkp9op9rp;Kegrpxbb;:9cbb;:9cbb;:9cbb;:9cararp;MeaDaDp;Meawaqawakp9op9rp;Kegrarp;Mep;Kep;Kep;Jep;Negwp;Mepxbbn0bbn0bbn0bbn0gqp;KepxFbbbFbbbFbbbFbbbp9oaopxbbbFbbbFbbbFbbbFp9op9qarawp;Meaqp;Kecwp:RepxbFbbbFbbbFbbbFbbp9op9qaDawp;Meaqp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qpkbbadczfhdavclfgval6mbkkalae9pmeaiaeciGgvcdtgdVcbczad9R;8kbaiabalcdtfglad;8qbbdnavTmbaiaipblbgocKp:RecKp:Sep;6egraocwp:RecKp:Sep;6earp;Geaoczp:RecKp:Sep;6egwp;Gep;Kep;LegDpxbbbbbbbbbbbbbbbbp:2egqarpxbbbjbbbjbbbjbbbjgkp9op9rp;Kegrpxbb;:9cbb;:9cbb;:9cbb;:9cararp;MeaDaDp;Meawaqawakp9op9rp;Kegrarp;Mep;Kep;Kep;Jep;Negwp;Mepxbbn0bbn0bbn0bbn0gqp;KepxFbbbFbbbFbbbFbbbp9oaopxbbbFbbbFbbbFbbbFp9op9qarawp;Meaqp;Kecwp:RepxbFbbbFbbbFbbbFbbp9op9qaDawp;Meaqp;Keczp:RepxbbFbbbFbbbFbbbFbp9op9qpklbkalaiad;8qbbskdnaec98GgxTmbcbhvabhdinadczfglalpbbbgopxbbbbbbFFbbbbbbFFgkp9oadpbbbgDaopmlvorxmPsCXQL358E8FpxFubbFubbFubbFubbp9op;6eaDaopmbediwDqkzHOAKY8AEgoczp:Sep;6egrp;Geaoczp:Reczp:Sep;6egwp;Gep;Kep;Legopxb;:FSb;:FSb;:FSb;:FSawaopxbbbbbbbbbbbbbbbbp:2egqawpxbbbjbbbjbbbjbbbjgmp9op9rp;Kegwawp;Meaoaop;Mearaqaramp9op9rp;Kegoaop;Mep;Kep;Kep;Jep;Negrp;Mepxbbn0bbn0bbn0bbn0gqp;Keczp:Reawarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9op9qgwaoarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9ogopmwDKYqk8AExm35Ps8E8Fp9qpkbbadaDakp9oawaopmbezHdiOAlvCXorQLp9qpkbbadcafhdavclfgvax6mbkkaxae9pmbaiaeciGgvcitgdfcbcaad9R;8kbaiabaxcitfglad;8qbbdnavTmbaiaipblzgopxbbbbbbFFbbbbbbFFgkp9oaipblbgDaopmlvorxmPsCXQL358E8FpxFubbFubbFubbFubbp9op;6eaDaopmbediwDqkzHOAKY8AEgoczp:Sep;6egrp;Geaoczp:Reczp:Sep;6egwp;Gep;Kep;Legopxb;:FSb;:FSb;:FSb;:FSawaopxbbbbbbbbbbbbbbbbp:2egqawpxbbbjbbbjbbbjbbbjgmp9op9rp;Kegwawp;Meaoaop;Mearaqaramp9op9rp;Kegoaop;Mep;Kep;Kep;Jep;Negrp;Mepxbbn0bbn0bbn0bbn0gqp;Keczp:Reawarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9op9qgwaoarp;Meaqp;KepxFFbbFFbbFFbbFFbbp9ogopmwDKYqk8AExm35Ps8E8Fp9qpklzaiaDakp9oawaopmbezHdiOAlvCXorQLp9qpklbkalaiad;8qbbkk;4wllue97euv978Jjjjjbc8W9Rhidnaec98GglTmbcbhvabhoinaiaopbbbgraoczfgwpbbbgDpmlvorxmPsCXQL358E8Fgqczp:Segkclp:RepklbaopxbbjZbbjZbbjZbbjZpx;Zl81Z;Zl81Z;Zl81Z;Zl81Zakpxibbbibbbibbbibbbp9qp;6ep;NegkaraDpmbediwDqkzHOAKY8AEgrczp:Reczp:Sep;6ep;MegDaDp;Meakarczp:Sep;6ep;Megxaxp;Meakaqczp:Reczp:Sep;6ep;Megqaqp;Mep;Kep;Kep;Lepxbbbbbbbbbbbbbbbbp:4ep;Jepxb;:FSb;:FSb;:FSb;:FSgkp;Mepxbbn0bbn0bbn0bbn0grp;KepxFFbbFFbbFFbbFFbbgmp9oaxakp;Mearp;Keczp:Rep9qgxaqakp;Mearp;Keczp:ReaDakp;Mearp;Keamp9op9qgkpmbezHdiOAlvCXorQLgrp5baipblbpEb:T:j83ibaocwfarp5eaipblbpEe:T:j83ibawaxakpmwDKYqk8AExm35Ps8E8Fgkp5baipblbpEd:T:j83ibaocKfakp5eaipblbpEi:T:j83ibaocafhoavclfgval6mbkkdnalae9pmbaiaeciGgvcitgofcbcaao9R;8kbaiabalcitfgwao;8qbbdnavTmbaiaipblbgraipblzgDpmlvorxmPsCXQL358E8Fgqczp:Segkclp:RepklaaipxbbjZbbjZbbjZbbjZpx;Zl81Z;Zl81Z;Zl81Z;Zl81Zakpxibbbibbbibbbibbbp9qp;6ep;NegkaraDpmbediwDqkzHOAKY8AEgrczp:Reczp:Sep;6ep;MegDaDp;Meakarczp:Sep;6ep;Megxaxp;Meakaqczp:Reczp:Sep;6ep;Megqaqp;Mep;Kep;Kep;Lepxbbbbbbbbbbbbbbbbp:4ep;Jepxb;:FSb;:FSb;:FSb;:FSgkp;Mepxbbn0bbn0bbn0bbn0grp;KepxFFbbFFbbFFbbFFbbgmp9oaxakp;Mearp;Keczp:Rep9qgxaqakp;Mearp;Keczp:ReaDakp;Mearp;Keamp9op9qgkpmbezHdiOAlvCXorQLgrp5baipblapEb:T:j83ibaiarp5eaipblapEe:T:j83iwaiaxakpmwDKYqk8AExm35Ps8E8Fgkp5baipblapEd:T:j83izaiakp5eaipblapEi:T:j83iKkawaiao;8qbbkk:Pddiue978Jjjjjbc;ab9Rhidnadcd4ae2glc98GgvTmbcbhdabheinaeaepbbbgocwp:Recwp:Sep;6eaocep:SepxbbjZbbjZbbjZbbjZp:UepxbbjFbbjFbbjFbbjFp9op;Mepkbbaeczfheadclfgdav6mbkkdnaval9pmbaialciGgdcdtgeVcbc;abae9R;8kbaiabavcdtfgvae;8qbbdnadTmbaiaipblbgocwp:Recwp:Sep;6eaocep:SepxbbjZbbjZbbjZbbjZp:UepxbbjFbbjFbbjFbbjFp9op;Mepklbkavaiae;8qbbkk9teiucbcbydj1jjbgeabcifc98GfgbBdj1jjbdndnabZbcztgd9nmbcuhiabad9RcFFifcz4nbcuSmekaehikaikkkebcjwklz9Tbb";var detector=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);var wasmpack=new Uint8Array([32,0,65,2,1,106,34,33,3,128,11,4,13,64,6,253,10,7,15,116,127,5,8,12,40,16,19,54,20,9,27,255,113,17,42,67,24,23,146,148,18,14,22,45,70,69,56,114,101,21,25,63,75,136,108,28,118,29,73,115]);if(typeof WebAssembly!=="object"){return{supported:false}}var wasm=WebAssembly.validate(detector)?wasm_simd:wasm_base;var instance;var ready=WebAssembly.instantiate(unpack(wasm),{}).then(function(result){instance=result.instance;instance.exports.__wasm_call_ctors()});function unpack(data){var result=new Uint8Array(data.length);for(var i=0;i<data.length;++i){var ch=data.charCodeAt(i);result[i]=ch>96?ch-97:ch>64?ch-39:ch+4}var write=0;for(var i=0;i<data.length;++i){result[write++]=result[i]<60?wasmpack[result[i]]:(result[i]-60)*64+result[++i]}return result.buffer.slice(0,write)}function decode(fun,target,count,size,source,filter){var sbrk=instance.exports.sbrk;var count4=count+3&~3;var tp=sbrk(count4*size);var sp=sbrk(source.length);var heap=new Uint8Array(instance.exports.memory.buffer);heap.set(source,sp);var res=fun(tp,count,size,sp,source.length);if(res==0&&filter){filter(tp,count4,size)}target.set(heap.subarray(tp,tp+count*size));sbrk(tp-sbrk(0));if(res!=0){throw new Error("Malformed buffer data: "+res)}}var filters={NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"};var decoders={ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};var workers=[];var requestId=0;function createWorker(url){var worker={object:new Worker(url),pending:0,requests:{}};worker.object.onmessage=function(event){var data=event.data;worker.pending-=data.count;worker.requests[data.id][data.action](data.value);delete worker.requests[data.id]};return worker}function initWorkers(count){var source="var instance; var ready = WebAssembly.instantiate(new Uint8Array(["+new Uint8Array(unpack(wasm))+"]), {})"+".then(function(result) { instance = result.instance; instance.exports.__wasm_call_ctors(); });"+"self.onmessage = workerProcess;"+decode.toString()+workerProcess.toString();var blob=new Blob([source],{type:"text/javascript"});var url=URL.createObjectURL(blob);for(var i=0;i<count;++i){workers[i]=createWorker(url)}URL.revokeObjectURL(url)}function decodeWorker(count,size,source,mode,filter){var worker=workers[0];for(var i=1;i<workers.length;++i){if(workers[i].pending<worker.pending){worker=workers[i]}}return new Promise(function(resolve,reject){var data=new Uint8Array(source);var id=requestId++;worker.pending+=count;worker.requests[id]={resolve:resolve,reject:reject};worker.object.postMessage({id:id,count:count,size:size,source:data,mode:mode,filter:filter},[data.buffer])})}function workerProcess(event){ready.then(function(){var data=event.data;try{var target=new Uint8Array(data.count*data.size);decode(instance.exports[data.mode],target,data.count,data.size,data.source,instance.exports[data.filter]);self.postMessage({id:data.id,count:data.count,action:"resolve",value:target},[target.buffer])}catch(error){self.postMessage({id:data.id,count:data.count,action:"reject",value:error})}})}return{ready:ready,supported:true,useWorkers:function(count){initWorkers(count)},decodeVertexBuffer:function(target,count,size,source,filter){decode(instance.exports.meshopt_decodeVertexBuffer,target,count,size,source,instance.exports[filters[filter]])},decodeIndexBuffer:function(target,count,size,source){decode(instance.exports.meshopt_decodeIndexBuffer,target,count,size,source)},decodeIndexSequence:function(target,count,size,source){decode(instance.exports.meshopt_decodeIndexSequence,target,count,size,source)},decodeGltfBuffer:function(target,count,size,source,mode,filter){decode(instance.exports[decoders[mode]],target,count,size,source,instance.exports[filters[filter]])},decodeGltfBufferAsync:function(count,size,source,mode,filter){if(workers.length>0){return decodeWorker(count,size,source,decoders[mode],filters[filter])}return ready.then(function(){var target=new Uint8Array(count*size);decode(instance.exports[decoders[mode]],target,count,size,source,instance.exports[filters[filter]]);return target})}}}();(function(t,e){e(t.THREE=t.THREE||{})})(this,function(THREE){var Color=THREE.Color,Vector3=THREE.Vector3;class Face3{constructor(a,b,c,normal,color,materialIndex=0){this.a=a;this.b=b;this.c=c;this.normal=normal&&normal.isVector3?normal:new Vector3;this.vertexNormals=Array.isArray(normal)?normal:[];this.color=color&&color.isColor?color:new Color;this.vertexColors=Array.isArray(color)?color:[];this.materialIndex=materialIndex}clone(){return new this.constructor().copy(this)}copy(source){this.a=source.a;this.b=source.b;this.c=source.c;this.normal.copy(source.normal);this.color.copy(source.color);this.materialIndex=source.materialIndex;for(let i=0,il=source.vertexNormals.length;i<il;i++){this.vertexNormals[i]=source.vertexNormals[i].clone()}for(let i=0,il=source.vertexColors.length;i<il;i++){this.vertexColors[i]=source.vertexColors[i].clone()}return this}}THREE.Face3=Face3});(function(t,e){e(t.THREE=t.THREE||{})})(this,function(THREE){var Box3=THREE.Box3,BufferAttribute=THREE.BufferAttribute,BufferGeometry=THREE.BufferGeometry,Color=THREE.Color,EventDispatcher=THREE.EventDispatcher,Float32BufferAttribute=THREE.Float32BufferAttribute,Matrix3=THREE.Matrix3,Matrix4=THREE.Matrix4,MathUtils=THREE.MathUtils,Object3D=THREE.Object3D,Sphere=THREE.Sphere,Vector2=THREE.Vector2,Vector3=THREE.Vector3;const _m1=new Matrix4;const _obj=new Object3D;const _offset=new Vector3;class Geometry extends EventDispatcher{constructor(){super();this.uuid=MathUtils.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.boundingBox=null;this.boundingSphere=null;this.elementsNeedUpdate=false;this.verticesNeedUpdate=false;this.uvsNeedUpdate=false;this.normalsNeedUpdate=false;this.colorsNeedUpdate=false;this.lineDistancesNeedUpdate=false;this.groupsNeedUpdate=false}applyMatrix4(matrix){const normalMatrix=new Matrix3().getNormalMatrix(matrix);for(let i=0,il=this.vertices.length;i<il;i++){const vertex=this.vertices[i];vertex.applyMatrix4(matrix)}for(let i=0,il=this.faces.length;i<il;i++){const face=this.faces[i];face.normal.applyMatrix3(normalMatrix).normalize();for(let j=0,jl=face.vertexNormals.length;j<jl;j++){face.vertexNormals[j].applyMatrix3(normalMatrix).normalize()}}if(this.boundingBox!==null){this.computeBoundingBox()}if(this.boundingSphere!==null){this.computeBoundingSphere()}this.verticesNeedUpdate=true;this.normalsNeedUpdate=true;return this}rotateX(angle){_m1.makeRotationX(angle);this.applyMatrix4(_m1);return this}rotateY(angle){_m1.makeRotationY(angle);this.applyMatrix4(_m1);return this}rotateZ(angle){_m1.makeRotationZ(angle);this.applyMatrix4(_m1);return this}translate(x,y,z){_m1.makeTranslation(x,y,z);this.applyMatrix4(_m1);return this}scale(x,y,z){_m1.makeScale(x,y,z);this.applyMatrix4(_m1);return this}lookAt(vector){_obj.lookAt(vector);_obj.updateMatrix();this.applyMatrix4(_obj.matrix);return this}fromBufferGeometry(geometry){const scope=this;const index=geometry.index!==null?geometry.index:undefined;const attributes=geometry.attributes;if(attributes.position===undefined){console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion.");return this}const position=attributes.position;const normal=attributes.normal;const color=attributes.color;const uv=attributes.uv;const uv2=attributes.uv2;if(uv2!==undefined)this.faceVertexUvs[1]=[];for(let i=0;i<position.count;i++){scope.vertices.push(new Vector3().fromBufferAttribute(position,i));if(color!==undefined){scope.colors.push(new Color().fromBufferAttribute(color,i))}}function addFace(a,b,c,materialIndex){const vertexColors=color===undefined?[]:[scope.colors[a].clone(),scope.colors[b].clone(),scope.colors[c].clone()];const vertexNormals=normal===undefined?[]:[new Vector3().fromBufferAttribute(normal,a),new Vector3().fromBufferAttribute(normal,b),new Vector3().fromBufferAttribute(normal,c)];const face=new Face3(a,b,c,vertexNormals,vertexColors,materialIndex);scope.faces.push(face);if(uv!==undefined){scope.faceVertexUvs[0].push([new Vector2().fromBufferAttribute(uv,a),new Vector2().fromBufferAttribute(uv,b),new Vector2().fromBufferAttribute(uv,c)])}if(uv2!==undefined){scope.faceVertexUvs[1].push([new Vector2().fromBufferAttribute(uv2,a),new Vector2().fromBufferAttribute(uv2,b),new Vector2().fromBufferAttribute(uv2,c)])}}const groups=geometry.groups;if(groups.length>0){for(let i=0;i<groups.length;i++){const group=groups[i];const start=group.start;const count=group.count;for(let j=start,jl=start+count;j<jl;j+=3){if(index!==undefined){addFace(index.getX(j),index.getX(j+1),index.getX(j+2),group.materialIndex)}else{addFace(j,j+1,j+2,group.materialIndex)}}}}else{if(index!==undefined){for(let i=0;i<index.count;i+=3){addFace(index.getX(i),index.getX(i+1),index.getX(i+2))}}else{for(let i=0;i<position.count;i+=3){addFace(i,i+1,i+2)}}}this.computeFaceNormals();if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone()}if(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone()}return this}center(){this.computeBoundingBox();this.boundingBox.getCenter(_offset).negate();this.translate(_offset.x,_offset.y,_offset.z);return this}normalize(){this.computeBoundingSphere();const center=this.boundingSphere.center;const radius=this.boundingSphere.radius;const s=radius===0?1:1/radius;const matrix=new Matrix4;matrix.set(s,0,0,-s*center.x,0,s,0,-s*center.y,0,0,s,-s*center.z,0,0,0,1);this.applyMatrix4(matrix);return this}computeFaceNormals(){const cb=new Vector3,ab=new Vector3;for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];const vA=this.vertices[face.a];const vB=this.vertices[face.b];const vC=this.vertices[face.c];cb.subVectors(vC,vB);ab.subVectors(vA,vB);cb.cross(ab);cb.normalize();face.normal.copy(cb)}}computeVertexNormals(areaWeighted=true){const vertices=new Array(this.vertices.length);for(let v=0,vl=this.vertices.length;v<vl;v++){vertices[v]=new Vector3}if(areaWeighted){const cb=new Vector3,ab=new Vector3;for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];const vA=this.vertices[face.a];const vB=this.vertices[face.b];const vC=this.vertices[face.c];cb.subVectors(vC,vB);ab.subVectors(vA,vB);cb.cross(ab);vertices[face.a].add(cb);vertices[face.b].add(cb);vertices[face.c].add(cb)}}else{this.computeFaceNormals();for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];vertices[face.a].add(face.normal);vertices[face.b].add(face.normal);vertices[face.c].add(face.normal)}}for(let v=0,vl=this.vertices.length;v<vl;v++){vertices[v].normalize()}for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];const vertexNormals=face.vertexNormals;if(vertexNormals.length===3){vertexNormals[0].copy(vertices[face.a]);vertexNormals[1].copy(vertices[face.b]);vertexNormals[2].copy(vertices[face.c])}else{vertexNormals[0]=vertices[face.a].clone();vertexNormals[1]=vertices[face.b].clone();vertexNormals[2]=vertices[face.c].clone()}}if(this.faces.length>0){this.normalsNeedUpdate=true}}computeFlatVertexNormals(){this.computeFaceNormals();for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];const vertexNormals=face.vertexNormals;if(vertexNormals.length===3){vertexNormals[0].copy(face.normal);vertexNormals[1].copy(face.normal);vertexNormals[2].copy(face.normal)}else{vertexNormals[0]=face.normal.clone();vertexNormals[1]=face.normal.clone();vertexNormals[2]=face.normal.clone()}}if(this.faces.length>0){this.normalsNeedUpdate=true}}computeMorphNormals(){for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];if(!face.__originalFaceNormal){face.__originalFaceNormal=face.normal.clone()}else{face.__originalFaceNormal.copy(face.normal)}if(!face.__originalVertexNormals)face.__originalVertexNormals=[];for(let i=0,il=face.vertexNormals.length;i<il;i++){if(!face.__originalVertexNormals[i]){face.__originalVertexNormals[i]=face.vertexNormals[i].clone()}else{face.__originalVertexNormals[i].copy(face.vertexNormals[i])}}}const tmpGeo=new Geometry;tmpGeo.faces=this.faces;for(let i=0,il=this.morphTargets.length;i<il;i++){if(!this.morphNormals[i]){this.morphNormals[i]={};this.morphNormals[i].faceNormals=[];this.morphNormals[i].vertexNormals=[];const dstNormalsFace=this.morphNormals[i].faceNormals;const dstNormalsVertex=this.morphNormals[i].vertexNormals;for(let f=0,fl=this.faces.length;f<fl;f++){const faceNormal=new Vector3;const vertexNormals={a:new Vector3,b:new Vector3,c:new Vector3};dstNormalsFace.push(faceNormal);dstNormalsVertex.push(vertexNormals)}}const morphNormals=this.morphNormals[i];tmpGeo.vertices=this.morphTargets[i].vertices;tmpGeo.computeFaceNormals();tmpGeo.computeVertexNormals();for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];const faceNormal=morphNormals.faceNormals[f];const vertexNormals=morphNormals.vertexNormals[f];faceNormal.copy(face.normal);vertexNormals.a.copy(face.vertexNormals[0]);vertexNormals.b.copy(face.vertexNormals[1]);vertexNormals.c.copy(face.vertexNormals[2])}}for(let f=0,fl=this.faces.length;f<fl;f++){const face=this.faces[f];face.normal=face.__originalFaceNormal;face.vertexNormals=face.__originalVertexNormals}}computeBoundingBox(){if(this.boundingBox===null){this.boundingBox=new Box3}this.boundingBox.setFromPoints(this.vertices)}computeBoundingSphere(){if(this.boundingSphere===null){this.boundingSphere=new Sphere}this.boundingSphere.setFromPoints(this.vertices)}merge(geometry,matrix,materialIndexOffset=0){if(!(geometry&&geometry.isGeometry)){console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",geometry);return}let normalMatrix;const vertexOffset=this.vertices.length,vertices1=this.vertices,vertices2=geometry.vertices,faces1=this.faces,faces2=geometry.faces,colors1=this.colors,colors2=geometry.colors;if(matrix!==undefined){normalMatrix=new Matrix3().getNormalMatrix(matrix)}for(let i=0,il=vertices2.length;i<il;i++){const vertex=vertices2[i];const vertexCopy=vertex.clone();if(matrix!==undefined)vertexCopy.applyMatrix4(matrix);vertices1.push(vertexCopy)}for(let i=0,il=colors2.length;i<il;i++){colors1.push(colors2[i].clone())}for(let i=0,il=faces2.length;i<il;i++){const face=faces2[i];let normal,color;const faceVertexNormals=face.vertexNormals,faceVertexColors=face.vertexColors;const faceCopy=new Face3(face.a+vertexOffset,face.b+vertexOffset,face.c+vertexOffset);faceCopy.normal.copy(face.normal);if(normalMatrix!==undefined){faceCopy.normal.applyMatrix3(normalMatrix).normalize()}for(let j=0,jl=faceVertexNormals.length;j<jl;j++){normal=faceVertexNormals[j].clone();if(normalMatrix!==undefined){normal.applyMatrix3(normalMatrix).normalize()}faceCopy.vertexNormals.push(normal)}faceCopy.color.copy(face.color);for(let j=0,jl=faceVertexColors.length;j<jl;j++){color=faceVertexColors[j];faceCopy.vertexColors.push(color.clone())}faceCopy.materialIndex=face.materialIndex+materialIndexOffset;faces1.push(faceCopy)}for(let i=0,il=geometry.faceVertexUvs.length;i<il;i++){const faceVertexUvs2=geometry.faceVertexUvs[i];if(this.faceVertexUvs[i]===undefined)this.faceVertexUvs[i]=[];for(let j=0,jl=faceVertexUvs2.length;j<jl;j++){const uvs2=faceVertexUvs2[j],uvsCopy=[];for(let k=0,kl=uvs2.length;k<kl;k++){uvsCopy.push(uvs2[k].clone())}this.faceVertexUvs[i].push(uvsCopy)}}}mergeMesh(mesh){if(!(mesh&&mesh.isMesh)){console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",mesh);return}if(mesh.matrixAutoUpdate)mesh.updateMatrix();this.merge(mesh.geometry,mesh.matrix)}mergeVertices(precisionPoints=4){const verticesMap={};const unique=[],changes=[];const precision=Math.pow(10,precisionPoints);for(let i=0,il=this.vertices.length;i<il;i++){const v=this.vertices[i];const key=Math.round(v.x*precision)+"_"+Math.round(v.y*precision)+"_"+Math.round(v.z*precision);if(verticesMap[key]===undefined){verticesMap[key]=i;unique.push(this.vertices[i]);changes[i]=unique.length-1}else{changes[i]=changes[verticesMap[key]]}}const faceIndicesToRemove=[];for(let i=0,il=this.faces.length;i<il;i++){const face=this.faces[i];face.a=changes[face.a];face.b=changes[face.b];face.c=changes[face.c];const indices=[face.a,face.b,face.c];for(let n=0;n<3;n++){if(indices[n]===indices[(n+1)%3]){faceIndicesToRemove.push(i);break}}}for(let i=faceIndicesToRemove.length-1;i>=0;i--){const idx=faceIndicesToRemove[i];this.faces.splice(idx,1);for(let j=0,jl=this.faceVertexUvs.length;j<jl;j++){this.faceVertexUvs[j].splice(idx,1)}}const diff=this.vertices.length-unique.length;this.vertices=unique;return diff}setFromPoints(points){this.vertices=[];for(let i=0,l=points.length;i<l;i++){const point=points[i];this.vertices.push(new Vector3(point.x,point.y,point.z||0))}return this}sortFacesByMaterialIndex(){const faces=this.faces;const length=faces.length;for(let i=0;i<length;i++){faces[i]._id=i}function materialIndexSort(a,b){return a.materialIndex-b.materialIndex}faces.sort(materialIndexSort);const uvs1=this.faceVertexUvs[0];const uvs2=this.faceVertexUvs[1];let newUvs1,newUvs2;if(uvs1&&uvs1.length===length)newUvs1=[];if(uvs2&&uvs2.length===length)newUvs2=[];for(let i=0;i<length;i++){const id=faces[i]._id;if(newUvs1)newUvs1.push(uvs1[id]);if(newUvs2)newUvs2.push(uvs2[id])}if(newUvs1)this.faceVertexUvs[0]=newUvs1;if(newUvs2)this.faceVertexUvs[1]=newUvs2}toJSON(){const data={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};data.uuid=this.uuid;data.type=this.type;if(this.name!=="")data.name=this.name;if(this.parameters!==undefined){const parameters=this.parameters;for(const key in parameters){if(parameters[key]!==undefined)data[key]=parameters[key]}return data}const vertices=[];for(let i=0;i<this.vertices.length;i++){const vertex=this.vertices[i];vertices.push(vertex.x,vertex.y,vertex.z)}const faces=[];const normals=[];const normalsHash={};const colors=[];const colorsHash={};const uvs=[];const uvsHash={};for(let i=0;i<this.faces.length;i++){const face=this.faces[i];const hasMaterial=true;const hasFaceUv=false;const hasFaceVertexUv=this.faceVertexUvs[0][i]!==undefined;const hasFaceNormal=face.normal.length()>0;const hasFaceVertexNormal=face.vertexNormals.length>0;const hasFaceColor=face.color.r!==1||face.color.g!==1||face.color.b!==1;const hasFaceVertexColor=face.vertexColors.length>0;let faceType=0;faceType=setBit(faceType,0,0);faceType=setBit(faceType,1,hasMaterial);faceType=setBit(faceType,2,hasFaceUv);faceType=setBit(faceType,3,hasFaceVertexUv);faceType=setBit(faceType,4,hasFaceNormal);faceType=setBit(faceType,5,hasFaceVertexNormal);faceType=setBit(faceType,6,hasFaceColor);faceType=setBit(faceType,7,hasFaceVertexColor);faces.push(faceType);faces.push(face.a,face.b,face.c);faces.push(face.materialIndex);if(hasFaceVertexUv){const faceVertexUvs=this.faceVertexUvs[0][i];faces.push(getUvIndex(faceVertexUvs[0]),getUvIndex(faceVertexUvs[1]),getUvIndex(faceVertexUvs[2]))}if(hasFaceNormal){faces.push(getNormalIndex(face.normal))}if(hasFaceVertexNormal){const vertexNormals=face.vertexNormals;faces.push(getNormalIndex(vertexNormals[0]),getNormalIndex(vertexNormals[1]),getNormalIndex(vertexNormals[2]))}if(hasFaceColor){faces.push(getColorIndex(face.color))}if(hasFaceVertexColor){const vertexColors=face.vertexColors;faces.push(getColorIndex(vertexColors[0]),getColorIndex(vertexColors[1]),getColorIndex(vertexColors[2]))}}function setBit(value,position,enabled){return enabled?value|1<<position:value&~(1<<position)}function getNormalIndex(normal){const hash=normal.x.toString()+normal.y.toString()+normal.z.toString();if(normalsHash[hash]!==undefined){return normalsHash[hash]}normalsHash[hash]=normals.length/3;normals.push(normal.x,normal.y,normal.z);return normalsHash[hash]}function getColorIndex(color){const hash=color.r.toString()+color.g.toString()+color.b.toString();if(colorsHash[hash]!==undefined){return colorsHash[hash]}colorsHash[hash]=colors.length;colors.push(color.getHex());return colorsHash[hash]}function getUvIndex(uv){const hash=uv.x.toString()+uv.y.toString();if(uvsHash[hash]!==undefined){return uvsHash[hash]}uvsHash[hash]=uvs.length/2;uvs.push(uv.x,uv.y);return uvsHash[hash]}data.data={};data.data.vertices=vertices;data.data.normals=normals;if(colors.length>0)data.data.colors=colors;if(uvs.length>0)data.data.uvs=[uvs];data.data.faces=faces;return data}clone(){return new Geometry().copy(this)}copy(source){this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingBox=null;this.boundingSphere=null;this.name=source.name;const vertices=source.vertices;for(let i=0,il=vertices.length;i<il;i++){this.vertices.push(vertices[i].clone())}const colors=source.colors;for(let i=0,il=colors.length;i<il;i++){this.colors.push(colors[i].clone())}const faces=source.faces;for(let i=0,il=faces.length;i<il;i++){this.faces.push(faces[i].clone())}for(let i=0,il=source.faceVertexUvs.length;i<il;i++){const faceVertexUvs=source.faceVertexUvs[i];if(this.faceVertexUvs[i]===undefined){this.faceVertexUvs[i]=[]}for(let j=0,jl=faceVertexUvs.length;j<jl;j++){const uvs=faceVertexUvs[j],uvsCopy=[];for(let k=0,kl=uvs.length;k<kl;k++){const uv=uvs[k];uvsCopy.push(uv.clone())}this.faceVertexUvs[i].push(uvsCopy)}}const morphTargets=source.morphTargets;for(let i=0,il=morphTargets.length;i<il;i++){const morphTarget={};morphTarget.name=morphTargets[i].name;if(morphTargets[i].vertices!==undefined){morphTarget.vertices=[];for(let j=0,jl=morphTargets[i].vertices.length;j<jl;j++){morphTarget.vertices.push(morphTargets[i].vertices[j].clone())}}if(morphTargets[i].normals!==undefined){morphTarget.normals=[];for(let j=0,jl=morphTargets[i].normals.length;j<jl;j++){morphTarget.normals.push(morphTargets[i].normals[j].clone())}}this.morphTargets.push(morphTarget)}const morphNormals=source.morphNormals;for(let i=0,il=morphNormals.length;i<il;i++){const morphNormal={};if(morphNormals[i].vertexNormals!==undefined){morphNormal.vertexNormals=[];for(let j=0,jl=morphNormals[i].vertexNormals.length;j<jl;j++){const srcVertexNormal=morphNormals[i].vertexNormals[j];const destVertexNormal={};destVertexNormal.a=srcVertexNormal.a.clone();destVertexNormal.b=srcVertexNormal.b.clone();destVertexNormal.c=srcVertexNormal.c.clone();morphNormal.vertexNormals.push(destVertexNormal)}}if(morphNormals[i].faceNormals!==undefined){morphNormal.faceNormals=[];for(let j=0,jl=morphNormals[i].faceNormals.length;j<jl;j++){morphNormal.faceNormals.push(morphNormals[i].faceNormals[j].clone())}}this.morphNormals.push(morphNormal)}const skinWeights=source.skinWeights;for(let i=0,il=skinWeights.length;i<il;i++){this.skinWeights.push(skinWeights[i].clone())}const skinIndices=source.skinIndices;for(let i=0,il=skinIndices.length;i<il;i++){this.skinIndices.push(skinIndices[i].clone())}const lineDistances=source.lineDistances;for(let i=0,il=lineDistances.length;i<il;i++){this.lineDistances.push(lineDistances[i])}const boundingBox=source.boundingBox;if(boundingBox!==null){this.boundingBox=boundingBox.clone()}const boundingSphere=source.boundingSphere;if(boundingSphere!==null){this.boundingSphere=boundingSphere.clone()}this.elementsNeedUpdate=source.elementsNeedUpdate;this.verticesNeedUpdate=source.verticesNeedUpdate;this.uvsNeedUpdate=source.uvsNeedUpdate;this.normalsNeedUpdate=source.normalsNeedUpdate;this.colorsNeedUpdate=source.colorsNeedUpdate;this.lineDistancesNeedUpdate=source.lineDistancesNeedUpdate;this.groupsNeedUpdate=source.groupsNeedUpdate;return this}toBufferGeometry(){const geometry=new DirectGeometry().fromGeometry(this);const buffergeometry=new BufferGeometry;const positions=new Float32Array(geometry.vertices.length*3);buffergeometry.setAttribute("position",copyVector3sArray(new BufferAttribute(positions,3),geometry.vertices));if(geometry.normals.length>0){const normals=new Float32Array(geometry.normals.length*3);buffergeometry.setAttribute("normal",copyVector3sArray(new BufferAttribute(normals,3),geometry.normals))}if(geometry.colors.length>0){const colors=new Float32Array(geometry.colors.length*3);buffergeometry.setAttribute("color",copyColorsArray(new BufferAttribute(colors,3),geometry.colors))}if(geometry.uvs.length>0){const uvs=new Float32Array(geometry.uvs.length*2);buffergeometry.setAttribute("uv",copyVector2sArray(new BufferAttribute(uvs,2),geometry.uvs))}if(geometry.uvs2.length>0){const uvs2=new Float32Array(geometry.uvs2.length*2);buffergeometry.setAttribute("uv2",copyVector2sArray(new BufferAttribute(uvs2,2),geometry.uvs2))}buffergeometry.groups=geometry.groups;for(const name in geometry.morphTargets){const array=[];const morphTargets=geometry.morphTargets[name];for(let i=0,l=morphTargets.length;i<l;i++){const morphTarget=morphTargets[i];const attribute=new Float32BufferAttribute(morphTarget.data.length*3,3);attribute.name=morphTarget.name;array.push(copyVector3sArray(attribute,morphTarget.data))}buffergeometry.morphAttributes[name]=array}if(geometry.skinIndices.length>0){const skinIndices=new Float32BufferAttribute(geometry.skinIndices.length*4,4);buffergeometry.setAttribute("skinIndex",copyVector4sArray(skinIndices,geometry.skinIndices))}if(geometry.skinWeights.length>0){const skinWeights=new Float32BufferAttribute(geometry.skinWeights.length*4,4);buffergeometry.setAttribute("skinWeight",copyVector4sArray(skinWeights,geometry.skinWeights))}if(geometry.boundingSphere!==null){buffergeometry.boundingSphere=geometry.boundingSphere.clone()}if(geometry.boundingBox!==null){buffergeometry.boundingBox=geometry.boundingBox.clone()}return buffergeometry}computeTangents(){console.error("THREE.Geometry: .computeTangents() has been removed.")}computeLineDistances(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}applyMatrix(matrix){console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4().");return this.applyMatrix4(matrix)}dispose(){this.dispatchEvent({type:"dispose"})}static createBufferGeometryFromObject(object){let buffergeometry=new BufferGeometry;const geometry=object.geometry;if(object.isPoints||object.isLine){const positions=new Float32BufferAttribute(geometry.vertices.length*3,3);const colors=new Float32BufferAttribute(geometry.colors.length*3,3);buffergeometry.setAttribute("position",copyVector3sArray(positions,geometry.vertices));buffergeometry.setAttribute("color",copyColorsArray(colors,geometry.colors));if(geometry.lineDistances&&geometry.lineDistances.length===geometry.vertices.length){const lineDistances=new Float32BufferAttribute(geometry.lineDistances.length,1);buffergeometry.setAttribute("lineDistance",lineDistances.copyArray(geometry.lineDistances))}if(geometry.boundingSphere!==null){buffergeometry.boundingSphere=geometry.boundingSphere.clone()}if(geometry.boundingBox!==null){buffergeometry.boundingBox=geometry.boundingBox.clone()}}else if(object.isMesh){buffergeometry=geometry.toBufferGeometry()}return buffergeometry}}Geometry.prototype.isGeometry=true;class DirectGeometry{constructor(){this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingBox=null;this.boundingSphere=null;this.verticesNeedUpdate=false;this.normalsNeedUpdate=false;this.colorsNeedUpdate=false;this.uvsNeedUpdate=false;this.groupsNeedUpdate=false}computeGroups(geometry){const groups=[];let group,i;let materialIndex=undefined;const faces=geometry.faces;for(i=0;i<faces.length;i++){const face=faces[i];if(face.materialIndex!==materialIndex){materialIndex=face.materialIndex;if(group!==undefined){group.count=i*3-group.start;groups.push(group)}group={start:i*3,materialIndex:materialIndex}}}if(group!==undefined){group.count=i*3-group.start;groups.push(group)}this.groups=groups}fromGeometry(geometry){const faces=geometry.faces;const vertices=geometry.vertices;const faceVertexUvs=geometry.faceVertexUvs;const hasFaceVertexUv=faceVertexUvs[0]&&faceVertexUvs[0].length>0;const hasFaceVertexUv2=faceVertexUvs[1]&&faceVertexUvs[1].length>0;const morphTargets=geometry.morphTargets;const morphTargetsLength=morphTargets.length;let morphTargetsPosition;if(morphTargetsLength>0){morphTargetsPosition=[];for(let i=0;i<morphTargetsLength;i++){morphTargetsPosition[i]={name:morphTargets[i].name,data:[]}}this.morphTargets.position=morphTargetsPosition}const morphNormals=geometry.morphNormals;const morphNormalsLength=morphNormals.length;let morphTargetsNormal;if(morphNormalsLength>0){morphTargetsNormal=[];for(let i=0;i<morphNormalsLength;i++){morphTargetsNormal[i]={name:morphNormals[i].name,data:[]}}this.morphTargets.normal=morphTargetsNormal}const skinIndices=geometry.skinIndices;const skinWeights=geometry.skinWeights;const hasSkinIndices=skinIndices.length===vertices.length;const hasSkinWeights=skinWeights.length===vertices.length;if(vertices.length>0&&faces.length===0){console.error("THREE.DirectGeometry: Faceless geometries are not supported.")}for(let i=0;i<faces.length;i++){const face=faces[i];this.vertices.push(vertices[face.a],vertices[face.b],vertices[face.c]);const vertexNormals=face.vertexNormals;if(vertexNormals.length===3){this.normals.push(vertexNormals[0],vertexNormals[1],vertexNormals[2])}else{const normal=face.normal;this.normals.push(normal,normal,normal)}const vertexColors=face.vertexColors;if(vertexColors.length===3){this.colors.push(vertexColors[0],vertexColors[1],vertexColors[2])}else{const color=face.color;this.colors.push(color,color,color)}if(hasFaceVertexUv===true){const vertexUvs=faceVertexUvs[0][i];if(vertexUvs!==undefined){this.uvs.push(vertexUvs[0],vertexUvs[1],vertexUvs[2])}else{console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",i);this.uvs.push(new Vector2,new Vector2,new Vector2)}}if(hasFaceVertexUv2===true){const vertexUvs=faceVertexUvs[1][i];if(vertexUvs!==undefined){this.uvs2.push(vertexUvs[0],vertexUvs[1],vertexUvs[2])}else{console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",i);this.uvs2.push(new Vector2,new Vector2,new Vector2)}}for(let j=0;j<morphTargetsLength;j++){const morphTarget=morphTargets[j].vertices;morphTargetsPosition[j].data.push(morphTarget[face.a],morphTarget[face.b],morphTarget[face.c])}for(let j=0;j<morphNormalsLength;j++){const morphNormal=morphNormals[j].vertexNormals[i];morphTargetsNormal[j].data.push(morphNormal.a,morphNormal.b,morphNormal.c)}if(hasSkinIndices){this.skinIndices.push(skinIndices[face.a],skinIndices[face.b],skinIndices[face.c])}if(hasSkinWeights){this.skinWeights.push(skinWeights[face.a],skinWeights[face.b],skinWeights[face.c])}}this.computeGroups(geometry);this.verticesNeedUpdate=geometry.verticesNeedUpdate;this.normalsNeedUpdate=geometry.normalsNeedUpdate;this.colorsNeedUpdate=geometry.colorsNeedUpdate;this.uvsNeedUpdate=geometry.uvsNeedUpdate;this.groupsNeedUpdate=geometry.groupsNeedUpdate;if(geometry.boundingSphere!==null){this.boundingSphere=geometry.boundingSphere.clone()}if(geometry.boundingBox!==null){this.boundingBox=geometry.boundingBox.clone()}return this}}function copyColorsArray(bufferAttribute,colors){const array=bufferAttribute.array;let offset=0;for(let i=0,l=colors.length;i<l;i++){let color=colors[i];if(color===undefined){console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i);color=new Color}if(bufferAttribute.normalized){array[offset++]=normalize(color.r,array);array[offset++]=normalize(color.g,array);array[offset++]=normalize(color.b,array)}else{array[offset++]=color.r;array[offset++]=color.g;array[offset++]=color.b}}return bufferAttribute}function copyVector2sArray(bufferAttribute,vectors){const array=bufferAttribute.array;let offset=0;for(let i=0,l=vectors.length;i<l;i++){let vector=vectors[i];if(vector===undefined){console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i);vector=new Vector2}if(bufferAttribute.normalized){array[offset++]=normalize(vector.x,array);array[offset++]=normalize(vector.y,array)}else{array[offset++]=vector.x;array[offset++]=vector.y}}return bufferAttribute}function copyVector3sArray(bufferAttribute,vectors){const array=bufferAttribute.array;let offset=0;for(let i=0,l=vectors.length;i<l;i++){let vector=vectors[i];if(vector===undefined){console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i);vector=new Vector3}if(bufferAttribute.normalized){array[offset++]=normalize(vector.x,array);array[offset++]=normalize(vector.y,array);array[offset++]=normalize(vector.z,array)}else{array[offset++]=vector.x;array[offset++]=vector.y;array[offset++]=vector.z}}return bufferAttribute}function copyVector4sArray(bufferAttribute,vectors){const array=bufferAttribute.array;let offset=0;for(let i=0,l=vectors.length;i<l;i++){let vector=vectors[i];if(vector===undefined){console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i);vector=new Vector4}if(bufferAttribute.normalized){array[offset++]=normalize(vector.x,array);array[offset++]=normalize(vector.y,array);array[offset++]=normalize(vector.z,array);array[offset++]=normalize(vector.w,array)}else{array[offset++]=vector.x;array[offset++]=vector.y;array[offset++]=vector.z;array[offset++]=vector.w}}return this}THREE.Geometry=Geometry});(function(){class WorkerPool{constructor(pool=4){this.pool=pool;this.queue=[];this.workers=[];this.workersResolve=[];this.workerStatus=0}_initWorker(workerId){if(!this.workers[workerId]){const worker=this.workerCreator();worker.addEventListener("message",this._onMessage.bind(this,workerId));this.workers[workerId]=worker}}_getIdleWorker(){for(let i=0;i<this.pool;i++)if(!(this.workerStatus&1<<i))return i;return-1}_onMessage(workerId,msg){const resolve=this.workersResolve[workerId];resolve&&resolve(msg);if(this.queue.length){const{resolve,msg,transfer}=this.queue.shift();this.workersResolve[workerId]=resolve;this.workers[workerId].postMessage(msg,transfer)}else{this.workerStatus^=1<<workerId}}setWorkerCreator(workerCreator){this.workerCreator=workerCreator}setWorkerLimit(pool){this.pool=pool}postMessage(msg,transfer){return new Promise(resolve=>{const workerId=this._getIdleWorker();if(workerId!==-1){this._initWorker(workerId);this.workerStatus|=1<<workerId;this.workersResolve[workerId]=resolve;this.workers[workerId].postMessage(msg,transfer)}else{this.queue.push({resolve,msg,transfer})}})}dispose(){this.workers.forEach(worker=>worker.terminate());this.workersResolve.length=0;this.workers.length=0;this.queue.length=0;this.workerStatus=0}}THREE.WorkerPool=WorkerPool})();(function(){const t=0,e=1,n=2,i=3,s=0,a=0,r=2,o=0,l=1,f=160,U=161,c=162,h=163,_=0,p=1,g=0,y=1,x=2,u=3,b=4,d=5,m=6,w=7,D=8,B=9,L=10,A=11,k=12,v=13,S=14,I=15,O=16,T=17,V=18,E=0,F=1,P=2,C=3,z=4,M=5,W=6,N=7,H=8,K=9,X=10,j=11,R=0,Y=1,q=2,G=13,J=14,Q=15,Z=128,$=64,tt=32,et=16,nt=0,it=1,st=2,at=3,rt=4,ot=5,lt=6,ft=7,Ut=8,ct=9,ht=10,_t=13,pt=14,gt=15,yt=16,xt=17,ut=20,bt=21,dt=22,mt=23,wt=24,Dt=27,Bt=28,Lt=29,At=30,kt=31,vt=34,St=35,It=36,Ot=37,Tt=38,Vt=41,Et=42,Ft=43,Pt=44,Ct=45,zt=48,Mt=49,Wt=50,Nt=58,Ht=59,Kt=62,Xt=63,jt=64,Rt=65,Yt=68,qt=69,Gt=70,Jt=71,Qt=74,Zt=75,$t=76,te=77,ee=78,ne=81,ie=82,se=83,ae=84,re=85,oe=88,le=89,fe=90,Ue=91,ce=92,he=95,_e=96,pe=97,ge=98,ye=99,xe=100,ue=101,be=102,de=103,me=104,we=105,De=106,Be=107,Le=108,Ae=109,ke=110,ve=111,Se=112,Ie=113,Oe=114,Te=115,Ve=116,Ee=117,Fe=118,Pe=119,Ce=120,ze=121,Me=122,We=123,Ne=124,He=125,Ke=126,Xe=127,je=128,Re=129,Ye=130,qe=131,Ge=132,Je=133,Qe=134,Ze=135,$e=136,tn=137,en=138,nn=139,sn=140,an=141,rn=142,on=143,ln=144,fn=145,Un=146,cn=147,hn=148,_n=149,pn=150,gn=151,yn=152,xn=153,un=154,bn=155,dn=156,mn=157,wn=158,Dn=159,Bn=160,Ln=161,An=162,kn=163,vn=164,Sn=165,In=166,On=167,Tn=168,Vn=169,En=170,Fn=171,Pn=172,Cn=173,zn=174,Mn=175,Wn=176,Nn=177,Hn=178,Kn=179,Xn=180,jn=181,Rn=182,Yn=183,qn=184,Gn=1000156007,Jn=1000156008,Qn=1000156009,Zn=1000156010,$n=1000156011,ti=1000156017,ei=1000156018,ni=1000156019,ii=1000156020,si=1000156021,ai=1000054e3,ri=1000054001,oi=1000054002,li=1000054003,fi=1000054004,Ui=1000054005,ci=1000054006,hi=1000054007,_i=1000066e3,pi=1000066001,gi=1000066002,yi=1000066003,xi=1000066004,ui=1000066005,bi=1000066006,di=1000066007,mi=1000066008,wi=1000066009,Di=1000066010,Bi=1000066011,Li=1000066012,Ai=1000066013,ki=100034e4,vi=1000340001;class Si{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class Ii{constructor(t,e,n,i){this._dataView=new DataView(t.buffer,t.byteOffset+e,n),this._littleEndian=i,this._offset=0}_nextUint8(){const t=this._dataView.getUint8(this._offset);return this._offset+=1,t}_nextUint16(){const t=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,t}_nextUint32(){const t=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,t}_nextUint64(){const t=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,t}_nextInt32(){const t=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,t}_skip(t){return this._offset+=t,this}_scan(t,e=0){const n=this._offset;let i=0;for(;this._dataView.getUint8(this._offset)!==e&&i<t;)i++,this._offset++;return i<t&&this._offset++,new Uint8Array(this._dataView.buffer,this._dataView.byteOffset+n,i)}}const Oi=new Uint8Array([0]),Ti=[171,75,84,88,32,50,48,187,13,10,26,10];function Vi(t){return"undefined"!=typeof TextEncoder?new TextEncoder().encode(t):Buffer.from(t)}function Ei(t){return"undefined"!=typeof TextDecoder?new TextDecoder().decode(t):Buffer.from(t).toString("utf8")}function Fi(t){let e=0;for(const n of t)e+=n.byteLength;const n=new Uint8Array(e);let i=0;for(const e of t)n.set(new Uint8Array(e),i),i+=e.byteLength;return n}function Pi(t){const e=new Uint8Array(t.buffer,t.byteOffset,Ti.length);if(e[0]!==Ti[0]||e[1]!==Ti[1]||e[2]!==Ti[2]||e[3]!==Ti[3]||e[4]!==Ti[4]||e[5]!==Ti[5]||e[6]!==Ti[6]||e[7]!==Ti[7]||e[8]!==Ti[8]||e[9]!==Ti[9]||e[10]!==Ti[10]||e[11]!==Ti[11])throw new Error("Missing KTX 2.0 identifier.");const n=new Si,i=17*Uint32Array.BYTES_PER_ELEMENT,s=new Ii(t,Ti.length,i,!0);n.vkFormat=s._nextUint32(),n.typeSize=s._nextUint32(),n.pixelWidth=s._nextUint32(),n.pixelHeight=s._nextUint32(),n.pixelDepth=s._nextUint32(),n.layerCount=s._nextUint32(),n.faceCount=s._nextUint32();const a=s._nextUint32();n.supercompressionScheme=s._nextUint32();const r=s._nextUint32(),o=s._nextUint32(),l=s._nextUint32(),f=s._nextUint32(),U=s._nextUint64(),c=s._nextUint64(),h=new Ii(t,Ti.length+i,3*a*8,!0);for(let e=0;e<a;e++)n.levels.push({levelData:new Uint8Array(t.buffer,t.byteOffset+h._nextUint64(),h._nextUint64()),uncompressedByteLength:h._nextUint64()});const _=new Ii(t,r,o,!0),p={vendorId:_._skip(4)._nextUint16(),descriptorType:_._nextUint16(),versionNumber:_._nextUint16(),descriptorBlockSize:_._nextUint16(),colorModel:_._nextUint8(),colorPrimaries:_._nextUint8(),transferFunction:_._nextUint8(),flags:_._nextUint8(),texelBlockDimension:[_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8()],bytesPlane:[_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8()],samples:[]},g=(p.descriptorBlockSize/4-6)/4;for(let t=0;t<g;t++){const e={bitOffset:_._nextUint16(),bitLength:_._nextUint8(),channelType:_._nextUint8(),samplePosition:[_._nextUint8(),_._nextUint8(),_._nextUint8(),_._nextUint8()],sampleLower:-Infinity,sampleUpper:Infinity};64&e.channelType?(e.sampleLower=_._nextInt32(),e.sampleUpper=_._nextInt32()):(e.sampleLower=_._nextUint32(),e.sampleUpper=_._nextUint32()),p.samples[t]=e}n.dataFormatDescriptor.length=0,n.dataFormatDescriptor.push(p);const y=new Ii(t,l,f,!0);for(;y._offset<f;){const t=y._nextUint32(),e=y._scan(t),i=Ei(e),s=y._scan(t-e.byteLength);n.keyValue[i]=i.match(/^ktx/i)?Ei(s):s,y._offset%4&&y._skip(4-y._offset%4)}if(c<=0)return n;const x=new Ii(t,U,c,!0),u=x._nextUint16(),b=x._nextUint16(),d=x._nextUint32(),m=x._nextUint32(),w=x._nextUint32(),D=x._nextUint32(),B=[];for(let t=0;t<a;t++)B.push({imageFlags:x._nextUint32(),rgbSliceByteOffset:x._nextUint32(),rgbSliceByteLength:x._nextUint32(),alphaSliceByteOffset:x._nextUint32(),alphaSliceByteLength:x._nextUint32()});const L=U+x._offset,A=L+d,k=A+m,v=k+w,S=new Uint8Array(t.buffer,t.byteOffset+L,d),I=new Uint8Array(t.buffer,t.byteOffset+A,m),O=new Uint8Array(t.buffer,t.byteOffset+k,w),T=new Uint8Array(t.buffer,t.byteOffset+v,D);return n.globalData={endpointCount:u,selectorCount:b,imageDescs:B,endpointsData:S,selectorsData:I,tablesData:O,extendedData:T},n}function Ci(){return(Ci=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}const zi={keepWriter:!1};function Mi(t,e={}){e=Ci({},zi,e);let n=new ArrayBuffer(0);if(t.globalData){const e=new ArrayBuffer(20+5*t.globalData.imageDescs.length*4),i=new DataView(e);i.setUint16(0,t.globalData.endpointCount,!0),i.setUint16(2,t.globalData.selectorCount,!0),i.setUint32(4,t.globalData.endpointsData.byteLength,!0),i.setUint32(8,t.globalData.selectorsData.byteLength,!0),i.setUint32(12,t.globalData.tablesData.byteLength,!0),i.setUint32(16,t.globalData.extendedData.byteLength,!0);for(let e=0;e<t.globalData.imageDescs.length;e++){const n=t.globalData.imageDescs[e];i.setUint32(20+5*e*4+0,n.imageFlags,!0),i.setUint32(20+5*e*4+4,n.rgbSliceByteOffset,!0),i.setUint32(20+5*e*4+8,n.rgbSliceByteLength,!0),i.setUint32(20+5*e*4+12,n.alphaSliceByteOffset,!0),i.setUint32(20+5*e*4+16,n.alphaSliceByteLength,!0)}n=Fi([e,t.globalData.endpointsData,t.globalData.selectorsData,t.globalData.tablesData,t.globalData.extendedData])}const i=[];let s=t.keyValue;e.keepWriter||(s=Ci({},t.keyValue,{KTXwriter:"KTX-Parse v0.3.1"}));for(const t in s){const e=s[t],n=Vi(t),a="string"==typeof e?Vi(e):e,r=n.byteLength+1+a.byteLength+1,o=r%4?4-r%4:0;i.push(Fi([new Uint32Array([r]),n,Oi,a,Oi,new Uint8Array(o).fill(0)]))}const a=Fi(i);if(1!==t.dataFormatDescriptor.length||0!==t.dataFormatDescriptor[0].descriptorType)throw new Error("Only BASICFORMAT Data Format Descriptor output supported.");const r=t.dataFormatDescriptor[0],o=new ArrayBuffer(28+16*r.samples.length),l=new DataView(o),f=24+16*r.samples.length;if(l.setUint32(0,o.byteLength,!0),l.setUint16(4,r.vendorId,!0),l.setUint16(6,r.descriptorType,!0),l.setUint16(8,r.versionNumber,!0),l.setUint16(10,f,!0),l.setUint8(12,r.colorModel),l.setUint8(13,r.colorPrimaries),l.setUint8(14,r.transferFunction),l.setUint8(15,r.flags),!Array.isArray(r.texelBlockDimension))throw new Error("texelBlockDimension is now an array. For dimensionality `d`, set `d - 1`.");l.setUint8(16,r.texelBlockDimension[0]),l.setUint8(17,r.texelBlockDimension[1]),l.setUint8(18,r.texelBlockDimension[2]),l.setUint8(19,r.texelBlockDimension[3]);for(let t=0;t<8;t++)l.setUint8(20+t,r.bytesPlane[t]);for(let t=0;t<r.samples.length;t++){const e=r.samples[t],n=28+16*t;if(e.channelID)throw new Error("channelID has been renamed to channelType.");l.setUint16(n+0,e.bitOffset,!0),l.setUint8(n+2,e.bitLength),l.setUint8(n+3,e.channelType),l.setUint8(n+4,e.samplePosition[0]),l.setUint8(n+5,e.samplePosition[1]),l.setUint8(n+6,e.samplePosition[2]),l.setUint8(n+7,e.samplePosition[3]),64&e.channelType?(l.setInt32(n+8,e.sampleLower,!0),l.setInt32(n+12,e.sampleUpper,!0)):(l.setUint32(n+8,e.sampleLower,!0),l.setUint32(n+12,e.sampleUpper,!0))}const U=Ti.length+68+3*t.levels.length*8,c=U+o.byteLength;let h=n.byteLength>0?c+a.byteLength:0;h%8&&(h+=8-h%8);const _=[],p=new DataView(new ArrayBuffer(3*t.levels.length*8));let g=(h||c+a.byteLength)+n.byteLength;for(let e=0;e<t.levels.length;e++){const n=t.levels[e];_.push(n.levelData),p.setBigUint64(24*e+0,BigInt(g),!0),p.setBigUint64(24*e+8,BigInt(n.levelData.byteLength),!0),p.setBigUint64(24*e+16,BigInt(n.uncompressedByteLength),!0),g+=n.levelData.byteLength}const y=new ArrayBuffer(68),x=new DataView(y);return x.setUint32(0,t.vkFormat,!0),x.setUint32(4,t.typeSize,!0),x.setUint32(8,t.pixelWidth,!0),x.setUint32(12,t.pixelHeight,!0),x.setUint32(16,t.pixelDepth,!0),x.setUint32(20,t.layerCount,!0),x.setUint32(24,t.faceCount,!0),x.setUint32(28,t.levels.length,!0),x.setUint32(32,t.supercompressionScheme,!0),x.setUint32(36,U,!0),x.setUint32(40,o.byteLength,!0),x.setUint32(44,c,!0),x.setUint32(48,a.byteLength,!0),x.setBigUint64(52,BigInt(n.byteLength>0?h:0),!0),x.setBigUint64(60,BigInt(n.byteLength),!0),new Uint8Array(Fi([new Uint8Array(Ti).buffer,y,p.buffer,o,a,h>0?new ArrayBuffer(h-(c+a.byteLength)):new ArrayBuffer(0),n,..._]))}var KTXParse=THREE.KTXParse={};KTXParse.KHR_DF_CHANNEL_RGBSDA_ALPHA=Q,KTXParse.KHR_DF_CHANNEL_RGBSDA_BLUE=q,KTXParse.KHR_DF_CHANNEL_RGBSDA_DEPTH=J,KTXParse.KHR_DF_CHANNEL_RGBSDA_GREEN=Y,KTXParse.KHR_DF_CHANNEL_RGBSDA_RED=R,KTXParse.KHR_DF_CHANNEL_RGBSDA_STENCIL=G,KTXParse.KHR_DF_FLAG_ALPHA_PREMULTIPLIED=p,KTXParse.KHR_DF_FLAG_ALPHA_STRAIGHT=_,KTXParse.KHR_DF_KHR_DESCRIPTORTYPE_BASICFORMAT=s,KTXParse.KHR_DF_MODEL_ASTC=c,KTXParse.KHR_DF_MODEL_ETC1=f,KTXParse.KHR_DF_MODEL_ETC1S=h,KTXParse.KHR_DF_MODEL_ETC2=U,KTXParse.KHR_DF_MODEL_RGBSDA=l,KTXParse.KHR_DF_MODEL_UNSPECIFIED=o,KTXParse.KHR_DF_PRIMARIES_ACES=W,KTXParse.KHR_DF_PRIMARIES_ACESCC=N,KTXParse.KHR_DF_PRIMARIES_ADOBERGB=j,KTXParse.KHR_DF_PRIMARIES_BT2020=z,KTXParse.KHR_DF_PRIMARIES_BT601_EBU=P,KTXParse.KHR_DF_PRIMARIES_BT601_SMPTE=C,KTXParse.KHR_DF_PRIMARIES_BT709=F,KTXParse.KHR_DF_PRIMARIES_CIEXYZ=M,KTXParse.KHR_DF_PRIMARIES_DISPLAYP3=X,KTXParse.KHR_DF_PRIMARIES_NTSC1953=H,KTXParse.KHR_DF_PRIMARIES_PAL525=K,KTXParse.KHR_DF_PRIMARIES_UNSPECIFIED=E,KTXParse.KHR_DF_SAMPLE_DATATYPE_EXPONENT=tt,KTXParse.KHR_DF_SAMPLE_DATATYPE_FLOAT=Z,KTXParse.KHR_DF_SAMPLE_DATATYPE_LINEAR=et,KTXParse.KHR_DF_SAMPLE_DATATYPE_SIGNED=$,KTXParse.KHR_DF_TRANSFER_ACESCC=O,KTXParse.KHR_DF_TRANSFER_ACESCCT=T,KTXParse.KHR_DF_TRANSFER_ADOBERGB=V,KTXParse.KHR_DF_TRANSFER_BT1886=w,KTXParse.KHR_DF_TRANSFER_DCIP3=k,KTXParse.KHR_DF_TRANSFER_HLG_EOTF=B,KTXParse.KHR_DF_TRANSFER_HLG_OETF=D,KTXParse.KHR_DF_TRANSFER_ITU=u,KTXParse.KHR_DF_TRANSFER_LINEAR=y,KTXParse.KHR_DF_TRANSFER_NTSC=b,KTXParse.KHR_DF_TRANSFER_PAL625_EOTF=S,KTXParse.KHR_DF_TRANSFER_PAL_OETF=v,KTXParse.KHR_DF_TRANSFER_PQ_EOTF=L,KTXParse.KHR_DF_TRANSFER_PQ_OETF=A,KTXParse.KHR_DF_TRANSFER_SLOG=d,KTXParse.KHR_DF_TRANSFER_SLOG2=m,KTXParse.KHR_DF_TRANSFER_SRGB=x,KTXParse.KHR_DF_TRANSFER_ST240=I,KTXParse.KHR_DF_TRANSFER_UNSPECIFIED=g,KTXParse.KHR_DF_VENDORID_KHRONOS=a,KTXParse.KHR_DF_VERSION=r,KTXParse.KHR_SUPERCOMPRESSION_BASISLZ=e,KTXParse.KHR_SUPERCOMPRESSION_NONE=t,KTXParse.KHR_SUPERCOMPRESSION_ZLIB=i,KTXParse.KHR_SUPERCOMPRESSION_ZSTD=n,KTXParse.KTX2Container=Si,KTXParse.VK_FORMAT_A1R5G5B5_UNORM_PACK16=Ut,KTXParse.VK_FORMAT_A2B10G10R10_SINT_PACK32=qt,KTXParse.VK_FORMAT_A2B10G10R10_SNORM_PACK32=Rt,KTXParse.VK_FORMAT_A2B10G10R10_UINT_PACK32=Yt,KTXParse.VK_FORMAT_A2B10G10R10_UNORM_PACK32=jt,KTXParse.VK_FORMAT_A2R10G10B10_SINT_PACK32=Xt,KTXParse.VK_FORMAT_A2R10G10B10_SNORM_PACK32=Ht,KTXParse.VK_FORMAT_A2R10G10B10_UINT_PACK32=Kt,KTXParse.VK_FORMAT_A2R10G10B10_UNORM_PACK32=Nt,KTXParse.VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT=vi,KTXParse.VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT=ki,KTXParse.VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT=Bi,KTXParse.VK_FORMAT_ASTC_10x10_SRGB_BLOCK=Xn,KTXParse.VK_FORMAT_ASTC_10x10_UNORM_BLOCK=Kn,KTXParse.VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT=mi,KTXParse.VK_FORMAT_ASTC_10x5_SRGB_BLOCK=zn,KTXParse.VK_FORMAT_ASTC_10x5_UNORM_BLOCK=Cn,KTXParse.VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT=wi,KTXParse.VK_FORMAT_ASTC_10x6_SRGB_BLOCK=Wn,KTXParse.VK_FORMAT_ASTC_10x6_UNORM_BLOCK=Mn,KTXParse.VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT=Di,KTXParse.VK_FORMAT_ASTC_10x8_SRGB_BLOCK=Hn,KTXParse.VK_FORMAT_ASTC_10x8_UNORM_BLOCK=Nn,KTXParse.VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT=Li,KTXParse.VK_FORMAT_ASTC_12x10_SRGB_BLOCK=Rn,KTXParse.VK_FORMAT_ASTC_12x10_UNORM_BLOCK=jn,KTXParse.VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT=Ai,KTXParse.VK_FORMAT_ASTC_12x12_SRGB_BLOCK=qn,KTXParse.VK_FORMAT_ASTC_12x12_UNORM_BLOCK=Yn,KTXParse.VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT=_i,KTXParse.VK_FORMAT_ASTC_4x4_SRGB_BLOCK=wn,KTXParse.VK_FORMAT_ASTC_4x4_UNORM_BLOCK=mn,KTXParse.VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT=pi,KTXParse.VK_FORMAT_ASTC_5x4_SRGB_BLOCK=Bn,KTXParse.VK_FORMAT_ASTC_5x4_UNORM_BLOCK=Dn,KTXParse.VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT=gi,KTXParse.VK_FORMAT_ASTC_5x5_SRGB_BLOCK=An,KTXParse.VK_FORMAT_ASTC_5x5_UNORM_BLOCK=Ln,KTXParse.VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT=yi,KTXParse.VK_FORMAT_ASTC_6x5_SRGB_BLOCK=vn,KTXParse.VK_FORMAT_ASTC_6x5_UNORM_BLOCK=kn,KTXParse.VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT=xi,KTXParse.VK_FORMAT_ASTC_6x6_SRGB_BLOCK=In,KTXParse.VK_FORMAT_ASTC_6x6_UNORM_BLOCK=Sn,KTXParse.VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT=ui,KTXParse.VK_FORMAT_ASTC_8x5_SRGB_BLOCK=Tn,KTXParse.VK_FORMAT_ASTC_8x5_UNORM_BLOCK=On,KTXParse.VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT=bi,KTXParse.VK_FORMAT_ASTC_8x6_SRGB_BLOCK=En,KTXParse.VK_FORMAT_ASTC_8x6_UNORM_BLOCK=Vn,KTXParse.VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT=di,KTXParse.VK_FORMAT_ASTC_8x8_SRGB_BLOCK=Pn,KTXParse.VK_FORMAT_ASTC_8x8_UNORM_BLOCK=Fn,KTXParse.VK_FORMAT_B10G11R11_UFLOAT_PACK32=Me,KTXParse.VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16=$n,KTXParse.VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16=si,KTXParse.VK_FORMAT_B4G4R4A4_UNORM_PACK16=at,KTXParse.VK_FORMAT_B5G5R5A1_UNORM_PACK16=ft,KTXParse.VK_FORMAT_B5G6R5_UNORM_PACK16=ot,KTXParse.VK_FORMAT_B8G8R8A8_SINT=Mt,KTXParse.VK_FORMAT_B8G8R8A8_SNORM=Ct,KTXParse.VK_FORMAT_B8G8R8A8_SRGB=Wt,KTXParse.VK_FORMAT_B8G8R8A8_UINT=zt,KTXParse.VK_FORMAT_B8G8R8A8_UNORM=Pt,KTXParse.VK_FORMAT_B8G8R8_SINT=St,KTXParse.VK_FORMAT_B8G8R8_SNORM=kt,KTXParse.VK_FORMAT_B8G8R8_SRGB=It,KTXParse.VK_FORMAT_B8G8R8_UINT=vt,KTXParse.VK_FORMAT_B8G8R8_UNORM=At,KTXParse.VK_FORMAT_BC1_RGBA_SRGB_BLOCK=Qe,KTXParse.VK_FORMAT_BC1_RGBA_UNORM_BLOCK=Je,KTXParse.VK_FORMAT_BC1_RGB_SRGB_BLOCK=Ge,KTXParse.VK_FORMAT_BC1_RGB_UNORM_BLOCK=qe,KTXParse.VK_FORMAT_BC2_SRGB_BLOCK=$e,KTXParse.VK_FORMAT_BC2_UNORM_BLOCK=Ze,KTXParse.VK_FORMAT_BC3_SRGB_BLOCK=en,KTXParse.VK_FORMAT_BC3_UNORM_BLOCK=tn,KTXParse.VK_FORMAT_BC4_SNORM_BLOCK=sn,KTXParse.VK_FORMAT_BC4_UNORM_BLOCK=nn,KTXParse.VK_FORMAT_BC5_SNORM_BLOCK=rn,KTXParse.VK_FORMAT_BC5_UNORM_BLOCK=an,KTXParse.VK_FORMAT_BC6H_SFLOAT_BLOCK=ln,KTXParse.VK_FORMAT_BC6H_UFLOAT_BLOCK=on,KTXParse.VK_FORMAT_BC7_SRGB_BLOCK=Un,KTXParse.VK_FORMAT_BC7_UNORM_BLOCK=fn,KTXParse.VK_FORMAT_D16_UNORM=Ne,KTXParse.VK_FORMAT_D16_UNORM_S8_UINT=je,KTXParse.VK_FORMAT_D24_UNORM_S8_UINT=Re,KTXParse.VK_FORMAT_D32_SFLOAT=Ke,KTXParse.VK_FORMAT_D32_SFLOAT_S8_UINT=Ye,KTXParse.VK_FORMAT_E5B9G9R9_UFLOAT_PACK32=We,KTXParse.VK_FORMAT_EAC_R11G11_SNORM_BLOCK=dn,KTXParse.VK_FORMAT_EAC_R11G11_UNORM_BLOCK=bn,KTXParse.VK_FORMAT_EAC_R11_SNORM_BLOCK=un,KTXParse.VK_FORMAT_EAC_R11_UNORM_BLOCK=xn,KTXParse.VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK=pn,KTXParse.VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK=_n,KTXParse.VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK=yn,KTXParse.VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK=gn,KTXParse.VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK=hn,KTXParse.VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK=cn,KTXParse.VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16=Zn,KTXParse.VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16=ii,KTXParse.VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG=fi,KTXParse.VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG=ai,KTXParse.VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG=Ui,KTXParse.VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG=ri,KTXParse.VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG=ci,KTXParse.VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG=oi,KTXParse.VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG=hi,KTXParse.VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG=li,KTXParse.VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16=Qn,KTXParse.VK_FORMAT_R10X6G10X6_UNORM_2PACK16=Jn,KTXParse.VK_FORMAT_R10X6_UNORM_PACK16=Gn,KTXParse.VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16=ni,KTXParse.VK_FORMAT_R12X4G12X4_UNORM_2PACK16=ei,KTXParse.VK_FORMAT_R12X4_UNORM_PACK16=ti,KTXParse.VK_FORMAT_R16G16B16A16_SFLOAT=pe,KTXParse.VK_FORMAT_R16G16B16A16_SINT=_e,KTXParse.VK_FORMAT_R16G16B16A16_SNORM=ce,KTXParse.VK_FORMAT_R16G16B16A16_UINT=he,KTXParse.VK_FORMAT_R16G16B16A16_UNORM=Ue,KTXParse.VK_FORMAT_R16G16B16_SFLOAT=fe,KTXParse.VK_FORMAT_R16G16B16_SINT=le,KTXParse.VK_FORMAT_R16G16B16_SNORM=re,KTXParse.VK_FORMAT_R16G16B16_UINT=oe,KTXParse.VK_FORMAT_R16G16B16_UNORM=ae,KTXParse.VK_FORMAT_R16G16_SFLOAT=se,KTXParse.VK_FORMAT_R16G16_SINT=ie,KTXParse.VK_FORMAT_R16G16_SNORM=ee,KTXParse.VK_FORMAT_R16G16_UINT=ne,KTXParse.VK_FORMAT_R16G16_UNORM=te,KTXParse.VK_FORMAT_R16_SFLOAT=$t,KTXParse.VK_FORMAT_R16_SINT=Zt,KTXParse.VK_FORMAT_R16_SNORM=Jt,KTXParse.VK_FORMAT_R16_UINT=Qt,KTXParse.VK_FORMAT_R16_UNORM=Gt,KTXParse.VK_FORMAT_R32G32B32A32_SFLOAT=Ae,KTXParse.VK_FORMAT_R32G32B32A32_SINT=Le,KTXParse.VK_FORMAT_R32G32B32A32_UINT=Be,KTXParse.VK_FORMAT_R32G32B32_SFLOAT=De,KTXParse.VK_FORMAT_R32G32B32_SINT=we,KTXParse.VK_FORMAT_R32G32B32_UINT=me,KTXParse.VK_FORMAT_R32G32_SFLOAT=de,KTXParse.VK_FORMAT_R32G32_SINT=be,KTXParse.VK_FORMAT_R32G32_UINT=ue,KTXParse.VK_FORMAT_R32_SFLOAT=xe,KTXParse.VK_FORMAT_R32_SINT=ye,KTXParse.VK_FORMAT_R32_UINT=ge,KTXParse.VK_FORMAT_R4G4B4A4_UNORM_PACK16=st,KTXParse.VK_FORMAT_R4G4_UNORM_PACK8=it,KTXParse.VK_FORMAT_R5G5B5A1_UNORM_PACK16=lt,KTXParse.VK_FORMAT_R5G6B5_UNORM_PACK16=rt,KTXParse.VK_FORMAT_R64G64B64A64_SFLOAT=ze,KTXParse.VK_FORMAT_R64G64B64A64_SINT=Ce,KTXParse.VK_FORMAT_R64G64B64A64_UINT=Pe,KTXParse.VK_FORMAT_R64G64B64_SFLOAT=Fe,KTXParse.VK_FORMAT_R64G64B64_SINT=Ee,KTXParse.VK_FORMAT_R64G64B64_UINT=Ve,KTXParse.VK_FORMAT_R64G64_SFLOAT=Te,KTXParse.VK_FORMAT_R64G64_SINT=Oe,KTXParse.VK_FORMAT_R64G64_UINT=Ie,KTXParse.VK_FORMAT_R64_SFLOAT=Se,KTXParse.VK_FORMAT_R64_SINT=ve,KTXParse.VK_FORMAT_R64_UINT=ke,KTXParse.VK_FORMAT_R8G8B8A8_SINT=Et,KTXParse.VK_FORMAT_R8G8B8A8_SNORM=Tt,KTXParse.VK_FORMAT_R8G8B8A8_SRGB=Ft,KTXParse.VK_FORMAT_R8G8B8A8_UINT=Vt,KTXParse.VK_FORMAT_R8G8B8A8_UNORM=Ot,KTXParse.VK_FORMAT_R8G8B8_SINT=Bt,KTXParse.VK_FORMAT_R8G8B8_SNORM=wt,KTXParse.VK_FORMAT_R8G8B8_SRGB=Lt,KTXParse.VK_FORMAT_R8G8B8_UINT=Dt,KTXParse.VK_FORMAT_R8G8B8_UNORM=mt,KTXParse.VK_FORMAT_R8G8_SINT=bt,KTXParse.VK_FORMAT_R8G8_SNORM=xt,KTXParse.VK_FORMAT_R8G8_SRGB=dt,KTXParse.VK_FORMAT_R8G8_UINT=ut,KTXParse.VK_FORMAT_R8G8_UNORM=yt,KTXParse.VK_FORMAT_R8_SINT=pt,KTXParse.VK_FORMAT_R8_SNORM=ht,KTXParse.VK_FORMAT_R8_SRGB=gt,KTXParse.VK_FORMAT_R8_UINT=_t,KTXParse.VK_FORMAT_R8_UNORM=ct,KTXParse.VK_FORMAT_S8_UINT=Xe,KTXParse.VK_FORMAT_UNDEFINED=nt,KTXParse.VK_FORMAT_X8_D24_UNORM_PACK32=He,KTXParse.read=Pi,KTXParse.write=Mi})();(function(){var CompressedTexture=THREE.CompressedTexture,Data3DTexture=THREE.Data3DTexture,DataTexture=THREE.DataTexture,FileLoader=THREE.FileLoader,FloatType=THREE.FloatType,HalfFloatType=THREE.HalfFloatType,LinearEncoding=THREE.LinearEncoding,LinearFilter=THREE.LinearFilter,LinearMipmapLinearFilter=THREE.LinearMipmapLinearFilter,Loader=THREE.Loader,RedFormat=THREE.RedFormat,RGB_ETC1_Format=THREE.RGB_ETC1_Format,RGB_ETC2_Format=THREE.RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format=THREE.RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format=THREE.RGB_S3TC_DXT1_Format,RGBA_ASTC_4x4_Format=THREE.RGBA_ASTC_4x4_Format,RGBA_BPTC_Format=THREE.RGBA_BPTC_Format,RGBA_ETC2_EAC_Format=THREE.RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format=THREE.RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format=THREE.RGBA_S3TC_DXT5_Format,RGBAFormat=THREE.RGBAFormat,RGFormat=THREE.RGFormat,sRGBEncoding=THREE.sRGBEncoding,UnsignedByteType=THREE.UnsignedByteType,WorkerPool=THREE.WorkerPool;var read=THREE.KTXParse.read,KHR_DF_FLAG_ALPHA_PREMULTIPLIED=THREE.KTXParse.KHR_DF_FLAG_ALPHA_PREMULTIPLIED,KHR_DF_TRANSFER_SRGB=THREE.KTXParse.KHR_DF_TRANSFER_SRGB,KHR_SUPERCOMPRESSION_NONE=THREE.KTXParse.KHR_SUPERCOMPRESSION_NONE,KHR_SUPERCOMPRESSION_ZSTD=THREE.KTXParse.KHR_SUPERCOMPRESSION_ZSTD,VK_FORMAT_UNDEFINED=THREE.KTXParse.VK_FORMAT_UNDEFINED,VK_FORMAT_R16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16_SFLOAT,VK_FORMAT_R16G16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16G16_SFLOAT,VK_FORMAT_R16G16B16A16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16G16B16A16_SFLOAT,VK_FORMAT_R32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32_SFLOAT,VK_FORMAT_R32G32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32G32_SFLOAT,VK_FORMAT_R32G32B32A32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32G32B32A32_SFLOAT,VK_FORMAT_R8_SRGB=THREE.KTXParse.VK_FORMAT_R8_SRGB,VK_FORMAT_R8_UNORM=THREE.KTXParse.VK_FORMAT_R8_UNORM,VK_FORMAT_R8G8_SRGB=THREE.KTXParse.VK_FORMAT_R8G8_SRGB,VK_FORMAT_R8G8_UNORM=THREE.KTXParse.VK_FORMAT_R8G8_UNORM,VK_FORMAT_R8G8B8A8_SRGB=THREE.KTXParse.VK_FORMAT_R8G8B8A8_SRGB,VK_FORMAT_R8G8B8A8_UNORM=THREE.KTXParse.VK_FORMAT_R8G8B8A8_UNORM;var ZSTDDecoder=THREE.ZSTDDecoder;const _taskCache=new WeakMap;let _activeLoaders=0;let _zstd;class KTX2Loader extends Loader{constructor(manager){super(manager);this.transcoderPath="";this.transcoderBinary=null;this.transcoderPending=null;this.workerPool=new WorkerPool;this.workerSourceURL="";this.workerConfig=null;if(typeof MSC_TRANSCODER!=="undefined"){console.warn("THREE.KTX2Loader: Please update to latest \"basis_transcoder\"."+" \"msc_basis_transcoder\" is no longer supported in three.js r125+.")}}setTranscoderPath(path){this.transcoderPath=path;return this}setWorkerLimit(num){this.workerPool.setWorkerLimit(num);return this}detectSupport(renderer){this.workerConfig={astcSupported:renderer.extensions.has("WEBGL_compressed_texture_astc"),etc1Supported:renderer.extensions.has("WEBGL_compressed_texture_etc1"),etc2Supported:renderer.extensions.has("WEBGL_compressed_texture_etc"),dxtSupported:renderer.extensions.has("WEBGL_compressed_texture_s3tc"),bptcSupported:renderer.extensions.has("EXT_texture_compression_bptc"),pvrtcSupported:renderer.extensions.has("WEBGL_compressed_texture_pvrtc")||renderer.extensions.has("WEBKIT_WEBGL_compressed_texture_pvrtc")};if(renderer.capabilities.isWebGL2){this.workerConfig.etc1Supported=false}return this}init(){if(!this.transcoderPending){const jsLoader=new FileLoader(this.manager);jsLoader.setPath(this.transcoderPath);jsLoader.setWithCredentials(this.withCredentials);const jsContent=jsLoader.loadAsync("basis_transcoder.js");const binaryLoader=new FileLoader(this.manager);binaryLoader.setPath(this.transcoderPath);binaryLoader.setResponseType("arraybuffer");binaryLoader.setWithCredentials(this.withCredentials);const binaryContent=binaryLoader.loadAsync("basis_transcoder.wasm");this.transcoderPending=Promise.all([jsContent,binaryContent]).then(([jsContent,binaryContent])=>{const fn=KTX2Loader.BasisWorker.toString();const body=["/* constants */","let _EngineFormat = "+JSON.stringify(KTX2Loader.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(KTX2Loader.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(KTX2Loader.BasisFormat),"/* basis_transcoder.js */",jsContent,"/* worker */",fn.substring(fn.indexOf("{")+1,fn.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([body]));this.transcoderBinary=binaryContent;this.workerPool.setWorkerCreator(()=>{const worker=new Worker(this.workerSourceURL);const transcoderBinary=this.transcoderBinary.slice(0);worker.postMessage({type:"init",config:this.workerConfig,transcoderBinary},[transcoderBinary]);return worker})});if(_activeLoaders>0){console.warn("THREE.KTX2Loader: Multiple active KTX2 loaders may cause performance issues."+" Use a single KTX2Loader instance, or call .dispose() on old instances.")}_activeLoaders++}return this.transcoderPending}load(url,onLoad,onProgress,onError){if(this.workerConfig===null){throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.")}const loader=new FileLoader(this.manager);loader.setResponseType("arraybuffer");loader.setWithCredentials(this.withCredentials);loader.load(url,buffer=>{if(_taskCache.has(buffer)){const cachedTask=_taskCache.get(buffer);return cachedTask.promise.then(onLoad).catch(onError)}this._createTexture(buffer).then(texture=>onLoad?onLoad(texture):null).catch(onError)},onProgress,onError)}_createTextureFrom(transcodeResult){const{mipmaps,width,height,format,type,error,dfdTransferFn,dfdFlags}=transcodeResult;if(type==="error")return Promise.reject(error);const texture=new CompressedTexture(mipmaps,width,height,format,UnsignedByteType);texture.minFilter=mipmaps.length===1?LinearFilter:LinearMipmapLinearFilter;texture.magFilter=LinearFilter;texture.generateMipmaps=false;texture.needsUpdate=true;texture.encoding=dfdTransferFn===KHR_DF_TRANSFER_SRGB?sRGBEncoding:LinearEncoding;texture.premultiplyAlpha=!!(dfdFlags&KHR_DF_FLAG_ALPHA_PREMULTIPLIED);return texture}_createTexture(buffer,config={}){const container=read(new Uint8Array(buffer));if(container.vkFormat!==VK_FORMAT_UNDEFINED){return createDataTexture(container)}const taskConfig=config;const texturePending=this.init().then(()=>{return this.workerPool.postMessage({type:"transcode",buffer,taskConfig:taskConfig},[buffer])}).then(e=>this._createTextureFrom(e.data));_taskCache.set(buffer,{promise:texturePending});return texturePending}dispose(){this.workerPool.dispose();if(this.workerSourceURL)URL.revokeObjectURL(this.workerSourceURL);_activeLoaders--;return this}}KTX2Loader.BasisFormat={ETC1S:0,UASTC_4x4:1};KTX2Loader.TranscoderFormat={ETC1:0,ETC2:1,BC1:2,BC3:3,BC4:4,BC5:5,BC7_M6_OPAQUE_ONLY:6,BC7_M5:7,PVRTC1_4_RGB:8,PVRTC1_4_RGBA:9,ASTC_4x4:10,ATC_RGB:11,ATC_RGBA_INTERPOLATED_ALPHA:12,RGBA32:13,RGB565:14,BGR565:15,RGBA4444:16};KTX2Loader.EngineFormat={RGBAFormat:RGBAFormat,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format};KTX2Loader.BasisWorker=function(){let config;let transcoderPending;let BasisModule;const EngineFormat=_EngineFormat;const TranscoderFormat=_TranscoderFormat;const BasisFormat=_BasisFormat;self.addEventListener("message",function(e){const message=e.data;switch(message.type){case"init":config=message.config;init(message.transcoderBinary);break;case"transcode":transcoderPending.then(()=>{try{const{width,height,hasAlpha,mipmaps,format,dfdTransferFn,dfdFlags}=transcode(message.buffer);const buffers=[];for(let i=0;i<mipmaps.length;++i){buffers.push(mipmaps[i].data.buffer)}self.postMessage({type:"transcode",id:message.id,width,height,hasAlpha,mipmaps,format,dfdTransferFn,dfdFlags},buffers)}catch(error){console.error(error);self.postMessage({type:"error",id:message.id,error:error.message})}});break;}});function init(wasmBinary){transcoderPending=new Promise(resolve=>{BasisModule={wasmBinary,onRuntimeInitialized:resolve};BASIS(BasisModule)}).then(()=>{BasisModule.initializeBasis();if(BasisModule.KTX2File===undefined){console.warn("THREE.KTX2Loader: Please update Basis Universal transcoder.")}})}function transcode(buffer){const ktx2File=new BasisModule.KTX2File(new Uint8Array(buffer));function cleanup(){ktx2File.close();ktx2File.delete()}if(!ktx2File.isValid()){cleanup();throw new Error("THREE.KTX2Loader:\tInvalid or unsupported .ktx2 file")}const basisFormat=ktx2File.isUASTC()?BasisFormat.UASTC_4x4:BasisFormat.ETC1S;const width=ktx2File.getWidth();const height=ktx2File.getHeight();const levels=ktx2File.getLevels();const hasAlpha=ktx2File.getHasAlpha();const dfdTransferFn=ktx2File.getDFDTransferFunc();const dfdFlags=ktx2File.getDFDFlags();const{transcoderFormat,engineFormat}=getTranscoderFormat(basisFormat,width,height,hasAlpha);if(!width||!height||!levels){cleanup();throw new Error("THREE.KTX2Loader:\tInvalid texture")}if(!ktx2File.startTranscoding()){cleanup();throw new Error("THREE.KTX2Loader: .startTranscoding failed")}const mipmaps=[];for(let mip=0;mip<levels;mip++){const levelInfo=ktx2File.getImageLevelInfo(mip,0,0);const mipWidth=levelInfo.origWidth;const mipHeight=levelInfo.origHeight;const dst=new Uint8Array(ktx2File.getImageTranscodedSizeInBytes(mip,0,0,transcoderFormat));const status=ktx2File.transcodeImage(dst,mip,0,0,transcoderFormat,0,-1,-1);if(!status){cleanup();throw new Error("THREE.KTX2Loader: .transcodeImage failed.")}mipmaps.push({data:dst,width:mipWidth,height:mipHeight})}cleanup();return{width,height,hasAlpha,mipmaps,format:engineFormat,dfdTransferFn,dfdFlags}}const FORMAT_OPTIONS=[{if:"astcSupported",basisFormat:[BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.ASTC_4x4,TranscoderFormat.ASTC_4x4],engineFormat:[EngineFormat.RGBA_ASTC_4x4_Format,EngineFormat.RGBA_ASTC_4x4_Format],priorityETC1S:Infinity,priorityUASTC:1,needsPowerOfTwo:false},{if:"bptcSupported",basisFormat:[BasisFormat.ETC1S,BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.BC7_M5,TranscoderFormat.BC7_M5],engineFormat:[EngineFormat.RGBA_BPTC_Format,EngineFormat.RGBA_BPTC_Format],priorityETC1S:3,priorityUASTC:2,needsPowerOfTwo:false},{if:"dxtSupported",basisFormat:[BasisFormat.ETC1S,BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.BC1,TranscoderFormat.BC3],engineFormat:[EngineFormat.RGB_S3TC_DXT1_Format,EngineFormat.RGBA_S3TC_DXT5_Format],priorityETC1S:4,priorityUASTC:5,needsPowerOfTwo:false},{if:"etc2Supported",basisFormat:[BasisFormat.ETC1S,BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.ETC1,TranscoderFormat.ETC2],engineFormat:[EngineFormat.RGB_ETC2_Format,EngineFormat.RGBA_ETC2_EAC_Format],priorityETC1S:1,priorityUASTC:3,needsPowerOfTwo:false},{if:"etc1Supported",basisFormat:[BasisFormat.ETC1S,BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.ETC1],engineFormat:[EngineFormat.RGB_ETC1_Format],priorityETC1S:2,priorityUASTC:4,needsPowerOfTwo:false},{if:"pvrtcSupported",basisFormat:[BasisFormat.ETC1S,BasisFormat.UASTC_4x4],transcoderFormat:[TranscoderFormat.PVRTC1_4_RGB,TranscoderFormat.PVRTC1_4_RGBA],engineFormat:[EngineFormat.RGB_PVRTC_4BPPV1_Format,EngineFormat.RGBA_PVRTC_4BPPV1_Format],priorityETC1S:5,priorityUASTC:6,needsPowerOfTwo:true}];const ETC1S_OPTIONS=FORMAT_OPTIONS.sort(function(a,b){return a.priorityETC1S-b.priorityETC1S});const UASTC_OPTIONS=FORMAT_OPTIONS.sort(function(a,b){return a.priorityUASTC-b.priorityUASTC});function getTranscoderFormat(basisFormat,width,height,hasAlpha){let transcoderFormat;let engineFormat;const options=basisFormat===BasisFormat.ETC1S?ETC1S_OPTIONS:UASTC_OPTIONS;for(let i=0;i<options.length;i++){const opt=options[i];if(!config[opt.if])continue;if(!opt.basisFormat.includes(basisFormat))continue;if(hasAlpha&&opt.transcoderFormat.length<2)continue;if(opt.needsPowerOfTwo&&!(isPowerOfTwo(width)&&isPowerOfTwo(height)))continue;transcoderFormat=opt.transcoderFormat[hasAlpha?1:0];engineFormat=opt.engineFormat[hasAlpha?1:0];return{transcoderFormat,engineFormat}}console.warn("THREE.KTX2Loader: No suitable compressed texture format found. Decoding to RGBA32.");transcoderFormat=TranscoderFormat.RGBA32;engineFormat=EngineFormat.RGBAFormat;return{transcoderFormat,engineFormat}}function isPowerOfTwo(value){if(value<=2)return true;return(value&value-1)===0&&value!==0}};const FORMAT_MAP={[VK_FORMAT_R32G32B32A32_SFLOAT]:RGBAFormat,[VK_FORMAT_R16G16B16A16_SFLOAT]:RGBAFormat,[VK_FORMAT_R8G8B8A8_UNORM]:RGBAFormat,[VK_FORMAT_R8G8B8A8_SRGB]:RGBAFormat,[VK_FORMAT_R32G32_SFLOAT]:RGFormat,[VK_FORMAT_R16G16_SFLOAT]:RGFormat,[VK_FORMAT_R8G8_UNORM]:RGFormat,[VK_FORMAT_R8G8_SRGB]:RGFormat,[VK_FORMAT_R32_SFLOAT]:RedFormat,[VK_FORMAT_R16_SFLOAT]:RedFormat,[VK_FORMAT_R8_SRGB]:RedFormat,[VK_FORMAT_R8_UNORM]:RedFormat};const TYPE_MAP={[VK_FORMAT_R32G32B32A32_SFLOAT]:FloatType,[VK_FORMAT_R16G16B16A16_SFLOAT]:HalfFloatType,[VK_FORMAT_R8G8B8A8_UNORM]:UnsignedByteType,[VK_FORMAT_R8G8B8A8_SRGB]:UnsignedByteType,[VK_FORMAT_R32G32_SFLOAT]:FloatType,[VK_FORMAT_R16G16_SFLOAT]:HalfFloatType,[VK_FORMAT_R8G8_UNORM]:UnsignedByteType,[VK_FORMAT_R8G8_SRGB]:UnsignedByteType,[VK_FORMAT_R32_SFLOAT]:FloatType,[VK_FORMAT_R16_SFLOAT]:HalfFloatType,[VK_FORMAT_R8_SRGB]:UnsignedByteType,[VK_FORMAT_R8_UNORM]:UnsignedByteType};const ENCODING_MAP={[VK_FORMAT_R8G8B8A8_SRGB]:sRGBEncoding,[VK_FORMAT_R8G8_SRGB]:sRGBEncoding,[VK_FORMAT_R8_SRGB]:sRGBEncoding};async function createDataTexture(container){const{vkFormat,pixelWidth,pixelHeight,pixelDepth}=container;if(FORMAT_MAP[vkFormat]===undefined){throw new Error("THREE.KTX2Loader: Unsupported vkFormat.")}const level=container.levels[0];let levelData;let view;if(container.supercompressionScheme===KHR_SUPERCOMPRESSION_NONE){levelData=level.levelData}else if(container.supercompressionScheme===KHR_SUPERCOMPRESSION_ZSTD){if(!_zstd){_zstd=new Promise(async resolve=>{const zstd=new ZSTDDecoder;await zstd.init();resolve(zstd)})}levelData=(await _zstd).decode(level.levelData,level.uncompressedByteLength)}else{throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.")}if(TYPE_MAP[vkFormat]===FloatType){view=new Float32Array(levelData.buffer,levelData.byteOffset,levelData.byteLength/Float32Array.BYTES_PER_ELEMENT)}else if(TYPE_MAP[vkFormat]===HalfFloatType){view=new Uint16Array(levelData.buffer,levelData.byteOffset,levelData.byteLength/Uint16Array.BYTES_PER_ELEMENT)}else{view=levelData}const texture=pixelDepth===0?new DataTexture(view,pixelWidth,pixelHeight):new Data3DTexture(view,pixelWidth,pixelHeight,pixelDepth);texture.type=TYPE_MAP[vkFormat];texture.format=FORMAT_MAP[vkFormat];texture.encoding=ENCODING_MAP[vkFormat]||LinearEncoding;texture.needsUpdate=true;return Promise.resolve(texture)}THREE.KTX2Loader=KTX2Loader})();(function(){let A,I,B;const g={env:{emscripten_notify_memory_growth:function(A){B=new Uint8Array(I.exports.memory.buffer)}}};class Q{init(){return A||(A="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then(this._init):WebAssembly.instantiate(Buffer.from(C,"base64"),g).then(this._init),A)}_init(A){I=A.instance,g.env.emscripten_notify_memory_growth(0)}decode(A,g=0){if(!I)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Q=A.byteLength,C=I.exports.malloc(Q);B.set(A,C),g=g||Number(I.exports.ZSTD_findDecompressedSize(C,Q));const E=I.exports.malloc(g),i=I.exports.ZSTD_decompress(E,g,C,Q),D=B.slice(E,E+i);return I.exports.free(C),I.exports.free(E),D}}const C=" ";THREE.ZSTDDecoder=Q})();(function(e){var modifiedJSON={};modifiedJSON.parse=function(data){json=JSON.parse(data);json.nodes&&json.nodes.forEach((node,index)=>{(node.extras||(node.extras={})).id=index.toString()});return json};e(modifiedJSON)})(function(JSON){(function(){var AnimationClip=THREE.AnimationClip,Bone=THREE.Bone,Box3=THREE.Box3,BufferAttribute=THREE.BufferAttribute,BufferGeometry=THREE.BufferGeometry,ClampToEdgeWrapping=THREE.ClampToEdgeWrapping,Color=THREE.Color,DirectionalLight=THREE.DirectionalLight,DoubleSide=THREE.DoubleSide,FileLoader=THREE.FileLoader,FrontSide=THREE.FrontSide,Group=THREE.Group,ImageBitmapLoader=THREE.ImageBitmapLoader,InterleavedBuffer=THREE.InterleavedBuffer,InterleavedBufferAttribute=THREE.InterleavedBufferAttribute,Interpolant=THREE.Interpolant,InterpolateDiscrete=THREE.InterpolateDiscrete,InterpolateLinear=THREE.InterpolateLinear,Line=THREE.Line,LineBasicMaterial=THREE.LineBasicMaterial,LineLoop=THREE.LineLoop,LineSegments=THREE.LineSegments,LinearFilter=THREE.LinearFilter,LinearMipmapLinearFilter=THREE.LinearMipmapLinearFilter,LinearMipmapNearestFilter=THREE.LinearMipmapNearestFilter,Loader=THREE.Loader,LoaderUtils=THREE.LoaderUtils,Material=THREE.Material,MathUtils=THREE.MathUtils,Matrix4=THREE.Matrix4,Mesh=THREE.Mesh,MeshBasicMaterial=THREE.MeshBasicMaterial,MeshPhysicalMaterial=THREE.MeshPhysicalMaterial,MeshStandardMaterial=THREE.MeshStandardMaterial,MirroredRepeatWrapping=THREE.MirroredRepeatWrapping,NearestFilter=THREE.NearestFilter,NearestMipmapLinearFilter=THREE.NearestMipmapLinearFilter,NearestMipmapNearestFilter=THREE.NearestMipmapNearestFilter,NumberKeyframeTrack=THREE.NumberKeyframeTrack,Object3D=THREE.Object3D,OrthographicCamera=THREE.OrthographicCamera,PerspectiveCamera=THREE.PerspectiveCamera,PointLight=THREE.PointLight,Points=THREE.Points,PointsMaterial=THREE.PointsMaterial,PropertyBinding=THREE.PropertyBinding,Quaternion=THREE.Quaternion,QuaternionKeyframeTrack=THREE.QuaternionKeyframeTrack,RepeatWrapping=THREE.RepeatWrapping,Skeleton=THREE.Skeleton,SkinnedMesh=THREE.SkinnedMesh,Sphere=THREE.Sphere,SpotLight=THREE.SpotLight,TangentSpaceNormalMap=THREE.TangentSpaceNormalMap,Texture=THREE.Texture,TextureLoader=THREE.TextureLoader,TriangleFanDrawMode=THREE.TriangleFanDrawMode,TriangleStripDrawMode=THREE.TriangleStripDrawMode,Vector2=THREE.Vector2,Vector3=THREE.Vector3,VectorKeyframeTrack=THREE.VectorKeyframeTrack,sRGBEncoding=THREE.sRGBEncoding;class GLTFLoader extends Loader{constructor(manager){super(manager);this.dracoLoader=null;this.ktx2Loader=null;this.meshoptDecoder=null;this.pluginCallbacks=[];this.register(function(parser){return new GLTFMaterialsClearcoatExtension(parser)});this.register(function(parser){return new GLTFTextureBasisUExtension(parser)});this.register(function(parser){return new GLTFTextureWebPExtension(parser)});this.register(function(parser){return new GLTFMaterialsSheenExtension(parser)});this.register(function(parser){return new GLTFMaterialsTransmissionExtension(parser)});this.register(function(parser){return new GLTFMaterialsVolumeExtension(parser)});this.register(function(parser){return new GLTFMaterialsIorExtension(parser)});this.register(function(parser){return new GLTFMaterialsEmissiveStrengthExtension(parser)});this.register(function(parser){return new GLTFMaterialsSpecularExtension(parser)});this.register(function(parser){return new GLTFMaterialsIridescenceExtension(parser)});this.register(function(parser){return new GLTFLightsExtension(parser)});this.register(function(parser){return new GLTFMeshoptCompression(parser)})}load(url,onLoad,onProgress,onError){const scope=this;let resourcePath;if(this.resourcePath!==""){resourcePath=this.resourcePath}else if(this.path!==""){resourcePath=this.path}else{resourcePath=LoaderUtils.extractUrlBase(url)}this.manager.itemStart(url);const _onError=function(e){if(onError){onError(e)}else{console.error(e)}scope.manager.itemError(url);scope.manager.itemEnd(url)};const loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType("arraybuffer");loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(this.withCredentials);loader.load(url,function(data){try{scope.parse(data,resourcePath,function(gltf){onLoad(gltf);scope.manager.itemEnd(url)},_onError)}catch(e){_onError(e)}},onProgress,_onError)}setDRACOLoader(dracoLoader){this.dracoLoader=dracoLoader;return this}setDDSLoader(){throw new Error("THREE.GLTFLoader: \"MSFT_texture_dds\" no longer supported. Please update to \"KHR_texture_basisu\".")}setKTX2Loader(ktx2Loader){this.ktx2Loader=ktx2Loader;return this}setMeshoptDecoder(meshoptDecoder){this.meshoptDecoder=meshoptDecoder;return this}register(callback){if(this.pluginCallbacks.indexOf(callback)===-1){this.pluginCallbacks.push(callback)}return this}unregister(callback){if(this.pluginCallbacks.indexOf(callback)!==-1){this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(callback),1)}return this}parse(data,path,onLoad,onError){let content;const extensions={};const plugins={};if(typeof data==="string"){content=data}else{const magic=LoaderUtils.decodeText(new Uint8Array(data,0,4));if(magic===BINARY_EXTENSION_HEADER_MAGIC){try{extensions[EXTENSIONS.KHR_BINARY_GLTF]=new GLTFBinaryExtension(data)}catch(error){if(onError)onError(error);return}content=extensions[EXTENSIONS.KHR_BINARY_GLTF].content}else{content=LoaderUtils.decodeText(new Uint8Array(data))}}const json=JSON.parse(content);if(json.asset===undefined||json.asset.version[0]<2){if(onError)onError(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const parser=new GLTFParser(json,{path:path||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});parser.fileLoader.setRequestHeader(this.requestHeader);for(let i=0;i<this.pluginCallbacks.length;i++){const plugin=this.pluginCallbacks[i](parser);plugins[plugin.name]=plugin;extensions[plugin.name]=true}if(json.extensionsUsed){for(let i=0;i<json.extensionsUsed.length;++i){const extensionName=json.extensionsUsed[i];const extensionsRequired=json.extensionsRequired||[];switch(extensionName){case EXTENSIONS.KHR_MATERIALS_UNLIT:extensions[extensionName]=new GLTFMaterialsUnlitExtension;break;case EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:extensions[extensionName]=new GLTFMaterialsPbrSpecularGlossinessExtension;break;case EXTENSIONS.KHR_DRACO_MESH_COMPRESSION:extensions[extensionName]=new GLTFDracoMeshCompressionExtension(json,this.dracoLoader);break;case EXTENSIONS.KHR_TEXTURE_TRANSFORM:extensions[extensionName]=new GLTFTextureTransformExtension;break;case EXTENSIONS.KHR_MESH_QUANTIZATION:extensions[extensionName]=new GLTFMeshQuantizationExtension;break;default:if(extensionsRequired.indexOf(extensionName)>=0&&plugins[extensionName]===undefined){console.warn("THREE.GLTFLoader: Unknown extension \""+extensionName+"\".")}}}}parser.setExtensions(extensions);parser.setPlugins(plugins);parser.parse(onLoad,onError)}parseAsync(data,path){const scope=this;return new Promise(function(resolve,reject){scope.parse(data,path,resolve,reject)})}}function GLTFRegistry(){let objects={};return{get:function(key){return objects[key]},add:function(key,object){objects[key]=object},remove:function(key){delete objects[key]},removeAll:function(){objects={}}}}const EXTENSIONS={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"};class GLTFLightsExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_LIGHTS_PUNCTUAL;this.cache={refs:{},uses:{}}}_markDefs(){const parser=this.parser;const nodeDefs=this.parser.json.nodes||[];for(let nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex<nodeLength;nodeIndex++){const nodeDef=nodeDefs[nodeIndex];if(nodeDef.extensions&&nodeDef.extensions[this.name]&&nodeDef.extensions[this.name].light!==undefined){parser._addNodeRef(this.cache,nodeDef.extensions[this.name].light)}}}_loadLight(lightIndex){const parser=this.parser;const cacheKey="light:"+lightIndex;let dependency=parser.cache.get(cacheKey);if(dependency)return dependency;const json=parser.json;const extensions=json.extensions&&json.extensions[this.name]||{};const lightDefs=extensions.lights||[];const lightDef=lightDefs[lightIndex];let lightNode;const color=new Color(16777215);if(lightDef.color!==undefined)color.fromArray(lightDef.color);const range=lightDef.range!==undefined?lightDef.range:0;switch(lightDef.type){case"directional":lightNode=new DirectionalLight(color);lightNode.target.position.set(0,0,-1);lightNode.add(lightNode.target);break;case"point":lightNode=new PointLight(color);lightNode.distance=range;break;case"spot":lightNode=new SpotLight(color);lightNode.distance=range;lightDef.spot=lightDef.spot||{};lightDef.spot.innerConeAngle=lightDef.spot.innerConeAngle!==undefined?lightDef.spot.innerConeAngle:0;lightDef.spot.outerConeAngle=lightDef.spot.outerConeAngle!==undefined?lightDef.spot.outerConeAngle:Math.PI/4;lightNode.angle=lightDef.spot.outerConeAngle;lightNode.penumbra=1-lightDef.spot.innerConeAngle/lightDef.spot.outerConeAngle;lightNode.target.position.set(0,0,-1);lightNode.add(lightNode.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+lightDef.type);}lightNode.position.set(0,0,0);lightNode.decay=2;if(lightDef.intensity!==undefined)lightNode.intensity=lightDef.intensity;lightNode.name=parser.createUniqueName(lightDef.name||"light_"+lightIndex);dependency=Promise.resolve(lightNode);parser.cache.add(cacheKey,dependency);return dependency}createNodeAttachment(nodeIndex){const self=this;const parser=this.parser;const json=parser.json;const nodeDef=json.nodes[nodeIndex];const lightDef=nodeDef.extensions&&nodeDef.extensions[this.name]||{};const lightIndex=lightDef.light;if(lightIndex===undefined)return null;return this._loadLight(lightIndex).then(function(light){return parser._getNodeRef(self.cache,lightIndex,light)})}}class GLTFMaterialsUnlitExtension{constructor(){this.name=EXTENSIONS.KHR_MATERIALS_UNLIT}getMaterialType(){return MeshBasicMaterial}extendParams(materialParams,materialDef,parser){const pending=[];materialParams.color=new Color(1,1,1);materialParams.opacity=1;const metallicRoughness=materialDef.pbrMetallicRoughness;if(metallicRoughness){if(Array.isArray(metallicRoughness.baseColorFactor)){const array=metallicRoughness.baseColorFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3]}if(metallicRoughness.baseColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,"map",metallicRoughness.baseColorTexture,sRGBEncoding))}}return Promise.all(pending)}}class GLTFMaterialsEmissiveStrengthExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const emissiveStrength=materialDef.extensions[this.name].emissiveStrength;if(emissiveStrength!==undefined){materialParams.emissiveIntensity=emissiveStrength}return Promise.resolve()}}class GLTFMaterialsClearcoatExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_CLEARCOAT}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];const extension=materialDef.extensions[this.name];if(extension.clearcoatFactor!==undefined){materialParams.clearcoat=extension.clearcoatFactor}if(extension.clearcoatTexture!==undefined){pending.push(parser.assignTexture(materialParams,"clearcoatMap",extension.clearcoatTexture))}if(extension.clearcoatRoughnessFactor!==undefined){materialParams.clearcoatRoughness=extension.clearcoatRoughnessFactor}if(extension.clearcoatRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"clearcoatRoughnessMap",extension.clearcoatRoughnessTexture))}if(extension.clearcoatNormalTexture!==undefined){pending.push(parser.assignTexture(materialParams,"clearcoatNormalMap",extension.clearcoatNormalTexture));if(extension.clearcoatNormalTexture.scale!==undefined){const scale=extension.clearcoatNormalTexture.scale;materialParams.clearcoatNormalScale=new Vector2(scale,scale)}}return Promise.all(pending)}}class GLTFMaterialsIridescenceExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_IRIDESCENCE}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];const extension=materialDef.extensions[this.name];if(extension.iridescenceFactor!==undefined){materialParams.iridescence=extension.iridescenceFactor}if(extension.iridescenceTexture!==undefined){pending.push(parser.assignTexture(materialParams,"iridescenceMap",extension.iridescenceTexture))}if(extension.iridescenceIor!==undefined){materialParams.iridescenceIOR=extension.iridescenceIor}if(materialParams.iridescenceThicknessRange===undefined){materialParams.iridescenceThicknessRange=[100,400]}if(extension.iridescenceThicknessMinimum!==undefined){materialParams.iridescenceThicknessRange[0]=extension.iridescenceThicknessMinimum}if(extension.iridescenceThicknessMaximum!==undefined){materialParams.iridescenceThicknessRange[1]=extension.iridescenceThicknessMaximum}if(extension.iridescenceThicknessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"iridescenceThicknessMap",extension.iridescenceThicknessTexture))}return Promise.all(pending)}}class GLTFMaterialsSheenExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_SHEEN}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];materialParams.sheenColor=new Color(0,0,0);materialParams.sheenRoughness=0;materialParams.sheen=1;const extension=materialDef.extensions[this.name];if(extension.sheenColorFactor!==undefined){materialParams.sheenColor.fromArray(extension.sheenColorFactor)}if(extension.sheenRoughnessFactor!==undefined){materialParams.sheenRoughness=extension.sheenRoughnessFactor}if(extension.sheenColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,"sheenColorMap",extension.sheenColorTexture,sRGBEncoding))}if(extension.sheenRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"sheenRoughnessMap",extension.sheenRoughnessTexture))}return Promise.all(pending)}}class GLTFMaterialsTransmissionExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_TRANSMISSION}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];const extension=materialDef.extensions[this.name];if(extension.transmissionFactor!==undefined){materialParams.transmission=extension.transmissionFactor}if(extension.transmissionTexture!==undefined){pending.push(parser.assignTexture(materialParams,"transmissionMap",extension.transmissionTexture))}return Promise.all(pending)}}class GLTFMaterialsVolumeExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_VOLUME}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];const extension=materialDef.extensions[this.name];materialParams.thickness=extension.thicknessFactor!==undefined?extension.thicknessFactor:0;if(extension.thicknessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"thicknessMap",extension.thicknessTexture))}materialParams.attenuationDistance=extension.attenuationDistance||Infinity;const colorArray=extension.attenuationColor||[1,1,1];materialParams.attenuationColor=new Color(colorArray[0],colorArray[1],colorArray[2]);return Promise.all(pending)}}class GLTFMaterialsIorExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_IOR}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const extension=materialDef.extensions[this.name];materialParams.ior=extension.ior!==undefined?extension.ior:1.5;return Promise.resolve()}}class GLTFMaterialsSpecularExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_MATERIALS_SPECULAR}getMaterialType(materialIndex){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name])return null;return MeshPhysicalMaterial}extendMaterialParams(materialIndex,materialParams){const parser=this.parser;const materialDef=parser.json.materials[materialIndex];if(!materialDef.extensions||!materialDef.extensions[this.name]){return Promise.resolve()}const pending=[];const extension=materialDef.extensions[this.name];materialParams.specularIntensity=extension.specularFactor!==undefined?extension.specularFactor:1;if(extension.specularTexture!==undefined){pending.push(parser.assignTexture(materialParams,"specularIntensityMap",extension.specularTexture))}const colorArray=extension.specularColorFactor||[1,1,1];materialParams.specularColor=new Color(colorArray[0],colorArray[1],colorArray[2]);if(extension.specularColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,"specularColorMap",extension.specularColorTexture,sRGBEncoding))}return Promise.all(pending)}}class GLTFTextureBasisUExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_TEXTURE_BASISU}loadTexture(textureIndex){const parser=this.parser;const json=parser.json;const textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[this.name]){return null}const extension=textureDef.extensions[this.name];const loader=parser.options.ktx2Loader;if(!loader){if(json.extensionsRequired&&json.extensionsRequired.indexOf(this.name)>=0){throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures")}else{return null}}return parser.loadTextureImage(textureIndex,extension.source,loader)}}class GLTFTextureWebPExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.EXT_TEXTURE_WEBP;this.isSupported=null}loadTexture(textureIndex){const name=this.name;const parser=this.parser;const json=parser.json;const textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[name]){return null}const extension=textureDef.extensions[name];const source=json.images[extension.source];let loader=parser.textureLoader;if(source.uri){const handler=parser.options.manager.getHandler(source.uri);if(handler!==null)loader=handler}return this.detectSupport().then(function(isSupported){if(isSupported)return parser.loadTextureImage(textureIndex,extension.source,loader);if(json.extensionsRequired&&json.extensionsRequired.indexOf(name)>=0){throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.")}return parser.loadTexture(textureIndex)})}detectSupport(){if(!this.isSupported){this.isSupported=new Promise(function(resolve){const image=new Image;image.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";image.onload=image.onerror=function(){resolve(image.height===1)}})}return this.isSupported}}class GLTFMeshoptCompression{constructor(parser){this.name=EXTENSIONS.EXT_MESHOPT_COMPRESSION;this.parser=parser}loadBufferView(index){const json=this.parser.json;const bufferView=json.bufferViews[index];if(bufferView.extensions&&bufferView.extensions[this.name]){const extensionDef=bufferView.extensions[this.name];const buffer=this.parser.getDependency("buffer",extensionDef.buffer);const decoder=this.parser.options.meshoptDecoder;if(!decoder||!decoder.supported){if(json.extensionsRequired&&json.extensionsRequired.indexOf(this.name)>=0){throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files")}else{return null}}return buffer.then(function(res){const byteOffset=extensionDef.byteOffset||0;const byteLength=extensionDef.byteLength||0;const count=extensionDef.count;const stride=extensionDef.byteStride;const source=new Uint8Array(res,byteOffset,byteLength);if(decoder.decodeGltfBufferAsync){return decoder.decodeGltfBufferAsync(count,stride,source,extensionDef.mode,extensionDef.filter).then(function(res){return res.buffer})}else{return decoder.ready.then(function(){const result=new ArrayBuffer(count*stride);decoder.decodeGltfBuffer(new Uint8Array(result),count,stride,source,extensionDef.mode,extensionDef.filter);return result})}})}else{return null}}}const BINARY_EXTENSION_HEADER_MAGIC="glTF";const BINARY_EXTENSION_HEADER_LENGTH=12;const BINARY_EXTENSION_CHUNK_TYPES={JSON:1313821514,BIN:5130562};class GLTFBinaryExtension{constructor(data){this.name=EXTENSIONS.KHR_BINARY_GLTF;this.content=null;this.body=null;const headerView=new DataView(data,0,BINARY_EXTENSION_HEADER_LENGTH);this.header={magic:LoaderUtils.decodeText(new Uint8Array(data.slice(0,4))),version:headerView.getUint32(4,true),length:headerView.getUint32(8,true)};if(this.header.magic!==BINARY_EXTENSION_HEADER_MAGIC){throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.")}else if(this.header.version<2){throw new Error("THREE.GLTFLoader: Legacy binary file detected.")}const chunkContentsLength=this.header.length-BINARY_EXTENSION_HEADER_LENGTH;const chunkView=new DataView(data,BINARY_EXTENSION_HEADER_LENGTH);let chunkIndex=0;while(chunkIndex<chunkContentsLength){const chunkLength=chunkView.getUint32(chunkIndex,true);chunkIndex+=4;const chunkType=chunkView.getUint32(chunkIndex,true);chunkIndex+=4;if(chunkType===BINARY_EXTENSION_CHUNK_TYPES.JSON){const contentArray=new Uint8Array(data,BINARY_EXTENSION_HEADER_LENGTH+chunkIndex,chunkLength);this.content=LoaderUtils.decodeText(contentArray)}else if(chunkType===BINARY_EXTENSION_CHUNK_TYPES.BIN){const byteOffset=BINARY_EXTENSION_HEADER_LENGTH+chunkIndex;this.body=data.slice(byteOffset,byteOffset+chunkLength)}chunkIndex+=chunkLength}if(this.content===null){throw new Error("THREE.GLTFLoader: JSON content not found.")}}}class GLTFDracoMeshCompressionExtension{constructor(json,dracoLoader){if(!dracoLoader){throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.")}this.name=EXTENSIONS.KHR_DRACO_MESH_COMPRESSION;this.json=json;this.dracoLoader=dracoLoader;this.dracoLoader.preload()}decodePrimitive(primitive,parser){const json=this.json;const dracoLoader=this.dracoLoader;const bufferViewIndex=primitive.extensions[this.name].bufferView;const gltfAttributeMap=primitive.extensions[this.name].attributes;const threeAttributeMap={};const attributeNormalizedMap={};const attributeTypeMap={};for(const attributeName in gltfAttributeMap){const threeAttributeName=ATTRIBUTES[attributeName]||attributeName.toLowerCase();threeAttributeMap[threeAttributeName]=gltfAttributeMap[attributeName]}for(const attributeName in primitive.attributes){const threeAttributeName=ATTRIBUTES[attributeName]||attributeName.toLowerCase();if(gltfAttributeMap[attributeName]!==undefined){const accessorDef=json.accessors[primitive.attributes[attributeName]];const componentType=WEBGL_COMPONENT_TYPES[accessorDef.componentType];attributeTypeMap[threeAttributeName]=componentType.name;attributeNormalizedMap[threeAttributeName]=accessorDef.normalized===true}}return parser.getDependency("bufferView",bufferViewIndex).then(function(bufferView){return new Promise(function(resolve){dracoLoader.decodeDracoFile(bufferView,function(geometry){for(const attributeName in geometry.attributes){const attribute=geometry.attributes[attributeName];const normalized=attributeNormalizedMap[attributeName];if(normalized!==undefined)attribute.normalized=normalized}resolve(geometry)},threeAttributeMap,attributeTypeMap)})})}}class GLTFTextureTransformExtension{constructor(){this.name=EXTENSIONS.KHR_TEXTURE_TRANSFORM}extendTexture(texture,transform){if(transform.texCoord!==undefined){console.warn("THREE.GLTFLoader: Custom UV sets in \""+this.name+"\" extension not yet supported.")}if(transform.offset===undefined&&transform.rotation===undefined&&transform.scale===undefined){return texture}texture=texture.clone();if(transform.offset!==undefined){texture.offset.fromArray(transform.offset)}if(transform.rotation!==undefined){texture.rotation=transform.rotation}if(transform.scale!==undefined){texture.repeat.fromArray(transform.scale)}texture.needsUpdate=true;return texture}}class GLTFMeshStandardSGMaterial extends MeshStandardMaterial{constructor(params){super();this.isGLTFSpecularGlossinessMaterial=true;const specularMapParsFragmentChunk=["#ifdef USE_SPECULARMAP","\tuniform sampler2D specularMap;","#endif"].join("\n");const glossinessMapParsFragmentChunk=["#ifdef USE_GLOSSINESSMAP","\tuniform sampler2D glossinessMap;","#endif"].join("\n");const specularMapFragmentChunk=["vec3 specularFactor = specular;","#ifdef USE_SPECULARMAP","\tvec4 texelSpecular = texture2D( specularMap, vUv );","\t// reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture","\tspecularFactor *= texelSpecular.rgb;","#endif"].join("\n");const glossinessMapFragmentChunk=["float glossinessFactor = glossiness;","#ifdef USE_GLOSSINESSMAP","\tvec4 texelGlossiness = texture2D( glossinessMap, vUv );","\t// reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture","\tglossinessFactor *= texelGlossiness.a;","#endif"].join("\n");const lightPhysicalFragmentChunk=["PhysicalMaterial material;","material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );","vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );","float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );","material.roughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.","material.roughness += geometryRoughness;","material.roughness = min( material.roughness, 1.0 );","material.specularColor = specularFactor;"].join("\n");const uniforms={specular:{value:new Color().setHex(16777215)},glossiness:{value:1},specularMap:{value:null},glossinessMap:{value:null}};this._extraUniforms=uniforms;this.onBeforeCompile=function(shader){for(const uniformName in uniforms){shader.uniforms[uniformName]=uniforms[uniformName]}shader.fragmentShader=shader.fragmentShader.replace("uniform float roughness;","uniform vec3 specular;").replace("uniform float metalness;","uniform float glossiness;").replace("#include <roughnessmap_pars_fragment>",specularMapParsFragmentChunk).replace("#include <metalnessmap_pars_fragment>",glossinessMapParsFragmentChunk).replace("#include <roughnessmap_fragment>",specularMapFragmentChunk).replace("#include <metalnessmap_fragment>",glossinessMapFragmentChunk).replace("#include <lights_physical_fragment>",lightPhysicalFragmentChunk)};Object.defineProperties(this,{specular:{get:function(){return uniforms.specular.value},set:function(v){uniforms.specular.value=v}},specularMap:{get:function(){return uniforms.specularMap.value},set:function(v){uniforms.specularMap.value=v;if(v){this.defines.USE_SPECULARMAP=""}else{delete this.defines.USE_SPECULARMAP}}},glossiness:{get:function(){return uniforms.glossiness.value},set:function(v){uniforms.glossiness.value=v}},glossinessMap:{get:function(){return uniforms.glossinessMap.value},set:function(v){uniforms.glossinessMap.value=v;if(v){this.defines.USE_GLOSSINESSMAP="";this.defines.USE_UV=""}else{delete this.defines.USE_GLOSSINESSMAP;delete this.defines.USE_UV}}}});delete this.metalness;delete this.roughness;delete this.metalnessMap;delete this.roughnessMap;this.setValues(params)}copy(source){super.copy(source);this.specularMap=source.specularMap;this.specular.copy(source.specular);this.glossinessMap=source.glossinessMap;this.glossiness=source.glossiness;delete this.metalness;delete this.roughness;delete this.metalnessMap;delete this.roughnessMap;return this}}class GLTFMaterialsPbrSpecularGlossinessExtension{constructor(){this.name=EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS;this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity"]}getMaterialType(){return GLTFMeshStandardSGMaterial}extendParams(materialParams,materialDef,parser){const pbrSpecularGlossiness=materialDef.extensions[this.name];materialParams.color=new Color(1,1,1);materialParams.opacity=1;const pending=[];if(Array.isArray(pbrSpecularGlossiness.diffuseFactor)){const array=pbrSpecularGlossiness.diffuseFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3]}if(pbrSpecularGlossiness.diffuseTexture!==undefined){pending.push(parser.assignTexture(materialParams,"map",pbrSpecularGlossiness.diffuseTexture,sRGBEncoding))}materialParams.emissive=new Color(0,0,0);materialParams.glossiness=pbrSpecularGlossiness.glossinessFactor!==undefined?pbrSpecularGlossiness.glossinessFactor:1;materialParams.specular=new Color(1,1,1);if(Array.isArray(pbrSpecularGlossiness.specularFactor)){materialParams.specular.fromArray(pbrSpecularGlossiness.specularFactor)}if(pbrSpecularGlossiness.specularGlossinessTexture!==undefined){const specGlossMapDef=pbrSpecularGlossiness.specularGlossinessTexture;pending.push(parser.assignTexture(materialParams,"glossinessMap",specGlossMapDef));pending.push(parser.assignTexture(materialParams,"specularMap",specGlossMapDef,sRGBEncoding))}return Promise.all(pending)}createMaterial(materialParams){const material=new GLTFMeshStandardSGMaterial(materialParams);material.fog=true;material.color=materialParams.color;material.map=materialParams.map===undefined?null:materialParams.map;material.lightMap=null;material.lightMapIntensity=1;material.aoMap=materialParams.aoMap===undefined?null:materialParams.aoMap;material.aoMapIntensity=1;material.emissive=materialParams.emissive;material.emissiveIntensity=materialParams.emissiveIntensity===undefined?1:materialParams.emissiveIntensity;material.emissiveMap=materialParams.emissiveMap===undefined?null:materialParams.emissiveMap;material.bumpMap=materialParams.bumpMap===undefined?null:materialParams.bumpMap;material.bumpScale=1;material.normalMap=materialParams.normalMap===undefined?null:materialParams.normalMap;material.normalMapType=TangentSpaceNormalMap;if(materialParams.normalScale)material.normalScale=materialParams.normalScale;material.displacementMap=null;material.displacementScale=1;material.displacementBias=0;material.specularMap=materialParams.specularMap===undefined?null:materialParams.specularMap;material.specular=materialParams.specular;material.glossinessMap=materialParams.glossinessMap===undefined?null:materialParams.glossinessMap;material.glossiness=materialParams.glossiness;material.alphaMap=null;material.envMap=materialParams.envMap===undefined?null:materialParams.envMap;material.envMapIntensity=1;return material}}class GLTFMeshQuantizationExtension{constructor(){this.name=EXTENSIONS.KHR_MESH_QUANTIZATION}}class GLTFCubicSplineInterpolant extends Interpolant{constructor(parameterPositions,sampleValues,sampleSize,resultBuffer){super(parameterPositions,sampleValues,sampleSize,resultBuffer)}copySampleValue_(index){const result=this.resultBuffer,values=this.sampleValues,valueSize=this.valueSize,offset=index*valueSize*3+valueSize;for(let i=0;i!==valueSize;i++){result[i]=values[offset+i]}return result}interpolate_(i1,t0,t,t1){const result=this.resultBuffer;const values=this.sampleValues;const stride=this.valueSize;const stride2=stride*2;const stride3=stride*3;const td=t1-t0;const p=(t-t0)/td;const pp=p*p;const ppp=pp*p;const offset1=i1*stride3;const offset0=offset1-stride3;const s2=-2*ppp+3*pp;const s3=ppp-pp;const s0=1-s2;const s1=s3-pp+p;for(let i=0;i!==stride;i++){const p0=values[offset0+i+stride];const m0=values[offset0+i+stride2]*td;const p1=values[offset1+i+stride];const m1=values[offset1+i]*td;result[i]=s0*p0+s1*m0+s2*p1+s3*m1}return result}}const _q=new Quaternion;class GLTFCubicSplineQuaternionInterpolant extends GLTFCubicSplineInterpolant{interpolate_(i1,t0,t,t1){const result=super.interpolate_(i1,t0,t,t1);_q.fromArray(result).normalize().toArray(result);return result}}const WEBGL_CONSTANTS={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123};const WEBGL_COMPONENT_TYPES={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array};const WEBGL_FILTERS={9728:NearestFilter,9729:LinearFilter,9984:NearestMipmapNearestFilter,9985:LinearMipmapNearestFilter,9986:NearestMipmapLinearFilter,9987:LinearMipmapLinearFilter};const WEBGL_WRAPPINGS={33071:ClampToEdgeWrapping,33648:MirroredRepeatWrapping,10497:RepeatWrapping};const WEBGL_TYPE_SIZES={"SCALAR":1,"VEC2":2,"VEC3":3,"VEC4":4,"MAT2":4,"MAT3":9,"MAT4":16};const ATTRIBUTES={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"};const PATH_PROPERTIES={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"};const INTERPOLATION={CUBICSPLINE:undefined,LINEAR:InterpolateLinear,STEP:InterpolateDiscrete};const ALPHA_MODES={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function createDefaultMaterial(cache){if(cache["DefaultMaterial"]===undefined){cache["DefaultMaterial"]=new MeshStandardMaterial({color:16777215,emissive:0,metalness:1,roughness:1,transparent:false,depthTest:true,side:FrontSide})}return cache["DefaultMaterial"]}function addUnknownExtensionsToUserData(knownExtensions,object,objectDef){for(const name in objectDef.extensions){if(knownExtensions[name]===undefined){object.userData.gltfExtensions=object.userData.gltfExtensions||{};object.userData.gltfExtensions[name]=objectDef.extensions[name]}}}function assignExtrasToUserData(object,gltfDef){if(gltfDef.extras!==undefined){if(typeof gltfDef.extras==="object"){Object.assign(object.userData,gltfDef.extras)}else{console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+gltfDef.extras)}}}function addMorphTargets(geometry,targets,parser){let hasMorphPosition=false;let hasMorphNormal=false;let hasMorphColor=false;for(let i=0,il=targets.length;i<il;i++){const target=targets[i];if(target.POSITION!==undefined)hasMorphPosition=true;if(target.NORMAL!==undefined)hasMorphNormal=true;if(target.COLOR_0!==undefined)hasMorphColor=true;if(hasMorphPosition&&hasMorphNormal&&hasMorphColor)break}if(!hasMorphPosition&&!hasMorphNormal&&!hasMorphColor)return Promise.resolve(geometry);const pendingPositionAccessors=[];const pendingNormalAccessors=[];const pendingColorAccessors=[];for(let i=0,il=targets.length;i<il;i++){const target=targets[i];if(hasMorphPosition){const pendingAccessor=target.POSITION!==undefined?parser.getDependency("accessor",target.POSITION):geometry.attributes.position;pendingPositionAccessors.push(pendingAccessor)}if(hasMorphNormal){const pendingAccessor=target.NORMAL!==undefined?parser.getDependency("accessor",target.NORMAL):geometry.attributes.normal;pendingNormalAccessors.push(pendingAccessor)}if(hasMorphColor){const pendingAccessor=target.COLOR_0!==undefined?parser.getDependency("accessor",target.COLOR_0):geometry.attributes.color;pendingColorAccessors.push(pendingAccessor)}}return Promise.all([Promise.all(pendingPositionAccessors),Promise.all(pendingNormalAccessors),Promise.all(pendingColorAccessors)]).then(function(accessors){const morphPositions=accessors[0];const morphNormals=accessors[1];const morphColors=accessors[2];if(hasMorphPosition)geometry.morphAttributes.position=morphPositions;if(hasMorphNormal)geometry.morphAttributes.normal=morphNormals;if(hasMorphColor)geometry.morphAttributes.color=morphColors;geometry.morphTargetsRelative=true;return geometry})}function updateMorphTargets(mesh,meshDef){mesh.updateMorphTargets();if(meshDef.weights!==undefined){for(let i=0,il=meshDef.weights.length;i<il;i++){mesh.morphTargetInfluences[i]=meshDef.weights[i]}}if(meshDef.extras&&Array.isArray(meshDef.extras.targetNames)){const targetNames=meshDef.extras.targetNames;if(mesh.morphTargetInfluences.length===targetNames.length){mesh.morphTargetDictionary={};for(let i=0,il=targetNames.length;i<il;i++){mesh.morphTargetDictionary[targetNames[i]]=i}}else{console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}}function createPrimitiveKey(primitiveDef){const dracoExtension=primitiveDef.extensions&&primitiveDef.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION];let geometryKey;if(dracoExtension){geometryKey="draco:"+dracoExtension.bufferView+":"+dracoExtension.indices+":"+createAttributesKey(dracoExtension.attributes)}else{geometryKey=primitiveDef.indices+":"+createAttributesKey(primitiveDef.attributes)+":"+primitiveDef.mode}return geometryKey}function createAttributesKey(attributes){let attributesKey="";const keys=Object.keys(attributes).sort();for(let i=0,il=keys.length;i<il;i++){attributesKey+=keys[i]+":"+attributes[keys[i]]+";"}return attributesKey}function getNormalizedComponentScale(constructor){switch(constructor){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");}}function getImageURIMimeType(uri){if(uri.search(/\.jpe?g($|\?)/i)>0||uri.search(/^data\:image\/jpeg/)===0)return"image/jpeg";if(uri.search(/\.webp($|\?)/i)>0||uri.search(/^data\:image\/webp/)===0)return"image/webp";return"image/png"}class GLTFParser{constructor(json={},options={}){this.json=json;this.extensions={};this.plugins={};this.options=options;this.cache=new GLTFRegistry;this.associations=new Map;this.primitiveCache={};this.meshCache={refs:{},uses:{}};this.cameraCache={refs:{},uses:{}};this.lightCache={refs:{},uses:{}};this.sourceCache={};this.textureCache={};this.nodeNamesUsed={};const isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===true;const isFirefox=navigator.userAgent.indexOf("Firefox")>-1;const firefoxVersion=isFirefox?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1;if(typeof createImageBitmap==="undefined"||isSafari||isFirefox&&firefoxVersion<98){this.textureLoader=new TextureLoader(this.options.manager)}else{this.textureLoader=new ImageBitmapLoader(this.options.manager)}this.textureLoader.setCrossOrigin(this.options.crossOrigin);this.textureLoader.setRequestHeader(this.options.requestHeader);this.fileLoader=new FileLoader(this.options.manager);this.fileLoader.setResponseType("arraybuffer");if(this.options.crossOrigin==="use-credentials"){this.fileLoader.setWithCredentials(true)}}setExtensions(extensions){this.extensions=extensions}setPlugins(plugins){this.plugins=plugins}parse(onLoad,onError){const parser=this;const json=this.json;const extensions=this.extensions;this.cache.removeAll();this._invokeAll(function(ext){return ext._markDefs&&ext._markDefs()});Promise.all(this._invokeAll(function(ext){return ext.beforeRoot&&ext.beforeRoot()})).then(function(){return Promise.all([parser.getDependencies("scene"),parser.getDependencies("animation"),parser.getDependencies("camera")])}).then(function(dependencies){const result={scene:dependencies[0][json.scene||0],scenes:dependencies[0],animations:dependencies[1],cameras:dependencies[2],asset:json.asset,parser:parser,userData:{}};addUnknownExtensionsToUserData(extensions,result,json);assignExtrasToUserData(result,json);Promise.all(parser._invokeAll(function(ext){return ext.afterRoot&&ext.afterRoot(result)})).then(function(){onLoad(result)})}).catch(onError)}_markDefs(){const nodeDefs=this.json.nodes||[];const skinDefs=this.json.skins||[];const meshDefs=this.json.meshes||[];for(let skinIndex=0,skinLength=skinDefs.length;skinIndex<skinLength;skinIndex++){const joints=skinDefs[skinIndex].joints;for(let i=0,il=joints.length;i<il;i++){nodeDefs[joints[i]].isBone=true}}for(let nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex<nodeLength;nodeIndex++){const nodeDef=nodeDefs[nodeIndex];if(nodeDef.mesh!==undefined){this._addNodeRef(this.meshCache,nodeDef.mesh);if(nodeDef.skin!==undefined){meshDefs[nodeDef.mesh].isSkinnedMesh=true}}if(nodeDef.camera!==undefined){this._addNodeRef(this.cameraCache,nodeDef.camera)}}}_addNodeRef(cache,index){if(index===undefined)return;if(cache.refs[index]===undefined){cache.refs[index]=cache.uses[index]=0}cache.refs[index]++}_getNodeRef(cache,index,object){if(cache.refs[index]<=1)return object;const ref=object.clone();const updateMappings=(original,clone)=>{const mappings=this.associations.get(original);if(mappings!=null){this.associations.set(clone,mappings)}for(const[i,child]of original.children.entries()){updateMappings(child,clone.children[i])}};updateMappings(object,ref);ref.name+="_instance_"+cache.uses[index]++;return ref}_invokeOne(func){const extensions=Object.values(this.plugins);extensions.push(this);for(let i=0;i<extensions.length;i++){const result=func(extensions[i]);if(result)return result}return null}_invokeAll(func){const extensions=Object.values(this.plugins);extensions.unshift(this);const pending=[];for(let i=0;i<extensions.length;i++){const result=func(extensions[i]);if(result)pending.push(result)}return pending}getDependency(type,index){const cacheKey=type+":"+index;let dependency=this.cache.get(cacheKey);if(!dependency){switch(type){case"scene":dependency=this.loadScene(index);break;case"node":dependency=this.loadNode(index);break;case"mesh":dependency=this._invokeOne(function(ext){return ext.loadMesh&&ext.loadMesh(index)});break;case"accessor":dependency=this.loadAccessor(index);break;case"bufferView":dependency=this._invokeOne(function(ext){return ext.loadBufferView&&ext.loadBufferView(index)});break;case"buffer":dependency=this.loadBuffer(index);break;case"material":dependency=this._invokeOne(function(ext){return ext.loadMaterial&&ext.loadMaterial(index)});break;case"texture":dependency=this._invokeOne(function(ext){return ext.loadTexture&&ext.loadTexture(index)});break;case"skin":dependency=this.loadSkin(index);break;case"animation":dependency=this._invokeOne(function(ext){return ext.loadAnimation&&ext.loadAnimation(index)});break;case"camera":dependency=this.loadCamera(index);break;default:throw new Error("Unknown type: "+type);}this.cache.add(cacheKey,dependency)}return dependency}getDependencies(type){let dependencies=this.cache.get(type);if(!dependencies){const parser=this;const defs=this.json[type+(type==="mesh"?"es":"s")]||[];dependencies=Promise.all(defs.map(function(def,index){return parser.getDependency(type,index)}));this.cache.add(type,dependencies)}return dependencies}loadBuffer(bufferIndex){const bufferDef=this.json.buffers[bufferIndex];const loader=this.fileLoader;if(bufferDef.type&&bufferDef.type!=="arraybuffer"){throw new Error("THREE.GLTFLoader: "+bufferDef.type+" buffer type is not supported.")}if(bufferDef.uri===undefined&&bufferIndex===0){return Promise.resolve(this.extensions[EXTENSIONS.KHR_BINARY_GLTF].body)}const options=this.options;return new Promise(function(resolve,reject){loader.load(LoaderUtils.resolveURL(bufferDef.uri,options.path),resolve,undefined,function(){reject(new Error("THREE.GLTFLoader: Failed to load buffer \""+bufferDef.uri+"\"."))})})}loadBufferView(bufferViewIndex){const bufferViewDef=this.json.bufferViews[bufferViewIndex];return this.getDependency("buffer",bufferViewDef.buffer).then(function(buffer){const byteLength=bufferViewDef.byteLength||0;const byteOffset=bufferViewDef.byteOffset||0;return buffer.slice(byteOffset,byteOffset+byteLength)})}loadAccessor(accessorIndex){const parser=this;const json=this.json;const accessorDef=this.json.accessors[accessorIndex];if(accessorDef.bufferView===undefined&&accessorDef.sparse===undefined){return Promise.resolve(null)}const pendingBufferViews=[];if(accessorDef.bufferView!==undefined){pendingBufferViews.push(this.getDependency("bufferView",accessorDef.bufferView))}else{pendingBufferViews.push(null)}if(accessorDef.sparse!==undefined){pendingBufferViews.push(this.getDependency("bufferView",accessorDef.sparse.indices.bufferView));pendingBufferViews.push(this.getDependency("bufferView",accessorDef.sparse.values.bufferView))}return Promise.all(pendingBufferViews).then(function(bufferViews){const bufferView=bufferViews[0];const itemSize=WEBGL_TYPE_SIZES[accessorDef.type];const TypedArray=WEBGL_COMPONENT_TYPES[accessorDef.componentType];const elementBytes=TypedArray.BYTES_PER_ELEMENT;const itemBytes=elementBytes*itemSize;const byteOffset=accessorDef.byteOffset||0;const byteStride=accessorDef.bufferView!==undefined?json.bufferViews[accessorDef.bufferView].byteStride:undefined;const normalized=accessorDef.normalized===true;let array,bufferAttribute;if(byteStride&&byteStride!==itemBytes){const ibSlice=Math.floor(byteOffset/byteStride);const ibCacheKey="InterleavedBuffer:"+accessorDef.bufferView+":"+accessorDef.componentType+":"+ibSlice+":"+accessorDef.count;let ib=parser.cache.get(ibCacheKey);if(!ib){array=new TypedArray(bufferView,ibSlice*byteStride,accessorDef.count*byteStride/elementBytes);ib=new InterleavedBuffer(array,byteStride/elementBytes);parser.cache.add(ibCacheKey,ib)}bufferAttribute=new InterleavedBufferAttribute(ib,itemSize,byteOffset%byteStride/elementBytes,normalized)}else{if(bufferView===null){array=new TypedArray(accessorDef.count*itemSize)}else{array=new TypedArray(bufferView,byteOffset,accessorDef.count*itemSize)}bufferAttribute=new BufferAttribute(array,itemSize,normalized)}if(accessorDef.sparse!==undefined){const itemSizeIndices=WEBGL_TYPE_SIZES.SCALAR;const TypedArrayIndices=WEBGL_COMPONENT_TYPES[accessorDef.sparse.indices.componentType];const byteOffsetIndices=accessorDef.sparse.indices.byteOffset||0;const byteOffsetValues=accessorDef.sparse.values.byteOffset||0;const sparseIndices=new TypedArrayIndices(bufferViews[1],byteOffsetIndices,accessorDef.sparse.count*itemSizeIndices);const sparseValues=new TypedArray(bufferViews[2],byteOffsetValues,accessorDef.sparse.count*itemSize);if(bufferView!==null){bufferAttribute=new BufferAttribute(bufferAttribute.array.slice(),bufferAttribute.itemSize,bufferAttribute.normalized)}for(let i=0,il=sparseIndices.length;i<il;i++){const index=sparseIndices[i];bufferAttribute.setX(index,sparseValues[i*itemSize]);if(itemSize>=2)bufferAttribute.setY(index,sparseValues[i*itemSize+1]);if(itemSize>=3)bufferAttribute.setZ(index,sparseValues[i*itemSize+2]);if(itemSize>=4)bufferAttribute.setW(index,sparseValues[i*itemSize+3]);if(itemSize>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return bufferAttribute})}loadTexture(textureIndex){const json=this.json;const options=this.options;const textureDef=json.textures[textureIndex];const sourceIndex=textureDef.source;const sourceDef=json.images[sourceIndex];let loader=this.textureLoader;if(sourceDef.uri){const handler=options.manager.getHandler(sourceDef.uri);if(handler!==null)loader=handler}return this.loadTextureImage(textureIndex,sourceIndex,loader)}loadTextureImage(textureIndex,sourceIndex,loader){const parser=this;const json=this.json;const textureDef=json.textures[textureIndex];const sourceDef=json.images[sourceIndex];const cacheKey=(sourceDef.uri||sourceDef.bufferView)+":"+textureDef.sampler;if(this.textureCache[cacheKey]){return this.textureCache[cacheKey]}const promise=this.loadImageSource(sourceIndex,loader).then(function(texture){texture.flipY=false;if(textureDef.name)texture.name=textureDef.name;const samplers=json.samplers||{};const sampler=samplers[textureDef.sampler]||{};texture.magFilter=WEBGL_FILTERS[sampler.magFilter]||LinearFilter;texture.minFilter=WEBGL_FILTERS[sampler.minFilter]||LinearMipmapLinearFilter;texture.wrapS=WEBGL_WRAPPINGS[sampler.wrapS]||RepeatWrapping;texture.wrapT=WEBGL_WRAPPINGS[sampler.wrapT]||RepeatWrapping;parser.associations.set(texture,{textures:textureIndex});return texture}).catch(function(){return null});this.textureCache[cacheKey]=promise;return promise}loadImageSource(sourceIndex,loader){const parser=this;const json=this.json;const options=this.options;if(this.sourceCache[sourceIndex]!==undefined){return this.sourceCache[sourceIndex].then(texture=>texture.clone())}const sourceDef=json.images[sourceIndex];const URL=self.URL||self.webkitURL;let sourceURI=sourceDef.uri||"";let isObjectURL=false;if(sourceDef.bufferView!==undefined){sourceURI=parser.getDependency("bufferView",sourceDef.bufferView).then(function(bufferView){isObjectURL=true;const blob=new Blob([bufferView],{type:sourceDef.mimeType});sourceURI=URL.createObjectURL(blob);return sourceURI})}else if(sourceDef.uri===undefined){throw new Error("THREE.GLTFLoader: Image "+sourceIndex+" is missing URI and bufferView")}const promise=Promise.resolve(sourceURI).then(function(sourceURI){return new Promise(function(resolve,reject){let onLoad=resolve;if(loader.isImageBitmapLoader===true){onLoad=function(imageBitmap){const texture=new Texture(imageBitmap);texture.needsUpdate=true;resolve(texture)}}loader.load(LoaderUtils.resolveURL(sourceURI,options.path),onLoad,undefined,reject)})}).then(function(texture){if(isObjectURL===true){URL.revokeObjectURL(sourceURI)}texture.userData.mimeType=sourceDef.mimeType||getImageURIMimeType(sourceDef.uri);return texture}).catch(function(error){console.error("THREE.GLTFLoader: Couldn't load texture",sourceURI);throw error});this.sourceCache[sourceIndex]=promise;return promise}assignTexture(materialParams,mapName,mapDef,encoding){const parser=this;return this.getDependency("texture",mapDef.index).then(function(texture){if(mapDef.texCoord!==undefined&&mapDef.texCoord!=0&&!(mapName==="aoMap"&&mapDef.texCoord==1)){console.warn("THREE.GLTFLoader: Custom UV set "+mapDef.texCoord+" for texture "+mapName+" not yet supported.")}if(parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]){const transform=mapDef.extensions!==undefined?mapDef.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]:undefined;if(transform){const gltfReference=parser.associations.get(texture);texture=parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM].extendTexture(texture,transform);parser.associations.set(texture,gltfReference)}}if(encoding!==undefined){texture.encoding=encoding}materialParams[mapName]=texture;return texture})}assignFinalMaterial(mesh){const geometry=mesh.geometry;let material=mesh.material;const useDerivativeTangents=geometry.attributes.tangent===undefined;const useVertexColors=geometry.attributes.color!==undefined;const useFlatShading=geometry.attributes.normal===undefined;if(mesh.isPoints){const cacheKey="PointsMaterial:"+material.uuid;let pointsMaterial=this.cache.get(cacheKey);if(!pointsMaterial){pointsMaterial=new PointsMaterial;Material.prototype.copy.call(pointsMaterial,material);pointsMaterial.color.copy(material.color);pointsMaterial.map=material.map;pointsMaterial.sizeAttenuation=false;this.cache.add(cacheKey,pointsMaterial)}material=pointsMaterial}else if(mesh.isLine){const cacheKey="LineBasicMaterial:"+material.uuid;let lineMaterial=this.cache.get(cacheKey);if(!lineMaterial){lineMaterial=new LineBasicMaterial;Material.prototype.copy.call(lineMaterial,material);lineMaterial.color.copy(material.color);this.cache.add(cacheKey,lineMaterial)}material=lineMaterial}if(useDerivativeTangents||useVertexColors||useFlatShading){let cacheKey="ClonedMaterial:"+material.uuid+":";if(material.isGLTFSpecularGlossinessMaterial)cacheKey+="specular-glossiness:";if(useDerivativeTangents)cacheKey+="derivative-tangents:";if(useVertexColors)cacheKey+="vertex-colors:";if(useFlatShading)cacheKey+="flat-shading:";let cachedMaterial=this.cache.get(cacheKey);if(!cachedMaterial){cachedMaterial=material.clone();if(useVertexColors)cachedMaterial.vertexColors=true;if(useFlatShading)cachedMaterial.flatShading=true;if(useDerivativeTangents){if(cachedMaterial.normalScale)cachedMaterial.normalScale.y*=-1;if(cachedMaterial.clearcoatNormalScale)cachedMaterial.clearcoatNormalScale.y*=-1}this.cache.add(cacheKey,cachedMaterial);this.associations.set(cachedMaterial,this.associations.get(material))}material=cachedMaterial}if(material.aoMap&&geometry.attributes.uv2===undefined&&geometry.attributes.uv!==undefined){geometry.setAttribute("uv2",geometry.attributes.uv)}mesh.material=material}getMaterialType(){return MeshStandardMaterial}loadMaterial(materialIndex){const parser=this;const json=this.json;const extensions=this.extensions;const materialDef=json.materials[materialIndex];let materialType;const materialParams={};const materialExtensions=materialDef.extensions||{};const pending=[];if(materialExtensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){const sgExtension=extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];materialType=sgExtension.getMaterialType();pending.push(sgExtension.extendParams(materialParams,materialDef,parser))}else if(materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]){const kmuExtension=extensions[EXTENSIONS.KHR_MATERIALS_UNLIT];materialType=kmuExtension.getMaterialType();pending.push(kmuExtension.extendParams(materialParams,materialDef,parser))}else{const metallicRoughness=materialDef.pbrMetallicRoughness||{};materialParams.color=new Color(1,1,1);materialParams.opacity=1;if(Array.isArray(metallicRoughness.baseColorFactor)){const array=metallicRoughness.baseColorFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3]}if(metallicRoughness.baseColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,"map",metallicRoughness.baseColorTexture,sRGBEncoding))}materialParams.metalness=metallicRoughness.metallicFactor!==undefined?metallicRoughness.metallicFactor:1;materialParams.roughness=metallicRoughness.roughnessFactor!==undefined?metallicRoughness.roughnessFactor:1;if(metallicRoughness.metallicRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"metalnessMap",metallicRoughness.metallicRoughnessTexture));pending.push(parser.assignTexture(materialParams,"roughnessMap",metallicRoughness.metallicRoughnessTexture))}materialType=this._invokeOne(function(ext){return ext.getMaterialType&&ext.getMaterialType(materialIndex)});pending.push(Promise.all(this._invokeAll(function(ext){return ext.extendMaterialParams&&ext.extendMaterialParams(materialIndex,materialParams)})))}if(materialDef.doubleSided===true){materialParams.side=DoubleSide}const alphaMode=materialDef.alphaMode||ALPHA_MODES.OPAQUE;if(alphaMode===ALPHA_MODES.BLEND){materialParams.transparent=true;materialParams.depthWrite=false}else{materialParams.transparent=false;if(alphaMode===ALPHA_MODES.MASK){materialParams.alphaTest=materialDef.alphaCutoff!==undefined?materialDef.alphaCutoff:0.5}}if(materialDef.normalTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"normalMap",materialDef.normalTexture));materialParams.normalScale=new Vector2(1,1);if(materialDef.normalTexture.scale!==undefined){const scale=materialDef.normalTexture.scale;materialParams.normalScale.set(scale,scale)}}if(materialDef.occlusionTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"aoMap",materialDef.occlusionTexture));if(materialDef.occlusionTexture.strength!==undefined){materialParams.aoMapIntensity=materialDef.occlusionTexture.strength}}if(materialDef.emissiveFactor!==undefined&&materialType!==MeshBasicMaterial){materialParams.emissive=new Color().fromArray(materialDef.emissiveFactor)}if(materialDef.emissiveTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"emissiveMap",materialDef.emissiveTexture,sRGBEncoding))}return Promise.all(pending).then(function(){let material;if(materialType===GLTFMeshStandardSGMaterial){material=extensions[EXTENSIONS.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(materialParams)}else{material=new materialType(materialParams)}if(materialDef.name)material.name=materialDef.name;assignExtrasToUserData(material,materialDef);parser.associations.set(material,{materials:materialIndex});if(materialDef.extensions)addUnknownExtensionsToUserData(extensions,material,materialDef);return material})}createUniqueName(originalName){const sanitizedName=PropertyBinding.sanitizeNodeName(originalName||"");let name=sanitizedName;for(let i=1;this.nodeNamesUsed[name];++i){name=sanitizedName+"_"+i}this.nodeNamesUsed[name]=true;return name}loadGeometries(primitives){const parser=this;const extensions=this.extensions;const cache=this.primitiveCache;function createDracoPrimitive(primitive){return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(primitive,parser).then(function(geometry){return addPrimitiveAttributes(geometry,primitive,parser)})}const pending=[];for(let i=0,il=primitives.length;i<il;i++){const primitive=primitives[i];const cacheKey=createPrimitiveKey(primitive);const cached=cache[cacheKey];if(cached){pending.push(cached.promise)}else{let geometryPromise;if(primitive.extensions&&primitive.extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION]){geometryPromise=createDracoPrimitive(primitive)}else{geometryPromise=addPrimitiveAttributes(new BufferGeometry,primitive,parser)}cache[cacheKey]={primitive:primitive,promise:geometryPromise};pending.push(geometryPromise)}}return Promise.all(pending)}loadMesh(meshIndex){const parser=this;const json=this.json;const extensions=this.extensions;const meshDef=json.meshes[meshIndex];const primitives=meshDef.primitives;const pending=[];for(let i=0,il=primitives.length;i<il;i++){const material=primitives[i].material===undefined?createDefaultMaterial(this.cache):this.getDependency("material",primitives[i].material);pending.push(material)}pending.push(parser.loadGeometries(primitives));return Promise.all(pending).then(function(results){const materials=results.slice(0,results.length-1);const geometries=results[results.length-1];const meshes=[];for(let i=0,il=geometries.length;i<il;i++){const geometry=geometries[i];const primitive=primitives[i];let mesh;const material=materials[i];if(primitive.mode===WEBGL_CONSTANTS.TRIANGLES||primitive.mode===WEBGL_CONSTANTS.TRIANGLE_STRIP||primitive.mode===WEBGL_CONSTANTS.TRIANGLE_FAN||primitive.mode===undefined){mesh=meshDef.isSkinnedMesh===true?new SkinnedMesh(geometry,material):new Mesh(geometry,material);if(mesh.isSkinnedMesh===true&&!mesh.geometry.attributes.skinWeight.normalized){mesh.normalizeSkinWeights()}if(primitive.mode===WEBGL_CONSTANTS.TRIANGLE_STRIP){mesh.geometry=toTrianglesDrawMode(mesh.geometry,TriangleStripDrawMode)}else if(primitive.mode===WEBGL_CONSTANTS.TRIANGLE_FAN){mesh.geometry=toTrianglesDrawMode(mesh.geometry,TriangleFanDrawMode)}}else if(primitive.mode===WEBGL_CONSTANTS.LINES){mesh=new LineSegments(geometry,material)}else if(primitive.mode===WEBGL_CONSTANTS.LINE_STRIP){mesh=new Line(geometry,material)}else if(primitive.mode===WEBGL_CONSTANTS.LINE_LOOP){mesh=new LineLoop(geometry,material)}else if(primitive.mode===WEBGL_CONSTANTS.POINTS){mesh=new Points(geometry,material)}else{throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+primitive.mode)}if(Object.keys(mesh.geometry.morphAttributes).length>0){updateMorphTargets(mesh,meshDef)}mesh.name=parser.createUniqueName(meshDef.name||"mesh_"+meshIndex);assignExtrasToUserData(mesh,meshDef);if(primitive.extensions)addUnknownExtensionsToUserData(extensions,mesh,primitive);parser.assignFinalMaterial(mesh);meshes.push(mesh)}for(let i=0,il=meshes.length;i<il;i++){parser.associations.set(meshes[i],{meshes:meshIndex,primitives:i})}if(meshes.length===1){return meshes[0]}const group=new Group;parser.associations.set(group,{meshes:meshIndex});for(let i=0,il=meshes.length;i<il;i++){group.add(meshes[i])}return group})}loadCamera(cameraIndex){let camera;const cameraDef=this.json.cameras[cameraIndex];const params=cameraDef[cameraDef.type];if(!params){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}if(cameraDef.type==="perspective"){camera=new PerspectiveCamera(MathUtils.radToDeg(params.yfov),params.aspectRatio||1,params.znear||1,params.zfar||2e6)}else if(cameraDef.type==="orthographic"){camera=new OrthographicCamera(-params.xmag,params.xmag,params.ymag,-params.ymag,params.znear,params.zfar)}if(cameraDef.name)camera.name=this.createUniqueName(cameraDef.name);assignExtrasToUserData(camera,cameraDef);return Promise.resolve(camera)}loadSkin(skinIndex){const skinDef=this.json.skins[skinIndex];const skinEntry={joints:skinDef.joints};if(skinDef.inverseBindMatrices===undefined){return Promise.resolve(skinEntry)}return this.getDependency("accessor",skinDef.inverseBindMatrices).then(function(accessor){skinEntry.inverseBindMatrices=accessor;return skinEntry})}loadAnimation(animationIndex){const json=this.json;const animationDef=json.animations[animationIndex];const pendingNodes=[];const pendingInputAccessors=[];const pendingOutputAccessors=[];const pendingSamplers=[];const pendingTargets=[];for(let i=0,il=animationDef.channels.length;i<il;i++){const channel=animationDef.channels[i];const sampler=animationDef.samplers[channel.sampler];const target=channel.target;const name=target.node;const input=animationDef.parameters!==undefined?animationDef.parameters[sampler.input]:sampler.input;const output=animationDef.parameters!==undefined?animationDef.parameters[sampler.output]:sampler.output;pendingNodes.push(this.getDependency("node",name));pendingInputAccessors.push(this.getDependency("accessor",input));pendingOutputAccessors.push(this.getDependency("accessor",output));pendingSamplers.push(sampler);pendingTargets.push(target)}return Promise.all([Promise.all(pendingNodes),Promise.all(pendingInputAccessors),Promise.all(pendingOutputAccessors),Promise.all(pendingSamplers),Promise.all(pendingTargets)]).then(function(dependencies){const nodes=dependencies[0];const inputAccessors=dependencies[1];const outputAccessors=dependencies[2];const samplers=dependencies[3];const targets=dependencies[4];const tracks=[];for(let i=0,il=nodes.length;i<il;i++){const node=nodes[i];const inputAccessor=inputAccessors[i];const outputAccessor=outputAccessors[i];const sampler=samplers[i];const target=targets[i];if(node===undefined)continue;node.updateMatrix();let TypedKeyframeTrack;switch(PATH_PROPERTIES[target.path]){case PATH_PROPERTIES.weights:TypedKeyframeTrack=NumberKeyframeTrack;break;case PATH_PROPERTIES.rotation:TypedKeyframeTrack=QuaternionKeyframeTrack;break;case PATH_PROPERTIES.position:case PATH_PROPERTIES.scale:default:TypedKeyframeTrack=VectorKeyframeTrack;break;}const targetName=node.name?node.name:node.uuid;const interpolation=sampler.interpolation!==undefined?INTERPOLATION[sampler.interpolation]:InterpolateLinear;const targetNames=[];if(PATH_PROPERTIES[target.path]===PATH_PROPERTIES.weights){node.traverse(function(object){if(object.morphTargetInfluences){targetNames.push(object.name?object.name:object.uuid)}})}else{targetNames.push(targetName)}let outputArray=outputAccessor.array;if(outputAccessor.normalized){const scale=getNormalizedComponentScale(outputArray.constructor);const scaled=new Float32Array(outputArray.length);for(let j=0,jl=outputArray.length;j<jl;j++){scaled[j]=outputArray[j]*scale}outputArray=scaled}for(let j=0,jl=targetNames.length;j<jl;j++){const track=new TypedKeyframeTrack(targetNames[j]+"."+PATH_PROPERTIES[target.path],inputAccessor.array,outputArray,interpolation);if(sampler.interpolation==="CUBICSPLINE"){track.createInterpolant=function InterpolantFactoryMethodGLTFCubicSpline(result){const interpolantType=this instanceof QuaternionKeyframeTrack?GLTFCubicSplineQuaternionInterpolant:GLTFCubicSplineInterpolant;return new interpolantType(this.times,this.values,this.getValueSize()/3,result)};track.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=true}tracks.push(track)}}const name=animationDef.name?animationDef.name:"animation_"+animationIndex;return new AnimationClip(name,undefined,tracks)})}createNodeMesh(nodeIndex){const json=this.json;const parser=this;const nodeDef=json.nodes[nodeIndex];if(nodeDef.mesh===undefined)return null;return parser.getDependency("mesh",nodeDef.mesh).then(function(mesh){const node=parser._getNodeRef(parser.meshCache,nodeDef.mesh,mesh);if(nodeDef.weights!==undefined){node.traverse(function(o){if(!o.isMesh)return;for(let i=0,il=nodeDef.weights.length;i<il;i++){o.morphTargetInfluences[i]=nodeDef.weights[i]}})}return node})}loadNode(nodeIndex){const json=this.json;const extensions=this.extensions;const parser=this;const nodeDef=json.nodes[nodeIndex];const nodeName=nodeDef.name?parser.createUniqueName(nodeDef.name):"";return function(){const pending=[];const meshPromise=parser._invokeOne(function(ext){return ext.createNodeMesh&&ext.createNodeMesh(nodeIndex)});if(meshPromise){pending.push(meshPromise)}if(nodeDef.camera!==undefined){pending.push(parser.getDependency("camera",nodeDef.camera).then(function(camera){return parser._getNodeRef(parser.cameraCache,nodeDef.camera,camera)}))}parser._invokeAll(function(ext){return ext.createNodeAttachment&&ext.createNodeAttachment(nodeIndex)}).forEach(function(promise){pending.push(promise)});return Promise.all(pending)}().then(function(objects){let node;if(nodeDef.isBone===true){node=new Bone}else if(objects.length>1){node=new Group}else if(objects.length===1){node=objects[0]}else{node=new Object3D}if(node!==objects[0]){for(let i=0,il=objects.length;i<il;i++){node.add(objects[i])}}if(nodeDef.name){node.userData.name=nodeDef.name;node.name=nodeName}assignExtrasToUserData(node,nodeDef);if(nodeDef.extensions)addUnknownExtensionsToUserData(extensions,node,nodeDef);if(nodeDef.matrix!==undefined){const matrix=new Matrix4;matrix.fromArray(nodeDef.matrix);node.applyMatrix4(matrix)}else{if(nodeDef.translation!==undefined){node.position.fromArray(nodeDef.translation)}if(nodeDef.rotation!==undefined){node.quaternion.fromArray(nodeDef.rotation)}if(nodeDef.scale!==undefined){node.scale.fromArray(nodeDef.scale)}}if(!parser.associations.has(node)){parser.associations.set(node,{})}parser.associations.get(node).nodes=nodeIndex;return node})}loadScene(sceneIndex){const json=this.json;const extensions=this.extensions;const sceneDef=this.json.scenes[sceneIndex];const parser=this;const scene=new Group;if(sceneDef.name)scene.name=parser.createUniqueName(sceneDef.name);assignExtrasToUserData(scene,sceneDef);if(sceneDef.extensions)addUnknownExtensionsToUserData(extensions,scene,sceneDef);const nodeIds=sceneDef.nodes||[];const pending=[];for(let i=0,il=nodeIds.length;i<il;i++){pending.push(buildNodeHierarchy(nodeIds[i],scene,json,parser))}return Promise.all(pending).then(function(){const reduceAssociations=node=>{const reducedAssociations=new Map;for(const[key,value]of parser.associations){if(key instanceof Material||key instanceof Texture){reducedAssociations.set(key,value)}}node.traverse(node=>{const mappings=parser.associations.get(node);if(mappings!=null){reducedAssociations.set(node,mappings)}});return reducedAssociations};parser.associations=reduceAssociations(scene);return scene})}}function buildNodeHierarchy(nodeId,parentObject,json,parser){const nodeDef=json.nodes[nodeId];return parser.getDependency("node",nodeId).then(function(node){if(nodeDef.skin===undefined)return node;let skinEntry;return parser.getDependency("skin",nodeDef.skin).then(function(skin){skinEntry=skin;const pendingJoints=[];for(let i=0,il=skinEntry.joints.length;i<il;i++){pendingJoints.push(parser.getDependency("node",skinEntry.joints[i]))}return Promise.all(pendingJoints)}).then(function(jointNodes){node.traverse(function(mesh){if(!mesh.isMesh)return;const bones=[];const boneInverses=[];for(let j=0,jl=jointNodes.length;j<jl;j++){const jointNode=jointNodes[j];if(jointNode){bones.push(jointNode);const mat=new Matrix4;if(skinEntry.inverseBindMatrices!==undefined){mat.fromArray(skinEntry.inverseBindMatrices.array,j*16)}boneInverses.push(mat)}else{console.warn("THREE.GLTFLoader: Joint \"%s\" could not be found.",skinEntry.joints[j])}}mesh.bind(new Skeleton(bones,boneInverses),mesh.matrixWorld)});return node})}).then(function(node){parentObject.add(node);const pending=[];if(nodeDef.children){const children=nodeDef.children;for(let i=0,il=children.length;i<il;i++){const child=children[i];pending.push(buildNodeHierarchy(child,node,json,parser))}}return Promise.all(pending)})}function computeBounds(geometry,primitiveDef,parser){const attributes=primitiveDef.attributes;const box=new Box3;if(attributes.POSITION!==undefined){const accessor=parser.json.accessors[attributes.POSITION];const min=accessor.min;const max=accessor.max;if(min!==undefined&&max!==undefined){box.set(new Vector3(min[0],min[1],min[2]),new Vector3(max[0],max[1],max[2]));if(accessor.normalized){const boxScale=getNormalizedComponentScale(WEBGL_COMPONENT_TYPES[accessor.componentType]);box.min.multiplyScalar(boxScale);box.max.multiplyScalar(boxScale)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else{return}const targets=primitiveDef.targets;if(targets!==undefined){const maxDisplacement=new Vector3;const vector=new Vector3;for(let i=0,il=targets.length;i<il;i++){const target=targets[i];if(target.POSITION!==undefined){const accessor=parser.json.accessors[target.POSITION];const min=accessor.min;const max=accessor.max;if(min!==undefined&&max!==undefined){vector.setX(Math.max(Math.abs(min[0]),Math.abs(max[0])));vector.setY(Math.max(Math.abs(min[1]),Math.abs(max[1])));vector.setZ(Math.max(Math.abs(min[2]),Math.abs(max[2])));if(accessor.normalized){const boxScale=getNormalizedComponentScale(WEBGL_COMPONENT_TYPES[accessor.componentType]);vector.multiplyScalar(boxScale)}maxDisplacement.max(vector)}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}}box.expandByVector(maxDisplacement)}geometry.boundingBox=box;const sphere=new Sphere;box.getCenter(sphere.center);sphere.radius=box.min.distanceTo(box.max)/2;geometry.boundingSphere=sphere}function addPrimitiveAttributes(geometry,primitiveDef,parser){const attributes=primitiveDef.attributes;const pending=[];function assignAttributeAccessor(accessorIndex,attributeName){return parser.getDependency("accessor",accessorIndex).then(function(accessor){geometry.setAttribute(attributeName,accessor)})}for(const gltfAttributeName in attributes){const threeAttributeName=ATTRIBUTES[gltfAttributeName]||gltfAttributeName.toLowerCase();if(threeAttributeName in geometry.attributes)continue;pending.push(assignAttributeAccessor(attributes[gltfAttributeName],threeAttributeName))}if(primitiveDef.indices!==undefined&&!geometry.index){const accessor=parser.getDependency("accessor",primitiveDef.indices).then(function(accessor){geometry.setIndex(accessor)});pending.push(accessor)}assignExtrasToUserData(geometry,primitiveDef);computeBounds(geometry,primitiveDef,parser);return Promise.all(pending).then(function(){return primitiveDef.targets!==undefined?addMorphTargets(geometry,primitiveDef.targets,parser):geometry})}function toTrianglesDrawMode(geometry,drawMode){let index=geometry.getIndex();if(index===null){const indices=[];const position=geometry.getAttribute("position");if(position!==undefined){for(let i=0;i<position.count;i++){indices.push(i)}geometry.setIndex(indices);index=geometry.getIndex()}else{console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible.");return geometry}}const numberOfTriangles=index.count-2;const newIndices=[];if(drawMode===TriangleFanDrawMode){for(let i=1;i<=numberOfTriangles;i++){newIndices.push(index.getX(0));newIndices.push(index.getX(i));newIndices.push(index.getX(i+1))}}else{for(let i=0;i<numberOfTriangles;i++){if(i%2===0){newIndices.push(index.getX(i));newIndices.push(index.getX(i+1));newIndices.push(index.getX(i+2))}else{newIndices.push(index.getX(i+2));newIndices.push(index.getX(i+1));newIndices.push(index.getX(i))}}}if(newIndices.length/3!==numberOfTriangles){console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.")}const newGeometry=geometry.clone();newGeometry.setIndex(newIndices);return newGeometry}THREE.GLTFLoader=GLTFLoader})()});(function(t,e){e(t.THREE=t.THREE||{})})(this,function(THREE){var Object3D=THREE.Object3D;var deviceMax=Number.POSITIVE_INFINITY;var deviceMin=Number.NEGATIVE_INFINITY;class CSS3DObject extends Object3D{constructor(element){super();this.containerElement=document.createElement("div");this.containerElement.style.position="absolute";this.containerElement.style.pointerEvents="none";this.containerElement.style.overflow="hidden";this.cameraElement=document.createElement("div");this.containerElement.appendChild(this.cameraElement);this.cameraElement.style.transformStyle="preserve-3d";this.cameraElement.style.position="absolute";this.cameraElement.style.pointerEvents="none";this.element=element||document.createElement("div");this.cameraElement.appendChild(this.element);this.element.style.position="absolute";this.element.style.pointerEvents="none";this.contentWidth=100;this.contentHeight=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.projectedVertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.addEventListener("removed",function(){this.traverse(function(object){if(object.containerElement instanceof Element&&object.containerElement.parentNode!==null)object.containerElement.parentNode.removeChild(object.containerElement)})})}copy(source,recursive){super.copy(source,recursive);this.element=source.element.cloneNode(true);return this}updateVertices(){this.vertices[0].set(-this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[1].set(+this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[2].set(+this.contentWidth*0.5,-this.contentHeight*0.5,0);this.vertices[3].set(-this.contentWidth*0.5,-this.contentHeight*0.5,0)}projectVertices(camera){if(this.matrixWorldNeedsUpdate)this.updateMatrixWorld();projectVertices(this,camera);var pv=this.projectedVertices;this.isDrawable=true;pv=pv.filter(function(p){return p.z<0});var x=0,y=0;var max=0,min=0;pv.forEach(function(p){if(p.x<-1)x-=1;else if(p.x>1)x+=1;if(p.y<-1)y-=1;else if(p.y>1)y+=1;max=Math.max(p.x*camera.aspect,p.y,max);min=Math.min(p.x*camera.aspect,p.y,min)});this.isVisible=this.isDrawable&&Math.abs(x)<pv.length&&Math.abs(y)<pv.length&&max<deviceMax&&min>deviceMin}}CSS3DObject.prototype.isCSS3DObject=true;THREE.CSS3DObject=CSS3DObject;class CSS3DQuad extends Object3D{constructor(element){super();this.contentWidth=100;this.contentHeight=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.projectedVertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.containerElement=document.createElement("div");this.containerElement.style.position="absolute";this.containerElement.style.pointerEvents="none";this.containerElement.style.overflow="hidden";this.element=element||document.createElement("div");this.containerElement.appendChild(this.element);this.element.style.position="absolute";this.element.style.pointerEvents="none"}copy(source,recursive){super.copy(source,recursive);for(var i=0;i<4;i++)this.vertices[i].copy(source.vertices[i]);return this}projectVertices(camera){if(this.matrixWorldNeedsUpdate)this.updateMatrixWorld();projectVertices(this,camera);var pv=this.projectedVertices;this.isDrawable=pv[0].z<0&&pv[1].z<0&&pv[2].z<0&&pv[3].z<0;var x=0,y=0;var max=0,min=0;pv.forEach(function(p){if(p.x<-1)x-=1;else if(p.x>1)x+=1;if(p.y<-1)y-=1;else if(p.y>1)y+=1;max=Math.max(p.x*camera.aspect,p.y,max);min=Math.min(p.x*camera.aspect,p.y,min)});this.isVisible=this.isDrawable&&Math.abs(x)<pv.length&&Math.abs(y)<pv.length&&max<deviceMax&&min>deviceMin}}CSS3DQuad.prototype.isCSS3DQuad=true;THREE.CSS3DQuad=CSS3DQuad;class CSS3DRectangle extends CSS3DQuad{constructor(element){super(element)}updateVertices(){this.vertices[0].set(-this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[1].set(+this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[2].set(+this.contentWidth*0.5,-this.contentHeight*0.5,0);this.vertices[3].set(-this.contentWidth*0.5,-this.contentHeight*0.5,0)}}CSS3DRectangle.prototype.isCSS3DRectangle=true;THREE.CSS3DRectangle=CSS3DRectangle;var _matrix=new THREE.Matrix4;class CSS3DRenderer{constructor(){var _this=this;var _width,_height;var _widthHalf,_heightHalf;var _fov;var _cameraStyle;var cache={objects:new WeakMap};var domElement=document.createElement("div");domElement.style.overflow="hidden";this.domElement=domElement;this.getSize=function(){return{width:_width,height:_height}};this.render=function(scene,camera){_fov=camera.projectionMatrix.elements[5]*_heightHalf;if(scene.matrixWorldAutoUpdate===true)scene.updateMatrixWorld();_cameraStyle="translateZ("+_fov+"px)"+getCameraCSSMatrix(camera.matrixWorldInverse)+"translate("+_widthHalf+"px,"+_heightHalf+"px)";renderObject(scene,scene,camera)};this.setSize=function(width,height){_width=width;_height=height;_widthHalf=_width/2;_heightHalf=_height/2;domElement.style.width=_width+"px";domElement.style.height=_height+"px"};function renderObject(object,scene,camera){if(object.isCSS3DObject||object.isCSS3DQuad){object.onBeforeRender(_this,scene,camera);var cachedObject=cache.objects.get(object)||{};var cacheChanged=false;if(object.isVisible){if(object.isCSS3DQuad){var pv=object.projectedVertices;var x0=(1+pv[0].x)*0.5*_width,y0=(1-pv[0].y)*0.5*_height,x1=(1+pv[1].x)*0.5*_width,y1=(1-pv[1].y)*0.5*_height,x2=(1+pv[2].x)*0.5*_width,y2=(1-pv[2].y)*0.5*_height,x3=(1+pv[3].x)*0.5*_width,y3=(1-pv[3].y)*0.5*_height;createQuadMatrix(object.contentWidth,object.contentHeight,x0,y0,x1,y1,x3,y3,x2,y2,_matrix.elements);var elementStyle=getQuadCSSMatrix(_matrix);if(cachedObject.elementStyle!=elementStyle){cachedObject.elementStyle=object.element.style.transform=elementStyle;cacheChanged=true}if(cachedObject.width!==_width||cachedObject.height!==_height){object.containerElement.style.width=(cachedObject.width=_width)+"px";object.containerElement.style.height=(cachedObject.height=_height)+"px";cacheChanged=true}}else{var elementStyle=getObjectCSSMatrix(object.matrixWorld);if(cachedObject.cameraFov!==_fov){object.containerElement.style.perspective=(cachedObject.cameraFov=_fov)+"px";cacheChanged=true}if(cachedObject.width!==_width||cachedObject.height!==_height){object.cameraElement.style.width=object.containerElement.style.width=(cachedObject.width=_width)+"px";object.cameraElement.style.height=object.containerElement.style.height=(cachedObject.height=_height)+"px";cacheChanged=true}if(cachedObject.cameraStyle!==_cameraStyle){cachedObject.cameraStyle=object.cameraElement.style.transform=_cameraStyle;cacheChanged=true}if(cachedObject.elementStyle!==elementStyle){cachedObject.elementStyle=object.element.style.transform=elementStyle;cacheChanged=true}}object.containerElement.style.left="0"}else{object.containerElement.style.left=_width+"px"}if(cacheChanged)cache.objects.set(object,cachedObject);object.containerElement.style.display=object.visible?"":"none";if(object.containerElement.parentNode!==domElement)domElement.appendChild(object.containerElement);object.onAfterRender(_this,scene,camera)}for(var i=0,l=object.children.length;i<l;i++)renderObject(object.children[i],scene,camera)}function epsilon(value){return value<1e-10&&value>-1e-10?0:value}function getCameraCSSMatrix(matrix){var elements=matrix.elements;return"matrix3d("+epsilon(elements[0])+","+epsilon(-elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(elements[4])+","+epsilon(-elements[5])+","+epsilon(elements[6])+","+epsilon(elements[7])+","+epsilon(elements[8])+","+epsilon(-elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(-elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")"}function getObjectCSSMatrix(matrix){var elements=matrix.elements;var matrix3d="matrix3d("+epsilon(elements[0])+","+epsilon(elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(-elements[4])+","+epsilon(-elements[5])+","+epsilon(-elements[6])+","+epsilon(-elements[7])+","+epsilon(elements[8])+","+epsilon(elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")";return"translate(-50%,-50%)"+matrix3d}function getQuadCSSMatrix(matrix){var elements=matrix.elements;var matrix3d="matrix3d("+epsilon(elements[0])+","+epsilon(elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(elements[4])+","+epsilon(elements[5])+","+epsilon(elements[6])+","+epsilon(elements[7])+","+epsilon(elements[8])+","+epsilon(elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")";return matrix3d}}};THREE.CSS3DRenderer=CSS3DRenderer;function projectVertices(object,camera){for(var index=0;index<object.vertices.length;index++){var vertex=object.vertices[index];var projectedVertex=object.projectedVertices[index];projectedVertex.copy(vertex);projectedVertex.applyMatrix4(object.matrixWorld);projectedVertex.applyMatrix4(camera.matrixWorldInverse);var z=projectedVertex.z;projectedVertex.applyMatrix4(camera.projectionMatrix);projectedVertex.z=z}}function setArray(){var a=arguments[0];for(var i=1;i<arguments.length;i++)a[i-1]=arguments[i];return a}function copyArray(t,s){for(var i=0;i<s.length;i++)t[i]=s[i];return t}function adjugate(m,out){setArray(out,m[4]*m[8]-m[5]*m[7],m[2]*m[7]-m[1]*m[8],m[1]*m[5]-m[2]*m[4],m[5]*m[6]-m[3]*m[8],m[0]*m[8]-m[2]*m[6],m[2]*m[3]-m[0]*m[5],m[3]*m[7]-m[4]*m[6],m[1]*m[6]-m[0]*m[7],m[0]*m[4]-m[1]*m[3])}function multmm(a,b,out){for(var i=0;i!=3;++i){for(var j=0;j!=3;++j){var cij=0;for(var k=0;k!=3;++k){cij+=a[3*i+k]*b[3*k+j]}out[3*i+j]=cij}}}function multmv(m,v,out){return setArray(out,m[0]*v[0]+m[1]*v[1]+m[2]*v[2],m[3]*v[0]+m[4]*v[1]+m[5]*v[2],m[6]*v[0]+m[7]*v[1]+m[8]*v[2])}var m=new Array(9);var m2=new Array(9);var mAdj=new Array(9);var p=new Array(3);var v=new Array(3);var s=new Array(9);var d=new Array(9);var sAdj=new Array(9);var t=new Array(9);function basisToPoints(x1,y1,x2,y2,x3,y3,x4,y4,out){setArray(m,x1,x2,x3,y1,y2,y3,1,1,1);adjugate(m,mAdj);setArray(p,x4,y4,1);multmv(mAdj,p,v);setArray(m2,v[0],0,0,0,v[1],0,0,0,v[2]);return multmm(m,m2,out)}function general2DProjection(x1s,y1s,x1d,y1d,x2s,y2s,x2d,y2d,x3s,y3s,x3d,y3d,x4s,y4s,x4d,y4d,out){basisToPoints(x1s,y1s,x2s,y2s,x3s,y3s,x4s,y4s,s);basisToPoints(x1d,y1d,x2d,y2d,x3d,y3d,x4d,y4d,d);adjugate(s,sAdj);return multmm(d,sAdj,out)}function createQuadMatrix(w,h,x1,y1,x2,y2,x3,y3,x4,y4,out){general2DProjection(0,0,x1,y1,w,0,x2,y2,0,h,x3,y3,w,h,x4,y4,t);setArray(out,t[0]/t[8],t[3]/t[8],0,t[6]/t[8],t[1]/t[8],t[4]/t[8],0,t[7]/t[8],0,0,1,0,t[2]/t[8],t[5]/t[8],0,1)}});(function(t,e){e(t.THREE=t.THREE||{})})(this,function(THREE){var CubeReflectionMapping=THREE.CubeReflectionMapping,CubeRefractionMapping=THREE.CubeRefractionMapping,CubeUVReflectionMapping=THREE.CubeUVReflectionMapping,LinearEncoding=THREE.LinearEncoding,LinearFilter=THREE.LinearFilter,NoToneMapping=THREE.NoToneMapping,NoBlending=THREE.NoBlending,RGBAFormat=THREE.RGBAFormat,HalfFloatType=THREE.HalfFloatType,BufferAttribute=THREE.BufferAttribute,BufferGeometry=THREE.BufferGeometry,Mesh=THREE.Mesh,OrthographicCamera=THREE.OrthographicCamera,PerspectiveCamera=THREE.PerspectiveCamera,ShaderMaterial=THREE.ShaderMaterial,Vector3=THREE.Vector3,Color=THREE.Color,WebGLRenderTarget=THREE.WebGLRenderTarget,MeshBasicMaterial=THREE.MeshBasicMaterial,BoxGeometry=THREE.BoxGeometry,BackSide=THREE.BackSide;const LOD_MIN=4;const EXTRA_LOD_SIGMA=[0.125,0.215,0.35,0.446,0.526,0.582];const MAX_SAMPLES=20;const _flatCamera=new OrthographicCamera;const _clearColor=new Color;let _oldTarget=null;const PHI=(1+Math.sqrt(5))/2;const INV_PHI=1/PHI;const _axisDirections=[new Vector3(1,1,1),new Vector3(-1,1,1),new Vector3(1,1,-1),new Vector3(-1,1,-1),new Vector3(0,PHI,INV_PHI),new Vector3(0,PHI,-INV_PHI),new Vector3(INV_PHI,0,PHI),new Vector3(-INV_PHI,0,PHI),new Vector3(PHI,INV_PHI,0),new Vector3(-PHI,INV_PHI,0)];class PMREMGenerator{constructor(renderer){this._renderer=renderer;this._pingPongRenderTarget=null;this._lodMax=0;this._cubeSize=0;this._lodPlanes=[];this._sizeLods=[];this._sigmas=[];this._blurMaterial=null;this._cubemapMaterial=null;this._equirectMaterial=null;this._compileMaterial(this._blurMaterial)}fromScene(scene,sigma=0,near=0.1,far=100){_oldTarget=this._renderer.getRenderTarget();this._setSize(256);const cubeUVRenderTarget=this._allocateTargets();cubeUVRenderTarget.depthBuffer=true;this._sceneToCubeUV(scene,near,far,cubeUVRenderTarget);if(sigma>0){this._blur(cubeUVRenderTarget,0,0,sigma)}this._applyPMREM(cubeUVRenderTarget);this._cleanup(cubeUVRenderTarget);return cubeUVRenderTarget}fromEquirectangular(equirectangular,renderTarget=null){return this._fromTexture(equirectangular,renderTarget)}fromCubemap(cubemap,renderTarget=null){return this._fromTexture(cubemap,renderTarget)}compileCubemapShader(){if(this._cubemapMaterial===null){this._cubemapMaterial=_getCubemapMaterial();this._compileMaterial(this._cubemapMaterial)}}compileEquirectangularShader(){if(this._equirectMaterial===null){this._equirectMaterial=_getEquirectMaterial();this._compileMaterial(this._equirectMaterial)}}dispose(){this._dispose();if(this._cubemapMaterial!==null)this._cubemapMaterial.dispose();if(this._equirectMaterial!==null)this._equirectMaterial.dispose()}_setSize(cubeSize){this._lodMax=Math.floor(Math.log2(cubeSize));this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){if(this._blurMaterial!==null)this._blurMaterial.dispose();if(this._pingPongRenderTarget!==null)this._pingPongRenderTarget.dispose();for(let i=0;i<this._lodPlanes.length;i++){this._lodPlanes[i].dispose()}}_cleanup(outputTarget){this._renderer.setRenderTarget(_oldTarget);outputTarget.scissorTest=false;_setViewport(outputTarget,0,0,outputTarget.width,outputTarget.height)}_fromTexture(texture,renderTarget){if(texture.mapping===CubeReflectionMapping||texture.mapping===CubeRefractionMapping){this._setSize(texture.image.length===0?16:texture.image[0].width||texture.image[0].image.width)}else{this._setSize(texture.image.width/4)}_oldTarget=this._renderer.getRenderTarget();const cubeUVRenderTarget=renderTarget||this._allocateTargets();this._textureToCubeUV(texture,cubeUVRenderTarget);this._applyPMREM(cubeUVRenderTarget);this._cleanup(cubeUVRenderTarget);return cubeUVRenderTarget}_allocateTargets(){const width=3*Math.max(this._cubeSize,16*7);const height=4*this._cubeSize;const params={magFilter:LinearFilter,minFilter:LinearFilter,generateMipmaps:false,type:HalfFloatType,format:RGBAFormat,encoding:LinearEncoding,depthBuffer:false};const cubeUVRenderTarget=_createRenderTarget(width,height,params);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==width){if(this._pingPongRenderTarget!==null){this._dispose()}this._pingPongRenderTarget=_createRenderTarget(width,height,params);const{_lodMax}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=_createPlanes(_lodMax));this._blurMaterial=_getBlurShader(_lodMax,width,height)}return cubeUVRenderTarget}_compileMaterial(material){const tmpMesh=new Mesh(this._lodPlanes[0],material);this._renderer.compile(tmpMesh,_flatCamera)}_sceneToCubeUV(scene,near,far,cubeUVRenderTarget){const fov=90;const aspect=1;const cubeCamera=new PerspectiveCamera(fov,aspect,near,far);const upSign=[1,-1,1,1,1,1];const forwardSign=[1,1,1,-1,-1,-1];const renderer=this._renderer;const originalAutoClear=renderer.autoClear;const toneMapping=renderer.toneMapping;renderer.getClearColor(_clearColor);renderer.toneMapping=NoToneMapping;renderer.autoClear=false;const backgroundMaterial=new MeshBasicMaterial({name:"PMREM.Background",side:BackSide,depthWrite:false,depthTest:false});const backgroundBox=new Mesh(new BoxGeometry(),backgroundMaterial);let useSolidColor=false;const background=scene.background;if(background){if(background.isColor){backgroundMaterial.color.copy(background);scene.background=null;useSolidColor=true}}else{backgroundMaterial.color.copy(_clearColor);useSolidColor=true}for(let i=0;i<6;i++){const col=i%3;if(col===0){cubeCamera.up.set(0,upSign[i],0);cubeCamera.lookAt(forwardSign[i],0,0)}else if(col===1){cubeCamera.up.set(0,0,upSign[i]);cubeCamera.lookAt(0,forwardSign[i],0)}else{cubeCamera.up.set(0,upSign[i],0);cubeCamera.lookAt(0,0,forwardSign[i])}const size=this._cubeSize;_setViewport(cubeUVRenderTarget,col*size,i>2?size:0,size,size);renderer.setRenderTarget(cubeUVRenderTarget);if(useSolidColor){renderer.render(backgroundBox,cubeCamera)}renderer.render(scene,cubeCamera)}backgroundBox.geometry.dispose();backgroundBox.material.dispose();renderer.toneMapping=toneMapping;renderer.autoClear=originalAutoClear;scene.background=background}_textureToCubeUV(texture,cubeUVRenderTarget){const renderer=this._renderer;const isCubeTexture=texture.mapping===CubeReflectionMapping||texture.mapping===CubeRefractionMapping;if(isCubeTexture){if(this._cubemapMaterial===null){this._cubemapMaterial=_getCubemapMaterial()}this._cubemapMaterial.uniforms.flipEnvMap.value=texture.isRenderTargetTexture===false?-1:1}else{if(this._equirectMaterial===null){this._equirectMaterial=_getEquirectMaterial()}}const material=isCubeTexture?this._cubemapMaterial:this._equirectMaterial;const mesh=new Mesh(this._lodPlanes[0],material);const uniforms=material.uniforms;uniforms["envMap"].value=texture;const size=this._cubeSize;_setViewport(cubeUVRenderTarget,0,0,3*size,2*size);renderer.setRenderTarget(cubeUVRenderTarget);renderer.render(mesh,_flatCamera)}_applyPMREM(cubeUVRenderTarget){const renderer=this._renderer;const autoClear=renderer.autoClear;renderer.autoClear=false;for(let i=1;i<this._lodPlanes.length;i++){const sigma=Math.sqrt(this._sigmas[i]*this._sigmas[i]-this._sigmas[i-1]*this._sigmas[i-1]);const poleAxis=_axisDirections[(i-1)%_axisDirections.length];this._blur(cubeUVRenderTarget,i-1,i,sigma,poleAxis)}renderer.autoClear=autoClear}_blur(cubeUVRenderTarget,lodIn,lodOut,sigma,poleAxis){const pingPongRenderTarget=this._pingPongRenderTarget;this._halfBlur(cubeUVRenderTarget,pingPongRenderTarget,lodIn,lodOut,sigma,"latitudinal",poleAxis);this._halfBlur(pingPongRenderTarget,cubeUVRenderTarget,lodOut,lodOut,sigma,"longitudinal",poleAxis)}_halfBlur(targetIn,targetOut,lodIn,lodOut,sigmaRadians,direction,poleAxis){const renderer=this._renderer;const blurMaterial=this._blurMaterial;if(direction!=="latitudinal"&&direction!=="longitudinal"){console.error("blur direction must be either latitudinal or longitudinal!")}const STANDARD_DEVIATIONS=3;const blurMesh=new Mesh(this._lodPlanes[lodOut],blurMaterial);const blurUniforms=blurMaterial.uniforms;const pixels=this._sizeLods[lodIn]-1;const radiansPerPixel=isFinite(sigmaRadians)?Math.PI/(2*pixels):2*Math.PI/(2*MAX_SAMPLES-1);const sigmaPixels=sigmaRadians/radiansPerPixel;const samples=isFinite(sigmaRadians)?1+Math.floor(STANDARD_DEVIATIONS*sigmaPixels):MAX_SAMPLES;if(samples>MAX_SAMPLES){console.warn(`sigmaRadians, ${sigmaRadians}, is too large and will clip, as it requested ${samples} samples when the maximum is set to ${MAX_SAMPLES}`)}const weights=[];let sum=0;for(let i=0;i<MAX_SAMPLES;++i){const x=i/sigmaPixels;const weight=Math.exp(-x*x/2);weights.push(weight);if(i===0){sum+=weight}else if(i<samples){sum+=2*weight}}for(let i=0;i<weights.length;i++){weights[i]=weights[i]/sum}blurUniforms["envMap"].value=targetIn.texture;blurUniforms["samples"].value=samples;blurUniforms["weights"].value=weights;blurUniforms["latitudinal"].value=direction==="latitudinal";if(poleAxis){blurUniforms["poleAxis"].value=poleAxis}const{_lodMax}=this;blurUniforms["dTheta"].value=radiansPerPixel;blurUniforms["mipInt"].value=_lodMax-lodIn;const outputSize=this._sizeLods[lodOut];const x=3*outputSize*(lodOut>_lodMax-LOD_MIN?lodOut-_lodMax+LOD_MIN:0);const y=4*(this._cubeSize-outputSize);_setViewport(targetOut,x,y,3*outputSize,2*outputSize);renderer.setRenderTarget(targetOut);renderer.render(blurMesh,_flatCamera)}}function _createPlanes(lodMax){const lodPlanes=[];const sizeLods=[];const sigmas=[];let lod=lodMax;const totalLods=lodMax-LOD_MIN+1+EXTRA_LOD_SIGMA.length;for(let i=0;i<totalLods;i++){const sizeLod=Math.pow(2,lod);sizeLods.push(sizeLod);let sigma=1/sizeLod;if(i>lodMax-LOD_MIN){sigma=EXTRA_LOD_SIGMA[i-lodMax+LOD_MIN-1]}else if(i===0){sigma=0}sigmas.push(sigma);const texelSize=1/(sizeLod-2);const min=-texelSize;const max=1+texelSize;const uv1=[min,min,max,min,max,max,min,min,max,max,min,max];const cubeFaces=6;const vertices=6;const positionSize=3;const uvSize=2;const faceIndexSize=1;const position=new Float32Array(positionSize*vertices*cubeFaces);const uv=new Float32Array(uvSize*vertices*cubeFaces);const faceIndex=new Float32Array(faceIndexSize*vertices*cubeFaces);for(let face=0;face<cubeFaces;face++){const x=face%3*2/3-1;const y=face>2?0:-1;const coordinates=[x,y,0,x+2/3,y,0,x+2/3,y+1,0,x,y,0,x+2/3,y+1,0,x,y+1,0];position.set(coordinates,positionSize*vertices*face);uv.set(uv1,uvSize*vertices*face);const fill=[face,face,face,face,face,face];faceIndex.set(fill,faceIndexSize*vertices*face)}const planes=new BufferGeometry;planes.setAttribute("position",new BufferAttribute(position,positionSize));planes.setAttribute("uv",new BufferAttribute(uv,uvSize));planes.setAttribute("faceIndex",new BufferAttribute(faceIndex,faceIndexSize));lodPlanes.push(planes);if(lod>LOD_MIN){lod--}}return{lodPlanes,sizeLods,sigmas}}function _createRenderTarget(width,height,params){const cubeUVRenderTarget=new WebGLRenderTarget(width,height,params);cubeUVRenderTarget.texture.mapping=CubeUVReflectionMapping;cubeUVRenderTarget.texture.name="PMREM.cubeUv";cubeUVRenderTarget.scissorTest=true;return cubeUVRenderTarget}function _setViewport(target,x,y,width,height){target.viewport.set(x,y,width,height);target.scissor.set(x,y,width,height)}function _getBlurShader(lodMax,width,height){const weights=new Float32Array(MAX_SAMPLES);const poleAxis=new Vector3(0,1,0);const shaderMaterial=new ShaderMaterial({name:"SphericalGaussianBlur",defines:{"n":MAX_SAMPLES,"CUBEUV_TEXEL_WIDTH":1/width,"CUBEUV_TEXEL_HEIGHT":1/height,"CUBEUV_MAX_MIP":`${lodMax}.0`},uniforms:{"envMap":{value:null},"samples":{value:1},"weights":{value:weights},"latitudinal":{value:false},"dTheta":{value:0},"mipInt":{value:0},"poleAxis":{value:poleAxis}},vertexShader:_getCommonVertexShader(),fragmentShader:`

                precision mediump float;
                precision mediump int;

                varying vec3 vOutputDirection;

                uniform sampler2D envMap;
                uniform int samples;
                uniform float weights[ n ];
                uniform bool latitudinal;
                uniform float dTheta;
                uniform float mipInt;
                uniform vec3 poleAxis;

                #define ENVMAP_TYPE_CUBE_UV
                #include <cube_uv_reflection_fragment>

                vec3 getSample( float theta, vec3 axis ) {

                    float cosTheta = cos( theta );
                    // Rodrigues' axis-angle rotation
                    vec3 sampleDirection = vOutputDirection * cosTheta
                        + cross( axis, vOutputDirection ) * sin( theta )
                        + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );

                    return bilinearCubeUV( envMap, sampleDirection, mipInt );

                }

                void main() {

                    vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );

                    if ( all( equal( axis, vec3( 0.0 ) ) ) ) {

                        axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );

                    }

                    axis = normalize( axis );

                    gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
                    gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );

                    for ( int i = 1; i < n; i++ ) {

                        if ( i >= samples ) {

                            break;

                        }

                        float theta = dTheta * float( i );
                        gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
                        gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );

                    }

                }
            `,blending:NoBlending,depthTest:false,depthWrite:false});return shaderMaterial}function _getEquirectMaterial(){return new ShaderMaterial({name:"EquirectangularToCubeUV",uniforms:{"envMap":{value:null}},vertexShader:_getCommonVertexShader(),fragmentShader:`

                precision mediump float;
                precision mediump int;

                varying vec3 vOutputDirection;

                uniform sampler2D envMap;

                #include <common>

                void main() {

                    vec3 outputDirection = normalize( vOutputDirection );
                    vec2 uv = equirectUv( outputDirection );

                    gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );

                }
            `,blending:NoBlending,depthTest:false,depthWrite:false})}function _getCubemapMaterial(){return new ShaderMaterial({name:"CubemapToCubeUV",uniforms:{"envMap":{value:null},"flipEnvMap":{value:-1}},vertexShader:_getCommonVertexShader(),fragmentShader:`

                precision mediump float;
                precision mediump int;

                uniform float flipEnvMap;

                varying vec3 vOutputDirection;

                uniform samplerCube envMap;

                void main() {

                    gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );

                }
            `,blending:NoBlending,depthTest:false,depthWrite:false})}function _getCommonVertexShader(){return`

            precision mediump float;
            precision mediump int;

            attribute float faceIndex;

            varying vec3 vOutputDirection;

            // RH coordinate system; PMREM face-indexing convention
            vec3 getDirection( vec2 uv, float face ) {

                uv = 2.0 * uv - 1.0;

                vec3 direction = vec3( uv, 1.0 );

                if ( face == 0.0 ) {

                    direction = direction.zyx; // ( 1, v, u ) pos x

                } else if ( face == 1.0 ) {

                    direction = direction.xzy;
                    direction.xz *= -1.0; // ( -u, 1, -v ) pos y

                } else if ( face == 2.0 ) {

                    direction.x *= -1.0; // ( -u, v, 1 ) pos z

                } else if ( face == 3.0 ) {

                    direction = direction.zyx;
                    direction.xz *= -1.0; // ( -1, v, -u ) neg x

                } else if ( face == 4.0 ) {

                    direction = direction.xzy;
                    direction.xy *= -1.0; // ( -u, -1, v ) neg y

                } else if ( face == 5.0 ) {

                    direction.z *= -1.0; // ( u, v, -1 ) neg z

                }

                return direction;

            }

            void main() {

                vOutputDirection = getDirection( uv, faceIndex );
                gl_Position = vec4( position, 1.0 );

            }
        `}THREE.PMREMGenerator=PMREMGenerator});(function(){const DepthLimitedBlurShader={defines:{"KERNEL_RADIUS":4,"DEPTH_PACKING":1,"PERSPECTIVE_CAMERA":1},uniforms:{"tDiffuse":{value:null},"size":{value:new THREE.Vector2(512,512)},"sampleUvOffsets":{value:[new THREE.Vector2(0,0)]},"sampleWeights":{value:[1]},"tDepth":{value:null},"cameraNear":{value:10},"cameraFar":{value:1000},"depthCutoff":{value:10}},vertexShader:`

		#include <common>

		uniform vec2 size;

		varying vec2 vUv;
		varying vec2 vInvSize;

		void main() {
			vUv = uv;
			vInvSize = 1.0 / size;

			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
		}`,fragmentShader:`

		#include <common>
		#include <packing>

		uniform sampler2D tDiffuse;
		uniform sampler2D tDepth;

		uniform float cameraNear;
		uniform float cameraFar;
		uniform float depthCutoff;

		uniform vec2 sampleUvOffsets[ KERNEL_RADIUS + 1 ];
		uniform float sampleWeights[ KERNEL_RADIUS + 1 ];

		varying vec2 vUv;
		varying vec2 vInvSize;

		float getDepth( const in vec2 screenPosition ) {
			#if DEPTH_PACKING == 1
			return unpackRGBAToDepth( texture2D( tDepth, screenPosition ) );
			#else
			return texture2D( tDepth, screenPosition ).x;
			#endif
		}

		float getViewZ( const in float depth ) {
			#if PERSPECTIVE_CAMERA == 1
			return perspectiveDepthToViewZ( depth, cameraNear, cameraFar );
			#else
			return orthographicDepthToViewZ( depth, cameraNear, cameraFar );
			#endif
		}

		void main() {
			float depth = getDepth( vUv );
			if( depth >= ( 1.0 - EPSILON ) ) {
				discard;
			}

			float centerViewZ = -getViewZ( depth );
			bool rBreak = false, lBreak = false;

			float weightSum = sampleWeights[0];
			vec4 diffuseSum = texture2D( tDiffuse, vUv ) * weightSum;

			for( int i = 1; i <= KERNEL_RADIUS; i ++ ) {

				float sampleWeight = sampleWeights[i];
				vec2 sampleUvOffset = sampleUvOffsets[i] * vInvSize;

				vec2 sampleUv = vUv + sampleUvOffset;
				float viewZ = -getViewZ( getDepth( sampleUv ) );

				if( abs( viewZ - centerViewZ ) > depthCutoff ) rBreak = true;

				if( ! rBreak ) {
					diffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight;
					weightSum += sampleWeight;
				}

				sampleUv = vUv - sampleUvOffset;
				viewZ = -getViewZ( getDepth( sampleUv ) );

				if( abs( viewZ - centerViewZ ) > depthCutoff ) lBreak = true;

				if( ! lBreak ) {
					diffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight;
					weightSum += sampleWeight;
				}

			}

			gl_FragColor = diffuseSum / weightSum;
		}`};const BlurShaderUtils={createSampleWeights:function(kernelRadius,stdDev){const weights=[];for(let i=0;i<=kernelRadius;i++){weights.push(gaussian(i,stdDev))}return weights},createSampleOffsets:function(kernelRadius,uvIncrement){const offsets=[];for(let i=0;i<=kernelRadius;i++){offsets.push(uvIncrement.clone().multiplyScalar(i))}return offsets},configure:function(material,kernelRadius,stdDev,uvIncrement){material.defines["KERNEL_RADIUS"]=kernelRadius;material.uniforms["sampleUvOffsets"].value=BlurShaderUtils.createSampleOffsets(kernelRadius,uvIncrement);material.uniforms["sampleWeights"].value=BlurShaderUtils.createSampleWeights(kernelRadius,stdDev);material.needsUpdate=true}};function gaussian(x,stdDev){return Math.exp(-(x*x)/(2*(stdDev*stdDev)))/(Math.sqrt(2*Math.PI)*stdDev)}THREE.BlurShaderUtils=BlurShaderUtils;THREE.DepthLimitedBlurShader=DepthLimitedBlurShader})();(function(){class EffectComposer{constructor(renderer,renderTarget){this.renderer=renderer;if(renderTarget===undefined){const size=renderer.getSize(new THREE.Vector2);this._pixelRatio=renderer.getPixelRatio();this._width=size.width;this._height=size.height;renderTarget=new THREE.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio);renderTarget.texture.name="EffectComposer.rt1"}else{this._pixelRatio=1;this._width=renderTarget.width;this._height=renderTarget.height}this.renderTarget1=renderTarget;this.renderTarget2=renderTarget.clone();this.renderTarget2.texture.name="EffectComposer.rt2";this.writeBuffer=this.renderTarget1;this.readBuffer=this.renderTarget2;this.renderToScreen=true;this.passes=[];if(THREE.CopyShader===undefined){console.error("THREE.EffectComposer relies on THREE.CopyShader")}if(THREE.ShaderPass===undefined){console.error("THREE.EffectComposer relies on THREE.ShaderPass")}this.copyPass=new THREE.ShaderPass(THREE.CopyShader);this.clock=new THREE.Clock}swapBuffers(){const tmp=this.readBuffer;this.readBuffer=this.writeBuffer;this.writeBuffer=tmp}addPass(pass){this.passes.push(pass);pass.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(pass,index){this.passes.splice(index,0,pass);pass.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(pass){const index=this.passes.indexOf(pass);if(index!==-1){this.passes.splice(index,1)}}isLastEnabledPass(passIndex){for(let i=passIndex+1;i<this.passes.length;i++){if(this.passes[i].enabled){return false}}return true}render(deltaTime){if(deltaTime===undefined){deltaTime=this.clock.getDelta()}const currentRenderTarget=this.renderer.getRenderTarget();let maskActive=false;for(let i=0,il=this.passes.length;i<il;i++){const pass=this.passes[i];if(pass.enabled===false)continue;pass.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(i);pass.render(this.renderer,this.writeBuffer,this.readBuffer,deltaTime,maskActive);if(pass.needsSwap){if(maskActive){const context=this.renderer.getContext();const stencil=this.renderer.state.buffers.stencil;stencil.setFunc(context.NOTEQUAL,1,4294967295);this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,deltaTime);stencil.setFunc(context.EQUAL,1,4294967295)}this.swapBuffers()}if(THREE.MaskPass!==undefined){if(pass instanceof THREE.MaskPass){maskActive=true}else if(pass instanceof THREE.ClearMaskPass){maskActive=false}}}this.renderer.setRenderTarget(currentRenderTarget)}reset(renderTarget){if(renderTarget===undefined){const size=this.renderer.getSize(new THREE.Vector2);this._pixelRatio=this.renderer.getPixelRatio();this._width=size.width;this._height=size.height;renderTarget=this.renderTarget1.clone();renderTarget.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose();this.renderTarget2.dispose();this.renderTarget1=renderTarget;this.renderTarget2=renderTarget.clone();this.writeBuffer=this.renderTarget1;this.readBuffer=this.renderTarget2}setSize(width,height){this._width=width;this._height=height;const effectiveWidth=this._width*this._pixelRatio;const effectiveHeight=this._height*this._pixelRatio;this.renderTarget1.setSize(effectiveWidth,effectiveHeight);this.renderTarget2.setSize(effectiveWidth,effectiveHeight);for(let i=0;i<this.passes.length;i++){this.passes[i].setSize(effectiveWidth,effectiveHeight)}}setPixelRatio(pixelRatio){this._pixelRatio=pixelRatio;this.setSize(this._width,this._height)}}class Pass{constructor(){this.enabled=true;this.needsSwap=true;this.clear=false;this.renderToScreen=false}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const _camera=new THREE.OrthographicCamera(-1,1,1,-1,0,1);const _geometry=new THREE.BufferGeometry;_geometry.setAttribute("position",new THREE.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3));_geometry.setAttribute("uv",new THREE.Float32BufferAttribute([0,2,0,0,2,0],2));class FullScreenQuad{constructor(material){this._mesh=new THREE.Mesh(_geometry,material)}dispose(){this._mesh.geometry.dispose()}render(renderer){renderer.render(this._mesh,_camera)}get material(){return this._mesh.material}set material(value){this._mesh.material=value}}THREE.EffectComposer=EffectComposer;THREE.FullScreenQuad=FullScreenQuad;THREE.Pass=Pass})();(function(){const BlendShader={uniforms:{"tDiffuse1":{value:null},"tDiffuse2":{value:null},"mixRatio":{value:0.5},"opacity":{value:1}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform float opacity;
		uniform float mixRatio;

		uniform sampler2D tDiffuse1;
		uniform sampler2D tDiffuse2;

		varying vec2 vUv;

		void main() {

			vec4 texel1 = texture2D( tDiffuse1, vUv );
			vec4 texel2 = texture2D( tDiffuse2, vUv );
			gl_FragColor = mix( texel1, texel2, mixRatio );
			gl_FragColor.a *= opacity;

		}`};THREE.BlendShader=BlendShader})();(function(){const CopyShader={uniforms:{"tDiffuse":{value:null},"opacity":{value:1}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform float opacity;

		uniform sampler2D tDiffuse;

		varying vec2 vUv;

		void main() {

			gl_FragColor = texture2D( tDiffuse, vUv );
			gl_FragColor.a *= opacity;


		}`};THREE.CopyShader=CopyShader})();(function(){const FXAAShader={uniforms:{"tDiffuse":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`
	precision highp float;

	uniform sampler2D tDiffuse;

	uniform vec2 resolution;

	varying vec2 vUv;

	// FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)

	//----------------------------------------------------------------------------------
	// File:        es3-kepler\FXAA\assets\shaders/FXAA_DefaultES.frag
	// SDK Version: v3.00
	// Email:       gameworks@nvidia.com
	// Site:        http://developer.nvidia.com/
	//
	// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
	//
	// Redistribution and use in source and binary forms, with or without
	// modification, are permitted provided that the following conditions
	// are met:
	//  * Redistributions of source code must retain the above copyright
	//    notice, this list of conditions and the following disclaimer.
	//  * Redistributions in binary form must reproduce the above copyright
	//    notice, this list of conditions and the following disclaimer in the
	//    documentation and/or other materials provided with the distribution.
	//  * Neither the name of NVIDIA CORPORATION nor the names of its
	//    contributors may be used to endorse or promote products derived
	//    from this software without specific prior written permission.
	//
	// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
	// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
	// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
	// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
	// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
	// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
	// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
	// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
	// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
	// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
	//
	//----------------------------------------------------------------------------------

	#ifndef FXAA_DISCARD
			//
			// Only valid for PC OpenGL currently.
			// Probably will not work when FXAA_GREEN_AS_LUMA = 1.
			//
			// 1 = Use discard on pixels which don't need AA.
			//     For APIs which enable concurrent TEX+ROP from same surface.
			// 0 = Return unchanged color on pixels which don't need AA.
			//
			#define FXAA_DISCARD 0
	#endif

	/*--------------------------------------------------------------------------*/
	#define FxaaTexTop(t, p) texture2D(t, p, -100.0)
	#define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), -100.0)
	/*--------------------------------------------------------------------------*/

	#define NUM_SAMPLES 5

	// assumes colors have premultipliedAlpha, so that the calculated color contrast is scaled by alpha
	float contrast( vec4 a, vec4 b ) {
			vec4 diff = abs( a - b );
			return max( max( max( diff.r, diff.g ), diff.b ), diff.a );
	}

	/*============================================================================

									FXAA3 QUALITY - PC

	============================================================================*/

	/*--------------------------------------------------------------------------*/
	vec4 FxaaPixelShader(
			vec2 posM,
			sampler2D tex,
			vec2 fxaaQualityRcpFrame,
			float fxaaQualityEdgeThreshold,
			float fxaaQualityinvEdgeThreshold
	) {
			vec4 rgbaM = FxaaTexTop(tex, posM);
			vec4 rgbaS = FxaaTexOff(tex, posM, vec2( 0.0, 1.0), fxaaQualityRcpFrame.xy);
			vec4 rgbaE = FxaaTexOff(tex, posM, vec2( 1.0, 0.0), fxaaQualityRcpFrame.xy);
			vec4 rgbaN = FxaaTexOff(tex, posM, vec2( 0.0,-1.0), fxaaQualityRcpFrame.xy);
			vec4 rgbaW = FxaaTexOff(tex, posM, vec2(-1.0, 0.0), fxaaQualityRcpFrame.xy);
			// . S .
			// W M E
			// . N .

			bool earlyExit = max( max( max(
					contrast( rgbaM, rgbaN ),
					contrast( rgbaM, rgbaS ) ),
					contrast( rgbaM, rgbaE ) ),
					contrast( rgbaM, rgbaW ) )
					< fxaaQualityEdgeThreshold;
			// . 0 .
			// 0 0 0
			// . 0 .

			#if (FXAA_DISCARD == 1)
					if(earlyExit) FxaaDiscard;
			#else
					if(earlyExit) return rgbaM;
			#endif

			float contrastN = contrast( rgbaM, rgbaN );
			float contrastS = contrast( rgbaM, rgbaS );
			float contrastE = contrast( rgbaM, rgbaE );
			float contrastW = contrast( rgbaM, rgbaW );

			float relativeVContrast = ( contrastN + contrastS ) - ( contrastE + contrastW );
			relativeVContrast *= fxaaQualityinvEdgeThreshold;

			bool horzSpan = relativeVContrast > 0.;
			// . 1 .
			// 0 0 0
			// . 1 .

			// 45 deg edge detection and corners of objects, aka V/H contrast is too similar
			if( abs( relativeVContrast ) < .3 ) {
					// locate the edge
					vec2 dirToEdge;
					dirToEdge.x = contrastE > contrastW ? 1. : -1.;
					dirToEdge.y = contrastS > contrastN ? 1. : -1.;
					// . 2 .      . 1 .
					// 1 0 2  ~=  0 0 1
					// . 1 .      . 0 .

					// tap 2 pixels and see which ones are "outside" the edge, to
					// determine if the edge is vertical or horizontal

					vec4 rgbaAlongH = FxaaTexOff(tex, posM, vec2( dirToEdge.x, -dirToEdge.y ), fxaaQualityRcpFrame.xy);
					float matchAlongH = contrast( rgbaM, rgbaAlongH );
					// . 1 .
					// 0 0 1
					// . 0 H

					vec4 rgbaAlongV = FxaaTexOff(tex, posM, vec2( -dirToEdge.x, dirToEdge.y ), fxaaQualityRcpFrame.xy);
					float matchAlongV = contrast( rgbaM, rgbaAlongV );
					// V 1 .
					// 0 0 1
					// . 0 .

					relativeVContrast = matchAlongV - matchAlongH;
					relativeVContrast *= fxaaQualityinvEdgeThreshold;

					if( abs( relativeVContrast ) < .3 ) { // 45 deg edge
							// 1 1 .
							// 0 0 1
							// . 0 1

							// do a simple blur
							return mix(
									rgbaM,
									(rgbaN + rgbaS + rgbaE + rgbaW) * .25,
									.4
							);
					}

					horzSpan = relativeVContrast > 0.;
			}

			if(!horzSpan) rgbaN = rgbaW;
			if(!horzSpan) rgbaS = rgbaE;
			// . 0 .      1
			// 1 0 1  ->  0
			// . 0 .      1

			bool pairN = contrast( rgbaM, rgbaN ) > contrast( rgbaM, rgbaS );
			if(!pairN) rgbaN = rgbaS;

			vec2 offNP;
			offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;
			offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;

			bool doneN = false;
			bool doneP = false;

			float nDist = 0.;
			float pDist = 0.;

			vec2 posN = posM;
			vec2 posP = posM;

			int iterationsUsed = 0;
			int iterationsUsedN = 0;
			int iterationsUsedP = 0;
			for( int i = 0; i < NUM_SAMPLES; i++ ) {
					iterationsUsed = i;

					float increment = float(i + 1);

					if(!doneN) {
							nDist += increment;
							posN = posM + offNP * nDist;
							vec4 rgbaEndN = FxaaTexTop(tex, posN.xy);
							doneN = contrast( rgbaEndN, rgbaM ) > contrast( rgbaEndN, rgbaN );
							iterationsUsedN = i;
					}

					if(!doneP) {
							pDist += increment;
							posP = posM - offNP * pDist;
							vec4 rgbaEndP = FxaaTexTop(tex, posP.xy);
							doneP = contrast( rgbaEndP, rgbaM ) > contrast( rgbaEndP, rgbaN );
							iterationsUsedP = i;
					}

					if(doneN || doneP) break;
			}


			if ( !doneP && !doneN ) return rgbaM; // failed to find end of edge

			float dist = min(
					doneN ? float( iterationsUsedN ) / float( NUM_SAMPLES - 1 ) : 1.,
					doneP ? float( iterationsUsedP ) / float( NUM_SAMPLES - 1 ) : 1.
			);

			// hacky way of reduces blurriness of mostly diagonal edges
			// but reduces AA quality
			dist = pow(dist, .5);

			dist = 1. - dist;

			return mix(
					rgbaM,
					rgbaN,
					dist * .5
			);
	}

	void main() {
			const float edgeDetectionQuality = .2;
			const float invEdgeDetectionQuality = 1. / edgeDetectionQuality;

			gl_FragColor = FxaaPixelShader(
					vUv,
					tDiffuse,
					resolution,
					edgeDetectionQuality, // [0,1] contrast needed, otherwise early discard
					invEdgeDetectionQuality
			);

	}
	`};THREE.FXAAShader=FXAAShader})();(function(){const GammaCorrectionShader={uniforms:{"tDiffuse":{value:null}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform sampler2D tDiffuse;

		varying vec2 vUv;

		void main() {

			vec4 tex = texture2D( tDiffuse, vUv );

			gl_FragColor = LinearTosRGB( tex );

		}`};THREE.GammaCorrectionShader=GammaCorrectionShader})();(function(require){class CustomRenderPass extends THREE.Pass{constructor(renderCallback){super();this.renderCallback=renderCallback;this.scene=null;this.camera=null;this.clear=true;this.clearDepth=false;this.needsSwap=false}render(renderer,writeBuffer,readBuffer,delta,maskActive){var oldAutoClear=renderer.autoClear;renderer.autoClear=false;this.renderCallback(renderer,this.scene,this.camera,this.renderToScreen?null:readBuffer,this.clear);renderer.autoClear=oldAutoClear}}THREE.CustomRenderPass=CustomRenderPass})();(function(){class MaskPass extends THREE.Pass{constructor(scene,camera){super();this.scene=scene;this.camera=camera;this.clear=true;this.needsSwap=false;this.inverse=false}render(renderer,writeBuffer,readBuffer){const context=renderer.getContext();const state=renderer.state;state.buffers.color.setMask(false);state.buffers.depth.setMask(false);state.buffers.color.setLocked(true);state.buffers.depth.setLocked(true);let writeValue,clearValue;if(this.inverse){writeValue=0;clearValue=1}else{writeValue=1;clearValue=0}state.buffers.stencil.setTest(true);state.buffers.stencil.setOp(context.REPLACE,context.REPLACE,context.REPLACE);state.buffers.stencil.setFunc(context.ALWAYS,writeValue,4294967295);state.buffers.stencil.setClear(clearValue);state.buffers.stencil.setLocked(true);renderer.setRenderTarget(readBuffer);if(this.clear)renderer.clear();renderer.render(this.scene,this.camera);renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear();renderer.render(this.scene,this.camera);state.buffers.color.setLocked(false);state.buffers.depth.setLocked(false);state.buffers.stencil.setLocked(false);state.buffers.stencil.setFunc(context.EQUAL,1,4294967295);state.buffers.stencil.setOp(context.KEEP,context.KEEP,context.KEEP);state.buffers.stencil.setLocked(true)}}class ClearMaskPass extends THREE.Pass{constructor(){super();this.needsSwap=false}render(renderer){renderer.state.buffers.stencil.setLocked(false);renderer.state.buffers.stencil.setTest(false)}}THREE.ClearMaskPass=ClearMaskPass;THREE.MaskPass=MaskPass})();(function(){var vertexShader=["varying vec2 vUv;","void main() {","    gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","    vUv = uv;","}"].join("\n");var fragmentShader=["varying vec2 vUv;","uniform sampler2D tDepth;","uniform sampler2D tColor;","uniform mat4 inverseProjectionMatrix;","uniform float near;","uniform float far;","uniform float depthLimit;","uniform mat4 clipToWorldMatrix;","uniform mat4 previousWorldToClipMatrix;","uniform vec3 cameraMove;    ","uniform float velocityFactor;","uniform float delta;","uniform int samples;","void main() {","    float zOverW = texture2D(tDepth, vUv).x;","    vec4 clipPosition = vec4(vUv.x * 2. - 1., vUv.y * 2. - 1., zOverW * 2. - 1., 1.);","    vec4 cameraSpacePosition = inverseProjectionMatrix * clipPosition;","    cameraSpacePosition /= cameraSpacePosition.w;","    float depth = -(cameraSpacePosition.z - near) / (far - near);","    if (depth > depthLimit)","    {","       gl_FragColor = texture2D(tColor, vUv);","       return;","    }","    vec4 worldPosition = clipToWorldMatrix * clipPosition;","    worldPosition /= worldPosition.w;","    vec4 previousClipPosition = worldPosition;","    previousClipPosition.xyz -= cameraMove * (","        1. - smoothstep(.3, 1., clamp(length(clipPosition.xy), 0., 1.))","    );","    previousClipPosition = previousWorldToClipMatrix * previousClipPosition;","    previousClipPosition /= previousClipPosition.w;","    vec2 velocity = velocityFactor * (clipPosition - previousClipPosition).xy / delta * 16.67;","    vec4 finalColor = vec4(0.);","    vec2 offset = vec2(0.);","    float weight = 0.;","    for(int i = 0; i < samples; i++) {","            offset = velocity * (float(i) / (float(samples) - 1.) - .5);","            vec4 c = texture2D(tColor, vUv + offset);","        finalColor += c;","    }","    finalColor /= float(samples);","    gl_FragColor = vec4(finalColor.rgb, 1.);","}"].join("\n");var uniforms={"tDepth":{type:"t",value:null},"tColor":{type:"t",value:null},"velocityFactor":{type:"f",value:1},"delta":{type:"f",value:16.67},"samples":{type:"i",value:20},"inverseProjectionMatrix":{type:"m4",value:new THREE.Matrix4},"clipToWorldMatrix":{type:"m4",value:new THREE.Matrix4},"previousWorldToClipMatrix":{type:"m4",value:new THREE.Matrix4},"cameraMove":{type:"v3",value:new THREE.Vector3},"near":{type:"f",value:1},"far":{type:"f",value:1000},"depthLimit":{type:"f",value:0.99}};class MotionBlurPass extends THREE.Pass{constructor(){super();this.uniforms=THREE.UniformsUtils.clone(uniforms);this.material=new THREE.ShaderMaterial({defines:{},uniforms:this.uniforms,vertexShader:vertexShader,fragmentShader:fragmentShader});this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer,deltaTime,maskActive){this.uniforms["tColor"].value=readBuffer.texture;this.uniforms["tDepth"].value=readBuffer.depthTexture;this.fsQuad.material=this.material;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);this.fsQuad.render(renderer)}}dispose(){this.fsQuad.dispose();this.material.dispose()}};THREE.MotionBlurPass=MotionBlurPass})();(function(){class RenderPass extends THREE.Pass{constructor(scene,camera,overrideMaterial,clearColor,clearAlpha){super();this.scene=scene;this.camera=camera;this.overrideMaterial=overrideMaterial;this.clearColor=clearColor;this.clearAlpha=clearAlpha!==undefined?clearAlpha:0;this.clear=true;this.clearDepth=false;this.needsSwap=false;this._oldClearColor=new THREE.Color}render(renderer,writeBuffer,readBuffer){const oldAutoClear=renderer.autoClear;renderer.autoClear=false;let oldClearAlpha,oldOverrideMaterial;if(this.overrideMaterial!==undefined){oldOverrideMaterial=this.scene.overrideMaterial;this.scene.overrideMaterial=this.overrideMaterial}if(this.clearColor){renderer.getClearColor(this._oldClearColor);oldClearAlpha=renderer.getClearAlpha();renderer.setClearColor(this.clearColor,this.clearAlpha)}if(this.clearDepth){renderer.clearDepth()}renderer.setRenderTarget(this.renderToScreen?null:readBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);renderer.render(this.scene,this.camera);if(this.clearColor){renderer.setClearColor(this._oldClearColor,oldClearAlpha)}if(this.overrideMaterial!==undefined){this.scene.overrideMaterial=oldOverrideMaterial}renderer.autoClear=oldAutoClear}}THREE.RenderPass=RenderPass})();(function(){class SAOPass extends THREE.Pass{constructor(scene,camera,useDepthTexture=false,useNormals=false,resolution=new THREE.Vector2(256,256)){super();this.scene=scene;this.camera=camera;this.clear=true;this.needsSwap=false;this.supportsDepthTextureExtension=useDepthTexture;this.supportsNormalTexture=useNormals;this.originalClearColor=new THREE.Color;this._oldClearColor=new THREE.Color;this.oldClearAlpha=1;this.params={output:0,saoBias:0.5,saoIntensity:0.18,saoScale:1,saoKernelRadius:100,saoMinResolution:0,saoBlur:true,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:0.01};this.resolution=new THREE.Vector2(resolution.x,resolution.y);this.saoRenderTarget=new THREE.WebGLRenderTarget(this.resolution.x,this.resolution.y);this.blurIntermediateRenderTarget=this.saoRenderTarget.clone();this.beautyRenderTarget=this.saoRenderTarget.clone();this.normalRenderTarget=new THREE.WebGLRenderTarget(this.resolution.x,this.resolution.y,{minFilter:THREE.NearestFilter,magFilter:THREE.NearestFilter});this.depthRenderTarget=this.normalRenderTarget.clone();let depthTexture;if(this.supportsDepthTextureExtension){depthTexture=new THREE.DepthTexture;depthTexture.type=THREE.UnsignedShortType;this.beautyRenderTarget.depthTexture=depthTexture;this.beautyRenderTarget.depthBuffer=true}this.depthMaterial=new THREE.MeshDepthMaterial;this.depthMaterial.depthPacking=THREE.RGBADepthPacking;this.depthMaterial.blending=THREE.NoBlending;this.normalMaterial=new THREE.MeshNormalMaterial;this.normalMaterial.blending=THREE.NoBlending;if(THREE.SAOShader===undefined){console.error("THREE.SAOPass relies on THREE.SAOShader")}this.saoMaterial=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SAOShader.defines),fragmentShader:THREE.SAOShader.fragmentShader,vertexShader:THREE.SAOShader.vertexShader,uniforms:THREE.UniformsUtils.clone(THREE.SAOShader.uniforms)});this.saoMaterial.extensions.derivatives=true;this.saoMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.saoMaterial.defines["NORMAL_TEXTURE"]=this.supportsNormalTexture?1:0;this.saoMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.saoMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.saoMaterial.uniforms["tNormal"].value=this.normalRenderTarget.texture;this.saoMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.saoMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse);this.saoMaterial.uniforms["cameraProjectionMatrix"].value=this.camera.projectionMatrix;this.saoMaterial.blending=THREE.NoBlending;if(THREE.DepthLimitedBlurShader===undefined){console.error("THREE.SAOPass relies on THREE.DepthLimitedBlurShader")}this.vBlurMaterial=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.DepthLimitedBlurShader.uniforms),defines:Object.assign({},THREE.DepthLimitedBlurShader.defines),vertexShader:THREE.DepthLimitedBlurShader.vertexShader,fragmentShader:THREE.DepthLimitedBlurShader.fragmentShader});this.vBlurMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.vBlurMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.vBlurMaterial.uniforms["tDiffuse"].value=this.saoRenderTarget.texture;this.vBlurMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.vBlurMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.vBlurMaterial.blending=THREE.NoBlending;this.hBlurMaterial=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.DepthLimitedBlurShader.uniforms),defines:Object.assign({},THREE.DepthLimitedBlurShader.defines),vertexShader:THREE.DepthLimitedBlurShader.vertexShader,fragmentShader:THREE.DepthLimitedBlurShader.fragmentShader});this.hBlurMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.hBlurMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.hBlurMaterial.uniforms["tDiffuse"].value=this.blurIntermediateRenderTarget.texture;this.hBlurMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.hBlurMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.hBlurMaterial.blending=THREE.NoBlending;if(THREE.CopyShader===undefined){console.error("THREE.SAOPass relies on THREE.CopyShader")}this.materialCopy=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.CopyShader.uniforms),vertexShader:THREE.CopyShader.vertexShader,fragmentShader:THREE.CopyShader.fragmentShader,blending:THREE.NoBlending});this.materialCopy.transparent=true;this.materialCopy.depthTest=false;this.materialCopy.depthWrite=false;this.materialCopy.blending=THREE.CustomBlending;this.materialCopy.blendSrc=THREE.DstColorFactor;this.materialCopy.blendDst=THREE.ZeroFactor;this.materialCopy.blendEquation=THREE.AddEquation;this.materialCopy.blendSrcAlpha=THREE.DstAlphaFactor;this.materialCopy.blendDstAlpha=THREE.ZeroFactor;this.materialCopy.blendEquationAlpha=THREE.AddEquation;if(THREE.UnpackDepthRGBAShader===undefined){console.error("THREE.SAOPass relies on THREE.UnpackDepthRGBAShader")}this.depthCopy=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.UnpackDepthRGBAShader.uniforms),vertexShader:THREE.UnpackDepthRGBAShader.vertexShader,fragmentShader:THREE.UnpackDepthRGBAShader.fragmentShader,blending:THREE.NoBlending});this.fsQuad=new THREE.FullScreenQuad(null)}render(renderer,writeBuffer,readBuffer){if(this.renderToScreen){this.materialCopy.blending=THREE.NoBlending;this.materialCopy.uniforms["tDiffuse"].value=readBuffer.texture;this.materialCopy.needsUpdate=true;this.renderPass(renderer,this.materialCopy,null)}if(this.params.output===1){return}renderer.getClearColor(this._oldClearColor);this.oldClearAlpha=renderer.getClearAlpha();const oldAutoClear=renderer.autoClear;renderer.autoClear=false;renderer.setRenderTarget(this.depthRenderTarget);renderer.clear();this.saoMaterial.uniforms["bias"].value=this.params.saoBias;this.saoMaterial.uniforms["intensity"].value=this.params.saoIntensity;this.saoMaterial.uniforms["scale"].value=this.params.saoScale;this.saoMaterial.uniforms["kernelRadius"].value=this.params.saoKernelRadius;this.saoMaterial.uniforms["minResolution"].value=this.params.saoMinResolution;this.saoMaterial.uniforms["cameraNear"].value=this.camera.near;this.saoMaterial.uniforms["cameraFar"].value=this.camera.far;const depthCutoff=this.params.saoBlurDepthCutoff*(this.camera.far-this.camera.near);this.vBlurMaterial.uniforms["depthCutoff"].value=depthCutoff;this.hBlurMaterial.uniforms["depthCutoff"].value=depthCutoff;this.vBlurMaterial.uniforms["cameraNear"].value=this.camera.near;this.vBlurMaterial.uniforms["cameraFar"].value=this.camera.far;this.hBlurMaterial.uniforms["cameraNear"].value=this.camera.near;this.hBlurMaterial.uniforms["cameraFar"].value=this.camera.far;this.params.saoBlurRadius=Math.floor(this.params.saoBlurRadius);if(this.prevStdDev!==this.params.saoBlurStdDev||this.prevNumSamples!==this.params.saoBlurRadius){THREE.BlurShaderUtils.configure(this.vBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new THREE.Vector2(0,1));THREE.BlurShaderUtils.configure(this.hBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new THREE.Vector2(1,0));this.prevStdDev=this.params.saoBlurStdDev;this.prevNumSamples=this.params.saoBlurRadius}renderer.setClearColor(0);renderer.setRenderTarget(this.beautyRenderTarget);renderer.clear();renderer.render(this.scene,this.camera);if(!this.supportsDepthTextureExtension){this.renderOverride(renderer,this.depthMaterial,this.depthRenderTarget,0,1)}if(this.supportsNormalTexture){this.renderOverride(renderer,this.normalMaterial,this.normalRenderTarget,7829503,1)}this.renderPass(renderer,this.saoMaterial,this.saoRenderTarget,16777215,1);if(this.params.saoBlur){this.renderPass(renderer,this.vBlurMaterial,this.blurIntermediateRenderTarget,16777215,1);this.renderPass(renderer,this.hBlurMaterial,this.saoRenderTarget,16777215,1)}let outputMaterial=this.materialCopy;if(this.params.output===3){if(this.supportsDepthTextureExtension){this.materialCopy.uniforms["tDiffuse"].value=this.beautyRenderTarget.depthTexture;this.materialCopy.needsUpdate=true}else{this.depthCopy.uniforms["tDiffuse"].value=this.depthRenderTarget.texture;this.depthCopy.needsUpdate=true;outputMaterial=this.depthCopy}}else if(this.params.output===4){this.materialCopy.uniforms["tDiffuse"].value=this.normalRenderTarget.texture;this.materialCopy.needsUpdate=true}else{this.materialCopy.uniforms["tDiffuse"].value=this.saoRenderTarget.texture;this.materialCopy.needsUpdate=true}if(this.params.output===0){outputMaterial.blending=THREE.CustomBlending}else{outputMaterial.blending=THREE.NoBlending}this.renderPass(renderer,outputMaterial,this.renderToScreen?null:readBuffer);renderer.setClearColor(this._oldClearColor,this.oldClearAlpha);renderer.autoClear=oldAutoClear}renderPass(renderer,passMaterial,renderTarget,clearColor,clearAlpha){renderer.getClearColor(this.originalClearColor);const originalClearAlpha=renderer.getClearAlpha();const originalAutoClear=renderer.autoClear;renderer.setRenderTarget(renderTarget);renderer.autoClear=false;if(clearColor!==undefined&&clearColor!==null){renderer.setClearColor(clearColor);renderer.setClearAlpha(clearAlpha||0);renderer.clear()}this.fsQuad.material=passMaterial;this.fsQuad.render(renderer);renderer.autoClear=originalAutoClear;renderer.setClearColor(this.originalClearColor);renderer.setClearAlpha(originalClearAlpha)}renderOverride(renderer,overrideMaterial,renderTarget,clearColor,clearAlpha){renderer.getClearColor(this.originalClearColor);const originalClearAlpha=renderer.getClearAlpha();const originalAutoClear=renderer.autoClear;renderer.setRenderTarget(renderTarget);renderer.autoClear=false;clearColor=overrideMaterial.clearColor||clearColor;clearAlpha=overrideMaterial.clearAlpha||clearAlpha;if(clearColor!==undefined&&clearColor!==null){renderer.setClearColor(clearColor);renderer.setClearAlpha(clearAlpha||0);renderer.clear()}this.scene.overrideMaterial=overrideMaterial;renderer.render(this.scene,this.camera);this.scene.overrideMaterial=null;renderer.autoClear=originalAutoClear;renderer.setClearColor(this.originalClearColor);renderer.setClearAlpha(originalClearAlpha)}setSize(width,height){this.beautyRenderTarget.setSize(width,height);this.saoRenderTarget.setSize(width,height);this.blurIntermediateRenderTarget.setSize(width,height);this.normalRenderTarget.setSize(width,height);this.depthRenderTarget.setSize(width,height);this.saoMaterial.uniforms["size"].value.set(width,height);this.saoMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse);this.saoMaterial.uniforms["cameraProjectionMatrix"].value=this.camera.projectionMatrix;this.saoMaterial.needsUpdate=true;this.vBlurMaterial.uniforms["size"].value.set(width,height);this.vBlurMaterial.needsUpdate=true;this.hBlurMaterial.uniforms["size"].value.set(width,height);this.hBlurMaterial.needsUpdate=true}}SAOPass.OUTPUT={"Beauty":1,"Default":0,"SAO":2,"Depth":3,"Normal":4};THREE.SAOPass=SAOPass})();(function(){const SAOShader={defines:{"NUM_SAMPLES":7,"NUM_RINGS":4,"NORMAL_TEXTURE":0,"DIFFUSE_TEXTURE":0,"DEPTH_PACKING":1,"PERSPECTIVE_CAMERA":1},uniforms:{"tDepth":{value:null},"tDiffuse":{value:null},"tNormal":{value:null},"size":{value:new THREE.Vector2(512,512)},"cameraNear":{value:1},"cameraFar":{value:100},"cameraProjectionMatrix":{value:new THREE.Matrix4},"cameraInverseProjectionMatrix":{value:new THREE.Matrix4},"scale":{value:1},"intensity":{value:0.1},"bias":{value:0.5},"minResolution":{value:0},"kernelRadius":{value:100},"randomSeed":{value:0}},vertexShader:`

		varying vec2 vUv;

		void main() {
			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
		}`,fragmentShader:`

		#include <common>

		varying vec2 vUv;

		#if DIFFUSE_TEXTURE == 1
		uniform sampler2D tDiffuse;
		#endif

		uniform sampler2D tDepth;

		#if NORMAL_TEXTURE == 1
		uniform sampler2D tNormal;
		#endif

		uniform float cameraNear;
		uniform float cameraFar;
		uniform mat4 cameraProjectionMatrix;
		uniform mat4 cameraInverseProjectionMatrix;

		uniform float scale;
		uniform float intensity;
		uniform float bias;
		uniform float kernelRadius;
		uniform float minResolution;
		uniform vec2 size;
		uniform float randomSeed;

		// RGBA depth

		#include <packing>

		vec4 getDefaultColor( const in vec2 screenPosition ) {
			#if DIFFUSE_TEXTURE == 1
			return texture2D( tDiffuse, vUv );
			#else
			return vec4( 1.0 );
			#endif
		}

		float getDepth( const in vec2 screenPosition ) {
			#if DEPTH_PACKING == 1
			return unpackRGBAToDepth( texture2D( tDepth, screenPosition ) );
			#else
			return texture2D( tDepth, screenPosition ).x;
			#endif
		}

		float getViewZ( const in float depth ) {
			#if PERSPECTIVE_CAMERA == 1
			return perspectiveDepthToViewZ( depth, cameraNear, cameraFar );
			#else
			return orthographicDepthToViewZ( depth, cameraNear, cameraFar );
			#endif
		}

		vec3 getViewPosition( const in vec2 screenPosition, const in float depth, const in float viewZ ) {
			float clipW = cameraProjectionMatrix[2][3] * viewZ + cameraProjectionMatrix[3][3];
			vec4 clipPosition = vec4( ( vec3( screenPosition, depth ) - 0.5 ) * 2.0, 1.0 );
			clipPosition *= clipW; // unprojection.

			return ( cameraInverseProjectionMatrix * clipPosition ).xyz;
		}

		vec3 getViewNormal( const in vec3 viewPosition, const in vec2 screenPosition ) {
			#if NORMAL_TEXTURE == 1
			return unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz );
			#else
			return normalize( cross( dFdx( viewPosition ), dFdy( viewPosition ) ) );
			#endif
		}

		float scaleDividedByCameraFar;
		float minResolutionMultipliedByCameraFar;

		float getOcclusion( const in vec3 centerViewPosition, const in vec3 centerViewNormal, const in vec3 sampleViewPosition ) {
			vec3 viewDelta = sampleViewPosition - centerViewPosition;
			float viewDistance = length( viewDelta );
			float scaledScreenDistance = scaleDividedByCameraFar * viewDistance;

			return max(0.0, (dot(centerViewNormal, viewDelta) - minResolutionMultipliedByCameraFar) / scaledScreenDistance - bias) / (1.0 + pow2( scaledScreenDistance ) );
		}

		// moving costly divides into consts
		const float ANGLE_STEP = PI2 * float( NUM_RINGS ) / float( NUM_SAMPLES );
		const float INV_NUM_SAMPLES = 1.0 / float( NUM_SAMPLES );

		float getAmbientOcclusion( const in vec3 centerViewPosition ) {
			// precompute some variables require in getOcclusion.
			scaleDividedByCameraFar = scale / cameraFar;
			minResolutionMultipliedByCameraFar = minResolution * cameraFar;
			vec3 centerViewNormal = getViewNormal( centerViewPosition, vUv );

			// jsfiddle that shows sample pattern: https://jsfiddle.net/a16ff1p7/
			float angle = rand( vUv + randomSeed ) * PI2;
			vec2 radius = vec2( kernelRadius * INV_NUM_SAMPLES ) / size;
			vec2 radiusStep = radius;

			float occlusionSum = 0.0;
			float weightSum = 0.0;

			for( int i = 0; i < NUM_SAMPLES; i ++ ) {
				vec2 sampleUv = vUv + vec2( cos( angle ), sin( angle ) ) * radius;
				radius += radiusStep;
				angle += ANGLE_STEP;

				float sampleDepth = getDepth( sampleUv );
				if( sampleDepth >= ( 1.0 - EPSILON ) ) {
					continue;
				}

				float sampleViewZ = getViewZ( sampleDepth );
				vec3 sampleViewPosition = getViewPosition( sampleUv, sampleDepth, sampleViewZ );
				occlusionSum += getOcclusion( centerViewPosition, centerViewNormal, sampleViewPosition );
				weightSum += 1.0;
			}

			if( weightSum == 0.0 ) discard;

			return occlusionSum * ( intensity / weightSum );
		}

		void main() {
			float centerDepth = getDepth( vUv );
			if( centerDepth >= ( 1.0 - EPSILON ) ) {
				discard;
			}

			float centerViewZ = getViewZ( centerDepth );
			vec3 viewPosition = getViewPosition( vUv, centerDepth, centerViewZ );

			float ambientOcclusion = getAmbientOcclusion( viewPosition );

			gl_FragColor = getDefaultColor( vUv );
			gl_FragColor.xyz *=  1.0 - ambientOcclusion;
		}`};THREE.SAOShader=SAOShader})();(function(){class SavePass extends THREE.Pass{constructor(renderTarget){super();if(THREE.CopyShader===undefined)console.error("THREE.SavePass relies on THREE.CopyShader");const shader=THREE.CopyShader;this.textureID="tDiffuse";this.uniforms=THREE.UniformsUtils.clone(shader.uniforms);this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader});this.renderTarget=renderTarget;if(this.renderTarget===undefined){this.renderTarget=new THREE.WebGLRenderTarget(window.innerWidth,window.innerHeight);this.renderTarget.texture.name="SavePass.rt"}this.needsSwap=false;this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer){if(this.uniforms[this.textureID]){this.uniforms[this.textureID].value=readBuffer.texture}renderer.setRenderTarget(this.renderTarget);if(this.clear)renderer.clear();this.fsQuad.render(renderer)}}THREE.SavePass=SavePass})();(function(){class ShaderPass extends THREE.Pass{constructor(shader,textureID){super();this.textureID=textureID!==undefined?textureID:"tDiffuse";if(shader instanceof THREE.ShaderMaterial){this.uniforms=shader.uniforms;this.material=shader}else if(shader){this.uniforms=THREE.UniformsUtils.clone(shader.uniforms);this.material=new THREE.ShaderMaterial({defines:Object.assign({},shader.defines),uniforms:this.uniforms,vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader})}this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer){if(this.uniforms[this.textureID]){this.uniforms[this.textureID].value=readBuffer.texture}this.fsQuad.material=this.material;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);this.fsQuad.render(renderer)}}}THREE.ShaderPass=ShaderPass})();(function(){class SMAAPass extends THREE.Pass{constructor(width,height){super();this.edgesRT=new THREE.WebGLRenderTarget(width,height,{depthBuffer:false});this.edgesRT.texture.name="SMAAPass.edges";this.weightsRT=new THREE.WebGLRenderTarget(width,height,{depthBuffer:false});this.weightsRT.texture.name="SMAAPass.weights";const scope=this;const areaTextureImage=new Image;areaTextureImage.src=this.getAreaTexture();areaTextureImage.onload=function(){scope.areaTexture.needsUpdate=true};this.areaTexture=new THREE.Texture;this.areaTexture.name="SMAAPass.area";this.areaTexture.image=areaTextureImage;this.areaTexture.minFilter=THREE.LinearFilter;this.areaTexture.generateMipmaps=false;this.areaTexture.flipY=false;const searchTextureImage=new Image;searchTextureImage.src=this.getSearchTexture();searchTextureImage.onload=function(){scope.searchTexture.needsUpdate=true};this.searchTexture=new THREE.Texture;this.searchTexture.name="SMAAPass.search";this.searchTexture.image=searchTextureImage;this.searchTexture.magFilter=THREE.NearestFilter;this.searchTexture.minFilter=THREE.NearestFilter;this.searchTexture.generateMipmaps=false;this.searchTexture.flipY=false;if(THREE.SMAAEdgesShader===undefined){console.error("THREE.SMAAPass relies on SMAAShader")}this.uniformsEdges=THREE.UniformsUtils.clone(THREE.SMAAEdgesShader.uniforms);this.uniformsEdges["resolution"].value.set(1/width,1/height);this.materialEdges=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SMAAEdgesShader.defines),uniforms:this.uniformsEdges,vertexShader:THREE.SMAAEdgesShader.vertexShader,fragmentShader:THREE.SMAAEdgesShader.fragmentShader});this.uniformsWeights=THREE.UniformsUtils.clone(THREE.SMAAWeightsShader.uniforms);this.uniformsWeights["resolution"].value.set(1/width,1/height);this.uniformsWeights["tDiffuse"].value=this.edgesRT.texture;this.uniformsWeights["tArea"].value=this.areaTexture;this.uniformsWeights["tSearch"].value=this.searchTexture;this.materialWeights=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SMAAWeightsShader.defines),uniforms:this.uniformsWeights,vertexShader:THREE.SMAAWeightsShader.vertexShader,fragmentShader:THREE.SMAAWeightsShader.fragmentShader});this.uniformsBlend=THREE.UniformsUtils.clone(THREE.SMAABlendShader.uniforms);this.uniformsBlend["resolution"].value.set(1/width,1/height);this.uniformsBlend["tDiffuse"].value=this.weightsRT.texture;this.materialBlend=new THREE.ShaderMaterial({uniforms:this.uniformsBlend,vertexShader:THREE.SMAABlendShader.vertexShader,fragmentShader:THREE.SMAABlendShader.fragmentShader});this.needsSwap=false;this.fsQuad=new THREE.FullScreenQuad(null)}render(renderer,writeBuffer,readBuffer){this.uniformsEdges["tDiffuse"].value=readBuffer.texture;this.fsQuad.material=this.materialEdges;renderer.setRenderTarget(this.edgesRT);if(this.clear)renderer.clear();this.fsQuad.render(renderer);this.fsQuad.material=this.materialWeights;renderer.setRenderTarget(this.weightsRT);if(this.clear)renderer.clear();this.fsQuad.render(renderer);this.uniformsBlend["tColor"].value=readBuffer.texture;this.fsQuad.material=this.materialBlend;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear();this.fsQuad.render(renderer)}}setSize(width,height){this.edgesRT.setSize(width,height);this.weightsRT.setSize(width,height);this.materialEdges.uniforms["resolution"].value.set(1/width,1/height);this.materialWeights.uniforms["resolution"].value.set(1/width,1/height);this.materialBlend.uniforms["resolution"].value.set(1/width,1/height)}getAreaTexture(){return"data:image/png;base64, "}getSearchTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII="}}THREE.SMAAPass=SMAAPass})();(function(){const SMAAEdgesShader={defines:{"SMAA_THRESHOLD":"0.1"},uniforms:{"tDiffuse":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:`

		uniform vec2 resolution;

		varying vec2 vUv;
		varying vec4 vOffset[ 3 ];

		void SMAAEdgeDetectionVS( vec2 texcoord ) {
			vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0,  1.0 ); // WebGL port note: Changed sign in W component
			vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4(  1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component
			vOffset[ 2 ] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0,  2.0 ); // WebGL port note: Changed sign in W component
		}

		void main() {

			vUv = uv;

			SMAAEdgeDetectionVS( vUv );

			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform sampler2D tDiffuse;

		varying vec2 vUv;
		varying vec4 vOffset[ 3 ];

		vec4 SMAAColorEdgeDetectionPS( vec2 texcoord, vec4 offset[3], sampler2D colorTex ) {
			vec2 threshold = vec2( SMAA_THRESHOLD, SMAA_THRESHOLD );

			// Calculate color deltas:
			vec4 delta;
			vec3 C = texture2D( colorTex, texcoord ).rgb;

			vec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb;
			vec3 t = abs( C - Cleft );
			delta.x = max( max( t.r, t.g ), t.b );

			vec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb;
			t = abs( C - Ctop );
			delta.y = max( max( t.r, t.g ), t.b );

			// We do the usual threshold:
			vec2 edges = step( threshold, delta.xy );

			// Then discard if there is no edge:
			if ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 )
				discard;

			// Calculate right and bottom deltas:
			vec3 Cright = texture2D( colorTex, offset[1].xy ).rgb;
			t = abs( C - Cright );
			delta.z = max( max( t.r, t.g ), t.b );

			vec3 Cbottom  = texture2D( colorTex, offset[1].zw ).rgb;
			t = abs( C - Cbottom );
			delta.w = max( max( t.r, t.g ), t.b );

			// Calculate the maximum delta in the direct neighborhood:
			float maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w );

			// Calculate left-left and top-top deltas:
			vec3 Cleftleft  = texture2D( colorTex, offset[2].xy ).rgb;
			t = abs( C - Cleftleft );
			delta.z = max( max( t.r, t.g ), t.b );

			vec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb;
			t = abs( C - Ctoptop );
			delta.w = max( max( t.r, t.g ), t.b );

			// Calculate the final maximum delta:
			maxDelta = max( max( maxDelta, delta.z ), delta.w );

			// Local contrast adaptation in action:
			edges.xy *= step( 0.5 * maxDelta, delta.xy );

			return vec4( edges, 0.0, 0.0 );
		}

		void main() {

			gl_FragColor = SMAAColorEdgeDetectionPS( vUv, vOffset, tDiffuse );

		}`};const SMAAWeightsShader={defines:{"SMAA_MAX_SEARCH_STEPS":"8","SMAA_AREATEX_MAX_DISTANCE":"16","SMAA_AREATEX_PIXEL_SIZE":"( 1.0 / vec2( 160.0, 560.0 ) )","SMAA_AREATEX_SUBTEX_SIZE":"( 1.0 / 7.0 )"},uniforms:{"tDiffuse":{value:null},"tArea":{value:null},"tSearch":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:`

		uniform vec2 resolution;

		varying vec2 vUv;
		varying vec4 vOffset[ 3 ];
		varying vec2 vPixcoord;

		void SMAABlendingWeightCalculationVS( vec2 texcoord ) {
			vPixcoord = texcoord / resolution;

			// We will use these offsets for the searches later on (see @PSEUDO_GATHER4):
			vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 ); // WebGL port note: Changed sign in Y and W components
			vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 ); // WebGL port note: Changed sign in Y and W components

			// And these for the searches, they indicate the ends of the loops:
			vOffset[ 2 ] = vec4( vOffset[ 0 ].xz, vOffset[ 1 ].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( SMAA_MAX_SEARCH_STEPS );

		}

		void main() {

			vUv = uv;

			SMAABlendingWeightCalculationVS( vUv );

			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		#define SMAASampleLevelZeroOffset( tex, coord, offset ) texture2D( tex, coord + float( offset ) * resolution, 0.0 )

		uniform sampler2D tDiffuse;
		uniform sampler2D tArea;
		uniform sampler2D tSearch;
		uniform vec2 resolution;

		varying vec2 vUv;
		varying vec4 vOffset[3];
		varying vec2 vPixcoord;

		#if __VERSION__ == 100
		vec2 round( vec2 x ) {
			return sign( x ) * floor( abs( x ) + 0.5 );
		}
		#endif

		float SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) {
			// Not required if searchTex accesses are set to point:
			// float2 SEARCH_TEX_PIXEL_SIZE = 1.0 / float2(66.0, 33.0);
			// e = float2(bias, 0.0) + 0.5 * SEARCH_TEX_PIXEL_SIZE +
			//     e * float2(scale, 1.0) * float2(64.0, 32.0) * SEARCH_TEX_PIXEL_SIZE;
			e.r = bias + e.r * scale;
			return 255.0 * texture2D( searchTex, e, 0.0 ).r;
		}

		float SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {
			/**
				* @PSEUDO_GATHER4
				* This texcoord has been offset by (-0.25, -0.125) in the vertex shader to
				* sample between edge, thus fetching four edges in a row.
				* Sampling with different offsets in each direction allows to disambiguate
				* which edges are active from the four fetched ones.
				*/
			vec2 e = vec2( 0.0, 1.0 );

			for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for
				e = texture2D( edgesTex, texcoord, 0.0 ).rg;
				texcoord -= vec2( 2.0, 0.0 ) * resolution;
				if ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break;
			}

			// We correct the previous (-0.25, -0.125) offset we applied:
			texcoord.x += 0.25 * resolution.x;

			// The searches are bias by 1, so adjust the coords accordingly:
			texcoord.x += resolution.x;

			// Disambiguate the length added by the last step:
			texcoord.x += 2.0 * resolution.x; // Undo last step
			texcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5);

			return texcoord.x;
		}

		float SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {
			vec2 e = vec2( 0.0, 1.0 );

			for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for
				e = texture2D( edgesTex, texcoord, 0.0 ).rg;
				texcoord += vec2( 2.0, 0.0 ) * resolution;
				if ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break;
			}

			texcoord.x -= 0.25 * resolution.x;
			texcoord.x -= resolution.x;
			texcoord.x -= 2.0 * resolution.x;
			texcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 );

			return texcoord.x;
		}

		float SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {
			vec2 e = vec2( 1.0, 0.0 );

			for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for
				e = texture2D( edgesTex, texcoord, 0.0 ).rg;
				texcoord += vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign
				if ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break;
			}

			texcoord.y -= 0.25 * resolution.y; // WebGL port note: Changed sign
			texcoord.y -= resolution.y; // WebGL port note: Changed sign
			texcoord.y -= 2.0 * resolution.y; // WebGL port note: Changed sign
			texcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 ); // WebGL port note: Changed sign

			return texcoord.y;
		}

		float SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {
			vec2 e = vec2( 1.0, 0.0 );

			for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for
				e = texture2D( edgesTex, texcoord, 0.0 ).rg;
				texcoord -= vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign
				if ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break;
			}

			texcoord.y += 0.25 * resolution.y; // WebGL port note: Changed sign
			texcoord.y += resolution.y; // WebGL port note: Changed sign
			texcoord.y += 2.0 * resolution.y; // WebGL port note: Changed sign
			texcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 ); // WebGL port note: Changed sign

			return texcoord.y;
		}

		vec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) {
			// Rounding prevents precision errors of bilinear filtering:
			vec2 texcoord = float( SMAA_AREATEX_MAX_DISTANCE ) * round( 4.0 * vec2( e1, e2 ) ) + dist;

			// We do a scale and bias for mapping to texel space:
			texcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE );

			// Move to proper place, according to the subpixel offset:
			texcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;

			return texture2D( areaTex, texcoord, 0.0 ).rg;
		}

		vec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) {
			vec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 );

			vec2 e = texture2D( edgesTex, texcoord ).rg;

			if ( e.g > 0.0 ) { // Edge at north
				vec2 d;

				// Find the distance to the left:
				vec2 coords;
				coords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x );
				coords.y = offset[ 1 ].y; // offset[1].y = texcoord.y - 0.25 * resolution.y (@CROSSING_OFFSET)
				d.x = coords.x;

				// Now fetch the left crossing edges, two at a time using bilinear
				// filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to
				// discern what value each edge has:
				float e1 = texture2D( edgesTex, coords, 0.0 ).r;

				// Find the distance to the right:
				coords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y );
				d.y = coords.x;

				// We want the distances to be in pixel units (doing this here allow to
				// better interleave arithmetic and memory accesses):
				d = d / resolution.x - pixcoord.x;

				// SMAAArea below needs a sqrt, as the areas texture is compressed
				// quadratically:
				vec2 sqrt_d = sqrt( abs( d ) );

				// Fetch the right crossing edges:
				coords.y -= 1.0 * resolution.y; // WebGL port note: Added
				float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 1, 0 ) ).r;

				// Ok, we know how this pattern looks like, now it is time for getting
				// the actual area:
				weights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) );
			}

			if ( e.r > 0.0 ) { // Edge at west
				vec2 d;

				// Find the distance to the top:
				vec2 coords;

				coords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z );
				coords.x = offset[ 0 ].x; // offset[1].x = texcoord.x - 0.25 * resolution.x;
				d.x = coords.y;

				// Fetch the top crossing edges:
				float e1 = texture2D( edgesTex, coords, 0.0 ).g;

				// Find the distance to the bottom:
				coords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w );
				d.y = coords.y;

				// We want the distances to be in pixel units:
				d = d / resolution.y - pixcoord.y;

				// SMAAArea below needs a sqrt, as the areas texture is compressed
				// quadratically:
				vec2 sqrt_d = sqrt( abs( d ) );

				// Fetch the bottom crossing edges:
				coords.y -= 1.0 * resolution.y; // WebGL port note: Added
				float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 0, 1 ) ).g;

				// Get the area for this direction:
				weights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) );
			}

			return weights;
		}

		void main() {

			gl_FragColor = SMAABlendingWeightCalculationPS( vUv, vPixcoord, vOffset, tDiffuse, tArea, tSearch, ivec4( 0.0 ) );

		}`};const SMAABlendShader={uniforms:{"tDiffuse":{value:null},"tColor":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:`

		uniform vec2 resolution;

		varying vec2 vUv;
		varying vec4 vOffset[ 2 ];

		void SMAANeighborhoodBlendingVS( vec2 texcoord ) {
			vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); // WebGL port note: Changed sign in W component
			vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component
		}

		void main() {

			vUv = uv;

			SMAANeighborhoodBlendingVS( vUv );

			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform sampler2D tDiffuse;
		uniform sampler2D tColor;
		uniform vec2 resolution;

		varying vec2 vUv;
		varying vec4 vOffset[ 2 ];

		vec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) {
			// Fetch the blending weights for current pixel:
			vec4 a;
			a.xz = texture2D( blendTex, texcoord ).xz;
			a.y = texture2D( blendTex, offset[ 1 ].zw ).g;
			a.w = texture2D( blendTex, offset[ 1 ].xy ).a;

			// Is there any blending weight with a value greater than 0.0?
			if ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) {
				return texture2D( colorTex, texcoord, 0.0 );
			} else {
				// Up to 4 lines can be crossing a pixel (one through each edge). We
				// favor blending by choosing the line with the maximum weight for each
				// direction:
				vec2 offset;
				offset.x = a.a > a.b ? a.a : -a.b; // left vs. right
				offset.y = a.g > a.r ? -a.g : a.r; // top vs. bottom // WebGL port note: Changed signs

				// Then we go in the direction that has the maximum weight:
				if ( abs( offset.x ) > abs( offset.y )) { // horizontal vs. vertical
					offset.y = 0.0;
				} else {
					offset.x = 0.0;
				}

				// Fetch the opposite color and lerp by hand:
				vec4 C = texture2D( colorTex, texcoord, 0.0 );
				texcoord += sign( offset ) * resolution;
				vec4 Cop = texture2D( colorTex, texcoord, 0.0 );
				float s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y );

				// WebGL port note: Added gamma correction
				C.xyz = pow(C.xyz, vec3(2.2));
				Cop.xyz = pow(Cop.xyz, vec3(2.2));
				vec4 mixed = mix(C, Cop, s);
				mixed.xyz = pow(mixed.xyz, vec3(1.0 / 2.2));

				return mixed;
			}
		}

		void main() {

			gl_FragColor = SMAANeighborhoodBlendingPS( vUv, vOffset, tColor, tDiffuse );

		}`};THREE.SMAABlendShader=SMAABlendShader;THREE.SMAAEdgesShader=SMAAEdgesShader;THREE.SMAAWeightsShader=SMAAWeightsShader})();(function(){class SSAARenderPass extends THREE.Pass{constructor(scene,camera,clearColor,clearAlpha){super();this.scene=scene;this.camera=camera;this.sampleLevel=4;this.unbiased=true;this.clearColor=clearColor!==undefined?clearColor:0;this.clearAlpha=clearAlpha!==undefined?clearAlpha:0;this._oldClearColor=new THREE.Color;if(THREE.CopyShader===undefined)console.error("THREE.SSAARenderPass relies on THREE.CopyShader");const copyShader=THREE.CopyShader;this.copyUniforms=THREE.UniformsUtils.clone(copyShader.uniforms);this.copyMaterial=new THREE.ShaderMaterial({uniforms:this.copyUniforms,vertexShader:copyShader.vertexShader,fragmentShader:copyShader.fragmentShader,transparent:true,blending:THREE.AdditiveBlending,depthTest:false,depthWrite:false});this.fsQuad=new THREE.FullScreenQuad(this.copyMaterial)}dispose(){if(this.sampleRenderTarget){this.sampleRenderTarget.dispose();this.sampleRenderTarget=null}}setSize(width,height){if(this.sampleRenderTarget)this.sampleRenderTarget.setSize(width,height)}render(renderer,writeBuffer,readBuffer){if(!this.sampleRenderTarget){this.sampleRenderTarget=new THREE.WebGLRenderTarget(readBuffer.width,readBuffer.height);this.sampleRenderTarget.texture.name="SSAARenderPass.sample"}const jitterOffsets=_JitterVectors[Math.max(0,Math.min(this.sampleLevel,5))];const autoClear=renderer.autoClear;renderer.autoClear=false;renderer.getClearColor(this._oldClearColor);const oldClearAlpha=renderer.getClearAlpha();const baseSampleWeight=1/jitterOffsets.length;const roundingRange=1/32;this.copyUniforms["tDiffuse"].value=this.sampleRenderTarget.texture;const viewOffset={fullWidth:readBuffer.width,fullHeight:readBuffer.height,offsetX:0,offsetY:0,width:readBuffer.width,height:readBuffer.height};const originalViewOffset=Object.assign({},this.camera.view);if(originalViewOffset.enabled)Object.assign(viewOffset,originalViewOffset);for(let i=0;i<jitterOffsets.length;i++){const jitterOffset=jitterOffsets[i];if(this.camera.setViewOffset){this.camera.setViewOffset(viewOffset.fullWidth,viewOffset.fullHeight,viewOffset.offsetX+jitterOffset[0]*0.0625,viewOffset.offsetY+jitterOffset[1]*0.0625,viewOffset.width,viewOffset.height)}let sampleWeight=baseSampleWeight;if(this.unbiased){const uniformCenteredDistribution=-0.5+(i+0.5)/jitterOffsets.length;sampleWeight+=roundingRange*uniformCenteredDistribution}this.copyUniforms["opacity"].value=sampleWeight;renderer.setClearColor(this.clearColor,this.clearAlpha);renderer.setRenderTarget(this.sampleRenderTarget);renderer.clear();renderer.render(this.scene,this.camera);renderer.setRenderTarget(this.renderToScreen?null:writeBuffer);if(i===0){renderer.setClearColor(0,0);renderer.clear()}this.fsQuad.render(renderer)}if(this.camera.setViewOffset&&originalViewOffset.enabled){this.camera.setViewOffset(originalViewOffset.fullWidth,originalViewOffset.fullHeight,originalViewOffset.offsetX,originalViewOffset.offsetY,originalViewOffset.width,originalViewOffset.height)}else if(this.camera.clearViewOffset){this.camera.clearViewOffset()}renderer.autoClear=autoClear;renderer.setClearColor(this._oldClearColor,oldClearAlpha)}}const _JitterVectors=[[[0,0]],[[4,4],[-4,-4]],[[-2,-6],[6,-2],[-6,2],[2,6]],[[1,-3],[-1,3],[5,1],[-3,-5],[-5,5],[-7,-1],[3,7],[7,-7]],[[1,1],[-1,-3],[-3,2],[4,-1],[-5,-2],[2,5],[5,3],[3,-5],[-2,6],[0,-7],[-4,-6],[-6,4],[-8,0],[7,-4],[6,7],[-7,-8]],[[-4,-7],[-7,-5],[-3,-5],[-5,-4],[-1,-4],[-2,-2],[-6,-1],[-4,0],[-7,1],[-1,2],[-6,3],[-3,3],[-7,6],[-3,6],[-5,7],[-1,7],[5,-7],[1,-6],[6,-5],[4,-4],[2,-3],[7,-2],[1,-1],[4,-1],[2,1],[6,2],[0,4],[4,4],[2,5],[7,5],[5,6],[3,7]]];THREE.SSAARenderPass=SSAARenderPass})();(function(){const UnpackDepthRGBAShader={uniforms:{"tDiffuse":{value:null},"opacity":{value:1}},vertexShader:`

		varying vec2 vUv;

		void main() {

			vUv = uv;
			gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

		}`,fragmentShader:`

		uniform float opacity;

		uniform sampler2D tDiffuse;

		varying vec2 vUv;

		#include <packing>

		void main() {

			float depth = 1.0 - unpackRGBAToDepth( texture2D( tDiffuse, vUv ) );
			gl_FragColor = vec4( vec3( depth ), opacity );

		}`};THREE.UnpackDepthRGBAShader=UnpackDepthRGBAShader})();

})();