1 line
699 KiB
JavaScript
1 line
699 KiB
JavaScript
|
|
if(window.Bridge.property=function(e,t,s,i,n,r){const a={enumerable:!r,configurable:!0};if(s&&s.get&&(a.get=s.get),s&&s.set&&(a.set=s.set),!s||!s.get&&!s.set){const e=Bridge.getTypeAlias(n)+"$"+t;n.$init=n.$init||{},i&&(n.$init[e]=s),function(e,t,s,i){e.get=function(){const e=this.$init[s];return void 0===e?i:e},e.set=function(e){this.$init[s]=e}}(a,0,e,s)}const o=[t],h=n.$descriptors||[];for(let e=0;e<h.length;e++){const s=h[e];if(s.name===t)for(let e=0;e<h.length;e++){const t=h[e];t.get===s.get&&t.set===s.set&&(-1===o.indexOf(t.name)&&o.push(t.name))}}for(const t of o)Object.defineProperty(e,t,a),e["get"+t]=e["get"+t]||a.get,e["set"+t]=e["set"+t]||a.set;return a},DEVELOP){const e=window.Error;window.Error=function(...t){const s=new e(...t);return pc.Debugger&&pc.Debugger.Console.exception(s,{},2),s},Object.setPrototypeOf(window.Error,e),window.Error.prototype=Object.create(e.prototype)}window.pc={};let onBox2DLoaded=null;pc.waitForBox2D=new Promise((e=>{onBox2DLoaded=e})),"undefined"!=typeof Box2D?window.Box2D().then(onBox2DLoaded):onBox2DLoaded(null),pc.waitForBox2D.then((e=>{window.box2d=e}));let onMecanimLoaded=null;pc.waitForMecanim=new Promise((e=>{onMecanimLoaded=e})),"undefined"!=typeof Mecanim?window.Mecanim().then(onMecanimLoaded):onMecanimLoaded(null),pc.waitForMecanim.then((e=>{window.mecanim=e})),window.performance||(window.performance={now:()=>Date.now()}),window.performance.now||(window.performance.now=()=>Date.now()),(()=>{const e={1593909819:0,"-499022955":-1};if(!e.hasOwnProperty(-499022955)){const e=Object.prototype.hasOwnProperty;Object.prototype.hasOwnProperty=function(...t){return e.call(this,String(t[0]))}}})(),Array.prototype.values||(Array.prototype.values=Array.prototype[Symbol.iterator]),(()=>{"use strict";var e,t={},s={};function i(e){var n=s[e];if(void 0!==n)return n.exports;var r=s[e]={exports:{}};return t[e](r,r.exports,i),r.exports}i.m=t,e=[],i.O=(t,s,n,r)=>{if(!s){var a=1/0;for(c=0;c<e.length;c++){for(var[s,n,r]=e[c],o=!0,h=0;h<s.length;h++)(!1&r||a>=r)&&Object.keys(i.O).every((e=>i.O[e](s[h])))?s.splice(h--,1):(o=!1,r<a&&(a=r));if(o){e.splice(c--,1);var l=n();void 0!==l&&(t=l)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[s,n,r]},i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={0:0};i.O.j=t=>0===e[t];var t=(t,s)=>{var n,r,[a,o,h]=s,l=0;if(a.some((t=>0!==e[t]))){for(n in o)i.o(o,n)&&(i.m[n]=o[n]);if(h)var c=h(i)}for(t&&t(s);l<a.length;l++)r=a[l],i.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return i.O(c)},s=self.webpackChunkluna=self.webpackChunkluna||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})()})(),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[1],[(e,t,s)=>{"use strict";s.d(t,{a:()=>B.a,b:()=>Q,c:()=>J,d:()=>U.a,e:()=>i.a,f:()=>$,g:()=>B.b,h:()=>c,i:()=>A,j:()=>C,k:()=>i.b,l:()=>r,m:()=>R,n:()=>y,o:()=>i.c,p:()=>i.g,q:()=>Y,r:()=>i.i});var i=s(4);const n={tmpVec21:null,tmpVec22:null,diff:null};class r{constructor(e=0,t=0){this.x=e,this.y=t,this._data=null,DEBUG&&d(this),TESTS&&pc.hiddenShapeValidator.addObjectToValidationSet(this,"Vec2")}add(e){return DEBUG&&d(e),this.x+=e.x,this.y+=e.y,DEBUG&&d(this),this}add2(e,t){return DEBUG&&(d(e),d(t)),this.x=e.x+t.x,this.y=e.y+t.y,this}clone(){return(new r).copy(this)}copy(e){return DEBUG&&d(e),this.x=e.x,this.y=e.y,this}dot(e){return DEBUG&&d(e),this.x*e.x+this.y*e.y}equals(e){const t=n.diff;return t.x=this.x-e.x,t.y=this.y-e.y,t.lengthSq()<999999943962493e-25}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSq(){return this.x*this.x+this.y*this.y}lerp(e,t,s){return DEBUG&&(d(e),d(t)),s=(0,i.c)(s,0,1),this.x=e.x+s*(t.x-e.x),this.y=e.y+s*(t.y-e.y),DEBUG&&d(this),this}lerpUnclamped(e,t,s){return DEBUG&&(d(e),d(t)),this.x=e.x+s*(t.x-e.x),this.y=e.y+s*(t.y-e.y),DEBUG&&d(this),this}mul(e){return DEBUG&&d(e),this.x*=e.x,this.y*=e.y,DEBUG&&d(this),this}mul2(e,t){return DEBUG&&(d(t),d(e)),this.x=e.x*t.x,this.y=e.y*t.y,DEBUG&&d(this),this}normalize(){const e=this.x*this.x+this
|