(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b2aa6a7c"],{"503d":function(e,t,n){"use strict";n("ff09")},"9a73":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"modelTest"},[n("div",{ref:"model",staticClass:"model",attrs:{id:"container"}})])},r=[],o=n("5a89"),i=n("4721");class s extends o["k"]{constructor(e){super(e),this.type=o["x"]}parse(e){const t=1,n=2,a=3,r=4,i=function(e,o){switch(e){case t:throw new Error("THREE.RGBELoader: Read Error: "+(o||""));case n:throw new Error("THREE.RGBELoader: Write Error: "+(o||""));case a:throw new Error("THREE.RGBELoader: Bad File Format: "+(o||""));default:case r:throw new Error("THREE.RGBELoader: Memory Error: "+(o||""))}},s=1,l=2,d=4,c="\n",h=function(e,t,n){const a=128;t=t||1024;let r=e.pos,o=-1,i=0,s="",l=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+a)));while(0>(o=l.indexOf(c))&&i<t&&r<e.byteLength)s+=l,i+=l.length,r+=a,l+=String.fromCharCode.apply(null,new Uint16Array(e.subarray(r,r+a)));return-1<o&&(!1!==n&&(e.pos+=i+o+1),s+l.slice(0,o))},f=function(e){const n=/^#\?(\S+)/,r=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,o=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,c=/^\s*FORMAT=(\S+)\s*$/,f=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,w={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let p,u;(e.pos>=e.byteLength||!(p=h(e)))&&i(t,"no header found"),(u=p.match(n))||i(a,"bad initial token"),w.valid|=s,w.programtype=u[1],w.string+=p+"\n";while(1){if(p=h(e),!1===p)break;if(w.string+=p+"\n","#"!==p.charAt(0)){if((u=p.match(r))&&(w.gamma=parseFloat(u[1])),(u=p.match(o))&&(w.exposure=parseFloat(u[1])),(u=p.match(c))&&(w.valid|=l,w.format=u[1]),(u=p.match(f))&&(w.valid|=d,w.height=parseInt(u[1],10),w.width=parseInt(u[2],10)),w.valid&l&&w.valid&d)break}else w.comments+=p+"\n"}return w.valid&l||i(a,"missing format specifier"),w.valid&d||i(a,"missing image size specifier"),w},w=function(e,n,o){const s=n;if(s<8||s>32767||2!==e[0]||2!==e[1]||128&e[2])return new Uint8Array(e);s!==(e[2]<<8|e[3])&&i(a,"wrong scanline width");const l=new Uint8Array(4*n*o);l.length||i(r,"unable to allocate buffer space");let d=0,c=0;const h=4*s,f=new Uint8Array(4),w=new Uint8Array(h);let p=o;while(p>0&&c<e.byteLength){c+4>e.byteLength&&i(t),f[0]=e[c++],f[1]=e[c++],f[2]=e[c++],f[3]=e[c++],2==f[0]&&2==f[1]&&(f[2]<<8|f[3])==s||i(a,"bad rgbe scanline format");let n,r=0;while(r<h&&c<e.byteLength){n=e[c++];const t=n>128;if(t&&(n-=128),(0===n||r+n>h)&&i(a,"bad scanline data"),t){const t=e[c++];for(let e=0;e<n;e++)w[r++]=t}else w.set(e.subarray(c,c+n),r),r+=n,c+=n}const o=s;for(let e=0;e<o;e++){let t=0;l[d]=w[e+t],t+=s,l[d+1]=w[e+t],t+=s,l[d+2]=w[e+t],t+=s,l[d+3]=w[e+t],d+=4}p--}return l},p=function(e,t,n,a){const r=e[t+3],o=Math.pow(2,r-128)/255;n[a+0]=e[t+0]*o,n[a+1]=e[t+1]*o,n[a+2]=e[t+2]*o,n[a+3]=1},u=function(e,t,n,a){const r=e[t+3],i=Math.pow(2,r-128)/255;n[a+0]=o["l"].toHalfFloat(Math.min(e[t+0]*i,65504)),n[a+1]=o["l"].toHalfFloat(Math.min(e[t+1]*i,65504)),n[a+2]=o["l"].toHalfFloat(Math.min(e[t+2]*i,65504)),n[a+3]=o["l"].toHalfFloat(1)},m=new Uint8Array(e);m.pos=0;const g=f(m),b=g.width,v=g.height,y=w(m.subarray(m.pos),b,v);let E,T,R;switch(this.type){case o["t"]:R=y.length/4;const e=new Float32Array(4*R);for(let n=0;n<R;n++)p(y,4*n,e,4*n);E=e,T=o["t"];break;case o["x"]:R=y.length/4;const t=new Uint16Array(4*R);for(let n=0;n<R;n++)u(y,4*n,t,4*n);E=t,T=o["x"];break;default:throw new Error("THREE.RGBELoader: Unsupported type: "+this.type)}return{width:b,height:v,data:E,header:g.string,gamma:g.gamma,exposure:g.exposure,type:T}}setDataType(e){return this.type=e,this}load(e,t,n,a){function r(e,n){switch(e.type){case o["t"]:case o["x"]:e.colorSpace=o["D"],e.minFilter=o["C"],e.magFilter=o["C"],e.generateMipmaps=!1,e.flipY=!0;break}t&&t(e,n)}return super.load(e,r,n,a)}}var l,d,c,h,f=n("466f"),w={data:function(){return{}},mounted:function(){var e=this;this.$nextTick((function(){e.initScene(),e.initModel()}))},methods:{initScene:function(){var e=this.$refs.model.offsetWidth,t=this.$refs.model.offsetHeight,n=this.$refs.model;d=new o["ab"],l=new o["Q"](45,e/t,1,8e4),console.log(l.position),l.position.set(0,250,500),d.add(l),d.background=new o["h"](78/255,111/255,1),console.log(s);var a=new o["b"](5e3);d.add(a);var r=new o["v"](3e3,60,15921906,15921906);d.add(r),c=new o["lb"]({antialias:!0,alpha:!0}),c.setPixelRatio(window.devicePixelRatio),c.setSize(e,t),n.appendChild(c.domElement),h=new i["a"](l,c.domElement),h.addEventListener("change",this.renderModel),h.target.set(0,2,0),h.update(),window.addEventListener("resize",f["a"].debounce(this.onWindowResize,300),!1)},initModel:function(){var e=new o["bb"];e.moveTo(0,0),e.lineTo(0,20),e.lineTo(50,20),e.lineTo(50,0),e.lineTo(0,0);var t=new o["P"];t.moveTo(20,8),t.lineTo(20,16),t.lineTo(30,16),t.lineTo(30,8),t.lineTo(20,8),e.holes.push(t);var n={steps:1,depth:10,bevelEnabled:!1,bevelThickness:10,bevelSize:0,bevelOffset:0,bevelSegments:1},a=new o["q"](e,n),r=new o["L"]({color:420764}),i=new o["K"](a,r),s=new o["A"]({color:16777215,transparent:!0,opacity:1,size:o["o"]}),l=new o["B"](a,s);console.log(l),d.add(i),this.renderModel()},renderModel:function(){c.render(d,l)},onWindowResize:function(){var e=window.innerWidth,t=window.innerHeight;l.aspect=e/t,l.updateProjectionMatrix(),c.setSize(e,t)}}},p=w,u=(n("503d"),n("2877")),m=Object(u["a"])(p,a,r,!1,null,"c80f14e2",null);t["default"]=m.exports},ff09:function(e,t,n){}}]);