Files

7 lines
863 KiB
JavaScript
Raw Permalink Normal View History

2026-03-27 09:02:29 +08:00
/*! ooomap RELEASE XCX version:1.13.15-3 time: 2026/1/27 13:26:56 */
var t,e;t=this,e=function(t){"use strict";function e(t,e){Object.getOwnPropertyNames(e).forEach(i=>{if("constructor"!==i&&"prototype"!==i&&"name"!==i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n)}})}var i=function(t){Object.defineProperty(t,"style",{get(){return{width:this.width+"px",height:this.height+"px"}}}),Object.defineProperty(t,"clientHeight",{get(){return this.height/2}}),Object.defineProperty(t,"clientWidth",{get(){return this.width/2}}),Object.defineProperty(t,"offsetHeight",{get(){return this.height}}),Object.defineProperty(t,"offsetWidth",{get(){return this.width}})},n=new Map;class r{constructor(t){this.identifier=t.identifier,this.force=void 0===t.force?1:t.force,this.pageX=t.pageX||t.x,this.pageY=t.pageY||t.y,this.clientX=t.clientX||t.x,this.clientY=t.clientY||t.y,this.screenX=this.pageX,this.screenY=this.pageY}}class a{constructor(){n.set(this,{})}addEventListener(t,e,i={}){var r=n.get(this);r||(r={},n.set(this,r)),r[t]||(r[t]=[]),r[t].push(e),i.capture,i.once,i.passive}removeEventListener(t,e){const i=n.get(this);if(i){const n=i[t];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===e){n.splice(r,1);break}}}dispatchEvent(t={}){"function"!=typeof t.preventDefault&&(t.preventDefault=()=>{}),"function"!=typeof t.stopPropagation&&(t.stopPropagation=()=>{});const e=n.get(this)[t.type];if(e)for(var i=0;i<e.length;i++)e[i](t)}dispatchTouchEvent(t={}){var e=Object.assign({},this);const i={changedTouches:t.changedTouches.map(t=>new r(t)),touches:t.touches.map(t=>new r(t)),targetTouches:Array.prototype.slice.call(t.touches.map(t=>new r(t))),timeStamp:t.timeStamp,target:e,currentTarget:e,type:t.type,cancelBubble:!1,cancelable:!1};this.dispatchEvent(i)}}var o=wx.getSystemInfoSync(),s={AudioContext:function(){},URL:{},location:{}};Object.defineProperties(s,{innerWidth:{get:function(){return o.screenWidth}},innerHeight:{get:function(){return o.screenHeight}}}),e(s,a.prototype);const h={createElementNS:(t,e)=>"canvas"===e?__tmpCanvas:"img"===e?m.createImage():void 0,createElement(t){return this.createElementNS(null,t)}};e(h,a.prototype);const l=new Map,c=new Map,u=new Map;function d(t,e={}){e.target=e.target||this,"function"==typeof this[`on${t}`]&&this[`on${t}`].call(this,e)}function p(t,e={}){this.readyState=t,e.readyState=t,d.call(this,"readystatechange",e)}class f extends a{constructor(){super(),this.onabort=null,this.onerror=null,this.onload=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.onloadend=null,this.onreadystatechange=null,this.readyState=0,this.response=null,this.responseText=null,this.responseType="text",this.dataType="string",this.responseXML=null,this.status=0,this.statusText="",this.upload={},this.withCredentials=!1,l.set(this,{"content-type":"application/x-www-form-urlencoded"}),c.set(this,{})}abort(){const t=u.get(this);t&&t.abort()}getAllResponseHeaders(){const t=c.get(this);return Object.keys(t).map(e=>`${e}: ${t[e]}`).join("\n")}getResponseHeader(t){return c.get(this)[t]}open(t,e){this._method=t,this._url=e,p.call(this,f.OPENED)}overrideMimeType(){}send(t=""){if(this.readyState!==f.OPENED)throw new Error("Failed to execute 'send' on 'XMLHttpRequest': The object's state must be OPENED.");{const i=this._url,n=l.get(this),r=this.responseType,a=this.dataType,o=function(t){return!/^(http|https|ftp|wxfile):\/\/.*/i.test(t)}(i);let s;"arraybuffer"===r||(s="utf8"),delete this.response,this.response=null;const h=({data:t,statusCode:e,header:i})=>{if(e=void 0===e?200:e,"string"!=typeof t&&!(t instanceof ArrayBuffer))try{t=JSON.stringify(t)}catch(t){}this.status=e,i&&c.set(this,i),d.call(this,"loadstart"),p.call(this,f.HEADERS_RECEIVED),p.call(this,f.LOADING),this.response=t,t instanceof ArrayBuffer?Object.defineProperty(this,"responseText",{enumerable:!0,configurable:!0,get:function(){throw"InvalidStateError : responseType is "+this.responseType}}):this.responseText=t,p.call(this,f.DONE),d.call(this,"load"),d.call(this,"loadend")},u=({errMsg:t})=>{-1!==t.indexOf("abort")?d.call(this,"abort"):d.call(this,"error",{message:t}),d.call(this,"loadend")};if(
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(Fa.prototype,{beforeStart_:Fa.prototype.copySampleValue_,afterEnd_:Fa.prototype.copySampleValue_}),Ua.prototype=Object.assign(Object.create(Fa.prototype),{constructor:Ua,DefaultSettings_:{endingStart:gt,endingEnd:gt},intervalChanged_:function(t,e,i){var n=this.parameterPositions,r=t-2,a=t+1,o=n[r],s=n[a];if(void 0===o)switch(this.getSettings_().endingStart){case vt:r=t,o=2*e-i;break;case yt:o=e+n[r=n.length-2]-n[r+1];break;default:r=t,o=i}if(void 0===s)switch(this.getSettings_().endingEnd){case vt:a=t,s=2*i-e;break;case yt:a=1,s=i+n[1]-n[0];break;default:a=t-1,s=e}var h=.5*(i-e),l=this.valueSize;this._weightPrev=h/(e-o),this._weightNext=h/(s-i),this._offsetPrev=r*l,this._offsetNext=a*l},interpolate_:function(t,e,i,n){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,h=s-o,l=this._offsetPrev,c=this._offsetNext,u=this._weightPrev,d=this._weightNext,p=(i-e)/(n-e),f=p*p,m=f*p,g=-u*m+2*u*f-u*p,v=(1+u)*m+(-1.5-2*u)*f+(-.5+u)*p+1,y=(-1-d)*m+(1.5+d)*f+.5*p,x=d*m-d*f,b=0;b!==o;++b)r[b]=g*a[l+b]+v*a[h+b]+y*a[s+b]+x*a[c+b];return r}}),Ga.prototype=Object.assign(Object.create(Fa.prototype),{constructor:Ga,interpolate_:function(t,e,i,n){for(var r=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=t*o,h=s-o,l=(i-e)/(n-e),c=1-l,u=0;u!==o;++u)r[u]=a[h+u]*c+a[s+u]*l;return r}}),ja.prototype=Object.assign(Object.create(Fa.prototype),{constructor:ja,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(Va,{toJSON:function(t){var e,i=t.constructor;if(void 0!==i.toJSON)e=i.toJSON(t);else{e={name:t.name,times:Ba.convertArray(t.times,Array),values:Ba.convertArray(t.values,Array)};var n=t.getInterpolation();n!==t.DefaultInterpolation&&(e.interpolation=n)}return e.type=t.ValueTypeName,e}}),Object.assign(Va.prototype,{constructor:Va,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:ft,InterpolantFactoryMethodDiscrete:function(t){return new ja(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new Ga(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new Ua(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case pt:e=this.InterpolantFactoryMethodDiscrete;break;case ft:e=this.InterpolantFactoryMethodLinear;break;case mt:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){var i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(i);this.setInterpolation(this.DefaultInterpolation)}return this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return pt;case this.InterpolantFactoryMethodLinear:return ft;case this.InterpolantFactoryMethodSmooth:return mt}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,i=0,n=e.length;i!==n;++i)e[i]*=t;return this},trim:function(t,e){for(var i=this.times,n=i.length,r=0,a=n-1;r!==n&&i[r]<t;)++r;for(;-1!==a&&i[a]>e;)--a;if(++a,0!==r||a!==n){r>=a&&(r=(a=Math.max(a,1))-1);var o=this.getValueSize();this.times=Ba.arraySlice(i,r,a),this.values=Ba.arraySlice(this.values,r*o,a*o)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!==0&&(t=!1);var i=this.times,n=this.values,r=i.length;0===r&&(t=!1);for(var a=null,o=0;o!==r;o++){var s=i[o];if("number"==typeof s&&isNaN(s)){t=!1;break}if(null!==a&&a>s){t=!1;break}a=s}if(void 0!==n&&Ba.isTypedArray(n)){o=0;for(var h=n.length;o!==h;++o){var l=n[o];if(isNaN(l)){t=!1;break}}}return t},optimize:function(){for(var t=this.times,e=this.values,i=this.getValueSize(),n=this.getInterpolation()===mt,r=1,a=t.length-1,o=1;o<a;++o){var s=!1,h=t[o];if(h!==t[o+1]&&(1!==o||h!==h[0]))if(n)s=!0;else for(var l=o*i,c=l-i,u=l+i,d=0;d!==i;++d){var p=e[l+d];if(p!==e[c+d]||p!==e[u+d]){s=!0;brea
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(ks.prototype,{_getValue_unbound:ks.prototype.getValue,_setValue_unbound:ks.prototype.setValue}),Object.assign(zs.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,r=this._paths,a=this._parsedPaths,o=this._bindings,s=o.length,h=0,l=arguments.length;h!==l;++h){var c=arguments[h],u=c.uuid,d=n[u];if(void 0===d){d=e++,n[u]=d,t.push(c);for(var p=0,f=s;p!==f;++p)o[p].push(new ks(c,r[p],a[p]))}else if(d<i){t[d];var m=--i,g=t[m];for(n[g.uuid]=d,t[d]=g,n[u]=m,t[m]=c,p=0,f=s;p!==f;++p){var v=o[p],y=v[m],x=v[d];v[d]=y,void 0===x&&(x=new ks(c,r[p],a[p])),v[m]=x}}else t[d]}this.nCachedObjects_=i},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,i=this._indicesByUUID,n=this._bindings,r=n.length,a=0,o=arguments.length;a!==o;++a){var s=arguments[a],h=s.uuid,l=i[h];if(void 0!==l&&l>=e){var c=e++,u=t[c];i[u.uuid]=l,t[l]=u,i[h]=c,t[c]=s;for(var d=0,p=r;d!==p;++d){var f=n[d],m=f[c],g=f[l];f[l]=m,f[c]=g}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,i=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,a=r.length,o=0,s=arguments.length;o!==s;++o){var h=arguments[o].uuid,l=n[h];if(void 0!==l)if(delete n[h],l<i){var c=--i,u=t[c],d=t[v=--e];n[u.uuid]=l,t[l]=u,n[d.uuid]=c,t[c]=d,t.pop();for(var p=0,f=a;p!==f;++p){var m=(y=r[p])[c],g=y[v];y[l]=m,y[c]=g,y.pop()}}else{var v;for(n[(d=t[v=--e]).uuid]=l,t[l]=d,t.pop(),p=0,f=a;p!==f;++p){var y;(y=r[p])[l]=y[v],y.pop()}}}this.nCachedObjects_=i},subscribe_:function(t,e){var i=this._bindingsIndicesByPath,n=i[t],r=this._bindings;if(void 0!==n)return r[n];var a=this._paths,o=this._parsedPaths,s=this._objects,h=s.length,l=this.nCachedObjects_,c=new Array(h);n=r.length,i[t]=n,a.push(t),o.push(e),r.push(c);for(var u=l,d=s.length;u!==d;++u){var p=s[u];c[u]=new ks(p,t,e)}return c},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,i=e[t];if(void 0!==i){var n=this._paths,r=this._parsedPaths,a=this._bindings,o=a.length-1,s=a[o];e[t[o]]=i,a[i]=s,a.pop(),r[i]=r[o],r.pop(),n[i]=n[o],n.pop()}}}),Object.assign(Rs.prototype,{play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,i){if(t.fadeOut(e),this.fadeIn(e),i){var n=this._clip.duration,r=t._clip.duration,a=r/n,o=n/r;t.warp(1,a,e),this.warp(o,1,e)}return this},crossFadeTo:function(t,e,i){return t.crossFadeFrom(this,e,i)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,i){var n=this._mixer,r=n.time,a=this._timeScaleInterpolant,o=this.timeScale;null===a&&(a=n._lendControlInterpolant(),this._timeScaleInterpolant=a);var s=a.parameterPositions,h=a.sampleValues;return s[0]=r,s[1]=r+i,h[0]=t/o,h[1]=e/o,this},stopWarping:function(){var t=this._time