UNPKG

aframe-inspector

Version:
2 lines 438 kB
/*! For license information please see aframe-inspector.min.js.LICENSE.txt */ (()=>{var e,t,n={454:()=>{THREE.EditorControls=function(e,t){t=void 0!==t?t:document,this.enabled=!0,this.center=new THREE.Vector3,this.panSpeed=.001,this.zoomSpeed=.1,this.rotationSpeed=.005;var n=e,r=this,o=new THREE.Vector3,i=new THREE.Vector3,a=new THREE.Box3,s={NONE:-1,ROTATE:0,ZOOM:1,PAN:2},l=s.NONE,c=this.center,u=new THREE.Matrix3,p=new THREE.Vector2,d=new THREE.Vector2,f=new THREE.Spherical,h=new THREE.Sphere;this.isOrthographic=!1,this.rotationEnabled=!0,this.setCamera=function(e){"OrthographicCamera"===(n=e).type?(this.rotationEnabled=!1,this.isOrthographic=!0):(this.rotationEnabled=!0,this.isOrthographic=!1)},this.setCamera(e);var m={type:"change"};this.focus=function(e){if(this.isOrthographic)return;var t;a.setFromObject(e),!1!==a.isEmpty()||isNaN(a.min.x)?(c.setFromMatrixPosition(e.matrixWorld),t=.1):(a.getCenter(c),t=a.getBoundingSphere(h).radius),n.position.copy(e.localToWorld(new THREE.Vector3(0,c.y+.5*t,2.5*t)));const o=e.getWorldPosition(new THREE.Vector3);o.y=c.y,n.lookAt(o),r.dispatchEvent(m)},this.pan=function(e){var t;t=this.isOrthographic?Math.abs(n.right):n.position.distanceTo(c),e.multiplyScalar(t*r.panSpeed),e.applyMatrix3(u.getNormalMatrix(n.matrix)),n.position.add(e),c.add(e),r.dispatchEvent(m)};var g=1;function v(e){!1!==r.enabled&&(0===e.button?l=s.ROTATE:1===e.button?l=s.ZOOM:2===e.button&&(l=s.PAN),d.set(e.clientX,e.clientY),t.addEventListener("mousemove",y,!1),t.addEventListener("mouseup",A,!1),t.addEventListener("mouseout",A,!1),t.addEventListener("dblclick",A,!1))}function y(e){if(!1!==r.enabled){p.set(e.clientX,e.clientY);var t=p.x-d.x,n=p.y-d.y;l===s.ROTATE?r.rotate(i.set(-t*r.rotationSpeed,-n*r.rotationSpeed,0)):l===s.ZOOM?r.zoom(i.set(0,0,n)):l===s.PAN&&r.pan(i.set(-t,n,0)),d.set(e.clientX,e.clientY)}}function A(e){t.removeEventListener("mousemove",y,!1),t.removeEventListener("mouseup",A,!1),t.removeEventListener("mouseout",A,!1),t.removeEventListener("dblclick",A,!1),l=s.NONE}function b(e){e.preventDefault(),r.zoom(i.set(0,0,e.deltaY>0?1:-1))}function C(e){e.preventDefault()}this.setAspectRatio=function(e){g=e},this.zoom=function(e){var t=n.position.distanceTo(c);if(e.multiplyScalar(t*r.zoomSpeed),!(e.length()>t)){if(e.applyMatrix3(u.getNormalMatrix(n.matrix)),this.isOrthographic){let o=1;if(e.x+e.y+e.z<0&&(o=-1),e=t*r.zoomSpeed*o,n.left-=e*g,n.bottom-=e,n.right+=e*g,n.top+=e,n.left>=-1e-4)return;n.updateProjectionMatrix()}else n.position.add(e);r.dispatchEvent(m)}},this.rotate=function(e){this.rotationEnabled&&(o.copy(n.position).sub(c),f.setFromVector3(o),f.theta+=e.x,f.phi+=e.y,f.makeSafe(),o.setFromSpherical(f),n.position.copy(c).add(o),n.lookAt(c),r.dispatchEvent(m))},this.dispose=function(){t.removeEventListener("contextmenu",C,!1),t.removeEventListener("mousedown",v,!1),t.removeEventListener("wheel",b,!1),t.removeEventListener("mousemove",y,!1),t.removeEventListener("mouseup",A,!1),t.removeEventListener("mouseout",A,!1),t.removeEventListener("dblclick",A,!1),t.removeEventListener("touchstart",M,!1),t.removeEventListener("touchmove",k,!1)},t.addEventListener("contextmenu",C,!1),t.addEventListener("mousedown",v,!1),t.addEventListener("wheel",b,!1);var x=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],E=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3],w=null;function M(e){if(!1!==r.enabled){switch(e.touches.length){case 1:x[0].set(e.touches[0].pageX,e.touches[0].pageY,0),x[1].set(e.touches[0].pageX,e.touches[0].pageY,0);break;case 2:x[0].set(e.touches[0].pageX,e.touches[0].pageY,0),x[1].set(e.touches[1].pageX,e.touches[1].pageY,0),w=x[0].distanceTo(x[1])}E[0].copy(x[0]),E[1].copy(x[1])}}function k(e){if(!1!==r.enabled){switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:x[0].set(e.touches[0].pageX,e.touches[0].pageY,0),x[1].set(e.touches[0].pageX,e.touches[0].pageY,0),r.rotate(x[0].sub(a(x[0],E)).multiplyScalar(-r.rotationSpeed));break;case 2:x[0].set(e.touches[0].pageX,e.touches[0].pageY,0),x[1].set(e.touches[1].pageX,e.touches[1].pageY,0);var t=x[0].distanceTo(x[1]);r.zoom(i.set(0,0,w-t)),w=t;var n=x[0].clone().sub(a(x[0],E)),o=x[1].clone().sub(a(x[1],E));n.x=-n.x,o.x=-o.x,r.pan(n.add(o).multiplyScalar(.5))}E[0].copy(x[0]),E[1].copy(x[1])}function a(e,t){var n=t[0];for(var r in t)n.distanceTo(e)>t[r].distanceTo(e)&&(n=t[r]);return n}}t.addEventListener("touchstart",M,!1),t.addEventListener("touchmove",k,!1)},THREE.EditorControls.prototype=Object.create(THREE.EventDispatcher.prototype),THREE.EditorControls.prototype.constructor=THREE.EditorControls},324:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7);const o=new(n.n(r)());o.setMaxListeners(0);const i=o},259:()=>{!function(){"use strict";class e extends THREE.MeshBasicMaterial{constructor(e){super(),this.depthTest=!1,this.depthWrite=!1,this.fog=!1,this.side=THREE.FrontSide,this.transparent=!0,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}}}class t extends THREE.LineBasicMaterial{constructor(e){super(),this.depthTest=!1,this.depthWrite=!1,this.fog=!1,this.transparent=!0,this.linewidth=1,this.setValues(e),this.oldColor=this.color.clone(),this.oldOpacity=this.opacity,this.highlight=function(e){e?(this.color.setRGB(1,1,0),this.opacity=1):(this.color.copy(this.oldColor),this.opacity=this.oldOpacity)}}}var n=new e({visible:!1,transparent:!1});THREE.TransformGizmo=class extends THREE.Object3D{init(){this.handles=new THREE.Object3D,this.pickers=new THREE.Object3D,this.planes=new THREE.Object3D,this.add(this.handles),this.add(this.pickers),this.add(this.planes);var e=new THREE.PlaneGeometry(50,50,2,2),t=new THREE.MeshBasicMaterial({visible:!1,side:THREE.DoubleSide}),n={XY:new THREE.Mesh(e,t),YZ:new THREE.Mesh(e,t),XZ:new THREE.Mesh(e,t),XYZE:new THREE.Mesh(e,t)};for(var r in this.activePlane=n.XYZE,n.YZ.rotation.set(0,Math.PI/2,0),n.XZ.rotation.set(-Math.PI/2,0,0),n)n[r].name=r,this.planes.add(n[r]),this.planes[r]=n[r];var o=function(e,t){for(var n in e)for(r=e[n].length;r--;){var o=e[n][r][0],i=e[n][r][1],a=e[n][r][2];o.name=n,o.renderOrder=1/0,i&&o.position.set(i[0],i[1],i[2]),a&&o.rotation.set(a[0],a[1],a[2]),t.add(o)}};o(this.handleGizmos,this.handles),o(this.pickerGizmos,this.pickers),this.traverse((function(e){if(e instanceof THREE.Mesh){e.updateMatrix();var t=e.geometry.clone();t.applyMatrix4(e.matrix),e.geometry=t,e.position.set(0,0,0),e.rotation.set(0,0,0),e.scale.set(1,1,1)}}))}highlight(e){this.traverse((function(t){t.material&&t.material.highlight&&(t.name===e?t.material.highlight(!0):t.material.highlight(!1))}))}update(e,t){var n=new THREE.Vector3(0,0,0),r=new THREE.Vector3(0,1,0),o=new THREE.Matrix4;this.traverse((function(i){-1!==i.name.search("E")?i.quaternion.setFromRotationMatrix(o.lookAt(t,n,r)):-1===i.name.search("X")&&-1===i.name.search("Y")&&-1===i.name.search("Z")||i.quaternion.setFromEuler(e)}))}},THREE.TransformGizmoTranslate=class extends THREE.TransformGizmo{constructor(){super();var r=new THREE.ConeGeometry(.05,.2,12,1,!1);r.translate(0,.5,0);var o=new THREE.BufferGeometry;o.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var i=new THREE.BufferGeometry;i.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var a=new THREE.BufferGeometry;a.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(r,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(o,new t({color:16711680}))]],Y:[[new THREE.Mesh(r,new e({color:65280})),[0,.5,0]],[new THREE.Line(i,new t({color:65280}))]],Z:[[new THREE.Mesh(r,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(a,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.1,0),new e({color:16777215,opacity:.25})),[0,0,0],[0,0,0]]],XY:[[new THREE.Mesh(new THREE.PlaneGeometry(.29,.29),new e({color:16776960,opacity:.25})),[.15,.15,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneGeometry(.29,.29),new e({color:65535,opacity:.25})),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneGeometry(.29,.29),new e({color:16711935,opacity:.25})),[.15,0,.15],[-Math.PI/2,0,0]]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.OctahedronGeometry(.2,0),n)]],XY:[[new THREE.Mesh(new THREE.PlaneGeometry(.4,.4),n),[.2,.2,0]]],YZ:[[new THREE.Mesh(new THREE.PlaneGeometry(.4,.4),n),[0,.2,.2],[0,Math.PI/2,0]]],XZ:[[new THREE.Mesh(new THREE.PlaneGeometry(.4,.4),n),[.2,0,.2],[-Math.PI/2,0,0]]]},this.init()}setActivePlane(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.copy(n.extractRotation(this.planes.XY.matrixWorld)).invert()),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE),"XY"===e&&(this.activePlane=this.planes.XY),"YZ"===e&&(this.activePlane=this.planes.YZ),"XZ"===e&&(this.activePlane=this.planes.XZ)}},THREE.TransformGizmoRotate=class extends THREE.TransformGizmo{constructor(){super();var e=function(e,t,n){var r=new THREE.BufferGeometry,o=[];n=n||1;for(var i=0;i<=64*n;++i)"x"===t&&o.push(0,Math.cos(i/32*Math.PI)*e,Math.sin(i/32*Math.PI)*e),"y"===t&&o.push(Math.cos(i/32*Math.PI)*e,0,Math.sin(i/32*Math.PI)*e),"z"===t&&o.push(Math.sin(i/32*Math.PI)*e,Math.cos(i/32*Math.PI)*e,0);return r.setAttribute("position",new THREE.Float32BufferAttribute(o,3)),r};this.handleGizmos={X:[[new THREE.Line(new e(1,"x",.5),new t({color:16711680}))]],Y:[[new THREE.Line(new e(1,"y",.5),new t({color:65280}))]],Z:[[new THREE.Line(new e(1,"z",.5),new t({color:255}))]],E:[[new THREE.Line(new e(1.25,"z",1),new t({color:13421568}))]],XYZE:[[new THREE.Line(new e(1,"z",1),new t({color:7895160}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.TorusGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.TorusGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new THREE.Mesh(new THREE.TorusGeometry(1,.12,4,12,Math.PI),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new THREE.Mesh(new THREE.TorusGeometry(1.25,.12,2,24),n)]],XYZE:[[new THREE.Mesh(new THREE.TorusGeometry(1,.12,2,24),n)]]},this.pickerGizmos.XYZE[0][0].visible=!1,this.init()}setActivePlane(e){"E"===e&&(this.activePlane=this.planes.XYZE),"X"===e&&(this.activePlane=this.planes.YZ),"Y"===e&&(this.activePlane=this.planes.XZ),"Z"===e&&(this.activePlane=this.planes.XY)}update(e,t){super.update(e,t);var n=new THREE.Matrix4,r=new THREE.Euler(0,0,1),o=new THREE.Quaternion,i=new THREE.Vector3(1,0,0),a=new THREE.Vector3(0,1,0),s=new THREE.Vector3(0,0,1),l=new THREE.Quaternion,c=new THREE.Quaternion,u=new THREE.Quaternion,p=t.clone();r.copy(this.planes.XY.rotation),o.setFromEuler(r),n.makeRotationFromQuaternion(o).copy(n).invert(),p.applyMatrix4(n),this.traverse((function(e){o.setFromEuler(r),"X"===e.name&&(l.setFromAxisAngle(i,Math.atan2(-p.y,p.z)),o.multiplyQuaternions(o,l),e.quaternion.copy(o)),"Y"===e.name&&(c.setFromAxisAngle(a,Math.atan2(p.x,p.z)),o.multiplyQuaternions(o,c),e.quaternion.copy(o)),"Z"===e.name&&(u.setFromAxisAngle(s,Math.atan2(p.y,p.x)),o.multiplyQuaternions(o,u),e.quaternion.copy(o))}))}},THREE.TransformGizmoScale=class extends THREE.TransformGizmo{constructor(){super();var r=new THREE.BoxGeometry(.125,.125,.125);r.translate(0,.5,0);var o=new THREE.BufferGeometry;o.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,1,0,0],3));var i=new THREE.BufferGeometry;i.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,1,0],3));var a=new THREE.BufferGeometry;a.setAttribute("position",new THREE.Float32BufferAttribute([0,0,0,0,0,1],3)),this.handleGizmos={X:[[new THREE.Mesh(r,new e({color:16711680})),[.5,0,0],[0,0,-Math.PI/2]],[new THREE.Line(o,new t({color:16711680}))]],Y:[[new THREE.Mesh(r,new e({color:65280})),[0,.5,0]],[new THREE.Line(i,new t({color:65280}))]],Z:[[new THREE.Mesh(r,new e({color:255})),[0,0,.5],[Math.PI/2,0,0]],[new THREE.Line(a,new t({color:255}))]],XYZ:[[new THREE.Mesh(new THREE.BoxGeometry(.125,.125,.125),new e({color:16777215,opacity:.25}))]]},this.pickerGizmos={X:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[0,.6,0]]],Z:[[new THREE.Mesh(new THREE.CylinderGeometry(.2,0,1,4,1,!1),n),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new THREE.Mesh(new THREE.BoxGeometry(.4,.4,.4),n)]]},this.init()}setActivePlane(e,t){var n=new THREE.Matrix4;t.applyMatrix4(n.copy(n.extractRotation(this.planes.XY.matrixWorld)).invert()),"X"===e&&(this.activePlane=this.planes.XY,Math.abs(t.y)>Math.abs(t.z)&&(this.activePlane=this.planes.XZ)),"Y"===e&&(this.activePlane=this.planes.XY,Math.abs(t.x)>Math.abs(t.z)&&(this.activePlane=this.planes.YZ)),"Z"===e&&(this.activePlane=this.planes.XZ,Math.abs(t.x)>Math.abs(t.y)&&(this.activePlane=this.planes.YZ)),"XYZ"===e&&(this.activePlane=this.planes.XYZE)}},THREE.TransformControls=class extends THREE.Object3D{constructor(e,t){super(),t=void 0!==t?t:document,this.object=void 0,this.visible=!1,this.translationSnap=null,this.rotationSnap=null,this.space="world",this.size=1,this.axis=null;var n=e,r=this,o="translate",i=!1,a={translate:new THREE.TransformGizmoTranslate,rotate:new THREE.TransformGizmoRotate,scale:new THREE.TransformGizmoScale};for(var s in a){var l=a[s];l.visible=s===o,this.add(l)}var c={type:"change"},u={type:"mouseDown"},p={type:"mouseUp",mode:o},d={type:"objectChange"},f=new THREE.Raycaster,h=new THREE.Vector2,m=new THREE.Vector3,g=new THREE.Vector3,v=new THREE.Vector3,y=new THREE.Vector3,A=1,b=new THREE.Matrix4,C=new THREE.Vector3,x=new THREE.Matrix4,E=new THREE.Vector3,w=new THREE.Quaternion,M=new THREE.Euler,k=new THREE.Vector3(1,0,0),S=new THREE.Vector3(0,1,0),T=new THREE.Vector3(0,0,1),I=new THREE.Quaternion,O=new THREE.Quaternion,R=new THREE.Quaternion,N=new THREE.Quaternion,L=new THREE.Quaternion,j=new THREE.Vector3,z=new THREE.Vector3,P=new THREE.Matrix4,B=new THREE.Matrix4,D=new THREE.Vector3,F=new THREE.Vector3,_=new THREE.Euler,H=new THREE.Matrix4,U=new THREE.Vector3,V=new THREE.Euler;function W(e){if(void 0!==r.object&&!0!==i&&(void 0===e.button||0===e.button)){var t=G(e.changedTouches?e.changedTouches[0]:e,a[o].pickers.children),n=null;t&&(n=t.object.name,e.preventDefault()),r.axis!==n&&(r.axis=n,r.update(),r.dispatchEvent(c))}}function Y(e){if(void 0!==r.object&&!0!==i&&(void 0===e.button||0===e.button)){var t=e.changedTouches?e.changedTouches[0]:e;if(0===t.button||void 0===t.button){var n=G(t,a[o].pickers.children);if(n){e.preventDefault(),e.stopPropagation(),r.axis=n.object.name,r.dispatchEvent(u),r.update(),C.copy(U).sub(F).normalize(),a[o].setActivePlane(r.axis,C);var s=G(t,[a[o].activePlane]);s&&(j.copy(r.object.position),z.copy(r.object.scale),P.extractRotation(r.object.matrix),H.extractRotation(r.object.matrixWorld),B.extractRotation(r.object.parent.matrixWorld),D.setFromMatrixScale(x.copy(r.object.parent.matrixWorld).invert()),g.copy(s.point))}}i=!0}}function Q(e){if(void 0!==r.object&&null!==r.axis&&!1!==i&&(void 0===e.button||0===e.button)){var t=G(e.changedTouches?e.changedTouches[0]:e,[a[o].activePlane]);if(!1!==t){if(e.preventDefault(),e.stopPropagation(),m.copy(t.point),"translate"===o)m.sub(g),m.multiply(D),"local"===r.space&&(m.applyMatrix4(x.copy(H).invert()),-1===r.axis.search("X")&&(m.x=0),-1===r.axis.search("Y")&&(m.y=0),-1===r.axis.search("Z")&&(m.z=0),m.applyMatrix4(P),r.object.position.copy(j),r.object.position.add(m)),"world"!==r.space&&-1===r.axis.search("XYZ")||(-1===r.axis.search("X")&&(m.x=0),-1===r.axis.search("Y")&&(m.y=0),-1===r.axis.search("Z")&&(m.z=0),m.applyMatrix4(x.copy(B).invert()),r.object.position.copy(j),r.object.position.add(m)),null!==r.translationSnap&&("local"===r.space&&r.object.position.applyMatrix4(x.copy(H).invert()),-1!==r.axis.search("X")&&(r.object.position.x=Math.round(r.object.position.x/r.translationSnap)*r.translationSnap),-1!==r.axis.search("Y")&&(r.object.position.y=Math.round(r.object.position.y/r.translationSnap)*r.translationSnap),-1!==r.axis.search("Z")&&(r.object.position.z=Math.round(r.object.position.z/r.translationSnap)*r.translationSnap),"local"===r.space&&r.object.position.applyMatrix4(H));else if("scale"===o)m.sub(g),m.multiply(D),"local"===r.space&&("XYZ"===r.axis?(A=1+m.y/Math.max(z.x,z.y,z.z),r.object.scale.x=z.x*A,r.object.scale.y=z.y*A,r.object.scale.z=z.z*A):(m.applyMatrix4(x.copy(H).invert()),"X"===r.axis&&(r.object.scale.x=z.x*(1+m.x/z.x)),"Y"===r.axis&&(r.object.scale.y=z.y*(1+m.y/z.y)),"Z"===r.axis&&(r.object.scale.z=z.z*(1+m.z/z.z))));else if("rotate"===o)if(m.sub(F),m.multiply(D),E.copy(g).sub(F),E.multiply(D),"E"===r.axis)m.applyMatrix4(x.copy(b).invert()),E.applyMatrix4(x.copy(b).invert()),v.set(Math.atan2(m.z,m.y),Math.atan2(m.x,m.z),Math.atan2(m.y,m.x)),y.set(Math.atan2(E.z,E.y),Math.atan2(E.x,E.z),Math.atan2(E.y,E.x)),w.setFromRotationMatrix(x.copy(B).invert()),L.setFromAxisAngle(C,v.z-y.z),I.setFromRotationMatrix(H),w.multiplyQuaternions(w,L),w.multiplyQuaternions(w,I),r.object.quaternion.copy(w);else if("XYZE"===r.axis){var n=m.clone().cross(E).normalize();L.setFromEuler(M.set(n.x,n.y,n.z)),w.setFromRotationMatrix(x.copy(B).invert()),O.setFromAxisAngle(L,-m.clone().angleTo(E)),I.setFromRotationMatrix(H),w.multiplyQuaternions(w,O),w.multiplyQuaternions(w,I),r.object.quaternion.copy(w)}else"local"===r.space?(m.applyMatrix4(x.copy(H).invert()),E.applyMatrix4(x.copy(H).invert()),v.set(Math.atan2(m.z,m.y),Math.atan2(m.x,m.z),Math.atan2(m.y,m.x)),y.set(Math.atan2(E.z,E.y),Math.atan2(E.x,E.z),Math.atan2(E.y,E.x)),I.setFromRotationMatrix(P),null!==r.rotationSnap?(O.setFromAxisAngle(k,Math.round((v.x-y.x)/r.rotationSnap)*r.rotationSnap),R.setFromAxisAngle(S,Math.round((v.y-y.y)/r.rotationSnap)*r.rotationSnap),N.setFromAxisAngle(T,Math.round((v.z-y.z)/r.rotationSnap)*r.rotationSnap)):(O.setFromAxisAngle(k,v.x-y.x),R.setFromAxisAngle(S,v.y-y.y),N.setFromAxisAngle(T,v.z-y.z)),"X"===r.axis&&I.multiplyQuaternions(I,O),"Y"===r.axis&&I.multiplyQuaternions(I,R),"Z"===r.axis&&I.multiplyQuaternions(I,N),r.object.quaternion.copy(I)):"world"===r.space&&(v.set(Math.atan2(m.z,m.y),Math.atan2(m.x,m.z),Math.atan2(m.y,m.x)),y.set(Math.atan2(E.z,E.y),Math.atan2(E.x,E.z),Math.atan2(E.y,E.x)),w.setFromRotationMatrix(x.copy(B).invert()),null!==r.rotationSnap?(O.setFromAxisAngle(k,Math.round((v.x-y.x)/r.rotationSnap)*r.rotationSnap),R.setFromAxisAngle(S,Math.round((v.y-y.y)/r.rotationSnap)*r.rotationSnap),N.setFromAxisAngle(T,Math.round((v.z-y.z)/r.rotationSnap)*r.rotationSnap)):(O.setFromAxisAngle(k,v.x-y.x),R.setFromAxisAngle(S,v.y-y.y),N.setFromAxisAngle(T,v.z-y.z)),I.setFromRotationMatrix(H),"X"===r.axis&&w.multiplyQuaternions(w,O),"Y"===r.axis&&w.multiplyQuaternions(w,R),"Z"===r.axis&&w.multiplyQuaternions(w,N),w.multiplyQuaternions(w,I),r.object.quaternion.copy(w));"translate"===o?(r.object.position.x=parseFloat(r.object.position.x.toFixed(5)),r.object.position.y=parseFloat(r.object.position.y.toFixed(5)),r.object.position.z=parseFloat(r.object.position.z.toFixed(5))):"rotate"===o?(r.object.rotation.x=parseFloat(r.object.rotation.x.toFixed(5)),r.object.rotation.y=parseFloat(r.object.rotation.y.toFixed(5)),r.object.rotation.z=parseFloat(r.object.rotation.z.toFixed(5))):(r.object.scale.x=parseFloat(r.object.scale.x.toFixed(5)),r.object.scale.y=parseFloat(r.object.scale.y.toFixed(5)),r.object.scale.z=parseFloat(r.object.scale.z.toFixed(5))),r.update(),r.dispatchEvent(c),d.mode=o,r.dispatchEvent(d)}}}function $(e){e.preventDefault(),void 0!==e.button&&0!==e.button||(i&&null!==r.axis&&(p.mode=o,r.dispatchEvent(p)),i=!1,"TouchEvent"in window&&e instanceof TouchEvent?(r.axis=null,r.update(),r.dispatchEvent(c)):W(e))}function G(e,r){var o=t.getBoundingClientRect(),i=(e.clientX-o.left)/o.width,a=(e.clientY-o.top)/o.height;h.set(2*i-1,-2*a+1),f.setFromCamera(h,n);var s=f.intersectObjects(r,!0);return!!s[0]&&s[0]}this.setCamera=function(e){n=e},this.activate=function(){t.addEventListener("mousedown",Y,!1),t.addEventListener("touchstart",Y,!1),t.addEventListener("mousemove",W,!1),t.addEventListener("touchmove",W,!1),t.addEventListener("mousemove",Q,!1),t.addEventListener("touchmove",Q,!1),t.addEventListener("mouseup",$,!1),t.addEventListener("mouseout",$,!1),t.addEventListener("touchend",$,!1),t.addEventListener("touchcancel",$,!1),t.addEventListener("touchleave",$,!1)},this.activate(),this.dispose=function(){t.removeEventListener("mousedown",Y),t.removeEventListener("touchstart",Y),t.removeEventListener("mousemove",W),t.removeEventListener("touchmove",W),t.removeEventListener("mousemove",Q),t.removeEventListener("touchmove",Q),t.removeEventListener("mouseup",$),t.removeEventListener("mouseout",$),t.removeEventListener("touchend",$),t.removeEventListener("touchcancel",$),t.removeEventListener("touchleave",$)},this.attach=function(e){this.object=e,this.visible=!0,this.update(!0)},this.detach=function(){this.object=void 0,this.visible=!1,this.axis=null},this.getMode=function(){return o},this.setMode=function(e){for(var t in"scale"===(o=e||o)&&(r.space="local"),a)a[t].visible=t===o;this.update(),r.dispatchEvent(c)},this.setTranslationSnap=function(e){r.translationSnap=e},this.setRotationSnap=function(e){r.rotationSnap=e},this.setSize=function(e){r.size=e,this.update(!0),r.dispatchEvent(c)},this.setSpace=function(e){r.space=e,this.update(),r.dispatchEvent(c)},this.update=function(e){void 0!==r.object&&(r.object.updateMatrixWorld(),F.setFromMatrixPosition(r.object.matrixWorld),_.setFromRotationMatrix(x.extractRotation(r.object.matrixWorld)),n.updateMatrixWorld(),U.setFromMatrixPosition(n.matrixWorld),V.setFromRotationMatrix(x.extractRotation(n.matrixWorld)),A=F.distanceTo(U)/6*r.size,this.position.copy(F),e&&this.scale.set(A,A,A),n instanceof THREE.PerspectiveCamera?C.copy(U).sub(F).normalize():n instanceof THREE.OrthographicCamera&&C.copy(U).normalize(),"local"===r.space?a[o].update(_,C):"world"===r.space&&a[o].update(new THREE.Euler,C),a[o].highlight(r.axis))}}}}()},253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{updates:()=>o});var r=n(324);const o={};r.A.on("entityupdate",(e=>{let t=e.value;const n=e.entity;o[n.id]=o[n.id]||{};const r=AFRAME.components[e.component];r&&(e.property?(o[n.id][e.component]=o[n.id][e.component]||{},r.schema[e.property]&&(t=r.schema[e.property].stringify(e.value)),o[n.id][e.component][e.property]=t):(t=r.schema.stringify(e.value),o[n.id][e.component]=t))}))},673:e=>{function t(){return new DOMException("The request is not allowed","NotAllowedError")}e.exports=async function(e){try{await async function(e){if(!navigator.clipboard)throw t();return navigator.clipboard.writeText(e)}(e)}catch(n){try{await async function(e){const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",n.style.webkitUserSelect="auto",n.style.userSelect="all",document.body.appendChild(n);const r=window.getSelection(),o=window.document.createRange();r.removeAllRanges(),o.selectNode(n),r.addRange(o);let i=!1;try{i=window.document.execCommand("copy")}finally{r.removeAllRanges(),window.document.body.removeChild(n)}if(!i)throw t()}(e)}catch(e){throw e||n||t()}}}},600:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(354),o=n.n(r),i=n(314),a=n.n(i)()(o());a.push([e.id,'svg:not(:root).svg-inline--fa,svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}.svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}body.aframe-inspector-opened,.toggle-edit,.sponsor-btn{font-family:BlinkMacSystemFont,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif}.wf-roboto-n4-active body.aframe-inspector-opened,.wf-roboto-n4-active .toggle-edit,.wf-roboto-n4-active .sponsor-btn{font-family:BlinkMacSystemFont,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif}body.aframe-inspector-opened{background:#1d1d1d;color:#fff;font-size:12px;margin:0;overflow:hidden}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector #toolbar{background-color:#242424}#aframeInspector #toolbar .toolbarActions{padding:0 0 5px;display:flex;align-items:baseline}#aframeInspector #toolbar .toolbarActions a.disabled{color:#666;cursor:default}#aframeInspector #toolbar .toolbarActions .helpButtonContainer{flex-grow:1;padding-right:10px;text-align:right}#aframeInspector #scenegraph{background:#242424;border-top:1px solid #111;display:flex;flex-direction:column;overflow:auto;padding-top:32px;width:230px}#aframeInspector #scenegraph .entity{background:#242424;cursor:pointer;display:flex;justify-content:space-between;padding:3px;width:100%;white-space:nowrap}#aframeInspector #scenegraph .entity:hover{background:#1d2f39}#aframeInspector #scenegraph .entity.active{background-color:#155373;color:#fff}#aframeInspector #scenegraph .entity.active .component:hover{color:#1888c1}#aframeInspector #scenegraph .entity.active .entityActions{display:inline}#aframeInspector #scenegraph .entity.novisible.active span,#aframeInspector #scenegraph .entity.novisible.active svg,#aframeInspector #scenegraph .entity.novisible.active .collapsespace,#aframeInspector #scenegraph .entity.novisible.active .id{color:#999}#aframeInspector #scenegraph .entity.novisible:not(.active) span,#aframeInspector #scenegraph .entity.novisible:not(.active) svg,#aframeInspector #scenegraph .entity.novisible:not(.active) .collapsespace,#aframeInspector #scenegraph .entity.novisible:not(.active) .id{color:#626262}#aframeInspector #scenegraph .component:hover{color:#1faaf2}#aframeInspector #scenegraph .entityIcons{margin-left:2px}#aframeInspector #scenegraph .entityActions{display:none;margin:0 14px}#aframeInspector #scenegraph .entityActions .button{color:#fff;font-size:12px;margin-left:6px}#aframeInspector #scenegraph svg{color:#ccc}#aframeInspector #scenegraph .toolbarActions svg:hover,#aframeInspector #scenegraph .entityActions svg:hover{color:#1faaf2}#aframeInspector #scenegraph .active svg{color:#fafafa}#aframeInspector #scenegraph .id{color:#ccc}#aframeInspector #scenegraph .option.active .id{color:#fff}#aframeInspector #scenegraph .collapsespace{color:#eee;display:inline-block;text-align:center;width:14px}#aframeInspector #scenegraph .fa-eye{color:#bbb}#aframeInspector #scenegraph .icons a.button{color:#fff}#aframeInspector #scenegraph .search{padding:5px;font-size:16px;position:relative}#aframeInspector #scenegraph .search input{color:#c3c3c3;background:#1d1d1d;border-radius:5px;height:22px;text-indent:10px;width:216px}#aframeInspector #scenegraph .search >svg,#aframeInspector #scenegraph .search a.button{position:absolute;right:14px;top:10px}#aframeInspector #scenegraph .outliner{background:#242424;color:#c3c3c3;cursor:default;flex:1 1 auto;font-size:13px;height:calc(100% - 98px);line-height:normal;outline:none;overflow-y:auto;padding:0;width:230px}#aframeInspector .scenegraph-bottom{background-color:#323232;border-top:1px solid #111;bottom:10;height:40px;left:0;z-index:100}#aframeInspector .scenegraph-bottom a{float:right;margin:10px}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector .components{background-color:#242424;color:#c3c3c3;height:100%;overflow:auto;position:fixed;width:331px}#aframeInspector div.vec2,#aframeInspector div.vec3,#aframeInspector div.vec4{display:inline}#aframeInspector .vec2 input.number,#aframeInspector .vec3 input.number{width:40px}#aframeInspector .vec4 input.number{width:34px}#aframeInspector .collapsible-header{align-items:center;display:flex;justify-content:space-between}#aframeInspector .collapsible-header .entityPrint{color:#fff}#aframeInspector .collapsible-content{padding:5px 0}#aframeInspector .componentTitle span{max-width:200px;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;color:#fff;font-weight:600;vertical-align:bottom !important}#aframeInspector .collapsible .static{background:#333;border-bottom:2px solid #242424;box-sizing:content-box;cursor:pointer;height:16px;padding:8px 10px 12px 10px;vertical-align:bottom;font-size:13px}#aframeInspector .collapsible .static:hover{background:#393939}#aframeInspector .collapsible .menu{text-align:right}#aframeInspector .collapsible .menuafter{color:#bbb;content:\'\\2807\';font-size:12px;padding:5px;text-align:right}#aframeInspector .collapsible .static{margin:0}#aframeInspector .collapsible .static .collapse-button{border:6px solid transparent;float:left;height:0;margin-right:10px;margin-left:2px;width:0}#aframeInspector .collapsible.collapsed .static .collapse-button{border-left-color:#c3c3c3;margin-top:4px}#aframeInspector .collapsible:not(.collapsed) .static .collapse-button{border-top-color:#c3c3c3;margin-top:7px}#aframeInspector .propertyRow{align-items:center;display:flex;font-size:13px;min-height:30px;padding:2px 15px}#aframeInspector .propertyRow .text{cursor:default;display:inline-block;overflow:hidden;padding-right:10px;text-overflow:ellipsis;vertical-align:middle;width:118px}#aframeInspector .propertyRow .map_value{margin:0 0 0 5px;width:68px}#aframeInspector .propertyRow .Select-control{font-size:11px;height:24px}#aframeInspector .propertyRow .Select-placeholder,#aframeInspector .propertyRow .Select--single > .Select-control .Select-value{line-height:19px}#aframeInspector .propertyRow .Select-input{height:22px}#aframeInspector .propertyRow input[type=text],#aframeInspector .propertyRow input[type=number],#aframeInspector .propertyRow input.string,#aframeInspector .propertyRow input.number{background:#1d1d1d;color:#1faaf2;min-height:26px;padding-bottom:1px;padding-left:5px;padding-right:5px;padding-top:1px}#aframeInspector .propertyRow input[type=text]:last-child,#aframeInspector .propertyRow input[type=number]:last-child,#aframeInspector .propertyRow input.string:last-child,#aframeInspector .propertyRow input.number:last-child{padding-right:0}#aframeInspector .propertyRow input.string{padding-left:8px;box-sizing:border-box;width:165px}#aframeInspector .propertyRow input[type=text]:focus,#aframeInspector .propertyRow input.string:focus{box-shadow:none}#aframeInspector .propertyRow .color_value{margin:0 0 0 5px;width:68px;letter-spacing:1px}#aframeInspector .propertyRowDefined .text{color:#fafafa;font-weight:500}#aframeInspector .components *{vertical-align:middle}#aframeInspector span.subcomponent{color:#999;float:none !important;margin-left:10px;vertical-align:top !important}#aframeInspector #addComponentContainer{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:20px 10px;background:#1d1d1d}#aframeInspector #addComponentContainer #addComponent{text-align:left;width:200px}#aframeInspector #addComponentContainer #addComponent .select__control{background:#161616;height:35px;color:#1faaf2}#aframeInspector #addComponentContainer #addComponentHeader{font-size:15px;margin:5px 0 10px 0}#aframeInspector #addComponentContainer input[type=text]:focus{box-shadow:none}#aframeInspector .Select-menu-outer .is-focused span{color:#fff}#aframeInspector .component-title{align-items:center;display:flex}#aframeInspector #componentEntityHeader .collapsible-header{bottom:4px;position:relative}#aframeInspector #componentEntityHeader .collapse-button{display:none}#aframeInspector #componentEntityHeader .static{height:13px}#aframeInspector #componentEntityHeader .entityPrint{font-size:15px;padding-left:5px}#aframeInspector #componentEntityHeader .entityName{max-width:160px;top:0}#aframeInspector #componentEntityHeader .entityIcons{color:#fafafa}#aframeInspector #mixinSelect{width:160px}#aframeInspector .propertyRow .texture{display:flex}#aframeInspector .propertyRow .texture input{margin-left:0;width:120px}#aframeInspector #componentEntityHeader .gltfIcon img{top:0}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector .entityPrint{font-family:system-ui,BlinkMacSystemFont,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.15em}#aframeInspector .entityName{display:inline-block;overflow:hidden;position:relative;text-overflow:ellipsis;top:3px;white-space:nowrap}#aframeInspector [data-entity-name-type="id"]{color:#92374d}#aframeInspector [data-entity-name-type="class"]{color:#514b23}#aframeInspector [data-entity-name-type="mixin"]{color:#d66853}#aframeInspector .help-lists{display:flex;justify-content:space-around}#aframeInspector .help-list{list-style:none;margin:0;padding:0 0 10px;width:350px}#aframeInspector .help-list li{margin-right:40px}#aframeInspector .help-key-unit{line-height:1.8;margin-right:2em;padding:5px 0}#aframeInspector .help-key{bottom:2px;margin-right:4px;min-width:60px;position:relative}#aframeInspector .help-key span{background-color:#2e2e2e;background-repeat:repeat-x;border:1px solid #666;border-radius:3px;box-shadow:0 0 5px #000;color:#999;display:inline-block;font-size:12px;padding:0 8px;text-align:center}#aframeInspector .help-key-def{color:#bbb;display:inline-block;margin-left:1em}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector .select__control{border:0;border-radius:0;cursor:pointer;min-height:26px;font-family:system-ui,BlinkMacSystemFont,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;font-size:13px}#aframeInspector .select__indicator{height:26px}#aframeInspector .select__indicator-separator{display:none}#aframeInspector .select__input{min-height:auto !important}#aframeInspector .select__control,#aframeInspector .select__menu{background:#1d1d1d}#aframeInspector .select__option{padding:5px 10px}#aframeInspector .select__placeholder,#aframeInspector .select__menu{color:#c3c3c3}#aframeInspector .select__single-value{color:#1faaf2}#aframeInspector .select__control--is-focused{box-shadow:none !important}#aframeInspector .select__option{cursor:pointer}#aframeInspector .select__label{font-size:11px}#aframeInspector .select__option--is-focused{background:#155373}#aframeInspector .select__value-container{height:26px;position:static}#aframeInspector .select__value-container.select__value-container--is-multi{height:auto;padding:6px}#aframeInspector .select__dropdown-indicator{padding:3px 8px}#aframeInspector .select__multi-value{background:#242424;color:#1faaf2}#aframeInspector .select__multi-value__label{color:#1faaf2}#aframeInspector .select__multi-value__remove:hover{color:#fff;background:#242424}#aframeInspector .modal{animation:animateopacity .2s ease-out;background-color:#000;background-color:rgba(0,0,0,0.6);display:flex;height:100%;left:0;overflow:auto;position:fixed;top:0;width:100%;z-index:9999999999}#aframeInspector .modal h3{font-size:18px;font-weight:100;margin:.6em 0}#aframeInspector #textureModal .modal-content{height:calc(100% - 50px);width:calc(100% - 50px)}#aframeInspector .modal-content{animation:animatetop .2s ease-out;animation-duration:.2s;animation-name:animatetop;background-color:#232323;box-shadow:0 4px 8px 0 rgba(0,0,0,0.5),0 6px 20px 0 rgba(0,0,0,0.5);margin:auto;overflow:hidden;padding:0}#aframeInspector .close{color:#fff;float:right;font-size:28px;font-weight:bold}#aframeInspector .close:hover,#aframeInspector .close:focus{color:#08f;cursor:pointer;text-decoration:none}#aframeInspector .modal-header{color:#fff;padding:2px 16px}#aframeInspector .modal-body{overflow:auto;padding:16px}#aframeInspector .modal-footer{color:#fff;padding:2px 16px}#aframeInspector .gallery{background:#232323;display:flex;flex-wrap:wrap;margin:15px auto 0;max-height:calc(100vh - 370px);overflow:auto;padding:15px 3px 3px}#aframeInspector .newimage .gallery{padding:16px}#aframeInspector .gallery li{border-radius:2px;box-shadow:0 0 6px rgba(0,0,0,0.6);cursor:pointer;margin:8px;overflow:hidden;width:155px}#aframeInspector .gallery li.selected,#aframeInspector .gallery li:hover{box-shadow:0 0 0 2px #1eaaf1}#aframeInspector .gallery li .detail{background-color:#323232;margin:0;min-height:60px;padding:3px 10px}#aframeInspector .preview{padding:10px;width:150px}#aframeInspector .preview input{display:block;margin:8px 0;width:144px}#aframeInspector .preview button{width:155px}#aframeInspector .preview .detail .title{color:#fff;display:inline-block;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#aframeInspector .gallery li.selected .detail,#aframeInspector .gallery li:hover .detail{background-color:#444}#aframeInspector .gallery li .detail span{color:#777;display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:140px}#aframeInspector .gallery li.selected .detail span,#aframeInspector .gallery li:hover .detail span{color:#888}#aframeInspector .gallery li .detail span.title{color:#fff !important}#aframeInspector .modal button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;box-shadow:none;cursor:pointer;display:inline-block;font-size:12px;line-height:1.8;margin:0 10px 0 0;padding:5px 10px}#aframeInspector .modal button:focus{outline:none}#aframeInspector .modal button{background-color:#1eaaf1;border:none;color:#fff}#aframeInspector .modal button:hover,#aframeInspector .modal button.hover{background-color:#346392;text-shadow:-1px 1px #27496d}#aframeInspector .modal button:active,#aframeInspector .modal button.active{background-color:#27496d;text-shadow:-1px 1px #193047}#aframeInspector .modal button:disabled{background-color:#888;cursor:none}#aframeInspector .newimage{background-color:#323232;color:#bcbcbc;display:flex;font-size:13px;justify-content:space-between;margin-top:10px;overflow:auto;padding:10px}#aframeInspector .newimage input{color:#1eaaf1;padding:3px 5px}#aframeInspector .texture canvas + input{margin-left:5px}#aframeInspector .texture svg{padding-right:5px}#aframeInspector .uploader-normal-button .hidden{display:none}#aframeInspector .assets.search{position:relative;margin-top:10px;width:200px}#aframeInspector .assets.search svg{position:absolute;right:0;top:5px}#aframeInspector .new_asset_options{margin:10px}#aframeInspector .new_asset_options > ul{margin-left:10px;padding:5px}#aframeInspector .new_asset_options > ul > li{padding:10px 0}#aframeInspector .new_asset_options .imageUrl{margin-left:5px;width:350px}#aframeInspector .texture canvas{border:1px solid #333;cursor:pointer}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector #viewportBar{align-items:center;background-color:#242424;color:#c3c3c3;display:flex;flex-grow:2;height:32px;font-size:15px;justify-content:space-between;left:0;margin:0 auto;right:0;top:0}#aframeInspector .toolbarButtons{display:flex;align-items:center;gap:6px}#aframeInspector .toolbarButtons *{margin-left:0 !important;vertical-align:middle}#aframeInspector .toolbarButtons a.button svg{padding:8px}#aframeInspector .toolbarButtons a.button:not(.active) svg:hover{background-color:#444}#aframeInspector .toolbarButtons .active svg{background-color:#1faaf2;color:#fff}#aframeInspector .toolbarButtons .active:hover svg{color:#fff !important}#aframeInspector .local-transform{padding-left:10px;padding-right:20px}#aframeInspector .local-transform label{color:#aaa;padding-left:5px}#aframeInspector .local-transform a.button{padding-top:0}#aframeInspector #cameraSelect{cursor:pointer;width:120px}#aframeInspector #cameraSelect .select__dropdown-indicator{padding-left:3px;padding-right:3px}#aframeInspector #cameraToolbar{margin-left:5px;align-items:center;display:flex}#aframeInspector #cameraToolbar a{margin-right:10px}#aframeInspector #cameraToolbar .select__control{background:none}#aframeInspector #cameraToolbar .select__single-value{color:#c3c3c3}#aframeInspector #cameraToolbar .select__single-value:hover{color:#1faaf2}#aframeInspector #viewportHud{display:none}@media (min-width:1024px){#aframeInspector #viewportHud{display:block}}#aframeInspector svg:not(:root).svg-inline--fa,#aframeInspector svg:not(:host).svg-inline--fa{overflow:visible;box-sizing:content-box}#aframeInspector .svg-inline--fa{display:inline-block;height:1em;overflow:visible;vertical-align:-.125em}#aframeInspector .Select-control{background-color:#222 !important;border:none;border-radius:0;color:#1faaf2;font-family:$monosapce}#aframeInspector .Select-menu-outer{border:none}#aframeInspector .Select-menu-outer .is-focused{background-color:#1faaf2 !important;color:#c3c3c3}#aframeInspector .Select-option{background-color:#222 !important}#aframeInspector .select-widget{display:inline-block;width:157px}#aframeInspector .Select-placeholder,#aframeInspector .Select--single > .Select-control .Select-value{color:#1faaf2 !important}#aframeInspector .Select-value-label{color:#1faaf2 !important}#aframeInspector .Select,#aframeInspector code,#aframeInspector pre,#aframeInspector input,#aframeInspector textarea,#aframeInspector select{font-family:system-ui,BlinkMacSystemFont,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;font-size:13px}#aframeInspector .wf-robotomono-n4-active .Select,#aframeInspector .wf-robotomono-n4-active code,#aframeInspector .wf-robotomono-n4-active pre,#aframeInspector .wf-robotomono-n4-active input,#aframeInspector .wf-robotomono-n4-active textarea,#aframeInspector .wf-robotomono-n4-active select{font-family:Roboto Mono,Consolas,Andale Mono,Monaco,Courier New,monospace}#aframeInspector hr{border:0;border-top:1px solid #ccc}#aframeInspector a{cursor:pointer}#aframeInspector button{position:relative}#aframeInspector code{font-family:Consolas,Andale Mono,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace}#aframeInspector textarea{-moz-tab-size:4;-o-tab-size:4;tab-size:4;white-space:pre;word-wrap:normal}#aframeInspector textarea.success{border-color:#8b8 !important}#aframeInspector textarea.fail{background-color:rgba(255,0,0,0.05);border-color:#f00 !important}#aframeInspector textarea,#aframeInspector input{outline:none}#aframeInspector .gltfIcon img{box-sizing:content-box;display:inline;height:20px;left:5px;padding:0 5px;position:relative;top:4px;vertical-align:baseline;width:20px}#aframeInspector #scenegraph,#aframeInspector #rightPanel{z-index:9998}#aframeInspector #sidebar,#aframeInspector #scenegraph,#aframeInspector .panel{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}#aframeInspector .toggle-edit{background-color:#92374d;box-sizing:content-box;color:#fafafa;font-size:13px;left:3px;line-height:16px;margin:0;padding:6px 10px;position:fixed;text-align:center;text-decoration:none;top:3px;width:100px;z-index:999999999}#aframeInspector .toggle-edit:hover{background-color:#e42b5a}#aframeInspector .try-editor-btn{background-color:#92374d;box-sizing:content-box;color:#fafafa;font-size:16px;line-height:24px;margin:0;padding:6px 10px;text-align:center;text-decoration:none;width:200px;display:flex;gap:5px;justify-content:center}#aframeInspector .try-editor-btn:hover{background-color:#e42b5a;color:#fafafa}#aframeInspector .sponsor-btn{background-color:#fff;box-sizing:content-box;color:#000;font-size:13px;left:127px;line-height:16px;margin:0;padding:6px 10px;position:fixed;text-align:center;text-decoration:none;top:3px;width:80px;z-index:999999999;display:flex;gap:5px;justify-content:center}#aframeInspector .sponsor-btn svg{fill:currentColor;color:#db61a2}#aframeInspector .sponsor-btn:hover{background-color:#e42b5a;color:#fafafa}#aframeInspector input{background-color:transparent;border:1px solid #555;color:#fff}#aframeInspector input,#aframeInspector .texture canvas{transition:.1s background-color ease-in-out,.1s border-color ease-in-out,.1s color ease-in-out}#aframeInspector input[type=text],#aframeInspector input[type=number],#aframeInspector input.string,#aframeInspector input.number{min-height:14px;outline:none}#aframeInspector input[type="checkbox"]{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;cursor:pointer;margin:0;height:18px;width:18px}#aframeInspector input[type="checkbox"]:focus{box-shadow:none}#aframeInspector input.number{background-color:transparent !important;border:0;color:#2cb7ff !important;cursor:col-resize;font-size:13px;padding:2px}#aframeInspector input.stringfocus,#aframeInspector input.numberfocus{border:1px solid #20b1fb;color:#fff;cursor:auto}#aframeInspector input.error{border:1px solid #a00}#aframeInspector #sidebar{background:#242424;width:331px}#aframeInspector #sidebar *{vertical-align:middle}#aframeInspector input,#aframeInspector textarea,#aframeInspector select{background:#222;border:1px solid transparent;color:#888}#aframeInspector select{background:#393939}#aframeInspector input[type=color]{background-color:#333;border:1px solid #111;height:28px;cursor:pointer}#aframeInspector input[type=color]{cursor:pointer;height:25px;padding:0;width:50px}#aframeInspector input[type=color]-webkit-color-swatch{border:0}#aframeInspector input[type=color]-webkit-color-swatch-wrapper{padding:0}#aframeInspector input[type=color]-moz-color-swatch{border:0}#aframeInspector input[type=color]-moz-focus-inner{border:0;padding:0}#aframeInspector .hidden{visibility:hidden}#aframeInspector a.button{color:#bcbcbc;font-size:16px;margin-left:10px;text-decoration:none}#aframeInspector a.button:hover{color:#1faaf2}#aframeInspector .hide{display:none}#aframeInspector .a-canvas.state-dragging{cursor:grabbing}#aframeInspector #rightPanel{align-items:stretch;display:flex;justify-content:flex-end}#aframeInspector #inspectorContainer{display:flex;justify-content:space-between;left:0;height:100%;pointer-events:none;position:fixed;top:0;width:100%;z-index:999999}#aframeInspector #scenegraph,#aframeInspector #viewportBar,#aframeInspector #rightPanel{pointer-events:all}#aframeInspector .aframe-inspector-opened a-scene .a-canvas{background-color:#191919;z-index:9998}#aframeInspector .toggle-sidebar{align-items:center;display:flex;height:100%;position:absolute;z-index:9998}#aframeInspector .toggle-sidebar a{background-color:#262626;color:#bcbcbc;padding:5px;z-index:9998}#aframeInspector .toggle-sidebar a.hover{background-color:#1faaf2;color:#fff}#aframeInspector .toggle-sidebar.left{top:0;left:0}#aframeInspector .toggle-sidebar.right{top:0;right:0}@keyframes animateopacity{from{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./src/style/lib.styl","webpack://./src/style/index.styl","webpack://./src/style/scenegraph.styl","webpack://./src/style/components.styl","webpack://./src/style/entity.styl","webpack://./src/style/help.styl","webpack://./src/style/select.styl","webpack://./src/style/textureModal.styl","webpack://./src/style/viewport.styl","webpack://./src/style/widgets.styl"],names:[],mappings:"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