!function(e){function t(e,t,r){return 4===arguments.length?i.apply(this,arguments):void n(e,{declarative:!0,deps:t,declare:r})}function i(e,t,i,r){n(e,{declarative:!1,deps:t,executingRequire:i,execute:r})}function n(e,t){t.name=e,e in p||(p[e]=t),t.normalizedDeps=t.deps}function r(e,t){if(t[e.groupIndex]=t[e.groupIndex]||[],-1==g.call(t[e.groupIndex],e)){t[e.groupIndex].push(e);for(var i=0,n=e.normalizedDeps.length;n>i;i++){var o=e.normalizedDeps[i],s=p[o];if(s&&!s.evaluated){var a=e.groupIndex+(s.declarative!=e.declarative);if(void 0===s.groupIndex||s.groupIndex=0;o--){for(var s=i[o],u=0;uo;o++){var a=i.importers[o];if(!a.locked)for(var u=0;uo;o++){var c,l=t.normalizedDeps[o],h=p[l],d=A[l];d?c=d.exports:h&&!h.declarative?c=h.esModule:h?(a(h),d=h.module,c=d.exports):c=f(l),d&&d.importers?(d.importers.push(i),i.dependencies.push(d)):i.dependencies.push(null),i.setters[o]&&i.setters[o](c)}}}function u(e){var t,i=p[e];if(i)i.declarative?d(e,[]):i.evaluated||c(i),t=i.module.exports;else if(!(t=f(e)))throw new Error("Unable to load dependency "+e+".");return(!i||i.declarative)&&t&&t.__useDefault?t.default:t}function c(t){if(!t.module){var i={},n=t.module={exports:i,id:t.name};if(!t.executingRequire)for(var r=0,o=t.normalizedDeps.length;o>r;r++){var s=t.normalizedDeps[r],a=p[s];a&&c(a)}t.evaluated=!0;var h=t.execute.call(e,function(e){for(var i=0,n=t.deps.length;n>i;i++)if(t.deps[i]==e)return u(t.normalizedDeps[i]);throw new TypeError("Module "+e+" not declared as a dependency.")},i,n);void 0!==typeof h&&(n.exports=h),(i=n.exports)&&i.__esModule?t.esModule=i:t.esModule=l(i)}}function l(t){var i={};if(("object"==typeof t||"function"==typeof t)&&t!==e)if(M)for(var n in t)"default"!==n&&h(i,t,n);else{var r=t&&t.hasOwnProperty;for(var n in t)"default"===n||r&&!t.hasOwnProperty(n)||(i[n]=t[n])}return i.default=t,y(i,"__useDefault",{value:!0}),i}function h(e,t,i){try{var n;(n=Object.getOwnPropertyDescriptor(t,i))&&y(e,i,n)}catch(n){return e[i]=t[i],!1}}function d(t,i){var n=p[t];if(n&&!n.evaluated&&n.declarative){i.push(t);for(var r=0,o=n.normalizedDeps.length;o>r;r++){var s=n.normalizedDeps[r];-1==g.call(i,s)&&(p[s]?d(s,i):f(s))}n.evaluated||(n.evaluated=!0,n.module.execute.call(e))}}function f(e){if(E[e])return E[e];if("@node/"==e.substr(0,6))return E[e]=l(w(e.substr(6)));var t=p[e];if(!t)throw"Module "+e+" not present.";return o(e),d(e,[]),p[e]=void 0,t.declarative&&y(t.module.exports,"__esModule",{value:!0}),E[e]=t.declarative?t.module.exports:t.esModule}var p={},g=Array.prototype.indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]===e)return t;return-1},M=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(e){M=!1}var y;!function(){try{Object.defineProperty({},"a",{})&&(y=Object.defineProperty)}catch(e){y=function(e,t,i){try{e[t]=i.value||i.get.call(e)}catch(e){}}}}();var A={},w="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,E={"@empty":{}};return function(e,n,r,o){return function(s){s(function(s){for(var a={_nodeRequire:w,register:t,registerDynamic:i,get:f,set:function(e,t){E[e]=t},newModule:function(e){return e}},u=0;u1)for(u=1;ut;t++)if(this[t]===e)return t;return-1},a=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,u="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",c="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",l=/\(([^\)]*)\)/,h=/^\s+|\s+$/g,d={};r.amd={};var f={isBundle:!1,anonDefine:null};o.amdDefine=r,o.amdRequire=n}("undefined"!=typeof self?self:global),function(){(0,e.amdDefine)("2",["exports","3"],function(e,t){"use strict";Number.isNaN=Number.isNaN||function(e){return e!==e},Number.isFinite=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var i=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>i.length)&&(t=i.length),t-=e.length;var n=i.indexOf(e,t);return-1!==n&&n===t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Array.from||(Array.from=function(){var e=Object.prototype.toString,t=function(t){return"function"==typeof t||"[object Function]"===e.call(t)},i=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t},n=Math.pow(2,53)-1,r=function(e){var t=i(e);return Math.min(Math.max(t,0),n)};return function(e){var i=this,n=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var o,s=arguments.length>1?arguments[1]:void 0;if(void 0!==s){if(!t(s))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var a,u=r(n.length),c=t(i)?Object(new i(u)):new Array(u),l=0;l>>0,r=arguments[1],o=0;o>>0,r=arguments[1],o=0;o=0?n=r:(n=i+r)<0&&(n=0);for(var o;n=n+Math.PI;)i-=u;for(;i0||e}}}),y.prototype.isMoving=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i);return!this._update[n]},y.prototype.getMovement=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i);return this._movement[n]},y.prototype.getLastMovement=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i),o=this._lastMovement[n];if(o.valid)return o},y.prototype.isButtonDown=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i);return this._isDown[n]},y.prototype.getStartMousePosition=function(e,i){if(!t(e))throw new r("type is required.");if(e===c.WHEEL)return this._currentMousePosition;var n=l(e,i);return this._eventStartPosition[n]},y.prototype.getButtonPressTime=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i);return this._pressTime[n]},y.prototype.getButtonReleaseTime=function(e,i){if(!t(e))throw new r("type is required.");var n=l(e,i);return this._releaseTime[n]},y.prototype.reset=function(){for(var e in this._update)this._update.hasOwnProperty(e)&&(this._update[e]=!0)},y.prototype.isDestroyed=function(){return!1},y.prototype.destroy=function(){return this._eventHandler=this._eventHandler&&this._eventHandler.destroy(),n(this)},y}),(0,e.amdDefine)("10",["11"],function(e){"use strict";return e({LEFT_DRAG:0,RIGHT_DRAG:1,MIDDLE_DRAG:2,WHEEL:3,PINCH:4})}),(0,e.amdDefine)("12",["11"],function(e){"use strict";return e({UNBOUNDED:0,CLAMPED:1,LOOP_STOP:2})}),(0,e.amdDefine)("13",["12","14","15","5","6","7","8","16","17"],function(e,t,i,n,r,o,s,a,u){"use strict";function c(r){var c=(r=i(r,i.EMPTY_OBJECT)).currentTime,l=r.startTime,h=r.stopTime;if(c=n(c)?u.clone(c):n(l)?u.clone(l):n(h)?u.addDays(h,-1,new u):u.now(),l=n(l)?u.clone(l):u.clone(c),h=n(h)?u.clone(h):u.addDays(l,1,new u),u.greaterThan(l,h))throw new o("startTime must come before stopTime.");this.startTime=l,this.stopTime=h,this.clockRange=i(r.clockRange,e.UNBOUNDED),this.canAnimate=i(r.canAnimate,!0),this.onTick=new s,this._currentTime=void 0,this._multiplier=void 0,this._clockStep=void 0,this._shouldAnimate=void 0,this._lastSystemTime=a(),this.currentTime=c,this.multiplier=i(r.multiplier,1),this.clockStep=i(r.clockStep,t.SYSTEM_CLOCK_MULTIPLIER),this.shouldAnimate=i(r.shouldAnimate,!0)}return r(c.prototype,{currentTime:{get:function(){return this._currentTime},set:function(e){u.equals(this._currentTime,e)||(this._clockStep===t.SYSTEM_CLOCK&&(this._clockStep=t.SYSTEM_CLOCK_MULTIPLIER),this._currentTime=e)}},multiplier:{get:function(){return this._multiplier},set:function(e){this._multiplier!==e&&(this._clockStep===t.SYSTEM_CLOCK&&(this._clockStep=t.SYSTEM_CLOCK_MULTIPLIER),this._multiplier=e)}},clockStep:{get:function(){return this._clockStep},set:function(e){e===t.SYSTEM_CLOCK&&(this._multiplier=1,this._shouldAnimate=!0,this._currentTime=u.now()),this._clockStep=e}},shouldAnimate:{get:function(){return this._shouldAnimate},set:function(e){this._shouldAnimate!==e&&(this._clockStep===t.SYSTEM_CLOCK&&(this._clockStep=t.SYSTEM_CLOCK_MULTIPLIER),this._shouldAnimate=e)}}}),c.prototype.tick=function(){var i=a(),n=u.clone(this._currentTime);if(this.canAnimate&&this._shouldAnimate){var r=this._clockStep;if(r===t.SYSTEM_CLOCK)n=u.now(n);else{var o=this._multiplier;if(r===t.TICK_DEPENDENT)n=u.addSeconds(n,o,n);else{var s=i-this._lastSystemTime;n=u.addSeconds(n,o*(s/1e3),n)}var c=this.clockRange,l=this.startTime,h=this.stopTime;if(c===e.CLAMPED)u.lessThan(n,l)?n=u.clone(l,n):u.greaterThan(n,h)&&(n=u.clone(h,n));else if(c===e.LOOP_STOP)for(u.lessThan(n,l)&&(n=u.clone(l,n));u.greaterThan(n,h);)n=u.addSeconds(l,u.secondsDifference(n,h),n)}}return this._currentTime=n,this._lastSystemTime=i,this.onTick.raiseEvent(this),n},c}),(0,e.amdDefine)("14",["11"],function(e){"use strict";return e({TICK_DEPENDENT:0,SYSTEM_CLOCK_MULTIPLIER:1,SYSTEM_CLOCK:2})}),(0,e.amdDefine)("18",["19","5","6","7","d","1a","1b"],function(e,t,i,n,r,o,s){"use strict";function a(e){for(var t=e.propertyNames,i=t.length,n=0;n-1;l--)c(e,m,f,n=r[l]);for(i=M-1;i>=0;i--)for((d=g[i]).collectionChanged.addEventListener(h.prototype._onCollectionChanged,e),r=d.values,f=d.id,l=r.length-1;l>-1;l--){u(e,m,f,n=r[l]);var v=E.getById(n.id);t(v)||(v=w.getById(n.id),t(v)?a(v):(p.id=n.id,v=new o(p)),E.add(v)),v.merge(n)}e._collectionsCopy=g.slice(0),w.suspendEvents(),w.removeAll();var N=E.values;for(i=0;ithis._collections.length)throw new n("index must be less than or equal to the number of collections.")}r?this._collections.splice(i,0,e):(i=this._collections.length,this._collections.push(e)),l(this)},h.prototype.removeCollection=function(e){var t=this._collections.indexOf(e);return-1!==t&&(this._collections.splice(t,1),l(this),!0)},h.prototype.removeAllCollections=function(){this._collections.length=0,l(this)},h.prototype.containsCollection=function(e){return-1!==this._collections.indexOf(e)},h.prototype.contains=function(e){return this._composite.contains(e)},h.prototype.indexOfCollection=function(e){return this._collections.indexOf(e)},h.prototype.getCollection=function(e){if(!t(e))throw new n("index is required.","index");return this._collections[e]},h.prototype.getCollectionsLength=function(){return this._collections.length},h.prototype.raiseCollection=function(e){var t=d(this._collections,e);f(this,t,t+1)},h.prototype.lowerCollection=function(e){var t=d(this._collections,e);f(this,t,t-1)},h.prototype.raiseCollectionToTop=function(e){var t=d(this._collections,e);t!==this._collections.length-1&&(this._collections.splice(t,1),this._collections.push(e),l(this))},h.prototype.lowerCollectionToBottom=function(e){var t=d(this._collections,e);0!==t&&(this._collections.splice(t,1),this._collections.splice(0,0,e),l(this))},h.prototype.suspendEvents=function(){this._suspendCount++,this._composite.suspendEvents()},h.prototype.resumeEvents=function(){if(0===this._suspendCount)throw new n("resumeEvents can not be called before suspendEvents.");this._suspendCount--,this._shouldRecomposite&&0===this._suspendCount&&(l(this),this._shouldRecomposite=!1),this._composite.resumeEvents()},h.prototype.computeAvailability=function(){return this._composite.computeAvailability()},h.prototype.getById=function(e){return this._composite.getById(e)},h.prototype._onCollectionChanged=function(e,i,n){var r=this._collectionsCopy,s=r.length,l=this._composite;l.suspendEvents();var h,d,f,g,M=n.length,y=this._eventHash,A=e.id;for(h=0;h=0;d--)f=r[d].getById(E),t(f)&&(t(g)||a(g=l.getById(E)),g.merge(f));t(g)||l.removeById(E),g=void 0}var m=i.length;for(h=0;h=0;d--)f=r[d].getById(N),t(f)&&(t(g)||(g=l.getById(N),t(g)?a(g):(p.id=N,g=new o(p),l.add(g))),g.merge(f));g=void 0}l.resumeEvents()},h.prototype._onDefinitionChanged=function(e,i,n,r){for(var o=this._collections,s=this._composite,a=o.length,u=e.id,c=s.getById(u),l=c[i],h=!t(l),d=!0,f=a-1;f>=0;f--){var p=o[f].getById(e.id);if(t(p)){var g=p[i];if(t(g)){if(d){if(d=!1,!t(g.merge)||!t(g.clone)){l=g;break}l=g.clone(l)}l.merge(g)}}}h&&-1===c.propertyNames.indexOf(i)&&c.addProperty(i),c[i]=l},h}),(0,e.amdDefine)("1c",["11","17","1d"],function(e,t,i){"use strict";var n=e(t.fromIso8601("0000-01-01T00:00:00Z")),r=e(t.fromIso8601("9999-12-31T24:00:00Z"));return{MINIMUM_VALUE:n,MAXIMUM_VALUE:r,MAXIMUM_INTERVAL:e(new i({start:n,stop:r}))}}),(0,e.amdDefine)("1d",["15","5","6","7","11","17"],function(e,t,i,n,r,o){"use strict";function s(i){i=e(i,e.EMPTY_OBJECT),this.start=t(i.start)?o.clone(i.start):new o,this.stop=t(i.stop)?o.clone(i.stop):new o,this.data=i.data,this.isStartIncluded=e(i.isStartIncluded,!0),this.isStopIncluded=e(i.isStopIncluded,!0)}i(s.prototype,{isEmpty:{get:function(){var e=o.compare(this.stop,this.start);return e<0||0===e&&(!this.isStartIncluded||!this.isStopIncluded)}}});var a={start:void 0,stop:void 0,isStartIncluded:void 0,isStopIncluded:void 0,data:void 0};return s.fromIso8601=function(i,r){if(!t(i))throw new n("options is required.");if(!t(i.iso8601))throw new n("options.iso8601 is required.");var u=i.iso8601.split("/"),c=o.fromIso8601(u[0]),l=o.fromIso8601(u[1]),h=e(i.isStartIncluded,!0),d=e(i.isStopIncluded,!0),f=i.data;return t(r)?(r.start=c,r.stop=l,r.isStartIncluded=h,r.isStopIncluded=d,r.data=f,r):(a.start=c,a.stop=l,a.isStartIncluded=h,a.isStopIncluded=d,a.data=f,new s(a))},s.toIso8601=function(e,i){if(!t(e))throw new n("timeInterval is required.");return o.toIso8601(e.start,i)+"/"+o.toIso8601(e.stop,i)},s.clone=function(e,i){if(t(e))return t(i)?(i.start=e.start,i.stop=e.stop,i.isStartIncluded=e.isStartIncluded,i.isStopIncluded=e.isStopIncluded,i.data=e.data,i):new s(e)},s.equals=function(e,i,n){return e===i||t(e)&&t(i)&&(e.isEmpty&&i.isEmpty||e.isStartIncluded===i.isStartIncluded&&e.isStopIncluded===i.isStopIncluded&&o.equals(e.start,i.start)&&o.equals(e.stop,i.stop)&&(e.data===i.data||t(n)&&n(e.data,i.data)))},s.equalsEpsilon=function(e,i,r,s){if("number"!=typeof r)throw new n("epsilon is required and must be a number.");return e===i||t(e)&&t(i)&&(e.isEmpty&&i.isEmpty||e.isStartIncluded===i.isStartIncluded&&e.isStopIncluded===i.isStopIncluded&&o.equalsEpsilon(e.start,i.start,r)&&o.equalsEpsilon(e.stop,i.stop,r)&&(e.data===i.data||t(s)&&s(e.data,i.data)))},s.intersect=function(e,i,r,a){if(!t(e))throw new n("left is required.");if(!t(r))throw new n("result is required.");if(!t(i))return s.clone(s.EMPTY,r);var u=e.start,c=e.stop,l=i.start,h=i.stop,d=o.greaterThanOrEquals(l,u)&&o.greaterThanOrEquals(c,l),f=!d&&o.lessThanOrEquals(l,u)&&o.lessThanOrEquals(u,h);if(!d&&!f)return s.clone(s.EMPTY,r);var p=e.isStartIncluded,g=e.isStopIncluded,M=i.isStartIncluded,y=i.isStopIncluded,A=o.lessThan(c,h);return r.start=d?l:u,r.isStartIncluded=p&&M||!o.equals(l,u)&&(d&&M||f&&p),r.stop=A?c:h,r.isStopIncluded=A?g:g&&y||!o.equals(h,c)&&y,r.data=t(a)?a(e.data,i.data):e.data,r},s.contains=function(e,i){if(!t(e))throw new n("timeInterval is required.");if(!t(i))throw new n("julianDate is required.");if(e.isEmpty)return!1;var r=o.compare(e.start,i);if(0===r)return e.isStartIncluded;var s=o.compare(i,e.stop);return 0===s?e.isStopIncluded:r<0&&s<0},s.prototype.clone=function(e){return s.clone(this,e)},s.prototype.equals=function(e,t){return s.equals(this,e,t)},s.prototype.equalsEpsilon=function(e,t,i){return s.equalsEpsilon(this,e,t,i)},s.prototype.toString=function(){return s.toIso8601(this)},s.EMPTY=r(new s({start:new o,stop:new o,isStartIncluded:!1,isStopIncluded:!1})),s}),(0,e.amdDefine)("19",[],function(){"use strict";return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}}),(0,e.amdDefine)("1e",["1f","15","5","6","7","8","20","21"],function(e,t,i,n,r,o,s,a){"use strict";function u(i,n){this._definitionChanged=new o,this._value=e.clone(i),this._referenceFrame=t(n,s.FIXED)}return n(u.prototype,{isConstant:{get:function(){return!i(this._value)||this._referenceFrame===s.FIXED}},definitionChanged:{get:function(){return this._definitionChanged}},referenceFrame:{get:function(){return this._referenceFrame}}}),u.prototype.getValue=function(e,t){return this.getValueInReferenceFrame(e,s.FIXED,t)},u.prototype.setValue=function(t,n){var r=!1;e.equals(this._value,t)||(r=!0,this._value=e.clone(t)),i(n)&&this._referenceFrame!==n&&(r=!0,this._referenceFrame=n),r&&this._definitionChanged.raiseEvent(this)},u.prototype.getValueInReferenceFrame=function(e,t,n){if(!i(e))throw new r("time is required.");if(!i(t))throw new r("referenceFrame is required.");return a.convertToReferenceFrame(e,this._value,this._referenceFrame,t,n)},u.prototype.equals=function(t){return this===t||t instanceof u&&e.equals(this._value,t._value)&&this._referenceFrame===t._referenceFrame},u}),(0,e.amdDefine)("22",["23"],function(e){"use strict";function t(e){return e}return function(i,n){return e(i,n,t)}}),(0,e.amdDefine)("24",["5","6","8"],function(e,t,i){"use strict";function n(e){this._value=void 0,this._hasClone=!1,this._hasEquals=!1,this._definitionChanged=new i,this.setValue(e)}return t(n.prototype,{isConstant:{value:!0},definitionChanged:{get:function(){return this._definitionChanged}}}),n.prototype.getValue=function(e,t){return this._hasClone?this._value.clone(t):this._value},n.prototype.setValue=function(t){var i=this._value;if(i!==t){var n=e(t),r=n&&"function"==typeof t.clone,o=n&&"function"==typeof t.equals;(!o||!t.equals(i))&&(this._hasClone=r,this._hasEquals=o,this._value=r?t.clone(this._value):t,this._definitionChanged.raiseEvent(this))}},n.prototype.equals=function(e){return this===e||e instanceof n&&(!this._hasEquals&&this._value===e._value||this._hasEquals&&this._value.equals(e._value))},n.prototype.valueOf=function(){return this._value},n.prototype.toString=function(){return String(this._value)},n}),(0,e.amdDefine)("23",["15","5","24"],function(e,t,i){"use strict";function n(e,i,n,r,o){return{configurable:r,get:function(){return this[i]},set:function(r){var s=this[i],a=this[n];t(a)&&(a(),this[n]=void 0),!(void 0!==r)||t(r)&&t(r.getValue)||!t(o)||(r=o(r)),s!==r&&(this[i]=r,this._definitionChanged.raiseEvent(this,e,r,s)),t(r)&&t(r.definitionChanged)&&(this[n]=r.definitionChanged.addEventListener(function(){this._definitionChanged.raiseEvent(this,e,r,r)},this))}}}function r(e){return new i(e)}return function(t,i,o){return n(t,"_"+t.toString(),"_"+t.toString()+"Subscription",e(i,!1),e(o,r))}}),(0,e.amdDefine)("25",["15","5","6","7","8","24","23","26"],function(e,t,i,n,r,o,s,a){"use strict";function u(e){return new o(e)}function c(e,t){var i=e._propertyNames,n=t._propertyNames,r=i.length;if(r!==n.length)return!1;for(var o=0;o0){for(u=0;u=Math.PI)throw new i("fov must be in the range [0, PI).");if(t.aspectRatio<0)throw new i("aspectRatio must be positive.");if(t.near<0||t.near>t.far)throw new i("near must be greater than zero and less than far.");t._aspectRatio=t.aspectRatio,t._fov=t.fov,t._fovy=t.aspectRatio<=1?t.fov:2*Math.atan(Math.tan(.5*t.fov)/t.aspectRatio),t._near=t.near,t._far=t.far,t._sseDenominator=2*Math.tan(.5*t._fovy),t._xOffset=t.xOffset,t._yOffset=t.yOffset,n.top=t.near*Math.tan(.5*t._fovy),n.bottom=-n.top,n.right=t.aspectRatio*n.top,n.left=-n.right,n.near=t.near,n.far=t.far,n.right+=t.xOffset,n.left+=t.xOffset,n.top+=t.yOffset,n.bottom+=t.yOffset}}return t(r.prototype,{projectionMatrix:{get:function(){return o(this),this._offCenterFrustum.projectionMatrix}},infiniteProjectionMatrix:{get:function(){return o(this),this._offCenterFrustum.infiniteProjectionMatrix}},fovy:{get:function(){return o(this),this._fovy}},sseDenominator:{get:function(){return o(this),this._sseDenominator}}}),r.prototype.computeCullingVolume=function(e,t,i){return o(this),this._offCenterFrustum.computeCullingVolume(e,t,i)},r.prototype.getPixelDimensions=function(e,t,i,n){return o(this),this._offCenterFrustum.getPixelDimensions(e,t,i,n)},r.prototype.clone=function(t){return e(t)||(t=new r),t.aspectRatio=this.aspectRatio,t.fov=this.fov,t.near=this.near,t.far=this.far,t._aspectRatio=void 0,t._fov=void 0,t._near=void 0,t._far=void 0,this._offCenterFrustum.clone(t._offCenterFrustum),t},r.prototype.equals=function(t){return!!e(t)&&(o(this),o(t),this.fov===t.fov&&this.aspectRatio===t.aspectRatio&&this.near===t.near&&this.far===t.far&&this._offCenterFrustum.equals(t._offCenterFrustum))},r}),(0,e.amdDefine)("31",["1f","32","15","5","7","33","34"],function(e,t,i,n,r,o,s){"use strict";function a(e){this.planes=i(e,[])}var u=[new e,new e,new e];e.clone(e.UNIT_X,u[0]),e.clone(e.UNIT_Y,u[1]),e.clone(e.UNIT_Z,u[2]);var c=new e,l=new e,h=new s(new e,0);return a.fromBoundingSphere=function(i,o){if(!n(i))throw new r("boundingSphere is required.");n(o)||(o=new a);var s=u.length,h=o.planes;h.length=2*s;for(var d=i.center,f=i.radius,p=0,g=0;ge.far)throw new r("near must be greater than zero and less than far.");e._left=a,e._right=s,e._top=t,e._bottom=n,e._near=u,e._far=c,e._perspectiveMatrix=o.computePerspectiveOffCenter(a,s,n,t,u,c,e._perspectiveMatrix),e._infinitePerspective=o.computeInfinitePerspectiveOffCenter(a,s,n,t,u,e._infinitePerspective)}}n(a.prototype,{projectionMatrix:{get:function(){return u(this),this._perspectiveMatrix}},infiniteProjectionMatrix:{get:function(){return u(this),this._infinitePerspective}}});var c=new e,l=new e,h=new e,d=new e;return a.prototype.computeCullingVolume=function(n,o,s){if(!i(n))throw new r("position is required.");if(!i(o))throw new r("direction is required.");if(!i(s))throw new r("up is required.");var a=this._cullingVolume.planes,u=this.top,f=this.bottom,p=this.right,g=this.left,M=this.near,y=this.far,A=e.cross(o,s,c),w=l;e.multiplyByScalar(o,M,w),e.add(n,w,w);var E=h;e.multiplyByScalar(o,y,E),e.add(n,E,E);var m=d;e.multiplyByScalar(A,g,m),e.add(w,m,m),e.subtract(m,n,m),e.normalize(m,m),e.cross(m,s,m);var v=a[0];return i(v)||(v=a[0]=new t),v.x=m.x,v.y=m.y,v.z=m.z,v.w=-e.dot(m,n),e.multiplyByScalar(A,p,m),e.add(w,m,m),e.subtract(m,n,m),e.normalize(m,m),e.cross(s,m,m),v=a[1],i(v)||(v=a[1]=new t),v.x=m.x,v.y=m.y,v.z=m.z,v.w=-e.dot(m,n),e.multiplyByScalar(s,f,m),e.add(w,m,m),e.subtract(m,n,m),e.normalize(m,m),e.cross(A,m,m),v=a[2],i(v)||(v=a[2]=new t),v.x=m.x,v.y=m.y,v.z=m.z,v.w=-e.dot(m,n),e.multiplyByScalar(s,u,m),e.add(w,m,m),e.subtract(m,n,m),e.normalize(m,m),e.cross(m,A,m),v=a[3],i(v)||(v=a[3]=new t),v.x=m.x,v.y=m.y,v.z=m.z,v.w=-e.dot(m,n),v=a[4],i(v)||(v=a[4]=new t),v.x=o.x,v.y=o.y,v.z=o.z,v.w=-e.dot(o,w),e.negate(o,m),v=a[5],i(v)||(v=a[5]=new t),v.x=m.x,v.y=m.y,v.z=m.z,v.w=-e.dot(m,E),this._cullingVolume},a.prototype.getPixelDimensions=function(e,t,n,o){if(u(this),!i(e)||!i(t))throw new r("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new r("drawingBufferWidth must be greater than zero.");if(t<=0)throw new r("drawingBufferHeight must be greater than zero.");if(!i(n))throw new r("distance is required.");if(!i(o))throw new r("A result object is required.");var s=1/this.near,a=this.top*s,c=2*n*a/t,l=2*n*(a=this.right*s)/e;return o.x=l,o.y=c,o},a.prototype.clone=function(e){return i(e)||(e=new a),e.right=this.right,e.left=this.left,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e},a.prototype.equals=function(e){return i(e)&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far},a}),(0,e.amdDefine)("35",["5","6","7","8","26"],function(e,t,i,n,r){"use strict";function o(t){var i=t._targetEntity;return t._resolveEntity&&(i=t._targetCollection.getById(t._targetId),e(i)&&(t._targetEntity=i,t._resolveEntity=!1)),i}var s=function(t,r){if(!e(t))throw new i("targetCollection is required.");if(!e(r)||""===r)throw new i("targetId is required.");this._targetCollection=t,this._targetId=r,this._targetEntity=void 0,this._definitionChanged=new n,this._resolveEntity=!0,t.collectionChanged.addEventListener(s.prototype._onCollectionChanged,this)};return t(s.prototype,{definitionChanged:{get:function(){return this._definitionChanged}},id:{get:function(){return this._targetId}},position:{get:function(){var t=o(this);return e(t)?t.position:void 0}},orientation:{get:function(){var t=o(this);return e(t)?t.orientation:void 0}},targetId:{get:function(){return this._targetId}},targetCollection:{get:function(){return this._targetCollection}},resolvedEntity:{get:function(){return o(this)}}}),s.prototype._onCollectionChanged=function(t,i,n){var r=this._targetEntity;e(r)&&(-1!==n.indexOf(r)?this._resolveEntity=!0:this._resolveEntity&&(o(this),this._resolveEntity||this._definitionChanged.raiseEvent(this)))},s}),(0,e.amdDefine)("36",["5","6","7","8","2c","26"],function(e,t,i,n,r,o){"use strict";function s(t){var i=!0;if(t._resolveEntity){var n=t._targetCollection.getById(t._targetId);if(e(n)?(n.definitionChanged.addEventListener(u.prototype._onTargetEntityDefinitionChanged,t),t._targetEntity=n,t._resolveEntity=!1):(n=t._targetEntity,i=!1),!e(n))throw new r('target entity "'+t._targetId+'" could not be resolved.')}return i}function a(t){var i=t._targetProperty;if(t._resolveProperty){var n=s(t),o=t._targetPropertyNames;i=t._targetEntity;for(var a=o.length,u=0;u0){r=new Array(n);for(var a=0;a0&&(!i(n)||n.length!==o))throw new r("derivatives length must be equal to the number of derivatives.");this._property.addSample(e,t,n)},l.prototype.addSamples=function(e,t,i){this._property.addSamples(e,t,i)},l.prototype.addSamplesPackedArray=function(e,t){this._property.addSamplesPackedArray(e,t)},l.prototype.equals=function(e){return this===e||e instanceof l&&u.equals(this._property,e._property)&&this._referenceFrame===e._referenceFrame},l}),function(){(0,e.amdDefine)("8",["5","6","7"],function(e,t,i){"use strict";function n(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}return t(n.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}}),n.prototype.addEventListener=function(e,t){if("function"!=typeof e)throw new i("listener is required and must be a function.");this._listeners.push(e),this._scopes.push(t);var n=this;return function(){n.removeEventListener(e,t)}},n.prototype.removeEventListener=function(e,t){if("function"!=typeof e)throw new i("listener is required and must be a function.");for(var n=this._listeners,r=this._scopes,o=-1,s=0;s=t;n--)e[n]=e[a--]}for(n=0;n=0||i(y)&&a.compare(M,y)>=0));){for(p[w++]=M,A+=1,u=0;u0&&(g.length=E,c(r,f,g),p.length=w,c(n,d,p))}else{for(u=0;uc)return;if(this._backwardExtrapolationType===s.HOLD)return l.unpack(h,0,n)}if(d>=u){var p=o[d=u-1];if(c=this._forwardExtrapolationDuration,this._forwardExtrapolationType===s.NONE||0!==c&&a.secondsDifference(t,p)>c)return;if(this._forwardExtrapolationType===s.HOLD)return d=u-1,l.unpack(h,d*l.packedLength,n)}var g=this._xTable,M=this._yTable,y=this._interpolationAlgorithm,A=this._packedInterpolationLength,w=this._inputOrder;if(this._updateTableLength){this._updateTableLength=!1;var E=Math.min(y.getRequiredDataPoints(this._interpolationDegree,w),u);E!==this._numberOfPoints&&(this._numberOfPoints=E,g.length=E,M.length=E*A)}var m=this._numberOfPoints-1;if(m<1)return;var v=0,N=u-1;if(N-v+1>=m+1){var D=d-(m/2|0)-1;DN&&(D=(T=N)-m)0&&(this._hash={},e.length=0)},n}),(0,e.amdDefine)("16",["5"],function(e){"use strict";return"undefined"!=typeof performance&&e(performance.now)?function(){return performance.now()}:function(){return Date.now()}}),(0,e.amdDefine)("c",["11"],function(e){"use strict";return e({SHIFT:0,CTRL:1,ALT:2})}),(0,e.amdDefine)("e",["2b","a","15","5","b","7","3c","16","c","f"],function(e,t,i,n,r,o,s,a,u,c){"use strict";function l(e,t,i){var n=e._element;if(n===document)return i.x=t.clientX,i.y=t.clientY,i;var r=n.getBoundingClientRect();return i.x=t.clientX-r.left,i.y=t.clientY-r.top,i}function h(e,t){var i=e;return n(t)&&(i+="+"+t),i}function d(e){return e.shiftKey?u.SHIFT:e.ctrlKey?u.CTRL:e.altKey?u.ALT:void 0}function f(e,t,i,n){function r(t){n(e,t)}i.addEventListener(t,r,!1),e._removalFunctions.push(function(){i.removeEventListener(t,r,!1)})}function p(e){var t=e._element,i=n(t.disableRootEvents)?t:document;s.supportsPointerEvents()?(f(e,"pointerdown",t,S),f(e,"pointerup",t,L),f(e,"pointermove",t,_),f(e,"pointercancel",t,L)):(f(e,"mousedown",t,A),f(e,"mouseup",i,w),f(e,"mousemove",i,E),f(e,"touchstart",t,N),f(e,"touchend",i,D),f(e,"touchmove",i,I),f(e,"touchcancel",i,D)),f(e,"dblclick",t,m),f(e,"onwheel"in t?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",t,v)}function g(e){for(var t=e._removalFunctions,i=0;ij.mouseEmulationIgnoreMilliseconds}function A(e,i){if(y(e)){var r=i.button;e._buttonDown=r;var o;if(r===x.LEFT)o=c.LEFT_DOWN;else if(r===x.MIDDLE)o=c.MIDDLE_DOWN;else{if(r!==x.RIGHT)return;o=c.RIGHT_DOWN}var s=l(e,i,e._primaryPosition);t.clone(s,e._primaryStartPosition),t.clone(s,e._primaryPreviousPosition);var a=d(i),u=e.getInputAction(o,a);n(u)&&(t.clone(s,b.position),u(b),i.preventDefault())}}function w(e,i){if(y(e)){var r=i.button;e._buttonDown=void 0;var o,s;if(r===x.LEFT)o=c.LEFT_UP,s=c.LEFT_CLICK;else if(r===x.MIDDLE)o=c.MIDDLE_UP,s=c.MIDDLE_CLICK;else{if(r!==x.RIGHT)return;o=c.RIGHT_UP,s=c.RIGHT_CLICK}var a=d(i),u=e.getInputAction(o,a),h=e.getInputAction(s,a);if(n(u)||n(h)){var f=l(e,i,e._primaryPosition);if(n(u)&&(t.clone(f,C.position),u(C)),n(h)){var p=e._primaryStartPosition,g=p.x-f.x,M=p.y-f.y;Math.sqrt(g*g+M*M)0?-120*t.detail:t.wheelDelta;if(n(i)){var o=d(t),s=e.getInputAction(c.WHEEL,o);n(s)&&(s(i),t.preventDefault())}}function N(e,i){M(e);var n,r,o,s=i.changedTouches,a=s.length,u=e._positions;for(n=0;nr.PI)throw new i("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");var p=n*(1-s),M=u-c,y=c,A=d(l-u,s);if("Hyperbolic"===h(s,0)&&Math.abs(r.negativePiToPi(A))>=Math.acos(-1/s))throw new i("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");g(M,a,y,I);var w=p*(1+s),E=Math.cos(A),m=Math.sin(A),v=1+s*E;if(v<=r.Epsilon10)throw new i("elements cannot be converted to cartesian");var N=w/v;return t(f)?(f.x=N*E,f.y=N*m,f.z=0):f=new e(N*E,N*m,0),o.multiplyByVector(I,f,f)}function h(e,t){if(e<0)throw new i("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function d(e,t){if(t<0||t>=1)throw new i("eccentricity out of range.");return p(f(e,t),t)}function f(e,t){if(t<0||t>=1)throw new i("eccentricity out of range.");var n,o=Math.floor(e/r.TWO_PI),s=(e-=o*r.TWO_PI)+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),a=Number.MAX_VALUE;for(n=0;nS;++n)s=(a=s)-(a-t*Math.sin(a)-e)/(1-t*Math.cos(a));if(n>=O)throw new i("Kepler equation did not converge");return a=s+o*r.TWO_PI}function p(e,t){if(t<0||t>=1)throw new i("eccentricity out of range.");var n=Math.floor(e/r.TWO_PI);e-=n*r.TWO_PI;var o=Math.cos(e)-t,s=Math.sin(e)*Math.sqrt(1-t*t),a=Math.atan2(s,o);return a=r.zeroToTwoPi(a),e<0&&(a-=r.TWO_PI),a+=n*r.TWO_PI}function g(e,n,s,a){if(n<0||n>r.PI)throw new i("inclination out of range");var u=Math.cos(e),c=Math.sin(e),l=Math.cos(n),h=Math.sin(n),d=Math.cos(s),f=Math.sin(s);return t(a)?(a[0]=d*u-f*c*l,a[1]=f*u+d*c*l,a[2]=c*h,a[3]=-d*c-f*u*l,a[4]=-f*c+d*u*l,a[5]=u*h,a[6]=f*h,a[7]=-d*h,a[8]=l):a=new o(d*u-f*c*l,-d*c-f*u*l,f*h,f*u+d*c*l,-f*c+d*u*l,-d*h,c*h,u*h,l),a}function M(e,t){c(e,Ie);var i=(Ie.dayNumber-v.dayNumber+(Ie.secondsOfDay-v.secondsOfDay)/s.SECONDS_PER_DAY)/(10*s.DAYS_PER_JULIAN_CENTURY),n=.3595362*i,r=L+k*Math.cos(x*n)+W*Math.sin(x*n)+F*Math.cos(b*n)+X*Math.sin(b*n)+Q*Math.cos(C*n)+Z*Math.sin(C*n)+Y*Math.cos(R*n)+K*Math.sin(R*n)+q*Math.cos(z*n)+J*Math.sin(z*n)+G*Math.cos(P*n)+$*Math.sin(P*n)+V*Math.cos(U*n)+ee*Math.sin(U*n)+H*Math.cos(B*n)+te*Math.sin(B*n),o=_+j*i+le*Math.cos(ie*n)+Ae*Math.sin(ie*n)+he*Math.cos(ne*n)+we*Math.sin(ne*n)+de*Math.cos(re*n)+Ee*Math.sin(re*n)+fe*Math.cos(oe*n)+me*Math.sin(oe*n)+pe*Math.cos(se*n)+ve*Math.sin(se*n)+ge*Math.cos(ae*n)+Ne*Math.sin(ae*n)+Me*Math.cos(ue*n)+De*Math.sin(ue*n)+ye*Math.cos(ce*n)+Te*Math.sin(ce*n);return l(r,.0167086342-.0004203654*i,469.97289*T*i,102.93734808*D+11612.3529*T*i,174.87317577*D-8679.27034*T*i,o,t)}function y(e,t){c(e,Ie);var i=(Ie.dayNumber-v.dayNumber+(Ie.secondsOfDay-v.secondsOfDay)/s.SECONDS_PER_DAY)/s.DAYS_PER_JULIAN_CENTURY,n=i*i,r=n*i,o=r*i,a=383397.7725+.004*i,u=.055545526-1.6e-8*i,h=5.15668983*D,d=-8e-5*i+.02966*n-42e-6*r-1.3e-7*o,f=83.35324312*D,p=14643420.2669*i-38.2702*n-.045047*r+21301e-8*o,g=125.04455501*D,M=-6967919.3631*i+6.3602*n+.007625*r-3586e-8*o,y=218.31664563*D,A=1732559343.4847*i-6.391*n+.006588*r-3169e-8*o,w=297.85019547*D+T*(1602961601.209*i-6.3706*n+.006593*r-3169e-8*o),E=134.96340251*D+T*(1717915923.2178*i+31.8792*n+.051635*r-2447e-7*o),m=357.52910918*D+T*(129596581.0481*i-.5532*n+136e-6*r-1149e-8*o),I=310.17137918*D-T*(6967051.436*i+6.2068*n+.007618*r-3219e-8*o),O=2*w,S=4*w,L=6*w,_=2*E,j=3*E,x=4*E,b=2*(93.27209062*D+T*(1739527262.8478*i-12.7512*n-.001037*r+417e-8*o));a+=3400.4*Math.cos(O)-635.6*Math.cos(O-E)-235.6*Math.cos(E)+218.1*Math.cos(O-m)+181*Math.cos(O+E),u+=.014216*Math.cos(O-E)+.008551*Math.cos(O-_)-.001383*Math.cos(E)+.001356*Math.cos(O+E)-.001147*Math.cos(S-j)-914e-6*Math.cos(S-_)+869e-6*Math.cos(O-m-E)-627e-6*Math.cos(O)-394e-6*Math.cos(S-x)+282e-6*Math.cos(O-m-_)-279e-6*Math.cos(w-E)-236e-6*Math.cos(_)+231e-6*Math.cos(S)+229e-6*Math.cos(L-x)-201e-6*Math.cos(_-b),d+=486.26*Math.cos(O-b)-40.13*Math.cos(O)+37.51*Math.cos(b)+25.73*Math.cos(_-b)+19.97*Math.cos(O-m-b),p+=-55609*Math.sin(O-E)-34711*Math.sin(O-_)-9792*Math.sin(E)+9385*Math.sin(S-j)+7505*Math.sin(S-_)+5318*Math.sin(O+E)+3484*Math.sin(S-x)-3417*Math.sin(O-m-E)-2530*Math.sin(L-x)-2376*Math.sin(O)-2075*Math.sin(O-j)-1883*Math.sin(_)-1736*Math.sin(L-5*E)+1626*Math.sin(m)-1370*Math.sin(L-j),M+=-5392*Math.sin(O-b)-540*Math.sin(m)-441*Math.sin(O)+423*Math.sin(b)-288*Math.sin(_-b),A+=-3332.9*Math.sin(O)+1197.4*Math.sin(O-E)-662.5*Math.sin(m)+396.3*Math.sin(E)-218*Math.sin(O-m);var C=2*I,R=3*I;d+=46.997*Math.cos(I)*i-.614*Math.cos(O-b+I)*i+.614*Math.cos(O-b-I)*i-.0297*Math.cos(C)*n-.0335*Math.cos(I)*n+.0012*Math.cos(O-b+C)*n-16e-5*Math.cos(I)*r+4e-5*Math.cos(R)*r+4e-5*Math.cos(C)*r;var z=2.116*Math.sin(I)*i-.111*Math.sin(O-b-I)*i-.0015*Math.sin(I)*n;return p+=z,A+=z,M+=-520.77*Math.sin(I)*i+13.66*Math.sin(O-b+I)*i+1.12*Math.sin(O-I)*i-1.06*Math.sin(b-I)*i+.66*Math.sin(C)*n+.371*Math.sin(I)*n-.035*Math.sin(O-b+C)*n-.015*Math.sin(O-b+I)*n+.0014*Math.sin(I)*r-.0011*Math.sin(R)*r-9e-4*Math.sin(C)*r,l(a*=N,u,h+d*T,f+p*T,g+M*T,y+A*T,t)}function A(t,i){return i=y(t,i),e.multiplyByScalar(i,Oe,i)}var w={},E=32.184,m=2451545,v=new n(2451545,0,a.TAI),N=1e3,D=r.RADIANS_PER_DEGREE,T=r.RADIANS_PER_ARCSECOND,I=new o,O=50,S=r.EPSILON8,L=149598022260.7121,_=100.46645683*D,j=1295977422.83429*T,x=16002,b=21863,C=32004,R=10931,z=14529,P=16368,U=15318,B=32794,k=64e-7*14959787e4,F=-2273887.624,Q=927506.794,Y=14959787e4*-8e-7,q=32e-7*14959787e4,G=-613351.267,V=284235.953,H=-164557.657,W=-2243968.05,X=-688150.202,Z=1017265.516,K=807828.498,J=14e-7*14959787e4,$=359034.888,ee=14959787e4*-28e-7,te=329115.314,ie=10,ne=16002,re=21863,oe=10931,se=1473,ae=32004,ue=4387,ce=73,le=-325e-7,he=-322e-7,de=1e-7*-79,fe=232*1e-7,pe=1e-7*-52,ge=97e-7,Me=55e-7,ye=-41e-7,Ae=-105e-7,we=-137e-7,Ee=258e-7,me=35e-7,ve=1e-7*-116,Ne=-88e-7,De=-112e-7,Te=-8e-6,Ie=new n(0,0,a.TAI),Oe=-.01215058143522694,Se=new o(1.0000000000000002,5.619723173785822e-16,4.690511510146299e-19,-5.154129427414611e-16,.9174820620691819,-.39777715593191376,-2.23970096136568e-16,.39777715593191376,.9174820620691819),Le=new e;return w.computeSunPositionInEarthInertialFrame=function(i,r){return t(i)||(i=n.now()),t(r)||(r=new e),Le=M(i,Le),r=e.negate(Le,r),A(i,Le),e.subtract(r,Le,r),o.multiplyByVector(Se,r,r),r},w.computeMoonPositionInEarthInertialFrame=function(e,i){return t(e)||(e=n.now()),i=y(e,i),o.multiplyByVector(Se,i,i),i},w}),(0,e.amdDefine)("40",["1f","41","15","5","6","7","42","d"],function(e,t,i,n,r,o,s,a){"use strict";function u(e){var t=e._uSquared,i=e._ellipsoid.maximumRadius,n=e._ellipsoid.minimumRadius,r=(i-n)/i,o=Math.cos(e._startHeading),s=Math.sin(e._startHeading),a=(1-r)*Math.tan(e._start.latitude),u=1/Math.sqrt(1+a*a),c=u*a,l=Math.atan2(a,o),h=u*s,d=h*h,f=1-d,p=Math.sqrt(f),g=t/4,M=g*g,y=M*g,A=M*M,w=1+g-3*M/4+5*y/4-175*A/64,E=1-g+15*M/8-35*y/8,m=1-3*g+35*M/4,v=1-5*g,N=w*l-E*Math.sin(2*l)*g/2-m*Math.sin(4*l)*M/16-v*Math.sin(6*l)*y/48-5*Math.sin(8*l)*A/512,D=e._constants;D.a=i,D.b=n,D.f=r,D.cosineHeading=o,D.sineHeading=s,D.tanU=a,D.cosineU=u,D.sineU=c,D.sigma=l,D.sineAlpha=h,D.sineSquaredAlpha=d,D.cosineSquaredAlpha=f,D.cosineAlpha=p,D.u2Over4=g,D.u4Over16=M,D.u6Over64=y,D.u8Over256=A,D.a0=w,D.a1=E,D.a2=m,D.a3=v,D.distanceRatio=N}function c(e,t){return e*t*(4+e*(4-3*t))/16}function l(e,t,i,n,r,o,s){var a=c(e,i);return(1-a)*e*t*(n+a*r*(s+a*o*(2*s*s-1)))}function h(e,t,i,n,r,o,s){var u,c,h,d,f,p=(t-i)/t,g=o-n,M=Math.atan((1-p)*Math.tan(r)),y=Math.atan((1-p)*Math.tan(s)),A=Math.cos(M),w=Math.sin(M),E=Math.cos(y),m=Math.sin(y),v=A*E,N=A*m,D=w*m,T=w*E,I=g,O=a.TWO_PI,S=Math.cos(I),L=Math.sin(I);do{S=Math.cos(I),L=Math.sin(I);var _=N-T*S;h=Math.sqrt(E*E*L*L+_*_),c=D+v*S,u=Math.atan2(h,c);var j;0===h?(j=0,d=1):d=1-(j=v*L/h)*j,O=I,f=c-2*D/d,isNaN(f)&&(f=0),I=g+l(p,j,d,u,h,c,f)}while(Math.abs(I-O)>a.EPSILON12);var x=d*(t*t-i*i)/(i*i),b=x*(256+x*(x*(74-47*x)-128))/1024,C=f*f,R=i*(1+x*(4096+x*(x*(320-175*x)-768))/16384)*(u-b*h*(f+b*(c*(2*C-1)-b*f*(4*h*h-3)*(4*C-3)/6)/4)),z=Math.atan2(E*L,N-T*S),P=Math.atan2(A*L,N*S-T);e._distance=R,e._startHeading=z,e._endHeading=P,e._uSquared=x}function d(i,n,r,s){var a=e.normalize(s.cartographicToCartesian(n,g),p),c=e.normalize(s.cartographicToCartesian(r,g),g);if(Math.abs(Math.abs(e.angleBetween(a,c))-Math.PI)<.0125)throw new o("geodesic position is not unique");h(i,s.maximumRadius,s.minimumRadius,n.longitude,n.latitude,r.longitude,r.latitude),i._start=t.clone(n,i._start),i._end=t.clone(r,i._end),i._start.height=0,i._end.height=0,u(i)}function f(e,r,o){var a=i(o,s.WGS84);this._ellipsoid=a,this._start=new t,this._end=new t,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,n(e)&&n(r)&&d(this,e,r,a)}var p=new e,g=new e;return r(f.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){if(!n(this._distance))throw new o("set end positions before getting surfaceDistance");return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){if(!n(this._distance))throw new o("set end positions before getting startHeading");return this._startHeading}},endHeading:{get:function(){if(!n(this._distance))throw new o("set end positions before getting endHeading");return this._endHeading}}}),f.prototype.setEndPoints=function(e,t){if(!n(e))throw new o("start cartographic position is required");if(!n(t))throw new o("end cartgraphic position is required");d(this,e,t,this._ellipsoid)},f.prototype.interpolateUsingFraction=function(e,t){return this.interpolateUsingSurfaceDistance(this._distance*e,t)},f.prototype.interpolateUsingSurfaceDistance=function(e,i){if(!n(this._distance))throw new o("start and end must be set before calling function interpolateUsingSurfaceDistance");var r=this._constants,s=r.distanceRatio+e/r.b,a=Math.cos(2*s),u=Math.cos(4*s),c=Math.cos(6*s),h=Math.sin(2*s),d=Math.sin(4*s),f=Math.sin(6*s),p=Math.sin(8*s),g=s*s,M=s*g,y=r.u8Over256,A=r.u2Over4,w=r.u6Over64,E=r.u4Over16,m=2*M*y*a/3+s*(1-A+7*E/4-15*w/4+579*y/64-(E-15*w/4+187*y/16)*a-(5*w/4-115*y/16)*u-29*y*c/16)+(A/2-E+71*w/32-85*y/16)*h+(5*E/16-5*w/4+383*y/96)*d-g*((w-11*y/2)*h+5*y*d/2)+(29*w/96-29*y/16)*f+539*y*p/1536,v=Math.asin(Math.sin(m)*r.cosineAlpha),N=Math.atan(r.a/r.b*Math.tan(v));m-=r.sigma;var D=Math.cos(2*r.sigma+m),T=Math.sin(m),I=Math.cos(m),O=r.cosineU*I,S=r.sineU*T,L=Math.atan2(T*r.sineHeading,O-S*r.cosineHeading)-l(r.f,r.sineAlpha,r.cosineSquaredAlpha,m,T,I,D);return n(i)?(i.longitude=this._start.longitude+L,i.latitude=N,i.height=0,i):new t(this._start.longitude+L,N,0)},f}),(0,e.amdDefine)("43",["5"],function(e){"use strict";var t=Array.isArray;return e(t)||(t=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),t}),(0,e.amdDefine)("44",["1f","41","15","5","7","42","40","45","43","d","28","34"],function(e,t,i,n,r,o,s,a,u,c,l,h){"use strict";function d(e,t,i){var n=D;n.length=e;var r;if(t===i){for(r=0;r0){r=i(r,l.IDENTITY);var u=l.inverseTransformation(r,M),c=l.multiplyByPoint(u,e.ZERO,y),d=l.multiplyByPointAsVector(u,e.UNIT_Y,A),f=h.fromPointNormal(c,d,w),p=l.multiplyByPointAsVector(u,e.UNIT_X,E),g=h.fromPointNormal(c,p,m),D=1;o.push(e.clone(t[0]));for(var T=o[0],I=t.length,O=1;O=r.maximumRequestsPerServer))return o[a]=u+1,t(s(e),function(e){return o[a]--,e}).otherwise(function(e){return o[a]--,t.reject(e)})}var o={},s="undefined"!=typeof document?new e(document.location.href):new e;return r.maximumRequestsPerServer=6,r}),(0,e.amdDefine)("49",["48","15","5","7","4a","4b"],function(e,t,i,n,r,o){"use strict";function s(o,u){if(!i(o))throw new n("url is required.");return u=t(u,!0),e(o,function(t){var i;i=!(a.test(t)||!u)&&r(t);var n=e.defer();return s.createImage(t,i,n),n.promise})}var a=/^data:/;return s.createImage=function(e,t,i){var n=new Image;n.onload=function(){i.resolve(n)},n.onerror=function(e){i.reject(e)},t&&(o.contains(e)?n.crossOrigin="use-credentials":n.crossOrigin=""),n.src=e},s.defaultCreateImage=s.createImage,s}),(0,e.amdDefine)("4c",["a","15","5","6","42","4d","4e"],function(e,t,i,n,r,o,s){"use strict";function a(n){if(n=t(n,{}),this._ellipsoid=t(n.ellipsoid,r.WGS84),this._numberOfLevelZeroTilesX=t(n.numberOfLevelZeroTilesX,1),this._numberOfLevelZeroTilesY=t(n.numberOfLevelZeroTilesY,1),this._projection=new s(this._ellipsoid),i(n.rectangleSouthwestInMeters)&&i(n.rectangleNortheastInMeters))this._rectangleSouthwestInMeters=n.rectangleSouthwestInMeters,this._rectangleNortheastInMeters=n.rectangleNortheastInMeters;else{var a=this._ellipsoid.maximumRadius*Math.PI;this._rectangleSouthwestInMeters=new e(-a,-a),this._rectangleNortheastInMeters=new e(a,a)}var u=this._projection.unproject(this._rectangleSouthwestInMeters),c=this._projection.unproject(this._rectangleNortheastInMeters);this._rectangle=new o(u.longitude,u.latitude,c.longitude,c.latitude)}return n(a.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),a.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<=a&&(p=a-1);var g=f/l|0;return g>=u&&(g=u-1),i(r)?(r.x=p,r.y=g,r):new e(p,g)}},a}),(0,e.amdDefine)("4f",["5"],function(e){"use strict";var t={};return function(i,n,r){e(n)||(n=i.width),e(r)||(r=i.height);var o=t[n];e(o)||(o={},t[n]=o);var s=o[r];if(!e(s)){var a=document.createElement("canvas");a.width=n,a.height=r,(s=a.getContext("2d")).globalCompositeOperation="copy",o[r]=s}return s.drawImage(i,0,0,n,r),s.getImageData(0,0,n,r).data}}),(0,e.amdDefine)("50",["a","15","5","6","7","42","51","d","4d"],function(e,t,i,n,r,o,s,a,u){"use strict";function c(e){e=t(e,{}),this._ellipsoid=t(e.ellipsoid,o.WGS84),this._rectangle=t(e.rectangle,u.MAX_VALUE),this._projection=new s(this._ellipsoid),this._numberOfLevelZeroTilesX=t(e.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=t(e.numberOfLevelZeroTilesY,1)}return n(c.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),c.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<=s&&(f=s-1);var p=(o.north-t.latitude)/h|0;return p>=c&&(p=c-1),i(r)?(r.x=f,r.y=p,r):new e(f,p)}},c}),(0,e.amdDefine)("52",["53","1f","15","5","6","7","4d"],function(e,t,i,n,r,o,s){"use strict";function a(e,i){if(!n(e))throw new o("ellipsoid is required.");this._ellipsoid=e,this._cameraPosition=new t,this._cameraPositionInScaledSpace=new t,this._distanceToLimbInScaledSpaceSquared=0,n(i)&&(this.cameraPosition=i)}function u(e,i,n){var r=e.transformPositionToScaledSpace(i,p),o=t.magnitudeSquared(r),s=Math.sqrt(o),a=t.divideByScalar(r,s,g);o=Math.max(1,o);var u=1/(s=Math.max(1,s));return 1/(t.dot(a,n)*u-t.magnitude(t.cross(a,n,a))*(Math.sqrt(o-1)*u))}function c(e,i,n){if(!(i<=0||i===1/0||i!==i))return t.multiplyByScalar(e,i,n)}function l(e,i){return t.equals(i,t.ZERO)?i:(e.transformPositionToScaledSpace(i,M),t.normalize(M,M))}r(a.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){var i=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),n=t.magnitudeSquared(i)-1;t.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=i,this._distanceToLimbInScaledSpaceSquared=n}}});var h=new t;a.prototype.isPointVisible=function(e){var t=this._ellipsoid.transformPositionToScaledSpace(e,h);return this.isScaledSpacePointVisible(t)},a.prototype.isScaledSpacePointVisible=function(e){var i=this._cameraPositionInScaledSpace,n=this._distanceToLimbInScaledSpaceSquared,r=t.subtract(e,i,h),o=-t.dot(r,i);return!(n<0?o>0:o>n&&o*o/t.magnitudeSquared(r)>n)},a.prototype.computeHorizonCullingPoint=function(e,i,r){if(!n(e))throw new o("directionToPoint is required");if(!n(i))throw new o("positions is required");n(r)||(r=new t);for(var s=this._ellipsoid,a=l(s,e),h=0,d=0,f=i.length;du.x&&e.clone(n,u),Oc.y&&e.clone(n,c),Sl.z&&e.clone(n,l)}var L=e.magnitudeSquared(e.subtract(u,o,E)),_=e.magnitudeSquared(e.subtract(c,s,E)),j=e.magnitudeSquared(e.subtract(l,a,E)),x=o,b=u,C=L;_>C&&(C=_,x=s,b=c),j>C&&(C=j,x=a,b=l);var R=m;R.x=.5*(x.x+b.x),R.y=.5*(x.y+b.y),R.z=.5*(x.z+b.z);var z=e.magnitudeSquared(e.subtract(b,R,E)),P=Math.sqrt(z),U=v;U.x=o.x,U.y=s.y,U.z=a.z;var B=N;B.x=u.x,B.y=c.y,B.z=l.z;var k=e.multiplyByScalar(e.add(U,B,E),.5,D),F=0;for(T=0;TF&&(F=Q);var Y=e.magnitudeSquared(e.subtract(n,R,E));if(Y>z){var q=Math.sqrt(Y);z=(P=.5*(P+q))*P;var G=q-P;R.x=(P*R.x+G*n.x)/q,R.y=(P*R.y+G*n.y)/q,R.z=(P*R.z+G*n.z)/q}}return PT.x&&e.clone(u,T),jI.y&&e.clone(u,I),xO.z&&e.clone(u,O)}var b=e.magnitudeSquared(e.subtract(T,c,E)),C=e.magnitudeSquared(e.subtract(I,l,E)),R=e.magnitudeSquared(e.subtract(O,h,E)),z=c,P=T,U=b;C>U&&(U=C,z=l,P=I),R>U&&(U=R,z=h,P=O);var B=m;B.x=.5*(z.x+P.x),B.y=.5*(z.y+P.y),B.z=.5*(z.z+P.z);var k=e.magnitudeSquared(e.subtract(P,B,E)),F=Math.sqrt(k),Q=v;Q.x=c.x,Q.y=l.y,Q.z=h.z;var Y=N;Y.x=T.x,Y.y=I.y,Y.z=O.z;var q=e.multiplyByScalar(e.add(Q,Y,E),.5,D),G=0;for(L=0;LG&&(G=V);var H=e.magnitudeSquared(e.subtract(u,B,E));if(H>k){var W=Math.sqrt(H);k=(F=.5*(F+W))*F;var X=W-F;B.x=(F*B.x+X*u.x)/W,B.y=(F*B.y+X*u.y)/W,B.z=(F*B.z+X*u.z)/W}}return Fc.x&&e.clone(o,c),Sl.y&&e.clone(o,l),Lh.z&&e.clone(o,h)}var _=e.magnitudeSquared(e.subtract(c,s,E)),j=e.magnitudeSquared(e.subtract(l,a,E)),x=e.magnitudeSquared(e.subtract(h,u,E)),b=s,C=c,R=_;j>R&&(R=j,b=a,C=l),x>R&&(R=x,b=u,C=h);var z=m;z.x=.5*(b.x+C.x),z.y=.5*(b.y+C.y),z.z=.5*(b.z+C.z);var P=e.magnitudeSquared(e.subtract(C,z,E)),U=Math.sqrt(P),B=v;B.x=s.x,B.y=a.y,B.z=u.z;var k=N;k.x=c.x,k.y=l.y,k.z=h.z;var F=e.multiplyByScalar(e.add(B,k,E),.5,D),Q=0;for(I=0;IQ&&(Q=Y);var q=e.magnitudeSquared(e.subtract(o,z,E));if(q>P){var G=Math.sqrt(q);P=(U=.5*(U+G))*U;var V=G-U;z.x=(U*z.x+V*o.x)/G,z.y=(U*z.y+V*o.y)/G,z.z=(U*z.z+V*o.z)/G}}return U=h+c)return t.clone(o),o;if(c>=h+a)return n.clone(o),o;var f=.5*(a+h+c),p=e.multiplyByScalar(l,(-a+f)/h,z);return e.add(p,s,p),e.clone(p,o.center),o.radius=f,o};var P=new e;d.expand=function(t,n,r){i.typeOf.object("sphere",t),i.typeOf.object("point",n),r=d.clone(t,r);var o=e.magnitude(e.subtract(n,r.center,P));return o>r.radius&&(r.radius=o),r},d.intersectPlane=function(t,n){i.typeOf.object("sphere",t),i.typeOf.object("plane",n);var r=t.center,o=t.radius,s=n.normal,u=e.dot(s,r)+n.distance;return u<-o?a.OUTSIDE:u0?r.INSIDE:l+c<0?r.OUTSIDE:r.INTERSECTING},o.prototype.clone=function(e){return o.clone(this,e)},o.prototype.intersectPlane=function(e){return o.intersectPlane(this,e)},o.prototype.equals=function(e){return o.equals(this,e)},o}),(0,e.amdDefine)("57",["7","58"],function(e,t){"use strict";function i(e,t,i,n){var r,o,s=e,a=t/3,u=i/3,c=n,l=s*u,h=a*c,d=a*a,f=u*u,p=s*u-d,g=s*c-a*u,M=a*c-f,y=4*p*M-g*g;if(y<0){var A,w,E;d*h>=l*f?(A=s,w=p,E=-2*a*p+s*g):(A=c,w=M,E=-c*g+2*u*M);var m=-(E<0?-1:1)*Math.abs(A)*Math.sqrt(-y),v=(o=-E+m)/2,N=v<0?-Math.pow(-v,1/3):Math.pow(v,1/3),D=o===m?-N:-w/N;return r=w<=0?N+D:-E/(N*N+D*D+w),d*h>=l*f?[(r-a)/s]:[-c/(r+u)]}var T=p,I=-2*a*p+s*g,O=M,S=-c*g+2*u*M,L=Math.sqrt(y),_=Math.sqrt(3)/2,j=Math.abs(Math.atan2(s*L,-I)/3);r=2*Math.sqrt(-T);var x=Math.cos(j);o=r*x;var b=r*(-x/2-_*Math.sin(j)),C=o+b>2*a?o-a:b-a,R=s,z=C/R;j=Math.abs(Math.atan2(c*L,-S)/3);var P=-c,U=(o=(r=2*Math.sqrt(-O))*(x=Math.cos(j)))+(b=r*(-x/2-_*Math.sin(j)))<2*u?o+u:b+u,B=P/U,k=-C*U-R*P,F=(u*k-a*(C*P))/(-a*k+u*(R*U));return z<=F?z<=B?F<=B?[z,F,B]:[z,B,F]:[B,z,F]:z<=B?[F,z,B]:F<=B?[F,B,z]:[B,F,z]}var n={};return n.computeDiscriminant=function(t,i,n,r){if("number"!=typeof t)throw new e("a is a required number.");if("number"!=typeof i)throw new e("b is a required number.");if("number"!=typeof n)throw new e("c is a required number.");if("number"!=typeof r)throw new e("d is a required number.");var o=i*i,s=n*n;return 18*t*i*n*r+o*s-t*t*27*(r*r)-4*(t*s*n+o*i*r)},n.computeRealRoots=function(n,r,o,s){if("number"!=typeof n)throw new e("a is a required number.");if("number"!=typeof r)throw new e("b is a required number.");if("number"!=typeof o)throw new e("c is a required number.");if("number"!=typeof s)throw new e("d is a required number.");var a,u;if(0===n)return t.computeRealRoots(r,o,s);if(0===r){if(0===o){if(0===s)return[0,0,0];var c=(u=-s/n)<0?-Math.pow(-u,1/3):Math.pow(u,1/3);return[c,c,c]}return 0===s?(a=t.computeRealRoots(n,0,o),0===a.Length?[0]:[a[0],0,a[1]]):i(n,0,o,s)}return 0===o?0===s?(u=-r/n,u<0?[u,0,0]:[0,0,u]):i(n,r,0,s):0===s?(a=t.computeRealRoots(n,r,o),0===a.length?[0]:a[1]<=0?[a[0],a[1],0]:a[0]>=0?[0,a[0],a[1]]:[a[0],0,a[1]]):i(n,r,o,s)},n}),(0,e.amdDefine)("58",["7","d"],function(e,t){"use strict";function i(e,i,n){var r=e+i;return t.sign(e)!==t.sign(i)&&Math.abs(r/Math.max(Math.abs(e),Math.abs(i)))u&&u/a0?[h/n,o/h]:[o/h,h/n]},n}),(0,e.amdDefine)("59",["57","7","d","58"],function(e,t,i,n){"use strict";function r(t,r,o,s){var a=t*t,u=r-3*a/8,c=o-r*t/2+a*t/8,l=s-o*t/4+r*a/16-3*a*a/256,h=e.computeRealRoots(1,2*u,u*u-4*l,-c*c);if(h.length>0){var d=-t/4,f=h[h.length-1];if(Math.abs(f)=0&&y>=0){var A=Math.sqrt(M),w=Math.sqrt(y);return[d-w,d-A,d+A,d+w]}if(M>=0&&y<0)return g=Math.sqrt(M),[d-g,d+g];if(M<0&&y>=0)return g=Math.sqrt(y),[d-g,d+g]}return[]}if(f>0){var E=Math.sqrt(f),m=(u+f-c/E)/2,v=(u+f+c/E)/2,N=n.computeRealRoots(1,E,m),D=n.computeRealRoots(1,-E,v);return 0!==N.length?(N[0]+=d,N[1]+=d,0!==D.length?(D[0]+=d,D[1]+=d,N[1]<=D[0]?[N[0],N[1],D[0],D[1]]:D[1]<=N[0]?[D[0],D[1],N[0],N[1]]:N[0]>=D[0]&&N[1]<=D[1]?[D[0],N[0],N[1],D[1]]:D[0]>=N[0]&&D[1]<=N[1]?[N[0],D[0],D[1],N[1]]:N[0]>D[0]&&N[0]0){var d,f,p=h[0],g=r-p,M=g*g,y=t/2,A=g/2,w=M-4*s,E=M+4*Math.abs(s),m=a-4*p,v=a+4*Math.abs(p);if(p<0||w*v=_[0]&&L[1]<=_[1]?[_[0],L[0],L[1],_[1]]:_[0]>=L[0]&&_[1]<=L[1]?[L[0],_[0],_[1],L[1]]:L[0]>_[0]&&L[0]<_[1]?[_[0],L[0],_[1],L[1]]:[L[0],_[0],L[1],_[1]]:L;if(0!==_.length)return _}return[]}var s={};return s.computeDiscriminant=function(e,i,n,r,o){if("number"!=typeof e)throw new t("a is a required number.");if("number"!=typeof i)throw new t("b is a required number.");if("number"!=typeof n)throw new t("c is a required number.");if("number"!=typeof r)throw new t("d is a required number.");if("number"!=typeof o)throw new t("e is a required number.");var s=e*e,a=i*i,u=a*i,c=n*n,l=c*n,h=r*r,d=h*r,f=o*o;return a*c*h-4*u*d-4*e*l*h+18*e*i*n*d-27*s*h*h+s*e*256*(f*o)+o*(18*u*n*r-4*a*l+16*e*c*c-80*e*i*c*r-6*e*a*h+144*s*n*h)+f*(144*e*a*n-27*a*a-128*s*c-192*s*i*r)},s.computeRealRoots=function(n,s,a,u,c){if("number"!=typeof n)throw new t("a is a required number.");if("number"!=typeof s)throw new t("b is a required number.");if("number"!=typeof a)throw new t("c is a required number.");if("number"!=typeof u)throw new t("d is a required number.");if("number"!=typeof c)throw new t("e is a required number.");if(Math.abs(n)0){var o=1/(2*e),s=Math.sqrt(r),a=(-t+s)*o,u=(-t-s)*o;return a0?w.push(new e(r,o*R,o*-U)):0!==U?(w.push(new e(r,o*R,o*-U)),w.push(new e(r,o*R,o*U)),++b):w.push(new e(r,o*R,o*U))}return w}var g={};g.rayPlane=function(t,i,o){if(!n(t))throw new r("ray is required.");if(!n(i))throw new r("plane is required.");n(o)||(o=new e);var a=t.origin,u=t.direction,c=i.normal,l=e.dot(c,u);if(!(Math.abs(l)T)return;if(h=e.cross(l,v,E),(f=e.dot(m,h))<0||d+f>T)return;p=e.dot(N,h)/T}else{if(Math.abs(T)1)return;if(h=e.cross(l,v,E),(f=e.dot(m,h)*I)<0||d+f>1)return;p=e.dot(N,h)*I}return p},g.rayTriangle=function(t,i,r,o,s,a){var u=g.rayTriangleParametric(t,i,r,o,s);if(n(u)&&!(u<0))return n(a)||(a=new e),e.multiplyByScalar(t.direction,u,a),e.add(t.origin,a,a)};var m=new l;g.lineSegmentTriangle=function(t,i,o,s,a,u,c){if(!n(t))throw new r("v0 is required.");if(!n(i))throw new r("v1 is required.");if(!n(o))throw new r("p0 is required.");if(!n(s))throw new r("p1 is required.");if(!n(a))throw new r("p2 is required.");var l=m;e.clone(t,l.origin),e.subtract(i,t,l.direction),e.normalize(l.direction,l.direction);var h=g.rayTriangleParametric(l,o,s,a,u);if(!(!n(h)||h<0||h>e.distance(t,i)))return n(c)||(c=new e),e.multiplyByScalar(l.direction,h,c),e.add(l.origin,c,c)};var v={root0:0,root1:0};g.raySphere=function(e,t,i){if(!n(e))throw new r("ray is required.");if(!n(t))throw new r("sphere is required.");if(i=d(e,t,i),n(i)&&!(i.stop<0))return i.start=Math.max(i.start,0),i};var N=new l;g.lineSegmentSphere=function(t,i,o,s){if(!n(t))throw new r("p0 is required.");if(!n(i))throw new r("p1 is required.");if(!n(o))throw new r("sphere is required.");var a=N;e.clone(t,a.origin);var u=e.subtract(i,t,a.direction),c=e.magnitude(u);if(e.normalize(u,u),s=d(a,o,s),!(!n(s)||s.stop<0||s.start>c))return s.start=Math.max(s.start,0),s.stop=Math.min(s.stop,c),s};var D=new e,T=new e;g.rayEllipsoid=function(t,i){if(!n(t))throw new r("ray is required.");if(!n(i))throw new r("ellipsoid is required.");var s,a,u,c,l,h=i.oneOverRadii,d=e.multiplyComponents(h,t.origin,D),f=e.multiplyComponents(h,t.direction,T),p=e.magnitudeSquared(d),g=e.dot(d,f);if(p>1){if(g>=0)return;var M=g*g;if(s=p-1,a=e.magnitudeSquared(f),u=a*s,Mu){c=g*g-u;var y=(l=-g+Math.sqrt(c))/a,A=s/l;return y=0)return o}var l=n(this.rayEllipsoid(t,i)),h=i.transformPositionToScaledSpace(u,I),d=e.normalize(h,h),f=e.mostOrthogonalAxis(h,L),g=e.normalize(e.cross(f,d,O),O),M=e.normalize(e.cross(d,g,S),S),y=j;y[0]=d.x,y[1]=d.y,y[2]=d.z,y[3]=g.x,y[4]=g.y,y[5]=g.z,y[6]=M.x,y[7]=M.y,y[8]=M.z;var A=a.transpose(y,x),w=a.fromScale(i.radii,b),E=a.fromScale(i.oneOverRadii,C),m=R;m[0]=0,m[1]=-u.z,m[2]=u.y,m[3]=u.z,m[4]=0,m[5]=-u.x,m[6]=-u.y,m[7]=u.x,m[8]=0;var v,N,D=a.multiply(a.multiply(A,E,z),m,z),T=a.multiply(a.multiply(D,w,P),y,P),F=a.multiplyByVector(D,o,_),Q=p(T,e.negate(F,I),0,0,1),Y=Q.length;if(Y>0){for(var q=e.clone(e.ZERO,B),G=Number.NEGATIVE_INFINITY,V=0;VG&&(G=W,q=e.clone(v,q))}var X=i.cartesianToCartographic(q,k);return G=s.clamp(G,0,1),N=e.magnitude(e.subtract(q,o,L))*Math.sqrt(1-G*G),N=l?-N:N,X.height=N,i.cartographicToCartesian(X,new e)}};var F=new e;return g.lineSegmentPlane=function(t,i,o,a){if(!n(t))throw new r("endPoint0 is required.");if(!n(i))throw new r("endPoint1 is required.");if(!n(o))throw new r("plane is required.");n(a)||(a=new e);var u=e.subtract(i,t,F),c=o.normal,l=e.dot(c,u);if(!(Math.abs(l)1))return e.multiplyByScalar(u,d,a),e.add(t,a,a),a}},g.trianglePlaneIntersection=function(t,i,o,s){if(!(n(t)&&n(i)&&n(o)&&n(s)))throw new r("p0, p1, p2, and plane are required.");var a=s.normal,u=s.distance,c=e.dot(a,t)+u<0,l=e.dot(a,i)+u<0,h=e.dot(a,o)+u<0,d=0;d+=c?1:0,d+=l?1:0;var f,p;if(1!==(d+=h?1:0)&&2!==d||(f=new e,p=new e),1===d){if(c)return g.lineSegmentPlane(t,i,s,f),g.lineSegmentPlane(t,o,s,p),{positions:[t,i,o,f,p],indices:[0,3,4,1,2,4,1,4,3]};if(l)return g.lineSegmentPlane(i,o,s,f),g.lineSegmentPlane(i,t,s,p),{positions:[t,i,o,f,p],indices:[1,3,4,2,0,4,2,4,3]};if(h)return g.lineSegmentPlane(o,t,s,f),g.lineSegmentPlane(o,i,s,p),{positions:[t,i,o,f,p],indices:[2,3,4,0,1,4,0,4,3]}}else if(2===d){if(!c)return g.lineSegmentPlane(i,t,s,f),g.lineSegmentPlane(o,t,s,p),{positions:[t,i,o,f,p],indices:[1,2,4,1,4,3,0,3,4]};if(!l)return g.lineSegmentPlane(o,i,s,f),g.lineSegmentPlane(t,i,s,p),{positions:[t,i,o,f,p],indices:[2,0,4,2,4,3,1,3,4]};if(!h)return g.lineSegmentPlane(t,o,s,f),g.lineSegmentPlane(i,o,s,p),{positions:[t,i,o,f,p],indices:[0,1,4,0,4,3,2,3,4]}}},g}),(0,e.amdDefine)("5a",["1f","15","5","7"],function(e,t,i,n){"use strict";function r(i,n){n=e.clone(t(n,e.ZERO)),e.equals(n,e.ZERO)||e.normalize(n,n),this.origin=e.clone(t(i,e.ZERO)),this.direction=n}return r.getPoint=function(t,r,o){if(!i(t))throw new n("ray is requred");if("number"!=typeof r)throw new n("t is a required number");return i(o)||(o=new e),o=e.multiplyByScalar(t.direction,r,o),e.add(t.origin,o,o)},r}),(0,e.amdDefine)("5b",["56","a","1f","32","15","5","6","7","42","45","28","34","5a","2a"],function(e,t,i,n,r,o,s,a,u,c,l,h,d,f){"use strict";function p(e,t){if(!o(e))throw new a("origin is required.");if(t=r(t,u.WGS84),e=t.scaleToGeodeticSurface(e),!o(e))throw new a("origin must not be at the center of the ellipsoid.");var n=f.eastNorthUpToFixedFrame(e,t);this._ellipsoid=t,this._origin=e,this._xAxis=i.fromCartesian4(l.getColumn(n,0,g)),this._yAxis=i.fromCartesian4(l.getColumn(n,1,g));var s=i.fromCartesian4(l.getColumn(n,2,g));this._plane=h.fromPointNormal(e,s)}var g=new n;s(p.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},origin:{get:function(){return this._origin}},plane:{get:function(){return this._plane}},xAxis:{get:function(){return this._xAxis}},yAxis:{get:function(){return this._yAxis}},zAxis:{get:function(){return this._plane.normal}}});var M=new e;p.fromPoints=function(t,i){if(!o(t))throw new a("cartesians is required.");return new p(e.fromPoints(t,M).center,i)};var y=new d,A=new i;p.prototype.projectPointOntoPlane=function(e,n){if(!o(e))throw new a("cartesian is required.");var r=y;r.origin=e,i.normalize(e,r.direction);var s=c.rayPlane(r,this._plane,A);if(o(s)||(i.negate(r.direction,r.direction),s=c.rayPlane(r,this._plane,A)),o(s)){var u=i.subtract(s,this._origin,s),l=i.dot(this._xAxis,u),h=i.dot(this._yAxis,u);return o(n)?(n.x=l,n.y=h,n):new t(l,h)}},p.prototype.projectPointsOntoPlane=function(e,t){if(!o(e))throw new a("cartesians is required.");o(t)||(t=[]);for(var i=0,n=e.length,r=0;rh.PI)throw new s("Rectangle width must be between 0 and pi");if(e.height<0||e.height>h.PI)throw new s("Rectangle height must be between 0 and pi");if(o(n)&&!h.equalsEpsilon(n.radii.x,n.radii.y,h.EPSILON15))throw new s("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");t=r(t,0),i=r(i,0),n=r(n,a.WGS84);var l=p.center(e,O),d=n.cartographicToCartesian(l,S),g=new u(d,n),y=g.plane,A=L[0],w=L[1],E=L[2],m=L[3],v=L[4],N=L[5],D=L[6],T=L[7],I=l.longitude,x=e.south<0&&e.north>0?0:l.latitude;D.latitude=N.latitude=v.latitude=e.south,T.latitude=m.latitude=x,A.latitude=w.latitude=E.latitude=e.north,D.longitude=T.longitude=A.longitude=e.west,N.longitude=w.longitude=I,v.longitude=m.longitude=E.longitude=e.east,E.height=w.height=A.height=T.height=D.height=N.height=v.height=m.height=i,n.cartographicArrayToCartesianArray(L,_),g.projectPointsToNearestOnPlane(_,j);var b=Math.min(j[6].x,j[7].x,j[0].x),C=Math.max(j[2].x,j[3].x,j[4].x),R=Math.min(j[4].y,j[5].y,j[6].y),z=Math.max(j[0].y,j[1].y,j[2].y);return E.height=A.height=v.height=D.height=t,n.cartographicArrayToCartesianArray(L,_),M(g,b,C,R,z,Math.min(f.getPointDistance(y,_[0]),f.getPointDistance(y,_[2]),f.getPointDistance(y,_[4]),f.getPointDistance(y,_[6])),i,c)},g.clone=function(e,t){if(o(e))return o(t)?(i.clone(e.center,t.center),d.clone(e.halfAxes,t.halfAxes),t):new g(e.center,e.halfAxes)},g.intersectPlane=function(e,t){if(!o(e))throw new s("box is required.");if(!o(t))throw new s("plane is required.");var n=e.center,r=t.normal,a=e.halfAxes,u=r.x,l=r.y,h=r.z,f=Math.abs(u*a[d.COLUMN0ROW0]+l*a[d.COLUMN0ROW1]+h*a[d.COLUMN0ROW2])+Math.abs(u*a[d.COLUMN1ROW0]+l*a[d.COLUMN1ROW1]+h*a[d.COLUMN1ROW2])+Math.abs(u*a[d.COLUMN2ROW0]+l*a[d.COLUMN2ROW1]+h*a[d.COLUMN2ROW2]),p=i.dot(r,n)+t.distance;return p<=-f?c.OUTSIDE:p>=f?c.INSIDE:c.INTERSECTING};var x=new i,b=new i,C=new i,R=new i;g.distanceSquaredTo=function(e,t){if(!o(e))throw new s("box is required.");if(!o(t))throw new s("cartesian is required.");var n=i.subtract(t,e.center,T),r=e.halfAxes,a=d.getColumn(r,0,x),u=d.getColumn(r,1,b),c=d.getColumn(r,2,C),l=i.magnitude(a),h=i.magnitude(u),f=i.magnitude(c);i.normalize(a,a),i.normalize(u,u),i.normalize(c,c);var p=R;p.x=i.dot(n,a),p.y=i.dot(n,u),p.z=i.dot(n,c);var g,M=0;return p.x<-l?M+=(g=p.x+l)*g:p.x>l&&(M+=(g=p.x-l)*g),p.y<-h?M+=(g=p.y+h)*g:p.y>h&&(M+=(g=p.y-h)*g),p.z<-f?M+=(g=p.z+f)*g:p.z>f&&(M+=(g=p.z-f)*g),M};var z=new i,P=new i;g.computePlaneDistances=function(e,t,n,r){if(!o(e))throw new s("box is required.");if(!o(t))throw new s("position is required.");if(!o(n))throw new s("direction is required.");o(r)||(r=new l);var a=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,c=e.center,h=e.halfAxes,f=d.getColumn(h,0,x),p=d.getColumn(h,1,b),g=d.getColumn(h,2,C),M=i.add(f,p,z);i.add(M,g,M),i.add(M,c,M);var y=i.subtract(M,t,P),A=i.dot(n,y);return a=Math.min(A,a),u=Math.max(A,u),i.add(c,f,M),i.add(M,p,M),i.subtract(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.add(c,f,M),i.subtract(M,p,M),i.add(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.add(c,f,M),i.subtract(M,p,M),i.subtract(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.subtract(c,f,M),i.add(M,p,M),i.add(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.subtract(c,f,M),i.add(M,p,M),i.subtract(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.subtract(c,f,M),i.subtract(M,p,M),i.add(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),i.subtract(c,f,M),i.subtract(M,p,M),i.subtract(M,g,M),i.subtract(M,t,y),A=i.dot(n,y),a=Math.min(A,a),u=Math.max(A,u),r.start=a,r.stop=u,r};var U=new e;return g.isOccluded=function(t,i){if(!o(t))throw new s("box is required.");if(!o(i))throw new s("occluder is required.");var n=e.fromOrientedBoundingBox(t,U);return!i.isBoundingSphereVisible(n)},g.prototype.intersectPlane=function(e){return g.intersectPlane(this,e)},g.prototype.distanceSquaredTo=function(e){return g.distanceSquaredTo(this,e)},g.prototype.computePlaneDistances=function(e,t,i){return g.computePlaneDistances(this,e,t,i)},g.prototype.isOccluded=function(e){return g.isOccluded(this,e)},g.equals=function(e,t){return e===t||o(e)&&o(t)&&i.equals(e.center,t.center)&&d.equals(e.halfAxes,t.halfAxes)},g.prototype.clone=function(e){return g.clone(this,e)},g.prototype.equals=function(e){return g.equals(this,e)},g}),(0,e.amdDefine)("5d",["48","3b","15","5","5e","11","17","5f","60","2c","3e","3f"],function(e,t,i,n,r,o,s,a,u,c,l,h){"use strict";function d(t){if(t=i(t,i.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._downloadPromise=void 0,this._dataError=void 0,this._addNewLeapSeconds=i(t.addNewLeapSeconds,!0),n(t.data))p(this,t.data);else if(n(t.url)){var r=this;this._downloadPromise=e(u(t.url),function(e){p(r,e)},function(){r._dataError="An error occurred while retrieving the EOP data from the URL "+t.url+"."})}else p(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function f(e,t){return s.compare(e.julianDate,t)}function p(e,i){if(n(i.columnNames))if(n(i.samples)){var r=i.columnNames.indexOf("modifiedJulianDateUtc"),o=i.columnNames.indexOf("xPoleWanderRadians"),u=i.columnNames.indexOf("yPoleWanderRadians"),c=i.columnNames.indexOf("ut1MinusUtcSeconds"),d=i.columnNames.indexOf("xCelestialPoleOffsetRadians"),p=i.columnNames.indexOf("yCelestialPoleOffsetRadians"),g=i.columnNames.indexOf("taiMinusUtcSeconds");if(r<0||o<0||u<0||c<0||d<0||p<0||g<0)e._dataError="Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns";else{var M=e._samples=i.samples,y=e._dates=[];e._dateColumn=r,e._xPoleWanderRadiansColumn=o,e._yPoleWanderRadiansColumn=u,e._ut1MinusUtcSecondsColumn=c,e._xCelestialPoleOffsetRadiansColumn=d,e._yCelestialPoleOffsetRadiansColumn=p,e._taiMinusUtcSecondsColumn=g,e._columnCount=i.columnNames.length,e._lastIndex=void 0;for(var A,w=e._addNewLeapSeconds,E=0,m=M.length;Et.length-1)return a.xPoleWander=0,a.yPoleWander=0,a.xPoleOffset=0,a.yPoleOffset=0,a.ut1MinusUtc=0,a;var c=t[r],l=t[o];if(c.equals(l)||n.equals(c))return g(e,i,r,u,a),a;if(n.equals(l))return g(e,i,o,u,a),a;var h=s.secondsDifference(n,c)/s.secondsDifference(l,c),d=r*u,f=o*u,p=i[d+e._ut1MinusUtcSecondsColumn],y=i[f+e._ut1MinusUtcSecondsColumn],A=y-p;if(A>.5||A<-.5){var w=i[d+e._taiMinusUtcSecondsColumn],E=i[f+e._taiMinusUtcSecondsColumn];w!==E&&(l.equals(n)?p=y:y-=E-w)}return a.xPoleWander=M(h,i[d+e._xPoleWanderRadiansColumn],i[f+e._xPoleWanderRadiansColumn]),a.yPoleWander=M(h,i[d+e._yPoleWanderRadiansColumn],i[f+e._yPoleWanderRadiansColumn]),a.xPoleOffset=M(h,i[d+e._xCelestialPoleOffsetRadiansColumn],i[f+e._xCelestialPoleOffsetRadiansColumn]),a.yPoleOffset=M(h,i[d+e._yCelestialPoleOffsetRadiansColumn],i[f+e._yCelestialPoleOffsetRadiansColumn]),a.ut1MinusUtc=M(h,p,y),a}return d.NONE=o({getPromiseToLoad:function(){return e()},compute:function(e,t){return n(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new r(0,0,0,0,0),t}}),d.prototype.getPromiseToLoad=function(){return e(this._downloadPromise)},d.prototype.compute=function(e,i){if(n(this._samples)){if(n(i)||(i=new r(0,0,0,0,0)),0===this._samples.length)return i.xPoleWander=0,i.yPoleWander=0,i.xPoleOffset=0,i.yPoleOffset=0,i.ut1MinusUtc=0,i;var o=this._dates,a=this._lastIndex,u=0,l=0;if(n(a)){var h=o[a],d=o[a+1],f=s.lessThanOrEquals(h,e),p=!n(d),g=p||s.greaterThanOrEquals(d,e);if(f&&g)return u=a,!p&&d.equals(e)&&++u,l=u+1,y(this,o,this._samples,e,u,l,i),i}var M=t(o,e,s.compare,this._dateColumn);return M>=0?(M0){var s=r.substring(0,o),a=r.substring(o+2);t[s]=a}}return t}}),(0,e.amdDefine)("63",["5","62"],function(e,t){"use strict";function i(e,i,n){this.statusCode=e,this.response=i,this.responseHeaders=n,"string"==typeof this.responseHeaders&&(this.responseHeaders=t(this.responseHeaders))}return i.prototype.toString=function(){var t="Request has failed.";return e(this.statusCode)&&(t+=" Status Code: "+this.statusCode),t},i}),(0,e.amdDefine)("4b",["47","5","7"],function(e,t,i){"use strict";function n(i){var n=new e(i);n.normalize();var r=n.getAuthority();if(t(r)){if(-1!==r.indexOf("@")&&(r=r.split("@")[1]),-1===r.indexOf(":")){var o=n.getScheme();if(t(o)||(o=(o=window.location.protocol).substring(0,o.length-1)),"http"===o)r+=":80";else{if("https"!==o)return;r+=":443"}}return r}}var r={},o={};return r.add=function(e,n){if(!t(e))throw new i("host is required.");if(!t(n)||n<=0)throw new i("port is required to be greater than 0.");var r=e.toLowerCase()+":"+n;t(o[r])||(o[r]=!0)},r.remove=function(e,n){if(!t(e))throw new i("host is required.");if(!t(n)||n<=0)throw new i("port is required to be greater than 0.");var r=e.toLowerCase()+":"+n;t(o[r])&&delete o[r]},r.contains=function(e){if(!t(e))throw new i("url is required.");var r=n(e);return!(!t(r)||!t(o[r]))},r.clear=function(){o={}},r}),(0,e.amdDefine)("64",["48","15","5","7","63","2c","4b"],function(e,t,i,n,r,o,s){"use strict";function a(r){if(r=t(r,t.EMPTY_OBJECT),!i(r.url))throw new n("options.url is required.");var o=r.responseType,s=t(r.method,"GET"),u=r.data,c=r.headers,l=r.overrideMimeType;return e(r.url,function(t){var i=e.defer();return a.load(t,o,s,u,c,i,l),i.promise})}function u(e,t){var i=decodeURIComponent(t);return e?atob(i):i}function c(e,t){for(var i=u(e,t),n=new ArrayBuffer(i.length),r=new Uint8Array(n),o=0;o=300)c.reject(new r(p.status,p.response,p.getAllResponseHeaders()));else{var e=p.response,n=p.responseType;if(!i(e)||i(t)&&n!==t)if("json"===t&&"string"==typeof e)try{c.resolve(JSON.parse(e))}catch(e){c.reject(e)}else(""===n||"document"===n)&&i(p.responseXML)&&p.responseXML.hasChildNodes()?c.resolve(p.responseXML):""!==n&&"text"!==n||!i(p.responseText)?c.reject(new o("Invalid XMLHttpRequest response type.")):c.resolve(p.responseText);else c.resolve(e)}},p.onerror=function(e){c.reject(new r)},p.send(a)}else c.resolve(l(f,t))},a.defaultLoad=a.load,a}),(0,e.amdDefine)("65",["64"],function(e){"use strict";return function(t,i){return e({url:t,headers:i})}}),(0,e.amdDefine)("60",["61","5","7","65"],function(e,t,i,n){"use strict";var r={Accept:"application/json,*/*;q=0.01"};return function(o,s){if(!t(o))throw new i("url is required.");return t(s)?t(s.Accept)||((s=e(s)).Accept=r.Accept):s=r,n(o,s).then(function(e){return JSON.parse(e)})}}),(0,e.amdDefine)("66",["48","67","15","5","68","17","60","3f"],function(e,t,i,n,r,o,s,a){"use strict";function u(e){e=i(e,i.EMPTY_OBJECT),this._xysFileUrlTemplate=e.xysFileUrlTemplate,this._interpolationOrder=i(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=i(e.sampleZeroJulianEphemerisDate,2442396.5),this._sampleZeroDateTT=new o(this._sampleZeroJulianEphemerisDate,0,a.TAI),this._stepSizeDays=i(e.stepSizeDays,1),this._samplesPerXysFile=i(e.samplesPerXysFile,1e3),this._totalSamples=i(e.totalSamples,27426),this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];for(var t=this._interpolationOrder,n=this._denominators=new Array(t+1),r=this._xTable=new Array(t+1),s=Math.pow(this._stepSizeDays,t),u=0;u<=t;++u){n[u]=s,r[u]=u*this._stepSizeDays;for(var c=0;c<=t;++c)c!==u&&(n[u]*=u-c);n[u]=1/n[u]}this._work=new Array(t+1),this._coef=new Array(t+1)}function c(e,t,i){var n=h;return n.dayNumber=t,n.secondsOfDay=i,o.daysDifference(n,e._sampleZeroDateTT)}function l(i,r){if(i._chunkDownloadsInProgress[r])return i._chunkDownloadsInProgress[r];var o=e.defer();i._chunkDownloadsInProgress[r]=o;var a,u=i._xysFileUrlTemplate;return a=n(u)?u.replace("{0}",r):t("Assets/IAU2006_XYS/IAU2006_XYS_"+r+".json"),e(s(a),function(e){i._chunkDownloadsInProgress[r]=!1;for(var t=i._samples,n=e.samples,s=r*i._samplesPerXysFile*3,a=0,u=n.length;a=this._totalSamples&&(u=this._totalSamples-1);for(var h=a/this._samplesPerXysFile|0,d=u/this._samplesPerXysFile|0,f=[],p=h;p<=d;++p)f.push(l(this,p));return e.all(f)},u.prototype.computeXysRadians=function(e,t,i){var o=c(this,e,t);if(!(o<0)){var s=o/this._stepSizeDays|0;if(!(s>=this._totalSamples)){var a=this._interpolationOrder,u=s-(a/2|0);u<0&&(u=0);var h=u+a;h>=this._totalSamples&&(u=(h=this._totalSamples-1)-a)<0&&(u=0);var d=!1,f=this._samples;if(n(f[3*u])||(l(this,u/this._samplesPerXysFile|0),d=!0),n(f[3*h])||(l(this,h/this._samplesPerXysFile|0),d=!0),!d){n(i)?(i.x=0,i.y=0,i.s=0):i=new r(0,0,0);var p,g,M=o-u*this._stepSizeDays,y=this._work,A=this._denominators,w=this._coef,E=this._xTable;for(p=0;p<=a;++p)y[p]=M-E[p];for(p=0;p<=a;++p){for(w[p]=1,g=0;g<=a;++g)g!==p&&(w[p]*=y[g]);w[p]*=A[p];var m=3*(u+p);i.x+=w[p]*f[m++],i.y+=w[p]*f[m++],i.s+=w[p]*f[m]}return i}}}},u}),(0,e.amdDefine)("68",[],function(){"use strict";return function(e,t,i){this.x=e,this.y=t,this.s=i}}),function(){(0,e.amdDefine)("69",[],function(){return function(){var e=/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuideEfFgG])/g,t=arguments,i=0,n=function(e,t,i,n){i||(i=" ");var r=e.length>=t?"":Array(1+t-e.length>>>0).join(i);return n?e+r:r+e},r=function(e,t,i,r,o,s){var a=r-e.length;return a>0&&(e=i||!o?n(e,r,s,i):e.slice(0,t.length)+n("",a,"0",!0)+e.slice(t.length)),e},o=function(e,t,i,o,s,a,u){var c=e>>>0;return i=i&&c&&{2:"0b",8:"0",16:"0x"}[t]||"",e=i+n(c.toString(t),a||0,"0",!1),r(e,i,o,s,u)},s=function(e,t,i,n,o,s){return null!=n&&(e=e.slice(0,n)),r(e,"",t,i,o,s)};return t[i++].replace(e,function(e,a,u,c,l,h,d){var f,p,g,M,y;if("%%"==e)return"%";for(var A=!1,w="",E=!1,m=!1,v=" ",N=u.length,D=0;u&&D-1?6:"d"==d?0:void 0,y=a?t[a.slice(0,-1)]:t[i++],d){case"s":return s(String(y),A,c,h,E,v);case"c":return s(String.fromCharCode(+y),A,c,h,E);case"b":return o(y,2,m,A,c,h,E);case"o":return o(y,8,m,A,c,h,E);case"x":return o(y,16,m,A,c,h,E);case"X":return o(y,16,m,A,c,h,E).toUpperCase();case"u":return o(y,10,m,A,c,h,E);case"i":case"d":return f=+y||0,f=Math.round(f-f%1),p=f<0?"-":w,y=p+n(String(Math.abs(f)),h,"0",!1),r(y,p,A,c,E);case"e":case"E":case"f":case"F":case"g":case"G":return f=+y,p=f<0?"-":w,g=["toExponential","toFixed","toPrecision"]["efg".indexOf(d.toLowerCase())],M=["toString","toUpperCase"]["eEfFgG".indexOf(d)%2],y=p+Math.abs(f)[g](h),r(y,p,A,c,E)[M]();default:return e}})}})}(),(0,e.amdDefine)("3b",["5","7"],function(e,t){"use strict";return function(i,n,r){if(!e(i))throw new t("array is required.");if(!e(n))throw new t("itemToFind is required.");if(!e(r))throw new t("comparator is required.");for(var o,s,a=0,u=i.length-1;a<=u;)if(o=~~((a+u)/2),(s=r(i[o],n))<0)a=o+1;else{if(!(s>0))return o;u=o-1}return~(u+1)}}),(0,e.amdDefine)("6a",[],function(){"use strict";return function(e,t,i,n,r,o,s,a){this.year=e,this.month=t,this.day=i,this.hour=n,this.minute=r,this.second=o,this.millisecond=s,this.isLeapSecond=a}}),(0,e.amdDefine)("6b",["7"],function(e){"use strict";return function(t){if(null===t||isNaN(t))throw new e("year is required and must be a number.");return t%4==0&&t%100!=0||t%400==0}}),(0,e.amdDefine)("5f",[],function(){"use strict";return function(e,t){this.julianDate=e,this.offset=t}}),(0,e.amdDefine)("3f",["11"],function(e){"use strict";return e({UTC:0,TAI:1})}),(0,e.amdDefine)("17",["69","3b","15","5","7","6a","6b","5f","3e","3f"],function(e,t,i,n,r,o,s,a,u,c){"use strict";function l(e,t){return g.compare(e.julianDate,t.julianDate)}function h(e){A.julianDate=e;var i=g.leapSeconds,n=t(i,A,l);n<0&&(n=~n),n>=i.length&&(n=i.length-1);var r=i[n].offset;n>0&&g.secondsDifference(i[n].julianDate,e)>r&&(r=i[--n].offset),g.addSeconds(e,r,e)}function d(e,i){A.julianDate=e;var n=g.leapSeconds,r=t(n,A,l);if(r<0&&(r=~r),0===r)return g.addSeconds(e,-n[0].offset,i);if(r>=n.length)return g.addSeconds(e,-n[r-1].offset,i);var o=g.secondsDifference(n[r].julianDate,e);return 0===o?g.addSeconds(e,-n[r].offset,i):o<=1?void 0:g.addSeconds(e,-n[--r].offset,i)}function f(e,t,i){var n=t/u.SECONDS_PER_DAY|0;return e+=n,(t-=u.SECONDS_PER_DAY*n)<0&&(e--,t+=u.SECONDS_PER_DAY),i.dayNumber=e,i.secondsOfDay=t,i}function p(e,t,i,n,r,o,s){var a=(t-14)/12|0,c=e+4800+a,l=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+i-32075;(n-=12)<0&&(n+=24);var h=o+(n*u.SECONDS_PER_HOUR+r*u.SECONDS_PER_MINUTE+s*u.SECONDS_PER_MILLISECOND);return h>=43200&&(l-=1),[l,h]}function g(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=i(e,0),t=i(t,0),n=i(n,c.UTC);var r=0|e;f(r,t+=(e-r)*u.SECONDS_PER_DAY,this),n===c.UTC&&h(this)}var M=new o,y=[31,28,31,30,31,30,31,31,30,31,30,31],A=new a,w=/^(\d{4})$/,E=/^(\d{4})-(\d{2})$/,m=/^(\d{4})-?(\d{3})$/,v=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,N=/^(\d{4})-?(\d{2})-?(\d{2})$/,D=/([Z+\-])?(\d{2})?:?(\d{2})?$/,T=/^(\d{2})(\.\d+)?/.source+D.source,I=/^(\d{2}):?(\d{2})(\.\d+)?/.source+D.source,O=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+D.source,S="Invalid ISO 8601 date.";g.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new r("date must be a valid JavaScript Date.");var i=p(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return n(t)?(f(i[0],i[1],t),h(t),t):new g(i[0],i[1],c.UTC)},g.fromIso8601=function(e,t){if("string"!=typeof e)throw new r(S);var i,o,a,u=(e=e.replace(",",".")).split("T"),l=1,d=1,M=0,A=0,D=0,L=0,_=u[0],j=u[1];if(!n(_))throw new r(S);var x;if(null!==(u=_.match(N))){if((x=_.split("-").length-1)>0&&2!==x)throw new r(S);i=+u[1],l=+u[2],d=+u[3]}else if(null!==(u=_.match(E)))i=+u[1],l=+u[2];else if(null!==(u=_.match(w)))i=+u[1];else{var b;if(null!==(u=_.match(m))){if(i=+u[1],b=+u[2],a=s(i),b<1||a&&b>366||!a&&b>365)throw new r(S)}else{if(null===(u=_.match(v)))throw new r(S);i=+u[1];var C=+u[2],R=+u[3]||0;if((x=_.split("-").length-1)>0&&(!n(u[3])&&1!==x||n(u[3])&&2!==x))throw new r(S);b=7*C+R-new Date(Date.UTC(i,0,4)).getUTCDay()-3}(o=new Date(Date.UTC(i,0,1))).setUTCDate(b),l=o.getUTCMonth()+1,d=o.getUTCDate()}if(a=s(i),l<1||l>12||d<1||(2!==l||!a)&&d>y[l-1]||a&&2===l&&d>29)throw new r(S);var z;if(n(j)){if(null!==(u=j.match(O))){if((x=j.split(":").length-1)>0&&2!==x&&3!==x)throw new r(S);M=+u[1],A=+u[2],D=+u[3],L=1e3*+(u[4]||0),z=5}else if(null!==(u=j.match(I))){if((x=j.split(":").length-1)>2)throw new r(S);M=+u[1],A=+u[2],D=60*+(u[3]||0),z=4}else{if(null===(u=j.match(T)))throw new r(S);M=+u[1],A=60*+(u[2]||0),z=3}if(A>=60||D>=61||M>24||24===M&&(A>0||D>0||L>0))throw new r(S);var P=u[z],U=+u[z+1],B=+(u[z+2]||0);switch(P){case"+":M-=U,A-=B;break;case"-":M+=U,A+=B;break;case"Z":break;default:A+=new Date(Date.UTC(i,l-1,d,M,A)).getTimezoneOffset()}}else A+=new Date(i,l-1,d).getTimezoneOffset();var k=60===D;for(k&&D--;A>=60;)A-=60,M++;for(;M>=24;)M-=24,d++;for(o=a&&2===l?29:y[l-1];d>o;)d-=o,++l>12&&(l-=12,i++),o=a&&2===l?29:y[l-1];for(;A<0;)A+=60,M--;for(;M<0;)M+=24,d--;for(;d<1;)--l<1&&(l+=12,i--),d+=o=a&&2===l?29:y[l-1];var F=p(i,l,d,M,A,D,L);return n(t)?(f(F[0],F[1],t),h(t)):t=new g(F[0],F[1],c.UTC),k&&g.addSeconds(t,1,t),t},g.now=function(e){return g.fromDate(new Date,e)};var L=new g(0,0,c.TAI);return g.toGregorianDate=function(e,t){if(!n(e))throw new r("julianDate is required.");var i=!1,s=d(e,L);n(s)||(g.addSeconds(e,-1,L),s=d(L,L),i=!0);var a=s.dayNumber,c=s.secondsOfDay;c>=43200&&(a+=1);var l=a+68569|0,h=4*l/146097|0,f=4e3*(1+(l=l-((146097*h+3)/4|0)|0))/1461001|0,p=80*(l=l-(1461*f/4|0)+31|0)/2447|0,M=l-(2447*p/80|0)|0,y=p+2-12*(l=p/11|0)|0,A=100*(h-49)+f+l|0,w=c/u.SECONDS_PER_HOUR|0,E=c-w*u.SECONDS_PER_HOUR,m=E/u.SECONDS_PER_MINUTE|0,v=0|(E-=m*u.SECONDS_PER_MINUTE),N=(E-v)/u.SECONDS_PER_MILLISECOND;return(w+=12)>23&&(w-=24),i&&(v+=1),n(t)?(t.year=A,t.month=y,t.day=M,t.hour=w,t.minute=m,t.second=v,t.millisecond=N,t.isLeapSecond=i,t):new o(A,y,M,w,m,v,N,i)},g.toDate=function(e){if(!n(e))throw new r("julianDate is required.");var t=g.toGregorianDate(e,M),i=t.second;return t.isLeapSecond&&(i-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,i,t.millisecond))},g.toIso8601=function(t,i){if(!n(t))throw new r("julianDate is required.");var o,s=g.toGregorianDate(t,s);return n(i)||0===s.millisecond?n(i)&&0!==i?(o=(.01*s.millisecond).toFixed(i).replace(".","").slice(0,i),e("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",s.year,s.month,s.day,s.hour,s.minute,s.second,o)):e("%04d-%02d-%02dT%02d:%02d:%02dZ",s.year,s.month,s.day,s.hour,s.minute,s.second):(o=(.01*s.millisecond).toString().replace(".",""),e("%04d-%02d-%02dT%02d:%02d:%02d.%sZ",s.year,s.month,s.day,s.hour,s.minute,s.second,o))},g.clone=function(e,t){if(n(e))return n(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new g(e.dayNumber,e.secondsOfDay,c.TAI)},g.compare=function(e,t){if(!n(e))throw new r("left is required.");if(!n(t))throw new r("right is required.");var i=e.dayNumber-t.dayNumber;return 0!==i?i:e.secondsOfDay-t.secondsOfDay},g.equals=function(e,t){return e===t||n(e)&&n(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay},g.equalsEpsilon=function(e,t,i){if(!n(i))throw new r("epsilon is required.");return e===t||n(e)&&n(t)&&Math.abs(g.secondsDifference(e,t))<=i},g.totalDays=function(e){if(!n(e))throw new r("julianDate is required.");return e.dayNumber+e.secondsOfDay/u.SECONDS_PER_DAY},g.secondsDifference=function(e,t){if(!n(e))throw new r("left is required.");if(!n(t))throw new r("right is required.");return(e.dayNumber-t.dayNumber)*u.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)},g.daysDifference=function(e,t){if(!n(e))throw new r("left is required.");if(!n(t))throw new r("right is required.");return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/u.SECONDS_PER_DAY},g.computeTaiMinusUtc=function(e){A.julianDate=e;var i=g.leapSeconds,n=t(i,A,l);return n<0&&(n=~n,--n<0&&(n=0)),i[n].offset},g.addSeconds=function(e,t,i){if(!n(e))throw new r("julianDate is required.");if(!n(t))throw new r("seconds is required.");if(!n(i))throw new r("result is required.");return f(e.dayNumber,e.secondsOfDay+t,i)},g.addMinutes=function(e,t,i){if(!n(e))throw new r("julianDate is required.");if(!n(t))throw new r("minutes is required.");if(!n(i))throw new r("result is required.");var o=e.secondsOfDay+t*u.SECONDS_PER_MINUTE;return f(e.dayNumber,o,i)},g.addHours=function(e,t,i){if(!n(e))throw new r("julianDate is required.");if(!n(t))throw new r("hours is required.");if(!n(i))throw new r("result is required.");var o=e.secondsOfDay+t*u.SECONDS_PER_HOUR;return f(e.dayNumber,o,i)},g.addDays=function(e,t,i){if(!n(e))throw new r("julianDate is required.");if(!n(t))throw new r("days is required.");if(!n(i))throw new r("result is required.");return f(e.dayNumber+t,e.secondsOfDay,i)},g.lessThan=function(e,t){return g.compare(e,t)<0},g.lessThanOrEquals=function(e,t){return g.compare(e,t)<=0},g.greaterThan=function(e,t){return g.compare(e,t)>0},g.greaterThanOrEquals=function(e,t){return g.compare(e,t)>=0},g.prototype.clone=function(e){return g.clone(this,e)},g.prototype.equals=function(e){return g.equals(this,e)},g.prototype.equalsEpsilon=function(e,t){return g.equalsEpsilon(this,e,t)},g.prototype.toString=function(){return g.toIso8601(this)},g.leapSeconds=[new a(new g(2441317,43210,c.TAI),10),new a(new g(2441499,43211,c.TAI),11),new a(new g(2441683,43212,c.TAI),12),new a(new g(2442048,43213,c.TAI),13),new a(new g(2442413,43214,c.TAI),14),new a(new g(2442778,43215,c.TAI),15),new a(new g(2443144,43216,c.TAI),16),new a(new g(2443509,43217,c.TAI),17),new a(new g(2443874,43218,c.TAI),18),new a(new g(2444239,43219,c.TAI),19),new a(new g(2444786,43220,c.TAI),20),new a(new g(2445151,43221,c.TAI),21),new a(new g(2445516,43222,c.TAI),22),new a(new g(2446247,43223,c.TAI),23),new a(new g(2447161,43224,c.TAI),24),new a(new g(2447892,43225,c.TAI),25),new a(new g(2448257,43226,c.TAI),26),new a(new g(2448804,43227,c.TAI),27),new a(new g(2449169,43228,c.TAI),28),new a(new g(2449534,43229,c.TAI),29),new a(new g(2450083,43230,c.TAI),30),new a(new g(2450630,43231,c.TAI),31),new a(new g(2451179,43232,c.TAI),32),new a(new g(2453736,43233,c.TAI),33),new a(new g(2454832,43234,c.TAI),34),new a(new g(2456109,43235,c.TAI),35),new a(new g(2457204,43236,c.TAI),36),new a(new g(2457754,43237,c.TAI),37)],g}),(0,e.amdDefine)("6c",["15","5","7"],function(e,t,i){"use strict";function n(n,o){if(!t(n))throw new i("identifier is required.");t(r[n])||(r[n]=!0,console.warn(e(o,n)))}var r={};return n.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",n}),(0,e.amdDefine)("6d",["5","7","6c"],function(e,t,i){"use strict";return function(n,r){if(!e(n)||!e(r))throw new t("identifier and message are required.");i(n,r)}}),(0,e.amdDefine)("6e",["15","5","7","d"],function(e,t,i,n){"use strict";function r(t,i,n){this.heading=e(t,0),this.pitch=e(i,0),this.roll=e(n,0)}return r.fromQuaternion=function(e,n){if(!t(e))throw new i("quaternion is required");t(n)||(n=new r);var o=2*(e.w*e.y-e.z*e.x),s=1-2*(e.x*e.x+e.y*e.y),a=2*(e.w*e.x+e.y*e.z),u=1-2*(e.y*e.y+e.z*e.z),c=2*(e.w*e.z+e.x*e.y);return n.heading=-Math.atan2(c,u),n.roll=Math.atan2(a,s),n.pitch=-Math.asin(o),n},r.fromDegrees=function(e,o,s,a){if(!t(e))throw new i("heading is required");if(!t(o))throw new i("pitch is required");if(!t(s))throw new i("roll is required");return t(a)||(a=new r),a.heading=e*n.RADIANS_PER_DEGREE,a.pitch=o*n.RADIANS_PER_DEGREE,a.roll=s*n.RADIANS_PER_DEGREE,a},r.clone=function(e,i){if(t(e))return t(i)?(i.heading=e.heading,i.pitch=e.pitch,i.roll=e.roll,i):new r(e.heading,e.pitch,e.roll)},r.equals=function(e,i){return e===i||t(e)&&t(i)&&e.heading===i.heading&&e.pitch===i.pitch&&e.roll===i.roll},r.equalsEpsilon=function(e,i,r,o){return e===i||t(e)&&t(i)&&n.equalsEpsilon(e.heading,i.heading,r,o)&&n.equalsEpsilon(e.pitch,i.pitch,r,o)&&n.equalsEpsilon(e.roll,i.roll,r,o)},r.prototype.clone=function(e){return r.clone(this,e)},r.prototype.equals=function(e){return r.equals(this,e)},r.prototype.equalsEpsilon=function(e,t,i){return r.equalsEpsilon(this,e,t,i)},r.prototype.toString=function(){return"("+this.heading+", "+this.pitch+", "+this.roll+")"},r}),(0,e.amdDefine)("29",["1f","54","15","5","6d","3c","11","6e","d","27"],function(e,t,i,n,r,o,s,a,u,c){"use strict";function l(e,t,n,r){this.x=i(e,0),this.y=i(t,0),this.z=i(n,0),this.w=i(r,0)}var h=new e;l.fromAxisAngle=function(i,r,o){t.typeOf.object("axis",i),t.typeOf.number("angle",r);var s=r/2,a=Math.sin(s),u=(h=e.normalize(i,h)).x*a,c=h.y*a,d=h.z*a,f=Math.cos(s);return n(o)?(o.x=u,o.y=c,o.z=d,o.w=f,o):new l(u,c,d,f)};var d=[1,2,0],f=new Array(3);l.fromRotationMatrix=function(e,i){t.typeOf.object("matrix",e);var r,o,s,a,u,h=e[c.COLUMN0ROW0],p=e[c.COLUMN1ROW1],g=e[c.COLUMN2ROW2],M=h+p+g;if(M>0)u=.5*(r=Math.sqrt(M+1)),r=.5/r,o=(e[c.COLUMN1ROW2]-e[c.COLUMN2ROW1])*r,s=(e[c.COLUMN2ROW0]-e[c.COLUMN0ROW2])*r,a=(e[c.COLUMN0ROW1]-e[c.COLUMN1ROW0])*r;else{var y=d,A=0;p>h&&(A=1),g>h&&g>p&&(A=2);var w=y[A],E=y[w];r=Math.sqrt(e[c.getElementIndex(A,A)]-e[c.getElementIndex(w,w)]-e[c.getElementIndex(E,E)]+1);var m=f;m[A]=.5*r,r=.5/r,u=(e[c.getElementIndex(E,w)]-e[c.getElementIndex(w,E)])*r,m[w]=(e[c.getElementIndex(w,A)]+e[c.getElementIndex(A,w)])*r,m[E]=(e[c.getElementIndex(E,A)]+e[c.getElementIndex(A,E)])*r,o=-m[0],s=-m[1],a=-m[2]}return n(i)?(i.x=o,i.y=s,i.z=a,i.w=u,i):new l(o,s,a,u)};var p=new l,g=new l,M=new l,y=new l;l.fromHeadingPitchRoll=function(i,n,o,s){i instanceof a?t.typeOf.object("headingPitchRoll",i):(t.typeOf.number("heading",i),t.typeOf.number("pitch",n),t.typeOf.number("roll",o));var u;return i instanceof a?(u=i,s=n):(r("Quaternion.fromHeadingPitchRoll(heading, pitch, roll,result)","The method was deprecated in Cesium 1.32 and will be removed in version 1.33. Use Quaternion.fromHeadingPitchRoll(hpr,result) where hpr is a HeadingPitchRoll"),u=new a(i,n,o)),y=l.fromAxisAngle(e.UNIT_X,u.roll,p),M=l.fromAxisAngle(e.UNIT_Y,-u.pitch,s),s=l.multiply(M,y,M),g=l.fromAxisAngle(e.UNIT_Z,-u.heading,p),l.multiply(g,s,s)};var A=new e,w=new e,E=new l,m=new l,v=new l;l.packedLength=4,l.pack=function(e,n,r){return t.typeOf.object("value",e),t.defined("array",n),r=i(r,0),n[r++]=e.x,n[r++]=e.y,n[r++]=e.z,n[r]=e.w,n},l.unpack=function(e,r,o){return t.defined("array",e),r=i(r,0),n(o)||(o=new l),o.x=e[r],o.y=e[r+1],o.z=e[r+2],o.w=e[r+3],o},l.packedInterpolationLength=3,l.convertPackedArrayForInterpolation=function(e,t,i,n){l.unpack(e,4*i,v),l.conjugate(v,v);for(var r=0,o=i-t+1;r=0?o=1:(o=-1,s=-s);for(var a=s-1,u=1-n,c=n*n,h=u*u,d=7;d>=0;--d)R[d]=(b[d]*c-C[d])*a,z[d]=(b[d]*h-C[d])*a;var f=o*n*(1+R[0]*(1+R[1]*(1+R[2]*(1+R[3]*(1+R[4]*(1+R[5]*(1+R[6]*(1+R[7])))))))),p=u*(1+z[0]*(1+z[1]*(1+z[2]*(1+z[3]*(1+z[4]*(1+z[5]*(1+z[6]*(1+z[7])))))))),g=l.multiplyByScalar(e,p,j);return l.multiplyByScalar(i,f,r),l.add(g,r,r)},l.fastSquad=function(e,i,n,r,o,s){t.typeOf.object("q0",e),t.typeOf.object("q1",i),t.typeOf.object("s0",n),t.typeOf.object("s1",r),t.typeOf.number("t",o),t.typeOf.object("result",s);var a=l.fastSlerp(e,i,o,L),u=l.fastSlerp(n,r,o,_);return l.fastSlerp(a,u,2*o*(1-o),s)},l.equals=function(e,t){return e===t||n(e)&&n(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},l.equalsEpsilon=function(e,i,r){return t.typeOf.number("epsilon",r),e===i||n(e)&&n(i)&&Math.abs(e.x-i.x)<=r&&Math.abs(e.y-i.y)<=r&&Math.abs(e.z-i.z)<=r&&Math.abs(e.w-i.w)<=r},l.ZERO=s(new l(0,0,0,0)),l.IDENTITY=s(new l(0,0,0,1)),l.prototype.clone=function(e){return l.clone(this,e)},l.prototype.equals=function(e){return l.equals(this,e)},l.prototype.equalsEpsilon=function(e,t){return l.equalsEpsilon(this,e,t)},l.prototype.toString=function(){return"("+this.x+", "+this.y+", "+this.z+", "+this.w+")"},l}),(0,e.amdDefine)("3e",["11"],function(e){"use strict";return e({SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5})}),(0,e.amdDefine)("2a",["48","a","1f","32","41","54","15","5","6d","7","5d","5e","42","66","68","17","d","27","28","29","3e"],function(e,t,i,n,r,o,s,a,u,c,l,h,d,f,p,g,M,y,A,w,E){"use strict";var m={},v={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},N={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},D={},T={east:new i,north:new i,up:new i,west:new i,south:new i,down:new i},I=new i,O=new i,S=new i;m.localFrameToFixedFrameGenerator=function(e,t){if(!v.hasOwnProperty(e)||!v[e].hasOwnProperty(t))throw new c("firstAxis and secondAxis must be east, north, up, west, south or down.");var n,r=v[e][t],o=e+t;return a(D[o])?n=D[o]:(n=function(n,o,u){if(!a(n))throw new c("origin is required.");if(a(u)||(u=new A),M.equalsEpsilon(n.x,0,M.EPSILON14)&&M.equalsEpsilon(n.y,0,M.EPSILON14)){var l=M.sign(n.z);i.unpack(N[e],0,I),"east"!==e&&"west"!==e&&i.multiplyByScalar(I,l,I),i.unpack(N[t],0,O),"east"!==t&&"west"!==t&&i.multiplyByScalar(O,l,O),i.unpack(N[r],0,S),"east"!==r&&"west"!==r&&i.multiplyByScalar(S,l,S)}else{(o=s(o,d.WGS84)).geodeticSurfaceNormal(n,T.up);var h=T.up,f=T.east;f.x=-n.y,f.y=n.x,f.z=0,i.normalize(f,T.east),i.cross(h,f,T.north),i.multiplyByScalar(T.up,-1,T.down),i.multiplyByScalar(T.east,-1,T.west),i.multiplyByScalar(T.north,-1,T.south),I=T[e],O=T[t],S=T[r]}return u[0]=I.x,u[1]=I.y,u[2]=I.z,u[3]=0,u[4]=O.x,u[5]=O.y,u[6]=O.z,u[7]=0,u[8]=S.x,u[9]=S.y,u[10]=S.z,u[11]=0,u[12]=n.x,u[13]=n.y,u[14]=n.z,u[15]=1,u},D[o]=n),n},m.eastNorthUpToFixedFrame=m.localFrameToFixedFrameGenerator("east","north"),m.northEastDownToFixedFrame=m.localFrameToFixedFrameGenerator("north","east"),m.northUpEastToFixedFrame=m.localFrameToFixedFrameGenerator("north","up"),m.northWestUpToFixedFrame=m.localFrameToFixedFrameGenerator("north","west");var L=new w,_=new i(1,1,1),j=new A;m.headingPitchRollToFixedFrame=function(e,t,n,r,a){o.typeOf.object("HeadingPitchRoll",t),r instanceof A&&(a=r,r=void 0,u("Transforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, result)","The method was deprecated in Cesium 1.31 and will be removed in version 1.33. Transforms.headingPitchRollToFixedFrame(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result) where fixedFrameTransform is a a 4x4 transformation matrix (see Transforms.localFrameToFixedFrameGenerator)")),r=s(r,m.eastNorthUpToFixedFrame);var c=w.fromHeadingPitchRoll(t,L),l=A.fromTranslationQuaternionRotationScale(i.ZERO,c,_,j);return a=r(e,n,a),A.multiply(a,l,a)};var x=new A,b=new y;m.headingPitchRollQuaternion=function(e,t,i,n,r){o.typeOf.object("HeadingPitchRoll",t),n instanceof w&&(r=n,n=void 0,u("Transforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, result)","The method was deprecated in Cesium 1.31 and will be removed in version 1.33. Transforms.headingPitchRollQuaternion(origin, headingPitchRoll, ellipsoid, fixedFrameTransform, result) where fixedFrameTransform is a a 4x4 transformation matrix (see Transforms.localFrameToFixedFrameGenerator)"));var s=m.headingPitchRollToFixedFrame(e,t,i,n,x),a=A.getRotation(s,b);return w.fromRotationMatrix(a,r)};var C=M.TWO_PI/86400,R=new g;m.computeTemeToPseudoFixedMatrix=function(e,t){if(!a(e))throw new c("date is required.");var i,n=(R=g.addSeconds(e,-g.computeTaiMinusUtc(e),R)).dayNumber,r=R.secondsOfDay,o=n-2451545,s=(24110.54841+(i=r>=43200?(o+.5)/E.DAYS_PER_JULIAN_CENTURY:(o-.5)/E.DAYS_PER_JULIAN_CENTURY)*(8640184.812866+i*(.093104+-62e-7*i)))*C%M.TWO_PI+(72921158553e-15+1.1772758384668e-19*(n-2451545.5))*((r+.5*E.SECONDS_PER_DAY)%E.SECONDS_PER_DAY),u=Math.cos(s),l=Math.sin(s);return a(t)?(t[0]=u,t[1]=-l,t[2]=0,t[3]=l,t[4]=u,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new y(u,l,0,-l,u,0,0,0,1)},m.iau2006XysData=new f,m.earthOrientationParameters=l.NONE,m.preloadIcrfFixed=function(t){var i=t.start.dayNumber,n=t.start.secondsOfDay+32.184,r=t.stop.dayNumber,o=t.stop.secondsOfDay+32.184,s=m.iau2006XysData.preload(i,n,r,o),a=m.earthOrientationParameters.getPromiseToLoad();return e.all([s,a])},m.computeIcrfToFixedMatrix=function(e,t){if(!a(e))throw new c("date is required.");a(t)||(t=new y);var i=m.computeFixedToIcrfMatrix(e,t);if(a(i))return y.transpose(i,t)};var z=new p(0,0,0),P=new h(0,0,0,0,0,0),U=new y,B=new y;m.computeFixedToIcrfMatrix=function(e,t){if(!a(e))throw new c("date is required.");a(t)||(t=new y);var i=m.earthOrientationParameters.compute(e,P);if(a(i)){var n=e.dayNumber,r=e.secondsOfDay+32.184,o=m.iau2006XysData.computeXysRadians(n,r,z);if(a(o)){var s=o.x+i.xPoleOffset,u=o.y+i.yPoleOffset,l=1/(1+Math.sqrt(1-s*s-u*u)),h=U;h[0]=1-l*s*s,h[3]=-l*s*u,h[6]=s,h[1]=-l*s*u,h[4]=1-l*u*u,h[7]=u,h[2]=-s,h[5]=-u,h[8]=1-l*(s*s+u*u);var d=y.fromRotationZ(-o.s,B),f=y.multiply(h,d,U),p=e.dayNumber-2451545,A=(e.secondsOfDay-g.computeTaiMinusUtc(e)+i.ut1MinusUtc)/E.SECONDS_PER_DAY,w=.779057273264+A+.00273781191135448*(p+A);w=w%1*M.TWO_PI;var v=y.fromRotationZ(w,B),N=y.multiply(f,v,U),D=Math.cos(i.xPoleWander),T=Math.cos(i.yPoleWander),I=Math.sin(i.xPoleWander),O=Math.sin(i.yPoleWander),S=n-2451545+r/E.SECONDS_PER_DAY,L=-47e-6*(S/=36525)*M.RADIANS_PER_DEGREE/3600,_=Math.cos(L),j=Math.sin(L),x=B;return x[0]=D*_,x[1]=D*j,x[2]=I,x[3]=-T*j+O*I*_,x[4]=T*_+O*I*j,x[5]=-O*D,x[6]=-O*j-T*I*_,x[7]=O*_-T*I*j,x[8]=T*D,y.multiply(N,x,t)}}};var k=new n;m.pointToWindowCoordinates=function(e,t,i,n){return n=m.pointToGLWindowCoordinates(e,t,i,n),n.y=2*t[5]-n.y,n},m.pointToGLWindowCoordinates=function(e,i,r,o){if(!a(e))throw new c("modelViewProjectionMatrix is required.");if(!a(i))throw new c("viewportTransformation is required.");if(!a(r))throw new c("point is required.");a(o)||(o=new t);var s=k;return A.multiplyByVector(e,n.fromElements(r.x,r.y,r.z,1,s),s),n.multiplyByScalar(s,1/s.w,s),A.multiplyByVector(i,s,s),t.fromCartesian4(s,o)};var F=new i,Q=new i,Y=new i;m.rotationMatrixFromPositionVelocity=function(e,t,n,r){if(!a(e))throw new c("position is required.");if(!a(t))throw new c("velocity is required.");var o=s(n,d.WGS84).geodeticSurfaceNormal(e,F),u=i.cross(t,o,Q);i.equalsEpsilon(u,i.ZERO,M.EPSILON6)&&(u=i.clone(i.UNIT_X,u));var l=i.cross(u,t,Y);return i.cross(t,l,u),i.negate(u,u),a(r)||(r=new y),r[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=u.x,r[4]=u.y,r[5]=u.z,r[6]=l.x,r[7]=l.y,r[8]=l.z,r};var q=new r,G=new i,V=new i,H=new n,W=new n,X=new n,Z=new n,K=new n,J=new A,$=new A;m.basisTo2D=function(e,t,r){if(!a(e))throw new c("projection is required.");if(!a(t))throw new c("matrix is required.");if(!a(r))throw new c("result is required.");var o=e.ellipsoid,s=A.getColumn(t,3,H),u=o.cartesianToCartographic(s,q),l=m.eastNorthUpToFixedFrame(s,o,J),h=A.inverseTransformation(l,$),d=e.project(u,G),f=W;f.x=d.z,f.y=d.x,f.z=d.y,f.w=1;var p=A.getColumn(t,0,V),g=i.magnitude(p),M=A.multiplyByVector(h,p,X);n.fromElements(M.z,M.x,M.y,0,M);var y=A.getColumn(t,1,V),w=i.magnitude(y),E=A.multiplyByVector(h,y,Z);n.fromElements(E.z,E.x,E.y,0,E);var v=A.getColumn(t,2,V),N=i.magnitude(v),D=K;return i.cross(M,E,D),i.normalize(D,D),i.cross(E,D,M),i.normalize(M,M),i.cross(D,M,E),i.normalize(E,E),i.multiplyByScalar(M,g,M),i.multiplyByScalar(E,w,E),i.multiplyByScalar(D,N,D),A.setColumn(r,0,M,r),A.setColumn(r,1,E,r),A.setColumn(r,2,D,r),A.setColumn(r,3,f,r),r};var ee=new A(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1);return m.wgs84To2DModelMatrix=function(e,t,i){if(!a(e))throw new c("projection is required.");if(!a(t))throw new c("center is required.");if(!a(i))throw new c("result is required.");var n=e.ellipsoid,r=m.eastNorthUpToFixedFrame(t,n,J),o=A.inverseTransformation(r,$),s=n.cartesianToCartographic(t,q),u=e.project(s,G),l=W;l.x=u.z,l.y=u.x,l.z=u.y,l.w=1;var h=A.fromTranslation(l,J);return A.multiply(ee,o,i),A.multiply(h,i,i),i},m}),(0,e.amdDefine)("4e",["1f","41","15","5","6","7","42","d"],function(e,t,i,n,r,o,s,a){"use strict";function u(e){this._ellipsoid=i(e,s.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}return r(u.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),u.mercatorAngleToGeodeticLatitude=function(e){return a.PI_OVER_TWO-2*Math.atan(Math.exp(-e))},u.geodeticLatitudeToMercatorAngle=function(e){e>u.MaximumLatitude?e=u.MaximumLatitude:e<-u.MaximumLatitude&&(e=-u.MaximumLatitude);var t=Math.sin(e);return.5*Math.log((1+t)/(1-t))},u.MaximumLatitude=u.mercatorAngleToGeodeticLatitude(Math.PI),u.prototype.project=function(t,i){var r=this._semimajorAxis,o=t.longitude*r,s=u.geodeticLatitudeToMercatorAngle(t.latitude)*r,a=t.height;return n(i)?(i.x=o,i.y=s,i.z=a,i):new e(o,s,a)},u.prototype.unproject=function(e,i){if(!n(e))throw new o("cartesian is required");var r=this._oneOverSemimajorAxis,s=e.x*r,a=u.mercatorAngleToGeodeticLatitude(e.y*r),c=e.z;return n(i)?(i.longitude=s,i.latitude=a,i.height=c,i):new t(s,a,c)},u}),(0,e.amdDefine)("6f",["56","53","a","1f","15","5","7","42","52","11","d","28","5c","4d","70","2a","4e"],function(e,t,i,n,r,o,s,a,u,c,l,h,d,f,p,g,M){"use strict";var y={};y.DEFAULT_STRUCTURE=c({heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1});var A=new n,w=new h,E=new n,m=new n;return y.computeVertices=function(c){if(!o(c)||!o(c.heightmap))throw new s("options.heightmap is required.");if(!o(c.width)||!o(c.height))throw new s("options.width and options.height are required.");if(!o(c.nativeRectangle))throw new s("options.nativeRectangle is required.");if(!o(c.skirtHeight))throw new s("options.skirtHeight is required.");var v,N,D,T,I=Math.cos,O=Math.sin,S=Math.sqrt,L=Math.atan,_=Math.exp,j=l.PI_OVER_TWO,x=l.toRadians,b=c.heightmap,C=c.width,R=c.height,z=c.skirtHeight,P=r(c.isGeographic,!0),U=r(c.ellipsoid,a.WGS84),B=1/U.maximumRadius,k=c.nativeRectangle,F=c.rectangle;o(F)?(v=F.west,N=F.south,D=F.east,T=F.north):P?(v=x(k.west),N=x(k.south),D=x(k.east),T=x(k.north)):(v=k.west*B,N=j-2*L(_(-k.south*B)),D=k.east*B,T=j-2*L(_(-k.north*B)));var Q=c.relativeToCenter,Y=o(Q);Q=Y?Q:n.ZERO;var q,G,V=r(c.exaggeration,1),H=r(c.includeWebMercatorT,!1),W=r(c.structure,y.DEFAULT_STRUCTURE),X=r(W.heightScale,y.DEFAULT_STRUCTURE.heightScale),Z=r(W.heightOffset,y.DEFAULT_STRUCTURE.heightOffset),K=r(W.elementsPerHeight,y.DEFAULT_STRUCTURE.elementsPerHeight),J=r(W.stride,y.DEFAULT_STRUCTURE.stride),$=r(W.elementMultiplier,y.DEFAULT_STRUCTURE.elementMultiplier),ee=r(W.isBigEndian,y.DEFAULT_STRUCTURE.isBigEndian),te=f.computeWidth(k),ie=f.computeHeight(k),ne=te/(C-1),re=ie/(R-1),oe=U.radiiSquared,se=oe.x,ae=oe.y,ue=oe.z,ce=65536,le=-65536,he=g.eastNorthUpToFixedFrame(Q,U),de=h.inverseTransformation(he,w);H&&(q=M.geodeticLatitudeToMercatorAngle(N),G=1/(M.geodeticLatitudeToMercatorAngle(T)-q));var fe=E;fe.x=Number.POSITIVE_INFINITY,fe.y=Number.POSITIVE_INFINITY,fe.z=Number.POSITIVE_INFINITY;var pe=m;pe.x=Number.NEGATIVE_INFINITY,pe.y=Number.NEGATIVE_INFINITY,pe.z=Number.NEGATIVE_INFINITY;var ge=Number.POSITIVE_INFINITY,Me=(C+(z>0?2:0))*(R+(z>0?2:0)),ye=new Array(Me),Ae=new Array(Me),we=new Array(Me),Ee=H?new Array(Me):[],me=0,ve=R,Ne=0,De=C;z>0&&(--me,++ve,--Ne,++De);for(var Te=0,Ie=me;Ie=R&&(Oe=R-1);var Se=k.north-re*Oe,Le=I(Se=P?x(Se):j-2*L(_(-Se*B))),_e=O(Se),je=ue*_e,xe=(Se-N)/(T-N);xe=l.clamp(xe,0,1);var be;H&&(be=(M.geodeticLatitudeToMercatorAngle(Se)-q)*G);for(var Ce=Ne;Ce=C&&(Re=C-1);var ze=k.west+ne*Re;P?ze=x(ze):ze*=B;var Pe,Ue=Oe*(C*J)+Re*J;if(1===K)Pe=b[Ue];else{Pe=0;var Be;if(ee)for(Be=0;Be=0;--Be)Pe=Pe*$+b[Ue+Be]}Pe=(Pe*X+Z)*V;var ke=(ze-v)/(D-v);ke=l.clamp(ke,0,1),we[Te]=new i(ke,xe),le=Math.max(le,Pe),ce=Math.min(ce,Pe),(Ce!==Re||Ie!==Oe)&&(Ce<0?ze-=1e-5*te:ze+=1e-5*te,Ie<0?Se+=1e-5*ie:Se-=1e-5*ie,Le=I(Se),je=ue*(_e=O(Se)),Pe-=z);var Fe=Le*I(ze),Qe=Le*O(ze),Ye=se*Fe,qe=ae*Qe,Ge=1/S(Ye*Fe+qe*Qe+je*_e),Ve=Ye*Ge,He=qe*Ge,We=je*Ge,Xe=new n;Xe.x=Ve+Fe*Pe,Xe.y=He+Qe*Pe,Xe.z=We+_e*Pe,ye[Te]=Xe,Ae[Te]=Pe,H&&(Ee[Te]=be),Te++,h.multiplyByPoint(de,Xe,A),n.minimumByComponent(A,fe,fe),n.maximumByComponent(A,pe,pe),ge=Math.min(ge,Pe)}}var Ze,Ke=t.fromPoints(ye);o(F)&&F.widthn.EPSILON12);return t(l)?(l.x=h*S,l.y=d*L,l.z=f*_,l):new e(h*S,d*L,f*_)}}),(0,e.amdDefine)("42",["1f","41","15","5","6","7","11","d","71"],function(e,t,i,n,r,o,s,a,u){"use strict";function c(t,n,r,s){if(n=i(n,0),r=i(r,0),s=i(s,0),n<0||r<0||s<0)throw new o("All radii components must be greater than or equal to zero.");t._radii=new e(n,r,s),t._radiiSquared=new e(n*n,r*r,s*s),t._radiiToTheFourth=new e(n*n*n*n,r*r*r*r,s*s*s*s),t._oneOverRadii=new e(0===n?0:1/n,0===r?0:1/r,0===s?0:1/s),t._oneOverRadiiSquared=new e(0===n?0:1/(n*n),0===r?0:1/(r*r),0===s?0:1/(s*s)),t._minimumRadius=Math.min(n,r,s),t._maximumRadius=Math.max(n,r,s),t._centerToleranceSquared=a.EPSILON1,0!==t._radiiSquared.z&&(t._sqauredXOverSquaredZ=t._radiiSquared.x/t._radiiSquared.z)}function l(e,t,i){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._sqauredXOverSquaredZ=void 0,c(this,e,t,i)}r(l.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}}),l.clone=function(t,i){if(n(t)){var r=t._radii;return n(i)?(e.clone(r,i._radii),e.clone(t._radiiSquared,i._radiiSquared),e.clone(t._radiiToTheFourth,i._radiiToTheFourth),e.clone(t._oneOverRadii,i._oneOverRadii),e.clone(t._oneOverRadiiSquared,i._oneOverRadiiSquared),i._minimumRadius=t._minimumRadius,i._maximumRadius=t._maximumRadius,i._centerToleranceSquared=t._centerToleranceSquared,i):new l(r.x,r.y,r.z)}},l.fromCartesian3=function(e,t){return n(t)||(t=new l),n(e)?(c(t,e.x,e.y,e.z),t):t},l.WGS84=s(new l(6378137,6378137,6356752.314245179)),l.UNIT_SPHERE=s(new l(1,1,1)),l.MOON=s(new l(a.LUNAR_RADIUS,a.LUNAR_RADIUS,a.LUNAR_RADIUS)),l.prototype.clone=function(e){return l.clone(this,e)},l.packedLength=e.packedLength,l.pack=function(t,r,s){if(!n(t))throw new o("value is required");if(!n(r))throw new o("array is required");return s=i(s,0),e.pack(t._radii,r,s),r},l.unpack=function(t,r,s){if(!n(t))throw new o("array is required");r=i(r,0);var a=e.unpack(t,r);return l.fromCartesian3(a,s)},l.prototype.geocentricSurfaceNormal=e.normalize,l.prototype.geodeticSurfaceNormalCartographic=function(t,i){if(!n(t))throw new o("cartographic is required.");var r=t.longitude,s=t.latitude,a=Math.cos(s),u=a*Math.cos(r),c=a*Math.sin(r),l=Math.sin(s);return n(i)||(i=new e),i.x=u,i.y=c,i.z=l,e.normalize(i,i)},l.prototype.geodeticSurfaceNormal=function(t,i){return n(i)||(i=new e),i=e.multiplyComponents(t,this._oneOverRadiiSquared,i),e.normalize(i,i)};var h=new e,d=new e;l.prototype.cartographicToCartesian=function(t,i){var r=h,o=d;this.geodeticSurfaceNormalCartographic(t,r),e.multiplyComponents(this._radiiSquared,r,o);var s=Math.sqrt(e.dot(r,o));return e.divideByScalar(o,s,o),e.multiplyByScalar(r,t.height,r),n(i)||(i=new e),e.add(o,r,i)},l.prototype.cartographicArrayToCartesianArray=function(e,t){if(!n(e))throw new o("cartographics is required.");var i=e.length;n(t)?t.length=i:t=new Array(i);for(var r=0;r=this._radii.z-r))return s},l}),(0,e.amdDefine)("4d",["41","54","15","5","6","42","11","d"],function(e,t,i,n,r,o,s,a){"use strict";function u(e,t,n,r){this.west=i(e,0),this.south=i(t,0),this.east=i(n,0),this.north=i(r,0)}r(u.prototype,{width:{get:function(){return u.computeWidth(this)}},height:{get:function(){return u.computeHeight(this)}}}),u.packedLength=4,u.pack=function(e,n,r){return t.typeOf.object("value",e),t.defined("array",n),r=i(r,0),n[r++]=e.west,n[r++]=e.south,n[r++]=e.east,n[r]=e.north,n},u.unpack=function(e,r,o){return t.defined("array",e),r=i(r,0),n(o)||(o=new u),o.west=e[r++],o.south=e[r++],o.east=e[r++],o.north=e[r],o},u.computeWidth=function(e){t.typeOf.object("rectangle",e);var i=e.east,n=e.west;return i=0?p.longitude:p.longitude+a.TWO_PI;s=Math.min(s,g),c=Math.max(c,g)}return o-r>c-s&&(r=s,(o=c)>a.PI&&(o-=a.TWO_PI),r>a.PI&&(r-=a.TWO_PI)),n(i)?(i.west=r,i.south=l,i.east=o,i.north=h,i):new u(r,l,o,h)},u.fromCartesianArray=function(e,i,r){t.defined("cartesians",e);for(var o=Number.MAX_VALUE,s=-Number.MAX_VALUE,c=Number.MAX_VALUE,l=-Number.MAX_VALUE,h=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0,p=e.length;f=0?g.longitude:g.longitude+a.TWO_PI;c=Math.min(c,M),l=Math.max(l,M)}return s-o>l-c&&(o=c,(s=l)>a.PI&&(s-=a.TWO_PI),o>a.PI&&(o-=a.TWO_PI)),n(r)?(r.west=o,r.south=h,r.east=s,r.north=d,r):new u(o,h,s,d)},u.clone=function(e,t){if(n(e))return n(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new u(e.west,e.south,e.east,e.north)},u.prototype.clone=function(e){return u.clone(this,e)},u.prototype.equals=function(e){return u.equals(this,e)},u.equals=function(e,t){return e===t||n(e)&&n(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north},u.prototype.equalsEpsilon=function(e,i){return t.typeOf.number("epsilon",i),n(e)&&Math.abs(this.west-e.west)<=i&&Math.abs(this.south-e.south)<=i&&Math.abs(this.east-e.east)<=i&&Math.abs(this.north-e.north)<=i},u.validate=function(e){t.typeOf.object("rectangle",e);var i=e.north;t.typeOf.number.greaterThanOrEquals("north",i,-a.PI_OVER_TWO),t.typeOf.number.lessThanOrEquals("north",i,a.PI_OVER_TWO);var n=e.south;t.typeOf.number.greaterThanOrEquals("south",n,-a.PI_OVER_TWO),t.typeOf.number.lessThanOrEquals("south",n,a.PI_OVER_TWO);var r=e.west;t.typeOf.number.greaterThanOrEquals("west",r,-Math.PI),t.typeOf.number.lessThanOrEquals("west",r,Math.PI);var o=e.east;t.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),t.typeOf.number.lessThanOrEquals("east",o,Math.PI)},u.southwest=function(i,r){return t.typeOf.object("rectangle",i),n(r)?(r.longitude=i.west,r.latitude=i.south,r.height=0,r):new e(i.west,i.south)},u.northwest=function(i,r){return t.typeOf.object("rectangle",i),n(r)?(r.longitude=i.west,r.latitude=i.north,r.height=0,r):new e(i.west,i.north)},u.northeast=function(i,r){return t.typeOf.object("rectangle",i),n(r)?(r.longitude=i.east,r.latitude=i.north,r.height=0,r):new e(i.east,i.north)},u.southeast=function(i,r){return t.typeOf.object("rectangle",i),n(r)?(r.longitude=i.east,r.latitude=i.south,r.height=0,r):new e(i.east,i.south)},u.center=function(i,r){t.typeOf.object("rectangle",i);var o=i.east,s=i.west;o0?o+=a.TWO_PI:c0&&(c+=a.TWO_PI),o=p))return n(r)?(r.west=h,r.south=f,r.east=d,r.north=p,r):new u(h,f,d,p)}},u.simpleIntersection=function(e,i,r){t.typeOf.object("rectangle",e),t.typeOf.object("otherRectangle",i);var o=Math.max(e.west,i.west),s=Math.max(e.south,i.south),a=Math.min(e.east,i.east),c=Math.min(e.north,i.north);if(!(s>=c||o>=a))return n(r)?(r.west=o,r.south=s,r.east=a,r.north=c,r):new u(o,s,a,c)},u.union=function(e,i,r){t.typeOf.object("rectangle",e),t.typeOf.object("otherRectangle",i),n(r)||(r=new u);var o=e.east,s=e.west,c=i.east,l=i.west;o0?o+=a.TWO_PI:c0&&(c+=a.TWO_PI),oo||a.equalsEpsilon(n,o,a.EPSILON14))&&(n=e.south&&r<=e.north};var c=new e;return u.subsample=function(e,r,s,l){t.typeOf.object("rectangle",e),r=i(r,o.WGS84),s=i(s,0),n(l)||(l=[]);var h=0,d=e.north,f=e.south,p=e.east,g=e.west,M=c;M.height=s,M.longitude=g,M.latitude=d,l[h]=r.cartographicToCartesian(M,l[h]),h++,M.longitude=p,l[h]=r.cartographicToCartesian(M,l[h]),h++,M.latitude=f,l[h]=r.cartographicToCartesian(M,l[h]),h++,M.longitude=g,l[h]=r.cartographicToCartesian(M,l[h]),h++,M.latitude=d<0?d:f>0?f:0;for(var y=1;y<8;++y)M.longitude=-Math.PI+y*a.PI_OVER_TWO,u.contains(e,M)&&(l[h]=r.cartographicToCartesian(M,l[h]),h++);return 0===M.latitude&&(M.longitude=g,l[h]=r.cartographicToCartesian(M,l[h]),h++,M.longitude=p,l[h]=r.cartographicToCartesian(M,l[h]),h++),l.length=h,l},u.MAX_VALUE=s(new u(-Math.PI,-a.PI_OVER_TWO,Math.PI,a.PI_OVER_TWO)),u}),(0,e.amdDefine)("72",["47","15","5","7"],function(e,t,i,n){"use strict";return function(r,o,s){if(!i(r))throw new n("first is required");if(!i(o))throw new n("second is required");s=t(s,!0),r instanceof e||(r=new e(r)),o instanceof e||(o=new e(o)),i(o.authority)&&!i(o.scheme)&&("undefined"!=typeof document&&i(document.location)&&i(document.location.href)?o.scheme=new e(document.location.href).scheme:o.scheme=r.scheme);var a=r;o.isAbsolute()&&(a=o);var u="";i(a.scheme)&&(u+=a.scheme+":"),i(a.authority)&&(u+="//"+a.authority,""!==a.path&&"/"!==a.path&&(u=u.replace(/\/?$/,"/"),a.path=a.path.replace(/^\/?/g,""))),u+=a===r?s?r.path.replace(/\/?$/,"/")+o.path.replace(/^\/?/g,""):r.path+o.path:o.path;var c=i(r.query),l=i(o.query);c&&l?u+="?"+r.query+"&"+o.query:c&&!l?u+="?"+r.query:!c&&l&&(u+="?"+o.query);var h=i(o.fragment);return i(r.fragment)&&!h?u+="#"+r.fragment:h&&(u+="#"+o.fragment),u}}),(0,e.amdDefine)("67",["47","5","7","73","72","require"],function(e,t,i,n,r,o){"use strict";function s(){for(var e=document.getElementsByTagName("script"),t=0,i=e.length;t=this._maximumActiveTasks)){++this._activeTasks;var r=this;return e(l(),function(o){n(i)?o||(i.length=0):i=y;var s=r._nextID++,a=e.defer();return r._deferreds[s]=a,r._worker.postMessage({id:s,parameters:t,canTransferArrayBuffer:o},i),a.promise})}},g.prototype.isDestroyed=function(){return!1},g.prototype.destroy=function(){return n(this._worker)&&this._worker.terminate(),r(this)},g._defaultWorkerModulePrefix="Workers/",g._workerModulePrefix=g._defaultWorkerModulePrefix,g._loaderConfig=void 0,g._canTransferArrayBuffer=void 0,g}),(0,e.amdDefine)("75",["a","1f","5","7","d"],function(e,t,i,n,r){"use strict";var o={};o.octEncodeInRange=function(e,o,s){if(!i(e))throw new n("vector is required.");if(!i(s))throw new n("result is required.");var a=t.magnitudeSquared(e);if(Math.abs(a-1)>r.EPSILON6)throw new n("vector must be normalized.");if(s.x=e.x/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),s.y=e.y/(Math.abs(e.x)+Math.abs(e.y)+Math.abs(e.z)),e.z<0){var u=s.x,c=s.y;s.x=(1-Math.abs(c))*r.signNotZero(u),s.y=(1-Math.abs(u))*r.signNotZero(c)}return s.x=r.toSNorm(s.x,o),s.y=r.toSNorm(s.y,o),s},o.octEncode=function(e,t){return o.octEncodeInRange(e,255,t)},o.octDecodeInRange=function(e,o,s,a){if(!i(a))throw new n("result is required.");if(e<0||e>s||o<0||o>s)throw new n("x and y must be a signed normalized integer between 0 and "+s);if(a.x=r.fromSNorm(e,s),a.y=r.fromSNorm(o,s),a.z=1-(Math.abs(a.x)+Math.abs(a.y)),a.z<0){var u=a.x;a.x=(1-Math.abs(a.y))*r.signNotZero(u),a.y=(1-Math.abs(u))*r.signNotZero(a.y)}return t.normalize(a,a)},o.octDecode=function(e,t,i){return o.octDecodeInRange(e,t,255,i)},o.octPackFloat=function(e){if(!i(e))throw new n("encoded is required.");return 256*e.x+e.y};var s=new e;return o.octEncodeFloat=function(e){return o.octEncode(e,s),o.octPackFloat(s)},o.octDecodeFloat=function(e,t){if(!i(e))throw new n("value is required.");var r=e/256,s=Math.floor(r),a=256*(r-s);return o.octDecode(s,a,t)},o.octPack=function(e,t,r,a){if(!i(e))throw new n("v1 is required.");if(!i(t))throw new n("v2 is required.");if(!i(r))throw new n("v3 is required.");if(!i(a))throw new n("result is required.");var u=o.octEncodeFloat(e),c=o.octEncodeFloat(t),l=o.octEncode(r,s);return a.x=65536*l.x+u,a.y=65536*l.y+c,a},o.octUnpack=function(e,t,r,s){if(!i(e))throw new n("packed is required.");if(!i(t))throw new n("v1 is required.");if(!i(r))throw new n("v2 is required.");if(!i(s))throw new n("v3 is required.");var a=e.x/65536,u=Math.floor(a),c=65536*(a-u);a=e.y/65536;var l=Math.floor(a),h=65536*(a-l);o.octDecodeFloat(c,t),o.octDecodeFloat(h,r),o.octDecode(u,l,s)},o.compressTextureCoordinates=function(e){if(!i(e))throw new n("textureCoordinates is required.");return 4096*(4095*e.x|0)+(4095*e.y|0)},o.decompressTextureCoordinates=function(e,t){if(!i(e))throw new n("compressed is required.");if(!i(t))throw new n("result is required.");var r=e/4096,o=Math.floor(r);return t.x=o/4095,t.y=(e-4096*o)/4095,t},o}),(0,e.amdDefine)("a",["54","15","5","7","11","d"],function(e,t,i,n,r,o){"use strict";function s(e,i){this.x=t(e,0),this.y=t(i,0)}s.fromElements=function(e,t,n){return i(n)?(n.x=e,n.y=t,n):new s(e,t)},s.clone=function(e,t){if(i(e))return i(t)?(t.x=e.x,t.y=e.y,t):new s(e.x,e.y)},s.fromCartesian3=s.clone,s.fromCartesian4=s.clone,s.packedLength=2,s.pack=function(i,n,r){return e.typeOf.object("value",i),e.defined("array",n),r=t(r,0),n[r++]=i.x,n[r]=i.y,n},s.unpack=function(n,r,o){return e.defined("array",n),r=t(r,0),i(o)||(o=new s),o.x=n[r++],o.y=n[r],o},s.packArray=function(t,n){e.defined("array",t);var r=t.length;i(n)?n.length=2*r:n=new Array(2*r);for(var o=0;o=n)throw new t("Expected "+e+" to be less than "+n+", actual value was "+i)},r.typeOf.number.lessThanOrEquals=function(e,i,n){if(r.typeOf.number(e,i),i>n)throw new t("Expected "+e+" to be less than or equal to "+n+", actual value was "+i)},r.typeOf.number.greaterThan=function(e,i,n){if(r.typeOf.number(e,i),i<=n)throw new t("Expected "+e+" to be greater than "+n+", actual value was "+i)},r.typeOf.number.greaterThanOrEquals=function(e,i,n){if(r.typeOf.number(e,i),in&&(r=o,n=s)}var c=1,l=0,h=p[r],d=g[r];if(Math.abs(e[u.getElementIndex(d,h)])>i){var f,M=(e[u.getElementIndex(d,d)]-e[u.getElementIndex(h,h)])/2/e[u.getElementIndex(d,h)];l=(f=M<0?-1/(-M+Math.sqrt(1+M*M)):1/(M+Math.sqrt(1+M*M)))*(c=1/Math.sqrt(1+f*f))}return t=u.clone(u.IDENTITY,t),t[u.getElementIndex(h,h)]=t[u.getElementIndex(d,d)]=c,t[u.getElementIndex(d,h)]=l,t[u.getElementIndex(h,d)]=-l,t}u.packedLength=9,u.pack=function(e,n,r){return t.typeOf.object("value",e),t.defined("array",n),r=i(r,0),n[r++]=e[0],n[r++]=e[1],n[r++]=e[2],n[r++]=e[3],n[r++]=e[4],n[r++]=e[5],n[r++]=e[6],n[r++]=e[7],n[r++]=e[8],n},u.unpack=function(e,r,o){return t.defined("array",e),r=i(r,0),n(o)||(o=new u),o[0]=e[r++],o[1]=e[r++],o[2]=e[r++],o[3]=e[r++],o[4]=e[r++],o[5]=e[r++],o[6]=e[r++],o[7]=e[r++],o[8]=e[r++],o},u.clone=function(e,t){if(n(e))return n(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new u(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},u.fromArray=function(e,r,o){return t.defined("array",e),r=i(r,0),n(o)||(o=new u),o[0]=e[r],o[1]=e[r+1],o[2]=e[r+2],o[3]=e[r+3],o[4]=e[r+4],o[5]=e[r+5],o[6]=e[r+6],o[7]=e[r+7],o[8]=e[r+8],o},u.fromColumnMajorArray=function(e,i){return t.defined("values",e),u.clone(e,i)},u.fromRowMajorArray=function(e,i){return t.defined("values",e),n(i)?(i[0]=e[0],i[1]=e[3],i[2]=e[6],i[3]=e[1],i[4]=e[4],i[5]=e[7],i[6]=e[2],i[7]=e[5],i[8]=e[8],i):new u(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},u.fromQuaternion=function(e,i){t.typeOf.object("quaternion",e);var r=e.x*e.x,o=e.x*e.y,s=e.x*e.z,a=e.x*e.w,c=e.y*e.y,l=e.y*e.z,h=e.y*e.w,d=e.z*e.z,f=e.z*e.w,p=e.w*e.w,g=r-c-d+p,M=2*(o-f),y=2*(s+h),A=2*(o+f),w=-r+c-d+p,E=2*(l-a),m=2*(s-h),v=2*(l+a),N=-r-c+d+p;return n(i)?(i[0]=g,i[1]=A,i[2]=m,i[3]=M,i[4]=w,i[5]=v,i[6]=y,i[7]=E,i[8]=N,i):new u(g,M,y,A,w,E,m,v,N)},u.fromHeadingPitchRoll=function(e,i){t.typeOf.object("headingPitchRoll",e);var r=Math.cos(-e.pitch),o=Math.cos(-e.heading),s=Math.cos(e.roll),a=Math.sin(-e.pitch),c=Math.sin(-e.heading),l=Math.sin(e.roll),h=r*o,d=-s*c+l*a*o,f=l*c+s*a*o,p=r*c,g=s*o+l*a*c,M=-l*o+s*a*c,y=-a,A=l*r,w=s*r;return n(i)?(i[0]=h,i[1]=p,i[2]=y,i[3]=d,i[4]=g,i[5]=A,i[6]=f,i[7]=M,i[8]=w,i):new u(h,d,f,p,g,M,y,A,w)},u.fromScale=function(e,i){return t.typeOf.object("scale",e),n(i)?(i[0]=e.x,i[1]=0,i[2]=0,i[3]=0,i[4]=e.y,i[5]=0,i[6]=0,i[7]=0,i[8]=e.z,i):new u(e.x,0,0,0,e.y,0,0,0,e.z)},u.fromUniformScale=function(e,i){return t.typeOf.number("scale",e),n(i)?(i[0]=e,i[1]=0,i[2]=0,i[3]=0,i[4]=e,i[5]=0,i[6]=0,i[7]=0,i[8]=e,i):new u(e,0,0,0,e,0,0,0,e)},u.fromCrossProduct=function(e,i){return t.typeOf.object("vector",e),n(i)?(i[0]=0,i[1]=e.z,i[2]=-e.y,i[3]=-e.z,i[4]=0,i[5]=e.x,i[6]=e.y,i[7]=-e.x,i[8]=0,i):new u(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},u.fromRotationX=function(e,i){t.typeOf.number("angle",e);var r=Math.cos(e),o=Math.sin(e);return n(i)?(i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=r,i[5]=o,i[6]=0,i[7]=-o,i[8]=r,i):new u(1,0,0,0,r,-o,0,o,r)},u.fromRotationY=function(e,i){t.typeOf.number("angle",e);var r=Math.cos(e),o=Math.sin(e);return n(i)?(i[0]=r,i[1]=0,i[2]=-o,i[3]=0,i[4]=1,i[5]=0,i[6]=o,i[7]=0,i[8]=r,i):new u(r,0,o,0,1,0,-o,0,r)},u.fromRotationZ=function(e,i){t.typeOf.number("angle",e);var r=Math.cos(e),o=Math.sin(e);return n(i)?(i[0]=r,i[1]=o,i[2]=0,i[3]=-o,i[4]=r,i[5]=0,i[6]=0,i[7]=0,i[8]=1,i):new u(r,-o,0,o,r,0,0,0,1)},u.toArray=function(e,i){return t.typeOf.object("matrix",e),n(i)?(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},u.getElementIndex=function(e,i){return t.typeOf.number.greaterThanOrEquals("row",i,0),t.typeOf.number.lessThanOrEquals("row",i,2),t.typeOf.number.greaterThanOrEquals("column",e,0),t.typeOf.number.lessThanOrEquals("column",e,2),3*e+i},u.getColumn=function(e,i,n){t.typeOf.object("matrix",e),t.typeOf.number.greaterThanOrEquals("index",i,0),t.typeOf.number.lessThanOrEquals("index",i,2),t.typeOf.object("result",n);var r=3*i,o=e[r],s=e[r+1],a=e[r+2];return n.x=o,n.y=s,n.z=a,n},u.setColumn=function(e,i,n,r){t.typeOf.object("matrix",e),t.typeOf.number.greaterThanOrEquals("index",i,0),t.typeOf.number.lessThanOrEquals("index",i,2),t.typeOf.object("cartesian",n),t.typeOf.object("result",r);var o=3*i;return(r=u.clone(e,r))[o]=n.x,r[o+1]=n.y,r[o+2]=n.z,r},u.getRow=function(e,i,n){t.typeOf.object("matrix",e),t.typeOf.number.greaterThanOrEquals("index",i,0),t.typeOf.number.lessThanOrEquals("index",i,2),t.typeOf.object("result",n);var r=e[i],o=e[i+3],s=e[i+6];return n.x=r,n.y=o,n.z=s,n},u.setRow=function(e,i,n,r){return t.typeOf.object("matrix",e),t.typeOf.number.greaterThanOrEquals("index",i,0),t.typeOf.number.lessThanOrEquals("index",i,2),t.typeOf.object("cartesian",n),t.typeOf.object("result",r),r=u.clone(e,r),r[i]=n.x,r[i+3]=n.y,r[i+6]=n.z,r};var d=new e;u.getScale=function(i,n){return t.typeOf.object("matrix",i),t.typeOf.object("result",n),n.x=e.magnitude(e.fromElements(i[0],i[1],i[2],d)),n.y=e.magnitude(e.fromElements(i[3],i[4],i[5],d)),n.z=e.magnitude(e.fromElements(i[6],i[7],i[8],d)),n};var f=new e;u.getMaximumScale=function(t){return u.getScale(t,f),e.maximumComponent(f)},u.multiply=function(e,i,n){t.typeOf.object("left",e),t.typeOf.object("right",i),t.typeOf.object("result",n);var r=e[0]*i[0]+e[3]*i[1]+e[6]*i[2],o=e[1]*i[0]+e[4]*i[1]+e[7]*i[2],s=e[2]*i[0]+e[5]*i[1]+e[8]*i[2],a=e[0]*i[3]+e[3]*i[4]+e[6]*i[5],u=e[1]*i[3]+e[4]*i[4]+e[7]*i[5],c=e[2]*i[3]+e[5]*i[4]+e[8]*i[5],l=e[0]*i[6]+e[3]*i[7]+e[6]*i[8],h=e[1]*i[6]+e[4]*i[7]+e[7]*i[8],d=e[2]*i[6]+e[5]*i[7]+e[8]*i[8];return n[0]=r,n[1]=o,n[2]=s,n[3]=a,n[4]=u,n[5]=c,n[6]=l,n[7]=h,n[8]=d,n},u.add=function(e,i,n){return t.typeOf.object("left",e),t.typeOf.object("right",i),t.typeOf.object("result",n),n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n[3]=e[3]+i[3],n[4]=e[4]+i[4],n[5]=e[5]+i[5],n[6]=e[6]+i[6],n[7]=e[7]+i[7],n[8]=e[8]+i[8],n},u.subtract=function(e,i,n){return t.typeOf.object("left",e),t.typeOf.object("right",i),t.typeOf.object("result",n),n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n[3]=e[3]-i[3],n[4]=e[4]-i[4],n[5]=e[5]-i[5],n[6]=e[6]-i[6],n[7]=e[7]-i[7],n[8]=e[8]-i[8],n},u.multiplyByVector=function(e,i,n){t.typeOf.object("matrix",e),t.typeOf.object("cartesian",i),t.typeOf.object("result",n);var r=i.x,o=i.y,s=i.z,a=e[0]*r+e[3]*o+e[6]*s,u=e[1]*r+e[4]*o+e[7]*s,c=e[2]*r+e[5]*o+e[8]*s;return n.x=a,n.y=u,n.z=c,n},u.multiplyByScalar=function(e,i,n){return t.typeOf.object("matrix",e),t.typeOf.number("scalar",i),t.typeOf.object("result",n),n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n[4]=e[4]*i,n[5]=e[5]*i,n[6]=e[6]*i,n[7]=e[7]*i,n[8]=e[8]*i,n},u.multiplyByScale=function(e,i,n){return t.typeOf.object("matrix",e),t.typeOf.object("scale",i),t.typeOf.object("result",n),n[0]=e[0]*i.x,n[1]=e[1]*i.x,n[2]=e[2]*i.x,n[3]=e[3]*i.y,n[4]=e[4]*i.y,n[5]=e[5]*i.y,n[6]=e[6]*i.z,n[7]=e[7]*i.z,n[8]=e[8]*i.z,n},u.negate=function(e,i){return t.typeOf.object("matrix",e),t.typeOf.object("result",i),i[0]=-e[0],i[1]=-e[1],i[2]=-e[2],i[3]=-e[3],i[4]=-e[4],i[5]=-e[5],i[6]=-e[6],i[7]=-e[7],i[8]=-e[8],i},u.transpose=function(e,i){t.typeOf.object("matrix",e),t.typeOf.object("result",i);var n=e[0],r=e[3],o=e[6],s=e[1],a=e[4],u=e[7],c=e[2],l=e[5],h=e[8];return i[0]=n,i[1]=r,i[2]=o,i[3]=s,i[4]=a,i[5]=u,i[6]=c,i[7]=l,i[8]=h,i};var p=[1,0,0],g=[2,2,1],M=new u,y=new u;return u.computeEigenDecomposition=function(e,i){t.typeOf.object("matrix",e);var r=a.EPSILON20,o=0,s=0;n(i)||(i={});for(var d=i.unitary=u.clone(u.IDENTITY,i.unitary),f=i.diagonal=u.clone(e,i.diagonal),p=r*c(f);s<10&&l(f)>p;)h(f,M),u.transpose(M,y),u.multiply(f,M,f),u.multiply(y,f,f),u.multiply(d,M,d),++o>2&&(++s,o=0);return i},u.abs=function(e,i){return t.typeOf.object("matrix",e),t.typeOf.object("result",i),i[0]=Math.abs(e[0]),i[1]=Math.abs(e[1]),i[2]=Math.abs(e[2]),i[3]=Math.abs(e[3]),i[4]=Math.abs(e[4]),i[5]=Math.abs(e[5]),i[6]=Math.abs(e[6]),i[7]=Math.abs(e[7]),i[8]=Math.abs(e[8]),i},u.determinant=function(e){t.typeOf.object("matrix",e);var i=e[0],n=e[3],r=e[6],o=e[1],s=e[4],a=e[7],u=e[2],c=e[5],l=e[8];return i*(s*l-c*a)+o*(c*r-n*l)+u*(n*a-s*r)},u.inverse=function(e,i){t.typeOf.object("matrix",e),t.typeOf.object("result",i);var n=e[0],r=e[1],s=e[2],c=e[3],l=e[4],h=e[5],d=e[6],f=e[7],p=e[8],g=u.determinant(e);if(Math.abs(g)<=a.EPSILON15)throw new o("matrix is not invertible");i[0]=l*p-f*h,i[1]=f*s-r*p,i[2]=r*h-l*s,i[3]=d*h-c*p,i[4]=n*p-d*s,i[5]=c*s-n*h,i[6]=c*f-d*l,i[7]=d*r-n*f,i[8]=n*l-c*r;var M=1/g;return u.multiplyByScalar(i,M,i)},u.equals=function(e,t){return e===t||n(e)&&n(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},u.equalsEpsilon=function(e,i,r){return t.typeOf.number("epsilon",r),e===i||n(e)&&n(i)&&Math.abs(e[0]-i[0])<=r&&Math.abs(e[1]-i[1])<=r&&Math.abs(e[2]-i[2])<=r&&Math.abs(e[3]-i[3])<=r&&Math.abs(e[4]-i[4])<=r&&Math.abs(e[5]-i[5])<=r&&Math.abs(e[6]-i[6])<=r&&Math.abs(e[7]-i[7])<=r&&Math.abs(e[8]-i[8])<=r},u.IDENTITY=s(new u(1,0,0,0,1,0,0,0,1)),u.ZERO=s(new u(0,0,0,0,0,0,0,0,0)),u.COLUMN0ROW0=0,u.COLUMN0ROW1=1,u.COLUMN0ROW2=2,u.COLUMN1ROW0=3,u.COLUMN1ROW1=4,u.COLUMN1ROW2=5,u.COLUMN2ROW0=6,u.COLUMN2ROW1=7,u.COLUMN2ROW2=8,r(u.prototype,{length:{get:function(){return u.packedLength}}}),u.prototype.clone=function(e){return u.clone(this,e)},u.prototype.equals=function(e){return u.equals(this,e)},u.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]},u.prototype.equalsEpsilon=function(e,t){return u.equalsEpsilon(this,e,t)},u.prototype.toString=function(){return"("+this[0]+", "+this[3]+", "+this[6]+")\n("+this[1]+", "+this[4]+", "+this[7]+")\n("+this[2]+", "+this[5]+", "+this[8]+")"},u}),(0,e.amdDefine)("2c",["5"],function(e){"use strict";function t(e){this.name="RuntimeError",this.message=e;var t;try{throw new Error}catch(e){t=e.stack}this.stack=t}return e(Object.create)&&((t.prototype=Object.create(Error.prototype)).constructor=t),t.prototype.toString=function(){var t=this.name+": "+this.message;return e(this.stack)&&(t+="\n"+this.stack.toString()),t},t}),(0,e.amdDefine)("28",["1f","32","54","15","5","6","11","d","27","2c"],function(e,t,i,n,r,o,s,a,u,c){"use strict";function l(e,t,i,r,o,s,a,u,c,l,h,d,f,p,g,M){this[0]=n(e,0),this[1]=n(o,0),this[2]=n(c,0),this[3]=n(f,0),this[4]=n(t,0),this[5]=n(s,0),this[6]=n(l,0),this[7]=n(p,0),this[8]=n(i,0),this[9]=n(a,0),this[10]=n(h,0),this[11]=n(g,0),this[12]=n(r,0),this[13]=n(u,0),this[14]=n(d,0),this[15]=n(M,0)}l.packedLength=16,l.pack=function(e,t,r){return i.typeOf.object("value",e),i.defined("array",t),r=n(r,0),t[r++]=e[0],t[r++]=e[1],t[r++]=e[2],t[r++]=e[3],t[r++]=e[4],t[r++]=e[5],t[r++]=e[6],t[r++]=e[7],t[r++]=e[8],t[r++]=e[9],t[r++]=e[10],t[r++]=e[11],t[r++]=e[12],t[r++]=e[13],t[r++]=e[14],t[r]=e[15],t},l.unpack=function(e,t,o){return i.defined("array",e),t=n(t,0),r(o)||(o=new l),o[0]=e[t++],o[1]=e[t++],o[2]=e[t++],o[3]=e[t++],o[4]=e[t++],o[5]=e[t++],o[6]=e[t++],o[7]=e[t++],o[8]=e[t++],o[9]=e[t++],o[10]=e[t++],o[11]=e[t++],o[12]=e[t++],o[13]=e[t++],o[14]=e[t++],o[15]=e[t],o},l.clone=function(e,t){if(r(e))return r(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new l(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},l.fromArray=l.unpack,l.fromColumnMajorArray=function(e,t){return i.defined("values",e),l.clone(e,t)},l.fromRowMajorArray=function(e,t){return i.defined("values",e),r(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new l(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},l.fromRotationTranslation=function(t,o,s){return i.typeOf.object("rotation",t),o=n(o,e.ZERO),r(s)?(s[0]=t[0],s[1]=t[1],s[2]=t[2],s[3]=0,s[4]=t[3],s[5]=t[4],s[6]=t[5],s[7]=0,s[8]=t[6],s[9]=t[7],s[10]=t[8],s[11]=0,s[12]=o.x,s[13]=o.y,s[14]=o.z,s[15]=1,s):new l(t[0],t[3],t[6],o.x,t[1],t[4],t[7],o.y,t[2],t[5],t[8],o.z,0,0,0,1)},l.fromTranslationQuaternionRotationScale=function(e,t,n,o){i.typeOf.object("translation",e),i.typeOf.object("rotation",t),i.typeOf.object("scale",n),r(o)||(o=new l);var s=n.x,a=n.y,u=n.z,c=t.x*t.x,h=t.x*t.y,d=t.x*t.z,f=t.x*t.w,p=t.y*t.y,g=t.y*t.z,M=t.y*t.w,y=t.z*t.z,A=t.z*t.w,w=t.w*t.w,E=c-p-y+w,m=2*(h-A),v=2*(d+M),N=2*(h+A),D=-c+p-y+w,T=2*(g-f),I=2*(d-M),O=2*(g+f),S=-c-p+y+w;return o[0]=E*s,o[1]=N*s,o[2]=I*s,o[3]=0,o[4]=m*a,o[5]=D*a,o[6]=O*a,o[7]=0,o[8]=v*u,o[9]=T*u,o[10]=S*u,o[11]=0,o[12]=e.x,o[13]=e.y,o[14]=e.z,o[15]=1,o},l.fromTranslationRotationScale=function(e,t){return i.typeOf.object("translationRotationScale",e),l.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},l.fromTranslation=function(e,t){return i.typeOf.object("translation",e),l.fromRotationTranslation(u.IDENTITY,e,t)},l.fromScale=function(e,t){return i.typeOf.object("scale",e),r(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new l(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},l.fromUniformScale=function(e,t){return i.typeOf.number("scale",e),r(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new l(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)};var h=new e,d=new e,f=new e;l.fromCamera=function(t,n){i.typeOf.object("camera",t);var o=t.position,s=t.direction,a=t.up;i.typeOf.object("camera.position",o),i.typeOf.object("camera.direction",s),i.typeOf.object("camera.up",a),e.normalize(s,h),e.normalize(e.cross(h,a,d),d),e.normalize(e.cross(d,h,f),f);var u=d.x,c=d.y,p=d.z,g=h.x,M=h.y,y=h.z,A=f.x,w=f.y,E=f.z,m=o.x,v=o.y,N=o.z,D=u*-m+c*-v+p*-N,T=A*-m+w*-v+E*-N,I=g*m+M*v+y*N;return r(n)?(n[0]=u,n[1]=A,n[2]=-g,n[3]=0,n[4]=c,n[5]=w,n[6]=-M,n[7]=0,n[8]=p,n[9]=E,n[10]=-y,n[11]=0,n[12]=D,n[13]=T,n[14]=I,n[15]=1,n):new l(u,c,p,D,A,w,E,T,-g,-M,-y,I,0,0,0,1)},l.computePerspectiveFieldOfView=function(e,t,n,r,o){i.typeOf.number.greaterThan("fovY",e,0),i.typeOf.number.lessThan("fovY",e,Math.PI),i.typeOf.number.greaterThan("near",n,0),i.typeOf.number.greaterThan("far",r,0),i.typeOf.object("result",o);var s=1/Math.tan(.5*e),a=s/t,u=(r+n)/(n-r),c=2*r*n/(n-r);return o[0]=a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=s,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=u,o[11]=-1,o[12]=0,o[13]=0,o[14]=c,o[15]=0,o},l.computeOrthographicOffCenter=function(e,t,n,r,o,s,a){i.typeOf.number("left",e),i.typeOf.number("right",t),i.typeOf.number("bottom",n),i.typeOf.number("top",r),i.typeOf.number("near",o),i.typeOf.number("far",s),i.typeOf.object("result",a);var u=1/(t-e),c=1/(r-n),l=1/(s-o),h=-(t+e)*u,d=-(r+n)*c,f=-(s+o)*l;return u*=2,c*=2,l*=-2,a[0]=u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=l,a[11]=0,a[12]=h,a[13]=d,a[14]=f,a[15]=1,a},l.computePerspectiveOffCenter=function(e,t,n,r,o,s,a){i.typeOf.number("left",e),i.typeOf.number("right",t),i.typeOf.number("bottom",n),i.typeOf.number("top",r),i.typeOf.number("near",o),i.typeOf.number("far",s),i.typeOf.object("result",a);var u=2*o/(t-e),c=2*o/(r-n),l=(t+e)/(t-e),h=(r+n)/(r-n),d=-(s+o)/(s-o),f=-2*s*o/(s-o);return a[0]=u,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=l,a[9]=h,a[10]=d,a[11]=-1,a[12]=0,a[13]=0,a[14]=f,a[15]=0,a},l.computeInfinitePerspectiveOffCenter=function(e,t,n,r,o,s){i.typeOf.number("left",e),i.typeOf.number("right",t),i.typeOf.number("bottom",n),i.typeOf.number("top",r),i.typeOf.number("near",o),i.typeOf.object("result",s);var a=2*o/(t-e),u=2*o/(r-n),c=(t+e)/(t-e),l=(r+n)/(r-n),h=-2*o;return s[0]=a,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=u,s[6]=0,s[7]=0,s[8]=c,s[9]=l,s[10]=-1,s[11]=-1,s[12]=0,s[13]=0,s[14]=h,s[15]=0,s},l.computeViewportTransformation=function(e,t,r,o){i.typeOf.object("result",o),e=n(e,n.EMPTY_OBJECT);var s=n(e.x,0),a=n(e.y,0),u=n(e.width,0),c=n(e.height,0);t=n(t,0);var l=.5*u,h=.5*c,d=.5*((r=n(r,1))-t),f=l,p=h,g=d,M=s+l,y=a+h,A=t+d;return o[0]=f,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=p,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=g,o[11]=0,o[12]=M,o[13]=y,o[14]=A,o[15]=1,o},l.computeView=function(t,n,r,o,s){return i.typeOf.object("position",t),i.typeOf.object("direction",n),i.typeOf.object("up",r),i.typeOf.object("right",o),i.typeOf.object("result",s),s[0]=o.x,s[1]=r.x,s[2]=-n.x,s[3]=0,s[4]=o.y,s[5]=r.y,s[6]=-n.y,s[7]=0,s[8]=o.z,s[9]=r.z,s[10]=-n.z,s[11]=0,s[12]=-e.dot(o,t),s[13]=-e.dot(r,t),s[14]=e.dot(n,t),s[15]=1,s},l.toArray=function(e,t){return i.typeOf.object("matrix",e),r(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},l.getElementIndex=function(e,t){return i.typeOf.number.greaterThanOrEquals("row",t,0),i.typeOf.number.lessThanOrEquals("row",t,3),i.typeOf.number.greaterThanOrEquals("column",e,0),i.typeOf.number.lessThanOrEquals("column",e,3),4*e+t},l.getColumn=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.number.greaterThanOrEquals("index",t,0),i.typeOf.number.lessThanOrEquals("index",t,3),i.typeOf.object("result",n);var r=4*t,o=e[r],s=e[r+1],a=e[r+2],u=e[r+3];return n.x=o,n.y=s,n.z=a,n.w=u,n},l.setColumn=function(e,t,n,r){i.typeOf.object("matrix",e),i.typeOf.number.greaterThanOrEquals("index",t,0),i.typeOf.number.lessThanOrEquals("index",t,3),i.typeOf.object("cartesian",n),i.typeOf.object("result",r);var o=4*t;return(r=l.clone(e,r))[o]=n.x,r[o+1]=n.y,r[o+2]=n.z,r[o+3]=n.w,r},l.setTranslation=function(e,t,n){return i.typeOf.object("matrix",e),i.typeOf.object("translation",t),i.typeOf.object("result",n),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=t.x,n[13]=t.y,n[14]=t.z,n[15]=e[15],n},l.getRow=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.number.greaterThanOrEquals("index",t,0),i.typeOf.number.lessThanOrEquals("index",t,3),i.typeOf.object("result",n);var r=e[t],o=e[t+4],s=e[t+8],a=e[t+12];return n.x=r,n.y=o,n.z=s,n.w=a,n},l.setRow=function(e,t,n,r){return i.typeOf.object("matrix",e),i.typeOf.number.greaterThanOrEquals("index",t,0),i.typeOf.number.lessThanOrEquals("index",t,3),i.typeOf.object("cartesian",n),i.typeOf.object("result",r),r=l.clone(e,r),r[t]=n.x,r[t+4]=n.y,r[t+8]=n.z,r[t+12]=n.w,r};var p=new e;l.getScale=function(t,n){return i.typeOf.object("matrix",t),i.typeOf.object("result",n),n.x=e.magnitude(e.fromElements(t[0],t[1],t[2],p)),n.y=e.magnitude(e.fromElements(t[4],t[5],t[6],p)),n.z=e.magnitude(e.fromElements(t[8],t[9],t[10],p)),n};var g=new e;l.getMaximumScale=function(t){return l.getScale(t,g),e.maximumComponent(g)},l.multiply=function(e,t,n){i.typeOf.object("left",e),i.typeOf.object("right",t),i.typeOf.object("result",n);var r=e[0],o=e[1],s=e[2],a=e[3],u=e[4],c=e[5],l=e[6],h=e[7],d=e[8],f=e[9],p=e[10],g=e[11],M=e[12],y=e[13],A=e[14],w=e[15],E=t[0],m=t[1],v=t[2],N=t[3],D=t[4],T=t[5],I=t[6],O=t[7],S=t[8],L=t[9],_=t[10],j=t[11],x=t[12],b=t[13],C=t[14],R=t[15],z=r*E+u*m+d*v+M*N,P=o*E+c*m+f*v+y*N,U=s*E+l*m+p*v+A*N,B=a*E+h*m+g*v+w*N,k=r*D+u*T+d*I+M*O,F=o*D+c*T+f*I+y*O,Q=s*D+l*T+p*I+A*O,Y=a*D+h*T+g*I+w*O,q=r*S+u*L+d*_+M*j,G=o*S+c*L+f*_+y*j,V=s*S+l*L+p*_+A*j,H=a*S+h*L+g*_+w*j,W=r*x+u*b+d*C+M*R,X=o*x+c*b+f*C+y*R,Z=s*x+l*b+p*C+A*R,K=a*x+h*b+g*C+w*R;return n[0]=z,n[1]=P,n[2]=U,n[3]=B,n[4]=k,n[5]=F,n[6]=Q,n[7]=Y,n[8]=q,n[9]=G,n[10]=V,n[11]=H,n[12]=W,n[13]=X,n[14]=Z,n[15]=K,n},l.add=function(e,t,n){return i.typeOf.object("left",e),i.typeOf.object("right",t),i.typeOf.object("result",n),n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n[9]=e[9]+t[9],n[10]=e[10]+t[10],n[11]=e[11]+t[11],n[12]=e[12]+t[12],n[13]=e[13]+t[13],n[14]=e[14]+t[14],n[15]=e[15]+t[15],n},l.subtract=function(e,t,n){return i.typeOf.object("left",e),i.typeOf.object("right",t),i.typeOf.object("result",n),n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n[9]=e[9]-t[9],n[10]=e[10]-t[10],n[11]=e[11]-t[11],n[12]=e[12]-t[12],n[13]=e[13]-t[13],n[14]=e[14]-t[14],n[15]=e[15]-t[15],n},l.multiplyTransformation=function(e,t,n){i.typeOf.object("left",e),i.typeOf.object("right",t),i.typeOf.object("result",n);var r=e[0],o=e[1],s=e[2],a=e[4],u=e[5],c=e[6],l=e[8],h=e[9],d=e[10],f=e[12],p=e[13],g=e[14],M=t[0],y=t[1],A=t[2],w=t[4],E=t[5],m=t[6],v=t[8],N=t[9],D=t[10],T=t[12],I=t[13],O=t[14],S=r*M+a*y+l*A,L=o*M+u*y+h*A,_=s*M+c*y+d*A,j=r*w+a*E+l*m,x=o*w+u*E+h*m,b=s*w+c*E+d*m,C=r*v+a*N+l*D,R=o*v+u*N+h*D,z=s*v+c*N+d*D,P=r*T+a*I+l*O+f,U=o*T+u*I+h*O+p,B=s*T+c*I+d*O+g;return n[0]=S,n[1]=L,n[2]=_,n[3]=0,n[4]=j,n[5]=x,n[6]=b,n[7]=0,n[8]=C,n[9]=R,n[10]=z,n[11]=0,n[12]=P,n[13]=U,n[14]=B,n[15]=1,n},l.multiplyByMatrix3=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("rotation",t),i.typeOf.object("result",n);var r=e[0],o=e[1],s=e[2],a=e[4],u=e[5],c=e[6],l=e[8],h=e[9],d=e[10],f=t[0],p=t[1],g=t[2],M=t[3],y=t[4],A=t[5],w=t[6],E=t[7],m=t[8],v=r*f+a*p+l*g,N=o*f+u*p+h*g,D=s*f+c*p+d*g,T=r*M+a*y+l*A,I=o*M+u*y+h*A,O=s*M+c*y+d*A,S=r*w+a*E+l*m,L=o*w+u*E+h*m,_=s*w+c*E+d*m;return n[0]=v,n[1]=N,n[2]=D,n[3]=0,n[4]=T,n[5]=I,n[6]=O,n[7]=0,n[8]=S,n[9]=L,n[10]=_,n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n},l.multiplyByTranslation=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("translation",t),i.typeOf.object("result",n);var r=t.x,o=t.y,s=t.z,a=r*e[0]+o*e[4]+s*e[8]+e[12],u=r*e[1]+o*e[5]+s*e[9]+e[13],c=r*e[2]+o*e[6]+s*e[10]+e[14];return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=a,n[13]=u,n[14]=c,n[15]=e[15],n};var M=new e;l.multiplyByUniformScale=function(e,t,n){return i.typeOf.object("matrix",e),i.typeOf.number("scale",t),i.typeOf.object("result",n),M.x=t,M.y=t,M.z=t,l.multiplyByScale(e,M,n)},l.multiplyByScale=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("scale",t),i.typeOf.object("result",n);var r=t.x,o=t.y,s=t.z;return 1===r&&1===o&&1===s?l.clone(e,n):(n[0]=r*e[0],n[1]=r*e[1],n[2]=r*e[2],n[3]=0,n[4]=o*e[4],n[5]=o*e[5],n[6]=o*e[6],n[7]=0,n[8]=s*e[8],n[9]=s*e[9],n[10]=s*e[10],n[11]=0,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=1,n)},l.multiplyByVector=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("cartesian",t),i.typeOf.object("result",n);var r=t.x,o=t.y,s=t.z,a=t.w,u=e[0]*r+e[4]*o+e[8]*s+e[12]*a,c=e[1]*r+e[5]*o+e[9]*s+e[13]*a,l=e[2]*r+e[6]*o+e[10]*s+e[14]*a,h=e[3]*r+e[7]*o+e[11]*s+e[15]*a;return n.x=u,n.y=c,n.z=l,n.w=h,n},l.multiplyByPointAsVector=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("cartesian",t),i.typeOf.object("result",n);var r=t.x,o=t.y,s=t.z,a=e[0]*r+e[4]*o+e[8]*s,u=e[1]*r+e[5]*o+e[9]*s,c=e[2]*r+e[6]*o+e[10]*s;return n.x=a,n.y=u,n.z=c,n},l.multiplyByPoint=function(e,t,n){i.typeOf.object("matrix",e),i.typeOf.object("cartesian",t),i.typeOf.object("result",n);var r=t.x,o=t.y,s=t.z,a=e[0]*r+e[4]*o+e[8]*s+e[12],u=e[1]*r+e[5]*o+e[9]*s+e[13],c=e[2]*r+e[6]*o+e[10]*s+e[14];return n.x=a,n.y=u,n.z=c,n},l.multiplyByScalar=function(e,t,n){return i.typeOf.object("matrix",e),i.typeOf.number("scalar",t),i.typeOf.object("result",n),n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n[9]=e[9]*t,n[10]=e[10]*t,n[11]=e[11]*t,n[12]=e[12]*t,n[13]=e[13]*t,n[14]=e[14]*t,n[15]=e[15]*t,n},l.negate=function(e,t){return i.typeOf.object("matrix",e),i.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},l.transpose=function(e,t){i.typeOf.object("matrix",e),i.typeOf.object("result",t);var n=e[1],r=e[2],o=e[3],s=e[6],a=e[7],u=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[10]=e[10],t[11]=e[14],t[12]=o,t[13]=a,t[14]=u,t[15]=e[15],t},l.abs=function(e,t){return i.typeOf.object("matrix",e),i.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},l.equals=function(e,t){return e===t||r(e)&&r(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},l.equalsEpsilon=function(e,t,n){return i.typeOf.number("epsilon",n),e===t||r(e)&&r(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n&&Math.abs(e[9]-t[9])<=n&&Math.abs(e[10]-t[10])<=n&&Math.abs(e[11]-t[11])<=n&&Math.abs(e[12]-t[12])<=n&&Math.abs(e[13]-t[13])<=n&&Math.abs(e[14]-t[14])<=n&&Math.abs(e[15]-t[15])<=n},l.getTranslation=function(e,t){return i.typeOf.object("matrix",e),i.typeOf.object("result",t),t.x=e[12],t.y=e[13],t.z=e[14],t},l.getRotation=function(e,t){return i.typeOf.object("matrix",e),i.typeOf.object("result",t),t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t};var y=new u,A=new u,w=new t,E=new t(0,0,0,1);return l.inverse=function(e,n){if(i.typeOf.object("matrix",e),i.typeOf.object("result",n),u.equalsEpsilon(l.getRotation(e,y),A,a.EPSILON7)&&t.equals(l.getRow(e,3,w),E))return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=0,n[11]=0,n[12]=-e[12],n[13]=-e[13],n[14]=-e[14],n[15]=1,n;var r=e[0],o=e[4],s=e[8],h=e[12],d=e[1],f=e[5],p=e[9],g=e[13],M=e[2],m=e[6],v=e[10],N=e[14],D=e[3],T=e[7],I=e[11],O=e[15],S=v*O,L=N*I,_=m*O,j=N*T,x=m*I,b=v*T,C=M*O,R=N*D,z=M*I,P=v*D,U=M*T,B=m*D,k=S*f+j*p+x*g-(L*f+_*p+b*g),F=L*d+C*p+P*g-(S*d+R*p+z*g),Q=_*d+R*f+U*g-(j*d+C*f+B*g),Y=b*d+z*f+B*p-(x*d+P*f+U*p),q=L*o+_*s+b*h-(S*o+j*s+x*h),G=S*r+R*s+z*h-(L*r+C*s+P*h),V=j*r+C*o+B*h-(_*r+R*o+U*h),H=x*r+P*o+U*s-(b*r+z*o+B*s),W=(S=s*g)*T+(j=h*f)*I+(x=o*p)*O-((L=h*p)*T+(_=o*g)*I+(b=s*f)*O),X=L*D+(C=r*g)*I+(P=s*d)*O-(S*D+(R=h*d)*I+(z=r*p)*O),Z=_*D+R*T+(U=r*f)*O-(j*D+C*T+(B=o*d)*O),K=b*D+z*T+B*I-(x*D+P*T+U*I),J=_*v+b*N+L*m-(x*N+S*m+j*v),$=z*N+S*M+R*v-(C*v+P*N+L*M),ee=C*m+B*N+j*M-(U*N+_*M+R*m),te=U*v+x*M+P*m-(z*m+B*v+b*M),ie=r*k+o*F+s*Q+h*Y;if(Math.abs(ie)>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0}},e.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_genrand(5489),i=0;i>>1^t[1&e];for(;i>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},e.prototype.random=function(){return this.genrand_int32()*(1/4294967296)},e}),(0,e.amdDefine)("11",["5"],function(e){"use strict";var t=Object.freeze;return e(t)||(t=function(e){return e}),t}),(0,e.amdDefine)("15",["11"],function(e){"use strict";function t(e,t){return void 0!==e?e:t}return t.EMPTY_OBJECT=e({}),t}),(0,e.amdDefine)("d",["7b","15","5","7"],function(e,t,i,n){"use strict";var r={};r.EPSILON1=.1,r.EPSILON2=.01,r.EPSILON3=.001,r.EPSILON4=1e-4,r.EPSILON5=1e-5,r.EPSILON6=1e-6,r.EPSILON7=1e-7,r.EPSILON8=1e-8,r.EPSILON9=1e-9,r.EPSILON10=1e-10,r.EPSILON11=1e-11,r.EPSILON12=1e-12,r.EPSILON13=1e-13,r.EPSILON14=1e-14,r.EPSILON15=1e-15,r.EPSILON16=1e-16,r.EPSILON17=1e-17,r.EPSILON18=1e-18,r.EPSILON19=1e-19,r.EPSILON20=1e-20,r.GRAVITATIONALPARAMETER=3986004418e5,r.SOLAR_RADIUS=6955e5,r.LUNAR_RADIUS=1737400,r.SIXTY_FOUR_KILOBYTES=65536,r.sign=function(e){return e>0?1:e<0?-1:0},r.signNotZero=function(e){return e<0?-1:1},r.toSNorm=function(e,i){return i=t(i,255),Math.round((.5*r.clamp(e,-1,1)+.5)*i)},r.fromSNorm=function(e,i){return i=t(i,255),r.clamp(e,0,i)/i*2-1},r.sinh=function(e){return.5*(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))},r.cosh=function(e){return.5*(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))},r.lerp=function(e,t,i){return(1-i)*e+i*t},r.PI=Math.PI,r.ONE_OVER_PI=1/Math.PI,r.PI_OVER_TWO=.5*Math.PI,r.PI_OVER_THREE=Math.PI/3,r.PI_OVER_FOUR=Math.PI/4,r.PI_OVER_SIX=Math.PI/6,r.THREE_PI_OVER_TWO=3*Math.PI*.5,r.TWO_PI=2*Math.PI,r.ONE_OVER_TWO_PI=1/(2*Math.PI),r.RADIANS_PER_DEGREE=Math.PI/180,r.DEGREES_PER_RADIAN=180/Math.PI,r.RADIANS_PER_ARCSECOND=r.RADIANS_PER_DEGREE/3600,r.toRadians=function(e){if(!i(e))throw new n("degrees is required.");return e*r.RADIANS_PER_DEGREE},r.toDegrees=function(e){if(!i(e))throw new n("radians is required.");return e*r.DEGREES_PER_RADIAN},r.convertLongitudeRange=function(e){if(!i(e))throw new n("angle is required.");var t=r.TWO_PI,o=e-Math.floor(e/t)*t;return o<-Math.PI?o+t:o>=Math.PI?o-t:o},r.clampToLatitudeRange=function(e){if(!i(e))throw new n("angle is required.");return r.clamp(e,-1*r.PI_OVER_TWO,r.PI_OVER_TWO)},r.negativePiToPi=function(e){if(!i(e))throw new n("angle is required.");return r.zeroToTwoPi(e+r.PI)-r.PI},r.zeroToTwoPi=function(e){if(!i(e))throw new n("angle is required.");var t=r.mod(e,r.TWO_PI);return Math.abs(t)r.EPSILON14?r.TWO_PI:t},r.mod=function(e,t){if(!i(e))throw new n("m is required.");if(!i(t))throw new n("n is required.");return(e%t+t)%t},r.equalsEpsilon=function(e,r,o,s){if(!i(e))throw new n("left is required.");if(!i(r))throw new n("right is required.");if(!i(o))throw new n("relativeEpsilon is required.");s=t(s,o);var a=Math.abs(e-r);return a<=s||a<=o*Math.max(Math.abs(e),Math.abs(r))};var o=[1];r.factorial=function(e){if("number"!=typeof e||e<0)throw new n("A number greater than or equal to 0 is required.");var t=o.length;if(e>=t)for(var i=o[t-1],r=t;r<=e;r++)o.push(i*r);return o[e]},r.incrementWrap=function(e,r,o){if(o=t(o,0),!i(e))throw new n("n is required.");if(r<=o)throw new n("maximumValue must be greater than minimumValue.");return++e>r&&(e=o),e},r.isPowerOfTwo=function(e){if("number"!=typeof e||e<0)throw new n("A number greater than or equal to 0 is required.");return 0!==e&&0==(e&e-1)},r.nextPowerOfTwo=function(e){if("number"!=typeof e||e<0)throw new n("A number greater than or equal to 0 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},r.clamp=function(e,t,r){if(!i(e))throw new n("value is required");if(!i(t))throw new n("min is required.");if(!i(r))throw new n("max is required.");return er?r:e};var s=new e;return r.setRandomNumberSeed=function(t){if(!i(t))throw new n("seed is required.");s=new e(t)},r.nextRandomNumber=function(){return s.random()},r.acosClamped=function(e){if(!i(e))throw new n("value is required.");return Math.acos(r.clamp(e,-1,1))},r.asinClamped=function(e){if(!i(e))throw new n("value is required.");return Math.asin(r.clamp(e,-1,1))},r.chordLength=function(e,t){if(!i(e))throw new n("angle is required.");if(!i(t))throw new n("radius is required.");return 2*t*Math.sin(.5*e)},r.logBase=function(e,t){if(!i(e))throw new n("number is required.");if(!i(t))throw new n("base is required.");return Math.log(e)/Math.log(t)},r.fog=function(e,t){var i=e*t;return 1-Math.exp(-i*i)},r}),(0,e.amdDefine)("7c",["5","6","7","d"],function(e,t,i,n){"use strict";function r(){i.throwInstantiationError()}t(r.prototype,{errorEvent:{get:i.throwInstantiationError},credit:{get:i.throwInstantiationError},tilingScheme:{get:i.throwInstantiationError},ready:{get:i.throwInstantiationError},readyPromise:{get:i.throwInstantiationError},hasWaterMask:{get:i.throwInstantiationError},hasVertexNormals:{get:i.throwInstantiationError},availability:{get:i.throwInstantiationError}});var o=[];return r.getRegularGridIndices=function(t,r){if(t*r>=n.SIXTY_FOUR_KILOBYTES)throw new i("The total number of vertices (width * height) must be less than 65536.");var s=o[t];e(s)||(o[t]=s=[]);var a=s[r];if(!e(a)){a=s[r]=new Uint16Array((t-1)*(r-1)*6);for(var u=0,c=0,l=0;l=s&&(f=s-1,d=s-2);var p=0|h,g=p+1;return g>=a&&(g=a-1,p=a-2),g=a-1-g,M(l-d,h-p,y(e,t,i,n,r,(p=a-1-p)*s+d),y(e,t,i,n,r,p*s+f),y(e,t,i,n,r,g*s+d),y(e,t,i,n,r,g*s+f))}function g(e,t,i,n,r,o,s,a,u,c,l){var h=(u-o.west)*(s-1)/(o.east-o.west),d=(c-o.south)*(a-1)/(o.north-o.south);r>0&&(h+=1,d+=1,s+=2,a+=2);var f=0|h,p=f+1;p>=(r>0?s-1:s)&&(p=s-1,f=s-2);var g=0|d,y=g+1;y>=(r>0?a-1:a)&&(y=a-1,g=a-2);var A=d-g;return g=a-1-g,y=a-1-y,M(h-f,A,(t.decodeHeight(e,g*s+f)/l-i)/n,(t.decodeHeight(e,g*s+p)/l-i)/n,(t.decodeHeight(e,y*s+f)/l-i)/n,(t.decodeHeight(e,y*s+p)/l-i)/n)}function M(e,t,i,n,r,o){return t=0;--s)a=a*i+e[o+s];return a}function A(e,t,i,n,r,o,s,a){s*=r;var u;if(o)for(u=0;u0;--u)e[s+u]=a/n|0,a-=e[s+u]*n,n/=i;e[s+u]=a}n(f.prototype,{waterMask:{get:function(){return this._waterMask}}});var w=new c("createVerticesFromHeightmap");return f.prototype.createMesh=function(n,s,a,c,f){if(!i(n))throw new r("tilingScheme is required.");if(!i(s))throw new r("x is required.");if(!i(a))throw new r("y is required.");if(!i(c))throw new r("level is required.");var p=n.ellipsoid,g=n.tileXYToNativeRectangle(s,a,c),M=n.tileXYToRectangle(s,a,c);f=t(f,1);var y=p.cartographicToCartesian(u.center(M)),A=this._structure,E=d.getEstimatedLevelZeroGeometricErrorForAHeightmap(p,this._width,n.getNumberOfXTilesAtLevel(0))/(1<1)throw new r("Upsampling through more than one level at a time is not currently supported.");var l=this._width,h=this._height,d=this._structure,p=this._skirtHeight,M=d.stride,y=new this._bufferType(l*h*M),w=this._mesh;if(i(w)){for(var E=w.vertices,m=w.encoding,v=e.tileXYToRectangle(t,n,o),N=e.tileXYToRectangle(s,u,c),D=d.heightOffset,T=d.heightScale,I=w.exaggeration,O=d.elementsPerHeight,S=d.elementMultiplier,L=d.isBigEndian,_=Math.pow(S,O-1),j=0;jd.highestEncodedHeight?d.highestEncodedHeight:C)}return new f({buffer:y,width:l,height:h,childTileMask:0,structure:this._structure,createdByUpsampling:!0})}},f.prototype.isChildAvailable=function(e,t,n,o){if(!i(e))throw new r("thisX is required.");if(!i(t))throw new r("thisY is required.");if(!i(n))throw new r("childX is required.");if(!i(o))throw new r("childY is required.");var s=2;return n!==2*e&&++s,o!==2*t&&(s-=2),0!=(this._childTileMask&1<>>0,a=Math.max(0,Math.min(i,M)),c=[],u=M-a+1,l=[],h=o(),a)for(g=h.progress,p=function(e){l.push(e),--u||(f=p=d,h.reject(l))},f=function(e){c.push(e),--a||(f=p=d,h.resolve(c))},y=0;y>>0,n=[],c=o(),s)for(a=function(t,r){e(t,i).then(function(e){n[r]=e,--s||c.resolve(n)},c.reject)},u=0;ue;)if(null!=(i=t[--n])&&"function"!=typeof i)throw new Error("arg "+n+" must be a function")}function d(){}function f(e){return e}var p,g,M;return e.defer=o,e.resolve=t,e.reject=function(t){return e(t,r)},e.join=function(){return c(arguments,f)},e.all=u,e.map=c,e.reduce=function(t,i){var n=g.call(arguments,1);return e(t,function(t){var r;return r=t.length,n[0]=function(t,n,o){return e(t,function(t){return e(n,function(e){return i(t,e,o,r)})})},p.apply(t,n)})},e.any=function(e,t,i,n){return a(e,1,function(e){return t?t(e[0]):e[0]},i,n)},e.some=a,e.chain=function(t,i,n){var o=arguments.length>2;return e(t,function(e){return e=o?n:e,i.resolve(e),e},function(e){return i.reject(e),r(e)},i.progress)},e.isPromise=s,i.prototype={always:function(e,t){return this.then(e,e,t)},otherwise:function(e){return this.then(M,e)},yield:function(e){return this.then(function(){return e})},spread:function(e){return this.then(function(t){return u(t,function(t){return e.apply(M,t)})})}},g=[].slice,p=[].reduce||function(e){var t,i,n,r,o;if(o=0,t=Object(this),r=t.length>>>0,(i=arguments).length<=1)for(;;){if(o in t){n=t[o++];break}if(++o>=r)throw new TypeError}else n=i[1];for(;oe.TEXTURE31){console.error("TEXTURE_BINDING_2D or TEXTURE_BINDING_CUBE_MAP must be followed by a valid texture unit"),n.push(null,null);break}r||(r=e.getParameter(e.ACTIVE_TEXTURE)),e.activeTexture(u),n.push(e.getParameter(s),null);break;case e.ACTIVE_TEXTURE:r=e.getParameter(e.ACTIVE_TEXTURE),n.push(null);break;default:n.push(e.getParameter(s))}for(i(e),o=0;oe.TEXTURE31)break;e.activeTexture(u),e.bindTexture(e.TEXTURE_2D,a);break;case e.TEXTURE_BINDING_CUBE_MAP:var u=t[++o];if(ue.TEXTURE31)break;e.activeTexture(u),e.bindTexture(e.TEXTURE_CUBE_MAP,a);break;case e.VIEWPORT:e.viewport(a[0],a[1],a[2],a[3]);break;case e.BLEND:case e.CULL_FACE:case e.DEPTH_TEST:case e.SCISSOR_TEST:case e.STENCIL_TEST:a?e.enable(s):e.disable(s);break;default:console.log("No GL restore behavior for 0x"+s.toString(16))}r&&e.activeTexture(r)}}else i(e)},i.exports}),e.registerDynamic("81",["82","83"],!0,function(e,t,i){function n(e){this.gl=e,this.attribs={position:0},this.program=r.linkProgram(e,s,a,this.attribs),this.uniforms=r.getProgramUniforms(e,this.program),this.vertexBuffer=e.createBuffer(),this.gearOffset=0,this.gearVertexCount=0,this.arrowOffset=0,this.arrowVertexCount=0,this.projMat=new Float32Array(16),this.listener=null,this.onResize()}this||self;var r=e("82"),o=e("83"),s=["attribute vec2 position;","uniform mat4 projectionMat;","void main() {"," gl_Position = projectionMat * vec4( position, -1.0, 1.0 );","}"].join("\n"),a=["precision mediump float;","uniform vec4 color;","void main() {"," gl_FragColor = color;","}"].join("\n"),u=Math.PI/180,c=.3125;return n.prototype.destroy=function(){var e=this.gl;this.listener&&e.canvas.removeEventListener("click",this.listener,!1),e.deleteProgram(this.program),e.deleteBuffer(this.vertexBuffer)},n.prototype.listen=function(e,t){var i=this.gl.canvas;this.listener=function(n){var r=i.clientWidth/2;n.clientX>r-42&&n.clientXi.clientHeight-42?e(n):n.clientX<42&&n.clientY<42&&t(n)},i.addEventListener("click",this.listener,!1)},n.prototype.onResize=function(){var e=this.gl,t=this,i=[e.ARRAY_BUFFER_BINDING];o(e,i,function(e){function i(e,t){var i=(90-e)*u,n=Math.cos(i),r=Math.sin(i);o.push(c*n*d+s,c*r*d+d),o.push(t*n*d+s,t*r*d+d)}function n(t,i){o.push(f+t,e.drawingBufferHeight-f-i)}var o=[],s=e.drawingBufferWidth/2,a=e.drawingBufferWidth/(screen.width*window.devicePixelRatio);r.isIOS()||(a*=window.devicePixelRatio);var l=4*a/2,h=42*a,d=28*a/2,f=14*a;o.push(s-l,h),o.push(s-l,e.drawingBufferHeight),o.push(s+l,h),o.push(s+l,e.drawingBufferHeight),t.gearOffset=o.length/2;for(var p=0;p<=6;p++){var g=60*p;i(g,1),i(g+12,1),i(g+20,.75),i(g+40,.75),i(g+48,1)}t.gearVertexCount=o.length/2-t.gearOffset,t.arrowOffset=o.length/2;var M=l/Math.sin(45*u);n(0,d),n(d,0),n(d+M,M),n(M,d+M),n(M,d-M),n(0,d),n(d,2*d),n(d+M,2*d-M),n(M,d-M),n(0,d),n(M,d-l),n(28*a,d-l),n(M,d+l),n(28*a,d+l),t.arrowVertexCount=o.length/2-t.arrowOffset,e.bindBuffer(e.ARRAY_BUFFER,t.vertexBuffer),e.bufferData(e.ARRAY_BUFFER,new Float32Array(o),e.STATIC_DRAW)})},n.prototype.render=function(){var e=this.gl,t=this,i=[e.CULL_FACE,e.DEPTH_TEST,e.BLEND,e.SCISSOR_TEST,e.STENCIL_TEST,e.COLOR_WRITEMASK,e.VIEWPORT,e.CURRENT_PROGRAM,e.ARRAY_BUFFER_BINDING];o(e,i,function(e){e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.BLEND),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.colorMask(!0,!0,!0,!0),e.viewport(0,0,e.drawingBufferWidth,e.drawingBufferHeight),t.renderNoState()})},n.prototype.renderNoState=function(){var e=this.gl;e.useProgram(this.program),e.bindBuffer(e.ARRAY_BUFFER,this.vertexBuffer),e.enableVertexAttribArray(this.attribs.position),e.vertexAttribPointer(this.attribs.position,2,e.FLOAT,!1,8,0),e.uniform4f(this.uniforms.color,1,1,1,1),r.orthoMatrix(this.projMat,0,e.drawingBufferWidth,0,e.drawingBufferHeight,.1,1024),e.uniformMatrix4fv(this.uniforms.projectionMat,!1,this.projMat),e.drawArrays(e.TRIANGLE_STRIP,0,4),e.drawArrays(e.TRIANGLE_STRIP,this.gearOffset,this.gearVertexCount),e.drawArrays(e.TRIANGLE_STRIP,this.arrowOffset,this.arrowVertexCount)},i.exports=n,i.exports}),e.registerDynamic("84",[],!0,function(e,t,i){this||self;var n={format:1,last_updated:"2016-01-20T00:18:35Z",devices:[{type:"android",rules:[{mdmh:"asus/*/Nexus 7/*"},{ua:"Nexus 7"}],dpi:[320.8,323],bw:3,ac:500},{type:"android",rules:[{mdmh:"asus/*/ASUS_Z00AD/*"},{ua:"ASUS_Z00AD"}],dpi:[403,404.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"HTC/*/HTC6435LVW/*"},{ua:"HTC6435LVW"}],dpi:[449.7,443.3],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"HTC/*/HTC One XL/*"},{ua:"HTC One XL"}],dpi:[315.3,314.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"htc/*/Nexus 9/*"},{ua:"Nexus 9"}],dpi:289,bw:3,ac:500},{type:"android",rules:[{mdmh:"HTC/*/HTC One M9/*"},{ua:"HTC One M9"}],dpi:[442.5,443.3],bw:3,ac:500},{type:"android",rules:[{mdmh:"HTC/*/HTC One_M8/*"},{ua:"HTC One_M8"}],dpi:[449.7,447.4],bw:3,ac:500},{type:"android",rules:[{mdmh:"HTC/*/HTC One/*"},{ua:"HTC One"}],dpi:472.8,bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Huawei/*/Nexus 6P/*"},{ua:"Nexus 6P"}],dpi:[515.1,518],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/Nexus 5X/*"},{ua:"Nexus 5X"}],dpi:[422,419.9],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/LGMS345/*"},{ua:"LGMS345"}],dpi:[221.7,219.1],bw:3,ac:500},{type:"android",rules:[{mdmh:"LGE/*/LG-D800/*"},{ua:"LG-D800"}],dpi:[422,424.1],bw:3,ac:500},{type:"android",rules:[{mdmh:"LGE/*/LG-D850/*"},{ua:"LG-D850"}],dpi:[537.9,541.9],bw:3,ac:500},{type:"android",rules:[{mdmh:"LGE/*/VS985 4G/*"},{ua:"VS985 4G"}],dpi:[537.9,535.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/Nexus 5/*"},{ua:"Nexus 5 "}],dpi:[442.4,444.8],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/Nexus 4/*"},{ua:"Nexus 4"}],dpi:[319.8,318.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/LG-P769/*"},{ua:"LG-P769"}],dpi:[240.6,247.5],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/LGMS323/*"},{ua:"LGMS323"}],dpi:[206.6,204.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"LGE/*/LGLS996/*"},{ua:"LGLS996"}],dpi:[403.4,401.5],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Micromax/*/4560MMX/*"},{ua:"4560MMX"}],dpi:[240,219.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Micromax/*/A250/*"},{ua:"Micromax A250"}],dpi:[480,446.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Micromax/*/Micromax AQ4501/*"},{ua:"Micromax AQ4501"}],dpi:240,bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/DROID RAZR/*"},{ua:"DROID RAZR"}],dpi:[368.1,256.7],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT830C/*"},{ua:"XT830C"}],dpi:[254,255.9],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT1021/*"},{ua:"XT1021"}],dpi:[254,256.7],bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/XT1023/*"},{ua:"XT1023"}],dpi:[254,256.7],bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/XT1028/*"},{ua:"XT1028"}],dpi:[326.6,327.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT1034/*"},{ua:"XT1034"}],dpi:[326.6,328.4],bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/XT1053/*"},{ua:"XT1053"}],dpi:[315.3,316.1],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT1562/*"},{ua:"XT1562"}],dpi:[403.4,402.7],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/Nexus 6/*"},{ua:"Nexus 6 "}],dpi:[494.3,489.7],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT1063/*"},{ua:"XT1063"}],dpi:[295,296.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"motorola/*/XT1064/*"},{ua:"XT1064"}],dpi:[295,295.6],bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/XT1092/*"},{ua:"XT1092"}],dpi:[422,424.1],bw:3,ac:500},{type:"android",rules:[{mdmh:"motorola/*/XT1095/*"},{ua:"XT1095"}],dpi:[422,423.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"OnePlus/*/A0001/*"},{ua:"A0001"}],dpi:[403.4,401],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"OnePlus/*/ONE E1005/*"},{ua:"ONE E1005"}],dpi:[442.4,441.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"OnePlus/*/ONE A2005/*"},{ua:"ONE A2005"}],dpi:[391.9,405.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"OPPO/*/X909/*"},{ua:"X909"}],dpi:[442.4,444.1],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9082/*"},{ua:"GT-I9082"}],dpi:[184.7,185.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G360P/*"},{ua:"SM-G360P"}],dpi:[196.7,205.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/Nexus S/*"},{ua:"Nexus S"}],dpi:[234.5,229.8],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9300/*"},{ua:"GT-I9300"}],dpi:[304.8,303.9],bw:5,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-T230NU/*"},{ua:"SM-T230NU"}],dpi:216,bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SGH-T399/*"},{ua:"SGH-T399"}],dpi:[217.7,231.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-N9005/*"},{ua:"SM-N9005"}],dpi:[386.4,387],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SAMSUNG-SM-N900A/*"},{ua:"SAMSUNG-SM-N900A"}],dpi:[386.4,387.7],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9500/*"},{ua:"GT-I9500"}],dpi:[442.5,443.3],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/GT-I9505/*"},{ua:"GT-I9505"}],dpi:439.4,bw:4,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G900F/*"},{ua:"SM-G900F"}],dpi:[415.6,431.6],bw:5,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G900M/*"},{ua:"SM-G900M"}],dpi:[415.6,431.6],bw:5,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G800F/*"},{ua:"SM-G800F"}],dpi:326.8,bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G906S/*"},{ua:"SM-G906S"}],dpi:[562.7,572.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9300/*"},{ua:"GT-I9300"}],dpi:[306.7,304.8],bw:5,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-T535/*"},{ua:"SM-T535"}],dpi:[142.6,136.4],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-N920C/*"},{ua:"SM-N920C"}],dpi:[515.1,518.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9300I/*"},{ua:"GT-I9300I"}],dpi:[304.8,305.8],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-I9195/*"},{ua:"GT-I9195"}],dpi:[249.4,256.7],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SPH-L520/*"},{ua:"SPH-L520"}],dpi:[249.4,255.9],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SAMSUNG-SGH-I717/*"},{ua:"SAMSUNG-SGH-I717"}],dpi:285.8,bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SPH-D710/*"},{ua:"SPH-D710"}],dpi:[217.7,204.2],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/GT-N7100/*"},{ua:"GT-N7100"}],dpi:265.1,bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SCH-I605/*"},{ua:"SCH-I605"}],dpi:265.1,bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/Galaxy Nexus/*"},{ua:"Galaxy Nexus"}],dpi:[315.3,314.2],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-N910H/*"},{ua:"SM-N910H"}],dpi:[515.1,518],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-N910C/*"},{ua:"SM-N910C"}],dpi:[515.2,520.2],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-G130M/*"},{ua:"SM-G130M"}],dpi:[165.9,164.8],bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-G928I/*"},{ua:"SM-G928I"}],dpi:[515.1,518.4],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G920F/*"},{ua:"SM-G920F"}],dpi:580.6,bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-G920P/*"},{ua:"SM-G920P"}],dpi:[522.5,577],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"samsung/*/SM-G925F/*"},{ua:"SM-G925F"}],dpi:580.6,bw:3,ac:500},{type:"android",rules:[{mdmh:"samsung/*/SM-G925V/*"},{ua:"SM-G925V"}],dpi:[522.5,576.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Sony/*/C6903/*"},{ua:"C6903"}],dpi:[442.5,443.3],bw:3,ac:500},{type:"android",rules:[{mdmh:"Sony/*/D6653/*"},{ua:"D6653"}],dpi:[428.6,427.6],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Sony/*/E6653/*"},{ua:"E6653"}],dpi:[428.6,425.7],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Sony/*/E6853/*"},{ua:"E6853"}],dpi:[403.4,401.9],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"Sony/*/SGP321/*"},{ua:"SGP321"}],dpi:[224.7,224.1],bw:3,ac:500},{type:"android",rules:[{mdmh:"TCT/*/ALCATEL ONE TOUCH Fierce/*"},{ua:"ALCATEL ONE TOUCH Fierce"}],dpi:[240,247.5],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"THL/*/thl 5000/*"},{ua:"thl 5000"}],dpi:[480,443.3],bw:3,ac:1e3},{type:"android",rules:[{mdmh:"ZTE/*/ZTE Blade L2/*"},{ua:"ZTE Blade L2"}],dpi:240,bw:3,ac:500},{type:"ios",rules:[{res:[640,960]}],dpi:[325.1,328.4],bw:4,ac:1e3},{type:"ios",rules:[{res:[640,960]}],dpi:[325.1,328.4],bw:4,ac:1e3},{type:"ios",rules:[{res:[640,1136]}],dpi:[317.1,320.2],bw:3,ac:1e3},{type:"ios",rules:[{res:[640,1136]}],dpi:[317.1,320.2],bw:3,ac:1e3},{type:"ios",rules:[{res:[750,1334]}],dpi:326.4,bw:4,ac:1e3},{type:"ios",rules:[{res:[750,1334]}],dpi:326.4,bw:4,ac:1e3},{type:"ios",rules:[{res:[1242,2208]}],dpi:[453.6,458.4],bw:4,ac:1e3},{type:"ios",rules:[{res:[1242,2208]}],dpi:[453.6,458.4],bw:4,ac:1e3}]};return i.exports=n,i.exports}),e.registerDynamic("85",["84","82"],!0,function(e,t,i){function n(e,t){if(this.dpdb=o,this.recalculateDeviceParams_(),e){this.onDeviceParamsUpdated=t,console.log("Fetching DPDB...");var i=new XMLHttpRequest,n=this;i.open("GET",a,!0),i.addEventListener("load",function(){n.loading=!1,i.status>=200&&i.status<=299?(console.log("Successfully loaded online DPDB."),n.dpdb=JSON.parse(i.response),n.recalculateDeviceParams_()):console.error("Error loading online DPDB!")}),i.send()}}function r(e){this.xdpi=e.xdpi,this.ydpi=e.ydpi,this.bevelMm=e.bevelMm}this||self;var o=e("84"),s=e("82"),a="https://storage.googleapis.com/cardboard-dpdb/dpdb.json";return n.prototype.getDeviceParams=function(){return this.deviceParams},n.prototype.recalculateDeviceParams_=function(){console.log("Recalculating device params.");var e=this.calcDeviceParams_();console.log("New device parameters:"),console.log(e),e?(this.deviceParams=e,this.onDeviceParamsUpdated&&this.onDeviceParamsUpdated(this.deviceParams)):console.error("Failed to recalculate device parameters.")},n.prototype.calcDeviceParams_=function(){var e=this.dpdb;if(!e)return console.error("DPDB not available."),null;if(1!=e.format)return console.error("DPDB has unexpected format version."),null;if(!e.devices||!e.devices.length)return console.error("DPDB does not have a devices section."),null;var t=navigator.userAgent||navigator.vendor||window.opera,i=s.getScreenWidth(),n=s.getScreenHeight();if(console.log("User agent: "+t),console.log("Pixel width: "+i),console.log("Pixel height: "+n),!e.devices)return console.error("DPDB has no devices section."),null;for(var o=0;ou.MAX_TIMESTEP)return console.warn("Invalid timestamps detected. Time step between successive gyroscope sensor samples is very small or not monotonic"),void(this.previousTimestampS=n);this.accelerometer.set(-t.x,-t.y,-t.z),this.gyroscope.set(i.alpha,i.beta,i.gamma),(this.isIOS||this.isFirefoxAndroid)&&this.gyroscope.multiplyScalar(Math.PI/180),this.filter.addAccelMeasurement(this.accelerometer,n),this.filter.addGyroMeasurement(this.gyroscope,n),this.previousTimestampS=n},n.prototype.onScreenOrientationChange_=function(e){this.setScreenTransform_()},n.prototype.setScreenTransform_=function(){switch(this.worldToScreenQ.set(0,0,0,1),window.orientation){case 0:break;case 90:this.worldToScreenQ.setFromAxisAngle(new a.Vector3(0,0,1),-Math.PI/2);break;case-90:this.worldToScreenQ.setFromAxisAngle(new a.Vector3(0,0,1),Math.PI/2)}this.inverseWorldToScreenQ.copy(this.worldToScreenQ),this.inverseWorldToScreenQ.inverse()},i.exports=n,i.exports}),e.registerDynamic("8c",["82"],!0,function(e,t,i){function n(){this.loadIcon_();var e=document.createElement("div"),t=e.style;t.position="fixed",t.top=0,t.right=0,t.bottom=0,t.left=0,t.backgroundColor="gray",t.fontFamily="sans-serif",t.zIndex=1e6;var i=document.createElement("img");i.src=this.icon,(t=i.style).marginLeft="25%",t.marginTop="25%",t.width="50%",e.appendChild(i);var n=document.createElement("div");(t=n.style).textAlign="center",t.fontSize="16px",t.lineHeight="24px",t.margin="24px 25%",t.width="50%",n.innerHTML="Place your phone into your Cardboard viewer.",e.appendChild(n);var r=document.createElement("div");(t=r.style).backgroundColor="#CFD8DC",t.position="fixed",t.bottom=0,t.width="100%",t.height="48px",t.padding="14px 24px",t.boxSizing="border-box",t.color="#656A6B",e.appendChild(r);var o=document.createElement("div");o.style.float="left",o.innerHTML="No Cardboard viewer?";var s=document.createElement("a");s.href="https://www.google.com/get/cardboard/get-cardboard/",s.innerHTML="get one",s.target="_blank",(t=s.style).float="right",t.fontWeight=600,t.textTransform="uppercase",t.borderLeft="1px solid gray",t.paddingLeft="24px",t.textDecoration="none",t.color="#656A6B",r.appendChild(o),r.appendChild(s),this.overlay=e,this.text=n,this.hide()}this||self;var r=e("82");return n.prototype.show=function(e){e||this.overlay.parentElement?e&&(this.overlay.parentElement&&this.overlay.parentElement!=e&&this.overlay.parentElement.removeChild(this.overlay),e.appendChild(this.overlay)):document.body.appendChild(this.overlay),this.overlay.style.display="block";var t=this.overlay.querySelector("img").style;r.isLandscapeMode()?(t.width="20%",t.marginLeft="40%",t.marginTop="3%"):(t.width="50%",t.marginLeft="25%",t.marginTop="25%")},n.prototype.hide=function(){this.overlay.style.display="none"},n.prototype.showTemporarily=function(e,t){this.show(t),this.timer=setTimeout(this.hide.bind(this),e)},n.prototype.disableShowTemporarily=function(){clearTimeout(this.timer)},n.prototype.update=function(){this.disableShowTemporarily(),!r.isLandscapeMode()&&r.isMobile()?this.show():this.hide()},n.prototype.loadIcon_=function(){this.icon=r.base64("image/svg+xml","PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjE5OHB4IiBoZWlnaHQ9IjI0MHB4IiB2aWV3Qm94PSIwIDAgMTk4IDI0MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4bWxuczpza2V0Y2g9Imh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaC9ucyI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDMuMy4zICgxMjA4MSkgLSBodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2ggLS0+CiAgICA8dGl0bGU+dHJhbnNpdGlvbjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4KICAgIDxk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c3LjQwMyw3LjU1NCBMNzcuNDAzLDUxLjUwOCBMNzcuMzQxLDUxLjU0NCBMMTAuMDgzLDkwLjM3NSBMMTAuMDgzLDkwLjM3NSBaIE0xMC4zMzMsNDYuNTY0IEwxMC4zMzMsODkuOTQ0IEw3Ny4xNTQsNTEuMzY1IEw3Ny4xNTQsNy45ODUgTDEwLjMzMyw0Ni41NjQgTDEwLjMzMyw0Ni41NjQgWiIgaWQ9IkZpbGwtMjAiIGZpbGw9IiM2MDdEOEIiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMjUuNzM3LDg4LjY0NyBMMTE4LjA5OCw5MS45ODEgTDExOC4wOTgsODQgTDEwNi42MzksODguNzEzIEwxMDYuNjM5LDk2Ljk4MiBMOTksMTAwLjMxNSBMMTEyLjM2OSwxMDMuOTYxIEwxMjUuNzM3LDg4LjY0NyIgaWQ9IkltcG9ydGVkLUxheWVycy1Db3B5LTIiIGZpbGw9IiM0NTVBNjQiIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+")},i.exports=n,i.exports}),e.registerDynamic("8d",[],!0,function(e,t,i){function n(){this.callbacks={}}this||self;return n.prototype.emit=function(e){var t=this.callbacks[e];if(t){var i=[].slice.call(arguments);i.shift();for(var n=0;n1e-4;){var r=e-this.distort(i),o=i-r*((i-t)/(r-n));t=i,i=o,n=r}return i},n.prototype.distort=function(e){for(var t=e*e,i=0,n=0;n=0;--n){for(var u=t[n],s=n+1;s=1)return this.w=o,this.x=i,this.y=n,this.z=r,this;var a=Math.acos(s),u=Math.sqrt(1-s*s);if(Math.abs(u)<.001)return this.w=.5*(o+this.w),this.x=.5*(i+this.x),this.y=.5*(n+this.y),this.z=.5*(r+this.z),this;var c=Math.sin((1-t)*a)/u,l=Math.sin(t*a)/u;return this.w=o*c+this.w*l,this.x=i*c+this.x*l,this.y=n*c+this.y*l,this.z=r*c+this.z*l,this},setFromUnitVectors:function(){var e,t;return function(i,r){return void 0===e&&(e=new n.Vector3),t=i.dot(r)+1,t<1e-6?(t=0,Math.abs(i.x)>Math.abs(i.z)?e.set(-i.y,i.x,0):e.set(0,-i.z,i.y)):e.crossVectors(i,r),this.x=e.x,this.y=e.y,this.z=e.z,this.w=t,this.normalize(),this}}()},i.exports=n,i.exports}),e.registerDynamic("93",["92","88","82"],!0,function(e,t,i){function n(){this.displayName="Mouse and Keyboard VRDisplay (webvr-polyfill)",this.capabilities.hasOrientation=!0,window.addEventListener("keydown",this.onKeyDown_.bind(this)),window.addEventListener("mousemove",this.onMouseMove_.bind(this)),window.addEventListener("mousedown",this.onMouseDown_.bind(this)),window.addEventListener("mouseup",this.onMouseUp_.bind(this)),this.phi_=0,this.theta_=0,this.targetAngle_=null,this.angleAnimation_=null,this.orientation_=new o.Quaternion,this.rotateStart_=new o.Vector2,this.rotateEnd_=new o.Vector2,this.rotateDelta_=new o.Vector2,this.isDragging_=!1,this.orientationOut_=new Float32Array(4)}this||self;var r=e("92").VRDisplay,o=e("88"),s=e("82");return n.prototype=new r,n.prototype.getImmediatePose=function(){return this.orientation_.setFromEulerYXZ(this.phi_,this.theta_,0),this.orientationOut_[0]=this.orientation_.x,this.orientationOut_[1]=this.orientation_.y,this.orientationOut_[2]=this.orientation_.z,this.orientationOut_[3]=this.orientation_.w,{position:null,orientation:this.orientationOut_,linearVelocity:null,linearAcceleration:null,angularVelocity:null,angularAcceleration:null}},n.prototype.onKeyDown_=function(e){38==e.keyCode?this.animatePhi_(this.phi_+.15):39==e.keyCode?this.animateTheta_(this.theta_-.15):40==e.keyCode?this.animatePhi_(this.phi_-.15):37==e.keyCode&&this.animateTheta_(this.theta_+.15)},n.prototype.animateTheta_=function(e){this.animateKeyTransitions_("theta_",e)},n.prototype.animatePhi_=function(e){e=s.clamp(e,-Math.PI/2,Math.PI/2),this.animateKeyTransitions_("phi_",e)},n.prototype.animateKeyTransitions_=function(e,t){this.angleAnimation_&&cancelAnimationFrame(this.angleAnimation_);var i=this[e],n=new Date;this.angleAnimation_=requestAnimationFrame(function r(){var o=new Date-n;if(o>=80)return this[e]=t,void cancelAnimationFrame(this.angleAnimation_);this.angleAnimation_=requestAnimationFrame(r.bind(this));var s=o/80;this[e]=i+(t-i)*s}.bind(this))},n.prototype.onMouseDown_=function(e){this.rotateStart_.set(e.clientX,e.clientY),this.isDragging_=!0},n.prototype.onMouseMove_=function(e){if(this.isDragging_||this.isPointerLocked_()){if(this.isPointerLocked_()){var t=e.movementX||e.mozMovementX||0,i=e.movementY||e.mozMovementY||0;this.rotateEnd_.set(this.rotateStart_.x-t,this.rotateStart_.y-i)}else this.rotateEnd_.set(e.clientX,e.clientY);this.rotateDelta_.subVectors(this.rotateEnd_,this.rotateStart_),this.rotateStart_.copy(this.rotateEnd_),this.phi_+=2*Math.PI*this.rotateDelta_.y/screen.height*.3,this.theta_+=2*Math.PI*this.rotateDelta_.x/screen.width*.5,this.phi_=s.clamp(this.phi_,-Math.PI/2,Math.PI/2)}},n.prototype.onMouseUp_=function(e){this.isDragging_=!1},n.prototype.isPointerLocked_=function(){return void 0!==(document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement)},n.prototype.resetPose=function(){this.phi_=0,this.theta_=0},i.exports=n,i.exports}),e.registerDynamic("94",[],!0,function(e,t,i){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}this||self;var r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;return i.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,s,a=n(e),u=1;ur.MAX_TIMESTEP))},r.getScreenWidth=function(){return Math.max(window.screen.width,window.screen.height)*window.devicePixelRatio},r.getScreenHeight=function(){return Math.min(window.screen.width,window.screen.height)*window.devicePixelRatio},r.requestFullscreen=function(e){if(e.requestFullscreen)e.requestFullscreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return!0},r.exitFullscreen=function(){if(document.exitFullscreen)document.exitFullscreen();else if(document.webkitExitFullscreen)document.webkitExitFullscreen();else if(document.mozCancelFullScreen)document.mozCancelFullScreen();else{if(!document.msExitFullscreen)return!1;document.msExitFullscreen()}return!0},r.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},r.linkProgram=function(e,t,i,n){var r=e.createShader(e.VERTEX_SHADER);e.shaderSource(r,t),e.compileShader(r);var o=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(o,i),e.compileShader(o);var s=e.createProgram();e.attachShader(s,r),e.attachShader(s,o);for(var a in n)e.bindAttribLocation(s,n[a],a);return e.linkProgram(s),e.deleteShader(r),e.deleteShader(o),s},r.getProgramUniforms=function(e,t){for(var i={},n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r="",o=0;oi.capabilities.maxLayers)r(new Error("Invalid number of layers."));else{var o=e[0];if(o.source){var s=o.leftBounds||h,u=o.rightBounds||d;if(t){var c=!1,l=i.layer_;l.source!==o.source&&(l.source=o.source,c=!0);for(var f=0;f<4;f++)l.leftBounds[f]!==s[f]&&(l.leftBounds[f]=s[f],c=!0),l.rightBounds[f]!==u[f]&&(l.rightBounds[f]=u[f],c=!0);return c&&i.fireVRDisplayPresentChange_(),void n()}if(i.layer_={predistorted:o.predistorted,source:o.source,leftBounds:s.slice(0),rightBounds:u.slice(0)},i.waitingForPresent_=!1,i.layer_&&i.layer_.source){var p=i.wrapForFullscreen(i.layer_.source);i.addFullscreenListeners_(p,function(){var e=a.getFullscreenElement();i.isPresenting=p===e,i.isPresenting?(screen.orientation&&screen.orientation.lock&&screen.orientation.lock("landscape-primary").catch(function(e){console.error("screen.orientation.lock() failed due to",e.message)}),i.waitingForPresent_=!1,i.beginPresent_(),n()):(screen.orientation&&screen.orientation.unlock&&screen.orientation.unlock(),i.removeFullscreenWrapper(),i.wakelock_.release(),i.endPresent_(),i.removeFullscreenListeners_()),i.fireVRDisplayPresentChange_()},function(){i.waitingForPresent_&&(i.removeFullscreenWrapper(),i.removeFullscreenListeners_(),i.wakelock_.release(),i.waitingForPresent_=!1,i.isPresenting=!1,r(new Error("Unable to present.")))}),a.requestFullscreen(p)?(i.wakelock_.request(),i.waitingForPresent_=!0):a.isIOS()&&(i.wakelock_.request(),i.isPresenting=!0,i.beginPresent_(),i.fireVRDisplayPresentChange_(),n())}i.waitingForPresent_||a.isIOS()||(a.exitFullscreen(),r(new Error("Unable to present.")))}else n()}else r(new Error("VRDisplay is not capable of presenting."))})},n.prototype.exitPresent=function(){var e=this.isPresenting,t=this;return this.isPresenting=!1,this.layer_=null,this.wakelock_.release(),new Promise(function(i,n){e?(!a.exitFullscreen()&&a.isIOS()&&(t.endPresent_(),t.fireVRDisplayPresentChange_()),i()):n(new Error("Was not presenting to VRDisplay."))})},n.prototype.getLayers=function(){return this.layer_?[this.layer_]:[]},n.prototype.fireVRDisplayPresentChange_=function(){var e=new CustomEvent("vrdisplaypresentchange",{detail:{vrdisplay:this}});window.dispatchEvent(e)},n.prototype.addFullscreenListeners_=function(e,t,i){this.removeFullscreenListeners_(),this.fullscreenEventTarget_=e,this.fullscreenChangeHandler_=t,this.fullscreenErrorHandler_=i,t&&(document.fullscreenEnabled?e.addEventListener("fullscreenchange",t,!1):document.webkitFullscreenEnabled?e.addEventListener("webkitfullscreenchange",t,!1):document.mozFullScreenEnabled?document.addEventListener("mozfullscreenchange",t,!1):document.msFullscreenEnabled&&e.addEventListener("msfullscreenchange",t,!1)),i&&(document.fullscreenEnabled?e.addEventListener("fullscreenerror",i,!1):document.webkitFullscreenEnabled?e.addEventListener("webkitfullscreenerror",i,!1):document.mozFullScreenEnabled?document.addEventListener("mozfullscreenerror",i,!1):document.msFullscreenEnabled&&e.addEventListener("msfullscreenerror",i,!1))},n.prototype.removeFullscreenListeners_=function(){if(this.fullscreenEventTarget_){var e=this.fullscreenEventTarget_;if(this.fullscreenChangeHandler_){var t=this.fullscreenChangeHandler_;e.removeEventListener("fullscreenchange",t,!1),e.removeEventListener("webkitfullscreenchange",t,!1),document.removeEventListener("mozfullscreenchange",t,!1),e.removeEventListener("msfullscreenchange",t,!1)}if(this.fullscreenErrorHandler_){var i=this.fullscreenErrorHandler_;e.removeEventListener("fullscreenerror",i,!1),e.removeEventListener("webkitfullscreenerror",i,!1),document.removeEventListener("mozfullscreenerror",i,!1),e.removeEventListener("msfullscreenerror",i,!1)}this.fullscreenEventTarget_=null,this.fullscreenChangeHandler_=null,this.fullscreenErrorHandler_=null}},n.prototype.beginPresent_=function(){},n.prototype.endPresent_=function(){},n.prototype.submitFrame=function(e){},n.prototype.getEyeParameters=function(e){return null},o.prototype=new r,s.prototype=new r,i.exports.VRFrameData=function(){this.leftProjectionMatrix=new Float32Array(16),this.leftViewMatrix=new Float32Array(16),this.rightProjectionMatrix=new Float32Array(16),this.rightViewMatrix=new Float32Array(16),this.pose=null},i.exports.VRDisplay=n,i.exports.VRDevice=r,i.exports.HMDVRDevice=o,i.exports.PositionSensorVRDevice=s,i.exports}),e.registerDynamic("96",["92"],!0,function(e,t,i){function n(e){this.display=e,this.hardwareUnitId=e.displayId,this.deviceId="webvr-polyfill:HMD:"+e.displayId,this.deviceName=e.displayName+" (HMD)"}function r(e){this.display=e,this.hardwareUnitId=e.displayId,this.deviceId="webvr-polyfill:PositionSensor: "+e.displayId,this.deviceName=e.displayName+" (PositionSensor)"}this||self,e("92").VRDisplay;var o=e("92").HMDVRDevice,s=e("92").PositionSensorVRDevice;return n.prototype=new o,n.prototype.getEyeParameters=function(e){var t=this.display.getEyeParameters(e);return{currentFieldOfView:t.fieldOfView,maximumFieldOfView:t.fieldOfView,minimumFieldOfView:t.fieldOfView,recommendedFieldOfView:t.fieldOfView,eyeTranslation:{x:t.offset[0],y:t.offset[1],z:t.offset[2]},renderRect:{x:"right"==e?t.renderWidth:0,y:0,width:t.renderWidth,height:t.renderHeight}}},n.prototype.setFieldOfView=function(e,t,i,n){},r.prototype=new s,r.prototype.getState=function(){var e=this.display.getPose();return{position:e.position?{x:e.position[0],y:e.position[1],z:e.position[2]}:null,orientation:e.orientation?{x:e.orientation[0],y:e.orientation[1],z:e.orientation[2],w:e.orientation[3]}:null,linearVelocity:null,linearAcceleration:null,angularVelocity:null,angularAcceleration:null}},r.prototype.resetState=function(){return this.positionDevice.resetPose()},i.exports.VRDisplayHMDDevice=n,i.exports.VRDisplayPositionSensorDevice=r,i.exports}),e.registerDynamic("97",["82","91","93","92","96"],!0,function(e,t,i){function n(){this.displays=[],this.devices=[],this.devicesPopulated=!1,this.nativeWebVRAvailable=this.isWebVRAvailable(),this.nativeLegacyWebVRAvailable=this.isDeprecatedWebVRAvailable(),this.nativeLegacyWebVRAvailable||(this.nativeWebVRAvailable||this.enablePolyfill(),WebVRConfig.ENABLE_DEPRECATED_API&&this.enableDeprecatedPolyfill()),r()}function r(){"VRDisplay"in window&&!("VRFrameData"in window)&&(window.VRFrameData=c,"depthNear"in window.VRDisplay.prototype||(window.VRDisplay.prototype.depthNear=.01),"depthFar"in window.VRDisplay.prototype||(window.VRDisplay.prototype.depthFar=1e4),window.VRDisplay.prototype.getFrameData=function(e){return o.frameDataFromPose(e,this.getPose(),this)})}this||self;var o=e("82"),s=e("91"),a=e("93"),u=e("92").VRDisplay,c=e("92").VRFrameData,l=e("92").HMDVRDevice,h=e("92").PositionSensorVRDevice,d=e("96").VRDisplayHMDDevice,f=e("96").VRDisplayPositionSensorDevice;return n.prototype.isWebVRAvailable=function(){return"getVRDisplays"in navigator},n.prototype.isDeprecatedWebVRAvailable=function(){return"getVRDevices"in navigator||"mozGetVRDevices"in navigator},n.prototype.populateDevices=function(){if(!this.devicesPopulated){var e=null;this.isCardboardCompatible()&&(e=new s,this.displays.push(e),WebVRConfig.ENABLE_DEPRECATED_API&&(this.devices.push(new d(e)),this.devices.push(new f(e)))),this.isMobile()||WebVRConfig.MOUSE_KEYBOARD_CONTROLS_DISABLED||(e=new a,this.displays.push(e),WebVRConfig.ENABLE_DEPRECATED_API&&(this.devices.push(new d(e)),this.devices.push(new f(e)))),this.devicesPopulated=!0}},n.prototype.enablePolyfill=function(){navigator.getVRDisplays=this.getVRDisplays.bind(this),window.VRDisplay=u;var e=this;Object.defineProperty(navigator,"vrEnabled",{get:function(){return e.isCardboardCompatible()&&(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||!1)}}),window.VRFrameData=c},n.prototype.enableDeprecatedPolyfill=function(){navigator.getVRDevices=this.getVRDevices.bind(this),window.HMDVRDevice=l,window.PositionSensorVRDevice=h},n.prototype.getVRDisplays=function(){this.populateDevices();var e=this.displays;return new Promise(function(t,i){try{t(e)}catch(e){i(e)}})},n.prototype.getVRDevices=function(){console.warn("getVRDevices is deprecated. Please update your code to use getVRDisplays instead.");var e=this;return new Promise(function(t,i){try{if(!e.devicesPopulated){if(e.nativeWebVRAvailable)return navigator.getVRDisplays(function(i){for(var n=0;n1?t-1:0),n=1;n=1?r(e):r()}function g(e){return function(t){nt.define(nt.invoker,e,t)}}function M(e){var t=function(e){nt.define(nt.invoker,_t.instance,e)};return e?t(e):t}function y(e){return function(t){nt.define(nt.registration,e,t)}}function A(e){return y(new jt(e))}function w(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];return y(new xt(e,t))}function E(e){if(null===e||void 0===e)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function m(e,t,i,n){for(var r=i.length,o=new Array(r);r--;)o[r]=e.get(i[r]);return void 0!==n&&(o=o.concat(n)),Reflect.construct(t,o)}function v(e){return e.hasOwnProperty("inject")?"function"==typeof e.inject?e.inject():e.inject:[]}function N(e){var t=function(e){var t=e.inject,i=nt.getOwn(nt.paramTypes,e)||bt;if(t)for(var n=0;n-1&&t.splice(r,1),t.splice(r>-1&&r0&&(i.splice(0,n),e._values.splice(0,n*e._innerType.packedLength),e._updateTableLength=!0,e._definitionChanged.raiseEvent(e))}function I(e,t){if(void 0!==t){var i=e._times.length-t;i>0&&(e._times.splice(0,i),e._values.splice(0,i*e._innerType.packedLength),e._updateTableLength=!0)}}function O(){var e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,i=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return kt[255&e]+kt[e>>8&255]+kt[e>>16&255]+kt[e>>24&255]+"-"+kt[255&t]+kt[t>>8&255]+"-"+kt[t>>16&15|64]+kt[t>>24&255]+"-"+kt[63&i|128]+kt[i>>8&255]+"-"+kt[i>>16&255]+kt[i>>24&255]+kt[255&n]+kt[n>>8&255]+kt[n>>16&255]+kt[n>>24&255]}function S(e){this._token=e.token,this._url=e.url,this._tilingScheme=e.tilingScheme,ge(this._tilingScheme)||(this._tilingScheme=new Xe({numberOfLevelZeroTilesX:1,numberOfLevelZeroTilesY:1,ellipsoid:pe(e.ellipsoid,ye.WGS84)})),this._heightmapWidth=64,this._levelZeroMaximumGeometricError=Ve.getEstimatedLevelZeroGeometricErrorForAHeightmap(this._tilingScheme.ellipsoid,this._heightmapWidth,this._tilingScheme.getNumberOfXTilesAtLevel(0)),this._proxy=e.proxy,this._terrainDataStructure={heightScale:1/256,heightOffset:-32768,elementsPerHeight:3,stride:4,elementMultiplier:256,isBigEndian:!0,lowestEncodedHeight:0,highestEncodedHeight:16777215},this._errorEvent=new Ee;var t=e.credit;"string"==typeof t&&(t=new Je(t)),this._credit=t,this._readyPromise=Promise.resolve(!0),this._terrainPromises={}}function L(){if(ui)return ui;var e,t=function(e,t,i){if(e){var n={view:i.view,clientX:i.clientX,clientY:i.clientY,screenX:i.screenX,screenY:i.screenY,relatedTarget:t};n.bubbles=!0,e.dispatchEvent(new MouseEvent("mouseout",n)),n.bubbles=!1;var r=e;do{r.dispatchEvent(new MouseEvent("mouseleave",n)),r=r.parentElement}while(r)}},i=function(e,t,i){var n={view:i.view,clientX:i.clientX,clientY:i.clientY,screenX:i.screenX,screenY:i.screenY,relatedTarget:t};n.bubbles=!0,e.dispatchEvent(new MouseEvent("mouseover",n)),n.bubbles=!1;var r=e;do{r.dispatchEvent(new MouseEvent("mouseenter",n)),r=r.parentElement}while(r)},n=function(e,t,i){var n=i.bubbles;i.bubbles=!0,e.dispatchEvent(new PointerEvent("pointerover",i)),i.bubbles=!1;var r=e;do{r.dispatchEvent(new PointerEvent("pointerenter",i)),r=r.parentElement}while(r);i.bubbles=n},r=function(e,t,i){if(e){i.bubbles=!0,e.dispatchEvent(new PointerEvent("pointerout",i)),i.bubbles=!1;var n=e;do{n.dispatchEvent(new PointerEvent("pointerleave",i)),n=n.parentElement}while(n)}},o=function(e,t,i){return e.forEach(function(n,r){document.createTouch?e[r]=document.createTouch(i.view,t,n.identifier,n.clientX,n.clientY,n.screenX,n.screenY):void 0!==typeof Touch&&(n.target=t,e[r]=new Touch(n))}),e},s={},a={},u={},c={};return document.documentElement.addEventListener("gotpointercapture",function(e){c[e.pointerId]=e.target}),document.documentElement.addEventListener("lostpointercapture",function(e){delete c[e.pointerId]}),Element.prototype.setPointerCapture=function(e){c[e]=this},Element.prototype.releasePointerCapture=function(e){c[e]=null},ui=function(l){l.view=window;var h;switch(l.type){case"wheel":(h=document.elementFromPoint(l.clientX,l.clientY)||window).dispatchEvent(new WheelEvent(l.type,l));break;case"mouseleave":h=document.elementFromPoint(l.clientX,l.clientY)||window,t(e,void 0,l),e=void 0;break;case"mouseenter":h=document.elementFromPoint(l.clientX,l.clientY)||window,i(h,void 0,l),e=h;break;case"mousemove":(h=document.elementFromPoint(l.clientX,l.clientY)||window)!==e&&(t(e,h,l),i(h,e,l),e=h),h.dispatchEvent(new MouseEvent(l.type,l));break;case"touchstart":var d=l.changedTouches[0];h=document.elementFromPoint(d.clientX,d.clientY)||window;for(var f=0,p=l.changedTouches;f0?g=new TouchEvent(l.type,{cancelable:l.cancelable,bubbles:l.bubbles,touches:M,targetTouches:y,changedTouches:A}):(g.initUIEvent(l.type,l.bubbles,l.cancelable,l.view,l.detail),g.touches=M,g.targetTouches=y,g.changedTouches=A),"touchend"===l.type||"touchcancel"==l.type){h.dispatchEvent(g);var w=A[0];l.clientX=w.clientX,l.clientY=w.clientY,l.screenX=w.screenX,l.screenY=w.screenY,l.button=0,l.detail=1,"touchend"===l.type?performance.now()-a[w.identifier]<300&&!g.defaultPrevented&&(h.dispatchEvent(new MouseEvent("mousedown",l)),h.dispatchEvent(new MouseEvent("mouseup",l)),h.dispatchEvent(new MouseEvent("click",l))):h.dispatchEvent(new MouseEvent("mouseout",l));for(var E=0,m=l.changedTouches;E0&&(i=!1,n.event=o,e.uiEvent.raiseEvent(n),!i))return void o.stopImmediatePropagation();"touchstart"===o.type&&o.preventDefault();var c=e.element.getBoundingClientRect(),l=hi(o.touches,c),h=hi(o.changedTouches,c),d=hi(o.targetTouches,c);r.timeStamp=o.timeStamp,r.type=o.type,r.bubbles=o.bubbles,r.cancelable=o.cancelable,r.which=o.which,r.detail=o.detail,r.composed=o.composed,r.timeStamp=o.timeStamp,r.altKey=o.altKey,r.ctrlKey=o.ctrlKey,r.metaKey=o.metaKey,r.button=o.button,r.buttons=o.buttons,r.clientX=o.clientX-c.left,r.clientY=o.clientY-c.top,r.screenX=o.screenX,r.screenY=o.screenY,r.movementX=o.movementX,r.movementY=o.movementY,r.deltaX=o.deltaX,r.deltaY=o.deltaY,r.deltaZ=o.deltaZ,r.deltaMode=o.deltaMode,r.wheelDelta=o.wheelDelta,r.wheelDeltaX=o.wheelDeltaX,r.wheelDeltaY=o.wheelDeltaY,r.touches=l,r.changedTouches=h,r.targetTouches=d,r.pointerId=o.pointerId,r.pointerType=o.pointerType,r.width=o.width,r.height=o.height,r.pressure=o.pressure,r.tiltX=o.tiltX,r.tiltY=o.tiltY,r.isPrimary=o.isPrimary,t(r)}else o.stopImmediatePropagation()},s=["wheel","click","dblclick","contextmenu"];s.push("pointerenter","pointerleave","pointerdown","pointermove","pointerup","pointercancel"),s.push("mouseenter","mouseleave","mousedown","mousemove","mouseup","touchstart","touchend","touchmove","touchcancel"),s.forEach(function(t){e.element.addEventListener(t,o,!1)})}function j(e){return"function"==typeof e&&di.test(Function.prototype.toString.call(e))}function x(e){var t=e;return ge(t.id)?t.id:""+t}function b(e,t){return JSON.stringify(e)===JSON.stringify(t)}function C(e,t){void 0===t&&(t=[]);var i=t;i.length=0;var n=e;do{var r=n.position;n=r&&r.referenceFrame,ge(n)&&i.unshift(n)}while(ge(n));return i}function R(e,t,i){void 0===i&&(i=[]);var n=i;n.length=0;var r=e,o=!1;do{var s=r.position,a=r&&r.orientation;r=s&&s.referenceFrame;var u=ge(r),c=u&&s&&s.getValueInReferenceFrame(t,r,Mi),l=u&&c&&a&&a.getValue(t,yi);(o=c&&l)&&n.unshift(r)}while(o);return n}function z(e,t,i,n){return e.position&&e.position.getValueInReferenceFrame(t,i,n)}function P(e,t,i,n){var r=e.position&&e.position.referenceFrame;if(ge(r)){var o=e.orientation&&e.orientation.getValue(t,n);if(ge(o))return _e.convertToReferenceFrame(t,o,r,i,n)}}function U(e,t,i){if(ge(i)||(i=R(e,t,Ei)[0]),!ge(i))return null;if(e===i)return null;var n=e.id+"@"+(i.id?i.id:i),r=mi[n];r||(r={},mi[n]=r);var o=z(e,t,i,r.p||{});if(!o)return null;var s=P(e,t,i,r.o||{});return s&&o&&s?(r.p=o,r.o=s,r.r="number"==typeof i?i:i.id,r.meta=e.meta,r):null}function B(e){if(!vi)throw new Error("resolveURL requires DOM api");if(void 0===e)throw new Error("Expected inURL");return vi.href="",vi.href=e,vi.href}function k(e){if(!vi)throw new Error("parseURL requires DOM api");if(void 0===e)throw new Error("Expected inURL");return vi.href="",vi.href=e,{href:vi.href,protocol:vi.protocol,hostname:vi.hostname,port:vi.port,pathname:vi.pathname,search:vi.search,hash:vi.hash,host:vi.host}}function F(e){return e instanceof HTMLElement?Promise.resolve(e):new Promise(function(t,i){var n=function(){var n=document.querySelector(""+e);n?t(n):i(new Error("Unable to resolve element id "+e))};"loading"==document.readyState?document.addEventListener("DOMContentLoaded",n):n()})}function Q(e,t){var i=e[Le.COLUMN0ROW0],n=e[Le.COLUMN1ROW1],r=e[Le.COLUMN2ROW0],o=e[Le.COLUMN2ROW1],s=e[Le.COLUMN2ROW2],a=e[Le.COLUMN3ROW2],u=t.near=a/(s-1);return t.far=a/(s+1),t.bottom=u*(o-1)/n,t.top=u*(o+1)/n,t.left=u*(r-1)/i,t.right=u*(r+1)/i,t}function Y(e,t){var i,n=Q(e,Ni),r=(n.left+n.right)/2,o=(n.top+n.bottom)/2,s=n.near,a=n.far,u=n.right-r,c=n.top-o,l=u/c,h=2*Math.atan(c/s);return i=l<1?h:2*Math.atan(Math.tan(.5*h)*l),t.near=s,t.far=a,t.fov=i,t.aspectRatio=l,t.xOffset=r,t.yOffset=o,t}function q(e,t,i){return!!(e.position&&e.position instanceof de&&e.orientation&&e.orientation instanceof fe)&&(!!z(e,t,i,Di)&&(!!P(e,t,i,Ti)&&(e.position.setValue(Di,i),e.orientation.setValue(Ti),!0)))}function G(){Ii?window.location.href="https://itunes.apple.com/us/app/argon4/id1089308600?mt=8":Oi&&(window.location.href="http://play.google.com/store/apps/details?id=edu.gatech.argon4")}function V(){Ii?window.location.href="argon4://open?url="+encodeURIComponent(window.location.href):Oi&&(window.location.href="intent:/#Intent;scheme=argon4;package=edu.gatech.argon4;S.url="+encodeURIComponent(window.location.href)+";end")}function H(e){var t=!1;return function(i,n,r){var o=r.get||r.value,s='The "'+n+'" '+("function"==typeof r.value?"function":"property")+" is deprecated. ";if(e){var a="function"==typeof i[e]?"function":"property";s+='Please use the "'+e+'" '+a+" instead."}var u=function(){return t||(console.warn(s),t=!0),o.apply(this,arguments)};return r.value?r.value=u:r.get=u,r}}function W(e){return Promise.resolve($e(ji,15,[e]).then(X))}function X(e){return e[0]}function Z(e){for(var t=e.split("."),i=0,n=t.length;i0||window.top!==window?Xt.APPLICATION:Xt.REALITY_MANAGER,r.role=s}return i||(i=new Pt),new jo(r,i,n).container.get(_o)}function J(e,t){if(void 0===e&&(e={}),void 0===t&&(t=new Pt),_o.instance)throw new Error("A shared ArgonSystem instance already exists");return e.role=Xt.REALITY_VIEW,e.supportsCustomProtocols=!0,e["reality.supportsControlPort"]=!0,e.protocols=e.protocols||[],e.protocols.push("ar.uievent"),new jo(e,t).container.get(_o)}var $,ee,te,ie,ne,re,oe,se,ae,ue,ce,le,he,de,fe,pe,ge,Me,ye,Ae,we,Ee,me,ve,Ne,De,Te,Ie,Oe,Se,Le,_e,je,xe,be,Ce,Re,ze,Pe,Ue,Be,ke,Fe,Qe,Ye,qe,Ge,Ve,He,We,Xe,Ze,Ke,Je,$e,et,tt,it,nt,rt,ot,st,at,ut,ct,lt,ht,dt,ft,pt,gt,Mt,yt,At,wt,Et,mt,vt,Nt,Dt,Tt,It,Ot,St,Lt,_t,jt,xt,bt,Ct,Rt,zt,Pt,Ut,Bt,kt,Ft,Qt,Yt,qt,Gt,Vt,Ht,Wt,Xt,Zt,Kt,Jt,$t,ei,ti,ii,ni,ri,oi,si,ai,ui,ci,li,hi,di,fi,pi,gi,Mi,yi,Ai,wi,Ei,mi,vi,Ni,Di,Ti,Ii,Oi,Si,Li,_i,ji,xi,bi,Ci,Ri,zi,Pi,Ui,Bi,ki,Fi,Qi,Yi,qi,Gi,Vi,Hi,Wi,Xi,Zi,Ki,Ji,$i,en,tn,nn,rn,on,sn,an,un,cn,ln,hn,dn,fn,pn,gn,Mn,yn,An,wn,En,mn,vn,Nn,Dn,Tn,In,On,Sn,Ln,_n,jn,xn,bn,Cn,Rn,zn,Pn,Un,Bn,kn,Fn,Qn,Yn,qn,Gn,Vn,Hn,Wn,Xn,Zn,Kn,Jn,$n,er,tr,ir,nr,rr,or,sr,ar,ur,cr,lr,hr,dr,fr,pr,gr,Mr,yr,Ar,wr,Er,mr,vr,Nr,Dr,Tr,Ir,Or,Sr,Lr,_r,jr,xr,br,Cr,Rr,zr,Pr,Ur,Br,kr,Fr,Qr,Yr,qr,Gr,Vr,Hr,Wr,Xr,Zr,Kr,Jr,$r,eo,to,io,no,ro,oo,so,ao,uo,co,lo,ho,fo,po,go,Mo,yo,Ao,wo,Eo,mo,vo,No,Do,To,Io,Oo,So,Lo,_o,jo,xo,bo,Co,Ro,zo,Po,Uo,Bo,ko,Fo,Qo,Yo,qo,Go,Vo,Ho,Wo,Xo,Zo,Ko,Jo,$o;return{setters:[function(e){},function(e){$=e.AggregateError,ee=e.PLATFORM},function(e){te=e.default},function(e){ie=e.default},function(e){ne=e.default},function(e){re=e.default},function(e){oe=e.default},function(e){se=e.default},function(e){ae=e.default},function(e){ue=e.default},function(e){ce=e.default},function(e){le=e.default},function(e){he=e.default},function(e){de=e.default},function(e){fe=e.default},function(e){pe=e.default},function(e){ge=e.default},function(e){Me=e.default},function(e){ye=e.default},function(e){Ae=e.default},function(e){we=e.default},function(e){Ee=e.default},function(e){me=e.default},function(e){ve=e.default},function(e){Ne=e.default},function(e){De=e.default},function(e){Te=e.default},function(e){Ie=e.default},function(e){Oe=e.default},function(e){Se=e.default},function(e){Le=e.default},function(e){_e=e.default},function(e){je=e.default},function(e){xe=e.default},function(e){be=e.default},function(e){Ce=e.default},function(e){Re=e.default},function(e){ze=e.default},function(e){Pe=e.default},function(e){Ue=e.default},function(e){Be=e.default},function(e){ke=e.default},function(e){Fe=e.default},function(e){Qe=e.default},function(e){Ye=e.default},function(e){qe=e.default},function(e){Ge=e.default},function(e){Ve=e.default},function(e){He=e.default},function(e){We=e.default},function(e){Xe=e.default},function(e){Ze=e.default},function(e){Ke=e.default},function(e){Je=e.default},function(e){$e=e.default},function(e){et=e.default},function(e){}],execute:function(){for(tt=Object.assign||function(e){for(var t=1;t1?t-1:0),n=1;n0?this.dynamicDependencies.map(function(t){return t["protocol:aurelia:resolver"]?t.get(e):e.get(t)}):void 0,i=e.invoke(this.key,t);return e.registerInstance(this.asKey,i),i},e.prototype.as=function(e){return this.asKey=e,this},e.of=function(t){for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;ro-s&&a.clientXi.clientHeight-s?(r.preventDefault(),r.stopImmediatePropagation(),e(r)):a.clientX0&&!e._currentCommandPending&&e._executeNextCommand()})},e.prototype.pause=function(){this._paused=!0},e.prototype.clear=function(){this._queue.forEach(function(e){e.reject("Unable to execute.")}),this._queue=[]},e.prototype._executeNextCommand=function(){var e=this;if(this._currentCommand=void 0,this._currentCommandPending=void 0,!this._paused){var t=this._queue.shift();t&&(this._currentCommand=t.command,this._currentCommandPending=t.execute().then(this._executeNextCommand.bind(this)).catch(function(t){e.errorEvent.raiseEvent(t),e._executeNextCommand()}))}},e}()),e("MessageChannelLike",oi=function(){return function(){var e,t,i,n=this,r=!0;e=new Promise(function(e){n.port1={set onmessage(t){i=t,e()},get onmessage(){return i},postMessage:function(e){r&&t.then(function(){n.port2.onmessage&&n.port2.onmessage({data:e})})},close:function(){r=!1}}});var o;t=new Promise(function(t){n.port2={set onmessage(e){o=e,t()},get onmessage(){return o},postMessage:function(t){r&&e.then(function(){n.port1.onmessage&&n.port1.onmessage({data:t})})},close:function(){r=!1}}})}}()),e("SynchronousMessageChannel",si=function(){return function(){var e=this,t=[],i=function(e){t.push(e)};e.port1={get onmessage(){return i},set onmessage(e){setTimeout(function(){i=e,t.forEach(function(t){return e(t)}),t=[]},0)},postMessage:function(t){e.port2.onmessage&&e.port2.onmessage({data:t})},close:function(){e.port1.onmessage=void 0,e.port2.onmessage=void 0}};var n=[],r=function(e){n.push(e)};e.port2={get onmessage(){return r},set onmessage(e){r=e,n.forEach(function(t){return e(t)}),n=[]},postMessage:function(t){e.port1.onmessage&&e.port1.onmessage({data:t})},close:function(){e.port1.onmessage=void 0,e.port2.onmessage=void 0}}}}()),e("MessageChannelFactory",ai=function(){function e(){}return e.prototype.create=function(){return"undefined"!=typeof MessageChannel?new MessageChannel:new oi},e.prototype.createSynchronous=function(){return new si},e}()),e("getEventSynthesizier",ci="undefined"!=typeof document&&document.createElement?L:function(){}),li=function(e,t){return{identifier:e.identifier,clientX:e.clientX-t.left,clientY:e.clientY-t.top,screenX:e.screenX,screenY:e.screenY}},hi=function(e,t){if(e){for(var i=[],n=0;n=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Ri=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zi=Object.freeze({}),e("SessionPort",Pi=function(){function e(t){var i=this;this.uri=t,this.id=O(),this._connectEvent=new ni,this.closeEvent=new ni,this.errorEvent=new ni,this.on={},this.suppressErrorOnUnknownTopic=!1,this._isOpened=!1,this._isConnected=!1,this._isClosed=!1,this.on[e.OPEN]=function(e){if(!e)throw new Error("Session did not provide a configuration ("+i.uri+")");if(i._isConnected)throw new Error("Session has already connected! ("+i.uri+")");i._info=e,i._version=e.version||[0],i._isConnected=!0,i._connectEvent.raiseEvent(void 0)},this.on[e.CLOSE]=function(){i._isClosed=!0,i._isConnected=!1,i.messagePort&&i.messagePort.close&&i.messagePort.close(),i.closeEvent.raiseEvent(void 0)},this.on[e.ERROR]=function(e){var t=new Error("Session Error: "+e.message);e.stack&&(t.stack=e.stack),i.errorEvent.raiseEvent(t)},this.errorEvent.addEventListener(function(e){1===i.errorEvent.numberOfListeners&&console.error(e)})}return Object.defineProperty(e.prototype,"connectEvent",{get:function(){if(this._isConnected)throw new Error("The connectEvent only fires once and the session is already connected.");return this._connectEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){if(!this.isConnected)throw new Error("info is not available until the session is connected.");return this._info},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){if(!ge(this._version))throw new Error("version is not available until the session is opened.");return this._version},enumerable:!0,configurable:!0}),e.prototype.supportsProtocol=function(e,t){if(!this._isConnected)throw new Error("Session has not yet connected");var i=this.info.protocols;if(!i)return!1;var n=!1,r=new Set;return i.forEach(function(t){if(-1!==t.indexOf(e)){var i=+t.split("@v")[1]||0;r.add(i)}}),t?Array.isArray(t)?t.forEach(function(e){r.has(e)&&(n=!0)}):r.has(t)&&(n=!0):t||(n=!0),n},e.prototype.whenConnected=function(){var e=this;return new Promise(function(t,i){e.isConnected&&t();var n=e._connectEvent.addEventListener(function(){n(),t()})})},e.prototype.open=function(t,i){var n=this;if(!this._isClosed){if(this._isOpened)throw new Error("Session can only be opened once");if(!i)throw new Error("Session options must be provided");this.messagePort=t,this._isOpened=!0,this.messagePort.onmessage=function(e){if(!n._isClosed){var t="string"==typeof e.data?JSON.parse(e.data):e.data,i=t[0],r=t[1],o=t[2]||zi,s=t[3],a=n.on[r];if(a&&!s)try{(u=a(o,e))&&console.warn("Handler for "+r+" returned an unexpected response")}catch(e){n.sendError(e),n.errorEvent.raiseEvent(e)}else if(a){var u=new Promise(function(t){return t(a(o,e))});Promise.resolve(u).then(function(e){n._isClosed||n.send(r+":resolve:"+i,e)}).catch(function(e){if(!n._isClosed){var t;"string"==typeof e?t=e:"string"==typeof e.message&&(t=e.message),n.send(r+":reject:"+i,{reason:t})}})}else if(!n.suppressErrorOnUnknownTopic){var c="Unable to handle message for topic "+r+" ("+n.uri+")";s&&n.send(r+":reject:"+i,{reason:c}),n.errorEvent.raiseEvent(new Error(c))}}},this.send(e.OPEN,i)}},e.prototype.send=function(e,t){if(!this._isOpened)throw new Error("Session must be open to send messages");if(this._isClosed)return!1;var i=[O(),e,t];return this.messagePort.postMessage(Ii?i:JSON.stringify(i)),!0},e.prototype.sendError=function(t){var i=t;return i instanceof Error&&(i={message:i.message,stack:i.stack}),this.send(e.ERROR,i)},e.prototype.request=function(e,t){var i=this;if(!this._isOpened||this._isClosed)throw new Error("Session must be open to make requests");var n=O(),r=e+":resolve:"+n,o=e+":reject:"+n,s=new Promise(function(t,n){i.on[r]=function(e){delete i.on[r],delete i.on[o],t(e)},i.on[o]=function(t){delete i.on[r],delete i.on[o],console.warn("Request '"+e+"' rejected with reason:\n"+t.reason),n(new Error(t.reason))}}),a=[n,e,t,!0];return this.messagePort.postMessage(Ii?a:JSON.stringify(a)),s},e.prototype.close=function(){this._isClosed||(this._isOpened&&this.send(e.CLOSE),this._isClosed=!0,this._isConnected=!1,this.messagePort&&this.messagePort.close&&this.messagePort.close(),this.closeEvent.raiseEvent(void 0))},Object.defineProperty(e.prototype,"isConnected",{get:function(){return this._isConnected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isClosed",{get:function(){return this._isClosed},enumerable:!0,configurable:!0}),e}()),Pi.OPEN="ar.session.open",Pi.CLOSE="ar.session.close",Pi.ERROR="ar.session.error",e("SessionPortFactory",Ui=function(){function e(){}return e.prototype.create=function(e){return new Pi(e)},e}()),e("ConnectService",Bi=function(){return function(){}}()),e("SessionService",ki=function(){function e(e,t,i,n){var r=this;this.configuration=e,this.connectService=t,this.sessionPortFactory=i,this.messageChannelFactory=n,this.manager=this.createSessionPort("argon:manager"),this.errorEvent=new ni,this._connectEvent=new ni,this._managedSessions=[],e.version=Z(xi),e.uri="undefined"!=typeof window&&window.location?window.location.href:void 0,e.title="undefined"!=typeof document?document.title:void 0,this.errorEvent.addEventListener(function(e){1===r.errorEvent.numberOfListeners&&console.error(e)}),this.manager.errorEvent.addEventListener(function(e){r.errorEvent.raiseEvent(e)}),this.manager.closeEvent.addEventListener(function(){r.managedSessions.forEach(function(e){e.close()})}),Object.freeze(this)}return Object.defineProperty(e.prototype,"connectEvent",{get:function(){return this._connectEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"managedSessions",{get:function(){return this._managedSessions},enumerable:!0,configurable:!0}),e.prototype.connect=function(){this.connectService&&this.connectService.connect?this.connectService.connect(this):console.warn("Argon: Unable to connect to a manager session; a connect service is not available")},e.prototype.addManagedSessionPort=function(e){var t=this;this.ensureIsRealityManager();var i=this.sessionPortFactory.create(e);return i.errorEvent.addEventListener(function(e){t.errorEvent.raiseEvent(e)}),i.connectEvent.addEventListener(function(){t.managedSessions.push(i),t.connectEvent.raiseEvent(i)}),i.closeEvent.addEventListener(function(){var e=t.managedSessions.indexOf(i);e>-1&&t.managedSessions.splice(e,1)}),i},e.prototype.createSessionPort=function(e){return this.sessionPortFactory.create(e)},e.prototype.createMessageChannel=function(){return this.messageChannelFactory.create()},e.prototype.createSynchronousMessageChannel=function(){return this.messageChannelFactory.createSynchronous()},Object.defineProperty(e.prototype,"isRealityManager",{get:function(){return Xt.isRealityManager(this.configuration&&this.configuration.role)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRealityAugmenter",{get:function(){return Xt.isRealityAugmenter(this.configuration&&this.configuration.role)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRealityViewer",{get:function(){return Xt.isRealityViewer(this.configuration&&this.configuration.role)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isManager",{get:function(){return this.isRealityManager},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isApplication",{get:function(){return this.isRealityAugmenter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRealityView",{get:function(){return this.isRealityViewer},enumerable:!0,configurable:!0}),e.prototype.ensureIsRealityManager=function(){if(!this.isRealityManager)throw new Error("An reality-manager only API was accessed from a non reality-manager.")},e.prototype.ensureIsRealityViewer=function(){if(!this.isRealityViewer)throw new Error("An reality-viewer only API was accessed from a non reality-viewer.")},e.prototype.ensureNotRealityViewer=function(){if(this.isRealityViewer)throw new Error("An non-permitted API was accessed from a reality-viewer.")},e.prototype.ensureNotRealityAugmenter=function(){if(this.isRealityAugmenter)throw new Error("An non-permitted API was accessed from a reality-viewer.")},e.prototype.ensureConnected=function(){if(!this.manager.isConnected)throw new Error("Session is not connected to manager")},e}()),Ci([H("isRealityManager"),Ri("design:type",Object),Ri("design:paramtypes",[])],ki.prototype,"isManager",null),Ci([H("isRealityAugmenter"),Ri("design:type",Object),Ri("design:paramtypes",[])],ki.prototype,"isApplication",null),Ci([H("isRealityViewer"),Ri("design:type",Object),Ri("design:paramtypes",[])],ki.prototype,"isRealityView",null),e("SessionService",ki=Ci([N,Ri("design:paramtypes",["function"==typeof(Hi=void 0!==Zt&&Zt)&&Hi||Object,Bi,Ui,"function"==typeof(Wi=void 0!==ai&&ai)&&Wi||Object])],ki)),e("LoopbackConnectService",Fi=function(e){function t(){return e.apply(this,arguments)||this}return bi(t,e),t.prototype.connect=function(e){var t=e.createSynchronousMessageChannel(),i=t.port1;t.port2.onmessage=function(e){t.port2.postMessage(e.data)},e.manager.connectEvent.addEventListener(function(){e.connectEvent.raiseEvent(e.manager)}),e.manager.open(i,e.configuration)},t}(Bi)),e("DOMConnectService",Qi=function(e){function t(){return e.apply(this,arguments)||this}return bi(t,e),t.isAvailable=function(){return"undefined"!=typeof window&&void 0!==window.parent},t.prototype.connect=function(e){var t=e.createMessageChannel();window.parent.postMessage({type:"ARGON_SESSION",name:window.name},"*",[t.port1]),e.manager.open(t.port2,e.configuration)},t}(Bi)),e("DebugConnectService",Yi=function(e){function t(){return e.apply(this,arguments)||this}return bi(t,e),t.isAvailable=function(){return"undefined"!=typeof window&&!!window.__ARGON_DEBUG_PORT__},t.prototype.connect=function(e){var t=e.manager,i=e.configuration;t.open(window.__ARGON_DEBUG_PORT__,i)},t}(Bi)),e("SessionConnectService",qi=function(e){function t(t,i){var n=e.call(this)||this;return n.session=t,n.parentConfiguration=i,n}return bi(t,e),t.isAvailable=function(){return!0},t.prototype.connect=function(e){var t=e.createSynchronousMessageChannel();this.session.open(t.port1,this.parentConfiguration),e.manager.open(t.port2,e.configuration)},t}(Bi)),e("WKWebViewConnectService",Gi=function(e){function t(){return e.apply(this,arguments)||this}return bi(t,e),t.isAvailable=function(){return"undefined"!=typeof window&&window.webkit&&window.webkit.messageHandlers},t.prototype.connect=function(e){var t=e.createSynchronousMessageChannel();t.port2.onmessage=function(e){webkit.messageHandlers.argon.postMessage(JSON.stringify(e.data))},window.__ARGON_PORT__=t.port2,e.manager.open(t.port1,e.configuration),window.addEventListener("beforeunload",function(){e.manager.close()})},t}(Bi)),e("AndroidWebViewConnectService",Vi=function(e){function t(){return e.apply(this,arguments)||this}return bi(t,e),t.isAvailable=function(){return"undefined"!=typeof window&&window.__argon_android__},t.prototype.connect=function(e){var t=e.createSynchronousMessageChannel();t.port2.onmessage=function(e){window.__argon_android__.emit("argon",JSON.stringify(e.data))},window.__ARGON_PORT__=t.port2,e.manager.open(t.port1,e.configuration),window.addEventListener("beforeunload",function(){e.manager.close()})},t}(Bi)),Xi=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Zi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("Permission",Ki=function(){return function(e,t){this.type=e,this.state=t||Ji.NOT_REQUIRED}}()),function(e){e[e.NOT_REQUIRED="not_required"]="NOT_REQUIRED",e[e.PROMPT="prompt"]="PROMPT",e[e.GRANTED="granted"]="GRANTED",e[e.DENIED="denied"]="DENIED"}(Ji||e("PermissionState",Ji={})),e("PermissionService",$i=function(){function e(e){this.sessionService=e}return e.prototype.query=function(e,t){return void 0===t&&(t=this.sessionService.manager),t.request("ar.permission.query",{type:e}).then(function(e){return e.state||Ji.NOT_REQUIRED})},e.prototype.revoke=function(e){return this.sessionService.manager.request("ar.permission.revoke",{type:e}).then(function(e){return e.state})},e}()),e("PermissionService",$i=Xi([N(),Zi("design:paramtypes",["function"==typeof(tn=void 0!==ki&&ki)&&tn||Object])],$i)),e("PermissionServiceProvider",en=function(){function e(e){var t=this;this.sessionService=e,this.sessionService.ensureIsRealityManager(),this.sessionService.connectEvent.addEventListener(function(e){e.on["ar.permission.query"]=function(i){var n=i.type;return Promise.resolve({state:t.getPermissionState(e,n)})},e.on["ar.permission.revoke"]=function(e){e.type;return Promise.reject(new Error("Revoking permission is not supported on this browser."))}})}return e.prototype.handlePermissionRequest=function(e,t,i){return Promise.resolve()},e.prototype.getPermissionState=function(e,t){return Ji.GRANTED},e}()),e("PermissionServiceProvider",en=Xi([N(),Zi("design:paramtypes",["function"==typeof(nn=void 0!==ki&&ki)&&nn||Object])],en)),rn=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},on=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("EntityPose",sn=function(){function e(e,t,i){if(this._collection=e,this.status=0,this.position=new se,this.orientation=new Re,this.time=new Ie(0,0),this._previousStatus=0,this._getEntityPositionInReferenceFrame=z,this._getEntityOrientationInReferenceFrame=P,"string"==typeof t){var n=this._collection.getById(t);n||(n=new ze(this._collection,t)),this._entity=n}else this._entity=t;if("string"==typeof i){var r=this._collection.getById(i);ge(r)||(r=new ze(this._collection,i)),this._referenceFrame=r}else this._referenceFrame=i}return Object.defineProperty(e.prototype,"entity",{get:function(){return this._entity},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"referenceFrame",{get:function(){return this._referenceFrame},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"poseStatus",{get:function(){return this.status},enumerable:!0,configurable:!0}),e.prototype.update=function(e){var t=Ie,i=an;t.clone(e,this.time),t.equals(this._previousTime,e)||(this._previousStatus=this.status,this._previousTime=t.clone(e,this._previousTime));var n=this.entity,r=this.referenceFrame,o=this._getEntityPositionInReferenceFrame(n,e,r,this.position),s=this._getEntityOrientationInReferenceFrame(n,e,r,this.orientation),a=o&&s,u=0,c=this._previousStatus;a&&(u|=i.KNOWN),!a||c&i.KNOWN?!a&&c&i.KNOWN&&(u|=i.LOST):u|=i.FOUND,this.status=u},e}()),function(e){e[e.KNOWN=1]="KNOWN",e[e.FOUND=2]="FOUND",e[e.LOST=4]="LOST"}(an||e("PoseStatus",an={})),e("EntityService",un=function(){function e(e){this.sessionService=e,this.collection=new we,this.subscribedEvent=new ni,this.unsubscribedEvent=new ni,this.subscriptions=new Map,this._scratchCartesian=new se,this._scratchQuaternion=new Re,this._scratchMatrix3=new Se,this._scratchMatrix4=new Le,this._getEntityPositionInReferenceFrame=z}return e.prototype._handleSubscribed=function(e){var t=this.subscriptions.get(e.id),i=e.options&&JSON.stringify(e.options);t&&JSON.stringify(t)!==i||(t&&this._handleUnsubscribed(e.id),this.subscriptions.set(e.id,i&&JSON.parse(i)),this.subscribedEvent.raiseEvent(e))},e.prototype._handleUnsubscribed=function(e){this.subscriptions.has(e)&&(this.subscriptions.delete(e),this.unsubscribedEvent.raiseEvent({id:e}))},e.prototype.getCartographic=function(e,t,i){var n=this._getEntityPositionInReferenceFrame(e,t,Pe.FIXED,this._scratchCartesian);if(n)return i=i||new ue,ue.fromCartesian(n,void 0,i)},e.prototype.createFixed=function(e,t){var i=se.fromRadians(e.longitude,e.latitude,e.height,void 0,this._scratchCartesian),n=t(i,void 0,this._scratchMatrix4),r=Le.getRotation(n,this._scratchMatrix3),o=Re.fromRotationMatrix(r,this._scratchQuaternion);return new Ae({position:i,orientation:o})},e.prototype.subscribe=function(e,t,i){var n=this;void 0===i&&(i=this.sessionService.manager);var r=e.id||e,o={id:r,options:t};return i.whenConnected().then(function(){return 0===i.version[0]&&i.version[1]<2?i.request("ar.context.subscribe",o):i.request("ar.entity.subscribe",o)}).then(function(){var e=n.collection.getOrCreateEntity(r);return n._handleSubscribed(o),e})},e.prototype.unsubscribe=function(e,t){var i=this;void 0===t&&(t=this.sessionService.manager);var n=e.id||e;t.whenConnected().then(function(){0===t.version[0]&&t.version[1]<2?t.send("ar.context.unsubscribe",{id:n}):t.send("ar.entity.unsubscribe",{id:n})}).then(function(){i._handleUnsubscribed(n)})},e.prototype.createEntityPose=function(e,t){return new sn(this.collection,e,t)},e.prototype.updateEntityFromSerializedState=function(e,t){var i=this.collection.getOrCreateEntity(e);if(!t)return i.position&&i.position.setValue(void 0),i.orientation&&i.orientation.setValue(void 0),i.meta=void 0,i;var n=t.p,r=Re.clone(t.o,this._scratchQuaternion),o="number"==typeof t.r?t.r:this.collection.getOrCreateEntity(t.r),s=i.position,a=i.orientation;return s instanceof de?s.setValue(n,o):i.position=new de(n,o),a instanceof fe?a.setValue(r):i.orientation=new fe(r),i.meta=t.meta,i},e}()),e("EntityService",un=rn([N(),on("design:paramtypes",["function"==typeof(ln=void 0!==ki&&ki)&&ln||Object])],un)),e("EntityServiceProvider",cn=function(){function e(e,t,i){var n=this;this.sessionService=e,this.entityService=t,this.permissionServiceProvider=i,this.subscriptionsBySubscriber=new WeakMap,this.subscribersByEntity=new Map,this.sessionSubscribedEvent=new ni,this.sessionUnsubscribedEvent=new ni,this.targetReferenceFrameMap=new Map,this._cacheTime=new Ie(0,0),this._entityPoseCache={},this._getSerializedEntityState=U,this.sessionService.ensureIsRealityManager(),this.sessionService.connectEvent.addEventListener(function(e){var t=new Map;n.subscriptionsBySubscriber.set(e,t),e.on["ar.entity.subscribe"]=e.on["ar.context.subscribe"]=function(i){var r=i.id,o=i.options,s=t.get(r);if(!s||!b(s,o)){var a=n.subscribersByEntity.get(r)||new Set;return n.subscribersByEntity.set(r,a),a.add(e),t.set(r,o),n.sessionSubscribedEvent.raiseEvent({session:e,id:r,options:o}),n.permissionServiceProvider.handlePermissionRequest(e,r,o).then(function(){})}},e.on["ar.entity.unsubscribe"]=e.on["ar.context.unsubscribe"]=function(i){var r=i.id;if(t.has(r)){var o=n.subscribersByEntity.get(r);o&&o.delete(e),t.delete(r),n.sessionUnsubscribedEvent.raiseEvent({id:r,session:e})}},e.closeEvent.addEventListener(function(){n.subscriptionsBySubscriber.delete(e),t.forEach(function(t,i){var r=n.subscribersByEntity.get(i);r&&r.delete(e),n.sessionUnsubscribedEvent.raiseEvent({id:i,session:e})})})})}return e.prototype.fillEntityStateMapForSession=function(e,t,i){var n=this.subscriptionsBySubscriber.get(e);if(n)for(var r,o=n.keys();!(r=o.next()).done;){var s=r.value,a=this.entityService.collection.getById(s);i[s]=a?this.getCachedSerializedEntityState(a,t):null}},e.prototype.getCachedSerializedEntityState=function(e,t){if(!e)return null;var i=e.id;if(!ge(this._entityPoseCache[i])||!this._cacheTime.equalsEpsilon(t,1e-6)){var n=this.targetReferenceFrameMap.get(i),r=ge(n)&&"string"==typeof n?this.entityService.collection.getById(n):ge(n)?n:this.entityService.collection.getById("ar.stage");this._entityPoseCache[i]=this._getSerializedEntityState(e,t,r)}return this._entityPoseCache[i]},e}()),e("EntityServiceProvider",cn=rn([N,on("design:paramtypes",["function"==typeof(hn=void 0!==ki&&ki)&&hn||Object,un,"function"==typeof(dn=void 0!==en&&en)&&dn||Object])],cn)),fn=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},pn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("FocusService",gn=function(){function e(e){var t=this;this.focusEvent=new ni,this.blurEvent=new ni,this._hasFocus=!1,e.manager.on["ar.focus.state"]=function(e){var i=e.state;t._hasFocus!==i&&(t._hasFocus=i,i?t.focusEvent.raiseEvent(void 0):t.blurEvent.raiseEvent(void 0))}}return Object.defineProperty(e.prototype,"hasFocus",{get:function(){return this._hasFocus},enumerable:!0,configurable:!0}),e}()),e("FocusService",gn=fn([D(ki),pn("design:paramtypes",["function"==typeof(yn=void 0!==ki&&ki)&&yn||Object])],gn)),e("FocusServiceProvider",Mn=function(){function e(e){var t=this;this.sessionService=e,this.sessionFocusEvent=new ni,e.ensureIsRealityManager(),e.manager.connectEvent.addEventListener(function(){setTimeout(function(){!t._session&&t.sessionService.manager.isConnected&&(t.session=t.sessionService.manager)})})}return Object.defineProperty(e.prototype,"session",{get:function(){return this._session},set:function(e){if(e&&!e.isConnected)throw new Error("Only a connected session can be granted focus");var t=this._session;t!==e&&(t&&t.send("ar.focus.state",{state:!1}),e&&e.send("ar.focus.state",{state:!0}),this._session=e,this.sessionFocusEvent.raiseEvent({previous:t,current:e}))},enumerable:!0,configurable:!0}),e}()),e("FocusServiceProvider",Mn=fn([D(ki,gn),pn("design:paramtypes",["function"==typeof(An=void 0!==ki&&ki)&&An||Object])],Mn)),wn=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},En=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("VisibilityService",mn=function(){function e(e){var t=this;this.showEvent=new ni,this.hideEvent=new ni,this._isVisible=!1,e.manager.on["ar.visibility.state"]=function(e){var i=e.state;t._isVisible!==i&&(t._isVisible=i,i?t.showEvent.raiseEvent(void 0):t.hideEvent.raiseEvent(void 0))},e.manager.closeEvent.addEventListener(function(){t._isVisible&&(t._isVisible=!1,t.hideEvent.raiseEvent(void 0))}),e.manager.connectEvent.addEventListener(function(){0===e.manager.version[0]&&(t._isVisible=!0,t.showEvent.raiseEvent(void 0))})}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),e}()),e("VisibilityService",mn=wn([D(ki),En("design:paramtypes",["function"==typeof(Nn=void 0!==ki&&ki)&&Nn||Object])],mn)),e("VisibilityServiceProvider",vn=function(){function e(e){var t=this;this.visibleSessions=new Set,this.sessionChangeEvent=new ni,e.ensureIsRealityManager(),this.sessionChangeEvent.addEventListener(function(e){e.send("ar.visibility.state",{state:t.visibleSessions.has(e)})}),e.manager.connectEvent.addEventListener(function(){t.set(e.manager,!0)})}return e.prototype.set=function(e,t){t?this.visibleSessions.has(e)||(this.visibleSessions.add(e),this.sessionChangeEvent.raiseEvent(e)):this.visibleSessions.has(e)&&(this.visibleSessions.delete(e),this.sessionChangeEvent.raiseEvent(e))},e}()),e("VisibilityServiceProvider",vn=wn([D(ki,mn),En("design:paramtypes",["function"==typeof(Dn=void 0!==ki&&ki)&&Dn||Object])],vn)),Tn=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},In=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("Subview",On=function(){return function(){}}()),function(e){e[e.EMBEDDED=0]="EMBEDDED",e[e.PAGE=0]="PAGE",e[e.IMMERSIVE=1]="IMMERSIVE"}(Sn||e("ViewportMode",Sn={})),e("ViewItems",Ln=function(){return function(){}}()),e("ViewItems",Ln=Tn([w(),In("design:paramtypes",[])],Ln)),e("ViewService",_n=function(){function e(e,t,i){var n=this;this.sessionService=e,this.focusService=t,this.viewItems=i,this.uiEvent=new ni,this.viewportChangeEvent=new ni,this.viewportModeChangeEvent=new ni,this._mode=Sn.EMBEDDED,this._viewport=new Kt,this._renderWidth=0,this._renderHeight=0,this.autoLayoutImmersiveMode=!0,this.autoStyleLayerElements=!0,this.autoPublishEmbeddedMode=!0,this._subviews=[],this._subviewFrustum=[],this._desiredViewportMode=this.viewportMode,this._embeddedViewport=new Kt,e.manager.on["ar.view.viewportMode"]=function(e){var t=e.mode;n._updateViewportMode(t)},e.isRealityManager||this._updateViewportMode(Sn.IMMERSIVE),e.manager.connectEvent.addEventListener(function(){n.viewportModeChangeEvent.raiseEvent(n.viewportMode)})}return Object.defineProperty(e.prototype,"viewportMode",{get:function(){return this._mode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentationMode",{get:function(){return this.viewportMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewport",{get:function(){return this._viewport},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderWidth",{get:function(){return this._renderWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){return this._renderHeight},enumerable:!0,configurable:!0}),e.prototype.getViewport=function(){return this.viewport},e.prototype.setLayers=function(e){var t=this.viewItems.layers;if(t)for(var i=0,n=t;i0&&t.sessionService.manager.send("ar.view.desiredViewportMode",{mode:e})})},enumerable:!0,configurable:!0}),e.prototype._updateViewportMode=function(e){this.viewportMode!==e&&(this._mode=e,this.viewportModeChangeEvent.raiseEvent(e))},e.prototype.publishEmbeddedViewport=function(e){this.sessionService.manager.isConnected&&this.sessionService.manager.version[0]>=1&&this.sessionService.manager.send("ar.view.embeddedViewport",{viewport:e})},e.prototype._updateViewport=function(e){var t=JSON.stringify(e);this._currentViewportJSON&&this._currentViewportJSON===t||(this._currentViewportJSON=t,this._viewport=Kt.clone(e,this._viewport),this.viewportChangeEvent.raiseEvent(e))},e.prototype.sendUIEventToSession=function(e,t){t&&t.isConnected&&t.send("ar.view.uievent",e)},e.prototype._watchEmbeddedViewport=function(){var e=this,t=function(){if(e.element&&e.autoPublishEmbeddedMode){var t=e.element.parentElement,i=t&&t.getBoundingClientRect();if(i){var n=i.left,r=window.innerHeight-i.bottom,o=i.width,s=i.height,a=e._embeddedViewport;a.x===n&&a.y===r&&a.width===o&&a.height===s||(a.x=n,a.y=r,a.width=o,a.height=s,e.publishEmbeddedViewport(e._embeddedViewport))}}};setInterval(function(){e.focusService.hasFocus||t()},500),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("orientationchange",t),window.addEventListener("scroll",t),this.sessionService.manager.closeEvent.addEventListener(function(){window.removeEventListener("orientationchange",t),window.removeEventListener("scroll",t)}))},e}()),Tn([H("viewportMode"),In("design:type",Object),In("design:paramtypes",[])],_n.prototype,"presentationMode",null),Tn([H("viewport"),In("design:type",Function),In("design:paramtypes",[]),In("design:returntype",void 0)],_n.prototype,"getViewport",null),Tn([H("subviews"),In("design:type",Function),In("design:paramtypes",[]),In("design:returntype",void 0)],_n.prototype,"getSubviews",null),Tn([H("desiredViewportMode"),In("design:type",Function),In("design:paramtypes",[Number]),In("design:returntype",Object)],_n.prototype,"requestPresentationMode",null),e("ViewService",_n=Tn([N,In("design:paramtypes",["function"==typeof(zn=void 0!==ki&&ki)&&zn||Object,"function"==typeof(Pn=void 0!==gn&&gn)&&Pn||Object,Ln])],_n)),e("ViewServiceProvider",jn=function(){function e(e,t,i,n){var r=this;this.sessionService=e,this.viewService=t,this.focusServiceProvider=i,this.sessionViewportMode=new WeakMap,this.sessionEmbeddedViewport=new WeakMap,this.forwardedUIEvent=new ni,e.ensureIsRealityManager(),e.connectEvent.addEventListener(function(e){r.sessionViewportMode.set(e,e===r.sessionService.manager?r.viewService.desiredViewportMode:Sn.IMMERSIVE),e.on["ar.view.forwardUIEvent"]=function(e){r.forwardedUIEvent.raiseEvent(e)},e.on["ar.view.desiredViewportMode"]=function(t){var i=t.mode;r.sessionViewportMode.set(e,i),r._publishViewportModes()},e.on["ar.view.embeddedViewport"]=function(t){r.sessionEmbeddedViewport.set(e,t)},r._publishViewportModes()}),i.sessionFocusEvent.addEventListener(function(){r._publishViewportModes()})}return e.prototype.sendUIEventToSession=function(e,t){t.send("ar.view.uievent",e)},e.prototype._publishViewportModes=function(){this.sessionService.manager.send("ar.view.viewportMode",{mode:this.sessionViewportMode.get(this.sessionService.manager)});for(var e=0,t=this.sessionService.managedSessions;e0&&i.send("ar.view.viewportMode",{mode:n})}},e}()),e("ViewServiceProvider",jn=Tn([N(),In("design:paramtypes",["function"==typeof(Un=void 0!==ki&&ki)&&Un||Object,_n,"function"==typeof(Bn=void 0!==Mn&&Mn)&&Bn||Object,"function"==typeof(kn=void 0!==vn&&vn)&&kn||Object])],jn)),"undefined"!=typeof document&&document.createElement&&((xn=document.querySelector("meta[name=viewport]"))||(xn=document.createElement("meta")),xn.name="viewport",xn.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",document.head.appendChild(xn),(bn=document.querySelector("meta[name=argon]"))||(bn=document.createElement("meta")),bn.name="argon",document.head.appendChild(bn),(Cn=document.createElement("style")).type="text/css",document.head.insertBefore(Cn,document.head.firstChild),(Rn=Cn.sheet).insertRule("\n #argon {\n position: fixed;\n width: 100%;\n height: 100%;\n left: 0;\n bottom: 0;\n margin: 0;\n border: 0;\n padding: 0;\n }\n ",Rn.cssRules.length),Rn.insertRule("\n .argon-view {\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n user-select: none;\n }\n ",Rn.cssRules.length),Rn.insertRule("\n .argon-immersive .argon-view {\n position: fixed !important;\n width: 100% !important;\n height: 100% !important;\n max-width: 100% !important;\n max-height: 100% !important;\n left: 0;\n bottom: 0;\n margin: 0;\n border: 0;\n padding: 0;\n visibility: visible;\n }\n ",Rn.cssRules.length),Rn.insertRule("\n :not(.argon-reality-manager).argon-immersive body {\n visibility: hidden;\n }\n ",Rn.cssRules.length),Rn.insertRule("\n .argon-interactive {\n pointer-events: auto;\n }\n ",Rn.cssRules.length)),Fn=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Qn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("DeviceStableState",Yn=function(){return function(){this.entities={},this.suggestedGeolocationSubscription=void 0,this.suggestedUserHeight=Vt,this.geolocationDesired=!1,this.geolocationOptions={},this.isPresentingHMD=!1,this.isPresentingRealityHMD=!1,this.strict=!1}}()),e("DeviceFrameState",qn=function(){return function(){this._scratchFrustum=new je,this.time=Ie.now(),this.viewport=new Jt,this.subviews=[{type:$t.SINGULAR,viewport:new Kt,projectionMatrix:(this._scratchFrustum.near=Ht,this._scratchFrustum.far=Wt,this._scratchFrustum.fov=Oe.PI_OVER_THREE,this._scratchFrustum.aspectRatio=1,Le.clone(this._scratchFrustum.projectionMatrix))}]}}()),e("DeviceService",Gn=function(){function e(e,t,i,n){var r=this;if(this.sessionService=e,this.entityService=t,this.viewService=i,this.visibilityService=n,this.autoSubmitFrame=!0,this.frameState=new qn,this.frameStateEvent=new ni,this.presentHMDChangeEvent=new ni,this.screenOrientationChangeEvent=new ni,this.suggestedGeolocationSubscriptionChangeEvent=new ni,this.stage=this.entityService.collection.add(new Ae({id:"ar.device.stage",name:"Device Stage",position:void 0,orientation:void 0})),this.origin=this.entityService.collection.add(new Ae({id:"ar.device.origin",name:"Device Origin",position:new de(se.ZERO,this.stage),orientation:new fe(Re.IDENTITY)})),this.user=this.entityService.collection.add(new Ae({id:"ar.device.user",name:"Device User",position:void 0,orientation:void 0})),this._geolocationDesired=!1,this.defaultUserHeight=Vt,this._scratchCartesian=new se,this._scratchFrustum=new je,this._updatingFrameState=!1,this._updateFrameState=function(){if(r._updatingFrameState){r.requestAnimationFrame(r._updateFrameState);var e=r.frameState;Ie.now(e.time),e.strict=r.strict,r.onUpdateFrameState();try{r.frameStateEvent.raiseEvent(e)}catch(e){r.sessionService.manager.sendError(e),r.sessionService.errorEvent.raiseEvent(e)}}},this.requestAnimationFrame=function(e){return r._vrDisplay&&r.isPresentingHMD?r._vrDisplay.requestAnimationFrame(e):Li(e)},this.cancelAnimationFrame=function(e){r._vrDisplay&&r.isPresentingHMD?r._vrDisplay.cancelAnimationFrame(e):_i(e)},this._stringIdentifierFromReferenceFrame=x,this._getReachableAncestorReferenceFrames=R,this._scratchArray=[],this._originPose=this.entityService.createEntityPose(this.origin,this.stage),this._scratchQuaternion=new Re,this._scratchQuaternion2=new Re,this._scratchMatrix3=new Se,this._scratchMatrix4=new Le,this._defaultLeftBounds=[0,0,.5,1],this._defaultRightBounds=[.5,0,.5,1],this._negX90=Re.fromAxisAngle(se.UNIT_X,-Oe.PI_OVER_TWO),this.visibilityService.showEvent.addEventListener(function(){return r._startUpdates()}),this.visibilityService.hideEvent.addEventListener(function(){return r._stopUpdates()}),"undefined"!=typeof navigator&&navigator.getVRDisplays&&navigator.userAgent.indexOf("Argon")>0==!1&&(this._setupVRPresentChangeHandler(),navigator.getVRDisplays().then(function(e){r._vrDisplays=e,r._vrDisplay=e[0]})),"undefined"!=typeof window&&window.addEventListener){var o=function(){r.screenOrientationChangeEvent.raiseEvent(void 0)};window.addEventListener("orientationchange",o),e.manager.closeEvent.addEventListener(function(){window.removeEventListener("orientationchange",o)})}this.sessionService.isRealityManager?(this.entityService.subscribedEvent.addEventListener(function(e){"ar.stage"===e.id&&r._setSuggestedGeolocationSubscription(e.options||{})}),this.entityService.unsubscribedEvent.addEventListener(function(e){"ar.stage"===e.id&&r._setSuggestedGeolocationSubscription(void 0)})):e.manager.on["ar.device.state"]=e.manager.on["ar.device.frameState"]=function(e){var t=e.entities,i=r.entityService;if(t)for(var n in t)i.updateEntityFromSerializedState(n,t[n]);r._setSuggestedGeolocationSubscription(e.geolocationOptions||e.suggestedGeolocationSubscription),(r._parentState&&r._parentState.isPresentingHMD!==e.isPresentingHMD||r._parentState&&r._parentState.isPresentingRealityHMD!==e.isPresentingRealityHMD)&&r.presentHMDChangeEvent.raiseEvent(void 0),r._parentState=e}}return Object.defineProperty(e.prototype,"geoHeadingAccuracy",{get:function(){return this.user.meta?this.user.meta.geoHeadingAccuracy:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoHorizontalAccuracy",{get:function(){return this.stage.meta?this.stage.meta.geoHorizonatalAccuracy:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoVerticalAccuracy",{get:function(){return this.stage.meta?this.stage.meta.geoVerticalAccuracy:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geolocationDesired",{get:function(){return this._parentState?this._parentState.suggestedGeolocationSubscription||this._parentState.geolocationDesired:this._geolocationDesired},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geolocationOptions",{get:function(){return this._parentState?this._parentState.suggestedGeolocationSubscription||this._parentState.geolocationOptions:this._geolocationOptions},enumerable:!0,configurable:!0}),e.prototype._setSuggestedGeolocationSubscription=function(e){b(this._suggestedGeolocationSubscription,e)||(this._suggestedGeolocationSubscription=e,this.suggestedGeolocationSubscriptionChangeEvent.raiseEvent(void 0))},Object.defineProperty(e.prototype,"suggestedGeolocationSubscription",{get:function(){return this._suggestedGeolocationSubscription},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestedUserHeight",{get:function(){return this._parentState&&this._parentState.suggestedUserHeight||this.isPresentingHMD?this.defaultUserHeight:this.defaultUserHeight/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strict",{get:function(){return!(!this._parentState||!this._parentState.strict)||this.isPresentingHMD&&!this._hasPolyfillWebVRDisplay()||!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vrDisplay",{get:function(){return this._vrDisplay},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"screenOrientationDegrees",{get:function(){return"undefined"!=typeof window?screen.orientation&&-screen.orientation.angle||-window.orientation||0:0},enumerable:!0,configurable:!0}),e.prototype.getScreenOrientationDegrees=function(){return this.getScreenOrientationDegrees},e.prototype._startUpdates=function(){var e=this;this._updatingFrameState||this.requestAnimationFrame(this._updateFrameState),this._updatingFrameState=!0,this.sessionService.manager.whenConnected().then(function(){e.sessionService.manager.version[0]>0&&e.sessionService.manager.send("ar.device.startUpdates")})},e.prototype._stopUpdates=function(){var e=this;this._updatingFrameState=!1,this.sessionService.manager.whenConnected().then(function(){e.sessionService.manager.version[0]>0&&e.sessionService.manager.send("ar.device.stopUpdates")})},e.prototype.onUpdateFrameState=function(){this._updateViewport(),this._vrDisplay&&this._vrDisplay.isPresenting?this._updateForWebVR():this._updateDefault()},e.prototype._updateViewport=function(){var e=this._parentState,t=this.frameState,i=t.viewport;if(e&&e.viewport)Jt.clone(e.viewport,i);else{var n=this.viewService.element;i.x=0,i.y=0,i.width=n&&n.clientWidth||0,i.height=n&&n.clientHeight||0;var r=this._vrDisplay;if(r&&r.isPresenting){var o=r.getEyeParameters("left"),s=r.getEyeParameters("right"),a=t.viewport;a.renderWidthScaleFactor=2*Math.max(o.renderWidth,s.renderWidth)/a.width,a.renderHeightScaleFactor=Math.max(o.renderHeight,s.renderHeight)/a.height}else i.renderHeightScaleFactor=1,i.renderWidthScaleFactor=1}},e.prototype._updateDefault=function(){this._updateDefaultOrigin(),this._updateDefaultUser();var e=this._parentState,t=this.frameState,i=t.viewport;e&&e.viewport&&Jt.clone(e.viewport,i);var n=t.subviews;if(e&&e.subviews)ii.clone(e.subviews,n);else{n.length=1;var r=n[0]||{};r.type=$t.SINGULAR,r.viewport.x=0,r.viewport.y=0,r.viewport.width=i.width,r.viewport.height=i.height;var o=i.width/i.height,s=this._scratchFrustum;s.near=Ht,s.far=Wt,s.fov=Oe.PI_OVER_THREE,s.aspectRatio=isFinite(o)&&0!==o?o:1,r.projectionMatrix=Le.clone(s.projectionMatrix,r.projectionMatrix);var a=this.getSubviewEntity(0);a.position.setValue(se.ZERO,this.user),a.orientation.setValue(Re.IDENTITY)}},e.prototype._updateDefaultOrigin=function(){var e=this.origin,t=this.stage,i=this._originPose,n=this.frameState.time;if(i.update(n),0==(i.status&an.KNOWN)||se.magnitudeSquared(i.position)>1e4){var r=this._getReachableAncestorReferenceFrames(t,n,this._scratchArray)[0];if(ge(r)){var o=t.position.getValueInReferenceFrame(n,r,this._scratchCartesian),s=t.orientation.getValue(n,this._scratchQuaternion);if(o&&s)return e.position.setValue(o,r),e.orientation.setValue(s),void console.log("Updated device origin to "+JSON.stringify(o)+" at "+this._stringIdentifierFromReferenceFrame(r))}e.position.setValue(se.ZERO,t),e.orientation.setValue(Re.IDENTITY)}},e.prototype._updateDefaultUser=function(){var e=this.user,t=this.stage,i=this._deviceOrientation;if(this._tryOrientationUpdates(),!i)return e.position=void 0,void(e.orientation=void 0);var n=Re.fromAxisAngle(se.UNIT_Z,this.screenOrientationDegrees*Oe.RADIANS_PER_DEGREE,this._scratchQuaternion);e.position||(e.position=new de),e.orientation||(e.orientation=new fe),e.position.setValue(se.fromElements(0,0,this.suggestedUserHeight,this._scratchCartesian),t),e.orientation.setValue(Re.multiply(i,n,this._scratchQuaternion)),e.meta=e.meta||{},e.meta.geoHeadingAccuracy=this._deviceOrientationHeadingAccuracy},e.prototype._updateForWebVR=function(){var e=this._vrDisplay;if(!e)throw new Error("No vr display!");var t=this.frameState,i=this._vrFrameData=this._vrFrameData||new VRFrameData;if(!e.getFrameData(i))return this.frameState;var n=e.getLayers()[0],r=n&&n.leftBounds,o=n&&n.rightBounds;n?(r=n.leftBounds&&4===n.leftBounds.length?n.leftBounds:this._defaultLeftBounds,o=n.rightBounds&&4===n.rightBounds.length?n.rightBounds:this._defaultRightBounds):(r=this._defaultLeftBounds,o=this._defaultRightBounds);var s=t.viewport,a=t.subviews=t.subviews||[];a.length=2;var u=a[0]=a[0]||{},c=a[1]=a[1]||{};u.type=$t.LEFTEYE,c.type=$t.RIGHTEYE;var l=u.viewport=u.viewport||{};l.x=r[0]*s.width,l.y=r[1]*s.height,l.width=r[2]*s.width,l.height=r[3]*s.height;var h=c.viewport=c.viewport||{};h.x=o[0]*s.width,h.y=o[1]*s.height,h.width=o[2]*s.width,h.height=o[3]*s.height,u.projectionMatrix=Le.clone(i.leftProjectionMatrix,u.projectionMatrix),c.projectionMatrix=Le.clone(i.rightProjectionMatrix,c.projectionMatrix);var d=e.stageParameters?e.stageParameters.sittingToStandingTransform:Le.IDENTITY,f=Le.getRotation(d,this._scratchMatrix3),p=Re.fromRotationMatrix(f,this._scratchQuaternion),g=this.user,M=this.origin,y=i.pose.position?se.unpack(i.pose.position,0,this._scratchCartesian):void 0,A=y?Le.multiplyByPoint(d,y,this._scratchCartesian):void 0,w=i.pose.orientation?Re.unpack(i.pose.orientation,0,this._scratchQuaternion2):void 0,E=w?Re.multiply(p,w,this._scratchQuaternion):void 0;if(g.position||(g.position=new de),g.orientation||(g.orientation=new fe),g.position.setValue(A,M),g.orientation.setValue(E),A&&E){var m=Le.inverseTransformation(i.leftViewMatrix,this._scratchMatrix4),v=Le.multiplyTransformation(d,m,this._scratchMatrix4),N=this.getSubviewEntity(0),D=Le.getTranslation(v,this._scratchCartesian),T=Le.getRotation(v,this._scratchMatrix3),I=Re.fromRotationMatrix(T,this._scratchQuaternion);N.position.setValue(D,M),N.orientation.setValue(I);var O=Le.inverseTransformation(i.rightViewMatrix,this._scratchMatrix4),S=Le.multiplyTransformation(d,O,this._scratchMatrix4),L=this.getSubviewEntity(1),_=Le.getTranslation(S,this._scratchCartesian),j=Le.getRotation(S,this._scratchMatrix3),x=Re.fromRotationMatrix(j,this._scratchQuaternion);L.position.setValue(_,M),L.orientation.setValue(x)}e.displayName.match(/polyfill/g)?(this._updateDefaultOrigin(),g.position.setValue(void 0,void 0),g.orientation.setValue(void 0),this._updateDefaultUser()):(this.origin.position.setValue(se.ZERO,this.stage),this.origin.orientation.setValue(Re.IDENTITY))},e.prototype._hasPolyfillWebVRDisplay=function(){return!!this._vrDisplay&&!!this._vrDisplay.displayName.match(/polyfill/g)},e.prototype.onRequestPresentHMD=function(){if(this._vrDisplay){var e=this.viewService.element,t=this.viewService.layers,i=[{source:t&&t[0]&&t[0].source||e.querySelector("canvas")||e.lastElementChild}];return this._vrDisplay.requestPresent(i).catch(function(e){throw e})}throw new Error("No HMD available")},e.prototype.onExitPresentHMD=function(){return this._vrDisplay&&this._vrDisplay.isPresenting?this._vrDisplay.exitPresent():Promise.resolve()},e.prototype.createContextFrameState=function(e,t,i,n){return _o.instance.context.createFrameState(e,t,i,n)},e.prototype.getSubviewEntity=function(e){var t=this.entityService.collection.getOrCreateEntity("ar.device.view_"+e);return t.position||(t.position=new de(se.ZERO,this.user)),t.orientation||(t.orientation=new fe(Re.IDENTITY)),t},e.prototype.subscribeGeolocation=function(e,t){return void 0===t&&(t=this.sessionService.manager),this.entityService.subscribe(this.stage.id,e,t).then(function(){})},e.prototype.unsubscribeGeolocation=function(e){void 0===e&&(e=this.sessionService.manager),this.entityService.unsubscribe(this.stage.id,e)},Object.defineProperty(e.prototype,"isPresentingHMD",{get:function(){return this._parentState&&this._parentState.isPresentingHMD||this._vrDisplay&&this._vrDisplay.isPresenting||!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPresentingRealityHMD",{get:function(){return this._parentState&&this._parentState.isPresentingRealityHMD||this._vrDisplay&&this._vrDisplay.isPresenting&&!!this._vrDisplay.displayName.match(/polyfill/g)||!1},enumerable:!0,configurable:!0}),e.prototype.requestPresentHMD=function(){if(!this.sessionService.manager.isConnected)throw new Error("Session must be connected");return this.sessionService.isRealityManager?this.onRequestPresentHMD():this.sessionService.manager.request("ar.device.requestPresentHMD")},e.prototype.exitPresentHMD=function(){if(!this.sessionService.manager.isConnected)throw new Error("Session must be connected");return this.sessionService.isRealityManager?this.onExitPresentHMD():this.sessionService.manager.request("ar.device.exitPresentHMD")},e.prototype._tryOrientationUpdates=function(){var e=this;if("undefined"!=typeof window&&window.addEventListener&&!ge(this._deviceOrientationListener)){var t=void 0;this._deviceOrientationListener=function(i){var n=i.alpha,r=i.webkitCompassHeading,o=+i.webkitCompassAccuracy;if(ge(n)&&(i.absolute&&(t=0),e._deviceOrientationHeadingAccuracy=o>0?o:void 0,(!ge(t)||Math.abs(0)>5)&&ge(r)&&o>=0&&o<80&&r>=0&&(ge(t)?t-=0:t=-r),ge(t)&&ge(i.alpha)&&ge(i.beta)&&ge(i.gamma))){var s=Oe.RADIANS_PER_DEGREE*(i.alpha+t||-r||0),a=Oe.RADIANS_PER_DEGREE*i.beta,u=Oe.RADIANS_PER_DEGREE*i.gamma,c=Re.fromAxisAngle(se.UNIT_Z,s,e._scratchQuaternion),l=Re.fromAxisAngle(se.UNIT_X,a,e._scratchQuaternion2),h=Re.multiply(c,l,e._scratchQuaternion),d=Re.fromAxisAngle(se.UNIT_Y,u,e._scratchQuaternion2),f=Re.multiply(h,d,e._scratchQuaternion);e._deviceOrientation=Re.multiply(e._negX90,f,e._deviceOrientation||new Re),e._deviceOrientationHeadingAccuracy=o}},"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._deviceOrientationListener):"ondeviceorientation"in window&&window.addEventListener("deviceorientation",this._deviceOrientationListener)}},e.prototype._setupVRPresentChangeHandler=function(){var e=this;if("undefined"!=typeof window&&window.addEventListener){this.viewService.viewportModeChangeEvent.addEventListener(function(t){t===Sn.PAGE&&e._vrDisplay&&e._vrDisplay.displayName.match(/polyfill/g)&&e.exitPresentHMD()});var t,i;window.addEventListener("vrdisplaypresentchange",function(n){var r=e.viewService,o=n.display||n.detail.vrdisplay||n.detail.display;o&&(o.isPresenting?(e._vrDisplay=o,o.displayName.match(/polyfill/g)&&((t=o.getLayers()[0].source)&&t.classList.add("argon-interactive"),i=r.viewportMode,r.desiredViewportMode=Sn.IMMERSIVE)):t&&o.displayName.match(/polyfill/g)&&(t.classList.remove("argon-interactive"),t=void 0,r.desiredViewportMode=i))})}},e}()),Fn([H(),Qn("design:type",Object),Qn("design:paramtypes",[])],Gn.prototype,"geolocationDesired",null),Fn([H(),Qn("design:type",Object),Qn("design:paramtypes",[])],Gn.prototype,"geolocationOptions",null),Fn([H(),Qn("design:type",Function),Qn("design:paramtypes",["function"==typeof(Hn=void 0!==Ie&&Ie)&&Hn||Object,"function"==typeof(Wn=void 0!==Jt&&Jt)&&Wn||Object,"function"==typeof(Xn=void 0!==ii&&ii)&&Xn||Object,Object]),Qn("design:returntype",Object)],Gn.prototype,"createContextFrameState",null),e("DeviceService",Gn=Fn([N(),Qn("design:paramtypes",["function"==typeof(Zn=void 0!==ki&&ki)&&Zn||Object,"function"==typeof(Kn=void 0!==un&&un)&&Kn||Object,"function"==typeof(Jn=void 0!==_n&&_n)&&Jn||Object,"function"==typeof($n=void 0!==mn&&mn)&&$n||Object])],Gn)),e("DeviceServiceProvider",Vn=function(){function e(e,t,i,n,r){var o=this;this.sessionService=e,this.deviceService=t,this.viewService=i,this.entityService=n,this.entityServiceProvider=r,this._subscribers={},this._needsPublish=!1,this._publishTime=new Ie(0,0),this._stableState=new Yn,this._targetGeolocationOptions={},this._sessionGeolocationOptions=new Map,this._sctachStageCartesian=new se,this._scatchStageMatrix4=new Le,this._scatchStageMatrix3=new Se,this._scatchStageQuaternion=new Re,this._eastUpSouthToFixedFrame=gi,this._scratchCartographic=new ue,this.entityServiceProvider.targetReferenceFrameMap.set(t.stage.id,Pe.FIXED),this.entityServiceProvider.targetReferenceFrameMap.set(t.user.id,t.stage.id),this.sessionService.connectEvent.addEventListener(function(e){e.on["ar.device.requestFrameState"]=function(){return o._subscribers[e.id]=e,new Promise(function(e){var t=o.deviceService.frameStateEvent.addEventListener(function(i){e(i),t()})})},e.on["ar.device.startUpdates"]=function(){o._subscribers[e.id]=e},e.on["ar.device.stopUpdates"]=function(){delete o._subscribers[e.id]},e.on["ar.device.setGeolocationOptions"]=function(t){var i=t.options;o._sessionGeolocationOptions.set(e,i),o._checkDeviceGeolocationSubscribers()},e.on["ar.device.requestPresentHMD"]=function(){return o.handleRequestPresentHMD(e)},e.on["ar.device.exitPresentHMD"]=function(){return o.handleExitPresentHMD(e)},e.closeEvent.addEventListener(function(){o._sessionGeolocationOptions.has(e)&&(o._sessionGeolocationOptions.delete(e),o._checkDeviceGeolocationSubscribers())}),o._needsPublish=!0}),this.entityServiceProvider.sessionSubscribedEvent.addEventListener(function(e){var t=e.id,i=e.options,n=e.session;o.deviceService.stage.id===t&&(o._sessionGeolocationOptions.set(n,i),o._checkDeviceGeolocationSubscribers())}),this.entityServiceProvider.sessionUnsubscribedEvent.addEventListener(function(e){var t=e.id;o.deviceService.stage.id===t&&o._checkDeviceGeolocationSubscribers()}),this.deviceService.suggestedGeolocationSubscriptionChangeEvent.addEventListener(function(){o._needsPublish=!0}),this.viewService.viewportChangeEvent.addEventListener(function(){o._needsPublish=!0}),this.viewService.viewportModeChangeEvent.addEventListener(function(){o._needsPublish=!0}),this.deviceService.screenOrientationChangeEvent.addEventListener(function(){o._needsPublish=!0}),this.deviceService.frameStateEvent.addEventListener(function(e){if(o._needsPublish||o._stableState.isPresentingHMD!==o.deviceService.isPresentingHMD||o._stableState.isPresentingRealityHMD!==o.deviceService.isPresentingRealityHMD||!1===Jt.equals(o._stableState.viewport,e.viewport))o._needsPublish=!0;else if(o._stableState.subviews)if(o._stableState.subviews.length===e.subviews.length){for(var t=0;t0&&i!==this.sessionService.manager){for(var n in e.entities)delete e.entities[n];this.entityServiceProvider.fillEntityStateMapForSession(i,this._publishTime,e.entities),i.send("ar.device.state",e)}}this._needsPublish=!1},e.prototype.onUpdateStableState=function(e){},e.prototype._checkDeviceGeolocationSubscribers=function(){var e=this.entityServiceProvider.subscribersByEntity.get(this.deviceService.stage.id);if(e&&e.size>0){var t={};this._sessionGeolocationOptions.forEach(function(e,i){t.enableHighAccuracy=t.enableHighAccuracy||e&&e.enableHighAccuracy||!1}),this._targetGeolocationOptions.enableHighAccuracy!==t.enableHighAccuracy&&(this._targetGeolocationOptions=t),JSON.stringify(this._targetGeolocationOptions)!==JSON.stringify(this._currentGeolocationOptions)&&(this._currentGeolocationOptions=this._targetGeolocationOptions,this.onStopGeolocationUpdates(),this.onStartGeolocationUpdates(this._targetGeolocationOptions))}else this.onStopGeolocationUpdates(),this._currentGeolocationOptions=void 0;this._needsPublish=!0},e.prototype.configureStage=function(e,t,i){var n=this;if(ge(i)||0!==e.height){var r=this.deviceService.stage,o=se.fromRadians(e.longitude,e.latitude,e.height,void 0,this._sctachStageCartesian),s=this._eastUpSouthToFixedFrame(o,void 0,this._scatchStageMatrix4),a=Le.getRotation(s,this._scatchStageMatrix3),u=Re.fromRotationMatrix(a,this._scatchStageQuaternion);r.position=r.position||new de,r.orientation=r.orientation||new fe,r.position.setValue(o,Pe.FIXED),r.orientation.setValue(u),r.meta={geoHorizontalAccuracy:t,geoVerticalAccuracy:i}}else W(e).then(function(){return n.configureStage(e,t,0)})},e.prototype.onStartGeolocationUpdates=function(e){var t=this;if("undefined"==typeof navigator||!navigator.geolocation)throw new Error("Unable to start geolocation updates");ge(this._geolocationWatchId)||(this._geolocationWatchId=navigator.geolocation.watchPosition(function(e){var i=e.coords.longitude,n=e.coords.latitude,r=e.coords.altitude,o=ue.fromDegrees(i,n,r||0,t._scratchCartographic);t.configureStage(o,e.coords.accuracy>0?e.coords.accuracy:void 0,e.coords.altitudeAccuracy||void 0)},function(e){console.warn("Unable to start geolocation updates: "+e.message)},e))},e.prototype.onStopGeolocationUpdates=function(){"undefined"!=typeof navigator&&ge(this._geolocationWatchId)&&(navigator.geolocation.clearWatch(this._geolocationWatchId),this._geolocationWatchId=void 0)},e}()),e("DeviceServiceProvider",Vn=Fn([N(),Qn("design:paramtypes",["function"==typeof(er=void 0!==ki&&ki)&&er||Object,Gn,"function"==typeof(tr=void 0!==_n&&_n)&&tr||Object,"function"==typeof(ir=void 0!==un&&un)&&ir||Object,"function"==typeof(nr=void 0!==cn&&cn)&&nr||Object])],Vn)),rr=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},or=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("ContextService",sr=function(){function e(e,t,i,n){var r=this;this.entityService=e,this.sessionService=t,this.deviceService=i,this.viewService=n,this.updateEvent=new ni,this.renderEvent=new ni,this.postRenderEvent=new ni,this.originChangeEvent=new ni,this._originChanged=!1,this.timestamp=-1,this.deltaTime=0,this.maxDeltaTime=1/3*1e3,this.time=new Ie(0,0),this.origin=this.entities.add(new Ae({id:"ar.origin",name:"Origin",position:new de(void 0,Pe.FIXED),orientation:new fe(void 0)})),this._localOrigin=this.entities.add(new Ae({id:"ar.localOrigin",name:"Local Origin",position:new de(se.ZERO,this.origin),orientation:new fe(Re.IDENTITY)})),this._localOriginEastNorthUp=this.entities.add(new Ae({id:"ar.localOriginENU",name:"Local Origin (ENU)",position:new de(se.ZERO,this.localOriginEastNorthUp),orientation:new fe(Re.fromAxisAngle(se.UNIT_X,-Math.PI/2))})),this.stage=this.entities.add(new Ae({id:"ar.stage",name:"Stage",position:new de(void 0,Pe.FIXED),orientation:new fe(void 0)})),this.floor=this.entities.add(new Ae({id:"ar.floor",name:"Floor",position:new de(se.ZERO,this.stage),orientation:new fe(Re.IDENTITY)})),this.user=this.entities.add(new Ae({id:"ar.user",name:"User",position:new de(void 0,this.stage),orientation:new fe(void 0)})),this.view=this.entities.add(new Ae({id:"ar.view",name:"View",position:new de(se.ZERO,this.user),orientation:new fe(Re.IDENTITY)})),this.defaultReferenceFrame=this.origin,this._entityPoseMap=new Map,this._updatingEntities=new Set,this._knownEntities=new Set,this._scratchCartesian=new se,this._scratchQuaternion=new Re,this._scratchFrustum=new je,this.subscribe=this.entityService.subscribe.bind(this.entityService),this.unsubscribe=this.entityService.unsubscribe.bind(this.entityService),this._stringIdentifierFromReferenceFrame=x,this._frameIndex=-1,this._scratchFrameState={time:{},entities:{},viewport:{},subviews:[]},this._getSerializedEntityState=U,this._getEntityPositionInReferenceFrame=z,this._getEntityOrientationInReferenceFrame=P,this._scratchMatrix3=new Se,this._scratchMatrix4=new Le,this.sessionService.manager.on["ar.context.update"]=function(e){var t=r._scratchFrustum;if("string"!=typeof e.reality&&(e.reality=e.reality&&e.reality.uri),!e.viewport&&e.view&&e.view.viewport&&(e.viewport=e.view.viewport),!e.subviews&&e.view&&e.view.subviews){e.subviews=e.view.subviews,t.near=Ht,t.far=Wt;for(var i=0,n=e.subviews;i=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Nr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("EmptyRealityViewer",Dr=function(e){function t(t,i,n,r){function o(e){switch(e){case"W".charCodeAt(0):return"moveForward";case"S".charCodeAt(0):return"moveBackward";case"E".charCodeAt(0):return"moveUp";case"R".charCodeAt(0):return"moveDown";case"D".charCodeAt(0):return"moveRight";case"A".charCodeAt(0):return"moveLeft";default:return}}var s=e.call(this,r)||this;s.sessionService=t,s.viewService=i,s.container=n,s.uri=r,s.type="empty",s._moveFlags={moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1},s._scratchMatrix3=new Se,s._scratchMatrix4=new Le;var a=function(e){var t=o(e.keyCode);void 0!==t&&(s._moveFlags[t]=!0)},u=function(e){var t=o(e.keyCode);void 0!==t&&(s._moveFlags[t]=!1)};return"undefined"!=typeof document&&s.presentChangeEvent.addEventListener(function(){if(s.isPresenting)s.viewService.element.style.backgroundColor="white",!s._aggregator&&s.viewService.element&&(s.viewService.element.disableRootEvents=!0,s._aggregator=new ne(s.viewService.element),document.addEventListener("keydown",a,!1),document&&document.addEventListener("keyup",u,!1));else{delete s.viewService.element.style.backgroundColor,s._aggregator&&s._aggregator.destroy(),s._aggregator=void 0,document&&document.removeEventListener("keydown",a),document&&document.removeEventListener("keyup",u);for(var e in s._moveFlags)s._moveFlags[e]=!1}}),s}return mr(t,e),t.prototype.load=function(){var e=this,t=this.container.createChild(),i=this.sessionService.addManagedSessionPort(this.uri);i.connectEvent.addEventListener(function(){e.connectEvent.raiseEvent(i)}),t.registerInstance(Bi,new qi(i,this.sessionService.configuration)),t.registerInstance(Zt,{role:Xt.REALITY_VIEWER,uri:this.uri,title:"Empty",version:this.sessionService.configuration.version,supportsCustomProtocols:!0,protocols:["ar.configureStage@v1"]}),t.autoRegisterAll([ki,un,mn,sr,Gn,Gr]);var n=t.get(sr),r=t.get(Gn),o=t.get(ki),s=t.get(Gr),a=t.get(_n);r.autoSubmitFrame=!1;var u,c;s.connectEvent.addEventListener(function(t){t.on["ar.configureStage.setStageGeolocation"]=function(t){var i=t.geolocation;u=se.fromRadians(i.longitude,i.latitude,i.height,void 0,u);var n=gi(u,void 0,e._scratchMatrix4),r=Le.getRotation(n,e._scratchMatrix3);c=Re.fromRotationMatrix(r,c)},t.on["ar.configureStage.resetStageGeolocation"]=function(){u=void 0,c=void 0}}),o.manager.connectEvent.addEventListener(function(){o.manager.suppressErrorOnUnknownTopic=!0;var t=new Re,i=new Re,s=new se,l=new se,h=new Se,d=new se(0,0,1),f=new se(1,0,0),p=new se(0,-1,0),g=new je,M=r.stage,y=r.user,A=new se(0,0,-1),w=[],E=n.createEntityPose(y,M),m=function(){r.suggestedGeolocationSubscription?r.subscribeGeolocation(r.suggestedGeolocationSubscription):r.unsubscribeGeolocation()};m();var v=r.suggestedGeolocationSubscriptionChangeEvent.addEventListener(m),N=r.frameStateEvent.addEventListener(function(M){if(!o.manager.isClosed){var y=e._aggregator,m=e._moveFlags;if(e.isPresenting){if(ii.clone(M.subviews,w),!r.strict){if(Y(w[0].projectionMatrix,g),g.fov=a.subviews[0]&&a.subviews[0].frustum.fov||Oe.PI_OVER_THREE,y&&y.isMoving(re.WHEEL)){N=y.getMovement(re.WHEEL).endPosition.y;g.fov=Math.min(Math.max(g.fov-.02*N,Math.PI/8),Math.PI-Math.PI/8)}if(y&&y.isMoving(re.PINCH)){var v=y.getMovement(re.PINCH),N=v.distance.endPosition.y-v.distance.startPosition.y;g.fov=Math.min(Math.max(g.fov-.02*N,Math.PI/8),Math.PI-Math.PI/8)}w.forEach(function(e){var t=e.viewport.width/e.viewport.height;g.aspectRatio=isFinite(t)?t:1,Le.clone(g.projectionMatrix,e.projectionMatrix)})}var D=M.time;E.update(D);var T=!(E.status&an.KNOWN);if(T){var I=n.user,O=z(I,D,x=n.stage,s)||se.fromElements(0,r.suggestedUserHeight,0,s),S=P(I,D,x,t)||Re.clone(Re.IDENTITY,t);if(y&&y.isMoving(re.LEFT_DRAG)){var L=y.getMovement(re.LEFT_DRAG);if(S){var _=Re.fromAxisAngle(se.UNIT_Y,g.fov*(L.endPosition.x-L.startPosition.x)/M.viewport.width,i);S=Re.multiply(S,_,_),I.orientation.setValue(S)}}Se.fromQuaternion(S,h),Se.multiplyByVector(h,se.UNIT_Y,d),Se.multiplyByVector(h,se.UNIT_X,f),Se.multiplyByVector(h,A,p);m.moveForward&&(se.multiplyByScalar(p,.02,l),se.add(O,l,O)),m.moveBackward&&(se.multiplyByScalar(p,-.02,l),se.add(O,l,O)),m.moveUp&&(se.multiplyByScalar(d,.02,l),se.add(O,l,O)),m.moveDown&&(se.multiplyByScalar(d,-.02,l),se.add(O,l,O)),m.moveLeft&&(se.multiplyByScalar(f,-.02,l),se.add(O,l,O)),m.moveRight&&(se.multiplyByScalar(f,.02,l),se.add(O,l,O)),I.position.setValue(O,x),I.orientation.setValue(S)}var j=!(!u||!c);if(j){var x=n.stage;x.position.setValue(u,Pe.FIXED),x.orientation.setValue(c)}var b=n.createFrameState(D,M.viewport,w,{overrideUser:T,overrideStage:j});n.submitFrameState(b),y&&y.reset()}else y&&y.reset()}});o.manager.closeEvent.addEventListener(function(){v(),N()})}),o.connect()},t}(Er)),e("EmptyRealityViewer",Dr=vr([D(ki,_n,Pt),Nr("design:paramtypes",["function"==typeof(Tr=void 0!==ki&&ki)&&Tr||Object,"function"==typeof(Ir=void 0!==_n&&_n)&&Ir||Object,"function"==typeof(Or=void 0!==Pt&&Pt)&&Or||Object,String])],Dr)),Sr=function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},Lr=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},_r=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("LiveRealityViewer",jr=function(e){function t(t,i,n,r,o){var s=e.call(this,o)||this;if(s.sessionService=t,s.viewService=i,s.contextService=n,s.deviceService=r,s.uri=o,"undefined"!=typeof document){s.settingsIframe=document.createElement("iframe"),s.settingsIframe.width="0",s.settingsIframe.height="0",s.settingsIframe.src="https://argonjs.io/tools.argonjs.io/",s.settingsIframe.style.display="none",s.videoFov=Math.PI/2,s.videoElement=document.createElement("video"),s.videoElement.style.width="100%",s.videoElement.style.height="height:100%",s.videoElement.controls=!1,s.videoElement.autoplay=!0,s.videoElement.style.display="none",s.videoElement.style.zIndex="-100";var a=s.viewService.element;a.insertBefore(s.settingsIframe,a.firstChild),a.insertBefore(s.videoElement,a.firstChild),s.canvas=document.createElement("canvas"),s.context=s.canvas.getContext("2d"),window.addEventListener("message",function(e){"http://argonjs.io"===e.origin&&(s.videoFov=e.data)})}return s.presentChangeEvent.addEventListener(function(){"undefined"!=typeof document&&(s.videoElement.style.display=s.isPresenting?"initial":"none")}),s}return Sr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),"undefined"!=typeof document&&(this.settingsIframe.remove(),this.videoElement.remove(),this.canvas.remove())},t.prototype.setupInternalSession=function(e){var t=this;e.connectEvent.addEventListener(function(){if(t.videoElement){var i=t.videoElement,n=navigator.mediaDevices;(n.getUserMedia||n.mozGetUserMedia||n.msGetUserMedia||n.webkitGetUserMedia).bind(n)({audio:!1,video:!0}).then(function(t){var n=function(){for(var e=0,i=t.getTracks();e=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Ur=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("HostedRealityViewer",Br=function(e){function t(t,i,n){var r=e.call(this,n)||this;if(r.sessionService=t,r.viewService=i,r.uri=n,r.type="hosted","undefined"!=typeof document&&document.createElement){var o=r.iframeElement=document.createElement("iframe");o.name=O(),o.style.border="0",o.width="100%",o.height="100%",o.style.position="absolute",o.style.opacity="0",o.style.pointerEvents="none",o.style.zIndex="-100";var s=r.viewService.element;s.insertBefore(o,s.firstChild),r.presentChangeEvent.addEventListener(function(){r.iframeElement.style.opacity=r.isPresenting?"1":"0"})}return r}return zr(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.iframeElement&&this.iframeElement.remove()},t.prototype.load=function(){var e=this;if("undefined"!=typeof document&&document.createElement){var t=this.sessionService.addManagedSessionPort(this.uri);t.connectEvent.addEventListener(function(){e.sessionService.manager.isClosed||e.connectEvent.raiseEvent(t)});var i=function(n){if("ARGON_SESSION"===n.data.type){var r=n.data.name,o=n.ports&&n.ports[0];if(!o)throw new Error("Received an ARGON_SESSION message without a MessagePort object");r===e.iframeElement.name&&(window.removeEventListener("message",i),t.open(o,e.sessionService.configuration))}};window.addEventListener("message",i),this.iframeElement.src="",this.iframeElement.src=this.uri}},t}(Er)),e("HostedRealityViewer",Br=Pr([D(ki,_n),Ur("design:paramtypes",["function"==typeof(kr=void 0!==ki&&ki)&&kr||Object,"function"==typeof(Fr=void 0!==_n&&_n)&&Fr||Object,String])],Br)),Qr=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Yr=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("RealityViewerFactory",qr=function(){function e(e,t,i){this._createEmptyReality=e,this._createLiveReality=t,this._createHostedReality=i}return e.prototype.createRealityViewer=function(e){switch(Er.getType(e)){case Er.EMPTY:return this._createEmptyReality(e);case Er.LIVE:return this._createLiveReality(e);case"hosted":return this._createHostedReality(e);default:throw new Error("Unsupported Reality Viewer: "+e)}},e}()),e("RealityViewerFactory",qr=Qr([D(St.of(Dr),St.of(jr),St.of(Br)),Yr("design:paramtypes",[Object,Object,Object])],qr)),e("RealityService",Gr=function(){function e(e,t){var i=this;this.sessionService=e,this.contextService=t,this._connectEvent=new ni,this._sessions=[],this._changeEvent=new ni,this.default=Er.EMPTY,e.manager.on["ar.reality.connect"]=function(e){var t=e.id,n=i.sessionService.createSessionPort(t),r=i.sessionService.createSynchronousMessageChannel(),o="ar.reality.message.route."+t,s="ar.reality.message.send."+t,a="ar.reality.close."+t;r.port1.onmessage=function(e){i.sessionService.manager.send(o,e.data)},i.sessionService.manager.on[s]=function(e){r.port1.postMessage(e)},i.sessionService.manager.on[a]=function(){n.close()},n.connectEvent.addEventListener(function(){i.sessions.push(n),i.connectEvent.raiseEvent(n),n.closeEvent.addEventListener(function(){var e=i.sessions.indexOf(n);i.sessions.splice(e,1)})}),i.sessionService.manager.closeEvent.addEventListener(function(){n.close(),delete i.sessionService.manager.on[s],delete i.sessionService.manager.on[a]}),n.open(r.port2,i.sessionService.configuration)},this.contextService.updateEvent.addEventListener(function(){var t=i.contextService.serializedFrameState;if(e.isRealityViewer&&e.manager.isConnected)if(e.manager.isConnected&&0===e.manager.version[0]){var n=t.eye=t.eye||{};n.pose=t.entities["ar.user"],n.viewport=Kt.clone(t.subviews[0].viewport,n.viewport),delete t.entities["ar.user"],e.manager.send("ar.reality.frameState",t),t.entities["ar.user"]=n.pose}else e.manager.send("ar.reality.frameState",t);var r=t.reality,o=i._current;o!==r&&(i._current=r,i.changeEvent.raiseEvent({previous:o,current:r}))})}return Object.defineProperty(e.prototype,"connectEvent",{get:function(){return this._connectEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sessions",{get:function(){return this._sessions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeEvent",{get:function(){return this._changeEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),e.prototype.install=function(e){var t=this;return this.sessionService.manager.whenConnected().then(function(){return t.sessionService.manager.version[0]>=1!=!0?Promise.reject(new Error("Not supported")):t.sessionService.manager.request("ar.reality.install",{uri:e})})},e.prototype.uninstall=function(e){var t=this;return this.sessionService.manager.whenConnected().then(function(){return t.sessionService.manager.version[0]>=1!=!0?Promise.reject(new Error("Not supported")):t.sessionService.manager.request("ar.reality.uninstall",{uri:e})})},e.prototype.request=function(e){var t=this;return this.sessionService.manager.whenConnected().then(function(){return t.sessionService.manager.version[0]>=1!=!0?t.sessionService.manager.request("ar.reality.desired",{reality:{uri:e}}):t.sessionService.manager.request("ar.reality.request",{uri:e})})},e.prototype.setDesired=function(e){this.request(e?e.uri:Er.DEFAULT)},e.prototype.setStageGeolocation=function(e,t){return e.supportsProtocol("ar.configureStage")?e.request("ar.configureStage.setStageGeolocation",{geolocation:t}):Promise.reject("Protocol `ar.configureStage` is not supported")},e.prototype.resetStageGeolocation=function(e){return e.supportsProtocol("ar.configureStage")?e.request("ar.configureStage.resetStageGeolocation"):Promise.reject("Protocol `ar.configureStage` is not supported")},e}()),Qr([H("request"),Yr("design:type",Function),Yr("design:paramtypes",[Object]),Yr("design:returntype",void 0)],Gr.prototype,"setDesired",null),e("RealityService",Gr=Qr([N(),Yr("design:paramtypes",["function"==typeof(Hr=void 0!==ki&&ki)&&Hr||Object,"function"==typeof(Wr=void 0!==sr&&sr)&&Wr||Object])],Gr)),e("RealityServiceProvider",Vr=function(){function e(e,t,i,n,r,o,s,a){var u=this;this.sessionService=e,this.realityService=t,this.contextService=i,this.deviceService=n,this.viewServiceProvider=r,this.visibilityServiceProvider=o,this.focusServiceProvider=s,this.realityViewerFactory=a,this.installedEvent=new ni,this.uninstalledEvent=new ni,this._viewerByURI=new Map,this._installersByURI=new Map,this._scratchFrustum=new je,e.ensureIsRealityManager(),e.manager.connectEvent.addEventListener(function(){setTimeout(function(){!u._presentingRealityViewer&&u.realityService.default&&u._handleRequest(u.sessionService.manager,{uri:u.realityService.default})})}),e.manager.closeEvent.addEventListener(function(){u._viewerByURI.forEach(function(e){e.destroy()})}),e.connectEvent.addEventListener(function(e){Xt.isRealityViewer(e.info.role)||(e.on["ar.reality.install"]=function(t){var i=t.uri;return u._handleInstall(e,i)},e.on["ar.reality.uninstall"]=function(t){var i=t.uri;return u._handleUninstall(e,i)},e.on["ar.reality.request"]=function(t){return u._handleRequest(e,t)},e.on["ar.reality.desired"]=function(t){var i=t.reality;if(i&&i.type){var n=i.type;i.uri=i.uri||"reality:"+n,"hosted"===n&&(i.uri=i.url)}u._handleRequest(e,{uri:i.uri})})}),this.viewServiceProvider.forwardedUIEvent.addEventListener(function(e){var t=u._presentingRealityViewer&&u._presentingRealityViewer.session;t&&u.viewServiceProvider.sendUIEventToSession(e,t)})}return Object.defineProperty(e.prototype,"presentingRealityViewer",{get:function(){return this._presentingRealityViewer},enumerable:!0,configurable:!0}),e.prototype._handleInstall=function(e,t){var i=this,n=this._installersByURI.get(t);if(n)n.add(e);else{var r=this.realityViewerFactory.createRealityViewer(t);this._viewerByURI.set(t,r),(n=new Set).add(e),this._installersByURI.set(t,n),r.connectEvent.addEventListener(function(n){if(!i.sessionService.manager.isClosed){if(!Xt.isRealityViewer(n.info.role))throw n.sendError({message:"Expected a reality viewer"}),n.close(),new Error('The application "'+n.uri+'" does not support being loaded as a reality viewer');if(n.on["ar.reality.frameState"]=function(e){if(i._presentingRealityViewer===r){if(0===n.version[0]){var t=i.deviceService.frameState;if(!t)return;e.viewport=Jt.clone(t.viewport,e.viewport),e.subviews=ii.clone(t.subviews,e.subviews);var o=e.eye,s=o.pose,a=o.fov;e.entities=e.entities||{},e.entities["ar.user"]=s;for(var u=0,c=e.subviews;u=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},io=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},no="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='768' height='768'%3E%3Cpath fill='white' d='M448.5 96H672v223.5h-64.5v-114L294 519l-45-45 313.5-313.5h-114V96zm159 511.5V384H672v223.5c0 34.5-30 64.5-64.5 64.5h-447c-36 0-64.5-30-64.5-64.5v-447C96 126 124.5 96 160.5 96H384v64.5H160.5v447h447z'/%3E%3C/svg%3E\")",ro="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cpath fill='white' d='M256 96C144.34 96 47.56 161.02 0 256c47.56 94.98 144.34 160 256 160 111.656 0 208.438-65.02 256-160-47.558-94.98-144.344-160-256-160zm126.225 84.852c30.08 19.187 55.57 44.887 74.717 75.148-19.146 30.26-44.637 55.96-74.718 75.148C344.427 355.258 300.78 368 256 368s-88.43-12.743-126.226-36.852c-30.08-19.186-55.57-44.886-74.716-75.148 19.146-30.262 44.637-55.962 74.717-75.148 1.96-1.25 3.938-2.46 5.93-3.65C130.725 190.866 128 205.612 128 221c0 70.69 57.308 128 128 128s128-57.31 128-128c0-15.387-2.726-30.134-7.704-43.8 1.99 1.19 3.97 2.402 5.93 3.652zM256 208c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48z'/%3E%3C/svg%3E\")",oo="url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20245.82%20141.73%22%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill%3A%23fff%3Bfill-rule%3Aevenodd%3B%7D%3C%2Fstyle%3E%3C%2Fdefs%3E%3Ctitle%3Emask%3C%2Ftitle%3E%3Cpath%20class%3D%22a%22%20d%3D%22M175.56%2C111.37c-22.52%2C0-40.77-18.84-40.77-42.07S153%2C27.24%2C175.56%2C27.24s40.77%2C18.84%2C40.77%2C42.07S198.08%2C111.37%2C175.56%2C111.37ZM26.84%2C69.31c0-23.23%2C18.25-42.07%2C40.77-42.07s40.77%2C18.84%2C40.77%2C42.07-18.26%2C42.07-40.77%2C42.07S26.84%2C92.54%2C26.84%2C69.31ZM27.27%2C0C11.54%2C0%2C0%2C12.34%2C0%2C28.58V110.9c0%2C16.24%2C11.54%2C30.83%2C27.27%2C30.83H99.57c2.17%2C0%2C4.19-1.83%2C5.4-3.7L116.47%2C118a8%2C8%2C0%2C0%2C1%2C12.52-.18l11.51%2C20.34c1.2%2C1.86%2C3.22%2C3.61%2C5.39%2C3.61h72.29c15.74%2C0%2C27.63-14.6%2C27.63-30.83V28.58C245.82%2C12.34%2C233.93%2C0%2C218.19%2C0H27.27Z%22%2F%3E%3C%2Fsvg%3E)",so='url(\'data:image/svg+xml;utf8,\')',ao="url(data:image/jpeg;base64,/9j/4A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ytxCwOI1HDK5Vh6MpII5BIqf7Xa/8/Nv/AN/o/wD4qv56nCfPL3J/E/svv6ea+8/RYSXLHVfDHquy/wA0WKKr/a7X/n5t/wDv9H/8VR9rtf8An5t/+/0f/wAVU8k/5J/+Av8Ay8195XNH+Zfev66r7yxRVf7Xa/8APzb/APf6P/4qj7Xa/wDPzb/9/o//AIqjkn/JP/wF/wCXmvvDmj/MvvX9dV95ZzwQQrKysjo4DI6MMMjqeGRgSGU8EV5Z4l8N/wBmFr/T1ZtLZv3sPLPprtjCsTy9m7HEUpyYSRFKcFGr0r7Xa/8APzb/APf6P/4qj7XaEMrXFq6spV0eWJkdGGGR1LEMrDhlIIIr1smzXGZPiVWoxnOjPljicO1JQr00+9nyVYXbpVUm4NtNSpznCfFjcJQxtLkm4xmrunUVnKEnb/wKL0Uo3SkrbSUZR8HorpvEmjW2ms19YTwvpzsPMhE0bSWEjE/Kfmy1mx4ikPMJxHIcbWrkftdr/wA/Nv8A9/o//iq/ZcDjKOY4anisK5Tp1FqnG06c1bmpVY68tSF1dXaacZQcoSjKXxdehUw1WVGqkpR1TTvGcX8M4P7UZdHve8WlJNKxRVf7Xa/8/Nv/AN/o/wD4qj7Xa/8APzb/APf6P/4quzll/LL7n/XVfeY3/r+vVfeWKKr/AGu1/wCfm3/7/R//ABVH2u1/5+bf/v8AR/8AxVHLL+WX3P8ArqvvC/8AX9eq+8sUVX+12v8Az82//f6P/wCKo+12v/Pzb/8Af6P/AOKo5Zfyy+5/11X3hf8Ar+vVfeWKr3f/AB63P/XvN/6Laj7Xa/8APzb/APf6P/4qoLq6tWtrhRc22WglAzPCoyY2AyzOFUepJAHUkCnCMuaPuv4o9H3X+aFdd1/X/Do//9k=)",e("DefaultUIService",uo=function(){function e(e,t,i,n,r){var o=this;this.sessionService=e,this.viewService=t,this.realityService=i,this.realityServiceProvider=n,this.deviceService=r,this.realityViewerItemElements=new Map,this.menuItems=[],this.menuOpen=!1;var s=this.sessionService.configuration.defaultUI||{};if(document&&!s.disable){var a=document.createElement("style");a.type="text/css",document.head.insertBefore(a,document.head.firstChild);var u=a.sheet;u.insertRule("\n .argon-ui {\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n }\n ",u.cssRules.length),u.insertRule("\n .argon-ui-button {\n background-image: "+ao+";\n width: 144px;\n height: 144px;\n }\n ",u.cssRules.length),u.insertRule("\n .argon-ui-blur {\n background-color: rgba(238, 178, 17, 0.7);\n -webkit-backdrop-filter: blur(5px);\n }\n ",u.cssRules.length),u.insertRule("\n .argon-ui-box {\n webkit-user-select: none;\n ms-user-select: none;\n user-select: none;\n }\n ",u.cssRules.length),u.insertRule("\n .argon-ui-list-item {\n align-items: center;\n background: white;\n border-top: 1px solid lightgrey;\n display: flex;\n height: 20px;\n justify-content: space-between;\n padding: 20px;\n width: 100%;\n cursor: pointer;\n font-family: 'Sans-serif';\n font-size: 12px;\n color: #5F5F5F;\n box-sizing: border-box;\n }\n ",u.cssRules.length),u.insertRule("\n .argon-ui-list-item:hover {\n background: rgb(240,240,240);\n }\n ",u.cssRules.length),this.element=document.createElement("div"),this.element.className="argon-ui",this.element.style.position="absolute",this.element.style.bottom="0",this.element.style.right="0",this.element.style.width="100%",this.element.style.height="100%",this.element.style.userSelect="none",this.element.style.webkitUserSelect="none",this.element.style.zIndex="10",this.element.style.pointerEvents="none",this.element.style.overflow="hidden",this.viewService.element.appendChild(this.element),this.sessionService.manager.closeEvent.addEventListener(function(){o.element.remove()});var c=document.createElement("div");c.className="argon-overlay",c.style.width="100%",c.style.height="100%",c.style.display="flex",c.style.alignItems="center",c.style.pointerEvents="auto",c.addEventListener("click",function(e){e.target===c&&(c.remove(),e.stopPropagation())}),this.realityViewerSelectorElement=document.createElement("div"),this.realityViewerSelectorElement.classList.add("argon-ui-box"),this.realityViewerSelectorElement.classList.add("argon-ui-blur"),this.realityViewerSelectorElement.style.maxWidth="300px",this.realityViewerSelectorElement.style.maxHeight="70%",this.realityViewerSelectorElement.style.width="70%",this.realityViewerSelectorElement.style.margin="auto",this.realityViewerSelectorElement.style.padding="20px",this.realityViewerSelectorElement.style.boxShadow="rgb(102,102,102) 0 5px 20px",c.appendChild(this.realityViewerSelectorElement);var l=document.createElement("h2");l.innerText="Select a Reality",l.style.fontFamily="Sans-Serif",l.style.color="white",l.style.marginTop="0",l.style.flex="0 1 auto",this.realityViewerSelectorElement.appendChild(l),this.realityViewerListElement=document.createElement("div"),this.realityViewerListElement.style.flex="1 1 auto",this.realityViewerListElement.style.maxHeight="250px",this.realityViewerListElement.style.overflowY="auto",this.realityViewerSelectorElement.appendChild(this.realityViewerListElement),this.realityServiceProvider.installedEvent.addEventListener(function(e){var t=e.viewer,i=t.uri,n=document.createElement("div");n.innerText=i,t.connectEvent.addEventListener(function(e){n.innerText=e.info.title||i}),n.className="argon-ui-list-item",o.realityViewerItemElements.set(i,n),o.realityViewerListElement.appendChild(n),n.addEventListener("click",function(){o.realityService.request(i),c.remove()})}),this.realityServiceProvider.uninstalledEvent.addEventListener(function(e){var t=e.viewer.uri,i=o.realityViewerItemElements.get(t);o.realityViewerItemElements.delete(t),i.remove()}),this.menuBackgroundElement=document.createElement("div"),this.menuBackgroundElement.className="argon-ui-blur",this.menuBackgroundElement.style.position="absolute",this.menuBackgroundElement.style.bottom="-150px",this.menuBackgroundElement.style.right="-150px",this.menuBackgroundElement.style.width="300px",this.menuBackgroundElement.style.height="300px",this.menuBackgroundElement.style.transform="scale(0.1)",this.menuBackgroundElement.style.transition="transform 0.3s, opacity 0.3s",this.menuBackgroundElement.style.borderRadius="150px",this.menuBackgroundElement.style.zIndex="-2",this.element.appendChild(this.menuBackgroundElement);var h=document.createElement("div");this.element.appendChild(h),h.className="argon-ui-button",h.style.position="absolute",h.style.bottom="0",h.style.right="0",h.style.transform="scale(0.36)",h.style.transformOrigin="110% 110%",h.style.borderRadius="72px",h.style.cursor="pointer",h.style.pointerEvents="auto",h.style.zIndex="-1",this.openInArgonMenuItem=this._createMenuItem(no,"Open in Argon"),Ii?(this.openInArgonMenuItem.addEventListener("touchstart",function(){V()}),this.openInArgonMenuItem.addEventListener("touchend",function(){confirm("Oops, it looks like you are still here! You may not have the Argon Browser installed. Would you like to install it now?")&&G(),o.menuOpen=!1,o.updateMenu()})):Oi&&(this.openInArgonMenuItem.onclick=function(){V()}),this.hmdMenuItem=this._createMenuItem(oo,"Toggle HMD",function(){o.menuOpen=!1,o.updateMenu(),o.deviceService.isPresentingHMD?o.deviceService.exitPresentHMD():o.deviceService.requestPresentHMD()}),this.realityMenuItem=this._createMenuItem(ro,"Select Reality Viewer...",function(){o.menuOpen=!1,o.updateMenu(),c.style.backgroundColor="rgba(0,0,0,0.3)",o.element.appendChild(c)}),this.maximizeMenuItem=this._createMenuItem(so,"Toggle Immersive View",function(){o.menuOpen=!1,o.updateMenu(),o.viewService.viewportMode===Sn.IMMERSIVE?o.viewService.desiredViewportMode=Sn.EMBEDDED:o.viewService.desiredViewportMode=Sn.IMMERSIVE}),this.onSelect(h,this.toggleMenu.bind(this)),this.updateMenu(),this.viewService.viewportChangeEvent.addEventListener(function(){o.updateMenu()}),this.viewService.viewportModeChangeEvent.addEventListener(function(){o.updateMenu()})}}return e.prototype._createMenuItem=function(e,t,i){var n=document.createElement("div");return n.style.position="absolute",n.style.bottom="-20px",n.style.right="-20px",n.style.textAlign="left",n.style.width="40px",n.style.height="40px",n.style.fontFamily="Arial Black",n.style.color="black",n.style.cursor="default",n.style.textShadow="-1px -1px 0px #545454, 1px -1px 0px #545454, -1px 1px 0px #545454, 1px 1px 0px #545454",n.style.transition="transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s",n.style.opacity="0",n.style.pointerEvents="none",n.style.transformOrigin="50% 50%",n.style.backgroundImage=e,n.style.backgroundSize="100% 100%",n.style.backgroundRepeat="no-repeat",n.style.zIndex="2",n.style.cursor="pointer",this.element.appendChild(n),n.title=t,i&&this.onSelect(n,i),n.addEventListener("mouseenter",function(){n.style.color="#eeb211"}),n.addEventListener("mouseleave",function(){n.style.color="white"}),n},e.prototype.onSelect=function(e,t){e.addEventListener("touchend",function(e){e.preventDefault(),e.stopPropagation(),t()}),e.addEventListener("click",function(e){e.stopPropagation(),t()})},e.prototype.toggleMenu=function(){this.menuOpen?this.menuOpen=!1:this.menuOpen=!0,this.updateMenu()},e.prototype._hideMenuItem=function(e){e.style.transform="scale(0.2)",e.style.opacity="0",e.style.pointerEvents="none"},e.prototype.updateMenu=function(){var e=this;this.deviceService.isPresentingHMD&&Ii?this.element.style.display="none":this.element.style.display="block",this.menuItems=[],this.menuItems.push(null),Ii||Oi?this.menuItems.push(this.openInArgonMenuItem):this._hideMenuItem(this.openInArgonMenuItem);var t=this.viewService.element.parentElement,i=t?t.clientWidth:0,n=t?t.clientHeight:0;if(window.innerWidth!==i||window.innerHeight!==n?this.menuItems.push(this.maximizeMenuItem):this._hideMenuItem(this.maximizeMenuItem),Ii||"getVRDisplays"in navigator?this.menuItems.push(this.hmdMenuItem):this._hideMenuItem(this.hmdMenuItem),this.realityViewerItemElements.size>0?this.menuItems.push(this.realityMenuItem):this._hideMenuItem(this.realityMenuItem),this.menuItems.push(null),this.menuOpen){var r=this.menuItems.length;this.menuItems.forEach(function(e,t){if(e){var i=t/(r-1)*(Math.PI/2+Math.PI/8)-Math.PI/16,n=100*Math.cos(i),o=100*Math.sin(i);e.style.transform="translateX("+-n+"px) translateY("+-o+"px) scale(0.8)",e.style.opacity="1",e.style.pointerEvents="auto"}}),this.menuBackgroundElement.style.transform="scale(1)"}else this.menuItems.forEach(function(t,i){t&&e._hideMenuItem(t)}),this.menuBackgroundElement.style.transform="scale(0.1)"},e}()),e("DefaultUIService",uo=to([N(),io("design:paramtypes",["function"==typeof(co=void 0!==ki&&ki)&&co||Object,"function"==typeof(lo=void 0!==_n&&_n)&&lo||Object,"function"==typeof(ho=void 0!==Gr&&Gr)&&ho||Object,"function"==typeof(fo=void 0!==Vr&&Vr)&&fo||Object,"function"==typeof(po=void 0!==Gn&&Gn)&&po||Object])],uo)),go=function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},Mo=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},yo=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("VuforiaServiceProvider",Ao=function(){return function(e){e.isRealityManager&&(e.connectEvent.addEventListener(function(e){e.on["ar.vuforia.isAvailable"]=function(){return Promise.resolve({available:!1})}}),e.connectEvent.addEventListener(function(e){e.on["ar.vuforia.init"]=function(){return Promise.reject(new Error("Vuforia is not supported on this system"))}}))}}()),e("VuforiaServiceProvider",Ao=Mo([D(ki),yo("design:paramtypes",["function"==typeof(To=void 0!==ki&&ki)&&To||Object])],Ao)),function(e){e[e.MaxSimultaneousImageTargets=0]="MaxSimultaneousImageTargets",e[e.MaxSimultaneousObjectTargets=1]="MaxSimultaneousObjectTargets",e[e.DelayedLoadingObjectDatasets=2]="DelayedLoadingObjectDatasets"}(wo||e("VuforiaHint",wo={})),e("VuforiaService",Eo=function(){function e(e){this.sessionService=e}return e.prototype.isAvailable=function(){return this.sessionService.manager.request("ar.vuforia.isAvailable").then(function(e){return e.available})},e.prototype.init=function(e){var t=this;if("string"==typeof e&&(e={encryptedLicenseData:e}),!e.encryptedLicenseData||"string"!=typeof e.encryptedLicenseData)throw new Error("options.encryptedLicenseData is required.");return this.sessionService.manager.request("ar.vuforia.init",e).then(function(){return new mo(t.sessionService.manager)})},e.prototype.initWithUnencryptedKey=function(e){var t=this;return"string"==typeof e&&(e={key:e}),this.sessionService.manager.request("ar.vuforia.init",e).then(function(){return new mo(t.sessionService.manager)})},e}()),e("VuforiaService",Eo=Mo([D(ki,Ao),yo("design:paramtypes",["function"==typeof(Io=void 0!==ki&&ki)&&Io||Object])],Eo)),e("VuforiaAPI",mo=function(){function e(e){this.manager=e,this.objectTracker=new No(e)}return e.prototype.setHint=function(e,t){var i={hint:e,value:t};return this.manager.request("ar.vuforia.setHint",i).then(function(e){return e.result})},e}()),e("VuforiaTracker",vo=function(){return function(){}}()),e("VuforiaObjectTracker",No=function(e){function t(t){var i=e.call(this)||this;return i.managerSession=t,i.dataSetLoadEvent=new ni,i.dataSetUnloadEvent=new ni,i.dataSetActivateEvent=new ni,i.dataSetDeactivateEvent=new ni,i._deprecatedDataSetInstanceMap=new Map,t.on["ar.vuforia.objectTrackerLoadDataSetEvent"]=function(e){i.dataSetLoadEvent.raiseEvent(e)},t.on["ar.vuforia.objectTrackerUnloadDataSetEvent"]=function(e){i.dataSetUnloadEvent.raiseEvent(e)},t.on["ar.vuforia.objectTrackerActivateDataSetEvent"]=function(e){var t=i._deprecatedDataSetInstanceMap.get(e.id);t?(t._onActivate(),i.dataSetActivateEvent.raiseEvent(t)):i.dataSetActivateEvent.raiseEvent(e)},t.on["ar.vuforia.objectTrackerDeactivateDataSetEvent"]=function(e){var t=i._deprecatedDataSetInstanceMap.get(e.id);t?(t._onDeactivate(),i.dataSetActivateEvent.raiseEvent(t)):i.dataSetDeactivateEvent.raiseEvent(e)},i}return go(t,e),t.prototype.createDataSet=function(e){var t=this;return e&&window.document&&(e=B(e)),this.managerSession.request("ar.vuforia.objectTrackerCreateDataSet",{url:e}).then(function(e){var i=new Do(e.id,t.managerSession);return t._deprecatedDataSetInstanceMap.set(e.id,i),i})},t.prototype.createDataSetFromURL=function(e){return e&&window.document&&(e=B(e)),this.managerSession.request("ar.vuforia.objectTrackerCreateDataSet",{url:e}).then(function(e){return e.id})},Object.defineProperty(t.prototype,"createDataSetFromURI",{get:function(){return this.createDataSetFromURL},enumerable:!0,configurable:!0}),t.prototype.loadDataSet=function(e){var t=this;return this.managerSession.whenConnected().then(function(){return 0==t.managerSession.version[0]?t.managerSession.request("ar.vuforia.dataSetLoad",{id:e}):t.managerSession.request("ar.vuforia.objectTrackerLoadDataSet",{id:e})})},t.prototype.unloadDataSet=function(e){var t=this;return this.managerSession.whenConnected().then(function(){return 0==t.managerSession.version[0]?t.deactivateDataSet(e):t.managerSession.request("ar.vuforia.objectTrackerUnloadDataSet",{id:e})})},t.prototype.activateDataSet=function(e){return e=e instanceof Do?e.id:e,this.managerSession.request("ar.vuforia.objectTrackerActivateDataSet",{id:e})},t.prototype.deactivateDataSet=function(e){return e=e instanceof Do?e.id:e,this.managerSession.request("ar.vuforia.objectTrackerDeactivateDataSet",{id:e})},t}(vo)),Mo([H("createDataSetFromURL"),yo("design:type",Function),yo("design:paramtypes",[String]),yo("design:returntype",Object)],No.prototype,"createDataSet",null),Mo([H("createDataSetFromURL"),yo("design:type",Object),yo("design:paramtypes",[])],No.prototype,"createDataSetFromURI",null),e("DeprecatedVuforiaDataSet",Do=function(){function e(e,t){this.id=e,this.managerSession=t,this._isActive=!1}return e.prototype._onActivate=function(){this._isActive=!0},e.prototype._onDeactivate=function(){this._isActive=!1},e.prototype.fetch=function(){return this.managerSession.request("ar.vuforia.dataSetFetch",{id:this.id})},e.prototype.load=function(){var e=this;return this.managerSession.request("ar.vuforia.dataSetLoad",{id:this.id}).then(function(t){return e._trackables=t,t})},e.prototype.isActive=function(){return this._isActive},e.prototype.getTrackables=function(){return this._trackables},e}()),Oo=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},So=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},e("ArgonSystemProvider",Lo=function(){return function(e,t,i,n,r,o,s,a,u){this.entity=e,this.context=t,this.focus=i,this.device=n,this.visibility=r,this.reality=o,this.view=s,this.vuforia=a,this.permission=u}}()),e("ArgonSystemProvider",Lo=Oo([N(),So("design:paramtypes",["function"==typeof(bo=void 0!==cn&&cn)&&bo||Object,"function"==typeof(Co=void 0!==ar&&ar)&&Co||Object,"function"==typeof(Ro=void 0!==Mn&&Mn)&&Ro||Object,"function"==typeof(zo=void 0!==Vn&&Vn)&&zo||Object,"function"==typeof(Po=void 0!==vn&&vn)&&Po||Object,"function"==typeof(Uo=void 0!==Vr&&Vr)&&Uo||Object,"function"==typeof(Bo=void 0!==jn&&jn)&&Bo||Object,"function"==typeof(ko=void 0!==Ao&&Ao)&&ko||Object,"function"==typeof(Fo=void 0!==en&&en)&&Fo||Object])],Lo)),e("ArgonSystem",_o=Qo=function(){function e(e,t,i,n,r,o,s,a,u,c,l){this.container=e,this.entity=t,this.context=i,this.device=n,this.focus=r,this.reality=o,this.session=s,this.view=a,this.visibility=u,this.vuforia=c,this.permission=l,Qo.instance||(Qo.instance=this),this.container.hasResolver(Lo)&&(this._provider=this.container.get(Lo)),this._setupDOM(),this.session.connect()}return e.prototype._setupDOM=function(){var e=this,t=this.container.get(Ln).element;if(t&&"undefined"!=typeof document&&document.createElement){if(t.classList.add("argon-view"),Ii){var i=function(e){e.touches.length>1&&e.preventDefault()};t.addEventListener("touchmove",i,!0),this.session.manager.closeEvent.addEventListener(function(){t.removeEventListener("touchmove",i)})}this.session.isRealityViewer&&document.documentElement.classList.add("argon-reality-viewer"),this.session.isRealityAugmenter&&document.documentElement.classList.add("argon-reality-augmenter"),this.session.isRealityManager&&document.documentElement.classList.add("argon-reality-manager"),this.focus.focusEvent.addEventListener(function(){document.documentElement.classList.remove("argon-no-focus"),document.documentElement.classList.remove("argon-blur"),document.documentElement.classList.add("argon-focus")}),this.focus.blurEvent.addEventListener(function(){document.documentElement.classList.remove("argon-focus"),document.documentElement.classList.add("argon-blur"),document.documentElement.classList.add("argon-no-focus")}),this.view.viewportModeChangeEvent.addEventListener(function(t){switch(t){case Sn.EMBEDDED:var i=e.view.element.style;i.position="",i.left="0px",i.bottom="0px",i.width="100%",i.height="100%",document.documentElement.classList.remove("argon-immersive");break;case Sn.IMMERSIVE:document.documentElement.classList.add("argon-immersive")}}),this.session.isRealityViewer?this.session.manager.on["ar.view.uievent"]=ci():(_(this.view,function(t){e.session.manager.isConnected&&e.session.manager.version[0]>=1&&e.session.manager.send("ar.view.forwardUIEvent",t)}),this.view._watchEmbeddedViewport()),this.context.renderEvent.addEventListener(function(){if(e.view.autoStyleLayerElements){var t=e.view.layers;if(!t)return;for(var i=e.view.viewport,n=0,r=0,o=t;r