(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c93e8616"],{"02bb":function(t,e,n){},"0420":function(t,e,n){"use strict";var i=n("9124"),r=n.n(i);r.a},"04b2":function(t,e,n){"use strict";var i=n("86ac"),r=n.n(i);r.a},"0814":function(t,e,n){"use strict";var i=n("c6d6"),r=n.n(i);r.a},"0a1e":function(t,e,n){"use strict";n.r(e);n("f400"),n("4f7f"),n("5df3"),n("1c4c"),n("7514"),n("20d6"),n("ac6a"),n("fd24");var i=n("c815"),r=n("6b6b"),o=n("c137"),s=n("dcab"),g=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(t){function e(e,n){var i=t.call(this,e)||this;return i.line=n,i}return g(e,t),e.prototype.getLineInsertPoint=function(t){void 0===t&&(t=this);var e=Object(s["h"])(this.line,t);return e},e.prototype.intercept=function(t,e){var n=e.x,i=e.y;return!(!o["f"].isUndefined(n)&&!o["f"].isUndefined(i))||this.getLineInsertPoint({x:n,y:i})},e}(r["a"]),a=A,C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),I=function(){return I=Object.assign||function(t){for(var e,n=1,i=arguments.length;nObject(s["x"])({points:[l,this.linePoints[0]]})?l:c,h=Object(s["x"])({points:[g.points[o],this.linePoints[1]]}),p=Object(s["d"])(g,g.points[o],h),d=p[0],f=p[1],y=Object(s["x"])({points:[d,this.linePoints[1]]})>Object(s["x"])({points:[f,this.linePoints[1]]})?f:d,v=(Object(s["x"])({points:[this.linePoints[0],u]}).1?Object(s["x"])({points:[n.attachment.points[0],e]})",'"',"`"," ","\r","\n","\t"],C=["{","}","|","\\","^","`"].concat(a),I=["'"].concat(C),c=["%","/","?",";","#"].concat(I),l=["/","?","#"],u=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n("b383");function b(t,e,n){if(t&&r.isObject(t)&&t instanceof o)return t;var i=new o;return i.parse(t,e,n),i}function m(t){return r.isString(t)&&(t=b(t)),t instanceof o?t.format():o.prototype.format.call(t)}function w(t,e){return b(t,!1,!0).resolve(e)}function x(t,e){return t?b(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,n){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),g=-1!==o&&o127?T+="x":T+=D[R];if(!T.match(h)){var X=N.slice(0,E),W=N.slice(E+1),G=D.match(p);G&&(X.push(G[1]),W.unshift(G[2])),W.length&&(b="/"+W.join(".")+b),this.hostname=X.join(".");break}}}this.hostname.length>u?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=i.toASCII(this.hostname));var B=this.port?":"+this.port:"",_=this.hostname||"";this.host=_+B,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[x])for(E=0,L=I.length;E0)&&n.host.split("@");O&&(n.auth=O.shift(),n.host=n.hostname=O.shift())}return n.search=t.search,n.query=t.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var P=w.slice(-1)[0],j=(n.host||t.host||w.length>1)&&("."===P||".."===P)||""===P,S=0,E=w.length;E>=0;E--)P=w[E],"."===P?w.splice(E,1):".."===P?(w.splice(E,1),S++):S&&(w.splice(E,1),S--);if(!b&&!m)for(;S--;S)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),j&&"/"!==w.join("/").substr(-1)&&w.push("");var k=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(x){n.hostname=n.host=k?"":w.length?w.shift():"";O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");O&&(n.auth=O.shift(),n.host=n.hostname=O.shift())}return b=b||n.host&&w.length,b&&!k&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=g.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0c1b":function(t,e,n){"use strict";var i=n("bcdd"),r=n.n(i);r.a},"0d26":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg=="},"12fa":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAIPklEQVR4Xs2bZw8cNRCGXxN67y0gOqKDEIgiOkLwO/jAr0SiCRCRIggEEiAEUEivJIFUGPRsxqe9u123K8JSPiS3az87Mx6PXzvBzC6XdC6E8I/W3Mxsg6RLgpldKckknV0niANcKilECGwACBY5v2qDmNnFWAAAxupDrAVkFmAIYqUgQwBjECsBGQNIQSwVxAEIwsE2GxOzDy0crCkLxMFyENEi50MI52pnjZkxA/iTbCUQsQPySPH0LQXIxUSzaxyAXNDlgVyrsUTsi4Q26poaC9TExNCHDIK0ANS6ow/DrJkKVjNjCrIgFbmg3xnuuKLlRe+ks4gDEAMtzYCAvlvNWnrwhW+Rd892Ly8BpIV/Uj5MvsBBLmvpreGdqfplyoxrsshcATXnyxWDDFZwgwG1ItcAcCaE8O+s+0ajeskWGQXoklUqqJYEki2is/N7QZCkBSZrR8n0agTB98QAIMmWtUR8uxIEAOqPuSAcoimG8Mx6kSQSWuo9vvx0iQWq3DG1fJqlQIpdMLWK5vw19PuIa6pcsDDEgGuqXbAUCAchNigF/qmJgeKM2eKm1neqZkfrILn3qKzYnGDOojmd67Dmd7sw0zYA8aCko5KOLOLXmsF7gX2jpOuBeFQSVjgcQjhU21nr82Z2iyQgLooQsa/Dkg6t0jXugpsl3TTJmG6J+HcscsStsvQY6QHcgAXGIPh3Bj8aQjjQauqx98zsNmKgD8Czs+7ov78017gFbpWEBeZaCqKzyKIx4gAEIQCDeSkFEV1zLISwv9U1Zna7u2A0MeYg4tgE68GaWeMWiDGQ/IZSCFZJQIqmby8GCMLs0lAK0SU5SbhmX841ZnanpGtLAHKzY2wsgvXAkGu82CEGAChuNZaInWIRQKZixAGYhteVWiCVrEq+YMo1ZobfN0q6uhYguuMBF0lKBp99plt9JWGBa1o66LYGZgY9U2lU9k103im+/WODSpCzkvZHpQYQIpp6cV0NYXZvCOFkX6kB5A5JrQJYDTzW2xNC+LuLif6bZnaVu2aVstHpzgUOMAfRZaQLZ2K4JiuM13y6P4sFdocQTvXfHVNqVgFCEP4RQjgzC59SagBh1nBkuWjjy/eFEHDFXMspNai9JKFFXMOX44I5C0wyZu4T/fD2rkYQvnxX7pwku8x6sOISFiYsU9r+chcQC8lWBNEDwTUlmZUYwAVFR1bFEA4CwN0JENI4AMyC4rP3KggHIZGRWWddA8BJd0HxWdlgssr5rweCa/qZFQDWgiqAZggHYY3BNUxf1gBiICsXVueJnFX84BVrnKqpxIszZg5gmb9XB+YyB59kTDNDIzjeElCLArk7r6O8e4t5LemXmrm9BACqOFSijUC85xubHZJ+WweIbw/uk0SR3d2pAaKbdZJ+d4sUpdsWa/gZ6v2S7unfqYkQ9IkcsEvST6uwiMfAw5JYlaeUmj5E/LidknYuM1gd4CG3wJQR++6YtS4W2ZEqRkrd4TUJAKT6uZaCIEZ2S9q+iEVcrH3M65FRpWbIHX1aLPJjC4gH4eNeq44aLmWJ/kt7PFgHC9Wh3n0P84gk9KpkK4XANehW35dUS26Bp1wwzS4NpRDxSyLIaN1oZqyqz4zJhbWBOWZCRFaCtdtH9puZIQ8QhIN65ViHtZaImRUh/rsQwsQifiPl6Val5t0WdQX9W9K35BEHeLZRKOmuszwnCdW9pQFCLrm3VizrDXYQCOSAJ2r96J0wayjtWzUN5KatUakhoJhSrbpTixWPe1yd6Cs1TZHdMrrH0zakIt4fUmpaXVPKw8z6IafUoF3hmipVtpDgmM+oqRwzptQAwsJTlXQSIATwwbEkl1NqcA3V+KKNLIsLmpSaZbgGxZekNroCZ1c4V3xZD2otElde1plkCZCF6BaLC7IiIDWZda/HwKhWFX1cBOEgZNYn/TwrFSNYgGm4tbQ+LYbogXCsPWYRAKjCKAezWlW1JeILvmIyfWdBYmEMQNXmqcoSPRBihITGQVusMZiGuKAKYC5t1yQDD1YKWY6bKPvYtVVLRQtBeIzEG+rcLCtW62Y/tskdNRYrefb/AWFmrA+/hhCQgdfavKq7j/LuAyAkfT5Uxq+KygFeljSBiALJF7HaWdXgHtBUcS9FoSRaIo7JOfhHIYQTq4IwM6b0G/1N8iwEYyOifbYKEDOjWnt1VqcYgoggxMify7KIS5XEAId8U20Mgocoxz4OIbA3WKiZGdeZcMHkWlO/wxQEz7EifhpCYI/Q1NwCr6d0ihwEAxOsuIYtX1UzM85FmAXJYqgEgoEBwDXFIA7wmi9wSfhSiBgjn4QQKFyTze/VvVlQhXX91EDwPGUbCW30Xo2ZcRDDLCAfFLVaCDpl2mKRORAzQyp+RRL1aHFrgaBzpi2ZdXJ10mMAF7BXqWpAvN+oL7Cv/MJFEgTzF2st4KTngXjbJf8qen+YNQaxlWODmtPj/lg74p0aQLics84ih5Wb4vjDqNSwxWNh4arCuho7NJLgkb5SQ0S/4xZZNQhiG4E9eKcGv+Ia0u0qXIMLiCGy72STPDeQmSGMkGwGzyYWNBGHOZtmF8QxpQaLMOc5JlpW2y7pq9o7NYBQAwCyiGs4V/tZ0pdjm+TcnRry/wuu2LZaZJukzalKPvuFfn7F9CUh1TSCcIukr3Ob5CwEo/oZBgsTIJOjxAQR+9KtboHsJrkIwkHII89L4lwz1YgBLLClVCgphnAQ7tQQI6g1Qw2ATX5MVbxLr4LogbBiYpG+azD7N26BYgD6rIZwEKYv5yTRIgy62ZWabAzMmrAJwkEQSDhuIlixAFcfmv4nxH+8RMcvoX23QgAAAABJRU5ErkJggg=="},"147f":function(t,e,n){"use strict";n("8e6e"),n("ac6a"),n("456d");var i=n("ade3"),r=(n("7514"),n("96cf"),n("1da1")),o=n("0b16"),s=n.n(o),g=n("c75e"),A=n("b775");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function C(t){for(var e=1;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=a-C,m=Math.floor,w=String.fromCharCode;function x(t){throw new RangeError(v[t])}function O(t,e){var n=t.length,i=[];while(n--)i[n]=e(t[n]);return i}function P(t,e){var n=t.split("@"),i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(y,".");var r=t.split("."),o=O(r,e).join(".");return i+o}function j(t){var e,n,i=[],r=0,o=t.length;while(r=55296&&e<=56319&&r65535&&(t-=65536,e+=w(t>>>10&1023|55296),t=56320|1023&t),e+=w(t),e})).join("")}function E(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:a}function k(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function M(t,e,n){var i=0;for(t=n?m(t/l):t>>1,t+=m(t/e);t>b*I>>1;i+=a)t=m(t/b);return m(i+(b+1)*t/(t+c))}function N(t){var e,n,i,r,o,s,g,c,l,d,f=[],y=t.length,v=0,b=h,w=u;for(n=t.lastIndexOf(p),n<0&&(n=0),i=0;i=128&&x("not-basic"),f.push(t.charCodeAt(i));for(r=n>0?n+1:0;r=y&&x("invalid-input"),c=E(t.charCodeAt(r++)),(c>=a||c>m((A-v)/s))&&x("overflow"),v+=c*s,l=g<=w?C:g>=w+I?I:g-w,cm(A/d)&&x("overflow"),s*=d}e=f.length+1,w=M(v-o,e,0==o),m(v/e)>A-b&&x("overflow"),b+=m(v/e),v%=e,f.splice(v++,0,b)}return S(f)}function L(t){var e,n,i,r,o,s,g,c,l,d,f,y,v,b,O,P=[];for(t=j(t),y=t.length,e=h,n=0,o=u,s=0;s=e&&fm((A-n)/v)&&x("overflow"),n+=(g-e)*v,e=g,s=0;sA&&x("overflow"),f==e){for(c=n,l=a;;l+=a){if(d=l<=o?C:l>=o+I?I:l-o,ce.zIndex}));if(n){try{t.g.insertBefore(e.real,n.real)}catch(i){t.g.appendChild(e.real)}t.elements.splice(t.elements.indexOf(n),0,e)}else t.g.appendChild(e.real),t.elements.push(e)}))},t.prototype.remove=function(){for(var t=this,e=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,g=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){g=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(g)throw o}}}}function f(t,e){if(t){if("string"===typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]e.minWidth||p["default"].attaArch.get(this)&&p["default"].attaArch.get(this).length)return[2];t=this.wallLines;try{r=this.getDelRetain(),n=r.delIndex,i=r.retainIndex}catch(A){return[2]}return o=this.points[i],[4,Promise.all(t.map((function(t){var e;if(t!==s&&~(e=t.points.indexOf(s.points[n])))return new Promise((function(r){t.nextTick((function(){var o=S(t.points);o[e]=s.points[i],o[n]===o[i]?t.destroy():(t.renderer.processing.updateWallPoints(t,t.points,o),t.points=o,t.listenPointDrag(o),t.update(),t.nextTick((function(){return t.updateJoin()}))),r()}))}))})))];case 1:return g.sent(),this.points[n].x=this.points[i].x,this.points[n].y=this.points[i].y,this.points[n].adopt=!0,setTimeout((function(){s.wallLines.some((function(t){return~t.points.indexOf(o)}))||s.points[i].destroy()}),500),[2,this.points[n]]}}))}))},e.prototype.judgePoint=function(){return O(this,void 0,void 0,(function(){var t,e,n,i=this;return P(this,(function(r){switch(r.label){case 0:t=function(t){var n,r,o,s,g,A,a;return P(this,(function(C){switch(C.label){case 0:if(n=e.points[t],!e.renderer.processing.points.some((function(t){var e=t.ele;return e===n})))return[2,"continue"];r=e.renderer.processing,o=S(e.wallLines).filter((function(t){return t!==i&&!t.exterior})),s=.1,o=o.filter((function(t){return Object(h["B"])(t,n)<=s})),g=function(t){var e,s,g,A,a;return P(this,(function(C){switch(C.label){case 0:return e=o[t],s=r.lines.filter((function(t){var n=t.ele;return~n.points.indexOf(e.points[0])&&n.points.indexOf(e.points[1])})).map((function(t){var e=t.ele;return e})),g=[],s.forEach((function(t){return g=g.concat(p["default"].attaArch.get(t)||[])})),A=Object(h["h"])(e,n),a=g.find((function(t){return Object(h["B"])({points:t.linePoints},A)<.001})),a?[3,5]:[3,1];case 1:if(!(Object(h["B"])(e,A)<.1))return[3,5];n.x=A.x,n.y=A.y,C.label=2;case 2:return C.trys.push([2,4,,5]),[4,new Promise((function(t,o){n.nextTick((function(){i.renderer.processing.points.some((function(t){var e=t.ele;return e===n}))||o();var s=r.lineInsertPoint(e,n),g=s.promis,a=s.ret;if(!a)return t();g.then((function(){n.x=A.x,n.y=A.y,n.wallPos&&n.wallPos(),t()})),e.wallPos&&e.wallPos()}))}))];case 3:return C.sent(),[3,5];case 4:return C.sent(),[2,"break"];case 5:return[2]}}))},A=0,C.label=1;case 1:return A0){this.origin.setAttribute("stroke","rgba(0,0,0,0)");for(var i=[],r=function(t){if(i.some((function(e){return e.some((function(n){return n===e[t]}))})))return"continue";var n=e.filter((function(n){return n.linePoints&&n.linePoints.length&&(Object(h["B"])({points:e[t].linePoints},n.linePoints[0])<.1||Object(h["B"])({points:e[t].linePoints},n.linePoints[1])<.1)}));n.length&&i.push(n)},s=0;s'}if(g.length&&2===g[0].length&&(A=''+A),g.length&&2===g[g.length-1].length&&(A=A+''),1===g.length&&1===g[0].length){var I=e.find((function(t){return~t.linePoints.indexOf(g[0][0])})),c=I.linePoints[Number(!I.linePoints.indexOf(g[0][0]))];a=Object(h["x"])({points:[c,this.points[0]]})>Object(h["x"])({points:[c,this.points[1]]})?this.points[0]:this.points[1];A+=''}0===g.length&&(A+=''),this.ground.innerHTML=A}else this.ground.innerHTML="";if(this.temp.innerHTML="",this.showAngle||this.color===this.hover.color){var l=this.renderer.processing.lines.filter((function(e){return e.ele!==t&&(~e.ele.points.indexOf(t.points[0])||~e.ele.points.indexOf(t.points[1]))})).map((function(t){var e=t.ele;return e}));if(0!==l.length){var u=this.renderer.screenToRealPoint({x:20,y:0}).x-this.renderer.screenToRealPoint({x:0,y:0}).x;l.forEach((function(e){var n=Object(h["c"])(e,t),i=~e.points.indexOf(t.points[0])?t.points[0]:t.points[1],r=Object(h["g"])(e,i,u),s=Object(h["g"])(t,i,u),g=Object(h["v"])({points:[r,s]});if(!isNaN(g.x)&&!isNaN(n)&&n>10&&n<170){n=Math.round(n),n=n>=89&&n<=91?90:n;var A=document.createElementNS(o["s"],"text");A.setAttribute("fill","#fff"),A.setAttribute("text-anchor","middle"),A.setAttribute("x",g.x.toString()),A.setAttribute("y",g.y.toString()),A.setAttribute("font-size",(9*t.multiple).toString()),A.textContent=parseInt(n+"").toString()+"°",t.temp.appendChild(A)}}))}}},e.prototype.destroy=function(){var e=this,n=this.wallLines;n.splice(n.indexOf(this),1);var i=p["default"].attaArch.get(this);i&&i.length&&i.forEach((function(t){try{var e=b(t,n);t.setAttachment(e)}catch(i){t.destroy()}})),this.nextTick((function(){n.filter((function(t){return~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1])})).forEach((function(t){return t.updateJoin()}))})),t.prototype.destroy.call(this),this.removeJoin(),n.some((function(t){return~t.points.indexOf(e.points[0])}))||this.points[0].destroy(),n.some((function(t){return~t.points.indexOf(e.points[1])}))||this.points[1].destroy()},e.minWidth=.1,e}(u),k=E,M=(n("6c7b"),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),N=function(){return N=Object.assign||function(t){for(var e,n=1,i=arguments.length;nObject(h["x"])({points:[I,t[3]]})?I:C;var c=Object(h["d"])({points:[t[1],A]},t[1],this.thickness),l=c[0],u=c[1],p=null;return Object(h["x"])({points:[l,t[2]]})>Object(h["x"])({points:[u,t[2]]})?(A=u,p=l):(A=l,p=u),Math.abs(Object(h["x"])({points:[A,g]})-Object(h["x"])({points:[t[0],t[1]]}))>.01&&(A=p),t=D(t),t[2]=A,t[3]=g,this.checkPeripheral(t)?[A,g]:[]},e.prototype.updatePeripheral=function(t){void 0===t&&(t=this.points);var e=this.getPeripheral(t);return this.points[2].x=e[0].x,this.points[2].y=e[0].y,this.points[3].x=e[1].x,this.points[3].y=e[1].y,this.readyPoints=t.slice(0,2).concat(e),!0},e.prototype.intercept=function(e,n,r){var o,s,g,A,a=n.x,C=n.y;if(i["f"].isUndefined(a)||i["f"].isUndefined(C))return!0;if(!1===(o=t.prototype.intercept.call(this,e,{x:a,y:C},r)))return o;if(s=this.points.findIndex((function(t){return e.some((function(e){return e===t}))})),A=this.attachment.points.findIndex((function(t){return g=e.find((function(e){return e===t}))})),!~s&&g){var I=[];I[this.points.indexOf(this.linePoints[0])]=o.__points[0],I[this.points.indexOf(this.linePoints[1])]=o.__points[1],I.push(this.points[2],this.points[3]),this.firstLinePoints[A]=g;var c=this.getPeripheral(I);if(this.cacheVers=[Object(h["z"])({points:[this.points[1],this.points[2]]}),Object(h["z"])({points:[this.points[0],this.points[3]]})],0===c.length)return!1}else{I=D(this.points);if(!~s)return o;if(I[s]=N({},r[e.indexOf(I[s])]),!(s<2)){var l=void 0,u=void 0,p=void 0,d=void 0,f=void 0,y=void 0;2===s?(l={points:[this.points[1],this.points[2]]},u={points:[this.points[0],this.points[3]]},p=this.points[2],d=2,f=3,y=this.cacheVers[1]):(u={points:[this.points[1],this.points[2]]},l={points:[this.points[0],this.points[3]]},p=this.points[3],d=3,f=2,y=l,y=this.cacheVers[0]);var v=Object(h["z"])(l);if(v.x-y.x<.01&&v.y-y.y<.01){var b=Object(h["h"])(l,{x:a,y:C}),m=Object(h["h"])(u,{x:a,y:C}),w=u.points[1].x+a-p.x,x=u.points[1].y+C-p.y,O=Object(h["h"])(u,{x:w,y:x}),P=Math.abs(this.moveLineDis-Object(h["x"])({points:[b,m]}))>Math.abs(this.moveLineDis-Object(h["x"])({points:[b,O]}))?O:m;I[d]=b,I[f]=P}return this.readyPoints=I,!0}if(!this.updatePeripheral(I))return!1}return o},e.prototype.dragStart=function(t){var e=this.lines.indexOf(t.target);this.__index=e<3?e:-1,this.__startPoints=this.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e={x:t.x*this.multiple,y:t.y*this.multiple},n=~this.__index?[this.points[this.__index]]:this.linePoints,i=~this.__index?[this.__startPoints[this.__index]]:this.__startPoints;if(n)if(this.__index<2)n.forEach((function(t,n){t.x=i[n].x+e.x,t.y=i[n].y+e.y}));else{var r=Object(h["h"])({points:[this.points[0],this.points[3]]},{x:this.__startPoints[3].x+e.x,y:this.__startPoints[3].y+e.y}),o=Object(h["h"])({points:[this.points[1],this.points[2]]},{x:this.__startPoints[2].x+e.x,y:this.__startPoints[2].y+e.y});this.checkPeripheral(this.points.slice(0,2).map((function(t){return{x:t.x,y:t.y}})).concat([o,r]))&&(this.points[3].x=r.x,this.points[3].y=r.y,this.points[2].x=o.x,this.points[2].y=o.y)}},e.prototype.dragEnd=function(){delete this.dragStartPoints,delete this.__index,this.updateThickness(),this.__leaveHandle(),this.__lineLeave(),t.prototype.dragEnd.call(this)},e.prototype.delEvent=function(){var t=this;this.wrapPath.removeEventListener("mouseenter",this.__enterHandle,!1),this.wrapPath.removeEventListener("mouseleave",this.__leaveHandle,!1),this.lines.forEach((function(e){e.removeEventListener("mouseenter",t.__lineEnter,!1),e.removeEventListener("mouseleave",t.__lineLeave,!1),e.removeEventListener("click",t.__lineClick,!1)}))},e.prototype.destroy=function(){this.delEvent(),t.prototype.destroy.call(this)},e}(p["default"]),R=T,V=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),X=function(){return X=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]1&&!c;if(!~this.clones.indexOf(I)&&(l||A)){if(!A&&i.length>1){var u=i.find((function(t){var e=Object(h["z"])(t);return e.x-o.x<.1&&e.y-o.y<.1}));r=u||i.find((function(t){var e=Object(h["z"])(t),n=Math.abs(e.x-o.x),i=Math.abs(e.y-o.y);return n>.1&&n<.9||i>.1&&i<.9}))||i[0],a=r.lineVector||Object(h["z"])(r)}var p=X({},e);Math.abs(o.x)>Math.abs(o.y)?p.x=t.x:p.y=t.y,A&&(e=p),p.x===t.x&&p.y===t.y||(r=this.grentNewJoinLine(t,p.x===t.x&&p.y===t.y?e:p),C=!0,this.clones.push(I),t=r.points[Number(!r.points.indexOf(t))],a=Object(h["z"])(r),r.lineVerctor=a)}if(e=Object(h["l"])(a,r.points[0],e),r.lineVector=a,!C&&n&&!A&&(Math.abs(Math.abs(a.x)-Math.abs(o.x))<.9||Math.abs(Math.abs(a.y)-Math.abs(o.y))<.9)){var d=Object(h["F"])(r,{points:[g,{x:g.x+1e4*this.bkverctor.x,y:g.y+1e4*this.bkverctor.y}]});d&&(e=d)}}else{if(this.getPointJoinLines(g).length){var f=this.points.indexOf(t);e={x:this.bkpoints[f].x+this.points[s].x-this.bkpoints[s].x,y:this.bkpoints[f].y+this.points[s].y-this.bkpoints[s].y}}r=this}var y=Object(h["z"])({points:[g,e]});return!(isNaN(e.x)||isNaN(e.y)||n&&(Math.abs(Math.abs(this.bkverctor.x)-Math.abs(y.x))>.05||Math.abs(Math.abs(this.bkverctor.y)-Math.abs(y.y))>.05))&&(t.__state.direct=!0,t.x=e.x,t.y=e.y,t.update(),t.__state.direct=!1,r)},e.prototype.getVerPos=function(t){var e=Object(h["H"])(this);if(0===e.x)return{x:0,y:t.y};if(0===e.y)return{x:t.x,y:0};var n={points:[{x:-100*e.x,y:-100*e.y},{x:100*e.x,y:100*e.y}]},i=Object(h["B"])(n,t),r=Math.sqrt(Math.pow(t.x,2)+Math.pow(t.y,2)-Math.pow(i,2)),o=Object(h["d"])(n,{x:0,y:0},r),s=o[0],g=o[1];return Object(h["x"])({points:[s,t]})>Object(h["x"])({points:[g,t]})?g:s},e.prototype.checkJoinArch=function(){var t=p["default"].attaArch.get(this);if(!t||0===t.length)return!1;var e=t.map((function(t){return[t.linePoints[0].getLineInsertPoint(),t.linePoints[1].getLineInsertPoint()]})),n=t.some((function(t,n){if(!e[n][0]||!e[n][1]||!t.qualified(e[n]))return!0;if(!(t instanceof R))return!1;var i=t.getPeripheral(e[n].concat(t.points.slice(2)));return 0===i.length}));return n},e.prototype.updateArchs=function(){var t=p["default"].attaArch.get(this);if(t&&0!==t.length){var e=t.map((function(t){return t.lineChange().points}));t.forEach((function(t,n){if(t.__state.direct=!0,t.linePoints[0].__state.direct=!0,t.linePoints[1].__state.direct=!0,t.linePoints[0].x=e[n][0].x,t.linePoints[0].y=e[n][0].y,t.linePoints[1].x=e[n][1].x,t.linePoints[1].y=e[n][1].y,t.linePoints[0].update(),t.linePoints[1].update(),t.linePoints[0].__state.direct=!1,t.linePoints[1].__state.direct=!1,t instanceof R){var i=t.getPeripheral();t.points[2].__state.direct=!0,t.points[3].__state.direct=!0,t.points[2].x=i[0].x,t.points[2].y=i[0].y,t.points[3].x=i[1].x,t.points[3].y=i[1].y,t.points[2].update(),t.points[3].update(),t.points[2].__state.direct=!1,t.points[3].__state.direct=!1}t.__state.direct=!1,t.dragEnd(),t.update()}))}},e.prototype.changePos=function(t){var e=this;0===t.x&&0===t.y||(t=this.getVerPos(t)),this.directUpdate((function(){e.points.map((function(t){return{x:t.x,y:t.y}}));var n=[0,1],i=e.getPointJoinLines(e.points[0]),r=e.getPointJoinLines(e.points[1]),o=(e.points.map((function(t){return{x:t.x,y:t.y}})),!0);if(0===i.length)n=[1,0];else if(0!==r.length){var s=Object(h["i"])(e.bkverctor,Object(h["z"])(i[0])),g=Object(h["i"])(e.bkverctor,Object(h["z"])(r[0]));n=s>g?[0,1]:[1,0]}n.forEach((function(n,i){o&&(e.updatePoint(e.points[n],{x:e.bkpoints[n].x+t.x,y:e.bkpoints[n].y+t.y},!!i)||(o=!1))}));var A=e.renderer.processing.lines.filter((function(t){return~t.ele.points.indexOf(e.points[0])||~t.ele.points.indexOf(e.points[1])}));A.forEach((function(t){t.ele.updateArchs()}))}))},e.prototype.correct=function(){for(var t=this.renderer.processing,e=t.points.map((function(t){var e=t.ele;return e})),n=t.lines.map((function(t){var e=t.ele;return e})),i=n.filter((function(t){return~e.indexOf(t.points[0])||~e.indexOf(t.points[1])})),r=function(t,e,n){return~t.points.indexOf(e)&&~t.points.indexOf(n)},o=function(o){var g=n[o],A=e.find((function(t){return!~g.points.indexOf(t)&&(Object(h["x"])({points:[g.points[0],t]})<.02||Object(h["x"])({points:[g.points[1],t]})<.02)}));if(!A)return"continue";var a=0;if(n.some((function(t){return r(t,A,g.points[0])})))a=0;else{if(!n.some((function(t){return r(t,A,g.points[1])})))return"continue";a=1}var C=g.points[a],I=i.filter((function(t){return~t.points.indexOf(C)}));return I.forEach((function(t){var e=t.points.indexOf(C),n=t.points,i=B(n);i[e]=A,t.directUpdate((function(){t.points=i,t.listenPointDrag(i)}))})),i.filter((function(t){return~t.points.indexOf(A)&&~t.points.indexOf(C)})).forEach((function(e){t.lines.splice(t.lines.findIndex((function(t){var n=t.ele;return n===e})),1),e.destroy()})),C.destroy(),{value:s.correct()}},s=this,g=0;g=2?this.moveLineDis=Object(h["x"])({points:v}):delete this.moveLineDis}}),d.real.setAttribute("class","variable"),Object.defineProperty(d,"top",{get:function(){return s},set:function(t){s=t,this.wallPos&&this.wallPos()}}),Object.defineProperty(d,"bottom",{get:function(){return g},set:function(t){g=t,this.wallPos&&this.wallPos()}}),d}return at(e,t),e.prototype.setHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.fill="rgba(243, 255, 0, 0)"},e.prototype.rotate=function(t){var e=this;if(t===this.angle)return!1;var n=Object(h["b"])(this.points,t-this.angle);return!!this.check(n)&&(this.stop=!1,this.points.forEach((function(t,e){t.x=n[e].x,t.y=n[e].y})),this.nextTick((function(){return e.stop=!0})),!0)},e.prototype.grentNode=function(){var t=this,e=document.createElementNS(o["s"],"g");return this.wrapPath=document.createElementNS(o["s"],"path"),e.appendChild(this.wrapPath),this.nextTick((function(){t.lines.forEach((function(n){n.changeSelect=function(e){e&&t.changeSelect(e)},n.update(),e.appendChild(n.real)}))})),e},e.prototype.update=function(){var t=this;this.wrapPath&&(this.wrapPath.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.wrapPath.setAttribute("d","M "+this.points.map((function(t){var e=t.x,n=t.y;return e+" "+n})).join(" L ")+" z"),this.wrapPath.setAttribute("fill",this.fill),this.wrapPath.setAttribute("stroke",this.stroke)),this.lines.forEach((function(e){e.real.setAttribute("stroke",t.stroke)}))},e.prototype.checkWidth=function(t){var e=this;return void 0===t&&(t=this.points),!t.some((function(n,i){var r=t[i===t.length-1?0:i+1];return Object(h["x"])({points:[n,r]})<=e.minWidth}))},e.prototype.qualified=function(t,e){void 0===t&&(t=this.points),void 0===e&&(e=this.room);var n=this.renderer.processing.getRoomEles(e);return!!Object(h["p"])(n.ground,t)&&!n.hole.some((function(e){return Object(h["q"])(e,t)||Object(h["p"])(e,t)||Object(h["p"])(t,e)}))},e.prototype.check=function(t){return void 0===t&&(t=this.points),this.checkWidth(t)},e.prototype.intercept=function(t,e,n){e.x,e.y;var r=e.angle;return!i["f"].isNumber(r)||this.rotate(r)},e.prototype.directUpdate=function(t){var e=this;t.forEach((function(t,n){e.points[n].__state.direct=!0,e.points[n].x=t.x,e.points[n].y=t.y,e.points[n].__state.direct=!1,e.points[n].update()})),this.lines.forEach((function(t){t.update()})),this.update(),this.wallPos&&this.wallPos(),this.fromAsync&&this.fromAsync()},e.prototype.dragStart=function(t){if(this.lines.some((function(e){return e.real===t.target}))){var e=this.lines.find((function(e){return e.real===t.target}));this.moveLineDis=Object(h["x"])(e)}else this.initPoints=this.points.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;if(this.initPoints){this.stop=!1;var n=this.points.map((function(n,i){return{x:e.initPoints[i].x+t.x*e.multiple,y:e.initPoints[i].y+t.y*e.multiple}}));setTimeout((function(){e.directUpdate(n)}))}},e.prototype.dragEnd=function(){var t=this;this.nextTick((function(){t.stop=!0,delete t.moveLineDis})),delete this.initPoints},e.prototype.destroy=function(){this.points.forEach((function(t){return t.destroy()})),this.room=null,this.points=null,this.update=null,t.prototype.destroy.call(this)},e}(r["a"]),lt=ct,ut=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ut(e,t),e.prototype.grentNode=function(){var e=t.prototype.grentNode.call(this);return this.path1=document.createElementNS(o["s"],"path"),this.path2=document.createElementNS(o["s"],"path"),this.path1.setAttribute("stroke",this.stroke),this.path2.setAttribute("stroke",this.stroke),e.insertBefore(this.path1,e.childNodes[0]),e.insertBefore(this.path2,e.childNodes[0]),e},e.prototype.update=function(){t.prototype.update.call(this),this.path1.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path2.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path1.setAttribute("d","M "+this.points[0].x+" "+this.points[0].y+" L "+this.points[2].x+" "+this.points[2].y),this.path2.setAttribute("d","M "+this.points[1].x+" "+this.points[1].y+" L "+this.points[3].x+" "+this.points[3].y),this.path1.setAttribute("stroke",this.stroke),this.path2.setAttribute("stroke",this.stroke)},e}(lt),pt=ht,dt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dt(e,t),e.prototype.grentNode=function(){var e=t.prototype.grentNode.call(this);return this.g=document.createElementNS(o["s"],"g"),this.path1=document.createElementNS(o["s"],"path"),this.path2=document.createElementNS(o["s"],"path"),this.path1.setAttribute("stroke",this.stroke),this.path1.setAttribute("fill","rgba(0,0,0,0)"),this.path2.setAttribute("stroke",this.stroke),this.path2.setAttribute("fill","rgba(0,0,0,0)"),this.g.appendChild(this.path1),this.g.appendChild(this.path2),e.insertBefore(this.g,e.children[0]),e},e.prototype.update=function(){t.prototype.update.call(this);var e=Object(h["a"])(this.points),n=Object(h["x"])({points:[this.points[1],this.points[2]]})/this.multiple,i=Object(h["x"])({points:[this.points[2],this.points[3]]})/this.multiple,r=(i-5*this.width)/i,o=(n-5*this.width)/n;r=r<=0?1:r,o=o<=0?1:o,this.g.setAttribute("transform","translate("+e.x+","+e.y+") scale("+(rObject(h["x"])({points:[s,c]})?c:I;Object(h["A"])(this.points,l)||(l=Object(h["v"])(g)),this.path2.setAttribute("stroke",this.stroke),this.path2.setAttribute("stroke-width",(this.width*this.multiple).toString()),this.path2.setAttribute("d","M "+this.points[1].x+" "+this.points[1].y+" L "+l.x+" "+l.y+" L "+this.points[3].x+" "+this.points[3].y)},e}(lt),yt=ft,vt=n("9923"),bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mt=function(){return mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n\n \n \n \n ',this.out=e.querySelector(".ground-case-out"),this.in=e.querySelector(".ground-case-in"),this.left=e.querySelector(".ground-case-left"),this.right=e.querySelector(".ground-case-right"),this.nextTick((function(){t.linePoints&&(e.appendChild(t.linePoints[0].real),e.appendChild(t.linePoints[1].real))})),e},e.prototype.setHoverStyle=function(){this.fill="rgba(243, 255, 0, 0.8)"},e.prototype.setUnHoverStyle=function(){this.fill="rgba(0,0,0,0)"},e.prototype.getOutInPath=function(t,e,n,i,r,o,s){var g=this;void 0===o&&(o=0),void 0===s&&(s=0);var A,a=n,C=Object(h["f"])(this.attachment,t,a),I=Object(h["f"])(this.attachment,e,a),c={x:0,y:0},l=Object(h["x"])({points:[C[0],c]})30&&(n=30*this.multiple);var i=this.linePoints[0],r=this.linePoints[1],o=Object(h["d"])(this.attachment,i,t),s=o[0],g=o[1],A=Object(h["d"])(this.attachment,r,t),a=A[0],C=A[1];if(i=Object(h["x"])({points:[s,r]})>Object(h["x"])({points:[g,r]})?s:g,r=Object(h["x"])({points:[a,i]})>Object(h["x"])({points:[C,i]})?a:C,!isNaN(s.x))try{this.left.setAttribute("stroke-width",t.toString()),this.left.setAttribute("x",this.linePoints[0].x.toString()),this.left.setAttribute("y",this.linePoints[0].y.toString()),this.right.setAttribute("stroke-width",t.toString()),this.right.setAttribute("x",this.linePoints[1].x.toString()),this.right.setAttribute("y",this.linePoints[1].y.toString());var I=this.getOutInPath(i,r,t,e,n);this.ctl=[I[2],I[3]],this.out.setAttribute("fill",this.fill),this.out.setAttribute("stroke-width",e.toString()),this.out.setAttribute("stroke",this.stroke),this.out.setAttribute("d",I.map((function(t,e){return(e?"L ":"M ")+t.x+" "+t.y})).join(" "));var c=Object(h["g"])({points:this.linePoints},i,t),l=Object(h["g"])({points:this.linePoints},r,t);this.in.setAttribute("fill",this.fill),this.in.setAttribute("stroke-width",e.toString()),this.in.setAttribute("stroke",this.stroke),this.in.setAttribute("d",this.getOutInPath(c,l,t,e,n-Object(h["x"])({points:[c,i]}),I[0],I[1]).map((function(t,e){return(e?"L ":"M ")+t.x+" "+t.y})).join(" ")),this.attachment.update()}catch(u){}},e.prototype.dragStart=function(t){this.move=this.linePoints[0].real.contains(t.target)||this.linePoints[1].real.contains(t.target),this.dragStartPoints=this.linePoints.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this;this.move||this.linePoints.forEach((function(n,i){n.x=e.dragStartPoints[i].x+t.x*e.multiple,n.y=e.dragStartPoints[i].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){this.move=!1,delete this.dragStartPoints},e}(p["default"]),Tt=Dt,Rt=n("4f47"),Vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xt=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r100)){var s=n[this.highBorder],g=n[(this.highBorder+2)%n.length],A=.05,a=Object(h["x"])({points:[g.points[0],s.points[0]]}),C=Object(h["x"])(g),I=C/2-.05,c=.1;C<.5&&(I=C/2-C/10),a<1&&(c=a/10);var l={points:[Object(h["g"])(g,g.points[1],I),g.points[1]]},u={points:[Object(h["g"])(s,s.points[1],I),s.points[1]]};if(u.points.concat(l.points).some((function(t){return isNaN(t.x)||isNaN(t.y)})))return this.destroy();for(var p=0;pObject(h["x"])({points:[N[1],x]})?N[0]:N[1],D=Object(h["f"])({points:O},M,E),T=Object(h["x"])({points:[D[0],x]})>Object(h["x"])({points:[D[1],x]})?D[0]:D[1],R=Object(h["a"])([k,L,T,M]),V=Object(h["w"])({points:[k,L]})+90;this.image.setAttribute("width",S.toString()),this.image.setAttribute("height",E.toString()),this.image.setAttribute("x",(R.x-S/2).toString()),this.image.setAttribute("y",(R.y-E/2).toString()),this.image.setAttribute("transform","rotate("+V+", "+R.x+", "+R.y+")")}}},e.prototype.click=function(e){t.prototype.click.call(this,e)},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(R),Gt=Wt,Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_t=function(){return _t=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0?e:A&&A>0?A:C&&C>0?C:100+2*this.padding,n=n&&n>0?n:a&&a>0?a:I&&I>0?I:100+2*this.padding,e<0&&(e=100,n=100),0===t.vertex.length?g.render.props=Object(i["d"])(e,n,{vertex:[{x:-15,y:-15},{x:-15,y:15},{x:15,y:-15},{x:15,y:15}]},s):(e&&n&&(g.render.props=Object(i["d"])(e,n,t,s)),g.render.props.scale<=0&&(g.render.props={width:0,height:0,multiple:0,scale:1,top:0,left:0})),console.log(e,n),g.render.adaptLayer(e,n),r["a"].update(g.render)}}},t.prototype.init=function(){window.addEventListener("resize",this.resizeHandle,!1)},t.prototype.destroy=function(){for(var t in window.removeEventListener("resize",this.resizeHandle,!1),this.processings.forEach((function(t){t.show=!1,t.destroy()})),this.isDestroy=!0,this)"function"===typeof this[t]?this[t]=function(){}:delete this[t]},t}(),Ae=ge,ae=function(){return ae=Object.assign||function(t){for(var e,n=1,i=arguments.length;n.1?{error:!0,msg:vt["a"].t("modules.model.error_location",{widget:""}),obj:null}:[a,C];var I=n(a,C,o["e"][r].width);return i["f"].isArray(I)?[a,I,e]:{error:!0,msg:I}},s=function(e,n){var i=t.processing,r=o["e"][n].width,s=o["e"][n].tick,g=r/2,A=s/2,a=[{x:e.x-g,y:e.y+A},{x:e.x+g,y:e.y+A},{x:e.x+g,y:e.y-A},{x:e.x-g,y:e.y-A}],C=(ae(ae({},lt.prototype),{renderer:i.render,minWidth:.1}),[]);return a.forEach((function(t){C.push(t.x),C.push(t.y)})),[C]},g=function(e,n,g,a,C){void 0===g&&(g=null),void 0===a&&(a=null),void 0===C&&(C=!1);var I=t.processing,c=I.render;if(A[e]){var l,u=C?c.screenToRealPoint(n):n;if(~ce.indexOf(e)||~le.indexOf(e)){var h=~le.indexOf(e)?s(u,e):r(u,e);if(!i["f"].isArray(h))return h;var p=A[e].apply(A,Ce(h,[g,a]));if("string"===typeof p)return{error:!0,msg:p,obj:null};l=p}else if(~Ie.indexOf(e)&&(l=A[e](u),"string"===typeof l))return{error:!0,msg:l,obj:null};return t.preservation&&t.preservation(),{error:!1,msg:vt["a"].t("modules.model.success",{widget:o["a"][e]}),obj:l}}},A=(e={},e[o["m"]]=function(e,n){var i=t.processing;i.insertModel=!0;var r=i.addPoint(ae({id:i.getNewPointId()},n));i.data.vertex.push({id:r.id,x:r.ele.x,y:r.ele.y});var o=i.lineInsertPoint(e,r.ele),s=o.lines,g=o.promis,A=o.ret;if(A)return g.then((function(){return i.insertModel=!1})),s.map((function(t){return t.ele}))},e[o["f"]]=function(e,n,i,r,o){var s=t.processing;return s.addDoor({pos:[n[0].x,n[0].y,n[1].x,n[1].y],top:r,bottom:o,line:s.getLineId(e),start:!1,within:0}).ele},e[o["g"]]=function(e,n,i,r,o){var s=t.processing;return s.addDoorleaf({pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e)}).ele},e[o["h"]]=function(e,n,i,r,o){var s=t.processing;return s.adddDoubleDoor({pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e),start:!1,within:0}).ele},e[o["o"]]=function(e,n,i,r,o){var s=t.processing;return s.addSlideDoor({within:0,pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e)}).ele},e[o["k"]]=function(e,n,i,r,o){var s=t.processing;return s.addGroundCase({pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e)}).ele},e[o["b"]]=function(e,n,i,r,o){var s=t.processing;return s.addBayCase({pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e),within:0}).ele},e[o["c"]]=function(e,n,i,r,o){var s=t.processing;return s.addCase({pos:[n[0].x,n[0].y,n[1].x,n[1].y],line:s.getLineId(e)}).ele},e[o["d"]]=function(e,n,i){var r=t.processing,s=Object(h["f"])(e,n[0],o["e"][o["d"]].width),g=(s[0],s[1]),A=g;if(!A)return vt["a"].t("modules.model.error_widget",{widget:vt["a"].t("modules.model.column")});var a=Object(h["f"])(e,n[1],o["e"][o["d"]].tick),C=a[0],I=a[1],c=Object(h["x"])({points:[C,A]})>Object(h["x"])({points:[I,A]})?I:C;return r.addColumn({pos:[n[0].x,n[0].y,n[1].x,n[1].y,A.x,A.y,c.x,c.y],line:r.getLineId(e)}).ele},e[o["p"]]=function(e,n,i){var r=t.processing,s=Object(h["f"])(e,n[0],o["e"][o["p"]].width),g=(s[0],s[1]),A=g,a=Object(h["f"])(e,n[1],o["e"][o["p"]].tick),C=a[0],I=a[1],c=Object(h["x"])({points:[C,A]})>Object(h["x"])({points:[I,A]})?I:C;return r.addStair({pos:[n[0].x,n[0].y,n[1].x,n[1].y,A.x,A.y,c.x,c.y],line:r.getLineId(e),highBorder:3,top:e.top,bottom:e.bottom}).ele},e[o["t"]]=function(e){var n=t.processing;return n.addTagging({pos:[e.x,e.y],title:"",content:"",showTitle:!0,showContent:!0}).ele},e[o["i"]]=function(e,n,i,r){var o=t.processing;return o.addFurnColumn({pos:e,angle:0}).ele},e[o["j"]]=function(e,n,i,r){var o=t.processing;return o.addFurnFlue({pos:e,angle:0}).ele},e[o["l"]]=function(e){t.processing;var n=o["e"][o["l"]].width,i={points:[{x:e.x-n/2,y:e.y},{x:e.x+n/2,y:e.y}]},r=t.processing.lines.some((function(t){var e=t.ele;return Object(h["E"])(e,i)}));if(r&&(i={points:[{x:e.x-n/2,y:e.y},{x:e.x+n/2,y:e.y}]},r=t.processing.lines.some((function(t){var e=t.ele;return Object(h["E"])(e,i)})),r))return vt["a"].t("modules.model.error_widget",{widget:vt["a"].t("modules.model.line")});var s=t.processing.furnColumns.concat(t.processing.furnFlues).map((function(t){return t.ele}));if(s.every((function(t){return!Object(h["q"])(i.points,t.points)&&!Object(h["p"])(i.points,t.points)&&!Object(h["p"])(t.points,i.points)}))){var g=t.processing.addRoom(i);return g[0].ele}return vt["a"].t("modules.model.error_widget",{widget:vt["a"].t("modules.model.line")})},e[o["n"]]=function(e){return t.processing.addLine(e).ele},e);t.increase=g;var a=t.destroy;t.destroy=function(){for(var e=[],n=0;nk.y?M.setAttribute("d","M "+t.x+" "+t.y+" L "+(e.x-N)+" "+e.y):M.setAttribute("d","M "+t.x+" "+t.y+" L "+e.x+" "+(e.y-N)),k.x>k.y?D.setAttribute("d","M "+(e.x-L)+" "+t.y+" L "+e.x+" "+e.y):D.setAttribute("d","M "+t.x+" "+(e.y-L)+" L "+e.x+" "+e.y)),c.appendChild(D),c.appendChild(M),m.style.display="none",c.appendChild(S),c},we=function(t){function e(e){var n=e.processing,i=e.padding,r=void 0===i?10:i,o=e.spacing,s=void 0===o?4:o,g=e.minPX,A=void 0===g?50:g,a=e.width,C=void 0===a?1:a,I=e.showBottom,c=void 0===I||I,l=e.showTop,u=void 0===l||l,h=e.showLeft,p=void 0===h||h,d=e.showRight,f=void 0===d||d,y=e.surround,v=void 0!==y&&y,b=e.stroke,m=void 0===b?"#fff":b,w=e.company,x=void 0===w?fe:w,O=e.hollow,P=void 0===O||O,j=de(e,["processing","padding","spacing","minPX","width","showBottom","showTop","showLeft","showRight","surround","stroke","company","hollow"]),S=t.call(this,pe({renderer:n.render,minPX:A,width:C,showBottom:c,showTop:u,showLeft:p,showRight:f,company:x,surround:v,stroke:m,hollow:P},j))||this;return S.padding=r,S.spacing=s,S.processing=n,Object.defineProperty(S,"points",{get:function(){return this.processing.points}}),S.update(),S}return he(e,t),e.prototype.grentNode=function(){this.top=document.createElementNS(o["s"],"g"),this.left=document.createElementNS(o["s"],"g"),this.right=document.createElementNS(o["s"],"g"),this.bottom=document.createElementNS(o["s"],"g");var t=document.createElementNS(o["s"],"g");return t.appendChild(this.top),t.appendChild(this.left),t.appendChild(this.right),t.appendChild(this.bottom),t},e.prototype.calcSplit=function(){var t=this.processing.render,e=this.minPX,n=Object(h["x"])({points:[t.screenToRealPoint({x:0,y:0}),t.screenToRealPoint({x:e,y:0})]}),i=Object(h["x"])({points:[t.screenToRealPoint({x:0,y:0}),t.screenToRealPoint({x:0,y:e})]}),r=this.points.map((function(t){var e=t.ele;return e})),o=[],s=[],g=[],A=[],a=function(t,e,o){var s,g;r.sort(e),r.forEach((function(e){return 0===t.length||e[o]>t[t.length-1]?t.push(e[o]):e[o]2&&t.splice(t.length-2,2,t[t.length-1])};return a(o,(function(t,e){return t.x-e.x?t.x-e.x:e.y-t.y}),"y"),a(g,(function(t,e){return e.x-t.x?e.x-t.x:e.y-t.y}),"y"),a(s,(function(t,e){return t.y-e.y?t.y-e.y:e.x-t.x}),"x"),a(A,(function(t,e){return e.y-t.y?e.y-t.y:e.x-t.x}),"x"),{left:o,top:s,right:g,bottom:A}},e.prototype.update=function(){var t=this;if(0!==this.points.length&&0!==this.processing.render.props.width){var e=this.processing.render,n=10*this.width*this.multiple,i=this.calcSplit(),r=i.left,o=i.right,s=i.top,g=i.bottom,A=e.screenToRealPoint({x:this.padding,y:this.padding}),a=e.screenToRealPoint({x:e.realWidth+2*this.processing.cad.padding-this.padding,y:e.realHeight+2*this.processing.cad.padding-this.padding});if(this.surround){var C=this.points.map((function(t){return t.ele.x})),I=this.points.map((function(t){return t.ele.y})),c=Math.max.apply(Math,C),l=Math.min.apply(Math,C),u=Math.max.apply(Math,I),h=Math.min.apply(Math,I),p=e.screenToRealPoint({x:this.padding,y:this.padding}),d=p.x,f=p.y,y=e.screenToRealPoint({x:0,y:0}),v=y.x,b=y.y;A={x:l-(d-v),y:h-(f-b)},a={x:c+(d-v),y:u+(f-b)}}var m=function(e,i,r,o){for(var s=0;sObject(h["x"])({points:[a.points[1],l]})?l:c,y=Object(h["x"])({points:[C.points[1],p]})>Object(h["x"])({points:[C.points[1],d]})?d:p;this.arc.setAttribute("d","M "+o.x+" "+o.y+" L "+f.x+" "+f.y+" A "+g+" "+g+" 0 0 1 "+y.x+" "+y.y+" Z"),this.real.setAttribute("transform","rotate("+(this.angle||0)+" "+o.x+" "+o.y+")"),this.simple?(2===this.simple&&(this.topText.style.display="none",this.bottomText.style.display="none"),this.leftText.style.display="none",this.rightText.style.display="none",this.bg.style.display="none",this.inner.style.display="none",this.arc.style.display="none"):(this.topText.style.display="inherit",this.bottomText.style.display="inherit",this.leftText.style.display="inherit",this.rightText.style.display="inherit",this.bg.style.display="inherit",this.inner.style.display="inherit",this.arc.style.display="inherit")}},e}(r["a"]),De=Le,Te=function(){for(var t=0,e=0,n=arguments.length;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0;return{previous:r,next:t0?1.1:.9);r>.1&&(n.props.scale=r,n.adaptLayer(n.layer.offsetWidth-2*t.padding,n.layer.offsetHeight-2*t.padding),t.propsChange&&t.propsChange())};t.openMouseHandle=function(){var i=t.layer;i.addEventListener("mousedown",e,!1),i.addEventListener("mousewheel",n,!1)},t.closeMouseHandle=function(){var i=t.layer;i.removeEventListener("mousedown",e,!1),i.removeEventListener("mousewheel",n,!1)};var i=t.destroy;t.destroy=function(){for(var e=[],n=0;n0)this.path.setAttribute("d","M "+this.local.map((function(t){var e=t.x,n=t.y;return e+" "+n})).join(" L "));else if(this.path.setAttribute("d",""),this.dialog)return this.dialog=0;this.items.forEach((function(e){try{t.real.removeChild(e)}catch(n){}})),this.items=[],this.temp.style.display=this.show?"initial":"none";var i=this.local.length-this.items.length;if(i>0)for(var r=0;ri;r--){var s=this.items.shift();this.real.removeChild(s)}for(r=0;r0&&n.push({head:i,body:r})}})),n},e.prototype.notice=function(){0!==this.dialog?this.real.appendChild(this.dialogLayer):jn(this.real,this.dialogLayer)&&this.real.removeChild(this.dialogLayer)},e.prototype.intercept=function(t,e){var n=this,i=e.active;if(!i)return!0;var r=this.calcGroup(),o=r.find((function(t){var e=t.head,n=t.body;return e===i||~n.indexOf(i)}));if(this.nextTick((function(){n.dialog=o?{pos:o.head,items:Pn(o.body)}:0})),this.active&&this.items[this.local.indexOf(this.active)]){var s=this.items[this.local.indexOf(this.active)],g=s.querySelector("circle"),A=s.querySelector("text");A.setAttribute("fill","#fff"),g.setAttribute("stroke","#fff"),s.setAttribute("class","active")}return!0},e.prototype.setActive=function(t){this.active=t},e.prototype.click=function(t){t.stopPropagation();for(var e=0;eObject(h["x"])({points:[t.linePoints[0],o]})?(t.linePoints[0].x=o.x,t.linePoints[0].y=o.y,t.linePoints[1].x=r.x,t.linePoints[1].y=r.y):(t.linePoints[0].x=r.x,t.linePoints[0].y=r.y,t.linePoints[1].x=o.x,t.linePoints[1].y=o.y),t.update(),t.__state.direct=!1}}},maxWidth:{get:function(){var e=[t.attachment],n=[],i=[],r=function(e,n,i){var r=e.linePoints||e.points;return{dis:Object(h["x"])({points:[t.linePoints[n],r[i]]}),point:r[i]}};e.forEach((function(e){e!==t&&(n.push(r(e,0,0)),n.push(r(e,0,1)),i.push(r(e,1,0)),i.push(r(e,1,1)))})),n.sort((function(t,e){return t.dis-e.dis})),i.sort((function(t,e){return t.dis-e.dis}));var o=n[0].dis>i[0].dis?[t.linePoints[1],i[0].point]:[t.linePoints[0],n[0].point];return Number((2*Object(h["x"])({points:o})+Object(h["x"])({points:t.linePoints})).toFixed(2))}},minWidth:{get:function(){return 0}}})},p=function(e){Object.defineProperties(e,{estart:{get:function(){return e.start},set:function(n){n&&t.processings.forEach((function(t){t.isLoadEles?t.doors.forEach((function(t){t.ele.start=!1})):t.cacheData.door.forEach((function(t){t.start=!1}))})),e.start=n,t.preservation()}}})},d=function(t){Object.defineProperties(t,{tick:{get:function(){return Math.max(Number(Object(h["x"])({points:[t.points[0],t.points[3]]}).toFixed(2)),Number(Object(h["x"])({points:[t.points[1],t.points[2]]}).toFixed(2)))},set:function(e){e<=0||e===t.oldVal||(t.__state.direct=!0,t.oldVal=e,t.thickness=e,t.updatePeripheral(),t.update(),t.__state.direct=!1)}},maxTick:{get:function(){return 10}},minTick:{get:function(){return 0}}})};e.addDoorleaf=function(){for(var t=[],e=0;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0?arguments[0]:void 0)}}),{add:function(t){return i.def(r(this,o),t=0===t?0:t,t)}},i)},"504c":function(t,e,n){var i=n("9e1e"),r=n("0d58"),o=n("6821"),s=n("52a7").f;t.exports=function(t){return function(e){var n,g=o(e),A=r(g),a=A.length,C=0,I=[];while(a>C)n=A[C++],i&&!s.call(g,n)||I.push(t?[n,g[n]]:g[n]);return I}}},"50c4":function(t,e,n){"use strict";var i=n("cb2e"),r=n.n(i);r.a},5259:function(t,e,n){},"532cb":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var i,r=.05,o=15,s={isShift:!1};document.documentElement.addEventListener("keydown",(function(t){"Shift"===t.key&&(console.log("-------"),s.isShift=!0,clearTimeout(i),i=setTimeout((function(){return s.isShift=!1}),500))}))},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"676c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.deskTags,(function(e){return n("div",{key:e.sid,staticClass:"com-player-tag tag-container",class:t.getLayerClass(e),attrs:{id:"tag"+e.sid},on:{click:function(n){return t.gotoTag(e)}}},[n("div",{staticClass:"tag-body"},[0===e.orderStatus?n("div",{staticClass:"content show"},[n("p",[t._v(t._s(e.deskName))]),n("span",{staticClass:"button",on:{click:function(n){return t.reserve(e)}}},[t._v("立即预订")])]):t._e(),2===e.orderStatus?n("div",{staticClass:"content show"},[n("img",{attrs:{src:e.reserveUserAvatar}}),n("div",[n("h5",[t._v(t._s(t.detail.canteenName)+" "+t._s(e.deskName))]),n("p",[t._v("时间"),n("span",[t._v(t._s(e.reserveTime.substring(5,16)))])])])]):t._e(),n("div",{staticClass:"label"},[2!==e.orderStatus?[n("i",{staticClass:"iconfont iconreserv_hot"}),t._m(0,!0),n("span")]:[n("img",{staticClass:"bg",attrs:{src:"static/img/apps/reserve/reserv_hot_checked_bg.png"}}),n("img",{staticClass:"sf",attrs:{src:"static/img/apps/reserve/reserv_hot_checked_sofa.png"}}),t._m(1,!0)]],2),n("i",{staticClass:"tag-close"})])])})),0)},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dh-layer"},[n("i",{staticClass:"iconfont iconreserv_arrows"})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dh-layer"},[n("img",{staticClass:"arrows",attrs:{src:"static/img/apps/reserve/reserv_hot_checked_arrows.png"}})])}],o=(n("8e6e"),n("456d"),n("96cf"),n("1da1")),s=(n("7514"),n("ac6a"),n("ade3")),g=n("2f62"),A=n("147f"),a=n("fa04");function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function I(t){for(var e=1;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]90&&(n=180-n),{line:t,angle:Object(o["c"])(e[0],t)}})),i=n.map((function(t){return A(A({},t),{angle:t.angle>90?180-t.angle:t.angle})})).sort((function(t,e){var n=t.angle,i=e.angle;return n-i}));if(i[0].angle<=h){var r=i[0].line;C=Object(o["h"])(r,C||I)}var s=n.find((function(t){var e=t.angle;return e>90-h&&e<90+h&&90!==e}));s&&(C=Object(o["l"])(Object(o["H"])(s.line),s.line.points.find((function(t){return~e[0].points.indexOf(t)})),C||I))},d=0;d.1||t.attaArch.get(e)&&t.attaArch.get(e).length)})),i?[4,i.judgeMerge()]:[3,4]));case 1:return r=a.sent(),r?[4,new Promise((function(t){r.adopt=!1,i.nextTick((function(){r.nextTick((function(){i.destroy(),i.destoryPoint(r),t()}))}))}))]:[3,3];case 2:a.sent(),a.label=3;case 3:return[3,8];case 4:s=this.renderer.processing.lines.map((function(t){var e=t.ele;return e})).filter((function(t){return~t.points.indexOf(A)})),g=0,a.label=5;case 5:return g0&&a>A&&(a=A);for(var C=0;C=0?(I=h.substr(0,p),c=h.substr(p+1)):(I=h,c=""),l=decodeURIComponent(I),u=decodeURIComponent(c),i(s,l)?r(s[l])?s[l].push(u):s[l]=[s[l],u]:s[l]=u}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},"99bd":function(t,e,n){"use strict";var i=n("6d92"),r=n.n(i);r.a},"9a47":function(t,e,n){"use strict";var i=n("6ee9"),r=n.n(i);r.a},a336:function(t,e,n){},a345:function(t,e,n){"use strict";n("ac6a"),n("5df3"),n("f400"),n("6b54"),n("fd24");var i=n("c815"),r=n("71fb"),o=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(){return s=Object.assign||function(t){for(var e,n=1,i=arguments.length;nt.target.width?t.target.style.width=t.target.width/t.target.height*320+"px":t.target.width>320&&(t.target.style.width="100%",t.target.style.height="auto"),this.$nextTick((function(){return e.$bus.emit("hotspot/Tag/Panel")}))},loadBig:function(t){this.loadingZoomIn=!1},onTouchstart:function(t){this.touchstartY=t.touches[0].clientY},onTouchmove:function(t){if(this.$viewer){var e=t.touches[0],n=this.$viewer.scrollTop,i=this.$viewer.clientHeight,r=this.$viewer.scrollHeight;(e.clientY>this.touchstartY&&0===n||e.clientY=r)&&t.preventDefault()}}}},Pt=Ot,jt=(n("f1ab"),Object(b["a"])(Pt,pt,dt,!1,null,"5c4fb244",null)),St=jt.exports,Et=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tag-content"},[n("description"),n("div",{directives:[{name:"show",rawName:"v-show",value:"video"==t.tag.mediaType&&t.tag.fileName[t.tag.mediaType],expression:"tag.mediaType == 'video' && tag.fileName[tag.mediaType]"}],staticClass:"tag-content-media",style:{height:t.height}},[t.show?t._e():n("spinner"),n("video",{class:{show:t.show},attrs:{id:t.id,src:t.src,poster:t.poster,"x5-video-player-type":"h5-page",controlslist:"nodownload",disablepictureinpicture:"","webkit-playsinline":"","x-webkit-airplay":"",playsinline:"",controls:""},on:{canplay:t.canplay}})],1)],1)},kt=[],Mt=n("ff11"),Nt=n("617a");function Lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dt(t){for(var e=1;et.target.videoHeight?(n=Number(i/(t.target.videoWidth/t.target.videoHeight)).toFixed(0),n<100&&(n=100)):n=i,n>0&&(this.height=n+"px !important",this.$nextTick((function(){return e.$bus.emit("hotspot/Tag/Panel")}))),this._needPlay&&this.$el.querySelector("video").play(),this._needPlay=!0,this.show=!0}}},Vt=Rt,Xt=(n("0814"),Object(b["a"])(Vt,Et,kt,!1,null,"6398e833",null)),Wt=Xt.exports,Gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tag-content"},[n("description",[t.src?n("div",{staticClass:"tag-content-audio",class:{play:t.isPlay},on:{click:t.onPlay}},[n("span"),n("span"),n("span"),n("span")]):t._e()])],1)},Bt=[];function _t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Qt(t){for(var e=1;ethis.touchstartY&&0===n||e.clientY=r)&&t.preventDefault()}}}},$t=qt,te=(n("04b2"),Object(b["a"])($t,Yt,Kt,!1,null,"63380fc1",null)),ee=te.exports;function ne(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ie(t){for(var e=1;e1?{width:"100%"}:{}},on:{close:function(e){t.showDetail=!1}}},[t.tag.goods.length>1?n("div",{staticClass:"pages"},[n("span",[t._v(t._s(t.index))]),n("span",[t._v("/"+t._s(t.tag.goods.length))])]):t._e(),n("div",{staticClass:"close",class:{single:1==t.tag.goods.length},on:{click:function(e){t.showDetail=!1}}},[n("i",{staticClass:"iconfont icon_close"})]),n("div",{staticClass:"swiper-container swiper-goods"},[n("div",{staticClass:"swiper-wrapper"},t._l(t.tag.goods,(function(e){return n("div",{key:e.id,staticClass:"swiper-slide"},[n("div",{staticClass:"img-list"},[n("div",{staticClass:"swiper-container swiper-imgs"},[n("div",{staticClass:"swiper-wrapper"},t._l(e.imageList,(function(t,e){return n("div",{key:e,staticClass:"swiper-slide",style:{"background-image":"url("+t.split("?x-oss-process")[0]+"?x-oss-process=image/resize,m_fill,h_300,w_300)"},attrs:{"data-url":t}})})),0),n("div",{staticClass:"swiper-pagination"})])]),n("div",{staticClass:"good-desc"},[n("div",{staticClass:"name"},[t._v(t._s(e.name))]),"fashilong"==t.origin&&e.retailPrice>0||"fashilong"!=t.origin?n("div",{staticClass:"price"},[n("span",[t._v("¥")]),t._v("\n "+t._s(e.retailPrice)+"\n ")]):t._e(),n("div",{staticClass:"desc"},[n("div",[t._v(t._s(e.desc))]),n("button",{on:{click:function(n){return t.gobuy(e)}}},[t._v("查看详情")])])])])})),0)])]):t._e(),t.bigImageURL?n("XWindow",{attrs:{"can-close":!0,"set-style":{width:"100%",height:"100% "}},on:{close:function(e){t.bigImageURL=null}}},[n("div",{staticClass:"big-image",style:{backgroundImage:"url("+t.bigImageURL.split("?x-oss-process")[0]+"?x-oss-process=image/resize,m_fill,h_1344,w_750)"}},[n("div",{staticClass:"close",on:{click:function(e){t.bigImageURL=null}}},[n("i",{staticClass:"iconfont icon_close"})])])]):t._e()],1)},Ce=[],Ie=(n("96cf"),n("1da1")),ce=(n("7514"),n("67db"));function le(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ue(t){for(var e=1;e1&&(re=new Swiper(t.$el.querySelector(".swiper-imgs"),{loop:!0,pagination:{el:".swiper-pagination"}})):(t.index=1,re=new Swiper(t.$el.querySelector(".swiper-goods"),{effect:"coverflow",grabCursor:!0,centeredSlides:!0,slidesPerView:1.2,coverflowEffect:{rotate:40,stretch:0,depth:100,modifier:1,slideShadows:!0},on:{transitionEnd:function(){re&&(t.index=re.activeIndex+1)}}})),"fashilong"==t.origin){var e=t;$(t.$el).find(".swiper-imgs .swiper-slide").on("click",(function(){e.bigImageURL=$(this).data("url")}))}})):re&&(re.destroy(!0,!0),re=null),this.isNotNotice?this.isNotNotice=null:this.$bus.emit("shop/tag/onshow",this.showDetail)}},computed:ue(ue({},Object(g["b"])({tag:"hotspot/tag",page:"page",player:"player",status:"guide/status"})),{},{component:function(){if(this.tag&&!this.player.showSplit&&(!this.$config.isMobile||"hotspot"!=this.page)){if(!this.tag.mediaType)return"TagNote";var t=this.tag.mediaType,e=t.charAt(0).toUpperCase(),n=t.substr(1);return"Tag".concat(e+n)}},showClose:function(){return!!this.$config.isMobile||!(this.$config.isMobile||!this.status.isRecording)},maxGoods:function(){return this.tag&&this.tag.goods?this.tag.goods.slice(0,9):[]}}),created:function(){var t=this,e=this;function n(t,n){setTimeout((function(){e.showDetail=t,e.isNotNotice=n}),100)}function i(t){re&&re.slideTo(t)}function r(t){e.bigImageURL=t}function o(t){e.show=t}function s(t){e.isCover=!!t&&t.isCoverVideo}this.$bus.on("shop/tag/bigimg",r),this.$bus.on("shop/tag/show",n),this.$bus.on("shop/tag/switch",i),this.$bus.on("player/tag/show",o),this.$bus.on("tag/status",s),this.$once("hook:beforeDestroy",(function(){t.$bus.off("shop/tag/show",n),t.$bus.off("shop/tag/switch",i),t.$bus.off("player/tag/show",o),t.$bus.off("tag/status",s)})),Nt["a"].detectWeixin()&&top.wx.miniProgram.getEnv((function(e){e.miniprogram&&(t.isMiniprogram=!0)}))},methods:{onDetailClick:function(t){var e=this;this.alized.special&&this.alized.list&&this.alized.list.some((function(t){var n=t.hotId;return n===e.tag.sid}))?this.$bus.emit("selectGrave",t):setTimeout((function(){e.showDetail=!0}),100)},gobuy:function(t){this.isMiniprogram||Nt["a"].urlHasValue("shopApp")?this.$bus.emit("shop/tag/goods/detail",t):t.realShopUrl?window.location.href=t.realShopUrl:window.parent.wx.miniProgram.navigateTo({url:"/pages/goods/goods?id="+t.id})}},mounted:function(){var t=Object(Ie["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n("33e9").default();case 2:this.alized=t.sent,this.alized.special&&this.$bus.on("graveReadySuccess",(function(t){return e.alized=t}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},de=pe,fe=(n("9a47"),n("c8d2"),Object(b["a"])(de,ae,Ce,!1,null,"0780a8c6",null)),ye=fe.exports,ve=n("f121"),be={data:function(){return{TagReserve:null}},mounted:function(){"reserve"===ve["a"].name&&(this.TagReserve=n("676c").default)},components:{Tags:Ae,TagsShop:ye}},me=be,we=(n("22c4"),Object(b["a"])(me,F,H,!1,null,"79ef260c",null)),xe=we.exports,Oe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widgets-design-option"},[n("div",{staticClass:"delete-ruler"},[n("li",[t._v(t._s(t.$t("modules.base.delete_measure_line")))])])])},Pe=[],je={},Se=Object(b["a"])(je,Oe,Pe,!1,null,null,null),Ee=Se.exports,ke=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.name,{tag:"component"})},Me=[],Ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widgets-navbar-pc",class:{"show-gallery":!t.isGuide&&t.showGallery}},[n("div",{staticClass:"nav-buttons"},[n("div",{staticClass:"nav-buttons-left"},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showGuide,expression:"showGuide"}],staticClass:"nav-button",class:{group:!t.isGuide,disable:0==t.modeCanSwitch&&!t.status.isPlaying},on:{click:function(t){t.stopPropagation()},touchstart:function(t){t.stopPropagation()},mousedown:function(t){t.stopPropagation()},pointerdown:function(t){t.stopPropagation()}}},[n("li",{staticClass:"play split"},[n("i",{staticClass:"iconfont icon_play",class:{icon_play:!t.status.isPlaying,icon_suspend:t.status.isPlaying},on:{click:t.onGuidePlay}})]),n("li",{directives:[{name:"show",rawName:"v-show",value:!t.isGuide,expression:"!isGuide"}],on:{click:function(e){return t.onSwtichGallery()}}},[n("i",{staticClass:"iconfont icon_forward"})])]),n("ul",{staticClass:"nav-button group",class:{disable:t.disable}},[t.showNavigations.pano?n("li",{class:{active:"pano"==t.mode},on:{click:function(e){return t.swtichMode("pano")}}},[n("i",{staticClass:"iconfont icon_tour"})]):t._e(),t.showNavigations.m2d?n("li",{class:{active:"2d"==t.mode},on:{click:function(e){return t.swtichMode("2d")}}},[n("i",{staticClass:"iconfont icon_2d"})]):t._e(),t.showNavigations.m3d?n("li",{class:{active:"3d"==t.mode},on:{click:function(e){return t.swtichMode("3d")}}},[n("i",{staticClass:"iconfont icon_3d"})]):t._e()]),n("Floor")],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showRight,expression:"showRight"}],staticClass:"nav-buttons-right",class:{disable:t.disable}},[n("ul",{staticClass:"nav-button"},[n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNavigations.vr,expression:"showNavigations.vr"}],class:{active:"vr"==t.mode},on:{click:function(e){return t.swtichMode("vr")}}},[n("i",{staticClass:"iconfont icon_vr"})]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNavigations.measure,expression:"showNavigations.measure"}],class:{active:"measure"==t.mode},on:{click:function(e){return t.swtichMode("measure")}}},[n("i",{staticClass:"iconfont icon_staff"})]),n("li",{directives:[{name:"show",rawName:"v-show",value:t.musicIndex>0,expression:"musicIndex > 0"}],staticClass:"music",class:{playing:t.isMuiscPlaying},on:{click:t.onMusicClick}}),n("li",{directives:[{name:"show",rawName:"v-show",value:!t.$config.isEdit,expression:"!$config.isEdit"}],staticClass:"fullscreen",on:{click:t.onFullScreen}},[n("i",{staticClass:"iconfont",class:[t.isFullscreen?"iconscene_window":"iconscene_full"]})])])])]),n("div",{staticClass:"gallery"},[n("div",{staticClass:"frame",class:{disable:(!t.modeCanSwitch||!t.canSwitchRoom)&&!t.status.isPlaying}},[n("ul",t._l(t.roomLabels,(function(e,i){return n("li",{key:i,class:{active:i==t.index},on:{click:function(e){return t.onFrameActive(i)}}},[n("span",[t._v(t._s(e.label))]),i==t.index&&t.status.isPlaying?n("div",{staticClass:"progress"},[n("div",{staticClass:"value",style:{width:t.progress+"%"}})]):t._e()])})),0)])]),t.metadata&&t.metadata.vrNum?n("a",{staticClass:"nav-decor",attrs:{href:"/decor.html?m="+t.$config.projectNum+"&m2="+t.metadata.vrNum}},[n("img",{attrs:{src:t.$config.getStaticResource("img/decor.png"),alt:""}})]):t._e()])},Le=[],De=n("b235"),Te=n("3b09");function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ve(t){for(var e=1;e0}}),methods:{swtichMode:function(t){if(this.mode!=t){if("vr"==t)return Object(h["c"])("VRMode1"),this.$store.commit("SetVR",!0);if("measure"==t&&ve["a"].isEdit)return this.$tips({content:this.$t("modules.base.measure_show_tips")});if("measure"===t)return this.$bus.emit("measure/Handle","start");this.$store.commit("SetPlayerOptions",{mode:t}),Object(A["flyToNewMode"])(t)}},swtichPreview:function(){this.showPreview=!this.showPreview},onMusicClick:function(){this.isMuiscPlaying?Mt["a"].pause():Mt["a"].play()},onGuidePlay:function(){this.status.isPlaying?(this.$store.commit("guide/SetStatus",{isPlaying:!1}),A["play"].pause(),A["play"].stop()):(this.$store.commit("guide/SetStatus",{isPlaying:!0}),A["play"].start())}}},Ye=Ze,Ke=(n("4bcc"),Object(b["a"])(Ye,_e,Qe,!1,null,"f9f13e2c",null)),Fe=Ke.exports,He=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"widgets-navbar-mobile",class:{"show-gallery":t.isActive&&t.showGallery},on:{touchmove:function(t){t.preventDefault()}}},[n("div",{staticClass:"nav-buttons"},[n("div",{staticClass:"nav-buttons-center"},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showNavigations.guide,expression:"showNavigations.guide"}],staticClass:"nav-button",class:{group:t.isActive,disable:0==t.modeCanSwitch&&!t.status.isPlaying,"ui-hidden":0==t.plays.length}},[n("li",{staticClass:"play"},[n("i",{staticClass:"iconfont icon_play",class:{icon_play:!t.status.isPlaying,icon_suspend:t.status.isPlaying},on:{click:function(e){return e.stopPropagation(),t.onGuidePlay(e)}}})]),n("li",{staticClass:"split"}),n("li",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],on:{click:function(e){return e.stopPropagation(),t.onSwtichGallery()}}},[n("i",{staticClass:"iconfont icon_forward"})])]),n("ul",{staticClass:"nav-button group",class:{disable:0==t.modeCanSwitch||0==t.canSwitchRoom||t.status.isPlaying}},[t.showNavigations.pano?n("li",{class:{active:"pano"==t.mode},on:{click:function(e){return e.stopPropagation(),t.swtichMode("pano")}}},[n("i",{staticClass:"iconfont icon_tour"})]):t._e(),t.showNavigations.m2d?n("li",{class:{active:"2d"==t.mode},on:{click:function(e){return e.stopPropagation(),t.swtichMode("2d")}}},[n("i",{staticClass:"iconfont icon_2d"})]):t._e(),t.showNavigations.m3d?n("li",{class:{active:"3d"==t.mode},on:{click:function(e){return e.stopPropagation(),t.swtichMode("3d")}}},[n("i",{staticClass:"iconfont icon_3d"})]):t._e()])])]),n("div",{staticClass:"gallery"},[n("div",{staticClass:"frame",class:{disable:(0==t.canSwitchRoom||0==t.modeCanSwitch)&&!t.status.isPlaying},on:{touchmove:function(t){t.preventDefault()}}},[n("ul",t._l(t.roomLabels,(function(e,i){return n("li",{key:i,class:{prev:it.index,active:i==t.index},on:{click:function(e){return t.onFrameActive(i)}}},[n("div",{staticClass:"content"},[n("span",[t._v(t._s(e.label))])]),i==t.index&&t.status.isPlaying?n("div",{staticClass:"progress"},[n("div",{staticClass:"value",style:{width:t.progress+"%"}})]):t._e()])})),0)])]),t.metadata&&t.metadata.vrNum?n("a",{staticClass:"nav-decor",attrs:{href:"/decor.html?m="+t.$config.projectNum+"&m2="+t.metadata.vrNum}},[n("img",{attrs:{src:t.$config.getStaticResource("img/decor.png"),alt:""}})]):t._e()])},qe=[];function $e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tn(t){for(var e=1;e0&&this.$config.isMobile&&this.$config.isEdit},showMore:function(){return this.player.showMore&&this.$config.isMobile&&0==this.$config.isEdit},disable:function(){return!!this.status.isPlaying}}),created:function(){var t=this;window.Back=function(){t.onBack()},Mt["a"].on("play",(function(){t.isMusicPlaying=!0})),Mt["a"].on("off",(function(){t.isMusicPlaying=!1})),h["a"]&&this.$bus.on("orientation",(function(){h["d"]&&(t.$el.style.top=h["d"]+"px");var e=t.$el.querySelector(".back").getBoundingClientRect(),n={BackBtnInfo:{left:e.left,top:e.top,radius:e.width/2}};Nt["a"].detectAndroid()?Object(h["c"])(JSON.stringify(n)):Object(h["c"])(n)}))},mounted:function(){var t=this;this.$nextTick((function(){document.querySelector("#player").addEventListener("touchstart",(function(){t.onClickoutside()})),document.querySelector("#player-b").addEventListener("touchstart",(function(){t.onClickoutside()})),t.$config.isEdit||new ClipboardJS(t.$el.querySelector(".btn-share-copy")).on("success",(function(e){t.isShare=!1,t.isCopy=!1,t.$tips({content:t.$t("modules.base.scene_link_copy_tips")}),e.clearSelection()}))}))},methods:{onBack:function(){this.player.showVR&&(Object(h["c"])("VRMode0"),this.$store.commit("SetVR",!1))},onClickoutside:function(){this.isMoreOpen&&(this.isMoreOpen=!1),this.player.showInfo||this.$store.commit("SetPlayerOptions",{showMap:!this.isMoreOpen})},onMusicClick:function(){this.isMusicPlaying?Mt["a"].pause():Mt["a"].play()},onDescriptionSwitch:function(){this.$config.isMobile?this.$store.commit("SetPlayerOptions",{showMap:this.player.showInfo,showInfo:!this.player.showInfo}):this.$store.commit("SetPlayerOptions",{showInfo:!this.player.showInfo})},onMoreClick:function(){this.isMoreOpen=!this.isMoreOpen,this.$store.commit("SetPlayerOptions",{showMap:!this.isMoreOpen,showInfo:!1})},onMenuClick:function(t){return"music"==t?this.onMusicClick():"measure"===t?this.$bus.emit("measure/Handle","start"):"vr"==t?(Object(h["c"])("VRMode1"),this.$store.commit("SetVR",!0)):"share"==t?this.isShare=!0:void 0},onShare:function(t){if("copy"==t)return this.isCopy=!0,void(this.isShare=!1);Object(h["c"])("Share-".concat(t)),this.isShare=!1},onShowTitle:function(){this.showTitle=!this.showTitle,this.showTitle||this.$store.commit("SetPlayerOptions",{showInfo:!1})}}},pn=hn,dn=(n("4364"),Object(b["a"])(pn,Cn,In,!1,null,"d8516d6c",null)),fn=dn.exports,yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.show&&t.player.showVR&&!t.player.showVRType?n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn slow","leave-active-class":"animated fadeOut slow"}},[n("div",{staticClass:"widgets-vrtips"},[n("div",{class:{animate:t.isAnimate}})])]):t._e()},vn=[];function bn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function mn(t){for(var e=1;e");return"".concat(e[0],"
").concat(e[1],"
")}}},Ln=Nn,Dn=(n("8593"),Object(b["a"])(Ln,jn,Sn,!1,null,"7ece7b0e",null)),Tn=Dn.exports,Rn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"com-player-snapshot"},[n("transition",{attrs:{appear:"",name:"custom-classes-transition","enter-active-class":"animated fadeIn faster","leave-active-class":"animated fadeOut faster"}},[t.showFlash?n("div",{staticClass:"flash"}):t._e()]),t._m(0)],1)},Vn=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"frame show"},[n("div",{staticClass:"corner left-top"}),n("div",{staticClass:"corner right-top"}),n("div",{staticClass:"corner left-bottom"}),n("div",{staticClass:"corner right-bottom"})])}],Xn={computed:{showFlash:function(){return this.$store.state.player.showFlash}}},Wn=Xn,Gn=(n("ccc3"),Object(b["a"])(Wn,Rn,Vn,!1,null,"53386e4c",null)),Bn=Gn.exports;n("b775");function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Qn(t){for(var e=1;e=o)){var n=s.plays;s.recordTime=Math.ceil(n.length?n[n.length-1].time.eTime:0),e=setInterval((function(){++s.recordTime,s.recordTime>=o&&(clearInterval(e),r.pause(),s.recordTime=0,s.$store.commit("guide/SetStatus",{isRecording:!1}),s.$tips({content:t.$t("modules.guide.sound_limit",{time:s.$store.state.guide.recordMaxTime/60})}))}),1e3)}})),r.on("guide/record/pause",(function(){e&&clearInterval(e)})),r.on("guide/delete/item",(function(t){var e=s.plays;s.recordTime=Math.ceil(e.length?e[e.length-1].time.eTime:0)}))}this.$bus.once("complete",(function(){t.$config.isEdit&&Mt["a"].on("loaded",(function(){Object(Mt["b"])((function(){Mt["a"].play(),setTimeout((function(){Mt["a"].stop(),Mt["a"].play()}),50)}),!0)}))})),this.$bus.on("player/counting",(function(e){return t.counting=e}))},mounted:function(){var t=this,e=this.$el.querySelector("#player");e.addEventListener("mouseup",(function(e){return t.$bus.emit("player/mouseup",e)}),!1),e.addEventListener("mousedown",(function(e){return t.$bus.emit("player/mousedown",e)}),!1),e.addEventListener("touchstart",(function(e){return t.$bus.emit("player/mousedown",e)}),!1),e.addEventListener("touchmove",(function(e){return t.$bus.emit("player/mousemove",e)}),!1),e.addEventListener("touchend",(function(e){return t.$bus.emit("player/mouseup",e)}),!1)},methods:{start:function(){A["app"].start()},onDrop:function(t){"link"==this.page&&(t.preventDefault(),this.$bus.emit("player/drop",t))},onDragover:function(t){"link"==this.page&&t.preventDefault()}}},zn=Jn,Un=(n("47ee"),n("47ad"),Object(b["a"])(zn,r,o,!1,null,"e99c2424",null));e["a"]=Un.exports},b383:function(t,e,n){"use strict";e.decode=e.parse=n("91dd"),e.encode=e.stringify=n("e099")},ba9c:function(t,e,n){},bcdd:function(t,e,n){},bcf7:function(t,e){(function(){try{if("undefined"===typeof SVGElement||Boolean(SVGElement.prototype.innerHTML))return}catch(r){return}function t(t){switch(t.nodeType){case 1:return i(t);case 3:return e(t);case 8:return n(t)}}function e(t){return t.textContent.replace(/&/g,"&").replace(//g,">")}function n(t){return"\x3c!--"+t.nodeValue+"--\x3e"}function i(e){var n="";return n+="<"+e.tagName,e.hasAttributes()&&[].forEach.call(e.attributes,(function(t){n+=" "+t.name+'="'+t.value+'"'})),n+=">",e.hasChildNodes()&&[].forEach.call(e.childNodes,(function(e){n+=t(e)})),n+="",n}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var e="";return[].forEach.call(this.childNodes,(function(n){e+=t(n)})),e},set:function(t){while(this.firstChild)this.removeChild(this.firstChild);try{var e=new DOMParser;e.async=!1;var n=""+t+"",i=e.parseFromString(n,"text/xml").documentElement;[].forEach.call(i.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,!0))}.bind(this))}catch(r){throw new Error("Error parsing markup string")}}}),Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}})})()},c054:function(t,e,n){"use strict";var i=n("1b5f"),r=n.n(i);r.a},c137:function(t,e,n){"use strict";n.d(e,"d",(function(){return g})),n.d(e,"c",(function(){return A})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return I})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));n("4f7f"),n("5df3"),n("1c4c"),n("34ef"),n("4917"),n("28a5"),n("6b54"),n("7514"),n("ac6a");var i=n("ef73"),r=n("dcab"),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;nl?l:c:c>l?c:l,h=t*u,p=e*u,d=A/(A+a)*p,f=o/(o+g)*h,y=1-u/h;return{width:h,height:p,multiple:u,left:f,top:d,scale:y}}var A=function(t,e,n,i){void 0===e&&(e=16);var r=null,o=[],s=0;return function(){for(var g=[],A=0;Ae||!n)&&(t.apply(void 0,i),n=o)}},C=function(t){return Object.prototype.toString.call(t).slice(8,-1)},I={},c=["String","Number","Boolean","Undefined","Null","Object","Function","Array","Date","RegExp"];c.forEach((function(t){return I["is"+t]=function(e){return C(e)===t}}));var l=function(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),r=i.length,o=new Uint8Array(r);while(r--)o[r]=i.charCodeAt(r);return new Blob([o],{type:n})},u=function(){for(var t=[],e=0;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]i?n:i,s={x:e.x/r,y:e.y/r};return o(s)},g=function(t,e){void 0===e&&(e=.001);var n=s(t);return Math.abs(n.x)a({points:[s,i]})?s:o},l=function(t,e){var n=t.points,i=n[0],r=n[1],o=e.points,s=o[0],g=o[1],A=(r.y-i.y)*(g.x-s.x)-(i.x-r.x)*(s.y-g.y);if(0==A)return!1;var a=((r.x-i.x)*(g.x-s.x)*(s.y-i.y)+(r.y-i.y)*(g.x-s.x)*i.x-(g.y-s.y)*(r.x-i.x)*s.x)/A,C=-((r.y-i.y)*(g.y-s.y)*(s.x-i.x)+(r.x-i.x)*(g.y-s.y)*i.y-(g.x-s.x)*(r.y-i.y)*s.y)/A;return!isNaN(a)&&!isNaN(C)&&{x:a,y:C}},u=function(t,e){var n=0,i=t.points[1].x-t.points[0].x,r=e.x-t.points[0].x,o=e.x-t.points[1].x,s=t.points[1].y-t.points[0].y,g=e.y-t.points[0].y,A=e.y-t.points[1].y,a=i*r+s*g,C=i*i+s*s;if(a<=0)n=Math.sqrt(r*r+g*g);else if(a>=C)n=Math.sqrt(o*o+A*A);else{var I=a/C,c=t.points[0].x+i*I,l=t.points[0].y+s*I;n=Math.sqrt((e.x-c)*(e.x-c)+(l-e.y)*(l-e.y))}return n},h=function(t,e){return~t.points.indexOf(e.points[0])?e.points[0]:!!~t.points.indexOf(e.points[1])&&e.points[1]},p=function(t,e){return!Math.abs(u(t,e))||Math.abs(u(t,e))<.01},d=function(t,e){return t.points[0]===e.points[0]&&t.points[1]===e.points[1]||t.points[0]===e.points[1]&&t.points[1]===e.points[0]},f=function(t,e){return Math.abs(t.x-e.x)<.01&&Math.abs(t.y-e.y)<.01},y=function(t,e){var n=s(t),i=s(e);return!(isNaN(n.x)||isNaN(n.y)||isNaN(i.x)||isNaN(i.y))&&{x:Math.abs(Math.abs(n.x)-Math.abs(i.x)),y:Math.abs(Math.abs(n.y)-Math.abs(i.y))}},v=function(t,e,n,i){var r=y(t,e);return!r||(r.x>n||r.y>n)},b=function(t,e,n){var i={points:[{x:n.x-1e4*e.x,y:n.y-1e4*e.y},{x:n.x+1e4*e.x,y:n.y+1e4*e.y}]};return l(t,i)},m=function(t,e){return w(A(t),t.points[0],e)},w=function(t,e,n){var i={points:[e,{x:e.x+1e4*t.x,y:e.y+1e4*t.y}]};return x(i,n)},x=function(t,e){var n,r=e;if(i["f"].isNumber(r.x)&&i["f"].isNumber(r.y)){var o=g(t),s=o.x,A=o.y,a=Math.abs(s)>Math.abs(A)?"x":"y";n={},n[a]=r[a],r=n}var C=g(t,1e-4),I=C.y/C.x,c=t.points[0].y-I*t.points[0].x;return I>100||I<-100?{x:t.points[0].x,y:r.y}:i["f"].isNumber(r.x)?{x:r.x,y:I*r.x+c}:i["f"].isNumber(r.y)?{x:(r.y-c)/I,y:r.y}:{x:0,y:0}},O=function(t,e,n){var i=Math.atan(t.y/t.x);return[{x:e.x+n*Math.cos(i),y:e.y+n*Math.sin(i)},{x:e.x+-n*Math.cos(i),y:e.y+-n*Math.sin(i)}]},P=function(t,e,n){return O(g(t),e,n)},j=function(t,e,n){var i=P(t,e,n),r=i[0],o=i[1];return u(t,r)=0&&t.y>=0?1:t.x>=0&&t.y<=0?2:t.x<=0&&t.y<=0?3:t.x<=0&&t.y>=0?4:0},k=function(t,e){return E(t)-E(e)},M=function(t,e){for(var n=!1,i=e.x,r=e.y,o=0,s=t.length-1;or!=C>r&&i<=(a-g)*(r-A)/(C-A)+g&&(n=!n)}return n},N=function(t,e){var n,i,r;void 0===e&&(e=!0);var o,s=0,g=e?-1:1;if(null==t||t.length<3)return!1;var A=t.length;for(n=0;n0&&s++;return s>0},L=function(t,e){var n=t.points[1].y-t.points[0].y,i=t.points[0].x-t.points[1].x,r=n*t.points[0].x+i*t.points[0].y,o=e.points[1].y-e.points[0].y,s=e.points[0].x-e.points[1].x,g=o*e.points[0].x+s*e.points[0].y,A=n*s-o*i;if(0==A)return!1;var a=(s*r-i*g)/A,C=(n*g-o*r)/A;if((I(t.points[0].x,a,t.points[1].x)||I(t.points[0].y,C,t.points[1].y))&&(I(e.points[0].x,a,e.points[1].x)||I(e.points[0].y,C,e.points[1].y)))return!0;function I(t,e,n){return!(Math.abs(t-e)<1e-6||Math.abs(e-n)<1e-6)&&(t<=e&&e<=n||n<=e&&e<=t)}return!1},D=function(t,e){for(var n=0;na({points:[t.points[0],s]})?(t.points[0].x=s.x,t.points[0].y=s.y,t.points[1].x=o.x,t.points[1].y=o.y):(t.points[0].x=o.x,t.points[0].y=o.y,t.points[1].x=s.x,t.points[1].y=s.y),t},W=function(t){return 180*Math.atan2(t.points[1].y-t.points[0].y,t.points[1].x-t.points[0].x)/Math.PI},G=function(t,e){var n,i,r,o;~(o=t.points.indexOf(e.points[0]))?(n=t.points[o],i=e.points[1],r=t.points[Number(!o)]):~(o=t.points.indexOf(e.points[1]))&&(n=t.points[o],i=e.points[0],r=t.points[Number(!o)]);var s=0,g=0,A=0,a=i.x-n.x,C=i.y-n.y,I=r.x-n.x,c=r.y-n.y;return s=a*I+C*c,A=(a*a+C*C)*(I*I+c*c),s/=Math.sqrt(A),s>=1?0:s<=-1?180:(g=Math.acos(s),180*g/Math.PI<180?180*g/Math.PI:360-180*g/Math.PI)},B=function(t,e,n){var i={x:t.x-n.x,y:t.y-n.y},r={x:Math.cos(e)*i.x-Math.sin(e)*i.y,y:Math.sin(e)*i.x+Math.cos(e)*i.y};return{x:r.x+n.x,y:r.y+n.y}},_=function(t,e,n){try{var i=["window","door","slideDoor","groundCase","bayCase","doubleDoor","doorleaf"],r=["furnColumn","furnFlue","column","stair"];return t=JSON.parse(JSON.stringify(t)),t["vertex"].forEach((function(t){var i=B(t,e,n);t.x=i.x,t.y=i.y})),t["tagging"].forEach((function(t){var i=B({x:t.pos[0],y:t.pos[1]},e,n);t.pos[0]=i.x,t.pos[1]=i.y})),i.concat(r).forEach((function(i){t[i].forEach((function(t){var i=B({x:t.pos[0],y:t.pos[1]},e,n),r=B({x:t.pos[2],y:t.pos[3]},e,n);t.pos[0]=i.x,t.pos[1]=i.y,t.pos[2]=r.x,t.pos[3]=r.y}))})),r.forEach((function(i){t[i].forEach((function(t){var i=B({x:t.pos[4],y:t.pos[5]},e,n),r=B({x:t.pos[6],y:t.pos[7]},e,n);t.pos[4]=i.x,t.pos[5]=i.y,t.pos[6]=r.x,t.pos[7]=r.y}))})),t}catch(o){return t}}},e099:function(t,e,n){"use strict";var i=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,g){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?o(s(t),(function(s){var g=encodeURIComponent(i(s))+n;return r(t[s])?o(t[s],(function(t){return g+encodeURIComponent(i(t))})).join(e):g+encodeURIComponent(i(t[s]))})).join(e):g?encodeURIComponent(i(g))+n+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],i=0;iObject(o["x"])({points:[i,d]})?p:d}if(Object(o["x"])({points:[C,i]})Object(o["x"])({points:[n,v]})?v:y;c={points:[C,b]}}var m=Object(o["y"])(c,l/2).points,w=Object(o["x"])({points:m});if(isNaN(w))return;var x=4*w,O=m[1],P=O===m[1]?m[0]:m[1],j=Object(o["f"])(c,O,x),S=Object(o["x"])({points:[j[0],i]})>Object(o["x"])({points:[j[1],i]})?j[0]:j[1],E=Object(o["f"])(c,P,x),k=Object(o["x"])({points:[E[0],i]})>Object(o["x"])({points:[E[1],i]})?E[0]:E[1],M=Object(o["a"])([O,S,k,P]),N=Object(o["w"])({points:[O,S]})+90;this.image.setAttribute("width",w.toString()),this.image.setAttribute("height",x.toString()),this.image.setAttribute("x",(M.x-w/2).toString()),this.image.setAttribute("y",(M.y-x/2).toString()),this.image.setAttribute("transform","rotate("+N+", "+M.x+", "+M.y+")"),this.image.style.display="block"}else this.image.style.display="none"}}},e.prototype.dragStart=function(t){this.__index=this.linePoints[0].real.contains(t.target)?0:this.linePoints[1].real.contains(t.target)?1:-1,this.__startPoints=this.linePoints.map((function(t){return{x:t.x,y:t.y}}))},e.prototype.drag=function(t){var e=this,n=~this.__index?[this.linePoints[this.__index]]:this.linePoints,i=~this.__index?[this.__startPoints[this.__index]]:this.__startPoints;n.forEach((function(n,r){n.x=i[r].x+t.x*e.multiple,n.y=i[r].y+t.y*e.multiple}))},e.prototype.dragEnd=function(){delete this.dragStartPoints,delete this.__index,t.prototype.dragEnd.call(this)},e.prototype.setHoverStyle=function(){var t=this;Object.keys(this.hover).forEach((function(e){return t[e]=t.hover[e]}))},e.prototype.setUnHoverStyle=function(){var t=this;Object.keys(this.init).forEach((function(e){return t[e]=t.init[e]}))},e}(r["default"]);e["a"]=c},f0be:function(t,e,n){},f1ab:function(t,e,n){"use strict";var i=n("e0fe"),r=n.n(i);r.a},f6ec:function(t,e,n){},f87e:function(t,e,n){},f963:function(t,e,n){"use strict";var i=n("5259"),r=n.n(i);r.a},fd24:function(t,e,n){var i=n("5ca1");i(i.S,"Object",{setPrototypeOf:n("8b97").set})}}]);