UNPKG

awv3

Version:
1 lines 265 kB
!function(e,t){"use strict";function n(e,t){return t={exports:{}},e(t,t.exports),t.exports}function i(e){for(var t=window.location.search.substring(1).split("&"),n=0;n<t.length;n++){var i=t[n].split("=");if(i[0]==e)return i[1]}}function r(e){return("string"==typeof e||e instanceof String)&&(e=document.querySelector(e)),e}function o(e,t,n,i){var r,o,a,s=["-moz-","-webkit-","-o-","-ms-","-khtml-"];e.style[t]="",a=e.style[t];try{if(e.style[t]=n,e.style[t]!==a)return}catch(e){}for(r=0;r<s.length;++r){o=s[r]+n;try{if(e.style[t]=o,e.style[t]!==a)return}catch(e){}}e.style[t]=i}function a(e){console.error(e)}function s(e){throw new Error(e)}function c(t,n,i,r){Array.isArray(n)&&1==n.length&&"object"===Zn(n[0])&&(n=h(t,i.join("."),n[0],!0)),i=void 0===i?[]:i,r=void 0===r?{}:r;var o=void 0,a=void 0;for(var s in n)n.hasOwnProperty(s)&&(o=s,a=n[s],i.push(o),"object"===(void 0===a?"undefined":Zn(a))&&null!==a?a instanceof e.Euler?(r[o+".x"]=a.x,r[o+".y"]=a.y,r[o+".z"]=a.z):r=c(t,a,i,r):"number"==typeof a&&(r[i.join(".")]=a),i.pop());return r}function u(e,t){return t.split(".").reduce(function(e,t){return e[t]},e)}function l(e,t){var n=t.split(/\.(?=[^.]+$)/);return 1==n.length?[e,n[0],n.length]:[u(e,n[0]),n[1],n.length]}function h(e,t,n,i){var r={},o=[],a=l(e,t);return a[0][a[1]].forEach(function(e){if(Array.isArray(n)){var t={};n.forEach(function(n){var i={};i[n]=e[n],Object.assign(t,i)}),o.push(t)}else"object"===(void 0===n?"undefined":Zn(n))&&o.push(n)}),1==a[2]||i?r=o:r[a[1]]=o,r}function f(t,n){return n.parent===t&&t instanceof e.Scene||t.view?n.traverse(function(n){n.scene=t instanceof e.Scene?t:t.scene,n.view=t.view,n.canvas=t.canvas,n.emit(e.Object3D.Events.Lifecycle.ViewFound,n.view)}):n.traverse(function(e){e.scene=void 0,e.view=void 0,e.canvas=void 0}),n}function d(e,t){e.material&&t(e);var n=!0,i=!1,r=void 0;try{for(var o,a=e.children[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;s.updateParentMaterials&&d(s,t)}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}}function p(e,t){for(var n=["polygonOffsetFactor","polygonOffsetUnits"],i=0;i<n.length;i++){var r=n[i];void 0!==t[r]&&(e[r]=t[r],delete t[r])}}function v(t,n){var i=n.options,r=t.id,o=t.line.groups,a=new e.LineSegments;return a.renderOrder=i.renderOrder.LineSegments,a.userData={id:0,parentId:r,refs:o.map(function(e){return e.meta})},a.geometry=new e.BufferGeometry,a.geometry.addAttribute("position",new e.BufferAttribute(t.line.vertices,3)),a.geometry.groups=[],t.line.distances&&a.geometry.addAttribute("lineDistance",new e.BufferAttribute(t.line.distances,1)),i.materials.multi?a.material=o.map(function(t){y(t.meta),a.geometry.groups.push({start:t.start/3,count:t.count/3,materialIndex:t.index,meta:t.meta});var n=i.lineShader,r=i.lineShaderOptions;"DASHED"===t.meta.material.linetype&&(n=e.LineDashedMaterial,r=Yn({},r,{dashSize:2,gapSize:2})),t.meta.material.color=r.color||new(Function.prototype.bind.apply(e.Color,[null].concat(Jn(t.meta.material.color)))),t.meta.material.opacity=void 0!==r.opacity?r.opacity:t.meta.material.opacity;var o=new n(Yn({},r,{color:t.meta.material.color,opacity:t.meta.material.opacity}));return o.meta=t.meta,o.parent=a,o}):(t.properties.material.color=i.lineShaderOptions.color||t.properties.material.color,t.properties.material.opacity=void 0!==i.lineShaderOptions.opacity?i.lineShaderOptions.opacity:t.properties.material.opacity,a.material=new i.lineShader(Yn({},i.lineShaderOptions,{color:t.properties.material.color,opacity:t.properties.material.opacity})),a.material.parent=a),g(a,t,o)}function m(t,n){var i=n.options,r=t.id,o=t.mesh.groups,a=new e.Mesh;if(i.materials.shadows&&(a.castShadow=!0,a.receiveShadow=!0),a.renderOrder=i.renderOrder.Mesh,a.userData={id:0,parentId:r,refs:o.map(function(e){return e.meta})},i.materials.multi){a.geometry=new e.Geometry;for(var s=0,c=t.mesh.vertices.length/3;s<c;s++)a.geometry.vertices.push(new e.Vector3(t.mesh.vertices[3*s+0],t.mesh.vertices[3*s+1],t.mesh.vertices[3*s+2]));for(var u=void 0,l=void 0,h=void 0,f=void 0,d=0,p=o[d++],v=0,m=t.mesh.indices.length/3;v<m;v++)p.start+p.count<=3*v&&(p=o[d++]),u=t.mesh.indices[3*v+0],l=t.mesh.indices[3*v+1],h=t.mesh.indices[3*v+2],f=t.mesh.normals?[new e.Vector3(t.mesh.normals[3*u+0],t.mesh.normals[3*u+1],t.mesh.normals[3*u+2]),new e.Vector3(t.mesh.normals[3*l+0],t.mesh.normals[3*l+1],t.mesh.normals[3*l+2]),new e.Vector3(t.mesh.normals[3*h+0],t.mesh.normals[3*h+1],t.mesh.normals[3*h+2])]:void 0,a.geometry.faces.push(new e.Face3(u,l,h,f,void 0,p.index));t.mesh.normals||a.geometry.computeVertexNormals()}else a.geometry=new e.BufferGeometry,a.geometry.addAttribute("position",new e.BufferAttribute(t.mesh.vertices,3)),a.geometry.setIndex(new e.BufferAttribute(t.mesh.indices,1)),t.mesh.normals?a.geometry.addAttribute("normal",new e.BufferAttribute(t.mesh.normals,3)):a.geometry.computeVertexNormals(),!!t.mesh.uvs&&a.geometry.addAttribute("uv",new e.BufferAttribute(t.mesh.uvs,2));return i.materials.multi?a.material=o.map(function(t){y(t.meta),t.meta.material.color=i.meshShaderOptions.color||new(Function.prototype.bind.apply(e.Color,[null].concat(Jn(t.meta.material.color)))),t.meta.material.opacity=void 0!==i.meshShaderOptions.opacity?i.meshShaderOptions.opacity:t.meta.material.opacity;var n=new i.meshShader(Yn({},i.meshShaderOptions,{color:t.meta.material.color,opacity:t.meta.material.opacity}));return n.meta=t.meta,n.parent=a,n}):(t.properties.material.color=i.meshShaderOptions.color||t.properties.material.color,t.properties.material.opacity=void 0!==i.meshShaderOptions.opacity?i.meshShaderOptions.opacity:t.properties.material.opacity,a.material=new i.meshShader(Yn({},i.meshShaderOptions,t.properties.material,{color:t.properties.material.color,opacity:t.properties.material.opacity})),a.material.parent=a),g(a,t,o)}function y(t){t.box=new e.Box3(new(Function.prototype.bind.apply(e.Vector3,[null].concat(Jn(t.min)))),new(Function.prototype.bind.apply(e.Vector3,[null].concat(Jn(t.max))))),delete t.min,delete t.max;for(var n in t){var i=t[n];Array.isArray(i)&&3==i.length&&(t[n]=(new e.Vector3).fromArray(i))}}function g(e,t,n){return t.properties.box?(e.geometry.boundingBox=t.properties.box,e.geometry.boundingSphere=t.properties.sphere):(e.geometry.computeBoundingBox(),e.geometry.computeBoundingSphere()),e}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return e=Yn({callback:"function"==typeof e?e:function(){return null},session:void 0,id:ri()},ni.all,e),{id:e.id,resolve:t,reject:n,promises:[],command:i||"",options:e,array:[],map:{},models:[],patches:[],results:[],errors:[],bytes:0,bytesUncompressed:0,socketTime:null,time:0}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a("Context undefined");if(Array.isArray(e)){if(1===e.length)return _(e[0]);var t=b();return t.array=e,_(t)}if(delete e.resolve,delete e.reject,delete e.promises,delete e.mapitem,e.array.length>0&&0===e.models.length){var n=!0,i=!1,r=void 0;try{for(var o,s=e.array[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var c=o.value;c.mapitem&&(e.map[c.mapitem]=c);var u=_(c);u.models.forEach(function(t){return e.models.push(t)}),u.patches.forEach(function(t){return e.patches.push(t)})}}catch(e){i=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw r}}}return e.firstModel=void 0,e.models.length>0&&(e.firstModel=e.models[0]),e.firstResult=void 0,e.results.length>0&&(e.firstResult=e.results[0].result),e}function w(t,n){var i=n.models,r=n.options,o=t.properties,a=o.min,s=o.max,c=o.meta,u=o.material,l=u.color,h=u.emissive,f=(u.opacity,u.map),d=new e.Group;if(d.name="geometry",d.userData={id:t.id,meta:c},l&&(t.properties.material.color=new e.Color(l[0]/255,l[1]/255,l[2]/255)),h&&(t.properties.material.emissive=new e.Color(h[0]/255,h[1]/255,h[2]/255)),f&&r.session){var p=null;if(t.properties.material.map){var y=t.properties.material.map;if(!(p=r.session.materials[y])){var g=session.globals.resources[y];(p=r.session.materials[y]=(new e.TextureLoader).setCrossOrigin("anonymous").load(g)).wrapS=e.RepeatWrapping,p.wrapT=e.RepeatWrapping}}t.properties.material.map=p}if(a&&s&&(t.properties.box=new e.Box3(new(Function.prototype.bind.apply(e.Vector3,[null].concat(Jn(a)))),new(Function.prototype.bind.apply(e.Vector3,[null].concat(Jn(s))))),t.properties.sphere=t.properties.box.getBoundingSphere(),d.bounds=d.bounds||{box:new e.Box3,sphere:new e.Sphere},d.bounds.box=t.properties.box,d.bounds.sphere=t.properties.sphere),void 0!==t.mesh){var b=m(t,n);b&&(d.add(b),r.callback({type:ma.Factory.Mesh,model:d,data:b,meta:b.meta,material:b.material}))}if(void 0!==t.line){var _=v(t,n);_&&(d.add(_),r.callback({type:ma.Factory.Line,model:d,data:_,meta:_.meta,material:_.material}))}if(t.cones){var w=!0,k=!1,S=void 0;try{for(var O,A=t.cones[Symbol.iterator]();!(w=(O=A.next()).done);w=!0){var x=O.value;r.callback({type:ma.Factory.Cone,model:d,data:x,meta:x.meta,material:x.material})}}catch(e){k=!0,S=e}finally{try{!w&&A.return&&A.return()}finally{if(k)throw S}}}if(t.vertices){var E=new va,j=!0,P=!1,T=void 0;try{for(var M,D=t.vertices[Symbol.iterator]();!(j=(M=D.next()).done);j=!0){var C=M.value;E.points.push({id:C.id,meta:Yn({},C.meta,{type:"point",position:new(Function.prototype.bind.apply(e.Vector3,[null].concat(Jn(C.p)))),layer:t.properties.layer})})}}catch(e){P=!0,T=e}finally{try{!j&&D.return&&D.return()}finally{if(P)throw T}}r.callback({type:ma.Factory.Vertex,model:d,data:E}),d.add(E)}if(t.coordinateSystems){var R=!0,F=!1,I=void 0;try{for(var L,B=t.coordinateSystems[Symbol.iterator]();!(R=(L=B.next()).done);R=!0){var N=L.value;r.callback({type:ma.Factory.Csys,model:d,data:N,meta:N.meta})}}catch(e){F=!0,I=e}finally{try{!R&&B.return&&B.return()}finally{if(F)throw I}}}if(t.text){var z=!0,Z=!1,V=void 0;try{for(var H,U=t.text[Symbol.iterator]();!(z=(H=U.next()).done);z=!0){var q=H.value;r.callback({type:ma.Factory.Text,model:d,data:q,meta:q.meta})}}catch(e){Z=!0,V=e}finally{try{!z&&U.return&&U.return()}finally{if(Z)throw V}}}i.push(d),r.callback({type:ma.Factory.Model,model:d,data:t,meta:c})}function k(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return t.reduce(function(t,r){return e.addEventListener(r,n,i),Yn({},t,qn({},r,{type:r,fulfilled:!1,detach:function(){return e.removeEventListener(r,n)}}))},{})}function S(e){var t=e.target||e.srcElement;t.__resizeRAF__&&ja(t.__resizeRAF__),t.__resizeRAF__=Ea(function(){var n=t.__resizeTrigger__;n.__resizeListeners__.forEach(function(t){t.call(n,e)})})}function O(e){var t=Wa.call(e,Ja),n=e[Ja];try{e[Ja]=void 0;var i=!0}catch(e){}var r=Ka.call(e);return i&&(t?e[Ja]=n:delete e[Ja]),r}function A(e){return Qa.call(e)}function x(e){return null==e?void 0===e?ts:es:ns&&ns in Object(e)?O(e):A(e)}function E(e){return null!=e&&"object"==typeof e}function j(e){if(!E(e)||x(e)!=rs)return!1;var t=is(e);if(null===t)return!0;var n=cs.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ss.call(n)==us}function P(e,t,n){function i(){d===f&&(d=f.slice())}function r(){return h}function o(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return i(),d.push(e),function(){if(t){t=!1,i();var n=d.indexOf(e);d.splice(n,1)}}}function a(e){if(!j(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,h=l(h,e)}finally{p=!1}for(var t=f=d,n=0;n<t.length;n++)(0,t[n])();return e}function s(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,a({type:fs.INIT})}function c(){var e,t=o;return e={subscribe:function(e){function n(){e.next&&e.next(r())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[hs]=function(){return this},e}var u;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(P)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,h=t,f=[],d=f,p=!1;return a({type:fs.INIT}),u={dispatch:a,subscribe:o,getState:r,replaceReducer:s},u[hs]=c,u}function T(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function M(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:fs.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+fs.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function D(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,i,r){var o=e(n,i,r),a=o.dispatch,s=[],c={getState:o.getState,dispatch:function(e){return a(e)}};return s=t.map(function(e){return e(c)}),a=D.apply(void 0,s)(o.dispatch),ds({},o,{dispatch:a})}}}function R(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function F(){this.__data__=[],this.size=0}function I(e,t){return e===t||e!==e&&t!==t}function L(e,t){for(var n=e.length;n--;)if(ys(e[n][0],t))return n;return-1}function B(e){var t=this.__data__,n=gs(t,e);return!(n<0)&&(n==t.length-1?t.pop():bs.call(t,n,1),--this.size,!0)}function N(e){var t=this.__data__,n=gs(t,e);return n<0?void 0:t[n][1]}function z(e){return gs(this.__data__,e)>-1}function Z(e,t){var n=this.__data__,i=gs(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function H(){this.__data__=new Os,this.size=0}function U(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function q(e){return this.__data__.get(e)}function Y(e){return this.__data__.has(e)}function G(e){var t=Rs.call(e,Is),n=e[Is];try{e[Is]=void 0;var i=!0}catch(e){}var r=Fs.call(e);return i&&(t?e[Is]=n:delete e[Is]),r}function X(e){return Bs.call(e)}function $(e){return null==e?void 0===e?Zs:zs:Vs&&Vs in Object(e)?Ls(e):Ns(e)}function W(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function K(e){if(!Us(e))return!1;var t=Hs(e);return t==Ys||t==Gs||t==qs||t==Xs}function J(e){return!!Ks&&Ks in e}function Q(e){if(null!=e){try{return Qs.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ee(e){return!(!Us(e)||Js(e))&&($s(e)?sc:nc).test(ec(e))}function te(e,t){return null==e?void 0:e[t]}function ne(e,t){var n=uc(e,t);return cc(n)?n:void 0}function ie(){this.__data__=fc?fc(null):{},this.size=0}function re(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function oe(e){var t=this.__data__;if(fc){var n=t[e];return n===vc?void 0:n}return mc.call(t,e)?t[e]:void 0}function ae(e){var t=this.__data__;return fc?void 0!==t[e]:gc.call(t,e)}function se(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=fc&&void 0===t?_c:t,this}function ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ue(){this.size=0,this.__data__={hash:new kc,map:new(hc||Os),string:new kc}}function le(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function he(e,t){var n=e.__data__;return Oc(t)?n["string"==typeof t?"string":"hash"]:n.map}function fe(e){var t=Ac(this,e).delete(e);return this.size-=t?1:0,t}function de(e){return Ac(this,e).get(e)}function pe(e){return Ac(this,e).has(e)}function ve(e,t){var n=Ac(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ye(e,t){var n=this.__data__;if(n instanceof Os){var i=n.__data__;if(!hc||i.length<Mc-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Tc(i)}return n.set(e,t),this.size=n.size,this}function ge(e){var t=this.__data__=new Os(e);this.size=t.size}function be(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function _e(e,t,n){"__proto__"==t&&Fc?Fc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function we(e,t,n){var i=e[t];Lc.call(e,t)&&ys(i,n)&&(void 0!==n||t in e)||Ic(e,t,n)}function ke(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?Ic(n,s,c):Bc(n,s,c)}return n}function Se(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Oe(e){return null!=e&&"object"==typeof e}function Ae(e){return Zc(e)&&Hs(e)==Vc}function xe(){return!1}function Ee(e,t){return!!(t=null==t?Kc:t)&&("number"==typeof e||Jc.test(e))&&e>-1&&e%1==0&&e<t}function je(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=eu}function Pe(e){return Zc(e)&&tu(e.length)&&!!nu[Hs(e)]}function Te(e){return function(t){return e(t)}}function Me(e,t){var n=Xc(e),i=!n&&Gc(e),r=!n&&!i&&Wc(e),o=!n&&!i&&!r&&su(e),a=n||i||r||o,s=a?zc(e.length,String):[],c=s.length;for(var u in e)!t&&!cu.call(e,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Qc(u,c))||s.push(u);return s}function De(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lu)}function Ce(e,t){return function(n){return e(t(n))}}function Re(e){if(!hu(e))return du(e);var t=[];for(var n in Object(e))pu.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fe(e){return null!=e&&tu(e.length)&&!$s(e)}function Ie(e){return mu(e)?uu(e):vu(e)}function Le(e,t){return e&&Nc(t,yu(t),e)}function Be(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}function Ne(e){if(!Us(e))return bu(e);var t=hu(e),n=[];for(var i in e)("constructor"!=i||!t&&_u.call(e,i))&&n.push(i);return n}function ze(e){return mu(e)?uu(e,!0):wu(e)}function Ze(e,t){return e&&Nc(t,ku(t),e)}function Ve(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function He(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function Ue(){return[]}function qe(e,t){return Nc(e,Tu(e),t)}function Ye(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Ge(e,t){return Nc(e,Ru(e),t)}function Xe(e,t,n){var i=t(e);return Xc(e)?i:Du(i,n(e))}function $e(e){return Iu(e,yu,Tu)}function We(e){return Iu(e,ku,Ru)}function Ke(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Wu.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Je(e){var t=new e.constructor(e.byteLength);return new Ju(t).set(new Ju(e)),t}function Qe(e,t){var n=t?Qu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function et(e,t){return e.set(t[0],t[1]),e}function tt(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function nt(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function it(e,t,n){var i=t?n(il(e),rl):il(e);return nl(i,tl,new e.constructor)}function rt(e){var t=new e.constructor(e.source,al.exec(e));return t.lastIndex=e.lastIndex,t}function ot(e,t){return e.add(t),e}function at(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function st(e,t,n){var i=t?n(ul(e),ll):ul(e);return nl(i,cl,new e.constructor)}function ct(e){return dl?Object(dl.call(e)):{}}function ut(e,t){var n=t?Qu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function lt(e,t,n,i){var r=e.constructor;switch(t){case Ol:return Qu(e);case ml:case yl:return new r(+e);case Al:return el(e,i);case xl:case El:case jl:case Pl:case Tl:case Ml:case Dl:case Cl:case Rl:return vl(e,i);case gl:return ol(e,i,n);case bl:case kl:return new r(e);case _l:return sl(e);case wl:return hl(e,i,n);case Sl:return pl(e)}}function ht(e){return"function"!=typeof e.constructor||hu(e)?{}:Ll(Cu(e))}function ft(e,t,n,i,r,o){var a,s=t&Nl,c=t&zl,u=t&Zl;if(n&&(a=r?n(e,i,r,o):n(e)),void 0!==a)return a;if(!Us(e))return e;var l=Xc(e);if(l){if(a=Ku(e),!s)return Au(e,a)}else{var h=$u(e),f=h==Hl||h==Ul;if(Wc(e))return Ou(e,s);if(h==ql||h==Vl||f&&!r){if(a=c||f?{}:Bl(e),!s)return c?Fu(e,Su(a,e)):Mu(e,gu(a,e))}else{if(!Yl[h])return r?e:{};a=Fl(e,h,ft,s)}}o||(o=new Cc);var d=o.get(e);if(d)return d;o.set(e,a);var p=u?c?Bu:Lu:c?keysIn:yu,v=l?void 0:p(e);return Rc(v||e,function(i,r){v&&(i=e[r=i]),Bc(a,r,ft(i,t,n,r,e,o))}),a}function dt(e){return"symbol"==typeof e||Zc(e)&&Hs(e)==Xl}function pt(e,t){if(Xc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$l(e))||(Kl.test(e)||!Wl.test(e)||null!=t&&e in Object(t))}function vt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Ql);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(vt.Cache||Tc),n}function mt(e){var t=eh(e,function(e){return n.size===th&&n.clear(),e}),n=t.cache;return t}function yt(e){if("string"==typeof e)return e;if(Xc(e))return vs(e,yt)+"";if($l(e))return ch?ch.call(e):"";var t=e+"";return"0"==t&&1/e==-ah?"-0":t}function gt(e){return null==e?"":uh(e)}function bt(e,t){return Xc(e)?e:Jl(e,t)?[e]:oh(lh(e))}function _t(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function wt(e){if("string"==typeof e||$l(e))return e;var t=e+"";return"0"==t&&1/e==-dh?"-0":t}function kt(e,t){for(var n=0,i=(t=hh(t,e)).length;null!=e&&n<i;)e=e[ph(t[n++])];return n&&n==i?e:void 0}function St(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}function Ot(e,t){return t.length<2?e:vh(e,mh(t,0,-1))}function At(e,t){return t=hh(t,e),null==(e=yh(e,t))||delete e[ph(fh(t))]}function xt(e){if(!Zc(e)||Hs(e)!=bh)return!1;var t=Cu(e);if(null===t)return!0;var n=Sh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&kh.call(n)==Oh}function Et(e){return Ah(e)?void 0:e}function jt(e){return Xc(e)||Gc(e)||!!(Eh&&e&&e[Eh])}function Pt(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=jh),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Pt(s,t-1,n,i,r):Du(r,s):i||(r[r.length]=s)}return r}function Tt(e){return(null==e?0:e.length)?Ph(e,1):[]}function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n){return t=Dh(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Dh(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),Mh(e,this,s)}}function Ct(e){return function(){return e}}function Rt(e){return e}function Ft(e){var t=0,n=0;return function(){var i=Nh(),r=Bh-(i-n);if(n=i,r>0){if(++t>=Lh)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function It(e){return zh(Ch(e,void 0,Th),e+"")}function Lt(e){return Gl(e,Vh|Hh)}function Bt(e){return this.__data__.set(e,Gh),this}function Nt(e){return this.__data__.has(e)}function zt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Tc;++t<n;)this.add(e[t])}function Zt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function Vt(e,t){return e.has(t)}function Ht(e,t,n,i,r,o){var a=n&Qh,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,h=!0,f=n&ef?new Wh:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d=e[l],p=t[l];if(i)var v=a?i(p,d,l,t,e,o):i(d,p,l,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!Kh(t,function(e,t){if(!Jh(f,t)&&(d===e||r(d,e,n,i,o)))return f.push(t)})){h=!1;break}}else if(d!==p&&!r(d,p,n,i,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function Ut(e,t,n,i,r,o,a){switch(n){case vf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pf:return!(e.byteLength!=t.byteLength||!o(new Ju(e),new Ju(t)));case of:case af:case uf:return ys(+e,+t);case sf:return e.name==t.name&&e.message==t.message;case lf:case ff:return e==t+"";case cf:var s=il;case hf:var c=i&nf;if(s||(s=ul),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;i|=rf,a.set(e,t);var l=tf(s(e),s(t),i,r,o,a);return a.delete(e),l;case df:if(yf)return yf.call(e)==yf.call(t)}return!1}function qt(e,t,n,i,r,o){var a=n&bf,s=Lu(e),c=s.length;if(c!=Lu(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:_f.call(t,l)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var f=!0;o.set(e,t),o.set(t,e);for(var d=a;++u<c;){var p=e[l=s[u]],v=t[l];if(i)var m=a?i(v,p,l,t,e,o):i(p,v,l,e,t,o);if(!(void 0===m?p===v||r(p,v,n,i,o):m)){f=!1;break}d||(d="constructor"==l)}if(f&&!d){var y=e.constructor,g=t.constructor;y!=g&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g)&&(f=!1)}return o.delete(e),o.delete(t),f}function Yt(e,t,n,i,r,o){var a=Xc(e),s=Xc(t),c=a?Of:$u(e),u=s?Of:$u(t),l=(c=c==Sf?Af:c)==Af,h=(u=u==Sf?Af:u)==Af,f=c==u;if(f&&Wc(e)){if(!Wc(t))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new Cc),a||su(e)?tf(e,t,n,i,r,o):gf(e,t,c,n,i,r,o);if(!(n&kf)){var d=l&&xf.call(e,"__wrapped__"),p=h&&xf.call(t,"__wrapped__");if(d||p){var v=d?e.value():e,m=p?t.value():t;return o||(o=new Cc),r(v,m,n,i,o)}}return!!f&&(o||(o=new Cc),wf(e,t,n,i,r,o))}function Gt(e,t,n,i,r){return e===t||(null==e||null==t||!Zc(e)&&!Zc(t)?e!==e&&t!==t:Ef(e,t,n,i,Gt,r))}function Xt(e,t,n,i){var r=n.length,o=r,a=!i;if(null==e)return!o;for(e=Object(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<o;){var c=(s=n[r])[0],u=e[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in e))return!1}else{var h=new Cc;if(i)var f=i(u,l,c,e,t,h);if(!(void 0===f?jf(l,u,Pf|Tf,i,h):f))return!1}}return!0}function $t(e){return e===e&&!Us(e)}function Wt(e){for(var t=yu(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Df(r)]}return t}function Kt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Jt(e){var t=Cf(e);return 1==t.length&&t[0][2]?Rf(t[0][0],t[0][1]):function(n){return n===e||Mf(n,e,t)}}function Qt(e,t,n){var i=null==e?void 0:vh(e,t);return void 0===i?n:i}function en(e,t){return null!=e&&t in Object(e)}function tn(e,t,n){for(var i=-1,r=(t=hh(t,e)).length,o=!1;++i<r;){var a=ph(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&tu(r)&&Qc(a,r)&&(Xc(e)||Gc(e))}function nn(e,t){return null!=e&&Bf(e,t,Lf)}function rn(e,t){return Jl(e)&&Df(t)?Rf(ph(e),t):function(n){var i=If(n,e);return void 0===i&&i===t?Nf(n,e):jf(t,i,zf|Zf)}}function on(e){return function(t){return null==t?void 0:t[e]}}function an(e){return function(t){return vh(t,e)}}function sn(e){return Jl(e)?Hf(ph(e)):Uf(e)}function cn(e){return"function"==typeof e?e:null==e?Fh:"object"==typeof e?Xc(e)?Vf(e[0],e[1]):Ff(e):qf(e)}function un(e){if("function"!=typeof e)throw new TypeError(Gf);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ln(e,t,n,i){if(!Us(e))return e;for(var r=-1,o=(t=hh(t,e)).length,a=o-1,s=e;null!=s&&++r<o;){var c=ph(t[r]),u=n;if(r!=a){var l=s[c];void 0===(u=i?i(l,c,s):void 0)&&(u=Us(l)?l:Qc(t[r+1])?[]:{})}Bc(s,c,u),s=s[c]}return e}function hn(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var a=t[i],s=vh(e,a);n(s,a)&&$f(o,hh(a,e),s)}return o}function fn(e,t){if(null==e)return{};var n=vs(Bu(e),function(e){return[e]});return t=Yf(t),Wf(e,n,function(e,n){return t(e,n[0])})}function dn(e,t){return Kf(e,Xf(Yf(t)))}function pn(e,t){var n=t.type,i=$n(t,["type"]);switch(n){case td.addChild:return Yn({},e,qn({},i.from,[].concat(Jn(e[i.from]),[i.child])));case td.removeChild:return Yn({},e,qn({},i.from,e[i.from].filter(function(e){return e!==i.child})));case td.removeAllChilds:return 0===e[i.from].length?e:Yn({},e,qn({},i.from,[]));case td.event:return Yn({},e,{lastEvent:i.event});default:return e}}function vn(e,t){var n=t.type,i=$n(t,["type"]);switch(n){case od.enable:return Yn({},e,{enabled:i.enabled,collapsed:!i.enabled||e.collapsed});case od.toggle:return Yn({},e,{enabled:!e.enabled,collapsed:!!e.enabled||e.collapsed});case od.collapse:return Yn({},e,{collapsed:i.collapsed});case od.toggleCollapse:return Yn({},e,{collapsed:!e.collapsed});case od.addElement:return Yn({},e,{elements:[].concat(Jn(e.elements),[i.element])});case od.removeElement:return Yn({},e,{elements:e.elements.filter(function(e){return e!==i.element})});case od.removeAllElements:return Yn({},e,{elements:[]});default:return e}}function mn(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function yn(e){return e!==e}function gn(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}function bn(e,t,n){return t===t?hd(e,t,n):ud(e,ld,n)}function _n(e,t){return!!(null==e?0:e.length)&&fd(e,t,0)>-1}function wn(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function kn(e,t,n,i){var r=-1,o=dd,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=vs(t,ru(n))),i?(o=pd,a=!1):t.length>=vd&&(o=Jh,a=!1,t=new Wh(t));e:for(;++r<s;){var l=e[r],h=null==n?l:n(l);if(l=i||0!==l?l:0,a&&h===h){for(var f=u;f--;)if(t[f]===h)continue e;c.push(l)}else o(t,h,i)||c.push(l)}return c}function Sn(e,t){return zh(Ch(e,t,Fh),e+"")}function On(e){return Zc(e)&&mu(e)}function An(e,t){var n=t.type,i=$n(t,["type"]);switch(n){case Sd.setTree:return Yn({},e,{tree:i.tree});case Sd.destroyTree:return Yn({},e,{tree:{1:{id:1,name:"",class:"",parent:null},root:1}});case Sd.patchTree:return Yn({},e,{tree:bd.apply_patch(e.tree,i.patches)});case Sd.message:return Yn({},e,{messages:[].concat(Jn(e.messages),[{type:i.type,message:i.message,reset:i.reset}])});case Sd.setActiveFeature:return Yn({},e,{activeFeature:i.feature});case Sd.setDefaultFeatureVisibility:return Yn({},e,{defaultFeatureVisibility:i.visible});case Sd.linkPlugins:return Yn({},e,{plugins:[].concat(Jn(e.plugins),Jn(Array.isArray(i.plugins)?i.plugins:[i.plugins]))});case Sd.unlinkPlugins:return Yn({},e,{plugins:gd.apply(void 0,[e.plugins].concat(Jn(Array.isArray(i.plugins)?i.plugins:[i.plugins])))});case Sd.updateTree:return Yn({},e,{tree:Yn({},e.tree,qn({},i.node,Yn({},e.tree[i.node],i.attributes)))});default:return e}}function xn(e,t){var n=b(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).options;return Yn({},n,t.session.options,{session:session,callback:function(e){if("Model"===e.type){t.session.options.updateMaterials&&e.model.updateMaterials(),t.session.options.centerGeometry&&e.model.centerGeometry();var i=e.model.userData.id,r=t.primitives[i];if(r){var o=r.references.slice();r.destroy(),t.primitives[i]=e.model,e.model.references=[],o.forEach(function(t){var n=t.parent;if(t.destroyAsync(),n){var i=e.model.clone();n.addAsync(i),e.model.references.push(i)}})}else t.primitives[i]=e.model,e.model.references=[],t.waiting[i]&&(t.waiting[i].forEach(function(t){return t(e.model)}),delete t.waiting[i],t.updateView())}n.callback(e),t.session.options.callback&&t.session.options.callback(e)}})}function En(e){if("number"==typeof e)return e;if($l(e))return Id;if(Us(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Us(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ld,"");var n=Nd.test(e);return n||zd.test(e)?Zd(e.slice(2),n?2:8):Bd.test(e)?Id:+e}function jn(e,t,n){function i(t){var n=f,i=d;return f=d=void 0,g=t,v=e.apply(i,n)}function r(e){return g=e,m=setTimeout(s,t),b?i(e):v}function o(e){var n=e-g,i=t-(e-y);return _?qd(i,p-n):i}function a(e){var n=e-y,i=e-g;return void 0===y||n>=t||n<0||_&&i>=p}function s(){var e=Fd();if(a(e))return c(e);m=setTimeout(s,o(e))}function c(e){return m=void 0,w&&f?i(e):(f=d=void 0,v)}function u(){void 0!==m&&clearTimeout(m),g=0,f=y=d=m=void 0}function l(){return void 0===m?v:c(Fd())}function h(){var e=Fd(),n=a(e);if(f=arguments,d=this,y=e,n){if(void 0===m)return r(y);if(_)return m=setTimeout(s,t),i(y)}return void 0===m&&(m=setTimeout(s,t)),v}var f,d,p,v,m,y,g=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new TypeError(Hd);return t=Vd(t)||0,Us(n)&&(b=!!n.leading,p=(_="maxWait"in n)?Ud(Vd(n.maxWait)||0,t):p,w="trailing"in n?!!n.trailing:w),h.cancel=u,h.flush=l,h}function Pn(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(Gd);return Us(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Yd(e,t,{leading:i,maxWait:t,trailing:r})}function Tn(e){var t=e.root,n=e.parent,i=e.clones,r=e.container,o=e.primitive,a=i[e.item]=o.clone();o.references.push(a);var s=[t];for(n=r;n&&n.userData&&n.userData.id;)s.push(n.userData.id),n=n.parent;s=s.reverse();var c=!0,u=!1,l=void 0;try{for(var h,f=a.children.keys()[Symbol.iterator]();!(c=(h=f.next()).done);c=!0){var d=h.value,p=a.children[d],v=o.children[d];if(p.material)if(Array.isArray(p.material))for(var m=0,y=p.material.length;m<y;m++){var g=v.material[m];(p.material[m]=g.clone(!0)).meta=Yn({},g.meta,{originalId:g.meta.id,id:[].concat(Jn(s),[g.meta.id]).join(",")})}else p.material=v.material.clone(!0),p.material.meta=Yn({},v.material.meta)}}catch(e){u=!0,l=e}finally{try{!c&&f.return&&f.return()}finally{if(u)throw l}}return r.reset(a).add(a)}function Mn(e,t){var n=!0,i=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=e.elements[s];if(c.type===cd.Type.Console)return e.store.dispatch(nd.update(c.id,{focus:!0})),e.store.dispatch(nd.event(c.id,event)),!0;if(c.type===cd.Type.Group&&Mn(e,c.children))return!0}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}return!1}function Dn(e){if(!(e.target instanceof HTMLInputElement))for(var t in this.plugins){var n=this.plugins[t];if(n.enabled&&!n.collapsed&&Mn(this,n.elements))return}}function Cn(e,t){return jf(e,t)}function Rn(e,t){pp=pp.then(function(){vp=e.id,mp[vp]&&Fn(vp),mp[vp]={stack:{},reusable:[],order:0,plugin:e},e.addElement(Nn(e,Bn(t())))})}function Fn(e){var t=mp[e];t&&(Object.keys(t.stack).forEach(function(e){return In(t,t.stack[e])}),t.plugin.destroyElements())}function In(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Array.isArray(t))return t.forEach(function(t){return In(e,t)});t&&(t.unsubscribes&&t.unsubscribes.forEach(function(e){return e()}),t.component&&(t.component.componentWillUnmount&&t.component.componentWillUnmount(),t.component=void 0),t.element&&((Array.isArray(t.element)?t.element:[t.element]).forEach(function(e){for(var n=t.parent;n&&!n.element;)n=n.parent;n&&n.element&&(n.element.children=n.element.children.filter(function(t){return t!=e.id})),e.destroy()}),t.element=void 0),n&&In(e,t.children,n),delete e.stack[t.tag])}function Ln(e,t){if(Array.isArray(e))return e.forEach(function(e){return Ln(e,t)});(Array.isArray(e)?e:[e]).forEach(function(e){e.el&&!(e.el.prototype instanceof cd)&&t.push(e),e.children&&Ln(e.children,t)})}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(Array.isArray(e))for(var n in e)e[n]=Bn(e[n]||{},[].concat(Jn(t),[parseInt(n)]));else e.depth=[].concat(Jn(t)),e.tag=e.hash+"."+e.depth.join("."),e.children&&(e.children=Bn(e.children,t));return e}function Nn(e,t,n){arguments.length>3&&void 0!==arguments[3]&&arguments[3];var i=mp[e.id];if(Array.isArray(t))return t.map(function(t){return Nn(e,t,n)});if(t&&t.el){var r=i.stack[t.tag],o=r||t;o.element;if(r&&Array.isArray(t.children)){var a=t.children.filter(Array.isArray);o.children.filter(Array.isArray).forEach(function(e,t){var n=a[t];e.forEach(function(t,r){void 0===(void 0!==t.props.key&&n.find(function(e){return t.props.key===e.props.key}))&&(In(i,i.stack[t.tag]),delete e[r])})})}var s=Array.isArray(t.children)?Th(t.children):t.children;n=n||o.parent;if(r||(i.stack[t.tag]=o),o.parent=n,!(o.el.prototype instanceof cd))return Nn(e,s,n);for(var c=Th(Nn(e,s,o)),u=0;u<c.length;u++)void 0===c[u]&&o.children[u]&&i.stack[o.children[u].tag]&&In(i,i.stack[o.children[u].tag]);var l=Yn({},t.props,{children:c.filter(function(e){return e}).map(function(e){return e.id})});if(r){var h=Object.keys(l).filter(function(e){return!fp(l[e],o.element[e])}).reduce(function(e,t){return Yn({},e,qn({},t,l[t]))},{});Object.keys(h).length>0&&o.element.update(h)}else o.element=new o.el(i.plugin,l);return o.children=t.children,o.unsubscribes&&o.unsubscribes.forEach(function(e){return e()}),o.unsubscribes=o.handlers.map(function(e){var n=e.charAt(2).toLowerCase()+e.substr(3);return o.element.observe(function(e){return e[n]},function(n,i){return t.events[e](n,i)})}),o.element}}t=t&&"default"in t?t.default:t;var zn,Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vn=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function i(r,o){try{var a=t[r](o),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){i("next",e)},function(e){i("throw",e)});e(s)}return i("next")})}},Hn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Un=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),qn=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Yn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gn=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(i)},Xn=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},$n=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},Wn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Kn=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Jn=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},Qn=function(){function e(){Hn(this,e),this._callbacks=void 0,this._inspectors=void 0}return Un(e,[{key:"subscribe",value:function(e,t,n){return this.on(e,t,n).removeListener.bind(this,e,t)}},{key:"once",value:function(e,t){this.on(e,t,{remove:!0})}},{key:"onFirst",value:function(e,t){this.on(e,t,{priority:1})}},{key:"onLast",value:function(e,t){this.on(e,t,{priority:-1})}},{key:"on",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e)){var i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var c=a.value;this.on(c,t,n)}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}else if("object"===(void 0===e?"undefined":Zn(e))){"object"===(void 0===t?"undefined":Zn(t))&&(n=t);var u=!0,l=!1,h=void 0;try{for(var f,d=Object.entries(e)[Symbol.iterator]();!(u=(f=d.next()).done);u=!0){var p=Kn(f.value,2),v=p[0];"function"==typeof(y=p[1])&&this.on(v,y,n)}}catch(e){l=!0,h=e}finally{try{!u&&d.return&&d.return()}finally{if(l)throw h}}}else if("string"==typeof e&&"function"==typeof t){var m=e,y=t,g=n,b=g.remove,_=void 0!==b&&b,w=g.priority,k=void 0===w?0:w,S=g.sync,O=void 0!==S&&S;this._callbacks||(this._callbacks={});var A=this._callbacks[m];if(A||(A=this._callbacks[m]=[]),A.indexOf(y)<0&&(y.remove=_,y.sync=O,y.priority=k,A.push(y),A.sort(function(e,t){return t.priority-e.priority}),this._inspectors)){var x=!0,E=!1,j=void 0;try{for(var P,T=this._inspectors[Symbol.iterator]();!(x=(P=T.next()).done);x=!0)(0,P.value)({action:"Add",type:m,callback:y})}catch(e){E=!0,j=e}finally{try{!x&&T.return&&T.return()}finally{if(E)throw j}}}}return this}},{key:"inspect",value:function(e){this._inspectors||(this._inspectors=[]),this._inspectors.push(e)}},{key:"removeListener",value:function(e,t){if(!Array.isArray(e)&&"object"===(void 0===e?"undefined":Zn(e))&&void 0===t){var n=!0,i=!1,r=void 0;try{for(var o,a=Object.entries(e)[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=Kn(o.value,2),c=s[0],u=s[1];this.removeListener(c,u)}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}return this}this._callbacks||(this._callbacks={}),e=Array.isArray(e)?e:[e];var l=!0,h=!1,f=void 0;try{for(var d,p=e[Symbol.iterator]();!(l=(d=p.next()).done);l=!0){var c=d.value,v=this._callbacks[c];if(v)if(t){var m=v.indexOf(t);if(m>-1&&v.splice(m,1),this._inspectors){var y=!0,g=!1,b=void 0;try{for(var _,w=this._inspectors[Symbol.iterator]();!(y=(_=w.next()).done);y=!0)(0,_.value)({action:"Remove",type:c,callback:t})}catch(e){g=!0,b=e}finally{try{!y&&w.return&&w.return()}finally{if(g)throw b}}}}else if(delete this._callbacks[c],this._inspectors){var k=!0,S=!1,O=void 0;try{for(var A,x=this._inspectors[Symbol.iterator]();!(k=(A=x.next()).done);k=!0)(0,A.value)({action:"Remove",type:c,callback:void 0})}catch(e){S=!0,O=e}finally{try{!k&&x.return&&x.return()}finally{if(S)throw O}}}}}catch(e){h=!0,f=e}finally{try{!l&&p.return&&p.return()}finally{if(h)throw f}}return this}},{key:"removeListeners",value:function(){this._callbacks=void 0}},{key:"removeInspectors",value:function(){this._inspectors=void 0}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this._callbacks||(this._callbacks={});var o=this._callbacks[e];o=o?[].concat(Jn(o)):[];var a=!0,s=!1,c=void 0;try{for(var u,l=o[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var h=u.value;h.sync&&(h.remove&&this.removeListener(e,h),h.call.apply(h,[this].concat(i)))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var f=Promise.resolve(),d=!0,p=!1,v=void 0;try{for(var m,y=o[Symbol.iterator]();!(d=(m=y.next()).done);d=!0)!function(){var n=m.value;n.sync||(f=f.then(function(){return n.remove&&t.removeListener(e,n),n.call.apply(n,[t].concat(i))}))}()}catch(e){p=!0,v=e}finally{try{!d&&y.return&&y.return()}finally{if(p)throw v}}return f}},{key:"bubble",value:function(e){this._callbacks||(this._callbacks={});for(var t=this._callbacks[e],n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(t)return this.emit.apply(this,[e].concat(i));if(this.parent){var o;return(o=this.parent).bubble.apply(o,[e].concat(i))}return Promise.resolve()}},{key:"findListener",value:function(e){return this._callbacks||(this._callbacks={}),this._callbacks[e]?this:this.parent?this.parent.find(e):void 0}},{key:"hasListener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this._callbacks||(this._callbacks={});var n=this._callbacks[e];return!(!n||t&&t!==n)}}],[{key:"mixin",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.hasListener=e.prototype.hasListener,t.subscribe=e.prototype.subscribe,t.on=e.prototype.on,t.once=e.prototype.once,t.onFirst=e.prototype.onFirst,t.onLast=e.prototype.onLast,t.inspect=e.prototype.inspect,t.removeListener=e.prototype.removeListener,t.removeListeners=e.prototype.removeListeners,t.removeInspectors=e.prototype.removeInspectors,t.emit=e.prototype.emit,t.bubble=e.prototype.bubble,t.findListener=e.prototype.findListener,n&&t.on.bind(t)(n)}}]),e}(),ei={resolution:1,up:[0,1,0],stats:!1,debug:!1,ambientIntensity:1,renderOrder:{Mesh:0,LineSegments:100},updateView:{focus:!1,zoom:!1,rotate:!1,layers:!1},materials:{lazy:!1,multi:!0,lineDistances:!0,shadows:!0,lights:!0},lineShader:e.LineBasicMaterial,lineShaderOptions:{transparent:!0,fog:!1},meshShader:e.MeshPhysicalMaterial,meshShaderOptions:(zn={transparent:!0,fog:!1,reflectivity:1,polygonOffset:!0,polygonOffsetFactor:1,polygonOffsetUnits:1,emissive:new e.Color(0)},qn(zn,"reflectivity",1),qn(zn,"metalness",.8),qn(zn,"roughness",.7),qn(zn,"clearCoat",.75),qn(zn,"clearCoatRoughness",.5),qn(zn,"envMapIntensity",.75),zn)},ti=function(e){function t(){Hn(this,t);var e=Wn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));for(var n in ei)!function(n){Object.defineProperty(e,n,{configurable:!0,get:function(){return ei[n]},set:function(i){return e.emit(t.Events.Changed,n,ei[n]=i)}})}(n);return e}return Xn(t,e),Un(t,[{key:"all",get:function(){return ei}}]),t}(Qn);ti.Events={Changed:"Changed"};var ni=new ti,ii="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ri=n(function(e,t){var n=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;(t=e.exports=function(){for(var e,n="",i=0;i<32;i++)e=16*t.random()|0,i>4&&i<21&&!(i%4)&&(n+="-"),n+=(12===i?4:16===i?3&e|8:e).toString(16);return n}).isUUID=function(e){return n.test(e)},t.random=function(){return Math.random()}}),oi=function(){function e(){Hn(this,e),this.stamp=void 0,this.total=void 0}return Un(e,[{key:"begin",value:function(){return this.stamp=performance.now(),this}},{key:"end",value:function(){return this.stamp=performance.now()-this.stamp,(!this.total||this.stamp>this.total)&&(this.total=this.stamp),this}},{key:"printCurrent",value:function(){return console.log(this.stamp),this}},{key:"printTotal",value:function(){return console.log(this.total),this}},{key:"clear",value:function(){return this.total=void 0,this}}]),e}(),ai=function(){function e(e,t){return e=e.toString(),String(t+e).slice(-t.length)}var t=performance.now(),n=Date.now();return{get:function(){var i=performance.now()-t,r=n+i,o=Math.trunc(r/6e4)%60,a=Math.trunc(r/1e3)%60,s=Math.trunc(1e3*r)%1e6;return e(o,"00")+":"+e(a,"00")+"."+e(s,"000000")}}}(),si=Object.freeze({url:i,queryDom:r,setPrefixedValue:o,Performance:oi,Timestamp:ai}),ci=Object.freeze({log:a,halt:s}),ui=Math.ceil,li=Math.floor,hi=function(e){return isNaN(e=+e)?0:(e>0?li:ui)(e)},fi=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},di=n(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),pi=n(function(e){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)}),vi=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},mi=function(e,t,n){if(vi(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},yi=function(e){return"object"==typeof e?null!==e:"function"==typeof e},gi=function(e){if(!yi(e))throw TypeError(e+" is not an object!");return e},bi=function(e){try{return!!e()}catch(e){return!0}},_i=!bi(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),wi=di.document,ki=yi(wi)&&yi(wi.createElement),Si=function(e){return ki?wi.createElement(e):{}},Oi=!_i&&!bi(function(){return 7!=Object.defineProperty(Si("div"),"a",{get:function(){return 7}}).a}),Ai=function(e,t){if(!yi(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!yi(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!yi(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!yi(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},xi=Object.defineProperty,Ei={f:_i?Object.defineProperty:function(e,t,n){if(gi(e),t=Ai(t,!0),gi(n),Oi)try{return xi(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},ji=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pi=_i?function(e,t,n){return Ei.f(e,t,ji(1,n))}:function(e,t,n){return e[t]=n,e},Ti=function(e,t,n){var i,r,o,a=e&Ti.F,s=e&Ti.G,c=e&